<nb> public class ActFmInvoker {

 COMMENT
 private static final String URL = STRING0 ;
 - private static final String APP_ID = STRING1 ;
 + private static final String APP_ID = STRING2 ;
 private static final String APP_SECRET = STRING3 ;

 public static final String PROVIDER_FACEBOOK = STRING4 ;

Updated app id for development not to be the same as release


<nb> public class VoicemailContract {
 Uri statusUri = buildSourceUri ( context . getPackageName ( ) ) ;
 ContentValues values = new ContentValues ( ) ;
 values . put ( Status . PHONE_ACCOUNT_COMPONENT_NAME ,
 - accountHandle . getComponentName ( ) . toString ( ) ) ;
 + accountHandle . getComponentName ( ) . flattenToString ( ) ) ;
 values . put ( Status . PHONE_ACCOUNT_ID , accountHandle . getId ( ) ) ;
 values . put ( Status . CONFIGURATION_STATE , configurationState ) ;
 values . put ( Status . DATA_CHANNEL_STATE , dataChannelState ) ;

Fix phone account component name for voicemail status entries


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class TextRange implements Segment , Serializable {
 + private static final long serialVersionUID = - NUMBER0 ;
 public static final TextRange EMPTY_RANGE = new TextRange ( NUMBER1 , NUMBER1 ) ;
 private final int myStartOffset ;
 private final int myEndOffset ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 public class MostlySingularMultiMap < K , V > implements Serializable {
 + private static final long serialVersionUID = NUMBER2 ;
 +
 private final Map < K , Object > myMap = new THashMap < K , Object > ( ) ;

 public void add ( K key , V value ) {


<nb> public class BasicReservationService extends Poller implements ReservationServic
 return reservationPeriod ;
 }

 + public Ec2InstanceReservationPrice . ReservationUtilization getReservationUtilization ( ) {
 + return reservationUtilization ;
 + }
 +
 public double getLatestHourlyTotalPrice (
 long time ,
 Region region ,
 <nb> public class BillingFileProcessor extends Poller {
 usage . put ( lentTagGroup , borrowedUsage - getValue ( usage , reservedTagGroup ) ) ;
 cost . put ( lentTagGroup , borrowedCost - getValue ( cost , reservedTagGroup ) ) ;
 usage . put ( unusedTagGroup , unusedUsage ) ;
 + if ( config . reservationService . getReservationUtilization ( ) != Ec2InstanceReservationPrice . ReservationUtilization . HEAVY ) {
 + unusedCost = NUMBER0 ;
 + }
 cost . put ( unusedTagGroup , unusedCost ) ;
 }

 <nb> public interface ReservationService {
 Ec2InstanceReservationPrice . ReservationPeriod getReservationPeriod ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Ec2InstanceReservationPrice . ReservationUtilization getReservationUtilization ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

set un used cost to be zero for non HEAVY reserved instances


<nb> public final class ClusterSampleData {

 public static final long REPLICATION_EXPIRY_TIME_MS = NUMBER0 ;

 - public static final long MAX_PROCESSING_DELAY_MS = NUMBER1 ;
 + public static final long MAX_PROCESSING_DELAY_MS = NUMBER2 ;

 public static final long RETRY_SLEEP_TIME_MS = NUMBER3 ;


<nb> public class UpcomingFragment extends ListFragment implements LoaderManager . Load
 } else {
 menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER0 , R . string . mark_episode ) ;
 }
 - menu . add ( NUMBER1 , CONTEXT_CHECKIN_ID , NUMBER0 , R . string . checkin ) ;
 + menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER2 , R . string . checkin ) ;
 }

 @ override


<nb> public final class PreconditionMessage {
 public static final String ERR_PUT_NULL_KEY = STRING0 ;
 public static final String ERR_PUT_NULL_VALUE = STRING1 ;

 -
 private PreconditionMessage ( ) { } SINGLE
 }


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 - import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 <nb>

 package NAMESPACE ;

 - import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 <nb> package NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 - import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 <nb>

 package NAMESPACE ;

 - import static NAMESPACE ;
 - import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 <nb>

 package NAMESPACE ;

 - import static NAMESPACE ;
 - import static NAMESPACE ;
 - import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;

Replace uses of junit framework Assert with org junit Assert


<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
 COMMENT
 COMMENT
 COMMENT
 - @ parameter ( property = STRING0 , readonly = true )
 + @ parameter ( property = STRING0 )
 protected BuildConfigConstant [ ] buildConfigConstants ;

 COMMENT


<nb> public class RecentApplicationsActivity extends Activity {
 mCarouselView . setStartAngle ( ( float ) - ( FLOAT0 * Math . PI * NUMBER0 / CARD_SLOTS ) ) ;
 mCarouselView . setDefaultBitmap ( mLoadingBitmap ) ;
 mCarouselView . setLoadingBitmap ( mLoadingBitmap ) ;
 + mCarouselView . setRezInCardCount ( FLOAT1 ) ;
 mCarouselView . getHolder ( ) . setFormat ( PixelFormat . TRANSLUCENT ) ;

 mNoRecentsView = ( View ) findViewById ( R . id . no_applications_message ) ;

Add new rezzing in effect of Carousel to Recents


<nb> public class RenderScript {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RenderScriptGL extends RenderScript {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public RenderScriptGL ( Context ctx , SurfaceConfig sc ) {
 super ( ctx ) ;


<nb> public class WebSettings {
 if ( mBlockNetworkLoads != flag ) {
 mBlockNetworkLoads = flag ;
 verifyNetworkAccess ( ) ;
 + postSync ( ) ;
 }
 }

Add postSync so that the chrome stack has access


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class PythonDialectsTokenSetProvider {
 - public static final PythonDialectsTokenSetProvider INSTANCE = new PythonDialectsTokenSetProvider ( ) ;
 + public static PythonDialectsTokenSetProvider INSTANCE = new PythonDialectsTokenSetProvider ( ) ;

 private final TokenSet myStatementTokens ;
 private final TokenSet myExpressionTokens ;
 <nb> public class PythonDialectsTokenSetProvider {
 public TokenSet getReferenceExpressionTokens ( ) {
 return myReferenceExpressionTokens ;
 }
 +
 + public static void reset ( ) {
 + INSTANCE = new PythonDialectsTokenSetProvider ( ) ;
 + }
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public abstract class PyLexerTestCase extends PlatformLiteFixture {
 PyTestCase . initPlatformPrefix ( ) ;
 registerExtensionPoint ( PythonDialectsTokenSetContributor . EP_NAME , PythonDialectsTokenSetContributor . class ) ;
 registerExtension ( PythonDialectsTokenSetContributor . EP_NAME , new PythonTokenSetContributor ( ) ) ;
 + PythonDialectsTokenSetProvider . reset ( ) ;
 }

 public static void doLexerTest ( String text , Lexer lexer , String . . . expectedTokens ) {

Reset PythonDialectsTokenSetProvider properly in tests


<nb> public class RecentsPanelView extends RelativeLayout
 if ( mActivityDescriptions . size ( ) > NUMBER0 ) {
 if ( DEBUG ) Log . v ( TAG , STRING0 + mActivityDescriptions . size ( ) + STRING1 ) ;
 updateUiElements ( getResources ( ) . getConfiguration ( ) ) ;
 - final ArrayList < ActivityDescription > descriptions = mActivityDescriptions ;
 + final ArrayList < ActivityDescription > descriptions =
 + new ArrayList < ActivityDescription > ( mActivityDescriptions ) ;
 loadActivityDescription ( descriptions . get ( NUMBER0 ) , NUMBER0 ) ;
 applyActivityDescription ( descriptions . get ( NUMBER0 ) , NUMBER0 , false ) ;
 if ( descriptions . size ( ) > NUMBER1 ) {


<nb> public class ZWaveConverterHandler {
 public void receiveCommand ( ZWaveBindingProvider provider , String itemName , Command command ) {
 ZWaveBindingConfig bindingConfiguration = provider . getZwaveBindingConfig ( itemName ) ;
 ZWaveNode node = this . controller . getNode ( bindingConfiguration . getNodeId ( ) ) ;
 + if ( node == null ) {
 + logger . error ( STRING0 , itemName , bindingConfiguration . getNodeId ( ) ) ;
 + return ;
 + }
 ZWaveCommandClass commandClass ;
 String commandClassName = bindingConfiguration . getArguments ( ) . get ( STRING1 ) ;

 SINGLE
 - if ( node . getNodeStage ( ) != NodeStage . DONE )
 + if ( node . getNodeStage ( ) != NodeStage . DONE ) {
 + logger . trace ( STRING2 , node . getNodeId ( ) , node . getNodeStage ( ) ) ;
 return ;
 + }

 if ( commandClassName != null ) {
 commandClass = node . resolveCommandClass ( CommandClass . getCommandClass ( commandClassName ) , bindingConfiguration . getEndpoint ( ) ) ;

Add error checking and debug when sending a command if node is not DONE


<nb> public class BuildCraftBuilders extends BuildCraftMod {
 e . printStackTrace ( ) ;
 }
 }
 +
 + SINGLE
 + serverDB . refresh ( ) ;
 + clientDB . refresh ( ) ;
 }

 @ mod.eventhandler


<nb> public class HystrixCommandTimeoutConcurrencyTesting {

 @ test
 public void testTimeoutRace ( ) throws InterruptedException {
 - final int NUM_TRIALS = NUMBER0 ;
 + final int NUM_TRIALS = NUMBER1 ;

 for ( int i = NUMBER2 ; i < NUM_TRIALS ; i ++ ) {
 List < Observable < String > > observables = new ArrayList < Observable < String > > ( ) ;
 <nb> public class HystrixObservableCollapserTest {

 @ test
 public void testConcurrencyInTightLoop ( ) throws InterruptedException {
 - for ( int i = NUMBER2 ; i < NUMBER0 ; i ++ ) {
 + for ( int i = NUMBER2 ; i < NUMBER1 ; i ++ ) {
 System . out . println ( STRING0 + i ) ;
 testCollapserUnderConcurrency ( ) ;
 }

Reduce number of trails of long unit tests to help CI turnaround time


<nb> public interface Buffer extends ClusterSerializable {
 }

 COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add some comment to buffer ByteBuf method of Buffer class because previous comment was confusing


<nb> public class EntityBinding {
 return optimisticLockMode ;
 }

 - public Class getEntityPersisterClass ( ) {
 + public Class < EntityPersister > getEntityPersisterClass ( ) {
 return entityPersisterClass ;
 }

 + public Class < EntityTuplizer > getEntityTuplizerClass ( ) {
 + return entityTuplizerClass ;
 + }
 +
 public Boolean isAbstract ( ) {
 return isAbstract ;
 }

Add EntityBinding entityTuplizerClass change getEntityPersisterClass to return Class EntityPersister


<nb> public class ExternalJavaDocAction extends AnAction {
 boolean enabled = provider instanceof ExtensibleDocumentationProvider && ( ( ExtensibleDocumentationProvider ) provider ) . isExternalDocumentationEnabled ( element , originalElement ) ;
 if ( editor != null ) {
 presentation . setEnabled ( enabled ) ;
 - presentation . setVisible ( enabled ) ;
 + if ( event . getPlace ( ) . equals ( ActionPlaces . MAIN_MENU ) ) {
 + presentation . setVisible ( true ) ;
 + }
 + else {
 + presentation . setVisible ( enabled ) ;
 + }
 }
 else {
 presentation . setEnabled ( enabled ) ;


<nb> public abstract class ResponseBase implements Response

 protected String calculateCharset ( String charset ) {

 - if ( charset == null ) {
 - String contentType = getContentType ( ) ;
 - if ( contentType != null ) {
 - charset = AsyncHttpProviderUtils . parseCharset ( contentType ) ;
 - } else {
 - charset = DEFAULT_CHARSET ;
 - }
 - }
 -
 - return charset ;
 + if ( charset == null ) {
 + String contentType = getContentType ( ) ;
 + if ( contentType != null )
 + charset = AsyncHttpProviderUtils . parseCharset ( contentType ) ; SINGLE
 + }
 + return charset != null ? charset : DEFAULT_CHARSET ;
 }

 public boolean hasResponseStatus ( ) {

Fix charset computation when it s not specified in contentType


<nb> public enum StandardErrorCode
 OPERATOR_NOT_FOUND ( NUMBER0 ) ,
 INVALID_VIEW ( NUMBER1 ) ,
 ALREADY_EXISTS ( NUMBER2 ) ,
 + NOT_SUPPORTED ( NUMBER3 ) ,

 INTERNAL ( NUMBER4 ) ,
 TOO_MANY_REQUESTS_FAILED ( NUMBER5 ) ,


<nb> public final class ActivityManagerService extends ActivityManagerNative implemen
 String [ ] pkgs = intent . getStringArrayExtra ( Intent . EXTRA_PACKAGES ) ;
 if ( pkgs != null ) {
 for ( String pkg : pkgs ) {
 - if ( forceStopPackageLocked ( pkg , - NUMBER0 , false , false , false ) ) {
 - setResultCode ( Activity . RESULT_OK ) ;
 - return ;
 - }
 + synchronized ( ActivityManagerService . this ) {
 + if ( forceStopPackageLocked ( pkg , - NUMBER0 , false , false , false ) ) {
 + setResultCode ( Activity . RESULT_OK ) ;
 + return ;
 + }
 + }
 }
 }
 }

Implement Mutual exclusion in BroadcastReceiver


<nb> public class GameRegistry
 final UniqueIdentifier other = ( UniqueIdentifier ) obj ;
 return Objects . equal ( modId , other . modId ) && Objects . equal ( name , other . name ) ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return String . format ( STRING0 , modId , name ) ;
 + }
 }

 COMMENT

added override toString method for getting full name


<nb> public class BootReceiver extends BroadcastReceiver {
 }

 if ( SystemProperties . getLong ( STRING0 , NUMBER0 ) == NUMBER0 ) {
 - String now = Long . toString ( System . currentTimeMillis ( ) ) ;
 - SystemProperties . set ( STRING0 , now ) ;
 + if ( STRING1 . equals ( SystemProperties . get ( STRING2 ) )
 + && STRING3 . equals ( SystemProperties . get ( STRING4 ) ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + } else {
 + String now = Long . toString ( System . currentTimeMillis ( ) ) ;
 + SystemProperties . set ( STRING0 , now ) ;
 + }
 if ( db != null ) db . addText ( STRING5 , headers ) ;

 SINGLE

Create correct files in dropbox on encrypted boot


<nb> public class DialogWrapperPeerImpl extends DialogWrapperPeer {

 moveMousePointerOnButton ( getRootPane ( ) . getDefaultButton ( ) ) ;
 setupSelectionOnPreferredComponent ( toFocus ) ;
 -
 +
 if ( toFocus != null ) {
 - toFocus . requestFocus ( ) ;
 + toFocus . requestFocusInWindow ( ) ;
 }
 }
 } ) ;
 <nb> public class RenameDialog extends RefactoringDialog {
 }

 public JComponent getPreferredFocusedComponent ( ) {
 - return myNameSuggestionsField . getComponent ( ) ;
 + return myNameSuggestionsField . getEditor ( ) . getComponent ( ) ;
 }

 protected JComponent createCenterPanel ( ) {

RenameDialog retruns correct preferred focused component


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class SingleNodeBenchmark
 SINGLE
 . build ( ) ;

 + SINGLE
 + stage . setExecutionPoolSize ( Math . max ( NUMBER0 , Runtime . getRuntime ( ) . availableProcessors ( ) / NUMBER1 ) ) ;
 +
 dr . addSingleton ( Stage . class , stage ) ;

 stage . start ( ) . join ( ) ;

Optimizing the thread pool size for the benchmark


<nb> public class XDebugSessionImpl implements XDebugSession {
 breakpointManager . getDependentBreakpointManager ( ) . removeListener ( myDependentBreakpointListener ) ;
 }
 }
 - myValueMarkers . clear ( ) ;
 + if ( myValueMarkers != null ) {
 + myValueMarkers . clear ( ) ;
 + }
 myStopped = true ;
 myDebuggerManager . removeSession ( this ) ;
 myDispatcher . getMulticaster ( ) . sessionStopped ( ) ;

fixed NPE in debuggers that do not use value markers


<nb> import NAMESPACE ;

 public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runnable {

 - private Runnable task ;
 + private final Runnable task ;

 public ChannelRunnableWrapper ( Channel channel , Runnable task ) {
 super ( channel , true ) ;


<nb> public abstract class AbstractProcessFailureRecoveryTest {

 Configuration jmConfig = new Configuration ( ) ;
 jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_INTERVAL , STRING0 ) ;
 - jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_PAUSE , STRING1 ) ;
 - jmConfig . setInteger ( ConfigConstants . AKKA_WATCH_THRESHOLD , NUMBER0 ) ;
 + jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_PAUSE , STRING2 ) ;
 + jmConfig . setInteger ( ConfigConstants . AKKA_WATCH_THRESHOLD , NUMBER1 ) ;
 jmConfig . setString ( ConfigConstants . DEFAULT_EXECUTION_RETRY_DELAY_KEY , STRING3 ) ;

 jmActorSystem = AkkaUtils . createActorSystem ( jmConfig , new Some < Tuple2 < String , Object > > ( localAddress ) ) ;

hotfix Raise Akka test timeouts some more


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 + import static NAMESPACE ;
 +
 public class TimeZoneNotSupportedException
 - extends RuntimeException
 + extends PrestoException
 {
 private final String zoneId ;

 public TimeZoneNotSupportedException ( String zoneId )
 {
 - super ( STRING0 + zoneId + STRING1 ) ;
 + super ( NOT_SUPPORTED , STRING2 + zoneId ) ;
 this . zoneId = zoneId ;
 }

Make TimeZoneNotSupportedException extend PrestoException


<nb> public abstract class K9WebViewClient extends WebViewClient {
 Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ;
 intent . addCategory ( Intent . CATEGORY_BROWSABLE ) ;
 intent . putExtra ( Browser . EXTRA_APPLICATION_ID , context . getPackageName ( ) ) ;
 + intent . putExtra ( Browser . EXTRA_CREATE_NEW_TAB , true ) ;
 return intent ;
 }

Set EXTRA_CREATE_NEW_TAB to true in browser view intent


<nb> public interface TaskQuery extends Query < TaskQuery , Task > {

 COMMENT
 TaskQuery taskUnassigned ( ) ;
 +
 + COMMENT
 + @ deprecated
 + TaskQuery taskUnnassigned ( ) ;

 COMMENT
 TaskQuery taskDelegationState ( DelegationState delegationState ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProviderMethod < T > implements ProviderWithDependencies < T > {
 return false ;
 }
 }
 +
 + @ override
 + public int hashCode ( ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + return Objects . hashCode ( method ) ;
 + }
 }

implement hashcode when implementing equals


<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
 child . offsetLeftAndRight ( childLeft - child . getLeft ( ) ) ;
 child . offsetTopAndBottom ( childTop - child . getTop ( ) ) ;
 }
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }

 void fillGap ( boolean down ) {


<nb> public final class JPAProvider {
 private static void addMapping ( String className , JPQLTemplates templates ) {
 try {
 mappings . put ( Class . forName ( className ) , templates ) ;
 - } catch ( ClassNotFoundException e ) { }
 + } catch ( Exception e ) { }
 }

 static {


<nb> public abstract class Game implements ApplicationListener {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setScreen ( Screen screen ) {
 if ( this . screen != null ) this . screen . hide ( ) ;
 this . screen = screen ;
 - screen . show ( ) ;
 - screen . resize ( Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ;
 + if ( this . screen != null ) {
 + screen . show ( ) ;
 + screen . resize ( Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ;
 + }
 }

 COMMENT


<nb> public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra
 }

 public void addButtonToLowerPane ( Runnable runnable , String text ) {
 - addButtonToLowerPane ( runnable , text , ( char ) - NUMBER0 ) ;
 - }
 -
 - public void addButtonToLowerPane ( final Runnable runnable , String text , char mnemonic ) {
 int index = myButtonPanel . getComponentCount ( ) ;

 if ( index > NUMBER1 && myPresentation . isShowCancelButton ( ) ) index -- ;

 - JButton button = myButtonPanel . add ( index , runnable , text ) ;
 - if ( mnemonic != - NUMBER0 ) {
 - button . setMnemonic ( mnemonic ) ;
 - }
 + myButtonPanel . add ( index , runnable , text ) ;
 + }
 +
 + public void addButtonToLowerPane ( final Runnable runnable , String text , char mnemonic ) {
 + SINGLE
 + addButtonToLowerPane ( runnable , text ) ;
 }

 public void addPerformOperationAction ( final Runnable processRunnable ,


<nb> public class HotThreads {
 continue ;
 }
 ThreadInfo info = threadBean . getThreadInfo ( threadId , NUMBER0 ) ;
 - System . out . println ( info . getThreadName ( ) ) ;
 if ( info == null ) {
 continue ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class StateEditor {
 COMMENT
 COMMENT
 public void incrementTimeInSeconds ( int seconds ) {
 - incrementTimeInMilliseconds ( seconds * NUMBER0 ) ;
 + incrementTimeInMilliseconds ( seconds * NUMBER1 ) ;
 }

 - public void incrementTimeInMilliseconds ( int milliseconds ) {
 + public void incrementTimeInMilliseconds ( long milliseconds ) {
 if ( milliseconds < NUMBER2 ) {
 LOG . warn ( STRING0
 + child . getBackEdge ( ) ) ;


<nb> public class OrientEdgeIterator extends OLazyWrapperIterator < OrientEdge > {
 final OIdentifiable rec = ( OIdentifiable ) iObject ;
 final ODocument value = rec . getRecord ( ) ;

 - if ( value == null )
 + if ( value == null || value . getSchemaClass ( ) == null )
 return null ;

 final OrientEdge edge ;

Fixed case when dirty documents are attached


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AuditorImpl implements Auditor {
 SINGLE
 packet . setFrom ( ( String ) null ) ;
 break ;
 - case Session . STATUS_STREAMING :
 - element . addAttribute ( STRING0 , STRING1 ) ;
 - break ;
 default :
 element . addAttribute ( STRING0 , STRING2 ) ;
 break ;


<nb> public class ECKey implements EncryptableItem , Serializable {
 private String toString ( boolean includePrivate ) {
 final ToStringHelper helper = Objects . toStringHelper ( this ) . omitNullValues ( ) ;
 helper . add ( STRING0 , Utils . HEX . encode ( pub . getEncoded ( ) ) ) ;
 - if ( includePrivate )
 + if ( includePrivate && priv != null )
 helper . add ( STRING1 , Utils . HEX . encode ( priv . toByteArray ( ) ) ) ;
 if ( creationTimeSeconds > NUMBER0 )
 helper . add ( STRING2 , creationTimeSeconds ) ;

Clear an NPE in wallet printing that could occur when printing a wallet with private keys included


<nb> public class AnnotationUtilsTest {
 assertThat ( annotation . value ( ) , is ( STRING0 ) ) ;
 }

 -
 @ test
 public void searchClassAnnotationInSuperClass ( ) {
 FakeAnnotation annotation = AnnotationUtils . getClassAnnotation ( new ChildClass ( ) , FakeAnnotation . class ) ;
 <nb> public class AnnotationUtilsTest {
 assertThat ( annotation , nullValue ( ) ) ;
 }

 + @ test
 + public void shouldAcceptClasses ( ) {
 + FakeAnnotation annotation = AnnotationUtils . getClassAnnotation ( SuperClass . class , FakeAnnotation . class ) ;
 + assertThat ( annotation . value ( ) , is ( STRING0 ) ) ;
 +
 + annotation = AnnotationUtils . getClassAnnotation ( ChildClass . class , FakeAnnotation . class ) ;
 + assertThat ( annotation . value ( ) , is ( STRING0 ) ) ;
 + }
 +
 }

 @ retention ( RetentionPolicy . RUNTIME )


<nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
 COMMENT
 COMMENT
 COMMENT
 - private static final int MIN_CLUSTER_SIZE = NUMBER0 ;
 + private int mMinClusterSize = NUMBER0 ;

 COMMENT
 COMMENT
 <nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
 return BUCKETS [ BUCKETS . length - NUMBER1 ] ;
 }

 - COMMENT
 + public int getMinClusterSize ( ) {
 + return mMinClusterSize ;
 + }
 +
 + public void setMinClusterSize ( int minClusterSize ) {
 + mMinClusterSize = minClusterSize ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
 COMMENT
 COMMENT
 COMMENT
 - protected boolean shouldRenderAsCluster ( Cluster cluster ) {
 - return cluster . getSize ( ) > MIN_CLUSTER_SIZE ;
 + protected boolean shouldRenderAsCluster ( Cluster < T > cluster ) {
 + return cluster . getSize ( ) > mMinClusterSize ;
 }

 COMMENT


<nb> public class LinearLayoutManager extends RecyclerView . LayoutManager implements
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public int getOrientation ( ) {
 <nb> public class LinearLayoutManager extends RecyclerView . LayoutManager implements
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public boolean getReverseLayout ( ) {
 return mReverseLayout ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SeriesGuideApplication extends Application {
 GoogleAnalytics . getInstance ( this ) . setAppOptOut ( AppSettings . isGaAppOptOut ( this ) ) ;
 if ( BuildConfig . DEBUG ) {
 GoogleAnalytics . getInstance ( this ) . setDryRun ( true ) ;
 - GoogleAnalytics . getInstance ( this ) . getLogger ( ) . setLogLevel ( Logger . LogLevel . VERBOSE ) ;
 }
 SINGLE
 Analytics . getTracker ( this ) ;

Remove useless log level setter for analytics


<nb> public abstract class CharMatcher implements Predicate < Character > {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 + @ gwtincompatible
 + public static CharMatcher fromBitSet ( BitSet bitset ) {
 + return new BitSetMatcher ( ( BitSet ) bitset . clone ( ) , STRING0 ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Temporarily allow creation of a CharMatcher from a BitSet for internal purposes


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ProjectConfigurableContext extends FacetEditorContextBase
 }

 @ notnull
 + @ override
 + public ModuleRootModel getRootModel ( ) {
 + return myModuleConfigurationState . getModulesProvider ( ) . getRootModel ( myModule ) ;
 + }
 +
 + @ notnull
 public ModifiableRootModel getModifiableRootModel ( ) {
 return myModuleConfigurationState . getRootModel ( ) ;
 }

avoided unnecessary ModifiableRootModel in facet editors


<nb> public class SQLInsertTest extends DocumentDBBaseTest {

 SINGLE
 final String sql2 = STRING0
 - + STRING1 + STRING2 + STRING3 ;
 + + STRING1 + STRING4 ;
 List < ? > res_sql2 = database . command ( new OCommandScript ( STRING5 , sql2 ) ) . execute ( ) ;
 Assert . assertEquals ( res_sql2 . size ( ) , NUMBER0 ) ;
 Assert . assertTrue ( ( ( List ) res_sql2 ) . get ( NUMBER1 ) instanceof ORecordId ) ;

 SINGLE
 final String sql3 = STRING6
 - + STRING7 + STRING2 + STRING3 ;
 + + STRING7 + STRING4 ;
 List < ? > res_sql3 = database . command ( new OCommandScript ( STRING5 , sql3 ) ) . execute ( ) ;
 Assert . assertEquals ( res_sql3 . size ( ) , NUMBER0 ) ;
 Assert . assertTrue ( ( ( List ) res_sql3 ) . get ( NUMBER1 ) instanceof ODocument ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
 }
 } ;

 - private void resetUserExpandedStates ( ) {
 + public void resetUserExpandedStates ( ) {
 ArrayList < Entry > activeNotifications = mNotificationData . getActiveNotifications ( ) ;
 final int notificationCount = activeNotifications . size ( ) ;
 for ( int i = NUMBER0 ; i < notificationCount ; i ++ ) {
 <nb> public class NotificationStackScrollLayout extends ViewGroup
 mIsExpansionChanging = false ;
 if ( ! mIsExpanded ) {
 mOwnScrollY = NUMBER0 ;
 + mPhoneStatusBar . resetUserExpandedStates ( ) ;

 SINGLE
 getOverlay ( ) . clear ( ) ;

Reseting user expansions when the shade is collapsed


<nb> public class SourceFormatter {

 readAttributes = false ;
 }
 + else if ( trimmedLine . endsWith ( StringPool . APOSTROPHE ) &&
 + ! trimmedLine . contains ( StringPool . QUOTE ) ) {
 +
 + line = StringUtil . replace (
 + line , StringPool . APOSTROPHE , StringPool . QUOTE ) ;
 +
 + readAttributes = false ;
 + }
 else if ( Validator . isNotNull ( previousAttribute ) ) {
 if ( ! _isJSPAttributName ( attribute ) ) {
 _processErrorMessage (

SourceFormatter use quotes as delimeter when possible


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ContentView extends FrameLayout {
 private static final String TAG = STRING0 ;
 private static final String HTTP_PREFIX = STRING1 ;
 private static final String HTTPS_PREFIX = STRING2 ;
 + private static final String DUCK_DUCK_SEARCH_ENGINE = STRING3 ;

 private static int sNextArticleNotificationId = NUMBER0 ;

 <nb> public class ContentView extends FrameLayout {
 if ( Patterns . WEB_URL . matcher ( strUrlWithPrefix ) . matches ( ) ) {
 LoadWebPage ( strUrlWithPrefix ) ;
 } else {
 - SINGLE
 + SINGLE
 + try {
 + String strQuery = DUCK_DUCK_SEARCH_ENGINE + STRING4 + URLEncoder . encode ( strUrl , STRING5 ) ;
 + LoadWebPage ( strQuery ) ;
 + } catch ( IOException ioe ) {
 + SINGLE
 + }
 }

 mToolbarLayout . bringToFront ( ) ;


<nb> public final class SloppyMath {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Implement Bayes Net interface basic Gibbs though broken


<nb> public class CreateClassFromUsageFix extends CreateClassFromUsageBaseFix {
 assert element != null ;
 if ( ! CodeInsightUtilBase . preparePsiElementForWrite ( element ) ) return ;
 final String superClassName = getSuperClassName ( element ) ;
 + final PsiClass aClass = CreateFromUsageUtils . createClass ( element , myKind , superClassName ) ;
 + if ( aClass == null ) return ;
 +
 ApplicationManager . getApplication ( ) . runWriteAction (
 new Runnable ( ) {
 public void run ( ) {
 PsiJavaCodeReferenceElement refElement = element ;
 - final PsiClass aClass = CreateFromUsageUtils . createClass ( refElement , myKind , superClassName ) ;
 - if ( aClass == null ) return ;
 try {
 refElement = ( PsiJavaCodeReferenceElement ) refElement . bindToElement ( aClass ) ;
 }


<nb> public final class NioEventLoop extends SingleThreadEventLoop {
 SINGLE
 SINGLE
 logger . warn (
 - STRING0 ,
 - selectCnt ) ;
 + STRING1 ,
 + selectCnt , selector ) ;

 rebuildSelector ( ) ;
 selector = this . selector ;
 <nb> public final class NioEventLoop extends SingleThreadEventLoop {

 if ( selectCnt > MIN_PREMATURE_SELECTOR_RETURNS ) {
 if ( logger . isDebugEnabled ( ) ) {
 - logger . debug ( STRING2 , selectCnt - NUMBER0 ) ;
 + logger . debug ( STRING3 ,
 + selectCnt - NUMBER0 , selector ) ;
 }
 }
 } catch ( CancelledKeyException e ) {
 if ( logger . isDebugEnabled ( ) ) {
 - logger . debug ( CancelledKeyException . class . getSimpleName ( ) + STRING4 , e ) ;
 + logger . debug ( CancelledKeyException . class . getSimpleName ( ) + STRING5 ,
 + selector , e ) ;
 }
 SINGLE
 }

Log Selector instance when Selector needs to be rebuild


<nb> public class ODatabaseGraphTx extends ODatabasePojoAbstract < ODocument , OGraphEle
 throw new OGraphException (
 STRING0 ) ;

 - if ( doc . getClassName ( ) . equals ( OGraphVertex . class . getSimpleName ( ) ) )
 - return new OGraphVertex ( this , doc ) ;
 - else if ( doc . getClassName ( ) . equals ( OGraphEdge . class . getSimpleName ( ) ) )
 - return new OGraphEdge ( this , doc ) ;
 - else
 - throw new IllegalArgumentException ( STRING1 + doc . getClassName ( ) ) ;
 + return newInstance ( doc . getClassName ( ) ) . setDocument ( doc ) ;
 }

 public ODatabaseComplex < OGraphElement > save ( final OGraphElement iObject ) {
 <nb> public abstract class OGraphElement extends ODocumentWrapper implements ORecordL
 return document . fieldNames ( ) ;
 }

 - public void setDocument ( final ODocument iDocument ) {
 + public OGraphElement setDocument ( final ODocument iDocument ) {
 document = iDocument ;
 + return this ;
 }

 public ODatabaseGraphTx getDatabase ( ) {

it didn t load sub classes of vertex and edge


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FrontChannelLogoutActionTests {

 @ before
 public void onSetUp ( ) throws Exception {
 - final LogoutManager logoutManager = new LogoutManagerImpl ( mock ( ServicesManager . class ) , new SimpleHttpClient ( ) ) ;
 + final LogoutManager logoutManager = new LogoutManagerImpl ( mock ( ServicesManager . class ) ,
 + new SimpleHttpClient ( ) , new SamlCompliantLogoutMessageBuilder ( ) ) ;
 this . frontChannelLogoutAction = new FrontChannelLogoutAction ( logoutManager ) ;

 this . request = new MockHttpServletRequest ( ) ;
 <nb> public class FrontChannelLogoutActionTests {
 assertEquals ( FrontChannelLogoutAction . FINISH_EVENT , event . getId ( ) ) ;
 }

 - @ suppresswarnings ( STRING0 )
 @ test
 public void testLogoutOneLogoutRequestNotAttempted ( ) throws Exception {
 final String FAKE_URL = STRING1 ;


<nb> public class MediaDeviceSession
 return captureDevice ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private Processor createPlayer (
 ReceiveStream receiveStream ,
 DataSource receiveStreamDataSource )


<nb> public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer
 vp . removeView ( this ) ;
 JCMediaManager . instance ( ) . lastState = currentState ; SINGLE
 JCVideoPlayerManager . popListener ( ) ;
 - JCVideoPlayerManager . getFirst ( ) . goBackThisListener ( ) ;
 - CLICK_QUIT_FULLSCREEN_TIME = System . currentTimeMillis ( ) ;
 -
 - refreshCache ( ) ;
 + if ( JCVideoPlayerManager . getFirst ( ) != null ) {
 + JCVideoPlayerManager . getFirst ( ) . goBackThisListener ( ) ;
 + CLICK_QUIT_FULLSCREEN_TIME = System . currentTimeMillis ( ) ;

 + refreshCache ( ) ;
 + } else {
 + JCVideoPlayerManager . completeAll ( ) ;
 + }
 return true ;
 }


<nb> public class EduDocumentListener extends DocumentAdapter {
 answerPlaceholder . setLine ( line ) ;
 answerPlaceholder . setStart ( start ) ;
 if ( usePossibleAnswerLength ) {
 - answerPlaceholder . setPossibleAnswer ( document . getText ( TextRange . create ( start , start + length ) ) ) ;
 + answerPlaceholder . setPossibleAnswer ( document . getText ( TextRange . create ( twStart , twStart + length ) ) ) ;
 }
 else if ( myTrackLength ) {
 answerPlaceholder . setLength ( length ) ;

fixed possible answer detection on document changed event


<nb> public class ExtensionElementsParser implements BpmnXMLConstants {
 if ( xtr . isStartElement ( ) ) {
 if ( ELEMENT_EXECUTION_LISTENER . equals ( xtr . getLocalName ( ) ) ) {
 new ExecutionListenerParser ( ) . parseChildElement ( xtr , parentElement , model ) ;
 - } else if ( ELEMENT_EVENT_LISTENER . equals ( xtr . getLocalName ( ) ) ) {
 + } else if ( ELEMENT_EVENT_LISTENER . equals ( xtr . getLocalName ( ) ) ) {
 new ActivitiEventListenerParser ( ) . parseChildElement ( xtr , parentElement , model ) ;
 + } else if ( ELEMENT_POTENTIAL_STARTER . equals ( xtr . getLocalName ( ) ) ) {
 + new PotentialStarterParser ( ) . parse ( xtr , activeProcess ) ;
 } else {
 ExtensionElement extensionElement = BpmnXMLUtil . parseExtensionElement ( xtr ) ;
 parentElement . addExtensionElement ( extensionElement ) ;


<nb> public class QueryLoggerKernelExtension extends KernelExtensionFactory < QueryLogg
 long time = clock . currentTimeMillis ( ) - startTime ;
 if ( time >= thresholdMillis )
 {
 - log . info ( STRING0 , time , session ,
 + log . info ( STRING0 , time , session . toString ( ) ,
 query == null ? STRING1 : query ) ;
 }
 }


<nb> public class CallManager
 if ( mainFrame . getState ( ) == JFrame . ICONIFIED )
 mainFrame . setState ( JFrame . NORMAL ) ;

 + if ( ! mainFrame . isVisible ( ) )
 + mainFrame . setVisible ( true ) ;
 +
 mainFrame . toFront ( ) ;

 this . callButton . setEnabled ( true ) ;

show the main window if hidden when a new call is received


<nb> public class CacheManagingDrawTask extends DrawTask {
 break ;
 case CLEAR_ALL_CACHES :
 evictAll ( ) ;
 + mCacheTimer . update ( mTimer . currMillisecond ) ;
 mSeekedFlag = true ;
 break ;
 case CLEAR_OUTSIDE_CACHES :

Fix possible forever cache miss after ScaleTextSize updated


<nb> public class CassandraThriftStoreManager extends AbstractCassandraStoreManager {
 public static final ConfigOption < Integer > CPOOL_MAX_TOTAL =
 new ConfigOption < Integer > ( CPOOL_NS , STRING0 ,
 STRING1 ,
 - ConfigOption . Type . MASKABLE , NUMBER0 ) ;
 + ConfigOption . Type . MASKABLE , - NUMBER1 ) ;

 public static final ConfigOption < Integer > CPOOL_MAX_ACTIVE =
 new ConfigOption < Integer > ( CPOOL_NS , STRING2 ,
 STRING3 ,
 - ConfigOption . Type . MASKABLE , - NUMBER1 ) ;
 + ConfigOption . Type . MASKABLE , NUMBER2 ) ;

 public static final ConfigOption < Integer > CPOOL_MAX_IDLE =
 new ConfigOption < Integer > ( CPOOL_NS , STRING4 ,
 STRING5 ,
 - ConfigOption . Type . MASKABLE , - NUMBER1 ) ;
 + ConfigOption . Type . MASKABLE , NUMBER3 ) ;

 public static final ConfigOption < Integer > CPOOL_MIN_IDLE =
 new ConfigOption < Integer > ( CPOOL_NS , STRING6 ,

Tweak default cassandrathrift connection pool settings


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 public class GitFetch extends GitRepositoryAction {
 @ override
 @ notnull


<nb> public class ClassNode extends AnnotatedNode implements Opcodes {
 }

 public void setModifiers ( int modifiers ) {
 - this . modifiers = modifiers ;
 + redirect ( ) . modifiers = modifiers ;
 }

 public List < PropertyNode > getProperties ( ) {

Deprecated does not have effect in Groovy


<nb> public interface WebViewFactoryProvider {
 String findAddress ( String addr ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - void setPlatformNotificationsEnabled ( boolean enable ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove unused function from the WebView statics


<nb> public class K9PreferenceActivity extends SherlockPreferenceActivity {
 public void onCreate ( Bundle icicle ) {
 K9Activity . setLanguage ( this , K9 . getK9Language ( ) ) ;

 - if ( Build . VERSION . SDK_INT >= NUMBER0 && Build . VERSION . SDK_INT < NUMBER1 ) {
 - SINGLE
 - SINGLE
 + if ( Build . VERSION . SDK_INT >= NUMBER0 && Build . VERSION . SDK_INT < NUMBER2 ) {
 + SINGLE
 + SINGLE
 SINGLE
 setTheme ( K9 . getK9ThemeResourceId ( K9 . THEME_DARK ) ) ;
 } else {

Use workaround for PreferenceScreen display bug on Honeycomb too


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 public class MediaRemoteControlReceiver extends BroadcastReceiver {

 @ override
 public void onReceive ( Context context , Intent intent ) {
 - Toast . makeText ( context , STRING0 , Toast . LENGTH_LONG ) . show ( ) ;
 if ( Intent . ACTION_MEDIA_BUTTON . equals ( intent . getAction ( ) ) ) {
 AudioVideoNotesPlugin plugin = OsmandPlugin . getEnabledPlugin ( AudioVideoNotesPlugin . class ) ;
 if ( plugin != null && intent . getParcelableExtra ( Intent . EXTRA_KEY_EVENT ) != null ) {
 - System . out . println ( STRING1 + intent . getIntExtra ( Intent . EXTRA_KEY_EVENT , NUMBER0 ) ) ;
 + SINGLE
 SINGLE
 }
 }


<nb> public class JoglInput implements Input , MouseMotionListener , MouseListener , Mou
 deltaY = e . getLocationOnScreen ( ) . y - y ;
 if ( e . getX ( ) < NUMBER0 || e . getX ( ) >= canvas . getWidth ( ) || e . getY ( ) < NUMBER0 || e . getY ( ) >= canvas . getHeight ( ) ) {
 robot . mouseMove ( x - deltaX , y - deltaY ) ;
 - }
 - System . out . println ( STRING0 + e . getX ( ) + STRING1 + e . getY ( ) + STRING2 + ( x - canvas . getLocationOnScreen ( ) . x ) + STRING1 + ( y - canvas . getLocationOnScreen ( ) . y ) ) ;
 + }
 }
 }


<nb> public class MongodbReplBundle extends AbstractBundle {
 }
 return decision ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING0 ;
 + }
 }
 }
 <nb> public class StampedeService extends AbstractIdleService implements Supervisor {

 @ override
 public SupervisorDecision onError ( Object supervised , Throwable error ) {
 - LOGGER . error ( STRING1 + supervised + STRING2 , error ) ;
 + LOGGER . error ( STRING3 + supervised + STRING2 , error ) ;
 this . stopAsync ( ) ;
 return SupervisorDecision . IGNORE ;
 }

Changed the message printed by StampedeService when a supervised object fails


<nb> public class OperatorContext
 public void recordAddInput ( Page page )
 {
 addInputCalls . incrementAndGet ( ) ;
 - addInputWallNanos . getAndAdd ( nanosBetween ( intervalWallStart . get ( ) , System . nanoTime ( ) ) ) ;
 + recordInputWallNanos ( nanosBetween ( intervalWallStart . get ( ) , System . nanoTime ( ) ) ) ;
 addInputCpuNanos . getAndAdd ( nanosBetween ( intervalCpuStart . get ( ) , currentThreadCpuTime ( ) ) ) ;
 addInputUserNanos . getAndAdd ( nanosBetween ( intervalUserStart . get ( ) , currentThreadUserTime ( ) ) ) ;

 <nb> public class OperatorContext
 {
 inputDataSize . update ( sizeInBytes ) ;
 inputPositions . update ( positions ) ;
 - addInputWallNanos . getAndAdd ( readNanos ) ;
 + recordInputWallNanos ( readNanos ) ;
 + }
 +
 + public long recordInputWallNanos ( long readNanos )
 + {
 + return addInputWallNanos . getAndAdd ( readNanos ) ;
 }

 public void recordGetOutput ( Page page )

Add OperatorContext recordInputWallNanos long


<nb> public class SlidingUpPanelLayout extends ViewGroup {
 }

 private void onPanelDragged ( int newTop ) {
 - mLastNotDraggingSlideState = mSlideState ;
 + if ( mSlideState != PanelState . DRAGGING ) {
 + mLastNotDraggingSlideState = mSlideState ;
 + }
 setPanelStateInternal ( PanelState . DRAGGING ) ;
 SINGLE
 mSlideOffset = computeSlideOffset ( newTop ) ;

Fix wrong state saved while dragging or in drag motion


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PSurfaceJOGL implements PSurface {
 SINGLE
 }

 +
 + COMMENT
 public Canvas initComponent ( PApplet sketch ) {
 this . sketch = sketch ;

 <nb> public class PSurfaceJOGL implements PSurface {

 return null ;
 }
 + COMMENT
 +

 - public void initFrame ( PApplet sketch , Color backgroundColor ,
 - int deviceIndex , boolean fullScreen ,
 - boolean spanDisplays ) {
 + public void initFrame ( PApplet sketch , int backgroundColor ,
 + int deviceIndex , boolean fullScreen ,
 + boolean spanDisplays ) {
 this . sketch = sketch ;

 Display display = NewtFactory . createDisplay ( null ) ;
 <nb> public class PSurfaceJOGL implements PSurface {

 }

 - public void placePresent ( Color stopColor ) {
 + public void placePresent ( int stopColor ) {
 SINGLE

 }


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 import NAMESPACE ;
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 public class AsyncStandardStreamsListener extends AsyncRunListener implements IStandardStreamsListener {


<nb> public class CSSLayout {
 STRING0 + left + STRING1 +
 STRING2 + top + STRING1 +
 STRING3 + width + STRING1 +
 - STRING4 + height +
 + STRING4 + height + STRING1 +
 STRING5 + direction +
 STRING6 ;
 }


<nb> public class AntiEntropyService
 completed . await ( ) ;
 if ( exception == null )
 {
 - logger . info ( String . format ( STRING0 , getName ( ) ) , cfnames , range ) ;
 + logger . info ( String . format ( STRING0 , getName ( ) , cfnames , range ) ) ;
 }
 else
 {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class SpecifyTypeInPy3AnnotationsIntention implements IntentionAction {
 parameter = ( PyParameter ) problemElement ;
 else if ( reference != null && reference . resolve ( ) instanceof PyParameter )
 parameter = ( PyParameter ) reference . resolve ( ) ;
 - if ( parameter instanceof PyNamedParameter && ( ( PyNamedParameter ) parameter ) . getAnnotation ( ) != null ) return false ;
 + if ( parameter instanceof PyNamedParameter && ( ( ( PyNamedParameter ) parameter ) . getAnnotation ( ) != null ||
 + parameter . getDefaultValue ( ) != null ) ) return false ;
 return true ;
 }
 }


<nb> public abstract class ChannelInitializer < C extends Channel > extends ChannelState
 initChannel ( ( C ) ctx . channel ( ) ) ;
 ctx . pipeline ( ) . remove ( this ) ;
 removed = true ;
 - SINGLE
 - SINGLE
 - ctx . pipeline ( ) . fireChannelRegistered ( ) ;
 + ctx . fireChannelRegistered ( ) ;
 success = true ;
 } catch ( Throwable t ) {
 logger . warn ( STRING0 + ctx . channel ( ) , t ) ;

Fixed a bug where ChannelInitializer can trigger the same event twice


<nb> import NAMESPACE ;
 COMMENT
 public class LocalFileBlockWriter implements BlockWriter {
 private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
 - private final BlockMeta mBlockMeta ;
 private final String mFilePath ;
 private final RandomAccessFile mLocalFile ;
 private final FileChannel mLocalFileChannel ;
 private final Closer mCloser = Closer . create ( ) ;

 public LocalFileBlockWriter ( BlockMeta blockMeta ) throws IOException {
 - mBlockMeta = Preconditions . checkNotNull ( blockMeta ) ;
 - mFilePath = mBlockMeta . getPath ( ) ;
 + this ( Preconditions . checkNotNull ( blockMeta ) . getPath ( ) ) ;
 + }
 +
 + public LocalFileBlockWriter ( String path ) throws IOException {
 + mFilePath = Preconditions . checkNotNull ( path ) ;
 mLocalFile = mCloser . register ( new RandomAccessFile ( mFilePath , STRING0 ) ) ;
 mLocalFileChannel = mCloser . register ( mLocalFile . getChannel ( ) ) ;
 }

Add another constructor of BlockWriter to take filepath as input parameter rather than BlockMeta


<nb> public class AppTransition implements Dump {
 + STRING0 + a + STRING1
 + STRING2 + transit + STRING3 + Debug . getCallers ( NUMBER0 ) ) ;
 } else if ( mNextAppTransitionType == NEXT_TRANSIT_TYPE_CLIP_REVEAL ) {
 - a = createClipRevealAnimationLocked ( transit , enter , appWidth , appHeight ) ;
 + a = createClipRevealAnimationLocked ( transit , enter ,
 + containingFrame . right - containingFrame . left ,
 + containingFrame . bottom - containingFrame . top ) ;
 if ( DEBUG_APP_TRANSITIONS || DEBUG_ANIM ) Slog . v ( TAG ,
 STRING4
 + STRING0 + a + STRING5
 <nb> class WindowStateAnimator {
 mShownAlpha *= appTransformation . getAlpha ( ) ;
 if ( appTransformation . hasClipRect ( ) ) {
 mClipRect . set ( appTransformation . getClipRect ( ) ) ;
 + SINGLE
 + mClipRect . offset ( frame . left , frame . top ) ;
 if ( mWin . mHScale > NUMBER1 ) {
 mClipRect . left /= mWin . mHScale ;
 mClipRect . right /= mWin . mHScale ;


<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 }

 if ( lineNumber >= totalLines ) {
 - moveCaretToScreenPos ( x , logicalLineToY ( totalLines - NUMBER0 ) ) ;
 + moveCaretToScreenPos ( x , visibleLineNumberToYPosition ( getVisibleLineCount ( ) - NUMBER0 ) ) ;
 return ;
 }

Fix text selection processing when cursor moved to the bottom of editor


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MongoDBRiver extends AbstractRiverComponent implements River {

 private boolean isMongos ( ) {
 DB adminDb = getAdminDb ( ) ;
 - if ( adminDb == null ) {
 - return false ;
 - }
 CommandResult cr = adminDb . command ( new BasicDBObject ( STRING0 , NUMBER0 ) ) ;

 logger . info ( STRING1 , cr . get ( STRING2 ) ) ;
 <nb> public class MongoDBRiver extends AbstractRiverComponent implements River {
 }
 }
 }
 + if ( adminDb == null ) {
 + throw new ElasticSearchException ( String . format ( STRING3 , MONGODB_ADMIN_DATABASE ) ) ;
 + }
 return adminDb ;
 }

River throws exception if it cannot find admin db


<nb>
 COMMENT

 package NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT


<nb> class ParallelTaskPlanExecutor extends DefaultTaskPlanExecutor {
 throw new IllegalArgumentException ( STRING0 + numberOfParallelExecutors ) ;
 }

 - LOGGER . info ( STRING1 , numberOfParallelExecutors ) ;
 -
 this . stateCacheAccess = cacheAccess ;
 this . executorCount = numberOfParallelExecutors ;
 }
 <nb> class ParallelTaskPlanExecutor extends DefaultTaskPlanExecutor {
 int numExecutors = Math . min ( executorCount , projects . size ( ) ) ;
 numExecutors = Math . min ( numExecutors , NUMBER0 ) ;

 + LOGGER . info ( STRING1 , numExecutors ) ;
 +
 for ( int i = NUMBER1 ; i < numExecutors ; i ++ ) {
 TaskExecutorWorker worker = new TaskExecutorWorker ( taskExecutionPlan , taskListener ) ;
 executorThreads . add ( new Thread ( worker ) ) ;

Moved the log message so that it shows correct number of executors


<nb> public abstract class ProjectManager {
 return _projects . get ( id ) ;
 } else {
 Project project = loadProject ( id ) ;
 -
 - _projects . put ( id , project ) ;
 -
 + if ( project != null ) {
 + _projects . put ( id , project ) ;
 + }
 return project ;
 }
 }


<nb> public final class AndroidGraphics implements Graphics , Renderer {
 this . width = width ;
 this . height = height ;
 updatePpi ( ) ;
 + gl . glViewport ( NUMBER0 , NUMBER0 , this . width , this . height ) ;
 app . listener . resize ( width , height ) ;
 }

Fixed gl glViewport not being called in onSurfaceChanged


<nb> public abstract class GoStubbedElementImpl < T extends StubBase < ? > > extends StubBa

 @ override
 public String toString ( ) {
 - return getNode ( ) . getElementType ( ) . toString ( ) ;
 + return getElementType ( ) . toString ( ) ;
 }

 @ nullable


<nb> public class ItemFacade extends ItemBuildCraft {
 }
 }
 } catch ( Throwable t ) {
 - System . out . println ( STRING0 + block . toString ( ) + STRING1 ) ;
 t . printStackTrace ( ) ;
 }
 }
 <nb> public class ItemFacade extends ItemBuildCraft {
 {
 if ( block . getRenderType ( ) != NUMBER0 && block . getRenderType ( ) != NUMBER1 )
 {
 - System . out . println ( block . toString ( ) + STRING2 + block . getRenderType ( ) + STRING3 ) ;
 return false ;
 }


<nb> public class GreedyEvictor implements Evictor {
 }

 private StorageDirView selectDestDir ( BlockMeta block , List < StorageTierView > toTiers ,
 - Map < StorageDirView , Long > pendingBytesInDir ) {
 + Map < StorageDirView , Long > pendingBytesInDir ) {
 for ( StorageTierView toTier : toTiers ) {
 for ( StorageDirView toDir : toTier . getDirViews ( ) ) {
 long pendingBytes = NUMBER0 ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 <nb> public interface JetClassOrObject extends PsiElement , PsiNameIdentifierOwner , Je
 boolean hasPrimaryConstructor ( ) ;

 @ nullable
 - @ override
 - String getName ( ) ;
 + Name getNameAsName ( ) ;

 @ nullable
 JetModifierList getModifierList ( ) ;

JetClassOrObject now has a type safe Name


<nb> public class ParsedStatement {
 SINGLE
 request . routing ( ( String ) getPlannerResult ( QueryPlanner . ROUTING_VALUE ) ) ;

 + SINGLE
 + if ( statementNode . getNodeType ( ) == NodeTypes . UPDATE_NODE ) {
 + request . preference ( STRING0 ) ;
 + }
 +
 return request ;
 }

execute UpdateByQuery Search using SQLFacet only on primary shards now


<nb> public class Node < T > extends AbstractTreeLikeStructure < T , Node < T > > implements Se
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ safevarargs
 public static < T > Node < T > node ( T value , Node < T > . . . children ) {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 -
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added explicit note on thread safety to JdbcTemplate variants


<nb> public abstract class XmppActivity extends Activity {
 return this . mPrimaryColor ;
 }

 + public int getOnlineColor ( ) {
 + return this . mColorGreen ;
 + }
 +
 public int getSecondaryBackgroundColor ( ) {
 return this . mSecondaryBackgroundColor ;
 }
 <nb> public class AccountAdapter extends ArrayAdapter < Account > {
 statusView . setText ( getContext ( ) . getString ( account . getStatus ( ) . getReadableId ( ) ) ) ;
 switch ( account . getStatus ( ) ) {
 case ONLINE :
 - statusView . setTextColor ( activity . getPrimaryColor ( ) ) ;
 + statusView . setTextColor ( activity . getOnlineColor ( ) ) ;
 break ;
 case DISABLED :
 case CONNECTING :

Changed online color to green instead of primary


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class InternalEngineTests extends ESTestCase {
 codecName = STRING0 ;
 }
 defaultSettings = IndexSettingsModule . newIndexSettings ( STRING1 , Settings . builder ( )
 - . put ( IndexSettings . INDEX_GC_DELETES_SETTING , STRING2 ) SINGLE
 + . put ( IndexSettings . INDEX_GC_DELETES_SETTING . getKey ( ) , STRING2 ) SINGLE
 . put ( EngineConfig . INDEX_CODEC_SETTING . getKey ( ) , codecName )
 . put ( IndexMetaData . SETTING_VERSION_CREATED , Version . CURRENT )
 - . put ( IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD ,
 + . put ( IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD . getKey ( ) ,
 between ( NUMBER0 , NUMBER0 * IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD . get ( Settings . EMPTY ) ) )
 . build ( ) ) ; SINGLE
 threadPool = new TestThreadPool ( getClass ( ) . getName ( ) ) ;

TEST Fix settings keys to be the actual keys rather than the toString of the Setting


<nb> public abstract class BaseAndroidConnectionSource implements ConnectionSource {
 }

 public void releaseConnection ( DatabaseConnection connection ) throws SQLException {
 + SINGLE
 + }
 +
 + public void saveTransactionConnection ( DatabaseConnection connection ) throws SQLException {
 + SINGLE
 + }
 +
 + public void clearTransactionConnection ( DatabaseConnection connection ) throws SQLException {
 + SINGLE
 }

 public void close ( ) throws SQLException {

Added a save and clearTransactionConnection so the TransactionManager could properly work with multiple connection DataSources


<nb> package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GroupChannel extends ChannelInterceptorBase implements ManagedChann
 COMMENT
 COMMENT
 COMMENT
 - protected final ArrayList < Object > membershipListeners = new ArrayList < > ( ) ;
 + protected final List < Object > membershipListeners = new CopyOnWriteArrayList < > ( ) ;

 COMMENT
 COMMENT
 COMMENT
 - protected final ArrayList < Object > channelListeners = new ArrayList < > ( ) ;
 + protected final List < Object > channelListeners = new CopyOnWriteArrayList < > ( ) ;

 COMMENT
 COMMENT

Avoid ConcurrentModificationException when sending a heartbeat


<nb> public class LwjglGraphics implements Graphics {

 Display . setDisplayMode ( targetDisplayMode ) ;
 Display . setFullscreen ( fullscreen ) ;
 + Display . setResizable ( ! fullscreen && config . resizable ) ;
 +
 if ( Gdx . gl != null ) Gdx . gl . glViewport ( NUMBER0 , NUMBER0 , targetDisplayMode . getWidth ( ) , targetDisplayMode . getHeight ( ) ) ;
 config . width = targetDisplayMode . getWidth ( ) ;
 config . height = targetDisplayMode . getHeight ( ) ;

Reset resizable on change of DisplayMode change


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 COMMENT
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>
 package NAMESPACE ;

 - class Chunk {
 - public Chunk ( ) {
 - }
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + abstract class Chunk {
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ParseTreePatternMatcher {
 List < ? extends Token > tokenList = tokenize ( pattern ) ;
 ListTokenSource tokenSrc = new ListTokenSource ( tokenList ) ;
 CommonTokenStream tokens = new CommonTokenStream ( tokenSrc ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 +
 parser . setTokenStream ( tokens ) ;
 parser . setErrorHandler ( new ParseTreePatternErrorStrategy ( ) ) ;
 ParseTree tree = null ;


<nb> public class ImageBlurrer {
 return null ;
 }

 - Bitmap dest = Bitmap . createBitmap ( src ) ;
 + Bitmap dest = src . copy ( src . getConfig ( ) , false ) ;
 if ( radius == FLOAT0 && desaturateAmount == FLOAT0 ) {
 return dest ;
 }

Ensure ImageBlurrer makes a copy for the destination


<nb> public class PyFileImpl extends PsiFileBase implements PyFile , PyExpression {
 VariantsProcessor processor = new VariantsProcessor ( this ) {
 @ override
 protected void addElement ( String name , PsiElement element ) {
 - result . add ( ( PyElement ) element ) ;
 - if ( remainingDunderAll != null ) {
 - remainingDunderAll . remove ( name ) ;
 + element = PyUtil . turnDirIntoInit ( element ) ;
 + if ( element instanceof PyElement ) {
 + result . add ( ( PyElement ) element ) ;
 + if ( remainingDunderAll != null ) {
 + remainingDunderAll . remove ( name ) ;
 + }
 }
 }
 } ;

avoid CCE when collecting variants in from import


<nb> final class FinderPatternFinder {
 FinderPattern pattern = ( FinderPattern ) possibleCenters . elementAt ( i ) ;
 totalDeviation += Math . abs ( pattern . getEstimatedModuleSize ( ) - average ) ;
 }
 - return totalDeviation <= FLOAT0 * totalModuleSize ;
 + return totalDeviation <= FLOAT1 * totalModuleSize ;
 }

 COMMENT
 <nb> public final class QRCodeBlackBox4TestCase extends AbstractBlackBoxTestCase {

 public QRCodeBlackBox4TestCase ( ) {
 super ( STRING0 , new MultiFormatReader ( ) , BarcodeFormat . QR_CODE ) ;
 - addTest ( NUMBER0 , NUMBER0 , FLOAT2 ) ;
 + addTest ( NUMBER1 , NUMBER1 , FLOAT2 ) ;
 addTest ( NUMBER1 , NUMBER1 , FLOAT3 ) ;
 addTest ( NUMBER0 , NUMBER0 , FLOAT4 ) ;
 addTest ( NUMBER0 , NUMBER0 , FLOAT5 ) ;

Tightened a condition to reduce accidentally detecting the alignment pattern as a finder pattern


<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
 SINGLE
 suspendedRouteServices . clear ( ) ;

 + SINGLE
 + SINGLE
 + for ( Service service : servicesToClose ) {
 + if ( service instanceof Consumer ) {
 + shutdownServices ( service ) ;
 + }
 + }
 +
 SINGLE

 SINGLE

When stopping Camel then shutdown pojo Consume eager


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 public class DnsDiscovery implements PeerDiscovery {
 private static final Logger log = LoggerFactory . getLogger ( DnsDiscovery . class ) ;

 - private String [ ] hostNames ;
 - private NetworkParameters netParams ;
 + private final String [ ] hostNames ;
 + private final NetworkParameters netParams ;

 COMMENT
 COMMENT

Fix DnsDiscovery javadocs and make a couple of fields final


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 interface CustomChange {

 <nb> public class CommandLineMigrator {
 stream . println ( STRING0 ) ;
 stream . println ( STRING1 ) ;
 stream . println ( STRING2 ) ;
 - stream . println ( STRING3 ) ;
 + stream . println ( STRING4 ) ;
 stream . println ( STRING1 ) ;
 }


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class RecyclerViewPager extends RecyclerView {

 @ override
 public boolean fling ( int velocityX , int velocityY ) {
 - boolean flinging = super . fling ( velocityX , velocityY ) ;
 + boolean flinging = super . fling ( ( int ) ( velocityX * mFlingFactor ) , ( int ) ( velocityY * mFlingFactor ) ) ;
 if ( flinging ) {
 if ( getLayoutManager ( ) . canScrollHorizontally ( ) ) {
 adjustPositionX ( velocityX ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class XmlSyncTagCommunityTest extends XmlSyncTagTest {
 public void testEndTagEnd ( ) {
 doTest ( STRING0 , STRING1 , STRING2 ) ;
 }
 +
 + @ bombed ( user = STRING3 , day = NUMBER0 , month = Calendar . AUGUST , year = NUMBER1 )
 + public void testMultipleEditors ( ) {
 + myFixture . configureByText ( XmlFileType . INSTANCE , STRING4 ) ;
 + final Editor editor = EditorFactory . getInstance ( ) . createEditor ( myFixture . getEditor ( ) . getDocument ( ) ) ;
 + EditorFactory . getInstance ( ) . releaseEditor ( editor ) ;
 + type ( STRING5 ) ;
 + myFixture . checkResult ( STRING6 ) ;
 + }
 }

failing test for multiple editors for one document


<nb> public abstract class BaseStatusBar extends SystemUI implements
 SINGLE
 final NotificationGuts guts = ( NotificationGuts ) v . findViewById (
 R . id . notification_guts ) ;
 + if ( guts == null ) {
 + SINGLE
 + return false ;
 + }

 SINGLE
 if ( guts . getVisibility ( ) == View . VISIBLE ) {

Fixed a crash when the more card or the dismissview was longpressed


<nb> public class SimpleMesh extends BaseObj {
 mVtxData [ mVtxCount ++ ] = mB ;
 mVtxData [ mVtxCount ++ ] = mA ;
 }
 + if ( ( mFlags & TEXTURE_0 ) != NUMBER0 ) {
 + makeSpace ( NUMBER1 ) ;
 + mVtxData [ mVtxCount ++ ] = mS0 ;
 + mVtxData [ mVtxCount ++ ] = mT0 ;
 + }
 if ( ( mFlags & NORMAL ) != NUMBER0 ) {
 makeSpace ( NUMBER2 ) ;
 mVtxData [ mVtxCount ++ ] = mNX ;
 mVtxData [ mVtxCount ++ ] = mNY ;
 mVtxData [ mVtxCount ++ ] = mNZ ;
 }
 - if ( ( mFlags & TEXTURE_0 ) != NUMBER0 ) {
 - makeSpace ( NUMBER1 ) ;
 - mVtxData [ mVtxCount ++ ] = mS0 ;
 - mVtxData [ mVtxCount ++ ] = mT0 ;
 - }
 }

 public void addVertex ( float x , float y ) {


<nb> public class MySQLSqlStatementBuilder extends SqlStatementBuilder {

 @ override
 protected String removeEscapedQuotes ( String token ) {
 - String noBackslashEscapes = StringUtils . replaceAll ( StringUtils . replaceAll ( token , STRING0 , STRING1 ) , STRING2 , STRING1 ) ;
 + String noEscapedBackslashes = StringUtils . replaceAll ( token , STRING3 , STRING1 ) ;
 + String noBackslashEscapes = StringUtils . replaceAll ( StringUtils . replaceAll ( noEscapedBackslashes , STRING0 , STRING1 ) , STRING2 , STRING1 ) ;
 return StringUtils . replaceAll ( noBackslashEscapes , STRING4 , STRING1 ) ;
 }

 <nb> public class MySQLSqlStatementBuilderSmallTest {

 assertTrue ( builder . isTerminated ( ) ) ;
 }
 +
 + @ test
 + public void trailingEscapedBackSlash ( ) throws Exception {
 + builder . addLine ( STRING5 ) ;
 +
 + assertTrue ( builder . isTerminated ( ) ) ;
 + }
 }

fixed improper handling of escaped backslaches


<nb> public class WebView extends AbsoluteLayout
 }
 int x = viewToContentX ( ( int ) event . getX ( ) + mWebTextView . getLeft ( ) ) ;
 int y = viewToContentY ( ( int ) event . getY ( ) + mWebTextView . getTop ( ) ) ;
 - SINGLE
 - InputMethodManager . getInstance ( getContext ( ) ) . showSoftInput ( mWebTextView ,
 - NUMBER0 ) ;
 if ( nativeFocusNodePointer ( ) != nativeCursorNodePointer ( ) ) {
 nativeMotionUp ( x , y , mNavSlop ) ;
 }

Do not show soft keyboard for readonly textfields


<nb> public abstract class PojoMessageHandlerBase < T >
 int indexSession , long maxMessageSize ) {
 this . pojo = pojo ;
 this . method = method ;
 + try {
 + this . method . setAccessible ( true ) ;
 + } catch ( Exception e ) {
 + SINGLE
 + SINGLE
 + }
 this . session = session ;
 this . params = params ;
 this . indexPayload = indexPayload ;


<nb> public class GoSdkUtil {

 @ notnull
 public static Collection < Object > getSdkAndLibrariesCacheDependencies ( @ notnull Project project , @ nullable Module module , Object . . . extra ) {
 - Collection < Object > dependencies = ContainerUtil . < Object > newArrayList ( GoLibrariesService . getModificationTrackers ( project , module ) ) ;
 + Collection < Object > dependencies = ContainerUtil . newArrayList ( ( Object [ ] ) GoLibrariesService . getModificationTrackers ( project , module ) ) ;
 ContainerUtil . addAllNotNull ( dependencies , GoSdkService . getInstance ( project ) ) ;
 ContainerUtil . addAllNotNull ( dependencies , extra ) ;
 return dependencies ;


<nb> public abstract class AbstractDaoTestCase {
 if ( settings . hasKey ( STRING0 ) ) {
 loadOrchestratorSettings ( settings ) ;
 }
 + for ( String key : settings . getKeysStartingWith ( STRING1 ) ) {
 + LOG . info ( key + STRING2 + settings . getString ( key ) ) ;
 + }
 boolean hasDialect = settings . hasKey ( STRING3 ) ;
 if ( hasDialect ) {
 database = new DefaultDatabase ( settings ) ;


<nb> public class FancyButton extends LinearLayout {
 drawable2 . setColor ( mFocusBackgroundColor ) ;
 }
 if ( mBorderColor != NUMBER0 ) {
 - drawable2 . setStroke ( mBorderWidth , mBorderColor ) ;
 + if ( mGhost ) {
 + drawable2 . setStroke ( mBorderWidth , mFocusBackgroundColor ) ; SINGLE
 + }
 + else {
 + drawable2 . setStroke ( mBorderWidth , mBorderColor ) ;
 + }
 }

 StateListDrawable states = new StateListDrawable ( ) ;
 <nb> public class FancyButton extends LinearLayout {
 COMMENT
 public void setGhost ( boolean ghost ) {
 this . mGhost = ghost ;
 +
 + if ( mIconView != null || mFontIconView != null || mTextView != null ) {
 + this . setupBackground ( ) ;
 + }
 +
 }

 }

Changing border with focus color when clicked ghost fixing ghost setter


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PutAllBackupOperation extends AbstractMapOperation implements Parti
 final Map . Entry < Data , Data > entry = entries . get ( i ) ;
 final Record record = recordStore . putBackup ( entry . getKey ( ) , entry . getValue ( ) ) ;
 Records . applyRecordInfo ( record , recordInfo ) ;
 + evict ( true ) ;
 }
 }

 <nb> public class PutAllBackupOperation extends AbstractMapOperation implements Parti
 recordInfos . add ( recordInfo ) ;
 }
 }
 +
 + protected void evict ( boolean backup ) {
 + final long now = Clock . currentTimeMillis ( ) ;
 + recordStore . evictEntries ( now , backup ) ;
 + }
 }

Fixed leftover PutAllBackupOperation operation should also call evict method like PutAllOperation


<nb> public abstract class AbstractModelConverter implements ModelConverter {
 protected String _findDefaultValue ( Annotated a ) {
 XmlElement elem = a . getAnnotation ( XmlElement . class ) ;
 if ( elem != null ) {
 - if ( ! elem . defaultValue ( ) . isEmpty ( ) ) {
 + if ( ! elem . defaultValue ( ) . isEmpty ( ) && ! STRING0 . equals ( elem . defaultValue ( ) ) ) {
 return elem . defaultValue ( ) ;
 }
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class AtmosphereRequestTest {
 } ) ;
 }

 + @ aftermethod
 + public void stop ( ) {
 + framework . destroy ( ) ;
 + }
 +
 @ test
 public void testQueryStringAsRequest ( ) throws IOException , ServletException {
 framework . addAtmosphereHandler ( STRING0 , new AbstractReflectorAtmosphereHandler ( ) {


<nb> public class EditSession extends JavaScriptObject

 public native final void setEditorMode ( String parserName ,
 boolean suppressHighlighting ) COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT ;

don t recreate editor modes on save unless mode has changed


<nb> public class AuthTimeoutTest
 public void handle ( String s , Request r , HttpServletRequest request , HttpServletResponse response )
 throws IOException , ServletException {

 + SINGLE
 +
 OutputStream out = response . getOutputStream ( ) ;
 if ( request . getHeader ( STRING0 ) != null ) {
 String content = request . getHeader ( STRING0 ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class ServerPropertiesTests {
 . getProtocolHeader ( ) ) ;
 }

 - SINGLE
 + @ test
 + public void testCustomizeTomcat ( ) throws Exception {
 + ConfigurableEmbeddedServletContainerFactory factory = mock ( ConfigurableEmbeddedServletContainerFactory . class ) ;
 + this . properties . customize ( factory ) ;
 + verify ( factory ) . setContextPath ( STRING0 ) ;
 + }
 +
 + @ test
 + public void testCustomizeTomcatPort ( ) throws Exception {
 + ConfigurableEmbeddedServletContainerFactory factory = mock ( ConfigurableEmbeddedServletContainerFactory . class ) ;
 + this . properties . setPort ( NUMBER0 ) ;
 + this . properties . customize ( factory ) ;
 + verify ( factory ) . setPort ( NUMBER0 ) ;
 + }

 }

Add test for customize container factory


<nb> public class FilterDataObject extends AssetDataObject {
 super ( pf , loader ) ;
 getLookupContents ( ) . add ( new FilterPostProcessorNode ( this ) ) ;
 saveExtension = STRING0 ;
 - getLookup ( ) . lookup ( AssetData . class ) . setExtension ( STRING0 ) ;
 }

 @ override

remove false AssetData setExtension from FilterDataObject


<nb> public class ProgressFrame extends JFrame implements PropertyChangeListener {
 SINGLE
 SINGLE

 - editor . statusNotice ( STRING0 ) ;
 + editor . statusNotice ( Language . text ( STRING1 ) ) ;
 ProgressFrame . this . closeProgressBar ( ) ;
 }

added translation of notice after saving as


<nb> public class DynamicDoubleProperty extends PropertyWrapper < Double > {
 public Double getValue ( ) {
 return get ( ) ;
 }
 - }
 + }
 <nb> public class DynamicFloatProperty extends PropertyWrapper < Float > {
 SINGLE
 return get ( ) ;
 }
 - }
 + }
 <nb> public class DynamicIntProperty extends PropertyWrapper < Integer > {
 public Integer getValue ( ) {
 return get ( ) ;
 }
 - }
 + }
 <nb> public class DynamicLongProperty extends PropertyWrapper < Long > {
 SINGLE
 return get ( ) ;
 }
 - }
 + }
 <nb> public abstract class PropertyWrapper < V > implements Property < V > {
 return STRING0 + prop . getName ( ) + STRING1
 + prop . getString ( String . valueOf ( defaultValue ) ) + STRING2 ;
 }
 - }
 + }

Revert the whitespace formatting changes


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> class GrassRS {
 private final int mHeight ;

 @ suppresswarnings ( { STRING0 } )
 - private Script mScript ;
 + private ScriptC mScript ;
 @ suppresswarnings ( { STRING0 } )
 private RenderScript . Sampler mSampler ;
 @ suppresswarnings ( { STRING0 } )


<nb> public class AbstractRestFunctionalTestBase implements GraphHolder

 protected String startGraph ( String name )
 {
 - return AsciidocHelper . createGraphViz ( STRING0 , graphdb ( ) , name ) ;
 + return AsciidocHelper . createGraphViz ( STRING1 , graphdb ( ) , name ) ;
 }

 <nb> public class RESTDocsGenerator extends AsciiDocGenerator
 line ( fw , STRING2 ) ;
 }
 if ( graph != null ) {
 - fw . append ( AsciidocHelper . createGraphViz ( STRING3 , graph , title ) ) ;
 + fw . append ( AsciidocHelper . createGraphViz ( STRING4 , graph , title ) ) ;
 line ( fw , STRING2 ) ;
 }
 line ( fw , STRING5 ) ;

Removed special characters from graphviz file names hoping this will fix windows unzipping issues


<nb> public class GLMProgressPage2 extends Progress2 {
 }
 @ override protected Response jobDone ( final Job job , final Key dst ) {
 _isDone = true ;
 - return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0 , null ) ;
 + return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0 , null , null ) ;
 }
 }
 }


<nb> public class InferenceSessionContainer {

 @ nullable
 private static PsiCall treeWalkUp ( PsiElement context ) {
 + if ( context instanceof PsiExpression && ! PsiPolyExpressionUtil . isPolyExpression ( ( PsiExpression ) context ) ) {
 + return null ;
 + }
 PsiCall top = null ;
 PsiElement parent = PsiTreeUtil . getParentOfType ( context ,
 PsiExpressionList . class ,

don t process hierarchy up for standalone expressions


<nb> public enum WarningLevel {
 options . checkSuspiciousCode = true ;
 options . checkGlobalThisLevel = CheckLevel . WARNING ;
 options . checkSymbols = true ;
 + options . checkMissingReturn = CheckLevel . WARNING ;

 SINGLE
 SINGLE
 <nb> public class CommandLineRunnerTest extends TestCase {
 test ( STRING0 , STRING1 ) ;
 }

 + public void testMissingReturnCheckOnWithVerbose ( ) {
 + args . add ( STRING2 ) ;
 + test ( STRING3 ,
 + CheckMissingReturn . MISSING_RETURN_STATEMENT ) ;
 + }
 +
 COMMENT

 private void testSame ( String original ) {

Enable check missing returns at the VERBOSE warning level by default


<nb> public final class CallTest {
 call . enqueue ( callback ) ;
 assertEquals ( STRING0 , server . takeRequest ( ) . getPath ( ) ) ;

 - callback . await ( requestA . url ( ) ) . assertFailure ( STRING1 ) ;
 + callback . await ( requestA . url ( ) ) . assertFailure (
 + STRING1 , STRING2 , STRING3 ) ;
 }

 @ test public void canceledBeforeResponseReadSignalsOnFailure_HTTP_2 ( ) throws Exception {
 <nb> public class RecordedResponse {
 return new RecordedResponse ( cacheResponse . request ( ) , cacheResponse , null , null ) ;
 }

 - public void assertFailure ( String message ) {
 + public void assertFailure ( String . . . messages ) {
 assertNotNull ( failure ) ;
 - assertEquals ( message , failure . getMessage ( ) ) ;
 + assertTrue ( failure . getMessage ( ) , Arrays . asList ( messages ) . contains ( failure . getMessage ( ) ) ) ;
 }
 }

Accept other messages when testing canceled requests


<nb> public abstract class AbstractJDBCItemSimilarity extends AbstractJDBCComponent i

 @ override
 public double itemSimilarity ( Item item1 , Item item2 ) throws TasteException {
 +
 + int compare = item1 . compareTo ( item2 ) ;
 + if ( compare == NUMBER0 ) {
 + return FLOAT0 ;
 + }
 + SINGLE
 + if ( compare > NUMBER0 ) {
 + Item temp = item1 ;
 + item1 = item2 ;
 + item2 = temp ;
 + }
 +
 Connection conn = null ;
 PreparedStatement stmt = null ;
 ResultSet rs = null ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class MessageLengthInterceptor extends AtmosphereInterceptorAdapter {


<nb> public class MimeUtility
 COMMENT
 COMMENT
 COMMENT
 - charset = Charset . forName ( originalCharset ) . name ( ) ;
 +
 + charset = Charset . forName ( fixupCharset ( originalCharset ) ) . name ( ) ;

 if ( charset == null )
 {
 <nb> public class MimeUtility
 }
 return DEFAULT_ATTACHMENT_MIME_TYPE ;
 }
 +
 +
 + private static String fixupCharset ( String charset )
 + {
 + charset = charset . toLowerCase ( ) ;
 + if ( charset . equals ( STRING0 ) )
 + return STRING1 ;
 + else if ( charset . equals ( STRING2 ) )
 + return STRING3 ;
 +
 + return charset ;
 +
 + }
 +
 +
 }

Add a hook for hinting charset conversions to Java since Android s java


<nb> public class GrailsPageResponseWrapper extends HttpServletResponseWrapper {
 private GrailsBuffer buffer ;
 private boolean parseablePage = false ;
 private GSPSitemeshPage gspSitemeshPage ;
 + private String wrapperContentType = null ;

 public GrailsPageResponseWrapper ( final HttpServletRequest request , final HttpServletResponse response ,
 PageParserSelector parserSelector ) {
 <nb> public class GrailsPageResponseWrapper extends HttpServletResponseWrapper {
 COMMENT
 @ override
 public void setContentType ( String type ) {
 + this . wrapperContentType = type ;
 super . setContentType ( type ) ;

 if ( type == null ) {
 <nb> public class GrailsPageResponseWrapper extends HttpServletResponseWrapper {
 deactivateSiteMesh ( ) ;
 }
 }
 +
 + @ override
 + public String getContentType ( ) {
 + return this . wrapperContentType ;
 + }

 public void activateSiteMesh ( String contentType , String encoding ) {
 if ( parseablePage ) {
 <nb> public class GrailsPageResponseWrapper extends HttpServletResponseWrapper {
 return byteBuffer != null ;
 }
 }
 +
 }

make GrailsPageResponseWrapper getContentType return only the contentType that has been set to the wrapper instance


<nb> public class IOSTarget extends AbstractTarget {
 env = Collections . emptyMap ( ) ;
 }

 - AppLauncher launcher = new AppLauncher ( device , getAppDir ( ) )
 + AppLauncher launcher = new AppLauncher ( device , getAppDir ( ) ) {
 + protected void log ( String s , Object . . . args ) {
 + config . getLogger ( ) . debug ( s , args ) ;
 + }
 + }
 . stdout ( out )
 . closeOutOnExit ( true )
 . args ( launchParameters . getArguments ( ) . toArray ( new String [ NUMBER0 ] ) )
 . env ( env )
 + . xcodePath ( ToolchainUtil . findXcodePath ( ) )
 . uploadProgressCallback ( new UploadProgressCallback ( ) {
 boolean first = true ;
 public void success ( ) {

Improved logging when launching on device


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class EndpointMvcIntegrationTests {

 protected static class TestInterceptor extends HandlerInterceptorAdapter {

 - private int count = NUMBER0 ;
 + private final AtomicInteger count = new AtomicInteger ( NUMBER0 ) ;

 @ override
 public void postHandle ( HttpServletRequest request , HttpServletResponse response ,
 Object handler , ModelAndView modelAndView ) throws Exception {
 - this . count ++ ;
 + this . count . incrementAndGet ( ) ;
 }

 public int getCount ( ) {
 - return this . count ;
 + return this . count . get ( ) ;
 }

 }


<nb> public final class TachyonConf {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private void checkUserFileBufferBytes ( ) {

SMALLFIX Fixed documentation links for checkUserFileBufferBytes in TachyonConf


<nb> public class StringTermsTests extends ElasticsearchIntegrationTest {
 @ test
 public void singleValuedField_OrderedByMultiValuedSubAggregation_WithUknownMetric ( ) throws Exception {
 try {
 - client ( ) . prepareSearch ( STRING0 ) . setTypes ( STRING1 )
 + SearchResponse response = client ( ) . prepareSearch ( STRING0 ) . setTypes ( STRING1 )
 . addAggregation ( terms ( STRING2 )
 . executionHint ( randomExecutionHint ( ) )
 . field ( SINGLE_VALUED_FIELD_NAME )
 <nb> public class StringTermsTests extends ElasticsearchIntegrationTest {
 . order ( Terms . Order . aggregation ( STRING3 , true ) )
 . subAggregation ( stats ( STRING4 ) . field ( STRING5 ) )
 ) . execute ( ) . actionGet ( ) ;
 -
 fail ( STRING6 +
 - STRING7 ) ;
 + STRING8 + response . getFailedShards ( ) + STRING9 ) ;

 } catch ( ElasticsearchException e ) {
 SINGLE

TEST added more information to fail message for a test to debug test failure


<nb> public class WebSocketProcessor implements Serializable {
 if ( resource != null && resource . isInScope ( ) ) {
 AsynchronousProcessor . AsynchronousProcessorHook h = ( AsynchronousProcessor . AsynchronousProcessorHook )
 resource . getRequest ( ) . getAttribute ( ASYNCHRONOUS_HOOK ) ;
 - if ( closeCode == NUMBER0 ) {
 - h . timedOut ( ) ;
 + if ( h != null ) {
 + if ( closeCode == NUMBER0 ) {
 + h . timedOut ( ) ;
 + } else {
 + h . closed ( ) ;
 + }
 } else {
 - h . closed ( ) ;
 + logger . warn ( STRING0 ) ;
 }
 }
 } finally {


<nb> public final class CachedBluetoothDevice implements Comparable < CachedBluetoothDe
 COMMENT
 COMMENT
 if ( ! mProfiles . isEmpty ( )
 - && ( ( mConnectAttempted + timeout ) > SystemClock . elapsedRealtime ( )
 - || ( mConnectAttempted == NUMBER0 ) ) ) {
 + && ( ( mConnectAttempted + timeout ) > SystemClock . elapsedRealtime ( ) ) ) {
 connectWithoutResettingTimer ( false ) ;
 }
 +
 dispatchAttributesChanged ( ) ;
 }


<nb> public final class QueryId
 if ( obj == null || getClass ( ) != obj . getClass ( ) ) {
 return false ;
 }
 - final QueryId other = ( QueryId ) obj ;
 + QueryId other = ( QueryId ) obj ;
 return Objects . equals ( this . id , other . id ) ;
 }


<nb> public class ChooseTargetContributor implements ChooseByNameContributor {
 }
 SINGLE
 if ( file . getName ( ) . equals ( STRING0 ) ) {
 - String target = STRING1 + currentText . substring ( NUMBER0 , currentText . length ( ) - NUMBER1 ) + STRING2 ;
 + int end = currentText . length ( ) - NUMBER1 ;
 + SINGLE
 + if ( currentText . isEmpty ( ) ) {
 + end = NUMBER0 ;
 + }
 + String target = STRING1 + currentText . substring ( NUMBER0 , end ) + STRING2 ;

 if ( otherTargets . containsKey ( target ) ) {
 names . addAll ( otherTargets . get ( target ) ) ;


<nb> public class ConnectionPool {
 if ( member == null ) {
 member = router . next ( ) ;
 if ( member == null ) {
 - throw new RuntimeException ( STRING0 ) ;
 + throw new RuntimeException ( STRING1 + router + STRING2 ) ;
 }
 }
 ObjectPool < Connection > pool = mPool . get ( member . getInetSocketAddress ( ) ) ;

Improved exception when a router doesn t return a member to route to


<nb> public class GroovyScriptTests extends ElasticsearchIntegrationTest {
 assertSearchHits ( resp , STRING0 , STRING1 ) ;

 SINGLE
 + SINGLE
 + SINGLE
 resp = client ( ) . prepareSearch ( STRING2 ) . setQuery ( functionScoreQuery ( matchQuery ( STRING3 , STRING4 ) )
 - . add ( scriptFunction ( STRING5 , STRING6 ) )
 + . add ( scriptFunction ( STRING7 , STRING6 ) )
 . boostMode ( CombineFunction . REPLACE ) ) . get ( ) ;
 assertNoFailures ( resp ) ;
 assertSearchHits ( resp , STRING0 , STRING1 ) ;


<nb> public class PluginManagerCore {
 ourPlugins = pluginDescriptors ;
 }

 - private static void registerExtensionPointsAndExtensions ( ExtensionsArea area , List < IdeaPluginDescriptorImpl > result ) {
 - for ( IdeaPluginDescriptorImpl descriptor : result ) {
 - if ( shouldSkipPlugin ( descriptor ) ) continue ;
 + private static void registerExtensionPointsAndExtensions ( ExtensionsArea area , List < IdeaPluginDescriptorImpl > loadedPlugins ) {
 + for ( IdeaPluginDescriptorImpl descriptor : loadedPlugins ) {
 descriptor . registerExtensionPoints ( area ) ;
 }

 <nb> public class PluginManagerCore {
 epNames . add ( point . getName ( ) ) ;
 }

 - for ( IdeaPluginDescriptorImpl descriptor : result ) {
 - if ( shouldSkipPlugin ( descriptor ) ) continue ;
 + for ( IdeaPluginDescriptorImpl descriptor : loadedPlugins ) {
 for ( String epName : epNames ) {
 descriptor . registerExtensions ( area , epName ) ;
 }


<nb> public class CapturingProcessHandler extends OSProcessHandler {
 return myOutput ;
 }

 - @ notnull
 - public ProcessOutput runProcessCheckingCanceled ( ) throws ProcessCanceledException {
 - startNotify ( ) ;
 - while ( ! waitFor ( NUMBER0 ) ) {
 - try {
 - ProgressManager . checkCanceled ( ) ;
 - }
 - catch ( ProcessCanceledException e ) {
 - if ( ! isProcessTerminating ( ) && ! isProcessTerminated ( ) ) {
 - destroyProcess ( ) ;
 - }
 - throw e ;
 - }
 - }
 - if ( waitFor ( ) ) {
 - myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ;
 - }
 - else {
 - LOG . info ( STRING0 ) ;
 - }
 - return myOutput ;
 - }
 -
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class OutputSchemaV4 < I extends Iced , S extends OutputSchemaV4 < I , S > > extends Schema < I , S > {

 @ api ( help = STRING0 )
 - public String _schema ;
 + public String __schema ;

 public OutputSchemaV4 ( ) {
 - _schema = STRING1 + this . getSchemaName ( ) ;
 + __schema = STRING1 + this . getSchemaName ( ) ;
 }
 }


<nb> public class XmlFileImpl extends PsiFileImpl implements XmlFile {
 }

 public XmlDocument getDocument ( ) {
 - return findChildByClass ( XmlDocument . class ) ;
 + PsiElement child = getFirstChild ( ) ;
 + while ( child != null ) {
 + if ( child instanceof XmlDocument ) return ( XmlDocument ) child ;
 + child = child . getNextSibling ( ) ;
 + }
 +
 + return null ;
 }

 public boolean processElements ( PsiElementProcessor processor , PsiElement place ) {


<nb> public class MovieDetailsFragment extends SherlockFragment {
 shareItem . setEnabled ( isEnableShare ) ;
 shareItem . setVisible ( isEnableShare && ! isDrawerOpen ) ;

 + MenuItem playStoreItem = menu . findItem ( R . id . menu_open_google_play ) ;
 + playStoreItem . setEnabled ( isEnableShare ) ;
 + playStoreItem . setVisible ( isEnableShare ) ;
 +
 boolean isEnableImdb = mMovieDetails . tmdbMovie ( ) != null
 && ! TextUtils . isEmpty ( mMovieDetails . tmdbMovie ( ) . imdb_id ) ;
 MenuItem imdbItem = menu . findItem ( R . id . menu_open_imdb ) ;
 <nb> public class MovieDetailsFragment extends SherlockFragment {
 return true ;
 }
 if ( itemId == R . id . menu_open_trakt ) {
 - ServiceUtils . openTraktMovie ( getActivity ( ) , mMovieDetails . tmdbMovie ( ) . id , TAG ) ;
 + ServiceUtils . openTraktMovie ( getActivity ( ) , mTmdbId , TAG ) ;
 return true ;
 }
 return super . onOptionsItemSelected ( item ) ;

Only show Play link if usable fix crash for trakt link


<nb> public class ConsistencyCheck {
 SINGLE
 if ( lastFetchedKey . containsKey ( nodeEntries ) ) {
 ByteArray lastKey = lastFetchedKey . get ( nodeEntries ) ;
 - if ( key != lastKey ) {
 + if ( ! key . equals ( lastKey ) ) {
 if ( ! fullyFetchedKeys . containsKey ( lastKey ) ) {
 fullyFetchedKeys . put ( lastKey ,
 new HashSet < Iterator < Pair < ByteArray , Versioned < byte [ ] > > > > ( ) ) ;
 }
 Set < Iterator < Pair < ByteArray , Versioned < byte [ ] > > > > lastKeyIterSet = fullyFetchedKeys . get ( lastKey ) ;
 lastKeyIterSet . add ( nodeEntries ) ;
 +
 SINGLE
 if ( lastKeyIterSet . size ( ) == nodeIdList . size ( ) ) {
 SINGLE

fixed a bug where the program does not sweep latest version consistent keys correctly


<nb> public class HttpRequest {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static void maxConnections ( final int maxConnections ) {
 + final String maxConnectionsValue = Integer . toString ( maxConnections ) ;
 + setProperty ( STRING0 , maxConnectionsValue ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class GetState implements VagrantCommand < VirtualMachineState > {
 private static final String STATUS = STRING0 ;

 public enum VirtualMachineState {
 - POWEROFF , RUNNING , NOT_CREATED
 + POWEROFF , RUNNING , NOT_CREATED , SAVED
 }

 @ override
 <nb> public class GetState implements VagrantCommand < VirtualMachineState > {
 } else if ( output . contains ( STRING1 ) )
 {
 return VirtualMachineState . NOT_CREATED ;
 + } else if ( output . contains ( STRING2 ) )
 + {
 + return VirtualMachineState . SAVED ;
 }

 throw new VagrantCommandException ( getClass ( ) . getName ( ) , statusResult ,


<nb> public class BigTextNotificationService extends NotificationServiceHelper {
 . putExtra ( BundleArgsConstants . OPEN_NAVIGATION_INDEX_EXTRA ,
 unreadTabIndex ) ;
 PendingIntent pendingIntent = PendingIntent
 - . getActivity ( getBaseContext ( ) , NUMBER0 , clickToOpenAppPendingIntentInner ,
 + . getActivity ( getBaseContext ( ) , getMentionsWeiboNotificationId ( accountBean ) ,
 + clickToOpenAppPendingIntentInner ,
 PendingIntent . FLAG_UPDATE_CURRENT ) ;
 return pendingIntent ;
 }


<nb> public class OnCompletionDefinition extends ProcessorDefinition < ProcessorDefinit

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class NotificationStackScrollLayout extends ViewGroup
 }

 private void updateHideSensitiveForChild ( View child ) {
 - if ( mAmbientState . isHideSensitive ( ) && child instanceof ExpandableView ) {
 + if ( child instanceof ExpandableView ) {
 ExpandableView expandableView = ( ExpandableView ) child ;
 - expandableView . setHideSensitiveForIntrinsicHeight ( true ) ;
 + expandableView . setHideSensitiveForIntrinsicHeight ( mAmbientState . isHideSensitive ( ) ) ;
 }
 }

Fixed a bug where Notifications could overlap


<nb> public class CacheManagingDrawTask extends DrawTask {
 break ;
 case ADD_DANMAKKU :
 synchronized ( danmakuList ) {
 - danmakuList . addItem ( ( BaseDanmaku ) msg . obj ) ;
 + CacheManagingDrawTask . super . addDanmaku ( ( BaseDanmaku ) msg . obj ) ;
 }
 break ;
 }


<nb> public class VClientImpl extends IVClient . Stub {
 private final Map < String , LoadedApk > strongRefPackages = new HashMap < > ( ) ;

 private void handleBindApplication ( AppBindData data ) {
 + Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) {
 + @ override
 + public synchronized void start ( ) {
 + new Exception ( ) . printStackTrace ( ) ;
 + super . start ( ) ;
 + }
 + } ) ;
 ContextFixer . fixCamera ( ) ;
 mBoundApplication = data ;
 VirtualCore core = VirtualCore . getCore ( ) ;
 <nb> public class VClientImpl extends IVClient . Stub {
 AppBindDataCompat compat = new AppBindDataCompat ( hostBindData ) ;
 compat . setAppInfo ( data . appInfo ) ;
 compat . setProcessName ( data . processName ) ;
 + compat . setInfo ( data . info ) ;
 }

 private void installContentProviders ( Context context , List < ProviderInfo > providers ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public interface PlatformConfigurableToolChain extends ToolChain {
 public void target ( List < String > platformNames ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + public void target ( String . . . platformNames ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public void target ( Iterable < ? extends Platform > platform , Action < ? super ConfigurableToolChain > action ) ;
 <nb> public abstract class AbstractGccCompatibleToolChain extends ExtendableToolChain
 target ( platformNames , Actions . < ConfigurableToolChain > doNothing ( ) ) ;
 }

 + public void target ( String . . . platformNames ) {
 + target ( Arrays . asList ( platformNames ) , Actions . < ConfigurableToolChain > doNothing ( ) ) ;
 + }
 +
 public void target ( Platform platform , Action < ? super ConfigurableToolChain > action ) {
 target ( platform . getName ( ) , action ) ;
 }

add target String overload to PlatformConfigurableToolChain


<nb> import static NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class ElTest extends CdiActivitiTestCase {
 assertEquals ( STRING0 , messageBean . getMessage ( ) ) ;
 }

 + @ test
 + @ deployment ( resources = STRING1 )
 + public void testInvalidExpressions ( ) throws Exception {
 + ProcessInstance pi = runtimeService . startProcessInstanceByKey ( STRING2 ) ;
 +
 + assertEquals ( STRING3 , runtimeService . getVariable ( pi . getId ( ) , STRING4 ) ) ;
 +
 + SINGLE
 +
 + }
 }
 <nb> package NAMESPACE ;
 COMMENT
 public interface VariableType {

 + COMMENT
 + COMMENT
 + COMMENT
 String getTypeName ( ) ;
 boolean isCachable ( ) ;
 boolean isAbleToStore ( Object value ) ;

added hint to limitation of variable type length to support index correctly


<nb> package NAMESPACE ;

 public class AndroidConstants {

 - public static final String YOUTUBE_API_KEY = STRING0 ;
 + public static final String GOOGLE_CLIENT_KEY = STRING1 ;
 +
 }
 <nb> public class MovieDetailFragment extends BasePhilmMovieFragment
 case YOUTUBE :
 Intent intent = YouTubeStandalonePlayer . createVideoIntent (
 getActivity ( ) ,
 - AndroidConstants . YOUTUBE_API_KEY ,
 + AndroidConstants . GOOGLE_CLIENT_KEY ,
 trailer . getId ( ) ,
 NUMBER0 , SINGLE
 true , SINGLE
 - true SINGLE
 + false SINGLE
 ) ;
 getActivity ( ) . startActivity ( intent ) ;
 break ;
 <nb> public class MovieDetailFragment extends BasePhilmMovieFragment
 view . findViewById ( R . id . imageview_youtube_thumbnail ) ;

 youtubeView . initialize (
 - AndroidConstants . YOUTUBE_API_KEY ,
 + AndroidConstants . GOOGLE_CLIENT_KEY ,
 new YouTubeThumbnailView . OnInitializedListener ( ) {
 @ override
 public void onInitializationSuccess (


<nb> public class CallPanel extends JPanel implements ActionListener {
 this . phoneNumberCombo . setEditable ( true ) ;

 this . comboPanel . add ( phoneNumberCombo , BorderLayout . CENTER ) ;
 - this . add ( comboPanel , BorderLayout . NORTH ) ;
 + SINGLE

 this . callButton . setName ( STRING0 ) ;
 this . hangupButton . setName ( STRING1 ) ;
 <nb> public class CallPanel extends JPanel implements ActionListener {
 this . buttonsPanel . add ( callButton ) ;
 this . buttonsPanel . add ( hangupButton ) ;

 - this . add ( buttonsPanel , BorderLayout . CENTER ) ;
 + SINGLE

 - this . minimizeButtonPanel . add ( minimizeButton ) ;
 + this . minimizeButtonPanel . add ( restoreButton ) ;

 this . add ( minimizeButtonPanel , BorderLayout . SOUTH ) ;
 }


<nb> public class ContactListTreeAdapter extends BaseExpandableListAdapter
 }

 private int getChildAdapterPosition ( int groupPosition ) {
 +
 if ( getSubscriptionCount ( ) > NUMBER0 ) {
 - return groupPosition ;
 + return groupPosition - NUMBER1 ;
 } else {
 return groupPosition ;
 }

fixed related FC to handling friend requests proper cursor offset


<nb> public abstract class Invocation implements OperationResponseHandler , Runnable {
 }

 return STRING0
 - + STRING1 + op
 + + STRING2 + op
 + STRING3 + tryCount
 + STRING4 + tryPauseMillis
 + STRING5 + invokeCount

Fixed small toString issue in Invocation unwanted comma


<nb> public class SpanishXMLTreeReader implements TreeReader {

 SINGLE
 private static final String ATTR_COORDINATING = STRING0 ;
 + private static final String ATTR_CLAUSE_TYPE = STRING1 ;

 private NodeList sentences ;
 private int sentIdx ;
 <nb> public class SpanishXMLTreeReader implements TreeReader {
 String label = eRoot . getNodeName ( ) . trim ( ) ;

 if ( detailedAnnotations ) {
 - if ( eRoot . getAttribute ( ATTR_COORDINATING ) . equals ( STRING2 ) )
 + if ( eRoot . getAttribute ( ATTR_COORDINATING ) . equals ( STRING2 ) ) {
 label += STRING3 ;
 + } else if ( eRoot . hasAttribute ( ATTR_CLAUSE_TYPE ) ) {
 + label += STRING4 + eRoot . getAttribute ( ATTR_CLAUSE_TYPE ) ;
 + }
 }

 return treeFactory . newTreeNode ( treeNormalizer . normalizeNonterminal ( label ) , children ) ;

Add constituent clause type annotation from AnCora


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 public class ViewerAction extends AnAction implements DumbAware {
 public void actionPerformed ( AnActionEvent e ) {
 <nb> public class ViewerAction extends AnAction implements DumbAware {
 PsiViewerDialog dialog = new PsiViewerDialog ( project , false ) ;
 dialog . show ( ) ;
 }
 +
 + @ override
 + public void update ( AnActionEvent e ) {
 + Project project = PlatformDataKeys . PROJECT . getData ( e . getDataContext ( ) ) ;
 + e . getPresentation ( ) . setEnabled ( project != null ) ;
 + }
 }


<nb> class MutableEntity implements Entity , Entity . Builder < MutableEntity > {
 @ override
 public void bufferEntity ( ) throws MessageProcessingException {
 try {
 - if ( isEmpty ( ) || contentStream . getType ( ) == ContentStream . Type . BUFFERED
 + if ( contentStream . getType ( ) == ContentStream . Type . BUFFERED
 || contentStream . getType ( ) == ContentStream . Type . EXTERNAL_BUFFERED ) {
 return ;
 }


<nb> public class OpenCloseIndexTests extends AbstractSharedClusterTest {
 SINGLE
 closeIndexResponse = client ( ) . admin ( ) . indices ( ) . prepareClose ( STRING0 ) . setTimeout ( TimeValue . timeValueMillis ( NUMBER0 ) ) . execute ( ) . actionGet ( ) ;
 assertThat ( closeIndexResponse . isAcknowledged ( ) , equalTo ( false ) ) ;
 - SINGLE
 - assertIndexIsClosed ( STRING0 ) ;
 }

 private void assertIndexIsOpened ( String . . . indices ) {

Removed wrong assertion from OpenCloseIndexTests


<nb> public class AprLifecycleListener
 }
 }
 }
 - } else if ( Lifecycle . AFTER_STOP_EVENT . equals ( event . getType ( ) ) ) {
 + } else if ( Lifecycle . DESTROY_EVENT . equals ( event . getType ( ) ) ) {
 synchronized ( lock ) {
 if ( ! aprAvailable ) {
 return ;

Prevent JVM crashes caused by shutting down the APR library too early


<nb> public class BinaryRoutePlanner {
 || highway . endsWith ( STRING0 ) ) {
 return MAX_SPEAK_PRIORITY ;
 }
 - if ( highway . endsWith ( STRING1 ) || highway . endsWith ( STRING2 ) || highway . endsWith ( STRING3 ) ) {
 + if ( highway . endsWith ( STRING1 ) || highway . endsWith ( STRING2 ) || highway . endsWith ( STRING3 )
 + || highway . endsWith ( STRING4 ) || highway . endsWith ( STRING5 ) ) {
 return NUMBER0 ;
 }
 return NUMBER1 ;


<nb> public final class ResourcesCompat {
 COMMENT
 COMMENT
 public static boolean getResources_getBoolean ( Context context , int id ) {
 - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB_MR2 ) {
 + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ) {
 return context . getResources ( ) . getBoolean ( id ) ;
 }


<nb> public class AmbrosePigProgressNotificationListener implements PigProgressNotifi

 Properties jobConfProperties = getJobConfFromFile ( runningJob ) ;

 - JobID jobID = runningJob . getID ( ) ;
 + try {
 + JobID jobID = runningJob . getID ( ) ;
 + } catch ( NullPointerException npe ) {
 + log . warn ( STRING0 ) ;
 + }

 TaskReport [ ] mapTaskReport = jobClientLocal . getMapTaskReports ( jobID ) ;
 TaskReport [ ] reduceTaskReport = jobClientLocal . getReduceTaskReports ( jobID ) ;