diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WifiManager {
COMMENT
public void acquire ( ) {
synchronized ( mBinder ) {
- if ( mRefCounted ? ( ++ mRefCount > NUMBER0 ) : ( ! mHeld ) ) {
+ if ( mRefCounted ? ( ++ mRefCount == NUMBER1 ) : ( ! mHeld ) ) {
try {
mService . acquireWifiLock ( mBinder , mLockType , mTag , mWorkSource ) ; ... | Fix reference counting of wifi locks |
<nb> import NAMESPACE ;
COMMENT
public class MultiWaveView extends View {
private static final String TAG = STRING0 ;
- private static final boolean DEBUG = true ;
+ private static final boolean DEBUG = false ;
SINGLE
private static final int STATE_IDLE = NUMBER0 ; | Turn off debugging in MultiWaveView |
<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 ;
- import N... | remove duplicated code |
<nb> import NAMESPACE ;
import NAMESPACE ;
@ suppresswarnings ( { STRING0 , STRING1 , STRING2 , STRING3 } )
- @ generated ( value = STRING4 , date = STRING5 )
+ @ generated ( value = STRING4 , date = STRING6 )
public class ClusterSummary implements org . apache . thrift . TBase < ClusterSummary , ClusterSum... | Revert timestamp only change |
<nb> public final class FileDataModelTest extends TasteTestCase {
super . setUp ( ) ;
File tmpDir = new File ( System . getProperty ( STRING0 ) ) ;
File tmpLoc = new File ( tmpDir , STRING1 ) ;
- if ( ! tmpLoc . mkdirs ( ) ) {
- throw new IOException ( ) ;
+ if ( tmpLoc . exists ( ) ) {
+ if ( tmpLoc . is... | Fixed bad logic checking the result of mkdirs |
<nb> import static NAMESPACE ;
public class SearchWithRandomExceptionsTests extends ElasticsearchIntegrationTest {
@ test
+ @ slow SINGLE
@ testlogging ( STRING0 )
public void testRandomDirectoryIOExceptions ( ) throws IOException , InterruptedException , ExecutionException {
String mapping = XContentFact... | mark just this method as Slow can easily take over a minute |
<nb> public final class Dashboard {
private String description ;
private DashboardLayout layout = DashboardLayout . TWO_COLUMNS ;
private ListMultimap < Integer , Widget > widgetsByColumn = ArrayListMultimap . create ( ) ;
- private boolean global ;
+ private boolean global = false ;
private Dashboard ( )... | Explicitly set the default value of the field Dashboard global |
<nb> public final class UndertowSession implements Session {
private final Set < Session > openSessions ;
private final String subProtocol ;
private final List < Extension > extensions ;
+ private volatile int maximumBinaryBufferSize = NUMBER0 ;
+ private volatile int maximumTextBufferSize = NUMBER0 ;
pub... | Fix bug in JSR web socket buffer limit code |
<nb> public class TesterDigestAuthenticatorPerformance {
public String getRequestURI ( ) {
return CONTEXT_PATH + URI ;
}
+
+ @ override
+ public org . apache . coyote . Request getCoyoteRequest ( ) {
+ return new org . apache . coyote . Request ( ) ;
+ }
}
} | Fix NPE in tests |
<nb> public class RateOptions {
COMMENT
COMMENT
+ COMMENT
+ public RateOptions ( ) {
+ this . counter = false ;
+ this . counter_max = Long . MAX_VALUE ;
+ this . reset_value = DEFAULT_RESET_VALUE ;
+ }
+
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add default empty constructor to RateOptions |
<nb> public class StatsGeoviewsFragment extends StatsAbstractListFragment {
. append ( STRING0 )
. append ( STRING1 )
. append ( STRING2 )
- . append ( STRING3 +
- STRING4 )
- . append ( STRING5 + label + STRING6
- + dataToLoad +
- STRING7 )
+ . append ( STRING3 )
+ . append ( STRING4 )
+ . append... | Use append instead of when concat strings |
<nb> import NAMESPACE ;
COMMENT
public class WebJarsResourceResolver extends AbstractResourceResolver {
- private final static String WEBJARS_LOCATION = STRING0 ;
+ private final static String WEBJARS_LOCATION = STRING1 ;
private final static int WEBJARS_LOCATION_LENGTH = WEBJARS_LOCATION . length ( ) ; | Remove duplicate slash from resolved WebJar locations |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused imprt |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CopyFilesOrDirectoriesHandler extends CopyHandlerDelegateBase {
if ( defaultTargetDirectory == null ) return ;
}
+ if (... | provide default directory |
<nb> public class PApplet extends Applet
return new PFont ( input ) ;
} catch ( Exception e ) {
- die ( STRING0 + filename + STRING1 +
- STRING2 +
+ die ( STRING0 + filename + STRING3 +
+ STRING4 +
STRING5 , e ) ;
}
return null ; | remove newlines from error message about fonts |
<nb> public class FeedRefreshUpdater {
ApplicationSettings settings = applicationSettingsService . get ( ) ;
int threads = Math . max ( settings . getDatabaseUpdateThreads ( ) , NUMBER0 ) ;
log . info ( STRING0 , threads ) ;
- locks = Striped . lock ( threads ) ;
+ locks = Striped . lazyWeakLock ( threads ) ;... | use weak references for lock keys |
<nb> public class TiledLayer {
COMMENT
public int [ ] [ ] tiles ;
- COMMENT
- TiledLayer ( ) {
- }
-
public int getWidth ( ) {
if ( tiles [ NUMBER0 ] == null ) return NUMBER0 ;
return tiles [ NUMBER0 ] . length ; | Removed package private constructor |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CompletionUtil {
public static LinkedHashSet < String > sortMatching ( final PrefixMatcher matcher , Collection < String > _names ) {
ProgressManager . checkCanceled ( ) ;
+ if ( matcher . getPrefix ( ) . isEmpty ( ) ) {
... | Do not sort completion variants using matcher with empty prefix |
<nb> public class StreetTransitLink extends Edge {
if ( s0 . getOptions ( ) . wheelchairAccessible && ! wheelchairAccessible ) {
return null ;
}
- SINGLE
- SINGLE
- SINGLE
- Edge backEdge = s0 . getBackEdge ( ) ;
- Edge bbackEdge = s0 . getBackState ( ) != null ? s0 . getBackState ( )
- . getBackEdge ... | remove mis placed broken and obsolete path restrictions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TCPNetworkConnection implements NetworkConnection {
versionMessage . bestHeight
} ) ;
SINGLE
- SINGLE
- if ( ! versionMessage . hasBlock... | Don t use peers that claim to have a block chain and then report a height of zero |
<nb> public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
MockLibraryUtil . compileKotlin ( sourcesDir , new File ( outputDir ) , CUSTOM_LIBRARY_JAR . getPath ( ) ) ;
- List < String > options = Arrays . asList ( STRING0 , outputDir ) ;
+ List < String > options = Arrays . asList ( STRING... | add kotlin runtime to classpath compiling Java Sources for tinyApp |
<nb> public class KeySnapshot {
public boolean isLockable ( ) {
return TypeMap . theFreezable ( _type ) instanceof Lockable ;
}
+
+ public boolean isSubclassOf ( Class clz ) { return Value . isSubclassOf ( _type , clz ) ; }
}
private static final long _updateInterval = NUMBER0 ;
private static volatile ... | Fix snapshot filter for Frame |
<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
if ( reader . getCometSupportClass ( ) != null ) {
cometSupport = ( CometSupport )
- c . loadClass ( reader . getCometSupportClass ( ) ) . newInstance ( ) ;
+ c . loadClass ( reader . getCometSupportClass ( ) )
+ . getDecl... | Properly load the CometSupport instance |
<nb> public class BridgeMethodCompiler extends BroMethodCompiler {
SINGLE
SINGLE
fn . add ( new Inttoptr ( targetFn , fn . getParameterRef ( NUMBER0 ) , targetFn . getType ( ) ) ) ;
- args . remove ( NUMBER0 ) ;
+ args . remove ( originalMethod == method ? NUMBER0 : NUMBER1 ) ;
}
SINGLE | Remove proper arg when dynamic true |
<nb> public class EvaluatorTest {
@ test
public void shouldShadowPreviousResult ( ) {
assertThat ( evaluating ( STRING0 , STRING1 , STRING2 ) , hasResult ( NUMBER0 ) ) ;
+ assertThat ( evaluating ( STRING0 , STRING3 , STRING2 ) , hasResult ( NUMBER1 ) ) ;
}
@ test | added support for mutation of results e g with |
<nb> public class Busted implements RecordFormats
@ override
public String storeVersion ( )
{
- return STRING0 ;
+ SINGLE
+ return STRING1 ;
}
@ override | Clarify what storeVersion is |
<nb>
COMMENT
package NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class OperatorAllTest {
@ test
<nb> public class Operat... | Add test of backpressure to OperatorAll |
<nb> public class PersistentHashMap < Key , Value > extends PersistentEnumeratorDelegate <
private final boolean myCanReEnumerate ;
private int myLargeIndexWatermarkId ; SINGLE
private boolean myIntAddressForNewRecord ;
- private static final boolean doHardConsistencyChecks = true ;
+ private static final boo... | disable hard consistency check |
<nb> class DialogUtils {
private final ViewFetcher viewFetcher ;
private final Sleeper sleeper ;
private final static int TIMEOUT_DIALOG_TO_CLOSE = NUMBER0 ;
- private final int MINISLEEP = NUMBER1 ;
+ private final int MINISLEEP = NUMBER2 ;
COMMENT
COMMENT
<nb> class DialogUtils {
final long endTim... | Modified sleep value in DialogUtils |
<nb> public class BackupCoreIT
{
SINGLE
DbRepresentation beforeChange = DbRepresentation . of ( createSomeData ( cluster ) ) ;
- File backupPathPerCoreMachine = new File ( backupPath , db . id ( ) . toString ( ) ) ;
+ File backupPathPerCoreMachine = new File ( backupPath , STRING0 + db . id ( ) . hashCode ( )... | Fix broken backup path on windows |
<nb> public class RealtimePlumber implements Plumber
}
finally {
try {
- closeable . close ( ) ;
+ if ( closeable != null ) {
+ closeable . close ( ) ;
+ }
}
catch ( IOException e ) {
throw Throwables . propagate ( e ) ; | Fix a small bug where an NPE can occur if a closeable is not present |
<nb> public class DashChunkSource implements ChunkSource {
SINGLE
SINGLE
return ;
- } else if ( ! currentManifest . dynamic ) {
- SINGLE
+ } else {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
PeriodHolder lastPeriodHolder = periodHolders . valueAt ( periodHolders . size ( ) - NUMBER0 ) ;
if ( previous .... | Handle minor timing differences |
<nb> public class PyDocstringGenerator {
final VirtualFile virtualFile = myFile . getVirtualFile ( ) ;
if ( virtualFile == null ) return ;
- OpenFileDescriptor descriptor = new OpenFileDescriptor (
- myProject , virtualFile , myDocStringOwner . getTextOffset ( ) + myDocStringOwner . getTextLength ( )
- ) ; ... | fixed template offsets in docstring generator |
<nb> public class MimeMessageHelper {
String mimeType = multipart . getMimeType ( ) ;
String contentType = String . format ( STRING0 , mimeType , multipart . getBoundary ( ) ) ;
part . setHeader ( MimeHeader . HEADER_CONTENT_TYPE , contentType ) ;
- if ( MimeUtility . isSameMimeType ( mimeType , STRING1 ) ) {
... | encode textual bodies as quoted printable by default |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileTreeBuilder extends AbstractTreeBuilder {
}
protected boolean isAutoExpandNode ( NodeDescriptor nodeDescriptor ) {
... | File system tree autoexpand root node |
<nb> public class GenerateDocBookMojo extends AbstractMojo {
for ( int i = NUMBER0 ; i < resources . length ; ++ i ) {
out . println ( STRING0 + removeExtension ( resources [ i ] ) + STRING1 + removeExtension ( resources [ i ] )
- + STRING2 ) ;
+ + STRING3 ) ;
}
out . println ( STRING4 ) ; | removed extra space on entity declaration in the main docbook xml |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ... | implement constants is broken abstraction use import instead |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class EditorTabbedContainer implements Disposable , CloseAction . Clos
}
if ( GeneralSettings . getInstance ( ) . isSyncO... | mark opened files as dirty before refresh |
<nb> public abstract class AbstractGrailsHibernateTests extends GroovyTestCase {
protected final void tearDown ( ) throws Exception {
ConfigurationHolder . setConfig ( null ) ;
ApplicationHolder . setApplication ( null ) ;
- GroovySystem . getMetaClassRegistry ( ) . setMetaClassCreationHandle ( new MetaClassReg... | removed meta classes from registry on tearDown to improve mem consumption |
<nb> public abstract class TitanGraphTest extends TitanGraphTestCommon {
TitanKey weight = makeWeightPropertyKey ( STRING0 ) ;
TitanVertex n1 = tx . addVertex ( ) ;
n1 . addProperty ( weight , FLOAT0 ) ;
- ( ( TitanKey ) tx . getType ( STRING1 ) ) . isUnique ( Direction . OUT ) ;
clopen ( ) ;
long nid = n1 ... | Accidentally committed rubbish |
<nb> public class MapInfoLayer extends OsmandMapLayer {
mapInfoControls . changeVisibility ( mi ) ;
}
recreateControls ( ) ;
+ listAdapter . notifyDataSetInvalidated ( ) ;
} else if ( position == NUMBER0 ) {
mapInfoControls . resetToDefault ( ) ;
recreateControls ( ) ;
+ listAdapter . notifyDataSetInval... | Fix UI feedback |
<nb> public class Media implements java . io . Serializable {
public Player player ;
- @ optional SINGLE
public String copyright ; SINGLE
public Media ( ) { } | Delete Optional in data media Media class |
<nb> public class SockJsThreadPoolTaskScheduler extends ThreadPoolTaskScheduler {
SINGLE
private static boolean hasRemoveOnCancelPolicyMethod = ClassUtils . hasMethod (
- ScheduledThreadPoolExecutor . class , STRING0 , Boolean . class ) ;
+ ScheduledThreadPoolExecutor . class , STRING0 , boolean . class ) ;
... | Fix failing test |
<nb> public class ExtensionGlobalExcludeURL extends ExtensionAdaptor {
@ override
public void optionsLoaded ( ) {
GlobalExcludeURLParam geup = getParam ( ) ;
- log . warn ( STRING0 ) ;
geup . parse ( ) ;
}
<nb> public class OptionsGlobalExcludeURLPanel extends AbstractParamPanel {
globalExcludeURLPara... | Remove unnecessary log warnings |
<nb> public class HttpConnection extends AbstractConnection implements Runnable , Http
super ( true ) ;
}
- void reset ( ResponseInfo info , ByteBuffer content , boolean last , Callback callback )
+ private void reset ( ResponseInfo info , ByteBuffer content , boolean last , Callback callback )
{
if ( res... | Cannot throw exceptions from reset must fail the callback instead |
<nb> public class DefaultDaemonConnector implements DaemonConnector {
private DaemonConnection findConnection ( List < DaemonInfo > daemonInfos , Spec < ? super DaemonContext > constraint ) {
for ( DaemonInfo daemonInfo : daemonInfos ) {
if ( ! constraint . isSatisfiedBy ( daemonInfo . getContext ( ) ) ) {
+ LO... | Added a bit more logging for the daemon criteria matching |
<nb> public class SvnDiffViewer implements DiffViewer {
SINGLE
private void updatePropertiesPanel ( ) {
+ boolean wasFocused = myContext . isFocused ( ) ;
if ( ! mySettings . isHideProperties ( ) ) {
mySplitter . setSecondComponent ( myPropertiesViewer . getComponent ( ) ) ;
myNotificationPanel . setConte... | do not lose focus on hiding of properties panel |
<nb> public class Main
moduleIni ( args , module , true , false ) ;
}
- SINGLE
+ SINGLE
for ( FileArg arg : args . getFiles ( ) )
{
File file = baseHome . getBaseFile ( arg . location ) ;
<nb> public class Main
if ( ! file . exists ( ) )
{
- args . setRun ( false ) ;
+ COMMENT
+ COMMENT
... | jetty start startup incorrectly requires directory in jetty base |
<nb> public class IndexerClusterCheckerThread extends Periodical {
final Notification notification = notificationService . buildNow ( )
. addType ( Notification . Type . ES_OPEN_FILES )
. addSeverity ( Notification . Severity . URGENT )
+ . addDetail ( STRING0 , node . getHostname ( ) )
. addDetail ( STRING1 ... | Add ES hostname to ES_OPEN_FILES notification |
<nb> public class MapActivityActions implements DialogProvider {
standardId == R . string . context_menu_item_destination_point ) {
boolean dest = standardId == R . string . context_menu_item_destination_point ;
String selected = mapActivity . getMapLayers ( ) . getContextMenuLayer ( ) . getSelectedObjectName ( )... | Fixed issue with Destination point description shows multiple times |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | fix compile errors |
<nb> public class MapStoreTest extends HazelcastTestSupport {
}
@ test
+ @ category ( NightlyTest . class )
public void testIssue1085WriteBehindBackup ( ) throws InterruptedException {
Config config = new Config ( ) ;
String name = STRING0 ;
<nb> public class MapStoreTest extends HazelcastTestSupport { ... | Moved slow tests to nightly |
<nb> class Tokeniser {
}
boolean isAppropriateEndTagToken ( ) {
+ if ( lastStartTag == null )
+ return false ;
return tagPending . tagName . equals ( lastStartTag . tagName ) ;
} | Fix NPE in style fragment parse |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ @ suppresswarnings ( STRING0 )
public class RequestFacade implements HttpServletRequest {
<nb> public class RequestFacade implements HttpServletRequest {
}
}
-
public String getRealPath ( String path ) {
if ( request == null ) {
<nb> import NAMES... | Suppress deprecation warnings on the implementation classes |
<nb> public class ReverseNestedAggregator extends SingleBucketAggregator implements R
}
SINGLE
- int parentDoc = parentDocs . advance ( childDoc ) ;
+ final int parentDoc ;
+ if ( parentDocs . docID ( ) < childDoc ) {
+ parentDoc = parentDocs . advance ( childDoc ) ;
+ } else {
+ parentDoc = parentDoc... | Fix ReverseNestedAggregator to compute the parent document correctly |
<nb> public class HighlightBuilder extends AbstractHighlighterBuilder < HighlightBuilde
} else {
throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 , topLevelFieldName ) ;
}
+ } else if ( topLevelFieldName != null ) {
+ throw new ParsingException ( parser . getTokenLocation ( ) , STRING1 , t... | Adding checks for unexpected tokens in parser |
<nb> public class Publication implements AutoCloseable
newPosition = newPosition ( partitionIndex , ( int ) termOffset , position , result ) ;
}
- else if ( ! isConnected ( ) )
+ else if ( ! clientConductor . isPublicationConnected ( timeOfLastStatusMessage ( logMetaDataBuffer ) ) )
{
newPosition = NOT_CO... | remove redundant isClosed check on tryClaim offer |
<nb> public final class ButterKnife {
public static < T extends View > T findById ( Activity activity , int id ) {
return ( T ) activity . findViewById ( id ) ;
}
+
+ COMMENT
+ @ suppresswarnings ( { STRING0 , STRING1 } ) SINGLE
+ public static < T extends View > T findById ( Dialog dialog , int id ) {
... | Add version of ButterKnife findById for Dialog objects which infers the target type |
<nb> public class DocumentationManager implements ProjectComponent {
}
else if ( myPreviouslyFocused != null ) {
hint . showInBestPositionFor ( DataManager . getInstance ( ) . getDataContext ( myPreviouslyFocused ) ) ;
+ } else {
+ hint . showInBestPositionFor ( DataManager . getInstance ( ) . getDataContext ... | restore Ctrl Q from completion and Ctrl N |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Fix warning and add perf test documentation for PingPongLatencyTest |
<nb> public class CharacterSystem extends BaseComponentSystem implements UpdateSubscr
}
}
- @ receiveevent ( components = { CharacterComponent . class , LocationComponent . class } )
+ @ receiveevent ( components = { CharacterComponent . class , LocationComponent . class } , netFilter = RegisterMode . AUTHORI... | Handle activation requests as authority only |
<nb> public class HttpMessageConvertersTests {
HttpMessageConverter < ? > converter2 = mock ( HttpMessageConverter . class ) ;
HttpMessageConverters converters = new HttpMessageConverters ( converter1 ,
converter2 ) ;
- assertTrue ( converters . getConverters ( ) . contains ( converter1 ) ) ;
assertEquals ( c... | Remove redundant assertions |
<nb> public final class Library {
COMMENT
COMMENT
COMMENT
- public synchronized static boolean initialize ( String libraryName ) throws Exception {
+ public static synchronized boolean initialize ( String libraryName ) throws Exception {
if ( _instance == null ) {
if ( libraryName == null )
_instance = ... | Fix checkstyle issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix import bug |
<nb> import NAMESPACE ;
public class EntityParser {
public static void parseMapObject ( MapObject mo , Entity e ) {
+ parseMapObject ( mo , e , e . getId ( ) ) ;
+ }
+ public static void parseMapObject ( MapObject mo , Entity e , long lid ) {
mo . setId ( e . getId ( ) ) ;
if ( mo instanceof Amenity ) {... | Fix entity parser |
<nb> public class CvsApplicationLevelConfiguration implements NamedComponent , JDOMExt
try {
String line ;
while ( ( line = reader . readLine ( ) ) != null ) {
+ if ( line . startsWith ( STRING0 ) ) {
+ line = line . substring ( NUMBER0 ) ;
+ }
final int sepPosition = line . indexOf ( STRING1 ) ;
if ( s... | correctly read the lines from |
<nb> final class OverlayDisplayAdapter extends DisplayAdapter {
mInfo . width = mWidth ;
mInfo . height = mHeight ;
mInfo . refreshRate = mRefreshRate ;
+ mInfo . supportedRefreshRates = new float [ ] { mRefreshRate } ;
mInfo . densityDpi = mDensityDpi ;
mInfo . xDpi = mDensityDpi ;
mInfo . yDpi = mDensit... | Add supported refresh rates for all DisplayDeviceInfos |
<nb> public class SquidUtilities {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static < T > void addAll ( Collection < T > collection , T [ ] objects ) {
if ( objects != null ) { | Update a misleading outdated doc |
<nb> public abstract class ExpandableView extends FrameLayout {
@ override
public void getBoundsOnScreen ( Rect outRect , boolean clipToParent ) {
super . getBoundsOnScreen ( outRect , clipToParent ) ;
+ if ( getTop ( ) + getTranslationY ( ) < NUMBER0 ) {
+ SINGLE
+ outRect . top += getTop ( ) + getTranslat... | Fix notification bounds when top notification is scrolled |
<nb> public class Constants {
public static final String DEFAULT_JAAS_CONF = STRING0 ;
public static final String DEFAULT_LOGIN_MODULE_NAME =
STRING1 ;
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static final String USE_SUBJECT_CREDS_ONLY_PROPERTY =
- STRING2 ;
SINGLE
public static fin... | Remove unused constant |
<nb> public class ListsTools {
return false ; SINGLE
}
- Lists . Get request = listsService . get ( ) . setLimit ( LISTS_MAX_BATCH_SIZE ) ;
+ Lists . Get request = listsService . get ( ) ;
if ( hasMergedLists ) {
request . setUpdatedSince ( lastSyncTime ) ;
} | Use server defined default limit for get lists batch size |
<nb> public class ChatSystem extends BaseComponentSystem {
@ sender EntityRef sender ,
@ commandparameter ( value = STRING0 , suggester = CommandParameterSuggester . UsernameSuggester . class ) String username ,
@ commandparameter ( value = STRING1 , arrayDelimiter = CommandParameter . ARRAY_DELIMITER_VARARGS ) S... | Removed a debug message |
<nb> public class Mesh {
if ( indices . getNumIndices ( ) > NUMBER0 ) {
ShortBuffer buffer = indices . getBuffer ( ) ;
int oldPosition = buffer . position ( ) ;
+ int oldLimit = buffer . limit ( ) ;
buffer . position ( offset ) ;
buffer . limit ( offset + count ) ;
Gdx . gl10 . glDrawElements ( primitiveT... | changed Mesh restored indices buffer limit |
<nb> public interface Inventory {
COMMENT
COMMENT
public boolean contains ( ItemStack item ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean contains ( int materialId , int amount ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Implemented Inventory contains with a minimum amount of item required |
<nb> import NAMESPACE ;
import NAMESPACE ;
- public class SingleBlockingChannelEventLoop extends SingleThreadEventLoop {
+ class SingleBlockingChannelEventLoop extends SingleThreadEventLoop {
private final BlockingChannelEventLoop parent ;
private Channel ch ; | Hide internal class from users |
<nb>
COMMENT
- Copyright NUMBER0 , Google Inc .
+ Copyright NUMBER0 , NUMBER1 Google Inc .
All rights reserved .
Redistribution and use in source and binary forms , with or without
<nb> public class RefineTest {
System . setProperty ( STRING0 , STRING1 ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+... | Add some Javadoc |
<nb> public class ObjcRuleClasses {
for more information . If absent , the default entitlements from the
provisioning profile will be used .
< p >
- The following variables are substituted as per
- < a href = STRING0 > their definitions in Apple ' s documentation < / a > :
- $ ( AppIdentifierPrefix ) and $ ... | Fix entitlements substitution documentation |
<nb> public final class ViewRootImpl implements ViewParent ,
mFullRedrawNeeded = true ;
mLayoutRequested = true ;
- if ( lp . type == WindowManager . LayoutParams . TYPE_STATUS_BAR_PANEL ) {
+ if ( lp . type == WindowManager . LayoutParams . TYPE_STATUS_BAR_PANEL
+ || lp . type == WindowManager . LayoutPara... | Give IMEs the entire screen to use for measuring purposes |
<nb> public abstract class SearchResource extends RestResource {
} ;
}
- protected org . graylog2 . indexer . searches . timeranges . TimeRange restrictTimeRange ( final org . graylog2 . indexer . searches . timeranges . TimeRange timeRange ) {
+ protected org . graylog2 . plugin . indexer . searches . timera... | Fix class imports after rebase |
<nb> import 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 ;
import NAMESPACE ;
import NAM... | Removed the leftover imports |
<nb> public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase
public void testGremlinPostURLEncoded ( ) throws UnsupportedEncodingException
{
data . get ( ) ;
- String script = STRING0 ;
+ String script = STRING1 ;
gen ( )
. expectedStatus ( Status . OK . getStatusCode ( ) )
. des... | adding indexing example |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
@ path ( STRING0 )
public class GeocoderResource {
<nb> public class GeocoderResource {
if ( address == null ) {
badRequest ( STRING1 ) ;
}
- return geocoder . geocode ( address , bbox . env... | do not require bbox parameter to geocoder |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
@ runwith ( PaxExam . class )
public class CamelCmisTest extends AbstractFeatureTest {
- public static final String COMPONENT = extractName ( CamelCxfTest . class ) ;
+ public static final String COMPONENT = extractName ( CamelCmisTest . cl... | Fixed wrong test |
<nb> public class ActiveServices {
if ( res . record == null ) {
return - NUMBER0 ;
}
- if ( mAm . isSingleton ( res . record . processName , res . record . appInfo ,
- res . record . serviceInfo . name , res . record . serviceInfo . flags ) ) {
- userId = NUMBER1 ;
- res = retrieveServiceLocked ( service... | Fix service binding for singleUser services |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
public interface Clock {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Replaced full reference with import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ @ ignore SINGLE
public class DropwizardApacheConnectorTes... | disable flaky tests |
<nb> public class MethodMetaInfo extends Message {
@ override
public String toString ( ) {
- return STRING0 +
- STRING1 + type +
- STRING2 + methodName + STRING3 +
- STRING4 + ( paramTypes == null ? null : Arrays . asList ( paramTypes ) ) +
- STRING5 ;
+ return STRING0
+ + STRING1 + type
+ + STRIN... | Fix checkstyle issues |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class Vibrator
{
<nb> public class Vibrator
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void vibrate ( long milliseconds )
{
<nb> public class Vibrator
COMMENT
COMMENT
COMMENT
- COMMENT
- ... | Improve documentation on Vibrator vibrate |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SpringTypeConverter extends TypeConverterSupport {
}
SINGLE
- if ( type . isAss... | capture all structures of type collection |
<nb> abstract public class ModelCreators {
return this ;
}
- @ suppresswarnings ( STRING0 )
public Builder < T > withProjection ( ModelProjection < ? super T > projection ) {
projections . add ( projection ) ;
return this ; | Remove an unnecessary SuppressWarnings annotation |
<nb> public final class ModelXmlParsers {
throw new XMLStreamException ( STRING0 , reader . getLocation ( ) ) ;
}
SINGLE
- final List < AbstractSubsystemUpdate < ? , ? > > resultList = new ArrayList < AbstractSubsystemUpdate < ? , ? > > ( ) ;
- reader . handleAny ( resultList ) ;
- for ( AbstractSubsystemUp... | Use new result type |
<nb> public class Indexer {
new Object [ ] { response . getItems ( ) . length , response . getTookInMillis ( ) , response . hasFailures ( ) } ) ;
if ( response . hasFailures ( ) ) {
- propagateFailure ( response . getItems ( ) , messages ) ;
+ propagateFailure ( response . getItems ( ) , messages , response .... | Propagating indexing exceptions properly |
<nb> public class AnimatedTiledMapTile implements TiledMapTile {
this . blendMode = blendMode ;
}
- private TiledMapTile getCurrentFrame ( ) {
+ public int getCurrentFrameIndex ( ) {
int currentTime = ( int ) ( lastTiledMapRenderTime % loopDuration ) ;
for ( int i = NUMBER0 ; i < animationIntervals . le... | Adding AnimatedTiledMapTile getCurrentFrameIndex |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public final class BufferedImageLuminanceSource extends LuminanceSource {
SINGLE
AffineTransform transform = new AffineTransform ( FLO... | For better handling of some formats perform rotation with help of Graphics2D |
<nb> public final class LineageMaster extends MasterBase {
}
}
- public synchronized void reportListFile ( String path )
- throws FileDoesNotExistException , IOException {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public synchronized void reportLostFile ( String path ) throws... | fixed reportLostFile call |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
COMMENT
+ @ publicapi
public class SimpleRawTable {
private final long mRawTableId ; | Add missing publicapi annotation |
<nb> public class DatabaseConfiguration {
private String password = STRING0 ;
@ notnull
- @ url ( protocol = STRING1 )
private String url = null ;
@ notnull | Ease the validations on DatabaseConfiguration url |
<nb> class SyncManager implements OnAccountsUpdateListener {
+ previousSyncOperation ) ;
}
+ SINGLE
+ SINGLE
SINGLE
SINGLE
SINGLE
SINGLE
-
- if ( syncResult . madeSomeProgress ( ) ) {
+ if ( syncResult . tooManyRetries ) {
+ Log . d ( TAG , STRING0
+ + previousSyncOperation ) ;
+ } else if... | don t reschedule syncs that failed with a tooManyRetries error |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public abstract class TestStatusListener {
public static final ExtensionPointName < TestStatusListener > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
- public abstract void testSuiteFinished (... | make Nullable contract visible |
<nb> public abstract class DB {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | updated createCollection javadoc to define capped collection size in bytes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.