diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class HTMLPreviewPanel extends ResizeComposite
SINGLE
SINGLE
SINGLE
- SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
if ( scriptsEnabled )
- getElement ( ) . setAttribute ( STRING0 , STRING1 ) ;
+ {
+ getElement ( ) . setAttribute ( STRING0 , STRING2 +
+ STRING3 ) ;
+ }
else
- ge... | allow popups from within html preview |
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable {
}
private LookupArranger getActualArranger ( ) {
- if ( UISettings . getInstance ( ) . SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY ) {
+ if ( isCompletion ( ) && UISettings . getInstance ( ) . SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICAL... | alpha sorting only in completion lookups |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused import to comply to enforced style |
<nb> public class FooBarTest extends LegacyTestCase {
s . createQuery ( STRING0 ) . list ( ) ;
s . createQuery ( STRING1 ) . list ( ) ;
s . createQuery ( STRING2 ) . list ( ) ;
- if ( ! ( getDialect ( ) instanceof DB2Dialect ) && ! ( getDialect ( ) instanceof Oracle8iDialect ) && ! ( getDialect ( ) instanceof S... | character varying integer |
<nb> public class EnglishGrammaticalRelations {
SINGLE
STRING0 + copularWordRegex + STRING1 ,
SINGLE
- STRING2 + copularWordRegex + STRING3 ,
+ STRING4 + copularWordRegex + STRING3 ,
} ) ;
public static class CopulaGRAnnotation extends GrammaticalRelationAnnotation {
<nb> public class EnglishGrammatic... | Add xcomps for the makeCopulaHead version of Such a great idea this was |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultGrailsApplication extends AbstractGrailsApplication implemen
if ( isInitialised ( ) ) {
initializeArtefacts ( artefa... | only publish event if ApplicationContext is active |
<nb> public class StringUtils {
public static Properties argsToPropertiesWithResolve ( String [ ] args ) {
TreeMap < String , String > result = new TreeMap < String , String > ( ) ;
Map < String , String > existingArgs = new TreeMap < String , String > ( ) ;
- System . out . println ( args ) ;
+ System . out ... | made argument parsing easy |
<nb> public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt
COMMENT
public < T > Future < T > execute ( final Request request , final AsyncHandler < T > asyncHandler ) throws IOException {
- IN_IO_THREAD . set ( Boolean . TRUE ) ;
return doConnect ( request , asyncHandler , null , tr... | Place the check on the proper Thread |
<nb> public class TestTomcatClassLoader extends TomcatBaseTest {
private static final class ClassLoaderReport extends HttpServlet {
private static final long serialVersionUID = NUMBER0 ;
- ClassLoader custom ;
+ private transient ClassLoader custom ;
public ClassLoaderReport ( ClassLoader custom ) {
thi... | Fix Findbugs nag |
<nb> public final class AndroidHttpClient implements HttpClient {
return responseStream ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void close ( ) {
- SINGLE
+ getConnectionManager ( ) . shutdown ( ) ;
}
public HttpParams getParams ( ) { | Restore shutdown of connection manager |
<nb> public class ConfigureMapMenu {
adapter . item ( R . string . map_magnifier ) . listen ( new OnContextMenuClick ( ) {
@ override
- public boolean onLongClick ( View notUseCouldBeNull ) {
+ public boolean onContextMenuClick ( View notUseCouldBeNull ) {
+ final OsmandMapTileView view = activity . getMapV... | fix some errors |
<nb> public class RosterItem implements Cacheable {
Group group = GroupManager . getInstance ( ) . getGroup ( groupName ) ;
SINGLE
String displayName = group . getProperties ( ) . get ( STRING0 ) ;
- if ( displayName . equals ( groupName ) ) {
+ if ( displayName != null && displayName . equals ( groupName ) )... | Fixed NPE when display name is null |
<nb> public class HighAvailabilityModeSwitcher implements HighAvailabilityMemberListe
@ override
public synchronized void shutdown ( ) throws Throwable
{
- scheduledExecutorService . shutdown ( ) ;
- scheduledExecutorService . awaitTermination ( NUMBER0 , TimeUnit . SECONDS ) ;
-
stateHandler . removeHigh... | Remove duplicate shutdown |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme
return ! myMappings . isEmpty ( ) ;
}
- public void... | vcs Don t add empty messages to the vcs console |
<nb> public class TestDistributedQueries
else if ( TIMESTAMP_WITH_TIME_ZONE . equals ( type ) ) {
row . add ( new Timestamp ( unpackMillisUtc ( parseTimestampWithTimeZone ( ( String ) value ) ) ) ) ;
}
+ else {
+ throw new AssertionError ( STRING0 + type ) ;
+ }
}
return new MaterializedRow ( DEFAULT_PR... | Add check for unhandled type |
<nb> public class Version {
SINGLE
SINGLE
private static final String VERSION = STRING0 ;
- private static final String RELEASE_NAME = STRING1 ;
+ private static final String RELEASE_NAME = STRING2 ;
private Version ( ) {
SINGLE
<nb> public class HandleEqualsAndHashCode extends EclipseAnnotationHandle... | Fixed two typos |
<nb> public class clonesrv6
if ( msg == null )
return NUMBER0 ;
- if ( msg . getKey ( ) . equals ( STRING0 ) ) {
+ if ( ! msg . getKey ( ) . equals ( STRING0 ) ) {
if ( ! srv . wasPending ( msg ) ) {
SINGLE
SINGLE | subscriber should ignore HUGZ |
<nb> public class CommandLineRunner extends
private List < String > conformanceConfigs = new ArrayList < > ( ) ;
@ argument
- private final List < String > arguments = new ArrayList < > ( ) ;
+ private List < String > arguments = new ArrayList < > ( ) ;
private final CmdLineParser parser ;
private stati... | Make arguments field non final |
<nb> import NAMESPACE ;
public class YammerApi extends DefaultApi10a
{
- private static final String AUTHORIZATION_URL = STRING0 ;
+ private static final String AUTHORIZATION_URL = STRING1 ;
@ override
public String getRequestTokenEndpoint ( ) | Remove Single Quatation from AUTHORIZATION_URL |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public final class SlopeOnePrefsToDiffsMapper
extends Mapper < LongWritable , Text , LongWritable , ItemPrefWritable > {
+ private static final Pattern COMMA = Pattern . compile ( STRING0 ) ;
+
@ override
protecte... | Oops old update I forgot to commit |
<nb> public class Vector3 implements Serializable {
COMMENT
COMMENT
public Vector3 crs ( float x , float y , float z ) {
- return this . set ( y * z - z * y , z * x - x * z , x * y - y * x ) ;
+ return this . set ( this . y * z - this . z * y , this . z * x - this . x * z , this . x * y - this . y * x ) ;
}... | fixed Vector3 crs was bollocks |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class GoParameterInfoHandler implements ParameterInfoHandlerWithTabActionSupport < GoArgumentList , Object , GoExpression > {
-
@ notnull
@ override
public GoExpression [ ] getActualParameters ( @ notnull GoArgumentList o ) {
<nb> public class GoParamete... | don t use |
<nb> public abstract class GraphDatabaseSettings
public static final Setting < Boolean > log_queries = setting ( STRING0 , BOOLEAN , FALSE ) ;
@ description ( STRING1 )
- public static final Setting < File > logs_directory = setting ( STRING2 , PATH , STRING3 ) ;
+ public static final Setting < File > logs_di... | Require logs_directory to be set in embedded and provide a sensible default in non embedded |
<nb> public class DeploymentRootMountProcessor implements DeploymentUnitProcessor {
deploymentUnit . putAttachment ( Attachments . DEPLOYMENT_ROOT_MOUNT_HANDLE , mountHandle ) ;
} catch ( IOException e ) {
failed = true ;
- throw new DeploymentUnitProcessingException ( STRING0 ) ;
+ throw new DeploymentUnitPr... | Fix an NPE in root unmount undeploy action improve mount error message |
<nb> final class PoolEntry implements IConcurrentBagEntry
{
final long now = ClockSource . INSTANCE . currentTime ( ) ;
return connection
- + STRING0 + ClockSource . INSTANCE . elapsedMillis ( lastBorrowed , now ) + STRING1
+ + STRING0 + ClockSource . INSTANCE . elapsedMillis ( lastBorrowed , now ) + STRING2 ... | removed misleading extra comma |
<nb> public class CommandLineWrapperUtil {
}
attributes . put ( Attributes . Name . CLASS_PATH , classPathAttribute ) ;
- File jarFile = FileUtil . createTempFile ( STRING0 , STRING1 ) ;
+ File jarFile = FileUtil . createTempFile ( STRING0 , STRING1 , true ) ;
ZipOutputStream jarPlugin = null ;
try {
Bu... | delete classpath jar on exit |
<nb> class DayPickerView extends ListView implements AbsListView . OnScrollListener ,
mAdapter . setRange ( mMinDate , mMaxDate ) ;
- if ( constrainCalendar ( mSelectedDay , mMinDate , mMaxDate ) ) {
- goTo ( mSelectedDay , false , true , true ) ;
- }
+ SINGLE
+ SINGLE
+ goTo ( mSelectedDay , false , ... | Always update date picker position after change in range |
<nb> public class ClientCalls {
executor . waitAndDrain ( ) ;
} catch ( InterruptedException e ) {
Thread . currentThread ( ) . interrupt ( ) ;
- throw new RuntimeException ( e ) ;
+ throw Status . CANCELLED . withCause ( e ) . asRuntimeException ( ) ;
}
}
return getUnchecked ( responseFuture ) ;
<nb>... | In blocking stubs throw Status CANCELLED on interruption |
<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener
break ;
}
}
+ if ( ! memberFound ) {
+ String ownerString = td . getValue ( TagData . USER ) ;
+ JSONObject owner = new JSONObject ( ownerString ) ;
+ long ownerId = owner . optLong ( STRING0 , Task . USER_ID_IGNORE ) ; ... | Fixed bug with trying to add list creators to their own lists when tasks assigned to them |
<nb> public class MultiWaveView extends View {
STRING0 , mWaveCenterX ,
STRING1 , mWaveCenterY ,
STRING2 , mUpdateListener ,
- STRING3 , mResetListenerWithPing ) ;
+ STRING3 , mDragging ? mResetListenerWithPing : mResetListener ) ;
}
setGrabbedState ( OnTriggerListener . NO_HANDLE ) ; | Avoid double ping when tapping outside the handle |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+
COMMENT
public class ClosureConstraintMatcher implements Constraint {
private final Closure closure ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class G... | add deprecetaed javadoc tag for no longer supported old mocking classes |
<nb> public class NeomediaActivator
SINGLE
SINGLE
if ( ( cfg == null )
- || ! cfg . getBoolean ( CALL_RECORDING_CONFIG_DISABLED_PROP , false ) )
+ || ! ( cfg . getBoolean ( CALL_RECORDING_CONFIG_DISABLED_PROP , false )
+ || cfg . getBoolean ( STRING0 +
+ STRING1 ,
+ false ) ) )
{
Dictionary < String... | Disables configuration of call recording if call recording button is hidden |
<nb> public class CloudWatchMetricObserver extends BaseMetricObserver {
Preconditions . checkNotNull ( metrics , STRING0 ) ;
List < Metric > batch = new ArrayList < > ( batchSize ) ;
- int batchCount = NUMBER0 ;
while ( ! metrics . isEmpty ( ) ) {
Metric m = metrics . remove ( NUMBER1 ) ;
if ( m . hasNu... | Fix silent failure publishing to CloudWatch |
<nb> public class ModelCache implements Disposable , RenderableProvider {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void add ( Renderable renderable ) {
if ( ! building ) throw new GdxRuntimeException ( STRING0 ) ;
<nb> public class ModelCache implements Disposable , RenderableProvide... | explicitly remove the shader and environment values |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> class MyModifierSet
return Scope . PACKAGE ;
}
+ COMMENT
+ public String toString ( )
+ {
+ final StringBuffer buf = new StringBuffer ( STRING0 ) ;
+ for ( Iterator it = mModifiers . ... | added a toString method to help debugging |
<nb> public class Properties2Test {
}
}
- @ test
- public void test ( ) {
- SINGLE
+ @ test ( expected = NoSuchFieldException . class )
+ public void test ( ) throws NoSuchFieldException {
+ QProperties2Test_ConcreteX . class . getDeclaredField ( STRING0 ) ;
}
} | Add proper test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements
STRING0 , aboslutifier . apply ( preprocessJavaClassesInDir ) ... | Add Android bootclasspath to environment for class preprocessing genrule |
<nb> public final class Settings {
STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static final String WIFI_NOTIFY_SCAN_ALWAYS_AVAILABLE =
- STRING1 ;
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class WifiManager {
STRING2 ;
COMMENT
- COMMENT
- COMMENT
- ... | Remove wifi scan always dialog |
<nb> public class AccountHeader {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AccountHeader {
this . mAccountHeader = accountHeader ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public View getView ( ) {
return mAccountHeader . mAccountHeaderCont... | improve docu of the Drawer |
<nb> public class TextMergeTool implements MergeTool {
String title = e . getPresentation ( ) . getText ( ) + STRING0 ;
- executeMergeCommand ( title , true , selectedChanges , new Runnable ( ) {
+ executeMergeCommand ( title , selectedChanges . size ( ) > NUMBER0 , selectedChanges , new Runnable ( ) {
@ ov... | do not start bulk mode on single change modification |
<nb> public class WindowManagerService extends IWindowManager . Stub
Surface . openTransaction ( ) ;
try {
+ updateWindowsAppsAndRotationAnimationsLocked ( currentTime , innerDw , innerDh ) ;
mPendingLayoutChanges = performAnimationsLocked ( currentTime , dw , dh ,
innerDw , innerDh ) ;
- updateWindowsApp... | Fix black screen on app transition |
<nb> public class FloatingActionsMenu extends ViewGroup {
case EXPAND_RIGHT :
width += child . getMeasuredWidth ( ) ;
height = Math . max ( height , child . getMeasuredHeight ( ) ) ;
+ break ;
}
}
<nb> public class FloatingActionsMenu extends ViewGroup {
case EXPAND_RIGHT :
width += mButtonSpacing *... | Add missing breaks |
<nb> public class WorldEdit {
blockType = BlockType . lookup ( testID ) ;
if ( blockType == null ) {
int t = server . resolveItem ( testID ) ;
- if ( t > NUMBER0 && t < NUMBER1 ) {
- blockType = BlockType . fromID ( t ) ;
+ if ( t > NUMBER0 ) {
+ blockType = BlockType . fromID ( t ) ; SINGLE
+ blockId =... | Fixed WorldEdit getBlock not supporting custom blocks when they are returned by ServerInterface resolveItem |
<nb> public class IntDict {
COMMENT
- < < < < < < < HEAD
- COMMENT
- COMMENT
- == == == =
COMMENT
COMMENT
- > > > > > > > cd467dc12a42d588638aaab06746bebdfb333cc4
COMMENT
COMMENT
COMMENT | Remove merge artifact in IntDict javadoc |
<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
try {
return cometSupport . service ( req , res ) ;
} catch ( IllegalStateException ex ) {
+ logger . warn ( ex . getMessage ( ) , ex ) ;
if ( ex . getMessage ( ) != null && ex . getMessage ( ) . startsWith ( STRING0 ) ) {
... | Log the exception |
<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener
}
logPoolState ( STRING0 ) ;
- throw new SQLException ( String . format ( STRING1 , connectionTimeout ) , lastConnectionFailure . getAndSet ( null ) ) ;
+ throw new SQLException ( String . format ( STRING2 , elapsedTimeMs ( star... | Log actual timeout milliseconds taken |
<nb> public class OReplicationLog extends OSingleFileSegment {
public boolean needAlignment ( ) {
lock . acquireSharedLock ( ) ;
try {
- return pendingLogs > NUMBER0 ;
+ return pendingLogs > NUMBER1 ;
} finally {
lock . releaseSharedLock ( ) ;
}
<nb> public class RemoteCreateDocumentSpeedTest extends ... | Fixed synchronization problems between cluster nodes |
<nb> public class ConnectivityManagerTestActivity extends Activity {
sleep ( SHORT_TIMEOUT ) ;
removeConfiguredNetworksAndDisableWifi ( ) ;
mWifiRegexs = mCM . getTetherableWifiRegexs ( ) ;
- SINGLE
- sleep ( WIFI_STOP_START_INTERVAL ) ;
}
public List < WifiConfiguration > loadNetworkConfigurations ( ) ... | Remove sleep from test acitivity to avoid ANR when key event is injected |
<nb> public class GetPatternsFromDataMultiClass implements Serializable {
if ( constVars . computeAllPatterns ) {
Redwood . log ( Redwood . DBG , STRING0 ) ;
this . patternsForEachToken = createPats . getAllPatterns ( label , Data . sents ) ;
+ constVars . computeAllPatterns = false ;
} else {
SINGLE
this... | removing extra log msgs |
<nb> public abstract class AbstractReplicatedMap < K , V >
}
public void breakdown ( ) {
- SINGLE
- try {
- finalize ( ) ;
- } catch ( Throwable t ) {
- log . error ( STRING0 , t ) ;
- }
- }
-
- @ override
- public void finalize ( ) throws Throwable {
if ( this . rpcChannel != null ) {
thi... | Moved resource freeing code from finalize to breakdown |
<nb> public class TestServlet extends HttpServlet {
}
out . println ( STRING0 ) ;
- out . println ( STRING1 ) ;
+ out . println ( STRING2 ) ;
try {
bean . never ( ) ;
} catch ( Exception e ) { | Fixing a typo for better formatting |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public interface Creature extends LivingEntity {
+ public interface Creature extends LivingEntity {
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void setTarg... | Added Creature getTarget |
<nb> public class BillingFileProcessor extends Poller {
SINGLE
List < S3ObjectSummary > objectSummaries = AwsUtils . listAllObjects ( config . billingS3BucketName , config . billingS3BucketPrefix ) ;
+ logger . info ( STRING0 + objectSummaries . size ( ) + STRING1 ) ;
TreeMap < DateTime , S3ObjectSummary > fi... | add more log info when BillingFileProcessor processing files in biling bucket |
<nb> public class MainController implements Choreographer . FrameCallback {
@ override
public void onSharedLink ( Bubble sender ) {
- MainController mainController = MainController . get ( ) ;
if ( mBubbles . size ( ) > NUMBER0 ) {
destroyBubble ( sender , Config . BubbleAction . Destroy ) ;
- switchState... | Remove references to MainController get inside MainController |
<nb> public class PlayerSystem extends BaseComponentSystem implements UpdateSubscribe
if ( character . exists ( ) ) {
event . getPlayerStore ( ) . setCharacter ( character ) ;
}
+ worldRenderer . getChunkProvider ( ) . removeRelevanceEntity ( entity ) ;
}
@ receiveevent ( components = { ClientComponent . ... | Remove client entity from relevance region when removed |
<nb> public class LoanBroker extends RouteBuilder {
SINGLE
. multicast ( new BankResponseAggregationStrategy ( ) . setAggregatingOutMessage ( true ) )
SINGLE
- . parallelProcessing ( true ) . to ( STRING0 , STRING1 , STRING2 ) ;
+ . setParallelProcessing ( true ) . to ( STRING0 , STRING1 , STRING2 ) ;
SIN... | Fix compile error in loan broker example |
<nb> public class LuceneLabelScanStore
{
monitor . init ( ) ;
directory = directoryFactory . open ( directoryLocation ) ;
- if ( ! indexExists ( ) )
- { SINGLE
- monitor . noIndex ( ) ;
- prepareRebuildOfIndex ( ) ;
- }
try
{
<nb> public class LuceneLabelScanStore
return strategy . acquireWrit... | Remove redundant check and log for index existence |
<nb> public class ActionGroupUtil {
@ notnull Map < AnAction , Presentation > action2presentation ) {
AnAction [ ] actions = actionGroup . getChildren ( e ) ;
for ( AnAction action : actions ) {
- if ( action instanceof ActionGroup ) {
- if ( ! isGroupEmpty ( ( ActionGroup ) action , e , action2presentation )... | handle hidden groups correctly |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT | Fixed CS error |
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity {
getBlogNames ( ) ;
setupCurrentBlog ( ) ;
initMenuDrawer ( ) ;
- mMenuDrawer . openMenu ( false ) ;
+ SINGLE
WordPress . registerForCloudMessaging ( this ) ;
-
- SINGLE
- SharedPreferences settings = PreferenceManager . ... | remove tutorial activity |
<nb> public class CascadeV1 extends Schema < Cascade , CascadeV1 > {
@ override public Cascade createImpl ( ) {
Cascade c = new Cascade ( ) ;
if ( ast . equals ( STRING0 ) ) throw H2O . fail ( STRING1 ) ;
- Log . info ( STRING2 + ast ) ;
c . _ast = ast ;
return c ;
} | remove info statement |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class CoordinatorLayout extends ViewGroup implements NestedScrollingParent {
static final String TAG = STRING0 ;
<nb> public class CoordinatorLayout extends ViewGroup implement... | Add javadoc for insetEdge and dodgeInsetEdges |
<nb> public abstract class JavaPlugin implements Plugin {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improved the Javadoc for JavaPlugin getConfiguration |
<nb> public class Executor {
COMMENT
COMMENT
public String getOutputString ( ) {
- return new String ( stdout ) ;
+ String ret = null ;
+ if ( stdout != null ) {
+ ret = new String ( stdout ) ;
+ }
+
+ return ret ;
}
COMMENT
<nb> public class Executor {
COMMENT
COMMENT
public String ge... | Fix NPE in getErrorString and getOutputString |
<nb> public class ScanFilterAndProjectOperator
this . pageProcessor = requireNonNull ( pageProcessor , STRING0 ) ;
this . operatorContext = requireNonNull ( operatorContext , STRING1 ) ;
this . planNodeId = requireNonNull ( sourceId , STRING2 ) ;
- this . pageSourceProvider = requireNonNull ( pageSourceProvider... | Fix a typo in ScanFilterAndProjectOperator |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface UrlImageViewCallback {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
void onLoaded ( ImageView imageView , D... | Add comments to how the UrlImageViewCallback works |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class CallDialog
private static final long serialVersionUID = NUMBER0 L ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private static final String FORCE_MINIMIZED_MODE
+ = STRING0 ;
+
+ ... | Adds option that can force call dialog to always open minimized |
<nb> public class ClientBootstrap extends Bootstrap {
}
} while ( future == null ) ;
- pipeline . remove ( pipeline . get ( STRING0 ) ) ;
-
return future ;
} | Removed unnecessary warning logs related with ClientBootstrap |
<nb> public class TestLuceneIndex
index . clear ( ) ;
}
+ @ ignore ( STRING0 )
@ test
public void testSortByRelevance ( )
{
<nb> public class TestLuceneIndex
index . add ( node3 , STRING1 , STRING2 ) ;
restartTx ( ) ;
+ SINGLE
IndexHits < Node > hits = index . query (
new QueryContext ( STRI... | Trying to push through a build disabling test that fails on hudson but passes anywhere else |
<nb> public class RealtimeDataSnapshotSource {
for ( TripUpdateList tripUpdateList : updates ) {
uIndex += NUMBER0 ;
LOG . debug ( STRING0 , uIndex , tripUpdateList . getUpdates ( ) . size ( ) ) ;
- LOG . trace ( STRING1 , tripUpdateList . toString ( ) ) ;
+ LOG . trace ( STRING1 , tripUpdateList ) ;
bool... | Prevent performance loss because of unused logging |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class PropertyPlaceholderConfigurer extends PropertyResourceConfigurer
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void setIgnoreUnresolvablePlaceholders ( boolea... | refined ignoreUnresolvablePlaceholders javadoc |
<nb> import NAMESPACE ;
public class CocoaLocaleProvider implements LocaleRuntime {
@ override
- public String getCurrentLocale ( ) {
- return STRING0 ;
- }
+ public native String getCurrentLocale ( ) COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ;
@ override
public native String formatDate ( long dat... | Fixing locale detection |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public class PluginFunctionalTest extends PluginFunctionalAbstractBase
{
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ suppresswarnings ( STRING1 )
public class JaxRsResponse exte... | Adding supress warnings to tidy up |
<nb> public class JsPreferencesStorage implements PreferencesStorage {
if ( v == null ) {
storage . removeItem ( key ) ;
} else {
- storage . setItem ( convertKey ( key ) , v ) ;
+ storage . setItem ( key , v ) ;
}
} | Fixing setting item in JsPreferencesStorage |
<nb> public class C1SChunk extends Chunk {
public double [ ] getDoubles ( double [ ] vals , int [ ] ids ) {
int j = NUMBER0 ;
for ( int i : ids ) {
- long res = NUMBER1 & _mem [ i ] ;
+ long res = NUMBER1 & _mem [ _OFF + i ] ;
vals [ j ++ ] = res != C1Chunk . _NA ? ( res - _bias ) * _scale : Double . NaN ; ... | Fixed C1SChunk bulk interface |
<nb> public class ResolverActivity extends Activity {
}
SINGLE
- SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
SINGLE
SINGLE
SINGLE
<nb> public class ResolverActivity extends Activity {
int granted = ActivityManager . checkComponentPermission (
ai . permission , mLaunchedFromUid ,
ai . applicationInfo .... | Don t show suspended applications in system intent picker dialog |
<nb> public class PageProcessorCompiler
Block body = method . getBody ( )
. comment ( STRING0 )
- . putVariable ( wasNullVariable , projection . getType ( ) . getJavaType ( ) == void . class ) ;
+ . putVariable ( wasNullVariable , false ) ;
ByteCodeExpressionVisitor visitor = new ByteCodeExpressionVisitor... | Fix bug in PageProcessorCompiler |
<nb> public final class ValueAttribute extends TypeIntrospectionBase {
public boolean deprecated ;
+ public boolean isComparableKey ( ) {
+ return isContainerType ( )
+ && super . isComparable ( ) ;
+ }
+
@ override
public boolean isComparable ( ) {
return isNumberType ( )
<nb> public final clas... | separating isComparable and isComparableKey queries |
<nb> public class GitUntrackedFilesHolder implements Disposable , BulkFileListener {
break ;
}
String path = event . getPath ( ) ;
- if ( path == null ) {
- continue ;
- }
if ( totalRefreshNeeded ( path ) ) {
allChanged = true ;
} | git remove unnecessary check for null |
<nb> public class Dijkstra {
public BasicShortestPathTree getShortestPathTree ( double weightLimit , int nodeLimit ) {
SINGLE
- HashSet < String > remainingTargets = null ;
+ HashSet < Vertex > remainingTargets = null ;
if ( targets != null )
- remainingTargets = ( HashSet < String > ) targets . clone ( )... | fix bug in multi target gtfs |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class DeadlockHealthCheck extends HealthCheck {
private final VirtualMachineMetrics vm ; | Fixed javadocs for DeadlockHealthCheck |
<nb> public class TerasologyEngine implements GameEngine {
private static final Logger logger = LoggerFactory . getLogger ( TerasologyEngine . class ) ;
- private static final int ONE_MEBIBYTE = NUMBER0 ; SINGLE
+ private static final int ONE_MEBIBYTE = NUMBER1 * NUMBER1 ;
private GameState currentState ;... | Change ONE_MEBIBYTE definition back |
<nb> public class Container extends ViewGroup {
( ( StateListener ) view ) . ReportCurrentState ( frameDesc . state ) ;
}
- @ override
- public void addView ( View v ) {
- super . addView ( v ) ;
- Log . d ( TAG , STRING0 + this . getChildCount ( ) ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+... | Commented out a Log statement |
<nb> public class FormattedSqlChangeLogParser implements ChangeLogParser {
if ( name != null ) {
String body = preconditionMatcher . group ( NUMBER0 ) . trim ( ) ;
if ( STRING0 . equals ( name ) ) {
- changeSet . getPreconditions ( ) . addNestedPrecondition ( parseSqlCheckCondition ( body ) ) ;
+ changeSet . ... | Fix formatted sql precondition not expanding changelog parameters |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NavigationMenuPresenter implements MenuPresenter {
MenuItem item = textItem . getMenuItem ( ) ;
if ( item . getIcon ( ) ==... | Fix transparent color |
<nb> public class AtomicBTreeColumns extends ColumnFamily
public Cell apply ( Cell replaced , Cell update )
{
Cell reconciled = update . reconcile ( replaced , allocator ) ;
- if ( reconciled == update )
- indexer . update ( replaced , reconciled ) ;
- else
- indexer . update ( update , reconciled ) ;
+... | Fix previous merge |
<nb> public class RegionAddressRepositoryBinary implements RegionAddressRepository {
@ override
public List < City > fillWithSuggestedCities ( String name , final ResultMatcher < City > resultMatcher , boolean searchVillages , LatLon currentLocation ) {
List < City > citiesToFill = new ArrayList < City > ( ) ;
... | back out and try removing another cities isempty |
<nb> public final class DetailAST
}
return retVal ;
}
+
+ COMMENT
+ public String toString ( )
+ {
+ return super . toString ( ) + STRING0 + getLineNo ( ) + STRING1 + getColumnNo ( ) + STRING2 ;
+ }
} | adding toString for debug purpose |
<nb> public class Glide {
COMMENT
COMMENT
public Request < T > resizeWith ( ImageLoader imageLoader ) {
- if ( presenter == null ) {
- builder . setImageLoader ( imageLoader ) ;
- }
+ builder . setImageLoader ( imageLoader ) ;
return this ;
} | Remove a null check in Glide resizeWith |
<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
<nb> public @ interface ReceiverAction {
C... | add dataSchemes to ReceiverAction |
<nb> public class AutoCompleteTextView extends EditText implements Filter . FilterListe
private View mDropDownAnchorView ; SINGLE
private int mDropDownWidth ;
private int mDropDownHeight ;
+ private final Rect mTempRect = new Rect ( ) ;
private Drawable mDropDownListHighlight ;
<nb> public class AutoCom... | Add padding to height of AutoCompleteTextView drop down |
<nb> public class FeedEntryStatusDAO extends GenericDAO < FeedEntryStatus > {
private static final Comparator < FeedEntryStatus > STATUS_COMPARATOR_DESC = new Comparator < FeedEntryStatus > ( ) {
@ override
public int compare ( FeedEntryStatus o1 , FeedEntryStatus o2 ) {
- return ObjectUtils . compare ( o2 . ge... | treeset uses compareTo instead of equals |
<nb> class NioUdpWorker implements Runnable {
try {
int localWrittenBytes = NUMBER0 ;
for ( int i = writeSpinCount ; i > NUMBER0 ; i -- ) {
- localWrittenBytes =
- channel . getDatagramChannel ( ) . send (
- buf . toByteBuffer ( ) ,
- evt . getRemoteAddress ( ) ) ;
+ if ( evt . getRemoteAddress ( ) == n... | Fixed NPE in NioUdpWorker writeNow |
<nb> public class StompProducer extends DefaultAsyncProducer implements Processor {
} catch ( Exception e ) {
exchange . setException ( e ) ;
}
+ callback . done ( true ) ;
return true ;
} | camel stomp should detect failure when sending |
<nb> public class UDPReceiverThread extends Thread {
} catch ( java . nio . channels . AsynchronousCloseException ex ) {
break ; SINGLE
+ } catch ( java . nio . channels . ClosedChannelException ex ) {
+ break ; SINGLE
} catch ( Exception e ) {
SINGLE
System . err . println ( STRING0 + H2O . UDP_PORT ) ... | Ignore another shutdown race error |
<nb> public class AndroidBinary extends AbstractBuildRule implements
SINGLE
SINGLE
if ( ! exopackage ) {
- SINGLE
- SINGLE
- SINGLE
- return Sha1HashCode . newRandomHashCode ( ) ;
+ return new Sha1HashCode ( getRuleKey ( ) . toString ( ) ) ;
}
return enhancementResult . getComputeExopackageDepsAbi... | Revert the hack in AndroidBinary getAbiKeyForDeps |
<nb> public abstract class OperationThread extends HazelcastManagedThread {
long timeoutMs = unit . toMillis ( timeout ) ;
join ( timeoutMs ) ;
}
+
+ public int getThreadId ( ) {
+ return threadId ;
+ }
} | Add threadId getter to OperationThread |
<nb> public abstract class AbstractQueryTestCase < QB extends AbstractQueryBuilder < QB > >
COMMENT
COMMENT
COMMENT
- public void testQueryWrappedInArray ( ) throws IOException {
+ public final void testQueryWrappedInArray ( ) throws IOException {
QB queryBuilder = createTestQueryBuilder ( ) ;
- String va... | TEST expand AbstractQueryTestCase testQueryWrappedInArray to run against query alternate versions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Maven2ServerIndexerImpl extends MavenRemoteObject implements MavenS
if ( artifactContext == null ) return null ;
myIndexer . addArtifactToIndex ( artifactConte... | resetting index caches when new artifact is added |
<nb> public abstract class AbstractEndpoint {
return newPath ;
}
- public String defaultIfNull ( String val , String defaultValue ) {
- if ( val == null ) return defaultValue ;
- return val ;
- }
-
protected abstract Log getLog ( ) ;
public abstract boolean getUseSendfile ( ) ;
<nb> public class... | Remove unused code as identified by UCDetector |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.