diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class SeriesTree extends LibraryTree { SeriesTree ( IBookCollection collection , String series , Author author ) { super ( collection ) ; - String language = STRING0 ; + String language = collection . booksForSeries ( series ) . get ( NUMBER0 ) . getLanguage ( ) ; Series = new Title ( seri...
Defined language for series
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class HiveConnectorFactory new HiveClientModule ( connectorId , metastore , typeManager , pageIndexerFactory ) , ...
Rename Hive access control none to allow all
<nb> public class ReportPanel extends javax . swing . JPanel { initComponents ( ) ; initIcons ( ) ; initProcessors ( ) ; + initProcessorsUI ( ) ; } } ) ; } catch ( InterruptedException ex ) { <nb> public class ReportPanel extends javax . swing . JPanel { public void setData ( Report report , Contain...
Fix non EDT execution issue in DesktopImport
<nb> public class AutoCompleteTextView extends EditText implements Filter . FilterListe int position , long id ) { if ( position != - NUMBER0 ) { - mDropDownList . mListSelectionHidden = false ; + DropDownListView dropDownList = mDropDownList ; + + if ( dropDownList != null ) { + dropDownList . mListSel...
Add a null check in an AutoCompleteTextView callback to prevent a crash
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ResolveSession implements KotlinCodeAnalyzer , LazyClassContext { @ override @ notnull public DeclarationDescriptor resolveToDescriptor ( @ notnull KtDeclaration declaration ) { + if ( ! areDescriptorsCreatedForDeclaration ...
Throw ISE earlier on passing certain types of declaration to ResolveSession resolveToDescriptor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TabbedShowHistoryForRevisionAction extends DumbAwareAction { CommittedChangeList changeList = ( CommittedChangeList ) event ....
remove unused variable
<nb> public class PredicateParser { } while ( ! next . token . equals ( endChar ) ) { Token equals = tokens . poll ( ) ; + if ( equals == null ) { + throw error ( string , string . length ( ) , STRING0 ) ; + } if ( ! equals . token . equals ( STRING1 ) ) { if ( equals . token . equals ( endChar ) && val...
Improve predicate language error message
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface Server { COMMENT COMMENT public Logger getLogger ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + ...
Added Server getPluginCommand
<nb> public class IOSApplication implements Application { return graphics . viewController ; } + COMMENT + COMMENT + COMMENT + COMMENT + public UIWindow getUIWindow ( ) { + return uiWindow ; + } + COMMENT COMMENT COMMENT
add get window method to IOSApplocation
<nb> public class EvaluatorBuilderImpl implements EvaluatorBuilder { } if ( qualifier instanceof PsiReferenceExpression && ( ( PsiReferenceExpression ) qualifier ) . resolve ( ) instanceof PsiClass ) { - SINGLE - if ( contextClass == null && type == null ) { - throwEvaluateException ( DebuggerBundle . messa...
avoid unknown class in quick eval
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConstrainedPropertyBuilder extends BuilderSupport { } } + @ override + public Object getProperty ( String property ) { + try { + ret...
fixes some failing tests
<nb> class XMLSerializer extends AbstractSerializer { myBook . addUidWithNoCheck ( uid ) ; } myBook . setSeriesInfoWithNoCheck ( string ( mySeriesTitle ) , string ( mySeriesIndex ) ) ; + myBook . setProgressWithNoCheck ( myProgress ) ; myBook . HasBookmark = myHasBookmark ; }
set book progress from XMLSerializer
<nb> public abstract class ConfigException extends RuntimeException implements Serial public String problem ( ) { return problem ; } + + @ override + public String toString ( ) { + return STRING0 + path + STRING1 + origin + STRING1 + problem + STRING2 ; + } } COMMENT
Add useful toString to ConfigException ValidationProblem
<nb> public class DeepWaterTest extends TestUtil { br . close ( ) ; FileWriter fw = new FileWriter ( path + STRING0 ) ; - int batch_size = NUMBER0 ; SINGLE + int batch_size = NUMBER1 ; SINGLE ImageIter img_iter = new ImageIter ( test_data , test_labels , batch_size , NUMBER2 , NUMBER2 ) ; fw . write ( STR...
Use the same batch size for testing
<nb> public final class Job < T extends Keyed > extends Keyed < Job > { return jobs ; } + COMMENT + COMMENT + public static Job [ ] jobsUserVisible ( ) { + Job [ ] jobs = jobs ( ) , jobsUserVisible = new Job [ jobs . length ] ; + int i = NUMBER0 ; + for ( Job j : jobs ) + if ( j . _result . user_all...
Add a new method Job jobsUserVisible that only returns user visible jobs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class FilterWithCustomIntent extends Filter { <nb> public class FilterWithCustomIntent extends Filter { public void start ( Context context ) { Intent intent = new Intent ( ) ; - intent . putExtra ( TaskLis...
Fixed issue with AstridApi referencing astrid project
<nb> public class Application implements ApplicationEventHandlers commands_ . zoomOut ( ) . remove ( ) ; } - SINGLE + SINGLE if ( NodeWebkit . isNodeWebkit ( ) ) + { + SINGLE + commands_ . uploadFile ( ) . remove ( ) ; + commands_ . exportFiles ( ) . remove ( ) ; + commands_ . updateCredentials ( ...
disable selected commands for node webkit
<nb> public class TexturePacker2 { } COMMENT - static class Page { + public static class Page { public String imageName ; public Array < Rect > outputRects , remainingRects ; public float occupancy ; <nb> public class TexturePacker2 { } COMMENT - static class Rect { + public static class Rec...
Make Page and Rect public to allow reuse and extension
<nb> import NAMESPACE ; public class Legend { public enum LegendPosition { - RIGHT_OF_CHART , RIGHT_OF_CHART_CENTER , BELOW_CHART_LEFT , BELOW_CHART_RIGHT , BELOW_CHART_CENTER , PIECHART_CENTER + RIGHT_OF_CHART , RIGHT_OF_CHART_CENTER , BELOW_CHART_LEFT , BELOW_CHART_RIGHT , BELOW_CHART_CENTER , PIECHART_CENT...
Added NONE to LegendPosition
<nb> public class MailUtil { try { MailSessionLock . getInstance ( ) . lock ( ses . getId ( ) ) ; + String lastFolderName = getFolderName ( ses ) ; + IMAPFolder folder = null ; if ( send ) { <nb> public class MailUtil { folder . expunge ( ) ; } + + SINGLE + + _closeFolder ( ses ) ; + ...
Fix exception in unclear folder data
<nb> public class RedisClient extends DB { public int read ( String table , String key , Set < String > fields , HashMap < String , ByteIterator > result ) { if ( fields == null ) { - StringByteIteartor . putAllAsByteIterators ( result , jedis . hgetAll ( key ) ) ; + StringByteIterator . putAllAsByteIterators...
Fixed typo in RedisClient
<nb> public class XMLWriter < T > { public static < T > String writeXML ( T object , Class < T > type ) throws Exception { JAXBContext context = JAXBContext . newInstance ( type ) ; Marshaller marshaller = context . createMarshaller ( ) ; + marshaller . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , Boolean...
Adding pretty print to XML output
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unnecessary import
<nb> public final class EngineConfig { private volatile boolean compoundOnFlush = true ; private long gcDeletesInMillis = DEFAULT_GC_DELETES . millis ( ) ; private volatile boolean enableGcDeletes = true ; - private final TimeValue flushMergesAfter = TimeValue . timeValueMinutes ( NUMBER0 ) ; + private final ...
Use actual parameter passed to the ctor
<nb> public abstract class AbstractClassTypeConstructor implements TypeConstructor { public static boolean equals ( @ notnull TypeConstructor me , Object other ) { if ( ! ( other instanceof TypeConstructor ) ) return false ; + SINGLE + if ( other . hashCode ( ) != me . hashCode ( ) ) return false ; + Clas...
Optimized equals method for TypeConstructor
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface Node extends PropertyContainer { <nb> public interface Node extends PropertyContainer COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface No...
Made a note about id reuse
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; ...
inject inspection colors dynamically into pages that implement InspectionColorSettingsPage
<nb> public class Jsonschema2PojoTaskIT { String documentation = FileUtils . readFileToString ( new File ( STRING0 ) ) ; for ( Field f : Jsonschema2PojoTask . class . getDeclaredFields ( ) ) { - assertThat ( documentation , containsString ( f . getName ( ) ) ) ; + assertThat ( documentation , containsString (...
improve ant documentation test
<nb> public abstract class OneToOneEncoder implements ChannelDownstreamHandler { } MessageEvent e = ( MessageEvent ) evt ; - write ( ctx , e . getFuture ( ) , - encode ( ctx , e . getChannel ( ) , e . getMessage ( ) ) , - e . getRemoteAddress ( ) ) ; + Object originalMessage = e . getMessage ( ) ; + Obj...
Suppressed unnecessary event object creation in OneToOneEncoder
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BaseDialog extends AlertDialog { . inject ( this ) ; setCancelable ( true ) ; setCanceledOnTouchOutside ( true ) ; + setOnCancelListener ...
Restore opened menu on canceling a dialog
<nb> public class BasicMapTest extends HazelcastTestSupport { } @ test - SINGLE public void testPutAllBackup ( ) { int size = NUMBER0 ; <nb> public class BasicMapTest extends HazelcastTestSupport { } @ test - SINGLE public void testPutAllTooManyEntriesWithBackup ( ) { int size = NUMBER1 ; ...
Fixed testPutAllBackup and testPutAllTooManyEntriesWithBackup in BasicMapTest when run in parallel
<nb> public class LocalIndexesActivity extends OsmandExpandableListActivity { final List < Integer > menu = new ArrayList < Integer > ( ) ; if ( info . getType ( ) == LocalIndexType . GPX_DATA ) { menu . add ( R . string . show_gpx_route ) ; - SINGLE + if ( OsmandPlugin . getEnabledPlugin ( OsmEditingPlugin ....
Fix bugs send osm
<nb> public class CacheRemoveBackupOperation public void run ( ) throws Exception { if ( cache != null ) { - response = cache . remove ( key , null ) ; + response = cache . removeRecord ( key ) ; } else { response = Boolean . FALSE ; }
remove backup firing event case fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> final class TransactionImpl implements Transaction , TransactionSupport { if ( transactionLog instanceof KeyAwareTransactionLog ) { KeyAwareT...
fixes full traversal of txLogs unnecessarily
<nb> public class CompileDriver { compileTask . start ( new Runnable ( ) { public void run ( ) { try { + if ( myProject . isDisposed ( ) ) { + return ; + } if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( STRING0 ) ; }
skip compile task on disposed projects
<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 ; COMMENT COMMENT ...
Fix current mixin examples so they compile
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ApplicationConfigurationType implements LocatableConfigurationType if ( PsiMethodUtil . findMainInClass ( aClass ) != null ) ...
try to find main method everywhere in java file
<nb> import NAMESPACE ; COMMENT public class LogUtil { public static String TAG = STRING0 ; SINGLE + public static boolean AVIAN_LIBRARY = false ; private static class OsmandLogImplementation implements Log { private final String fullName ; <nb> public class NativeOsmandLibrary extends NativeLibrary { ...
Add avian support
<nb> public class EventSourceServletTest Assert . assertEquals ( STRING0 + data , received ) ; socket . close ( ) ; - Assert . assertTrue ( closeLatch . await ( heartBeatPeriod * NUMBER0 , TimeUnit . SECONDS ) ) ; + Assert . assertTrue ( closeLatch . await ( heartBeatPeriod * NUMBER1 , TimeUnit . SECONDS ) ) ...
open up the close latch await to combat test failing timing issues
<nb> public class JavaParameterTableModel extends ParameterTableModelBase < ParameterIn PsiElementFactory f = JavaPsiFacade . getInstance ( myProject ) . getElementFactory ( ) ; final PsiTypeCodeFragment paramTypeCodeFragment = f . createTypeCodeFragment ( parameterInfo . getTypeText ( ) , myTypeContext , false ,...
fix regression don t lose implicit imports when resolving parameter type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMES...
Removed some unused imports
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT - public final class DestructiveOperations implements NodeSettingsService . Listener { + public final class DestructiveOp...
Extend AbstractComponent and remove logger
<nb> public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca } ) ; } + if ( getMyApplication ( ) . getFavorites ( ) . getFavouritePoints ( ) . size ( ) > NUMBER0 ) { + getLocationProvider ( ) . addCompassListener ( this ) ; + getLocationProvider ( ) . registerOrUnregisterCompassList...
Try fix issue of Favorites card not reliably appearing upon app start
<nb> public class AstyanaxStoreManager extends AbstractCassandraStoreManager { @ override public Deployment getDeployment ( ) { - SINGLE - SINGLE + return Deployment . REMOTE ; SINGLE } @ override
Make Astyanax always assume Deployment REMOTE
<nb> public class StorageData { pathMacroSubstitutor . expandPaths ( rootElement ) ; } - for ( Element element : rootElement . getChildren ( COMPONENT ) ) { + for ( Iterator < Element > iterator = rootElement . getChildren ( COMPONENT ) . iterator ( ) ; iterator . hasNext ( ) ; ) { + Element element = itera...
restore delete on add to component state we should detach element
<nb> public class RestXContentBuilder { } else { XContentType contentType = XContentFactory . xContentType ( source , offset , length ) ; if ( contentType == builder . contentType ( ) ) { - builder . rawField ( STRING0 , source ) ; + builder . rawField ( STRING0 , source , offset , length ) ; } else { XCo...
properly take offset and length into account introduced with realtime get
<nb> public class EnglishGrammaticalRelations { SINGLE SINGLE STRING0 + copularWordRegex + STRING1 + timeWordRegex + STRING2 + timeWordRegex + STRING3 + - SINGLE - SINGLE - STRING4 , + SINGLE + SINGLE + STRING4 , SINGLE SINGLE
Add some whitespace for readability
<nb> public class ProtobufClient extends MessageWriteTarget { final int connectTimeoutMillis ) throws IOException { SINGLE SINGLE - dbuf = ByteBuffer . allocate ( Math . min ( Math . max ( parser . maxMessageSize , BUFFER_SIZE_LOWER_BOUND ) , BUFFER_SIZE_UPPER_BOUND ) ) ; + dbuf = ByteBuffer . allocateDirect ...
Use direct byte buffers instead of normal ones in niowrapper
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate eclipse warnings
<nb> public class PythonCopyPasteProcessor implements CopyPastePreProcessor { SINGLE if ( StringUtil . countChars ( element . getText ( ) , STRING0 ) > NUMBER0 ) { newText = text + STRING1 ; + if ( caretOffset == offset && ! strings . isEmpty ( ) && ! ( element . getParent ( ) instanceof PyFile ) ) { + newTex...
fixed exception and inner function in copy paste
<nb> public class AvgAggregationFunction implements AggregationFunction < AvgPair , Doub @ override public JSONObject render ( Double finalAggregationResult ) { try { - if ( ( finalAggregationResult == null ) || ( finalAggregationResult == Double . NaN ) ) { + if ( ( finalAggregationResult == null ) || ( Doub...
Replaced equality check with NaN which is always false with Double isNaN
<nb> public class Shell implements ConsoleInputHandler , if ( command == null ) return ; - if ( history_ . size ( ) > NUMBER0 - && command . equals ( history_ . get ( history_ . size ( ) - NUMBER1 ) ) ) + String [ ] lines = command . split ( STRING0 ) ; + for ( String line : lines ) { - SINGLE - ret...
Command should be added to history line by line
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT public abstract class ConfusionProbabilityRule extends Rule {
add link to wiki
<nb> public class CreatorCollector COMMENT COMMENT COMMENT - public void setDefaultCreator ( AnnotatedWithParams creator ) - { - SINGLE - SINGLE - if ( creator instanceof AnnotatedConstructor ) { - setDefaultConstructor ( ( AnnotatedConstructor ) creator ) ; - return ; - } + public void setDefau...
fix a compilation issue from preceding pruning
<nb> in * / String msg = ite . getTargetException ( ) . getMessage ( ) ; if ( ( msg != null ) && ( msg . indexOf ( STRING0 ) != - NUMBER0 ) ) { - throw new RuntimeException ( openglError + STRING1 ) ; + throw new RuntimeException ( openglError + + STRING2 ) ; } else { ite . getTargetException ( ) . pr...
clarify import errors in createGraphics
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT @ incubating public interface PluginRepositoriesSpec { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT...
Remove the text about altering the classpath
<nb> public abstract class ProcessorDefinition < Type extends ProcessorDefinition < Type > } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public HystrixDefinition endHystrix ( ) { + ProcessorDefinition < ? > def = this ; + + SINGLE + if ( def instanceof HystrixDefinition ) { + return ( Hy...
Add endHystrix to java dsl
<nb> public class PrivacyManager { && restricted , parentAsked || asked ) ; else childMerge = getRestrictionEx ( uid , rRestrictionName , hook . getName ( ) ) ; - if ( ( parentRestricted && ! restricted ) || ( ! parentAsked && asked ) || hook . whitelist ( ) != null - || ! clear ) { + if ( ( parentRestricte...
Fix applying template
<nb> public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider { if ( file != myFile . getVirtualFile ( ) ) return ; if ( myConsoleEditor != null ) { queueUiUpdate ( false ) ; - for ( FileEditor fileEditor : source . getAllEditors ( ) ) { + for ( FileEditor fileEditor : source . getAllEdit...
fix shortcut registration
<nb> public class FileComponentConfigurationAndDocumentationTest extends ContextTestS assertNotNull ( json ) ; assertTrue ( json . contains ( STRING0 ) ) ; - assertTrue ( json . contains ( STRING1 ) ) ; + assertTrue ( json . contains ( STRING2 ) ) ; assertTrue ( json . contains ( STRING3 ) ) ; }
Add more labels to endpoint component options
<nb> public class DialogPlus { COMMENT COMMENT COMMENT - private View createView ( LayoutInflater inflater , View footerView , View headerView , BaseAdapter adapter ) { + private View createView ( LayoutInflater inflater , View headerView , View footerView , BaseAdapter adapter ) { View view = holder . getV...
Fix header footer missplace
<nb> public class Language { String javaPath = new File ( Base . class . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) . getFile ( ) ) . getParentFile ( ) . getAbsolutePath ( ) ; try { copyDirectory ( - new File ( javaPath + STRING0 ) , SINGLE - Base . getSettingsFile ( STRING1 ) SINGLE + ne...
replaced string with variable
<nb> public class TLSUtils { COMMENT COMMENT COMMENT - public static < B extends ConnectionConfiguration . Builder < B , ? > > B disableHostnameVerificationForTlsCertificicates ( B builder ) { + public static < B extends ConnectionConfiguration . Builder < B , ? > > B disableHostnameVerificationForTlsCertific...
Fix typo in TLSUtils
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Add java util List import
<nb> private static Expr analyze ( C context , Object form , String name ) throws Exceptio SINGLE SINGLE else if ( form instanceof IPersistentCollection && ( ( IPersistentCollection ) form ) . count ( ) == NUMBER0 ) - return new EmptyExpr ( form ) ; + { + Expr ret = new EmptyExpr ( form ) ; + if ( RT . me...
fix reader metadata fails for empty collection literals
<nb> public class ComplexHeaderDrawerActivity extends AppCompatActivity { SINGLE SINGLE buildHeader ( false , null ) ; - SINGLE - result . removeHeader ( ) ; SINGLE result . setHeader ( headerResult . getView ( ) ) ; SINGLE
remove unnecessary removeHEader
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class ProfileUpdate extends SimpleValueMap { } public void setLinkColor ( int profileLinkColor ) { - put ( STRING0 , profileLinkColor ) ; + put ( STRING0 , String . format ( Locale . ROOT ,...
fixed update profile
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static int size ( Iterable self ) { + return size ( self . iterator ( ) ) ; + } ...
Add DefaultGroovyMethods size Iterable
<nb> public class Header COMMENT public int frameLength ( ) { - return buffer . getInt ( offset + DataHeaderFlyweight . FRAME_LENGTH_FIELD_OFFSET , ByteOrder . LITTLE_ENDIAN ) ; + return buffer . getInt ( offset , ByteOrder . LITTLE_ENDIAN ) ; } COMMENT
Save addition on header length field
<nb> public class ResolveClassTest extends ResolveTestCase { public void testStaticImportInTheSameClass ( ) throws Exception { - System . gc ( ) ; PsiReference ref = configure ( ) ; long start = System . currentTimeMillis ( ) ; assertNull ( ref . resolve ( ) ) ; <nb> public class ResolveClassTest extend...
require less stack in ResolveClassTest testStaticImportNetwork
<nb> public class KdTree < T extends KdTree . XYZPoint > { return getString ( tree . root , STRING0 , true ) ; } - private static < T extends Comparable < T > > String getString ( KdNode node , String prefix , boolean isTail ) { + private static String getString ( KdNode node , String prefix , boolean isTail ...
Found a KdTree bug which prevented it from compiling
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param SINGLE _dest = origDest ; - _parms . _nfolds = NUMBER0 ; + _parms . _nfolds = N ; SINGLE _parms . _weights_column = origWeightsName ; _parms . _valid = null ; _parms . _train = origTrainFrameKey ;
Tell the main CV model that it is built with cross val
<nb> public class DefaultBaseRepositoryFactory implements BaseRepositoryFactory { public MavenArtifactRepository createJCenterRepository ( ) { MavenArtifactRepository mavenRepository = createMavenRepository ( ) ; - String url = System . getProperty ( JCENTER_REPO_OVERRIDE_URL_PROPERTY , DefaultRepositoryHandler...
Remove unused constant
<nb> import NAMESPACE ; @ suppresswarnings ( { STRING0 } ) @ implements ( ContextThemeWrapper . class ) public class ShadowContextThemeWrapper extends ShadowContextWrapper { - - public ShadowContextThemeWrapper ( ContextThemeWrapper realContextThemeWrapper ) { - super ( realContextThemeWrapper ) ; - } -...
Fix error from pull
<nb> public class ContainerGateInterface extends BuildCraftContainer { @ override public void updateCraftingResults ( ) { super . updateCraftingResults ( ) ; - COMMENT int state = calculateTriggerState ( ) ; if ( state != lastTriggerState ) { for ( int i = NUMBER0 ; i < this . crafters . size ( ) ; i ++ )...
Removed Redudent Server side check
<nb> public class GpxImportHelper { } private void importFavourites ( final GPXUtilities . GPXFile gpxFile , final String fileName , final boolean save ) { + if ( gpxFile . points == null || gpxFile . points . size ( ) == NUMBER0 ) { + handleResult ( gpxFile , fileName , save ) ; + return ; + } final Di...
Fix crash with empty points
<nb> public class HtmlToPdfMojo extends AbstractMojo { getLog ( ) . info ( STRING0 ) ; String [ ] lines = cl . getCommandline ( ) ; + StringBuffer buffer = new StringBuffer ( ) ; for ( String line : lines ) { - getLog ( ) . info ( line ) ; + buffer . append ( STRING1 ) ; + buffer . append ( line ) ; }...
tidied up the debugging code
<nb> public class ZMQ EFSM ( ZError . EFSM ) , ENOCOMPATPROTO ( ZError . ENOCOMPATPROTO ) , ETERM ( ZError . ETERM ) , - ENOTSOCK ( ZError . ENOTSOCK ) ; + ENOTSOCK ( ZError . ENOTSOCK ) , + EAGAIN ( ZError . EAGAIN ) ; private final int code ;
Added EAGAIN error code already present
<nb> public class TimeUUIDType extends AbstractType < UUID > if ( uuid . version ( ) != NUMBER0 ) throw new MarshalException ( STRING0 ) ; } - else if ( source . equals ( STRING1 ) || source . toLowerCase ( ) . equals ( STRING2 ) ) + else if ( source . toLowerCase ( ) . equals ( STRING2 ) ) { idBytes = By...
empty term no longer makes sense for TimeUUID
<nb> public class MaterialDialog { mAlertDialog . show ( ) ; mAlertDialog . getWindow ( ) . clearFlags ( WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE | WindowManager . LayoutParams . FLAG_ALT_FOCUSABLE_IM ) ; - mAlertDialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STAT...
fixed soft keybord always show after thie dialog showed
<nb> public final class PeepholeFoldConstantsTest extends CompilerTestCase { foldSame ( STRING0 ) ; } + public void testUndefinedComparison2 ( ) { fold ( STRING1 , STRING2 ) ; fold ( STRING3 , STRING4 ) ; <nb> public final class PeepholeFoldConstantsTest extends CompilerTestCase { fold ( STRING5 , STR...
Add a few unit tests for constant folding for problematic cases
<nb> public abstract class SystemService { private SystemServiceManager getManager ( ) { return LocalServices . getService ( SystemServiceManager . class ) ; } - - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - COMMENT - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SI...
Delete stale commented out declarations
<nb> class NodeImpl implements Node , Comparable assert ! addedRels . contains ( relId ) ; addedRels . add ( relId ) ; RelationshipType type = rel . getType ( ) ; - Set < Integer > relationshipSet = newRelationshipMap . get ( type ) ; + Set < Integer > relationshipSet = newRelationshipMap . get ( type . name ...
Fixed a bug in ensureFullRelationships that caused relationships not to be
<nb> public class EventServiceImpl implements EventService , PostJoinAwareService { } catch ( InterruptedException ignored ) { } catch ( TimeoutException ignored ) { } catch ( MemberLeftException e ) { - logger . log ( Level . FINEST , e . getMessage ( ) , e ) ; + logger . log ( Level . FINEST , STRING0 , e )...
Fixed listener deregistration member left exception
<nb> public class DependencyGraphBuilder { targetModuleRevision = resolveState . getRevision ( idResolveResult . getId ( ) ) ; targetModuleRevision . addResolver ( this ) ; + SINGLE if ( idResolveResult instanceof ForcedModuleVersionIdResolveResult ) { targetModuleRevision . selectionReason = ModuleSelectio...
Added a TODO after the pairing
<nb> public final class OperationGroupBy { SINGLE SINGLE SINGLE - assertEquals ( NUMBER0 , sentEventCounter . get ( ) , NUMBER1 ) ; - SINGLE + assertEquals ( NUMBER0 , sentEventCounter . get ( ) , NUMBER2 ) ; + SINGLE } private static class Event {
Improve determinism of GroupBy testUnsubscribe
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class XValueNodeImpl extends XValueContainerNode < XValue > implements XValu @ override public void setFullValueEvaluator ( @ notnull final XFullValueEvaluator fullValueEvaluator ) { - AppUIUtil . invokeOnEdt ( new Runnable ( ) {...
set full value evaluator in node updater
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; + impor...
Removed unused imports
<nb> public class GoLanguage extends Language { public LanguageFileType getAssociatedFileType ( ) { return GoFileType . INSTANCE ; } + + @ override + public boolean isCaseSensitive ( ) { + return true ; + } }
Make go case sensitive language
<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow @ override public void onThemeSelected ( String themeId ) { + String yes = STRING0 ; } public class FetchThemesTask extends AsyncTask < JSONObject , Void , ArrayList < Theme > > { <nb> import NAMESPACE ; COMMENT CO...
Adding callback for theme selection
<nb> public final class ShardingService { private void blockUntilShardingCompleted ( ) { while ( jobNodeStorage . isJobNodeExisted ( ShardingNode . NECESSARY ) || jobNodeStorage . isJobNodeExisted ( ShardingNode . PROCESSING ) ) { - log . debug ( STRING0 ) ; + log . debug ( STRING1 ) ; BlockUtils . waitingS...
keep consistency with the debug log for ShardingService
<nb> public class ContactPictureLoader { if ( stream != null ) { try { Bitmap tempBitmap = BitmapFactory . decodeStream ( stream ) ; - bitmap = Bitmap . createScaledBitmap ( tempBitmap , mPictureSizeInPx , - mPictureSizeInPx , true ) ; - if ( tempBitmap != bitmap ) { - tempBitmap . recycle ( ) ; + if ( ...
Avoid NullPointerException when decoding contact pictures
<nb> public class ZWaveAssociationCommandClass extends ZWaveCommandClass { @ xstreamomitfield private AssociationGroup pendingAssociation = null ; - @ xstreamomitfield + SINGLE private int maxGroups = NUMBER0 ; COMMENT
Omited the xml persistance annotation added a comment
<nb> public abstract class AbstractTestDistributedQueries assertEquals ( emptySample . getMaterializedRows ( ) . size ( ) , NUMBER0 ) ; } + @ override @ test public void testTableSamplePoissonizedRescaled ( ) throws Exception <nb> public abstract class AbstractTestDistributedQueries MaterializedResult...
Fix intellij warnings
<nb> public class svm_model implements java . io . Serializable svm_node [ ] [ ] SV ; SINGLE double [ ] [ ] sv_coef ; SINGLE double [ ] rho ; SINGLE + double [ ] probA ; SINGLE + double [ ] probB ; SINGLE
add prob in model
<nb> public class MetadataGenerator { int superclassTypeArgsSize = printSuperclassTypeArguments ( ) ; printf ( STRING0 , fullName , METADATA_VERSION ) ; String simpleName = type . getName ( ) ; - if ( simpleName . matches ( STRING1 ) ) { + if ( type . isAnonymous ( ) ) { simpleName = STRING2 ; SINGLE } ...
Fixed anonymous class test
<nb> final class RuntimeInputChannelContext implements InputChannelContext , ByteBuffe } if ( ! this . isReexecuted || sequenceNumber > expectedSequenceNumber ) { - if ( LOG . isWarnEnabled ( ) ) { - LOG . warn ( STRING0 + getChannelName ( ) + STRING1 + expectedSequenceNumber + if ( LOG . isDebugEnabled ( )...
Reduced verbosity of RuntimeInputChannelContext log messages
<nb> public class DutchSynthesizerTest extends TestCase { assertEquals ( STRING0 , Arrays . toString ( synth . synthesize ( dummyToken ( STRING1 ) , STRING2 ) ) ) ; assertEquals ( STRING3 , Arrays . toString ( synth . synthesize ( dummyToken ( STRING4 ) , STRING5 ) ) ) ; + assertEquals ( STRING6 , Arrays . toSt...
add more nl synthesis tests
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT
Removed unused import