auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void replaceUninitializedTypeInStack ( com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType oldType , com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType newType ) { com.google.common.base.Preconditions.checkArgument ( oldType.isUninitialized ( ) , "The old type is NOT uninitialized. %s" , oldType ) ; for ( int i = 0 , size = operandStack.size ( ) ; i < size ; ++ i ) { com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType type = operandStack.get ( i ) ; if ( type == oldType ) { operandStack.set ( i , newType ) ; } } }

Target:
private void replaceUninitializedTypeInStack ( com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType oldType , com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType newType ) { com.google.common.base.Preconditions.checkArgument ( oldType.isUninitialized ( ) , "The old type is NOT uninitialized. %s" , oldType ) ; for ( int i = 0 , size = operandStack.size ( ) ; i < size ; ++ i ) { com.google.devtools.build.android.desugar.BytecodeTypeInference.InferredType type = operandStack.get ( i ) ; if ( type.equals ( oldType ) ) { operandStack.set ( i , newType ) ; } } }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( ( mUsesRtlAttributes ) && ( ( mEnabledRtlSupport ) == null ) ) && ( rtlApplies ( context ) ) ) { java.util.List < java.io.File > manifestFile = context.getMainProject ( ) . getManifestFiles ( ) ; if ( ! ( manifestFile.isEmpty ( ) ) ) { com.android.tools.lint.detector.api.Location location = com.android.tools.lint.detector.api.Location.create ( manifestFile.get ( 0 ) ) ; context.report ( com.android.tools.lint.checks.RtlDetector.ENABLED , location , ( "The project references RTL attributes, but does not explicitly enable " + "or disable RTL support with `android:supportsRtl` in the manifest" ) , null ) ; } } }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( ( mUsesRtlAttributes ) && ( ( mEnabledRtlSupport ) == null ) ) && ( rtlApplies ( context ) ) ) { java.util.List < java.io.File > manifestFile = context.getMainProject ( ) . getManifestFiles ( ) ; if ( ! ( manifestFile.isEmpty ( ) ) ) { com.android.tools.lint.detector.api.Location location = com.android.tools.lint.detector.api.Location.create ( manifestFile.get ( 0 ) ) ; context.report ( com.android.tools.lint.checks.RtlDetector.ENABLED , location , ( "The project references RTL attributes, but does not explicitly enable " + "or disable RTL support with `android:supportsRtl` in the manifest" ) ) ; } } }
Source:
public void compareLibCoreStructure ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.checkStructure ( options , null , null , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , false , false , 0.1F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public void compareLibCoreStructure ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.checkStructure ( options , null , null , null , null , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , false , false , 0.1F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
private void delay ( long duration ) { if ( duration > 0 ) { long bedtime = android.os.SystemClock.uptimeMillis ( ) ; do { try { this . wait ( duration ) ; } catch ( java.lang.InterruptedException e ) { } if ( mDone ) { break ; } duration = ( duration - ( android.os.SystemClock.uptimeMillis ( ) ) ) - bedtime ; } while ( duration > 0 ) ; } }

Target:
private void delay ( long duration ) { if ( duration > 0 ) { long bedtime = duration + ( android.os.SystemClock.uptimeMillis ( ) ) ; do { try { this . wait ( duration ) ; } catch ( java.lang.InterruptedException e ) { } if ( mDone ) { break ; } duration = bedtime - ( android.os.SystemClock.uptimeMillis ( ) ) ; } while ( duration > 0 ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; this . localAddr1 = new java.net.InetSocketAddress ( "127.0.0.1" , tests.support.Support_PortManager.getNextPort ( ) ) ; this . serverChannel = java.nio.channels.ServerSocketChannel.open ( ) ; this . clientChannel = java.nio.channels.SocketChannel.open ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; this . serverChannel = java.nio.channels.ServerSocketChannel.open ( ) ; this . clientChannel = java.nio.channels.SocketChannel.open ( ) ; }
Source:
public void testRendering800x480RemotelyWith3Windows ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480RemotelyWith3Windows" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , true , true ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }

Target:
public void testRendering800x480RemotelyWith3Windows ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480RemotelyWith3Windows" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( maxRes == null ) return ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , true , true ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }
Source:
public void setTerminated ( ) { if ( myState.isFinal ( ) ) { return ; } myState = TerminatedState.INSTANCE ; final java.util.List < ? extends com.google.gct.testing.results.GoogleCloudTestProxy > children = getChildren ( ) ; for ( com.google.gct.testing.results.GoogleCloudTestProxy child : children ) { child.setTerminated ( ) ; } fireOnNewPrintable ( myState ) ; }

Target:
public void setTerminated ( ) { if ( myState.isFinal ( ) ) { return ; } myState = TerminatedState.INSTANCE ; for ( com.google.gct.testing.results.GoogleCloudTestProxy child : getChildren ( ) ) { child.setTerminated ( ) ; } fireOnNewPrintable ( myState ) ; }
Source:
public void doneVisiting ( org.eclipse.core.resources.IProject project , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders ) { if ( mDeltaVisitor.getForceCompile ( ) ) { buildCompilationList ( project , sourceFolders ) ; } else { mergeFileModifications ( mDeltaVisitor ) ; } mDeltaVisitor.reset ( ) ; saveState ( project ) ; }

Target:
public final void doneVisiting ( org.eclipse.core.resources.IProject project ) { mergeFileModifications ( mDeltaVisitor ) ; mDeltaVisitor.reset ( ) ; saveState ( project ) ; }
Source:
public void downloadSubscription ( android.telephony.euicc.DownloadableSubscription subscription , boolean switchAfterDownload , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . downloadSubscription ( subscription , switchAfterDownload , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void downloadSubscription ( android.telephony.euicc.DownloadableSubscription subscription , boolean switchAfterDownload , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . downloadSubscription ( subscription , switchAfterDownload , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public static float scalb ( float f , int scale_factor ) { final int MAX_SCALE = ( ( ( sun.misc.FloatConsts.MAX_EXPONENT ) + ( - ( sun.misc.FloatConsts.MIN_EXPONENT ) ) ) + ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) ) + 1 ; scale_factor = java.lang.Math.max ( java.lang.Math.min ( scale_factor , MAX_SCALE ) , ( - MAX_SCALE ) ) ; return ( ( float ) ( ( ( double ) ( f ) ) * ( sun.misc.FpUtils.powerOfTwoD ( scale_factor ) ) ) ) ; }

Target:
public static float scalb ( float f , int scale_factor ) { return java.lang.Math.scalb ( f , scale_factor ) ; }
Source:
public com.android.jill.api.v01.Cli01TranslationTask getTask ( @ javax.annotation.Nonnull java.lang.String [ ] args ) throws com.android.jill.api.v01.ConfigurationException { try { com.android.jill.Options options = com.android.jill.Main.getOptions ( args ) ; options.setStandardError ( standardError ) ; options.setWorkingDirectory ( workingDirectory ) ; return new com.android.jill.api.v01.impl.Cli01ConfigImpl.Cli01TranslationTaskImpl ( options ) ; } catch ( org.kohsuke.args4j.CmdLineException e ) { throw new com.android.jill.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( java.io.IOException | com.android.sched.util.file.SchedIOException e ) { throw new com.android.jill.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.jill.api.v01.Cli01TranslationTask getTask ( @ javax.annotation.Nonnull java.lang.String [ ] args ) throws com.android.jill.api.v01.ConfigurationException { try { com.android.jill.Options options = com.android.jill.Main.getOptions ( args ) ; options.setStandardError ( standardError ) ; options.setWorkingDirectory ( workingDirectory ) ; return new com.android.jill.api.v01.impl.Cli01ConfigImpl.Cli01TranslationTaskImpl ( options ) ; } catch ( org.kohsuke.args4j.CmdLineException e ) { throw new com.android.jill.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.sched.util.file.SchedIOException e ) { throw new com.android.jill.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } }
Source:
public com.android.tools.lint.detector.api.Severity getSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { com.android.tools.lint.detector.api.Severity severity = computeSeverity ( issue ) ; if ( ( mFatalOnly ) && ( severity != ( com.android.tools.lint.detector.api.Severity.FATAL ) ) ) { return com.android.tools.lint.detector.api.Severity.IGNORE ; } if ( ( mFlags.isWarningsAsErrors ( ) ) && ( ( severity.compareTo ( Severity.ERROR ) ) < 0 ) ) { severity = com.android.tools.lint.detector.api.Severity.ERROR ; } if ( ( mFlags.isIgnoreWarnings ( ) ) && ( severity == ( com.android.tools.lint.detector.api.Severity.WARNING ) ) ) { severity = com.android.tools.lint.detector.api.Severity.IGNORE ; } return severity ; }

Target:
public com.android.tools.lint.detector.api.Severity getSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { com.android.tools.lint.detector.api.Severity severity = computeSeverity ( issue ) ; if ( ( mFatalOnly ) && ( severity != ( com.android.tools.lint.detector.api.Severity.FATAL ) ) ) { return com.android.tools.lint.detector.api.Severity.IGNORE ; } if ( ( mFlags.isWarningsAsErrors ( ) ) && ( ( severity.compareTo ( Severity.ERROR ) ) > 0 ) ) { severity = com.android.tools.lint.detector.api.Severity.ERROR ; } if ( ( mFlags.isIgnoreWarnings ( ) ) && ( severity == ( com.android.tools.lint.detector.api.Severity.WARNING ) ) ) { severity = com.android.tools.lint.detector.api.Severity.IGNORE ; } return severity ; }
Source:
private void onDataConnectionRedirected ( java.lang.String redirectUrl ) { if ( ! ( android.text.TextUtils.isEmpty ( redirectUrl ) ) ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_CARRIER_SIGNAL_REDIRECTED ) ; intent.putExtra ( TelephonyIntents.EXTRA_REDIRECTION_URL_KEY , redirectUrl ) ; if ( mPhone.getCarrierSignalAgent ( ) . notifyCarrierSignalReceivers ( intent ) ) { log ( ( "Notify carrier signal receivers with redirectUrl: " + redirectUrl ) ) ; } } }

Target:
private void onDataConnectionRedirected ( java.lang.String redirectUrl ) { if ( ! ( android.text.TextUtils.isEmpty ( redirectUrl ) ) ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_CARRIER_SIGNAL_REDIRECTED ) ; intent.putExtra ( TelephonyIntents.EXTRA_REDIRECTION_URL_KEY , redirectUrl ) ; mPhone.getCarrierSignalAgent ( ) . notifyCarrierSignalReceivers ( intent ) ; log ( ( "Notify carrier signal receivers with redirectUrl: " + redirectUrl ) ) ; } }
Source:
private static void assignIndices ( com.android.jack.dx.dex.code.CstInsn insn , com.android.jack.dx.dex.code.DalvCode.AssignIndicesCallback callback ) { com.android.jack.dx.rop.cst.Constant cst = insn.getConstant ( ) ; int index = callback.getIndex ( cst ) ; if ( index >= 0 ) { insn.setIndex ( index ) ; } if ( cst instanceof com.android.jack.dx.rop.cst.CstMemberRef ) { com.android.jack.dx.rop.cst.CstMemberRef member = ( ( com.android.jack.dx.rop.cst.CstMemberRef ) ( cst ) ) ; com.android.jack.dx.rop.cst.CstType definer = member.getDefiningClass ( ) ; index = callback.getIndex ( definer ) ; if ( index >= 0 ) { insn.setClassIndex ( index ) ; } } }

Target:
private static void assignIndices ( com.android.jack.dx.dex.code.CstInsn insn , com.android.jack.dx.dex.code.DalvCode.AssignIndicesCallback callback ) { com.android.jack.dx.rop.cst.Constant cst = insn.getConstant ( ) ; int index = callback.getIndex ( cst ) ; if ( index >= 0 ) { insn.setIndex ( index ) ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { if ( ( ( mPhone.getIccCard ( ) ) != null ) && ( ( IccCardConstants.State.ABSENT ) == ( mPhone.getIccCard ( ) . getState ( ) ) ) ) { notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; } loadCarrierConfig ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { loadCarrierConfig ( ) ; } }
Source:
public void testSetSelection ( ) { mGridView = new android.widget.GridView ( mActivity ) ; mGridView.setSelection ( 0 ) ; org.junit.Assert.assertEquals ( 0 , mGridView.getSelectedItemPosition ( ) ) ; mGridView.setSelection ( ( - 1 ) ) ; org.junit.Assert.assertEquals ( ( - 1 ) , mGridView.getSelectedItemPosition ( ) ) ; mGridView.setSelection ( mGridView.getCount ( ) ) ; org.junit.Assert.assertEquals ( mGridView.getCount ( ) , mGridView.getSelectedItemPosition ( ) ) ; }

Target:
public void testSetSelection ( ) { mGridView = new android.widget.GridView ( mActivity ) ; mGridView.setSelection ( 0 ) ; assertEquals ( 0 , mGridView.getSelectedItemPosition ( ) ) ; mGridView.setSelection ( ( - 1 ) ) ; assertEquals ( ( - 1 ) , mGridView.getSelectedItemPosition ( ) ) ; mGridView.setSelection ( mGridView.getCount ( ) ) ; assertEquals ( mGridView.getCount ( ) , mGridView.getSelectedItemPosition ( ) ) ; }
Source:
private static android.graphics.Bitmap createBitmap ( android.graphics.Bitmap_Delegate delegate , java.util.Set < android.graphics.Bitmap_Delegate.BitmapCreateFlags > createFlags , int density ) { int nativeInt = android.graphics.Bitmap_Delegate.sManager.addNewDelegate ( delegate ) ; int width = delegate.mImage.getWidth ( ) ; int height = delegate.mImage.getHeight ( ) ; boolean isMutable = createFlags.contains ( android.graphics.Bitmap_Delegate.BitmapCreateFlags.MUTABLE ) ; boolean isPremultiplied = createFlags.contains ( android.graphics.Bitmap_Delegate.BitmapCreateFlags.PREMULTIPLIED ) ; return new android.graphics.Bitmap ( nativeInt , null , width , height , density , isMutable , isPremultiplied , null , null ) ; }

Target:
private static android.graphics.Bitmap createBitmap ( android.graphics.Bitmap_Delegate delegate , java.util.Set < android.graphics.Bitmap_Delegate.BitmapCreateFlags > createFlags , int density ) { long nativeInt = android.graphics.Bitmap_Delegate.sManager.addNewDelegate ( delegate ) ; int width = delegate.mImage.getWidth ( ) ; int height = delegate.mImage.getHeight ( ) ; boolean isMutable = createFlags.contains ( android.graphics.Bitmap_Delegate.BitmapCreateFlags.MUTABLE ) ; boolean isPremultiplied = createFlags.contains ( android.graphics.Bitmap_Delegate.BitmapCreateFlags.PREMULTIPLIED ) ; return new android.graphics.Bitmap ( nativeInt , null , width , height , density , isMutable , isPremultiplied , null , null ) ; }
Source:
public void testRefactor1 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , false , true , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Rename package \'com.example.refactoringtest\' to \'my.pkg.name\'\n" ) + "\n" ) + "* MainActivity.java - /testRefactor1/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -3 +3\n" ) + " + import com.example.refactoringtest.R;\n" ) + " +\n" ) + "\n" ) + "\n" ) + "* AndroidManifest.xml - /testRefactor1/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"my.pkg.name.MainActivity\"" ) ) ) ; }

Target:
public void testRefactor1 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , false , true , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Rename package \'com.example.refactoringtest\' to \'my.pkg.name\'\n" ) + "\n" ) + "* MainActivity.java - /testRefactor1/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -3 +3\n" ) + " + import com.example.refactoringtest.R;\n" ) + " +\n" ) + "\n" ) + "\n" ) + "* activity_main.xml - /testRefactor1/res/layout/activity_main.xml\n" ) + " @@ -33 +33\n" ) + " - <fragment android:name=\"com.example.refactoringtest.MyFragment\"/>\n" ) + " + <fragment android:name=\"my.pkg.name.MyFragment\"/>\n" ) + "\n" ) + "\n" ) + "* AndroidManifest.xml - /testRefactor1/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"my.pkg.name.MainActivity\"\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\"my.pkg.name.MainActivity2\"" ) ) ) ; }
Source:
public void copyTo ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; validateIsInt8 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d , Element.DataType.SIGNED_8 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyTo ( byte [ ] d ) { validateIsInt8 ( ) ; copyTo ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public java.lang.String toString ( ) { final java.lang.StringBuilder sb = new java.lang.StringBuilder ( "OpenSSLRSAPrivateKey{" ) ; final boolean engineBased = key.isEngineBased ( ) ; if ( engineBased ) { sb.append ( "key=" ) ; sb.append ( key ) ; sb.append ( '}' ) ; } ensureReadParams ( ) ; sb.append ( "modulus=" ) ; sb.append ( modulus.toString ( 16 ) ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { final java.lang.StringBuilder sb = new java.lang.StringBuilder ( "OpenSSLRSAPrivateKey{" ) ; ensureReadParams ( ) ; sb.append ( "modulus=" ) ; sb.append ( modulus.toString ( 16 ) ) ; return sb.toString ( ) ; }
Source:
private static java.util.List < com.google.currysrc.api.process.Rule > createTransformRules ( ) { java.util.List < com.google.currysrc.api.process.Rule > rules = com.google.common.collect.Lists.newArrayList ( Icu4jTransform.Icu4jRules.getRepackagingRules ( ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.RunWithAnnotator ( ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.google.currysrc.processors.ReplaceTextCommentScanner ( Icu4jTransform.ORIGINAL_ICU_PACKAGE , Icu4jTransform.ANDROID_ICU_PACKAGE ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler ( ) ) ) ; return rules ; }

Target:
private static java.util.List < com.google.currysrc.api.process.Rule > createTransformRules ( ) { java.util.List < com.google.currysrc.api.process.Rule > rules = com.google.common.collect.Lists.newArrayList ( Icu4jTransform.Icu4jRules.getRepackagingRules ( ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.google.currysrc.processors.ReplaceTextCommentScanner ( Icu4jTransform.ORIGINAL_ICU_PACKAGE , Icu4jTransform.ANDROID_ICU_PACKAGE ) ) ) ; rules.add ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( new com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler ( ) ) ) ; return rules ; }
Source:
public void close ( ) throws java.io.IOException { guard.close ( ) ; synchronized ( this ) { if ( ( ( channel ) != null ) && ( channel.isOpen ( ) ) ) { channel.close ( ) ; channel = null ; } libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }

Target:
public void close ( ) throws java.io.IOException { guard.close ( ) ; synchronized ( this ) { if ( ( ( channel ) != null ) && ( channel.isOpen ( ) ) ) { channel.close ( ) ; } libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }
Source:
void stopProfileServices ( ) { mAdapterProperties.onBluetoothDisable ( ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( ( mRunningProfiles.size ( ) ) < 1 ) || ( ( ( mRunningProfiles.size ( ) ) == 1 ) && ( com.android.bluetooth.gatt.GattService.class . getSimpleName ( ) . equals ( mRunningProfiles.get ( 0 ) . getName ( ) ) ) ) ) { debugLog ( "stopProfileServices() - No profiles services to stop or already stopped." ) ; mAdapterStateMachine.sendMessage ( AdapterState.BREDR_STOPPED ) ; } setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_OFF ) ; }

Target:
void stopProfileServices ( ) { mAdapterProperties.onBluetoothDisable ( ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; if ( ( ( supportedProfileServices.length ) == 1 ) && ( ( ( mRunningProfiles.size ( ) ) == 1 ) && ( com.android.bluetooth.gatt.GattService.class . getSimpleName ( ) . equals ( mRunningProfiles.get ( 0 ) . getName ( ) ) ) ) ) { debugLog ( "stopProfileServices() - No profiles services to stop or already stopped." ) ; mAdapterStateMachine.sendMessage ( AdapterState.BREDR_STOPPED ) ; } else { setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_OFF ) ; } }
Source:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { long c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; long s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void installDrmEngine ( java.lang.String engineFilePath ) { if ( ( null == engineFilePath ) || ( engineFilePath.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "Given engineFilePath: " + engineFilePath ) + "is not valid" ) ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _installDrmEngine ( mUniqueId , engineFilePath ) ; }

Target:
public void installDrmEngine ( java.lang.String engineFilePath ) { if ( ( null == engineFilePath ) || ( engineFilePath.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "Given engineFilePath: " + engineFilePath ) + "is not valid" ) ) ; } _installDrmEngine ( mUniqueId , engineFilePath ) ; }
Source:
public void createUnitTestVariantTasks ( @ com.android.annotations.NonNull com.android.build.gradle.internal.TaskFactory tasks , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.TestVariantData variantData ) { variantData.assembleVariantTask.dependsOn ( createMockableJar ) ; com.android.build.gradle.internal.scope.VariantScope variantScope = variantData.getScope ( ) ; createPreBuildTasks ( variantScope ) ; createProcessJavaResTasks ( tasks , variantScope ) ; createCompileAnchorTask ( tasks , variantScope ) ; com.android.build.gradle.internal.scope.AndroidTask < org.gradle.api.tasks.compile.JavaCompile > javacTask = createJavacTask ( tasks , variantScope ) ; com.android.build.gradle.internal.TaskManager.setJavaCompilerTask ( javacTask , tasks , variantScope ) ; createUnitTestTask ( tasks , variantData ) ; variantData.assembleVariantTask.setGroup ( null ) ; }

Target:
public void createUnitTestVariantTasks ( @ com.android.annotations.NonNull com.android.build.gradle.internal.TaskFactory tasks , @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.TestVariantData variantData ) { variantData.assembleVariantTask.dependsOn ( createMockableJar.getName ( ) ) ; com.android.build.gradle.internal.scope.VariantScope variantScope = variantData.getScope ( ) ; createPreBuildTasks ( variantScope ) ; createProcessJavaResTasks ( tasks , variantScope ) ; createCompileAnchorTask ( tasks , variantScope ) ; com.android.build.gradle.internal.scope.AndroidTask < org.gradle.api.tasks.compile.JavaCompile > javacTask = createJavacTask ( tasks , variantScope ) ; com.android.build.gradle.internal.TaskManager.setJavaCompilerTask ( javacTask , tasks , variantScope ) ; createUnitTestTask ( tasks , variantScope ) ; variantData.assembleVariantTask.setGroup ( null ) ; }
Source:
public void addObj ( android.support.v8.renderscript.BaseObj obj ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { if ( obj != null ) { mN.addObj ( obj.getNObj ( ) ) ; } else { mN.addObj ( null ) ; } return ; } if ( obj != null ) { addI32 ( obj.getID ( null ) ) ; } else { addI32 ( 0 ) ; } }

Target:
public void addObj ( android.support.v8.renderscript.BaseObj obj ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addObj ( obj ) ; return ; } if ( obj != null ) { addI32 ( obj.getID ( null ) ) ; } else { addI32 ( 0 ) ; } }
Source:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public com.android.ide.common.api.Margins getInsets ( java.lang.String fqcn ) { if ( com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.INSETS_SUPPORTED ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser configComposite = mEditorDelegate.getGraphicalEditor ( ) . getConfigurationChooser ( ) ; java.lang.String theme = configComposite.getThemeName ( ) ; com.android.resources.Density density = configComposite.getConfiguration ( ) . getDensity ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.getInsets ( fqcn , density , theme ) ; } else { return null ; } }

Target:
public com.android.ide.common.api.Margins getInsets ( java.lang.String fqcn ) { if ( com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.INSETS_SUPPORTED ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser configComposite = getGraphicalEditor ( ) . getConfigurationChooser ( ) ; java.lang.String theme = configComposite.getThemeName ( ) ; com.android.resources.Density density = configComposite.getConfiguration ( ) . getDensity ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gre.ViewMetadataRepository.getInsets ( fqcn , density , theme ) ; } else { return null ; } }
Source:
private void setup ( ) { loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.DIGEST_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.DIGESTS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_GENERIC ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_MACS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_CIPHERS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_GENERIC ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_CIPHERS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.KEYSTORE_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.KEYSTORES ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SECURE_RANDOM_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SECURE_RANDOMS ) ; put ( "CertPathValidator.PKIX" , "org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi" ) ; put ( "CertPathBuilder.PKIX" , "org.bouncycastle.jce.provider.PKIXCertPathBuilderSpi" ) ; put ( "CertStore.Collection" , "org.bouncycastle.jce.provider.CertStoreCollectionSpi" ) ; }

Target:
private void setup ( ) { loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.DIGEST_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.DIGESTS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_GENERIC ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_MACS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.SYMMETRIC_CIPHERS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_GENERIC ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.ASYMMETRIC_CIPHERS ) ; loadAlgorithms ( org.bouncycastle.jce.provider.BouncyCastleProvider.KEYSTORE_PACKAGE , org.bouncycastle.jce.provider.BouncyCastleProvider.KEYSTORES ) ; put ( "CertPathValidator.PKIX" , "org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi" ) ; put ( "CertPathBuilder.PKIX" , "org.bouncycastle.jce.provider.PKIXCertPathBuilderSpi" ) ; put ( "CertStore.Collection" , "org.bouncycastle.jce.provider.CertStoreCollectionSpi" ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( Intent.ACTION_SCREEN_ON ) ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_SCREEN_STATE_CHANGED , 1 ) ; } else if ( action.equals ( Intent.ACTION_SCREEN_OFF ) ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_SCREEN_STATE_CHANGED , 0 ) ; } else if ( action.equals ( com.android.server.wifi.WifiStateMachine.ACTION_REFRESH_BATCHED_SCAN ) ) { startNextBatchedScanAsync ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( Intent.ACTION_SCREEN_ON ) ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_SCREEN_STATE_CHANGED , 1 ) ; } else if ( action.equals ( Intent.ACTION_SCREEN_OFF ) ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_SCREEN_STATE_CHANGED , 0 ) ; } }
Source:
public void enter ( ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "DcDefaultState: enter" ) ; mPhone.getServiceStateTracker ( ) . registerForDataRegStateOrRatChanged ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_DRS_OR_RAT_CHANGED , null ) ; mPhone.getServiceStateTracker ( ) . registerForDataRoamingOn ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_ROAM_ON , null ) ; mPhone.getServiceStateTracker ( ) . registerForDataRoamingOff ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_ROAM_OFF , null ) ; mDcController.addDc ( this ) ; }

Target:
public void enter ( ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "DcDefaultState: enter" ) ; mPhone.getServiceStateTracker ( ) . registerForDataRegStateOrRatChanged ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_DRS_OR_RAT_CHANGED , null ) ; mPhone.getServiceStateTracker ( ) . registerForDataRoamingOn ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_ROAM_ON , null ) ; mPhone.getServiceStateTracker ( ) . registerForDataRoamingOff ( getHandler ( ) , com.android.internal.telephony.dataconnection.DataConnection.EVENT_DATA_CONNECTION_ROAM_OFF , null , true ) ; mDcController.addDc ( this ) ; }
Source:
public synchronized void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; try { getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , tc ) ; } catch ( java.net.SocketException se ) { if ( ! ( isConnected ( ) ) ) throw se ; } }

