auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( ( mWhen ) == ( com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer.When.AFTER ) ) { return ; } try { if ( instrument ( device , buildInfo ) ) { logInfo ( "Target preparation successful" ) ; } else { throw new com.android.tradefed.targetprep.TargetSetupError ( "Not all target preparation steps completed" ) ; } } catch ( java.io.FileNotFoundException e ) { throw new com.android.tradefed.targetprep.TargetSetupError ( "Couldn't find apk to instrument" , e ) ; } }

Target:
public void run ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { if ( ( mWhen ) == ( com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer.When.AFTER ) ) { return ; } try { if ( instrument ( device , buildInfo ) ) { logInfo ( "Target preparation successful" ) ; } else if ( mThrowError ) { throw new com.android.tradefed.targetprep.TargetSetupError ( "Not all target preparation steps completed" ) ; } } catch ( java.io.FileNotFoundException e ) { throw new com.android.tradefed.targetprep.TargetSetupError ( "Couldn't find apk to instrument" , e ) ; } }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object param1 ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }
Source:
private void doAdd ( ) { com.google.gct.testing.CloudTestConfigurationImpl newConfiguration = ( ( selectedConfiguration ) != null ) ? selectedConfiguration.copy ( "Copy of " ) : new com.google.gct.testing.CloudTestConfigurationImpl ( facet ) ; newConfiguration.setIcon ( CloudTestConfigurationProviderImpl.DEFAULT_ICON ) ; int addIndex = ( ( selectedConfiguration ) == null ) ? editableConfigurations.size ( ) : ( editableConfigurations.indexOf ( selectedConfiguration ) ) + 1 ; editableConfigurations.add ( addIndex , newConfiguration ) ; addConfigurationToTree ( addIndex , newConfiguration , true ) ; selectedConfiguration = newConfiguration ; updateConfigurationTree ( ) ; }

Target:
private void addNewConfiguration ( com.google.gct.testing.CloudTestConfigurationImpl newConfiguration ) { newConfiguration.setIcon ( CloudTestConfigurationProviderImpl.DEFAULT_ICON ) ; int addIndex = ( ( selectedConfiguration ) == null ) ? editableConfigurations.size ( ) : ( editableConfigurations.indexOf ( selectedConfiguration ) ) + 1 ; editableConfigurations.add ( addIndex , newConfiguration ) ; addConfigurationToTree ( addIndex , newConfiguration , true ) ; selectedConfiguration = newConfiguration ; updateConfigurationTree ( ) ; }
Source:
public android.content.pm.FeatureInfo [ ] getSystemAvailableFeatures ( ) { java.util.Collection < android.content.pm.FeatureInfo > featSet ; synchronized ( mPackages ) { featSet = mAvailableFeatures.values ( ) ; int size = featSet.size ( ) ; if ( size > 0 ) { android.content.pm.FeatureInfo [ ] features = new android.content.pm.FeatureInfo [ size + 1 ] ; featSet.toArray ( features ) ; android.content.pm.FeatureInfo fi = new android.content.pm.FeatureInfo ( ) ; fi.reqGlEsVersion = android.os.SystemProperties.getInt ( "ro.opengles.version" , FeatureInfo.GL_ES_VERSION_UNDEFINED ) ; features [ size ] = fi ; return features ; } } return null ; }

Target:
public android.content.pm.ParceledListSlice < android.content.pm.FeatureInfo > getSystemAvailableFeatures ( ) { synchronized ( mPackages ) { final java.util.ArrayList < android.content.pm.FeatureInfo > res = new java.util.ArrayList ( mAvailableFeatures.values ( ) ) ; final android.content.pm.FeatureInfo fi = new android.content.pm.FeatureInfo ( ) ; fi.reqGlEsVersion = android.os.SystemProperties.getInt ( "ro.opengles.version" , FeatureInfo.GL_ES_VERSION_UNDEFINED ) ; res.add ( fi ) ; return new android.content.pm.ParceledListSlice ( res ) ; } }
Source:
private android.net.IpSecManager.SecurityParameterIndex ipSecAllocateSpi ( java.net.InetAddress inetAddr , int requestedSpi ) { try { return mIpSecManager.allocateSecurityParameterIndex ( inetAddr , requestedSpi ) ; } catch ( android.net.IpSecManager.SpiUnavailableException | android.net.IpSecManager.ResourceUnavailableException e ) { com.googlecode.android_scripting.Log.e ( ( "IpSec: Reserve SPI failure " + ( e.toString ( ) ) ) ) ; } return null ; }

