<nb> abstract class AbstractNioWorker implements Worker {
 }

 Queue < MessageEvent > writeBuffer = channel . writeBufferQueue ;
 - if ( ! writeBuffer . isEmpty ( ) ) {
 + for ( ; ; ) {
 + evt = writeBuffer . poll ( ) ;
 + if ( evt == null ) {
 + break ;
 + }
 SINGLE
 SINGLE
 if ( cause == null ) {
 <nb> abstract class AbstractNioWorker implements Worker {
 } else {
 cause = new ClosedChannelException ( ) ;
 }
 - }
 -
 - for ( ; ; ) {
 - evt = writeBuffer . poll ( ) ;
 - if ( evt == null ) {
 - break ;
 - }
 evt . getFuture ( ) . setFailure ( cause ) ;
 fireExceptionCaught = true ;
 }
 +
 }
 }


<nb> public class BrowserUtil {
 }
 }

 - COMMENT
 - @ suppresswarnings ( STRING0 )
 - public static String escapeUrl ( @ notnull @ nonnls String url ) {
 - return SystemInfo . isWindows ? STRING1 + url + STRING1 : url ;
 - }
 -
 @ notnull
 public static List < String > getOpenBrowserCommand ( @ nonnls @ notnull String browserPathOrName ) {
 return getOpenBrowserCommand ( browserPathOrName , false ) ;


<nb> public class DefaultPlacementStrategy implements IDPlacementStrategy {
 }

 @ override
 - public long getPartition ( InternalElement vertex ) {
 + public int getPartition ( InternalElement vertex ) {
 return partitionID ;
 }

 <nb> public interface IDPlacementStrategy {
 COMMENT
 COMMENT
 COMMENT
 - public long getPartition ( InternalElement vertex ) ;
 + public int getPartition ( InternalElement vertex ) ;

 COMMENT
 COMMENT
 <nb> public class SimpleBulkPlacementStrategy implements IDPlacementStrategy {
 }

 @ override
 - public long getPartition ( InternalElement vertex ) {
 + public int getPartition ( InternalElement vertex ) {
 return nextPartitionID ( ) ;
 }

changed return from long to int for partition id


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TextFieldWithHistoryWithBrowseButton extends ComponentWithBrowseBut
 super . addBrowseFolderListener ( title , description , project , fileChooserDescriptor , accessor , autoRemoveOnHide ) ;
 FileChooserFactory . getInstance ( ) . installFileCompletion ( getChildComponent ( ) . getTextEditor ( ) , fileChooserDescriptor , false , project ) ;
 }
 +
 + public String getText ( ) {
 + return getChildComponent ( ) . getText ( ) ;
 + }
 }

add delegate method to TextFieldWithHistoryWitBrowseButton


<nb> public class AndroidTestFinder {

 classReader . accept ( decendantFinder , ClassReader . SKIP_DEBUG | ClassReader . SKIP_FRAMES | ClassReader . SKIP_CODE ) ;
 } catch ( IOException e ) {
 - throw new MojoExecutionException ( STRING0 + classFile + STRING1 , e ) ;
 + throw new MojoExecutionException ( STRING0 + classFile + STRING2 , e ) ;
 } finally {
 org . apache . commons . io . IOUtils . closeQuietly ( inputStream ) ;
 }


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

 import static NAMESPACE ;


<nb> public class LwjglFrameBufferObject implements FrameBufferObject {
 glOrtho ( NUMBER0 , Display . getWidth ( ) , Display . getHeight ( ) , NUMBER0 , NUMBER0 , NUMBER1 f ) ;
 glMatrixMode ( GL_MODELVIEW ) ;
 glLoadIdentity ( ) ;
 +
 + SINGLE
 + GL11 . glColorMask ( true , true , true , true ) ;
 }

 @ override
 <nb> public class LwjglFrameBufferObject implements FrameBufferObject {
 glOrtho ( NUMBER0 , size . x ( ) , size . y ( ) , NUMBER0 , NUMBER0 , NUMBER1 f ) ;
 glMatrixMode ( GL_MODELVIEW ) ;
 glLoadIdentity ( ) ;
 +
 + SINGLE
 + SINGLE
 + GL11 . glClearColor ( FLOAT0 , FLOAT0 , FLOAT0 , FLOAT1 ) ;
 + GL11 . glClear ( GL11 . GL_COLOR_BUFFER_BIT ) ;
 + GL11 . glClearColor ( FLOAT0 , FLOAT0 , FLOAT0 , FLOAT0 ) ; SINGLE
 + GL11 . glColorMask ( true , true , true , false ) ;
 }
 }


<nb> public class RestartAction extends FakeRerunAction implements DumbAware , AnActio
 myDescriptor = descriptor ;
 myExecutor = executor ;
 SINGLE
 +
 + if ( descriptor . getRestarter ( ) == null ) {
 + descriptor . setRestarter ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + restart ( ) ;
 + }
 + } ) ;
 + }
 }

 @ override
 <nb> public class RunContentBuilder extends LogConsoleManagerBase {
 final RestartAction restartAction = new RestartAction ( myExecutor , myRunner , contentDescriptor , getEnvironment ( ) ) ;
 restartAction . registerShortcut ( component ) ;
 actionGroup . add ( restartAction ) ;
 - contentDescriptor . setRestarter ( new Runnable ( ) {
 - @ override
 - public void run ( ) {
 - restartAction . restart ( ) ;
 - }
 - } ) ;

 if ( myExecutionResult instanceof DefaultExecutionResult ) {
 final AnAction [ ] actions = ( ( DefaultExecutionResult ) myExecutionResult ) . getRestartActions ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CxxLibraryDescription implements
 HeaderVisibility . PUBLIC ) ;
 Map < BuildTarget , CxxPreprocessorInput > input = Maps . newLinkedHashMap ( ) ;

 - CxxSymlinkTreeHeaders . Builder headers = CxxSymlinkTreeHeaders . builder ( ) ;
 - headers . setIncludeType ( CxxPreprocessables . IncludeType . LOCAL ) ;
 - headers . setRoot (
 - new BuildTargetSourcePath (
 - symlinkTree . getBuildTarget ( ) ,
 - symlinkTree . getIncludePath ( ) ) ) ;
 - headers . putAllNameToPathMap ( symlinkTree . getLinks ( ) ) ;
 - if ( symlinkTree . getHeaderMap ( ) . isPresent ( ) ) {
 - headers . setHeaderMap (
 - new BuildTargetSourcePath (
 - symlinkTree . getBuildTarget ( ) ,
 - symlinkTree . getHeaderMap ( ) . get ( ) ) ) ;
 - }
 input . put (
 params . getBuildTarget ( ) ,
 CxxPreprocessorInput . builder ( )

remove dead code CxxLibraryDescription getTransitiveCxxPreprocessorInput


<nb> public class GlobalMatchingVisitor extends AbstractMatchingVisitor {
 return myResult ;
 }

 - public void setElement ( PsiElement element ) {
 - this . myElement = element ;
 - }
 -
 public void setResult ( boolean result ) {
 this . myResult = result ;
 }


<nb> public class Bind extends IQ {

 public Bind ( String resource , String jid ) {
 this . resource = resource ;
 - this . jid = null ;
 + this . jid = jid ;
 }

 public String getResource ( ) {


<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM
 }
 }
 } else {
 - _parms . _distribution . p = _parms . _tweedie_power ; SINGLE
 + _parms . _distribution . p = _parms . _tweedie_power ; SINGLE
 wk . set ( row , ( float ) _parms . _distribution . gradient ( y , f ) ) ;
 }
 }
 <nb> public class Distributions {
 return expString ( f ) ;
 }
 } ;
 - public double p ; SINGLE
 + public double p ; SINGLE
 }

 SINGLE

Add comment to make clear why workaround was done


