diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GenruleDepsIntegrationTest { @ rule public DebuggableTemporaryFolder tmp = new DebuggableTemporaryFolder ( ) ; - @ ignore ( STRING0 ) @ test public void ...
Fix an integration test that has been disabled for a while
<nb> public class ShimmerFrameLayout extends FrameLayout { SINGLE private void drawUnmasked ( Canvas renderCanvas ) { + renderCanvas . drawColor ( NUMBER0 , PorterDuff . Mode . CLEAR ) ; super . dispatchDraw ( renderCanvas ) ; } <nb> public class ShimmerFrameLayout extends FrameLayout { mMaskOffsetY ,...
Clear render bitmaps before re drawing
<nb> public class Typeface { SINGLE private Typeface ( int ni ) { + if ( ni == NUMBER0 ) { + throw new IllegalStateException ( ) ; + } native_instance = ni ; }
Improved error handling when font loading fails
<nb> public class IOTools { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public static void flow ( InputStream is , OutputStream os , byte [ ] buf ) throws IOException { int numRead ;
Deprecate unused code
<nb> public enum ReplicationType { COMMENT public static ReplicationType fromId ( byte id ) { if ( id == NUMBER0 ) { - return ASYNC ; - } else if ( id == NUMBER1 ) { return SYNC ; + } else if ( id == NUMBER1 ) { + return ASYNC ; } else if ( id == NUMBER2 ) { return DEFAULT ; } else {
Fix serialization of sync async replication type
<nb> public abstract class RealWebSocket implements WebSocket { COMMENT COMMENT COMMENT - boolean readMessage ( ) { + public boolean readMessage ( ) { try { reader . processNextFrame ( ) ; return ! readerSentClose ;
Make readMessage public for future MWS usage
<nb> public final class MediaDriver implements AutoCloseable systemCounters . close ( ) ; } - if ( null != cncByteBuffer ) - { - IoUtil . unmap ( cncByteBuffer ) ; - } + IoUtil . unmap ( cncByteBuffer ) ; super . close ( ) ; }
Java Remove redundant null check before unmapping byte buffer
<nb> public class ParcelableLocation implements Serializable , Parcelable , JSONParcela public ParcelableLocation ( @ nonnull final JSONParcel in ) { latitude = in . readDouble ( STRING0 , Double . NaN ) ; - longitude = in . readDouble ( STRING1 , Double . NaN ) ; + longitude = in . readDouble ( STRING2 , Dou...
fixed typo in location module
<nb> public final class H2O { System . exit ( NUMBER0 ) ; } + COMMENT + public void shutdown ( ) { + UDPRebooted . T . shutdown . send ( H2O . SELF ) ; + H2O . exit ( NUMBER1 ) ; + } + SINGLE SINGLE SINGLE
Added shutdown method for a node
<nb> public class PsiClassObjectAccessExpressionImpl extends ExpressionPsiElement imp return STRING0 + getText ( ) ; } + @ override + protected Icon computeBaseIcon ( int flags ) { + return getElementIcon ( flags ) ; + } + + @ notnull public Icon getElementIcon ( final int flags ) { final RowIcon ...
don t blink with Xxx class expression icon
<nb> public class CameraFactory { final DisplayMetrics displayMetrics = getDisplayMetrics ( pActivity ) ; final float width = displayMetrics . widthPixels ; - final float height = displayMetrics . widthPixels ; + final float height = displayMetrics . heightPixels ; return new Camera ( pCenterX - width * FLO...
Fixed bug in CameraFactory
<nb> public class DefaultGrailsDomainClassProperty implements GrailsDomainClassProper List < Class < ? > > allClasses = getAllDomainClassesInHierarchy ( ) ; for ( Class currentClass : allClasses ) { - Object transientProperty = GrailsClassUtils . getStaticPropertyValue ( currentClass , TRANSIENT ) ; + ClassPr...
fix failing test
<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 ; import NAMESPACE ;
added missing imports
<nb> public abstract class WsFrameBase { SINGLE if ( continuationExpected ) { + SINGLE + SINGLE + if ( usePartial ( ) ) { + messageBufferText . flip ( ) ; + sendMessageText ( false ) ; + messageBufferText . clear ( ) ; + } messageBufferBinary . compact ( ) ; newFrame ( ) ; SINGLE
Once we have all of a partial message send it on if we can
<nb> public class MakeClassStaticProcessor extends MakeMethodOrClassStaticProcessor < P PsiElement newQualifier ; if ( instanceRef == null || instanceRef instanceof PsiSuperExpression ) { - instanceRef = factory . createExpressionFromText ( STRING0 , null ) ; + final PsiClass thisClass = RefactoringUtil . get...
make class static
<nb> package NAMESPACE ; - public class OperationIdentifier { + import NAMESPACE ; + + public class OperationIdentifier implements Serializable { private final long id ; private final Long parentId ; <nb> public class OperationsHierarchy { } public OperationIdentifier completeCurrentOperatio...
Make OperationIdentifier serializable
<nb> public final class RuleOverview { String maintainerInfo = getMaintainerInfo ( lang ) ; String maintainerText ; boolean greyOutMaintainer = false ; - if ( langCode . equals ( STRING0 ) ) { - maintainerText = STRING1 ; - } else if ( lang . getMaintainedState ( ) != LanguageMaintainedState . ActivelyMaint...
pt adding Matheus Poletto as a maintainer for pt BR
<nb> public final class FontEntry { return false ; } final FontEntry entry = ( FontEntry ) other ; - if ( ! Family . equals ( entry . Family ) ) { + if ( ! MiscUtil . equals ( Family , entry . Family ) ) { return false ; } if ( myFileInfos == null ) { <nb> public final class FontEntry { @ override...
fixed possible NPE
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ViewPropertyAnimator { } } + private static WeakHashMap < View , ViewPropertyAnimator > ANIMATORS = + new WeakHashMap < View , ViewProp...
Use a weak map to associate a single animator to a view
<nb> public class LocalChunkProvider implements ChunkProvider , GeneratingChunkProvide @ override public void dispose ( ) { - ChunkMonitor . fireChunkProviderDisposed ( this ) ; pipeline . shutdown ( ) ; unloadRequestTaskMaster . shutdown ( new ChunkUnloadRequest ( ) , true ) ; lightMerger . shutdown ( ) ...
Don t announce the chunk provider disposal when there are still threads creating chunks
<nb> public class RecoverySourceHandler implements Engine . RecoveryHandler { stopWatch . stop ( ) ; response . startTime = stopWatch . totalTime ( ) . millis ( ) ; logger . trace ( STRING0 , - request . shardId ( ) , request . targetNode ( ) , request . targetNode ( ) , stopWatch . totalTime ( ) ) ; + reques...
Fix extra logging parameter in RecoverySourceHandler
<nb> public abstract class ComponentManagerImpl extends UserDataHolderBase implements } catch ( Throwable t ) { handleInitComponentError ( t , componentInstance == null , componentKey . toString ( ) ) ; - if ( componentInstance == null ) { - System . exit ( NUMBER0 ) ; - } - } return componentInstance...
removed System exit
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
In order to make javadocs true
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Added better javadoc
<nb> public class TemporaryJobJsonReports extends TemporaryJobReports { public TemporaryJobJsonReports ( final Path outputDir ) { this . outputDir = outputDir ; - if ( ! this . outputDir . toFile ( ) . mkdirs ( ) ) { + final File path = this . outputDir . toFile ( ) ; + if ( ! path . mkdirs ( ) && ! path . ...
Don t throw exception if test report directory exists
<nb> public class PlanOptimizersFactory new MergeProjections ( ) , new SimplifyExpressions ( metadata ) , SINGLE new UnaliasSymbolReferences ( ) , SINGLE - new PruneRedundantProjections ( ) , SINGLE - new PruneUnreferencedOutputs ( ) ) ; SINGLE + new PruneUnreferencedOutputs ( ) , SINGLE + new PruneRedund...
Fix optimizer performance regression
<nb> public class TestTomcatSSL extends TomcatBaseTest { os . write ( STRING0 . getBytes ( ) ) ; os . flush ( ) ; + InputStream is = socket . getInputStream ( ) ; + SINGLE + Thread . sleep ( NUMBER0 ) ; socket . startHandshake ( ) ; handshakeDone = false ; byte [ ] b = new byte [ NUMBER1 ] ;
Fix intermittent test failures
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ;
git convert GitVersionTest to junit
<nb> public abstract class AbstractEdge implements DirectEdge , Serializable { return this . traverse ( s0 ) ; } - COMMENT - COMMENT - COMMENT + COMMENT public double weightLowerBound ( TraverseOptions options ) { return NUMBER0 ; } + COMMENT + public double timeLowerBound ( TraverseOptions op...
Add timeLowerBound method to edges
<nb> public class ChatActivity extends BaseActivity { if ( after > count && ! isTypingDisabled ) { messenger . onTyping ( peer ) ; } - COMMENT - if ( isMentionsVisible && after < count && s . charAt ( start ) == STRING0 ) { - hideMentions ( ) ; - } - COMMENT } @ override
mentions fix requery empy search
<nb> public class Array < T > implements Iterable < T > { COMMENT public Array ( boolean ordered , T [ ] array , int start , int count ) { this ( ordered , array . length , ( Class ) array . getClass ( ) . getComponentType ( ) ) ; - size = array . length ; + size = count ; System . arraycopy ( array , NUMBE...
Fixed size bug in Array constructor
<nb> public class WeldSubsystemTestCase extends AbstractSubsystemBaseTest { return readResource ( STRING0 ) ; } + @ override + protected String getSubsystemXsdPath ( ) throws Exception { + return STRING1 ; + } + + @ override + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { ...
add XML validation for weld subsystem
<nb> public class CallPeerMediaHandlerJabberImpl = JingleUtils . getRtpDescription ( theirContent ) ; MediaFormat format = null ; + List < MediaFormat > localFormats = getLocallySupportedFormats ( dev ) ; for ( PayloadTypePacketExtension payload : theirDescription . getPayloadTypes ( ) ) { format = Jing...
Fixes the choice of the MediaFormat to use for sending media when we accept a
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class CrashReportDataFactory { crashReportData . put ( ReportField . STACK_TRACE_HASH , getStackTraceHash ( th ) ) ; } ...
Removed unused import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + public class Logger { <nb> public class Logger { if ( obj != null ) { String s = obj . toString ( ) ; if ( illegalParameters . contains ( s . toLowerCase ( ) ) ) { - Log . warn ( STRING0 + s + STRING1 ) ; + ...
Removed a reference to the mortbay logger
<nb> public final class ContactsContract { COMMENT COMMENT COMMENT + COMMENT COMMENT public static final String PRESENCE_CUSTOM_STATUS_TIMESTAMP = Presence . PRESENCE_CUSTOM_STATUS_TIMESTAMP ; <nb> public final class ContactsContract { COMMENT COMMENT COMMENT + COMMENT COMMENT public static ...
Fixing the broken build
<nb> public class OStorageLocal extends OStorageEmbedded { if ( iClusterName == null ) throw new IllegalArgumentException ( STRING0 ) ; + if ( iClusterName . length ( ) == NUMBER0 ) + throw new IllegalArgumentException ( STRING1 ) ; + if ( Character . isDigit ( iClusterName . charAt ( NUMBER0 ) ) ) retu...
added check if cluster name is null
<nb> public class MqlwriteLikeTransposedNodeFactory implements TransposedNodeFactory if ( obj == null ) { obj = new JSONObject ( ) ; try { - obj . put ( VALUE , node . value ) ; + if ( STRING0 . equals ( node . valueType ) && node . value instanceof Long ) { + SINGLE + obj . put ( VALUE , node . value . t...
Convert integers to strings first so that they work as year only dates if target type is type datetime
<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab asynchronousProcessor . endRequest ( AtmosphereResourceImpl . class . cast ( webSocket . resource ( ) ) , false ) ; } } else { - logger . debug ( STRING0 , resource . uuid ( ) ) ; + logger . debug ( STRING1 , resource . uui...
Fix wrong log information
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class DeleteHandler extends DataHandler {
Add class annotation for DeleteHandler
<nb> public class Module implements Comparable < Module > _license . add ( line ) ; break ; case STRING0 : - StartLog . warn ( STRING1 , basehome . toShortForm ( _path ) ) ; + StartLog . warn ( STRING2 , basehome . toShortForm ( _path ) ) ; _provides . add ( line ) ; break ; case STRING3 : <nb> public...
Improved error messages
<nb> import NAMESPACE ; COMMENT COMMENT public final class NettyPayloadHelper { + + private NettyPayloadHelper ( ) { + SINGLE + } public static Object getIn ( NettyEndpoint endpoint , Exchange exchange ) { if ( endpoint . getConfiguration ( ) . isTransferExchange ( ) ) {
Fixed the CS error of camel netty
<nb> public class AtomicTitanQuery implements InternalTitanQuery { } private VertexListInternal retrieveFromMemory ( VertexListInternal vertices ) { + edgesOnly ( ) ; if ( node == null ) node = tx . getExistingVertex ( nodeid ) ; AtomicTitanQuery q = new AtomicTitanQuery ( node , this ) ; Iterator < Titan...
When doing a vertex retrieval only retrieve edges
<nb> public class WorkerStorage { byte [ ] bulk = new byte [ BULKSIZE ] ; for ( int k = NUMBER0 ; k < ( buf . limit ( ) + BULKSIZE - NUMBER1 ) / BULKSIZE ; k ++ ) { int len = BULKSIZE < buf . remaining ( ) ? BULKSIZE : buf . remaining ( ) ; - buf . get ( bulk , buf . position ( ) , len ) ; + buf . get ( bulk ...
Fix OutOfBound exception in swapoutOrphanBlocks
<nb> public class FilteredQueryParser implements QueryParser { } else if ( token . isValue ( ) ) { if ( STRING0 . equals ( currentFieldName ) ) { String value = parser . text ( ) ; - if ( STRING1 . equals ( value ) || STRING2 . equals ( value ) ) { + if ( STRING3 . equals ( value ) || STRING2 . equals ( value...
Corrected filter strategy option in FilteredQueryParser
<nb> public class PngImageCreatorImp implements PngImageCreator { for ( int i = NUMBER0 ; i <= pres . getNumberOfPages ( ) ; i ++ ) { File tmp = new File ( imagePresentationDir . getAbsolutePath ( ) + File . separatorChar + STRING0 + File . separatorChar + STRING1 + i + STRING2 ) ; File destpng = new File ( image...
Set decent resolution for the SVG files
<nb> public abstract class MessageInput implements Stoppable { public void initialize ( ) { this . transportMetrics = transport . getMetricSet ( ) ; - if ( transportMetrics != null ) { - metricRegistry . register ( getUniqueReadableId ( ) , transportMetrics ) ; + try { + if ( transportMetrics != null ) { ...
do not throw an exception if inputs metrics are already registered
<nb> public class MarkdownTextArea extends TextArea { public MarkdownTextArea ( String id , final IModel < String > previewModel , final Label previewLabel ) { super ( id ) ; - this . repositoryName = repositoryName ; setModel ( new PropertyModel ( this , STRING0 ) ) ; add ( new AjaxFormComponentUpdatingBeh...
findbugs Remove pointless field assignment
<nb> public class WebView extends AbsoluteLayout COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Format the Javadoc using p
<nb> public class TypeReferenceContainerTest { BaseConfiguration config = new BaseConfiguration ( ) ; types . exportToConfiguration ( config ) ; - printConfiguration ( config ) ; + SINGLE TypeReferenceContainer types2 = new TypeReferenceContainer ( config ) ; verifyTypes ( types2 ) ;
Commenting out printing of configuration
<nb> public class ThirdEyeCacheRegistry { initPeriodicCacheRefresh ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + @ deprecated + public static void initializeDetectorCaches ( ThirdEyeConfiguration config , PinotThirdEyeClientConfig pinotThirdEyeClientConfig ) { + init ( config , pinotThirdEyeClie...
Adding filter cache dashboard cache and easier startup setup
<nb> public class Util { return total ; } - static String decodeOrDefault ( byte [ ] data , Charset charset , String defaultValue ) { + public static String decodeOrDefault ( byte [ ] data , Charset charset , String defaultValue ) { if ( data == null ) { return defaultValue ; }
Make Util decodeOrDefault public
<nb> class PackageManagerService extends IPackageManager . Stub { if ( doGc ) { Runtime . getRuntime ( ) . gc ( ) ; } - SINGLE + SINGLE if ( removeCids != null ) { for ( String cid : removeCids ) { - Log . i ( TAG , STRING0 + cid ) ; - PackageHelper . destroySdDir ( cid ) ; + Log . w ( TAG , STRING1...
Don t delete stale containers on sdcard
<nb> public class DisUnitySettings { private List < File > files = new ArrayList < > ( ) ; private Set < Integer > classFilter = new HashSet < > ( ) ; - private DisUnityCommand command ; + private DisUnityCommand command = DisUnityCommand . EXTRACT ; public List < File > getFiles ( ) { return files ;
Setting a default command
<nb> class IdentityVirtualFilePointer implements VirtualFilePointer { @ override public VirtualFile getFile ( ) { - return myFile ; + return isValid ( ) ? myFile : null ; } @ override
do not return invalid files
<nb> public class MainActivityTest extends ActivityInstrumentationTestCase2 < MainActiv solo . waitForView ( android . R . id . list ) ; assertEquals ( solo . getString ( R . string . episodes_label ) , getActionbarTitle ( ) ) ; + SINGLE + openNavDrawer ( ) ; + solo . clickOnText ( solo . getString ( R . st...
added subscriptions test
<nb> public class Vector { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public double length ( ) { - return Math . sqrt ( Math . pow ( x , NUMBER0 ) + - Math . pow ( y , NUMBER0 ) + - Math . pow ( z , NUMBER0 ) ) ; + return Math . sqrt ( x * x + y * y + z * z ) ; + } + + COMMENT + C...
Added Vector lengthSq
<nb> public abstract class BaseRunner { } SINGLE + SINGLE + SINGLE + SINGLE + String vendor = System . getProperty ( STRING0 ) ; + String factoryClass ; + if ( STRING1 . equals ( vendor ) ) { + SINGLE + SINGLE + factoryClass = STRING2 ; + } else { + SINGLE + factoryClass = STRING3 ; + } ...
Use the system default XSLT engine when generating junit reports
<nb> public class ItemAdapter < Item extends IItem > extends AbstractAdapter < Item > imple IdDistributor . checkIds ( items ) ; } if ( items != null ) { - mItems . addAll ( position - getFastAdapter ( ) . getPreItemCount ( position ) , items ) ; + mItems . addAll ( position - getFastAdapter ( ) . getPreItemC...
fix adding an Item at the end of an adapter in a multi itemAdapter environment
<nb> public class TestOperationSetPersistentPresence synchronized ( this ) { if ( collectedEvents . size ( ) > NUMBER0 ) + { + logger . trace ( STRING0 + collectedEvents ) ; return ; + } try { wait ( waitFor ) ;
Add log for GroupChangeCreator wait
<nb> public class FeedMedia extends FeedFile implements Playable { } public void updateFromOther ( FeedMedia other ) { - SINGLE - SINGLE - if ( ( TextUtils . isEmpty ( download_url ) || item . getAutoDownload ( ) ) && ! TextUtils . isEmpty ( other . download_url ) ) { + SINGLE + if ( TextUtils . isEmpty...
Only reset episode to new if feed item did not link to a file before
<nb> public class TestClientConnections { @ rule public ServerRunning serverRunning = ServerRunning . isRunning ( ) ; - { - serverRunning . setPort ( NUMBER0 ) ; - } + private AuthorizationCodeResourceDetails resource = new AuthorizationCodeResourceDetails ( ) ; {
revert local test change
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; public interface LoadedPackageProvider { COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - Package getLoade...
Remove LoadedPackageProvider getLoadedPackage which is unused
<nb> public abstract class StreamSourceFrameChannel extends AbstractFramedStreamSourc if ( ( ( WebSocketFrame ) headerData ) . isFinalFragment ( ) ) { finalFrame ( ) ; } + if ( masker != null ) { + masker . newFrame ( headerData ) ; + } if ( functions != null ) { for ( ChannelFunction func : functions )...
Fix masking issue
<nb> public class TtsEngines { return v1Locale ; } - private String getDefaultLocale ( ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String getDefaultLocale ( ) { final Locale locale = Locale . getDefault ( ) ...
Make TtsEngines getDefaultLocale method public
<nb> public class NodeScheduler } } - if ( doubleScheduling ) { + if ( doubleScheduling && ! selected . isEmpty ( ) ) { SINGLE int uniqueNodes = selected . size ( ) ; int i = NUMBER0 ;
Fix IndexOutOfBoundsException in NodeScheduler
<nb> class RescopeGlobalSymbols implements CompilerPass { private static final String DISAMBIGUATION_SUFFIX = STRING0 ; private static final String WINDOW = STRING1 ; private static final Set < String > SPECIAL_EXTERNS = - ImmutableSet . of ( WINDOW , STRING2 , STRING3 ) ; + ImmutableSet . of ( WINDOW , STRIN...
Don t add window scope to javascript builtin objects in
<nb> public class PersonSessionBean { for ( Relationship r : firstNode . getRelationships ( RelTypes . SPOUSE , RelTypes . SISTER , RelTypes . BROTHER ) ) { if ( r . isType ( RelTypes . SPOUSE ) ) { bean . setRelationship ( STRING0 ) ; + break ; } else if ( r . isType ( RelTypes . SISTER ) ) { bean . setRel...
Adding a break to avoid redundant evaluation
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public @ ...
fixed Gson TypeAdapters javadoc
<nb> import NAMESPACE ; public class NotificationUsageStats { SINGLE SINGLE - private static final boolean ENABLE_AGGREGATED_IN_MEMORY_STATS = true ; + private static final boolean ENABLE_AGGREGATED_IN_MEMORY_STATS = false ; private static final boolean ENABLE_SQLITE_LOG = true ; private static final Ag...
Turn off aggregated stats
<nb> public class BasicChaosMonkey extends ChaosMonkey { try { Event evt = recordTermination ( group , inst , chaosType ) ; sendTerminationNotification ( group , inst ) ; - context ( ) . cloudClient ( ) . terminateInstance ( inst ) ; + chaosType . apply ( context ( ) . cloudClient ( ) , inst ) ; LOGGER . in...
Actually use the ChaosType we chose
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public final class ConsumerIrManager { <nb> public final class ConsumerIrManager { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMME...
clarify link in documentation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ suppresswarnings ( STRING0 ) public class UsagePrinter { private UsagePrinter ( ) { SINGLE } - + public static void printRootHelp ( AbstractService < ? > service ) { System . out . printf ( STRING1 , new JarLocation ( ) ) ; Syst...
Suppress some warnings for UsagePrinter
<nb> public class DeepLinkingIntentReceiverActivity extends AppCompatActivity { AnalyticsUtils . trackWithFeedPostDetails ( AnalyticsTracker . Stat . READER_FEED_POST_INTERCEPTED , blogId , postId ) ; } else { - AnalyticsUtils . trackWithBlogPostDetails ( AnalyticsTracker . Stat . READER_FEED_POST_INTERCEPTED ,...
Fix copy paste bug
<nb> public class ApacheDSContainer implements InitializingBean , DisposableBean , Life ldifFile = ldifs [ NUMBER0 ] . getURI ( ) . toString ( ) ; } logger . info ( STRING0 + ldifFile ) ; - LdifFileLoader loader = new LdifFileLoader ( service . getAdminSession ( ) , ldifFile ) ; + LdifFileLoader loader = new ...
Provide a ClassLoader to be used to load LDIF files
<nb> public class TDigestTest { sb1 . append ( ( int ) estimate + STRING0 ) ; sb2 . append ( i + STRING0 ) ; } - SINGLE - SINGLE SINGLE LOGGER . info ( STRING1 + quantile + STRING2 ) ; <nb> public class TDigestTest { TestUtils . assertApproximation ( estimate , actual , FLOAT0 ) ; println ( i + ...
remove debug code
<nb> public class EnglishGrammaticalRelations { STRING0 , STRING1 , SINGLE STRING2 + haveRegex + STRING3 , - STRING4 + ccompVerbRegex + STRING5 , + SINGLE + SINGLE + STRING6 + ccompVerbRegex + STRING7 , SINGLE SINGLE SINGLE <nb> public class EnglishGrammaticalRelations { SINGLE SINGLE STRING...
Fix up one of the advcl ccomp ambiguities
<nb> public class RecyclerViewExpandableItemManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public boolean expandGroup ( int groupPosition ) { return ( mAdapter != null ) && mAdapter . expandGroup ( groupPosition , false ) ; <nb> public class RecyclerViewExpandableItemManager { COMMENT...
Fix small issues in comment block
<nb> SINGLE SINGLE SINGLE + SINGLE package NAMESPACE ; <nb> public class HttpSender { client = createHttpClient ( ) ; clientViaProxy = createHttpClientViaProxy ( ) ; + setAllowCircularRedirects ( true ) ; SINGLE SINGLE <nb> public class HttpSender { COMMENT COMMENT COMMENT - COMM...
Allow circular redirects by default
<nb> public final class TimeOfDay COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class TimeOfDay COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT ...
Document String constructor parse formats
<nb> import NAMESPACE ; COMMENT COMMENT public final class PersistFS extends Persist { + public final File _root ; public final File _dir ; PersistFS ( File root ) { + _root = root ; _dir = new File ( root , STRING0 + H2O . API_PORT ) ; SINGLE root . mkdirs ( ) ; <nb> public final class PersistF...
Fix filesystem fullness report on windows
<nb> public class OJSONReader { private int cursor = NUMBER0 ; private int lineNumber = NUMBER0 ; private int columnNumber = NUMBER0 ; - private StringBuilder buffer = new StringBuilder ( ) ; + private StringBuilder buffer = new StringBuilder ( NUMBER1 ) ; SINGLE private String value ; private char c ; ...
increased buffer to speed up import
<nb> public class GravitySnapHelper extends SnapHelper { this ( gravity , false , null ) ; } + public GravitySnapHelper ( int gravity , boolean enableSnapLastItem ) { + this ( gravity , enableSnapLastItem , null ) ; + } + public GravitySnapHelper ( int gravity , boolean enableSnapLastItem , SnapListener...
Add constructor with enableLastSnap and gravity
<nb> SINGLE SINGLE SINGLE + package NAMESPACE ; import static NAMESPACE ;
Making license header verification happy
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fully qualify links so that they actually work
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReportPublisher implements BatchComponent , Startable { ...
Fix wrong import
<nb> public class NotificationPanelView extends PanelView implements && shouldQuickSettingsIntercept ( mInitialTouchX , mInitialTouchY , h ) ) { mQsTracking = true ; onQsExpansionStarted ( ) ; + notifyExpandingFinished ( ) ; mInitialHeightOnTouch = mQsExpansionHeight ; mInitialTouchY = y ; mInitialTouchX ...
Fix state weirdness in the panel
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public final class BlockWorkerUtils { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT public static InetSocketAddress getMasterAddress ( TachyonConf conf ) { <nb> public final class BlockWorkerU...
fix comments of BlockWorkerUtils
<nb> public class K2JVMCompiler extends CLICompiler < K2JVMCompilerArguments > { return ExitCode . OK ; } else if ( arguments . module != null ) { - SINGLE } else if ( arguments . script ) { configuration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , arguments . freeArgs . get ( NUMBER0 ) ) ;
Removed obsolete comment
<nb> public class ProjectSharingPreferencesPane extends ProjectPreferencesPane @ override public boolean onApply ( RProjectOptions prefs ) { - return true ; + return false ; } }
don t force reload of IDE for project options
<nb> public class ForgeVersion SINGLE public static final int minorVersion = NUMBER0 ; SINGLE - public static final int revisionVersion = NUMBER1 ; + public static final int revisionVersion = NUMBER2 ; SINGLE public static final int buildVersion = NUMBER3 ;
Bump version for new RB
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean final JSONObject manifestJSON = new JSONObject ( ) ;...
don t use o a commons io for one method
<nb> public class ContentProviderStorage extends TrayStorage { COMMENT COMMENT COMMENT + @ visiblefortesting WeakHashMap < OnTrayPreferenceChangeListener , Handler > mListeners = new WeakHashMap < > ( ) ; COMMENT COMMENT COMMENT + @ visiblefortesting TrayContentObserver mObserver ; COMMENT C...
added VisibleForTesting to package private fields
<nb> public final class BufferedImageMonochromeBitmapSource extends BaseMonochromeBit COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT - @ deprecated public BufferedImageMonochromeBitmapSource ( BufferedImage image , int left , int top , int right , int bottom ) { super ( right - left , bottom - ...
Removed deprecation of cropping constructor in the end replacing it introduced some non trivial performance hit not worth it
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS private static final String INSTANCE_KEY_PREVIOUS_COMPONENTS = STRING0 ; private static fina...
Really fix the build one more change to SearchDialog which shouldn t have
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public interface GrantedAuthoritiesContainer { + public interface GrantedAuthoritiesContainer extends Serializable { GrantedAuthority [ ] getGrantedAuthorities ( ) ; }
GrantedAuthoritiesContainer should extend Serializable
<nb> public class AndroidLibraryDescription implements Description < AndroidLibraryDesc public static class Arg extends JavaLibraryDescription . Arg { public Optional < Path > manifest ; - public Optional < Path > proguardConfig ; } }
Fix accidental shadowing of a field
<nb> public class CrateClient { return null ; } - if ( uri != null && uri . getHost ( ) != null ) { + if ( uri . getHost ( ) != null ) { return new InetSocketTransportAddress ( uri . getHost ( ) , uri . getPort ( ) > - NUMBER0 ? uri . getPort ( ) : NUMBER1 ) ; } return null ;
remove unnecessary null check in CrateClient
<nb> public class WindowManagerService extends IWindowManager . Stub if ( res != null && returnWhat == RETURN_PENDING_POINTER ) { synchronized ( mWindowMap ) { - if ( mWallpaperTarget == win || mSendingPointersToWallpaper ) { + if ( ( mWallpaperTarget == win && + win . mAttrs . type != WindowManager . Layou...
Live wallpapers get touch events through the lock screen
<nb> public final class PluginManager { this . plugins . put ( className , plugin ) ; plugin . setContext ( this . ctx ) ; plugin . setView ( this . app ) ; + plugin . onResume ( true ) ; return plugin ; } } catch ( Exception e ) {
Call the initial onResume on a plugin when it is created