diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class HdfsBlueprintRouteTest extends OSGiBlueprintTestSupport { return ; } + SINGLE + if ( isPlatform ( STRING0 ) ) { + return ; + } + + getInstalledBundle ( STRING1 ) . start ( ) ; CamelContext ctx = getOsgiService ( CamelContext . class , STRING2 , NUMBER0 ) ;
Skip test on windows
<nb> public class RoboGuice { private RoboGuice ( ) { } - public static Injector getInjector ( Application context ) { + public static Injector getInjector ( Application context ) { + return getInjector ( Stage . PRODUCTION , context ) ; + } + + public static Injector getInjector ( Stage stage , Appli...
allow user to override stage
<nb> public class Analytics extends BaseModule { } public void trackAuthCodeType ( String newValue ) { - track ( STRING0 + newValue ) ; + track ( STRING1 , STRING2 , newValue ) ; } public void trackAuthCodeWrongNumber ( ) { <nb> public class Analytics extends BaseModule { } public void trackAuth...
Fixed analytics type messages
<nb> public class LangFunctions extends FunctionsContainer { Thread . sleep ( microsec / NUMBER0 ) ; } + public static boolean time_nanosleep ( long second , int nanosecond ) throws InterruptedException { + Thread . sleep ( second * NUMBER0 , nanosecond ) ; + return true ; + } + public static Memory c...
Implement time_nanosleep function
<nb> public class ClassDataItem extends Item < ClassDataItem > { out . annotate ( STRING0 ) ; out . writeUnsignedLeb128 ( accessFlags ) ; out . annotate ( STRING1 ) ; - out . writeUnsignedLeb128 ( codeItem == null ? NUMBER0 : codeItem . getIndex ( ) ) ; + out . writeUnsignedLeb128 ( codeItem == null ? NUMBER0...
use the offset for the CodeItem not the index
<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab } } else { if ( ! WebSocketStreamingHandler . class . isAssignableFrom ( webSocketHandler . getClass ( ) ) ) { + AtmosphereResource r = webSocket . resource ( ) ; try { webSocketHandler . onTextMessage ( webSocket , webSo...
Prevent NPE for text message as well
<nb> public class UnassignedInfo implements ToXContent , Writeable < UnassignedInfo > { public static final FormatDateTimeFormatter DATE_TIME_FORMATTER = Joda . forPattern ( STRING0 ) ; public static final String INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING = STRING1 ; - public static final TimeValue DEFAULT_DELAYED...
TEST Use the correct renamed setting
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ deprecated public class DistributedLanczosSolver extends LanczosSolver implements Tool { public static final String RAW_EIGENVECTORS = STRING0 ;
Accidentally committed a change that should not have gone in
<nb> public class JavaBeanDeserializer implements ObjectDeserializer { if ( object == null ) { if ( fieldValues == null ) { object = createInstance ( parser , type ) ; + if ( childContext == null ) { + childContext = parser . setContext ( context , object , fieldName ) ; + } return ( T ) object ; } ...
bug fixed add testcase
<nb> public class NeuralNetConfiguration implements Serializable , Cloneable { COMMENT protected double l2 = NUMBER0 ; protected boolean useRegularization = false ; - protected Updater updater = Updater . NONE ; + protected Updater updater = Updater . ADAGRAD ; private String customLossFunction ; SINGLE ...
Change default gradient updater back to Adagrad
<nb> public class TestContextManager { COMMENT COMMENT COMMENT - protected final TestContext getTestContext ( ) { + public final TestContext getTestContext ( ) { return this . testContext ; }
Make TestContextManager getTestContext public
<nb> import NAMESPACE import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT @ configuration <nb> public class UserInfoRestTemplateConfiguration { return new OAuth2RestTemplate ( details , this . oauth2ClientContext ) ; } - } + }
Fix stupid checkstyle violations
<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 NAMESPAC...
removed unused import
<nb> public abstract class XFetchValueActionBase extends AnAction { if ( node instanceof XValueNodeImpl ) { XValueNodeImpl valueNode = ( XValueNodeImpl ) node ; XFullValueEvaluator fullValueEvaluator = valueNode . getFullValueEvaluator ( ) ; - if ( fullValueEvaluator == null ) { + if ( fullValueEvaluator == n...
do not execute image render on value copy
<nb> public class MavenServerManager extends RemoteObjectWrapper < MavenServer > impleme @ attribute public String embedderJdk = MavenRunnerSettings . USE_INTERNAL_JAVA ; @ attribute - public String mavenHome ; + public String mavenHome = BUNDLED_MAVEN_3 ; @ attribute public MavenExecutionOptions . Loggin...
set default maven home for maven server
<nb> public final class StructureFieldOrderInspector { . setUrls ( ClasspathHelper . forClass ( classDeclaredInSourceTreeToSearch ) ) ) ; - return ( Set < Class < ? extends Structure > > ) reflections . getSubTypesOf ( Structure . class ) ; + return reflections . getSubTypesOf ( Structure . class ) ; }
remove unneeded cast
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMEN...
Change super setProperty to use super set type Property in example comments
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class MongoConnectionProvider implements Provider < MongoConnection > { + private static final Logger LOG = LoggerFactory . getLo...
Log error message if there is a MongoDB connection error
<nb> public class BlockDataManager { SINGLE public String createBlock ( long userId , long blockId , int tierAlias , long initialBytes ) throws IOException , OutOfSpaceException { - BlockStoreLocation loc = BlockStoreLocation . anyDirInTier ( tierAlias ) ; + BlockStoreLocation loc = + tierAlias == - NUMBER0...
Add an option to specify any tier dir in create block
<nb> public class ShadowMapView extends ShadowViewGroup { private Point lastTouchEventPoint ; private GeoPoint mouseDownCenter ; public boolean preLoadWasCalled ; + public boolean canCoverCenter = true ; public ShadowMapView ( MapView mapView ) { realMapView = mapView ; <nb> public class ShadowMapView e...
Added canCoverCenter to MapView
<nb> public class BoolQueryBuilder extends BaseQueryBuilder implements BoostableQuery } COMMENT - COMMENT + COMMENT COMMENT public BoolQueryBuilder disableCoord ( boolean disableCoord ) { this . disableCoord = disableCoord ;
DOCS fix typo in BoolQueryBuilder javadocs
<nb> class ActivityStarter { } intentActivity . deliverNewIntentLocked ( mCallingUid , mStartActivity . intent , mStartActivity . launchedFromPackage ) ; - } else if ( ! mStartActivity . intent . filterEquals ( intentActivity . task . intent ) ) { + } else if ( ! mStartActivity . intent . filterEquals ( inten...
Fix issue with activity reuse for aliased components
<nb> public class EditorFooter extends Box { Color [ ] tabColor = new Color [ NUMBER0 ] ; Color updateColor ; - int updateLeft , updateRight ; + int updateLeft ; Editor editor ; <nb> public class EditorFooter extends Box { repaint ( ) ; } } - if ( x > updateLeft ) { + if ( updateCount > NUMB...
only do update click when there are updates available
<nb> public class Parser { } SINGLE + SINGLE + SINGLE + + else if ( lt ( ) == Token . KEYWORD_SYNCHRONIZED && lt ( NUMBER0 ) == Token . LEFT_PARENTHESIS ) { + result = synchronizedStatement ( ) ; + } + + SINGLE SINGLE SINGLE
Added support for synchronized blocks as top level code
<nb> public class CreateTableStatement extends SchemaAlteringStatement { SINGLE if ( ! columnFamily ( ) . matches ( STRING0 ) ) - throw new InvalidRequestException ( String . format ( STRING1 , columnFamily ( ) ) ) ; + throw new InvalidRequestException ( String . format ( STRING2 , columnFamily ( ) ) ) ; if...
Fix typo in CREATE TABLE error message
<nb> public abstract class ProtoAdapter < E > { } } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ suppresswarnings ( STRING0 ) - static ProtoAdapter < ? > get ( String adapterString ) { + public static ProtoAdapter < ? > get ( String adapterString ) { try { int hash = adapterString . ind...
Make ProtoAdapter get String public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StateEditor { . error ( STRING0 ) ; defectiveTraversal = true ; } - if ( parent . stateData . noThruTrafficState == NoThruTrafficState . I...
really support trips starting in no thru traffic zones
<nb> public class XaLogicalLog } if ( ! keepLogs || backupSlave ) { - deleteCurrentLogFile ( fileName + STRING0 + currentLog ) ; + if ( currentLog == CLEAN ) + { + SINGLE + SINGLE + deleteCurrentLogFile ( fileName ) ; + } + else + { + deleteCurrentLogFile ( fileName + STRING0 + currentLog ) ; ...
Added code to handle special case starting on a logical log from old version of xa framework
<nb> public class OperationSetBasicInstantMessagingJabberImpl SINGLE SINGLE - SINGLE + subscribeForGmailNotifications ( ) ; SINGLE <nb> public class OperationSetBasicInstantMessagingJabberImpl maximumSndrsAllowed , unreadSenderCount ) ; int maximumReadAllowed = maximumSndrsAllowed - maximumUnreadA...
Adds code for html generation upon new mail notifications from Google
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class TestResultsPanel extends JPanel implements Disp...
remove top separator in test panel
<nb> public abstract class Migration SINGLE MigrationManager . announce ( newVersion , Gossiper . instance . getLiveMembers ( ) ) ; - SINGLE - Gossiper . instance . addLocalApplicationState ( ApplicationState . SCHEMA , StorageService . valueFactory . migration ( newVersion ) ) ; } public static UUID ge...
Always put schema state in local gossip
<nb> public class TestTreeRenderer extends ColoredTreeCellRenderer { TestsPresentationUtil . formatTestProxy ( testProxy , this ) ; } - String durationString = testProxy . getDurationString ( myConsoleProperties ) ; - if ( durationString != null ) { - durationString = STRING0 + durationString ; - myDurati...
hide statistics from row extender according to selection mode
<nb> public class PubSubEngine { public void shutdown ( PubSubService service ) { PubSubPersistenceManager . shutdown ( ) ; - SINGLE - service . getManager ( ) . stop ( ) ; - - SINGLE - service . getNodes ( ) . clear ( ) ; SINGLE - + if ( service != null ) { + + if ( service . getManager ( ) != ...
Fix NPE PubSub during shutdown
<nb> public abstract class Renderer < T > implements Cloneable { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class Renderer < T > implements Cloneable { COMMENT COMMENT COMMENT - View getRootView ( ) { + public View getRootView ( ) { return rootVi...
Change getRootView visibility to improve testability
<nb> public class OSystemVariableResolver implements OVariableParserListener { } public static void setEnv ( final String name , String value ) { - final Map < String , String > map = new HashMap < String , String > ( NUMBER0 ) ; + final Map < String , String > map = new HashMap < String , String > ( System ....
Fixed issue caused by my last fix on security
<nb> public final class AnalyticsTracker { SUPPORT_OPENED_HELPSHIFT_SCREEN , SUPPORT_SENT_REPLY_TO_SUPPORT_MESSAGE , LOGIN_FAILED , - LOGIN_FAILED_TO_GUESS_XMLRPC + LOGIN_FAILED_TO_GUESS_XMLRPC , + SETTINGS_LANGUAGE_SELECTION_FORCED , } public interface Tracker { <nb> public class AnalyticsTrackerMi...
add an event to track when users selecet a different language than the device default
<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 ; import ...
Invalidate packages cache on changing build tags settings
<nb> public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { } } this . deviceIds . put ( jid , deviceIds ) ; + mXmppConnectionService . updateConversationUi ( ) ; SINGLE mXmppConnectionService . keyStatusUpdated ( null ) ; }
update the conversations view and the lock icon after receiving device list
<nb> public abstract class SocketWrapperBase < E > { private final Lock blockingStatusReadLock ; private final WriteLock blockingStatusWriteLock ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - private final Object writeThreadLock = new Object ( ) ; - COMME...
Remove unused code
<nb> import NAMESPACE ; COMMENT public class SgSyncService extends Service { - private static final Object sSyncAdapterLock = new Object ( ) ; - private SgSyncAdapter sSyncAdapter ; + private static final Object syncAdapterLock = new Object ( ) ; + private static SgSyncAdapter syncAdapter = null ; @ o...
Hold sync adapter instance in a static field
<nb> import static NAMESPACE ; @ name ( SwingExtension . NAMESPACE + STRING0 ) public class UIForm extends UIWindow { + SINGLE + public final static int DO_NOTHING_ON_CLOSE = JFrameX . DO_NOTHING_ON_CLOSE ; + public final static int HIDE_ON_CLOSE = JFrameX . HIDE_ON_CLOSE ; + public final static int DISPO...
Add constants for setDefaultCloseOperation
<nb> public class Blog { public String getWordPressComHost ( ) { if ( WPUrlUtils . isWordPressCom ( getHomeURL ( ) ) ) { - return UrlUtils . getDomainFromUrl ( getHomeURL ( ) ) ; + return UrlUtils . getHost ( getHomeURL ( ) ) ; } else { - return UrlUtils . getDomainFromUrl ( getUrl ( ) ) ; + return UrlU...
Adding correct utility methods for finding the wordpress com domain name
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FileSystemMasterIntegrationTest { public static ManuallyScheduleHeartbeat sManuallySchedule = new ManuallyScheduleHeartbeat...
Set ttl for FileSystemMasterIntegrationTest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class SecurityExpressionRoot { } public final boolean hasRole ( String role ) { - return AuthorityUtils . userHasAuthority ( role ) ; + for ( GrantedAuthority authority : a...
Fix broken test which was failing due to use of incorrect authentication object
<nb> public class StatusCheckingUserDetailsServiceTests { } class MockUserDetailsService implements UserDetailsService { - private Map < String , UserDetails > users = new HashMap < String , UserDetails > ( ) ; + private Map users = new HashMap ( ) ; private GrantedAuthority [ ] auths = new GrantedAuthority...
Moved test class to correct source tree
<nb> public class PhoneStatusBar extends BaseStatusBar { } public void showCling ( ) { + SINGLE + final ViewStub stub = ( ViewStub ) mStatusBarWindow . findViewById ( R . id . status_bar_cling_stub ) ; + if ( stub == null ) { + mClingShown = true ; + return ; SINGLE + } + mSuppressStatusBarDrags =...
Fix NPE on devices without notification panel help clings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT
Remove accidental import
<nb> public class QueryResults } switch ( type ) { case STRING0 : + if ( value instanceof String ) { + return Long . parseLong ( ( String ) value ) ; + } return ( ( Number ) value ) . longValue ( ) ; case STRING1 : if ( value instanceof String ) { <nb> public class QueryResults } return ( ( Numb...
Fix fixValue to handle map keys correctly
<nb> public final class BluetoothAdapter { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix docs bug
<nb> public class DiffResult { change . setColumnName ( column . getName ( ) ) ; change . setColumnDataType ( targetTypeConverter . convertToDatabaseTypeString ( referenceColumn , targetSnapshot . getDatabase ( ) ) ) ; - changes . add ( generateChangeSet ( change ) ) ; + Object defaultValue = column . getDefa...
set default value for not null constraints
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean public static List < ColumnFamilyStore > allUserDefined ( ) { List < ColumnFamilyStore > cfses = new ArrayList < ColumnFamilyStore > ( ) ; - for ( Table table : Sets . difference ( ImmutableSet . copyOf ( Table . all ( ) ) , ImmutableSet . of...
Exclude all system related CFs from CFS allUserDefined
<nb> public final class JsonOperators return dynamicSliceOutput . slice ( ) ; } catch ( IOException e ) { - throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING0 , value , JSON ) ) ; + throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING1 , value , JSON ) ) ; } } <nb> pub...
Fix invalid format specific
<nb> public class ShadowResources { Attribute defStyleAttribute = getOverlayedThemeValue ( defStyleName , theme , overlayedStyles ) ; if ( defStyleAttribute != null ) { while ( defStyleAttribute . isStyleReference ( ) ) { - Attribute other = theme . getAttrValue ( defStyleAttribute . getStyleReference ( ) ) ; ...
Fix overlayed theme attribute lookup in ShadowResources
<nb> public class EllipsoidRegion extends AbstractRegion { public EllipsoidRegion ( LocalWorld world , Vector center , Vector radius ) { super ( world ) ; this . center = center ; - this . radius = radius ; + setRadius ( radius ) ; } public EllipsoidRegion ( EllipsoidRegion ellipsoidRegion ) { - this ...
EllipsoidRegion s constructor now takes radius not offset radius
<nb> public abstract class AbstractProtocol < S > implements ProtocolHandler , S socket = wrapper . getSocket ( ) ; Processor processor = connections . get ( socket ) ; - if ( status == SocketEvent . DISCONNECT && processor == null ) { + if ( ( status == SocketEvent . DISCONNECT || status == SocketEvent . ERR...
Fix loop observed during local testing
<nb> public class ScriptCodeDescriptor extends FunctionDescriptorImpl { public ScriptCodeDescriptor ( @ notnull ScriptDescriptor containingDeclaration ) { super ( containingDeclaration , null , Annotations . EMPTY , Name . special ( STRING0 ) , Kind . DECLARATION ) ; - setVisibility ( Visibilities . LOCAL ) ; ...
Fix visibility for main script function
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class CullTest implements ApplicationListener { + public class CullTest extends GdxTest implements ApplicationListener { public boolean needsGL20 ( ) { return false ;
fixed CullTest not extending GDXTest
<nb> class SelfHostedSiteSettings extends SiteSettingsInterface { credentialsVerified ( true ) ; deserializeOptionsResponse ( mRemoteSettings , ( Map ) result ) ; + + SINGLE + final Map < String , String > currentPostFormats = mSettings . postFormats ; + mSettings . copyFrom ( mRemoteSettings ) ; + ...
Protect postFormats in Selfhosted case as well
<nb> class PackageDexOptimizer { dexoptNeeded = adjustDexoptNeeded ( dexoptNeeded ) ; if ( dexoptNeeded == DexFile . NO_DEXOPT_NEEDED ) { - SINGLE - continue ; + if ( useProfiles ) { + SINGLE + SINGLE + dexoptNeeded = DexFile . DEX2OAT_NEEDED ; + } else { + SINGLE + continue ; + } } final ...
Fix useProfiles usage in PackageDexOptimizer
<nb> public class ConfiguredGZipEncoder implements WriterInterceptor , ClientRequestFi @ override public final void aroundWriteTo ( WriterInterceptorContext context ) throws IOException , WebApplicationException { - SINGLE String contentEncoding = ( String ) context . getHeaders ( ) . getFirst ( HttpHeaders ....
Removed untrue comment
<nb> import NAMESPACE ; public class FileReaderTestUtils { public static int getNumOpenFiles ( File f ) throws IOException { - Process plsof = new ProcessBuilder ( new String [ ] { STRING0 , STRING1 , STRING2 , f . getAbsolutePath ( ) } ) . start ( ) ; + Process plsof = new ProcessBuilder ( new String [ ] { S...
Fixing lsof issue
<nb> public class CoreActivator implements BundleActivator { } } catch ( HttpException he ) { - logger . debug ( STRING0 , he ) ; + logger . debug ( STRING0 , he . getMessage ( ) ) ; } catch ( IOException ioe ) { - logger . debug ( STRING1 , ioe ) ; + logger . debug ( STRING1 , ioe . getMessage ( ) ) ...
fixed logging statements
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FileWatcherTest extends PlatformLangTestCase { myAccept = true ; assertTrue ( FileUtil . delete ( topDir ) ) ; assertTrue...
Fix file watcher test
<nb> abstract public class ModelBuilderSchema < B extends ModelBuilder , S extends Model throw H2O . fail ( STRING0 + field_name + STRING1 + parameters + STRING2 + e . toString ( ) ) ; } + ab . putJSONStr ( STRING3 , job . toString ( ) ) ; + ab . put1 ( STRING4 ) ; ab . putJSONA ( STRING5 , metadata ) ; r...
add job to the ModelBuilderSchema
<nb> public class StatusBarUpdater { public void caretPositionChanged ( CaretEvent e ) { ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { public void run ( ) { - if ( ! myProject . isOpen ( ) ) return ; + if ( myProject . isDisposed ( ) ) return ; updateStatus ( ) ; } } ) ; <...
closed project fixes
<nb> public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean < Blu for ( String id : ids ) { sb . append ( STRING0 ) . append ( id ) . append ( STRING1 ) ; } - SINGLE - pc . setLocation ( sb . toString ( ) ) ; + if ( sb . length ( ) > NUMBER0 ) { + SINGLE + pc . setLocation ( sb . t...
Property placeholders using blueprint should avoid setting empty locations by default
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPA...
Table added getPadX Y
<nb> public class AggregateProcessor extends ServiceSupport implements Processor , Nav COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT private Exchange doAggregation ( String key , Exchange exchange ) throws CamelExchangeException { LOG . trace ( STRING0 , key ) ; <nb> public class Agg...
Aggregate EIP with only completion timeout condition will restore timeout map upon restart based on exchanges from aggregation repository
<nb> public class AccountTable { values . put ( STRING0 , account . getAboutMe ( ) ) ; values . put ( STRING1 , account . getNewEmail ( ) ) ; values . put ( STRING2 , account . getPendingEmailChange ( ) ) ; - values . put ( STRING3 , account . getPendingEmailChange ( ) ) ; + values . put ( STRING3 , account ....
Fixed an issue where the pending email change would be saved for web address
<nb> import NAMESPACE ; COMMENT COMMENT public interface Predicate < T > { + + COMMENT boolean evaluate ( T arg0 ) ; public class PredicateIterator < T > implements Iterator < T > {
added Javadoc for Predicate evaluate
<nb> public class Element extends BaseObj { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public enum DataType { NONE ( NUMBER0 , NUMBER0 ) ,
Fix doc bug for object size
<nb> public class HttpConnection extends AbstractConnection implements Runnable , Http @ override public String toString ( ) { - return String . format ( STRING0 , + return String . format ( STRING1 , super . toString ( ) , _parser , _generator ,
Fixing format error on toString
<nb> public class ViewPager extends ViewGroup { } } - populate ( newCurrItem ) ; + setCurrentItemInternal ( newCurrItem , false , true ) ; requestLayout ( ) ; } }
Fix a ViewPager bug repopulating after a data set change that removed
<nb> public class WindowAnimator { final int NEAT = mService . mExitingAppTokens . size ( ) ; for ( i = NUMBER0 ; i < NEAT ; i ++ ) { - final AppWindowAnimator appAnimator = mService . mAppTokens . get ( i ) . mAppAnimator ; + final AppWindowAnimator appAnimator = mService . mExitingAppTokens . get ( i ) . mA...
Fix failure to animate away exiting AppWindowToken
<nb> package NAMESPACE ; public class OConstants { public static final String ORIENT_VERSION = STRING0 ; - public static final String ORIENT_URL = STRING1 ; + public static final String ORIENT_URL = STRING2 ; public static final String COPYRIGHT = STRING3 ; public static String getVersion ( ) {
changed website to orientdb com
<nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask { @ notnull protected String output ( ) { - return XDebuggerTestUtil . getConsoleText ( ( ( PythonDebugLanguageConsoleView ) mySession . getConsoleView ( ) ) . getTextConsole ( ) ) ; + if ( mySession != null && mySession . getCon...
Fix possible NPE during output check
<nb> public class SftpConsumer extends RemoteFileConsumer < RemoteFileExchange > { } } - protected String getFullFileName ( ChannelSftp . LsEntry sftpFile ) throws IOException { + protected String getFullFileName ( ChannelSftp . LsEntry sftpFile ) throws IOException , SftpException { return channel . pwd ( ...
Fixed compiler error after upgrade of jsch
<nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener { healing . lastChange = Calendar . getInstance ( ) . getTime ( ) ; + SINGLE + SINGLE + SINGLE + pingNodeTime = System . currentTimeMillis ( ) + HEAL_DELAY_PERIOD + NUMBER0 ; + SINGLE healing . retryCnt ++ ; if ( healing . r...
Stop routine ping during a heal
<nb> public class PostgresNetty extends AbstractLifecycleComponent { bossExecutor = Executors . newCachedThreadPool ( daemonThreadFactory ( settings , STRING0 ) ) ; workerExecutor = Executors . newCachedThreadPool ( daemonThreadFactory ( settings , STRING1 ) ) ; bootstrap = new ServerBootstrap ( new NioServerSock...
Set tcpNoDelay and keepAlive
<nb> public class Chunker out . onMessageComplete ( ) ; } out . flush ( ) ; + out . close ( ) ; byte [ ] bytes = new byte [ outputBuffer . limit ( ) ] ; outputBuffer . position ( NUMBER0 ) ;
Fix ByteBuf leak in doc tests
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra setupSelectionOnPreferredComponent ( toFocus ) ; if ( toFocus != null ) { - final JComponent toRequest = toFocus ; - SwingUtilities . invokeLater ( new R...
After invoking a dialog from Search Everywhere or some other places focus moves to the editor
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public class DbQuery extends DbQueryBase { + private static final Log log = Log . getLogger ( DbQuery . class ) ; + COM...
Added DbQuery log for SQL
<nb> public class Element { public final void setPosException ( final String posToken , final boolean regExp , final boolean negation , final boolean scopeNext , final boolean scopePrevious ) { - final Element posException = new Element ( STRING0 , this . caseSensitive , regExp , + final Element posException ...
remove redundant regular expression attribute from POS tokens
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public abstract class BaseManager implements Constants { + public abstract class BaseManager { protected final static boolean zeroBackup = false ;
None should implement Constants
<nb> public class ApiControllerDocTesterTest extends NinjaDocTester { , CoreMatchers . is ( NUMBER0 ) ) ; - - SINGLE - SINGLE - SINGLE - say ( STRING0 ) ; - say ( STRING1 + GET_ARTICLE_URL ) ; - response = sayAndMakeRequest ( - Request . GET ( ) . url ( - testServerUrl ( ) . path ( - GET_ARTIC...
Removed part of test that is not used in
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
use the Collection of bean to set list item data
<nb> public class Loader ObjectHolderRegistry . INSTANCE . findObjectHolders ( discoverer . getASMTable ( ) ) ; modController . distributeStateMessage ( LoaderState . PREINITIALIZATION , discoverer . getASMTable ( ) , canonicalConfigDir ) ; ObjectHolderRegistry . INSTANCE . applyObjectHolders ( ) ; - progressBa...
Fix the ordering of the messages so they make sense now
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class XContentBuilderTests { assertThat ( builder . string ( ) , equalTo ( STRING0 ) ) ; } + @ test public void testOverloadedList ( ) throws Exception { + XContentBuilder builder...
add a test for overloaded method of builder and List
<nb> public class ClientSocketStats { ClientSocketStats stats = statsMap . get ( destination ) ; if ( stats == null ) { ClientSocketStats socketStats = new ClientSocketStats ( this , destination , pool , jmxId ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE stats = statsMap . pu...
Add comment explaining potential race and fix
<nb> public class Lucene { } COMMENT - COMMENT - COMMENT - public static boolean isEmpty ( @ nullable DocIdSet set ) { - return set == null || set == DocIdSet . EMPTY ; - } - - COMMENT COMMENT COMMENT COMMENT
Remove Lucene isEmpty DocIdSet
<nb> public class OLuceneOverlapOperator extends OLuceneSpatialOperator { if ( key instanceof Map ) { ( ( Map ) key ) . put ( SpatialQueryBuilderAbstract . GEO_FILTER , SpatialQueryBuilderOverlap . NAME ) ; } else if ( key instanceof ODocument ) { - Map < String , Object > newKey = new HashMap < > ( ) ; + Map...
fixed java compilation error
<nb> public class SnapshotRestoreIntegrationTest extends SQLTransportIntegrationTest execute ( STRING0 + snapshotName ( ) + STRING1 + STRING2 ) ; - execute ( STRING3 ) ; + execute ( STRING4 ) ; assertThat ( TestingHelpers . printedTable ( response . rows ( ) ) , is ( STRING5 ) ) ; }
fixed Snapshot integration test which was flaky
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class DebugInfo implements Iterable < DebugItem > { private static class EmptyDebugInfo extends DebugInfo { public static final EmptyDebugInfo INSTANCE = new...
Replace a missed usage of Iterators emptyIterator
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ViewSiteActivity extends WebViewActivity { mWebView . setWebChromeClient ( new WPWebChromeClient ( this , ( ProgressBar ) findViewById ( R . id ...
Add missing LOAD_NO_CACHE to ViewSiteActivity
<nb> public class OperationSetPersistentPresenceIcqImpl Contact srcContact = findContactByID ( screenname . getFormatted ( ) ) ; authorizationHandler . processAuthorizationResponse ( - new AuthorizationResponse ( AuthorizationResponse . REJECT , reason ) , - srcContact ) ; + new AuthorizationResponse ( Auth...
issue an AuthorizationReponse ACCEPT instead of AuthorizationResponse REJECT when an authorization is accepted possibly a copy paste typo
<nb> public class DynamicProperty { public static DynamicProperty getInstance ( String propName ) { SINGLE SINGLE - if ( dynamicPropertySupportImpl == null ) { + COMMENT DynamicPropertyFactory . getInstance ( ) ; - } + COMMENT DynamicProperty prop = ALL_PROPS . get ( propName ) ; if ( prop == null )...
disable initialization with configuration from DynamicProperty creation as it still causes logging problem
<nb> public class NNModel extends Model { Log . info ( label ) ; for ( String s : sb . toString ( ) . split ( STRING0 ) ) Log . info ( s ) ; } - - SINGLE - SINGLE - Thread thread = new Thread ( ) { @ override public void run ( ) { fpreds . delete ( ) ; } } ; - thread . setDaemon ( true ) ; - thread . ...
Revert the work around for Frame deletion now that it s fast
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class TabsAlphabeticalModeSwitcher extends ToggleAction { ...
get value from Registry
<nb> class RemovingItemDecorator extends RecyclerView . ItemDecoration { private static final int NOTIFY_REMOVAL_EFFECT_PHASE_1 = NUMBER0 ; private static final int NOTIFY_REMOVAL_EFFECT_END = NUMBER1 ; - private static final long ADDITIONAL_REMOVE_DURATION = NUMBER2 ; SINGLE + private static final long ADDIT...
Tweak the ADDITIONAL_REMOVE_DURATION constant value
<nb> public class OsmandMapTileView implements IMapDownloaderCallback { } final boolean isMultiTouch = multiTouchSupport . onTouchEvent ( event ) ; doubleTapScaleDetector . onTouchEvent ( event ) ; - if ( ! ( isMultiTouch || doubleTapScaleDetector . isInZoomMode ( ) ) ) { + if ( ! ( multiTouchSupport . isInZo...
test do not pass touch event while multiTouchSupport isInZoomMode