diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ContextConfig implements LifecycleListener { private static final Log log = LogFactory . getLog ( ContextConfig . class ) ; - private static final String SCI_LOCATION = - STRING0 ; - COMMENT COMMENT
Remove unused code
<nb> public class API { HttpMessage msg = new HttpMessage ( ) ; msg . setRequestHeader ( requestHeader ) ; + if ( requestHeader . getContentLength ( ) > NUMBER0 ) { + msg . setRequestBody ( httpIn . readRequestBody ( requestHeader ) ) ; + } String component = null ; ApiImplementor impl = null ; Reques...
Change ZAP API to read use the request body
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public interface AsyncChannelWrapper { Future < Integer > read ( ByteBuffer dst ) ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMM...
Add some comments
<nb> final class LoggerPrinter implements Printer { return ; } try { + json = json . trim ( ) ; if ( json . startsWith ( STRING0 ) ) { JSONObject jsonObject = new JSONObject ( json ) ; String message = jsonObject . toString ( JSON_INDENT ) ;
Trimmed space from json forat string
<nb> public class MetadataCollection catch ( InvalidSyntaxException e ) { FMLLog . log ( Level . SEVERE , e , STRING0 , sourceName ) ; - return null ; + return new MetadataCollection ( ) ; } catch ( Exception e ) {
Actually fix the corrupt JSON problem
<nb> class CodeArea extends RSyntaxTextArea { private static final long serialVersionUID = NUMBER0 ; - public static final Color BACKGROUND = new Color ( NUMBER1 ) ; + public static final Color BACKGROUND = new Color ( NUMBER2 ) ; + public static final Color JUMP_TOKEN_FGD = new Color ( NUMBER3 ) ; priv...
replace underline to color highlight experimental
<nb> public class WebAppClassLoader extends URLClassLoader COMMENT private List < URL > toList ( Enumeration < URL > e ) { + if ( e == null ) + return new ArrayList < URL > ( ) ; return Collections . list ( e ) ; }
jetty sh starts two unix processes
<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable if ( mClosed ) { return ; } + if ( mShouldCacheCurrentBlock && mShouldCacheIncompleteBlock ) { + readCurrentBlockTill ( mFileLength ) ; + } if ( mCurrentBlockInStream != null ) { mCurrentBlockInStream . close ( ) ; ...
Remove the read to close
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility getLocationInWindow ( location ) ; final AttachInfo info = mAttachInfo ; - location [ NUMBER0 ] += info . mWindowLeft ; - location [ NUMBER1 ] += info . mWindowTop ; + if ( info != null ) { + location [ NUMBER0 ] +...
Fixes a potential NPE in View
<nb> public final class MatrixTranformations { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class BlockBuildcraftFluid extends BlockFluidClassic { @ override public void onEntityCollidedWithBlock ( World world , int x , int y , int z , Entity entity ) { - - if ( ! ...
Fix CheckSyle error
<nb> public final class PathFragment implements Comparable < PathFragment > , Serializabl @ override public int hashCode ( ) { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE int h = h...
Add comments about subtle benign race in PathFragment hashCode
<nb> class CommentAdapter extends RecyclerView . Adapter < RecyclerView . ViewHolder > { comment . getAvatarForDisplay ( mAvatarSz ) ; comment . getFormattedTitle ( ) ; - SINGLE String content = StringUtils . notNullStr ( comment . getCommentText ( ) ) ; + SINGLE Spanned spanned = WPHtml . fromHtml ( cont...
added benefitial comment to clarify how to get images if you wanted to
<nb> public final class ClassTranslator extends AbstractTranslator { if ( ! isTrait ( ) ) { JsFunction initializer = Translation . generateClassInitializerMethod ( classDeclaration , classDeclarationContext ) ; if ( context ( ) . isEcma5 ( ) ) { - jsClassDeclaration . getArguments ( ) . add ( isObject ( ) ? ini...
don t enclose function if it is not necessary
<nb> public class KeyBindingRegistry COMMENT public KeyHandler ( KeyBinding [ ] keyBindings , boolean [ ] repeatings ) { + assert keyBindings . length == repeatings . length : STRING0 ; this . keyBindings = keyBindings ; this . repeatings = repeatings ; + this . keyDown = new boolean [ keyBindings . lengt...
Fix up null array in keybinding handler
<nb> public class IndexUploader { File toUpload = zipFile ; boolean uploaded = uploadFileToServer ( toUpload , summary , uc ) ; SINGLE - if ( uploaded && targetDirectory != null ) { + if ( uploaded && targetDirectory != null && ! targetDirectory . equals ( directory ) ) { File toBackup = new File ( targetDi...
ignore backup dir when same as source dir
<nb> public class DuplicatesIndex extends FileBasedIndexExtension < Integer , TIntArrayL MyFragmentsCollector collector = new MyFragmentsCollector ( profile , ( ( LanguageFileType ) type ) . getLanguage ( ) ) ; DuplocateVisitor visitor = profile . createVisitor ( collector , true ) ; - visitor . visitNode ( inp...
for unsaved documents take proper psi
<nb> public class ConeCollisionShape extends CollisionShape { public float getRadius ( ) { return radius ; } + + public float getHeight ( ) { + return height ; + } public void write ( JmeExporter ex ) throws IOException { super . write ( ex ) ;
Missing getHeight present on jbullet
<nb> public class SlidingPaneLayout extends ViewGroup { for ( int i = NUMBER0 ; i < childCount ; i ++ ) { final View child = getChildAt ( i ) ; if ( ! filter ( child ) && ( child . getVisibility ( ) == View . VISIBLE ) ) { - child . setImportantForAccessibility ( View . IMPORTANT_FOR_ACCESSIBILITY_YES ) ; + S...
Fix build by using support library methods in support lib
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Move AwsClient to com hazelcast aws
<nb> public class RefineServletTests extends RefineTest { } SINGLE - @ test + @ test ( enabled = false ) SINGLE public void doPostRegressionTest ( ) { whenGetCommandNameThenReturn ( TEST_COMMAND_PATH ) ; whenGetMethodThenReturn ( POST ) ;
Disable failing test until it can be debugged
<nb> public class XsltEndpoint extends ProcessorEndpoint { return cacheStylesheet ; } + @ managedattribute ( description = STRING0 ) + public String getState ( ) { + return getStatus ( ) . name ( ) ; + } + + @ managedattribute ( description = STRING1 ) + public String getCamelId ( ) { + return get...
Added missing attributes to xslt endpoint for JMX
<nb> public class OptionsEditor extends JPanel implements DataProvider , Place . Navigat final MouseEvent me = ( MouseEvent ) event ; if ( SwingUtilities . isDescendingFrom ( me . getComponent ( ) , SwingUtilities . getWindowAncestor ( myContentWrapper ) ) || isPopupOverEditor ( me . getComponent ( ) ) ) { queueM...
Do not mark filter as empty after clicking on a configurable
<nb> public interface TypeDescription extends TypeDefinition , ByteCodeElement , TypeVa COMMENT COMMENT COMMENT - class ForLoadedType extends AbstractBase { + class ForLoadedType extends AbstractBase implements Serializable { COMMENT COMMENT
Make type description for loaded type serializable
<nb> public class SiteSettingsFragment extends PreferenceFragment list . setAdapter ( new ArrayAdapter < > ( getActivity ( ) , R . layout . wp_simple_list_item_1 , mEditingList ) ) ; + mSiteSettings . saveSettings ( ) ; return true ; } } ) ; <nb> public class SiteSettingsFragment extends PreferenceFragm...
Saving hold for moderation and blacklist changes immediately
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; ...
rename hierarchy imports in worker
<nb> public final class PactRecord implements Value int shift = NUMBER0 ; int curr ; numFields = numFields & NUMBER1 ; - while ( ( curr = data [ pos -- ] ) >= MAX_BIT ) { + while ( ( curr = data [ pos -- ] & NUMBER2 ) >= MAX_BIT ) { numFields |= ( curr & NUMBER1 ) < < shift ; shift += NUMBER0 ; }
Fixed bug in var len integer deserialization
<nb> public enum ReferenceType { super ( referent , q ) ; this . handler = handler ; } - @ override public V getHandler ( ) { return handler ; } <nb> public enum ReferenceType { super ( referent , q ) ; this . handler = handler ; } - @ override public V getHandler ( ) { return handler ; } ...
removes some Override usages where methods of an interface are implemented that do not exist in the super class
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public class BuildArtifactsBeforeRun implements BeforeRunTaskProvider < BuildArtifactsBeforeRunTask > { - public sta...
conversion fixed test added weblogict tests module merged with weblogic
<nb> public final class ProxyHandler implements HttpHandler { HeaderValues values ; while ( f != - NUMBER0 ) { values = from . fiCurrent ( f ) ; - if ( to . contains ( values . getHeaderName ( ) ) ) { + if ( ! to . contains ( values . getHeaderName ( ) ) ) { SINGLE - continue ; + to . putAll ( values . ...
Fix bug in header copy
<nb> public abstract class ImmutableListConverter < ImmutableItem , Item > { boolean needsCopy = false ; if ( iterable instanceof ImmutableList ) { for ( Item element : iterable ) { - if ( isImmutable ( element ) ) { + if ( ! isImmutable ( element ) ) { needsCopy = true ; break ; }
Fix logic that determine if an immutable list needs to be copied
<nb> import NAMESPACE ; COMMENT COMMENT public class ExtractMethodAction extends BaseRefactoringAction { + public ExtractMethodAction ( ) { + setInjectedContext ( true ) ; + } + public boolean isAvailableInEditorOnly ( ) { return true ; } <nb> import NAMESPACE ; import NAMESPACE ; public cla...
introduce field constant work properly in mxml
<nb> public class UnderFileSystemDataServerHandler { SINGLE try ( InputStream in = mWorker . getUfsInputStream ( ufsFileId , offset ) ) { int read = in . read ( data ) ; - DataBuffer buf = read != - NUMBER0 ? new DataByteBuffer ( ByteBuffer . wrap ( data ) , read ) : null ; + DataBuffer buf = read != - NUMBER...
Wrap the data portion of the data instead of everything
<nb> public enum Material { RAW_CHICKEN ( NUMBER0 ) , COOKED_CHICKEN ( NUMBER1 ) , ROTTEN_FLESH ( NUMBER2 ) , - ENDER_PEARL ( NUMBER3 ) , + ENDER_PEARL ( NUMBER3 , NUMBER4 ) , BLAZE_ROD ( NUMBER5 ) , GHAST_TEAR ( NUMBER6 ) , GOLD_NUGGET ( NUMBER7 ) ,
Fix max stacksize on EnderPearls
<nb> public class ScrollingImageView extends View { left += width ; } - if ( isStarted ) { + if ( isStarted && speed != NUMBER0 ) { offset -= abs ( speed ) ; postInvalidateOnAnimation ( ) ; } <nb> public class ScrollingImageView extends View { invalidate ( ) ; } } + + public void setSpeed ( ...
Added setter for speed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SpyingOnRealObjectsTest extends TestBase { } @ test + public void shouldVerifyNoMoreInteractionsAndFail ( ) { + spy ....
added some more test scenarios
<nb> public class Handler { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface Callback { public boolean handleMessage ( Message msg ) ;
Add javadoc to Handler Callback handleMessage
<nb> public class TextEditingTargetWidget if ( parenPos != - NUMBER0 ) selectedOption = selectedOption . substring ( NUMBER1 , parenPos ) . trim ( ) ; - setFormatText ( selectedOption ) ; + SINGLE + SINGLE + SINGLE + setFormatText ( STRING0 ) ; String prefix = fileType . isPlainMarkdown ( ) ? STRING...
remove format suffix from knit toolbar button
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Manager { ArrayList < Integer > ids = new ArrayList < Integer > ( ) ; for ( String key : keys ) { - ids . add ( Integer . parseInt ( key )...
Catch previously valid notification non int keys
<nb> public class NewViolationsDecorator implements Decorator { public void decorate ( Resource resource , DecoratorContext context ) { Measure measure = new Measure ( CoreMetrics . NEW_VIOLATIONS ) ; for ( int index = NUMBER0 ; index < NUMBER1 ; index ++ ) { - int days = timeMachineConfiguration . getDiffPerio...
Fix NPE in NewViolationsDecorator
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT public class GBMTest2 extends TreeTestWithBalanceAndCrossVal { + @ beforeclass public static void stall ( ) { stall_till_cloudsize...
Add missing stall for cloudsize
<nb> public final class QualityGateStatus { } @ override + public boolean equals ( @ nullable Object o ) { + if ( this == o ) { + return true ; + } + if ( o == null || getClass ( ) != o . getClass ( ) ) { + return false ; + } + QualityGateStatus that = ( QualityGateStatus ) o ; + return status =...
add QualityGateStatus equals to fix MeasureRepoEntry equalsByQualityGateStatus
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AbstractResponseBodySubscriber implements Subscriber < DataBuffer > @ override void onSubscribe ( AbstractResponseBodySubscriber subscriber , Subscription s...
Make AbstractResponseBodySubscriber onSubscribe thread safe
<nb> public class Subscription extends PrivateFields implements ISubscription { cur . getType ( ) ) ) ; } - SINGLE + SINGLE IPlan previousPlan = null ; IPlanPhase previousPhase = null ; IPlan nextPlan = null ; IPlanPhase nextPhase = null ; try { previousPlan = catalog . findPlan ( previousPlanName...
Naive exception handling broke tests this is the fix though it should be temporary until Stephane does it correctly
<nb> final public class FastMath { return NUMBER0 ; } else if ( flt < - NUMBER1 f ) { return ( short ) ( NUMBER0 | NUMBER2 ) ; - } else if ( flt > FLOAT0 && flt < FLOAT1 ) { + } else if ( flt > FLOAT0 && flt < FLOAT2 ) { return NUMBER3 ; - } else if ( flt < FLOAT0 && flt > - FLOAT1 ) { + } else if ( flt...
Changed the minimum value of a float when converting it to half float
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT public final class GitRefNameValidator implements InputValidator { <nb> public final class GitRefNameValidator implements InputValidator { } private static final Pattern ILLEGAL = Pattern . compile ( STRING0 + SINGLE + STRING1 + S...
make common illegal pattern
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; name = STRING0 , summary = STRING1 , explanation = STRING2 - + STRING3 , - category...
Promote JUnitAmbiguousTestClass to MATURE
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultBuildListener implements BuildListener { public void buildFinished ( BuildResult result ) { File rootDir = result . getSettings ( ) . get...
Uncommented accidentally commented code block
<nb> public class FindReplace { case STRING0 : return STRING1 ; + case STRING2 : + return STRING3 ; + case STRING4 : + return STRING5 ; + case STRING6 : + return STRING7 ; } break ; case STRING8 :
Allow n r t to be used in regex replacement
<nb> final class IconUtilities { int sourceWidth = icon . getIntrinsicWidth ( ) ; int sourceHeight = icon . getIntrinsicHeight ( ) ; - if ( sourceWidth > NUMBER0 && sourceWidth > NUMBER0 ) { + if ( sourceWidth > NUMBER0 && sourceHeight > NUMBER0 ) { SINGLE if ( width < sourceWidth || height < sourceHeight...
Fix wrong condition
<nb> class ConfusionRuleEvaluator { private static final String TOKEN = STRING0 ; private static final String TOKEN_HOMOPHONE = STRING1 ; - SINGLE + private static final boolean CASE_SENSITIVE = false ; private static final List < Long > EVAL_FACTORS = Arrays . asList ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3...
add a constant
<nb> public class MultiWaveView extends View { maxWidth = Math . max ( maxWidth , target . getWidth ( ) ) ; maxHeight = Math . max ( maxHeight , target . getHeight ( ) ) ; } + mTargetResourceId = resourceId ; + mTargetDrawables = targetDrawables ; if ( mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxH...
Fix issue with MultiWaveView in incoming call screen
<nb> public class DruidDataSource extends DruidAbstractDataSource implements DruidDat } ConnectionHolder pollLast ( long timeout , TimeUnit unit ) throws InterruptedException , SQLException { - long estimate = unit . toNanos ( timeout ) ; + final long nanos = unit . toNanos ( timeout ) ; + long estimate = n...
add timeout exception message
<nb> public class XmlHighlightVisitor extends XmlElementVisitor implements HighlightV } PsiElement eParent = e . getParent ( ) ; if ( eParent instanceof PsiComment ) e = eParent ; + if ( eParent instanceof XmlProcessingInstruction ) break ; addToResults ( HighlightInfo . createHighlightInfo ( HighlightInf...
do not highlight error about preceding content from subsequence processing instructions
<nb> public class DatabaseConnectionFactory { private static final Logger logger = Logger . getLogger ( DatabaseConnectionFactory . class . getSimpleName ( ) ) ; public static final String DATABASE_DRIVER = STRING0 ; - public static final String DATABASE_CONNECTION_FILE_STRING = STRING1 ; + public static fina...
Removing shutdown from options to prevent testing weirdness with connections and opening closing
<nb> public class AccountRegWizardContainerImpl public AccountRegistrationWizard getProtocolWizard ( ProtocolProviderService protocolProvider ) { - return registeredWizards . get ( protocolProvider . getProtocolDisplayName ( ) ) ; + AccountRegistrationWizard res = registeredWizards . get ( protocolProvider . ...
Fixes editing some old saved yahoo accounts
<nb> public class Change { return revisionHashCode ( getBeforeRevision ( ) ) * NUMBER0 + revisionHashCode ( getAfterRevision ( ) ) ; } - private static int revisionHashCode ( ContentRevision rev ) { - if ( rev == null ) return NUMBER1 ; - return rev . getFile ( ) . getIOFile ( ) . getPath ( ) . hashCode ( )...
Synchronized Change hashCode and Change equals
<nb> public class HiveConf extends Configuration { ConfVars . HIVEENFORCESORTING . varname , ConfVars . HIVEENFORCESORTMERGEBUCKETMAPJOIN . varname , ConfVars . HIVEEXPREVALUATIONCACHE . varname , - ConfVars . HIVEGROUPBYSKEW . varname , ConfVars . HIVEHASHTABLELOADFACTOR . varname , ConfVars . HIVEHASHTABL...
update sql standard authorization configuration whitelist more optimization flags Thejas Nair reviewed by Gunther Hagleitner
<nb> - package NAMESPACE ; - - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT + package NAMESPACE ; + public class GoogleLoginSecrets { public static final String SE...
add license to GoogleLoginSecrets
<nb> public class ParallelResolverImpl } int rcode = response . getRcode ( ) ; - SINGLE + SINGLE SINGLE if ( rcode == Rcode . NXDOMAIN ) - return true ; + return false ; SINGLE SINGLE
Makes the parallel resolver check and the backup servers when the answer is NXDOMAIN
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public class ContentTypeITest extends WithJetty { <nb> public class ContentTypeITest extends WithJetty { expect ( ) . contentType ( STRING0 ) . when ( ) . get ( STRING1 ) ; } + + @ test + public ...
Added test for content type validation with hamcrest matchers
<nb> public class EnforcedPlainTextFileTypeManager extends PersistentFileSetManager i if ( ! DirectoryIndex . getInstance ( project ) . isInitialized ( ) ) return false ; myProcessedProjects . add ( project ) ; ProjectPlainTextFileTypeManager projectPlainTextFileTypeManager = ProjectPlainTextFileTypeManager . get...
Enforced plain text file type manager NPE fix
<nb> public class GPUSkinningMaterial extends PhongMaterial { STRING0 + STRING1 + - STRING2 + STRING2 + STRING3 +
Add missing plus
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DiagnosticGroup implements Serializable { Maps . newHashMap ( ) ; COMMENT - static DiagnosticGroup forType ( DiagnosticType type ) { + public static Diagno...
expand the diagnostic group api
<nb> public class AuthenticatorDescription implements Parcelable { return STRING0 + type + STRING1 ; } - COMMENT + COMMENT public void writeToParcel ( Parcel dest , int flags ) { dest . writeString ( type ) ; dest . writeString ( packageName ) ;
Fix misspelling in JavaDoc tag
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE COMMENT COMMENT COMMENT - public class JavaChangeInfoImpl implements JavaChangeInfo { + public class JavaC...
allow plugins to associate userdata with a JavaChangeInfo
<nb> public class GLMGridView extends Request2 { if ( ( j = UKV . get ( grid . _jobKey ) ) != null ) { switch ( j . state ) { case DONE : return Response . done ( this ) ; - case CRASHED : return Response . error ( j . exception ) ; + case FAILED : return Response . error ( j . exception ) ; case CANCELLED ...
Rename JobState CRASHED to JobSTate FAILED which is a bit gentler on the eyes
<nb> public abstract class ChooseByNameBase { ownerWindow . setCursor ( Cursor . getPredefinedCursor ( Cursor . WAIT_CURSOR ) ) ; } } - myNames [ index ] = myModel . getNames ( checkboxState ) ; - assert myNames [ index ] != null : STRING0 + myModel + STRING1 + myModel . getClass ( ) + STRING2 ; + + if ( ...
use only one name set for ContributorsBasedGotoModel since indices don t distinguish library project keys
<nb> public class ChatConversationPanel ReplacementService source = entry . getValue ( ) ; if ( ! ( GuiActivator . getConfigurationService ( ) . getBoolean ( - ReplacementProperty . getPropertyName ( entry - . getKey ( ) ) , true ) && ( isEnabled || entry . getKey ( ) + ReplacementProperty . getPropertyName...
Fixing preview source keys in ChatConversationPanel patch provided by Purvesh Sahoo
<nb> public class OrcRawRecordMerger implements AcidInputFormat . RawReader < OrcStruct > { Path deltaFile ) throws IOException { Path lengths = OrcRecordUpdater . getSideFile ( deltaFile ) ; long result = Long . MAX_VALUE ; - try { - FSDataInputStream stream = fs . open ( lengths ) ; + try ( FSDataInputStr...
Fix Connection Leak in OrcRawRecordMerger Thomas Poepping via Prasanth J
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class MainActivity extends Activity { + private static final String LOGTAG = STRING0 ; + private TwoWayView m...
sample Use new RecyclerListener
<nb> public class JoglGraphics extends JoglGraphicsBase implements GLEventListener { } } } - ( ( JoglInput ) ( ( JoglApplication ) Gdx . app ) . getInput ( ) ) . processEvents ( ) ; + ( ( JoglInput ) ( Gdx . input ) ) . processEvents ( ) ; listener . render ( ) ; ( ( OpenALAudio ) Gdx . audio ) . update (...
changed JoglGraphcs uses Gdx input and casts to JoglInput instead of getting Gdx app getInput
<nb> public class IDeviceConnection implements AutoCloseable { public int read ( ) throws IOException { byte [ ] b = new byte [ NUMBER0 ] ; int n = read ( b ) ; - return n <= NUMBER1 ? - NUMBER0 : b [ NUMBER1 ] ; + return n <= NUMBER1 ? - NUMBER0 : b [ NUMBER1 ] & NUMBER2 ; } @ override
libimobiledevice binding has a custom DeviceInputStream which violates the contract of InputStream read
<nb> import NAMESPACE ; COMMENT public class ActiveRulesBuilder { - private final Map < RuleKey , NewActiveRule > map = Maps . newHashMap ( ) ; + private final Map < RuleKey , NewActiveRule > map = Maps . newLinkedHashMap ( ) ; public NewActiveRule create ( RuleKey ruleKey ) { return new NewActiveRule (...
Use a LinkedHashMap to ease assertions in unit tests
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add note to CrossOrigin javadoc
<nb> public class WorkflowDefinitionConversionTest { boolean startTaskFound = false ; for ( FlowElement element : process . getFlowElements ( ) ) { if ( element instanceof StartEvent ) { - assertEquals ( STRING0 , ( ( StartEvent ) element ) . getFormKey ( ) ) ; + assertEquals ( STRING1 , ( ( StartEvent ) elem...
Fixed failing test in alfresco simple workflow conversion
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RigidWebView extends WebView { super ( context , attrs , defStyle ) ; } + private boolean noThrottle = Build . VERSION . SDK_INT >= NUMBER0 ; SINGLE priva...
Disable RigidWebView resize throttling on Android Lollipop or higher
<nb> public class RaptorSessionProperties false ) , integerSessionProperty ( ONE_SPLIT_PER_BUCKET_THRESHOLD , - STRING0 , - NUMBER0 , + STRING1 , + config . getOneSplitPerBucketThreshold ( ) , false ) ) ; } <nb> public class StorageManagerConfig private long maxShardRows = NUMBER1 ; private Da...
Add Raptor one split per bucket threshold configuration
<nb> public class RegistrationStateChangeEvent extends PropertyChangeEvent RegistrationStateChangeEvent . class . getName ( ) , oldValue , newValue ) ; + this . reasonCode = reasonCode ; + this . reason = reason ; } COMMENT <nb> public class RegistrationStateChangeEvent extends PropertyChangeEvent {...
Fixed initializing parameters in the constructor
<nb> public class StandardIDPool implements IDPool { nextID = bufferNextID ; currentMaxID = bufferMaxID ; - log . debug ( STRING0 , partitionID , new long [ ] { nextID , currentMaxID } ) ; + log . debug ( STRING1 , new Object [ ] { partitionID , nextID , currentMaxID } ) ; assert nextID > NUMBER0 && curre...
Reformat broken debug log message
<nb> public class StatsSingleItemDetailsActivity extends AppCompatActivity } SINGLE - if ( mItemTitle != null ) { + if ( mItemTitle != null || mItemURL != null ) { mStatsForLabel . setVisibility ( View . VISIBLE ) ; - mStatsForLabel . setText ( mItemTitle ) ; + mStatsForLabel . setText ( mItemTitle != n...
Use the URL when the title is not available on the main top label
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PyiClassMembersProvider extends PyClassMembersProviderBase implemen @ nullable @ override - public PsiElement resolveMember ( @ notnull Py...
Fixed compilation due to API changes in the master branch
<nb> public class MigrationTest { ShadowLog . stream = System . out ; ShadowSQLiteConnection . reset ( ) ; - account = Preferences . getPreferences ( RuntimeEnvironment . application ) . newAccount ( ) ; + account = getNewAccount ( ) ; StorageManager storageManager = StorageManager . getInstance ( Runtime...
Introduce hack to remove flakiness from MigrationTest
<nb> public class DataSourceFactory implements ObjectFactory { return null ; } Reference ref = ( Reference ) obj ; - if ( ! STRING0 . equals ( ref . getClassName ( ) ) ) { + + boolean ok = false ; + if ( STRING0 . equals ( ref . getClassName ( ) ) ) { + ok = true ; + } + if ( org . apache . tomcat ....
Allow the type to be the exact name of the data source
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements } } - @ targetapi ( NUMBER0 ) + @ targetapi ( NUMBER1 ) private SparseBooleanArray cloneCheckStates ( ) { if ( mCheckStates == null ) { return null ; <nb> public class TwoWayView extends AdapterView < ListAdapter > implements ...
library Set correct min version for clone method
<nb> public final class Settings { DTMF_TONE_TYPE_WHEN_DIALING , HEARING_AID , TTY_MODE , + MASTER_MONO , SOUND_EFFECTS_ENABLED , HAPTIC_FEEDBACK_ENABLED , POWER_SOUNDS_ENABLED , SINGLE
Back up restore the mono audio setting
<nb> public class ActivityGenerator { STRING0 + SINGLE STRING1 + SINGLE STRING2 + SINGLE - STRING1 + SINGLE STRING3 + SINGLE STRING1 + SINGLE STRING2 + SINGLE
removing extra empty line
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea public TwoDimTable createSummaryTable ( ) { Neurons [ ] neurons = DeepLearningTask . makeNeuronsForTesting ( this ) ; TwoDimTable table = new TwoDimTable ( - STRING0 , + STRING1 + + ( get_params ( ) . _autoencoder ? ST...
Add model type to DL model summary
<nb> public class VerbalExpression { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public Builder maybe ( final Builder regex ) {
Fix Javadoc comments in maybe method
<nb> public class NodeCmd StringBuilder header = new StringBuilder ( ) ; header . append ( STRING0 ) ; SINGLE - addCmdHelp ( header , STRING1 , STRING2 ) ; + addCmdHelp ( header , STRING1 , STRING3 ) ; addCmdHelp ( header , STRING4 , STRING5 ) ; - addCmdHelp ( header , STRING6 , STRING7 ) ; + addCmdHelp...
Fix minor typos in nodetool help
<nb> public class RenderManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean removePreView ( String viewName ) { + for ( int i = NUMBER0 ; i < preViewPorts . size ( ) ; i ++ ) { + if ( preViewPorts . get ( i ) . getName ( ) . equals ( viewN...
add a RenderManager method to remove a pre view by name in gradle restructure
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Add missing License header
<nb> public interface RxBackground { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Remove some unneeded stuff in the javadoc example
<nb> public class VaultToolTestCase { @ test public void testVaultTool ( ) throws IOException , VaultReaderException { - SINGLE + SINGLE System . setOut ( new PrintStream ( SYSTEM_OUT ) ) ; try { <nb> public class VaultToolTestCase { } SYSTEM_OUT . flush ( ) ; String ouput = new String ( SYSTEM_...
Changing test case to work with internationalized messages
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class MessageBytes implements Cloneable , Serializable { return strValue ; } + COMMENT + COMMENT + COMMENT + public Charset getCharset ( )...
Add the ability to control the Charset used for String byte conversions
<nb> public class PropertiesUtil { } ; scanner . setIncludeResources ( true ) ; scanner . setIgnoreException ( true ) ; + scanner . setExcludeAllEntriesMode ( ) ; scanner . setIncludedEntries ( rootTemplate ) ; scanner . scanDefaultClasspath ( ) ; return p ; <nb> public class PropsUtil { } ; scanner...
Fix props loading
<nb> public abstract class GuiAdvancedInterface extends GuiBuildCraft { int i2 = ( mouseX - cornerX ) ; int k2 = mouseY - cornerY ; drawCreativeTabHoveringText ( s , i2 , k2 ) ; + RenderHelper . enableGUIStandardItemLighting ( ) ; } } }
Fix small rendering bug when item is hovering over AdvancedSlot
<nb> public class ReactVideoView extends ScalableVideoView implements MediaPlayer . OnP } } - public void reset ( ) { - mMediaPlayer . reset ( ) ; - } - public void setSrc ( final String uriString , final boolean isNetwork ) throws IOException { - reset ( ) ; + mMediaPlayer . reset ( ) ; if ( is...
Android Prepare media player asynchronously
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ skylarkmodule ( name = STRING0 , doc = STRING1 , documented = false ) + @ skylarkmodule ( + name = STRING2 , + doc = + STRING3 + + STRING4 + + STRING5 ) public class SkylarkAspect implements SkylarkValue { private final BaseFunction implementat...
Added more pointers to Aspect related documentation
<nb> public enum ItemType { usesDamageValue . add ( ItemID . GLASS_BOTTLE ) ; usesDamageValue . add ( ItemID . SPAWN_EGG ) ; usesDamageValue . add ( ItemID . MAP ) ; + usesDamageValue . add ( ItemID . HEAD ) ; } COMMENT
Updated item information database
<nb> public class KotlinToJVMBytecodeCompiler { } } - public static boolean compileBunchOfSources ( - K2JVMCompileEnvironmentConfiguration configuration , - List < String > sourceFilesOrDirs , File jar , File outputDir , boolean script , boolean includeRuntime ) { - for ( String sourceFileOrDir : sourceFi...
Removed unused method