Target:
public synchronized void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , new java.lang.Integer ( tc ) ) ; }
Source:
public static PhotoInfo.Builder toPhotoInfoBuilder ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.newBuilder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsSpam ( numberAttributes.getIsSpam ( ) ) . setIsVoicemail ( numberAttributes.getIsVoicemail ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) ; }

Target:
public static PhotoInfo.Builder toPhotoInfoBuilder ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.newBuilder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsSpam ( numberAttributes.getIsSpam ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) ; }
Source:
public void testAddAll3 ( ) { try { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testAddAll3 ( ) { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new java.lang.Integer ( i ) ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
private com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize getTestSize ( org.eclipse.debug.core.ILaunchConfiguration configuration ) { java.lang.String testSizeAnnotation = getStringLaunchAttribute ( com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigDelegate.ATTR_TEST_SIZE , configuration ) ; if ( testSizeAnnotation.equals ( AndroidJUnitLaunchConfigurationTab.SMALL_TEST_ANNOTATION ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.SMALL ; } else if ( testSizeAnnotation.equals ( AndroidJUnitLaunchConfigurationTab.MEDIUM_TEST_ANNOTATION ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.MEDIUM ; } else if ( testSizeAnnotation.equals ( AndroidJUnitLaunchConfigurationTab.LARGE_TEST_ANNOTATION ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.LARGE ; } else { return null ; } }

Target:
private com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize getTestSize ( org.eclipse.debug.core.ILaunchConfiguration configuration ) { java.lang.String testSizeAnnotation = getStringLaunchAttribute ( com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigDelegate.ATTR_TEST_SIZE , configuration ) ; if ( AndroidJUnitLaunchConfigurationTab.SMALL_TEST_ANNOTATION.equals ( testSizeAnnotation ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.SMALL ; } else if ( AndroidJUnitLaunchConfigurationTab.MEDIUM_TEST_ANNOTATION.equals ( testSizeAnnotation ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.MEDIUM ; } else if ( AndroidJUnitLaunchConfigurationTab.LARGE_TEST_ANNOTATION.equals ( testSizeAnnotation ) ) { return com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize.LARGE ; } else { return null ; } }
Source:
private void appendUpdateToolWindowsPaneCmd ( final java.util.List < com.intellij.openapi.wm.impl.FinalizableCommand > commandsList ) { final javax.swing.JRootPane rootPane = myFrame.getRootPane ( ) ; final com.intellij.openapi.wm.impl.FinalizableCommand command = new com.intellij.openapi.wm.impl.UpdateRootPaneCmd ( rootPane , myWindowManager.getCommandProcessor ( ) ) ; commandsList.add ( command ) ; }

Target:
private void appendUpdateToolWindowsPaneCmd ( final java.util.List < com.intellij.openapi.wm.impl.FinalizableCommand > commandsList ) { final javax.swing.JRootPane rootPane = myFrame.getRootPane ( ) ; if ( rootPane != null ) { final com.intellij.openapi.wm.impl.FinalizableCommand command = new com.intellij.openapi.wm.impl.UpdateRootPaneCmd ( rootPane , myWindowManager.getCommandProcessor ( ) ) ; commandsList.add ( command ) ; } }
Source:
private void writeAnnotationMethods ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) throws java.io.IOException { assert com.android.jill.frontend.java.AsmHelper.isAnnotation ( cn ) ; writer.writeOpenNodeList ( ) ; for ( org.objectweb.asm.tree.MethodNode mn : cn.methods ) { new com.android.jill.frontend.java.MethodBodyWriter ( writer , annotWriter , cn , mn , sourceInfoWriter ) . write ( ) ; } writer.writeCloseNodeList ( ) ; }

Target:
private void writeAnnotationMethods ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) throws java.io.IOException { assert com.android.jill.frontend.java.AsmHelper.isAnnotation ( cn ) ; writer.writeOpenNodeList ( ) ; for ( org.objectweb.asm.tree.MethodNode mn : cn.methods ) { new com.android.jill.frontend.java.MethodBodyWriter ( writer , annotWriter , cn , mn , sourceInfoWriter , options ) . write ( ) ; } writer.writeCloseNodeList ( ) ; }
Source:
public static android.net.NetworkScorerAppManager.NetworkScorerAppData getScorer ( android.content.Context context , java.lang.String packageName ) { if ( android.text.TextUtils.isEmpty ( packageName ) ) { return null ; } java.util.Collection < android.net.NetworkScorerAppManager.NetworkScorerAppData > applications = android.net.NetworkScorerAppManager.getAllValidScorers ( context ) ; for ( android.net.NetworkScorerAppManager.NetworkScorerAppData app : applications ) { if ( packageName.equals ( app.mPackageName ) ) { return app ; } } return null ; }

Target:
public android.net.NetworkScorerAppManager.NetworkScorerAppData getScorer ( java.lang.String packageName ) { if ( android.text.TextUtils.isEmpty ( packageName ) ) { return null ; } java.util.Collection < android.net.NetworkScorerAppManager.NetworkScorerAppData > applications = getAllValidScorers ( ) ; for ( android.net.NetworkScorerAppManager.NetworkScorerAppData app : applications ) { if ( packageName.equals ( app.mPackageName ) ) { return app ; } } return null ; }
Source:
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.JDefinedClass ) { com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( type.getEnclosingPackage ( ) ) ; tr.append ( new com.android.jack.transformations.request.RemoveEnclosingMethod ( ( ( com.android.jack.ir.ast.JDefinedClass ) ( type ) ) ) ) ; 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.JDefinedClass ) { com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( type ) ; tr.append ( new com.android.jack.transformations.request.RemoveEnclosingMethod ( ( ( com.android.jack.ir.ast.JDefinedClass ) ( type ) ) ) ) ; tr.commit ( ) ; } }
Source:
private void installTemplate ( java.lang.String templateName , java.io.File destFile , java.util.Map < java.lang.String , java.lang.String > placeholderMap ) throws com.android.sdklib.internal.project.ProjectCreator.ProjectCreateException { java.lang.String templateFolder = ( ( mSdkFolder ) + ( java.io.File.separator ) ) + ( com.android.SdkConstants.OS_SDK_TOOLS_LIB_FOLDER ) ; final java.lang.String sourcePath = ( templateFolder + ( java.io.File.separator ) ) + templateName ; installFullPathTemplate ( sourcePath , destFile , placeholderMap ) ; }

Target:
public void installTemplate ( java.lang.String templateName , java.io.File destFile , java.util.Map < java.lang.String , java.lang.String > placeholderMap ) throws com.android.sdklib.internal.project.ProjectCreator.ProjectCreateException { java.lang.String templateFolder = ( ( mSdkFolder ) + ( java.io.File.separator ) ) + ( com.android.SdkConstants.OS_SDK_TOOLS_LIB_FOLDER ) ; final java.lang.String sourcePath = ( templateFolder + ( java.io.File.separator ) ) + templateName ; installFullPathTemplate ( sourcePath , destFile , placeholderMap ) ; }
Source:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }

Target:
public void enableVerboseLogging ( int verbose ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; }
Source:
private boolean shouldTurnOffFullNetworkUpdate ( ) { if ( mIsPowerSaveOn ) { return true ; } if ( ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( mIsTetheringOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_FULL_NETWORK_STATE ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }

Target:
private boolean shouldTurnOffFullNetworkUpdate ( ) { if ( ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( mIsTetheringOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_FULL_NETWORK_STATE ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }
Source:
public boolean hasPrimaryClip ( java.lang.String callingPackage ) { synchronized ( this ) { if ( ( ! ( clipboardAccessAllowed ( AppOpsManager.OP_READ_CLIPBOARD , callingPackage , android.os.Binder.getCallingUid ( ) ) ) ) || ( isDeviceLocked ( ) ) ) { return false ; } return ( getClipboard ( ) . primaryClip ) != null ; } }

Target:
public boolean hasPrimaryClip ( java.lang.String callingPackage ) { synchronized ( this ) { if ( ! ( clipboardAccessAllowed ( AppOpsManager.OP_READ_CLIPBOARD , callingPackage , android.os.Binder.getCallingUid ( ) ) ) ) { return false ; } return ( getClipboard ( ) . primaryClip ) != null ; } }
Source:
public boolean onStopJob ( android.app.job.JobParameters params ) { if ( com.android.server.pm.PackageManagerService.DEBUG_DEXOPT ) { android.util.Log.i ( com.android.server.pm.BackgroundDexOptService.TAG , "onStopJob" ) ; } if ( ( params.getJobId ( ) ) == ( com.android.server.pm.BackgroundDexOptService.JOB_POST_BOOT_UPDATE ) ) { mAbortPostBootUpdate.set ( true ) ; } else { mAbortIdleOptimization.set ( true ) ; } return false ; }

Target:
public boolean onStopJob ( android.app.job.JobParameters params ) { if ( com.android.server.pm.PackageManagerService.DEBUG_DEXOPT ) { android.util.Log.i ( com.android.server.pm.BackgroundDexOptService.TAG , "onStopJob" ) ; } if ( ( params.getJobId ( ) ) == ( com.android.server.pm.BackgroundDexOptService.JOB_POST_BOOT_UPDATE ) ) { mAbortPostBootUpdate.set ( true ) ; return false ; } else { mAbortIdleOptimization.set ( true ) ; return true ; } }