<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene
 Sheet . Set set = Sheet . createPropertiesSet ( ) ;
 set . setDisplayName ( STRING0 ) ;
 set . setName ( TerrainGrid . class . getName ( ) ) ;
 - TerrainGrid obj = geom ; SINGLE
 + final TerrainGrid obj = geom ; SINGLE
 if ( obj == null ) {
 return sheet ;
 }
 + SceneApplication . getApplication ( ) . enqueue ( new Callable < Void > ( ) {
 +
 + public Void call ( ) throws Exception {
 + obj . initialize ( SceneApplication . getApplication ( ) . getCamera ( ) . getLocation ( ) ) ;
 + return null ;
 + }
 + } ) ;

 SINGLE

activate TerrainGrid in SDK via JmeTerrainGrid node wrapper


<nb> public abstract class DerivedStringProperty < D > {
 protected void propertyChanged ( ) { }

 void propertyChangedInternal ( ) {
 - propertyChanged ( ) ;
 deriveAndSet ( ) ;
 + propertyChanged ( ) ;
 }

 private void deriveAndSet ( ) {


<nb> import NAMESPACE

 public class MultiValueDictionaryTest {
 private static final String COL_NAME = STRING0 ;
 - private static int NROWS = NUMBER0 ;
 + private static int NROWS = NUMBER1 ;
 private static int MAX_N_VALUES = NUMBER2 ;

 @ test

Reduce number of rows in MultiValueDictionaryTest it s killing Travis


<nb> public class EmailAlarmCallback implements AlarmCallback {

 configurationRequest . addField ( new TextField ( STRING0 ,
 STRING1 ,
 - STRING2 ,
 + STRING3 ,
 STRING4 ,
 ConfigurationField . Optional . NOT_OPTIONAL ) ) ;

 <nb> import NAMESPACE ;

 public class FormattedEmailAlertSender extends StaticEmailAlertSender implements AlertSender {
 public static final String bodyTemplate = STRING5 +
 + STRING6 +
 STRING7 +
 STRING8 +
 STRING9 +
 <nb> public class FormattedEmailAlertSender extends StaticEmailAlertSender implements
 protected String buildSubject ( Stream stream , AlertCondition . CheckResult checkResult , List < Message > backlog ) {
 final String template ;
 if ( pluginConfig == null || pluginConfig . getString ( STRING0 ) == null ) {
 - template = STRING2 ;
 + template = STRING3 ;
 } else {
 template = pluginConfig . getString ( STRING0 ) ;
 }

Adding verbal alert description to alert email templates and subject defaults


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


<nb> public class ONetworkProtocolBinary extends ONetworkProtocol {

 } else
 channel . writeByte ( ( byte ) NUMBER0 ) ;
 - }
 + } else
 + channel . writeByte ( ( byte ) NUMBER0 ) ;
 break ;
 }

Fixed issue on record null sent by the server to the client


<nb> public class AgreementRule extends GermanRule {
 private static final Set < String > NOUNS_TO_BE_IGNORED = new HashSet < > ( Arrays . asList (
 STRING0 , SINGLE
 STRING1 ,
 - STRING2
 + STRING2 ,
 + STRING3 SINGLE
 ) ) ;

 public AgreementRule ( final ResourceBundle messages , German language ) {


<nb> public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R
 pooled . free ( ) ;
 }
 readData = null ;
 + if ( frameDataRemaining == NUMBER0 ) {
 + receiver = null ;
 + }
 return null ;
 } else {
 ByteBuffer buf = pooled . getResource ( ) . duplicate ( ) ;


<nb> public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract {
 String db = token . getDatabase ( ) ;
 String type = token . getDatabaseType ( ) ;
 if ( db != null && type != null && requestType != OChannelBinaryProtocol . REQUEST_DB_CLOSE ) {
 - final ODatabaseDocumentTx database = new ODatabaseDocumentTx ( type + STRING0 + db ) ;
 + SINGLE
 + final ODatabaseDocumentTx database = new ODatabaseDocumentTx ( server . getStoragePath ( type + STRING0 + db ) ) ;
 if ( connection . data . serverUser ) {
 database . resetInitialization ( ) ;
 database . setProperty ( ODatabase . OPTIONS . SECURITY . toString ( ) , OSecurityServerUser . class ) ;

fixed database open in case of server database path not default


<nb> public class SslValidatorDialog extends Dialog {
 COMMENT
 COMMENT
 public static SslValidatorDialog newInstance ( Context context , RemoteOperationResult result , OnSslValidatorListener listener ) {
 - if ( result . isSslRecoverableException ( ) ) {
 + if ( result != null && result . isSslRecoverableException ( ) ) {
 SslValidatorDialog dialog = new SslValidatorDialog ( context , listener ) ;
 return dialog ;
 } else {

Fixed crash when the device is turned while the warning dialog about server certificates is shown


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileSystemMaster implements Master {

 @ override
 public TProcessor getProcessor ( ) {
 - SINGLE
 - return null ;
 + return new FileSystemMasterService . Processor < FileSystemMasterServiceHandler > (
 + new FileSystemMasterServiceHandler ( this ) ) ;
 }

 @ override


<nb> public class SpeeDRF extends Job . ValidatedJob {
 model = UKV . get ( dest ( ) ) ;
 }
 finally {
 - model . unlock ( self ( ) ) ;
 - model . stop_training ( ) ;
 + if ( model != null ) {
 + model . unlock ( self ( ) ) ;
 + model . stop_training ( ) ;
 + }
 }
 }


<nb> public final class KSMetaData
 this . cfMetaData = Collections . unmodifiableMap ( cfmap ) ;
 }

 + public int hashCode ( )
 + {
 + return name . hashCode ( ) ;
 + }
 +
 public boolean equals ( Object obj )
 {
 - if ( obj == null )
 - return false ;
 if ( ! ( obj instanceof KSMetaData ) )
 return false ;
 KSMetaData other = ( KSMetaData ) obj ;


<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
 SINGLE
 getOutputBuffer ( ) . addActiveFilter ( outputFilters [ Constants . VOID_FILTER ] ) ;
 contentDelimitation = true ;
 - sendfileData = socketWrapper . createSendfileData ( fileName ,
 - ( ( Long ) request . getAttribute (
 - org . apache . coyote . Constants . SENDFILE_FILE_START_ATTR ) ) . longValue ( ) ,
 - ( ( Long ) request . getAttribute (
 - org . apache . coyote . Constants . SENDFILE_FILE_END_ATTR ) ) . longValue ( ) - sendfileData . pos ) ;
 + long pos = ( ( Long ) request . getAttribute (
 + org . apache . coyote . Constants . SENDFILE_FILE_START_ATTR ) ) . longValue ( ) ;
 + long end = ( ( Long ) request . getAttribute (
 + org . apache . coyote . Constants . SENDFILE_FILE_END_ATTR ) ) . longValue ( ) ;
 + sendfileData = socketWrapper . createSendfileData ( fileName , pos , end - pos ) ;
 return true ;
 }
 return false ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public interface CometEvent {


<nb> public class PGL {
 }

 + static public int javaToNativeARGB ( int color ) {
 + if ( BIG_ENDIAN ) {
 + return ( ( color > > NUMBER0 ) & NUMBER1 ) |
 + ( ( color < < NUMBER2 ) & NUMBER3 ) ;
 + } else {
 + return ( color & NUMBER4 ) |
 + ( ( color < < NUMBER5 ) & NUMBER6 ) |
 + ( color & NUMBER7 ) |
 + ( ( color > > NUMBER5 ) & NUMBER1 ) ;
 + }
 + }
 +
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class FakeDialog {
 this . title = title ;
 }

 + public Context getContext ( ) {
 + return context ;
 + }
 +
 public void show ( ) {
 isShowing = true ;
 try {


<nb> public class HeliosDeploymentResource extends ExternalResource {

 COMMENT
 @ override
 - protected void before ( ) throws Throwable {
 + public void before ( ) throws Throwable {
 super . before ( ) ;

 SINGLE
 <nb> public class HeliosDeploymentResource extends ExternalResource {
 }

 @ override
 - protected void after ( ) {
 + public void after ( ) {
 log . info ( STRING0 , this . deployment ) ;
 deployment . close ( ) ;
 }

Make HeliosDeploymentResource before after public


<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
 if ( ! isCancelled . getAndSet ( true ) ) {
 logger . trace ( STRING0 , uuid ) ;
 SessionTimeoutSupport . restoreTimeout ( req ) ;
 - action . type ( Action . TYPE . RESUME ) ;
 + action . type ( Action . TYPE . CANCELLED ) ;
 if ( asyncSupport != null ) asyncSupport . action ( this ) ;
 SINGLE
 if ( AtmosphereResponse . class . isAssignableFrom ( response . getClass ( ) ) ) {

Set the state to CANCEL instead of RESUME


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


<nb> public class DaemonProgressIndicator extends AbstractProgressIndicatorBase imple
 Disposer . dispose ( this ) ;
 }

 + public void cancel ( @ notnull Throwable cause ) {
 + myTraceableDisposable . killExceptionally ( cause ) ;
 + super . cancel ( ) ;
 + Disposer . dispose ( this ) ;
 + }
 +
 SINGLE
 @ override
 public void dispose ( ) {
 <nb> public class DaemonProgressIndicator extends AbstractProgressIndicatorBase imple
 super . checkCanceled ( ) ;
 }

 - public void cancel ( @ notnull Throwable cause ) {
 - myTraceableDisposable . killExceptionally ( cause ) ;
 - super . cancel ( ) ;
 - }
 -
 @ override
 public void start ( ) {
 assert ! isCanceled ( ) : STRING0 ;


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GitCloneFunction implements SkyFunction {
 git =
 Git . cloneRepository ( )
 . setURI ( descriptor . remote )
 + . setCredentialsProvider ( new NetRCCredentialsProvider ( ) )
 . setDirectory ( descriptor . directory . getPathFile ( ) )
 . setCloneSubmodules ( false )
 . setNoCheckout ( true )


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

 + package NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 public class HikariConfig
 {
 private int minPoolSize ;


<nb> public class DrawableContainer extends Drawable implements Drawable . Callback {
 COMMENT
 COMMENT
 final void updateDensity ( Resources res ) {
 - if ( mSourceRes != null ) {
 + if ( res != null ) {
 mSourceRes = res ;
 - }

 - SINGLE
 - SINGLE
 - final int targetDensity = Drawable . resolveDensity ( res , mDensity ) ;
 - final int sourceDensity = mDensity ;
 - mDensity = targetDensity ;
 + SINGLE
 + SINGLE
 + final int targetDensity = Drawable . resolveDensity ( res , mDensity ) ;
 + final int sourceDensity = mDensity ;
 + mDensity = targetDensity ;

 - if ( sourceDensity != targetDensity ) {
 - mCheckedConstantSize = false ;
 - mCheckedPadding = false ;
 + if ( sourceDensity != targetDensity ) {
 + mCheckedConstantSize = false ;
 + mCheckedPadding = false ;
 + }
 }
 }

Always update drawable container source res


<nb> public class IndexedSet < T > implements Iterable < T > {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 + SINGLE
 public void clear ( ) {
 SINGLE
 for ( Map < Object , ConcurrentHashSet < T > > mapping : mIndexMap . values ( ) ) {
 <nb> public class IndexedSet < T > implements Iterable < T > {
 ConcurrentHashMap < Object , ConcurrentHashSet < T > > index = fieldInfo . getValue ( ) ;
 ConcurrentHashSet < T > objSet = index . get ( fieldValue ) ;
 while ( objSet == null ) {
 + SINGLE
 index . putIfAbsent ( fieldValue , new ConcurrentHashSet < T > ( ) ) ;
 objSet = index . get ( fieldValue ) ;
 }


<nb> public class PubMulticastTest

 private Aeron . ClientContext newAeronContext ( )
 {
 - Aeron . ClientContext ctx = new Aeron . ClientContext ( ) ;
 -
 - return ctx ;
 + return new Aeron . ClientContext ( ) ;
 }

 @ after


<nb> public class BlockMiningWell extends BlockBuildCraft {

 @ override
 public void onBlockPlacedBy ( World world , int i , int j , int k , EntityLivingBase entityliving , ItemStack stack ) {
 + super . onBlockPlacedBy ( world , i , j , k , entityliving , stack ) ;
 ForgeDirection orientation = Utils . get2dOrientation ( entityliving ) ;
 world . setBlockMetadataWithNotify ( i , j , k , orientation . getOpposite ( ) . ordinal ( ) , NUMBER0 ) ;
 }

fix mining well not calling super when placed down


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TaskViewHeader extends FrameLayout
 mDismissButton . setContentDescription ( t . dismissDescription ) ;
 mDismissButton . setOnClickListener ( this ) ;
 mDismissButton . setClickable ( false ) ;
 + ( ( RippleDrawable ) mDismissButton . getBackground ( ) ) . setForceSoftware ( true ) ;

 SINGLE
 SINGLE
 <nb> public class TaskViewHeader extends FrameLayout
 }
 mMoveTaskButton . setOnClickListener ( this ) ;
 mMoveTaskButton . setClickable ( false ) ;
 + ( ( RippleDrawable ) mMoveTaskButton . getBackground ( ) ) . setForceSoftware ( true ) ;
 }

 if ( Recents . getDebugFlags ( ) . isFastToggleRecentsEnabled ( ) ) {

Forcing software in header button background ripples


<nb> public class NotificationComponent extends JLabel implements NotificationModelLi
 final JRootPane pane = SwingUtilities . getRootPane ( this ) ;
 final Component glassPane = pane . getGlassPane ( ) ;
 if ( glassPane instanceof IdeGlassPaneEx ) {
 - ( ( IdeGlassPaneEx ) glassPane ) . add ( new NotificationsListPanelWrapper ( this , new NotificationsListPanel ( myModel ) , ( Container ) glassPane , pane ) ) ;
 + ( ( IdeGlassPaneEx ) glassPane ) . add ( new NotificationsListPanelWrapper ( this , ( Container ) glassPane , pane ) ) ;
 }
 }

 <nb> public class NotificationComponent extends JLabel implements NotificationModelLi
 }
 }

 + public NotificationModel getModel ( ) {
 + return myModel ;
 + }
 +
 private void performNotificationAction ( final NotificationImpl notification ) {
 final NotificationListener . OnClose onClose = notification . getListener ( ) . perform ( ) ;
 if ( onClose == NotificationListener . OnClose . REMOVE ) {

hide notifications window automatically if no more notifications left


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JUnitTestSuitePlugin implements Plugin < Project > {
 }

 private void configureTaskDependencies ( final Test test ) {
 - binary . getTasks ( ) . withType ( PlatformJavaCompile . class ) . all ( new Action < PlatformJavaCompile > ( ) {
 - @ override
 - public void execute ( PlatformJavaCompile platformJavaCompile ) {
 - SINGLE
 - SINGLE
 - test . dependsOn ( platformJavaCompile ) ;
 - }
 - } ) ;
 + test . dependsOn ( ( ( WithJvmAssembly ) binary ) . getAssembly ( ) ) ;
 }

 private File configureReports ( Test test ) {

Wire the Test task to the JvmAssembly rather than the compile task


<nb> public class RecentsTvActivity extends Activity implements OnPreDrawListener {
 public void onShowPipMenu ( ) { }

 @ override
 - public void onMoveToFullscreen ( ) { }
 + public void onMoveToFullscreen ( ) {
 + SINGLE
 + SINGLE
 + dismissRecentsToLaunchTargetTaskOrHome ( ) ;
 + }

 @ override
 public void onPipResizeAboutToStart ( ) { }

Dismiss Recents when PIP moves to fullscreen


<nb> public class Linker {

 private Function createLookup ( ModuleBuilder mb , ClazzInfo ci , MethodInfo mi ) {
 Function function = FunctionBuilder . lookup ( ci , mi , false ) ;
 - FunctionRef fn = new FunctionBuilder ( ci , mi ) . build ( ) . ref ( ) ;
 + String targetFnName = mangleMethod ( ci . getInternalName ( ) , mi . getName ( ) , mi . getDesc ( ) ) ;
 + if ( mi . isSynchronized ( ) ) {
 + targetFnName += STRING0 ;
 + }
 + FunctionRef fn = new FunctionRef ( targetFnName , function . getType ( ) ) ;
 if ( ! mb . hasSymbol ( fn . getName ( ) ) ) {
 mb . addFunctionDeclaration ( new FunctionDeclaration ( fn ) ) ;
 }

Linker didn t replace lookup functions with synchronized wrapper function


<nb> public class FileUtils {
 }
 }
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static boolean contains ( File dir , File file ) {
 + String dirPath = dir . getAbsolutePath ( ) ;
 + String filePath = file . getAbsolutePath ( ) ;
 +
 + if ( dirPath . equals ( filePath ) ) {
 + return true ;
 + }
 +
 + if ( ! dirPath . endsWith ( STRING0 ) ) {
 + dirPath += STRING0 ;
 + }
 + return filePath . startsWith ( dirPath ) ;
 + }
 }


<nb> public class ReaderSubsActivity extends FragmentActivity
 }
 }

 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 @ override
 public void onTabSelected ( Tab tab , android . app . FragmentTransaction ft ) {
 mViewPager . setCurrentItem ( tab . getPosition ( ) ) ;

Removed the TODO and added a comment regarding the mix usage of android app FragmentTransaction and support Fragment


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

 <nb> import NAMESPACE ;
 COMMENT
 public class CachingClusteredClient < T > implements QueryRunner < T >
 {
 - private static final Logger log = new Logger ( CachingClusteredClient . class ) ;
 + private static final EmittingLogger log = new EmittingLogger ( CachingClusteredClient . class ) ;

 private final QueryToolChestWarehouse warehouse ;
 private final TimelineServerView serverView ;
 <nb> public class CachingClusteredClient < T > implements QueryRunner < T >

 final QueryRunner clientQueryable = serverView . getQueryRunner ( server ) ;
 if ( clientQueryable == null ) {
 - throw new ISE ( STRING0 , server ) ;
 + log . makeAlert ( STRING0 , server ) . emit ( ) ;
 + continue ;
 }

 final Sequence < T > resultSeqToAdd ;

prevent ISE at broker from completely failing to return results


<nb> public class OperationSetPersistentPresenceJabberImpl
 o2 , parentProvider ) . getStatus ( )
 - jabberStatusToPresenceStatus (
 o1 , parentProvider ) . getStatus ( ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( res == NUMBER0 )
 + {
 + res = o1 . getFrom ( ) . compareTo (
 + o2 . getFrom ( ) ) ;
 + }
 }

 return res ;


<nb> public class AjaxStatus {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class TwoWayLayoutManager extends LayoutManager {
 }

 public int getFirstVisiblePosition ( ) {
 + if ( getChildCount ( ) == NUMBER0 ) {
 + return RecyclerView . NO_POSITION ;
 + }
 +
 return mFirstPosition ;
 }

core Properly handle empty layout in getFirstVisiblePosition


<nb> public class VCardTest extends SmackTestCase {
 origVCard . setNickName ( STRING0 ) ;

 origVCard . setField ( STRING1 , STRING2 ) ;
 - origVCard . setAddressFieldHome ( STRING3 , STRING4 ) ;
 + origVCard . setAddressFieldHome ( STRING3 , STRING5 ) ;
 origVCard . setAddressFieldWork ( STRING3 , STRING6 ) ;

 origVCard . setPhoneWork ( STRING7 , STRING8 ) ;

Updated VCard test to test illegal XML characters


<nb> public class NioEndpoint extends AbstractJsseEndpoint < NioChannel > {
 InetSocketAddress addr = ( getAddress ( ) != null ? new InetSocketAddress ( getAddress ( ) , getPort ( ) ) : new InetSocketAddress ( getPort ( ) ) ) ;
 serverSock . socket ( ) . bind ( addr , getAcceptCount ( ) ) ;
 serverSock . configureBlocking ( true ) ; SINGLE
 - serverSock . socket ( ) . setSoTimeout ( getSocketProperties ( ) . getSoTimeout ( ) ) ;

 SINGLE
 if ( acceptorThreadCount == NUMBER0 ) {


<nb> public class MethodDefinition {
 writer . write ( STRING0 ) ;

 if ( parameterName != null ) {
 - writer . write ( STRING1 ) ;
 + writer . write ( STRING2 ) ;
 writer . write ( parameterName . getStringValue ( ) ) ;
 writer . write ( STRING1 ) ;
 }


<nb> public class IndicesRequestTests extends ElasticsearchIntegrationTest {
 private static void assertAllRequestsHaveBeenConsumed ( ) {
 Iterable < TransportService > transportServices = internalCluster ( ) . getInstances ( TransportService . class ) ;
 for ( TransportService transportService : transportServices ) {
 - assertThat ( ( ( InterceptingTransportService ) transportService ) . requests . isEmpty ( ) , equalTo ( true ) ) ;
 + assertThat ( ( ( InterceptingTransportService ) transportService ) . requests . entrySet ( ) , emptyIterable ( ) ) ;
 }
 }

TEST use more verbose assertion in IndicesRequestTests


<nb> public class GlyphPage {
 glyph . setShape ( null ) ; SINGLE
 }

 + width = Math . min ( width , texture . getWidth ( ) ) ;
 + height = Math . min ( height , texture . getHeight ( ) ) ;
 +
 WritableRaster raster = scratchImage . getRaster ( ) ;
 int [ ] row = new int [ width ] ;
 for ( int y = NUMBER0 ; y < height ; y ++ ) {

fixed Hiero clipping glyphs if a glyph is larger than the page size


<nb> public class ActivityLog
 BufferedReader in = new BufferedReader ( new StringReader ( out . toString ( ) ) ) ;
 try
 {
 - String firstLine = in . readLine ( ) ;
 - if ( firstLine != null )
 + StringBuilder str = new StringBuilder ( ) ;
 + for ( ; ; )
 {
 - return firstLine ;
 + String line = in . readLine ( ) ;
 + if ( line == null )
 + {
 + break ;
 + }
 + if ( str . length ( ) > NUMBER0 )
 + {
 + str . append ( STRING0 ) ;
 + }
 + str . append ( line ) ;
 }
 + return str . toString ( ) ;
 }
 catch ( IOException e )
 {


<nb> public final class TopLevelMatchingHandler extends MatchingHandler {

 public TopLevelMatchingHandler ( @ notnull MatchingHandler _delegate ) {
 delegate = _delegate ;
 - setFilter ( _delegate . getFilter ( ) ) ;
 + if ( _delegate instanceof ExpressionHandler ) {
 + setFilter ( _delegate . getFilter ( ) ) ;
 + }
 }

 public boolean match ( final PsiElement patternNode , final PsiElement matchedNode , final MatchContext matchContext ) {


<nb> import NAMESPACE ;
 @ target ( ElementType . ANNOTATION_TYPE )
 @ retention ( RetentionPolicy . RUNTIME )
 public @ interface Example {
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - String name ( ) default STRING0 ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class DarculaCheckBoxUI extends MetalCheckBoxUI {
 viewRect , iconRect , textRect , b . getIconTextGap ( ) ) ;

 SINGLE
 - if ( c . isOpaque ( ) ) {
 + if ( c . isOpaque ( ) || c . getParent ( ) instanceof CellRendererPane ) {
 g . setColor ( b . getBackground ( ) ) ;
 g . fillRect ( NUMBER0 , NUMBER0 , size . width , size . height ) ;
 }

Make checkbox opaque if it is root of rendering component


<nb> public class WordVectorSerializer
 }

 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WordVectorSerializer
 cache . addWordToIndex ( cache . numWords ( ) , word ) ;
 cache . addToken ( new VocabWord ( NUMBER0 , word ) ) ;
 cache . putVocabWord ( word ) ;
 +
 + readString ( dis ) ; SINGLE
 }
 }


<nb> public class PreferencesTest extends ActivityInstrumentationTestCase2 < Preference
 Timeout . getLargeTimeout ( ) ) ) ;
 }

 + public void testEpisodeCleanupNumDays ( ) {
 + solo . clickOnText ( solo . getString ( R . string . pref_episode_cleanup_title ) ) ;
 + solo . waitForText ( solo . getString ( R . string . episode_cleanup_after_listening ) ) ;
 + solo . clickOnText ( STRING0 ) ;
 + assertTrue ( solo . waitForCondition ( ( ) - > {
 + EpisodeCleanupAlgorithm alg = UserPreferences . getEpisodeCleanupAlgorithm ( ) ;
 + if ( alg instanceof APCleanupAlgorithm ) {
 + APCleanupAlgorithm cleanupAlg = ( APCleanupAlgorithm ) alg ;
 + return cleanupAlg . getNumberOfDaysAfterPlayback ( ) == NUMBER0 ;
 + }
 + return false ;
 + } ,
 + Timeout . getLargeTimeout ( ) ) ) ;
 + }
 +
 }

add test for different number of days of cleanup


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class OChannelBinary extends OChannel {

 if ( c != null )
 try {
 - final Exception e ;
 + final Throwable e ;
 if ( c . getParameterTypes ( ) . length > NUMBER0 )
 - e = ( Exception ) c . newInstance ( iMessage , iPrevious ) ;
 + e = ( Throwable ) c . newInstance ( iMessage , iPrevious ) ;
 else
 - e = ( Exception ) c . newInstance ( iMessage ) ;
 + e = ( Throwable ) c . newInstance ( iMessage ) ;

 if ( e instanceof RuntimeException )
 rootException = ( RuntimeException ) e ;


<nb> public class XPub extends SocketBase {
 unique = subscriptions . add ( data , NUMBER0 , pipe_ ) ;

 SINGLE
 - SINGLE
 - if ( options . type == ZMQ . ZMQ_XPUB && ( unique || verbose ) )
 - pending . add ( new Blob ( sub . data ( ) ) ) ;
 + SINGLE
 + if ( options . type == ZMQ . ZMQ_XPUB && ( unique || ( data [ NUMBER1 ] == NUMBER0 && verbose ) ) )
 + pending . add ( new Blob ( sub . data ( ) ) ) ;
 }
 }
 }

XPUB verbose mode excludes unsubscriptions


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

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

 public class PlayWorkerServer implements Action < WorkerProcessContext > , PlayRunWorkerServerProtocol , Serializable {


<nb> public abstract class GraphDatabaseFacadeFactory
 SINGLE
 public static final Setting < String > lock_manager = setting ( STRING0 , Settings . STRING , STRING1 ) ;
 public static final Setting < Boolean > deferred_locking =
 - setting ( STRING2 , Settings . BOOLEAN , Settings . FALSE ) ;
 + setting ( STRING2 , Settings . BOOLEAN , Settings . TRUE ) ;
 public static final Setting < String > tracer =
 setting ( STRING3 , Settings . STRING , ( String ) null ) ; SINGLE


<nb> public class DynamicPayloadTypeRegistry
 break ;
 }
 }
 - System . out . println ( STRING0 + payloadType + STRING1 + format ) ;
 +
 SINGLE
 SINGLE
 if ( payloadType == null )
 <nb> System . out . println ( STRING0 + payloadType + STRING1 + format ) ;
 SINGLE
 SINGLE
 Byte preferredPT = getPreferredDynamicPayloadType ( format ) ;
 - System . out . println ( STRING2 + preferredPT ) ;
 +
 if ( preferredPT != null && findFormat ( preferredPT ) == null )
 {
 SINGLE

removes accidentally committed System out println s


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


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class AdvancedLeakAwareByteBuf extends WrappedByteBuf {
 private static final String PROP_ACQUIRE_AND_RELEASE_ONLY = STRING0 ;
 private static final boolean ACQUIRE_AND_RELEASE_ONLY ;

 + private static final InternalLogger logger = InternalLoggerFactory . getInstance ( AdvancedLeakAwareByteBuf . class ) ;
 +
 static {
 ACQUIRE_AND_RELEASE_ONLY = SystemPropertyUtil . getBoolean ( PROP_ACQUIRE_AND_RELEASE_ONLY , false ) ;
 +
 + if ( logger . isDebugEnabled ( ) ) {
 + logger . debug ( STRING1 , PROP_ACQUIRE_AND_RELEASE_ONLY , ACQUIRE_AND_RELEASE_ONLY ) ;
 + }
 }

 private final ResourceLeak leak ;

Added debug logging with effective value for iodotNetty leakDetection acquireAndReleaseOnly property


<nb> public class SyncScrollSupport {
 return myDuringSyncScroll ;
 }

 - public boolean setDisabled ( boolean value ) {
 + public void setDisabled ( boolean value ) {
 if ( myDisabled == value ) LOG . warn ( new Throwable ( STRING0 + myDisabled + STRING1 + value ) ) ;
 - return myDisabled = value ;
 + myDisabled = value ;
 }

 @ notnull
 <nb> public class SyncScrollSupport {
 myHelper22 = create ( editors . get ( NUMBER0 ) , editors . get ( NUMBER1 ) , myScrollable2 , Side . RIGHT ) ;
 }

 - public boolean setDisabled ( boolean value ) {
 + public void setDisabled ( boolean value ) {
 if ( myDisabled == value ) LOG . warn ( new Throwable ( STRING0 + myDisabled + STRING1 + value ) ) ;
 - return myDisabled = value ;
 + myDisabled = value ;
 }

 public void visibleAreaChanged ( VisibleAreaEvent e ) {


<nb> public class MemorySection implements ConfigurationSection {
 List < ? > list = getList ( path ) ;
 List < Map < ? , ? > > result = new ArrayList < Map < ? , ? > > ( ) ;

 + if ( list == null ) {
 + return result ;
 + }
 +
 for ( Object object : list ) {
 if ( object instanceof Map ) {
 result . add ( ( Map < ? , ? > ) object ) ;

Fixed null pointer exception in config getMapList


<nb>
 SINGLE
 SINGLE
 SINGLE
 + SINGLE

 package NAMESPACE ;

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

 <nb> public class HistoryReference {
 return historyId ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public HttpMessage getHttpMessage ( ) throws HttpMalformedHeaderException , SQLException {
 SINGLE
 RecordHistory history = staticTableHistory . read ( historyId ) ;


<nb> public class BehaviorSystem implements ComponentSystem , UpdateSubscriberSystem {
 @ override
 public void initialise ( ) {
 for ( AssetUri uri : assetManager . listAssets ( AssetType . BEHAVIOR ) ) {
 +
 BehaviorTree asset = assetManager . loadAsset ( uri , BehaviorTree . class ) ;
 trees . add ( asset ) ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class Interpreter {

 @ override
 public String toString ( ) {
 - return actor . minion ( ) . toString ( ) ;
 + return actor . component ( DisplayInformationComponent . class ) . name ;
 }

 public interface Debugger {


<nb> public class OGLESShaderRenderer implements Renderer {
 case ModulateX2 :
 GLES20 . glBlendFunc ( GLES20 . GL_DST_COLOR , GLES20 . GL_SRC_COLOR ) ;
 break ;
 + case Screen :
 + GLES20 . glBlendFunc ( GLES20 . GL_ONE , GLES20 . GL_ONE_MINUS_SRC_COLOR ) ;
 + break ;
 default :
 throw new UnsupportedOperationException ( STRING0
 + state . getBlendMode ( ) ) ;


<nb> public class ActivityShare extends ActivityBase {

 @ override
 protected void onPostExecute ( Throwable result ) {
 - if ( mContext != null ) {
 + if ( ! mContext . isFinishing ( ) ) {
 String message ;
 if ( result == null )
 message = mContext . getString ( R . string . msg_registered ) ;


<nb> public class GeneralCommandLine implements UserDataHolder {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ notnull
 public Map < String , String > getParentEnvironment ( ) {
 - return Collections . unmodifiableMap ( PlatformUtils . isAppCode ( ) ? System . getenv ( ) SINGLE
 - : EnvironmentUtil . getEnvironmentMap ( ) ) ;
 + return PlatformUtils . isAppCode ( ) ? System . getenv ( ) SINGLE
 + : EnvironmentUtil . getEnvironmentMap ( ) ;
 }

 public void addParameters ( String . . . parameters ) {

removing unnecessary Collections unmodifiableMap System getEnv and EnvironmentUtil getEnvironmentMap are already unmodifiable maps


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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class CommentTable {
 String [ ] args = { Integer . toString ( localBlogId ) , Long . toString ( commentId ) } ;
 Cursor c = getReadableDb ( ) . rawQuery ( STRING0 + COMMENTS_TABLE + STRING1 , args ) ;
 try {
 - if ( ! c . moveToFirst ( ) )
 + if ( ! c . moveToFirst ( ) ) {
 return null ;
 + }
 return getCommentFromCursor ( c ) ;
 } finally {
 SqlUtils . closeCursor ( c ) ;
 <nb> public class PeopleTable {
 String [ ] args = { Long . toString ( personId ) , Integer . toString ( localTableBlogId ) } ;
 Cursor c = getReadableDb ( ) . rawQuery ( STRING0 + PEOPLE_TABLE + STRING2 , args ) ;
 try {
 - if ( ! c . moveToFirst ( ) )
 + if ( ! c . moveToFirst ( ) ) {
 return null ;
 + }
 return getPersonFromCursor ( c , localTableBlogId ) ;
 } finally {
 SqlUtils . closeCursor ( c ) ;


<nb> public class SMTestRunnerResultsForm extends TestResultsPanel
 TestConsoleProperties consoleProperties ,
 Disposable parentDisposable ) {
 final RunProfile configuration = consoleProperties . getConfiguration ( ) ;
 - if ( configuration instanceof RunConfiguration && ! ( consoleProperties instanceof ImportedTestConsoleProperties ) ) {
 + if ( configuration instanceof RunConfiguration &&
 + ! ( consoleProperties instanceof ImportedTestConsoleProperties ) &&
 + ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 final MySaveHistoryTask backgroundable = new MySaveHistoryTask ( consoleProperties , root , ( RunConfiguration ) configuration ) ;
 final BackgroundableProcessIndicator processIndicator = new BackgroundableProcessIndicator ( backgroundable ) ;
 Disposer . register ( parentDisposable , new Disposable ( ) {


<nb> public final class GrailsDomainBinder {
 }
 else if ( grailsProperty . isManyToMany ( ) ) {
 if ( grailsProperty . isOwningSide ( ) ) {
 - prop . setCascade ( STRING0 ) ;
 + prop . setCascade ( STRING1 ) ;
 }
 }
 else if ( grailsProperty . isManyToOne ( ) || grailsProperty . isOneToOne ( ) ) {

changed cascade for many to many to save all as the sensible default


<nb> public class ChainedTransactionManagerPostProcessor implements BeanDefinitionReg
 private Config config ;

 private Map < String , Map > dsConfigs ;
 + private static String [ ] transactionManagerBeanNames = null ;

 public ChainedTransactionManagerPostProcessor ( Config config ) {
 this ( config , null , null ) ;
 }

 public ChainedTransactionManagerPostProcessor ( Config config , String whitelistPattern , String blacklistPattern ) {
 + transactionManagerBeanNames = null ;
 this . config = config ;
 if ( whitelistPattern != null ) {
 beanNameWhitelistPattern = whitelistPattern ;
 <nb> public class ChainedTransactionManagerPostProcessor implements BeanDefinitionReg
 }
 }

 - private static String [ ] transactionManagerBeanNames = null ;
 +
 protected static String [ ] getTransactionManagerBeanNames ( BeanDefinitionRegistry registry ) {
 if ( transactionManagerBeanNames == null ) {


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MotionEvent extends AbstractCinematicEvent implements Control , JmeC
 protected int currentWayPoint ;
 protected float currentValue ;
 protected Vector3f direction = new Vector3f ( ) ;
 - protected Vector3f lookAt ;
 + protected Vector3f lookAt = Vector3f . ZERO ;
 protected Vector3f upVector = Vector3f . UNIT_Y ;
 - protected Quaternion rotation ;
 + protected Quaternion rotation = Quaternion . IDENTITY ;
 protected Direction directionType = Direction . None ;
 protected MotionPath path ;
 private boolean isControl = true ;


<nb> public class ChatActivity extends ActorEditTextActivity {
 @ override
 protected void onNewIntent ( Intent intent ) {
 super . onNewIntent ( intent ) ;
 + SINGLE
 + messenger ( ) . onConversationClosed ( peer ) ;
 +
 peer = Peer . fromUniqueId ( intent . getExtras ( ) . getLong ( EXTRA_CHAT_PEER ) ) ;
 setFragment ( null ) ;

notify chat closed when reusing chat activity


<nb> public class Madvoc {
 throw new MadvocException ( STRING0 ) ;
 }
 madvocController . init ( servletContext ) ;
 +
 + SINGLE
 + webapp . ready ( ) ;
 }

 COMMENT
 <nb> public class WebApplication {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected void init ( MadvocConfig madvocConfig , ServletContext servletContext ) {
 log . debug ( STRING1 ) ;
 <nb> public class WebApplication {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + protected void ready ( ) {
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 protected void destroy ( MadvocConfig madvocConfig ) {
 log . debug ( STRING2 ) ;
 }

 -
 SINGLE

 COMMENT


<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
 }

 SINGLE
 - public String getProtocol ( ) {
 - return getProperty ( STRING0 ) ;
 - }
 -
 - public void setProtocol ( String k ) {
 - setSecure ( true ) ;
 - setAttribute ( STRING0 , k ) ;
 - }
 -
 -
 public int getSocketCloseDelay ( ) {
 return socketCloseDelay ;
 }


<nb> public class TestWsWebSocketContainer extends TomcatBaseTest {

 @ override
 public void contextInitialized ( ServletContextEvent sce ) {
 + super . contextInitialized ( sce ) ;
 ServerContainerImpl sc = ServerContainerImpl . getServerContainer ( ) ;
 sc . publishServer ( BlockingPojo . class , sce . getServletContext ( ) , PATH ) ;
 }
 <nb> public class TesterEchoServer {

 @ override
 public void contextInitialized ( ServletContextEvent sce ) {
 + super . contextInitialized ( sce ) ;
 ServerContainerImpl sc = ServerContainerImpl . getServerContainer ( ) ;
 sc . publishServer ( Async . class , sce . getServletContext ( ) , PATH_ASYNC ) ;
 sc . publishServer (

Call super for consistency even if it is not


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProjectCommandOptions extends BuildCommandOptions {
 return processAnnotations ;
 }

 - @ visiblefortesting
 - public void setProcessAnnotations ( boolean value ) {
 - processAnnotations = value ;
 - }
 -
 public ImmutableMap < Path , String > getBasePathToAliasMap ( ) {
 return getBuckConfig ( ) . getBasePathToAliasMap ( ) ;
 }


<nb> public class EventCacheBroadcasterCache implements BroadcasterCache {

 @ override
 public void addToCache ( String broadcasterId , AtmosphereResource r , Object e ) {
 - logger . debug ( STRING0 , r != null ? r . uuid ( ) : STRING1 , e ) ;
 +
 + if ( logger . isDebugEnabled ( ) ) {
 + logger . debug ( STRING0 , r != null ? r . uuid ( ) : STRING1 , e ) ;
 + }

 long now = System . nanoTime ( ) ;
 String messageId = UUID . randomUUID ( ) . toString ( ) ;


<nb> import NAMESPACE ;
 SINGLE
 SINGLE

 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class SimplifyBooleanExpressionCheck
 extends Check
 {


<nb> public class PlainStreetEdge extends AbstractEdge implements StreetEdge {
 COMMENT
 double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ;
 double slope = slopeWorkCost ;
 - if ( elevationProfile != null && elevationProfile . size ( ) > NUMBER0 ) {
 - slope = ElevationUtils . getSlopeCosts ( elevationProfile , name ) . slopeWorkCost ;
 - }
 weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ;
 weight /= options . speed ;
 break ;
 <nb> public class StreetVertex extends GenericVertex {
 SINGLE
 double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ;
 double slope = slopeWorkCost ;
 - slope = ElevationUtils . getSlopeCosts ( elevationProfile , name ) . slopeWorkCost ;
 weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ;
 weight /= options . speed ;
 break ;


<nb> public class SortSymbolVisitor extends SymbolVisitor < SortSymbolVisitor . SortSymbo
 @ override
 protected SortField visitSymbol ( Symbol symbol , SortSymbolContext context ) {
 throw new UnsupportedOperationException (
 - SymbolFormatter . format ( STRING0 , symbol ) ) ;
 + SymbolFormatter . format ( STRING1 , symbol ) ) ;
 }

 private SortField customSortField ( String name ,
 <nb> public class SubSelectIntegrationTest extends SQLTransportIntegrationTest {
 execute ( STRING2 ) ;
 assertThat ( response . rowCount ( ) , is ( NUMBER0 ) ) ;
 }
 +
 + @ test
 + public void testScalarSubqueryCanBeUsedInGroupByAndHaving ( ) throws Exception {
 + execute ( STRING3 ) ;
 + assertThat ( TestingHelpers . printedTable ( response . rows ( ) ) , is ( STRING4 ) ) ;
 + }
 +
 + @ test
 + public void testSubqueryInOrderResultsInAnError ( ) throws Exception {
 + execute ( STRING5 ) ;
 + ensureYellow ( ) ;
 +
 + expectedException . expectMessage ( STRING1 ) ;
 + execute ( STRING6 ) ;
 + }
 }

Add group by having order by subquery tests


<nb> public class DataSinkTask < IT > extends AbstractOutputTask
 SINGLE
 SINGLE
 fs . delete ( path , false ) ;
 - return - NUMBER0 ;
 + int dop = getTaskConfiguration ( ) . getInteger ( DEGREE_OF_PARALLELISM_KEY , - NUMBER0 ) ;
 + if ( dop == NUMBER0 ) {
 + SINGLE
 + return NUMBER0 ;
 + } else {
 + SINGLE
 + SINGLE
 + fs . mkdirs ( path ) ;
 + return - NUMBER0 ;
 + }
 }
 }
 catch ( FileNotFoundException fnfex ) {

Fixed Bug with incorrect output directory preparation


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


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class IndicesOptions {

 <nb> public class IndicesOptions {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public boolean allowNoIndices ( ) {
 return ( id & NUMBER0 ) != NUMBER1 ;
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public boolean expandWildcardsOpen ( ) {
 return ( id & NUMBER2 ) != NUMBER1 ;
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public boolean expandWildcardsClosed ( ) {
 return ( id & NUMBER3 ) != NUMBER1 ;


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

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

 commonViewController . setAdapterForRecyclerView ( view , mappedName , layoutName , adapter ) ;

 - MaterialViewPagerHelper . registerRecyclerView ( ( Activity ) view . getContext ( ) , ( RecyclerView ) view , null ) ;
 + MaterialViewPagerHelper . registerRecyclerView ( ( Activity ) view . getContext ( ) , ( RecyclerView ) view ) ;
 }
 }

Corrected package name and also changed the argument


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

 import NAMESPACE ;
 <nb> public class CompressedSequentialWriter extends SequentialWriter
 {
 out . seek ( chunkOffset ) ;
 out . readFully ( compressed . buffer , NUMBER0 , chunkSize ) ;
 -
 - int validBytes ;
 - try
 - {
 - SINGLE
 - validBytes = compressor . uncompress ( compressed . buffer , NUMBER0 , chunkSize , buffer , NUMBER0 ) ;
 - }
 - catch ( IOException e )
 - {
 - throw new CorruptBlockException ( getPath ( ) , chunkOffset , chunkSize ) ;
 - }
 -
 checksum . update ( compressed . buffer , NUMBER0 , chunkSize ) ;

 if ( out . readInt ( ) != ( int ) checksum . getValue ( ) )

remove decompression code in CompressedSequentialWriter


<nb> public final class JobRequest {
 COMMENT
 COMMENT
 public Builder setPersisted ( boolean persisted ) {
 - if ( ! JobUtil . hasBootPermission ( JobManager . instance ( ) . getContext ( ) ) ) {
 + if ( persisted && ! JobUtil . hasBootPermission ( JobManager . instance ( ) . getContext ( ) ) ) {
 throw new IllegalStateException ( STRING0 ) ;
 }
 mPersisted = persisted ;

Check boot permission only when parameter is true


<nb> public class Tutorials extends HTMLOnlyRequest {
 return
 STRING0
 + STRING1
 - + STRING2
 + + STRING3
 + STRING4
 - + STRING5
 + + STRING6
 + STRING7
 + STRING4
 - + STRING6
 + + STRING5
 + STRING7
 + STRING8
 + STRING9


<nb> final class ReplayingDecoderBuffer implements ByteBuf {
 }

 @ override
 - @ deprecated
 - public ByteBuf ensureWritableBytes ( int writableBytes ) {
 - throw new UnreplayableOperationException ( ) ;
 - }
 -
 - @ override
 public int ensureWritable ( int minWritableBytes , boolean force ) {
 throw new UnreplayableOperationException ( ) ;
 }
 <nb> final class ReplayingDecoderBuffer implements ByteBuf {
 }

 @ override
 - @ deprecated
 - public boolean readable ( ) {
 - return isReadable ( ) ;
 - }
 -
 - @ override
 public boolean isReadable ( int size ) {
 return terminated ? buffer . isReadable ( size ) : true ;
 }
 <nb> final class ReplayingDecoderBuffer implements ByteBuf {
 }

 @ override
 - @ deprecated
 - public boolean writable ( ) {
 - return false ;
 - }
 -
 - @ override
 public boolean isWritable ( int size ) {
 return false ;
 }


<nb> public class AlarmScannerThread implements Runnable {

 for ( AlarmCallback callback : graylogServer . getAlarmCallbacks ( ) ) {
 String typeclass = callback . getClass ( ) . getCanonicalName ( ) ;
 - System . out . println ( STRING0 + ssa . getForcedAlarmCallbacks ( ) ) ;
 - System . out . println ( STRING1 + stream . getAlarmCallbacks ( ) ) ;

 SINGLE
 if ( ssa . getForcedAlarmCallbacks ( ) . contains ( typeclass ) || stream . getAlarmCallbacks ( ) . contains ( typeclass ) ) {


<nb> abstract class RustLinkable extends AbstractBuildRule {
 externalCratesBuilder . put ( buildRule . getBuildTarget ( ) . getShortName ( ) , ruleOutput ) ;
 }
 return ImmutableList . of (
 + new MakeCleanDirectoryStep ( scratchDir ) ,
 new SymlinkFilesIntoDirectoryStep (
 context . getProjectRoot ( ) ,
 getResolver ( ) . getAllPaths ( srcs ) ,
 <nb> public class RustBinaryIntegrationTest {
 }

 @ test
 + public void buildAfterChangeWorks ( ) throws IOException , InterruptedException {
 + ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario (
 + this , STRING0 , tmp ) ;
 + workspace . setUp ( ) ;
 +
 + workspace . runBuckBuild ( STRING1 ) . assertSuccess ( ) ;
 + workspace . writeContentsToPath (
 + workspace . getFileContents ( STRING2 ) + STRING3 ,
 + STRING2 ) ;
 + }
 +
 + @ test
 public void binaryWithLibrary ( ) throws IOException , InterruptedException {
 ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario (
 this , STRING4 , tmp ) ;

Fix a FileAlreadyExistsException on Unix Systems


<nb> public class GoImportReference extends FileReference {
 return true ;
 }

 - if ( element instanceof PsiPackage ) {
 - for ( PsiDirectory directory : ( ( PsiPackage ) element ) . getDirectories ( ) ) {
 + if ( element instanceof PsiDirectoryContainer ) {
 + for ( PsiDirectory directory : ( ( PsiDirectoryContainer ) element ) . getDirectories ( ) ) {
 if ( super . isReferenceTo ( directory ) ) {
 return true ;
 }


<nb> class QuickSettings {
 mBrightnessDialog . getWindow ( ) . clearFlags ( WindowManager . LayoutParams . FLAG_DIM_BEHIND ) ;
 }
 if ( ! mBrightnessDialog . isShowing ( ) ) {
 + try {
 + WindowManagerGlobal . getWindowManagerService ( ) . dismissKeyguard ( ) ;
 + } catch ( RemoteException e ) {
 + }
 mBrightnessDialog . show ( ) ;
 dismissBrightnessDialog ( mBrightnessDialogLongTimeout ) ;
 }
 <nb> class QuickSettings {
 builder . setCancelable ( true ) ;
 final Dialog dialog = builder . create ( ) ;
 dialog . getWindow ( ) . setType ( WindowManager . LayoutParams . TYPE_SYSTEM_ALERT ) ;
 + try {
 + WindowManagerGlobal . getWindowManagerService ( ) . dismissKeyguard ( ) ;
 + } catch ( RemoteException e ) {
 + }
 dialog . show ( ) ;
 }


<nb> public class Weaver {
 static {
 try {
 _pool = ClassPool . getDefault ( ) ;
 + _pool . insertClassPath ( new ClassClassPath ( Weaver . class ) ) ;
 _dtask = _pool . get ( STRING0 ) ; SINGLE
 _enum = _pool . get ( STRING1 ) ; SINGLE
 _iced = _pool . get ( STRING2 ) ; SINGLE

Modify weaver pool to look for classes not only via system


<nb> public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader
 }
 SINGLE
 if ( maxX < width - MIN_DIMENSION_TO_RECUR ) {
 - doDecodeMultiple ( image . crop ( ( int ) maxX , NUMBER0 , MIN_DIMENSION_TO_RECUR - ( int ) maxX , height ) ,
 + doDecodeMultiple ( image . crop ( ( int ) maxX , NUMBER0 , width - ( int ) maxX , height ) ,
 hints , results , ( int ) maxX , NUMBER0 ) ;
 }
 SINGLE
 if ( maxY < height - MIN_DIMENSION_TO_RECUR ) {
 - doDecodeMultiple ( image . crop ( NUMBER0 , ( int ) maxY , width , MIN_DIMENSION_TO_RECUR - ( int ) maxY ) ,
 + doDecodeMultiple ( image . crop ( NUMBER0 , ( int ) maxY , width , height - ( int ) maxY ) ,
 hints , results , NUMBER0 , ( int ) maxY ) ;
 }
 }


<nb> public class DatabaseDescriptor
 COMMENT
 if ( conf . listen_address != null )
 {
 + if ( conf . listen_address . equals ( STRING0 ) )
 + throw new ConfigurationException ( STRING1 ) ;
 try
 {
 listenAddress = InetAddress . getByName ( conf . listen_address ) ;
 <nb> public class DatabaseDescriptor
 throw new ConfigurationException ( STRING2 + conf . listen_address + STRING3 ) ;
 }
 }
 - if ( conf . listen_address . equals ( STRING0 ) )
 - throw new ConfigurationException ( STRING1 ) ;

 try
 {


<nb> public class TopHitsAggregator extends BucketsAggregator implements ScorerAware

 @ override
 public InternalAggregation buildEmptyAggregation ( ) {
 - return new InternalTopHits ( name , topHitsContext . size ( ) , topHitsContext . sort ( ) , Lucene . EMPTY_TOP_DOCS , InternalSearchHits . empty ( ) ) ;
 + return new InternalTopHits ( name , topHitsContext . from ( ) , topHitsContext . size ( ) , topHitsContext . sort ( ) , Lucene . EMPTY_TOP_DOCS , InternalSearchHits . empty ( ) ) ;
 }

 @ override


<nb> public class ShaderCollectionTest extends BaseG3dHudTest {
 }
 } else {
 FileHandle root = Gdx . files . internal ( STRING0 ) ;
 - cubemap = new Cubemap ( root . child ( name + STRING1 ) , null , SINGLE
 + cubemap = new Cubemap ( root . child ( name + STRING1 ) , root . child ( name + STRING2 ) ,
 root . child ( name + STRING3 ) , root . child ( name + STRING4 ) , root . child ( name + STRING5 ) ,
 root . child ( name + STRING6 ) , false ) ; SINGLE
 cubemap . load ( CubemapSide . NegativeX , root . child ( name + STRING2 ) ) ;


<nb> public class NativeMemoryChunk implements Closeable {
 private static final String TAG = STRING0 ;

 static {
 - SoLoaderShim . loadLibrary ( STRING1 ) ;
 SoLoaderShim . loadLibrary ( STRING2 ) ;
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PluginTestCaseBase {
 private static Sdk getSdk ( String sdkHome ) {
 Sdk sdk = JavaSdk . getInstance ( ) . createJdk ( STRING0 , sdkHome , true ) ;
 SdkModificator modificator = sdk . getSdkModificator ( ) ;
 + JavaSdkImpl . attachJdkAnnotations ( modificator ) ;
 VirtualFile file = LocalFileSystem . getInstance ( ) . findFileByIoFile ( JetTestUtils . getJdkAnnotationsJar ( ) ) ;
 assert file != null ;
 modificator . addRoot ( JarFileSystem . getInstance ( ) . getJarRootForLocalFile ( file ) , AnnotationOrderRootType . getInstance ( ) ) ;


<nb> public class VideoSampleActivity extends FragmentActivity {
 COMMENT
 private void initializeVideoView ( ) {
 Uri path = Uri . parse ( APPLICATION_RAW_PATH + R . raw . video ) ;
 - MediaController mediaController = new MediaController ( this ) ;
 - videoView . setMediaController ( mediaController ) ;
 videoView . setVideoURI ( path ) ;
 videoView . start ( ) ;
 }

Remove MediaController from VideoSampleActivity


<nb> public class GlobalOperationHandlers {

 SINGLE
 final ReadResourceAssemblyHandler assemblyHandler = new ReadResourceAssemblyHandler ( directAttributes , metrics , otherAttributes , directChildren , childResources ) ;
 - context . addStep ( assemblyHandler , OperationContext . Stage . IMMEDIATE ) ;
 + context . addStep ( assemblyHandler , queryRuntime ? OperationContext . Stage . VERIFY : OperationContext . Stage . IMMEDIATE ) ;
 final ImmutableManagementResourceRegistration registry = context . getResourceRegistration ( ) ;
 final Resource resource = context . readResource ( PathAddress . EMPTY_ADDRESS ) ;
 SINGLE

run the aggregation handler for runtime queries after the runtime stage


<nb> public class DeepLearningSpiralsTest extends TestUtil {
 {
 DeepLearning p = new DeepLearning ( ) ;
 p . seed = NUMBER0 ;
 - p . rate = FLOAT0 ;
 - p . rate_annealing = NUMBER1 ;
 p . epochs = NUMBER2 ;
 p . hidden = new int [ ] { NUMBER3 } ;
 p . activation = DeepLearning . Activation . Tanh ;
 p . max_w2 = Float . POSITIVE_INFINITY ;
 p . l1 = NUMBER1 ;
 p . l2 = NUMBER1 ;
 - p . momentum_start = NUMBER1 ;
 - p . momentum_ramp = NUMBER1 ;
 - p . momentum_stable = NUMBER1 ;
 p . initial_weight_distribution = DeepLearning . InitialWeightDistribution . Normal ;
 p . initial_weight_scale = FLOAT1 ;
 p . loss = DeepLearning . Loss . CrossEntropy ;


<nb> public class RmiRouteTest extends TestCase {
 SINGLE
 RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING0 ) ;
 bye . setRemoteInterfaces ( ISay . class ) ;
 - from ( bye ) . to ( STRING1 ) ;
 + from ( bye ) . to ( STRING2 ) ;
 }
 } ) ;
 SINGLE


<nb> public class SessionManager extends BasicModule {
 offline . setType ( Presence . Type . unavailable ) ;
 router . route ( offline ) ;
 }
 - return auth_removed || preauth_removed ;
 + if ( auth_removed || preauth_removed ) {
 + SINGLE
 + usersSessionsCounter . decrementAndGet ( ) ;
 + return true ;
 + }
 + return false ;
 }

 public void addAnonymousSession ( ClientSession session ) {
 <nb> public class SessionManager extends BasicModule {
 }
 finally {
 SINGLE
 - if ( removeSession ( session ) ) {
 - SINGLE
 - usersSessionsCounter . decrementAndGet ( ) ;
 - }
 + removeSession ( session ) ;
 }
 }
 catch ( Exception e ) {

Fixed edge case where session counter might go wrong


<nb> public class GELFClientHandlerThread extends Thread {
 Log . crit ( STRING0 + e . toString ( ) ) ;
 } catch ( java . net . SocketException e ) {
 Log . crit ( STRING1 + e . toString ( ) ) ;
 + } catch ( Exception e ) {
 + Log . crit ( STRING2 + e . toString ( ) ) ;
 }
 }

catching all exceptions in GELF handler thread now better safe than sorry


<nb> public class MethodCompiler extends AbstractMethodCompiler {
 } else if ( unit instanceof ExitMonitorStmt ) {
 exitMonitor ( ( ExitMonitorStmt ) unit ) ;
 } else if ( unit instanceof NopStmt ) {
 - SINGLE
 + nop ( ( NopStmt ) unit ) ;
 } else {
 throw new IllegalArgumentException ( STRING0 + unit . getClass ( ) ) ;
 }
 <nb> public class MethodCompiler extends AbstractMethodCompiler {
 checkNull ( stmt , op ) ;
 call ( stmt , MONITOREXIT , env , op ) ;
 }
 +
 + private void nop ( NopStmt stmt ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Variable v = function . newVariable ( I32 ) ;
 + function . add ( new Add ( v , new IntegerConstant ( NUMBER0 ) , new IntegerConstant ( NUMBER0 ) ) ) . attach ( stmt ) ;
 + }
 }

Preserve NOPs as they may be needed for compiler plugins


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DataHeaderFlyweight extends HeaderFlyweight
 COMMENT
 public static final int HEADER_LENGTH = NUMBER0 ;

 - private static final int SESSION_ID_FIELD_OFFSET = NUMBER1 ;
 - private static final int CHANNEL_ID_FIELD_OFFSET = NUMBER2 ;
 - private static final int TERM_ID_FIELD_OFFSET = NUMBER3 ;
 - private static final int SEQUENCE_NUMBER_FIELD_OFFSET = NUMBER4 ;
 + private static final int SEQUENCE_NUMBER_FIELD_OFFSET = NUMBER1 ;
 + private static final int SESSION_ID_FIELD_OFFSET = NUMBER2 ;
 + private static final int CHANNEL_ID_FIELD_OFFSET = NUMBER3 ;
 + private static final int TERM_ID_FIELD_OFFSET = NUMBER4 ;
 private static final int DATA_OFFSET = NUMBER0 ;

 COMMENT

moved sequence number field to right after frame length field


<nb> public class IgnoredJUnitTestInspection extends BaseInspection {
 final PsiJavaCodeReferenceElement nameReferenceElement =
 annotation . getNameReferenceElement ( ) ;
 if ( nameReferenceElement == null ) {
 - System . out . println ( STRING0 + nameReferenceElement ) ;
 return ;
 }
 final PsiElement target = nameReferenceElement . resolve ( ) ;
 <nb> public class IgnoredJUnitTestInspection extends BaseInspection {
 final PsiClass aClass = ( PsiClass ) target ;
 final String qualifiedName = aClass . getQualifiedName ( ) ;
 if ( ! STRING1 . equals ( qualifiedName ) ) {
 - System . out . println ( STRING2 + qualifiedName ) ;
 return ;
 }
 registerError ( annotation , modifierListOwner ) ;


<nb> public class HTML5VideoFullScreen extends HTML5VideoView
 }
 } ;

 + MediaPlayer . OnVideoSizeChangedListener mSizeChangedListener =
 + new MediaPlayer . OnVideoSizeChangedListener ( ) {
 + @ override
 + public void onVideoSizeChanged ( MediaPlayer mp , int width , int height ) {
 + mVideoWidth = mp . getVideoWidth ( ) ;
 + mVideoHeight = mp . getVideoHeight ( ) ;
 + if ( mVideoWidth != NUMBER0 && mVideoHeight != NUMBER0 ) {
 + mVideoSurfaceView . getHolder ( ) . setFixedSize ( mVideoWidth , mVideoHeight ) ;
 + }
 + }
 + } ;
 +
 private SurfaceView getSurfaceView ( ) {
 return mVideoSurfaceView ;
 }
 <nb> public class HTML5VideoFullScreen extends HTML5VideoView
 mc . setSystemUiVisibility ( mLayout . getSystemUiVisibility ( ) ) ;
 setMediaController ( mc ) ;
 mPlayer . setScreenOnWhilePlaying ( true ) ;
 + mPlayer . setOnVideoSizeChangedListener ( mSizeChangedListener ) ;
 prepareDataAndDisplayMode ( mProxy ) ;
 }

Live streaming video may not have the right size at prepared


<nb> public class MonitoringStatus {
 for ( Region region : obj . keySet ( ) ) {
 LogManager . d ( TAG , STRING0 + region + STRING1 + region . getUniqueId ( ) + STRING2 + obj . get ( region ) ) ;
 }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + for ( RegionMonitoringState regionMonitoringState : obj . values ( ) )
 + {
 + if ( regionMonitoringState . getInside ( ) )
 + {
 + regionMonitoringState . markInside ( ) ;
 + }
 + }
 +
 mRegionsStatesMap . putAll ( obj ) ;

 } catch ( IOException | ClassNotFoundException | ClassCastException e ) {

After a MonitoringStatus restore beacons that were inside have their initial lastSeenTime and may trigger quickly as exit enter


<nb> public class Antlr4Mojo extends AbstractMojo {
 COMMENT
 @ parameter ( defaultValue = STRING0 )
 protected boolean atn ;
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ parameter ( defaultValue = STRING1 )
 - protected String messageFormat ;

 protected boolean verbose_dfa ;

 <nb> public class Antlr4Mojo extends AbstractMojo {
 if ( verbose_dfa ) {
 args . add ( STRING2 ) ;
 }
 - if ( messageFormat != null && ! STRING3 . equals ( messageFormat ) ) {
 - args . add ( STRING4 ) ;
 - args . add ( messageFormat ) ;
 - }
 if ( force_atn ) {
 args . add ( STRING5 ) ;
 }

Remove the message format option eventually it should just use one that works with Maven


<nb> public abstract class SettingsBaseActivity extends SherlockPreferenceActivity im
 @ override
 public void onClick ( View v ) {
 if ( selected . size ( ) > NUMBER0 ) {
 + SINGLE
 setSelectedAppMode ( selected . iterator ( ) . next ( ) ) ;
 }
 if ( profileDialog != null && profileDialog . isShowing ( ) ) {
 <nb> public class NavigateAction {
 if ( ! showDefault ) {
 values . remove ( ApplicationMode . DEFAULT ) ;
 }
 - selected . add ( settings . getApplicationMode ( ) ) ;
 + if ( showDefault || settings . getApplicationMode ( ) != ApplicationMode . DEFAULT ) {
 + selected . add ( settings . getApplicationMode ( ) ) ;
 + }
 return prepareAppModeView ( a , values , selected , parent , singleSelection , onClickListener ) ;

 }

Fix bug with default selection navigation settings


<nb> public class RootImpl < X > extends AbstractFromImpl < X , X > implements Root < X > , Seria

 @ override
 public String render ( RenderingContext renderingContext ) {
 + original . prepareAlias ( renderingContext ) ;
 return getTreatFragment ( ) ;
 }

Selecting treated root generates invalid HQL


<nb> public class MediaDriverAdminThread extends ClosableThread implements LibraryFac
 final BufferRotator buffer = bufferManagementStrategy . addReceiverTerm ( rcvDestination , sessionId , channelId ) ;

 SINGLE
 - receiverThread . addBuffer ( new RcvBufferState ( rcvDestination , sessionId , channelId , termId , buffer ) ) ;
 + RcvBufferState bufferState = new RcvBufferState ( rcvDestination , sessionId , channelId , termId , buffer ) ;
 + while ( ! receiverThread . sendBuffer ( bufferState ) )
 + {
 + SINGLE
 + }
 }
 catch ( Exception e )
 {
 <nb> public class ReceiverThread extends ClosableThread
 return nioSelector ;
 }

 - public void addBuffer ( final RcvBufferState buffer )
 + public boolean sendBuffer ( final RcvBufferState buffer )
 {
 - buffers . add ( buffer ) ;
 + return buffers . offer ( buffer ) ;
 }

 public RcvFrameHandler frameHandler ( final UdpDestination destination )


<nb> public class SyncAccountService {
 SyncAccount syncAccount = SyncAccountService . fetchSyncAccount (
 syncAccountId ) ;

 + if ( ! moveFile ) {
 + SyncFile syncFile = SyncFileService . fetchSyncFile (
 + syncAccount . getFilePathName ( ) ) ;
 +
 + String originalFileKey = syncFile . getFileKey ( ) ;
 +
 + String targetFileKey = FileUtil . getFileKey ( filePath ) ;
 +
 + if ( ! originalFileKey . equals ( targetFileKey ) ) {
 + throw new Exception (
 + STRING0 ) ;
 + }
 + }
 +
 syncAccount . setActive ( false ) ;

 SyncAccountService . update ( syncAccount ) ;
 <nb> public class SyncAccountService {
 syncAccount = setFilePathName ( syncAccountId , filePath . toString ( ) ) ;

 syncAccount . setActive ( true ) ;
 + syncAccount . setUiEvent ( SyncAccount . UI_EVENT_DEFAULT ) ;

 SyncAccountService . update ( syncAccount ) ;
 }

Throw an exception if the selected folder is not the original folder


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface IvyPublication extends Publication {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TaskListFragment extends SherlockListFragment implements OnScrollLi

 public static final String TAG_TASKLIST_FRAGMENT = STRING0 ; SINGLE

 - private static final String PREF_LAST_FEEDBACK_TIME = STRING1 ; SINGLE
 + public static final String PREF_LAST_FEEDBACK_TIME = STRING1 ; SINGLE
 private static final long FEEDBACK_TIME_INTERVAL = DateUtilities . ONE_WEEK * NUMBER0 ;

 SINGLE
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class UpgradeService {
 if ( from < V4_6_3 ) {
 if ( ActFmPreferenceService . isPremiumUser ( ) )
 Preferences . clear ( NameMaps . PUSHED_AT_TAGS ) ;
 + Preferences . setLong ( TaskListFragment . PREF_LAST_FEEDBACK_TIME , DateUtilities . now ( ) ) ;
 }
 }

Set last feedback time for upgrading users


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GroovyScriptRunConfiguration extends ModuleBasedConfiguration {
 }

 public static String getConfPath ( String groovyHome ) {
 - String confpath = groovyHome + GROOVY_STARTER_CONF ;
 + String confpath = FileUtil . toSystemDependentName ( groovyHome + GROOVY_STARTER_CONF ) ;
 if ( new File ( confpath ) . exists ( ) ) {
 return confpath ;
 }

convert groovy conf path to system dependent


<nb> public class SQLSelectTest {
 record . setClassName ( STRING0 ) ;
 record . field ( STRING1 , STRING2 ) ;

 - Set < ODocument > races = new HashSet < ODocument > ( ) ;
 + Collection < ODocument > races = new HashSet < ODocument > ( ) ;
 races . add ( ( ( ODocument ) database . newInstance ( STRING3 ) ) . field ( STRING1 , STRING4 ) ) ;
 races . add ( ( ( ODocument ) database . newInstance ( STRING3 ) ) . field ( STRING1 , STRING5 ) ) ;
 record . field ( STRING6 , races ) ;

Fixed bug on collections in SQL queries reported by cgandelli gmail com in ML


<nb> public class BanListCommand extends VanillaCommand {
 public boolean execute ( CommandSender sender , String currentAlias , String [ ] args ) {
 if ( ! testPermission ( sender ) ) return true ;

 - StringBuilder message = new StringBuilder ( ) . append ( ChatColor . GRAY ) . append ( STRING0 ) ;
 + StringBuilder message = new StringBuilder ( ) . append ( ChatColor . GRAY ) . append ( STRING1 ) ;

 int count = NUMBER0 ;
 for ( OfflinePlayer p : Bukkit . getServer ( ) . getBannedPlayers ( ) ) {


<nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
 private @ nullable String mJSModuleName ;
 private @ nullable Bundle mLaunchOptions ;
 private @ nullable KeyboardListener mKeyboardListener ;
 + private @ nullable OnGenericMotionListener mOnGenericMotionListener ;
 private boolean mWasMeasured = false ;
 private boolean mAttachScheduled = false ;
 private boolean mIsAttachedToWindow = false ;
 <nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
 EventDispatcher eventDispatcher = reactContext . getNativeModule ( UIManagerModule . class )
 . getEventDispatcher ( ) ;
 mJSTouchDispatcher . onChildStartedNativeGesture ( androidEvent , eventDispatcher ) ;
 + SINGLE
 + if ( mOnGenericMotionListener != null ) {
 + mOnGenericMotionListener . onGenericMotion ( this , androidEvent ) ;
 + }
 }

 @ override
 <nb> public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
 return true ;
 }

 + public void setOnGenericMotionListener ( OnGenericMotionListener listener ) {
 + mOnGenericMotionListener = listener ;
 + }
 +
 private void dispatchJSTouchEvent ( MotionEvent event ) {
 if ( mReactInstanceManager == null || ! mIsAttachedToInstance ||
 mReactInstanceManager . getCurrentReactContext ( ) == null ) {

Render top back and back button on search results


<nb> public abstract class ESIntegTestCase extends ESTestCase {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setMinimumMasterNodes ( int n ) {
 assertTrue ( client ( ) . admin ( ) . cluster ( ) . prepareUpdateSettings ( ) . setTransientSettings (

Changed some of the language in documentation


<nb> public class SymmetricEncryptionConfig {
 }

 public byte [ ] getKey ( ) {
 - return Arrays . copyOf ( key , key . length ) ;
 + return key != null ? Arrays . copyOf ( key , key . length ) : null ;
 }

 public SymmetricEncryptionConfig setKey ( byte [ ] key ) {
 - this . key = Arrays . copyOf ( key , key . length ) ;
 + this . key = key != null ? Arrays . copyOf ( key , key . length ) : null ;
 return this ;
 }

 <nb> public class EncryptionTest {
 COMMENT
 COMMENT
 COMMENT
 - @ test ( timeout = NUMBER0 * NUMBER1 )
 + @ test
 public void testSymmetricEncryption ( ) throws Exception {
 Config config = new Config ( ) ;
 SymmetricEncryptionConfig encryptionConfig = new SymmetricEncryptionConfig ( ) ;


<nb> public class DownloadIndexesThread {
 if ( date != null &&
 ! date . equals ( indexactivateddate ) &&
 ! date . equals ( indexfilesdate ) ) {
 - SINGLE
 - SINGLE
 if ( ( item . getType ( ) == DownloadActivityType . NORMAL_FILE && ! item . extra ) ||
 item . getType ( ) == DownloadActivityType . ROADS_FILE ||
 item . getType ( ) == DownloadActivityType . SRTM_COUNTRY_FILE ) {


<nb> public class IOSCharsetDecoder extends CharsetDecoder {
 }

 private static native String decode ( byte [ ] in , long encoding ) COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT ;
 -
 +
 public int available ( ) {
 return charBuffer != null ? ( charBuffer . length - outIndex ) : NUMBER0 ;
 }

Fixed charset decoder to return empty string instead of nil


<nb> public class OperationSetBasicTelephonySipImpl
 else
 {
 logger . error ( STRING0
 - + STRING1 ) ;
 + + STRING2
 + + STRING3 + dialogState ) ;
 }

 processed = true ;
 <nb> public class OperationSetBasicTelephonySipImpl
 COMMENT
 private void processStrayInvite ( ServerTransaction serverTransaction )
 {
 + logger . info ( STRING4 ) ;
 +
 Request inviteRequest = serverTransaction . getRequest ( ) ;

 SINGLE

Prints some extra info when dropping stray INVITEs


<nb> public class InspectionGadgetsPlugin implements ApplicationComponent ,
 }

 private void registerAbstractionInspections ( ) {
 - m_inspectionClasses . add ( DuplicateStringLiteralInspection . class ) ;
 m_inspectionClasses . add ( FeatureEnvyInspection . class ) ;
 m_inspectionClasses . add ( InstanceofChainInspection . class ) ;
 m_inspectionClasses . add ( LocalVariableOfConcreteClassInspection . class ) ;

Removing the Duplicate String Literal inspection


<nb> public class GraphBuilderTask implements Runnable {
 }

 public void run ( ) {
 -
 +
 + COMMENT
 + long startTime = System . currentTimeMillis ( ) ;
 +
 if ( graphFile == null ) {
 throw new RuntimeException ( STRING0 ) ;
 }
 <nb> public class GraphBuilderTask implements Runnable {
 } else {
 LOG . info ( STRING1 ) ;
 }
 -
 +
 + long endTime = System . currentTimeMillis ( ) ;
 + LOG . info ( String . format ( STRING2 , ( endTime - startTime ) / NUMBER0 / FLOAT0 ) ) ;
 }
 }


<nb> public class FromContainsFilter implements PacketFilter {
 }

 public boolean accept ( Packet packet ) {
 - return packet . getFrom ( ) . indexOf ( from ) != - NUMBER0 ;
 + if ( packet . getFrom ( ) != null ) {
 + return packet . getFrom ( ) . indexOf ( from ) != - NUMBER0 ;
 + }
 + else {
 + return false ;
 + }
 }
 }


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

 SINGLE
 mojo . version = System . getProperty ( STRING0 , SalesforceEndpointConfig . DEFAULT_VERSION ) ;
 + mojo . loginUrl = System . getProperty ( STRING1 , SalesforceLoginConfig . DEFAULT_LOGIN_URL ) ;
 mojo . outputDirectory = new File ( STRING2 ) ;
 mojo . packageName = STRING3 ;

fixed mojo integration test to use system property or default login url


<nb> public class NettyTransport extends AbstractLifecycleComponent < Transport > implem

 this . scheduledPing = new ScheduledPing ( ) ;
 this . pingSchedule = PING_SCHEDULE . get ( settings ) ;
 - if ( pingSchedule . millis ( ) > NUMBER0 ) {
 - threadPool . schedule ( pingSchedule , ThreadPool . Names . GENERIC , scheduledPing ) ;
 - }
 this . namedWriteableRegistry = namedWriteableRegistry ;
 this . circuitBreakerService = circuitBreakerService ;
 }
 <nb> public class NettyTransport extends AbstractLifecycleComponent < Transport > implem
 bindServerBootstrap ( name , mergedSettings ) ;
 }
 }
 + if ( pingSchedule . millis ( ) > NUMBER0 ) {
 + threadPool . schedule ( pingSchedule , ThreadPool . Names . GENERIC , scheduledPing ) ;
 + }
 success = true ;
 } finally {
 if ( success == false ) {

Do not start scheduled pings until transport start


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

 COMMENT
 COMMENT
 COMMENT
 + @ singleton
 public class Navigator {

 - @ inject
 public void Navigator ( ) {
 SINGLE
 }


<nb> public class Match {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public final boolean checksSpelling ( ) {
 - SINGLE
 return suppressMisspelled ;
 }


<nb> public class SearchTextField extends JPanel {
 }

 public void setSearchIcon ( final Icon icon ) {
 - myToggleHistoryLabel . setIcon ( icon ) ;
 + if ( ! hasNativeLeopardSearchControl ( ) ) {
 + myToggleHistoryLabel . setIcon ( icon ) ;
 + }
 }
 }

NPE in got log do not set icon in search field for MAC


<nb> public class TileLaser extends TileBuildCraft implements IActionReceptor , IMachi

 @ override
 - public void initialize ( ) {
 + public void initialize ( ) {
 super . initialize ( ) ;
 +
 + if ( laser == null ) {
 + laser = new LaserData ( ) ;
 + }

 laser . isVisible = false ;
 laser . head = new Position ( xCoord , yCoord , zCoord ) ;

Fixed laser data not existing in some cases


<nb> public class AnimatedVectorDrawable extends Drawable implements Animatable {
 final int size = animators . size ( ) ;
 for ( int i = NUMBER0 ; i < size ; i ++ ) {
 final Animator animator = animators . get ( i ) ;
 - if ( animator . isPaused ( ) ) {
 - animator . resume ( ) ;
 - } else if ( ! animator . isRunning ( ) ) {
 + if ( ! animator . isRunning ( ) ) {
 animator . start ( ) ;
 }
 }
 <nb> public class AnimatedVectorDrawable extends Drawable implements Animatable {
 final int size = animators . size ( ) ;
 for ( int i = NUMBER0 ; i < size ; i ++ ) {
 final Animator animator = animators . get ( i ) ;
 - animator . pause ( ) ;
 + animator . end ( ) ;
 }
 }


<nb> public class PixmapPacker implements Disposable {
 int borderPixels = padding + ( duplicateBorder ? NUMBER0 : NUMBER1 ) ;
 borderPixels < <= NUMBER0 ;

 - if ( image . getWidth ( ) >= pageWidth + borderPixels || image . getHeight ( ) >= pageHeight + borderPixels )
 - throw new GdxRuntimeException ( STRING0 + name + STRING1 ) ;
 -
 Rectangle rect = new Rectangle ( NUMBER1 , NUMBER1 , image . getWidth ( ) + borderPixels , image . getHeight ( ) + borderPixels ) ;
 + if ( rect . getWidth ( ) > pageWidth || rect . getHeight ( ) > pageHeight )
 + throw new GdxRuntimeException ( STRING0 + name + STRING1 ) ;
 +
 Node node = insert ( currPage . root , rect ) ;

 if ( node == null ) {

Fix edge case where PixmapPacker eats all memory in infinite recursion


<nb> public final class InteropTester extends AsyncTask < Void , Void , String > {
 request . responseSize = unaryPayloadLength ( ) ;
 request . responseType = Messages . COMPRESSABLE ;

 + SimpleResponse resp = blockingStub . unaryCall ( request ) ;
 final SimpleResponse goldenResponse = new SimpleResponse ( ) ;
 goldenResponse . payload = new Payload ( ) ;
 goldenResponse . payload . type = Messages . COMPRESSABLE ;
 goldenResponse . payload . body = new byte [ unaryPayloadLength ( ) ] ;

 - assertMessageSizeEquals ( goldenResponse , blockingStub . unaryCall ( request ) ) ;
 + assertMessageSizeEquals ( goldenResponse , resp ) ;
 }

 public void deadlineNotExceeded ( ) {


<nb> public class IcqProtocolProviderSlick
 SINGLE
 SINGLE
 SINGLE
 - String offlineMsgBody = STRING0 ;
 - IcqSlickFixture . offlineMsgCollector =
 - new IcqSlickFixture . OfflineMsgCollector ( ) ;
 - IcqSlickFixture . offlineMsgCollector . setMessageText ( offlineMsgBody ) ;
 - IcqSlickFixture . testerAgent . sendOfflineMessage (
 - System . getProperty ( TESTED_IMPL_ACCOUNT_ID_PROP_NAME , null ) ,
 - offlineMsgBody
 - ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE

 SINGLE
 SINGLE
 <nb> public class TestOperationSetBasicInstantMessaging
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 +
 public void testReceiveOfflineMessages ( )
 {
 String messageText =
 <nb> public class TestOperationSetBasicInstantMessaging
 assertNotNull ( STRING1 , receiveMessage ) ;
 assertEquals ( STRING2 , messageText , receiveMessage . getContent ( ) ) ;
 }
 -
 + COMMENT
 }

removed tests for offline messages which failed the build


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT

Remove import of backport util concurrent Arrays class


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 } . execute ( ) . throwException ( ) ;
 }

 - public static void addSourceContentToRoots ( Module module , VirtualFile vDir ) {
 + public static void addSourceContentToRoots ( Module module , @ notnull VirtualFile vDir ) {
 addSourceContentToRoots ( module , vDir , false ) ;
 }

 - public static void addSourceContentToRoots ( final Module module , final VirtualFile vDir , final boolean testSource ) {
 + public static void addSourceContentToRoots ( final Module module , @ notnull final VirtualFile vDir , final boolean testSource ) {
 new WriteCommandAction . Simple ( module . getProject ( ) ) {
 @ override
 protected void run ( ) throws Throwable {


<nb> import NAMESPACE ;
 public class DeprecatedLzoBinaryBlockRecordWriter < M , W extends BinaryWritable < M > >
 implements RecordWriter < NullWritable , W > {

 - private BinaryBlockWriter < M > writer_ ;
 + private BinaryBlockWriter < M > writer ;

 public DeprecatedLzoBinaryBlockRecordWriter ( BinaryBlockWriter < M > writer ) {
 - writer_ = writer ;
 + this . writer = writer ;
 }

 public void write ( NullWritable nullWritable , W writable )
 throws IOException {
 - writer_ . write ( writable . get ( ) ) ;
 + writer . write ( writable . get ( ) ) ;
 }

 public void close ( Reporter reporter ) throws IOException {
 - writer_ . finish ( ) ;
 - writer_ . close ( ) ;
 + writer . finish ( ) ;
 + writer . close ( ) ;
 }
 }


<nb> public class AppCompiler {
 + STRING0
 + STRING1 ) ;
 System . err . println ( STRING2
 - + STRING3
 + + STRING4
 + STRING5 ) ;
 System . err . println ( STRING6
 + STRING7

Fixed formatting in usage message in AppCompiler


<nb> public class IQDiscoItemsHandler extends IQHandler implements ServerFeaturesProv
 element . addAttribute ( STRING0 , discoItem . getNode ( ) ) ;
 element . addAttribute ( STRING1 , discoItem . getName ( ) ) ;
 SINGLE
 - serverItems . add ( element ) ;
 + addComponentItem ( discoItem . getJID ( ) , discoItem . getName ( ) ) ;

 SINGLE
 String host = new JID ( discoItem . getJID ( ) ) . getDomain ( ) ;

Fixed sync issue which could cause multiple Disco Items entries


<nb> public class TargetElementUtil {
 else if ( parent instanceof PsiNamedElement ) { SINGLE
 if ( parent . getTextOffset ( ) == element . getTextOffset ( ) &&
 Comparing . equal ( ( ( PsiNamedElement ) parent ) . getName ( ) , element . getText ( ) ) &&
 - ! ( parent instanceof XmlAttribute ) &&
 - ! ( parent instanceof PsiReference )
 + ! ( parent instanceof XmlAttribute )
 ) {
 return parent ;
 }

removing bogus to treat JSReferenceExpression as PsiNamedElement


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FilterPlanNode implements PlanNode {
 if ( dataSourceMetadata . isSingleValue ( ) && dataSourceMetadata . isSorted ( ) ) {
 SINGLE
 baseFilterOperator = new SortedInvertedIndexBasedFilterOperator ( ds ) ;
 - } else if ( ! filterType . equals ( FilterOperator . RANGE ) ) {
 + } else if ( ! filterType . equals ( FilterOperator . RANGE ) || _segment instanceof RealtimeSegment ) {
 + SINGLE
 SINGLE
 baseFilterOperator = new BitmapBasedFilterOperator ( ds ) ;
 } else {


<nb> public class EduStepicConnector {
 final Gson gson = new GsonBuilder ( ) . setPrettyPrinting ( ) . excludeFieldsWithoutExposeAnnotation ( ) .
 registerTypeAdapter ( AnswerPlaceholder . class , new StudySerializationUtils . Json . StepicAnswerPlaceholderAdapter ( ) ) . create ( ) ;
 ApplicationManager . getApplication ( ) . invokeLater ( ( ) - > {
 + task . addTestsTexts ( STRING0 , task . getTestsText ( project ) ) ;
 final String requestBody = gson . toJson ( new StepicWrappers . StepSourceWrapper ( project , task , lessonId ) ) ;
 request . setEntity ( new StringEntity ( requestBody , ContentType . APPLICATION_JSON ) ) ;


<nb>

 package NAMESPACE ;

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

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

 <nb> public class ProtobufParser < MessageType extends MessageLite > {
 private TimerTask timeoutTask ;
 private long timeoutMillis ;

 - SINGLE
 - private static final Timer timeoutTimer = new Timer ( ) ;
 + SINGLE
 + private static final Timer timeoutTimer = new Timer ( STRING0 , true ) ;

 COMMENT
 COMMENT

Make the ProtobufParser timer daemon and labelled


<nb> public class MessageList
 }

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

 public static void actionHandleFolder ( Context context , Account account , String folder , boolean startup )


<nb> public class ShellException extends Exception
 {
 String stackTraceAsString = stackTraceAsString ( cause ) ;
 String message = getFirstMessage ( cause ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + if ( ! ( cause instanceof ShellException ) )
 + {
 + message = cause . getClass ( ) . getSimpleName ( ) + STRING0 + message ;
 + }
 return new ShellException ( message , stackTraceAsString ) ;
 }

Displays the exception simple class name for unrecognized exceptions


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GeneralCommandLine implements UserDataHolder {
 @ notnull
 public GeneralCommandLine withWorkDirectory ( @ nullable File workDirectory ) {
 myWorkDirectory = workDirectory ;
 + if ( SystemInfo . isUnix && workDirectory != null ) {
 + getEnvironment ( ) . put ( STRING0 , FileUtil . toSystemDependentName ( workDirectory . getAbsolutePath ( ) ) ) ;
 + }
 +
 return this ;
 }

always set PWD variable to the value of working dir


<nb> public class SecureHashUtil {
 ( byte ) STRING0 , ( byte ) STRING1 , ( byte ) STRING2 , ( byte ) STRING3
 } ;

 - private static String convertToHex ( byte [ ] raw ) throws UnsupportedEncodingException {
 + public static String convertToHex ( byte [ ] raw ) throws UnsupportedEncodingException {
 StringBuilder sb = new StringBuilder ( raw . length ) ;
 for ( byte b : raw ) {
 int v = b & NUMBER0 ;


<nb> public abstract class Pipe < T extends PipeTransport > implements IDropControlInven
 SINGLE
 if ( data . hasKey ( STRING0 ) ) {
 int [ ] legacyDirectionOrder = new int [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 } ;
 + boolean hasRestoredGate = false ;
 +
 for ( int i : legacyDirectionOrder ) {
 if ( ! transport . container . isPipeConnected ( ForgeDirection . getOrientation ( i ) ) ) {
 transport . container . setGate ( GateFactory . makeGate ( this , data . getCompoundTag ( STRING0 ) ) , i ) ;
 + hasRestoredGate = true ;
 break ;
 }
 }
 +
 + if ( ! hasRestoredGate ) {
 + transport . container . setGate ( GateFactory . makeGate ( this , data . getCompoundTag ( STRING0 ) ) , NUMBER5 ) ;
 + }
 +
 data . removeTag ( STRING0 ) ;
 }

add an escape route for cases where a gate is on all sides of a pipe


<nb> public class TestRestLiResourceModels
 @ test
 public void testInvalidFinders ( ) throws Exception
 {
 - expectConfigException ( InvalidResources . FinderNonListReturnType . class , STRING0 ) ;
 + expectConfigException ( InvalidResources . FinderNonListReturnType . class , STRING1 ) ;
 expectConfigException ( InvalidResources . FinderNonRecordTemplateReturnType . class , STRING2 ) ;
 expectConfigException ( InvalidResources . FinderNonMatchingRecordTemplateReturnType . class , STRING2 ) ;
 expectConfigException ( InvalidResources . FinderNonMatchingRecordTemplateReturnTypeCollectionResult . class , STRING3 ) ;

Fix test failure in TestRestLiResourceModels


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public @ interface Test {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 Class < ? extends Throwable > expected ( ) default None . class ;


<nb> public class TransactionOutput extends ChildMessage implements Serializable {
 checkState ( availableForSpending ) ;
 availableForSpending = false ;
 spentBy = input ;
 + if ( parentTransaction != null )
 + log . info ( STRING0 , parentTransaction . getHash ( ) , getIndex ( ) , input ) ;
 + else
 + log . info ( STRING1 , input ) ;
 }

 COMMENT
 COMMENT
 COMMENT
 public void markAsUnspent ( ) {
 + if ( parentTransaction != null )
 + log . info ( STRING2 , parentTransaction . getHash ( ) , getIndex ( ) , spentBy ) ;
 + else
 + log . info ( STRING3 , spentBy ) ;
 availableForSpending = true ;
 spentBy = null ;
 }

Add logging for output disconnection and reconnection


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

 import NAMESPACE ;
 <nb> public class GeneratedArchiveBuildOutcomeComparator implements BuildOutcomeCompa

 private final Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ;

 - public GeneratedArchiveBuildOutcomeComparator ( Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ) {
 + public GeneratedArchiveBuildOutcomeComparator ( ) {
 + this ( new FileToArchiveEntrySetTransformer ( new ZipEntryToArchiveEntryTransformer ( ) ) ) ;
 + }
 +
 + GeneratedArchiveBuildOutcomeComparator ( Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ) {
 this . archiveToEntriesTransformer = archiveToEntriesTransformer ;
 }

Add a default constructor that uses sensible internal strategies


<nb> public abstract class TransportShardReplicationOperationAction < Request extends S

 private final ReplicationType replicationType ;

 - private AsyncShardOperationAction ( Request request , ActionListener < Response > listener ) {
 + AsyncShardOperationAction ( Request request , ActionListener < Response > listener ) {
 this . request = request ;
 this . listener = listener ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RemoteExternalSystemCommunicationManager implements ExternalSystemC

 SINGLE
 ContainerUtil . addIfNotNull ( PathUtil . getJarPathForClass ( getClass ( ) ) , classPath ) ;
 + SINGLE
 + ContainerUtil . addIfNotNull ( PathUtil . getJarPathForClass ( ExternalSystemException . class ) , classPath ) ;
 ExternalSystemApiUtil . addBundle ( params . getClassPath ( ) , STRING0 , CommonBundle . class ) ;
 params . getClassPath ( ) . addAll ( classPath ) ;

add external system rt jar to the classpath of the remote process


<nb> public class Moco {
 }

 public static ContentResource file ( final String filename , Charset charset ) {
 - return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , of ( charset ) ) ;
 + return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , of ( checkNotNull ( charset , STRING1 ) ) ) ;
 }

 public static ContentResource file ( final String filename , Optional < Charset > charset ) {
 - return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , charset ) ;
 + return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , checkNotNull ( charset , STRING1 ) ) ;
 }

 public static ContentResource pathResource ( final String filename ) {


<nb> public class JavaResolveUtil {
 PsiElement prev = element ;
 PsiElement scope = element . getContext ( ) ;
 while ( scope != null ) {
 + SINGLE
 if ( scope instanceof PsiClass && ( prev instanceof PsiMember || prev instanceof PsiDocComment ) ) {
 return ( PsiClass ) scope ;
 }
 <nb> public class JavaResolveUtil {
 if ( memberClass == null ) {
 return false ;
 }
 + SINGLE
 PsiClass contextClass = member instanceof PsiClass ? getContextClass ( place )
 : PsiTreeUtil . getContextOfType ( place , PsiClass . class , false ) ;
 while ( contextClass != null ) {

add clarifying comments around JavaResolveUtil getContextClass


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class Window {
 }

 COMMENT
 + @ systemapi
 + public void setDisableWallpaperTouchEvents ( boolean disable ) {
 + setPrivateFlags ( disable
 + ? WindowManager . LayoutParams . PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS : NUMBER0 ,
 + WindowManager . LayoutParams . PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS ) ;
 + }
 +
 + COMMENT
 public abstract void alwaysReadCloseOnTouchAttr ( ) ;

 COMMENT

Add system api for disabling touch events in wallpaper behind the window


<nb> public class WifiStateMachine extends StateMachine {
 mDhcpStateMachine = null ;
 }

 - COMMENT
 - NetworkUtils . disableInterface ( mInterfaceName ) ;
 -
 COMMENT
 mWifiInfo . setInetAddress ( null ) ;
 mWifiInfo . setBSSID ( null ) ;

Remove interface disable in wifistatemachine


<nb> public class PluginsEnvironmentBuilder {

 File libDir = new File ( propertiesFile . getParent ( ) + STRING0 ) ;

 + String libDirPath = StringUtil . replace (
 + libDir . getPath ( ) , StringPool . BACK_SLASH , StringPool . SLASH ) ;
 +
 + if ( libDirPath . contains ( STRING1 ) ) {
 + return ;
 + }
 +
 File projectDir = new File ( propertiesFile . getParent ( ) + STRING2 ) ;

 Properties properties = new Properties ( ) ;


<nb> public class JavaSdkImpl extends JavaSdk {
 if ( SystemInfo . isMac ) {
 return STRING0 ;
 }
 + if ( SystemInfo . isLinux ) {
 + return STRING1 ;
 + }
 return null ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StreetUtils {
 State s0 = new State ( gv , options ) ;
 for ( Edge e : gv . getOutgoing ( ) ) {
 Vertex in = gv ;
 - if ( ! ( e instanceof StreetEdge || e instanceof StreetTransitLink ) ) {
 + if ( ! ( e instanceof StreetEdge || e instanceof StreetTransitLink ||
 + e instanceof ElevatorEdge ) ) {
 continue ;
 }
 State s1 = e . traverse ( s0 ) ;

include elevators when finding islands to prune


<nb> public class DruidMasterRuleRunnerTest
 Lists . < String > newArrayList ( ) ,
 Lists . < String > newArrayList ( ) ,
 new NoneShardSpec ( ) ,
 - NUMBER0
 + NUMBER0 ,
 + NUMBER1
 ) ;

 afterParams = ruleRunner . run (
 <nb> public class DruidMasterRuleRunnerTest
 Lists . < String > newArrayList ( ) ,
 Lists . < String > newArrayList ( ) ,
 new NoneShardSpec ( ) ,
 - NUMBER0
 + NUMBER0 ,
 + NUMBER1
 ) ;
 List < DataSegment > longerAvailableSegments = Lists . newArrayList ( availableSegments ) ;
 longerAvailableSegments . add ( overFlowSegment ) ;


<nb> public class CxfEndpointUtilsWithSpringTest extends CxfEndpointUtilsTest {
 assertEquals ( STRING0 , service , SERVICE_NAME ) ;
 assertEquals ( STRING1 , CxfEndpointUtils . getSetDefaultBus ( endpoint ) ,
 true ) ;
 + assertEquals ( STRING2 , CxfEndpointUtils . getDataFormat ( endpoint ) , DataFormat . MESSAGE ) ;
 }

 public void testGetDataFormatFromCxfEndpontProperties ( ) throws Exception {
 CxfEndpoint endpoint = createEndpoint ( getEndpointURI ( ) + STRING3 ) ;
 - assertEquals ( STRING4 , CxfEndpointUtils . getDataFormat ( endpoint ) ,
 + assertEquals ( STRING5 , CxfEndpointUtils . getDataFormat ( endpoint ) ,
 DataFormat . PAYLOAD ) ;
 }


<nb> public class SubmitReportWsAction implements ComputationWsAction , RequestHandler

 action
 . createParam ( PARAM_REPORT_DATA )
 - . setRequired ( false )
 + . setRequired ( true )
 . setDescription ( STRING0 ) ;
 }

 <nb> public class ComponentDtoTest {
 }

 @ test
 + public void toString_does_not_fail_if_empty ( ) throws Exception {
 + ComponentDto dto = new ComponentDto ( ) ;
 + assertThat ( dto . toString ( ) ) . isNotEmpty ( ) ;
 + }
 +
 + @ test
 public void is_root_project ( ) throws Exception {
 assertThat ( new ComponentDto ( ) . setModuleUuid ( STRING1 ) . isRootProject ( ) ) . isFalse ( ) ;
 assertThat ( new ComponentDto ( ) . setModuleUuid ( STRING1 ) . setScope ( Scopes . DIRECTORY ) . isRootProject ( ) ) . isFalse ( ) ;


<nb> public class CordovaWebView extends WebView {
 this . loadUrlIntoView ( url ) ;
 }

 +
 + public void onScrollChanged ( int l , int t , int oldl , int oldt )
 + {
 + super . onScrollChanged ( l , t , oldl , oldt ) ;
 + SINGLE
 + LOG . d ( TAG , STRING0 , oldl , l ) ;
 + LOG . d ( TAG , STRING1 , oldt , t ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Updated CordovaWebView to experiment with onScrollChanged messages


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JoinStressTest extends HazelcastTestSupport {
 testJoinWithManyNodes ( true ) ;
 }

 - @ repeat ( NUMBER0 )
 @ test
 public void testJoincompletesCorrectlyWhenMultipleNodesStartedParallel ( ) {
 int count = NUMBER1 ;

Remove Repeat annotation in JoinStressTest


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ActionButton extends JComponent implements ActionButtonComponent , A
 }

 private void actionPerformed ( final AnActionEvent event ) {
 - if ( myAction instanceof ActionGroup && ! ( myAction instanceof CustomComponentAction ) && ( ( ActionGroup ) myAction ) . isPopup ( ) ) {
 + if ( myAction instanceof ActionGroup &&
 + ! ( myAction instanceof CustomComponentAction ) &&
 + ( ( ActionGroup ) myAction ) . isPopup ( ) &&
 + ! ( ( ActionGroup ) myAction ) . canBePerformed ( event . getDataContext ( ) ) ) {
 final ActionManagerImpl am = ( ActionManagerImpl ) ActionManager . getInstance ( ) ;
 ActionPopupMenuImpl popupMenu = ( ActionPopupMenuImpl ) am . createActionPopupMenu ( event . getPlace ( ) , ( ActionGroup ) myAction , new MenuItemPresentationFactory ( ) {
 @ override

ui perform action instead of showing popup if canBePerformed for action groups


<nb> public class ReadNodeRecordsByCacheStep extends AbstractStep < NodeRecord [ ] >
 public void start ( int orderingGuarantees )
 {
 super . start ( orderingGuarantees ) ;
 - recordCursor . acquire ( NUMBER0 , RecordLoad . CHECK ) ;
 + recordCursor . acquire ( NUMBER0 , RecordLoad . NORMAL ) ;
 }

 @ override
 <nb> public class ReadNodeRecordsByCacheStep extends AbstractStep < NodeRecord [ ] >
 @ override
 public void change ( long nodeId , ByteArray array )
 {
 - boolean inUse = recordCursor . next ( nodeId ) ;
 - assert inUse ;
 + recordCursor . next ( nodeId ) ;
 batch [ cursor ++ ] = recordCursor . get ( ) . clone ( ) ;
 if ( cursor == batchSize )
 {

Uses RecordLoad NORMAL for natural errors on


<nb> public class ResolveUtil {
 return result ;
 }

 - public static boolean isInheritor ( PsiType type , @ notnull String baseClass , Project project ) {
 - return getAllSuperTypes ( type , project ) . keySet ( ) . contains ( baseClass ) ;
 - }
 -
 -
 @ notnull
 private static String rawCanonicalText ( @ notnull PsiType type ) {
 final String result = type . getCanonicalText ( ) ;


<nb> public class StaticFilesTest {
 public void testCustomMimeType ( ) throws Exception {
 staticFiles . registerMimeType ( STRING0 , STRING1 ) ;
 Assert . assertEquals ( STRING1 , doGet ( STRING2 ) . headers . get ( STRING3 ) ) ;
 + staticFiles . registerMimeType ( STRING0 , STRING4 ) ;
 + Assert . assertEquals ( STRING4 , doGet ( STRING2 ) . headers . get ( STRING3 ) ) ;
 }

 @ test
 <nb> public class StaticFilesTest {
 return testUtil . doMethod ( STRING5 , fileName , null ) ;
 }

 -
 }

Reset mime type after custom mime type test


<nb> public class BottomSheetLayout extends FrameLayout {

 @ override
 public boolean onKeyPreIme ( int keyCode , KeyEvent event ) {
 - if ( keyCode == KeyEvent . KEYCODE_BACK ) {
 + if ( keyCode == KeyEvent . KEYCODE_BACK && isSheetShowing ( ) ) {
 if ( event . getAction ( ) == KeyEvent . ACTION_DOWN && event . getRepeatCount ( ) == NUMBER0 ) {
 KeyEvent . DispatcherState state = getKeyDispatcherState ( ) ;
 if ( state != null ) {

Only overrides back button when sheet is showing


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

 import NAMESPACE ;
 <nb> public class NamespaceComparator {
 sb . append ( STRING0 ) ;
 }

 - if ( ! klass . getTypeConstructor ( ) . getSupertypes ( ) . isEmpty ( ) ) {
 + if ( JetStandardClasses . getNothing ( ) != klass && ! klass . getTypeConstructor ( ) . getSupertypes ( ) . isEmpty ( ) ) {
 sb . append ( STRING1 ) ;
 new TypeSerializer ( sb ) . serializeCommaSeparated ( new ArrayList < JetType > ( klass . getTypeConstructor ( ) . getSupertypes ( ) ) ) ;
 }

Support comparing the builtins namespace


<nb> public class MethodInvocation {

 @ override
 public String toString ( ) {
 - return String . format ( STRING0 , method . getName ( ) ) ;
 + return String . format ( STRING1 , method . getName ( ) , Arrays . toString ( arguments ) ) ;
 }
 }

 <nb> public class MethodInvocationTest {
 assertThat ( invocation , strictlyEqual ( equalInvocation ) ) ;
 assertThat ( invocation , not ( equalTo ( differentMethod ) ) ) ;
 assertThat ( invocation , not ( equalTo ( differentArgs ) ) ) ;
 + assertThat ( invocation . toString ( ) , equalTo ( STRING2 ) ) ;
 }
 }

Added trace to hunt down stalled build issue


<nb> public class MorfologikSpeller {
 return suggestions ;
 }

 - private boolean containsDigit ( final String s ) {
 - for ( int k = NUMBER0 ; k < s . length ( ) ; k ++ ) {
 - if ( Character . isDigit ( s . charAt ( k ) ) ) {
 - return true ;
 - }
 - }
 - return false ;
 - }
 -
 }


<nb> public class DemoApplication extends Application {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - FileDownloader . init ( this ,
 + FileDownloader . init ( getApplicationContext ( ) ,
 new FileDownloadHelper . OkHttpClientCustomMaker ( ) { SINGLE
 @ override
 public OkHttpClient customMake ( ) {

provide ApplicationContext instead of Application to init FileDownloader


<nb> public class JacksonMarshalTest extends CamelTestSupport {

 Object marshalled = template . requestBody ( STRING0 , in ) ;
 String marshalledAsString = context . getTypeConverter ( ) . convertTo ( String . class , marshalled ) ;
 - String expected = STRING1
 - + STRING2
 - + STRING3 ;
 + String expected = String . format ( STRING4 , System . lineSeparator ( ) , System . lineSeparator ( ) ) ;
 assertEquals ( expected , marshalledAsString ) ;

 template . sendBody ( STRING5 , marshalled ) ;
 <nb> public class SpringJacksonJsonDataFormatTest extends CamelSpringTestSupport {

 Object marshalled = template . requestBody ( STRING0 , in ) ;
 String marshalledAsString = context . getTypeConverter ( ) . convertTo ( String . class , marshalled ) ;
 - String expected = STRING1
 - + STRING2
 - + STRING3 ;
 + String expected = String . format ( STRING4 , System . lineSeparator ( ) , System . lineSeparator ( ) ) ;
 assertEquals ( expected , marshalledAsString ) ;

 template . sendBody ( STRING6 , marshalled ) ;


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class RenderPass extends APass {
 protected RajawaliScene mScene ;
 protected int mClearColor ;
 protected int mOldClearColor ;

 - public RenderPass ( RajawaliScene scene , int clearColor , float clearAlpha ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public RenderPass ( RajawaliScene scene , int clearColor ) {
 mScene = scene ;
 mClearColor = clearColor ;
 mOldClearColor = NUMBER0 ;

Added Javadoc to the class and removed an unused constructor argument


<nb> public class IOUtils {

 boolean readGetBody = r . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . READ_GET_BODY , false ) ;
 if ( ! readGetBody && AtmosphereResourceImpl . class . cast ( r ) . getRequest ( false ) . getMethod ( ) . equalsIgnoreCase ( STRING0 ) ) {
 - logger . warn ( STRING1 , ApplicationConfig . READ_GET_BODY ) ;
 + logger . debug ( STRING1 , ApplicationConfig . READ_GET_BODY ) ;
 return stringBuilder ;
 }

 <nb> public class IOUtils {

 boolean readGetBody = r . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . READ_GET_BODY , false ) ;
 if ( ! readGetBody && AtmosphereResourceImpl . class . cast ( r ) . getRequest ( false ) . getMethod ( ) . equalsIgnoreCase ( STRING0 ) ) {
 - logger . warn ( STRING1 , ApplicationConfig . READ_GET_BODY ) ;
 + logger . debug ( STRING1 , ApplicationConfig . READ_GET_BODY ) ;
 return new byte [ NUMBER0 ] ;
 }

Change the log level as this get quite annoying when another framework is using it