diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MailboxAction extends JSONAction {
Date today = new Date ( ) ;
Calendar cal = Calendar . getInstance ( tz , locale ) ;
cal . setTime ( today ) ;
- cal . roll ( Calendar . DAY_OF_MONTH , false ) ;
+ cal . add ( Calendar . DATE , - NUMBER0 ) ;
Date yesterday = cal . getTime ( ) ;
String ... | Fixed date counting |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAM... | add ThreadLeakFilter to RecoveryTests |
<nb> public class GceComputeService extends AbstractLifecycleComponent < GceComputeServ
private static final String VERSION = STRING0 ;
}
+ static final class Status {
+ private static final String TERMINATED = STRING1 ;
+ }
+
private List < DiscoveryNode > discoNodes ;
private TransportService transp... | Ignore TERMINATED instances |
<nb> package NAMESPACE ;
COMMENT
public enum BufType {
COMMENT
- COMMENT
+ COMMENT
COMMENT
BYTE ,
<nb> final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
SINGLE
SINGLE
SINGLE
- SINGLE
+ SINGLE
SINGLE
@ suppresswarnings ( STRING0 )
private volatile MessageBr... | Fix typo in BufType javadoc |
<nb> public class TextField extends Widget {
boolean focused = stage != null && stage . getKeyboardFocus ( ) == this ;
final BitmapFont font = style . font ;
- final Color fontColor = disabled && style . disabledFontColor != null ? style . disabledFontColor : focused ? style . focusedFontColor : style . fontCol... | Add parens in TextField ternary operators |
<nb> class PacketReader {
COMMENT
synchronized public void startup ( ) throws NoResponseException , IOException {
readerThread . start ( ) ;
- SINGLE
- SINGLE
+
try {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
wait ( connection . getPacketReplyTimeout ( ) ) ;... | Notify PacketReader in case of TLS exceptions |
<nb> public class NavigationService extends Service implements LocationListener {
public static class NavigationServiceBinder extends Binder {
}
- private final static int NOTIFICATION_SERVICE_ID = NUMBER0 ;
+ SINGLE
+ private final static int NOTIFICATION_SERVICE_ID = NUMBER1 ;
public final static String... | Fix navigation service when come back to Map |
<nb> import NAMESPACE ;
COMMENT
COMMENT
< p >
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in DateTimeFormat Javadoc |
<nb> public abstract class Language {
return ruleFiles ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public List < String > getExternalRuleFiles ( ) {
return externalRuleFiles ;
} | add since tag |
<nb> public abstract class WXComponent implements IWXObject , IWXActivityStateListener
params . setMargins ( realLeft , realTop , realRight , realBottom ) ;
mHost . setLayoutParams ( params ) ;
} else if ( mParent . getRealView ( ) instanceof BounceRecyclerView ) {
- mHost . setLayoutParams ( new ViewGroup . La... | android fix list LayoutParams cast error |
<nb> public final class BluetoothLeScanner {
List < ScanFilter > filterList ) {
final int callbackType = settings . getCallbackType ( ) ;
SINGLE
- if ( ( callbackType & ScanSettings . CALLBACK_TYPE_FIRST_MATCH
- | ScanSettings . CALLBACK_TYPE_MATCH_LOST ) != NUMBER0 ) {
+ if ( ( callbackType & ( ScanSetting... | Fix onLost onFound logic in isSettingsAndFilterComboAllowed |
<nb> public class SavepointITCase extends TestLogger {
@ override
public byte [ ] snapshotState ( long checkpointId , long checkpointTimestamp ) throws Exception {
- LOG . info ( STRING0 + checkpointId + STRING1 + Arrays . toString ( data ) ) ;
return data ;
}
@ override
public void restoreState ( byt... | hotfix tests Remove verbose logging in SavepointITCase |
<nb> public class WXEnvironment {
configs . put ( WXConfig . sysModel , SYS_MODEL ) ;
configs . put ( WXConfig . weexVersion , String . valueOf ( WXSDK_VERSION ) ) ;
configs . putAll ( options ) ;
- if ( configs != null && configs . get ( WXConfig . appName ) == null ) {
+ if ( configs != null && configs . ge... | android update getCofig np |
<nb> public class ProfileLayout extends FlexibleSpaceLayout {
}
}
+ @ override
+ protected boolean shouldDrawEdgeEffectBottom ( ) {
+ return ! mUseWideLayout ;
+ }
+
public Listener getListener ( ) {
return mListener ;
}
<nb> public class FlexibleSpaceLayout extends LinearLayout {
public void ... | Remove bottom edge effect for wide profile layout |
<nb> public class GitPushActiveBranchesDialog extends DialogWrapper {
}
COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ protected String getHelpId ( ) {
+ return STRING0 ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | added help id for Push Active Branches dialog |
<nb> public interface IASMHook {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- ClassNode inject ( ClassNode modClassNode ) ;
+ ClassNode [ ] inject ( ClassNode modClassNode ) ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Tweak IASM hook api |
<nb> public class IQRouter extends BasicModule {
}
try {
SINGLE
- if ( recipientJID != null && routingTable . hasComponentRoute ( recipientJID ) ||
- routingTable . hasServerRoute ( recipientJID ) ) {
+ if ( recipientJID != null &&
+ ( routingTable . hasComponentRoute ( recipientJID ) || routingTable . ha... | Added missing parentesis |
<nb> public class PrepareToDeployAction extends AnAction {
else {
FileUtil . copy ( jarFile , dstFile ) ;
}
+ LocalFileSystem . getInstance ( ) . refreshIoFiles ( Collections . singleton ( dstFile ) , true , false , null ) ;
successMessages . add ( DevKitBundle . message ( STRING0 , isZip ? NUMBER0 : NUMBER1 ... | Deployed plugin zip not recognized as changed |
<nb> public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData
( ( OrientIndex < ? > ) idx ) . close ( ) ;
context . manualIndices . clear ( ) ;
- context . rawGraph . commit ( ) ;
- context . rawGraph . close ( ) ;
+ if ( ! context . rawGraph . isClosed ( ) ) {
+ context . rawGr... | fixed bug on reusing graph from the pool when database is closed |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ component
public final class CasEnvironmentContextListener implements ServletContextListener {
priv... | added component annotation |
<nb> public abstract class BaseMessage < U > implements Message < U > {
@ override
public < T > void reply ( JsonArray message , Handler < Message < T > > replyHandler ) {
- System . out . println ( STRING0 ) ;
sendReply ( new JsonArrayMessage ( true , replyAddress , message ) , replyHandler ) ;
} | oops remove system out |
<nb> public class BackdropFrameRenderer extends Thread implements Choreographer . Frame
Drawable captionBackgroundDrawableDrawable , Drawable userCaptionBackgroundDrawable ,
int statusBarColor , int navigationBarColor ) {
mDecorView = decorView ;
- mResizingBackgroundDrawable = resizingBackgroundDrawable ;
- ... | Fix threading problems with drawables |
<nb> class WindowStateAnimator {
}
}
+ if ( ! isWindowAnimating ( ) ) {
+ SINGLE
+ if ( mService . mAccessibilityController != null
+ && mWin . getDisplayId ( ) == Display . DEFAULT_DISPLAY ) {
+ mService . mAccessibilityController . onSomeWindowResizedOrMovedLocked ( ) ;
+ }
+ }
+
if ( ! mWin .... | Notify accessibility for window changes after an app animation end |
<nb> public class MasterFaultToleranceTest {
Assert . assertTrue ( mLocalTachyonClusterMultiMaster . killLeader ( ) ) ;
CommonUtils . sleepMs ( null , Constants . SECOND_MS * NUMBER0 ) ;
faultTestDataCheck ( answer ) ;
- faultTestDataCreation ( STRING0 + ( clients + kills + NUMBER1 ) , answer ) ;
+ SINGLE
}... | revert MFT test as the previous version |
<nb> public class SqlUtils {
if ( dontMoveToFirst || cursor . moveToFirst ( ) ) {
ModelAdapter < ModelClass > modelAdapter = FlowManager . getModelAdapter ( table ) ;
if ( modelAdapter == null ) {
- Class persistentClass = ( Class ) ( ( ParameterizedType ) table . getGenericSuperclass ( ) ) . getActualTypeArgum... | Fixed logic for determining if class is a ModelView |
<nb> public class AMQPRouteTest extends ContextTestSupport {
resultEndpoint . message ( NUMBER0 ) . header ( STRING0 ) . isEqualTo ( NUMBER1 ) ;
- sendExchange ( expectedBody ) ;
- if ( System . getProperty ( STRING1 ) . startsWith ( STRING2 ) ) {
- SINGLE
- sendExchange ( expectedBody ) ;
- }
+ sendE... | Fixed the camel amqp test error in windows box |
<nb> public class JDParser {
StringTokenizer st = new StringTokenizer ( s , separators , true ) ;
boolean first = true ;
int preCount = NUMBER0 ;
+ int curPos = NUMBER0 ;
while ( st . hasMoreTokens ( ) ) {
String token = st . nextToken ( ) ;
+ curPos += token . length ( ) ;
+
if ( separators . indexOf... | Replace p with p for unmatched tags only |
<nb> public final class LogoutManagerImpl implements LogoutManager {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ public void setIssueAsynchronousCallbacks ( final boolean asyncCallbacks ) {
+ this . asynchronous = asyncCallbacks ;
+ LOGGER . warn ( STRING0 ) ;
... | added old method marked as deprecated |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class MasterImpl implements Master
{
XaDataSource nioneoDataSource = graphDbConfig . getTxModule ( )
. getXaDataSourceManager ( ) . getXaDataSource ( Config . DEFAULT_D... | Checks the correct txId |
<nb> public class CherryPicker {
if ( ce != null ) {
try {
List < VcsException > exceptions = ce . commit ( myChanges , myCommitMessage ) ;
+ VcsDirtyScopeManager . getInstance ( myProject ) . filePathsDirty ( ChangesUtil . getPaths ( myChanges ) , null ) ;
if ( exceptions != null && ! exceptions . isEmpty ( ... | Mark committed files dirty after commit via cherry pick |
<nb> public class Texture2DHandler extends AssetExtractHandler {
ByteBuffer imageBuffer = tex . imageBuffer ;
TextureFormat tf = tex . textureFormat ;
- SINGLE
- if ( tf == RGBA32 || tf == ARGB32 || tf == BGRA32 ) {
+ SINGLE
+ if ( tf == RGBA32 || tf == ARGB32 ) {
byte [ ] pixelOld = new byte [ NUMBER0 ... | Don t convert BGRA to BGRA facepalm |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Fix GPL headers |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class DexFile
int ret = ClassDefItem . placeClassDefItems ( this , offset ) ;
+ Collections . sort ( this . items , new Comparator < ClassDefItem > ( ) {
... | Sort the ClassDefItems by offset after placing them |
<nb> public class ModuleAccessesBundleServiceTestCase extends AbstractXServiceTestCas
}
}
} ) ;
- startedLatch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ;
+ startedLatch . await ( NUMBER1 , TimeUnit . SECONDS ) ;
}
OSGiTestHelper . assertBundleState ( Bundle . ACTIVE , targetBundle . getState ( ) ) ; | Allow more time for hte target bundle to get started |
<nb> public class CurrentBranches {
setAllValues ( myVisibleNodesInBranches , true ) ;
return ;
}
- setAllValues ( myVisibleNodesInBranches , false ) ;
Set < Integer > startedNodes = new HashSet < Integer > ( ) ;
for ( int i = NUMBER0 ; i < myPermanentGraph . nodesCount ( ) ; i ++ ) {
if ( heads . contain... | log Don t destroy data when request invalid |
<nb> public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa
private final Map < Shortcut , Shortcut > shortcuts = new HashMap < Shortcut , Shortcut > ( ) ;
private IgnoreNodeFilter levelEdgeFilter ;
private DijkstraOneToMany algo ;
- private boolean removesHigher2LowerEdges = false ;... | set default of disconnect to true |
<nb> public class HgRefManager implements VcsLogRefManager {
@ override
public RefGroup fun ( final VcsRef ref ) {
return new RefGroup ( ) {
+ @ override
+ public boolean isExpanded ( ) {
+ return false ;
+ }
+
@ notnull
@ override
public String getName ( ) {
<nb> public class HgRefManager imple... | implementation for RefGroup changed interface |
<nb> public final class ServerImpl extends Server {
COMMENT
COMMENT
COMMENT
- @ internal
- public ServerImpl ( Executor executor , HandlerRegistry registry ,
+ ServerImpl ( Executor executor , HandlerRegistry registry ,
io . grpc . internal . Server transportServer ) {
this . executor = Preconditions . ... | Make ServerImpl constructor pakcage private |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class DebugUtil
priv... | Exposes a way to count stack traces of same kind in StackTracer debug util |
<nb> public abstract class MenuAnimationHandler {
COMMENT
COMMENT
COMMENT
- protected class LastAnimationListener implements Animator . AnimatorListener {
+ public class LastAnimationListener implements Animator . AnimatorListener {
@ override
public void onAnimationStart ( Animator animation ) { | fix no access to LastAnimationListener from children in different packages |
<nb> public class Vec extends Keyed < Vec > {
private Vec copyOver ( long [ ] domain ) {
String [ ] [ ] dom = new String [ NUMBER0 ] [ ] ;
- dom [ NUMBER1 ] = ArrayUtils . toString ( domain ) ;
+ dom [ NUMBER1 ] = domain == null ? null : ArrayUtils . toString ( domain ) ;
return new CPTask ( domain ) . doAl... | missing null check |
<nb> public abstract class AbstractExternalSystemConfigurable <
if ( ! myProjectsModel . isEmpty ( ) ) {
- addTitle ( ExternalSystemBundle . message ( STRING0 , myExternalSystemId . getReadableName ( ) ) ) ;
myProjectsList . setSelectedIndex ( NUMBER0 ) ;
}
}
<nb> public abstract class AbstractExternalS... | add system settings title e g Global Gradle settings only if the external system provides system level settings |
<nb> public class RetryingPathServiceImpl implements PathService {
Queue < RoutingRequest > optionQueue = new LinkedList < RoutingRequest > ( ) ;
optionQueue . add ( options ) ;
- COMMENT
- if ( options . getModes ( ) . getTrainish ( ) && options . getModes ( ) . contains ( TraverseMode . BUS ) ) {
- Routin... | remove dead bus only code |
<nb> public class OSGiIntegrationTestSupport extends CamelTestSupport {
karafDistributionConfiguration ( )
. frameworkUrl ( maven ( ) . groupId ( STRING0 ) . artifactId ( STRING1 ) . type ( STRING2 ) . versionAsInProject ( ) )
SINGLE
- . karafVersion ( STRING3 )
+ . karafVersion ( STRING4 )
. name ( STRING5... | alligned the karaf and activemq version |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed redundant import |
<nb> public class FavouritesDbHelper {
String index = STRING0 ;
int number = NUMBER0 ;
String name = checkEmoticons ( p . getName ( ) ) ;
+ String category = checkEmoticons ( p . getCategory ( ) ) ;
+ p . setCategory ( category ) ;
if ( name . length ( ) != p . getName ( ) . length ( ) ) {
emoticons = tru... | Added checking for emoticons in favorites category |
<nb> public class UrlEncoded extends MultiMap < String > implements Cloneable
{
}
+ public UrlEncoded ( String query )
+ {
+ decodeTo ( query , this , ENCODING , - NUMBER0 ) ;
+ }
+
COMMENT
public void decode ( String query )
{ | Add constructer fo fix broken test suspect someone hasn t pushed |
<nb> java . lang . NullPointerException
SINGLE
SINGLE
int afterAt = s . indexOf ( STRING0 ) + NUMBER0 ;
- if ( afterAt == - NUMBER1 ) {
+ SINGLE
+ if ( afterAt == NUMBER2 ) { SINGLE
System . err . println ( s ) ;
return ;
} | fixed a small bug in the reporting of errors in PdeRuntime |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Switch SimpleDateFormat to icu version |
<nb> public final class GraphHopperStorage implements GraphStorage , Graph
@ override
public void optimize ( )
{
+ if ( isFrozen ( ) )
+ throw new IllegalStateException ( STRING0 ) ;
+
int delNodes = baseGraph . getRemovedNodes ( ) . getCardinality ( ) ;
if ( delNodes <= NUMBER0 )
return ; | avoid optimize if already frozen |
<nb> public class MyActivity extends Activity {
void doStuffWithDisplay ( ) {
SINGLE
windowManager . getDefaultDisplay ( ) ;
-
}
@ beforecreate | remove blank line |
<nb> public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
@ override
public void mouseMoved ( @ notnull MouseEvent e ) {
+ if ( isMacScrollbarHiddenAndDistractionFreeEnabled ( ) ) return ;
EditorImpl . MyScrollBar scrollBar = myEditor . getVerticalScrollBar ( ) ;
int buttonHeight... | don t paint tooltips when editor scrollbar isn t showing |
<nb> public class ODocumentHelper {
final HashSet < Object > temp = new HashSet < Object > ( ) ;
for ( Object o : ( Collection < ? > ) value ) {
if ( o instanceof OIdentifiable ) {
- Object r = getIdentifiableValue ( ( OIdentifiable ) o , fieldName ) ;
+ Object r = getFieldValue ( o , iFieldName ) ;
if ( r ... | fixed document field retrieval in cases like doc children Sarah |
<nb> public abstract class SharedTree < M extends SharedTreeModel < M , P , O > , P extends Sha
_parms . read_unlock_frames ( SharedTree . this ) ;
if ( _model == null ) Scope . exit ( ) ;
else {
- Key [ ] mms = _model . _output . _model_metrics ;
- Scope . exit ( _model . _key , mms . length == NUMBER0 ? nul... | Do not delete model metrics at end of GBM DRF |
<nb> public class GoPerformanceTest extends GoCodeInsightFixtureTestCase {
}
public void testUnusedFunction ( ) {
- doInspectionTest ( new GoUnusedFunctionInspection ( ) , TimeUnit . MINUTES . toMillis ( NUMBER0 ) ) ;
+ doInspectionTest ( new GoUnusedFunctionInspection ( ) , TimeUnit . SECONDS . toMillis ( NU... | Adjust performance expectations |
<nb> public class SearchFragment extends BaseDetailFragment implements MovieControlle
InputMethodManager imm = ( InputMethodManager )
getActivity ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ;
- if ( imm != null ) {
+ if ( mSearchResult == null && imm != null ) {
mSearchView . requestFocus ( ) ... | don t show keyboard on Search Fragment if there is already a query |
<nb> public class MultiException
buffer . append ( STRING0 ) ;
}
}
-
+
return buffer . toString ( ) ;
}
+
+ public Exception [ ] getErrors ( ) {
+ return errors ;
+ }
} | added acces to nested exceptions |
<nb> public class ClassPathPluginResolution implements PluginResolution {
public Class < ? extends Plugin > resolve ( ) {
ClassPath classPath = classPathFactory . create ( ) ;
Factory < ? extends ClassLoader > loader = parent . loader ( classPath ) ;
- PluginRegistry pluginRegistry = new DefaultPluginRegistry (... | Use a child scope to create the ClassLoader to locate a declarative plugin implementation |
<nb> public class BarChartRenderer {
canvas . drawRect ( rawValueX - barWidth , rawValueY , rawValueX , chartCalculator . mContentRect . bottom ,
mBarPaint ) ;
}
- drawValuePopup ( canvas , bar , animatedValueWithColor , rawValueX , rawValueY ) ;
+ if ( bar . hasValuesPopups ) {
+ drawValuePopup ( canvas , ... | Checking flag hasValuePopup for Bar |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class SmsMessageBase {
if ( parts . length < NUMBER0 ) return ;
emailFrom = parts [ NUMBER1 ] ;
emailBody = parts [ NUMBER2 ] ;
- isEmail = true ;
+ isEmail = Telephon... | applying Moto s patch to fix a email shortcode parsing bug |
<nb> public class RestfulGraphDatabaseTest
for ( Object item : items )
{
Map < ? , ? > map = ( Map < ? , ? > ) item ;
- Map < ? , ? > properties = ( Map < ? , ? > ) map . get ( STRING0 ) ;
assertNotNull ( map . get ( STRING1 ) ) ;
String indexedUri = ( String ) map . get ( STRING2 ) ;
assertThat ( indexed... | Removing unused variables |
<nb> public class SessionManager extends BasicModule {
List < IncomingServerSession > sessions = incomingServerSessions . get ( hostname ) ;
if ( sessions != null ) {
sessions . remove ( session ) ;
+ if ( sessions . isEmpty ( ) ) {
+ SINGLE
+ incomingServerSessions . remove ( hostname ) ;
+ }
}
}
} | Remove entry in incomingServerSessions when there associated collection is emtpy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TransportIndexAction extends TransportReplicationAction < IndexReques
}
if ( indexShard . getTranslogDurability ( ) == Tr... | Ignore EngineClosedException during translog fysnc |
<nb> public class IdentityManager
}
this . connectionState = connectionState ;
SINGLE
- queryIdentity ( ) ;
+ queryIdentity ( this . irc , this . connectionState , new WhoisListener ( ) ) ;
}
COMMENT
COMMENT
COMMENT
- private void queryIdentity ( )
+ private static void queryIdentity ( final IRC... | Send WHOIS command in separate thread |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class CombinedSequenceFile extends SequenceFile {
protected CombinedSequenceFile ( ) { super ( ) ; } | added javadoc header to CombinedSequenceFile |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ODatabaseImport ... | Fixed security check in cluster configuration |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
public enum NoopChannelPool implements ChannelPool { | Remove unnecessary imported package |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; SINGLE
+ import NAMESPACE ; SINGLE
import NAMESPACE ;
COMMENT
<nb> public class DefaultServer implements Server
public void close ( String reason )
{
SINGLE
-
+ DisconnectMessage m = new DisconnectMessage ( ) ;
... | Added the disconnect message which kicking a client |
<nb> public class ShadowImageView extends ImageView {
setBackground ( circle ) ;
mRotateAnimator = ObjectAnimator . ofFloat ( this , STRING0 , FLOAT0 , NUMBER0 f ) ;
- mRotateAnimator . setDuration ( NUMBER1 ) ;
+ mRotateAnimator . setDuration ( NUMBER2 ) ;
mRotateAnimator . setInterpolator ( new LinearInte... | Double album rotate animation duration |
<nb> public class AnimatedStateListDrawable extends StateListDrawable {
}
}
}
-
<nb> public class AnimationDrawable extends DrawableContainer implements Runnable , An
@ override
public boolean setVisible ( boolean visible , boolean restart ) {
- boolean changed = super . setVisible ( visible , restart... | Only start AnimationDrawable on visibility change when animating |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface Mapper extends ToXContent {
public Settings indexSettings ( ) {
return this . indexSettings ;
}
+
+ @ nullable
+ public Versi... | add simple way to get the index creation version when building a mapper |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
public interface PairFunction < Arg1 , Arg2 , ResultType > {
- @ nullable
+
ResultType fun ( Arg1 t , Arg2 v ) ;
} | Don t mark PairFunction return type as Nullable |
<nb> public final class TestCluster implements Iterable < Client > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public static final String TESTS_ENABLE_MOCK_MODULES = STRING0 ;
<nb> public final class TestCluster implements Iterable < Client > {
assert numSharedNodes >= NUMBER0 ; ... | Add randomized plugin isolation to test infrastructure |
<nb> public class JsFacade implements Exportable {
return messenger . isConversationTonesEnabled ( ) ;
}
+ public boolean isShowNotificationsTextEnabled ( ) {
+ return messenger . isShowNotificationsText ( ) ;
+ }
+
+ public void changeIsShowNotificationTextEnabled ( boolean value ) {
+ messenger . ch... | added isShowNotificationsTextEnabled method to facade |
<nb> public class Keyboard {
COMMENT
public Key ( Row parent ) {
keyboard = parent . parent ;
+ height = parent . defaultHeight ;
+ width = parent . defaultWidth ;
+ gap = parent . defaultHorizontalGap ;
+ edgeFlags = parent . rowEdgeFlags ;
}
COMMENT
<nb> public class Keyboard {
final Key key =... | Initialize Keyboard Key attributes from parent Keyboard Row |
<nb> public class Stax
{
for ( Handler h : Handlers ) {
groups . media . add ( JavaBuiltIn . MediaTransformer , new MediaSerializer ( h ) ) ;
- groups . media . add ( JavaBuiltIn . MediaTransformer , new MediaSerializerAbbreviated ( h ) ) ;
+ SINGLE
+ SINGLE
}
}
<nb> public class XStream
SINGLE
... | exclude abbreviated cases |
<nb> public class ShadowBitmap {
}
@ implementation
+ public static Bitmap createBitmap ( int [ ] ignored , int width , int height , Bitmap . Config config ) {
+ return Bitmap . createBitmap ( width , height , config ) ;
+ }
+
+ @ implementation
public int getRowBytes ( ) {
return getBytesPerPixel (... | Add ShadowBitmap createBitmap that takes an array of Colors and ignores it |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public interface IAuthorization {
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public class SaslClientCallbackHandler implements CallbackHandler {
private static fina... | remove auth from source file |
<nb> public final class RegisterRules {
rule . setStatus ( ! Strings . isNullOrEmpty ( rule . getStatus ( ) ) ? rule . getStatus ( ) : RuleStatus . defaultValue ( ) . name ( ) ) ;
rulesByKey . put ( rule . getKey ( ) , rule ) ;
}
- LOG . info ( rulesByKey . size ( ) + STRING0 ) ;
+ LOG . debug ( rulesByKey . ... | Change some log level from info to debug |
<nb> public class FragmentedEditorHighlighter implements EditorHighlighter {
iterator . advance ( ) ;
if ( iterator . atEnd ( ) ) return ;
}
- offset += range . getLength ( ) ;
+ offset += range . getLength ( ) + NUMBER0 ;
}
} | highlight syntax each fragment also separated by n take it into account when stealing highlighters |
<nb> public class HttpMessage {
return message ;
}
}
-
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class HttpMessageTest {
... | Implemented PR comments |
<nb> public class StoreWAL extends StoreDirect {
}
@ override
+ protected long longStackTake ( long ioList ) {
+ return NUMBER0 ;
+ }
+
+ @ override
+ protected void longStackPut ( long ioList , long offset ) {
+ SINGLE
+ }
+
+ @ override
public void close ( ) {
structuralLock . lock ( ) ;... | Fix potencial issue in WAL store |
<nb> public class TransportNodesListGatewayStartedShards extends TransportNodesOperat
if ( shardStateMetaData != null ) {
final IndexMetaData metaData = clusterService . state ( ) . metaData ( ) . index ( shardId . index ( ) . name ( ) ) ; SINGLE
if ( metaData != null && canOpenIndex ( request . getShardId ( ) , ... | Also log the shard state info for the shard that can t be opened |
<nb> public class ActionBarContainer extends FrameLayout {
return null ;
}
+ @ override
+ public android . view . ActionMode startActionModeForChild ( View originalView ,
+ android . view . ActionMode . Callback callback ) {
+ return null ;
+ }
+
private boolean isCollapsed ( View view ) {
return ... | Prevent ActionBar views from starting ActionMode |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ @ ignore ( STRING0 )
public class HttpSNIHostNameTest extends CamelSpringTestSupport {
@ test
<nb> pub... | ignored test for external SNIHostName site |
<nb> public class RolesTest extends AbstractJavaDocTestbase
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class RolesTest extends AbstractJavaDocTestbase
SINGLE
gen . get ( ) . addSnippe... | roles test better cypher |
<nb> public class ResolverDrawerLayout extends ViewGroup {
mInitialTouchX = x ;
mInitialTouchY = mLastTouchY = y ;
mActivePointerId = ev . getPointerId ( NUMBER0 ) ;
- mIsDragging = findChildUnder ( mInitialTouchX , mInitialTouchY ) != null ;
- handled = ( ! mIsDragging && mOnDismissedListener != null ) || mC... | Fix touch intercept bug in ResolverDrawerLayout |
<nb> public class Vector2 implements Serializable , Vector < Vector2 > {
if ( Math . abs ( obj . y - y ) > epsilon ) return false ;
return true ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean epsilonEquals ( float x , float y , float epsilon ) {
+ if ( Math . abs ( x - thi... | Add epsilonEquals overload to Vector2 |
<nb> public class MixinData {
COMMENT
COMMENT
private void readImplementations ( ) {
+ this . interfaces . addAll ( this . classNode . interfaces ) ;
+
AnnotationNode implementsAnnotation = ASMHelper . getInvisibleAnnotation ( this . classNode , Implements . class ) ;
if ( implementsAnnotation == null ) {... | Fix MixinData interfaces missing hard implemented interfaces |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | clarify description of iterators |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class TestHttp2Section_5_3 extends Http2TestBase {
- Log log = LogFactory . getLog ( TestHttp2Section_5_3 . class ) ;
- ... | Remove non initialized local log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HTTP2ClientConnectionFactory implements ClientConnectionFact... | Optimize flow control |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ImageOrColorPreviewProjectComponent extends AbstractProjectComponen
}
private static boolean isSuitable ( final Project p... | make image color preview work in template data |
<nb> public abstract class AbstractOption
Map strToOpt = getStrToOpt ( ) ;
strToOpt . put ( mStrRep , this ) ;
}
-
+
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractOption
return ( AbstractOption ) strToOpt . get ( aStrRep . trim ( ) . toLowerCase ( ) ) ;
}
- COMMENT
+ COMMENT
+... | added javadoc for toString |
<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable ,
myArranger = arranger ;
myPresentableArranger = arranger ;
+ DaemonCodeAnalyzer . getInstance ( myProject ) . disableUpdateByTimer ( this ) ;
+
myCellRenderer = new LookupCellRenderer ( this ) ;
myList . setCellRendere... | shut down daemon immediately when autopopup completion is started to free CPU for completion threads |
<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 ;
public class ReaderActivityLauncher {
<nb> pub... | use an authenticated webview for wpcom sites linked from the Reader |
<nb> public class ASTGenerator {
public static ShowUsageTreeNode fromSketchInterval ( PreprocessedSketch ps , SketchInterval in ) {
int lineStartPdeOffset = ps . pdeCode . lastIndexOf ( STRING0 , in . startPdeOffset ) + NUMBER0 ;
int lineStopPdeOffset = ps . pdeCode . indexOf ( STRING0 , in . stopPdeOffset ) ;
... | Handle last line correctly while building Show Usage Tree Node |
<nb> public class EntityMapperTest {
Collection < ColumnMapper > cols = entityMapper . getColumnList ( ) ;
System . out . println ( cols ) ;
SINGLE
- Assert . assertEquals ( NUMBER0 , cols . size ( ) ) ;
+ Assert . assertEquals ( NUMBER1 , cols . size ( ) ) ;
SINGLE
SINGLE | Fix more of dem unit tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GeneralPreferencesPane extends PreferencesPane
false ,
true ,
false ) ;
+
+ HelpButton . addHelpButton ( this , STRIN... | add help button to multiple r versions ui |
<nb> public final class Command {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class Command {
public FutureCommandResult executeAsynchronously ( final InputStream stdinInput ,
final KillableObserver observer ,
final OutputStream stdOut ,
- final OutputStream stdEr... | Allow async command invocations to set the closeOutput bit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.