diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb>
package NAMESPACE ;
public class Constants {
+ public static final String WEB_CLIENT_ID = STRING0 ;
+
+ public static final String ANDROID_CLIENT_ID = STRING1 ;
+
+ public static final String ANDROID_AUDIENCE = WEB_CLIENT_ID ;
+
public static final String EMAIL_SCOPE = STRING2 ;
}
<nb> impo... | Set Android debug apps client ids audience |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class Ec2FailureDetectorTest {
private void test ( Store < String , String > store ) {
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
try {
- store . get ( MetadataSt... | Now issuing gets across different keys to ensure we hit all the nodes |
<nb> public class ResourceTest
{
assumeTrue ( OS . IS_WINDOWS ) ;
- String uncPath = STRING0 + __userURL . toURI ( ) . getPath ( ) . replace ( STRING1 , STRING2 ) + STRING3 ;
+ String uncPath = STRING0 + __userURL . toURI ( ) . getPath ( ) . replace ( STRING1 , STRING2 ) . replace ( STRING4 , STRING5 ) + STRI... | Fixed UNC path resource test on Windows |
<nb> public class JetHighlightingColors {
SyntaxHighlighterColors . KEYWORD . getDefaultAttributes ( )
) ;
- public static final TextAttributesKey SOFT_KEYWORD ;
-
- static {
- TextAttributes attributes = SyntaxHighlighterColors . KEYWORD . getDefaultAttributes ( ) . clone ( ) ;
- attributes . setFontTy... | Made soft keywords bold by default |
<nb> public final class H2ONode extends Iced < H2ONode > implements Comparable {
}
sendBuffer ( ) ; SINGLE
} catch ( InterruptedException e ) { COMMENT }
- }
+ }
} catch ( Throwable t ) { throw Log . throwErr ( t ) ; }
+ if ( _chan != null ) {
+ try { _chan . close ( ) ; } catch ( IOException e ) { }
... | Close the channel when exiting the udp tcp send thread |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | invoke queryContentProviders will produce crash |
<nb> public class KernelAdapter extends Thread
SINGLE
log . log ( Level . SEVERE , STRING0 + p + STRING1 + context , e ) ;
- SINGLE
- System . out . println ( STRING2 + p . isConnected ( ) ) ;
- SINGLE
- p . close ( ) ;
+ if ( p . isConnected ( ) ) {
+ SINGLE
+ p . close ( ) ;
+ }
}
protecte... | Removing a println I had for testing something else |
<nb> class CheckGlobalNames implements CompilerPass {
static final DiagnosticType NAME_DEFINED_LATE_WARNING =
DiagnosticType . warning (
STRING0 ,
- STRING1 ) ;
+ STRING2 ) ;
static final DiagnosticType STRICT_MODULE_DEP_QNAME =
DiagnosticType . disabled (
<nb> class CheckGlobalNames implements Compil... | Improve the error message for the new global name |
<nb> public abstract class ResourceLoader {
protected abstract Plural getPlural ( ResName resName , int quantity , String qualifiers ) ;
public Plural getPlural ( int resId , int quantity , String qualifiers ) {
- return getPlural ( getResourceIndex ( ) . getResName ( resId ) , quantity , qualifiers ) ;
+ Res... | Address code review comments added null check to ResourceLoader getPlurals |
<nb> public class LegacyRequestMapper {
SINGLE
{
- int orientation = characteristics . get ( CameraCharacteristics . SENSOR_ORIENTATION ) ;
- params . setRotation ( ParamsUtils . getOrDefault ( request , JPEG_ORIENTATION , orientation ) ) ;
+ Integer orientation = request . get ( CaptureRequest . JPEG_ORIEN... | Fix JPEG orientation set by LEGACY request |
<nb> public class HotSpotLogParser implements ILogParser
public void reset ( )
{
getModel ( ) . reset ( ) ;
+
+ hasTraceClassLoad = false ;
+
+ parseState = ParseState . READY ;
+
+ nativeCodeBuilder = new StringBuilder ( ) ;
+
+ reading = false ;
+
+ currentMember = null ;
SINGLE
logLis... | Properly reset parser state between parses |
<nb> public abstract class ContentProvider implements ComponentCallbacks {
COMMENT
public AssetFileDescriptor openTypedAssetFile ( Uri uri , String mimeTypeFilter , Bundle opts )
throws FileNotFoundException {
+ if ( STRING0 . equals ( mimeTypeFilter ) ) {
+ SINGLE
+ return openAssetFile ( uri , STRING1 ) ;... | Fix bug with calls to the typeless open API |
<nb> public class DeepLearningModel extends Model implements Comparable < DeepLearningM
final Key job = null ;
final DeepLearningModel cp = this ;
DeepLearningModel bestModel = new DeepLearningModel ( cp , bestModelKey , job , model_info ( ) . data_info ( ) ) ;
- bestModel . delete_and_lock ( job ) ;
- bestMo... | Use DKV put to store the best model instead of delete_and_lock unlock |
<nb> public class Base {
COMMENT
+ SINGLE
private String getDefaultModeIdentifier ( ) {
SINGLE
return STRING0 ;
}
+ SINGLE
private void buildCoreModes ( ) {
Mode javaMode =
ModeContribution . load ( this , getContentFile ( STRING1 ) , SINGLE | make the default mode into JavaMode |
<nb> public abstract class AbstractTypeDescriptionTest extends AbstractGenericTypeDes
}
@ test
+ public void testSourceName ( ) throws Exception {
+ for ( Class < ? > type : TYPES ) {
+ if ( type . isArray ( ) ) {
+ assertThat ( describe ( type ) . getSourceCodeName ( ) , is ( type . getComponentType ( ) ... | Added test for source code name of type descriptions |
<nb> public class MarkGroup {
@ notnull private List < Jump > jumps = new ArrayList < Jump > ( ) ;
private int jumpSpot = - NUMBER0 ;
- private static int SAVE_MARK_COUNT = NUMBER1 ;
- private static int SAVE_JUMP_COUNT = NUMBER2 ;
+ private static final int SAVE_MARK_COUNT = NUMBER1 ;
+ private static fi... | Made constants final |
<nb> public class PrivacyService {
if ( mHandler == null )
return ;
+ SINGLE
if ( hook != null && ! hook . canOnDemand ( ) )
return ;
- if ( ! XActivityManagerService . canOnDemand ( ) )
- return ;
-
SINGLE
if ( ! getSettingBool ( NUMBER0 , PrivacyManager . cSettingOnDemand , true ) )
return ;... | Delay checking activity manager state until lock acquired |
<nb> public class BuildDashboardGenerator {
link ( ) . rel ( STRING0 ) . type ( STRING1 ) . href ( STRING2 ) . end ( ) ;
link ( ) . rel ( STRING0 ) . type ( STRING1 ) . href ( STRING3 ) . end ( ) ;
title ( ) . text ( STRING4 ) . end ( ) ;
- end ( NUMBER0 ) ;
+ end ( ) ;
body ( ) ;
div ( ) . id ( STRING5 )... | Fixed end tags in build dashboard report |
<nb> public abstract class PanelView extends FrameLayout {
} ;
protected void onExpandingFinished ( ) {
- endClosing ( ) ;
mBar . onExpandingFinished ( ) ;
}
<nb> public abstract class PanelView extends FrameLayout {
}
protected final void notifyExpandingFinished ( ) {
+ endClosing ( ) ;
if ( ... | Fixed a bug where the panel could get stuck closing |
<nb> public abstract class ParentRunner < T > extends Runner implements Filterable ,
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected List < ClassRule > classRules ( ) {
final List < ClassRule > results = new ArrayList < ClassRule > ( ) ;
<nb> public abstract class ParentRunner ... | Clarified Javadoc and exception message finalized parameter |
<nb> public class FileSystemCompiler {
}
if ( file . isFile ( ) ) {
file . delete ( ) ;
- System . out . println ( STRING0 + file . getPath ( ) ) ;
} else if ( file . isDirectory ( ) ) {
File [ ] files = file . listFiles ( ) ;
for ( int i = NUMBER0 ; i < files . length ; i ++ ) {
deleteRecursive ( files... | reduce system out usage |
<nb> public class OGLESShaderRenderer implements Renderer {
SINGLE
if ( attachmentSlot == - NUMBER0 ) {
return GLES20 . GL_DEPTH_ATTACHMENT ;
- } else if ( attachmentSlot < NUMBER1 || attachmentSlot >= NUMBER2 ) {
- throw new UnsupportedOperationException ( STRING0 + attachmentSlot ) ;
+ } else if ( attachm... | Throw UnsupportedOperationException if multiple FBO color attachments are used on Android only a single attachment GL_COLOR_ATTACHMENT0 is supported |
<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable {
COMMENT
LIGHTNING ,
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ SUICIDE ,
+ COMMENT
COMMENT
COMMENT
COMMENT | Added DamageCause SUICIDE |
<nb> public class FileDisplayActivity extends HookActivity
mProgressBar . setIndeterminate ( mSyncInProgress ) ;
SINGLE
-
- initDrawer ( ) ;
setBackgroundText ( ) ; | remove two times init of the drawer |
<nb> public final class Constant {
public static final String ALPHA_VERSION = STRING0 ;
public static final String BETA_VERSION = STRING1 ;
SINGLE
- public static final String PROGRAM_VERSION = STRING2 ;
+ public static final String PROGRAM_VERSION = STRING3 ;
SINGLE
- private static final long VERSION_... | Updated the version information as agreed with Simon |
<nb> import NAMESPACE ;
+ STRING0
+ STRING1 , PlayerActivity . TYPE_DASH ) ,
new Sample ( STRING2 , STRING3 ,
- STRING4
+ STRING5
+ STRING6
+ STRING7
+ STRING8 , PlayerActivity . TYPE_DASH ) , | Fix test URL |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CrawlerSessionManagerValve extends ValveBase {
sessionInfo = uaIpSessionInfo . get ( clientIp ) ;
if ( sessionInfo != null ) {
request . setRequestedSessionId ... | Test a quick hack to get this working with Jira |
<nb> public abstract class AbstractInterceptorDrivenBeanDefinitionDecorator implement
SINGLE
proxyDefinition . setBeanClass ( ProxyFactoryBean . class ) ;
proxyDefinition . setScope ( targetDefinition . getScope ( ) ) ;
+ proxyDefinition . setLazyInit ( targetDefinition . isLazyInit ( ) ) ;
SINGLE
proxyDefi... | AbstractInterceptorDrivenBeanDefinitionDecorator preserves lazy init flag as well |
<nb> class CallbackReference extends WeakReference {
if ( ref != null ) {
cb = ( Callback ) ref . get ( ) ;
if ( cb != null && ! type . isAssignableFrom ( cb . getClass ( ) ) ) {
- throw new IllegalStateException ( STRING0 + p + STRING1 + cb ) ;
+ throw new IllegalStateException ( STRING0 + p + STRING1 + cb
... | Provide more help when native FPs are reused for different callbacks |
<nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen
@ nonnull int [ ] grantResults ) {
switch ( requestCode ) {
case EditPostSettingsFragment . PERMISSION_REQUEST_LOCATION :
- if ( grantResults . length == NUMBER0 && grantResults [ NUMBER1 ] == PackageManager . PERMISSION_GRANT... | fix location permission request |
<nb> public class IQRouter extends BasicModule {
iqResultListener . receivedAnswer ( packet ) ;
}
catch ( Exception e ) {
- Log . error ( STRING0 , e ) ;
+ Log . error (
+ STRING1
+ + packet . toXML ( ) , e ) ;
}
return ;
} | Log xml in case of processing iq answer error |
<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable
if ( LookupActionHandler . DEBUG ) {
System . out . println ( STRING0 ) ;
System . out . println ( STRING1 + myChangeGuard ) ;
+ System . out . println ( STRING2 + myDisposed ) ;
}
if ( ! myChangeGuard ) {
hide ( ) ; | debugging the test |
<nb> public class PsiExpressionStatementImpl extends CompositePsiElement implements P
public String toString ( ) {
return STRING0 ;
}
+
+ public void deleteChildInternal ( ASTNode child ) {
+ if ( getChildRole ( child ) == ChildRole . EXPRESSION ) {
+ getTreeParent ( ) . deleteChildInternal ( this ) ;
+... | PsiExpressionStatement getExpression must not return null |
<nb> public class GoDocumentationProvider extends AbstractDocumentationProvider {
if ( ! comments . isEmpty ( ) ) return getCommentText ( comments ) ;
}
else if ( element instanceof PsiDirectory ) {
- PsiFile doc = ( ( PsiDirectory ) element ) . findFile ( STRING0 ) ;
- if ( doc instanceof GoFile ) {
- SING... | modify todo comment |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
if ( mCurClient == null || client == null
|| mCurClient . client . asBinder ( ) != client . asBinder ( ) ) {
Slog . w ( TAG , STRING0 + client ) ;
+ return ;
}
mHandler . sendEmptyMessage ( MSG_SHOW_IM_PICKER ) ; | Fix ignore case in showInputMethodPickerFromClient |
<nb> abstract public class AST extends Iced {
} else if ( this instanceof ASTStatement ) {
if ( this instanceof ASTIf ) { this . exec ( e ) ; }
- if ( this instanceof ASTElse ) { this . exec ( e ) ; }
- if ( this instanceof ASTFor ) { throw H2O . unimpl ( STRING0 ) ; }
- if ( this instanceof ASTReturn ) { t... | exec a general ASTStatement |
<nb> public class ShadowIntentFilter {
@ implementation
public boolean hasDataScheme ( String scheme ) {
- return schemes . contains ( scheme ) ;
+ return schemes . contains ( scheme ) ;
}
@ implementation
<nb> public class IntentFilterTest {
@ test
public void hasDataScheme ( ) {
- IntentFilt... | Fix indentation on ShadowIntentFilter hasDataScheme and its test |
<nb> public class TextEditingTargetWidget
ImageResource icon = ThemeResources . INSTANCE . codeTransform ( ) ;
ToolbarPopupMenu menu = new ToolbarPopupMenu ( ) ;
- menu . addItem ( commands_ . jumpToFunction ( ) . createMenuItem ( false ) ) ;
menu . addItem ( commands_ . goToFunctionDefinition ( ) . createMen... | remove jump to function from src context menu |
<nb> public class NodeTool
StringBuffer errors = new StringBuffer ( ) ;
- Map < InetAddress , Float > ownerships ;
+ Map < InetAddress , Float > ownerships = null ;
try
{
ownerships = probe . effectiveOwnership ( keyspace ) ;
<nb> public class NodeTool
catch ( IllegalArgumentException ex )
{
Sys... | Fix exit code in nodetool when keyspace does not exist |
<nb> public class ContainerUtil extends ContainerUtilRt {
return i < NUMBER0 ? null : ( U ) list . get ( i ) ;
}
+ @ contract ( pure = true )
+ public static < T , U extends T > int lastIndexOfInstance ( @ notnull List < T > list , @ notnull final Class < U > clazz ) {
+ return lastIndexOf ( list , new Cond... | util add lastIndexOfInstance method |
<nb> public final class Log {
static int wtf ( int logId , String tag , String msg , Throwable tr , boolean localStack ,
boolean system ) {
TerribleFailure what = new TerribleFailure ( msg , tr ) ;
- int bytes = println_native ( logId , ASSERT , tag , msg + STRING0
+ SINGLE
+ SINGLE
+ SINGLE
+ int bytes... | Change wtf errors from ASSERT to ERROR |
<nb> public class IndexUploader {
uploadCredentials . user = args [ i ] . substring ( STRING0 . length ( ) ) ;
} else if ( args [ i ] . startsWith ( STRING1 ) ) {
uploadCredentials . path = args [ i ] . substring ( STRING1 . length ( ) ) ;
+ } else if ( args [ i ] . startsWith ( STRING2 ) ) {
+ ( ( UploadSSHC... | Add private key to index uploader |
<nb> interface Parser extends Supplier < Parser > {
return new Right < > ( Arrays . asList ( new Node < > ( new Token ( null , text , index , length ) ) ) ) ;
}
- SINGLE
- static Either < Integer , List < Node < Token > > > symbol ( String id , String text , int index , int length ) {
- return new Right < >... | Removed obsolete method |
<nb> public class WindowManagerService extends IWindowManager . Stub
return false ;
}
WindowState startingWindow = ttoken . startingWindow ;
- if ( startingWindow != null ) {
+ if ( startingWindow != null && ttoken . startingView != null ) {
SINGLE
SINGLE
mSkipAppTransitionAnimation = true ; | WindowManagerService fix starting window issue |
<nb> public interface Option < T > extends Value < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
static < T > Option < Seq < T > > sequence ( Iterable < ? extends Option < ? extends T > > values ) { | removing stray character |
<nb> public class PythonSdkType extends SdkType {
}
catch ( InvalidSdkException e ) {
if ( ! isInvalid ( sdk ) ) {
- LOG . error ( e ) ;
+ LOG . warn ( e ) ;
final Notification notification = PythonSdkType . createInvalidSdkNotification ( myProject ) ;
notification . notify ( myProject ) ;
}
<nb> publ... | Changed logging level for invalid Python interpreters |
<nb> public class ServletInputStreamImpl extends ServletInputStream {
if ( anyAreSet ( state , FLAG_CLOSED ) ) {
return ;
}
- while ( allAreClear ( state , FLAG_FINISHED ) ) {
- readIntoBuffer ( ) ;
+ try {
+ while ( allAreClear ( state , FLAG_FINISHED ) ) {
+ readIntoBuffer ( ) ;
+ if ( pooled != nul... | Fix potential buffer leak if an IO exception occurs on close |
<nb> public class AnnotationsToHTML {
path = path . getParentFile ( ) ;
}
try {
- Graph graph = Graph . load ( new File ( graphPath ) , Graph . LoadLevel . BASIC ) ;
+ Graph graph = Graph . load ( new File ( graphPath ) , Graph . LoadLevel . DEBUG ) ;
process ( graph , graphPath ) ;
} catch ( Exception e ... | Fix AnnotationsToHTML to load graph in DEBUG mode so that it contains annotations |
<nb> public class AbstractTreeUi {
}
}
- myTreeModel . removeNodeFromParent ( node ) ;
+ if ( node . getParent ( ) != null ) {
+ myTreeModel . removeNodeFromParent ( node ) ;
+ }
}
} ) ;
} | removeNodeFromParent has assertions in swing so we need to check if parent |
<nb> public class Ringtone {
cursor = res . query ( uri , MEDIA_COLUMNS , null , null , null ) ;
}
- if ( cursor != null && cursor . getCount ( ) == NUMBER0 ) {
- cursor . moveToFirst ( ) ;
- return cursor . getString ( NUMBER1 ) ;
- } else {
- title = uri . getLastPathSegment ( ) ;
+ try {
+ if ( c... | Ringtone getTitle does not close its cursor |
<nb> public class KeyParser {
for ( int m = NUMBER0 ; m < MAPPING_CNT ; m ++ ) {
if ( ( mapping & map ) != NUMBER0 ) {
Node node = getKeyRoot ( map ) ;
- int len = keys . length ;
+ final int len = keys . length ;
SINGLE
for ( int i = NUMBER0 ; i < len ; i ++ ) {
- ParentNode base = ( ParentNode ) node ... | Fixed possible NPE |
<nb> public class CompletionPanel {
private String subWord ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
private int insertionPosition ; | Fix typo in comment |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
COMMENT
public interface AssociatedRulePredicate {
public boolean isMatch ( | Remove comment about generic param that does not seem to apply |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- SINGLE
+ @ runwith ( JUnit4TestRunner . class )
public class TestJettyOSGiBootSpdy extends AbstractTestOSGi {
private static final String JETTY_SPDY_PORT = STRING0 ;
<nb> public class TestJettyOSGiBootSpdy extends AbstractTestOSGi {
}
@ test
- ... | Re enabling the SPDy test |
<nb> public class Dhns {
eventManager = new EventManager ( this ) ;
dynamicManager = new DynamicManager ( this ) ;
decoratorFactory = new DecoratorFactoryImpl ( this ) ;
+ settingsManager = new SettingsManager ( this ) ;
init ( ) ;
} | Debug DHNS settings manager |
<nb> public class DocumentationManager extends DockablePopupManager < DocumentationComp
@ override
public void beforeEditorTyping ( char c , DataContext dataContext ) {
final JBPopup hint = getDocInfoHint ( ) ;
- if ( hint != null ) {
+ if ( hint != null && LookupManager . getActiveLookup ( myEditor ) == null... | don t close doc popup when typing with an active lookup |
<nb> public class DnsNameResolverTest {
}
}
- @ test
- public void testResolveIp ( ) {
- DnsNameResolver resolver = newResolver ( ) . build ( ) ;
- try {
- InetAddress address = resolver . resolve ( STRING0 ) . syncUninterruptibly ( ) . getNow ( ) ;
-
- assertEquals ( STRING0 , address . getHostName... | Disable test that only fails on Travis |
<nb> public class SearchResultCountWidget extends DashboardWidget {
return false ;
}
+ public boolean getTrend ( ) { return trend ; }
+
public boolean getLowerIsBetter ( ) { return lowerIsBetter ; }
}
<nb> public class StreamSearchResultCountWidget extends DashboardWidget {
return false ;
}
+ pu... | Add getter for trend in count widgets |
<nb> public class LibraryLoader {
{ STRING0 , new String [ ] { } , false } ,
{ STRING1 , new String [ ] { } , false } ,
{ STRING2 , new String [ ] { } , false } ,
- { STRING3 , new String [ ] { } , false } ,
{ STRING4 , new String [ ] { } , false } ,
{ STRING5 , new String [ ] { } , false } ,
{ STRING6 , ... | Removed some libs from the LibraryLoader |
<nb> public class BookDownloaderService extends Service {
super . onStart ( intent , startId ) ;
doStart ( ) ;
- final Uri uri = intent . getData ( ) ;
+ final Uri uri = intent != null ? intent . getData ( ) : null ;
if ( uri == null ) {
doStop ( ) ;
return ; | fixed possible NPE |
<nb> public class ColumnAdditionByFetchingURLsOperation extends EngineDependentOperat
List < CellAtRow > responseBodies = new ArrayList < CellAtRow > ( urls . size ( ) ) ;
for ( int i = NUMBER0 ; i < urls . size ( ) ; i ++ ) {
CellAtRow urlData = urls . get ( i ) ;
+ long start = System . currentTimeMillis ( ) ... | Compute delay from request issue not response return |
<nb> public class LwjglApplet extends Applet {
final Canvas canvas ;
LwjglApplication app ;
+ class LwjglAppletApplication extends LwjglApplication {
+
+ public LwjglAppletApplication ( ApplicationListener listener , boolean useGL2 , Canvas canvas ) {
+ super ( listener , useGL2 , canvas ) ;
+ }
+
+... | fixed LwjglApplet returns correct ApplicationType now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ runwith ( PowerMockRunner . class )
@ preparefortest ( { AMRMClientAsync . class , ApplicationMaster . class , NMCl... | Ignore broken ApplicationMaster test |
<nb> public abstract class Log {
p . setProperty ( STRING0 , STRING1 ) ;
SINGLE
- p . setProperty ( STRING2 , STRING3 ) ;
- p . setProperty ( STRING4 , STRING3 ) ;
- p . setProperty ( STRING5 , STRING3 ) ;
+ p . setProperty ( STRING2 , STRING6 ) ;
+ p . setProperty ( STRING4 , STRING6 ) ;
+ p . setPro... | Switch log level to LOG for selected packages |
<nb> public class Parser {
case NUMBER0 :
if ( singleStatement ) {
throw new ParserException ( peek ( ) . getPosition ( ) , STRING0 ) ;
- } else {
- return new Sequence ( peek ( ) . getPosition ( ) ) ;
}
+ return new Sequence ( peek ( ) . getPosition ( ) ) ;
+
case NUMBER1 :
return statements . ge... | Reduced indentation on a piece of code |
<nb> public class TextEditingTarget implements
value . equals ( STRING0 ) ||
value . equals ( STRING1 ) ;
- Debug . logToConsole ( STRING2 + getCurrentLineLength ( ) ) ;
-
if ( mightWantNewline &&
getCurrentLineLength ( ) >= NUMBER0 )
{ | remove old debug statement |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | add missing copyright header in MockExtBusEvent |
<nb> public class FileProducerFileExistOverrideTest extends ContextTestSupport {
super . setUp ( ) ;
deleteDirectory ( STRING0 ) ;
template . sendBodyAndHeader ( STRING1 , STRING2 , Exchange . FILE_NAME , STRING3 ) ;
+ template . sendBodyAndHeader ( STRING4 , STRING5 , Exchange . FILE_NAME , STRING3 ) ;
}
... | Fixed unit test |
<nb> public class FileUploader extends Service implements OnDatatransferProgressListe
file . setModificationTimestamp ( remoteFile . getModifiedTimestamp ( ) ) ;
file . setModificationTimestampAtLastSyncForData ( remoteFile . getModifiedTimestamp ( ) ) ;
SINGLE
+ file . setRemoteId ( remoteFile . getRemoteId ( ... | Fix thumbnail generation after successful upload |
<nb> public class OverScroller {
final long time = AnimationUtils . currentAnimationTimeMillis ( ) ;
final long currentTime = time - mStartTime ;
+ if ( currentTime == NUMBER0 ) {
+ SINGLE
+ return mDuration > NUMBER0 ;
+ }
if ( currentTime > mDuration ) {
return false ;
} | Don t update OverScroller fling state if no time has passed since start |
<nb> public enum OType {
return iValue ;
else if ( iValue instanceof String )
return Long . parseLong ( ( String ) iValue ) ;
+ else if ( iValue instanceof Date )
+ return ( ( Date ) iValue ) . getTime ( ) ;
else
return ( ( Number ) iValue ) . longValue ( ) ; | supported autoconversion from date long |
<nb> public class SingleServerClusterTest {
public List < ServerDescription > select ( final ClusterDescription clusterDescription ) {
return clusterDescription . getPrimaries ( ) ;
}
- } , NUMBER0 , TimeUnit . SECONDS ) ;
+ } , NUMBER1 , TimeUnit . SECONDS ) ;
assertTrue ( server . getDescription ( ) . isO... | Increased timeout on SingleServerClusterTest |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT | updated import declaration |
<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
if ( chunk . isLast ( ) ) {
AsyncCallable ac = ( AsyncCallable ) ctx . getAttachment ( ) ;
ac . call ( ) ;
+ } else {
+ return ;
}
} else {
AsyncCallable ac = ( AsyncCallable ) ctx . getAttachment ( ) ; | Keep attachment until called |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
public enum OpCode
{
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
CONTINUATION ( ( byte ) NUMBER0 ) ,
COMMENT
- COMMENT
+ COMMENT
COMMENT
COM... | Removing javadoc links to frame classes being removed |
<nb> public class TransfVec extends WrappedVec {
@ override boolean set_impl ( int idx , float f ) { return false ; }
@ override boolean setNA_impl ( int idx ) { return false ; }
@ override boolean hasFloat ( ) { return _c . hasFloat ( ) ; }
- @ override NewChunk inflate_impl ( NewChunk nc ) { throw new Unsuppo... | Added inflate_impl implementation to TransfChunk so that it can be written to changed and rebalanced |
<nb> public class TexturePacker {
} ) ;
processor . process ( new File ( input ) , new File ( output ) ) ;
} catch ( Exception ex ) {
- throw new RuntimeException ( STRING0 , ex ) ;
+ throw new RuntimeException ( STRING1 , ex ) ;
}
} | Changed error message text |
<nb> public class Script {
SINGLE
List < ScriptChunk > chunks ;
- byte [ ] programCopy ; SINGLE
private final NetworkParameters params ;
COMMENT
<nb> public class Script {
COMMENT
private void parse ( byte [ ] programBytes , int offset , int length ) throws ScriptException {
SINGLE
- programCopy... | Remove redundant programCopy from Script |
<nb> public class TestContractionHeirarchies extends TestCase {
@ test
public void testBasic ( ) {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
final double LAT0 = FLOAT0 ; | Clarify comment in CH test |
<nb> public abstract class Persist < T > {
I [ Value . TACHYON ] = new PersistTachyon ( ) ;
SINGLE
- if ( H2O . OPT_ARGS . keepice == null )
- ice . clear ( ) ;
+ if ( H2O . OPT_ARGS . keepice == null ) {
+ final Persist ice2 = ice ;
+ new Thread ( ) {
+ public void run ( ) {
+ ice2 . clear ( ) ;
... | Background the deletion of ICE directory at startup to avoid stunning the user |
<nb> public class Uploader extends FileActivity
}
}
- SINGLE
- copyThenUpload ( contentUris . toArray ( new Uri [ contentUris . size ( ) ] ) ,
- contentRemotePaths . toArray ( new String [ contentRemotePaths . size ( ) ] ) ) ;
+ if ( ! contentUris . isEmpty ( ) ) {
+ SINGLE
+ copyThenUpload ( contentU... | Fix async task call when no content uris received |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix missing import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class BlazeRuntime {
}
BlazeServerStartupOptions startupOptions = options . getOptions ( BlazeServerStartupOptions . clas... | Pass a locale to a getLowerCase call in BlazeRuntime |
<nb> public abstract class SynchronizationProvider {
protected class ProgressLabelUpdater implements Runnable {
String label ;
public ProgressLabelUpdater ( Context context , int id , Object . . . args ) {
- this . label = context . getResources ( ) . getString ( id , args ) ;
+ try {
+ this . label = conte... | Fixed crash with labels and format flags |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SyncManager implements OnAccountsUpdateListener {
private static final long MAX_TIME_PER_SYNC ;
static {
- MAX_SIMULTAN... | By default ICS allows two syncs to run in parallel |
<nb> package NAMESPACE ;
public interface ObjectFactory {
COMMENT
- COMMENT
+ COMMENT
COMMENT
void start ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
void stop ( ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- void addClass ( Class... | fixed javadoc comments for addClass and getInstance |
<nb> public class XcodeprojGeneration {
NSDictionary projBuildConfigMap = new NSDictionary ( ) ;
projBuildConfigMap . put ( STRING0 , new NSArray (
- new NSString ( STRING1 ) , new NSString ( STRING2 ) , new NSString ( STRING3 ) ) ) ;
+ new NSString ( STRING4 ) , new NSString ( STRING5 ) , new NSString ( STRI... | Fix architecture names in XcodeGen missing v |
<nb> public class PacketParserUtils {
try {
PacketParserUtils . addExtensionElement ( presence , parser , elementName , namespace ) ;
} catch ( Exception e ) {
- LOGGER . log ( Level . WARNING ,
- STRING0
- + presence . getFrom ( ) + STRING1 + presence . getStanzaId ( ) , e ) ;
+ LOGGER . warning ( STRING... | Improve logging of failed presence extensions |
<nb> public class TransactionConfidence implements Serializable {
public interface Listener {
COMMENT
public enum ChangeReason {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
TYPE ,
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
DEPTH ,
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Add JavaDocs for TransactionConfidence Listener Reason |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMM... | Updated API documentation |
<nb> public class MapActivity extends Activity implements IMapLocationListener , Senso
return true ;
case R . id . map_navigate_to_point :
if ( mapLayers . getNavigationLayer ( ) . getPointToNavigate ( ) != null ) {
- navigateToPoint ( null ) ;
+ if ( routingHelper . isRouteCalculated ( ) ) {
+ routingHelpe... | stop routing doens t clear navigation point |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class SeriesGuideApplication extends Application {
@ override
public void onCreate ( ) {
super . onCreate ( ) ;
+ SINGLE
+ PreferenceManager . setDefaultValu... | Initialize app settings on first run |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( { STRING0 } )
public class Adapters {
private static final String ADAPTER_CURSO... | Fix the build |
<nb> public abstract class BaseTextureAtlasSource implements ITextureAtlasSource {
this . mTexturePositionY = pTexturePositionY ;
}
- @ override
- public abstract BaseTextureAtlasSource deepCopy ( ) ;
-
SINGLE
SINGLE
SINGLE | Eventually fixed a bug when not compilign with Eclipse |
<nb> import NAMESPACE ;
+ STRING0
+ STRING1
+ STRING2
- + STRING3 )
+ + STRING4 )
public class FragmentCollection implements ClassObject {
private final RuleContext ruleContext ;
private final ConfigurationTransition config ; | Fixed broken link in the documentation |
<nb> class Lwjgl3GL20 implements com . badlogic . gdx . graphics . GL20 {
private IntBuffer toIntBuffer ( int v [ ] , int offset , int count ) {
ensureBufferCapacity ( count < < NUMBER0 ) ;
- floatBuffer . clear ( ) ;
+ intBuffer . clear ( ) ;
com . badlogic . gdx . utils . BufferUtils . copy ( v , count , ... | Fix wrong buffer clear |
<nb> public class BuildCauseProducerService {
LOGGER . debug ( STRING0 + pipelineName ) ;
return ServerHealthState . success ( HealthStateType . general ( HealthStateScope . forPipeline ( pipelineName ) ) ) ;
} catch ( NoCompatibleUpstreamRevisionsException ncure ) {
- String message = STRING1 + pipelineName + ... | Improve error message grammar |
<nb> public class ServletResourceManager implements ResourceManager {
@ override
public boolean isResourceChangeListenerSupported ( ) {
- return true ;
+ return false ;
}
@ override | Disable watch service based file watching for now |
<nb> public class SketchMergeAggregatorFactory extends SketchAggregatorFactory
}
@ override
- public byte [ ] getCacheKey ( )
- {
- final byte [ ] superCacheKey = super . getCacheKey ( ) ;
-
- return ByteBuffer . allocate ( superCacheKey . length + NUMBER0 )
- . put ( superCacheKey )
- . put ( isInp... | Remove isInputThetaSketch from cache key |
<nb> public class BlogsEntryLocalServiceTest {
return entry ;
}
- protected void testGetCompanyEntries ( boolean isInTrash )
- throws Exception {
-
+ protected void testGetCompanyEntries ( boolean isInTrash ) throws Exception {
QueryDefinition queryDefinition = _queryStatusInTrash ;
if ( ! isInTrash... | run ant format source |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.