diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ParserATNSimulator < Symbol extends Token > extends ATNSimulator {
if ( dfa_debug && t >= NUMBER0 ) System . out . println ( STRING0 + parser . getTokenNames ( ) [ t ] ) ;
int alt ;
if ( dfa_debug ) {
- Interval interval = Interval . of ( startIndex , parser . getTokenStream ( ) . size ( ) - N... | Fix stop index |
<nb> public class DebugLogs extends BaseActivity {
@ override
public void run ( ) {
SINGLE
- SINGLE
- SINGLE
- SINGLE
try {
String log = getLogs ( ) ;
<nb> public class DebugLogs extends BaseActivity {
COMMENT
COMMENT
COMMENT
- SINGLE
- SINGLE
private void clearLogs ( ) throws IOExceptio... | immediately clear the log view when the clear button is pressed |
<nb> public class InstanceType extends Type {
@ override
public boolean equals ( Object other ) {
- return this == other ;
+ if ( other instanceof InstanceType ) {
+ SINGLE
+ return classType . equals ( ( ( InstanceType ) other ) . classType ) ;
+ } else {
+ return false ;
+ }
+ }
+
+
+ @ ov... | consider instances of the same class to be equal |
<nb> public class ReaderCommentListActivity extends ActionBarActivity {
mCommentBox = ( ViewGroup ) findViewById ( R . id . layout_comment_box ) ;
mEditComment = ( SuggestionAutoCompleteText ) mCommentBox . findViewById ( R . id . edit_comment ) ;
- mEditComment . getAutoSaveTextHelper ( ) . setUniqueId ( Strin... | Fixed incorrect format string passed to autoSaveTextHelper uniqueId |
<nb> public class MessageWebView extends RigidWebView {
}
content += HtmlConverter . cssStylePre ( ) ;
content += STRING0 + text + STRING1 ;
- loadDataWithBaseURL ( STRING2 , content , STRING3 , STRING4 , null ) ;
+
+ SINGLE
+ if ( android . os . Build . VERSION . SDK_INT >= android . os . Build . VERSION... | Add work around for Asus Transformer WebView display bug |
<nb> public class AppCompatSpinner extends Spinner implements TintableBackgroundView
COMMENT
COMMENT
COMMENT
- public AppCompatSpinner ( Context context , AttributeSet attrs , int defStyle , int mode ) {
- this ( context , attrs , defStyle , mode , null ) ;
+ public AppCompatSpinner ( Context context , Attr... | Fix docs build |
<nb> public class NotificationServiceImpl extends PersistedServiceImpl implements Not
@ override
public boolean publishIfFirst ( Notification notification ) {
-
SINGLE
if ( notification . getNodeId ( ) == null ) {
addThisNode ( notification ) ;
<nb> public class NotificationServiceImpl extends Persisted... | Fixing condition in publish method |
<nb> public class CordovaChromeClient extends WebChromeClient {
private static final String LOG_TAG = STRING0 ;
private String TAG = STRING1 ;
private long MAX_QUOTA = NUMBER0 * NUMBER1 * NUMBER1 ;
- private CordovaInterface cordova ;
- private CordovaWebView appView ;
+ protected CordovaInterface cordova ;... | Allow CordovaChromeClient subclasses access to CordovaInterface and CordovaWebView members |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class GetUTXOsMessage extends Message {
public static final int MIN_PROTOCOL_VERSION = NUMBER0 ;
+ COMMENT
+ public static final int SERVICE_FLAGS_REQUIR... | Add javadocs to GetUTXOsMessage and add the service mask required for the feature |
<nb> public class Exec2 extends Request2 {
SINGLE
StringBuilder sb = new StringBuilder ( ) ;
String [ ] fs = fr . toStringHdr ( sb ) ;
- for ( int i = NUMBER0 ; i < Math . min ( NUMBER1 , fr . numRows ( ) ) ; i ++ )
+ for ( int i = NUMBER0 ; i < Math . min ( NUMBER2 , fr . numRows ( ) ) ; i ++ )
fr . toStri... | tweak console output |
<nb> public class Notification implements Parcelable
public Builder setStyle ( Style style ) {
if ( mStyle != style ) {
mStyle = style ;
- mStyle . setBuilder ( this ) ;
+ if ( mStyle != null ) {
+ mStyle . setBuilder ( this ) ;
+ }
}
return this ;
}
<nb> public class Notification implements Parce... | Fix NPEs when using the APIs a little oddly |
<nb> public class Facebook {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public String logout ( Context context )
throws MalformedURLException , IOException {
<nb> public class FbDialog extends Dialog {
String description , String failingUrl ) {
super . onReceivedError ( view , errorCode ,... | fix bug dismissing dialog under under condition update a javadoc for logout with return value |
<nb> import NAMESPACE ;
public abstract class Pool < T > {
protected GenericObjectPool internalPool ;
- protected Pool ( ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Pool ( ) {
this . internalPool = null ;
} | Allow the Pool to be constructed without having an internal pool created |
<nb> public abstract class Utils {
public static final int [ ] COLORS = new int [ ] { COLOR_BLUE , COLOR_VIOLET , COLOR_GREEN , COLOR_ORANGE , COLOR_RED } ;
private static final float SATURATION_DARKEN = FLOAT0 ;
private static final float INTENSITY_DARKEN = FLOAT1 ;
+ private static int COLOR_INDEX = NUMBER0 ;... | created nextColor method to iterate the array of colors |
<nb> package NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public class VerificationModeFactory {
public static VerificationMode atLeastOnce ( ) { | removed dodgy comment |
<nb> import NAMESPACE ;
COMMENT
@ converter
public class HttpConverter {
+
@ converter
public HttpServletRequest toServletRequest ( HttpMessage message ) {
if ( message == null ) {
<nb> public class HttpConverter {
@ converter
public ServletInputStream toServletInputStream ( HttpMessage message ) ... | Removed system out |
<nb> public class FavouritesDbHelper {
}
int back = NUMBER0 ;
String backPrefix = STRING0 + back ;
- if ( back < NUMBER1 ) {
- backPrefix = STRING1 + backPrefix ;
- }
File firstModified = null ;
long firstModifiedMin = System . currentTimeMillis ( ) ;
while ( back <= BACKUP_CNT ) {
+ backPrefix = ST... | fix another error |
<nb> public class Utils {
COMMENT
COMMENT
COMMENT
+ @ targetapi ( Build . VERSION_CODES . JELLY_BEAN_MR1 )
public static void setCompoundDrawablesRelativeWithIntrinsicBounds ( Button button , int left ,
int top , int right , int bottom ) {
if ( AndroidUtils . isJellyBeanMR1OrHigher ( ) ) { | Add missing TargetApi annotation |
<nb>
COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Add a blank line to MockRilTest java |
<nb> public class MessagingController implements Runnable {
Intent i = FolderList . actionHandleNotification ( context , account , message . getFolder ( ) . getName ( ) ) ;
PendingIntent pi = PendingIntent . getActivity ( context , NUMBER0 , i , NUMBER0 ) ;
- String accountNotice = context . getString ( R . str... | fixed displaying of null account description in notification at account setup wizard |
<nb> final class CdmaServiceStateTracker extends ServiceStateTracker {
cdmaDataConnectionState = newCdmaDataConnectionState ;
networkType = newNetworkType ;
+ SINGLE
+ newNetworkType = NUMBER0 ;
newSS . setStateOutOfService ( ) ; SINGLE
<nb> final class GsmServiceStateTracker extends ServiceStateTrack... | Fix data network type notifications |
<nb> public class MainExampleTest extends TestCase {
main . start ( ) ;
SINGLE
- Thread . sleep ( NUMBER0 ) ;
+ Thread . sleep ( NUMBER1 ) ;
+ main . stop ( ) ;
+ }
+
+ public void testFileApplicationContextUri ( ) throws Exception {
+ Main main = new Main ( ) ;
+ main . setFileApplicationContextU... | Added an Unit test according to the user mailing list |
<nb> public interface ImmediateModeRenderer {
public int getNumVertices ( ) ;
public int getMaxVertices ( ) ;
+
+ public void dispose ( ) ;
}
<nb> public class ImmediateModeRenderer10 implements ImmediateModeRenderer {
public void vertex ( Vector3 point ) {
vertex ( point . x , point . y , point . z )... | fixed dispose method to immediate mode renderers |
<nb> public class GrailsScriptRunner {
private static void addPluginLibs ( File pluginDir , List urls ) throws MalformedURLException {
if ( ! pluginDir . exists ( ) ) return ;
+ File dependencyDefinition = new File ( pluginDir , STRING0 ) ;
+ if ( dependencyDefinition . exists ( ) ) return ;
+
File libDir... | don t add any jars to the root loader if a dependencies groovy script is defined |
<nb> public class J2clEqualitySameRewriterPass extends AbstractPostOrderCallback
}
private static boolean isEqualitySameMethodName ( String fnName ) {
- SINGLE
+ SINGLE
return fnName != null
&& ( fnName . endsWith ( STRING0 ) || fnName . endsWith ( STRING1 ) ) ;
} | Remove a trailing in a comment in J2clEqualitySameRewriterPass |
<nb> public class JCVideoPlayer extends FrameLayout implements View . OnClickListener ,
updateStartImage ( ) ;
cancelDismissControlViewTimer ( ) ;
cancelBufferTimer ( ) ;
+ if ( uuid . equals ( JCMediaPlayer . intance ( ) . uuid ) ) {
+ JCMediaPlayer . intance ( ) . mediaPlayer . stop ( ) ;
+ }
}
} | Fix fresh list should stop videoplayer |
<nb> import NAMESPACE ;
COMMENT
public class AndroidWebView extends WebView implements CordovaWebView {
- public static final String TAG = STRING0 ;
- public static final String CORDOVA_VERSION = STRING1 ;
+ public static final String TAG = STRING2 ;
private HashSet < Integer > boundKeyCodes = new HashS... | Remove fields from CordovaWebView interface |
<nb> public class PartitionManager {
}
public void close ( ) {
+ commit ( ) ;
_connections . unregister ( _partition . host , _partition . partition ) ;
} | PartitionManager should commit latest offset before close |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | SMALLFIX Fixed build problems |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class PyCodeStyleSettingsProvider extends CodeStyleSettingsProvider {
return STRING0 ;
}
+ @ override
+ public DisplayPriority get... | Grouped spacing blank lines wrapping panels to a single panel with tabs for each type of settings |
<nb> public class ODistributedStorage implements OStorage {
ORecordCallback < Integer > iCallback ) {
Object result = null ;
- if ( ! dManager . isLocalNodeOwner ( iRecordId ) )
- try {
- result = dManager . routeOperation2Node ( iRecordId ,
- new OUpdateRecordDistributedTask ( dManager . getLocalNodeId (... | Fixed cluster wide UPDATE |
<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 ;
import NAM... | Fixing code generation of js |
<nb> public class TestStandardContextValve extends TomcatBaseTest {
int rc = getUrl ( STRING0 + getPort ( ) + STRING1 ,
new ByteChunk ( ) , null ) ;
- tomcat . stop ( ) ;
- tomcat . destroy ( ) ;
+ SINGLE
+ SINGLE
+ int i = NUMBER0 ;
+ while ( i > NUMBER1 ) {
+ if ( trace . toString ( ) . endsWith (... | Better fix for timing issues on Linux with unit tests |
<nb> public class DefaultCamelCatalog implements CamelCatalog {
result . addIncapable ( uri ) ;
} else if ( scheme != null ) {
result . addUnknownComponent ( scheme ) ;
+ } else {
+ result . addUnknownComponent ( uri ) ;
}
return result ;
} | Camel catalog Validate incapable parsing errors |
<nb> public class SchemaComparator implements DatabaseObjectComparator {
String schemaName2 = null ;
if ( accordingTo . supportsSchemas ( ) ) {
- if ( accordingTo . supportsCatalogs ( ) ) {
- String catalog1 = ( ( Schema ) databaseObject1 ) . getCatalogName ( ) ;
- String catalog2 = ( ( Schema ) databaseObj... | Cannot take catalog into account when comparing schemas or cross database diffs will nto work |
<nb> public class SeqClassifierFlags implements Serializable {
normalizeTimex = true ;
}
} else if ( key . equalsIgnoreCase ( STRING0 ) ) {
- SINGLE
+ SINGLE
+ SINGLE
if ( Boolean . parseBoolean ( val ) ) {
SINGLE
readerAndWriter = STRING1 ;
<nb> public class SeqClassifierFlags implements Serializab... | Add the small changes to goodCoNLL that fix Spanish performance and generally optimze performance |
<nb> public class DataSourceAutoConfiguration implements EnvironmentAware {
return Outcome . match ( STRING0 + driverClassName ) ;
}
- return Outcome . match ( STRING1 + driverClassName ) ;
+ return Outcome . noMatch ( STRING1 + driverClassName ) ;
}
private String getDriverClassName ( Environment envir... | Fix off by one logic error |
<nb> public interface PhysicsControl extends Control {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void setPhysicsSpace ( PhysicsSpace space ) ;
<nb> public interface PhysicsControl extends Control {
COMMENT
COMMENT
public void setEnabled ( boolean state ) ;
+
+ COMMENT
+ COMMENT
... | Add isEnabled to PhysicsControl interface |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class Flash < T > {
+ private static final String ATTRIBUTE = STRING0 ;
private final HttpSession session ;
private final T value ;
@ suppresswarnings ( STRING1 )
Flash ( HttpSession session ) {
this . session = session ;
- this . value = ( T ) ses... | Tidy up Flash |
<nb> public class JavaFxNamespaceDescriptor implements XmlNSDescriptor , Validator < Xml
public XmlElementDescriptor getElementDescriptor ( @ notnull XmlTag tag ) {
final String name = tag . getName ( ) ;
- if ( tag . getName ( ) . equals ( FxmlConstants . FX_ROOT ) ) {
- return new JavaFxDefaultPropertyEleme... | root descriptor should detect nested tag s descriptor by parent tag description or return top level descriptions |
<nb> public class OServerCommandGetConnect extends OServerCommandAuthenticatedDbAbstr
STRING0 , STRING1 , db . getStorage ( ) . getConfiguration ( ) . dateTimeFormat } , new Object [ ] { STRING2 ,
STRING3 , STRING1 , db . getStorage ( ) . getConfiguration ( ) . getLocaleCountry ( ) } , new Object [ ] { STRING2 ,
... | Supported display of database charset and timezone in studio |
<nb> public abstract class RealmBase extends LifecycleMBeanBase implements Realm {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public void setX509UsernameRetrieverClassName ( String className )
{
<nb> public interface X509UsernameRetriever {
COMMENT ... | Fixed two javadoc complaints |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | add flow control example to ClientCall javadoc |
<nb> public class LoggingOutput implements MessageOutput {
@ override
public String getName ( ) {
- return STRING0 ;
+ return STRING1 ;
}
@ override
public String getHumanName ( ) {
- return STRING2 ;
+ return STRING3 ;
}
@ override | rename LoggingOutput to STDOUT Output |
<nb> public class ResourceExtractor {
}
public String getResourceName ( int resourceId ) {
- String ret = resourceIdToString . get ( resourceId ) ;
- if ( ret == null )
- throw new RuntimeException ( STRING0 + resourceId ) ;
- return ret ;
+ return resourceIdToString . get ( resourceId ) ;
}
} | ResourceExtractor shouldn t throw errors |
<nb> public class ChromeTraceEvent {
@ jsonproperty ( STRING0 ) long processId ,
@ jsonproperty ( STRING1 ) long threadId ,
@ jsonproperty ( STRING2 ) long microTime ,
- @ jsonproperty ( STRING3 ) Map < String , String > args ) {
+ @ jsonproperty ( STRING3 ) ImmutableMap < String , String > args ) {
this . ... | Don t create copies of already immutable Map |
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
COMMENT
+ if ( way . isTag ( STRING0 , STRING1 ) || way . isTag ( STRING0 , STRING2 ) ) {
+ permissions = permissions . add ( StreetTraversalPermission . PEDESTRIAN ) ;
+ }
+
+ if ( way . isTagFalse ( STRING0 ) ) {
+ permissions... | handle foot yes foot no reported by PJ Houser |
<nb> public abstract class PipeLogicIron {
return true ;
TileEntity tile = tileBuffer [ side . ordinal ( ) ] . getTile ( ) ;
+ if ( ( pipe . container . hasPlug ( side ) ) || ( tile != null && tile instanceof TileGenericPipe && ( ( TileGenericPipe ) tile ) . pipe . container . hasPlug ( side . getOpposite ( ) )... | Prevent Iron Pipes from switching to a plugged side |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class LanguageResolvingUtil {
if ( id == null ) {
id = computeConstantReturnValue ( language , STRING0 ) ;
}
- if ( id == null ) {
... | do not process language with empty id |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CommonsMultipartResolver extends CommonsFileUploadSupport
catch ( FileUploadBase . SizeLimitExceededException ex ) {
throw new MaxUploadSizeExceededException ( fileUpload . getSizeMax ( ) , ex ) ;
}
+ catch ( FileUploadBase... | CommonsMultipartResolver explicitly converts FileSizeLimitExceededException |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT | Removed unused import |
<nb> public class DeepLinkProcessor extends AbstractProcessor {
. endControlFlow ( )
. addStatement ( STRING0 )
. addStatement ( STRING1 )
+ . beginControlFlow ( STRING2 )
+ . addStatement ( STRING3 )
+ . endControlFlow ( )
. addStatement ( STRING4 )
. addStatement ( STRING5 )
. nextControlFlow ( STRI... | Add support for if the Activity was called with startActivityForResult then we want to forward results back to the caller |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AzureDiscovery extends ZenDiscovery {
public AzureDiscovery ( Settings settings , ClusterName clusterName , ThreadPool thread... | Fix constructor for ZenDiscovery s subclass |
<nb> public class IncomingTcpConnection extends Thread
header = input . readInt ( ) ;
assert isStream == ( MessagingService . getBits ( header , NUMBER0 , NUMBER1 ) == NUMBER1 ) : STRING0 + isStream ;
version = MessagingService . getBits ( header , NUMBER2 , NUMBER3 ) ;
- logger . debug ( STRING1 , version ) ; ... | Push annoying versioning message down to trace |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ElementManipulators extends ClassExtension < ElementManipulator > {
if ( valueTextRange . isEmpty ( ) ) return STRING0 ;
final String text = element . getText ( ) ;
- LOG . assertTrue ( valueTextRange . getEndOffset ( ) <= ... | avoid costly LOG assertTrue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class WordCoherencyRuleTest extends TestCase {
public void testRuleCompleteTexts ( ) throws IOException {
JLanguageTool langTool ;
SINGLE
- List matches = null ;
+ ... | add type to List |
<nb> public class RestDefinition extends OptionalIdentifiedDefinition < RestDefinition >
return this ;
}
+ public RestDefinition params ( List < RestOperationParamDefinition > params ) {
+ if ( getVerbs ( ) . isEmpty ( ) ) {
+ throw new IllegalArgumentException ( STRING0 ) ;
+ }
+ VerbDefinition verb = ... | add support for adding multiple parameters |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
}
}
+ public void showInputMethodAndSubtypeEnablerFromClient (
+ IInputMethodClient client , String topId ) {
+ SINGLE
+ synchronized ( mMethodMap ) {
+ if ( mCurClient == null || client == null
+ || mCurClient . client . a... | Fix build breakage |
<nb> public class GenericMessagingTemplate extends AbstractDestinationResolvingMessag
}
}
- @ suppresswarnings ( STRING0 )
@ override
protected final Message < ? > doReceive ( MessageChannel channel ) {
<nb> public class GenericMessagingTemplate extends AbstractDestinationResolvingMessag
public boolea... | Fix possible GenericMsgTemplate race condition |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ScrollingUtil {
installMoveDownAction ( list , focusParent ) ;
installMovePageUpAction ( list , focusParent ) ;
installMovePageDownAction ( ... | disable delegation of move home end if component is a text component |
<nb> public final class ChannelBufferHolder < E > {
if ( msgBuf != null ) {
return msgBuf . isEmpty ( ) ;
} else {
- return byteBuf . readable ( ) ;
+ return ! byteBuf . readable ( ) ;
}
case NUMBER0 :
case NUMBER1 : | Fix a bug where ChannelBufferHolder isEmpty returns a wrong value |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface ChatHandler
{
- public String getHandlerId ( ) ;
} | Remove useless method add docs |
<nb> public class PreferenceActivity extends ZLPreferenceActivity {
protected void onClick ( ) {
super . onClick ( ) ;
syncPreferences . run ( ) ;
+
+ myNetworkContext . removeCookiesForDomain ( SyncOptions . DOMAIN ) ;
+ myNetworkContext . setAccountName ( SyncOptions . DOMAIN , SyncOptions . REALM , null ... | reset account info on both enabling disabling of synchronisation |
<nb> public class RoleChangeDialogFragment extends DialogFragment {
public void onSaveInstanceState ( Bundle outState ) {
super . onSaveInstanceState ( outState ) ;
String role = mRoleListAdapter . getSelectedRole ( ) ;
- if ( role != null ) {
- outState . putString ( ROLE_TAG , role ) ;
- }
+ outState . ... | Remove null check for role before adding into the bundle |
<nb> public final class CompilationSupport {
PathFragment moduleMapPath = intermediateArtifacts . moduleMap ( ) . getArtifact ( ) . getExecPath ( ) ;
commandLine . add ( STRING0 ) . add ( moduleMapPath . getParentDirectory ( ) . toString ( ) ) ;
commandLine . add ( STRING1 ) ;
+
+ inputHeaders . addAll ( objc... | Make module maps generation conditional for native Swift rules |
<nb> public final class ViewRootImpl implements ViewParent ,
enqueueInputEvent ( e ) ;
Message m = obtainMessage ( MSG_ENQUEUE_X_AXIS_KEY_REPEAT , e ) ;
m . setAsynchronous ( true ) ;
- mHandler . sendMessageDelayed ( m , ViewConfiguration . getKeyRepeatTimeout ( ) ) ;
+ sendMessageDelayed ( m , ViewConfigura... | Send joystick key repeat messages to correct handler |
<nb> public class TabLayout extends HorizontalScrollView {
@ override
public void onPageSelected ( int position ) {
- getTabAt ( position ) . select ( ) ;
+ if ( mScrollState == ViewPager . SCROLL_STATE_IDLE ) {
+ getTabAt ( position ) . select ( ) ;
+ }
}
} ;
} | Fix tab blinking while fling |
<nb> public class WindowManagerService extends IWindowManager . Stub
}
}
- final boolean wasAnimating = w . mAnimating ;
+ final boolean wasAnimating = w . mWasAnimating ;
SINGLE
SINGLE
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
boolean mAttachedHidden ; SINGLE
boo... | Fix bug introduced when moving animation step out from between assignments to wasAnimating and nowAnimating |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public interface PrintedLinearGraph extends LinearGraphWithElementInfo { | log optimize import |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class GroupByTest extends TestUtil {
- @ beforeclass public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
+ @ beforeclass public static void setup ( ) { stall_till_cloudsize ( NUMBER1 ) ; }
@ test public void testBasic ( ) {
Frame fr = nul... | impute drops the in place arg |
<nb>
COMMENT
COMMENT
- PGraphicsGL - opengl version of the graphics engine
Part of the Processing project - http : SINGLE
Copyright ( c ) NUMBER0 - NUMBER1 Ben Fry and Casey Reas | integrating old bagel code back into the fold and refactoring PGraphics classes |
<nb> public class ProgramRaster extends BaseObj {
mCullMode = CullMode . BACK ;
}
- public void setLineWidth ( float w ) {
+ void setLineWidth ( float w ) {
mRS . validate ( ) ;
mLineWidth = w ;
mRS . nProgramRasterSetLineWidth ( mID , w ) ;
}
- public void setCullMode ( CullMode m ) {
+ void se... | Cleaning up the api |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class MavenPerformanceTest extends MavenImportingTestCase {
}
private void measure ( long expected , Runnable r ) {
- ProfilingUtil . ... | comment out ProfilingUtil for now |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DividerDrawerItem extends AbstractDrawerItem < DividerDrawerItem > {
viewHolder . view . setClickable ( false ) ;
viewHolder . view . setEnabled ( false ) ;
v... | Set divider item as not important for accessibility |
<nb> public class ShareFileFragment extends Fragment
}
getExpirationDateSection ( ) . setVisibility ( View . VISIBLE ) ;
getPasswordSection ( ) . setVisibility ( View . VISIBLE ) ;
- if ( mFile . isFolder ( ) && mCapabilities . getFilesSharingPublicUpload ( ) . isTrue ( ) ) {
+ if ( mFile . isFolder ( ) && ! ... | Enable change the permission when the capability is unknown too |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
COMMENT
COMMENT
<nb> abstract class TwitterBaseImpl implements TwitterBase , java . io . Serializable , OAu
RateLimitStatusEvent statusEvent
= new RateLimitStatusEvent ( this , rateLimitStatus , e... | Added a check to make sure that requests that return TOO_MANY_REQUESTS status |
<nb> public class ContentTypeITest extends WithJetty {
then ( ) .
contentType ( ContentType . TEXT . withCharset ( config ( ) . getEncoderConfig ( ) . defaultContentCharset ( ) ) ) ;
}
+
+ @ test public void
+ headerWithContentTypeEnumWorks ( ) throws Exception {
+ given ( ) .
+ header ( STRING0 , Conte... | Added test to verify that contenttype enum can be supplied as a header |
<nb> abstract class AbstractTestResults {
@ value.parameter
public abstract ImmutableSet < String > getLabels ( ) ;
+ @ jsonignore
public abstract ImmutableList < Path > getTestLogPaths ( ) ;
@ value.default
<nb> public class EventSerializationTest {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
S... | Don t serialize test log paths in TestResults |
<nb> public abstract class FeatureVectorEncoder {
protected byte [ ] bytesForString ( String x ) {
return x . getBytes ( Charsets . UTF_8 ) ;
}
+
+ public void flush ( double weight , Vector data ) {
+ SINGLE
+ }
}
<nb> public class TextValueEncoder extends FeatureVectorEncoder {
COMMENT
@ overrid... | Made text flush |
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
changeListWorker . notifyDoneProcessingChanges ( myListeners ) ;
}
if ( updateUnversionedFiles ) {
- boolean statusChanged = myComposite . equals ( composite ) ;
+ boolean statusChanged = ! myComposite . equals ( composite )... | Fixed bug with updating unchanged files when adding removing vcs root |
<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 ;
import NAMES... | added shortcut to get key from unfetched proxy |
<nb> public class SwitchStatement extends Statement {
this . expression = expression ;
this . defaultStatement = defaultStatement ;
}
-
+
+ public SwitchStatement ( Expression expression , List caseStatements , Statement defaultStatement ) {
+ this . expression = expression ;
+ this . caseStatements = c... | Fixed switch statement |
<nb> public class SeriesContract {
String TYPE = STRING0 ;
}
- public static final String CONTENT_AUTHORITY = STRING1 ;
+ public static final String CONTENT_AUTHORITY = STRING2 ;
private static final Uri BASE_CONTENT_URI = Uri . parse ( STRING3 + CONTENT_AUTHORITY ) ; | Restore provider authority |
<nb> public class MessagingController implements Runnable
{
try
{
+
+
+ if ( isMessageSuppressed ( account , folder , message ) )
+ {
+ if ( K9 . DEBUG )
+ {
+ Log . d ( K9 . LOG_TAG , STRING0 + message . getUid ( ) + STRING1 +
+ STRING2 +
+ STRING3 ) ;
+ }
+ progress . incrementAndGet ( ) ;... | If we hit a race condition and download a message after it s already |
<nb> public class TelephonyCapabilities {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a bad comment |
<nb> public abstract class PythonSdkFlavor {
@ nullable
public static PythonSdkFlavor getFlavor ( String sdkPath ) {
+ if ( sdkPath == null ) {
+ return null ;
+ }
+
for ( PythonSdkFlavor flavor : getApplicableFlavors ( ) ) {
if ( flavor . isValidSdkHome ( sdkPath ) ) {
return flavor ; | Flex build configurations in IDEA project setup UI |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ModuleFileIndexImpl implements ModuleFileIndex {
private final FileTypeRegistry myFileTypeRegistry ;
private final DirectoryIndex myDirectoryIndex ;
priva... | remove unnecessary dependency on implementation class |
<nb> public class PreferenceScreen extends PreferenceGroup implements
@ override
protected void onRestoreInstanceState ( Parcelable state ) {
+ if ( state == null || ! state . getClass ( ) . equals ( SavedState . class ) ) {
+ super . onRestoreInstanceState ( state ) ;
+ return ;
+ }
SavedState myState ... | Fix crash in PreferenceScreen onRestoreInstanceState |
<nb> public class ChatConversationPanel extends JScrollPane implements
+ ImageLoader . getSmiley ( matchGroup ) . getImagePath ( )
+ STRING0 + matchGroup + STRING1 ;
- m . appendReplacement ( msgBuffer , replacement ) ;
+ m . appendReplacement ( msgBuffer ,
+ StringUtils . replaceSpecialRegExpChars ( replac... | escape smiley char |
<nb> public class TranscoderRegistry {
SINGLE
return ( ResourceTranscoder < Z , R > ) UnitTranscoder . get ( ) ;
}
- GET_KEY . set ( decodedClass , transcodedClass ) ;
- ResourceTranscoder < ? , ? > result = factories . get ( GET_KEY ) ;
+ final ResourceTranscoder < ? , ? > result ;
+ synchronized ( GET_K... | Fix race in TranscoderRegistry |
<nb> public class Fragment implements ComponentCallbacks , OnCreateContextMenuListener
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify Fragment setUserVisibleHint guarantees in docs |
<nb> import NAMESPACE ;
Tests the URL connection . Not enabled by default , so tests don ' t require network connection .
COMMENT
- SINGLE
+ @ ignore SINGLE
public class UrlConnectTest {
private static String echoURL = STRING0 ; | Don t run URL tests by default |
<nb> public class PointLocationLayer extends OsmandMapLayer {
private RectF getHeadingRect ( int locationX , int locationY ) {
- int rad = ( int ) ( view . getDensity ( ) * NUMBER0 ) ;
+ int rad = ( int ) ( view . getDensity ( ) * NUMBER1 ) ;
return new RectF ( locationX - rad , locationY - rad , locationX ... | Add option to display position always in center |
<nb> public class CppCompletionPopupMenu extends ScrollableToolbarPopupMenu
SINGLE
int roomRight = Window . getClientWidth ( ) - left ;
- int maxWidth = roomRight - H_BUFFER ;
+ int maxWidth = Math . min ( roomRight - H_BUFFER , NUMBER0 ) ;
final boolean showLeft = maxWidth < MIN_WIDTH ;
if ( showLeft )
... | set some maximum widths for completion tooltips |
<nb> public class Where < ModelClass extends Model > implements Query {
mManager = manager ;
mFrom = from ;
mConditionQueryBuilder = new ConditionQueryBuilder < ModelClass > ( mManager , mFrom . getTable ( ) ) ;
+ mHaving = new ConditionQueryBuilder < ModelClass > ( mManager , mFrom . getTable ( ) ) ;
}
p... | fixed crash on having |
<nb> import NAMESPACE ;
import NAMESPACE ;
- public class JettyMetricsHandlerFactory
+ public class JettyMetricsHandlerWrapper
{
public static HandlerWrapper wrapHandler ( Handler handlerToWrap )
{ | Renamed JettyMetricsHandlerFactory to JettyMetricsHandlerWrapper |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
public class ConfigurableExtensionPointUtil {
<nb> public class ConfigurableExtensionPointUtil {
COMMENT
COMMENT
public static ConfigurableGroup getConfigurableGroup ( @ nullable Project project , boolean withIdeSettings ) {
- Map < Strin... | add test for a root group |
<nb> public abstract class StaticTypeCheckingSupport {
return methods ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
private static void scanClassesForDGMMethods ( Map < String , List < MethodNode > > accumulator ,
Iterable < Class > allClasses , boolean isStatic ) {
... | remove javadoc without any information from private method scanClassesForDGMMethods |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public interface OnMenuTabSelectedListener {
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
+
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public interface OnTabSele... | Adding deprecation annotation and javadoc |
<nb> public class NotificationManagerService extends SystemService {
if ( ! listener . enabledAndUserMatches ( sbn . getUserId ( ) ) ) {
return false ;
}
- Notification n = sbn . getNotification ( ) ;
- if ( listener . targetSdkVersion < Build . VERSION_CODES . L && n . isGroupChild ( ) ) {
- return false ;... | Allow listeners to see children |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.