diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class SystemTypeManager { ADDITIONAL_RESERVED_NAMES = ImmutableSet . of ( - COMMENT + STRING0 , STRING1 , STRING2 , STRING3 , STRING4 COMMENT ) ; } assert SYSTEM_TYPES_BY_ID . size ( ) == NUMBER0 ; assert SYSTEM_TYPES_BY_NAME . size ( ) == NUMBER0 ; <nb> public abstract class Mana...
Add new reserved words to the type system
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class TvContract { COMMENT COMMENT public static String encode ( @ nonnull String . . . genres ) { + if ( genres == null ) { + SINGLE ...
Add null checking in Programs Genres encode decode
<nb> public class ScalpelFrameLayout extends FrameLayout { private String nameForId ( int id ) { String name = idNames . get ( id ) ; if ( name == null ) { - name = res . getResourceEntryName ( id ) ; + try { + name = res . getResourceEntryName ( id ) ; + } catch ( NotFoundException e ) { + name = Strin...
Avoid crash Not Found Resource Id
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Ion { private Ion ( Context context , String name ) { httpClient = new AsyncHttpClient ( new AsyncServer ( STRING0 + name ) ) ; + http...
Switch the default verifier to BrowserCompatHostnameVerifier
<nb> public abstract class Controller < T extends AppCompatActivity > { public void onNewIntent ( Intent intent ) { } + + public void onSaveInstanceState ( Bundle outState ) { + + } } <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; impor...
add ControllerActivity onSaveInstanceState
<nb> public class GLMBasicTestBinomial extends TestUtil { for ( int i = NUMBER0 ; i < cfs1 . length ; ++ i ) assertEquals ( vals [ i ] , coefs . get ( cfs1 [ i ] ) , relTol * ( vals [ i ] + FLOAT0 ) ) ; assertEquals ( FLOAT1 , GLMTest . nullDeviance ( model ) , FLOAT0 ) ; - assertEquals ( FLOAT2 , GLMTest . res...
Slightly relaxed non negative test
<nb> import NAMESPACE ; import static NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class WebSocketServerProtocolHandler extends ChannelInboundMessageHandlerAdapter < WebSocketF...
Added documentation to websocket classes
<nb> public abstract class GuiAdvancedInterface extends GuiBuildCraft { } @ override + public void drawSprite ( int cornerX , int cornerY ) { + if ( fluid != null ) + FluidRenderer . colorFluid ( new FluidStack ( fluid , NUMBER0 ) ) ; SINGLE + super . drawSprite ( cornerX , cornerY ) ; + } + + @ ove...
Adds color to Refinery Fluids
<nb> public class GuiMissingMods extends GuiScreen public void drawScreen ( int i , int j , float f ) { drawDefaultBackground ( ) ; - drawCenteredString ( fontRenderer , STRING0 , width / NUMBER0 , height / NUMBER0 - NUMBER1 , NUMBER2 ) ; + drawCenteredString ( fontRenderer , STRING0 , width / NUMBER0 , NUMBE...
Changed the layout of the missing mods gui a little
<nb> public class GrailsResourceUtils { file = file . getParentFile ( ) ; } if ( file != null ) { - return new FileSystemResource ( file ) ; + return new FileSystemResource ( file . getAbsolutePath ( ) + STRING0 ) ; } } catch ( IOException e ) { } <nb> public class GrailsResourceUtils { int i = url ...
fix failing test
<nb> public class ReplicatedTransaction < MEMBER > implements ReplicatedContent @ override public String toString ( ) { - try - { - TransactionRepresentation tx = ReplicatedTransactionFactory . extractTransactionRepresentation ( this , new byte [ NUMBER0 ] ) ; - return format ( STRING0 , globalSession , l...
don t log the full transaction
<nb> public class WebView extends AbsoluteLayout SINGLE float gestureX = x ; float gestureY = y ; - if ( ! detector . isInProgress ( ) ) { + if ( detector == null || ! detector . isInProgress ( ) ) { SINGLE SINGLE SINGLE
Fix gmail crash
<nb> public class ProjectUser extends JavaScriptObject return this . session_id ; } - * / ; + public final native String getClientId ( ) COMMENT + COMMENT + COMMENT ; + public final native String getColor ( ) COMMENT COMMENT COMMENT ;
add client id field to project user object for cursor tracking
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public enum FragmentSide { <nb> public enum FragmentSide { public static FragmentSide chooseSide ( DiffFragment oneSide ) { ...
Fix NPE in diff
<nb> public class TimeTools { return calendar . getTimeInMillis ( ) ; } + COMMENT + COMMENT + COMMENT + public static long getCurrentTime ( Context context ) { + Calendar calendar = Calendar . getInstance ( ) ; + + setUserOffset ( context , calendar ) ; + + return calendar . getTimeInMillis ( ) ...
Add getCurrentTime to TimeTools
<nb> public class MapStoreTest extends HazelcastTestSupport { if ( System . currentTimeMillis ( ) >= end ) { break ; } - + SINGLE + Thread . sleep ( NUMBER0 ) ; } return loaded ; }
give a rest to cpu
<nb> public class PlaybackService extends MediaBrowserServiceCompat { } } - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT private void onPostPlayback ( final...
add documentation to post playback processing
<nb> public class MessageViewFragment extends Fragment implements ConfirmationDialogF public void onPendingIntentResult ( int requestCode , int resultCode , Intent data ) { if ( ( requestCode & REQUEST_MASK_LOADER_HELPER ) == REQUEST_MASK_LOADER_HELPER ) { - hideKeyboard ( ) ; - requestCode ^= REQUEST_MASK_...
hide keyboard when message is displayed not only after interaction pending intent
<nb> public class GravesBidirectionalLSTMTest { final INDArray activation3Reverse = activation3 . dup ( ) ; reverseColumnsInPlace ( activation3Reverse ) ; - assertArrayEquals ( activation3Reverse . data ( ) . asFloat ( ) , activation1 . data ( ) . asFloat ( ) , FLOAT0 ) ; + assertEquals ( activation3Reverse ,...
Fix assertion in GravesBidirectionalLSTMTest java
<nb> public class TiledSprite extends BaseSprite { SINGLE SINGLE SINGLE + + public int getCurrentTileIndex ( ) { + return this . getTextureRegion ( ) . getCurrentTileIndex ( ) ; + } public void setCurrentTileIndex ( final int pTileIndex ) { this . getTextureRegion ( ) . setCurrentTileIndex ( pTileIn...
Added convenience method TiledSprite getCurrentTileIndex
<nb> public class BroadcasterConfig { } protected void configExecutors ( ) { - executorService = Executors . newCachedThreadPool ( new ThreadFactory ( ) { + executorService = Executors . newSingleThreadExecutor ( new ThreadFactory ( ) { private AtomicInteger count = new AtomicInteger ( ) ; <nb> public...
Use a single thread to dispatch messages
<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> class HeavyIdeaTestFixtureImpl extends BaseFixtu...
commit documents in tests
<nb> final class ActivityStack { private boolean shouldBeVisible ( ActivityRecord r , boolean behindTranslucentActivity , boolean stackVisibleBehind , ActivityRecord visibleBehind , boolean behindFullscreenActivity ) { - SINGLE - SINGLE - final boolean activityVisibleBehind = - ( behindTranslucentActivity...
Fixed flicker when docking task from recents
<nb> public class Intent implements Parcelable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in javadoc
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Added additional documentation
<nb> public abstract class MessageAggregator < I , S , C extends ByteBufHolder , O extends } SINGLE - CompositeByteBuf content = Unpooled . compositeBuffer ( maxCumulationBufferComponents ) ; + CompositeByteBuf content = ctx . alloc ( ) . compositeBuffer ( maxCumulationBufferComponents ) ; if ( m instanceof...
Determine CompositeByteBuf implementation by using ByteBufAllocator
<nb> public class LanguageConsoleBuilder { editor . getSettings ( ) . setAdditionalLinesCount ( NUMBER0 ) ; } else if ( gutterContentProvider != null ) { - editor . setCaretEnabled ( true ) ; - editor . setCaretVisible ( true ) ; - final ConsoleIconGutterComponent lineStartGutter = new ConsoleIconGutterCo...
revert unfinished changes
<nb> public class JpaUsePersistTest extends Assert { assertEquals ( customer . getAddress ( ) . getAddressLine1 ( ) , receivedCustomer . getAddress ( ) . getAddressLine1 ( ) ) ; assertEquals ( customer . getAddress ( ) . getAddressLine2 ( ) , receivedCustomer . getAddress ( ) . getAddressLine2 ( ) ) ; assertEqual...
Fixed unit test
<nb> public class Preference implements Comparable < Preference > { setEnabledStateOnViews ( holder . itemView , true ) ; } - holder . setDividerAllowedAbove ( isSelectable ( ) ) ; - holder . setDividerAllowedBelow ( isSelectable ( ) ) ; + final boolean selectable = isSelectable ( ) ; + holder . itemView ...
Use selectable to set focusable on root pref view
<nb> COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT package NAMESPACE ;
Fix wrong license
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FileBasedDeclarationProviderFactory implements DeclarationProviderF return index . invoke ( ) . declaredPackages . contains ( packageFqName ) ; } - COMMENT - return isPackageDeclaredExplicitly ( packageFqName ) || isPacka...
remove unused method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DashboardWidget implements EmbeddedPersistable { } public Map < String , Object > getPersistedConfig ( ) { - return ImmutableMap . of ( STRING0 , this . getT...
Persist widget specific config options
<nb> public class VersionValue implements UnsavedValueStrategy { @ override public final Boolean isUnsaved ( Object version ) { LOG . trace ( STRING0 ) ; - return version == null ; + return version == null ? Boolean . TRUE : null ; } @ override public Object getDefaultValue ( Object currentValue ) {
fix bug in previous re fact
<nb> public class Request { SINGLE SINGLE SINGLE - SINGLE + SINGLE SINGLE SINGLE SINGLE
add DONE for cookies in the feature list
<nb> public class AimsicdService extends Service implements OnSharedPreferenceChangeL SINGLE mIMEI = tm . getDeviceId ( ) ; mIMEIV = tm . getDeviceSoftwareVersion ( ) ; - mPhoneNum = tm . getLine1Number ( ) ; + mPhoneNum = getPhoneNumber ( true ) ; mPhoneID = tm . getPhoneType ( ) ; mRoaming = tm . isNetw...
Really fix NPE
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT ...
Moved javadoc from Value to Monad
<nb> public class KeyParser { } } - registerAction ( mapping , actName , cmdType , cmdFlags , shortcuts . toArray ( new Shortcut [ ] { } ) ) ; + registerAction ( mapping , actName , cmdType , cmdFlags , shortcuts . toArray ( new Shortcut [ shortcuts . size ( ) ] ) ) ; KeyStroke firstStroke = null ; for ( ...
Specify size in toArray
<nb> public class ContextTransaction implements Serializable { COMMENT COMMENT COMMENT + @ deprecated protected NamingResources resources = null ; + @ deprecated public NamingResources getNamingResources ( ) { return ( this . resources ) ; } + @ deprecated void setNamingResources ( NamingResou...
Deprecate unused code in o a catalina deploy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class WebURIStat {
remove unused import
<nb> public class JPAAnnotationParseProcessor implements DeploymentUnitProcessor { final String declaredName = declaredNameValue != null ? declaredNameValue . asString ( ) : null ; final String localContextName ; if ( declaredName == null || declaredName . isEmpty ( ) ) { - localContextName = fieldName ; + lo...
Fix processing of PersistenceContext on fields to use the correct ENC name for the binding
<nb> public class RenderScript { SINGLE SINGLE - RenderScript ( Surface sur ) { + public RenderScript ( Surface sur ) { mSurface = sur ; mDev = nDeviceCreate ( ) ; mContext = nContextCreate ( mDev , mSurface , NUMBER0 ) ;
Fix the build
<nb> public abstract class AbstractRecord < V > implements Record < V > { public void setKey ( Data key ) { this . key = key ; } + + + @ override + public boolean isTombstone ( ) { + return getValue ( ) == null ; + } } <nb> public interface Record < V > { void setCreationTime ( long creationTi...
removed value check in getRecordOrNull added isTombstone to Record
<nb> public final class GetStatusOptions { @ override public boolean equals ( Object o ) { - if ( this == o ) { - return true ; - } - if ( ! ( o instanceof GetStatusOptions ) ) { - return false ; - } - return true ; + return this == o || o instanceof GetStatusOptions ; } @ override
SMALLFIX Simplified equals implementation of GetStatusOptions
<nb> import NAMESPACE ; COMMENT public class RegexpHeaderCheckTest extends BaseFileSetCheckTestSupport { - public RegexpHeaderCheckTest ( ) { - } - COMMENT COMMENT COMMENT
Remove redundant constructor
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface SingletonLogger { @ message ( id = NUMBER0 , value = STRING0 ) void quorumNotReached ( String service , int q...
Fix logging level of quorum warning
<nb> public final class BridgeResources extends Resources { } @ override + public InputStream openRawResource ( int id , TypedValue value ) throws NotFoundException { + getValue ( id , value , true ) ; + + File f = new File ( value . string . toString ( ) ) ; + if ( f . isFile ( ) ) { + try { + retu...
Fix Resources opeRawResource int TypedValue in layoutlib
<nb> public class Utils COMMENT COMMENT COMMENT - public static int hash ( int val ) + public static long hash ( long val ) { - return FNVhash32 ( val ) ; + return FNVhash64 ( val ) ; } public static final int FNV_offset_basis_32 = NUMBER0 ; <nb> public class CoreWorkload extends Workload } ...
We use FNV hash functions to generate a large indexable sequence of non colliding keys
<nb> public class CompoundButton extends android . widget . CompoundButton implements The } protected void init ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { - if ( Build . VERSION . SDK_INT > - Build . VERSION_CODES . JELLY_BEAN_MR1 ) + if ( Build . VERSION . SDK_INT >= Buil...
Fix incorrect syntax
<nb> public interface ApplicationConfig { COMMENT COMMENT java . lang . String CLOSE_STREAM_ON_CANCEL = STRING0 ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + java . lang . String USE_SERVLET_CONTEXT_PARAMETERS = STRING1 ; }
Add a configuration parameter for Servlet Context Init Parameter use
<nb> import NAMESPACE ; public final class BlockIdTests { private static final long MAX_SEQUENCE_NUMBER = NUMBER0 ; - + @ test public void createBlockIdWithMaxSequenceNumberTest ( ) { Assert . assertEquals ( NUMBER1 , BlockId . createBlockId ( NUMBER2 , BlockId . getMaxSequenceNumber ( ) ) ) ; - Asser...
Fixed checkstyle issue in BlockIdTests
<nb> public class VoiceRouter { } if ( isDistanceLess ( speed , dist , TURN_IN_DISTANCE_END ) ) { return NUMBER0 ; - } else if ( isDistanceLess ( speed , dist , PREPARE_DISTANCE_END ) ) { + } else if ( dist <= PREPARE_DISTANCE ) { return NUMBER1 ; - } else if ( isDistanceLess ( speed , dist , PREPARE_LONG...
Fix grey yellow issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CompletionUtil { @ nullable public static PsiElement getTargetElement ( LookupElement lookupElement ) { - final Object ...
make goto declaration work in groovy lookups
<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 ; <nb> public class RegexNotQuer...
modify equal test
<nb> public class GCResistantCache < E extends EntityWithSize > implements Cache < E > , Dia int objectSize = obj . size ( ) ; if ( cache . compareAndSet ( pos , oldObj , obj ) ) { - setHighest ( obj . getId ( ) ) ; + setHighest ( pos ) ; int oldObjSize = NUMBER0 ; if ( oldObj != null ) {
Registered the wrong high id was object id but is now hash position
<nb> public class XmppConnectionService extends Service { public Account findAccountByJid ( final Jid accountJid ) { for ( Account account : this . accounts ) { - if ( account . getJid ( ) . toBareJid ( ) . equals ( accountJid ) ) { + if ( account . getJid ( ) . toBareJid ( ) . equals ( accountJid . toBareJid...
Fix fetching accounts by JIDs
<nb> public class XML implements Serializable { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT public String getLocalName ( ) { return node . getLocalName ( ) ;
Removed getLocalName from reference
<nb> public class DeltaSession extends StandardSession implements Externalizable , Clus COMMENT @ override public void setId ( String id ) { - super . setId ( id ) ; + super . setId ( id , true ) ; resetDeltaRequest ( ) ; }
fix duplicate resetDeltaRequest call
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class TaskOperationResource extends SecuredResource { @ put - public void executeTaskOperation ( Representation entity ) { ...
Task put returns success true
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public class ActionPreloader { public ActionPreloader ( StartupManager manager ) { - manager . registerPostStartupActivity ( new Runnable ( ) { - public void run ( ) { - ( ( ActionManage...
do not preload actions in unit tests
<nb> public class VirtualFileVisitorTest { final StringBuilder sb = new StringBuilder ( ) ; try { - VfsUtilCore . visitChildrenRecursively ( myRoot , new VirtualFileVisitor ( options ) { + VfsUtilCore . visitChildrenRecursively ( myRoot , new VirtualFileVisitor < Object > ( options ) { private int level = N...
Get rid of stupid compiler warning
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class DexInfoTranslator implements Translator { private String dexFileName ; private List < ELEMENT > elements = new ArrayList < > ( ) ;
added class description
<nb> public abstract class SafeAsyncTask < ResultT > implements Callable < ResultT > { return future . cancel ( mayInterruptIfRunning ) ; } - + + public boolean isCancelled ( ) { + return future == null ? false : future . isCancelled ( ) ; + } COMMENT COMMENT <nb> public abstract class SafeAsync...
Add isCancelled method to SafeAsyncTask
<nb> public class PdfJsWindow extends WindowEx win . document . title = STRING0 ; - var _pdfView = win . PDFView ; - var _setInitialView = _pdfView . setInitialView ; SINGLE SINGLE + var _pdfView = win . PDFView ; + var _setInitialView = _pdfView . setInitialView ; _pdfView . setInitialView = functi...
detect PDF js window closure on Mac desktop
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove import that should not be here
<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 ; import NAMESPACE ; import NAMESPACE ...
add missing OSGI and usage modules in tests
<nb> public class ConcurrentLinkedHashCache < K , V > implements ICache < K , V > { public int weightOf ( K key , V value ) { - long size = meter . measure ( key ) + meter . measure ( value ) ; + long size = meter . measureDeep ( key ) + meter . measureDeep ( value ) ; assert size < Integer . MAX_VALUE : ST...
update measure to measureDeep
<nb> public class TypingNotificationEvent { return ( Contact ) getSource ( ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public String toString ( ) + { + return new StringBuffer ( STRING0 ) + . append ( getSourceContact ( ) . getDisplayName ( ) ) + . append ( STRING1 + getTypin...
added a custom toString implementation
<nb> public class GitRefManager implements VcsLogRefManager { remoteRefGroups . putValue ( nonTracked . get ( refName ) , ref ) ; } else { - LOG . warn ( STRING0 + ref ) ; + LOG . debug ( STRING0 + ref ) ; } } }
log lessen logging because it may happen e g for origin HEAD
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { Preconditions . checkNotNull ( who , STRING0 ) ; SINGLE if ( forceEphemeralUsers && ! mInjector . userManagerIsSplitSystemUser ( ) ) { - throw new IllegalArgumentException ( + throw new UnsupportedOperationException ( STRING1...
Throw UnsupportedOperationException when creating ephemeral
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class StatisticsManager { return instance ; } - private final Map < String , Statistic > statistics = new HashMap < String , Statistic > ( ) ; + private final ...
Added ability to remove stat
<nb> public abstract class AbstractStoreTest < K , V > extends TestCase { String assertTrueMessage = v1 + STRING0 + v2 + STRING1 ; if ( message != null ) assertTrueMessage += message ; - assertTrue ( message , valuesEqual ( v1 . getValue ( ) , v2 . getValue ( ) ) ) ; + assertTrue ( assertTrueMessage , valuesE...
Maybe we need a test for this test helper use correct message in assertEquals String Version Version
<nb> public class QuickMenu new Dimension ( BUTTON_HEIGHT , BUTTON_HEIGHT ) ) ; this . infoButton . setToolTipText ( - Messages . getI18NString ( STRING0 ) . getText ( ) ) ; + Messages . getI18NString ( STRING1 ) . getText ( ) ) ; this . configureButton . setToolTipText ( Messages . getI18NString ( STRING...
Added missing tool tip resources
<nb> import NAMESPACE ; public class DenseVector extends AbstractVector { private double [ ] values ; + private double lengthSquared = - FLOAT0 ; COMMENT public DenseVector ( ) { <nb> public class DenseVector extends AbstractVector { return result ; } - private Double lengthSquared = null ; + ...
properly init the lengthSquared and some small reformats
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ deprecated public class TypeAnalyzer extends Analyzer { COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + + COMMENT + COMMEN...
deprecated uncompleted classes
<nb> public class ContributionManagerDialog { scrollPane . setViewportView ( contributionListPanel ) ; SINGLE SINGLE - scrollPane . setVerticalScrollBarPolicy ( ScrollPaneConstants . VERTICAL_SCROLLBAR_ALWAYS ) ; + scrollPane . setVerticalScrollBarPolicy ( ScrollPaneConstants . VERTICAL_SCROLLBAR_AS_NEEDED ) ...
Made the vertical scrollbar to be displayed when needed
<nb> public class TorDiscovery implements PeerDiscovery { try { List < Circuit > circuits = getCircuits ( timeoutValue , timeoutUnit , routers ) ; + if ( circuits . isEmpty ( ) ) + throw new PeerDiscoveryException ( STRING0 + + String . valueOf ( timeoutValue ) + STRING1 + timeoutUnit ) ; Collection < I...
Don t bother pointless attempt to construct thread pool with no open circuits
<nb> public class PlatformTest extends TestCase { assertEquals ( STRING0 , STRING1 , Platform . getNativeLibraryResourcePrefix ( Platform . LINUX , STRING2 , STRING3 ) ) ; - assertEquals ( STRING4 , STRING5 , + assertEquals ( STRING4 , STRING6 , Platform . getNativeLibraryResourcePrefix ( Platform . OPENBSD...
consolidate BSD targets test
<nb> final class ActivityStack { mWindowManager . prepareAppTransition ( transit , false ) ; mWindowManager . setAppVisibility ( r . appToken , false ) ; mWindowManager . executeAppTransition ( ) ; - mStackSupervisor . mWaitingVisibleActivities . add ( r ) ; + if ( ! mStackSupervisor . mWaitingVisibleActiviti...
Do not add duplicates to mWaitingVisibleActivities
<nb> public class HystrixObservableCollapserTest { @ test public void testConcurrencyInLoop ( ) throws InterruptedException { - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) { System . out . println ( STRING0 + i ) ; testCollapserUnderConcurrency ( ) ; }
Reducing number of trials for Travis
<nb> public abstract class MvcFramework { ProjectSettingsService . getInstance ( module . getProject ( ) ) . showModuleConfigurationDialog ( module . getName ( ) , ClasspathEditor . NAME ) ; } module . putUserData ( CREATE_APP_STRUCTURE , null ) ; - final int result = Messages . showYesNoCancelDialog ( module ....
andres yann don t place create app button to the right when creating a grails application on mac
<nb> public class ATNConfigSet implements Set < ATNConfig > { @ override public Object [ ] toArray ( ) { - ATNConfig [ ] configs = new ATNConfig [ configLookup . size ( ) ] ; - int i = NUMBER0 ; - for ( ATNConfig c : configLookup ) configs [ i ++ ] = c ; - return configs ; + return configLookup . toArra...
Simplify ATNConfigSet toArray
<nb> public class DebugLogs extends BaseActivity { SINGLE Intent intent = new Intent ( Intent . ACTION_SEND ) ; intent . setType ( STRING0 ) ; - intent . putExtra ( Intent . EXTRA_EMAIL ) ; + intent . putExtra ( Intent . EXTRA_EMAIL , STRING1 ) ; intent . putExtra ( Intent . EXTRA_SUBJECT , STRING2 ) ; in...
Corrected removed space
<nb> public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol { channel . writeBytes ( stream , realLength ) ; } catch ( Exception e ) { channel . writeBytes ( null ) ; - OLogManager . instance ( ) . error ( this , STRING0 + iRecord . getIdentity ( ) . toString ( ) , + OLogManager . insta...
improved message on error while sending records to the client
<nb> public class VariableExpression extends Expression implements Variable { public VariableExpression ( String variable , ClassNode type ) { this . variable = variable ; - super . setType ( ClassHelper . getWrapper ( type ) ) ; + setType ( ClassHelper . getWrapper ( type ) ) ; } public VariableExpress...
change the usage of setType to enable changes to isDynamicTypedFalg through the constructor
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fixed missing import
<nb> public class HintedHandOffManager implements HintedHandOffManagerMBean } catch ( UnknownColumnFamilyException e ) { - logger_ . debug ( STRING0 , e ) ; + logger . debug ( STRING0 , e ) ; rm = null ; }
Fix build from variable rename
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public final class ConcurrentIdentityHashMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K , V > { + public class ConcurrentIdentityHashMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K , V > { COMMENT COMMEN...
fix compile error
<nb> abstract class AbstractInterceptUrlConfigurer < C extends AbstractInterceptUrlConf COMMENT COMMENT COMMENT - @ suppresswarnings ( STRING0 ) abstract List < AccessDecisionVoter < ? extends Object > > getDecisionVoters ( H http ) ; abstract class AbstractInterceptUrlRegistry < R extends AbstractInterce...
Remove unnecessary SuppressWarnings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GoModuleLibrariesInitializer implements ModuleComponent { ApplicationManager . getApplication ( ) . invokeLater ( updateReque...
Do not use modality state on pooled thread
<nb> public class OrientEdge extends OrientElement implements Edge { COMMENT @ override public void remove ( ) { - checkClass ( ) ; + if ( ! isLightweight ( ) ) + checkClass ( ) ; graph . setCurrentGraphInThreadLocal ( ) ; graph . autoStartTransaction ( ) ;
Don t call checkClass for lightweight edges
<nb> public abstract class HttpResponse { logger . debug ( responseAsString ) ; stream . close ( ) ; streamConsumed = true ; - } catch ( NullPointerException npe ) { - SINGLE - throw new TwitterException ( npe . getMessage ( ) , npe ) ; } catch ( IOException ioe ) { throw new TwitterException ( ioe . ge...
made NPE in HttpResponse debuggable
<nb> public class HighlightBuilder implements ToXContent { int numOfFragments = - NUMBER0 ; Boolean requireFieldMatch ; - private Field ( String name ) { + public Field ( String name ) { this . name = name ; }
expose the highlighter builder Field constructor
<nb> public class RuntimeJavaCompiler { list . add ( new JavaClassFromEntry ( jar , entry ) ) ; } } - jfosGlobalCache . put ( jarFilename , list ) ; + SINGLE } } jfos . addAll ( list ) ;
turning off global jar caching to figure out why it doesnt work with classworlds
<nb> public class WindowManagerService extends IWindowManager . Stub int mFocusedStackLayer ; final float [ ] mTmpFloats = new float [ NUMBER0 ] ; + final Rect mTmpContentRect = new Rect ( ) ; boolean mDisplayReady ; boolean mSafeMode ; <nb> public class WindowManagerService extends IWindowManager . Stu...
Remove Rect allocation in each layout pass
<nb> public class NestedResultSetHandler extends FastResultSetHandler { final CacheKey cacheKey = new CacheKey ( ) ; List < ResultMapping > resultMappings = getResultMappingsForRowKey ( resultMap ) ; cacheKey . update ( resultMap . getId ( ) ) ; - if ( parent != null ) cacheKey . update ( parent ) ; if ( resu...
do not add parent to null row keys
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidProjectBuildTarget extends BuildTarget < BuildRootDescriptor > result . add ( new AndroidProjectBuildTarget ( AndroidB...
add dependency on tests if necessary
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE + STRING3 , SINGLE STRING4 SINGLE } ;
Add org objectweb asm
<nb> public class AntBuildFileImpl implements AntBuildFileBase { public static final BooleanProperty RUN_IN_BACKGROUND = new BooleanProperty ( STRING0 , true ) ; public static final IntProperty MAX_HEAP_SIZE = new IntProperty ( STRING1 , NUMBER0 ) ; - public static final IntProperty MAX_STACK_SIZE = new IntProp...
changed default stack size for running ant
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Fix up merge
<nb> public class GLM extends SupervisedModelBuilder < GLMModel , GLMModel . GLMParameters , if ( mem_usage > max_mem ) { String msg = STRING0 + PrettyPrint . bytes ( mem_usage ) + STRING1 + PrettyPrint . bytes ( max_mem ) - + STRING2 ; + + STRING3 ; error ( STRING4 , msg ) ; cancel ( msg ) ; }
Improve the GLM admission error message