diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class SQLiteConnection implements CancellationSignal . OnCancelListen
setJournalSizeLimit ( ) ;
setAutoCheckpointInterval ( ) ;
setLocaleFromConfiguration ( ) ;
+
+ SINGLE
+ final int functionCount = mConfiguration . customFunctions . size ( ) ;
+ for ( int i = NUMBER0 ; i < functionCoun... | Keep native callbacks when primary SQLiteConnection is recreated |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ApplyPatchAction extends DumbAwareAction {
else {
request = PatchDiffRequestFactory . createBadMergeRequest ( project , doc... | add ellipsis to Abort button in merge dialog because it always shows confirmation with skip abort option |
<nb> public class NearMissesRuleAcceptanceTest {
public void init ( ) {
client = new WireMockTestClient ( wm . port ( ) ) ;
testNotifier . reset ( ) ;
+ wm . resetAll ( ) ;
}
@ test
<nb> public class NearMissesRuleAcceptanceTest {
@ before
public void init ( ) {
client = new WireMockTestClient ( w... | Added resetAll calls to NearMissesRuleAcceptanceTest setup methods to avoid test order dependencies |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
public class ClientMemberAttributeTest extends HazelcastTestSupport {
@ after
+ @ before
public void cle... | ClientMemberAttributeTest kills now all members clients after and before a test method runs |
<nb> public class Term extends Activity implements UpdateCallback {
mActionBar = actionBar ;
actionBar . setNavigationMode ( ActionBarCompat . NAVIGATION_MODE_LIST ) ;
actionBar . setDisplayOptions ( NUMBER0 , ActionBarCompat . DISPLAY_SHOW_TITLE ) ;
+ if ( mActionBarMode == TermSettings . ACTION_BAR_MODE_HIDES... | Correctly hide the action bar on startup if requested when status bar is showing |
<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 ;
<nb> public class DynamicRegexR... | do not write new setting to profile if it has not changed from the default value |
<nb> public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMoj
}
try {
final Method method = aClass . getMethod ( name , argTypes ) ;
- if ( ( method . getModifiers ( ) & Modifier . PUBLIC ) != NUMBER0 ) {
+ SINGLE
+ int modifiers = method . getModifiers ( ) ;
+ if ( Modifier . isPu... | Added check to exclude static methods in proxies |
<nb> public abstract class AbstractThreadedSyncAdapter {
public void run ( ) {
Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ;
- if ( isCanceled ( ) ) {
- return ;
- }
-
SyncResult syncResult = new SyncResult ( ) ;
ContentProviderClient provider = null ;
try {
+ if ( isCance... | Move handing of a cancel inside try finally block |
<nb> import NAMESPACE ;
import NAMESPACE ;
public enum CreatureType {
+ SINGLE
CHICKEN ( STRING0 , Chicken . class ) ,
COW ( STRING1 , Cow . class ) ,
CREEPER ( STRING2 , Creeper . class ) ,
<nb> public enum CreatureType {
VILLAGER ( STRING3 , Villager . class ) ,
BLAZE ( STRING4 , Blaze . class ) ,... | Fixed some naming issues for creature types |
<nb> class AccessibilityInjectorFallback {
event . setFromIndex ( NUMBER0 ) ;
event . setToIndex ( selection . length ( ) ) ;
sendAccessibilityEvent ( event ) ;
- event . recycle ( ) ;
}
} | Don t recycle accessibility event after sending |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class Nullable {
+ private Nullable ( ) {
+ }
+
public static boolean notNullable ( Field field ) {
return ! isNullable ( field ) ;
} | add private constructor |
<nb> public class XmlSlashTypedHandler extends TypedHandlerDelegate {
@ override
public Result charTyped ( final char c , final Project project , @ notnull final Editor editor , @ notnull final PsiFile editedFile ) {
if ( ! WebEditorOptions . getInstance ( ) . isAutoCloseTag ( ) ) return Result . CONTINUE ;
- i... | use same xml file detection |
<nb> public class MapBasedConfiguration extends AbstractConfiguration
}
@ override
- public Iterator getKeys ( )
+ public Iterator < String > getKeys ( )
{
return config . keySet ( ) . iterator ( ) ;
} | Added type for iterator |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> p... | Improve requestPermissions API docs and throw correct exception |
<nb> public class ExopackageInstaller {
installSecondaryDexFiles ( hashesToInstall , hashToBasename ) ;
SINGLE
- AdbHelper . executeCommandWithErrorChecking ( device , STRING0 + packageName ) ;
+ try ( TraceEventLogger ignored = TraceEventLogger . start ( eventBus , STRING1 ) ) {
+ AdbHelper . executeComman... | Add Chrome trace event for killing the app after exopackage installation |
<nb> public final class ElementOrderTest {
graph . addNode ( node5 ) ;
graph . addNode ( node3 ) ;
+ assertThat ( graph . nodeOrder ( ) . comparator ( ) ) . isEqualTo ( comparator ) ;
assertThat ( graph . nodes ( ) ) . containsExactly ( node1 , node3 , node5 , node7 ) . inOrder ( ) ;
}
<nb> public final... | Add some test coverage for ElementOrder comparator |
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
String action = intent . getAction ( ) ;
if ( Intent . ACTION_CLOSE_SYSTEM_DIALOGS . equals ( action ) ) {
int flags = CommandQueue . FLAG_EXCLUDE_NONE ;
- if ( Intent . ACTION_CLOSE_SYSTEM_DIALOGS . equals ( action ) ) {
- String re... | Removed useless test |
<nb> public class InputVariableDeclarationUsageDistanceCheck {
public void testIssue32_7 ( ) {
String line = STRING0 ;
- writer . write ( line ) ;
+ otherWriter . write ( line ) ;
line . charAt ( NUMBER0 ) ;
builder . append ( line ) ;
test ( line , line , line ) ;
<nb> public class InputVariableDecla... | Fix compilation error for Windows environment |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public interface River extends RiverComponent {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
void start ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
void close ( ) ;
} | Added docs for River start and close methods |
<nb> public class AssertionTest {
@ test
public void oneDimensionalPrimitiveArraysAreEqual ( ) {
+ assertArrayEquals ( new boolean [ ] { true } , new boolean [ ] { true } ) ;
assertArrayEquals ( new byte [ ] { NUMBER0 } , new byte [ ] { NUMBER0 } ) ;
assertArrayEquals ( new char [ ] { NUMBER0 } , new char [... | Added two simple tests for boolean assertArrayEquals |
<nb> public class OreDictionary
replacements . put ( new ItemStack ( Items . diamond ) , STRING0 ) ;
replacements . put ( new ItemStack ( Items . emerald ) , STRING1 ) ;
replacements . put ( new ItemStack ( Items . redstone ) , STRING2 ) ;
- replacements . put ( new ItemStack ( Items . glowstone ) , STRING3 ) ;... | Fixed Items glowstone to Items glowstone_dust |
<nb> public class NewThreadScheduler extends AbstractScheduler {
public void run ( ) {
discardableAction . call ( ) ;
}
- } ) ;
+ } , STRING0 ) ;
t . start ( ) ; | Name the NewThreadScheduler threads |
<nb> public class ExpressionCodegen extends JetVisitor < StackValue , StackValue > {
throw e ;
}
catch ( Throwable error ) {
- throw new CompilationException ( error . getMessage ( ) , error , selector ) ;
+ String message = error . getMessage ( ) ;
+ throw new CompilationException ( message != null ? messa... | fix one more error in error diagnostics |
<nb> package NAMESPACE ;
COMMENT
COMMENT
public interface InternalTaskSkippedFailureResult extends InternalTaskSkippedResult , InternalTaskFailureResult {
- String getSkipMessage ( ) ;
}
<nb> package NAMESPACE ;
COMMENT
COMMENT
public interface InternalTaskSkippedSuccessResult extends InternalTaskSkip... | Remove redundant declaration of getSkipMessage that is already defined in the super interface |
<nb> public class TypeGetter {
case ATOM_ROOT :
feed . setType ( Feed . TYPE_ATOM1 ) ;
Log . d ( TAG , STRING0 ) ;
+
+ String strLang = xpp . getAttributeValue ( STRING1 , STRING2 ) ;
+ if ( strLang != null ) {
+ feed . setLanguage ( strLang ) ;
+ }
+
return Type . ATOM ;
case RSS_ROOT :
String ... | Add Atom lang support |
<nb> public class BarChartActivity extends DemoBase implements OnSeekBarChangeListene
tvX . setText ( STRING0 + ( mSeekBarX . getProgress ( ) + NUMBER0 ) ) ;
tvY . setText ( STRING0 + ( mSeekBarY . getProgress ( ) ) ) ;
- setData ( mSeekBarX . getProgress ( ) , mSeekBarY . getProgress ( ) ) ;
+ setData ( mSee... | Missing one xAxis entry |
<nb> public abstract class AbstractXMPPConnection implements XMPPConnection {
COMMENT
public synchronized void disconnect ( Presence unavailablePresence ) throws NotConnectedException {
if ( ! isConnected ( ) ) {
- return ;
+ throw new NotConnectedException ( ) ;
}
sendPacket ( unavailablePresence ) ; | Throw a NotConnectedException on disconnect |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ method ( selector = STRING0 )
public NSObject getPromisedItemResourceValue ( NSURLProperty key ) {
NSObject . NSObjectPtr ptr = new NSObject . NSObjectPtr ( ) ;
NSError . NSErrorPtr error = new NSError . NSErrorPtr ( ) ; SINGLE | Remove unnecessary method annotation |
<nb> public class TermAppender
if ( ByteOrder . nativeOrder ( ) == LITTLE_ENDIAN )
{
lengthVersionFlagsType = defaultHeaderVersionFlagsType | ( ( - frameLength ) & NUMBER0 ) ;
- termOffsetAndSessionId = defaultHeaderSessionId | ( frameOffset & NUMBER0 ) ;
+ termOffsetAndSessionId = defaultHeaderSessionId | fr... | Save a few cycles applying the default header during publication |
<nb> public class MethodUtils {
return statements . length == NUMBER0 ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static boolean isTrivial ( PsiMethod method , boolean throwIsTrivial ) {
return isTrivial ( method . getBody ( ) , throwIsTrivial ) ;
} | add method documentation |
<nb> public class ReplacerImpl {
) {
firstToDelete = prevSibling ;
}
+ } else if ( element instanceof PsiParameter &&
+ prevSibling instanceof PsiJavaToken &&
+ ( ( PsiJavaToken ) prevSibling ) . getTokenType ( ) == ElementType . COMMA
+ ) {
+ firstToDelete = prevSibling ;
}
element . getParent ( ... | fixed bug with renaming parameter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class OrganizationJob
TableMetadata metadata = getTableMetadata ( tableId ) ;
List < ShardInfo > newShards = performCompaction ( transactionId , bucketNumb... | Fix NPE in OrganizationJob |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class ManagedStreamCachingStrategyTest extends ManagementTestSupport {
assertEquals ( Boolean . TRUE , enab... | Fixed test on windows |
<nb> public class ClassLinkMetaData implements Serializable , Attachable < ClassLinkMeta
}
}
if ( candidates . isEmpty ( ) ) {
- throw new RuntimeException ( String . format ( STRING0 , method , className ) ) ;
+ String message = String . format ( STRING0 , method , className ) ;
+ message += STRING1
+ + ... | Added some more explanation to the error message that docbook generators produce on the occasion of broken api links |
<nb> public class MemberImpl implements Member , java . io . Externalizable {
COMMENT
public static final boolean DO_DNS_LOOKUPS = Boolean . parseBoolean ( System . getProperty ( STRING0 , STRING1 ) ) ;
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static final transient String TCP_LISTEN_PORT =... | Remove unused code |
<nb> public class ContactRssImpl
{
File fileLocation = new File ( feedLocation . getProtocol ( ) + STRING0
+ feedLocation . getHost ( ) + STRING1 ) ;
-
- SINGLE
- SINGLE
- if ( ! fileLocation . exists ( ) )
- {
- return getDefaultRssIcon ( ) ;
- }
-
- ICOFile favicon = new ICOFile ( fileLocation... | Committing yet another fix from Sympho |
<nb> public class TestEncodingDecoding extends TomcatBaseTest {
Assert . assertEquals ( MESSAGE_ONE ,
( ( MsgString ) client . received . peek ( ) ) . getData ( ) ) ;
session . close ( ) ;
- Thread . sleep ( NUMBER0 ) ;
+
+ SINGLE
+ i = NUMBER1 ;
+ while ( i < NUMBER2 ) {
+ if ( Server . isLifeCycleEv... | Reduce a potential timing sensitivity |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExtensionActiveScan extends ExtensionAdaptor implements
}
private void addAlertToDisplay ( final Alert alert , final Hist... | Corrected bad test for running as a daemon |
<nb> public class CdiCamelContext extends DefaultCamelContext {
try {
super . start ( ) ;
} catch ( Exception e ) {
- ObjectHelper . wrapRuntimeCamelException ( e ) ;
+ throw ObjectHelper . wrapRuntimeCamelException ( e ) ;
}
}
<nb> public class CdiCamelContext extends DefaultCamelContext {
try {
... | CamelCdiContext should rethrow exception on start stop if any was thrown |
<nb> public class MatchChunk extends SqlChunk {
}
int eq = expression . indexOf ( STRING0 ) ;
if ( eq == - NUMBER0 ) {
- throw new DbSqlBuilderException ( STRING1 ) ;
+ throw new DbSqlBuilderException ( STRING2 ) ;
}
tableRef = expression . substring ( NUMBER1 , eq ) . trim ( ) ;
objectRef = expression ... | added special case for ignoring blank strings |
<nb> public class ExecUtil {
resultHandler . waitFor ( ) ;
int exitCode = resultHandler . getExitValue ( ) ;
retval = StringUtils . chomp ( stdout . toString ( ) ) ;
- logger . debug ( STRING0 , exitCode , retval ) ;
+ if ( resultHandler . getException ( ) != null ) {
+ logger . warn ( resultHandler . getEx... | Log execution failures in ExecUtil |
<nb> import NAMESPACE ;
COMMENT
public class SectionDrawerItem implements IDrawerItem , Nameable < SectionDrawerItem > , Tagable < SectionDrawerItem > , Typefaceable < SectionDrawerItem > {
+ private int identifier = - NUMBER0 ;
+
private String name ;
private int nameRes = - NUMBER0 ;
private boolean d... | add withIdentifier to SectionDrawerItem |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class ResultHandler implements Button . OnClickListenear {
+ final class ResultHandler implements Button . OnClickListener {
private static final String TAG = STRING0 ; | Fix typo introduced at the last second before commit |
<nb> public final class AnalyzerFacadeForJS {
public static final List < ImportPath > DEFAULT_IMPORTS = ImmutableList . of (
new ImportPath ( STRING0 ) ,
new ImportPath ( STRING1 ) ,
- new ImportPath ( STRING2 ) ,
new ImportPath ( STRING3 ) ) ;
private AnalyzerFacadeForJS ( ) { | Delete default import jet |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class DefaultExecController implements ExecController {
<nb> public class DefaultExecController implements ExecController {
}
public void shutdown ( ) throws Exception {
- eventLoopGroup ... | Shutdown the event loop immediately |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removing redundant imports |
<nb> public class WXPageActivity extends WXBaseActivity implements IWXRenderListener ,
Activity ctx = WXPageActivity . this ;
Rect outRect = new Rect ( ) ;
ctx . getWindow ( ) . getDecorView ( ) . getWindowVisibleDisplayFrame ( outRect ) ;
+ mConfigMap . put ( STRING0 , mUri . toString ( ) ) ;
String path = m... | android update WXPageActivity java |
<nb> public abstract class CameraCaptureSession implements AutoCloseable {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify ordering between onCaptureStart and onCaptureProgressed |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
@ suppresswarnings ( { STRING0 } )
abstract class AbstractMigrationLoadingMojo extends AbstractFlywayMojo {
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added default phase pre integration test to clean and migrate mojo |
<nb> public class NioSelectorPool {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- public int... | Remove unused method |
<nb> public class GroovyDslFileIndex extends ScalarIndexExtension < String > {
SINGLE
vfile . putUserData ( CACHED_EXECUTOR , Pair . create ( executor , stamp ) ) ;
if ( executor != null ) {
- activate ( vfile ) ;
+ setStatusAndError ( vfile , Status . ACTIVE , null ) ;
}
}
} | don t increment psi mod count when parsing groovy scripts in background |
<nb> public class OverviewFragment extends SherlockFragment {
@ override
protected void onPostExecute ( Integer result ) {
- if ( result == NUMBER0 ) {
+ if ( result == NUMBER0 && isAdded ( ) ) {
activity . invalidateOptionsMenu ( ) ;
fillEpisodeData ( ) ;
} | Potential fix for market reported crash |
<nb> public class SetNullableStatement implements SqlStatement {
} else if ( database instanceof DerbyDatabase || database instanceof CacheDatabase ) {
return STRING0 + database . escapeTableName ( getSchemaName ( ) , getTableName ( ) ) + STRING1 + getColumnName ( ) + nullableString ;
} else if ( database instanc... | HSQL doesn t actually need column type I guess |
<nb> public final class Histogram
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed Javadoc for mean calculation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class Hashing {
@ override
HashCode makeHash ( Hasher [ ] hashers ) {
- SINGLE
byte [ ] bytes = new byte [ bits / NUMBER0 ] ;
- ByteBu... | Remove ByteBuffer usage in ConcatenatedHashFunction makeHash method and use HashCode writeBytesTo instead |
<nb> public class PublishSubscribeCommandsTest extends JedisCommandTestBase {
pubsub . unsubscribe ( ) ;
}
- SINGLE
- @ test
+ @ test ( expected = JedisConnectionException . class )
public void handleClientOutputBufferLimitForSubscribeTooSlow ( ) throws InterruptedException {
final Thread t = new Thread... | test expects JedisConnectionException |
<nb> public class GlobalStartupAction extends SimpleAction {
SINGLE
- String tmpDir = SystemProperties . get ( SystemProperties . TMP_DIR ) ;
+ try {
+ String tmpDir = SystemProperties . get ( SystemProperties . TMP_DIR ) ;
- Environment . setValue ( Environment . PROP_BASE_FILE_DIR , tmpDir ) ;
+ Env... | catch JAMWiki Throwable because of exception in cinit block can t catch Exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MultiSelectCellTable < T > extends CellTable < T >
modifiers == KeyboardShortcut . SHIFT ) ;
break ;
+ case STRING0 :
+ if ( modifiers =... | Cmd A selects all rows in changelist table |
<nb> public class DexBackedDexFile extends BaseDexBuffer implements DexFile {
return classCount ;
}
+ public int getStringCount ( ) {
+ return stringCount ;
+ }
+
+ public int getTypeCount ( ) {
+ return typeCount ;
+ }
+
+ public int getProtoCount ( ) {
+ return protoCount ;
+ }
+
+ pub... | Expose the various fixed size item counts in DexBackedDexFile |
<nb> public class FormattingDocumentModelImpl implements FormattingDocumentModel {
if ( PsiDocumentManager . getInstance ( file . getProject ( ) ) . isUncommited ( document ) ) {
LOG . error ( STRING0 ) ;
}
- if ( ! file . textMatches ( document . getImmutableCharSequence ( ) ) ) {
- LOG . error ( STRING1 + f... | compare file and document text length instead of entire text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CrossVersionResultsStore implements DataReporter < CrossVersionPerfor
try {
return db . withConnection ( new ConnectionActi... | Remove unused import |
<nb> public class EditorOptionsPanel {
myShowLSTInGutterCheckBox . setSelected ( vcsSettings . SHOW_LST_GUTTER_MARKERS ) ;
myShowWhitespacesModificationsInLSTGutterCheckBox . setSelected ( vcsSettings . SHOW_WHITESPACES_IN_LST ) ;
+ myShowWhitespacesModificationsInLSTGutterCheckBox . setEnabled ( myShowLSTInGut... | update checkbox state on reset |
<nb> public class GitUtil {
SINGLE
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ nullable
public static VirtualFile findGitDir ( @ notnull VirtualFile rootDir ) {
VirtualFile dotGit = rootDir . findChild ( DOT_GIT ) ; | add a javadoc |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ ignore
@ runwith ( HibernateTestRunner . class )
@ hibernateconfig ( STRING0 )
public class MySQLStandardTest extends AbstractHibern... | ignored MySQL tests |
<nb> public interface Issue extends Serializable {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
boolean isNew ( ) ;
} | Add missing since |
<nb>
COMMENT
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 ;
<nb> ... | add double check on immutable schema creation |
<nb> public class ReflectionUtils {
if ( matchInfo . kind == ArgsMatchKind . EXACT ) {
return new DiscoveredMethod ( method , null ) ;
} else if ( matchInfo . kind == ArgsMatchKind . CLOSE ) {
- if ( matchRequiringConversion != null ) {
- int stop = NUMBER0 ;
- }
closeMatch = method ;
} else if ( matchI... | Removed unused code |
<nb> public final class OAuth20ProfileController extends AbstractController {
}
}
LOGGER . debug ( STRING0 , OAuthConstants . ACCESS_TOKEN , accessToken ) ;
- final JsonGenerator jsonGenerator = this . jsonFactory . createJsonGenerator ( response . getWriter ( ) ) ;
- try {
+
+ try ( final JsonGenerator j... | using auto resource management |
<nb> public class MasterActor extends org . deeplearning4j . iterativereduce . actor . core . a
else if ( stateTracker . currentJobs ( ) . isEmpty ( ) ) {
isDone = true ;
+ stateTracker . finish ( ) ;
log . info ( STRING0 ) ;
} | master now updates state tracker when done training |
<nb> public class MethodInvokerRewriter {
SINGLE
if ( canCache && classAdaptor . rewroteReflection && ! classAdaptor . rewroteOtherKindOfOperation ) {
if ( GlobalConfiguration . isCaching ) {
- cacheOnDisk ( classAdaptor . slashedclassname , bytes , bs ) ;
+ SINGLE
+ if ( ! classAdaptor . slashedclassname .... | Do not cache proxy classes |
<nb> public final class ReengagementService {
private static final int REQUEST_CODE = NUMBER0 ;
- private static final int DAYS_INTERVAL = NUMBER1 ;
public static final String PREF_REENGAGEMENT_COUNT = STRING0 ; SINGLE
<nb> public final class ReengagementService {
int reengagementReminders = Preferenc... | Adjust reengagement reminder intervals |
<nb> public abstract class VertexBufferObject implements IVertexBufferObject {
GLES20 . glDrawArrays ( pPrimitiveType , pOffset , pCount ) ;
}
+ @ override
+ protected void finalize ( ) throws Throwable {
+ super . finalize ( ) ;
+
+ if ( SystemUtils . isAndroidVersion ( Build . VERSION_CODES . HONEYCOM... | Fixed finalization of direct ByteBuffer for HoneyComb devices |
<nb> public class DisruptorTest
workHandler2 . processEvent ( ) ;
}
- private TestWorkHandler createTestWorkHandler ( )
- {
- final TestWorkHandler testWorkHandler = new TestWorkHandler ( ) ;
- testWorkHandlers . add ( testWorkHandler ) ;
- return testWorkHandler ;
- }
-
@ test
public void shoul... | Move private helper method to section with private methods |
<nb> public class ClickListener extends InputListener {
return tapCount ;
}
+ public void setTapCount ( int tapCount ) {
+ this . tapCount = tapCount ;
+ }
+
public float getTouchDownX ( ) {
return touchDownX ;
} | ClickListener added setTapCount |
<nb> public abstract class Ordering < T > implements Comparator < T > {
COMMENT
COMMENT
public < E extends T > List < E > sortedCopy ( Iterable < E > iterable ) {
- List < E > list = Lists . newArrayList ( iterable ) ;
- Collections . sort ( list , this ) ;
- return list ;
+ @ suppresswarnings ( STRING0 )... | Optimize Ordering sortedCopy eliminating one gratuitous copy |
<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 ;
import static NAMESPAC... | Add a check for no nodes available |
<nb> public class SourcePrinter extends VisitorAdapter {
}
}
+ public void visitLiteralNull ( GroovySourceAST t , int visit ) {
+ if ( visit == OPENING_VISIT ) {
+ print ( t , visit , t . getText ( ) ) ;
+ }
+ }
+
public void visitLiteralPrivate ( GroovySourceAST t , int visit ) {
if ( visit == OP... | added code to print null literal |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Dutch extends Language {
private Tagger tagger = new DutchTagger ( ) ;
private SentenceTokenizer sentenceTokenizer = ... | Add Dutch syntesizer to the proper language class |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public interface Transformer < R , I > {
+ public interface Transformer < OUT , IN > {
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- R transform ( ... | Rename type tokens for clarity |
<nb> static class SubVector extends APersistentVector {
}
public IPersistentVector assocN ( int i , Object val ) {
- if ( start + i >= end )
+ if ( start + i > end )
throw new IndexOutOfBoundsException ( ) ;
+ else if ( start + i == end )
+ return cons ( val ) ;
return new SubVector ( _meta , v . asso... | fixed subvec assoc at end |
<nb> public final class SocksServerConnectHandler extends SimpleChannelInboundHandler
@ override
public void channelRead0 ( final ChannelHandlerContext ctx , final SocksCmdRequest request ) throws Exception {
- Promise promise = ctx . executor ( ) . newPromise ( ) ;
+ Promise < Channel > promise = ctx . execu... | Fix inspector warnings |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unnecessary imports |
<nb> public class CommentsActivity extends WPActionBarActivity
ft . commitAllowingStateLoss ( ) ;
mMenuDrawer . setDrawerIndicatorEnabled ( false ) ;
} else {
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
+ if ( hasReaderFragment ( ) )
+ fm . popBackStackImmediate ( ) ;
detailFragment . setComment ( WordPress... | Fixed bug that caused comment detail not to appear when comment selected and reader detail is showing |
<nb> public class SearchPlugin implements Component , Plugin , PropertyEventListener {
public SearchPlugin ( ) {
serviceName = JiveGlobals . getProperty ( STRING0 , STRING1 ) ;
- serviceEnabled = JiveGlobals . getBooleanProperty ( STRING2 , true ) ;
+ serviceEnabled = JiveGlobals . getBooleanProperty ( STRING... | fixed property name |
<nb> public final class GitRepositoryManager extends AbstractProjectComponent impleme
@ override
public void initComponent ( ) {
- myProject . getMessageBus ( ) . connect ( this ) . subscribe ( ProjectLevelVcsManager . VCS_CONFIGURATION_CHANGED , this ) ;
+ myProject . getMessageBus ( ) . connect ( ) . subscr... | connect MessageBusConnection to this Disposable |
<nb> public class ThemePreviewFragment extends Fragment {
mWebView . getSettings ( ) . setCacheMode ( WebSettings . LOAD_NO_CACHE ) ;
mWebView . getSettings ( ) . setSavePassword ( false ) ;
+ mWebView . getSettings ( ) . setJavaScriptEnabled ( true ) ;
loadAuthenticatedUrl ( previewURL ) ; | Theme Preview WebView needs js enabled |
<nb> public class HttpRequest {
COMMENT
public HttpRequest part ( final String name , final String filename ,
final Number part ) throws HttpRequestException {
- try {
- startPart ( ) ;
- writePartHeader ( name , filename ) ;
- output . write ( part . toString ( ) ) ;
- } catch ( IOException e ) {
- t... | Remove duplication when sending a part with a number value |
<nb> public class OkHttpPostRequest extends OkHttpRequest
this . content = content ;
this . bytes = bytes ;
this . file = file ;
- validParams ( ) ;
-
}
protected void validParams ( )
<nb> public class OkHttpPostRequest extends OkHttpRequest
@ override
protected RequestBody buildRequestBody ( )
... | fix bug for upload npe |
<nb> public class UIConfigMenuControls extends UIDisplayWindow {
InputConfig . getInstance ( ) . setKeyAttack ( key ) ;
else if ( button == ConsoleButton )
InputConfig . getInstance ( ) . setKeyConsole ( key ) ;
+ else if ( button == CrouchButton )
+ InputConfig . getInstance ( ) . setKeyCrouch ( key ) ;
el... | Fixed crouch button |
<nb> public enum BCTransportEventDist {
INSTANCE ;
@ subscribeevent
- public static void onWorldTick ( TickEvent . WorldTickEvent event ) {
+ public void onWorldTick ( TickEvent . WorldTickEvent event ) {
if ( ! event . world . isRemote && event . world . getMinecraftServer ( ) != null ) {
WorldSavedDataW... | Fix BCTransportEventDist not working |
<nb> public final class BlockmaniaApplet extends Applet {
try {
Display . setParent ( null ) ;
Display . setDisplayMode ( new org . lwjgl . opengl . DisplayMode ( NUMBER0 , NUMBER1 ) ) ;
+ Display . setTitle ( Configuration . GAME_TITLE ) ;
Display . create ( ) ;
_blockmania = Blockmania . getInstance ( )... | Adds game title to applet |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class MetricRegistry {
+ public class MetricRegistry implements MetricSet {
COMMENT
COMMENT
COMMENT
<nb> public class MetricRegistry {
}
}
+ @ override
+ public Map < String , Metric > getMetrics ( ) {
+ return metrics ;
+ }
+
... | Make MetricRegistry a MetricSet |
<nb> public class MainController implements Choreographer . FrameCallback {
mBubbleFlowDraggable . setTouchInterceptor ( mBubbleFlowTouchInterceptor ) ;
mBubbleFlowDraggable . collapse ( Constant . BUBBLE_ANIM_TIME , mOnBubbleFlowCollapseFinishedListener ) ;
mBubbleDraggable . setVisibility ( View . VISIBLE ) ;
... | Fixed frozen screen on long click on Nougat |
<nb> public class Credentials {
public static final String INSTALL_ACTION = STRING0 ;
+ public static final String UNLOCK_ACTION = STRING1 ;
+
COMMENT
public static final String CA_CERTIFICATE = STRING2 ;
<nb> public class Credentials {
public void unlock ( Context context ) {
try {
- Intent i... | Expose Credentials UNLOCK_ACTION for callers that want to use startActivityForResult |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public class ShaderNodeDefinitionKey extends AssetKey < List < ShaderNodeDefinition > > { | remove incorrect attribution |
<nb> public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > {
COMMENT
public abstract View getContentView ( int position , View convertView , ViewGroup parent ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean isExpanded ( int posit... | Add method to let to know if a position is expanded |
<nb> public abstract class AbstractRoutine < T > extends AbstractQueryPart implements Ro
}
@ override
- public final void bind ( BindContext context ) {
+ public void accept ( Context < ? > ctx ) {
+ if ( ctx instanceof RenderContext )
+ toSQL0 ( ( RenderContext ) ctx ) ;
+ else
+ bind0 ( ( BindContex... | Fixed some warnings |
<nb> public class AtmosphereFramework implements ServletContextProvider {
}
} ) ;
- for ( File file : jars ) {
- p . scan ( file ) ;
+ if ( jars != null ) {
+ for ( File file : jars ) {
+ p . scan ( file ) ;
+ }
}
}
} catch ( Throwable e ) { | Fix possible NPE |
<nb> public class CodeCompletionHandlerBase implements CodeInsightActionHandler {
if ( CompletionService . getCompletionService ( ) . getCurrentCompletion ( ) == null ) {
indicator . liveAfterDeath ( null ) ;
} else {
- LOG . assertTrue ( indicator . isZombie ( ) , indicator ) ;
+ SINGLE
}
}
} | comment out the assertion |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class PipeItemsEmerald extends PipeItemsWood implements IInventory , ISpecialInventory , IClientState {
+ public class PipeItemsEmerald extends PipeItemsWood implements ISpecialInventory , IClientState {
private SimpleInventory filters... | Close the GUI when pipes destroyed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.