Target:
private android.net.IpSecManager.SecurityParameterIndex allocateSpi ( java.net.InetAddress inetAddr , int requestedSpi ) { try { return mIpSecManager.allocateSecurityParameterIndex ( inetAddr , requestedSpi ) ; } catch ( android.net.IpSecManager.SpiUnavailableException | android.net.IpSecManager.ResourceUnavailableException e ) { com.googlecode.android_scripting.Log.e ( ( "IpSec: Reserve SPI failure " + ( e.toString ( ) ) ) ) ; } return null ; }
Source:
public static final org.eclipse.core.resources.IMarker markProject ( org.eclipse.core.resources.IProject project , java.lang.String markerId , java.lang.String message , int severity , int priority ) throws org.eclipse.core.runtime.CoreException { org.eclipse.core.resources.IMarker marker = project.createMarker ( markerId ) ; marker.setAttribute ( IMarker.MESSAGE , message ) ; marker.setAttribute ( IMarker.SEVERITY , severity ) ; marker.setAttribute ( IMarker.PRIORITY , priority ) ; project.refreshLocal ( IResource.DEPTH_ZERO , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; return marker ; }

Target:
public static final org.eclipse.core.resources.IMarker markProject ( org.eclipse.core.resources.IProject project , java.lang.String markerId , java.lang.String message , int severity , int priority ) throws org.eclipse.core.runtime.CoreException { if ( ! ( project.isAccessible ( ) ) ) { return null ; } org.eclipse.core.resources.IMarker marker = project.createMarker ( markerId ) ; marker.setAttribute ( IMarker.MESSAGE , message ) ; marker.setAttribute ( IMarker.SEVERITY , severity ) ; marker.setAttribute ( IMarker.PRIORITY , priority ) ; project.refreshLocal ( IResource.DEPTH_ZERO , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; return marker ; }
Source:
public static void cancelSync ( android.accounts.Account account , java.lang.String authority ) { try { android.content.ContentResolver.getContentService ( ) . cancelSync ( account , authority ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void releasePersistableUriPermission ( @ android.annotation.NonNull android.net.Uri uri , @ android.content.Intent.AccessUriMode int modeFlags ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; try { android.app.ActivityManagerNative.getDefault ( ) . releasePersistableUriPermission ( android.content.ContentProvider.getUriWithoutUserId ( uri ) , modeFlags , resolveUserId ( uri ) ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void setBounds ( int left , int top , int right , int bottom ) { android.graphics.drawable.Rect oldBounds = mBounds ; if ( ( ( ( ( oldBounds.left ) != left ) || ( ( oldBounds.top ) != top ) ) || ( ( oldBounds.right ) != right ) ) || ( ( oldBounds.bottom ) != bottom ) ) { mBounds.set ( left , top , right , bottom ) ; onBoundsChange ( mBounds ) ; } }

Target:
public void setBounds ( int left , int top , int right , int bottom ) { android.graphics.drawable.Rect oldBounds = mBounds ; if ( oldBounds == ( android.graphics.drawable.Drawable.ZERO_BOUNDS_RECT ) ) { oldBounds = mBounds = new android.graphics.drawable.Rect ( ) ; } if ( ( ( ( ( oldBounds.left ) != left ) || ( ( oldBounds.top ) != top ) ) || ( ( oldBounds.right ) != right ) ) || ( ( oldBounds.bottom ) != bottom ) ) { mBounds.set ( left , top , right , bottom ) ; onBoundsChange ( mBounds ) ; } }
Source:
public java.lang.String toString ( ) { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; java.io.PrintStream p = new java.io.PrintStream ( baos ) ; p.print ( ( ( ( ( algorithm ) + " Message Digest from " ) + ( provider.getName ( ) ) ) + ", " ) ) ; switch ( state ) { case java.security.MessageDigest.INITIAL : p.print ( "<initialized>" ) ; break ; case java.security.MessageDigest.IN_PROGRESS : p.print ( "<in progress>" ) ; break ; } p.println ( ) ; return baos.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( algorithm ) ; builder.append ( " Message Digest from " ) ; builder.append ( provider.getName ( ) ) ; builder.append ( ", " ) ; switch ( state ) { case java.security.MessageDigest.INITIAL : builder.append ( "<initialized>" ) ; break ; case java.security.MessageDigest.IN_PROGRESS : builder.append ( "<in progress>" ) ; break ; } return builder.toString ( ) ; }
Source:
protected boolean isValidSourceFile ( java.io.File sourceFolder , java.io.File file ) { java.io.File parent = file.getParentFile ( ) ; while ( ( parent != null ) && ( ! ( parent.equals ( sourceFolder ) ) ) ) { parent = parent.getParentFile ( ) ; } return parent != null ; }

Target:
protected boolean isValidSourceFile ( @ com.android.annotations.NonNull java.io.File sourceFolder , @ com.android.annotations.NonNull java.io.File file ) { if ( ! ( super . isValidSourceFile ( sourceFolder , file ) ) ) { return false ; } java.io.File parent = file.getParentFile ( ) ; while ( ( parent != null ) && ( ! ( parent.equals ( sourceFolder ) ) ) ) { if ( ! ( com.android.ide.common.packaging.PackagingUtils.checkFolderForPackaging ( parent.getName ( ) ) ) ) { return false ; } parent = parent.getParentFile ( ) ; } return parent != null ; }
Source:
public void setSelected ( boolean selected ) { if ( ( ( ( mPrivateFlags ) & ( android.view.View.SELECTED ) ) != 0 ) != selected ) { mPrivateFlags = ( ( mPrivateFlags ) & ( ~ ( android.view.View.SELECTED ) ) ) | ( selected ? android.view.View.SELECTED : 0 ) ; if ( ! selected ) resetPressedState ( ) ; invalidate ( ) ; refreshDrawableState ( ) ; dispatchSetSelected ( selected ) ; } }

Target:
private boolean pointInView ( float localX , float localY , float slop ) { return ( ( ( localX >= ( - slop ) ) && ( localY >= ( - slop ) ) ) && ( localX < ( ( ( mRight ) - ( mLeft ) ) + slop ) ) ) && ( localY < ( ( ( mBottom ) - ( mTop ) ) + slop ) ) ; }
Source:
final com.google.common.reflect.TypeToken < T > rejectTypeVariables ( ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( com.google.common.reflect.Types.containsTypeVariable ( runtimeType ) ) ) , "%s contains a type variable and is not safe for the operation" ) ; return this ; }

Target:
private java.lang.reflect.Type [ ] resolveInPlace ( java.lang.reflect.Type [ ] types ) { for ( int i = 0 ; i < ( types.length ) ; i ++ ) { types [ i ] = resolveType ( types [ i ] ) . getType ( ) ; } return types ; }
Source:
public synchronized int read ( ) throws java.io.IOException { int count = read ( singleByte , 0 , 1 ) ; return count != 1 ? count : ( ( int ) ( singleByte [ 0 ] ) ) ; }

Target:
public int read ( ) throws java.io.IOException { synchronized ( stateLock ) { int count = read ( singleByte , 0 , 1 ) ; if ( count == ( - 1 ) ) { return - 1 ; } if ( count != 1 ) { throw new javax.net.ssl.SSLException ( ( "read incorrect number of bytes " + count ) ) ; } return ( ( int ) ( singleByte [ 0 ] ) ) ; } }
Source:
public void saveInstanceState ( android.os.Bundle arguments ) { arguments.putString ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_NAME , mGroupName ) ; arguments.putInt ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_COUNT , mGroupCount ) ; arguments.putInt ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_INDEX , mGroupIndex ) ; arguments.putParcelable ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_ICON , mGroupIcon ) ; arguments.putCharSequence ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_MESSAGE , mGroupMessage ) ; arguments.putBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_SHOW_DO_NOT_ASK , mShowDonNotAsk ) ; arguments.putBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsViewHandlerImpl.ARG_GROUP_DO_NOT_ASK_CHECKED , mDoNotAskCheckbox.isChecked ( ) ) ; }

