diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MapActivity extends AccessibleActivity {
public View getLayout ( ) {
return getWindow ( ) . getDecorView ( ) . findViewById ( android . R . id . content ) ;
}
+
+ @ override
+ public boolean onTouchEvent ( MotionEvent event ) {
+ return mapViewController . onTouchEvent ( event ) ;
+ } ... | Added support for simple gestures on map |
<nb> public final class GLTracer implements InvocationHandler {
noEnumArgs ( STRING0 , NUMBER0 ) ;
noEnumArgs ( STRING1 , NUMBER0 , NUMBER1 ) ;
noEnumArgs ( STRING2 , NUMBER0 ) ;
+ noEnumArgs ( STRING3 , NUMBER0 ) ;
+ noEnumArgs ( STRING4 , NUMBER0 ) ;
noEnumArgs ( STRING5 , NUMBER0 ) ;
noEnumArgs ( STRIN... | Add two more glUniform functions as no enum args in GLTracer |
<nb> public class AndOperator
private final List < TupleStream > sources ;
private final Range range ;
- public AndOperator ( TupleStream . . . sources )
+ public AndOperator ( List < TupleStream > sources )
{
Preconditions . checkNotNull ( sources , STRING0 ) ;
- Preconditions . checkArgument ( sources... | Add list constructor |
<nb> public class FailOnTimeout extends Statement {
private StatementThread evaluateStatement ( ) throws InterruptedException {
StatementThread thread = new StatementThread ( fOriginalStatement ) ;
- thread . setDaemon ( true ) ; SINGLE
+ SINGLE
+ thread . setDaemon ( true ) ;
thread . start ( ) ;
fTime... | no deleteOnExit no inline comment added space in comment |
<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 ;
<nb> import NAM... | Remove bad imports in SpongeMod |
<nb> public class ProjectFilesystem {
mode |= S_IFDIR ;
}
- if ( isSymLink ( path ) ) {
- mode |= S_IFLNK ;
- }
-
SINGLE
mode |= MorePosixFilePermissions . toMode ( getPosixFilePermissions ( path ) ) ;
<nb> public class ZipStepTest {
Paths . get ( STRING0 ) ) ;
assertEquals ( NUMBER0 , step . ... | don t set symlink mode when zipping |
<nb> public class PullToRefreshListView extends PullToRefreshAdapterViewBase < ListView
final int newY = ( deltaY + scrollY ) ;
if ( newY != NUMBER0 ) {
+ SINGLE
if ( ( mode . canPullDown ( ) && newY < NUMBER0 ) || ( mode . canPullUp ( ) && newY > NUMBER0 ) ) {
setHeaderScroll ( PullToRefreshListView . this... | Add a bit of doc to previous commit |
<nb> public class BikeParkGraphBuilder implements GraphBuilder {
private static Logger LOG = LoggerFactory . getLogger ( BikeParkGraphBuilder . class ) ;
private BikeParkDataSource dataSource ;
-
- @ setter
+
private String namePrefix ;
public void setDataSource ( BikeParkDataSource dataSource ) {
t... | Remove old reference to Lombok |
<nb> public class JPAAnnotationParseProcessor implements DeploymentUnitProcessor {
}
scopedPuName = PersistenceUnitSearch . resolvePersistenceUnitSupplier ( deploymentUnit , searchName ) ;
if ( null == scopedPuName ) {
- classDescription . setInvalid ( STRING0 + puName . asString ( ) + STRING1 + deploymentUnit ... | Do not throw an NPE if the JPA annotations do not specify a unit name |
<nb> public class ArrayEqualsInspection extends BaseInspection {
STRING0 ) ;
}
- public InspectionGadgetsFix buildFix ( PsiElement location ) {
- return new ArrayEqualsFix ( ) ;
- }
-
@ notnull
public String buildErrorString ( Object . . . infos ) {
return InspectionGadgetsBundle . message (
STRIN... | enable some inspections by default |
<nb> public class BlockingIOCometSupport extends AsynchronousProcessor implements Com
if ( nextAction . type == Action . TYPE . SUSPEND ) {
if ( logger . isLoggable ( Level . FINE ) ) {
logger . fine ( STRING0 + res ) ;
- suspend ( action , req , res ) ;
}
+ suspend ( action , req , res ) ;
}
}
} fina... | Fix more stupid mistake when logging has been added Spotted by Patrick Osborne |
<nb> public class TestNaiveBayesDriver extends AbstractJob {
bestIdx = element . index ( ) ;
}
}
- if ( bestIdx != Integer . MAX_VALUE ) {
+ if ( bestIdx != Integer . MIN_VALUE ) {
ClassifierResult classifierResult = new ClassifierResult ( labelMap . get ( bestIdx ) , bestScore ) ;
analyzer . addInstance ... | should check min val |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CamelNamespaceHandler extends NamespaceHandlerSupport {
private static final String SPRING_NS = STRING0 ;
private static final Log LOG = LogFa... | Spring XML can now use routeContext to have routes defined in external XML files |
<nb> public class GangliaReporter extends AbstractPollingReporter implements MetricPr
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public GangliaReporter ( String gangliaHost , int port , boolean compressPackageNames ) throws IOException { | Fix some GangliaReporter javadoc |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
+
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public class HasToString < T > extends BaseMatcher < T > {
<nb> public class HasToString < T > extends BaseMatcher ... | Added hasToString String |
<nb> public class ClassInfo extends ConcurrentSoftMap . Entry < Class , ClassInfo > {
if ( answer != null ) return answer ;
final MetaClassRegistry metaClassRegistry = GroovySystem . getMetaClassRegistry ( ) ;
- answer = ( ( MetaClassRegistryImpl ) metaClassRegistry ) . metaClassCreationHandle . create ( get ( ... | reducing visibility of MetaClassRegistryImpl metaClassCreationHandle to avoid too much implementation dependance see removed cast in ClassInfo |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BalloonImpl implements Disposable , Balloon , LightweightWindow , Posi
}
private void show ( PositionTracker < Balloon > tracker , Position ... | no not show balloon if component is not shown |
<nb> public class BlockMetadataManager {
public synchronized BlockMeta moveBlockMeta ( BlockMeta blockMeta , BlockStoreLocation newLocation )
throws IOException {
SINGLE
+ SINGLE
if ( newLocation . equals ( BlockStoreLocation . anyTier ( ) ) ) {
return blockMeta ;
}
<nb> public class BlockMetadataManage... | Fix a bug in moveBlockMeta where we don t check the destination tier s available bytes |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProtectedResourceProcessingFilter extends OAuthProviderProcessingFi
ConsumerAuthentication authentication = ( ConsumerAuthentication ) SecurityCon... | allow for token in oauth header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Updated docs fixed cs errors |
<nb> public class CommandLineArguments {
}
public boolean isLocal ( ) {
- return true ;
+ return local ;
}
public void setDebug ( boolean debug ) { | return actual value of isLocal in command line args |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class OServerCommandPostDatabase extends OServerCommandAuthenticatedServerAbstract {
<nb> public class OServerCommandPostDatabase extends OServerCommandAuthenticatedServe
try... | Fixed problem on creation database with nested path via URL |
<nb> public final class ActiveServices {
} finally {
if ( ! created ) {
app . services . remove ( r ) ;
+ r . app = null ;
scheduleServiceRestartLocked ( r , false ) ;
}
}
<nb> public final class ActiveServices {
long now = SystemClock . uptimeMillis ( ) ;
r . tracker . setExecuting ( false , memFac... | Still seeing some processes not on LRU list errors |
<nb> public class DescriptorResolver {
if ( ! variable . hasInitializer ( ) ) {
if ( hasDelegate && variableDescriptor instanceof PropertyDescriptor ) {
final JetProperty property = ( JetProperty ) variable ;
- final JetExpression propertyDelegateExpression = property . getDelegateExpression ( ) ;
- if ( prop... | Do not invoke getDelegateExpression before it is needed |
<nb> public class WriterReaderPhaser {
long initialStartValue ;
SINGLE
if ( nextPhaseIsEven ) {
- evenEndEpoch = initialStartValue = NUMBER0 ;
+ initialStartValue = NUMBER0 ;
+ evenEndEpochUpdater . lazySet ( this , initialStartValue ) ;
} else {
- oddEndEpoch = initialStartValue = Long . MIN_VALUE ;
... | Changed the flipPhase resets of the inactive end epochs to use lazySet instead of the more expensive volatile write |
<nb> public class WebAppProvider extends ScanningAppProvider
XmlConfiguration xmlc = new XmlConfiguration ( resource . getURL ( ) ) ;
xmlc . getIdMap ( ) . put ( STRING0 , getDeploymentManager ( ) . getServer ( ) ) ;
+ xmlc . getProperties ( ) . put ( STRING1 , System . getProperty ( STRING1 , STRING2 ) ) ;
+... | jetty start fixed deploy of jetty base |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ContextMenuImpl extends JPanel implements Disposable {
}
final VirtualFile file = FileDocumentManager . getInstance ( ) .... | enable soft wrap toggle action in previews of decompiled files |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class Version {
- public static final String VERSION = STRING0 ;
+ public static final String VERSION = STRING1 + new Date ( ) ;
private static Logge... | Bump version numbers |
<nb> public abstract class HttpOverSpdyTest {
assertEquals ( - NUMBER0 , in . read ( ) ) ;
}
+ @ ignore SINGLE
@ test ( timeout = NUMBER1 ) public void readResponseHeaderTimeout ( ) throws Exception {
server . enqueue ( new MockResponse ( ) . setSocketPolicy ( SocketPolicy . NO_RESPONSE ) ) ;
server . enq... | Ignore a broken test for SPDY failure recovery |
<nb> public class ClusterStateManager {
private static final class StateManagerExceptionHandler implements FutureUtil . ExceptionHandler {
private final ILogger logger ;
+ SINGLE
private Throwable error ;
private StateManagerExceptionHandler ( ILogger logger ) { | Clarify usage of StateManagerExceptionHandler error field with a comment |
<nb> public class HyperLogLogPlus implements ICardinality
public HyperLogLogPlus ( int p , int sp , List < byte [ ] > sparseSet , RegisterSet registerSet )
{
+ if ( p < NUMBER0 || p > sp )
+ {
+ throw new IllegalArgumentException ( STRING0 ) ;
+ }
+ if ( sp > NUMBER1 )
+ {
+ throw new IllegalArgumen... | add basic validation of constructor args |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
boolean mustAcquire = ! isReadAccessAllowed ( ) ;
if ... | must not hold PsiLock while doing read action |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public interface CommitDataGetter {
+
+ SINGLE
@ notnull
public CommitData getCommitData ( @ notnull Node node ) ;
+ @ notnull
+ public CommitD... | add CommitDataGetter getCommitData Hash |
<nb> public class DoSection implements ExecutableSection {
}
private String formatStatusCodeMessage ( RestResponse restResponse , String expected ) {
- return STRING0 + expected + STRING1 + apiCallSection . getApi ( ) + STRING2
+ String api = apiCallSection . getApi ( ) ;
+ if ( STRING3 . equals ( api ) ) {... | Improve logging of raw rest actions on failure |
<nb> class JspDefinition extends PersistentResourceDefinition {
boolean dumpSnap = DUMP_SMAP . resolveModelAttribute ( context , model ) . asBoolean ( ) ;
boolean generateStringsAsCharArrays = GENERATE_STRINGS_AS_CHAR_ARRAYS . resolveModelAttribute ( context , model ) . asBoolean ( ) ;
boolean errorOnUseBeanInval... | Properly handle undefined scratch directory |
<nb> public class GroupProperties {
MAP_WRITE_BEHIND_QUEUE_CAPACITY
= new GroupProperty ( config , PROP_MAP_WRITE_BEHIND_QUEUE_CAPACITY , STRING0 ) ;
ENTERPRISE_WAN_REP_QUEUESIZE = new GroupProperty ( config , PROP_ENTERPRISE_WAN_REP_QUEUESIZE , STRING1 ) ;
- CLIENT_HEARTBEAT_TIMEOUT_SECONDS = new GroupProperty... | Make the default client heartbeat timeout same as node heartbeat timeout value |
<nb> public class AndroidUtilities {
COMMENT
public static String bundleToSerializedString ( Bundle source ) {
StringBuilder result = new StringBuilder ( ) ;
+ if ( source == null )
+ return null ;
+
for ( String key : source . keySet ( ) ) {
addSerialized ( result , key , source . get ( key ) ) ;
}
... | Fix for crash in gtasks widget |
<nb> public class RecoveryTargetService extends AbstractComponent implements IndexEve
} else {
metadataSnapshot = recoveryTarget . indexShard ( ) . snapshotStoreMetadata ( ) ;
}
+ } catch ( org . apache . lucene . index . IndexNotFoundException e ) {
+ SINGLE
+ metadataSnapshot = Store . MetadataSnapshot . ... | don t log an error when listing an empty folder |
<nb> public class ScrollPane extends WidgetGroup {
if ( ! panning ) {
if ( overscrollX && scrollX ) {
- Gdx . graphics . requestRendering ( ) ;
if ( amountX < NUMBER0 ) {
resetFade ( ) ;
amountX += ( overscrollSpeedMin + ( overscrollSpeedMax - overscrollSpeedMin ) * - amountX / overscrollDistance )
<nb>... | Removed unnecessary requestRendering |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileAssociationsConfigurable implements FileOptionsProvider , NonDef
}
public JComponent createComponent ( ) {
- my... | read action for new settings editor |
<nb> public class Checkstyle extends SourceTask implements VerificationTask , Reportin
private TextResource config ;
private Map < String , Object > configProperties = new LinkedHashMap < String , Object > ( ) ;
private final CheckstyleReports reports ;
- private boolean ignoreFailures ;
+ private booleana ig... | Purposelessly introduce compilation issue for testing build tagging step |
<nb> package NAMESPACE ;
COMMENT
public class FinalizeTransition implements Transition {
public boolean isLegal ( State state ) {
- return ! state . finished && state . tokenPosition >= state . sentence . size ( ) ;
+ return ! state . finished && state . tokenPosition >= state . sentence . size ( ) && state .... | Can t finalize an incomplete tree |
<nb> public class AspectRatioTextView extends TextView {
int activeColor = getResources ( ) . getColor ( R . color . ucrop_color_widget_active ) ;
applyActiveColor ( activeColor ) ;
+
+ a . recycle ( ) ;
}
private void applyActiveColor ( @ colorint int activeColor ) { | Recycle attr TypedArray in AspectRatioTextView after use |
<nb> public class About extends Activity {
super . onCreate ( icicle ) ;
setContentView ( R . layout . about ) ;
- TextView appTitle = ( TextView ) findViewById ( R . id . about_first_line ) ;
if ( BlackBerryUtils . getInstance ( ) . isPlayBook ( ) ) {
+ TextView appTitle = ( TextView ) findViewById ( R . i... | Modified the function that detects the BB runtime |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Parameterized extends CompositeRunner implements Filterable {
SINGLE
private Constructor < ? > getOnlyConstructor ( ) {
- Constructor < ? ... | Added getOnlyConstructor API to TestClass using it here |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Delete unneeded import |
<nb> public class Thread implements Runnable {
NativeThread * nt = ( NativeThread * ) self - > nativeThread_ ;
pthread_attr_t attr ;
pthread_attr_init ( & attr ) ;
- jlong stack = self - > stackSize_ ;
- if ( stack != NUMBER0 ) {
+ size_t stack = ( size_t ) self - > stackSize_ ;
+ if ( stack >= PTHREAD_ST... | Fixed integer precision loss warning error in new thread code |
<nb> public class TestNGForkTest {
STRING0 +
STRING1 +
STRING2 +
- STRING3 , generatedSuite ) ;
+ STRING3 , StringUtil . convertLineSeparators ( generatedSuite ) ) ;
Assert . assertFalse ( myStarted ) ;
myStarted = true ;
return NUMBER0 ; | ensure line separators |
<nb> public class ControllerActionTransformer implements GrailsArtefactClassInjector
STRING0 +
classNode . getName ( ) +
STRING1 ;
- String formattedMessage = String . format ( message , method . getName ( ) , classNode . getName ( ) ) ;
- error ( source , formattedMessage ) ;
+ error ( source , message ) ;... | Fix copy paste problem |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class PsiAnnotationImpl extends JavaStubPsiElement < PsiAnnotationStub > implements PsiAnnotation , PsiQualifiedNamedElement {
+ public class PsiAnnotationImpl extends JavaStubPsiElement < PsiAnnotationStub > implements PsiAnnotation {
public PsiAnnot... | revert PsiQualifiedNamedElement implementation for java annotations |
<nb> public class EditSession {
final int existing = world . getBlockType ( pt ) ;
SINGLE
- if ( BlockType . isContainerBlock ( existing ) && blockBag == null ) {
+ if ( BlockType . isContainerBlock ( existing ) ) {
world . clearContainerBlockContents ( pt ) ;
SINGLE
} else if ( existing == BlockID . IC... | Fixed ContainerBlocks spilling items when edited |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CodeFlow implements Opcodes {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CodeFlow implements Opcodes {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMME... | Fix copy paste error in Javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class MediaSessionCompat {
registeredRcc = true ;
} else if ( mIsRccRegistered
&& ( mFlags & FLAG_HANDLES_TRANSPORT_CONTROLS ) == NUMBER0 ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ MediaSessionCompatApi14 . setState ( mRccObj , PlaybackStateCompat . STATE_NONE ) ;
MediaSessionCompatApi14 . unregisterR... | fix the flaky remote volume slider issue |
<nb> public abstract class AbstractOttoHandler extends BaseAnnotationHandler < ECompone
@ override
public void validate ( Element element , ElementValidation valid ) {
if ( ! annotationHelper . enclosingElementHasEnhancedComponentAnnotation ( element ) ) {
- valid . invalidate ( ) ;
+ SINGLE
return ;
}
... | ignore otto annotations for not enhanced classes |
<nb> public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData
if ( id instanceof OrientVertex )
return ( OrientVertex ) id ;
+ else if ( id instanceof ODocument )
+ return new OrientVertex ( this , ( OIdentifiable ) id ) ;
ORID rid ;
if ( id instanceof OIdentifiable )
<nb> p... | Fixed problem against loading of graph elements via remote |
<nb> public class IdTableBuilding {
final Language lang = ( ( LanguageFileType ) fileType ) . getLanguage ( ) ;
if ( lang != null ) {
final FindUsagesProvider findUsagesProvider = lang . getFindUsagesProvider ( ) ;
- final WordsScanner scanner = findUsagesProvider . getWordsScanner ( ) ;
+ final WordsScanner ... | NPE fixed that caused by plugin that violates NotNull constraint |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OSQLFilterItemField extends OSQLFilterItemAbstract {
SINGLE
if ( doc . deserializeFields ( preLoadedFieldsArray ) ) {
- final Object v = O... | Improved speed on SQL evaluation |
<nb> public class Thread implements Runnable {
NSThread * currentThread = [ NSThread currentThread ] ;
NSMutableDictionary * currentThreadData = [ currentThread threadDictionary ] ;
if ( ! group ) {
- JavaLangThread * currentJavaThread =
- [ currentThreadData objectForKey : JavaLangThread_JAVA_THREAD_ ] ;
-... | initialize current thread during class initialization to support GCD use |
<nb> public class IndicesFilterCache extends AbstractComponent implements QueryCache ,
@ override
public void close ( ) {
assert shardKeyMap . size ( ) == NUMBER0 : shardKeyMap . size ( ) ;
- assert shardStats . isEmpty ( ) ;
+ assert shardStats . isEmpty ( ) : shardStats . keySet ( ) ;
assert stats2 . isEm... | Add information about shards that are not closed when the filter cache gets closed |
<nb> public class NettyRatpackServer implements RatpackServer {
. channel ( NioServerSocketChannel . class )
. childHandler ( channelInitializer )
. childOption ( ChannelOption . ALLOCATOR , launchConfig . getBufferAllocator ( ) )
- . childOption ( ChannelOption . TCP_NODELAY , true )
- . option ( ChannelOpti... | Remove network config |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FeedRefreshWorker implements Managed {
SINGLE
List < FeedEntry > entries = fetchedFeed . getEntries ( ) ;
+ Integer maxFeedCapacity = conf... | skip entries that were deleted by the cleanup task |
<nb> public class ByteCounter extends HttpServlet {
this . sos = sos ;
SINGLE
- SINGLE
+ SINGLE
SINGLE
sis . setReadListener ( this ) ;
sos . setWriteListener ( this ) ; | Fix copy paste error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QueryIndexingTest extends HazelcastTestSupport {
private static Config newConfig ( final Map < Integer , Employee > employees... | Disabling replication since we don t use backups in this test |
<nb> public class FileBasedIndex implements ApplicationComponent {
}
}
}
+ if ( ! markForReindex ) {
+ w . lock ( ) ;
+ try {
+ myFilesToUpdate . remove ( file ) ; SINGLE
+ }
+ finally {
+ w . unlock ( ) ;
+ }
+ }
IndexingStamp . flushCache ( ) ;
}
} | remove a file from update queue before deletion |
<nb> final class ByteProperty extends NumberPropertyWithin4Bytes
{
if ( other instanceof Byte )
{
- return other == ( byte ) value ;
+ return ( ( Byte ) other ) . byteValue ( ) == value ;
}
return valueCompare ( value , other ) ; | Fixed a compilation problem |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class AxolotlService { | Remove unused import |
<nb> public class KeySetManagerService {
private final ArrayMap < String , PackageSetting > mPackages ;
- private static long lastIssuedKeySetId = NUMBER0 ;
+ private long lastIssuedKeySetId = NUMBER0 ;
- private static long lastIssuedKeyId = NUMBER0 ;
+ private long lastIssuedKeyId = NUMBER0 ;
clas... | Remove static modifier from KeySetManagerService issuedIds |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PrivacyService {
}
}
}
+ } catch ( SQLiteException ex ) {
+ Util . log ( null , Log . WARN , ex . toString ( ) ) ;
... | Catch SQLiteException support info |
<nb> public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwabl
{
if ( rt == Void . TYPE )
return null ;
+ else if ( method . getName ( ) . equals ( STRING0 ) )
+ {
+ return proxy == args [ NUMBER0 ] ;
+ }
+ else if ( method . getName ( ) . equals ( STRING1 ) )
+ {
+ ret... | added default handling of equals toString and hashCode |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | added license text to mdns class |
<nb> public class DownloadIndexActivity extends ExpandableListActivity {
public DownloadIndexAdapter ( Map < String , IndexItem > indexFiles ) {
this . indexFiles = new LinkedHashMap < String , IndexItem > ( indexFiles ) ;
+ list . clear ( ) ;
list . addAll ( categorizeIndexItems ( indexFiles . values ( ) ) )... | Add hierarchy view to downloads |
<nb> class NavigationBarAppsModel {
|| appUserInfo . profileGroupId == UserInfo . NO_PROFILE_GROUP_ID
|| appUserInfo . profileGroupId != currentUserInfo . profileGroupId
|| ! appUserInfo . isEnabled ( ) ) {
- Log . e ( TAG , STRING0 + appUserId +
+ Slog . e ( TAG , STRING0 + appUserId +
STRING1 ) ;
return... | Replacing last log with Slog |
<nb> public class ResolveImportUtil {
PsiDirectory dir = null ;
PsiElement ret = null ;
if ( parent instanceof PyFile ) {
- ret = ( ( PyFile ) parent ) . getElementNamed ( referencedName ) ;
- if ( ret != null ) return ret ;
if ( PyNames . INIT_DOT_PY . equals ( ( ( PyFile ) parent ) . getName ( ) ) ) {
+... | tweak resolve logic to work better with PyGObject |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
mDreamManagerInternal = LocalServices . getService ( DreamManagerInternal . class ) ;
mPowerManagerInternal = LocalServices . getService ( PowerManagerInternal . class ) ;
mAppOpsManager = ( AppOpsManager ) mContext . getSystemService ( Context... | Remove duplicate initialization from bad merge |
<nb> public class CopyrightProfilesPanel extends MasterDetailsComponent {
@ nullable
@ nonnls
public String getHelpTopic ( ) {
- return STRING0 ;
+ return STRING1 ;
}
public void apply ( ) throws ConfigurationException { | fix help topics |
<nb> public class AuthenticationProcessingFilterBeanDefinitionParser extends Abstract
setPropertyIfAvailable ( element , ERROR_FORM_URL , STRING0 , definition ) ;
setPropertyIfAvailable ( element , DEFAULT_TARGET_URL , STRING1 , definition ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
return definition ; ... | Removed unnecessary comments |
<nb> public class WebView extends AbsoluteLayout
vx = NUMBER0 ;
}
}
- if ( true COMMENT ) {
- SINGLE
- vx = vx * NUMBER1 / NUMBER2 ;
- vy = vy * NUMBER1 / NUMBER2 ;
- }
if ( ( maxX == NUMBER0 && vy == NUMBER0 ) || ( maxY == NUMBER0 && vx == NUMBER0 ) ) {
WebViewCore . resumePriority ( ) ;
if ( ! m... | Don t cut velocity |
<nb> public class XMLConfigBuilder extends BaseBuilder {
}
configuration . setAutoMappingBehavior ( AutoMappingBehavior . valueOf ( props . getProperty ( STRING0 , STRING1 ) ) ) ;
configuration . setCacheEnabled ( booleanValueOf ( props . getProperty ( STRING2 ) , true ) ) ;
- configuration . setProxyFactory ( ... | Remove wrong cglib dependency |
<nb> public class TokenizerConverterTest {
}
@ test
+ public void testFilterWithNewlineBetweenKV ( ) {
+ final TokenizerConverter f = new TokenizerConverter ( new HashMap < > ( ) ) ;
+ @ suppresswarnings ( STRING0 )
+ final Map < String , String > result = ( Map < String , String > ) f . convert ( STRING1... | Add newline test for TokenizerConverter |
<nb> public class Analyzer
if ( expression instanceof AliasedExpression ) {
context . getSymbolAllocator ( ) . blacklist ( ( ( AliasedExpression ) expression ) . getAlias ( ) ) ;
}
+ else if ( expression instanceof QualifiedNameReference ) {
+ context . getSymbolAllocator ( ) . blacklist ( ( ( QualifiedNameRe... | Prevent collisions between symbol names and column names |
<nb> public class InsertExitModeHandler extends EditorActionHandler
public void execute ( Editor editor , DataContext context )
{
CommandGroups . getInstance ( ) . getChange ( ) . processEscape ( editor , context ) ;
- UndoManager . getInstance ( ) . endCommand ( editor ) ;
}
} | Removed unneeded call to end undo tx |
<nb> public class Validator {
private List < Field > getViewFieldsWithAnnotations ( ) {
List < Field > fieldsWithAnnotations = new ArrayList < Field > ( ) ;
- List < Field > declaredViewFields = getAllViewFields ( ) ;
- for ( Field viewField : declaredViewFields ) {
- Annotation [ ] annotations = viewField ... | Refactored variable names |
<nb> class EntityType extends BaseProcessableElement < TypeElement > implements EntityDe
. map ( javax . persistence . Table : : name ) . orElse (
element ( ) . getKind ( ) . isInterface ( ) || isImmutable ( ) ?
element ( ) . getSimpleName ( ) . toString ( ) :
- typeName ( ) . className ( ) ) ) ;
+ Names . re... | Improve default table naming for entities |
<nb> public enum SocketEvent {
DISCONNECT ,
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
ERROR , | Add detail to Javadoc |
<nb> abstract class GenericMapMaker < K0 , V0 > {
COMMENT
COMMENT
COMMENT
- @ gwtincompatible SINGLE
+ @ gwtincompatible
abstract GenericMapMaker < K0 , V0 > expireAfterAccess ( long duration , TimeUnit unit ) ;
COMMENT
<nb> public final class MapMaker extends GenericMapMaker < Object , Object > {
C... | Remove MapMaker expireAfterAccess from public API internally |
<nb> public class AdHocCommandManager extends Manager {
COMMENT
COMMENT
COMMENT
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
private Thread sessionsSweeper ;
private AdHocCommandManager ( XMPPConnection connection ) { | Add note about AdHocCommandManager s session sweeping |
<nb> class PacketWriter {
private XMPPConnection connection ;
private LinkedList queue ;
private boolean done = false ;
+ private int packetsWritten = NUMBER0 ;
COMMENT
COMMENT
<nb> class PacketWriter {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getPacketsWritten ( ) ... | Keeps track of the number of packets written |
<nb> public class PreferencesFrame {
. addGroup ( layout . createSequentialGroup ( )
. addComponent ( backgroundColorLabel )
. addComponent ( hashLabel , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE )
+ . addGap ( NUMBER0 )
. addComponent ( presentColorHex , GroupLa... | Removed gap b w and colorHex |
<nb> class AndroidResourceFilesListener extends VirtualFileAdapter {
if ( update instanceof MyUpdate ) {
VirtualFile hisFile = ( ( MyUpdate ) update ) . myEvent . getFile ( ) ;
VirtualFile file = myEvent . getFile ( ) ;
- if ( hisFile == file ) return true ;
+
+ if ( hisFile == file ) {
+ return true ;
... | correctly handle renderscript regeneration tasks |
<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub
private static final int RETRIEVAL_ALLOWING_WINDOW_CHANGE_EVENT_TYPES =
AccessibilityEvent . TYPE_WINDOW_STATE_CHANGED
| AccessibilityEvent . TYPE_VIEW_HOVER_ENTER
- | AccessibilityEvent . TYPE_VIEW_HOVER_EXIT
- | Accessibility... | Accessibility focus should not affect the currently active window |
<nb> public class Stream extends AbstractStream implements HeaderEmitter {
synchronized boolean isRequestBodyFullyRead ( ) {
- return inBuffer . position ( ) == NUMBER0 && isInputFinished ( ) ;
+ return ( inBuffer == null || inBuffer . position ( ) == NUMBER0 ) && isInputFinished ( ) ;
} | Fix NPE when there is no request body |
<nb> public class ProjectGenerator {
}
private static Path getHalideOutputPath ( BuildTarget target ) {
- return Paths . get ( STRING0 )
+ return BuckConstant . getBuckOutputPath ( )
+ . resolve ( STRING1 )
. resolve ( target . getBasePath ( ) )
. resolve ( target . getShortName ( ) ) ;
} | Remove a hardcoded reference to buck out |
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
pm . wakeUp ( time ) ;
if ( fromTouch ) {
mScreenOnComingFromTouch = true ;
+ mNotificationPanel . setTouchDisabled ( false ) ;
}
}
} | Fix wrong states when waking up from doze via touch |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ConstantUtf8 extends Constant {
return getInstance ( file . readUTF ( ) ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- ConstantU... | Remove unused code |
<nb> public class EditPeopleControlSet extends PopupControlSet {
@ override
public void readFromTask ( Task sourceTask ) {
setTask ( sourceTask ) ;
+ assignedCustom . setText ( STRING0 ) ; SINGLE
setUpData ( task , null ) ;
}
<nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListe... | Fixed a bug where assignment wouldn t save refresh when assigning tasks via email on tablet |
<nb> public abstract class jOOQAbstractTest <
SINGLE
SINGLE
- if ( connection . getClass ( ) . getPackage ( ) . getName ( ) . contains ( STRING0 ) ) {
+ if ( connection . getClass ( ) . getPackage ( ) . getName ( ) . contains ( STRING0 ) &&
+ ! connection . getMetaData ( ) . getURL ( ) . contains ( STRING1 ... | Fixed JTDS SQL Server test bug |
<nb> import NAMESPACE ;
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
<nb> ... | Add more JavaDoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RecorderApplication {
private Recorder recorder ;
public RecorderApplication ( ) {
+ messages = new LinkedBlockingQueue... | initialize message queue |
<nb> public class AssetManager {
dispose . add ( asset ) ;
}
}
- assetCache . clear ( ) ;
-
- for ( Asset < ? > asset : keepAndReload ) {
- assetCache . put ( asset . getURI ( ) , asset ) ;
- }
for ( Asset < ? > asset : keepAndReload ) {
reload ( asset ) ;
}
for ( Asset < ? > asset : dispose... | Simplified some AsssetManager code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.