diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class WebSocketServlet extends HttpServlet
}
else
{
+ SINGLE
+ ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ;
@ suppresswarnings ( STRING0 )
- Class < WebSocketServletFactory > wssf = ( Class < WebSocketServletFactory > ) getServletContext ( ) . getClass... | OSGi tests can t find websocket classes |
<nb> public class FileManagerImpl implements FileManager {
OrderEntry [ ] orderEntries = projectFileIndex . getOrderEntriesForFile ( vFile ) ;
if ( orderEntries . length > NUMBER0 ) {
for ( OrderEntry entry : orderEntries ) {
- if ( entry instanceof LibraryOrderEntry ) {
+ if ( entry instanceof LibraryOrderEn... | multijdk projects wrong resolve scope |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class MailConverters {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
@ converter
<n... | Added support for searchTerm on camel mail |
<nb> public class ChunkedNioStream implements ChunkedInput {
COMMENT
COMMENT
COMMENT
- private ByteBuffer byteBuffer = null ;
+ private final ByteBuffer byteBuffer ;
COMMENT
COMMENT
<nb> public class ChunkedNioStream implements ChunkedInput {
this . in = in ;
offset = NUMBER0 ;
this . chunkSize ... | Made ChunkedNioStream final |
<nb> class ExpandablePositionTranslator {
if ( adapter != null || collapseListener != null ) {
for ( int i = index ; i < idAndPos . length ; i ++ ) {
- final int id2 = ( int ) ( idAndPos [ i ] > > NUMBER0 ) ;
+ SINGLE
final int position = ( int ) ( idAndPos [ i ] & LOWER_31BIT_MASK ) ;
if ( adapter == n... | Lint Suppress UnusedAssignment warnings |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
this . locLimit ( translations [ frame ] , ipo . calculateValue ( frame ) ) ;
}
track . setKeyframes ( track . getTimes ( ) , translations , track . get... | LocLimitConstraint erased other tracks except the one it was supposed to alter |
<nb> public class ClassReloadingStrategyTest {
Foo foo = new Foo ( ) ;
assertThat ( foo . foo ( ) , is ( FOO ) ) ;
ClassReloadingStrategy classReloadingStrategy = ClassReloadingStrategy . fromInstalledAgent ( ) ;
- String randomName = RandomString . make ( ) ;
+ String randomName = FOO + RandomString . make (... | Prefixed naming strategy to avoid accidentally illegal names |
<nb> public final class ResourceAdapterActivatorService extends AbstractResourceAdapt
public CommonDeployment doDeploy ( ) throws Throwable {
this . setConfiguration ( getConfig ( ) . getValue ( ) ) ;
+ SINGLE
+ this . getConfiguration ( ) . setBeanValidation ( false ) ;
this . start ( ) ; | disabling bean validation for hornetq RA |
<nb> class OnSubscribeFromQuery < T > implements Observable . OnSubscribe < T > {
emitted . incrementAndGet ( ) ;
} else {
subscriber . onCompleted ( ) ;
+ break ;
}
}
}
<nb> class OnSubscribeFromQuery < T > implements Observable . OnSubscribe < T > {
SINGLE
if ( ! subscriber . isUnsubscribed ( ) &&... | Fix case where onSubscribe didn t return from request |
<nb> public class PyListCompExpressionImpl extends PyComprehensionElementImpl impleme
}
public PyType getType ( @ notnull TypeEvalContext context ) {
- return null ;
+ return PyBuiltinCache . getInstance ( this ) . getListType ( ) ;
}
} | list comp expr has a type |
<nb> public class VectorDrawable_Delegate {
@ layoutlibdelegate
static void nUpdateFullPathFillGradient ( long pathPtr , long fillGradientPtr ) {
- VFullPath_Delegate path = getDelegate ( pathPtr ) ;
+ VFullPath_Delegate path = VNativeObject . getDelegate ( pathPtr ) ;
path . setFillGradient ( fillGradien... | Add missing references to VNativeObject |
<nb> public class CompileDriver {
}
private static boolean syncOutputDir ( final CompileContextEx context , final Collection < Trinity < File , String , Boolean > > toDelete ) throws CacheCorruptedException {
- final int total = toDelete . size ( ) ;
final DependencyCache dependencyCache = context . getDepend... | eliminate progress flickering |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BaseGameActivity extends BaseActivity implements IGameInte
if ( pEngineOptions . isFullscreen ( ) ) {
this . apply... | BaseGameActivity now sets the VolumeControlStream to MUSIC when the EngineOptions have either needsSound or needsMusic set |
<nb> public class AvroUtils {
spec . setDataType ( AvroRecordReader . getColumnType ( field ) ) ;
spec . setFieldType ( FieldType . time ) ;
} else {
- new DimensionFieldSpec ( ) ;
spec = new DimensionFieldSpec ( ) ;
spec . setName ( field . name ( ) ) ;
spec . setDataType ( AvroRecordReader . getColumnTy... | Removed useless object creation |
<nb> public class ClasspathMacroExpander
@ nullable
@ override
public Path apply ( JavaLibrary input ) {
- return input . getPathToOutput ( ) ;
+ return input . getPathToOutput ( ) == null
+ ? null
+ : input . getProjectFilesystem ( )
+ . resolve ( input . getPathToOutput ( ) ) ;
}
} )
. filter ( ... | Fix file system mismatch in classpath macro expansion |
<nb> public class RegionCommands {
@ optional ( STRING0 ) @ range ( min = NUMBER0 ) int thickness ,
@ switch ( STRING1 ) boolean shell ) throws WorldEditException {
if ( ! ( region instanceof ConvexPolyhedralRegion ) ) {
- player . printError ( STRING2 ) ;
+ player . printError ( STRING3 ) ;
return ;
} | Fixed bad copypaste in error message for curve |
<nb> public class GeneralSettings implements NamedJDOMExternalizable , ExportableAppli
@ nonnls private static final String OPTION_USE_CYCLIC_BUFFER = STRING0 ;
@ nonnls private static final String OPTION_SEARCH_IN_BACKGROUND = STRING1 ;
@ nonnls private static final String OPTION_CONFIRM_EXIT = STRING2 ;
- @ n... | reset option open project in window to ask user |
<nb> package NAMESPACE ;
import NAMESPACE ;
- public class DefaultTestMethod implements InternalTestMethod {
+ import NAMESPACE ;
+
+ public class DefaultTestMethod implements InternalTestMethod , Serializable {
private final String className ;
private final String methodName ; | make DefaultTestMethod serializable |
<nb> public class ExporterGDF implements GraphFileExporter , TextExporter , LongTask {
}
boolean c = cancel ;
clean ( ) ;
- return c ;
+ return ! c ;
}
private void clean ( ) {
<nb> public class ExporterGEXF implements GraphFileExporter , XMLExporter , LongTask {
}
boolean c = cancel ;
clean ( )... | Debug Exporters cancel status return |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServiceManagerTest extends TestCase {
fail ( ) ;
} catch ( TimeoutException expected ) {
}
- manager . awaitHealthy ( NUMBER0 , TimeUni... | Bump timeout after recent flaky failure |
<nb> public class BugreportReceiver extends BroadcastReceiver {
@ override
public void onReceive ( Context context , Intent intent ) {
+ Log . d ( TAG , STRING0 + intent ) ;
SINGLE
cleanupOldFiles ( this , intent , INTENT_BUGREPORT_FINISHED , MIN_KEEP_COUNT , MIN_KEEP_AGE ) ; | Log received intent |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
@ documented
@ retention... | Remove Map property from plural task output docs |
<nb>
package NAMESPACE ;
public enum OptimizeType {
- TRANSFERS , QUICK , FLAT , SAFE , GREENWAYS
+ TRANSFERS , QUICK , SAFE ,
+ COMMENT
+ COMMENT
+ GREENWAYS ,
+ FLAT ,
+ WALK
} | add walk optimization type for use in st project |
<nb> public class DefaultBroadcaster implements Broadcaster {
SINGLE
if ( LoggerUtils . getLogger ( ) . isLoggable ( Level . FINE ) ) {
LoggerUtils . getLogger ( ) . log ( Level . FINE , STRING0 , e ) ;
- resources . remove ( r ) ;
- return ;
}
+ resources . remove ( r ) ;
+ return ;
}
} | Fix very embarassing typo |
<nb> public class NetworkDispatcher extends Thread {
} catch ( VolleyError volleyError ) {
parseAndDeliverNetworkError ( request , volleyError ) ;
} catch ( Exception e ) {
- VolleyLog . e ( STRING0 , e . toString ( ) ) ;
+ VolleyLog . e ( e , STRING0 , e . toString ( ) ) ;
mDelivery . postError ( request ,... | Pass exception to android util Log |
<nb> public enum ApplicationState
X3 ,
X4 ,
X5 ,
+ X6 ,
+ X7 ,
+ X8 ,
+ X9 ,
+ X10 ,
} | Add more padding to in case of gossipocalypse |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
}
} ) ;
}
+ mDialogBuilder . setNegativeButton ( com . android . internal . R . string . cancel ,
+ new DialogInterface . OnClickListener ( ) {
+ public void onClick ( DialogInterface dialog , int whichButton ) {
+ hideInputMet... | Add a cancel button to InputMethodPicker and InputMethodSubtypePicker |
<nb> public class AndroidConnectionSource extends BaseConnectionSource implements Con
SINGLE
}
- public void saveSpecialConnection ( DatabaseConnection connection ) {
- saveSpecial ( connection ) ;
+ public boolean saveSpecialConnection ( DatabaseConnection connection ) {
+ return saveSpecial ( connection... | Fixed nested transactions |
<nb> public abstract class BaseBpmnJsonConverter implements EditorJsonConstants , Sten
outgoingArrayNode . add ( BpmnJsonConverterUtil . createResourceNode ( boundaryEvent . getId ( ) ) ) ;
}
- if ( activity . isAsynchronous ( ) ) {
- propertiesNode . put ( PROPERTY_ASYNCHRONOUS , PROPERTY_VALUE_YES ) ;
- }... | Fixed json conversion |
<nb> public class SelectTemplateStep extends ModuleWizardStep implements SettingsStep
public ModuleWizardStep getSettingsStep ( ) {
return mySettingsStep ;
}
+
+ @ testonly
+ public void dumpTree ( ) {
+ myTemplatesTree . accept ( myTreeBuilder , new SimpleNodeVisitor ( ) {
+ @ override
+ public boole... | dumping templates tree on fail |
<nb> public class PyCodeStyleSettingsProvider extends CodeStyleSettingsProvider {
public String getConfigurableDisplayName ( ) {
return STRING0 ;
}
+
+ @ override
+ public boolean hasSettingsPage ( ) {
+ return false ;
+ }
} | don t show empty Python code style settings page fix Python preview text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class TestTargetExecutionSettings {
private final Artifact executable ;
private final boolean runfilesSymlinksCreated ;
p... | Attach runfiles to TestTargetExecutionSettings |
<nb> public class TerrainQuad extends Node implements Terrain {
picker = new BresenhamTerrainPicker ( this ) ;
Vector3f intersection = picker . getTerrainIntersection ( ray , results ) ;
- if ( intersection != null )
- return NUMBER0 ;
- else
+ if ( intersection != null ) {
+ if ( ray . getLimit ( ) < F... | terrain now checks the ray s limit when colliding |
<nb> public final class MahoutDriver {
if ( args . length < NUMBER0 || args [ NUMBER1 ] == null || STRING0 . equals ( args [ NUMBER1 ] ) || STRING1 . equals ( args [ NUMBER1 ] ) ) {
programDriver . driver ( args ) ;
+ return ;
}
String progName = args [ NUMBER1 ] ; | MahoutDriver yields cosmetically suboptimal exception when bin mahout runs without args on some Hadoop versions |
<nb> public final class Interval
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractInterval implements ReadableInterval {
COMMENT
COMMENT
public long toDurationMillis ( ) {
- return FieldUtils . safeAdd ( getEndMillis ( ) , - getStartMillis ( ) ) ;
+ re... | Fixed bug with uncaught overflow in org joda time base AbstractInterval |
<nb> public class OperatorConventions {
. build ( ) ;
public static final ImmutableSet < JetToken > NOT_OVERLOADABLE =
- ImmutableSet . < JetToken > of ( JetTokens . ANDAND , JetTokens . OROR , JetTokens . ELVIS ) ;
+ ImmutableSet . < JetToken > of ( JetTokens . ANDAND , JetTokens . OROR , JetTokens . ELVIS ,... | add JetTokens EQEQEQ and JetTokens EXCLEQEQEQ to OperatorConventions NOT_OVERLOADABLE |
<nb> public class NioSocketService extends AbstractSocketService {
this . endpoint = new InetSocketAddress ( port ) ;
this . selectorManagers = new NioSelectorManager [ selectors ] ;
+
+ String threadFactoryPrefix = STRING0 + serviceName ;
this . selectorManagerThreadPool = Executors . newFixedThreadPool ( ... | Selector and Admin threads have same name |
<nb> public class LogoutFilter extends SpringSecurityFilter {
String targetUrl = request . getParameter ( STRING0 ) ;
if ( ! StringUtils . hasLength ( targetUrl ) ) {
- targetUrl = logoutSuccessUrl ;
+ targetUrl = getLogoutSuccessUrl ( ) ;
}
if ( ! StringUtils . hasLength ( targetUrl ) ) {
<nb> public... | Make logoutSuccessUrl accessible to sub classes |
<nb> import NAMESPACE ;
public class TestExecutionAndCoveragePublisher implements ReportPublisherStep {
- private final class TestConverter implements Function < MutableTestCase , BatchReport . Test > {
+ private static final class TestConverter implements Function < MutableTestCase , BatchReport . Test > {
... | Fix some quality flaws |
<nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider {
. parseWWWAuthenticateHeader ( auth )
. build ( ) ;
if ( auth . toLowerCase ( ) . startsWith ( STRING0 ) ) {
+ req . getHeaders ( ) . remove ( Header . Authorization . toString ( ) ) ;
try {
req . getHeaders ( ) . add ( Header . Autho... | Remove any previous auth headers |
<nb>
COMMENT
COMMENT
COMMENT
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- COMMENT
SINGLE
SINGLE
SINGLE
<nb>
COMMENT
COMMENT
COMMENT
- SINGLE ... | Removed commented out AGPL headers from some java files |
<nb> public class ONetworkProtocolDistributed extends ONetworkProtocolBinary implemen
@ override
protected void parseCommand ( ) throws IOException , InterruptedException {
- if ( clientId == null && data . clientId != null )
+ if ( clientId == null && data . clientId != null && data . clientId . startsWith (... | Fixed bug found by Anton in binary protocol on clientId in OPEN and CONNECT |
<nb> public class JingleUtils
else
paramsMap . put ( paramName , param . getValue ( ) ) ;
}
-
- SINGLE
+
for ( String attr : payloadType . getAttributeNames ( ) )
{
+ SINGLE
if ( attr . equals ( STRING0 ) || attr . equals ( STRING1 ) )
paramsMap . put ( attr , payloadType . getAttributeAsString ( ... | Parse ptime parameter into media format |
<nb> public class Translog extends AbstractIndexShardComponent implements IndexShardC
public boolean ensureSynced ( Location location ) throws IOException {
try ( ReleasableLock lock = readLock . acquire ( ) ) {
if ( location . generation == current . generation ) { SINGLE
+ ensureOpen ( ) ;
return current . ... | simplify code and use members directly |
<nb> class DisambiguationPatternRuleReplacer extends AbstractPatternRulePerformer {
unifiedTokens [ i ] . setStartPos ( whTokens [ position ] . getStartPos ( ) ) ;
final String prevValue = whTokens [ position ] . toString ( ) ;
final String prevAnot = whTokens [ position ] . getHistoricalAnnotations ( ) ;
+ Lis... | fix bug unification removed chunk info |
<nb> public abstract class TestApiBase {
@ afterclass ( alwaysRun = true )
public void tearDown ( ) {
try {
- busService . getBus ( ) . register ( testListener ) ;
+ busService . getBus ( ) . unregister ( testListener ) ;
( ( DefaultBusService ) busService ) . stopBus ( ) ;
+ if ( helper != null ) {
+ h... | Stop test mysql instances correctly at the end of the tests |
<nb> public class CropImageView extends ImageView {
SINGLE
- private static final int HANDLE_SIZE_IN_DP = NUMBER0 ;
- private static final int MIN_FRAME_SIZE_IN_DP = NUMBER1 ;
- private static final int FRAME_STROKE_WEIGHT_IN_DP = NUMBER2 ;
+ private static final int HANDLE_SIZE_IN_DP = NUMBER3 ;
+ priv... | Modify default value |
<nb> public class SqlTaskExecution
@ override
public synchronized void initialize ( )
{
- driver = driverSupplier . apply ( driverContext ) ;
+ try {
+ driver = driverSupplier . apply ( driverContext ) ;
+ }
+ catch ( Throwable e ) {
+ driverContext . failed ( e ) ;
+ throw e ;
+ }
}
@ overr... | If Driver creation fails fail the query |
<nb> import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add provenance explanation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
i... | remove deprecated junit Assert imports |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public final class Predicates {
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public interface Tree < T > extends Traversable < T > { | we use only one author tag |
<nb> public abstract class NanoHTTPD {
}
}
}
+
+ public final int getListeningPort ( ) {
+ return myServerSocket == null ? - NUMBER0 : myServerSocket . getLocalPort ( ) ;
+ }
+
+ public final boolean wasStarted ( ) {
+ return myServerSocket != null && myThread != null ;
+ }
+
+ public final bo... | Adding methods to check server availability |
<nb> public class SearchManager
public final static String APP_DATA = STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public final static String SOURCE = STRING1 ;
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove SearchManager SOURCE |
<nb> public class MessagingController implements Runnable {
String newUid = remoteUidMap . get ( remoteSrcUid ) ;
Message localDestMessage = localDestFolder . getMessage ( localDestUid ) ;
- localDestMessage . setUid ( newUid ) ;
- localDestFolder . changeUid ( ( LocalMessage ) localDestMessage ) ;
- for ( ... | Fixed potential NullPointerException |
<nb> public class GtfsGraphBuilderImpl implements GraphBuilder {
@ override
public void handleEntity ( Object bean ) {
int count = incrementCount ( bean . getClass ( ) ) ;
- if ( count % NUMBER0 == NUMBER1 )
+ if ( count % NUMBER2 == NUMBER1 )
if ( _log . isDebugEnabled ( ) ) {
String name = bean . getCla... | have less spam |
<nb> public class ClientDetailsServiceBuilder < B extends ClientDetailsServiceBuilder < B
result . setResourceIds ( resourceIds ) ;
if ( autoApprove ) {
result . setAutoApproveScopes ( scopes ) ;
+ } else {
+ result . setAutoApproveScopes ( autoApproveScopes ) ;
}
return result ;
} | ClientBuilder should forward configured auto approve scopes |
<nb> public final class SessionInfoTest {
private static final int MAX_LEN = NUMBER0 ;
private static final int DELTA = NUMBER1 ;
- private static final String SESSIONINFOR_TOSTRING =
- STRING0 ;
-
private int mSessionTimeoutMs ;
COMMENT
<nb> public final class SessionInfoTest {
SessionInfo tSessi... | Fixing a failing test |
<nb>
COMMENT
$Id$
- Copyright NUMBER0 ( C ) James Strachan and Bob Mcwhirter . All Rights Reserved .
+ Copyright NUMBER0 ( C ) Jochen Theodorou . All Rights Reserved .
Redistribution and use of this software and associated documentation
( STRING0 ) , with or without modification , are permitted provided... | corrected newlines and copyright |
<nb> public class WalletProtobufSerializerTest {
@ before
public void setUp ( ) throws Exception {
BriefLogFormatter . initVerbose ( ) ;
+ Context ctx = new Context ( params ) ;
myWatchedKey = new ECKey ( ) ;
myWallet = new Wallet ( params ) ;
myKey = new ECKey ( ) ; | Create context for WalletProtobufSerializerTest |
<nb> public class AceEditorWidget extends Composite
editor_ = AceEditorNative . createEditor ( getElement ( ) ) ;
editor_ . manageDefaultKeybindings ( ) ;
editor_ . getRenderer ( ) . setHScrollBarAlwaysVisible ( false ) ;
+ editor_ . getRenderer ( ) . setScrollPastEnd ( true ) ;
editor_ . setShowPrintMargin (... | enable scroll past end in Ace renderer |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | changed obsolete ref to ProcessEngineBuilder to ProcessEngineConfiguration |
<nb> public class ScopeChooserCombo extends ComboboxWithBrowseButton implements Dispo
createPredefinedScopeDescriptors ( model ) ;
- model . addElement ( new ScopeSeparator ( STRING0 ) ) ;
final List < NamedScope > changeLists = ChangeListsScopesProvider . getInstance ( myProject ) . getCustomScopes ( ) ;
-... | hide empty vcs scope when vcs is not configured |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NioWorker implements Runnable {
}
}
- static MessageEvent c... | Removed unused method |
<nb> public final class DBTasks {
private static int performAutoCleanup ( final Context context ,
final int episodeNumber ) {
- List < FeedItem > candidates = DBReader . getDownloadedItems ( context ) ;
+ List < FeedItem > candidates = new ArrayList < FeedItem > ( ) ;
+ List < FeedItem > downloadedItems = D... | Fixed ConcurrentModificationException in performAutoCleanup |
<nb> final class ViewHolder {
public static View buildViewForCrouton ( Crouton crouton ) {
setUpViewHolder ( crouton ) ;
- viewHolder . view . setBackgroundColor ( crouton . getStyle ( ) . colorResourceId ) ;
+ viewHolder . view . setBackgroundColor ( getCroutonBackgroundColor ( crouton ) ) ;
viewHolder . t... | Fix wrong crouton background with getting real background resource ID |
<nb> public class Notification implements Parcelable
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final int FLAG_AUTO_CANCEL = NUMBER0 ; | Fix longstanding nonsense in javadocs |
<nb> public final class AbstractJobTest extends MahoutTestCase {
}
} ;
- SINGLE
+ SINGLE
ToolRunner . run ( fact . getJob ( ) , new String [ NUMBER0 ] ) ;
assertFalse ( STRING0 , testMap . containsKey ( STRING1 ) ) ; | Fixed typo in comment |
<nb> public class EhCacheCacheManager extends AbstractCacheManager {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public net . sf . ehcache . CacheManager getCacheManager ( ) {
+ return cacheManager ;
+ }
+
+ COMMENT
+ COMMENT
COMMENT
public void setCacheManager ( net . sf . ehcache .... | add getCacheManager for access to native class |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class PsiFileStubImpl < T extends PsiFile > extends StubBase < T > implements PsiFileStub < T > {
<nb> public class PsiFileStubImpl < T extends PsiFile > extends StubBase < T > implements P
T f... | a bit better diagnostics in PsiFileStubImpl |
<nb>
public class Main {
public static void main ( String [ ] args ) {
- if ( args . length < NUMBER0 ) ;
- throw new IllegalArgumentException ( STRING0 ) ;
+ SINGLE
+ new Exception ( ) ;
}
}
<nb>
public class Main {
public static void main ( String [ ] args ) {
- if ( args . length < NUMBER... | Fix sample errors for maven and gradle |
<nb> public class WifiStateMachine extends StateMachine {
private INetworkManagementService mNwService ;
private ConnectivityManager mCm ;
+ private final boolean mWifiSupported ;
private final boolean mP2pSupported ;
private final AtomicBoolean mP2pConnected = new AtomicBoolean ( false ) ;
private boolea... | Don t grab wakelock if Wifi feature not supported on device |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlogPreferencesActivity extends ActionBarActivity {
private void removeBlog ( ) {
if ( WordPress . wpDB . deleteBlog ( th... | Re add the code that removes Stats after merging with develop |
<nb> public class CssCompressor {
SINGLE
css = css . replaceAll ( STRING0 , STRING1 ) ;
+ SINGLE
+ css = css . replaceAll ( STRING2 , STRING3 ) ;
+ css = css . replaceAll ( STRING4 , STRING1 ) ;
+
SINGLE
SINGLE
- css = css . replaceAll ( STRING5 , STRING6 ) ;
+ css = css . replaceAll ( STRING5 , S... | Add a CSS compression regex for handling multiple charset declarations in a single file |
<nb> public class Intent implements Parcelable , Cloneable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class BatteryStats implements Parcelable {
prepareForDumpLocked ( ) ... | Fix issue android app doc bump battery stats checkin version |
<nb> public class RouteDirectionInfo {
public String getDescriptionRoute ( OsmandApplication ctx ) {
if ( ! descriptionRoute . endsWith ( STRING0 + OsmAndFormatter . getFormattedDistance ( distance , ctx ) ) ) {
- return descriptionRoute + STRING0 + OsmAndFormatter . getFormattedDistance ( distance , ctx ) ;
... | provide extra trim |
<nb> public class GeoDistanceRangeQueryTests extends AbstractQueryTestCase < GeoDistanc
builder . from ( fromValueMeters ) ;
break ;
case NUMBER0 :
- builder . to ( toValue ) ;
+ builder . to ( toValueMeters ) ;
break ;
case NUMBER1 :
builder . from ( fromValueMeters ) ; | Correcting maxRadius units in GeoDistanceRangeQueryTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Facade , ViewContextEx , PropertyChangeListener , SwitchProvider ,
- QuickActionProvider , DockContainer {
+ QuickActionProvider , DockContainer . Dialog {
@ nonnls public static fin... | create debugger subwindows as dialogs with minimum decorations |
<nb> public class CommandLineProcessor {
if ( StringUtil . isQuotedString ( arg ) ) {
arg = StringUtil . stripQuotesAroundValue ( arg ) ;
}
- if ( currentDirectory != null && ! new File ( arg ) . isAbsolute ( ) ) {
- arg = new File ( currentDirectory , arg ) . getAbsolutePath ( ) ;
+ if ( ! new File ( arg )... | can t open a project by relative path |
<nb> public class AlertPatch implements Serializable {
if ( direction != null && direction . equals ( STRING0 ) ) {
direction = null ;
}
- this . direction = direction ;
+ this . directionId = direction ;
}
@ xmlelement | Fix setting the wrong field in setDirectionId |
<nb> abstract class SkylarkDoc {
}
SINGLE
- if ( ! Pattern . matches ( STRING0 , doc ) ) {
+ if ( Pattern . matches ( STRING1 , doc ) ) {
SINGLE
doc += STRING2 ;
} | Fix regular expression in order to produce correct documentation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
... | Remove unused imports |
<nb> abstract class TransitiveBaseTraversalFunction < TProcessedTargets >
}
private static void visitRule ( Target target , Set < Label > labels ) {
- labels . addAll ( ( ( Rule ) target ) . getLabels ( Rule . NO_NODEP_ATTRIBUTES ) ) ;
+ labels . addAll ( ( ( Rule ) target ) . getTransitions ( Rule . NO_NODEP... | We add the result of this call to a Set |
<nb> public class Foundation {
}
public NSArray keys ( ) { return new NSArray ( invoke ( myDelegate , STRING0 ) ) ; }
+
+ @ notnull
+ public static Map < String , String > toStringMap ( ID delegate ) {
+ NSDictionary dict = new NSDictionary ( delegate ) ;
+
+ NSArray keys = dict . keys ( ) ;
+ Map <... | converting NSDictionary to Map |
<nb> public abstract class KeyColumnValueStoreTest {
private Logger log = LoggerFactory . getLogger ( KeyColumnValueStoreTest . class ) ;
- int numKeys = NUMBER0 ;
- int numColumns = NUMBER1 ;
+ int numKeys = NUMBER2 ;
+ int numColumns = NUMBER3 ;
protected String storeName = STRING0 ;
<nb> public... | Accidentally committed debugging changes to KeyColumnValueStoreTest |
<nb> public class ArgumentCaptorTest extends TestBase {
}
public T getValue ( ) {
- SINGLE
+ SINGLE
return ( T ) argument ;
}
}
<nb> public class ArgumentCaptorTest extends TestBase {
@ mock IMethods mock ;
- SINGLE
+ SINGLE
@ test
public void shouldUseArgumentCaptorInEasyMockStyle ( ) {... | moved a TODO to next release |
<nb> public class MasterFaultToleranceIntegrationTest {
. setUnderStorageType ( UnderStorageType . SYNC_PERSIST ) . build ( ) ;
for ( int k = NUMBER0 ; k < clients ; k ++ ) {
TachyonFileSystem tfs = mLocalTachyonClusterMultiMaster . getClient ( ) ;
- LOG . info ( STRING0 + k ) ;
tfs . getOutStream ( new Tachy... | Remove debug logging |
<nb> public class RecentsTaskLoadPlan {
private static boolean DEBUG = false ;
private static int MIN_NUM_TASKS = NUMBER0 ;
- private static int SESSION_BEGIN_TIME = NUMBER1 COMMENT * NUMBER1 COMMENT * NUMBER2 COMMENT ;
+ private static int SESSION_BEGIN_TIME = NUMBER3 COMMENT * NUMBER1 COMMENT * NUMBER1 COMM... | Fixing typo in history check |
<nb> public class ResponseAssert extends AbstractAssert < ResponseAssert , Response > {
if ( statusFamily == Response . Status . Family . CLIENT_ERROR || statusFamily == Response . Status . Family . SERVER_ERROR ) {
failWithMessage ( STRING0 , statusFamily ) ;
}
+
+ return this ;
}
public ResponseAssert... | Adding missing return statements |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConfigurationFrame
}
else
{
- JPanel panel = new TransparentPanel ( new BorderLayout ( ) ) ;
-
- topComponent = panel ;
+ topComponent = new Transpare... | Add a border to the options form buttons when OS is not MacOS |
<nb> protected static DataSource dataSource ;
processEngine . getProcessEngineConfiguration ( ) . getClock ( ) . setCurrentTime ( mondayMorningDate ) ;
boolean allJobsProcessed = false ;
+ Date waitTimeStartDate = new Date ( ) ;
while ( ! allJobsProcessed ) {
long count = historyService . createHistoricAc... | Making sure the AsyncExecutorQueueOverflowTest doesn t run forever some databases can be funny like that |
<nb> public final class ObjectHelper {
if ( value instanceof Boolean ) {
return ( Boolean ) value ;
} else if ( value instanceof String ) {
- if ( STRING0 . equals ( value ) ) {
+ if ( STRING0 . equalsIgnoreCase ( ( String ) value ) ) {
return true ;
- } else if ( STRING1 . equals ( value ) ) {
+ } else... | Fixed CS errors |
<nb> private class WorkerProcess implements Runnable {
outputProtocol = outputProtocolFactory_ . getProtocol ( outputTransport ) ;
SINGLE
SINGLE
- while ( ! stopped_ && processor . process ( inputProtocol , outputProtocol ) ) { }
+ while ( ! stopped_ && processor . process ( inputProtocol , outputProtocol ) )... | Reset the input and output protocol on each after each successful call |
<nb> public final class AnnotationVisibility {
return NAMES [ visibility ] ;
}
+ public static int getVisibility ( String visibility ) {
+ visibility = visibility . toLowerCase ( ) ;
+ if ( visibility . equals ( STRING0 ) ) {
+ return BUILD ;
+ }
+ if ( visibility . equals ( STRING1 ) ) {
+ return R... | Add AnnotationVisibility getVisibility String |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class TagViewFragment extends TaskListFragment {
<nb> public class TagViewFragment extends TaskListFragment {
flf . clear ( ) ;
}
taskAdapter = null ;
- refresh ( ) ;
... | Hopefully fixed a refresh bug in the tag view fragment not sure what s causing it though |
<nb> public class AsyncMiddleManServlet extends AbstractProxyServlet
return new ProxyWriter ( clientRequest , proxyResponse ) ;
}
+ @ override
protected Response . CompleteListener newProxyResponseListener ( HttpServletRequest clientRequest , HttpServletResponse proxyResponse )
{
return new ProxyResponseL... | Added missing Override annotations |
<nb> public class UrlShortener {
if ( url . startsWith ( STRING0 + shortUrl + STRING1 ) || url . startsWith ( STRING2 + shortUrl + STRING1 ) ) {
return true ;
}
- }
return false ;
} | Revert closing unmatch bracket |
<nb> public class UimaTokenizer implements Tokenizer {
private int index ;
private static Logger log = LoggerFactory . getLogger ( UimaTokenizer . class ) ;
private boolean checkForLabel ;
-
+ private TokenPreProcess preProcess ;
public UimaTokenizer ( String tokens , UimaResource resource , boolean che... | add token pre process for uima |
<nb> public final class IDEAConfig extends Config {
return pathToIndicationFileUri . resolve ( pathToLibFileUri ) . toString ( ) ;
}
catch ( URISyntaxException e ) {
- e . printStackTrace ( ) ; SINGLE
return null ;
}
} | Remove debug output from IDEAConfig class |
<nb> public class GHDirectory implements Directory
void removeByName ( String name )
{
- if ( map . remove ( name ) == null )
- {
- throw new IllegalStateException ( STRING0 + name ) ;
- }
-
+ DataAccess da = map . remove ( name ) ;
+ if ( da == null )
+ throw new IllegalStateException ( STRING0 +... | fixing minor bug for dataaccess removal on windows |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> public class TestNet3Params extends NetworkParameters {
subsidyDecreaseBlockCount = NUMBER0 ;
String genesisHash = genesisBlock . getHashAsString ( ) ;
checkState ( genesisHash . equa... | Use the correct alert signing key for testnet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.