<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
 }
 if ( activeAdmin . getUid ( ) != mInjector . binderGetCallingUid ( ) ) {
 mContext . enforceCallingOrSelfPermission (
 - android . Manifest . permission . MANAGE_PROFILE_AND_DEVICE_OWNERS , null ) ;
 + android . Manifest . permission . MANAGE_PROFILE_AND_DEVICE_OWNERS ,
 + STRING0 + mInjector . binderGetCallingUid ( ) + STRING1
 + + STRING2 + who + STRING3 ) ;
 }
 return activeAdmin . userRestrictions ;
 }


<nb> public class NettyServerBootstrapConfiguration implements Cloneable {
 protected EventLoopGroup workerGroup ;
 @ uriparam ( label = STRING0 )
 protected String networkInterface ;
 - @ uriparam ( label = STRING0 )
 - private boolean reconnect ;
 + @ uriparam ( label = STRING0 , defaultValue = STRING1 )
 + private boolean reconnect = true ;
 @ uriparam ( label = STRING0 , defaultValue = STRING2 )
 private int reconnectInterval = NUMBER0 ;

Lets reconnect by default in client mode


<nb> public final class MockRobinEngine extends RobinEngine implements Engine {
 try {
 super . close ( ) ;
 } finally {
 - if ( logger . isDebugEnabled ( ) ) {
 + if ( logger . isTraceEnabled ( ) ) {
 SINGLE
 for ( Entry < MockRobinEngine . AssertingSearcher , RuntimeException > entry : MockRobinEngine . INFLIGHT_ENGINE_SEARCHERS . entrySet ( ) ) {
 - logger . debug ( STRING0 , entry . getValue ( ) , entry . getKey ( ) . shardId ) ;
 + logger . trace ( STRING0 , entry . getValue ( ) , entry . getKey ( ) . shardId ) ;
 }
 }
 }

Log intermediate pending searchers as trace instead of debug


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

Updated class comment to match new class name


<nb> package NAMESPACE ;
 COMMENT
 public class AmountOfTestsExecutedByForkConfig implements ReforkReasonConfig {

 - private long reforkEvery ;
 + private long reforkEvery = - NUMBER0 ;

 public AmountOfTestsExecutedByForkConfig ( ) {
 }
 <nb> public class AmountOfTestsExecutedByForkDataGatherer implements ReforkReasonData

 private static final List < DataGatherMoment > dataGatherMoments = Arrays . asList ( DataGatherMoment . AFTER_TEST_EXECUTION ) ;

 - private long reforkEvery ;
 + private long reforkEvery = - NUMBER0 ;
 private AtomicLong amountOfTestsExecutedByFork ;

 COMMENT
 <nb> public class AmountOfTestsExecutedByForkDataGatherer implements ReforkReasonData
 COMMENT
 COMMENT
 public boolean processDataGatherMoment ( DataGatherMoment moment , Object . . . momentData ) {
 - return amountOfTestsExecutedByFork . incrementAndGet ( ) % reforkEvery == NUMBER1 ;
 + return reforkEvery >= NUMBER0 && amountOfTestsExecutedByFork . incrementAndGet ( ) % reforkEvery == NUMBER1 ;
 }

 COMMENT

every n test classes refork criteria improvements


<nb> public class YamlTree
 {
 public YamlTreeNode ( String line )
 {
 + SINGLE
 + SINGLE
 + if ( line . endsWith ( STRING0 ) )
 + {
 + line = line . substring ( NUMBER0 , line . length ( ) - NUMBER1 ) + STRING1 ;
 + }
 yamlLine = line ;
 key = getKey ( line ) ;
 indentLevel = getIndentLevel ( ) ;

show null rather than for YAML null values


<nb> public class Moco {
 return new FileResource ( new File ( checkNotNull ( filename , STRING0 ) ) ) ;
 }

 - public static Resource classpathFile ( String filename ) {
 + public static Resource pathResource ( String filename ) {
 return new ClasspathFileResource ( checkNotNull ( filename , STRING0 ) ) ;
 }

 <nb> public class MocoTest extends AbstractMocoTest {

 @ test
 public void should_return_expected_response_from_classpath_file ( ) throws Exception {
 - server . response ( classpathFile ( STRING1 ) ) ;
 + server . response ( pathResource ( STRING1 ) ) ;

 running ( server , new Runnable ( ) {
 @ override

changed classpath file api to path resource to make it generic


<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
 if ( ! type . isAnnotation ( ) ) {
 throw new IllegalArgumentException ( STRING0 + type ) ;
 } else if ( dynamicValues . put ( type , dynamicValue ) != null ) {
 - throw new IllegalArgumentException ( STRING1 + type ) ;
 + throw new IllegalArgumentException ( STRING2 + type ) ;
 }
 return new WithCustomMapping ( dynamicValues ) ;
 }
 <nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StackAwareMethodVisitor extends MethodVisitor {
 }

 @ override
 + @ suppressfbwarnings ( value = STRING3 , justification = STRING4 )
 public void visitVarInsn ( int opcode , int variable ) {
 switch ( opcode ) {
 case Opcodes . ASTORE :


<nb> class WallpaperManagerService extends IWallpaperManager . Stub {

 private Point getDefaultDisplaySize ( ) {
 Point p = new Point ( ) ;
 - try {
 - mIWindowManager . getInitialDisplaySize ( Display . DEFAULT_DISPLAY , p ) ;
 - } catch ( RemoteException e ) {
 - SINGLE
 - }
 + WindowManager wm = ( WindowManager ) mContext . getSystemService ( Context . WINDOW_SERVICE ) ;
 + Display d = wm . getDefaultDisplay ( ) ;
 + d . getRealSize ( p ) ;
 return p ;
 }

Use scaled display size in wallpaper constraint


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GraphiteReporter implements Runnable {
 private final Writer writer ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class DateTimeConstants {
 COMMENT
 public static final int MONDAY = NUMBER0 ;

 - COMMENT
 + COMMENT
 public static final int TUESDAY = NUMBER1 ;

 - COMMENT
 + COMMENT
 public static final int WEDNESDAY = NUMBER2 ;

 - COMMENT
 + COMMENT
 public static final int THURSDAY = NUMBER3 ;

 - COMMENT
 + COMMENT
 public static final int FRIDAY = NUMBER4 ;

 - COMMENT
 + COMMENT
 public static final int SATURDAY = NUMBER5 ;

 - COMMENT
 + COMMENT
 public static final int SUNDAY = NUMBER6 ;

 <nb> public class DateTimeConstants {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final int AD = NUMBER0 ;
 COMMENT
 <nb> public class DateTimeConstants {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final int CE = NUMBER0 ;


<nb> public abstract class Loader {
 }
 }
 while ( resultSet . next ( ) &&
 - keyToRead . equals ( getKeyFromResultSet ( NUMBER0 , getEntityPersisters ( ) [ NUMBER0 ] , null , resultSet , session ) ) ) ;
 + isCurrentRowForSameEntity ( keyToRead , NUMBER0 , resultSet , session ) ) ;
 }
 catch ( SQLException sqle ) {
 throw factory . getSQLExceptionHelper ( ) . convert (
 <nb> public abstract class Loader {
 return result ;
 }

 + private boolean isCurrentRowForSameEntity (
 + final EntityKey keyToRead ,
 + final int persisterIndex ,
 + final ResultSet resultSet ,
 + final SessionImplementor session ) throws SQLException {
 + EntityKey currentRowKey = getKeyFromResultSet (
 + persisterIndex , getEntityPersisters ( ) [ persisterIndex ] , null , resultSet , session
 + ) ;
 + return keyToRead . equals ( currentRowKey ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Join fetched collections using Query scroll is correct only for first entity


<nb> public final class UncaughtExceptionHandlers {
 }

 @ override public void uncaughtException ( Thread t , Throwable e ) {
 - SINGLE
 - logger . log ( SEVERE , String . format ( STRING0 , t ) , e ) ;
 - runtime . exit ( NUMBER0 ) ;
 + try {
 + SINGLE
 + logger . log ( SEVERE , String . format ( STRING0 , t ) , e ) ;
 + } catch ( Throwable errorInLogging ) {
 + SINGLE
 + SINGLE
 + System . err . println ( e . getMessage ( ) ) ;
 + System . err . println ( errorInLogging . getMessage ( ) ) ;
 + } finally {
 + runtime . exit ( NUMBER0 ) ;
 + }
 }
 }
 }

Stabilize the UncaughtExceptionHandlers against exceptions thrown in


<nb> import NAMESPACE ;
 @ xmlrootelement ( name = STRING0 )
 public class TripType {

 + @ suppresswarnings ( STRING1 )
 public TripType ( Trip obj ) {
 this . id = obj . getId ( ) ;
 this . serviceId = obj . getServiceId ( ) ;
 <nb> public class TripType {
 this . route = obj . getRoute ( ) ;
 }

 + @ suppresswarnings ( STRING1 )
 public TripType ( Trip obj , Boolean extended ) {
 this . id = obj . getId ( ) ;
 this . tripShortName = obj . getTripShortName ( ) ;
 <nb> public class StreetVertexIndexServiceImpl implements StreetVertexIndexService {
 return intersectionTree . query ( envelope ) ;
 }

 + @ suppresswarnings ( STRING2 )
 @ override
 public Collection < StreetEdge > getEdgesForEnvelope ( Envelope envelope ) {
 return edgeTree . query ( envelope ) ;


<nb> public class TestDefaultSubscriptionApi extends EntitlementTestSuiteWithEmbedded
 subscriptionApi . getActiveSubscriptionBundleForExternalKey ( externalKey , callContext ) ;
 Assert . fail ( STRING0 ) ;
 } catch ( SubscriptionApiException e ) {
 - assertEquals ( e . getCode ( ) , ErrorCode . SUB_CREATE_ACTIVE_BUNDLE_KEY_EXISTS . getCode ( ) ) ;
 + assertEquals ( e . getCode ( ) , ErrorCode . SUB_GET_INVALID_BUNDLE_KEY . getCode ( ) ) ;

 }

Fix TestDefaultSubscriptionApi after change of error code in entitlement


<nb>
 package NAMESPACE ;

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

Moved Screenshots to Desktop Source Package since it uses BufferedImage


<nb> package NAMESPACE ;

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

 import NAMESPACE ;


<nb> public class WorldEditController {
 } catch ( NumberFormatException e ) {
 player . printError ( STRING0 ) ;
 } catch ( IncompleteRegionException e ) {
 - player . printError ( STRING1 ) ;
 + player . printError ( STRING2 ) ;
 } catch ( UnknownItemException e ) {
 player . printError ( STRING3 + e . getID ( ) + STRING4 ) ;
 } catch ( InvalidItemException e ) {
 <nb> public class WorldEditController {
 } catch ( InsufficientArgumentsException e ) {
 player . printError ( e . getMessage ( ) ) ;
 } catch ( EmptyClipboardException e ) {
 - player . printError ( STRING5 ) ;
 + player . printError ( STRING6 ) ;
 } catch ( WorldEditException e ) {
 player . printError ( e . getMessage ( ) ) ;
 } catch ( Throwable excp ) {


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Splitter extends JPanel implements Splittable {

 protected float myProportion ; SINGLE

 - private final Divider myDivider ;
 + protected final Divider myDivider ;
 private JComponent mySecondComponent ;
 private JComponent myFirstComponent ;
 private final FocusWatcher myFocusWatcher ;


<nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RestDefinition extends OptionalIdentifiedDefinition < RestDefinition >
 @ xmlattribute
 private String produces ;

 - @ xmlattribute
 - @ metadata ( defaultValue = STRING0 )
 + @ xmlattribute @ metadata ( defaultValue = STRING0 )
 private RestBindingMode bindingMode ;

 @ xmlattribute
 <nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class VerbDefinition extends OptionalIdentifiedDefinition < VerbDefinition >
 @ xmlattribute
 private String produces ;

 - @ xmlattribute
 - @ metadata ( defaultValue = STRING0 )
 + @ xmlattribute @ metadata ( defaultValue = STRING0 )
 private RestBindingMode bindingMode ;

 @ xmlattribute


<nb> public class ReferenceQueue < T > {
 private Reference < ? extends T > head ;

 SINGLE
 - private final Reference < ? extends T > SENTINEL = new WeakReference < > ( null , null ) ;
 + private static final Reference SENTINEL = new WeakReference < > ( null , null ) ;

 COMMENT
 COMMENT
 <nb> public class SynchronousQueue < E > extends AbstractQueue < E >
 COMMENT
 static final int FULFILLING = NUMBER0 ;

 - private static SNode CANCELLED = new SNode ( null ) ;
 - private static SNode FINISHED = new SNode ( null ) ;
 + private static final SNode CANCELLED = new SNode ( null ) ;
 + private static final SNode FINISHED = new SNode ( null ) ;

 COMMENT
 static boolean isFulfilling ( int m ) { return ( m & FULFILLING ) != NUMBER1 ; }

Makes ReferenceQueue SENTINAL a shared static instance


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 public class ApiServlet extends SpringServlet {
 private static final long serialVersionUID = - NUMBER0 ;

 + @ autowired private GraphService graphService ;
 +
 @ autowired ( required = false ) private PeriodicGraphUpdater updater ;

 SINGLE
 <nb> public class ApiServlet extends SpringServlet {
 @ override
 public void destroy ( ) {
 if ( updater != null ) {
 - SINGLE
 - SINGLE
 - updater . stop ( ) ;
 + SINGLE
 + SINGLE
 + updater . stop ( ) ;
 }
 +
 + graphService . evictAll ( ) ;
 }

 public ApiServlet ( ) {

evict graphs stop updaters when stopping the servlet


<nb> public class PlaybackOverlayFragment extends DetailsFragment {
 super . onDestroyView ( ) ;
 }

 + @ override
 + public void onStart ( ) {
 + super . onStart ( ) ;
 + SINGLE
 + getRowsFragment ( ) . getView ( ) . requestFocus ( ) ;
 + }
 +
 private final DataObserver mObserver = new DataObserver ( ) {
 @ override
 public void onChanged ( ) {
 <nb> public class PlaybackOverlaySupportFragment extends DetailsSupportFragment {
 super . onDestroyView ( ) ;
 }

 + @ override
 + public void onStart ( ) {
 + super . onStart ( ) ;
 + SINGLE
 + getRowsSupportFragment ( ) . getView ( ) . requestFocus ( ) ;
 + }
 +
 private final DataObserver mObserver = new DataObserver ( ) {
 @ override
 public void onChanged ( ) {

workaround VideoView forcing focus problem


<nb> public class NotificationBackgroundView extends View {
 }

 private void draw ( Canvas canvas , Drawable drawable ) {
 - if ( drawable != null ) {
 + if ( drawable != null && mActualHeight > mClipTopAmount ) {
 drawable . setBounds ( NUMBER0 , mClipTopAmount , getWidth ( ) , mActualHeight ) ;
 drawable . draw ( canvas ) ;
 }

Fixed a crash when drawing the notification background


<nb> public class UpdateMappingTests extends AbstractSharedClusterTest {
 @ suppresswarnings ( STRING0 )
 @ test
 public void updateDefaultMappingSettings ( ) throws Exception {
 - client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING1 ) . addMapping ( MapperService . DEFAULT_MAPPING ,
 +
 + SINGLE
 + createIndex ( STRING1 ) ;
 + client ( ) . admin ( ) . indices ( ) . preparePutMapping ( STRING1 ) . setType ( MapperService . DEFAULT_MAPPING ) . setSource (
 JsonXContent . contentBuilder ( ) . startObject ( ) . startObject ( MapperService . DEFAULT_MAPPING )
 . field ( STRING2 , false )
 . endObject ( ) . endObject ( )

Separated index creation from mapping creation pending bug fix concerning concurrent not acked mapping requests


<nb> public class TargetDirectory
 @ override
 public void evaluate ( ) throws Throwable
 {
 - boolean success = false ;
 - try
 - {
 - base . evaluate ( ) ;
 - success = true ;
 - }
 - finally
 - {
 - complete ( success ) ;
 - }
 + base . evaluate ( ) ;
 }
 } ;
 }
 <nb> public class TargetDirectory
 String subdirName = subdir == null ? STRING0 : subdir . toString ( ) ;
 return format ( STRING1 , getClass ( ) . getSimpleName ( ) , subdirName ) ;
 }
 -
 - private void complete ( boolean success )
 - {
 - if ( success && subdir != null ) recursiveDelete ( subdir ) ;
 - subdir = null ;
 - }
 }

 private final FileSystemAbstraction fileSystem ;

Don t delete test directories after successful tests


<nb> public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac
 if ( KEY . is ( dataId ) ) {
 return RunnerContentUi . this ;
 }
 - else {
 - return null ;
 +
 + ContentManager originalContentManager = myOriginal == null ? null : myOriginal . getContentManager ( ) ;
 + JComponent originalContentComponent = originalContentManager == null ? null : originalContentManager . getComponent ( ) ;
 + if ( originalContentComponent instanceof DataProvider ) {
 + return ( ( DataProvider ) originalContentComponent ) . getData ( dataId ) ;
 }
 + return null ;
 }

 @ suppresswarnings ( STRING0 )
 <nb> public class ContentManagerImpl implements ContentManager , PropertyChangeListene
 dataProviders . add ( provider ) ;
 }

 + @ nullable
 + public DataProvider getDataProvider ( ) {
 + return myComponent ;
 + }
 +
 @ override
 public void propertyChange ( @ notnull PropertyChangeEvent event ) {
 if ( Content . PROP_COMPONENT . equals ( event . getPropertyName ( ) ) ) {

we must use original data context critical to get XDebugSessionfr


<nb> public class ODistributedServerDiscoverySignaler extends OPollerThread {

 discoveryPacket = OSecurityManager . instance ( ) . encrypt ( manager . securityAlgorithm , manager . securityKey , buffer . getBytes ( ) ) ;

 - startTimeoutPresenceTask ( ) ;
 + if ( forceLeadership )
 + startTimeoutPresenceTask ( ) ;

 start ( ) ;
 }
 <nb> public class ODistributedServerDiscoverySignaler extends OPollerThread {

 @ override
 protected void execute ( ) throws Exception {
 - OLogManager . instance ( ) . debug ( this , STRING0 ,
 + OLogManager . instance ( ) . warn ( this , STRING0 ,
 dgram . getAddress ( ) , dgram . getPort ( ) ) ;

 try {

Fixed bug on cluster rejoining when the server node wasn t leader


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

 COMMENT
 COMMENT
 <nb> public final class DefaultTrace implements Trace {

 @ override
 public int getCallStackFrameId ( ) {
 - if ( callStack . empty ( ) ) {
 + final SpanEvent spanEvent = callStack . peek ( ) ;
 + if ( spanEvent == null ) {
 return ROOT_STACKID ;
 + } else {
 + return spanEvent . getStackId ( ) ;
 }
 -
 - final SpanEvent spanEvent = callStack . peek ( ) ;
 - return spanEvent . getStackId ( ) ;
 }

 @ override


<nb> final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice {
 @ servicethreadonly
 protected void onStandby ( boolean initiatedByCec , int standbyAction ) {
 assertRunOnServiceThread ( ) ;
 - if ( ! mService . isControlEnabled ( ) || initiatedByCec ) {
 + if ( ! mService . isControlEnabled ( ) || initiatedByCec || ! mAutoTvOff ) {
 return ;
 }
 switch ( standbyAction ) {
 case HdmiControlService . STANDBY_SCREEN_OFF :
 - if ( mAutoTvOff ) {
 - mService . sendCecCommand (
 - HdmiCecMessageBuilder . buildStandby ( mAddress , Constants . ADDR_TV ) ) ;
 - }
 + mService . sendCecCommand (
 + HdmiCecMessageBuilder . buildStandby ( mAddress , Constants . ADDR_TV ) ) ;
 break ;
 case HdmiControlService . STANDBY_SHUTDOWN :
 SINGLE

Don t broadcast Standby message during shutdown when setting is disabled


<nb> public class SQLTransportExecutor {
 ) ;
 } else {
 int updateCount = preparedStatement . getUpdateCount ( ) ;
 + if ( updateCount < NUMBER0 ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + updateCount += NUMBER1 ;
 + }
 return new SQLResponse (
 new String [ NUMBER0 ] ,
 new Object [ NUMBER0 ] [ ] ,

Fix tests that assert negative row counts


<nb> public class LdapDirInitializer {
 }

 private void dirInit_SimpleCnUser ( DirContext ctx ) throws NamingException {
 - String name = STRING0 ;
 + String name = STRING1 ;
 Attributes attrs = new BasicAttributes ( ) ;
 attrs . put ( STRING2 , name + STRING3 ) ;
 attrs . put ( STRING4 , STRING5 ) ;

Fixed dumb mistake in the DN of the second user object


<nb> public class GrailsTagException extends GrailsException implements SourceCodeAwa
 return lineNumber ;
 }

 + @ override
 + public String getMessage ( ) {
 + return STRING0 + getFileName ( ) + STRING1 + getLineNumber ( ) + STRING2 + super . getMessage ( ) ;
 + }
 }


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

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class ToStringTextRenderer < T > extends StringTextRenderer < T > {

 + private TranslationSystem translationSystem ;
 +
 + public ToStringTextRenderer ( ) { }
 +
 + public ToStringTextRenderer ( TranslationSystem translationSystemInput ) {
 + translationSystem = translationSystemInput ;
 + }
 +
 +
 @ override
 public String getString ( T value ) {
 - return Objects . toString ( value ) ;
 + if ( translationSystem == null ) {
 + return Objects . toString ( value ) ;
 + }
 + else {
 + return translationSystem . translate ( Objects . toString ( value ) ) ;
 + }
 }
 }

Added optional language support to toStringTextRenderer


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ gwtcompatible ( serializable = true )
 final class UsingToStringOrdering
 extends Ordering < Object > implements Serializable {

Fix typo in UsingToStringOrdering javadocs


<nb> import NAMESPACE ;
 public class ResolveVisitor extends ClassCodeExpressionTransformer {
 private ClassNode currentClass ;
 SINGLE
 - private static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ;
 + public static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ;
 private CompilationUnit compilationUnit ;
 private Map cachedClasses = new HashMap ( ) ;
 private static final Object NO_CLASS = new Object ( ) ;

Expose the default imports as public so that when generating stubs we can include those


<nb> public abstract class AbstractStaticMethodInvocation implements StaticMethodInvo
 this . pattern = pattern ;
 }

 + protected Pattern getPattern ( ) {
 + return pattern ;
 + }
 +
 public boolean isMethodMatch ( String methodName ) {
 return this . pattern . matcher ( methodName . subSequence ( NUMBER0 , methodName . length ( ) ) ) . matches ( ) ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

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

 public class HdfsEnvironment
 {
 + static {
 + HadoopNative . requireHadoopNative ( ) ;
 + HadoopFileSystemCache . initialize ( ) ;
 + }
 +
 private final HdfsConfiguration hdfsConfiguration ;

 @ inject
 <nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE
 public class HiveClient
 implements ConnectorMetadata , ConnectorSplitManager , ConnectorRecordSinkProvider , ConnectorHandleResolver
 {
 - static {
 - HadoopNative . requireHadoopNative ( ) ;
 - HadoopFileSystemCache . initialize ( ) ;
 - }
 -
 public static final String PRESTO_OFFLINE = STRING0 ;

 private static final Logger log = Logger . get ( HiveClient . class ) ;

Fix initialization of Hadoop native code


<nb> public class PeerGroup {
 private int maxConnections ;

 private final NetworkParameters params ;
 - private final BlockChain chain ;
 private int connectionDelayMillis ;
 private long fastCatchupTimeSecs ;
 private ArrayList < Wallet > wallets ;
 <nb> public class PeerGroup {
 }

 PeerGroup ( final NetworkParameters params , final BlockChain chain ,
 - int connectionDelayMillis , ClientBootstrap bootstrap ) {
 + int connectionDelayMillis , ClientBootstrap bootstrap ) {
 this . params = params ;
 - this . chain = chain ;
 this . connectionDelayMillis = connectionDelayMillis ;
 this . fastCatchupTimeSecs = params . genesisBlock . getTimeSeconds ( ) ;
 this . wallets = new ArrayList < Wallet > ( NUMBER0 ) ;


<nb> package NAMESPACE ;

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

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

 void testImpl ( long [ ] ls , int [ ] xs , int expBpv , int expGap , int expClen , int expNA ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - AppendableVec av = mock ( AppendableVec . class ) ;
 - SINGLE
 - SINGLE
 - Vec vv = mock ( Vec . class ) ;
 - when ( av . close ( any ( Futures . class ) ) ) . thenReturn ( vv ) ;
 -
 + AppendableVec av = new AppendableVec ( Vec . newKey ( ) ) ;
 + Futures fs = new Futures ( ) ;
 + Vec vv = av . close ( fs ) ;
 SINGLE
 NewChunk nc = new NewChunk ( av , NUMBER0 ) ;
 nc . _ls = ls ;

Updated CBSChunk test not to use Mockito


<nb> public class StorageUtil {
 @ notnull final VirtualFile file ,
 @ notnull final BufferExposingByteArrayOutputStream content ,
 @ nullable final LineSeparator lineSeparatorIfPrependXmlProlog ) throws IOException {
 + LOG . debug ( STRING0 + file . getPresentableUrl ( ) ) ;
 AccessToken token = WriteAction . start ( ) ;
 try {
 OutputStream out = file . getOutputStream ( requestor ) ;


<nb> public class ProjectData extends AbstractNamedData implements ExternalConfigPath
 @ notnull String linkedExternalProjectPath )
 {
 super ( owner , STRING0 ) ;
 - myLinkedExternalProjectPath = linkedExternalProjectPath ;
 + myLinkedExternalProjectPath = ExternalSystemApiUtil . toCanonicalPath ( linkedExternalProjectPath ) ;
 myIdeProjectFileDirectoryPath = ExternalSystemApiUtil . toCanonicalPath ( ideProjectFileDirectoryPath ) ;
 }

just imported project is shown multiple times in Gradle tool window until reopening of the project


<nb> public class IabHelper {
 + BuildConfig . IAP_KEY_C + BuildConfig . IAP_KEY_D ;

 SINGLE
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_OK = NUMBER0 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_USER_CANCELED = NUMBER1 ;
 + COMMENT
 + public static final int BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE = NUMBER2 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE = NUMBER3 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE = NUMBER4 ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_DEVELOPER_ERROR = NUMBER5 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_ERROR = NUMBER6 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED = NUMBER7 ;
 + COMMENT
 public static final int BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED = NUMBER8 ;

 SINGLE


<nb> public final class CallManager {
 COMMENT
 COMMENT
 public void unregisterPhone ( Phone phone ) {
 - if ( phone != null && ! mPhones . contains ( phone ) ) {
 + if ( phone != null && mPhones . contains ( phone ) ) {
 mPhones . remove ( phone ) ;
 mRingingCalls . remove ( phone . getRingingCall ( ) ) ;
 mBackgroundCalls . remove ( phone . getBackgroundCall ( ) ) ;


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

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public interface DefaultSslContextProvider {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Adding since to DefaultSslContextProvider


<nb> public class Note extends Syncable {
 }

 public Spannable getFormattedSubject ( ) {
 - if ( mFormattedSubject == null && getSubject ( ) != null ) {
 + if ( mFormattedSubject == null ) {
 mFormattedSubject = NotificationUtils . getSpannableTextFromIndices ( getSubject ( ) , null ) ;
 }
 return mFormattedSubject ;
 <nb> public class NotificationUtils {

 public static Spannable getSpannableTextFromIndices ( JSONObject subject ,
 final NoteBlock . OnNoteBlockTextClickListener onNoteBlockTextClickListener ) {
 + if ( subject == null ) {
 + return new SpannableStringBuilder ( ) ;
 + }

 String text = subject . optString ( STRING0 , STRING1 ) ;
 SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder ( text ) ;

ensure getSpannableTextFromIndices doesn t return null


<nb> final class ApplicationDispatcher
 break ;
 if ( current instanceof ApplicationRequest )
 break ;
 - if ( current instanceof Request )
 - break ;
 previous = current ;
 current = ( ( ServletRequestWrapper ) current ) . getRequest ( ) ;
 }
 <nb> final class ApplicationDispatcher
 break ;
 if ( current instanceof ApplicationResponse )
 break ;
 - if ( current instanceof Response )
 - break ;
 previous = current ;
 current = ( ( ServletResponseWrapper ) current ) . getResponse ( ) ;
 }

Remove impossible tests ID d by FindBugs


<nb> public class DeregisterTest extends SystemTestBase {
 public void testJobsArePreservedWhenReregistering ( ) throws Exception {
 startDefaultMaster ( ) ;
 final String host = testHost ( ) ;
 - AgentMain agent = startDefaultAgent ( host , STRING0 , STRING1 ) ;
 -
 + final AgentMain agent = startDefaultAgent ( host , STRING0 , STRING1 ) ;
 final HeliosClient client = defaultClient ( ) ;
 + awaitHostStatus ( client , host , UP , LONG_WAIT_SECONDS , SECONDS ) ;

 SINGLE
 final JobId jobId = createJob ( testJobName , testJobVersion , BUSYBOX , IDLE_COMMAND ) ;


<nb> public class TcpIpConnectionManager implements ConnectionManager {
 }

 SINGLE
 + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } )
 public InSelectorImpl [ ] getInSelectors ( ) {
 return inSelectors ;
 }

 SINGLE
 + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } )
 public OutSelectorImpl [ ] getOutSelectors ( ) {
 return outSelectors ;
 }

Resolved findbugs issue in TcpConnectionManager exposing arrays


<nb> public class AnimationTrack extends AbstractCinematicEvent {
 }

 @ override
 + public void setSpeed ( float speed ) {
 + super . setSpeed ( speed ) ;
 + if ( channel != null ) {
 + channel . setSpeed ( speed ) ;
 + }
 + }
 +
 +
 +
 + @ override
 public void onUpdate ( float tpf ) {
 }

Implemented setSpeed for animationTrack as it needs special treatment


<nb> public class AddActivity extends BaseTopActivity implements OnAddShowListener {
 private static final int TRAKT_CONNECTED_TABCOUNT = NUMBER0 ;

 public static final int TRENDING_TAB_POSITION = NUMBER1 ;
 - public static final int RECOMMENDED_TAB_POSITION = NUMBER2 ;
 - public static final int LIBRARY_TAB_POSITION = NUMBER3 ;
 - public static final int WATCHLIST_TAB_POSITION = NUMBER4 ;
 + public static final int RECOMMENDED_TAB_POSITION = NUMBER3 ;
 + public static final int LIBRARY_TAB_POSITION = NUMBER4 ;
 + public static final int WATCHLIST_TAB_POSITION = NUMBER5 ;

 public static final int SEARCH_TAB_DEFAULT_POSITION = NUMBER2 ;
 - public static final int SEARCH_TAB_CONNECTED_POSITION = NUMBER5 ;
 + public static final int SEARCH_TAB_CONNECTED_POSITION = NUMBER2 ;

 private Context mContext ;

Move the search tab second in AddActivity again


<nb> public class UIUtil {
 drawLine ( g , startX , bottomY , endX , bottomY , null , color ) ;
 }

 - private static final GrayFilter DEFAULT_GRAY_FILTER = new GrayFilter ( true , NUMBER0 ) ;
 - private static final GrayFilter DARCULA_GRAY_FILTER = new GrayFilter ( true , NUMBER1 ) ;
 + private static final GrayFilter DEFAULT_GRAY_FILTER = new GrayFilter ( true , NUMBER2 ) ;
 + private static final GrayFilter DARCULA_GRAY_FILTER = new GrayFilter ( true , NUMBER3 ) ;

 public static GrayFilter getGrayFilter ( ) {
 return isUnderDarcula ( ) ? DARCULA_GRAY_FILTER : DEFAULT_GRAY_FILTER ;

reduce contrast in gray filters for darcula nad bright themes


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ retention ( RetentionPolicy . RUNTIME )
 - @ target ( ElementType . FIELD )
 + @ target ( { ElementType . METHOD , ElementType . FIELD , ElementType . PARAMETER } )
 public @ interface Metric {

 COMMENT


<nb> public class FileDisplayActivity extends SherlockFragmentActivity implements

 @ override
 public boolean onCreateOptionsMenu ( Menu menu ) {
 - MenuInflater inflater = getSherlock ( ) . getMenuInflater ( ) ;
 - inflater . inflate ( R . menu . menu , menu ) ;
 - return true ;
 + if ( accountsAreSetup ( ) ) {
 + MenuInflater inflater = getSherlock ( ) . getMenuInflater ( ) ;
 + inflater . inflate ( R . menu . menu , menu ) ;
 + return true ;
 + }
 + return false ;
 }

 @ override


<nb> public class Field
 COMMENT
 public Field ( final String name ,
 final String description ,
 - final String groupName ,
 final int id ,
 final Type type ,
 final int offset ,
 <nb> public class Field
 {
 private final String name ;
 private String description ;
 - private String groupName ;
 private int id ;
 private Type type ;
 private int offset ;
 <nb> public class Field

 public Field build ( )
 {
 - return new Field ( name , description , groupName , id , type , offset ,
 + return new Field ( name , description , id , type , offset ,
 semanticType , presence , blockLength , dimensionType , variableLength ) ;
 }
 }


<nb> public abstract class StatusBar extends SystemUI implements CommandQueue . Callbac
 WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE
 | WindowManager . LayoutParams . FLAG_TOUCHABLE_WHEN_WAKING
 | WindowManager . LayoutParams . FLAG_SPLIT_TOUCH ,
 - PixelFormat . RGBX_8888 ) ;
 + PixelFormat . OPAQUE ) ;

 SINGLE
 final Display defaultDisplay
 <nb> public class PhoneStatusBar extends StatusBar {
 }

 SINGLE
 - mPixelFormat = PixelFormat . TRANSLUCENT ;
 - Drawable bg = sb . getBackground ( ) ;
 - if ( bg != null ) {
 - mPixelFormat = bg . getOpacity ( ) ;
 - }
 -
 + mPixelFormat = PixelFormat . OPAQUE ;
 mStatusIcons = ( LinearLayout ) sb . findViewById ( R . id . statusIcons ) ;
 mNotificationIcons = ( IconMerger ) sb . findViewById ( R . id . notificationIcons ) ;
 mIcons = ( LinearLayout ) sb . findViewById ( R . id . icons ) ;

Make the status and navigation bars OPAQUE


<nb> class BluetoothEventLoop {
 case BluetoothClass . Device . AUDIO_VIDEO_HANDSFREE :
 case BluetoothClass . Device . AUDIO_VIDEO_HEADPHONES :
 case BluetoothClass . Device . AUDIO_VIDEO_PORTABLE_AUDIO :
 - case BluetoothClass . Device . AUDIO_VIDEO_CAR_AUDIO :
 case BluetoothClass . Device . AUDIO_VIDEO_HIFI_AUDIO :
 if ( mBluetoothService . attemptAutoPair ( address ) ) return ;
 }

Remove Car audio class from auto pairing


<nb> public class MediaNames {

 public static final long PAUSE_WAIT_TIME = NUMBER0 ;
 public static final long WAIT_TIME = NUMBER1 ;
 - public static final long WAIT_LONG = NUMBER2 ;
 + public static final long WAIT_SNAPSHOT_TIME = NUMBER3 ;

 SINGLE
 public static final String VIDEO_HTTP3GP = STRING0 ;
 <nb> public class CameraTest extends ActivityInstrumentationTestCase < MediaFrameworkTe
 }
 mCamera . setPreviewCallback ( null ) ;
 mCamera . takePicture ( mShutterCallback , mRawPictureCallback , mJpegPictureCallback ) ;
 - Thread . sleep ( MediaNames . WAIT_LONG ) ;
 + Thread . sleep ( MediaNames . WAIT_SNAPSHOT_TIME ) ;
 } catch ( Exception e ) {
 Log . v ( TAG , e . toString ( ) ) ;
 }

Increase the sleep time to fix testTakePicture


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

 + public static class TypeSameAsFirstArgument implements PairFunction < GrMethodCall , PsiMethod , PsiType > {
 +
 + @ override
 + public PsiType fun ( GrMethodCall methodCall , PsiMethod method ) {
 + GrArgumentList argumentList = methodCall . getArgumentList ( ) ;
 + if ( argumentList == null ) return null ;
 +
 + GrExpression [ ] arguments = argumentList . getExpressionArguments ( ) ;
 + if ( arguments . length == NUMBER0 ) return null ;
 +
 + return arguments [ NUMBER0 ] . getType ( ) ;
 + }
 + }
 +
 }

Provide return type for GrailsHibernateUtil unwrapIfProxy object


<nb> public class AboutActivity extends InjectionAppCompatActivity {
 skullTextView . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View view ) {
 - showInfoDialog ( Status . RUN ) ;
 + showInfoDialog ( Status . SKULL ) ;
 }
 } ) ;
 }
 <nb> public class AboutActivity extends InjectionAppCompatActivity {
 R . string . danger ,
 R . string . detail_info_danger
 ) ,
 - RUN (
 + SKULL (
 R . drawable . sense_skull ,
 - R . string . run ,
 - R . string . detail_info_run
 + R . string . skull ,
 + R . string . detail_info_skull
 ) ;

 @ drawableres


<nb> public final class AndroidDesignerEditorPanel extends DesignerEditorPanel {
 }
 }

 - StringBuilder builder = new StringBuilder ( STRING0 ) ;
 + StringBuilder builder = new StringBuilder ( ) ;
 +
 + builder . append ( STRING1 ) . append ( myToolProvider . getActiveTool ( ) ) ;
 + builder . append ( STRING2 ) ;

 try {
 AndroidPlatform platform = AndroidPlatform . getInstance ( getModule ( ) ) ;


<nb> public final class Author implements Comparable < Author > {

 public Author ( String displayName , String sortKey ) {
 DisplayName = displayName ;
 - SortKey = sortKey ;
 + SortKey = sortKey . toLowerCase ( ) ;
 }

 public static int hashCode ( Author author ) {
 <nb> public final class Author implements Comparable < Author > {
 final int byKeys = SortKey . compareTo ( other . SortKey ) ;
 return byKeys != NUMBER0 ? byKeys : DisplayName . compareTo ( other . DisplayName ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return DisplayName + STRING0 + SortKey + STRING1 ;
 + }
 }


<nb> public final class LogLikelihood {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public static double entropy ( int . . . elements ) {
 <nb> public final class LogLikelihood {
 COMMENT
 COMMENT
 public static double logLikelihoodRatio ( int k11 , int k12 , int k21 , int k22 ) {
 + SINGLE
 double rowEntropy = entropy ( k11 , k12 ) + entropy ( k21 , k22 ) ;
 double columnEntropy = entropy ( k11 , k21 ) + entropy ( k12 , k22 ) ;
 double matrixEntropy = entropy ( k11 , k12 , k21 , k22 ) ;
 <nb> public final class LogLikelihood {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT

 COMMENT

Added comments for LogLikelihood to explain un normalized entropy


<nb> public abstract class TWAbsLayoutManager extends LayoutManager {
 }

 private void fillSpecific ( int position , Recycler recycler , State state ) {
 + if ( state . getItemCount ( ) == NUMBER0 ) {
 + return ;
 + }
 +
 makeAndAddView ( position , Direction . END , recycler ) ;

 SINGLE

core Handle onLayoutChildren with no items


<nb> public class OGremlinHelper {
 COMMENT
 public void create ( ) {
 if ( enginePool != null )
 - throw new IllegalStateException ( STRING0 ) ;
 + SINGLE
 + return ;

 enginePool = new OResourcePool < Object , GremlinScriptEngine > ( maxEngines ,
 new OResourcePoolListener < Object , GremlinScriptEngine > ( ) {


<nb> public final class SerializerRegistration {
 public Class getType ( ) {
 return type ;
 }
 +
 + public String toString ( ) {
 + return STRING0 + id + STRING1 + type + STRING1 + serializer + STRING2 ;
 + }
 }

Added a proper toString to SerializerRegistration


<nb> class QueryPlanner
 boolean needPostProjectionCoercion = false ;
 for ( FunctionCall aggregate : analysis . getAggregates ( node ) ) {
 Expression rewritten = subPlan . rewrite ( aggregate ) ;
 - Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getTypeWithCoercions ( aggregate ) ) ;
 + Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getType ( aggregate ) ) ;

 SINGLE
 SINGLE
 <nb> class QueryPlanner

 SINGLE
 Expression rewritten = subPlan . rewrite ( windowFunction ) ;
 - Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getTypeWithCoercions ( windowFunction ) ) ;
 + Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getType ( windowFunction ) ) ;

 boolean needCoercion = rewritten instanceof Cast ;
 SINGLE

Fix bad type info in window function and aggregate


<nb> public final class Cache {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix minor grammatical error in Javadoc for Cache initialize


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

 COMMENT


<nb>
 -
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> public abstract class FluidRegistry
 {
 if ( fluidBlocks == null )
 {
 + fluidBlocks = new BiMap < Block , Fluid > ( ) ;
 for ( Fluid fluid : fluids . values ( ) )
 {
 if ( fluid . canBePlacedInWorld ( ) && Block . blocksList [ fluid . getBlockID ( ) ] != null )


<nb> public final class ParseDataset extends Job < Frame > {
 SINGLE
 totalParseSize += getByteVec ( k ) . length ( ) ;
 }
 + Log . info ( STRING0 + PrettyPrint . bytes ( totalParseSize ) ) ;

 SINGLE
 for ( int i = NUMBER0 ; i < keys . length ; ++ i ) {

Log now records total on disk size of parse target


<nb> public abstract class Closure extends GroovyObjectSupport implements Cloneable ,

 return writer . toString ( ) ;
 }
 +
 + public Closure curry ( final Object arguments [ ] ) {
 + return ( new CurriedClosure ( this , arguments ) ) . asWritable ( ) ;
 + }
 }

 COMMENT


<nb> public class DoSFilter implements Filter
 COMMENT
 COMMENT
 @ managedoperation ( STRING0 )
 - public boolean removeWhitelistAddress ( String address )
 + public boolean removeWhitelistAddress ( @ name ( STRING1 ) String address )
 {
 return _whitelist . remove ( address ) ;
 }

Added Name annotation to JMX enabled operation


<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType {
 }

 @ override
 + public void appendEscapedEntityName ( StringBuilder sb , String name ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + sb . append ( STRING0 ) . append ( name ) . append ( STRING0 ) ;
 + }
 +
 + @ override
 protected void appendBooleanType ( StringBuilder sb , FieldType fieldType , int fieldWidth ) {
 SINGLE
 appendShortType ( sb , fieldType , fieldWidth ) ;
 <nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType {
 }
 SINGLE
 switch ( defaultPersister . getSqlType ( ) ) {
 - case DATE :
 + case DATE :
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType {
 } else {
 return DateStringType . getSingleton ( ) ;
 }
 - default :
 + default :
 return super . getDataPersister ( defaultPersister , fieldType ) ;
 }
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public abstract class AbstractFunction implements Function {
 @ getter
 - @ setter
 protected float [ ] weights ;
 @ getter
 protected float minVal ;


<nb> public final class MediaProjectionManagerService extends SystemService

 final long token = Binder . clearCallingIdentity ( ) ;
 try {
 - dump ( pw ) ;
 + MediaProjectionManagerService . this . dump ( pw ) ;
 } finally {
 Binder . restoreCallingIdentity ( token ) ;
 }

Qualify private outer call in MediaProjectionManagerService


<nb> public final class Tree {
 tree . description = local_tree . description ;
 tree . name = local_tree . name ;
 tree . notes = local_tree . notes ;
 - tree . strict_match = tree . strict_match ;
 + tree . strict_match = local_tree . strict_match ;
 + tree . enabled = local_tree . enabled ;

 SINGLE
 SINGLE

Fix boolean flag loading in Tree fetchAllTrees


<nb> public class EnumFieldPlugin extends BaseFieldPlugin {
 }

 TypeElement typeElement = ( TypeElement ) utils . getTypes ( ) . asElement ( field . asType ( ) ) ;
 - return typeElement . getKind ( ) == ElementKind . ENUM ;
 + return typeElement != null && typeElement . getKind ( ) == ElementKind . ENUM ;
 }

 @ override


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ channelpipelinecoverage ( STRING0 )
 public class LoggingHandler implements ChannelUpstreamHandler , ChannelDownstreamHandler {

 private final InternalLogger logger = InternalLoggerFactory . getInstance ( getClass ( ) ) ;

Fixed a warning message when LoggingHAndler is used


<nb> public class NonBlockingHashMap < TypeK , TypeV >
 SINGLE
 SINGLE
 K = key ( kvs , idx ) ; SINGLE
 - if ( K == null ) { System . out . println ( STRING0 ) ; continue ; }
 - assert K != null ; SINGLE
 + if ( K == null ) continue ; SINGLE
 }
 SINGLE

Removed spurious CAS failure debug print from nonblocking hash map about as it was flooding the logs


<nb> public class Config {
 {
 origin = origin . split ( STRING0 ) [ NUMBER0 ] ;
 }
 - origin . matches ( STRING1 ) ;
 return origin . startsWith ( STRING2 ) ;
 }


<nb> public abstract class AbstractSyncableContentProvider extends SyncableContentPro
 public void onCreate ( SQLiteDatabase db ) {
 bootstrapDatabase ( db ) ;
 mSyncState . createDatabase ( db ) ;
 - ContentResolver . requestSync ( null COMMENT ,
 + if ( ! isTemporary ( ) ) {
 + ContentResolver . requestSync ( null COMMENT ,
 mContentUri . getAuthority ( ) , new Bundle ( ) ) ;
 + }
 }

 @ override

don t request a sync when temp providers are created


<nb>
 COMMENT
 package NAMESPACE ;

 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ org.junit.ignore
 public final class TestOptions {
 private static final boolean ENABLED ;


<nb> public final class Constants {
 COMMENT
 COMMENT
 COMMENT
 - public static final boolean ASTRID_LITE = true ;
 + public static final boolean ASTRID_LITE = false ;

 COMMENT
 COMMENT


<nb> public class AccountHeader {
 if ( drawerItem != null && drawerItem instanceof IProfile && ( ( IProfile ) drawerItem ) . isSelectable ( ) ) {
 switchProfiles ( ( IProfile ) drawerItem ) ;
 }
 -
 + mDrawer . setOnDrawerItemClickListener ( null ) ;
 SINGLE
 new Handler ( ) . postDelayed ( new Runnable ( ) {
 @ override

Fix the empty drawer bug on quick consecutive profile switches


<nb> class CallbackProxy extends Handler {
 public void onProgressChanged ( int newProgress ) {
 SINGLE
 synchronized ( this ) {
 - mLatestProgress = newProgress ;
 - if ( mWebChromeClient == null ) {
 + if ( mWebChromeClient == null || mLatestProgress == newProgress ) {
 return ;
 }
 + mLatestProgress = newProgress ;
 if ( ! mProgressUpdatePending ) {
 sendEmptyMessage ( PROGRESS ) ;
 mProgressUpdatePending = true ;

Do not update the progress if it is the same as the last given progress


<nb> public class Facebook {
 void autoPublishAsync ( final Context context ) {
 AutoPublishAsyncTask asyncTask = null ;
 synchronized ( this ) {
 - if ( mAutoPublishAsyncTask == null ) {
 + if ( mAutoPublishAsyncTask == null && getShouldAutoPublishInstall ( ) ) {
 SINGLE
 String applicationId = Facebook . this . mAppId ;

Check shouldAutoPublishInstall on auto publish


<nb> public class TestPerformance extends BaseTest {

 protected void compileJavaParser ( boolean leftRecursive ) throws IOException {
 String grammarFileName = leftRecursive ? STRING0 : STRING1 ;
 - String sourceName = leftRecursive ? STRING0 : STRING1 ;
 String parserName = leftRecursive ? STRING2 : STRING3 ;
 String lexerName = leftRecursive ? STRING4 : STRING5 ;
 - String body = load ( sourceName , null ) ;
 + String body = load ( grammarFileName , null ) ;
 List < String > extraOptions = new ArrayList < String > ( ) ;
 extraOptions . add ( STRING6 ) ;
 if ( FORCE_ATN ) {


<nb> maven_jar (
 )
 < / pre >

 - < p > Targets can specify < code > @ guava SINGLE
 + < p > Targets can specify < code > @ com_google_guava_guava SINGLE
 + jar . < / p >

 COMMENT

Fix maven_jar documentation to use to the correct repository name


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public interface MetaContactListListener
 extends EventListener
 {
 -
 +
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 public void metaContactAdded ( MetaContactEvent evt ) ;
 -
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void metaContactModified ( MetaContactEvent evt ) ;
 +
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public void metaContactRemoved ( MetaContactEvent evt ) ;
 -
 +
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 public void metaContactGroupAdded ( MetaContactGroupEvent evt ) ;
 -
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void metaContactGroupModified ( MetaContactGroupEvent evt ) ;
 +
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public void metaContactGroupRemoved ( MetaContactGroupEvent evt ) ;
 -
 +
 }

added additional methods and documentation


<nb> public class WalletTest extends TestWithWallet {
 public void keyRotationHD ( ) throws Exception {
 SINGLE
 Utils . setMockClock ( ) ;
 + wallet = new Wallet ( params ) ;
 ECKey key1 = wallet . freshReceiveKey ( ) ;
 ECKey key2 = wallet . freshReceiveKey ( ) ;
 sendMoneyToWallet ( wallet , CENT , key1 . toAddress ( params ) , AbstractBlockChain . NewBlockType . BEST_CHAIN ) ;

pin creation time of wallet key hierarchy in keyRotationHD test to avoid timing race


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public interface Input {
 }
 }

 - private static ObjectMap < String , Integer > keyNames ;
 + private static ObjectIntMap < String > keyNames ;

 COMMENT
 COMMENT
 <nb> public interface Input {

 COMMENT
 private static void initializeKeyNames ( ) {
 - keyNames = new ObjectMap < String , Integer > ( ) ;
 + keyNames = new ObjectIntMap < String > ( ) ;
 for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 String name = toString ( i ) ;
 if ( name != null ) {


<nb> public class EmailUtil {
 String contentType = part . getContentType ( ) ;
 String ret = null ;

 - if ( part . getFileName ( ) != null ) {
 + try {
 ret = javax . mail . internet . MimeUtility . decodeText ( part . getFileName ( ) ) ;
 }
 - else {
 + catch ( Exception ex ) {
 String [ ] contentId = part . getHeader ( STRING0 ) ;
 if ( contentId != null && contentId . length > NUMBER0 ) {
 ret = contentId [ NUMBER0 ] ;
 <nb> public class EmailUtil {
 ret += StringPool . DOT + contentType . substring ( contentType . lastIndexOf ( STRING1 ) + NUMBER1 , contentType . length ( ) ) ;
 }

 - return ret == null ? StringPool . EMPTY : ret ;
 + return ret ;
 }

 }


<nb> public class AndroidApplicationConfiguration {
 COMMENT
 COMMENT
 public boolean useGLSurfaceViewAPI18 = false ;
 +
 + COMMENT
 + public boolean useImmersiveMode = false ;
 }


<nb> public class StatementMover extends LineMover {
 final PsiElement tmp = PyPsiUtils . getSignificantToTheRight ( element2 , false ) ;
 if ( tmp != null &&
 ( editor . offsetToLogicalPosition ( tmp . getTextRange ( ) . getStartOffset ( ) ) . line == info . toMove2 . startLine ||
 - tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . ELSE_KEYWORD ) )
 + tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . ELSE_KEYWORD || tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . EXCEPT_KEYWORD ) )
 element2 = tmp ;
 } else {
 final PsiElement tmp = PyPsiUtils . getSignificantToTheRight ( element2 , false ) ;

breaks code in case of empty line between parts of compound statement


<nb> public class UserPage extends RootPage {
 user = new UserModel ( userName ) ;
 }

 - String projectName = user . getPersonalPath ( ) ;
 -
 - ProjectModel project = app ( ) . projects ( ) . getProjectModel ( projectName ) ;
 - if ( project == null ) {
 - project = new ProjectModel ( projectName ) ;
 - }
 -
 add ( new Label ( STRING0 , user . getDisplayName ( ) ) ) ;
 add ( new Label ( STRING1 , user . username ) ) ;
 LinkPanel email = new LinkPanel ( STRING2 , null , user . emailAddress , STRING3 ) ;


<nb> package NAMESPACE ;
 public interface EmbeddedServletContainer {

 COMMENT
 - COMMENT
 - COMMENT
 - public static final EmbeddedServletContainer NONE = new EmbeddedServletContainer ( ) {
 -
 - @ override
 - public void start ( ) throws EmbeddedServletContainerException {
 - SINGLE
 - } ;
 -
 - @ override
 - public void stop ( ) throws EmbeddedServletContainerException {
 - SINGLE
 - }
 -
 - @ override
 - public int getPort ( ) {
 - return NUMBER0 ;
 - }
 -
 - } ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

remove obsolete EmbeddedServletContainer NONE


<nb> public class DependencyManager implements InstallShinyEvent . Handler
 Dependency . cranPackage ( STRING0 , STRING1 ) ,
 Dependency . cranPackage ( STRING2 , STRING3 ) ,
 Dependency . cranPackage ( STRING4 , STRING5 ) ,
 + Dependency . cranPackage ( STRING6 , STRING7 ) ,
 Dependency . embeddedPackage ( STRING8 )
 } ,
 true , SINGLE

add dependency on rstudioapi for rsconnect installation


<nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleBubbleData <

 @ override
 protected void onSizeChanged ( int w , int h , int oldw , int oldh ) {
 - SINGLE
 +
 + SINGLE
 float [ ] pts = new float [ NUMBER0 ] ;
 - pts [ NUMBER1 ] = mViewPortHandler . contentLeft ( ) ;
 - pts [ NUMBER2 ] = mViewPortHandler . contentTop ( ) ;
 - getTransformer ( AxisDependency . LEFT ) . pixelsToValue ( pts ) ;
 + if ( mKeepPositionOnRotation ) {
 + pts [ NUMBER1 ] = mViewPortHandler . contentLeft ( ) ;
 + pts [ NUMBER2 ] = mViewPortHandler . contentTop ( ) ;
 + getTransformer ( AxisDependency . LEFT ) . pixelsToValue ( pts ) ;
 + }

 SINGLE
 super . onSizeChanged ( w , h , oldw , oldh ) ;

 - if ( mKeepPositionOnRotation ) {
 + if ( mKeepPositionOnRotation ) {

 SINGLE
 getTransformer ( AxisDependency . LEFT ) . pointValuesToPixel ( pts ) ;


<nb> package 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 NamespaceSandboxRunner {

 static boolean isSupported ( BlazeRuntime runtime ) {
 Path execRoot = runtime . getExecRoot ( ) ;
 - OutErr outErr = runtime . getReporter ( ) . getOutErr ( ) ;
 BinTools binTools = runtime . getBinTools ( ) ;

 List < String > args = new ArrayList < > ( ) ;
 <nb> public class NamespaceSandboxRunner {
 cmd . execute (
 COMMENT
 Command . NO_OBSERVER ,
 - outErr . getOutputStream ( ) ,
 - outErr . getErrorStream ( ) ,
 + ByteStreams . nullOutputStream ( ) ,
 + ByteStreams . nullOutputStream ( ) ,
 COMMENT
 } catch ( CommandException e ) {
 return false ;

Do not print the output of the isSupported check


<nb> public final class Request {
 return new Builder ( this ) ;
 }

 - public Headers getHeaders ( ) {
 - return headers ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Route {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public Proxy getProxy ( ) {
 return proxy ;
 <nb> public final class HttpTransport implements Transport {
 String requestLine = RequestLine . get ( request ,
 httpEngine . getConnection ( ) . getRoute ( ) . getProxy ( ) . type ( ) ,
 httpEngine . getConnection ( ) . getProtocol ( ) ) ;
 - httpConnection . writeRequest ( request . getHeaders ( ) , requestLine ) ;
 + httpConnection . writeRequest ( request . headers ( ) , requestLine ) ;
 }

 @ override public Response . Builder readResponseHeaders ( ) throws IOException {

Drop getHeaders which is redundant with headers


<nb> public class PluginManager
 return new SimpleChildFirstClassLoader ( urls ,
 getClass ( ) . getClassLoader ( ) ,
 ImmutableList . of ( STRING0 ) ,
 - ImmutableList . of ( STRING1 ) ) ;
 + ImmutableList . of ( STRING1 , STRING2 ) ) ;
 }

 private List < File > listFiles ( File installedPluginsDir )

Add com fasterxml jackson to parent first packages


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPostProcessor ,
 - ResourceLoaderAware , BeanClassLoaderAware , EnvironmentAware , ApplicationContextAware {
 + ResourceLoaderAware , BeanClassLoaderAware , EnvironmentAware , ApplicationContextAware ,
 + Ordered {

 private static final String IMPORT_AWARE_PROCESSOR_BEAN_NAME =
 ConfigurationClassPostProcessor . class . getName ( ) + STRING0 ;
 <nb> public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
 }
 }

 + @ override
 + public int getOrder ( ) {
 + return Ordered . HIGHEST_PRECEDENCE ;
 + }
 +

 private static class ImportAwareBeanPostProcessor implements PriorityOrdered , BeanFactoryAware , BeanPostProcessor {

Make ConfClassPostPro Ordered HIGHEST_PRECEDENCE


<nb> public class ActiveSession extends JavaScriptObject
 public native final String getWorkingDir ( ) COMMENT
 COMMENT
 COMMENT ;
 +
 + public native final boolean getRunning ( ) COMMENT
 + COMMENT
 + COMMENT ;
 +
 + public native final double getLastUsed ( ) COMMENT
 + COMMENT
 + COMMENT ;
 +
 + public native final String getRVersion ( ) COMMENT
 + COMMENT
 + COMMENT ;
 +
 + public native final String getRVersionHome ( ) COMMENT
 + COMMENT
 + COMMENT ;
 +
 +
 }


<nb> public class SyslogUDPInput implements MessageInput {
 final ExecutorService workerThreadPool = Executors . newCachedThreadPool ( ) ;
 final ConnectionlessBootstrap bootstrap = new ConnectionlessBootstrap ( new NioDatagramChannelFactory ( workerThreadPool ) ) ;

 + bootstrap . setOption ( STRING0 , NUMBER0 ) ;
 bootstrap . setOption ( STRING1 , new FixedReceiveBufferSizePredictorFactory ( NUMBER1 ) ) ;
 bootstrap . setPipelineFactory ( new SyslogPipelineFactory ( graylogServer ) ) ;

also set ReceiveBufferSize for syslog udp


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

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;

 COMMENT
 COMMENT


<nb> public class Response
 protected final CharChunk redirectURLCC = new CharChunk ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private final List < Cookie > cookies = new ArrayList < > ( ) ;
 +
 SINGLE

 <nb> public class Response
 COMMENT
 public void recycle ( ) {

 + cookies . clear ( ) ;
 outputBuffer . recycle ( ) ;
 usingOutputStream = false ;
 usingWriter = false ;
 <nb> public class Response
 }

 + public List < Cookie > getCookies ( ) {
 + return cookies ;
 + }
 +
 +
 SINGLE

 COMMENT
 <nb> public class Response
 return ;
 }

 + cookies . add ( cookie ) ;
 +
 String header = generateCookieString ( cookie ) ;
 SINGLE
 SINGLE

Keep a reference to the cookie objects that are added to the response


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReviewPresenter implements IsWidget
 final EventBus events ,
 final VcsState vcsState ,
 final Commands commands ,
 - final Session session )
 + final Session session ,
 + final GlobalDisplay globalDisplay )
 {
 server_ = server ;
 view_ = view ;
 + globalDisplay_ = globalDisplay ;

 vcsState . addVcsRefreshHandler ( new VcsRefreshHandler ( )
 {
 <nb> public class ReviewPresenter implements IsWidget
 private final Invalidation diffInvalidation_ = new Invalidation ( ) ;
 private final VCSServerOperations server_ ;
 private final Display view_ ;
 + private final GlobalDisplay globalDisplay_ ;
 private ArrayList < DiffChunk > activeChunks_ = new ArrayList < DiffChunk > ( ) ;
 private static final String MODULE_VCS = STRING0 ;
 private static final String KEY_CONTEXT_LINES = STRING1 ;


<nb> public class ExampleRunner {
 connection . setDoInput ( true ) ;
 connection . setDoOutput ( true ) ;
 connection . setRequestMethod ( STRING0 ) ;
 - connection . setRequestProperty ( STRING1 , STRING2 ) ;
 + connection . setRequestProperty ( STRING1 , STRING3 ) ;
 os = new BufferedOutputStream ( connection . getOutputStream ( ) ) ;

 StringBuilder builder = new StringBuilder ( ) ;
 <nb> public class ExampleRunner {
 connection . setDoInput ( true ) ;
 connection . setDoOutput ( true ) ;
 connection . setRequestMethod ( STRING0 ) ;
 - connection . setRequestProperty ( STRING1 , STRING2 ) ;
 + connection . setRequestProperty ( STRING1 , STRING3 ) ;
 os = new BufferedOutputStream ( connection . getOutputStream ( ) ) ;

 StringBuilder builder = new StringBuilder ( ) ;


<nb> public class MediaScanner
 prescan ( path , true ) ;

 File file = new File ( path ) ;
 - if ( ! file . exists ( ) ) {
 + if ( ! file . exists ( ) || ! file . canRead ( ) ) {
 return null ;
 }


<nb> public class DefaultJSONParser implements Closeable {
 }

 if ( token == JSONToken . LITERAL_STRING ) {
 - type = TypeUtils . unwrap ( type ) ;
 if ( type == byte [ ] . class ) {
 byte [ ] bytes = lexer . bytesValue ( ) ;
 lexer . nextToken ( ) ;
 <nb> public class TypeUtils {
 return type ;
 }

 - public static Type unwrap ( Type type ) {
 - if ( type instanceof GenericArrayType ) {
 - Type componentType = ( ( GenericArrayType ) type ) . getGenericComponentType ( ) ;
 - if ( componentType == byte . class ) {
 - return byte [ ] . class ;
 - }
 - if ( componentType == char . class ) {
 - return char [ ] . class ;
 - }
 - }
 -
 - return type ;
 - }
 -
 public static Type unwrapOptional ( Type type ) {
 if ( ! optionalClassInited ) {
 try {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class LocalStore extends Store implements Serializable {
 - private static final int DB_VERSION = NUMBER0 ;
 + private static final int DB_VERSION = NUMBER1 ;
 private static final Flag [ ] PERMANENT_FLAGS = { Flag . DELETED , Flag . X_DESTROYED , Flag . SEEN } ;

 private String mPath ;
 <nb> public class LocalStore extends Store implements Serializable {
 mDb . execSQL ( STRING0
 + STRING1 ) ;

 + mDb . execSQL ( STRING2 ) ;
 mDb . execSQL ( STRING3 ) ;
 mDb . execSQL ( STRING4
 + STRING5
 + STRING6 ) ;

 + mDb . execSQL ( STRING7 ) ;
 + mDb . execSQL ( STRING8 ) ;
 mDb . execSQL ( STRING9 ) ;
 mDb . execSQL ( STRING10
 + STRING11

Add a few indexes to the message and folder lists


<nb> class MapServiceContextImpl implements MapServiceContext {
 protected EventService eventService ;
 protected MapOperationProviders operationProviders ;

 - private final ContextMutexFactory contextMutexFactory = new ContextMutexFactory ( ) ;
 + protected final ContextMutexFactory contextMutexFactory = new ContextMutexFactory ( ) ;

 MapServiceContextImpl ( NodeEngine nodeEngine ) {
 this . nodeEngine = nodeEngine ;

Change access of variable in MapServiceContextImpl


<nb> public class CommandLineUtils {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static void initializeDatabase ( String username , String defaultCatalogName , String defaultSchemaName , Database database ) throws DatabaseException {
 if ( ( defaultCatalogName != null || defaultSchemaName != null ) && ! ( database . getConnection ( ) instanceof OfflineConnection ) ) {
 if ( database instanceof OracleDatabase ) {


<nb> public class ObjectGeneratorPineTree extends ObjectGenerator {

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public ObjectGeneratorPineTree ( LocalWorldProvider w ) {
 super ( w ) ;
 <nb> public class GroovyManager {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Commit two tiny fixes just to test making a Pull request on GitHub


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public final class WebViewFactory {
 - private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = true ;
 + private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ;
 private static final String EXPERIMENTAL_PROPERTY_DEFAULT_OFF = STRING0 ;
 private static final String EXPERIMENTAL_PROPERTY_DEFAULT_ON = STRING1 ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class DisplayImageOptions {
 private Handler handler = null ;
 private boolean isSyncLoading = false ;

 - public Builder ( ) {
 - decodingOptions . inPurgeable = true ;
 - decodingOptions . inInputShareable = true ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT

inPurgeable and inInputShareable causes file descriptor leak on KitKat


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

Remove reference to AttributeService in attribute package javadoc


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


<nb> public class XmlNode extends RubyObject {

 try {
 parentNode . replaceChild ( otherNode , thisNode ) ;
 + otherNode . getOwnerDocument ( ) . renameNode ( otherNode , thisNode . getNamespaceURI ( ) , otherNode . getNodeName ( ) ) ;
 } catch ( Exception e ) {
 String prefix = STRING0 ;
 throw context . getRuntime ( ) . newRuntimeError ( prefix + e . toString ( ) ) ;

Fix namespace when a node is replaced by another node


<nb>
 COMMENT
 package NAMESPACE ;

 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static NAMESPACE ;
 + import static 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 static NAMESPACE ;
 - import static NAMESPACE ;
 - import static NAMESPACE ;
 - import static NAMESPACE ;
 -
 public class ResultPrinterTest
 {

Changed assert method in ResultPrinterTest


<nb> import NAMESPACE ;
 @ suppresswarnings ( { STRING0 , STRING1 } )
 @ privateapi
 public final class HazelcastInstanceProxy implements HazelcastInstance , SerializationServiceSupport {
 +
 protected volatile HazelcastInstanceImpl original ;
 +
 private final String name ;

 protected HazelcastInstanceProxy ( HazelcastInstanceImpl original ) {
 <nb> public final class HazelcastInstanceProxy implements HazelcastInstance , Serializ
 getLifecycleService ( ) . shutdown ( ) ;
 }

 + @ override
 public InternalSerializationService getSerializationService ( ) {
 return getOriginal ( ) . getSerializationService ( ) ;
 }

Added missing Override annotation in HazelcastInstanceProxy


<nb> public abstract class Operation implements DataSerializable {
 return this ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public final long getWaitTimeout ( ) {
 return waitTimeout ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public final void setWaitTimeout ( long timeout ) {
 this . waitTimeout = timeout ;
 setFlag ( timeout != - NUMBER0 , BITMASK_WAIT_TIMEOUT_SET ) ;

Improved Operation waitTimeout documentation


<nb> public final class ContactsContract {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - @ deprecated
 public static final int AGGREGATION_MODE_IMMEDIATE = NUMBER0 ;

 COMMENT
 <nb> public final class ContactsContract {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - @ deprecated
 public static final class Data implements BaseColumns , DataColumns {
 COMMENT
 COMMENT

Revert a couple of deprecations to fix broken build


<nb> public interface List < T > extends Iterable < T > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 default int size ( ) {
 - return isEmpty ( ) ? NUMBER0 : NUMBER1 + tail ( ) . size ( ) ;
 + int result = NUMBER0 ;
 + for ( List < T > list = this ; ! list . isEmpty ( ) ; list = list . tail ( ) , result ++ ) ;
 + return result ;
 }

 default boolean contains ( T o ) {

faster size function prevents possibility of stack overflow for big


<nb> public class GlobalMatchingVisitor extends AbstractMatchingVisitor {
 SINGLE
 private MatchContext matchContext ;

 - private MatchingHandler myLastHandler ;
 -
 - private Map < Language , PsiElementVisitor > myLanguage2MatchingVisitor = new HashMap < Language , PsiElementVisitor > ( NUMBER0 ) ;
 + private final Map < Language , PsiElementVisitor > myLanguage2MatchingVisitor = new HashMap < Language , PsiElementVisitor > ( NUMBER0 ) ;

 public PsiElement getElement ( ) {
 return myElement ;
 <nb> public class GlobalMatchingVisitor extends AbstractMatchingVisitor {
 return nodes . hasNext ( ) == nodes2 . hasNext ( ) ;
 }

 - myLastHandler = matchContext . getPattern ( ) . getHandler ( nodes . current ( ) ) ;
 - return myLastHandler . matchSequentially (
 + return matchContext . getPattern ( ) . getHandler ( nodes . current ( ) ) . matchSequentially (
 nodes ,
 nodes2 ,
 matchContext


<nb> public class Document implements Map < String , Object > , Serializable {
 return ( Integer ) get ( key ) ;
 }

 + public int getInteger ( final Object key , final int defaultValue ) {
 + Object value = get ( key ) ;
 + return value == null ? defaultValue : ( Integer ) value ;
 + }
 +
 public Long getLong ( final Object key ) {
 return ( Long ) get ( key ) ;
 }
 <nb> public class Document implements Map < String , Object > , Serializable {
 return ( Boolean ) get ( key ) ;
 }

 + public boolean getBoolean ( final Object key , final boolean defaultValue ) {
 + Object value = get ( key ) ;
 + return value == null ? defaultValue : ( Boolean ) value ;
 + }
 +
 public ObjectId getObjectId ( final Object key ) {
 return ( ObjectId ) get ( key ) ;
 }

Added getInteger and getBoolean overloads to Document that take a default value


<nb> public final class JsModuleDetector {
 private JsModuleDetector ( ) {
 }

 + public static boolean isJsProject ( @ notnull Project project ) {
 + return getJSModule ( project ) != null ;
 + }
 +
 public static boolean isJsModule ( @ notnull Module module ) {
 return K2JSModuleComponent . getInstance ( module ) . isJavaScriptModule ( ) ;
 }

Restore JsModuleDetector iisJsProject to avoid compilation error


<nb> public class LogbackHelper {
 public static final String MAX_FILES_PROPERTY = STRING0 ;

 public LoggerContext getRootContext ( ) {
 - return ( ( Logger ) LoggerFactory . getLogger ( Logger . ROOT_LOGGER_NAME ) ) . getLoggerContext ( ) ;
 + org . slf4j . Logger logger ;
 + while ( ! ( ( logger = LoggerFactory . getLogger ( Logger . ROOT_LOGGER_NAME ) ) instanceof Logger ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + try {
 + Thread . sleep ( NUMBER0 ) ;
 + } catch ( InterruptedException e ) {
 + Thread . currentThread ( ) . interrupt ( ) ;
 + }
 + }
 + return ( ( Logger ) logger ) . getLoggerContext ( ) ;
 }

 public LoggerContextListener enableJulChangePropagation ( LoggerContext loggerContext ) {


<nb> public class DB implements Closeable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 synchronized public < K , V > HTreeMap < K , V > hashMap (
 String name ,
 Serializer < K > keySerializer ,
 + Serializer < V > valueSerializer ) {
 + return hashMap ( name , keySerializer , valueSerializer , null ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + synchronized public < K , V > HTreeMap < K , V > hashMap (
 + String name ,
 + Serializer < K > keySerializer ,
 Serializer < V > valueSerializer ,
 Fun . Function1 < V , K > valueCreator ) {
 checkNotClosed ( ) ;


<nb> public class OrderedMemoryAwareThreadPoolExecutor extends
 ChannelStateEvent se = ( ChannelStateEvent ) e ;
 if ( se . getState ( ) == ChannelState . OPEN &&
 ! channel . isOpen ( ) ) {
 - childExecutors . remove ( channel ) ;
 + removeChildExecutor ( key ) ;
 }
 }
 return executor ;

Remove the child Executor with the right method so it will also work


<nb> public class TraversalFactory
 return StandardExpander . create ( type , dir ) ;
 }

 + public static Expander emptyExpander ( )
 + {
 + return StandardExpander . DEFAULT ; SINGLE
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Fixed issue where shell used parts of kernel that ought to be implementation internals


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

 public class ExampleModel extends SupervisedModel < ExampleModel , ExampleModel . ExampleParameters , ExampleModel . ExampleOutput > {


<nb> import NAMESPACE ;
 @ sideonly ( Side . CLIENT )
 public abstract class CustomModLoadingErrorDisplayException extends RuntimeException implements IFMLHandledException
 {
 + public CustomModLoadingErrorDisplayException ( ) {
 + }
 +
 + public CustomModLoadingErrorDisplayException ( String message , Throwable cause )
 + {
 + super ( message , cause ) ;
 + }
 +
 private static final long serialVersionUID = NUMBER0 ;

 COMMENT

Add a constructor to CustomModLoadingDisplayException


<nb> class Task implements DimLayer . DimLayerUser {
 }

 int boundsChange = BOUNDS_CHANGE_NONE ;
 - if ( mBounds . left != bounds . left || mBounds . right != bounds . right ) {
 + if ( mBounds . left != bounds . left || mBounds . top != bounds . top ) {
 boundsChange |= BOUNDS_CHANGE_POSITION ;
 }
 if ( mBounds . width ( ) != bounds . width ( ) || mBounds . height ( ) != bounds . height ( ) ) {
 <nb> public class WindowManagerService extends IWindowManager . Stub
 public void setReplacingWindow ( IBinder token , boolean animate ) {
 synchronized ( mWindowMap ) {
 AppWindowToken appWindowToken = findAppWindowToken ( token ) ;
 - if ( appWindowToken == null ) {
 + if ( appWindowToken == null || ! appWindowToken . isVisible ( ) ) {
 Slog . w ( TAG , STRING0 + token ) ;
 return ;
 }

Fix window disappearing when docking a second app


<nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {
 String name , double length ,
 StreetTraversalPermission permission , boolean back ) {
 SINGLE
 + SINGLE
 this ( v1 , v2 , geometry , name , length , permission , back , FLOAT0 ) ;
 }


<nb> public class Db4oPersistenceService implements QueryablePersistenceService {
 db . commit ( ) ;
 logger . trace ( STRING0 , System . currentTimeMillis ( ) - startTime ) ;
 } catch ( Db4oException e ) {
 - db . rollback ( ) ;
 - logger . warn ( STRING1 , e . getMessage ( ) ) ;
 + try {
 + db . rollback ( ) ;
 + logger . warn ( STRING1 , e . getMessage ( ) ) ;
 + } catch ( DatabaseClosedException dce ) {
 + SINGLE
 + logger . debug ( STRING2 , e . getMessage ( ) ) ;
 + }
 }
 }


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class RemoteViewsCompat {
 <nb> public class RemoteViewsCompat {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PythonSkeletonsTest extends PyEnvTestCase {
 assertNotNull ( builtins ) ;
 final PyClass cls = builtins . findTopLevelClass ( STRING0 ) ;
 assertNotNull ( cls ) ;
 - final Property prop = cls . findProperty ( STRING1 ) ;
 + final Property prop = cls . findProperty ( STRING1 , true ) ;
 assertNotNull ( prop ) ;
 assertIsNotNull ( prop . getGetter ( ) ) ;
 assertIsNotNull ( prop . getSetter ( ) ) ;

Added inherited parameter to PyClass findProperty


<nb> public class SubsamplingLayer extends BaseLayer < org . deeplearning4j . nn . conf . layer
 c = pooled . size ( NUMBER0 ) ;
 kh = pooled . size ( NUMBER1 ) ;
 kw = pooled . size ( NUMBER2 ) ;
 - outWidth = pooled . size ( NUMBER3 ) ;
 - outHeight = pooled . size ( NUMBER4 ) ;
 + outHeight = pooled . size ( NUMBER3 ) ;
 + outWidth = pooled . size ( NUMBER4 ) ;
 ret = pooled . reshape ( n , c , kh * kw , outHeight , outWidth ) ;
 maxIndexes = Nd4j . argMax ( ret , NUMBER1 ) ;
 return ret . max ( NUMBER1 ) ;

Fix height vs width issue in max pooling backprop


<nb> public class DeepLearningAutoEncoderTest extends TestUtil {
 p . _loss = DeepLearningModel . DeepLearningParameters . Loss . Absolute ;
 p . _epochs = FLOAT0 ;
 p . _force_load_balance = true ;
 + p . _elastic_averaging = false ;
 DeepLearning dl = new DeepLearning ( p ) ;
 DeepLearningModel mymodel = null ;
 try {


<nb> public class OracleStructureAssistant implements DBSStructureAssistant
 OracleObjectType . FOREIGN_KEY ,
 OracleObjectType . INDEX ,
 OracleObjectType . PROCEDURE ,
 + OracleObjectType . SEQUENCE ,
 OracleObjectType . TRIGGER ,
 } ;
 }


<nb> public class NativeCounterCell extends NativeCell implements CounterCell

 public boolean equals ( Cell cell )
 {
 - return cell instanceof CounterCell && equals ( ( CounterCell ) this ) ;
 + return cell instanceof CounterCell && equals ( ( CounterCell ) cell ) ;
 }

 public boolean equals ( CounterCell cell )
 <nb> public class NativeExpiringCell extends NativeCell implements ExpiringCell

 public boolean equals ( Cell cell )
 {
 - return cell instanceof ExpiringCell && equals ( ( ExpiringCell ) this ) ;
 + return cell instanceof ExpiringCell && equals ( ( ExpiringCell ) cell ) ;
 }

 protected boolean equals ( ExpiringCell cell )

fix equals to compare this to the parm rather than this to this


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

 public class GroovyCompilerFactory {
 + private static final Logger LOGGER = LoggerFactory . getLogger ( GroovyCompilerFactory . class ) ;
 private final ProjectInternal project ;
 private final IsolatedAntBuilder antBuilder ;
 private final ClassPathRegistry classPathRegistry ;
 <nb> public class GroovyCompilerFactory {
 }

 Compiler < GroovyJavaJointCompileSpec > create ( GroovyCompileOptions groovyOptions , CompileOptions javaOptions ) {
 + SINGLE
 + if ( groovyOptions . isUseAnt ( ) && ! javaOptions . isUseAnt ( ) ) {
 + LOGGER . warn ( STRING0 ) ;
 + javaOptions . setUseAnt ( true ) ;
 + } else if ( ! groovyOptions . isUseAnt ( ) && javaOptions . isUseAnt ( ) ) {
 + LOGGER . warn ( STRING1 ) ;
 + javaOptions . setUseAnt ( false ) ;
 + }
 +
 if ( groovyOptions . isUseAnt ( ) ) {
 return new AntGroovyCompiler ( antBuilder , classPathRegistry ) ;
 }

Don t mix ant gradle compiler implementations when doing joint groovy java compilation


<nb> public interface ServiceTicket extends Ticket {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 boolean isValidFor ( Service service ) ;

NOJIRA Update the desc of the service parameter in ServiceTicket


<nb> public abstract class ProxyConnection implements Connection
 delegate = ClosedConnection . CLOSED_CONNECTION ;
 poolEntry . recycle ( lastAccess ) ;
 }
 - poolEntry = null ; leakTask = null ; openStatements = null ; SINGLE
 + poolEntry = null ; leakTask = null ; SINGLE
 }
 }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public abstract class TypeSafeMatcher < T > extends BaseMatcher < T > {

 private static Class < ? > findExpectedType ( Class < ? > fromClass ) {
 for ( Class < ? > c = fromClass ; c != Object . class ; c = c . getSuperclass ( ) ) {
 - for ( Method method : c . getDeclaredMethods ( ) ) {
 + for ( Method method : MethodSorter . getDeclaredMethods ( c ) ) {
 if ( isMatchesSafelyMethod ( method ) ) {
 return method . getParameterTypes ( ) [ NUMBER0 ] ;
 }

Using MethodSorter here too just in case it matters


<nb> public class PostfixLiveTemplate extends CustomLiveTemplateBase {
 public String computeTemplateKey ( @ notnull CustomTemplateCallback callback ) {
 Editor editor = callback . getEditor ( ) ;
 String key = computeTemplateKeyWithoutContextChecking ( editor ) ;
 -
 - PostfixTemplate template = key != null ? getTemplateByKey ( key ) : null ;
 - return isApplicableTemplate ( template , key , callback . getContext ( ) . getContainingFile ( ) , editor ) ? key : null ;
 +
 + if ( key == null ) {
 + return null ;
 + }
 + return isApplicableTemplate ( getTemplateByKey ( key ) , key , callback . getContext ( ) . getContainingFile ( ) , editor ) ? key : null ;
 }

 @ nullable


<nb> public class Application extends android . app . Application {
 @ override
 public void onCreate ( ) {
 super . onCreate ( ) ;
 +
 + SINGLE
 Small . setBaseUri ( STRING0 ) ;
 +
 + SINGLE
 + Small . preSetUp ( this ) ;
 }
 }

Add Small preSetUp to sample application


<nb> import NAMESPACE ;
 @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 , defaultImpl = StringInputRowParser . class )
 @ jsonsubtypes ( {
 @ jsonsubtypes.type ( name = STRING1 , value = StringInputRowParser . class ) ,
 - @ jsonsubtypes.type ( name = STRING2 , value = ProtoBufInputRowParser . class ) ,
 + @ jsonsubtypes.type ( name = STRING2 , value = ProtoBufInputRowParser . class )
 } )
 public interface InputRowParser < T >
 {

removed illegal start of expression error


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 - public class ImmutableDomainObjectSet < T > extends AbstractSet < T > implements DomainObjectSet < T > {
 + public class ImmutableDomainObjectSet < T > extends AbstractSet < T > implements DomainObjectSet < T > , Serializable {
 private final Set < T > elements = new LinkedHashSet < T > ( ) ;

 public ImmutableDomainObjectSet ( Iterable < ? extends T > elements ) {


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

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AdminToolUtils {
 COMMENT
 COMMENT
 public static AdminClient getAdminClient ( String url ) {
 - return new AdminClient ( url ) ;
 + ClientConfig config = new ClientConfig ( ) . setBootstrapUrls ( url )
 + . setConnectionTimeout ( NUMBER0 , TimeUnit . SECONDS ) ;
 +
 + AdminClientConfig adminConfig = new AdminClientConfig ( ) . setAdminSocketTimeoutSec ( NUMBER0 ) ;
 + return new AdminClient ( adminConfig , config ) ;
 }

 COMMENT


<nb> public class DashDownloadMapsFragment extends DashBaseFragment {
 }

 protected void updateCount ( String s ) {
 + if ( DashDownloadMapsFragment . this . isDetached ( ) ) {
 + return ;
 + }
 File ms = getMyApplication ( ) . getAppPath ( s ) ;
 if ( ms . exists ( ) ) {
 File [ ] lf = ms . listFiles ( ) ;
 <nb> public class DashDownloadMapsFragment extends DashBaseFragment {
 @ override
 protected void onPostExecute ( Void result ) {
 super . onPostExecute ( result ) ;
 + if ( DashDownloadMapsFragment . this . isDetached ( ) ) {
 + return ;
 + }
 if ( countMaps > NUMBER0 ) {
 long mb = NUMBER1 < < NUMBER2 ;
 long gb = NUMBER1 < < NUMBER3 ;

Fixed issues in DashUpdatesFragment with thread safety


<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
 if ( viewRect . width ( ) < getWidth ( ) > > NUMBER0
 || viewRect . height ( ) < getHeight ( ) > > NUMBER0 ) {
 mTouchHighlightRegion . union ( viewRect ) ;
 - } else {
 - Log . w ( LOGTAG , STRING0
 + } else if ( DebugFlags . WEB_VIEW ) {
 + Log . d ( LOGTAG , STRING0
 + viewRect ) ;
 }
 }


<nb> public class NetworkControllerImpl extends BroadcastReceiver
 cachedControllers . get ( key ) . unregisterListener ( ) ;
 }
 }
 + SINGLE
 + SINGLE
 + pushConnectivityToSignals ( ) ;
 + updateAirplaneMode ( true COMMENT ) ;
 }

 private boolean hasCorrectMobileControllers ( List < SubscriptionInfo > allSubscriptions ) {
 <nb> public class NetworkControllerImpl extends BroadcastReceiver
 mBluetoothTethered = mConnectedTransports . get ( TRANSPORT_BLUETOOTH ) ;
 mEthernetConnected = mConnectedTransports . get ( TRANSPORT_ETHERNET ) ;

 + pushConnectivityToSignals ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + private void pushConnectivityToSignals ( ) {
 SINGLE
 for ( MobileSignalController mobileSignalController : mMobileSignalControllers . values ( ) ) {
 mobileSignalController . setInetCondition (

Push inet condition to new MobileSignalControllers


<nb> public abstract class Jsr199Javac implements Javac {

 private ProcessorBundle prepareProcessors (
 ClassLoader compilerClassLoader ,
 - @ nullable BuildTarget target ,
 + BuildTarget target ,
 List < String > options ) {
 String processorClassPath = null ;
 String processorNames = null ;
 <nb> public abstract class Jsr199Javac implements Javac {
 SINGLE
 throw new HumanReadableException (
 STRING0 ,
 - target != null ? target . getFullyQualifiedName ( ) : STRING1 ,
 + target . getFullyQualifiedName ( ) ,
 name ) ;
 }
 }


<nb> public class MetaHistoryServiceImpl
 {
 synchronized ( progressListeners )
 {
 - progressListeners . add ( listener ) ;
 + if ( ! progressListeners . contains ( listener ) )
 + progressListeners . add ( listener ) ;
 }
 }

Skips adding a listener if already exists


<nb> public class DoublePunctuationRule extends Rule {
 int dotCount = NUMBER0 ;
 int commaCount = NUMBER0 ;
 for ( int i = NUMBER0 ; i < tokens . length ; i ++ ) {
 - final String token = tokens [ i ] . getToken ( ) . trim ( ) ;
 + final String token = tokens [ i ] . getToken ( ) ;
 String nextToken = null ;
 if ( i < tokens . length - NUMBER1 ) {
 nextToken = tokens [ i + NUMBER1 ] . getToken ( ) ;

we don t need trim the input is already tokenized on whitespace


<nb> public class IntegrationTest extends IntegrationTestCase {
 STRING0 ) ;
 }

 + public void testRenamePrefix ( ) {
 + String code = STRING1 ;
 + CompilerOptions options = createCompilerOptions ( ) ;
 + options . renamePrefix = STRING2 ;
 + options . variableRenaming = VariableRenamingPolicy . ALL ;
 + test ( options , code , STRING3 ) ;
 + }
 +
 public void testRenamePrefixNamespace ( ) {
 String code =
 STRING4 ;

add integrationtests for renamePrefix because i noticed they were missing


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class UnassignedVariableAccessInspection extends GroovyLocalInspectionBase {
 - public boolean myIgnoreBooleanExpressions = false ;
 + public boolean myIgnoreBooleanExpressions = true ;

 @ nullable
 @ override

don t highlight unassigned vars in boolean checks by default


<nb> public class Launcher {
 }

 public static void main ( String [ ] args ) {
 - System . setProperty ( STRING0 , STRING1 ) ; SINGLE
 startApplication ( ) ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> class CustomAnalyzer extends Analyzer
 static boolean called ;

 @ override
 - public TokenStream tokenStream ( String fieldName , Reader reader )
 + public final TokenStream tokenStream ( String fieldName , Reader reader )
 {
 called = true ;
 - return new LowerCaseFilter ( new WhitespaceTokenizer ( reader ) ) ;
 + return new LowerCaseFilter ( LUCENE_VERSION , new WhitespaceTokenizer ( LUCENE_VERSION , reader ) ) ;
 }
 }


<nb> public class RenameFileOperation extends SyncOperation {
 COMMENT
 private boolean isValidNewName ( ) throws IOException {
 SINGLE
 - if ( mNewName == null || mNewName . length ( ) <= NUMBER0 || mNewName . contains ( File . separator ) || mNewName . contains ( STRING0 ) ) {
 + if ( mNewName == null || mNewName . length ( ) <= NUMBER0 || mNewName . contains ( File . separator ) ) {
 return false ;
 }
 SINGLE

Removed specific check for character when renaming a folder


<nb> public class RandomAccessInputView extends AbstractPagedInputView implements See

 public RandomAccessInputView ( ArrayList < MemorySegment > segments , int segmentSize , int limitInLastSegment )
 {
 - super ( segments . get ( NUMBER0 ) , segmentSize , NUMBER0 ) ;
 + super ( segments . get ( NUMBER0 ) , segments . size ( ) > NUMBER1 ? segmentSize : limitInLastSegment , NUMBER0 ) ;
 this . segments = segments ;
 this . currentSegmentIndex = NUMBER0 ;
 this . segmentSize = segmentSize ;
 <nb> public class RandomAccessInputView extends AbstractPagedInputView implements See
 final int offset = ( int ) ( position & this . segmentSizeMask ) ;

 this . currentSegmentIndex = bufferNum ;
 - seekInput ( this . segments . get ( bufferNum ) , offset , this . segmentSize ) ;
 + seekInput ( this . segments . get ( bufferNum ) , offset , bufferNum < this . segments . size ( ) - NUMBER1 ? this . segmentSize : this . limitInLastSegment ) ;
 }

 COMMENT

Fixed Bug in Random Access Input view for small data fractions


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 -
 import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 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 ParseTreeInfoPanel extends JPanel
 mParseTreeModel . setParseTree ( parseTree ) ;
 }
 catch ( IOException ex ) {
 - JOptionPane . showMessageDialog (
 + showErrorDialog (
 aParent ,
 STRING0 + aFile + STRING1 + ex . getMessage ( ) ) ;
 }
 catch ( ANTLRException ex ) {
 - JOptionPane . showMessageDialog (
 + showErrorDialog (
 aParent ,
 STRING2 + aFile + STRING1 + ex . getMessage ( ) ) ;
 }


<nb> public class JmsProducer extends DefaultAsyncProducer {

 protected void unInitReplyManager ( ) {
 try {
 - ServiceHelper . stopService ( replyManager ) ;
 + if ( replyManager != null ) {
 + if ( LOG . isDebugEnabled ( ) ) {
 + LOG . debug ( STRING0 , replyManager ,
 + endpoint . getReplyTo ( ) != null ? endpoint . getReplyTo ( ) : STRING1 ) ;
 + }
 + ServiceHelper . stopService ( replyManager ) ;
 + }
 } catch ( Exception e ) {
 throw ObjectHelper . wrapRuntimeCamelException ( e ) ;
 } finally {

Added some logging when reply manager is being stopped so its easier to pair the start stop logs


<nb> public class MenuBuilder implements Menu {
 private static final String VIEWS_TAG = STRING0 ;

 SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 static final int THEME_RES_FOR_TYPE [ ] = new int [ ] {
 com . android . internal . R . style . Theme_IconMenu ,
 com . android . internal . R . style . Theme_ExpandedMenu ,
 NUMBER0 ,
 - NUMBER0 ,
 - NUMBER0 ,
 + - NUMBER1 ,
 + - NUMBER1 ,
 } ;

 SINGLE
 <nb> public class MenuBuilder implements Menu {
 LayoutInflater getInflater ( ) {
 SINGLE
 if ( mInflater == null ) {
 - Context wrappedContext = new ContextThemeWrapper ( mContext ,
 - THEME_RES_FOR_TYPE [ mMenuType ] ) ;
 + int themeResForType = THEME_RES_FOR_TYPE [ mMenuType ] ;
 + Context wrappedContext = themeResForType < NUMBER0 ? mContext :
 + new ContextThemeWrapper ( mContext , themeResForType ) ;
 mInflater = ( LayoutInflater ) wrappedContext
 . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ;
 }

Allow the theme to affect action bar menus


<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol
 . put ( ID_STORE_NAME , STRING0 )
 . put ( EDGESTORE_NAME , STRING1 )
 . put ( INDEXSTORE_NAME + LOCK_STORE_SUFFIX , STRING2 )
 - . put ( ID_STORE_NAME + LOCK_STORE_SUFFIX , STRING3 )
 . put ( EDGESTORE_NAME + LOCK_STORE_SUFFIX , STRING4 )
 . put ( SYSTEM_PROPERTIES_STORE_NAME , STRING5 )
 . build ( ) ;

Remove unused ID store short CF name mapping


<nb> public class GraphDatabaseConfiguration {
 STRING0 ,
 ConfigOption . Type . FIXED , String . class ) . hide ( ) ;

 - public static final ConfigOption < Boolean > ALLOW_STALE_CONFIG = new ConfigOption < Boolean > ( GRAPH_NS , STRING1 ,
 + public static final ConfigOption < Boolean > ALLOW_STALE_CONFIG = new ConfigOption < Boolean > ( GRAPH_NS , STRING2 ,
 STRING3 +
 STRING4 + Joiner . on ( STRING5 ) . join ( ConfigOption . getManagedTypes ( ) ) + STRING6 +
 STRING7 +


<nb> public final class Settings {
 public static final String ENHANCED_4G_MODE_ENABLED = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String VOLTE_FEATURE_DISABLED = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a global override for VoLTE calls which leaves user setting in place


<nb> public class Capture extends PImage implements PConstants {
 } else if ( PApplet . platform == WINDOWS ) {
 return STRING0 ;
 } else if ( PApplet . platform == MACOSX ) {
 - return STRING1 ;
 + return STRING0 ;
 } else {
 return STRING2 ;
 }
 <nb> public class Capture extends PImage implements PConstants {
 } else if ( PApplet . platform == WINDOWS ) {
 return STRING3 ;
 } else if ( PApplet . platform == MACOSX ) {
 - return STRING3 ; SINGLE
 + return STRING1 ;
 } else {
 return STRING2 ;
 }


<nb> public class TileAutoWorkbench extends TileBuildCraft implements ISidedInventory
 super . readFromNBT ( data ) ;
 inv . readFromNBT ( data ) ;
 Utils . readInvFromNBT ( craftMatrix , STRING0 , data ) ;
 +
 + SINGLE
 + if ( data . hasKey ( STRING1 ) ) {
 + ItemStack [ ] stacks = new ItemStack [ NUMBER0 ] ;
 + Utils . readStacksFromNBT ( data , STRING1 , stacks ) ;
 + for ( int i = NUMBER1 ; i < NUMBER0 ; i ++ ) {
 + craftMatrix . setInventorySlotContents ( i , stacks [ i ] ) ;
 + }
 + }
 }

 @ override


<nb> final class AndroidFont extends Font
 COMMENT
 COMMENT
 COMMENT
 - @ override
 + Rect tmpRect = new Rect ( ) ;
 + @ override
 public int getStringWidth ( String text )
 - {
 - Rect rect = new Rect ( ) ;
 - paint . getTextBounds ( text , NUMBER0 , text . length ( ) , rect ) ;
 - return rect . width ( ) ;
 + {
 + paint . getTextBounds ( text , NUMBER0 , text . length ( ) , tmpRect ) ;
 + return tmpRect . width ( ) ;
 }

 - Rect tmpRect = new Rect ( ) ;
 COMMENT
 COMMENT
 COMMENT

fixed removed temporary object allocation from getStringWidth


<nb> public class PinotBrokerDebugServlet extends HttpServlet {
 @ override
 protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException {
 try {
 - System . out . println ( STRING0 ) ;
 resp . setContentType ( STRING1 ) ;
 resp . getOutputStream ( ) . print ( broker . getDebugInfo ( ) ) ;
 resp . getOutputStream ( ) . flush ( ) ;

Removed useless System out println statement


<nb> public final class URLCanonicalizer {
 }

 if ( canonicalURI . getRawAuthority ( ) == null ) {
 - log . debug ( STRING0 + canonicalURI ) ;
 + log . debug ( STRING0 + canonicalURI + STRING1 + baseURL + STRING2 ) ;
 return null ;
 }

 <nb> public class SpiderTextParser extends SpiderParser {
 public boolean parseResource ( HttpMessage message , Source source , int depth ) {
 log . debug ( STRING3 ) ;

 + String baseURL = message . getRequestHeader ( ) . getURI ( ) . toString ( ) ;
 +
 SINGLE
 Matcher matcher = patternURL . matcher ( message . getResponseBody ( ) . toString ( ) ) ;
 while ( matcher . find ( ) ) {
 String s = matcher . group ( NUMBER0 ) ;
 - processURL ( message , depth , s , STRING4 ) ;
 + processURL ( message , depth , s , baseURL ) ;
 }

 return false ;

Include the base URL in SpiderTextParser


<nb> public class InspectionTree extends Tree {
 private final HashSet < Object > myExpandedUserObjects ;
 @ notnull private final GlobalInspectionContextImpl myContext ;
 private SelectionPath mySelectionPath ;
 - private static final ProblemDescriptor [ ] EMPTY_DESCRIPTORS = new ProblemDescriptor [ NUMBER0 ] ;

 public InspectionTree ( @ notnull Project project , @ notnull GlobalInspectionContextImpl context ) {
 super ( new InspectionRootNode ( project ) ) ;
 <nb> public class InspectionTree extends Tree {
 }

 public CommonProblemDescriptor [ ] getSelectedDescriptors ( ) {
 - if ( getSelectionCount ( ) == NUMBER0 ) return EMPTY_DESCRIPTORS ;
 + if ( getSelectionCount ( ) == NUMBER0 ) return CommonProblemDescriptor . EMPTY_ARRAY ;
 final TreePath [ ] paths = getSelectionPaths ( ) ;
 final LinkedHashSet < CommonProblemDescriptor > descriptors = new LinkedHashSet < CommonProblemDescriptor > ( ) ;
 for ( TreePath path : paths ) {

InspectionTree doesn t use its own empty array


<nb> public class TransportReindexAction extends HandledTransportAction < ReindexReques

 private void checkRemoteWhitelist ( RemoteInfo remoteInfo ) {
 TransportAddress publishAddress = null ;
 - HttpInfo httpInfo = httpServer . info ( ) ;
 + HttpInfo httpInfo = httpServer == null ? null : httpServer . info ( ) ;
 if ( httpInfo != null && httpInfo . getAddress ( ) != null ) {
 publishAddress = httpInfo . getAddress ( ) . publishAddress ( ) ;
 }


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PlatformProjectOpenProcessor extends ProjectOpenProcessor {
 if ( project == null ) {
 return null ;
 }
 - runConfigurators = false ;
 + final Module [ ] modules = ModuleManager . getInstance ( project ) . getModules ( ) ;
 + if ( modules . length > NUMBER0 ) {
 + runConfigurators = false ;
 + }
 }
 catch ( Exception e ) {
 SINGLE

run configurators if opening directory based project with no modules


<nb> public class YoutubeSearchEngineTest extends AndroidTestCase {
 super . setUp ( ) ;
 SearchEngine engine = new YoutubeSearchEngine ( ) ;

 - result = engine . search ( STRING0 ,
 + result = engine . search ( STRING1 ,
 NUMBER0 , STRING2 , new Downloader ( ) ) ;
 suggestionReply = engine . suggestionList ( STRING3 , STRING2 , new Downloader ( ) ) ;
 }
 <nb> public class YoutubeSearchEngine implements SearchEngine {
 . replace ( STRING4 , STRING5 )
 . replace ( STRING6 , STRING5 ) ;

 + if ( Long . parseLong ( output ) == NUMBER1 ) {
 + Log . d ( TAG , STRING1 ) ;
 + }
 return Long . parseLong ( output ) ;
 }


<nb> public class ClassDataIndexer implements DataIndexer < Integer , Collection < IntIdEq
 LOG . debug ( STRING0 + method , e ) ;
 }
 }
 - } , NUMBER0 ) ;
 + } , ClassReader . SKIP_DEBUG | ClassReader . SKIP_FRAMES ) ;

 return new ClassEquations ( parameterEquations , contractEquations ) ;
 }


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

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class ExtendingCuboidRegionSelector extends CuboidRegionSelector {
 - public ExtendingCuboidRegionSelector ( ) {
 + public ExtendingCuboidRegionSelector ( LocalWorld world ) {
 + super ( world ) ;
 }

 public ExtendingCuboidRegionSelector ( RegionSelector oldSelector ) {

ExtendingCuboidRegionSelector s ctor now requires a LocalWorld


<nb> public class StandaloneXml extends CommonXml {
 ModelNode profileNode = context . getModelNode ( ) ;

 writer . writeStartElement ( Element . PROFILE . getLocalName ( ) ) ;
 - writer . writeAttribute ( Attribute . NAME . getLocalName ( ) , profileNode . get ( PROFILE_NAME ) . asString ( ) ) ;
 Set < String > subsystemNames = profileNode . get ( SUBSYSTEM ) . keys ( ) ;
 if ( subsystemNames . size ( ) > NUMBER0 ) {
 String defaultNamespace = writer . getNamespaceContext ( ) . getNamespaceURI ( XMLConstants . DEFAULT_NS_PREFIX ) ;

Make sure not to write the profie name element since it is no longer allowed in standalone xml


<nb> public abstract class RealmObject {
 protected Row row ;
 protected Realm realm ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void removeFromRealm ( ) {
 if ( row == null ) {
 throw new IllegalStateException ( STRING0 ) ;

Add documentation to the deleteFromRealm method


<nb> public class GCMMessageService extends GcmListenerService {
 return ;
 }

 - SINGLE
 - SINGLE
 - if ( ! buildNoteObjectFromPNPayloadAndSaveIt ( data ) ) {
 - SINGLE
 - SINGLE
 - NotificationsActions . downloadNoteAndUpdateDB ( wpcomNoteID ,
 - new RestRequest . Listener ( ) {
 - @ override
 - public void onResponse ( JSONObject response ) {
 - EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ;
 - }
 - } , null ) ;
 - } else {
 - EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ;
 - }
 + SINGLE
 + buildNoteObjectFromPNPayloadAndSaveIt ( data ) ;
 + EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ;
 + SINGLE
 + NotificationsActions . downloadNoteAndUpdateDB ( wpcomNoteID ,
 + null , null ) ;

 String noteType = StringUtils . notNullStr ( data . getString ( PUSH_ARG_TYPE ) ) ;

Donwload the note from the server immediately after a PN is received