diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; public class Graphs { - private static int debug = NUMBER0 ; SINGLE + private static int debug = NUMBER0 ; SINGLE @ suppresswarnings ( STRING0 ) private static boolean testGraph ( ) {
Moved the Graph related tests to their own class
<nb> public class Description implements Serializable { if ( name == null ) return null ; try { - return fTestClass = Class . forName ( name , false , getClass ( ) . getClassLoader ( ) ) ; + fTestClass = Class . forName ( name , false , getClass ( ) . getClassLoader ( ) ) ; + return fTestClass ; } catch (...
Avoiding use of return value of assignment operator
<nb> public abstract class Recycler < T > { SINGLE SINGLE SINGLE - int maxCapacity = SystemPropertyUtil . getInt ( STRING0 , NUMBER0 ) ; + int maxCapacity = SystemPropertyUtil . getInt ( STRING1 , NUMBER0 ) ; if ( maxCapacity <= NUMBER0 ) { SINGLE maxCapacity = NUMBER1 ; <nb> public abstract class Rec...
Rename iodotNetty recycler maxCapacity default to iodotNetty recycler maxCapacity
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class ChangedFile { COMMENT COMMENT public String getRelativeName ( ) { - String folderName = this . sourceFolder . getAbsoluteFile ( ) . getPath ( ) ; - String fileName = this...
Fix Windows slash issue with ChangedFile
<nb> public class CompileDriver { } } } - final Compiler [ ] allCompilers = compilerManager . getCompilers ( Compiler . class ) ; - for ( Compiler compiler : allCompilers ) { - if ( ! compiler . validateConfiguration ( scope ) ) { - return false ; + if ( ! useOutOfProcessBuild ( ) ) { + final Compiler...
when using external build do not validate configuration of old compilers
<nb> public class EventOriginClientPropagationPolicy implements ClientEventPropagatio public boolean shouldPropagated ( URI uri , Object event ) { final EventOrigin eventOrigin = event . getClass ( ) . getAnnotation ( EventOrigin . class ) ; final Set < String > set = forPropagation . get ( uri ) ; - return set...
Avoid NPE if event don t has EventOrigin annotation
<nb> public class FallbackTypeConverter implements TypeConverter , TypeConverterAware } JAXBContext context = createContext ( type ) ; - SINGLE + SINGLE Unmarshaller unmarshaller = context . createUnmarshaller ( ) ; if ( parentTypeConverter != null ) {
Fixed a typo of FallbackTypeConverter
<nb> public abstract class AbstractPatternRule extends Rule { return false ; } thisMatched = thisMatched || elem . isMatched ( matchToken ) ; - if ( ! thisMatched && ! elem . isInflected ( ) && elem . getPOStag ( ) == null ) { + if ( ! thisMatched && ! elem . isInflected ( ) && elem . getPOStag ( ) == null ...
fix a small but nasty bug
<nb> public class GrailsBuildEventListener implements BuildListener { } } - public void loadGrailsBuildListeners ( ) { + protected void loadGrailsBuildListeners ( ) { for ( Object listener : buildSettings . getBuildListeners ( ) ) { if ( listener instanceof String ) { addGrailsBuildListener ( ( String )...
Making this internal method protected was public by mistake
<nb> public class ODatabaseImport extends ODatabaseImpExpAbstract { SINGLE for ( String i : OStringSerializerHelper . split ( blobClusterIds , OStringSerializerHelper . RECORD_SEPARATOR ) ) { Integer cluster = Integer . parseInt ( i ) ; - if ( ! database . getBlobClusterIds ( ) . contains ( cluster ) ) - data...
fixed bug on blob cluster import
<nb> public class CustomPropertyTest extends ActivitiCycleTest { actual = CustomProperty . ORIGINAL_NAME . getValue ( propertyContainer ) ; assertEquals ( expected , actual ) ; } + + @ test + public void testSetValueUnlessPropertyExists ( ) { + String propertyContainer = STRING0 ; + assertEquals ( prope...
Added another test case for Custom Properties
<nb> public class VoldemortClientShell { } } catch ( SerializationException e ) { System . err . print ( STRING0 ) ; - System . err . println ( e . getMessage ( ) ) ; + e . printStackTrace ( ) ; } catch ( VoldemortException e ) { System . err . println ( STRING1 ) ; e . printStackTrace ( System . err ) ...
Adding trace to exceptions
<nb> import NAMESPACE ; public class DataPack { @ notnull private final RefsModel myRefsModel ; - @ notnull private final GraphFacadeImpl myGraphFacade ; + @ notnull private final GraphFacade myGraphFacade ; @ notnull public static DataPack build ( @ notnull List < ? extends GraphCommit > commits , <n...
create GraphFacadeImpl instance in build
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper { b . request ( request ) ; } + HttpSession session = null ; + if ( copySession ) { + session = request . getSession ( true ) ; + if ( session != null ) { + session = new FakeHttpSession ( session ) ; + } + } + b . servletPath...
Prevent NPE with session
<nb> public final class Utils COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public final class Utils builder . apply ( new ControlChar . ColorFormat ( foreground , background ) ) ; } + SINGLE break ; case ControlChar . Normal . CODE : builder . cancelAll ( ) ;
Removed TODO marker for unimportant task of which it is also not
<nb> public class XmlStructuralSearchProfile extends StructuralSearchProfile { @ override public boolean canProcess ( @ notnull FileType fileType ) { - return fileType == StdFileTypes . XML || fileType == StdFileTypes . HTML || + return fileType == StdFileTypes . XML || fileType == StdFileTypes . HTML || file...
add jsp to supported file types
<nb> public class NetworkInstance catch ( InterruptedException e ) { msgLog . warn ( STRING0 , e ) ; + SINGLE + SINGLE + Thread . currentThread ( ) . interrupt ( ) ; throw new ChannelOpenFailedException ( e ) ; } }
Sets the interrupt status on Interrupted exception if interrupted while waiting on ChannelFuture
<nb> public final class Settings { static final int MAX_HEADER_LIST_SIZE = NUMBER0 ; COMMENT static final int INITIAL_WINDOW_SIZE = NUMBER1 ; - COMMENT + COMMENT static final int CLIENT_CERTIFICATE_VECTOR_SIZE = NUMBER2 ; COMMENT static final int FLOW_CONTROL_OPTIONS = NUMBER3 ;
Fix a typo in settings documentation
<nb> public class SearchingJavaCompiler extends JavaCompiler { public void postFlow ( Env < AttrContext > env ) { resultsPrinter . setCompilationUnit ( env . toplevel . sourcefile ) ; VisitorState visitorState = new VisitorState ( context , resultsPrinter ) ; - Scanner scanner = ( Scanner ) context . get ( Tree...
Fixed a bug in SearchingJavaCompiler that was causing a NPE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; @ stateless - @ transacti...
completely disable transactions for background threads
<nb> class FullUnicodeLine { int nextWidth = UnicodeTranscript . charWidth ( text , nextPos ) ; int nextLen ; if ( column + nextWidth + NUMBER0 < columns ) { - nextLen = findStartOfColumn ( column + nextWidth + NUMBER0 ) - nextPos ; + nextLen = findStartOfColumn ( column + nextWidth + NUMBER0 ) + shift - next...
Fix inserting wide char into column previously occupied by normal width char
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed minor typo
<nb> public class UI_GraphTable extends JTable { scrollRectToVisible ( getCellRect ( rowIndex , NUMBER0 , false ) ) ; } + @ override + public void changeSelection ( int rowIndex , int columnIndex , boolean toggle , boolean extend ) { + SINGLE + if ( extend ) return ; + super . changeSelection ( rowIndex...
Do not change table selection on drag n drop
<nb> import NAMESPACE ; public class PlurkApi extends DefaultApi10a { private static final String REQUEST_TOKEN_URL = STRING0 ; - private static final String AUTHORIZE_URL = STRING1 ; + private static final String AUTHORIZATION_URL = STRING1 ; private static final String ACCESS_TOKEN_URL = STRING2 ; @ o...
Fix naming convention
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; summary = STRING0 + STRING1 , - severity = WARNING + severity = ERROR ) public ...
Change LiteByteStringUtf8 to an error
<nb> import static NAMESPACE ; public class ByteBuddyTest { - @ test ( expected = IllegalArgumentException . class ) public void testEnumWithoutValuesIsIllegal ( ) throws Exception { new ByteBuddy ( ) . makeEnumeration ( ) ;
Removed white space
<nb> public class CacheManagingDrawTask extends DrawTask { public void end ( ) { if ( mHandler != null ) { mHandler . pause ( ) ; + mHandler = null ; } - if ( mThread != null ) + if ( mThread != null ) { mThread . quit ( ) ; - mThread = null ; - mHandler = null ; + try { + mThread . join ( ) ; ...
solved a fc problem caused by thread exits
<nb> public class FileServer { ctx . write ( STRING0 + file + STRING1 ) ; return ; } - MessageList < Object > out = MessageList . newInstance ( ) ; ctx . write ( file + STRING2 + file . length ( ) + STRING1 ) ; + MessageList < Object > out = MessageList . newInstance ( ) ; FileRegion region = new DefaultF...
Fix FileServer example
<nb> public class XMPPConnection { if ( ! isConnected ( ) ) { throw new IllegalStateException ( STRING0 ) ; } + if ( packet == null ) { + throw new NullPointerException ( STRING1 ) ; + } packetWriter . sendPacket ( packet ) ; }
Throw exception in sendPacket if packet is null
<nb> import NAMESPACE ; COMMENT COMMENT public class OrientJdbcDatabaseMetaData implements DatabaseMetaData { - private final static Set < String > SYSTEM_TABLES = new HashSet < String > ( Arrays . asList ( new String [ ] { STRING0 , STRING1 , - STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 } ) ) ...
Moved system tables in OMetadata
<nb> public class OreDictionary initVanillaEntries ( ) ; } - public static void initVanillaEntries ( ) + private static void initVanillaEntries ( ) { if ( ! hasInit ) {
Make OreDictionary initVanillaEntries private so that dumb modders will stop calling it
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ContentRecommendation COMMENT COMMENT COMMENT - public Builder setBadgeIcon ( int iconReso...
Add ColorInt and DrawableRes to recommendations
<nb> public class GCMIntentService extends GCMBaseIntentService { private UserActivityDao userActivityDao ; public GCMIntentService ( ) { - super ( ) ; + super ( SENDER_ID ) ; DependencyInjectionService . getInstance ( ) . inject ( this ) ; }
Fixed a bug with how GCM service is constructed
<nb> public class LookupImpl extends LightweightHint implements LookupEx , Disposable layeredPane . add ( myIconPanel , NUMBER0 , NUMBER1 ) ; layeredPane . add ( mySortingLabel , NUMBER2 , NUMBER1 ) ; + SINGLE + Disposer . register ( this , new Disposable ( ) { + @ override + public void dispose ( ) { +...
don t leak lookup from recycled popups
<nb> public class CylinderRegion extends AbstractRegion { COMMENT public CylinderRegion ( LocalWorld world , Vector center , Vector2D radius , int minY , int maxY ) { super ( world ) ; - this . center = center ; + setCenter ( center ) ; setRadius ( radius ) ; this . minY = minY ; this . maxY = maxY ;
Fix NPE in CylinderRegion
<nb> public class TextFileType extends EditableFileType { results . add ( commands . executeAllCode ( ) ) ; results . add ( commands . sourceActiveDocument ( ) ) ; + results . add ( commands . sourceActiveDocumentWithEcho ( ) ) ; } if ( canExecuteToCurrentLine ( ) ) { <nb> public class Source implements...
add source active document with echo to dynamic commands
<nb> public class OneToOneCallPeerPanel COMMENT COMMENT public static final String HIDE_PLACEHOLDER_PIC_PROP - = STRING0 ; + = STRING1 ; COMMENT COMMENT
Shorten the property name
<nb> public class ViewStats extends Activity { } URI uri = URI - . create ( STRING0 ) ; + . create ( STRING1 ) ; configureClient ( uri , username , password ) ; SINGLE
changing stats getUsersBlogs call back to https
<nb> public class InMemoryUserDetailsManager implements UserDetailsManager { throw new UsernameNotFoundException ( username ) ; } - return new User ( user . getUsername ( ) , user . getPassword ( ) , user . isEnabled ( ) , true , true , true , - user . getAuthorities ( ) ) ; + return new User ( user . getUs...
Fix broken test flags in returned user object were not being copied from stored user
<nb> public class JavaTextAreaPainter extends TextAreaPainter COMMENT COMMENT protected void paintErrorLine ( Graphics gfx , int line , int x ) { - ErrorCheckerService ecs = getJavaEditor ( ) . getErrorChecker ( ) ; - if ( ecs == null || ecs . latestResult . problems . isEmpty ( ) ) { - return ; - } - ...
remove unnecessary ecs dependence
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Updated Javadoc regarding previous deprecation of interestOps value in channelInterestChanged event
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , mRenderNode . offsetTopAndBottom ( offset ) ; if ( isHardwareAccelerated ( ) ) { invalidateViewProperty ( false , false ) ; + invalidateParentIfNeededAndWasQuickRejected ( ) ; } else { if ( ! matrixIsIdentity ) { invalidateViewP...
Invalidate parent when scrolling child view back onto screen
<nb> public final class Moco { } public static RequestMatcher xml ( final String resource ) { - return xml ( text ( checkNotNull ( resource , STRING0 ) ) ) ; + return xml ( text ( checkNotNullOrEmpty ( resource , STRING0 ) ) ) ; } public static RequestMatcher xml ( final Resource resource ) { <nb> pub...
fixed xml and json precondition
<nb> public class StandaloneMongoSplitter extends MongoCollectionSplitter { String splitKeyString = ( new BasicDBObject ( splitKey . toMap ( ) ) ) . keySet ( ) . iterator ( ) . next ( ) ; SINGLE if ( splitKeyMin . containsField ( splitKeyString ) ) { - lastKey = new BasicDBObject ( STRING0 , splitKeyMin . get (...
fixed confussion with expected BSONObject
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BraceHighlightingHandler { Document document = editor . ...
cdata brace highlighter in injected fragments
<nb> public class PortlandCustomNamer implements CustomNamer { return path ( defaultName ) ; } } + if ( STRING0 . equals ( highway ) ) { + return pedestrianStreet ( defaultName ) ; + } return defaultName ; } <nb> public class PortlandCustomNamer implements CustomNamer { name = name + STRING1 . int...
add pedestrian street to highway pedestrian reported by Grant Humphries
<nb> class InlineVariables implements CompilerPass { Node nameNode = refs . get ( i ) . getNameNode ( ) ; if ( aliasCandidates . containsKey ( nameNode ) ) { AliasCandidate candidate = aliasCandidates . get ( nameNode ) ; - if ( ! staleVars . contains ( candidate . alias ) ) { + if ( ! staleVars . contains ( ...
don t inline exported aliases
<nb> public class TestSaslRPC { final Configuration clientConf = new Configuration ( conf ) ; SecurityUtil . setAuthenticationMethod ( clientAuth , clientConf ) ; UserGroupInformation . setConfiguration ( clientConf ) ; + clientConf . setBoolean ( + CommonConfigurationKeys . IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH...
Fix up a little test failure
<nb> public class ErrorBar extends JPanel { } protected void done ( ) { - int bigCount = NUMBER0 ; int totalLines = NUMBER0 ; int currentTab = NUMBER0 ; for ( SketchCode sc : editor . getSketch ( ) . getCode ( ) ) {
removing unused var
<nb> public class InformationSchemaPageSourceProvider column . getOrdinalPosition ( ) + NUMBER0 , null , STRING0 , - column . getType ( ) . getTypeSignature ( ) . toString ( ) , + column . getType ( ) . getDisplayName ( ) , column . isPartitionKey ( ) ? STRING0 : STRING1 , column . getComment ( ) ) ; } ...
Allow types to customize the name displayed in DESCRIBE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WaitNotInLoop extends DescribingMatcher < MethodInvocationTree > { } } ; - COMMENT - COMMENT...
Intermediate commit iterating on WaitNotInLoop
<nb> import NAMESPACE ; import NAMESPACE ; @ implements ( ShapeDrawable . class ) - public class ShadowShapeDrawable { + public class ShadowShapeDrawable extends ShadowDrawable { private Paint paint = new Paint ( ) ;
ShadowShapeDrawable extends ShadowDrawable
<nb> public class DBCursor implements Cursor , Iterable < DBObject > { COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public int numGetMores ( ) { return _it == null ? NUMBER0 : _it . numGetMores ( ) ; } COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT + ...
Deprecated DBCursor numGetMores and DBCursor getSizes
<nb> public final class ApplicationMaster implements AMRMClientAsync . CallbackHandler COMMENT public static void main ( String [ ] args ) { Preconditions . checkState ( args . length == NUMBER0 , - STRING0 + STRING1 + STRING2 , args . length ) ; Preconditions . checkArgument ( args [ NUMBER1 ] != null , ...
Improve error message
<nb> public class XBinder extends XHook { + STRING0 + uid + STRING1 + Process . myUid ( ) ) ; if ( isRestrictedExtra ( uid , PrivacyManager . cIPC , STRING2 , interfaceName + STRING3 + codeName ) ) { + Util . log ( this , Log . WARN , STRING4 + interfaceName + STRING3 + codeName + STRING5 + code ) ; SINGLE ...
Log transaction code
<nb> public class AvroValidation Set < ByteBuffer > indexedColumns = Table . open ( keyspace ) . getColumnFamilyStore ( columnFamily ) . getIndexedColumns ( ) ; for ( IndexExpression expression : index_clause . expressions ) { - if ( expression . op . equals ( IndexOperator . EQ ) && indexedColumns . contains (...
a missed s byte ByteBuffer substitution
<nb> public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs public void onCacheWordUninitialized ( ) { Log . d ( ImApp . LOG_TAG , STRING0 ) ; - showLockScreen ( ) ; + if ( mDoLock ) { + Log . d ( ImApp . LOG_TAG , STRING1 ) ; + } else { + showLockScreen ( ) ; + } finish ( ...
don t show LockScreen on signOutAll and unencrypted
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class ModuleType < T extends ModuleBuilder > { } public static ModuleType get ( @ notnull Module module ) { - try { ...
If ModuleTypeManager is not found like in UpSource or some tests return EMPTY type
<nb> public class Signaler { int nbytes = NUMBER0 ; ByteBuffer dummy = ByteBuffer . allocate ( NUMBER1 ) ; - dummy . limit ( NUMBER1 ) ; while ( true ) { try {
Remove superfluous limit
<nb> public class PostgreSQLWriteInterface extends AbstractWriteInterface { } } } catch ( SQLException ex ) { - throw new SystemException ( ex ) ; + throw errorHandler . handleException ( Context . INSERT , ex ) ; } finally { dsl . configuration ( ) . connectionProvider ( ) . release ( connection ) ; }
Handling error for PostgreSQL COPY
<nb> import NAMESPACE ; SINGLE SINGLE + SINGLE + SINGLE SINGLE
add todo comment
<nb> public class JUnitTestDiscoveryConfiguration extends TestDiscoveryConfiguration @ override protected boolean forkPerModule ( ) { - return spansMultipleModules ( STRING0 ) ; + return getConfigurationModule ( ) . getModule ( ) == null ; } @ override <nb> public class TestNGTestDiscoveryConfiguratio...
disable fork mode if module was chosen successfully
<nb> public class MongoOptions { buf . append ( STRING0 ) . append ( maxAutoConnectRetryTime ) . append ( STRING1 ) ; buf . append ( STRING2 ) . append ( slaveOk ) . append ( STRING1 ) ; if ( readPreference != null ) { - buf . append ( STRING3 ) . append ( readPreference ) ; + buf . append ( STRING4 ) . appen...
better formatting for readPreference and writeConcern in toString method
<nb> public class ObjectListing { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Add missing bracket in javadoc
<nb> public class HlsRendererBuilder implements RendererBuilder , ManifestCallback < Hls HlsChunkSource . ADAPTIVE_MODE_SPLICE ) ; HlsSampleSource sampleSource = new HlsSampleSource ( chunkSource , true , NUMBER0 ) ; MediaCodecVideoTrackRenderer videoRenderer = new MediaCodecVideoTrackRenderer ( sampleSource , ...
Allow re enabling video track without transition through buffering state
<nb> public class SubActivity2 extends ActionBarActivity { exitTransition = ActivityTransition . with ( getIntent ( ) ) . to ( findViewById ( R . id . sub_imageView ) ) . start ( savedInstanceState ) ; } - - @ override - public boolean onCreateOptionsMenu ( Menu menu ) { - SINGLE - getMenuInflater ( ) ....
Remove unnecessary method
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class KotlinMultiFileTestWithJava < M , F > extends KotlinTestWithEn return KotlinCoreEnvironment . createForTests ( getTestRootDisposable ( ) , configuration , getEnvironmentCon...
Remove temp directories in tests
<nb> public class ScreenInformation boolean leftInside = false ; boolean rightInside = false ; - Point left = new Point ( window . x , window . y ) ; - Point right = new Point ( window . x , window . y + window . width ) ; + Point topLeft = new Point ( window . x , window . y ) ; + Point topRight = new Po...
Fix window positioning code
<nb> public class DataType { value += STRING0 + decimalDigits ; } + if ( columnSizeUnit != null ) { + value += STRING1 + columnSizeUnit ; + } + value += STRING2 ; }
include column size unit
<nb> import NAMESPACE ; COMMENT COMMENT public class JglfwGraphics implements Graphics { + static final boolean isMac = System . getProperty ( STRING0 ) . contains ( STRING1 ) ; + static final boolean isWindows = System . getProperty ( STRING0 ) . contains ( STRING2 ) ; + static final boolean isLinux = Syst...
Fix JGLFW minimize maximize snap on Windows
<nb> public class DownSampleSceneAndUpdateExposureNode extends AbstractNode { downSampleSceneInto1x1pixelsBuffer ( ) ; writeOnlyPBO . copyFromFBO ( downSampledScene [ NUMBER0 ] . fboId , NUMBER1 , NUMBER1 , GL12 . GL_BGRA , GL11 . GL_UNSIGNED_BYTE ) ; - pixels = readOnlyPBO . readBackPixels ( ) ; - swapPBOs...
Fix PBOs in DownSampleSceneAndUpdateExposureNode
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class SettingUtility { } public static boolean getEnableSound ( ) { - return SettingHelper . getSharedPreferences ( getContext ( ) , SettingActivity . SOU...
disable refresh sound when system disable ringer
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DB { return STRING0 + name + STRING1 + STRING2 ; } - Cluster getCluster ( ) { - return getMongo ( ) . getCluster ( )...
Removed unused non public method in DB and unused private static field in DBCollection
<nb> public class Weaver { SINGLE SINGLE - public synchronized CtClass javassistLoadClass ( String name ) { + private synchronized CtClass javassistLoadClass ( String name ) { try { if ( name . equals ( STRING0 ) ) return null ; CtClass cc = _pool . get ( name ) ; SINGLE <nb> public class Weaver { f...
Make some public methods private
<nb> public class CompactionManager implements CompactionManagerMBean if ( Range . isTokenInRanges ( row . getKey ( ) . token , ranges ) ) { writer = maybeCreateWriter ( cfs , compactionFileLocation , expectedBloomFilterSize , writer , row . hasRowsInPageCache ( ) ) ; - writer . append ( getCompactedRow ( row ,...
allow cleanup to echo rows again
<nb> public class HikariConfig implements HikariConfigMXBean if ( idleTimeout + TimeUnit . SECONDS . toMillis ( NUMBER0 ) > maxLifetime && maxLifetime > NUMBER1 ) { LOGGER . warn ( STRING0 ) ; - maxLifetime = idleTimeout ; idleTimeout = NUMBER1 ; }
do not set maxLifetime when disabling idle timeout
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DataStorePerfTest { public static void main ( String [ ] args ) throws IOException { String basePath = TMP + STRING0 ; ChronicleTools . deleteOnExit ( basePath ) ; - Chronicle c...
Add a DB style performance test
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ suppresswarnings ( STRING0 ) public class JreMemoryLeakPreventionListener implements LifecycleListener { private static final Log log =
Remove SuppressWarnings that is no more needed
<nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { @ servicethreadonly private void updateArcFeatureStatus ( int portId , boolean isConnected ) { assertRunOnServiceThread ( ) ; + HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; + if ( avr == null ) { + return ; + } SINGLE SINGLE HdmiPortI...
Check port id for ARC status update on hotplug
<nb> public class HideUntilControlSet extends PopupControlSet implements OnItemSelect long value = task . createHideUntil ( item . setting , item . date ) ; task . setValue ( Task . HIDE_UNTIL , value ) ; - String message = activity . getString ( R . string . TEA_hideUntil_message , DateAndTimePicker . getDispl...
Fixed a bug with hide until toast
<nb> public class JobStatusCommand extends ControlCommand { } ) ; if ( noHostMatchedEver ) { - out . printf ( STRING0 , hostPattern ) ; + out . printf ( STRING1 , hostPattern ) ; return NUMBER0 ; }
Fix error message in CLI
<nb> public class SignavioConnector extends AbstractRepositoryConnector < SignavioConne SINGLE SINGLE SINGLE - String id = UUID . randomUUID ( ) . toString ( ) ; + SINGLE + String id = UUID . randomUUID ( ) . toString ( ) . replace ( STRING0 , STRING1 ) ; modelForm . add ( STRING2 , id ) ; SINGLE
Added fix to allow creation of models in SaaS Signavio removed hypen from genereated UUID
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te scrap . dispatchStartTemporaryDetach ( ) ; + SINGLE + SINGLE + SINGLE + SINGLE + notifyViewAccessibilityStateChangedIfNeeded ( + AccessibilityEvent . CONTENT_CHANGE_TYPE_SUBTREE ) ; + SINGLE final boolean sc...
Temporary detached views not properly reported to accessibility layer
<nb> public class ShaderProgramManager { SINGLE SINGLE - public static void onCreate ( ) { + public synchronized static void onCreate ( ) { ShaderProgramManager . loadShaderProgram ( PositionColorTextureCoordinatesShaderProgram . getInstance ( ) ) ; ShaderProgramManager . loadShaderProgram ( PositionTextu...
Synchronized onCreate of ShaderProgramManager
<nb> public class EclipseModuleManager implements PersistentStateComponent < Element > { private final Module myModule ; @ nonnls private static final String LIBELEMENT = STRING0 ; private int myExpectedModuleSourcePlace ; - private Map < String , Integer > mySrcPlace = new HashMap < String , Integer > ( ) ; ...
remember src place order
<nb> public class HttpRequest { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean isBodyEmpty ( ) throws HttpRequestException { + return contentLength ( ) == NUMBER0 ; + } + + COMMENT COMMENT COMMENT COMMENT <nb> public class HttpRequestTest extends ServerTes...
Add isBodyEmpty helper
<nb> public final class UnsafeUtil } COMMENT + COMMENT + COMMENT + public static void copyMemory ( long srcAddress , long destAddress , long bytes ) + { + unsafe . copyMemory ( srcAddress , destAddress , bytes ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Expose Unsafe copyMemory
<nb> public class ZkCoordinator implements PartitionCoordinator { NUMBER0 , new RetryNTimes ( Utils . getInt ( conf . get ( Config . STORM_ZOOKEEPER_RETRY_TIMES ) ) , Utils . getInt ( conf . get ( Config . STORM_ZOOKEEPER_RETRY_INTERVAL ) ) ) ) ; + _curator . start ( ) ; } catch ( IOException e ) { throw ne...
start curator client
<nb> public class TaskQueue < E > { } _capacity = capacity ; + _headNode = new Node < E > ( null ) ; _tailNode = _headNode ; + + _notEmptyCondition = _takeLock . newCondition ( ) ; } public int drainTo ( Collection < E > collection ) { <nb> public class TaskQueue < E > { private final int _cap...
Fix source formatting
<nb> public abstract class GLMTask { @ override public void reduce ( GLMMultinomialGradientTask gmgt ) { - ArrayUtils . add ( _beta , gmgt . _beta ) ; + ArrayUtils . add ( _gradient , gmgt . _gradient ) ; _nobs += gmgt . _nobs ; _wsum += gmgt . _wsum ; _likelihood += gmgt . _likelihood ;
Fixed multinomial gradient task reduce was adding beta instead of gradient
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT COMMENT COMME...
don t show typos twice for injected code
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Style { public Builder ( ) { durationInMilliseconds = NUMBER0 ; - heightInPixels = ViewGroup . LayoutParams . WRAP_CONTENT ; paddingInPixels = NUMBER1 ; ...
removes redundant initialization within Style Builder
<nb> public class UserManagerService extends IUserManager . Stub { if ( mRemovingUserIds . get ( profile . id ) ) { continue ; } + if ( profile . partial ) { + continue ; + } users . add ( userWithName ( profile ) ) ; } return users ; <nb> public class DevicePolicyManagerService extends IDevicePolic...
getProfiles should only returns non partial user info
<nb> public class GraphDatabaseConfiguration { COMMENT public static final String PORT_KEY = STRING0 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadoc typo
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public interface CommentCompleteHandler { ExtensionPointName < CommentCompleteHandler > EP_NAME = ExtensionPointName . create ( STRING0 ) ; - boolean isCommentComplete (...
method parameter propogated for scala plugin
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { protected void onPostExecute ( List < LocalIndexInfo > result ) { this . result = result ; listAdapter . sortData ( ) ; - - getDownloadActivity ( ) . setSupportProgressBarIndeterminateVisibility ( false ) ; - getDownloadActivity (...
Fixed NPE in localIndexFragment in onPostExecute
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class JavaScriptTagLibTests extends AbstractTagLibTests { System . out . println ( sw . toString...
fixed escapeJavascript tag adding ajax events to other providers and corrected remoteFields handling of parameters
<nb> public class MainActivity extends ActionBarActivity { animator . setDuration ( NUMBER0 ) ; if ( Animator . LOLLIPOP ) { - android . animation . ObjectAnimator a = ( android . animation . ObjectAnimator ) + android . animation . Animator a = ( android . animation . Animator ) animator . getNativeAnimato...
Fix ClassCastException in sample app
<nb> public class Protocol { LANGUAGE ( STRING0 ) , USE_TYPES_FOR_OPTIMIZATIONS ( STRING1 ) , ANGULAR_PASS ( STRING2 ) , + GENERATE_EXPORTS ( STRING3 ) , SINGLE RAWJS ( STRING4 ) ,
Add new generateExports option to API for Closure Compiler web services
<nb> public class EditingTargetCodeExecution { if ( ! docDisplay_ . moveSelectionToNextLine ( true ) ) docDisplay_ . moveSelectionToBlankLine ( ) ; + docDisplay_ . ensureCursorVisible ( ) ; } }
ensure cursor is visible after execution point advances