diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class ChooseByNameBase {
private MyTextField ( ) {
super ( NUMBER0 ) ;
- setUI ( ( DarculaTextFieldUI ) DarculaTextFieldUI . createUI ( this ) ) ;
+ if ( ! ( getUI ( ) instanceof DarculaTextFieldUI ) ) {
+ setUI ( ( DarculaTextFieldUI ) DarculaTextFieldUI . createUI ( this ) ) ;
+ }
... | don t set Darcula UI in search text field if it s already set |
<nb> public class GroupByBlockStream
}
SINGLE
- Range range = Range . create ( startPosition , cursor . getPosition ( ) ) ; SINGLE
+ Range range = Range . create ( startPosition , cursor . getCurrentValueEndPosition ( ) ) ;
return new RunLengthEncodedBlock ( key , range ) ;
}
} ; | Fix broken range in GroupBy operator |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class MongoServiceRegistryDao implements ServiceRegistryDao {
private boolean dropCollection ;
@ autowired
+ @ qualifi... | Updated init check to fail if mongo template is not configured |
<nb> public class NotificationStackScrollLayout extends ViewGroup
public void onChildAnimationFinished ( ) {
requestChildrenUpdate ( ) ;
+ runAnimationFinishedRunnables ( ) ;
+ }
+
+ private void runAnimationFinishedRunnables ( ) {
for ( Runnable runnable : mAnimationFinishedRunnables ) {
runnable . r... | Fixed a bug where we might get stuck in a fully expanded statusbar |
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
}
this . databaseBackend . createConversation ( conversation ) ;
}
- if ( query == null ) {
- this . mMessageArchiveService . query ( conversation ) ;
- } else {
- if ( query . getConversation ( ) == null ) {
- this . ... | do not run mam queries in findOrCreateConversation when isn t available |
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer {
if ( layerWiseConfigurations . isPretrain ( ) )
iter . reset ( ) ;
update ( TaskUtils . buildTask ( iter ) ) ;
+ iter . reset ( ) ;
while ( iter . hasNext ( ) ) {
DataSet next = iter . next ( ) ;
if ( next . getFeatureMatri... | Added reset after TaskUtils class for heartbeat to ensure iter has values when entering loop |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpChannelState
aListeners = _asyncListeners ;
}
+ if ( LOG . isDebugEnabled ( ) )
+ LOG . debug ( STRING0 , this ) ;
+
if ( aList... | Improved debugging on async timeout |
<nb> public class ODatabaseDocumentPool extends ODatabasePoolBase < ODatabaseDocumentTx
throw new OSecurityAccessException ( STRING0 ) ;
return new ODatabaseDocumentTxPooled ( ( ODatabaseDocumentPool ) owner , iDatabaseName , iAdditionalArgs [ NUMBER0 ] ,
- iAdditionalArgs [ NUMBER0 ] ) ;
+ iAdditionalArgs [ ... | Fixed bug in authentication reported by Sylvain Spinelli through the ML |
<nb> public class JSLibraryStdPresentationProvider extends CachingLibraryPresentation
@ nullable
@ override
public LibraryVersionProperties detect ( @ notnull List < VirtualFile > classesRoots ) {
+ if ( JavaRuntimePresentationProvider . getInstance ( ) . detect ( classesRoots ) != null ) {
+ SINGLE
+ retur... | Don t detect library as js standard library if it can be detected as java runtime |
<nb> public class InstalledPluginsState {
}
boolean newer = PluginDownloader . compareVersionsSkipBroken ( existing , descriptor . getVersion ( ) ) > NUMBER0 && ! PluginManagerCore . isIncompatible ( descriptor ) ;
+
+ if ( ! newer && PluginManagerCore . isIncompatible ( existing ) ) {
+ newer = ! PluginMan... | Take compatible plugin instead of incompatible even if the newest has less version |
<nb> public class RouteInfoWidgetsFactory {
NextDirectionInfo r = routingHelper . getNextRouteDirectionInfo ( calc1 , true ) ;
if ( ! deviatedFromRoute ) {
if ( r != null ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- r = routingHelper . getNextRouteDirectionInfo ( calc1 , true ) ;
- if ( r != null ) {
-... | remove obsolete comments |
<nb> public class SitePickerSearchView extends SearchView implements SearchView . OnQue
@ override
public boolean onQueryTextChange ( String s ) {
+ mSitePickerActivity . setLastSearch ( s ) ;
mSitePickerActivity . getAdapter ( ) . searchSites ( s ) ;
return true ;
} | Setting last search whenever text gets updated |
<nb> public class ImapResponseParser {
}
private String parseAtom ( ) throws IOException {
- StringBuffer sb = new StringBuffer ( ) ;
+ StringBuilder sb = new StringBuilder ( ) ;
int ch ;
while ( true ) {
ch = mIn . peek ( ) ; | Switch a StringBuffer to StringBuilder which replaced it |
<nb> public class MavenProjectsManager extends MavenSimpleProjectComponent
}
private File getProjectsTreeFile ( ) {
- File file = new File ( getProjectsTreesDir ( ) , myProject . getLocationHash ( ) + STRING0 ) ;
- file . getParentFile ( ) . mkdirs ( ) ;
- return file ;
+ return new File ( getProjectsTree... | Remove unnecessary call file getParentFile |
<nb> public class MapJoinOperator extends AbstractMapJoinOperator < MapJoinDesc > implem
private transient String cacheKey ;
private transient ObjectCache cache ;
- private HashTableLoader loader ;
+ protected HashTableLoader loader ;
private boolean loadCalled ;
protected transient MapJoinTableContaine... | Remove references to tez task context before storing operator plan in object cache Rajesh Balamohan reviewed by Gunther Hagleitner |
<nb> import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public class RenameJetClassProcessor extends RenamePsiElementProcessor {
@ override
public boolean canProcessElement ( @ notnull PsiElement element ) { | remove author comment |
<nb> public class ComputeExopackageDepsAbi
hasher . putByte ( ( byte ) NUMBER0 ) ;
hasher . putUnencodedChars ( filesystem . computeSha1 ( path ) ) ;
hasher . putByte ( ( byte ) NUMBER0 ) ;
+ hasher . putUnencodedChars ( entry . getValue ( ) ) ;
+ hasher . putByte ( ( byte ) NUMBER0 ) ;
}
buildableConte... | Add object type to exopackage abi hash |
<nb> static public Object nth ( Object coll , int n ) {
static public Object nth ( Object coll , int n , Object notFound ) {
if ( coll == null )
return notFound ;
+ else if ( n < NUMBER0 )
+ return notFound ;
else if ( coll instanceof IPersistentVector )
{
IPersistentVector v = ( IPersistentVector ) col... | fixed nth with not found arg when negative index returns not found |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class SaslAuthenticator extends Authenticator {
final int conversationId = ( Integer ) res . getResponse ( ) . get ( STRING0 ) ;
while ( ! ( Boolean ) res . getResponse ( ) . get ( ... | Fixed SaslAuthenticator to expect byte payload not Binary |
<nb> public abstract class Node {
formField . setLabel ( LocaleUtils . getLocalizedString ( STRING0 ) ) ;
}
- if ( ! parent . isRootCollectionNode ( ) ) {
+ if ( parent != null && ! parent . isRootCollectionNode ( ) ) {
formField . addValue ( parent . getNodeID ( ) ) ;
} | Fix NPE in Node java when changing node configuration |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderPostListFragment extends Fragment {
COMMENT
COMMENT
COMMENT
+ @ suppresslint ( STRING0 )
private void animateHeader ( ) {
if ( ! isAdded ( ) ) {
... | Added SuppressLint NewApi |
<nb> public class CorrelationTimeoutMap extends DefaultTimeoutMap < String , ReplyHandle
}
@ override
+ public ReplyHandler get ( String key ) {
+ ReplyHandler answer = super . get ( key ) ;
+ log . trace ( STRING0 , key , answer != null ) ;
+ return answer ;
+ }
+
+ @ override
public void put ( S... | Added trace logging when getting correlation key from map in camel jms |
<nb> public class MongoDBRiver extends AbstractRiverComponent implements River {
this . statusThread . start ( ) ;
}
+ @ override
public void start ( ) {
if ( ! MongoDBRiverHelper . isRiverEnabled ( client , riverName . getName ( ) ) ) {
logger . debug ( STRING0 , | Add missing Override tag |
<nb> public class MongoURI {
COMMENT
COMMENT
public MongoURI ( String uri ) {
+ _uri = uri ;
if ( ! uri . startsWith ( STRING0 ) )
throw new IllegalArgumentException ( STRING1 ) ;
<nb> public class MongoURI {
final String _collection ;
final MongoOptions _options = new MongoOptions ( ) ;
+
+ f... | Save constructor URI in MongoURI and use it for toString for |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
COMMENT
+ @ hasinternalprotocol
@ incubating
public interface VersionSelection {
COMMENT | Adding HasInternalProtocol to VersionSelection |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | clarifying the immutable TraverserDescription object |
<nb> public @ interface Api {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
boolean hidden ( ) default false ;
} | Modified Api s javadoc |
<nb> public class XmppConnectionService extends Service {
public void onMessageFound ( Message message ) {
DownloadableFile file = fileBackend . getFile ( message ) ;
if ( file . getAbsolutePath ( ) . equals ( path ) ) {
- if ( file . exists ( ) ) {
+ if ( ! file . exists ( ) ) {
message . setTransferable (... | fixed regression in file delete detection due to missing |
<nb> public class AioEventLoopGroup extends MultithreadEventLoopGroup {
}
@ override
+ public void shutdown ( ) {
+ super . shutdown ( ) ;
+ SINGLE
+ group . shutdown ( ) ;
+ }
+
+ @ override
protected EventExecutor newChild (
ThreadFactory threadFactory , ChannelTaskScheduler scheduler , Object... | Fix releasing of resources in AioEventLoopGroup as it missed to shutdown the AsynchronousChannelGroup before |
<nb> public final class R {
public static final int sugarinessPercent = NUMBER0 ;
public static final int numColumns = NUMBER1 ;
public static final int sugaryScale = NUMBER2 ;
+ public static final int selectableItemBackground = NUMBER3 ;
}
public static final class menu { | Add missing R file change |
<nb> public abstract class AbstractChartView extends View implements Chart {
left = Math . max ( maxViewport . left , Math . min ( left , maxViewport . right - width ) ) ;
top = Math . max ( maxViewport . bottom + height , Math . min ( top , maxViewport . top ) ) ;
- scrollViewport . set ( left , top , left + h... | Fix width bug in moveTo method |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
public class StartTask implements BootstrapTask {
+ private Logger logger = LoggerFactory . getLogger ( StartTask . class ) ;
+
private final ... | added stopwatch to record elapsed time |
<nb> public class Application extends ActorSDKApplication {
public void onConfigureActorSDK ( ) {
ActorSDK . sharedActor ( ) . setDelegate ( new ActorSDKDelegate ( ) ) ;
ActorSDK . sharedActor ( ) . setPushId ( NUMBER0 ) ;
- ActorSDK . sharedActor ( ) . createActor ( this ) ;
ActorStyle style = ActorSDK . s... | remove double sdk init |
<nb> public abstract class ScheduledPollConsumer extends DefaultConsumer implements R
SINGLE
this . executor = endpoint . getCamelContext ( ) . getExecutorServiceStrategy ( )
- . newScheduledThreadPool ( this , getEndpoint ( ) . getEndpointUri ( ) , DEFAULT_THREADPOOL_SIZE ) ;
+ . newScheduledThreadPool ( thi... | Fixed a potential NPE if getEndpoint was overridden |
<nb> public class PresenceManagerImpl extends BasicModule implements PresenceManager
}
public void sendUnavailableFromSessions ( JID recipientJID , JID userJID ) {
- if ( userJID . getDomain ( ) . equals ( XMPPServer . getInstance ( ) . getServerInfo ( ) . getXMPPDomain ( ) ) && userManager . isRegisteredUser (... | Smaller implementation D |
<nb> public class RecyclerView extends ViewGroup {
SINGLE
SINGLE
- final boolean animateChangesSimple = mItemAnimator != null && mItemsAddedOrRemoved
+ boolean animateChangesSimple = mItemAnimator != null && mItemsAddedOrRemoved
&& ! mItemsChanged ;
final boolean animateChangesAdvanced = ENABLE_PREDICTIVE... | Allow item animations to be disabled mid layout |
<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
}
private void buildClasses ( String pattern , boolean includeLibraries ) {
+ if ( pattern . indexOf ( STRING0 ) != - NUMBER0 ) {
+ SINGLE
+ SINGLE
+ return ;
+ }
boolean includeLibs = includeLibraries || showAll . g... | don t search classes if there is dot in pattern |
<nb> public interface ConsumerConnector {
public void commitOffsets ( Map < TopicAndPartition , OffsetAndMetadata > offsetsToCommit , boolean retryOnFailure ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setConsumerRebalanceListener ( ConsumerRebalanceListener listener ) ;
+
+ COMMENT
COMME... | Add setConsumerRebalanceListener method to ZookeeperConsumerConnector java api reviewed by Jiangjie Qin Ismael Juma Grant Henke and Guozhang Wang |
<nb> public class TraktCredentials {
COMMENT
COMMENT
public void removePassword ( ) {
- mHasCredentials = false ;
-
SINGLE
ServiceUtils . getTraktWithAuth ( mContext ) . setAuthentication ( null , null ) ;
+ mHasCredentials = false ;
+
setPassword ( null ) ;
} | Remove credentials from trakt service before setting them invalid |
<nb> class WebSubsystemParser implements XMLStreamConstants , XMLElementReader < List < Mo
static ModelNode parseSso ( XMLExtendedStreamReader reader ) throws XMLStreamException {
final ModelNode sso = new ModelNode ( ) ;
+ sso . setEmptyObject ( ) ;
final int count = reader . getAttributeCount ( ) ;
for ( ... | Fix empty sso element parsing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class StateStorageManagerImpl implements StateStorageManager , Di
return null ;
}
+ final String extension = FileUti... | file based storage should have an extension |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class BaseFixture implements IdeaTestFixture {
public void tearDown ( ) throws Exception {
Assert . assertTrue ( STRING0 , myInitialized ) ;
Assert . assertF... | dispose BaseFixture on EDT fight JavaAutoPopupTest blinking |
<nb> public class Scene extends Entity {
SINGLE
SINGLE
+ public Scene ( ) {
+ this ( NUMBER0 ) ;
+ }
+
public Scene ( final int pLayerCount ) {
super ( NUMBER0 , NUMBER0 ) ;
for ( int i = pLayerCount - NUMBER1 ; i >= NUMBER0 ; i -- ) {
<nb> public class Scene extends Entity {
COMMENT
COMMENT... | Added default constructor to Scene |
<nb> public class ShadowFragmentActivity extends ShadowActivity {
public void onSaveInstanceState_forBogusActivityShadows ( Bundle outState ) {
SINGLE
SINGLE
- super . onSaveInstanceState ( outState ) ;
-
List < SerializedFragmentState > fragmentStates = new ArrayList < SerializedFragmentState > ( ) ;
f... | fixed a recursion problem |
<nb> public class BundleImporter {
streamData . put ( StreamImpl . FIELD_TITLE , streamDescription . getTitle ( ) ) ;
streamData . put ( StreamImpl . FIELD_DESCRIPTION , streamDescription . getDescription ( ) ) ;
streamData . put ( StreamImpl . FIELD_DISABLED , streamDescription . isDisabled ( ) ) ;
- streamDat... | Fix Stream MatchingType handling in BundleImporter |
<nb> class DatabaseMappingAttribute implements DatabaseMappingObject {
if ( dataKind == DBPDataKind . STRING ) {
typeName += STRING0 + source . getMaxLength ( ) + STRING1 ;
+ } else if ( dataKind == DBPDataKind . NUMERIC ) {
+ if ( typeName . equals ( STRING2 ) && source . getMaxLength ( ) > NUMBER0 && source... | Data transfer mapping fix |
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal
if ( fromLiveScan && prefs . getBoolean ( PreferencesActivity . KEY_BULK_MODE , false ) ) {
String message = getResources ( ) . getString ( R . string . msg_bulk_mode_scanned )
+ STRING0 + rawResult . getText ( ) + STRING1 ;
... | Also use application context with Toast consistently |
<nb> public final class ExtractorSampleSource implements SampleSource , ExtractorOutpu
}
try {
DEFAULT_EXTRACTOR_CLASSES . add (
- Class . forName ( STRING0 )
+ Class . forName ( STRING1 )
. asSubclass ( Extractor . class ) ) ;
} catch ( ClassNotFoundException e ) {
SINGLE | Added Ogg Vorbis samples to internal samples for main and experimental |
<nb> public interface Context extends Registry {
return get ( FileSystemBinding . TYPE ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ default void notFound ( ) {
+ clientError ( NUMBER0 ) ;
+ }
+
} | Add Context notFound |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | Remove TODO about Timeout in Azure |
<nb> import NAMESPACE ;
public interface IConnectRedstone {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public boolean canConnectRedstone ( IBlockAccess iba , int i , int j , int k ,
int dir ) ;
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT ... | Improved some documentation |
<nb> public final class MonitorRegistryMetricPoller implements MetricPoller {
boolean reset ,
Monitor < ? > monitor )
throws Exception {
- LOGGER . debug ( STRING0 + monitor ) ;
+ SINGLE
+ SINGLE
+ SINGLE
if ( monitor instanceof CompositeMonitor < ? > ) {
for ( Monitor < ? > m : ( ( CompositeMonitor <... | comment out expensive log call |
<nb> public class FlexibleAdapter < T extends IFlexible >
COMMENT
@ nonnull
public List < T > getSiblingsOf ( @ nonnull T child ) {
- return getExpandableList ( getExpandableOf ( child ) ) ;
+ IExpandable expandable = getExpandableOf ( child ) ;
+ return expandable != null ? expandable . getSubItems ( ) : n... | Improved method getSiblingsOf |
<nb> public class TestPageGenerator extends HtmlPageGenerator < TestExecutionHistory > {
th ( ) . text ( STRING0 ) . end ( ) ;
th ( ) . text ( STRING1 ) . end ( ) ;
th ( ) . text ( STRING2 ) . end ( ) ;
- for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) {
for ( S... | Fix version labels in performance test detailed report |
<nb> public class EclipseHandlerUtil {
method . annotations = createSuppressWarningsAll ( method , method . annotations ) ;
TypeDeclaration parent = ( TypeDeclaration ) type . get ( ) ;
+ if ( parent . scope != null && method . scope == null ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ boolean report = true ;
+ f... | Now logging a warning with diagnostic info so that the next time |
<nb> public abstract class EditorFragmentAbstract extends Fragment {
protected EditorFragmentListener mEditorFragmentListener ;
protected boolean mFeaturedImageSupported ;
+ protected String mBlogSettingMaxImageWidth ;
@ override
public void onAttach ( Activity activity ) {
<nb> public abstract class Ed... | split MediaUtils in MediaUtils and WordPressMediaUtils remove references to WordPress java in MediaUtils |
<nb> public class CamelContextFactoryBean extends IdentifiedType implements RouteCont
if ( strategies != null && ! strategies . isEmpty ( ) ) {
for ( String id : strategies . keySet ( ) ) {
InterceptStrategy strategy = strategies . get ( id ) ;
- LOG . info ( STRING0 + id + STRING1 + strategy ) ;
+ LOG . info... | Added support for camel spring detecting and adding InterceptorStrategy from the spring application context |
<nb> public class SubsamplingLayer implements Layer {
convolution . divi ( ArrayUtil . prod ( conf . getKernelSize ( ) ) ) ;
ret . gradientForVariable ( ) . put ( ConvolutionParamInitializer . CONVOLUTION_WEIGHTS , convolution ) ;
return new Pair < > ( ret , convolution ) ;
-
+ default: throw new IllegalState... | add subsampling backward |
<nb> public class GELFChunkManager extends Thread {
public void run ( ) {
while ( true ) {
try {
- if ( ! chunks . isEmpty ( ) ) {
+ if ( ! chunks . isEmpty ( ) && LOG . isDebugEnabled ( ) ) {
LOG . debug ( STRING0 , chunks . size ( ) , humanReadableChunkMap ( ) ) ;
} | Avoiding generating expensive logging if debugging is not enabled |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public cl... | Add reroute function to plugin |
<nb> public class CursorLoader extends AsyncTaskLoader < Cursor > {
try {
SINGLE
cursor . getCount ( ) ;
- registerContentObserver ( cursor , mObserver ) ;
+ cursor . registerContentObserver ( mObserver ) ;
} catch ( RuntimeException ex ) {
cursor . close ( ) ;
throw ex ;
<nb> public class CursorLoade... | Remove a method |
<nb> public class SimpleIndexStatsTests extends AbstractNodesTests {
@ test
public void simpleStats ( ) throws Exception {
+ client . admin ( ) . indices ( ) . prepareDelete ( ) . execute ( ) . actionGet ( ) ;
SINGLE
client . admin ( ) . indices ( ) . prepareCreate ( STRING0 ) . execute ( ) . actionGet ( ) ... | delete indices before running the tests |
<nb> public class ParserContext extends RubyObject {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static class Options {
protected static final long STRICT = NUMBER0 ;
<nb> public class ParserContext extends RubyObject {
}
public Options ( long options ) {
- strict = ( options == S... | Check STRICT option in the same way that Ruby does |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | Removed unused import from AnimatorSet |
<nb> public class Transcript {
assertEquals ( NUMBER0 , events . size ( ) ) ;
}
- public void assertEventsSoFar ( String . . . expectedEvent ) {
- assertEquals ( Arrays . asList ( expectedEvent ) , events ) ;
+ public void assertEventsSoFar ( String . . . expectedEvents ) {
+ assertEquals ( Arrays . asLis... | Added getEvents to transcript |
<nb> public class ChannelManager implements EnvelopeDispatcher , BufferProviderBroker
}
}
- if ( channels . containsKey ( sourceChannelID ) ) {
- this . receiverCache . put ( sourceChannelID , receiverList ) ;
- }
+ this . receiverCache . put ( sourceChannelID , receiverList ) ;
if ( LOG . isDebugEnab... | Fix caching of receivers |
<nb> public class CellNetworkScanResult implements Parcelable {
public void writeToParcel ( Parcel out , int flags ) {
out . writeInt ( mStatus ) ;
if ( mOperators != null && mOperators . size ( ) > NUMBER0 ) {
+ out . writeInt ( mOperators . size ( ) ) ;
for ( OperatorInfo network : mOperators ) {
network ... | Write size of operators in writeToParcel |
<nb> public abstract class Bootstrap implements Runnable {
final Injector injector = setupInjector ( configModule , pluginModules ) ;
if ( injector == null ) {
- LOG . error ( STRING0 ) ;
+ LOG . error ( STRING1 ) ;
System . exit ( NUMBER0 ) ;
}
<nb> public abstract class Bootstrap implements Runnable... | bootstrap was swallowing guice injection errors adding them back |
<nb> class BluetoothManagerService extends IBluetoothManager . Stub {
SINGLE
mContext . unbindService ( mConnection ) ;
}
+ mBluetoothGatt = null ;
}
SystemClock . sleep ( NUMBER0 ) ;
<nb> class BluetoothManagerService extends IBluetoothManager . Stub {
SINGLE
mContext . unbindService ( mConnection ... | Reset the pointer to the Bluetooth GATT service |
<nb> public class ExtensionManager {
}
COMMENT
+ COMMENT
+ COMMENT
+ public void setDefaultEnabledExtensions ( ) {
+ List < ComponentName > defaultExtensions = new ArrayList < > ( ) ;
+ defaultExtensions . add ( new ComponentName ( mContext , AmazonExtension . class ) ) ;
+ setEnabledExtensions ( defa... | Set default extensions if no extensions have been enabled yet |
<nb> public class DruidDataSource extends DruidAbstractDataSource
try {
connection = createPhysicalConnection ( ) ;
} catch ( SQLException e ) {
- LOG . error ( STRING0 + jdbcUrl , e ) ;
+ LOG . error ( STRING0 + jdbcUrl + STRING1 + e . getErrorCode ( ) + STRING2 + e . getSQLState ( ) , e ) ;
errorCount +... | improved DruidDataSource error log add errorCode sqlState |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class VideoRecorderAppState extends AbstractAppState { | add javadoc to VideoRecorderAppState |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EdgeRenderer implements Renderer {
edgeElem . setAttribute ( STRING0 , String . format ( Locale . ENGLISH , STRING1 ,
x1 ,... | Exporting SVG File throws DomException due to invalid stroke widths |
<nb> public class DefaultModelRegistry implements ModelRegistry {
if ( state == Known && desired . ordinal ( ) >= Created . ordinal ( ) ) {
CreatorRuleBinder creatorBinder = node . getCreatorBinder ( ) ;
if ( creatorBinder != null ) {
- SINGLE
forceBind ( creatorBinder ) ;
}
doCreate ( node , creatorBinde... | Remove commented out line |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EggIncubator {
return response . getResult ( ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getId ( ) {
+ return pr... | add method the incubator |
<nb> public class JDBCSessionIdManager extends AbstractSessionIdManager
}
+ public void setDatasource ( DataSource ds )
+ {
+ _datasource = ds ;
+ }
+
+ public DataSource getDataSource ( )
+ {
+ return _datasource ;
+ }
+
public String getDriverClassName ( )
{
return _driverClassName ;
... | JDBCSessionIdManager add setDatasource DataSource method |
<nb> public class MessageHeader extends LinearLayout implements OnClickListener , OnLo
}
private void onAddAddressesToClipboard ( Address [ ] addresses ) {
- StringBuilder addressesToCopy = new StringBuilder ( ) ;
- for ( Address addressTemp : addresses ) {
- addressesToCopy . append ( addressTemp . getAddr... | Copy comma separated list of email addresses to clipboard |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CoreNLPServlet extends HttpServlet {
String escapedXml = xmlOutput . toString ( ) . replaceAll ( STRING0 , STRING1
) . replace ( STRING2 , STRING3 ) ;
- SINGLE
+ SINGLE
... | Fixed valid pos tags for TokenRegexNER |
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
private Sdk sdk ; | Made config parameter sdk not required so that standalone goals can be run from commandline |
<nb> public enum FrameType {
throw new Http2Exception ( sm . getString ( STRING0 ,
connectionId , this ) , NUMBER0 , ErrorCode . PROTOCOL_ERROR ) ;
} else if ( streamId != NUMBER0 && ! streamNonZero ) {
- throw new Http2Exception ( sm . getString ( STRING0 ,
+ throw new Http2Exception ( sm . getString ( STRIN... | Use correct error message |
<nb> final class AccessibilityInteractionController {
private void prefetchPredecessorsOfVirtualNode ( AccessibilityNodeInfo root ,
View providerHost , AccessibilityNodeProvider provider ,
List < AccessibilityNodeInfo > outInfos ) {
+ final int initialResultSize = outInfos . size ( ) ;
long parentNodeId = roo... | Discard prefetched disconnected predecessors of a virtual node |
<nb> public class CycleDetectingLockFactoryBenchmark {
lockAndUnlock ( factory . newReentrantLock ( STRING0 ) , reps ) ;
}
- private void lockAndUnlock ( Lock lock , int reps ) {
+ private static void lockAndUnlock ( Lock lock , int reps ) {
for ( int i = NUMBER0 ; i < reps ; i ++ ) {
lock . lock ( ) ;
... | Make methods in CycleDetectingLockFactoryBenchmark static |
<nb> public class PipeItemRenderer implements IItemRenderer {
Block block = BuildCraftTransport . genericPipeBlock ;
Icon icon = ( ( ItemPipe ) Item . itemsList [ item . itemID ] ) . getIconFromDamage ( NUMBER0 ) ;
- if ( icon == null ) icon = Minecraft . getMinecraft ( ) . renderEngine . getMissingIcon ( NUMBE... | fix last commit wrong texture sheet |
<nb> public class RenameProcessor extends BaseRefactoringProcessor {
}
}
UsageInfo [ ] usageInfos = result . toArray ( new UsageInfo [ result . size ( ) ] ) ;
- SINGLE
+ usageInfos = UsageViewUtil . removeDuplicatedUsages ( usageInfos ) ; SINGLE
return usageInfos ;
} | reverted Sergey Vasieleiev change that skips removal of duplicated usages |
<nb> public class EnterKeyScreen extends MainScreen implements AuthenticatorResource ,
mDescriptionText = new LabelField ( sResources . getString ( ENTER_KEY_HELP ) ) ;
mAccountName = new EditField ( EditField . NO_NEWLINE ) ;
mAccountName . setLabel ( sResources . getString ( ENTER_ACCOUNT_LABEL ) ) ;
- mKeyEn... | Restrict code to one line of input |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import from ScalingThreadPoolTests |
<nb> public class StreamsApiController extends AuthenticatedController {
return ok ( Json . toJson ( this . streamService . create ( request ) ) ) ;
}
+ public Result pause ( String streamId ) throws APIException , IOException {
+ this . streamService . pause ( streamId ) ;
+ return ok ( ) ;
+ }
+
pub... | Adding pause functionality for streams |
<nb> public final class DiskLruCache implements Closeable {
private static final Sink NULL_SINK = new Sink ( ) {
@ override public void write ( Buffer source , long byteCount ) throws IOException {
- SINGLE
+ source . skip ( byteCount ) ;
}
@ override public void flush ( ) throws IOException { | Empty sinks must still honor the contract by consuming the bytes |
<nb> public class XmlConfigBuilder extends AbstractXmlConfigHelper implements ConfigB
final Node att = atts . item ( a ) ;
final String value = getTextContent ( att ) . trim ( ) ;
if ( STRING0 . equalsIgnoreCase ( att . getNodeName ( ) ) ) {
- join . getAwsConfig ( ) . setEnabled ( true ) ;
+ join . getAwsCon... | Fixed AWS xml config handler |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HelpManagerImpl extends HelpManager {
private Object m... | add statistics for IDE help |
<nb> public class CoreMapNodePattern extends NodePattern < CoreMap > {
public static final AttributesEqualMatchChecker TEXT_ATTR_EQUAL_CHECKER =
new AttributesEqualMatchChecker ( CoreAnnotations . TextAnnotation . class ) ;
+ SINGLE
+ SINGLE
+ public static class IntegerAnnotationPattern extends NodePattern... | added integerannotation for fast integer matching |
<nb> public class IntentIntegrator {
private android . app . Fragment fragment ;
private android . support . v4 . app . Fragment supportFragment ;
- private final Map < String , Object > moreExtras = new HashMap < String , Object > ( NUMBER0 ) ;
+ private final Map < String , Object > moreExtras = new HashMap... | replaces explicit type argument |
<nb> public class DriverPublication implements AutoCloseable
remainingBytes -= totalBytesSent ;
}
while ( remainingBytes > NUMBER0 && totalBytesSent > NUMBER0 ) ;
- }
- systemCounters . retransmitsSent ( ) . orderedIncrement ( ) ;
+ systemCounters . retransmitsSent ( ) . orderedIncrement ( ) ;
+ }
}
... | Java Only update retransmit counter when retransmit has been attempted |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class TripTimes implements Serializable {
+ public class TripTimes implements Serializable , Comparable < TripTimes > {
private static final long serialVersionUID = MavenVersion . VERSION . getUID ( ) ;
private static final Logger LOG = LoggerFactor... | add comparison function to triptimes |
<nb> public class SourceFormatter {
SQLSourceProcessor . class . newInstance ( ) ) ;
sourceProcessors . add (
TLDSourceProcessor . class . newInstance ( ) ) ;
- sourceProcessors . add (
- XMLSourceProcessor . class . newInstance ( ) ) ;
for ( SourceProcessor sourceProcessor : sourceProcessors ) {
_runSo... | SourceFormatter Improve performance by moving XMLSourceProcessor to other thread |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class DefaultResourcePermissions implements ResourcePermissions , BatchExtension {
+ public clas... | Deploy the component ResourcePermissions on server side |
<nb> class WindowStateAnimator {
mDrawState = READY_TO_SHOW ;
final AppWindowToken atoken = mWin . mAppToken ;
if ( atoken == null || atoken . allDrawn || mWin . mAttrs . type == TYPE_APPLICATION_STARTING ) {
- performShowLocked ( ) ;
+ return performShowLocked ( ) ;
}
- return true ;
+ return false ;
... | Don t relayout based on a window that isn t visible |
<nb> public class FaviconServlet extends HttpServlet {
client . executeMethod ( get ) ;
return get . getResponseBody ( ) ;
}
- catch ( Exception e ) {
+ catch ( IllegalStateException e ) {
SINGLE
try {
URLConnection urlConnection = new URL ( url ) . openConnection ( ) ;
<nb> public class FaviconServle... | Retry old Java style only if method was not supported |
<nb> public class ActionFilterStack extends BaseActionWrapperStack < ActionFilter > impl
}
COMMENT
+ COMMENT
+ COMMENT
+ public Class < ? extends ActionFilter > [ ] getFilters ( ) {
+ return getWrappers ( ) ;
+ }
+
+
+ COMMENT
COMMENT
COMMENT
public final Object filter ( ActionRequest action... | Added read methods to have regular properties |
<nb> public abstract class Message implements Serializable {
return value ;
}
- public WireType wireType ( ) {
+ WireType wireType ( ) {
switch ( this ) {
case INT32 : case INT64 : case UINT32 : case UINT64 :
case SINT32 : case SINT64 : case BOOL : case ENUM :
<nb> package NAMESPACE ;
import NAMES... | Remove WireType from public API |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.