diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class ApduServiceInfo implements Parcelable {
String aid = a . getString ( com . android . internal . R . styleable . AidFilter_name ) .
toUpperCase ( ) ;
SINGLE
- aid . concat ( STRING0 ) ;
+ aid = aid . concat ( STRING0 ) ;
if ( CardEmulation . isValidAid ( aid ) && ! currentGroup . aids... | Fix static AID prefix registration |
<nb> public class TextManager implements VizArchitecture {
@ override
public void endRendering ( ) {
renderer . end3DRendering ( ) ;
+ nodeRefresh = false ;
+ edgeRefresh = false ;
}
@ override
<nb> public class TextManager implements VizArchitecture {
@ override
public void endRendering ( ) {
r... | Fix text refresh performance issue |
<nb> public class PTFOperator extends Operator < PTFDesc > implements Serializable {
super . initializeOp ( jobConf ) ;
hiveConf = jobConf ;
isMapOperator = conf . isMapSide ( ) ;
+ currentKeys = null ;
reconstructQueryDef ( hiveConf ) ; | Operator initialization does not clean state Wei Zheng reviewed by Gunther Hagleitner |
<nb> public class PhoneNumberUtils
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static String cdmaCheckAndProcessPlusCodeForSms ( String dialStr ) {
+ if ( ! TextUtils . isEmpty ( dialStr ) ) {
+ if ( isReallyDialable ( dialStr . charAt ( NUMBER0 ) )... | Add PhoneNumberUtils method for CDMA SMS number formatting |
<nb> public class SmsSync extends PreferenceActivity {
getLastSyncText ( PrefStore . getMaxSyncedDateMms ( this ) * NUMBER0 ) ) ;
findPreference ( STRING0 ) . setSummary (
getLastSyncText ( PrefStore . getMaxSyncedDateCallLog ( this ) ) ) ;
+ findPreference ( STRING1 ) . setSummary (
+ getLastSyncText ( PrefS... | Include last sync time for whatsapp |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DailyNewsFromZhihuObservable {
String questionTitle = getQuestionTitleFromQuestionElement ( questionElement ) ;
String questionUrl = getQuestionUrlFromQuestionElement ( questionElement ) ;
- q... | Change empty String criteria |
<nb> public class RepositoryFactory {
new GitRepository ( ) ,
new SubversionRepository ( ) ,
new TeamwareRepository ( ) ,
+ new RazorRepository ( ) ,
new ClearCaseRepository ( ) ,
new PerforceRepository ( )
} ; | Add RazorRepository to factory |
<nb>
COMMENT
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public enum ClockWithOffset implements Clock {
INSTANCE ;
private volatile long offset = NUMBER0 L ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void setOffset ( long offset ) {
this .... | Add some docs to ClockWithOffset |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class IpnbUtils {
private static final Logger LOG = Logger . getInstance ( IpnbUtils . class ) ;
<nb> public class IpnbUtils {
STRING0 +
STRING1 ;
- public static String markdown2Html ( @... | replace links in markdown cell with clickable links |
<nb> public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt
}
}
- log . error ( currentThread ( ) + String . format ( STRING0 , cause != null ? cause . getMessage ( ) : STRING1 ) ) ;
- log . error ( currentThread ( ) , cause ) ;
-
+ if ( log . isDebugEnabled ( ) ) {
+ log . err... | One more logging improvement |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TrustManagerService extends SystemService {
for ( int i = NUMBER0 ; i < mTrustListeners . size ( ) ; i ++ ) {
try {
mTrus... | Remove dead TrustListeners |
<nb> public class StorageDir {
SINGLE
if ( ! dir . exists ( ) ) {
+ SINGLE
if ( dir . mkdirs ( ) ) {
CommonUtils . changeLocalFilePermission ( mDirPath , STRING0 ) ;
CommonUtils . setLocalFileStickyBit ( mDirPath ) ; | Add todo comment |
<nb> public class TTSServiceFreeTTS implements TTSService {
COMMENT
COMMENT
COMMENT
- public void speak ( String text , String voiceName ) {
+ public void say ( String text , String voiceName ) {
if ( text == null ) {
return ; | renamed speak to say |
<nb> public class StringUtils
}
return str1 . equalsIgnoreCase ( str2 ) ;
}
+
+ public static String defaultIfBlank ( final String str , final String def )
+ {
+ return isBlank ( str ) ? def : str ;
+ }
} | Adding StringUtils defaultIfBlank |
<nb> public final class LocalTachyonMaster {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void kill ( ) throws Exception {
mMasterThread . interrupt ( ) ;
} | Add javadoc for kill |
<nb> public class RecyclerViewSwipeManager {
mVelocityTracker . clear ( ) ;
mVelocityTracker . addMovement ( e ) ;
+ mRecyclerView . getParent ( ) . requestDisallowInterceptTouchEvent ( true ) ;
+
SINGLE
mAdapter . onSwipeItemStarted ( this , holder ) ;
}
<nb> public class RecyclerViewSwipeManager {
... | Add requestDisallowInterceptTouchEvent call on start stop swiping |
<nb> import NAMESPACE ;
COMMENT
public class Serdes {
- static private class WrapperSerde < T > implements Serde < T > {
+ static protected class WrapperSerde < T > implements Serde < T > {
final private Serializer < T > serializer ;
final private Deserializer < T > deserializer ; | Allow Serdes subclasses to access WrapperSerde |
<nb> public class GraphiteWriter extends BaseOutputWriter {
log . error ( STRING0 ) ;
pool . invalidateObject ( address , socket ) ;
} else {
- pool . returnObject ( address , socket ) ;
+ pool . returnObject ( address , socket ) ;
}
}
} | Fixing tabs in file |
<nb> public abstract class DaggerContext implements ServletContextListener {
@ override
public final void contextDestroyed ( ServletContextEvent contextEvent ) {
ServletContext context = contextEvent . getServletContext ( ) ;
- context . setAttribute ( INJECTOR_NAME , null ) ;
+ context . removeAttribute ( IN... | Remove Dagger injector from the servlet context instead of nulling it |
<nb> public class DataInfo extends Keyed {
}
private DataInfo ( int nums ) {
+ _offset = false ;
+ _weights = false ;
_nums = nums ;
_catOffsets = new int [ ] { NUMBER0 } ;
_predictor_transform = TransformType . NONE ; | fixed data info merge issue |
<nb> public abstract class ZooKeeperStorePublisherTest extends PublisherTest
protected ZKConnection getConnection ( )
{
- ZKConnection conn = new ZKConnection ( CONNECT , TIMEOUT ) ;
+ ZKConnection conn = new ZKConnection ( CONNECT , TIMEOUT * NUMBER0 COMMENT ) ;
try
{
conn . start ( ) ; | Fix the timeout issue in ZooKeeperStorePublisherTest |
<nb> public class ExternalDiffTool {
catch ( ProcessCanceledException ignore ) {
}
catch ( Throwable e ) {
- LOG . error ( e ) ;
+ LOG . warn ( e ) ;
Messages . showErrorDialog ( project , e . getMessage ( ) , STRING0 ) ;
}
}
<nb> public class ExternalMergeTool {
catch ( ProcessCanceledException ign... | do not report error on failed attempt to start external process |
<nb> public class SpringBatchProducer extends DefaultProducer {
parametersBuilder . addString ( headerKey , null ) ;
}
}
- return parametersBuilder . toJobParameters ( ) ;
+ JobParameters jobParameters = parametersBuilder . toJobParameters ( ) ;
+ log . debug ( STRING0 , jobParameters ) ;
+ return jobPara... | Spring Batch Improved producer logging |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public abstract class RecognitionService extends Service {
COMMENT | Improve a comment in RecognitionService |
<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
return false ;
}
ourOtherKeyWasPressed . set ( false ) ;
- if ( System . currentTimeMillis ( ) - ourLastTimePressed . get ( ) > NUMBER0 ) {
+ if ( System . currentTimeMillis ( ) - ourLastTimePressed . get ( ) > NUMBER1 ) {
... | reduce delay between pressed shifts |
<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
public String removeCustomData ( String key ) {
return crashReportDataFactory . removeCustomData ( key ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public void clearCustomData ( ) {
+ crashReportDataFactory . clearCustomData ( )... | Add crashReportDataFactory clearCustomData support |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LayoutTestsAutoTest extends ActivityInstrumentationTestCase2 < TestSh
if ( resume )
resumeTestList ( ) ;
- TestShellActivity activity = ( TestShellActivity ) getActivity ( ) ;
+ TestShellActiv... | Set a default dump type for DRT as a workaround for indeterministic order in receiving dumpAsText and onPageFinish callback |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class CheckBox extends TextButton {
super ( text , style ) ;
clearChildren ( ) ;
Label label = getLabel ( ) ;
- imageCell = add ( image = new Image ( style . checkbox... | Don t allow checkbox image to be squashed |
<nb> public class DemoPlayer implements ExoPlayer . Listener , ChunkSampleSource . EventLi
COMMENT
COMMENT
public interface TextListener {
- public abstract void onText ( String text ) ;
+ void onText ( String text ) ;
}
SINGLE
<nb> public class DemoPlayer implements ExoPlayer . Listener , ChunkSample... | Avoid spurious preparing idle preparing transition in demo app |
<nb> public class AnalysisUIOptions implements PersistentStateComponent < AnalysisUIOpt
public String CUSTOM_SCOPE_NAME = STRING0 ;
private final AutoScrollToSourceHandler myAutoScrollToSourceHandler ;
public boolean SHOW_ONLY_DIFF = false ;
- public boolean SHOW_STRUCTURE = true ;
+ public boolean SHOW_STRUC... | hide structure by default |
<nb> public class InputManager implements RawInputListener {
public void deleteMapping ( String mappingName ) {
Mapping mapping = mappings . remove ( mappingName ) ;
if ( mapping == null ) {
- throw new IllegalArgumentException ( STRING0 + mappingName ) ;
+ SINGLE
+ logger . log ( Level . WARNING , STRING1 ... | replaced a thrown exception with a logger warning |
<nb> public class Accounts extends K9ListActivity implements OnItemClickListener {
d . dismiss ( ) ;
}
} )
+ . setNeutralButton ( R . string . changelog_full_title , new DialogInterface . OnClickListener ( ) {
+ public void onClick ( DialogInterface d , int c ) {
+ new ChangeLog ( Accounts . this ) . getFul... | Add button to show changelog to About dialog |
<nb> public abstract class MovieGridFragment extends BasePhilmMovieListFragment < GridV
gridView . setColumnWidth ( res . getDimensionPixelSize ( R . dimen . movie_grid_item_width ) ) ;
gridView . setHorizontalSpacing ( res . getDimensionPixelSize ( R . dimen . movie_grid_spacing ) ) ;
gridView . setVerticalSpaci... | Always enable fast scroll on grids |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public cl... | do not highlight files opened in editor |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
public interface Clock {
- public static final Clock DEFAULT = new DefaultClock ( ) ;
-
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class DefaultClock implements Cloc... | removed implementation coupling from Clock interface |
<nb> public class RelIdArray implements SizeOf
}
if ( add != null )
{
- src . addAll ( add ) ;
+ src = src . addAll ( add ) ;
return src . downgradeIfPossible ( ) ;
}
return src ; | Uses the returned RelIdArray from addAll |
<nb> import NAMESPACE ;
COMMENT
public abstract class SpringBootServletInitializer implements WebApplicationInitializer {
- protected final Log logger = LogFactory . getLog ( getClass ( ) ) ;
+ protected Log logger ; SINGLE
private boolean registerErrorPageFilter = true ;
<nb> public abstract class Sp... | Defer SpringBootServletInitializer getLog |
<nb> public abstract class AbstractTestQueries
{
MaterializedResult result = computeActual ( STRING0 ) ;
ImmutableSet < String > schemaNames = ImmutableSet . copyOf ( transform ( result . getMaterializedTuples ( ) , onlyColumnGetter ( ) ) ) ;
- assertEquals ( schemaNames , ImmutableSet . of ( TPCH_SCHEMA_NAME ,... | Fix TestDistributedQueries testShowSchemas |
<nb> public class TestELInJsp extends TomcatBaseTest {
ByteChunk res = getUrl ( STRING0 + getPort ( ) +
STRING1 ) ;
String result = res . toString ( ) ;
- System . out . println ( result ) ;
assertEcho ( result , STRING2 ) ;
assertEcho ( result , STRING3 ) ;
assertEcho ( result , STRING4 ) ; | remove a println call |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DefaultConfiguration implements Configuration {
variableNameFunction = variableNameFunctionClass . newInstance ( ) ;
} catch ( RuntimeException e ) {
throw e ;
+ } catch ( ClassNotFoundException e ) {
+ throw new RuntimeE... | Don t swallow ClassNotFoundExceptions when configuring the NamingFunction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT | removed unused imports |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarify example for Deep Share |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyPagesServlet extends FrameworkServlet implements PluginManage
SINGLE
setContextAttribute ( W... | Override buildRequestAttributes also in GroovyPagesServlet |
<nb> public class DownloadActivity extends BaseDownloadActivity {
@ override
public void onClick ( DialogInterface dialog , int which ) {
for ( String w : wiki ) {
- File fl = new File ( w ) ;
+ File fl = getMyApplication ( ) . getAppPath ( w ) ;
File nf = new File ( fl . getParentFile ( ) , IndexConstants ... | Fix archive wiki |
<nb> public class Match {
COMMENT
COMMENT
private String convertCase ( final String s ) {
+ if ( StringTools . isEmpty ( s ) ) {
+ return s ;
+ }
String token = s ;
switch ( caseConversionType ) {
case NONE : | add emptiness test to avoid nullpointer etc errors in case of errors |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class GroovyPagesServlet extends HttpServlet COMMENT {
+
+ private static final... | fixed not logging of exceptions in GSP servlet |
<nb>
COMMENT
+ Licensed to the Apache Software Foundation ( ASF ) under one
or more contributor license agreements . See the NOTICE file
distributed with this work for additional information
regarding copyright ownership . The ASF licenses this file | Missing first line of license in header |
<nb> public class JSTypeRegistry implements TypeIRegistry , Serializable {
private boolean isNonNullable ( JSType type ) {
SINGLE
for ( String s : nonNullableTypeNames ) {
- if ( type . isEquivalentTo ( getType ( s ) ) ) {
+ JSType that = getType ( s ) ;
+ if ( that != null && type . isEquivalentTo ( that )... | Add a null check needed to use TTL in real code |
<nb> public class BearerAuthenticator extends ZLNetworkManager . BearerAuthenticator {
( BearerAuthenticator ) ZLNetworkManager . Instance ( ) . getBearerAuthenticator ( ) ;
switch ( requestCode ) {
case NetworkLibraryActivity . REQUEST_ACCOUNT_PICKER :
+ if ( resultCode != NetworkLibraryActivity . RESULT_OK ||... | fixed possible NPE |
<nb> public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
private static final float SPLITTER_PROPORTION_OPTION_DEFAULT = FLOAT0 ;
private static final float DETAILS_SPLITTER_PROPORTION_OPTION_DEFAULT = FLOAT1 ;
- private static final boolean DETAILS_SHOW_OPTION_DEFAULT = false ;
+... | Show the short diff in the commit dialog by default |
<nb> public class TaskConfig {
private final Map < String , String > envVars ;
private final ContainerDecorator containerDecorator ;
- private TaskConfig ( final String host ,
- final Job job ,
- final Map < String , Integer > ports ,
- final Map < String , String > envVars ,
- final ContainerDecorator ... | remove dead code |
<nb>
package NAMESPACE ;
- public class PostLocation {
+ import NAMESPACE ;
+
+ public class PostLocation implements Serializable {
static final double INVALID_LATITUDE = NUMBER0 ;
static final double INVALID_LONGITUDE = NUMBER0 ;
static final double MIN_LATITUDE = - NUMBER1 ; | Set PostLocation class as Serializable |
<nb> public class AutoFactoryProcessorTest {
. processedWith ( new AutoFactoryProcessor ( ) )
. failsToCompile ( )
. withErrorContaining ( STRING0 )
- . in ( file ) . onLine ( NUMBER0 ) . atColumn ( NUMBER1 ) ;
+ . in ( file ) . onLine ( NUMBER2 ) . atColumn ( NUMBER1 ) ;
}
@ test public void providedBu... | Fix a line number on a test |
<nb> public class AndroidDatabaseConnection implements DatabaseConnection {
return stmt ;
}
- COMMENT
- COMMENT
- COMMENT
- public int insert ( String statement , Object [ ] args , FieldType [ ] argFieldTypes ) throws SQLException {
- return insert ( statement , args , argFieldTypes , null ) ;
- }
-... | Changed the create code to use the same insert method |
<nb> public abstract class MultiplePsiFilesPerDocumentFileViewProvider extends Single
private MultiplePsiFilesPerDocumentFileViewProvider myOriginal = null ;
public MultiplePsiFilesPerDocumentFileViewProvider ( PsiManager manager , VirtualFile virtualFile , boolean physical ) {
- super ( manager , virtualFile ,... | prevent language substitution |
<nb> public class FilterListActivity extends ListFragment {
}
@ override
+ public boolean onContextItemSelected ( MenuItem item ) {
+ SINGLE
+ return onOptionsItemSelected ( item ) ;
+ }
+
+ @ override
public boolean onOptionsItemSelected ( final MenuItem item ) {
SINGLE
switch ( item . getItemI... | Fixed non responding shortcut contextmenu from arne |
<nb>
package 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 static NAMESPACE ;
COMME... | Fix the re apply of rounding |
<nb> public class MetaClass {
COMMENT
COMMENT
private static String [ ] decodeArray ( String encoded ) {
- if ( encoded . length ( ) == NUMBER0 ) return new String [ ] { } ;
char [ ] chars = encoded . trim ( ) . toCharArray ( ) ;
SINGLE
<nb> public class MetaClassTest {
assertArrayEquals ( new Integer... | Added general punctuation regex |
<nb> public class TemplateImpl extends Template implements SchemeElement {
}
public boolean isSelectionTemplate ( ) {
+ parseSegments ( ) ;
for ( Segment v : mySegments ) {
if ( v . name . equals ( SELECTION ) ) return true ;
} | fix surround tests |
<nb> public class CdiEventSupportBpmnParseListener implements BpmnParseListener {
addEndEventListener ( timerActivity ) ;
}
- @ override
- public void parseInclusiveGateway ( Element inclusiveGwElement , ScopeImpl scope , ActivityImpl activity ) {
- addStartEventListener ( activity ) ;
- addEndEventListen... | removing duplicated method |
<nb> public class MocoFileRootConfig implements MocoConfig < String > {
@ override
public boolean isFor ( final String id ) {
- return FILE_ID . equals ( id ) ;
+ return FILE_ID . equalsIgnoreCase ( id ) ;
}
@ override
<nb> public class MocoRequestConfig implements MocoConfig < RequestMatcher > {
... | unified config to equals ignore case |
<nb> public class RandomAccessDataFile implements Forceable , Closeable {
}
private void assertNotDisposed ( ) {
- LOG . assertTrue ( ! myIsDisposed , STRING0 + myFile ) ;
+ if ( myIsDisposed ) {
+ LOG . assertTrue ( false , STRING0 + myFile ) ;
+ }
}
public static int totalReads = NUMBER0 ; | evaluate log value only if condition failed |
<nb> public class Util {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3
+ STRING3 ,
+ STRING4 ,
+ STRING5
} ;
public static float clamp ( float v0 , float v , float v1 ) { | Add rsbrowser rbrowser to list |
<nb> public class BitmapAjaxCallback extends AbstractAjaxCallback < Bitmap , BitmapAjaxC
if ( v instanceof ImageView ) {
cb . callback ( url , ( ImageView ) v , bm , status ) ;
} else {
- setBitmap ( url , v , bm , false ) ;
+ cb . setBitmap ( url , v , bm , false ) ;
}
}
- showProgress ( false ) ; ... | Fix bug where progress bar is not set to hidden for image ajax within |
<nb> public class MyProfileFragment extends Fragment implements ProfileInputDialogFra
public void onClick ( View v ) {
ProfileInputDialogFragment inputDialog = ProfileInputDialogFragment . newInstance ( dialogTitle ,
textView . getText ( ) . toString ( ) , hint , isMultiline , textView . getId ( ) ) ;
+ inputDi... | Adds missing setTargetFragment statement to MyProfileFragment |
<nb> public final class Tools {
System . out . println ( STRING0 ) ;
}
System . out . printf ( Locale . ENGLISH ,
- STRING1 ,
+ STRING2 ,
time , lt . getSentenceCount ( ) , sentencesPerSecond ) ;
+ System . out . println ( ) ;
if ( apiFormat ) {
System . out . println ( STRING3 ) ;
} | don t hardcode n as line break |
<nb> public class LayoutAction extends Action {
javax . xml . namespace . QName qName = event . getQName ( ) ;
for ( LayoutTypePortlet layoutTypePortlet : layoutTypePortlets ) {
- List < Portlet > portlets = layoutTypePortlet . getPortlets ( ) ;
+ List < Portlet > portlets = layoutTypePortlet . getAllPortlets... | getting all portlets including the static ones |
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
disconnectedButResumeable = true ;
} else {
disconnectedButResumeable = false ;
+ SINGLE
+ SINGLE
+ smSessionId = null ;
}
authenticated = false ;
connected = false ;
<nb> public class XMPPTCPConnection extends AbstractXMPPConnecti... | Only reset smSessionId if the stream is no longer resumeable |
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
}
OLogManager . instance ( ) . error ( this , STRING0 + currentURL , e ) ;
+ } catch ( OOfflineNodeException e ) {
+ if ( network != null ) {
+ SINGLE
+ engine . getConnectionManager ( ) . remove ( network ) ;
+ network... | add offline node handling on reopen operation |
<nb> public class InMemoryTaskArtifactCache implements CacheDecorator {
private static class LoggingEvictionListener implements RemovalListener < Object , Object > {
private static Logger logger = Logging . getLogger ( LoggingEvictionListener . class ) ;
- private static final String EVICTION_MITIGATION_MESSAGE... | Tweaked log message |
<nb> public class DBApiLayer extends DB {
COMMENT
static final int NUM_CURSORS_BEFORE_KILL = NUMBER0 ;
static final int NUM_CURSORS_PER_BATCH = NUMBER1 ;
- static final int CLEANER_INTERVAL = NUMBER2 ;
+ static final int CLEANER_INTERVAL = NUMBER3 ;
SINGLE
<nb> public class DBApiLayer extends DB {
}... | remove call to killcursor in finalize to prevent blocking GC |
<nb> public abstract class DBCollection {
COMMENT
COMMENT
COMMENT
- protected abstract DBObject insert ( DBObject o ) ;
+ public abstract DBObject insert ( DBObject o ) ;
COMMENT
COMMENT | make insert public |
<nb> package NAMESPACE ;
COMMENT
public final class MemoryManager
{
- private static final long GRAB_SIZE = NUMBER0 * NUMBER1 * NUMBER1 ; SINGLE
+ private static final long GRAB_SIZE = Integer . getInteger (
+ MemoryManager . class . getName ( ) + STRING0 , NUMBER0 * NUMBER1 * NUMBER1 ) ; SINGLE
COMMENT... | Add a hidden configuration for the MemoryManager grab size |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StandardRoot extends LifecycleMBeanBase
}
SINGLE
- HashSet < String > result = new HashSet < > ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ ... | Add a workaround for a Jira bug to be removed later as Jira is being used for testing |
<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... | Add LayoutTest http tests appcache foreign fallback html to the DRT ignore list |
<nb> public class SearchHistoryFragment extends SherlockListFragment implements Sear
if ( location == null ) {
location = ( ( OsmandApplication ) activity . getApplication ( ) ) . getSettings ( ) . getLastKnownMapLocation ( ) ;
}
- locationUpdate ( location ) ;
clearButton . setVisibility ( historyAdapter . i... | backout unneeded fix for distance update issue in SearchHistoryFragment |
<nb> public class InfoFunctions extends FunctionsContainer {
}
public static Memory get_extension_funcs ( Environment env , String name ) {
- return new ArrayMemory ( env . scope . getExtension ( name ) . getFunctions ( ) . keySet ( ) ) ;
+ Extension ext = env . scope . getExtension ( name ) ;
+ if ( ext ==... | fixed NullPointerException if extension doesn t exists |
<nb> public class WalletTool {
}
}
Wallet . SendRequest req = Wallet . SendRequest . forTx ( t ) ;
+ if ( t . getOutputs ( ) . size ( ) == NUMBER0 && t . getOutput ( NUMBER1 ) . getValue ( ) . equals ( wallet . getBalance ( ) ) ) {
+ log . info ( STRING0 ) ;
+ req . emptyWallet = true ;
+ }
req . fee = ... | add support for the emptying out feature |
<nb> public abstract class GoParserTestBase extends ParsingTestCase {
@ override
protected void doTest ( boolean checkErrors ) {
- super . doTest ( false ) ;
+ super . doTest ( true ) ;
if ( checkErrors ) {
assertFalse (
STRING0 , | Enable parsing result check |
<nb> public class TokenStreamRewriter {
lastRewriteTokenIndexes = new HashMap < String , Integer > ( ) ;
}
+ public final TokenStream getSource ( ) {
+ return tokens ;
+ }
+
public void rollback ( int instructionIndex ) {
rollback ( DEFAULT_PROGRAM_NAME , instructionIndex ) ;
} | Add TokenStreamRewriter getSource |
<nb> public final class DataIO {
COMMENT
COMMENT
COMMENT
- interface DataInputInternal extends DataInput , Closeable {
+ public interface DataInputInternal extends DataInput , Closeable {
int getPos ( ) ;
void setPos ( int pos ) ; | make DataInputInternal public |
<nb> public class ClientCredentialsTokenEndpointFilter extends AbstractAuthentication
private AuthenticationEntryPoint authenticationEntryPoint = new OAuth2AuthenticationEntryPoint ( ) ;
- protected ClientCredentialsTokenEndpointFilter ( ) {
- super ( STRING0 ) ;
+ public ClientCredentialsTokenEndpointFilte... | add public constructors to ClientCredentialsTokenEndpointFilter |
<nb> public class FetchPhase implements SearchPhase {
hitField . values ( ) . add ( value ) ;
}
doExplanation ( context , docId , searchHit ) ;
-
- index ++ ;
}
context . fetchResult ( ) . hits ( new InternalSearchHits ( hits , context . queryResult ( ) . topDocs ( ) . totalHits ) ) ; | don t increment the counter twice |
<nb> public class DefaultPassConfig extends PassConfig {
passes . add ( closureOptimizePrimitives ) ;
}
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( options . crossModuleCodeMotion ) {
+ passes . add ( crossModuleCodeMotion ) ;
+ }
+
SINGLE
SINGLE
SINGLE | Partly revert CL because it broke gmail |
<nb> public class TypedTableExamples {
out . print ( json ) ;
out . close ( ) ;
-
SINGLE
Assert ( json . equals ( STRING0 ) ) ;
SINGLE
<nb> public class TypedTableExamples {
}
-
static void Assert ( boolean check ) {
if ( ! check ) {
throw new RuntimeException ( ) ; | remove line breaks |
<nb> public class BodyResolver {
recordSupertype ( typeReference , supertype ) ;
ClassDescriptor classDescriptor = TypeUtils . getClassDescriptor ( supertype ) ;
if ( classDescriptor != null ) {
- if ( classDescriptor . getKind ( ) == ClassKind . INTERFACE ) {
- trace . report ( CONSTRUCTOR_IN_TRAIT . on ( el... | Do not report diagnostic ctr in trait in delegation specifier |
<nb> public class TableTest {
@ test
public void shouldConvertToJson ( ) {
String json = employees . toJson ( ) ;
- System . out . println ( STRING0 + json ) ;
String expect = STRING1 ;
assertEquals ( json , expect ) ;
} | remove print out from test case |
<nb> public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL
break ;
case CURRENT_STATE_ERROR :
JCMediaManager . instance ( ) . mediaPlayer . release ( ) ;
+ onCompletion ( ) ;
break ;
}
} | should run oncomplete function when error stop tasks and remove surfaceview |
<nb> public abstract class AndroidFacetImporterBase extends FacetImporter < AndroidFace
@ override
public void collectExcludedFolders ( MavenProject mavenProject , List < String > result ) {
result . add ( mavenProject . getGeneratedSourcesDirectory ( false ) + STRING0 ) ;
+ result . add ( mavenProject . getGen... | exclude combined assets directory |
<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... | remove unused reference to event bus |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class AbstractNettyHandler extends Http2ConnectionHandler {
public final void exceptionCaught ( ChannelHandlerContext ctx , Throw... | Convert Netty IOExceptions to UNAVAILABLE |
<nb> public abstract class LogConsoleImpl extends AdditionalTabComponent implements L
public ReaderThread ( File file ) {
try {
try {
- myFileStream = new BufferedReader ( new FileReader ( file ) ) ;
+ final FileInputStream inputStream = new FileInputStream ( file ) ;
+ myFileStream = new BufferedReader ( n... | skip content in bytes |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ; | update asm in coverage |
<nb> public class SftpFromSedaDeleteFileTest extends SftpServerTestSupport {
protected String getFtpUrl ( ) {
return STRING0 + getPort ( ) + STRING1 + FTP_ROOT_DIR
+ STRING2
- + STRING3 ;
+ + STRING4 ;
}
@ override | Component docs Do not use deprecated option |
<nb> public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
R . string . tts_missing_language_data_title ,
R . string . tts_missing_language_data ,
new IntentStarter (
- ctx ,
+ act ,
TextToSpeech . Engine . ACTION_INSTALL_TTS_DATA ) ,
act ) ;
builder . show ( ) ;
<nb> public class TT... | Fixed FC call with bad context |
<nb> public class SpringCamelContext extends DefaultCamelContext implements Initializ
if ( eventEndpoint != null ) {
eventEndpoint . onApplicationEvent ( event ) ;
} else {
- LOG . warn ( STRING0 + event ) ;
+ LOG . info ( STRING0 + event ) ;
}
}
<nb> public class SpringCamelContext extends DefaultCam... | Reduced WARN to INFO logging for a missing spring event handler |
<nb> implements ManagedService {
@ suppresswarnings ( STRING0 )
@ override
public void established ( GENASubscription sub ) {
- logger . info ( STRING1 , sub . getService ( ) . getServiceId ( ) , sub . getService ( ) . getDevice ( ) ) ;
+ logger . debug ( STRING1 , sub . getService ( ) . getServiceId ( ) , su... | Changed the logging level of GENA related log messages |
<nb> public class Transaction extends BinaryTransaction {
return client . getStatusCodeReply ( ) ;
}
+ public String sort ( final String key , final SortingParams sortingParameters ,
+ final String dstkey ) {
+ client . sort ( key , sortingParameters , dstkey ) ;
+ return client . getStatusCodeReply ( ) ;... | add missing sort overloads to Transaction |
<nb> class BackupManagerService extends IBackupManager . Stub {
return ;
}
+ if ( ( mCurrentPackage . applicationInfo . flags & ApplicationInfo . FLAG_STOPPED ) != NUMBER0 ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ addBackupTrace ( STRING0 ) ;
+ executeNextState ( BackupState . RUNNING_QUEUE ) ;
+ return ;
... | Don t back up apps in the stopped state |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EclipseClasspathStorageProvider implements ClasspathStorageProvider
}
final String output = model . getModuleExtension ( Co... | reduce path urls |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.