diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; COMMENT public abstract class CommonXml implements XMLElementReader < List < ModelNode > > , XMLElementWriter < ModelMarshallingContext > { - SINGLE - protected static final Logger log = Logger . getLogger ( STRING0 ) ; - COMMENT protected static final Set < String > RESTRICTED_P...
Fix merge issue
<nb> package NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Bindings extends ForwardingMap < Bindings . Key < ? > , Object > { @ override public String toString ( ) { - return Objects . toStringHelper ( this )...
Migrate users from c g c base Objects to MoreObjects
<nb> public class AsmCodeGenerator { generator . invokeConstructor ( ourButtonGroupType , Method . getMethod ( STRING0 ) ) ; generator . storeLocal ( groupLocal ) ; - if ( groups [ groupIndex ] . isBound ( ) ) { + if ( groups [ groupIndex ] . isBound ( ) && ! myIgnoreCustomCreation ) { validateFieldClass ( ...
in form preview mode ignore bindings for button groups
<nb> public class GitHistoryUtils { COMMENT COMMENT COMMENT - public static List < String > LOG_ALL = Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 ) ; + public static final List < String > LOG_ALL = Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 ) ; - private final static Logger LOG = ...
Make the constant final
<nb> public class VersionedCatalogLoader implements CatalogLoader { } catch ( final CatalogApiException e ) { throw e ; } catch ( final Exception e ) { - throw new CatalogApiException ( ErrorCode . CAT_INVALID_DEFAULT , STRING0 , e ) ; + throw new CatalogApiException ( ErrorCode . CAT_INVALID_FOR_TENANT , ten...
revisit error message when loading the catalog
<nb> public class ScanIssues implements BatchComponent { private DefaultIssue newIssue ( Violation violation ) { return ( DefaultIssue ) new DefaultIssueBuilder ( ) . componentKey ( violation . getResource ( ) . getEffectiveKey ( ) ) + SINGLE . ruleKey ( RuleKey . of ( violation . getRule ( ) . getRepositoryK...
Remove project verification
<nb> public abstract class DebugProcessImpl implements DebugProcess { public void appendPositionManager ( final PositionManager positionManager ) { DebuggerManagerThreadImpl . assertIsManagerThread ( ) ; myPositionManager . appendPositionManager ( positionManager ) ; - DebuggerManagerEx . getInstanceEx ( myProj...
remove unnecesary breakpoint requests recreation after position manager append appendPositionManager usage javadoc updated
<nb> import NAMESPACE ; COMMENT public class ClusterManager { - private static String CLUSTER_PROPERTY_NAME = STRING0 ; + private static String CLUSTER_PROPERTY_NAME = STRING1 ; private static Queue < ClusterEventListener > listeners = new ConcurrentLinkedQueue < ClusterEventListener > ( ) ; private stati...
Changed property name use for clustering enable disable
<nb> public class PythonLanguage extends Language { _annotators . add ( GlobalAnnotator . class ) ; _annotators . add ( ImportAnnotator . class ) ; _annotators . add ( UnicodeOrByteLiteralAnnotator . class ) ; + _annotators . add ( StringLiteralQuotesAnnotator . class ) ; _annotators . add ( PyBuiltinAnnotato...
Forgotten annotator was breaking some tests
<nb> public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess , Pr @ override public void stop ( ) { - SINGLE + myDebugger . disconnect ( ) ; } @ override <nb> public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess , Pr @ override public void processTerm...
Fixed debugger disconnection
<nb> public class TestIntegrationWithAutoPayOff extends TestIntegrationBase { } assertEquals ( cur . getBalance ( ) , cur . getChargedAmount ( ) ) ; } + SINGLE + addDelayBceauseOfLackOfCorrectSynchro ( ) ; SINGLE paymentPlugin . clear ( ) ;
Add more tweaks to flaky testAutoPayOffWithPaymentFailure test so it becomes more reliable
<nb> public class DefaultAttributeMap implements AttributeMap { @ override public T setIfAbsent ( T value ) { - if ( compareAndSet ( null , value ) ) { - return null ; - } else { - return get ( ) ; + while ( ! compareAndSet ( null , value ) ) { + T old = get ( ) ; + if ( old != null ) { + return o...
Fix semantic of DefaultAttribute impl on setIfAbsent
<nb> public class TestEncodingDecoding extends TomcatBaseTest { if ( Server . isLifeCycleEventCalled ( name ) ) { break ; } + i ++ ; Thread . sleep ( NUMBER0 ) ; } Assert . assertTrue ( Server . isLifeCycleEventCalled ( name ) ) ;
Add the rather crucial missing i in the wait loop
<nb> import NAMESPACE ; COMMENT public class DataForm implements PacketExtension { - public static final String TYPE_FORM = STRING0 ; - public static final String TYPE_SUBMIT = STRING1 ; - public static final String TYPE_RESULT = STRING2 ; - private String type ; private String title ; private Strin...
Moved static final variables to Form class
<nb> public class SearchPreferenceTests extends ElasticsearchIntegrationTest { client ( ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForStatus ( ClusterHealthStatus . RED ) . execute ( ) . actionGet ( ) ; String [ ] preferences = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ; for...
Add more logging to SearchPreferenceTests so that we can know which preference is failing
<nb> final class ActivityStack { int numActivities = NUMBER0 ; int numRunning = NUMBER0 ; final ArrayList < ActivityRecord > activities = task . mActivities ; + if ( activities . isEmpty ( ) ) { + continue ; + } for ( int activityNdx = activities . size ( ) - NUMBER1 ; activityNdx >= NUMBER0 ; -- activity...
Do not fetch tasks that don t have activities
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PathKeyFileStore implements FileS...
speed up PathKeyFileStore by using SingleIncludePatternFileTree instead of DirectoryFileTree
<nb> public class QTestUtil { out . write ( line ) ; out . write ( STRING0 ) ; lastWasMasked = true ; + partialMaskWasMatched = false ; } } else { out . write ( line ) ;
Fix bug in QTestUtil where lines after a partial mask will not be masked Thomas Poepping reviewed by Sergey Shelukhin
<nb> public abstract class PackageManager { COMMENT COMMENT COMMENT + COMMENT COMMENT public abstract int getApplicationEnabledSetting ( String packageName ) ;
Document thrown IllegalArgumentException
<nb> import NAMESPACE ; COMMENT class ThreadExecutor implements Executor { - private static int CORE_POOL_SIZE = NUMBER0 ; - private static int MAX_POOL_SIZE = NUMBER1 ; - private static int KEEP_ALIVE_TIME = NUMBER2 ; - private static TimeUnit TIME_UNIT = TimeUnit . SECONDS ; - private static BlockingQ...
Add final modifiers to ThreadPoolConstants
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT <nb> public class IBeacon { protected Double runningAverageRssi = null ; COMMENT - COMMENT - COMMENT - protected static IBeaconDataFactory iBeaconDataFactory = n...
remove fields incorrectly pulled in merge
<nb> public class NotifyMyAndroidActionService implements ActionService , ManagedServi NotifyMyAndroid . defaultPriotiy = Integer . parseInt ( ( String ) config . get ( PARAM_KEY_DEFAULT_PRIORITY ) ) ; } catch ( NumberFormatException e ) { - throw new ConfigurationException ( PARAM_KEY_DEFAULT_PRIORITY , REASON...
removed another ConfigurationException which i overlooked in Till s fix
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Added missing copyright header on CursorException
<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 CodeInsightSettings implements PersistentStateComponent < E...
WI surround seelction when quote typed made an option and is off by default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - public class CleanupListener implements ServletContextListener { private static final Logger logger = LoggerFactory . getLogger ( CleanupListener . class ) ; <nb> public class CleanupListener implements ServletContext...
add support for MariaDB in CleanupListener
<nb> public interface RBatch { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT - List < ? > execute ( ) ; + List < ? > execute ( ) throws RedisException ; COMMENT COMMENT
throws RedisException for RBatch execute method
<nb> public class MetaBroadcasterTest { assertEquals ( MetaBroadcaster . getDefault ( ) . broadcastTo ( STRING0 , STRING1 ) . get ( ) . size ( ) , NUMBER0 ) ; } + + @ test + public void chatTest ( ) throws ExecutionException , InterruptedException { + factory . get ( STRING2 ) ; + factory . get ( STRING...
Add a small test
<nb> class WindowStateAnimator { if ( appTransformation != null ) { tmpMatrix . postConcat ( appTransformation . getMatrix ( ) ) ; } - if ( screenAnimation ) { - tmpMatrix . postConcat ( screenRotationAnimation . getEnterTransformation ( ) . getMatrix ( ) ) ; - } + SINGLE SINGLE - SINGLE + SINGLE ...
Fix screen rotation animation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class IssuesFinderSort { private List < IssueDto > issues ; private IssueQuery query ; - public IssuesFinderSort ( List < IssueDto > issues , @ non...
Fix quality flaw
<nb> public class BatchOperationService { for ( Map . Entry < String , List < String > > header : httpHeaders . getRequestHeaders ( ) . entrySet ( ) ) { + final String key = header . getKey ( ) ; final List < String > value = header . getValue ( ) ; if ( value == null ) continue ; if ( value . size ( ) !=...
Set the Accept and Content Type to application json explicitly
<nb> public class KeyguardHostView extends KeyguardViewBase { @ override protected void onFinishInflate ( ) { + mViewStateManager = new KeyguardViewStateManager ( ) ; + SINGLE SINGLE mAppWidgetContainer = ( KeyguardWidgetPager ) findViewById ( R . id . app_widget_container ) ; <nb> public class Keygua...
Fix crash on boot
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import...
cleanup remove unused imports
<nb> public abstract class BroadcasterFactory { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public synchronized static BroadcasterFactory getDefault ( ) { return factory ;
Fix wrong link
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PyIntroduceConstantHandler extends IntroduceHandler { protected Collection < String > generateSuggestedNames ( @ notnull final PyExpression expression ) { Col...
reduced usages of StringUtilRt
<nb> public final class SctpPayload { this . payloadBuffer = payloadBuffer ; } - public int getstreamIdentifier ( ) { + public int getStreamIdentifier ( ) { return streamIdentifier ; } <nb> final class SctpSendBufferPool { private final SendBuffer acquire ( SctpPayload message ) { final ChannelB...
fixed a typo in a getter method
<nb> public class CommentActions { } else { SINGLE - Blog blog = WordPress . getBlog ( accountId ) ; CommentTable . updateCommentStatus ( blog . getLocalTableBlogId ( ) , comment . commentID , CommentStatus . toString ( CommentStatus . TRASH ) ) ; } <nb> public class CommentActions { } else { SING...
deleted unnecessary call to WordPress getBlog as per nbradbury code review comment
<nb> public class JulLogger implements Logger { logger . log ( Level . FINE , String . format ( msg , msgArgs ) , t ) ; } - public void FINE ( String msg , Object . . . msgArgs ) { + public void info ( String msg , Object . . . msgArgs ) { logger . log ( Level . FINE , msg , msgArgs ) ; } - public voi...
Don t change the log level was for debugging purpose only
<nb> public class DomainXml extends CommonXml { writer . writeEndElement ( ) ; } if ( modelNode . hasDefined ( SYSTEM_PROPERTIES ) ) { - writeProperties ( writer , modelNode , Element . SYSTEM_PROPERTIES ) ; + writeProperties ( writer , modelNode . get ( SYSTEM_PROPERTIES ) , Element . SYSTEM_PROPERTIES ) ; ...
Fix domain xml marshalling bugs
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass { clusterIds = OArrays . copyOf ( clusterIds , clusterIds . length + NUMBER0 ) ; clusterIds [ clusterIds . length - NUMBER0 ] = iId ; Arrays . sort ( clusterIds ) ; + + polymorphicClusterIds = OArrays . copyOf ( polymorphicClusterI...
Fixed bug on polymorphic ids
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MessageTest { assertTrue ( message . hasField ( STRING0 ) ) ; } + + @ test + public void testDateConvertedToDateTime ( ) { + final M...
add test for Date vs DateTime timestamp field in Message
<nb> public class CameraBinderDecorator { COMMENT COMMENT if ( errorFlag < NUMBER0 ) { - throw new UnsupportedOperationException ( String . format ( STRING0 , - errorFlag ) ) ; + throw new CameraRuntimeException ( CAMERA_ERROR , + String . format ( STRING1 , errorFlag ) ) ; } }
Do not throw unexpected runtime exception to app
<nb> public class Utility Log . w ( K9 . LOG_TAG , STRING0 + fromDir . getAbsolutePath ( ) ) ; } } - COMMENT - COMMENT - COMMENT - COMMENT - private static final String IMG_SRC_REGEX = STRING1 ; - private static final Pattern mImgPattern = Pattern . compile ( IMG_SRC_REGEX ) ; + private static f...
Fix javadoc make constant all caps
<nb> public enum Environment { if ( loadedLocation != null && loadedLocation . getPath ( ) . contains ( STRING0 ) ) { return true ; } + SINGLE + if ( loadedLocation != null && loadedLocation . getPath ( ) . contains ( STRING1 ) ) { + return true ; + } return false ; - } COMMENT
Extend test in isWarDeployed to work with weblogic
<nb> public class AnalyticsTrackerNosara extends Tracker { eventName = STRING0 ; break ; case LOGIN_MAGIC_LINK_EXITED : - eventName = STRING1 ; + eventName = STRING2 ; break ; case LOGIN_MAGIC_LINK_FAILED : - eventName = STRING3 ; + eventName = STRING4 ; break ; case LOGIN_MAGIC_LINK_OPENED : - ...
Fixing typo for magic links
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe } if ( config . handlers ( ) . isEmpty ( ) ) { - logger . error ( STRING0 ) ; - throw new AtmosphereMappingException ( STRING0 ) ; + logger . error ( STRING1 ) ; + throw new AtmosphereMappingException ( STRING1 ) ; }...
Improve error message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpClientRouteTest extends ServletCamelRouterTestSupport { } } ) ; fail ( STRING0 ) ; - } catch ( Exception ex ) { -...
Avoid starting services to soon during CamelContext startup that can trigger circular dependencies issue with Spring and similar IoC frameworks
<nb> public class MavenRootModelAdapter { String child = under ? excludedUrl : url . getUrl ( ) ; if ( VfsUtilCore . isEqualOrAncestor ( ancestor , child ) ) { - if ( excludedUrl . equals ( getCompilerExtension ( ) . getCompilerOutputUrl ( ) ) || excludedUrl . equals ( getCompilerExtension ( ) . getCompilerOutp...
don t create synthetic entries for excluded output folders fixed importing excluded roots from Maven
<nb> public class Facebook { setLoginBehavior ( behavior ) . setRequestCode ( activityCode ) . setPermissions ( Arrays . asList ( permissions ) ) ; - pendingOpeningSession . openForPublish ( openRequest ) ; + openSession ( pendingOpeningSession , openRequest , pendingAuthorizationPermissions . length > NUMBER...
Fix open bug in Facebook
<nb> public class NotificationsPendingDraftsService extends Service { private void buildNotificationWithIntent ( String message , long postId , boolean isPage ) { NotificationCompat . Builder builder = NativeNotificationsUtils . getBuilder ( this ) ; - builder . setPriority ( NotificationCompat . PRIORITY_MAX )...
setting notification content text otherwise it would only show the title when collapsed
<nb> public abstract class MixinMinecraftServer implements Server , ConsoleSource , Sub @ override public Optional < World > loadWorld ( String worldName ) { + final Optional < World > optExisting = getWorld ( worldName ) ; + if ( optExisting . isPresent ( ) ) { + return optExisting ; + } + File file ...
Immediately return existing world if any
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IntermediatePointsDialog { } final List < String > names = targets . getIntermediatePointNamesWithTarget ( ) ; final boolean [ ] checkedIntermediates = new bo...
Fix intermediate points dialog
<nb> public class ServiceModule extends AbstractModule { } @ override protected void configure ( ) { - SINGLE + SINGLE BouncyCastle . require ( ) ; bind ( Clock . class ) . toInstance ( Clock . systemUTC ( ) ) ;
Remove BKS comment no longer used
<nb> public class ClearCaseRepository extends Repository { } List < String > cmd = new ArrayList < String > ( ) ; + cmd . add ( getCommand ( ) ) ; cmd . add ( STRING0 ) ; if ( file . isDirectory ( ) ) { cmd . add ( STRING1 ) ;
Add the cleartool command
<nb> public class MainActivity extends AppCompatActivity implements ActionMode . Callba StickyRecyclerHeadersDecoration headersDecor = new StickyRecyclerHeadersDecoration ( simpleRecyclerViewAdapter ) ; ultimateRecyclerView . addItemDecoration ( headersDecor ) ; - + SINGLE + SINGLE ultimateRecyclerView . ...
update demo for new setEmptyView
<nb> public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex } } - renderer . resetGLObjects ( ) ; logger . log ( Level . INFO , STRING0 ) ; SINGLE renderable . set ( true ) ; createContext ( settings ) ; + + SINGLE + renderer . resetGLObjects ( ) ; logger . log ( Le...
Fix NPE in LwjglCanvas restoreCanvas
<nb> public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest { protected Settings nodeSettings ( int nodeOrdinal ) { return ImmutableSettings . builder ( ) . put ( super . nodeSettings ( nodeOrdinal ) ) - . put ( STRING0 , createTempDir ( ) ) . put ( STRING1 + PluginsService . LOAD_PLUGIN_F...
Don t set path home for integration test
<nb> public class Omega { Arrays . fill ( yRow , NUMBER0 ) ; if ( ! aRow . isDense ( ) ) { - int j = NUMBER0 ; for ( Element el : aRow ) { - accumDots ( j , el . get ( ) , yRow ) ; - j ++ ; + accumDots ( el . index ( ) , el . get ( ) , yRow ) ; } } else {
fixing a row multiplication for sparse input
<nb> import NAMESPACE ; public interface MavenUploader extends DependencyResolver { String DEFAULT_ARTIFACT_POM_NAME = STRING0 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT RemoteRepository getRepository ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT void setRe...
Added some missing javadoc
<nb> public class ContextAndHeaderTransportIT extends ESIntegTestCase { restController . registerRelevantHeaders ( relevantHeaderName ) ; } - try ( ElasticsearchResponse response = getRestClient ( ) . performRequest ( STRING0 , STRING1 + queryIndex + STRING2 , Collections . emptyMap ( ) , null , + try ( Elast...
TEST create standard RestClient at first request and reuse it
<nb> public class ThreadRenamingRunnable implements Runnable { try { currentThread . setName ( threadName ) ; renamed = true ; - } catch ( Exception e ) { + } catch ( SecurityException e ) { SINGLE }
Reduced too broad catch block
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class FakeHttpLayer { List < HttpResponse > pendingHttpResponses = new ArrayList < HttpResponse > ( ) ; <nb> public class FakeHttpLayer { return request . getRequestLine ( ) . getUri ( ) . equa...
add regex matcher for URIs
<nb> public class GlfwJoystickInput implements JoyInput { @ override public Joystick [ ] loadJoysticks ( final InputManager inputManager ) { - SINGLE - for ( int i = NUMBER0 ; i < GLFW_JOYSTICK_LAST ; i ++ ) { if ( glfwJoystickPresent ( i ) == GL11 . GL_TRUE ) { final String name = glfwGetJoystickName (...
Removed a TODO note and added key count implementation rough for now
<nb> public class ASTWrapperPsiElement extends PsiElementBase { List < PsiElement > result = new ArrayList < PsiElement > ( ) ; ASTNode child = getNode ( ) . getFirstChildNode ( ) ; while ( child != null ) { - if ( child instanceof CompositeElement ) { + SINGLE result . add ( child . getPsi ( ) ) ; - } ...
fixed issue with finding duplicates
<nb> public class XmlElementFactoryImpl extends XmlElementFactory { XmlTag tag = document . getRootTag ( ) ; assert tag != null ; XmlAttribute [ ] attributes = tag . getAttributes ( ) ; - LOG . assertTrue ( attributes . length == NUMBER0 , tag . getText ( ) ) ; + LOG . assertTrue ( attributes . length == NUMB...
Add extra logging
<nb> public class WebAuthenticationDetails implements SessionIdentifierAware , return sessionId ; } + public int hashCode ( ) { + int code = NUMBER0 ; + + if ( this . remoteAddress != null ) { + code = code * ( this . remoteAddress . hashCode ( ) % NUMBER1 ) ; + } + + if ( this . sessionId != null...
Add hashCode method
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrailsConsole { . fg ( DEFAULT ) ; } + public String userInput ( String message , List < String > validResponses ) { + return userInput ...
added convenience overload of userInput that takes List String to make it easier for scripts
<nb> public class CommandLineUtil { } if ( VERBOSE_COMMAND_LINE_MODE ) { - return StringUtil . firstLast ( execName + STRING0 + StringUtil . join ( args , STRING0 ) , NUMBER0 ) ; + return StringUtil . shortenPathWithEllipsis ( execName + STRING0 + StringUtil . join ( args , STRING0 ) , NUMBER0 ) ; } ret...
do not show weird symbols in console
<nb> import NAMESPACE ; @ table ( name = STRING0 ) public final class Rule { + private final static RulesCategory NONE = new RulesCategory ( STRING1 ) ; + @ id @ column ( name = STRING2 ) @ generatedvalue <nb> public final class Rule { COMMENT @ deprecated public RulesCategory getRulesCategory (...
Rule getRulesCategory must return a fake category instead of null
<nb> package NAMESPACE ; COMMENT COMMENT public class ToroTaskExecutionException extends Exception { + private static final long serialVersionUID = NUMBER0 ; public ToroTaskExecutionException ( ) { }
torod core Added seriaVersionUID
<nb> public class OCommandExecutorSQLCreateEdgeTest { public void testEdgeConstraints ( ) { db . command ( new OCommandScript ( STRING0 , STRING1 + STRING2 + STRING3 - + STRING4 + STRING5 + STRING6 - + STRING7 + STRING8 + STRING9 - + STRING10 + STRING11 + STRING12 - + STRING13 + STRING14 + STRING15 - + ...
fixed wrong syntax for mandatory test on create edge test
<nb> public class EngineRuleSet extends RuleSetBase { STRING0 , STRING1 ) ; digester . addSetProperties ( prefix + STRING2 ) ; - digester . addRule ( prefix + STRING2 , - new LifecycleListenerRule - ( STRING3 , - STRING4 ) ) ; digester . addSetNext ( prefix + STRING2 , STRING5 , STRING6 ) ; <nb> p...
Remove unnecessary digester configuration
<nb> public class BdbEnvironmentStats { getNumReadsTotal ( ) + getNumWritesTotal ( ) ) ; } + @ jmxgetter ( name = STRING0 ) + public double getPercentageContended ( ) { + return safeGetPercentage ( getNumAcquiredWithContention ( ) , getNumAcquireNoWaiters ( ) ) ; + } + public static double safeGetPerc...
Add percentage contended
<nb> public class RNTN implements Layer { computeGradientAndScore ( ) ; } + @ override + public void applyLearningRateScoreDecay ( ) { + + } + public int getNumParameters ( ) { if ( numParameters < NUMBER0 ) { int totalSize = NUMBER0 ;
Added applyLR to RNTN
<nb> public class OracleDatabase extends AbstractJdbcDatabase { } } catch ( SQLException e ) { String message = STRING0 + e . getMessage ( ) ; - LogFactory . getLogger ( ) . info ( STRING1 + message ) ; + LogFactory . getLogger ( ) . info ( STRING2 + message ) ; } finally { JdbcUtils . close ( resultSet ,...
Improved compatibility check failed error message
<nb> public abstract class AbstractChartView extends View implements Chart { this . touchHandler . resetTouchHandler ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ override public boolean canScrollHorizontally ( int direction ) { if ( getZoomLevel (...
added doc on the canScrollHorizontally method
<nb> mainLoop : sentenceBuilder . delete ( NUMBER0 , sentenceBuilder . length ( ) ) ; ++ sentenceCounter ; storedWordCounter = wordCounter ; + lineIsNonEmpty = false ; + appendLineBreak = true ; } - lineIsNonEmpty = false ; - appendLineBreak = true ; } final ZLTextElement element = cursor . getEleme...
fixed bookmark text
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Banner extends NonOpaquePanel implements PropertyChangeListener { public ...
Change color or background for Set from
<nb> public class AtmosphereFilter implements ResourceFilterFactory { } boolean outputJunk ( AtmosphereResource r , boolean outputJunk ) { - if ( ! r . transport ( ) . equals ( AtmosphereResource . TRANSPORT . STREAMING ) ) { + if ( outputJunk && ! r . transport ( ) . equals ( AtmosphereResource . TRANSPORT ....
Fix another regression
<nb> public abstract class ResponseBody implements Closeable { public abstract BufferedSource source ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public final byte [ ] bytes ( ) throws IOException { long contentLength = contentLength ( ) ; if ( contentLength > In...
Clarify behavior of ResponseBody string in its javadoc
<nb> public final class Settings { @ sdkconstant ( SdkConstantType . ACTIVITY_INTENT_ACTION ) public static final String ACTION_ZEN_MODE_SETTINGS = STRING0 ; + COMMENT + @ sdkconstant ( SdkConstantType . ACTIVITY_INTENT_ACTION ) + public static final String + ACTION_SHOW_REGULATORY_INFO = STRING1 ; + ...
Define action used to show regulatory info
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DxStep extends ShellStep { SINGLE SINGLE - Preconditions . checkState ( argv . get ( NUMBER0 ) . endsWith ( STRING0 ) || argv . get ( NUMB...
Fix dx checking on Windows
<nb> public abstract class AShader extends AShaderBase { public ShaderVar castVec3 ( ShaderVar x , ShaderVar y , ShaderVar z ) { - ShaderVar v = new ShaderVar ( STRING0 + x . getName ( ) + STRING1 + y . getName ( ) + STRING1 + z . getName ( ) + STRING2 , DataType . VEC3 ) ; + ShaderVar v = new ShaderVar ( Dat...
Corrected castVec3 method to set value instead of name
<nb> import NAMESPACE ; @ retention ( RetentionPolicy . SOURCE ) public @ interface Getter { COMMENT - COMMENT + COMMENT COMMENT lombok . AccessLevel value ( ) default lombok . AccessLevel . PUBLIC ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT CO...
Fixed two minor javadoc typos in Getter and Value
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public abstract class JsContext < T extends JsNode > { public < R extends T > void addPrevious ( R node ) { - throw new NotImplementedException ( ) ; + throw new UnsupportedOperationExce...
Don t use private Sun API in JsContext
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SimpleDaoTest extends DaoCase { assertEquals ( NUMBER0 , dao . count ( Pet . class ) ) ; assertEquals ( NUMBER0 , dao . clear ( Pet . class ) ...
add test for chain insert
<nb> public class SqlStageExecution } else if ( currentState != StageState . PLANNED && currentState != StageState . SCHEDULING ) { SINGLE - if ( all ( taskStates , TaskState . inDoneState ( ) ) ) { + if ( all ( taskStates , TaskState : : isDone ) ) { stageState . set ( StageState . FINISHED ) ; } else ...
Remove predicate function from TaskState
<nb> public class ZoomPanLayout extends ViewGroup implements for ( int i = NUMBER0 ; i < getChildCount ( ) ; i ++ ) { View child = getChildAt ( i ) ; if ( child . getVisibility ( ) != GONE ) { - child . layout ( NUMBER0 , NUMBER0 , mScaledWidth - NUMBER1 , mScaledHeight - NUMBER1 ) ; + child . layout ( NUMBER...
removing debug artifact
<nb> import NAMESPACE ; public class Text extends BinaryComparable implements WritableComparable < BinaryComparable > { - static final int SHORT_STRING_MAX = NUMBER0 * NUMBER0 ; - private static ThreadLocal < CharsetEncoder > ENCODER_FACTORY = new ThreadLocal < CharsetEncoder > ( ) { protected CharsetEn...
Remove SHORT_STRING_MAX left out of the previous commit
<nb> public class Graph implements Serializable { public boolean hasScheduledService = false ; COMMENT - public transient TripTimeSubsetCache tripTimeSubsetCache = new TripTimeSubsetCache ( this ) ; + public transient TripTimeSubsetCache tripTimeSubsetCache ; public Graph ( Graph basedOn ) { this ( ) ; ...
properly initialize TripTimeSubsetCache when graph is deserialized
<nb> public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener protected void printStaticFieldSetter ( IVariableBinding var ) { String fieldName = NameTable . getStaticVarQualifiedName ( var ) ; String paramName = NameTable . getName ( var ) ; - printf ( STRING0 , staticFieldSetterSignatu...
Fix static setters for ARC
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class StringUtils { return string != null && ( prefix == null || string . startsWith ( prefix ) ) ; } + COMMENT + COMMENT + COMMENT ...
Added StringUtils repeat
<nb> public class DeepLearningTest extends TestUtil { Vec resp = tfr . vec ( s ) . toEnum ( ) ; tfr . remove ( s ) . remove ( ) ; tfr . add ( s , resp ) ; + DKV . put ( tfr ) ; } DeepLearningParameters parms = new DeepLearningParameters ( ) ; parms . _train = tfr . _key ;
Fix JUnit for instability detection
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removing unused import
<nb> public class RemoteImageLoaderTextViewAdapter extends RemoteImageLoaderViewAdapt } private void setCompoundDrawable ( Drawable drawable ) { + DisplayMetrics metrics = new DisplayMetrics ( ) ; + ( ( WindowManager ) view . getContext ( ) . getSystemService ( Context . WINDOW_SERVICE ) ) + . getDefaultDis...
Fixed wrong scaling of compound drawables
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; COMMENT COMMENT public class BufferPoolMetricSet implements MetricSet { + private static final Logger...
Log debug error with buffer pool loading
<nb> class TagFileProcessor { compiler . getCompilationContext ( ) . getTldLocation ( tagInfo . getTagLibrary ( ) . getURI ( ) ) [ NUMBER0 ] + STRING0 ) ; } catch ( MalformedURLException e ) { - e . printStackTrace ( ) ; + SINGLE } } String tagFileJarPath ;
Remove e printStackTrace
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class PrestoS3FileSystem return new LocatedFileStatus ( status , fakeLocati...
Fix static import warning in PrestoS3FileSystem
<nb> public final class PreferenceScreen extends PreferenceGroup implements AdapterVi SINGLE final CharSequence title = getTitle ( ) ; - Dialog dialog = mDialog = new Dialog ( context , ! TextUtils . isEmpty ( title ) + Dialog dialog = mDialog = new Dialog ( context , TextUtils . isEmpty ( title ) ? com . a...
Fix the nested preferences title
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT + COMMENT COMMENT public class ExecuteQueryPersistentMethod extends AbstractStaticPersistentMethod {
replace link with see
<nb> public class JUnit38ClassRunnerTest { public static class RejectAllFilter extends Filter { @ override public boolean shouldRun ( Description description ) { - return false ; + if ( description . isTest ( ) ) { + return false ; + } + return true ; } @ override
Change RejectAllTestsFilter to only reject atomic tests