<nb> public class TemporaryJobJsonReports extends TemporaryJobReports {

 public TemporaryJobJsonReports ( final Path outputDir ) {
 this . outputDir = outputDir ;
 - this . outputDir . toFile ( ) . mkdirs ( ) ;
 + if ( ! this . outputDir . toFile ( ) . mkdirs ( ) ) {
 + throw new IllegalStateException ( format ( STRING0 , outputDir ) ) ;
 + }
 }

 public ReportWriter getWriterForTest ( final Description testDescription ) {

Throw exception if failing to create test report directory


<nb> public class CompilerTester {
 path . getChildren ( ) ;
 assert path != null ;
 path . refresh ( false , true ) ;
 - return path . findChild ( className + STRING0 ) ;
 + return path . findChild ( className . replace ( STRING1 , STRING2 ) + STRING0 ) ;
 }

 public void touch ( VirtualFile file ) throws IOException {

CompilerTester findClassFile should accept qualified names


<nb> public class FileOutStreamIntegrationTest {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ test


<nb> public class BetterCharacterControl extends AbstractPhysicsControl implements Ph
 public float getPhysicsDamping ( ) {
 return physicsDamping ;
 }
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class BetterCharacterControl extends AbstractPhysicsControl implements Ph
 Vector3f rayVector = vars . vect2 ;
 float height = getFinalHeight ( ) ;
 location . set ( localUp ) . multLocal ( height ) . addLocal ( this . location ) ;
 - rayVector . set ( localUp ) . multLocal ( - height - FastMath . ZERO_TOLERANCE ) . addLocal ( location ) ;
 + rayVector . set ( localUp ) . multLocal ( - height - FLOAT0 ) . addLocal ( location ) ;
 List < PhysicsRayTestResult > results = space . rayTest ( location , rayVector ) ;
 vars . release ( ) ;
 for ( PhysicsRayTestResult physicsRayTestResult : results ) {

Added a little offset to the physics ray to correct detecting onGround


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

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

 public class PresentationExamplesITest extends WithJetty {
 <nb> public class PresentationExamplesITest extends WithJetty {
 assertThat ( firstName , equalTo ( STRING0 ) ) ;
 assertThat ( lastName , equalTo ( STRING1 ) ) ;
 }
 +
 + @ test
 + public void advancedJsonValidation ( ) throws Exception {
 + expect ( ) .
 + statusCode ( allOf ( greaterThanOrEqualTo ( NUMBER0 ) , lessThanOrEqualTo ( NUMBER1 ) ) ) .
 + root ( STRING2 ) .
 + body ( STRING3 , hasItems ( STRING4 , STRING5 ) ) .
 + body ( STRING6 , Matchers . equalTo ( NUMBER2 ) ) .
 + when ( ) .
 + get ( STRING7 ) ;
 + }
 }


<nb> public class BlockTank extends BlockContainer implements ITextureProvider {

 int qty = tank . empty ( BuildCraftAPI . BUCKET_VOLUME , false ) ;

 - if ( filled != null && qty >= BuildCraftAPI . BUCKET_VOLUME ) {
 + LiquidStack liquid = LiquidManager . getLiquidForFilledItem ( filled ) ;
 + if ( liquid != null && qty >= liquid . amount ) {
 if ( current . stackSize > NUMBER0 && ! entityplayer . inventory . addItemStackToInventory ( filled ) ) {
 return false ;
 }
 entityplayer . inventory . setInventorySlotContents ( entityplayer . inventory . currentItem ,
 Utils . consumeItem ( current ) ) ;
 - tank . empty ( BuildCraftAPI . BUCKET_VOLUME , true ) ;
 + tank . empty ( liquid . amount , true ) ;
 return true ;
 }
 }

Added support for non standard capacity liquid container filling


<nb> public class GitCherryPicker {

 @ notnull
 private static String commitDetails ( @ notnull GitCommitWrapper commit ) {
 - return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING0 + commit . getOriginalSubject ( ) + STRING1 ;
 + return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING2 + commit . getOriginalSubject ( ) ;
 }

 private void refreshChangedFiles ( @ notnull Collection < FilePath > filePaths ) {

remove quotes from commit subject in notifications


<nb> public class RcvSessionState
 rebuilders = rotator . buffers ( )
 . map ( TermRebuilder : : new )
 . toArray ( TermRebuilder [ ] : : new ) ;
 - cleanedTermId . lazySet ( initialTermId + NUMBER0 ) ;
 + cleanedTermId . lazySet ( initialTermId + CLEAN_WINDOW ) ;
 }

 public InetSocketAddress sourceAddress ( )


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ApiClientImpl implements ApiClient {
 new ObjectMapper ( )
 . setPropertyNamingStrategy ( PropertyNamingStrategy . CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES )
 . disable ( DeserializationFeature . FAIL_ON_UNKNOWN_PROPERTIES )
 + . setVisibility ( PropertyAccessor . FIELD , JsonAutoDetect . Visibility . ANY )
 . registerModule ( new GuavaModule ( ) )
 . registerModule ( new JodaModule ( ) ) ) ;
 }

Fixing serialization errors by using the same ObjectMapper config


<nb>
 COMMENT
 - DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER .
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class ProtoAdapter < E > {
 return size ;
 }

 - @ override public void encode ( ProtoWriter writer , List < E > value ) throws IOException {
 + @ override public void encode ( ProtoWriter writer , List < E > value ) {
 throw new UnsupportedOperationException ( STRING0 ) ;
 }

 <nb> public final class ProtoReader {
 COMMENT
 COMMENT
 COMMENT
 - public FieldEncoding peekFieldEncoding ( ) throws IOException {
 + public FieldEncoding peekFieldEncoding ( ) {
 return nextFieldEncoding ;
 }


<nb> public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider ,

 public void availableSession ( ClientSession session , Presence presence ) {
 JID newlyAvailableJID = presence . getFrom ( ) ;
 +
 + if ( newlyAvailableJID == null ) {
 + return ;
 + }

 SINGLE
 try {

Fixed potential null pointer exception in IQPEPHandler


<nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 SINGLE
 if ( ! gone || ! win . mHaveFrame || win . mLayoutNeeded
 - || win . isConfigChanged ( )
 + || win . mAttrs . type == TYPE_KEYGUARD && win . isConfigChanged ( )
 + || mOpeningApps . contains ( win . mAppToken )
 || win . mAttrs . type == TYPE_UNIVERSE_BACKGROUND ) {
 if ( ! win . mLayoutAttached ) {
 if ( initial ) {


<nb> public class GithubRepository extends BaseRepositoryImpl {

 public GithubRepository ( GithubRepositoryType type ) {
 super ( type ) ;
 - setUrl ( GithubApiUtil . DEFAULT_GITHUB_HOST ) ;
 + setUrl ( STRING0 + GithubApiUtil . DEFAULT_GITHUB_HOST ) ;
 }

 @ notnull


<nb> public class ResPackage {
 return config ;
 }

 + public int getResSpecCount ( ) {
 + return mResSpecs . size ( ) ;
 + }
 +
 public ResConfig getOrCreateConfig ( ResConfigFlags flags )
 throws AndrolibException {
 ResConfig config = mConfigs . get ( flags ) ;

add method to return size of resPackage count of ResSpecs


<nb>
 COMMENT
 COMMENT

 - package NAMESPACE ;
 + package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class BlockLockManager {
 LOG . error ( STRING0 , blockId ) ;
 return false ;
 }
 - mBlockIdToLockMap . put ( new BlockLock ( blockId ) ;
 + mBlockIdToLockMap . put ( blockId , new BlockLock ( blockId ) ) ;
 return true ;
 }

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

Fix a typo error in BlockMetaManager and correct the package name of BlockLockManager


<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper {

 public static final int DBVER_PERSHOWUPDATEDATE = NUMBER0 ;

 - public static final int DATABASE_VERSION = DBVER_AIRTIMECOLUMN ;
 + public static final int DATABASE_VERSION = DBVER_PERSHOWUPDATEDATE ;

 public interface Tables {
 String SHOWS = STRING0 ;

Actually change the database version to initialize an upgrade oops


<nb> public final class Intents {
 COMMENT
 COMMENT
 public static final String FORMATS = STRING0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String CAMERA_ID = STRING1 ;

 COMMENT
 COMMENT


<nb> public class AsyncSSLSocketWrapper implements AsyncSocketWrapper , AsyncSSLSocket
 res = engine . wrap ( bb , mWriteTmp ) ;
 writeTmp ( mWriteTmp ) ;
 if ( res . getStatus ( ) == Status . BUFFER_OVERFLOW ) {
 - System . out . println ( STRING0 ) ;
 mWriteTmp = ByteBufferList . obtain ( mWriteTmp . capacity ( ) * NUMBER0 ) ;
 remaining = - NUMBER1 ;
 }
 <nb> public class AsyncSSLSocketWrapper implements AsyncSocketWrapper , AsyncSSLSocket
 bb . addAll ( arr ) ;
 writeTmp ( mWriteTmp ) ;
 if ( res . getStatus ( ) == Status . BUFFER_OVERFLOW ) {
 - System . out . println ( STRING0 ) ;
 mWriteTmp = ByteBufferList . obtain ( mWriteTmp . capacity ( ) * NUMBER0 ) ;
 remaining = - NUMBER1 ;
 }


<nb> public class DevicePolicyManager {
 public void setProfileName ( ComponentName who , String profileName ) {
 if ( mService != null ) {
 try {
 - mService . setProfileName ( who , profileName ) ;
 - } catch ( RemoteException e ) {
 - Log . w ( TAG , STRING0 , e ) ;
 + mService . setProfileName ( who , profileName ) ;
 + } catch ( RemoteException e ) {
 + Log . w ( TAG , STRING0 , e ) ;
 + }
 }
 }
 - }

 COMMENT
 COMMENT

Fixed indentation in setProfileName method


<nb> public class SpdyChannel extends AbstractFramedChannel < SpdyChannel , SpdyStreamSo

 @ override
 public AbstractFramedStreamSourceChannel < ? , ? , ? > getExistingChannel ( ) {
 - if ( type == SYN_STREAM ) {
 + if ( type == SYN_STREAM || type == WINDOW_UPDATE ) {
 return null ;
 }
 int id ;
 <nb> public class SpdySynStreamStreamSourceChannel extends SpdyStreamSourceChannel {
 this . deflater = deflater ;
 this . headers = headers ;
 this . streamId = streamId ;
 + this . flowControlWindow = framedChannel . getInitialWindowSize ( ) ;
 }

 public SpdySynReplyStreamSinkChannel getResponseChannel ( ) {


<nb> public class RestRolloverIndexAction extends BaseRestHandler {
 @ inject
 public RestRolloverIndexAction ( Settings settings , RestController controller , Client client ) {
 super ( settings , client ) ;
 - controller . registerHandler ( RestRequest . Method . PUT , STRING0 , this ) ;
 controller . registerHandler ( RestRequest . Method . POST , STRING0 , this ) ;
 controller . registerHandler ( RestRequest . Method . GET , STRING0 , this ) ;
 }


<nb> public class MatchingSentence {
 public List < RuleMatch > getRuleMatches ( ) {
 return ruleMatches ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return sentence ;
 + }
 }
 <nb> public class PatternRuleQueryBuilder {
 SINGLE
 SINGLE
 SINGLE
 - posQuery = getWrappedRegexQuery ( element , POS_PREFIX + pos ) ;
 + posQuery = getWrappedRegexQuery ( element , POS_PREFIX + STRING0 + pos + STRING1 ) ;
 SINGLE
 } else {
 if ( element . getCaseSensitive ( ) ) {
 <nb> public class PatternRuleQueryBuilderTest extends LuceneTestCase {
 assertMatches ( makeRule ( STRING2 ) , NUMBER0 ) ;

 assertMatches ( makeRule ( STRING3 ) , NUMBER1 ) ;
 + assertMatches ( makeRule ( STRING4 ) , NUMBER1 ) ;
 + assertMatches ( makeRule ( STRING5 ) , NUMBER1 ) ;
 assertMatches ( makeRule ( STRING6 ) , NUMBER0 ) ;

 SINGLE


<nb>
 COMMENT
 package NAMESPACE ;

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

 import NAMESPACE ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class NonClasspathDirectoriesScope extends GlobalSearchScope {

 @ override
 public int hashCode ( ) {
 - int result = super . hashCode ( ) ;
 - result = NUMBER0 * result + myRoots . hashCode ( ) ;
 - return result ;
 + return myRoots . hashCode ( ) ;
 }

 @ notnull


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class GrBlockImpl extends LazyParseablePsiElement implements GrC
 }

 @ override
 + public void delete ( ) throws IncorrectOperationException {
 + if ( getParent ( ) instanceof ASTDelegatePsiElement ) {
 + CheckUtil . checkWritable ( this ) ;
 + ( ( ASTDelegatePsiElement ) getParent ( ) ) . deleteChildInternal ( getNode ( ) ) ;
 + }
 + else {
 + getParent ( ) . deleteChildRange ( this , this ) ;
 + }
 + }
 +
 + @ override
 public void removeElements ( PsiElement [ ] elements ) throws IncorrectOperationException {
 GroovyPsiElementImpl . removeElements ( this , elements ) ;
 }

Split into declaration and assignment intention leaves unnecessary if applied to closures


<nb> public class MatchQueryBuilder extends AbstractQueryBuilder < MatchQueryBuilder > {
 }
 }
 } else {
 + if ( fieldName != null ) {
 + throw new ParsingException ( parser . getTokenLocation ( ) , STRING0
 + + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ;
 + }
 fieldName = parser . currentName ( ) ;
 value = parser . objectText ( ) ;
 }
 <nb> public class MatchQueryBuilderTests extends AbstractQueryTestCase < MatchQueryBuil
 STRING3 ;
 ParsingException e = expectThrows ( ParsingException . class , ( ) - > parseQuery ( json ) ) ;
 assertEquals ( STRING4 , e . getMessage ( ) ) ;
 +
 + String shortJson = STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING3 ;
 + e = expectThrows ( ParsingException . class , ( ) - > parseQuery ( shortJson ) ) ;
 + assertEquals ( STRING4 , e . getMessage ( ) ) ;
 }
 }

Throw parsing error if match query contains multiple fields in its short version


<nb> class InstallPluginCommand extends SettingCommand {
 SINGLE
 SINGLE
 if ( MODULES . contains ( info . getName ( ) ) ) {
 - throw new UserException ( ExitCodes . USAGE , STRING0 + info . getName ( ) + STRING1 ) ;
 + throw new UserException (
 + ExitCodes . USAGE , STRING0 + info . getName ( ) + STRING1 ) ;
 }

 SINGLE

Fix style violation in InstallPluginCommand java


<nb> public class CacheLoadAllOperation
 final Set < Data > keysLoaded = cache . loadAll ( filteredKeys , replaceExistingValues ) ;
 shouldBackup = ! keysLoaded . isEmpty ( ) ;
 if ( shouldBackup ) {
 - backupRecords = new HashMap < Data , CacheRecord > ( ) ;
 + backupRecords = new HashMap < Data , CacheRecord > ( keysLoaded . size ( ) ) ;
 for ( Data key : keysLoaded ) {
 - backupRecords . put ( key , cache . getRecord ( key ) ) ;
 + CacheRecord record = cache . getRecord ( key ) ;
 + SINGLE
 + SINGLE
 + if ( record != null ) {
 + backupRecords . put ( key , record ) ;
 + }
 }
 }
 } catch ( CacheException e ) {

Check loaded keys are evicted or not at CacheLoadAllOperation


<nb> public class CodeOutputPanel extends JPanel {
 public CodeOutputPanel ( @ notnull String outputText ) {
 super ( new BorderLayout ( ) ) ;

 - add ( new JTextArea ( outputText ) , BorderLayout . CENTER ) ;
 + JTextArea textArea = new JTextArea ( outputText ) ;
 + textArea . setEditable ( false ) ;
 + add ( textArea , BorderLayout . CENTER ) ;
 }
 }


<nb> public class TransformUncorrelatedScalarToJoin
 SINGLE
 return new JoinNode (
 idAllocator . getNextId ( ) ,
 - JoinNode . Type . FULL ,
 + JoinNode . Type . INNER ,
 rewrittenNode . getInput ( ) ,
 rewrittenNode . getSubquery ( ) ,
 ImmutableList . of ( ) ,

Use INNER join as result of TransformUncorrelatedScalarToJoin optimizer


<nb> import NAMESPACE ;

 import NAMESPACE ;

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

 public class ResettableClassFileTransformerResetTest {

 <nb> import NAMESPACE ;

 import NAMESPACE ;

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

 public class AnnotationValueRenderingDispatcherTest {

 <nb> import NAMESPACE ;
 import NAMESPACE ;

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

Removed import of specialized hamcrest matcher


<nb> public interface AccountMethods

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface AccountMethodsAsync {
 void updateDeliveryDevice ( Device device ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface UserMethods
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 ResponseList < User > lookupUsers ( int [ ] ids ) throws TwitterException ;


<nb> class OptimizeParameters
 if ( varName != null ) {
 stmt = NodeUtil . newVarNode ( varName . getString ( ) , value ) ;
 } else {
 - stmt = IR . exprResult ( value ) ;
 + stmt = IR . exprResult ( value ) . useSourceInfoFrom ( value ) ;
 }
 block . addChildToFront ( stmt ) ;
 compiler . reportCodeChange ( ) ;
 <nb> public final class OptimizeParametersTest extends CompilerTestCase {
 @ override
 public void setUp ( ) {
 enableNormalize ( ) ;
 - enableLineNumberCheck ( false ) ;
 }

 public void testNoRemoval ( ) {

Enable the line number check for OptimizeParametersTest


<nb> public class NotificationsTest extends AndroidTestCase {
 Thread . sleep ( NUMBER0 ) ;
 }

 + Thread . sleep ( NUMBER0 ) ; SINGLE
 +
 Realm realm = Realm . getInstance ( getContext ( ) , false ) ;
 realm . beginTransaction ( ) ;
 Dog dog = realm . createObject ( Dog . class ) ;
 <nb> public class NotificationsTest extends AndroidTestCase {
 Thread . sleep ( NUMBER0 ) ;
 }

 + Thread . sleep ( NUMBER0 ) ; SINGLE
 +
 Realm realm = Realm . getInstance ( getContext ( ) ) ;
 realm . beginTransaction ( ) ;
 for ( int i = NUMBER1 ; i < TEST_SIZE ; i ++ ) {


<nb> public final class ACRAConfiguration implements Serializable {
 keyStoreFactory = builder . keyStoreFactory ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - @ suppresswarnings ( STRING0 )
 - public ACRAConfiguration ( ) {
 - SINGLE
 - this ( null ) ;
 - }
 -

 COMMENT
 COMMENT

remove empty Constructor which resulted anyway always in a NPE


<nb> public final class ComputationState {
 _activeData = _dinfo . filterExpandedColumns ( Arrays . copyOf ( cols , selected ) ) ;
 _activeBC = _bc . filterExpandedColumns ( _activeData . activeCols ( ) ) ;
 _gslvr = new GLMGradientSolver ( _jobKey , _parms , _activeData , ( NUMBER0 - _alpha ) * _lambda , _bc ) ;
 - }
 + assert _beta . length == selected ;
 + } else _activeData = _dinfo ;
 }
 return selected ;
 }
 <nb> public final class ComputationState {
 _gslvr = new GLMGradientSolver ( _jobKey , _parms , _dinfo , ( NUMBER0 - _alpha ) * _lambda , _bc ) ;
 GLMGradientInfo ginfo = _gslvr . getGradient ( beta ) ;
 double [ ] grad = ginfo . _gradient . clone ( ) ;
 - double err = NUMBER1 ;
 + double err = FLOAT0 ;
 ADMM . subgrad ( _alpha * _lambda , beta , grad ) ;
 for ( int c : activeCols ) SINGLE
 if ( grad [ c ] > err ) err = grad [ c ] ;

Fixed glm strong rules added missing assignment when all columns become active


<nb> public class TextField extends Widget implements Disableable {

 public boolean keyTyped ( InputEvent event , char character ) {
 if ( disabled ) return false ;
 + if ( character == NUMBER0 ) return false ;

 Stage stage = getStage ( ) ;
 if ( stage == null || stage . getKeyboardFocus ( ) != TextField . this ) return false ;


<nb> public class OperationSetPresenceSipImpl
 logger . error ( STRING0 , e ) ;
 return false ;
 }
 -
 + }
 + SINGLE
 + else if ( response . getStatusCode ( ) >= NUMBER0
 + && response . getStatusCode ( ) < NUMBER1 )
 + {
 + SINGLE
 + SINGLE
 + }
 SINGLE
 SINGLE
 SINGLE
 - }
 else
 {
 if ( logger . isDebugEnabled ( ) )

Skips provisional response for sip presence operation set


<nb> public final class TvContract {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class TvContract {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add more documentation on start end time of TvContract Program


<nb> public class ImapStore extends Store
 }
 }

 - class ImapMessage extends MimeMessage
 + static class ImapMessage extends MimeMessage
 {
 ImapMessage ( String uid , Folder folder )
 {
 <nb> public class ImapStore extends Store
 }
 }

 - class ImapBodyPart extends MimeBodyPart
 + static class ImapBodyPart extends MimeBodyPart
 {
 public ImapBodyPart ( ) throws MessagingException
 {
 <nb> public class ImapStore extends Store
 }
 }

 - class ImapException extends MessagingException
 + static class ImapException extends MessagingException
 {
 String mAlertText ;

 <nb> public class ImapStore extends Store
 List < ImapResponse > search ( ) throws IOException , MessagingException ;
 }

 - private class FetchBodyCallback implements ImapResponseParser . IImapResponseCallback
 + private static class FetchBodyCallback implements ImapResponseParser . IImapResponseCallback
 {
 private HashMap < String , Message > mMessageMap ;

 <nb> public class ImapStore extends Store
 }
 }

 - private class FetchPartCallback implements ImapResponseParser . IImapResponseCallback
 + private static class FetchPartCallback implements ImapResponseParser . IImapResponseCallback
 {
 private Part mPart ;

Don t reference the enclosing type instance when it s not used memory optimisation


<nb> public class ShadowBundle {
 }

 @ implementation
 - public String getString ( String key , String defaultValue ) {
 - return map . containsKey ( key ) ? ( String ) map . get ( key ) : defaultValue ;
 + public String getString ( String key , String defaultValue ) {
 + Object value = map . get ( key ) ;
 + return value == null ? ( String ) value : defaultValue ;
 }

 @ implementation


<nb> public class MainFrame extends JPanel implements DataProvider , Disposable {
 myTextFilter = myFilterUi . createTextFilter ( ) ;
 myToolbar = createActionsToolbar ( ) ;

 - myDetailsSplitter = new OnePixelSplitter ( true , FLOAT0 ) ;
 + myDetailsSplitter = new OnePixelSplitter ( true , STRING0 , FLOAT0 ) ;
 myDetailsSplitter . setFirstComponent ( setupScrolledGraph ( ) ) ;
 setupDetailsSplitter ( uiProperties . isShowDetails ( ) ) ;

 <nb> public class MainFrame extends JPanel implements DataProvider , Disposable {
 }
 } , this ) ;

 - myChangesBrowserSplitter = new OnePixelSplitter ( false , FLOAT0 ) ;
 + myChangesBrowserSplitter = new OnePixelSplitter ( false , STRING1 , FLOAT0 ) ;
 myChangesBrowserSplitter . setFirstComponent ( progressStripe ) ;
 myChangesBrowserSplitter . setSecondComponent ( myChangesLoadingPane ) ;

vcs log remember splitter proportions in log window


<nb> public class EditArticleAction extends PortletAction {
 expireArticles ( req ) ;
 }

 - sendRedirect ( req , res ) ;
 + if ( Validator . isNotNull ( cmd ) ) {
 + sendRedirect ( req , res ) ;
 + }
 }
 catch ( Exception e ) {
 if ( e != null &&


<nb> public interface GradleConnection {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface GradleConnection {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 < T > ModelBuilder < Set < T > > models ( Class < T > modelType ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GridCellImpl implements GridCell {
 public void resetDropOver ( TabInfo tabInfo ) {
 ( ( RunnerContentUi ) myContext ) . myTabs . resetDropOver ( tabInfo ) ;
 }
 +
 + @ override
 + protected TabLabel createTabLabel ( TabInfo info ) {
 + return new TabLabel ( this , info ) {
 + @ override
 + public void setAlignmentToCenter ( boolean toCenter ) {
 + super . setAlignmentToCenter ( false ) ;
 + }
 + } ;
 + }
 } . setDataProvider ( new DataProvider ( ) {
 @ override
 @ nullable


<nb>
 package NAMESPACE ;

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

Shortened the first statement of ChannelHandler description


<nb> public class ApplicationImpl extends PlatformComponentManagerImpl implements App
 private final boolean myTestModeFlag ;
 private final boolean myHeadlessMode ;
 private final boolean myCommandLineMode ;
 - private static volatile Boolean ourIsRunningFromSources ;

 private final boolean myIsInternal ;
 private final String myName ;
 <nb> public class ApplicationImpl extends PlatformComponentManagerImpl implements App
 return myCommandLineMode ;
 }

 + private static class Holder {
 + private static final boolean ourIsRunningFromSources = new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ;
 + }
 public static boolean isRunningFromSources ( ) {
 - if ( ourIsRunningFromSources == null ) {
 - ourIsRunningFromSources = new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ;
 - }
 - return ourIsRunningFromSources ;
 + return Holder . ourIsRunningFromSources ;
 }

 @ notnull


<nb> import NAMESPACE ;
 import NAMESPACE ;

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


<nb> public class ErrorCollector extends Verifier {
 COMMENT
 COMMENT
 public < T > void checkThat ( final T value , final Matcher < T > matcher ) {
 - checkSucceeds ( new Callable < Object > ( ) {
 - public Object call ( ) throws Exception {
 - assertThat ( value , matcher ) ;
 - return value ;
 - }
 - } ) ;
 + checkThat ( STRING0 , value , matcher ) ;
 }

 COMMENT
 <nb> public class ErrorCollector extends Verifier {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public Object checkSucceeds ( Callable < Object > callable ) {
 try {
 <nb> public class ErrorCollector extends Verifier {
 } catch ( Throwable e ) {
 addError ( e ) ;
 return null ;
 - }
 + }
 }
 }

invoke overloaded method with default value instead of copy paste


<nb>
 COMMENT
 COMMENT
 COMMENT
 -
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;

 import static NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 public class Map {

 private final PokemonGo api ;
 <nb> public class Map {
 result . addPokestops ( groupedForts . get ( FortTypeOuterClass . FortType . CHECKPOINT ) ) ;
 }

 - lastMapObjects = result ;
 - lastMapUpdate = System . currentTimeMillis ( ) ;
 + if ( useCache ) {
 + cachedMapObjects . update ( result ) ;
 + result = cachedMapObjects ;
 + lastMapUpdate = System . currentTimeMillis ( ) ;
 + }
 +
 return result ;
 }


<nb> public class BatchingPhysicalTransactionAppenderTest
 long ticket = appendCounter . incrementAndGet ( ) ;
 SINGLE
 Future < Object > forceFuture = t2 . executeDontWait ( forceAfterAppend ( appender , ticket ) ) ;
 - System . out . println ( t2 . waitUntilWaiting ( ) ) ;
 forceThreadControl . letLoose ( ) ;
 forceFuture . get ( ) ;
 }


<nb> public class InputMethodService extends AbstractInputMethodService {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class InputMethodManager {

 try {
 if ( DEBUG ) Log . v ( TAG , STRING0 + mCurMethod ) ;
 - mCurMethod . updateSelection ( mCursorSelStart , mCursorSelEnd ,
 - selStart , selEnd , candidatesStart , candidatesEnd ) ;
 + final int oldSelStart = mCursorSelStart ;
 + final int oldSelEnd = mCursorSelEnd ;
 + SINGLE
 + SINGLE
 + SINGLE
 mCursorSelStart = selStart ;
 mCursorSelEnd = selEnd ;
 mCursorCandStart = candidatesStart ;
 mCursorCandEnd = candidatesEnd ;
 + mCurMethod . updateSelection ( oldSelStart , oldSelEnd ,
 + selStart , selEnd , candidatesStart , candidatesEnd ) ;
 } catch ( RemoteException e ) {
 Log . w ( TAG , STRING1 + mCurId , e ) ;
 }

Don t send the same values to onUpdateSelection repeatedly


<nb> public final class Buffer implements BufferedSource , BufferedSink , Cloneable {
 fromIndex -= segmentByteCount ;
 } else {
 byte [ ] data = s . data ;
 - for ( long pos = s . pos + fromIndex , limit = s . limit ; pos < limit ; pos ++ ) {
 - if ( data [ ( int ) pos ] == b ) return offset + pos - s . pos ;
 + for ( int pos = ( int ) ( s . pos + fromIndex ) , limit = s . limit ; pos < limit ; pos ++ ) {
 + if ( data [ pos ] == b ) return offset + pos - s . pos ;
 }
 fromIndex = NUMBER0 ;
 }


<nb> public class ReplicaSetStatus {

 } catch ( final Exception e ) {

 - if ( ! _logger . get ( ) . isLoggable ( Level . WARNING ) ) {
 - _ok = false ;
 - return ;
 - }
 -
 final StringBuilder logError = ( new StringBuilder ( STRING0 ) ) . append ( _addr ) ;

 if ( ! ( ( _ok ) ? true : ( Math . random ( ) > FLOAT0 ) ) ) return ;


<nb> public final class MasterBlockInfo {
 private final Map < Long , Integer > mWorkerIdToAlias ;

 public MasterBlockInfo ( long blockId , long length ) {
 - SINGLE
 + SINGLE
 mBlockId = blockId ;
 mLength = length ;

 <nb> public final class MasterWorkerInfo {
 private long mLastUpdatedTimeMs ;
 COMMENT
 private boolean mIsRegistered ;
 - SINGLE
 + SINGLE
 COMMENT
 private List < Long > mTotalBytesOnTiers ;
 COMMENT

Tagging TODOs in tachyon master block meta


<nb> public class Neo4jMBean extends StandardMBean

 public static < T > T getBean ( int instanceId , Class < T > beanType )
 {
 - if ( beanType . isInterface ( ) && beanType . getPackage ( ) . equals ( STRING0 ) )
 + if ( beanType . isInterface ( )
 + && beanType . getPackage ( ) . getName ( ) . equals (
 + STRING0 ) )
 {
 if ( PROXY_MAKER == null )
 {


<nb> public class CliClient
 sessionState . out . println ( STRING0 ) ;
 try
 {
 + sessionState . out . println ( STRING1 + thriftClient . describe_cluster_name ( ) ) ;
 sessionState . out . println ( STRING2 + thriftClient . describe_snitch ( ) ) ;
 sessionState . out . println ( STRING3 + thriftClient . describe_partitioner ( ) ) ;


<nb> public class ConstrainedProperty implements Constrained {
 for ( Object constraintFactory : candidateConstraints ) {

 Constraint c ;
 - if ( constraintFactory instanceof org . codehaus . groovy . grails . validation . ConstraintFactory ) {
 - c = ( ( org . codehaus . groovy . grails . validation . ConstraintFactory ) constraintFactory ) . newInstance ( ) ;
 - }
 - else if ( constraintFactory instanceof ConstraintFactory ) {
 + if ( constraintFactory instanceof ConstraintFactory ) {
 c = ( ( ConstraintFactory ) constraintFactory ) . newInstance ( ) ;
 }
 else {
 <nb> public class GrailsDomainClassValidator implements CascadingValidator , GrailsApp
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ suppresswarnings ( { STRING0 , STRING1 } )
 public void validate ( Object obj , Errors errors , boolean cascade ) {


<nb> public abstract class AbstractApplicationContext extends DefaultResourceLoader
 return getBeanFactory ( ) . getBeansWithAnnotation ( annotationType ) ;
 }

 - public Map < String , Object > getBeansWithAnnotation (
 - Class < ? extends Annotation > annotationType , boolean includeNonSingletons , boolean allowEagerInit )
 - throws BeansException {
 -
 - return getBeanFactory ( ) . getBeansWithAnnotation ( annotationType , includeNonSingletons , allowEagerInit ) ;
 - }
 -
 public < A extends Annotation > A findAnnotationOnBean ( String beanName , Class < A > annotationType ) {
 return getBeanFactory ( ) . findAnnotationOnBean ( beanName , annotationType ) ;
 }

removed getBeansWithAnnotation Class boolean boolean method from ListableBeanFactory reimplemented getBeansWithAnnotation Class to avoid use of getBeanNamesForType Object class


<nb> import NAMESPACE ;
 public interface HostedConnection extends MessageConnection
 {
 COMMENT
 + COMMENT
 + COMMENT
 + public Server getServer ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public int getId ( ) ;
 <nb> public class DefaultServer implements Server
 {
 id = nextId . getAndIncrement ( ) ;
 }
 -
 +
 + public Server getServer ( )
 + {
 + return DefaultServer . this ;
 + }
 +
 public int getId ( )
 {
 return id ;

HostedConnection can now supply the Server instance


<nb> public class StripedFileTestUtil {
 public static LocatedBlocks waitForReconstructionFinished ( Path file ,
 DistributedFileSystem fs , int groupSize )
 throws Exception {
 + LOG . info ( STRING0 + file
 + + STRING1 + groupSize ) ;
 final int attempts = NUMBER0 ;
 for ( int i = NUMBER1 ; i < attempts ; i ++ ) {
 LocatedBlocks locatedBlocks = getLocatedBlocks ( file , fs ) ;
 <nb> public class TestReconstructStripedBlocks {

 SINGLE
 SINGLE
 + StripedFileTestUtil . waitForReconstructionFinished ( filePath , fs ,
 + GROUP_SIZE ) ;
 boolean reconstructed = false ;
 for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) {
 NumberReplicas num = null ;

Fix TestReconstructStripedBlocks testCountLiveReplicas test failures


<nb>
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , Prog
 COMMENT
 COMMENT
 COMMENT
 - public STATE onContentWriteProgess ( long amount , long current , long total ) {
 + public STATE onContentWriteProgress ( long amount , long current , long total ) {
 return STATE . CONTINUE ;
 }
 }
 <nb> public interface ProgressAsyncHandler < T > extends AsyncHandler < T > {
 COMMENT
 COMMENT
 COMMENT
 - STATE onContentWriteProgess ( long amount , long current , long total ) ;
 + STATE onContentWriteProgress ( long amount , long current , long total ) ;

 }


<nb> public class LuceneInvertedIndex implements InvertedIndex , IndexReader . ReaderClos
 private AtomicInteger totalWords = new AtomicInteger ( NUMBER0 ) ;
 private int batchSize = NUMBER1 ;
 private List < List < VocabWord > > miniBatches = new ArrayList < > ( ) ;
 - private List < VocabWord > currMiniBatch = new CopyOnWriteArrayList < > ( ) ;
 + private List < VocabWord > currMiniBatch = Collections . synchronizedList ( new ArrayList < VocabWord > ( ) ) ;
 private double sample = NUMBER0 ;
 private AtomicLong nextRandom = new AtomicLong ( NUMBER2 ) ;


<nb> public class Lexer
 case ( STRING0 ) :
 {
 consume ( ) ;
 -
 if ( la ( ) == STRING1 )
 {
 consume ( ) ;
 }
 - break CONSUME_LOOP ;
 + break CONSUME_LOOP ;
 }
 case ( STRING1 ) :
 {
 <nb> public class Lexer
 case ( STRING2 ) :
 {
 consume ( ) ;
 - if ( la ( NUMBER0 ) == STRING3 )
 + if ( la ( ) == STRING3 )
 {
 consume ( ) ;
 break CONSUME_LOOP ;


<nb> public class FMLDeobfuscatingRemapper extends Remapper {
 String methodDescriptor = name + desc ;
 return methodMap != null && methodMap . containsKey ( methodDescriptor ) ? methodMap . get ( methodDescriptor ) : name ;
 }
 +
 + @ override
 + public String mapSignature ( String signature , boolean typeSignature )
 + {
 + SINGLE
 + if ( signature != null && signature . contains ( STRING0 ) )
 + {
 + return null ;
 + }
 + return super . mapSignature ( signature , typeSignature ) ;
 + }

 private Map < String , String > getFieldMap ( String className )
 {

Fix ASM SignatureReader choking on lambda signatures generated by JDT


<nb> public class DirectorySettingsForm
 COMMENT
 COMMENT
 COMMENT
 - private JCheckBox encryptionBox = new JCheckBox (
 + private JCheckBox encryptionBox = new SIPCommCheckBox (
 Resources . getString ( STRING0 ) ) ;

 COMMENT

Use the Jitsi L F on the SSL checkbox in the LDAP config form


<nb> public abstract class JSON implements JSONStreamAware , JSONAware {
 DEFAULT_GENERATE_FEATURE = features ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static void setDefaultTypeKey ( String typeKey ) {
 DEFAULT_TYPE_KEY = typeKey ;
 ParserConfig . global . symbolTable . addSymbol ( typeKey ,

add JSON setDefaultTypeKey java doc since info


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 public class CountingRetry implements RetryPolicy {

 private final int mMaxRetries ;
 - private int mCount = NUMBER0 ;
 + private int mCount = - NUMBER1 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public CountingRetry ( int maxRetries ) {
 Preconditions . checkArgument ( maxRetries > NUMBER0 , STRING0 ) ;
 mMaxRetries = maxRetries ;
 <nb> public class CountingRetry implements RetryPolicy {

 @ override
 public boolean attemptRetry ( ) {
 - if ( mMaxRetries > mCount ) {
 - mCount ++ ;
 - return true ;
 - }
 - return false ;
 + ++ mCount ;
 + return mCount < mMaxRetries ;
 }
 }

simplifying the condition and adding javadoc


<nb> public class ResequenceDSLTest extends GroovyRendererTestSupport {

 @ test
 public void testResequencer ( ) throws Exception {
 - String dsl = STRING0 ;
 + String dsl = STRING1 ;
 String expected = STRING1 ;

 assertEquals ( expected , render ( dsl ) ) ;


<nb> public class ErrorActivity extends AppCompatActivity {
 public static final int REQUESTED_STREAM = NUMBER0 ;
 public static final String SEARCHED_STRING = STRING0 ;
 public static final String REQUESTED_STREAM_STRING = STRING1 ;
 - public static final String ERROR_EMAIL_ADDRESS = STRING2 ;
 + public static final String ERROR_EMAIL_ADDRESS = STRING3 ;
 public static final String ERROR_EMAIL_SUBJECT = STRING4 + BuildConfig . VERSION_NAME ;

 private List < Exception > errorList ;


<nb> public class IndexBufferObjectSubData implements IndexData {
 public void setIndices ( short [ ] indices , int offset , int count ) {
 isDirty = true ;
 buffer . clear ( ) ;
 - buffer . put ( indices ) ;
 + buffer . put ( indices , offset , count ) ;
 buffer . flip ( ) ;
 byteBuffer . position ( NUMBER0 ) ;
 byteBuffer . limit ( count < < NUMBER1 ) ;

fixed bug in IndexBufferObjectSubData thanks Eric


<nb> public class Configuration
 STRING0 +
 STRING1 ) ;
 FMLLog . warning ( STRING2 , fileName , category , key , defaultID ) ;
 - defaultID = upper ;
 + defaultID = upper - NUMBER0 ;
 }

 if ( Block . blocksList [ defaultID ] == null && ! configMarkers [ defaultID ] )

Fixed AIOOB issue with new sanity check in getBlock


<nb> public final class CommandLineRunnerTest extends TestCase {
 compileArgs ( expectedOutput , null ) ;
 }

 + @ safevarargs
 private final void compileFilesError (
 DiagnosticType expectedError , FlagEntry < JsSourceType > . . . entries ) {
 setupFlags ( entries ) ;
 compileArgs ( STRING0 , expectedError ) ;
 }

 + @ safevarargs
 private final void setupFlags ( FlagEntry < JsSourceType > . . . entries ) {
 for ( FlagEntry < JsSourceType > entry : entries ) {
 args . add ( STRING1 + entry . flag . flagName + STRING2 + entry . value ) ;

Add SafeVarargs to methods that cause warnings again


<nb> public class DeepLearningV3 extends SupervisedModelBuilderSchema < DeepLearning , De
 SINGLE
 static public String [ ] own_fields = new String [ ] {
 SINGLE
 - STRING0 ,
 + SINGLE
 STRING1 ,
 STRING2 ,
 STRING3 ,
 <nb> public class DeepLearningV3 extends SupervisedModelBuilderSchema < DeepLearning , De
 SINGLE
 SINGLE

 - @ api ( help = STRING4 , level = API . Level . expert , direction = API . Direction . INOUT )
 - public boolean keep_cross_validation_splits ;
 + SINGLE
 + SINGLE

 COMMENT
 COMMENT

Remove keep_cross_validation_splits for now from DL until nfolds is implemented


<nb> public abstract class SanitizedSecret {
 @ jsonproperty ( STRING0 ) @ nullable String type ,
 @ jsonproperty ( STRING1 ) @ nullable Map < String , String > generationOptions ,
 @ jsonproperty ( STRING2 ) long expiry ,
 - @ jsonproperty ( STRING3 ) @ nullable List < String > groups ) {
 + @ jsonproperty ( STRING3 ) List < String > groups ) {
 ImmutableMap < String , String > meta =
 ( metadata == null ) ? ImmutableMap . of ( ) : ImmutableMap . copyOf ( metadata ) ;
 ImmutableMap < String , String > genOptions =


<nb> public abstract class TestSupport extends TestCase {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public static void assertFileNotExists ( String filename ) {
 + File file = new File ( filename ) . getAbsoluteFile ( ) ;
 + assertFalse ( STRING0 + filename + STRING1 , file . exists ( ) ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class VcsInfoCollector {
 }

 return SourceControlInfo . builder ( )
 + . setRevisionId ( vcCmdLineInterface . currentRevisionId ( ) )
 . setDirtyFiles ( vcCmdLineInterface . changedFiles ( STRING0 ) )
 . setFilesChangedFromMasterBranchPoint ( filesChangedFromMasterBranchPoint )
 . build ( ) ;
 <nb> public class VcsInfoCollector {
 @ value.immutable
 @ buckstyleimmutable
 interface AbstractSourceControlInfo {
 + String getRevisionId ( ) ;
 ImmutableSet < String > getDirtyFiles ( ) ;
 Optional < ImmutableSet < String > > getFilesChangedFromMasterBranchPoint ( ) ;
 }


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

 public class main {
 <nb> public class main {
 COMMENT
 COMMENT
 public static void main ( String [ ] args ) {
 + Locale locale = new Locale ( STRING0 , STRING1 ) ;
 + Locale . setDefault ( locale ) ;
 +
 CommandLineParser parser = new PosixParser ( ) ;
 CommandLine commandLine ;

 <nb> import NAMESPACE ;

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

 <nb> public class main {
 COMMENT
 COMMENT
 public static void main ( String [ ] args ) {
 + Locale locale = new Locale ( STRING0 , STRING1 ) ;
 + Locale . setDefault ( locale ) ;
 +
 CommandLineParser parser = new PosixParser ( ) ;
 CommandLine commandLine ;

Set the default local to en US to avoid locale specific weirdness


<nb> class GithubErrorMessageRaw {

 private static class Error {
 @ nullable public String resource ;
 + @ nullable public String field ;
 @ nullable public String code ;
 @ nullable public String message ;
 }
 <nb> class GithubErrorMessageRaw {
 else {
 StringBuilder s = new StringBuilder ( message ) ;
 for ( Error e : errors ) {
 - s . append ( STRING0 ) . append ( STRING1 ) . append ( e . resource ) . append ( STRING2 ) . append ( e . code ) . append ( STRING3 ) . append ( e . message ) ;
 + s . append ( STRING0 ) . append ( STRING1 ) . append ( e . resource ) . append ( STRING4 ) . append ( e . field ) . append ( STRING2 ) . append ( e . code ) . append ( STRING3 )
 + . append ( e . message ) ;
 }
 return s . toString ( ) ;
 }


<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 interface CustomDomChildrenDescription extends AbstractDomChildrenDescrip
 }

 @ override
 - public PomTarget findDeclaration ( @ notnull EvaluatedXmlName name ) {
 + public PomTarget findDeclaration ( DomElement parent , @ notnull EvaluatedXmlName name ) {
 return null ;
 }

 <nb> public interface CustomDomChildrenDescription extends AbstractDomChildrenDescrip
 public abstract Set < EvaluatedXmlName > getCompletionVariants ( @ notnull DomElement parent ) ;

 @ nullable
 - public abstract PomTarget findDeclaration ( @ notnull EvaluatedXmlName name ) ;
 + public abstract PomTarget findDeclaration ( DomElement parent , @ notnull EvaluatedXmlName name ) ;

 @ nullable
 public abstract PomTarget findDeclaration ( @ notnull DomElement child ) ;


<nb> final class WebViewInputDispatcher {
 return false ;
 }
 long downDuration = event . getEventTime ( ) - event . getDownTime ( ) ;
 - return downDuration < TAP_TIMEOUT ;
 + return downDuration < LONG_PRESS_TIMEOUT ;
 }

 private void enqueueDoubleTapLocked ( MotionEvent event ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ServerStatus {
 public void setStatsMode ( boolean statsMode ) {
 if ( statsMode ) {
 addCapability ( Capability . STATSMODE ) ;
 + } else {
 + removeCapability ( Capability . STATSMODE ) ;
 }
 }

 + private ServerStatus removeCapability ( Capability capability ) {
 + this . capabilitySet . remove ( capability ) ;
 + return this ;
 + }
 +
 public void setLocalMode ( boolean localMode ) {
 if ( localMode ) {
 addCapability ( Capability . LOCALMODE ) ;
 + } else {
 + removeCapability ( Capability . LOCALMODE ) ;
 }
 }
 }

Adding methods to remove capabilities fixing some setters


<nb> public final class SystemServer {
 SINGLE
 SINGLE
 if ( isEmulator ) {
 - Slog . i ( TAG , STRING0 ) ;
 + Slog . i ( TAG , STRING1 ) ;
 } else if ( mFactoryTestMode == FactoryTest . FACTORY_TEST_LOW_LEVEL ) {
 Slog . i ( TAG , STRING2 ) ;
 } else if ( ! context . getPackageManager ( ) . hasSystemFeature


<nb> public class WindowManagerService extends IWindowManager . Stub

 } else if ( currentConfig != null ) {
 SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 mTempConfiguration . setToDefaults ( ) ;
 + mTempConfiguration . fontScale = currentConfig . fontScale ;
 if ( computeNewConfigurationLocked ( mTempConfiguration ) ) {
 if ( currentConfig . diff ( mTempConfiguration ) != NUMBER0 ) {
 mWaitingForConfig = true ;

Fixing font scale in WindowManagerService


<nb> public class SerializerBaseTest extends TestCase {
 assertTrue ( s2 . toString ( ) . contains ( STRING0 ) ) ;
 }

 + public void test_multi_dim_array ( ) {
 + int [ ] [ ] arr = new int [ ] [ ] { { NUMBER0 , NUMBER1 , NUMBER2 } , { NUMBER3 , NUMBER4 , NUMBER5 } } ;
 + int [ ] [ ] arr2 = ( int [ ] [ ] ) Utils . clone ( arr , Serializer . BASIC_SERIALIZER ) ;
 + assertArrayEquals ( arr , arr2 ) ;
 + }
 +
 + public void test_multi_dim_array2 ( ) {
 + Object [ ] [ ] arr = new Object [ ] [ ] { { NUMBER0 , NUMBER1 , NUMBER2 } , { NUMBER3 , NUMBER4 , NUMBER5 } } ;
 + Object [ ] [ ] arr2 = ( Object [ ] [ ] ) Utils . clone ( arr , Serializer . BASIC_SERIALIZER ) ;
 + assertArrayEquals ( arr , arr2 ) ;
 + }
 +
 +
 }

Add serialization test for multi dimensional arrays


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

 + COMMENT
 + COMMENT
 + COMMENT
 public class EmptyEnumeration implements Enumeration {

 static EmptyEnumeration staticInstance = new EmptyEnumeration ( ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT

 public class LRUCache
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class Queue {
 private Vector vector = new Vector ( ) ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public final class SimpleHashtable implements Enumeration
 {
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public final class SimplePool {

Deprecate classes that are no longer used


<nb> public class GenericMessage < T > implements Message < T > , Serializable {
 else {
 headers = new HashMap < String , Object > ( headers ) ;
 }
 - this . headers = new MessageHeaders ( headers ) ;
 + this . headers = createMessageHeaders ( headers ) ;
 this . payload = payload ;
 }

 + protected MessageHeaders createMessageHeaders ( Map < String , Object > headers ) {
 + return new MessageHeaders ( headers ) ;
 + }
 +
 public MessageHeaders getHeaders ( ) {
 return this . headers ;
 }

Add method to create MessageHeaders in Message


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 public class IpnbStreamPanel extends IpnbCodeOutputPanel < IpnbStreamOutputCell > {
 public IpnbStreamPanel ( @ notnull final IpnbStreamOutputCell cell ) {
 super ( cell ) ;
 }
 +
 + @ override
 + protected JComponent createViewPanel ( ) {
 + final JComponent viewPanel = super . createViewPanel ( ) ;
 + if ( STRING0 . equals ( myCell . getStream ( ) ) ) {
 + viewPanel . setBackground ( MessageType . ERROR . getPopupBackground ( ) ) ;
 + }
 + return viewPanel ;
 + }
 }


<nb> public class PointSetResource {
 if ( pset == null ) {
 return Response . status ( Status . NOT_FOUND ) . entity ( STRING0 ) . build ( ) ;
 }
 + if ( pset . capacity > NUMBER0 ) {
 + SINGLE
 + return Response . ok ( ) . entity ( new PointSetShort ( pointSetId , pset ) ) . build ( ) ;
 + }
 return Response . ok ( ) . entity ( new StreamingOutput ( ) {
 @ override
 public void write ( OutputStream output ) throws IOException , WebApplicationException {

do not return complete description of enormous pointsets


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

 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class UpdateManager {
 private static final UpdateManager instance = new UpdateManager ( ) ;
 private final AbstractReleaseCallback releaseCallback ;


<nb> public class ByWord {
 indicator . checkCanceled ( ) ;

 SINGLE
 + SINGLE
 + SINGLE

 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 SINGLE
 SINGLE
 SINGLE
 <nb> public class ByWord {
 @ notnull List < InlineChunk > words2 ,
 @ notnull FairDiffIterable iterable ,
 @ notnull ProgressIndicator indicator ) {
 - SINGLE
 List < Range > newRanges = new ArrayList < Range > ( ) ;

 for ( Range range : iterable . iterateUnchanged ( ) ) {


<nb> public class OHttpGraphResponse extends OHttpResponse {
 json . writeAttribute ( STRING0 , edge . getIdentity ( ) ) ;
 json . writeAttribute ( STRING1 , edge . getRecord ( ) . getClassName ( ) ) ;

 - json . writeAttribute ( STRING2 , edge . getVertex ( Direction . OUT ) . getId ( ) ) ;
 - json . writeAttribute ( STRING3 , edge . getVertex ( Direction . IN ) . getId ( ) ) ;
 + json . writeAttribute ( STRING4 , edge . getVertex ( Direction . OUT ) . getId ( ) ) ;
 + json . writeAttribute ( STRING5 , edge . getVertex ( Direction . IN ) . getId ( ) ) ;

 for ( String field : edge . getPropertyKeys ( ) ) {
 final Object v = edge . getProperty ( field ) ;

Changed Edge props From To In Out as before


<nb> public class Picasso {
 COMMENT
 public enum LoadedFrom {
 MEMORY ( Color . GREEN ) ,
 - DISK ( Color . YELLOW ) ,
 + DISK ( Color . BLUE ) ,
 NETWORK ( Color . RED ) ;

 final int debugColor ;

Using colourblind friendly LoadedFrom indicators


<nb> public class DefaultBroadcaster implements Broadcaster {

 releaseExternalResources ( ) ;
 if ( notifierFuture != null ) {
 - notifierFuture . cancel ( true ) ;
 + notifierFuture . cancel ( false ) ;
 }

 if ( asyncWriteFuture != null ) {
 - asyncWriteFuture . cancel ( true ) ;
 + asyncWriteFuture . cancel ( false ) ;
 }

 if ( bc != null ) {


<nb> public class ReaderBlogIdPostIdList extends ArrayList < ReaderBlogIdPostId >
 public ReaderBlogIdPostIdList ( Serializable serializedList ) {
 super ( ) ;
 if ( serializedList != null && serializedList instanceof ArrayList ) {
 + SINGLE
 ArrayList < ReaderBlogIdPostId > list = ( ArrayList < ReaderBlogIdPostId > ) serializedList ;
 for ( ReaderBlogIdPostId idPair : list ) {
 this . add ( idPair ) ;

Suppress unchecked warning in ReaderBlogIdPostIdList


<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
 SINGLE
 SINGLE
 byteBuf . writerIndex ( byteBuf . writerIndex ( ) + localReadAmount ) ;
 - expandReadBuffer ( byteBuf ) ;

 read = true ;
 } else if ( localReadAmount < NUMBER0 ) {
 <nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne

 @ override
 protected void completed0 ( Void result , AioSocketChannel channel ) {
 - channel . beginRead ( ) ;
 ( ( AbstractAioUnsafe ) channel . unsafe ( ) ) . connectSuccess ( ) ;
 channel . pipeline ( ) . fireChannelActive ( ) ;
 + channel . beginRead ( ) ;
 }

 @ override

Ensure unmodified buffer delivered via pipeline after read completes but before next read begins


<nb> public abstract class ArrangementSettingsPanel extends CodeStyleAbstractPanel {

 @ override
 public void apply ( CodeStyleSettings settings ) {
 + myMatchingRulesPanel . hideEditor ( ) ;
 +
 CommonCodeStyleSettings commonSettings = settings . getCommonSettings ( myLanguage ) ;
 commonSettings . setArrangementSettings ( createSettings ( ) ) ;
 if ( myForceArrangementPanel != null ) {
 <nb> public class ArrangementMatchingRulesPanel extends JPanel implements DataProvide
 myControl . setRulesAliases ( aliases ) ;
 }

 + public void hideEditor ( ) {
 + myControl . hideEditor ( ) ;
 + }
 +
 @ nullable
 @ override
 public Object getData ( @ nonnls String dataId ) {


<nb> public class MessageProvider extends ContentProvider
 @ override
 public Long getField ( final MessageInfoHolder source )
 {
 - return ( ( LocalStore . LocalMessage ) source . message ) . getId ( ) ;
 + return source . message . getId ( ) ;
 }
 }
 public static class CountExtractor < T > implements FieldExtractor < T , Integer >


<nb> public class TestHostConfigAutomaticDeployment extends TomcatBaseTest {
 true , false , false , XML_COOKIE_NAME , REDEPLOY ) ;
 }

 + @ test
 + public void testModifyXmlDirUpdateDir ( ) throws Exception {
 + doTestModify ( true , false , false , false , true , DIR ,
 + true , false , true , XML_COOKIE_NAME , NONE ) ;
 + }
 +
 private void doTestModify ( boolean startXml , boolean startExternalWar ,
 boolean startExternalDir , boolean startWar , boolean startDir ,
 int toModify , boolean resultXml , boolean resultWar ,
 <nb> public class TestHostConfigAutomaticDeployment extends TomcatBaseTest {
 Assert . assertNull ( newContext ) ;
 }
 if ( ! resultWar && ! resultDir ) {
 - if ( resultXml ) {
 + if ( resultXml && ! startExternalWar && ! startExternalDir ) {
 Assert . assertEquals ( LifecycleState . FAILED , newContext . getState ( ) ) ;
 } else {
 Assert . assertNull ( newContext ) ;


<nb> public class Table
 COMMENT
 COMMENT
 COMMENT
 - public void doGC ( )
 + public void forceCleanup ( )
 {
 Set < String > columnFamilies = tableMetadata_ . getColumnFamilies ( ) ;
 for ( String columnFamily : columnFamilies )
 <nb> public final class StorageService implements IEndPointStateChangeSubscriber , Sto
 doBootstrap ( nodes ) ;
 }

 - public void doGC ( )
 + public void forceTableCleanup ( )
 {
 List < String > tables = DatabaseDescriptor . getTables ( ) ;
 for ( String tName : tables )
 {
 Table table = Table . open ( tName ) ;
 - table . doGC ( ) ;
 + table . forceCleanup ( ) ;
 }
 }

 <nb> public interface StorageServiceMBean
 COMMENT
 COMMENT
 COMMENT
 - public void doGC ( ) ;
 + public void forceTableCleanup ( ) ;

 COMMENT
 COMMENT


<nb> public class JobManager implements DeploymentManager , ExtendedManagementProtocol

 SINGLE
 final ExecutionState executionState = connectedVertex . getExecutionState ( ) ;
 + if ( executionState == ExecutionState . FINISHED ) {
 + return ConnectionInfoLookupResponse . createReceiverFoundAndReady ( ) ;
 + }
 +
 if ( executionState != ExecutionState . RUNNING && executionState != ExecutionState . FINISHING ) {
 return ConnectionInfoLookupResponse . createReceiverNotReady ( ) ;
 }
 <nb> public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc
 + transferEnvelope . getSource ( ) + STRING0 ) ;
 }

 - if ( receiverList . getTotalNumberOfReceivers ( ) == NUMBER0 ) {
 - throw new IOException ( STRING1 + transferEnvelope . getSequenceNumber ( )
 - + STRING2 + transferEnvelope . getSource ( ) + STRING3 ) ;
 - }
 -
 SINGLE
 if ( transferEnvelope . getBuffer ( ) == null ) {
 processEnvelopeEnvelopeWithoutBuffer ( transferEnvelope , receiverList ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class IdentifierTable {
 - private THashMap < String , String > myMap = new THashMap < String , String > ( NUMBER0 , FLOAT0 ) ;
 + private THashMap < String , String > myMap = new THashMap < String , String > ( NUMBER0 , FLOAT0 ) ;

 - public String intern ( String name ) {
 - String entry = myMap . get ( name ) ;
 - if ( entry == null ) {
 - myMap . put ( name , name ) ;
 - entry = name ;
 - }
 - return entry ;
 + public String intern ( String name ) {
 + String entry = myMap . get ( name ) ;
 + if ( entry == null ) {
 + name = new String ( name ) ;
 + myMap . put ( name , name ) ;
 + entry = name ;
 }
 + return entry ;
 + }
 }

Optimizing garbage memory allocations for repository index queries


<nb> public class RandomUtils {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RandomUtils {
 if ( min == max ) {
 return min ;
 }
 -
 - Random random = new Random ( ) ;
 - return min + random . nextInt ( max - min ) ;
 + return min + new Random ( ) . nextInt ( max - min ) ;
 }

 COMMENT


<nb> class Http2Parser {
 }

 - void setHpackDecoder ( HpackDecoder hpackDecoder ) {
 - this . hpackDecoder = hpackDecoder ;
 - }
 -
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class XaLogicalLog implements LogLoader
 {
 XaTransaction xaTx = xaRm . getXaTransaction ( xid ) ;
 xaTx . setCommitTxId ( txId ) ;
 - COMMENT
 - COMMENT
 - COMMENT
 + cacheTxStartPosition ( txId , startEntry . getMasterId ( ) , startEntry ) ;
 xaRm . injectOnePhaseCommit ( xid ) ;
 registerRecoveredTransaction ( txId ) ;
 }
 <nb> public class XaLogicalLog implements LogLoader
 {
 XaTransaction xaTx = xaRm . getXaTransaction ( xid ) ;
 xaTx . setCommitTxId ( txId ) ;
 - COMMENT
 - COMMENT
 - COMMENT
 + cacheTxStartPosition ( txId , identifier , startEntry ) ;
 xaRm . injectTwoPhaseCommit ( xid ) ;
 registerRecoveredTransaction ( txId ) ;
 }
 <nb> public class XaLogicalLog implements LogLoader
 {
 for ( LogEntry entry : logEntries )
 {
 + if ( entry instanceof Start ) ( ( Start ) entry ) . setStartPosition ( writeBuffer . getFileChannelPosition ( ) ) ;
 LogIoUtils . writeLogEntry ( entry , writeBuffer ) ;
 applyEntry ( entry ) ;
 }

Updates the correct start position on start log entries before applying them so that their position can be cached correctly


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocalStore extends Store implements Serializable {
 String new_html ;

 new_html = cursor . getString ( NUMBER0 ) ;
 - new_html = new_html . replaceAll ( STRING0 + contentId ,
 + new_html = new_html . replaceAll ( Pattern . quote ( STRING0 + contentId ) ,
 contentUri . toString ( ) ) ;

 ContentValues cv = new ContentValues ( ) ;

Quote CID before using it in a regular expression


<nb> public class ModelRuleInspector {
 return new InvalidModelRuleDeclarationException ( sb . toString ( ) ) ;
 }

 - public < T > List < ModelRuleRegistration > inspect ( Class < T > source , RuleSourceDependencies dependencies ) {
 + public List < ModelRuleRegistration > inspect ( Class < ? > source , RuleSourceDependencies dependencies ) {
 validate ( source ) ;
 final Method [ ] methods = source . getDeclaredMethods ( ) ;


<nb> public class AbstractAlertConditionTest extends AlertConditionTest {

 @ test ( enabled = false )
 public void testInGracePeriod ( ) throws Exception {
 - System . out . println ( alertService ) ;
 alertLastTriggered ( - NUMBER0 ) ;
 assertFalse ( STRING0 , alertService . inGracePeriod ( alertCondition ) ) ;
 alertLastTriggered ( NUMBER1 ) ;


<nb> public class MetricRegistry implements MetricSet {
 }

 @ suppresswarnings ( STRING0 )
 - private < T extends Metric > SortedMap < String , T > getMetrics ( Class < T > klass , MetricFilter filter ) {
 + protected final < T extends Metric > SortedMap < String , T > getMetrics ( Class < T > klass , MetricFilter filter ) {
 final TreeMap < String , T > timers = new TreeMap < String , T > ( ) ;
 for ( Map . Entry < String , Metric > entry : metrics . entrySet ( ) ) {
 if ( klass . isInstance ( entry . getValue ( ) ) && filter . matches ( entry . getKey ( ) ,

Making getMetrics method in class MetricRegistry as protected final instead of private


<nb> public class PrivacyProvider extends ContentProvider {

 public static void migrateSettings ( Context context ) {
 try {
 - SINGLE
 - convertSettings ( context ) ;
 -
 SINGLE
 File prefFile = new File ( getPrefFileName ( PREF_SETTINGS ) ) ;
 if ( prefFile . exists ( ) ) {
 Util . log ( null , Log . WARN , STRING0 + prefFile ) ;

 + SINGLE
 + convertSettings ( context ) ;
 +
 SharedPreferences prefs = context . getSharedPreferences ( PREF_SETTINGS , Context . MODE_WORLD_READABLE ) ;
 for ( String settingKey : prefs . getAll ( ) . keySet ( ) )
 try {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class SignalClusterView
 }

 private void setTint ( ImageView v , int tint ) {
 - v . setImageTintMode ( PorterDuff . Mode . SRC_ATOP ) ;
 v . setImageTintList ( ColorStateList . valueOf ( tint ) ) ;
 }

Fix wrong tint mode on airplane and vpn icons


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

 + import NAMESPACE ;
 +

 @ runwith ( MavenJUnitTestRunner . class )
 <nb> public class Junit4TestBuildExampleIT {
 File basedir = resources . getBasedir ( STRING0 ) ;
 MavenExecutionResult result = mavenRuntime
 . forProject ( basedir )
 - . withCliOptions ( STRING1 , STRING2 )
 - . execute ( STRING3 , STRING4 ) ;
 + . withCliOptions ( STRING1 )
 + . execute ( STRING3 , PluginInfo . getQualifiedGoal ( STRING5 ) , STRING4 ) ;
 result . assertErrorFreeLog ( ) ;
 result . assertLogText ( STRING6 ) ;
 }

adding undeploy to test to ensure it can be run from different computers with different certs


<nb> public class ReaderPostTable {
 return numDeleted ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public static void deletePostsFromUnfollowedBlogs ( ) {
 + ReaderDatabase . getWritableDb ( ) . delete ( STRING0 ,
 + STRING1 , null ) ;
 + }
 +
 public static int deletePostsInBlog ( long blogId ) {
 String [ ] args = { Long . toString ( blogId ) } ;
 return ReaderDatabase . getWritableDb ( ) . delete ( STRING0 , STRING2 , args ) ;
 <nb> public class ReaderUpdateService extends Service {

 if ( ! localBlogs . isSameList ( serverBlogs ) ) {
 ReaderBlogTable . setFollowedBlogs ( serverBlogs ) ;
 + ReaderPostTable . deletePostsFromUnfollowedBlogs ( ) ;
 AppLog . d ( AppLog . T . READER , STRING3 ) ;
 EventBus . getDefault ( ) . post ( new ReaderEvents . FollowedBlogsChanged ( ) ) ;
 }


<nb> public @ interface NetworkMod
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix up documentation of VersionCheckHandler it only ever accepted a String and only works on the NetworkMod annotated class


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

Add comment about sql subclasses of Date


<nb> public class Element {
 }

 final boolean matchStringToken ( final AnalyzedToken token ) {
 - SINGLE
 - SINGLE
 - if ( stringToken == null ) {
 - return true ;
 - }
 - if ( stringToken . equals ( STRING0 ) ) {
 - return true ;
 - }
 -
 String testToken = null ;
 SINGLE
 SINGLE


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SpriteCacheOffsetTest extends GdxTest implements InputProcessor {
 }

 public void render ( ) {
 + Gdx . gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ;
 cache . begin ( ) ;
 for ( int y = NUMBER0 ; y < tileMapHeight - NUMBER0 ; y ++ )
 cache . draw ( y , NUMBER0 , tileMapWidth - NUMBER1 ) ;

fixed Clear screen for SpriteCacheOffsetTest


<nb> public abstract class DebuggerUtils implements ApplicationComponent {
 if ( toStringMethod == null ) {
 throw EvaluateExceptionUtil . createEvaluateException ( DebuggerBundle . message ( STRING0 , objRef . referenceType ( ) . name ( ) ) ) ;
 }
 - final StringReference stringReference = ( StringReference ) debugProcess . invokeInstanceMethod ( evaluationContext , objRef , toStringMethod , Collections . emptyList ( ) , ObjectReference . INVOKE_SINGLE_THREADED ) ;
 + final StringReference stringReference = ( StringReference ) debugProcess . invokeInstanceMethod ( evaluationContext , objRef , toStringMethod , Collections . emptyList ( ) , NUMBER0 ) ;
 return stringReference == null ? STRING1 : stringReference . value ( ) ;
 }
 throw EvaluateExceptionUtil . createEvaluateException ( DebuggerBundle . message ( STRING2 ) ) ;

fix spurious debuggee hangup when debugging remote application or an app server


<nb> public abstract class AbstractEndpoint < S > {
 public String getSslProtocol ( ) { return sslProtocol ; }
 public void setSslProtocol ( String s ) { sslProtocol = s ; }

 - SINGLE
 - SINGLE
 private String ciphers = null ;
 - private String [ ] ciphersarr = new String [ NUMBER0 ] ;
 - public String [ ] getCiphersArray ( ) { return this . ciphersarr ; }
 public String getCiphers ( ) { return ciphers ; }
 public void setCiphers ( String s ) {
 ciphers = s ;
 - if ( s == null ) ciphersarr = new String [ NUMBER0 ] ;
 - else {
 - StringTokenizer t = new StringTokenizer ( s , STRING0 ) ;
 - ciphersarr = new String [ t . countTokens ( ) ] ;
 - for ( int i = NUMBER0 ; i < ciphersarr . length ; i ++ ) ciphersarr [ i ] = t . nextToken ( ) ;
 - }
 }
 COMMENT
 COMMENT


<nb> public class VectorDrawable extends Drawable {
 COMMENT
 COMMENT
 public float getPixelSize ( ) {
 - if ( mVectorState == null && mVectorState . mVPathRenderer == null ||
 + if ( mVectorState == null || mVectorState . mVPathRenderer == null ||
 mVectorState . mVPathRenderer . mBaseWidth == NUMBER0 ||
 mVectorState . mVPathRenderer . mBaseHeight == NUMBER0 ||
 mVectorState . mVPathRenderer . mViewportHeight == NUMBER0 ||


<nb> public class SourceFormatter {
 private static void _checkIfClause (
 String ifClause , String fileName , int lineCount ) {

 - if ( ifClause . contains ( StringPool . DOUBLE_SLASH ) ||
 - ifClause . contains ( STRING0 ) || ifClause . contains ( STRING1 ) ) {
 + int quoteCount = StringUtil . count ( ifClause , StringPool . QUOTE ) ;

 + if ( ( quoteCount % NUMBER0 ) == NUMBER1 ) {
 return ;
 }

 - int quoteCount = StringUtil . count ( ifClause , StringPool . QUOTE ) ;
 + ifClause = _stripQuotes ( ifClause ) ;
 +
 + if ( ifClause . contains ( StringPool . DOUBLE_SLASH ) ||
 + ifClause . contains ( STRING0 ) || ifClause . contains ( STRING1 ) ) {

 - if ( ( quoteCount % NUMBER0 ) == NUMBER1 ) {
 return ;
 }

 - ifClause = _stripQuotes ( ifClause ) ;
 ifClause = _stripRedundantParentheses ( ifClause ) ;

 ifClause = StringUtil . replace (

Sourceformatter slight improvement catching redundant parentheses


<nb> public interface JavaInstance {
 stringBuilder . append ( parameterType . getDescriptor ( ) ) ;
 }
 String descriptor = stringBuilder . append ( STRING0 ) . append ( getReturnType ( ) . getDescriptor ( ) ) . toString ( ) ;
 - return new Handle ( getHandleType ( ) . getIdentifier ( ) , getOwnerType ( ) . getInternalName ( ) , getName ( ) , descriptor ) ;
 + return new Handle ( getHandleType ( ) . getIdentifier ( ) , getOwnerType ( ) . getInternalName ( ) , getName ( ) , descriptor , getOwnerType ( ) . isInterface ( ) ) ;
 }

 @ override


<nb> public class GFileUtils {
 COMMENT
 COMMENT
 public static void createDirectory ( File directory ) {
 - if ( ! directory . exists ( ) && ! directory . mkdirs ( ) ) {
 + if ( ! directory . mkdirs ( ) && ! directory . isDirectory ( ) ) {
 throw new UncheckedIOException ( STRING0 + directory ) ;
 }
 }

Handle the case where something else is creating the directory


<nb> public interface ReadableInstant extends Comparable {
 COMMENT
 int get ( DateTimeFieldType type ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean isSupported ( DateTimeFieldType field ) ;
 +
 SINGLE
 COMMENT
 COMMENT
 <nb> public abstract class AbstractInstant implements ReadableInstant {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isSupported ( DateTimeFieldType type ) {
 + if ( type == null ) {
 + return false ;
 + }
 + return type . getField ( getChronology ( ) ) . isSupported ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add isSupported type to bring in line with ReadablePartial and potential future shared interface


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class SlidingTabStrip extends LinearLayout {
 final float density = getResources ( ) . getDisplayMetrics ( ) . density ;

 TypedValue outValue = new TypedValue ( ) ;
 - context . getTheme ( ) . resolveAttribute ( R . attr . colorForeground , outValue , true ) ;
 + context . getTheme ( ) . resolveAttribute ( android . R . attr . colorForeground , outValue , true ) ;
 final int themeForegroundColor = outValue . data ;

 mDefaultBottomBorderColor = setColorAlpha ( themeForegroundColor ,


<nb> public class LicenseManager {
 }

 public boolean isFeatureAllowed ( String featureName , boolean silent ) {
 + return true ;
 + }
 +
 + COMMENT
 + public boolean isFeatureAllowed ( String featureName , boolean silent ) {
 if ( _license == null ) {
 if ( ! silent ) {
 Log . info ( STRING0 + featureName + STRING1 ) ;
 <nb> public class LicenseManager {

 return false ;
 }
 + COMMENT
 }

Make isFeatureAllowed always return true


<nb>
 - package NAMESPACE ;
 <nb> nWith ( StubbedTheories . class )
 @ theory
 public void ask ( @ stub
 Correspondent correspondent ) {
 assumeThat ( correspondent . getAnswer ( STRING0 , STRING1 , STRING2 ) ,
 is ( STRING2 ) ) ;
 }
 + package NAMESPACE ;
 +
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 + @ runwith ( StubbedTheories . class )
 + public class StubbedTheoriesTest {
 + @ theory
 + public void ask ( @ stub Correspondent correspondent ) {
 + assumeThat ( correspondent . getAnswer ( STRING0 , STRING1 , STRING2 ) ,
 + is ( STRING2 ) ) ;
 + }
 + }


<nb> public class SelectCategoriesActivity extends SherlockListActivity {

 SINGLE
 if ( ! mCategoryNames . keySet ( ) . contains ( category_name ) ) {
 + mPullToRefreshHelper . setRefreshing ( true ) ;
 Thread th = new Thread ( ) {
 public void run ( ) {
 finalResult = addCategory ( category_name , category_slug , category_desc , parent_id ) ;

start the progress bar when add category action is called


<nb> public class PipeItemRenderer implements IItemRenderer {
 return true ;
 case EQUIPPED :
 return true ;
 + case EQUIPPED_FIRST_PERSON :
 + return true ;
 case INVENTORY :
 return true ;
 default :
 <nb> public class PipeItemRenderer implements IItemRenderer {
 case EQUIPPED :
 renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT0 , FLOAT1 , FLOAT2 ) ;
 break ;
 + case EQUIPPED_FIRST_PERSON :
 + renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT0 , FLOAT1 , FLOAT2 ) ;
 + break ;
 case INVENTORY :
 renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT3 , - FLOAT3 , - FLOAT3 ) ;
 break ;

Add missing case for EQUIPPED_FIRST_PERSON


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class EqualsAvoidNullCheck extends Check {
 COMMENT
 COMMENT
 public Set < FieldFrame > getChildren ( ) {
 - return children ;
 + return Collections . unmodifiableSet ( children ) ;
 }

 COMMENT
 <nb> public class EqualsAvoidNullCheck extends Check {
 COMMENT
 COMMENT
 public Set < DetailAST > getMethodCalls ( ) {
 - return methodCalls ;
 + return Collections . unmodifiableSet ( methodCalls ) ;
 }

 COMMENT


<nb> public final class FileSystemMaster extends AbstractMaster {
 }

 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class Channel {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ deprecated


<nb> public abstract class AbstractProcessor implements ActionHook , Processor {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - protected AbstractProcessor ( ) {
 - asyncStateMachine = null ;
 - endpoint = null ;
 - request = null ;
 - response = null ;
 - }
 -
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class AbstractProcessor implements ActionHook , Processor {

 @ override
 public boolean isAsync ( ) {
 - return ( asyncStateMachine != null && asyncStateMachine . isAsync ( ) ) ;
 + return asyncStateMachine . isAsync ( ) ;
 }


<nb> public class NewIssuesDecorator implements Decorator {
 public void decorate ( Resource resource , DecoratorContext context ) {
 if ( shouldDecorateResource ( resource , context ) ) {
 Issuable issuable = perspectives . as ( Issuable . class , context . getResource ( ) ) ;
 - Collection < Issue > issues = issuable . issues ( ) ;
 + if ( issuable != null ) {
 + Collection < Issue > issues = issuable . issues ( ) ;

 - computeNewIssues ( context , issues ) ;
 - computeNewIssuesPerSeverity ( context , issues ) ;
 - computeNewIssuesPerRule ( context , issues ) ;
 + computeNewIssues ( context , issues ) ;
 + computeNewIssuesPerSeverity ( context , issues ) ;
 + computeNewIssuesPerRule ( context , issues ) ;
 + }
 }
 if ( ResourceUtils . isRootProject ( resource ) ) {
 notifyNewIssues ( ( Project ) resource , context ) ;


<nb> import static NAMESPACE ;
 @ runwith ( RobolectricTestRunner . class )
 @ config ( manifest = Config . NONE )
 public class ContentObservableTest {
 +
 + @ test
 public void givenCursorWhenFromCursorInvokedThenObservableCallsOnNextWhileHasNext ( ) {
 final Subscriber < Cursor > subscriber = spy ( new TestSubscriber < Cursor > ( ) ) ;
 final Cursor cursor = mock ( Cursor . class ) ;


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class Server
 implements Runnable
 {
 -
 + @ override
 public void run ( )
 {
 - Logger log = Logger . get ( Main . class ) ;
 + Logger log = Logger . get ( Server . class ) ;
 Bootstrap app = new Bootstrap (
 new NodeModule ( ) ,
 new DiscoveryModule ( ) ,


<nb> public class EvictionConfig implements EvictionConfiguration , DataSerializable ,
 }

 public EvictionConfig setSize ( int size ) {
 + return setSizeInternal ( size ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + EvictionConfig setSizeInternal ( int size ) {
 this . sizeConfigured = true ;
 this . size = checkPositive ( size , STRING0 ) ;
 return this ;
 <nb> public final class EvictionConfigAccessor {

 public static EvictionConfig initDefaultMaxSize ( EvictionConfig evictionConfig ) {
 if ( ! evictionConfig . sizeConfigured ) {
 - evictionConfig . setSize ( EvictionConfig . DEFAULT_MAX_ENTRY_COUNT_FOR_ON_HEAP_MAP ) ;
 + evictionConfig . setSizeInternal ( EvictionConfig . DEFAULT_MAX_ENTRY_COUNT_FOR_ON_HEAP_MAP ) ;
 }
 return evictionConfig ;
 }

Fixed EvictionConfigAccessor to work with read only configurations


<nb> public class CallJabberImpl
 if ( remoteParty == null )
 remoteParty = jingleIQ . getFrom ( ) ;

 - CallPeerJabberImpl callPeer = new CallPeerJabberImpl ( remoteParty , this ) ;
 + CallPeerJabberImpl callPeer = new CallPeerJabberImpl ( remoteParty , this ,
 + jingleIQ ) ;

 addCallPeer ( callPeer ) ;

 <nb> public class CallPeerJabberImpl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public CallPeerJabberImpl ( String peerAddress ,
 + CallJabberImpl owningCall ,
 + JingleIQ sessionIQ )
 + {
 + this ( peerAddress , owningCall ) ;
 + this . sessionInitIQ = sessionIQ ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

When we receive a Jingle call set the session init IQ of the CallPeer before adding it to the Call


<nb> public class JmfMediaManager extends JingleMediaManager {
 COMMENT
 public JmfMediaManager ( ) {
 setupPayloads ( ) ;
 - setupJMF ( ) ;
 }

 COMMENT


<nb> public class ImageLoader implements Runnable {

 public ImageLoader ( String imageUrl , ImageView imageView , int position ) {
 this . imageUrl = imageUrl ;
 + imageView . setTag ( position ) ;
 this . handler = new ImageLoaderHandler ( imageView , position ) ;
 }

automatically set position as tag on imageview


<nb> public class EventLog implements Notifications {
 showLink = true ;
 }

 + mainText = mainText . replaceAll ( STRING0 , STRING1 ) ;
 +
 final NotificationType type = notification . getType ( ) ;
 view . print ( mainText , type == NotificationType . ERROR
 ? ConsoleViewContentType . ERROR_OUTPUT


<nb> import NAMESPACE ;

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

 import NAMESPACE ;

Remove deprecated use of projection Point


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PlacesListFragment extends SherlockDialogFragment implements Places
 mAdapter . notifyDataSetChanged ( ) ;
 }

 + private void hideIme ( ) {
 + if ( null != mFilterEditText ) {
 + InputMethodManager imm = ( InputMethodManager ) getActivity ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 + imm . hideSoftInputFromWindow ( mFilterEditText . getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ;
 + }
 + }
 +
 private void refreshPlaces ( ) {
 refreshPlaces ( mFilterEditText . getText ( ) . toString ( ) ) ;
 }

 private void refreshPlaces ( String query ) {
 + hideIme ( ) ;
 if ( null != mProgressBar ) {
 mProgressBar . setVisibility ( View . VISIBLE ) ;
 }


<nb> public class ExopackageInstaller {
 String hash ,
 final Path source )
 throws Exception {
 - installFile ( device , port , SECONDARY_DEX_DIR . resolve ( STRING0 + hash + STRING1 ) , source ) ;
 + installFile (
 + device ,
 + port ,
 + SECONDARY_DEX_DIR . resolve ( STRING0 + hash + STRING1 ) ,
 + source ) ;
 }

 private void installFile (


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TaskContext
 Deque < TaskContext > stack = contextStacks . get ( ) ;
 if ( stack == null )
 {
 - stack = new ConcurrentLinkedDeque < > ( ) ;
 + SINGLE
 + SINGLE
 + stack = new LinkedList < > ( ) ;
 contextStacks . set ( stack ) ;
 final Thread currentThread = Thread . currentThread ( ) ;
 synchronized ( contextStacksMap )
 <nb> public class TaskContext
 SINGLE
 stack = contextStacksMap . get ( thread ) ;
 }
 - return ( stack != null ) ? stack . peekLast ( ) : null ;
 + SINGLE
 + SINGLE
 + return ( stack != null ) ? stack . peek ( ) : null ;
 }

 COMMENT


<nb> public abstract class AbstractAQuery < T extends AbstractAQuery < T > > implements Con
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class HumanInteractionClassifier extends Classifier {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 + SINGLE
 mDpi = ( displayMetrics . xdpi + displayMetrics . ydpi ) / FLOAT0 ;
 mClassifierData = new ClassifierData ( mDpi ) ;
 mHistoryEvaluator = new HistoryEvaluator ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 class ArrayWriteBehindQueue < T > implements WriteBehindQueue < T > {

 - private static final int INITIAL_CAPACITY = NUMBER0 ;
 + private static final int INITIAL_CAPACITY = NUMBER1 ;

 private List < T > list ;

Added todo for backpressure implementation


<nb> final class TextureUtil {
 }

 public GLImageFormat getImageFormatWithError ( Format fmt , boolean isSrgb ) {
 + SINGLE
 + isSrgb = isSrgb && fmt != Format . Depth && fmt != Format . Depth16 && fmt != Format . Depth24 && fmt != Format . Depth24Stencil8 && fmt != Format . Depth32 && fmt != Format . Depth32F ;
 GLImageFormat glFmt = getImageFormat ( fmt , isSrgb ) ;
 if ( glFmt == null && isSrgb ) {
 - glFmt = getImageFormat ( fmt , false ) ;
 + glFmt = getImageFormat ( fmt , false ) ;
 logger . log ( Level . WARNING , STRING0 , fmt ) ;
 }
 if ( glFmt == null ) {

Fixed warning when trying to find a srgb format for a Depth format


<nb> public class ChannelManager
 extends AbstractIrcMessageListener
 {
 COMMENT
 + COMMENT
 + COMMENT
 + private static final String GONE = STRING0 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ChannelManager
 COMMENT
 private IrcStatusEnum determineStatus ( final String presenceReply )
 {
 - if ( presenceReply != null && presenceReply . startsWith ( STRING0 ) )
 + if ( presenceReply != null && presenceReply . startsWith ( GONE ) )
 {
 return IrcStatusEnum . AWAY ;
 }

Add constant for indicator of AWAY members G


<nb> public class Transaction extends ChildMessage implements Serializable {
 length = NUMBER0 ; SINGLE
 }

 - public Transaction ( NetworkParameters params , int version , Sha256Hash hash ) {
 - super ( params ) ;
 - this . version = version & ( ( NUMBER1 < < NUMBER2 ) - NUMBER3 ) ; SINGLE
 - inputs = new ArrayList < TransactionInput > ( ) ;
 - outputs = new ArrayList < TransactionOutput > ( ) ;
 - this . hash = hash ;
 - SINGLE
 - length = NUMBER0 ; SINGLE
 - }
 -
 COMMENT
 COMMENT
 COMMENT

Remove undocumented and unused Transaction constructor


<nb> public class PrestoDatabaseMetaData
 public String getIdentifierQuoteString ( )
 throws SQLException
 {
 - SINGLE
 - return STRING0 ;
 + return STRING1 ;
 }

 @ override

Fix JDBC DatabaseMetaData getIdentifierQuoteString


<nb> public class ManualRequestEditorDialog extends AbstractFrame implements Tab {
 private void setFooterStatus ( HttpMessage msg ) {
 if ( msg != null ) {
 SINGLE
 - long totalLength = msg . getResponseBody ( ) . toString ( ) . length ( ) + msg . getResponseHeader ( ) . getHeadersAsString ( ) . length ( ) ;
 - long contentLength = msg . getResponseBody ( ) . toString ( ) . length ( ) ;
 + long contentLength = msg . getResponseBody ( ) . length ( ) ;
 + long totalLength = msg . getResponseHeader ( ) . toString ( ) . length ( ) + contentLength ;
 long timeLapse = msg . getTimeElapsedMillis ( ) ;
 SINGLE
 getLabelTimeLapse ( ) . setText (

Fixed the calculation of the response s length in the ManualRequestEditorDialog


<nb> public class CharArrayUtil {
 if ( seq instanceof CharBuffer ) {
 final CharBuffer buffer = ( CharBuffer ) seq ;
 if ( buffer . hasArray ( ) && ! buffer . isReadOnly ( ) && buffer . arrayOffset ( ) == NUMBER0 ) {
 - return buffer . array ( ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + char [ ] array = buffer . array ( ) ;
 + if ( buffer . length ( ) == array . length ) {
 + return array ;
 + }
 }

 char [ ] chars = new char [ seq . length ( ) ] ;

CharArrayUtil should not return array that s longer than CharSequence


<nb> public class ZBeacon
 }

 broadcastServer = new BroadcastServer ( ignoreLocalAddress ) ;
 + broadcastServer . setDaemon ( true ) ;
 broadcastClient = new BroadcastClient ( ) ;
 + broadcastClient . setDaemon ( true ) ;
 }

 public void start ( )
 <nb> public class ZThread
 {
 SINGLE
 Thread shim = new ShimThread ( runnable , args ) ;
 + shim . setDaemon ( true ) ;
 shim . start ( ) ;
 }

Set daemon flag on beacon and zthread threads


<nb> public class ByteBuddy {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class ExtendableListView extends AbsListView {

 mLayoutMode = LAYOUT_SYNC ;
 mSyncPosition = Math . min ( Math . max ( NUMBER0 , mSyncPosition ) , count - NUMBER1 ) ;
 - if ( mSyncPosition == NUMBER0 ) mLayoutMode = LAYOUT_FORCE_TOP ;
 return ;
 }

Always use LAYOUT_SYNC mode to sync items positions


<nb> abstract public class GenericItem implements Item {

 final protected String name ;

 - protected State state = UnDefType . UNDEF ;
 + protected State state = UnDefType . NULL ;

 public GenericItem ( String name ) {
 this . name = name ;

corrected initial state at system startup


<nb> class BeanBinding implements Binding {
 }
 }

 + if ( element == null ) {
 + element = new Element ( myTagName ) ;
 + }
 +
 Object node = binding . serialize ( o , element , filter ) ;
 if ( node != null ) {
 - if ( element == null ) {
 - element = new Element ( myTagName ) ;
 - }
 if ( node instanceof org . jdom . Attribute ) {
 element . setAttribute ( ( org . jdom . Attribute ) node ) ;
 }


<nb> public class DeadlockDetectedException extends RuntimeException
 {
 public DeadlockDetectedException ( String message )
 {
 - super ( message ) ;
 + super ( STRING0 +
 + STRING1 +
 + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING1 +
 + STRING5 +
 + STRING6 +
 + STRING1 +
 + STRING7 + message + STRING8 ) ;
 }
 }

Added a friendlier message to the DeadlockDetectedException


<nb> public class BlockTank extends BlockContainer {
 ItemStack filled = LiquidManager . fillLiquidContainer ( available , current ) ;

 liquid = LiquidManager . getLiquidForFilledItem ( filled ) ;
 +
 if ( liquid != null ) {
 -
 + if ( ! BuildCraftCore . debugMode && ! entityplayer . capabilities . isCreativeMode ) {
 if ( current . stackSize > NUMBER0 ) {
 if ( ! entityplayer . inventory . addItemStackToInventory ( filled ) )
 return false ;
 <nb> public class BlockTank extends BlockContainer {
 Utils . consumeItem ( current ) ) ;
 entityplayer . inventory . setInventorySlotContents ( entityplayer . inventory . currentItem , filled ) ;
 }
 -
 + }
 tank . drain ( Orientations . Unknown , liquid . amount , true ) ;
 return true ;
 }

Makes buckets behavior like in creative mode


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ErrorMessageSimplifier {
 }
 }
 break ;
 -
 +
 case IProblem . UndefinedConstructor :
 if ( args . length == NUMBER0 ) {
 String constructorName = args [ NUMBER1 ] ;
 - SINGLE
 + SINGLE
 SINGLE
 if ( constructorName . contains ( STRING0 ) ) {
 SINGLE


<nb> public class RouterActor extends ModuleActor {
 . changeCounter ( counter )
 . changeInReadDate ( date ) ;
 conversationStates . addOrUpdateItem ( state ) ;
 +
 + dialogsActor ( new DialogsActor . CounterChanged ( peer , counter ) ) ;
 }


<nb> public class MtpDatabase {
 try {
 File f = new File ( path ) ;
 String canonical = f . getCanonicalPath ( ) ;
 - if ( canonical . startsWith ( mMediaStoragePath ) ) {
 - return true ;
 + for ( String root : mStorageMap . keySet ( ) ) {
 + if ( canonical . startsWith ( root ) ) {
 + return true ;
 + }
 }
 } catch ( IOException e ) {
 SINGLE

Also consider secondary storage when verifying paths


<nb> public class FileTransfer extends Plugin {
 connection . connect ( ) ;

 Log . d ( LOG_TAG , STRING0 + url ) ;
 + InputStream inputStream ;
 + try {
 + inputStream = connection . getInputStream ( ) ;
 + } catch ( FileNotFoundException e ) {
 + Log . e ( LOG_TAG , e . toString ( ) , e ) ;
 + throw new IOException ( STRING1 ) ;
 + }

 - InputStream inputStream = connection . getInputStream ( ) ;
 byte [ ] buffer = new byte [ NUMBER0 ] ;
 int bytesRead = NUMBER1 ;

 <nb> public class FileTransfer extends Plugin {

 } catch ( FileNotFoundException e ) {
 JSONObject error = createFileTransferError ( FILE_NOT_FOUND_ERR , source , target , connection ) ;
 + Log . d ( LOG_TAG , STRING2 ) ;
 Log . e ( LOG_TAG , error . toString ( ) , e ) ;
 return new PluginResult ( PluginResult . Status . IO_EXCEPTION , error ) ;
 } catch ( MalformedURLException e ) {

Fixing FileTransfer download should handle unknown host failing mobile spec test case


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


<nb> public class TokenBasedRememberMeServices implements RememberMeServices , Initial
 SINGLE
 SINGLE

 - private AuthenticationDetailsSource authenticationDetailsSource = new AuthenticationDetailsSourceImpl ( ) ;
 + protected AuthenticationDetailsSource authenticationDetailsSource = new AuthenticationDetailsSourceImpl ( ) ;

 private String key ;

 <nb> public class TokenBasedRememberMeServices implements RememberMeServices , Initial

 private UserDetailsService userDetailsService ;

 - private long tokenValiditySeconds = NUMBER0 ; SINGLE
 + protected long tokenValiditySeconds = NUMBER0 ; SINGLE

 private boolean alwaysRemember = false ;

made two instance variables protected for RBA solution


<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable
 myList . setCellRenderer ( myCellRenderer ) ;

 myList . setFocusable ( false ) ;
 + myList . setFixedCellWidth ( NUMBER0 ) ;

 myList . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ;
 myList . setBackground ( LookupCellRenderer . BACKGROUND_COLOR ) ;

don t calculate width for each lookup element


<nb> final class ElectronBeam {
 mTexNamesGenerated = true ;
 }

 - SurfaceTexture st = new SurfaceTexture ( mTexNames [ NUMBER0 ] ) ;
 - SurfaceControl . screenshot ( SurfaceControl . getBuiltInDisplay (
 - SurfaceControl . BUILT_IN_DISPLAY_ID_MAIN ) ,
 - new Surface ( st ) ) ;
 + final SurfaceTexture st = new SurfaceTexture ( mTexNames [ NUMBER0 ] ) ;
 + final Surface s = new Surface ( st ) ;
 + try {
 + SurfaceControl . screenshot ( SurfaceControl . getBuiltInDisplay (
 + SurfaceControl . BUILT_IN_DISPLAY_ID_MAIN ) , s ) ;
 + } finally {
 + s . release ( ) ;
 + }

 st . updateTexImage ( ) ;
 st . getTransformMatrix ( mTexMatrix ) ;


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

 import static NAMESPACE ;

 + @ ignore ( STRING0 )
 public class IssuesDbExtractionTest extends AbstractTest {

 static final Logger LOGGER = LoggerFactory . getLogger ( IssuesDbExtractionTest . class ) ;

Temporarily disable benchmark of issue db extraction


<nb> public abstract class Message implements Part , Body {
 return false ;
 }
 Message other = ( Message ) o ;
 - return ( mFolder . getName ( ) . equals ( other . getFolder ( ) . getName ( ) )
 - && mFolder . getAccount ( ) . getUuid ( ) . equals ( other . getFolder ( ) . getAccount ( ) . getUuid ( ) )
 - && mUid . equals ( other . getUid ( ) ) ) ;
 + return ( mUid . equals ( other . getUid ( ) )
 + && mFolder . getName ( ) . equals ( other . getFolder ( ) . getName ( ) )
 + && mFolder . getAccount ( ) . getUuid ( ) . equals ( other . getFolder ( ) . getAccount ( ) . getUuid ( ) ) ) ;
 }

 @ override

Check message uids first when comparing messages


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

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT


<nb> public class SSTableReader extends SSTable

 SINGLE
 SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 int i = NUMBER0 ;
 Iterator < FileDataInput > segments = ifile . iterator ( sampledPosition , INDEX_FILE_BUFFER_BYTES ) ;
 - while ( segments . hasNext ( ) && i < DatabaseDescriptor . getIndexInterval ( ) )
 + while ( segments . hasNext ( ) && i <= DatabaseDescriptor . getIndexInterval ( ) )
 {
 FileDataInput in = segments . next ( ) ;
 try
 {
 - while ( ! in . isEOF ( ) && i < DatabaseDescriptor . getIndexInterval ( ) )
 + while ( ! in . isEOF ( ) && i <= DatabaseDescriptor . getIndexInterval ( ) )
 {
 i ++ ;

Fix comparison against IndexInterval in SSTR getPosition


<nb> public class MainPhoneController extends MainBaseController {

 searchList . setAdapter ( recyclerAdapter ) ;
 searchDisplay . addListener ( searchListener ) ;
 -
 + onHideToolbarCustomView ( ) ;
 showView ( searchHintView , false ) ;
 goneView ( searchEmptyView , false ) ;

 <nb> public class MainPhoneController extends MainBaseController {
 searchList . setAdapter ( null ) ;

 goneView ( searchContainer ) ;
 -
 + onShowToolbarCustomView ( ) ;
 if ( searchMenu != null ) {
 if ( searchMenu . isActionViewExpanded ( ) ) {
 searchMenu . collapseActionView ( ) ;

MainPhoneController hide toolbar custom view on search


<nb> public class Bundle {
 COMMENT
 COMMENT
 String uriString = uri . toString ( ) ;
 - if ( ! uriString . startsWith ( this . uriString ) ) return false ;
 + if ( this . uriString == null || ! uriString . startsWith ( this . uriString ) ) return false ;

 String srcPath = uriString . substring ( this . uriString . length ( ) ) ;
 String srcQuery = uri . getQuery ( ) ;

Avoid crash while undefine uri in bundle json


<nb> public class IrcConnection
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IrcConnection

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IrcConnection
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IrcConnection
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IrcConnection
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ProtocolProviderServiceIrcImpl
 SINGLE
 SINGLE

 + SINGLE
 + SINGLE
 +
 final String user = getAccountID ( ) . getUserID ( ) ;

 ircstack = new IrcStack ( this , user , user , STRING0 , user ) ;

Added comments for guaranteed instances and a TODO w r t password changing