diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DegraderLoadBalancerStrategyV2 implements LoadBalancerStrategy
if ( shouldUpdate ( clusterGenerationId , currentState , config , _updateEnabled ) )
{
- info ( _log , STRING0 + clusterGenerationId + STRING1 +
+ debug ( _log , STRING0 + clusterGenerationId + STRING1 +
currentState . getLastU... | changed a log message in DegraderLoadBalancerStrategyV2 from info to debug |
<nb> public class CassandraRecordCursor
return currentRow . getDouble ( i ) ;
case FLOAT :
return currentRow . getFloat ( i ) ;
+ case DECIMAL :
+ return currentRow . getDecimal ( i ) . doubleValue ( ) ;
default :
throw new IllegalStateException ( STRING0 + getCassandraType ( i ) ) ;
} | Add missing Cassandra decimal data type mappings |
<nb> public class TileAtlas implements Disposable {
return child ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void flipRegions ( boolean x , boolean y ) {
+ for ( TextureRegion region : regionsMap . values ( ) ) {
+ region . flip ( x , y ) ;
+ }
+ }
} | Added flipRegions method |
<nb> final class DexterInstance {
pendingPermissions . removeAll ( permissions ) ;
if ( pendingPermissions . isEmpty ( ) ) {
activity . finish ( ) ;
+ activity = null ;
isRequestingPermission . set ( false ) ;
rationaleAccepted . set ( false ) ;
MultiplePermissionsListener currentListener = listener ; | Remove circular ref when finishing activity |
<nb> public class SymlinkTree
return new HumanReadableException (
this ,
STRING0 ,
- buildTarget ,
+ buildTarget . getUnflavoredBuildTarget ( ) ,
getMessage ( ) ) ;
}
} | Use more readable message for invalid symlink trees |
<nb> public class TestPerformance extends BaseTest {
COMMENT
COMMENT
COMMENT
- private static final boolean FILE_GRANULARITY = false ;
+ private static final boolean FILE_GRANULARITY = true ;
COMMENT
COMMENT | Default to FILE_GRANULARITY true |
<nb> public class MessageList extends K9ListActivity implements OnItemClickListener ,
mFolderName ) ;
mActionBarTitle . setText ( displayName ) ;
- mActionBarSubTitle . setText ( mAccount . getEmail ( ) ) ;
+ String operation = mAdapter . mListener . getOperation ( MessageList . this , getTimeFormat ( ) ) .... | Have a dynamic subtitle for the MessageList action bar too |
<nb> public class ForgeChunkManager
for ( String modId : loadedTickets . keySet ( ) )
{
LoadingCallback loadingCallback = callbacks . get ( modId ) ;
+ if ( loadingCallback == null )
+ {
+ continue ;
+ }
int maxTicketLength = getMaxTicketLengthFor ( modId ) ;
List < Ticket > tickets = loadedTickets . ... | Fix possible NPE in ChunkManager |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JUnitRunner {
tests . remove ( ValueArrayToFrameT... | Removed abstract test from runner |
<nb> public class InternalPermissionServiceTest {
params = buildPermissionChangeParams ( null , STRING0 , STRING1 , STRING2 ) ;
service . addPermission ( params ) ;
} catch ( Exception e ) {
- assertThat ( e ) . isInstanceOf ( BadRequestException . class ) . hasMessage ( STRING3 ) ;
+ assertThat ( e ) . isIns... | Fix typo in unit test |
<nb> public class ConnectionPool {
} catch ( InterruptedException ex ) {
Thread . currentThread ( ) . interrupted ( ) ;
}
- if ( maxWait == NUMBER0 ) { SINGLE
- return con ;
+ if ( maxWait == NUMBER0 && con == null ) { SINGLE
+ throw new SQLException ( STRING0 + Thread . currentThread ( ) . getName ( ) + ... | Pool should throw a SQL exception never return null |
<nb> public class BlockingOperatorToIterator {
@ override
public void onError ( Throwable e ) {
- SINGLE
+ notifications . offer ( Notification . < T > createOnError ( e ) ) ;
}
@ override
<nb> public class BlockingOperatorToIteratorTest {
assertEquals ( true , it . hasNext ( ) ) ;
it . next ( ) ;... | Fix toIterator Exception Handling |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove an unused import preventing compile with OpenJDK |
<nb> public class CompileUnit {
STRING0 ;
}
} else {
- txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING3 + node . getName ( ) + STRING4 ;
+ txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING5 + node . getName ( ) + STRING4 ;
}
... | Improve the grammar of a compiler error message |
<nb> public class DefaultWayPropertySetSource implements WayPropertySetSource {
FLOAT0 , FLOAT0 ) ;
setProperties ( props , STRING0 ,
StreetTraversalPermission . ALL , FLOAT1 , FLOAT1 ) ;
+ setProperties ( props , STRING1 ,
+ StreetTraversalPermission . ALL , FLOAT1 , FLOAT1 ) ;
setProperties ( props , STRI... | Unclassified road with bike designated was missing CAR permission |
<nb> public class NotificationPanelView extends PanelView implements
public void onQsHeightChanged ( ) {
mQsMaxExpansionHeight = mQsContainer . getDesiredHeight ( ) ;
- if ( mQsExpanded ) {
+ if ( mQsExpanded && mQsFullyExpanded ) {
mQsExpansionHeight = mQsMaxExpansionHeight ;
requestScrollerTopPaddingUpd... | Fix single expanded frame from layout |
<nb> import NAMESPACE ;
public interface BlockMeshGenerator {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Correcting a significantly incorrect javadoc description |
<nb> public interface ManagedDelayerMBean extends ManagedProcessorMBean {
@ managedoperation ( description = STRING0 )
void constantDelay ( Integer millis ) ;
+ @ managedattribute ( description = STRING1 )
+ int getDelayedCount ( ) ;
+
}
<nb> public class ManagedDelayer extends ManagedProcessor implemen... | Delayer EIP Add JMX attribute to know if any messages are delayed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix compiler warnings for unused imports |
<nb> public final class TldConfig implements LifecycleListener {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
SINGLE
<nb> public class TldLocationsCache {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
private void init ( ) throws JasperException {
if ( initialized ) return ;
try { | Add a note about keeping processing order in sync |
<nb> public class ExternalResourcesRootsProvider extends IndexableSetContributor {
if ( dirs . add ( dir ) ) {
String url = resource . getResourceUrl ( ) ;
if ( url != null ) {
- set . add ( url . substring ( NUMBER0 , url . lastIndexOf ( STRING0 ) ) ) ;
+ set . add ( url . substring ( NUMBER0 , url . lastInd... | to avoid exception in JarFileSystem don t remove trailing slash from external resource URLs |
<nb> public final class H2O {
public static URI ICE_ROOT ;
SINGLE
- public static boolean INHERIT_LOG4J = true ;
+ public static boolean INHERIT_LOG4J = false ;
SINGLE
public static String [ ] ARGS ; | Set INHERIT_LOG4J default to false |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public class PopupMenuShowInHistory extends PopupMenuItemHistoryReferenceContainer {
private static final long serialVersionUID = NUMBER0 ;
<nb> public class PopupMenuShowInHistory extends PopupMenuItemHistoryR... | Disable Show in History Tab if message not valid |
<nb> public class SearchAction implements RequestHandler {
RuleQuery query = createRuleQuery ( ruleService . newRuleQuery ( ) , request ) ;
SearchOptions searchOptions = SearchOptions . create ( request ) ;
QueryContext queryContext = mapping . newQueryOptions ( searchOptions ) ;
- Boolean facets = request . pa... | Fix quality flaw |
<nb> public class VoldemortClientShell {
Utils . croak ( STRING0 + e . getMessage ( ) ) ;
}
- StoreClientFactory factory = new SocketStoreClientFactory ( new ClientConfig ( ) . setBootstrapUrls ( bootstrapUrl )
- . setRequestFormatType ( RequestFormatType . PROTOCOL_BUFFERS ) ) ;
+ StoreClientFactory factor... | Revert accidental change to src java voldemort VoldemortClientShell java |
<nb> public class JSonPathTransformationService implements TransformationService {
logger . debug ( STRING0 , source , JSonPathExpression ) ;
try {
- String transformationResult = JsonPath . read ( source , JSonPathExpression ) ;
- logger . debug ( STRING1 , transformationResult ) ;
- return transformationR... | Replaced null return by TransformException |
<nb> public class Subscription implements AutoCloseable
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ Image imageForSessionId ( final int sessionId )
+ {
+ Image result = null ;
+
+ final Image [ ] images = this . images ;
+ for ( final Image image : images )
+ {
+ if ( s... | add way to return an Image given a sessionId and Subscription |
<nb> public class AccountManagerService
new AtomicReference < AccountManagerService > ( ) ;
private static final boolean isDebuggableMonkeyBuild =
- SystemProperties . getBoolean ( STRING0 , false )
- && SystemProperties . getBoolean ( STRING1 , false ) ;
+ SystemProperties . getBoolean ( STRING2 , false ) ... | Still use ro monkey |
<nb> public class AddContactDialog
SINGLE
loadSkin ( ) ;
+
+ this . initialized = true ;
}
COMMENT | Fixes add contact dialog and activating add button |
<nb> public class AccessControlManager
@ override
public void checkCanSetUser ( Principal principal , String userName )
{
- requireNonNull ( userName , STRING0 ) ;
+ requireNonNull ( userName , STRING1 ) ;
for ( SystemAccessControl accessControl : systemAccessControllers ) {
accessControl . checkCanSetU... | Fix typo in AccessControlManager |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class W... | Added simple string method for adding a comma separated id |
<nb> public class PluginsAdvertiser implements StartupActivity {
public void run ( @ notnull ProgressIndicator indicator ) {
try {
myAllPlugins = RepositoryHelper . loadPluginsFromRepository ( indicator ) ;
+ if ( project . isDisposed ( ) ) return ;
if ( extensions == null ) {
loadSupportedExtensions ( myAl... | ensure project not disposed |
<nb> public class NameTable {
}
SINGLE
+ if ( BindingUtil . isIntersectionType ( binding ) ) {
+ ITypeBinding [ ] interfaces = binding . getInterfaces ( ) ;
+ if ( interfaces . length > NUMBER0 ) {
+ return getFullName ( interfaces [ NUMBER0 ] ) ;
+ }
+ }
return getPrefix ( binding . getPackage ( ) ... | Fixed class references in lambda expressions with intersection return types |
<nb> public class SmartImageTask implements Runnable {
public abstract static class OnCompleteListener {
public abstract void onComplete ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void onComplete ( Bitmap bitmap ) {
+ onComplete ( ) ;
+ }
}
public SmartImageTask ( Conte... | added support to get handle of bitmap on image load complete |
<nb> public class SeriesGuideProvider extends ContentProvider {
matcher . addURI ( authority , SeriesContract . PATH_SHOWS + STRING0 + SeriesContract . PATH_FILTER
+ STRING1 , SHOWS_FILTERED ) ;
matcher . addURI ( authority , SeriesContract . PATH_SHOWS + STRING0
- + SeriesContract . PATH_WITH_EPISODE + STRING1... | Fix registered shows with episode uri |
<nb> public class LCOM4Visitor extends BytecodeVisitor {
Set < AsmResource > blockA = getOrCreateResourceBlock ( resourceA ) ;
Set < AsmResource > blockB = getOrCreateResourceBlock ( resourceB ) ;
- if ( blockA . equals ( blockB ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( blockA == blockB ) { SINGLE
retur... | Fix a violation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix java capitalization in Intent html |
<nb> public class OProfiler extends OSharedResourceAbstract implements OProfilerMBean
acquireExclusiveLock ( ) ;
try {
- OLogManager . instance ( ) . info ( this , STRING0 ) ;
+ OLogManager . instance ( ) . info ( this , STRING1 , elapsedToCreateSnapshot ,
+ maxSnapshots , maxSummaries ) ;
if ( elapsedT... | profiler dumps the configuration when started |
<nb> public class CdmaServiceStateTracker extends ServiceStateTracker {
mZoneTime = c . getTimeInMillis ( ) ;
}
if ( DBG ) {
- log ( STRING0 + tzOffset + STRING1 + dst + STRING2 + zone . getID ( ) +
+ log ( STRING0 + tzOffset + STRING1 + dst + STRING2 +
+ ( zone != null ? zone . getID ( ) : STRING3 ) +
ST... | Fix a logging NPE problem |
<nb> public class OCommandExecutorScript extends OCommandExecutorAbstract {
db . commit ( ) ;
} catch ( OConcurrentModificationException e ) {
context . setVariable ( STRING0 , retry ) ;
+ getDatabase ( ) . getLocalCache ( ) . clear ( ) ;
break ;
} | fixed problem on reloading record in case of concurrent exception |
<nb> public class Environment extends AbstractLifeCycle {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Object getJerseyProperty ( String name ) {
+ return config . getProperties ( ) . get ( name ) ;
+ }
+
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added getter for Jersey Properties |
<nb> public class ProjectLock implements Startable {
public void stop ( ) {
if ( lockFile != null ) {
try {
- Files . delete ( lockFilePath ) ;
lockFile . release ( ) ;
lockFile = null ;
} catch ( IOException e ) {
<nb> public class ProjectLock implements Startable {
LOG . error ( STRING0 , e ) ;
} ... | Fix project lock in Windows |
<nb> public class TypeEqualityConstraint implements ConstraintFormula {
}
if ( session . isProperType ( myT ) && session . isProperType ( myS ) ) {
+ if ( myT == null ) return myS == null || myS . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ;
+ if ( myS == null ) return myT . equalsToText ( CommonCla... | accept null Object constraint |
<nb> public class DiscoveryServiceImpl implements DiscoveryService {
public void unregisterService ( ServiceDescription description ) {
ServiceInfo serviceInfo = ServiceInfo . create ( description . serviceType , description . serviceName , description . servicePort ,
NUMBER0 , NUMBER0 , description . serviceProp... | fixed logging message |
<nb> public class BuildWorkTest {
artifactManipulator . printConsoleOut ( ) ;
File basedir = new File ( STRING0 ) ;
- assertThat ( actual . toLowerCase ( ) , containsString ( STRING1 + new File ( basedir , STRING2 ) . getCanonicalPath ( ) . toLowerCase ( ) ) ) ;
+ assertThat ( actual . toLowerCase ( ) , conta... | Oops had added toLowercase to wrong string |
<nb> public class Runtime {
public World getWorld ( ) {
return world ;
}
-
- public void setWorld ( World world ) {
- this . world = world ;
- }
} | should not allow setting of the world |
<nb> public class ClientApiMain {
STRING0 +
STRING1 ;
break ;
+ case activeScanUrl :
+ help = STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING0 +
+ STRING1 ;
+ break ;
}
}
System . out . println ( help ) ; | Adding activeScanUrl task to ClientApiMain |
<nb> public class ResourceDao {
public static List < ComponentDto > toComponents ( List < ResourceDto > resourceDto ) {
return newArrayList ( Iterables . transform ( resourceDto , new Function < ResourceDto , ComponentDto > ( ) {
@ override
- public ComponentDto apply ( ResourceDto resourceDto ) {
- return to... | Fix quality flaw |
<nb> public class Solo {
private final RobotiumUtils robotiumUtils ;
private final Sleeper sleeper ;
private final Waiter waiter ;
+ private final Instrumentation inst ;
public final static int LANDSCAPE = ActivityInfo . SCREEN_ORIENTATION_LANDSCAPE ; SINGLE
public final static int PORTRAIT = ActivityInfo .... | Removed waitForIdle in clickOnScreen |
<nb> class StatementAnalyzer
. distinct ( )
. collect ( toImmutableList ( ) ) ;
- SINGLE
- SINGLE
- SINGLE
- if ( ! aggregates . isEmpty ( ) || ! groupingSets . isEmpty ( ) ) {
+ SINGLE
+ if ( ! groupingSets . isEmpty ( ) ) {
SINGLE
SINGLE
SINGLE
<nb> public class TestAnalyzer
}
@ test
... | Remove redundant check for aggregation functions |
<nb> public class ExceptionToTemplateModel {
}
private static void renderFrames ( Throwable exception , StackTrace trace ) {
+ exception = StackTraceUtils . sanitize ( exception ) ;
for ( StackTraceElement ste : exception . getStackTrace ( ) ) {
String className = ste . getClassName ( ) ;
if ( ! StackTrac... | Filter the stacktrace |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NodeFetchOperation {
for ( IntObjectCursor < ShardDocIdsBucket > entry : shardBuckets ) {
Engine . Searcher searcher = fetc... | removed unreachable code |
<nb> public class VoldemortServer extends AbstractService {
+ STRING0 ) ;
}
} catch ( UnknownHostException uhe ) {
- logger . warn ( STRING1 ) ;
+ logger . warn ( STRING1 , uhe ) ;
} catch ( SecurityException se ) {
- logger . warn ( STRING2 ) ;
+ logger . warn ( STRING2 , se ) ;
}
}
<nb> public... | Log the exception |
<nb> public class JaxrsRoutes implements ApplicationRoutes {
ConfigurationBuilder builder = new ConfigurationBuilder ( ) ;
- Set < URL > packagesToScan = getPackagesToScanForRoutes ( ninjaProperties ) ;
+ Set < URL > packagesToScan = getPackagesToScanForRoutes ( ) ;
builder . addUrls ( packagesToScan ) ;
... | Remove superfluous NinjaProperties parameter |
<nb> public class TaskListFragmentPagerAdapter extends FragmentStatePagerAdapter impl
SINGLE
private Bundle getExtrasForFilter ( Filter filter ) {
- Bundle extras ;
- if ( filter instanceof FilterWithCustomIntent ) {
+ Bundle extras = null ;
+ if ( filter instanceof FilterWithCustomIntent )
extras = ( (... | Don t allow null extras in fragment pager adapter |
<nb> public class DefaultPicoContainer implements MutablePicoContainer , Serializable
private final ConcurrentHashMap < T , T > concurrentSet = new ConcurrentHashMap < T , T > ( ) ;
public boolean contains ( @ nullable T element ) {
- return element != null || concurrentSet . containsKey ( element ) ;
+ retur... | Optimize DefaultPicoContainer for test |
<nb> public class Preferences {
top += d . height + GUI_BETWEEN ;
- SINGLE
+ SINGLE
deletePreviousBox =
- new JCheckBox ( STRING0 ) ;
+ new JCheckBox ( STRING1 ) ;
pain . add ( deletePreviousBox ) ;
d = deletePreviousBox . getPreferredSize ( ) ;
deletePreviousBox . setBounds ( left , top , d . w... | Removing mention of Applet from preferences dialog box |
<nb> public class VideoView extends SurfaceView implements MediaPlayerControl {
mCanSeekForward = ! data . has ( Metadata . SEEK_FORWARD_AVAILABLE )
|| data . getBoolean ( Metadata . SEEK_FORWARD_AVAILABLE ) ;
} else {
- mCanPause = mCanSeekForward = mCanSeekForward = true ;
+ mCanPause = mCanSeekBack = mCanS... | Fix a typo in VideoView java that disabled the seek back button by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Moved Distinct and Group operations into correct package directory |
<nb> public class GridFS {
_filesCollection = _db . getCollection ( _bucketName + STRING0 ) ;
_chunkCollection = _db . getCollection ( _bucketName + STRING1 ) ;
- _chunkCollection . ensureIndex ( BasicDBObjectBuilder . start ( ) . add ( STRING2 , NUMBER0 ) . add ( STRING3 , NUMBER0 ) . get ( ) ) ;
+ SINGLE
... | For GridFS driver should ensure indexes at startup on both files and chunks collection when collection is small |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ConnectionConfiguration {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class ConnectionCo... | Add ConnectionConfiguration setXmppDomain String |
<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener
spRestriction . setSelection ( NUMBER0 ) ;
( ( EditText ) findViewById ( R . id . etFilter ) ) . setText ( STRING0 ) ;
ActivityMain . this . recreate ( ) ;
- Toast . makeText ( ActivityMain . this , getString ( R . string . ms... | Fix reboot message |
<nb> abstract class BoundedLocalCache < K , V > extends BLCHeader . DrainStatusRef < K , V >
}
SINGLE
- if ( node . isAlive ( ) ) {
+ boolean isAlive ;
+ synchronized ( node ) {
+ isAlive = node . isAlive ( ) ;
+ }
+ if ( isAlive ) {
if ( expiresAfterWrite ( ) ) {
writeOrderDeque ( ) . add ( node ... | Strengthen the visibility for out of order additions |
<nb> public class ColumnPrefixDistributedRowLock < K > implements DistributedRowLock {
COMMENT
@ override
public void acquire ( ) throws Exception {
- Preconditions . checkArgument ( TimeUnit . SECONDS . convert ( timeout , timeoutUnits ) < ttl , STRING0 + timeout + STRING1 + ttl ) ;
+
+ Preconditions . che... | Fix NPE when TTL in lock recipe is null |
<nb>
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
- COMMENT
COMMENT
... | Fix another license header |
<nb> public class Toolbar extends ViewGroup {
subtitleRight = subtitleRight - mTitleMarginEnd ;
titleTop = subtitleBottom + lp . bottomMargin ;
}
- right = Math . max ( titleRight , subtitleRight ) ;
+ right = Math . min ( titleRight , subtitleRight ) ;
} else {
final int ld = mTitleMarginStart - collapsi... | Fix Toolbar title layout in RTL mode |
<nb> public class WordPress extends Application {
SINGLE
SimperiumUtils . resetBucketsAndDeauthorize ( ) ;
-
- SINGLE
- SINGLE
- Intent broadcastIntent = new Intent ( ) ;
- broadcastIntent . setAction ( BROADCAST_ACTION_SIGNOUT ) ;
- LocalBroadcastManager . getInstance ( context ) . sendBroadcast ( br... | don t send BROADCAST_ACTION_SIGNOUT from removeWpComUserRelatedData |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ ignore ( STRING0 )
@ runwith ( MavenJUnitTestRunner . class )
@ mavenversions ( { STRING1 , STRING2 } )
public class ... | deactivated Jack IT test for now while its experiemental to retain passing CI build |
<nb> public final class AndroidFontUtil {
private static String alias ( String family , boolean bold , boolean italic ) {
final StringBuilder builder = new StringBuilder ( Paths . tempDirectory ( ) ) ;
+ builder . append ( STRING0 ) ;
builder . append ( family ) ;
if ( bold ) {
builder . append ( STRING1 ... | fixed font file name removing temp font file |
<nb> public class GeoDistanceSearchBenchmark {
public static void main ( String [ ] args ) throws Exception {
- Node node = NodeBuilder . nodeBuilder ( ) . node ( ) ;
+ Node node = NodeBuilder . nodeBuilder ( ) . clusterName ( GeoDistanceSearchBenchmark . class . getSimpleName ( ) ) . node ( ) ;
Client clie... | Use a dedicated cluster name for GeoDistanceSearchBenchmark like we do for other benchmarks |
<nb> public final class RuleOverview {
System . out . println ( STRING0 ) ;
System . out . println ( STRING1 ) ;
System . out . println ( STRING2 ) ;
- System . out . println ( STRING3 ) ;
+ System . out . println ( STRING4 ) ;
System . out . println ( STRING5 ) ;
SINGLE
System . out . println ( STRING6... | explain the spell check column |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class SimpleTransfer extends Edge {
private static final long serialVersionUID = NUMBER0 ;
- @ getter
private double distance ;
-
- @ getter
+
priva... | towards removing lombok |
<nb> public class CropImageView extends FrameLayout {
@ override
public void onRestoreInstanceState ( Parcelable state ) {
- if ( state instanceof Bundle ) {
+ if ( state instanceof Bundle && mBitmap != null ) {
final Bundle bundle = ( Bundle ) state ; | Fixed crash when trying to rotate image when bitmap null |
<nb> import NAMESPACE ;
COMMENT
public class DepsGenerator {
- enum InclusionStrategy {
+ public static enum InclusionStrategy {
ALWAYS ,
WHEN_IN_SRCS ,
DO_NOT_DUPLICATE | Make the inclusion strategy for deps generation public |
<nb> class DocToIdIterator extends AbstractIndexHits < Long >
{
return source . currentScore ( ) ;
}
+
+ @ override
+ protected void finalize ( ) throws Throwable
+ {
+ close ( ) ;
+ super . finalize ( ) ;
+ }
} | Added a finalizer as a safety net for closing not manually closed IndexHits |
<nb> public final class SystemConfig {
this . useStreamOutput = NUMBER0 ;
this . systemReserveMemorySize = RESERVED_SYSTEM_MEMORY_BYTES ;
this . dataNodeSortedTempDir = System . getProperty ( STRING0 ) ;
+ this . XARecoveryLogBaseDir = STRING1 ;
+ this . XARecoveryLogBaseName = STRING2 ;
}
public String... | add xa log default value |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Fixed the CS errors of camel example loan broker |
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
package NAMESPACE ;
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
- COMM... | Fix license headers |
<nb> public class SlidingMenu extends RelativeLayout {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixing Spelling mistake |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LintManager
}
@ inject
- void initialize ( EventBus events ,
- LintServerOperations server )
+ void initialize ( L... | don t need EventBus |
<nb> import NAMESPACE ;
COMMENT
public class UniqueIndexViolationException extends UserException {
+ private static final long serialVersionUID = - NUMBER0 ;
+
@ nullable
private final String index ;
@ nullable | Added a generated serial version to UniqueIndexViolationException |
<nb> public class VolumePanel extends Handler implements OnSeekBarChangeListener , Vie
SINGLE
sc . icon . setImageDrawable ( null ) ;
sc . icon . setImageResource ( muted ? sc . iconMuteRes : sc . iconRes ) ;
- if ( sc . streamType == AudioManager . STREAM_RING &&
+ if ( ( ( sc . streamType == AudioManager . ... | Display vibrate icon in volume panel |
<nb> public class SiteminderAuthenticationProcessingFilter
}
}
- SINGLE
+ SINGLE
boolean bAttemptAuthentication = ( uri . endsWith ( request . getContextPath ( )
+ getFilterProcessesUrl ( ) ) )
- || ( ( uri . endsWith ( getDefaultTargetUrl ( ) ) && ! bAuthenticated ) ) ;
+ || ( ( getDefaultTargetUrl (... | Added NPE check for defaultTargetUrl in requiresAuthentication |
<nb> public enum Opcode
case NUMBER0 :
return ARRAY_PAYLOAD ;
default :
+ SINGLE
return opcodesByValue [ opcodeValue ] ;
}
} | Add TODO reminder to add support for unknown opcodes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CatalinaClusterSF extends StoreFactoryBase {
ClusterListener mlisteners [ ] = ( ( SimpleTcpCluster ) cluster ) . findClusterListeners ( ) ;
Li... | Fix Konstantin s comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KeyguardViewMediator implements KeyguardViewCallback ,
final Uri soundUri = Uri . parse ( STRING0 + soundPath ) ;
if ( soun... | Move lockscreen sound effects to the system stream |
<nb> public class PowerManagerService extends IPowerManager . Stub
}
private int getPreferredBrightness ( ) {
+ int brightness = mScreenBrightnessSetting ;
if ( mScreenBrightnessOverride >= NUMBER0 ) {
- return mScreenBrightnessOverride ;
+ brightness = mScreenBrightnessOverride ;
} else if ( mLightSens... | Clamp the minimum screen brightness |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class HttpUtilsAsync {
private static final String BASE_URL = STRING0 ;
private static final i... | add doc of httputilsasync |
<nb> public final class MergeNewOldValuesFn extends OryxReduceDoFn < Pair < Long , Integer
Config config = ConfigUtils . getDefaultConfig ( ) ;
decayFactor = ( float ) config . getDouble ( STRING0 ) ;
Preconditions . checkArgument ( decayFactor > FLOAT0 && decayFactor <= FLOAT1 ,
- STRING1 , zeroThreshold ) ;
... | Fix Preconditions message |
<nb> static public class ObjExpr implements Expr {
clinitgen . ifZCmp ( GeneratorAdapter . EQ , skipLabel ) ;
clinitgen . invokeVirtual ( VAR_TYPE , Method . getMethod ( STRING0 ) ) ;
+ clinitgen . dup ( ) ;
+ clinitgen . instanceOf ( AFUNCTION_TYPE ) ;
+ clinitgen . ifZCmp ( GeneratorAdapter . EQ , skipLab... | install var callsite for AFunctions only |
<nb> public final class FloatingToolbar {
}
private void maybeComputeTransitionDurationScale ( ) {
- if ( mMainPanelSize == null || mOverflowPanel == null ) {
+ if ( mMainPanelSize != null && mOverflowPanelSize != null ) {
int w = mMainPanelSize . getWidth ( ) - mOverflowPanelSize . getWidth ( ) ;
int h =... | Fix logic error in determining open close overflow animation duration scale |
<nb> public class AuthenticationContextValidator {
final RegisteredServiceMultifactorPolicy . FailureModes mode = getMultifactorFailureModeForService ( service ) ;
if ( mode == RegisteredServiceMultifactorPolicy . FailureModes . PHANTOM ) {
- if ( ! requestedProvider . get ( ) . verify ( service ) ) {
+ if ( ... | Fixed test cases |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BrokerServerView implements TimelineServerView
public BrokerServerView (
QueryToolChestWarehouse warehouse ,
QueryWatcher... | Add Smile annotation to BrokerServerView |
<nb> public class AjpAprProtocol
if ( state != SocketState . LONG && state != SocketState . ASYNC_END ) {
connections . remove ( socket ) ;
recycledProcessors . offer ( result ) ;
- if ( state == SocketState . OPEN ) {
- proto . endpoint . getPoller ( ) . add ( socket . getSocket ( ) . longValue ( ) ) ;
- }... | Fix remaining issues with AJP APR and TCK |
<nb> public class LwjglDebugStarter {
SINGLE
config . width = NUMBER0 ;
config . height = NUMBER1 ;
- config . setFromDisplayMode ( LwjglApplicationConfiguration . getDesktopDisplayMode ( ) ) ;
- config . fullscreen = true ;
new LwjglApplication ( test , config ) ;
}
} | Reverted changes to LWJGL debug starter |
<nb> class ApiClientImpl implements ApiClient {
final Request request = requestBuilder . build ( ) ;
if ( LOG . isDebugEnabled ( ) ) {
- LOG . debug ( STRING0 , request . toString ( ) ) ;
+ LOG . debug ( STRING0 , request ) ;
}
SINGLE
<nb> class ApiClientImpl implements ApiClient {
final Request r... | remove toString on request in both places |
<nb> public class User {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public User ( String username , String password , boolean enabled ,
- GrantedAuthority [ ] authorities ) {
+ GrantedAuthority [ ] authorities ) throws IllegalArgumentException {
+ if ( ( username == null ) || ( password == ... | Improved detection of invalid parameters in constructors |
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
freezeImmediately ( reason ) ;
context . ping ( ) ;
}
- } , InvokeAfterUpdateMode . SILENT_CALLBACK_POOLED , STRING0 , ModalityState . NON_MODAL ) ;
+ } , InvokeAfterUpdateMode . SILENT_CALLBACK_POOLED , STRING0 , ModalitySt... | Use correct modality state for CLM freeze |
<nb> final class RestMethodInfo {
return headerList ;
}
- COMMENT
+ COMMENT
private ResponseType parseResponseType ( ) {
SINGLE
SINGLE | Removed incorrect documentation |
<nb> public class AbstractPopup implements JBPopup {
return preferredLocation ;
}
int adjustedY = preferredBounds . y - editor . getLineHeight ( ) * NUMBER0 / NUMBER1 - preferredSize . height ;
- return adjustedY >= NUMBER2 ? RelativePoint . fromScreen ( new Point ( preferredBounds . x , adjustedY ) ) : preferr... | do not change the component of relative point if possible |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.