auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( ( type.isExternal ( ) ) || ( type instanceof com.android.jack.ir.ast.JDefinedInterface ) ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( type ) ; com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = type.getMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; if ( marker != null ) { for ( com.android.jack.ir.ast.JField f : marker.getAllFields ( ) ) { tr.append ( new com.android.jack.transformations.request.RemoveModifiers ( f , com.android.jack.ir.ast.JModifier.PRIVATE ) ) ; } type.removeMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; } tr.commit ( ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( type instanceof com.android.jack.ir.ast.JDefinedInterface ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( type ) ; com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = type.getMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; if ( marker != null ) { for ( com.android.jack.ir.ast.JField f : marker.getAllFields ( ) ) { tr.append ( new com.android.jack.transformations.request.RemoveModifiers ( f , com.android.jack.ir.ast.JModifier.PRIVATE ) ) ; } type.removeMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; } tr.commit ( ) ; }
Source:
static org.eclipse.swt.dnd.DropTarget createDropTarget ( org.eclipse.swt.widgets.Control control , org.eclipse.swt.dnd.DropTargetListener dropListener ) { org.eclipse.swt.dnd.DropTarget dropTarget = new org.eclipse.swt.dnd.DropTarget ( control , ( ( ( org.eclipse.swt.dnd.DND.DROP_COPY ) | ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) | ( org.eclipse.swt.dnd.DND.DROP_DEFAULT ) ) ) ; dropTarget.setTransfer ( new org.eclipse.swt.dnd.Transfer [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) } ) ; dropTarget.addDropListener ( dropListener ) ; return dropTarget ; }

Target:
static org.eclipse.swt.dnd.DropTarget createDropTarget ( org.eclipse.swt.widgets.Control control ) { org.eclipse.swt.dnd.DropTarget dropTarget = new org.eclipse.swt.dnd.DropTarget ( control , ( ( ( org.eclipse.swt.dnd.DND.DROP_COPY ) | ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) | ( org.eclipse.swt.dnd.DND.DROP_DEFAULT ) ) ) ; dropTarget.setTransfer ( new org.eclipse.swt.dnd.Transfer [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) } ) ; return dropTarget ; }
Source:
public void setSubject ( byte [ ] subjectDN ) throws java.io.IOException { try { subject = ( subjectDN == null ) ? null : new javax.security.auth.x500.X500Principal ( subjectDN ) ; } catch ( java.lang.IllegalArgumentException e ) { throw ( ( java.io.IOException ) ( new java.io.IOException ( "Invalid name" ) . initCause ( e ) ) ) ; } }

Target:
public void setSubject ( byte [ ] subjectDN ) throws java.io.IOException { try { subject = ( subjectDN == null ) ? null : new javax.security.auth.x500.X500Principal ( subjectDN ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new java.io.IOException ( "Invalid name" , e ) ; } }
Source:
private void onThemeChange ( ) { saveState ( false ) ; int themeIndex = mThemeCombo.getSelectionIndex ( ) ; if ( themeIndex != ( - 1 ) ) { java.lang.String theme = mThemeCombo.getItem ( themeIndex ) ; if ( theme.equals ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.THEME_SEPARATOR ) ) { mThemeCombo.select ( 0 ) ; } if ( ( mListener ) != null ) { mListener.onThemeChange ( ) ; } } }

Target:
private void onThemeChange ( ) { saveState ( ) ; int themeIndex = mThemeCombo.getSelectionIndex ( ) ; if ( themeIndex != ( - 1 ) ) { java.lang.String theme = mThemeCombo.getItem ( themeIndex ) ; if ( theme.equals ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.THEME_SEPARATOR ) ) { mThemeCombo.select ( 0 ) ; } if ( ( mListener ) != null ) { mListener.onThemeChange ( ) ; } } }
Source:
public void testDeadlockOnOutgoingCall ( ) throws java.lang.Exception { for ( int i = 0 ; i < 100 ; i ++ ) { com.android.server.telecom.tests.BasicCallTests test = new com.android.server.telecom.tests.BasicCallTests ( ) ; test.setContext ( getContext ( ) ) ; test.setTestContext ( getTestContext ( ) ) ; test.setName ( getName ( ) ) ; test.setUp ( ) ; test.do_testDeadlockOnOutgoingCall ( ) ; test.tearDown ( ) ; } }

Target:
public void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; }
Source:
public void testRunner_LazyTestCreationTest ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; expectedResults ( ) . success ( "test1" , "Creating\n" ) . success ( "test2" , "Creating\n" ) . completedNormally ( ) ; }

Target:
public void testRunner_LazyTestCreationTest ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; expectedResults ( ) . text ( "Creating\n" ) . success ( "test1" ) . text ( "Creating\n" ) . success ( "test2" ) . completedNormally ( ) ; }
Source:
private static boolean checkPlatformContent ( java.io.File platform , com.android.sdklib.ISdkLog log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) { java.io.File f = new java.io.File ( platform , relativePath ) ; if ( ! ( f.exists ( ) ) ) { log.warning ( null , "Ignoring platform '%1$s': %2$s is missing." , platform.getName ( ) , relativePath ) ; return false ; } } return true ; }

