diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class TaskListSubActivity extends SubActivity {
@ override
public void run ( ) {
loadingText . setText ( getParent ( ) . getResources ( ) . getString ( R . string . updating ) ) ;
- loadingText . setVisibility ( View . VISIBLE ) ;
}
} ) ;
<nb> public class TaskListSubActivity extends SubActi... | Always show text at the top |
<nb> public interface MethodGraph {
@ override
public String toString ( ) {
- return STRING0 + name ( ) ;
+ return STRING1 + name ( ) ;
}
}
} | Changed toString method to proper name |
<nb> public class AddKotlinSignatureAnnotation extends BaseIntentionAction implements
PsiElement element = file . findElementAt ( offset ) ;
PsiMethod res = PsiTreeUtil . getParentOfType ( element , PsiMethod . class ) ;
if ( res == null ) return null ;
+ if ( res . getReturnType ( ) == null ) return null ; SIN... | Disabled Add Kotlin Signature intention for constructors |
<nb> public class GsonSerializer < T > implements AsyncParser < T > {
ByteArrayOutputStream bout = new ByteArrayOutputStream ( ) ;
OutputStreamWriter out = new OutputStreamWriter ( bout ) ;
gson . toJson ( pojo , type , out ) ;
+ try {
+ out . flush ( ) ;
+ }
+ catch ( final Exception e ) {
+ throw new ... | Fix bug where output stream was not flushed |
<nb> public class WXSDKInstance implements IWXActivityStateListener {
}
IWXHttpAdapter adapter = WXSDKManager . getInstance ( ) . getIWXHttpAdapter ( ) ;
- if ( adapter == null ) {
- adapter = new DefaultWXHttpAdapter ( ) ;
- }
WXRequest wxRequest = new WXRequest ( ) ;
wxRequest . url = url ;
<nb>
... | android remove duplicate code |
<nb> public class OMMapManagerNew extends OMMapManagerAbstract implements OMMapManage
} else if ( autoFlushUnusedTime > NUMBER0 ) {
SINGLE
for ( OMMapBufferEntry entry : mapEntry . getValue ( ) ) {
+ totalBlocks ++ ;
if ( entry . isDirty ( ) && ( autoFlushUnusedTime == NUMBER0 || now - entry . getLastUsed ( )... | update total flushed blocks on log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StartupManagerImpl extends StartupManagerEx {
runActivities ( myPostStartupActivities ) ;
if ( app . isUnitTestMode ( ) ) return ;
- PageP... | Don t print cache stats on startup |
<nb> public class CharArrayUtil {
return indexOf ( buffer , pattern , fromIndex , buffer . length ( ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Added javadoc for indexOf method in order to avoid toIndex parameter processing ambiguity |
<nb> public final class ConfigMemorySize {
}
@ override
+ public String toString ( ) {
+ return STRING0 + bytes + STRING1 ;
+ }
+
+ @ override
public boolean equals ( Object other ) {
if ( other instanceof ConfigMemorySize ) {
return ( ( ConfigMemorySize ) other ) . bytes == this . bytes ; | Add ConfigMemorySize toString |
<nb>
package NAMESPACE ;
public class CodeInsightActions {
- public static LanguageExtension < LanguageCodeInsightActionHandler >
+ public static final LanguageExtension < LanguageCodeInsightActionHandler >
IMPLEMENT_METHOD = new LanguageExtension < LanguageCodeInsightActionHandler > ( STRING0 ) ;
- pub... | integrate Ctrl O for Ruby |
<nb> public abstract class Groovy {
private Script ( ) {
}
+ public static Function < Registry , Handler > handlers ( ) {
+ return handlers ( false ) ;
+ }
public static Function < Registry , Handler > handlers ( boolean staticCompile ) {
return handlers ( DEFAULT_HANDLERS_PATH , staticCompile ) ;
<... | Add no arg signatures to simplify using Groovy script handlers bindings without static compilation |
<nb> public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
if ( driver . getMajorVersion ( ) == NUMBER0 && isUseOracleImplicitCache ( ) ) {
this . getConnectProperties ( ) . setProperty ( STRING0 , STRING1 ) ;
}
+ } else if ( JdbcUtils . MYSQL . equals ( this . dbType ) ) {
+ LOG . ... | add init check for mysql |
<nb> public enum NotifyForOperationsEnum {
CREATE ( STRING0 ) ,
UPDATE ( STRING1 ) ,
- ALL ( STRING2 ) ;
+ ALL ( STRING2 ) ,
+ EXTENDED ( STRING3 ) ;
final String value ; | Added enum value EXTENDED |
<nb> public class ActionsTree {
myTree . getSelectionModel ( ) . setSelectionMode ( TreeSelectionModel . SINGLE_TREE_SELECTION ) ;
if ( ApplicationManager . getApplication ( ) . isInternal ( ) ) {
- new HeldDownKeyListener ( KeyStroke . getKeyStroke ( STRING0 ) ) {
+ new HeldDownKeyListener ( ) {
@ override... | add default shortcut SHIFT |
<nb> public class ExternalResourceManagerImpl extends ExternalResourceManagerEx imple
public String getResourceLocation ( @ nonnls String url , String version ) {
String result = getUserResource ( url , version ) ;
if ( result == null ) {
- result = getStdResource ( url , version ) ;
+ XMLCatalogManager manag... | resolving priority fixed |
<nb> public class BlockHighGrass extends Block {
@ override
public Vector4f getColorOffsetFor ( Block . SIDE side ) {
- return new Vector4f ( NUMBER0 f / NUMBER1 f , NUMBER2 f / NUMBER1 f , NUMBER3 f / NUMBER1 f , FLOAT0 ) ;
+ return new Vector4f ( NUMBER4 f / NUMBER1 f , NUMBER5 f / NUMBER1 f , NUMBER6 f / N... | Changed grass color |
<nb> public class GtasksTaskListUpdater {
sibling = previousTask . get ( ) ;
for ( int i = indent ; i < previousIndent . get ( ) ; i ++ )
sibling = parents . get ( sibling ) ;
- parent = parents . get ( sibling ) ;
+ if ( parents . containsKey ( sibling ) )
+ parent = parents . get ( sibling ) ;
+ else
... | Fix for NPE occuring during gtasks sync |
<nb> public class IdeTooltipManager implements ApplicationComponent , AWTEventListener
if ( ! myCurrentTipIsCentered ) {
myX = me . getX ( ) ;
myY = me . getY ( ) ;
- maybeShowFor ( c , me ) ;
+ if ( c instanceof JComponent && ( ( JComponent ) c ) . getToolTipText ( me ) == null ) {
+ hideCurrent ( me , nul... | Fix glitches with node tooltips |
<nb> public abstract class ODatabasePojoAbstract < T extends Object > extends ODatabaseW
public void unsetDirty ( final Object iPojo ) {
if ( iPojo == null )
return ;
-
+
final ODocument record = getRecordByUserObject ( iPojo , false ) ;
if ( record == null )
return ;
<nb> public abstract class ODatab... | Fixed bug on using released databases |
<nb> public class WordCount extends Configured implements Tool
private static Mutation getMutation ( Text word , int sum )
{
Column c = new Column ( ) ;
- c . name = ByteBuffer . wrap ( word . getBytes ( ) ) ;
+ byte [ ] wordBytes = word . getBytes ( ) ;
+ c . name = ByteBuffer . wrap ( Arrays . copyOf ( wo... | copy Text bytes because it gets re used |
<nb> public class EnglishGrammaticalRelations {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 + copularWordRegex + STRING4 ,
SINGLE
SINGLE
SINGLE
<nb> public class EnglishGrammaticalRelations {
SINGLE
SINGLE
SINGLE
- STRING5 ,
+ SINGLE
+ SINGLE
+ SINGLE
+ STRING6 + copularWordRegex + STRING7 ,... | Change some incorrect acomp to xcomp |
<nb> public class C4SChunk extends Chunk {
UDP . set4 ( _mem , ( idx < < NUMBER0 ) + OFF , ( int ) res ) ;
return true ;
}
- @ override boolean set_impl ( int i , double d ) { throw H2O . unimpl ( ) ; }
+ @ override boolean set_impl ( int i , double d ) { return false ; }
@ override boolean set_impl ( int i... | Fix unimpl in set_impl for C4SChunk |
<nb> public abstract class MarkRootActionBase extends DumbAwareAction {
return RootsSelection . EMPTY ;
}
}
- SourceFolder folder ;
- if ( Comparing . equal ( fileIndex . getSourceRootForFile ( file ) , file ) && ( ( folder = ProjectRootsUtil . findSourceFolder ( module , file ) ) != null ) ) {
+ SourceFold... | Mark As action works incorrectly for folder under library s source dir |
<nb> public class DnsNameResolverTest {
try {
InetAddress address = resolver . resolve ( STRING0 ) . syncUninterruptibly ( ) . getNow ( ) ;
- assertEquals ( STRING0 , address . getHostName ( ) ) ;
+ assertEquals ( STRING0 , address . getHostAddress ( ) ) ;
} finally {
resolver . close ( ) ;
} | Fix testResolveIp to make it work in some special environment |
<nb> public class MapFileTree implements MinimalFileTree , FileSystemMirroringFileTree
@ override
public void registerWatchPoints ( FileSystemSubset . Builder builder ) {
- SINGLE
- builder . add ( getTmpDir ( ) ) ;
+
}
} | Don t register the backing dir of MapFileTree as something to watch for changes |
<nb> public abstract class BooleanPostfixTemplateProvider extends PostfixTemplateProv
}
public static boolean isBooleanExpression ( @ notnull PrefixExpressionContext context ) {
- if ( context . expression instanceof PsiExpression ) {
- return isBooleanExpression ( ( PsiExpression ) context . expression , con... | Simplify if statements |
<nb> public class AppSettingsFragment extends PreferenceFragment implements OnPrefere
conf . locale = newLocale ;
res . updateConfiguration ( conf , res . getDisplayMetrics ( ) ) ;
- if ( LanguageUtils . getCurrentDeviceLanguage ( WordPress . getContext ( ) ) . equals ( newLocale ) ) {
- SINGLE
- mSettings ... | Always persist the selected language |
<nb> public class OServerClusterMember implements InstanceListener , MembershipListene
OLogManager . instance ( ) . config ( this , STRING0 , iEvent ) ;
}
- IMap < ? , ? > map = ( IMap < ? , ? > ) iEvent . getSource ( ) ;
-
- PartitionService partitionService = Hazelcast . getPartitionService ( ) ;
- Set ... | Removed the management of the migration until I understand how to get the MAP back |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
public class HyperUniquesSerde extends ComplexMetricSerde
{
- private final static byte [ ] NULL_BYTES = STRING0 . getBytes ( Charsets . UTF_8 ) ;
-
private static Ordering < H... | revert changes to hyperUnique |
<nb> public interface DeleteSpec {
COMMENT
COMMENT
COMMENT
- DeleteSpec setFollowSymlinks ( boolean followSymlinks ) ;
+ void setFollowSymlinks ( boolean followSymlinks ) ;
COMMENT
COMMENT
<nb> public class DefaultDeleteSpec implements DeleteSpecInternal {
}
@ override
- public DefaultDeleteSp... | Remove the return type from setFollowingSymlinks |
<nb> public final class FloatingToolbar {
mOverflowPanel . setX ( NUMBER0 ) ; SINGLE
} else {
mContentContainer . setX ( SINGLE
- mMarginHorizontal +
- mMainPanelSize . getWidth ( ) - containerSize . getWidth ( ) ) ;
+ mPopupWindow . getWidth ( ) -
+ containerSize . getWidth ( ) - mMarginHorizontal ) ;
... | Fix FloatingToolbar popup positioning |
<nb> public class InvocationTest extends TestBase {
assertEquals ( Equals . class , matchers . get ( NUMBER0 ) . getClass ( ) ) ;
assertEquals ( ArrayEquals . class , matchers . get ( NUMBER1 ) . getClass ( ) ) ;
}
+
+ @ test
+ public void shouldKnowIfIsToString ( ) throws Exception {
+ Invocation toStrin... | added test for isToString |
<nb> public class Activity extends ContextThemeWrapper
return new BackStackEntry ( mFragments ) ;
}
+ void invalidateFragmentIndex ( int index ) {
+ if ( mAllLoaderManagers != null ) {
+ mAllLoaderManagers . remove ( index ) ;
+ }
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class FragmentManager... | Fix fragment index expunging |
<nb> public class LogBufferDescriptor
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static int computeTermOffsetFromPosition ( final long position , final int positionBitsToShift )
+ {
+ final long mask = ( NUMBER0 < < positionBitsToShift ) - NUMBER0 ;
+
+ re... | Add back method used in dependent project |
<nb> public class AbstractPhone implements Serializable {
@ column
@ convert ( IntegerListConverter . class )
- protected ArrayList < Integer > extensions ;
+ protected ArrayList < Integer > extensions = new ArrayList < > ( ) ;
@ manytoone
protected Person owner ; | Fix converter test |
<nb> public class PathBaseDirBuilder implements BaseDirBuilder {
fileSystem . close ( ) ;
}
- System . gc ( ) ;
+ System . gc ( ) ; SINGLE
Files . walkFileTree ( toDelete , new SimpleFileVisitor < Path > ( ) {
@ override | Add a comment about why we are calling System gc |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
SINGLE
SINGLE
if ( mGlobalKeyManager . shouldHandleGlobalKey ( keyCode , event ) ) {
+ if ( isWakeKey ) {
+ mPowerManager . wakeUp ( event . getEventTime ( ) ) ;
+ }
return result ;
} | Global keys should wake the device if they re wake keys |
<nb> class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject
SINGLE
SINGLE
Storage [ ] result = super . getComponentStorageSpecs ( persistentStateComponent , stateSpec , operation ) ;
+ SINGLE
+ for ( Storage storage : result ) {
+ if ( storage . file ( ) . equals ( StoragePathMacro... | don t add fake storage if project file storage already listed |
<nb> public class OPMLImporter {
@ suppresswarnings ( STRING0 )
@ asynchronous
public void importOpml ( User user , String xml ) {
-
+ xml = xml . substring ( xml . indexOf ( STRING1 ) ) ;
WireFeedInput input = new WireFeedInput ( ) ;
try {
Opml feed = ( Opml ) input . build ( new StringReader ( xml ) )... | remove potential leading invalid characters |
<nb> class AngularPass extends AbstractPostOrderCallback
dependenciesArray
)
) ;
+ NodeUtil . setDebugInformation ( statement , entry . getNode ( ) , name ) ;
+
SINGLE
SINGLE
Node insertionPoint = entry . getTarget ( ) ;
<nb> class GenerateExports implements CompilerPass {
private void addExtern ( S... | When creating synthetic nodes add source information to them |
<nb> public class DevicePolicyManager {
= STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final String EXTRA_PROVISIONING_ADMIN_EXTRAS_BUN... | Fix DevicePolicyManager javadoc |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import in o e a t TermVectorsFilter |
<nb> public class HazelcastDiscoveryServiceFactory implements DiscoveryServiceFactory
public CoreTopologyService coreTopologyService ( Config config , MemberId myself , LogProvider logProvider ,
LogProvider userLogProvider )
{
- makeHazelcastSilent ( config ) ;
- hazelcastShouldNotPhoneHome ( ) ;
+ configur... | Unify hazelcast configuration among cores and edges |
<nb> public abstract class AbstractStoreClientFactory implements StoreClientFactory {
try {
return bootstrapMetadata ( key , urls ) ;
} catch ( BootstrapFailureException e ) {
- int backOffTime = NUMBER0 * nTries ;
- logger . warn ( STRING0 + backOffTime ) ;
- try {
- Thread . sleep ( backOffTime * NUMBER... | Fixed bad log in bootstrap retry logic |
<nb> public class Material implements Iterable < Material . Attribute > , Comparator < Materi
if ( obj == this ) return true ;
if ( ! ( obj instanceof Attribute ) ) return false ;
final Attribute other = ( Attribute ) obj ;
- if ( other . type != other . type ) return false ;
+ if ( this . type != other . typ... | Fixed Attribute equals |
<nb> public class Device {
public Cell mCell ;
private int mPhoneID = - NUMBER0 ;
- private String mNetType ;
private String mCellInfo ;
private String mDataState ;
private String mDataStateShort ;
<nb> public class Device {
mRoaming = tm . isNetworkRoaming ( ) ;
if ( Build . VERSION . SDK_INT >= ... | Remove unused Device s mNetType |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DuplicatePropertyInspection extends DescriptorProviderInspection {
@ notnull
public String getGroupDisplayName ( ) {
- return GroupNames . INTERNATIONALIZAT... | remove illegal dependency |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class HeaderWriterFilter extends OncePerRequestFilter {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
private final List < HeaderWriter > headerWriters ; | Fix HeaderWriterFilter Javadoc |
<nb> static class DefExpr implements Expr {
if ( ! isDynamic && sym . name . startsWith ( STRING0 ) && sym . name . endsWith ( STRING0 ) && sym . name . length ( ) > NUMBER0 )
{
RT . errPrintWriter ( ) . format ( STRING1
- + STRING2 ,
- sym ) ;
+ + STRING3 ,
+ sym , SOURCE_PATH . get ( ) , LINE . get ( ) ... | Add file and line number to earmuff warning |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface Net {
}
+ COMMENT
public static enum HttpMethod {
Get , Post
} | updated javadocs of Net interface |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
}
}
- private void logWarning ( String msg ) {
- this . processingEnv . getMessager ( ) . printMessage ( K... | Don t fail build on merge failure |
<nb> public class JspC extends Task implements Options {
setBlockExternal ( true ) ;
} else if ( tok . equals ( SWITCH_NO_BLOCK_EXTERNAL ) ) {
setBlockExternal ( false ) ;
+ } else if ( tok . equals ( SWITCH_STRICT_QUOTE_ESCAPING ) ) {
+ setStrictQuoteEscaping ( true ) ;
+ } else if ( tok . equals ( SWITCH_... | Add missing processing of new switches |
<nb>
- package NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ package NAMESPACE ;
+
public enum HttpMethods {
GET , PO... | Put license header in correct spot |
<nb> public class ComposeCryptoStatus {
}
public boolean shouldUsePgpMessageBuilder ( ) {
- return cryptoMode != CryptoMode . DISABLE ;
+ return cryptoProviderState != CryptoProviderState . UNCONFIGURED && cryptoMode != CryptoMode . DISABLE ;
}
public boolean isEncryptionEnabled ( ) { | actually skip pgp processing while sending if no crypto provider is configured |
<nb> public class ParamsProcessorUtil {
Map < String , String > metas = new HashMap < String , String > ( ) ;
for ( String key : params . keySet ( ) ) {
if ( isMetaValid ( key ) ) {
+ SINGLE
String metaName = removeMetaString ( key ) . toLowerCase ( ) ;
metas . put ( metaName , params . get ( key ) ) ;
} | add comment on why we lowercase meta param |
<nb> public class MocoRestTest extends BaseMocoHttpTest < RestServer > {
}
@ test
+ public void should_delete_with_response ( ) throws Exception {
+ server . resource ( STRING0 ,
+ delete ( STRING1 , status ( NUMBER0 ) )
+ ) ;
+
+ running ( server , new Runnable ( ) {
+ @ override
+ public void ru... | added delete with hadler test for rest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ SINGLE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Am {
STRING0 +
STRING1 +
STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING6 +
+ STRING2 +
STR... | running test package |
<nb> public final class NioEventLoop extends SingleThreadEventLoop {
COMMENT
public void setIoRatio ( int ioRatio ) {
if ( ioRatio <= NUMBER0 || ioRatio > NUMBER1 ) {
- throw new IllegalArgumentException ( STRING0 + ioRatio + STRING1 ) ;
+ throw new IllegalArgumentException ( STRING0 + ioRatio + STRING2 ) ;
... | Prettify exception message |
<nb> public final class TextTrackRenderer extends TrackRenderer implements Callback {
inputStreamEnded = true ;
} else {
nextInputBuffer . subsampleOffsetUs = formatHolder . format . subsampleOffsetUs ;
+ nextInputBuffer . flip ( ) ;
}
- nextInputBuffer . flip ( ) ;
parser . queueInputBuffer ( nextInputBu... | Don t flip TextTrackRenderer EoS input buffers |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BindingTest {
}
}
+ @ test
+ public void registeredMappers ( ) {
+ Collection < Class < ? > > mapperClasses = sqlSessionFactory... | Add test for MapperRegistry |
<nb> public class EnglishWordRepeatRuleTest {
assertGood ( STRING0 ) ;
assertGood ( STRING1 ) ;
assertGood ( STRING2 ) ;
- assertBad ( STRING3 ) ;
+ assertBad ( STRING4 ) ;
assertBad ( STRING5 ) ;
assertBad ( STRING6 ) ;
} | en make test work again after recent changes to can can repetition |
<nb> public class ActivityApp extends ActivityBase {
else
text += TextUtils . join ( STRING0 , permissions ) ;
}
- if ( hook . getFrom ( ) != null )
- text += STRING1 + hook . getFrom ( ) ;
TextView tvInfo = ( TextView ) layout . findViewById ( R . id . tvInfo ) ;
tvInfo . setText ( Html . fromHtml ( te... | Simplify function info |
<nb> public class SwipeRefreshLayout extends ViewGroup implements NestedScrollingPare
@ override
public boolean onStartNestedScroll ( View child , View target , int nestedScrollAxes ) {
- return isEnabled ( ) && canChildScrollUp ( ) && ! mReturningToStart && ! mRefreshing
+ return isEnabled ( ) && ! mReturnin... | Fix SwipeRefreshLayout stealing all downward nested scrolls |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StandardContext extends ContainerBase
logger = null ;
getLogger ( ) ;
- Cluster cluster = getClusterInternal ( ) ;
- if ( cluster instan... | Remove unnecessary code |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class GenericShellBolt extends ShellBolt implements IRichBolt {
+ private String [ ] outputFields ;
- public GenericShellBolt ( String [ ] command ) {
+ public Generic... | update contructor to incude declared fields |
<nb> public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C
private final DataContext myDataContext ;
private Presentation myPresentation ;
- public ActionWrapper ( @ notnull AnAction action , String groupName , MatchMode mode , DataContext dataContext ) {
+ public ActionWrapper ( ... | don t show the same group name for group actions |
<nb> public class TokenQueue {
int start = pos ;
String first = seq . substring ( NUMBER0 , NUMBER1 ) ;
boolean canScan = first . toLowerCase ( ) . equals ( first . toUpperCase ( ) ) ; SINGLE
- while ( ! isEmpty ( ) && ! matches ( seq ) ) {
+ while ( ! isEmpty ( ) ) {
+ if ( matches ( seq ) )
+ break ;
... | Fixed tokeniser optimisation when scanning for missing data element close tags |
<nb> public class DefaultTrayIcon implements TrayIcon {
}
@ override
- public void updateStatusText ( String statusText ) {
- statusTextItem . setText ( statusText ) ;
+ public void updateStatusText ( final String statusText ) {
+ Display . getDefault ( ) . asyncExec ( new Runnable ( ) {
+ public void r... | Working status text in DefaultTrayIcon |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import in WordCountJob to fix checkstyle failure |
<nb> public class ToolsMenu
COMMENT
COMMENT
+ COMMENT
COMMENT
public void actionPerformed ( ActionEvent e )
{
<nb> public class ToolsMenu
GuiActivator . getUIService ( ) . setConfigurationWindowVisible ( true ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void pluginComponentAdded ... | Adds an icon to the conference call menu |
<nb> public class PhoneStatusBar extends StatusBar {
|| Intent . ACTION_SCREEN_OFF . equals ( action ) ) {
boolean excludeRecents = false ;
if ( Intent . ACTION_CLOSE_SYSTEM_DIALOGS . equals ( action ) ) {
- String reason = intent . getExtras ( ) . getString ( STRING0 ) ;
+ String reason = intent . getStringE... | Fix statusbar crash when DeskClock alarms go off |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AssemblerLangPlugin implements Plugin < Project > {
}
@ mutate
- void registerLanguageTransform ( LanguageTransformCont... | Remove unused parameter |
<nb> public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
if ( System . currentTimeMillis ( ) > this . lastPingSent + this . pingFrequencyMs )
{
this . lastPingSent = System . currentTimeMillis ( ) ;
- if ( ! pingAgent ( false ) )
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( ... | Plugged hole in state machine |
<nb> public class Animation {
COMMENT
public enum PlayMode {
- NORMAL , REVERSED , LOOP , LOOP_REVERSED , LOOP_PINGPONG , LOOP_RANDOM ,
+ NORMAL ,
+ REVERSED ,
+ LOOP ,
+ LOOP_REVERSED ,
+ LOOP_PINGPONG ,
+ LOOP_RANDOM ,
}
final TextureRegion [ ] keyFrames ; | Changed the enum formatting |
<nb> public class PropsBuilderTest {
}
}
- SINGLE
-
- SINGLE
-
-
@ test
public void load_properties_file_if_exists ( ) throws Exception {
FileUtils . write ( new File ( homeDir , STRING0 ) , STRING1 ) ; | Remove bad comment in code |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public class DlvApi {
SINGLE
public static class DebuggerState { | suppress unused fields inspection |
<nb> public class DeprecatedInputFormatWrapper < K , V > implements org . apache . hadoop . map
COMMENT
COMMENT
COMMENT
- public static void setInputFormat ( Class < ? extends InputFormat < ? , ? > > realInputFormatClass ,
+ public static void setInputFormat ( Class < ? > realInputFormatClass ,
JobConf jobC... | Fix MultiInputFormat and DeprecatedInputFormatWrapper to play well with cascading schemes |
<nb> public class BlockUtil {
}
public static boolean isSoftBlock ( Block block , World world , int x , int y , int z ) {
- return block == null || BuildCraftAPI . softBlocks . contains ( block ) || block . isAir ( world , x , y , z ) ;
+ return block == null || BuildCraftAPI . softBlocks . contains ( block )... | Should fix some issues like grass |
<nb> public class AuthenticatorScreen extends MainScreen implements UpdateCallback ,
add ( mEnterPinTextView ) ;
add ( mUserList ) ;
+ add ( new LabelField ( STRING0 ) ) ; SINGLE
add ( mStatusText ) ;
add ( mVersionText ) ; | Added one line of space before main screen footer |
<nb> public class StoreTest extends ESTestCase {
IndexOutput output = dir . createOutput ( fileOut , IOContext . DEFAULT ) ;
long len = input . length ( ) ;
byte [ ] b = new byte [ NUMBER0 ] ;
- long broken = randomInt ( ( int ) len ) ;
+ long broken = randomInt ( ( int ) len - NUMBER1 ) ;
long pos = NUMBER... | TEST Fix off by one bug in corruptFile util function |
<nb> public class ChartServlet extends HttpServlet implements ManagedService {
DateFormat dateFormatter = new SimpleDateFormat ( dateFormat ) ;
if ( req . getParameter ( STRING0 ) != null ) {
- try { github pull request exclude
+ try {
timeBegin = dateFormatter . parse ( req . getParameter ( STRING0 ) ) ;
... | remove git comment |
<nb> public abstract class WPDrawerActivity extends ActionBarActivity {
break ;
case VIEW_SITE :
mShouldFinish = true ;
+ AnalyticsTracker . track ( AnalyticsTracker . Stat . OPENED_VIEW_SITE ) ;
intent = WPActivityUtils . getIntentForActivityId ( this , activityId ) ;
break ;
case QUICK_PHOTO : | add missing OPENED_VIEW_SITE tracking |
<nb> public abstract class SolverTest extends MahoutTestCase {
double entryMean ) {
SparseRowMatrix m = new SparseRowMatrix ( new int [ ] { numRows , numCols } ) ;
SINGLE
- Random r = RandomUtils . getRandom ( ) ;
+ Random r = new Random ( NUMBER0 ) ;
for ( int i = NUMBER1 ; i < nonNullRows ; i ++ ) {
Seq... | Revert part of that last change again as Hudson strikes back |
<nb> public class CommandLineRunner extends
static final Flag < Boolean > FLAG_process_closure_primitives
= Flag . value ( true ) ;
- public CommandLineRunner ( String [ ] args ) {
+ protected CommandLineRunner ( String [ ] args ) {
super ( args ) ;
}
- public CommandLineRunner ( String [ ] args , Pri... | changed access level of constructors of CommandLineRunner to protected |
<nb> public class DirectoryIndexImpl extends DirectoryIndex implements ProjectCompone
}
Set < VirtualFile > keySet = myDirToInfoMap . keySet ( ) ;
- Assert . assertEquals ( keySet , oldDirToInfoMap . keySet ( ) ) ;
+ Assert . assertEquals ( keySet . size ( ) , oldDirToInfoMap . keySet ( ) . size ( ) ) ;
for... | Fixed test broken by cdr |
<nb> public class VectorMap extends HashMap < String , float [ ] > {
switch ( this ) {
case INT8 :
out . writeByte ( value ) ;
+ break ;
case INT16 :
out . writeShort ( value ) ;
+ break ;
case INT32 :
out . writeInt ( value ) ;
+ break ;
default :
throw new RuntimeException ( STRING0 + this ) ;... | Fix a silly bug |
<nb> public class GroovyShell extends GroovyObjectSupport {
SINGLE
}
if ( script != null ) {
- System . err . println ( script ) ;
script . setBinding ( context ) ;
script . setProperty ( STRING0 , args ) ;
return script . run ( ) ; | remove one more debug message output to system err |
<nb> class ActivityManagerDebugConfig {
static final boolean DEBUG_URI_PERMISSION = DEBUG_ALL || false ;
static final boolean DEBUG_USER_LEAVING = DEBUG_ALL || false ;
static final boolean DEBUG_VISIBILITY = DEBUG_ALL || false ;
- static final boolean DEBUG_USAGE_STATS = DEBUG_ALL || true ;
+ static final boo... | Turn off a debug flag |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
private boolean myUpdateCursor ;
private int myCaretUpdateVShift ;
+
+ @ nullable
private final Project myProject ;
private long myMouseSelectionChangeTimestamp ;
private int mySavedCaretOffsetForDNDUndoHack ;
<nb> ... | Added NotNull in order to clearly indicate possible problem with null field |
<nb> public abstract class AbstractInteropTest {
public static final Metadata . Key < Messages . SimpleContext > METADATA_KEY =
ProtoUtils . keyForProto ( Messages . SimpleContext . getDefaultInstance ( ) ) ;
- private static final AtomicReference < ServerCall > serverCallCapture =
- new AtomicReference < Ser... | Add missing generics to some ServerCall usages |
<nb> public class GraphHopper implements GraphHopperAPI
fullyLoaded = true ;
}
- void close ( )
+ public void close ( )
{
if ( graph != null )
graph . close ( ) ;
<nb> public class GHPoint extends CoordTrig < Void >
{
super ( lat , lon ) ;
}
+
+ public static GHPoint parse ( String str )
+... | added parse method to GHPoint too |
<nb> public class PGraphicsOpenGL extends PGraphics {
asyncPixelReader = null ;
}
- deleteSurfaceTextures ( ) ;
if ( primaryGraphics ) {
deleteDefaultShaders ( ) ;
} else {
+ deleteSurfaceTextures ( ) ;
FrameBuffer ofb = offscreenFramebuffer ;
FrameBuffer mfb = multisampleFramebuffer ;
if ( ofb !=... | delete the surfaces only when disposing an offscreen graphics |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused import that breaks build |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class Column {
- public static final int DEFAULT_AREA_TRANSPARENCY = NUMBER0 ;
- private int areaTransparency = DEFAULT_AREA_TRANSPARENCY ;
private boolean hasLabels = false ;
private ValueFormatter formatter = new NumberValueFormatter ( ) ;
SINGLE
<nb... | Remove transparency attribute from Column model |
<nb> public class EclipseHandlerUtil {
private void msg ( int msgType , String message , String bundleName , Throwable error ) {
Bundle bundle = Platform . getBundle ( bundleName ) ;
if ( bundle == null ) {
- System . err . printf ( STRING0 , bundleName , message ) ;
+ System . err . printf ( STRING1 , bundle... | Improved error reporting in Eclipse |
<nb> public class ContextIndexSearcher extends IndexSearcher {
}
public void finishStage ( Stage stage ) {
- assert currentState == stage ;
+ assert currentState == stage : STRING0 + stage + STRING1 + currentState ;
this . currentState = Stage . NA ;
} | Added more info to assert |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix checkstyle issue |
<nb> public class NetworkConnection {
out = socket . getOutputStream ( ) ;
in = socket . getInputStream ( ) ;
+ SINGLE
+ SINGLE
+ writeMessage ( MSG_VERSION , new VersionMessage ( params ) ) ;
SINGLE
SINGLE
versionMessage = ( VersionMessage ) readMessage ( ) ;
SINGLE
- writeMessage ( MSG_VERSION ,... | Change the order of the messages in the version handshake |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT ... | Fix broken build due to rename of Geocoder isImplemented |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
public class ChangeListsIndexes {
+ private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
private final Tre... | debug logging for PerforceChangeProviderTest testBrokenSymlink |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.