diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> class RecentsViewTouchHandler {
}
case MotionEvent . ACTION_UP :
case MotionEvent . ACTION_CANCEL : {
- ReferenceCountedTrigger postAnimationTrigger = new ReferenceCountedTrigger (
- mRv . getContext ( ) , null , null , null ) ;
- postAnimationTrigger . increment ( ) ;
- EventBus . getDefault ( ) . s... | Fixing merge issue with last CL |
<nb> public final class CommonUtils {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static String randomString ( int length ) {
- String result = STRING0 ;
+ StringBuilder sb = new StringBuilder ( ) ;
for ( int i = NUMBER0 ; i < length ; i ++ ) {
- result... | Fixing implementation of randomString |
<nb> public class ResidentFilterCache extends AbstractConcurrentMapFilterCache implem
if ( expire != null ) {
mapMaker . expireAfterAccess ( expire . nanos ( ) , TimeUnit . NANOSECONDS ) ;
}
+ mapMaker . evictionListener ( this ) ;
return mapMaker . makeMap ( ) ;
}
<nb> public class SoftFilterCache exte... | actually register the eviction listener with soft resident filter cache |
<nb> class AvailableContribution extends Contribution {
SINGLE
SINGLE
- SINGLE
+ SINGLE
+ if ( newContrib . getType ( ) == ContributionType . MODE ) {
+ ( ( ModeContribution ) newContrib ) . clearClassLoader ( editor . getBase ( ) ) ;
+ System . out . println ( STRING0 ) ;
+ }
+ else if ( newContrib... | tmp folders delete much better |
<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... | Add open source licence |
<nb> public class WifiEnterpriseConfig implements Parcelable {
return false ;
}
+ SINGLE
+ SINGLE
+ boolean shouldNotWriteAnonIdentity = mEapMethod == WifiEnterpriseConfig . Eap . SIM
+ || mEapMethod == WifiEnterpriseConfig . Eap . AKA
+ || mEapMethod == WifiEnterpriseConfig . Eap . AKA_PRIME ;
for ( ... | Don t save the anonymous identity for EAP SIM AKA AKA Prime |
<nb> public class Http11Protocol extends AbstractHttp11Protocol {
protected ConcurrentLinkedQueue < Http11Processor > recycledProcessors =
new ConcurrentLinkedQueue < Http11Processor > ( ) {
+ private static final long serialVersionUID = NUMBER0 ;
protected AtomicInteger size = new AtomicInteger ( NUMBER1 ) ;... | Fix Eclipse warning |
<nb> public class SubtextureFromAtlasResolver implements AssetResolver < Subtexture , Su
String [ ] parts = uri . getAssetName ( ) . split ( STRING0 , NUMBER0 ) ;
if ( parts . length == NUMBER0 ) {
Atlas atlas = Assets . get ( new AssetUri ( AssetType . ATLAS , uri . getModuleName ( ) , parts [ NUMBER1 ] ) , Atla... | Replacing herb with higher res texture |
<nb> public class Engine implements SensorEventListener , OnTouchListener , ITouchEvent
protected int mSurfaceWidth = NUMBER0 ; SINGLE
protected int mSurfaceHeight = NUMBER0 ; SINGLE
- private boolean mIsMethodTracing ;
-
SINGLE
SINGLE
SINGLE
<nb> public class Engine implements SensorEventListener , O... | Removed method tracing in Engine |
<nb> public class DefaultModule extends AbstractModule {
long timeout = args . getLong ( STRING0 , NUMBER0 ) ;
bind ( Long . class ) . annotatedWith ( Names . named ( STRING1 ) ) . toInstance ( timeout ) ;
boolean jsonpAllowed = args . getBool ( STRING2 , false ) ;
- if ( ! jsonpAllowed )
- logger . info ( ST... | avoid advertisment for jsonp |
<nb> public class Quaternion implements Serializable {
public Quaternion idt ( ) {
return this . set ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 ) ;
}
-
+
+ COMMENT
+ public boolean isIdentity ( ) {
+ return x == NUMBER0 && y == NUMBER0 && z == NUMBER0 && w == NUMBER1 ;
+ }
+
SINGLE
COMMENT
COMMEN... | Added isIdentity method |
<nb> public final class NettyResponseFuture < V > extends AbstractListenableFuture < V > {
if ( expired ) {
isCancelled . set ( true ) ;
- TimeoutException te = new TimeoutException ( String . format ( STRING0 , l ) ) ;
+ TimeoutException te = new TimeoutException ( String . format ( STRING1 , l , tu . name (... | error message on timeout includes units |
<nb> public class FieldContentValueAlertCondition extends AbstractAlertCondition {
SearchResult result = searches . search (
query ,
filter ,
- new RelativeRange ( configuration . getAlertCheckInterval ( ) * NUMBER0 ) ,
+ new RelativeRange ( configuration . getAlertCheckInterval ( ) ) ,
searchLimit ,
NUMB... | Specifying relative time range for field content search correctly |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ SINGLE
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Russian extends Language {
CommaWhitespaceRule . class ,
DoublePunctuationRule . class , ... | ru add morfologik speller dictionary for Russian |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class OpenID4JavaConsumerTests {
List < OpenIDAttribute > attributes = Arrays . asList ( new OpenIDAttribute ( STRING0 , STRING1 ) , new OpenIDAttribute ( STRING1 , STRIN... | Cleaned up warnings in openid module |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class WarJaccService extends JaccService < WarMetaData > {
<nb> public class WarJaccService extends JaccService < WarMetaData > {
}
pc . addToRole ( role , wrp ) ;
+ SINGLE
+ SINGLE
+... | do a better job at determining missing methods |
<nb> public class DomUtil {
private static void tryInvoke ( final DomElementVisitor visitor , final String name , final Class aClass , DomElement proxy ) throws NoSuchMethodException {
try {
- visitor . getClass ( ) . getDeclaredMethod ( name , aClass ) . invoke ( visitor , proxy ) ;
+ final Method method = v... | added faces visitors |
<nb> public class SQLTransportExecutor {
private SQLResponse executeWithPg ( SQLRequest request , String pgUrl , Random random ) {
try {
Properties properties = new Properties ( ) ;
- properties . setProperty ( STRING0 , STRING1 ) ; SINGLE
+ if ( random . nextBoolean ( ) ) {
+ properties . setProperty ( STR... | testing randomize usage of prepared statements |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DummyProject extends UserDataHolderBase implements Project {
return false ;
}
- @ notnull
- pu... | remove obsolete implementations from DummyProject |
<nb> public class ImApp extends Application {
{
if ( getRemoteImService ( ) != null )
{
- String pkey = SQLCipherOpenHelper . encodeRawKey ( mNoCacheWord ? new byte [ NUMBER0 ] : mCacheWord . getEncryptionKey ( ) ) ;
+ String pkey = SQLCipherOpenHelper . encodeRawKey ( mCacheWord == null ? new byte [ NUMBER0 ... | fix empty password handling |
<nb> class CopyFilesOrDirectoriesDialog extends DialogWrapper {
}
public JComponent getPreferredFocusedComponent ( ) {
- return myNewNameField ;
+ return myShowNewNameField ? myNewNameField : myTargetDirectoryField . getChildComponent ( ) ;
}
protected JComponent createCenterPanel ( ) { | preferred component set roma |
<nb> import NAMESPACE ;
public final class OrthonormalityVerifier {
- private OrthonormalityVerifier ( ) {
+ public OrthonormalityVerifier ( ) {
}
public static VectorIterable pairwiseInnerProducts ( Iterable < MatrixSlice > basis ) { | missed one class in last commit |
<nb> public class PsiVFSListener extends VirtualFileAdapter {
? myFileManager . getCachedDirectory ( vFile )
: myFileManager . getCachedPsiFileInner ( vFile ) ;
myFileManager . removeInvalidFilesAndDirs ( true ) ;
- final FileViewProvider viewProvider = myFileManager . findViewProvider ( vFile ) ;
final PsiEl... | don t query view provider for directory |
<nb> public class PrivacyService {
Util . log ( null , Log . ERROR , STRING0 ) ;
}
- mLock . readLock ( ) . lock ( ) ;
- try {
- if ( mDb != null && mDb . getVersion ( ) != NUMBER0 ) {
- mDb = null ;
- Util . log ( null , Log . ERROR , STRING1 + mDb . getVersion ( ) ) ;
- }
- } finally {
- mLock .... | Remove check for database version |
<nb> public abstract class AbstractConsoleRunnerWithHistory < T extends LanguageConsole
}
protected List < String > getActiveConsoleNames ( final String consoleTitle ) {
+ return getActiveConsolesFromRunToolWindow ( consoleTitle ) ;
+ }
+
+ protected List < String > getActiveConsolesFromRunToolWindow ( fi... | Fix broken console env tests |
<nb> public class JglfwGraphics implements Graphics {
return success ;
}
- public boolean setWindowedMode ( int width , int height , boolean fullscreen ) {
+ public boolean setWindowedMode ( int width , int height ) {
+ boolean fullscreen = false ;
if ( fullscreen || this . fullscreen ) {
boolean succes... | Overlooked error in JglfwGraphics after refactoring because nathansweet keeps removing override |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> pu... | refactor add some necessary annotations |
<nb> public class OkHttpCallUtil {
for ( Call call : client . dispatcher ( ) . queuedCalls ( ) ) {
if ( tag . equals ( call . request ( ) . tag ( ) ) ) {
call . cancel ( ) ;
+ return ;
}
}
for ( Call call : client . dispatcher ( ) . runningCalls ( ) ) {
if ( tag . equals ( call . request ( ) . tag ( ) )... | Fix NPE in cancelling network calls |
<nb> public class LoaderSettings {
private static final int DEFAULT_READ_TIMEOUT = NUMBER0 * NUMBER1 ;
private static final boolean DEFAULT_DISCONNECT_ON_EVERY_CALL = false ;
private static final boolean DEFAULT_USE_ASYNC_TASKS = true ;
+ private static final boolean DEFAULT_ALLOW_UPSAMPLING = false ;
+ priva... | properly set defaults |
<nb> public class PTBTokenizerTest extends TestCase {
SINGLE
assertEquals ( STRING0 , tokens . get ( NUMBER0 ) . get ( CoreAnnotations . AfterAnnotation . class ) ) ;
assertEquals ( STRING0 , tokens . get ( NUMBER1 ) . get ( CoreAnnotations . BeforeAnnotation . class ) ) ;
- assertEquals ( STRING1 , tokens . ge... | Fix a unittest |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface Traverser extends Iterable < Node >
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | Added more information about certain traverser aspects such as lazyness |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class RendererViewHolder extends RecyclerView . ViewHolder {
+ public class RendererViewHolder extends RecyclerView . ViewHolder {
private final Renderer renderer ;
- RendererViewHolder ( Renderer renderer ) {
+ public RendererViewHolder ( Renderer r... | Change RendererViewHolder class visibility to public |
<nb> public final class PackageNamesLoader
COMMENT
private String getPackageName ( )
{
- if ( mPackageStack . isEmpty ( ) ) {
- return STRING0 ;
- }
final StringBuffer buf = new StringBuffer ( ) ;
final Iterator it = mPackageStack . iterator ( ) ;
while ( it . hasNext ( ) ) {
String subPackage = ( S... | don t concatenate Strings in a loop |
<nb> public class ApiOther extends ApiElement {
public ApiOther ( String name , String [ ] paramNames ) {
super ( name , paramNames ) ;
}
+
+ public ApiOther ( String name , List < String > mandatoryParamNames , List < String > optionalParamNames ) {
+ super ( name , mandatoryParamNames , optionalParamNames... | Added constructors to the ApiOther class that accepts both mandatory and optional API parameters |
<nb> public class Realm implements Closeable {
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Realm implements Closeable { ... | update compact javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EditorHeader extends JComponent {
fontAscent = metrics . getAscent ( ) ;
Graphics2D g2 = ( ... | will defeat header |
<nb> public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers
documentManager . cancelAndRunWhenAllCommitted ( STRING0 , this ) ;
return ;
}
- RefResolveService resolveService = RefResolveService . getInstance ( myProject ) ;
- if ( ! resolveService . isUpToDate ( ) && resolveService .... | removed dependency on RefResolveService live instance |
<nb> class CollectionFilterer implements Filterer {
COMMENT
COMMENT
public void remove ( Object object ) {
- collectionIter . remove ( ) ;
+ removeList . add ( object ) ;
}
} | Modified collection remove logic to use removeList |
<nb> public class AccountManagerTest {
boolean accountAddedTwice = am . addAccountExplicitly ( account , null , null ) ;
assertThat ( accountAddedTwice ) . isFalse ( ) ;
- SINGLE
- SINGLE
+ account = new Account ( STRING0 , STRING1 ) ;
+ am . addAccountExplicitly ( account , null , null ) ;
+ assertThat... | Add one more test to check that two different accounts of the same type are added correctly |
<nb> public class GroovyInsertHandler extends DefaultInsertHandler {
PsiDocumentManager docManager = PsiDocumentManager . getInstance ( method . getProject ( ) ) ;
docManager . commitDocument ( document ) ;
PsiFile psiFile = docManager . getPsiFile ( document ) ;
- if ( isExpressionStatement ( psiFile , startOf... | remove logic for whitespace insertion in toplevel calls too awkward to use |
<nb> public enum ExceptionMessage {
SINGLE
FILEID_MUST_BE_FILE ( STRING0 ) ,
- SINGLE
- RAW_TABLE_COLUMN_OVERRANGE ( STRING1 ) ,
- RAW_TABLE_ID_DOES_NOT_EXIST ( STRING2 ) ,
- RAW_TABLE_ID_DUPLICATED ( STRING3 ) ,
- RAW_TABLE_METADATA_OVERSIZED ( STRING4 ) ,
- RAW_TABLE_PATH_DOES_NOT_EXIST ( STRING5 ) ... | Remove exception messages about raw tables |
<nb> public class DiscoveryClient implements LookupService {
}
public DiscoveryClient ( InstanceInfo myInfo , EurekaClientConfig config ) {
- this ( myInfo , config , null , new Provider < BackupRegistry > ( ) {
+ this ( myInfo , config , null ) ;
+ }
+
+ public DiscoveryClient ( InstanceInfo myInfo , E... | Adding the modified public constructor to DiscoveryClient |
<nb> public class GrizzlySimpleAsyncHttpClientTest extends SimpleAsyncHttpClientTest
return GrizzlyAsyncHttpProvider . class . getName ( ) ;
}
- public static void main ( String [ ] args ) {
- AsyncHttpClientConfig config = new AsyncHttpClientConfig . Builder ( ) . setSpdyEnabled ( true ) . build ( ) ;
- As... | remove unintended changes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class AsteriskSpan extends ReplacementSpan {
<nb> public class AsteriskSpan extends ReplacementSpan {
public AsteriskSpan ( Context context ) {
super ( ) ;
mBackgroundColor = ContextCompat ... | Fix asterisk color |
<nb> final class HdmiCecController {
for ( int i = NUMBER0 ; i < NUM_LOGICAL_ADDRESS ; ++ i ) {
int curAddress = ( startAddress + i ) % NUM_LOGICAL_ADDRESS ;
if ( curAddress != HdmiCec . ADDR_UNREGISTERED
- && deviceType == HdmiCec . getTypeFromAddress ( i ) ) {
+ && deviceType == HdmiCec . getTypeFromAddress... | Fix a bug using wrong addresses for CEC logical address allocation |
<nb> public class ResValueFactory {
return newReference ( value , rawValue ) ;
case TypedValue . TYPE_ATTRIBUTE :
return newReference ( value , rawValue , true ) ;
+ case TypedValue . TYPE_STRING :
+ return new ResStringValue ( rawValue ) ;
case TypedValue . TYPE_FLOAT :
return new ResFloatValue ( Float .... | decode TYPE_STRING values |
<nb> public class PooledLinkedList < T > {
public PooledLinkedList ( int maxPoolSize ) {
this . pool = new Pool < Item < T > > ( NUMBER0 , maxPoolSize ) {
+ @ override
protected Item < T > newObject ( ) {
return new Item < T > ( ) ;
}
} ;
}
+ COMMENT
public void add ( T object ) {
Item < T > i... | Add size method to PooledLinkedList |
<nb> public abstract class SkyframeExecutor implements WalkableGraphFactory {
SINGLE
SINGLE
@ visiblefortesting
- public static final int DEFAULT_THREAD_COUNT = NUMBER0 ;
+ public static final int DEFAULT_THREAD_COUNT =
+ SINGLE
+ SINGLE
+ SINGLE
+ System . getenv ( STRING0 ) == null ? NUMBER0 : NUMBE... | Tweak the default Skyframe thread count during testing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EnrichDefinition extends NoOutputExpressionNode {
SINGLE
SINGLE
+ COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ pu... | Add doc to eip model |
<nb> public final class ColQueryTemplates extends JavaTemplates {
private static int getField ( Date date , int field ) {
Calendar cal = Calendar . getInstance ( ) ;
+ cal . setMinimalDaysInFirstWeek ( NUMBER0 ) ;
cal . setTime ( date ) ;
return cal . get ( field ) ;
} | fixed Calendar usage |
<nb> public class FaviconServlet extends HttpServlet {
e . printStackTrace ( ) ;
}
SINGLE
- missesCache = CacheManager . initializeCache ( STRING0 , STRING1 , NUMBER0 * NUMBER1 ) ;
+ missesCache = CacheManager . initializeCache ( STRING0 , STRING1 , NUMBER2 * NUMBER1 ) ;
}
COMMENT
<nb> public class Gr... | Changed cache size |
<nb> public final class ToolWindowImpl implements ToolWindowEx {
ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ;
final Icon oldIcon = getIcon ( ) ;
if ( oldIcon != icon && ! ( icon instanceof LayeredIcon ) && ( icon . getIconHeight ( ) != NUMBER0 || icon . getIconWidth ( ) != NUMBER0 ) ) { ... | add tool window id to assertion |
<nb> public class HTML5VideoInline extends HTML5VideoView {
public SurfaceTexture getSurfaceTexture ( int videoLayerId ) {
SINGLE
if ( videoLayerId != mVideoLayerUsingSurfaceTexture
- || mSurfaceTexture == null ) {
- if ( mTextureNames == null ) {
- mTextureNames = new int [ NUMBER0 ] ;
- GLES20 . glGenTe... | Create GL texture when it is missing for video layer |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class JavaSourceFilterScope extends DelegatingGlobalSearchScope {
- private static final Logger LOG = Logger . getInstance ( JavaSourceFilterScope . class ) ;
-
@ nullable
private final ProjectFileIndex myIndex ;
<nb> public class JavaSourceFilterScope... | remove unnecessary error |
<nb> public class MediaControl
COMMENT
COMMENT
COMMENT
- private String [ ] supportedVideoEncodings ;
+ private String [ ] supportedVideoEncodings = new String [ NUMBER0 ] ;
COMMENT
COMMENT
COMMENT
- private String [ ] supportedAudioEncodings ;
+ private String [ ] supportedAudioEncodings = new St... | Properly init supported encodings empty arrays |
<nb> public class IqParser extends AbstractParser implements OnIqPacketReceived {
}
public static boolean fromServer ( final Account account , final IqPacket packet ) {
- return packet . getFrom ( ) == null || packet . getFrom ( ) . equals ( account . getServer ( ) ) || packet . getFrom ( ) . toBareJid ( ) . eq... | improved fromServer filter |
<nb> public class TestNativeLoader {
NativeLibraryLoader . loadNativeLibrary ( STRING0 , true ) ;
com . jme3 . bullet . PhysicsSpace physSpace = new com . jme3 . bullet . PhysicsSpace ( ) ;
- com . jme3 . bullet . PhysicsSpace . initNativePhysics ( ) ;
System . out . println ( STRING1 ) ;
} else { | Don t use native bullet specific method in TestNativeLoader fix compile error |
<nb> public class AntBuilder extends BuilderSupport {
}
}
else {
- log . log ( Level . WARNING , STRING0 + tagName + STRING1 ) ;
+ log . log ( Level . WARNING , STRING0 + tagName + STRING2 ) ;
}
} | added an extra debug message |
<nb> public final class ViewStub extends View {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify ViewStub setVisibility documentation to state that it works after inflation |
<nb> public class ReflectionsTest {
@ test
public void testResourcesScanner ( ) {
- Predicate < String > filter = new FilterBuilder ( ) . include ( STRING0 ) ;
+ Predicate < String > filter = new FilterBuilder ( ) . include ( STRING0 ) . exclude ( STRING1 ) ;
Reflections reflections = new Reflections ( new ... | Fix inconsistency in unit tests related to testModel reflections |
<nb> public class EpisodesApplyActionFragment extends Fragment {
case R . id . check_has_media :
checkWithMedia ( ) ;
resId = R . string . selected_has_media_label ;
+ break ;
case R . id . sort_title_a_z :
sortByTitle ( false ) ;
return true ; | Fix unintended switch fall through |
<nb> public class DroidGap extends PhonegapActivity {
settings . setLayoutAlgorithm ( LayoutAlgorithm . NORMAL ) ;
SINGLE
- Package pack = this . getClass ( ) . getPackage ( ) ;
- String appPackage = pack . getName ( ) ;
- WebViewReflect . setStorage ( settings , true , STRING0 + appPackage + STRING1 ) ;
... | Use the same database based upon application context for each html page loaded as part of this app |
<nb> public class BootReceiver extends BroadcastReceiver {
final String headers = new StringBuilder ( NUMBER0 )
. append ( STRING0 ) . append ( Build . FINGERPRINT ) . append ( STRING1 )
. append ( STRING2 ) . append ( Build . BOARD ) . append ( STRING1 )
+ . append ( STRING3 )
+ . append ( SystemProperties .... | Add ro revision property to checkin headers |
<nb> public class ThreadPoolTaskRunner implements TaskRunner , QuerySegmentWalker
. addData ( STRING0 , task . getId ( ) )
. addData ( STRING1 , task . getDataSource ( ) )
. emit ( ) ;
- log . warn ( e , STRING2 ) ;
+ log . warn ( e , STRING2 , task . getId ( ) ) ;
error = true ;
}
} else { | Fix graceful shutdown aborted log message in ThreadPoolTaskRunner |
<nb> public class TtsSpan implements ParcelableSpan {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in TtsSpan |
<nb> public class NavBarPanel extends JPanel implements DataProvider , PopupOwner , Dis
public void selectTail ( ) {
SINGLE
myUpdateQueue . queueRebuildUi ( ) ;
-
+ final int listIndex = myModel . getSelectedIndex ( ) ;
myUpdateQueue . queueSelect ( new Runnable ( ) {
@ override
public void run ( ) {
... | quick Alt Home and Down Down hides popup |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MultiMap < K , V > implements Serializable {
protected Collection < V > createCollection ( ) {
return new SmartList < V > ( ) ;
}
+
+ @ override
+ protected Map < K , Coll... | createSmartList uses THashMap |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix use of angle brackets in Javadoc |
<nb> public class EditionModuleTest
SINGLE
new EditionModule ( ) {
@ override
- public void registerProcedures ( Procedures procedures ) throws KernelException
+ public void setupProcedures ( Procedures procedures ) throws KernelException
{
} | Fix compilation problem |
<nb> public class LocalTachyonClusterResource implements TestRule {
COMMENT
@ retention ( RetentionPolicy . RUNTIME )
public @ interface Config {
- String [ ] tachyonConfParams ( ) default { } ;
-
+ String [ ] tachyonConfParams ( ) default { } ;
boolean startCluster ( ) default true ;
}
}
<nb> impor... | SMALLFIX Fix comments |
<nb> public class State implements Cloneable {
return false ;
if ( this . routeSequenceSubset ( other ) ) {
+ SINGLE
return this . weight <= other . weight &&
other . getElapsedTimeSeconds ( ) >= this . getElapsedTimeSeconds ( ) ;
}
<nb> public class StateEditor {
child . stateData . nonTransitMode = ... | add some comments |
<nb> public class TextToSpeech {
COMMENT
COMMENT
public static final String EXTRA_VOICE_DATA_FILES_INFO = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String EXTRA_AVAILABLE_VOICES = STRING1 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Adding Intent extra strings to TextToSpeech Engine for doing |
<nb> public class ExtensionManager {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- public synchronized List < Action > getLatestActions ( Episode episode ) {
- Map < ComponentName , Action > actionMap = sEpisodeActionsCache . get ( episode . getTvdbId ( ) ) ;
+ public synchronized List < A... | Just require episode tvdb id for actions getter |
<nb> public class SearchUtil {
for ( Configurable configurable : configurables ) {
if ( configurable instanceof SearchableConfigurable ) {
TreeSet < OptionDescription > configurableOptions = new TreeSet < OptionDescription > ( ) ;
- options . put ( ( SearchableConfigurable ) configurable , configurableOptions )... | skip invisible parents during indexing |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
myImmediatePainter = new ImmediatePainter ( this ) ;
- if ( project != null && myDocument instanceof DocumentImpl ) {
+ if ( myDocument instanceof DocumentImpl ) {
myBulkUpdateListener = new EditorDocumentBulkUpdateAdapte... | make project less editors recognize bulk mode as well |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WorkerThread implements Runnable , Disposable {
task = myTasks . removeFirst ( ) ;
}
task . run ( ) ;
- try {
- if ( mySleep > NUMBER0 ) {
- Thread . sl... | don t print meaningless stacktrace to console |
<nb> public class JsonArray extends JsonElement implements Iterable < Object > {
}
public JsonArray ( Object [ ] array ) {
- this . list = Arrays . asList ( array ) ;
+ this . list = new ArrayList < > ( Arrays . asList ( array ) ) ;
}
public JsonArray ( ) {
<nb> public class JavaJsonTest extends TestB... | Make sure JsonArray is mutable when creating with array |
<nb> public class MapContextMenuFragment extends Fragment implements DownloadEvents {
if ( menu . displayDistanceDirection ( ) ) {
getMapActivity ( ) . getMapViewTrackingUtilities ( ) . setContextMenu ( menu ) ;
}
- if ( centered ) {
- centerMarkerLocation ( ) ;
- }
}
@ override
<nb> public class Ma... | Fix context menu |
<nb> public class GradleStartupActivity implements StartupActivity {
private static void showNotificationForUnlinkedGradleProject ( @ notnull final Project project ) {
if ( ! PropertiesComponent . getInstance ( project ) . getBoolean ( SHOW_UNLINKED_GRADLE_POPUP , true )
|| ! GradleSettings . getInstance ( projec... | null check for project getBaseDir added in a post startup activity |
<nb> public class SelectTemplateDialog extends DialogWrapper {
existingTemplatesComponent = ExistingTemplatesComponent . getInstance ( this . project ) ;
setTitle ( SSRBundle . message ( this . showHistory ? STRING0 : STRING1 ) ) ;
-
- getOKAction ( ) . putValue ( Action . MNEMONIC_KEY , new Integer ( STRING2... | remove mnemonic from select templates dialog s OK button ctrl enter should be enough |
<nb> public class MongoRecordWriter < K , V > extends RecordWriter < K , V > {
public void write ( K key , V value ) throws IOException {
final DBObject o = new BasicDBObject ( ) ;
- System . out . println ( STRING0 ) ;
- log . info ( STRING1 ) ;
- SINGLE
- log . info ( STRING2 + value . toString ( ) ) ; ... | Remove verbose logging |
<nb> public class DefaultGroovyPageLocator implements GroovyPageLocator , ResourceLoad
else {
searchPaths = CollectionUtils . newList (
GrailsResourceUtils . appendPiecesForUri ( SLASHED_VIEWS_DIR_PATH , uri ) ,
+ GrailsResourceUtils . appendPiecesForUri ( PATH_TO_WEB_INF_VIEWS , uri ) ,
uri ,
GrailsResourc... | fix failing test |
<nb> class GitBranchPopupActions {
public CheckoutWithRebaseAction ( @ notnull Project project , @ notnull List < GitRepository > repositories , @ notnull String branchName ) {
super ( STRING0 , STRING1 +
- STRING2 + branchName + STRING3 , null ) ;
+ STRING4 + branchName + STRING5 , null ) ;
myProject = pro... | Fix description of Checkout with Rebase action |
<nb> public class Sample implements MethodRule {
@ override
public void evaluate ( ) throws Throwable {
if ( sampleName != null ) {
- TestFile srcDir = new IntegrationTestBuildContext ( ) . getSamplesDir ( ) . file ( sampleName ) . assertIsDir ( ) ;
+ String hintForMissingSample = String . format ( STRING0 , ... | Add helpful hint for when the sample tests cannot find a sample |
<nb> public class JavaFileManagerImpl extends JavaFileManagerBase {
final StartupManager startupManager ) {
super ( manager , projectRootManager , bus ) ;
- if ( ! ( ( StartupManagerEx ) startupManager ) . startupActivityPassed ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ if ( !... | allow JavaFileManager in default project |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAM... | Fix shader without color |
<nb> public class UnpairedQuotesBracketsRule extends Rule {
String msg = messages . getString ( STRING0 ) ;
@ suppresswarnings ( STRING1 )
RuleMatch ruleMatch = new RuleMatch ( this , matchToken . getStartPos ( ) , matchToken . getStartPos ( ) + NUMBER0 , msg ) ;
- SINGLE
ruleMatches . add ( ruleMatch ) ;
}... | only adding comments needs some fixing |
<nb> public class JadxArgs implements IJadxArgs {
}
outputDir = new File ( outDirName ) ;
- if ( ! outputDir . exists ( ) && ! outputDir . mkdirs ( ) )
- throw new JadxException ( STRING0 + outputDir ) ;
- if ( ! outputDir . isDirectory ( ) )
- throw new JadxException ( STRING1 + outputDir ) ;
+ if ( ou... | don t create output directory on startup |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class J... | Don t share project descriptor for JetGotoSymbolTest |
<nb> public class TestHiveSessionImpl {
Map < String , String > confOverlay = new HashMap < String , String > ( ) ;
String hql = STRING0 ;
Mockito . when ( operationManager . newExecuteStatementOperation ( same ( session ) , eq ( hql ) ,
- ( Map < String , String > ) Mockito . any ( ) , eq ( true ) , eq ( NUMBE... | Fix the unit test failure org apache hive service cli session TestHiveSessionImpl testLeakOperationHandle Reviewed by Ashutosh Chauhan |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class Checker extends AutomaticBean
- implements Defn , MessageDispatcher
+ implements MessageDispatcher
{
COMMENT
COMMENT
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- public interface Defn
+ public final class ... | made Defn a class following the advice of Bloch |
<nb> public class MaterialDialog extends DialogBase implements View . OnClickListener ,
this . selectedIndices = builder . selectedIndices ;
this . autoDismiss = builder . autoDismiss ;
this . adapter = builder . adapter ;
+ this . forceStacking = builder . forceStacking ;
this . positiveColor = builder . p... | Fixed forceStacking option |
<nb> public class ContextPreparer extends AbstractComponent {
return innerPreparer . process ( phase , preparerContext ) ;
} catch ( Throwable t ) {
throw new IllegalArgumentException ( String . format ( Locale . ENGLISH ,
- STRING0 +
- STRING1 +
+ STRING2 +
+ STRING3 +
STRING4 , preparerContext . opCtx... | Replace n usage with n |
<nb> import NAMESPACE ;
public class HazelcastLocalCacheRegionFactory extends AbstractHazelcastCacheRegionFactory implements RegionFactory {
- private CleanupService cleanupService ;
+ public static final int serialVersionUID = NUMBER0 ;
+
+ private transient CleanupService cleanupService ;
public Haz... | hibernate find bugs issues |
<nb> public class JavaStructuralSearchProfile extends StructuralSearchProfile {
final List < PsiElement > result = new ArrayList < PsiElement > ( NUMBER0 ) ;
assert startChild != null ;
- for ( PsiElement el = startChild . getNextSibling ( ) ; el != endChild && el != null && ! ( el instanceof PsiErrorElement ) ... | skip error element instead of stopping |
<nb> public class DocTabLayoutPanel
event . preventDefault ( ) ;
event . stopPropagation ( ) ;
}
-
+ break ;
}
case Event . ONMOUSEMOVE : | avoid fallthrough in ONMOUSEDOWN |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
@ suppresswarnings ( STRING0 )
COMMENT
<nb> public class ProtobufTuple extends AbstractLazyTuple {
SING... | remove ProtobufTuple s readFields |
<nb> public class PrivacyService {
for ( Hook md : PrivacyManager . getHooks ( restriction . restrictionName ) ) {
result . methodName = md . getName ( ) ;
result . restricted = ( md . isDangerous ( ) && ! dangerous ? false : restricted ) ;
- result . asked = false ;
+ result . asked = category ;
setRestric... | Fix on demand category |
<nb> public class GMLWriter {
private void writeStringProperty ( final Writer writer , final Object string ) throws IOException {
writer . write ( STRING0 ) ;
- writer . write ( string . toString ( ) ) ;
+ writer . write ( string . toString ( ) . replaceAll ( STRING0 , STRING1 ) ) ;
writer . write ( STRING0... | Fixed quotation escape in GMLWriter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TokuDownloader implements IDownloader {
openConnection . getInputStream ( ) . close ( ) ;
SINGLE
- File ret = Files . c... | Fix a deprecation warning in TokuDownloader |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.