Target:
private static boolean checkPlatformContent ( java.io.File platform , com.android.sdklib.ISdkLog log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) { java.io.File f = new java.io.File ( platform , relativePath ) ; if ( ! ( f.exists ( ) ) ) { log.warning ( "Ignoring platform '%1$s': %2$s is missing." , platform.getName ( ) , relativePath ) ; return false ; } } return true ; }
Source:
static void setChar ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , char value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void setChar ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , char value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public void clear ( ) { synchronized ( typeCache ) { typeCache.clear ( ) ; } synchronized ( classCache ) { classCache.clear ( ) ; } synchronized ( enumCache ) { enumCache.clear ( ) ; } synchronized ( interfaceCache ) { interfaceCache.clear ( ) ; } synchronized ( annotationCache ) { annotationCache.clear ( ) ; } }

Target:
private void clear ( ) { synchronized ( typeCache ) { typeCache.clear ( ) ; } synchronized ( classCache ) { classCache.clear ( ) ; } synchronized ( enumCache ) { enumCache.clear ( ) ; } synchronized ( interfaceCache ) { interfaceCache.clear ( ) ; } synchronized ( annotationCache ) { annotationCache.clear ( ) ; } }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( lockClass ) != null ) && ( ( requestMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass , requestMethodId , JPrimitiveTypeEnum.VOID.getType ( ) , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( requestClass ) != null ) && ( ( lockClass ) != null ) ) && ( ( requestMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass , requestMethodId , JPrimitiveTypeEnum.VOID.getType ( ) , false ) ) ; }
Source:
private android.graphics.drawable.Drawable getCachedDrawable ( android.util.LongSparseArray < java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > > drawableCache , long key ) { synchronized ( mTmpValue ) { java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > wr = drawableCache.get ( key ) ; if ( wr != null ) { android.graphics.drawable.Drawable.ConstantState entry = wr.get ( ) ; if ( entry != null ) { return entry.newDrawable ( ) ; } else { drawableCache.delete ( key ) ; } } } return null ; }

Target:
private android.graphics.drawable.Drawable getCachedDrawable ( android.util.LongSparseArray < java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > > drawableCache , long key ) { synchronized ( mTmpValue ) { java.lang.ref.WeakReference < android.graphics.drawable.Drawable.ConstantState > wr = drawableCache.get ( key ) ; if ( wr != null ) { android.graphics.drawable.Drawable.ConstantState entry = wr.get ( ) ; if ( entry != null ) { return entry.newDrawable ( this ) ; } else { drawableCache.delete ( key ) ; } } } return null ; }
Source:
boolean finishDrawingLocked ( ) { if ( mDrawPending ) { if ( ( com.android.server.WindowManagerService.SHOW_TRANSACTIONS ) || ( com.android.server.WindowManagerService.DEBUG_ORIENTATION ) ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( "finishDrawingLocked: " + ( mSurface ) ) ) ; mCommitDrawPending = true ; mDrawPending = false ; return true ; } return false ; }

