diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class SVMLightDParseTask extends DParseTask { _colTypes = Arrays . copyOf ( _colTypes , ncols ) ; _min = Arrays . copyOf ( _min , ncols ) ; SINGLE _max = Arrays . copyOf ( _max , ncols ) ; + if ( _myrows == NUMBER0 ) { SINGLE + _min [ ncols - NUMBER1 ] = Double . POSITIVE_INFINITY ; + _max [ nco...
Fixed bug in sum light parse
<nb> public class NodeDataImpl implements NodeData , GroupData , DynamicData { public NodeDataImpl ( Node node ) { this . node = node ; + this . x = ( float ) ( ( FLOAT0 + Math . random ( ) ) * NUMBER0 ) - NUMBER1 ; + this . y = ( float ) ( ( FLOAT0 + Math . random ( ) ) * NUMBER0 ) - NUMBER1 ; } public...
Add defautl position to NodeDataImpl different than zero
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT @ configuration + @ autoconfigureafter ( RedisAuto...
Expose RedisTemplate with explicit type
<nb> import NAMESPACE ; public class FlatWelcomeFrameProvider implements WelcomeFrameProvider { @ override public IdeFrame createFrame ( ) { - if ( Registry . is ( STRING0 ) - && ( PlatformUtils . isIntelliJ ( ) || PlatformUtils . isCidr ( ) ) ) { - return new FlatWelcomeFrame ( ) ; - } - return null ; ...
introduce new static method isEnabled
<nb> public class FieldProcessorTest { { @ override public Iterator iterator ( ) { - throw new RuntimeException ( STRING0 ) ; + throw new RuntimeException ( STRING1 ) ; } } ;
Tidied up test failure message
<nb> public class NetworkLinker { osvertex . outStreet . setFromVertex ( newV ) ; newV . addIncoming ( osvertex . inStreet ) ; newV . addOutgoing ( osvertex . outStreet ) ; + newV . addIncoming ( approach ) ; + newV . addOutgoing ( approachBack ) ; osvertex . inStreet = approachBack ; osvertex . outStreet...
Fix remaining NetworkLinker bug which I ve noticed
<nb> public class RecordingService { private String publishedDir = STRING0 ; private String unpublishedDir = STRING1 ; + private String deletedDir = STRING2 ; private RecordingServiceHelper recordingServiceHelper ; private String recordStatusDir ; <nb> public class RecordingService { if ( meetingIds ....
RecordingService process a new directory deleted that represents a new state for processed recordings
<nb> public class GrCollectionTypeMembersProvider extends NonCodeMembersContributor { final PsiScopeProcessor processor , final GroovyPsiElement place , final ResolveState state ) { - if ( ! ( qualifierType instanceof PsiClassType ) ) return ; if ( ! GroovyPsiManager . isInheritorCached ( qualifierType , Comm...
Remove unnecessary checking of instanceof PsiClassType
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SummaryEditTextPreference extends EditTextPreference implements Pre Button negative = mDialog . getButton ( DialogInterface ....
Change dialog message color to orange for SummaryEditTextPreference
<nb> public class SliceQueryFilter implements IDiskAtomFilter } else if ( slice . includes ( cmp , newStart ) ) { - if ( ! reversed && sliceIncludesStatics ( slice , cfm ) && ! newStart . equals ( ByteBufferUtil . EMPTY_BYTE_BUFFER ) ) + if ( ! reversed && sliceIncludesStatics ( slice , cfm ) && ! newStart . ...
Fix check for non empty slice start
<nb> public class JingleUtils pt , payloadType . getName ( ) , ( double ) payloadType . getClockrate ( ) , - - NUMBER0 , payloadType . getChannels ( ) , + - NUMBER0 , paramsMap , null ) ;
Fix frame rate with jingle calls
<nb> public class PGraphicsOpenGL extends PGraphics { COMMENT protected WeakHashMap < PFont , FontTexture > fontMap ; - SINGLE - static protected PSurfaceJOGL surfaceJOGL ; - SINGLE SINGLE <nb> public class PGraphicsOpenGL extends PGraphics { @ override public PSurface createSurface ( ) { SING...
don t store renderer s surface in static field
<nb> public abstract class TimeBase implements EngineTime { } catch ( InterruptedException e ) { SINGLE } + now = getRawTimeInMs ( ) ; newDelta = now - last . get ( ) ; } if ( newDelta >= UPDATE_CAP ) {
fix my flawed attempt to recompute the delta
<nb> public class Platform { return getContainer ( ) . getComponentByKey ( key ) ; } - public static enum Status { + public enum Status { BOOTING , SAFEMODE , UP ; } } <nb> package NAMESPACE ; public interface IsAliveMapper { - static final int IS_ALIVE_RETURNED_VALUE = NUMBER0 ; + int IS_AL...
remove useless qualifiers
<nb> public class ClientEngineImpl implements ClientEngine , CoreService , PostJoinAwar if ( ! endpoint . isFirstConnection ( ) ) { final EventService eventService = nodeEngine . getEventService ( ) ; final Collection < EventRegistration > regs = eventService . getRegistrations ( SERVICE_NAME , SERVICE_NAME ) ; ...
removed prevent NPE fix
<nb> public class DruidMaster return master ; } - public DruidMasterConfig getConfig ( ) - { - return config ; - } - public Map < String , Double > getLoadStatus ( ) { Map < String , Integer > availableSegmentMap = Maps . newHashMap ( ) ;
remove getConfig method from DruidMaster
<nb> public class SecuredRedirectHandlerTest server = new Server ( ) ; - int port = NUMBER0 ; - int securePort = NUMBER1 ; + int port = NUMBER2 ; + int securePort = NUMBER3 ; SINGLE HttpConfiguration httpConf = new HttpConfiguration ( ) ;
Moving hardcoded ports to ephemeral range suitable for more environments
<nb> public class StoreFactory public LabelTokenStore newLabelTokenStore ( File baseFile ) { - return newLabelTokenStore ( new File ( baseFile . getParent ( ) + NAMES_PART ) , baseFile ) ; + return newLabelTokenStore ( new File ( baseFile + NAMES_PART ) , baseFile ) ; } private LabelTokenStore newLabelT...
Fix path for newLabelTokenStore
<nb> public class KafkaWriterTests { settings . put ( STRING0 , STRING1 ) ; settings . put ( STRING2 , false ) ; settings . put ( STRING3 , true ) ; - settings . put ( STRING4 , STRING5 ) ; + settings . put ( STRING4 , STRING6 ) ; return new KafkaWriter ( typenames , true , STRING7 , true , STRING6 , settin...
Fixed JUnit Test
<nb> public final class TypeFactory if ( ! result . hasHandlers ( ) ) { _typeCache . putIfAbsent ( key , result ) ; SINGLE } - else { - System . err . println ( STRING0 + rawType ) ; - System . err . println ( STRING1 + result ) ; - throw new Error ( STRING2 + result ) ; - } return result ; }
remove accidentally added system err calls
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix SuiteClasses example in javadoc
<nb> public class DashPathEffect extends PathEffect { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fix incorrect enum
<nb> public class DownloadableGtfsInputSource implements CsvInputSource { BufferedInputStream in = new BufferedInputStream ( _url . openStream ( ) ) ; BufferedOutputStream out = new BufferedOutputStream ( new FileOutputStream ( gtfsFile ) ) ; - - copyStreams ( in , out ) ; - + try { + copyStreams ( in ,...
on failed download do not save half finished gtfs
<nb> public class ORecordSerializerJSON extends ORecordSerializerStringAbstract { if ( attribSameRow ) firstAttribute = false ; } - if ( includeVer && record . getVersion ( ) > NUMBER0 ) { + if ( includeVer ) { json . writeAttribute ( firstAttribute ? indentLevel + NUMBER1 : NUMBER0 , firstAttribute , ATTRI...
Fixed bug on JSON converter
<nb> public interface Project extends Comparable < Project > { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Project extends Comparable < Project > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Project ...
Fixed broken javadoc links
<nb> public class CheckWikipediaDump { private static void ensureCorrectUsageOrExit ( String [ ] args ) { if ( args . length != NUMBER0 ) { System . err . println ( STRING0 ) ; - System . err . println ( STRING1 ) ; - System . err . println ( STRING2 ) ; + System . err . println ( STRING3 ) ; + System . e...
improve usage output
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public final class SqlStageExecution private final LinkedBlockingQueue < Throwab...
Change SqlStageExecution completeSources to concurrent set
<nb> public class FastImage extends Actor { private float sScaleY ; private float sWidth ; private float sHeight ; - private Sprite sprite = new Sprite ( ) ; - boolean updated = false ; + private Sprite sprite = new Sprite ( ) ; public FastImage ( String name ) { super ( name ) ; <nb> public class F...
fixed updated check in FastImage
<nb> public abstract class PersistedImpl implements Persisted { public int hashCode ( ) { return Objects . hashCode ( getObjectId ( ) , fields ) ; } + + @ override + public String toString ( ) { + return this . getClass ( ) . getSimpleName ( ) + STRING0 + + STRING1 + fields + + STRING2 + id + + STRI...
Adding generic toString method for persisted objects
<nb> public class ChatWindow { ChatTransport transport = ( ChatTransport ) transports . next ( ) ; + ImageIcon protocolStatusIcon ; if ( transport . getStatus ( ) != null ) { - Image protocolStatusIcon - = ImageLoader . getBytesInImage ( - transport . getStatus ( ) . getStatusIcon ( ) ) ; + protocol...
Add a protocol status icon to the chat window tooltip
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; @ stateless + @ transactionattribute ( TransactionAttributeType . NOT_SUPPORTED ) public class OPMLImporter...
import using small database transactions not a huge one with the whole OPML in it prevents long table lock
<nb> public abstract class PythonModuleTypeBase < T extends ModuleBuilder > extends Modu } public String getDescription ( ) { - return STRING0 ; + return STRING1 ; } public Icon getBigIcon ( ) {
mention Django in module type description
<nb> public abstract class AbstractSpawner implements Spawner { for ( BaseVector2i test : spiral ) { float val = surfaceHeightFacet . getWorld ( test . getX ( ) , test . getY ( ) ) ; int height = TeraMath . floorToInt ( val ) ; - if ( height > seaLevel ) { + if ( height >= seaLevel ) { return new Vector3f (...
Fix minor issues in AbstractSpawner
<nb> import NAMESPACE ; COMMENT public final class QuasarInstrumentor { public static final int ASMAPI = Opcodes . ASM5 ; - private final static String EXAMINED_CLASS = null ; SINGLE + private final static String EXAMINED_CLASS = System . getProperty ( STRING0 ) ; private static final boolean allowJdkInstru...
Add system property to write instrumented classes to disk
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public class ResourceDaoTest extends AbstractDaoTestCase { public void should_insert_using_existing_session ( ) throws Exception { setupData ( STRING0 ) ; - ResourceDto file1 = new ResourceDto ( ) + ResourceDto file1 = new ResourceDto ( ) . setUuid ( STRING1 ) . setKey ( STRING2 ) . setDeprecatedKey ...
Fix IT on MsSQL
<nb> public class MarkerType { } } ) ; - private static String getSubclassedClassTooltip ( @ notnull PsiClass aClass ) { + SINGLE + public static String getSubclassedClassTooltip ( @ notnull PsiClass aClass ) { PsiElementProcessor . CollectElementsWithLimit < PsiClass > processor = new PsiElementProcessor...
restore public visibility for classes used in Kotlin plugin
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused imports
<nb> public class MapRouteInfoControl extends MapControls implements IRouteInformatio protected void selectOnScreen ( View parentView , boolean target ) { selectFromMapTouch = true ; selectFromMapForTarget = target ; - hideDialog ( ) ; + SINGLE + SINGLE } protected void selectFavorite ( final View par...
Do not hide Waypoints dialogue for now
<nb> public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R boolean moreData = data . getFrameLength ( ) > frameData . getResource ( ) . remaining ( ) ; R newChannel = createChannel ( data , frameData ) ; if ( newChannel != null ) { - receivers . add ( newChannel ) ; + if ( ! ne...
Fix potential leak in framed channels
<nb> public class AnActionEvent implements PlaceProvider < String > { @ nullable public < T > T getData ( @ notnull DataKey < T > key ) { - return key . getData ( getDataContext ( ) ) ; + return getDataContext ( ) . getData ( key ) ; } COMMENT
deprecate key getData storage approach
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AsyncHttpResponseImpl extends FilteredDataEmitter implements Asyn @ override public void onStringAvailable ( String s ) { try { + s = s . trim ( ) ; if ( mRawHeaders . g...
Some HTTP servers are sending only newline instead of CRLF
<nb> class WebViewRenderer extends WebRenderer { @ override public void setUserAgentString ( String userAgentString ) { WebSettings webSettings = mWebView . getSettings ( ) ; - webSettings . setUserAgentString ( userAgentString ) ; + if ( null != webSettings ) { + webSettings . setUserAgentString ( userAgen...
Fixed a crash on websettings null
<nb> public class OperationSetBasicTelephonySipImpl , ex ) ; } } - - invite . setContent ( - callSession . createSdpOffer ( intendedDestination ) - , contentTypeHeader ) ; } catch ( ParseException ex ) {
Remove redundant call to createSdpOffer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ serverendpoint ( STRING0 ) public class EchoAnnotation { <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ serverendpoint ( STRING1 ) + COMMENT + COMMENT ...
Add some info and disable the async test one CVE saved hehe
<nb> public abstract class AbstractMarshaller implements Marshaller , Unmarshaller { COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class AbstractMarshaller implements Marshaller , Unmarshaller { return documentBuilder . newDocument ( ) ; } catch ( ParserCon...
AbstractMarshaller uses general exception message in extracted buildDocument method
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT public enum EnumIvoryTower { + INSTANCE ; @ override
Added book reference to singleton enum implementation
<nb> public class BeaconConfigFragment extends Fragment implements BeaconConfigHelper super . onPause ( ) ; mScanningAnimationDrawable . stop ( ) ; stopSearchingForDevices ( ) ; + } + + @ override + public void onDetach ( ) { + super . onDetach ( ) ; BeaconConfigHelper . shutDownConfigGatt ( ) ; }
Moved gatt shutdown into onDetach
<nb> public class AndroidDatabaseResults implements DatabaseResults { private static final DatabaseType databaseType = new SqliteAndroidDatabaseType ( ) ; public AndroidDatabaseResults ( Cursor cursor , ObjectCache objectCache ) { + this ( cursor , true , objectCache ) ; + } + + COMMENT + COMMENT + CO...
Added new constructor for advanced users
<nb> public class MorphButton extends CompoundButton { @ override public void refreshDrawableState ( ) { super . refreshDrawableState ( ) ; + refreshCurrentDrawable ( ) ; + } + private void refreshCurrentDrawable ( ) { if ( mCurrentDrawable != null ) { mCurrentDrawable . setState ( getDrawableState ( ...
allow jumping drawable states compat
<nb> public class AppWidgetHostView extends FrameLayout { if ( mInfo != null ) { Context theirContext = mContext . createPackageContext ( mInfo . provider . getPackageName ( ) , Context . CONTEXT_RESTRICTED ) ; + mRemoteContext = theirContext ; LayoutInflater inflater = ( LayoutInflater ) theirContext . get...
Use remote Context when inflating initialLayout add debug
<nb> public class FairBlockingQueue < E > implements BlockingQueue < E > { public boolean offer ( E e ) { final ReentrantLock lock = this . lock ; lock . lock ( ) ; + ExchangeCountDownLatch < E > c = null ; try { if ( waiters . size ( ) > NUMBER0 ) { - ExchangeCountDownLatch < E > c = waiters . poll ( ) ;...
Fix the performance issue don t count down until the lock has been released this allows for much more concurrency
<nb> public class AppInitializer implements IProgress { @ override public String getTranslation ( AbstractPoiType type ) { try { - Field f = R . string . class . getField ( STRING0 + type . getKeyName ( ) ) ; + Field f = R . string . class . getField ( STRING0 + type . getIconKeyName ( ) ) ; if ( f != null ...
Fix poi additional
<nb> public class GraphSONReader { public static void inputGraph ( final Graph inputGraph , final InputStream jsonInputStream , int bufferSize , final Set < String > edgePropertyKeys , final Set < String > vertexPropertyKeys ) throws IOException { + if ( jsonInputStream == null ) { + throw new IllegalArgument...
Add check for null InputStream to prevent infinite loop
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class AbstractDataReaderSun { + public abstract class AbstractDataReaderSun implements DataReader { pri...
implement DataReader interface
<nb> public class WriteError { result = NUMBER0 * result + details . hashCode ( ) ; return result ; } + + @ override + public String toString ( ) { + return STRING0 + + STRING1 + code + + STRING2 + message + STRING3 + + STRING4 + details + + STRING5 ; + } } <nb> public class BulkWriteError e...
Added toString method to WriteError and BulkWriteError
<nb> public class WritableScopeImpl extends WritableScopeWithImports { @ override public void addPropertyDescriptorByFieldName ( @ notnull String fieldName , @ notnull PropertyDescriptor propertyDescriptor ) { + if ( ! fieldName . startsWith ( STRING0 ) ) { + throw new IllegalStateException ( ) ; + } + ...
validate field names in JetScope
<nb> public class DatabaseUtils { window . setStartPosition ( position ) ; window . setNumColumns ( numColumns ) ; if ( cursor . moveToPosition ( position ) ) { - do { + rowloop: do { if ( ! window . allocRow ( ) ) { break ; } <nb> public class DatabaseUtils { } if ( ! success ) { window . freeL...
Terminate loop properly when cursor window is full
<nb> public class OptionsEditor extends JPanel implements DataProvider , Place . Navigat return null ; SINGLE } if ( searchable instanceof Configurable . Composite ) { - box . add ( Box . createVerticalStrut ( NUMBER0 ) ) ; + box . add ( Box . createVerticalStrut ( NUMBER1 ) ) ; Configurable . Composite com...
remove symbols in lists for setting groups tuning for IntelliJ L F
<nb> import NAMESPACE ; import NAMESPACE ; class DisambiguationPatternRuleReplacer extends AbstractPatternRulePerformer { - protected AnalyzedTokenReadings [ ] unifiedTokens ; - public DisambiguationPatternRuleReplacer ( DisambiguationPatternRule rule ) { super ( rule , rule . getLanguage ( ) . getDisambi...
removed unifiedTokens field because it s already defined by the parent class
<nb> import NAMESPACE ; class ServerThread extends Thread { private static final String TAG = STRING0 ; + private static final String ENCRYPTING_STATE = STRING1 ; ContentResolver mContentResolver ; <nb> class ServerThread extends Thread { AttributeCache . init ( context ) ; Slog . i ( TAG , STRING...
Only run core apps when encrypting device
<nb> public class RippleDrawable extends LayerDrawable { boolean enabled = false ; boolean pressed = false ; boolean focused = false ; + boolean hovered = false ; for ( int state : stateSet ) { if ( state == R . attr . state_enabled ) { <nb> public class RippleDrawable extends LayerDrawable { focused ...
Set the hover state to the same as focus state in RippleDrawable
<nb> public class AnalyticsTrackerNosara implements AnalyticsTracker . Tracker { eventName = STRING0 ; break ; case READER_BLOG_PREVIEW : - eventName = STRING1 ; + eventName = STRING2 ; break ; case READER_TAG_PREVIEW : - eventName = STRING3 ; + eventName = STRING4 ; break ; case EDITOR_CREATED_PO...
Renamed two Reader events that were not updated correctly
<nb> public class BlockEvent extends Event { this . blockMetadata = blockMetadata ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static class HarvestDropsEvent extends BlockEvent { public final int fortuneLevel ; ...
Add some javadoc to the HarvestBlock event
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene return null ; } final PluginId pluginId = findPluginI...
avoid crash if exception occurs before initialization is complete
<nb> public class NonblockingServletHolder extends ServletHolder { } @ override + public boolean equals ( Object o ) { + return ( o instanceof NonblockingServletHolder ) && ( this . compareTo ( o ) == NUMBER0 ) ; + } + + @ override + public int hashCode ( ) { + int result = super . hashCode ( ) ; ...
Override NonblockingServletHolder s equals and hashCode
<nb> public class GitCherryPicker { private LocalChangeList createChangeList ( @ notnull GitCommit commit , @ notnull String commitMessage ) { List < Change > changes = commit . getChanges ( ) ; if ( ! changes . isEmpty ( ) ) { - String changeListName = createNameForChangeList ( commitMessage , NUMBER0 ) ; + ...
avoid n in change list names although they are replaced in UI
<nb> public class NotificationStackScrollLayout extends ViewGroup if ( view instanceof ExpandableNotificationRow ) { ExpandableNotificationRow row = ( ExpandableNotificationRow ) view ; if ( row . isUserLocked ( ) && row != getFirstChildNotGone ( ) ) { + if ( row . isSummaryWithChildren ( ) ) { + return ; +...
Fixed a bug where expanding in the bottom stack messed up the whole layout
<nb> public final class ClasspathModifierLifecycleParticipant extends AbstractMavenLi final UnpackedLibHelper helper = new UnpackedLibHelper ( artifactResolverHelper , project , log ) ; final Set < Artifact > artifacts ; + final ClassLoader originalClassLoader = Thread . currentThread ( ) . getContextClassLoade...
Changed the ClassLoader during parts of the LifeCycleParticipant so that we can resolve dependencies from Wagon extensions
<nb> public class PyParameterInfoTest extends LightMarkedTestCase { } @ override - public void setupUIComponentPresentation ( String [ ] texts , EnumSet < Flag > [ ] flags , Color background ) { + public String setupUIComponentPresentation ( String [ ] texts , EnumSet < Flag > [ ] flags , Color background ) {...
check resulted html
<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener protected void onNewIntent ( Intent intent ) { if ( mAppAdapter != null ) mAppAdapter . notifyDataSetChanged ( ) ; + + if ( Intent . ACTION_VIEW . equals ( intent . getAction ( ) ) ) + Util . importProLicense ( new File ( ...
Fix view when activity exists
<nb> public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL assert ( actualNewP != oldP ) ; if ( ! Arrays . equals ( cp . _output . _names , previous . _output . _names ) ) { - throw new IllegalArgumentException ( STRING0 ) ; + throw new IllegalArgumentException ( STRING1 ) ; }...
Add new check that factor levels of training data match after checkpoint restart
<nb> public abstract class JBIterable < E > implements Iterable < E > { COMMENT COMMENT @ notnull - public static < E > JBIterable < E > of ( E . . . elements ) { - return from ( ContainerUtil . newArrayList ( elements ) ) ; + public static < E > JBIterable < E > of ( @ nullable E . . . elements ) { + ret...
allow null array in of
<nb> public final class ErrorToFixMapper { private static final Pattern DID_YOU_MEAN = Pattern . compile ( STRING0 ) ; private static final Pattern MISSING_REQUIRE = - Pattern . compile ( STRING1 ) ; + Pattern . compile ( STRING2 ) ; private static final Pattern EXTRA_REQUIRE = - Pattern . compile ( STRIN...
Fix ErrorToFixMapper to handle the new messages for the requires checks
<nb> public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene specs . add ( tile . getTileSpec ( ) ) ; } mTileAdapter . setTileSpecs ( specs ) ; + mRecyclerView . setAdapter ( mTileAdapter ) ; } private void save ( ) {
Fix tiles animating when QS edit is open
<nb> public class Upgrader private final AbstractCompactionStrategy strategy ; private final long estimatedRows ; - private final int gcBefore = CompactionManager . NO_GC ; - private final OutputHandler outputHandler ; public Upgrader ( ColumnFamilyStore cfs , SSTableReader sstable , OutputHandler outpu...
remove unused field
<nb> public class DeepComparator implements Disposable { @ override public void onSuccess ( ) { - removeHighlighting ( ) ; if ( myCancelled ) { return ; } + removeHighlighting ( ) ; + if ( myException != null ) { VcsNotifier . getInstance ( myProject ) . notifyError ( STRING0 + myComparedBranch ...
don t remove highlighting if cancelled
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE COMMENT public void takeSnapshot ( String tag , String . . . tableNames ) throws IOException { + if ( operationMode . equals ( Mode . JOINING ) ) + throw new IOException ( STRING0 ) ; if ( tag == null || tag . equals ( STR...
Refuse snapshots during bootstrap
<nb> public class PhotonUtils { COMMENT COMMENT COMMENT + private static final String QUALITY_PARAM = STRING0 ; public static String getPhotonImageUrl ( String imageUrl , int width , int height ) { if ( TextUtils . isEmpty ( imageUrl ) ) { return STRING1 ; <nb> public class PhotonUtils { } SINGLE ...
Added default quality param to photon
<nb> public class BlockStreamEventMessageHandler extends IoHandlerAdapter { private ISessionManagerGateway sessionManager ; - @ override - public void exceptionCaught ( IoSession session , Throwable cause ) throws Exception - { - log . warn ( cause . toString ( ) + STRING0 + cause . getMessage ( ) ) ; -...
let the exception handler from decoder handle the exception
<nb> public class WayPropertySet { for ( CreativeNamerPicker picker : creativeNamers ) { OSMSpecifier specifier = picker . getSpecifier ( ) ; CreativeNamer namer = picker . getNamer ( ) ; - if ( specifier . matchScore ( way ) > bestScore ) { + int score = specifier . matchScore ( way ) ; + if ( score > best...
use actual best namer
<nb> public class GtasksLoginActivity extends ListActivity { super . onListItemClick ( l , v , position , id ) ; final ProgressDialog pd = DialogUtilities . progressDialog ( this , this . getString ( R . string . gtasks_GLA_authenticating ) ) ; pd . show ( ) ; - final Account a = accountManager . getAccountByNa...
Fixed an off by one error in gtasks login activity
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Extend the examples with the optional ext
<nb> public final class FileSystemUtils { URIStatus uriStatus = fs . getStatus ( uri ) ; Permission perm = new Permission ( uriStatus . getOwner ( ) , uriStatus . getGroup ( ) , ( short ) uriStatus . getMode ( ) ) ; - OutputStream out = closer . register ( ufs . create ( dstPath . getPath ( ) , + OutputStream...
Fix persit to UFS
<nb> public class UnicastZenPing extends AbstractLifecycleComponent < ZenPing > implemen protected void doRun ( ) throws Exception { sendPings ( timeout , TimeValue . timeValueMillis ( timeout . millis ( ) / NUMBER0 ) , sendPingsHandler ) ; sendPingsHandler . close ( ) ; + listener . onPing ( sendPingsHandler ....
Unicast Ping should close temporary connections after returning ping results
<nb> public class SwingBuilder extends BuilderSupport { Object parent = getCurrent ( ) ; if ( parent instanceof Container ) { Object axisObject = properties . remove ( STRING0 ) ; - int axis = NUMBER0 ; + int axis = BoxLayout . X_AXIS ; if ( axisObject != null ) { Integer i = ( Integer ) axisObject ; ax...
Fix problem with using BoxLayout on top level container Frame Dialog Applet
<nb> public class PackageManagerService extends IPackageManager . Stub { SINGLE final UserInfo parent = getProfileParent ( sourceUserId ) ; synchronized ( mPackages ) { - return getCrossProfileDomainPreferredLpr ( intent , resolvedType , NUMBER0 , sourceUserId , - parent . id ) != null ; + CrossProfileDomai...
Don t send app links to parent profile if status never
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Ec2Discovery extends ZenDiscovery { public Ec2Discovery ( Settings settings , ClusterName clusterName , ThreadPool threadPool...
Fix constructors of ZenDiscovery s sub classes
<nb> public abstract class Message implements Serializable { } } - public class LazyParseException extends RuntimeException { + public static class LazyParseException extends RuntimeException { private static final long serialVersionUID = NUMBER0 ; public LazyParseException ( String message , Throwable ...
Make Message inner exception class static for efficiency
<nb> class BufferingHttp2ConnectionEncoder extends DecoratingHttp2ConnectionEncoder { COMMENT COMMENT private boolean canCreateStream ( ) { - Http2Connection . Endpoint local = connection ( ) . local ( ) ; + Http2Connection . Endpoint < ? > local = connection ( ) . local ( ) ; return ( receivedSettings || l...
Fixing compiler warning
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MisusedFormattingLogger extends BugChecker implements MethodInvocat } else if ( parameters . getType ( ) == FormatType . PRINTF ) { verifyPrin...
Catch UnknownFormatConversionException in MisusedFormattingLogger
<nb> public class FileSystemMediumTest { assertThat ( result . inputFiles ( ) . get ( NUMBER0 ) . type ( ) ) . isEqualTo ( InputFile . Type . TEST ) ; } + COMMENT + COMMENT + COMMENT @ test public void scanProjectWithMixedSourcesAndTests ( ) throws IOException { File srcDir = new File ( baseDir , STRI...
Add comment on test
<nb> public final class OAuthAction extends AbstractAction { final ProvidersDefinition providersDefinition ) { this . centralAuthenticationService = centralAuthenticationService ; this . providersDefinition = providersDefinition ; - this . providersDefinition . init ( ) ; } @ override <nb> public final ...
remove implicit init on ProvidersDefinition
<nb> public abstract class SASLMechanism implements Comparable < SASLMechanism > { } protected abstract SASLMechanism newInstance ( ) ; + + protected static byte [ ] toBytes ( String string ) { + return StringUtils . toBytes ( string ) ; + } } <nb> public class SASLDigestMD5Mechanism extends SASLMecha...
Move toBytes into SASLMechanism
<nb> public class JsonWriter extends Writer { javascript , COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class JsonWriter extends Writer { COMMENT minimal ; - static private Pattern javascriptPattern = Pattern . compile ( STRING0 ) ; ...
Updated OutputType minimal to match the latest parser
<nb> public final class CompilerUtils if ( DUMP_BYTE_CODE_RAW ) { for ( byte [ ] byteCode : byteCodes . values ( ) ) { ClassReader classReader = new ClassReader ( byteCode ) ; - classReader . accept ( new TraceClassVisitor ( new PrintWriter ( System . err ) ) , ClassReader . SKIP_FRAMES ) ; + classReader . ac...
Print expanded frames for DUMP_BYTE_CODE_RAW
<nb> public class DrawingFragment extends BaseFragment < DrawingFragment . Container > imp public void onScaleChanged ( float scale ) { setRegularTextSize ( scale ) ; setHintTextSize ( scale ) ; + setTextPaddingSize ( scale ) ; } @ override <nb> public class DrawingFragment extends BaseFragment < Drawin...
Fixed padding issues on scale
<nb> public abstract class Enchantment { public static Enchantment getByName ( String name ) { return byName . get ( name ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static Enchantment [ ] values ( ) { + return byId . values ( ) . toArray ( new Enchantment [ byId . size ( ) ...
Added Enchantment values for retrieving all enchantments
<nb> public class PythonLanguage extends Language { } public PsiFile createDummyFile ( Project project , String contents ) { - return PsiFileFactory . getInstance ( project ) . createFileFromText ( STRING0 + getAssociatedFileType ( ) . getDefaultExtension ( ) , contents ) ; + return PsiFileFactory . getInstan...
remove Language associateFileType
<nb> public class GeometryBatchFactory { node . attachChild ( geom ) ; } + Node parent = scene . getParent ( ) ; + if ( parent != null ) { + scene . removeFromParent ( ) ; + parent . attachChild ( node ) ; + } + return node ; }
make GeometryBatchFactory optimize replace the optimized spatial