Target:
public void saveInstanceState ( android.os.Bundle arguments ) { arguments.putString ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_NAME , mGroupName ) ; arguments.putInt ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_COUNT , mGroupCount ) ; arguments.putInt ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_INDEX , mGroupIndex ) ; arguments.putParcelable ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_ICON , mGroupIcon ) ; arguments.putCharSequence ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_MESSAGE , mGroupMessage ) ; arguments.putBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_SHOW_DO_NOT_ASK , mShowDonNotAsk ) ; arguments.putBoolean ( com.android.packageinstaller.permission.ui.GrantPermissionsDefaultViewHandler.ARG_GROUP_DO_NOT_ASK_CHECKED , mDoNotAskCheckbox.isChecked ( ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }

Target:
private static void printIsDefault ( java.lang.Class < ? > klass ) { java.lang.reflect.Method m ; try { m = klass.getMethod ( "sayHi" ) ; } catch ( java.lang.Throwable t ) { java.lang.System.out.println ( t ) ; return ; } boolean isDefault = m.isDefault ( ) ; java.lang.System.out.println ( ( ( ( klass.getName ( ) ) + " is default = " ) + ( isDefault ? "yes" : "no" ) ) ) ; }
Source:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; if ( LwSplitPane.POSITION_LEFT.equals ( lwComponent.getCustomLayoutConstraints ( ) ) ) { generator.invokeVirtual ( mySplitPaneType , mySetLeftMethod ) ; } else { generator.invokeVirtual ( mySplitPaneType , mySetRightMethod ) ; } }

Target:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; if ( LwSplitPane.POSITION_LEFT.equals ( lwComponent.getCustomLayoutConstraints ( ) ) ) { generator.invokeVirtual ( mySplitPaneType , mySetLeftMethod ) ; } else { generator.invokeVirtual ( mySplitPaneType , mySetRightMethod ) ; } }
Source:
public java.util.List < java.io.File > getProguardFlagsFileFromWorkingDir ( ) { java.util.List < java.io.File > proguardFlagsFileFromWorkingDir = new java.util.ArrayList < java.io.File > ( proguardFlagsFiles.size ( ) ) ; for ( java.io.File proguardFlagsFile : proguardFlagsFiles ) { if ( ( ( workingDirectory ) != null ) && ( ! ( proguardFlagsFile.isAbsolute ( ) ) ) ) { proguardFlagsFileFromWorkingDir.add ( new java.io.File ( workingDirectory , proguardFlagsFile.getPath ( ) ) ) ; } else { proguardFlagsFileFromWorkingDir.add ( proguardFlagsFile ) ; } } return proguardFlagsFileFromWorkingDir ; }

