diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class GenericDataSource extends JDBCDataSource
dbResult = session . getMetaData ( ) . getSchemas ( ) ;
}
-
try {
while ( dbResult . next ( ) ) {
if ( session . getProgressMonitor ( ) . isCanceled ( ) ) {
<nb> public class GenericDataSource extends JDBCDataSource
} finally {
dbResult . cl... | Filtering schemas fix generic driver |
<nb> import NAMESPACE ;
COMMENT
public class DataInfo extends Keyed < DataInfo > {
public int [ ] _activeCols ;
- public transient Frame _adaptedFrame ;
+ public Frame _adaptedFrame ;
public int _responses ; SINGLE
public int _outpus ; SINGLE | Fixed DataInfo _adaptedFrame to be non transient DeepLearning uses it |
<nb> public class ExchangeRateKey
this . currency2 = currency2 ;
}
- @ column ( nullable = false )
+ @ column ( name = STRING0 , nullable = false )
protected long date ;
@ javax.persistence.manytoone ( fetch = FetchType . LAZY , optional = false ) | Reserved word used for database object in testsuite |
<nb> public class BottomBar extends FrameLayout implements View . OnClickListener , View
continue ;
}
int baseline = title . getBaseline ( ) ;
+ SINGLE
int height = title . getHeight ( ) ;
int paddingInsideTitle = height - baseline ;
int missingPadding = mTenDp - paddingInsideTitle ;
- title . setPaddin... | Fix to avoid resetting bottom padding on second layout pass |
<nb> public class AsyncTwitter extends TwitterOAuthSupportBase implements java . io . Ser
}
getDispatcher ( ) . shutdown ( ) ;
dispatcher = null ;
+ super . shutdown ( ) ;
shutdown = true ;
}
} | actually call shutdown from async twitter |
<nb> class IntroduceConstantDialog extends DialogWrapper {
String modifier = iterator . next ( ) ;
try {
- final String modifierText = PsiModifier . PACKAGE_LOCAL . equals ( modifier ) ? STRING0 : modifier ;
- final PsiField field = JavaPsiFacade . getInstance ( psiManager . getProject ( ) ) . getElementFacto... | Don t pass leading spaces to Java parser facade |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class VimTestCase extends UsefulTestCase {
+ private static final String ULTIMATE_MARKER_CLASS = STRING0 ;
protected CodeInsightTestFixture myFixture ;
public VimTestCase ( ) {
- PlatformTestCase . initPlatformLangPrefix ( ) ;
+ PlatformTestCase ... | Fix tests initialization for community plugin sdk |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- 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 ;
- i... | Fix checkstyle issue in ReadConcernTest |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+
public class RestResourceBaseTest {
+ @ before
+ public void setUpInjector ( ) throws Exception {
+ SINGLE
+ final List < Module > modules = Lists . emptyList... | Setting up injector in new base class for JAX RS resource test classes |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import stat... | Fix flaky index sampling test |
<nb> final class RecordingSession {
. setContentText ( subtitle )
. setWhen ( System . currentTimeMillis ( ) )
. setShowWhen ( true )
- . setSmallIcon ( R . drawable . ic_launcher )
+ . setSmallIcon ( R . drawable . ic_videocam_white_24dp )
. setColor ( context . getResources ( ) . getColor ( R . color . pr... | Use the recording icon for the notification |
<nb> public class AggregationCompiler
return stateClasses ;
}
-
- private static DynamicClassLoader createClassLoader ( )
- {
- return new DynamicClassLoader ( AggregationCompiler . class . getClassLoader ( ) ) ;
- }
} | Remove unused method |
<nb> public abstract class ContentProvider implements ComponentCallbacks2 {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Uri uncanonicalize ( Uri url ) {
return url ;
<nb> public abstract class ContentResolver {
COMMENT
COMMENT
COMMEN... | Restore silence and vibrate settings |
<nb> public interface GrailsClass {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
Object getPropertyValue ( String name , Class type ) ;
} | fixed javadoc mistake |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class DatasetCornerCasesTest extends TestUtil { | Remove dead import |
<nb> public interface ResourceHolder {
void unbound ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
boolean isVoid ( ) ; | Fix typo in ResourceHolder isVoid Javadoc |
<nb> public class CallDialog
getLocationOnScreen ( ) . y + getHeight ( ) ) ;
dialpadDialog . setVisible ( true ) ;
+ dialpadDialog . requestFocus ( ) ;
}
else
{ | Fix focus issues with dialpad in the call dialog |
<nb> public class SmoothStreamingManifest {
String chunkUrl = chunkTemplate
. replace ( URL_PLACEHOLDER_BITRATE , Integer . toString ( tracks [ track ] . bitrate ) )
. replace ( URL_PLACEHOLDER_START_TIME , Long . toString ( chunkStartTimes . get ( chunkIndex ) ) ) ;
- return baseUri . buildUpon ( ) . appendEnc... | Don t append base uri if chunkUrl is absolute |
<nb> public class BinarySearchTree < T extends Comparable < T > > {
return validateNode ( root ) ;
}
- private boolean validateNode ( Node < T > node ) {
+ protected boolean validateNode ( Node < T > node ) {
Node < T > lesser = node . lesser ;
Node < T > greater = node . greater ; | Added validity check on RBTree |
<nb> public class CompilerOptions implements Serializable , Cloneable {
COMMENT
public boolean extractPrototypeMemberDeclarations ;
- SINGLE
- public boolean removeEmptyFunctions ;
-
COMMENT
public boolean removeUnusedPrototypeProperties ; | Remove a now unused compiler option |
<nb> public interface TestHttpClient {
String postText ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix minor typo in TestHttpClient java |
<nb> public class SopremoTestPlan {
public void setOutputOperator ( final int index , final Sink operator ) {
this . actualOutputs [ index ] . setOperator ( operator ) ;
}
+
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getDegreeOfParallelism ( ) {
+ return this . testPlan . getDegreeOfPa... | Added dop getter setter to SopremoTestPlan |
<nb> public interface ExoPlayer {
static final int STATE_BUFFERING = NUMBER0 ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
static final int STATE_READY = NUMBER1 ;
COMMENT | Fix Javadoc typo |
<nb> public class GraphIndex {
COMMENT
public StopTreeCache getStopTreeCache ( ) {
- synchronized ( this ) {
- if ( stopTreeCache == null ) {
- stopTreeCache = new StopTreeCache ( graph , NUMBER0 ) ; SINGLE
- }
- }
+ if ( stopTreeCache == null ) {
+ synchronized ( this ) {
+ if ( stopTreeCache == ... | remove synchronization delay in stop tree cache retrieval |
<nb> class PackageManagerService extends IPackageManager . Stub {
+ pkgSetting . name ;
reportSettingsProblem ( Log . WARN , msg ) ;
}
+ SINGLE
+ mInstaller . remove ( pkgSetting . origPackage . name , useEncryptedFSDir ) ;
}
- SINGLE
- mInstaller . remove ( pkgSetting . origPackage . name , useEncrypte... | Adding null check |
<nb> public class TargetNode < T > implements Comparable < TargetNode < ? > > , HasBuildTarget
if ( ! ancestor . isPresent ( ) || ! ancestor . get ( ) . equals ( basePath ) ) {
throw new InvalidSourcePathInputException (
STRING0 +
- STRING1 +
- STRING2 ,
+ STRING3 +
+ STRING4 ,
path ,
getBuildTarget (... | Add missing space to error message |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ target ( { ElementType . CONSTRUCTOR , ElementType . FIELD , ElementType . METHOD , ElementType . ANNOTATION_TYPE } )
+ @ target ( { ElementType . CONSTRUCTOR , ElementType . METHOD , Ele... | Allow Autowired to be declared on parameters |
<nb> public class SlidingUpPanelLayout extends ViewGroup {
COMMENT
COMMENT
public void setPanelHeight ( int val ) {
+ if ( getPanelHeight ( ) == val ) {
+ return ;
+ }
+
mPanelHeight = val ;
if ( ! mFirstLayout ) {
requestLayout ( ) ;
}
+
+ if ( getPanelState ( ) == PanelState . COLLAPSED ) { ... | add ability to use variable panel heights |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class OrganizationServiceImpl extends OrganizationServiceBaseImpl {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add class description and insert missing param tag for organizationId of method updateOrganization |
<nb> public class AlwaysOnHotwordDetector {
private static final int STATE_NOT_READY = NUMBER0 ;
SINGLE
+ COMMENT
+ @ retention ( RetentionPolicy . SOURCE )
+ @ intdef ( value = {
+ MANAGE_ACTION_ENROLL ,
+ MANAGE_ACTION_RE_ENROLL ,
+ MANAGE_ACTION_UN_ENROLL
+ } )
+ public @ interface ManageAction... | Use IntDef for manage actions |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added note for use of Persistent Presence |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused imports |
<nb> public class VideoRecorderAppState extends AbstractAppState {
}
public long getTime ( ) {
- return ( long ) ( this . ticks / this . framerate ) ;
+ return ( long ) ( this . ticks * ( FLOAT0 / this . framerate ) ) ;
}
public long getResolution ( ) { | add fix for video recorders IsoTimer getTime |
<nb> public class CreateDesktopEntryAction extends DumbAwareAction {
}
@ nullable
- private static String findScript ( final String binPath ) {
- final String productName = ApplicationNamesInfo . getInstance ( ) . getProductName ( ) ;
+ private static String findScript ( String binPath ) {
+ String produc... | create desktop entry action script lookup fixed |
<nb> public class SiteSettingsFragment extends PreferenceFragment
@ override
public void onResponse ( JSONObject response ) {
progressDialog . dismiss ( ) ;
- showPurchasesOrDeleteSiteDialog ( response , currentBlog ) ;
+ if ( isAdded ( ) ) {
+ showPurchasesOrDeleteSiteDialog ( response , currentBlog ) ;
... | Adding isAdded check after dismissing progressDialog |
<nb> public class TextTrackRenderer extends TrackRenderer implements Callback {
private void seekToInternal ( long positionUs ) {
inputStreamEnded = false ;
currentPositionUs = positionUs ;
- source . seekToUs ( positionUs ) ;
subtitle = null ;
nextSubtitle = null ;
parserHelper . flush ( ) ; | Remove unnecessary call to seekTo |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class OutputFormatter implements Serializable {
out . printf ( STRING0 , attr . getPublicName ( ) ) ;
if ( value instanc... | Fix build output formatting of licenses |
<nb> public class PackageManagerService extends IPackageManager . Stub {
mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . MOVE_PACKAGE , null ) ;
final int moveId = mNextMoveId . getAndIncrement ( ) ;
- try {
- movePackageInternal ( packageName , volumeUuid , moveId ) ;
- } catc... | Kick movement preconditions onto handler thread |
<nb> public class PsiCapturedWildcardType extends PsiType . Stub {
if ( myExistential . isExtends ( ) && myParameter == null ) {
return bound ;
}
- else if ( bound instanceof PsiCapturedWildcardType ) {
- return PsiWildcardType . createSuper ( myContext . getManager ( ) , ( ( PsiCapturedWildcardType ) bound )... | cleanup capture upper bound detection |
<nb> public class NettyConnectionsPool implements ConnectionsPool < String , Channel > {
if ( added ) {
connectionPerHost . incrementAndGet ( ) ;
}
+ return added ;
} else {
if ( log . isDebugEnabled ( ) ) {
log . warn ( STRING0 + config . getMaxConnectionPerHost ( ) ) ;
}
return false ;
}
- retur... | Retunr the added value |
<nb> public class NodeCmd
private static final Pair < String , String > PORT_OPT = new Pair < String , String > ( STRING0 , STRING1 ) ;
private static final Pair < String , String > USERNAME_OPT = new Pair < String , String > ( STRING2 , STRING3 ) ;
private static final Pair < String , String > PASSWORD_OPT = new... | Change nodetool default port to match new default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class HistoryActivity extends BaseActivity implements
} else if ( historyType == DISPLAY_MOVIE_HISTORY ) {
f = new UserMovieStreamFragment ( ) ;
} else {
- throw new ... | Allow HistoryActivity to be launched on its own |
<nb> import NAMESPACE ;
import NAMESPACE ;
public interface ITransactionalBolt extends Serializable {
- void prepare ( Map conf , TopologyContext context , String spoutId ) ;
+ void prepare ( Map conf , TopologyContext context , int txid ) ;
void execute ( Tuple tuple ) ;
- SINGLE
- SINGLE
- SINGLE
... | tweaked implemented prepare method of ITransactionalBolt |
<nb> public class ImageProcessingTest extends ActivityInstrumentationTestCase2 < ImageP
Log . v ( TAG , STRING0 + t + STRING1 ) ;
}
long avgValue = sum / ITERATION ;
- rsWriter . write ( STRING2 + avgValue + STRING3 ) ;
+ rsWriter . write ( STRING4 + avgValue + STRING3 ) ;
Log . v ( TAG , STRING4 + avgValue... | Fix a typo in image processing test |
<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 PythonSdkType extends SdkType {
}
public static bool... | Fixed wrong cast |
<nb> public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLM
public int rank ( ) {
+ if ( betaMultinomial != null ) {
+ int res = NUMBER0 ;
+ for ( double [ ] ds : betaMultinomial )
+ for ( double d : ds )
+ if ( d != NUMBER0 ) ++ res ;
+ return res ;
+ }
return ... | Fixed model rank computation for multinomial glm |
<nb> public class GridFS {
COMMENT
COMMENT
public GridFSInputFile createFile ( final File f ) throws IOException {
- return createFile ( new FileInputStream ( f ) , f . getName ( ) , true ) ;
+ FileInputStream fileInputStream = new FileInputStream ( f ) ;
+ try {
+ return createFile ( fileInputStream , f ... | Properly closing the FileInputStream in GridFS createFile File f |
<nb> public interface InspectionProfile extends Profile {
InspectionProfileEntry getInspectionTool ( @ notnull String shortName , @ notnull PsiElement element ) ;
+ @ deprecated
+ InspectionProfileEntry getInspectionTool ( @ notnull String shortName ) ;
+
@ notnull
InspectionProfileEntry [ ] getInspecti... | restore method signature for TeamCity |
<nb> public class TextInputLayout extends LinearLayout {
final TypedArray a = context . obtainStyledAttributes ( attrs ,
R . styleable . TextInputLayout , defStyleAttr , R . style . Widget_Design_TextInputLayout ) ;
- mHint = a . getText ( R . styleable . TextInputLayout_android_hint ) ;
+ setHint ( a . getTe... | Actually use the hint provided from attrs |
<nb> public class EmptyRepositoryPage extends RootPage {
add ( new Label ( STRING0 , repositoryName ) ) ;
add ( new RepositoryUrlPanel ( STRING1 , false , user , repository ) ) ;
add ( new Label ( STRING2 , MessageFormat . format ( STRING3 , url ) ) ) ;
- add ( new Label ( STRING4 , MessageFormat . format ( STR... | Changing hardcoded gitblit origin into origin |
<nb> public class Page {
private Selectable url ;
+ private int statusCode ;
+
private List < Request > targetRequests = new ArrayList < Request > ( ) ;
public Page ( ) {
<nb> public class Page {
return resultItems ;
}
+ public int getStatusCode ( ) {
+ return statusCode ;
+ }
+
+ publ... | add status code to page |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final void requestPermissions ( @ nonnull String [ ] permissions , int requestCode ) {
Intent intent = getPackageManager ( ) . buildRequestPermissionsIntent ( permissions ) ; | Fix java doc |
<nb> public class NestedResultSetHandler extends FastResultSetHandler {
List < ResultFlag > flags = resultMapping . getFlags ( ) ;
if ( flags . contains ( ResultFlag . ASSOCIATION ) || flags . contains ( ResultFlag . CONSTRUCTOR ) ) {
final ResultMap nestedResultMap = configuration . getResultMap ( nestedResultMa... | should use ids if there are any |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fix the previos style check |
<nb> public class GrailsDomainClassValidator implements CascadingValidator , GrailsApp
if ( collection instanceof List || collection instanceof SortedSet ) {
int idx = NUMBER0 ;
for ( Object associatedObject : ( ( Collection ) collection ) ) {
- cascadeValidationToOne ( errors , bean , associatedObject , persis... | fix failing tests |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix another HTML formatting in android os AsyncTask |
<nb> public class DhcpResults extends StaticIpConfiguration {
vendorInfo = info ;
}
- public void setDomains ( String domains ) {
- domains = domains ;
+ public void setDomains ( String newDomains ) {
+ domains = newDomains ;
}
}
<nb> public class StaticIpConfiguration implements Parcelable {
for ... | Fix DhcpResults setDomain and StaticIpConfiguration toLinkProperties |
<nb> public class ODocument extends ORecordSchemaAwareAbstract < Object > implements Ite
if ( _lazyLoad && value instanceof ORID && t != OType . LINK && ODatabaseRecordThreadLocal . INSTANCE . isDefined ( ) ) {
SINGLE
value = ( RET ) getDatabase ( ) . load ( ( ORID ) value ) ;
- removeCollectionChangeListener (... | Fixed a bug on lazy loading of a sub document |
<nb> public class RealtimePlumber implements Plumber
if ( ! isPushedMarker . exists ( ) ) {
removeSegment ( sink , mergedTarget ) ;
+ if ( mergedTarget . exists ( ) ) {
+ log . wtf ( STRING0 , mergedTarget ) ;
+ return ;
+ }
} else {
log . info ( STRING1 , sink ) ;
return ; | add more logging |
<nb> public final class PermissionUtils {
COMMENT
@ targetapi ( Build . VERSION_CODES . DONUT )
public static synchronized int getTargetSdkVersion ( Context context ) {
- if ( targetSdkVersion == - NUMBER0 ) {
+ if ( targetSdkVersion != - NUMBER0 ) {
+ SINGLE
return targetSdkVersion ;
}
try { | Fix the logic |
<nb> public class ModeContribution extends InstalledContribution {
if ( ! existing . containsKey ( folder ) ) {
try {
contribModes . add ( new ModeContribution ( base , folder , null ) ) ;
+ } catch ( IgnorableException ig ) {
+ Base . log ( ig . getMessage ( ) ) ;
} catch ( Exception e ) {
e . printStack... | removing error that can be ignored |
<nb> final class BuildSession implements Runnable , CanceledStatus {
ProfilingHelper profilingHelper = null ;
if ( Utils . IS_PROFILING_MODE ) {
profilingHelper = new ProfilingHelper ( ) ;
+ profilingHelper . startProfiling ( ) ;
}
runBuild ( new MessageHandler ( ) { | start cpu profiling in profiling mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class PrefBackupHelper extends BackupAgentHelper {
- SINGLE
- static final String PREFS = STRING0 ;
SINGLE
static final String PREFS_BACKUP_KEY = STRING1 ;
<nb> public class PrefBackupHelper extends BackupAgentHelper {
SINGLE
@ override
public vo... | Use correct package name for backup helper so it will work with the |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ SINGLE
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MongoLoader extends LoadFunc implements LoadMetadata {
try {
schema = new ResourceSchema ( Utils . getSchemaFromString ( userSchema... | make exception more tolerant of pig version |
<nb> public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter {
protected void idleResources ( ) {
if ( logger . isTraceEnabled ( ) ) {
- logger . trace ( STRING0 , config . resourcesFactory ( ) . findAll ( ) ) ;
+ logger . trace ( STRING0 , getClass ( ) . getSimpleName ( ) , config . resourc... | Add logging no functional changes |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Add license and Javadoc to OLiveQuery |
<nb> public class Model implements Disposable {
COMMENT
protected Array < Disposable > disposables = new Array < Disposable > ( ) ;
+ COMMENT
+ COMMENT
public Model ( ) { }
COMMENT
<nb> public class Model implements Disposable {
COMMENT
COMMENT
public void manageDisposable ( Disposable disposabl... | Add Model getManagedDisposables and check if a Disposable already exists before adding |
<nb> public class ImplementationBodyCodegen extends ClassBodyCodegen {
iv . load ( NUMBER0 , classAsmType ) ;
iv . invokestatic ( STRING0 , STRING1 , STRING2 , false ) ;
- iv . areturn ( Type . getObjectType ( STRING3 ) ) ;
+ iv . areturn ( Type . getType ( STRING3 ) ) ;
FunctionCodegen . endVisit ( mv , ... | Minor don t call Type getObjectType on array |
<nb> public class PersistentDaemonRegistry implements DaemonRegistry {
cache . update ( new PersistentStateCache . UpdateAction < DaemonRegistryContent > ( ) {
public DaemonRegistryContent update ( DaemonRegistryContent oldValue ) {
DaemonStatus status = oldValue . getStatus ( address ) ;
+ SINGLE
if ( status... | Added a TODO |
<nb> public class PyStatementMover extends LineMover {
}
int offset = addedElement . getTextRange ( ) . getStartOffset ( ) ;
- if ( addedElement instanceof PsiComment && offset == NUMBER0 ) { SINGLE
+ if ( ( addedElement instanceof PsiComment || addedElement instanceof PyPassStatement ) && offset == NUMBER0 )... | fixed offset for move pass statement into |
<nb> import NAMESPACE ;
@ state (
name = STRING0 ,
storages = {
+ @ storage ( file = StoragePathMacros . PROJECT_FILE ) ,
@ storage (
- id = STRING1 ,
- file = STRING2 ,
+ file = StoragePathMacros . PROJECT_CONFIG_DIR + STRING3 ,
scheme = StorageScheme . DIRECTORY_BASED
) }
) | specified storage for file based project format |
<nb> public class HTTP2FlowControl implements FlowControl
if ( LOG . isDebugEnabled ( ) )
LOG . debug ( STRING0 , length , stream ) ;
- SINGLE
- WindowUpdateFrame frame = new WindowUpdateFrame ( - stream . getId ( ) , length ) ;
- stream . getSession ( ) . control ( stream , frame , Callback . Adapter . INS... | Don t send a window update if the length is zero |
<nb> public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
try {
LightPlatformTestCase . checkEditorsReleased ( ) ;
}
- catch ( AssertionError error ) {
+ catch ( Throwable error ) {
result . add ( error ) ;
}
} | catch more exceptions during tearDown |
<nb> public class ConnectPlugin extends Plugin {
return pr ;
}
- public static final String SINGLE_SIGN_ON_DISABLED = STRING0 ;
-
@ override
public void onActivityResult ( int requestCode , int resultCode , Intent data ) {
super . onActivityResult ( requestCode , resultCode , data ) ; | Removed duplicate proerty in android connect plugin |
<nb> public class LogBufferDescriptor
COMMENT
COMMENT
COMMENT
- public static final int LOG_DEFAULT_FRAME_HEADERS_OFFSET = CACHE_LINE_LENGTH ;
+ public static final int LOG_DEFAULT_FRAME_HEADERS_OFFSET ;
COMMENT
COMMENT
<nb> public class LogBufferDescriptor
LOG_MTU_LENGTH_OFFSET = LOG_DEFAULT_FRAME_... | Set the correct offset for the default headers in the log meta data |
<nb> public class GravatarProfilePage extends RootPage {
} catch ( IOException e ) {
error ( MessageFormat . format ( STRING0 , object ) , e , true ) ;
}
-
+
+ if ( profile == null ) {
+ error ( MessageFormat . format ( STRING0 , object ) , true ) ;
+ }
add ( new Label ( STRING1 , profile . displayNam... | Fixed null pointer possibility for gravatar profiles |
<nb> public class ShortcutManager implements NativePreviewHandler ,
}
public AppCommand getCommand ( KeySequence keys ,
- int editorMode )
- {
- return getCommand ( keys , editorMode , null ) ;
- }
-
- public AppCommand getCommand ( KeySequence keys ,
int editorMode ,
Map < AppCommand , Boolean > ... | eliminate eclipse warning |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReferenceCountingSegmentTest
@ override
public String getIdentifier ( )
{
- throw new Unsupport... | Fix ReferenceCountingSegmentTest to actually work again |
<nb> public abstract class Trigger < T , W extends Window > implements Serializable {
COMMENT
COMMENT
public void onMerge ( W window , OnMergeContext ctx ) throws Exception {
- throw new RuntimeException ( STRING0 ) ;
+ throw new UnsupportedOperationException ( STRING0 ) ;
}
COMMENT | hotfix streaming api Non merging triggers throw UnsupportedOperationException instead of RuntimeException |
<nb> public class SentenceSourceChecker {
String [ ] additionalCategoryIds , int maxSentences , int maxErrors , File languageModelDir , Pattern filter ) throws IOException {
Language lang = Languages . getLanguageForShortCode ( langCode ) ;
MultiThreadedJLanguageTool languageTool = new MultiThreadedJLanguageTool ... | Disable CleanOverLapping in SentenceSourceChecker |
<nb> public class UpdateCheck {
Thread . sleep ( NUMBER0 * NUMBER1 ) ; SINGLE
updateCheck ( ) ;
} catch ( Exception e ) {
- String msg = e . getMessage ( ) ;
- if ( msg . contains ( STRING0 ) ) {
- SINGLE
- } else {
- e . printStackTrace ( ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE... | silence random errors from the updater |
<nb> public class AuthCheckFilter implements Filter {
}
SINGLE
String url = request . getRequestURI ( ) . substring ( NUMBER0 ) ;
+ if ( url . startsWith ( STRING0 ) ) {
+ url = url . substring ( STRING0 . length ( ) ) ;
+ }
SINGLE
boolean doExclude = false ;
for ( String exclude : excludes ) { | Make existing plugins work |
<nb> import NAMESPACE ;
COMMENT
public class JaxbDataFormat extends ServiceSupport implements DataFormat , CamelContextAware {
- private final transient Log LOG = LogFactory . getLog ( JaxbDataFormat . class ) ;
+ private static final transient Log LOG = LogFactory . getLog ( JaxbDataFormat . class ) ;
priv... | Fixed CS error of JaxbDataFormat |
<nb> public class ODatabaseGraphTx extends ODatabasePojoAbstract < OGraphElement > {
}
public OGraphVertex getRoot ( final String iName ) {
- return registerPojo ( new OGraphVertex ( this , ( ODocument ) underlying . getDictionary ( ) . get ( iName ) ) ) ;
+ final ODocument doc = ( ODocument ) underlying . ge... | Fixed NPE on graph getRoot |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CherryPicker {
private void removeChangeList ( CherryPickData list ) {
myChangeListManager . setDefaultChangeList ( list ... | Don t remove the changelist if it is the default one |
<nb> public final class PowerManagerService extends IPowerManager . Stub
private boolean isItBedTimeYetLocked ( ) {
return mBootCompleted && ! mStayOn
&& ( mWakeLockSummary
- & ( WAKE_LOCK_SCREEN_BRIGHT | WAKE_LOCK_SCREEN_DIM ) ) == NUMBER0
+ & ( WAKE_LOCK_SCREEN_BRIGHT | WAKE_LOCK_SCREEN_DIM
+ | WAKE_LOCK_... | Check proximity detector before powering off |
<nb> public class Mongo {
@ deprecated
public static final int MINOR_VERSION = NUMBER0 ;
- private static final String FULL_VERSION = STRING0 ;
+ private static final String FULL_VERSION = STRING1 ;
static int cleanerIntervalMS ; | Updated version in Mongo class |
<nb> public class ShowcaseView extends RelativeLayout implements View . OnClickListener
( ( Number ) mBestTextPosition [ NUMBER0 ] ) . intValue ( ) , Layout . Alignment . ALIGN_NORMAL ,
FLOAT0 , FLOAT1 , true ) ;
}
- canvas . translate ( mBestTextPosition [ NUMBER1 ] , mBestTextPosition [ NUMBER2 ] + NUMBER3 * ... | Fixed layout for titles which are longer than one line |
<nb> public final class InputMethodSubtype implements Parcelable {
COMMENT
public InputMethodSubtype ( int nameId , int iconId , String locale , String mode , String extraValue ,
boolean isAuxiliary ) {
- this ( nameId , iconId , locale , mode , extraValue , false , false ) ;
+ this ( nameId , iconId , locale... | Fix a bug in InputMethodSubtype constructor |
<nb> class ProxyThread implements Runnable {
}
} catch ( SocketTimeoutException e ) {
SINGLE
- log . warn ( STRING0 + firstHeader . getURI ( ) . toString ( ) ) ;
+ if ( firstHeader != null ) {
+ log . warn ( STRING0 + firstHeader . getURI ( ) ) ;
+ } else {
+ log . warn ( STRING1 , e ) ;
+ }
} catch... | Fix NPE in exception path |
<nb> import NAMESPACE ;
public class DefaultResolvedArtifactResults implements ResolvedArtifactResults {
SINGLE
- private Map < Long , ArtifactSet > artifactSets = Maps . newHashMap ( ) ;
+ private Map < Long , ArtifactSet > artifactSets = Maps . newLinkedHashMap ( ) ;
SINGLE
private Set < ResolvedArtif... | Use an order preserving map to ensure consistent ordering of resolved artifacts |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
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 ;... | Clarify the behavior of ListView setColorHint |
<nb> public class NavigationBarView extends LinearLayout {
mCurrentView . getWidth ( ) , mCurrentView . getHeight ( ) ,
visibilityToString ( mCurrentView . getVisibility ( ) ) ) ) ;
- pw . println ( String . format ( STRING0 ,
+ pw . println ( String . format ( STRING1 ,
mDisabledFlags ,
- mVertical ? STR... | Fix merge error |
<nb> public class PyUtil {
else if ( PyNames . STATICMETHOD . equals ( deconame ) ) flags . add ( STATICMETHOD ) ;
SINGLE
PyClass cls = function . getContainingClass ( ) ;
- if ( cls != null && cls . isNewStyleClass ( ) && PyNames . NEW . equals ( function . getName ( ) ) ) flags . add ( CLASSMETHOD ) ;
+ if ... | do a fast check before a slow one |
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class ThreadDbSessionProvider implements DbSessionProvider {
+ protected final boolean createIfMissing ;
+
+ public ThreadDbSessionProvider ( ) {
+ this ( false ) ;
+ }
+
+ public ThreadDbSessionProvider ... | ThreadDbSessionProvider may create DbThreadSession |
<nb> public class WifiStateMachine extends StateMachine {
mDhcpInfoInternal = dhcpInfoInternal ;
}
mLastSignalLevel = - NUMBER0 ; SINGLE
+ mReconnectCount = NUMBER1 ; SINGLE
WifiConfigStore . setIpConfiguration ( mLastNetworkId , dhcpInfoInternal ) ;
InetAddress addr = NetworkUtils . numericToInetAddress ( ... | Reset IP failure counter on a success |
<nb> import NAMESPACE ;
public class UrlClassLoader extends ClassLoader {
private final ClassPath myClassPath ;
private final List < URL > myURLs ;
- private final Set < String > myNotFound = new THashSet < String > ( ) ;
@ nonnls static final String CLASS_EXTENSION = STRING0 ;
protected static final boolea... | do not cache negative lookup results |
<nb> public class ServerBootstrap extends AbstractBootstrap < ServerBootstrap , ServerCh
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public ServerBootstrap group ( EventLoopGroup parentGroup , EventLoopGroup childGroup ) { | Fixed ServerBootstrap group EventLoopGroup EventLoopGroup javadoc |
<nb> import NAMESPACE ;
@ aspect
public class LogObservable {
private static final String METHOD =
- STRING0 ;
+ STRING1 ;
@ pointcut ( METHOD )
public static boolean methodAnnotatedWithRxLogObservable ( ProceedingJoinPoint joinPoint ) {
<nb> import NAMESPACE ;
@ aspect
public class LogSubscribe... | Fix annotations package on aspects |
<nb> public abstract class AbstractEmulatorMojo extends AbstractAndroidMojo {
SINGLE
String command = assembleStartCommandLine ( ) ;
String uniqueWindowTitle = STRING0 + parsedAvd ;
- writer . print ( STRING1 + uniqueWindowTitle + STRING2 + command ) ;
+ writer . print ( STRING3 + uniqueWindowTitle + STRING4 ... | fixed a potential problem with windows script by adding apostrophes around windowtitle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.