diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> COMMENT package 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 ...
reverted the IDE reorder of imports
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractCassandraStoreManager extends DistributedStoreMana STRING0 , ConfigOption . Type . FIXED , STRING1 ) ; ...
Expand Cassandra REPLICATION_OPTIONS help string
<nb> public class MarkupBuilder extends BuilderSupport { print ( name ) ; break ; case NUMBER0 : - out . print ( STRING0 ) ; + out . print ( STRING1 ) ; break ; } break ;
applied Stefan s patch
<nb> public class JavaInputHandler extends PdeInputHandler { textarea . setSelectedText ( spaces ( tabSize ) ) ; event . consume ( ) ; - } else if ( ! Preferences . getBoolean ( STRING0 ) ) { + } else { SINGLE textarea . setSelectedText ( STRING1 ) ; event . consume ( ) ; }
Simplify conditional branch
<nb> public class AsciidocHelper replace ( STRING0 , STRING1 ) . replace ( STRING2 , STRING3 ) . replace ( STRING4 , STRING5 ) . + replace ( STRING6 , STRING7 ) . + replace ( STRING8 , STRING9 ) . replace ( STRING10 , STRING11 ) . replace ( STRING12 , STRING13 ) . replace ( STRING14 , STRING15 ) . + r...
Added skip and limit to keywords to create a break line on
<nb> public class HighlyAvailableGraphDatabaseFactory extends GraphDatabaseFactory public GraphDatabaseService newHighlyAvailableDatabase ( String path ) { - return newEmbeddedDatabaseBuilder ( path ) . newGraphDatabase ( ) ; + return newHighlyAvailableDatabaseBuilder ( path ) . newGraphDatabase ( ) ; } ...
Fixed typo in HighlyAvailableGraphDatabaseFactory
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class CachingIntrospector implements Introspector { <nb> import NAMESPACE ; COMMENT public class JsonAnnotationManager { - private final JSONAnnotation jsonAnnotation ; private final Map < Class , TypeData > t...
removed creation of JSONAnnotation in ctor so the changed value can never be read
<nb> public interface World extends PluginMessageRecipient { COMMENT COMMENT COMMENT + @ deprecated public < T extends Entity > Collection < T > getEntitiesByClass ( Class < T > . . . classes ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public < T extends Entity > Collection < T > getEn...
Add getEntitiesByClass Class T and getEntitiesByClasses Class
<nb> public class TransactionMonitorImpl implements TransactionMonitor @ override public long getNumberOfCommittedTransactions ( ) { - return startedTransactionCount . get ( ) - activeTransactionCount . get ( ) ; + return startedTransactionCount . get ( ) - activeTransactionCount . get ( ) - rolledBackTransac...
Fixed a counting issue
<nb> public class EnterpriseDeploymentTestCase { } private void awaitCompletion ( ProgressObject progress , long timeout ) throws InterruptedException { + DeploymentStatus status = progress . getDeploymentStatus ( ) ; + if ( status . isCompleted ( ) ) + return ; + final CountDownLatch latch = new CountD...
Fix potential race condition in awaitCompletion
<nb> public class FloatingSearchView extends FrameLayout { mMenuView . reset ( actionMenuAvailWidth ( ) ) ; if ( mIsFocused ) - mMenuView . hideIfRoomItems ( ) ; + mMenuView . hideIfRoomItems ( false ) ; } } ) ; <nb> public class FloatingSearchView extends FrameLayout { mSearchInput . requestFocus...
removed action anim when rotating
<nb> class IonDrawable extends Drawable { } public void cancel ( ) { - if ( callback . bitmapKey == null ) - return ; - ion . bitmapsPending . removeItem ( callback . bitmapKey , callback ) ; + SINGLE + SINGLE + SINGLE + unregister ( ion , callback . bitmapKey , callback ) ; callback . bitmapKey =...
Call unregister in cancel
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JCacheCacheManagerTest { private CacheManager cacheManager2 ; @ beforeclass - @ afterclass public static void start (...
unneccessary AfterClass annotation removed in spring test
<nb> public class NetworkController extends BroadcastReceiver { String wifiLabel = STRING0 ; String mobileLabel = STRING0 ; int N ; + final boolean emergencyOnly = ( mServiceState != null && mServiceState . isEmergencyOnly ( ) ) ; if ( ! mHasMobileDataFeature ) { mDataSignalIconId = mPhoneSignalIconId = N...
Fix NPE on some phones at startup
<nb> public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase { } } + @ override + protected Editor createEditor ( @ notnull VirtualFile file ) { + allowTreeAccessForFile ( file ) ; + return super . createEditor ( file ) ; + } + protected void allowTreeAccessForFile ( @ notnull Virtu...
allow tree access for the file in an opened editor
<nb> public class DefaultIsolatedAntBuilder implements IsolatedAntBuilder { } public void cleanup ( ) { - System . out . println ( STRING0 + antAdapterLoader ) ; - System . out . println ( STRING1 + antLoader ) ; - classLoaderCache . stop ( ) ; SINGLE
Removed print statements
<nb> public class SentimentPipeline { result . append ( Sentence . listToString ( tree . yield ( ) ) ) ; result . append ( STRING0 ) ; } - System . err . println ( result . toString ( ) ) ; return result . toString ( ) ; } catch ( IOException e ) { throw new RuntimeIOException ( e ) ;
Remove an unnecessary debug statement
<nb> public class SIPCommButton this . addMouseListener ( mouseHandler ) ; this . addMouseMotionListener ( mouseHandler ) ; + SINGLE + SINGLE + this . setBorder ( null ) ; + this . setOpaque ( false ) ; + this . bgImage = bgImage ; this . pressedImage = pressedImage ; this . iconImage = iconImage ...
Fix some visualization issues on Windows
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class MasterFaultDetection extends FaultDetection { private void notifyMasterFailure ( final DiscoveryNode masterNode , final Throwable cause , final String reason ) { if ( not...
MasterFaultDetection can leak an exception during shutdown
<nb> public abstract class TransportReplicationAction < Request extends ReplicationRequ performOnPrimary ( primary , shardsIt ) ; } } catch ( Throwable t ) { - SINGLE finishAsFailed ( t ) ; } } else {
Remove left over no commit from TransportReplicationAction
<nb> public class NotificationsDetailActivity extends AppCompatActivity implements NotificationsActions . markNoteAsRead ( note ) ; GCMMessageService . removeNotificationWithNoteIdFromSystemBar ( this , noteId ) ; - SINGLE - note . setRead ( ) ; - NotificationsTable . putNote ( note ) ; - EventBus . getDe...
Only mark the note as read if it s not
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
adding youtube video link
<nb> public class DefaultOperationQueue < T > implements OperationQueue < T > { } catch ( InterruptedException e ) { throw new UncheckedException ( e ) ; } catch ( ExecutionException e ) { + if ( e . getCause ( ) instanceof GradleException ) { + SINGLE + throw ( GradleException ) e . getCause ( ) ; + } ...
Fix exception propagation
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AvailableAlarmCallbackSummaryResponse { public String name ; public Map < String , Map < String , Object > > requested_configuration ; + @ jsonignore public List < R...
Fixing serialization of available AlarmCallback types
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class Register extends water . api . AbstractRegister { + public class RegisterAlgos extends water . api . AbstractRegister { SINGLE @ override public void register ( String relativeResourcePath ) throws ClassNotFoundException { SING...
Rename hex api Register java into RegisterAlgos to avoid confusion between multiple Register classes in the code
<nb> public abstract class RefineBroker extends ButterflyModuleImpl { static final protected Logger logger = LoggerFactory . getLogger ( STRING0 ) ; - static final protected String USER_INFO_URL = STRING1 ; + SINGLE + static final protected String USER_INFO_URL = STRING2 ; static final protected String DE...
Fix reference to really old API endpoint
<nb> public class TemporaryFolder implements MethodRule { return new Statement ( ) { @ override public void evaluate ( ) throws Throwable { - base . evaluate ( ) ; + try { + base . evaluate ( ) ; + } finally { + getDir ( ) . deleteDir ( ) ; + } } } ; }
Remove files under TemporaryFolder after test execution
<nb> import NAMESPACE ; public class DelegatingMetaClass extends MetaClass { protected final MetaClass delegate ; public DelegatingMetaClass ( final MetaClass delegate ) { - super ( delegate . getClass ( ) ) ; + super ( delegate . theClass ) ; this . delegate = delegate ; }
Set theClass to the class for which this is the MetaClass rether than the class of the delegate MetaClass
<nb> public class StringTerms extends InternalTerms { return new BytesText ( new BytesArray ( termBytes ) ) ; } - public String getTermAsString ( ) { - return termBytes . utf8ToString ( ) ; - } - @ override public Number getKeyAsNumber ( ) { SINGLE
removed the getKeyAsString method from StringTerms redundant method
<nb> public class ApiHelperTest extends InstrumentationTestCase { XMLRPCFactoryTest . setPrefixAllInstances ( STRING0 ) ; final CountDownLatch countDownLatch = new CountDownLatch ( NUMBER0 ) ; Blog dummyBlog = new Blog ( STRING1 , STRING1 , STRING1 ) ; - new ApiHelper . RefreshBlogContentTask ( mTargetContext ,...
RefreshBlogContentTask signature changed fix tests in ApiHelperTest
<nb> public class ReproduceInfoPrinter extends RunListener { final Description d = failure . getDescription ( ) ; final StringBuilder b = new StringBuilder ( ) ; b . append ( STRING0 ) . append ( d . getDisplayName ( ) ) . append ( STRING1 ) ; - b . append ( STRING2 ) ; + b . append ( STRING3 ) ; MavenMessa...
improve REPRODUCE WITH
<nb> public class ModelRepositoryImpl implements ModelRepository { resource . load ( inputStream , Collections . EMPTY_MAP ) ; notifyListeners ( name , EventType . ADDED ) ; } catch ( IOException e ) { - logger . warn ( STRING0 , name , e ) ; + logger . warn ( STRING1 + name + STRING2 , e ) ; } } else { ...
fixed logging problem
<nb> class PreferedProducerFind { final RuntimeConfigurationProducer first = producers . get ( NUMBER0 ) ; for ( Iterator < RuntimeConfigurationProducer > it = producers . iterator ( ) ; it . hasNext ( ) ; ) { RuntimeConfigurationProducer producer = it . next ( ) ; - if ( RuntimeConfigurationProducer . COMPARAT...
don t remove producer from list if it s equal to itself
<nb> public class PyEnvTaskRunner { if ( url == null ) { return null ; } - return PyTestSdkTools . createTempSdk ( url , SdkCreationType . SDK_PACKAGES_AND_SKELETONS , null ) ; + return PyTestSdkTools . createTempSdk ( url , SdkCreationType . EMPTY_SDK , null ) ; } protected boolean shouldRun ( String r...
Don t generate skeletons for test sdk if it wasn t specified explicitly
<nb> public class Jedis extends BinaryJedis implements JedisCommands , MultiKeyCommand } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Corrected documentation for Jedis get it returns a Java null not nil
<nb> public class SOM implements Clustering < double [ ] > { COMMENT COMMENT public int [ ] [ ] getClusterLabel ( ) { - if ( y == null ) { - throw new IllegalStateException ( ) ; + if ( y == null ) { + throw new IllegalStateException ( STRING0 ) ; } + int [ ] [ ] clusterLabels = new int [ height ] [...
add exception message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConvertFieldToAtomicIntention extends PsiElementBaseIntentionAction } } - psiVariable . getTypeElement ( ) . replace ( ...
shorten references after refactoring
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class SSBasedInspectionCompiledPatternsCache implements StartupActivity , DumbA...
do not pre compile patterns in dumb mode
<nb> public class PhoneWindowManager implements WindowManagerPolicy { throws RemoteException { synchronized ( mLock ) { IShortcutService service = mShortcutKeyServices . get ( shortcutCode ) ; - if ( service != null && service . asBinder ( ) . isBinderAlive ( ) ) { - throw new RemoteException ( STRING0 ) ; ...
Fixing shortcut key duplicate registration bug
<nb> public class TestOperationSetPersistentPresence { SINGLE fixture . clearProvidersLists ( ) ; - + waitFor ( NUMBER0 ) ; logger . trace ( STRING0 ) ; <nb> public class TestOperationSetPersistentPresence public void prepareContactList ( ) throws Exception { - logger . trace ( STRING1 ) ; -...
Give more time when preparing contact list
<nb> public class ServerBootstrap extends AbstractBootstrap < ServerBootstrap > { private final class AioServerSocketChannelFactory implements ChannelFactory { @ override public Channel newChannel ( ) { - return new AioServerSocketChannel ( ( AioEventLoopGroup ) group ( ) , ( AioEventLoopGroup ) childGroup ) ; ...
Add proper toString implementation for internal ChannelFactory impls
<nb> public class HikariPool extends PoolBase implements HikariPoolMXBean , IBagStateL softEvictConnections ( ) ; abortActiveConnections ( assassinExecutor ) ; } while ( getTotalConnections ( ) > NUMBER0 && clockSource . elapsedMillis ( start ) < TimeUnit . SECONDS . toMillis ( NUMBER1 ) ) ; - } finally { + }...
removed old call
<nb> public class RecordContext { public static final int TYPE_POST_PARSER_CLASSNAME = NUMBER0 ; public static final int TYPE_POST_PARSER_CONFIG = NUMBER1 ; + public static final int TYPE_ACCESS_CONTROL_RULE = NUMBER2 ; + private long dataId = NUMBER3 ; private int contextId = NUMBER3 ; private int type...
Added type entry for persisting AccessRules in the session
<nb> class AndroidParcelableExtension implements TypeGenerationExtension { private final Types types ; - public AndroidParcelableExtension ( Types types ) { + AndroidParcelableExtension ( Types types ) { this . types = types ; }
fix constructor access warning
<nb> public class TranslogService extends AbstractIndexShardComponent { return ; } + int currentNumberOfOperations = translog . estimatedNumberOfOperations ( ) ; + if ( currentNumberOfOperations == NUMBER0 ) { + reschedule ( ) ; + return ; + } + if ( flushThresholdOperations > NUMBER0 ) { - int cu...
don t schedule a flush if there are no operations in the translog
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class MongoClientURI { private void warnOnUnsupportedOptions ( final Map < String , List < String > > optionsMap ) { for...
Improved log message for Mongo URI
<nb> public class AnnotationIntrospectorPair extends AnnotationIntrospector } else if ( name == PropertyName . USE_DEFAULT ) { SINGLE PropertyName name2 = _secondary . findWrapperName ( ann ) ; - if ( name2 != name ) { + if ( name2 != null ) { name = name2 ; } }
Fix a minor bug in introspector pair
<nb> public class FileTemplateManagerImpl extends FileTemplateManager implements Expo } ourTopDirs = dirList . toArray ( new VirtualFile [ dirList . size ( ) ] ) ; + for ( VirtualFile topDir : ourTopDirs ) { + topDir . refresh ( true , true ) ; + } return ourTopDirs ; } }
cdr VFS refresh added when geeting default file templates
<nb> public abstract class BatteryStats implements Parcelable { public static final int DATA_CONNECTION_EVDO_B = NUMBER0 ; public static final int DATA_CONNECTION_LTE = NUMBER1 ; public static final int DATA_CONNECTION_EHRPD = NUMBER2 ; - public static final int DATA_CONNECTION_OTHER = NUMBER3 ; + public stat...
Add HSPA to BatteryStats
<nb> public class AccessibilityUtil { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class AccessibilityUtil { } return preset ; } - } + }
Fix Javadoc link
<nb> public abstract class PyProcessWithConsoleTestTask < T extends ProcessWithConsoleR public void processTerminated ( final ProcessEvent event ) { super . processTerminated ( event ) ; processHandlerRef . set ( null ) ; + LOG . warn ( String . format ( STRING0 , Thread . currentThread ( ) ) ) ; processFinis...
Improving logs to catch thread leak
<nb> public final class GenMRSkewJoinProcessor { private static String RESULTS = STRING0 ; static String getBigKeysDir ( String baseDir , Byte srcTbl ) { - return baseDir + File . separator + skewJoinPrefix + UNDERLINE + BIGKEYS + return baseDir + Path . SEPARATOR + skewJoinPrefix + UNDERLINE + BIGKEYS + UN...
GenMRSkewJoinProcessor uses File Separator instead of Path Separator Thejas Nair via Ashutosh Chauhan
<nb> public class MaterialHelper extends AbstractBlenderHelper { if ( ( dataRepository . getBlenderKey ( ) . getFeaturesToLoad ( ) & FeaturesToLoad . TEXTURES ) != NUMBER0 ) { TextureHelper textureHelper = dataRepository . getHelper ( TextureHelper . class ) ; DynamicArray < Pointer > mtexs = ( DynamicArray < Poi...
Ignoring textures that are defined but disabled in material
<nb> public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc factory . bindPropertiesToTarget ( ) ; } catch ( Exception ex ) { - String targetClass = STRING0 ; - if ( target != null ) { - ClassUtils . getShortName ( target . getClass ( ) ) ; - } + String targetClass = ClassUtils...
Remove useless code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> import NAMESPACE ; COMMENT COMMENT public class JBInsets extends Insets { + public static final JBInsets NONE = new JBInsets ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; COMMENT COMMENT COMMENT
add empty insets
<nb> public class HttpConnection implements Downloadable { connection . connect ( ) ; BufferedInputStream is = new BufferedInputStream ( connection . getInputStream ( ) ) ; + file . getParentFile ( ) . mkdirs ( ) ; + file . createNewFile ( ) ; OutputStream os = file . createOutputStream ( ) ; if ( os == n...
create file explicitly before downloading image
<nb> public class BFSLinkSelectorTest { LinkDataDuplexMap select = bfsLinkSelector . select ( APP_A , range , option ) ; - Assert . assertEquals ( select . size ( ) , NUMBER0 ) ; + Assert . assertEquals ( select . size ( ) , NUMBER1 ) ; }
fixed test case
<nb> public class CoreAPI extends ApiImplementor implements SessionListener { private ApiResponseSet alertToSet ( Alert alert ) { Map < String , String > map = new HashMap < > ( ) ; map . put ( STRING0 , String . valueOf ( alert . getAlertId ( ) ) ) ; + map . put ( STRING1 , String . valueOf ( alert . getPlugin...
Return the ID of the scanner when returning the Alert through the API
<nb> public class AndroidConfiguration extends BuildConfiguration . Fragment { } labelMap . put ( STRING0 , realSdk ( ) ) ; - - labelMap . put ( STRING1 , - AndroidRuleClasses . DEFAULT_INCREMENTAL_STUB_APPLICATION ) ; - labelMap . put ( STRING2 , - AndroidRuleClasses . DEFAULT_INCREMENTAL_SPLIT_STUB_AP...
Do not load any Android tool unconditionally
<nb> public abstract class BaseTest { public static final String newline = System . getProperty ( STRING0 ) ; public static final String pathSep = System . getProperty ( STRING1 ) ; - public static final boolean TEST_IN_SAME_PROCESS = false ; + public static final boolean TEST_IN_SAME_PROCESS = true ; COM...
turn on in VM exec for testing
<nb> final class DeviceDiscoveryAction extends FeatureAction { public void onPollingFinished ( List < Integer > ackedAddress ) { if ( ackedAddress . isEmpty ( ) ) { Slog . v ( TAG , STRING0 ) ; - finish ( ) ; + wrapUpAndFinish ( ) ; return ; }
Call wrapUpAndFinish even if no devices are detected
<nb> public enum BlockType { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static boolean isRailBlock ( int id ) { + return id == NUMBER0 SINGLE + || id == NUMBER1 SINGLE + || id == NUMBER2 ; SINGLE + } + + COMMENT COMMENT COMMENT COMMENT
Added yet another method to BlockType rails
<nb> public abstract class FluentIterable < E > implements Iterable < E > { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT @ beta @ checkreturnvalue - SINGLE + @ deprecated public static < E > FluentIterable < E > of ( E [ ] elements ) { return from ( Lists . newArrayList ( elemen...
Deprecate FluentIterable of E
<nb> public final class Trace { public static final int TRACE_FLAGS_START_BIT = NUMBER0 ; public static final String [ ] TRACE_TAGS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , - STRING5 , STRING6 , STRING7 + STRING5 , STRING6 , STRING7 , STRING8 , } ; public static final String PROPERTY_TRACE_...
Add a label for the new video trace tag
<nb> public class BasicOperations implements Callable < Boolean > { for ( int k = NUMBER0 ; k < mNumbers ; k ++ ) { buf . putInt ( k ) ; } - + LOG . debug ( STRING0 ) ; long startTimeMs = CommonUtils . getCurrentMs ( ) ; FileOutStream os = tachyonFileSystem . getOutStream ( mFilePath , mClientOptions ) ; ...
Add back debug log
<nb> public class MaterialCalendarView extends FrameLayout { COMMENT COMMENT COMMENT - public void setTopbarVisibility ( boolean visible ) { + public void setTopbarVisible ( boolean visible ) { if ( visible ) topbar . setVisibility ( View . VISIBLE ) ; else
Renamed method to setTopbarVisible boolean
<nb> public class CompositeByteBuf extends AbstractByteBuf { return indices [ components . length ] ; } + public int numComponents ( ) { + return components . length ; + } + @ override public byte getByte ( int index ) { int componentId = componentId ( index ) ;
Add CompositeByteBuf numComponents
<nb> public class Polygon { dirty = false ; final float [ ] localVertices = this . localVertices ; - if ( worldVertices == null || worldVertices . length < localVertices . length ) worldVertices = new float [ localVertices . length ] ; + if ( worldVertices == null || worldVertices . length != localVertices . ...
Fixed bug in Polygon getTransformedVertices
<nb> public class DataSourceRegistry implements DBPDataSourceRegistry } closeConnections ( ) ; - if ( getProject ( ) . isOpen ( ) ) { - flushConfig ( ) ; - } + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE SINGLE synchronized ( dataSources ) { for ( DataSourceDescriptor dataSourceDes...
Do not save DS config on shutdown
<nb> public class BatchStatement implements CQLStatement SINGLE SINGLE - Short [ ] partitionKeyBindIndexes = haveMultipleCFs ? null + Short [ ] partitionKeyBindIndexes = ( haveMultipleCFs || batchStatement . statements . isEmpty ( ) ) ? null : boundNames . getPartitionKeyBindIndexes ( batchStatement . state...
Fix IndexOutOfBoundsException when using empty BATCH statements
<nb> public class TaskManager implements TaskOperationProtocol , PluginCommunicationPr COMMENT private void checkTaskExecution ( ) { - final Iterator < Task > it = this . runningTasks . values ( ) . iterator ( ) ; + final Iterator < Map . Entry < ExecutionVertexID , Task > > it = this . runningTasks . entrySe...
Fixed race in TackManager s checking for failed tasks
<nb> public class JedisClusterTest extends Assert { assertEquals ( STRING0 , node2 . get ( STRING0 ) ) ; } + @ test + public void testBlpop ( ) { + Set < HostAndPort > jedisClusterNode = new HashSet < HostAndPort > ( ) ; + jedisClusterNode . add ( new HostAndPort ( STRING1 , NUMBER0 ) ) ; + JedisCluster...
Add test for JedistCluster s method blpop
<nb> public class ParallellBatchImporter implements BatchImporter public void doImport ( Iterable < InputNode > nodes , Iterable < InputRelationship > relationships , NodeIdMapping nodeIdMapping ) throws IOException { - logger . log ( STRING0 ) ; + SINGLE try ( BatchFriendlyNeoStore neoStore = new BatchFr...
Removed an incomplete log message
<nb> public final class Settings { public static final String TTS_DEFAULT_SYNTH = STRING0 ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static final String TTS_DEFAULT_HIGHER_SPEECH_RATE_ENABLED = - STRING1 ; - COMMENT COMMENT COMMENT COMMENT <nb> public final class ...
Remove higher speech rate settings
<nb> public class HistoricTaskInstanceBaseResource extends SecuredResource { allowedSortProperties . put ( STRING0 , HistoricTaskInstanceQueryProperty . TASK_OWNER ) ; allowedSortProperties . put ( STRING1 , HistoricTaskInstanceQueryProperty . TASK_PRIORITY ) ; allowedSortProperties . put ( STRING2 , HistoricTask...
Fixed inconsistent naming
<nb> public interface Vector < T extends Vector > { COMMENT T limit ( float limit ) ; + COMMENT + COMMENT + COMMENT + COMMENT + T clamp ( float min , float max ) ; + COMMENT COMMENT COMMENT <nb> public class Vector2 implements Serializable , Vector < Vector2 > { } return this ; } + +...
Also add clamp to Vector and Vector2
<nb> public interface FutureBuilder extends BitmapFutureBuilder , ImageViewFutureBuild COMMENT public ResponseFuture < JsonObject > asJsonObject ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT public ResponseFuture < Document > asDocument ( ) ; COMMENT
Add documentation to asDocument
<nb> public class Clazzes { Options . v ( ) . set_include_all ( true ) ; Options . v ( ) . set_print_tags_in_output ( true ) ; Options . v ( ) . set_allow_phantom_refs ( true ) ; + Options . v ( ) . set_keep_line_number ( true ) ; Options . v ( ) . set_soot_classpath ( getSootClasspath ( clazzes ) ) ; COM...
Enabled line numbers in Soot initialization
<nb> public class TestNonBlockingAPI extends TomcatBaseTest { DATA , written , CHUNK_SIZE ) ; written += CHUNK_SIZE ; } + if ( written == WRITE_SIZE ) { + SINGLE + SINGLE + ctx . getResponse ( ) . flushBuffer ( ) ; + } System . out . println ( STRING0 + ( end - start ) + STRING1 + before + STRING2 +...
Fix failing test
<nb> import NAMESPACE ; COMMENT public class DeletePersistentMethod extends AbstractDynamicPersistentMethod { + private static final String METHOD_SIGNATURE = STRING0 ; + public DeletePersistentMethod ( SessionFactory sessionFactory , ClassLoader classLoader ) { super ( sessionFactory , classLoader ) ; ...
added method signature constants
<nb> public class MessageRouterImpl extends BasicModule implements MessageRouter { messageStrategy . storeOffline ( packet ) ; } catch ( Exception e1 ) { - SINGLE - SINGLE + Log . error ( e1 ) ; } }
Adds logging of exceptions
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class XmlSurroundWithRangeAdjuster implements SurroundWithRangeAdjuster { @ override public TextR...
don t touch non xml files
<nb> public class Shape extends Entity { protected Iterator < Shape > iterator ( ) { return feed . shapePoints . values ( ) . iterator ( ) ; } - - } }
remove uneccessary whitespace
<nb> public class RootsFragment extends Fragment { mList = ( ListView ) view . findViewById ( android . R . id . list ) ; mList . setOnItemClickListener ( mItemListener ) ; mList . setChoiceMode ( ListView . CHOICE_MODE_SINGLE ) ; - return view ; } <nb> public class RootsFragment extends Fragment { fi...
Fix root selection after search
<nb> protected synchronized Class < ? > loadClass ( String name , boolean resolve ) throws C if ( c == null ) { c = findInMemoryClass ( name ) ; if ( c == null ) - c = getParent ( ) . loadClass ( name ) ; + c = super . loadClass ( name , false ) ; } if ( resolve ) resolveClass ( c ) ;
delegate loadClass to super classloader before delegating to parent classloader
<nb> public class ProfilerEditingTarget implements EditingTarget , else { view_ . showProfilePage ( htmlPath_ ) ; + + Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) + { + public void execute ( ) + { + pSourceWindowManager_ . get ( ) . maximizeSourcePaneIfNecessary ( ) ; + } + } ...
minimize console when profiler launches from console or selected lines command
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Database { private String databaseStoreDirectory ; public Database ( String databaseStoreDirectory ) { - this ( new EmbeddedGraphDatabase ...
by default enable remote shell
<nb> public abstract class DebuggerUtilsEx extends DebuggerUtils { @ notnull @ override public Navigatable createNavigatable ( @ notnull Project project ) { - return XSourcePositionImpl . createOpenFileDescriptor ( project , this ) ; + return XSourcePositionImpl . doCreateOpenFileDescriptor ( project , this )...
fast fix SOE
<nb> public abstract class AbstractService < T extends Configuration > { private final List < ConfiguredBundle < ? super T > > configuredBundles ; private final List < Module > modules ; private final SortedMap < String , Command > commands ; - private Server server ; COMMENT COMMENT <nb> public class S...
set service before joining the server thread D oh
<nb> public class HdfsMergeTool extends ExecuteOnClusterTool { int maxMergeFactor = context . getConfiguration ( ) . getInt ( MAX_MERGE_FACTOR_KEY , - NUMBER0 ) ; Preconditions . checkArgument ( maxMergeFactor > NUMBER1 ) ; - Directory directory = SimpleFSDirectory . open ( tmpDirFile , NoLockFactory . getNoLoc...
Fix simplefsdirectory in hdfsmergetool
<nb> public class MultipointBioSender extends AbstractSender implements MultiPointSen SINGLE } - COMMENT - COMMENT - COMMENT - @ deprecated - protected final long selectTimeout = NUMBER0 ; protected final HashMap < Member , BioSender > bioSenders = new HashMap < > ( ) ; @ override
Remove unused code
<nb> public class TestAndroidResources extends SimpleApplication { box2 . setLocalTranslation ( NUMBER0 , NUMBER1 , NUMBER1 ) ; rootNode . attachChild ( box2 ) ; - PointLight pl = new PointLight ( ) ; - pl . setColor ( ColorRGBA . White ) ; - pl . setPosition ( new Vector3f ( FLOAT0 , FLOAT1 , FLOAT1 ) ) ; ...
Remove unused lights
<nb> public class FolderMessageList extends ExpandableListActivity { holder . subject . setTextColor ( Email . FLAGGED_COLOR ) ; } + else + { + + SINGLE + SINGLE + SINGLE + holder . subject . setTextColor ( NUMBER0 ) ; + } holder . subject . setText ( message . subject ) ;
Re add the code I removed twice now that dan explained what it works around
<nb> public class ECKey implements EncryptableItem , Serializable { } protected ECKey ( @ nullable BigInteger priv , ECPoint pub ) { + if ( priv != null ) { + SINGLE + checkArgument ( ! priv . equals ( BigInteger . ZERO ) ) ; + checkArgument ( ! priv . equals ( BigInteger . ONE ) ) ; + } this . priv =...
add a sanity check for private keys that are zero or one
<nb> public class WebSettings { private RenderPriority mRenderPriority = RenderPriority . NORMAL ; private int mOverrideCacheMode = LOAD_DEFAULT ; private boolean mSaveFormData = true ; + private boolean mAutoFillEnabled = false ; private boolean mSavePassword = true ; private boolean mLightTouchEnabled = f...
Make autofill a webview preference
<nb> public class AssetIntentsManager { if ( Build . VERSION . SDK_INT <= Build . VERSION_CODES . JELLY_BEAN_MR1 ) { intent . putExtra ( MediaStore . EXTRA_VIDEO_QUALITY , NUMBER0 ) ; } + callback . openIntent ( intent , type ) ; } public void openGallery ( ) {
Fix video camera not starting
<nb> public class WebImage implements SmartImage { return bitmap ; } + + public static void removeFromCache ( String url ) { + if ( webImageCache != null ) { + webImageCache . remove ( url ) ; + } + } }
Allow webimage cache deletion
<nb> public class OClassImpl extends ODocumentWrapperNoClass implements OClass { final String fieldName = OIndexDefinitionFactory . extractFieldName ( fieldToIndex ) ; if ( ! fieldName . equals ( STRING0 ) && ! existsProperty ( fieldName ) ) - throw new OIndexException ( STRING1 + name + STRING2 + this . name ...
Fixed typo in exception
<nb> public class CustomAnnotationSerializerITest extends TestCase { return ; } assertEquals ( expected . vertexSet ( ) , result . vertexSet ( ) ) ; - assertEquals ( expected , result ) ; + SINGLE + assertEquals ( expected . toString ( ) , result . toString ( ) ) ; } private void verifyWord ( CoreLabe...
Change CustomAnnotationSerializerITest to compare dependency strings for now