Target:
public java.util.List < java.io.File > getProguardFlagsFile ( ) { java.util.List < java.io.File > proguardFlagsFileFromWorkingDir = new java.util.ArrayList < java.io.File > ( proguardFlagsFiles.size ( ) ) ; for ( java.io.File proguardFlagsFile : proguardFlagsFiles ) { if ( ( ( workingDirectory ) != null ) && ( ! ( proguardFlagsFile.isAbsolute ( ) ) ) ) { proguardFlagsFileFromWorkingDir.add ( new java.io.File ( workingDirectory , proguardFlagsFile.getPath ( ) ) ) ; } else { proguardFlagsFileFromWorkingDir.add ( proguardFlagsFile ) ; } } return proguardFlagsFileFromWorkingDir ; }
Source:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = mDisplay.getActiveShell ( ) ; if ( logLevel == ( com.android.ddmlib.Log.LogLevel.ERROR ) ) { org.eclipse.jface.dialogs.MessageDialog.openError ( shell , tag , message ) ; } else { org.eclipse.jface.dialogs.MessageDialog.openWarning ( shell , tag , message ) ; } }

Target:
public void run ( ) { org.eclipse.swt.widgets.Shell activeShell = mDisplay.getActiveShell ( ) ; if ( logLevel == ( com.android.ddmlib.Log.LogLevel.ERROR ) ) { org.eclipse.jface.dialogs.MessageDialog.openError ( activeShell , tag , message ) ; } else { org.eclipse.jface.dialogs.MessageDialog.openWarning ( activeShell , tag , message ) ; } }
Source:
public static java.util.TimeZone getSystemDefault ( ) { synchronized ( libcore.util.ZoneInfoDB.LOCK ) { org.apache.harmony.luni.internal.util.TimezoneGetter tzGetter = org.apache.harmony.luni.internal.util.TimezoneGetter.getInstance ( ) ; java.lang.String zoneName = ( tzGetter != null ) ? tzGetter.getId ( ) : null ; if ( zoneName != null ) { zoneName = zoneName.trim ( ) ; } if ( ( zoneName == null ) || ( zoneName.isEmpty ( ) ) ) { zoneName = "localtime" ; } return java.util.TimeZone.getTimeZone ( zoneName ) ; } }

Target:
public java.lang.String getZoneTab ( ) { return zoneTab ; }
Source:
public com.android.ims.internal.IImsCallSession getPendingCallSession ( int slotId , int featureType , int sessionId , java.lang.String callId ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getPendingCallSession ( sessionId , callId ) ; } } return null ; }

Target:
public com.android.ims.internal.IImsCallSession getPendingCallSession ( int slotId , int featureType , int sessionId , java.lang.String callId ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "getPendingCallSession" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getPendingCallSession ( sessionId , callId ) ; } } return null ; }
Source:
public java.nio.ByteBuffer putInt ( int value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putInt ( int value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeInt ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }
Source:
public void onScheduledRecordingAdded ( com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.ScheduledRecording schedule : scheduledRecordings ) { com.android.tv.guide.ProgramManager.TableEntry oldEntry = getTableEntry ( schedule ) ; if ( oldEntry != null ) { com.android.tv.guide.ProgramManager.TableEntry newEntry = new com.android.tv.guide.ProgramManager.TableEntry ( oldEntry.channelId , oldEntry.program , schedule , oldEntry.entryStartUtcMillis , oldEntry.entryEndUtcMillis , oldEntry.isBlocked ( ) ) ; updateEntry ( oldEntry , newEntry ) ; } } }

