diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ManifestUpdateMojo extends AbstractAndroidMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private boolean manifestVersionCodeAutoIncrement = false ; | fixed camel casing of config parameter to be the same as pom based parameter |
<nb> public class ORecordLazyList extends ORecordTrackedList implements ORecordLazyMu
else {
SINGLE
stream = iStream ;
+ final int prevModCount = modCount ;
reset ( ) ;
+ modCount = prevModCount ;
}
contentType = MULTIVALUE_CONTENT_TYPE . ALL_RIDS ; | Fixed nasty bug on lazy unmarshalling of collections |
<nb> public final class MediaRouteDescriptor {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public boolean canDisconnectAndKeepPlaying ( ) {
return mBundle . getBoolean ( KEY_CAN_DISC... | Add comment on canDisconnectAndKeepPlaying |
<nb> public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro
createWheels ( ) ;
}
+ @ override
public Control cloneForSpatial ( Spatial spatial ) {
throw new UnsupportedOperationException ( STRING0 ) ;
}
<nb> public class TestPssmShadow extends SimpleApplication implements Actio... | Adding Override to cloneForSpatial methods in examples |
<nb> public class CoreProxy {
}
public static void setField804 ( EntityItem item , float value ) {
- item . field_804_d = value ;
+ item . hoverStart = value ;
}
public static File getPropertyFile ( ) { | Revert Invalidating a TE should not cause the pipe to drop |
<nb> public class BeanDefinitionBuilder {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ public BeanDefinitionBuilder addConstructorArg ( Object value ) {
+ return addConstructorArgValue ( value ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public BeanDefinitionBuilder addC... | Reintroducing deprecated addConstructorArg variant |
<nb> public abstract class OTreeMapPersistent < K , V > extends OTreeMap < K , V > implements
protected volatile int usageCounter = NUMBER0 ;
SINGLE
- protected int entryPointSize = NUMBER1 ;
+ protected int entryPointSize = NUMBER2 ;
protected float entryPointThresholdFactor = FLOAT0 ;
protected volatile... | Improved RB Tree algorithm for a better balances tree |
<nb> public class Location implements Cloneable {
@ override
public String toString ( ) {
- return STRING0 + STRING1 + world + STRING2 + x + STRING3 + y + STRING4 + z + STRING5 + pitch + STRING6 + yaw + STRING7 ;
+ return STRING0 + STRING1 + world + STRING8 + x + STRING9 + y + STRING10 + z + STRING11 + pitch ... | Fix toString in Location to be readable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class RestIndicesExistsAction extends BaseRestHandler {
@ override public void onFailure ( Throwable e ) { ... | even on failure don t return a body for HEAD request |
<nb> public class PsiModifierListImpl extends JavaStubPsiElement < PsiModifierListStub >
return false ;
}
if ( type == JavaTokenType . ABSTRACT_KEYWORD ) {
- return getNode ( ) . findChildByType ( JavaTokenType . DEFAULT_KEYWORD ) == null ;
+ return getNode ( ) . findChildByType ( JavaTokenType . DEFAULT_KEYW... | static methods in interfaces should not have abstract by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class GraphHandler implements HttpRpc {
int nqueries = NUMBER0 ;
for ( final String m : ms ) {
SINGLE
- SINGLE
+ SINGLE
+ ... | Add rate option parsing to GraphHandler |
<nb> final class StandardWrapperValve
}
} else {
if ( comet ) {
- filterChain . doFilterEvent ( request . getEvent ( ) ) ;
request . setComet ( true ) ;
+ filterChain . doFilterEvent ( request . getEvent ( ) ) ;
} else {
filterChain . doFilter
( request . getRequest ( ) , response . getResponse ( ) ) ... | Fix comet handling in case BEGIN event calls CometEvent close |
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
@ nullable volatile private UTXOProvider vUTXOProvider ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Wallet ( NetworkParameters params ) {
this ( params , new KeyChainGroup ( params ... | Add warning about randomly generated keys to Wallet constructor |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
public final class EarClippingTriangulator {
private static final int CONCAVE = NUMBER0 ;
<nb> public final class EarClippingTriangulator {
private int [ ... | Improve some comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class TestMetrics
@ test
public void tes... | Skip the testMetricUsage test on Windows |
<nb> public class FieldSortBuilder extends SortBuilder {
private Object missing ;
- private Boolean ignoreUnampped ;
+ private Boolean ignoreUnmapped ;
private String sortMode ;
<nb> public class FieldSortBuilder extends SortBuilder {
COMMENT
COMMENT
public FieldSortBuilder ignoreUnmapped ( bool... | Fixed typos in FieldSortBuilder |
<nb> public class ObservableTests {
}
@ test
+ public void testContainsWithInexistence ( ) {
+ Observable < Boolean > observable = Observable . from ( STRING0 , STRING1 , null ) . contains ( STRING2 ) ;
+
+ @ suppresswarnings ( STRING3 )
+ Observer < Object > aObserver = mock ( Observer . class ) ;
+ ... | Add one more unit test |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Type extends BaseObj {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public ... | Allow YUV_420_888 as a YUV type |
<nb> public abstract class UltimateViewAdapter extends RecyclerView . Adapter < RecyclerV
public abstract long generateHeaderId ( int position ) ;
- protected class UltimateRecyclerviewViewHolder extends RecyclerView . ViewHolder {
+ public class UltimateRecyclerviewViewHolder extends RecyclerView . ViewHolde... | set UltimateRecyclerviewViewHolder as public class |
<nb> import static NAMESPACE
public class EnterpriseNeoServer extends AdvancedNeoServer
{
- public static final String SINGLE = STRING0 ;
public static final String HA = STRING1 ;
- public static final String ENTERPRISE = STRING2 ;
private static final GraphFactory HA_FACTORY = new GraphFactory ( )
{
... | For community server use the community launcher |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
public class EmptyColumns extends AbstractThreadUnsafeSortedColumns
{
public stat... | use guava s Iterators class and emptyIterator |
<nb> public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V > {
}
private boolean setFailure0 ( Throwable cause ) {
+ if ( cause == null ) {
+ throw new NullPointerException ( STRING0 ) ;
+ }
+
if ( isDone ( ) ) {
return false ;
} | Fix a bug where ChannelFuture setFailure null doesn t fail |
<nb> public class DateUtils {
private static final String TAG = STRING0 ;
- private static final SimpleDateFormat parser = new SimpleDateFormat ( STRING1 , Locale . US ) ;
private static final TimeZone defaultTimezone = TimeZone . getTimeZone ( STRING2 ) ;
- static {
- parser . setLenient ( false ) ;
... | Give each thread its own parser |
<nb> class LanguageToolSupport {
config = new Configuration ( new File ( System . getProperty ( STRING0 ) ) , CONFIG_FILE , language ) ;
SINGLE
this . config . setLanguage ( language ) ;
- if ( languageTool != null ) {
- languageTool . shutdownWhenDone ( ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
... | don t call shutdown to avoid RejectedExecutionException |
<nb> public class Group extends Actor implements Cullable {
public void setCullingArea ( Rectangle cullingArea ) {
this . cullingArea = cullingArea ;
}
+
+ COMMENT
+ public Rectangle getCullingArea ( ) {
+ return cullingArea ;
+ }
public Actor hit ( float x , float y , boolean touchable ) {
if ( t... | Add getter for cullingArea in Group |
<nb> public class ShadowFragment {
this . resumed = true ;
}
+ public void pause ( ) {
+ realFragment . onPause ( ) ;
+ this . resumed = false ;
+ }
+
@ implementation
public void startActivity ( Intent intent ) {
if ( fragmentActivity == null ) { | Added pause hook to ShadowFragment |
<nb> public class SpiceManager implements Runnable {
try {
sendRequestToService ( requestQueue . take ( ) ) ;
} catch ( final InterruptedException ex ) {
- Ln . d ( ex , STRING0 ) ;
+ Ln . d ( STRING0 ) ;
}
}
} catch ( final InterruptedException e ) { | do not log the InterruptedException stacktrace |
<nb> public class SpanishTokenizer < T extends HasWord > extends AbstractTokenizer < T > {
Map < String , Integer > argOptionDefs = Generics . newHashMap ( ) ;
argOptionDefs . put ( STRING0 , NUMBER0 ) ;
argOptionDefs . put ( STRING1 , NUMBER0 ) ;
+ argOptionDefs . put ( STRING2 , NUMBER0 ) ;
argOptionDefs . ... | Add command line constraint |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed the unused import of RabbitMQConsumer |
<nb> public class DBCursorTest extends TestCase {
}
}
- @ test
- public void testToArrayCursorClosed ( ) {
- final DBCollection c = collection ;
-
- SINGLE
- for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
- c . insert ( new BasicDBObject ( STRING0 , STRING1 ) ) ;
- }
-
- final DBCursor cursor ... | Also backing out the test |
<nb> public class AddLocalExchanges
parentPreferences . constrainTo ( node . getSource ( ) . getOutputSymbols ( ) ) . withDefaultParallelism ( session ) ) ;
SINGLE
- PlanWithProperties filteringSource = planAndEnforce ( node . getFilteringSource ( ) , singleStream ( ) , defaultParallelism ( session ) ) ;
+ Pl... | Remove unneeded local fanout for semijoin |
<nb> public class MasterMain
masterYp
) ;
+ final ConfigManagerConfig configManagerConfig = configFactory . build ( ConfigManagerConfig . class ) ;
+ DbConnector . createConfigTable ( dbi , configManagerConfig . getConfigTable ( ) ) ;
JacksonConfigManager configManager = new JacksonConfigManager (
- new C... | Master should create the config table if it s not there |
<nb> public class FreeTypeFontGenerator implements Disposable {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public BitmapFont generateFont ( int size ) {
- return generateFont ( size , DEFAULT_CHARS , false ) ;
- }
-
- COMMENT
COMMENT
C... | fixed FreeTypeFontGenerator had wrong encoding |
<nb> public class Driver implements CommandProcessor {
} catch ( CommandNeedRetryException e ) {
executionError = true ;
throw e ;
- } catch ( Exception e ) {
+ } catch ( Throwable e ) {
executionError = true ;
if ( isInterrupted ( ) ) {
return handleInterruption ( STRING0 + e . getMessage ( ) ) ;
<nb... | Catch Throwable instead of Exception in driver execute Zhihai Xu via Jimmy Xiang |
<nb> public class PlaybackService extends Service {
} else {
mediaPlayer . pause ( true , true ) ;
}
+ }
}
private BroadcastReceiver shutdownReceiver = new BroadcastReceiver ( ) { | Adding Missing semicolon |
<nb> import NAMESPACE ;
COMMENT
public class NoOpProjector implements Projector , RowDownstreamHandle {
- public static NoOpProjector INSTANCE = new NoOpProjector ( ) ;
+ public static final NoOpProjector INSTANCE = new NoOpProjector ( ) ;
private NoOpProjector ( ) { | make NoOpProjector instance final |
<nb> public class FileAttributesReadingTest {
@ test
public void hardLink ( ) throws Exception {
+ SINGLE
+ assertFalse ( SystemInfo . isWindows ) ;
final File target = FileUtil . createTempFile ( myTempDirectory , STRING0 , STRING1 ) ;
final File link = IoTestUtil . createHardLink ( target . getPath ( ) ... | skip hardLink tests under Windows because it fails on new agents |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public abstract class HgErrorHandler {
- public static HgCommandResult ensureSuccess ( HgCommandResult result ) throws VcsException {
+ public static HgCommandResult ensureSuccess ( @ nullable HgCommandResult result ... | Fix NPE in HgErrorHandler |
<nb> public class PercolatorService extends AbstractComponent {
if ( context . aggregations ( ) != null ) {
AggregationContext aggregationContext = new AggregationContext ( context ) ;
context . aggregations ( ) . aggregationContext ( aggregationContext ) ;
-
+ context . aggregations ( ) . factories ( ) . ini... | Fixed merge errors |
<nb> public class ResponseBodyEmitterReturnValueHandler implements AsyncHandlerMethod
SINGLE
outputMessage . getBody ( ) ;
+ outputMessage . flush ( ) ;
outputMessage = new StreamingServletServerHttpResponse ( outputMessage ) ;
DeferredResult < ? > deferredResult = new DeferredResult < Object > ( emitter ... | Ensure headers committed immediately for SseEmitter |
<nb> public class MotionTrack extends AbstractCinematicEvent implements Control {
}
public void onUpdate ( float tpf ) {
+ System . out . println ( STRING0 + time ) ;
traveledDistance = path . interpolatePath ( time , this ) ;
+ System . out . println ( STRING1 + traveledDistance ) ;
computeTargetDirectio... | Fixed an initialization issue in MotionTrack |
<nb> public abstract class BaseGetNewsTask extends BaseDownloadTask < Void , Void , List <
@ override
protected void onPostExecute ( List < DailyNews > resultNewsList ) {
mCallback . afterTaskFinished ( resultNewsList , isRefreshSuccess , isContentSame ) ;
+ mCallback = null ;
}
protected boolean checkIsN... | Remove callback when the job is done |
<nb> public class JDateTime implements Comparable , Cloneable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void changeTimeZone ( TimeZone from , TimeZone to ) {
+ this . timezone = from ;
+ changeTimeZone ( to ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
public void setTimeZone ( TimeZone tim... | Added convenient changeTimeZone method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AsyncStockServlet extends HttpServlet implements TickListener , Asyn
public static final String LONG_POLL = STRING0 ;
public static final Str... | Remove unused code |
<nb> public class PeerAddress extends ChildMessage {
this . port = addr . getPort ( ) ;
this . protocolVersion = NetworkParameters . PROTOCOL_VERSION ;
this . services = BigInteger . ZERO ;
- length = protocolVersion > NUMBER0 ? MESSAGE_SIZE : MESSAGE_SIZE - NUMBER1 ;
+ length = MESSAGE_SIZE ;
}
public ... | simplify dead code |
<nb> public class SeekableViewsForTest {
if ( is_integer ) {
current_data . reset ( generateTimestamp ( ) , current ) ;
} else {
- current_data . reset ( generateTimestamp ( ) , current ) ;
+ current_data . reset ( generateTimestamp ( ) , ( double ) current ) ;
}
} | Fix SeekableViewsForTest to handle the reset long double overload properly |
<nb> public class PropertyAnnotationsTest extends TestCase {
@ override
public String toString ( ) {
+ SINGLE
+ SINGLE
return STRING0 ;
}
} | added comment explaining TestEnum toString override |
<nb> public class TachyonFS {
ClientFileInfo info = null ;
if ( ! fetch ) {
info = mClientFileInfos . get ( fId ) ;
- if ( ! info . isFolder ( ) && info . blockIds . size ( ) <= blockIndex ) {
+ if ( info . isFolder ( ) || info . blockIds . size ( ) <= blockIndex ) {
fetch = true ;
}
}
<nb> public cla... | Always fetch the DIR s blockInfo remotely in getClientBlockInfo |
<nb> public class PlatformUtilsCore {
public static final String APPCODE_PREFIX = STRING0 ;
public static final String CPP_PREFIX = STRING1 ;
public static final String PYCHARM_PREFIX = STRING2 ;
- public static final String PYCHARM_PREFIX2 = STRING3 ;
+ public static final String PYCHARM_PREFIX2 = STRING4 ; ... | fixed pycharm community detection |
<nb> public class ReplicaSetStatus {
if ( e instanceof IOException ) {
+ logError . append ( STRING0 ) . append ( IOException . class . getName ( ) ) ;
+
if ( e . getMessage ( ) != null ) {
- logError . append ( STRING1 ) . append ( e . getMessage ( ) ) ;
+ logError . append ( STRING2 ) . append ( e . g... | added class to error |
<nb> public class QSPanel extends LinearLayout implements Tunable , Callback {
}
MetricsLogger . visibility ( mContext , MetricsEvent . QS_PANEL , mExpanded ) ;
if ( ! mExpanded ) {
+ mTriggeredExpand = false ;
closeDetail ( ) ;
} else {
logTiles ( ) ; | Fix QS not collapsing after some QQS gestures |
<nb> public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider
while ( itemIter . hasNext ( ) ) {
RosterItem item = ( RosterItem ) itemIter . next ( ) ;
if ( item . getSubStatus ( ) == RosterItem . SUB_REMOVE ) {
- removeItem ( cachedRoster , packet . getSender ( ) , item , packet ) ;
+... | Removed unused parameter and never thrown Exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ @ ignore ( STRING0 )
public class Examples extends AcceptanceTestBase... | Ignored Examples java tests since they re not regression tests |
<nb> public class NetworkPolicyManagerService extends INetworkPolicyManager . Stub {
private void ensureActiveMobilePolicyLocked ( ) {
if ( LOGV ) Slog . v ( TAG , STRING0 ) ;
final String subscriberId = getActiveSubscriberId ( ) ;
- if ( subscriberId == null ) {
- if ( LOGV ) Slog . v ( TAG , STRING1 ) ;
-... | Generate default policy for devices without IMSI |
<nb> public class NetworkDispatcher extends SimpleChannelInboundHandler < Packet < ? > > im
SINGLE
if ( ! ( cause instanceof ClosedChannelException ) )
{
- FMLLog . log ( Level . ERROR , cause , STRING0 ) ;
+ SINGLE
+ if ( cause . getMessage ( ) . contains ( STRING1 ) )
+ {
+ FMLLog . log ( Level . DEBU... | Mute the connection reset by peer exception it s spamilicious for the most part |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BasicDomElementComponent extends AbstractDomElementCompone
private String convertFieldName ( String propertyName , final DomChildrenDe... | generated forms for faces elements |
<nb> public final class Constants {
public static final String INTEGRATION_WORKER_RESOURCE_MEM =
STRING0 ;
-
public static final String MASTER_FORMAT_FILE_PREFIX = STRING1 ;
public static final String MASTER_JOURNAL_FOLDER = STRING2 ;
public static final String MASTER_JOURNAL_FORMATTER_CLASS = | SMALLFIX Remove redundant empty line |
<nb> public final class CacheBuilder < K , V > {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class CacheBuilder < K , V > {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
CO... | Generalize the javadocs on CacheBuilder ticker |
<nb> public class CookieRetrievingCookieGenerator extends CookieGenerator {
COMMENT
public CookieRetrievingCookieGenerator ( final CookieValueManager casCookieValueManager ) {
super ( ) ;
- final Method setHttpOnlyMethod = ReflectionUtils . findMethod ( Cookie . class , STRING0 , boolean . class ) ;
- if ( se... | Add HttpOnly to CookieRetrievingCookieGenerator |
<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... | Fix HiDPI border for CommitInfoPopup |
<nb> public class UnusedReturnValue extends GlobalJavaInspectionTool {
final PsiStatement lastStatement = psiStatements [ psiStatements . length - NUMBER0 ] ;
for ( PsiReturnStatement returnStatement : returnStatements ) {
try {
- if ( returnStatement == lastStatement ) {
- returnStatement . delete ( ) ;
- ... | remove return statements if there are no side effects only |
<nb> public class HystrixCommandMetrics extends HystrixMetrics {
this . threadPoolKey = threadPoolKey ;
this . properties = properties ;
- Func0 < Integer > concurrentExecutionThunk = new Func0 < Integer > ( ) {
- @ override
- public Integer call ( ) {
- return HystrixCommandMetrics . getInstance ( key ) ... | remove dead allocation of unused thunk |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class TextureAtlas {
+ private static final Logger logger = Logger . getLogger ( TextureAtlas . class . getName ( ) ... | add size warning to TextureAtlas |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
COMMENT
COMMENT
COMMENT | Removed outdated TODO for LocaleList |
<nb> public interface Graphics {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
public void setCursor ( Cursor cursor ) ;
COMMENT | Fixed JavaDoc of Graphics setCursor |
<nb>
-
package NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AdapterView < T extends Adapter > extends ViewGroup {
mNeedSync = false ;
checkSelectionChanged ( ) ;
}
- ReflectHelper . invoke ( this , STRING0 , null ) ;
+ if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_... | Fixed Honeycomb crash |
<nb> public class PluginAwareResourceBundleMessageSource extends ReloadableResourceBu
if ( i > - NUMBER0 ) {
baseName = baseName . substring ( NUMBER1 , i ) ;
}
- if ( ! basenames . contains ( baseName ) )
+ if ( ! basenames . contains ( baseName ) && ! baseName . equals ( STRING0 ) )
basenames . add ( base... | Added check to prevent empty names from being added to the baseNames collection |
<nb> public class GLMProgressPage2 extends Progress2 {
}
@ override protected Response jobDone ( final Job job , final Key dst ) {
_isDone = true ;
- return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0 , null ) ;
+ return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0... | Removed warning in GLMProgressPage2 |
<nb> public class BridgePowerManager implements IPowerManager {
public void boostScreenBrightness ( long time ) throws RemoteException {
SINGLE
}
+
+ @ override
+ public boolean isScreenBrightnessBoosted ( ) {
+ return false ;
+ }
} | Implement isScreenBrightnessBoosted in BridgePowerManager |
<nb> public class EndpointWebMvcAutoConfigurationTests {
this . applicationContext . refresh ( ) ;
SINGLE
assertThat ( this . applicationContext . getBeansOfType ( MvcEndpoint . class ) . size ( ) ,
- is ( equalTo ( NUMBER0 ) ) ) ;
+ is ( equalTo ( NUMBER1 ) ) ) ;
}
@ test | Fix assertion in broken test |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAME... | Removed unnecessary import warnings |
<nb> public class GLRenderer implements Renderer {
return GL . GL_VERTEX_SHADER ;
case Geometry :
return GL3 . GL_GEOMETRY_SHADER ;
- case TesselationControl :
+ case TessellationControl :
return GL4 . GL_TESS_CONTROL_SHADER ;
- case TesselationEvaluation :
+ case TessellationEvaluation :
return GL4 .... | Added GL_PATCHES to convertElementMode |
<nb> public class FastImage extends Actor {
sWidth = width ;
sHeight = height ;
}
-
+
+ sprite . setColor ( color ) ;
sprite . setRegion ( region ) ;
} | fixed FastImage sets color of sprite as well now |
<nb> public class OCFile implements Parcelable , Comparable < OCFile > {
private boolean mIsDownloading ;
private String mEtagInConflict ; SINGLE
+
private boolean mShareWithUser ;
<nb> public class OCFile implements Parcelable , Comparable < OCFile > {
public void setShareWithUser ( boolean shareWith... | Add new attribute to OCFile to know if this file is shared with users groups |
<nb> public class EdgeSerializer {
long propTypeId = map . getKey ( i ) ;
if ( propTypeId > NUMBER0 ) {
TitanType pt = tx . getExistingType ( propTypeId ) ;
- factory . addProperty ( pt , map . getValue ( i ) ) ;
+ if ( map . getValue ( i ) != null ) {
+ factory . addProperty ( pt , map . getValue ( i ) ) ;... | Only add property to relationfactory if |
<nb> public class SipStackProperties
private static final String NSPVALUE_DEBUG_LOG_OVERWRITE = STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- private static final String NSPNAME_REENTRANT_LISTENER
- = STRING1 ;
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- private static final ... | Removes debug printing |
<nb> public class SimpleQueryStringTests extends ElasticsearchIntegrationTest {
assertFirstHit ( searchResponse , hasId ( STRING0 ) ) ;
searchResponse = client ( ) . prepareSearch ( ) . setQuery (
- simpleQueryString ( STRING1 ) . field ( STRING2 , FLOAT0 ) . field ( STRING3 , FLOAT1 ) . queryName ( STRING4 ) )... | Fix SimpleQueryStringTests testSimpleQueryString assumption that depends on how documents are routed |
<nb> public class FeedFetcher {
feedUrl = extractedUrl ;
}
}
+ if ( result . getContent ( ) == null ) {
+ throw new IOException ( STRING0 ) ;
+ }
+
fetchedFeed = parser . parse ( feedUrl , result . getContent ( ) ) ;
Feed feed = fetchedFeed . getFeed ( ) ;
feed . setLastModifiedHeader ( result . get... | intercept empty feed early on |
<nb> public final class TicketGrantingTicketImpl extends AbstractTicket implements Ti
private static final long serialVersionUID = - NUMBER0 ;
@ transient
- private final Logger LOG = LoggerFactory . getLogger ( this . getClass ( ) ) ;
+ private static final Logger LOG = LoggerFactory . getLogger ( TicketGran... | Restored the static logger back |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public interface ModuleMetadataProcessor {
- void processMetadata ( ModuleVersionMetaData metadata ) ;
+ void processMetadata ( MutableModuleVersionMetaData metadata ) ;
}
<nb> import NAMESPACE ;
import NAMESPACE ;
impo... | ModuleMetadataProcessor mutates the meta data |
<nb> public class FloatingActionButton extends ImageButton {
mColorNormal = getColor ( R . color . material_blue_500 ) ;
mColorPressed = getColor ( R . color . material_blue_600 ) ;
mColorRipple = getColor ( android . R . color . white ) ;
- mColorDisabled = getColor ( android . R . color . white ) ;
+ mColor... | Use the darker gray color as a default for the disabled state |
<nb> public class PersistenceStressTest extends LightPlatformCodeInsightFixtureTestCa
SINGLE
}
}
- System . out . println ( STRING0 ) ;
+ SINGLE
return true ;
}
catch ( Throwable e ) { | removed extra trace |
<nb> public class EntityEditorPropertyTester extends PropertyTester
case PROP_CAN_REDO :
return commandContext . getRedoCommand ( ) != null ;
case PROP_DIRTY :
- return commandContext . isDirty ( ) ;
+ return editor . isDirty ( ) ;
}
} | Revert action state fix |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ResourceShrinker {
}
private void parseResourceTxtFile ( Path rTxt , Set < String > resourcePackages ) throws IOException... | Change ResourceShrinker instance of Charset defaultCharset being used to parse resource file to use UTF_8 explicitly |
<nb> public class VertxOptions {
public static final boolean DEFAULT_HA_ENABLED = false ;
COMMENT
- COMMENT
- COMMENT
- public static final boolean DEFAULT_METRICS_ENABLED = false ;
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove unused constant |
<nb> public class Invocation implements PrintableInvocation , InvocationOnMock , Printi
return matchers ;
}
- public static boolean isToString ( InvocationOnMock invocation ) {
- return new ObjectMethodsGuru ( ) . isToString ( invocation . getMethod ( ) ) ;
+ public boolean isToString ( ) {
+ return new O... | Refactored out a static method |
<nb> public final class HeapAnalyzer {
}
return result ;
- } catch ( SnapshotException e ) {
+ } catch ( Exception e ) {
return failure ( e , since ( analysisStartNanoTime ) ) ;
} finally {
cleanup ( heapDumpFile , snapshot ) ; | Pass all exceptions back |
<nb> public class WriteTransaction extends XaTransaction implements NeoStoreTransacti
{
PropertyRecord propRecord = getPropertyRecord ( nextProp , false ) ;
nextProp = propRecord . getNextProp ( ) ;
- SINGLE
- SINGLE
int propSize = propRecord . size ( ) ;
- if ( PropertyType . getPayloadSize ( ) - propSiz... | Changed the size calculation expression to make it more readable |
<nb> public class HikariConfig implements HikariConfigMBean
@ override
public void setMinimumIdle ( int minIdle )
{
- if ( minIdle < NUMBER0 || minIdle > maxPoolSize ) {
+ if ( minIdle < NUMBER0 ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
this . minIdle = minIdle ;
<nb> public class HikariC... | Fix issue with ordering of checks |
<nb> public class DeepLearningModel extends Model {
DocGen . HTML . section ( sb , STRING0 + String . format ( mse_format , error . valid_mse ) ) ;
}
}
+ DocGen . HTML . paragraph ( sb , STRING1 + String . format ( STRING2 , model_info ( ) . get_processed_total ( ) ) ) ;
DocGen . HTML . paragraph ( sb , STRIN... | Add training samples to Progress printout |
<nb> package NAMESPACE ;
SINGLE
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SecondaryReadTest extends TestCase {
private static final int TOTAL_COUNT = NUMBER0 ;
- private static final double MAX_DEVIATION_PERCENT = FLOAT0 ;
+ private static ... | Upping max deviation percent |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReactiveLocationProvider {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public final Observa... | Added method for getting a place by ID |
<nb> class GeneralVisualCppCompileSpecToArguments < T extends NativeCompileSpec > implem
}
collector . args ( spec . getArgs ( ) ) ;
collector . args ( STRING0 ) ;
- if ( spec . isPositionIndependentCode ( ) ) {
- collector . args ( STRING1 ) ; SINGLE
- }
for ( File file : spec . getIncludeRoots ( ) ) {
... | Remove unused compiler arg |
<nb> public abstract class PGL {
frontTex = backTex ;
backTex = temp ;
} else if ( ! clear && pg . parent . frameCount == NUMBER0 ) {
- requestFBOLayer ( ) ;
+ SINGLE
}
} | turn off attempted fixes |
<nb> public final class WorkflowId {
private long timestamp ;
private String flowId ;
- private WorkflowId ( String cluster , String userId , String appId ,
+ public WorkflowId ( String cluster , String userId , String appId ,
long runId , long timestamp , String flowId ) {
this . cluster = cluster ;
th... | Increases visibility of WorkflowId ctor adds getters |
<nb> class ClosureRewriteClass extends AbstractPostOrderCallback
@ override
public void process ( Node externs , Node root ) {
- NodeTraversal . traverse ( compiler , root , this ) ;
+ hotSwapScript ( root , null ) ;
}
@ override
public void hotSwapScript ( Node scriptRoot , Node originalRoot ) {
- ... | Only process a single file when performing hotswap for goog defineClass |
<nb> public class PyPackageManagerUI {
manager . refresh ( ) ;
return exceptions ;
}
+
+ @ notnull
+ @ override
+ protected String getSuccessDescription ( ) {
+ return STRING0 + myName + STRING1 ;
+ }
}
private static class UninstallTask extends PackagingTask { | Fixed description message after successful installation of package management tools |
<nb> public class JBComboBoxTableCellEditorComponent extends JBLabel {
@ override
public void run ( ) {
myValue = myList . getSelectedValue ( ) ;
+ myTable . setValueAt ( myValue , myRow , myColumn ) ; SINGLE
}
} ) . createPopup ( )
. show ( new RelativePoint ( myTable , point ) ) ; | cannot change combobox values on Wrapping and Braces page on Mac OS |
<nb> import NAMESPACE ;
COMMENT
public final class ClosureCheckModule implements Callback , HotSwapCompilerPass {
static final DiagnosticType AT_EXPORT_IN_GOOG_MODULE =
- DiagnosticType . disabled (
+ DiagnosticType . error (
STRING0 ,
STRING1 ) ;
<nb> public class DiagnosticGroups {
CheckInterfaces... | Make unnecessary exports in goog modules an error |
<nb> class CacheUpdateRunner {
if ( threadsCount == - NUMBER0 ) {
threadsCount = Math . min ( Runtime . getRuntime ( ) . availableProcessors ( ) , ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ? NUMBER0 : NUMBER1 ) ;
}
- if ( threadsCount == NUMBER0 ) {
+ if ( true ) {
Runnable process = new ... | disable multithreaded indexing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.