<nb> public class ConfigurationNode {
 COMMENT
 @ suppresswarnings ( STRING0 )
 public List < String > getKeys ( String path ) {
 + if ( path == null ) return new ArrayList < String > ( root . keySet ( ) ) ;
 Object o = getProperty ( path ) ;
 if ( o == null ) {
 return null ;


<nb> public class JsonType
 }

 @ override
 + public boolean equalTo ( Block leftBlock , int leftPosition , Block rightBlock , int rightPosition )
 + {
 + Slice leftValue = leftBlock . getSlice ( leftPosition , NUMBER0 , leftBlock . getLength ( leftPosition ) ) ;
 + Slice rightValue = rightBlock . getSlice ( rightPosition , NUMBER0 , rightBlock . getLength ( rightPosition ) ) ;
 + return leftValue . equals ( rightValue ) ;
 + }
 +
 + @ override
 + public int hash ( Block block , int position )
 + {
 + return block . hash ( position , NUMBER0 , block . getLength ( position ) ) ;
 + }
 +
 + @ override
 public int compareTo ( Block leftBlock , int leftPosition , Block rightBlock , int rightPosition )
 {
 int leftLength = leftBlock . getLength ( leftPosition ) ;


<nb> public class TextureAtlas implements Disposable {
 ObjectMap < Page , Texture > pageToTexture = new ObjectMap < Page , Texture > ( ) ;
 for ( Page page : data . pages ) {
 Texture texture = new Texture ( page . textureFile , page . format , page . useMipMaps ) ;
 + texture . setFilter ( page . minFilter , page . magFilter ) ;
 + texture . setWrap ( page . uWrap , page . vWrap ) ;
 textures . add ( texture ) ;
 pageToTexture . put ( page , texture ) ;
 }

fixed TextureAtlas didn t apply filters to texture s


<nb>

 package NAMESPACE ;

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

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class LocalWorld extends AbstractWorld {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - @ suppresswarnings ( STRING0 )
 - @ deprecated
 - protected Random random = new Random ( ) ;
 -
 @ override
 public BaseBlock getLazyBlock ( Vector position ) {
 return getBlock ( position ) ;

Delete protected Random instance from LocalWorld


<nb> public class KotlinParameterTablePanel extends JPanel {

 myTable . setTableHeader ( null ) ;
 myTable . getSelectionModel ( ) . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ;
 + myTable . setCellSelectionEnabled ( true ) ;

 TableColumn checkBoxColumn = myTable . getColumnModel ( ) . getColumn ( MyTableModel . CHECKMARK_COLUMN ) ;
 TableUtil . setupCheckboxColumn ( checkBoxColumn ) ;

Allow to select individual cells in Extract Function dialog


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

 COMMENT
 COMMENT
 <nb> public class AnimatorInflater_Delegate {
 SINGLE
 return new FakeAnimator ( ) ;
 }
 +
 + @ layoutlibdelegate
 + COMMENT
 + AttributeSet attrs , ValueAnimator anim , float pathErrorScale )
 + throws NotFoundException {
 + return anim ;
 + }
 }

Add missing delegate for AnimatorInflater


<nb> public final class PactRecord implements Value
 {
 SINGLE
 if ( fieldNum < NUMBER0 || fieldNum >= this . numFields ) {
 - throw new IndexOutOfBoundsException ( ) ;
 + throw new IndexOutOfBoundsException ( fieldNum + STRING0 + ( this . numFields - NUMBER1 ) + STRING1 ) ;
 }

 SINGLE
 <nb> public class ObjectSchema implements Schema {
 @ override
 public PactRecord jsonToRecord ( IJsonNode value , PactRecord target , EvaluationContext context ) {
 IObjectNode others ;
 - if ( target == null ) {
 + if ( target == null || target . getNumFields ( ) < this . mappings . size ( ) + NUMBER1 ) {
 SINGLE
 target = new PactRecord ( this . mappings . size ( ) + NUMBER1 ) ;
 for ( int i = NUMBER0 ; i < this . mappings . size ( ) ; i ++ )

Fixed refitting of PactRecords for ObjectSchemas


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig

 private volatile int writeBufferHighWaterMark = NUMBER0 * NUMBER1 ;
 private volatile int writeBufferLowWaterMark = NUMBER2 * NUMBER1 ;
 - private volatile ReceiveBufferSizePredictor predictor =
 - new AdaptiveReceiveBufferSizePredictor ( ) ;
 private volatile int writeSpinCount = NUMBER3 ;

 DefaultNioDatagramChannelConfig ( DatagramSocket socket ) {
 <nb> class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig
 }
 this . writeSpinCount = writeSpinCount ;
 }
 -
 - @ override
 - public ReceiveBufferSizePredictor getReceiveBufferSizePredictor ( ) {
 - return predictor ;
 - }
 -
 - @ override
 - public void setReceiveBufferSizePredictor (
 - ReceiveBufferSizePredictor predictor ) {
 - if ( predictor == null ) {
 - throw new NullPointerException ( STRING0 ) ;
 - }
 - this . predictor = predictor ;
 - }
 }

Removed predictor from DefaultNioDatagramChannelConfig because it s already implemented in its superclass


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Util {
 }

 public static void bug ( XHook hook , Throwable ex ) {
 + if ( ex instanceof InvocationTargetException ) {
 + InvocationTargetException exex = ( InvocationTargetException ) ex ;
 + if ( exex . getTargetException ( ) != null )
 + ex = exex . getTargetException ( ) ;
 + }
 +
 int priority ;
 if ( ex instanceof ActivityShare . AbortException )
 priority = Log . WARN ;


<nb> public interface AgentBuilder {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class IndexAPI {

 COMMENT
 @ get
 - @ path ( STRING0 )
 + @ path ( STRING1 )
 public Response getAllStopClusters ( ) {
 SINGLE
 List < StopClusterDetail > scl = StopClusterDetail . list ( index . stopClusterForId . values ( ) , detail ) ;
 <nb> public class IndexAPI {

 COMMENT
 @ get
 - @ path ( STRING2 )
 + @ path ( STRING3 )
 public Response getStopCluster ( @ pathparam ( STRING4 ) String clusterIdString ) {
 StopCluster cluster = index . stopClusterForId . get ( clusterIdString ) ;
 if ( cluster != null ) {


<nb> public class BootStrapperTest
 public void report ( InetAddress ep ) { throw new UnsupportedOperationException ( ) ; }
 public void registerFailureDetectionEventListener ( IFailureDetectionEventListener listener ) { throw new UnsupportedOperationException ( ) ; }
 public void unregisterFailureDetectionEventListener ( IFailureDetectionEventListener listener ) { throw new UnsupportedOperationException ( ) ; }
 + public void remove ( InetAddress ep ) { throw new UnsupportedOperationException ( ) ; }
 } ;
 Multimap < InetAddress , Range > temp = BootStrapper . getWorkMap ( res , mockFailureDetector ) ;
 assertEquals ( NUMBER0 , temp . keySet ( ) . size ( ) ) ;


<nb> public class SpeakerInfo {
 private String speakerName ;
 private String [ ] speakerNameStrings ; SINGLE
 private String speakerDesc ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 private Set < Mention > mentions = Generics . newHashSet ( ) ; SINGLE
 private boolean speakerIdIsNumber ; SINGLE
 private boolean speakerIdIsAutoDetermined ; SINGLE
 <nb> public class SpeakerInfo {
 return corefClusterId ;
 }

 - public String toString ( ) {
 - return speakerId ;
 - }
 -
 }


<nb> public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
 }

 private static boolean isInsideNumPy ( @ notnull PsiElement element ) {
 + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return true ;
 final PsiFile file = element . getContainingFile ( ) ;

 if ( file != null ) {
 <nb> public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
 }

 private static boolean isApplicable ( @ notnull PsiElement element ) {
 - if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return true ;
 final Module module = ModuleUtilCore . findModuleForPsiElement ( element ) ;
 if ( module != null ) {
 if ( PyDocumentationSettings . getInstance ( module ) . isNumpyFormat ( element . getContainingFile ( ) ) ) {


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class BaseGeneratedClassHolder implements GeneratedClassHolder {
 return environment ;
 }

 + protected ProcessingEnvironment getProcessingEnvironment ( ) {
 + return environment . getProcessingEnvironment ( ) ;
 + }
 +
 protected ProcessHolder . Classes getClasses ( ) {
 return environment . getClasses ( ) ;
 }

add getProcessingEnvironment to BaseGeneratedClassHolder


<nb> public class IndexBufferObject implements IndexData {
 if ( Gdx . gl11 != null ) {
 GL11 gl = Gdx . gl11 ;
 gl . glBufferData ( GL11 . GL_ELEMENT_ARRAY_BUFFER , byteBuffer . limit ( ) , byteBuffer , usage ) ;
 - } else if ( Gdx . gl11 != null ) {
 + } else if ( Gdx . gl20 != null ) {
 GL20 gl = Gdx . gl20 ;
 gl . glBufferData ( GL20 . GL_ELEMENT_ARRAY_BUFFER , byteBuffer . limit ( ) , byteBuffer , usage ) ;
 }

fixed IndexBufferObject setIndices Thanks Dumi


<nb> public class ScriptSupport {
 File scriptFile = new File ( text ) ;
 GroovyShell shell = new GroovyShell ( ) ;
 try {
 - script = scriptFile . exists ( ) ? shell . parse ( scriptFile ) : shell . parse ( text , name ) ;
 + script = scriptFile . exists ( ) ? shell . parse ( scriptFile ) : shell . parse ( text , name + STRING0 ) ;
 } catch ( Exception ex ) {
 Logger . getInstance ( getClass ( ) . getName ( ) ) . error ( ex ) ;
 throw new RuntimeException ( ex ) ;
 <nb> public class StructuralSearchTest extends StructuralSearchTestCase {
 findMatchesCount ( source2 ,
 STRING1 +
 STRING2 +
 + STRING3 +
 STRING4 +
 STRING5 +
 STRING6 +
 <nb> public class StructuralSearchTest extends StructuralSearchTestCase {
 STRING7 +
 STRING8 +
 STRING9 +
 - STRING10 +
 - STRING11 +
 + STRING12 +
 + STRING13 +
 STRING14 +
 STRING15 +
 STRING16 +

give script a different name from the var name so it doesn t hide the var


<nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi
 if ( wasPending ) {
 SINGLE
 addWalletTransaction ( Pool . PENDING , tx ) ;
 + log . info ( STRING0 ) ;
 } else {
 SINGLE
 SINGLE
 <nb> public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add a bit more logging to make output during chain splits less confusing


<nb> public class BasicDBObjectTest {
 document = BasicDBObject . parse ( STRING0 , getDefaultCodecRegistry ( ) . get ( BasicDBObject . class ) ) ;
 assertEquals ( new BasicDBObject ( STRING1 , NUMBER0 ) . append ( STRING2 , STRING3 ) , document ) ;

 - document = BasicDBObject . parse ( STRING4 ) ;
 - assertEquals ( new BasicDBObject ( STRING5 , new BasicDBObject ( STRING6 , new Date ( NUMBER1 ) ) . append ( STRING7 , new Date ( NUMBER2 ) ) ) ,
 - document ) ;
 + document = BasicDBObject . parse ( STRING8 ) ;
 + assertEquals ( new BasicDBObject ( STRING9 , new ObjectId ( STRING10 ) ) , document ) ;
 }

 @ test

Changed test for BasicDBObject parse method to remove timezone dependency


<nb> public class IabHelper {

 int queryPurchases ( Inventory inv , String itemType ) throws JSONException , RemoteException {
 + SINGLE
 + if ( mDisposed ) {
 + return IABHELPER_VERIFICATION_FAILED ;
 + }
 +
 SINGLE
 logDebug ( STRING0 + itemType ) ;
 logDebug ( STRING1 + mContext . getPackageName ( ) ) ;

Fix crash if activity was finished but Iab purchase check was not


<nb> public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser
 return this ;
 SINGLE
 }
 + return rel ;
 }
 default : {
 throw new RuntimeException ( STRING0 + language ) ;

Return the disambiguated Chinese relation


<nb> public class Resources {
 remainder = languageTag . substring ( separator ) ;
 }

 - if ( STRING0 . equals ( language ) ) {
 - return STRING1 + remainder ;
 - } else if ( STRING2 . equals ( language ) ) {
 - return STRING3 + remainder ;
 - } else if ( STRING4 . equals ( language ) ) {
 - return STRING5 + remainder ;
 - } else {
 - return languageTag ;
 - }
 + return Locale . adjustLanguageCode ( language ) + remainder ;
 }

 COMMENT

Remove copy of Locale adjustLanguageCode


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

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ sharable
 public class NetworkEventFiringHandler extends SimpleChannelInboundHandler < FMLProxyPacket > {
 private FMLEventChannel eventChannel ;


<nb> public class Job extends Request2 {
 @ override protected void logStart ( ) {
 super . logStart ( ) ;
 int idx = source . find ( response ) ;
 + if ( idx == - NUMBER0 ) {
 + Vec vm = response . masterVec ( ) ;
 + if ( vm != null ) idx = source . find ( vm ) ;
 + }
 Log . info ( STRING0 + ( idx == - NUMBER0 ? STRING1 : source . _names [ idx ] ) ) ;
 Log . info ( STRING2 + ( classification ? STRING3 : STRING4 ) ) ;
 }


<nb> public class DanmakusRetainer {
 topPos = item . getTop ( ) - drawItem . paintHeight ;

 }
 +
 + topPos = checkVerticalEdge ( false , drawItem , disp , topPos , firstItem ,
 + null ) ;

 }


<nb> public class DumbServiceImpl extends DumbService implements Disposable , Modifica

 private final Queue < Runnable > myRunWhenSmartQueue = new Queue < Runnable > ( NUMBER0 ) ;
 private final Project myProject ;
 - private ThreadLocal < Integer > myAlternativeResolution = new ThreadLocal < Integer > ( ) ;
 + private final ThreadLocal < Integer > myAlternativeResolution = new ThreadLocal < Integer > ( ) ;

 public DumbServiceImpl ( Project project ) {
 myProject = project ;


<nb> public class SitePickerActivity extends ActionBarActivity {
 holder . txtTitle . setTextColor ( textColor ) ;
 holder . txtDomain . setTextColor ( textColor ) ;
 holder . txtTitle . setTypeface ( holder . txtTitle . getTypeface ( ) , site . isHidden ? Typeface . NORMAL : Typeface . BOLD ) ;
 + holder . imgBlavatar . setAlpha ( site . isHidden ? FLOAT0 : FLOAT1 ) ;
 }
 }

Using alpha on blavatars of hidden sites


<nb> public class JettyEmbeddedServletContainerFactory
 if ( getSslStoreProvider ( ) != null ) {
 try {
 factory . setKeyStore ( getSslStoreProvider ( ) . getKeyStore ( ) ) ;
 - factory . setTrustStore ( getSslStoreProvider ( ) . getKeyStore ( ) ) ;
 + factory . setTrustStore ( getSslStoreProvider ( ) . getTrustStore ( ) ) ;
 }
 catch ( Exception ex ) {
 throw new IllegalStateException ( STRING0 , ex ) ;

Fix customization of Jetty s SSL trust store


<nb> public @ interface ExtractBy {

 Type type ( ) default Type . XPath ;

 - boolean notNull ( ) default true ;
 + boolean notNull ( ) default false ;

 boolean multi ( ) default false ;

 <nb> public @ interface ExtractByRaw {

 Type type ( ) default Type . XPath ;

 - boolean notNull ( ) default true ;
 + boolean notNull ( ) default false ;

 boolean multi ( ) default false ;

 <nb> public @ interface ExtractByUrl {

 String value ( ) default STRING0 ;

 - boolean notNull ( ) default true ;
 + boolean notNull ( ) default false ;

 boolean multi ( ) default false ;


<nb> public class LwjglAudioRenderer implements AudioRenderer , Runnable {
 SINGLE
 if ( audioThread . isAlive ( ) ) {
 audioThread . interrupt ( ) ;
 + try {
 + audioThread . join ( ) ;
 + } catch ( InterruptedException ex ) {
 + }
 }
 }

Avoid AL not closed error by joining with audio thread when exiting app


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


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DijkstraSimpleTest extends AbstractRoutingAlgorithmTester {
 + public class DijkstraTest extends AbstractRoutingAlgorithmTester {

 @ override
 public AlgorithmPreparation prepareGraph ( Graph g , final WeightCalculation calc , final EdgePropertyEncoder encoder ) {


<nb> public class HamleDTMultiWordClassifier {
 public List < String > apply ( String mwe ) {
 String [ ] words = mwe . split ( STRING0 ) ;

 - if ( allowedWords . contains ( words [ NUMBER0 ] ) )
 + if ( allowedWords . contains ( words [ NUMBER0 ] . toLowerCase ( ) ) )
 return positiveRet ;
 return negativeRet ;
 }


<nb> public class ReadFromKafka {
 StreamExecutionEnvironment env = StreamExecutionEnvironment . getExecutionEnvironment ( ) ;
 env . getConfig ( ) . disableSysoutLogging ( ) ;
 env . getConfig ( ) . setRestartStrategy ( RestartStrategies . fixedDelayRestart ( NUMBER0 , NUMBER1 ) ) ;
 - env . enableCheckpointing ( NUMBER2 ) ; SINGLE
 + env . enableCheckpointing ( NUMBER2 ) ; SINGLE
 env . getConfig ( ) . setGlobalJobParameters ( parameterTool ) ; SINGLE

 DataStream < String > messageStream = env

hotfix streamExamples Fix typo in comment


<nb> public class DateHandlerTestCase {
 Header date = result . getHeaders ( STRING0 ) [ NUMBER0 ] ;
 final long firstDate = DateUtils . parseDate ( date . getValue ( ) ) . getTime ( ) ;
 Assert . assertTrue ( ( firstDate + NUMBER1 ) > System . currentTimeMillis ( ) ) ;
 - Assert . assertTrue ( System . currentTimeMillis ( ) > firstDate ) ;
 + Assert . assertTrue ( System . currentTimeMillis ( ) >= firstDate ) ;
 HttpClientUtils . readResponse ( result ) ;
 Thread . sleep ( NUMBER2 ) ;
 result = client . execute ( get ) ;


<nb> public class DeterministicCorefAnnotator implements Annotator {
 Tree tree = sentence . get ( TreeCoreAnnotations . TreeAnnotation . class ) ;
 trees . add ( tree ) ;

 - SemanticGraph dependencies = SemanticGraphFactory . makeFromTree ( tree , Mode . COLLAPSED , Extras . NONE , false , null , true ) ;
 + SemanticGraph dependencies = SemanticGraphFactory . makeFromTree ( tree , Mode . COLLAPSED , Extras . NONE , true , null , true ) ;
 sentence . set ( SemanticGraphCoreAnnotations . AlternativeDependenciesAnnotation . class , dependencies ) ;

 if ( ! hasSpeakerAnnotations ) {

Make the call to converting tree old dependencies threadsafe


<nb> public class WPImageGetter implements Html . ImageGetter {
 return remote ;
 }

 - private static class RemoteDrawable extends BitmapDrawable {
 + public static class RemoteDrawable extends BitmapDrawable {
 Drawable mRemoteDrawable ;
 final Drawable mLoadingDrawable ;
 final Drawable mFailedDrawable ;

Added image spans directly instead of using Html fromHtml


<nb> public class Catalina extends Embedded {
 public void process ( String args [ ] ) {

 setAwait ( true ) ;
 - setCatalinaHome ( ) ;
 - setCatalinaBase ( ) ;
 + initDirs ( ) ;
 try {
 if ( arguments ( args ) ) {
 if ( starting ) {
 <nb> public class Catalina extends Embedded {

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public void setCatalinaBase ( ) {
 - initDirs ( ) ;
 - }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public void setCatalinaHome ( ) {
 - initDirs ( ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 public void load ( ) {


<nb> public class DefaultStackTraceFilterer implements StackTraceFilterer {
 public static final Log STACK_LOG = LogFactory . getLog ( STRING0 ) ;

 private static final String [ ] DEFAULT_INTERNAL_PACKAGES = new String [ ] {
 + STRING1 ,
 STRING2 ,
 STRING3 ,
 STRING4 ,

filter resources plugin DevModeSanityFilter by default


<nb> public class TestingPrestoServer
 private final InternalNodeManager nodeManager ;
 private final ServiceSelectorManager serviceSelectorManager ;
 private final Announcer announcer ;
 - private QueryManager queryManager ;
 + private final QueryManager queryManager ;

 public TestingPrestoServer ( )
 throws Exception

Make QueryManager final in TestingPrestoServer


<nb> public class AccountManagerService
 if ( sessionBundle != null ) {
 String accountType = sessionBundle . getString ( AccountManager . KEY_ACCOUNT_TYPE ) ;
 if ( TextUtils . isEmpty ( accountType )
 - && ! mAccountType . equalsIgnoreCase ( mAccountType ) ) {
 + || ! mAccountType . equalsIgnoreCase ( accountType ) ) {
 Log . w ( TAG , STRING0 ) ;
 }
 SINGLE


<nb> public final class DefaultPassConfig extends PassConfig {
 checks . add ( jqueryAliases ) ;
 }

 + if ( options . angularPass && ! options . skipNonTranspilationPasses ) {
 + checks . add ( angularPass ) ;
 + }
 +
 if ( options . getLanguageIn ( ) == LanguageMode . ECMASCRIPT6_TYPED
 && options . getLanguageOut ( ) != LanguageMode . ECMASCRIPT6_TYPED ) {
 checks . add ( convertEs6TypedToEs6 ) ;
 <nb> public final class DefaultPassConfig extends PassConfig {
 checks . add ( es6RewriteDestructuring ) ;
 }

 - if ( options . angularPass && ! options . skipNonTranspilationPasses ) {
 - checks . add ( angularPass ) ;
 - }
 -
 if ( options . generateExports && ! options . skipNonTranspilationPasses ) {
 checks . add ( generateExports ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public class AbstractTfsShellTest {
 + public abstract class AbstractTfsShellTest {
 protected static final int SIZE_BYTES = Constants . MB * NUMBER0 ;
 @ rule
 public LocalTachyonClusterResource mLocalTachyonClusterResource =


<nb> public class TestWebSocketFrameClientSSL extends TomcatBaseTest {
 public void testConnectToServerEndpoint ( ) throws Exception {
 Logger logger = Logger . getLogger ( STRING0 ) ;
 logger . setLevel ( Level . ALL ) ;
 - logger = Logger . getLogger ( STRING1 ) ;
 - logger . setLevel ( Level . ALL ) ;
 Tomcat tomcat = getTomcatInstance ( ) ;
 SINGLE
 Context ctx = tomcat . addContext ( STRING2 , null ) ;


<nb> public final class HttpHelper {

 private static final Collection < String > REDIRECTOR_DOMAINS = new HashSet < String > ( Arrays . asList (
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ,
 - STRING9 , STRING10 , STRING11 , STRING12 , STRING13
 + STRING14 , STRING15 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13
 ) ) ;

 private HttpHelper ( ) {


<nb> public interface Seq < T > extends Traversable < T > , Function1 < Integer , T > {
 return ( Seq < T > ) seq ;
 }

 - @ suppresswarnings ( STRING0 )
 - static < T extends Comparable < ? super T > , S extends Seq < T > > S sorted2 ( S seq ) {
 - return ( S ) seq . sorted ( Comparator . naturalOrder ( ) ) ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT


<nb>
 package NAMESPACE ;

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

 COMMENT
 <nb> public class RoundedBitmapDisplayer implements BitmapDisplayer {

 @ override
 public Bitmap display ( Bitmap bitmap , ImageView imageView ) {
 - Bitmap roundBitmap = getRoundedCornerBitmap ( bitmap ) ;
 + Bitmap roundBitmap ;
 + try {
 + roundBitmap = getRoundedCornerBitmap ( bitmap ) ;
 + } catch ( OutOfMemoryError e ) {
 + Log . e ( ImageLoader . TAG , STRING0 , e ) ;
 + roundBitmap = bitmap ;
 + }
 imageView . setImageBitmap ( roundBitmap ) ;
 return roundBitmap ;
 }


<nb> public class Wallet implements Serializable , BlockChainListener {
 if ( Utils . isWindows ( ) ) {
 SINGLE
 File canonical = destFile . getCanonicalFile ( ) ;
 - if ( canonical . delete ( ) && temp . renameTo ( canonical ) )
 + canonical . delete ( ) ;
 + if ( temp . renameTo ( canonical ) )
 return ; SINGLE
 throw new IOException ( STRING0 + temp + STRING1 + canonical ) ;
 } else if ( ! temp . renameTo ( destFile ) ) {

Fix a regression in saving wallets on Windows


<nb> public final class OnSubscribeRefCount < T > implements OnSubscribe < T > {
 source . connect ( onSubscribe ( subscriber , writeLocked ) ) ;
 } finally {
 SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 if ( writeLocked . get ( ) ) {
 - SINGLE
 + SINGLE
 lock . unlock ( ) ;
 }
 }
 <nb> public final class OnSubscribeRefCount < T > implements OnSubscribe < T > {
 subscriber . onCompleted ( ) ;
 }
 void cleanup ( ) {
 + SINGLE
 + SINGLE
 lock . lock ( ) ;
 try {
 if ( baseSubscription == currentBase ) {


<nb> class AudioPortEventHandler {
 mListeners = new ArrayList < AudioManager . OnAudioPortUpdateListener > ( ) ;

 SINGLE
 - Looper looper = Looper . myLooper ( ) ;
 - if ( looper == null ) {
 - looper = Looper . getMainLooper ( ) ;
 - }
 + Looper looper = Looper . getMainLooper ( ) ;

 if ( looper != null ) {
 mHandler = new Handler ( looper ) {

only use main looper for AudioPort event handler


<nb> public class HttpRequest {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 - public OutputStreamWriter writer ( ) {
 + public OutputStreamWriter writer ( ) throws HttpRequestException {
 try {
 openOutput ( ) ;
 return new OutputStreamWriter ( output , output . encoder . charset ( ) ) ;

Add missing throws declaration on writer method


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

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;

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

 COMMENT

moved AbstractFileSetCheck to api package


<nb> public interface MessageCounterManager {

 public void register ( String name ) ;

 - public Map < Integer , MessageCounter > get ( String name ) ;
 + public MessageCounter get ( String name ) ;

 - public Map < String , Map < Integer , MessageCounter > > getAllCounters ( ) ;
 + public Map < String , MessageCounter > getAllCounters ( ) ;

 }

Revert Store message counters in timestamp keyed maps


<nb> public abstract class ClientCall < ReqT , RespT > {
 public abstract void request ( int numMessages ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public void cancel ( ) {
 - cancel ( STRING0 , null ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ForwardingClientCall < ReqT , RespT > extends ClientCall < ReqT ,
 delegate ( ) . request ( numMessages ) ;
 }

 - @ deprecated
 - @ override
 - public void cancel ( ) {
 - delegate ( ) . cancel ( ) ;
 - }
 -
 @ override
 public void cancel ( @ nullable String message , @ nullable Throwable cause ) {
 delegate ( ) . cancel ( message , cause ) ;


<nb> class RelationshipTypeHolder
 }
 catch ( Throwable t )
 {
 + t . printStackTrace ( ) ;
 try
 {
 transactionManager . rollback ( ) ;
 }
 catch ( Throwable tt )
 {
 + tt . printStackTrace ( ) ;
 }
 }
 finally


<nb> final class SocketReceiveBufferPool {
 }

 ByteBuffer buf = ByteBuffer . allocateDirect ( normalizeCapacity ( size ) ) ;
 - buf . clear ( ) ;
 return buf ;
 }

Remove not needed call of ByteBuffer clear


<nb> public class RouteInfoWidgetsFactory {
 }
 }
 }
 - if ( r != null && r . distanceTo > NUMBER0 && r . directionInfo != null ) {
 + if ( r != null && r . distanceTo > NUMBER0 && r . directionInfo != null ) {
 turnType = r . directionInfo . getTurnType ( ) ;
 turnImminent = r . imminent ;
 nextTurnDistance = r . distanceTo ;


<nb> public class AnvilText extends HText {
 int dstHeight = ( int ) ( smoke . getHeight ( ) * FLOAT0 / smoke . getWidth ( ) * dstWidth ) ;
 smokes [ i ] = Bitmap . createScaledBitmap ( smoke , dstWidth , dstHeight , false ) ;
 smoke . recycle ( ) ;
 + System . gc ( ) ;
 }
 }


<nb> public class DataFlowInspection extends DataFlowInspectionBase {
 } ) ;

 myReportNullArguments = new JCheckBox ( STRING0 ) ;
 - myTreatUnknownMembersAsNullable . setSelected ( REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER ) ;
 - myTreatUnknownMembersAsNullable . getModel ( ) . addChangeListener ( new ChangeListener ( ) {
 + myReportNullArguments . setSelected ( REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER ) ;
 + myReportNullArguments . getModel ( ) . addChangeListener ( new ChangeListener ( ) {
 @ override
 public void stateChanged ( ChangeEvent e ) {
 - REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myTreatUnknownMembersAsNullable . isSelected ( ) ;
 + REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myReportNullArguments . isSelected ( ) ;
 }
 } ) ;


<nb> mTabHost . addTab ( TAB_TAG_1 , STRING0 , STRING1 ) ;
 mLocalActivityManager = activityGroup ;
 }

 -
 - @ override
 - protected void onAttachedToWindow ( ) {
 - super . onAttachedToWindow ( ) ;
 - final ViewTreeObserver treeObserver = getViewTreeObserver ( ) ;
 - treeObserver . addOnTouchModeChangeListener ( this ) ;
 - }
 -
 @ override
 - protected void onDetachedFromWindow ( ) {
 - super . onDetachedFromWindow ( ) ;
 - final ViewTreeObserver treeObserver = getViewTreeObserver ( ) ;
 - treeObserver . removeOnTouchModeChangeListener ( this ) ;
 - }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 public void onTouchModeChanged ( boolean isInTouchMode ) {
 - if ( ! isInTouchMode ) {
 - SINGLE
 - SINGLE
 - if ( mCurrentView != null && ( ! mCurrentView . hasFocus ( ) || mCurrentView . isFocused ( ) ) ) {
 - mTabWidget . getChildTabViewAt ( mCurrentTab ) . requestFocus ( ) ;
 - }
 - }
 + SINGLE
 }

 COMMENT

Fix TabHost stealing focus on hardware keyboard keypress


<nb> import NAMESPACE ;
 public abstract class OCommandExecutorSQLResultsetAbstract extends OCommandExecutorSQLAbstract implements Iterator < OIdentifiable > ,
 Iterable < OIdentifiable > {
 protected static final String KEYWORD_FROM_2FIND = STRING0 + KEYWORD_FROM + STRING0 ;
 + protected static final String KEYWORD_LET_2FIND = STRING0 + KEYWORD_LET + STRING0 ;

 protected OSQLAsynchQuery < ORecordSchemaAware < ? > > request ;
 protected OSQLTarget parsedTarget ;
 <nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr
 return - NUMBER0 ;

 int upperBound = OStringSerializerHelper . getLowerIndexOf ( parserTextUpperCase , parserGetCurrentPosition ( ) , KEYWORD_FROM_2FIND ,
 - KEYWORD_LET ) ;
 + KEYWORD_LET_2FIND ) ;
 if ( upperBound == - NUMBER0 )
 SINGLE
 upperBound = parserText . length ( ) - NUMBER0 ;


<nb> public class HibernateMappedClassTests extends
 InvokerHelper . invokeMethod ( hmc , STRING0 , new Object [ NUMBER0 ] ) ;
 String className = hmc . getClass ( ) . getName ( ) ;
 hmc = null ;
 -
 - hmc = ( HibernateMappedClass ) InvokerHelper . invokeStaticMethod ( className , STRING1 , new Object [ ] { new Integer ( NUMBER1 ) } ) ;
 +
 + hmc = ( HibernateMappedClass ) InvokerHelper . invokeStaticMethod ( hmc . getClass ( ) , STRING1 , new Object [ ] { new Integer ( NUMBER1 ) } ) ;
 +
 assertEquals ( STRING2 , hmc . getMyProp ( ) ) ;
 }
 }

upgraded Groovy jar to latest build fixing compatabilities


<nb> public class $ { name } Component extends UriEndpointComponent {
 try {
 apiName = $ { name } ApiName . fromValue ( apiNameStr ) ;
 } catch ( IllegalArgumentException e ) {
 - throw new CamelException ( STRING0 + apiNameStr +
 + throw new CamelException ( STRING1 + remaining +
 STRING2 + collection . getApiNames ( ) ) ;
 }

Fixed error message on invalid endpoint URI


<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable {
 COMMENT
 FIRE_TICK ,
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + MELTING ,
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DefaultMessage extends MessageSupport {
 }

 public boolean hasHeaders ( ) {
 + if ( ! hasPopulatedHeaders ( ) ) {
 + SINGLE
 + getHeaders ( ) ;
 + }
 return headers != null && ! headers . isEmpty ( ) ;
 }

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

 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class FileRouteToJmsToFileTest extends CamelTestSupport {
 @ test
 public void testRouteFileToFile ( ) throws Exception {
 deleteDirectory ( STRING0 ) ;
 +
 MockEndpoint mock = getMockEndpoint ( STRING1 ) ;
 mock . expectedMessageCount ( NUMBER0 ) ;

 template . sendBodyAndHeader ( STRING2 , STRING3 , Exchange . FILE_NAME , STRING4 ) ;

 assertMockEndpointsSatisfied ( ) ;
 - Thread . sleep ( NUMBER1 ) ;
 +
 + SINGLE
 + Thread . sleep ( NUMBER2 ) ;

 File file = new File ( STRING5 ) ;
 file = file . getAbsoluteFile ( ) ;


<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
 final int lastPos = firstPos + getChildCount ( ) - NUMBER0 ;

 int viewTravelCount = NUMBER1 ;
 - if ( position < firstPos ) {
 + if ( position <= firstPos ) {
 final int boundPosFromLast = lastPos - boundPosition ;
 if ( boundPosFromLast < NUMBER0 ) {
 SINGLE
 <nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
 viewTravelCount = posTravel ;
 mMode = MOVE_UP_POS ;
 }
 - } else if ( position > lastPos ) {
 + } else if ( position >= lastPos ) {
 final int boundPosFromFirst = boundPosition - firstPos ;
 if ( boundPosFromFirst < NUMBER0 ) {
 SINGLE

Fix bug with AbsListView position scrolling


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ViewerTab extends DelayLoadWorkbenchTab < ViewerPresenter >
 {
 public abstract static class Shim
 extends DelayLoadTabShim < ViewerPresenter , ViewerTab >
 - implements ViewerNavigateEvent . Handler { }
 + implements ViewerNavigateEvent . Handler ,
 + ShinyApplicationStatusEvent . Handler { }

 @ inject
 public ViewerTab ( Shim shim , Session session , EventBus eventBus )
 <nb> public class ViewerTab extends DelayLoadWorkbenchTab < ViewerPresenter >
 session_ = session ;

 eventBus . addHandler ( ViewerNavigateEvent . TYPE , shim ) ;
 + eventBus . addHandler ( ShinyApplicationStatusEvent . TYPE , shim ) ;
 +
 }

 @ suppresswarnings ( STRING0 )

Handle shiny application status event in shim


<nb> public class WeldJoint extends Joint {
 }

 public float getReferenceAngle ( ) {
 - return NUMBER0 ;
 + return joint . getReferenceAngle ( ) ;
 }
 +
 + public float getFrequency ( ) {
 + return joint . getFrequency ( ) ;
 + }
 +
 + public void setFrequency ( float frequencyHz ) {
 + joint . setFrequency ( frequencyHz ) ;
 + }
 +
 + public float getDampingRatio ( ) {
 + return joint . getDampingRatio ( ) ;
 + }
 +
 + public void setDampingRatio ( float dampingRatio ) {
 + joint . setDampingRatio ( dampingRatio ) ;
 + }
 +
 }


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> final class PlatformInternal {
 Field unsafeField = Unsafe . class . getDeclaredField ( STRING0 ) ;
 unsafeField . setAccessible ( true ) ;
 unsafe = ( Unsafe ) unsafeField . get ( null ) ;
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - try {
 - if ( unsafe != null ) {
 - unsafe . getClass ( ) . getDeclaredMethod (
 - STRING1 , Object . class , long . class , Object . class , long . class , long . class ) ;
 - }
 - }
 - catch ( NoSuchMethodError | NoSuchMethodException ex ) {
 - throw ex ;
 - }
 }
 catch ( Throwable cause ) {
 SINGLE

Removing copyMemory detection as we are not using it yet


<nb> public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public void setDefaultPersistenceUnitRootLocation ( String defaultPersistenceUnitRootLocation ) {
 + public void setPersistenceUnitRootLocation ( String defaultPersistenceUnitRootLocation ) {
 this . internalPersistenceUnitManager . setDefaultPersistenceUnitRootLocation ( defaultPersistenceUnitRootLocation ) ;
 }

 <nb> public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultPersistenceUnitManager
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void setSharedCacheMode ( SharedCacheMode sharedCacheMode ) {
 <nb> public class DefaultPersistenceUnitManager
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void setValidationMode ( ValidationMode validationMode ) {

Renamed setDefaultPersistenceUnitRootLocation to setPersistenceUnitRootLocation


<nb> public class PrepareLocalWorld implements LoadProcess {
 if ( spawningPlayer ) {
 spawnZoneEntity = entityManager . create ( ) ;
 spawnZoneEntity . addComponent ( new LocationComponent ( new Vector3f ( Chunk . SIZE_X / NUMBER0 , Chunk . SIZE_Y / NUMBER0 , Chunk . SIZE_Z / NUMBER0 ) ) ) ;
 - worldRenderer . getChunkProvider ( ) . addRegionEntity ( spawnZoneEntity , NUMBER1 ) ;
 + worldRenderer . getChunkProvider ( ) . addRegionEntity ( spawnZoneEntity , NUMBER2 ) ;
 targetPos = Vector3i . zero ( ) ;
 } else {
 CoreRegistry . get ( LocalPlayer . class ) . setEntity ( iterator . next ( ) ) ;

Fixed issue with PrepareLocalWorld not pulling in enough of the world around the spawn chunk


<nb> public class AssetManager implements Disposable {
 }

 COMMENT
 - public synchronized String getDiagonistics ( ) {
 + public synchronized String getDiagnostics ( ) {
 StringBuffer buffer = new StringBuffer ( ) ;
 for ( String fileName : assetTypes . keys ( ) ) {
 buffer . append ( fileName ) ;
 <nb> public class AssetManagerTest extends GdxTest implements AssetErrorListener {
 Gdx . gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ;
 boolean result = manager . update ( ) ;
 if ( result & ! diagnosed ) {
 - Gdx . app . log ( STRING0 , STRING1 + manager . getDiagonistics ( ) + STRING1 + Texture . getManagedStatus ( ) ) ;
 + Gdx . app . log ( STRING0 , STRING1 + manager . getDiagnostics ( ) + STRING1 + Texture . getManagedStatus ( ) ) ;
 diagnosed = false ;
 SINGLE
 SINGLE


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class GrailsViewResolver extends InternalResourceViewResolver {
 - private String localSuffix ;
 private String localPrefix ;
 private static final String GSP_SUFFIX = STRING0 ;
 private Map resolvedCache = new HashMap ( ) ;
 <nb> public class GrailsViewResolver extends InternalResourceViewResolver {

 public void setSuffix ( String suffix ) {
 super . setSuffix ( suffix ) ;
 - this . localSuffix = suffix ;
 }

 protected View loadView ( String viewName , Locale locale ) throws Exception {
 <nb> public class GrailsViewResolver extends InternalResourceViewResolver {
 view . afterPropertiesSet ( ) ;
 return view ;
 }
 -
 - private String localUrlForView ( String viewName ) {
 - return null ;
 - }
 }

cleaned up imports removed unused method


<nb> public class Classifier {
 COMMENT
 public void merge ( Cost otherCost ) {
 this . cost += otherCost . getCost ( ) ;
 + this . percentCorrect += otherCost . getPercentCorrect ( ) ;

 addInPlace ( gradW1 , otherCost . getGradW1 ( ) ) ;
 addInPlace ( gradb1 , otherCost . getGradb1 ( ) ) ;


<nb> public class CleaningJavaCompiler extends CleaningJavaCompilerSupport < JavaCompil
 }

 protected StaleClassCleaner createCleaner ( JavaCompileSpec spec ) {
 + SINGLE
 + SINGLE
 if ( spec . getCompileOptions ( ) . isUseDepend ( ) ) {
 AntDependsStaleClassCleaner cleaner = new AntDependsStaleClassCleaner ( antBuilderFactory , spec . getCompileOptions ( ) ) ;
 cleaner . setDependencyCacheDir ( spec . getDependencyCacheDir ( ) ) ;
 <nb> public class CompileOptions extends AbstractOptions {

 private ForkOptions forkOptions = new ForkOptions ( ) ;

 - private boolean useDepend ; SINGLE
 + private boolean useDepend ;

 private DependOptions dependOptions = new DependOptions ( ) ;


<nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> public class TachyonFileAppender extends FileAppender {
 }

 private String getNewLogFileName ( String fileName ) {
 - if ( fileName != null ) {
 + if ( ! fileName . isEmpty ( ) ) {
 String newFileName = STRING0 ;
 int dotIndex = fileName . indexOf ( STRING1 ) ;
 if ( dotIndex != - NUMBER0 && fileName . indexOf ( STRING2 ) == - NUMBER0 ) {
 <nb> public class TachyonFileAppender extends FileAppender {
 mLastDate = CommonUtils . convertMsToSimpleDate ( System . currentTimeMillis ( ) ) ;
 mCurrentFileName = newFileName ;
 return newFileName ;
 + } else {
 + throw new RuntimeException ( STRING3 ) ;
 }
 - return null ;
 }

 private void rotateLogs ( String fileName ) {

throw exception when there is a empty log path


<nb> public class HistogramIterationListener implements IterationListener {
 SINGLE

 - int idx = indexFromString ( newName ) ;
 + int idx = indexFromString ( param ) ;
 if ( idx >= meanMagHistoryUpdates . size ( ) ) {
 SINGLE
 meanMagHistoryUpdates . add ( new LinkedHashMap < String , List < Double > > ( ) ) ;
 - idx = indexFromString ( newName ) ;
 }

 <nb> public class HistogramIterationListener implements IterationListener {
 newParams . put ( newName , histogram . getData ( ) ) ;
 SINGLE

 - int idx = indexFromString ( newName ) ;
 + int idx = indexFromString ( param ) ;
 if ( idx >= meanMagHistoryParams . size ( ) ) {
 SINGLE
 meanMagHistoryParams . add ( new LinkedHashMap < String , List < Double > > ( ) ) ;
 - idx = indexFromString ( newName ) ;
 }

 Map < String , List < Double > > map = meanMagHistoryParams . get ( idx ) ;

Fix indexing on histogram mean magnitudes calculation


<nb> public class BrowserContract {
 COMMENT
 COMMENT
 public static final String ACCOUNT_TYPE = STRING0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String ROOT_ID = STRING1 ;
 }

 COMMENT


<nb> public class GraphDatabaseConfiguration {

 public static final ConfigOption < Boolean > ALLOW_SETTING_VERTEX_ID = new ConfigOption < Boolean > ( GRAPH_NS , STRING0 ,
 STRING1 +
 - STRING2 +
 - STRING3 ,
 + STRING4 +
 + STRING3 ,
 ConfigOption . Type . FIXED , false ) ;

 public static final ConfigOption < Timestamps > TIMESTAMP_PROVIDER = new ConfigOption < Timestamps > ( GRAPH_NS , STRING5 ,

Fix whitespace in graph set vertex id description


<nb> import NAMESPACE ;
 public class OperationResult implements Parcelable {
 public final int resultCode ;
 public final IBinder token ;
 + public final long operationHandle ;
 public final int inputConsumed ;
 public final byte [ ] output ;

 <nb> public class OperationResult implements Parcelable {
 protected OperationResult ( Parcel in ) {
 resultCode = in . readInt ( ) ;
 token = in . readStrongBinder ( ) ;
 + operationHandle = in . readLong ( ) ;
 inputConsumed = in . readInt ( ) ;
 output = in . createByteArray ( ) ;
 }
 <nb> public class OperationResult implements Parcelable {
 public void writeToParcel ( Parcel out , int flags ) {
 out . writeInt ( resultCode ) ;
 out . writeStrongBinder ( token ) ;
 + out . writeLong ( operationHandle ) ;
 out . writeInt ( inputConsumed ) ;
 out . writeByteArray ( output ) ;
 }

Include operation handle in OperationResult


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ConfigFileApplicationListener implements EnvironmentPostProcessor ,
 msg . append ( STRING0 ) ;
 }
 msg . append ( STRING1 ) ;
 - msg . append ( STRING2 ) . append ( location ) . append ( STRING2 ) ;
 + String resourceDescription ;
 + try {
 + resourceDescription = String . format ( STRING3 ,
 + resource . getURI ( ) . toASCIIString ( ) , location ) ;
 + }
 + catch ( IOException ex ) {
 + resourceDescription = String . format ( STRING4 , location ) ;
 + }
 + msg . append ( resourceDescription ) ;
 if ( StringUtils . hasLength ( profile ) ) {
 msg . append ( STRING5 ) . append ( profile ) ;
 }

Improve location diagnostics in ConfigFileApplicationListener


<nb> public class TestDateTimeFormat extends TestCase {
 } catch ( IllegalArgumentException ex ) { }
 }

 + public void testFormat_samples ( ) {
 + DateTime dt = new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , UTC ) ;
 + DateTimeFormatter f = DateTimeFormat . forPattern ( STRING0 ) ;
 + assertEquals ( STRING1 , f . print ( dt ) ) ;
 + }
 +
 }


<nb> public class SettingsActivity extends PreferenceActivity {
 setContentView ( R . layout . activity_settings ) ;
 setTitle ( R . string . title_settings ) ;

 + SINGLE
 + SINGLE
 getActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ;
 + View view = Util . getActionBarUpView ( this ) ;
 + if ( view != null ) {
 + view . setVisibility ( View . GONE ) ;
 + }
 }

 @ override
 <nb> public class SettingsActivity extends PreferenceActivity {
 }
 }

 -
 -
 void checkDefaultBrowser ( ) {

 PackageManager packageManager = getActivity ( ) . getPackageManager ( ) ;


<nb> public class DirectoryFragment extends Fragment {
 }

 mRecView . setLayoutManager ( layout ) ;
 + SINGLE
 + SINGLE
 + mSelectionManager . handleLayoutChanged ( ) ;
 SINGLE
 mThumbSize = new Point ( thumbSize , thumbSize ) ;
 }
 <nb> public final class MultiSelectManager {
 notifySelectionChanged ( ) ;
 }

 + public void handleLayoutChanged ( ) {
 + mBandSelectManager . handleLayoutChanged ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class MultiSelectManager {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void handleLayoutChanged ( ) {
 + mModel . removeOnSelectionChangedListener ( this ) ;
 + mModel . stopListening ( ) ;
 +
 + mModel = new BandSelectModel ( ( RuntimeRecyclerViewHelper ) mHelper ) ;
 + mModel . addOnSelectionChangedListener ( this ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class NamespaceComparator {
 FileUtil . writeToFile ( txtFile , serialized ) ;
 Assert . fail ( STRING0 + txtFile ) ;
 }
 - String expected = FileUtil . loadFile ( txtFile ) ;
 + String expected = FileUtil . loadFile ( txtFile , true ) ;

 SINGLE
 Assert . assertEquals ( expected , serialized ) ;


<nb> public final class RealmObjectSchema {
 FieldMetaData metadata = SUPPORTED_SIMPLE_FIELDS . get ( fieldType ) ;
 if ( metadata == null ) {
 if ( SUPPORTED_LINKED_FIELDS . containsKey ( fieldType ) ) {
 - throw new IllegalArgumentException ( STRING0 + fieldName ) ;
 + throw new IllegalArgumentException ( STRING1 + fieldName ) ;
 } else {
 throw new IllegalArgumentException ( String . format ( STRING2 ,
 fieldName , fieldType ) ) ;


<nb> public class DeepLearningAutoEncoderTest extends TestUtil {

 SINGLE
 mymodel . delete ( ) ;
 + frame . add ( STRING0 , resp ) ;
 frame . delete ( ) ;
 p . delete ( ) ;
 l2_frame . delete ( ) ;
 <nb> public class DeepLearningAutoEncoderTest extends TestUtil {
 reconstructed . delete ( ) ;
 ( ( Frame ) DKV . get ( Key . make ( STRING1 ) ) . get ( ) ) . delete ( ) ;
 diff . delete ( ) ;
 - resp . remove ( null ) ;
 }
 }


<nb> public class HgMergeProvider implements MergeProvider {
 final VirtualFile repo = HgUtil . getHgRootOrThrow ( myProject , file ) ;
 final HgFile hgFile = new HgFile ( myProject , file ) ;

 - HgRevisionNumber serverRevisionNumber , baseRevisionNumber = null , localRevisionNumber ;
 + HgRevisionNumber serverRevisionNumber ;
 + HgRevisionNumber localRevisionNumber ;
 + HgRevisionNumber baseRevisionNumber = null ;
 SINGLE
 if ( wasFileCheckedIn ( repo , file ) ) {
 SINGLE
 <nb> public class HgMergeProvider implements MergeProvider {
 }
 }
 catch ( HgCommandException e ) {
 - new HgCommandResultNotifier ( myProject )
 - . notifyError ( null , HgVcsMessages . message ( STRING0 ) , e . getMessage ( ) ) ;
 + throw new VcsException ( HgVcsMessages . message ( STRING0 ) , e ) ;
 }
 } else {
 SINGLE

split declaration throw VCSException instead of HgCommandResultNotifier notidyError


<nb> public class AntTypeDefImpl extends AntTaskImpl implements AntTypeDef {
 }

 public boolean typesLoaded ( ) {
 - return myClassesLoaded ;
 + return myClassesLoaded || ! isSupported ( ) ;
 }

 @ nullable
 <nb> public class AntTypeDefImpl extends AntTaskImpl implements AntTypeDef {
 return STRING0 . equals ( getSourceElement ( ) . getName ( ) ) ;
 }

 + private boolean isSupported ( ) {
 + return getSourceElement ( ) . findFirstSubTag ( STRING1 ) == null ;
 + }
 +
 private static PsiFile createDummyFile ( @ nonnls final String name ,
 final LanguageFileType type ,
 final CharSequence str ,

don t highlight taskdefs which we are not supporting


<nb> public class SQLSemanticProcessor {
 SINGLE
 FromItem fromItem = select . getFromItem ( ) ;
 String tableAlias = fromItem . getAlias ( ) == null ? null : fromItem . getAlias ( ) . getName ( ) ;
 + if ( tableAlias == null ) {
 + if ( fromItem instanceof Table ) {
 + tableAlias = ( ( Table ) fromItem ) . getName ( ) ;
 + }
 + }
 if ( filter . hasConditions ( ) ) {
 StringBuilder whereString = new StringBuilder ( ) ;
 SQLUtils . appendConditionString ( filter , dataSource , tableAlias , whereString , true ) ;


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

 import NAMESPACE ;

 import NAMESPACE ;

 - public class SessionOutputMem {
 + public class SessionOutputUtil {

 private static Map < Long , SessionOutput > sessionOutputMap = new LinkedHashMap < Long , SessionOutput > ( ) ;


<nb> public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int
 private final InjectedValue < InterceptorBindings > interceptorBindings = new InjectedValue < InterceptorBindings > ( ) ;
 private final String beanArchiveId ;
 private final String ejbName ;
 + private volatile BeanManagerImpl beanManager ;

 public Jsr299BindingsCreateInterceptor ( String beanArchiveId , String ejbName ) {
 this . beanArchiveId = beanArchiveId ;
 <nb> public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int

 @ override
 public Object processInvocation ( InterceptorContext interceptorContext ) throws Exception {
 - BeanManagerImpl beanManager = this . weldContainer . getValue ( ) . getBeanManager ( beanArchiveId ) ;
 +
 + BeanManagerImpl beanManager = this . beanManager ;
 + if ( beanManager == null ) {
 + SINGLE
 + beanManager = this . beanManager = this . weldContainer . getValue ( ) . getBeanManager ( beanArchiveId ) ;
 + }
 SINGLE
 SINGLE
 SessionBean < Object > bean = null ;

Cache the bean manager in the bindings interceptor


<nb> public class TimerTask < T extends TimerImpl > implements Runnable {

 SINGLE
 if ( ! timerService . shouldRun ( timer ) ) {
 - ROOT_LOGGER . debugf ( STRING0 , timer . getTimedObjectId ( ) ) ;
 + ROOT_LOGGER . debugf ( STRING1 , timer . getTimedObjectId ( ) ) ;
 timer . setNextTimeout ( calculateNextTimeout ( timer ) ) ;
 scheduleTimeoutIfRequired ( timer ) ;
 return ;

change the debug message to reflect that the timer execution can be suppressed by configuration


<nb> public class DiscourseFormat {
 SINGLE

 SINGLE
 - StringBuffer cf = new StringBuffer ( STRING0 ) ;
 + StringBuffer cf = new StringBuffer ( STRING1 ) ;

 int selStart = parent . getSelectionStart ( ) ;
 int selStop = parent . getSelectionEnd ( ) ;
 <nb> public class DiscourseFormat {
 appendFormattedLine ( cf , i ) ;
 }

 - cf . append ( STRING2 ) ;
 + cf . append ( STRING3 ) ;

 StringSelection formatted = new StringSelection ( cf . toString ( ) ) ;
 Clipboard clipboard = Toolkit . getDefaultToolkit ( ) . getSystemClipboard ( ) ;


<nb> public class DummyTest extends ActivityInstrumentationTestCase2 < AIMSICD > {

 public void testSomething ( ) {
 try { Thread . sleep ( NUMBER0 ) ; } catch ( Exception e ) { }
 - assertEquals ( getActivity ( ) . getTitle ( ) , getActivity ( ) . getString ( R . string . app_name_short ) ) ;
 + assertTrue ( true ) ;
 }
 }

removed assertion for title as it might fail on first launch e g in Travis CI


<nb> public class AnnotationDescriptionAbstractPreparedExceptionTest {

 @ test ( expected = ClassNotFoundException . class )
 public void testThrowWithoutClassLoader ( ) throws Exception {
 - new PseudoDescription ( ) . load ( ) ;
 + new PseudoDescription ( ) . loadSilent ( ) ;
 }

 @ test ( expected = ClassNotFoundException . class )
 public void testThrowWithClassLoader ( ) throws Exception {
 - new PseudoDescription ( ) . load ( getClass ( ) . getClassLoader ( ) ) ;
 + new PseudoDescription ( ) . loadSilent ( getClass ( ) . getClassLoader ( ) ) ;
 }

 private static class PseudoDescription extends AnnotationDescription . AbstractAnnotationDescription . ForPrepared < Annotation > {


<nb> class MCMPHandler implements HttpHandler {
 final InetSocketAddress addr = exchange . getDestinationAddress ( ) ;
 SINGLE
 if ( addr . getPort ( ) != config . getManagementPort ( ) || ! addr . getHostString ( ) . equals ( config . getManagementHost ( ) ) ) {
 + SINGLE
 + UndertowLogger . REQUEST_LOGGER . error ( STRING0 + addr . getPort ( ) + STRING1 + config . getManagementPort ( ) + STRING2 + addr . getHostString ( ) + STRING1 + config . getManagementHost ( ) ) ;
 next . handleRequest ( exchange ) ;
 return ;
 }


<nb> public abstract class AbstractInterval implements ReadableInterval {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public boolean isEqual ( ReadableInterval other ) {
 return getStartMillis ( ) == other . getStartMillis ( ) &&


<nb> public class ResArrayValue extends ResBagValue implements ResXmlSerializable {
 }

 public String getType ( ) {
 + if ( mItems . length == NUMBER0 ) {
 + return null ;
 + }
 String type = mItems [ NUMBER0 ] . getType ( ) ;
 if ( ! STRING0 . equals ( type ) && ! STRING1 . equals ( type ) ) {
 return null ;


<nb> public class HttpConnection implements Connection
 switch ( HttpMethods . CACHE . getOrdinal ( method ) )
 {
 case HttpMethods . CONNECT_ORDINAL :
 - _uri . parseConnect ( uri . array ( ) , uri . getIndex ( ) , uri . length ( ) ) ;
 + SINGLE
 + _uri . parse ( STRING0 + uri + STRING1 ) ;
 break ;

 case HttpMethods . HEAD_ORDINAL :


<nb> public abstract class ZuulFilter implements IZuulFilter , Comparable < ZuulFilter >
 }

 public int compareTo ( ZuulFilter filter ) {
 - return this . filterOrder ( ) - filter . filterOrder ( ) ;
 + return Integer . compare ( this . filterOrder ( ) , filter . filterOrder ( ) ) ;
 }

 public static class TestUnit {


<nb> public class ConnectivityService extends IConnectivityManager . Stub {
 mHandler = new MyHandler ( handlerThread . getLooper ( ) ) ;

 SINGLE
 - String id = Settings . Secure . getString ( context . getContentResolver ( ) ,
 - Settings . Secure . ANDROID_ID ) ;
 - if ( id != null && id . length ( ) > NUMBER0 ) {
 - String name = new String ( STRING0 ) . concat ( id ) ;
 - SystemProperties . set ( STRING1 , name ) ;
 + if ( TextUtils . isEmpty ( SystemProperties . get ( STRING1 ) ) ) {
 + String id = Settings . Secure . getString ( context . getContentResolver ( ) ,
 + Settings . Secure . ANDROID_ID ) ;
 + if ( id != null && id . length ( ) > NUMBER0 ) {
 + String name = new String ( STRING0 ) . concat ( id ) ;
 + SystemProperties . set ( STRING1 , name ) ;
 + }
 }

 SINGLE

Don t clobber the net hostname if it s already set


<nb> public final class PayloadBuilder {
 return this ;
 }

 + public CustomAlertBuilder actionKey ( String actionKey ) {
 + if ( actionKey == null )
 + actionKey = STRING0 ;
 + aps . put ( STRING1 , actionKey ) ;
 + return this ;
 + }
 +
 public CustomAlertBuilder localizedKey ( String key ) {
 aps . put ( STRING2 , key ) ;
 return this ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class Parameterized extends Suite {


<nb> public abstract class BaseTest < T extends ODatabase > {
 }
 }

 - if ( url . startsWith ( STRING0 ) ) {
 + if ( url . startsWith ( STRING0 ) && ! url . startsWith ( STRING1 ) ) {
 final ODatabaseDocumentTx db = new ODatabaseDocumentTx ( url ) ;
 if ( ! db . exists ( ) )
 db . create ( ) . close ( ) ;

add check for remote file clean in tests module


<nb> public class OSMNode extends OSMWithTags {
 public boolean isMultiLevel ( ) {
 return hasTag ( STRING0 ) && STRING1 . equals ( getTag ( STRING0 ) ) ;
 }
 +
 + public boolean hasTrafficLight ( ) {
 + return hasTag ( STRING0 ) && STRING2 . equals ( getTag ( STRING0 ) ) ;
 + }

 }

Add a method to check if an OSMNode has a traffic light


<nb> public class ConvertProcessDefinitionPopupWindow extends PopupWindow implements

 URL explorerURL = ExplorerApp . get ( ) . getURL ( ) ;
 URL url = new URL ( explorerURL . getProtocol ( ) , explorerURL . getHost ( ) , explorerURL . getPort ( ) ,
 - explorerURL . getPath ( ) . replace ( STRING0 , STRING1 ) + STRING2 + modelData . getId ( ) ) ;
 + explorerURL . getPath ( ) . replace ( STRING0 , STRING1 ) + STRING3 + modelData . getId ( ) ) ;
 ExplorerApp . get ( ) . getMainWindow ( ) . open ( new ExternalResource ( url ) ) ;
 }
 }

Fix the redirected URL when converting deploy process to editable model


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class ColumnImpl implements Column {

 private final String column ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class TableImpl implements Table {

 private final String table ;

added SuppressWarnings to annotation implementations


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GrailsScriptRunner {
 COMMENT
 public static void main ( String [ ] args ) {
 System . setProperty ( STRING0 , STRING1 ) ;
 -
 + ExpandoMetaClass . enableGlobally ( ) ;
 originalIn = System . in ;
 originalOut = System . out ;

enable EMC as early as possible to prevent meta class inconsistencies


<nb> public class TestBasicSemanticErrors extends BaseTest {
 STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING1 +
 STRING2 + ErrorType . TOKEN_NAMES_MUST_START_UPPER . code + STRING3 +
 STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING4 +
 - STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING5 +
 - STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING6 +
 + STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING7 +
 + STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING8 +
 STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING9 +
 STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING10 +
 STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING11 +

Fix test failure due to change error message text


<nb> public abstract class OStorageEmbedded extends OStorageAbstract {
 SINGLE
 break ;
 } catch ( Exception e ) {
 - OLogManager . instance ( ) . error ( this , STRING0 , recordToCheck . getIdentity ( ) , e ) ;
 + OLogManager . instance ( ) . error ( this , STRING1 , recordToCheck . getIdentity ( ) , e ) ;
 }
 }
 } finally {


<nb> public class InventoryGrid extends CoreWidget {
 SINGLE
 if ( numSlots < cells . size ( ) ) {
 for ( int i = cells . size ( ) ; i > numSlots && i > NUMBER0 ; -- i ) {
 - cells . remove ( i ) ;
 + cells . remove ( i - NUMBER1 ) ;
 }
 } else if ( numSlots > cells . size ( ) ) {
 for ( int i = cells . size ( ) ; i < numSlots && i < getMaxCellCount ( ) ; ++ i ) {


<nb> public class OrcEncodedDataReader extends CallableWithNdc < Void >
 }

 if ( processStop ( ) ) {
 - cleanupReaders ( ) ;
 recordReaderTime ( startTime ) ;
 return null ;
 }
 <nb> public class OrcEncodedDataReader extends CallableWithNdc < Void >
 OrcBatchKey stripeKey = hasFileId ? new OrcBatchKey ( fileKey , - NUMBER0 , NUMBER1 ) : null ;
 for ( int stripeIxMod = NUMBER1 ; stripeIxMod < readState . length ; ++ stripeIxMod ) {
 if ( processStop ( ) ) {
 - cleanupReaders ( ) ;
 recordReaderTime ( startTime ) ;
 return null ;
 }
 <nb> public class OrcEncodedDataReader extends CallableWithNdc < Void >
 return null ;
 }
 if ( processStop ( ) ) {
 - cleanupReaders ( ) ;
 recordReaderTime ( startTime ) ;
 return null ;
 }

remove useless cleanupReaders in OrcEncodedDataReader Fei Hui reviewed by Prasanth Jayachandran


<nb> public class OnClickTest {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 - STRING3 ,
 STRING4 ,
 STRING5 ,
 STRING6 ,
 <nb> public class OnClickTest {
 . processedWith ( butterknifeProcessors ( ) )
 . failsToCompile ( )
 . withErrorContaining ( STRING7 )
 - . in ( source ) . onLine ( NUMBER0 ) ;
 + . in ( source ) . onLine ( NUMBER1 ) ;
 }

 @ test public void failsIfPrivateMethod ( ) {


<nb> public abstract class CustomParser extends Iced {

 public static class StreamData implements CustomParser . DataIn {
 final transient InputStream _is ;
 - private byte [ ] _bits0 = new byte [ NUMBER0 * NUMBER1 ] ;
 - private byte [ ] _bits1 = new byte [ NUMBER0 * NUMBER1 ] ;
 + private byte [ ] _bits0 = new byte [ NUMBER2 * NUMBER1 ] ;
 + private byte [ ] _bits1 = new byte [ NUMBER2 * NUMBER1 ] ;
 private int _cidx0 = - NUMBER3 , _cidx1 = - NUMBER3 ; SINGLE
 public StreamData ( InputStream is ) { _is = is ; }
 @ override public byte [ ] getChunkData ( int cidx ) {

Increased buffer size when uncompressing during parse to avoid problems with a line not fitting into the combined buffer


<nb> public class DebuggerSessionTab implements LogConsoleManager , DebuggerContentInf
 content . setActions ( consoleActions , ActionPlaces . DEBUGGER_TOOLBAR ) ;

 Content [ ] contents = myViewsContentManager . getContents ( ) ;
 + final Content [ ] selected = myViewsContentManager . getSelectedContents ( ) ;
 myViewsContentManager . removeAllContents ( ) ;

 myViewsContentManager . addContent ( content ) ;
 - for ( Content content1 : contents ) {
 - myViewsContentManager . addContent ( content1 ) ;
 + for ( Content each : contents ) {
 + myViewsContentManager . addContent ( each ) ;
 }
 + for ( Content each : selected ) {
 + myViewsContentManager . addSelectedContent ( each ) ;
 + }
 +

 if ( myConfiguration instanceof RunConfigurationBase && ! ( myConfiguration instanceof JUnitConfiguration ) ) {
 myManager . initLogConsoles ( ( RunConfigurationBase ) myConfiguration , myRunContentDescriptor . getProcessHandler ( ) ) ;


<nb> public abstract class SkylarkType implements Serializable {
 COMMENT
 COMMENT
 public static Object convertFromSkylark ( Object value ) {
 - if ( value instanceof SkylarkList ) {
 - return new ArrayList < > ( ( ( SkylarkList ) value ) . getList ( ) ) ;
 + if ( value instanceof MutableList ) {
 + return new ArrayList < > ( ( ( MutableList ) value ) . getList ( ) ) ;
 + } else if ( value instanceof Tuple ) {
 + return ( ( Tuple ) value ) . getImmutableList ( ) ;
 + } else {
 + return value ;
 }
 - return value ;
 }
 }

When loading a Skylark list or tuple preserve the type in the BUILD file


<nb> public class InodeRawTable extends InodeFolder {
 public InodeRawTable ( String name , int id , int parentId , int columns , List < Byte > metadata ) {
 super ( name , id , parentId , true ) ;
 COLUMNS = columns ;
 - METADATA = new ArrayList < Byte > ( metadata . size ( ) ) ;
 - for ( int k = NUMBER0 ; k < metadata . size ( ) ; k ++ ) {
 - METADATA . add ( metadata . get ( k ) ) ;
 + if ( metadata == null ) {
 + METADATA = new ArrayList < Byte > ( NUMBER0 ) ;
 + } else {
 + METADATA = new ArrayList < Byte > ( metadata . size ( ) ) ;
 + for ( int k = NUMBER0 ; k < metadata . size ( ) ; k ++ ) {
 + METADATA . add ( metadata . get ( k ) ) ;
 + }
 }
 }


<nb> public class NumberPicker extends LinearLayout implements OnClickListener ,
 }

 private void validateCurrentView ( CharSequence str , boolean notifyChange ) {
 - int val = getSelectedPos ( str . toString ( ) ) ;
 - if ( ( val >= mStart ) && ( val <= mEnd ) ) {
 - mPrevious = mCurrent ;
 - mCurrent = val ;
 - if ( notifyChange )
 - notifyChange ( mCurrent ) ;
 + if ( ! TextUtils . isEmpty ( str ) ) {
 + int val = getSelectedPos ( str . toString ( ) ) ;
 + if ( ( val >= mStart ) && ( val <= mEnd ) ) {
 + mPrevious = mCurrent ;
 + mCurrent = val ;
 + if ( notifyChange )
 + notifyChange ( mCurrent ) ;
 + }
 }
 updateView ( ) ;
 }

Fixed a bug in the number picker that could throw a numberformatexception


<nb> public class SipMessageFactory

 String localDialogTag = dialog . getLocalTag ( ) ;

 + if ( localDialogTag == null || localDialogTag . length ( ) == NUMBER0 )
 + {
 + SINGLE
 + return ;
 + }
 +
 ToHeader to = ( ToHeader ) response . getHeader ( ToHeader . NAME ) ;

 if ( to == null )

Fixes a NullPointerExc in response creation


<nb> public class IdentityInputFilter implements InputFilter {
 protected final ByteChunk endChunk = new ByteChunk ( ) ;

 - SINGLE
 -
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public long getContentLength ( ) {
 - return contentLength ;
 - }
 -
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public long getRemaining ( ) {
 - return remaining ;
 - }
 -
 -
 SINGLE

 -
 COMMENT
 COMMENT
 COMMENT


<nb> final public class MediaCodec {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final int ERROR_NO_KEY = NUMBER0 ;

Clarify wording of MediaCrypto exception ERROR_NO_KEY


<nb> import NAMESPACE ;
 COMMENT
 public class Version {
 COMMENT
 - public static final String VERSION = STRING0 ;
 + public static final String VERSION = STRING1 ;

 COMMENT
 public static final int MAJOR ;


<nb> public enum JavaVersion {
 } else if ( name . matches ( STRING0 ) ) {
 int number = Integer . parseInt ( name ) ;
 int index = number - NUMBER0 ; SINGLE
 - if ( index < values ( ) . length && values ( ) [ index ] . hasMajorVersion ) {
 + if ( index > NUMBER1 && index < values ( ) . length && values ( ) [ index ] . hasMajorVersion ) {
 return values ( ) [ index ] ;
 }
 }


<nb> public class HttpRequest {
 COMMENT
 COMMENT
 public HttpRequest progress ( final ProgressCallback callback ) {
 - if ( callback != null ) {
 + if ( callback == null )
 + progress = NULL_PROGRESS_CALLBACK ;
 + else
 progress = callback ;
 - }
 return this ;
 }

Set progress to NULL_PROGRESS_CALLBACK if callback is null


<nb> public class GetIndexTemplatesRequest extends MasterNodeOperationRequest < GetInde
 if ( out . getVersion ( ) . onOrAfter ( Version . V_0_90_4 ) ) {
 out . writeStringArray ( names ) ;
 } else {
 - out . writeString ( names [ NUMBER0 ] ) ;
 + out . writeString ( names . length == NUMBER0 ? STRING0 : names [ NUMBER0 ] ) ;
 }
 }
 }

Fix GetIndexTemlatesRequest if serialized with includeAll and a old ES version


<nb> public abstract class Item < T extends Item > implements Comparable < T > {

 if ( out . getCursor ( ) != offset ) {
 throw new RuntimeException ( STRING0 + Integer . toHexString ( offset ) +
 - STRING1 + Integer . toHexString ( out . getCursor ( ) ) ) ;
 + STRING2 + Integer . toHexString ( out . getCursor ( ) ) ) ;
 }

 if ( out . annotates ( ) ) {


<nb> public class HiveSplit
 . put ( STRING0 , start )
 . put ( STRING1 , length )
 . put ( STRING2 , addresses )
 + . put ( STRING3 , partitionId )
 . build ( ) ;
 }

Add partitionId to HiveSplit info object


<nb> import NAMESPACE ;
 @ autovalue
 @ jsonautodetect
 public abstract class IndexRangeSummary {
 - @ jsonproperty ( STRING0 )
 + @ jsonproperty ( STRING1 )
 public abstract String indexName ( ) ;

 @ nullable @ jsonproperty ( STRING2 )

Fix the JSON field name for IndexRangeSummary


<nb> public class AsyncClientTest extends AbstractBasicTest {
 @ test
 public void multipleMaxConnectionOpenTest ( ) throws Throwable {
 AsyncHttpClientConfig cg = new AsyncHttpClientConfig . Builder ( ) . setKeepAlive ( true )
 - . setConnectionTimeoutInMs ( NUMBER0 ) . setMaximumConnectionsTotal ( NUMBER1 ) . build ( ) ;
 + . setConnectionTimeoutInMs ( NUMBER2 ) . setMaximumConnectionsTotal ( NUMBER1 ) . build ( ) ;
 AsyncHttpClient c = new AsyncHttpClient ( cg ) ;

 String body = STRING0 ;
 <nb> public class BasicHttpsTest {
 httpResponse . getOutputStream ( ) . write ( bytes ) ;
 }

 -
 httpResponse . setStatus ( NUMBER3 ) ;
 httpResponse . getOutputStream ( ) . flush ( ) ;
 httpResponse . getOutputStream ( ) . close ( ) ;

Fix the test which randomly fail on Hudson


<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 }
 final AnActionEvent anActionEvent = new AnActionEvent ( event ,
 DataManager . getInstance ( ) . getDataContext ( IdeFocusManager . findInstance ( ) . getFocusOwner ( ) ) ,
 - ActionPlaces . UNKNOWN ,
 + ActionPlaces . MAIN_MENU ,
 action . getTemplatePresentation ( ) ,
 actionManager ,
 NUMBER0 ) ;


<nb> public class DataImportOptionsUiCsvLocale extends ModalDialog < DataImportOptionsC
 OperationWithInput < DataImportOptionsCsvLocale > operation ,
 DataImportOptionsCsvLocale locale )
 {
 - super ( STRING0 , operation ) ;
 + super ( STRING1 , operation ) ;
 widget_ = GWT . < Binder > create ( Binder . class ) . createAndBindUi ( this ) ;
 initialLocale_ = locale ;
 }

rename csv import locale dialog to match other ui elements


<nb> public class TomcatWebSocketHandler extends StreamInbound {
 private final AtmosphereRequest request ;
 private final AtmosphereFramework framework ;
 private WebSocket webSocket ;
 - private final int webSocketWriteTimeout ;

 public TomcatWebSocketHandler ( AtmosphereRequest request , AtmosphereFramework framework , WebSocketProcessor webSocketProcessor ) {
 this . request = request ;
 <nb> public class TomcatWebSocketHandler extends StreamInbound {

 String s = framework . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . WEBSOCKET_IDLETIME ) ;
 if ( s != null ) {
 - webSocketWriteTimeout = Integer . valueOf ( s ) ;
 - } else {
 - webSocketWriteTimeout = - NUMBER0 ;
 + logger . warn ( STRING0 ) ;
 }

 s = framework . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . WEBSOCKET_BUFFER_SIZE ) ;


<nb> import NAMESPACE ;
 COMMENT
 public abstract class AbstractAttachable implements Attachable {

 - private final Map < AttachmentKey < ? > , Object > attachments = new IdentityHashMap < > ( NUMBER0 ) ;
 + private final Map < AttachmentKey < ? > , Object > attachments = new IdentityHashMap < > ( NUMBER1 ) ;

 COMMENT
 COMMENT

Use more reasonable object size for attachments


<nb> public abstract class GenericCheckInDialogFragment extends DialogFragment {
 COMMENT
 COMMENT
 COMMENT
 - String EPISODE_TVDB_ID = STRING0 ;
 + String EPISODE_TVDB_ID = STRING1 ;
 }

 public class CheckInDialogDismissedEvent {

Fix episode check in using incorrect TheTVDB id


<nb> class GlobalTypeInfo implements CompilerPass , TypeIRegistry {
 } else if ( defSite . isSetterDef ( ) ) {
 pname = JSType . createSetterPropName ( pname ) ;
 }
 - } else if ( jsdoc != null && jsdoc . containsFunctionDeclaration ( ) ) {
 + } else if ( jsdoc != null && jsdoc . containsFunctionDeclaration ( )
 + SINGLE
 + && ! defSite . isStringKey ( ) ) {
 SINGLE
 methodType = computeFnDeclaredType ( jsdoc , pname , defSite , rawType , currentScope ) ;
 }
 <nb> public final class NewTypeInferenceTest extends NewTypeInferenceTestBase {
 STRING0 ) ,
 GlobalTypeInfo . COULD_NOT_INFER_CONST_TYPE ) ;
 }
 +
 + public void testDontCrashWithPolymerJsdoc ( ) {
 + typeCheck ( LINE_JOINER . join (
 + STRING1 ,
 + STRING2 ,
 + STRING3 ,
 + STRING4 ,
 + STRING5 ) ) ;
 + }
 }

NTI Fix crash when jsdoc is meant for object literal passed to Polymer


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

 COMMENT
 COMMENT
 <nb> public class AnnotationConfigApplicationContext extends GenericApplicationContex
 COMMENT
 COMMENT
 public void register ( Class < ? > . . . annotatedClasses ) {
 + Assert . notEmpty ( annotatedClasses , STRING0 ) ;
 this . reader . register ( annotatedClasses ) ;
 }

 <nb> public class AnnotationConfigApplicationContext extends GenericApplicationContex
 COMMENT
 COMMENT
 public void scan ( String . . . basePackages ) {
 + Assert . notEmpty ( basePackages , STRING1 ) ;
 this . scanner . scan ( basePackages ) ;
 }

Prevent empty calls to ACAC register and scan


<nb> public class EnterKeyScreen extends MainScreen implements AuthenticatorResource ,

 private static final int MIN_KEY_BYTES = NUMBER0 ;

 + private static final boolean INTEGRITY_CHECK_ENABLED = false ;
 +
 private LabelField mDescriptionText ;
 private LabelField mStatusText ;
 private LabelField mVersionText ;
 <nb> public class EnterKeyScreen extends MainScreen implements AuthenticatorResource ,
 mStatusColor = Color . BLACK ;
 return false ;
 } else {
 - String checkCode = CheckCodeScreen . getCheckCode ( mKeyEntryField
 - . getText ( ) ) ;
 - mStatusText . setText ( STRING0 + checkCode ) ;
 - mStatusColor = Color . GREEN ;
 + if ( INTEGRITY_CHECK_ENABLED ) {
 + String checkCode = CheckCodeScreen . getCheckCode ( mKeyEntryField . getText ( ) ) ;
 + mStatusText . setText ( STRING0 + checkCode ) ;
 + mStatusColor = Color . GREEN ;
 + } else {
 + mStatusText . setText ( STRING1 ) ;
 + }
 return true ;
 }
 } catch ( Base32String . DecodingException e ) {


<nb> public class MoonCalc {
 }

 double moonJd = Math . floor ( DateTimeUtils . midnightDateToJulianDate ( calendar ) ) - FLOAT0 ;
 - moonJd -= ( ( calendar . getTimeZone ( ) . getRawOffset ( ) + calendar . getTimeZone ( ) . getDSTSavings ( ) ) / FLOAT1 ) / FLOAT2 ;
 + moonJd -= ( ( calendar . get ( Calendar . ZONE_OFFSET ) + calendar . get ( Calendar . DST_OFFSET ) ) / FLOAT1 ) / FLOAT2 ;

 double sphi = SN ( phi ) ;
 double cphi = CS ( phi ) ;

Fixed daylight saving offset for moon rise set


<nb> public abstract class AbstractBidirAlgo extends AbstractRoutingAlgorithm
 return extractPath ( ) ;
 }

 - void runAlgo ( )
 + protected void runAlgo ( )
 {
 while ( ! finished ( ) )
 {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class BooksIntegrationTest {

 @ afterclass
 public static void tearDown ( ) {
 - Spark . clearRoutes ( ) ;
 Spark . stop ( ) ;
 }

remove undefined methodcall in AfterClass


<nb> public class MainActivity extends Activity {
 GuidedStepFragment . add ( getFragmentManager ( ) , mGuidedStepFragment ) ;
 }

 - private static class StepFragment extends GuidedStepFragment {
 + public static class StepFragment extends GuidedStepFragment {
 @ override
 public Guidance onCreateGuidance ( Bundle savedInstanceState ) {
 String title = getString ( R . string . main_title ) ;


<nb> public class TraceSupportTest extends JerseyTest {
 return App . create ( ) ;
 }
 private String [ ] expectedFragmentsProgrammatic = new String [ ] {
 - STRING0
 + STRING1 + this . getPort ( ) + STRING2
 } ;
 private String [ ] expectedFragmentsAnnotated = new String [ ] {
 - STRING3
 + STRING1 + this . getPort ( ) + STRING4
 } ;

 private Target prepareTarget ( String path ) {

Fixed TraceSupportTest to not use hard coded port


<nb> import NAMESPACE ;
 public class AttributeColumnImpl implements AttributeColumn {

 protected final AttributeTableImpl table ;
 - protected final int index ;
 + protected int index ;
 protected final String id ;
 protected final String title ;
 protected final AttributeType type ;
 <nb> public class AttributeTableImpl implements AttributeTable {
 }

 public synchronized void removeColumn ( AttributeColumn column ) {
 + int index = columns . indexOf ( column ) ;
 + if ( index == - NUMBER0 ) {
 + return ;
 + }
 +
 + SINGLE
 + AttributeColumnImpl c ;
 + for ( index = index + NUMBER0 ; index < columns . size ( ) ; index ++ ) {
 + c = columns . get ( index ) ;
 + c . index -- ;
 + }
 SINGLE
 columns . remove ( ( AttributeColumnImpl ) column ) ;
 columnsMap . remove ( column . getId ( ) ) ;

Fix bug in attributes API when deleting a column


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class ImageResizer {
 - private static final int TEMP_BYTES_SIZE = NUMBER0 * NUMBER1 ; SINGLE
 - private static final int MARK_POSITION = NUMBER1 * NUMBER1 ; SINGLE
 + private static final int TEMP_BYTES_SIZE = NUMBER2 * NUMBER1 ; SINGLE
 + private static final int MARK_POSITION = TEMP_BYTES_SIZE ; SINGLE
 private static final boolean CAN_RECYCLE = Build . VERSION . SDK_INT >= NUMBER3 ;
 private final Queue < byte [ ] > tempQueue = new LinkedList < byte [ ] > ( ) ;
 private final BitmapPool bitmapPool ;


<nb> public class ClipboardModule extends ReactContextBaseJavaModule {
 @ suppresslint ( STRING0 )
 @ reactmethod
 public void setString ( String text ) {
 - ReactApplicationContext reactContext = getReactApplicationContext ( ) ;
 if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) {
 ClipData clipdata = ClipData . newPlainText ( null , text ) ;
 ClipboardManager clipboard = getClipboardService ( ) ;


<nb> public class PrivacyList implements Cacheable , Externalizable {

 public void writeExternal ( ObjectOutput out ) throws IOException {
 ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , userJID . toString ( ) ) ;
 + ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , name ) ;
 ExternalizableUtil . getInstance ( ) . writeBoolean ( out , isDefault ) ;
 ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , asElement ( ) . asXML ( ) ) ;
 }

 public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException {
 userJID = new JID ( ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ) ;
 + name = ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ;
 isDefault = ExternalizableUtil . getInstance ( ) . readBoolean ( in ) ;
 String xml = ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ;
 try {

Include name attribute when persisting privacy lists


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class GitRebaseProblemDetector extends GitLineHandlerAdapter {
 - private final static String [ ] REBASE_CONFLICT_INDICATORS = { STRING0 , STRING1 } ;
 + private final static String [ ] REBASE_CONFLICT_INDICATORS = {
 + STRING0 ,
 + STRING1 ,
 + STRING2 } ;
 private static final String REBASE_NO_CHANGE_INDICATOR = STRING3 ;

 private AtomicBoolean mergeConflict = new AtomicBoolean ( false ) ;


<nb> public class Tag {
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7
 } ;
 private static final String [ ] formSubmitTags = {
 - STRING0 , STRING2 , STRING3 , STRING4 , STRING6 , STRING7
 + STRING2 , STRING3 , STRING4 , STRING6 , STRING7
 } ;

 static {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public final class ContactsContract {
 COMMENT
 <nb>

 package NAMESPACE ;

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

 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class SocialContract {
 COMMENT

Making sure non public API is marked with hide


<nb> public class CoreRegistryTest {
 }

 - private class ContextImplementation implements Context {
 + private static class ContextImplementation implements Context {
 private final Map < Class < ? > , Object > map = Maps . newConcurrentMap ( ) ;

 @ override


<nb> public class WXListComponent extends WXVContainer implements
 IRecyclerAdapterListener < ListBaseViewHolder > , IOnLoadMoreListener {

 private String TAG = STRING0 ;
 - private ArrayList < Integer > mFakeCells ;
 private int listCellCount = NUMBER0 ;
 private WXRefresh mRefresh ;
 private WXLoading mLoading ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 public class MonitorServiceRepresentation implements Representation


<nb> public class DependencyManager implements InstallShinyEvent . Handler
 STRING0 ,
 userPrompt ,
 new Dependency [ ] {
 - Dependency . cranPackage ( STRING1 , STRING2 ) ,
 + Dependency . cranPackage ( STRING1 , STRING3 ) ,
 Dependency . cranPackage ( STRING4 , STRING5 ) ,
 - Dependency . cranPackage ( STRING6 , STRING7 ) ,
 + Dependency . cranPackage ( STRING8 , STRING9 ) ,
 + Dependency . cranPackage ( STRING10 , STRING11 ) ,
 Dependency . cranPackage ( STRING12 , STRING13 ) ,
 Dependency . cranPackage ( STRING14 , STRING15 ) ,
 - Dependency . cranPackage ( STRING16 , STRING17 ) ,
 - Dependency . cranPackage ( STRING18 , STRING19 , true )
 + Dependency . cranPackage ( STRING16 , STRING20 ) ,
 + Dependency . cranPackage ( STRING21 , STRING22 ) ,
 + Dependency . cranPackage ( STRING18 , STRING23 , true )
 } ,
 true ,
 command

update version requirements for shiny and related dependencies


<nb> public class IntPairComparator extends TypeComparator < IntPair >

 @ override
 public int hash ( IntPair object ) {
 - return object . getKey ( ) ;
 + return object . getKey ( ) * NUMBER0 ;
 }

 @ override

Fixed hash join tests with after salting hashes


<nb> public class FPSLogger extends AverageFPSCounter {

 @ override
 public void onUpdate ( final float pSecondsElapsed ) {
 + super . onUpdate ( pSecondsElapsed ) ;
 +
 this . mShortestFrame = Math . min ( this . mShortestFrame , pSecondsElapsed ) ;
 this . mLongestFrame = Math . max ( this . mLongestFrame , pSecondsElapsed ) ;
 }

Fixed FPSLogger not logging FPS D a super call was missing


<nb> public class DatabaseFactory {
 return returnList ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public List < Database > getInternalDatabases ( ) {
 + List < Database > returnList = new ArrayList < Database > ( ) ;
 + for ( SortedSet < Database > set : internalDatabases . values ( ) ) {
 + returnList . add ( set . iterator ( ) . next ( ) ) ;
 + }
 + return returnList ;
 + }
 +
 public void register ( Database database ) {
 Map < String , SortedSet < Database > > map = null ;
 if ( database instanceof InternalDatabase ) {
 <nb> public class LockServiceFactoryTest {

 private MockDatabase getMockDatabase ( ) {
 DatabaseFactory factory = DatabaseFactory . getInstance ( ) ;
 - for ( Database db : factory . getImplementedDatabases ( ) ) {
 + for ( Database db : factory . getInternalDatabases ( ) ) {
 if ( db instanceof MockDatabase ) {
 return ( MockDatabase ) db ;
 }

Fixed test and added method to expose internal database types


<nb> public class UIdGenerator {
 try {
 hostName = InetAddress . getLocalHost ( ) . getHostName ( ) ;
 ServerSocket ss = new ServerSocket ( NUMBER0 ) ;
 - stub = STRING0 + ss . getLocalPort ( ) + STRING0 + System . currentTimeMillis ( ) + STRING0 ;
 + stub = STRING1 + ss . getLocalPort ( ) + STRING0 + System . currentTimeMillis ( ) + STRING1 ;
 Thread . sleep ( NUMBER1 ) ;
 ss . close ( ) ;
 } catch ( Exception ioe ) {
 <nb> public class UIdGenerator {

 public UIdGenerator ( String prefix ) {
 synchronized ( UNIQUE_STUB ) {
 - this . seed = prefix + UNIQUE_STUB + ( instanceCount ++ ) + STRING2 ;
 + this . seed = prefix + UNIQUE_STUB + ( instanceCount ++ ) + STRING0 ;
 }
 }

 public UIdGenerator ( ) {
 - this ( STRING3 + hostName ) ;
 + this ( STRING4 + hostName ) ;
 }

 COMMENT

characters to avoid issues on windows file systems


<nb> class NotesAdapter extends BaseAdapter {
 try {
 if ( clearBeforeAdding )
 mNotes . clear ( ) ;
 - for ( Note note : notes ) {
 - mNotes . add ( note ) ;
 - }
 + mNotes . addAll ( notes ) ;
 } finally {
 notifyDataSetChanged ( ) ;
 mIsAddingNotes = false ;


<nb> public abstract class AbstractTreeNode extends DefaultMutableTreeNode {
 protected boolean acceptFilter ( @ nullable Pair < PackageSetBase , NamedScopesHolder > filter , boolean showOnlyFilteredItems ) {
 boolean apply = false ;
 if ( children != null && filter != null ) {
 - for ( Iterator I = children . iterator ( ) ; I . hasNext ( ) ; ) {
 - AbstractTreeNode node = ( AbstractTreeNode ) I . next ( ) ;
 + for ( Iterator it = children . iterator ( ) ; it . hasNext ( ) ; ) {
 + AbstractTreeNode node = ( AbstractTreeNode ) it . next ( ) ;
 if ( node . acceptFilter ( filter , showOnlyFilteredItems ) ) {
 apply = true ;
 }
 <nb> public abstract class AbstractTreeNode extends DefaultMutableTreeNode {
 if ( node instanceof Disposable ) {
 Disposer . dispose ( ( Disposable ) node ) ;
 }
 - I . remove ( ) ;
 + it . remove ( ) ;
 }
 }
 applyFilter ( apply ) ;


<nb> public class AppCompatTintableViewActions {
 return new ViewAction ( ) {
 @ override
 public Matcher < View > getConstraints ( ) {
 - return allOf ( isDisplayingAtLeast ( NUMBER0 ) , TestUtilsMatchers . isTintableBackgroundView ( ) ) ;
 + return allOf ( isDisplayed ( ) , TestUtilsMatchers . isTintableBackgroundView ( ) ) ;
 }

 @ override

Fix AppCompatBaseViewTest to work in landscape mode


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FindDialog extends DialogWrapper {
 pane . insertTab ( STRING0 , null , optionsPanel , null , NUMBER0 ) ;
 pane . insertTab ( PREVIEW_TITLE , null , myPreviewSplitter , null , RESULTS_PREVIEW_TAB_INDEX ) ;
 myContent = pane ;
 - final AnAction anAction = new AnAction ( ) {
 + final AnAction anAction = new DumbAwareAction ( ) {
 @ override
 public void actionPerformed ( AnActionEvent e ) {
 int selectedIndex = myContent . getSelectedIndex ( ) ;

make switch action in Find Dialog DumbAware


<nb> public class WeldModuleResourceLoader implements ResourceLoader {
 final Class < ? > clazz = module . getClassLoader ( ) . loadClass ( name ) ;
 classes . put ( name , clazz ) ;
 return clazz ;
 - } catch ( NoClassDefFoundError e ) {
 - throw new ResourceLoadingException ( e ) ;
 - } catch ( ClassNotFoundException e ) {
 - throw new ResourceLoadingException ( e ) ;
 - } catch ( LinkageError e ) {
 + } catch ( ClassNotFoundException | LinkageError e ) {
 throw new ResourceLoadingException ( e ) ;
 }
 }


<nb> public class WindowManagerService extends IWindowManager . Stub
 COMMENT
 COMMENT
 COMMENT
 - boolean mInTouchMode = false ;
 + boolean mInTouchMode = true ;

 private ViewServer mViewServer ;
 private ArrayList < WindowChangeListener > mWindowChangeListeners =


<nb> public class UndertowDeploymentProcessor implements DeploymentUnitProcessor {
 d . setMinorVersion ( Integer . parseInt ( servletVersion . charAt ( NUMBER0 ) + STRING0 ) ) ;
 } else {
 d . setMajorVersion ( NUMBER1 ) ;
 - d . setMajorVersion ( NUMBER2 ) ;
 + d . setMinorVersion ( NUMBER2 ) ;
 }

 SINGLE


<nb> public class OldTraverserWrapper

 public boolean isStartNode ( )
 {
 - return position . length ( ) > NUMBER0 ;
 + return position . length ( ) == NUMBER0 ;
 }

 public boolean notStartNode ( )

Fixed a bug that was accidantilly introduced during refactoring


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 SINGLE
 long [ ] mSafeModeEnabledVibePattern ;

 + SINGLE
 + long [ ] mScrollBarrierVibePattern ;
 +
 COMMENT
 boolean mEnableShiftMenuBugReports = false ;

 <nb> public class PhoneWindowManager implements WindowManagerPolicy {
 com . android . internal . R . array . config_safeModeDisabledVibePattern ) ;
 mSafeModeEnabledVibePattern = getLongIntArray ( mContext . getResources ( ) ,
 com . android . internal . R . array . config_safeModeEnabledVibePattern ) ;
 + mScrollBarrierVibePattern = getLongIntArray ( mContext . getResources ( ) ,
 + com . android . internal . R . array . config_scrollBarrierVibePattern ) ;
 }

 void updatePlugged ( Intent powerIntent ) {
 <nb> public class PhoneWindowManager implements WindowManagerPolicy {
 case HapticFeedbackConstants . SAFE_MODE_ENABLED :
 mVibrator . vibrate ( mSafeModeEnabledVibePattern , - NUMBER0 ) ;
 return true ;
 + case HapticFeedbackConstants . SCROLL_BARRIER :
 + mVibrator . vibrate ( mScrollBarrierVibePattern , - NUMBER0 ) ;
 + return true ;
 }
 return false ;
 }

Added haptic feedback support for scroll barriers


<nb> public class AccessTransformer implements IClassTransformer
 {
 Manifest manifest = jar . getManifest ( ) ;
 String atList = manifest . getMainAttributes ( ) . getValue ( STRING0 ) ;
 + if ( atList == null ) return ;
 for ( String at : atList . split ( STRING1 ) )
 {
 JarEntry jarEntry = jar . getJarEntry ( STRING2 + at ) ;
 <nb> public class CoreModManager {
 jar = new JarFile ( coreMod ) ;
 if ( jar . getManifest ( ) == null )
 {
 - SINGLE
 + SINGLE
 continue ;
 }
 ModAccessTransformer . addJar ( jar ) ;


<nb> public class DRF extends FrameJob {
 Log . info ( Sys . DRF__ , STRING0 + t_drf ) ;

 SINGLE
 - while ( fr . numCols ( ) > ncols )
 + while ( fr . numCols ( ) > ncols + NUMBER0 COMMENT )
 UKV . remove ( fr . remove ( fr . numCols ( ) - NUMBER0 ) . _key ) ;
 remove ( ) ;
 tryComplete ( ) ;
 <nb> public class GBM extends FrameJob {
 Log . info ( Sys . GBM__ , STRING1 + t_gbm ) ;

 SINGLE
 - while ( fr . numCols ( ) > ncols )
 + while ( fr . numCols ( ) > ncols + NUMBER0 COMMENT )
 UKV . remove ( fr . remove ( fr . numCols ( ) - NUMBER0 ) . _key ) ;
 remove ( ) ;
 tryComplete ( ) ;

Was over nuking the response col by mistake


<nb> public final class JPAProvider {
 addMapping ( STRING0 , EclipseLinkTemplates . DEFAULT ) ;
 addMapping ( STRING1 , OpenJPATemplates . DEFAULT ) ;
 addMapping ( STRING2 , DataNucleusTemplates . DEFAULT ) ;
 + addMapping ( STRING3 , DataNucleusTemplates . DEFAULT ) ;
 addMapping ( STRING4 , DataNucleusTemplates . DEFAULT ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class FieldProcessor < T > {
 COMMENT
 COMMENT
 public void processLinks ( T entity , UriInfo uriInfo , ResourceMappingContext rmc ) {
 - Set < Object > processed = new HashSet < Object > ( ) ; SINGLE
 + Set < Object > processed = new HashSet < Object > ( ) ;
 Object resource = uriInfo . getMatchedResources ( ) . get ( NUMBER0 ) ;
 processLinks ( entity , resource , entity , processed , uriInfo , rmc ) ;
 }


<nb> public class Bootstrap {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + static final String SECURITY_SETTING = STRING0 ;
 +
 private void setupSecurity ( Settings settings , Environment environment ) throws Exception {
 - if ( settings . getAsBoolean ( STRING0 , true ) ) {
 + if ( settings . getAsBoolean ( SECURITY_SETTING , true ) ) {
 Security . configure ( environment ) ;
 }
 }

add constant only used once to make it harder to read the code


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public @ interface DeleteMapping {
 @ aliasfor ( annotation = RequestMapping . class )
 String [ ] headers ( ) default { } ;

 + COMMENT
 + COMMENT
 + COMMENT
 + @ aliasfor ( annotation = RequestMapping . class )
 + String [ ] consumes ( ) default { } ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ aliasfor ( annotation = RequestMapping . class )
 + String [ ] produces ( ) default { } ;
 +
 }

Support produces and consumes attributes in DeleteMapping


<nb> public class MissingSymbolsHandler {
 COMMENT
 COMMENT
 private String formatTarget ( BuildTarget buildTarget ) {
 - String targetString = buildTarget . toString ( ) ;
 return String . format ( STRING0 ,
 buildTarget . getBuildFilePath ( ) ,
 buildTarget . getShortNameOnly ( ) ) ;


<nb> public class RoutingHelper {
 log . info ( STRING0 + dist ) ; SINGLE
 calculateRoute = true ;
 }
 - if ( dist > NUMBER0 && currentGPXRoute != null ) {
 + if ( dist > NUMBER0 ) {
 voiceRouter . announceOffRoute ( dist ) ;
 }
 }


<nb> public class GradlePomModuleDescriptorBuilder {
 index += NUMBER0 ;
 }
 }
 - SINGLE
 - ivyModuleDescriptor . addDependencyDescriptorMediator (
 - ModuleId . newInstance ( dep . getGroupId ( ) , dep . getArtifactId ( ) ) ,
 - ExactPatternMatcher . INSTANCE ,
 - new OverrideDependencyDescriptorMediator ( null , dep . getVersion ( ) ) ) ;
 }

 public void addPlugin ( PomDependencyMgt plugin ) {


<nb> public class LocationFixes extends ArrayList < SignatureOuterClass . Signature . Locat
 for ( int i = NUMBER0 ; i < providerCount ; i ++ ) {
 float latitude = offsetOnLatLong ( api . getLatitude ( ) , random . nextInt ( NUMBER1 ) + NUMBER2 ) ;
 float longitude = offsetOnLatLong ( api . getLongitude ( ) , random . nextInt ( NUMBER1 ) + NUMBER2 ) ;
 - float altitude = NUMBER3 ;
 - if ( api . getAltitude ( ) != Double . NaN ) {
 - altitude = ( float ) api . getAltitude ( ) ;
 - }
 + float altitude = ( float ) api . getAltitude ( ) ;
 float verticalAccuracy = ( float ) ( NUMBER4 + ( NUMBER5 - NUMBER4 ) * random . nextDouble ( ) ) ;

 SINGLE

Remove unnecessary check for empty altitude


<nb>
 COMMENT
 package NAMESPACE ;

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

 public class TileEngineWood extends TileEngine {

 <nb> public class TileEngineWood extends TileEngine {
 super . engineUpdate ( ) ;

 if ( isRedstonePowered )
 - if ( worldObj . getWorldTime ( ) % NUMBER0 == NUMBER1 )
 + if ( worldObj . getTotalWorldTime ( ) % NUMBER0 == NUMBER1 )
 addEnergy ( NUMBER2 ) ;
 }

Fix engine not working if doDaylightCycle is set to false


<nb> public class MediaRouteControllerDialog extends AlertDialog {
 }

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

Fix the incorrect documentation of MRCD onCreateMediaControlView


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

 COMMENT
 COMMENT
 <nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT


<nb> public class WebSocketDeploymentInfo {
 return dispatchToWorkerThread ;
 }

 - public void setDispatchToWorkerThread ( boolean dispatchToWorkerThread ) {
 + public WebSocketDeploymentInfo setDispatchToWorkerThread ( boolean dispatchToWorkerThread ) {
 this . dispatchToWorkerThread = dispatchToWorkerThread ;
 + return this ;
 }

 public interface ContainerReadyListener {


<nb> public abstract class MixinSpongeImplFactory {
 return tile . shouldRefresh ( world , pos , oldState , newState ) ;
 }

 + @ overwrite
 + public static TileEntity createTileEntity ( Block block , net . minecraft . world . World world , IBlockState state ) {
 + return block . createTileEntity ( world , state ) ;
 + }
 +
 SINGLE
 @ overwrite
 public static void updateComparatorOutputLevel ( net . minecraft . world . World world , BlockPos pos , Block blockIn ) {

Actually overwrite SpongeImplFactory createTileEntity


<nb> public final class Utils {
 }

 try {
 - return InjectableObjectFactory . class . cast ( config . framework ( ) . objectFactory ( ) ) . needRequestScoped ( injectWith ( h ) . getClass ( ) ) ;
 + Object obj = injectWith ( h ) ;
 + return obj == null ? false : InjectableObjectFactory . class . cast ( config . framework ( ) . objectFactory ( ) ) . needRequestScoped ( obj . getClass ( ) ) ;
 } catch ( Exception e ) {
 LOGGER . error ( STRING0 , e ) ;
 return false ;

handle the case of ReflectorServletProcessor getServlet being null gracefully


<nb> public class RobotiumUtils {
 COMMENT

 public static int getNumberOfMatches ( String regex , TextView view , Set < TextView > uniqueTextViews ) {
 + if ( view == null ) {
 + return NUMBER0 ;
 + }
 +
 Pattern pattern = null ;
 try {
 pattern = Pattern . compile ( regex ) ;
 <nb> public class RobotiumUtils {
 String viewText = view . getText ( ) . toString ( ) ;
 viewText = viewText . replaceAll ( STRING0 , STRING1 ) ;
 Matcher matcher = pattern . matcher ( viewText ) ;
 -
 +
 if ( matcher . find ( ) ) {
 uniqueTextViews . add ( view ) ;
 }


<nb> public class MUCUserImpl implements MUCUser {
 }

 public void process ( IQ packet ) {
 + SINGLE
 + if ( IQ . Type . error == packet . getType ( ) ) {
 + return ;
 + }
 lastPacketTime = System . currentTimeMillis ( ) ;
 JID recipient = packet . getTo ( ) ;
 String group = recipient . getNode ( ) ;
 <nb> public class MUCUserImpl implements MUCUser {
 }

 public void process ( Presence packet ) {
 + SINGLE
 + if ( Presence . Type . error == packet . getType ( ) ) {
 + return ;
 + }
 lastPacketTime = System . currentTimeMillis ( ) ;
 JID recipient = packet . getTo ( ) ;
 String group = recipient . getNode ( ) ;


<nb> public final class MathFunctions
 @ sqltype ( StandardTypes . INTEGER )
 public static long absInt ( @ sqltype ( StandardTypes . INTEGER ) long num )
 {
 + checkCondition ( num != Integer . MIN_VALUE , NUMERIC_VALUE_OUT_OF_RANGE , STRING0 ) ;
 return Math . abs ( num ) ;
 }

Add check for Integer MIN_VALUE to abs int


<nb> public class JacksonAnnotationIntrospector
 COMMENT

 @ override
 - public Class < ? extends JsonDeserializer < ? > > findDeserializer ( Annotated a )
 + public Object findDeserializer ( Annotated a )
 {
 JsonDeserialize ann = _findAnnotation ( a , JsonDeserialize . class ) ;
 if ( ann != null ) {

Change return type for findDeserializer to Object


<nb> import NAMESPACE ;
 public abstract class GenModel implements IGenModel , IGeneratedModel {

 COMMENT
 - public final String [ ] _names ;
 + public final String [ ] _names ;

 COMMENT
 COMMENT
 <nb> public abstract class GenModel implements IGenModel , IGeneratedModel {
 return cat == ModelCategory . Binomial || cat == ModelCategory . Multinomial ;
 }

 + @ override public boolean isAutoEncoder ( ) {
 + ModelCategory cat = getModelCategory ( ) ;
 + return cat == ModelCategory . AutoEncoder ;
 + }
 +
 @ override public int getPredsSize ( ) {
 return isClassifier ( ) ? NUMBER0 + getNumResponseClasses ( ) : NUMBER1 ;
 }
 <nb> public interface IGeneratedModel {
 COMMENT
 public boolean isClassifier ( ) ;

 + COMMENT
 + public boolean isAutoEncoder ( ) ;
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public final class NioEventLoop extends SingleThreadEventLoop {
 return selector ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public SelectorProvider selectorProvider ( ) {
 + return provider ;
 + }
 +
 @ override
 protected Queue < Runnable > newTaskQueue ( ) {
 SINGLE

Expose the SelectorProvider used by the NioEventLoop


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SaveGame {
 }
 UUEncoder enc = new UUEncoder ( ) ;
 String dataString = enc . encodeBuffer ( out . toByteArray ( ) ) ;
 - System . out . println ( out ) ;
 if ( dataString . length ( ) > Preferences . MAX_VALUE_LENGTH ) {
 throw new IllegalStateException ( STRING0 ) ;
 }

remove System out println from SaveGame class


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public abstract class ExecutableValidator {

 public static final String NOTIFICATION_ID = STRING0 ;
 +
 + private static final Logger LOG = Logger . getInstance ( ExecutableValidator . class ) ;
 +
 private final NotificationGroup myNotificationGroup = new NotificationGroup ( NOTIFICATION_ID , NotificationDisplayType . TOOL_WINDOW , true ,
 ToolWindowId . VCS ) ;

 <nb> public abstract class ExecutableValidator {
 return ;
 }

 + LOG . info ( STRING1 + getCurrentExecutable ( ) ) ;
 myNotificationGroup . createNotification ( STRING2 , prepareDescription ( ) , NotificationType . ERROR ,
 new NotificationListener ( ) {
 public void hyperlinkUpdate ( @ notnull Notification notification , @ notnull HyperlinkEvent event ) {


<nb> public class MavenModuleImporter {
 addAttachArtifactDependency ( buildHelperCfg , scope , depProject , artifact ) ;
 }
 }
 - if ( STRING0 . equals ( artifact . getScope ( ) ) ) {
 + else if ( STRING0 . equals ( artifact . getScope ( ) ) ) {
 myRootModelAdapter . addSystemDependency ( artifact , scope ) ;
 }
 else {