diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr
@ override
public Object getResult ( ) {
if ( groupedResult != null ) {
- for ( ORuntimeResult g : groupedResult . values ( ) ) {
- final ODocument doc = g . getResult ( ) ;
- if ( doc != null )
- request . getResultList... | removed the null empty group |
<nb> final class ActivityStack {
return false ;
}
- if ( stack . isHomeStack ( ) ) {
+ final ActivityRecord top = stack . topRunningActivityLocked ( ) ;
+
+ if ( stack . isHomeStack ( ) && ( top == null || ! top . visible ) ) {
+ SINGLE
+ SINGLE
return mStackSupervisor . moveHomeStackTaskToTop ( tas... | Don t show home activity when exiting split screen with recents visible |
<nb> public final class ImmutableText implements CharSequence {
public char charAt ( int index ) {
InnerLeaf leaf = myLastLeaf ;
if ( leaf == null || index < leaf . offset || index >= leaf . offset + leaf . leafText . _count ) {
- leaf = myLastLeaf = findLeaf ( index , NUMBER0 ) ;
+ myLastLeaf = leaf = findLe... | save a volatile read |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class AtmosphereFramework implements ServletContextProvider {
logger . wa... | Allow Interceptor to set response s header with Jersey |
<nb> public class MavenPropertyPsiReferenceProvider extends PsiReferenceProvider {
ref = new MavenPropertyPsiReference ( mavenProject , element , propertyName , range , isSoft ) ;
}
else {
- ref = new MavenContextlessPropertyReference ( propertiesTag , element , range , isSoft ) ;
+ ref = new MavenContextless... | Fix maven tests |
<nb> public class TestFullContextParsing extends BaseTest {
assertEquals ( expecting , result ) ;
assertEquals ( STRING0 +
STRING1 +
- STRING2 +
+ STRING3 +
STRING4 ,
this . stderrDuringParse ) ;
} | Fix unit test checking for incorrect input index in warning message |
<nb> public class ParameterProcessor {
}
}
else {
- LOGGER . debug ( STRING0 + innerProperty ) ;
+ LOGGER . debug ( STRING1 + innerProperty ) ;
bp . setSchema ( new ArrayModel ( ) . items ( innerProperty ) ) ;
SINGLE | removed debug comment |
<nb> public final class OneToThreeDiamondSequencedThroughputTest extends AbstractPerf
return opsPerSecond ;
}
+
+ public static void main ( String [ ] args ) throws Exception
+ {
+ new OneToThreeDiamondSequencedThroughputTest ( ) . testImplementations ( ) ;
+ }
} | Add main method |
<nb> public class FilteringIterable < T > implements Iterable < T >
return new FilteringIterable < T > ( source , FilteringIterable . < T > noDuplicatesPredicate ( ) ) ;
}
- static < T > Predicate < T > noDuplicatesPredicate ( )
+ public static < T > Predicate < T > noDuplicatesPredicate ( )
{
return new ... | Made some predicates public good utilities to use |
<nb> public class RecoveryTests extends CrateIntegrationTest {
try {
Thread . sleep ( timeBetweenChunks . get ( ) ) ;
} catch ( InterruptedException ex ) {
- SINGLE
- Thread . currentThread ( ) . interrupt ( ) ;
+ Thread . interrupted ( ) ;
}
bytes = new BytesArray ( new byte [ ] { contentBytes [ i ] } ... | set thread name in RecoveryTests |
<nb> public class CalendarPickerView extends ListView {
for ( MonthCellDescriptor selectedCell : selectedCells ) {
SINGLE
selectedCell . setSelected ( false ) ;
+
+ if ( dateListener != null ) {
+ Date selectedDate = selectedCell . getDate ( ) ;
+
+ if ( selectionMode == SelectionMode . RANGE ) {
+ in... | Invoke OnDateSelectedListener onDateUnselected at clearOldSelections |
<nb> public class DeploymentManager {
. getProcessDefinitionEntityManager ( )
. findLatestProcessDefinitionByKeyAndTenantId ( processDefinitionKey , tenantId ) ;
if ( processDefinition == null ) {
- throw new ActivitiObjectNotFoundException ( STRING0 + processDefinitionKey + STRING1 + tenantId , ProcessDefiniti... | Small tweak to exception add quotes to see difference between empty and space string |
<nb> public class DataLaboratoryHelper {
final ManipulatorUI ui = m . getUI ( ) ;
SINGLE
if ( ui != null ) {
- final JButton okButton = new JButton ( NbBundle . getMessage ( DataLaboratoryHelper . class , STRING0 ) ) ;
+ final JButton okButton = new JButton ( NbBundle . getMessage ( DataLaboratoryHelper . cla... | Fix resource text |
<nb> public abstract class JsonParser
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public int nextIntValue ( int defaultValue ) throws IOException {
return ( nextToken ( ) == JsonToken . VALUE_NUMBER_INT ) ? getIntValue ( ) : defaultValue ;
<nb> public abstract class JsonParser
COMMENT
COMM... | Fix incorrect type referenced in javadoc of JsonParser |
<nb> public class LanguageLevelModuleExtension extends ModuleExtension < LanguageLevelM
SINGLE
}
}
+ else {
+ myLanguageLevel = null ;
+ }
}
@ override | fixed reloading language level when iml file is changed externally |
<nb> public class NotificationCompat {
public static final String EXTRA_PEOPLE = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String EXTRA_COMPACT_ACTIONS = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add EXTRA_COMPACT_ACTIONS to NotificationCompat |
<nb> abstract class BoundedLocalCache < K , V > extends BLCHeader . DrainStatusRef < K , V >
}
}
- COMMENT
+ COMMENT
final class PerformCleanupTask extends ForkJoinTask < Void > implements Runnable {
private static final long serialVersionUID = NUMBER0 ;
@ override
- public final Void getRawResult (... | Fix minor PMD warnings unnecessary finals |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public final class WebViewPool {
private static final int POOL_SIZE = NUMBER0 ; | Add comments for javadoc |
<nb> public class HttpExchangeTest
httpExchange . setURL ( _scheme + STRING0 + _port ) ;
httpExchange . setRequestURI ( STRING1 ) ;
httpExchange . setMethod ( HttpMethods . OPTIONS ) ;
- httpExchange . setRequestHeader ( STRING2 , STRING3 ) ;
+ SINGLE
_httpClient . send ( httpExchange ) ;
int state = ht... | HttpExchangeTest testOptionsWithExchange no longer fails on Mac OS X |
<nb> public class Starter {
protected VertxOptions options ;
protected DeploymentOptions deploymentOptions ;
+ public void run ( String commandLine ) {
+ String [ ] sargs = commandLine . split ( STRING0 ) ;
+ run ( sargs ) ;
+ }
+
+ public static void runCommandLine ( String commandLine ) {
+ new St... | Allow command line string in starter |
<nb> public class RestSqlAction extends BaseRestHandler {
@ override
protected void handleRequest ( RestRequest request , RestChannel channel , final Client client ) throws Exception {
- final String sql = request . param ( STRING0 ) ;
-
- SearchDao searchDao = new SearchDao ( client ) ;
+ String sql = re... | set plugin action support post request |
<nb> public class DeleteReturnRouteMessageClass extends ZWaveCommandProcessor {
logger . debug ( STRING0 , nodeId ) ;
if ( incomingMessage . getMessagePayloadByte ( NUMBER0 ) != NUMBER1 ) {
- logger . error ( STRING1 , nodeId , Integer . toHexString ( incomingMessage . getMessagePayloadByte ( NUMBER2 ) ) ) ;
... | Fix logging error |
<nb> public class CommentsByIdTimeLineFragment extends AbstractTimeLineFragment < Comme
( ( TextView ) footerView . findViewById ( R . id . listview_footer ) ) . setText ( getString ( R . string . more ) ) ;
} else {
- ( ( TextView ) footerView . findViewById ( R . id . listview_footer ) ) . setVisibility ( Vie... | use tool analyze code |
<nb> public class DeepLearningMissingTest extends TestUtil {
}
Log . info ( sb . toString ( ) ) ;
Assert . assertTrue ( sumErr . get ( DeepLearningModel . DeepLearningParameters . MissingValuesHandling . Skip ) > sumErr . get ( DeepLearningModel . DeepLearningParameters . MissingValuesHandling . MeanImputation ) ... | Lossen DL assert some appears to be very sensitive to RNG |
<nb> import NAMESPACE ;
COMMENT
public interface Scheduler extends InstanceListener {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
void schedulJob ( ExecutionGraph executionGraph ) throws SchedulingException ;
+ COMMENT
+ COMMENT
+ COMMENT
... | Improved java doc |
<nb> public class NotificationsPendingDraftsService extends Service {
PendingIntent . FLAG_CANCEL_CURRENT | PendingIntent . FLAG_UPDATE_CURRENT ) ;
builder . setContentIntent ( pendingIntent ) ;
- addOpenDraftActionForNotification ( this , builder , postId , isPage ) ;
-
+ SINGLE
+ if ( postId != NUMBER0 ... | added check to only add quick acitons if we do have a post page to link to |
<nb> public class NaturalLogicRelationTest {
@ test
public void someInsertionRelations ( ) {
assertEquals ( NaturalLogicRelation . INDEPENDENCE , NaturalLogicRelation . forDependencyInsertion ( STRING0 ) ) ;
- assertEquals ( NaturalLogicRelation . FORWARD_ENTAILMENT , NaturalLogicRelation . forDependencyInserti... | Fix a failing test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Remove unused import |
<nb> public class BadRequestException extends ServerException {
return new BadRequestException ( message ) ;
}
- public static BadRequestException of ( @ nullable String message , List < Message > errors ) {
+ public static BadRequestException of ( String message , List < Message > errors ) {
return new Bad... | Fix quality flaw |
<nb> public abstract class Actor < Message , V > implements SuspendableCallable < V > , Joina
COMMENT
COMMENT
COMMENT
- public void checkCodeSwap ( ) throws SuspendExecution {
+ public final void checkCodeSwap ( ) throws SuspendExecution {
if ( classRef == null )
return ;
verifyInActor ( ) ; | make checkCodeSwap final |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PsiSuperMethodImplUtil {
if ( result == null ) {
result = new HierarchicalMethodSignatureImpl ( ( MethodSignatureBackedByP... | reset cls method hierarchy on root change only |
<nb> public class SourceFormatter {
STRING0 + fileName + STRING1 + lineCount ) ;
}
+ if ( ( ( previousLine . endsWith ( StringPool . COLON ) &&
+ previousLine . contains ( StringPool . TAB + STRING2 ) ) ||
+ ( previousLine . endsWith (
+ StringPool . OPEN_PARENTHESIS ) &&
+ previousLine . contains ( Str... | SourceFormatter missing tabs for if for statements |
<nb> public class BNCCheck {
private BNCCheck ( ) throws IOException {
prg = new Main ( false , Language . ENGLISH ) ;
- prg . getJLanguageTool ( ) . disableRule ( STRING0 ) ;
- prg . getJLanguageTool ( ) . disableRule ( STRING1 ) ;
- System . err . println ( STRING2 ) ;
+ String [ ] disRules = new String... | disable more rules to avoid too many false alarms |
<nb> public class PrefixedRootCauseFirstThrowableProxyConverterTest {
STRING0 +
STRING1 , Pattern . DOTALL ) ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ test
- public void finalFrameIsMain ( ) throws Exception {
- assertThat ( converter . throwableProxyToString ( proxy ) )
- . matches ( ... | Remove not a relevant test |
<nb> public class RolloutPlanTestCase extends AbstractCliTestBase {
cli . sendLine ( STRING0 , true ) ;
SINGLE
- cli . sendLine ( STRING1 , true ) ;
+ cli . sendLine ( STRING2 , true ) ;
}
@ test
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
... | Add allow resource service restart headers to remove ops |
<nb> public class AlluxioShell implements Closeable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
private String [ ] getReplacementCmd ( String cmd ) { | Correct a wrong annotation |
<nb> public class RexsterGraph implements IndexableGraph {
try {
return new RexsterVertex ( RestHelper . getResultObject ( this . graphURI + RexsterTokens . SLASH_VERTICES_SLASH + RestHelper . encode ( id ) ) , this ) ;
} catch ( Exception e ) {
- SINGLE
return null ;
}
}
<nb> public class RexsterGraph ... | Removed old comments |
<nb> public abstract class BaseActualServer < T extends ResponseSetting < T > , U extends B
return configured ( this . handler ) ;
}
+ @ suppresswarnings ( STRING0 )
public U mergeServer ( final U thatServer ) {
U newServer = createMergeServer ( thatServer ) ;
newServer . addSettings ( this . getSettings ... | suppressed warning in merge server |
<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable
private void layoutStatusIcons ( ) {
int adHeight = myAdComponent . getAdComponent ( ) . getPreferredSize ( ) . height ;
- Dimension buttonSize = adHeight > NUMBER0 ? new Dimension ( NUMBER0 , NUMBER0 ) : new Dimension ( relev... | don t show lookup scrollbar button in live template list |
<nb> public final class SSLContext {
COMMENT
COMMENT
public static native boolean setCertificateRaw ( long ctx , byte [ ] cert , byte [ ] key , int sslAidxRsa ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public stat... | Add the new method for setting the certificate chain from a keystore |
<nb> public class EnergyPulser {
if ( ! singlePulse || ! hasPulsed ) {
if ( tick % NUMBER0 == NUMBER1 || ! hasPulsed )
{
- powerReceptor . getPowerProvider ( ) . receiveEnergy ( Math . max ( NUMBER2 < < ( pulseCount - NUMBER2 ) , NUMBER3 ) , ForgeDirection . WEST ) ;
+ powerReceptor . getPowerProvider ( ) . r... | Fix logic inversion derp |
<nb> public class GPUImage {
COMMENT
COMMENT
public void setImage ( final Bitmap bitmap ) {
- setImage ( bitmap , false ) ;
mCurrentBitmap = bitmap ;
- }
-
- private void setImage ( final Bitmap bitmap , final boolean recycle ) {
- mRenderer . setImageBitmap ( bitmap , recycle ) ;
+ mRenderer . setI... | Remove unused method |
<nb> public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
@ override
public boolean matches ( ClassNode classNode ) {
- return AstUtils . hasAtLeastOneAnnotation ( classNode , STRING0 , STRING1 ,
- STRING2 ) ;
+ return AstUtils . hasAtLeastOneAnnotation ( classNode , STRING0 ,
... | Recognize RestController as MVC Application |
<nb> import NAMESPACE ;
public class LocalTachyonClusterResource implements TestRule {
private static final long DEFAULT_WORKER_CAPACITY_BYTES = NUMBER0 * Constants . MB ;
- private static final int DEFAULT_QUOTA_UNIT_BYTES = NUMBER0 * Constants . KB ;
private static final int DEFAULT_USER_BLOCK_SIZE = Consta... | SMALLFIX Remove unused constant in LocalTachyonClusterResource |
<nb> public class RowNumberOperator
{
if ( isSinglePartition ( ) && maxRowsPerPartition . isPresent ( ) ) {
SINGLE
- return partitionRowCount . get ( NUMBER0 ) < maxRowsPerPartition . get ( ) ;
+ return partitionRowCount . get ( NUMBER0 ) < maxRowsPerPartition . get ( ) && ! finishing && inputPage == null ;
... | Fix exception in RowNumberOperator |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class ShiftReduceParser implements Serializable , ParserGrammar {
final Index < Transition > transitionIndex ;
<nb> public class ShiftReduceParser implements Serializable , ParserGrammar {
}
... | Add a Timing to the training iterations |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IvyUtil {
return ModuleRevisionId . newInstance ( id . getGroup ( ) , id . getName ( ) , id . getVersion ( ) ) ;
}
- public... | Removed unused method |
<nb> public abstract class TWLanedLayoutManager extends TWLayoutManager {
return ;
}
- if ( canUseLanes ( mLanesToRestore ) ) {
+ final boolean canRestore = canUseLanes ( mLanesToRestore ) ;
+ if ( canRestore ) {
mLanes = mLanesToRestore ;
mItemEntries = mItemEntriesToRestore ;
+ }
- mLanesToResto... | library Unconditionally reset restored state in ensureLayoutState |
<nb> public class GoogleAuthProvider extends FirebaseAuthProvider implements
private void handleSignInResult ( GoogleSignInResult result ) {
if ( result . isSuccess ( ) ) {
GoogleSignInAccount acct = result . getSignInAccount ( ) ;
- acct . getServerAuthCode ( ) ;
GoogleOAuthTask googleOAuthTask = new GoogleO... | We don t need the server auth code |
<nb> public final class IllegalCatchCheck extends Check {
COMMENT
COMMENT
COMMENT
- public static List < DetailAST > getAllExceptionTypes ( DetailAST parentToken ) {
+ private static List < DetailAST > getAllExceptionTypes ( DetailAST parentToken ) {
DetailAST currentNode = parentToken . getFirstChild ( ) ;... | isolated check methods |
<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 PluginManager {
}
}
catch ( Throwable e ) {
- Log . ... | Added info about plugin that failed to load |
<nb> public class BrowseFragment extends BaseFragment {
COMMENT
public void setAdapter ( ObjectAdapter adapter ) {
mAdapter = adapter ;
+ if ( getView ( ) == null ) {
+ return ;
+ }
replaceMainFragment ( mSelectedPosition ) ;
if ( adapter != null ) {
<nb> public class BrowseSupportFragment extends B... | Fix BrowseFragment NPE by lazy loading |
<nb> public class Element implements Cloneable {
COMMENT
COMMENT
COMMENT
- final boolean isMatched ( final AnalyzedToken token ) {
+ public final boolean isMatched ( final AnalyzedToken token ) {
if ( testWhitespace && ! isWhitespaceBefore ( token ) ) {
return false ;
} | made isMatched method public to allow calling from a pattern rule class |
<nb> public class Px500Api extends DefaultApi10a
{
return String . format ( AUTHORIZATION_URL , requestToken . getToken ( ) ) ;
}
- }
+ } | Removed new line at the end of the file |
<nb> public class ExampleUsingGeneratedStub
}
}
- sb . append ( STRING0 ) . append ( CarEncoder . makeMetaAttribute ( MetaAttribute . SEMANTIC_TYPE ) ) ;
sb . append ( STRING1 ) . append ( car . make ( ) ) ;
sb . append ( STRING2 ) . append (
<nb> public class ExampleUsingGeneratedStubExtension
}
} ... | Removed semanticType output as it only applies to FIX messages |
<nb> public class PeerAwareInstanceRegistryImpl extends AbstractInstanceRegistry impl
@ com.netflix.servo.annotations.monitor ( name = STRING0 , description = STRING1 ,
type = com . netflix . servo . annotations . DataSourceType . GAUGE )
public int isBelowRenewThresold ( ) {
- if ( ( getNumOfRenewsInLastMin ( ... | Add omitted in the last merge update from master |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add option to ignore constructors with annotation to Redundant no arg constructor inspection |
<nb> public class IgnoredNamesTest {
COMMENT
assertTrue ( instance . ignore ( STRING0 ) ) ;
+ assertFalse ( instance . ignore ( STRING1 ) ) ;
assertFalse ( instance . ignore ( STRING2 ) ) ;
COMMENT | add test for |
<nb> public class CustomConstraintTest {
public static Archive < ? > deployment ( ) {
WebArchive war = ShrinkWrap . create ( WebArchive . class )
. addClasses ( MyBean . class )
- . addAsResource ( STRING0 )
- . addAsManifestResource ( EmptyAsset . INSTANCE , STRING1 ) ;
+ . addAsResource ( STRING0 ) ;
... | Removing redundant beans xml from archive |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AddOnDemandStaticImportAction extends BaseElementAtCaretIntentionAc
}
private static boolean isParameterizedReference ( final PsiJavaCodeReferenceElement expression ) {
- if ( expression . getParameterList ( ) == null ) {
... | Remove duplicate check from intention |
<nb> public class OProfiler implements OProfilerMBean {
final StringBuilder buffer = new StringBuilder ( ) ;
buffer . append ( STRING0 ) ;
buffer . append ( new Date ( ) ) ;
- buffer . append ( String . format ( STRING1 ,
- totMem , ( totMem * NUMBER0 / ( float ) maxMem ) , maxMem , freeMem , Runtime . getRun... | Improved profiler dump output |
<nb> public class DeflatingStreamSinkChannel implements StreamSinkChannel {
if ( anyAreSet ( DELEGATE_SHUTDOWN , state ) ) {
return delegate . flush ( ) ;
} else {
+ if ( ! performFlushIfRequired ( ) ) {
+ return false ;
+ }
SINGLE
if ( ! deflater . finished ( ) ) {
deflateData ( ) ;
<nb> public cla... | deflating channel fix |
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator < Token >
COMMENT
protected ParserRuleContext < Token > _ctx ;
- protected boolean _buildParseTrees ;
+ protected boolean _buildParseTrees = true ;
protected TraceListener _tracer ; | turn on building parse trees by default since we do listener by default |
<nb> public class PomTargetPsiElementImpl extends RenameableFakePsiElement implements
throw new UnsupportedOperationException ( STRING0 + myTarget . getClass ( ) . getName ( ) + STRING1 ) ;
}
- @ notnull
- @ override
- public PsiElement getNavigationElement ( ) {
- if ( myTarget instanceof PsiTarget ) {
... | Can t find usages of filter or servlet |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HyperlinkLabel extends HighlightableComponent {
this . setMinimumSize ( preferredSize ) ;
}
+ @ override
+ protected ... | add ability to activate hyperlink via keyboard Space |
<nb> public abstract class PullToRefreshAdapterViewBase < T extends AbsListView > extend
if ( count == NUMBER0 ) {
return true ;
} else if ( refreshableView . getLastVisiblePosition ( ) == count - NUMBER1 ) {
- return true ;
+ return refreshableView . getChildAt ( refreshableView . getChildCount ( ) - NUMBER1... | only allow the bottom pull if the last item is fully displayed |
<nb> public class TestWindow extends Window {
public int requestedFeatureId ;
public int featureDrawableResourceFeatureId ;
public int featureDrawableResourceResId ;
+ public int softInputMode ;
TestWindow ( Context context ) {
super ( context ) ;
<nb> public class TestWindow extends Window {
@ overri... | Add support to TestWindow for soft input method |
<nb> public abstract class AbstractInstrumentationMojo extends AbstractAndroidMojo
{
messageEnd = trace . indexOf ( newline + STRING0 ) ;
SINGLE
- if ( messageStart > messageEnd ) SINGLE
- messageStart = NUMBER0 ;
+ if ( messageStart > messageEnd )
+ {
+ SINGLE
+ messageStart = NUMBER0 ;
+ }
}
r... | fixed code style |
<nb> public final class TestLanczosSolver extends SolverTest {
int rank = NUMBER0 ;
LanczosState state = new LanczosState ( corpus , rank , initialVector ) ;
long time = timeLanczos ( corpus , state , rank , false ) ;
- assertTrue ( STRING0 , time < NUMBER1 ) ;
assertOrthonormal ( state ) ;
for ( int i = NU... | remove nondeterministic timing check |
<nb> public final class WebSocketProtocol extends Protocol {
return ;
}
- if ( exitAfterHandlingRedirect ( channel , future , response , request , response . getStatus ( ) . code ( ) , realm ) )
+ if ( REDIRECT_STATUSES . contains ( status . getStatusCode ( ) ) && exitAfterHandlingRedirect ( channel , future ... | Fix websocket redirect |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract public class GoLiveTemplateContextType extends TemplateContextType {
}
@ nullable
- private static PsiElement getFirstCompo... | don t show live templates in comments |
<nb> abstract class MultiKeyPipelineBase extends PipelineBase implements
client . info ( ) ;
return getResponse ( BuilderFactory . STRING ) ;
}
+
+ public Response < String > info ( final String section ) {
+ client . info ( section ) ;
+ return getResponse ( BuilderFactory . STRING ) ;
+ }
public R... | adding info command with section to pipeline |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPAC... | Absorb ImmutableSettings into Settings |
<nb> public class AudioSystem
public static final int FORCE_DIGITAL_DOCK = NUMBER0 ;
public static final int FORCE_NO_BT_A2DP = NUMBER1 ;
public static final int FORCE_SYSTEM_ENFORCED = NUMBER2 ;
- private static final int NUM_FORCE_CONFIG = NUMBER3 ;
+ public static final int FORCE_SYSTEM_AUDIO_HDMI_ARC = NU... | Define force usage and category for System Audio Control |
<nb> public class BreakpointManager {
@ override
public void changeEvent ( @ notnull DebuggerContextImpl newContext , int event ) {
+ if ( event == DebuggerSession . EVENT_ATTACHED ) {
+ SINGLE
+ for ( XLineBreakpoint breakpoint : getXBreakpointManager ( ) . getBreakpoints ( JavaMethodBreakpointType . class... | warn about active method breakpoints on debug session start |
<nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {
s1 . incrementTimeInSeconds ( timeLong ) ;
s1 . incrementWeight ( weight ) ;
+
+ if ( walkingBike || TraverseMode . BICYCLE . equals ( traverseMode ) ) {
+ if ( ! ( backWalkingBike || TraverseMode . BICYCLE . equals ( backMode ) ) )... | Implement bike switch penalties |
<nb> public class KeyCharacterMap {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix documentation bug |
<nb> public class Wizard
if ( oldPanelDescriptor != null )
oldPanelDescriptor . pageHiding ( ) ;
- if ( this . containsPage ( WizardPage . DEFAULT_PAGE_IDENTIFIER ) )
- {
- this . unregisterWizardPage ( WizardPage . DEFAULT_PAGE_IDENTIFIER ) ;
- }
-
- if ( this . containsPage ( WizardPage . SUMMARY_PA... | Fix NullPointerException on new account |
<nb> public abstract class FunctionalTest extends RandomData {
}
@ test
- public void testInsertOneToManyOneInsert ( ) {
+ public void testInsertOneToManyInsert ( ) {
Person person = randomPerson ( ) ;
Phone phone1 = randomPhone ( ) ;
Phone phone2 = randomPhone ( ) ;
<nb> public abstract class Functio... | Fix test method names |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+
import NAMESPACE ;
- ... | Tidying up unit tests |
<nb> public class BaseHadoopTest {
private static class HadoopVersionFilter implements FileFilter {
@ override
public boolean accept ( final File pathname ) {
+ System . out . println ( STRING0 + pathname ) ;
return pathname . getName ( ) . endsWith ( format ( STRING1 , HADOOP_VERSION ) ) ;
}
} | put back logging for the index error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NearCacheInvalidatorImpl implements NearCacheInvalidator {
} ;
COMMENT
- COMMENT
- COMMENT
- private final ConstructorFunction < Strin... | Removed unused field |
<nb> public class QueryUtil {
return new Select ( false , items . build ( ) ) ;
}
- public static Select selectList ( SelectItem . . . items ) {
- return new Select ( false , ImmutableList . copyOf ( items ) ) ;
- }
-
public static List < Relation > table ( QualifiedName name ) {
return ImmutableList ... | Remove unused methods from QueryUtil |
<nb> public final class NonLoginAuthenticator extends AuthenticatorBase {
SINGLE
SINGLE
if ( checkForCachedAuthentication ( request , response , true ) ) {
+ SINGLE
+ SINGLE
+ if ( cache ) {
+ request . getSessionInternal ( true ) . setPrincipal ( request . getUserPrincipal ( ) ) ;
+ }
return true ;
... | Fix broken unit test |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ SINGLE
public class PermanentlyFailingSecurityRuleWithWildcardPath implements SecurityRule
{
<nb> public class PermanentlyFailingSecurityRuleWithWildcardPath implements SecurityR
return SecurityFilter . basicAuthenticationResponse ( REALM ) ;
}
}
+
... | Added links to snippets into the functional test to fix the manual build |
<nb> public class DeepLearningModel extends Model {
+ ( validAUC != null ? STRING0 + validAUC . threshold_criterion . toString ( ) . replace ( STRING1 , STRING2 ) + STRING3 : STRING4 )
+ String . format ( STRING5 , ( NUMBER0 * valid_err ) ) + STRING6 ) ;
if ( validAUC != null ) sb . append ( STRING7 + String . fo... | Don t print uninitialized MSE Inf to String |
<nb> public class AudioVideoNotesPlugin extends OsmandPlugin {
recordControl . setImageDrawable ( activity . getResources ( ) . getDrawable ( R . drawable . monitoring_rec_inactive ) ) ;
setRecordListener ( recordControl , activity ) ;
mapInfoLayer . getMapInfoControls ( ) . registerSideWidget ( recordControl ,
... | Implement audio video extension |
<nb> public class Mesh implements Savable , Cloneable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void clearCollisionData ( ) {
+ collisionTree = null ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added a method to clear collision data |
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
SINGLE
-
- private int socketCloseDelay = - NUMBER0 ;
-
private Http11ConnectionHandler cHandler ;
SINGLE
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
}
SINGLE
- public int getSocketCloseDela... | Remove unused undocumented configuration option |
<nb> public class SurfaceView extends View {
@ override
public boolean onPreDraw ( ) {
SINGLE
- mHaveFrame = true ;
+ mHaveFrame = getWidth ( ) > NUMBER0 && getHeight ( ) > NUMBER0 ;
updateWindow ( false , false ) ;
return true ;
} | Fix crash in movie studio |
<nb> class ProcessClosurePrimitives extends AbstractPostOrderCallback
static final DiagnosticType XMODULE_REQUIRE_ERROR = DiagnosticType . warning (
STRING0 ,
- STRING1 +
- STRING2 ) ;
+ STRING3 +
+ STRING4 ) ;
static final DiagnosticType INVALID_CLOSURE_CALL_ERROR = DiagnosticType . error (
STRING5... | Clarify the XMODULE_REQUIRE_ERROR to indicate that a dependency is |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public abstract class ActionBarSherlock {
protected static final String TAG = STRING0 ; | Remove javadoc version tag because I will never update it |
<nb> public class TimeZoneInfo implements Comparable < TimeZoneInfo > {
}
public static long [ ] copyFromIntArray ( int [ ] source ) {
+ if ( source == null ) {
+ return new long [ NUMBER0 ] ;
+ }
long [ ] dest = new long [ source . length ] ;
for ( int i = NUMBER0 ; i < source . length ; i ++ ) {
des... | add null check |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class MethodAnnotationPointcut extends ProxyPointcutSupport {
- protected final Class < ? extends Annotation > annotationClass ;
+ protected final Class < ? extends Annotation > [ ] annotationClasses ;
- public... | accept annotation class array instead of single class |
<nb> public class FileFilter {
ignoreResultList . add ( STRING0 ) ; SINGLE
ignoreResultList . add ( STRING1 ) ; SINGLE
ignoreResultList . add ( STRING2 ) ; SINGLE
+ ignoreResultList . add ( STRING3 ) ; SINGLE
ignoreResultList . add ( STRING4 ) ; SINGLE
ignoreResultList . add ( STRING5 ) ; SINGLE
ignoreRes... | Added appcache fallback |
<nb> public class LightweightThread implements Serializable {
COMMENT
COMMENT
public final boolean exec ( Object blocker ) {
- for ( ; ; ) {
- if ( fjTask . getBlocker ( ) == blocker && fjTask . tryUnpark ( ) )
- return fjTask . exec ( ) ;
+ for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ if ( fjTask .... | bounded retries in LWT exec blocker |
<nb> public class Socks5CmdRequestDecoder extends ReplayingDecoder < State > {
break ;
}
case IPv6 : {
- host = Socks5CommonUtils . ipv6toStr ( byteBuf . readBytes ( NUMBER0 ) . array ( ) ) ;
+ if ( actualReadableBytes ( ) < NUMBER0 ) {
+ SINGLE
+ byteBuf . readBytes ( NUMBER0 ) ;
+
+ SINGLE
+ throw... | Fix an incorrect use of ByteBuf array in Socks5CmdRequestDecoder |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface BuildOperationProcessor {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
< T > OperationQueue < T > newQueue ( Action < ? super T > worker ) ;
}
<nb> package NAMESPAC... | Add documentation to new build operation classes |
<nb> public abstract class ClusterManagerBase extends ManagerBase implements ClusterM
copy . setProcessExpiresFrequency ( getProcessExpiresFrequency ( ) ) ;
copy . setNotifyListenersOnReplication ( isNotifyListenersOnReplication ( ) ) ;
copy . setSessionAttributeFilter ( getSessionAttributeFilter ( ) ) ;
+ copy... | Implement the process of setting sessionAttributeNameFilter sessionAttributeValueClassNameFilter and warnOnSessionAttributeFilterFailure in ClusterManagerBase clone |
<nb> public class ShadowLocaleDataTest {
}
@ test
- @ config ( sdk = {
- Build . VERSION_CODES . JELLY_BEAN_MR2 ,
- Build . VERSION_CODES . KITKAT ,
- Build . VERSION_CODES . LOLLIPOP ,
- Build . VERSION_CODES . LOLLIPOP_MR1 ,
- Build . VERSION_CODES . M } )
- public void shouldSupportLocaleEn_US_si... | Correct expected values for LocaleData timeFormat_Hm LocaleData timeFormat_hm they were the wrong way around |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.