Target:
boolean finishDrawingLocked ( ) { if ( mDrawPending ) { if ( ( com.android.server.WindowManagerService.SHOW_TRANSACTIONS ) || ( com.android.server.WindowManagerService.DEBUG_ORIENTATION ) ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( "finishDrawingLocked: " + ( mSurface ) ) ) ; mCommitDrawPending = true ; mDrawPending = false ; return true ; } return false ; }
Source:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { java.security.Provider.Service service = messageDigestCodec.checkString ( context , "SHA" ) ; return new com.android.sched.vfs.CaseInsensitiveFS ( codec.checkString ( context , string ) , 2 , 2 , new com.android.sched.util.config.MessageDigestFactory ( service ) , false ) ; } catch ( com.android.sched.vfs.WrongVFSFormatException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { java.security.Provider.Service service = messageDigestCodec.checkString ( context , "SHA" ) ; return new com.android.sched.vfs.CaseInsensitiveFS ( codec.checkString ( context , string ) , 1 , 2 , new com.android.sched.util.config.MessageDigestFactory ( service ) , false ) ; } catch ( com.android.sched.vfs.WrongVFSFormatException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
public static org.bouncycastle.asn1.x9.X9ECParameters getByName ( java.lang.String name ) { org.bouncycastle.asn1.x9.X9ECParameters ecP = org.bouncycastle.asn1.x9.X962NamedCurves.getByName ( name ) ; if ( ecP == null ) { ecP = org.bouncycastle.asn1.sec.SECNamedCurves.getByName ( name ) ; } if ( ecP == null ) { ecP = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getByName ( name ) ; } if ( ecP == null ) { ecP = org.bouncycastle.asn1.nist.NISTNamedCurves.getByName ( name ) ; } return ecP ; }

Target:
public static org.bouncycastle.asn1.x9.X9ECParameters getByName ( java.lang.String name ) { org.bouncycastle.asn1.x9.X9ECParameters ecP = org.bouncycastle.asn1.x9.X962NamedCurves.getByName ( name ) ; if ( ecP == null ) { ecP = org.bouncycastle.asn1.sec.SECNamedCurves.getByName ( name ) ; } if ( ecP == null ) { ecP = org.bouncycastle.asn1.nist.NISTNamedCurves.getByName ( name ) ; } return ecP ; }
Source:
public synchronized void close ( ) { synchronized ( mLock ) { if ( ( isBasicChannel ( ) ) && ( hasSelectedAid ( ) ) ) { android.util.Log.i ( mTag , "Close basic channel - Select without AID ..." ) ; mTerminal.selectDefaultApplication ( ) ; } mTerminal.closeChannel ( this ) ; mIsClosed = true ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } if ( ( mSession ) != null ) { mSession.removeChannel ( this ) ; } } }

Target:
public synchronized void close ( ) { synchronized ( mLock ) { if ( isBasicChannel ( ) ) { android.util.Log.i ( mTag , "Close basic channel - Select without AID ..." ) ; mTerminal.selectDefaultApplication ( ) ; } mTerminal.closeChannel ( this ) ; mIsClosed = true ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } if ( ( mSession ) != null ) { mSession.removeChannel ( this ) ; } } }
Source:
public java.util.Iterator iterator ( ) { return new java.util.EnumMap.EnumMapIterator < VT , KT , VT > ( new java.util.MapEntry.Type < VT , KT , VT > ( ) { public java.util.VT get ( MapEntry < java.util.KT , java.util.VT > entry ) { return entry.value ; } } , enumMap ) ; }

Target:
public java.util.Iterator < VT > iterator ( ) { return new java.util.EnumMap.EnumMapIterator < VT , KT , VT > ( new java.util.MapEntry.Type < VT , KT , VT > ( ) { public java.util.VT get ( MapEntry < java.util.KT , java.util.VT > entry ) { return entry.value ; } } , enumMap ) ; }
Source:
private void launchTerminal ( com.googlecode.android_scripting.interpreter.Interpreter interpreter ) { if ( interpreter instanceof com.googlecode.android_scripting.interpreter.html.HtmlInterpreter ) { return ; } android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_LAUNCH_INTERPRETER ) ; intent.putExtra ( Constants.EXTRA_INTERPRETER_NAME , interpreter.getName ( ) ) ; startService ( intent ) ; }

Target:
private void launchTerminal ( com.googlecode.android_scripting.interpreter.Interpreter interpreter ) { android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_LAUNCH_INTERPRETER ) ; intent.putExtra ( Constants.EXTRA_INTERPRETER_NAME , interpreter.getName ( ) ) ; startService ( intent ) ; }
Source:
private com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.dx.rop.code.RegisterSpec regSpec ; if ( expr instanceof com.android.jack.ir.ast.JVariableRef ) { regSpec = ropReg.getRegisterSpec ( ( ( com.android.jack.ir.ast.JVariableRef ) ( expr ) ) ) ; } else { assert expr instanceof com.android.jack.ir.ast.JValueLiteral ; regSpec = ropReg.getOrCreateTmpRegister ( expr.getType ( ) ) ; buildConstant ( regSpec , ( ( com.android.jack.ir.ast.JValueLiteral ) ( expr ) ) ) ; } return regSpec ; }