Target:
public void onScheduledRecordingAdded ( com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.data.ScheduledRecording schedule : scheduledRecordings ) { com.android.tv.guide.ProgramManager.TableEntry oldEntry = getTableEntry ( schedule ) ; if ( oldEntry != null ) { com.android.tv.guide.ProgramManager.TableEntry newEntry = new com.android.tv.guide.ProgramManager.TableEntry ( oldEntry.channelId , oldEntry.program , schedule , oldEntry.entryStartUtcMillis , oldEntry.entryEndUtcMillis , oldEntry.isBlocked ( ) ) ; updateEntry ( oldEntry , newEntry ) ; } } }
Source:
public void TestFormatReplaceNoOptimizationLeadingPlaceholderUsedTwice ( ) { com.ibm.icu.impl.SimplePatternFormatter fmt = com.ibm.icu.impl.SimplePatternFormatter.compile ( "{2}, {0}, {1} and {3} {2}" ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; int [ ] offsets = new int [ 4 ] ; assertEquals ( "" , "original, freddy, frog and by original" , fmt.formatAndReplace ( result , offsets , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; int [ ] expectedOffsets = new int [ ] { 10 , 18 , 30 , 27 } ; verifyOffsets ( expectedOffsets , offsets ) ; }

Target:
public void TestFormatReplaceNoOptimizationLeadingArgumentUsedTwice ( ) { com.ibm.icu.text.SimpleFormatter fmt = com.ibm.icu.text.SimpleFormatter.compile ( "{2}, {0}, {1} and {3} {2}" ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( "original" ) ; int [ ] offsets = new int [ 4 ] ; assertEquals ( "" , "original, freddy, frog and by original" , fmt.formatAndReplace ( result , offsets , "freddy" , "frog" , result , "by" ) . toString ( ) ) ; int [ ] expectedOffsets = new int [ ] { 10 , 18 , 30 , 27 } ; verifyOffsets ( expectedOffsets , offsets ) ; }
Source:
public static int toLowerCase ( int codePoint ) { return java.lang.Character.toLowerCaseImpl ( codePoint ) ; }

Target:
public static int toLowerCase ( int codePoint ) { if ( ( codePoint >= 'A' ) && ( codePoint <= 'Z' ) ) { return codePoint + ( 'a' - 'A' ) ; } if ( codePoint < 128 ) { return codePoint ; } return java.lang.Character.toLowerCaseImpl ( codePoint ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JSimpleBasicBlock block ) { tracer.getStatistic ( com.android.jack.ir.ast.cfg.CfgBasicBlockTracker.TOTAL_COUNT ) . add ( block.elements ( true ) . size ( ) ) ; tracer.getStatistic ( com.android.jack.ir.ast.cfg.CfgBasicBlockTracker.SIMPLE_COUNT ) . add ( block.elements ( true ) . size ( ) ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JSimpleBasicBlock block ) { tracer.getStatistic ( com.android.jack.ir.ast.cfg.CfgBasicBlockTracker.TOTAL_COUNT ) . add ( block.getElementCount ( ) ) ; tracer.getStatistic ( com.android.jack.ir.ast.cfg.CfgBasicBlockTracker.SIMPLE_COUNT ) . add ( block.getElementCount ( ) ) ; return false ; }
Source:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; } }

Target:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { hideBadge ( ) ; return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; } else { hideBadge ( ) ; } }
Source:
public void start ( com.android.monkeyrunner.adb.LinearInterpolator.Point point ) { try { manager.touchDown ( point.getX ( ) , point.getY ( ) ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sending drag start event" , e ) ; } try { java.lang.Thread.sleep ( iterationTime ) ; } catch ( java.lang.InterruptedException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sleeping" , e ) ; } }

Target:
public void start ( com.android.monkeyrunner.adb.LinearInterpolator.Point point ) { try { manager.touchDown ( point.getX ( ) , point.getY ( ) ) ; manager.touchMove ( point.getX ( ) , point.getY ( ) ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sending drag start event" , e ) ; } try { java.lang.Thread.sleep ( iterationTime ) ; } catch ( java.lang.InterruptedException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sleeping" , e ) ; } }
Source:
public void earlyStartup ( ) { if ( com.android.ide.eclipse.base.InstallDetails.isAndroidIdePackage ( ) ) { useBundledSdk ( ) ; } if ( isFirstTime ( ) ) { showWelcomeWizard ( ) ; } else if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } initializeWindowCoordinator ( ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . workbenchStarted ( ) ; }

Target:
public void earlyStartup ( ) { if ( ! ( isSdkSpecified ( ) ) ) { java.io.File bundledSdk = getBundledSdk ( ) ; if ( bundledSdk != null ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . setSdkLocation ( bundledSdk ) ; } } if ( isFirstTime ( ) ) { showWelcomeWizard ( ) ; } else if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } initializeWindowCoordinator ( ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . workbenchStarted ( ) ; }
Source:
public void testRootnF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_rootn_f32 ( mRS , mRes , R.raw.rootn_f32 ) ; android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandom ( 305419896 , 32 , 1 , 1 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }

Target:
public void testRootnF32 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandom ( 305419896 , 32 , 1 , 1 , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n1 ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }
Source:
private void deleteContact ( ) { java.lang.StringBuilder buf = new java.lang.StringBuilder ( ) ; buf.append ( "tag='" ) ; buf.append ( mName ) ; buf.append ( "' AND number='" ) ; buf.append ( mNumber ) ; buf.append ( "' AND pin2='" ) ; buf.append ( mPin2 ) ; buf.append ( "'" ) ; android.net.Uri uri = android.net.Uri.parse ( "content://icc/fdn" ) ; mQueryHandler = new com.android.phone.DeleteFdnContactScreen.QueryHandler ( getContentResolver ( ) ) ; mQueryHandler.startDelete ( 0 , null , uri , buf.toString ( ) , null ) ; displayProgress ( true ) ; }

Target:
private void deleteContact ( ) { java.lang.StringBuilder buf = new java.lang.StringBuilder ( ) ; if ( android.text.TextUtils.isEmpty ( mName ) ) { buf.append ( "number='" ) ; } else { buf.append ( "tag='" ) ; buf.append ( mName ) ; buf.append ( "' AND number='" ) ; } buf.append ( mNumber ) ; buf.append ( "' AND pin2='" ) ; buf.append ( mPin2 ) ; buf.append ( "'" ) ; android.net.Uri uri = android.net.Uri.parse ( "content://icc/fdn" ) ; mQueryHandler = new com.android.phone.DeleteFdnContactScreen.QueryHandler ( getContentResolver ( ) ) ; mQueryHandler.startDelete ( 0 , null , uri , buf.toString ( ) , null ) ; displayProgress ( true ) ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; int retCode = - 1 ; retCode = mInstaller.freeCache ( freeStorageSize ) ; if ( retCode < 0 ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , "Couldn't clear application caches" ) ; } if ( pi != null ) { try { int code = ( retCode >= 0 ) ? 1 : 0 ; pi.sendIntent ( null , code , null , null , null ) ; } catch ( android.content.IntentSender.SendIntentException e1 ) { android.util.Slog.i ( com.android.server.pm.PackageManagerService.TAG , "Failed to send pending intent" ) ; } } }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; int retCode = - 1 ; synchronized ( mInstallLock ) { retCode = mInstaller.freeCache ( freeStorageSize ) ; if ( retCode < 0 ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , "Couldn't clear application caches" ) ; } } if ( observer != null ) { try { observer.onRemoveCompleted ( null , ( retCode >= 0 ) ) ; } catch ( android.os.RemoteException e ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , "RemoveException when invoking call back" ) ; } } }
Source:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup_x2 ( ) { super . dup_x2 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup_x2 ( ) ; }
Source:
private static void assertImeiFormat ( java.lang.String deviceId ) { java.lang.String imeiPattern = "[0-9]{15}" ; assertTrue ( ( ( ( "IMEI device id " + deviceId ) + " does not match pattern " ) + imeiPattern ) , java.util.regex.Pattern.matches ( imeiPattern , deviceId ) ) ; }

