diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
case R . id . selected_checkbox :
toggleMessageSelectWithAdapterPosition ( position ) ;
break ;
- case R . id . flagged :
+ case R . id . flagged_bottom_right :
+ case R . id . flagged_center_right :
toggleMessageFlagWit... | Fix flagging of messages in message list |
<nb> public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
Language language = LanguageUtil . getLanguageForPsi ( project , file ) ;
- return language == null ? null : PlainTextLanguage . INSTANCE ;
+ return language != null ? language : PlainTextLanguage . INSTANCE ;
}
@ over... | introduce LanguageUtil getLanguageForPsi |
<nb> class DatabaseHelper extends SQLiteOpenHelper {
Class < ? > superClass = null ;
try {
- discoveredClass = Class . forName ( name , true , context . getClass ( ) . getClassLoader ( ) ) ;
+ discoveredClass = Class . forName ( name , false , context . getClass ( ) . getClassLoader ( ) ) ;
superClass = dis... | Don t initialize class when getting class names |
<nb> public class NimbusClient extends ThriftClient {
try {
String nimbusHost = ( String ) conf . get ( Config . NIMBUS_HOST ) ;
int nimbusPort = Utils . getInt ( conf . get ( Config . NIMBUS_THRIFT_PORT ) ) ;
- Integer timeout = Utils . getInt ( conf . get ( Config . NIMBUS_TASK_TIMEOUT_SECS ) ) ;
- return n... | remove the use of NIMBUS_TASK_TIMEOUT_SECS from NimbusClient |
<nb> public class ShadowApplication extends ShadowContextWrapper {
return fakeHttpLayer ;
}
+ public void setFakeHttpLayer ( FakeHttpLayer fakeHttpLayer ) {
+ if ( fakeHttpLayer == null ) {
+ throw new IllegalArgumentException ( ) ;
+ }
+ this . fakeHttpLayer = fakeHttpLayer ;
+ }
+
@ override
@... | Allow apps to set their own FakeHttpLayer |
<nb> public class ThrottleService extends IThrottleManager . Stub {
private Context mContext ;
+ private static final int INITIAL_POLL_DELAY_SEC = NUMBER0 ;
private static final int TESTING_POLLING_PERIOD_SEC = NUMBER1 * NUMBER2 ;
private static final int TESTING_RESET_PERIOD_SEC = NUMBER1 * NUMBER3 ;
pri... | Add a Throttle check shortly after boot |
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
super ( other ) ;
if ( this . width == MATCH_PARENT ) {
- Log . w ( LOGTAG , STRING0 +
+ Log . w ( LOGTAG , STRING1 +
STRING2 +
STRING3 ) ;
this . width = WRAP_CONTENT ; | library Fix typo in log message |
<nb> public class TextureHelper extends AbstractBlenderHelper {
for ( String assetName : assetNames ) {
try {
TextureKey key = new TextureKey ( assetName ) ;
- key . setGenerateMips ( true ) ;
key . setAsCube ( false ) ;
AssetInfo info = assetManager . locateAsset ( key ) ;
if ( info != null ) { | Removing mipmap generation during image texture loading |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class FileResourceManager implements ResourceManager {
if ( p . startsWith ( STRING0 ) ) {
path = p . substring ( NUMBER0 ) ;
}
- Path file = base... | Just return null on InvalidPathException |
<nb> public class FibonacciHeap < KeyType >
}
}
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE ... | Removed a bunch of commented out code |
<nb> public class JetFlowInformationProvider {
List < JetElement > returnedExpressions = Lists . newArrayList ( ) ;
collectReturnExpressions ( returnedExpressions ) ;
- boolean nothingReturned = returnedExpressions . isEmpty ( ) ;
-
- returnedExpressions . remove ( function ) ; SINGLE
-
- if ( expectedR... | Remove unreachable code |
<nb> public class Texture {
SINGLE
SINGLE
SINGLE
+
+ private static final int [ ] HARDWARETEXTUREID_FETCHER = new int [ NUMBER0 ] ;
SINGLE
SINGLE
<nb> public class Texture {
}
private int generateHardwareTextureID ( final GL10 pGL ) {
- final int [ ] hardwareTextureIDFether = new int [ NUMBER0... | Killed allocation when creating texture on hardware |
<nb> public class NotificationManagerService extends SystemService {
@ override
public void onNotificationVisibilityChanged (
String [ ] newlyVisibleKeys , String [ ] noLongerVisibleKeys ) {
- SINGLE
- SINGLE
- SINGLE
- EventLogTags . writeNotificationVisibilityChanged (
- TextUtils . join ( STRING0 , n... | remove obsolete notification visibility log |
<nb> public class StorageDirViewTest {
private static final long TEST_BLOCK_SIZE = NUMBER0 ;
private StorageDir mTestDir ;
private StorageDirView mTestDirView ;
- private StorageTier mTestTier ;
private StorageTierView mTestTierView ;
private BlockMetadataManagerView mMetaManagerView ;
<nb> public class... | SMALLFIX Made field a local variable in StorageDirViewTest |
<nb> public class PostgresTemplates extends SQLTemplates {
String yearsDiff = STRING0 ;
String monthsDiff = STRING1 + yearsDiff + STRING2 ;
- String weeksDiff = STRING3 ;
- String daysDiff = STRING4 ;
+ String weeksDiff = STRING5 ;
+ String daysDiff = STRING6 ;
String hoursDiff = STRING1 + daysDiff + ST... | Finish PostgreSQL support |
<nb> public abstract class MasterDetailsComponent implements Configurable , DetailsCom
@ notnull
public JComponent createComponent ( ) {
+ myTree . updateUI ( ) ;
reInitWholePanelIfNeeded ( ) ;
updateSelectionFromTree ( ) ; | update tree ui to avoid problems with cached background BasicTreeUI sets bg to trees |
<nb> public class PdeEmitter implements PdeTokenTypes {
}
break ;
- SINGLE
+ SINGLE
case DOT :
print ( child1 ) ;
out . print ( STRING0 ) ;
dumpHiddenAfter ( ast ) ;
print ( child2 ) ;
+ if ( child3 != null ) {
+ print ( child3 ) ;
+ }
break ;
case MODIFIERS : | Preprocessor can now handle fully qualifies names |
<nb> import NAMESPACE ;
public class Box implements IBox {
- public @ tilenetworkdata
- int xMin , yMin , zMin , xMax , yMax , zMax ;
- private boolean initialized ;
+ public @ tilenetworkdata int xMin , yMin , zMin , xMax , yMax , zMax ;
+ public @ tilenetworkdata boolean initialized ;
private Enti... | Fixed quarry NPE and lasers not showing |
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
_bikeRentalNodes . add ( node ) ;
return ;
}
- if ( ! ( _nodesWithNeighbors . contains ( node . getId ( ) ) || _areaNodes . contains ( node . getId ( ) ) ) )
+ if ( ! ( _nodesWithNeighbors . contains ( node . getId ( ) ) || _areaNodes .... | Make sure that all transit stops are retained when building the graph |
<nb> public abstract class PyEnvTestCase {
@ override
public void processWarn ( final String message , final Throwable t , @ notnull final org . apache . log4j . Logger logger ) {
- myExceptions . add ( t ) ;
+ if ( t != null ) {
+ myExceptions . add ( t ) ;
+ }
}
@ override
<nb> public abstract c... | Do not add empty exceptions in test |
<nb> package NAMESPACE ;
import NAMESPACE ;
- public class CountMetric implements IMetric {
+ public class CountMetric implements IMetric , java . io . Serializable {
long _value = NUMBER0 ;
public CountMetric ( ) {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class M... | made CountMetric and MultiCountMetric serializable |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ZenModeHelper {
muteCalls ? AppOpsManager . MODE_IGNORED : AppOpsManager . MODE_ALLOWED ,
exceptionPackages ) ;
- SINGLE
- mAppOps . ... | Remove suppression of untagged vibrations in zen mode |
<nb> public class Node implements Serializable {
sb . append ( STRING0 ) ;
sb . append ( lineno ) ;
}
+ if ( length != NUMBER0 ) {
+ sb . append ( STRING1 ) ;
+ sb . append ( length ) ;
+ sb . append ( STRING2 ) ;
+ }
}
if ( printAnnotations ) { | Add the length in the toString toStringTree of Node |
<nb> public class OMMapBufferEntry implements Comparable < OMMapBufferEntry > {
static {
SINGLE
try {
- sunClass = Class . forName ( STRING0 ) ;
+ SINGLE
} catch ( Exception e ) {
SINGLE
} | Commented the MMAP Sun JDK usage |
<nb> public class EnvironmentPresenter extends BasePresenter
SINGLE
if ( ! initialized_ )
{
- setViewFromEnvironmentList (
- session_ . getSessionInfo ( ) . getEnvironmentState ( ) . environmentList ( ) ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ JsArray < RObject > environmentLi... | ensure environment list from client when restoring a session |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removing yet another unused import |
<nb> public class IntervalTree < O extends Object > {
return - NUMBER0 ;
if ( arg1 . start < arg0 . start )
return NUMBER0 ;
- COMMENT
SINGLE
if ( arg0 . end < arg1 . end )
return - NUMBER0 ;
if ( arg1 . end < arg0 . end )
return NUMBER0 ;
- COMMENT
SINGLE
return NUMBER1 ;
}
<nb> public clas... | Found a problem in the comparator of the Interval Tree |
<nb> public class PluginManager {
public static boolean shouldLoadPlugin ( IdeaPluginDescriptor descriptor ) {
SINGLE
final String loadPluginCategory = System . getProperty ( STRING0 ) ;
- return loadPluginCategory == null || loadPluginCategory . equals ( descriptor . getCategory ( ) ) ;
+ if ( loadPluginCate... | loading plugins by id |
<nb> public class GitCucumberWorld {
@ before ( STRING0 )
@ order ( NUMBER0 )
public void setUpRemoteOperations ( ) {
- SINGLE
GitTestUtil . setDefaultBuiltInServerPort ( ) ;
myHttpAuthService = ( GitHttpAuthTestService ) ServiceManager . getService ( GitHttpAuthService . class ) ;
}
<nb> public class G... | Define default web server port for GitHub tests |
<nb> public class NativeLibrary {
SINGLE
SINGLE
try {
- System . out . println ( STRING0 + libraryPath ) ;
handle = Native . open ( libraryPath ) ;
}
catch ( UnsatisfiedLinkError e ) {
<nb> public class NativeLibrary {
try {
if ( handle == NUMBER0 ) {
libraryPath = findLibraryPath ( libraryName , ... | remove debug output |
<nb> public class DefaultJSONParser implements Closeable {
} else if ( ( ch >= STRING0 && ch <= STRING1 ) || ch == STRING2 ) {
lexer . resetStringPosition ( ) ;
lexer . scanNumber ( ) ;
+ try {
if ( lexer . token ( ) == JSONToken . LITERAL_INT ) {
key = lexer . integerValue ( ) ;
} else {
key = lexer . ... | add error info |
<nb> public class RenderPass extends APass {
}
SINGLE
- mScene . render ( deltaTime ) ;
+ mScene . render ( deltaTime , readBuffer ) ;
SINGLE
if ( mClearColor != NUMBER0 ) { | Accomodate changes in the render signature in the RajawaliScene class |
<nb> public class DependencyGraphBuilder {
SINGLE
PotentialConflict c = conflictHandler . registerModule ( module ) ;
- if ( c . conflictExists ( ) ) {
+ if ( ! c . conflictExists ( ) ) {
SINGLE
LOGGER . debug ( STRING0 , moduleRevision ) ;
module . select ( moduleRevision ) ; | Fixed a problem I have introduced in one of the previous refactorings |
<nb> public class JobValidator {
repo = nameParts [ NUMBER0 ] ;
name = nameParts [ NUMBER1 ] ;
}
- if ( ! NAMESPACE_PATTERN . matcher ( repo ) . matches ( ) ) {
- errors . add (
- format ( STRING0 ,
- repo ) ) ;
+ if ( ! REPO_PATTERN . matcher ( repo ) . matches ( ) ) {
+ errors . add ( format ( STRIN... | Fix namespace repo pattern checking inversion |
<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 NAME... | Close the client on quit |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MediaBrowserActivity extends ActionBarActivity implements MediaGrid
if ( mediaGridFragment . isVisible ( ) ) {
mediaGridFra... | Resolved conflicts in MediaBrowserActivity |
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La
return ( value ( ) == null ) ? STRING0 : value ( ) ;
}
- public static boolean DISPLAY_SCORES = true ;
-
COMMENT
COMMENT
COMMENT
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Labe... | Fix value only for case of null value |
<nb> public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME
SINGLE
public FileTypeManagerImpl ( MessageBus bus , SchemesManagerFactory schemesManagerFactory ) {
+ myMessageBus = bus ;
mySchemesManager = schemesManagerFactory . createSchemesManager ( FILE_SPEC , new SchemeProcessor < ... | Wrong initialization sequence causes NPE |
<nb> public class PeopleManagementActivity extends AppCompatActivity {
}
@ override
+ public void onBackPressed ( ) {
+ if ( getFragmentManager ( ) . getBackStackEntryCount ( ) > NUMBER0 ) {
+ getFragmentManager ( ) . popBackStack ( ) ;
+ } else {
+ super . onBackPressed ( ) ;
+ }
+ }
+
+ @ over... | Override onBackPressed so the previous fragment is shown for People Management |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class State {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public State ( List < Tree > sentence ) {
this ( new TreeShapedStack < Tree > ( ) , sentence , NUMBER0 , FLOAT0 , false ) ;
} | Add a comment |
<nb> public class InterceptorManager {
}
}
catch ( Throwable e ) {
- Log . error ( STRING0 , e ) ;
+ Log . error ( STRING1 + interceptor , e ) ;
}
}
}
<nb> public class InterceptorManager {
}
}
catch ( Throwable e ) {
- Log . error ( STRING0 , e ) ;
+ Log . error ( STRING1 + interceptor , e ... | Include interceptor in error message |
<nb> public abstract class Chapter extends FeedComponent {
protected FeedItem item ;
protected String link ;
+ public Chapter ( ) {
+ }
+
public Chapter ( long start ) {
super ( ) ;
this . start = start ;
<nb> public class SimpleChapter extends Chapter {
super ( start , title , item , link ) ;
}... | Removed unnecessary methods added standard constructor |
<nb> public abstract class BatchTiledMapRenderer implements TiledMapRenderer , Disposa
batch . setProjectionMatrix ( camera . combined ) ;
float width = camera . viewportWidth * camera . zoom ;
float height = camera . viewportHeight * camera . zoom ;
- viewBounds . set ( camera . position . x - width / NUMBER0 ... | Adjust viewBounds in BatchTiledMapRenderers to accommodate camera rotation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ResourceBundleEditor extends UserDataHolderBase implements FileEdit
writeEditorPropertyValue ( editor , propertiesFile ) ;
... | undo of property value doesn t invoke log error in DocumentUndoProvider |
<nb> public class ThriftValidation
public static IDiskAtomFilter asIFilter ( SlicePredicate sp , CFMetaData metadata , ByteBuffer superColumn )
{
- AbstractType < ? > comparator = metadata . isSuper ( )
- ? ( ( CompositeType ) metadata . comparator ) . types . get ( superColumn == null ? NUMBER0 : NUMBER1 )
... | only fetch comparator if needed |
<nb> public class Deployer {
public static File MANAGER_DIR = new File ( DATA_DIR , STRING0 ) ;
public static File MANAGER_MAIN_PY = new File ( MANAGER_DIR , STRING1 ) ;
public static File MANAGER_CLEAN_PY = new File ( MANAGER_DIR , STRING2 ) ;
+ private static final int SDK_ICS = NUMBER0 ; SINGLE
private fin... | use sdk int to select linker |
<nb> public abstract class BinaryJedisPubSub {
private void process ( Client client ) {
do {
- List < Object > reply = client . getObjectMultiBulkReply ( ) ;
+ List < Object > reply = client . getRawObjectMultiBulkReply ( ) ;
final Object firstObj = reply . get ( NUMBER0 ) ;
if ( ! ( firstObj instanceof b... | Do not flush OutputStream to avoid contamination |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class TaskEditActivity extends TabActivity {
if ( due != NUMBER0 ) {
stringResource = R . string . TEA_onTaskSave_due ;
C... | Fixed a bug with relative date strings in task save toast |
<nb> public class RmiEndpoint extends DefaultEndpoint < BeanExchange > {
}
SINGLE
if ( path . startsWith ( STRING0 ) ) {
- return path . substring ( NUMBER0 ) ;
+ return path . substring ( NUMBER0 ) ;
}
return path ;
}
<nb> public class XQueryTransformTest extends ContextTestSupport {
public void co... | Fixed the cs error of other components |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class FrameCreator extends H2O . H2OCountedCompleter {
@ override
public void map ( Chunk [ ] cs ) {
if ( ! _createFrame . randomize ) return ;
- final Random rng = new Random ( ... | Fix the RNG for createFrame to be more random since we are setting the seed for each row |
<nb> public class Cube extends BaseObject3D {
NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ,
NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , ... | Homogenize Cube s vertex colors |
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
@ override
public void addChildrenForAccessibility ( ArrayList < View > childrenForAccessibility ) {
+ if ( getAccessibilityNodeProvider ( ) != null ) {
+ return ;
+ }
ChildListForAccessibility children = ChildListForAcc... | Don t add real children for a view with a node provider |
<nb> public class GeneratedParserUtilBase {
if ( ! goodMarker ) return false ;
ErrorState state = ErrorState . get ( builder_ ) ;
- Frame frame = state . frameStack . peekLast ( ) ;
- return frame == null || frame . errorReportedAt <= builder_ . rawTokenIndex ( ) ;
+ return ! state . frameStack . isEmpty ( ... | relax invalid left marker condition due to previous fix |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public abstract class MainThreadSubscription implements Subscription {
COMMENT | Correct rendered output of in Javadoc |
<nb> public class MediaRecorder
COMMENT
COMMENT
public static final int VOICE_COMMUNICATION = NUMBER0 ;
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static final int REMOTE_SUBMIX_SOURCE = NUMBER1 ;
}
COMMENT
<nb> public class MediaRecorder
COMMENT
COMMENT
public static final int g... | Remove unused audio source |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RocksdbStorageEngineTest extends AbstractStorageEngineTest {
FileDeleteStrategy . FORCE . delete ( datadir ) ;
}
}
+
... | Marked some RocksDB tests with Ignore |
<nb> public final class Manager extends Handler {
for ( SoftReference < Manager > softManager : sSoftManagerInstances ) {
if ( softManager . get ( ) . equals ( manager ) ) {
sSoftManagerInstances . remove ( softManager ) ;
+ break ;
}
}
} | adds missing break |
<nb> public class HttpUtil {
logger . error ( STRING0 , he ) ;
}
catch ( IOException e ) {
- logger . error ( STRING1 , e ) ;
+ logger . error ( STRING2 , e . toString ( ) ) ;
}
finally {
method . releaseConnection ( ) ; | removed stack from log message |
<nb> public class XActivityThread extends XHook {
return ;
int uid = provider . applicationInfo . uid ;
Util . log ( this , Log . INFO , STRING0 + provider . getClass ( ) . getName ( ) + STRING1 + uid ) ;
- if ( ! isRestricted ( param ) )
+ if ( ! getRestricted ( null , uid , true ) )
listAllowed . add ( pr... | Do not use privacy provider for content provider start |
<nb> public class StartParameter extends LoggingConfiguration implements Serializable
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public void setNoOpt ( boolean noOpt ) { | Fixed javadoc comment |
<nb> public abstract class SSOTestBase {
}
SINGLE
- return new BasicClientCookie ( toCopy . getName ( ) , toCopy . getValue ( ) ) ;
+ BasicClientCookie copy = new BasicClientCookie ( toCopy . getName ( ) , toCopy . getValue ( ) ) ;
+ copy . setDomain ( targetServer ) ;
+ return copy ;
}
public stati... | Fixed cookie copy |
<nb> public class ShadowObjectAnimatorTest {
public void start_shouldRunAnimation ( ) {
final ObjectAnimator animator = ObjectAnimator . ofInt ( target , STRING0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ;
+ Robolectric . getForegroundThreadScheduler ( ) . pause ( ) ;
animator . setDuration ( NUMBER... | Paused UI thread to stop animation running to completion |
<nb> public class IndexQueue implements ServerComponent , WorkQueue < IndexActionRequest
long refreshTime = this . refreshRequiredIndex ( indices ) ;
- LOGGER . info ( STRING0 ,
+ LOGGER . debug ( STRING0 ,
bulkRequestBuilder . numberOfActions ( ) , normTime , indexTime , refreshTime , indices , ( normTime ... | fixed ITs IndexQueue can exhaust connection pool not actually pool able |
<nb> public class MetaDataCreateIndexService extends AbstractComponent {
throw new InvalidIndexNameException ( new Index ( request . index ) , request . index , STRING0 + Strings . INVALID_FILENAME_CHARS ) ;
}
if ( state . metaData ( ) . aliases ( ) . containsKey ( request . index ) ) {
- throw new InvalidIndex... | throw index already exists failure when it exists as alias on creation |
<nb> public class Engine implements Jsonizable {
_mode = mode ;
}
- public synchronized FilteredRows getAllRows ( ) {
+ public FilteredRows getAllRows ( ) {
return new FilteredRows ( ) {
@ override
public void accept ( Project project , RowVisitor visitor ) {
<nb> public class Engine implements Jsoniz... | Revert addition of synchronized methods |
<nb> public abstract class AbstractDbWrapper implements DbWrapper {
@ override
public void close ( ) throws SQLException {
connection . commit ( ) ;
- connection . rollback ( ) ;
+ connection . close ( ) ;
openCursors . remove ( cursorId ) ;
} | Fixed a bug that prevents cursor connexions to be closed |
<nb> public enum ExecutionState {
RECOVERING ,
COMMENT
- COMMENT
- COMMENT
-
- RESTARTING ,
-
- COMMENT
COMMENT
COMMENT
RERUNNING ; | Removed superfluous execution state RESTARTING |
<nb> class ShadowVariables implements CompilerPass {
SINGLE
Assignment localAssignment = assignments . get ( var . getName ( ) ) ;
+ if ( localAssignment == null ) {
+ continue ;
+ }
SINGLE
SINGLE | Skip shadowing if the assignment is null |
<nb> public class ApkMojo extends AbstractAndroidMojo {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private File [ ] sourceDirectories ; | added an example of the sourceDirectories usage to the doc |
<nb> public class HTMLExportFrameMaker {
@ nonnls StringBuffer buf = new StringBuffer ( ) ;
buf . append ( STRING0 ) ;
buf . append ( ApplicationNamesInfo . getInstance ( ) . getFullProductName ( ) ) ;
+ buf . append ( STRING1 ) ;
buf . append ( InspectionsBundle . message ( STRING2 ) ) ;
buf . append ( STR... | added whitespace to generated html title |
<nb> import NAMESPACE ;
public class TestOutputBuffer extends TomcatBaseTest {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ test
public void testWriteSpeed ( ) throws Exception {
Tomcat tomcat = getTomcatInstance ( ) ; | Add an explanation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class WebsocketGtfsRealtimeUpdater implements GraphUpdater {
feedEntityList = feedMessage . getEntityList ( ) ;
updates = new ArrayList < TripUpdate > ( feedEntityList . size ( ) ) ;
for ( Fee... | Alter WebsocketGtfsRealtimeUpdater for reliability |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractCopyTask extends ConventionTask implements CopySpe
}
}
}
-
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ depr... | Deprecate AbstractCopyTask defaultSource |
<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 ; | Fix CS error |
<nb> public class AndroidFacetImporter extends FacetImporter < AndroidFacet , AndroidFac
apiLevel = platform . getValue ( ) ;
}
}
+
+ if ( apiLevel == null ) {
+ return null ;
+ }
+
AndroidSdk sdk = AndroidSdk . parse ( sdkPath , new EmptySdkLog ( ) ) ;
if ( sdk != null ) {
- IAndroidTarget target... | do not reimport android platform if api level is not specified in pom xml |
<nb> public final class LocalBluetoothAdapter {
syncBluetoothState ( ) ;
}
}
+
+ public BluetoothDevice getRemoteDevice ( String address ) {
+ return mAdapter . getRemoteDevice ( address ) ;
+ }
} | Add ability to get device by address |
<nb> public class UdpKernel extends AbstractKernel
SINGLE
for ( UdpEndpoint p : socketEndpoints . values ( ) ) {
SINGLE
- if ( ! filter . apply ( p ) )
+ if ( filter != null && ! filter . apply ( p ) )
continue ;
SINGLE | Applied the null filter fix to the UDP kernel that |
<nb> public class BsonObjectId extends BsonValue implements Comparable < BsonObjectId > ,
public int hashCode ( ) {
return value . hashCode ( ) ;
}
+
+ @ override
+ public String toString ( ) {
+ return STRING0
+ + STRING1 + value . toHexString ( )
+ + STRING2 ;
+ }
} | Added toString method to BsonObjectId |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
public class... | Remove PageBuilder dependencies on Guava |
<nb> public class MenuObject implements Parcelable {
SINGLE
private int mTextColor ;
SINGLE
- private int mDividerColor ;
+ private int mDividerColor = Integer . MAX_VALUE ;
private int mMenuTextAppearenseStyle ;
<nb> public class Utils {
viewLayoutParams . addRule ( RelativeLayout . ALIGN_PARENT_BO... | Adds ability to use Color Transparent for the divider color |
<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 ;
<nb> public class ClientSSLS... | removed problematic tag |
<nb> public class TestLexerErrors extends BaseTest {
}
@ test
- public void tesStringsEmbeddedInActions ( ) {
+ public void testStringsEmbeddedInActions ( ) {
String grammar =
STRING0
+ STRING1 | Fix test name |
<nb> public class NiftyDialogBuilder extends Dialog implements DialogInterface {
private final String defMsgColor = STRING0 ;
private final String defDialogColor = STRING1 ;
-
+
+
+ private static Context tmpContext ;
private Effectstype type = null ;
<nb> public class NiftyDialogBuilder extends D... | change the singleton |
<nb> import NAMESPACE ;
public interface PacketListener {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added Javadoc note about single thread used for all listeners |
<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 NAM... | save files before rollback |
<nb> public class OStorageRemoteServiceThread extends OSoftThread {
storage . beginResponse ( network ) ;
} catch ( IOException ioe ) {
SINGLE
- network . endResponse ( ) ;
sendShutdown ( ) ;
storage . closeChannel ( network ) ;
storage . handleException ( STRING0 , ioe ) ; | fixed problem on hot reconnection |
<nb> public class JDBCSessionDao extends CachingSessionDAO {
try {
return sessionModelDao . toSimpleSession ( ) ;
- } catch ( IOException e ) {
+ } catch ( final IOException e ) {
log . warn ( STRING0 , e ) ;
return null ;
} | add missing final keyword in JDBCSessionDao |
<nb> public class SpeeDRF extends Job . ValidatedJob {
}
SINGLE
- SpeeDRFModel model = new SpeeDRFModel ( dest ( ) , self ( ) , train , this ) ;
+ SpeeDRFModel model = new SpeeDRFModel ( dest ( ) , source . _key , train , this ) ;
int csize = H2O . CLOUD . size ( ) ;
model . fr = train ;
model . respons... | frame key was being passed into the job key s spot fixes python test |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class TestingSplit
implements ConnectorSplit
{
+ public TestingSplit ( )
+ {
+ }
+
+ public TestingSplit ( @ jsonproperty ( STRING0 ) i... | Add dummy field to TestingSplit |
<nb> public interface SourceContact
public String getDisplayName ( ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ContactSourceService getContactSource ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Obtain the parent source from the result contact |
<nb> public class SparseArrayObjectAdapter extends ObjectAdapter {
public void clear ( int key ) {
int index = mItems . indexOfKey ( key ) ;
if ( index >= NUMBER0 ) {
- mItems . delete ( index ) ;
+ mItems . removeAt ( index ) ;
notifyItemRangeRemoved ( index , NUMBER1 ) ;
}
} | Fix SparseArrayObjectAdapter clear |
<nb> public @ interface ConditionalOnBean {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
Class < ? extends Annotation > [ ] annotation ( ) default { } ;
<nb> public @ interface ConditionalOnMissingBean {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COM... | Fix annotation javadoc |
<nb> public abstract class Check extends AbstractViolationReporter
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void init ( ) | fixed typo in javadoc |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestAll implements Test {
if ( test != null ) {
myLastTestClass = null ;
- CompileProjectTestcase . setEcho ( false ) ;
-
+
myLastTestClass = testCaseClass . get... | removed tests for glue configuration and intellijac |
<nb> public abstract class AbstractEpollStreamChannel extends AbstractEpollChannel {
protected AbstractEpollStreamChannel ( Channel parent , int fd ) {
super ( parent , fd , Native . EPOLLIN , true ) ;
+ SINGLE
+ flags |= Native . EPOLLRDHUP ;
}
protected AbstractEpollStreamChannel ( int fd ) {
super ... | Correctly set EPOLLRDHUP for all stream channels |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ToolsPanel extends JPanel {
final int row ,
final boolean hasFocus ) {
Object object = ( ( CheckedTreeNode ) value ) . getUserObject ( ) ;
+ if (... | Fixed UI in External Tools |
<nb> public abstract class GString extends GroovyObjectSupport implements Comparable ,
( ( Buildable ) value ) . build ( builder ) ;
} else {
builder . getProperty ( STRING0 ) ;
- builder . invokeMethod ( STRING1 , new Object [ ] { value . toString ( ) } ) ;
+ builder . invokeMethod ( STRING1 , new Object [ ]... | Don t call toString on a non Buildable object let the Bulderwork out what ro do with it |
<nb> public class BulletPhysics implements PhysicsEngine {
updateKinematicSettings ( entity . getComponent ( RigidBodyComponent . class ) , rigidBody ) ;
return true ;
} else {
- newRigidBody ( entity ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Don t create rigid bodies for destroyed entities |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class TesterWsClientAutobahn {
} else {
System . out . print ( STRING0 ) ;
}
- executeTestCase ( wsc , testCase ) ;
+ try {
+ executeTestCase ( wsc , testCase ) ;
+ } ... | A RuntimeException in one test shouldn t stop the test run |
<nb> public interface EjbMessages {
COMMENT
COMMENT
@ message ( id = NUMBER0 , value = STRING0 )
- IllegalStateException sessionTypeNotSpecified ( String bean ) ;
+ DeploymentUnitProcessingException sessionTypeNotSpecified ( String bean ) ;
} | Throw correct exception type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.