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

 COMMENT
 COMMENT
 COMMENT
 public class RoutingUsingCamelContextFactoryTest extends TestSupport {
 protected String body = STRING0 ;
 + protected AbstractXmlApplicationContext applicationContext ;

 public void testXMLRouteLoading ( ) throws Exception {
 - ApplicationContext applicationContext = new ClassPathXmlApplicationContext ( STRING1 ) ;
 + applicationContext = new ClassPathXmlApplicationContext ( STRING1 ) ;

 CamelContext context = ( CamelContext ) applicationContext . getBean ( STRING2 ) ;
 assertNotNull ( STRING3 , context ) ;
 <nb> public class RoutingUsingCamelContextFactoryTest extends TestSupport {
 resultEndpoint . assertIsSatisfied ( ) ;
 }

 + @ override
 + protected void tearDown ( ) throws Exception {
 + super . tearDown ( ) ;
 + applicationContext . destroy ( ) ;
 + }
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 public interface MetricPoller {
 - void poll ( MetricFilter filter , MetricObserver observer ) ;
 + List < Metric > poll ( MetricFilter filter ) ;
 }

poller interface should just return a list


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - class AsyncHttpRequest implements Runnable {
 + public class AsyncHttpRequest implements Runnable {
 private final AbstractHttpClient client ;
 private final HttpContext context ;
 private final HttpUriRequest request ;


<nb> public class WifiActivity extends Activity {
 }

 private WifiConfiguration changeNetworkCommon ( NetworkSetting input ) {
 - statusView . setText ( STRING0 ) ;
 + statusView . setText ( R . string . wifi_creating_network ) ;
 Log . d ( TAG , STRING1 + input . getSsid ( ) + STRING2 + input . getNetworkType ( ) ) ;
 WifiConfiguration config = new WifiConfiguration ( ) ;


<nb> public class Process {
 public static final int SDCARD_RW_GID = NUMBER0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final int VPN_UID = NUMBER1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> final class FragmentManagerImpl extends FragmentManager implements LayoutInflate
 fs . mSavedFragmentState . setClassLoader ( mActivity . getClassLoader ( ) ) ;
 f . mSavedViewState = fs . mSavedFragmentState . getSparseParcelableArray (
 FragmentManagerImpl . VIEW_STATE_TAG ) ;
 + f . mSavedFragmentState = fs . mSavedFragmentState ;
 }
 }
 }


<nb> import NAMESPACE ;
 public class RemoteOperationResult implements Serializable {

 COMMENT
 - private static final long serialVersionUID = NUMBER0 ;
 + private static final long serialVersionUID = - NUMBER1 ;

 public enum ResultCode {
 <nb> public class RemoteOperationResult implements Serializable {
 private int mHttpCode = - NUMBER2 ;
 private Exception mException = null ;
 private ResultCode mCode = ResultCode . UNKNOWN_ERROR ;
 - private Object mExtraData = null ;

 public RemoteOperationResult ( ResultCode code ) {
 mCode = code ;
 <nb> public class RemoteOperationResult implements Serializable {
 return mCode == ResultCode . SSL_RECOVERABLE_PEER_UNVERIFIED ;
 }

 - public void setExtraData ( Object data ) {
 - mExtraData = data ;
 - }
 -
 - public Object getExtraData ( ) {
 - return mExtraData ;
 - }
 -
 private CertificateCombinedException getCertificateCombinedException ( Exception e ) {
 CertificateCombinedException result = null ;
 if ( e instanceof CertificateCombinedException ) {

Remove unused Object member causing problems with serialization back to previous serializationUID


<nb> public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension < Strin
 @ notnull
 @ override
 public Map < String , Collection < IndexHolder > > map ( @ notnull FileContent inputData ) {
 + if ( ! JavaStubElementTypes . JAVA_FILE . shouldBuildStubFor ( inputData . getFile ( ) ) ) {
 + return Collections . emptyMap ( ) ;
 + }
 final CharSequence contentAsText = inputData . getContentAsText ( ) ;
 if ( ! StringUtil . contains ( contentAsText , STRING0 ) && ! StringUtil . contains ( contentAsText , STRING1 ) ) {
 return Collections . emptyMap ( ) ;
 }

 final PsiFile file = ( ( FileContentImpl ) inputData ) . getPsiFileForPsiDependentIndex ( ) ;
 - if ( ! ( file instanceof PsiJavaFile ) || ! JavaStubElementTypes . JAVA_FILE . shouldBuildStubFor ( inputData . getFile ( ) ) ) {
 + if ( ! ( file instanceof PsiJavaFile ) ) {
 return Collections . emptyMap ( ) ;
 }

avoid psi creation if we should not build stubs for the file


<nb> public class RefCountHolder {
 PsiElement ref = iterator . next ( ) ;
 if ( ! ref . isValid ( ) ) iterator . remove ( ) ;
 }
 +
 + for ( Iterator < PsiNamedElement > iterator = myDclsUsedMap . keySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) {
 + PsiNamedElement element = iterator . next ( ) ;
 +
 + if ( ! element . isValid ( ) ) iterator . remove ( ) ;
 + }
 }

 public int getRefCount ( PsiElement element ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public interface ClientWithWrongFields {
 void fieldAndEntity ( @ field int v1 , String entity ) ;

 void missingPostAnnotation ( @ field ( STRING0 ) int v1 ) ;
 +
 + @ post ( STRING1 )
 + void fieldAndPartOnSameMethod ( @ field String field , @ part String part ) ;
 }
 <nb> public class RestTest extends AAProcessorTestHelper {
 assertCompilationErrorOn ( ClientWithWrongFields . class , STRING2 , result ) ;
 assertCompilationErrorOn ( ClientWithWrongFields . class , STRING3 , result ) ;
 assertCompilationErrorOn ( ClientWithWrongFields . class , STRING4 , result ) ;
 + assertCompilationErrorOn ( ClientWithWrongFields . class , STRING5 , result ) ;

 - assertCompilationErrorCount ( NUMBER0 , result ) ;
 + assertCompilationErrorCount ( NUMBER1 , result ) ;
 }

 @ test


<nb> public class IndexDatabase {
 try {
 if ( ! dirty && ! dirtyFile . createNewFile ( ) ) {
 if ( ! dirtyFile . exists ( ) ) {
 - log . log ( Level . FINE , STRING0 , dirtyFile . getAbsolutePath ( ) ) ;
 + log . log ( Level . FINE ,
 + STRING1 ,
 + dirtyFile . getAbsolutePath ( ) ) ;
 }
 dirty = true ;
 }

Added missing parameter marker in message pattern


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;

 <nb> public class TelecommManager {
 public static TelecommManager from ( Context context ) {
 return ( TelecommManager ) context . getSystemService ( Context . TELECOMM_SERVICE ) ;
 }
 -
 - COMMENT
 - public ComponentName getSystemPhoneApplication ( ) {
 - try {
 - return mService . getSystemPhoneApplication ( ) ;
 - } catch ( RemoteException e ) {
 - Log . e ( TAG , e , STRING0 ) ;
 - return null ;
 - }
 - }
 }

Revert Add getSystemPhoneApplication to TelecommManager


<nb> public interface PersistenceExceptionTranslator {

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


<nb> public interface ServletContext {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public String getInitParameter ( String name ) ;


<nb> import NAMESPACE ;
 rendererMediaClockSource = null ;
 }
 ensureStopped ( renderer ) ;
 - SINGLE
 - SINGLE
 - oldStreams . add ( renderer . disable ( ) ) ;
 + renderer . disable ( ) ;
 + oldStreams . add ( playingSource . trackStreams [ i ] ) ;
 }
 if ( newSelection != null ) {
 newSelections . add ( newSelection ) ;
 <nb> public abstract class TrackRenderer implements ExoPlayerComponent {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 Assertions . checkState ( state == STATE_ENABLED ) ;
 state = STATE_DISABLED ;
 onDisabled ( ) ;
 - TrackStream trackStream = stream ;
 stream = null ;
 streamIsFinal = false ;
 - return trackStream ;
 }

 COMMENT

Don t return a TrackStream from TrackRenderer disable


<nb> public class TenantCacheInvalidation {
 final BusInternalEvent event ;
 if ( tenantKvsTargetRecordId != null ) {
 final TenantKVModelDao tenantModelDao = tenantDao . getKeyByRecordId ( tenantKvsTargetRecordId , tenantContext ) ;
 + if ( tenantModelDao == null ) {
 + SINGLE
 + continue ;
 + }
 event = new DefaultTenantConfigChangeInternalEvent ( tenantModelDao . getId ( ) , cur . getType ( ) ,
 null , tenantContext . getTenantRecordId ( ) , cur . getUserToken ( ) ) ;
 } else {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class InspectionApplication {
 SINGLE
 Profile inspectionProfile = InspectionProjectProfileManager . getInstance ( myProject ) . getProfile ( myProfileName , false ) ;

 + SINGLE
 + if ( inspectionProfile == null ) {
 + final Collection < Profile > profiles = InspectionProjectProfileManager . getInstance ( myProject ) . getProfiles ( ) ;
 + for ( Profile profile : profiles ) {
 + if ( Comparing . strEqual ( profile . getName ( ) , myProfileName ) ) {
 + inspectionProfile = profile ;
 + break ;
 + }
 + }
 + }
 +
 SINGLE
 if ( inspectionProfile == null ) {
 inspectionProfile = InspectionProfileManager . getInstance ( ) . loadProfile ( myProfileName ) ;

check project inspection profiles by name even if project profiles are not used for project


<nb> public class ManagerServlet
 } else {
 deploy ( writer , path , tag ) ;
 }
 - } else if ( command . equals ( STRING0 ) ) {
 - SINGLE
 - deploy ( writer , config , path , war , false ) ;
 } else if ( command . equals ( STRING1 ) ) {
 list ( writer ) ;
 } else if ( command . equals ( STRING2 ) ) {
 reload ( writer , path ) ;
 - } else if ( command . equals ( STRING3 ) ) {
 - SINGLE
 - undeploy ( writer , path ) ;
 } else if ( command . equals ( STRING4 ) ) {
 resources ( writer , type ) ;
 } else if ( command . equals ( STRING5 ) ) {


<nb> public class CacheFactory {
 cacheProps . put ( STRING0 , JiveConstants . MINUTE * NUMBER0 ) ;
 cacheProps . put ( STRING1 , NUMBER1 * NUMBER2 ) ;
 cacheProps . put ( STRING2 , JiveConstants . MINUTE * NUMBER0 ) ;
 + cacheProps . put ( STRING3 , NUMBER3 * NUMBER2 ) ;
 + cacheProps . put ( STRING4 , JiveConstants . MINUTE * NUMBER4 ) ;
 cacheProps . put ( STRING5 , NUMBER5 * NUMBER2 ) ;
 cacheProps . put ( STRING6 , NUMBER6 * NUMBER7 * NUMBER8 ) ;
 cacheProps . put ( STRING7 , NUMBER1 * NUMBER2 ) ;

Provide better defaults for Roster cache


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

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ ignore ( STRING0 )
 @ runwith ( Arquillian . class )
 public class ScriptAssertTestCase {

Disable Bean Validation test for OpenJDK due to missing JavaScript engine


<nb> public class TestHttpServlet extends TomcatBaseTest {
 }

 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TestDefaultServlet extends TomcatBaseTest {
 assertTrue ( client . isResponse404 ( ) ) ;
 }

 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class AbstractPersistentCollection implements Serializable , Pers
 isTempSession = true ;
 }
 else {
 - throw new LazyInitializationException ( STRING0 ) ;
 + throwLazyInitializationException ( STRING0 ) ;
 }
 }
 else if ( ! session . isOpen ( ) ) {
 <nb> public abstract class AbstractPersistentCollection implements Serializable , Pers
 isTempSession = true ;
 }
 else {
 - throw new LazyInitializationException ( STRING1 ) ;
 + throwLazyInitializationException ( STRING1 ) ;
 }
 }
 else if ( ! session . isConnected ( ) ) {
 <nb> public abstract class AbstractPersistentCollection implements Serializable , Pers
 isTempSession = true ;
 }
 else {
 - throw new LazyInitializationException ( STRING2 ) ;
 + throwLazyInitializationException ( STRING2 ) ;
 }
 }

Changed the error handling for LazyInitializationException to go through the throwLazyInitializationException method so that the collection role is reported


<nb> public class SpanUtils {
 + STRING0
 + STRING1 + Patterns . GOOD_IRI_CHAR + STRING2
 + STRING3
 - + STRING4 ) ;
 + + STRING5 ) ;

 private static final String [ ] WEB_URL_SCHEMES = { STRING6 , STRING7 , STRING8 , STRING9 } ;


<nb> class FalseFriendRuleHandler extends XMLRuleHandler {
 throw new SAXException ( STRING0 + languageStr + STRING1 ) ;
 }
 } else if ( qName . equals ( STRING2 ) ) {
 - inException = true ;
 - exceptionSet = true ;
 + inException = true ;
 exceptions = new StringBuffer ( ) ;

 if ( attrs . getValue ( STRING3 ) != null ) {
 <nb> class FalseFriendRuleHandler extends XMLRuleHandler {
 exceptionPosNegation = false ;
 exceptionPosRegExp = false ;
 exceptionStringRegExp = false ;
 + exceptionValidNext = true ;
 + exceptionSet = false ;

 } else if ( qName . equals ( STRING4 ) ) {
 inPattern = false ;


<nb> public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi
 return basePath ;
 }
 public void setBasePath ( String basePath ) {
 - this . basePath = basePath ;
 + if ( ! STRING0 . equals ( basePath ) && basePath != null ) {
 + if ( ! basePath . startsWith ( STRING1 ) )
 + this . basePath = STRING1 + basePath ;
 + else
 + this . basePath = basePath ;
 + }
 }

 public void setPrettyPrint ( String prettyPrint ) {
 <nb> public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi
 }

 public Swagger configure ( Swagger swagger ) {
 - return swagger . info ( info ) ;
 + return swagger . info ( info )
 + . host ( host )
 + . basePath ( basePath ) ;
 }
 }


<nb> import NAMESPACE ;
 }

 public MenuItem setVisible ( boolean visible ) {
 - mFlags = ( mFlags & HIDDEN ) | ( visible ? NUMBER0 : HIDDEN ) ;
 + mFlags = ( mFlags & ~ HIDDEN ) | ( visible ? NUMBER0 : HIDDEN ) ;
 return this ;
 }

Fixed bug in ActionMenuItem setVisible method


<nb> public final class TicketGrantingTicketImpl extends AbstractTicket implements Ti
 COMMENT
 private static final long serialVersionUID = - NUMBER0 ;

 - private static final Logger LOGGER = LoggerFactory . getLogger ( TicketGrantingTicketImpl . class ) ;
 COMMENT
 @ lob
 @ column ( name = STRING0 , nullable = false )

Fixed compilation issue after the merge with master


<nb> public abstract class AbstractAsset < T extends AssetData > implements Asset < T > {
 COMMENT
 @ override
 public final void dispose ( ) {
 - onDispose ( ) ;
 - disposed = true ;
 - CoreRegistry . get ( AssetManager . class ) . dispose ( this ) ;
 + if ( ! disposed ) {
 + onDispose ( ) ;
 + disposed = true ;
 + CoreRegistry . get ( AssetManager . class ) . dispose ( this ) ;
 + }
 }

 protected abstract void onDispose ( ) ;

Ensure that assets only get disposed once


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

 COMMENT
 <nb> import NAMESPACE
 @ configuration
 @ conditionalonwebapplication
 @ enableconfigurationproperties
 - @ conditionalonclass ( AbstractSecurityWebApplicationInitializer . class )
 + @ conditionalonclass ( { AbstractSecurityWebApplicationInitializer . class ,
 + SessionCreationPolicy . class } )
 @ autoconfigureafter ( SpringBootWebSecurityConfiguration . class )
 public class SecurityFilterAutoConfiguration {

Switch off Security Filter auto config when spring security config is absent


<nb> public class BukkitPlayer extends LocalPlayer {
 public void dispatchCUIHandshake ( ) {
 player . sendRawMessage ( STRING0 ) ;
 }
 +
 + public Player getPlayer ( ) {
 + return player ;
 + }
 }

Added getting of the Bukkit player to BukkitPlayer for RegionBook


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class PerformanceTestComponent extends DefaultComponent {
 - static public final String HEADER_THREADS = STRING0 ;
 - static public final String HEADER_ITERATIONS = STRING1 ;
 + public static final String HEADER_THREADS = STRING0 ;
 + public static final String HEADER_ITERATIONS = STRING1 ;

 - static private final int DEFAULT_THREADS = NUMBER0 ;
 - static private final int DEFAULT_ITERATIONS = NUMBER1 ;
 + private static final int DEFAULT_THREADS = NUMBER0 ;
 + private static final int DEFAULT_ITERATIONS = NUMBER1 ;

 @ override
 protected Endpoint createEndpoint ( String uri , String remaining , Map < String , Object > parameters ) throws Exception {


<nb> import NAMESPACE ;

 public class ProxyCore {

 - @ sidedproxy ( clientSide = STRING0 , serverSide = STRING1 )
 + @ sidedproxy ( clientSide = STRING2 , serverSide = STRING1 )
 public static ProxyCore proxy ;

 COMMENT


<nb> public final class OperatorFromIterable < T > implements Action1 < Operator < ? super T
 public void call ( Operator < ? super T > o ) {
 for ( T i : is ) {
 if ( o . isUnsubscribed ( ) ) {
 - break ;
 + return ;
 }
 o . onNext ( i ) ;
 }


<nb> final class HttpQuery {
 COMMENT
 public Map < String , List < String > > getQueryString ( ) {
 if ( querystring == null ) {
 - querystring = new QueryStringDecoder ( request . getUri ( ) ) . getParameters ( ) ;
 + try {
 + querystring = new QueryStringDecoder ( request . getUri ( ) ) . getParameters ( ) ;
 + } catch ( IllegalArgumentException e ) {
 + throw new BadRequestException ( STRING0 + e . getMessage ( ) ) ;
 + }
 }
 return querystring ;
 }


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

Added a code sample to the ModelBuilder javadocs


<nb> class RecordReaderImpl implements RecordReader {
 COMMENT
 COMMENT
 Object nextVector ( Object previousVector , long batchSize ) throws IOException {
 - if ( present != null ) {

 + ColumnVector result = ( ColumnVector ) previousVector ;
 + if ( present != null ) {
 SINGLE
 SINGLE
 - ColumnVector result = ( ColumnVector ) previousVector ;
 result . noNulls = true ;
 for ( int i = NUMBER0 ; i < batchSize ; i ++ ) {
 result . isNull [ i ] = ( present . next ( ) != NUMBER1 ) ;
 <nb> class RecordReaderImpl implements RecordReader {
 result . noNulls = false ;
 }
 }
 + } else {
 + SINGLE
 + SINGLE
 + result . noNulls = true ;
 + for ( int i = NUMBER0 ; i < batchSize ; i ++ ) {
 + result . isNull [ i ] = false ;
 + }
 }
 return previousVector ;
 }

Vectorized ORC reader does not handle absence of column present stream correctly


<nb> public class Scanner {
 if ( ! skipRegularExpressionChar ( ) ) {
 return false ;
 }
 - while ( isRegularExpressionChar ( peekChar ( ) ) ) {
 + while ( ! isAtEnd ( ) && isRegularExpressionChar ( peekChar ( ) ) ) {
 if ( ! skipRegularExpressionChar ( ) ) {
 return false ;
 }
 <nb> public class NewParserTest extends BaseJSTypeTestCase {
 parse ( STRING0 ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void testUnterminatedRegExp ( ) {
 + parseError ( STRING1 ,
 + STRING2 ) ;
 +
 + parseError ( STRING3 +
 + STRING4 ,
 + STRING2 ) ;
 + }
 +
 public void testRegExp ( ) {
 assertNodeEquality ( parse ( STRING5 ) , script ( expr ( regex ( STRING6 ) ) ) ) ;
 assertNodeEquality ( parse ( STRING7 ) , script ( expr ( regex ( STRING8 ) ) ) ) ;

Avoid infinite loop if EOF is found inside a RegExp literal


<nb> public class AccessibilityNodeInfoCompat {
 COMMENT
 public static final int ACTION_SET_SELECTION = NUMBER0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final int ACTION_SET_TEXT = NUMBER1 ;
 +
 SINGLE

 COMMENT
 <nb> public class AccessibilityNodeInfoCompat {
 public static final String ACTION_ARGUMENT_SELECTION_END_INT =
 STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE =
 + STRING1 ;
 +
 SINGLE

 COMMENT

add new accessibility action for EditText to set text content


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class TaskServiceTest extends ActivitiInternalTestCase {
 +
 + public void testMustFail ( ) {
 + assertTrue ( false ) ;
 + }

 public void testSaveTaskUpdate ( ) {
 Task task = taskService . newTask ( ) ;

Committed failing test to verify Hudson email sending


<nb> public enum OGlobalConfiguration {
 COMMENT
 COMMENT
 COMMENT
 - DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS ( STRING0 ,
 - STRING1 ,
 - Long . class , - NUMBER0 ) ,
 + DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS ( STRING0 , STRING2 , Long . class , - NUMBER0 ) ,

 COMMENT
 COMMENT

update description of DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS setting


<nb> public class Headers implements Iterable < Headers . Header >
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public String valuesAsString ( )
 + {
 + StringBuilder result = new StringBuilder ( ) ;
 + for ( int i = NUMBER0 ; i < values . length ; ++ i )
 + {
 + if ( i > NUMBER0 )
 + result . append ( STRING0 ) ;
 + result . append ( values [ i ] ) ;
 + }
 + return result . toString ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public boolean hasMultipleValues ( )


<nb> public class GitAnnotationProvider implements AnnotationProvider , VcsCacheableAn
 GitSimpleHandler h = new GitSimpleHandler ( myProject , GitUtil . getGitRoot ( repositoryFilePath ) , GitCommand . BLAME ) ;
 h . setStdoutSuppressed ( true ) ;
 h . setCharset ( file . getCharset ( ) ) ;
 - h . addParameters ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
 + h . addParameters ( STRING4 , STRING1 , STRING2 , STRING3 ) ;
 if ( revision == null ) {
 h . addParameters ( STRING5 ) ;
 }


<nb> public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
 protected void initInThread ( ) {
 try {
 if ( ! JmeSystem . isLowPermissions ( ) ) {
 - Thread . setDefaultUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) {
 + SINGLE
 + Thread . currentThread ( ) . setUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) {
 public void uncaughtException ( Thread thread , Throwable thrown ) {
 listener . handleError ( STRING0 + thread . toString ( ) , thrown ) ;
 }

Uncaught exception handler now set only on render thread instead of entire VM


<nb> public class ContentTransformerListener extends BaseTransformerListener {

 dynamicContent . setText ( STRING0 + text ) ;
 }
 -
 - String type = GetterUtil . getString ( el . attributeValue ( STRING1 ) ) ;
 -
 - if ( type . equals ( STRING2 ) ) {
 - text = text . replaceAll ( STRING3 , STRING4 ) ;
 - }
 -
 - dynamicContent . setText ( text ) ;
 -
 }

 replace ( el ) ;

users can manage break lines from the template


<nb> public class MultiInstanceTest extends PluggableActivitiTestCase {
 @ deployment
 public void testParallelSubProcessCompletionCondition ( ) {
 String procId = runtimeService . startProcessInstanceByKey ( STRING0 ) . getId ( ) ;
 - List < Task > tasks = taskService . createTaskQuery ( ) . orderByTaskId ( ) . asc ( ) . list ( ) ;
 + List < Task > tasks = taskService . createTaskQuery ( ) . orderByExecutionId ( ) . asc ( ) . list ( ) ;
 assertEquals ( NUMBER0 , tasks . size ( ) ) ;

 for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) {

Fixed textcase to get the right order of task so that the process instance can terminate


<nb> public class CommonProblemDescriptorImpl implements CommonProblemDescriptor {
 myFixes = QuickFix . EMPTY_ARRAY ;
 }
 else {
 - myFixes = new QuickFix [ fixes . length ] ;
 - System . arraycopy ( fixes , NUMBER0 , myFixes , NUMBER0 , fixes . length ) ;
 + myFixes = fixes ;
 + SINGLE
 + SINGLE
 }
 myDescriptionTemplate = descriptionTemplate ;
 }


<nb> public class Am {
 if ( data != null ) line = line + STRING0 + data + STRING1 ;
 if ( extras != null ) line = line + STRING2 + extras ;
 System . out . println ( line ) ;
 - mFinished = true ;
 - notifyAll ( ) ;
 + synchronized ( this ) {
 + mFinished = true ;
 + notifyAll ( ) ;
 + }
 }

 public synchronized void waitForFinish ( ) {

Wrapped call to notifyAll in a synchronized block


<nb> public final class IconLoader {

 ourDeprecatedIconsReplacements . put ( STRING0 , STRING1 ) ;
 ourDeprecatedIconsReplacements . put ( STRING2 , STRING1 ) ;
 +
 + ourDeprecatedIconsReplacements . put ( STRING3 , STRING4 ) ;
 }

 private static final ImageIcon EMPTY_ICON = new ImageIcon ( UIUtil . createImage ( NUMBER0 , NUMBER0 , BufferedImage . TYPE_3BYTE_BGR ) ) {


<nb> final class AndroidGraphics implements Graphics , Renderer
 synchronized ( this )
 {
 if ( this . listener != null )
 - listener . dispose ( app ) ;
 + this . listener . dispose ( app ) ;
 this . listener = listener ;
 }
 }

Fix listener dispose app this listener dispose app


<nb> public class TileLifecycleManager extends BroadcastReceiver implements
 private IQSService mService ;
 private boolean mUnbindImmediate ;
 private TileChangeListener mChangeListener ;
 + SINGLE
 + private boolean mIsBound ;

 public TileLifecycleManager ( Handler handler , Context context , Intent intent , UserHandle user ) {
 mContext = context ;
 <nb> public class TileLifecycleManager extends BroadcastReceiver implements
 }
 if ( DEBUG ) Log . d ( TAG , STRING0 + mIntent + STRING1 + mUser ) ;
 mBindTryCount ++ ;
 - mContext . bindServiceAsUser ( mIntent , this ,
 + mIsBound = mContext . bindServiceAsUser ( mIntent , this ,
 Context . BIND_AUTO_CREATE | Context . BIND_FOREGROUND_SERVICE_WHILE_AWAKE ,
 mUser ) ;
 } else {
 <nb> public class TileLifecycleManager extends BroadcastReceiver implements
 SINGLE
 mBindTryCount = NUMBER0 ;
 mWrapper = null ;
 - mContext . unbindService ( this ) ;
 + if ( mIsBound ) {
 + mContext . unbindService ( this ) ;
 + mIsBound = false ;
 + }
 }
 }

Handle return value from bindServiceAsUser


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ShowInfoActivity extends BaseActivity {
 case android . R . id . home : {
 SINGLE
 final Intent intent = new Intent ( this , OverviewActivity . class ) ;
 - intent . putExtra ( Shows . _ID , getShowId ( ) ) ;
 + intent . putExtra ( OverviewFragment . InitBundle . SHOW_TVDBID , getShowId ( ) ) ;
 intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
 startActivity ( intent ) ;
 overridePendingTransition ( R . anim . home_enter , R . anim . home_exit ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BeaconManager {
 LogManager . d ( TAG , STRING0 ) ;
 serviceMessenger = new Messenger ( service ) ;
 synchronized ( consumers ) {
 - Iterator < BeaconConsumer > consumerIterator = consumers . keySet ( ) . iterator ( ) ;
 - while ( consumerIterator . hasNext ( ) ) {
 - BeaconConsumer consumer = consumerIterator . next ( ) ;
 + for ( BeaconConsumer consumer : consumers . keySet ( ) ) {
 Boolean alreadyConnected = consumers . get ( consumer ) . isConnected ;
 if ( ! alreadyConnected ) {
 consumer . onBeaconServiceConnect ( ) ;
 ConsumerInfo consumerInfo = consumers . get ( consumer ) ;
 consumerInfo . isConnected = true ;
 - consumers . put ( consumer , consumerInfo ) ;
 }
 }
 }

changed concurrent modification to a more clear way


<nb> public interface XBreakpointManager {

 boolean isDefaultBreakpoint ( @ notnull XBreakpoint < ? > breakpoint ) ;
 + @ nullable
 + < B extends XBreakpoint < ? > > B getDefaultBreakpoint ( @ notnull XBreakpointType < B , ? > type ) ;

 < B extends XBreakpoint < P > , P extends XBreakpointProperties >
 void addBreakpointListener ( @ notnull XBreakpointType < B , P > type , @ notnull XBreakpointListener < B > listener ) ;
 <nb> public class XBreakpointManagerImpl implements XBreakpointManager , PersistentSta
 return result ;
 }

 + @ override
 + @ nullable
 + public < B extends XBreakpoint < ? > > B getDefaultBreakpoint ( @ notnull XBreakpointType < B , ? > type ) {
 + SINGLE
 + return ( B ) myDefaultBreakpoints . get ( type ) ;
 + }
 +
 @ nullable
 public < P extends XBreakpointProperties > XLineBreakpoint < P > findBreakpointAtLine ( @ notnull final XLineBreakpointType < P > type , @ notnull final VirtualFile file ,
 final int line ) {

added toolbar button to toggle all exceptions breakpoint


<nb> public class SitePickerActivity extends AppCompatActivity

 private void setIsInSearchModeAndSetNewAdapter ( boolean isInSearchMode ) {
 String lastSearch = getAdapter ( ) . getLastSearch ( ) ;
 + AniUtils . showFab ( mFabView , ! isInSearchMode ) ;
 setNewAdapter ( lastSearch , isInSearchMode ) ;
 }

Toggling view of FAB when toggling searchMode


<nb> public class OpenIE implements Annotator {
 SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class ,
 SemanticGraphCoreAnnotations . CollapsedCCProcessedDependenciesAnnotation . class ) ) ;
 if ( resolveCoref ) {
 - requirements . add ( edu . stanford . nlp . dcoref . CorefCoreAnnotations . CorefChainAnnotation . class ) ;
 + requirements . add ( edu . stanford . nlp . hcoref . CorefCoreAnnotations . CorefChainAnnotation . class ) ;
 }
 return Collections . unmodifiableSet ( requirements ) ;
 }


<nb> public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo

 double step = _parms . _init_step_size ; SINGLE
 int steps_in_row = NUMBER0 ; SINGLE
 - System . out . println ( fr . toString ( ) ) ;

 while ( ! isDone ( model , steps_in_row , step ) ) {
 update ( NUMBER1 , STRING0 + String . valueOf ( model . _output . _iterations + NUMBER1 ) + STRING1 ) ; SINGLE
 <nb> public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo

 SINGLE
 SINGLE
 - System . out . println ( fr . toString ( ) ) ;
 Vec [ ] xvecs = new Vec [ _ncolX ] ;
 String [ ] xnames = new String [ _ncolX ] ;
 if ( overwriteX ) {


<nb> public class InputStreamGraphSource implements GraphSource {
 SINGLE
 try ( InputStream is = streams . getConfigInputStream ( ) ) {
 JsonNode config = MissingNode . getInstance ( ) ;
 + SINGLE
 + ObjectMapper mapper = new ObjectMapper ( ) ;
 + mapper . configure ( JsonParser . Feature . ALLOW_COMMENTS , true ) ;
 + mapper . configure ( JsonParser . Feature . ALLOW_UNQUOTED_FIELD_NAMES , true ) ;
 if ( is != null ) {
 - SINGLE
 - ObjectMapper mapper = new ObjectMapper ( ) ;
 - mapper . configure ( JsonParser . Feature . ALLOW_COMMENTS , true ) ;
 - mapper . configure ( JsonParser . Feature . ALLOW_UNQUOTED_FIELD_NAMES , true ) ;
 config = mapper . readTree ( is ) ;
 + } else if ( newGraph . routerConfig != null ) {
 + config = mapper . readTree ( newGraph . routerConfig ) ;
 }
 Router newRouter = new Router ( routerId , newGraph ) ;
 newRouter . startup ( config ) ;

Write router config if config is already embedded in the graph


<nb>
 package NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public interface WitherSkull extends Fireball {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setCharged ( boolean charged ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isCharged ( ) ;
 }

Bleeding Add setCharged and getCharged to WitherSkull


<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 ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;

 @ runwith ( RobolectricTestRunner . class )
 - public class MainRoboTest {
 + public class JobManagerTest {
 SINGLE
 @ test
 public void runManyNonPersistentJobs ( ) throws Exception {
 <nb> public class MainRoboTest {

 @ override
 public void onRun ( ) throws Throwable {
 - MainRoboTest . persistentRunLatch . countDown ( ) ;
 + JobManagerTest . persistentRunLatch . countDown ( ) ;
 }
 }

rename MainRoboTest to JobManager test for clarity


<nb> public class SpacingBuilder {
 return new RuleBuilder ( before , after ) ;
 }

 + public SpacingBuilder append ( SpacingBuilder builder ) {
 + myRules . addAll ( builder . myRules ) ;
 + return this ;
 + }
 +
 @ nullable
 public Spacing getSpacing ( Block parent , Block child1 , Block child2 ) {
 if ( ! ( parent instanceof ASTBlock ) || ! ( child1 instanceof ASTBlock ) || ! ( child2 instanceof ASTBlock ) ) {

Added append method for composing instances of SpacingBuilder


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

 COMMENT
 COMMENT
 <nb> public abstract class IQDiscoHandler extends IQHandler {
 super ( name ) ;
 }

 -
 + protected TrackInfo getTrackInfo ( ) {
 + TrackInfo trackInfo = super . getTrackInfo ( ) ;
 + trackInfo . getTrackerClasses ( ) . put ( XMPPServer . class , STRING0 ) ;
 + return trackInfo ;
 + }

 }


<nb> public class RefreshTokenTest {
 assertFalse ( response . isError ( ) ) ;
 assertNull ( response . getError ( ) ) ;

 - assertEquals (
 - STRING0 + REFRESH_TOKEN
 - + STRING1 + CLIENT_ID + STRING2
 - + CLIENT_SECRET , request . getContent ( ) ) ;
 + assertEquals ( STRING0 + REFRESH_TOKEN
 + + STRING1 + CLIENT_ID + STRING2 + CLIENT_SECRET
 + + STRING3 , request . getContent ( ) ) ;
 assertEquals (
 STRING4 ,
 response . getAccessToken ( ) ) ;
 <nb> public class RefreshTokenRequest extends AbstractRequest {
 + CHARSET ;

 private static final String URL = STRING5 ;
 - private static final String CONTENT = STRING6 ;
 + private static final String CONTENT = STRING7 ;

 private final String clientId ;
 private final String clientSecret ;


<nb> public class OSQLHelper {

 if ( map . containsKey ( ODocumentHelper . ATTRIBUTE_TYPE ) )
 SINGLE
 - fieldValue = new ODocument ( map ) ;
 + SINGLE
 + fieldValue = new ODocument ( ) . fromJSON ( iValue ) ;
 else
 fieldValue = map ;
 +
 } else if ( iValue . charAt ( NUMBER0 ) == OStringSerializerHelper . EMBEDDED_BEGIN
 && iValue . charAt ( iValue . length ( ) - NUMBER1 ) == OStringSerializerHelper . EMBEDDED_END ) {
 SINGLE

Fixed issue where INSERT embedded JSON doesn t manage fieldTypes


<nb> public class ModelTest extends DatabaseTestCase {
 assertFalse ( model . hasTransitory ( key1 ) ) ;
 assertTrue ( model . checkAndClearTransitory ( key2 ) ) ;
 assertFalse ( model . hasTransitory ( key2 ) ) ;
 +
 + model . putTransitory ( key1 , STRING0 ) ;
 + model . putTransitory ( key2 , STRING1 ) ;
 + model . clearAllTransitory ( ) ;
 + assertFalse ( model . hasTransitory ( key1 ) ) ;
 + assertFalse ( model . hasTransitory ( key2 ) ) ;
 }

 public void testEnumProperties ( ) {
 <nb> public abstract class AbstractModel implements Cloneable {
 COMMENT
 COMMENT
 public void clearAllTransitory ( ) {
 - if ( transitoryData != null ) {
 - transitoryData . clear ( ) ;
 - }
 + transitoryData = null ;
 }

 COMMENT

Added a test assertions for clearAllTransitory


<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
 cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_ACTION , intent . getAction ( ) ) ;
 cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_DATA , intent . getDataString ( ) ) ;
 cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_COMPONENT_NAME ,
 - intent . getStringExtra ( SearchManager . COMPONENT_NAME_KEY ) ) ;
 + intent . getComponent ( ) . flattenToShortString ( ) ) ;

 SINGLE
 cv . put ( SearchManager . SUGGEST_COLUMN_ICON_1 ,

Fix search intent component bug DO NOT MERGE


<nb> public class GifDecoder {
 }

 SINGLE
 - if ( savePrevious && currentFrame . dispose == DISPOSAL_UNSPECIFIED || currentFrame . dispose == DISPOSAL_NONE ) {
 + if ( savePrevious && ( currentFrame . dispose == DISPOSAL_UNSPECIFIED
 + || currentFrame . dispose == DISPOSAL_NONE ) ) {
 if ( previousImage == null ) {
 previousImage = getNextBitmap ( ) ;
 }

Avoid unnecessary frame allocation in GifDecoder


<nb> class GoLightType < E extends GoCompositeElement > extends LightElement implements

 @ override
 public String toString ( ) {
 - return null ;
 + return getClass ( ) . getSimpleName ( ) + STRING0 + myElement + STRING1 ;
 }

 @ override


<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
 if ( visibleRect . contains ( mEditTextContentBounds ) ) {
 return ; SINGLE
 }
 + nativeFindMaxVisibleRect ( mNativeClass , mEditTextLayerId , visibleRect ) ;
 syncSelectionCursors ( ) ;
 final int buffer = Math . max ( NUMBER0 , viewToContentDimension ( EDIT_RECT_BUFFER ) ) ;
 Rect showRect = new Rect (
 <nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
 Rect rect ) ;
 SINGLE
 private static native int nativeSetHwAccelerated ( int instance , boolean hwAccelerated ) ;
 + private static native void nativeFindMaxVisibleRect ( int instance , int layerId ,
 + Rect visibleContentRect ) ;
 }

Consider fixed layers when scrolling the edit box


<nb> public class BluetoothDeviceService extends IBluetoothDevice . Stub {
 mEventLoop . onModeChanged ( getModeNative ( ) ) ;
 }

 + if ( mIsAirplaneSensitive && isAirplaneModeOn ( ) ) {
 + disable ( false ) ;
 + }
 +
 }
 }

Check AirplaneMode when enabling Bluetooth has finished


<nb> public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
 if ( entryPoints . size ( ) == NUMBER0 ) {
 mainEntryPoint = ( AuthenticationEntryPoint ) entryPoints . get ( NUMBER1 ) ;
 } else {
 - mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . FORM_LOGIN_ENTRY_POINT ) ;
 + mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . MAIN_ENTRY_POINT ) ;
 +
 + if ( mainEntryPoint == null ) {
 + mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . FORM_LOGIN_ENTRY_POINT ) ;
 + }

 if ( mainEntryPoint == null ) {
 mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . BASIC_AUTHENTICATION_ENTRY_POINT ) ;


<nb> public class DeepLearning extends ModelBuilder < DeepLearningModel , DeepLearningPar
 cp . write_lock ( self ( ) ) ;

 if ( ! Arrays . equals ( cp . _output . _names , previous . _output . _names ) ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 + throw new IllegalArgumentException ( STRING1 ) ;
 }
 if ( ! Arrays . deepEquals ( cp . _output . _domains , previous . _output . _domains ) ) {
 throw new IllegalArgumentException ( STRING2 ) ;


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JythonSdkFlavor extends PythonSdkFlavor {
 public void initPythonPath ( GeneralCommandLine cmd , Collection < String > path ) {
 final String jythonPath = StringUtil . join ( path , File . pathSeparator ) ;
 addToEnv ( cmd , JYTHONPATH , appendSystemJythonPath ( jythonPath ) ) ;
 - cmd . getParametersList ( ) . add ( getPythonPathCmdLineArgument ( path ) ) ;
 + ParamsGroup param_group = cmd . getParametersList ( ) . getParamsGroup ( PythonCommandLineState . GROUP_EXE_OPTIONS ) ;
 + assert param_group != null ;
 + param_group . addParameter ( getPythonPathCmdLineArgument ( path ) ) ;
 }

 public static String getPythonPathCmdLineArgument ( Collection < String > path ) {

fixed manage py options for jython made params group in command line


<nb> public class MarkupTemplateEngine extends TemplateEngine {
 final static ClassNode MARKUPTEMPLATEENGINE_CLASSNODE = ClassHelper . make ( MarkupTemplateEngine . class ) ;
 final static String MODELTYPES_ASTKEY = STRING0 ;

 - private final static Pattern LOCALIZED_RESOURCE_PATTERN = Pattern . compile ( STRING1 ) ;
 + private final static Pattern LOCALIZED_RESOURCE_PATTERN = Pattern . compile ( STRING2 ) ;

 private final static AtomicLong counter = new AtomicLong ( ) ;


<nb> public class LRFUEvictor extends BlockStoreEventListenerBase implements Evictor

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private void updateOnAccessAndCommit ( long blockId ) {
 synchronized ( mBlockIdToLastUpdateTime ) {
 long currentLogicTime = mLogicTimeCount . incrementAndGet ( ) ;
 SINGLE
 - SINGLE
 + SINGLE
 if ( mBlockIdToCRFValue . containsKey ( blockId ) ) {
 mBlockIdToCRFValue . put ( blockId , mBlockIdToCRFValue . get ( blockId )
 COMMENT
 } else {
 mBlockIdToCRFValue . put ( blockId , FLOAT0 ) ;
 }
 - SINGLE
 + SINGLE
 mBlockIdToLastUpdateTime . put ( blockId , currentLogicTime ) ;
 }
 }
 <nb> public class LRFUEvictor extends BlockStoreEventListenerBase implements Evictor
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private void updateOnRemoveBlock ( long blockId ) {
 synchronized ( mBlockIdToLastUpdateTime ) {


<nb> public class JsonFactory
 COMMENT
 COMMENT
 protected Object readResolve ( ) {
 - return new JsonFactory ( _objectCodec ) ;
 + return new JsonFactory ( this , _objectCodec ) ;
 }

 COMMENT

Modify JsonFactory readResolve to hopefully work correctly wrt serialization


<nb> public final class GrailsDomainBinder {
 }

 private static String getAssociationDescription ( GrailsDomainClassProperty grailsProperty ) {
 - String assType = STRING0 ; l
 + String assType = STRING0 ;
 if ( grailsProperty . isManyToMany ( ) ) {
 assType = STRING1 ;
 } else if ( grailsProperty . isOneToMany ( ) ) {


<nb> public class Shell implements ConsoleInputHandler ,
 event . preventDefault ( ) ;
 break ;
 case STRING0 :
 + event . stopPropagation ( ) ;
 event . preventDefault ( ) ;
 input_ . goToLineStart ( ) ;
 + break ;
 case STRING1 :
 + event . stopPropagation ( ) ;
 event . preventDefault ( ) ;
 input_ . goToLineEnd ( ) ;
 + break ;
 }
 }
 else if ( mod == KeyboardShortcut . ALT )


<nb> public class MustacheCompiler {
 boolean onlywhitespace = true ;
 READ:
 while ( ( c = br . read ( ) ) != - NUMBER0 ) {
 + if ( c == STRING0 ) {
 + continue ;
 + }
 SINGLE
 if ( c == STRING1 ) {
 writeText ( code , template . toString ( ) ) ;


<nb> public abstract class AbstractTokenListener implements TokenListener
 SINGLE
 }

 + public void onGroupHeader ( Token token , int numInGroup )
 + {
 + SINGLE
 + }
 +
 public void onBeginGroup ( final Token token , final int groupIndex , final int numInGroup )
 {
 SINGLE

added no op onGroupHeader method to AbstractTokenListener


<nb> public class EclipseModelBuilder implements ProjectToolingModelBuilder {
 } else if ( entry instanceof ProjectDependency ) {
 final ProjectDependency projectDependency = ( ProjectDependency ) entry ;
 final String path = StringUtils . removeStart ( projectDependency . getPath ( ) , STRING0 ) ;
 - projectDependencies . add ( new DefaultEclipseProjectDependency ( path , projectMapping . get ( projectDependency . getGradlePath ( ) ) , projectDependency . isExported ( ) ) ) ;
 + SINGLE
 + DefaultEclipseProject targetProject = projectMapping . get ( projectDependency . getGradlePath ( ) ) ;
 + if ( targetProject == null ) {
 + projectDependencies . add ( new DefaultEclipseProjectDependency ( projectDependency . getGradlePath ( ) , null , false ) ) ;
 + } else {
 + projectDependencies . add ( new DefaultEclipseProjectDependency ( path , targetProject , projectDependency . isExported ( ) ) ) ;
 + }
 } else if ( entry instanceof SourceFolder ) {
 final SourceFolder sourceFolder = ( SourceFolder ) entry ;
 String path = sourceFolder . getPath ( ) ;

For now include the full composite path for eclipse project dependencies in a composite


<nb> import static NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 -
 + @ ignore
 public class ServerConfigTest {

 private NeoServer server ;

Re greening the build while I m refactoring under the covers


<nb> public class FacebookComponent extends UriEndpointComponent {

 SINGLE
 FacebookEndpointConfiguration config = new FacebookEndpointConfiguration ( ) ;
 - IntrospectionSupport . setProperties ( config , componentProperties , null ) ;
 + IntrospectionSupport . setProperties ( config , componentProperties ) ;
 return config ;
 }


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

 COMMENT
 COMMENT
 <nb> public class CamelConverter {
 }
 } ;
 }
 +
 + @ converter
 + public DescriptionDefinition toDefinition ( String descriptionText ) {
 + DescriptionDefinition answer = new DescriptionDefinition ( ) ;
 + answer . setText ( descriptionText ) ;
 + return answer ;
 + }
 }

added type converter so its easy to set the description on a ProcessorDefinition using reflection with a String


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class GroovyConfigUtils extends AbstractConfigUtils {
 - @ nonnls private static final Pattern GROOVY_ALL_JAR_PATTERN = Pattern . compile ( STRING0 ) ;
 + @ nonnls private static final Pattern GROOVY_ALL_JAR_PATTERN = Pattern . compile ( STRING1 ) ;

 private static GroovyConfigUtils myGroovyConfigUtils ;
 @ nonnls public static final String GROOVY_JAR_PATTERN_NOVERSION = STRING2 ;


<nb> public abstract class PackageManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class PackageManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DefaultBroadcasterFactoryTest {
 public void testLookup_Class_Object ( ) {
 String id = STRING0 ;
 String id2 = STRING1 ;
 - assert factory . lookup ( DefaultBroadcaster . class , id ) != null ;
 + assert factory . lookup ( DefaultBroadcaster . class , id , true ) != null ;
 assert factory . lookup ( DefaultBroadcaster . class , id2 ) == null ;
 }


<nb> public class DebugInstructionIterator {
 }
 default :
 {
 - byte base = ( byte ) ( ( debugOpcode & NUMBER0 ) - NUMBER1 ) ;
 + int base = ( ( debugOpcode & NUMBER0 ) - NUMBER1 ) ;
 processDebugInstruction . ProcessSpecialOpcode ( startOffset , debugOpcode , ( base % NUMBER2 ) - NUMBER3 , base / NUMBER2 ) ;
 }
 }

Use an int to store the base value when decoding a special debug opcode to prevent an incorrect negative value


<nb> public class DbSqlSessionFactory implements SessionFactory {
 addDatabaseSpecificStatement ( STRING0 , STRING1 , STRING2 ) ;
 addDatabaseSpecificStatement ( STRING0 , STRING3 , STRING4 ) ;
 addDatabaseSpecificStatement ( STRING0 , STRING5 , STRING6 ) ;
 -
 + addDatabaseSpecificStatement ( STRING0 , STRING7 , STRING8 ) ;
 + addDatabaseSpecificStatement ( STRING0 , STRING9 , STRING10 ) ;
 + addDatabaseSpecificStatement ( STRING0 , STRING11 , STRING12 ) ;
 }

 protected String databaseType ;

customizing the resultMap for comment full message blob


<nb>
 COMMENT
 package 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 ;
 import NAMESPACE ;
 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 ;

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


<nb> public final class FileEditorManagerImpl extends FileEditorManagerEx implements
 void updateFileName ( final @ nullable VirtualFile file ) {
 SINGLE
 SINGLE
 - myQueue . queue ( new Update ( STRING0 ) {
 + myQueue . queue ( new Update ( STRING1 + ( file == null ? STRING2 : file . getPath ( ) ) ) {
 public boolean isExpired ( ) {
 if ( myProject . isDisposed ( ) || ! myProject . isOpen ( ) ) return true ;
 return file == null ? super . isExpired ( ) : ! file . isValid ( ) ;

update all file tabs tooltips at startup


<nb> public class SoundEvent extends AbstractCinematicEvent {
 public void initEvent ( Application app , Cinematic cinematic ) {
 super . initEvent ( app , cinematic ) ;
 audioNode = new AudioNode ( app . getAssetManager ( ) , path , stream ) ;
 + audioNode . setPositional ( false ) ;
 setLoopMode ( loopMode ) ;
 }

SoundEvent now sets the underlying audioNode to not be positional


<nb> public class LineWidgetManager extends JavaScriptObject

 public native final void removeAllLineWidgets ( ) COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT ;

 public native final void onWidgetChanged ( LineWidget widget ) / * - {

skip line widgets removal for sessions without widgets


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 + @ retention ( RetentionPolicy . CLASS )
 + @ target ( ElementType . FIELD )
 public @ interface Ignore {

 }
 <nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ retention ( RetentionPolicy . CLASS )
 + @ target ( ElementType . FIELD )
 public @ interface Index {

 }

add explicit retention and target annotations to Ignore and Index annotations


<nb> import NAMESPACE ;

 public class ExtensionScript extends ExtensionAdaptor implements CommandLineListener {

 + public static final int EXTENSION_ORDER = NUMBER0 ;
 public static final String NAME = STRING0 ;
 public static final ImageIcon ICON = new ImageIcon ( ZAP . class . getResource ( STRING1 ) ) ; SINGLE

 <nb> public class ExtensionScript extends ExtensionAdaptor implements CommandLineList
 COMMENT
 private void initialize ( ) {
 this . setName ( NAME ) ;
 - this . setOrder ( NUMBER0 ) ;
 + this . setOrder ( EXTENSION_ORDER ) ;

 ScriptEngine se = mgr . getEngineByName ( STRING2 ) ;
 if ( se != null ) {

Exposed ScriptExtension s order publicly to help ordering of the Scripts


<nb> public class JavaLanguagePlugin implements Plugin < Project > {
 }

 public void apply ( final Project target ) {
 - final JvmLanguagePlugin jvmLanguagePlugin = target . getPlugins ( ) . apply ( JvmLanguagePlugin . class ) ;
 + target . getPlugins ( ) . apply ( JvmLanguagePlugin . class ) ;

 JvmBinaryContainer jvmBinaryContainer = ( JvmBinaryContainer ) target . getExtensions ( ) . getByType ( BinariesContainer . class ) . getByName ( STRING0 ) ;
 jvmBinaryContainer . all ( new Action < ClassDirectoryBinary > ( ) {


<nb> public class Bits {
 bits [ i ] ^= other . bits [ i ] ;
 }

 - if ( bits . length > commonWords ) {
 - for ( int i = other . bits . length , s = bits . length ; s > i ; i ++ ) {
 - bits [ i ] = NUMBER0 L ;
 - }
 - } else if ( commonWords < other . bits . length ) {
 + if ( commonWords < other . bits . length ) {
 checkCapacity ( other . bits . length ) ;
 for ( int i = commonWords , s = other . bits . length ; s > i ; i ++ ) {
 bits [ i ] = other . bits [ i ] ;


<nb>

 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class LocalTransportManagement {

 private final LocalTransport transport ;

 - @ inject public LocalTransportManagement ( LocalTransport transport ) {
 - this . transport = transport ;
 + @ inject public LocalTransportManagement ( Transport transport ) {
 + this . transport = ( LocalTransport ) transport ;
 }
 }
 <nb>

 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class NettyTransportManagement {

 private final NettyTransport transport ;

 - @ inject public NettyTransportManagement ( NettyTransport transport ) {
 - this . transport = transport ;
 + @ inject public NettyTransportManagement ( Transport transport ) {
 + this . transport = ( NettyTransport ) transport ;
 }

 @ managedattribute ( description = STRING0 )

don t let guice by mistake inject two instances


<nb> package NAMESPACE ;
 public class YQueue < T >
 {
 SINGLE
 - private class Chunk < T >
 + private static class Chunk < T >
 {
 final T [ ] values ;
 final int [ ] pos ;

Change Chunk T to be a static inner class


<nb> public class ConversationFragment extends Fragment {
 }

 public void onBackendConnected ( ) {
 + this . activity = ( ConversationActivity ) getActivity ( ) ;
 this . conversation = activity . getSelectedConversation ( ) ;
 if ( this . conversation == null ) {
 return ;


<nb>
 package NAMESPACE ;

 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class MonitorTest {

 private static File testJar ;

 - private int processIndex = NUMBER0 ;
 private FileSystem fileSystem = mock ( FileSystem . class ) ;
 private SystemExit exit = mock ( SystemExit . class ) ;


<nb> public enum TachyonStorageType {
 STORE ( NUMBER0 ) ,

 COMMENT
 - NO_STORE ( NUMBER1 ) ;
 + NO_STORE ( NUMBER1 ) ,
 +
 + COMMENT
 + PROMOTE ( NUMBER2 ) ;

 private final int mValue ;

 <nb> public enum TachyonStorageType {
 COMMENT
 COMMENT
 public boolean isStore ( ) {
 - return mValue == STORE . mValue ;
 + return mValue == STORE . mValue || mValue == PROMOTE . mValue ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isPromote ( ) {
 + return mValue == PROMOTE . mValue ;
 }
 }


<nb> public class BootstrapCheckTests extends ESTestCase {
 } catch ( final RuntimeException e ) {
 assertThat (
 e . getMessage ( ) ,
 - containsString ( STRING0 ) ) ;
 + containsString ( STRING1 ) ) ;
 }
 } else {
 SINGLE

Fix case in mlockall check error message


<nb> class FastScroller {
 final View track = mTrackImage ;
 final View thumb = mThumbImage ;
 final Rect container = mContainerRect ;
 - final int containerWidth = container . width ( ) ;
 - final int widthMeasureSpec = MeasureSpec . makeMeasureSpec ( containerWidth , MeasureSpec . AT_MOST ) ;
 + final int maxWidth = container . width ( ) ;
 + final int widthMeasureSpec = MeasureSpec . makeMeasureSpec ( maxWidth , MeasureSpec . AT_MOST ) ;
 final int heightMeasureSpec = MeasureSpec . makeMeasureSpec ( NUMBER0 , MeasureSpec . UNSPECIFIED ) ;
 track . measure ( widthMeasureSpec , heightMeasureSpec ) ;

 final int trackWidth = track . getMeasuredWidth ( ) ;
 - final int thumbHalfHeight = thumb == null ? NUMBER0 : thumb . getHeight ( ) / NUMBER1 ;
 + final int thumbHalfHeight = thumb . getHeight ( ) / NUMBER1 ;
 final int left = thumb . getLeft ( ) + ( thumb . getWidth ( ) - trackWidth ) / NUMBER1 ;
 final int right = left + trackWidth ;
 final int top = container . top + thumbHalfHeight ;

Remove unnecessary null check in FastScroller


<nb> public class TextToSpeech {
 String defaultEngine = getDefaultEngine ( ) ;
 String engine = defaultEngine ;
 if ( ! areDefaultsEnforced ( ) && ! TextUtils . isEmpty ( mRequestedEngine )
 - && mEnginesHelper . isEngineEnabled ( engine ) ) {
 + && mEnginesHelper . isEngineEnabled ( mRequestedEngine ) ) {
 engine = mRequestedEngine ;
 }


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

 - public class Device
 + public final class Device
 implements Serializable
 {
 private static final long serialVersionUID = - NUMBER0 ;


<nb> public final class SecurityNamespaceHandler implements NamespaceHandler {
 public BeanDefinition parse ( Element element , ParserContext pc ) {
 if ( ! namespaceMatchesVersion ( element ) ) {
 pc . getReaderContext ( )
 - . fatal ( STRING0
 - + STRING1 ,
 + . fatal ( STRING2
 + + STRING3 ,
 element ) ;
 }
 String name = pc . getDelegate ( ) . getLocalName ( element ) ;


<nb> public class DatabaseAdaptor
 private String _connectionUrl ;
 private Driver _driver ;
 private DataSource _datasource ;
 +
 +
 +
 private String _jndiName ;

 <nb> public class DatabaseAdaptor
 _jndiName = jndi ;
 }

 +
 + public String getDatasourceName ( )
 + {
 + return _jndiName ;
 + }
 +
 +
 + public DataSource getDatasource ( )
 + {
 + return _datasource ;
 + }
 +
 +
 + public String getDriverClassName ( )
 + {
 + return _driverClassName ;
 + }
 +
 +
 + public Driver getDriver ( )
 + {
 + return _driver ;
 + }
 +
 + public String getConnectionUrl ( )
 + {
 + return _connectionUrl ;
 + }
 +
 +
 +
 public void initialize ( )
 throws Exception
 {
 <nb> public class DatabaseAdaptor
 }
 }
 }
 -

 COMMENT


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

 import NAMESPACE ;


<nb>

 package NAMESPACE ;

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

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TrivialRemainingWeightHeuristic implements RemainingWeightHeuristic
 @ override
 public void reset ( ) { }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static class Factory implements RemainingWeightHeuristicFactory {
 + @ override
 + public RemainingWeightHeuristic getInstanceForSearch ( RoutingRequest opt ) {
 + return new TrivialRemainingWeightHeuristic ( ) ;
 + }
 + }
 }

add factory to trivial remaining weight heuristic


<nb> public abstract class AppIntroBase extends AppCompatActivity {
 COMMENT
 COMMENT
 COMMENT
 - public void setColorTransitions ( boolean colorTransitionsEnabled ) {
 + public void setColorTransitionsEnabled ( boolean colorTransitionsEnabled ) {
 areColorTransitionsEnabled = colorTransitionsEnabled ;
 }

renamed setColorTransitions to setColorTransitionsEnabled


<nb> public class RetryUntilElapsed extends SleepingRetry
 @ override
 public boolean allowRetry ( int retryCount , long elapsedTimeMs )
 {
 - return ( elapsedTimeMs < maxElapsedTimeMs ) ;
 + return super . allowRetry ( retryCount , elapsedTimeMs ) && ( elapsedTimeMs < maxElapsedTimeMs ) ;
 }

 @ override

Make RetryUntilElapsed respect sleepMsBetweenRetries via the implementation in the base clase


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileSystemMasterClientRestApiTest {
 Map < String , String > params = Maps . newHashMap ( ) ;
 params . put ( STRING0 , STRING1 ) ;

 - Random random = new Random ( ) ;
 - long scheduleAsyncPersistResult = random . nextLong ( ) ;
 - Mockito . doReturn ( scheduleAsyncPersistResult ) . when ( sFileSystemMaster )
 - . scheduleAsyncPersistence ( Mockito . < AlluxioURI > any ( ) ) ;
 -
 TestCaseFactory . newMasterTestCase (
 getEndpoint ( FileSystemMasterClientRestServiceHandler . SCHEDULE_ASYNC_PERSIST ) , params ,
 - STRING2 , scheduleAsyncPersistResult , mResource ) . run ( ) ;
 + STRING2 , STRING3 , mResource ) . run ( ) ;

 Mockito . verify ( sFileSystemMaster ) . scheduleAsyncPersistence ( Mockito . < AlluxioURI > any ( ) ) ;
 }


<nb> public class MediaDriver implements AutoCloseable
 private MediaDriver start ( )
 {
 conductorThread = new Thread ( conductor ) ;
 - startThread ( conductorThread , STRING0 ) ;
 + startThread ( conductorThread , STRING1 ) ;

 senderThread = new Thread ( sender ) ;
 - startThread ( senderThread , STRING2 ) ;
 + startThread ( senderThread , STRING3 ) ;

 receiverThread = new Thread ( receiver ) ;
 - startThread ( receiverThread , STRING4 ) ;
 + startThread ( receiverThread , STRING5 ) ;

 eventReaderThread = new Thread ( eventReader ) ;
 - startThread ( eventReaderThread , STRING6 ) ;
 + startThread ( eventReaderThread , STRING7 ) ;

 return this ;
 }

Java Qualify the names of aeron media driver threads


<nb> public class ActionBarOverlayLayout extends ViewGroup {
 }

 public int getActionBarHideOffset ( ) {
 - return - ( ( int ) mActionBarTop . getTranslationY ( ) ) ;
 + return mActionBarTop != null ? - ( ( int ) mActionBarTop . getTranslationY ( ) ) : NUMBER0 ;
 }

 public void setActionBarHideOffset ( int offset ) {

Fix a bug in querying showing state for action bars


<nb> public class JavaFoldingBuilder extends FoldingBuilderEx {

 if ( ! baseClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return false ;

 - boolean hasEmptyConstructor = false ;
 - for ( final PsiMethod method : baseClass . getConstructors ( ) ) {
 + final PsiMethod [ ] constructors = baseClass . getConstructors ( ) ;
 + boolean hasEmptyConstructor = constructors . length == NUMBER0 ;
 + for ( final PsiMethod method : constructors ) {
 if ( method . getParameterList ( ) . getParametersCount ( ) == NUMBER0 ) {
 hasEmptyConstructor = true ;
 break ;


<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
 ApplicationInfo ai = mIPackageManager . getApplicationInfo ( imm . getPackageName ( ) ,
 PackageManager . GET_DISABLED_UNTIL_USED_COMPONENTS ,
 mSettings . getCurrentUserId ( ) ) ;
 - if ( ai . enabledSetting
 + if ( ai != null && ai . enabledSetting
 == PackageManager . COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED ) {
 mIPackageManager . setApplicationEnabledSetting ( imm . getPackageName ( ) ,
 PackageManager . COMPONENT_ENABLED_STATE_DEFAULT ,


<nb> public class TileRefinery extends TileMachine implements ITankContainer , IPowerR
 if ( liquid == null )
 return true ;

 - if ( liquid . isLiquidEqual ( new LiquidStack ( slot1 . liquidId , slot1 . quantity , NUMBER0 ) ) ) {
 + if ( liquid . containsLiquid ( new LiquidStack ( slot1 . liquidId , slot1 . quantity , NUMBER0 ) ) ) {
 slot1 . quantity -= liquid . amount ;
 return true ;
 - } else if ( liquid . isLiquidEqual ( new LiquidStack ( slot2 . liquidId , slot2 . quantity , NUMBER0 ) ) ) {
 + } else if ( liquid . containsLiquid ( new LiquidStack ( slot2 . liquidId , slot2 . quantity , NUMBER0 ) ) ) {
 slot2 . quantity -= liquid . amount ;
 return true ;
 }


<nb> public class RealmTest extends AndroidTestCase {
 }

 + public void testGetRealmAfterCompactRealm ( ) {
 + final RealmConfiguration configuration = testRealm . getConfiguration ( ) ;
 + testRealm . close ( ) ;
 + testRealm = null ;
 + Realm . compactRealm ( configuration ) ;
 + testRealm = Realm . getInstance ( configuration ) ;
 + }
 +
 public void testCompactRealmFileThrowsIfOpen ( ) throws IOException {
 try {
 Realm . compactRealm ( TestHelper . createConfiguration ( getContext ( ) ) ) ;

Add test to open Realm database after compactRealm


<nb> public class ErrorProneScanner extends Scanner {
 }
 }

 - public ErrorProneScanner ( BugChecker checker ) {
 - registerNodeTypes ( checker ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public ErrorProneScanner ( BugChecker . . . checkers ) {
 + for ( BugChecker checker : checkers ) {
 + registerNodeTypes ( checker ) ;
 + }
 }

 private final List < MethodInvocationTreeMatcher > methodInvocationMatchers =

Add ability to construct an ErrorProneScanner with a list of checks


<nb> public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
 storeType ( pexp , setter . getParameters ( ) [ NUMBER0 ] . getType ( ) ) ;
 SetterInfo info = new SetterInfo ( current , setter ) ;
 BinaryExpression enclosingBinaryExpression = typeCheckingContext . getEnclosingBinaryExpression ( ) ;
 - putSetterInfo ( enclosingBinaryExpression . getLeftExpression ( ) , info ) ;
 + if ( enclosingBinaryExpression != null ) putSetterInfo ( enclosingBinaryExpression . getLeftExpression ( ) , info ) ;
 return true ;
 } else if ( getter != null ) {
 pexp . putNodeMetaData ( StaticTypesMarker . READONLY_PROPERTY , true ) ;

add null check for enclosing binary expression


<nb> public class MainFrame extends JPanel implements DataProvider {

 DefaultActionGroup toolbarGroup = new DefaultActionGroup ( ) ;
 toolbarGroup . add ( ActionManager . getInstance ( ) . getAction ( VcsLogActionPlaces . TOOLBAR_ACTION_GROUP ) ) ;
 - toolbarGroup . add ( refreshLogAction , new Constraints ( Anchor . AFTER , STRING0 ) ) ;
 + toolbarGroup . add ( refreshLogAction ) ;

 DefaultActionGroup mainGroup = new DefaultActionGroup ( ) ;
 mainGroup . add ( myFilterUi . createActionGroup ( ) ) ;

vcs log remove a constraint since it does not make any difference


<nb> public class SQLUtils {
 }

 if ( JdbcUtils . ODPS . equals ( dbType ) ) {
 - return toDB2String ( sqlObject ) ;
 + return toOdpsString ( sqlObject ) ;
 }

 return toSQLServerString ( sqlObject ) ;


<nb> public class CommentUserNoteBlock extends UserNoteBlock {
 siteTextView . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View v ) {
 - getOnNoteBlockTextClickListener ( ) . showSitePreview ( getMetaSiteId ( ) , getMetaSiteUrl ( ) ) ;
 + if ( getOnNoteBlockTextClickListener ( ) != null ) {
 + getOnNoteBlockTextClickListener ( ) . showSitePreview ( getMetaSiteId ( ) , getMetaSiteUrl ( ) ) ;
 + }
 }
 } ) ;
 }

Added null check on getOnNoteBlockTextClickListener


<nb> public class TypeListItem extends Item < TypeListItem > {
 COMMENT
 COMMENT
 COMMENT
 - private TypeListItem ( DexFile dexFile , List < TypeIdItem > typeList ) {
 + private TypeListItem ( DexFile dexFile , TypeIdItem [ ] typeList ) {
 super ( dexFile ) ;

 - this . typeList = new TypeIdItem [ typeList . size ( ) ] ;
 - typeList . toArray ( this . typeList ) ;
 + this . typeList = typeList ;
 }

 COMMENT
 <nb> public class TypeListItem extends Item < TypeListItem > {
 COMMENT
 COMMENT
 COMMENT
 - public static TypeListItem getInternedTypeListItem ( DexFile dexFile , List < TypeIdItem > typeList ) {
 + public static TypeListItem getInternedTypeListItem ( DexFile dexFile , TypeIdItem [ ] typeList ) {
 TypeListItem typeListItem = new TypeListItem ( dexFile , typeList ) ;
 return dexFile . TypeListsSection . intern ( typeListItem ) ;
 }

Change TypeListItem constructor to take an array rather than a list to be consistent with other classes


<nb> package NAMESPACE ;

 import NAMESPACE ;

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

 import NAMESPACE ;


<nb> public class JLanguageTool {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public Set < String > getDisabledRules ( ) {
 + return disabledRules ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ConfigureMapMenu {
 } else {
 ma . getMapLayers ( ) . showGPXFileLayer ( getAlreadySelectedGpx ( ) , ma . getMapView ( ) ) ;
 }
 + adapter . item ( R . string . layer_gpx_layer ) . selected (
 + app . getSelectedGpxHelper ( ) . isShowingAnyGpxFiles ( ) ? NUMBER0 : NUMBER1 )
 + SINGLE
 + . icons ( R . drawable . ic_action_polygom_dark , R . drawable . ic_action_polygom_light )
 + . listen ( l ) . reg ( ) ;
 } else if ( itemId == R . string . layer_transport_route ) {
 ma . getMapLayers ( ) . getTransportInfoLayer ( ) . setVisible ( isChecked ) ;
 }

Try re initialiize tick mark for GPX track


<nb> package NAMESPACE ;
 COMMENT
 public interface SqsConstants {

 - String ATTRIBUTES = STRING0 ;
 - String MD5_OF_BODY = STRING1 ;
 - String MESSAGE_ID = STRING2 ;
 - String RECEIPT_HANDLE = STRING3 ;
 + String ATTRIBUTES = STRING4 ;
 + String MD5_OF_BODY = STRING5 ;
 + String MESSAGE_ID = STRING6 ;
 + String RECEIPT_HANDLE = STRING7 ;
 }

camel aws sks component uses aws preifx in scheme component nane


<nb> public class WorkbenchScreen extends Composite
 @ handler
 void onActivateBuild ( ) { paneManager_ . activateTab ( Tab . Build ) ; }
 @ handler
 - void onActivatePresentation ( ) { paneManager_ . activateTab ( Tab . Presentation ) ; }
 + void onActivatePresentation ( ) { paneManager_ . activateTab ( Tab . Presentation ) ; }
 + @ handler
 + void onActivateViewer ( ) { paneManager_ . activateTab ( Tab . Viewer ) ; }
 +

 @ handler
 void onLayoutZoomEnvironment ( ) { paneManager_ . zoomTab ( Tab . Environment ) ; }
 <nb> public class WorkbenchScreen extends Composite
 @ handler
 void onLayoutZoomBuild ( ) { paneManager_ . zoomTab ( Tab . Build ) ; }
 @ handler
 - void onLayoutZoomPresentation ( ) { paneManager_ . zoomTab ( Tab . Presentation ) ; }
 + void onLayoutZoomPresentation ( ) { paneManager_ . zoomTab ( Tab . Presentation ) ; }
 + @ handler
 + void onLayoutZoomViewer ( ) { paneManager_ . zoomTab ( Tab . Viewer ) ; }

 @ handler
 void onMacPreferences ( )

add Viewer activate zoom command handlers


<nb> public class MediaControl
 else if ( sourceFormat . matches ( h263Fmt ) )
 {
 SINGLE
 - if ( size . width < NUMBER0 )
 - {
 - width = NUMBER0 ;
 - height = NUMBER1 ;
 - }
 - else if ( size . width < NUMBER2 )
 - {
 - width = NUMBER2 ;
 - height = NUMBER3 ;
 - }
 - else
 - {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 width = NUMBER4 ;
 height = NUMBER5 ;

 - }
 + SINGLE
 }
 else
 {

Set size to a fixed size temp fix for null size


<nb> public class NodeToolBar extends javax . swing . JPanel implements ComponentListener
 public NodeToolBar ( NodePanel node ) {
 initComponents ( ) ;
 this . node = node ;
 + if ( node . getType ( ) != NodePanel . NodeType . Fragment && node . getType ( ) != NodePanel . NodeType . Vertex ) {
 + remove ( codeButton ) ;
 + }
 node . addComponentListener ( this ) ;
 }

Removed the code display button for nodes that don t have code


<nb> public final class FileOutStreamAsyncWriteIntegrationTest
 Assert . assertTrue ( HeartbeatScheduler . await ( HeartbeatContext . WORKER_FILESYSTEM_MASTER_SYNC , NUMBER0 ,
 TimeUnit . SECONDS ) ) ;

 - SINGLE
 IntegrationTestUtils . waitForPersist ( mLocalTachyonClusterResource , file . getFileId ( ) ) ;

 HeartbeatScheduler . schedule ( HeartbeatContext . WORKER_FILESYSTEM_MASTER_SYNC ) ;


<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 ;
 <nb> public class AgentControllerTest {
 }

 @ test
 - @ ignore ( STRING0 )
 public void processCancelBuildCommandBuild ( ) throws IOException , InterruptedException {
 when ( agentRegistry . uuid ( ) ) . thenReturn ( agentUuid ) ;
 when ( httpService . httpClient ( ) ) . thenReturn ( httpClient ) ;


<nb> public class NodeDisconnectJobMonitorService
 @ override
 public void onNodeDisconnected ( final DiscoveryNode node ) {
 final Collection < JobExecutionContext > contexts = jobContextService . getContextsByCoordinatorNode ( node . id ( ) ) ;
 + if ( contexts . isEmpty ( ) ) {
 + return ;
 + }
 +
 threadPool . schedule ( DELAY , ThreadPool . Names . GENERIC , new Runnable ( ) {
 @ override
 public void run ( ) {

Don t schedule context cleanup if there aren t any


<nb> public class RemoteDebugger implements ProcessDebugger {
 }

 for ( String line : lines ) {
 - processResponse ( line ) ;
 + processResponse ( line + STRING0 ) ;
 }
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 public class LocalServerPipelineFactory implements ChannelPipelineFactory {

 - private final Executor eventExecutor ;
 + private final ExecutionHandler executionHandler ;

 public LocalServerPipelineFactory ( Executor eventExecutor ) {
 - this . eventExecutor = eventExecutor ;
 + executionHandler = new ExecutionHandler ( eventExecutor ) ;
 }

 public ChannelPipeline getPipeline ( ) throws Exception {
 final ChannelPipeline pipeline = Channels . pipeline ( ) ;
 pipeline . addLast ( STRING0 , new StringDecoder ( ) ) ;
 pipeline . addLast ( STRING1 , new StringEncoder ( ) ) ;
 - pipeline . addLast ( STRING2 , new ExecutionHandler ( eventExecutor ) ) ;
 + pipeline . addLast ( STRING2 , executionHandler ) ;
 pipeline . addLast ( STRING3 , new EchoCloseServerHandler ( ) ) ;
 return pipeline ;
 }

Fixed a wrong usage of ExecutionHandler in the example


<nb> public class ThumbnailRequestCoordinator implements RequestCoordinator ,
 if ( coordinator != null ) {
 coordinator . onRequestSuccess ( this ) ;
 }
 - thumb . clear ( ) ;
 + if ( ! thumb . isComplete ( ) ) {
 + thumb . clear ( ) ;
 + }
 }

 private boolean parentIsAnyResourceSet ( ) {


<nb> public class EnglishGrammaticalRelations {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static final GrammaticalRelation TEMPORAL_MODIFIER =
 new GrammaticalRelation ( Language . English , STRING0 , STRING1 ,
 - TemporalModifierGRAnnotation . class , NP_ADVERBIAL_MODIFIER , STRING2 , tregexCompiler ,
 + TemporalModifierGRAnnotation . class , NP_ADVERBIAL_MODIFIER , STRING3 , tregexCompiler ,
 new String [ ] {
 - STRING4 ,
 - STRING5 + timeWordRegex + STRING6 ,
 + STRING7 ,
 + STRING8 + timeWordRegex + STRING6 ,
 SINGLE
 STRING9 ,
 STRING10 + timeWordRegex + STRING11 ,


<nb> abstract class PooledByteBuf < T > extends AbstractByteBuf implements Unsafe {

 void init ( PoolChunk < T > chunk , long handle , T memory , int offset , int length ) {
 assert handle >= NUMBER0 ;
 + assert memory != null ;
 +
 this . chunk = chunk ;
 this . handle = handle ;
 this . memory = memory ;

Ensure PooledByteBuf init is not called with null memory


<nb> public class Files
 ClientInitState state = sessionInfo . getClientState ( ) ;

 SINGLE
 - new JSObjectStateValue ( MODULE_FILES , KEY_COLUMN_SORT_ORDER , false , state , false )
 + new JSObjectStateValue ( MODULE_FILES , KEY_SORT_ORDER , false , state , false )
 {
 @ override
 protected void onInit ( JsObject value )
 <nb> public class Files
 private final Provider < FilesUpload > pFilesUpload_ ;
 private static final String MODULE_FILES = STRING0 ;
 private static final String KEY_PATH = STRING1 ;
 - private static final String KEY_COLUMN_SORT_ORDER = STRING2 ;
 + private static final String KEY_SORT_ORDER = STRING3 ;
 private JsArray < FilesColumnSortInfo > columnSortOrder_ = null ;
 }

change sort order key name to avoid duplicate


<nb> public interface JvmApiSpec {
 COMMENT
 void exports ( String packageName ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 Set < JvmPackageName > getExports ( ) ;

 void dependencies ( Closure < ? > configureAction ) ;


<nb> public class SecureNio2Channel extends Nio2Channel {
 writePending = false ;
 throw new ExecutionException ( t ) ;
 }
 - integer . get ( ) ;
 - if ( written == NUMBER0 ) {
 + if ( integer . get ( ) . intValue ( ) > NUMBER0 && written == NUMBER0 ) {
 wrap ( ) ;
 return get ( ) ;
 } else {

Fix infinite loop observed while running unit tests when write is called


<nb> public class DefaultEurekaClientConfig implements EurekaClientConfig {
 return configInstance . getIntProperty (
 namespace + STRING0 , NUMBER0 ) . get ( ) ;
 }
 +
 + @ override
 + public int getInitialInstanceInfoReplicationIntervalSeconds ( ) {
 + return configInstance . getIntProperty (
 + namespace + STRING1 , NUMBER1 ) . get ( ) ;
 + }

 COMMENT
 COMMENT
 <nb> public class DiscoveryClient implements LookupService {

 SINGLE
 scheduler . scheduleWithFixedDelay ( new InstanceInfoReplicator ( ) ,
 - NUMBER2 + clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) ,
 + clientConfig . getInitialInstanceInfoReplicationIntervalSeconds ( ) ,
 clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) , TimeUnit . SECONDS ) ;

 }
 <nb> public interface EurekaClientConfig {
 COMMENT
 COMMENT
 int getInstanceInfoReplicationIntervalSeconds ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + int getInitialInstanceInfoReplicationIntervalSeconds ( ) ;

 COMMENT
 COMMENT

add eureka appinfo initial replicate time property to allow faster initial registration


<nb>
 package NAMESPACE ;

 - import static NAMESPACE ;
 - import static NAMESPACE ;
 - import static 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 ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;

 - public class FilteredBlockAndPartialMerkelTreeTests extends TestWithPeerGroup {
 + public class FilteredBlockAndPartialMerkleTreeTests extends TestWithPeerGroup {
 @ test
 SINGLE
 public void deserializeFilteredBlock ( ) throws Exception {

Fix typo in name of FilteredBlockAndPartialMerkleTreeTests


<nb> public interface ClaimStrategy
 if ( expectedSequence == cursor . get ( ) )
 {
 cursor . set ( sequence ) ;
 + if ( sequence == claimSequence . get ( ) )
 + {
 + return ;
 + }
 }
 else
 {
 <nb> public interface ClaimStrategy
 }
 }

 - if ( NUMBER0 L == csLock . get ( ) && csLock . compareAndSet ( NUMBER0 L , NUMBER1 ) )
 + if ( csLock . compareAndSet ( NUMBER0 L , NUMBER1 ) )
 {
 long initialCursor = cursor . get ( ) ;
 long currentCursor = initialCursor ;
 <nb> public interface ClaimStrategy
 cursor . set ( currentCursor ) ;
 }

 - csLock . lazySet ( NUMBER0 L ) ;
 + csLock . set ( NUMBER0 L ) ;
 }
 }

Removed optimisation for lazySet on critical section of claim strategy


<nb> public abstract class HTTP2Session implements ISession , Parser . Listener
 @ override
 public void onConnectionFailure ( int error , String reason )
 {
 -
 + SINGLE
 }

 @ override
 <nb> public abstract class HTTP2Session implements ISession , Parser . Listener
 @ override
 public void settings ( SettingsFrame frame , Callback callback )
 {
 -
 + frame ( frame , callback ) ;
 }

 @ override
 public void ping ( PingFrame frame , Callback callback )
 {
 -
 + frame ( frame , callback ) ;
 }

 @ override
 public void reset ( ResetFrame frame , Callback callback )
 {
 -
 + frame ( frame , callback ) ;
 }

 @ override
 <nb> public interface Session

 public Stream getStream ( int streamId ) ;

 - SINGLE
 + SINGLE

 public interface Listener
 {

Fixed generation of frames via Session API methods


<nb> public class TransactionBroadcast {
 numWaitingFor = ( int ) Math . ceil ( ( peers . size ( ) - numToBroadcastTo ) / FLOAT0 ) ;
 Collections . shuffle ( peers , random ) ;
 peers = peers . subList ( NUMBER0 , numToBroadcastTo ) ;
 - log . info ( STRING0 ,
 - numConnected , tx . getHashAsString ( ) , numToBroadcastTo , numWaitingFor , Joiner . on ( STRING1 ) . join ( peers ) ) ;
 + log . info ( STRING2 , numConnected , tx . getHashAsString ( ) ) ;
 + log . info ( STRING3 , numToBroadcastTo , numWaitingFor , Joiner . on ( STRING1 ) . join ( peers ) ) ;
 for ( Peer peer : peers ) {
 try {
 peer . sendMessage ( pinnedTx ) ;


<nb> public class RowReceiverToResultReceiver implements RowReceiver {
 private long rowCount = NUMBER0 ;

 private ResumeHandle resumeHandle = null ;
 - private RowReceiver . Result nextRowResult = Result . CONTINUE ;

 public RowReceiverToResultReceiver ( ResultReceiver resultReceiver , int maxRows ) {
 this . resultReceiver = resultReceiver ;
 <nb> public class RowReceiverToResultReceiver implements RowReceiver {
 if ( maxRows > NUMBER0 && rowCount % maxRows == NUMBER0 ) {
 return Result . PAUSE ;
 }
 - return nextRowResult ;
 + return Result . CONTINUE ;
 }

 @ override
 <nb> public class RowReceiverToResultReceiver implements RowReceiver {

 @ override
 public void fail ( Throwable throwable ) {
 - nextRowResult = Result . STOP ;
 resultReceiver . fail ( throwable ) ;
 }

fixes row emitting on a retry plan executed with rowReceivers re used


<nb> public final class ActivityManagerService extends ActivityManagerNative

 @ override
 public Bitmap getTaskDescriptionIcon ( String filename ) {
 + if ( ! FileUtils . isValidExtFilename ( filename )
 + || ! filename . contains ( ActivityRecord . ACTIVITY_ICON_SUFFIX ) ) {
 + throw new IllegalArgumentException ( STRING0 + filename ) ;
 + }
 return mTaskPersister . getTaskDescriptionIcon ( filename ) ;
 }

 <nb> final class ActivityRecord {
 private static final String ATTR_LAUNCHEDFROMPACKAGE = STRING1 ;
 private static final String ATTR_RESOLVEDTYPE = STRING2 ;
 private static final String ATTR_COMPONENTSPECIFIED = STRING3 ;
 - private static final String ACTIVITY_ICON_SUFFIX = STRING4 ;
 + static final String ACTIVITY_ICON_SUFFIX = STRING4 ;

 final ActivityManagerService service ; SINGLE
 final IApplicationToken . Stub appToken ; SINGLE


<nb> public class SortHelper {
 public static Order defaultTaskOrder ( ) {
 return Order . asc ( Functions . caseStatement ( Task . DUE_DATE . eq ( NUMBER0 ) ,
 Functions . now ( ) + STRING0 ,
 - Task . DUE_DATE ) + STRING1 + ( NUMBER1 * DateUtilities . ONE_DAY ) + STRING2 +
 + adjustedDueDateFunction ( ) ) + STRING1 + ( NUMBER1 * DateUtilities . ONE_DAY ) + STRING2 +
 Task . IMPORTANCE + STRING3 + Task . COMPLETION_DATE ) ;
 }

 + private static String adjustedDueDateFunction ( ) {
 + return new StringBuilder ( STRING4 ) . append ( Task . DUE_DATE . name ) . append ( STRING5 )
 + . append ( STRING6 ) . append ( Task . DUE_DATE . name ) . append ( STRING7 ) . append ( STRING8 ) . append ( Task . DUE_DATE . name )
 + . append ( STRING1 ) . append ( DateUtilities . ONE_HOUR * NUMBER2 + DateUtilities . ONE_MINUTE * NUMBER3 ) . append ( STRING9 ) . toString ( ) ;
 + }
 +
 }

Adjust autosort function to handle due dates with times better


<nb> abstract class DocumentsSynchronizer {
 @ notnull protected final Document myDocument2 ;
 @ nullable private final Project myProject ;

 - private volatile boolean myDuringModification = false ;
 + private boolean myDuringModification = false ;

 private final DocumentAdapter myListener1 = new DocumentAdapter ( ) {
 @ override


<nb> public class TestConditions
 assertFunction ( STRING0 , null ) ;
 }

 + @ test
 + public void testDistinctFrom ( )
 + throws Exception
 + {
 + assertFunction ( STRING1 , false ) ;
 + assertFunction ( STRING2 , true ) ;
 + assertFunction ( STRING3 , true ) ;
 + assertFunction ( STRING4 , false ) ;
 + assertFunction ( STRING5 , true ) ;
 +
 + assertFunction ( STRING6 , true ) ;
 + assertFunction ( STRING7 , false ) ;
 + assertFunction ( STRING8 , false ) ;
 + assertFunction ( STRING9 , true ) ;
 + assertFunction ( STRING10 , false ) ;
 + }
 +
 @ test ( expectedExceptions = RuntimeException . class , expectedExceptionsMessageRegExp = STRING11 )
 public void testLikeInvalidEscape ( )
 {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public final class URL implements Serializable {

 private static final long serialVersionUID = NUMBER0 ;


<nb> public class JavaAwareCompilationUnit extends CompilationUnit {
 private boolean keepStubs ;

 public JavaAwareCompilationUnit ( CompilerConfiguration configuration ) {
 - this ( configuration , null ) ;
 + this ( configuration , null , null ) ;
 }

 public JavaAwareCompilationUnit ( CompilerConfiguration configuration , GroovyClassLoader groovyClassLoader ) {
 - super ( configuration , null , groovyClassLoader ) ;
 + this ( configuration , groovyClassLoader , null ) ;
 + }
 +
 + public JavaAwareCompilationUnit ( CompilerConfiguration configuration , GroovyClassLoader groovyClassLoader ,
 + GroovyClassLoader transformClassLoader ) {
 + super ( configuration , null , groovyClassLoader , transformClassLoader ) ;
 javaSources = new LinkedList < String > ( ) ;
 Map options = configuration . getJointCompilationOptions ( ) ;
 generationGoal = ( File ) options . get ( STRING0 ) ;

JavaAwareCompilationUnit should have a constructor that allows to set transformLoader


<nb>
 package NAMESPACE ;

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


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class JetDecompiledData {
 return null ;
 }
 ClsFileImpl clsFile = ( ClsFileImpl ) psiFile ;
 - SINGLE
 if ( clsFile . getClasses ( ) . length != NUMBER0 ) {
 - throw new AssertionError ( STRING0 + Arrays . toString ( clsFile . getClasses ( ) ) ) ;
 + return null ;
 }
 PsiClass psiClass = clsFile . getClasses ( ) [ NUMBER1 ] ;
 return isKotlinNamespaceClass ( psiClass ) || isKotlinClass ( psiClass ) ? clsFile : null ;

Replaced assertion with returning null when class file contains several classes


<nb> public class JetParsing extends AbstractJetParsing {
 IElementType declType = parseMemberDeclarationRest ( enumDetector . isDetected ( ) ) ;

 if ( declType == null ) {
 - errorAndAdvance ( STRING0 ) ;
 + errorWithRecovery ( STRING0 , TokenSet . create ( RBRACE ) ) ;
 decl . drop ( ) ;
 }
 else {

Added recovery in JetParsing parseMemberDeclaration


<nb> public class PeopleInviteFragment extends Fragment implements
 }

 @ override
 + public void onCreate ( Bundle savedInstanceState ) {
 + super . onCreate ( savedInstanceState ) ;
 + SINGLE
 + setRetainInstance ( true ) ;
 + }
 +
 + @ override
 public View onCreateView ( final LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) {
 setHasOptionsMenu ( true ) ;
 -
 return inflater . inflate ( R . layout . people_invite_fragment , container , false ) ;
 }

added setRetainInstanceState so the fragment instance will still exist upon config changes


<nb> public class TimeFormatter {
 Pattern textPattern ;

 public CustomDateFormatExtractor ( String timePattern , String localeString ) {
 - Locale locale = ( localeString != null ) ? Locale . forLanguageTag ( localeString ) : Locale . getDefault ( ) ;
 + Locale locale = ( localeString != null ) ? new Locale ( localeString ) : Locale . getDefault ( ) ;
 this . timePattern = timePattern ;
 builder = new FormatterBuilder ( ) ;
 builder . locale = locale ;

Don t use forLanguageTag to get locale for now


<nb> public class GenericRefTest {
 public void testGetFullRef ( ) throws Exception {
 assertRefStringIsUnchanged ( RefType . DEFINITION , STRING0 ) ;
 assertRefStringIsUnchanged ( RefType . DEFINITION , STRING1 ) ;
 + assertRefStringIsUnchanged ( RefType . DEFINITION , STRING2 ) ;
 + assertRefStringIsUnchanged ( RefType . DEFINITION , STRING3 ) ;
 assertRefStringIsUnchanged ( RefType . PARAMETER , STRING4 ) ;
 assertRefStringIsUnchanged ( RefType . PARAMETER , STRING4 ) ;
 assertRefStringIsUnchanged ( RefType . DEFINITION , STRING5 ) ;
 <nb> public class GenericRefTest {
 public void testGetSimpleRef ( ) throws Exception {
 assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING0 ) ;
 assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING1 ) ;
 + assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING2 ) ;
 + assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING3 ) ;
 assertSimpleRefMatchesRef ( RefType . PARAMETER , STRING4 ) ;
 assertSimpleRefMatchesRef ( RefType . PARAMETER , STRING4 ) ;


<nb> public class HttpClientImpl implements HttpClient , HttpResponseCode , java . io . Ser
 write ( out , STRING0 + param . getName ( ) + STRING1 ) ;
 write ( out , STRING2 ) ;
 logger . debug ( param . getValue ( ) ) ;
 - out . write ( encode ( param . getValue ( ) ) . getBytes ( STRING3 ) ) ;
 + SINGLE
 + out . write ( param . getValue ( ) . getBytes ( STRING3 ) ) ;
 write ( out , STRING4 ) ;
 }
 }

TwitterClientImpl sends urlencoded text plain params


<nb> public class ServerBindings extends AbstractModule {
 bind ( MessageGateway . class ) . to ( MessageGatewayImpl . class ) ;
 bind ( SecurityContextFactory . class ) . to ( ShiroSecurityContextFactory . class ) ;
 bind ( AlertSender . class ) . to ( FormattedEmailAlertSender . class ) ;
 + bind ( StreamRouter . class ) ;
 }

 private MongoConnection getMongoConnection ( ) {
 <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 ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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


<nb> import static NAMESPACE ;
 public class OMatchStatementTest {

 protected SimpleNode checkRightSyntax ( String query ) {
 - return checkSyntax ( query , true ) ;
 + SimpleNode result = checkSyntax ( query , true ) ;
 + return checkSyntax ( result . toString ( ) , true ) ;
 }

 protected SimpleNode checkWrongSyntax ( String query ) {


<nb> public class ConvolutionLayer implements Layer {
 INDArray ret = Nd4j . create ( Ints . concat ( new int [ ] { input . slices ( ) , currentFeatureMaps } , conf . getFeatureMapSize ( ) ) ) ;
 INDArray bias = getParam ( ConvolutionParamInitializer . CONVOLUTION_BIAS ) ;
 INDArray filters = getParam ( ConvolutionParamInitializer . CONVOLUTION_WEIGHTS ) ;
 -
 + if ( conf . getDropOut ( ) > NUMBER0 && conf . isUseDropConnect ( ) ) {
 + filters = filters . mul ( Nd4j . getDistributions ( ) . createBinomial ( NUMBER1 , conf . getDropOut ( ) ) . sample ( filters . shape ( ) ) ) ;
 + }
 +
 for ( int i = NUMBER0 ; i < currentFeatureMaps ; i ++ ) {
 INDArray featureMap = Nd4j . create ( Ints . concat ( new int [ ] { input . slices ( ) , NUMBER1 } , conf . getFeatureMapSize ( ) ) ) ;
 for ( int j = NUMBER0 ; j < inputChannels ; j ++ ) {


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

 <nb> public final class Connection {
 SINGLE
 if ( ! route . address . hostnameVerifier . verify ( route . address . uriHost , sslSocket . getSession ( ) ) ) {
 X509Certificate cert = ( X509Certificate ) sslSocket . getSession ( ) . getPeerCertificates ( ) [ NUMBER0 ] ;
 - throw new IOException ( STRING0 + route . address . uriHost + STRING1
 + throw new SSLPeerUnverifiedException ( STRING0 + route . address . uriHost + STRING1
 + STRING2 + CertificatePinner . pin ( cert )
 + STRING3 + cert . getSubjectDN ( ) . getName ( )
 + STRING4 + OkHostnameVerifier . allSubjectAltNames ( cert ) ) ;

Throw SSLPeerUnverifiedException when host verification fails instead of IOException


<nb> public abstract class HystrixCommand < R > extends AbstractCommand < R > implements Hy
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove incorrect reference to async timeout


<nb> public class ReaderPostListFragment extends Fragment

 @ override
 public FilterCriteria onRecallSelection ( ) {
 - return mCurrentTag ;
 + if ( hasCurrentTag ( ) ) {
 + return getCurrentTag ( ) ;
 + } else {
 + AppLog . w ( T . READER , STRING0 ) ;
 + return ReaderTag . getDefaultTag ( ) ;
 + }
 }

 @ override

Handle no current tag in onRecallSelection


<nb> public class OIndexChangesWrapper implements OIndexCursor {
 protected final OIndexCursor delegate ;
 protected final long indexVersion ;

 + public OIndexChangesWrapper ( OIndex < ? > source , OIndexCursor delegate ) {
 + this . source = source ;
 + this . delegate = delegate ;
 +
 + indexVersion = source . getRebuildVersion ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class OIndexChangesWrapper implements OIndexCursor {
 return new OIndexChangesWrapper ( source , cursor ) ;
 }

 - public OIndexChangesWrapper ( OIndex < ? > source , OIndexCursor delegate ) {
 - this . source = source ;
 - this . delegate = delegate ;
 -
 - indexVersion = source . getRebuildVersion ( ) ;
 + @ override
 + public void remove ( ) {
 + throw new UnsupportedOperationException ( STRING0 ) ;
 }

 COMMENT


<nb> public final class ResXmlEncoders {
 }

 public static String encodeAsXmlValue ( String str ) {
 - if ( str . isEmpty ( ) ) {
 + if ( str == null || str . isEmpty ( ) ) {
 return str ;
 }


<nb> public class CountWithFilterSqlBenchmark
 {
 public CountWithFilterSqlBenchmark ( )
 {
 - super ( STRING0 , NUMBER0 , NUMBER1 , STRING1 ) ;
 + super ( STRING0 , NUMBER0 , NUMBER1 , STRING2 ) ;
 }

 public static void main ( String [ ] args )

Actually use a filter in query benchmark


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class EduAnswerPlaceholderPainter {
 +
 + SINGLE
 + public static final int PLACEHOLDERS_LAYER = NUMBER0 ;
 +
 private EduAnswerPlaceholderPainter ( ) {

 }
 <nb> public class EduAnswerPlaceholderPainter {
 int highlighterLength = useLength ? length : replacementLength ;
 final int endOffset = startOffset + highlighterLength ;
 RangeHighlighter
 - highlighter = editor . getMarkupModel ( ) . addRangeHighlighter ( startOffset , endOffset , HighlighterLayer . LAST + NUMBER1 ,
 + highlighter = editor . getMarkupModel ( ) . addRangeHighlighter ( startOffset , endOffset , PLACEHOLDERS_LAYER ,
 textAttributes , HighlighterTargetArea . EXACT_RANGE ) ;
 highlighter . setCustomRenderer ( new CustomHighlighterRenderer ( ) {
 @ override

changed placeholders highlighting level to make selection visible


<nb> public abstract class AsyncProvidersBasicTest extends AbstractBasicTest {
 } ) . get ( ) ;
 Assert . fail ( ) ;
 } catch ( Throwable ex ) {
 + ex . printStackTrace ( ) ;
 System . out . println ( STRING0 + ( System . currentTimeMillis ( ) - t1 ) ) ;
 Assert . assertNotNull ( ex . getCause ( ) ) ;
 Assert . assertEquals ( ex . getCause ( ) . getMessage ( ) , STRING1 ) ;


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


<nb> public class PlanGenerator {
 || mode == TraverseMode . STL ) {
 itinerary . waitingTime += dt ;
 } else if ( mode . isOnStreetNonTransit ( ) ) {
 - itinerary . walkDistance += backEdge . getDistance ( ) ;
 itinerary . walkTime += dt ;
 } else if ( mode . isTransit ( ) ) {
 itinerary . transitTime += dt ;
 <nb> public class PlanGenerator {
 itinerary . startTime = makeCalendar ( startState ) ;
 itinerary . endTime = makeCalendar ( endState ) ;
 itinerary . duration = endState . getTimeInMillis ( ) - startState . getTimeInMillis ( ) ;
 + itinerary . walkDistance = path . getWalkDistance ( ) ;

 Graph graph = path . getRoutingContext ( ) . graph ;
 FareService fareService = graph . getService ( FareService . class ) ;


<nb> public class LockClaim {
 }

 public StaticBuffer getLockCol ( long ts , byte [ ] rid ) {
 - if ( null != lockCol ) return lockCol ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + SINGLE

 WriteBuffer b = new WriteByteBuffer ( rid . length + NUMBER0 ) ;
 b . putLong ( ts ) ;


<nb> import NAMESPACE ;

 import static NAMESPACE ;

 - public class HyperLogLogOperators
 + public final class HyperLogLogOperators
 {
 private HyperLogLogOperators ( )
 {


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

 import NAMESPACE ;
 <nb> public class BytecodeViewer {

 COMMENT
 public static Refactorer refactorer = new Refactorer ( ) ;
 + public static List < String > main_classes = new ArrayList < > ( ) ;
 COMMENT

 COMMENT
 <nb> public class RenameClasses extends JavaObfuscator {
 System . out . println ( STRING0 ) ;
 classLoop: for ( ClassNode c : BytecodeViewer . getLoadedClasses ( ) ) {

 + COMMENT
 + for ( String name : BytecodeViewer . main_classes ) {
 + if ( name . equals ( c . name ) )
 + continue classLoop ;
 + }
 +
 COMMENT
 for ( Object o : c . methods ) {
 MethodNode m = ( MethodNode ) o ;


<nb>
 SINGLE
 package NAMESPACE ;

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

 <nb> public class ExperimentalEventHandler extends BlazeCommandEventHandler {
 SINGLE
 }

 + @ subscribe
 + public void loadingComplete ( LoadingPhaseCompleteEvent event ) {
 + try {
 + terminal . textGreen ( ) ;
 + terminal . writeString ( STRING0 ) ;
 + terminal . resetTerminal ( ) ;
 + terminal . writeString ( STRING1 + event . getTargets ( ) . size ( ) + STRING2 ) ;
 + } catch ( IOException e ) {
 + LOG . warning ( STRING3 + e ) ;
 + }
 + }
 +
 public void resetTerminal ( ) {
 try {
 terminal . resetTerminal ( ) ;

Report the completion of the loading Phase


<nb> public class TesterWsCloseClient {
 private void readUpgradeResponse ( ) throws IOException {
 BufferedReader in = new BufferedReader ( new InputStreamReader (
 socket . getInputStream ( ) ) ) ;
 - while ( ! in . readLine ( ) . isEmpty ( ) ) {
 -
 + String line = in . readLine ( ) ;
 + while ( line != null && ! line . isEmpty ( ) ) {
 + line = in . readLine ( ) ;
 }
 }

 <nb> public class TesterWsCloseClient {
 socket . close ( ) ;
 }

 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void forceCloseSocket ( ) throws IOException {

Fix one FindBugs and one Javadoc warning


<nb> public abstract class AbstractDatabase implements Database {
 String literals = enumType . getLiterals ( ) ;

 try {
 + @ suppresswarnings ( STRING0 )
 CSVReader reader = new CSVReader ( new StringReader ( literals ) ) ;
 e . addLiterals ( reader . readNext ( ) ) ;
 } catch ( IOException ignore ) { }


<nb> public class Utils {
 COMMENT
 public static boolean hasXpass ( Context context ) {
 SINGLE
 + SINGLE
 return ( BuildConfig . DEBUG || hasUnlockKeyInstalled ( context ) ) ;
 }

 <nb> public class Utils {
 final File [ ] files = path . listFiles ( ) ;
 if ( files != null ) {
 for ( File file : files ) {
 + SINGLE
 file . delete ( ) ;
 }
 }
 <nb> public class Utils {
 if ( AndroidUtils . isJellyBeanOrHigher ( ) ) {
 imageView . setImageAlpha ( NUMBER0 ) ;
 } else {
 + SINGLE
 imageView . setAlpha ( NUMBER0 ) ;
 }


<nb> public final class Constants {
 public static final String MESOS_RESOURCE_DISK = STRING0 ;
 public static final String MESOS_RESOURCE_PORTS = STRING1 ;

 + public static final int SECOND_NANO = NUMBER0 ;
 public static final int SECOND_MS = NUMBER1 ;
 public static final int MINUTE_MS = SECOND_MS * NUMBER2 ;
 public static final int HOUR_MS = MINUTE_MS * NUMBER2 ;


<nb> public class GLM2 extends Job . ModelJobWithoutClassificationField {

 private void run ( final double ymu , final long nobs , LMAXTask lmaxt ) {
 String [ ] warns = null ;
 - if ( ! lambda_search || ! strong_rules_enabled && _dinfo . fullN ( ) > MAX_PREDICTORS )
 + if ( ( ! lambda_search || ! strong_rules_enabled ) && ( _dinfo . fullN ( ) > MAX_PREDICTORS ) )
 throw new IllegalArgumentException ( STRING0 + MAX_PREDICTORS + STRING1 + _dinfo . fullN ( ) + STRING2 ) ;
 if ( lambda_search ) {
 max_iter = Math . max ( NUMBER0 , max_iter ) ;

Fixed condition missing parenthesis when checking for too many predictors in GLM2


<nb> public class TraversalRequirements {
 return false ;
 }
 }
 - return e . getPermission ( ) . allows ( modes ) ;
 + return e . canTraverse ( modes ) ;
 }

 COMMENT

TraversalRequirements now uses canTraverse


<nb> public abstract class BaseReplaceScriptTestCase extends TestCase {
 SINGLE
 SINGLE
 options . setInferTypes ( true ) ;
 - options . setIdeMode ( true ) ;
 + options . setAllowHotswapReplaceScript ( true ) ;
 + options . setPreserveDetailedSourceInfo ( true ) ;
 + options . setChecksOnly ( true ) ;
 + options . setContinueAfterErrors ( true ) ;
 +
 for ( DiagnosticGroup group : typesOfGuard ) {
 options . setWarningLevel ( group , CheckLevel . ERROR ) ;
 }

Remove more calls to CompilerOptions setIdeMode


<nb> public class ProjectSettingsStepBase extends AbstractActionWithPanel implements
 getTemplatePresentation ( ) . setIcon ( projectGenerator . getLogo ( ) ) ;
 getTemplatePresentation ( ) . setText ( projectGenerator . getName ( ) ) ;
 myProjectGenerator = projectGenerator ;
 + if ( projectGenerator instanceof WebProjectTemplate ) {
 + ( ( WebProjectTemplate ) projectGenerator ) . reset ( ) ;
 + }
 myCallback = callback ;
 myProjectDirectory = findSequentNonExistingUntitled ( ) ;
 }

create new instance of GeneratorPeer to avoid sharing Swing components ideally Swing components should be garbage collected on dialog closing