diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class Block extends Message {
SINGLE
long currentTime = Utils . currentTimeSeconds ( ) ;
if ( time > currentTime + ALLOWED_TIME_DRIFT )
- throw new VerificationException ( STRING0 ) ;
+ throw new VerificationException ( String . format ( STRING1 , time , currentTime + ALLOWED_TIME_DRIFT ) ) ;
} ... | Extend exception message to help track down flaky test |
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit {
}
SINGLE
- else if ( lpparam . packageName . equals ( STRING0 ) )
+ else if ( lpparam . packageName . equals ( STRING1 ) )
hook ( new XContentProvider ( Restriction . cDictionary , new String [ ] { STRING2 } ,
- STRING3... | Fix package class name user dictionary |
<nb> public class Constants {
SINGLE
SINGLE
- public static final String JGIT_VERSION = STRING0 ;
+ public static final String JGIT_VERSION = STRING1 ;
public static final String ADMIN_ROLE = STRING2 ; | Updated the static JGit version string |
<nb> public class LambdaExpression {
if ( formalParamCount > argCount ) {
throw new ELException ( Util . message ( context ,
- STRING0 ,
+ STRING1 ,
Integer . valueOf ( argCount ) ,
Integer . valueOf ( formalParamCount ) ) ) ;
} | Use the correct message key |
<nb> class BasicBatchConfigurer implements BatchConfigurer {
logger . warn ( STRING0 ) ;
factory . setIsolationLevelForCreate ( STRING1 ) ;
}
+ String tablePrefix = this . properties . getTablePrefix ( ) ;
+ if ( StringUtils . hasText ( tablePrefix ) ) {
+ factory . setTablePrefix ( tablePrefix ) ;
+ }
... | Consistently apply table prefix |
<nb> 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 ;
+ import NAMESPACE ;
import ... | Allow aggregation of an empty TupleStream |
<nb> class NavigationBarApps extends LinearLayout {
COMMENT
private static boolean canAcceptDrag ( DragEvent event ) {
+ SINGLE
+ if ( event . getClipDescription ( ) == null ) {
+ return false ;
+ }
SINGLE
return event . getClipDescription ( ) . hasMimeType ( ClipDescription . MIMETYPE_TEXT_INTENT ) ;... | Fix app shelf crash on drag with no ClipDescription |
<nb> public BigInteger val ;
public boolean equals ( Object arg0 ) {
return arg0 != null
&& arg0 instanceof BigNum
- && ( ( BigNum ) arg0 ) . val == val ;
+ && ( ( BigNum ) arg0 ) . val . equals ( val ) ;
}
public int hashCode ( ) { | fixed BigNum equals |
<nb> class BrowserFrame extends Handler {
url = url . replaceFirst ( ANDROID_ASSET , STRING0 ) ;
try {
AssetManager assets = mContext . getAssets ( ) ;
- return assets . open ( url , AssetManager . ACCESS_STREAMING ) ;
+ Uri uri = Uri . parse ( url ) ;
+ return assets . open ( uri . getPath ( ) , AssetManag... | Fix file path calculation for asset files |
<nb> public class ShardMetadataRecordCursor
StringBuilder sql = new StringBuilder ( ) ;
sql . append ( STRING0 ) ;
sql . append ( Joiner . on ( STRING1 ) . join ( columnNames ) ) ;
- sql . append ( STRING2 + indexTableName + STRING3 ) ;
+ sql . append ( STRING2 ) . append ( indexTableName ) . append ( STRING3... | Fix warnings in ShardMetadataRecordCursor |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class LookupElementProximityWeigher extends CompletionWeigher {
public Comparable weigh ( @ notnull final LookupElement item , final CompletionLo... | compare classes by proximity |
<nb> public class IncrementalNativeCompiler < T extends NativeCompileSpec > implements C
spec . setSourceFileIncludes ( mapIncludes ( spec . getSourceFiles ( ) , compilation . getFinalState ( ) ) ) ;
if ( sourceFilesUseMacroIncludes ( spec . getSourceFiles ( ) , compilation . getFinalState ( ) ) ) {
- logger . ... | Add more debug to slow fallback path in incremental native compiler |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> pu... | use SlideDownAlphaAnimator as this one looks better for collapsing items |
<nb> public final class Alphabet {
COMMENT
public int getIndex ( char letter , boolean forceAdd ) {
- final int r = getNextIndex ( NUMBER0 , letter , forceAdd ) ;
- return r ;
+ return getNextIndex ( NUMBER0 , letter , forceAdd ) ;
}
COMMENT
<nb> public final class Alphabet {
COMMENT
public int ... | Spellchecker avoid IOOBE |
<nb> public class ManagedBrowsableEndpointAsXmlTest extends ManagementTestSupport {
assertNotNull ( out ) ;
log . info ( out ) ;
- assertEquals ( STRING0 + exchanges . get ( NUMBER0 ) . getExchangeId ( ) + STRING1
+ assertEquals ( STRING0 + exchanges . get ( NUMBER0 ) . getExchangeId ( )
+ + STRING1
+ STR... | Fixed a CS error in camel core |
<nb> public interface Region extends Iterable < BlockVector > , Cloneable {
public void shift ( Vector change ) throws RegionOperationException ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed a typo |
<nb> public class InlineFilterTest extends BaseTest {
ints . add ( NUMBER0 ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ List < Integer > hits = JsonPath . parse ( ints ) . read ( STRING0 ) ;
+ assertThat ( hits ) . containsExactly ( NUMBER1 , NUMBER2 , null , NUMBER3 , NUMBER0 ) ;
+
+ hits... | Reintroduced commented test |
<nb> public class PickDateActivity extends ActionBarActivity {
CalendarPickerView calendar = ( CalendarPickerView ) findViewById ( R . id . calendar_view ) ;
Calendar nextDay = Calendar . getInstance ( ) ;
nextDay . add ( Calendar . DAY_OF_YEAR , NUMBER0 ) ;
- calendar . init ( DateUtils . birthDay . getTime ( ... | Change selected date |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectSpecificSettingsStep extends AbstractProjectSettingsStep imp
if ( advancedSettings != null ) {
final JPanel jPanel = new JPanel ( new VerticalFlowLayout ( ) ) ;
f... | Expand more setting by default if there is an error in configuration |
<nb> public class AsyncTwitterWrapper extends TwitterWrapper {
if ( result . hasData ( ) ) {
final ParcelableStatus status = result . getData ( ) ;
SINGLE
-
final TweetEvent event = TweetEvent . create ( getContext ( ) , status , TimelineType . OTHER ) ;
event . setAction ( TweetEvent . Action . RETWEET ) ;... | removed retweeted toast |
<nb> final class CdiSpiHelper {
COMMENT
COMMENT
COMMENT
- private static String createTypeCollectionId ( Collection < ? extends Type > types ) {
+ private static String createTypeCollectionId ( Collection < Type > types ) {
return types . stream ( )
. sorted ( comparing ( CdiSpiHelper : : createTypeId ) )... | Fix type inference compilation error with older JDK versions |
<nb> import NAMESPACE ;
public class SitePickerActivity extends ActionBarActivity
implements SitePickerAdapter . OnSiteClickListener ,
SitePickerAdapter . OnSelectedCountChangedListener ,
- SearchView . OnQueryTextListener {
+ SearchView . OnQueryTextListener ,
+ SearchView . OnCloseListener {
public st... | Setting OnCloseListener to swap back to regular adapter |
<nb> public class DefaultWayPropertySetSource implements WayPropertySetSource {
COMMENT
setProperties ( props , STRING0 ,
- StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT0 , FLOAT0 ) ;
+ StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ;
setProperties ( props , STRING1 ,
... | Made weights for highway cycleway and highway path bicycle designated more favorable based on testing issues |
<nb> import NAMESPACE ;
import static NAMESPACE ;
- @ implements ( value = NumberPicker . class , callThroughByDefault = true )
+ @ implements ( value = NumberPicker . class )
public class ShadowNumberPicker extends ShadowLinearLayout {
@ realobject
private NumberPicker realObject ; | Remove unnecessary callthroughbydefault |
<nb> public class DeepLearningModel extends Model < DeepLearningModel , DeepLearningParam
table . set ( row , col ++ , fmt . print ( start_time + e . training_time_ms ) ) ;
table . set ( row , col ++ , PrettyPrint . msecs ( e . training_time_ms , true ) ) ;
int speed = ( int ) ( e . training_samples / ( ( e . tra... | Add debugging output |
<nb> public class TestTomcatSSL extends TomcatBaseTest {
if ( protocol . indexOf ( STRING0 ) != - NUMBER0 ) {
return ; SINGLE
}
+ if ( protocol . indexOf ( STRING1 ) != - NUMBER0 ) {
+ return ; SINGLE
+ }
SSLContext sslCtx = SSLContext . getInstance ( STRING2 ) ;
sslCtx . init ( null , trustAllCerts ,... | Fix unit test failure with APR |
<nb> public class UdpKernel extends AbstractKernel
socketEndpoints . remove ( p . getRemoteAddress ( ) ) ;
addEvent ( EndpointEvent . createRemove ( this , p ) ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( ! hasEnvelopes ( ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ addEnvelope ( EVENTS_PENDING ) ;
+ }
}
... | Made the UDP disconnect events more timely by including |
<nb> class DBTCPConnector implements DBConnector {
boolean _error ( Throwable t )
throws MongoException {
if ( _allHosts != null ) {
- System . out . println ( STRING0 + t ) ;
- t . printStackTrace ( ) ;
+ _logger . log ( Level . WARNING , STRING1 , t ) ;
_pickCurrent ( ) ;
}
return true ; | remove a System out |
<nb> public class InlineAdapter extends InstructionAdapter {
if ( InlineCodegenUtil . GENERATE_SMAP ) {
line = sourceMapper . mapLineNumber ( line ) ;
}
- super . visitLineNumber ( line , start ) ;
+ SINGLE
+ if ( line >= NUMBER0 ) {
+ super . visitLineNumber ( line , start ) ;
+ }
}
@ override | Skip line numbers that couldn t be mapped by SourceMappers |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
return myDocument instanceof DocumentImpl &&
myHighlighter instanceof LexerEditorHighlighter &&
! mySelectionModel . hasSelection ( ) &&
+ arePositionsWithinDocument ( myCaretModel . getAllCarets ( ) ) &&
areVisualLinesUniq... | handle carets in virtual space |
<nb> public class TouchEvent extends InputEvent {
public void setScaleSpanInProgress ( boolean scaleSpanInProgress ) {
this . scaleSpanInProgress = scaleSpanInProgress ;
}
+
+ @ override
+ public String toString ( ) {
+ return STRING0 + pointerId + STRING1 + type +
+ STRING2 + posX + STRING3 + posY + ST... | Add toString method for TouchEvent |
<nb> public class WsSci implements ServletContainerInitializer {
}
for ( Class < ? > clazz : clazzes ) {
- WebSocketEndpoint anotation =
+ WebSocketEndpoint annotation =
clazz . getAnnotation ( WebSocketEndpoint . class ) ;
- sc . publishServer ( clazz , ctx , anotation . value ( ) ) ;
+ sc . publishSer... | Correct a typo |
<nb> public class PyUnresolvedReferencesInspection extends PyInspection {
@ override
public void visitPyImportElement ( PyImportElement node ) {
super . visitPyImportElement ( node ) ;
- if ( CythonLanguageDialect . _isDisabledFor ( node ) || MakoLanguage . _isDisabledFor ( node ) ) {
+ if ( MakoLanguage . _i... | Enabled unused imports inspection for Cython files |
<nb> public class EditorTextField extends JPanel implements DocumentListener , TextCom
public void run ( ) {
myDocument . replaceString ( NUMBER0 , myDocument . getTextLength ( ) , text ) ;
if ( myEditor != null ) {
- myEditor . getCaretModel ( ) . moveToOffset ( myDocument . getTextLength ( ) ) ;
+ final Car... | typing illegal character in EJB servlet filter name fields moves cursor to the end of field |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IssueSearchTest extends AbstractIssueTest {
COMMENT
COMMENT
@ test
+ @ ignore ( STRING0 )
public void redirect_to_sea... | ignore IssueSearchTest redirect_to_search_url_after_wrong_login |
<nb> public class BaseCrossBuildResultsStore < R extends CrossBuildPerformanceResults >
return db . withConnection ( new ConnectionAction < List < String > > ( ) {
public List < String > execute ( Connection connection ) throws SQLException {
List < String > testNames = new ArrayList < String > ( ) ;
- Prepared... | Fix cross build result store |
<nb> public class Meta {
mListHook . add ( new Hook ( STRING0 , STRING1 , STRING2 , NUMBER0 , null , null ) . dangerous ( ) ) ;
mListHook . add ( new Hook ( STRING0 , STRING3 , STRING2 , NUMBER1 , null , null ) ) ;
- mListHook . add ( new Hook ( STRING0 , STRING4 , STRING2 , NUMBER1 , null , null ) . dangerous ... | Set version from |
<nb> public interface PyArgumentList extends PyElement {
boolean isImplicitlyResolved ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ notnull Map < PyExpression , PyNamedParameter > getPlainMappedParams ( ) ; | Fixed a typo in javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class RepoDb extends SQLiteOpenHelper {
private static SQLiteDatabase sDb ;
private RepoDb ( Context context ) {
- super ( context , new F... | Move repository DB away from the cache directory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UpdateBenchmark extends BenchmarkBase {
}
}
- @ benchmarkoptions ( benchmar... | remove ES update by query benchmark not possible anymore |
<nb> class TomcatStarter implements ServletContainerInitializer {
SINGLE
SINGLE
if ( logger . isErrorEnabled ( ) ) {
- logger . error ( STRING0 + ex . getClass ( ) . getName ( ) ) ;
+ logger . error ( STRING1
+ + ex . getClass ( ) . getName ( ) + STRING2 + ex . getMessage ( ) ) ;
}
}
} | Improve diagnostics for start failures in TomcatStarter |
<nb> public class IndexShardRoutingTable implements Iterable < ShardRouting > {
public ShardIterator preferLocalShardsIt ( String nodeId ) {
ArrayList < ShardRouting > ordered = new ArrayList < ShardRouting > ( this . shards . size ( ) ) ;
SINGLE
- int index = counter . getAndIncrement ( ) ;
+ int index = Mat... | abs the count with prefer local |
<nb> public abstract class GLMTask < T extends GLMTask < T > > extends MRTask2 < T > {
_gram . addRow ( nums , ncats , cats , w ) ;
}
@ override public void map ( Chunk [ ] chunks ) {
- _gram = new Gram ( fullN ( ) , diagN ( ) , _nums , _cats ) ;
+ _gram = new Gram ( fullN ( ) , diagN ( ) , _nums , _cats , tr... | fixed GLMTask to fit with the change to Gram matrix |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COM... | removed an unused import and fixed up overview javadoc |
<nb> public class GraphPathFinder {
throw new PathNotFoundException ( ) ;
}
- for ( GraphPath graphPath : paths ) {
+ COMMENT
+ Iterator < GraphPath > gpi = paths . iterator ( ) ;
+ while ( gpi . hasNext ( ) ) {
+ GraphPath graphPath = gpi . next ( ) ;
SINGLE
if ( request . arriveBy ) {
if ( graph... | remove bad paths from responses |
<nb> public class HttpPostRequestDecoder {
}
this . request = request ;
HttpMethod method = request . getMethod ( ) ;
- if ( method . equals ( HttpMethod . POST ) || method . equals ( HttpMethod . PUT ) ) {
+ if ( method . equals ( HttpMethod . POST ) || method . equals ( HttpMethod . PUT ) || method . equals... | Correctly handle HTTP Patch |
<nb> public class OperatorStats
private long completedDataSize ;
private long completedPositions ;
- long wallStartTime ;
- long cpuStartTime ;
- long userStartTime ;
+ private long wallStartTime ;
+ private long cpuStartTime ;
+ private long userStartTime ;
private boolean finished ; | Make fields private |
<nb> public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
System . arraycopy ( array , i , appended , i + NUMBER0 , array . length - i ) ;
myChildren = appended ;
- SINGLE
- SINGLE
- assertAccessInTests ( file , myFS ) ;
+ if ( ! file . isDirectory ( ) ) {
+ SINGLE
+ SINGLE
+ assertAcc... | VirtualDirectory checks access only for the new files as before |
<nb> public abstract class StanzaHandler {
session . getConnection ( ) . close ( ) ;
return ;
}
+ SINGLE
+ if ( stanza . startsWith ( STRING0 ) ) {
+ return ;
+ }
SINGLE
Element doc ;
try { | Ignore xml stanzas |
<nb> public class BlockDrawingHelper
COMMENT
COMMENT
COMMENT
- private void DrawPrimitive ( DrawEntity e , World w )
+ private void DrawPrimitive ( DrawEntity e , World w ) throws Exception
{
String entityName = e . getType ( ) . getValue ( ) ;
NBTTagCompound nbttagcompound = new NBTTagCompound ( ) ;
... | Tidied up exception handling |
<nb> public interface StackManipulation {
@ override
public String toString ( ) {
- return STRING0 + name ( ) ;
+ return STRING1 + name ( ) ;
}
} | Fixed toString method after renaming legal trivial stack manipulations |
<nb> public class OperationObserveFromAndroidComponent {
}
private void log ( String message ) {
- Log . d ( LOG_TAG , STRING0 + componentRef ) ;
- Log . d ( LOG_TAG , STRING1 + observerRef ) ;
- Log . d ( LOG_TAG , message ) ;
+ if ( Log . isLoggable ( LOG_TAG , Log . DEBUG ) ) {
+ Log . d ( LOG_TAG , ... | Add guards around log statements |
<nb> public interface Context extends Registry {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add missing Renderer references to documentation on Context render |
<nb> final class TaglibUriRule extends Rule {
if ( tldConfig . isKnownTaglibUri ( text ) ) {
SINGLE
duplicateUri = true ;
- digester . getLogger ( ) . info (
- STRING0 + text + STRING1 ) ;
+ SINGLE
+ SINGLE
+ if ( tldConfig . getContext ( ) . findTaglib ( text ) == null ) {
+ digester . getLogger ( ) ... | If TLDs are defined in web xml duplicates are expected so only log at debug |
<nb> public class DefaultConsumerTemplateTest extends ContextTestSupport {
template . sendBody ( STRING0 , STRING1 ) ;
SINGLE
- Thread . sleep ( NUMBER0 ) ;
+ Thread . sleep ( NUMBER1 ) ;
out = consumer . receiveNoWait ( STRING0 ) ;
assertEquals ( STRING1 , out . getIn ( ) . getBody ( ) ) ;
<nb> publi... | give more time to slow servers to pass this test |
<nb> public class FileUtils extends CordovaPlugin {
if ( filename != null ) {
SINGLE
SINGLE
- String url = filename . replace ( STRING0 , STRING1 ) ;
+
+ SINGLE
+ String url = filename . replace ( STRING0 , STRING1 ) . toLowerCase ( ) ;
MimeTypeMap map = MimeTypeMap . getSingleton ( ) ;
String extensi... | Fixing getMimeType to get the mimetype of the file if it is upper case |
<nb> public final class ContentObservable {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ContentObservable {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ContentObservable {
COMMENT
COMMENT
- COMMENT
+ COMMEN... | Fix javadoc typos |
<nb> public class Config
COMMENT
SINGLE
SINGLE
- public int numTokens = NUMBER0 ;
+ public final int numTokens = NUMBER0 ;
COMMENT
COMMENT | Make Config numTokens a final member |
<nb> public class JspC extends Task implements Options {
context = new JspCServletContext ( log , resourceBase , classLoader ) ;
TldScanner scanner = new TldScanner ( context , true , validateXml ) ;
+ scanner . setClassLoader ( classLoader ) ;
+
try {
scanner . scan ( ) ;
} catch ( SAXException e ) {
... | Fix TLD processing when using JspC |
<nb>
package NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public interface HttpMethods { | add description to HttpMethods class |
<nb> public class MultiLayerTest {
. list ( )
. layer ( NUMBER0 , new DenseLayer . Builder ( ) . nIn ( NUMBER1 ) . nOut ( NUMBER2 ) . weightInit ( WeightInit . XAVIER ) . activation ( STRING0 ) . build ( ) )
. layer ( NUMBER3 , new DenseLayer . Builder ( ) . nIn ( NUMBER2 ) . nOut ( NUMBER4 ) . weightInit ( Weigh... | Fixed test error by setting nOut for bn |
<nb> public class Http11Protocol
public int getProcessorCache ( ) { return this . processorCache ; }
public void setProcessorCache ( int processorCache ) { this . processorCache = processorCache ; }
- SINGLE
+ protected int socketBuffer = NUMBER0 ;
+ public int getSocketBuffer ( ) { return socketBuffer ; } ... | Add back missing socketBuffer attribute |
<nb> class ReaderPostRenderer {
. append ( STRING0 )
. append ( STRING1 )
- SINGLE
+ SINGLE
. append ( STRING2 )
- SINGLE
+ SINGLE
. append ( STRING3 )
SINGLE
<nb> class ReaderPostRenderer {
. append ( STRING4 )
. append ( STRING5 )
- SINGLE
+ SINGLE
. append ( STRING6 )
SINGLE | Corrected weird indenting |
<nb> public final class SessionManagementConfigurer < H extends HttpSecurityBuilder < H > >
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
public Session... | Fix SessionFixationConfigurer changeSessionId Javadoc |
<nb> abstract class PoolBase
resetBits |= DIRTY_BIT_ISOLATION ;
}
- if ( ( dirtyBits & DIRTY_BIT_CATALOG ) != NUMBER0 ) {
- final String currentCatalog = proxyConnection . getCatalogState ( ) ;
- if ( ( currentCatalog != null && ! currentCatalog . equals ( catalog ) ) || ( currentCatalog == null && catalog ... | do not reset catalog to null |
<nb> public class AsyncContextImpl implements AsyncContext , AsyncContextCallback {
}
check ( ) ;
request . getCoyoteRequest ( ) . action ( ActionCode . ASYNC_COMPLETE , null ) ;
+ if ( ! Globals . STRICT_SERVLET_COMPLIANCE ) {
+ clearServletRequestResponse ( ) ;
+ }
}
@ override
<nb> public class A... | Use the strict compliance flag to wrap around the vetoed change deferring real completion of AsyncContext complete until after onComplete |
<nb> public class EJBBoundDeliveryActiveMetaDataParser extends AbstractEJBBoundMetaDa
public static final String NAMESPACE_URI = STRING0 ;
+ private static final String ROOT_ELEMENT_DELIVERY = STRING1 ;
private static final String ACTIVE = STRING2 ;
public static final EJBBoundDeliveryActiveMetaDataParser... | Add missing check for root element name at EJBBoundDeliveryActiveMetaDataParser |
<nb> import NAMESPACE ;
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... | Remove unused imports |
<nb> public class CommandLineParser {
+ STRING0
+ STRING1
+ STRING2
- + STRING3
+ + STRING4
+ STRING5
+ STRING6
+ STRING7 | add an example of a language variant en GB to the usage text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fix compile error |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class InstrumentMethod {
+ class InstrumentMethod {
private static final String STACK_NAME = Type . getInternalName ( STACK_CLASS ) ;
private final MethodDatabase db ;
private final String className ; | made InstrumentMethod package private |
<nb> public interface AgentBuilder {
COMMENT
COMMENT
COMMENT
+ @ suppressfbwarnings ( value = STRING0 , justification = STRING1 )
enum SelfInjection implements InitializationStrategy {
COMMENT | Added hint to findbugs |
<nb> public class WebSocketServerProtocolHandshakeHandler extends ChannelInboundMessa
}
}
- @ override
- public void exceptionCaught ( ChannelHandlerContext ctx , Throwable cause ) throws Exception {
- logger . error ( STRING0 , cause ) ;
- ctx . close ( ) ;
- }
-
private static void sendHttpRespons... | The handshake handler should not handle the exception and simply close the socket |
<nb> public class ORecordSerializerJSON extends ORecordSerializerStringAbstract {
( ( ODocument ) iRecord ) . setClassNameIfExists ( STRING0 . equals ( fieldValueAsString ) ? null : fieldValueAsString ) ;
SINGLE
- else if ( fieldName . equals ( STRING1 ) ) {
+ else if ( fieldName . equals ( STRING1 ) && ! ( i... | Fixed issue on value field not imported from JSON |
<nb> public class ZWaveProductDatabase {
}
public List < ZWaveDbManufacturer > GetManufacturers ( ) {
+ if ( database == null || database . Manufacturer == null ) {
+ return Collections . emptyList ( ) ;
+ }
return database . Manufacturer ;
}
<nb> public class ZWaveProductDatabase {
COMMENT
COMM... | Add extra checks in database code |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GoTestRunningState extends GoRunningState {
String executable = GoEnvironmentUtil . getExecutableForSdk ( sdkHomePat... | Pass GOPATH to tests |
<nb> public final class RpcUtils {
try {
return callable . call ( ) ;
} catch ( AlluxioException e ) {
+ LOG . error ( STRING0 , e ) ;
throw e . toThrift ( ) ;
} catch ( Exception e ) {
LOG . error ( STRING1 , e ) ;
<nb> public final class RpcUtils {
try {
return callable . call ( ) ;
} catch ( Al... | Add additional logging when an error occurs as a result of an RPC |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class DistinctOperation extends BaseOperation < MongoCursor < String > > {
private final MongoNamespace namespace ;
private final String fieldName ;
... | Added class level JavaDoc |
<nb> public class ProviderManager extends AbstractAuthenticationManager implements In
private void checkIfValidList ( List listToCheck ) {
if ( ( listToCheck == null ) || ( listToCheck . size ( ) == NUMBER0 ) ) {
- throw new IllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING1... | Corrected wrong error message in ProviderManager |
<nb> public class Canvas {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | duplicate word of |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ requiresauthentication
- @ api ( value = STRING0 , description = STRING1 )
+ @ api ( value = STRING2 , description = STRING1 )
@ path ( STRING3 )
public class StreamAlertReceiverResource extends RestResource {
private static final Logger LOG = LoggerFactory . ge... | Make alert receivers expandable on api browser |
<nb> public class Observable < T > {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
@ experimental
public f... | add since annotation to javadocs for new takeUntil variant |
<nb> public class DescriptorRenderer implements Renderer < DeclarationDescriptor > {
List < TypeProjection > arguments = type . getArguments ( ) ;
for ( int idx = receiver ? NUMBER0 : NUMBER1 ; idx < arguments . size ( ) ; idx ++ ) {
if ( idx + NUMBER0 == arguments . size ( ) ) {
- sb . append ( STRING0 ) ;
+... | Added extra space around in function types |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AspectResolver {
new BinaryPredicate < Rule , Attribute > ( ) {
@ override
public boolean apply ( @ nullable Rule rule , ... | do not trigger the loading of directly dependent packages on query for aspects that do not have implicit attributes |
<nb> public class PreferencesFrame {
String [ ] monoFontFamilies ;
JComboBox < String > fontSelectionBox ;
+ JButton okButton ;
+
COMMENT
Base base ;
<nb> public class PreferencesFrame {
SINGLE
- JButton okButton = new JButton ( Preferences . PROMPT_OK ) ;
+ okButton = new JButton ( Preferen... | Made the okButton as the default button everytime so that it gets highlighted |
<nb> public class NettyHandlerAdapter extends SimpleChannelInboundHandler < FullHttpReq
response . headers ( ) . set ( HttpHeaderConstants . CONTENT_LENGTH , contentLength ) ;
- boolean shouldClose = true ;
+ boolean isKeepAlive = isKeepAlive ( nettyRequest ) ;
if ( channel . isOpen ( ) ) {
- if ( isKeepA... | putting iskeepalive in boolean |
<nb> public class BusinessAccount {
private DateTime createdDt = null ;
private DateTime updatedDt = null ;
- private final String key ;
+ private String key ;
private String name ;
private BigDecimal balance ;
private DateTime lastInvoiceDate ; | remove extra final modifier in BusinessAccount |
<nb> public class IrGenerator
{
private final List < Token > tokenList = new ArrayList < > ( ) ;
private ByteOrder byteOrder = ByteOrder . LITTLE_ENDIAN ;
- private int version = NUMBER0 ;
COMMENT
COMMENT
<nb> public class IrGenerator
{
tokenList . clear ( ) ;
byteOrder = schema . byteOrder ( ) ; ... | Java Capture the sinceVersion from a message template for the IR and don t just default to the schema version |
<nb> public class AnnotationHandlers {
add ( new HierarchyViewerSupportHandler ( processingEnvironment ) ) ;
add ( new WindowFeatureHandler ( processingEnvironment ) ) ;
add ( new ReceiverHandler ( processingEnvironment ) ) ;
+ add ( new ReceiverActionHandler ( processingEnvironment ) ) ;
add ( new IgnoredW... | add ReceiverActionHanlder to list of AnnotationHandlers |
<nb> public class HistoryRequest {
while ( iterator . hasPrevious ( ) ) {
message = ( Message ) iterator . previous ( ) ;
SINGLE
- accumulatedChars += message . getBody ( ) . length ( ) ;
+ String text = message . getBody ( ) == null ? message . getSubject ( ) : message . getBody ( ) ;
+ accumulatedChars +=... | Fixed bug calculating length of messages with no body |
<nb> public class XActivityManagerService extends XHook {
listHook . add ( new XActivityManagerService ( Methods . appNotResponding , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ;
listHook . add ( new XActivityManagerService ( Methods . systemReady , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ;
lis... | Fix SDK version for setLockScreenShown support info |
<nb> public class PeopleUtils {
SINGLE
public static int FOLLOWER_PAGE_LIMIT = NUMBER0 ;
public static int FETCH_LIMIT = NUMBER1 ;
+ private static String ROLE_FOLLOWER = STRING0 ;
+ private static String ROLE_VIEWER = STRING1 ;
public static void fetchUsers ( final String blogId , final int localTableBlo... | To invite viewers use as the role parameter |
<nb> public class RememberMeBeanDefinitionParser implements BeanDefinitionParser {
tokenRepo = new RuntimeBeanReference ( tokenRepository ) ;
} else {
tokenRepo = new RootBeanDefinition ( JdbcTokenRepositoryImpl . class ) ;
- ( ( BeanDefinition ) tokenRepo ) . getPropertyValues ( ) . addPropertyValue ( ATT_DATA... | Corrected use of dataSource property name in RememberMeBDP |
<nb> public class MobileCompositeProvider implements ProjectCustomizer . CompositeCateg
private class SavePropsListener implements ActionListener {
private String extensionName = STRING0 ;
- private String extensionVersion = STRING1 ;
+ private String extensionVersion = STRING2 ;
private String [ ] extensio... | Bump version number of mobile impl xml to force updates |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT | Fix doc breakage |
<nb> public abstract class ExtendedFilter
}
}
+ @ override
public String toString ( )
{
return Objects . toStringHelper ( this )
<nb> public abstract class ExtendedFilter
throw new AssertionError ( ) ;
}
+ @ override
public String toString ( )
{
return Objects . toStringHelper ( this ) | add missing Override to new toString methods |
<nb> public class PSurfaceLWJGL implements PSurface {
@ override
public Canvas initCanvas ( PApplet sketch ) {
+ this . sketch = sketch ;
+
+ sketchWidth = sketch . sketchWidth ( ) ;
+ sketchHeight = sketch . sketchHeight ( ) ;
+
Canvas canvas = new Canvas ( ) ;
canvas . setFocusable ( true ) ;
ca... | missing assignements in initCanvas |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class Analysis < Res > {
final Res myIdentity ;
final Deque < PendingAction < Res > > pending = new LinkedList < PendingAction < Res > > ( ) ;
- final Map < Integer , List... | using TIntObjectHashMap in analysis instead of wrappers |
<nb> public class PyQuickFixTest extends PyLightFixtureTestCase {
}
public void testReplaceBackquoteExpression ( ) throws Exception {
- doInspectionTestWithPy3k ( STRING0 , PyUnsupportedFeaturesInspection . class ,
+ doInspectionTestWithPy3k ( STRING1 , PyUnsupportedFeaturesInspection . class ,
PyBundle . m... | Corrected filename to make the test pass on linux |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class PublicationLink implements DriverManagedResource
private final long unblockTimeoutNs ;
private final DriverManagedResource publication ;
private final AeronClient client ;
- private final SystemCo... | Save an indirection for single counter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.