diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class MucOptions {
setError ( ERROR_BANNED ) ;
} else if ( error != null && error . hasChild ( STRING0 ) ) {
setError ( ERROR_MEMBERS_ONLY ) ;
- } else {
- setError ( ERROR_UNKNOWN ) ;
}
}
} | don t set unknown error in muc |
<nb> public class ZooKeeperAclTest extends SystemTestBase {
final CuratorFramework curator = zk ( ) . curatorWithSuperAuth ( ) ;
- final String path = Paths . statusHostUp ( TEST_HOST ) ;
+ final String path = Paths . configHost ( TEST_HOST ) ;
final List < ACL > acls = curator . getACL ( ) . forPath ( path... | Fix race in ZooKeeperAclTest |
<nb> public class Realm {
return this ;
}
- public RealmBuilder parseProxyAuthenticateHeader ( String headerLine ) {
- setRealmName ( match ( headerLine , STRING0 ) ) ;
- setNonce ( match ( headerLine , STRING1 ) ) ;
- setOpaque ( match ( headerLine , STRING2 ) ) ;
- setQop ( match ( headerLine , STRING... | Remove dead code |
<nb> public class DefaultAccountStateHandler implements AccountStateHandler {
this . errorMap . put ( PasswordExpirationAccountState . Error . PASSWORD_EXPIRED , new CredentialExpiredException ( ) ) ;
this . errorMap . put ( PasswordPolicyControl . Error . ACCOUNT_LOCKED , new AccountLockedException ( ) ) ;
this ... | Throw AccountPasswordMustChangeException for CHANGE_AFTER_RESET |
<nb> public class ContactSipImpl
{
this . contactID = id ;
this . parentProvider = parentProvider ;
+
+ this . presenceStatus = parentProvider . getSipStatusEnum ( )
+ . getStatus ( SipStatusEnum . UNKNOWN ) ;
}
COMMENT | Initialize the presence status |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class RegexMatching { | Adding some docs on regex matching |
<nb> public class Block extends Message {
SINGLE
if ( transactions != null ) {
assert transactions . size ( ) > NUMBER0 ;
- SINGLE
+ checkTransactions ( ) ;
checkMerkleHash ( ) ;
}
} | Enable some simple checks of transaction ordering in the block verification |
<nb> public class Vec extends Iced {
COMMENT
public final static class Writer {
Vec _vec ;
- private Writer ( Vec v ) { _vec = v ; }
+ private Writer ( Vec v ) {
+ _vec = v ;
+ _vec . preWriting ( ) ;
+ }
public final long set ( long i , long l ) { return _vec . chunkForRow ( i ) . set ( i , l ) ; }
... | Add Vec preWriting to Vec Writer open call |
<nb> public class ThriftPythonEnhancer implements ThriftLanguageSpecificEnhancer {
for ( String service : services ) {
sources . add ( prefix . resolve ( service + STRING0 ) . toString ( ) ) ;
+ if ( type == Type . NORMAL ) {
+ sources . add ( prefix . resolve ( service + STRING1 ) . toString ( ) ) ;
+ }
... | add python remotes to generated source lists |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
+
public class EncounterResult {
private EncounterResponse response ;
<nb> public class EncounterResult {
public boolean wasSuccessful ( ) {
return response != null && ge... | Added more data to EncounterResult |
<nb> public class TestDistributedPriorityQueue extends BaseClassForTests
{
List < Integer > nums = new ArrayList < Integer > ( ) ;
+ Timing timing = new Timing ( ) ;
DistributedPriorityQueue < Integer > queue = null ;
- CuratorFramework client = CuratorFrameworkFactory . newClient ( server . getConnectStrin... | Add timing for more reliable execution |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | added missing copyright header |
<nb> public class ConfigFileLoader {
private static final URI CATALINA_BASE_URI ;
static {
- File catalinaBase = new File ( STRING0 ) ;
+ File catalinaBase = new File ( System . getProperty ( STRING1 ) ) ;
CATALINA_BASE_URI = catalinaBase . toURI ( ) ;
} | Fix edit made during testing that should have been reverted before the first commit |
<nb> public class WifiService extends IWifiManager . Stub {
COMMENT
public List < ScanResult > getScanResults ( ) {
enforceAccessPermission ( ) ;
- if ( UserHandle . getCallingUserId ( ) != ActivityManager . getCurrentUser ( ) ) {
+ int userId = UserHandle . getCallingUserId ( ) ;
+ long ident = Binder . cl... | Fix permission accessing getCurrentUser |
<nb> public class AbstractPopup implements JBPopup {
mySpeedSearchPatternField = new JTextField ( ) ;
if ( SystemInfo . isMac ) {
- Font f = mySpeedSearchPatternField . getFont ( ) ;
- if ( f != null ) {
- mySpeedSearchPatternField . setFont ( f . deriveFont ( f . getStyle ( ) , f . getSize ( ) - NUMBER0 ) ... | Modify font dynamically |
<nb> class WriterImpl implements Writer , MemoryManager . Callback {
super . write ( obj ) ;
if ( obj != null ) {
MapObjectInspector insp = ( MapObjectInspector ) inspector ;
- int len = insp . getMapSize ( obj ) ;
- lengths . write ( len ) ;
SINGLE
SINGLE
Map < ? , ? > valueMap = insp . getMap ( obj ) ... | ORC maps uses getMapSize from MapOI which is unreliable Prasanth J via Vikram Dixit reviewed by Gunther |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed missing td in javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removes unused imports from ApkBuilderMain |
<nb> public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME
}
}
- if ( table != null ) {
+ if ( table != null && type instanceof CustomFileType ) {
( ( CustomFileType ) type ) . setSyntaxTable ( table ) ;
}
} | Working around problem users might assign custom file type to something we later provided special language FT for |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Jetty http client should use daemon threads in its pool |
<nb> import NAMESPACE ;
@ widgetcategory ( { STRING0 } )
public class UnresolvedIssuesPerAssigneeWidget extends CoreWidget {
public UnresolvedIssuesPerAssigneeWidget ( ) {
- super ( STRING1 , STRING2 , STRING3 ) ;
+ super ( STRING1 , STRING2 , STRING4 ) ;
}
} | Fix wrong commit |
<nb> public final class JPAProvider {
addMapping ( STRING0 , EclipseLinkTemplates . DEFAULT ) ;
addMapping ( STRING1 , OpenJPATemplates . DEFAULT ) ;
addMapping ( STRING2 , DataNucleusTemplates . DEFAULT ) ;
+ addMapping ( STRING3 , DataNucleusTemplates . DEFAULT ) ;
}
public static JPQLTemplates getTempl... | fixed DataNucleus detection |
<nb> class OEBBookReader extends ZLXMLReaderAdapter implements XMLNamespace {
if ( ! navigationMap . isEmpty ( ) ) {
int level = NUMBER0 ;
for ( NCXReader . NavPoint point : navigationMap . values ( ) ) {
- int index = myModelReader . Model . getLabel ( point . ContentHRef ) . ParagraphIndex ;
+ final BookMod... | fixed a toc generating |
<nb> public class BSONWritableComparator extends WritableComparator {
}
public int compare ( byte [ ] b1 , int s1 , int l1 , byte [ ] b2 , int s2 , int l2 ) {
+ SINGLE
return super . compare ( b1 , s1 , l1 , b2 , s2 , l2 ) ;
}
public int compare ( Object a , Object b ) {
- return super . compare ( a ,... | Use naive comparator implementation for now |
<nb> public class DataInfo extends Keyed {
public boolean _intercept = true ;
public boolean _offset = false ;
public final boolean _skipMissing ;
- final int [ ] [ ] _catLvls ;
+ public final int [ ] [ ] _catLvls ;
public double _etaOffset ;
public DataInfo deep_clone ( ) { | Make catLvls public |
<nb> import NAMESPACE ;
COMMENT
public class OkClient extends UrlConnectionClient {
+ private static OkHttpClient generateDefaultOkHttp ( ) {
+ OkHttpClient client = new OkHttpClient ( ) ;
+ client . setConnectTimeout ( Defaults . CONNECT_TIMEOUT_MILLIS , TimeUnit . MILLISECONDS ) ;
+ client . setReadTime... | Move static method to top of file |
<nb> public abstract class PipeLogicIron {
private boolean isValidFacing ( ForgeDirection side ) {
+ if ( ! pipe . container . isPipeConnected ( side ) )
+ return false ;
+
TileBuffer [ ] tileBuffer = pipe . container . getTileCache ( ) ;
if ( tileBuffer == null )
return true ;
<nb> public abstract ... | simplify code for iron pipe facing check |
<nb> public final class z_T4JInternalParseUtil {
public static Date getDate ( String name , String format ) throws TwitterException {
SimpleDateFormat sdf = formatMap . get ( ) . get ( format ) ;
if ( null == sdf ) {
- sdf = new SimpleDateFormat ( format , Locale . ENGLISH ) ;
+ sdf = new SimpleDateFormat ( f... | Use the default locale when initializing SimpleDateFormat |
<nb> public class Surface implements Parcelable {
mHwuiRenderer = NUMBER0 ;
}
}
-
- @ override
- protected void finalize ( ) throws Throwable {
- try {
- destroy ( ) ;
- } finally {
- super . finalize ( ) ;
- }
- }
}
private static native long nHwuiCreate ( long rootNode , long surface ) ; | Fix finalizer ordering double free issue |
<nb> public class EntitySqlDaoTransactionalJdbiWrapper {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public < ReturnType , E extends Exception > ReturnType execute ( final Class < E > exception , final EntitySqlDaoTransactionWrapper < ReturnType > entitySqlDaoTransactionWrapper ) throws E {
- fina... | remove unused variable in EntitySqlDaoTransactionalJdbiWrapper |
<nb> public class ClassNode extends AnnotatedNode implements Opcodes {
public boolean equals ( Object o ) {
if ( redirect != null ) return redirect ( ) . equals ( o ) ;
+ if ( ! ( o instanceof ClassNode ) ) return false ;
ClassNode cn = ( ClassNode ) o ;
return ( cn . getName ( ) . equals ( getName ( ) ) ) ... | ClassNode equals throws ClassCastException for object of other type |
<nb> import NAMESPACE ;
public class AppLog {
SINGLE
public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING ,
- SIMPERIUM , SUGGESTION }
+ SIMPERIUM , SUGGESTION , MAIN }
public static final String TAG = STRING0 ;
public static fin... | Fixed notifications fragment for self hosted |
<nb> public class TableComparator implements DatabaseObjectComparator {
exclude . add ( STRING0 ) ;
exclude . add ( STRING1 ) ;
exclude . add ( STRING2 ) ;
+ exclude . add ( STRING3 ) ;
ObjectDifferences differences = chain . findDifferences ( databaseObject1 , databaseObject2 , accordingTo , compareControl... | Ignore table schema differences in diff output |
<nb> public interface MultiValueMap < K , V > extends Map < K , V > {
COMMENT
COMMENT
COMMENT
- public List < V > getAll ( K key ) ;
+ List < V > getAll ( K key ) ;
COMMENT
COMMENT
<nb> public interface MultiValueMap < K , V > extends Map < K , V > {
COMMENT
COMMENT
- public Map < K , List < V... | Remove redundant public modifiers |
<nb> public class PlayerPortalEvent extends PlayerTeleportEvent {
super ( player , from , to ) ;
this . travelAgent = pta ;
}
-
+
public PlayerPortalEvent ( Player player , Location from , Location to , TravelAgent pta , TeleportCause cause ) {
- super ( Type . PLAYER_PORTAL , player , from , to , cause )... | Fixed PlayerPortalEvent constructor |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ SINGLE
COMMENT
COMMENT
<nb> public class StyleManager extends Application {
@ override
public void onCreate ( ) {
super . onCreate ( ) ;
- Small . setWebActivityTheme ( R . style . AppTheme ) ;
+ SINGLE
}
} | Temporary comment the setWebActivityTheme sample cause we should fix a sync bug first |
<nb> public final class TvContract {
COMMENT
COMMENT
COMMENT
- public static final String COLUMN_PACKAGE_NAME = STRING0 ;
+ String COLUMN_PACKAGE_NAME = STRING0 ;
}
COMMENT | Remove unnecessary interface modifiers |
<nb> public class XRecyclerView extends RecyclerView {
return - NUMBER0 ;
}
+ @ override
+ public void unregisterAdapterDataObserver ( AdapterDataObserver observer ) {
+ if ( adapter != null ) {
+ adapter . unregisterAdapterDataObserver ( observer ) ;
+ }
+ }
+
+ @ override
+ public void registe... | wrapped adapter notifydatasetchange not working bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VcsUtil {
for ( File root : roots ) {
VirtualFile vFile = findFileFor ( root ) ;
if ( vFile != null ) {
- for ( Iterato... | remove ancestor filtering which is not necessary for new vfs |
<nb> public class ONetworkProtocolBinary extends ONetworkProtocol {
final Object iLinked ) {
if ( iLinked instanceof ODocument )
return recordsToSend . add ( ( ODocument ) iLinked ) ? iLinked : null ;
- else
+ else if ( iLinked instanceof Collection < ? > )
return recordsToSend . addAll ( ( Collection < ? e... | Fixed issue on fetching of maps reported by Luca Molino |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpTransportOverSPDY implements HttpTransport
private final Stream stream ;
private final short version ;
private final ... | Removed unused field |
<nb> public final class ConfigFactory {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ConfigFactory {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | add docs to load pointing to parseResourcesAnySyntax |
<nb> public class InsertIntoIntegrationTest extends SQLTransportIntegrationTest {
}
@ test
+ public void testInsertFromSubQueryWithNotNullConstraintColumnAbsent ( ) throws Exception {
+ execute ( STRING0 ) ;
+ execute ( STRING1 ) ;
+ ensureYellow ( ) ;
+ execute ( STRING2 ) ;
+ refresh ( ) ;
+
+ e... | added test that covers validateConstraintsForNotUsedColumns |
<nb>
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ Copyright ( c ) NUMBER0 - NUMBER1 CommonsWare , LLC
+ Licensed under the Apache Lic... | reformatted header comment |
<nb> public class UserDetailsPresenter implements Presenter {
@ override public void destroy ( ) {
this . getUserDetailsUseCase . unsubscribe ( ) ;
+ this . viewDetailsView = null ;
}
COMMENT
<nb> public class UserListPresenter implements Presenter {
@ override public void destroy ( ) {
this . get... | Fix view leak retaining activity |
<nb> public class Jackson2JsonEncoder extends AbstractJackson2Codec implements Encode
Mono < DataBuffer > endArray = Mono . just ( bufferFactory . wrap ( END_ARRAY_BUFFER ) ) ;
Flux < DataBuffer > array = Flux . from ( inputStream )
- . flatMap ( value - > {
+ . concatMap ( value - > {
DataBuffer arraySepar... | Ensure correct array elements order in Jackson2JsonEncoder |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class DatabaseUtils {
if ( sql . length ( ) < NUMBER0 ) {
return STATEMENT_OTHER ;
}
- String prefixSql = sql . substring ( NUMBER1 , NUMBER0 ) . toUpperCa... | Fix Music import for Turkish locales |
<nb> public class TestClose extends TomcatBaseTest {
client . sendCloseFrame ( CloseCodes . GOING_AWAY ) ;
client . forceCloseSocket ( ) ;
- SINGLE
+ SINGLE
awaitOnClose ( CloseCodes . CLOSED_ABNORMALLY ) ;
} | Fix a TODO add explanatory comment as to why the test is correct |
<nb> public class MemberInplaceRenamer extends VariableInplaceRenamer {
try {
final PsiNamedElement variable = getVariable ( ) ;
if ( variable != null && ! newName . equals ( myOldName ) ) {
- final NamesValidator namesValidator = LanguageNamesValidation . INSTANCE . forLanguage ( variable . getLanguage ( ) ) ;... | renaming localization keys find usages |
<nb> public class ShutdownTimeout
if ( shutdownCustomValue != null
&& shutdownCustomValue . length ( ) > NUMBER0 )
{
- shutDownTimeout =
+ long custom =
Long . valueOf ( shutdownCustomValue ) ;
+
+ SINGLE
+ SINGLE
+ if ( custom > NUMBER0 )
+ shutDownTimeout = custom ;
}
}
catch ( Throwable t... | Adds a check for force shutdown timeout system property |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class SqliteAndroidDatabaseType extends SqliteDatabaseType implements DatabaseType {
+ public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements DatabaseType {
public SqliteAndroidDatabaseType ( ) {
}
<nb> public class Sql... | Created the BaseSqliteDatabaseType so android and jdbc can use it |
<nb> abstract class MapProxySupport extends AbstractDistributedObject < MapService > imp
COMMENT
COMMENT
COMMENT
- SINGLE
public void executeOnEntriesInternal ( EntryProcessor entryProcessor , Predicate predicate , List < Data > result ) {
try {
OperationFactory operation | Removed outdated TODO in MapProxySupport |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
public class TestFares extends TestCase {
+
public void testBasic ( )... | removed some old imports that were causing compile errors |
<nb> public class OrderedListFragmentHelper < LIST > {
@ override
public void drop ( int from , int to ) {
long targetTaskId = taskAdapter . getItemId ( from ) ;
+ if ( targetTaskId <= NUMBER0 ) return ; SINGLE
long destinationTaskId = taskAdapter . getItemId ( to ) ;
try {
<nb> public class OrderedList... | Fixed an issue where swiping list area below task could trigger indent and drop events |
<nb> public class MapBuilder < K , V > {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- @ deprecated
public Map < K , V > immutableMap ( ) {
- SINGLE
+ SINGLE
return unmodifiableMap ( new HashMap < > ( map ) ) ;
}
} | Remove Deprecated tags from o e c c MapBuilder immutableMap |
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
station . name = creativeName ;
station . x = node . getLon ( ) ;
station . y = node . getLat ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
station . spacesAvailable = capacity / NUMBER0 ;
- station . bikesAvailable = capacity / NUMBER0 ;
+ ... | make capacity correct for odd values |
<nb> public final class OperatorAssertion
assertOperatorEquals ( operator , input , expected , false , ImmutableList . < Integer > of ( ) ) ;
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
public static void assertOperatorEquals ( Operator operator , List < Page > input , MaterializedResult expected , boolean ha... | Remove commented out code |
<nb> public class SimpleWebServer extends NanoHTTPD {
put ( STRING0 , STRING1 ) ;
put ( STRING2 , STRING1 ) ;
put ( STRING3 , STRING4 ) ;
+ put ( STRING5 , STRING6 ) ;
put ( STRING7 , STRING8 ) ;
put ( STRING9 , STRING10 ) ;
put ( STRING11 , STRING12 ) ; | Adds SimpleWebServer MIME of image svg xml |
<nb> package NAMESPACE ;
public interface StatsOutput
{
- void format ( String [ ] keys , long [ ] vals ) throws Exception ;
- void close ( ) throws Exception ;
+ void format ( String [ ] keys , long [ ] vals ) throws Exception ;
+
+ void close ( ) throws Exception ;
} | Fixed formatting issues |
<nb> public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
COMMENT
COMMENT
COMMENT
- public void setUseRegisteredSuffixPatternMatch ( boolean useRegsiteredSuffixPatternMatch ) {
- this . useRegisteredSuffixPatternMatch = useRegsiteredSuffixPatternMatch ;
- this . useSuffixPatternM... | Fixed a typo in RequestMappingHandlerMapping java |
<nb> public final class IssueDto {
return description ;
}
- public IssueDto setDescription ( String s ) {
+ public IssueDto setDescription ( @ nullable String s ) {
this . description = s ;
return this ;
}
<nb> public final class IssueDto {
return cost ;
}
- public IssueDto setCost ( Double co... | Fix quality flaws |
<nb> public class TestActivity extends Activity {
cacheConfigToast . setText ( STRING0 + newCacheConfig . name ( ) ) ;
cacheConfigToast . show ( ) ;
documentView . setCacheConfig ( newCacheConfig ) ;
+ documentView . destroyCache ( ) ;
documentView . invalidate ( ) ;
}
} ) ; | Fixing cache mode in sample |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added a typical use to the documentation the try finally clause |
<nb> public final class ImageReader implements AutoCloseable {
Looper looper ;
mHandler = handler ;
- if ( mHandler == null ) {
+ if ( listener != null && mHandler == null ) {
if ( ( looper = Looper . myLooper ( ) ) != null ) {
mHandler = new Handler ( ) ;
} else {
<nb> public final class ImageReader ... | Fix null listener case |
<nb> public final class GCSUnderFileSystem extends UnderFileSystem {
SINGLE
@ override
public String getOwner ( String path ) throws IOException {
- return null ;
+ return STRING0 ;
}
SINGLE
@ override
public String getGroup ( String path ) throws IOException {
- return null ;
+ return STRING0 ;... | Change gcs ufs to return empty group owner instead of null |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ configuration
- @ conditionalonclass ( CacheBuilder . class )
+ @ conditionalonclass ( { CacheBuilder . class , GuavaCacheManager . class } )
@ conditionalonmissingbean ( CacheManager . class )
@ conditional ( CacheCondition . class )
class GuavaCacheConfigurati... | Add missing classpath checks |
<nb> public class JedisSentinelPool extends Pool < Jedis > {
public JedisSentinelPool ( String masterName , Set < String > sentinels , final Config poolConfig , int timeout , final String password ,
final int database ) {
this . poolConfig = poolConfig ;
+ this . timeout = timeout ;
+ this . password = passwo... | Fixed bug where timeout password and database were not set in the |
<nb> public class CommandExecutorTest {
File logFile = new File ( workDir , STRING0 ) ;
assertThat ( logFile ) . exists ( ) ;
String log = FileUtils . readFileToString ( logFile ) ;
- assertThat ( log ) . contains ( workDir . getCanonicalPath ( ) ) ;
+ assertThat ( log ) . contains ( workDir . getAbsolutePath... | Fix test on MSWindows |
<nb> final class CharRanges {
COMMENT
COMMENT
public static CharRanges withMembers ( int . . . members ) {
- return new CharRanges ( intArrayToRanges ( Arrays . copyOf ( members , members . length ) ) ) ;
+ return new CharRanges ( intArrayToRanges ( members ) ) ;
}
COMMENT
<nb> final class CharRanges ... | Remove unnecessary array copying |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class DaemonGradleExecuter extends ForkingGradleExecuter {
- private static final Set < File > DAEMONS = new HashSet < File > ( ) ;
public DaemonGradleExecuter ( TestFile gradleHomeDir ) {
super ( gradleHomeDir ) ; | remove unused var |
<nb> public abstract class AstUtil {
public static Expression toArgumentArray ( List < Expression > argList , IRewriteResourceProvider resourceProvider ) {
List < Expression > normalArgs = new ArrayList < Expression > ( ) ;
List < Expression > spreadArgs = new ArrayList < Expression > ( ) ;
- List < ConstantExp... | fixed upstream generics problem |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Chinese extends Language {
@ override
public List < Class < ? extends Rule > > getRelevantRules ( ) {
- return Arrays .... | add some Chinese rules |
<nb>
SINGLE
package NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed a blank line and tested Eclipse for CVS mode |
<nb> public class Starter {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected void handleDeployFailed ( ) {
+ SINGLE
+ vertx . close ( ) ;
+ }
+
+
private Vertx startVertx ( boolean clustered , boolean ha , Args args ) {
MetricsOptions metricsOptions ;
ServiceLoader < VertxMetricsFac... | Added some javadoc for handleDeployFailed |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
public class BasicPipelineConfigsTest extends PipelineConfigsBaseTest {
@ override
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT ... | remove unnecessary comments |
<nb> public class BriefLogFormatter extends Formatter {
logger . log ( Level . FINE , STRING0 ) ;
}
+ public static void initWithSilentBitcoinJ ( ) {
+ init ( ) ;
+ Logger . getLogger ( STRING1 ) . setLevel ( Level . SEVERE ) ;
+ }
+
@ override
public String format ( LogRecord logRecord ) {
Object... | Add an initWithSilentBitcoinJ method |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConferenceDetailsActivity extends XmppActivity implemen... | Fix linter suppression |
<nb> public class KeyguardViewMediator implements KeyguardViewCallback ,
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void onScreenTurnedOff ( int why ) {
synchronized ( this ) {
<nb> public class KeyguardViewMediator implements KeyguardViewCallback ,
sender... | Don t activate keyguard if screen is turned off while proximity sensor is active |
<nb> public class DateFormatter {
return sChosenFormat ;
}
- public static void clearChosenFormat ( )
- {
+ public static void clearChosenFormat ( ) {
sChosenFormat = null ;
}
-
+
public static DateFormat getDateFormat ( Context context ) {
String formatString = getFormat ( context ) ;
return ... | Astyling recent change |
<nb> public class WindowManagerService extends IWindowManager . Stub
curFocus = mCurrentFocus ;
SINGLE
if ( theFocus == null || theFocus . mToken == null ) {
- Log . i ( TAG , STRING0 + theFocus + STRING1 ) ;
focusPaused = false ;
} else {
focusPaused = theFocus . mToken . paused ;
<nb> public class Win... | Change key dispatch timeout logging |
<nb> public final class Command {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public Command setEnvironmentVariable ( String name , String value ) {
<nb> public final class Command {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public ... | Improve javadoc of org sonar api utils command Command |
<nb> public abstract class AbstractLongRunningOperation < T extends LongRunningOperatio
return getThis ( ) ;
}
- public LongRunningOperation withCancellationToken ( CancellationToken cancellationToken ) {
+ public T withCancellationToken ( CancellationToken cancellationToken ) {
operationParamsBuilder . set... | Fix override of API withCancellationToken |
<nb> public class UDCServiceTest extends CrateIntegrationTest {
assertNotNull ( map . get ( STRING0 ) ) ;
assertTrue ( map . containsKey ( STRING1 ) ) ;
assertNotNull ( map . get ( STRING1 ) ) ;
+
+
+ SINGLE
+ System . clearProperty ( STRING2 ) ;
+ System . clearProperty ( STRING3 ) ;
}
} | fixed UDCService test |
<nb> public class PythonUnitTestCommandLineState extends CommandLineState {
@ notnull
protected ConsoleView createAndAttachConsole ( Project project , ProcessHandler processHandler ) throws ExecutionException {
- final ConsoleView consoleView = SMTestRunnerConnectionUtil . attachRunner ( project , processHandle... | reuse new test runner UI between JUnit and SM runners |
<nb> public class HostAndPort {
}
@ override
+ public int hashCode ( ) {
+ return NUMBER0 * convertHost ( host ) . hashCode ( ) + port ;
+ }
+
+ @ override
public String toString ( ) {
return host + STRING0 + port ;
} | override HostAndPort hashCode |
<nb> public class RenderManager {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void setLightFilter ( LightFilter lightFilter ) {
this . lightFilter = lightFilter ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void setPreferredLightMode ( Tech... | Fixed some typos and added some for light mode methods |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Ignored more HA tests |
<nb> final class Consts {
static final String KEY_NUM_RETRIES = STRING0 ;
COMMENT
- static final String URL_INFO_LINK = STRING1 ;
+ static final String URL_INFO_LINK = STRING2 ;
COMMENT
static final String URL_MARKET_SEARCH = | Adjusted the Info link to UserGuide |
<nb> public final class DBUtils {
if ( hasLimits || offset > NUMBER0 ) {
if ( limitTransformer == null ) {
+ SINGLE
dbStat . setLimit ( offset , maxRows ) ;
} else {
limitTransformer . transformStatement ( dbStat , NUMBER0 ) ;
<nb> public class JDBCStatementImpl < STATEMENT extends Statement > implement... | Always set max rows for explicit limits |
<nb> public interface ChannelHandlerContext extends AttributeMap {
ChannelHandlerContext fireChannelRead ( Object msg ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
ChannelHandlerContext fireChannelReadComplete ( ) ; | Fix documentation for ChannelHandlerContext fireChannelReadComplete |
<nb> import NAMESPACE ;
COMMENT
public class HttpExchangeTest
{
- final static boolean verbose = false ;
+ final static boolean verbose = true ;
protected static int _maxConnectionsPerAddress = NUMBER0 ;
protected static String _scheme = STRING0 ;
protected static Server _server ;
<nb> public class Ht... | debug client tests |
<nb> public class GameModeCommand extends VanillaCommand {
sender . sendMessage ( STRING0 + player . getName ( ) + STRING1 ) ;
} else {
if ( player == sender ) {
- Command . broadcastCommandMessage ( sender , STRING2 + mode . toString ( ) + STRING3 , false ) ;
+ Command . broadcastCommandMessage ( sender , ST... | Add spaces to gamemode message |
<nb> public class FolderPickerActivity extends FileActivity implements FileFragment . C
public boolean onCreateOptionsMenu ( Menu menu ) {
MenuInflater inflater = getMenuInflater ( ) ;
inflater . inflate ( R . menu . main_menu , menu ) ;
+ menu . findItem ( R . id . action_switch_view ) . setVisible ( false ) ;... | Hide unnecessary options in contextual menu while copying or moving files folders |
<nb> public class HighlyAvailableGraphDatabase
}
}
storeId = broker . getClusterStoreId ( true ) ;
- newMaster ( new InformativeStackTrace ( STRING0 ) ) ;
+ newMaster ( new InformativeStackTrace ( STRING1 + machineId + STRING2 ) ) ;
localGraph ( ) ;
} | Includes server id in startup log message |
<nb> class MountService extends IMountService . Stub
case H_FSTRIM : {
if ( ! isReady ( ) ) {
Slog . i ( TAG , STRING0 ) ;
- sendMessageDelayed ( obtainMessage ( H_FSTRIM ) , DateUtils . SECOND_IN_MILLIS ) ;
+ sendMessageDelayed ( obtainMessage ( H_FSTRIM , msg . obj ) ,
+ DateUtils . SECOND_IN_MILLIS ) ;
... | Don t ostensibly back off fstrim but then do it anyway |
<nb> public class JoinChatRoomDialog
if ( list != null )
{
if ( list . size ( ) == NUMBER0 )
- list . add ( Messages . getI18NString ( STRING0 ) ) ;
+ list . add ( Messages . getI18NString ( STRING0 ) . getText ( ) ) ;
chatRoomsList . setListData ( new Vector ( list ) ) ;
chatRoomsScrollPane . setPrefer... | Fix empty search list in the Join chat room dialog |
<nb> public class NSAtom extends Namespace {
if ( currentName == null ) {
state . getFeed ( ) . setAuthor ( content ) ;
} else {
- state . getFeed ( ) . setAuthor ( currentName + STRING0 + content ) ;
+ state . getFeed ( ) . setAuthor ( currentName + STRING1 + content ) ;
}
}
} | Revert author delimiter back to commer |
<nb> public class H2OLauncher extends JPanel implements ActionListener {
addPadding ( ) ;
+ final int textAreaHeightInLines = NUMBER0 ;
final int textAreaWidthInCharacters = NUMBER1 ;
final int wideFieldDiffInCharacters = NUMBER2 ;
<nb> public class H2OLauncher extends JPanel implements ActionListener {... | Reduce height since swing doesn t handle that well by default for whatever reason |
<nb> public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac
if ( getSelectedGrid ( ) != grid ) {
tab . setAlertIcon ( content . getAlertIcon ( ) ) ;
if ( activate ) {
- AppIcon . getInstance ( ) . requestAttention ( false ) ;
tab . fireAlert ( ) ;
} else {
tab . stopAlerting ... | app icon bouncing removed for runner ui |
<nb> public class XmlClientConfigBuilder extends AbstractXmlConfigHelper {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed a li tag |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.