diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BalloonImpl implements Balloon , IdeTooltip . Ui {
}
public boolean isAnimationEnabled ( ) {
- return myAnimationEnabl... | disable balloons animation for remote desktop sessions |
<nb> public class IndentingWriter extends Writer {
public void printIntAsDec ( int value ) throws IOException {
int bufferIndex = NUMBER0 ;
- boolean negative = value < NUMBER0 ;
+
+ if ( value < NUMBER0 ) {
+ value *= - NUMBER1 ;
+ write ( STRING0 ) ;
+ }
do {
int digit = value % NUMBER2 ;
<n... | Fix the printIntAsDec method in Indenting writer to correctly handle negative values |
<nb> public class PlayerActivity extends Activity implements SurfaceHolder . Callback ,
SINGLE
private SourceBuilder getSourceBuilder ( ) {
- String userAgent = Util . getUserAgent ( this , STRING0 ) ;
switch ( contentType ) {
case Util . TYPE_SS :
return new SmoothStreamingSourceBuilder ( dataSourceFacto... | Remove dead code |
<nb> public class DeepWaterParameters extends Model . Parameters {
}
public double _clip_gradient = FLOAT0 ;
- public boolean _gpu = false ;
+ public boolean _gpu = true ;
public int _device_id = NUMBER0 ;
public int [ ] _image_shape = new int [ ] { NUMBER0 , NUMBER0 } ; SINGLE
public int _channels = NU... | Make GPU the default |
<nb> class JpsJsModuleUtils {
Set < JpsLibrary > libraries = JpsUtils . getAllDependencies ( target ) . getLibraries ( ) ;
for ( JpsLibrary library : libraries ) {
for ( JpsLibraryRoot root : library . getRoots ( JpsOrderRootType . COMPILED ) ) {
- String path = JpsPathUtil . urlToOsPath ( root . getUrl ( ) ) ;... | Do not use a method that is not present in some versions fo JPS |
<nb> public class PartitionManager {
return EmitState . NO_EMITTED ;
}
Iterable < List < Object > > tups = KafkaUtils . generateTuples ( _spoutConfig , toEmit . msg ) ;
- if ( ( tups != null ) && tups . iterator . hasNext ( ) ) {
+ if ( ( tups != null ) && tups . iterator ( ) . hasNext ( ) ) {
if ( _spoutCo... | fixed typo in PartitionManager |
<nb> public class Requirements {
SINGLE
SINGLE
+ if ( XBinder . cServiceName . size ( ) != XBinder . cServiceDescriptor . size ( )
+ || XBinder . cServiceName . size ( ) != XBinder . cExceptionClassName . size ( ) )
+ sendSupportInfo ( STRING0 , context ) ;
+
Method listServices = clazz . getDeclaredMet... | Fixed and checking XBinder lists |
<nb> public class HorizontalScrollView extends FrameLayout {
super . scrollTo ( scrollX , scrollY ) ;
}
- if ( ! awakenScrollBars ( ) ) {
- invalidate ( ) ;
- }
+ awakenScrollBars ( ) ;
}
@ override
<nb> public class ScrollView extends FrameLayout {
super . scrollTo ( scrollX , scrollY ) ;
}
... | Put back invalidate optimization |
<nb> public class NotTranslator implements IInstructionTranslator {
SINGLE
final TranslationResult result = Helpers . translateOperand ( environment , offset , operand , true ) ;
-
+ instructions . addAll ( result . getInstructions ( ) ) ;
+
SINGLE
offset = baseOffset + instructions . size ( ) ; | Missed instructions in Not translator |
<nb> public abstract class DelimitedInputFormat < OT > extends FileInputFormat < OT > {
COMMENT
private static int MAX_SAMPLE_LEN ;
- static { loadGloablConfigParams ( ) ; }
+ static { loadGlobalConfigParams ( ) ; }
- protected static void loadGloablConfigParams ( ) {
+ protected static void loadGlobalC... | typo fix Fix typo in DelimitedInputFormat java |
<nb> public class JavaSpacePropertyProcessor extends PsiElementVisitor {
public void visitTypeParameter ( PsiTypeParameter classParameter ) {
createSpaceInCode ( true ) ;
}
+
+ public void visitDeclarationStatement ( PsiDeclarationStatement declarationStatement ) {
+ if ( myRole2 == ChildRole . COMMA ) {
... | Formatting comma in declaration statement |
<nb> final class WellKnownMutability {
. add ( STRING0 )
. add ( STRING1 )
. add ( STRING2 )
+ . add ( STRING3 )
. add ( STRING4 )
. add ( STRING5 )
. add ( STRING6 ) | Marking EnumValueDescriptor as immutable in WellKnownMutability |
<nb> public class DeepWaterModel extends Model < DeepWaterModel , DeepWaterParameters , Dee
}
@ override
- protected Frame predictScoreImpl ( Frame fr , Frame adaptFrm , String destination_key , Job j ) {
+ protected Frame predictScoreImpl ( Frame fr , Frame adaptFrm , String destination_key , Job j , boolean... | Fix more merge conflicts |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlockJUnit4ClassRunner extends ParentRunner < FrameworkMethod > {
@ override
protected void runChild ( final FrameworkMethod method , RunNotif... | simplified isIgnored check in Framework using it in |
<nb> public class DataFlowRunner {
for ( PsiClassInitializer initializer : nestedClass . getInitializers ( ) ) {
myNestedClosures . putValue ( initializer . getBody ( ) , closureState ) ;
}
+ for ( PsiField field : nestedClass . getFields ( ) ) {
+ myNestedClosures . putValue ( field , closureState ) ;
+ } ... | analyze inner class field initializers |
<nb> public abstract class AbstractGrailsPluginManager implements GrailsPluginManager
}
- @ override
public boolean isShutdown ( ) {
return shutdown ;
} | remove Override from interface method impl |
<nb> public class OrientJdbcPreparedStatementTest extends OrientJdbcBaseTest {
}
@ test
+ public void testExecuteUpdateReturnsNumberOfRowsDeleted ( ) throws Exception {
+ conn . createStatement ( ) . executeQuery ( STRING0 ) ;
+ conn . createStatement ( ) . executeQuery ( STRING1 ) ;
+ conn . createStatem... | Add test for DELETE |
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
public void setPadding ( int left , int top , int right , int bottom ) {
super . setPadding ( left , top , right , bottom ) ;
- if ( ( mPaddingLeft | mPaddingTop | mPaddingRight | mPaddingRight ) != NUMBER0 ) {
+ if ( ( mPad... | Correctly check bottom padding in setPadding |
<nb> public class SLRUMap < K , V > {
public void put ( K key , V value ) {
V oldValue = myProtectedQueue . remove ( key ) ;
if ( oldValue != null ) {
- onDropFromCache ( key , value ) ;
+ onDropFromCache ( key , oldValue ) ;
}
oldValue = myProbationalQueue . put ( getStableKey ( key ) , value ) ;
if ... | specify correct value for onDropFromCache when putting data |
<nb> public class NUXDialogFragment extends SherlockDialogFragment {
mFooterTextView . setText ( args . getString ( ARG_FOOTER ) ) ;
mImageView . setImageResource ( args . getInt ( ARG_IMAGE ) ) ;
- v . setClickable ( true ) ;
- v . setOnClickListener ( new View . OnClickListener ( ) {
+ View . OnClickListe... | make the NUX dialog button clickable |
<nb> public class GridLabelRenderer {
label = STRING0 ;
}
String [ ] lines = label . split ( STRING1 ) ;
+
+ SINGLE
int labelWidthAdj = NUMBER0 ;
if ( mStyles . horizontalLabelsAngle > FLOAT0 && mStyles . horizontalLabelsAngle <= NUMBER1 f ) {
Rect textBounds = new Rect ( ) ;
mPaintLabel . getTextBoun... | Fixed error in lining up angled labels |
<nb> public final class BluetoothGatt implements BluetoothProfile {
COMMENT
public static final int GATT_INVALID_ATTRIBUTE_LENGTH = NUMBER0 ;
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static final int GATT_CONNECTION_CONGESTED = NUMBER1 ;
COMMENT | Hide new congestion constant for now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OStatementCache {
COMMENT
public OStatementCache ( int size ) {
this . mapSize = size ;
- map = Collections . synchronizedMap ( new Linked... | Removed useless synchronised of map |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused imports from LuceneQueryTest |
<nb> public class RCompletionManager implements CompletionManager
}
} ) ;
}
- else if ( input_ . hasSelection ( ) )
+ else if ( ! input_ . isSelectionCollapsed ( ) )
{
switch ( c )
{ | only do delimiter replacement when there is a non empty selection |
<nb> public class CoreWorkload extends Workload
SINGLE
int keynum = transactioninsertkeysequence . nextInt ( ) ;
- String dbkey = buildKeyName ( keynum ) ;
+ try {
+ String dbkey = buildKeyName ( keynum ) ;
- HashMap < String , ByteIterator > values = buildValues ( dbkey ) ;
- db . insert ( table , db... | Put the acknowledgements into a finally |
<nb> public class GtkPreferredJComboboxRendererInspection extends BaseJavaLocalInspec
public void visitClass ( final PsiClass aClass ) {
final PsiClass superClass = aClass . getSuperClass ( ) ;
if ( superClass != null && STRING0 . equals ( superClass . getQualifiedName ( ) ) ) {
- holder . registerProblem ( sup... | Fix internal inspection to highlight correct psi element |
<nb> public class Raptor implements PathService {
RaptorState cur = states . get ( i ) ;
if ( cur . walkPath != null ) {
GraphPath path = new GraphPath ( cur . walkPath , false ) ;
+ Edge edge0 = path . edges . getLast ( ) ;
+ if ( edge0 . getToVertex ( ) != state . getVertex ( ) ) {
+ state = state . getBa... | fix bug reported by TriMet in arrive by trips |
<nb> public class DefaultIndex extends SonarIndex {
@ override
public List < Resource > getChildren ( Resource resource ) {
- return getChildren ( resource , false ) ;
- }
-
- public List < Resource > getChildren ( Resource resource , boolean acceptExcluded ) {
List < Resource > children = Lists . newLi... | Fix quality flaw |
<nb> public class NettyConnectionsPool implements ConnectionsPool < String , Channel > {
this . sslConnectionPoolEnabled = sslConnectionPoolEnabled ;
this . maxIdleTime = maxIdleTime ;
this . maxConnectionLifeTimeInMs = maxConnectionLifeTimeInMs ;
- this . idleConnectionDetector . schedule ( new IdleChannelDete... | Fix NPE in NettyConnectionsPool |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
public float getPercentageTombstonesPerLastRead ( )
{
long total = metric . tombstoneScannedHistogram . count ( ) + metric . liveScannedHistogram . count ( ) ;
- return ( metric . tombstoneScannedHistogram . count ( ) / total ) ;
+ return (... | use floating pt math for percentages |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderPostListFragment extends Fragment {
COMMENT
COMMENT
COMMENT
+ @ suppresslint ( STRING0 )
private void animateHeader ( ) {
new Handler ( ) . postDe... | Added SuppressLint NewApi |
<nb> public class ASTddply extends ASTOp {
private void go ( ) {
Futures fs = new Futures ( ) ;
for ( int i = NUMBER0 ; i < _frameKeys . length ; ++ i ) {
- assert DKV . getGet ( _frameKeys [ i ] ) != null : STRING0 + _frameKeys [ i ] ;
+ assert DKV . getGet ( _frameKeys [ i ] ) != null : STRING1 + i + STRING... | improve assertion error fail message |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class VerificationModeImpl implements VerificationMode {
return STRING0 + wantedInvocationCount + STRING1 + mocksToBeVerifiedInOrder ;
}
- @ override
public void verify ( List < Inv... | fixing the build |
<nb> class Slurper implements Runnable {
return null ;
}
- int options = Bytes . QUERYOPTION_TAILABLE | Bytes . QUERYOPTION_AWAITDATA | Bytes . QUERYOPTION_NOTIMEOUT ;
-
+ int options = Bytes . QUERYOPTION_TAILABLE | Bytes . QUERYOPTION_AWAITDATA | Bytes . QUERYOPTION_NOTIMEOUT
SINGLE
SINGLE
- if ( in... | Always use Bytes QUERYOPTION_OPLOGREPLAY for oplog cursor |
<nb> public class EnglishWordRepeatRule extends WordRepeatRule {
if ( wordRepetitionOf ( STRING0 , tokens , position ) ) {
return true ; SINGLE
}
+ if ( wordRepetitionOf ( STRING1 , tokens , position ) ) {
+ return true ; SINGLE
+ }
return false ;
} | en avoid false alarm for Homo sapiens sapiens |
<nb> public class Ringtone {
private boolean playFallbackRingtone ( ) {
if ( mAudioManager . getStreamVolume ( mStreamType ) != NUMBER0 ) {
int ringtoneType = RingtoneManager . getDefaultType ( mUri ) ;
- if ( ringtoneType != - NUMBER1 &&
+ if ( ringtoneType == - NUMBER1 ||
RingtoneManager . getActualDefaul... | Fix logic in fallback ringtone handling |
<nb> public class HeadsUpManager implements ViewTreeObserver . OnComputeInternalInsetsL
} else if ( ! selfFullscreen && otherFullscreen ) {
return NUMBER0 ;
}
+
+ if ( remoteInputActive && ! o . remoteInputActive ) {
+ return - NUMBER0 ;
+ } else if ( ! remoteInputActive && o . remoteInputActive ) {
+ r... | Keep HUNs that have an active remote input |
<nb> public class OStorageConfiguration implements OSerializableStream {
private transient OStorage storage ;
private transient byte [ ] record ;
- private static final int FIXED_CONFIG_SIZE = NUMBER0 ;
+ private static final int FIXED_CONFIG_SIZE = NUMBER1 ;
public OStorageConfiguration load ( ) throws O... | Fixed issue reported by Konrad about fixed size of cfg with large db structure hundreds of files |
<nb> public class GraphBuilderTask implements Runnable {
private boolean _alwaysRebuild = true ;
private List < RoutingRequest > _modeList ;
-
- private double _contractionFactor = FLOAT0 ;
private String _baseGraph = null ;
<nb> public class GraphBuilderTask implements Runnable {
public void setMod... | Delete unused contraction factor from GraphBuilderTask |
<nb> public class Drawer {
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Drawer withDisplayBelowToolbar ( boolean displayBelowToolbar ) {
+ this . mTranslucentStatusBar = displayBelowToolbar ;
+ return this ;
+ }
+
SINGLE
protected Toolb... | add synonym method if you want to display the drawer below the toolbar |
<nb> static class DefExpr implements Expr {
boolean isDynamic = RT . booleanCast ( RT . get ( mm , dynamicKey ) ) ;
if ( isDynamic )
v . setDynamic ( ) ;
- if ( ! isDynamic && sym . name . startsWith ( STRING0 ) && sym . name . endsWith ( STRING0 ) && sym . name . length ( ) > NUMBER0 )
+ if ( ! isDynamic && ... | Extend length of symbol detection |
<nb> public class WsServerContainer extends WsWebSocketContainer
EnumSet < DispatcherType > types = EnumSet . of ( DispatcherType . REQUEST ,
DispatcherType . FORWARD ) ;
- fr . addMappingForUrlPatterns ( types , false , STRING0 ) ;
+ fr . addMappingForUrlPatterns ( types , true , STRING0 ) ;
} | Match after to allow app filters to examine modify the request |
<nb> public class GroovyShell extends GroovyObjectSupport {
}
} ) ;
Class scriptClass = parseClass ( gcs ) ;
- return InvokerHelper . invokeMethod ( scriptClass , STRING0 , new Object [ ] { args } ) ;
+ if ( isUnitTestCase ( scriptClass ) ) {
+ runTest ( scriptClass ) ;
+ return null ;
+ }
+ else {
... | Added the ability to run unit tests also in the run method which takes an input stream |
<nb> public class Platform {
System . err . println ( STRING0 +
jarFolder . getAbsolutePath ( ) +
STRING1 ) ;
- processingRoot = new File ( System . getProperty ( STRING2 ) ) ;
+ final String userDir = System . getProperty ( STRING2 ) ;
+ processingRoot = new File ( PApplet . urlDecode ( userDir ) ) ;
}
... | Fix a bug that makes Processing fail during startup when the user s home |
<nb> public class Symbol implements Serializable {
return symbol ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public boolean equals ( final Object o ) {
if ( this == o ) {
<nb> public class Symbol implements Serializable {
return symbol . hashCode ( ) ;
}
... | Tidying up javascript in BSON |
<nb> import NAMESPACE ;
COMMENT
public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOMExternalizable , ExportableApplicationComponent {
private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
- private static final int VERSION = NUMBER0 ;
+ private static final int VERSIO... | a couple more standard ignore patterns |
<nb> public class StatementFusion extends AbstractPeepholeOptimization {
SINGLE
return last . hasChildren ( ) ;
case Token . FOR :
- return NodeUtil . isForIn ( last ) ;
+ return NodeUtil . isForIn ( last ) &&
+ SINGLE
+ ! NodeUtil . mayHaveSideEffects ( last . getFirstChild ( ) ) ;
}
return false ;... | Don t change side effect ordering when merging into FOR IN |
<nb> public class MorphaAnnotator implements Annotator {
for ( CoreLabel token : tokens ) {
String text = token . get ( CoreAnnotations . TextAnnotation . class ) ;
String posTag = token . get ( CoreAnnotations . PartOfSpeechAnnotation . class ) ;
- this . addLemma ( morphology , CoreAnnotations . LemmaAnnotati... | User suggested patch for MorphaAnnotator |
<nb> public class IconicsDrawable extends Drawable {
COMMENT
+ COMMENT
+ COMMENT
+ public int getColor ( ) {
+ return mIconColor ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getContourColor ( ) {
+ return mContourColor ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public int getB... | add new getters suggested by fmeneuhe |
<nb> public interface FileDownloader {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ nullable
List < VirtualFile > downloadFilesWithProgress ( @ nullable String targetDirectoryPath , @ nullable Project project , @ nullable JComponent parentComponent ) ; | Fix typo in FileDownloader javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FlatWelcomeFrame extends JFrame implements WelcomeFrameProvider , Id
@ override
public IdeFrame createFrame ( ) {
- ret... | disable new welcome for all except appcode and intellij |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public final class LocalTachyonMaster {
SINGLE
+ private static Random sRandomGenerator = new Random ( ) ;
+
private final Stri... | Using a random number instead of a timestamp |
<nb> public class AsyncTwitterTest extends TestCase implements TwitterListener {
}
public void testGetFriends ( ) throws Exception {
+ twitterAPI2 . createFriendship ( id1 ) ;
twitterAPI1 . getFriendsAsync ( id2 , this ) ;
waitForResponse ( ) ;
boolean found = false ; | ensuring id2 follows id1 |
<nb> public abstract class AbstractMemoryHttpData extends AbstractHttpData {
@ override
public void delete ( ) {
- SINGLE
+ if ( byteBuf != null ) {
+ byteBuf . release ( ) ;
+ byteBuf = null ;
+ }
}
@ override | Fix buffer leak in AbstractMemoryHttpData |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultXmlExtension extends XmlExtension {
final XmlAttributeValue value = xmlAttribute . getValueElement ( ) ;
assert value != null ;
final int startOffset =... | create namespace declaration quickfix does not scroll editor |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class MockFilterChain extends TestCase implements Filte... | MockFilterChain extended TestCase but had no public constructor and no test methods |
<nb> public class ProcessStats {
}
final public float getTotalCpuPercent ( ) {
- return ( ( float ) ( mRelUserTime + mRelSystemTime + mRelIrqTime ) * NUMBER0 )
- / ( mRelUserTime + mRelSystemTime + mRelIrqTime + mRelIdleTime ) ;
+ int denom = mRelUserTime + mRelSystemTime + mRelIrqTime + mRelIdleTime ;
+ ... | Fix some divide by zero errors that could crash the system |
<nb> public class JetStandardClasses {
parameters . add ( typeParameterDescriptor ) ;
PropertyDescriptor propertyDescriptor = new PropertyDescriptor ( classDescriptor , Collections . < AnnotationDescriptor > emptyList ( ) , Modality . FINAL , Visibility . PUBLIC , false , false , STRING0 + ( j + NUMBER0 ) ) ;
pro... | specify return type of Tuple property getters |
<nb> public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > {
try {
uri = URI . create ( url ) . toURL ( ) . toString ( ) ;
} catch ( Throwable e ) {
- throw new IllegalStateException ( STRING0 + url , e ) ;
+ throw new IllegalArgumentException ( STRING0 + url , e ) ;
}
if ( que... | Throw an IllegalArgumentException instead to match the URI class |
<nb> public class CommentDetailFragment extends Fragment implements NotificationFragm
ReaderAnim . animateLikeButton ( mBtnLikeIcon , mBtnLikeComment . isActivated ( ) ) ;
+ SINGLE
+ AnalyticsTracker . track ( mBtnLikeComment . isActivated ( ) ? Stat . NOTIFICATION_LIKED : Stat . NOTIFICATION_UNLIKED ) ;
+ ... | Bump analytics for comments |
<nb> public class Application implements SystemListener {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setTimer ( Timer timer ) {
+ this . timer = timer ;
+
+ if ( timer != null ) {
+ timer . reset ( ) ;
+ }
+
+ if ( renderManager != null ) {
+ renderManager . se... | Added a setTimer method for switching the default |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
public void run ( )
{
SpeculativeRetry retryPolicy = ColumnFamilyStore . this . metadata . getSpeculativeRetry ( ) ;
- logger . debug ( STRING0 , retryPolicy . value ) ;
+ logger . debug ( STRING1 , name , retryPolicy . value ) ;
switch (... | add CF name to log message |
<nb> public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
private void addContentDispositionHeader ( ServletServerHttpRequest reques... | Skip Content Disposition header if status |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NNParser
System . out . println ( CONST . SEPARATOR ) ;
System . out . println ( STRING0 + modelFile ) ;
String s ;
- BufferedReader input... | Use IOUtils to load model file |
<nb> public class Metadata {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static class Headers extends Metadata {
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public Headers ( ) {
- }
- }
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMEN... | Remove Metadata Headers and Metadata Trailers |
<nb> class DockObserver extends UEventObserver {
try {
int newState = Integer . parseInt ( event . get ( STRING0 ) ) ;
if ( newState != mDockState ) {
+ int oldState = mDockState ;
mDockState = newState ;
if ( mSystemReady ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( oldState != Intent . EXTRA_DOCK_STATE_D... | Do not force screen on when undocking from the desk dock |
<nb> public class Transformer implements ClassFileTransformer
final MethodNode continued = new MethodNode ( Opcodes . ACC_PRIVATE | ACC_STATIC ,
original . name , original . desc , original . signature , ( String [ ] ) original . exceptions . toArray ( new String [ original . exceptions . size ( ) ] ) ) ;
- Str... | prefixing the async continuation method with async |
<nb> public class FormatProcessor {
BlockAlignmentProcessor . Context context = new BlockAlignmentProcessor . Context (
myDocument , alignment , myCurrentBlock , myAlignmentMappings , myBackwardShiftedAlignedBlocks ,
- getIndentOptionsToUse ( myCurrentBlock , myDefaultIndentOption ) , myRightMargin
+ getInden... | Increase a possible right margin when aligning to CodeStyleSettings MAX_RIGHT_MARGIN |
<nb> public final class SqlStageExecution
}
schedulingComplete . set ( DateTime . now ( ) ) ;
- stageState . set ( StageState . SCHEDULED ) ;
+ stageState . compareAndSet ( StageState . SCHEDULING , StageState . SCHEDULED ) ;
SINGLE
updateNewExchangesAndBuffers ( true ) ; | Fix task leak due to race condition |
<nb> public class StatisticsModelImpl implements StatisticsModel {
public boolean isRunning ( StatisticsUI statisticsUI ) {
for ( Statistics s : runningList . toArray ( new Statistics [ NUMBER0 ] ) ) {
- if ( statisticsUI . getStatisticsClass ( ) . equals ( s ) ) {
+ if ( statisticsUI . getStatisticsClass ( )... | Fix StatisticsModel implementation with running list |
<nb> public class InspectionProfileImpl implements InspectionProfile . ModifiableModel ,
private void copyToolsConfigurations ( InspectionProfileImpl profile ) {
try {
if ( ! profile . myTools . isEmpty ( ) ) {
- final Project project = DummyProject . getInstance ( ) ; SINGLE
+ final InspectionTool tool = pro... | get right project |
<nb> import NAMESPACE ;
import NAMESPACE ;
public final class SiteSettingsTable {
- public static final String SETTINGS_TABLE_NAME = STRING0 ;
+ public static final String SETTINGS_TABLE_NAME = STRING1 ;
public static final String ID_COLUMN_NAME = STRING2 ;
public static final String ADDRESS_COLUMN_NAME... | Fixing SQL syntax |
<nb> public class AsyncHttpResponseHandler {
}
}
- public Boolean getForceSynchronous ( ) {
- return ( forceSynchronous ) ;
- }
-
public void setForceSynchronous ( Boolean value ) {
forceSynchronous = value ;
}
<nb> public class AsyncHttpResponseHandler {
onFailure ( statusCode , headers , respo... | removed redundant methods |
<nb> public class ShowInfoFragment extends SherlockFragment implements LoaderCallback
SINGLE
final ImageView poster = ( ImageView ) getView ( ) . findViewById ( R . id . ImageViewShowInfoPoster ) ;
ImageProvider . getInstance ( getActivity ( ) ) . loadImage ( poster , mShow . getPoster ( ) , false ) ;
- Utils .... | For now don t set a background in show info |
<nb> public class PyPackageManagementService extends PackageManagementService {
final String cause = stdoutCause != null ? stdoutCause : stderrCause ;
final String message = cause != null ? cause : ee . getMessage ( ) ;
final String command = ee . getCommand ( ) + STRING0 + StringUtil . join ( ee . getArgs ( ) , ... | Put stderr after stdout in the packaging error message text |
<nb> public class RequestSpecBuilder {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- public RequestSpecBuilder setKeyStore ( KeyStore trustStore ) {
- spec . keyStore ( trustStore ) ... | Fixed typos in javadoc |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- i... | Allow mapping to a standard Ldap UserDetails through the namespace |
<nb> public class WatchRunner implements WatchOperationListener {
cliOutputStream . close ( ) ;
}
catch ( Exception e ) {
- logger . log ( Level . WARNING , STRING0 + e ) ;
- e . printStackTrace ( ) ;
+ logger . log ( Level . WARNING , STRING0 + e , e ) ;
eventBus . post ( new BadRequestResponse ( cliRequ... | Formatting new lines |
<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara
annotations . put ( STRING0 , new Pair ( STRING1 , new MarkConjTypeFunction ( ) ) ) ;
SINGLE
- annotations . put ( STRING2 , new Pair ( STRING3 ,
+ annotations . put ( STRING2 , new Pair ( STRING4 ,
new SimpleStringFunctio... | Try markPronounNPs on both SN and grup nom |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface Cache {
String getId ( ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- int getSize ( ) ;... | Do not deprecate getReadWriteLock just add to the docs that it is not |
<nb> public class FunctionType {
Map < String , JSType > typeMap = concreteTypes ;
if ( typeParameters != null ) {
ImmutableMap . Builder < String , JSType > builder = ImmutableMap . builder ( ) ;
- for ( String typeParam : concreteTypes . keySet ( ) ) {
- if ( ! typeParameters . contains ( typeParam ) ) {
... | Convert final entryset capable loop |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class BasicDRPCTopology {
public static class ExclaimBolt extends BaseBasicBolt {
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT... | Fix links to documentation in Javadoc |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ; ... | Added missing license header |
<nb> public class ShadowView {
public void clearAnimation ( ) {
if ( animation != null ) {
animation . cancel ( ) ;
+ animation = null ;
}
} | set animation to null when clear animation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ suite.suiteclasses ( { PathNodeTest . class ,
MvcBaseTest . class ,
BufferRingTest . class ,
- UploadingUnitTest . class } )
+ ... | Attach the JsonAdaptorTest to AllMvc |
<nb> public class DelaunayTriangulatorTest extends GdxTest {
}
void triangulate ( ) {
- seed = NUMBER0 ;
+ SINGLE
MathUtils . random . setSeed ( seed ) ;
int pointCount = NUMBER1 ; | Removed test seed |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JpsCompilerConfigurationTest extends JpsSerializationTestCase {
ProcessorConfigProfile defaultProfile = configuration . getDefaultAnnotationProcessingConfiguration ( ) ;
assertTrue ... | fixed tests on Windows |
<nb> public class HeliosSoloDeployment implements HeliosDeployment {
@ visiblefortesting
protected void undeployLeftoverJobs ( ) {
try {
- SINGLE
+ SINGLE
+ SINGLE
SINGLE
final Map < JobId , Job > jobs = heliosClient . jobs ( ) . get ( ) ;
if ( jobs . size ( ) > NUMBER0 ) {
- log . info ( STRING0 + ... | Remove mentions of TempJobs in logging |
<nb> public class FakeHttpRawMessageGenerator {
final Message msg = new Message ( shortMessage ( ingestTime , state . method , state . resource , httpCode , tookMs ) , state . source , Tools . iso8601 ( ) ) ;
msg . addFields ( ingestTimeFields ( ingestTime ) ) ;
msg . addFields ( resourceFields ( resource ) ) ;
... | Add ticks for event deduplication in FakeHttpRawMessageGenerator |
<nb> public class Groovy extends Task {
append ) ) ) ;
}
- SINGLE
- if ( command == null ) {
+ SINGLE
+ SINGLE
+ if ( command == null || command . trim ( ) . length ( ) == NUMBER0 ) {
command = getText ( new BufferedReader ( new FileReader ( srcFile ) ) ) ;
}
+
+
if ( command != null ) {
exe... | added src attribute to specify a groovy source file to the groovy ant task |
<nb> public class HtmlConverter {
SINGLE
text = text . replaceAll ( STRING0 , STRING1 ) ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- text = text . replaceAll ( STRING2 , STRING3 ) ;
-
- SINGLE
- text = text . replaceAll ( STRING4 , STRING5 ) ;
-
StringBuffer sb = new Str... | Eliminate non working text replacements |
<nb> public class DbCreationTest extends ObjectDBBaseTest {
@ afterclass
@ override
public void afterClass ( ) throws Exception {
+ pool . close ( ) ;
}
@ beforemethod
<nb> public class DbCreationTest extends ObjectDBBaseTest {
ODatabaseHelper . createDatabase ( db , url , getStorageType ( ) ) ;
... | fixed missig pool close from db creation tests |
<nb> public class PyTestCreator implements TestCreator {
fileText . append ( STRING0 ) ;
for ( String method : methods ) {
- fileText . append ( STRING1 ) . append ( method ) . append ( STRING2 ) ;
+ fileText . append ( STRING1 ) . append ( method ) . append ( STRING3 ) ;
}
PsiFile psiFile = PyUtil . ge... | test creator should use tabs instead of all spaces |
<nb> public class ToggleDrawable extends Drawable {
mSize = typedArray . getDimensionPixelSize ( R . styleable . ToggleDrawable_td_drawableSize , NUMBER0 ) ;
mStrokeWidth = typedArray . getDimension ( R . styleable . ToggleDrawable_td_stroke , NUMBER0 ) ;
mSpin = typedArray . getBoolean ( R . styleable . ToggleDr... | Recycle TypedArray after use |
<nb> public final class Bootstrap {
SINGLE
try {
- URL url = new URL ( repository ) ;
+ new URL ( repository ) ;
repositoryLocations . add ( repository ) ;
repositoryTypes . add ( ClassLoaderFactory . IS_URL ) ;
continue ; | Trivial fix an Eclipse warning |
<nb> public class AtmosphereFramework implements ServletContextProvider {
}
for ( String i : broadcasterFilters ) {
- if ( i . getClass ( ) . equals ( TrackMessageSizeFilter . class . getName ( ) ) ) {
+ if ( i . equals ( TrackMessageSizeFilter . class . getName ( ) ) ) {
found = true ;
}
} | Fix logging typo |
<nb> public class ReflectionUtils {
Type [ ] gpTypes = methodToFind . getGenericParameterTypes ( ) ;
methodLoop:
for ( Method method : cls . getMethods ( ) ) {
- if ( ! method . getName ( ) . equals ( methodToSearch ) || ! method . getReturnType ( ) . isAssignableFrom ( methodToFind . getReturnType ( ) ) ) {
... | Fix IndexOutOfBoundsException in ReflectionUtils |
<nb> public class HlsChunkSource {
if ( chunkUri . getLastPathSegment ( ) . endsWith ( AAC_FILE_EXTENSION ) ) {
Extractor extractor = new AdtsExtractor ( startTimeUs ) ;
extractorWrapper = new HlsExtractorWrapper ( trigger , format , startTimeUs , extractor ,
- switchingVariantSpliced , adaptiveMaxWidth , adapt... | Don t pass maxWidth Height for non video streams |
<nb> public class XContentFactory {
public static XContent xContent ( byte [ ] data , int offset , int length ) {
XContentType type = xContentType ( data , offset , length ) ;
if ( type == null ) {
- throw new ElasticSearchParseException ( STRING0 + Arrays . toString ( data ) ) ;
+ throw new ElasticSearchPars... | add more info on failure to derive xcontent |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.