Target:
private com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.dx.rop.code.RegisterSpec regSpec ; if ( expr instanceof com.android.jack.ir.ast.JVariableRef ) { regSpec = ropReg.getRegisterSpec ( ( ( com.android.jack.ir.ast.JVariableRef ) ( expr ) ) ) ; } else { assert expr instanceof com.android.jack.ir.ast.JValueLiteral ; regSpec = ropReg.getOrCreateTmpRegister ( expr.getType ( ) , false ) ; buildConstant ( regSpec , ( ( com.android.jack.ir.ast.JValueLiteral ) ( expr ) ) ) ; } return regSpec ; }
Source:
static com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute parseString ( java.lang.String value ) { java.util.regex.Matcher m = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute.REGEXP.matcher ( value ) ; if ( m.matches ( ) ) { return new com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ( m.group ( 2 ) , m.group ( 1 ) , m.group ( 3 ) ) ; } return null ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute parseString ( java.lang.String value ) { java.util.regex.Matcher m = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute.REGEXP.matcher ( value ) ; if ( m.matches ( ) ) { return new com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleAttribute ( m.group ( 2 ) , m.group ( 1 ) , m.group ( 3 ) ) ; } return null ; }
Source:
protected boolean hasBuildTypeChanged ( ) { if ( ( ( mBuildType ) == null ) && ( ( mPreviousBuildType ) == null ) ) { return false ; } return ( mBuildType.equals ( mPreviousBuildType ) ) == false ; }

Target:
protected boolean hasBuildTypeChanged ( ) { if ( ( ( mBuildType ) == null ) && ( ( mPreviousBuildType ) == null ) ) { return false ; } return ! ( ( ( mBuildType ) != null ) && ( mBuildType.equals ( mPreviousBuildType ) ) ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) , Element.DataType.FLOAT_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
private static java.lang.CharSequence getRangeContent ( @ org.jetbrains.annotations.NotNull com.intellij.diff.fragments.MergeLineFragment fragment , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.editor.ex.EditorEx > editors , @ org.jetbrains.annotations.NotNull com.intellij.diff.tools.simple.ThreeSide side ) { com.intellij.openapi.editor.ex.DocumentEx document = side.select ( editors ) . getDocument ( ) ; int line1 = fragment.getStartLine ( side ) ; int line2 = fragment.getEndLine ( side ) ; return com.intellij.diff.tools.simple.DiffUtil.getLinesContent ( document , line1 , line2 ) ; }

Target:
private static java.lang.CharSequence getRangeContent ( @ org.jetbrains.annotations.NotNull com.intellij.diff.fragments.MergeLineFragment fragment , @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.editor.ex.EditorEx > editors , @ org.jetbrains.annotations.NotNull com.intellij.diff.tools.simple.ThreeSide side ) { com.intellij.openapi.editor.ex.DocumentEx document = side.select ( editors ) . getDocument ( ) ; int line1 = fragment.getStartLine ( side ) ; int line2 = fragment.getEndLine ( side ) ; if ( line1 == line2 ) return null ; return com.intellij.diff.tools.simple.DiffUtil.getLinesContent ( document , line1 , line2 ) ; }
Source:
public E next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java.util.NoSuchElementException ( ) ; } prePosition = ( position ) ++ ; return type.get ( new java.util.EnumMap.Entry < KT , VT > ( ( ( KT ) ( enumMap.keys [ prePosition ] ) ) , ( ( VT ) ( enumMap.values [ prePosition ] ) ) , enumMap ) ) ; }