Target:
private static void assertGsmDeviceId ( java.lang.String deviceId ) { java.lang.String imeiPattern = "[0-9]{14,15}" ; assertTrue ( ( ( ( "IMEI device id " + deviceId ) + " does not match pattern " ) + imeiPattern ) , java.util.regex.Pattern.matches ( imeiPattern , deviceId ) ) ; if ( ( deviceId.length ( ) ) == 15 ) { android.telephony.cts.TelephonyManagerTest.assertImeiCheckDigit ( deviceId ) ; } }
Source:
public boolean isClosed ( ) { if ( ! ( mService.isConnected ( ) ) ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "service not connected to system" ) ; return true ; } try { return mChannel.isClosed ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "Exception in isClosed()" ) ; return true ; } }

Target:
public boolean isOpen ( ) { if ( ! ( mService.isConnected ( ) ) ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "service not connected to system" ) ; return false ; } try { return ! ( mChannel.isClosed ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "Exception in isClosed()" ) ; return false ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayLength x ) { com.android.jack.ir.ast.JExpression instance = x.getInstance ( ) ; parenPush ( x , instance ) ; accept ( instance ) ; parenPop ( x , instance ) ; print ( ".length" ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod x ) { printMethodHeader ( x ) ; if ( x instanceof com.android.jack.ir.ast.JAnnotationMethod ) { com.android.jack.ir.ast.JLiteral defaultValue = ( ( com.android.jack.ir.ast.JAnnotationMethod ) ( x ) ) . getDefaultValue ( ) ; if ( defaultValue != null ) { space ( ) ; print ( com.android.jack.ir.impl.CHARS_DEFAULT ) ; space ( ) ; accept ( defaultValue ) ; } } return false ; }
Source:
public int loadPlugIns ( ) { int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_INITIALIZE , new java.lang.ref.WeakReference < android.drm.DrmManagerClient > ( this ) ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } } else { result = android.drm.DrmManagerClient.ERROR_NONE ; } return result ; }

