diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PluginManager {
Streams . copy ( zipFile . getInputStream ( zipEntry ) , new FileOutputStream ( target ) ) ;
}
} catch ( Exception e ) {
- System . err . println ( STRING0 + plu... | on failure to extract a plugin log the message and bail |
<nb> public class DaoAuthenticationProvider implements AuthenticationProvider ,
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Javadocs warning |
<nb> public class DeepLearningReproducibilityTest extends TestUtil {
Map < Integer , Float > repeatErrs = new TreeMap < > ( ) ;
- int N = NUMBER0 ;
+ int N = NUMBER1 ;
StringBuilder sb = new StringBuilder ( ) ;
float repro_error = NUMBER2 ;
for ( boolean repro : new boolean [ ] { true , false } ) {
<n... | Speed up DLReproducibilityTest |
<nb> public class HttpClientHelper implements Closeable {
return response ;
}
- private synchronized CloseableHttpClient getClient ( ) {
+ private CloseableHttpClient getClient ( ) {
if ( client == null ) {
- HttpClientBuilder builder = HttpClientBuilder . create ( ) ;
- builder . setRedirectStrategy ( ... | Only synchronize client access when initializing |
<nb> public class VoiceRouter {
lastTimeMakeUTwpAnnounced = System . currentTimeMillis ( ) ;
}
}
+ currentStatus = STATUS_UNKNOWN ;
return ;
} | update voiceRouter with currentStatus STATUS_UNKNOWN while makeUturnWhenPossible is active |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class CastorUnmarshallerTests extends AbstractUnmarshallerTests {
@ override
<nb> public class CastorUnmarshallerTests extends AbstractUnmarshallerTests {
protected void testFlight ( Obje... | added superfluous cast to get around ambiguity problem with some compilers |
<nb> public class RoutingContext implements Cloneable {
SINGLE
for ( Vertex vertex : new Vertex [ ] { fromVertex , toVertex } ) {
if ( vertex instanceof StreetLocation ) {
- for ( PartialPlainStreetEdge ppse : Iterables . filter ( ( ( StreetLocation ) vertex ) . getExtra ( ) ,
- PartialPlainStreetEdge . class... | remove redundant code and stub |
<nb> public class OStringParser {
COMMENT
COMMENT
public static int jumpWhiteSpaces ( final CharSequence iText , final int iCurrentPosition ) {
- return jump ( iText , iCurrentPosition , WHITE_SPACE ) ;
+ return jump ( iText , iCurrentPosition , COMMON_JUMP ) ;
}
COMMENT | Fixed SQL parser to eat r and r when a space is required |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class _FirstInSuiteTest extends TestCase {
String tempDirectory = FileUtilRt . getTempDirectory ( ) ;
String [ ] list = new File ( tempDirectory ) . list ( )... | do not show leftovers |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GTFSPatternHopFactory {
Vertex toVertex = graph . getVertex ( departureVertexId ( id ( toStop . getId ( ) ) ) ) ;
switch ( t . getTransferType ( ) ) {
case NUMBER0 :
- SINGLE
- SINGL... | Removed dead code updated comments |
<nb> public class EntityRegainHealthEvent extends EntityEvent implements Cancellable
COMMENT
REGEN ,
COMMENT
+ COMMENT
+ COMMENT
+ SATIATED ,
+ COMMENT
COMMENT
COMMENT
EATING , | Added RegainReason SATIATED |
<nb> public abstract class AbstractModel implements Parcelable , Cloneable {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public boolean getFlag ( IntegerProperty property , int flag ) {
return ( getValue ( property ) & flag ) > NUMBER0 ;
<nb> publi... | Removed redundant getFlag method from Task as its already in AbstractModel |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Mockito extends ... | In order to communicate potential code smell added a warning in the javadocs |
<nb> public abstract class RecentProjectsManagerBase extends RecentProjectsManager im
SINGLE
SINGLE
SINGLE
- if ( new File ( path ) . exists ( ) ) {
+ SINGLE
return new ReopenProjectAction ( path , projectName , displayName ) ;
- }
- return null ;
+ SINGLE
+ SINGLE
}
private void markPathRecen... | Do not check File exists on recent projects list |
<nb> public class IndexShard extends AbstractIndexShardComponent implements IndicesCl
if ( store . tryIncRef ( ) ) {
try {
cancellableThreads . executeIO ( this : : doCheckIndex ) ;
+ } catch ( ClosedByInterruptException ex ) {
+ assert cancellableThreads . isCancelled ( ) ;
+ SINGLE
+ SINGLE
} finally ... | Catch ClosedByInterruptException when interrupting check index |
<nb> public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
private Object setDefaultValue ( PropertyTokenHolder tokens ) {
PropertyValue pv = createDefaultPropertyValue ( tokens ) ;
setPropertyValue ( tokens , pv ) ;
- return pv . getValue ( ) ;
+ return getPropertyValue ( tokens ) ... | fetch property value again after setting default value to protect against object copy |
<nb> public class GdxSetup {
printHelp ( ) ;
} else {
String sdkLocation = STRING0 ;
- if ( System . getenv ( STRING1 ) != null ) {
+ if ( System . getenv ( STRING1 ) != null && ! params . containsKey ( STRING2 ) ) {
sdkLocation = System . getenv ( STRING1 ) ;
} else {
sdkLocation = params . get ( STRIN... | Allow fallback to sdkLocation if present |
<nb> public class PsiReferenceExpressionImpl extends PsiReferenceExpressionBase imple
final PsiManagerEx manager = getManager ( ) ;
if ( manager == null ) {
LOG . error ( STRING0 ) ;
- return null ;
+ return JavaResolveResult . EMPTY_ARRAY ;
}
ResolveResult [ ] results = ResolveCache . getInstance ( getPr... | avoid induced error |
<nb> public class DefaultRecordStore implements RecordStore {
keysToDelete . removeAll ( lockedRecords . keySet ( ) ) ;
final MapStoreWrapper store = mapContainer . getStore ( ) ;
- Collection < Object > keysObject = new ArrayList < Object > ( ) ;
+ Collection < Object > keysObject = new ArrayList < Object > ... | Incorporate missing constructor arg |
<nb> public final class K2JSTranslatorApplet extends Applet {
}
}
- @ notnull
+ @ nullable
public BindingContext getBindingContext ( @ notnull String programText ) {
- K2JSTranslator k2JSTranslator = new K2JSTranslator ( new TestConfig ( ) ) ;
- return k2JSTranslator . analyzeProgramCode ( programText )... | added try catch in applet |
<nb> public class DriverDataSource implements DataSource {
return MARIADB_JDBC_DRIVER ;
}
+ if ( url . startsWith ( STRING0 ) ) {
+ return STRING1 ;
+ }
+
return null ;
}
<nb> public class DriverDataSource implements DataSource {
}
if ( url . startsWith ( STRING2 ) ) {
- SINGLE
+ SINGLE ... | Implemented support for new Redshift specific JDBC driver |
<nb> public class TorodbSafeRequestProcessor implements SafeRequestProcessor < MongodCo
@ override
public MongodConnection openConnection ( ) {
- return server . openConnection ( ) ;
+ MongodConnection connection = server . openConnection ( ) ;
+
+ LOGGER . info ( STRING0 , connection . getConnectionId ( ... | Added the connection logger |
<nb> public class CertificateManager {
for ( CertificateIdentityMapping mapping : clientCertMapping ) {
List < String > identities = mapping . mapIdentity ( x509Certificate ) ;
Log . debug ( STRING0 + mapping . name ( ) + STRING1 + identities . toString ( ) ) ;
- names . addAll ( identities ) ;
+ if ( ! ident... | Changed getClientIdentities and getServerIdentities to use the first non empty mapping results |
<nb> class ReaderPostRenderer {
SINGLE
sbHtml . append ( STRING0 )
. append ( STRING1 ) . append ( pxToDp ( mResourceVars . videoWidthPx ) ) . append ( STRING2 )
- . append ( STRING3 ) . append ( pxToDp ( mResourceVars . videoHeightPx ) ) . append ( STRING4 ) ;
+ . append ( STRING5 ) . append ( pxToDp ( mReso... | Reverted previous min height change caused problems with YouTube and other embeds |
<nb> final public class H2O {
public String ice_root ;
COMMENT
- public int nthreads = NUMCPUS ;
+ public int nthreads = Runtime . getRuntime ( ) . availableProcessors ( ) ;
SINGLE
SINGLE | Fix default number of threads |
<nb> public abstract class AbstractGraphDatabase
protected KernelData extensions ;
protected Caches caches ;
- private final LifeSupport life = new LifeSupport ( ) ;
+ protected final LifeSupport life = new LifeSupport ( ) ;
protected AbstractGraphDatabase ( String storeDir , Map < String , String > param... | Fixed closing of messages log for real |
<nb> public class SvnUtil {
final File parentIo = new File ( parent . getPath ( ) ) ;
if ( isSvnVersioned ( project , parentIo ) ) {
checkCanceled ( progress ) ;
- callback . handleWorkingCopyRoot ( parentIo , progress ) ;
+ File ioFile = new File ( vf . getPath ( ) ) ;
+ callback . handleWorkingCopyRoot ( ... | correctly crawl directories update single file to revision didn t work |
<nb> public class QueueSchedulerTest {
when ( this . graphIterator2 . hasNext ( ) ) . thenReturn ( true , true , true , true , false ) ;
when ( this . graphIterator . hasNext ( ) ) . thenReturn ( true , true , true , true , false ) ;
when ( this . vertex1 . getAllocatedResource ( ) ) . thenReturn ( resource ) ;
... | Fixed error in QueueSchedulerTest |
<nb> public class TestSemanticAnalyzer
new ColumnMetadata ( TupleInfo . Type . FIXED_INT_64 , STRING0 ) ,
new ColumnMetadata ( TupleInfo . Type . VARIABLE_BINARY , STRING1 ) ,
new ColumnMetadata ( TupleInfo . Type . VARIABLE_BINARY , STRING2 ) ) ) )
+ . put ( STRING3 , new TableMetadata ( STRING3 , ImmutableLis... | Add test for qualified table name |
<nb> public final class SlowOperationDetector {
} else if ( ! isFirstLog ) {
logWithoutStackTrace ( log , totalInvocations ) ;
} else {
- logWithConfigHint ( log , totalInvocations ) ;
+ logWithConfigHint ( log ) ;
}
}
<nb> public final class SlowOperationDetector {
}
}
- private void logWithC... | Fixed typo in SlowOperationDetector log message |
<nb> public class Http11NioProcessor implements ActionHook {
NioEndpoint . KeyAttachment attach = ( NioEndpoint . KeyAttachment ) key . attachment ( ) ;
if ( attach != null ) {
attach . setComet ( comet ) ;
+ if ( comet ) {
+ Integer comettimeout = ( Integer ) request . getAttribute ( STRING0 ) ;
+ if ( com... | bring back comet timeout |
<nb> public class PDFViewer implements CompilePdfCompletedEvent . Handler ,
public void onPdfJsWindowClosed ( PdfJsWindowClosedEvent event )
{
synctex_ . notifyPdfViewerClosed ( lastSuccessfulPdfPath_ ) ;
+ locationHash_ = pdfJsWindow_ . getLocationHash ( ) ;
pdfJsWindow_ = null ;
lastSuccessfulPdfPath_ = n... | preserve PDF location even if window is closed prior to render |
<nb> public class RetryNonBlockingIssue {
bc . setMaximumConnectionsTotal ( NUMBER0 ) ;
bc . setConnectionTimeoutInMs ( NUMBER1 ) ;
bc . setRequestTimeoutInMs ( NUMBER2 ) ;
+ bc . setAsyncConnectMode ( true ) ;
- NettyAsyncHttpProviderConfig config = new
- NettyAsyncHttpProviderConfig ( ) ;
- config . s... | Fix compilation error |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ConcatRecordSet
SINGLE
SINGLE
SINGLE
- Iterable < RecordCursor > recordCursors = transform ( recordSets , new Function < RecordSet , RecordCurso... | Migrate ConcatRecordSet java to use lambdas |
<nb> public class DaemonIdleTimeout {
}
}
+ public DaemonIdleTimeout ( int idleTimeout ) {
+ this . idleTimeout = idleTimeout ;
+ }
+
private String readProperty ( String vmParams ) {
String idleDaemonTimeoutArg = null ;
if ( vmParams != null ) { | add a constructor with an explicit timeout |
<nb> public class NotSslRecordException extends SSLException {
private static final long serialVersionUID = - NUMBER0 ;
- public NotSslRecordException ( String reason ) {
- super ( reason ) ;
+ public NotSslRecordException ( ) {
+ super ( STRING0 ) ;
}
+
+ public NotSslRecordException ( String messa... | Add more constructors to NotSslRecordException |
<nb> public abstract class ContentProviderStore < T > {
if ( ! valuesEqual ) {
Log . v ( TAG , STRING0 + pair . second ) ;
newValues = store . mergeValues ( currentValues , newValues ) ;
+ valuesEqual = store . contentValuesEqual ( currentValues , newValues ) ;
}
}
cursor . close ( ) ; | Check value equality again after merging data |
<nb> public class BazaarRepository extends ExternalRepository {
COMMENT
public BazaarRepository ( String directory ) {
setDirectoryName ( new File ( directory ) . getAbsolutePath ( ) ) ;
- command = System . getProperty ( STRING0 , STRING1 ) ;
+ command = System . getProperty ( STRING0 , STRING2 ) ;
}
C... | Fixed default path for the bzr binary |
<nb> public class NeuralNetConfLayerBuilderTest {
assertEquals ( VisibleUnit . BINARY , network . getLayer ( NUMBER0 ) . conf ( ) . getVisibleUnit ( ) ) ;
assertEquals ( HiddenUnit . BINARY , network . getLayer ( NUMBER1 ) . conf ( ) . getHiddenUnit ( ) ) ;
assertEquals ( VisibleUnit . BINARY , network . getLayer... | add nin nout assertions |
<nb> public class CompileDriver {
SINGLE
dropDependencyCache ( context ) ;
- if ( GENERATE_CLASSPATH_INDEX ) {
+ if ( didSomething && GENERATE_CLASSPATH_INDEX ) {
context . getProgressIndicator ( ) . setText ( STRING0 ) ;
for ( VirtualFile file : context . getAllOutputDirectories ( ) ) {
createClasspath... | Do not generate classpath index if nothing is changed |
<nb> public class BookCollection extends AbstractBookCollection {
public Book getBookByHash ( String hash ) {
for ( long id : myDatabase . bookIdsByHash ( hash ) ) {
final Book book = getBookById ( id ) ;
- if ( book . File . exists ( ) ) {
+ if ( book != null && book . File . exists ( ) ) {
return book ;
... | fixed possible NPE |
<nb> public final class AnimChannel {
time = NUMBER0 ;
speed = FLOAT0 ;
loopMode = LoopMode . Loop ;
- System . out . println ( STRING0 ) ;
notified = false ;
} | removed sysout from AnimChannel |
<nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
BarData bd = ( BarData ) mData ;
float space = bd . getGroupSpace ( ) ;
- float j = mData . getDataSetByIndex ( dataSetIndex )
- . getEntryPosition ( e ) ;
- float x = ( j * ( mData . getDataSetCount ( ) - NUMBER0 ) ... | Fix markerposition for grouped bars |
<nb> public class Base {
COMMENT
COMMENT
protected boolean restoreSketches ( ) {
- SINGLE
+ if ( ! Preferences . getBoolean ( STRING0 ) ) {
+ return false ;
+ }
+ SINGLE
Dimension screen = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ;
boolean windowPositionValid = true ; | implement last sketch restore feature |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class SpringBeanELResolver extends ELResolver {
String beanName = property . toString ( ... | SpringBeanELResolver s setValue should not throw PropertyNotWritableException if provided value is identical to current bean instance |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class CastEnabledActivity extends AppCompatActivity
mCastManager . decrementUiCounter ( ) ;
castUICounter -- ;
}
- SINGLE
+ if ( ! PlaybackService . isRunn... | disconnect cast session if user disables it in preferences and PlaybackService isn t running |
<nb> import NAMESPACE ;
@ incubating
@ managed
public interface LocalJava extends Named {
+ COMMENT
+ COMMENT
+ COMMENT
File getPath ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
void setPath ( File path ) ;
} | Refine LocalJava javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyReferenceCopyPasteProcessor extends CopyPasteReferenceProcess
int endOffset = data . endOffset + bounds . getStartOffset ( ) ;
PsiElement element = file . ... | don t process this and super refs in copy paste |
<nb> public class GroovySetHeaderTest extends ContextTestSupport {
mock . expectedHeaderReceived ( STRING0 , STRING1 ) ;
mock . expectedHeaderReceived ( STRING2 , STRING3 ) ;
mock . expectedHeaderReceived ( STRING4 , STRING3 ) ;
+ mock . expectedHeaderReceived ( STRING5 , STRING6 ) ;
Map < String , Object >... | Updated the groovy setHeader test |
<nb> public class PactRecordOutputEmitter implements ChannelSelector < PactRecord >
case PARTITION_HASH :
case PARTITION_LOCAL_HASH :
case PARTITION_RANGE :
+ case PARTITION_RANDOM :
this . channels = new int [ NUMBER0 ] ;
break ;
case BROADCAST : | Fixed bug in pact record output emitter partitioner |
<nb> public class Frame extends Lockable < Frame > {
@ override public byte priority ( ) { return H2O . MIN_HI_PRIORITY ; }
@ override public void compute2 ( ) {
Value v = DKV . get ( k ) ;
- if ( v == null ) Log . err ( STRING0 + k ) ;
+ if ( v == null ) Log . err ( STRING1 + ii + STRING2 + _names [ ii ] + S... | Improve error message to say which vector with name is missing during Frame fetch |
<nb> public class DictionaryEncodedColumnPartSerde implements ColumnPartSerde
@ notnull @ jsonproperty ( STRING0 ) ByteOrder byteOrder
)
{
- Preconditions . checkArgument ( byteOrder != null , STRING1 ) ;
-
this . bitmapSerdeFactory = bitmapSerdeFactory == null
? new BitmapSerde . LegacyBitmapSerdeFactory... | remove overzealous check for backwards compatibility |
<nb> public abstract class AbstractNativeCompileTask extends DefaultTask {
return NativeToolChainInternal . Identifier . identify ( toolChain , targetPlatform ) ;
}
} ) ;
+ dependsOn ( includes ) ;
}
@ inject
<nb> public abstract class AbstractNativeCompileTask extends DefaultTask {
}
COMMENT
- ... | Remove public method for adding build dependencies |
<nb> public class ClusterConfiguration
public void removeElected ( String roleName )
{
roles = new HashMap < String , InstanceId > ( roles ) ;
- InstanceId removed = roles . remove ( roleName ) ;
+ roles . remove ( roleName ) ;
}
public InstanceId getElected ( String roleName ) | Removes unnecessary intermediate variable in ClusterConfiguration removeElected |
<nb> import NAMESPACE ;
imeOptions |= EditorInfo . IME_ACTION_SEARCH ;
break ;
case EMAIL :
- inputType |= EditorInfo . TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS ;
+ SINGLE
+ inputType = EditorInfo . TYPE_CLASS_TEXT
+ | EditorInfo . TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS ;
imeOptions |= EditorInfo . IME_ACTI... | Fix input type judgment of WebTextView DO NOT MERGE |
<nb> public class ProjectPopupMenu extends ToolbarPopupMenu
addSeparator ( NUMBER0 ) ;
addItem ( commands_ . openProject ( ) . createMenuItem ( false ) ) ;
+ if ( Desktop . isDesktop ( ) )
+ addItem ( commands_ . openProjectInNewWindow ( ) . createMenuItem ( false ) ) ;
addItem ( commands_ . closeProject ( ... | restore command to open project in new session for desktop mode |
<nb> public class MvcRunTargetDialog extends DialogWrapper {
myTargetField . setEditable ( true ) ;
myTargetField . setEditor ( editor ) ;
- EditorTextField editorTextField = ( EditorTextField ) editor . getEditorComponent ( ) ;
+ EditorTextField editorTextField = editor . getEditorComponent ( ) ;
myFakeP... | remove unnecessary cast |
<nb> public class VcsPushDialog extends DialogWrapper {
private static final String ID = STRING0 ;
- @ notnull private final Project myProject ;
private final PushLog myListPanel ;
private final PushController myController ;
private final Map < PushSupport , VcsPushOptionsPanel > myAdditionalPanels ;
<n... | remove unnecessary field |
<nb> public class DRFTest extends TestUtil {
parms . max_depth = NUMBER0 ;
parms . mtries = - NUMBER1 ;
parms . min_rows = NUMBER2 ;
+ parms . classification = false ;
parms . seed = NUMBER3 ;
SINGLE
<nb> public class GBMTest extends TestUtil {
parms . learn_rate = FLOAT0 ;
parms . min_rows = NUMBER... | Do regression for GBM DRF reproducibility tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultServlet extends HttpServlet implements HttpHandler {
}
private String getPath ( final HttpServletRequest request ) {
+ if ( request... | Handle includes correctly in the DefaultServlet |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove RequestInf import |
<nb> public class NetworkInterfaceService implements Service < NetworkInterfaceBinding >
SINGLE
String argBinding = ServerEnvironment . getNetworkBinding ( name ) ;
- log . infof ( STRING0 , name , argBinding ) ;
+ log . debugf ( STRING0 , name , argBinding ) ;
if ( argBinding != null && ! argBinding . trim... | made arg binding log statement debug level |
<nb> public class CatchOptions {
public CatchOptions ( PokemonGo api ) {
this . api = api ;
this . useRazzBerries = false ;
- this . maxRazzBerries = - NUMBER0 ;
+ this . maxRazzBerries = NUMBER1 ;
this . useBestPokeball = false ;
this . skipMasterBall = false ;
this . pokeBall = POKEBALL ;
<nb> publi... | Fix maxRazzberries for intended functionality |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpMethodHelper {
try {
httpMethod . setURI ( uri ) ;
} catch ( Exception e1 ) {
- throw new URIException ( STRING0 + e1 . getMessage ( ) ) ;
+ throw new URIException ( STRING1 + uri + STRING2 + e1 . g... | Include the faulty URI in exception message |
<nb> public class MediaSessionRecord implements IBinder . DeathRecipient {
COMMENT
COMMENT
public void adjustVolume ( int direction , int flags , String packageName , int uid ) {
- if ( isPlaybackActive ( false ) ) {
+ if ( isPlaybackActive ( false ) || hasFlag ( MediaSession . FLAG_EXCLUSIVE_GLOBAL_PRIORITY ... | Don t play a sound when adjusting volume while telephony is active |
<nb> public class Messages {
}
private void propagateFailure ( BulkItemResponse [ ] items , List < Message > messages , String errorMessage ) {
- LOG . error (
- STRING0 ,
- items . length ,
- errorMessage ) ;
-
SINGLE
- List < DeadLetter > deadLetters = Lists . newArrayList ( ) ;
+ final List < D... | Log correct number of failed indexing requests |
<nb> public class ELambda extends AExpression {
final List < String > paramNameStrs ;
final List < AStatement > statements ;
- Locals locals = null ;
-
public ELambda ( FunctionReserved reserved , Location location ,
List < String > paramTypes , List < String > paramNames , List < AStatement > statements ... | Remove unused field |
<nb> public class KernelServices {
}
container = null ;
- for ( KernelServices legacyService : legacyServices . values ( ) ) {
- legacyService . shutdown ( ) ;
+ if ( legacyServices != null ) {
+ for ( KernelServices legacyService : legacyServices . values ( ) ) {
+ legacyService . shutdown ( ) ;
+ } ... | Fix NPE on shutdown of legacy kernel services |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
public interface IMergeIterator < In , Out > ... | Add missing licence header |
<nb> public abstract class jOOQAbstractTest <
. withRenderSchema ( renderSchema )
. withRenderMapping ( new RenderMapping ( )
. withDefaultSchema ( defaultSchema ) )
- . withExecuteLogging ( false )
. withExecuteListeners (
TestStatisticsListener . class . getName ( ) ,
PrettyPrinter . class . getName ( )... | Re added execute logging in integration tests |
<nb> public class CachePutAllBackupOperation
}
@ override
- public void run ( )
- throws Exception {
+ public void run ( ) throws Exception {
if ( cacheRecords != null ) {
for ( Map . Entry < Data , CacheRecord > entry : cacheRecords . entrySet ( ) ) {
- cache . putRecord ( entry . getKey ( ) , entry ... | Cache putAllBackup should skip tombstone records |
<nb> public class TimeUtils {
COMMENT
COMMENT
public static String getTimeZoneDatabaseVersion ( ) {
- return ZoneInfoDB . getVersion ( ) ;
+ return ZoneInfoDB . getInstance ( ) . getVersion ( ) ;
}
COMMENT | Use the newer ZoneInfoDB API |
<nb> public class GraphTopComponent extends TopComponent implements AWTEventListener
requestActive ( ) ;
add ( drawable . getGraphComponent ( ) , BorderLayout . CENTER ) ;
remove ( waitingLabel ) ;
-
- engine . startDisplay ( ) ;
}
} ) ;
}
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | Fix issue with engine not starting after canvas reinit |
<nb> public class BarLineChartTouchListener extends ChartTouchListener < BarLineChartBa
if ( mChart . isPinchZoomEnabled ( ) ) {
mTouchMode = PINCH_ZOOM ;
} else {
- if ( mSavedXDist > mSavedYDist )
- mTouchMode = X_ZOOM ;
- else
- mTouchMode = Y_ZOOM ;
+ if ( mChart . isScaleXEnabled ( ) != mChart . is... | Refined scaleXEnabled scaleYEnabled conditioning |
<nb> public class TextEditingTarget implements
void onFindFromSelection ( )
{
view_ . findFromSelection ( ) ;
+ docDisplay_ . focus ( ) ;
}
@ handler | focus editor on Cmd E find next |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
@ singleton
public class Stage implements Startable
{
<nb> public class Stage implements Startable
}
private ClusterPeer clusterPeer ;
- private Task < ? > startFuture ;
@ wired
private Messaging me... | Using Async in stage where appropriate |
<nb> public class PolishWordTokenizer extends WordTokenizer {
|| tagger == null ) {
l . add ( token ) ;
} else {
- try { SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ try {
List < AnalyzedTokenReadings > taggedToks = tagger . tag ( testedTokens ) ;
if ( taggedToks . size ( ) == NUMBER0
&& ! tagge... | throw RuntimeException in the PolishWordTokenizer |
<nb> public class Scene2dTest extends GdxTest {
return true ;
}
- public void fling ( InputEvent event , float velocityX , float velocityY , int pointer , int button ) {
+ public void fling ( InputEvent event , float velocityX , float velocityY , int button ) {
System . out . println ( STRING0 + velocityX +... | fixed Method signature |
<nb> public class ReaderPostDetailFragment extends Fragment
}
}
- private void resumeWebViewIfPaused ( ) {
+ void resumeWebViewIfPaused ( ) {
if ( mReaderWebView == null ) {
AppLog . w ( T . READER , STRING0 ) ;
} else if ( mIsWebViewPaused ) {
<nb> public class ReaderPostPagerActivity extends AppComp... | Added code to get fragment at position |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractFileProcessor {
ProgressManager . getInstance ( ) . runProcessWithProgressSynchronously ( new Runnable ( ) {
public void run ( ) {
readAction . run ( ) ;
- new WriteCommandAction ( myProject , title , null ... | do not invoke write command under progress |
<nb> final class TaskRecord {
if ( r . isPersistable ( ) ) {
mService . notifyTaskPersisterLocked ( this , false ) ;
}
+
+ if ( stack != null && stack . mStackId == PINNED_STACK_ID ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ mService . notifyTaskStackChangedLocked ( ) ;
+ }
+
if ( mActivities . isEmpty ( )... | Notify task changed listeners when a pinned activity is removed |
<nb> public abstract class TableModel extends AbstractModel {
COMMENT
COMMENT
COMMENT
- protected abstract LongProperty getIdProperty ( ) ;
+ public abstract LongProperty getIdProperty ( ) ;
}
<nb> public abstract class SquidCursorAdapter < T extends AbstractModel > extends BaseAd
COMMENT
COMMENT
pu... | Make SquidCursorAdapter default to the model s id property if it has one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WebImageView extends ViewSwitcher {
SINGLE
SINGLE
- AlphaAnimation anim = new AlphaAnimation ( FLOAT0 , FLOAT1 ) ;
- ... | disable animations for now |
<nb> import static NAMESPACE ;
public class HttpPostWithBodyTest extends ContextTestSupport {
- protected String expectedText = STRING0 ;
+ protected String expectedText = STRING1 ;
public void testHttpPostWithError ( ) throws Exception {
<nb> public class HttpPostWithBodyTest extends ContextTestSuppo... | Fixed the build of camel http |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public class ScaleGestureDetectorCompat {
<nb> public class ScaleGestureDetectorCompat {
private ScaleGestureDetectorCompat ( ) { }
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+... | Fix the docs for the ScaleGestureDetector |
<nb> public class Frame extends Lockable {
unlock ( null ) ;
}
+ SINGLE
+ public Chunk [ ] getChunks ( int cidx ) {
+ Vec vecs [ ] = vecs ( ) ;
+ Chunk chks [ ] = new Chunk [ vecs . length ] ;
+ for ( int i = NUMBER0 ; i < vecs . length ; i ++ )
+ chks [ i ] = vecs [ i ] . chunkForChunkIdx ( cidx ) ; ... | Add a function Frame getChunks |
<nb> public class S3Client {
}
}
+
+
+
} | Revert Remove whitespace |
<nb> public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt
log . debug ( String . format ( currentThread ( ) + STRING0 , request . getUrl ( ) ) ) ;
}
- SINGLE
- future . attachChannel ( ctx . getChannel ( ) ) ;
-
if ( response . isChunked ( ) ) {
ctx . setAttachment ( new Call... | Do no re use the same connection when getting redirected |
<nb> public abstract class GLProfiler {
COMMENT
public static void reset ( ) {
- if ( Gdx . gl30 != null && Gdx . gl30 instanceof GLProfiler ) ( ( GLProfiler ) Gdx . gl30 ) . resetVariables ( ) ;
- if ( Gdx . gl20 != null && Gdx . gl20 instanceof GLProfiler ) ( ( GLProfiler ) Gdx . gl ) . resetVariables ( ) ;... | Removed an unnecessary method |
<nb> public class PutMappingRequest extends AcknowledgedRequest < PutMappingRequest > im
validationException = addValidationError ( STRING0 , validationException ) ;
}
if ( concreteIndex != null && ( indices != null && indices . length > NUMBER0 ) ) {
- validationException = addValidationError ( STRING1 , valid... | Add better validation error message and a dedicated test |
<nb> public class MimeTypeMap {
return null ;
}
+ SINGLE
+ private static String mimeTypeFromExtension ( String extension ) {
+ return getSingleton ( ) . getMimeTypeFromExtension ( extension ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class MimeTypeMap {
sMimeTypeMap . loadEntry ( STRING0 , ... | Add a static method to obtain the mime type from extension |
<nb> public class ActorGestureListener implements EventListener {
switch ( event . getType ( ) ) {
case touchDown :
+ actor = event . getCurrentTarget ( ) ;
detector . touchDown ( event . getStageX ( ) , event . getStageY ( ) , event . getPointer ( ) , event . getButton ( ) ) ;
return true ;
case touchUp ... | Fixed longPress if mouse isn t moved |
<nb> public class AXmlResourceParser implements XmlResourceParser {
return m_strings . getString ( valueString ) ;
}
int valueData = m_attributes [ offset + ATTRIBUTE_IX_VALUE_DATA ] ;
- return STRING0 ; SINGLE
+ return TypedValue . coerceToString ( valueType , valueData ) ;
}
public boolean getAttribut... | returning non string values using TypedValue coerceToString |
<nb> public class AllColumns
prefix = Optional . empty ( ) ;
}
+ public AllColumns ( QualifiedName prefix )
+ {
+ this ( Optional . empty ( ) , prefix ) ;
+ }
+
public AllColumns ( NodeLocation location , QualifiedName prefix )
{
this ( Optional . of ( location ) , prefix ) ; | Add one constructor to AllColumns for hqltranslator usage |
<nb> public abstract class XLineBreakpointType < P extends XBreakpointProperties > exten
}
COMMENT
- COMMENT
- COMMENT
- public boolean canPutAt ( @ notnull VirtualFile file , int line ) {
- return false ;
- }
-
- COMMENT
COMMENT
COMMENT
public boolean canPutAt ( @ notnull VirtualFile file , i... | remove deprecated canPutAt |
<nb> import NAMESPACE ;
public abstract class OAbstractTransformer extends OAbstractETLPipelineComponent implements OTransformer {
@ override
public Object transform ( final Object input ) {
+ log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING0 + input ) ;
+
if ( input == null )
return null ;
if ( ! sk... | Supported logging of transformer s input and output |
<nb> public class NotificationDeleteConfirmation extends Activity {
AlertDialog alert = ( AlertDialog ) d ;
switch ( id ) {
case DIALOG_CONFIRM :
+ int messageCount = mMessageRefs . size ( ) ;
alert . setMessage ( getResources ( ) . getQuantityString (
- R . plurals . dialog_confirm_delete_message , mMessag... | Fix dialog message when deleting multiple messages from a notification |
<nb> public abstract class BaseQuickAdapter < T > extends RecyclerView . Adapter < RecyclerV
if ( mNextLoadEnable ) {
mLoadingMoreEnable = false ;
}
- notifyItemRangeChanged ( mData . size ( ) - newData . size ( ) , newData . size ( ) ) ;
+ notifyItemRangeChanged ( mData . size ( ) - newData . size ( ) + getH... | fix loadmore last item flashing |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added reference to thresholding resource |
<nb> public class WorkflowEvent {
String json = JSONUtil . readFile ( STRING0 ) ;
List < WorkflowEvent > events =
( List < WorkflowEvent > ) JSONUtil . readJson ( json , new TypeReference < List < WorkflowEvent > > ( ) { } ) ;
- for ( WorkflowEvent event : events ) {
- SINGLE
- }
+ SINGLE
+ SINGLE
+ S... | Resolves some java warnings |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.