diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
COMMENT
- @ publicapi
public abstract class OutStream extends OutputStream {
COMMENT
COMMENT | removed annotation on OutStream |
<nb> public class main {
if ( write ) {
System . err . println ( STRING0 ) ;
}
+ if ( deodexerant == null ) {
+ System . err . println ( STRING1 ) ;
+ System . err . println ( STRING2 ) ;
+ System . err . println ( STRING3 ) ;
+ }
}
if ( disassemble ) { | Add warning about disassembling an odex file without deodexing it |
<nb> public class ApplicationConfigurationProducer extends JavaRuntimeConfigurationPr
for ( RunnerAndConfigurationSettings existingConfiguration : existingConfigurations ) {
final ApplicationConfiguration appConfiguration = ( ApplicationConfiguration ) existingConfiguration . getConfiguration ( ) ;
if ( Comparing... | remove duplicate code |
<nb> public class PrefStore {
}
static boolean isMmsBackupEnabled ( Context ctx ) {
- return getSharedPreferences ( ctx ) . getBoolean ( PREF_BACKUP_MMS , false ) ;
+ final int version = Integer . parseInt ( android . os . Build . VERSION . SDK ) ;
+ return version < SmsSync . MIN_VERSION_MMS ? false :
+ ... | Don t run mms backup on pre froyo |
<nb> public interface GraphSource {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public boolean reload ( boolean force , boolean preEvict ) ; | Clarify code comment on reload method |
<nb> public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro
startScroll = true ;
}
if ( startScroll ) {
- final ViewParent parent = getParent ( ) ;
- if ( parent != null ) {
- parent . requestDisallowInterceptTouchEvent ( true ) ;
- }
setScrollState ( SCROLL_STATE_DRAGGING ) ;... | Revert Make RecyclerView requestDisallowInterceptTouchEvent true |
<nb> public class SPDYClient
selector = new ClientSelectorManager ( ) ;
addBean ( selector ) ;
- factories . put ( STRING0 , new ClientSPDY2AsyncConnectionFactory ( ) ) ;
+ factories . put ( STRING0 , new ClientSPDYAsyncConnectionFactory ( ) ) ;
}
public SPDYClient newSPDYClient ( )
<nb> public class ... | Refactored class name |
<nb> public class XMLSourceProcessor extends BaseSourceProcessor {
return content ;
}
+ if ( content . contains ( STRING0 ) ) {
+ return content ;
+ }
+
int y = fileName . indexOf ( STRING1 , x ) ;
String correctProjectElementText = | Source Formatter allow empty project names |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class LoadEvaluator {
while ( userSampler . hasNext ( ) ) {
callables . add ( new LoadCallable ( recommender , userSampler . next ( ) ) ) ;
... | Oops fixed compile error |
<nb> public class MessageListFragment extends QKContentFragment implements ActivityLa
SINGLE
long time = System . currentTimeMillis ( ) ;
while ( ! mOpened ) {
+ try {
+ Thread . sleep ( NUMBER0 ) ;
+ } catch ( InterruptedException e ) {
+ e . printStackTrace ( ) ;
+ }
if ( System . currentTimeMillis ... | Make less calls within loop |
<nb> public class LocalActivityManager {
if ( r != null ) {
win = performDestroy ( r , finish ) ;
if ( finish ) {
- mActivities . remove ( r ) ;
+ mActivities . remove ( id ) ;
}
}
return win ; | Using proper key for removing from map |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class CommonXml implements XMLElementReader < List < ModelNode > > , XM
final int namespaceCount = reader . getNamespaceCount ( ) ;
for ( i... | Ignore namespace with prefix |
<nb> public class ProfileHeaderLayout extends FrameLayout implements FlexibleSpaceHea
int mLargeAvatarSize ;
@ binddimen ( R . dimen . profile_small_avatar_size )
int mSmallAvatarSize ;
- @ binddimen ( R . dimen . profile_small_avatar_margin_left )
- int mSmallAvatarMarginLeft ;
+ @ binddimen ( R . dimen . ... | Commit changes forgot to add |
<nb> public abstract class AbstractCamelContextFactoryBean < T extends ModelCamelContex
if ( anySpoolRules != null ) {
getContext ( ) . getStreamCachingStrategy ( ) . setAnySpoolRules ( anySpoolRules ) ;
}
- String spoolRules = CamelContextHelper . parseText ( getContext ( ) , streamCaching . getAnySpoolRules (... | Fixed copy paste mistake in configuring stream caching in xml |
<nb> public final class Settings {
COMMENT
public static void clearConfiguration ( Configuration inoutConfig ) {
inoutConfig . fontScale = NUMBER0 ;
- if ( ! inoutConfig . userSetLocale ) {
+ if ( ! inoutConfig . userSetLocale && ! inoutConfig . getLocales ( ) . isEmpty ( ) ) {
inoutConfig . setLocales ( Lo... | Stop layout reset by setting empty locale list |
<nb>
package 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 ;
+ import NAMESPA... | Use defined Locale for BindFailureAnalyzerTests |
<nb> public class FlatWelcomeFrame extends JFrame implements IdeFrame {
}
private void removeIfNeeded ( ) {
- if ( projectsList . getModel ( ) . getSize ( ) == NUMBER0 ) {
+ if ( RecentProjectsManager . getInstance ( ) . getRecentProjectsActions ( false ) . length == NUMBER0 ) {
FlatWelcomeScreen . this . r... | don t remove recent project panel on speed search |
<nb> public class DefaultOnDiskBuildInfo implements OnDiskBuildInfo {
try {
return Optional . of ( Sha1HashCode . of ( value ) ) ;
} catch ( IllegalArgumentException e ) {
- LOG . error ( STRING0 + value + STRING1 , e ) ;
+ LOG . error (
+ e ,
+ STRING2 ,
+ key ,
+ value ) ;
return Optional . absent... | improve logging in getHash |
<nb> public class HelloJME3 extends SimpleApplication {
@ override
public void simpleInitApp ( ) {
- Box b = new Box ( Vector3f . ZERO , NUMBER0 , NUMBER0 , NUMBER0 ) ; SINGLE
+ Box b = new Box ( NUMBER0 , NUMBER0 , NUMBER0 ) ; SINGLE
Geometry geom = new Geometry ( STRING0 , b ) ; SINGLE
Material mat = ne... | Removes the use of the deprecated Box contructor with the mesh origin in HelloJME3 |
<nb> public class ScaleTo extends AnimationAction {
protected float deltaScaleX ;
protected float deltaScaleY ;
- public static AnimationAction $ ( float scaleX , float scaleY , float duration ) {
+ public static ScaleTo $ ( float scaleX , float scaleY , float duration ) {
ScaleTo action = pool . obtain ( )... | fixed The static getter does now return the proper type ScaleTo |
<nb> public class TaskLifecycleTest
}
@ test
+ public void testNeverReadyTask ( ) throws Exception
+ {
+ final Task neverReadyTask = new DefaultObjectMapper ( ) . readValue (
+ STRING0 ,
+ Task . class
+ ) ;
+ final TaskStatus status = runTask ( neverReadyTask ) ;
+
+ Assert . assertEquals ( STR... | Add test for never ready task |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PSurfaceJOGL implements PSurface {
for ( int i = NUMBER0 ; i < sizes . length ; i ++ ) {
iconImages [ i ] = STRING0 + sizes [ i ] + STRING1 ;
}
- NewtFactory... | removed use of deprecated constructor |
<nb> public class WebView extends AbsoluteLayout
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class WebView extends AbsoluteLayout
}
int x = viewToContentX ( ( int ) event . getX ( ) + mWebTextView . getLeft ( ) ) ;
int y = viewToContentY ( ( int ) event . getY ( ) + mWebTex... | When clicking on a WebTextView always call nativeMotionUp |
<nb> public class ContactListPanel extends JScrollPane
COMMENT
COMMENT
public void contactSelected ( ContactListEvent evt )
- {
+ {
SwingUtilities . invokeLater (
new RunMessageWindow ( evt . getSourceContact ( ) ) ) ;
}
<nb> public class ContactListPanel extends JScrollPane
}
if ( Constants . A... | gets the default incoming message audio from the Constants class |
<nb> public class PrepareCatalogMojo extends AbstractMojo {
File [ ] components = componentsDir . listFiles ( ) ;
if ( components != null ) {
for ( File dir : components ) {
- if ( dir . isDirectory ( ) && ! STRING0 . equals ( dir . getName ( ) ) ) {
+ if ( dir . isDirectory ( ) && ! STRING0 . equals ( dir . ... | Camel catalog Include the adoc files |
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
tef . discardButtonClick ( ) ;
}
}
- TimerPlugin . updateTimer ( getActivity ( ) , task , false ) ;
+ TimerPlugin . updateTimer ( ContextManager . getContext ( ) , task , false ) ;
}
public void incrementFilterCount ( ... | Fixed a potential null pointer when calling updateTimer |
<nb> public class LuceneBatchInserterIndexProvider implements BatchInserterIndexProvi
relId = new RelationshipId ( relationship . getId ( ) , relationship . getStartNode ( ) , relationship . getEndNode ( ) ) ;
} else if ( entityId instanceof RelationshipId ) {
relId = ( RelationshipId ) entityId ;
+ } else {
... | adjusting code after peer review |
<nb> public final class Settings {
@ sdkconstant ( SdkConstantType . ACTIVITY_INTENT_ACTION )
public static final String ACTION_MEMORY_CARD_SETTINGS =
STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ sdkconstant ( SdkConstantTy... | Add Intent to open Search settings |
<nb> public class NotImplementedRequestDelayControl implements RequestDelayControl {
@ override
public void clearDelay ( ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ SINGLE
}
@ override | Prevented resetting the delay from throwing an exception when running in a war |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class Invo... | removed accidental dependency on mockobjects |
<nb> public class Observable < T > {
@ override
public Subscription call ( Observer < T > t1 ) {
- return new NullObservableSubscription ( ) ;
+ return new NoOpObservableSubscription ( ) ;
}
} ) ;
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- private static class NullObservabl... | Change NullObservableSubscription to NoOpObservableSubscription |
<nb> public class AndroidSdkTool {
String str =
STRING0 + packag + STRING1
+ STRING2
- + STRING3
+ STRING4
+ + STRING3
+ STRING5
+ STRING6
+ STRING7 | Organize imports in MainActivity |
<nb> public abstract class GrTypeDefinitionImpl extends GroovyPsiElementImpl implemen
allMethods . add ( method ) ;
}
+ final PsiField [ ] fields = clazz . getFields ( ) ;
+ for ( PsiField field : fields ) {
+ if ( field instanceof GrField ) {
+ final GrField groovyField = ( GrField ) field ;
+ if ( gro... | try getAllMethods to include accessor mehods |
<nb> public interface TypePool {
@ override
public TypeDescription getAnnotationType ( ) {
- return typePool . describe ( annotationDescriptor ) ;
+ return typePool . describe ( annotationDescriptor . substring ( NUMBER0 , annotationDescriptor . length ( ) - NUMBER0 ) . replace ( STRING0 , STRING1 ) ) ;
}
... | Fixed lookup by descriptor instead of name |
<nb> public class TextAssetHandler extends AbstractObjectExtractor {
private final String ext ;
- public TextAssetHandler ( String ext ) {
- super ( STRING0 ) ;
+ public TextAssetHandler ( String className , String ext ) {
+ super ( className ) ;
this . ext = ext ;
}
<nb> public class TextAssetHan... | Using raw bytebuffer instead |
<nb> public class JobHelper
final Path hdfsPath = new Path ( distributedClassPath , jarFile . getName ( ) ) ;
if ( ! existing . contains ( hdfsPath ) ) {
- if ( jarFile . getName ( ) . endsWith ( STRING0 ) || ! fs . exists ( hdfsPath ) ) {
+ if ( jarFile . getName ( ) . matches ( STRING1 ) || ! fs . exists ( ... | always upload SNAPSHOT self contained jars |
<nb> public abstract class AbstractIvyDependencyManager {
}
dependencyDescriptors . add ( descriptor ) ;
- if ( descriptor . isExportedToApplication ( ) ) {
+ if ( descriptor . isExportedToApplication ( ) || buildSettings . isPluginProject ( ) ) {
moduleDescriptor . addDependency ( descriptor ) ;
}
}
... | add the descriptor to the module if the current project is a plugin |
<nb> public class MovieDetailsFragment extends Fragment implements MovieActionsContra
restartMovieLoader ( ) ;
Bundle args = new Bundle ( ) ;
args . putInt ( InitBundle . TMDB_ID , tmdbId ) ;
- getLoaderManager ( ) . initLoader ( MovieDetailsActivity . LOADER_ID_MOVIE_TRAILERS , args ,
+ getLoaderManager ( ) ... | Actually restart movie trailer loader on language change |
<nb> public class ZygoteInit {
private static final String TAG = STRING0 ;
private static final String PROPERTY_DISABLE_OPENGL_PRELOADING = STRING1 ;
+ private static final String PROPERTY_RUNNING_IN_CONTAINER = STRING2 ;
private static final String ANDROID_SOCKET_PREFIX = STRING3 ;
<nb> public class Zy... | Make ZygoteInit not require CAP_BLOCK_SUSPEND |
<nb> public class HieroSettings {
} else if ( name . startsWith ( STRING0 ) ) {
SINGLE
name = name . substring ( NUMBER0 ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ ConfigurableEffect effect = ( ConfigurableEffect ) effects . get ( effects ... | Makes Hiero tool read effect values again when loading a |
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
if ( cb == null ) {
return false ;
} else {
+ sendCloseSystemWindows ( ) ;
return cb . onSearchRequested ( ) ;
}
} | Dismiss system windows when search is launched |
<nb> public class AccountWizardActivity extends ThemeableActivity implements View . OnC
PageIndicator titleIndicator = ( PageIndicator ) findViewById ( R . id . indicator ) ;
titleIndicator . setViewPager ( mPager ) ;
+ COMMENT
if ( ! mHasBackground ) {
LinearLayout rootView = ( LinearLayout ) findViewById ... | let s not show a background in the account setup |
<nb> public class JdbcPersistenceManager implements PersistenceManager {
public Date getAuditedStartDate ( Date startDate ) {
long maxRetrievable = JiveGlobals . getIntProperty ( STRING0 , ConversationManager . DEFAULT_MAX_RETRIEVABLE )
COMMENT
- Date result = null ;
+ Date result ;
if ( maxRetrievable > NU... | fix getAuditedStartDate resetting startDate to null |
<nb> public class LazyBSONObject implements BSONObject {
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public Object put ( final String key , final Object v ) {
throw new UnsupportedOperationException ( STRING0 ) ;
}
+ COMMENT
+ CO... | Ported some Javadoc changes from master to LazyBSONObject |
<nb> public class TableModelSpecFieldPlugin extends BaseFieldPlugin {
+ STRING0
+ STRING1
+ STRING2 , modelSpec . getModelSpecElement ( ) ) ;
- rowidPropertyGenerator = null ; SINGLE
- SINGLE
- SINGLE
- SINGLE
+ rowidPropertyGenerator = new RowidPropertyGenerator ( modelSpec , STRING3 , STRING4 , utils ... | Generate default ID property if no other integer primary key present |
<nb> public class Dialog extends Window {
if ( isModal && stage != null && stage . getRoot ( ) . getChildren ( ) . size > NUMBER0
&& stage . getRoot ( ) . getChildren ( ) . peek ( ) == Dialog . this ) { SINGLE
Actor newFocusedActor = event . getRelatedActor ( ) ;
- if ( newFocusedActor != null && ! newFocusedAc... | Also check for previousKeyboardFocus and previousScrollFocus before cancelling a focus change |
<nb> public class EmailAlarmCallback implements AlarmCallback {
notificationService . publishIfFirst ( notification ) ;
} catch ( Exception e ) {
LOG . error ( STRING0 + stream + STRING1 , e ) ;
+
+ String exceptionDetail = e . toString ( ) ;
+ if ( e . getCause ( ) != null ) {
+ exceptionDetail += STRING... | Fix potential NPE in EmailAlarmCallback call |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public abstract class AbstractTestHiveClient
protected static final String INVALID_TABLE = STRING0 ;
protected st... | Fix Hive test for DWRF |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SuperConsoleEventBusListener extends AbstractConsoleEventBusListene
finished . getThreadId ( ) ,
Optional . < TestSummaryEv... | Make use of type explicit to fix open source autodeps |
<nb> public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
XmppAxolotlSession session = new XmppAxolotlSession ( account , axolotlStore , address , identityKey ) ;
sessions . put ( address , session ) ;
} else {
- Log . d ( Config . LOGTAG , AxolotlService . getLogprefix ( account ) + STRING0 ... | Fix OMEMO session creating loggin |
<nb> public class FileEditorManagerImpl extends FileEditorManagerEx implements Projec
if ( pair . second . getFiles ( ) . length == NUMBER0 ) {
final EditorWindow [ ] windows = pair . second . getOwner ( ) . getWindows ( ) ;
if ( windows . length > NUMBER0 && windows [ NUMBER0 ] != null && windows [ NUMBER0 ] . g... | on closing a splitter in the editor the switcher shows superfluous item |
<nb> public class LoanBroker extends RouteBuilder {
SINGLE
from ( STRING0 ) . multicast ( ) . to ( STRING1 , STRING2 , STRING3 ) ;
- SINGLE
+ SINGLE
from ( STRING1 ) . process ( new Bank ( STRING4 ) ) . to ( STRING5 ) ;
from ( STRING2 ) . process ( new Bank ( STRING6 ) ) . to ( STRING5 ) ;
from ( STRING... | Fixed some snippet tags typo |
<nb> public class Uploader extends FileActivity
. getDefaultSharedPreferences ( getApplicationContext ( ) ) . edit ( ) ;
appPrefs . putString ( STRING0 , mUploadPath ) ;
appPrefs . apply ( ) ;
-
- finish ( ) ;
}
COMMENT
<nb> public class Uploader extends FileActivity
Log_OC . d ( TAG , message ) ;
... | Keep the activity with the waiting dialog till the copies finish |
<nb> public class FlagTask extends AsyncTask < Void , Integer , Integer > {
Episodes . buildEpisodesOfSeasonUri ( String . valueOf ( mSeasonTvdbId ) ) ,
PROJECTION_EPISODE , null , null , Episodes . NUMBER + STRING0 ) ;
if ( seasonEpisodes != null ) {
- if ( ! seasonEpisodes . moveToFirst ( ) ) {
+ if ( seaso... | Fix incorrect condition when determining last watched episode after flagging season watched |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix API documentation on the usage of AttributeKey |
<nb> public class DataTable {
COMMENT
COMMENT
COMMENT
- void diff ( DataTable other ) throws TableDiffException {
+ public void diff ( DataTable other ) throws TableDiffException {
new TableDiffer ( this , other ) . calculateDiffs ( ) ;
} | Restore ability to diff with another DataTable |
<nb> public class IrMethod2AsmMethod implements Opcodes {
switch ( v1 . vt ) {
case LOCAL :
accept ( v2 , asm ) ;
- int i = ( ( Local ) v1 ) . _ls_index ;
+ Local local = ( ( Local ) v1 ) ;
+ int i = local . _ls_index ;
if ( i >= NUMBER0 ) { SINGLE
- asm . visitVarInsn ( LocalType . type ( v1 ) . getOpc... | Pop a local if it has no read |
<nb> import NAMESPACE ;
abstract public class BaseJob implements Serializable {
public static final int DEFAULT_RETRY_LIMIT = NUMBER0 ;
private final boolean requiresNetwork ;
+ private transient int currentRunCount ;
protected BaseJob ( boolean requiresNetwork ) {
this . requiresNetwork = requiresNetwork... | set current run count in jobs |
<nb> public final class FacadeServiceTest {
}
@ test
+ public void assertIsRunningForJobName ( ) {
+ when ( runningService . getRunningTasks ( STRING0 ) ) . thenReturn ( Collections . < TaskContext > emptyList ( ) ) ;
+ assertFalse ( facadeService . isRunning ( STRING0 ) ) ;
+ }
+
+ @ test
public vo... | update job rest api |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ suppresswarnings ( STRING0 ) | adding author tags so you can blame |
<nb> public class ListPopupWindow {
viewType = newType ;
}
child = adapter . getView ( i , child , this ) ;
- ;
SINGLE
int heightMeasureSpec ;
- int childHeight = child . getLayoutParams ( ) . height ;
- if ( childHeight > NUMBER0 ) {
- heightMeasureSpec = MeasureSpec
- . makeMeasureSpec ( childHe... | Fix Crash in compat Action Bar List Navigation |
<nb> public class CreateJavaLibraryDialogWithModules extends CreateJavaLibraryDialogB
chooseModulesPanelPlace . add ( chooseModulePanel . getContentPane ( ) , BorderLayout . CENTER ) ;
chooseLibraryPathPlace . setVisible ( showPathPanel ) ;
+ modulesSeparator . setVisible ( showPathPanel ) ;
updateComponent... | Don t show separator in CreateLibrary dialog when paths aren t shown |
<nb> public class ResultMessage {
ResultMessage m = new ResultMessage ( ) ;
m . setMessage ( hit . getSource ( ) ) ;
m . setIndex ( hit . getIndex ( ) ) ;
- m . setNodeId ( hit . getShard ( ) . getNodeId ( ) ) ;
-
+
return m ;
} | don t include nodeId in search results |
<nb> public class PaymentError implements BusEvent {
this . invoiceId = invoiceId ;
}
+ public PaymentError ( String type , String message ) {
+ this . type = type ;
+ this . message = message ;
+ this . accountId = null ;
+ this . invoiceId = null ;
+ }
+
public String getType ( ) {
return type... | Added another constructor in payment error |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | Added missing license headers |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class System2 {
COMMENT
COMMENT
COMMENT
+ @ checkfornull
public String envVariable ( String key ) {
return System . getenv ( key ) ;
}
<nb> public class System2... | System2 envVariable String can return null |
<nb> public class TextInputLayout extends LinearLayout {
mErrorView = new TextView ( getContext ( ) ) ;
try {
mErrorView . setTextAppearance ( getContext ( ) , mErrorTextAppearance ) ;
- } catch ( Resources . NotFoundException nfe ) {
+ } catch ( Exception e ) {
SINGLE
SINGLE
mErrorView . setTextAppeara... | Fix crash on L when using TextInputLayout |
<nb> public class UIUtil {
g . setPaint ( getGradientPaint ( startX , NUMBER0 , c1 , startX , height - NUMBER1 , c2 ) ) ;
if ( isRetina ( ) ) {
- g . fillRoundRect ( startX - NUMBER2 , NUMBER3 , endX - startX + NUMBER0 , height - NUMBER1 , NUMBER1 , NUMBER1 ) ;
+ g . fillRoundRect ( startX - NUMBER2 , NUMBER0... | tweak search match drawing on retina |
<nb> class BluetoothEventLoop {
mAdapter . getRemoteDevice ( address ) ) != null ) {
return true ;
}
+ return false ;
}
private boolean isOtherSinkInNonDisconnectingState ( String address ) { | Add missing return statement |
<nb> public class BooleanNode extends AbstractJsonNode implements IPrimitiveNode {
public void read ( DataInput in ) throws IOException {
throw new UnsupportedOperationException ( ) ;
}
+
+ private Object readResolve ( ) {
+ return canonicalize ( ) ;
+ }
}
COMMENT
<nb> public class BooleanNode ext... | Fixed deserialization bug of Boolean Nodes |
<nb> public class EditorFragment extends EditorFragmentAbstract implements View . OnCli
private long lastSetCoordsTimestamp ;
private boolean isSupported ( ClipDescription clipDescription , List < String > mimeTypesToCheck ) {
+ if ( clipDescription == null ) {
+ return false ;
+ }
+
for ( String suppor... | Adds a null check |
<nb> public class WXSDKInstance implements IWXActivityStateListener {
}
Uri uri = Uri . parse ( url ) ;
- if ( uri != null && uri . getScheme ( ) . equals ( STRING0 ) ) {
+ if ( uri != null && TextUtils . equals ( uri . getScheme ( ) , STRING0 ) ) {
render ( pageName , WXFileUtils . loadFileContent ( assemb... | android update WXSDKInstance java |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class BaseDirFileResolver extends AbstractFileResolver {
private final File baseDir ;
+ public BaseDirFileResolver ( File baseDir ) {
+ this ... | Add another constructor variant that assumes FileSystems getDefault |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RegistryOptionsTopHitProvider extends OptionsTopHitProvider {
for ( RegistryValue value : Registry . getAll ( ) ) {
if ( value . isBoolean ( ) ) {
final String key = value . getKey ( ) ;
- result . add ( new RegistryBoolean... | move changed registry keys on top |
<nb> public abstract class BlazeModule {
COMMENT
COMMENT
COMMENT
- Path getFileFromDepot ( Label label )
+ Path getFileFromWorkspace ( Label label )
throws NoSuchThingException , InterruptedException , IOException ;
COMMENT
<nb> public final class CommandEnvironment {
private class BlazeModuleEnvi... | Rename ModuleEnvironment getFileFromDepot to getFileFromWorkspace |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class SimpleModule
extends Module
implements java . io . Serializable
... | Improve javadocs for SimpleModule |
<nb> public class Sequence extends CompositeAction {
action . actions . clear ( ) ;
int len = actions . size ( ) ;
for ( int i = NUMBER0 ; i < len ; i ++ ) {
- action . actions . add ( actions . get ( i ) . copy ( ) ) ;
- actions . get ( i ) . finish ( ) ;
+ action . actions . add ( actions . get ( i ) . co... | fixed Sequence copy |
<nb> public abstract class ComponentManagerImpl extends UserDataHolderBase implements
interfaceClass = interfaceClass . trim ( ) ;
implClass = implClass . trim ( ) ;
-
+
registerComponent ( Class . forName ( interfaceClass , true , loader ) , Class . forName ( implClass , true , loader ) , options , true , ... | trimming classnames mentioned in xmls |
<nb> class TwitterImpl extends TwitterBaseImpl implements Twitter {
public RelatedResults getRelatedResults ( long statusId ) throws TwitterException {
ensureAuthorizationEnabled ( ) ;
return factory . createRelatedResults ( get ( conf . getRestBaseURL ( ) + STRING0
- + Long . toString ( statusId ) + STRING1 ) ... | Add entity support for related results |
<nb> public class CreateFont extends JFrame implements Tool {
smooth ?
RenderingHints . VALUE_TEXT_ANTIALIAS_ON :
RenderingHints . VALUE_TEXT_ANTIALIAS_OFF ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ SINGLE
+ g2 . setRenderingHint ( RenderingHints . KEY_ANTIALIASING ,
+ smooth ?
+ Renderi... | add fix for anti aliasing of text |
<nb> public abstract class DBCollection {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
@ suppresswarnings ( STRING0 ) | Fixed incorrect Javadoc server release tag |
<nb> public class RepositoriesViewModel extends AbstractViewModel {
}
private static final int MAX_REPOSITORIES_DISPLAYED = NUMBER0 ;
+ private static final int SEARCH_INPUT_DELAY = NUMBER1 ;
@ nonnull
private final DataLayer . GetGitHubRepositorySearch getGitHubRepositorySearch ;
<nb> public class Repo... | Move debounce interval to a local variable |
<nb> public final class BroadcastQueue {
public void skipCurrentReceiverLocked ( ProcessRecord app ) {
boolean reschedule = false ;
BroadcastRecord r = app . curReceiver ;
- if ( r != null ) {
+ if ( r != null && r . queue == this ) {
SINGLE
SINGLE
SINGLE | Prevent ANR when broadcast receiver is killed |
<nb> public class WrappedRow implements HasFields {
public Object getField ( String name , Properties bindings ) {
if ( STRING0 . equals ( name ) ) {
return new RecordCells ( _record ) ;
+ } else if ( STRING1 . equals ( name ) ) {
+ return _record . recordIndex ;
+ } else if ( STRING2 . equals ( name ) ) { ... | Exposed more fields for each record |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
if ( mPositionScroller == null ) {
mPositionScroller = createPositionScroller ( ) ;
}
- mPositionScroller . startWithOffset ( position , offset , offset ) ;
+ mPositionScroller . startWithOffset ( position , offset ) ;
... | Use correct smooth scroll default duration |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public final class InodeTreeTests {
mTree . createPath ( NESTED_URI , Constants . KB , true , false ) ;
mTree . createPath ( new TachyonURI ( STRING0 ) , Constants . ... | Added test cases for get inode |
<nb> public class WXTimerModule extends WXModule {
@ wxmoduleanno ( runOnUIThread = false )
public void setTimeout ( int funcId , int delay ) {
+ if ( delay < NUMBER0 ) {
+ delay = NUMBER0 ;
+ }
Message message = Message . obtain ( ) ;
message . what = WXJSBridgeMsgType . MODULE_TIMEOUT ;
message . ar... | Android Fix negative delay or interval in WXTimer |
<nb> public class SimpleDrawerActivity extends ActionBarActivity {
setSupportActionBar ( toolbar ) ;
getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ;
+
result = new Drawer ( )
. withActivity ( this )
. withToolbar ( toolbar )
<nb> public class SimpleDrawerActivity extends ActionBarActivity... | used savedInstanceState within simple activity |
<nb> public class ContactListPanel extends JScrollPane
}
public void mouseEntered ( MouseEvent e ) {
- SINGLE
}
public void mouseExited ( MouseEvent e ) {
- SINGLE
}
public void mousePressed ( MouseEvent e ) {
<nb> public class SIPCommSelectorBox extends JLabel
}
public void mouseEntered (... | Autogenerated TODO comments removed for mouse events that won t be implemented |
<nb> public class ModelSaver < ModelClass extends Model , TableClass extends Model , Adap
DatabaseStatement insertStatement = modelAdapter . getInsertStatement ( ) ;
adapter . bindToInsertStatement ( insertStatement , model ) ;
long id = insertStatement . executeInsert ( ) ;
- adapter . updateAutoIncrement ( mo... | only notified change if successful |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public final class OperationTakeLast {
@ override
public Subscription onSubscribe ( Observer < ? super T > t1 ) {
- SingleAssignmentSubscri... | Fix TakeLast after removing SingleAssignmentSubscription |
<nb> public class ColumnDataClassifier {
ois = IOUtils . readStreamFromString ( loadPath ) ;
classifier = ErasureUtils . < LinearClassifier < String , String > > uncheckedCast ( ois . readObject ( ) ) ;
myFlags = ( Flags [ ] ) ois . readObject ( ) ;
- assert flags . length > NUMBER0 ;
+ assert myFlags . lengt... | Fix a broken assertion |
<nb> public class GridLabelRenderer {
protected double humanRound ( double in , boolean roundAlwaysUp ) {
SINGLE
int ten = NUMBER0 ;
- while ( in >= NUMBER1 d ) {
+ while ( Math . abs ( in ) >= NUMBER1 d ) {
in /= NUMBER1 d ;
ten ++ ;
}
- while ( in < FLOAT0 ) {
+ while ( Math . abs ( in ) < FLOAT0 ... | Prevent infinite loop while human rounding negative values |
<nb> public class JDBCImporter extends Importer {
this . context = StrategyLoader . newContext ( strategy ) ;
logger . info ( STRING0 ,
strategy , settings . getAsMap ( ) , context ) ;
+ context . setSettings ( settings ) ;
}
- context . setSettings ( settings ) ;
+
context . execute ( ) ;
} | Updated JDBCImporter java process method |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
public class LazyNettyResponseBodyPart extends NettyResponseBodyPart {
- private static final String ERROR_MESSAGE = STRING0 ;
-
private final ByteBuf buf ;
public LazyNettyResponseBodyPart ( ByteBuf ... | Have LazyNettyResponseBodyPart implement all methods |
<nb> public class BlockGenericPipe extends BlockContainer {
}
@ override
- public boolean canMakeRedstoneConnectionOnSide ( IBlockAccess world , int x , int y , int z , int side ) {
+ public boolean canConnectRedstone ( IBlockAccess world , int x , int y , int z , int side ) {
Pipe pipe = getPipe ( world , ... | Mcp naming fix |
<nb> public class BlogPreferencesActivity extends SherlockFragmentActivity {
blog . save ( originalUsername ) ;
- if ( WordPress . currentBlog . getId ( ) == blog . getId ( ) )
+ if ( WordPress . getCurrentBlog ( ) . getId ( ) == blog . getId ( ) )
WordPress . currentBlog = blog ;
SINGLE | Use the getter for currentBlog to make sure we have the last blog selected |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public final class CompositeSubscription implements Subscription {
<nb> public final class CompositeSubscription implements Subscription {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void c... | Clarify contracts of CompositeSubscription in its javadoc |
<nb> public class PolicyBasedAuthenticationManagerTests {
final PolicyBasedAuthenticationManager manager = new PolicyBasedAuthenticationManager ( map , mockServicesManager ( ) ) ;
final Authentication auth = manager . authenticate ( transaction ) ;
assertEquals ( NUMBER0 , auth . getSuccesses ( ) . size ( ) ) ;
... | Fix test failures |
<nb> public class DefaultConstraintEvaluator implements ConstraintsEvaluator , org . cod
for ( String propertyName : constrainablePropertyMap . keySet ( ) ) {
GrailsDomainClassProperty domainClassProperty = domainClassPropertyMap . get ( propertyName ) ;
- boolean isPersistentProperty = domainClassProperty != n... | Support a property of only getter method of domain class as constrainbale |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.