<nb> public final class BufferUtils {

 private static final Map < Buffer , Object > trackingHash = Collections . synchronizedMap ( new WeakHashMap < Buffer , Object > ( ) ) ;
 private static final Object ref = new Object ( ) ;
 - private static final boolean trackDirectMemory = true ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + private static final boolean trackDirectMemory = false ;

 COMMENT
 COMMENT

Turning the memory tracking off since it s pretty expensive


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

Added javadoc for itemMapping and dropdownMapping


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HTML5VideoView implements MediaPlayer . OnPreparedListener {
 protected boolean mAutostart ;

 SINGLE
 - protected String mUri ;
 + protected Uri mUri ;
 protected Map < String , String > mHeaders ;

 SINGLE
 <nb> public class HTML5VideoView implements MediaPlayer . OnPreparedListener {

 public void setVideoURI ( String uri , HTML5VideoViewProxy proxy ) {
 SINGLE
 - mUri = uri ;
 + mUri = Uri . parse ( uri ) ;
 mHeaders = generateHeaders ( uri , proxy ) ;
 }

 <nb> public class HTML5VideoView implements MediaPlayer . OnPreparedListener {
 SINGLE
 SINGLE
 try {
 - mPlayer . setDataSource ( mUri , mHeaders ) ;
 + mPlayer . setDataSource ( mProxy . getContext ( ) , mUri , mHeaders ) ;
 mPlayer . prepareAsync ( ) ;
 } catch ( IllegalArgumentException e ) {
 e . printStackTrace ( ) ;


<nb> class SipSessionGroup implements SipListener {
 case Response . UNAUTHORIZED :
 case Response . PROXY_AUTHENTICATION_REQUIRED :
 if ( ! handleAuthentication ( event ) ) {
 - Log . v ( TAG , STRING0 ) ;
 - onRegistrationFailed ( SipErrorCode . INVALID_CREDENTIALS ,
 - STRING1 ) ;
 + if ( mLastNonce == null ) {
 + onRegistrationFailed ( SipErrorCode . SERVER_ERROR ,
 + STRING2 ) ;
 + } else {
 + Log . v ( TAG , STRING0 ) ;
 + onRegistrationFailed (
 + SipErrorCode . INVALID_CREDENTIALS ,
 + STRING1 ) ;
 + }
 }
 return true ;
 default :
 <nb> class SipSessionGroup implements SipListener {
 case Response . PROXY_AUTHENTICATION_REQUIRED :
 if ( handleAuthentication ( event ) ) {
 addSipSession ( this ) ;
 + } else if ( mLastNonce == null ) {
 + endCallOnError ( SipErrorCode . SERVER_ERROR ,
 + STRING2 ) ;
 } else {
 endCallOnError ( SipErrorCode . INVALID_CREDENTIALS ,
 STRING1 ) ;

send SERVER_ERROR if server doesn t provide nonce


<nb> public class DumbServiceImpl extends DumbService implements Disposable {
 public void run ( ) {
 runWhenSmart ( runnable ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return runnable . toString ( ) ;
 + }
 } , myProject . getDisposed ( ) ) ;
 }


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public enum RemoteConnectionType {
 COMMENT
 NONE ;

 + private static final Logger LOG = Logger . getInstance ( RemoteConnectionType . class ) ;
 +
 public static RemoteConnectionType findByName ( String name ) {
 try {
 return valueOf ( name ) ;
 }
 catch ( Exception e ) {
 + LOG . error ( STRING0 + name , e ) ;
 return NONE ;
 }
 }


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

 public abstract class InsertBaseTest extends AbstractBaseTest {
 <nb> public abstract class InsertBaseTest extends AbstractBaseTest {
 public void Insert_With_Keys_Projected ( ) throws SQLException {
 assertNotNull ( insert ( survey ) . set ( survey . name , STRING0 ) . executeWithKey ( survey . id ) ) ;
 }
 +
 + @ test
 + @ excludein ( { Target . HSQLDB , Target . DERBY , Target . POSTGRES } )
 + public void Insert_With_Keys_Projected2 ( ) throws SQLException {
 + Path < Object > idPath = new PathImpl < Object > ( Object . class , STRING1 ) ;
 + Object id = insert ( survey ) . set ( survey . name , STRING0 ) . executeWithKey ( idPath ) ;
 + assertNotNull ( id ) ;
 + }

 @ test
 public void Insert_Null_With_Columns ( ) {


<nb>

 package NAMESPACE ;

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

 - import NAMESPACE ;
 + import NAMESPACE ;

 public class DrawingCacheHolder {


<nb> import NAMESPACE ;
 public class PCAModelV3 extends ModelSchema < PCAModel , PCAModelV3 , PCAModel . PCAParameters , PCAV3 . PCAParametersV3 , PCAModel . PCAOutput , PCAModelV3 . PCAModelOutputV3 > {
 public static final class PCAModelOutputV3 extends ModelOutputSchema < PCAModel . PCAOutput , PCAModelOutputV3 > {
 SINGLE
 + SINGLE
 + @ api ( help = STRING0 )
 + public double [ ] std_deviation ;
 +
 @ api ( help = STRING1 )
 public TwoDimTableBase pc_importance ;


<nb> public class GTFSPatternHopFactory {
 _log . warn ( STRING0 + trip . getId ( )
 + STRING1 ) ;

 + simple = true ;
 createSimpleHops ( graph , trip , stopTimes ) ;

 } else {
 <nb> public class GTFSPatternHopFactory {
 addTripToInterliningMap ( tripsByBlockAndStart , trip , stopTimes , tripPattern ,
 blockId ) ;
 }
 + tripPattern . setTripFlags ( insertionPoint , ( trip . getWheelchairAccessible ( ) != NUMBER0 ) ? TripPattern . FLAG_WHEELCHAIR_ACCESSIBLE : NUMBER0 ) ;
 }
 - tripPattern . setTripFlags ( insertionPoint , ( trip . getWheelchairAccessible ( ) != NUMBER0 ) ? TripPattern . FLAG_WHEELCHAIR_ACCESSIBLE : NUMBER0 ) ;
 }
 }

set flags properly in the cases of simple hops


<nb> public class OutputMappers
 {
 return asList ( userClass . getDeclaredFields ( ) ) . stream ( )
 . filter ( ( f ) - > ! isStatic ( f . getModifiers ( ) ) &&
 - ! isSynthetic ( f . getModifiers ( ) ) )
 + ! f . isSynthetic ( ) )
 . collect ( toList ( ) ) ;
 }
 -
 - private static boolean isSynthetic ( int modifiers )
 - {
 - return ( modifiers & NUMBER0 ) != NUMBER1 ;
 - }
 }

Use built in isSynthetic instead of reimplementing it


<nb> public final class ServiceManager {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class ServiceManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public boolean isHealthy ( ) {
 - boolean result = true ;
 for ( Service service : services . keySet ( ) ) {
 if ( ! service . isRunning ( ) ) {
 - State state = service . state ( ) ;
 - if ( state == State . FAILED ) {
 - logger . log ( Level . SEVERE , STRING0 + service + STRING1 , service . failureCause ( ) ) ;
 - } else {
 - logger . severe ( STRING2 + service + STRING3 + state ) ;
 - }
 - result = false ;
 + return false ;
 }
 }
 - return result ;
 + return true ;
 }

 COMMENT

Remove logging from ServiceManager isHealthy


<nb> public abstract class GroovyCompilerTestCase extends JavaCodeInsightFixtureTestC
 file . setBinaryContent ( file . contentsToByteArray ( ) , file . getModificationStamp ( ) + NUMBER0 , file . getTimeStamp ( ) + NUMBER0 ) ;
 File ioFile = VfsUtil . virtualToIoFile ( file ) ;
 assert ioFile . setLastModified ( ioFile . lastModified ( ) - NUMBER1 ) ;
 + file . refresh ( false , false ) ;
 }

 protected static void setFileText ( final PsiFile file , final String barText ) throws IOException {


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class OSProcessUtil {
 private static final Logger LOG = Logger . getInstance ( OSProcessUtil . class ) ;


<nb> public class IdeErrorMessages {

 MAP . put ( MANY_IMPL_MEMBER_NOT_IMPLEMENTED , STRING0 ,
 RENDER_CLASS_OR_OBJECT , DescriptorRenderer . HTML ) ;
 + MAP . put ( CONFLICTING_OVERLOADS , STRING1 , DescriptorRenderer . HTML , TO_STRING ) ;

 MAP . setImmutable ( ) ;
 }

Added IDE error messages for CONFLICTING_OVERLOADS


<nb> public class TestVoiceActivity extends SherlockActivity {
 addButton ( ll , STRING0 , builder ( p ) . arrivedAtWayPoint ( STRING1 ) ) ;
 addButton ( ll , STRING2 , builder ( p ) . offRoute ( NUMBER0 ) ) ;
 addButton ( ll , STRING3 , builder ( p ) . speedAlarm ( ) ) ;
 - addButton ( ll , STRING4 , builder ( p ) . attention ( STRING5 ) ) ;
 + addButton ( ll , STRING6 , builder ( p ) . attention ( STRING7 ) ) ;
 ll . forceLayout ( ) ;
 }

remove obvious sped cam reference from test button


<nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark
 private Cache cache ;
 private static byte [ ] randBytes ;

 + @ param ( { STRING0 } ) String hosts ;
 +
 SINGLE
 @ param ( { STRING1 , STRING2 , STRING3 , STRING4 } ) int objectSize ;
 @ param ( { STRING5 , STRING6 } ) int objectCount ;
 <nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark
 SINGLE
 transcoder . setCompressionThreshold ( Integer . MAX_VALUE ) ;

 + System . out . println ( String . format ( STRING7 , hosts ) ) ;
 +
 client = new MemcachedClient (
 new ConnectionFactoryBuilder ( ) . setProtocol ( ConnectionFactoryBuilder . Protocol . BINARY )
 . setHashAlg ( DefaultHashAlgorithm . FNV1A_64_HASH )
 <nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark
 . setTranscoder ( transcoder )
 . setShouldOptimize ( true )
 . build ( ) ,
 - AddrUtil . getAddresses ( System . getProperty ( STRING8 , STRING0 ) )
 + AddrUtil . getAddresses ( hosts )
 ) ;

 broker = new MemcachedCacheBroker (


<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 FormAuthenticator
 uriCC . setLimit ( - NUMBER0 ) ;
 String contextPath = request . getContextPath ( ) ;
 String requestURI = request . getDecodedRequestURI ( ) ;
 - response . setContext ( request . getContext ( ) ) ;

 SINGLE
 boolean loginAction =
 <nb> public class FormAuthenticator
 COMMENT
 COMMENT
 COMMENT
 - protected boolean restoreRequest ( Request request , Session session )
 - throws IOException {
 + protected boolean restoreRequest ( Request request , Session session ) {

 SINGLE
 SavedRequest saved = ( SavedRequest )


<nb> public class Dialog implements DialogInterface , Window . Callback ,
 }

 private void dismissDialog ( ) {
 - if ( mDecor == null || ! mShowing || mDecor . getWindowToken ( ) == null ) {
 + if ( mDecor == null || ! mShowing ) {
 return ;
 }

Dismiss a dialog if dimissed right after calling show


<nb> public class SelfSignedSSLCertsManager {
 }
 try {
 createLocalKeyStoreFile ( ) ;
 - localKeyStore = KeyStore . getInstance ( STRING0 ) ;
 } catch ( GeneralSecurityException e ) {
 + AppLog . e ( T . API , STRING1 , e ) ;
 } catch ( IOException e ) {
 + AppLog . e ( T . API , STRING1 , e ) ;
 }
 }

Fix an issue where Keystore was not properly restarted on sign out


<nb> public class BrowserUtil {

 private static List < String > getOpenBrowserWinCommand ( @ nullable String browserPath ) {
 ArrayList < String > command = new ArrayList < String > ( ) ;
 - command . add ( ! SystemInfo . isWin2kOrNewer ? STRING0 : STRING1 ) ;
 + command . add ( SystemInfo . isWin2kOrNewer ? STRING0 : STRING1 ) ;
 command . add ( STRING2 ) ;
 command . add ( STRING3 ) ;
 command . add ( STRING4 ) ;


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


<nb> public class VertexBuffer extends NativeObject implements Savable , Cloneable {
 SINGLE

 this . usage = usage ;
 + this . setUpdateNeeded ( ) ;
 }

 COMMENT


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public abstract class Script extends GroovyObjectSupport {
 try {
 object = getProperty ( STRING0 ) ;
 } catch ( MissingPropertyException e ) {
 - System . out . print ( value ) ;
 + DefaultGroovyMethods . print ( System . out , value ) ;
 return ;
 }

 <nb> public abstract class Script extends GroovyObjectSupport {
 try {
 object = getProperty ( STRING0 ) ;
 } catch ( MissingPropertyException e ) {
 - System . out . println ( value ) ;
 + DefaultGroovyMethods . println ( System . out , value ) ;
 return ;
 }

corrects println and print implementation for Scripts to use the DefaultGroovyMethods method instead of directly printing to System out


<nb> public enum ExceptionMessage {
 NO_RPC_HANDLER ( STRING0 ) ,
 UNEXPECTED_RPC_RESPONSE ( STRING1 ) ,
 WRITER_ALREADY_OPEN ( STRING2 ) ,
 - UNDER_FILE_WRITE_ERROR ( STRING3 ) ,
 + UNDER_FILE_WRITE_ERROR ( STRING4 ) ,

 SINGLE
 ADD_EXISTING_BLOCK ( STRING5 ) ,


<nb>

 package NAMESPACE ;

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

 COMMENT


<nb> public class ClosureCodingConvention extends DefaultCodingConvention {
 } else if ( callNode . getChildCount ( ) == NUMBER0 ) {
 SINGLE
 subclass = callName . getNext ( ) ;
 + } else {
 + return null ;
 }

 if ( type == SubclassType . MIXIN ) {
 <nb> public class ClosureCodingConventionTest extends TestCase {
 assertNotClassDefining ( STRING0 ) ;
 }

 + public void testInheritanceDetection14 ( ) {
 + assertNotClassDefining ( STRING1 ) ;
 + }
 +
 public void testInheritanceDetectionPostCollapseProperties ( ) {
 assertDefinesClasses ( STRING2 , STRING3 , STRING4 ) ;
 assertNotClassDefining ( STRING5 ) ;


<nb> import NAMESPACE ;

 public interface Scanner {
 Set < Class < ? > > classes ( ) ;
 + boolean getPrettyPrint ( ) ;
 + void setPrettyPrint ( boolean shouldPrettyPrint ) ;
 }


<nb> public class MethodLibrary {
 name = STRING0 ,
 objectType = MutableList . class ,
 returnType = Runtime . NoneType . class ,
 - documented = false ,
 doc = STRING1 ,
 mandatoryPositionals = {
 @ param ( name = STRING2 , type = MutableList . class , doc = STRING3 ) ,
 <nb> public class MethodLibrary {
 name = STRING4 ,
 objectType = MutableList . class ,
 returnType = Runtime . NoneType . class ,
 - documented = false ,
 doc = STRING5 ,
 mandatoryPositionals = {
 @ param ( name = STRING2 , type = MutableList . class , doc = STRING3 ) ,

Add list append and list extend to the documentation


<nb> class JPASubsystemAdd implements ModelAddOperationHandler , BootOperationHandler
 updateContext . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_PERSISTENCE_UNIT , new PersistenceUnitParseProcessor ( ) ) ;
 updateContext . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_PERSISTENCE_ANNOTATION , new JPAAnnotationParseProcessor ( ) ) ;
 updateContext . addDeploymentProcessor ( Phase . DEPENDENCIES , Phase . DEPENDENCIES_JPA , new JPADependencyProcessor ( ) ) ;
 - updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENCE_PROVIDER , new PersistenceProviderProcessor ( ) ) ;
 + SINGLE
 updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENCE_REF , new PersistenceRefProcessor ( ) ) ;
 updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENTUNIT , new PersistenceUnitDeploymentProcessor ( ) ) ;
 }

disable TLD persistence provider need to move that to a branch or finish it


<nb> import static NAMESPACE ;
 @ jsonsubtypes.type ( value = TableCommitNode . class , name = STRING0 ) ,
 @ jsonsubtypes.type ( value = UnnestNode . class , name = STRING1 ) ,
 @ jsonsubtypes.type ( value = ExchangeNode . class , name = STRING2 ) ,
 + @ jsonsubtypes.type ( value = UnionNode . class , name = STRING3 ) ,
 } )
 public abstract class PlanNode
 {

Add missing json serialization for UnionNode


<nb> public class KafkaUtils {
 public static final Logger LOG = LoggerFactory . getLogger ( KafkaUtils . class ) ;
 private static final int NO_OFFSET = - NUMBER0 ;

 + SINGLE
 + private KafkaUtils ( ) {
 + throw new AssertionError ( ) ;
 + }

 public static IBrokerReader makeBrokerReader ( Map stormConf , KafkaConfig conf ) {
 if ( conf . hosts instanceof StaticHosts ) {


<nb> public class ShadowPreference {
 protected Context context ;
 protected AttributeSet attrs ;
 protected int defStyle ;
 - protected boolean shouldPersist = true ;
 + protected boolean shouldPersist = false ;
 protected int persistedInt ;

 public void __constructor__ ( Context context , AttributeSet attrs , int defStyle ) {

Assuming Preference shouldPersist defaults to false


<nb> public class PGL {
 fboLayerCreated = false ;
 fboLayerInUse = false ;
 firstFrame = false ;
 + GLProfile . shutdown ( ) ;
 }

Added manual GLProfile shutdown to make sure that no JOGL threads are


<nb> public class Pixmap implements Disposable {
 COMMENT
 COMMENT
 public int getPixel ( int x , int y ) {
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 return NUMBER0 ;
 }

fixed Pixmap getPixel won t work for a while


<nb> public final class ConcatenateStrategy implements CustomMergeStrategy {
 private byte lastByteCopied = STRING0 ;
 private final boolean appendNewLine ;

 - ConcatenateStrategy ( ) {
 + public ConcatenateStrategy ( ) {
 this ( true ) ;
 }

 <nb> public final class ConcatenateStrategy implements CustomMergeStrategy {
 COMMENT
 COMMENT
 COMMENT
 - ConcatenateStrategy ( boolean appendNewLine ) {
 + public ConcatenateStrategy ( boolean appendNewLine ) {
 this . appendNewLine = appendNewLine ;
 }

Change constructor of ConcatenateStrategy to public for better extensibility


<nb> public class QuerySpaceTreePrinter {
 + StringHelper . join ( STRING0 , collectionReferenceAliases . getCollectionColumnAliases ( ) . getSuffixedKeyAliases ( ) )
 + STRING1
 ) ;
 - final EntityAliases elementAliases = collectionReferenceAliases . getEntityElementAliases ( ) . getColumnAliases ( ) ;
 + final EntityAliases elementAliases =
 + collectionReferenceAliases . getEntityElementAliases ( ) == null ?
 + null :
 + collectionReferenceAliases . getEntityElementAliases ( ) . getColumnAliases ( ) ;
 if ( elementAliases != null ) {
 printWriter . println (
 TreePrinterHelper . INSTANCE . generateNodePrefix ( depth + detailDepthOffset )

Move load plan implementations from spi to internal


<nb> public class TransitionManager {
 sPendingTransitions . remove ( sceneRoot ) ;

 final ArrayList < Transition > runningTransitions = getRunningTransitions ( ) . get ( sceneRoot ) ;
 - if ( runningTransitions != null ) {
 - final int count = runningTransitions . size ( ) ;
 - for ( int i = NUMBER0 ; i < count ; i ++ ) {
 - final Transition transition = runningTransitions . get ( i ) ;
 + if ( runningTransitions != null && ! runningTransitions . isEmpty ( ) ) {
 + SINGLE
 + ArrayList < Transition > copy = new ArrayList ( runningTransitions ) ;
 + for ( int i = copy . size ( ) - NUMBER1 ; i >= NUMBER0 ; i -- ) {
 + final Transition transition = copy . get ( i ) ;
 transition . end ( ) ;
 }
 }

Fix endTransition index out of bounds exception


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class InternalDecorator extends JPanel implements Queryable , DataPr

 private final class ToggleContentUiTypeAction extends ToggleAction implements DumbAware {
 -
 - boolean seenSeveralContents ;
 + private boolean myHadSeveralContents ;

 private ToggleContentUiTypeAction ( ) {
 copyFrom ( ActionManager . getInstance ( ) . getAction ( TOGGLE_CONTENT_UI_TYPE_ACTION_ID ) ) ;
 <nb> public final class InternalDecorator extends JPanel implements Queryable , DataPr

 @ override
 public void update ( @ notnull AnActionEvent e ) {
 - seenSeveralContents = seenSeveralContents || myToolWindow . getContentManager ( ) . getContentCount ( ) > NUMBER0 ;
 + myHadSeveralContents = myHadSeveralContents || myToolWindow . getContentManager ( ) . getContentCount ( ) > NUMBER0 ;
 super . update ( e ) ;
 - e . getPresentation ( ) . setVisible ( seenSeveralContents ) ;
 + e . getPresentation ( ) . setVisible ( myHadSeveralContents ) ;
 }

 @ override

rename field according project code style and reformat


<nb> import static NAMESPACE

 public final class AllSimpleTypesTableDefinitions
 {
 + SINGLE
 +
 private AllSimpleTypesTableDefinitions ( )
 {
 }

Add TODO in AllSimpleTypesTableDefinitions


<nb> public final class SpeedLayer < K , M , U > extends AbstractSparkLayer < K , M > {
 new Thread ( new LoggingRunnable ( ) {
 @ override
 public void doRun ( ) throws IOException {
 - modelManager . consume ( transformed , streamingContext . sc ( ) . hadoopConfiguration ( ) ) ;
 + modelManager . consume ( transformed , streamingContext . sparkContext ( ) . hadoopConfiguration ( ) ) ;
 }
 } , STRING0 ) . start ( ) ;


<nb> public class BooleanSubscription implements Subscription {

 @ override
 public void unsubscribe ( ) {
 - unsubscribed . set ( false ) ;
 + unsubscribed . set ( true ) ;
 }

 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class MediaDriver


<nb> public class ResourceAdaptersExtension implements Extension {
 POOL_FLUSH_STRATEGY . marshallAsElement ( conDef , streamWriter ) ;

 SAME_RM_OVERRIDE . marshallAsElement ( conDef , streamWriter ) ;
 - if ( conDef . get ( INTERLEAVING . getName ( ) ) . asBoolean ( ) ) {
 + if ( conDef . hasDefined ( INTERLEAVING . getName ( ) ) && conDef . get ( INTERLEAVING . getName ( ) ) . asBoolean ( ) ) {
 streamWriter . writeEmptyElement ( INTERLEAVING . getXmlName ( ) ) ;
 } else {
 INTERLEAVING . marshallAsElement ( conDef , streamWriter ) ;
 }
 - if ( conDef . get ( NOTXSEPARATEPOOL . getName ( ) ) . asBoolean ( ) ) {
 + if ( conDef . hasDefined ( NOTXSEPARATEPOOL . getName ( ) ) && conDef . get ( NOTXSEPARATEPOOL . getName ( ) ) . asBoolean ( ) ) {
 streamWriter . writeEmptyElement ( NOTXSEPARATEPOOL . getXmlName ( ) ) ;
 } else {
 NOTXSEPARATEPOOL . marshallAsElement ( conDef , streamWriter ) ;

Only write interleaving no tx separate pool if defined


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

 + import NAMESPACE ;
 +
 public class AdditionalMediaType {
 public final static String TEXT_CSV = STRING0 ;
 + public final static MediaType TEXT_CSV_TYPE = new MediaType ( STRING1 , STRING2 ) ;
 }


<nb> public class ReaderDatabase extends SQLiteOpenHelper {
 @ override
 public void onOpen ( SQLiteDatabase db ) {
 super . onOpen ( db ) ;
 - copyDatabase ( db ) ;
 + SINGLE
 }

 COMMENT


<nb> public class ExecuteResource
 throw internalServerError ( failureMessage ( client . finalResults ( ) ) ) ;
 }

 + @ suppresswarnings ( STRING0 )
 private static < T > Iterator < T > flatten ( Iterator < Iterable < T > > iterator )
 {
 - return concat ( transform ( iterator , Iterable : : iterator ) ) ;
 + SINGLE
 + return concat ( transform ( iterator , Iterable < T > : : iterator ) ) ;
 }

 private static class ResultsPageIterator

Fix Eclipse compiler TypeConversion error


<nb> public class UserWebViewTest extends ActivityInstrumentationTestCase2 < userwebvie
 assertNotNull ( testView ) ;
 }

 - public void customTest ( )
 + public void testCustom ( )
 {
 assertTrue ( CordovaWebView . class . isInstance ( testView ) ) ;
 assertTrue ( CordovaWebViewClient . class . isInstance ( testActivity . testViewClient ) ) ;

changes the test name to make it auto run


<nb> public class StreamingJsonBuilder extends GroovyObjectSupport {
 writeName ( name ) ;
 verifyValue ( ) ;
 if ( json instanceof GString ) {
 - writer . write ( JsonOutput . toJson ( json . toString ( ) ) ) ;
 + writer . write ( generator . toJson ( json . toString ( ) ) ) ;
 }
 else {
 json . writeTo ( writer ) ;

Fix StreamingJsonBuilder new method should use generator


<nb> public enum ExceptionMessage {

 SINGLE
 DESTINATION_FILE_CANNOT_EXIST_WITH_WILDCARD_SOURCE (
 - STRING0 +
 - STRING1 ) ,
 + STRING0
 + + STRING1 ) ,

 SINGLE
 DELETE_LINEAGE_WITH_CHILDREN ( STRING2 ) ,


<nb> public abstract class DocumentCommitProcessor {
 }
 }

 + SINGLE
 @ nullable ( STRING0 )
 - Processor < Document > doCommit ( @ notnull final CommitTask task ,
 + public Processor < Document > doCommit ( @ notnull final CommitTask task ,
 @ notnull final PsiFile file ,
 final boolean synchronously ) {
 Document document = task . document ;


<nb> public class HttpRequest {
 COMMENT
 public static class HttpRequestException extends RuntimeException {

 - COMMENT
 private static final long serialVersionUID = - NUMBER0 ;

 COMMENT

Remove comment on private serialization constant


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class BlockLock implements ReadWriteLock {
 public enum BlockLockType {
 - READ , SINGLE
 - WRITE , SINGLE
 + READ ( NUMBER0 ) , SINGLE
 + WRITE ( NUMBER1 ) ; SINGLE
 +
 + private final int mValue ;
 +
 + BlockLockType ( int value ) {
 + mValue = value ;
 + }
 +
 + public int getValue ( ) {
 + return mValue ;
 + }
 }

 private final ReentrantReadWriteLock mLock ;

Make BlockLockType convertible from and to int


<nb> public class ZWaveController {

 SINGLE
 try {
 - logger . debug ( STRING0 , lastSentMessage . getMessageNode ( ) ) ;
 if ( ! transactionCompleted . tryAcquire ( NUMBER0 , zWaveResponseTimeout , TimeUnit . MILLISECONDS ) ) {
 - logger . debug ( STRING1 , lastSentMessage . getMessageNode ( ) ) ;
 timeOutCount . incrementAndGet ( ) ;
 SINGLE
 SINGLE


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class NanoProtoInputStream extends InputStream implements KnownLength {
 + class NanoProtoInputStream extends InputStream implements KnownLength {

 SINGLE
 SINGLE

Make NanoProtoInputStream package private


<nb> public abstract class ExtendableListView extends AbsListView {
 mPerformClick = new PerformClick ( ) ;
 }
 final int motionPosition = mMotionPosition ;
 - if ( ! mDataChanged && mAdapter . isEnabled ( motionPosition ) ) {
 + if ( ! mDataChanged && motionPosition > NUMBER0 && mAdapter . isEnabled ( motionPosition ) ) {
 final PerformClick performClick = mPerformClick ;
 performClick . mClickMotionPosition = motionPosition ;
 performClick . rememberWindowAttachCount ( ) ;

Check motion position before passing into adapter


<nb> public class JUnitStep extends ShellStep {
 try {
 context . getProcessExecutor ( ) . launchAndExecute (
 COMMENT
 - . addCommand ( jstack . get ( ) . toString ( ) , STRING0 , STRING1 , pid . get ( ) . toString ( ) )
 + . addCommand ( jstack . get ( ) . toString ( ) , STRING1 , pid . get ( ) . toString ( ) )
 . setEnvironment ( context . getEnvironment ( ) )
 . build ( ) ,
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WordPress extends MultiDexApplication {

 SINGLE
 WPActivityUtils . applyLocale ( getContext ( ) ) ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + AppCompatDelegate . setCompatVectorFromResourcesEnabled ( true ) ;
 }

 private void initAnalytics ( final long elapsedTimeOnCreate ) {

call setCompatVectorFromResourcesEnabled to enable vectors to be loaded from selectors


<nb> public class BlazeCommandDispatcher {

 BlazeCommand command = commandsByName . get ( commandName ) ;
 if ( command == null ) {
 - outErr . printErrLn ( STRING0 + commandName + STRING1 + STRING2 ) ;
 + outErr . printErrLn ( String . format (
 + STRING3 , commandName , Constants . PRODUCT_NAME ) ) ;
 return ExitCode . COMMAND_LINE_ERROR . getNumericExitCode ( ) ;
 }
 Command commandAnnotation = command . getClass ( ) . getAnnotation ( Command . class ) ;

Fix product name in the error message for invalid commands


<nb> class PFontTexture implements PConstants {
 resize = false ;
 }

 - PTexture . Parameters par = new PTexture . Parameters ( ARGB , BILINEAR ) ;
 - par . wrapU = CLAMP ;
 - par . wrapV = CLAMP ;
 - PTexture tex = new PTexture ( parent , w , h , par ) ;
 + PTexture tex = new PTexture ( parent , w , h , new PTexture . Parameters ( ARGB , BILINEAR ) ) ;

 if ( textures == null ) {
 textures = new PTexture [ NUMBER0 ] ;


<nb> public class UnshelveWithDialogAction extends DumbAwareAction {
 @ nullable Change [ ] preselectedChanges ) {
 super ( project , new UnshelvePatchDefaultExecutor ( project , changeList ) ,
 Collections . emptyList ( ) , ApplyPatchMode . UNSHELVE ,
 - patchFile , null , getPredefinedChangeList ( changeList . DESCRIPTION , ChangeListManager . getInstance ( project ) ) , binaryShelvedPatches ,
 + patchFile , null ,
 + changeList . isMarkedToDelete ( ) ? getPredefinedChangeList ( changeList . DESCRIPTION , ChangeListManager . getInstance ( project ) ) : null ,
 + binaryShelvedPatches ,
 hasNotAllSelectedChanges ( project , changeList , preselectedChanges ) ? newArrayList ( preselectedChanges ) : null ,
 changeList . DESCRIPTION , true ) ;
 }

predefine changelist only for system shelved changelist


<nb> class GetActivityIconTask extends AsyncTask < AppInfo , Void , Drawable > {
 return null ;
 }

 - return ai . loadIcon ( mPackageManager ) ;
 + Drawable unbadgedIcon = ai . loadIcon ( mPackageManager ) ;
 + return mPackageManager . getUserBadgedIcon ( unbadgedIcon , appInfo . getUser ( ) ) ;
 } catch ( RemoteException e ) {
 Slog . w ( TAG , STRING0 + appInfo , e ) ;
 return null ;

Adding briefcase picture to icons for work profile apps


<nb> public class SentimentTraining {

 public static boolean runGradientCheck ( SentimentModel model , List < Tree > trees ) {
 SentimentCostAndGradient gcFunc = new SentimentCostAndGradient ( model , trees ) ;
 - return gcFunc . gradientCheck ( NUMBER0 , NUMBER1 , model . paramsToVector ( ) ) ;
 + return gcFunc . gradientCheck ( model . totalParamSize ( ) , NUMBER1 , model . paramsToVector ( ) ) ;
 }

 public static void attachGoldLabels ( Tree tree ) {
 <nb> public class SentimentTraining {
 SINGLE

 SINGLE
 + System . err . println ( STRING0 + op . randomSeed ) ;
 SentimentModel model = new SentimentModel ( op , trainingTrees ) ;

 SINGLE

Make the gradient check touch every value print out the random seed


<nb> public final class IOConverter {
 StringBuilder sb = new StringBuilder ( NUMBER0 ) ;
 char [ ] buf = new char [ NUMBER0 ] ;
 try {
 - int len = reader . read ( buf ) ;
 - if ( len != - NUMBER1 ) {
 - sb . append ( buf , NUMBER2 , len ) ;
 + int len = NUMBER2 ;
 + SINGLE
 + while ( len != - NUMBER1 ) {
 + len = reader . read ( buf ) ;
 + if ( len != - NUMBER1 ) {
 + sb . append ( buf , NUMBER2 , len ) ;
 + }
 }
 } finally {
 ObjectHelper . close ( reader , STRING0 , LOG ) ;

Fixed bad patch not reading the entire stream


<nb> public class MainCallPanel
 buttonsPanel . add ( callButton ) ;

 this . setOpaque ( false ) ;
 + callViaPanel . setOpaque ( false ) ;
 comboPanel . setOpaque ( false ) ;
 buttonsPanel . setOpaque ( false ) ;
 phoneNumberCombo . setOpaque ( false ) ;


<nb> public class Gossiper implements IFailureDetectionEventListener
 private boolean sendGossip ( MessageProducer prod , Set < InetAddress > epSet )
 {
 int size = epSet . size ( ) ;
 + if ( size < NUMBER0 )
 + return false ;
 COMMENT
 List < InetAddress > liveEndpoints = new ArrayList < InetAddress > ( epSet ) ;
 int index = ( size == NUMBER0 ) ? NUMBER1 : random . nextInt ( size ) ;

Avoid possible race in gossip to unreachable endpoints


<nb> import static NAMESPACE ;
 public class ShadowBundle {
 Map < String , Object > map = new HashMap < String , Object > ( ) ;

 + public void __constructor__ ( Bundle b ) {
 + putAll ( b ) ;
 + }
 +
 @ implementation
 public Object get ( String key ) {
 return map . get ( key ) ;
 <nb> public class BundleTest {
 assertNull ( bundle . getParcelableArray ( STRING0 ) ) ;
 }

 + @ test
 + public void testCopyConstructor ( ) {
 + bundle . putInt ( STRING1 , NUMBER0 ) ;
 + Bundle copiedBundle = new Bundle ( bundle ) ;
 +
 + Assert . assertEquals ( copiedBundle , bundle ) ;
 + }
 +
 private void assertArrayEquals ( double [ ] expected , double [ ] actual ) {
 if ( expected != null && actual == null ) {
 throw new AssertionFailedError ( ) ;


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

 import NAMESPACE ;


<nb> public class IrcStack
 SINGLE
 synchronized ( this . channellist )
 {
 + SINGLE
 + SINGLE
 if ( this . channellist . instance == null )
 {
 Result < List < String > , Exception > listSignal =
 <nb> public class IrcStack
 }
 }
 this . channellist . instance = listSignal . getValue ( ) ;
 + LOGGER . trace ( STRING0 ) ;
 + }
 + else
 + {
 + LOGGER . trace ( STRING1 ) ;
 }
 - LOGGER . trace ( STRING0 ) ;
 return Collections . unmodifiableList ( this . channellist . instance ) ;
 }
 }


<nb> public class ContactRightButtonMenu
 guiContactList . removeExcContactListListener ( this ) ;

 guiContactList . setCursor (
 - Cursor . getPredefinedCursor ( Cursor . MOVE_CURSOR ) ) ;
 + Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ;

 if ( moveAllContacts ) {
 new MoveAllSubcontactsThread ( toMetaContact ) . start ( ) ;

return the hand cursor after the move operation is finished


<nb>
 SINGLE
 SINGLE
 SINGLE
 + SINGLE

 package NAMESPACE ;

 <nb> public class PluginFactory {
 }

 synchronized void setRunningPluginCompleted ( Plugin plugin ) {
 - listRunning . remove ( plugin ) ;
 - listCompleted . add ( plugin ) ;
 - plugin . setTimeFinished ( ) ;
 + if ( listRunning . remove ( plugin ) ) {
 + Plugin completedPlugin = mapAllPlugin . get ( plugin . getId ( ) ) ;
 + listCompleted . add ( completedPlugin ) ;
 + completedPlugin . setTimeFinished ( ) ;
 + }
 }

 boolean isRunning ( Plugin plugin ) {

Set existing Plugin instance as completed


<nb> public class InvocableHandlerMethod extends HandlerMethod {
 COMMENT
 COMMENT
 private Object resolveProvidedArgument ( MethodParameter parameter , Object . . . providedArgs ) {
 - if ( providedArgs == null || parameter . hasParameterAnnotations ( ) ) {
 + if ( providedArgs == null ) {
 return null ;
 }
 for ( Object providedArg : providedArgs ) {

Fix issue with resolution of WebDataBinder argument


<nb> public class JavacTurbine implements AutoCloseable {
 CLASSPATH_JOINER . join ( actualClasspath ) , compileResult . success ( ) ) ;
 }

 - out . println ( compileResult . output ( ) ) ;
 + out . print ( compileResult . output ( ) ) ;
 return result ;
 }


<nb> import NAMESPACE ;
 public abstract class SecurityRealm implements ServerExtension {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public String getName ( ) {
 return getClass ( ) . getSimpleName ( ) ;


<nb>

 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class EEDefaultPermissionsProcessor implements DeploymentUnitProces
 permissions . add ( new JndiPermission ( STRING0 , LOOKUP ) ) ;
 permissions . add ( new JndiPermission ( STRING1 , LOOKUP ) ) ;
 permissions . add ( new JndiPermission ( STRING2 , LOOKUP ) ) ;
 + permissions . add ( new PropertyPermission ( STRING3 , STRING4 ) ) ;
 + permissions . add ( new RuntimePermission ( STRING5 ) ) ;
 + permissions . add ( new RuntimePermission ( STRING6 ) ) ;
 + permissions . add ( new FilePermission ( STRING3 , STRING4 ) ) ;
 + permissions . add ( new FilePermission ( STRING3 , STRING7 ) ) ;
 + permissions . add ( new SocketPermission ( STRING3 , STRING8 ) ) ;
 DEFAULT_PERMISSIONS = permissions ;
 }

Add default permissions required by the spec


<nb> public class ParallelBatchImporter implements BatchImporter

 executionMonitor . done ( currentTimeMillis ( ) - startTime ) ;

 - logger . log ( STRING0 ) ;
 + SINGLE
 + logger . log ( STRING1 ) ;
 }
 catch ( Throwable t )
 {


<nb> public class DocumentStorageService extends IntentService {
 public static void loadDocument ( Context ctxt , Uri document ) {
 Intent i = new Intent ( ctxt , DocumentStorageService . class )
 . setAction ( Intent . ACTION_OPEN_DOCUMENT )
 + . addFlags ( Intent . FLAG_GRANT_READ_URI_PERMISSION )
 . setData ( document ) ;

 ctxt . startService ( i ) ;
 <nb> public class DocumentStorageService extends IntentService {
 Intent i = new Intent ( ctxt , DocumentStorageService . class )
 . setAction ( Intent . ACTION_EDIT )
 . setData ( document )
 + . addFlags ( Intent . FLAG_GRANT_READ_URI_PERMISSION |
 + Intent . FLAG_GRANT_WRITE_URI_PERMISSION )
 . putExtra ( Intent . EXTRA_TEXT , text )
 . putExtra ( EXTRA_CLOSING , isClosing ) ;


<nb> public class GitFileAnnotation implements FileAnnotation {
 COMMENT
 private void fireAnnotationChanged ( ) {
 myListeners . getMulticaster ( ) . onAnnotationChanged ( ) ;
 - LOG . debug ( STRING0 , new Throwable ( ) ) ;
 }

 COMMENT
 <nb> public class GitFileAnnotation implements FileAnnotation {

 private class MyFileStatusListener implements FileStatusListener {
 public void fileStatusesChanged ( ) {
 - checkAndFire ( ) ;
 }

 public void fileStatusChanged ( @ notnull VirtualFile virtualFile ) {


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

 import NAMESPACE ;
 <nb> public final class EncoderTest extends Assert {
 STRING0 +
 STRING1 ) ;
 }
 -
 +
 + @ ignore ( STRING2 )
 @ test
 public void testAztecWriter ( ) throws Exception {
 testWriter ( STRING3 , STRING4 , NUMBER0 , true , NUMBER1 ) ;


<nb> public class UIUtil {
 public static HTMLEditorKit getHTMLEditorKit ( boolean noGapsBetweenParagraphs ) {
 Font font = getLabelFont ( ) ;
 @ nonnls String family = ! SystemInfo . isWindows && font != null ? font . getFamily ( ) : STRING0 ;
 - int size = font != null ? font . getSize ( ) : NUMBER0 ;
 + int size = font != null ? font . getSize ( ) : JBUI . scale ( NUMBER0 ) ;

 String customCss = String . format ( STRING1 , family , size ) ;
 if ( noGapsBetweenParagraphs ) {

add scaling for default font for HTMLEditorKit


<nb> public class JavaPreviewHintProvider implements PreviewHintProvider {
 return file instanceof PsiJavaFile ;
 }

 + @ suppresswarnings ( STRING0 )
 @ override
 public JComponent getPreviewComponent ( @ notnull PsiElement element ) {
 final PsiNewExpression psiNewExpression = PsiTreeUtil . getParentOfType ( element , PsiNewExpression . class ) ;


<nb> public class DefaultCommandLineTool implements CommandLineTool {
 public void run ( ) {
 DefaultCommandLineTool . this . internalExecute ( invocation ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return DefaultCommandLineTool . this . toString ( ) ;
 + }
 } ;
 }

Add better toString to anonymous command line tool runnable


<nb> public class KeyguardViewManager implements KeyguardWindowController {
 lp . softInputMode = WindowManager . LayoutParams . SOFT_INPUT_ADJUST_PAN ;
 lp . windowAnimations = com . android . internal . R . style . Animation_LockScreen ;

 - if ( mContext . getResources ( ) . getBoolean ( R . bool . config_enableLockScreenRotation ) ) {
 - Log . d ( TAG , STRING0 ) ;
 - lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ;
 - } else {
 - Log . d ( TAG , STRING1 ) ;
 - lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ;
 - }
 -
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ;
 lp . setTitle ( STRING2 ) ;
 mWindowLayoutParams = lp ;

Always enable screen rotation in lockscreen


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> public abstract class MultimapBuilder < K0 , V0 > {
 return new MultimapBuilderWithKeys < Object > ( ) {
 @ override
 < K , V > Map < K , Collection < V > > createMap ( ) {
 - return new HashMap < K , Collection < V > > ( expectedKeys ) ;
 + return Maps . newHashMapWithExpectedSize ( expectedKeys ) ;
 }
 } ;
 }
 <nb> public abstract class MultimapBuilder < K0 , V0 > {

 @ override
 public Set < V > get ( ) {
 - return new HashSet < V > ( expectedValuesPerKey ) ;
 + return Sets . newHashSetWithExpectedSize ( expectedValuesPerKey ) ;
 }
 }

 <nb> public abstract class MultimapBuilder < K0 , V0 > {

 @ override
 public Set < V > get ( ) {
 - return new LinkedHashSet < V > ( expectedValuesPerKey ) ;
 + return Sets . newLinkedHashSetWithExpectedSize ( expectedValuesPerKey ) ;
 }
 }

Properly use the expected size factory methods in MultimapBuilder instead of conflating capacity with expected size


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

 COMMENT
 COMMENT
 <nb> public class UimaSentenceIterator extends BaseSentenceIterator {
 protected volatile AnalysisEngine engine ;
 protected volatile Iterator < String > sentences ;
 protected String path ;
 -
 + private static Logger log = LoggerFactory . getLogger ( UimaSentenceIterator . class ) ;

 public UimaSentenceIterator ( SentencePreProcessor preProcessor , String path , AnalysisEngine engine ) {
 super ( preProcessor ) ;
 <nb> public class UimaSentenceIterator extends BaseSentenceIterator {
 CAS cas = engine . newCAS ( ) ;

 synchronized ( reader ) {
 -
 - reader . getNext ( cas ) ;
 + try {
 + reader . getNext ( cas ) ;
 + } catch ( Exception e ) {
 + log . warn ( STRING0 ) ;
 + return STRING1 ;
 + }

 }
 synchronized ( engine ) {


<nb> public class RapidsTest extends TestUtil {
 exec_str ( STRING0 , ses ) ;

 SINGLE
 - exec_str ( STRING1 , ses ) ;
 + exec_str ( STRING2 , ses ) ;

 SINGLE
 - exec_str ( STRING3 , ses ) ;
 + exec_str ( STRING4 , ses ) ;

 SINGLE
 exec_str ( STRING5 , ses ) ;

Added allx ally and method to merge rapids call in testChicago with Eric


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MainActivity extends FragmentActivity {

 tabs . setIndicatorColor ( newColor ) ;

 - Bitmap bmp = Bitmap . createBitmap ( NUMBER0 , NUMBER0 , Config . ARGB_8888 ) ;
 - bmp . setPixel ( NUMBER1 , NUMBER1 , newColor ) ;
 - Drawable colorDrawable = new BitmapDrawable ( getResources ( ) , bmp ) ;
 + Drawable colorDrawable = new ColorDrawable ( newColor ) ;
 Drawable bottomDrawable = getResources ( ) . getDrawable ( R . drawable . actionbar_bottom ) ;
 LayerDrawable ld = new LayerDrawable ( new Drawable [ ] { colorDrawable , bottomDrawable } ) ;

avoid creation of bitmaps in sample project by using ColorDrawable


<nb> package NAMESPACE ;
 # include STRING0
 # include STRING1

 - extern char * * environ ;
 + # if ! TARGET_OS_IPHONE && ! TARGET_OS_SIMULATOR
 + # include < crt_externs . h >
 + # endif
 COMMENT

 import NAMESPACE ;
 <nb> public class System {

 public static native Map < String , String > getenv ( ) COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT ;

Restrict environ use to OS X not supported on iOS use NSGetEnviron to fetch its address


<nb> public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem
 mUsernameEditText . requestFocus ( ) ;
 }

 -
 protected boolean specificShowError ( int messageId ) {
 switch ( getErrorType ( messageId ) ) {
 case USERNAME :
 <nb> public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem
 if ( mErrorMsgId == R . string . update_credentials ) {
 showUsernameError ( mErrorMsgId ) ;
 showPasswordError ( mErrorMsgId ) ;
 + mErrorMsgId = NUMBER0 ;
 endProgress ( ) ;
 return ;
 } else {

reset errorId after displaying an error message


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class HgUtil {
 try {
 final File file = copyResourceToTempFile ( base , STRING0 ) ;
 final String fileName = file . getName ( ) ;
 - Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) {
 - @ override
 + ShutDownTracker . getInstance ( ) . registerShutdownTask ( new Runnable ( ) {
 public void run ( ) {
 File [ ] files = file . getParentFile ( ) . listFiles ( new FilenameFilter ( ) {
 public boolean accept ( File dir , String name ) {

Using ShutdownTracker instead of Runtime addShutdownHook to prevent IllegalStateException


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 <nb> public class TimeSurface implements Serializable {
 id = makeUniqueId ( ) ;
 dateTime = req . fromTime ; SINGLE
 routerId = profileRouter . graph . routerId ;
 + cutoffMinutes = NUMBER0 ; SINGLE
 }

 public static TimeSurface . RangeSet makeSurfaces ( AnalystProfileRouterPrototype profileRouter ) {

set cutoffMinutes to arbitrary value for RAPTOR output


<nb> public class BuckBuildLog {

 public void assertNotTargetBuiltLocally ( String buildTargetRaw ) {
 BuildLogEntry logEntry = getLogEntry ( buildTargetRaw ) ;
 - assertNotEquals ( BuildRuleSuccessType . BUILT_LOCALLY , logEntry . successType . get ( ) ) ;
 + assertNotEquals (
 + String . format (
 + STRING0 , buildTargetRaw ) ,
 + BuildRuleSuccessType . BUILT_LOCALLY ,
 + logEntry . successType . get ( ) ) ;
 }

 public void assertTargetIsAbsent ( String buildTargetRaw ) {

Improve error message for BuckBuildLog assertNotTargetBuiltLocally


<nb> public class JavaSourceProcessor extends BaseSourceProcessor {
 STRING0 + fileName + STRING1 + lineCount ) ;
 }
 }
 + else if ( trimmedLine . endsWith ( StringPool . COMMA ) &&
 + ! trimmedLine . startsWith ( STRING2 ) ) {
 +
 + int closeParenthesisCount = StringUtil . count (
 + strippedQuotesLine , StringPool . CLOSE_PARENTHESIS ) ;
 + int openParenthesisCount = StringUtil . count (
 + strippedQuotesLine , StringPool . OPEN_PARENTHESIS ) ;
 +
 + if ( closeParenthesisCount < openParenthesisCount ) {
 + processErrorMessage (
 + fileName ,
 + STRING0 + fileName + STRING1 + lineCount ) ;
 + }
 + }

 if ( line . contains ( StringPool . COMMA ) &&
 ! line . contains ( StringPool . CLOSE_PARENTHESIS ) &&

SourceFormatter catch incorrect line breaks


<nb> public class TextEditingTarget implements
 }

 @ handler
 + void onInsertChunk ( )
 + {
 + onInsertChunkR ( ) ;
 + }
 +
 + @ handler
 void onInsertChunkR ( )
 {
 onInsertChunk ( STRING0 ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C
 label . setIcon ( EMPTY_ICON ) ;
 panel . add ( label , BorderLayout . WEST ) ;
 panel . add ( new JBLabel ( STRING0 ) , BorderLayout . EAST ) ;
 + if ( ! isSelected ) {
 + panel . setBackground ( LightColors . SLIGHTLY_GRAY ) ;
 + }
 } else if ( value instanceof String ) {
 final JBLabel label = new JBLabel ( ( String ) value ) ;
 label . setIcon ( EMPTY_ICON ) ;


<nb> public class SingleResultFuture < T > implements MongoFuture < T > {
 }

 if ( isDone ( ) ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 + if ( newException != null ) {
 + throw new IllegalStateException ( STRING1 + result ,
 + newException ) ;
 + } else {
 + throw new IllegalStateException ( STRING2 + newResult ) ;
 + }
 }

 if ( newResult != null && newException != null ) {
 <nb> public class SingleResultFutureTest {
 }
 }

 - @ test ( expected = IllegalArgumentException . class )
 + @ test ( expected = IllegalStateException . class )
 public void testInitFailure ( ) {
 SingleResultFuture < Integer > future = new SingleResultFuture < Integer > ( ) ;
 future . init ( NUMBER0 , null ) ;

Beefing up error checking in SingleResultFuture


<nb> public class CallPeerMediaHandlerSipImpl
 this . setCallInfoURL ( SdpUtils . getCallInfoURL ( offer ) ) ;

 boolean atLeastOneValidDescription = false ;
 + boolean rejectedAvpOfferDueToSavpRequired = false ;

 List < MediaType > seenMediaTypes = new ArrayList < MediaType > ( ) ;
 for ( MediaDescription mediaDescription : remoteDescriptions )
 <nb> public class CallPeerMediaHandlerSipImpl
 == ProtocolProviderFactory . SAVP_MANDATORY
 && transportProtocol . equals ( SdpConstants . RTP_AVP ) )
 {
 + rejectedAvpOfferDueToSavpRequired = true ;
 continue ;
 }

 <nb> public class CallPeerMediaHandlerSipImpl
 atLeastOneValidDescription = true ;
 }

 + if ( rejectedAvpOfferDueToSavpRequired && ! atLeastOneValidDescription )
 + throw new OperationFailedException ( STRING0
 + + STRING1
 + + STRING2 ,
 + OperationFailedException . ILLEGAL_ARGUMENT ) ;
 +
 if ( ! atLeastOneValidDescription )
 throw new OperationFailedException ( STRING0
 + STRING3 ,

Throw distinct error when RTP AVP is rejected because of RTP SAVP required


<nb> public class RedissonMapTest extends BaseTest {

 @ test
 public void testValueSize ( ) {
 + Assume . assumeTrue ( RedisRunner . getDefaultRedisServerInstance ( ) . getRedisVersion ( ) . compareTo ( STRING0 ) > NUMBER0 ) ;
 RMap < String , String > map = redisson . getMap ( STRING1 ) ;
 map . put ( STRING2 , STRING3 ) ;
 assertThat ( map . valueSize ( STRING4 ) ) . isZero ( ) ;

Check redis version before testValueSize


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 public class MysqlStorageEngineTest extends AbstractStorageEngineTest {
 <nb> public class MysqlStorageEngineTest extends AbstractStorageEngineTest {

 public void testOpenNonExistantStoreCreatesTable ( ) throws SQLException {
 String newStore = TestUtils . randomLetters ( NUMBER0 ) ;
 - MysqlStorageEngine engine = new MysqlStorageEngine ( newStore , getDataSource ( ) ) ;
 + COMMENT
 + new MysqlStorageEngine ( newStore , getDataSource ( ) ) ;
 DataSource ds = getDataSource ( ) ;
 executeQuery ( ds , STRING0 + newStore + STRING1 ) ;
 executeQuery ( ds , STRING2 + newStore ) ;

Remove unused variable engine and add comment to indicate that MysqlStorageEngine is created for side effect


<nb> public class DefaultIvyArtifact implements IvyArtifact {
 public TaskDependency getBuildDependencies ( ) {
 return buildDependencies ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return String . format ( STRING0 , getClass ( ) . getSimpleName ( ) , getName ( ) , getType ( ) , getExtension ( ) , getClassifier ( ) ) ;
 + }
 }
 <nb> public class DefaultMavenArtifact implements MavenArtifact {
 public TaskDependency getBuildDependencies ( ) {
 return buildDependencies ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return String . format ( STRING1 , getClass ( ) . getSimpleName ( ) , getExtension ( ) , getClassifier ( ) ) ;
 + }
 }

Added toString representations to assist with debugging


<nb> public abstract class KeyInputQueue {
 mLast = new QueuedEvent ( ) ;
 mFirst . next = mLast ;
 mLast . prev = mFirst ;
 + }

 + void start ( ) {
 mThread . start ( ) ;
 }

 <nb> public class WindowManagerService extends IWindowManager . Stub
 }

 mInputThread . start ( ) ;
 + mQueue . start ( ) ;

 SINGLE
 Watchdog . getInstance ( ) . addMonitor ( this ) ;

Fix that InputDeviceReaderThread that got killed during startup


<nb> public abstract class Editor extends JFrame implements RunnerListener {
 } else if ( result == JOptionPane . NO_OPTION ) {
 return true ; SINGLE

 - } else if ( result == JOptionPane . CANCEL_OPTION ) {
 + } else if ( result == JOptionPane . CANCEL_OPTION ||
 + result == JOptionPane . CLOSED_OPTION ) {
 return false ;

 } else {


<nb> public class HeadsUpTouchHelper implements Gefingerpoken {
 mInitialTouchY = y ;
 mInitialTouchX = x ;
 setTrackingHeadsUp ( false ) ;
 - ExpandableView child = mStackScroller . getChildAtPosition ( x , y ) ;
 + ExpandableView child = mStackScroller . getChildAtRawPosition ( x , y ) ;
 mTouchingHeadsUpView = false ;
 if ( child instanceof ExpandableNotificationRow ) {
 mPickedChild = ( ExpandableNotificationRow ) child ;

Fixed a bug that the user could not drag down on the heads up


<nb> public final class BlockMasterSync implements Runnable {
 public void registerWithMaster ( ) {
 BlockStoreMeta storeMeta = mBlockDataManager . getStoreMeta ( ) ;
 try {
 - mWorkerId =
 - mMasterClient . register ( mWorkerId , storeMeta . getCapacityBytesOnTiers ( ) ,
 - storeMeta . getUsedBytesOnTiers ( ) , storeMeta . getBlockList ( ) ) ;
 + SINGLE
 + setWorkerId ( ) ;
 + SINGLE
 + mMasterClient . register ( mWorkerId , storeMeta . getCapacityBytesOnTiers ( ) ,
 + storeMeta . getUsedBytesOnTiers ( ) , storeMeta . getBlockList ( ) ) ;
 } catch ( IOException ioe ) {
 throw new RuntimeException ( STRING0 , ioe ) ;
 }

Get worker ID first when re register to master


<nb> public interface PluginManager {
 COMMENT
 COMMENT
 public Set < Permissible > getDefaultPermSubscriptions ( boolean op ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Set < Permission > getPermissions ( ) ;
 }
 <nb> public final class SimplePluginManager implements PluginManager {
 return ImmutableSet . copyOf ( map . keySet ( ) ) ;
 }
 }
 +
 + public Set < Permission > getPermissions ( ) {
 + return new HashSet < Permission > ( permissions . values ( ) ) ;
 + }
 }

Added method to retrieve all registered permissions


<nb> public class ComputationGraph implements Serializable , Model {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public INDArray outputSingle ( INDArray . . . input ) {
 + return outputSingle ( false , input ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ComputationGraph implements Serializable , Model {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public INDArray outputSingle ( boolean train , INDArray . . . input ) {
 + if ( numOutputArrays != NUMBER0 ) {
 + throw new IllegalStateException ( STRING0 + numOutputArrays ) ;
 + }
 + return output ( train , input ) [ NUMBER1 ] ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add ComputationGraph outputSingle convenience methods


<nb> public class CucumberMojo extends AbstractJRubyMojo {
 protected boolean installGems = false ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean skip ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CucumberMojo extends AbstractJRubyMojo {
 }
 }

 + if ( skip ) {
 + getLog ( ) . info ( STRING0 ) ;
 + return ;
 + }
 +
 CucumberTask cucumber = cucumber ( allCucumberArgs ( ) ) ;
 try {
 cucumber . execute ( ) ;

Implement skip configuration element for maven plugin with default value of maven test skip


<nb> public abstract class Executor {
 public abstract String getHelpId ( ) ;

 public String getStartActionText ( String configurationName ) {
 - return getStartActionText ( ) + STRING0 + StringUtil . first ( configurationName , NUMBER0 , true ) + STRING1 ;
 + return getStartActionText ( ) + ( StringUtil . isEmpty ( configurationName ) ? STRING2 : STRING0 + StringUtil . first ( configurationName , NUMBER0 , true ) + STRING1 ) ;
 }
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;

 <nb> public interface SequenceFormat extends Serializable {
 COMMENT
 COMMENT
 COMMENT
 - Writable key ( Tuple tuple ) ;
 + Object key ( Tuple tuple ) ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - Writable value ( Tuple tuple ) ;
 + Object value ( Tuple tuple ) ;
 }

Added support for serialization to SequenceFileBolt


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


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

Fix Javadoc for PredicatePushDown class Andrew Sears via Ashutosh Chauhan


<nb> public class BatchStoreMutator extends BufferStoreMutator {
 super . flush ( ) ;
 int waitTimeMS = NUMBER0 ;
 while ( runningWorkers . get ( ) > NUMBER1 ) {
 - log . debug ( STRING0 , waitTimeMS ) ;
 + log . debug ( STRING1 , runningWorkers . get ( ) , waitTimeMS ) ;
 + waitTimeMS *= NUMBER2 ;
 try {
 Thread . sleep ( waitTimeMS ) ;
 } catch ( InterruptedException e ) {


<nb> public class StateData {
 private boolean created = false ;

 private Editor ( ) {
 -
 + extensions = new HashMap < Object , Object > ( ) ;
 }

 private Editor ( StateData state ) {

Fix bug where we don t properly instantiate extensions map on initial state creation


<nb> public abstract class Pair < T1 , T2 >
 @ override
 public T1 first ( )
 {
 - return first ( ) ;
 + return first ;
 }

 @ override


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
 SINGLE
 String path = file . getPath ( ) ;
 int index = path . lastIndexOf ( CLASSES_FOLDER ) ;
 - path = path . substring ( NUMBER0 , index ) + RESOURCES_FOLDER
 - + path . substring ( index + CLASSES_FOLDER . length ( ) ) ;
 - file = new File ( path ) ;
 + if ( index >= NUMBER0 ) {
 + path = path . substring ( NUMBER0 , index ) + RESOURCES_FOLDER
 + + path . substring ( index + CLASSES_FOLDER . length ( ) ) ;
 + file = new File ( path ) ;
 + }
 }
 return ( file . exists ( ) ? new FileInputStream ( file ) : fileObject . toUri ( ) . toURL ( )
 . openStream ( ) ) ;

Remove incorrect assumption that output will be in folder named classes


<nb> public class PatternTestTools {
 SINGLE
 SINGLE
 SINGLE
 - if ( exception . getString ( ) . indexOf ( STRING0 ) >= NUMBER0
 - && exception . getString ( ) . matches ( STRING1 ) ) {
 + if ( exception . getString ( ) . indexOf ( STRING0 ) >= NUMBER0 ) {
 final String [ ] alt = exception . getString ( ) . split ( STRING2 ) ;
 for ( final String part : alt ) {
 + if ( exception . getString ( ) . indexOf ( STRING3 ) >= NUMBER0 ) {
 + break ;
 + }
 if ( part . matches ( STRING4 ) ) {
 if ( ! part . matches ( STRING5 + element . getString ( ) ) ) {
 System . err . println ( STRING6 + lang . toString ( ) + STRING7

Improved detection of invalid exceptions and speed up avoiding


<nb> public class LinkedList < E > extends AbstractSequentialList < E > implements

 final LinkedList < ET > list ;

 - Link < ET > link , lastLink ;
 + @ weak Link < ET > link , lastLink ;

 LinkIterator ( LinkedList < ET > object , int location ) {
 list = object ;

Makes link references weak in the LinkedList iterator to improve performance


<nb> public final class RPCBlockReadRequest extends RPCRequest {
 @ override
 public String toString ( ) {
 return Objects . toStringHelper ( this ) . add ( STRING0 , mBlockId ) . add ( STRING1 , mOffset )
 - . add ( STRING2 , mLength ) . add ( STRING3 , mLockId ) . add ( STRING4 , mSessionId ) . toString ( ) ;
 + . add ( STRING5 , mLength ) . add ( STRING3 , mLockId ) . add ( STRING4 , mSessionId ) . toString ( ) ;
 }

 COMMENT
 <nb> public final class RPCBlockWriteRequest extends RPCRequest {
 @ override
 public String toString ( ) {
 return Objects . toStringHelper ( this ) . add ( STRING0 , mBlockId ) . add ( STRING1 , mOffset )
 - . add ( STRING2 , mLength ) . add ( STRING4 , mSessionId ) . toString ( ) ;
 + . add ( STRING5 , mLength ) . add ( STRING4 , mSessionId ) . toString ( ) ;
 }

 COMMENT


<nb> public class ActionBarView extends AbsActionBarView {
 R . bool . abc_action_bar_expanded_action_views_exclusive ) ) ;
 configPresenters ( builder ) ;
 menuView = ( ActionMenuView ) mActionMenuPresenter . getMenuView ( this ) ;
 + menuView . initialize ( builder ) ;
 final ViewGroup oldParent = ( ViewGroup ) menuView . getParent ( ) ;
 if ( oldParent != null && oldParent != this ) {
 oldParent . removeView ( menuView ) ;

Fix Fragments with Sub Menus not working


<nb> public final class InputMethodManager {
 static final int MSG_SEND_INPUT_EVENT = NUMBER0 ;
 static final int MSG_TIMEOUT_INPUT_EVENT = NUMBER1 ;
 static final int MSG_FLUSH_INPUT_EVENT = NUMBER2 ;
 - static final int SET_CURSOR_ANCHOR_MONITOR_MODE = NUMBER3 ;
 + static final int MSG_SET_CURSOR_ANCHOR_MONITOR_MODE = NUMBER3 ;

 class H extends Handler {
 H ( Looper looper ) {
 <nb> public final class InputMethodManager {
 finishedInputEvent ( msg . arg1 , false , false ) ;
 return ;
 }
 - case SET_CURSOR_ANCHOR_MONITOR_MODE : {
 + case MSG_SET_CURSOR_ANCHOR_MONITOR_MODE : {
 synchronized ( mH ) {
 mCursorAnchorMonitorMode = msg . arg1 ;
 SINGLE
 <nb> public final class InputMethodManager {

 @ override
 public void setCursorAnchorMonitorMode ( int monitorMode ) {
 - mH . sendMessage ( mH . obtainMessage ( SET_CURSOR_ANCHOR_MONITOR_MODE , monitorMode , NUMBER4 ) ) ;
 + mH . sendMessage ( mH . obtainMessage ( MSG_SET_CURSOR_ANCHOR_MONITOR_MODE , monitorMode , NUMBER4 ) ) ;
 }
 } ;

Naming style fix for an internal constant


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

 import NAMESPACE ;

 <nb> public class Switch extends CompoundButton {
 }
 }

 + @ override
 + public void onPopulateAccessibilityEvent ( AccessibilityEvent event ) {
 + super . onPopulateAccessibilityEvent ( event ) ;
 + Layout switchText = getTargetCheckedState ( ) ? mOnLayout : mOffLayout ;
 + event . getText ( ) . add ( switchText . getText ( ) ) ;
 + }
 +
 private Layout makeLayout ( CharSequence text ) {
 return new StaticLayout ( text , mTextPaint ,
 ( int ) Math . ceil ( Layout . getDesiredWidth ( text , mTextPaint ) ) ,

Switch state text not added to accessibility events


<nb> public class UserTokenDao implements Dao {
 public Map < String , Integer > countTokensByLogins ( DbSession dbSession , List < String > logins ) {
 Map < String , Integer > result = new HashMap < > ( logins . size ( ) ) ;
 executeLargeInputs (
 - logins ,
 - input - > {
 - List < UserTokenCount > userTokenCounts = mapper ( dbSession ) . countTokensByLogins ( input ) ;
 - for ( UserTokenCount userTokenCount : userTokenCounts ) {
 - result . put ( userTokenCount . getLogin ( ) , userTokenCount . tokenCount ( ) ) ;
 - }
 - return userTokenCounts ;
 - } ) ;
 + logins ,
 + input - > {
 + List < UserTokenCount > userTokenCounts = mapper ( dbSession ) . countTokensByLogins ( input ) ;
 + for ( UserTokenCount userTokenCount : userTokenCounts ) {
 + result . put ( userTokenCount . getLogin ( ) , userTokenCount . tokenCount ( ) ) ;
 + }
 + return userTokenCounts ;
 + } ) ;

 return result ;
 }


<nb> public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
 int port = currentMissionInit ( ) . getMinecraftServerConnection ( ) . getPort ( ) ;
 String targetIP = address + STRING0 + port ;
 System . out . println ( STRING1 + targetIP ) ;
 - SINGLE
 - SINGLE
 - net . minecraftforge . fml . client . FMLClientHandler . instance ( ) . connectToServerAtStartup ( address , port ) ;
 + if ( Minecraft . getMinecraft ( ) . getCurrentServerData ( ) == null || ! Minecraft . getMinecraft ( ) . getCurrentServerData ( ) . serverIP . equals ( targetIP ) )
 + {
 + net . minecraftforge . fml . client . FMLClientHandler . instance ( ) . connectToServerAtStartup ( address , port ) ;
 + }
 }
 }

Optimisation don t rejoin server if already in the correct one


<nb> public class CatalystInstance {
 SINGLE
 SINGLE
 mNativeModuleCallExceptionHandler . handleException ( e ) ;
 - mCatalystQueueConfiguration . getUIQueueThread ( ) . runOnQueue (
 - new Runnable ( ) {
 - @ override
 - public void run ( ) {
 - destroy ( ) ;
 - }
 - } ) ;
 }
 }

do not destroy instance when handling exception


<nb> public class Label extends Widget {

 public float getPrefHeight ( ) {
 if ( prefSizeInvalid ) scaleAndComputePrefSize ( ) ;
 - float height = prefSize . y - style . font . getDescent ( ) * NUMBER0 ;
 + float height = prefSize . y - style . font . getDescent ( ) * fontScaleY * NUMBER0 ;
 Drawable background = style . background ;
 if ( background != null ) height += background . getTopHeight ( ) + background . getBottomHeight ( ) ;
 return height ;


<nb> final class AlluxioFuseFileSystem extends FuseStubFS {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 LoadingCache < String , AlluxioURI > getPathResolverCache ( ) {
 return mPathResolverCache ;
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 private class PathCacheLoader extends CacheLoader < String , AlluxioURI > {
 @ override
 <nb> public class AlluxioFramework {
 String taskId = status . getTaskId ( ) . getValue ( ) ;
 Protos . TaskState state = status . getState ( ) ;
 System . out . printf ( STRING0 , taskId , state ) ;
 - SINGLE
 + SINGLE
 SINGLE
 SINGLE
 SINGLE
 <nb> public final class Client {
 private Options mOptions ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public Client ( ) {
 mOptions = new Options ( ) ;


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

 <nb> public class ClientPasswordAuthenticationProvider implements AuthenticationProvi
 public Authentication authenticate ( Authentication authentication ) throws AuthenticationException {
 ClientPasswordAuthenticationToken auth = ( ClientPasswordAuthenticationToken ) authentication ;
 Authentication clientAuth = getAuthenticationManager ( ) . authenticate ( auth . getClientAuthentication ( ) ) ;
 - Authentication userAuth = getAuthenticationManager ( ) . authenticate ( auth . getUserAuthentication ( ) ) ;
 + Authentication userAuth ;
 + try {
 + userAuth = getAuthenticationManager ( ) . authenticate ( auth . getUserAuthentication ( ) ) ;
 + }
 + catch ( BadCredentialsException e ) {
 + throw new InvalidClientException ( STRING0 , e ) ;
 + }
 return new OAuth2Authentication ( clientAuth , userAuth ) ;
 }

invalid user creds should throw appropriate oauth exception


<nb> public class Clicker {
 if ( buttonToClick != null ) {
 clickOnScreen ( buttonToClick ) ;
 } else if ( scroller . scrollDown ( ) ) {
 + SINGLE
 clickOnButton ( nameRegex ) ;
 } else {
 for ( int i = NUMBER0 ; i < buttons . size ( ) ; i ++ )


<nb> public class OSMWay extends OSMWithTags {
 _nodes . add ( nodeRef ) ;
 }

 + public void addNodeRef ( long nodeRef , int index ) {
 + _nodes . add ( index , nodeRef ) ;
 + }
 +
 public List < Long > getNodeRefs ( ) {
 return _nodes ;
 }


<nb> public class PyCallExpressionHelper {
 }

 private static boolean isQualifiedByInstance ( Callable resolved , List < PyExpression > qualifiers , TypeEvalContext context ) {
 - PyDocStringOwner owner = PsiTreeUtil . getParentOfType ( resolved , PyDocStringOwner . class ) ;
 + PyDocStringOwner owner = PsiTreeUtil . getStubOrPsiParentOfType ( resolved , PyDocStringOwner . class ) ;
 if ( ! ( owner instanceof PyClass ) ) {
 return false ;
 }


<nb> public class ProtocolChannelClient < T extends ProtocolChannel > implements Closeab
 }

 public static final class Configuration < T extends ProtocolChannel > {
 - private static final long DEFAULT_CONNECT_TIMEOUT = NUMBER0 ;
 + private static final long DEFAULT_CONNECT_TIMEOUT = NUMBER1 ;

 private static final AtomicInteger COUNTER = new AtomicInteger ( ) ;
 private Endpoint endpoint ;


<nb> public class ConnectivityService extends IConnectivityManager . Stub {

 private ConnectivityService ( Context context ) {
 if ( DBG ) Log . v ( TAG , STRING0 ) ;
 +
 + SINGLE
 + String id = Settings . Secure . getString ( context . getContentResolver ( ) ,
 + Settings . Secure . ANDROID_ID ) ;
 + if ( id != null && id . length ( ) > NUMBER0 ) {
 + String name = new String ( STRING1 ) . concat ( id ) ;
 + SystemProperties . set ( STRING2 , name ) ;
 + }
 +
 mContext = context ;
 mNetTrackers = new NetworkStateTracker [
 ConnectivityManager . MAX_NETWORK_TYPE + NUMBER1 ] ;

Set net hostname sys property to our unique ID


<nb> public class ClassCompiler {

 createLookupFunction ( method ) ;
 }
 - if ( method . isStatic ( ) ) {
 + if ( method . isStatic ( ) && ! method . isPrivate ( ) && ! name . equals ( STRING0 ) ) {
 String fnName = method . isSynchronized ( )
 ? Symbols . synchronizedWrapperSymbol ( method )
 : Symbols . methodSymbol ( method ) ;

Don t generate clinit wrappers for private static methods


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

 import NAMESPACE ;

merging Tree and SimpleTree accept and select methods


<nb> public class AccountStatusPanel
 = new TransparentPanel ( new BorderLayout ( ) ) ;

 new PluginContainer (
 - new TransparentPanel ( new BorderLayout ( ) ) ,
 + southPluginPanel ,
 Container . CONTAINER_ACCOUNT_SOUTH ) ;

 this . add ( southPluginPanel , BorderLayout . SOUTH ) ;

Fix account panel south plugin container


<nb> public class CommitLogArchiver
 {
 segment . waitForFinalSync ( ) ;
 String command = archiveCommand . replace ( STRING0 , segment . getName ( ) ) ;
 + SINGLE
 + if ( FBUtilities . isWindows ( ) )
 + archiveCommand . replace ( STRING1 , File . separatorChar ) ;
 command = command . replace ( STRING2 , segment . getPath ( ) ) ;
 exec ( command ) ;
 }

Remove incorrect file separator in CommitLogArchiver on Windows


<nb> public class TestNGTestClassProcessor implements TestClassProcessor {
 try {
 JavaReflectionUtil . method ( TestNG . class , void . class , STRING0 , boolean . class ) . invoke ( testNg , options . getGroupByInstances ( ) ) ;
 } catch ( NoSuchMethodException e ) {
 - if ( options . getPreserveOrder ( ) ) {
 + if ( options . getGroupByInstances ( ) ) {
 throw e ;
 }
 }

Fixed error handling for explicit setting of groupByInstances option when underlying TestNG does not support it


<nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe
 canvas . save ( ) ;
 canvas . clipRect ( mClippingRect ) ;
 canvas . translate ( getPaddingLeft ( ) , top ) ;
 + canvas . saveLayerAlpha ( NUMBER0 , NUMBER0 , canvas . getWidth ( ) , canvas . getHeight ( ) , ( int ) ( NUMBER1 * ( float ) mHeaderBottomPosition / headerHeight ) , Canvas . HAS_ALPHA_LAYER_SAVE_FLAG ) ;
 mStickiedHeader . draw ( canvas ) ;
 canvas . restore ( ) ;
 }

Fade header out as it scrolls off the screen


<nb> public class ColorUtils {
 COMMENT
 COMMENT
 public static final int calculateYiqLuma ( int color ) {
 - return Math . round ( ( NUMBER0 * Color . red ( color ) + NUMBER1 * Color . green ( color ) + NUMBER2 * Color . green ( color ) ) / NUMBER3 f ) ;
 + return Math . round ( (
 + NUMBER0 * Color . red ( color ) +
 + NUMBER1 * Color . green ( color ) +
 + NUMBER2 * Color . blue ( color ) )
 + / NUMBER3 f ) ;
 }

 COMMENT


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HeatmapTileProvider implements TileProvider {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 static double [ ] generateKernel ( int radius , double sd ) {


<nb> public class MediaProxyService extends BasicModule implements ServerItemsProvide
 public static final String NAMESPACE = STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public MediaProxyService ( ) {
 super ( STRING1 ) ;
 <nb> public class MediaProxyService extends BasicModule implements ServerItemsProvide
 String hostname = JiveGlobals . getProperty ( STRING2 ,
 JiveGlobals . getProperty ( STRING3 , STRING4 ) ) ;
 mediaProxy = new MediaProxy ( hostname ) ;
 - serviceName = JiveGlobals . getProperty ( STRING5 , name ) ;
 + serviceName = JiveGlobals . getProperty ( STRING6 , name ) ;
 serviceName = serviceName == null ? name : serviceName . equals ( STRING7 ) ? name : serviceName ;

 routingTable = server . getRoutingTable ( ) ;


<nb> public class RootLoaderRef extends MatchingTask {
 if ( list [ i ] . matches ( STRING0 ) ) {
 continue ;
 }
 + if ( list [ i ] . matches ( STRING1 ) ) {
 + continue ;
 + }
 lc . addFile ( list [ i ] ) ;
 }
 return new RootLoader ( lc ) ;

removes the xerces parser from the given classpath


<nb> public class BottomBar extends LinearLayout implements View . OnClickListener , Vie
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 private void updateTitleBottomPadding ( ) {
 if ( tabContainer == null ) {
 return ;


<nb> public class Requirements {
 public static void sendSupportInfo ( final String text , final ActivityBase context ) {
 Util . log ( null , Log . WARN , text ) ;

 - if ( Util . hasValidFingerPrint ( context ) && ! STRING0 . equals ( System . getenv ( STRING1 ) )
 - && ! STRING2 . equals ( Build . PRODUCT ) ) {
 + if ( Util . hasValidFingerPrint ( context ) && ! STRING0 . equals ( System . getenv ( STRING1 ) ) ) {
 AlertDialog . Builder alertDialogBuilder = new AlertDialog . Builder ( context ) ;
 alertDialogBuilder . setTitle ( R . string . app_name ) ;
 alertDialogBuilder . setMessage ( R . string . msg_support_info ) ;

Enabled support info for HTC Europe again


<nb> public class EmployeeBean {
 @ persistencecontext
 EntityManager em ;

 - public void persist ( Employee e ) {
 - em . persist ( e ) ;
 - }
 -
 public List < Employee > get ( ) {
 return em . createNamedQuery ( STRING0 , Employee . class ) . getResultList ( ) ;
 }


<nb> public class NetworkController extends BroadcastReceiver {
 filter . addAction ( Telephony . Intents . SPN_STRINGS_UPDATED_ACTION ) ;
 filter . addAction ( ConnectivityManager . CONNECTIVITY_ACTION ) ;
 filter . addAction ( ConnectivityManager . INET_CONDITION_ACTION ) ;
 + filter . addAction ( Intent . ACTION_CONFIGURATION_CHANGED ) ;
 context . registerReceiver ( this , filter ) ;

 SINGLE
 <nb> public class NetworkController extends BroadcastReceiver {
 action . equals ( ConnectivityManager . INET_CONDITION_ACTION ) ) {
 updateConnectivity ( intent ) ;
 refreshViews ( ) ;
 + } else if ( action . equals ( Intent . ACTION_CONFIGURATION_CHANGED ) ) {
 + refreshViews ( ) ;
 }
 }

Update the network info when the configuration changes


<nb> public class KotlinCompiler {

 boolean noErrors ;
 if ( arguments . module != null ) {
 - List < Module > modules = CompileEnvironmentUtil . loadModuleScript ( arguments . module , configuration . getMessageCollector ( ) ) ;
 + List < Module > modules = CompileEnvironmentUtil . loadModuleScript ( arguments . module , new PrintingMessageCollector ( errStream , messageRenderer , false ) ) ;
 File directory = new File ( arguments . module ) . getParentFile ( ) ;
 noErrors = KotlinToJVMBytecodeCompiler . compileModules ( configuration , modules ,
 directory , arguments . jar , arguments . outputDir ,

Don t compile module scripts in verbose mode


<nb> public final class FBReader extends ZLApplication {
 getMenubar ( ) . addItem ( ActionCode . QUIT , STRING0 ) ;

 ZLTextView view = new ZLTextViewImpl ( this , getContext ( ) ) ;
 - SINGLE
 - ZLStringOption bookNameOption = new ZLStringOption ( ZLOption . STATE_CATEGORY , STRING1 , STRING2 , STRING3 ) ;
 + ZLStringOption bookNameOption = new ZLStringOption ( ZLOption . STATE_CATEGORY , STRING1 , STRING2 , STRING4 ) ;
 + SINGLE
 if ( args . length > NUMBER0 ) {
 bookNameOption . setValue ( args [ NUMBER0 ] ) ;
 }


<nb> public final class BlockDataManager implements Testable < BlockDataManager > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

SMALLFIX Update javadoc for renamed methods


<nb> public class PooledConnection {
 throw ex ;
 }
 }
 + if ( connection == null ) {
 + throw new SQLException ( STRING0 + driver + STRING1 + driverURL ) ;
 + }
 +
 SINGLE
 if ( poolProperties . getJdbcInterceptors ( ) == null || poolProperties . getJdbcInterceptors ( ) . indexOf ( ConnectionState . class . getName ( ) ) < NUMBER0 ) {
 if ( poolProperties . getDefaultReadOnly ( ) != null ) connection . setReadOnly ( poolProperties . getDefaultReadOnly ( ) . booleanValue ( ) ) ;


<nb> public class ProcessModelInfo < ModelClass extends Model > {
 return transactionInfo ;
 }

 + public List < ModelClass > getModels ( ) {
 + return models ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

added get models to retrive information from the processmodel info


<nb> public class MaterialViewPager extends FrameLayout implements ViewPager . OnPageCh
 COMMENT
 COMMENT
 public void setColor ( int color , int fadeDuration ) {
 + if ( MaterialViewPagerHelper . getAnimator ( getContext ( ) ) != null )
 MaterialViewPagerHelper . getAnimator ( getContext ( ) ) . setColor ( color , fadeDuration * NUMBER0 ) ;
 }

Fix crashes when setColor is executed when Animator is null


<nb> abstract public class Pool < T > {
 COMMENT
 public void freeAll ( Array < T > objects ) {
 if ( objects == null ) throw new IllegalArgumentException ( STRING0 ) ;
 + Array < T > freeObjects = this . freeObjects ;
 + int max = this . max ;
 for ( int i = NUMBER0 ; i < objects . size ; i ++ ) {
 T object = objects . get ( i ) ;
 if ( object == null ) continue ;


<nb> public class InferNullityAnnotationsAction extends BaseAnalysisAction {
 PropertiesComponent . getInstance ( ) . setValue ( ANNOTATE_LOCAL_VARIABLES , String . valueOf ( myAnnotateLocalVariablesCb . isSelected ( ) ) ) ;

 final ProgressManager progressManager = ProgressManager . getInstance ( ) ;
 - final int totalFiles = scope . getFileCount ( ) ;
 -
 final Set < Module > modulesWithoutAnnotations = new HashSet < Module > ( ) ;
 final Set < Module > modulesWithLL = new HashSet < Module > ( ) ;
 if ( ! progressManager . runProcessWithProgressSynchronously ( new Runnable ( ) {
 @ override
 public void run ( ) {
 + final int totalFiles = scope . getFileCount ( ) ;

 scope . accept ( new PsiElementVisitor ( ) {
 private int myFileCount = NUMBER0 ;


<nb> public class ProtocolProviderServiceYahooImpl

 SINGLE
 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - if ( ( password == null ) ||
 - ( authReasonCode == SecurityAuthority . AUTHENTICATION_REQUIRED ) ||
 - ( authReasonCode == SecurityAuthority . WRONG_PASSWORD ) ||
 - ( authReasonCode == SecurityAuthority . WRONG_USERNAME ) )
 + if ( password == null
 + || authReasonCode == SecurityAuthority . WRONG_PASSWORD
 + || authReasonCode == SecurityAuthority . WRONG_USERNAME )
 {
 SINGLE
 UserCredentials credentials = new UserCredentials ( ) ;

Removes unnecessary check when connecting to yahoo


<nb> public class NotificationGuts extends LinearLayout implements TunerService . Tunab
 public NotificationGuts ( Context context , AttributeSet attrs ) {
 super ( context , attrs ) ;
 setWillNotDraw ( false ) ;
 - TunerService . get ( mContext ) . addTunable ( this , SHOW_SLIDER ) ;
 mHandler = new Handler ( ) ;
 mFalsingCheck = new Runnable ( ) {
 @ override
 <nb> public class NotificationGuts extends LinearLayout implements TunerService . Tunab
 ta . recycle ( ) ;
 }

 + @ override
 + protected void onAttachedToWindow ( ) {
 + super . onAttachedToWindow ( ) ;
 + TunerService . get ( mContext ) . addTunable ( this , SHOW_SLIDER ) ;
 + }
 +
 + @ override
 + protected void onDetachedFromWindow ( ) {
 + TunerService . get ( mContext ) . removeTunable ( this ) ;
 + super . onDetachedFromWindow ( ) ;
 + }
 +
 public void resetFalsingCheck ( ) {
 mHandler . removeCallbacks ( mFalsingCheck ) ;
 if ( mNeedsFalsingProtection && mExposed ) {


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

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


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

 - public interface MongoConnectionManager extends AutoCloseable {
 + public interface MongoConnectionManager {
 MongoSyncConnection getConnection ( ) ;

 MongoAsyncConnection getAsyncConnection ( ) ;


<nb>
 SINGLE
 package NAMESPACE ;

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

 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class AspectParameters {
 COMMENT
 COMMENT
 COMMENT
 - @ nullable
 public ImmutableCollection < String > getAttribute ( String key ) {
 return attributes . get ( key ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getOnlyValueOfAttribute ( String key ) {
 + return getOnlyElement ( getAttribute ( key ) ) ;
 + }
 +
 public boolean isEmpty ( ) {
 return this . equals ( AspectParameters . EMPTY ) ;
 }

Add a method to get a single value from AspectParameters


<nb> public class TileTank extends TileBuildCraft implements IFluidHandler {

 @ override
 public boolean canFill ( ForgeDirection from , Fluid fluid ) {
 - return true ;
 + Fluid tankFluid = getBottomTank ( ) . tank . getFluidType ( ) ;
 + return tankFluid == null || tankFluid == fluid ;
 }

 @ override
 public boolean canDrain ( ForgeDirection from , Fluid fluid ) {
 - return false ;
 + Fluid tankFluid = getBottomTank ( ) . tank . getFluidType ( ) ;
 + return tankFluid != null && tankFluid == fluid ;
 }

 public int getFluidLightLevel ( ) {


<nb> import NAMESPACE ;
 COMMENT
 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 final class ActivityStackSupervisor implements DisplayListener {

 mHomeStack . moveHomeStackTaskToTop ( homeStackTaskType ) ;
 ActivityRecord r = getHomeActivity ( ) ;
 - if ( r != null ) {
 + SINGLE
 + if ( r != null && ! r . finishing ) {
 mService . setFocusedActivityLocked ( r , reason ) ;
 return resumeTopActivitiesLocked ( mHomeStack , prev , null ) ;
 }

Fix resumeHomeStackTask can t resume home if activity is finishing


<nb> public abstract class AbstractDataSource < T > implements DataSource < T > {
 SUCCESS ,

 SINGLE
 - FAILURE ,
 + FAILURE , StoredProcedureResult ,
 }

 @ guardedby ( STRING0 )


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

 import static NAMESPACE ;

 public class MavenJUnitPatcherTest extends MavenImportingTestCase {
 +
 + @ override
 + protected void setUp ( ) throws Exception {
 + super . setUp ( ) ;
 + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassArgLine ( true ) ;
 + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassEnvironmentVariables ( true ) ;
 + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassSystemProperties ( true ) ;
 + }
 +
 public void testArgList ( ) throws Exception {
 VirtualFile m1 = createModulePom ( STRING0 , STRING1 +
 STRING2 +


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

 public class PipeItemsWood extends Pipe < PipeTransportItems > implements IEnergyHandler {
 protected RFBattery battery = new RFBattery ( NUMBER0 , NUMBER1 , NUMBER2 ) ;
 <nb> public class PipeItemsWood extends Pipe < PipeTransportItems > implements IEnergyHa

 TravelingItem entity = makeItem ( entPos , stack ) ;
 entity . setSpeed ( TransportConstants . PIPE_DEFAULT_SPEED ) ;
 - transport . injectItem ( entity , side ) ;
 + transport . injectItem ( entity , side . getOpposite ( ) ) ;
 }
 }
 }

Fix Items fbeing pulled out of chests incorectly


<nb> public final class EndpointHelper {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ suppresswarnings ( { STRING0 , STRING1 } )
 public static < T > List < T > resolveReferenceListParameter ( CamelContext context , String value , Class < T > elementType ) {
 if ( value == null ) {
 - return Collections . emptyList ( ) ;
 + return new ArrayList < T > ( ) ;
 }
 List < String > elements = Arrays . asList ( value . split ( STRING2 ) ) ;
 if ( elements . size ( ) == NUMBER0 ) {

EndpointHelper resolveReferenceListParameter should not return immutable lists


<nb> public class LegacyMetadataMapper {
 CameraCharacteristics . CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES ,
 CameraCharacteristics . CONTROL_AE_COMPENSATION_RANGE ,
 CameraCharacteristics . CONTROL_AE_COMPENSATION_STEP ,
 + CameraCharacteristics . CONTROL_AE_LOCK_AVAILABLE ,
 CameraCharacteristics . CONTROL_AF_AVAILABLE_MODES ,
 CameraCharacteristics . CONTROL_AVAILABLE_EFFECTS ,
 CameraCharacteristics . CONTROL_AVAILABLE_SCENE_MODES ,
 CameraCharacteristics . CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES ,
 CameraCharacteristics . CONTROL_AWB_AVAILABLE_MODES ,
 + CameraCharacteristics . CONTROL_AWB_LOCK_AVAILABLE ,
 CameraCharacteristics . CONTROL_MAX_REGIONS ,
 CameraCharacteristics . FLASH_INFO_AVAILABLE ,
 CameraCharacteristics . INFO_SUPPORTED_HARDWARE_LEVEL ,


<nb> public class ServletPrintWriter {
 if ( result . isOverflow ( ) ) {
 outputStream . flushInternal ( ) ;
 }
 + if ( result . isError ( ) || result . isUnmappable ( ) || result . isMalformed ( ) ) {
 + error = true ;
 + return ;
 + }
 }
 } catch ( IOException e ) {
 error = true ;

Avoid infinite loop on unmappable characters


<nb> public class ReaderPostPagerActivity extends Activity

 @ override
 public void restoreState ( Parcelable state , ClassLoader loader ) {
 + SINGLE
 + SINGLE
 + SINGLE
 try {
 AppLog . d ( AppLog . T . READER , STRING0 ) ;
 super . restoreState ( state , loader ) ;

Added comment explaining necessary of IllegalStateException try catch


<nb> public class NioChannel implements ByteChannel {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public void close ( ) throws IOException {
 getIOChannel ( ) . socket ( ) . close ( ) ;
 getIOChannel ( ) . close ( ) ;
 <nb> public class NioChannel implements ByteChannel {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public boolean isOpen ( ) {
 return sc . isOpen ( ) ;
 }
 <nb> public class NioChannel implements ByteChannel {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public int write ( ByteBuffer src ) throws IOException {
 return sc . write ( src ) ;
 }
 <nb> public class NioChannel implements ByteChannel {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public int read ( ByteBuffer dst ) throws IOException {
 return sc . read ( dst ) ;
 }


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MigrateCvsRootAction extends AnAction {
 public MigrateCvsRootAction ( ) {
 super ( ) ;
 myVisibility . shouldNotBePerformedOnFile ( ) ;
 + myVisibility . addCondition ( ActionOnSelectedElement . FILES_ARE_UNDER_CVS ) ;
 }

 @ override

only enable migrate cvs root action on directories under CVS


<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
 boolean mounted = Environment . MEDIA_MOUNTED . equals ( Environment . getExternalStorageState ( ) ) ;

 menu . findItem ( R . id . menu_export ) . setEnabled ( pro && mounted ) ;
 + menu . findItem ( R . id . menu_import ) . setEnabled ( pro && mounted ) ;
 menu . findItem ( R . id . menu_pro ) . setVisible ( ! pro ) ;

 return super . onPrepareOptionsMenu ( menu ) ;


<nb> public class Camera {
 COMMENT
 COMMENT
 public List < Area > getMeteringAreas ( ) {
 - return splitArea ( KEY_METERING_AREAS ) ;
 + return splitArea ( get ( KEY_METERING_AREAS ) ) ;
 }

 COMMENT

Fix camera getMeteringAreas does not return areas correctly


<nb> public class ShowcaseView extends RelativeLayout
 showcaseView . setEndButton ( button ) ;
 return this ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Builder replaceEndButton ( int buttonResourceId ) {
 + View view = LayoutInflater . from ( activity ) . inflate ( buttonResourceId , showcaseView , false ) ;
 + if ( ! ( view instanceof Button ) ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 + return replaceEndButton ( ( Button ) view ) ;
 + }
 }

 private void setEndButton ( Button button ) {


<nb> import NAMESPACE ;
 mPreChange . substring ( NUMBER0 , mMaxLength ) . equals ( postChange ) ) ) {
 return ;
 }
 - mPreChange = postChange ;
 if ( NUMBER0 == count ) {
 if ( before > NUMBER0 ) {
 SINGLE
 <nb> import NAMESPACE ;
 SINGLE
 SINGLE
 if ( count > NUMBER1 && before == count - NUMBER1 ) {
 - String replaceButOne = s . subSequence ( start ,
 + String replaceButOne = mPreChange . subSequence ( start ,
 start + before ) . toString ( ) ;
 - String replacedString = getText ( ) . subSequence ( start ,
 + String replacedString = s . subSequence ( start ,
 start + before ) . toString ( ) ;
 if ( replaceButOne . equals ( replacedString ) ) {
 SINGLE
 <nb> import NAMESPACE ;
 count = NUMBER1 ;
 }
 }
 + mPreChange = postChange ;
 SINGLE
 SINGLE
 SINGLE


<nb> public class Downloader extends Plugin {
 obj . put ( STRING0 , NUMBER0 ) ;
 obj . put ( STRING1 , fileSize ) ;
 obj . put ( STRING2 , fileName ) ;
 + obj . put ( STRING3 , dirName ) ;
 obj . put ( STRING4 , progress ) ;

 return new PluginResult ( PluginResult . Status . OK , obj ) ;

Downloader would sometimes not return the directory name depending on the code path


<nb> public final class DebugAppContainer implements AppContainer {

 @ override public ViewGroup get ( final Activity activity ) {
 this . activity = activity ;
 - drawerContext = new ContextThemeWrapper ( activity , R . style . Theme_U2020_Debug ) ; ;
 + drawerContext = new ContextThemeWrapper ( activity , R . style . Theme_U2020_Debug ) ;

 riseAndShine ( activity ) ;


<nb> public class ConnectivityService extends IConnectivityManager . Stub
 SINGLE
 info = new NetworkInfo ( info ) ;
 info . setDetailedState ( DetailedState . BLOCKED , null , null ) ;
 - if ( DBG ) log ( STRING0 ) ;
 + if ( DBG ) {
 + log ( STRING1 +
 + lp . getInterfaceName ( ) + STRING2 + uid ) ;
 + }
 }
 if ( info != null && mLockdownTracker != null ) {
 info = mLockdownTracker . augmentNetworkInfo ( info ) ;

Log interface name and uid when filtering a blocked network


<nb> public class TestDiscoveryExtension extends RunConfigurationExtension {
 final String tracesDirectory = getTracesDirectory ( configuration ) ;
 final TestDiscoveryIndex coverageIndex = TestDiscoveryIndex . getInstance ( configuration . getProject ( ) ) ;
 synchronized ( ourTracesLock ) {
 - final File [ ] testMethodTraces = new File ( tracesDirectory ) . listFiles ( new FilenameFilter ( ) {
 + final File tracesDirectoryFile = new File ( tracesDirectory ) ;
 + final File [ ] testMethodTraces = tracesDirectoryFile . listFiles ( new FilenameFilter ( ) {
 @ override
 public boolean accept ( File dir , String name ) {
 return name . endsWith ( STRING0 ) ;
 <nb> public class TestDiscoveryExtension extends RunConfigurationExtension {
 LOG . error ( STRING1 + testMethodTrace , e ) ;
 }
 }
 +
 + if ( tracesDirectoryFile . list ( ) == null ) FileUtil . delete ( tracesDirectoryFile ) ;
 }
 }
 }


<nb> public abstract class GenericsHighlightUtil {
 PsiModifierList list = method . getModifierList ( ) ;
 final PsiAnnotation overrideAnnotation = list . findAnnotation ( STRING0 ) ;
 if ( overrideAnnotation != null ) {
 - PsiClass superClass = method . getContainingClass ( ) . getSuperClass ( ) ;
 - if ( superClass != null ) {
 - PsiMethod [ ] superMethods = method . findSuperMethods ( ) ;
 - for ( PsiMethod superMethod : superMethods ) {
 - if ( InheritanceUtil . isInheritorOrSelf ( superClass , superMethod . getContainingClass ( ) , true ) ) return null ;
 - }
 - return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , overrideAnnotation ,
 - STRING1 ) ;
 + PsiMethod [ ] superMethods = method . findSuperMethods ( ) ;
 + for ( PsiMethod superMethod : superMethods ) {
 + if ( ! superMethod . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return null ;
 }
 + return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , overrideAnnotation ,
 + STRING1 ) ;
 }
 return null ;
 }


<nb> public class PrefStore {
 return ! getSharedPreferences ( ctx ) . contains ( PREF_MAX_SYNCED_DATE ) ;
 }

 + static boolean isFirstUse ( Context ctx ) {
 + final String key = STRING0 ;
 +
 + if ( isFirstSync ( ctx ) &&
 + ! getSharedPreferences ( ctx ) . contains ( key ) ) {
 + getSharedPreferences ( ctx ) . edit ( ) . putBoolean ( key , false ) . commit ( ) ;
 + return true ;
 + } else {
 + return false ;
 + }
 + }
 +
 static void clearSyncData ( Context ctx ) {
 getSharedPreferences ( ctx ) . edit ( )
 . remove ( PREF_LOGIN_USER )
 <nb> public class SmsSync extends PreferenceActivity {

 updateConnected ( ) ;
 updateUsernameLabelFromPref ( ) ;
 +
 + SINGLE
 + if ( PrefStore . isFirstUse ( SmsSync . this ) ) {
 + show ( Dialogs . FIRST_SYNC ) ;
 + }
 } else {
 show ( Dialogs . ACCESS_TOKEN_ERROR ) ;
 }

Invite user to perform a backup after connecting only once


<nb> public class EJB3RemoteServiceAdd extends AbstractBoottimeAddStepHandler {
 }

 ServiceController < EJBRemoteConnectorService > installRuntimeService ( final OperationContext context , final ModelNode model , final ServiceVerificationHandler verificationHandler ) {
 - SINGLE
 final String connectorName = model . require ( CONNECTOR_REF ) . asString ( ) ;
 final String threadPoolName = model . require ( THREAD_POOL_NAME ) . asString ( ) ;
 final ServiceTarget serviceTarget = context . getServiceTarget ( ) ;
 <nb> public class EJB3RemoteServiceAdd extends AbstractBoottimeAddStepHandler {
 final ServiceBuilder < EJBRemoteConnectorService > ejbRemoteConnectorServiceBuilder = serviceTarget . addService ( EJBRemoteConnectorService . SERVICE_NAME , service ) ;
 SINGLE
 ejbRemoteConnectorServiceBuilder . addDependency ( RemotingServices . SUBSYSTEM_ENDPOINT , Endpoint . class , service . getEndpointInjector ( ) ) ;
 + SINGLE
 + ejbRemoteConnectorServiceBuilder . addDependency ( RemotingServices . connectorServiceName ( connectorName ) ) ;
 SINGLE
 ejbRemoteConnectorServiceBuilder . addDependency ( EJB3ThreadPoolAdd . BASE_SERVICE_NAME . append ( threadPoolName ) , ExecutorService . class , service . getExecutorService ( ) )
 . addDependency ( DeploymentRepository . SERVICE_NAME , DeploymentRepository . class , service . getDeploymentRepositoryInjector ( ) )

Fix dependency between the EJB remoting service and the remoting connector service


<nb> public class MultipartFormDataBody extends BoundaryEmitter implements AsyncHttpR
 c . add ( new ContinuationCallback ( ) {
 @ override
 public void onContinue ( Continuation continuation , CompletedCallback next ) throws Exception {
 - byte [ ] bytes = ( getBoundaryEnd ( ) + STRING0 ) . getBytes ( ) ;
 + byte [ ] bytes = ( getBoundaryEnd ( ) ) . getBytes ( ) ;
 com . koushikdutta . async . Util . writeAll ( sink , bytes , next ) ;
 written += bytes . length ;


<nb> public class ViewPropertyAnimator {
 NameValuesHolder nameValuePair = new NameValuesHolder ( constantName , startValue , byValue ) ;
 mPendingAnimations . add ( nameValuePair ) ;
 mView . removeCallbacks ( mAnimationStarter ) ;
 - mView . post ( mAnimationStarter ) ;
 + mView . postOnAnimation ( mAnimationStarter ) ;
 }

 COMMENT

Fix start delay jank in ViewPropertyAnimator


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AssetsController {
 }

 SINGLE
 - context . finalizeHeaders ( result ) ;
 + ResponseStreams responseStreams
 + = context . finalizeHeaders ( result ) ;

 ByteStreams . copy (
 this . getClass ( )
 . getClassLoader ( )
 . getResourceAsStream (
 ASSETS_PREFIX + finalName ) ,
 - context . getHttpServletResponse ( )
 - . getOutputStream ( ) ) ;
 + responseStreams . getOutputStream ( ) ) ;

 } catch ( FileNotFoundException e ) {
 logger . error ( STRING0 , e ) ;


<nb> public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > imple
 @ override
 public boolean dropCluster ( final int iClusterId , final boolean iTruncate ) {
 checkIfActive ( ) ;
 +
 + checkSecurity ( ORule . ResourceGeneric . CLUSTER , ORole . PERMISSION_DELETE , getClusterNameById ( iClusterId ) ) ;
 +
 final OClass clazz = metadata . getSchema ( ) . getClassByClusterId ( iClusterId ) ;
 if ( clazz != null )
 clazz . removeClusterId ( iClusterId ) ;


<nb> public class BSONBinaryReader extends BSONReader {
 public RegularExpression readRegularExpression ( ) {
 checkPreconditions ( STRING0 , BsonType . REGULAR_EXPRESSION ) ;
 setState ( getNextState ( ) ) ;
 - return new RegularExpression ( buffer . readString ( ) , buffer . readString ( ) ) ;
 + return new RegularExpression ( buffer . readCString ( ) , buffer . readCString ( ) ) ;
 }

 @ override

Fixed a bug in reading regular expressions


<nb> public class JIoEndpoint extends AbstractEndpoint {
 SINGLE
 }
 }
 - } catch ( IOException x ) {
 - if ( running ) log . error ( sm . getString ( STRING0 ) , x ) ;
 + } catch ( IOException x ) {
 + if ( running ) {
 + log . error ( sm . getString ( STRING0 ) , x ) ;
 + }
 + } catch ( NullPointerException npe ) {
 + if ( running ) {
 + log . error ( sm . getString ( STRING0 ) , npe ) ;
 + }
 } catch ( Throwable t ) {
 log . error ( sm . getString ( STRING0 ) , t ) ;
 }
 -
 SINGLE
 -
 }
 -
 }
 -
 }

Also handle NPEs seen during testing of new async re factoring and ignore them if the endpoint is shutting down


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Matchers {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PluginRunConfiguration extends RunConfigurationBase {
 params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING0 ) ;
 params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING1 ) ;
 params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING2 ) ;
 + params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING3 ) ;
 params . getClassPath ( ) . addFirst ( ideaJdk . getToolsPath ( ) ) ;

 Sdk run = jdk ;


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 public class TitanHadoopConfiguration {

 public static final ConfigNamespace ROOT_NS =
 <nb> public class TitanHadoopConfiguration {
 public static final ConfigOption < String > INDEX_TYPE = new ConfigOption < String > (
 INDEX_NS , STRING0 ,
 STRING1 ,
 - ConfigOption . Type . LOCAL , String . class ) ;
 + ConfigOption . Type . LOCAL , String . class , STRING2 , new Predicate < String > ( ) {
 + @ override
 + public boolean apply ( @ nullable String input ) {
 + return null != input ; SINGLE
 + }
 + } ) ;

 SINGLE
 SINGLE