Target:
protected void finalize ( ) { _finalize ( mUniqueId ) ; }
Source:
public void testUngrant_DoubleGrantUngrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to grant key to other user a second time" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertFalse ( "Should fail to ungrant key to other user second time" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_DoubleGrantUngrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeConstants.EVP_PKEY_RSA , android.security.KeyStoreTest.RSA_KEY_SIZE , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to grant key to other user a second time" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertFalse ( "Should fail to ungrant key to other user second time" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
private int findRopRegForLocal ( int startReg , int width ) { int reg ; reg = usedRopRegs.nextClearBit ( startReg ) ; while ( true ) { int i = 1 ; while ( ( i < width ) && ( ! ( usedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = usedRopRegs.nextClearBit ( ( reg + i ) ) ; } }

Target:
private int findNextUnreservedRopReg ( int startReg , int width , com.android.dx.ssa.back.FirstFitLocalCombiningAllocator.Alignment alignment ) { int reg = alignment.nextClearBit ( reservedRopRegs , startReg ) ; while ( true ) { int i = 1 ; while ( ( i < width ) && ( ! ( reservedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = alignment.nextClearBit ( reservedRopRegs , ( reg + i ) ) ; } }
Source:
private java.security.cert.TrustAnchor getTrustAnchor ( java.lang.String trustAnchorName ) throws java.lang.Exception { java.security.cert.X509Certificate cert = loadCert ( trustAnchorName ) ; byte [ ] extBytes = cert.getExtensionValue ( X509Extension.nameConstraints.getId ( ) ) ; if ( extBytes != null ) { org.bouncycastle.asn1.ASN1Encodable extValue = org.bouncycastle.x509.extension.X509ExtensionUtil.fromExtensionValue ( extBytes ) ; return new java.security.cert.TrustAnchor ( cert , extValue.toASN1Primitive ( ) . getEncoded ( ASN1Encoding.DER ) ) ; } return new java.security.cert.TrustAnchor ( cert , null ) ; }

Target:
private java.security.cert.TrustAnchor getTrustAnchor ( java.lang.String trustAnchorName ) throws java.lang.Exception { java.security.cert.X509Certificate cert = loadCert ( trustAnchorName ) ; byte [ ] extBytes = cert.getExtensionValue ( Extension.nameConstraints.getId ( ) ) ; if ( extBytes != null ) { org.bouncycastle.asn1.ASN1Encodable extValue = org.bouncycastle.asn1.ASN1Primitive.fromByteArray ( org.bouncycastle.asn1.ASN1OctetString.getInstance ( extBytes ) . getOctets ( ) ) ; return new java.security.cert.TrustAnchor ( cert , extValue.toASN1Primitive ( ) . getEncoded ( ASN1Encoding.DER ) ) ; } return new java.security.cert.TrustAnchor ( cert , null ) ; }
Source:
public static com.android.dialer.voicemail.model.VoicemailEntry.Builder builder ( ) { return new com.android.dialer.voicemail.model.AutoValue_VoicemailEntry.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setNumberAttributes ( com.android.dialer.NumberAttributes.getDefaultInstance ( ) ) . setDuration ( 0 ) . setCallType ( 0 ) . setIsRead ( 0 ) ; }

Target:
public static com.android.dialer.voicemail.model.VoicemailEntry.Builder builder ( ) { return new com.android.dialer.voicemail.model.AutoValue_VoicemailEntry.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setNumberAttributes ( com.android.dialer.NumberAttributes.getDefaultInstance ( ) ) . setDuration ( 0 ) . setCallType ( 0 ) . setIsRead ( 0 ) . setTranscriptionState ( VoicemailCompat.TRANSCRIPTION_NOT_STARTED ) ; }
Source:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void test_run_for_LongTest2_with_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_LongTest2_without_time_limit_should_not_report_time_out ( ) { java.lang.Class < ? > target = vogar.target.junit3.LongTest2.class ; java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( target , null , vogar.target.JUnitRunnerTest.EMPTY_ARGS ) ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , 0 , tests ) ; runner.run ( null ) ; org.mockito.Mockito.verify ( monitor , org.mockito.Mockito.times ( 8 ) ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public static void checkInit ( ) { java.lang.Class niuClass = NoisyInitUser.class ; java.lang.reflect.Method [ ] methods ; methods = niuClass.getDeclaredMethods ( ) ; java.lang.System.out.println ( "got methods" ) ; NoisyInitUser niu = new NoisyInitUser ( ) ; NoisyInit ni = new NoisyInit ( ) ; }

Target:
public static void checkInit ( ) { java.lang.Class niuClass = NoisyInitUser.class ; java.lang.reflect.Method [ ] methods ; methods = niuClass.getDeclaredMethods ( ) ; java.lang.System.out.println ( "got methods" ) ; NoisyInitUser niu = new NoisyInitUser ( ) ; NoisyInit ni = new NoisyInit ( ) ; java.lang.System.out.println ( "" ) ; }
Source:
public void run ( ) { setScrollBarStyle ( style ) ; }

Target:
public void setOverScrollMode ( final int mode ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setOverScrollMode ( mode ) ; } } ) ; return ; } mAwContents.setOverScrollMode ( mode ) ; }
Source:
public void unregisterStateChangeCallback ( android.bluetooth.IBluetoothStateChangeCallback callback ) { mContext.enforceCallingOrSelfPermission ( com.android.server.BluetoothManagerService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_UNREGISTER_STATE_CHANGE_CALLBACK ) ; msg.obj = callback ; mHandler.sendMessage ( msg ) ; }

Target:
public void unregisterStateChangeCallback ( android.bluetooth.IBluetoothStateChangeCallback callback ) { mContext.enforceCallingOrSelfPermission ( com.android.server.BluetoothManagerService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( callback == null ) { android.util.Slog.w ( com.android.server.BluetoothManagerService.TAG , "unregisterStateChangeCallback: Callback is null!" ) ; return ; } android.os.Message msg = mHandler.obtainMessage ( com.android.server.BluetoothManagerService.MESSAGE_UNREGISTER_STATE_CHANGE_CALLBACK ) ; msg.obj = callback ; mHandler.sendMessage ( msg ) ; }
Source:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #2" , "Notify me!!!" , makeIntent ( ) ) ; mNM.notify ( 2 , n ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #2" , "Notify me!!!" , makeIntent ( ) ) ; n.defaults = android.app.Notification.DEFAULT_VIBRATE ; mNM.notify ( 2 , n ) ; }
Source:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { dispose ( ) ; }

Target:
public void doubleClick ( org.eclipse.jface.viewers.DoubleClickEvent event ) { org.eclipse.swt.widgets.TreeItem [ ] selection = getTreeViewer ( ) . getTree ( ) . getSelection ( ) ; if ( ( selection.length ) > 0 ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage.getViewInfo ( selection [ 0 ] . getData ( ) ) ; if ( vi != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; canvas.show ( vi ) ; } } }
Source:
public com.google.common.collect.SortedMultiset < E > tailMultiset ( E lowerBound , com.google.common.collect.BoundType boundType ) { return com.google.common.collect.Multisets.unmodifiableSortedMultiset ( delegate ( ) . tailMultiset ( lowerBound , boundType ) ) ; }

Target:
public int remove ( @ javax.annotation.Nullable java.lang.Object element , int occurrences ) { com.google.common.collect.CollectPreconditions.checkNonnegative ( occurrences , "occurrences" ) ; if ( occurrences == 0 ) { return count ( element ) ; } else { return contains ( element ) ? unfiltered.remove ( element , occurrences ) : 0 ; } }
Source:
public void stopStreaming ( java.lang.String serviceId , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams.StreamCallbackWithState entry = mStreamStates.get ( serviceId ) ; if ( entry != null ) { if ( ( entry.getState ( ) ) != ( android.telephony.mbms.StreamingService.STATE_STOPPED ) ) { entry.setState ( StreamingService.STATE_STOPPED ) ; entry.getCallback ( ) . onStreamStateUpdated ( StreamingService.STATE_STOPPED , reason ) ; } } }

Target:
public void stopStreaming ( java.lang.String serviceId , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams.StreamCallbackWithState entry = mStreamStates.get ( serviceId ) ; if ( entry != null ) { try { if ( ( entry.getState ( ) ) != ( android.telephony.mbms.StreamingService.STATE_STOPPED ) ) { entry.setState ( StreamingService.STATE_STOPPED ) ; entry.getCallback ( ) . streamStateUpdated ( StreamingService.STATE_STOPPED , reason ) ; } } catch ( android.os.RemoteException e ) { dispose ( serviceId ) ; } } }
Source:
public void destroy ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { destroy ( ) ; } } ) ; return ; } mAwContents.destroy ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.destroy ( ) ; mGLfunctor = null ; } }