Target:
public E next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java.util.NoSuchElementException ( ) ; } prePosition = ( position ) ++ ; return type.get ( new java.util.EnumMap.Entry < KT , VT > ( enumMap.keys [ prePosition ] , enumMap.values [ prePosition ] , enumMap ) ) ; }
Source:
private long getApkVersion ( ) { android.content.pm.PackageManager pm = org.chromium.base.ContextUtils.getApplicationContext ( ) . getPackageManager ( ) ; try { android.content.pm.PackageInfo pi = pm.getPackageInfo ( org.chromium.base.ContextUtils.getApplicationContext ( ) . getPackageName ( ) , 0 ) ; return ( pi.lastUpdateTime ) ^ ( ( ( long ) ( pi.versionCode ) ) << 32 ) ; } catch ( android.content.pm.PackageManager e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private long getApkVersion ( ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { android.content.pm.PackageInfo pi = pm.getPackageInfo ( mContext.getPackageName ( ) , 0 ) ; return pi.lastUpdateTime ; } catch ( android.content.pm.PackageManager e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void writeDebugInformation ( @ javax.annotation.Nonnull com.android.jill.frontend.java.Variable v ) throws java.io.IOException { if ( ! ( v.hasLocalIndex ( ) ) ) { return ; } org.objectweb.asm.tree.LocalVariableNode lvn = getLocalVariableNode ( v.getLocalIndex ( ) ) ; if ( lvn == null ) { v.setSynthetic ( ) ; } else { writer.writeKeyword ( Token.DEBUG_VARIABLE_INFORMATION ) ; writer.writeOpen ( ) ; writer.writeString ( lvn.name ) ; writer.writeId ( lvn.desc ) ; writer.writeString ( lvn.signature ) ; writer.writeClose ( ) ; } }

Target:
private void writeDebugInformation ( @ javax.annotation.Nonnull com.android.jill.frontend.java.Variable v ) throws java.io.IOException { if ( ! ( v.hasLocalIndex ( ) ) ) { return ; } org.objectweb.asm.tree.LocalVariableNode lvn = getLocalVariableNode ( v.getLocalIndex ( ) ) ; if ( lvn != null ) { writer.writeKeyword ( Token.DEBUG_VARIABLE_INFORMATION ) ; writer.writeOpen ( ) ; writer.writeString ( lvn.name ) ; writer.writeId ( lvn.desc ) ; writer.writeString ( lvn.signature ) ; writer.writeClose ( ) ; } }
Source:
public void run ( ) { com.android.mms.data.ContactList recipients = ( isRecipientsEditorVisible ( ) ) ? mRecipientsEditor.constructContactsFromInput ( false ) : getRecipients ( ) ; if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.ui.ComposeMessageActivity.log ( ( "[CMA] onUpdate contact updated: " + updated ) ) ; com.android.mms.ui.ComposeMessageActivity.log ( ( "[CMA] onUpdate recipients: " + recipients ) ) ; } updateTitle ( recipients ) ; this . mMsgListAdapter.notifyDataSetChanged ( ) ; if ( ( mRecipientsEditor ) != null ) { mRecipientsEditor.populate ( recipients ) ; } }

Target:
public void run ( ) { com.android.mms.data.ContactList recipients = ( isRecipientsEditorVisible ( ) ) ? mRecipientsEditor.constructContactsFromInput ( false ) : getRecipients ( ) ; if ( android.util.Log.isLoggable ( LogTag.APP , Log.VERBOSE ) ) { com.android.mms.ui.ComposeMessageActivity.log ( ( "[CMA] onUpdate contact updated: " + updated ) ) ; com.android.mms.ui.ComposeMessageActivity.log ( ( "[CMA] onUpdate recipients: " + recipients ) ) ; } updateTitle ( recipients ) ; this . mMsgListAdapter.notifyDataSetChanged ( ) ; }
Source:
private void runPreloadDensityTestForDrawable ( int drawableResId , boolean isConstantSize ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = mResources ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { runPreloadDensityTestForDrawableInner ( res , densityDpi , drawableResId , isConstantSize ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }

Target:
private void runPreloadDensityTestForDrawable ( int drawableResId , boolean isConstantSize ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = mResources ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { runPreloadDensityTestForDrawableInner ( res , drawableResId , isConstantSize ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }
Source:
void showInvisibleViews ( boolean show ) { if ( ( mShowInvisible ) == show ) { return ; } if ( show && ( ! ( mViewHierarchy.hasInvisibleParents ( ) ) ) ) { return ; } else if ( ( ! show ) && ( ! ( mViewHierarchy.hasExplodedParents ( ) ) ) ) { return ; } mShowInvisible = show ; mLayoutEditor.recomputeLayout ( ) ; }

Target:
void showInvisibleViews ( boolean show ) { if ( ( mShowInvisible ) == show ) { return ; } mShowInvisible = show ; if ( show && ( ! ( mViewHierarchy.hasInvisibleParents ( ) ) ) ) { return ; } else if ( ( ! show ) && ( ! ( mViewHierarchy.hasExplodedParents ( ) ) ) ) { return ; } mLayoutEditor.recomputeLayout ( ) ; }
Source:
public static com.google.api.services.storage.model.Bucket createBucket ( java.lang.String projectId , java.lang.String bucketName ) { try { com.google.api.services.storage.model.Bucket bucket = new com.google.api.services.storage.model.Bucket ( ) . setName ( bucketName ) . setLocation ( "US" ) ; com.google.api.services.storage.Storage.Buckets.Insert insertBucket = com.google.gct.testing.launcher.CloudAuthenticator.getStorage ( ) . buckets ( ) . insert ( projectId , bucket ) ; return insertBucket.execute ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static com.google.api.services.storage.model.Bucket createBucket ( java.lang.String projectId , java.lang.String bucketName ) { try { com.google.api.services.storage.model.Bucket bucket = new com.google.api.services.storage.model.Bucket ( ) . setName ( bucketName ) . setLocation ( "US" ) ; com.google.api.services.storage.Storage.Buckets.Insert insertBucket = getStorage ( ) . buckets ( ) . insert ( projectId , bucket ) ; return insertBucket.execute ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public static java.lang.String getProfileName ( android.content.Context context ) { android.database.Cursor c = context.getContentResolver ( ) . query ( Profile.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.Profile.DISPLAY_NAME } , null , null , null ) ; java.lang.String ownerName = null ; if ( ( c != null ) && ( c.moveToFirst ( ) ) ) { ownerName = c.getString ( 0 ) ; } if ( c != null ) { c.close ( ) ; c = null ; } return ownerName ; }

Target:
public static java.lang.String getProfileName ( android.content.Context context ) { android.database.Cursor c = context.getContentResolver ( ) . query ( Profile.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.Profile.DISPLAY_NAME } , null , null , null ) ; java.lang.String ownerName = null ; if ( ( c != null ) && ( c.moveToFirst ( ) ) ) { ownerName = c.getString ( 0 ) ; } if ( c != null ) { c.close ( ) ; } return ownerName ; }
Source:
public void test_socket_accept_Blocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( true ) ; java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; gotSocket.bind ( null ) ; serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException e ) { } }

Target:
public void test_socket_accept_Blocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( true ) ; serverChannel.bind ( null ) ; serverChannel.close ( ) ; try { serverChannel.socket ( ) . accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } }
Source:
private static void waitForIdleHandler ( android.os.HandlerThread handlerThread , int timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { fail ( ( ( ( ( "HandlerThread " + ( getName ( ) ) ) + " did not become idle after " ) + timeoutMs ) + " ms" ) ) ; } }

Target:
private static void waitForIdleHandler ( android.os.HandlerThread handlerThread , int timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { fail ( ( ( ( ( "HandlerThread " + ( handlerThread.getName ( ) ) ) + " did not become idle after " ) + timeoutMs ) + " ms" ) ) ; } }
Source:
public boolean shouldRun ( org.junit.runner.Description description ) { if ( ( ( com.android.jack.java8.EcjLambdaTest.testWithApiUsage.contains ( description.getMethodName ( ) ) ) || ( com.android.jack.java8.EcjLambdaTest.testWithOtherErrorMsg.contains ( description.getMethodName ( ) ) ) ) || ( com.android.jack.java8.EcjLambdaTest.knownBugs.contains ( description.getMethodName ( ) ) ) ) { return false ; } return true ; }

Target:
public boolean shouldRun ( org.junit.runner.Description description ) { if ( ( com.android.jack.java8.EcjLambdaTest.testWithApiUsage.contains ( description.getMethodName ( ) ) ) || ( com.android.jack.java8.EcjLambdaTest.testWithOtherErrorMsg.contains ( description.getMethodName ( ) ) ) ) { return false ; } return true ; }
Source:
public static java.io.FileDescriptor socket ( boolean stream ) throws java.net.SocketException { java.io.FileDescriptor fd ; try { fd = Libcore.os.socket ( libcore.io.AF_INET6 , ( stream ? SOCK_STREAM : SOCK_DGRAM ) , 0 ) ; if ( ! stream ) { Libcore.os.setsockoptInt ( fd , libcore.io.IPPROTO_IPV6 , libcore.io.IPV6_MULTICAST_HOPS , 1 ) ; } return fd ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static java.io.FileDescriptor socket ( boolean stream ) throws java.net.SocketException { java.io.FileDescriptor fd ; try { fd = Libcore.os.socket ( libcore.io.AF_INET6 , ( stream ? SOCK_STREAM : SOCK_DGRAM ) , 0 ) ; return fd ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; } else { gattAdvertiseNative ( enable ) ; } }

Target:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; }
Source:
public void getProperty_badResponse ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "blargh" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; org.junit.Assert.assertNull ( fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }

Target:
public void getProperty_badResponse ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; injectShellResponse ( mockDevice , "blargh" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; org.junit.Assert.assertNull ( fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }
Source:
public java.util.List < android.telephony.NetworkRegistrationState > getNetworkRegistrationStates ( int transportType ) { java.util.List < android.telephony.NetworkRegistrationState > list = new java.util.ArrayList < > ( ) ; for ( android.telephony.NetworkRegistrationState networkRegistrationState : mNetworkRegistrationStates ) { if ( ( networkRegistrationState.getTransportType ( ) ) == transportType ) { list.add ( networkRegistrationState ) ; } } return list ; }

Target:
public java.util.List < android.telephony.NetworkRegistrationState > getNetworkRegistrationStates ( int transportType ) { java.util.List < android.telephony.NetworkRegistrationState > list = new java.util.ArrayList < > ( ) ; synchronized ( mNetworkRegistrationStates ) { for ( android.telephony.NetworkRegistrationState networkRegistrationState : mNetworkRegistrationStates ) { if ( ( networkRegistrationState.getTransportType ( ) ) == transportType ) { list.add ( networkRegistrationState ) ; } } } return list ; }
Source:
public void finish ( ) { if ( ( ! ( mHaveConditional ) ) && ( ( mNodes ) != null ) ) { for ( lombok.ast.Node node : mNodes ) { java.lang.String message = "Unconditional layout inflation from view adapter: " + ( ( "Should use View Holder pattern (use recycled view passed " + "into this method as the second parameter) for smoother " ) + "scrolling" ) ; mContext.report ( com.android.tools.lint.checks.ViewHolderDetector.ISSUE , node , mContext.getLocation ( node ) , message , null ) ; } } }

Target:
public void finish ( ) { if ( ( ! ( mHaveConditional ) ) && ( ( mNodes ) != null ) ) { for ( lombok.ast.Node node : mNodes ) { java.lang.String message = "Unconditional layout inflation from view adapter: " + ( ( "Should use View Holder pattern (use recycled view passed " + "into this method as the second parameter) for smoother " ) + "scrolling" ) ; mContext.report ( com.android.tools.lint.checks.ViewHolderDetector.ISSUE , node , mContext.getLocation ( node ) , message ) ; } } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_math_conformance s = new com.android.rs.test.ScriptC_math_conformance ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_math_conformance_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; passTest ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_math_conformance s = new com.android.rs.test.ScriptC_math_conformance ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_math_conformance_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; passTest ( ) ; }
Source:
public int read ( java.nio.CharBuffer target ) throws java.io.IOException { if ( ( timesRead ) == 1 ) { target.append ( '1' ) ; target.append ( '2' ) ; target.append ( '3' ) ; ( timesRead ) ++ ; return 3 ; } else if ( ( timesRead ) == 2 ) { target.append ( 't' ) ; ( timesRead ) ++ ; return 1 ; } else { throw new java.io.IOException ( ) ; } }

Target:
public int read ( java.nio.CharBuffer target ) throws java.io.IOException { if ( ( timesRead ) == 0 ) { target.append ( '1' ) ; target.append ( '2' ) ; target.append ( '3' ) ; ( timesRead ) ++ ; return 3 ; } else if ( ( timesRead ) == 1 ) { target.append ( 't' ) ; ( timesRead ) ++ ; return 1 ; } else { throw new java.io.IOException ( ) ; } }
Source:
private int getDefaultCacheLimit ( ) { int cacheLimit = 0 ; try { java.lang.String s = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { @ java.lang.Override public java.lang.String run ( ) { return java.lang.System.getProperty ( "javax.net.ssl.sessionCacheSize" ) ; } } ) ; cacheLimit = ( s != null ) ? java.lang.Integer.valueOf ( s ) . intValue ( ) : 0 ; } catch ( java.lang.Exception e ) { } return cacheLimit > 0 ? cacheLimit : 0 ; }

Target:
private int getDefaultCacheLimit ( ) { int cacheLimit = 0 ; try { java.lang.String s = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { @ java.lang.Override public java.lang.String run ( ) { return java.lang.System.getProperty ( "javax.net.ssl.sessionCacheSize" ) ; } } ) ; cacheLimit = ( s != null ) ? java.lang.Integer.parseInt ( s ) : 0 ; } catch ( java.lang.Exception e ) { } return cacheLimit > 0 ? cacheLimit : 0 ; }
Source:
private void save ( java.io.File file ) throws java.io.IOException { org.w3c.dom.Document document = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.createEmptyDocument ( ) ; if ( document != null ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationDescription description : mList ) { description.toXml ( document ) ; } java.lang.String xml = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlPrettyPrinter.prettyPrint ( document ) ; com.google.common.io.Files.write ( xml , file , com.google.common.base.Charsets.UTF_8 ) ; } }

Target:
private void save ( java.io.File file ) throws java.io.IOException { org.w3c.dom.Document document = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.createEmptyDocument ( ) ; if ( document != null ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationDescription description : mList ) { description.toXml ( document ) ; } java.lang.String xml = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlPrettyPrinter.prettyPrint ( document , true ) ; com.google.common.io.Files.write ( xml , file , com.google.common.base.Charsets.UTF_8 ) ; } }
Source:
public void outjars ( java.util.Map filterArgs , java.lang.Object outJarFiles ) throws proguard.gradle.ParseException { this . outJarFiles.add ( getProject ( ) . file ( outJarFiles ) ) ; this . outJarFilters.add ( filterArgs ) ; this . inJarCounts.add ( java.lang.Integer.valueOf ( inJarFiles.size ( ) ) ) ; }

Target:
public void outjars ( java.util.Map filterArgs , java.lang.Object outJarFiles ) throws proguard.gradle.ParseException { this . outJarFiles.add ( outJarFiles ) ; this . outJarFilters.add ( filterArgs ) ; this . inJarCounts.add ( java.lang.Integer.valueOf ( inJarFiles.size ( ) ) ) ; }
Source:
public void testPut ( ) throws java.lang.InterruptedException { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { java.lang.Integer I = new java.lang.Integer ( i ) ; q.put ( I ) ; assertTrue ( q.contains ( I ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; }

Target:
public void testPut ( ) throws java.lang.InterruptedException { java.util.concurrent.ArrayBlockingQueue q = new java.util.concurrent.ArrayBlockingQueue ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { java.lang.Integer x = new java.lang.Integer ( i ) ; q.put ( x ) ; assertTrue ( q.contains ( x ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.ComponentRegistry.getDeviceSelectionModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( this , device ) ; focusChanged ( device ) ; } }

Target:
public void run ( ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; if ( viewServerInfo == null ) { return ; } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.ComponentRegistry.getDeviceSelectionModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( this , device ) ; focusChanged ( device ) ; } }
Source:
void addToSubroutine ( final long id , final int nbSubroutines ) { if ( ( ( status ) & ( org.objectweb.asm.Label.VISITED ) ) == 0 ) { status |= org.objectweb.asm.Label.VISITED ; srcAndRefPositions = new int [ ( ( nbSubroutines - 1 ) / 32 ) + 1 ] ; } srcAndRefPositions [ ( ( int ) ( id > > > 32 ) ) ] |= ( ( int ) ( id ) ) ; }

Target:
void addToSubroutine ( final long id , final int nbSubroutines ) { if ( ( ( status ) & ( org.objectweb.asm.Label.VISITED ) ) == 0 ) { status |= org.objectweb.asm.Label.VISITED ; srcAndRefPositions = new int [ ( nbSubroutines / 32 ) + 1 ] ; } srcAndRefPositions [ ( ( int ) ( id > > > 32 ) ) ] |= ( ( int ) ( id ) ) ; }
Source:
private static void testClassType ( java.lang.Class < ? > c ) throws java.lang.Exception { boolean isInterface = Main.isInterface ( c ) ; boolean isArray = Main.isArrayClass ( c ) ; boolean isModifiable = Main.isModifiableClass ( c ) ; java.lang.System.out.println ( ( ( ( ( ( ( ( c.getName ( ) ) + " interface=" ) + isInterface ) + " array=" ) + isArray ) + " modifiable=" ) + isModifiable ) ) ; }

Target:
private static void testClassType ( java.lang.Class < ? > c ) throws java.lang.Exception { boolean isInterface = Main.isInterface ( c ) ; boolean isArray = Main.isArrayClass ( c ) ; java.lang.System.out.println ( ( ( ( ( ( c.getName ( ) ) + " interface=" ) + isInterface ) + " array=" ) + isArray ) ) ; }
Source:
private javax.net.ssl.SSLEngine getEngine ( ) { javax.net.ssl.SSLContext context = null ; try { context = javax.net.ssl.SSLContext.getInstance ( "TLS" ) ; context.init ( null , null , null ) ; } catch ( java.security.KeyManagementException e ) { fail ( ( "Could not get SSLEngine: key management exception " + ( e.getMessage ( ) ) ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( ( "Could not get SSLEngine: no such algorithm " + ( e.getMessage ( ) ) ) ) ; } return context.createSSLEngine ( ) ; }

Target:
private javax.net.ssl.SSLEngine getEngine ( ) throws java.lang.Exception { javax.net.ssl.SSLContext context = javax.net.ssl.SSLContext.getInstance ( "TLS" ) ; context.init ( null , null , null ) ; return context.createSSLEngine ( ) ; }
Source:
public static java.lang.String getIndent ( org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document , org.w3c.dom.Node xmlNode ) { assert ( xmlNode.getNodeType ( ) ) == ( org.w3c.dom.Node.ELEMENT_NODE ) ; if ( xmlNode instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( xmlNode ) ) ; int startOffset = region.getStartOffset ( ) ; return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndentAtOffset ( document , startOffset ) ; } return "" ; }

Target:
public static java.lang.String getIndent ( org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document , org.w3c.dom.Node xmlNode ) { if ( xmlNode instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( xmlNode ) ) ; int startOffset = region.getStartOffset ( ) ; return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndentAtOffset ( document , startOffset ) ; } return "" ; }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }
Source:
public java.util.List < com.android.builder.dependency.JarDependency > getLocalDependencies ( ) { java.util.List < java.io.File > jars = getLocalJars ( ) ; java.util.List < com.android.builder.dependency.JarDependency > localDependencies = com.google.common.collect.Lists.newArrayListWithCapacity ( jars.size ( ) ) ; for ( java.io.File jar : jars ) { localDependencies.add ( new com.android.builder.dependency.JarDependency ( jar , true , true ) ) ; } return localDependencies ; }

Target:
public java.util.List < com.android.builder.dependency.JarDependency > getLocalDependencies ( ) { java.util.List < java.io.File > jars = getLocalJars ( ) ; java.util.List < com.android.builder.dependency.JarDependency > localDependencies = com.google.common.collect.Lists.newArrayListWithCapacity ( jars.size ( ) ) ; for ( java.io.File jar : jars ) { localDependencies.add ( new com.android.builder.dependency.JarDependency ( jar , true , true , null ) ) ; } return localDependencies ; }
Source:
public void testGetMaxAllowedKeyLength ( ) throws java.lang.Exception { try { javax.crypto.Cipher.getMaxAllowedKeyLength ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "" ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "//CBC/PKCS5Paddin" ) ; fail ( ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "/DES/CBC/PKCS5Paddin/1" ) ; fail ( ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } assertTrue ( ( ( javax.crypto.Cipher.getMaxAllowedKeyLength ( "/DES/CBC/PKCS5Paddin" ) ) > 0 ) ) ; }

Target:
public void testGetMaxAllowedKeyLength ( ) throws java.lang.Exception { try { javax.crypto.Cipher.getMaxAllowedKeyLength ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "" ) ; fail ( ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "//CBC/PKCS5Paddin" ) ; fail ( ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } try { javax.crypto.Cipher.getMaxAllowedKeyLength ( "/DES/CBC/PKCS5Paddin/1" ) ; fail ( ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } assertTrue ( ( ( javax.crypto.Cipher.getMaxAllowedKeyLength ( "/DES/CBC/PKCS5Paddin" ) ) > 0 ) ) ; }