diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
public class Polish extends Language {
private final Tagger tagger = new PolishTagger ( ) ;
- private final SentenceTokenizer sentenceTokenizer = new SRXSentenceTokenizer ( STRING0 ) ; SINGLE
+ private final SentenceTokenizer sentenceTokenizer = new SRXSentenceTokenizer ( STRING0 ) ;
... | delete redundant comment |
<nb> public class Ctags {
command . add ( binary ) ;
command . add ( STRING0 ) ;
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
+
if ( env . isUniversalCtags ( ) ) {
command . add ( STRING1 ) ;
command . add ( STRING2 ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ command . add ( STRING3 ) ;... | enable local variables for universal ctags |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GitTestRunEnv {
log ( STRING0 + exec ) ;
return... | Make tests able to detect git executable in PATH |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused import |
<nb> public class MacIntelliJCheckBoxUI extends IntelliJCheckBoxUI {
public MacIntelliJCheckBoxUI ( JCheckBox c ) {
c . setBorder ( new MacCheckBoxBorder ( ) ) ;
+ c . setOpaque ( false ) ;
}
@ suppresswarnings ( { STRING0 , STRING1 } ) | make checkboxes transparent |
<nb> public class IrcDiscoveryTest {
InetSocketAddress [ ] decoded = addresses . toArray ( new InetSocketAddress [ ] { } ) ;
for ( int i = NUMBER0 ; i < decoded . length ; i ++ ) {
- String formattedIP = decoded [ NUMBER0 ] . getAddress ( ) . getHostAddress ( ) + STRING0 + ( ( Integer ) decoded [ i ] . getPort ... | Fix a typo bug in IrcDiscoveryTest |
<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 ;
public class DbSession impl... | Do not accumulate already processed actions in DbSession |
<nb> abstract class BaseCluster implements Cluster {
LOGGER . info ( format ( STRING0 ,
MILLISECONDS . convert ( timeout , NANOSECONDS ) ) ) ;
+ connect ( ) ;
+
if ( ! currentPhase . await ( timeout , NANOSECONDS ) ) {
throw new MongoTimeoutException ( format ( STRING1 ,
MILLISECONDS . convert ( maxWait... | When waiting for the cluster description force a connection attempt each time through the loop |
<nb> public enum PreconditionMessage {
STRING0 ) ,
ERR_BLOCK_INDEX ( STRING1 ) ,
ERR_BLOCK_REMAINING ( STRING2 ) ,
- ERR_BUFFER_STATE ( STRING3 ) ,
+ ERR_BUFFER_STATE ( STRING4 ) ,
ERR_CLOSED_BLOCK_IN_STREAM ( STRING5 ) ,
ERR_CLOSED_BLOCK_OUT_STREAM ( STRING6 ) ,
ERR_CLOSED_UNDER_FILE_SYSTEM_FILE_OUT_ST... | Fixing precondition message format strings |
<nb> public class AddKotlinSignatureAnnotation extends BaseIntentionAction {
SINGLE
PsiCodeBlock body = res . getBody ( ) ;
- if ( body == null ) return null ;
- TextRange textRange = body . getTextRange ( ) ;
- if ( textRange == null || textRange . getStartOffset ( ) <= offset ) return null ;
-
+ if ( ... | Enabled AddKotlinSignatureAnnotation action available for methods without body |
<nb> public class ClassGroupingRule implements UsageGroupingRule {
if ( usage instanceof PsiElementUsage ) {
final PsiElement psiElement = ( ( PsiElementUsage ) usage ) . getElement ( ) ;
final PsiFile containingFile = psiElement . getContainingFile ( ) ;
- if ( containingFile instanceof PsiJavaFile ) {
+
+... | fixed duplicate file node for jspfile |
<nb> public class CallLog {
public static final String GEOCODED_LOCATION = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String CACHED_LOOKUP_URI = STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Add a few columns for caching to the call log |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
public class ClasspathPropertiesConfigurationTest {
<nb> public class ClasspathPropertiesConfigurationTest {
ClasspathPropertiesConfiguration . setPropertiesResourceRelativePath ( STRING0 ) ;
try {
Cl... | Restore IOException if a config file is non existent |
<nb> public abstract class GraphDatabaseSettings
setting ( STRING0 , BOOLEAN , TRUE ) ;
@ description ( STRING1 +
- STRING2 +
+ STRING3 +
STRING4 )
@ deprecated
public static final Setting < Long > index_sampling_buffer_size = setting ( STRING5 , BYTES , STRING6 , | Fix mistype londet longer |
<nb> public final class CheckUtils {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static boolean isNonVoidMethod ( DetailAST methodDefAst ) {
boolean retVal = false ; | rename CheckUtils isVoidMethod to isNonVoidMethod |
<nb> public class CastManager extends BaseCastManager implements OnFailedListener {
return remoteMediaPlayer . getApproximateStreamPosition ( ) ;
}
+ public int getApplicationStandbyState ( ) throws IllegalStateException {
+ Log . d ( TAG , STRING0 ) ;
+ return Cast . CastApi . getStandbyState ( mApiClient ... | include method to find application standby state |
<nb> public class Progress2 extends Request2 {
public Key destination_key ;
@ api ( help = STRING0 )
- public String redirect_to ;
+ public String redirect_url ;
@ api ( help = STRING0 )
public String status = STRING1 ; SINGLE
<nb> public class Progress2 extends Request2 {
COMMENT
protected Respon... | Renamed Progress2 redirect to match Progress |
<nb> public abstract class AbstractFsBlobContainer extends AbstractBlobContainer {
while ( ( bytesRead = is . read ( buffer ) ) != - NUMBER0 ) {
listener . onPartial ( buffer , NUMBER1 , bytesRead ) ;
}
- } catch ( Throwable e ) {
+ } catch ( Throwable t ) {
IOUtils . closeWhileHandlingException ( is ) ;
... | Failure in onComplete method of AbstractFsBlobContainer readBlob should trigger onFailure |
<nb> final class MarkableInputStream extends InputStream {
private void skip ( long current , long target ) throws IOException {
while ( current < target ) {
long skipped = in . skip ( target - current ) ;
+ if ( skipped == NUMBER0 ) {
+ if ( read ( ) == - NUMBER1 ) {
+ break ; SINGLE
+ } else {
+ skipp... | update MarkableInputStream from square |
<nb> public class CliJobCreationTest extends SystemTestBase {
Job . Builder actualJobBuilder = actualJob . toBuilder ( ) ;
builder . setName ( testJobName ) . setVersion ( testJobVersion ) . setImage ( BUSYBOX )
. setEnv ( ImmutableMap . of ( redundantEnvKey , STRING0 ) ) ;
- assertEquals ( builder . build ( ) ... | Fix another test |
<nb> public class Cloud extends Request {
Long elapsed = System . currentTimeMillis ( ) - h2o . _last_heard_from ;
node . addProperty ( ELAPSED , elapsed ) ;
- if ( elapsed > HeartBeatThread . TIMEOUT )
- h2o . _node_healthy = false ;
+ h2o . _node_healthy = elapsed > HeartBeatThread . TIMEOUT ? false : tru... | update node status if it becomes healthy again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class OverrideImplementMethodsHandler implements LanguageCodeIns
if ( selectedElements == null || selectedElements . isEmp... | Added commitAllDocuments to avoid failing tests |
<nb> public class Configuration implements Serializable {
final String existingLogicalName = ( String ) physicalToLogical . put ( physicalName , logicalName ) ;
if ( existingLogicalName != null && ! existingLogicalName . equals ( logicalName ) ) {
throw new DuplicateMappingException (
- STRING0 + tableName + ST... | contains phyical column name |
<nb> public class OScheduler implements Runnable {
public void setDatabase ( ODatabaseRecord database ) {
if ( this . db . isClosed ( ) ) {
OLogManager . instance ( ) . warn ( this , STRING0 ) ;
- this . db = database ;
}
} | Remove this db database |
<nb> public class Locks {
SINGLE
SINGLE
SINGLE
- warnOnLockCycles ( ) ;
+ throwOnLockCycles ( ) ;
}
private static CycleDetectingLockFactory . Policy policy ;
<nb> public class Locks {
public static CycleDetectingLockFactory . Policy getPolicy ( ) {
return policy ;
}
-
- COMMENT
- public s... | For now throw on cycles |
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | DGM should have a getAt method for Iterable |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Fix R java imports |
<nb>
package NAMESPACE ;
- public class Symbol extends AMap {
+ public class Symbol extends AFn {
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Object invoke ( ThreadLocalData tld , Object obj ) throws Exception
+ {
+ return ( ( AMap ) obj )... | implemented IFn for attr access |
<nb> public class DynamoDBReflector {
@ override
public AttributeValue marshall ( Object obj ) {
+ if ( ( ( String ) obj ) . length ( ) == NUMBER0 )
+ obj = null ;
+
return new AttributeValue ( ) . withS ( String . valueOf ( obj ) ) ;
}
} ; | Fix reflector to treat empty strings like null strings |
<nb> public class ProjectTemplateRegistryProvider
SINGLE
for ( Callback callback : pendingCallbacks_ )
- callback . execute ( registry_ ) ;
+ {
+ try
+ {
+ callback . execute ( registry_ ) ;
+ }
+ catch ( Exception e )
+ {
+ Debug . logException ( e ) ;
+ }
+ }
SINGLE
pendingCallbacks_... | catch potential exceptions when executing callbacks |
<nb> public class SubversionExtension {
contextGroup . getTemplatePresentation ( ) . setSVGResource ( resources . svn ( ) ) ;
- DefaultActionGroup mainContextMenuGroup = ( DefaultActionGroup ) actionManager . getAction ( IdeActions . GROUP_MAIN_CONTEXT_MENU ) ;
- mainContextMenuGroup . addSeparator ( ) ;
+ ... | Move down svn item in the context menu |
<nb> public class Intrinsics {
public static void checkFieldIsNotNull ( Object value , String className , String fieldName ) {
if ( value == null ) {
IllegalStateException exception =
- new IllegalStateException ( STRING0 + className + STRING1 + fieldName ) ;
+ new IllegalStateException ( STRING2 + className ... | Improve non null assertion messages |
<nb> public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
SINGLE
NUMPY_ALIAS_TO_REAL_TYPE . put ( STRING0 , STRING1 ) ;
+ SINGLE
NUMPY_ALIAS_TO_REAL_TYPE . put ( STRING2 , STRING3 ) ;
+ NUMPY_ALIAS_TO_REAL_TYPE . put ( STRING4 , STRING3 ) ;
+ NUMPY_ALIAS_TO_REAL_TYPE . put ( STRING5 , STRI... | allow passing list arguments for tuple expected types |
<nb> class IntObjectPersistentMultiMaplet < V extends Streamable > extends IntObjectMult
public void replace ( int key , Collection < V > value ) {
try {
myCache . remove ( key ) ;
- if ( value == null ) {
+ if ( value == null || value . size ( ) == NUMBER0 ) {
myMap . remove ( key ) ;
}
else {
<nb> c... | Fixed minor bug in multimaplets again compile server |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class ODistributedStorageTest {
+
+ @ beforemethod
+ public void before (... | add check if orient instance is active in the distruted test |
<nb> public final class Message extends Packet {
COMMENT
COMMENT
public Message ( ) {
- super ( ) ;
}
COMMENT
<nb> public final class Message extends Packet {
COMMENT
COMMENT
public Message ( String to ) {
- super ( ) ;
setTo ( to ) ;
}
<nb> public final class Message extends Packet {
... | Remove unnecessary code in Message |
<nb> public class DesktopExportController implements ExportController {
Workspace workspace = projectController . getCurrentWorkspace ( ) ;
GraphFileExporterSettings settings = new GraphFileExporterSettings ( workspace , visibleGraphOnly ) ;
+ SINGLE
+ MostRecentFiles mostRecentFiles = Lookup . getDefault ( )... | Debug DesktopExport with mru |
<nb> public abstract class Netapi32Util {
}
return trusts . toArray ( new DomainTrust [ NUMBER0 ] ) ;
} finally {
- rc = Netapi32 . INSTANCE . NetApiBufferFree ( domains . getPointer ( ) ) ;
+ rc = Netapi32 . INSTANCE . NetApiBufferFree ( domains . getPointer ( ) . getPointer ( NUMBER0 ) ) ;
if ( W32Errors ... | Fixing a crash when trying to free the wrong pointer in Netapi32Util |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class EmailSettings implements BatchComponent , ServerComponent { | Add comment to EmailSettings |
<nb> public class PackageManagerService extends IPackageManager . Stub {
StringBuffer sb = new StringBuffer ( ) ;
String firstLine = readLine ( in , sb ) ;
- if ( firstLine . equals ( USAGE_FILE_MAGIC_VERSION_1 ) ) {
+ if ( firstLine == null ) {
+ SINGLE
+ } else if ( USAGE_FILE_MAGIC_VERSION_1 . equals (... | Fix NPE in reading package usage |
<nb> public class UtilsTest {
Assert . assertTrue ( STRING0 + err , Math . abs ( err ) < FLOAT0 ) ;
}
}
+
+ int [ ] idx = Utils . seq ( NUMBER0 , NUMBER1 + new Random ( ) . nextInt ( NUMBER2 ) ) ;
+ int [ ] shuffled_idx = new int [ idx . length ] ;
+ Utils . shuffleArray ( idx , idx . length , shuffled_id... | Add JUnit test of shuffleArray with and without offset |
<nb> public class FileDocumentManagerImpl extends FileDocumentManager implements Appl
return FileDocumentManagerListener . EP_NAME . getExtensions ( ) ;
}
- protected void handleErrorsOnSave ( final Map < Document , IOException > failures ) {
+ protected void handleErrorsOnSave ( @ notnull Map < Document , IO... | Log document saving exceptions |
<nb> public class ConnectivityService extends IConnectivityManager . Stub {
return ;
}
- if ( LinkProperties . isValidMtu ( mtu , newLp . hasGlobalIPv6Address ( ) ) ) {
+ if ( LinkProperties . isValidMtu ( mtu , newLp . hasGlobalIPv6Address ( ) ) == false ) {
loge ( STRING0 + mtu + STRING1 + iface ) ;
ret... | Fix a logic error so mtu works |
<nb> public class ClassNode extends AnnotatedNode implements Opcodes {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void setRedirect ( ClassNode cn ) {
if ( isPrimaryNode ) throw new GroovyBugError ( STRING0 + getName ( ) + STRING1 + cn . getName ( ) + STRING2 ) ;
- redirect = cn . redirec... | avoid NPE when setting redirect |
<nb> public class TestServlet extends HttpServlet {
out . println ( STRING0 ) ;
out . println ( STRING1 ) ;
out . println ( STRING2 ) ;
- out . println ( STRING3 ) ;
+ out . println ( STRING4 ) ;
+ out . println ( STRING5 + request . getParts ( ) . size ( ) + STRING6 ) ;
String fileName = STRING7 ;
for ... | Adding debug statements |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class Console
{
StatementSplitter splitter = new StatementSplitter ( query + STRING0 ) ;
for ( Statement... | Fix handling of empty statements in CLI |
<nb> public class SearchView extends FrameLayout implements View . OnClickListener {
mEditText . clearFocus ( ) ;
mSearchArrow = new SearchArrowDrawable ( mContext ) ;
+ setVisibility ( View . VISIBLE ) ;
+ mCardView . setVisibility ( VISIBLE ) ;
+
mBackImageView . setImageDrawable ( mSearchArrow ) ;
} | Fix component not appearing after changing from MENU to TOOLBAR version |
<nb> public class OsmandMapTileView implements IMapDownloaderCallback {
}
final boolean isMultiTouch = multiTouchSupport . onTouchEvent ( event ) ;
doubleTapScaleDetector . onTouchEvent ( event ) ;
- if ( ! ( isMultiTouch || doubleTapScaleDetector . isInZoomMode ( )
- || doubleTapScaleDetector . isDoubleTappi... | Fix double tap zoom when click on map object |
<nb> public class PullToRefreshAttacher implements View . OnTouchListener {
return true ;
}
- private void resetTouch ( ) {
+ void resetTouch ( ) {
mIsBeingDragged = false ;
mIsHandlingTouchEvent = false ;
mInitialMotionY = mLastMotionY = mPullBeginY = - NUMBER0 ;
<nb> public class PullToRefreshAttach... | Add javadoc to HeaderViewListener constants |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractOttoHandler extends BaseAnnotationHandler < ECo... | Fix Otto annotations not copied to generated method |
<nb> public class JavaSoundAudioRecorder implements AudioRecorder {
read += line . read ( buffer , read , toRead - read ) ;
for ( int i = NUMBER0 , j = NUMBER0 ; i < numSamples * NUMBER1 ; i += NUMBER1 , j ++ )
- samples [ offset + j ] = ( short ) ( ( buffer [ i ] < < NUMBER2 ) | ( buffer [ i + NUMBER3 ] & NUMB... | fixed bug in JavaSoundAudioRecorder |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix FlowLocator package change in SWF |
<nb> public class NodeTraversal {
COMMENT
COMMENT
COMMENT
- boolean inGlobalHoistScope ( ) {
+ public boolean inGlobalHoistScope ( ) {
return ! getCfgRoot ( ) . isFunction ( ) ;
}
<nb> public final class CheckJSDocStyle extends AbstractPostOrderCallback implements
COMMENT
COMMENT
private boolean... | Check for JSDoc on functions defined in the global hoist scope |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GenericMapping implements Mapping {
types . put ( Float . class , new FloatType ( Float . class ) ) ;
types . put ( double . class , new RealT... | Remove invalid mapping |
<nb> public class HeartBeatThread extends Thread {
hb . set_valsz ( myHisto . histo ( false ) . _cached ) ;
hb . _num_cpus = ( char ) run . availableProcessors ( ) ;
- if ( counter % NUMBER0 == NUMBER1 ) {
- SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( ( counter + H2O . SELF . hashCode ( ) ) % NUMBER0 == ... | Fix jenkins linpack bigmachine bug |
<nb> final class AdvancedLeakAwareByteBuf extends WrappedByteBuf {
@ override
public int forEachByteDesc ( ByteProcessor processor ) {
- recordLeakNonRefCountingOperation ( ) ;
recordLeakNonRefCountingOperation ( ) ;
return super . forEachByteDesc ( processor ) ;
} | Remove multiple calls to recordLeakNonRefCountingOperation in AdvancedLeakAwareByteBuf forEachByteDesc |
<nb> import NAMESPACE ;
public class BundleDocument {
private String name = STRING0 ;
private String role = STRING1 ;
- private String icon = null ;
- private File iconFile ;
+ private File icon = null ;
private String [ ] extensions ;
private boolean isPackage = false ;
<nb> public class BundleDocu... | Fixed build errors on OS X when ant is run from a location other than build macosx |
<nb> 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 SSLConfig {
c2sTrustFactory . init ( c2sTrustStore )... | Fixed small tiny error that no one reported yet |
<nb> public abstract class BaseActivity extends AppCompatActivity {
SINGLE
if ( ContextCompat . checkSelfPermission ( this , Manifest . permission . WRITE_EXTERNAL_STORAGE )
!= PackageManager . PERMISSION_GRANTED ) {
- onShowAutoBackupPermissionWarning ( ) ;
+ SINGLE
+ if ( FirstRunFragment . hasSeenFirstRu... | Do not show auto backup permission warning on first run |
<nb> public class EventSerializationTest {
}
private TestResults generateFakeTestResults ( ) {
- ImmutableList < TestResultSummary > testResults = ImmutableList . < TestResultSummary > builder ( )
- . add ( new TestResultSummary ( ) )
- . build ( ) ;
- TestCaseSummary testCase = new TestCaseSummary ( STRI... | Use clearer fake results |
<nb> public abstract class BaseCheckTestCase
{
final DefaultConfiguration dc = createCheckerConfig ( aCheckConfig ) ;
final Checker c = new Checker ( ) ;
- c . setLocaleCountry ( Locale . getDefault ( ) . getCountry ( ) ) ;
- c . setLocaleLanguage ( Locale . getDefault ( ) . getLanguage ( ) ) ;
+ SINGLE
+... | set locale for tests to english instead of the default locale |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT... | Improve Mediator Javadoc |
<nb> public class ProjectTypeStep extends ModuleWizardStep implements Disposable {
myConfigurationUpdater = new ModuleBuilder . ModuleConfigurationUpdater ( ) {
@ override
public void update ( @ notnull Module module , @ notnull ModifiableRootModel rootModel ) {
- myFrameworksPanel . addSupport ( module , rootM... | add support if only frameworks selected |
<nb> public class FrameworkDetectionManager extends AbstractProjectComponent implemen
@ override
public void initComponent ( ) {
- doInitialize ( ) ;
+ if ( ! myProject . isDefault ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ doInitialize ( ) ;
+ }
}
public void doInit... | really enable framework detection in detection tests only |
<nb> public class StreamedFileBasedOpenStreetMapProviderImpl implements OpenStreetMap
in = new GZIPInputStream ( new FileInputStream ( _path ) ) ;
StreamedOpenStreetMapParser . parseMap ( in , handler , NUMBER0 ) ;
+
+ handler . nodesLoaded ( ) ;
} else if ( _path . getName ( ) . endsWith ( STRING0 ) ) {
... | add missing method reported by Laurent Gregoire |
<nb> public class ClassDefinition {
}
public String getSourceFile ( ) {
+ StringIdItem sourceFile = classDefItem . getSourceFile ( ) ;
+
+ if ( sourceFile == null ) {
+ return null ;
+ }
return classDefItem . getSourceFile ( ) . getStringValue ( ) ;
} | Check for null source file |
<nb> public abstract class AbstractTachyonFileSystem implements TachyonFileSystemCore
}
}
- public TachyonFile open ( TachyonURI path , OpenOptions openOptions ) throws IOException ,
- InvalidPathException , TachyonException {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Added comment back |
<nb> public class BTreeMap < K , V > extends AbstractMap < K , V >
if ( pos < A . keys ( ) . length - NUMBER0 && v != null && A . keys ( ) [ pos ] != null &&
NUMBER1 == comparator . compare ( v , A . keys ( ) [ pos ] ) ) {
- try {
- Object a = ( hasValues ? A . vals ( ) [ pos - NUMBER0 ] : Utils . EMPTY_STRIN... | remove dead code used for debugging |
<nb> public class Constants {
public static final int DEFAULT_HOST_RESOLUTION_TIMEOUT_MS = NUMBER0 ;
+ public static final String BLOCK_MASTER_SERVICE_NAME = STRING0 ;
+ public static final String FILE_SYSTEM_MASTER_SERVICE_NAME = STRING1 ;
+ public static final String RAW_TABLE_MASTER_SERVICE_NAME = STRING... | Add master service names |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StreamUtil {
}
public static byte [ ] loadFromStream ( InputStream inputStream ) throws IOException {
- final ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ... | use existing byte from stream to avoid producing large garbage objects |
<nb> public final class UpdateChecker implements ApplicationComponent {
URL url = null ;
String downloadUrl ;
if ( LicenseManager . getInstance ( ) . isEap ( ) ) {
- downloadUrl = STRING0 ;
+ downloadUrl = STRING1 ;
}
else {
downloadUrl = STRING2 ; | removed Use generics enabled compiler option from javac options |
<nb> public class RawPacket
+ FIXED_HEADER_SIZE
+ getCsrcCount ( ) * NUMBER0 + NUMBER1 ;
- return ( ( buffer [ extLenIndex ] < < NUMBER0 ) | buffer [ extLenIndex + NUMBER2 ] ) * NUMBER0 ;
+ return ( ( buffer [ extLenIndex ] < < NUMBER3 ) | buffer [ extLenIndex + NUMBER2 ] ) * NUMBER0 ;
}
COMMENT
<nb> ... | Fix shift values when converting from to network order |
<nb> public class DefaultAccessTokenConverter implements AccessTokenConverter {
if ( includeGrantType && map . containsKey ( GRANT_TYPE ) ) {
parameters . put ( GRANT_TYPE , ( String ) map . get ( GRANT_TYPE ) ) ;
}
- @ suppresswarnings ( STRING0 )
Set < String > resourceIds = new LinkedHashSet < String > ( m... | Tidy up some compiler warnings |
<nb> public class Deflector { SINGLE
if ( ! indices . create ( newTarget ) ) {
LOG . error ( STRING0 , newTarget ) ;
}
- updateIndexRanges ( ) ;
LOG . info ( STRING1 ) ;
<nb> public class Deflector { SINGLE
}
}
+ updateIndexRanges ( ) ;
+
LOG . info ( STRING1 ) ;
activityWriter . write (... | Recalculate index ranges after update deflector |
<nb> public class CreateGameScreen extends CoreScreenLayer {
SINGLE
for ( Name moduleName : config . getDefaultModSelection ( ) . listModules ( ) ) {
Module module = moduleManager . getRegistry ( ) . getLatestModuleVersion ( moduleName ) ;
- if ( moduleManager . isGameplayModule ( module ) ) {
+
+ SINGLE
... | Fix NPE in CreateGame screen when modules are deleted |
<nb> public class WikiTestPlan extends BaseTestSuite {
testSuite . addTest ( WikiPageTests . suite ( ) ) ;
return testSuite ;
- }
+ }
}
<nb> public class WikiTestPlan extends BaseTestSuite {
testSuite . addTest ( WikiPageTests . suite ( ) ) ;
return testSuite ;
- }
+ }
}
<nb> public clas... | Test fixes source formatting |
<nb> public class DhcpClient extends BaseDhcpStateMachine {
private PendingIntent createStateMachineCommandIntent ( final String cmdName , final int cmd ) {
String action = DhcpClient . class . getName ( ) + STRING0 + mIfaceName + STRING0 + cmdName ;
- Intent intent = new Intent ( action , null )
- . addFlags... | Give the DhcpClient alarm broadcasts foreground priority |
<nb> public class NumberPicker extends LinearLayout {
}
@ override
+ public int computeVerticalScrollOffset ( ) {
+ return mCurrentScrollOffset ;
+ }
+
+ @ override
+ public int computeVerticalScrollRange ( ) {
+ return mSelectorIndices . length * mSelectorElementHeight ;
+ }
+
+ @ override
... | Fix vertical scroll computation in NumberPicker |
<nb> public class State implements Cloneable {
}
public State reversedClone ( ) {
- return new State ( this . time , this . vertex , this . options . reversedClone ( ) ) ;
+ long timeAdjustment = NUMBER0 ;
+ SINGLE
+ if ( this . everBoarded ) {
+ timeAdjustment = this . options . minTransferTime * NUMBE... | Adjust time in State reversedClone so minTransferTime does not cause missed trips during back optimization of itineraries |
<nb> public class CropOverlayView extends View {
COMMENT
COMMENT
public void setBitmapRect ( Rect bitmapRect ) {
- mBitmapRect = bitmapRect ;
- initCropWindow ( ) ;
+ if ( mBitmapRect == null || ! bitmapRect . equals ( mBitmapRect ) ) {
+ mBitmapRect = bitmapRect ;
+ initCropWindow ( ) ;
+ }
}
C... | don t re init crop window if bitmap rectangle did NOT changed fixes crop window reset on keyboard show hide |
<nb> public class BuildCraftEnergy {
SINGLE
IronEngineFuel . fuels . add ( new IronEngineFuel ( Block . lavaStill . blockID , NUMBER0 , NUMBER1 ) ) ;
- IronEngineFuel . fuels . add ( new IronEngineFuel ( oilStill . blockID , NUMBER2 , NUMBER3 ) ) ;
- IronEngineFuel . fuels . add ( new IronEngineFuel ( fuel . ... | Significantly buffed Oil Fuel |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ hasinternalprotocol
public interface PluginAware {
SINGLE | PluginAware no longer has an internal protocol |
<nb> public class DetailViewImpl extends JPanel implements DetailView , UserDataHolder
@ override
public void navigateInPreviewEditor ( PreviewEditorState editorState ) {
- myEditorState = editorState ;
-
final VirtualFile file = editorState . getFile ( ) ;
final LogicalPosition positionToNavigate = edito... | closing Disabled until hides preview |
<nb> public class SubclassImplementationTarget extends Implementation . Target . Abstract
public String toString ( ) {
return STRING0 +
STRING1 + superConstructors +
- STRING2 + originTypeResolver +
+ STRING3 + originTypeResolver +
STRING4 + instrumentedType +
STRING5 + methodGraph +
STRING6 ;
<nb> pu... | Fixed toString methods that defined incorrect name for field |
<nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark
broker = new MemcachedCacheBroker (
client ,
NUMBER0 , SINGLE
- NUMBER1 * NUMBER2 * NUMBER3 SINGLE
+ NUMBER1 SINGLE
) ;
cache = broker . provideCache ( STRING0 ) ;
<nb> public class MemcachedCacheBrokerBenchmark extends SimpleBenc... | fix JVM optimizing out the benchmarking code |
<nb> import NAMESPACE ;
public abstract class FileDownloadLargeFileListener extends FileDownloadListener {
public FileDownloadLargeFileListener ( ) {
- this ( NUMBER0 ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public FileDownloadLargeFileListener ( int priority ) {
super ( priority ) ;
} | deprecated the construction method with priority for FileDownloadLargeFileListener we do not handle priority any more for listener |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class RunConfigurable extends BaseConfigurable {
mySelectedConfigurable = configurable ;
JComponent configurableComponent = configurab... | Do not use scroll pane for all Run Debug configurations |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
class CompletionList < TItem > extends Composite
<nb> class CompletionList < TItem > extends Composite
grid . addClickHandler ( new GridMouseHandler ( ) ) ;
grid . addMouseMoveHan... | apply normal font size to completion popup list |
<nb> public interface JvmApiSpec {
COMMENT
Set < JvmPackageName > getExports ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
void dependencies ( Closure < ? > configureAction ) ;
+ COMMENT
+ COMMENT
+ COMMENT
DependencySpecContainer getDependencies ( ) ;
} | Add missing javadocs to JvmApiSpec |
<nb> public class ModuleDefaultVcsRootPolicy extends DefaultVcsRootPolicy {
SINGLE
VcsDirectoryMapping mapping = mappingList . getMappingFor ( file , module ) ;
final String mappingVcs = mapping != null ? mapping . getVcs ( ) : null ;
- if ( vcsName . equals ( mappingVcs ) ) {
+ if ( vcsName . equals ( mappin... | Avoid duplicates in vcs roots |
<nb> public interface Option < T > extends Value < T > {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
static < T > Option < Seq < T > > sequence ( Iterable < ? extends Option < ? extends T > > values ) {
final Option < Seq < T > > zero = Option ... | adding additional documentation |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
... | we must use node id instead of css selector to highlight node |
<nb> import NAMESPACE ;
)
public class VcsApplicationSettings implements PersistentStateComponent < VcsApplicationSettings > {
public String PATCH_STORAGE_LOCATION = null ;
- public boolean SHOW_WHITESPACES_IN_LST = false ;
+ public boolean SHOW_WHITESPACES_IN_LST = true ;
public boolean SHOW_LST_GUTTER_MAR... | show whitespace only modified lines by default |
<nb> public abstract class AbstractMaster implements Master {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected AbstractMaster ( MasterContext masterContext , Journal journal , Clock clock ,
ExecutorService executorService ) {
<nb> public final class BlockMaster ext... | Add javadoc about ownership of executor services |
<nb> public class NewChunk extends Chunk {
}
if ( fitsInUnique ) {
if ( hs . size ( ) < CUDChunk . MAX_UNIQUES ) SINGLE
- hs . putIfAbsent ( Double . doubleToLongBits ( d ) , dummy ) ; SINGLE
+ hs . put ( new Long ( Double . doubleToLongBits ( d ) ) , dummy ) ; SINGLE
else if ( hs . size ( ) == CUDChunk . M... | Fix compilation on Jenkins |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
for ( ApplicationInfoEx xAppInfo : AppListAdapter . this . lstApp ) {
SINGLE
if ( constraint == null ) {
- boolean allRestricted = true ;
+ boolean someRestricted = false ;
if ( mRestrictionName == null )
for ( boolean ... | also display some restricted |
<nb> public final class MediaBrowser {
COMMENT
public @ nonnull String getRoot ( ) {
if ( ! isConnected ( ) ) {
- throw new IllegalStateException ( STRING0
+ throw new IllegalStateException ( STRING1
+ getStateLabel ( mState ) + STRING2 ) ;
}
return mRootId ; | Fix a wrong ISE message |
<nb> class ApplicationThreadProxy implements IApplicationThread {
data . writeInt ( level ) ;
mRemote . transact ( SCHEDULE_TRIM_MEMORY_TRANSACTION , data , null ,
IBinder . FLAG_ONEWAY ) ;
+ data . recycle ( ) ;
}
public void dumpMemInfo ( FileDescriptor fd , Debug . MemoryInfo mem , boolean checkin ,
... | Fixing parcel leaks to avoid virtual memory leak |
<nb> public class ScheduledAnnotationBeanPostProcessor implements BeanPostProcessor ,
return bean ;
}
ReflectionUtils . doWithMethods ( targetClass , new MethodCallback ( ) {
- @ override
public void doWith ( Method method ) throws IllegalArgumentException , IllegalAccessException {
Scheduled annotation = A... | removed Override annotations from interface methods |
<nb> public class ObjectPath implements Struct {
typeID = in . readInt ( ) ;
classID = in . readShort ( ) ;
isDestroyed = in . readShort ( ) ;
+
+ assert typeID == classID || ( classID == NUMBER0 && typeID < NUMBER1 ) ;
}
@ override | Added assertion for classID typeID |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.