diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class AbstractReadExecutor
private void makeRequests ( ReadCommand readCommand , Iterable < InetAddress > endpoints )
{
- MessageOut < ReadCommand > message = null ;
boolean hasLocalEndpoint = false ;
for ( InetAddress endpoint : endpoints )
<nb> public abstract class AbstractReadEx... | Fix mixed node versions during AbstractReadExecutor makeRequests after upgrade |
<nb> import NAMESPACE ;
public class DefaultStackTraceCleaner implements StackTraceCleaner {
public boolean isOut ( StackTraceElement e ) {
boolean fromMockObject = e . getClassName ( ) . contains ( STRING0 ) ;
+ boolean fromByteBuddyMockObject = e . getClassName ( ) . contains ( STRING1 ) ;
boolean fromOrgMo... | Updated StackTrace cleaner |
<nb> public class DomModelTreeView extends Wrapper implements DataProvider {
}
public void dispose ( ) {
+ myBuilder . dispose ( ) ;
myDomManager . removeDomEventListener ( myDomEventListener ) ;
} | disposing tree builder |
<nb> public class English extends Language implements AutoCloseable {
}
@ override
- public final Disambiguator getDisambiguator ( ) {
+ public Disambiguator getDisambiguator ( ) {
if ( disambiguator == null ) {
disambiguator = new XmlRuleDisambiguator ( new English ( ) ) ;
} | Removed final modifier from English getDisambiguator so it can be overriden in a class which extends English |
<nb> public class ImageManager {
}
}
- diskCache = new DiskCacheAdapter ( ) ;
+ if ( diskCache == null ) {
+ diskCache = new DiskCacheAdapter ( ) ;
+ }
}
if ( ! recycleBitmaps ) { | Fix always defaulting to DiskCacheAdapter |
<nb> public class DB implements Closeable {
protected ScheduledExecutorService executor = null ;
SINGLE
SINGLE
- protected SerializerPojo . ClassInfo [ ] classInfoCache ;
+ SINGLE
+ protected volatile SerializerPojo . ClassInfo [ ] classInfoCache ;
protected SerializerPojo serializerPojo ;
protected S... | add TODO on ClassInfoCache |
<nb> public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
_writable = true ; SINGLE
}
- SINGLE
- if ( ! _dispatched )
+ SINGLE
+ if ( _dispatched )
+ _key . interestOps ( NUMBER0 ) ;
+ else
{
+ SINGLE
dispatch ( ) ;
if ( _dispatched && ! _selectSet . getManager ( ) ... | clear interest ops for double dispatch even if no read write blocked threads |
<nb> public class NumberProgressBar extends View {
private static final String INSTANCE_TEXT_VISBILITY = STRING0 ;
private static final int PROGRESS_TEXT_VISIBLE = NUMBER0 ;
- private static final int PROGRESS_TEXT_INVISIBLE = NUMBER1 ;
-
COMMENT | remove unused constant |
<nb> public class SubscriptionInfo implements Parcelable {
return NUMBER0 ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public static String givePrintableIccid ( String iccId ) {
+ String iccIdToPrint = null ;
+ if ( iccId != null ) {
+ if ( iccId . length ( ) > NUMBER1 ) {
+ iccIdToPrint = iccId . substrin... | Fix a crash while printing ICCID because of alphabets in UICC |
<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
}
String reqType = request . getMethod ( ) ;
- if ( STRING0 . equals ( reqType ) || STRING1 . equals ( reqType ) ) {
+ if ( ! STRING2 . equals ( reqType ) && ! STRING3 . equals ( reqType ) && ! STRING4 . equals ( reqType ) &... | Allow custom method to have body |
<nb> public class FootFlagEncoder extends AbstractFlagEncoder {
add ( STRING0 ) ;
add ( STRING1 ) ;
add ( STRING2 ) ;
+ add ( STRING3 ) ;
}
} ;
private static final Map < String , Integer > SPEED = new FootSpeed ( ) ; | added service tag to FOOT |
<nb> public class ChapterViewModel {
public interface Listener {
- public void onRateChanged ( final int rate ) ;
+ void onRateChanged ( final int rate ) ;
}
COMMENT | Remove invalid modifier in ChapterViewModel Listener |
<nb> public class ReaderGapMarkerView extends RelativeLayout {
}
public void setCurrentTag ( ReaderTag tag ) {
- if ( ! ReaderTag . isSameTag ( tag , mCurrentTag ) ) {
- mCurrentTag = tag ;
- hideProgress ( ) ;
- }
+ mCurrentTag = tag ;
+ hideProgress ( ) ;
}
private void fillTheGap ( ) { | Hide progress when tag is set |
<nb> public class NewChatActivity extends FragmentActivity implements View . OnCreateCo
@ override
public void notifyDataSetChanged ( ) {
+
+
if ( mCursorChats != null && ( ! mCursorChats . isClosed ( ) ) )
mCursorChats . close ( ) ;
mCursorChats = getContentResolver ( ) . query ( Imps . Contacts . CONT... | fixed to NPE on pager updating |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class PropertiesComponent {
public abstract boolean isValueSet ( String name ) ;
+ @ nullable
public abst... | PropertiesComponent getValue may return null |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public final class BlockId {
private static final int CONTAINER_ID_BITS = NUMBER0 ; | SMALLFIX Update javadoc on BlockId java |
<nb> public class DetailListPreference extends ListPreference
CharSequence [ ] values = getEntryValues ( ) ;
if ( radioButton != null && values != null && position < values . length ) {
- mSelectedRadioButton . setChecked ( false ) ;
+ if ( mSelectedRadioButton != null ) {
+ mSelectedRadioButton . setChecke... | Fix a possible NPE when unchecking the radio button |
<nb> import NAMESPACE ;
COMMENT
public abstract class ProjectConverter {
- public boolean isConversionNeeded ( ) {
- return true ;
- }
-
@ nullable
public ConversionProcessor < ProjectSettings > createProjectFileConverter ( ) {
return null ;
<nb> public class ConversionRunner {
}
public bool... | remove unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MarkupTemplateEngine extends TemplateEngine {
this ( MarkupTemplateEngine . class . getClassLoader ( )... | Create classloader in a privileged block |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed docs per comment on mailing list |
<nb> public class ConsumerProvidedTask implements TaskListingLaunchable {
public SortedSet < String > getTaskNames ( ) {
SINGLE
- SortedSet result = Sets . newTreeSet ( new TaskNameComparator ( ) ) ;
+ SortedSet < String > result = Sets . newTreeSet ( new TaskNameComparator ( ) ) ;
result . add ( getPath ( ... | Fixed type declaration |
<nb> public class SM {
COMMENT
COMMENT
public static boolean checkGroupElem ( BigInteger g ) {
- return ! ( g . compareTo ( BigInteger . valueOf ( NUMBER0 ) ) > NUMBER1 && g . compareTo ( SM . MODULUS_MINUS_2 ) < NUMBER1 ) ;
+ return g . compareTo ( BigInteger . valueOf ( NUMBER0 ) ) < NUMBER1 || g . compareT... | Fixed bad comparisons for checkGroupElem and checkExpon basic verification methods for parameters in SMP |
<nb> public class RotationPersistFragment
}
} ) ) ;
- intsObservable . connect ( ) ;
}
SINGLE
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RotationPersistWorkerFragment
pr... | Cancel Observable subscription when the Activity is really destroyed |
<nb> public class PackageManagerService extends IPackageManager . Stub {
|| ! bp . packageSetting . keySetData . isUsingUpgradeKeySets ( )
|| ( ( PackageSetting ) bp . packageSetting ) . sharedUser != null ) {
sigsOk = compareSignatures ( bp . packageSetting . signatures . mSignatures ,
- pkg . mSignatures ) !=... | Fix boolean comparison after sig check |
<nb> public class CommandState
return ourInstance ;
}
+ public static boolean inInsertMode ( )
+ {
+ return ( getInstance ( ) . getMode ( ) == MODE_INSERT || getInstance ( ) . getMode ( ) == MODE_REPLACE ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class CommandState
{
mode = MODE_INSERT ; ... | Added some missing status bar updates |
<nb> public final class AspectDefinition {
COMMENT
COMMENT
COMMENT
- public Builder attributeAspect (
+ @ safevarargs
+ public final Builder attributeAspect (
String attribute , Class < ? extends AspectFactory < ? , ? , ? > > . . . aspectFactories ) {
Preconditions . checkNotNull ( attribute ) ;
for (... | Annotate AspectDefinition attributeAspect SafeVarargs to suppress warnings |
<nb> public abstract class AbstractSocketPoolTest < K , V > extends TestCase {
doSomethingWithResource ( key , resource ) ;
SINGLE
- pool . checkin ( key , resource ) ;
resourceInHand . get ( key ) . decrementAndGet ( ) ;
+ pool . checkin ( key , resource ) ;
} catch ( TimeoutException e ) {
++ testStat... | Fixed race condition in AbstractSocketPoolTest |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ CO... | Fix example description which is no longer accurate |
<nb> public class GraphBuilder
COMMENT
COMMENT
COMMENT
- GraphBuilder setLevelGraph ( boolean level )
+ public GraphBuilder setLevelGraph ( boolean level )
{
this . level = level ;
return this ;
<nb> public class GraphBuilder
COMMENT
COMMENT
COMMENT
- GraphStorage build ( )
+ public GraphSto... | build and setLevelGraph public |
<nb> public class CommonTokenStream extends BufferedTokenStream < Token > {
}
return n ;
}
-
- COMMENT
- @ override
- public void setTokenSource ( TokenSource tokenSource ) {
- super . setTokenSource ( tokenSource ) ;
- channel = Token . DEFAULT_CHANNEL ;
- }
} | Don t reset the channel of a CommonTokenStream during a call to setTokenSource |
<nb> public class SkylarkRuleImplementationFunctions {
name = STRING0 ,
doc =
STRING1
- + STRING2 ,
+ + STRING3
+ + STRING4
+ + STRING5
+ + STRING6 ,
objectType = SkylarkRuleContext . class ,
returnType = Runtime . NoneType . class ,
mandatoryPositionals = { | Document the difference between actions and genrules since the question has come up a couple of times |
<nb> public class EnglishSynthesizerTest extends TestCase {
SINGLE
assertEquals ( STRING0 , Arrays . toString ( synth . synthesize ( dummyToken ( STRING1 ) , STRING2 , false ) ) ) ;
assertEquals ( STRING3 , Arrays . toString ( synth . synthesize ( dummyToken ( STRING4 ) , STRING2 , false ) ) ) ;
+ assertEquals ... | add one more test |
<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
Field SDK_INT = Build . VERSION . class . getField ( STRING0 ) ;
apiLevel = SDK_INT . getInt ( null ) ;
} catch ( SecurityException e ) {
- Log . e ( LOG_TAG , STRING1 , e ) ;
apiLevel = Integer . parseInt ( Build . VERSION . SDK )... | Remove unneeded API compatibility check fallback exceptions |
<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
+ COMMENT
+ COMMENT
... | added javadoc example |
<nb> public class MainController implements Choreographer . FrameCallback {
AppPoller . AppPollerListener mAppPollerListener = new AppPoller . AppPollerListener ( ) {
@ override
public void onAppChanged ( ) {
- switchToBubbleView ( ) ;
+ if ( MainController . get ( ) . getBubbleCount ( ) > NUMBER0 ) {
+ swi... | Fix Exception when the app changes when there are no bubbles active |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AnnotationUtilsTests {
}
@ order
- public static class TransactionalAndOrderedClass {
+ public static class TransactionalAndOrderedClass extends TransactionalClass {
}
public static class SubTransactionalAndOrderedC... | Fix minor error in AnnotationUtilsTests |
<nb> import NAMESPACE ;
COMMENT
public class PackageSanityTests extends AbstractPackageSanityTests {
-
- @ override
- protected void setUp ( ) throws Exception {
+ public PackageSanityTests ( ) {
publicApiOnly ( ) ;
}
} | Move configuration to the constructor |
<nb> public class TextRange implements Segment , Serializable {
}
public static void assertProperRange ( int startOffset , int endOffset , @ notnull Object message ) {
- if ( startOffset > endOffset ) {
+ if ( startOffset > endOffset || startOffset < NUMBER0 ) {
LOG . error ( STRING0 + startOffset + STRING1... | made more inlinable |
<nb> public class GraphMLWriterTest extends TestCase {
String expected = streamToString ( GraphMLWriterTest . class . getResourceAsStream ( STRING0 ) ) ;
SINGLE
- assertEquals ( expected , bos . toString ( ) ) ;
+ assertEquals ( expected . replace ( STRING1 , STRING2 ) . replace ( STRING3 , STRING2 ) , bos . ... | Stripped out linefeeds in graphml |
<nb> public final class Arrays {
}
SINGLE
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static < T > List < T > asList ( T [ ] array ) {
+ require ( array != null , STRING0 ) ;
+ return java . util . Arrays . asList ( array ) ;
+ }
public static List ... | re added convenience method |
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE
return getTokenMetadata ( ) . getHostId ( FBUtilities . getBroadcastAddress ( ) ) . toString ( ) ;
}
+ public Map < String , String > getHostIdMap ( )
+ {
+ return getEndpointToHostId ( ) ;
+ }
+
public Map < String ... | Keep StorageServiceMBean interface stable |
<nb> public class DrawerLayout extends ViewGroup {
public DrawerLayout ( Context context , AttributeSet attrs , int defStyle ) {
super ( context , attrs , defStyle ) ;
-
+ setDescendantFocusability ( ViewGroup . FOCUS_AFTER_DESCENDANTS ) ;
final float density = getResources ( ) . getDisplayMetrics ( ) . den... | Change DrawerLayout s focus strategy to favor children |
<nb> public class TextFieldWithBrowseButton extends ComponentWithBrowseButton < JTextFi
}
@ override
- protected void installPathCompletion ( final FileChooserDescriptor fileChooserDescriptor ) {
+ protected void installPathCompletion ( FileChooserDescriptor fileChooserDescriptor , @ nullable Disposable paren... | disable completion in NoPathCompletion |
<nb> public class JavaBeanDeserializer implements ObjectDeserializer {
JSONScanner lexer = ( JSONScanner ) parser . getLexer ( ) ; SINGLE
FieldDeserializer fieldDeserializer = feildDeserializerMap . get ( key ) ;
+
+ if ( fieldDeserializer == null ) {
+ for ( Map . Entry < String , FieldDeserializer > entry... | key parse ignore case |
<nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component
@ override
public Component prepareRenderer ( TableCellRenderer renderer , int row , int column ) {
final Component result = super . prepareRenderer ( renderer , row , column ) ;
- if ( ! myExpandableItemsHandler . getExpande... | Fix GTK background in JBTable |
<nb> public class ZenDiscoveryUnitTests extends ESTestCase {
ArrayList < DiscoveryNode > allNodes = new ArrayList < > ( ) ;
for ( int i = randomIntBetween ( NUMBER0 , NUMBER1 ) ; i >= NUMBER2 ; i -- ) {
Map < String , String > attrs = new HashMap < > ( ) ;
- for ( String attr : randomSubsetOf (
- Arrays . asL... | adapt ZenDiscoveryUnitTests to removal of INGEST_ATTR MASTER_ATTR and DATA_ATTR |
<nb> public class AppCompatTextView extends TextView {
}
public AppCompatTextView ( Context context , AttributeSet attrs ) {
- this ( context , attrs , NUMBER0 ) ;
+ this ( context , attrs , android . R . attr . textViewStyle ) ;
}
public AppCompatTextView ( Context context , AttributeSet attrs , int de... | Fix AppCompatTextView not using the default style |
<nb> public class BetterMapActivity extends MapActivity implements BetterActivity {
return mapView ;
}
- public void setMyLocationOverlay ( ) {
+ public void setMyLocationOverlay ( MyLocationOverlay myLocationOverlay ) {
SINGLE
- this . myLocationOverlay = new MyLocationOverlay ( this , getMapView ( ) ) ;... | Allow the use of custom MyLocationOverlays |
<nb> public class AntMetaDataExporter extends Task {
this . beansTargetFolder = beansTargetFolder ;
}
- public TypeMapping createTypeMapping ( ) {
- TypeMapping mapping = new TypeMapping ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ public void addTypeMapping ( TypeMapping mapping ) {
typeMappings . add ( m... | Use add methods |
<nb> final class ConfigDelayedMergeObject extends AbstractConfigObject implements
return ( AbstractConfigObject ) merged ;
} else {
throw new ConfigException . BugOrBroken (
- STRING0 ) ;
+ STRING1 + merged ) ;
}
} | Print problem object if merging an object yields non object |
<nb>
package 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> public class Connector
this . initia... | Use the Context interface rather than StandardEngine |
<nb> public class SplitRule extends ComplexRule {
COMMENT
private List < Shape > getWallElements ( Shape shape ) {
SINGLE
- int px = position . x ;
- int py = position . y ;
- int pz = position . z ;
+ COMMENT
+ int py = position . y ;
+ COMMENT
SINGLE
int dx = dimension . x ;
int dy = dimension... | Started the implementation of the ANTLR tree walker for the PAG |
<nb> public final class ReminderService {
now += NUMBER0 * DateUtilities . ONE_MINUTE ; SINGLE
}
-
SINGLE
if ( whenRandom != NO_ALARM && whenDueDate - whenRandom < DateUtilities . ONE_DAY )
whenRandom = NO_ALARM ;
<nb> public final class ReminderService {
long dueDate = task . getValue ( Task . DUE_DA... | Prevent scheduling of due date reminders multiple times between due date and quiet hours |
<nb> public class WebView extends AbsoluteLayout
SINGLE
if ( nativeCursorIntersects ( visibleRect ) ) {
nativeSetFollowedLink ( true ) ;
- mWebViewCore . sendMessage ( EventHub . SET_MOVE_MOUSE ,
- EventHub . BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP , NUMBER0 ,
- cursorData ( ) ) ;
+ mWebViewCore . sendMessage ( E... | Remove obsolete flags from WebViewCore and WebView |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
final class DetailsOverviewSharedElementHelper extends SharedElementCallback {
+ private static final String TAG ... | DO NOT MERGE Add logging |
<nb> public class ImapStore extends Store {
try {
String remoteDestName = encodeString ( encodeFolderName ( iFolder . getPrefixedName ( ) ) ) ;
+ SINGLE
+ SINGLE
+ if ( ! exists ( remoteDestName ) ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ if ( K9 . DEBUG ) {
+ Log . i ( K9 . LOG_TAG , STRING0 +
+ STRI... | Create non existent IMAP folders when copying moving messages |
<nb> abstract class BaseLogger implements Logger {
case ERROR :
error ( msg ) ;
break ;
+ default :
+ throw new IllegalArgumentException ( STRING0 + level ) ;
}
}
} | Fix quality flaws |
<nb> import NAMESPACE ;
public class PhoneStatusBar extends BaseStatusBar {
static final String TAG = STRING0 ;
public static final boolean DEBUG = false ;
- public static final boolean SPEW = true ;
+ public static final boolean SPEW = DEBUG ;
public static final boolean DUMPTRUCK = true ; SINGLE
SINGL... | Turn off logspew |
<nb> public abstract class ProjectGenerationEvent extends AbstractBuckEvent {
return new Finished ( ) ;
}
+ public static Processed processed ( ) { return new Processed ( ) ; }
+
+
public static class Started extends ProjectGenerationEvent {
@ override
public String getEventName ( ) {
<nb> public ab... | Added ProjectGenerationProcessed event |
<nb> public class RegistrationsDialog extends JDialog {
final JButton create = new JButton ( Translation . get ( STRING0 ) ) ;
create . addActionListener ( new ActionListener ( ) {
public void actionPerformed ( ActionEvent event ) {
+ RegistrationsDialog . this . setVisible ( false ) ;
listener . loginPrompt ... | Hide Manage dialog on create |
<nb> public class ListHashMap < K , V > implements Map < K , V > {
private Map < K , V > makeMap ( ) {
Map < K , V > m = new HashMap ( ) ;
- for ( int i = NUMBER0 ; i < maxListFill ; i ++ ) {
+ for ( int i = NUMBER0 ; i < size ; i ++ ) {
m . put ( ( K ) listKeys [ i ] , ( V ) listValues [ i ] ) ;
}
retu... | fix some bugs in ListHashMap |
<nb> public final class RequestUtil {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class RequestUtil {
public static String URLDecode ( byte [ ] bytes , String enc , boolean isQuery ) {
if ( bytes == null )
- return ( null ) ;
+ return nul... | Align url decoding for bytes with url decoding for Strings |
<nb> public class SubscriptionsAdapter extends BaseAdapter implements AdapterView . OnI
holder . count . setPrimaryText ( STRING0 ) ;
SINGLE
holder . count . setVisibility ( View . INVISIBLE ) ;
+
+ SINGLE
+ Glide . clear ( holder . imageView ) ;
+
return convertView ;
}
<nb> public class Subscrip... | Fix add tile |
<nb> import NAMESPACE ;
public abstract class TimeBase implements EngineTime {
- private static final Logger logger = LoggerFactory . getLogger ( TimeLwjgl . class ) ;
+ private static final Logger logger = LoggerFactory . getLogger ( TimeBase . class ) ;
private static final float DECAY_RATE = FLOAT0 ;
p... | Fix TimeLwjgl ref |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
public class IdeMouseEventDispatcherTest extends LightPlatformTestCase {
private static final String OUR_KEYMAP_NAME = STRING0 ;
private static final String OUR_TEST_... | disable test in headless environment as it fails there |
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit {
hookAll ( null ) ;
}
- else
- hookAll ( XActivityThread . getInstances ( ) , null , mSecret , false ) ;
}
private static void handleLoadPackage ( String packageName , String processName , final ClassLoader classLoader... | Revert Fix bootloop on Lollipop |
<nb> public class UndertowDeploymentInfoService implements Service < DeploymentInfo > {
private static final String TEMP_DIR = STRING0 ;
private static final String HOME_DIR = STRING1 ;
+ public static final String JAVAX_FACES_PROJECT_STAGE = STRING2 ;
private DeploymentInfo deploymentInfo ;
<nb> public... | Add JSF project stage automatically in development mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DynamicMessageListenerTestCase {
. addPackages ( true , TelnetResourceAdapter . class . getPackage ( ) , TelnetListener . cla... | Add PropertyPermissions for ear with rar |
<nb> public final class ActivityManagerService extends ActivityManagerNative
}
return ;
}
- if ( ! showBackground && UserHandle . getAppId ( proc . uid )
- >= Process . FIRST_APPLICATION_UID && proc . userId != mCurrentUserId
- && proc . pid != MY_PID ) {
+ boolean isBackground = ( UserHandle . getAppId (... | Always show error dialog for other profiles |
<nb> public class JavaFile {
STRING0 , StringUtils . replace ( type . getName ( ) , STRING1 , STRING2 ) ) ) ;
}
- @ suppresswarnings ( STRING3 )
public URL toURL ( ) {
try {
- return file . toURL ( ) ;
+ return file . toURI ( ) . toURL ( ) ;
} catch ( MalformedURLException e ) {
throw new RuntimeExc... | Changed file toURL to file toURI to avoid encoding issue |
<nb> public class Notification {
NO_INPUT_RUNNING ,
INPUT_FAILED_TO_START ,
CHECK_SERVER_CLOCKS ,
- OUTDATED_VERSION ;
+ OUTDATED_VERSION ,
+ EMAIL_TRANSPORT_CONFIGURATION_INVALID ,
+ EMAIL_TRANSPORT_FAILED ;
public static Type fromString ( String name ) {
return valueOf ( name . toUpperCase ( ) ) ; | Adding enum types for email transport failures invalid config |
<nb> public class OSMReader {
public void optimize ( ) {
logger . info ( STRING0 + Helper . getMemInfo ( ) + STRING1 ) ;
- if ( prepare == null )
- setDefaultAlgoPrepare ( Helper . createAlgoPrepare ( STRING2 ) ) ;
- else
- prepare . doWork ( ) ;
graphStorage . optimize ( ) ;
SINGLE
if ( sortGraph )... | do levelgraph preparation after sorting |
<nb> public class MainActivity extends ActionBarActivity implements ActionMode . Callba
URLogs . d ( STRING0 ) ;
simpleRecyclerViewAdapter . remove ( position ) ;
}
- SINGLE
+ simpleRecyclerViewAdapter . notifyDataSetChanged ( ) ;
}
@ override
<nb> public class MainActivity extends ActionBarActivity i... | update demo for fix swipe bugs |
<nb> class ZygoteConnection {
if ( args . niceName != null ) {
String property = STRING0 + args . niceName ;
if ( property . length ( ) > NUMBER0 ) {
- property = property . substring ( NUMBER1 , NUMBER0 ) ;
+ SINGLE
+ if ( property . charAt ( NUMBER2 ) != STRING1 ) {
+ property = property . substring ( N... | Fix wrap property creation when truncating |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ; | Adding missing license header |
<nb> public class NetworkLibrary {
final List < String > newIds ;
if ( active ) {
newIds = new ArrayList < String > ( oldIds . size ( ) + NUMBER0 ) ;
- newIds . addAll ( oldIds ) ;
newIds . add ( id ) ;
+ newIds . addAll ( oldIds ) ;
} else {
newIds = new ArrayList < String > ( oldIds ) ;
newIds . rem... | add new catalog at top of the list |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public interface AuthenticatedSessionManager {
AuthenticatedSession lookupSession ( final HttpServerExchange exchange ) ;
- public static class AuthenticatedSession {
+ public st... | Mark the authenticated session as being serializable |
<nb> public class ThreadPool extends AbstractComponent {
settings = ImmutableSettings . Builder . EMPTY_SETTINGS ;
}
String type = settings . get ( STRING0 , defaultType ) ;
- ThreadFactory threadFactory = EsExecutors . daemonThreadFactory ( settings , STRING1 + name + STRING2 ) ;
+ ThreadFactory threadFactor... | using node settings to get the node name for thread names |
<nb> public class HeartBeatThread extends Thread {
SINGLE
SINGLE
SINGLE
- if ( ( counter + H2O . SELF . hashCode ( ) ) % NUMBER0 == NUMBER1 ) {
+ if ( ( counter + Math . abs ( H2O . SELF . hashCode ( ) ) ) % NUMBER0 == NUMBER2 ) {
hb . _gflops = Linpack . run ( hb . _cpus_allowed ) ;
hb . _membw = MemoryB... | Fix HeartbeatThread modulo logic was never doing mini benchmark |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class Nick implements PacketExtension { | Improved documentation a little |
<nb> public class TwoDimTable extends Iced {
switch ( colTypes [ col ] ) {
case STRING0 :
case STRING1 :
- cellValues [ row ] [ col ] = Double . toString ( d ) ;
+ cellValues [ row ] [ col ] = Double . toHexString ( d ) ;
break ;
case STRING2 :
case STRING3 :
<nb> public class TwoDimTable extends Iced... | fixed TwoDimTable change |
<nb> public class PrivacyManager {
if ( ! cached )
try {
- value = PrivacyService . getClient ( ) . getTransient ( new PSetting ( uid , null , name , null ) ) . value ;
+ value = PrivacyService . getClient ( ) . getTransient ( new PSetting ( uid , STRING0 , name , null ) ) . value ;
} catch ( Throwable ex )... | Fix transient caching |
<nb> public final class CompleteFileOptions {
private long mOperationTimeMs ;
private CompleteFileOptions ( CompleteFileOptions . Builder builder ) {
- mLength = NUMBER0 ;
+ mLength = builder . mLength ;
mOperationTimeMs = builder . mOperationTimeMs ;
}
<nb> public class CompleteFileOptionsTest {
pu... | Fixing a failing unit test |
<nb> public class EntryActivity extends Activity {
String url = intent . getDataString ( ) ;
SINGLE
- if ( url . equals ( Config . SET_DEFAULT_BROSWER_URL ) ) {
+ if ( url . equals ( Config . SET_DEFAULT_BROWSER_URL ) ) {
Toast . makeText ( this , R . string . default_browser_set , Toast . LENGTH_SHORT ) . ... | Fix typo in Const name |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COM... | Added licence header |
<nb> public class BoltCollector extends OutputCollectorCb {
this . emitTimer . setEnabled ( false ) ;
SINGLE
- random = new Random ( ) ;
- random . setSeed ( System . currentTimeMillis ( ) ) ;
+ random = new Random ( Utils . secureRandomLong ( ) ) ;
}
@ override
<nb> public class SpoutCollector exte... | prevent the duplication of root id |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AddinsCommandManager
false ,
EditorKeyBindings . create ( ) ) ;
+ SINGLE
+ events_ . addHandler (
+ SessionInit... | load saved bindings on init |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ORecordLazySet implements Set < OIdentifiable > , ORecordLazyMultiValue
public Iterator < OIdentifiable > iterator ( ) {
if ( hasNewItems ( ) ... | Fixed issue on remote indexes |
<nb> public final class BlockingFeedableBodyGenerator extends QueueBasedFeedableBodyG
private final ArrayBlockingQueue < BodyChunk > queue ;
public BlockingFeedableBodyGenerator ( int capacity ) {
- queue = new ArrayBlockingQueue < > ( capacity ) ;
+ queue = new ArrayBlockingQueue < > ( capacity , true ) ;
... | Use a fair queue |
<nb> public class GitBlit extends GitblitManager {
COMMENT
@ override
public boolean deleteUser ( String username ) {
- boolean success = userManager . deleteUser ( username ) ;
- if ( success ) {
- getPublicKeyManager ( ) . removeAllKeys ( username ) ;
- }
- return success ;
+ UserModel user = userMa... | Refine delete user method |
<nb> public class CorefDocMaker {
addMissingAnnotation ( anno ) ;
SINGLE
- if ( CorefProperties . getLanguage ( props ) == Locale . CHINESE ) {
- props . setProperty ( STRING0 , String . valueOf ( ! input . conllDoc . documentID . contains ( STRING1 ) ) ) ;
- }
+
+ boolean isChineseConllNonNW = input . ... | fixed a potential null pointer check for chinese coref removeNested |
<nb> public class SkeletonControl extends AbstractControl implements Cloneable {
for ( int w = maxWeightsPerVert - NUMBER0 ; w >= NUMBER1 ; w -- ) {
float weight = weights [ idxWeights ] ;
- Matrix4f mat = offsetMatrices [ indices [ idxWeights ++ ] ] ;
+ Matrix4f mat = offsetMatrices [ indices [ idxWeights ++... | Fixed issue in SkeletonControl applySkinningTangents where weight data index was not converted to unsigned byte |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class FacetManager implements FacetModel {
- public static final Topic < FacetManagerListener > FACETS_TOPIC = Topic . create ( STRING0 , FacetManagerListener . class ) ;
+ public static final Topic < FacetManagerListener > FACETS_TOPIC = Topic . create ... | update grails project structure on facet changes |
<nb> public class DefaultRecordStore extends AbstractEvictableRecordStore implements
if ( record == null ) {
removeIndex ( key ) ;
mapDataStore . remove ( key , now ) ;
- onStore ( null ) ;
} else {
return removeRecord ( key , record , now ) != null ;
} | Removed the onStore call completely |
<nb> public final class TvInputManagerService extends SystemService {
} finally {
Binder . restoreCallingIdentity ( identity ) ;
}
- return false ;
+ SINGLE
+ SINGLE
+ return true ;
}
@ override | Make getAvailability always return true |
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
} , new ErrorListener ( ) {
@ override
public void onErrorResponse ( VolleyError error ) {
- String yup = STRING0 ;
+ Toast . makeText ( getApplicationContext ( ) , STRING1 , Toast . LENGTH_SHORT ) . show ( ) ;
}
} ) ;
... | Showing toast when activation doesn t work |
<nb> public class RequestTest
assertNull ( request . getCharacterEncoding ( ) ) ;
assertEquals ( NUMBER0 , request . getQueryString ( ) . length ( ) ) ;
assertEquals ( - NUMBER1 , request . getContentLength ( ) ) ;
- assertEquals ( NUMBER0 , request . getCookies ( ) . length ) ;
+ assertNull ( request . getCo... | Handle null Accept Language and other headers |
<nb> public class UserManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final String KEY_RESTRICTIONS_PENDING = STRING0 ; | Fix javadoc in UserManager mentioning application restrictions |
<nb> public class NotificationStackScrollLayout extends ViewGroup
COMMENT
private void updateScrollStateForRemovedChild ( View removedChild ) {
int startingPosition = getPositionInLinearLayout ( removedChild ) ;
- int childHeight = removedChild . getHeight ( ) + mPaddingBetweenElements ;
+ int childHeight = g... | Fixed a bug when swiping out notifications when scrolled |
<nb> public class PathTypeCoercer extends LeafTypeCoercer < Path > {
Object object ) throws CoerceFailedException {
if ( object instanceof String ) {
String path = ( String ) object ;
- final Path normalizedPath ;
- SINGLE
- try {
- normalizedPath = pathRelativeToProjectRoot . resolve ( path ) . normali... | Replace questionable logic in PathTypeCoercer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.