diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public final class Linker {
pri... | Switch Queue to better performing Deque |
<nb> 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 GitCompareBranchesDialog extends DialogWrapper {
myBranchN... | reflect current root in the title if needed |
<nb> class RuleBindings {
private Map < String , List < RuleBinder > > getByState ( ModelNode . State state ) {
Map < String , List < RuleBinder > > map = boundAtState . get ( state ) ;
if ( map == null ) {
- map = new HashMap < String , List < RuleBinder > > ( ) ;
+ map = new HashMap < String , List < RuleBi... | Increase default hashmap size to avoid too many resizes |
<nb> public abstract class CommandsManager < T > {
} catch ( IllegalAccessException e ) {
e . printStackTrace ( ) ;
} catch ( InvocationTargetException e ) {
+ if ( e . getCause ( ) instanceof CommandException ) {
+ throw ( CommandException ) e . getCause ( ) ;
+ }
+
throw new WrappedCommandException ( ... | Fixed handling of CommandExceptions thrown by commands |
<nb> public class InputMethodButton extends ImageView {
}
private void refreshStatusIcon ( ) {
+ if ( mIcon == null ) {
+ return ;
+ }
if ( ! needsToShowIMEButton ( ) ) {
setVisibility ( View . INVISIBLE ) ;
return ;
<nb> public class InputMethodButton extends ImageView {
icon = getShortcutInputMe... | Check null pointer agressively |
<nb> public class TldLocatableURLClassloader extends URLClassLoader
{
return _jarsWithTldsInside ;
}
+
+ public String toString ( )
+ {
+ StringBuilder builder = new StringBuilder ( ) ;
+
+ if ( _jarsWithTldsInside != null )
+ {
+ for ( URL u : _jarsWithTldsInside )
+ builder . append ( STRING0 ... | Add a toString method to TldLocatableURLClassloader |
<nb> public class SystemBolt implements IBolt {
}
} , bucketSize ) ;
- SINGLE
- SINGLE
- context . registerMetric ( STRING0 , new IMetric ( ) {
- @ override
- public Object getValueAndReset ( ) {
- return stormConf . get ( Config . TOPOLOGY_WORKERS ) ;
- }
- } , bucketSize ) ;
-
final MemoryMX... | removed topology level stat |
<nb> public final class OperationFilter < T > {
private final Observable < T > that ;
private final Func1 < T , Boolean > predicate ;
- private final AtomicObservableSubscription subscription = new AtomicObservableSubscription ( ) ;
public Filter ( Observable < T > that , Func1 < T , Boolean > predicate ) {... | Fix multiple subscription bug on operation filter |
<nb> public class RedirectDynamicMethod extends AbstractDynamicMethodInvocation {
SINGLE
Errors controllerErrors = ( Errors ) controller . getProperty ( ControllerDynamicMethods . ERRORS_PROPERTY ) ;
Errors errors = ( Errors ) argMap . get ( ARGUMENT_ERRORS ) ;
- if ( controllerErrors != null ) {
+ if ( contr... | don t pass null errors to controllerErrors addAllErrors |
<nb> class GLColorOverlay {
NUMBER0 , NUMBER0 , NUMBER1 , SINGLE
} ;
- private int mColor ;
+ private int mColor = NUMBER1 ;
private FloatBuffer mVertexBuffer ;
<nb> class GLColorOverlay {
private static int sUniformColorHandle ;
private static int sUniformMVPMatrixHandle ;
- public GLColorOve... | Remove unused color constructor argument to GLColorOverlay |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix imports after merge |
<nb> public final class WorkerBlockMasterClient extends MasterClientBase {
COMMENT
COMMENT
COMMENT
- SINGLE
public synchronized long getId ( final NetAddress address ) throws IOException {
return retryRPC ( new RpcCallable < Long > ( ) {
@ override | SMALLFIX Remove TODO |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class NeuronsTest {
@ test
- SINGLE
+ @ ignore
public void matrixVecTest ( ) {
int rows = NUMBER0 ;
int cols ... | Turn off mat vec test |
<nb> public abstract class PipelineBase extends Queable implements BinaryRedisPipelin
getClient ( key ) . zcount ( key , toByteArray ( min ) , toByteArray ( max ) ) ;
return getResponse ( BuilderFactory . LONG ) ;
}
+
+ public Response < Long > zcount ( byte [ ] key , byte [ ] min , byte [ ] max ) {
+ getCl... | Adds binary zcount to pipeline and transaction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RandomExceptionCircuitBreakerIT extends ESIntegTestCase {
SINGLE
for ( String node : internalCluster ( ) . getNodeNames (... | fix more tests |
<nb> public class HiveServer2 extends CompositeService {
if ( ( thriftCLIService == null ) || ( thriftCLIService . getServerAddress ( ) == null ) ) {
throw new Exception ( STRING0 ) ;
}
- return thriftCLIService . getServerAddress ( ) . getHostAddress ( ) + STRING1
+ return thriftCLIService . getServerAddress... | HiveServer2 dynamic service discovery should add hostname instead of ipaddress to ZooKeeper Vaibhav Gumashta reviewed by Thejas M Nair |
<nb> public class DefaultIvyDependencyResolver implements IvyDependencyResolver {
Set < File > files = new LinkedHashSet < File > ( ) ;
for ( ResolvedArtifact artifact : artifacts ) {
File depFile = artifact . getFile ( ) ;
- if ( depFile == null ) {
- throw new GradleException ( String . format ( STRING0 , a... | Don t throw exception if artifact is null |
<nb> public class ConfigurationErrorsComponent extends JPanel implements Disposable ,
if ( myModel . getSize ( ) == NUMBER0 ) {
setBorder ( null ) ;
} else {
- if ( getBorder ( ) == null ) setBorder ( BorderFactory . createCompoundBorder ( BorderFactory . createEmptyBorder ( NUMBER1 , NUMBER0 , NUMBER1 , NUMBER... | fixed transparent border |
<nb> public class HeadsUpManager implements ViewTreeObserver . OnComputeInternalInsetsL
mReleaseOnExpandFinish = false ;
} else {
for ( NotificationData . Entry entry : mEntriesToRemoveAfterExpand ) {
- removeHeadsUpEntry ( entry ) ;
+ if ( isHeadsUp ( entry . key ) ) {
+ SINGLE
+ removeHeadsUpEntry ( ent... | Fixed a crash with the heads up manager |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class AutofitTextView extends TextView {
private static final String TAG = STRING0 ; | Add author tags |
<nb> public class FloraRasterizer implements WorldRasterizer {
FloraType type = entries . get ( pos ) ;
List < Block > list = flora . get ( type ) ;
- int blockIdx = noise . intNoise ( pos . x , pos . y , pos . z ) % list . size ( ) ;
+ int blockIdx = Math . abs ( noise . intNoise ( pos . x , pos . y , pos . ... | Prevent an index out of bounds exception due to negative noise |
<nb> public class TwoDimTable extends Iced {
case STRING0 :
for ( int r = NUMBER0 ; r < rowDim ; ++ r )
set ( r , c , strCellValues [ r ] [ c ] ) ;
+ break ;
default :
throw new IllegalArgumentException ( STRING1 + colTypes [ c ] + STRING2 ) ;
} | Fix TwoDimTable switch |
<nb> public final class ICU {
return result ;
] - * / ;
- private static native String [ ] getAvailableBreakIteratorLocalesNative ( ) ;
+ private static native String [ ] getAvailableBreakIteratorLocalesNative ( ) COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ;
- private static native String [ ] getAvailabl... | Implemented missing ICU native methods |
<nb> public class NotificationsTest extends AndroidTestCase {
assertTrue ( Realm . realmsCache . get ( ) . isEmpty ( ) ) ;
}
- public void testCloseClearingHandlerMessages ( ) throws InterruptedException , TimeoutException , ExecutionException {
+ SINGLE
+ public void DISABLEDtestCloseClearingHandlerMessage... | Disables randomly failing unit test until we can figure out why |
<nb> public final class LockRequest extends AbstractLockRequest {
if ( timeout == - NUMBER0 && ttl != Long . MAX_VALUE ) {
SINGLE
return new Object [ ] { ttl , TimeUnit . MILLISECONDS } ;
- } else if ( timeout > NUMBER1 ) {
+ } else if ( timeout >= NUMBER1 ) {
SINGLE
return new Object [ ] { timeout , Time... | accepts zero as ttl parameter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class HttpCache {
+ public class HttpCache extends SimpleCache < String , Http... | HttpCache extends SimpleCache |
<nb> public class ProducteevTask {
metadata . setValue ( DASHBOARD_ID , ProducteevUtilities . INSTANCE . getDefaultDashboard ( ) ) ;
metadata . setValue ( CREATOR_ID , Preferences . getLong ( ProducteevUtilities . PREF_USER_ID , NUMBER0 L ) ) ;
metadata . setValue ( RESPONSIBLE_ID , Preferences . getLong ( Produc... | Fixed a crash with missing value |
<nb> public abstract class CharMatcher implements Predicate < Character > {
} ;
}
+ SINGLE
+
+ COMMENT
+ COMMENT
+ COMMENT
+ protected CharMatcher ( ) { }
+
SINGLE
COMMENT
<nb> import NAMESPACE ;
COMMENT
@ beta
public abstract class CacheLoader < K , V > {
+ COMMENT
+ COMMENT
+ C... | Just noticed a few missing constructors while looking at javadocs |
<nb> public class ChangesCacheFile {
}
private void writeHeader ( ) throws IOException {
- assert myStreamsOpen ;
+ assert myStreamsOpen && myHeaderLoaded ;
myStream . seek ( NUMBER0 ) ;
myStream . writeInt ( VERSION ) ;
myStream . writeLong ( myLastCachedDate . getTime ( ) ) ;
<nb> public class Chang... | fixed writing of header which was not loaded |
<nb> public class DumpGroovyControlFlowAction extends AnAction implements DumbAware {
}
private static void passInner ( GrControlFlowOwner owner ) {
+ System . out . println ( owner . getText ( ) ) ;
System . out . println ( ControlFlowUtils . dumpControlFlow ( owner . getControlFlow ( ) ) ) ;
}
} | dump groovy control flow prints text of control flow owner |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class I18NBundleLoader extends AsynchronousAssetLoader < I18NBun... | Updated I18NBundleLoader javadoc |
<nb> class OperationRunnerImpl extends OperationRunner {
}
if ( partitionId != getPartitionId ( ) ) {
- throw new IllegalStateException ( STRING0 + getPartitionId ( ) + STRING1 + op ) ;
+ throw new IllegalStateException ( STRING0 + getPartitionId ( ) + STRING1 + partitionId ) ;
}
if ( internalPartition ... | Fixed exception message in OperationRunnerImpl |
<nb> public class AppWidgetManager {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void notifyAppWidgetViewDataChanged ( int [ ] appWidgetIds , int viewId ) {
<nb> public class AppWidgetManager {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COM... | Fix awkward wording in AppWidgetManager docs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StarTreeBootstrapJob extends Configured
SINGLE
Path bufferPath = new Path ( outputPath , nodeId + StarTreeRecordStoreFactoryCircularBufferHd... | used buffered output stream |
<nb> public class ModelMetricsBinomialV3 < I extends ModelMetricsBinomial , S extends Mo
@ api ( help = STRING0 , direction = API . Direction . OUTPUT )
public double Gini ;
+ @ api ( help = STRING1 , direction = API . Direction . OUTPUT )
+ public String [ ] domain ;
+
SINGLE
SINGLE | Add the class labels of the response for binomial model metrics |
<nb> public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
COMMENT
VILLAGE_DEFENSE ,
COMMENT
+ COMMENT
+ COMMENT
+ VILLAGE_INVASION ,
+ COMMENT
COMMENT
COMMENT
CUSTOM | Made zombie invasions fire CreatureSpawn event |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Add missing copyright headers |
<nb> public abstract class AnnotatorFactory implements Factory < Annotator > {
COMMENT
public abstract String signature ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
static String baseSignature ( Properties props , String name ) {
String prefix = name + STRING0 ;
StringBuilde... | Add a doc |
<nb> public class Paramo {
try {
stream = ClassLoaderUtil . getClassAsStream ( declaringClass ) ;
} catch ( IOException ioex ) {
- throw new ParamoException ( STRING0 + declaringClass . getName ( ) + STRING1 , ioex ) ;
+ throw new ParamoException ( STRING2 + declaringClass . getName ( ) , ioex ) ;
}
+
+... | added additional check |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public enum StatsTimeframe implements FilterCriteria {
+ public enum StatsTimeframe {
INSIGHTS ( R . string . stats_insights ) ,
DAY ( R . string . stats_timeframe_days ) ,
WEEK ( R . ... | removed unnecessary FilterCriteria interface for StatsTimeframe enum |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ retention ( RetentionPolicy . RUNTIME )
public @ interface Incubating { | Added more detailed info on the Incubating interface |
<nb> class DlvXValue extends XNamedValue {
} ) ;
return ThreeState . YES ;
}
+
+ @ override
+ public boolean canNavigateToSource ( ) {
+ return true ; SINGLE
+ }
} | override canNavigateToSource for the future compatibility |
<nb> public class IocVfs {
COMMENT
public static void init ( Context context , String password ) throws IllegalArgumentException {
-
- Log . w ( TAG , STRING0 + password . length ( ) ) ;
+ SINGLE
if ( password . length ( ) > NUMBER0 )
password = password . substring ( NUMBER1 , NUMBER0 ) ;
IocVfs . pa... | remove unneccesary log messages |
<nb> public class ConditionRewriter extends AbstractExpressionConverter < Expression > {
result = record ( conversion ) ;
}
- SINGLE
public void visitVariableExpression ( VariableExpression expr ) {
if ( expr instanceof OldValueExpression ) {
Expression originalExpr = ( ( OldValueExpression ) expr ) . get... | undid previous checkin |
<nb> public class DataImport extends Composite
@ override
public void execute ( )
{
+ SINGLE
+ localFiles_ = null ;
+
if ( dataImportFileChooser_ . getText ( ) != importOptions_ . getImportLocation ( ) )
{
lastSuccessfulResponse_ = null ;
- localFiles_ = null ;
resetColumnDefinitions ( ) ;
} | invalidate cache when users clicks update in data import even for the same file |
<nb> abstract class AbstractCommandLineRunner < A extends Compiler ,
for ( String line : Files . readLines ( file , Charsets . UTF_8 ) ) {
out . append ( line + STRING0 ) ;
}
+ out . append ( STRING0 ) ;
}
} | print an empty line after each source input file |
<nb> public final class Es6RewriteGenerators extends NodeTraversal . AbstractPostOrderC
break ;
case Token . CASE :
if ( controlCanExit ( n . getFirstChild ( ) ) ) {
- compiler . report ( JSError . make ( currentStatement , Es6ToEs3Converter . CANNOT_CONVERT_YET ,
+ compiler . report ( JSError . make ( n , Es... | Fix error source references when decomposing yield expressions |
<nb> public class FileSystemMasterServiceHandler implements FileSystemMasterService . I
}
@ override
- public boolean freePath ( long fileId , boolean recursive )
+ public boolean free ( long fileId , boolean recursive )
throws FileDoesNotExistException , TException {
return mFileSystemMaster . free ( fil... | Fix renamed rpc |
<nb> public abstract class VoiceInteractionSession implements KeyEvent . Callback {
Request removeRequest ( IBinder reqInterface ) {
synchronized ( this ) {
- Request req = mActiveRequests . get ( reqInterface ) ;
- if ( req != null ) {
- mActiveRequests . remove ( req ) ;
- }
- return req ;
+ return ... | Fix request removal in VoiceInteractionSession |
<nb> public class BottomBar extends LinearLayout implements View . OnClickListener , Vie
private void handleBackgroundColorChange ( BottomBarTab tab , boolean animate ) {
Integer newColor = tab . getBarColorWhenSelected ( ) ;
- if ( newColor == null ) {
+ if ( newColor == null || mCurrentBackgroundColor == ne... | Now if the current BottomBar color is the same as the new possible color we don t do anything |
<nb> public final class HttpUrl {
}
private List < String > percentDecode ( List < String > list , boolean plusIsSpace ) {
- List < String > result = new ArrayList < > ( list . size ( ) ) ;
- for ( String s : list ) {
+ int size = list . size ( ) ;
+ List < String > result = new ArrayList < > ( size ) ;
... | Modify for loop more performance sensitively |
<nb> public class SymbolHandler extends MatchingHandler {
this . handler = handler ;
}
+ @ override
public boolean match ( PsiElement patternNode , PsiElement matchedNode , MatchContext context ) {
- SINGLE
-
- return handler . handle ( matchedNode , context ) ;
+ return handler . canMatch ( patternNo... | no duplicate results when searching for symbols |
<nb> public class Session extends SimpleIQ {
public static final String ELEMENT = STRING0 ;
public static final String NAMESPACE = STRING1 ;
- private static final String SESSION = STRING2 + ELEMENT + STRING3 + NAMESPACE + STRING4 ;
-
public Session ( ) {
super ( ELEMENT , NAMESPACE ) ;
setType ( IQ . T... | Remove unused private field in Session |
<nb> public abstract class DiffElement < T > implements Disposable {
public abstract String getName ( ) ;
public String getPresentablePath ( ) {
- return getPath ( ) ;
+ return getName ( ) ;
}
public abstract long getSize ( ) ; | make getPresentablePath return getName by default |
<nb> final class SQLiteBooksDatabase extends BooksDatabase {
private void migrate ( ) {
final int version = myDatabase . getVersion ( ) ;
- final int currentVersion = NUMBER0 ;
+ final int currentVersion = NUMBER1 ;
if ( version >= currentVersion ) {
return ;
}
<nb> final class SQLiteBooksDatabase ext... | remove obsolete RecentBooks table |
<nb> public class ImageManager {
final Bitmap result = resizeIfNotFound ( is ) ;
finishResize ( result , false ) ;
} catch ( Exception e ) {
- cb . onLoadFailed ( e ) ;
+ handleException ( e ) ;
}
}
} ) ; | Always call handleException rather than cb |
<nb> public class ReferenceProvidersRegistry implements ProjectComponent {
public static ReferenceProviderType DYNAMIC_PATH_REFERENCES_PROVIDER = new ReferenceProviderType ( STRING0 ) ;
public static ReferenceProviderType CSS_CLASS_OR_ID_KEY_PROVIDER = new ReferenceProviderType ( STRING1 ) ;
public static Referen... | exposing schema reference provider |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
public class ThroughputCounterManagerThread extends Periodical {
+ private static final Logger LOG = LoggerFactory . getLogger ( ThroughputCounterMana... | missed some file how did this happen |
<nb> import NAMESPACE ;
import NAMESPACE ;
public interface StickyRecyclerHeadersAdapter < VH extends RecyclerView . ViewHolder > {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public long getHeaderId ( int position ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | Updated documentation on StickyRecyclerHeadersAdapter |
<nb> public class UsageMessageFormatter {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected StringBuilder renderOptionsAndArguments ( StringBuilder sb , List < Option > options , List < Argument > argumen... | Fix javadoc comment |
<nb> public class DeepLearningSpiralsTest extends TestUtil {
}
pred . delete ( ) ;
mymodel . delete ( ) ;
+ mymodel . delete_best_model ( ) ;
}
}
} | Fix memory leak also delete the best model |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | core Remove unused import from TWAbsLayoutManager |
<nb> public class PGraphics extends PImage implements PConstants {
targetsCreated ++ ;
} else {
target = targetPool . take ( ) ;
- if ( target . width != requestedWidth ||
- target . height != requestedHeight ) {
- target . width = requestedWidth ;
- target . height = requestedHeight ;
+ if ( target . p... | Fix resizing targets for async save |
<nb> public abstract class AbstractProcessFailureRecoveryTest {
new PipeForwarder ( taskManagerProcess2 . getErrorStream ( ) , processOutput2 ) ;
SINGLE
- SINGLE
- waitUntilNumTaskManagersAreRegistered ( jmActor , NUMBER0 , NUMBER1 ) ;
+ SINGLE
+ waitUntilNumTaskManagersAreRegistered ( jmActor , NUMBER0 ,... | tests Increase timeouts for process failure tests in order to compensate for volatile CI environments Travis |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class GroovyStringLiteralManipulator extends AbstractElementManipulator < GrLiteral > {
<nb> public class GroovyStringLiteralManipulator extends AbstractElementManipulator < G ... | Fix Grails test |
<nb> public class BlockJUnit4ClassRunner extends ParentRunner < FrameworkMethod >
SINGLE
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected List < FrameworkMethod > computeTestMethods ( ) {
return getTestClass ( ) . getAnnotatedMethods ( Test . class ) ; | Fixed a javadoc on BlockJUnit4ClassRunner |
<nb> public class DefaultServlet
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- protected void displaySize ( StringBuilder buf , int filesize ) {
-
- int leftside = filesize / NUMBER0 ;
- int rightside = ( filesize % NUMBER0 ) / NUMBER1 ; SINGLE
- SINGLE
- if ( leftside == ... | Delete deprecated and unused code |
<nb> public class AsyncReceiverImpl implements Receiver {
try {
int res ;
do {
+ if ( paused ) {
+ return ;
+ }
try {
buffer . clear ( ) ;
res = channel . read ( buffer ) ;
<nb> public class AsyncReceiverImpl implements Receiver {
try {
int res ;
do {
+ if ( paused ) {
+ return ;
+ }
t... | Fix bug in async receiver |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractLanguageConcurrencyTest {
volatile int failedTests ;
+ @ ignore ( STRING0 )
@ test
public void testSpellCheckerFailur... | ignore test here too it s already ignored on the Maven level |
<nb> public abstract class AbstractCacheManager implements CacheManager , Initializing
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ protected final void addCache ( Cache cache ) {
+ String name = cache . getName ( ) ;
+ synchronized ( this . cacheMap ) {
+ if ( this . cache... | Keep deprecated addCache method e g for Spring Data Redis |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | import missing class fix compilation error |
<nb> public interface IAtomicReference < E > extends DistributedObject {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
E setAndGet ( E update ) ; | deprecated IAtomicReference setAndGet method |
<nb> public class FileCacheService
{
private static final Logger logger = LoggerFactory . getLogger ( FileCacheService . class ) ;
- private static final long MEMORY_USAGE_THRESHOLD = DatabaseDescriptor . getFileCacheSizeInMB ( ) * NUMBER0 * NUMBER0 ;
+ private static final long MEMORY_USAGE_THRESHOLD = Datab... | use long math for long values |
<nb> public class DateUtils implements DateConstants {
return null ;
}
- public static long absoluteTimeout ( int relativeTimeoutSeconds ) {
+ public static long absoluteTimeout ( double relativeTimeoutSeconds ) {
if ( relativeTimeoutSeconds <= NUMBER0 )
return Long . MAX_VALUE ;
else
- return System ... | allow fractional seconds for timeouts |
<nb> public class ObjectArrayPutAtMetaMethod extends ArrayPutAtMetaMethod {
Character ch = DefaultTypeTransformation . getCharFromSizeOneString ( newValue ) ;
adjustedNewVal = DefaultTypeTransformation . castToType ( ch , arrayComponentClass ) ;
}
+ } else if ( arrayComponentClass . isArray ( ) ) {
+ adjusted... | enable coercion for multidim array |
<nb> public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
SINGLE
private final int FACELOCK_VIEW_AREA_SERVICE_TIMEOUT = NUMBER0 ;
+ SINGLE
+ private final int BACKUP_LOCK_TIMEOUT = NUMBER1 ;
+
COMMENT
COMMENT
COMMENT
<nb> public class LockPatternKeyguardView extends Keygu... | Poking wakelock upon fallback |
<nb> import NAMESPACE ;
handler . sendEmptyMessage ( MSG_DO_SOME_WORK ) ;
} else {
if ( renderer == rendererMediaClockSource ) {
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
standaloneMediaClock . setPositionUs ( rendererMediaClock . getPositionUs ( ) ) ;
}
ensureStopped ( renderer ) ; | Fix stale comment |
<nb> class LanguageComboBoxRenderer extends JLabel implements ListCellRenderer < Langua
}
private String getTranslatedName ( Language language ) {
+ String name = language . getTranslatedName ( messages ) ;
if ( language . isExternal ( ) ) {
- return language . getName ( ) + extLangSuffix ;
- } else {
-... | show translated name also for external languages |
<nb> class BlockingBlurController implements BlurController {
rootView . getViewTreeObserver ( ) . addOnPreDrawListener ( drawListener ) ;
}
- private void updateBlur ( ) {
+ void updateBlur ( ) {
isMeDrawingNow = true ;
blurView . invalidate ( ) ;
}
<nb> class BlockingBlurController implements BlurCo... | Fix lint warning |
<nb> public class DefaultIdeaErrorLogger implements ErrorLogger {
processOOMError ( event ) ;
}
else if ( ! ourOomOccured ) {
- IdeaLoggingEvent eventToAdd = new IdeaLoggingEvent ( event . getMessage ( ) , new ExceptionHolder ( event . getThrowable ( ) ) ) ;
- MessagePool . getInstance ( ) . addIdeFatalMessag... | revert incorrect change of DefaultIdeaErrorLogger |
<nb> public class SurroundAction extends AbstractGuiEditorAction {
}
selectionParent . addComponent ( newContainer ) ;
- if ( newContainer instanceof RadTabbedPane ||
- newContainer instanceof RadSplitPane ) {
+ if ( newContainer instanceof RadTabbedPane ) {
+ SINGLE
+ assert newContainer . getComponent... | Surround with JTabbedPane created an extra tab |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Add a note on serialization rendering to Config docs |
<nb> public abstract class ExternalResourceResolver implements ModuleVersionPublisher
SINGLE
IvyArtifactName metaDataArtifact = getMetaDataArtifactName ( dependency . getRequested ( ) . getName ( ) ) ;
- listVersionsForAllPatterns ( getIvyPatterns ( ) , metaDataArtifact , versionList ) ;
+ if ( metaDataArtifa... | Handle possible null value |
<nb> public final class AudioState implements Parcelable {
@ override
public String toString ( ) {
return String . format ( Locale . US ,
- STRING0 ,
+ STRING1 ,
isMuted ,
audioRouteToString ( route ) ,
audioRouteToString ( supportedRouteMask ) ) ; | Change a semi colon to a colon in AudioState logging |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AbbreviationManagerImpl extends AbbreviationManager implements
final String abbrValue = abbr . getAttributeValue ( STRING0 ) ;
if ( abbrValue != null ) {
values . add ( abbrValue ) ;
+ List < String > actionIds = myAbbrevia... | Can t find action by abbreviation after restart |
<nb> public interface DateHistogram extends Histogram {
static interface Bucket extends Histogram . Bucket {
COMMENT
- COMMENT
+ COMMENT
COMMENT
DateTime getKeyAsDate ( ) ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPAC... | Changed the DateHistogram Bucket to return the date key in UTC timezone |
<nb> public class BreakPanelToolbarFactory {
}
}
- public void setBreakRequest ( Boolean brk ) {
+ public void setBreakRequest ( boolean brk ) {
isBreakRequest = brk ;
resetRequestSerialization ( false ) ;
updateBreakRequestBtn ( ) ;
}
- public void setBreakResponse ( Boolean brk ) {
+ public ... | Changed the type parameter of the methods BreakPanelToolbarFactory setBreakRequest Boolean and setBreakResponse Boolean to boolean |
<nb> public final class LifecycleSupport {
public void fireLifecycleEvent ( String type , Object data ) {
LifecycleEvent event = new LifecycleEvent ( lifecycle , type , data ) ;
- LifecycleListener interested [ ] = null ;
- synchronized ( listeners ) {
- interested = ( LifecycleListener [ ] ) listeners . cl... | Remove sync clone to be consistent |
<nb> public class MSSQLDatabase extends AbstractJdbcDatabase {
return selectOnly ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
@ override
- public String escapeViewName ( String catalogName , String schemaName , String viewName ) {
- return escapeObjectName ( null , schemaName , viewName , View . clas... | Cannot use catalog names for views in mssql |
<nb> public class NettyConsumer extends DefaultConsumer {
new FixedReceiveBufferSizePredictorFactory ( configuration . getReceiveBufferSizePredictor ( ) ) ) ;
}
if ( configuration . getBacklog ( ) > NUMBER0 ) {
- serverBootstrap . setOption ( STRING0 , configuration . getBacklog ( ) ) ;
+ connectionlessServer... | Added option backlog to camel netty |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Robolectric {
return ( ShadowNotification ) Robolectric . shadowOf_ ( other ) ;
}
+ public static < E > SparseArray < E... | Added shadowOf SparseArray |
<nb> public abstract class MultiplePsiFilesPerDocumentFileViewProvider extends Single
}
protected void removeFile ( final Language language ) {
- synchronized ( PsiLock . LOCK ) {
- myRoots . remove ( language ) ;
- }
+ myRoots . remove ( language ) ;
}
protected PsiFile getPsiInner ( final Language... | remove unnecessary PsiLock sync |
<nb> public class PsiDirectoryNode extends BasePsiNode < PsiDirectory > {
final boolean isWritable = virtualFile . isWritable ( ) ;
data . setPresentableText ( name ) ;
- if ( ProjectRootsUtil . isModuleContentRoot ( directoryFile , project ) || ProjectRootsUtil . isLibraryRoot ( directoryFile , project ) ) {
... | don t show location string if it s identical to presentable text |
<nb> public final class SplitTestFn extends OryxDoFn < String , Pair < String , String > > {
@ override
public void initialize ( ) {
+ super . initialize ( ) ;
random = RandomManager . getRandom ( ) ;
}
<nb> public final class CentersOutputFn extends OryxDoFn < KMeansEvaluationData , String
@ overri... | Add missing call to super initialize in some Fns |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class HttpHandlers {
handler . handleRequest ( exchange , completionHandler ) ;
} catch ( Throwable t ) {
try {
+ UndertowLogger . REQUEST_LOGGER . exceptio... | Log exception when executing a handler |
<nb> public class CanvasImpl implements CanvasControl {
Rect2i finalRegion = state . cropRegion . intersect ( absoluteRegion ) ;
if ( ! finalRegion . isEmpty ( ) ) {
- int sx = finalRegion . minX ( ) ;
- int sy = finalRegion . minY ( ) ;
- int ex = finalRegion . maxX ( ) ;
- int ey = finalRegion . maxY ( ... | Fix an issue with drawLine connecting wrong edges of a rectangle |
<nb> public class HighlyAvailableGraphDatabase implements GraphDatabaseService , Respo
private void startAsSlave ( )
{
- this . broker = brokerFactory . create ( ) ;
+ ensureBrokerInstantiated ( ) ;
this . localGraph = new EmbeddedGraphDbImpl ( storeDir , config , this ,
new SlaveLockManagerFactory ( brok... | Prevent instantiation of more than one broker |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> public class HistoryReference {
public static final int TYPE_SPIDER_AJAX = NUMBER0 ;
SINGLE
public static final int TYPE_AUTHENTICATION = NUMBER1 ;
+ SINGLE
+ public static final int TYPE_ACCESS_CONTROL = NUMBER2 ;
public static fin... | Added HistoryReference type for access control testing messages |
<nb> public class TestWithWallet {
public void setUp ( ) throws Exception {
BriefLogFormatter . init ( ) ;
Wallet . SendRequest . DEFAULT_FEE_PER_KB = Coin . ZERO ;
+ Context ctx = new Context ( params ) ;
wallet = new Wallet ( params ) ;
myKey = wallet . currentReceiveKey ( ) ;
myAddress = myKey . toAddr... | Create context for TestWithWallet |
<nb> public class SqlParser {
SINGLE
SQLListExpr listExpr = ( SQLListExpr ) sqlExpr ;
select . addGroupBy ( convertExprsToFields ( listExpr . getItems ( ) ) ) ;
+ } else {
+ SINGLE
+ standardGroupBys . add ( sqlExpr ) ;
}
}
if ( ! standardGroupBys . isEmpty ( ) ) { | Fixed a bug where expr that were not Identifier or List would be left out |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.