<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public interface MavenDeployer extends MavenResolver {
 COMMENT
 COMMENT
 COMMENT
 - void addProtocolProviderJars ( List < File > jars ) ;
 + void addProtocolProviderJars ( Collection < File > jars ) ;

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

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

 COMMENT
 <nb> public class BaseMavenDeployer extends AbstractMavenResolver implements MavenDep
 this . deployTaskFactory = deployTaskFactory ;
 }

 - public void addProtocolProviderJars ( List < File > jars ) {
 + public void addProtocolProviderJars ( Collection < File > jars ) {
 protocolProviderJars . addAll ( jars ) ;
 }

Changed providerJars from List to Collection


<nb> public class NotificationService {

 public void pushFromBacklog ( final Message message ) {
 if ( notify ( message ) ) {
 - pushToStack ( message ) ;
 + synchronized ( notifications ) {
 + pushToStack ( message ) ;
 + }
 }
 }

added missing synchronize when pushing messages from mam backlog


<nb> public class SessionManagementFilter extends SpringSecurityFilter {
 } else {
 SINGLE
 if ( request . getRequestedSessionId ( ) != null && ! request . isRequestedSessionIdValid ( ) ) {
 - invalidSessionRequested ( request , response ) ;
 + if ( invalidSessionUrl != null ) {
 + response . sendRedirect ( invalidSessionUrl ) ;
 + }
 }
 }
 }
 <nb> public class SessionManagementFilter extends SpringSecurityFilter {
 chain . doFilter ( request , response ) ;
 }

 - protected void invalidSessionRequested ( HttpServletRequest request , HttpServletResponse response ) throws IOException {
 - if ( invalidSessionUrl != null ) {
 - response . sendRedirect ( invalidSessionUrl ) ;
 - }
 - }
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SessionManagementFilter extends SpringSecurityFilter {
 this . sessionStrategy = sessionStrategy ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setInvalidSessionUrl ( String sessionTimeoutUrl ) {
 this . invalidSessionUrl = sessionTimeoutUrl ;
 }

Simplified implementation by removing template method


<nb> public class RestPermissions {
 public static final String ROLES_READ = STRING0 ;
 public static final String ROLES_EDIT = STRING1 ;
 public static final String ROLES_DELETE = STRING2 ;
 + public static final String CLUSTER_CONFIG_ENTRY_CREATE = STRING3 ;
 + public static final String CLUSTER_CONFIG_ENTRY_READ = STRING4 ;
 + public static final String CLUSTER_CONFIG_ENTRY_EDIT = STRING5 ;
 + public static final String CLUSTER_CONFIG_ENTRY_DELETE = STRING6 ;

 SINGLE
 public static final Set < String > READER_BASE_PERMISSIONS = ImmutableSet . < String > builder ( ) . add (


<nb> public abstract class InspectionProfileEntry implements BatchSuppressableTool {
 for ( Language language : viewProvider . getLanguages ( ) ) {
 ContainerUtil . addIfNotNull ( suppressors , LanguageInspectionSuppressors . INSTANCE . forLanguage ( language ) ) ;
 }
 + ContainerUtil . addIfNotNull ( suppressors , LanguageInspectionSuppressors . INSTANCE . forLanguage ( element . getLanguage ( ) ) ) ;
 return suppressors ;
 }
 return Collections . singleton ( LanguageInspectionSuppressors . INSTANCE . forLanguage ( element . getLanguage ( ) ) ) ;

Retrieve suppression actions in template languages for embedded tokens


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class Bug_for_smoothrat8 extends TestCase {

 public void test_set ( ) throws Exception {
 - Map < Integer , Object > map = new HashMap < Integer , Object > ( ) ;
 + Map < Integer , Object > map = new LinkedHashMap < Integer , Object > ( ) ;
 map . put ( NUMBER0 , STRING0 ) ;
 map . put ( NUMBER1 , STRING1 ) ;

 <nb> public class Bug_for_smoothrat8 extends TestCase {

 String text = JSON . toJSONString ( entity , SerializerFeature . WriteClassName ) ;
 System . out . println ( text ) ;
 - Assert . assertEquals ( STRING2 ,
 + Assert . assertEquals ( STRING3 ,
 text ) ;

 Entity entity2 = JSON . parseObject ( text , Entity . class ) ;

Fixed com alibaba json bvt bug Bug_for_smoothrat8 to not rely on unguarenteed order


<nb> public abstract class TitanBlueprintsTransaction implements TitanTransaction {
 if ( id instanceof Number && AttributeUtil . isWholeNumber ( ( Number ) id ) ) {
 return addVertex ( ( ( Number ) id ) . longValue ( ) ) ;
 } else {
 - if ( id != null ) log . warn ( STRING0 , id ) ;
 + SINGLE
 return addVertex ( null ) ;
 }

 <nb> public class StandardTitanTx extends TitanBlueprintsTransaction {
 public TitanVertex addVertex ( Long vertexId ) {
 verifyWriteAccess ( ) ;
 if ( vertexId != null && ! graph . getConfiguration ( ) . allowVertexIdSetting ( ) ) {
 - log . warn ( STRING1 , vertexId ) ;
 + log . info ( STRING1 , vertexId ) ;
 vertexId = null ;
 }
 Preconditions . checkArgument ( vertexId != null || ! graph . getConfiguration ( ) . allowVertexIdSetting ( ) , STRING2 ) ;

Removed warning so that Titan silently ignores passed in ids


<nb> public class TaskExecutorService extends AbstractService implements Scheduler < Ta
 task . getRequestId ( ) , task . getTaskRunnerCallable ( ) . canFinish ( ) ,
 preemptionQueue . size ( ) , numSlotsAvailable . get ( ) , waitQueue . size ( ) ) ;
 }
 - if ( numSlotsAvailable . get ( ) == NUMBER0 && preemptionQueue . isEmpty ( ) ) {
 + if ( numSlotsAvailable . get ( ) == NUMBER0 && ( enablePreemption == false || preemptionQueue . isEmpty ( ) ) ) {
 shouldWait = true ;
 }
 } else {

When pre emption is disabled task scheduler gets into loop Prasanth Jayachandran reviewed by Gopal V


<nb> public class Person {
 String lastName = json . optString ( STRING0 ) ;
 String displayName = json . optString ( STRING1 ) ;
 String avatarUrl = json . optString ( STRING2 ) ;
 + SINGLE
 Role role = Role . fromKey ( json . optJSONArray ( STRING3 ) . optString ( NUMBER0 ) ) ;

 return new Person ( personID , localTableBlogId , username , firstName , lastName , displayName , avatarUrl , role ) ;

Adds a comment which explains why we pick the first role from network response


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AdminConsolePlugin implements Plugin {
 adminPort = JiveGlobals . getXMLProperty ( STRING0 , NUMBER0 ) ;
 adminSecurePort = JiveGlobals . getXMLProperty ( STRING1 , NUMBER1 ) ;
 adminServer = new Server ( ) ;
 + SINGLE
 + adminServer . setSendServerVersion ( false ) ;

 SINGLE
 if ( adminPort > NUMBER2 ) {


<nb> public final class ActivityManagerService extends ActivityManagerNative
 SystemProperties . set ( STRING0 , STRING1 ) ;
 }

 - public long inputDispatchingTimedOut ( int pid , boolean aboveSystem ) {
 + public long inputDispatchingTimedOut ( int pid , final boolean aboveSystem ) {
 if ( checkCallingPermission ( android . Manifest . permission . FILTER_EVENTS )
 != PackageManager . PERMISSION_GRANTED ) {
 throw new SecurityException ( STRING2
 <nb> public final class ActivityManagerService extends ActivityManagerNative
 }

 if ( proc != null ) {
 - appNotResponding ( proc , null , null , aboveSystem , STRING3 ) ;
 + final ProcessRecord pr = proc ;
 + mHandler . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + appNotResponding ( pr , null , null , aboveSystem , STRING3 ) ;
 + }
 + } ) ;
 if ( proc . instrumentationClass != null || proc . usingWrapper ) {
 return INSTRUMENTATION_KEY_DISPATCHING_TIMEOUT ;
 }

Move stack dump off of InputDispatcher thread


<nb> public class ServerTestUtils {
 props . put ( STRING0 , STRING1 ) ;

 VoldemortConfig config = new VoldemortConfig ( props ) ;
 -
 - config = new VoldemortConfig ( props ) ;
 config . setMysqlDatabaseName ( STRING2 ) ;
 config . setMysqlUsername ( STRING2 ) ;
 config . setMysqlPassword ( STRING2 ) ;

Remove redundant VoldemortConfig allocation


<nb> public class CacheManagingDrawTask extends DrawTask {
 return NUMBER0 ;
 }
 long startTime = System . currentTimeMillis ( ) ;
 - IDanmakus danmakus = danmakuList . subnew ( curr , end ) ;
 + IDanmakus danmakus = null ;
 + synchronized ( danmakuList ) {
 + danmakus = danmakuList . subnew ( curr , end ) ;
 + }
 if ( danmakus == null || danmakus . isEmpty ( ) ) {
 mCacheTimer . update ( end ) ;
 return NUMBER0 ;


<nb> public final class Main implements ActionListener {
 setTrayIcon ( ) ;
 tray . add ( trayIcon ) ;
 } catch ( AWTException e1 ) {
 - SINGLE
 Tools . showError ( e1 ) ;
 }
 }
 <nb> public final class Main implements ActionListener {
 try {
 final HTTPServerConfig serverConfig = new HTTPServerConfig ( config . getServerPort ( ) , false ) ;
 httpServer = new HTTPServer ( serverConfig , true ) ;
 - httpServer . run ( ) ;
 + httpServer . run ( ) ;
 if ( enableHttpServerItem != null ) {
 enableHttpServerItem . setState ( httpServer . isRunning ( ) ) ;
 setTrayIcon ( ) ;

remove misleading comment getSystemTray actually throws that exception earlier


<nb> class WiredAccessoryObserver extends UEventObserver {
 try {
 FileReader file = new FileReader ( uEventInfo [ i ] [ NUMBER0 ] ) ;
 int len = file . read ( buffer , NUMBER1 , NUMBER2 ) ;
 + file . close ( ) ;
 newState = Integer . valueOf ( ( new String ( buffer , NUMBER1 , len ) ) . trim ( ) ) ;

 file = new FileReader ( uEventInfo [ i ] [ NUMBER3 ] ) ;
 len = file . read ( buffer , NUMBER1 , NUMBER2 ) ;
 + file . close ( ) ;
 newName = new String ( buffer , NUMBER1 , len ) . trim ( ) ;

 } catch ( FileNotFoundException e ) {

Fixing CloseGuard reported issue in WiredAccessoryObserver


<nb> public final class ManageRegisteredServicesMultiActionController extends MultiAc

 final String evalOrderAsString = request . getParameter ( STRING0 ) ;
 if ( ! GenericValidator . isLong ( evalOrderAsString ) ) {
 - response . setStatus ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ;
 throw new IllegalArgumentException ( STRING1 + evalOrderAsString ) ;
 }

Removed the line that manually set the response status code


<nb> public class TransportClusterUpdateSettingsAction extends TransportMasterNodeOpe
 }

 if ( ! changed ) {
 + latch . countDown ( ) ;
 return currentState ;
 }

count down latch if we don t have any changes in cluster update settings


<nb> public class Notification implements Parcelable

 static Message getMessageFromBundle ( Bundle bundle ) {
 try {
 - if ( ! bundle . containsKey ( KEY_TEXT ) || ! bundle . containsKey ( KEY_TIMESTAMP ) ||
 - ! bundle . containsKey ( KEY_SENDER ) ) {
 + if ( ! bundle . containsKey ( KEY_TEXT ) || ! bundle . containsKey ( KEY_TIMESTAMP ) ) {
 return null ;
 } else {
 Message message = new Message ( bundle . getCharSequence ( KEY_TEXT ) ,


<nb> public class CordovaActivity extends Activity implements CordovaInterface {
 COMMENT
 COMMENT
 public Object onMessage ( String id , Object data ) {
 - LOG . d ( TAG , STRING0 + id + STRING1 + data + STRING2 ) ;
 + if ( ! STRING3 . equals ( id ) ) {
 + LOG . d ( TAG , STRING0 + id + STRING1 + data + STRING2 ) ;
 + }
 +
 if ( STRING4 . equals ( id ) ) {
 if ( STRING5 . equals ( data . toString ( ) ) ) {
 this . removeSplashScreen ( ) ;
 <nb> public class CordovaActivity extends Activity implements CordovaInterface {
 }
 }
 }
 -

Silence excessive logging from scroll events


<nb> public class NioEndpoint extends AbstractEndpoint {
 cancelledKey ( sk , SocketStatus . STOP ) ;
 } else if ( sk . isValid ( ) && attachment != null ) {
 attachment . access ( ) ; SINGLE
 - sk . attach ( attachment ) ; SINGLE
 NioChannel channel = attachment . getChannel ( ) ;
 if ( sk . isReadable ( ) || sk . isWritable ( ) ) {
 if ( attachment . getSendfileData ( ) != null ) {


<nb> public abstract class Graylog2Module extends AbstractModule {
 return ;
 }

 - install ( new FactoryModuleBuilder ( ) . implement ( MessageInput . class , target ) . build ( factoryClass ) ) ;
 - inputMapBinder . addBinding ( target . getCanonicalName ( ) ) . to ( Key . get ( factoryClass ) ) ;
 + installInput ( inputMapBinder , target , factoryClass ) ;
 }

 protected MapBinder < String , MessageOutput . Factory < ? extends MessageOutput > > outputsMapBinder ( ) {

Remove code duplication in Graylog2Module installInput


<nb> public class XMLRuleHandler extends DefaultHandler {
 message . append ( STRING0 ) ;
 message . append ( attrs . getValue ( STRING1 ) ) ;
 checkNumber ( attrs ) ;
 - } else if ( inSuggestion && ! inMessage ) {
 + } else if ( inSuggestion ) {
 if ( suggestionMatchesOutMsg == null ) {
 suggestionMatchesOutMsg = new ArrayList < > ( ) ;
 }


<nb> public class ListOption extends TextOption {
 COMMENT
 @ notnull
 public String toString ( ) {
 - StringBuffer res = new StringBuffer ( ) ;
 - res . append ( STRING0 ) ;
 - res . append ( getName ( ) ) ;
 - res . append ( STRING1 ) ;
 - res . append ( getValue ( ) ) ;
 -
 - return res . toString ( ) ;
 + return STRING0 + getName ( ) + STRING1 + getValue ( ) ;
 }

 @ notnull protected final List < String > dflt ;

Replaced StringBuilder with string concatenation


<nb> static Symbol registerArg ( int n ) {
 static class ArgReader extends AFn {
 public Object invoke ( Object reader , Object pct ) throws Exception {
 PushbackReader r = ( PushbackReader ) reader ;
 + if ( ARG_ENV . deref ( ) == null )
 + {
 + return interpretToken ( readToken ( r , STRING0 ) ) ;
 + }
 int ch = r . read ( ) ;
 unread ( r , ch ) ;
 SINGLE


<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
 return ;
 }

 - LOG . assertTrue ( myTestModeFlag || ! Thread . holdsLock ( PsiLock . LOCK ) , STRING0 ) ;
 + LOG . assertTrue ( ! Thread . holdsLock ( PsiLock . LOCK ) , STRING0 ) ;
 try {
 myActionsLock . readLock ( ) . acquire ( ) ;
 }

must not hold PsiLock in readAction in tests


<nb> class GuidedActionAdapter extends RecyclerView . Adapter {
 }
 } else {
 if ( mSelectedView == v ) {
 + mStylist . onAnimateItemPressed ( avh . mStylistViewHolder , false ) ;
 mSelectedView = null ;
 }
 }

undo pressed animation when losing focus


<nb> public class MetaDataService extends AbstractComponent {
 if ( ! ignoreConflicts && mergeResult . hasConflicts ( ) ) {
 throw new MergeMappingException ( mergeResult . conflicts ( ) ) ;
 }
 - existingMappers . put ( index , newMapper ) ;
 + existingMappers . put ( index , existingMapper ) ;
 }
 } else {
 throw new IndexMissingException ( new Index ( index ) ) ;


<nb> public class RoutedStore implements Store < ByteArray , byte [ ] > {
 try {
 GetAllResult getResult = f . get ( ) ;
 if ( getResult . exception != null ) {
 + if ( getResult . exception instanceof VoldemortApplicationException ) {
 + throw ( VoldemortException ) getResult . exception ;
 + }
 failures . add ( getResult . exception ) ;
 continue ;
 }
 <nb> public class RoutedStore implements Store < ByteArray , byte [ ] > {
 try {
 GetResult < R > getResult = f . get ( ) ;
 if ( getResult . exception != null ) {
 + SINGLE
 + if ( getResult . exception instanceof VoldemortApplicationException ) {
 + throw ( VoldemortException ) getResult . exception ;
 + }
 failures . add ( getResult . exception ) ;
 continue ;
 }

Added VoldemortApplicationException handling inside GetCallable GetAllCallable


<nb> public class FormattedEmailAlertSender extends StaticEmailAlertSender implements
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 +
 + STRING4 +
 STRING5 +
 STRING6 +
 STRING7 +
 <nb> public class StaticEmailAlertSender implements AlertSender {
 }

 protected String buildStreamDetailsURL ( URI baseUri , AlertCondition . CheckResult checkResult , Stream stream ) {
 + SINGLE
 + if ( baseUri == null ) {
 + return STRING8 ;
 + }
 +
 StringBuilder sb = new StringBuilder ( ) ;

 int time = NUMBER0 ;

Do not include stream URL in email if web URL is not configured


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GoModuleLibrariesInitializer implements ModuleComponent {
 ApplicationManager . getApplication ( ) . invokeLater ( updateRequest ) ;
 }
 else {
 - myAlarm . addRequest ( updateRequest , delay ) ;
 + myAlarm . addRequest ( updateRequest , delay , ModalityState . NON_MODAL ) ;
 }
 }


<nb> class DBTCPConnector implements DBConnector {
 return _curAddress ;
 }

 + public List < ServerAddress > getAllAddress ( ) {
 + return _allHosts ;
 + }
 +
 public String getConnectPoint ( ) {
 return _curAddress . toString ( ) ;
 }
 <nb> public class Mongo {
 public ServerAddress getAddress ( ) {
 return _connector . getAddress ( ) ;
 }
 +
 + public List < ServerAddress > getAllAddress ( ) {
 + List < ServerAddress > result = _connector . getAllAddress ( ) ;
 + if ( result == null ) {
 + return Arrays . asList ( getAddress ( ) ) ;
 + }
 + return result ;
 + }

 final ServerAddress _addr ;
 final List < ServerAddress > _addrs ;

add ability to return the currently used server addresses


<nb> public abstract class MediaplayerActivity extends ActionBarActivity
 @ override
 public void onProgressChanged ( SeekBar seekBar , int progress ,
 boolean fromUser ) {
 - prog = controller . onSeekBarProgressChanged ( seekBar , progress , fromUser ,
 - txtvPosition ) ;
 + if ( controller != null ) {
 + prog = controller . onSeekBarProgressChanged ( seekBar , progress , fromUser ,
 + txtvPosition ) ;
 + }
 }

 @ override
 public void onStartTrackingTouch ( SeekBar seekBar ) {
 - controller . onSeekBarStartTrackingTouch ( seekBar ) ;
 + if ( controller != null ) {
 + controller . onSeekBarStartTrackingTouch ( seekBar ) ;
 + }
 }

 @ override
 public void onStopTrackingTouch ( SeekBar seekBar ) {
 - controller . onSeekBarStopTrackingTouch ( seekBar , prog ) ;
 + if ( controller != null ) {
 + controller . onSeekBarStopTrackingTouch ( seekBar , prog ) ;
 + }
 }

 }

Fixed NullPointerException in MediaPlayerActivity


<nb> public final class JerseyBroadcasterUtil {
 if ( cr == null ) {
 logger . debug ( STRING0 , res , cr ) ;
 logger . error ( STRING1 ) ;
 + r . getBroadcaster ( ) . removeAtmosphereResource ( r ) ;
 return ;
 }

Remove the AtmosphereResource in case something goes wrong


<nb> public class DnsDiscovery implements PeerDiscovery {

 private String [ ] hostNames ;
 private NetworkParameters netParams ;
 - private static final String [ ] defaultHosts = new String [ ] { STRING0 , STRING1 } ;
 +
 + public static final String [ ] defaultHosts = new String [ ] {
 + STRING2 , SINGLE
 + STRING0 , SINGLE
 + STRING1 SINGLE
 + } ;

 COMMENT
 COMMENT

Add dnsseed bluematt me to the DNS discovery list


<nb> public class StandardTitanTx extends TitanBlueprintsTransaction implements TypeI
 }

 public TitanProperty setProperty ( TitanVertex vertex , final TitanKey key , Object value ) {
 + verifyWriteAccess ( vertex ) ;
 Preconditions . checkNotNull ( key ) ;
 Preconditions . checkArgument ( key . isUnique ( Direction . OUT ) , STRING0 , key . getName ( ) ) ;


<nb> public interface Texture
 public enum TextureWrap
 {
 ClampToEdge ,
 - Wrap
 + Repeat
 }

 COMMENT


<nb> public class UserDataProperty extends PropertySupport . ReadWrite < String > {
 } else if ( type instanceof Long ) {
 return NUMBER0 ;
 } else {
 - Logger . getLogger ( UserDataProperty . class . getName ( ) ) . log ( Level . WARNING , STRING0 + ( type == null ? STRING1 : type . getClass ( ) ) ) ;
 + SINGLE
 return - NUMBER1 ;
 }
 }

Stopped the not editable Userdata warning to show up


<nb> public class ManagedShutdownStrategyTest extends ContextTestSupport {
 }

 public void testManagedShutdownStrategy ( ) throws Exception {
 + SINGLE
 + context . getShutdownStrategy ( ) . setTimeout ( NUMBER0 ) ;
 +
 MBeanServer mbeanServer = context . getManagementStrategy ( ) . getManagementAgent ( ) . getMBeanServer ( ) ;

 ObjectName on = ObjectName . getInstance ( STRING0 ) ;


<nb> public abstract class AbstractPartialInstant implements PartialInstant , Serializ
 public AbstractPartialInstant ( Object instant , Chronology chronology ) {
 super ( ) ;
 InstantConverter converter = ConverterManager . getInstance ( ) . getInstantConverter ( instant ) ;
 + chronology = converter . getChronology ( instant , chronology ) ;
 if ( chronology == null ) {
 chronology = ISOChronology . getInstance ( ) ;
 }

Fix ObjectChronology constructor to use converter properly


<nb> public abstract class ZWaveCommandClass {
 MULTI_INSTANCE ( NUMBER0 , STRING0 , ZWaveMultiInstanceCommandClass . class ) ,
 DOOR_LOCK ( NUMBER1 , STRING1 , null ) ,
 USER_CODE ( NUMBER2 , STRING2 , null ) ,
 - CONFIGURATION ( NUMBER3 , STRING3 , null ) ,
 + CONFIGURATION ( NUMBER3 , STRING3 , ZWaveConfigurationCommandClass . class ) ,
 ALARM ( NUMBER4 , STRING4 , null ) ,
 MANUFACTURER_SPECIFIC ( NUMBER5 , STRING5 , ZWaveManufacturerSpecificCommandClass . class ) ,
 POWERLEVEL ( NUMBER6 , STRING6 , null ) ,


<nb> public class ExpressionAnalyzer
 getCaseResultExpressions ( node . getWhenClauses ( ) , node . getDefaultValue ( ) ) ) ;
 expressionTypes . put ( node , type ) ;

 + for ( WhenClause whenClause : node . getWhenClauses ( ) ) {
 + Type whenClauseType = process ( whenClause . getResult ( ) , context ) ;
 + checkNotNull ( whenClauseType , STRING0 , whenClause ) ;
 + expressionTypes . put ( whenClause , whenClauseType ) ;
 + }
 +
 return type ;
 }

 <nb> public class ExpressionAnalyzer
 getCaseResultExpressions ( node . getWhenClauses ( ) , node . getDefaultValue ( ) ) ) ;
 expressionTypes . put ( node , type ) ;

 + for ( WhenClause whenClause : node . getWhenClauses ( ) ) {
 + Type whenClauseType = process ( whenClause . getResult ( ) , context ) ;
 + checkNotNull ( whenClauseType , STRING0 , whenClause ) ;
 + expressionTypes . put ( whenClause , whenClauseType ) ;
 + }
 +
 return type ;
 }

Record type of WhenClause in ExpressionAnalyzer


<nb> public class MultiUserChatTest extends SmackTestCase {
 muc2 . join ( STRING0 , null , history , SmackConfiguration . getPacketReplyTimeout ( ) ) ;

 Message msg ;
 - SINGLE
 - muc2 . nextMessage ( NUMBER0 ) ;
 - SINGLE
 + SINGLE
 msg = muc2 . nextMessage ( NUMBER0 ) ;
 assertNotNull ( STRING1 , msg ) ;
 assertEquals ( STRING2 , STRING3 , msg . getBody ( ) ) ;
 <nb> public class MultiUserChatTest extends SmackTestCase {
 history . setMaxStanzas ( NUMBER1 ) ;
 muc3 . join ( STRING4 , null , history , SmackConfiguration . getPacketReplyTimeout ( ) ) ;

 - SINGLE
 - muc3 . nextMessage ( NUMBER0 ) ;
 SINGLE
 msg = muc3 . nextMessage ( NUMBER0 ) ;
 assertNotNull ( STRING1 , msg ) ;

Removed welcome message from testDiscussionHistory since the server no longer sends that message


<nb> public class ReaderPostDetailFragment extends Fragment
 TextView txtTitle = ( TextView ) getView ( ) . findViewById ( R . id . text_title ) ;
 TextView txtDateline = ( TextView ) getView ( ) . findViewById ( R . id . text_dateline ) ;

 - WPNetworkImageView imgBlavatar = ( WPNetworkImageView ) getView ( ) . findViewById ( R . id . image_blavatar ) ;
 ReaderTagStrip tagStrip = ( ReaderTagStrip ) getView ( ) . findViewById ( R . id . tag_strip ) ;
 ReaderPostDetailHeaderView headerView = ( ReaderPostDetailHeaderView ) getView ( ) . findViewById ( R . id . header_view ) ;
 if ( ! canShowFooter ( ) ) {


<nb> public class TestShaderNodes extends SimpleApplication {
 mat . selectTechnique ( STRING0 , renderManager ) ;
 Technique t = mat . getActiveTechnique ( ) ;

 - for ( Shader . ShaderSource shaderSource : t . getShader ( ) . getSources ( ) ) {
 - System . out . println ( shaderSource . getSource ( ) ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE

 mat . setColor ( STRING1 , ColorRGBA . Yellow ) ;


<nb> public class GraphHopperWeb implements GraphHopperAPI
 + STRING0 + request . getHint ( STRING1 , NUMBER0 )
 + STRING2 + request . getAlgorithm ( )
 + STRING3 + request . getLocale ( ) . toString ( )
 - + STRING4 + request . getVehicle ( )
 + STRING5 + withElevation ;
 +
 + if ( ! request . getVehicle ( ) . isEmpty ( ) )
 + url += STRING4 + request . getVehicle ( ) ;
 +
 if ( ! key . isEmpty ( ) )
 url += STRING6 + key ;

Fixed travis error on an empty vehicleStr


<nb> public class Application extends ActorSDKApplication {
 ActorSDK . sharedActor ( ) . setHomePage ( STRING0 ) ;
 ActorSDK . sharedActor ( ) . setInviteUrl ( STRING0 ) ;

 - ActorSDK . sharedActor ( ) . setEndpoints ( new String [ ] { STRING1 } ) ;
 -
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE

 ActorStyle style = ActorSDK . sharedActor ( ) . style ;
 style . setMainColor ( Color . parseColor ( STRING2 ) ) ;


<nb> public class StringAndPartitionAwarePartitioningStrategy implements Partitioning
 public final static StringAndPartitionAwarePartitioningStrategy INSTANCE
 = new StringAndPartitionAwarePartitioningStrategy ( ) ;

 + SINGLE
 + private StringAndPartitionAwarePartitioningStrategy ( ) { }
 +
 @ override
 public Object getPartitionKey ( Object key ) {
 if ( key instanceof String ) {

Made a Singleton out of the StringAndPartitionAwarePartitioningStrategy


<nb> class ConfigurationClassParser {
 throw new IllegalArgumentException ( STRING0 ) ;
 }
 for ( int i = NUMBER0 ; i < nLocations ; i ++ ) {
 - locations [ NUMBER0 ] = this . environment . resolveRequiredPlaceholders ( locations [ NUMBER0 ] ) ;
 + locations [ i ] = this . environment . resolveRequiredPlaceholders ( locations [ i ] ) ;
 }
 ClassLoader classLoader = this . resourceLoader . getClassLoader ( ) ;
 if ( ! StringUtils . hasText ( name ) ) {

Fix regression in PropertySource placeholder resolution


<nb> public class GroovyDslScript {
 }

 private boolean handleDslError ( Throwable e ) {
 - LOG . error ( e ) ;
 if ( project . isDisposed ( ) || ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 return true ;
 }

don t log error exceptions during gdsl processing only info


<nb> public class DownloadManager {
 COMMENT
 public static final int NETWORK_WIFI = NUMBER0 < < NUMBER0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final int NETWORK_BLUETOOTH = NUMBER0 < < NUMBER1 ;
 +
 private Uri mUri ;
 private Uri mDestinationUri ;
 private List < Pair < String , String > > mRequestHeaders = new ArrayList < Pair < String , String > > ( ) ;


<nb> public class Unifier {
 return null ;
 }
 List < AnalyzedTokenReadings > uTokens = new ArrayList < > ( ) ;
 + int counter = NUMBER0 ;
 for ( int j = NUMBER0 ; j < tokSequence . size ( ) ; j ++ ) {
 for ( int i = NUMBER0 ; i < tokSequenceEquivalences . get ( j ) . size ( ) ; i ++ ) {
 int featUnified = NUMBER0 ;
 <nb> public class Unifier {
 featUnified = NUMBER0 ;
 } else {
 featUnified ++ ;
 - }
 + } SINGLE
 + SINGLE
 + SINGLE
 if ( featUnified == unificationFeats . entrySet ( ) . size ( ) ) {
 addTokenToSequence ( uTokens , tokSequence . get ( j ) . getAnalyzedToken ( i ) , j ) ;
 }


<nb> public class RawLogBuffersFactory implements AutoCloseable
 return newInstance ( subscriptionsDir , channel , sessionId , streamId , correlationId , termBufferLength ) ;
 }

 - private FileChannel createTemplateFile ( final String dataDir , final String name , final long size )
 + private static FileChannel createTemplateFile ( final String dataDir , final String name , final long size )
 {
 final File templateFile = new File ( dataDir , name ) ;
 templateFile . deleteOnExit ( ) ;

Java Made method static to avoid this need


<nb> public class KillbillGuiceListener extends SetupServer
 return new KillbillServerModule ( ) ;
 }

 +
 +
 @ override
 public void contextInitialized ( ServletContextEvent event )
 {
 <nb>

 package NAMESPACE ;

 +
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class KillbillServerModule extends AbstractModule
 installKillbillModules ( ) ;
 }

 +
 protected void configureDao ( ) {
 + SINGLE
 + try {
 + Class . forName ( STRING0 ) . newInstance ( ) ;
 + } catch ( Exception ignore ) {
 + }
 bind ( IDBI . class ) . to ( DBI . class ) . asEagerSingleton ( ) ;
 bind ( DBI . class ) . toProvider ( DBIProvider . class ) . asEagerSingleton ( ) ;
 }

Add initialization for mysql driver in server module


<nb> public abstract class PanelView extends FrameLayout {
 boolean expandBecauseOfFalsing ) {
 cancelPeek ( ) ;
 float target = expand ? getMaxPanelHeight ( ) : FLOAT0 ;
 + if ( ! expand ) {
 + mClosing = true ;
 + }
 flingToHeight ( vel , expand , target , collapseSpeedUpFactor , expandBecauseOfFalsing ) ;
 }


<nb> public class Response

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 protected Connector connector ;


<nb> public class NotSoMiniClusterIterations {
 config . setInteger ( STRING0 , NUMBER0 ) ;

 cluster = new LocalFlinkMiniCluster ( config , false ) ;
 + cluster . start ( ) ;

 runConnectedComponents ( cluster . getLeaderRPCPort ( ) ) ;
 }
 <nb> public class StreamingScalabilityAndLatency {
 config . setInteger ( STRING0 , NUMBER0 ) ;

 cluster = new LocalFlinkMiniCluster ( config , false , StreamingMode . STREAMING ) ;
 + cluster . start ( ) ;

 runPartitioningProgram ( cluster . getLeaderRPCPort ( ) , PARALLELISM ) ;
 }

hotfix tests Fix manual tests to properly start testing cluster


<nb> public class ShadowActivity extends ShadowContextWrapper {
 return contentView . findViewById ( id ) ;
 } else {
 System . out . println ( STRING0 ) ;
 + Thread . dumpStack ( ) ;
 return null ;
 }
 }

Added Thread dumpStack to warning from ShadowActivity findViewById when contentView is null


<nb> public class DashboardWidgetCreator {
 final TimeRange timeRange ;
 switch ( rangeType ) {
 case STRING0 :
 - timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING1 ) ) ) ) ;
 + timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING0 ) ) ) ) ;
 break ;
 case STRING2 :
 timeRange = new KeywordRange ( ( String ) timerangeConfig . get ( STRING2 ) ) ;

Use relative key to get relative timerange info


<nb> public class OutgoingServerSession extends Session {
 COMMENT
 COMMENT
 public static boolean authenticateDomain ( String domain , String hostname ) {
 + if ( hostname == null || hostname . length ( ) == NUMBER0 ) {
 + SINGLE
 + return false ;
 + }
 try {
 SINGLE
 SINGLE

Do not create outgoing connection if hostname is empty or null


<nb> public final class CommonCrawlNGramJob {

 public static void main ( String [ ] args ) throws Exception {
 Configuration conf = new Configuration ( ) ;
 - conf . set ( STRING0 , STRING1 ) ;
 + SINGLE
 + SINGLE
 Job job = Job . getInstance ( conf , STRING2 ) ;
 job . setJarByClass ( CommonCrawlNGramJob . class ) ;
 job . setMapperClass ( TokenizerMapper . class ) ;

comment out the xz compression as I got an Unexpected end of stream error in Amazon EMR with


<nb> abstract class AbstractTFS extends FileSystem {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DuplicateVariableInsertTest extends PluggableActivitiTestCase {

 SINGLE
 assertEquals ( NUMBER0 , exceptions . size ( ) ) ;
 - assertTrue ( exceptions . get ( NUMBER1 ) instanceof ActivitiOptimisticLockingException ) ;

 SINGLE
 Map < String , Object > variables = runtimeService . getVariables ( processInstance . getId ( ) ) ;

Fixing failing test for duplicate variable inserts


<nb> public class WiederVsWiderRule extends GermanRule {
 if ( token . trim ( ) . equals ( STRING0 ) ) {
 SINGLE
 } else {
 - if ( token . equalsIgnoreCase ( STRING1 ) || token . equalsIgnoreCase ( STRING2 ) ) {
 + if ( token . equalsIgnoreCase ( STRING1 ) || token . equalsIgnoreCase ( STRING2 ) || token . equalsIgnoreCase ( STRING3 )
 + || token . equalsIgnoreCase ( STRING4 ) ) {
 foundSpiegelt = true ;
 } else if ( token . equalsIgnoreCase ( STRING5 ) ) {
 foundWieder = true ;


<nb> public class GzipUtils {
 private static class StringMatch implements Predicate < String > {
 @ override
 public boolean test ( String s ) {
 + if ( s == null ) {
 + return false ;
 + }
 +
 return s . contains ( GZIP ) ;
 }
 }


<nb> public class SASLAuthentication {
 StringBuilder reply = new StringBuilder ( NUMBER0 ) ;
 reply . append ( STRING0 ) ;
 if ( successData != null ) {
 - reply . append ( STRING1 ) . append ( successData ) . append ( STRING2 ) ;
 + String successData_b64 = StringUtils . encodeBase64 ( successData ) . trim ( ) ;
 + reply . append ( STRING1 ) . append ( successData_b64 ) . append ( STRING2 ) ;
 }
 else {
 reply . append ( STRING3 ) ;


<nb> public final class InstallDirect {
 SINGLE
 Shell . Builder builder = new Shell . Builder ( )
 . useSU ( )
 - . setOnSTDERRLineListener ( new StderrListener ( callback ) )
 - . addEnvironment ( STRING0 , STRING1 ) ;
 + . setOnSTDERRLineListener ( new StderrListener ( callback ) ) ;

 + Shell . Interactive shell = builder . open ( new OpenListener ( callback ) ) ;
 + shell . addCommand ( STRING2 ) ;
 if ( systemless ) {
 - builder . addEnvironment ( STRING3 , STRING1 ) ;
 + shell . addCommand ( STRING4 ) ;
 }
 -
 - Shell . Interactive shell = builder . open ( new OpenListener ( callback ) ) ;
 shell . addCommand ( getShellPath ( updateBinaryFile ) + STRING5 + getShellPath ( zipPath ) , NUMBER0 , new StdoutListener ( callback ) ) ;
 shell . addCommand ( STRING6 ) ;
 }

Improve compatibility with su implementations


<nb> public class FqNameUnsafe {

 private void validateFqName ( ) {
 - if ( fqName . indexOf ( STRING0 ) >= NUMBER0 ) {
 + if ( fqName . indexOf ( STRING0 ) >= NUMBER0 || fqName . indexOf ( STRING1 ) >= NUMBER0 ) {
 throw new IllegalArgumentException ( STRING2 + fqName ) ;
 }
 }


<nb> public class AuthToken {

 private static final long serialVersionUID = NUMBER0 ;
 private String username ;
 + private Boolean anonymous ;

 COMMENT
 COMMENT
 <nb> public class AuthToken {
 COMMENT
 COMMENT
 public boolean isAnonymous ( ) {
 - return username == null || ! UserManager . getInstance ( ) . isRegisteredUser ( username ) ;
 + if ( anonymous == null ) {
 + anonymous = username == null || ! UserManager . getInstance ( ) . isRegisteredUser ( username ) ;
 + }
 + return anonymous ;
 }
 }

Optimization keep info if user is anonymous


<nb> public class CsrfPreventionFilter extends FilterBase {
 public void setEntryPoints ( String entryPoints ) {
 String values [ ] = entryPoints . split ( STRING0 ) ;
 for ( String value : values ) {
 - this . entryPoints . add ( value ) ;
 + this . entryPoints . add ( value . trim ( ) ) ;
 }
 }

Trim the value before adding to the list


<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
 selectCurrentWord ( ) ;
 }

 - final InputMethodManager imm = ( InputMethodManager )
 - getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 - imm . showSoftInput ( this , NUMBER0 , null ) ;
 + if ( ! mTextIsSelectable ) {
 + SINGLE
 + final InputMethodManager imm = ( InputMethodManager )
 + getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
 + imm . showSoftInput ( this , NUMBER0 , null ) ;
 + }

 ActionMode . Callback actionModeCallback = new SelectionActionModeCallback ( ) ;
 mSelectionActionMode = startActionMode ( actionModeCallback ) ;

Do not display the IME when selection in non editable text


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 COMMENT


<nb> public abstract class GitPlatformTest extends PlatformTestCase {

 @ override
 protected void setUp ( ) throws Exception {
 - myTestRoot = new File ( FileUtil . getTempDirectory ( ) ) ;
 + myTestRoot = new File ( FileUtil . getTempDirectory ( ) , STRING0 ) ;
 myFilesToDelete . add ( myTestRoot ) ;

 edt ( new ThrowableRunnable ( ) {

git place testRoot into a subfolder of the temp directory


<nb> public final class GraphVisualizer {
 sourceBinding . getDependencies ( dependencies , dependencies ) ;
 for ( Binding < ? > targetBinding : dependencies ) {
 String targetName = namesIndex . get ( targetBinding ) ;
 + if ( targetName == null ) {
 + targetName = STRING0 + targetBinding . provideKey ;
 + }
 writer . edge ( sourceName , targetName ) ;
 }
 }

Fix dot writer from breaking when there are missing bindings


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

 COMMENT
 public static final int MAJOR ;


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

 - import static NAMESPACE ;
 -
 - public class ListSamples extends ActionBarActivity {
 + public class ListSamples extends AppCompatActivity {

 public static final String INTENT_PATH = STRING0 ;
 public static final String INTENT_SAMPLE = STRING1 ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProjectGenerator {

 private HashCode getHeaderSymlinkTreeHashCode ( ImmutableSortedMap < Path , Path > contents ) {
 Hasher hasher = Hashing . sha1 ( ) . newHasher ( ) ;
 + hasher . putBytes ( BuckVersion . getVersion ( ) . getBytes ( Charsets . UTF_8 ) ) ;
 for ( Map . Entry < Path , Path > entry : contents . entrySet ( ) ) {
 byte [ ] key = entry . getKey ( ) . toString ( ) . getBytes ( Charsets . UTF_8 ) ;
 byte [ ] value = entry . getValue ( ) . toString ( ) . getBytes ( Charsets . UTF_8 ) ;

Rebuild Xcode symlink trees on Buck version change


<nb> public class ForeignKey implements DatabaseObject , Comparable < ForeignKey > {

 ForeignKey that = ( ForeignKey ) o ;

 + if ( getForeignKeyColumns ( ) == null ) {
 + return this . getName ( ) . equalsIgnoreCase ( that . getName ( ) ) ;
 + }
 +
 return getForeignKeyColumns ( ) . equalsIgnoreCase ( that . getForeignKeyColumns ( ) )
 && foreignKeyTable . equals ( that . foreignKeyTable )
 && getPrimaryKeyColumns ( ) . equalsIgnoreCase ( that . getPrimaryKeyColumns ( ) )

I can t gen dbDoc from changeLog like this


<nb> public abstract class AbstractReplicatedMap < K , V >
 COMMENT
 COMMENT
 protected void memberAlive ( Member member ) {
 + mapMemberAdded ( member ) ;
 synchronized ( mapMembers ) {
 - if ( ! mapMembers . containsKey ( member ) ) {
 - mapMemberAdded ( member ) ;
 - } SINGLE
 mapMembers . put ( member , new Long ( System . currentTimeMillis ( ) ) ) ;
 }
 }

Fix a possible deadlock when receiver thread invokes mapMemberAdded while ping thread invokes memberAlive


<nb> public class ChannelFunctionFileChannel extends FileChannel {

 @ override
 public FileChannel position ( long newPosition ) throws IOException {
 - return new ChannelFunctionFileChannel ( channel . position ( newPosition ) , functions ) ;
 + channel . position ( newPosition ) ;
 + return this ;
 }

 @ override
 <nb> public class ChannelFunctionFileChannel extends FileChannel {

 @ override
 public FileChannel truncate ( long size ) throws IOException {
 - return new ChannelFunctionFileChannel ( channel . truncate ( size ) , functions ) ;
 + channel . truncate ( size ) ;
 + return this ;
 }

 @ override

Don t create new instances of FileChannel


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DiffContentFactoryImpl extends DiffContentFactory {
 @ notnull String name ,
 @ notnull FileType type ,
 @ notnull byte [ ] content ) throws IOException {
 - boolean useTemporalFile = true ; SINGLE
 - SINGLE
 + SINGLE
 + boolean useTemporalFile = type instanceof ArchiveFileType || BinaryFileTypeDecompilers . INSTANCE . forFileType ( type ) != null ;

 VirtualFile file ;
 if ( useTemporalFile ) {

do not create temp file to show diff for binary file


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DemoPlayer implements ExoPlayer . Listener , ChunkSampleSource . EventLi

 public void setSelectedTrack ( int type , int index ) {
 player . setSelectedTrack ( type , index ) ;
 + if ( type == TYPE_TEXT && index < NUMBER0 && captionListener != null ) {
 + captionListener . onCues ( Collections . < Cue > emptyList ( ) ) ;
 + }
 }

 public boolean getBackgrounded ( ) {

Hide captions when the track is disabled


<nb> public class NeuralNetConfiguration implements Serializable , Cloneable {
 }

 public MultiLayerConfiguration build ( ) {
 - if ( layerwise . size ( ) != hiddenLayerSizes . length + NUMBER0 )
 - throw new IllegalStateException ( STRING0 ) ;

 List < NeuralNetConfiguration > list = new ArrayList < > ( ) ;
 for ( int i = NUMBER1 ; i < layerwise . size ( ) ; i ++ ) {

Pulled error message because its a conflict for convolutional nets structure


<nb> public class OperationSetPersistentPresenceIrcImpl extends AbstractOperationSetP

 ContactGroupIrcImpl volatileGroup =
 new ContactGroupIrcImpl ( this . parentProvider , this . rootGroup ,
 - IrcActivator . getResources ( ) . getI18NString (
 - STRING0 ) ) ;
 + groupName ) ;

 this . rootGroup . addSubGroup ( volatileGroup ) ;

Re use earlier retrieved internationalization string


<nb> public class ScopeProvider {

 WritableScope writableScope = new WritableScopeImpl (
 JetScope . EMPTY , packageDescriptor , RedeclarationHandler . DO_NOTHING , STRING0 ) ;
 + writableScope . changeLockLevel ( WritableScope . LockLevel . BOTH ) ;

 NamespaceDescriptor rootPackageDescriptor = resolveSession . getPackageDescriptorByFqName ( FqName . ROOT ) ;
 if ( rootPackageDescriptor == null ) {
 <nb> public class ScopeProvider {
 resolveSession . getInjector ( ) . getQualifiedExpressionResolver ( ) ) ;

 writableScope . changeLockLevel ( WritableScope . LockLevel . READING ) ;
 -
 SINGLE
 return writableScope ;
 }


<nb> public class ShowcaseViews {
 return this ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void addAnimatedGestureToView ( int viewIndex , float offsetStartX , float offsetStartY , float offsetEndX , float offsetEndY ) throws IndexOutOfBoundsException {
 animations . remove ( viewIndex ) ;
 animations . add ( viewIndex , new float [ ] { offsetStartX , offsetStartY , offsetEndX , offsetEndY } ) ;

Added Javadoc for ShowcaseViews addAnimatedGestureToView


<nb> public class PlotPublishMRUList

 menu . addItem ( new MenuItem ( AppCommand . formatMenuLabel (
 RSConnectResources . INSTANCE . republishPlot ( ) ,
 - mruEntry . name , null ) , true , new Command ( )
 + mruEntry . name + STRING0 + mruEntry . server + STRING1 , null ) , true ,
 + new Command ( )
 {
 @ override
 public void execute ( )

include server name in plot MRU for symmetry with doc MRU


<nb> public class RouteListCommand extends AbstractCamelCommand {
 final String rowFormat = buildFormatString ( columnWidths , false ) ;

 if ( routes . size ( ) > NUMBER0 ) {
 - out . println ( String . format ( headerFormat , CONTEXT_COLUMN_LABEL , ROUTE_COLUMN_LABEL , STATUS_COLUMN_LABEL , TOTAL_COLUMN_LABEL , FAILED_COLUMN_LABEL , INFLIGHT_COLUMN_LABEL , UPTIME_COLUMN_LABEL ) ) ;
 + out . println ( String . format ( headerFormat , CONTEXT_COLUMN_LABEL , ROUTE_COLUMN_LABEL , STATUS_COLUMN_LABEL , TOTAL_COLUMN_LABEL , FAILED_COLUMN_LABEL , INFLIGHT_COLUMN_LABEL ,
 + UPTIME_COLUMN_LABEL ) ) ;
 out . println ( String . format ( headerFormat , STRING0 , STRING1 , STRING2 , STRING0 , STRING3 , STRING4 , STRING2 ) ) ;
 for ( Map < String , String > row : routes ) {
 String contextId = row . get ( STRING5 ) ;


<nb> public class ColumnNotFoundException

 public ColumnNotFoundException ( SchemaTableName tableName , String columnName )
 {
 - this ( tableName , columnName , STRING0 + tableName + STRING1 ) ;
 + this ( tableName , columnName , STRING2 + columnName + STRING3 + tableName ) ;
 }

 public ColumnNotFoundException ( SchemaTableName tableName , String columnName , String message )

Improve error message for column not found


<nb> public class UndertowDeploymentInfoService implements Service < DeploymentInfo > {
 if ( file . startsWith ( STRING0 ) ) {
 d . addWelcomePages ( file . substring ( NUMBER0 ) ) ;
 } else {
 - d . addWelcomePages ( welcomeFiles ) ;
 + d . addWelcomePages ( file ) ;
 }
 }
 } else {


<nb> public class XPackageManager extends XHook {
 break ;

 case Srv_queryContentProviders :
 - if ( param . args . length > NUMBER0 && param . args [ NUMBER0 ] instanceof String && param . getResult ( ) != null ) {
 - String processName = ( String ) param . args [ NUMBER0 ] ;
 - if ( isRestrictedExtra ( param , processName ) )
 - param . setResult ( filterProviderInfo ( ( List < ProviderInfo > ) param . getResult ( ) ) ) ;
 - }
 + if ( isRestricted ( param ) )
 + param . setResult ( filterProviderInfo ( ( List < ProviderInfo > ) param . getResult ( ) ) ) ;
 break ;

 case Srv_queryIntentActivities :


<nb> public abstract class InplaceVariableIntroducer < E extends PsiElement > extends In
 initOccurrencesMarkers ( ) ;
 }

 + @ deprecated
 + public boolean performInplaceRename ( ) {
 + return performInplaceRefactoring ( null ) ;
 + }
 +
 @ override
 protected boolean shouldSelectAll ( ) {
 return true ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 } )
 @ serverside
 public class NotificationService implements Startable {
 + private static final String THREAD_NAME_PREFIX = STRING0 ;

 private static final Logger LOG = Loggers . get ( NotificationService . class ) ;

 <nb> public class NotificationService implements Startable {

 @ override
 public void start ( ) {
 - executorService = Executors . newSingleThreadScheduledExecutor ( ) ;
 + executorService =
 + Executors . newSingleThreadScheduledExecutor (
 + new ThreadFactoryBuilder ( )
 + . setNameFormat ( THREAD_NAME_PREFIX + STRING1 )
 + . setPriority ( Thread . MIN_PRIORITY )
 + . build ( ) ) ;
 executorService . scheduleWithFixedDelay ( new Runnable ( ) {
 @ override
 public void run ( ) {

add name to thread used by NotificationService


<nb> public final class Roster extends Manager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Roster extends Manager {
 Objects . requireNonNull ( rosterEntries , STRING0 ) ;

 synchronized ( rosterListenersAndEntriesLock ) {
 - rosterEntries . rosterEntires ( entries . values ( ) ) ;
 + rosterEntries . rosterEntries ( entries . values ( ) ) ;
 addRosterListener ( rosterListener ) ;
 }
 }
 <nb>
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;

 public interface RosterEntries {

 - public void rosterEntires ( Collection < RosterEntry > rosterEntries ) ;
 + public void rosterEntries ( Collection < RosterEntry > rosterEntries ) ;

 }


<nb> public class DruidCoordinator
 }
 loadManagementPeons . clear ( ) ;

 - databaseSegmentManager . stop ( ) ;
 serverInventoryView . stop ( ) ;
 + databaseRuleManager . stop ( ) ;
 + databaseSegmentManager . stop ( ) ;
 leader = false ;
 }
 catch ( Exception e ) {

Stop databaseRuleManager in stopBeingLeader


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

 import NAMESPACE ;

 <nb> public class ResponseBodySubscriber implements WriteListener , Subscriber < ByteBuf

 if ( ready ) {
 if ( this . buffer != null ) {
 - output . write ( new Buffer ( this . buffer ) . asBytes ( ) ) ;
 + byte [ ] bytes = new byte [ this . buffer . remaining ( ) ] ;
 + this . buffer . get ( bytes ) ;
 this . buffer = null ;
 -
 + output . write ( bytes ) ;
 if ( ! subscriberComplete ) {
 this . subscription . request ( NUMBER0 ) ;
 }


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract class ActionWrapperBase < V > implements Action < V > {

 protected Context < V > context ;
 <nb> public abstract class ActionWrapperBase < V > implements Action < V > {
 this . context = subContext ;
 }

 + @ override
 + public String toString ( ) {
 + return getClass ( ) . getSimpleName ( ) ;
 + }
 +
 }
 <nb> public class ActionMatcher < V > extends AbstractMatcher < V > {
 }

 public String getLabel ( ) {
 - return STRING0 + action . toString ( ) ;
 + return action . toString ( ) ;
 }

 public boolean match ( @ notnull MatcherContext < V > context ) {

Improved generated action class toString


<nb> public class BuilderStatisticsMessage extends BuildMessage {
 private final long myElapsedTimeMs ;

 public BuilderStatisticsMessage ( String builderName , long elapsedTimeMs ) {
 - super ( builderName + STRING0 + elapsedTimeMs + STRING1 , Kind . INFO ) ;
 + super ( STRING2 , Kind . INFO ) ;
 myBuilderName = builderName ;
 myElapsedTimeMs = elapsedTimeMs ;
 }

send empty text with statistics message to avoid producing unnecessary output by IDEA Project Runner in TeamCity


<nb> public class TextureView extends View {
 return false ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 protected void destroyHardwareResources ( ) {
 super . destroyHardwareResources ( ) ;


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

 import static NAMESPACE ;
 <nb> public class SqsFilterMessagesWithNoDeleteTest extends TestSupport {
 }

 @ test
 + @ ignore ( STRING0 )
 public void testGetThroughFilter ( ) throws Exception {
 final String sqsURI = String . format ( STRING1
 SINGLE

Skip test which fails occationally on CI


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 public class Runner {

 public static void main ( String [ ] args ) {
 try {
 Class clazz = Class . forName ( args [ NUMBER0 ] ) ;
 CommandLineInterpreter commandLineInterpreter = ( CommandLineInterpreter ) clazz . newInstance ( ) ;
 - commandLineInterpreter . reader ( STRING0 , System . in )
 - . run ( true ) ;
 + InputStream in = args . length > NUMBER1 ? new FileInputStream ( args [ NUMBER1 ] ) : System . in ;
 + commandLineInterpreter . reader ( STRING0 , in ) . run ( true ) ;
 + in . close ( ) ;
 } catch ( Throwable e ) {
 e . printStackTrace ( ) ;
 System . exit ( NUMBER1 ) ;

reading definition from file as an alternative to System in


<nb> public class WifiStateMachine extends HierarchicalStateMachine {
 }

 private void sendConfigChangeBroadcast ( ) {
 + if ( ! ActivityManagerNative . isSystemReady ( ) ) return ;
 Intent intent = new Intent ( WifiManager . CONFIG_CHANGED_ACTION ) ;
 intent . putExtra ( WifiManager . EXTRA_NETWORK_PROPERTIES , mNetworkProperties ) ;
 mContext . sendBroadcast ( intent ) ;
 <nb> public class WifiStateMachine extends HierarchicalStateMachine {

 private void updateConfigAndSendChangeBroadcast ( ) {
 updateConfiguredNetworks ( ) ;
 + if ( ! ActivityManagerNative . isSystemReady ( ) ) return ;
 Intent intent = new Intent ( WifiManager . SUPPLICANT_CONFIG_CHANGED_ACTION ) ;
 mContext . sendBroadcast ( intent ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class HttpProtocol extends Protocol {
 return ;
 }

 - NettyRequest nettyRequest = future . getNettyRequest ( ) ;
 AsyncHandler < ? > handler = future . getAsyncHandler ( ) ;
 try {
 if ( e instanceof HttpResponse ) {
 HttpResponse response = ( HttpResponse ) e ;
 - logger . debug ( STRING0 , nettyRequest . getHttpRequest ( ) , response ) ;
 SINGLE
 future . setPendingResponse ( response ) ;
 return ;


<nb> public class Leg {
 public String agencyId = null ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ xmlattribute
 - public String tripId = null ;
 -
 - COMMENT
 COMMENT
 COMMENT
 public Place from = null ;
 <nb> public class PlanGenerator {
 Trip trip = en . getTrip ( ) ;
 if ( trip != null ) {
 leg . headsign = trip . getTripHeadsign ( ) ;
 - leg . tripId = trip . getId ( ) . getId ( ) ;
 leg . agencyId = trip . getId ( ) . getAgencyId ( ) ;
 leg . tripShortName = trip . getTripShortName ( ) ;
 leg . routeShortName = trip . getRoute ( ) . getShortName ( ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractTreeStructureBase extends AbstractTreeStructure {
 try {
 elements = provider . modify ( treeNode , ( Collection < AbstractTreeNode > ) elements , settings ) ;
 }
 + catch ( ProcessCanceledException e ) {
 + throw e ;
 + }
 catch ( Exception e ) {
 LOG . error ( e ) ;
 }


<nb> public class JavaCodeStyleSettingsProvider extends CodeStyleSettingsProvider {
 return new JavaCodeStyleMainPanel ( getCurrentSettings ( ) , settings ) ;
 }
 public String getHelpTopic ( ) {
 - return null ;
 + return STRING0 ;
 }
 } ;
 }


<nb> public final class SequencedSkyframeExecutor extends SkyframeExecutor {
 COMMENT
 COMMENT
 private static final Set < SkyFunctionName > PACKAGE_LOCATOR_DEPENDENT_VALUES = ImmutableSet . of (
 + SkyFunctions . AST_FILE_LOOKUP ,
 SkyFunctions . FILE_STATE ,
 SkyFunctions . FILE ,
 SkyFunctions . DIRECTORY_LISTING_STATE ,

Add AST_FILE_LOOKUP to the list of key types whose SkyFunction implicitly uses the PathPackageLocator


<nb> class SaveHandler extends DataHandler {
 COMMENT
 COMMENT
 private long saving ( DataSupport baseObj , ContentValues values ) {
 + if ( values . size ( ) == NUMBER0 ) {
 + values . putNull ( STRING0 ) ;
 + }
 return mDatabase . insert ( baseObj . getTableName ( ) , null , values ) ;
 }

Fix bug of throwing error when saving model with none field


<nb>
 package NAMESPACE ;

 - SINGLE
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT

 import static NAMESPACE ;


<nb> Above scenario allowed
 pipelineOne . materialConfigs ( ) . validate ( ConfigSaveValidationContext . forChain ( config ) ) ;

 assertThat ( pipelineOne . materialConfigs ( ) . get ( NUMBER0 ) . errors ( ) . on ( ScmMaterialConfig . AUTO_UPDATE ) ,
 - is ( STRING0 ) ) ;
 + is ( STRING1 ) ) ;
 }

 @ test
 <nb> public class ConfigRepoConfigTest {

 assertThat ( svn . errors ( ) . isEmpty ( ) , is ( false ) ) ;
 assertThat ( svn . errors ( ) . on ( ScmMaterialConfig . AUTO_UPDATE ) ,
 - is ( STRING2 ) ) ;
 + is ( STRING3 ) ) ;
 }

 @ test

Fixing tests related to material autoUpdate checks


<nb> public class LegacyRequestMapper {
 return Camera . Parameters . WHITE_BALANCE_CLOUDY_DAYLIGHT ;
 case CONTROL_AWB_MODE_TWILIGHT :
 return Camera . Parameters . WHITE_BALANCE_TWILIGHT ;
 + case CONTROL_AWB_MODE_SHADE :
 + return Parameters . WHITE_BALANCE_SHADE ;
 default :
 Log . w ( TAG , STRING0 + mode ) ;
 return Camera . Parameters . WHITE_BALANCE_AUTO ;


<nb> public class TestPerformance extends BaseTest {
 @ suppresswarnings ( { STRING0 } )
 final Class < ? extends Parser > parserClass = ( Class < ? extends Parser > ) loader . loadClass ( STRING1 ) ;
 @ suppresswarnings ( { STRING0 } )
 - final Class < ? extends ParseTreeListener < Token > > listenerClass = ( Class < ? extends ParseTreeListener < Token > > ) loader . loadClass ( STRING2 ) ;
 + final Class < ? extends ParseTreeListener < Token > > listenerClass = ( Class < ? extends ParseTreeListener < Token > > ) loader . loadClass ( STRING3 ) ;
 TestPerformance . sharedListener = listenerClass . newInstance ( ) ;

 final Constructor < ? extends Lexer > lexerCtor = lexerClass . getConstructor ( CharStream . class ) ;

Fix listener name BlankJavaListener JavaBaseListener


<nb> public class EphemeralFileSystemAbstraction implements FileSystemAbstraction , Li
 SINGLE
 SINGLE
 SoftReference < ByteBuffer > ref = new SoftReference < ByteBuffer > ( buf ) ;
 - ( sizeIndex < pool . length ( ) ? pool . get ( sizeIndex ) : growPool ( sizeIndex ) ) . add ( ref ) ;
 +
 + SINGLE
 + Queue < Reference < ByteBuffer > > references = null ;
 + if ( sizeIndex < pool . length ( ) )
 + {
 + references = pool . get ( sizeIndex ) ;
 + SINGLE
 + if ( references == null )
 + {
 + throw new RuntimeException ( STRING0 ) ;
 + }
 + } else {
 + references = growPool ( sizeIndex ) ;
 + SINGLE
 + if ( references == null )
 + {
 + throw new RuntimeException ( STRING0 ) ;
 + }
 + }
 +
 + references . add ( ref ) ;
 }
 finally
 {

Expanded a compact statement in EphemeralFileSystemAbstraction to help track down a flaky NPE


<nb> import NAMESPACE ;
 COMMENT
 public class Affiliation implements ExtensionElement
 {
 + public static final String ELEMENT = STRING0 ;
 +
 protected String node ;
 protected Type type ;

 <nb> public class Affiliation implements ExtensionElement

 public String getElementName ( )
 {
 - return STRING1 ;
 + return ELEMENT ;
 }

 public String getNamespace ( )


<nb> public class ZapRelease {
 public ZapRelease ( ) {
 }

 + public ZapRelease ( String version ) {
 + this . version = version ;
 + }
 +
 public ZapRelease ( String version , URL url , String fileName , long size , String releaseNotes ) {
 super ( ) ;
 this . version = version ;


<nb> public interface LivingEntity extends Entity {
 COMMENT
 COMMENT
 public Collection < PotionEffect > getActivePotionEffects ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean hasLineOfSight ( Entity other ) ;
 }
 <nb> public class TestPlayer implements Player {
 public boolean isBlocking ( ) {
 throw new UnsupportedOperationException ( STRING0 ) ;
 }
 +
 + public boolean hasLineOfSight ( Entity other ) {
 + throw new UnsupportedOperationException ( STRING0 ) ;
 + }
 }


<nb> public class OsmandSettings {

 - public final OsmandPreference < Integer > NUMBER_OF_FREE_DOWNLOADS = new IntPreference ( STRING0 , NUMBER0 ) . makeGlobal ( ) ;
 + public final OsmandPreference < Integer > NUMBER_OF_FREE_DOWNLOADS = new IntPreference ( STRING1 , NUMBER0 ) . makeGlobal ( ) ;

 public boolean checkFreeDownloadsNumberZero ( ) {
 if ( ! settingsAPI . contains ( globalPreferences , NUMBER_OF_FREE_DOWNLOADS . getId ( ) ) ) {


<nb> public class TimeTools {
 COMMENT
 COMMENT
 public static LocalTime getShowReleaseTime ( int showReleaseTime ) {
 - if ( showReleaseTime >= NUMBER0 || showReleaseTime <= NUMBER1 ) {
 + if ( showReleaseTime >= NUMBER0 && showReleaseTime <= NUMBER1 ) {
 int hour = showReleaseTime / NUMBER2 ;
 int minute = showReleaseTime - ( hour * NUMBER2 ) ;
 if ( minute <= NUMBER3 ) {


<nb> public class ConfigurationMetadataMatchers {
 if ( itemHint == null ) {
 return false ;
 }
 - if ( this . name != null && ! this . name . equals ( itemHint . getName ( ) ) ) {
 - return false ;
 - }
 for ( ValueHintMatcher value : this . values ) {
 if ( ! value . matches ( itemHint ) ) {
 return false ;


<nb> public class VoiceRouter {
 PREPARE_DISTANCE = NUMBER0 ; SINGLE
 PREPARE_DISTANCE_END = NUMBER1 ; SINGLE
 TURN_IN_DISTANCE = NUMBER2 ; SINGLE
 - TURN_IN_DISTANCE_END = NUMBER3 ; SINGLE
 + TURN_IN_DISTANCE_END = NUMBER4 ; SINGLE
 TURN_DISTANCE = NUMBER5 ; SINGLE
 TURN_DEFAULT_SPEED = FLOAT0 ; SINGLE
 DEFAULT_SPEED = NUMBER6 ; SINGLE
 <nb> public class VoiceRouter {
 PREPARE_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER7 ) ;
 PREPARE_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER8 ) ;
 TURN_IN_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER9 ) ;
 - TURN_IN_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER10 ) ;
 + TURN_IN_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER11 ) ;
 TURN_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER12 ) ;
 }
 }


<nb> import static NAMESPACE ;

 public class OAuthITest {

 - @ test public void
 + @ ignore ( STRING0 ) @ test public void
 oauth1_works_with_header_signing ( ) {
 given ( ) .
 auth ( ) . oauth ( STRING1 , STRING2 , STRING3 , STRING4 ) .
 <nb> public class OAuthITest {
 body ( STRING5 , equalTo ( STRING6 ) ) ;
 }

 - @ ignore @ test public void
 + @ ignore ( STRING0 ) @ test public void
 oauth1_works_with_query_signing ( ) {
 given ( ) .
 auth ( ) . oauth ( STRING1 , STRING2 , STRING3 , STRING4 , QUERY_STRING ) .
 <nb> public class AdvancedValidationITest extends WithJetty {
 body ( STRING7 , is ( FLOAT0 ) ) .
 body ( STRING8 , is ( FLOAT1 ) ) .
 body ( STRING9 , is ( NUMBER0 ) ) .
 - body ( STRING10 , is ( NUMBER1 ) ) ;
 + body ( STRING10 , is ( FLOAT2 ) ) ;
 }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SubPlan
 . bag ( ) ;

 Multiset < PlanFragmentId > childrenIds = IterableTransformer . on ( children )
 - . transform ( SubPlan . fragmentGetter ( ) )
 + . transform ( SubPlan : : getFragment )
 . transform ( PlanFragment : : getId )
 . bag ( ) ;

 <nb> public class SubPlan
 child . sanityCheck ( ) ;
 }
 }
 -
 - public static Function < SubPlan , PlanFragment > fragmentGetter ( )
 - {
 - return new Function < SubPlan , PlanFragment > ( )
 - {
 - @ override
 - public PlanFragment apply ( SubPlan input )
 - {
 - return input . getFragment ( ) ;
 - }
 - } ;
 - }
 }


<nb> public class PluginManager {
 COMMENT
 public void loadPlugins ( ) {
 int id = this . ctx . getActivity ( ) . getResources ( ) . getIdentifier ( STRING0 , STRING1 , this . ctx . getActivity ( ) . getPackageName ( ) ) ;
 - if ( id == NUMBER0 )
 - {
 - id = this . ctx . getActivity ( ) . getResources ( ) . getIdentifier ( STRING2 , STRING1 , this . ctx . getActivity ( ) . getPackageName ( ) ) ;
 - LOG . i ( TAG , STRING3 ) ;
 - }
 if ( id == NUMBER0 ) {
 this . pluginConfigurationMissing ( ) ;
 SINGLE

Seriously we didn t deprecate this for a year


<nb> public class DefaultPackageScanClassResolver implements PackageScanClassResolver
 }
 try {
 Class type = classLoader . loadClass ( externalName ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . trace ( STRING0 + type + STRING1 + classLoader ) ;
 + }
 if ( test . matches ( type ) ) {
 if ( LOG . isTraceEnabled ( ) ) {
 - LOG . trace ( STRING2 + type + STRING1 + classLoader ) ;
 + LOG . trace ( STRING2 + type + STRING3 + classLoader ) ;
 }
 classes . add ( type ) ;
 }


<nb> public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider
 }

 @ override
 + public void wizardStepUpdated ( ) {
 + }
 +
 + @ override
 public void addSupport ( @ notnull Module module , @ notnull ModifiableRootModel rootModel , @ nullable Library library ) {
 AppEngineSupportProvider . this . addSupport ( module , rootModel , mySdkEditor . getPath ( ) , PersistenceApiComboboxUtil . getSelectedApi ( myPersistenceApiComboBox ) ) ;
 }
 <nb> public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider
 public JComponent getComponent ( ) {
 return myMainPanel ;
 }
 -
 }
 -
 }

added method to listener to notify when step is reached


<nb> public class SummaryPage extends Request {
 Response r = Response . done ( res ) ;
 r . setBuilder ( ROOT_OBJECT , new Builder ( ) {
 @ override public String build ( Response response , JsonElement element , String contextName ) {
 - StringBuilder pageBldr = new StringBuilder ( STRING0 ) ;
 + StringBuilder pageBldr = new StringBuilder ( STRING1 ) ;
 StringBuilder sb = new StringBuilder ( STRING2 ) ;
 JsonArray cols = element . getAsJsonObject ( ) . get ( STRING3 ) . getAsJsonObject ( ) . get ( STRING4 ) . getAsJsonArray ( ) ;
 Iterator < JsonElement > it = cols . iterator ( ) ;

Undo Spencer s one line change which had a strange overlay side effect


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

 + @ ignore ( STRING0 +
 + STRING1 )
 @ runwith ( Parallelized . class )
 public class ZooKeeperCuratorFailoverTest {


<nb> public class ContributionListing {

 protected AvailableContribution getAvailableContribution ( Contribution info ) {
 - for ( AvailableContribution advertised : advertisedContributions ) {
 - if ( advertised . getType ( ) == info . getType ( ) &&
 - advertised . getName ( ) . equals ( info . getName ( ) ) ) {
 - return advertised ;
 + synchronized ( advertisedContributions ) {
 + for ( AvailableContribution advertised : advertisedContributions ) {
 + if ( advertised . getType ( ) == info . getType ( ) &&
 + advertised . getName ( ) . equals ( info . getName ( ) ) ) {
 + return advertised ;
 + }
 }
 }
 return null ;

saw exception with concurrent modification


<nb> public final class ConfigurationBuilder {

 @ nonnull
 Set < ReportField > reportContent ( ) {
 - Set < ReportField > reportContent = new HashSet < ReportField > ( ) ;
 + final Set < ReportField > reportContent = new HashSet < ReportField > ( ) ;
 if ( customReportContent != null ) {
 if ( ACRA . DEV_LOGGING ) ACRA . log . d ( LOG_TAG , STRING0 ) ;
 reportContent . addAll ( Arrays . asList ( customReportContent ) ) ;
 <nb> public final class ConfigurationBuilder {
 if ( ACRA . DEV_LOGGING ) ACRA . log . d ( LOG_TAG , STRING1 ) ;
 reportContent . addAll ( Arrays . asList ( DEFAULT_MAIL_REPORT_FIELDS ) ) ;
 }
 +
 + SINGLE
 for ( Map . Entry < ReportField , Boolean > entry : reportContentChanges . entrySet ( ) ) {
 if ( entry . getValue ( ) ) {
 reportContent . add ( entry . getKey ( ) ) ;


<nb> public final class Ln {
 }

 }
 +
 + public static void setPrint ( Print print ) {
 + Ln . print = print ;
 + }

 COMMENT
 public static class Print {


<nb> public class ApacheAsyncHttpProvider implements AsyncHttpProvider {

 if ( proxyServer . getPrincipal ( ) != null ) {
 Credentials defaultcreds = new UsernamePasswordCredentials ( proxyServer . getPrincipal ( ) , proxyServer . getPassword ( ) ) ;
 - client . getState ( ) . setCredentials ( new AuthScope ( null , - NUMBER0 , AuthScope . ANY_REALM ) , defaultcreds ) ;
 + client . getState ( ) . setProxyCredentials ( new AuthScope ( null , - NUMBER0 , AuthScope . ANY_REALM ) , defaultcreds ) ;
 }

 ProxyHost proxyHost = proxyServer == null ? null : new ProxyHost ( proxyServer . getHost ( ) , proxyServer . getPort ( ) ) ;

Fix proxy authentication in ApacheAsyncHttpProvider


<nb> public class PreBuiltTransportClientTests extends RandomizedTest {
 new PreBuiltTransportClient ( Settings . EMPTY , plugin ) ;
 fail ( STRING0 ) ;
 } catch ( IllegalArgumentException ex ) {
 - assertTrue ( ex . getMessage ( ) . startsWith ( STRING1 ) ) ;
 + assertTrue ( STRING2 + ex . getMessage ( ) + STRING3 ,
 + ex . getMessage ( ) . startsWith ( STRING1 ) ) ;
 }
 }
 }


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

 import NAMESPACE ;
 <nb> public class PropertyResolverProcessor extends ResolverProcessor {
 }
 }
 } else if ( myName == null || myName . equals ( ( ( PsiNamedElement ) element ) . getName ( ) ) ) {
 + if ( element instanceof GrField && ( ( GrField ) element ) . isProperty ( ) ) return true ;
 return super . execute ( element , substitutor ) ;
 }


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

 import NAMESPACE ;


<nb> public class PSurfaceJOGL implements PSurface {
 caps . setNumSamples ( PGL . smoothToSamples ( graphics . smooth ) ) ;
 caps . setBackgroundOpaque ( true ) ;
 caps . setOnscreen ( true ) ;
 - pgl . capabilities = caps ;
 pgl . setCaps ( caps ) ;
 }


<nb> public class AbstractBlockMetaTest {
 private static final int TEST_TIER_ORDINAL = NUMBER0 ;
 private static final String TEST_TIER_ALIAS = STRING0 ;
 private static final long [ ] TEST_TIER_CAPACITY_BYTES = { NUMBER1 } ;
 - private String mTestDirPath ;
 private StorageTier mTier ;
 private StorageDir mDir ;
 private AbstractBlockMetaForTest mBlockMeta ;
 <nb> public class AbstractBlockMetaTest {
 COMMENT
 @ before
 public void before ( ) throws Exception {
 - mTestDirPath = mFolder . newFolder ( ) . getAbsolutePath ( ) ;
 + String testDirPath = mFolder . newFolder ( ) . getAbsolutePath ( ) ;
 SINGLE
 TieredBlockStoreTestUtils . setupConfWithSingleTier ( null , TEST_TIER_ORDINAL ,
 - TEST_TIER_ALIAS , new String [ ] { mTestDirPath } , TEST_TIER_CAPACITY_BYTES , STRING1 ) ;
 + TEST_TIER_ALIAS , new String [ ] { testDirPath } , TEST_TIER_CAPACITY_BYTES , STRING1 ) ;

 mTier = StorageTier . newStorageTier ( TEST_TIER_ALIAS ) ;
 mDir = mTier . getDir ( NUMBER0 ) ;

SMALLFIX Made field a local variable in AbstractBlockMetaTest


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class TestLexerExec extends BaseTest {
 }

 @ test
 + public void testNonGreedyTermination2 ( ) throws Exception {
 + String grammar =
 + STRING0
 + + STRING1 ;
 +
 + String found = execLexer ( STRING2 , grammar , STRING3 , STRING4 ) ;
 + assertEquals (
 + STRING5 +
 + STRING6 , found ) ;
 + assertNull ( stderrDuringParse ) ;
 + }
 +
 + @ test
 public void testGreedyOptional ( ) throws Exception {
 String grammar =
 STRING0


<nb> public abstract class ReplayingDecoder < T extends Enum < T > >
 try {
 result = decode ( context , channel , replayable , state ) ;
 if ( result == null ) {
 - if ( oldReaderIndex == cumulation . readerIndex ( ) ) {
 + if ( oldReaderIndex == cumulation . readerIndex ( ) && oldState == state ) {
 throw new IllegalStateException (
 - STRING0 ) ;
 + STRING1 ) ;
 } else {
 - SINGLE
 + SINGLE
 SINGLE
 continue ;
 }

ReplayingDecoder should not throw an IllegalStateException even if a decoder implementation returns null when state transition occurred at least


<nb> public final class QRCodeEncoder {
 try {
 ByteMatrix result = new MultiFormatWriter ( ) . encode ( mContents ,
 mFormat , mPixelResolution , mPixelResolution ) ;
 - int width = result . width ( ) ;
 - int height = result . height ( ) ;
 + int width = result . getWidth ( ) ;
 + int height = result . getHeight ( ) ;
 byte [ ] [ ] array = result . getArray ( ) ;
 int [ ] pixels = new int [ width * height ] ;
 for ( int y = NUMBER0 ; y < height ; y ++ ) {

Add MatrixToImageWriter convenience class small code tweaks in javase make ByteMatrix width height property getters names standard


<nb> public class WsHttpUpgradeHandler implements HttpUpgradeHandler {
 WsFrameServer wsFrame = new WsFrameServer (
 sis ,
 wsSession ) ;
 - sis . setReadListener ( new WsReadListener ( this , wsFrame ) ) ;
 sos . setWriteListener (
 new WsWriteListener ( this , wsRemoteEndpointServer ) ) ;
 ep . onOpen ( wsSession , endpointConfig ) ;
 webSocketContainer . registerSession ( ep , wsSession ) ;
 + sis . setReadListener ( new WsReadListener ( this , wsFrame ) ) ;
 } catch ( DeploymentException e ) {
 throw new IllegalArgumentException ( e ) ;
 } finally {

Don t register the ReadListener until after onOpen has completed as MessageHandler instances are likely to be registered during onOpen


<nb> public class TemplateState implements Disposable {
 gotoEnd ( true ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public void cancelTemplate ( ) {
 + if ( myTemplate == null ) return ;
 + LookupManager . getInstance ( myProject ) . hideActiveLookup ( ) ;
 + cleanupTemplateState ( true ) ;
 + }
 +
 private void finishTemplateEditing ( ) {
 if ( myTemplate == null ) return ;
 LookupManager . getInstance ( myProject ) . hideActiveLookup ( ) ;

restored compatibility with Kotlin plugin


<nb> public class AndroidSdk {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public String getPathForTool ( String tool ) {

 String [ ] possiblePaths = {
 - sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING1 + tool ,
 sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool ,
 sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool + STRING2 ,
 sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool + STRING3 ,
 + sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING1 + tool ,
 getPlatform ( ) + STRING4 + tool ,
 getPlatform ( ) + STRING4 + tool + STRING2 ,
 getPlatform ( ) + STRING4 + tool + STRING3 ,
 + getPlatform ( ) + STRING5 + tool ,
 sdkPath + STRING4 + tool ,
 sdkPath + STRING4 + tool + STRING2 ,
 - sdkPath + STRING4 + tool + STRING3
 + sdkPath + STRING4 + tool + STRING3 ,
 + sdkPath + STRING5 + tool
 } ;

 for ( String possiblePath : possiblePaths ) {


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

 COMMENT
 COMMENT
 COMMENT
 public final class EurekaHttpClients {
 + private static final Logger logger = LoggerFactory . getLogger ( EurekaHttpClients . class ) ;

 private EurekaHttpClients ( ) {
 }
 <nb> public final class EurekaHttpClients {
 final String myRegion = clientConfig . getRegion ( ) ;

 String discoveryDnsName = STRING0 + myRegion + STRING1 + clientConfig . getEurekaServerDNSName ( ) ;
 + int port = NUMBER0 ;
 + try {
 + port = Integer . parseInt ( clientConfig . getEurekaServerPort ( ) ) ;
 + } catch ( NumberFormatException e ) {
 + logger . warn ( STRING2 ) ;
 + }
 final ClusterResolver < AwsEndpoint > dnsResolver = new DnsTxtRecordClusterResolver (
 myRegion ,
 discoveryDnsName ,
 true ,
 - Integer . parseInt ( clientConfig . getEurekaServerPort ( ) ) ,
 + port ,
 false ,
 clientConfig . getEurekaServerURLContext ( )
 ) ;

handle unavailable port when not using dns to bootstrap resolve


<nb> public final class ArrayConcatUtils

 public static Block concat ( Type elementType , Block leftBlock , Block rightBlock )
 {
 - BlockBuilder blockBuilder = elementType . createBlockBuilder ( new BlockBuilderStatus ( ) , leftBlock . getSizeInBytes ( ) + rightBlock . getSizeInBytes ( ) ) ;
 + int totalSize = leftBlock . getSizeInBytes ( ) + rightBlock . getSizeInBytes ( ) ;
 + int totalEntries = leftBlock . getPositionCount ( ) + rightBlock . getPositionCount ( ) ;
 + if ( totalEntries == NUMBER0 ) {
 + SINGLE
 + return leftBlock ;
 + }
 + BlockBuilder blockBuilder = elementType . createBlockBuilder ( new BlockBuilderStatus ( ) , totalEntries , ( int ) Math . ceil ( totalSize / ( double ) totalEntries ) ) ;
 for ( int i = NUMBER0 ; i < leftBlock . getPositionCount ( ) ; i ++ ) {
 elementType . appendTo ( leftBlock , i , blockBuilder ) ;
 }

Allocate appropriate amount of memory in array concat


<nb> public class FileDownloadStatus {
 }

 public static boolean isKeepAhead ( final int status , final int nextStatus ) {
 - if ( status != progress && status == nextStatus ) {
 + if ( status != progress && status != retry && status == nextStatus ) {
 return false ;
 }

 <nb> public class FileDownloadStatus {
 }

 public static boolean isKeepFlow ( final int status , final int nextStatus ) {
 - if ( status != progress && status == nextStatus ) {
 + if ( status != progress && status != retry && status == nextStatus ) {
 return false ;
 }

 <nb> public class FileDownloadStatus {
 case retry :
 case started :
 switch ( nextStatus ) {
 + case retry :
 case connected :
 return true ;
 default :

fix can t call back retry in expect the case of the call back method retry one by one


<nb> public class CookieITest extends WithJetty {
 when ( ) .
 post ( STRING0 ) ;
 }
 +
 + @ test
 + public void cookiesParsingSupportsNoValueCookies ( ) throws Exception {
 + given ( ) .
 + cookie ( STRING1 ) .
 + expect ( ) .
 + cookie ( STRING1 ) .
 + when ( ) .
 + post ( STRING0 ) ;
 + }
 }


<nb> public class DataQueueProxy extends QueueProxySupport implements QueueProxy < Data
 }

 public LocalQueueStats getLocalQueueStats ( ) {
 - return null ;
 + return getService ( ) . createLocalQueueStats ( name , partitionId ) ;
 }

 public boolean add ( Data data ) {


<nb>
 COMMENT
 package NAMESPACE ;

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

 import NAMESPACE ;

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

 public class RedisCodecTest {

 <nb> public class RedisCodecTest {
 }

 @ test
 - public void decodeReplies ( ) throws IOException {
 + public void decodeReplies ( ) {
 {
 Object receive = decode ( STRING0 . getBytes ( ) ) ;
 assertTrue ( receive instanceof StatusReply ) ;


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

 <nb> public class CompileEnvironment {
 method . setAccessible ( true ) ;
 method . invoke ( null ) ;

 - return AllModules . modules ;
 + ArrayList < Module > answer = new ArrayList < Module > ( AllModules . modules ) ;
 + AllModules . modules . clear ( ) ;
 + return answer ;
 } catch ( Exception e ) {
 throw new ModuleExecutionException ( e ) ;
 }

Make sure we won t compile same modules in subsequent script runs in same VM instance


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


<nb> public final class AndroidGraphicsGridSampler extends GridSampler {
 transformMatrix . mapPoints ( points ) ;
 SINGLE
 SINGLE
 - checkEndpoint ( image , points ) ;
 + checkAndNudgePoints ( image , points ) ;
 for ( int j = NUMBER0 ; j < max ; j += NUMBER1 ) {
 if ( image . isBlack ( ( int ) points [ j ] , ( int ) points [ j + NUMBER2 ] ) ) {
 SINGLE

Improved bounds checking and point nudging logic in GridSampler


<nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
 }
 catch ( InterruptedException x )
 {
 - x . printStackTrace ( ) ;
 throw ( IOException ) new InterruptedIOException ( ) . initCause ( x ) ;
 }
 - catch ( TimeoutException e )
 - {
 - e . printStackTrace ( ) ;
 - throw new IOException ( e ) ;
 - }
 catch ( ClosedChannelException e )
 {
 - e . printStackTrace ( ) ;
 throw new EofException ( e ) ;
 }
 + catch ( IOException e )
 + {
 + throw e ;
 + }
 + catch ( TimeoutException e )
 + {
 + throw new IOException ( e ) ;
 + }
 }

 @ override


<nb> public class MeshBuilder implements MeshPartBuilder {
 }

 @ override
 + public void setUVRange ( float u1 , float v1 , float u2 , float v2 ) {
 + uMin = u1 ;
 + vMin = v1 ;
 + uMax = u2 ;
 + vMax = v2 ;
 + }
 +
 + @ override
 public short vertex ( Vector3 pos , Vector3 nor , Color col , Vector2 uv ) {
 if ( vindex >= Short . MAX_VALUE )
 throw new GdxRuntimeException ( STRING0 ) ;
 <nb> public interface MeshPartBuilder {
 public void setColor ( final Color color ) ;
 COMMENT
 public void setColor ( float r , float g , float b , float a ) ;
 + COMMENT
 + public void setUVRange ( float u1 , float v1 , float u2 , float v2 ) ;
 COMMENT
 public short vertex ( final float [ ] values ) ;
 COMMENT


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DOMStoragePeerManager extends ChromePeerManager {
 SharedPreferencesHelper . valueToString ( newValue ) ) ;
 mCopy . put ( key , newValue ) ;
 } else {
 - throw new RuntimeException ( STRING0 + key ) ;
 + SINGLE
 + SINGLE
 + LogUtil . i ( STRING1 , key ) ;
 }
 }
 }

Fix crash when rapidly adding removing SharedPreferences keys


<nb> public class RestAssuredSetupRule extends ExternalResource {
 protected void before ( ) throws Throwable {
 final GraylogControl graylogController = new GraylogControl ( ) ;
 final URL url = graylogController . getUrl ( ) ;
 + graylogController . startServer ( ) ;
 RestAssured . baseURI = url . getProtocol ( ) + STRING0 + url . getHost ( ) ;
 RestAssured . port = url . getPort ( ) ;
 String [ ] userInfo = url . getUserInfo ( ) . split ( STRING1 ) ;


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


<nb> public class TestStreetMatcher {
 }

 @ override
 - public void setCarSpeed ( float carSpeed ) {
 - SINGLE
 -
 - }
 + public void setCarSpeed ( float carSpeed ) { }

 @ override
 public String getLabel ( ) {


<nb> public class Chronometer extends TextView {
 }
 }
 setText ( text ) ;
 - Slog . v ( STRING0 , STRING1 + seconds + STRING2 + mFormat + STRING3 + text ) ;
 }

 private void updateRunning ( ) {


<nb> public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL
 new DeepLearningTask2 ( self ( ) , train , model . model_info ( ) , rowFraction ( train , mp , model ) ) . doAllNodes ( ) . model_info ( ) ) : SINGLE
 new DeepLearningTask ( self ( ) , model . model_info ( ) , rowFraction ( train , mp , model ) ) . doAll ( train ) . model_info ( ) ) ; SINGLE
 update ( model . actual_train_samples_per_iteration ) ; SINGLE
 - if ( ! mp . _quiet_mode ) Log . info ( STRING0 + PrettyPrint . formatPct ( progress ( ) ) ) ;
 }
 while ( model . doScoring ( train , trainScoreFrame , validScoreFrame , self ( ) ) ) ;


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class UploadingTest {

 public static void main ( String [ ] args ) throws IOException , UploadFailException {


<nb> public class JavaGenerator implements CodeGenerator
 indent + STRING0 +
 indent + STRING1 +
 indent + STRING2 +
 - indent + STRING3 +
 - indent + STRING4 +
 + indent + STRING5 +
 + indent + STRING6 +
 indent + STRING7 ,
 dimensionHeaderSize
 ) ) ;
 <nb> public class JavaGenerator implements CodeGenerator
 indent + STRING8 +
 indent + STRING9 +
 indent + STRING2 +
 - indent + STRING3 +
 - indent + STRING4 +
 + indent + STRING5 +
 + indent + STRING6 +
 indent + STRING7 ,
 javaTypeForNumInGroup ,
 javaTypeForBlockLength ,
 <nb> public class JavaGenerator implements CodeGenerator
 indent + STRING10 +
 indent + STRING11 +
 indent + STRING12 +
 + indent + STRING13 +
 indent + STRING14 +
 indent + STRING15 +
 indent + STRING16

Fixed bug with offset moving for iterating over repeating groups


<nb> public class LogAnalyzerTotal implements Serializable {
 JavaPairDStream < String , Long > ipAddressesDStream = accessLogsDStream . mapToPair ( new Functions . IpTuple ( ) ) ;
 JavaPairDStream < String , Long > ipAddressesCountsDStream = ipAddressesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ;
 SINGLE
 - JavaPairDStream < String , Long > ipAddressesBytesDStream = accessLogsDStream . mapToPair ( new Functions . IpContentTuple ( ) ) ;
 - JavaPairDStream < String , Long > ipAddressesBytesSumDStream = ipAddressesBytesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ;
 - JavaPairDStream < String , Tuple2 < Long , Long > > ipBytesRequestCountDStream = ipAddressesByteSumDStream . join ( ipAddressesCountsDStream ) ;
 + JavaPairDStream < String , Long > ipBytesDStream = accessLogsDStream . mapToPair ( new Functions . IpContentTuple ( ) ) ;
 + JavaPairDStream < String , Long > ipBytesSumDStream = ipBytesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ;
 + JavaPairDStream < String , Tuple2 < Long , Long > > ipBytesRequestCountDStream = ipBytesSumDStream . join ( ipAddressesCountsDStream ) ;

 SINGLE
 JavaDStream < String > ipAddressDStream = ipAddressesCumDStream . transform (


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WebViewClient {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MediaPlayer implements SubtitleController . Listener
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>
 SINGLE
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public interface BundleClassLoaderHelper
 COMMENT
 public static final String CLASS_NAME = STRING0 ;

 + COMMENT
 + public static BundleClassLoaderHelper DEFAULT = new DefaultBundleClassLoaderHelper ( ) ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public interface BundleFileLocatorHelper
 COMMENT
 public static final String CLASS_NAME = STRING1 ;

 + COMMENT
 + public static BundleFileLocatorHelper DEFAULT = new DefaultFileLocatorHelper ( ) ;
 +
 +
 COMMENT
 COMMENT
 COMMENT

add the default helpers as static objects as thy are quite useful to the outside world as it


<nb> public class RelationTriple implements Comparable < RelationTriple > , Iterable < Core
 thisChunk = NUMBER0 ;
 }
 }
 + SINGLE
 + if ( thisChunk > longestChunk ) {
 + longestChunk = thisChunk ;
 + longestChunkStart = thisChunkStart ;
 + }
 SINGLE
 return Pair . makePair (
 relation . get ( longestChunkStart ) . index ( ) - NUMBER0 ,
 - relation . get ( longestChunkStart + longestChunk ) . index ( )
 + relation . get ( longestChunkStart + longestChunk - NUMBER0 ) . index ( )
 ) ;
 }
 }

Fix code to get best relation token span


<nb> implements ReaderInterfaces . OnReaderPostSelectedListener ,
 mPostAdapter = new ReaderPostAdapter ( context , getPostListType ( ) ) ;
 mPostAdapter . setOnPostSelectedListener ( this ) ;
 mPostAdapter . setOnTagSelectedListener ( this ) ;
 + mPostAdapter . setOnPostPopupListener ( this ) ;
 mPostAdapter . setOnDataLoadedListener ( mDataLoadedListener ) ;
 mPostAdapter . setOnDataRequestedListener ( mDataRequestedListener ) ;
 mPostAdapter . setOnReblogRequestedListener ( mRequestReblogListener ) ;


<nb> public class FuzzyKMeansMapper extends Mapper < WritableComparable < ? > , VectorWritab
 }

 if ( clusters . isEmpty ( ) ) {
 - throw new IllegalStateException ( STRING0 ) ;
 + throw new IllegalStateException ( STRING1 ) ;
 }
 }


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> import NAMESPACE ;
 protected static void commitDocument ( final Document document ) {
 PsiDocumentManager . getInstance ( getProject ( ) ) . commitDocument ( document ) ;
 }
 + protected static void commitAllDocuments ( ) {
 + PsiDocumentManager . getInstance ( getProject ( ) ) . commitAllDocuments ( ) ;
 + }

 protected Document getDocument ( final PsiFile file ) {
 return PsiDocumentManager . getInstance ( getProject ( ) ) . getDocument ( file ) ;
 <nb> public class InjectedLanguageUtil {
 }

 public static void clearCaches ( PsiFile injected , DocumentRange documentRange ) {
 - PsiElement host = injected . getContext ( ) ;
 - if ( host != null ) {
 - host . putUserData ( INJECTED_PSI , null ) ;
 - }
 VirtualFileDelegate virtualFile = ( VirtualFileDelegate ) injected . getVirtualFile ( ) ;
 injected . putUserData ( ResolveUtil . INJECTED_IN_ELEMENT , null ) ;
 ( ( PsiManagerEx ) injected . getManager ( ) ) . getFileManager ( ) . setViewProvider ( virtualFile , null ) ;


<nb> public class EditorFragment extends EditorFragmentAbstract implements View . OnCli

 if ( clipDescription . hasMimeType ( MIMETYPE_JPEG ) || clipDescription . hasMimeType ( MIMETYPE_PNG ) ) {
 mEditorFragmentListener . onMediaDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getUri ( ) ) ;
 - } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_PLAIN ) ||
 - clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_HTML ) ) {
 + } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_PLAIN ) ) {
 + mEditorFragmentListener . onTextDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getText ( )
 + . toString ( ) ) ;
 + } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_HTML ) ) {
 mEditorFragmentListener . onTextDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getHtmlText ( ) ) ;
 }
 break ;


<nb> public class JspCServletContext implements ServletContext {

 COMMENT
 + COMMENT
 + COMMENT
 + public String getContextPath ( ) {
 +
 + return ( null ) ;
 +
 + }
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class EncodedDataType extends Type
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class EncodedDataType extends Type
 {
 if ( getPresence ( ) != Presence . CONSTANT )
 {
 - throw new IllegalArgumentException ( STRING0 ) ;
 + throw new IllegalStateException ( STRING0 ) ;
 }

 return constValue ;

Changed size javadoc description and throw an IllegalStateException rather than a IllegalArgumentException on getConstValue


<nb> public class TaskAdapter extends CursorAdapter implements Filterable {
 }
 else
 {
 - checkBoxView . setBackgroundResource ( R . drawable . btn_check ) ;
 + checkBoxView . setButtonDrawable ( R . drawable . btn_check ) ;
 }
 if ( pictureView . getVisibility ( ) == View . VISIBLE ) {
 checkBoxView . setVisibility ( View . INVISIBLE ) ;
 <nb> public class EditTitleControlSet extends EditTextControlSet implements Importanc
 }
 else
 {
 - completeBox . setBackgroundResource ( R . drawable . btn_check ) ;
 + completeBox . setButtonDrawable ( R . drawable . btn_check ) ;
 }
 }

Fixed weird looking overlapping checkbox buttons


<nb> public class WordSplitter extends BaseSplitter {
 }

 @ nonnls
 - private static final Pattern SPECIAL = Pattern . compile ( STRING0 ) ;
 + private static final Pattern SPECIAL = Pattern . compile ( STRING1 ) ;

 @ override
 public void split ( @ nullable String text , @ notnull TextRange range , Consumer < TextRange > consumer ) {
 <nb> public class SplitterTest {

 @ test
 public void testSpecial ( ) {
 - String text = STRING2 ;
 + String text = STRING3 ;
 correctListToCheck ( PlainTextSplitter . getInstance ( ) , text , STRING4 , STRING4 ) ;
 }


<nb> import NAMESPACE ;
 public class NoopTask extends AbstractTask
 {
 private static final Logger log = new Logger ( NoopTask . class ) ;
 - private static int defaultRunTime = NUMBER0 ;
 - private static int defaultIsReadyTime = NUMBER1 ;
 - private static IsReadyResult defaultIsReadyResult = IsReadyResult . YES ;
 + private static final int defaultRunTime = NUMBER0 ;
 + private static final int defaultIsReadyTime = NUMBER1 ;
 + private static final IsReadyResult defaultIsReadyResult = IsReadyResult . YES ;

 enum IsReadyResult
 {
 <nb> public class NoopTask extends AbstractTask
 log . info ( STRING0 ) ;
 return TaskStatus . success ( getId ( ) ) ;
 }
 +
 + public static NoopTask create ( )
 + {
 + return new NoopTask ( null , NUMBER1 , NUMBER1 , null , null ) ;
 + }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING2 , label = STRING3 )
 + @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING4 , label = STRING3 )
 public class KubernetesEndpoint extends DefaultEndpoint {

 private static final Logger LOG = LoggerFactory . getLogger ( KubernetesEndpoint . class ) ;


<nb> public class FileFilter {

 static final String [ ] ignoreTestList = {
 STRING0 , SINGLE
 + STRING1 , SINGLE
 STRING2 , SINGLE
 STRING3 , SINGLE
 STRING4 , SINGLE

Add new LayoutTest fast dom DeviceOrientation basic operation html to skipped list


<nb> public class QuickStatusBarHeader extends BaseStatusBarHeader implements

 public void setupHost ( final QSTileHost host ) {
 mHost = host ;
 - host . setHeaderView ( this ) ;
 + host . setHeaderView ( mExpandIndicator ) ;
 mHeaderQsPanel . setQSPanelAndHeader ( mQsPanel , this ) ;
 mHeaderQsPanel . setHost ( host , null COMMENT ) ;
 setUserInfoController ( host . getUserInfoController ( ) ) ;


<nb> public abstract class HystrixCommandProperties {
 COMMENT
 COMMENT
 public HystrixProperty < Integer > executionTimeoutInMilliseconds ( ) {
 - return executionTimeoutInMilliseconds ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + return executionIsolationThreadTimeoutInMilliseconds ( ) ;
 }

 COMMENT

Make HystrixCommandProperties backwards compatible for classes which extend it


<nb> public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid
 public IQ handleIQ ( IQ packet ) throws PacketException , UnauthorizedException {
 ClientSession session = sessionManager . getSession ( packet . getFrom ( ) ) ;
 IQ reply = null ;
 + SINGLE
 + if ( session == null ) {
 + Log . error ( STRING0 +
 + sessionManager . getPreAuthenticatedKeys ( ) +
 + STRING1 +
 + packet . getFrom ( ) ) ;
 + SINGLE
 + reply = IQ . createResultIQ ( packet ) ;
 + reply . setChildElement ( packet . getChildElement ( ) . createCopy ( ) ) ;
 + reply . setError ( PacketError . Condition . internal_server_error ) ;
 + return reply ;
 + }
 SINGLE
 if ( ! enabled ) {
 reply = IQ . createResultIQ ( packet ) ;

Added debugging information when a session was not found


<nb> public final class OBJLoader implements AssetLoader {

 public Spatial createGeometry ( ) {
 Node groupNode = new Node ( objectName ) ;
 -
 + if ( objectName == null ) {
 + groupNode . setName ( STRING0 ) ;
 + }
 SINGLE
 SINGLE
 SINGLE


<nb> public abstract class CreateResourceDirectoryDialog extends DialogWrapper {

 @ override
 public JComponent getPreferredFocusedComponent ( ) {
 - return myResourceTypeComboBox ;
 + if ( myResourceTypeComboBox . isEnabled ( ) ) {
 + return myResourceTypeComboBox ;
 + }
 + else {
 + return myDirectoryNameTextField ;
 + }
 }

 public InputValidator getValidator ( ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PackageViewDescriptorImpl extends DeclarationDescriptorImpl impleme
 public Collection < DeclarationDescriptor > getAllDescriptors ( ) {
 List < DeclarationDescriptor > result = Lists . newArrayList ( ) ;
 for ( FqName subFqName : module . getPackageFragmentProvider ( ) . getSubPackagesOf ( fqName ) ) {
 - result . add ( getPackage ( subFqName . shortName ( ) ) ) ;
 + ContainerUtil . addIfNotNull ( result , getPackage ( subFqName . shortName ( ) ) ) ;
 }
 return result ;
 }

Do not add subpackages that are not found


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class ObjectIdentityImpl implements ObjectIdentity {
 public ObjectIdentityImpl ( Object object ) throws IdentityUnavailableException {
 Assert . notNull ( object , STRING0 ) ;

 - this . javaType = object . getClass ( ) ;
 + this . javaType = ClassUtils . getUserClass ( object . getClass ( ) ) ;

 Object result ;

Retrieve true underlaying class properly handling CGLIB enhanced versions


<nb> public class ZoomableDraweeView extends DraweeView < GenericDraweeHierarchy > {
 FLog . v ( TAG , STRING0 , this . hashCode ( ) ) ;
 return true ;
 }
 - return true ;
 + return false ;
 }

 @ override

Fix touch handling in the ZoomableDraweeView


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


<nb> public class BaseFileSystem implements FileSystem {
 @ override
 public void loadMetadata ( AlluxioURI path )
 throws FileDoesNotExistException , IOException , AlluxioException {
 + LOG . debug ( STRING0 , path ) ;
 loadMetadata ( path , LoadMetadataOptions . defaults ( ) ) ;
 }

 @ override
 public void loadMetadata ( AlluxioURI path , LoadMetadataOptions options )
 throws FileDoesNotExistException , IOException , AlluxioException {
 - LOG . debug ( STRING1 , path ) ;
 + LOG . debug ( STRING2 , path , options ) ;
 FileSystemMasterClient masterClient = mContext . acquireMasterClient ( ) ;
 try {
 masterClient . loadMetadata ( path , options ) ;


<nb> public class HttpPageBufferClient

 SINGLE
 int startOffset = Ints . saturatedCast ( sequenceId - startingSequenceId ) ;
 - if ( startOffset > pages . size ( ) ) {
 + if ( startOffset >= pages . size ( ) ) {
 SINGLE
 return ImmutableList . of ( ) ;
 }

Fix edge condition when checking number of pages


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ requestscoped
 public class MyRequestScopedBean {
 <nb>
 COMMENT
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - @ requestscoped
 - public class MySessionScopedBean {
 + @ sessionscoped
 + public class MySessionScopedBean implements Serializable {
 public String getID ( ) {
 return this + STRING0 ;
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
 protected Sdk getTestProjectJdk ( ) {
 return PluginTestCaseBase . fullJdk ( ) ;
 }
 +
 + @ override
 + protected void checkTestOutput ( ) throws Exception {
 + try {
 + super . checkTestOutput ( ) ;
 + }
 + catch ( ComparisonFailure e ) {
 + JetTestUtils . assertEqualsToFile (
 + new File ( getTestAppPath ( ) + File . separator + STRING0 + File . separator + getTestName ( true ) + STRING1 ) ,
 + e . getActual ( ) ) ;
 + }
 + }
 }

throw FileComparisonFailure instaed of ComparisonFailure


<nb> public class ConventionAwareHelper implements ConventionMapping {
 String propertyName = entry . getKey ( ) ;
 if ( ! ReflectionUtil . hasProperty ( source , propertyName ) ) {
 throw new InvalidUserDataException (
 - STRING0 + propertyName ) ;
 + STRING1 + propertyName ) ;
 }
 if ( entry . getValue ( ) == null ) {
 throw new IllegalArgumentException ( STRING2 + propertyName ) ;

Removed unnecessary space from debug message


<nb> public final class TestOptions {
 static {
 String value = System . getProperty ( STRING0 , STRING1 ) ;
 ENABLED = ! ConversionUtil . toBoolean ( value ) ;
 - System . out . println ( STRING2 ) ;
 + if ( ! ENABLED ) {
 + System . err . println ( STRING2 ) ;
 + }
 }

 public static boolean isTimingTestEnabled ( ) {

Printed a warning message when timing tests are disabled


<nb> public class RequestParams {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public RequestParams ( Object . . . keysAndValues ) {
 + int len = keysAndValues . length ;
 + if ( len % NUMBER0 != NUMBER1 )
 + throw new IllegalArgumentException ( STRING0 ) ;
 + for ( int i = NUMBER1 ; i < len ; i += NUMBER0 ) {
 + String key = String . valueOf ( keysAndValues [ i ] ) ;
 + String val = String . valueOf ( keysAndValues [ i + NUMBER2 ] ) ;
 + put ( key , val ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add varargs RequestParams convenience constructor


<nb> public class CDFitness implements Writable {

 CDFitness f = ( CDFitness ) obj ;

 - return tp == f . getFp ( ) && fp == f . getFp ( ) && tn == f . getTn ( ) && fn == f . getTn ( ) ;
 + return tp == f . getTp ( ) && fp == f . getFp ( ) && tn == f . getTn ( ) && fn == f . getFn ( ) ;
 }

 @ override