Target:
public void setNetworkAvailable ( final boolean networkUp ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setNetworkAvailable ( networkUp ) ; } } ) ; return ; } mAwContents.setNetworkAvailable ( networkUp ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; fakeFtpServer = new org.mockftpserver.fake.FakeFtpServer ( ) ; fakeFtpServer.setServerControlPort ( 0 ) ; fakeFtpServer.addUserAccount ( new org.mockftpserver.fake.UserAccount ( libcore.java.net.FtpURLConnectionTest.USER , libcore.java.net.FtpURLConnectionTest.PASSWORD , libcore.java.net.FtpURLConnectionTest.USER_HOME_DIR ) ) ; fileSystem = new org.mockftpserver.fake.filesystem.UnixFakeFileSystem ( ) ; fakeFtpServer.setFileSystem ( fileSystem ) ; fileSystem.add ( new org.mockftpserver.fake.filesystem.DirectoryEntry ( libcore.java.net.FtpURLConnectionTest.USER_HOME_DIR ) ) ; fakeFtpServer.start ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; fakeFtpServer = new org.mockftpserver.fake.FakeFtpServer ( ) ; fakeFtpServer.setServerControlPort ( 0 ) ; fakeFtpServer.addUserAccount ( new org.mockftpserver.fake.UserAccount ( libcore.java.net.FtpURLConnectionTest.VALID_USER , libcore.java.net.FtpURLConnectionTest.VALID_PASSWORD , libcore.java.net.FtpURLConnectionTest.VALID_USER_HOME_DIR ) ) ; fileSystem = new org.mockftpserver.fake.filesystem.UnixFakeFileSystem ( ) ; fakeFtpServer.setFileSystem ( fileSystem ) ; fileSystem.add ( new org.mockftpserver.fake.filesystem.DirectoryEntry ( libcore.java.net.FtpURLConnectionTest.VALID_USER_HOME_DIR ) ) ; fakeFtpServer.start ( ) ; }