diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class PhoneNumberUtils return uri . getSchemeSpecificPart ( ) ; } - SINGLE - SINGLE - if ( scheme . equals ( STRING0 ) ) { - long subId = intent . getLongExtra ( SUBSCRIPTION_KEY , - SubscriptionManager . getDefaultVoiceSubId ( ) ) ; - return TelephonyManager . getDefault ( ) . getComplete...
Remove check for voicemail number when parsing URI phone number
<nb> public class RouterInfo { public double getUpperRightLongitude ( ) { return envelope . getUpperRightLongitude ( ) ; } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public double getMinLatitude ( ) { - return envelope . getLowerLeftLatitude ( ) ; - } - - COMMENT - COMMENT - C...
Removed deprecated graphMetada API calls
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + + COMMENT + COMMENT + COMMENT + COM...
Fix missing license headers
<nb> public abstract class AAdvancedMaterial extends AMaterial { } public void setAmbientColor ( int color ) { - setAmbientColor ( new float [ ] { Color . red ( color ) / NUMBER0 , Color . green ( color ) / NUMBER0 , Color . blue ( color ) / NUMBER0 , Color . alpha ( color ) / NUMBER0 } ) ; + setAmbientColor ...
Fix truncated division in color type conversion
<nb> public class MultiMatchQueryBuilder extends QueryBuilder implements BoostableQue private String minimumShouldMatch ; - private String rewrite = null ; - private String fuzzyRewrite = null ; private Boolean useDisMax ; <nb> public class MultiMatchQueryBuilder extends QueryBuilder implements Boosta...
Remove unsupported rewrite option from multi match query builder
<nb> public class BootstrapSeederMain parseArgs ( args ) ; SINGLE - SINGLE + SINGLE File sourcesJson = new File ( _sSourcesConfigFile ) ; ObjectMapper mapper = new ObjectMapper ( ) ; <nb> public class DbusKeyCompositeFilterConfig public static void main ( String [ ] args ) throws Exception { -...
adding missing files
<nb> public class MtpDatabase { private static final String PATH_WHERE = Files . FileColumns . DATA + STRING0 ; private static final String STORAGE_WHERE = Files . FileColumns . STORAGE_ID + STRING0 ; - private static final String FORMAT_WHERE = Files . FileColumns . PARENT + STRING0 ; - private static final ...
Fix typo affecting parent and format queries
<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 ; <nb> p...
Remove validation for now when constructing composite build
<nb> public class ProfilerType extends EditableFileType public String getDefaultExtension ( ) { - return STRING0 ; + return STRING1 ; } }
add missing period to save as extension
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Added comment about origin
<nb> public class GraphRequest { OutputStream outputStream = null ; try { - outputStream = connection . getOutputStream ( ) ; - outputStream = new BufferedOutputStream ( outputStream ) ; + outputStream = new BufferedOutputStream ( connection . getOutputStream ( ) ) ; if ( shouldUseGzip ) { outputStream ...
rolled back changes for output streams
<nb> public interface Node { public PVector getPosition ( ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Float getRadius ( ) ; + + COMMENT COMMENT COMMENT COMMENT
added getRadius method to Node interface
<nb> class OnPropertyCondition extends SpringBootCondition { + expandNames ( prefix , missingProperties ) + STRING0 ) ; } if ( ! nonMatchingProperties . isEmpty ( ) ) { - String expected = havingValue == null ? STRING1 : havingValue ; + String expected = StringUtils . hasLength ( havingValue ) ? havingValue :...
Fix OnPropertyCondition no havingValue message
<nb> public class X509CredentialsAuthenticationHandler extends AbstractPreAndPostProc COMMENT private static final boolean DEFAULT_CHECK_KEYUSAGE = false ; - COMMENT + COMMENT + COMMENT + COMMENT private static final boolean DEFAULT_REQUIRE_KEYUSAGE = false ; COMMENT
Fixed CS issue
<nb> public class RCompletionManager implements CompletionManager } } - SINGLE if ( c == STRING0 ) { suggestTimer_ . schedule ( false , true , false ) ; return false ; } + if ( c == STRING1 ) + return false ; + SINGLE SINGLE SINGLE
don t narrow completions on spaces
<nb> public class DefaultWayPropertySetSource implements WayPropertySetSource { StreetTraversalPermission . ALL , FLOAT0 , FLOAT0 , true ) ; setProperties ( props , STRING0 , StreetTraversalPermission . ALL , FLOAT0 , FLOAT0 , true ) ; + setProperties ( props , STRING1 , + StreetTraversalPermission . ALL , FL...
Added mix in weight for surface gravel tag
<nb> public class WalletTool { } } } else { - peers . addPeerDiscovery ( new DnsDiscovery ( params ) ) ; + if ( params == RegTestParams . get ( ) ) { + log . info ( STRING0 ) ; + peers . addAddress ( InetAddress . getLoopbackAddress ( ) ) ; + } else { + peers . addPeerDiscovery ( new DnsDiscovery ( pa...
automatically use localhost in regtest mode
<nb> import NAMESPACE ; public class QuartzComponent extends UriEndpointComponent implements StartupListener { private static final Logger LOG = LoggerFactory . getLogger ( QuartzComponent . class ) ; private Scheduler scheduler ; - private transient final List < JobToAdd > jobsToAdd = new ArrayList < JobToAdd ...
Fixed the CS error of camel quartz
<nb> public class SeekBarDrawable extends SeekBarStateDrawable implements Animatable public void setNumSegments ( int numSegments ) { this . mNumSegments = numSegments ; + this . mTickDistance = ( float ) this . mContentWidth / ( float ) numSegments ; } public int getTickRadius ( ) { <nb> public class S...
Fixed no t refresh ui bug
<nb> public class TilesConfigurer implements ServletContextAware , InitializingBean , D this . tilesInitializer = ( TilesInitializer ) clazz . newInstance ( ) ; } catch ( Exception ex ) { - throw new IllegalStateException ( STRING0 , ex ) ; + throw new IllegalStateException ( STRING1 , ex ) ; } } else {
fixed error message
<nb> public class DefaultBroadcaster implements Broadcaster { } } - } , time , time , lifeCyclePolicy . getTimeUnit ( ) ) ; + } , NUMBER0 , time , lifeCyclePolicy . getTimeUnit ( ) ) ; ref . set ( currentLifecycleTask ) ; } }
Fix wrong logic
<nb> public class HTreeMap2Test { if i call expireAfterAccess , everything seems ok . COMMENT - @ test public void expireAfterWrite ( ) throws InterruptedException { + @ test ( timeout = NUMBER0 ) + public void expireAfterWrite ( ) throws InterruptedException { SINGLE SINGLE <nb> public class HTreeM...
Fix race condition
<nb> final class ActivityStack { SINGLE if ( localLOGV ) Slog . v ( TAG , STRING0 + r ) ; mStackSupervisor . mFinishingActivities . add ( r ) ; + r . resumeKeyDispatchingLocked ( ) ; mStackSupervisor . getFocusedStack ( ) . resumeTopActivityLocked ( null ) ; return r ; }
Keydispatching timeout while finish Activity
<nb> public interface ExecController extends AutoCloseable { COMMENT boolean isManagedThread ( ) ; + int getNumThreads ( ) ; + @ override void close ( ) ; <nb> public class DefaultExecController implements ExecController { private final ListeningExecutorService blockingExecutor ; private final Eve...
Expose the size of the event loop
<nb> public class QueueFragment extends Fragment { } listAdapter . notifyDataSetChanged ( ) ; - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - Activity theActivity = activity . get ( ) ; - if ( theActivity != null ) { - theA...
Simlified invalidation of options menu
<nb> public final class BridgeWindow implements IWindow { public void dispatchGetNewSurface ( ) throws RemoteException { SINGLE } + @ override public void executeCommand ( String arg0 , String arg1 , ParcelFileDescriptor arg2 ) throws RemoteException { <nb> public final class BridgeWindow implements IWi...
Fix the build
<nb> class ParallelPerBuildState implements PerBuildState , AutoCloseable { } private abstract class Worker implements Runnable { - static final int WAIT_FOR_WORK_TIMEOUT_SECONDS = NUMBER0 ; + static final int WAIT_FOR_WORK_TIMEOUT_MILLIS = NUMBER1 ; protected boolean shouldWaitForWork ( ) { return pend...
Reduce timeout time when parallel build file parsing is activated
<nb> public class B2CConverter { { try { SINGLE - int count = NUMBER0 ; while ( limit > NUMBER0 ) { SINGLE int size = limit < BUFFER_SIZE ? limit : BUFFER_SIZE ; int cnt = conv . read ( result , NUMBER0 , size ) ; <nb> public class B2CConverter { COMMENT COMMENT final class ReadConvertor extends I...
Remove unused code
<nb> public class OrcInputFormat implements InputFormat < NullWritable , OrcStruct > , } public boolean isBlocking ( ) { - return ppdResult != null ; + return true ; } Path getPath ( ) {
ORC ETLSplitStrategy should use thread pool when computing splits Rajesh Balamohan reviewed by Sergey Shelukhin
<nb> public class SearchController extends AuthenticatedController { final int MONTH = HOUR * NUMBER0 * NUMBER1 ; final int YEAR = MONTH * NUMBER2 ; + SINGLE + if ( searchResult . getFromDateTime ( ) == null && searchResult . getToDateTime ( ) == null ) { + return STRING0 ; + } + int queryRangeInMinut...
Do not throw NPE on a search without to and from
<nb> package 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 NAME...
Remove InstancedNode setCullHint CullHint Never from TestInstancedNode example as it is not neccessary
<nb> public abstract class SharedTree < M extends SharedTreeModel < M , P , O > , P extends Sha out . _variable_importances = hex . ModelMetrics . calcVarImp ( new hex . VarImp ( _improvPerVar , out . _names ) ) ; ConfusionMatrix cm = mm . cm ( ) ; if ( cm != null ) { - Log . info ( cm . toASCII ( ) ) ; + if ...
Don t print too large confusion matrices in Tree models
<nb> public class Preferences { public Preferences ( Base base ) { this . base = base ; SINGLE - dialog = Language . text ( STRING0 ) ; + dialog = new JFrame ( Language . text ( STRING0 ) ) ; dialog . setResizable ( false ) ; Container pain = dialog . getContentPane ( ) ;
Added library words
<nb> public class TestCometProcessor extends TomcatBaseTest { Thread . sleep ( NUMBER0 ) ; tomcat . getConnector ( ) . stop ( ) ; - SINGLE - Thread . sleep ( NUMBER1 ) ; - tomcat . getConnector ( ) . destroy ( ) ; SINGLE int count = NUMBER2 ; <nb> public class TestCometProcessor extends TomcatBaseTe...
Re order the connector destroy call to hopefully avoid the Gump
<nb> public final class OperationParallel < T > { return i . incrementAndGet ( ) % s . degreeOfParallelism ( ) ; } - } ) . flatMap ( new Func1 < GroupedObservable < Integer , T > , Observable < R > > ( ) { + } ) . mergeMap ( new Func1 < GroupedObservable < Integer , T > , Observable < R > > ( ) { @ overri...
Remove Extra Synchronization
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OkHttpClient implements Cloneable { SINGLE OkHttpClient client = clone ( ) ; SINGLE - client . s...
Use a singleton list which is slightly more efficient
<nb> public class SelectModulesScreen extends CoreScreenLayer { modulesLookup = Maps . newHashMap ( ) ; sortedModules = Lists . newArrayList ( ) ; + populateModuleInformation ( ) ; + Collections . sort ( sortedModules , new Comparator < ModuleSelectionInfo > ( ) { @ override public int compare ( ModuleS...
Fixed sorting of modules in the SelectModulesScreen
<nb> public class FileTypeIndex extends ScalarIndexExtension < FileType > @ override public boolean dependsOnFileContent ( ) { - return true ; + return false ; } @ override
reverted content dependent flag
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SVNPresenter extends BaseVcsPresenter private void manageCommands ( ) { + @ suppresswarnings ( STRING0 ) boolean anyS...
eliminate eclipse warnings
<nb> public class ClosureExpressionsTypingVisitor extends ExpressionTypingVisitor { Visibilities . LOCAL , COMMENT ) ; - context . trace . record ( BindingContext . FUNCTION , functionLiteral , functionDescriptor ) ; BindingContextUtils . recordFunctionDeclarationToDescriptor ( context . trace , functionLiter...
Removed recording function twice
<nb> public class OServerCommandGetProfiler extends OServerCommandAuthenticatedServer StringWriter jsonBuffer = new StringWriter ( ) ; OJSONWriter json = new OJSONWriter ( jsonBuffer ) ; - final String to = parts . length > NUMBER0 ? parts [ NUMBER0 ] : null ; - final String from = parts . length > NUMBER1 ? ...
fixed bug on HTTP command
<nb> public class NameIndex implements Storable < NameIndex > bytePointer ++ ; names . setBytes ( bytePointer , bytes , bytes . length ) ; bytePointer += bytes . length ; - if ( bytePointer < NUMBER0 ) - { - throw new IllegalStateException ( STRING0 ) ; - } lastName = name ; lastIndex = oldPointer ; ...
remove irritating exception in NameIndex
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
add reference to standard cipher names tidy up
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ComplexHeaderDrawerActivity extends ActionBarActivity { } } } ) + . withOnDrawerNavigationListener ( new Drawer . OnDra...
add NavigationListener to sample
<nb> public class CategoriesPagePresenter extends AbstractWizardPage < MutableProjectCo final ProjectWizardMode wizardMode = ProjectWizardMode . parse ( context . get ( WIZARD_MODE_KEY ) ) ; - originParent = Path . valueOf ( dataObject . getPath ( ) ) ; + originParent = Path . valueOf ( dataObject . getPath (...
Display correct path during converting folder into project
<nb> public class PartitionControllerImpl implements PartitionController { if ( pc . getCurrentWorkspace ( ) != null ) { model = pc . getCurrentWorkspace ( ) . getLookup ( ) . lookup ( PartitionModelImpl . class ) ; if ( model == null ) { + model = new PartitionModelImpl ( ) ; pc . getCurrentWorkspace ( ) . a...
Fix Partition controller late loading init
<nb> public class GroovyMethodInliner implements InlineHandler . Inliner { while ( parent != tempStmt . getParent ( ) ) { tempStmt = tempStmt . getParent ( ) ; } + GrStatement toAdd = ( GrStatement ) tempStmt . copy ( ) ; GrBlockStatement blockStatement = factory . createBlockStatement ( ) ; if ( parent ins...
don t add invalid elements to tree
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha COMMENT COMMENT COMMENT - public void setUTXOProvider ( @ nullable FullPrunedBlockStore vUTXOProvider ) { + public void setUTXOProvider ( @ nullable UTXOProvider vUTXOProvider ) { lock . lock ( ) ; try { checkArgument...
Fixed wrong type of parameter in
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class MarkupBuilderCodeTransformer extends ClassCodeExpressionTransformer { SINGLE SINGLE Map < String , ClassNode > modelTypes = extr...
Better use an EmptyExpression than a ConstantExpression
<nb> public abstract class WebSettings { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarify WebSettings setGeolocationEnabled JavaDocs
<nb> public class GroupedList < T > implements Iterable < Collection < T > > { public static class GroupedListHelper < E > implements Iterable < E > { SINGLE private List < Object > groupedList ; - private CompactHashSet < E > currentGroup = null ; + private List < E > currentGroup = null ; private final Co...
Use a list instead of a set for the current group in GroupedListHelper to save memory
<nb> public class GLM extends Request { Family f = Family . tweedie ; f . defaultLink = l ; f . tweedieVariancePower = variancePower ; - res = new GLMParams ( f , l ) ; + res = new GLMParams ( f , l , f . tweedieVariancePower , l . tweedieLinkPower ) ; } if ( res . _link . _link == Link . familyDefault ...
correctly pass variance and link powers
<nb> public class GradleDistributionExecuter extends AbstractGradleExecuter implement TestFile tmpDir = getTmpDir ( ) ; if ( tmpDir != null ) { tmpDir . deleteDir ( ) . createDir ( ) ; - forkingGradleExecuter . addGradleOpts ( String . format ( STRING0 , tmpDir ) ) ; + forkingGradleExecuter . addGradleOpts ( ...
Quote the temp dir when executing Gradle in test fixtures
<nb> public class MasterInfo { LOG . warn ( STRING0 ) ; try { java . lang . Runtime . getRuntime ( ) . exec ( CommonConf . get ( ) . TACHYON_HOME + - STRING1 ) ; + STRING2 ) ; } catch ( IOException e ) { LOG . error ( e . getMessage ( ) ) ; }
changed the obsolete script invocation of restart failed workers
<nb> public abstract class BaseHikariPool implements HikariPoolMBean , IBagStateListen } final long now = System . currentTimeMillis ( ) ; - if ( now - bagEntry . lastAccess > ALIVE_BYPASS_WINDOW && ! isConnectionAlive ( bagEntry . connection , timeout ) ) { + if ( bagEntry . evicted || now - bagEntry . lastA...
don t return evicted connections ever
<nb> public class CxxPreprocessAndCompile extends AbstractBuildRule implements RuleKe private final SourcePath input ; private final ImmutableList < Path > includeRoots ; private final ImmutableList < Path > systemIncludeRoots ; - @ addtorulekey ( stringify = true ) private final ImmutableList < Path > framew...
Sanitize framework search paths
<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...
Minor remove unused components in ForLoopConventionsChecker
<nb> package NAMESPACE ; public enum DocsHelper { PAGE_SENDING_JSONPATH ( STRING0 ) , PAGE_ES_CONFIGURATION ( STRING1 ) , - PAGE_LDAP_TROUBLESHOOTING ( STRING2 ) ; + PAGE_LDAP_TROUBLESHOOTING ( STRING3 ) ; private static final String DOCS_URL = STRING4 ;
Really use correct link to Users Roles docs
<nb> public class Application implements Serializable { private final String serviceUrl ; private final StatusInfo statusInfo ; - private Application ( String healthUrl , String managementUrl , + protected Application ( String healthUrl , String managementUrl , String serviceUrl , String name , String id , ...
changed constructor visibility from private to protected in order to be able to derive from Application
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SelectionQuotingTypedHandler extends TypedHandlerDelegate { caretModel . moveToOffset ( myLtrSelection ? myReplacedTextRange . getEndOffset ( ) : myReplacedTextRa...
injected editor doesn t like backward selection
<nb> public class BluetoothCrashResolver { public void stop ( ) { context . unregisterReceiver ( receiver ) ; if ( isDebugEnabled ( ) ) Log . d ( TAG , STRING0 ) ; - processStateChange ( ) ; + saveState ( ) ; } COMMENT
always save state of stop called
<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon } } - json = ObjectHelper . before ( json , STRING0 ) ; + SINGLE + json = ObjectHelper . before ( json , STRING1 ) ; + SINGLE StringBuilder buffer = new StringBuilder ( STRING0 ) ; boolean first = true ;
CamelContext explainEndpointJson should not include component properties
<nb> public class FileBasedIndex implements ApplicationComponent { return ; } - PsiFile dominantContentFile = findDominantPsiForDocument ( document ) ; + final PsiFile dominantContentFile = findDominantPsiForDocument ( document ) ; DocumentContent content ; if ( dominantContentFile != null && dominantCo...
specify project for contents when indexing unsaved documents
<nb> import NAMESPACE ; import NAMESPACE ; - class ByWord implements DiffPolicy { + public class ByWord implements DiffPolicy { private static final Logger LOG = Logger . getInstance ( STRING0 ) ; private final ComparisonPolicy myComparisonPolicy ;
make ByWord public
<nb> public class Breton extends Language { @ override public Contributor [ ] getMaintainers ( ) { - return new Contributor [ ] { Contributors . DOMINIQUE_PELLE } ; + final Contributor contributorFulup = new Contributor ( STRING0 ) ; + return new Contributor [ ] { + Contributors . DOMINIQUE_PELLE , contri...
br Added Fulup Jakez as contributor to the Breton version of LanguageTool
<nb> public class ContactListModel { size = group . countChildContacts ( ) ; SINGLE - size ++ ; + if ( ! group . equals ( rootGroup ) ) + size ++ ; } else { <nb> public class ContactListModel } SINGLE - if ( size > NUMBER0 ) + if ( ! group . equals ( rootGroup ) && size > NUMBER0 ) size ...
don t count the root group
<nb> public class JetDecompiledData { if ( nd != null ) { for ( DeclarationDescriptor member : nd . getMemberScope ( ) . getAllDescriptors ( ) ) { - if ( member instanceof ClassDescriptor && member . getName ( ) . equals ( STRING0 ) || member instanceof NamespaceDescriptor ) { + if ( member instanceof ClassDe...
Excluded classes from decompiled namespaces
<nb> public class MultiWordChunker implements Disambiguator { final String prevAnot = oldReading . getHistoricalAnnotations ( ) ; AnalyzedTokenReadings newAtr = new AnalyzedTokenReadings ( oldReading . getReadings ( ) , oldReading . getStartPos ( ) ) ; + newAtr . setWhitespaceBefore ( oldReading . isWhitespaceB...
Keeping isWhitespaceBefore data in MultiWordChunker java
<nb> public class PdePreprocessor { sketchRenderer . equals ( STRING0 ) || sketchRenderer . equals ( STRING1 ) || sketchRenderer . equals ( STRING2 ) || - sketchRenderer . equals ( STRING3 ) ) { + sketchRenderer . equals ( STRING3 ) || + sketchRenderer . equals ( STRING4 ) || + sketchRenderer . equals ( S...
add LWJGL renderers to list of known renderers
<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener @ override protected Object doInBackground ( Object . . . arg0 ) { rstate . toggleAsked ( ) ; + rstate = new RState ( xAppInfo . getUid ( ) , mRestrictionName , null ) ; return null ; }
Fix global state
<nb> public class ContactListCellRenderer this . nameLabel . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ; - this . rightLabel . setPreferredSize ( - new Dimension ( AVATAR_WIDTH , AVATAR_HEIGHT ) ) ; this . rightLabel . setFont ( rightLabel . getFont ( ) . deriveFont ( FLOAT0 ) ) ; - this . ...
Align contact list avatar and contact count labels on the right
<nb> public class DrawHandler extends Handler { } public void quit ( ) { - removeMessages ( QUIT ) ; sendEmptyMessage ( QUIT ) ; }
fix hide quit issue
<nb> public class SimpleMessageListenerContainer extends AbstractMessageListenerConta COMMENT @ override protected void doShutdown ( ) throws JMSException { - logger . debug ( STRING0 ) ; - for ( MessageConsumer consumer : this . consumers ) { - JmsUtils . closeMessageConsumer ( consumer ) ; - } - logge...
Added proper synchronization and not null check to SimpleMessageListenerContainer s doShutdown
<nb> public final class TachyonConf { checkUserFileBufferBytes ( ) ; SINGLE - if ( getInt ( Constants . INTEGRATION_YARN_MAX_WORKERS_PER_HOST ) > NUMBER0 ) { + int maxWorkersPerHost = getInt ( Constants . INTEGRATION_YARN_MAX_WORKERS_PER_HOST ) ; + if ( maxWorkersPerHost > NUMBER0 ) { String message = STR...
Improve error message
<nb> public class ZenModeHelper implements AudioManagerInternal . RingerModeDelegate { break ; case AudioManager . RINGER_MODE_VIBRATE : case AudioManager . RINGER_MODE_NORMAL : - if ( mZenMode != Global . ZEN_MODE_OFF ) { + if ( isChange && ringerModeOld == AudioManager . RINGER_MODE_SILENT + && mZenMode =...
Leave zen none on manual ringer mode stream volume changes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public abstract class Operation implements DataSerializable { } COMMENT - COMMENT - COMMENT - @ deprecated - publ...
Removed deprecated Operation onException
<nb> public class OptionsTree extends JPanel implements Disposable , OptionsEditorColl @ override String getText ( ) { - return myConfigurable . getDisplayName ( ) ; + return myConfigurable . getDisplayName ( ) . replace ( STRING0 , STRING1 ) ; } @ override
avoid sticky words in configurable names r kirillk
<nb> public class DefaultTrustedSocketFactory implements TrustedSocketFactory { protected static final String ENABLED_CIPHERS [ ] ; protected static final String ENABLED_PROTOCOLS [ ] ; - SINGLE protected static final String ORDERED_KNOWN_CIPHERS [ ] = { - STRING0 , - STRING1 , - STRING2 , - STRING3 ,...
Fix cipher suite names
<nb> public class ConsolePrinter if ( ! first ) { writer . write ( delimiter ) ; } - Joiner . on ( delimiter ) . appendTo ( writer , tuple . toValues ( ) ) ; + Joiner . on ( delimiter ) + . useForNull ( STRING0 ) + . appendTo ( writer , tuple . toValues ( ) ) ; first = false ; } writer . write ( STR...
Fix NPE when printing null columns
<nb> public abstract class KeyStoreCipherSpi extends CipherSpi implements KeyStoreCry if ( mIvRequired ) { SINGLE if ( ( mIv == null ) && ( mEncrypting ) ) { - SINGLE - SINGLE - SINGLE - mIv = new byte [ mBlockSizeBytes ] ; - SecureRandom rng = ( mRng != null ) ? mRng : new SecureRandom ( ) ; - rng . ...
Remove IV auto generation workaround
<nb> public class ReaderPostListFragment extends Fragment SINGLE if ( shouldShowTagToolbar ( ) ) { mTagToolbar = ( Toolbar ) getActivity ( ) . findViewById ( R . id . toolbar_reader ) ; - mTagToolbar . setVisibility ( View . VISIBLE ) ; + + SINGLE + SINGLE + SINGLE + mTagToolbar . setVisibility ( mRes...
Keep the tag toolbar hidden when we know we re going to restore the post list position
<nb> public class TextEditingTargetWidget SINGLE setPublishPath ( extendedType_ , publishPath_ ) ; - toggleDocOutlineButton_ . setVisible ( - target_ . getDocDisplay ( ) . hasScopeTree ( ) ) ; SINGLE toggleDocOutlineButton_ . setVisible ( fileType . canShowScopeTree ( ) ) ; + if ( ! fileType . canShow...
ensure outline widget hidden when filetype changed no scope tree
<nb> public class Process { COMMENT COMMENT COMMENT - public static final int NFC_UID = NUMBER0 ; + public static final int NFC_UID = NUMBER1 ; COMMENT COMMENT
Replace vendor specific NfcGoogle apk with generic Nfc apk
<nb> class DescriptionPattern extends TregexPattern { private final Function < String , String > basicCatFunction ; COMMENT - private static final Pattern SINGLE_WORD_PATTERN = Pattern . compile ( STRING0 ) ; + private static final Pattern SINGLE_WORD_PATTERN = Pattern . compile ( STRING1 + STRING2 + SINGLE ...
Add a little documentation
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class DeadHostState { + final class DeadHostState { private static final long MIN_CONNECTION_TIMEOUT_NANOS = TimeUnit . MINUTES . toNanos ( NUMBER0 ) ; private static final long MAX_CONNECTION_TIMEOUT_NANOS = TimeUnit . MINUTES . toNanos ( NUMBER1 ) ;
make DeadHostState final
<nb> public enum PipeBaseModelGenStandard implements IPipeBaseModelGen { for ( MutableQuad q : quads ) { bakedQuads . add ( q . toBakedBlock ( ) ) ; } - return ImmutableList . of ( ) ; SINGLE + return bakedQuads ; } private static TextureAtlasSprite getSprite ( TextureAtlasSprite [ ] array , int index )...
Remove debugging for power pipes
<nb> public class AbstractInjectableGrailsClassTests extends TestCase { public void testAbstractInjectableGrailsClassNullProperty ( ) throws Exception { GroovyClassLoader cl = new GroovyClassLoader ( ) ; - Class clazz = cl . parseClass ( STRING0 ) ; + Class clazz = cl . parseClass ( STRING1 ) ; InjectableGr...
fixed test case
<nb> public class MeshBuilder implements MeshPartBuilder { vertex ( curr2 ) ; if ( i == NUMBER0 ) continue ; - rect ( ( short ) ( vindex - NUMBER1 ) , ( short ) ( vindex - NUMBER2 ) , ( short ) ( vindex - NUMBER3 ) , ( short ) ( vindex - NUMBER4 ) ) ; SINGLE + rect ( ( short ) ( vindex - NUMBER4 ) , ( short )...
Fix cylinder faces
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class SocketSuspendTest extends AbstractSocketTest { <nb> public class SocketSuspendTest extends AbstractSocketTest { random . nextBytes ( data ) ; } + @ ignore @ test public void tes...
Ignore bad test case for now
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClassPreloadingUtils { protected Enumeration < URL > findResources ( String name ) throws IOException { URL resource = findResource ( name ) ; if ( resource == null ) { - ...
Do not use private Sun API in preloader
<nb> public final class CanonicalNameConstants { public static final String ACTIVITY = STRING0 ; public static final String EDITABLE = STRING1 ; public static final String TEXT_WATCHER = STRING2 ; + public static final String SEEKBAR = STRING3 ; + public static final String ON_SEEKBAR_CHANGE_LISTENER = STRING...
Added new class reference to support SeekBar OnSeekBarChangeListener
<nb> public class GBMTest extends TestUtil { parms . _nbins = NUMBER0 ; parms . _ntrees = NUMBER1 ; parms . _max_depth = NUMBER2 ; + parms . _learn_rate = FLOAT0 ; + parms . _min_rows = NUMBER3 ; parms . _loss = Family . gaussian ; SINGLE <nb> public class GBMTest extends TestUtil { GBMModel gbm = j...
Add extra parameters to be safe
<nb> public class TypeEvalContext { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static TypeEvalContext fast ( @ notnull PsiFile origin ) { - return new TypeEvalContext ( false , true , origin ) ; - } - - COMMENT COMMENT COMMENT COMMENT
Removed fast type eval context with origin as unused
<nb> public class AssetFile extends FileHandler { typeNode = TypeTreeUtils . getTypeNode ( info . unityClass ( ) , versionInfo . unityRevision ( ) , false ) ; } - + ObjectData data = new ObjectData ( id , versionInfo ) ; data . info ( info ) ; data . buffer ( buf ) ; <nb> public class AssetFile extend...
Fixed isStandalone setStandalone
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BinaryHttpResponseHandler extends AsyncHttpResponseHandler { Header contentTypeHeader = contentTypeHeaders [ NUMBER0 ] ; boolean foundAllowedContentType = false ; for ( String a...
switch binary response handler content type filter to a regex for more flexibility
<nb> public class SwiftUnderFileSystemTest { } COMMENT - COMMENT + COMMENT COMMENT @ test public void stripPrefixIfPresentTest ( ) throws Exception { <nb> public class SwiftUnderFileSystemTest { } ; for ( int i = NUMBER0 ; i < inputs . length ; i ++ ) { Assert . assertEquals ( results [ i ] , Wh...
Fix test compile error
<nb> public class YAMLLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSett return STRING0 + STRING1 + STRING2 + STRING3 + STRING4 ; } + @ override + public boolean isIndentBasedLanguageSemantics ( ) { + return true ; + } + private class YAMLIndentOptionsEditor extends IndentOptionsEditor { ...
disable smart backspace for languages with semantics depending on indents
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class Application implements SystemListener {
add javadoc link to SimpleApplication in Application
<nb> public class HttpRemoteTask } } ) ) ; + ExecutionStats stats = new ExecutionStats ( ) ; + stats . addSplits ( splits . size ( ) ) ; taskInfo . set ( new TaskInfo ( queryId , stageId , taskId , TaskState . PLANNED , location , bufferStates , - new ExecutionStats ( ) , + stats , Immutable...
Record number of split for a task even before it is scheduled
<nb> import NAMESPACE ; public class WarClassloadingDependencyProcessor implements DeploymentUnitProcessor { private static final ModuleIdentifier JAVAX_EE_API = ModuleIdentifier . create ( STRING0 ) ; - private static final ModuleIdentifier APACHE_XERCES = ModuleIdentifier . create ( STRING1 ) ; private st...
Don t add implicit dependency on xerces