<nb> public interface Implementation extends InstrumentedType . Prepareable {
 this . visibility = visibility ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 protected abstract DelegationRecord with ( AccessType accessType ) ;

 @ override
 <nb> public interface MethodAccessorFactory {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 MethodDescription . InDefinedShape registerAccessorFor ( Implementation . SpecialMethodInvocation specialMethodInvocation , AccessType accessType ) ;
 <nb> public interface MethodAccessorFactory {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 MethodDescription . InDefinedShape registerGetterFor ( FieldDescription fieldDescription , AccessType accessType ) ;
 <nb> public interface MethodAccessorFactory {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 MethodDescription . InDefinedShape registerSetterFor ( FieldDescription fieldDescription , AccessType accessType ) ;


<nb> public class HaIdGeneratorFactory implements IdGeneratorFactory
 {
 if ( state == IdGeneratorState . PENDING )
 throw new IllegalStateException ( state . name ( ) ) ;
 -
 - try
 - {
 - return delegate . nextIdBatch ( size ) ;
 - }
 - catch ( UnsupportedOperationException e )
 - {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - try
 - {
 - Thread . sleep ( NUMBER0 ) ;
 - return delegate . nextIdBatch ( size ) ;
 - }
 - catch ( InterruptedException e1 )
 - {
 - throw new RuntimeException ( e1 ) ;
 - }
 - }
 +
 + return delegate . nextIdBatch ( size ) ;
 }

 @ override

Revert Temporary fix for race condition in switch to master using slave tx id generator


<nb> public class TourViewActivity extends SherlockFragmentActivity {
 showSelectedItem ( ) ;
 }
 }
 -
 +
 + @ override
 + public void onBackPressed ( ) {
 + if ( state == STATE_SELECT_TOUR ) {
 + super . onBackPressed ( ) ;
 + } else if ( state == STATE_TOUR_VIEW ) {
 + selectMenu ( R . string . sherpafy_tours ) ;
 + } else if ( state == STATE_STAGE_OVERVIEW ) {
 + selectMenu ( customization . getSelectedTour ( ) ) ;
 + }
 + }

 private ArrayAdapter < Object > setupAdapter ( ) {
 return new ArrayAdapter < Object > ( this , R . layout . sherpafy_drawer_list_item ) {

Added back handling for shertpafytoursactivity


<nb> public class NcsaRequestLogFormatter implements RequestLogger . Formatter {
 Request request = outcome . getRequest ( ) ;
 SentResponse response = outcome . getResponse ( ) ;

 - builder . append ( request . getRemoteAddress ( ) ) ;
 + builder . append ( request . getRemoteAddress ( ) . getHostText ( ) ) ;
 builder . append ( STRING0 ) ;

 builder . append ( request . maybeGet ( UserId . class ) . map ( Object : : toString ) . orElse ( STRING1 ) ) ;
 <nb> public class NcsaRequestLogFormatter implements RequestLogger . Formatter {
 builder . append ( STRING2 ) ;

 builder . append ( request . getMethod ( ) . getName ( ) ) ;
 - builder . append ( STRING3 ) ;
 + builder . append ( STRING4 ) ;

 builder . append ( request . getRawUri ( ) ) ;
 builder . append ( STRING4 ) ;


<nb> public class HomematicBinding extends AbstractActiveBinding < HomematicBindingProv
 COMMENT
 @ override
 protected long getRefreshInterval ( ) {
 - return context . getConfig ( ) . getAliveInterval ( ) * NUMBER0 ;
 + return NUMBER1 ;
 }

 COMMENT

Changed alive validation check to one minute


<nb> public final class NodeUtil {
 case Token . INSTANCEOF :
 case Token . TYPEOF :
 case Token . AND :
 + case Token . OR :
 return true ;

 case Token . NE :
 <nb> public final class NewTypeInferenceES5OrLowerTest extends NewTypeInferenceTestBa
 STRING0 ,
 STRING1 ,
 STRING2 ) ) ;
 +
 + typeCheck ( LINE_JOINER . join (
 + STRING3 ,
 + STRING4 ,
 + STRING5 ,
 + STRING2 ) ) ;
 }

 public void testFunctionReturnTypeSpecialization ( ) {

NTI Fix regression and correctly tighten property types


<nb> import NAMESPACE ;
 public class RenderManager {

 private static final Logger logger = Logger . getLogger ( RenderManager . class . getName ( ) ) ;
 +
 private Renderer renderer ;
 private Timer timer ;
 private ArrayList < ViewPort > preViewPorts = new ArrayList < ViewPort > ( ) ;
 <nb>
 COMMENT
 COMMENT
 COMMENT
 -
 package NAMESPACE ;

 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class Timer {
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Timer {
 COMMENT
 public abstract void update ( ) ;

 -
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public abstract void reset ( ) ;
 <nb> public class Picture extends Geometry {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class HttpGetter {
 HttpClient client = newClient ( ) ;
 try {
 HttpGet httpget = new HttpGet ( url ) ;
 + httpget . addHeader ( HttpHeaders . ACCEPT_LANGUAGE , STRING0 ) ;
 httpget . addHeader ( HttpHeaders . PRAGMA , STRING1 ) ;
 httpget . addHeader ( HttpHeaders . CACHE_CONTROL , STRING2 ) ;
 httpget . addHeader ( HttpHeaders . USER_AGENT ,


<nb> public abstract class AbstractSharedSessionContract implements SharedSessionCont
 SINGLE
 SINGLE
 ois . defaultReadObject ( ) ;
 + sessionEventsManager = new SessionEventListenerManagerImpl ( ) ;

 SINGLE
 SINGLE

Fix SessionEventListenerManager serialization issue


<nb> public class ShowcaseView extends RelativeLayout
 invalidate ( ) ;
 }

 + public void setShowcaseX ( float x ) {
 + setShowcasePosition ( x , showcaseY ) ;
 + }
 +
 + public void setShowcaseY ( float y ) {
 + setShowcasePosition ( showcaseX , y ) ;
 + }
 +
 + public float getShowcaseX ( ) {
 + return showcaseX ;
 + }
 +
 + public float getShowcaseY ( ) {
 + return showcaseY ;
 + }
 +
 public void setShowcaseItem ( final int itemType , final int actionItemId ,
 final Activity activity ) {
 post ( new Runnable ( ) {


<nb> public class IOConverterTest extends ContextTestSupport {
 byte [ ] data = IOConverter . toBytes ( new FileInputStream ( file ) ) ;
 assertEquals ( STRING0 , file . length ( ) , data . length ) ;
 assertEquals ( STRING1 , ( char ) data [ NUMBER0 ] ) ;
 - char testChar = ( char ) data [ data . length - NUMBER1 ] ;
 - if ( System . getProperty ( STRING2 ) . startsWith ( STRING3 ) ) {
 - SINGLE
 - testChar = ( char ) data [ data . length - NUMBER2 ] ;
 - }
 - assertEquals ( STRING4 , testChar ) ;
 - SINGLE
 - assertEquals ( STRING5 , ( char ) data [ data . length - NUMBER3 ] ) ;
 +
 + SINGLE
 + String s = new String ( data ) ;
 + assertTrue ( STRING6 , s . contains ( STRING7 ) ) ;
 }

 public void testToByteArray ( ) throws Exception {

Polished test due user forum issue on windows


<nb> public abstract class DataConnection extends HierarchicalStateMachine {

 SINGLE
 boolean okToUseSystemPropertyDns = false ;
 + cid = response . cid ;
 String propertyPrefix = STRING0 + response . ifname + STRING1 ;
 String dnsServers [ ] = new String [ NUMBER0 ] ;
 dnsServers [ NUMBER1 ] = SystemProperties . get ( propertyPrefix + STRING2 ) ;


<nb> public interface Try < T > extends TraversableOnce < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Updating thenRun to allow chaining of previous success value


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

 import NAMESPACE ;
 <nb> public class ManagedModelCreators {
 . descriptor ( descriptor ) ;

 if ( schema . getKind ( ) == ModelSchema . Kind . STRUCT && Named . class . isAssignableFrom ( type . getRawClass ( ) ) ) {
 - builder . action ( ModelActionRole . Initialize , new NamedInitializer ( path , descriptor ) ) ;
 + SINGLE
 + SINGLE
 + if ( ( ( ModelStructSchema < T > ) schema ) . getProperties ( ) . containsKey ( STRING0 ) ) {
 + builder . action ( ModelActionRole . Initialize , new NamedInitializer ( path , descriptor ) ) ;
 + }
 }
 if ( initializer != null ) {
 builder . action ( ModelActionRole . Initialize , initializer ) ;

Only set name on new struct if name property is managed


<nb>
 package NAMESPACE ;

 public class NumberUtils {
 + COMMENT
 + COMMENT
 + static public boolean intToFloatColorMask = true ;
 +
 public static int floatToIntBits ( float value ) {
 return Float . floatToIntBits ( value ) ;
 }
 <nb> public class NumberUtils {
 COMMENT
 COMMENT
 public static float intToFloatColor ( int value ) {
 - return Float . intBitsToFloat ( value & NUMBER0 ) ;
 + return Float . intBitsToFloat ( intToFloatColorMask ? ( value & NUMBER0 ) : value ) ;
 }

 public static float intBitsToFloat ( int value ) {

Added boolean to turn off float color mask


<nb> public class FieldLookup {
 value = null ;
 valueLoaded = false ;
 values . clear ( ) ;
 - valuesLoaded = false ;
 doc = null ;
 }


<nb> public class AndroidMessenger extends BaseMessenger {
 }

 @ override
 + public void changeGroupAvatar ( int gid , String descriptor ) {
 + try {
 + Bitmap bmp = ImageHelper . loadOptimizedHQ ( descriptor ) ;
 + if ( bmp == null ) {
 + return ;
 + }
 + String resultFileName = getExternalTempFile ( STRING0 , STRING1 ) ;
 + if ( resultFileName == null ) {
 + return ;
 + }
 + ImageHelper . save ( bmp , resultFileName ) ;
 +
 + super . changeGroupAvatar ( gid , resultFileName ) ;
 + } catch ( IOException e ) {
 + e . printStackTrace ( ) ;
 + }
 + }
 +
 + @ override
 public void changeAvatar ( String descriptor ) {
 try {
 Bitmap bmp = ImageHelper . loadOptimizedHQ ( descriptor ) ;


<nb> public abstract class ChartView extends RelativeLayout {
 COMMENT
 public void addData ( ArrayList < ChartSet > data ) {

 - final int nEntries = data . get ( NUMBER0 ) . size ( ) ;
 - for ( ChartSet set : data )
 - if ( nEntries != set . size ( ) )
 - Log . e ( TAG , STRING0 ,
 - new IllegalArgumentException ( ) ) ;
 -
 this . data = data ;
 }

removed addData Array size check due to performance decrease


<nb> import NAMESPACE ;
 file = STRING0
 ) }
 )
 - public final class ProjectViewImpl extends ProjectView implements PersistentStateComponent < Element > , Disposable , QuickActionProvider , BusyObject {
 + public class ProjectViewImpl extends ProjectView implements PersistentStateComponent < Element > , Disposable , QuickActionProvider , BusyObject {
 private static final Logger LOG = Logger . getInstance ( STRING1 ) ;
 private final CopyPasteDelegator myCopyPasteDelegator ;
 private boolean isInitialized ;


<nb> public class BpmnXMLConverter implements BpmnXMLConstants {
 addConverter ( AlfrescoUserTaskXMLConverter . getXMLType ( ) , AlfrescoUserTaskXMLConverter . getBpmnElementType ( ) , AlfrescoUserTaskXMLConverter . class ) ;
 }

 - private static void addConverter ( String elementName , Class < ? extends BaseElement > elementClass ,
 + public static void addConverter ( String elementName , Class < ? extends BaseElement > elementClass ,
 Class < ? extends BaseBpmnXMLConverter > converter ) {

 convertersToBpmnMap . put ( elementName , converter ) ;

Added possibility to register custom XMLConverters changed visibility


<nb> public class Consts {
 kwd . add ( STRING0 ) ;
 kwd . add ( STRING1 ) ;
 kwd . add ( STRING2 ) ;
 + kwd . add ( STRING3 ) ;
 kwd . add ( STRING4 ) ;
 kwd . add ( STRING5 ) ;
 kwd . add ( STRING6 ) ;


<nb> public class DbUtils {
 return getInstance ( config ) ;
 }

 + public static DbUtils create ( Context context , String sdCardPath , String dbName , int dbVersion , DbUpgradeListener dbUpgradeListener ) throws DbException {
 + DaoConfig config = new DaoConfig ( context ) ;
 + config . setSdCardPath ( sdCardPath ) ;
 + config . setDbName ( dbName ) ;
 + config . setDbVersion ( dbVersion ) ;
 + config . setDbUpgradeListener ( dbUpgradeListener ) ;
 + return getInstance ( config ) ;
 + }
 +
 public static DbUtils create ( DaoConfig daoConfig ) throws DbException {
 return getInstance ( daoConfig ) ;
 }


<nb> public class OnSubscribeToObservableFuture {
 }
 } ) ) ;
 try {
 + SINGLE
 + if ( subscriber . isUnsubscribed ( ) ) {
 + return ;
 + }
 T value = ( unit == null ) ? ( T ) that . get ( ) : ( T ) that . get ( time , unit ) ;
 subscriber . onNext ( value ) ;
 subscriber . onCompleted ( ) ;
 <nb> public class OnSubscribeToObservableFuture {
 SINGLE
 SINGLE
 SINGLE
 + if ( subscriber . isUnsubscribed ( ) ) {
 + SINGLE
 + return ;
 + }
 subscriber . onError ( e ) ;
 }
 }

Modify OnSubscribeToObservableFuture to return early if unsubscribe without emitting anything


<nb> import NAMESPACE ;

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

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

 @ test
 + public void Constant ( ) {
 + SINGLE
 + query ( ) . from ( cat ) . list ( new QTuple ( cat . id , Expressions . constantAs ( STRING0 , new StringPath ( STRING1 ) ) ) ) ;
 + }
 +
 + @ test
 public void DistinctResults ( ) {
 System . out . println ( STRING2 ) ;
 SearchResults < Date > res = query ( ) . from ( cat ) . limit ( NUMBER0 ) . listResults ( cat . birthdate ) ;


<nb> public class ChapterListAdapter extends ArrayAdapter < Chapter > {
 public int getCount ( ) {
 SINGLE
 int counter = NUMBER0 ;
 - for ( Chapter chapter : chapters ) {
 - if ( ! ignoreChapter ( chapter ) ) {
 - counter ++ ;
 + if ( chapters != null ) {
 + for ( Chapter chapter : chapters ) {
 + if ( ! ignoreChapter ( chapter ) ) {
 + counter ++ ;
 + }
 }
 }
 return counter ;


<nb> public class PostprocessReformattingAspect implements PomModelAspect , Disposable
 private final Set < FileViewProvider > myUpdatedProviders = new HashSet < FileViewProvider > ( ) ;

 private ApplicationListener myApplicationListener = new ApplicationAdapter ( ) {
 - private boolean myInWriteAction = false ;
 -
 public void writeActionStarted ( final Object action ) {
 - assert ! myInWriteAction ;
 final Project project = CommandProcessor . getInstance ( ) . getCurrentCommandProject ( ) ;
 if ( project == myProject ) {
 - myInWriteAction = true ;
 myPostponedCounter ++ ;
 }
 }

 public void writeActionFinished ( final Object action ) {
 - if ( myInWriteAction ) {
 - myInWriteAction = false ;
 + final Project project = CommandProcessor . getInstance ( ) . getCurrentCommandProject ( ) ;
 + if ( project == myProject ) {
 decrementPostponedCounter ( ) ;
 }
 }


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

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


<nb> public class ByWord {

 if ( isAlpha ( ch ) ) {
 int startOffset = offset ;
 - offset ++ ; SINGLE

 int h = NUMBER0 ;
 while ( offset < len ) {

the first character should affect hash code


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public abstract class BaseRefreshDrawable extends Drawable implements Drawable . Callback , Animatable {

 private boolean mEndOfRefreshing ;
 <nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class SunRefreshDrawable extends BaseRefreshDrawable implements Animatable {


<nb> public class CssCompressor {
 }
 m . appendTail ( sb ) ;
 css = sb . toString ( ) ;
 - css = css . replaceAll ( STRING0 , STRING1 ) ;
 + css = css . replaceAll ( STRING2 , STRING1 ) ;
 css = css . replaceAll ( STRING3 , STRING4 ) ;

 SINGLE
 - css = css . replaceAll ( STRING5 , STRING1 ) ;
 + css = css . replaceAll ( STRING6 , STRING1 ) ;

 SINGLE
 css = css . replaceAll ( STRING7 , STRING8 ) ;


<nb> public class ChunkOptionsPopupPanel extends ThemedPopupPanel

 static {
 BOOLEAN_CHUNK_OPTIONS = new HashMap < String , String > ( ) ;
 - BOOLEAN_CHUNK_OPTIONS . put ( STRING0 , STRING1 ) ;
 - BOOLEAN_CHUNK_OPTIONS . put ( STRING2 , STRING3 ) ;
 - BOOLEAN_CHUNK_OPTIONS . put ( STRING4 , STRING5 ) ;
 + BOOLEAN_CHUNK_OPTIONS . put ( STRING0 , STRING6 ) ;
 + BOOLEAN_CHUNK_OPTIONS . put ( STRING2 , STRING7 ) ;
 + BOOLEAN_CHUNK_OPTIONS . put ( STRING4 , STRING8 ) ;
 }

 public interface Styles extends CssResource


<nb> class InstallPluginCommand extends Command {

 SINGLE
 static final Set < String > MODULES = unmodifiableSet ( newHashSet (
 + STRING0 ,
 STRING1 ,
 - STRING2 ) ) ;
 + STRING2 ,
 + STRING3 ,
 + STRING4 ) ) ;

 SINGLE
 static final Set < String > OFFICIAL_PLUGINS = unmodifiableSet ( new LinkedHashSet < > ( Arrays . asList (
 <nb> class InstallPluginCommand extends Command {
 STRING5 ,
 STRING6 ,
 STRING7 ,
 + STRING8 ,
 + STRING9 ,
 STRING10 ,
 - STRING3 ,
 STRING11 ,
 STRING12 ,
 STRING13 ,

Fix list of modules and official plugins


<nb> public class Vpn extends BaseNetworkStateTracker {
 int appId = UserHandle . getAppId ( Binder . getCallingUid ( ) ) ;
 final long token = Binder . clearCallingIdentity ( ) ;
 try {
 - SINGLE
 + SINGLE
 PackageManager pm = mContext . getPackageManager ( ) ;
 ApplicationInfo app = pm . getApplicationInfo ( VpnConfig . DIALOGS_PACKAGE , NUMBER0 ) ;
 - if ( appId == app . uid ) {
 + if ( ( ( app . flags & ApplicationInfo . FLAG_SYSTEM ) != NUMBER0 ) && ( appId == app . uid ) ) {
 return ;
 }
 } catch ( Exception e ) {

Add system partition check for vpn dialogs


<nb> public class HotThreadsTest extends ElasticsearchIntegrationTest {
 client ( ) . prepareIndex ( STRING0 , STRING1 , STRING2 ) . setSource ( STRING3 , STRING4 ) ,
 client ( ) . prepareIndex ( STRING0 , STRING1 , STRING5 ) . setSource ( STRING3 , STRING6 ) ) ;
 ensureSearchable ( ) ;
 - if ( randomBoolean ( ) ) {
 - optimize ( ) ;
 - }
 while ( latch . getCount ( ) > NUMBER0 ) {
 assertHitCount (
 client ( ) . prepareSearch ( )

Remove unnecessary optimize call that destabelizes test


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MetricsPluginTest extends AbstractPerformanceMonitorPluginTest {
 }

 @ test
 + @ ignore
 public void testRunWithProblematicProbe ( ) throws IOException {
 metricsRegistry . register ( this , STRING0 , MANDATORY , new LongProbeFunction ( ) {
 @ override

Disabling MetricsPluginTest testRunWithProblematicProbe due to spurious failure


<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {

 private class Handler implements OpenStreetMapContentHandler {

 - private static final double VISIBILITY_EPSILON = FLOAT0 ;
 + private static final double VISIBILITY_EPSILON = FLOAT1 ;
 private Map < Long , OSMNode > _nodes = new HashMap < Long , OSMNode > ( ) ;
 private Map < Long , OSMWay > _ways = new HashMap < Long , OSMWay > ( ) ;
 private List < Area > _areas = new ArrayList < Area > ( ) ;

again reduce epsilon to handle really tiny features


<nb> public class RemoteOperationResult implements Serializable {
 }

 public boolean isTemporalRedirection ( ) {
 - return ( mHttpCode == NUMBER0 || mHttpCode == NUMBER1 ) ;
 + return ( mHttpCode == NUMBER0 || mHttpCode == NUMBER1 ||
 + mRedirectedLocation . toUpperCase ( ) . contains ( STRING0 ) ||
 + mRedirectedLocation . toLowerCase ( ) . contains ( STRING1 ) ) ;
 }

 public String getRedirectedLocation ( ) {

add an extra condition to check of redirection


<nb> public final class NioEventLoop extends SingleThreadEventLoop {
 try {
 selector . close ( ) ;
 } catch ( IOException e ) {
 - logger . warn (
 - STRING0 , e ) ;
 + logger . warn ( STRING0 , e ) ;
 }
 }


<nb> public class SampleTask extends AbstractTask {
 int counter = NUMBER0 ;
 while ( ! this . taskCanceled && in . hasNext ( ) ) {
 KeyValuePair < Key , Value > pair = in . next ( ) ;
 - out . collect ( pair . getKey ( ) , pair . getValue ( ) ) ;
 - if ( counter >= NUMBER1 ) {
 - break ;
 + counter ++ ;
 + if ( ( counter % NUMBER2 ) == NUMBER0 ) {
 + out . collect ( pair . getKey ( ) , pair . getValue ( ) ) ;
 }
 -
 - ++ counter ;
 SINGLE
 }
 }
 - }
 + }


<nb> public final class BlockMaster extends MasterBase implements ContainerIdGenerabl
 public long getNewContainerId ( ) {
 synchronized ( mBlockContainerIdGenerator ) {
 long containerId = mBlockContainerIdGenerator . getNewContainerId ( ) ;
 - writeJournalEntry ( new BlockContainerIdGeneratorEntry ( containerId ) ) ;
 + writeJournalEntry ( mBlockContainerIdGenerator . toJournalEntry ( ) ) ;
 flushJournal ( ) ;
 return containerId ;
 }

BlocakMaster writes wrong containerID into jounal


<nb> public class DevicePolicyManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SecurityLog {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static final int TAG_APP_PROCESS_START = SecurityLogTags . SECURITY_APP_PROCESS_START ;
 COMMENT


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

 + COMMENT
 + COMMENT
 + COMMENT
 + public void clearModes ( ) {
 + modes . clear ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void addMode ( TraverseMode mode ) {
 modes . setMode ( mode , true ) ;
 }
 -
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void addMode ( List < TraverseMode > mList ) {
 for ( TraverseMode m : mList ) {
 addMode ( m ) ;
 <nb> public class TraverseModeSet implements Cloneable , Serializable {
 throw new RuntimeException ( e ) ;
 }
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void clear ( ) {
 + modes = NUMBER0 ;
 + }

 COMMENT
 COMMENT

Allow clients to clear the TraverseModeSet held by RoutingRequest


<nb> public class EditorModificationUtil {
 }

 private static String getStringContent ( final Transferable content ) throws UnsupportedFlavorException , IOException {
 + RawText raw = null ;
 + try {
 + raw = ( RawText ) content . getTransferData ( RawText . FLAVOR ) ;
 + }
 + catch ( UnsupportedFlavorException e ) {
 + SINGLE
 + }
 + catch ( IOException e ) {
 + SINGLE
 + }
 +
 String s ;
 - RawText raw = ( RawText ) content . getTransferData ( RawText . FLAVOR ) ;
 if ( raw != null ) {
 s = raw . rawText ;
 }


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

 import NAMESPACE ;


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 COMMENT
 - public interface ResourceElement extends AndroidDomElement {
 + public interface ResourceElement extends GenericDomValue < String > , AndroidDomElement {
 @ required
 GenericAttributeValue < String > getName ( ) ;
 -
 - String getValue ( ) ;
 -
 - void setValue ( String s ) ;
 }


<nb> class LoadListener extends Handler implements EventHandler {
 mCacheLoader != null ) ? HTTP_OK : mStatusCode ;
 SINGLE
 final int nativeResponse = nativeCreateResponse (
 - mUrl , statusCode , mStatusText ,
 + originalUrl ( ) , statusCode , mStatusText ,
 mMimeType , mContentLength , mEncoding ) ;
 if ( mHeaders != null ) {
 mHeaders . getHeaders ( new Headers . HeaderCallback ( ) {
 <nb> class LoadListener extends Handler implements EventHandler {
 return ;
 }

 - if ( mOriginalUrl == null ) {
 - mOriginalUrl = mUrl ;
 - }

 SINGLE
 if ( getErrorID ( ) == OK ) {
 <nb> class LoadListener extends Handler implements EventHandler {
 WebViewWorker . MSG_REMOVE_CACHE , this ) . sendToTarget ( ) ;
 }

 + SINGLE
 + mOriginalUrl = redirectTo ;
 SINGLE
 setUrl ( redirectTo ) ;


<nb> public class DefaultXmlExtension extends XmlExtension {
 final String name = tag . getLocalName ( ) ;
 final Set < String > byTagName = getNamespacesByTagName ( name , file ) ;
 if ( ! byTagName . isEmpty ( ) ) {
 - byTagName . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ;
 - return byTagName ;
 + Set < String > filtered = new HashSet < String > ( byTagName ) ;
 + filtered . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ;
 + return filtered ;
 }
 final Set < String > set = guessNamespace ( file , name ) ;
 set . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ;

do not remove elements from returned sets


<nb> public final class PrintHelper {
 COMMENT
 COMMENT
 public static boolean systemSupportsPrint ( ) {
 - if ( STRING0 . equals ( Build . VERSION . CODENAME ) SINGLE
 - || Build . VERSION . SDK_INT > NUMBER0 ) {
 -
 + if ( Build . VERSION . SDK_INT >= NUMBER1 ) {
 + SINGLE
 return true ;
 }
 return false ;
 <nb> public class ScaleGestureDetectorCompat {

 static {
 final int version = android . os . Build . VERSION . SDK_INT ;
 - if ( version > NUMBER0 ) { SINGLE
 + if ( version >= NUMBER1 ) { SINGLE
 IMPL = new ScaleGestureDetectorCompatKitKatImpl ( ) ;
 } else {
 IMPL = new BaseScaleGestureDetectorImpl ( ) ;

Update support lib to match final KitKat API version


<nb> public abstract class DefaultMapAggregateMessageTask < P >
 }
 }
 } finally {
 - combinedResult . onCombineFinished ( ) ;
 + if ( combinedResult != null ) {
 + combinedResult . onCombineFinished ( ) ;
 + }
 }
 return combinedResult ;
 }
 -
 }

Fixed FindBugs issue in DefaultMapAggregateMessageTask


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

core Remove extra li HTML tags in TypeInformation JavaDoc class header


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

 + if ( options . closurePass && options . checkMissingGetCssNameLevel . isOn ( )
 + && ! options . skipNonTranspilationPasses ) {
 + checks . add ( closureCheckGetCssName ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public final class DefaultPassConfig extends PassConfig {

 SINGLE

 - if ( options . closurePass && options . checkMissingGetCssNameLevel . isOn ( ) ) {
 - checks . add ( closureCheckGetCssName ) ;
 - }
 -
 if ( options . syntheticBlockStartMarker != null ) {
 SINGLE
 checks . add ( createSyntheticBlocks ) ;

Moving closureCheckGetCssName pass to before the later transpilation step


<nb> public class PinotAdministrator {

 public static void main ( String [ ] args ) throws Exception {
 PinotAdministrator pinotAdministrator = new PinotAdministrator ( ) ;
 -
 pinotAdministrator . execute ( args ) ;
 - System . exit ( pinotAdministrator . getStatus ( ) ? NUMBER0 : NUMBER1 ) ;
 }

 public void printUsage ( ) {

Removing sys exit from PinotAdministrator


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class LoggingHandler implements ChannelUpstreamHandler , ChannelDownstream
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public InternalLogLevel getLevel ( ) {
 + return level ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DocumentOutlineWidget extends Composite

 private void onValueChanged ( )
 {
 - buildScopeTree ( ) ;
 - resetTreeStyles ( ) ;
 + SINGLE
 + SINGLE
 + if ( docUpdateTimer_ != null )
 + docUpdateTimer_ . cancel ( ) ;
 +
 + docUpdateTimer_ = new Timer ( )
 + {
 +
 + @ override
 + public void run ( )
 + {
 + buildScopeTree ( ) ;
 + resetTreeStyles ( ) ;
 + }
 + } ;
 +
 + docUpdateTimer_ . schedule ( NUMBER0 ) ;
 }

 private void buildScopeTree ( )
 <nb> public class DocumentOutlineWidget extends Composite
 private final TextEditingTarget target_ ;

 private final Timer renderTimer_ ;
 + private Timer docUpdateTimer_ ;
 private JsArray < Scope > scopeTree_ ;

 SINGLE


<nb> public interface Storage < K , R > {

 R get ( K key ) ;

 - Object removeRecord ( R record ) ;
 + void removeRecord ( R record ) ;

 boolean containsKey ( K key ) ;

 <nb> class StorageImpl < R extends Record > implements Storage < Data , R > {
 }

 @ override
 - public Object removeRecord ( R record ) {
 + public void removeRecord ( R record ) {
 if ( record == null ) {
 - return null ;
 + return ;
 }

 Data key = record . getKey ( ) ;
 <nb> class StorageImpl < R extends Record > implements Storage < Data , R > {

 updateSizeEstimator ( - calculateHeapCost ( record ) ) ;
 updateSizeEstimator ( - calculateHeapCost ( key ) ) ;
 -
 - Object oldValue = record . getValue ( ) ;
 record . invalidate ( ) ;
 - return oldValue ;
 }

 protected void updateSizeEstimator ( long recordSize ) {

removed return value from Storage removeRecord


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ContentChooser < Data > extends DialogWrapper {

 private static class MyListCellRenderer extends ColoredListCellRenderer {
 protected void customizeCellRenderer ( JList list , Object value , int index , boolean selected , boolean hasFocus ) {
 + SINGLE
 + if ( UIUtil . isUnderGTKLookAndFeel ( ) ) {
 + final Color background = selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ;
 + UIUtil . changeBackGround ( this , background ) ;
 + }
 setIcon ( textIcon ) ;
 if ( index <= NUMBER0 ) {
 append ( String . valueOf ( ( index + NUMBER1 ) % NUMBER2 ) + STRING0 , SimpleTextAttributes . GRAYED_ATTRIBUTES ) ;


<nb> package NAMESPACE ;

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

 import static NAMESPACE ;

 + @ runwith ( JUnit4 . class )
 public final class ExtensionWithStateTest {
 static class A { }


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

 import NAMESPACE ;
 <nb> public class NotificationStackScrollLayout extends ViewGroup
 super . onInterceptTouchEvent ( ev ) ;
 }

 + @ override
 + protected void onViewRemoved ( View child ) {
 + super . onViewRemoved ( child ) ;
 + mCurrentStackScrollState . removeViewStateForView ( child ) ;
 + }
 +
 private boolean onInterceptTouchEventScroll ( MotionEvent ev ) {
 COMMENT
 COMMENT
 <nb> public class StackScrollState {
 return mStateMap . get ( requestedView ) ;
 }

 + public void removeViewStateForView ( View child ) {
 + mStateMap . remove ( child ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Fix memory leak in NotificationStackScrollLayout


<nb> public class OperationSetBasicInstantMessagingIcqImpl
 }

 String msgContent ;
 + String msgContentType ;
 if ( msgBody . startsWith ( defaultHtmlStartTag ) )
 {
 msgContent = msgBody . substring (
 msgBody . indexOf ( defaultHtmlStartTag )
 + defaultHtmlStartTag . length ( ) ,
 msgBody . indexOf ( defaultHtmlEndTag ) ) ;
 +
 + msgContentType = HTML_MIME_TYPE ;
 }
 else
 + {
 msgContent = msgBody ;
 + msgContentType = DEFAULT_MIME_TYPE ;
 + }

 Message newMessage =
 - createMessage ( msgContent , HTML_MIME_TYPE ,
 + createMessage ( msgContent , msgContentType ,
 DEFAULT_MIME_ENCODING , null ) ;

 Contact sourceContact =


<nb> public interface TimelineMethods {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 ResponseList < Status > getHomeTimeline ( Paging paging ) throws TwitterException ;

adding setHttpMaxTotalConnections and setHttpMaxTotalConnections to ConfigurationBuilder


<nb> public final class TransportFrameUtil {
 COMMENT
 public static byte [ ] [ ] toHttp2Headers ( Metadata headers ) {
 byte [ ] [ ] serializedHeaders = headers . serialize ( ) ;
 - ArrayList < byte [ ] > result = new ArrayList < byte [ ] > ( ) ;
 + ArrayList < byte [ ] > result = new ArrayList < byte [ ] > ( serializedHeaders . length ) ;
 for ( int i = NUMBER0 ; i < serializedHeaders . length ; i += NUMBER1 ) {
 byte [ ] key = serializedHeaders [ i ] ;
 byte [ ] value = serializedHeaders [ i + NUMBER2 ] ;

Set likely final size of array in toHttp2Headers


<nb> public class ManagedMetricsRoutePolicyTest extends CamelTestSupport {
 SINGLE
 Set < ObjectName > set = getMBeanServer ( ) . queryNames ( new ObjectName ( STRING0 ) , null ) ;
 assertEquals ( NUMBER0 , set . size ( ) ) ;
 - }
 + }

 @ override
 protected RouteBuilder createRouteBuilder ( ) throws Exception {


<nb> public class XDebuggerEvaluationDialog extends DialogWrapper {
 @ override
 public void actionPerformed ( AnActionEvent e ) {
 doOKAction ( ) ;
 - }
 - } . registerCustomShortcutSet ( new CustomShortcutSet ( KeyStroke . getKeyStroke ( KeyEvent . VK_ENTER , InputEvent . CTRL_DOWN_MASK ) ) , getRootPane ( ) , myDisposable ) ;
 -
 - new AnAction ( ) {
 - @ override
 - public void actionPerformed ( AnActionEvent e ) {
 - doOKAction ( ) ;
 addToWatches ( ) ;
 }
 } . registerCustomShortcutSet ( new CustomShortcutSet ( KeyStroke . getKeyStroke ( KeyEvent . VK_ENTER , InputEvent . CTRL_DOWN_MASK | InputEvent . SHIFT_DOWN_MASK ) ) , getRootPane ( ) , myDisposable ) ;


<nb> public class LlapDaemon extends AbstractService implements ContainerRunner , Llap

 public LlapDaemon ( LlapDaemonConfiguration daemonConf ) {
 super ( STRING0 ) ;
 +
 + printAsciiArt ( ) ;
 +
 SINGLE
 SINGLE
 this . numExecutors = daemonConf . getInt ( LlapDaemonConfiguration . LLAP_DAEMON_NUM_EXECUTORS ,
 <nb> public class LlapDaemon extends AbstractService implements ContainerRunner , Llap
 this . server = new LlapDaemonProtocolServerImpl ( daemonConf , this , address ) ;
 this . containerRunner = new ContainerRunnerImpl ( numExecutors , localDirs , shufflePort , address ,
 memoryPerInstance , metrics ) ;
 + }

 + private void printAsciiArt ( ) {
 + final String asciiArt = STRING1 +
 + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING10 ;
 + LOG . info ( STRING11 + asciiArt ) ;
 }

 @ override

Print ASCII art of LLAP during daemon startup Prasanth Jayachandran


<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
 mSelfHosted = true ;
 }

 - public void setNewLoginView ( boolean isWPCom ) {
 - mForgotPassword . setVisibility ( View . GONE ) ;
 - mAddSelfHostedButton . setVisibility ( View . GONE ) ;
 - mCreateAccountButton . setVisibility ( View . GONE ) ;
 - if ( isWPCom ) {
 - mUrlButtonLayout . setVisibility ( View . GONE ) ;
 - } else {
 - mUrlButtonLayout . setVisibility ( View . VISIBLE ) ;
 - }
 - mSelfHosted = ! isWPCom ;
 - }
 -
 @ override
 public void onConfigurationChanged ( Configuration newConfig ) {
 super . onConfigurationChanged ( newConfig ) ;

Removing work for magic links as that is all handled in MagicLinkSignInFragment now


<nb> public class ResultSetViewer extends Viewer implements IDataSourceProvider , ISpr
 SINGLE
 }

 + @ notnull
 public Spreadsheet getSpreadsheet ( )
 {
 return spreadsheet ;

Activate RS by a single CTRL TAB in SQL editor


<nb> import NAMESPACE ;

 public class Logger
 {
 - SINGLE
 -
 java . util . logging . Logger logger ;

 public static Logger getLogger ( Class < ? > clazz )
 <nb> public class Logger
 public void log ( Level level , String message , Object . . . parameters )
 {

 - if ( logger . isLoggable ( level ) )
 + final String logMessage = String . format ( message , parameters ) ;
 + if ( logger != null && logger . isLoggable ( level ) )
 + {
 + logger . log ( level , logMessage ) ;
 + }
 + else
 {
 - logger . log ( level , String . format ( message , parameters ) ) ;
 + System . out . println (
 + String . format ( STRING0 , level . getName ( ) , logMessage ) ) ;
 }
 }

Added an untested check to see if logger is configured before using it in server


<nb> public class BuildAndDecodeJarTest {
 private static ExtFile sTestOrigDir ;
 private static ExtFile sTestNewDir ;

 - private final static Logger LOGGER = Logger . getLogger ( BuildAndDecodeTest . class . getName ( ) ) ;
 + private final static Logger LOGGER = Logger . getLogger ( BuildAndDecodeJarTest . class . getName ( ) ) ;
 }


<nb> public class TextEditingTargetNotebook
 @ handler
 public void onNotebookClearAllOutput ( )
 {
 - removeAllChunks ( ) ;
 + if ( executingChunk_ == null && chunkExecQueue_ . isEmpty ( ) )
 + {
 + SINGLE
 + removeAllChunks ( ) ;
 + return ;
 + }
 + else
 + {
 + RStudioGinjector . INSTANCE . getGlobalDisplay ( ) . showYesNoMessage (
 + GlobalDisplay . MSG_INFO ,
 + STRING0 ,
 + STRING1 +
 + STRING2 ,
 + false ,
 + new Operation ( )
 + {
 + @ override
 + public void execute ( )
 + {
 + if ( commands_ . interruptR ( ) . isEnabled ( ) )
 + commands_ . interruptR ( ) . execute ( ) ;
 +
 + clearChunkExecQueue ( ) ;
 + removeAllChunks ( ) ;
 + }
 + } ,
 + null ,
 + null ,
 + STRING3 ,
 + STRING4 ,
 + false ) ;
 + }
 }
 SINGLE

handle case where output is cleared while chunks are executing


<nb> public class FlinkTopology {
 getClass ( ) . getClassLoader ( )
 ) ;
 } catch ( IOException | ClassNotFoundException e ) {
 - throw new RuntimeException ( STRING0 ) ;
 + throw new RuntimeException ( STRING0 , e ) ;
 }
 }

hotfix storm Add proper exception forwarding to FlinkTopology copyObject


<nb> public final class ModelPreferences
 PrefUtils . setDefaultPreferenceValue ( store , SQL_NAMED_PARAMETERS_PREFIX , String . valueOf ( SQLConstants . DEFAULT_PARAMETER_PREFIX ) ) ;

 PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_FORMATTER , SQLTokenizedFormatter . FORMATTER_ID ) ;
 - PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_KEYWORD_CASE , DBPIdentifierCase . UPPER . name ( ) ) ;
 + PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_KEYWORD_CASE , STRING0 ) ;
 PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_CMD , STRING0 ) ;
 PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_FILE , false ) ;
 PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_TIMEOUT , NUMBER0 ) ;

Set default keyword case to database specific


<nb> import NAMESPACE ;
 COMMENT
 @ gwtcompatible ( serializable = true , emulated = true )
 @ suppresswarnings ( STRING0 ) SINGLE
 - final class RegularImmutableSet < E > extends ImmutableSet < E > {
 + final class RegularImmutableSet < E > extends ImmutableSet . Indexed < E > {
 static final RegularImmutableSet < Object > EMPTY =
 new RegularImmutableSet < Object > ( ObjectArrays . EMPTY_ARRAY , NUMBER0 , null , NUMBER0 ) ;

 <nb> final class RegularImmutableSet < E > extends ImmutableSet < E > {
 return elements . length ;
 }

 - @ suppresswarnings ( STRING1 ) SINGLE
 - @ override
 - public UnmodifiableIterator < E > iterator ( ) {
 - return ( UnmodifiableIterator < E > ) Iterators . forArray ( elements ) ;
 + @ override E get ( int i ) {
 + return ( E ) elements [ i ] ;
 }

 @ override

RegularImmutableSet extends ImmutableSet Indexed


<nb> public class QueryMonitor

 private static Optional < TaskInfo > findFailedTask ( StageInfo stageInfo )
 {
 + if ( stageInfo == null ) {
 + return Optional . empty ( ) ;
 + }
 +
 for ( StageInfo subStage : stageInfo . getSubStages ( ) ) {
 Optional < TaskInfo > task = findFailedTask ( subStage ) ;
 if ( task . isPresent ( ) ) {

Fix NPE when query fails during parsing planning


<nb> class Searcher {
 private final Instrumentation inst ;
 private final Sleeper sleeper ;
 private final int TIMEOUT = NUMBER0 ;
 - private final int LONGTIMEOUT = NUMBER1 ;
 private final String LOG_TAG = STRING0 ;

 COMMENT
 <nb> class Searcher {
 expectedMinimumNumberOfMatches = NUMBER2 ;
 }
 final Pattern pattern = Pattern . compile ( regex ) ;
 - final long endTime = System . currentTimeMillis ( ) + LONGTIMEOUT ;
 Collection < T > views ;
 - while ( System . currentTimeMillis ( ) < endTime ) {
 -
 + while ( true ) {
 views = viewFetcherCallback . call ( ) ;
 for ( TextView view : views ) {
 final Matcher matcher = pattern . matcher ( view . getText ( ) . toString ( ) ) ;
 <nb> class Searcher {
 }
 sleeper . sleep ( NUMBER3 ) ;
 }
 - return false ;
 }

 COMMENT


<nb> public class MainFrame
 this . initTitleFont ( ) ;

 ResourceManagementService resources = GuiActivator . getResources ( ) ;
 - String applicationName = resources . getSettingsString ( STRING0 ) ;
 + String applicationName
 + = resources . getSettingsString ( STRING1 ) ;

 this . setTitle ( applicationName ) ;


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


<nb> public final class CommonUtils {
 }
 }

 - public static void warmUpJVM ( ) {
 + public static void warmUpLoop ( ) {
 for ( int k = NUMBER0 ; k < NUMBER1 ; k ++ ) {
 }
 }
 <nb> public class Performance {
 sFiles , sBlockSizeBytes / NUMBER2 , sBlocksPerFile , sFileBytes / Constants . MB ,
 fileBufferBytes / NUMBER2 , sBaseFileNumber ) ;

 - CommonUtils . warmUpJVM ( ) ;
 + CommonUtils . warmUpLoop ( ) ;

 if ( testCase == NUMBER3 ) {
 sResultPrefix = STRING0 + sResultPrefix ;

Changing the loop function name to warmUpLoop


<nb> public class RankingModelImpl implements RankingModel , AttributeListener {
 Collection < ? extends RankingBuilder > builders = Lookup . getDefault ( ) . lookupAll ( RankingBuilder . class ) ;
 for ( RankingBuilder builder : builders ) {
 Ranking [ ] builtRankings = builder . buildRanking ( this ) ;
 - for ( Ranking r : builtRankings ) {
 - if ( r . getElementType ( ) . equals ( elementType ) ) {
 - rankings . add ( r ) ;
 + if ( builtRankings != null ) {
 + for ( Ranking r : builtRankings ) {
 + if ( r . getElementType ( ) . equals ( elementType ) ) {
 + rankings . add ( r ) ;
 + }
 }
 }
 }

Fix NullPointerException in RankingModelImpl


<nb> public class BlockLockManager {

 public synchronized Optional < Long > lockBlock ( long userId , long blockId ,
 BlockLockType blockLockType ) {
 - int hashValue = ( int ) blockId % NUM_LOCKS ;
 + SINGLE
 + int hashValue = ( int ) ( blockId % ( long ) NUM_LOCKS ) ;
 ClientRWLock blockLock = mLockArray . get ( hashValue ) ;
 Lock lock = null ;
 if ( blockLockType == BlockLockType . READ ) {


<nb> public class FavoriteManager implements LocalItemManager < Favorite > {
 private static final String URI_PATH_CLEAR = STRING0 ;
 @ visiblefortesting static final String FILE_AUTHORITY = STRING1 ;
 private static final String PATH_SAVED = STRING2 ;
 - private static final String FILENAME_EXPORT = STRING3 ;
 + private static final String FILENAME_EXPORT = STRING4 ;
 private final Scheduler mIoScheduler ;
 @ synthetic Cursor mCursor ;
 private final int mNotificationId = Long . valueOf ( System . currentTimeMillis ( ) ) . intValue ( ) ;
 <nb> public class FavoriteManagerTest {
 manager = new FavoriteManager ( Schedulers . immediate ( ) ) {
 @ override
 protected Uri getUriForFile ( Context context , File file ) {
 - return Uri . parse ( STRING5 + FavoriteManager . FILE_AUTHORITY + STRING6 ) ;
 + return Uri . parse ( STRING5 + FavoriteManager . FILE_AUTHORITY + STRING7 ) ;
 }
 } ;
 }


<nb> public class LocalStore extends Store implements Serializable
 cv . put ( STRING0 , message . getInternalDate ( ) == null
 ? System . currentTimeMillis ( ) : message . getInternalDate ( ) . getTime ( ) ) ;
 String messageId = message . getMessageId ( ) ;
 - Log . e ( K9 . LOG_TAG , STRING1 ) ;
 if ( messageId != null )
 {
 - Log . e ( K9 . LOG_TAG , STRING2 + messageId ) ;
 cv . put ( STRING3 , messageId ) ;
 }
 long messageUid = mDb . insert ( STRING4 , STRING5 , cv ) ;


<nb> public class PackageFunction implements SkyFunction {
 }
 packageShouldBeInError = markFileDepsAndPropagateInconsistentFilesystemExceptions (
 pkg . getName ( ) , subincludeFileDepKeys , env , pkg . containsErrors ( ) ) ;
 - SINGLE
 - SINGLE

 SINGLE
 SINGLE

Remove obsolete comment about labels crossing subpackage check happening in legacy package loading


<nb> class ExtendedBeanInfo implements BeanInfo {
 continue ALL_METHODS ;
 }
 }
 - if ( method == pd . getReadMethod ( )
 - || ( pd instanceof IndexedPropertyDescriptor && method == ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) ) ) {
 + if ( method . equals ( pd . getReadMethod ( ) )
 + || ( pd instanceof IndexedPropertyDescriptor && method . equals ( ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) ) ) ) {
 SINGLE
 if ( pd instanceof IndexedPropertyDescriptor ) {
 this . addOrUpdatePropertyDescriptor ( pd , pd . getName ( ) , pd . getReadMethod ( ) , pd . getWriteMethod ( ) , ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) , ( ( IndexedPropertyDescriptor ) pd ) . getIndexedWriteMethod ( ) ) ;

Fix method equality bug in ExtendedBeanInfo


<nb> public class LayoutManager extends RecyclerView . LayoutManager {
 updateHeaderForTrimFromStart ( header ) ;
 }

 - if ( getDecoratedBottom ( header ) < NUMBER0 ) {
 + if ( getDecoratedBottom ( header ) <= NUMBER0 ) {
 removeAndRecycleView ( header , state . recycler ) ;
 }
 }
 <nb> public class LayoutManager extends RecyclerView . LayoutManager {

 final int height = getDecoratedMeasuredHeight ( header ) ;
 if ( ( sd . headerParams . isHeaderInline ( ) && ! sd . headerParams . isHeaderOverlay ( ) )
 - || ( sectionBottom - sectionTop ) > height ) {
 + || ( sectionBottom - sectionTop ) >= height ) {
 final int left = getDecoratedLeft ( header ) ;
 final int right = getDecoratedRight ( header ) ;


<nb> public class LintMojo extends AbstractAndroidMojo
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ClassFileNameHandler {
 super ( parent , logicalName ) ;
 }

 - public FileSystemEntry addChild ( FileSystemEntry entry ) {
 + public synchronized FileSystemEntry addChild ( FileSystemEntry entry ) {
 String normalizedChildName = entry . getNormalizedName ( false ) ;
 Collection < FileSystemEntry > entries = children . get ( normalizedChildName ) ;
 if ( entry instanceof DirectoryEntry ) {


<nb> public class QueryTest {
 }

 @ test
 + public void multipleFromTest ( ) throws IOException , SqlParseException , SQLFeatureNotSupportedException {
 + SearchHits response = query ( String . format ( STRING0 , TEST_INDEX , TEST_INDEX ) ) ;
 + Assert . assertEquals ( NUMBER0 , response . getTotalHits ( ) ) ;
 + }
 +
 +
 + @ test
 public void selectSpecificFields ( ) throws IOException , SqlParseException , SQLFeatureNotSupportedException {
 String [ ] arr = new String [ ] { STRING1 , STRING2 } ;
 Set expectedSource = new HashSet ( Arrays . asList ( arr ) ) ;


<nb> public abstract class AbstractTestQueries
 }

 @ test
 + public void testDistinctHaving ( )
 + throws Exception
 + {
 + assertQuery ( STRING0 +
 + STRING1 +
 + STRING2 +
 + STRING3 ) ;
 + }
 +
 + @ test
 public void testDistinctWindow ( )
 throws Exception
 {

Add test for HAVING with DISTINCT aggregations


<nb> abstract public class Log {
 private static ArrayList < String > INIT_MSGS = new ArrayList < String > ( ) ;

 public static void flushStdout ( ) {
 - for ( String s : INIT_MSGS ) {
 - System . out . println ( s ) ;
 - }
 + if ( INIT_MSGS != null ) {
 + for ( String s : INIT_MSGS ) {
 + System . out . println ( s ) ;
 + }

 - INIT_MSGS . clear ( ) ;
 + INIT_MSGS . clear ( ) ;
 + }
 }

 COMMENT


<nb> public class TextIconGenerator {
 COMMENT
 private void ensureViewsSetUp ( ) {
 if ( mContainer == null ) {
 - final LayoutInflater inflater = ( LayoutInflater ) mContext . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ;
 - mContainer = ( ViewGroup ) inflater . inflate ( R . layout . text_bubble , null ) ;
 + mContainer = ( ViewGroup ) LayoutInflater . from ( mContext ) . inflate ( R . layout . text_bubble , null ) ;
 mRotationLayout = ( RotationLayout ) mContainer . getChildAt ( NUMBER0 ) ;
 mContentView = mTextView = ( TextView ) mRotationLayout . findViewById ( R . id . text ) ;
 }

Use the LayoutInflater from Context utility method


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class JoglContext implements JmeContext {
 glfbo = ( GLFbo ) GLTracer . createDesktopGlTracer ( glfbo , GLFbo . class ) ;
 }

 - renderer = new GLRenderer ( gl , glext , glfbo ) ;
 + SINGLE
 + SINGLE
 + renderer = new JoglRenderer ( ) ;
 renderer . initialize ( ) ;
 } else {
 throw new UnsupportedOperationException ( STRING0 + settings . getRenderer ( ) ) ;

Temporarily disables the unified renderer in the JogAmp backend


<nb> public abstract class LogEntry
 @ override
 public String toString ( )
 {
 - return STRING0 + getIdentifier ( ) + STRING1 + xid + STRING1 + timestamp ( timeWritten ) + STRING2 ;
 + return STRING0 + getIdentifier ( ) + STRING3 + xid + STRING4 + masterId + STRING5 + timestamp ( timeWritten ) + STRING2 ;
 }
 }


<nb> public class DataInfo extends Keyed {
 assert false ;
 row . response [ i ] = ( row . response [ i ] - _normRespSub [ i ] ) * _normRespMul [ i ] ;
 }
 - if ( Double . isNaN ( row . response [ row . response . length - i ] ) ) {
 - assert false ;
 + if ( Double . isNaN ( row . response [ row . response . length - i ] ) )
 row . bad = true ;
 - }
 }
 }
 return rows ;

Removed bad assert asserting we get no NAs in resigns column


<nb> public abstract class Drawable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 JavaScriptExecutor jsExecutor ,
 JSBundleLoader jsBundleLoader ) {
 FLog . i ( ReactConstants . TAG , STRING0 ) ;
 + ReactMarker . logMarker ( STRING1 ) ;
 mSourceUrl = jsBundleLoader . getSourceUrl ( ) ;
 NativeModuleRegistry . Builder nativeRegistryBuilder = new NativeModuleRegistry . Builder ( ) ;
 JavaScriptModulesConfig . Builder jsModulesBuilder = new JavaScriptModulesConfig . Builder ( ) ;
 <nb> import NAMESPACE ;
 Systrace . endSection ( Systrace . TRACE_TAG_REACT_JAVA_BRIDGE ) ;
 }

 + ReactMarker . logMarker ( STRING2 ) ;
 return reactContext ;
 }

Add cold start events dashboard ctscan test


<nb> public class JavaHeaderCompileActionBuilder {
 builder . addOutput ( outputDepsProto ) ;
 }

 - builder . useParameterFile ( ParameterFileType . SHELL_QUOTED ) ;
 + builder . useParameterFile ( ParameterFileType . UNQUOTED ) ;
 builder . setCommandLine ( buildCommandLine ( ruleContext . getConfiguration ( ) . getHostPathSeparator ( ) ) ) ;

 builder . addTransitiveInputs ( javabaseInputs ) ;

Don t shell quote header compiler params files


<nb> public class Glove implements Serializable {
 }

 + public VocabCache getCache ( ) {
 + return cache ;
 + }

 + public void setCache ( VocabCache cache ) {
 + this . cache = cache ;
 + }

 + public GloveWeightLookupTable getLookupTable ( ) {
 + return lookupTable ;
 + }

 + public void setLookupTable ( GloveWeightLookupTable lookupTable ) {
 + this . lookupTable = lookupTable ;
 + }

 public static class Builder {
 private VocabCache vocabCache ;

add some missing constructors for multi label docs


<nb> public class MaterialDialog extends DialogBase implements View . OnClickListener {
 protected ListType listType ;
 protected List < Integer > selectedIndicesList ;

 - private int lastDialogHeight ;
 -
 private static ContextThemeWrapper getTheme ( Builder builder ) {
 TypedArray a = builder . context . getTheme ( ) . obtainStyledAttributes ( new int [ ] { R . attr . md_dark_theme } ) ;
 boolean darkTheme = builder . theme == Theme . DARK ;

Removed variable that was left in by mistake


<nb>
 +
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 public class CubocDesktop {
 public static void main ( String [ ] argv ) {
 + SINGLE
 + Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ;
 new LwjglApplication ( new Cubocy ( ) , STRING0 , NUMBER0 , NUMBER1 , true ) ;
 }
 }

changed Set the log level to debug for the Cubocy demo


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

 import NAMESPACE ;

 <nb> public class FQueryFilterParser implements FilterParser {
 if ( query == null ) {
 return null ;
 }
 - Filter filter = new QueryWrapperFilter ( query ) ;
 + Filter filter ;
 + if ( CustomQueryWrappingFilter . shouldUseCustomQueryWrappingFilter ( query ) ) {
 + filter = new CustomQueryWrappingFilter ( query ) ;
 + } else {
 + filter = new QueryWrapperFilter ( query ) ;
 + }
 if ( cache ) {
 filter = parseContext . cacheFilter ( filter , cacheKey ) ;
 }

Also wrap p c queries in CustomQueryWrappingFilter in the fquery qparser because they otherwise p c queries may work incorrectly


<nb> public class DelegatingController extends WriterController {
 public void switchToSlowPath ( ) {
 delegationController . switchToSlowPath ( ) ;
 }
 +
 + @ override
 + public int getBytecodeVersion ( ) {
 + return delegationController . getBytecodeVersion ( ) ;
 + }
 +
 + @ override
 + public void setLineNumber ( int n ) {
 + delegationController . setLineNumber ( n ) ;
 + }
 +
 + @ override
 + public int getLineNumber ( ) {
 + return delegationController . getLineNumber ( ) ;
 + }
 +
 + @ override
 + public void resetLineNumber ( ) {
 + delegationController . resetLineNumber ( ) ;
 + }
 }

add missing overrides for delegation to ensure line number handling and bytecode version are right


<nb> public class DeepLearningProstateTest extends TestUtil {
 p . validation = valid ;

 p . hidden = hidden ;
 - if ( i == NUMBER0 && resp == NUMBER1 ) p . classification = false ;
 + p . classification = ! ( i == NUMBER0 && resp == NUMBER1 ) ;
 p . best_model_key = best_model_key ;
 p . epochs = epochs ;
 p . seed = seed ;

Always set classification flag since the auto setter is disabled


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class EnvironmentPresenter extends BasePresenter
 EnvironmentServerOperations server ,
 Binder binder ,
 Commands commands ,
 - GlobalDisplay globalDisplay )
 + GlobalDisplay globalDisplay ,
 + EventBus eventBus )
 {
 super ( view ) ;
 binder . bind ( commands , this ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public final class PsiElementRef < T extends PsiElement > {
 + private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
 private volatile PsiRefColleague < T > myColleague ;

 public PsiElementRef ( PsiRefColleague < T > colleague ) {
 <nb> public final class PsiElementRef < T extends PsiElement > {
 private final T myElement ;

 public Real ( @ notnull T element ) {
 + LOG . assertTrue ( element . isValid ( ) ) ;
 myElement = element ;
 }


<nb> public abstract class StaticTypeCheckingSupport {
 }
 GenericsType gt = connection ;
 if ( ! connection . isWildcard ( ) ) gt = buildWildcardType ( connection ) ;
 - if ( gt . isPlaceholder ( ) && gt . getUpperBounds ( ) . length == NUMBER0 && ! gt . getUpperBounds ( ) [ NUMBER1 ] . isGenericsPlaceHolder ( ) && gt . getUpperBounds ( ) [ NUMBER1 ] . getName ( ) . equals ( STRING0 ) ) {
 + if ( resolved . isPlaceholder ( ) && resolved . getUpperBounds ( ) != null &&
 + resolved . getUpperBounds ( ) . length == NUMBER0 && ! resolved . getUpperBounds ( ) [ NUMBER1 ] . isGenericsPlaceHolder ( ) &&
 + resolved . getUpperBounds ( ) [ NUMBER1 ] . getName ( ) . equals ( STRING0 ) )
 + {
 return true ;
 }
 ClassNode compareNode ;

add special codepath to skip checks on placeholders without further information


<nb> public final class ActivityThread {
 new LoadedApk ( this , aInfo , compatInfo , baseLoader ,
 securityViolation , includeCode &&
 ( aInfo . flags & ApplicationInfo . FLAG_HAS_CODE ) != NUMBER0 , registerPackage ) ;
 +
 + if ( mSystemThread && STRING0 . equals ( aInfo . packageName ) ) {
 + packageInfo . installSystemApplicationInfo ( aInfo ,
 + getSystemContext ( ) . mPackageInfo . getClassLoader ( ) ) ;
 + }
 +
 if ( includeCode ) {
 mPackages . put ( aInfo . packageName ,
 new WeakReference < LoadedApk > ( packageInfo ) ) ;
 <nb> public final class ActivityThread {
 synchronized ( this ) {
 getSystemContext ( ) . installSystemApplicationInfo ( info , classLoader ) ;

 - SINGLE
 - SINGLE
 - mPackages . put ( STRING0 , new WeakReference < LoadedApk > ( getSystemContext ( ) . mPackageInfo ) ) ;
 -
 SINGLE
 mProfiler = new Profiler ( ) ;
 }

Fix getPackageInfo android in the system server


<nb> public class FS20Binding extends AbstractActiveBinding < FS20BindingProvider >
 Boolean configChanged = false ;
 String baudRateString = ( String ) config . get ( KEY_BAUD_RATE ) ;
 if ( StringUtils . isNotBlank ( baudRateString ) ) {
 - properties . put ( KEY_BAUD_RATE , Integer . parseInt ( baudRateString ) ) ;
 + properties . put ( KEY_BAUD_RATE , baudRateString ) ;
 configChanged = true ;
 }

put a String in the map for KEY_BAUD_RATE not an Integer


<nb> public class InMemoryDependencyMetadataCache implements Stoppable {

 public void stop ( ) {
 cachePerRepo . clear ( ) ;
 - LOG . info ( STRING0 , stats ) ;
 + LOG . debug ( STRING0 , stats ) ;
 }
 }

Reduced log level of the message that summarises the in memory dependency metadata cache usage


<nb> package NAMESPACE ;
 COMMENT
 public abstract class TAtomic < T extends Iced > extends Atomic {
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public abstract T atomic ( T old ) ;

 @ override public Value atomic ( Value val ) {
 - T old = val == null ? null : ( T ) val . get ( ) ;
 + T old = val == null ? null : ( T ) ( val . get ( ) . clone ( ) ) ;
 T nnn = atomic ( old ) ;
 return nnn == null ? null : new Value ( _key , nnn ) ;
 }


<nb> public class WebFilter implements Filter {
 throw new NullPointerException ( STRING0 ) ;
 }
 if ( value == null ) {
 - throw new IllegalArgumentException ( STRING1 ) ;
 + removeAttribute ( name ) ;
 }
 if ( deferredWrite ) {
 LocalCacheEntry entry = localCache . get ( name ) ;

Fix HazelcastHttpSession s setAttribute with null value


<nb> public class TemporalRule extends ServiceSupport {
 ArrayList < Route > list = new ArrayList < Route > ( ) ;
 RouteDefinition route = new RouteDefinition ( ) ;
 route . setCamelContext ( first . getBuilder ( ) . getProcessBuilder ( ) . getContext ( ) ) ;
 - RouteContext routeContext = new DefaultRouteContext ( route , null , list ) ;
 + RouteContext routeContext = new DefaultRouteContext ( first . getBuilder ( ) . getProcessBuilder ( ) . getContext ( ) , route , null , list ) ;

 overdueAction = overdueProcessors . createOutputsProcessor ( routeContext ) ;
 }


<nb> public class PackageParser {
 providerExportedDefault = true ;
 }

 - if ( ( ( owner . applicationInfo . flags & ApplicationInfo . FLAG_SYSTEM ) != NUMBER0 )
 - && ( owner . applicationInfo . targetSdkVersion == Build . VERSION_CODES . JELLY_BEAN ) ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - providerExportedDefault = false ;
 - }
 -
 p . info . exported = sa . getBoolean (
 com . android . internal . R . styleable . AndroidManifestProvider_exported ,
 providerExportedDefault ) ;


<nb> public class WebView extends AbsoluteLayout

 private void drawLayers ( Canvas canvas ) {
 if ( mRootLayer != NUMBER0 ) {
 - float scrollY = Math . max ( mScrollY - getTitleHeight ( ) , NUMBER0 ) ;
 + int scrollY = computeVerticalScrollOffset ( ) ;
 + int viewHeight = getHeight ( ) - getVisibleTitleHeight ( ) ;
 +
 nativeDrawLayers ( mRootLayer , mScrollX , scrollY ,
 + getWidth ( ) , viewHeight ,
 mActualScale , canvas ) ;
 }
 }
 <nb> public class WebView extends AbsoluteLayout
 private native boolean nativeLayersHaveAnimations ( int layer ) ;
 private native void nativeUpdateLayers ( int layer , int updates ) ;
 private native void nativeDrawLayers ( int layer ,
 - float scrollX , float scrollY ,
 + int scrollX , int scrollY ,
 + int width , int height ,
 float scale , Canvas canvas ) ;
 private native void nativeDrawMatches ( Canvas canvas ) ;
 private native void nativeDrawSelectionPointer ( Canvas content ,

Add proper support for fixed position elements


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GoExecutor {
 commandLine . getEnvironment ( ) . put ( GoConstants . GO_PATH , StringUtil . notNullize ( myGoPath ) ) ;
 commandLine . withWorkDirectory ( myWorkDirectory ) ;
 commandLine . addParameters ( parameters ) ;
 + commandLine . withCharset ( CharsetToolkit . UTF8_CHARSET ) ;
 + EncodingEnvironmentUtil . setLocaleEnvironmentIfMac ( commandLine ) ;

 final Ref < Boolean > result = Ref . create ( false ) ;
 try {


<nb> import static NAMESPACE ;
 import static NAMESPACE ;

 @ immutable
 - public class QueryId
 + public final class QueryId
 {
 @ jsoncreator
 public static QueryId valueOf ( String queryId )


<nb> public abstract class MoviesBaseFragment extends SherlockFragment implements
 }

 @ override
 + public void onPrepareOptionsMenu ( Menu menu ) {
 + SINGLE
 + boolean isDrawerOpen = ( ( BaseNavDrawerActivity ) getActivity ( ) ) . isDrawerOpen ( ) ;
 + menu . findItem ( R . id . menu_action_movies_sort ) . setVisible ( ! isDrawerOpen ) ;
 + }
 +
 + @ override
 public boolean onOptionsItemSelected ( MenuItem item ) {
 int itemId = item . getItemId ( ) ;
 if ( itemId == R . id . menu_action_movies_sort_title ) {

Hide movies sort button if nav drawer is open


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class JibriStatusPacketExt
 COMMENT
 COMMENT
 COMMENT
 - private static final String NAMESPACE = JibriIq . NAMESPACE ;
 + public static final String NAMESPACE = JibriIq . NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 - private static final String ELEMENT_NAME = STRING0 ;
 + public static final String ELEMENT_NAME = STRING0 ;

 private static final String STATUS_ATTRIBUTE = STRING1 ;

 <nb> public class JibriStatusPacketExt
 super ( NAMESPACE , ELEMENT_NAME ) ;
 }

 + static public void registerExtensionProvider ( )
 + {
 + ProviderManager . getInstance ( ) . addExtensionProvider (
 + ELEMENT_NAME ,
 + NAMESPACE ,
 + new DefaultPacketExtensionProvider < JibriStatusPacketExt > (
 + JibriStatusPacketExt . class )
 + ) ;
 + }
 +
 public Status getStatus ( )
 {
 return Status . parse ( getAttributeAsString ( STATUS_ATTRIBUTE ) ) ;

Makes some fields public and adds utility method to JibriStatusPacketExtension


<nb> public class Transaction extends ChildMessage implements Serializable {
 COMMENT
 public void setLockTime ( long lockTime ) {
 unCache ( ) ;
 + SINGLE
 this . lockTime = lockTime ;
 }

 <nb> public class Transaction extends ChildMessage implements Serializable {
 return version ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public List < TransactionInput > getInputs ( ) {
 maybeParse ( ) ;
 - return Collections . unmodifiableList ( inputs ) ;
 + return inputs ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 public List < TransactionOutput > getOutputs ( ) {
 maybeParse ( ) ;
 - return Collections . unmodifiableList ( outputs ) ;
 + return outputs ;
 }

 COMMENT

Allow modification of the inputs outputs list


<nb> public class ClusterQualityAssurance extends Suite {
 VirtualMachine ubuntu3 = vmf . vm ( Neo4jVM . UBUNTU_3 ) ;

 SINGLE
 - platforms . put ( Platforms . WINDOWS , new ClusterTestPermutation (
 - WindowsEnterpriseDriver . class . getSimpleName ( ) ,
 - new DefaultMachineClusterModel ( new DefaultMachineModelImpl (
 - new WindowsEnterpriseDriver ( win1 ) ) ,
 - new DefaultMachineModelImpl (
 - new WindowsEnterpriseDriver ( win2 ) ) ,
 - new DefaultMachineModelImpl (
 - new WindowsEnterpriseDriver ( win3 ) ) ) ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE

 SINGLE
 platforms . put ( Platforms . UBUNTU_DEB , new ClusterTestPermutation (


<nb> public class ContactListManagerAdapter extends
 return Presence . AVAILABLE ;
 }

 - COMMENT
 +
 public void clearOnLogout ( ) {
 clearValidatedContactsAndLists ( ) ;
 clearTemporaryContacts ( ) ;
 SINGLE
 - COMMENT
 + }

 COMMENT
 COMMENT

this just clears objects from memory it should be done


<nb>
 package NAMESPACE ;

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

 <nb> public class ListIntToIntMap extends AbstractIntToIntMap implements UpdatableInt
 return newInstance ( thisIsVisible , longSize , DEFAULT_BLOCK_SIZE ) ;
 }

 + @ notnull
 + public static UpdatableIntToIntMap newInstance ( final Flags visibleNodes ) {
 + return newInstance ( new BooleanFunction < Integer > ( ) {
 + @ override
 + public boolean fun ( Integer integer ) {
 + return visibleNodes . get ( integer ) ;
 + }
 + } , visibleNodes . size ( ) ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ListIntToIntMap extends AbstractIntToIntMap implements UpdatableInt
 mySubSumOfBlocks [ blockIndex ] += sumDelta ;
 }

 +
 }

log Added ListIntToIntMap newInstance Flags


<nb> public class ManagementServerProperties implements SecurityPrerequisite {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final int BASIC_AUTH_ORDER = SecurityProperties . BASIC_AUTH_ORDER - NUMBER0 ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final int ACCESS_OVERRIDE_ORDER = ManagementServerProperties . BASIC_AUTH_ORDER
 - NUMBER1 ;

Fix javadocs on ManagementServerProperties


<nb> public class Client extends Connection implements EndPoint {
 }
 close ( ) ;
 } catch ( KryoNetException ex ) {
 + lastProtocolError = ex ;
 if ( ERROR ) {
 if ( isConnected )
 error ( STRING0 , STRING1 + this , ex ) ;
 <nb> public class Connection {
 private long lastPingSendTime ;
 private int returnTripTime ;
 volatile boolean isConnected ;
 + volatile KryoNetException lastProtocolError ;

 protected Connection ( ) {
 }
 <nb> public class Connection {
 public boolean isConnected ( ) {
 return isConnected ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public KryoNetException getLastProtocolError ( ) {
 + return lastProtocolError ;
 + }

 COMMENT
 COMMENT


<nb> public interface Errors {
 UnresolvedReferenceDiagnosticFactory UNRESOLVED_REFERENCE = UnresolvedReferenceDiagnosticFactory . create ( ) ;

 SINGLE
 + SINGLE
 DiagnosticFactory3 < JetSimpleNameExpression , DeclarationDescriptor , Visibility , DeclarationDescriptor > INVISIBLE_REFERENCE =
 DiagnosticFactory3 . create ( ERROR ) ;
 DiagnosticFactory3 < PsiElement , DeclarationDescriptor , Visibility , DeclarationDescriptor > INVISIBLE_MEMBER = DiagnosticFactory3 . create ( ERROR , CALL_ELEMENT ) ;

added comment for INVISIBLE_REFERENCE error


<nb> public class HttpObjectAggregatorTest {

 assertEquals ( HttpHeaders . getContentLength ( fullMsg ) , fullMsg . content ( ) . readableBytes ( ) ) ;

 + fullMsg . release ( ) ;
 assertFalse ( embedder . finish ( ) ) ;
 }

Fix a memory leak in HttpObjectAggregatorTest


<nb> public class GetPatternsFromDataMultiClass implements Serializable {
 if ( en . getValue ( ) . size ( ) < constVars . minPosPhraseSupportForPat ) {
 remove . add ( en . getKey ( ) ) ;
 }
 +
 }
 + int numRemoved = remove . size ( ) ;
 + Redwood . log ( Redwood . DBG , STRING0 + numRemoved + STRING1 + constVars . minPosPhraseSupportForPat ) ;
 +
 +
 for ( Entry < SurfacePattern , ClassicCounter < String > > en : unLabeledPatternsandWords4Label
 . entrySet ( ) ) {
 if ( en . getValue ( ) . size ( ) < constVars . minUnlabPhraseSupportForPat ) {
 remove . add ( en . getKey ( ) ) ;
 }
 }
 + Redwood . log ( Redwood . DBG , STRING0 + ( remove . size ( ) - numRemoved ) + STRING2 + constVars . minUnlabPhraseSupportForPat ) ;
 return remove ;
 }

changed minUnlabNegPhraseSupportForPat to minUnlabPhraseSupportForPat and removed discardPatternsWithNoNegSupport


<nb> public class ParallaxContentScrollView extends FrameLayout {

 void updateOffset ( int y ) {
 if ( y <= mHeaderView . getHeight ( ) ) {
 + mHeaderView . setVisibility ( View . VISIBLE ) ;
 +
 int newTop = Math . round ( - y * PARALLAX_FRICTION ) ;
 mHeaderView . offsetTopAndBottom ( newTop - mHeaderView . getTop ( ) ) ;

 <nb> public class ParallaxContentScrollView extends FrameLayout {
 mContentViewScrollListener
 . onContentViewScrolled ( y / ( float ) mHeaderView . getHeight ( ) ) ;
 }
 + } else {
 + mHeaderView . setVisibility ( View . INVISIBLE ) ;
 }
 }


<nb> public class CometdAtmosphereInterceptor implements AtmosphereInterceptor {

 @ override
 public void configure ( AtmosphereConfig config ) {
 - if ( config . getServletContext ( ) . getServerInfo ( ) . contains ( STRING0 ) ) {
 - config . framework ( ) . setAsyncSupport ( new JettyAsyncSupport (
 - config ) ) ;
 - }
 }

 @ override
 <nb> public class CometdServlet extends AtmosphereServlet {
 framework ( ) . interceptor ( new CometdAtmosphereInterceptor ( ) ) ;
 framework ( ) . setUseStreamForFlushingComments ( false ) ;

 + if ( sc . getServletContext ( ) . getServerInfo ( ) . contains ( STRING0 ) ) {
 + framework ( ) . setAsyncSupport ( new JettyAsyncSupport ( framework ( ) . getAtmosphereConfig ( ) ) ) ;
 + }
 +
 framework ( ) . addInitParameter ( STRING1 , WebSocketTransport . class . getName ( ) ) ;
 framework ( ) . addInitParameter ( ApplicationConfig . WEBSOCKET_CONTENT_TYPE , STRING2 ) ;
 super . init ( sc ) ;


<nb> package NAMESPACE ;

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


<nb> public class ValidatingVisitor implements Visitor < Void , Void > , Serializable {
 @ override
 public Void visit ( Path < ? > expr , Void context ) {
 if ( ! known . contains ( expr . getRoot ( ) ) ) {
 - throw new IllegalArgumentException ( STRING0 + expr . getRoot ( ) ) ;
 + throw new IllegalArgumentException ( STRING1 + expr . getRoot ( ) + STRING2 +
 + STRING3 ) ;
 }
 if ( expr . getMetadata ( ) . getParent ( ) != null ) {
 expr . getMetadata ( ) . getParent ( ) . accept ( this , null ) ;


<nb> public class ObjLoader extends ModelLoader < ObjLoader . ObjLoaderParameters > {
 if ( hasNorms ) attributes . add ( new VertexAttribute ( Usage . Normal , NUMBER0 , ShaderProgram . NORMAL_ATTRIBUTE ) ) ;
 if ( hasUVs ) attributes . add ( new VertexAttribute ( Usage . TextureCoordinates , NUMBER1 , ShaderProgram . TEXCOORD_ATTRIBUTE + STRING0 ) ) ;

 - String nodeId = STRING1 + ( ++ id ) ;
 - String meshId = STRING2 + id ;
 - String partId = STRING3 + id ;
 + String stringId = STRING4 + ( ++ id ) ;
 + String nodeId = group . name != STRING5 ? group . name : STRING1 + stringId ;
 + String meshId = group . name != STRING5 ? group . name : STRING2 + stringId ;
 + String partId = group . name != STRING5 ? group . name : STRING3 + stringId ;
 ModelNode node = new ModelNode ( ) ;
 node . id = nodeId ;
 node . meshId = meshId ;

Use group names instead of generated ids in ObjLoader


<nb> public class ChatWritePanel extends JScrollPane implements
 String editorText = editorPane . getText ( ) ;

 editorPane . setText ( editorText . substring ( NUMBER0 , caretPosition )
 - + System . getProperty ( STRING0 )
 + + STRING1
 + editorText . substring ( caretPosition ) ) ;

 editorPane . setCaretPosition ( caretPosition + NUMBER1 ) ;

use n instead of system newline property


<nb> public class GroovyScriptIT extends ESIntegTestCase {
 }

 @ test
 + @ awaitsfix ( bugUrl = STRING0 )
 public void testGroovyExceptionSerialization ( ) throws Exception {
 List < IndexRequestBuilder > reqs = new ArrayList < > ( ) ;
 for ( int i = NUMBER0 ; i < randomIntBetween ( NUMBER1 , NUMBER2 ) ; i ++ ) {

await fix on GroovyScriptIT testGroovyExceptionSerialization


<nb> public final class ContactsContract {
 public static final int TYPE_HOME = NUMBER0 ;
 public static final int TYPE_WORK = NUMBER1 ;
 public static final int TYPE_OTHER = NUMBER2 ;
 + public static final int TYPE_MOBILE = NUMBER3 ;

 COMMENT
 COMMENT


<nb> public class ParserTest {
 assertEquals ( STRING0 , a . text ( ) ) ;
 assertEquals ( STRING1 , a . attr ( STRING2 ) ) ;
 }
 +
 + @ test public void handlesSpanInTbody ( ) {
 + SINGLE
 + String h = STRING3 ;
 + Document doc = Jsoup . parse ( h ) ;
 + assertEquals ( doc . select ( STRING4 ) . first ( ) . children ( ) . size ( ) , NUMBER0 ) ; SINGLE
 + assertEquals ( doc . select ( STRING5 ) . size ( ) , NUMBER1 ) ; SINGLE
 + }
 }

Added test to confirm that tbody in span does not create a new table


<nb> public class ReindexSameIndexTests extends ESTestCase {

 private static ClusterState STATE ;
 private static final IndexNameExpressionResolver INDEX_NAME_EXPRESSION_RESOLVER = new IndexNameExpressionResolver ( Settings . EMPTY ) ;
 - private static final AutoCreateIndex AUTO_CREATE_INDEX = new AutoCreateIndex ( Settings . EMPTY , INDEX_NAME_EXPRESSION_RESOLVER ) ;
 + private static AutoCreateIndex AUTO_CREATE_INDEX = new AutoCreateIndex ( Settings . EMPTY , INDEX_NAME_EXPRESSION_RESOLVER ) ;

 @ beforeclass
 public static void beforeClass ( ) {

Revert Mark field in ReindexSameIndexTests as final


<nb> public class SmartTypePointerManagerImpl extends SmartTypePointerManager {
 final PsiClassType . ClassResolveResult resolveResult = classType . resolveGenerics ( ) ;
 final PsiClass aClass = resolveResult . getElement ( ) ;
 if ( aClass == null ) {
 - LOG . assertTrue ( classType instanceof PsiClassReferenceType , classType ) ;
 - return new ClassReferenceTypePointer ( ( PsiClassReferenceType ) classType ) ;
 + if ( classType instanceof PsiClassReferenceType ) {
 + return new ClassReferenceTypePointer ( ( PsiClassReferenceType ) classType ) ;
 + }
 + return new SimpleTypePointer ( classType ) ;
 }
 if ( classType instanceof PsiClassReferenceType ) {
 classType = ( ( PsiClassReferenceType ) classType ) . createImmediateCopy ( ) ;

don t expect PsiClassType with no class to be PsiClassReferenceType


<nb> public class RoutingRequest implements Cloneable , Serializable {
 public boolean parkAndRide = false ;
 public boolean kissAndRide = false ;

 - public boolean bikeParkAndRide = false ;
 -
 COMMENT

 COMMENT


<nb> public class PSurfaceFX implements PSurface {
 public PSurfaceFX ( PGraphicsFX2D graphics ) {
 fx = graphics ;
 canvas = new ResizableCanvas ( ) ;
 - fx . context = canvas . getGraphicsContext2D ( ) ;

 SINGLE
 KeyFrame keyFrame = new KeyFrame ( Duration . millis ( NUMBER0 ) ,
 <nb> public class PSurfaceFX implements PSurface {
 SINGLE

 Canvas canvas = surface . canvas ;
 + surface . fx . context = canvas . getGraphicsContext2D ( ) ;
 StackPane stackPane = new StackPane ( ) ;
 stackPane . getChildren ( ) . add ( canvas ) ;
 canvas . widthProperty ( ) . bind ( stackPane . widthProperty ( ) ) ;


<nb> public class WindowManagerService extends IWindowManager . Stub
 WindowState win = null ;
 synchronized ( mWindowMap ) {
 win = windowForClientLocked ( null , window , false ) ;
 + SINGLE
 + SINGLE
 if ( ! startPositioningLocked ( win , false COMMENT , startX , startY ) ) {
 return false ;
 }
 <nb> public class WindowManagerService extends IWindowManager . Stub
 WindowState win = null ;
 synchronized ( mWindowMap ) {
 win = displayContent . findWindowForControlPoint ( startX , startY ) ;
 - if ( ! startPositioningLocked ( win , true COMMENT , startX , startY ) ) {
 + if ( win == null || ! startPositioningLocked ( win , true COMMENT , startX , startY ) ) {
 return ;
 }
 }


<nb> public class ExtractMethodHelper {
 boolean replaceAll = false ;
 final Map < SimpleMatch , RangeHighlighter > highlighterMap = new HashMap < SimpleMatch , RangeHighlighter > ( ) ;
 for ( SimpleMatch match : duplicates ) {
 + if ( ! match . getStartElement ( ) . isValid ( ) || ! match . getEndElement ( ) . isValid ( ) ) continue ;
 final Pair < SimpleMatch , PsiElement > replacement = Pair . create ( match , callElement ) ;
 if ( ! replaceAll ) {
 highlightInEditor ( project , match , editor , highlighterMap ) ;


<nb> public class MTLLoader implements AssetLoader {

 if ( shadeless ) {
 material = new Material ( assetManager , STRING0 ) ;
 - material . setColor ( STRING1 , diffuse ) ;
 + material . setColor ( STRING1 , diffuse . clone ( ) ) ;
 material . setTexture ( STRING2 , diffuseMap ) ;
 SINGLE
 } else {
 material = new Material ( assetManager , STRING3 ) ;
 material . setBoolean ( STRING4 , true ) ;
 - material . setColor ( STRING5 , ambient ) ;
 - material . setColor ( STRING6 , diffuse ) ;
 - material . setColor ( STRING7 , specular ) ;
 + material . setColor ( STRING5 , ambient . clone ( ) ) ;
 + material . setColor ( STRING6 , diffuse . clone ( ) ) ;
 + material . setColor ( STRING7 , specular . clone ( ) ) ;
 material . setFloat ( STRING8 , shininess ) ; SINGLE

 if ( diffuseMap != null ) material . setTexture ( STRING9 , diffuseMap ) ;

Fix colors reference issue in MTL loader


<nb> public class TextureAtlas implements Disposable {
 originalWidth = region . originalWidth ;
 originalHeight = region . originalHeight ;
 rotate = region . rotate ;
 -
 - setRegionWidth ( packedWidth ) ;
 - setRegionHeight ( packedHeight ) ;
 }

 COMMENT

fixed TextureAtlas copy constructor the region should be set to the passed in region not the packed size


<nb> public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService

 private static final String NO_JDK = ProjectBundle . message ( STRING0 ) ;

 - private final Project myProject ;
 -
 - public OrderEntryAppearanceServiceImpl ( @ notnull final Project project ) {
 - myProject = project ;
 - }
 -
 @ notnull
 @ override
 public CellAppearanceEx forOrderEntry ( Project project , @ notnull final OrderEntry orderEntry , final boolean selected ) {
 <nb> public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService
 @ notnull
 @ override
 public CellAppearanceEx forLibrary ( Project project , @ notnull final Library library , final boolean hasInvalidRoots ) {
 - final StructureConfigurableContext context = ProjectStructureConfigurable . getInstance ( myProject ) . getContext ( ) ;
 + final StructureConfigurableContext context = ProjectStructureConfigurable . getInstance ( project ) . getContext ( ) ;
 final Icon icon = LibraryPresentationManager . getInstance ( ) . getCustomIcon ( library , context ) ;

 final String name = library . getName ( ) ;

removed Project field from application service


<nb> public abstract class ChatPanel
 this . writeMessagePanel = new ChatWritePanel ( this ) ;

 this . topSplitPane . setResizeWeight ( FLOAT0 ) ;
 +
 + SINGLE
 + this . topSplitPane . setBorder ( null ) ;
 + this . messagePane . setBorder ( null ) ;
 +
 this . messagePane . setResizeWeight ( FLOAT0 ) ;
 this . chatContactListPanel . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ;
 this . chatContactListPanel . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ;

Remove multiple split pane borders from chat window


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

 COMMENT
 + COMMENT
 + COMMENT
 + public void resetWarningsGuard ( ) {
 + warningsGuard = new ComposeWarningsGuard ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 COMMENT
 COMMENT
 <nb> public class CreateMethodFromUsageFix implements IntentionAction {
 TypeConstraint [ ] constraints = GroovyExpectedTypesProvider . calculateTypeConstraints ( ( GrExpression ) myRefExpression . getParent ( ) ) ;

 final PsiGenerationInfo < PsiMethod > info = OverrideImplementUtil . createGenerationInfo ( method ) ;
 - info . insert ( myTargetClass , findInsertionAnchor ( info ) , true ) ;
 + info . insert ( myTargetClass , findInsertionAnchor ( info ) , false ) ;
 method = info . getPsiMember ( ) ;

 final PsiElement context = PsiTreeUtil . getParentOfType ( myRefExpression , PsiClass . class , PsiMethod . class ) ;

create method from usage after current position


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

 public class HealthCheckServiceImplTest
 {

 - @ test ( expectedExceptions = NullPointerException . class )
 + @ test ( expected = NullPointerException . class )
 public void testConstructorNullInjectorInvalid ( )
 {
 new HealthCheckServiceImpl ( null ) ;


<nb> public final class Utils
 }
 catch ( final PatternSyntaxException e ) {
 throw new ConversionException (
 - STRING0 + pattern , e ) ;
 + STRING1 + pattern , e ) ;
 }
 }

 <nb> package NAMESPACE ;

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

 - import static NAMESPACE ;
 -
 public class UtilsTest
 {
 COMMENT
 <nb> public class UtilsTest
 assertUtilsClassHasPrivateConstructor ( Utils . class ) ;
 }

 + @ test
 + public void testInvalidPattern ( )
 + {
 + boolean result = Utils . isPatternValid ( STRING2 ) ;
 + assertFalse ( result ) ;
 + }
 }

Added test method for Utils isPatternValid method


<nb> public class Ls extends NeoApp
 @ override
 public String getDescription ( )
 {
 - return STRING0 ;
 + return STRING1 +
 + STRING2 ;
 }

 @ override


<nb> public final class BlockMaster extends MasterBase implements ContainerIdGenerato
 private final Set < Long > mLostBlocks ;

 SINGLE
 - private final IndexedSet . FieldIndex < MasterWorkerInfo > mIdIndex = new IndexedSet . FieldIndex < MasterWorkerInfo > ( ) {
 + private final IndexedSet . FieldIndex < MasterWorkerInfo > mIdIndex =
 + new IndexedSet . FieldIndex < MasterWorkerInfo > ( ) {
 @ override
 public Object getFieldValue ( MasterWorkerInfo o ) {
 return o . getId ( ) ;


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

 import NAMESPACE ;

Add Apache license header in DatanodeStats java


<nb> public class CordovaWebViewTestActivity extends Activity implements CordovaInter
 super . onDestroy ( ) ;
 if ( cordovaWebView != null ) {
 SINGLE
 - cordovaWebView . loadUrl ( STRING0 ) ;
 cordovaWebView . handleDestroy ( ) ;
 }
 }

Don t call loadUrlIntoView on the actvity


<nb> public class MethodTypeInferencer implements Computable < PsiType > {
 }
 }

 - boolean isVoid = returns . size ( ) == NUMBER0 ;
 + boolean isObject = returns . size ( ) == NUMBER0 ;

 GrStatement [ ] statements = myBlock . getStatements ( ) ;
 if ( statements . length > NUMBER0 ) {
 GrStatement last = statements [ statements . length - NUMBER1 ] ;
 if ( last instanceof GrExpression ) {
 result = upperBound ( ( ( GrExpression ) last ) . getType ( ) , result , manager ) ;
 - isVoid = false ;
 + isObject = false ;
 }
 }

 - if ( isVoid ) return PsiType . VOID ;
 + if ( isObject ) return myBlock . getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING0 , myBlock . getResolveScope ( ) ) ;

 return result ;
 }

inference should produce Object for empty methods


<nb>
 COMMENT

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - package NAMESPACE ;
 + package NAMESPACE ;


<nb> public class NeoStore extends AbstractStore
 return getStoreOk ( ) && relTypeStore . getStoreOk ( ) &&
 propStore . getStoreOk ( ) && relStore . getStoreOk ( ) && nodeStore . getStoreOk ( ) ;
 }
 -
 - public static class WithoutChildStores extends NeoStore
 - {
 - public WithoutChildStores ( Map < ? , ? > config )
 - {
 - super ( config ) ;
 - }
 -
 - @ override
 - protected void initStorage ( )
 - { SINGLE
 - }
 -
 - @ override
 - protected void closeStorage ( )
 - { SINGLE
 - }
 - }
 }


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

library Add more information about the semantics of part indexes


<nb> public class ConnectionManager {
 }

 private void handshakeFailure ( ContextImpl context , Channel ch , Throwable cause , Waiter waiter ) {
 - System . out . println ( STRING0 ) ;
 cause . printStackTrace ( ) ;
 SSLHandshakeException sslException = new SSLHandshakeException ( STRING1 ) ;
 if ( cause != null ) {


<nb> public class CachingConnectionFactory extends SingleConnectionFactory {
 if ( active ) {
 synchronized ( this . sessionList ) {
 if ( this . sessionList . size ( ) < getSessionCacheSize ( ) ) {
 - logicalClose ( ( Session ) proxy ) ;
 - SINGLE
 - return null ;
 + try {
 + logicalClose ( ( Session ) proxy ) ;
 + SINGLE
 + return null ;
 + }
 + catch ( JMSException ex ) {
 + logger . trace ( STRING0 , ex ) ;
 + SINGLE
 + }
 }
 }
 }

CachingConnectionFactory proceeds to physicalClose in case of logicalClose exceptions


<nb> public class MailThreadInfo
 COMMENT
 COMMENT
 COMMENT
 - private List < String > senders = new LinkedList < String > ( ) ;
 + private List < Sender > senders = new LinkedList < Sender > ( ) ;

 COMMENT
 COMMENT
 <nb> public class MailThreadInfo
 {
 return participation ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Iterator < Sender > senders ( )
 + {
 + return senders . iterator ( ) ;
 + }
 }

Adds mail notifications for Google mail servers


<nb> public class JsonXContent implements XContent {

 @ override
 public XContentParser createParser ( Reader reader ) throws IOException {
 - return new JsonXContentParser ( jsonFactory . createJsonParser ( reader ) ) ;
 + return new JsonXContentParser ( jsonFactory . createParser ( reader ) ) ;
 }
 }
 <nb> public class SmileXContent implements XContent {

 @ override
 public XContentParser createParser ( Reader reader ) throws IOException {
 - return new JsonXContentParser ( smileFactory . createJsonParser ( reader ) ) ;
 + return new JsonXContentParser ( smileFactory . createParser ( reader ) ) ;
 }
 }

remove deprecated method usage with jackson


<nb> public class CastorUnmarshallerTests extends AbstractUnmarshallerTests {
 }

 @ test
 + @ ignore ( STRING0 )
 public void testClearCollectionsFalse ( ) throws Exception {

 Flights flights = new Flights ( ) ;

Ignoring test failing on build server though it works locally


<nb> public class ElasticSearchConnection implements Connection {

 @ override
 public void close ( ) throws SQLException {
 - client . close ( ) ;
 }

 @ override


<nb> public class DynamicResponseHandlerFactory extends Dynamics implements ResponseH
 private static Maps . EntryTransformer < String , TextContainer , RequestExtractor < ? > > toVariable ( ) {
 return new Maps . EntryTransformer < String , TextContainer , RequestExtractor < ? > > ( ) {
 @ override
 - @ suppresswarnings ( STRING0 )
 public RequestExtractor < ? > transformEntry ( final String key , final TextContainer value ) {
 if ( value . isRawText ( ) ) {
 return var ( value . getText ( ) ) ;

removed unused unchecked warning in dynamic response handler factory


<nb> public abstract class TitanIndexTest extends TitanGraphBaseTest {
 }

 @ test
 - public void testIndexQueryWithScore ( ) {
 + public void testIndexQueryWithScore ( ) throws InterruptedException {
 PropertyKey textKey = mgmt . makePropertyKey ( STRING0 ) . dataType ( String . class ) . make ( ) ;
 mgmt . buildIndex ( STRING1 , Vertex . class ) . addKey ( textKey ) . buildMixedIndex ( INDEX ) ;
 mgmt . commit ( ) ;
 <nb> public abstract class TitanIndexTest extends TitanGraphBaseTest {

 tx . commit ( ) ;

 + Thread . sleep ( NUMBER0 ) ;
 +
 Set < Double > scores = new HashSet < Double > ( ) ;
 for ( TitanIndexQuery . Result < TitanVertex > r : graph . indexQuery ( STRING1 , STRING2 ) . vertices ( ) ) {
 scores . add ( r . getScore ( ) ) ;


<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
 myListeners . addListener ( new ChangeListAdapter ( ) {
 @ override
 public void defaultListChanged ( final ChangeList oldDefaultList , ChangeList newDefaultList ) {
 - if ( oldDefaultList instanceof LocalChangeList &&
 + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) &&
 + oldDefaultList instanceof LocalChangeList &&
 oldDefaultList . getChanges ( ) . isEmpty ( ) ) {

 SwingUtilities . invokeLater ( new Runnable ( ) {


<nb> public class SessionImpl implements Session {
 }

 logger . finest ( STRING0 + decryptedMsgContent + STRING1 ) ;
 - extraKey = authContext . getExtraSymmetricKey ( ) ;
 + SINGLE

 SINGLE
 SessionKeys mostRecent = this . getMostRecentSessionKeys ( ) ;


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

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class PrivateDataManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public static Object getPrivateDataProvider ( String elementName , String namespace ) {
 + public static PrivateData getPrivateDataProvider ( String elementName , String namespace ) {
 String key = getProviderKey ( elementName , namespace ) ;
 - return privateDataProviders . get ( key ) ;
 + return ( PrivateData ) privateDataProviders . get ( key ) ;
 }

 COMMENT
 <nb> public class PrivateDataManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static void addPrivateDataProvider ( String elementName , String namespace ,
 - IQProvider provider )
 + PrivateDataProvider provider )
 {
 String key = getProviderKey ( elementName , namespace ) ;
 privateDataProviders . put ( key , provider ) ;


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

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;


<nb> public class ReaderAnim {
 return ;
 }

 - ObjectAnimator animX = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_X , FLOAT0 , FLOAT1 ) ;
 + ObjectAnimator animX = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_X , FLOAT0 , FLOAT2 ) ;
 animX . setRepeatMode ( ValueAnimator . REVERSE ) ;
 animX . setRepeatCount ( NUMBER0 ) ;

 - ObjectAnimator animY = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_Y , FLOAT0 , FLOAT1 ) ;
 + ObjectAnimator animY = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_Y , FLOAT0 , FLOAT2 ) ;
 animY . setRepeatMode ( ValueAnimator . REVERSE ) ;
 animY . setRepeatCount ( NUMBER0 ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class DaoAuthenticationProvider extends AbstractUserDetailsAuthenticationProvider {


<nb> public class FileRouteTest extends ContextTestSupport {
 public void testFileRoute ( ) throws Exception {
 MockEndpoint result = resolveMandatoryEndpoint ( STRING0 , MockEndpoint . class ) ;
 result . expectedBodiesReceived ( expectedBody ) ;
 + result . setDefaulResultWaitMillis ( NUMBER0 ) ;

 template . sendBodyAndHeader ( uri , expectedBody , STRING1 , NUMBER1 ) ;

increased the timeout to make sure the test passes even on slow boxes


<nb> public class MainImpl {
 COMMENT
 @ suppresswarnings ( STRING0 )
 protected static void start ( final String [ ] args ) {
 - System . setProperty ( STRING1 , STRING2 ) ;
 + if ( System . getProperty ( STRING1 ) == null ) {
 + System . setProperty ( STRING1 , STRING2 ) ;
 + }

 StartupUtil . isHeadless = Main . isHeadless ( args ) ;
 if ( ! StartupUtil . isHeadless ) {

don t set platform prefix if already specified


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PsiTypeElementImpl extends CompositePsiElement implements PsiTypeEl

 @ notnull
 public PsiAnnotation addAnnotation ( @ notnull @ nonnls String qualifiedName ) {
 - throw new NotImplementedException ( ) ; SINGLE
 + throw new UnsupportedOperationException ( ) ;
 }
 }


<nb> import NAMESPACE ;
 COMMENT
 public class Groovyc extends MatchingTask {

 - private CompilerConfiguration configuration = new CompilerConfiguration ( ) ;
 private Path src ;
 private File destDir ;
 private Path compileClasspath ;
 private Path compileSourcepath ;
 private String encoding ;
 -
 +
 + protected CompilerConfiguration configuration = new CompilerConfiguration ( ) ;
 protected boolean failOnError = true ;
 protected boolean listFiles = false ;
 protected File [ ] compileList = new File [ NUMBER0 ] ;

changed configuration field to protected


<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public void onResolvePadding ( int layoutDirection ) {
 }


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


<nb> public interface EclipseClasspathEntry {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 DomainObjectSet < ? extends AccessRule > getAccessRules ( ) throws UnsupportedMethodException ;
 }


<nb> public final class NettyDataServer implements DataServer {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public int getPort ( ) {
 SINGLE
 SINGLE
 return ( ( InetSocketAddress ) mChannelFuture . channel ( ) . localAddress ( ) ) . getPort ( ) ;
 }

 + @ override
 public boolean isClosed ( ) {
 return mBootstrap . group ( ) . isShutdown ( ) ;
 }
 <nb> public class NIODataServer implements Runnable , DataServer {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public int getPort ( ) {
 return mServerChannel . socket ( ) . getLocalPort ( ) ;
 }
 <nb> public class NIODataServer implements Runnable , DataServer {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public boolean isClosed ( ) {
 return mShutdownComplete ;
 }

Add override annotation where appropriate for classes implementing the data server interface


<nb> public class AndroidBinary
 SINGLE
 Path relativeLibPath = libSubdirectory . relativize ( libPath ) ;
 long filesize = filesystem . getFileSize ( libPath ) ;
 - metadataLines . add ( relativeLibPath . toString ( ) + STRING0 + filesize ) ;
 + String output = relativeLibPath . toString ( ) ;
 + SINGLE
 + SINGLE
 + String desiredOutput = output . substring ( NUMBER0 , output . length ( ) - NUMBER1 ) ;
 + metadataLines . add ( desiredOutput + STRING0 + filesize ) ;
 }
 ImmutableList < String > metadata = metadataLines . build ( ) ;
 if ( ! metadata . isEmpty ( ) ) {

Removes from output filenames in asset library metadata


<nb> public final class WindowManagerImpl extends WindowManagerEx implements Applicat
 finally {
 if ( fullScreen ) {
 frame . setBounds ( device . getDefaultConfiguration ( ) . getBounds ( ) ) ;
 - if ( ! Registry . is ( STRING0 , false ) ) {
 + if ( ! Registry . is ( STRING0 , false ) && ! SystemInfo . isMac ) {
 frame . getStatusBar ( ) . addWidget ( new ClockPanel ( ) , STRING1 + MemoryUsagePanel . WIDGET_ID ) ;
 }
 }


<nb> public class WriteBehindMapStoreWithEvictionsTest extends HazelcastTestSupport {
 }

 @ test
 - public void testWriteBehindFlush_persistAllRecords_afterHazelcastShutdownall ( ) throws Exception {
 + public void testWriteBehindFlushPersistsAllRecords_afterShutdownAll ( ) throws Exception {
 int nodeCount = NUMBER0 ;
 final MapStoreWithCounter mapStore = new MapStoreWithCounter < Integer , String > ( ) ;
 final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( nodeCount ) ;
 <nb> public class WriteBehindMapStoreWithEvictionsTest extends HazelcastTestSupport {
 . build ( ) ;
 final int numberOfItems = NUMBER1 ;

 + SINGLE
 populateMap ( map , numberOfItems , NUMBER2 ) ;

 factory . shutdownAll ( ) ;

 assertEquals ( numberOfItems , mapStore . countStore . get ( ) ) ;
 -
 }

 private void assertFinalValueEquals ( final int expected , final int actual ) {


<nb> package NAMESPACE ;

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

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


<nb> public class MetricsBean {
 this . pushFeedsQueued = pushFeedsQueued ;
 }

 + public int getEntryCacheHit ( ) {
 + return entryCacheHit ;
 + }
 +
 + public void setEntryCacheHit ( int entryCacheHit ) {
 + this . entryCacheHit = entryCacheHit ;
 + }
 +
 + public int getEntryCacheMiss ( ) {
 + return entryCacheMiss ;
 + }
 +
 + public void setEntryCacheMiss ( int entryCacheMiss ) {
 + this . entryCacheMiss = entryCacheMiss ;
 + }
 +
 }
 }

added getters and setters for json serialization


<nb> public class AssetBundleWriter {

 SINGLE
 LzmaEncoderProps props = new LzmaEncoderProps ( ) ;
 - props . setDictionarySize ( NUMBER0 < < NUMBER1 ) ;
 - props . setNumFastBytes ( NUMBER2 ) ;
 + props . setDictionarySize ( NUMBER0 < < NUMBER3 ) ; SINGLE
 + props . setNumFastBytes ( NUMBER2 ) ; SINGLE
 props . setUncompressedSize ( outData . size ( ) ) ;
 props . setEndMarkerMode ( true ) ;


<nb> public abstract class XQueryBuilder < E extends Exchange > implements Expression < E >
 return this ;
 }

 + public XQueryBuilder < E > parameter ( String name , Object value ) {
 + parameters . put ( name , value ) ;
 + return this ;
 + }
 +
 SINGLE
 SINGLE


<nb> public final class MoreExecutors {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + @ gwtincompatible ( STRING0 ) static < T > T invokeAnyImpl ( ListeningExecutorService executorService ,
 Collection < ? extends Callable < T > > tasks , boolean timed , long nanos )
 throws InterruptedException , ExecutionException , TimeoutException {
 checkNotNull ( executorService ) ;

Don t strip the GwtIncompatible from Guava


<nb> public class TestRunner extends BaseTestRunner {
 }
 }

 - public static void main ( String args [ ] ) {
 + public static void main ( String [ ] args ) {
 TestRunner aTestRunner = new TestRunner ( ) ;
 try {
 TestResult r = aTestRunner . start ( args ) ;
 <nb> public class TestRunner extends BaseTestRunner {
 COMMENT
 COMMENT
 COMMENT
 - public TestResult start ( String args [ ] ) throws Exception {
 + public TestResult start ( String [ ] args ) throws Exception {
 String testCase = STRING0 ;
 String method = STRING0 ;
 boolean wait = false ;


<nb> public class IndexDatabase {
 String absolutePath = file . getAbsolutePath ( ) ;

 if ( ignoredNames . ignore ( file ) ) {
 - LOGGER . log ( Level . FINE , STRING0 , absolutePath ) ;
 + LOGGER . log ( Level . FINER , STRING0 , absolutePath ) ;
 return false ;
 }

when logging ignored files use FINER log level


<nb> public class AprEndpoint extends AbstractEndpoint {
 SINGLE
 SINGLE
 SINGLE
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 destroySocket ( socket , running ) ;
 }


<nb> public class VcsConfigurationsDialog extends DialogWrapper {
 currentVcs = selectedIndex >= NUMBER0 ? ( VcsDescriptor ) ( myVcses . getModel ( ) ) . getElementAt ( selectedIndex ) : null ;
 String currentName = currentVcs == null ? NONE : currentVcs . getName ( ) ;
 if ( currentVcs != null ) {
 - myVcsNameToConfigurableMap . get ( currentName ) . createComponent ( ) ;
 + final UnnamedConfigurable unnamedConfigurable = myVcsNameToConfigurableMap . get ( currentName ) ;
 + unnamedConfigurable . createComponent ( ) ;
 + unnamedConfigurable . reset ( ) ;
 }
 final CardLayout cardLayout = ( CardLayout ) myVcsConfigurationPanel . getLayout ( ) ;
 cardLayout . show ( myVcsConfigurationPanel , currentName ) ;

edit VCS settings from VCS mappings to reset panel