diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class UseChecker extends AbstractStmtSwitch private void handleInstanceFieldRef ( InstanceFieldRef ifr , Stmt stmt ) { + SINGLE + SINGLE + SINGLE + SINGLE ifr . setBase ( this . uv . visit ( ifr . getBase ( ) , - ifr . getField ( ) . getDeclaringClass ( ) . getType ( ) , stmt ) ) ; + ifr...
Prevent Soot s TyeResolver from resolving fields
<nb> public class BasicRawTableTest { } TachyonFile tFile = rawColumn . getPartition ( NUMBER0 ) ; - tFile . open ( STRING0 ) ; + tFile . open ( STRING0 , false ) ; ByteBuffer buf = ByteBuffer . allocate ( NUMBER1 ) ; buf . order ( ByteOrder . nativeOrder ( ) ) ; <nb> public class BasicUserOperationTe...
Make local mode run these two tests
<nb> public class SimperiumUtils { return mMetaBucket ; } - public static Simperium configureSimperium ( final Context context , String token ) { + public static synchronized Simperium configureSimperium ( final Context context , String token ) { SINGLE SINGLE if ( mSimperium == null ) {
Synchroize the configureSimperium method
<nb> public class FMLClientHandler implements IFMLSidedHandler @ override public void fireNetRegistrationEvent ( EventBus bus , NetworkManager manager , Set < String > channelSet , String channel , Side side ) { - waitForPlayClient ( ) ; if ( side == Side . CLIENT ) { + waitForPlayClient ( ) ; bus . pos...
Fix potential rance condition in connecting to vanilla servers as well
<nb> public class StandardSession COMMENT public void access ( ) { - this . lastAccessedTime = this . thisAccessedTime ; this . thisAccessedTime = System . currentTimeMillis ( ) ; - + if ( ACTIVITY_CHECK ) { accessCount . incrementAndGet ( ) ; } <nb> public class StandardSession public void endA...
Give thisAccessedTime and lastAccessedTime for sessions
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add note about problems with InjectView and setContentView
<nb> import static NAMESPACE ; public class DeepLearningProstateTest extends TestUtil { @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } - @ test public void run ( ) throws Exception { runFraction ( FLOAT0 ) ; } + @ test public void run ( ) throws Exception { runFraction (...
Reduce runtime for DLProstateTest
<nb> import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LongDistancePathService implements PathService { @ autowired @ setter private GraphService graphService ; + @ autowired @ setter private SPTService sptServ...
Revert premature multiobjective use of GenericAStar
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ShowFilePathAction extends AnAction { } private static void doOpen ( @ notnull File dir , @ nullable File toSelect ) thro...
ShowFilePathAction correctly handles non normalized paths e g with
<nb> public class ParserInterpreter { @ override public String getGrammarFileName ( ) { - return null ; + throw new UnsupportedOperationException ( STRING0 ) ; } @ override
Throw UnsupportedOperationException in not implemented method
<nb> public final class SearchableInfo implements Parcelable { InputType . TYPE_CLASS_TEXT | InputType . TYPE_TEXT_VARIATION_NORMAL ) ; mSearchImeOptions = a . getInt ( com . android . internal . R . styleable . Searchable_imeOptions , - EditorInfo . IME_ACTION_SEARCH ) ; + EditorInfo . IME_ACTION_GO ) ; mI...
Use a Go button instead of a magnifying glass in the keyboard for in app search
<nb> public class QTuple extends ExpressionBase < Tuple > implements FactoryExpression < T private static final ImmutableList < Expression < ? > > createBindings ( List < Expression < ? > > exprs ) { ImmutableList . Builder < Expression < ? > > builder = ImmutableList . builder ( ) ; for ( Expression < ? > e : ex...
Add wildcard types
<nb> public class LogListenerTest { } private void assertNoStdOutput ( ) { - assertThat ( stdOutTarget . toByteArray ( ) ) . isEmpty ( ) ; - assertThat ( stdErrTarget . toByteArray ( ) ) . isEmpty ( ) ; + assertThat ( new String ( stdOutTarget . toByteArray ( ) ) ) . isEmpty ( ) ; + assertThat ( new Strin...
Ease test failure investigation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
bringing back lost import statement
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class CollectionTest { <nb> public class CollectionTest { Set set2 ; } ...
Add test case
<nb> public class ZooKeeperMapTest extends BaseZooKeeperTest { } private static void assertThrows ( TestFunction function , Class < ? extends Exception > throwable ) - throws Exception { + throws Exception { try { function . apply ( ) ; fail ( STRING0 + throwable . getName ( ) ) ;
Fix continuation indent
<nb> public abstract class ConditionBasicTest extends HazelcastTestSupport { condition . signal ( ) ; lock . unlock ( ) ; - createThreadWaitsForCondition ( latch , lock , condition , null ) . start ( ) ; + createThreadWaitsForCondition ( latch , lock , condition , new CountDownLatch ( NUMBER0 ) ) . start ( ) ...
Fixed NPE ConditionBasicTest which is causing not to test intended behaviour
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; public class ConfigurationParser { private static final Pattern LINE = Pattern . compile ( STRING0 ) ; - private static final Pattern NEWLINE_FINDER = Pattern . compile ( STRING1 , Pattern . MULTILINE ) ; + private ...
don t skip empty lines in the line number count for config files
<nb> public class OServerCommandPostCommand extends OServerCommandAuthenticatedDbAbst SINGLE cmd . setCacheableResult ( true ) ; - response = db . command ( cmd ) . execute ( params ) ; + if ( params == null ) { + response = db . command ( cmd ) . execute ( ) ; + } else { + response = db . command ( cmd...
Execute request with no params in case of null
<nb> public class FormMoveProvider extends MoveHandlerDelegate { for ( int i = NUMBER0 ; i < forms . length ; i ++ ) { classesToMove [ i ] = forms [ i ] . getClassToBind ( ) ; if ( classesToMove [ i ] != null ) { - filesOrDirs . add ( classesToMove [ i ] . getContainingFile ( ) ) ; + final PsiFile containingF...
ensure NonNull values collected to be moved
<nb> public class InferenceSession { } private static boolean hasPrimitiveWrapperBound ( InferenceVariable inferenceVariable ) { - for ( InferenceBound inferenceBound : InferenceBound . values ( ) ) { + final InferenceBound [ ] boundTypes = { InferenceBound . UPPER , InferenceBound . LOWER } ; + for ( Infer...
ignore eq constraint by the spec
<nb> public class FileOutStream extends AbstractOutStream { mUnderStorageOutputStream . write ( b ) ; ClientContext . getClientMetrics ( ) . incBytesWrittenUfs ( NUMBER0 ) ; } - mBytesWritten ++ ; + mBytesWritten ++ ; } @ override
Fix wrong format
<nb> public class ModuleLevelConfigurablesEditorProvider implements ModuleConfigurati for ( final Configurable moduleConfigurable : moduleConfigurables ) { result . add ( new ConfigurableWrapper ( moduleConfigurable ) ) ; } - for ( Configurable configurable : Extensions . getExtensions ( MODULE_CONFIGURABLES ) ...
fixed project settings
<nb> import NAMESPACE ; import NAMESPACE ; public class MembersWithProperties implements MembershipListener { - Channel channel ; static Thread main ; public MembersWithProperties ( Channel channel , Properties props ) throws IOException { - this . channel = channel ; channel . addMembershipListener (...
Remove unused code
<nb> public class InFileInputStreamObjectPersisterTest extends InstrumentationTestCas IOUtils . write ( STRING0 , fileOutputStream ) ; IOUtils . closeQuietly ( fileOutputStream ) ; - InputStream inputStream = inputStreamCacheManager . loadDataFromCache ( TEST_CACHE_KEY , DurationInMillis . ONE_SECOND ) ; + In...
Give more time to a test that failed on CI but passed locally
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fix missing import
<nb> public abstract class ReadOnlyConnectorMetadata } @ override - public void commitInsert ( ConnectorInsertTableHandle insertHandle , Collection < String > fragments ) + public final void commitInsert ( ConnectorInsertTableHandle insertHandle , Collection < String > fragments ) { throw new UnsupportedO...
Make commitInsert final in ReadOnlyConnectorMetadata
<nb> public class Line3D extends Object3D { init ( ) ; } + public Vector3 getPoint ( int point ) { + return mPoints . get ( point ) ; + } + private void init ( ) { setDoubleSided ( true ) ; setDrawingMode ( GLES20 . GL_LINE_STRIP ) ;
Added get point method to Line3D java
<nb> class ConsolePanel extends JPanel implements LogConsoleManager , Disposable { myStatusLine . setMinimumSize ( new Dimension ( NUMBER0 , myStatusLine . getMinimumSize ( ) . height ) ) ; final JPanel rightPanel = new JPanel ( new BorderLayout ( ) ) ; rightPanel . add ( SameHeightPanel . wrap ( myStatusLine , m...
should fix memory leak in tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import in RecoverySourceHandler
<nb> public class NestedScrollView extends FrameLayout implements NestedScrollingPare @ override public void onAttachedToWindow ( ) { + super . onAttachedToWindow ( ) ; + mIsLaidOut = false ; }
NestedScrollView should call super onAttachedToWindow
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PortMapping extends Descriptor { @ jsonproperty ( STRING0 ) final String protocol ) { this . internalPort = internalPort ; this . externalPort = externalPort ; - this . protoc...
Make PortMapping protocol default to tcp
<nb> public class BasicCacheLiteMemberTest testCacheCreation ( liteCachingProvider , instanceCachingProvider ) ; } - public void testPutFromLiteMember ( ) { - - } - private void testCacheCreation ( final HazelcastServerCachingProvider providerToCreate , final HazelcastServerCachingProvider providerToV...
Align BasicCacheLiteMemberTest with master
<nb> public class EncodingManagerImpl extends EncodingManager implements PersistentSt @ override public boolean isUseUTFGuessing ( final VirtualFile virtualFile ) { Project project = guessProject ( virtualFile ) ; - return project != null && EncodingProjectManager . getInstance ( project ) . isUseUTFGuessing ( ...
detect text files outside project or during IDEA startup
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility } COMMENT - COMMENT + COMMENT COMMENT COMMEN...
Fix the build
<nb> public class MapInfoControls { if ( set != null ) { if ( set . contains ( key ) ) { def = true ; + collapse = false ; } else if ( set . contains ( STRING0 + key ) ) { def = false ; + collapse = false ; } else if ( set . contains ( STRING1 + key ) ) { + def = false ; collapse = true ; } }
Fix settings order issue
<nb> public final class SlidingWindowCounter < T > implements Serializable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public Map < T , Long > getCountsThenAdvanceWindow ( ) { Map < T , Long > counts = objCounter . getCounts ( ) ;
update Java docs
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public interface AssetFactory < DATA_TYPE extends AssetData , ASSET_TYPE extends Asset < DATA_TYPE > > { + public interface AssetFactory < DATA extends AssetData , ASSET extends Asset < DATA > > { - ASSET_TYPE buildAsset ( AssetUri uri , DATA_TYPE data ) ...
Fix checkstyle type name warning
<nb> public class ByteArrayEndPointTest @ test public void testIdle ( ) throws Exception { - long idleTimeout = NUMBER0 ; + long idleTimeout = NUMBER1 ; ByteArrayEndPoint endp = new ByteArrayEndPoint ( _scheduler , idleTimeout ) ; endp . addInput ( STRING0 ) ; endp . setGrowOutput ( false ) ; <nb> pub...
increased test idletimeout
<nb> public final class PendingIntent implements Parcelable { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class PendingIntent implements Parcelable { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Hopefully fix PendingIntent getActivities documentation wtf
<nb> public enum Cipher { NUMBER0 , NUMBER0 ) , - SINGLE + SINGLE TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 ( - STRING0 , + STRING1 , KeyExchange . EDH , - Authentication . RSA , - Encryption . CAMELLIA128 , + Authentication . aNULL , + Encryption . CAMELLIA256 , MessageDigest . SHA256 , Pr...
Fix copy paste oversight
<nb> public class DataSourceUtils { private static Map < String , String > NAME_TYPE = new HashMap < String , String > ( ) ; static { - SINGLE register ( STRING0 , STRING1 ) ; register ( STRING2 , STRING3 , STRING4 ) ;
removed unneeded comment that could cause troubles
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , COMMENT COMMENT protected boolean performButtonActionOnTouchDown ( MotionEvent event ) { - if ( ( event . getButtonState ( ) & MotionEvent . BUTTON_SECONDARY ) != NUMBER0 ) { - if ( showContextMenu ( event . getX ( ) , event . getY ...
Fix right click to context menu behavior of View
<nb> public class DefaultNullInvoiceEvent implements NullInvoiceEvent { } @ override + public String toString ( ) { + final StringBuilder sb = new StringBuilder ( ) ; + sb . append ( STRING0 ) ; + sb . append ( STRING1 ) . append ( accountId ) ; + sb . append ( STRING2 ) . append ( processingDate ) ; ...
add toString method to DefaultNullInvoiceEvent
<nb> public class SendIssueNotificationsPostJob implements PostJob { if ( ! shouldSentNotification . isEmpty ( ) ) { notifications . sendChanges ( shouldSentNotification , context , project , null ) ; } - if ( newIssues . size ( ) > NUMBER0 ) { + if ( ! newIssues . isEmpty ( ) ) { notifications . sendNewIss...
Fix quality flaws
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ProxyCreationContext { COMMENT COMMENT static void setCurrentProxiedBeanName ( String beanName ) { - currentProxiedBeanName . set ( beanName ) ; + if ( beanName != null ) { + currentProxiedBeanName . set ( beanName ) ; ...
ProxyCreationContext uses ThreadLocal remove over ThreadLocal set null as well
<nb> public class ClasspathConfigurer { private void handleResolveError ( @ suppresswarnings ( STRING0 ) BuildSettings settings , DependencyReport buildResolveReport ) { cleanResolveCache ( settings ) ; - GrailsConsole . getInstance ( ) . error ( buildResolveReport . getResolveError ( ) . getMessage ( ) ) ; +...
add prompt to run dependency report upon resolve error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TaskDao extends DatabaseDao < Task > { try { saveSuccessful = createNew ( task ) ; } catch ( SQLiteConstraintException e ) { - if ( e . ge...
We shouldn t be checking the error message for sqlite constraint exceptions different phones do it differently
<nb> public class CliArgumentParser { . hasArgs ( ) . withValueSeparator ( STRING0 ) . withDescription ( STRING1 ) - . create ( ) ) ; + . create ( STRING2 ) ) ; options . addOption ( STRING3 , false , STRING4 ) ; return options ; }
added an argument character for the additional jars command line option
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class NonOverlappingView extends View { + class NonOverlappingView extends View { public NonOverlappingView ( Context context ) { this ( context , null ) ; } <nb> public class NonOverlappingView extends View { } COMMENT - C...
Make NonOverlappingView package private
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unsued import
<nb> public class TestEmbeddedDBFactory extends KillbillTestSuite { Assert . assertEquals ( h2EmbeddedDb . getDBEngine ( ) , DBEngine . H2 ) ; checkEmbeddedDb ( h2EmbeddedDb ) ; + final EmbeddedDB postgresEmbeddedDb = EmbeddedDBFactory . get ( createDaoConfig ( STRING0 , STRING1 , STRING1 ) ) ; + Assert . ass...
Update the test for EmbeddedDBFactory to include postgres
<nb> public class ReminderDialog extends Dialog { @ override public void onClick ( View arg0 ) { Task task = taskService . fetchById ( taskId , Task . ID , Task . REMINDER_LAST , Task . SOCIAL_REMINDER ) ; - taskService . setComplete ( task , true ) ; + if ( task != null ) + taskService . setComplete ( task...
Fixed a rare crash in reminder dialog
<nb> public class SmartRetrierTest { public static class MyRuntimeException extends RuntimeException { + private static final long serialVersionUID = NUMBER0 ; + } public static class MyError extends Error { - + private static final long serialVersionUID = NUMBER1 ; } }
Added serialVersionUID on two exceptions
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public final class MultiFormatReader implements Reader {
Finally submit tiny change to comments here
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF StubTree stub = derefStub ( ) ; if ( stub != null ) { + ApplicationManager . getApplication ( ) . assertReadAccessAllowed ( ) ; final Iterator < StubElement < ? > > stubs = stub . getPlainList ( ) . iterator ( ) ; stubs ....
fix psi seeming invalid during stub ast switch
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT public class JRubyActionWrapper < T1 , T2 , T3 , T4 > implements Action , Action0 , Action1 < T1 > , Action2 < T1 , T2 > , Action3 < T1 , T2 , T3 > { <nb> import NAMESPACE ; COMMENT COMMENT ...
Remove unused param comments
<nb> public class TarjansStronglyConnectedComponentsAlgorithm onStack . clear ( node ) ; } component . add ( start ) ; + component . trimToSize ( ) ; onStack . clear ( start ) ; components . add ( component ) ;
reduce RAM usage in tarjan algorithm via trimToSize
<nb> import NAMESPACE ; public class RandomServerSelectorStrategy implements ServerSelectorStrategy { - Random random ; - - public RandomServerSelectorStrategy ( ) { - this . random = new Random ( ) ; - } + private static final Random random = new Random ( ) ; @ override public QueryableDruidSer...
simplify things a bit
<nb> public class BlockMetadataManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public synchronized boolean hasTempBlockMeta ( long blockId ) { + for ( StorageTier tier : mTiers ) { + for ( StorageDir dir : tier . getStorageDirs ( ) ) { + if ( dir . hasTempBlockMeta ( bloc...
Add hasTempBlockMeta in BlockMetadataManager and check if a temp block exists in TieredBlockStore
<nb> public final class ITFReader extends OneDReader { int quietCount = this . narrowLineWidth * NUMBER0 ; SINGLE + SINGLE + quietCount = quietCount < startPattern ? quietCount : startPattern ; + for ( int i = startPattern - NUMBER1 ; quietCount > NUMBER2 && i >= NUMBER2 ; i -- ) { if ( row . get ( i ) ...
Allow less quiet zone to start an ITF barcode when it is near the edge
<nb> import static NAMESPACE ; COMMENT COMMENT - public class ClearScrollRequest extends ActionRequest { + public class ClearScrollRequest extends ActionRequest < ClearScrollRequest > { private List < String > scrollIds ;
ClearScrollRequest should set a type parameter
<nb> public class GradientDrawable extends Drawable { mStrokePaint = new Paint ( Paint . ANTI_ALIAS_FLAG ) ; mStrokePaint . setStyle ( Paint . Style . STROKE ) ; mStrokePaint . setStrokeWidth ( state . mStrokeWidth ) ; - mStrokePaint . setColor ( state . mStrokeColor ) ; + if ( state . mStrokeColorStateList !...
Fix stroke color in GradientState initializeWithState
<nb> public class TestLengthConstrainedPathFinder extends TestCase { for ( boolean prune : new boolean [ ] { false , true } ) { System . out . printf ( STRING0 , prune ) ; long elapsed = NUMBER0 ; - for ( int pathLength = NUMBER1 ; elapsed < NUMBER2 && pathLength < NUMBER3 ; pathLength += NUMBER4 ) { + for ( ...
usually stop length constrained pathfinder based on length not time
<nb> public class IndexerZkConfigTest { final Injector injector = Initialization . makeInjectorWithModules ( GuiceInjectors . makeStartupInjector ( ) , - ImmutableList . < Object > of ( simpleZkConfigModule ) + ImmutableList . < Module > of ( simpleZkConfigModule ) ) ; JsonConfigurator configurator = inje...
Added a few places where tests were using Object instead of Module
<nb> public class LockdownVpnTracker { } public NetworkInfo augmentNetworkInfo ( NetworkInfo info ) { - final NetworkInfo vpnInfo = mVpn . getNetworkInfo ( ) ; - info = new NetworkInfo ( info ) ; - info . setDetailedState ( vpnInfo . getDetailedState ( ) , vpnInfo . getReason ( ) , null ) ; + if ( info . ...
Lockdown should only augment connected networks
<nb> public class JacksonJsonAfterburner ObjectMapper mapper = new ObjectMapper ( ) ; mapper . registerModule ( new AfterburnerModule ( ) ) ; groups . media . add ( JavaBuiltIn . mediaTransformer , - new StdJacksonDataBind < MediaContent > ( STRING0 , MediaContent . class , mapper ) ) ; + new StdJacksonDataBi...
shorten names a bit so results are not skewed
<nb> public interface Input { COMMENT public float getAccelerometerZ ( ) ; - COMMENT + COMMENT public int getX ( ) ; COMMENT <nb> public interface Input { COMMENT public int getDeltaX ( int pointer ) ; - COMMENT + COMMENT public int getY ( ) ; COMMENT
fixed Input getX getY Javadocs
<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . elementDescriptor = parentDescriptor . getElementDescriptor ( tag ) ; } - if ( parentDescriptor != null && elementDescriptor == null ) { + if ( parentDescriptor != null && + elementDescriptor == null && + parentTag . ge...
fixed issue with html validation when there was no html tag child descriptor in parents that contains custom tag output
<nb> public class MediaDriver public static final int SELECT_TIMEOUT_DEFAULT = NUMBER0 ; public static final int READ_BYTE_BUFFER_SZ = Integer . getInteger ( READ_BYTE_BUFFER_SZ_PROPERTY_NAME , - READ_BYTE_BUFFER_SZ_DEFAULT ) ; + READ_BYTE_BUFFER_SZ_DEFAULT ) . intValue ( ) ; public static final int COMMAND...
Encapsulate flyweight fields
<nb> public class DRFTest extends TestUtil { } } , NUMBER0 , - FLOAT0 + FLOAT1 ) ; } <nb> public class DRFTest extends TestUtil { } } , NUMBER1 , - FLOAT2 + FLOAT3 ) ; }
Adapt DRF JUnits to new double precision scoring
<nb> public final class TvInputManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
enhance documentation for TvInputManager getAvailableStreamConfigs
<nb> public class TreeMapTest extends AbstractMapTest { Assert . assertEquals ( STRING0 , result . head ( ) ) ; } - @ test - public void test ( ) { - TreeMap < String , Integer > tm = TreeMap . of ( Tuple . of ( STRING1 , NUMBER0 ) ) ; - System . out . println ( tm . contains ( Tuple . of ( STRING1 , NUMB...
removed TreeMap contains failure test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestHaBean } @ test + @ ignore SINGLE public void canGetInstanceConnectionInformation ( ) throws Exception { Neo4...
Ignored two tests that fail on Linux
<nb> public class NeuralNet extends ValidatedJob { @ api ( help = STRING0 , filter = Default . class , json = true ) public Loss loss = Loss . CrossEntropy ; - @ api ( help = STRING1 , filter = Default . class , dmin = NUMBER0 , json = true ) + @ api ( help = STRING2 , filter = Default . class , dmin = NUMBER...
Change the description of the learning rate decay factor
<nb> public class TestMainAction implements Runnable { return testTaskOperationId ; } - public Object getTestTaskOperationId ( ) { - return testTaskOperationId ; - } - @ override public String toString ( ) { return getName ( ) ;
Remove unused method
<nb> public class MRUtils { SINGLE if ( Utils . minValue ( dist ) == NUMBER0 ) { Log . info ( STRING0 ) ; + r . delete ( ) ; return sampleFrameStratified ( fr , label , sampling_ratios , seed + NUMBER1 , debug ) ; }
Fix memory leak when re doing stratified sampling after not every class was represented
<nb> public class Lexer { characterTokens . add ( STRING0 ) ; } - private static final Set < String > keywords = new HashSet < String > ( Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ) ) ; + private static final Set < String > keywords = new HashSet < String ...
Added switch and case to the list of keywords so they can t be used as variable names
<nb> public class ColorPicker extends JPanel implements Consumer < Color > , DocumentList } } + @ nullable private Pair < Integer , Integer > pointToCellCoords ( Point p ) { int x = p . x ; int y = p . y ; <nb> public class ColorPicker extends JPanel implements Consumer < Color > , DocumentList int ro...
ColorPicker RecentColorsComponent getColor r amakeev
<nb> final class WebViewCore { } else { width = Math . max ( w , mViewportWidth ) ; } + } else if ( mSettings . getUseFixedViewport ( ) ) { + width = mWebView . getViewWidth ( ) ; } else { width = textwrapWidth ; }
Fix mobile sites viewport in fixed viewport mode
<nb> class ScratchWidget extends EditorBasedWidget implements CustomStatusBarWidget . M @ override public Dimension getPreferredSize ( ) { final Dimension preferredSize = super . getPreferredSize ( ) ; - int deltaWidth = AllIcons . Ide . Statusbar_arrows . getIconWidth ( ) + myIconTextGap * NUMBER0 ; + int de...
reduce a gap between arrows and text
<nb> public class WebSocket08FrameDecoder extends ByteToMessageDecoder return ; } if ( frameOpcode == OPCODE_CLOSE ) { - checkCloseFrameBody ( ctx , payloadBuffer ) ; receivedClosingHandshake = true ; + checkCloseFrameBody ( ctx , payloadBuffer ) ; out . add ( new CloseWebSocketFrame ( frameFinalFlag , fr...
Send a websocket close frame with status code when receiving invalid frames
<nb> public class NewtKeyInput implements KeyInput , KeyListener { synchronized ( eventQueue ) { eventQueue . add ( keyEvent ) ; } - System . out . println ( evt ) ; } } <nb> public class NewtKeyInput implements KeyInput , KeyListener { synchronized ( eventQueue ) { eventQueue . add ( keyEvent ) ; ...
Removes useless debug logs from NewtKeyInput
<nb> public class AmenityMenuBuilder extends MenuBuilder { OpeningHoursParser . OpeningHours rs = OpeningHoursParser . parseOpenedHours ( amenity . getOpeningHours ( ) ) ; if ( rs != null ) { + vl = rs . toLocalStringNoMonths ( ) ; Calendar inst = Calendar . getInstance ( ) ; inst . setTimeInMillis ( System...
Added usage of localized day names
<nb> public class PrincipalRepositoryBeanDefinitionParser extends AbstractBeanDefinit SINGLE RootBeanDefinition defintion = new RootBeanDefinition ( PropertiesFactoryBean . class ) ; String propertyValue = ele . getAttribute ( RESOURCE ) ; - defintion . getPropertyValues ( ) . addPropertyValue ( RESOURCE , prop...
Replace resource property with location for PropertyFactoryBean
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class SubDeploymentDependencyProcessor implements DeploymentUnitProcessor final ModuleIdentifier parentModule = parent . getAttachment ( Attachments . MODULE_IDENTIFIER ) ;...
allow access to META INF between deployment modules
<nb> public final class TreeWalker COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT + COMMENT COMMENT public static DetailAST parse ( FileContents aContents ) - throws TokenStreamException , RecognitionException + throws RecognitionException , TokenStreamException { DetailAST rootAST ; try ...
Fix checkstyle errors
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WheelView extends ScrollView { @ override public int getOpacity ( ) { - return NUMBER0 ; + return PixelFormat . UNKNO...
Avoid magic number
<nb> public class GeneralPreferencesPane extends PreferencesPane showServerHomePage_ = new SelectWidget ( STRING0 , new String [ ] { - STRING1 , + STRING2 , STRING3 , STRING4 } , <nb> public class GeneralPreferencesPane extends PreferencesPane STRING5 , STRING6 } , - false ) ; + false , + ...
tweak server home page option ui
<nb> import NAMESPACE ; public class DctConstants { COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public class DctConstants { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public enum State { IDLE , - INITING , CONNECTING , SCANNING , CONNECTED , <nb> p...
Removing unused INITING state
<nb> public class SonarPluginMojo extends AbstractSonarPluginMojo { getLog ( ) . info ( STRING0 ) ; if ( isUseChildFirstClassLoader ( ) ) { - archive . addManifestEntry ( PluginManifest . USE_CHILD_FIRST_CLASSLOADER , true ) ; + archive . addManifestEntry ( PluginManifest . USE_CHILD_FIRST_CLASSLOADER , STRIN...
Fix creation of attribute Plugin ChildFirstClassLoader
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT public class CypherSessionTest { @ test
Removed unhelpful comment text
<nb> final class ParameterInliner implements Predicate < Object [ ] > { final Consumer < Object > collect = new Consumer < Object > ( ) { @ override public void accept ( Object o ) { - newParameters . add ( o ) ; + newParameters . add ( NUMBER0 , o ) ; } } ; SINGLE
Fix parameter insertion order
<nb> public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen return null ; } } else { + + assert ! pingMasters . contains ( localNode ) : STRING0 ; SINGLE return electMaster . electMaster ( pingMasters ) ; }
Add an assertion to ZenDiscovery checking that local node is never elected if pings indicate an active master
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConcurrentBroadcastTest { } public void configureCometSupport ( ) { - atmoServlet . framework ( ) . setAsyncSupport ( ...
Change the CometSupport
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESP...
eliminate eclipse warnings
<nb> public class ChatRoomPropertyChangeEvent return STRING0 + this . getPropertyName ( ) + STRING1 - + this . getSource ( ) . toString ( ) + + this . getSource ( ) + STRING2 - + this . getOldValue ( ) . toString ( ) + + this . getOldValue ( ) + STRING3 - + this . getNewValue ( ) . toString ( ) + ...
avoiding null pointer exceptoin when one of the printed value is null
<nb> public final class CipherSuiteConverter { STRING0 + SINGLE STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 +
Add DH to handshake algorithm pattern
<nb> class ZoomManager { mTextWrapScale = Math . max ( mTextWrapScale , overviewScale ) ; } reflowText = exceedsMinScaleIncrement ( mTextWrapScale , scale ) ; + } else { + SINGLE + SINGLE + if ( scale == mDefaultScale && settings . getLoadWithOverviewMode ( ) ) { + scale = overviewScale ; + } } mI...
Treat restored defaultScale as overview
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAME...
Remove unused imports