diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
remove protobuf jar from usage example
<nb> public class XMPPConnection { COMMENT COMMENT COMMENT - public synchronized AccountManager getAccountManager ( ) { + public AccountManager getAccountManager ( ) { if ( accountManager == null ) { accountManager = new AccountManager ( this ) ; }
Fix deadlock in XMPPConnection while login and parsing stream features for Tigase servers
<nb> public class MoveClassesOrPackagesDialog extends RefactoringDialog { return JavaPsiFacade . getInstance ( myManager . getProject ( ) ) . findClass ( name , ProjectScope . getProjectScope ( myProject ) ) ; } - private boolean isMoveToPackage ( ) { + protected boolean isMoveToPackage ( ) { return myHaveP...
open an API for scala
<nb> public class AsyncHttpClientConfig { private final List < RequestFilter > requestFilters = new LinkedList < RequestFilter > ( ) ; private final List < ResponseFilter > responseFilters = new LinkedList < ResponseFilter > ( ) ; private final List < IOExceptionFilter > ioExceptionFilters = new LinkedList < IOEx...
o Remove ineffectual config option
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractFileResolver implements FileResolver { throw new UncheckedIOException ( e ) ; } } - + if ( ! ( path instanceof String ) )...
add deprecation warning for unconvertable parameter
<nb> public class PublishToMavenLocal extends PublishToMavenRepository { mavenLocalRepository . setName ( ArtifactRepositoryContainer . DEFAULT_MAVEN_LOCAL_REPO_NAME ) ; return mavenLocalRepository ; } - - @ override - public void setRepository ( MavenArtifactRepository repository ) { - throw new Unsuppor...
Don t restrict setting of repository on PublishToMavenLocal task
<nb> public class ResourceExtractor extends ResourceIndex { id = ++ maxUsedInt ; resourceNameToId . put ( resName , id ) ; resourceIdToResName . put ( id , resName ) ; - LOGGER . info ( STRING0 + resName . getFullyQualifiedName ( ) + STRING1 + Integer . toHexString ( id ) ) ; + LOGGER . fine ( STRING0 + resNa...
Changed a log line from INFO to FINE
<nb> if ( MORE_DEBUG ) Slog . v ( TAG , STRING0 + nRead + STRING1 + ( size - soF skip = true ; } - if ( ! mAutoRestore || ! mProvisioned ) { + if ( ! mAutoRestore ) { if ( DEBUG ) { - Slog . w ( TAG , STRING2 + mAutoRestore - + STRING3 + mProvisioned ) ; + Slog . w ( TAG , STRING2 + mAutoRestore ) ; ...
Do not require device provisioning to do restore at install
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrDelegatesToUtil { if ( ! ( element instanceof PsiMethod ) ) return null ; String typeValue = GrAnnotationUtil . inferStringAttribute ( delegatesTo , STRING0...
ignore empty type value
<nb> public class WeekView extends View { mVerticalFlingEnabled = enabled ; } + COMMENT + COMMENT + COMMENT + COMMENT + public int getAllDayEventHeight ( ) { return mAllDayEventHeight ; } + + COMMENT + COMMENT + COMMENT + COMMENT + public void setAllDayEventHeight ( int height ) { mAllDayEve...
Added getter and setter of AllDayEventHeight
<nb> public class ApplicationClassesInSystemClassLoaderWorkerFactory implements Worke execSpec . setMain ( STRING0 + GradleWorkerMain . class . getName ( ) ) ; - boolean useOptionsFile = Jvm . current ( ) . getJavaVersion ( ) . isJava9Compatible ( ) ; + SINGLE + SINGLE + boolean useOptionsFile = Jvm . cur...
Don t use an options file to run java when using not using the current Java install
<nb> public interface Stream < T > extends Seq < T > { } @ override - default boolean exists ( Predicate < ? super T > predicate ) { - Objects . requireNonNull ( predicate , STRING0 ) ; - return Seq . super . exists ( predicate ) ; - } - - @ override default Stream < T > filter ( Predicate < ? super...
removed unnecessary method
<nb> public class MyAdvancedEchoCreator implements WebSocketCreator @ override public Object createWebSocket ( UpgradeRequest req , UpgradeResponse resp ) { - String type = req . getHeader ( STRING0 ) ; - if ( STRING1 . equals ( type ) ) + String [ ] type = req . getParameterMap ( ) . get ( STRING0 ) ; + ...
Using query parameters in example instead
<nb> public class DocGen extends AbstractProcessor { STRING0 , STRING1 , STRING2 , + STRING3 , + STRING4 + + STRING5 , STRING6 ) , Locale . ENGLISH ) ; <nb> public class DocGen extends AbstractProcessor { STRING0 , STRING1 , STRING2 , + STRING3 , + STRING4 + + STRING5 , STRING6 ) , ...
Wiki generator now gives info on how to suppress an error
<nb> public class Notification implements Parcelable RemoteViews contentView = getStandardView ( R . layout . notification_template_big_text ) ; contentView . setTextViewText ( R . id . big_text , mBigText ) ; contentView . setViewVisibility ( R . id . big_text , View . VISIBLE ) ; + contentView . setViewVisibi...
The BigTextStyle should never render mContentText
<nb> public class TestDriver try ( ResultSet rs = connection . getMetaData ( ) . getTables ( null , null , STRING0 , null ) ) { assertTableMetadata ( rs ) ; - SINGLE - readRows ( rs ) ; - fail ( STRING1 ) ; - } catch ( SQLException expected ) { + Set < List < Object > > rows = ImmutableSet . copyOf ( re...
Fix getTables test
<nb> public abstract class AbstractVertex implements Vertex { public void addOutgoing ( Edge ee ) { if ( outgoing . contains ( ee ) ) { LOG . error ( STRING0 , ee , this ) ; - } else { - outgoing . add ( ee ) ; } + outgoing . add ( ee ) ; } COMMENT <nb> public abstract class AbstractVertex impleme...
modify repeated ege add checks to preserve past behavior
<nb> public class SQLServerTemplates extends SQLTemplates { } ; } - private String topTemplate = STRING0 ; + private String topTemplate = STRING1 ; public SQLServerTemplates ( ) { this ( STRING2 , false ) ;
Fix limit template
<nb> public class CollectionDataSerializerHook implements DataSerializerHook { public static final int SET_CONTAINER = NUMBER0 ; public static final int LIST_CONTAINER = NUMBER1 ; public static final int COLLECTION_TRANSACTION_LOG_RECORD = NUMBER2 ; - public static final int QUEUE_TRANSACTION_LOG_RECORD = NUMBE...
Fix QueueTransactionLogRecord type ID
<nb> public class SearchWidget extends Composite implements SearchDisplay SuggestionDisplay suggestDisplay , boolean continuousSearch ) { + textBox . getElement ( ) . setAttribute ( STRING0 , STRING1 ) ; + if ( suggestDisplay != null ) suggestBox_ = new FocusSuggestBox ( oracle , textBox , suggestDisplay ...
disable spell checking in find and search text boxes
<nb> public class UserManager { try { Bundle guestRestrictions = mService . getDefaultGuestRestrictions ( ) ; guestRestrictions . putBoolean ( DISALLOW_SMS , true ) ; + guestRestrictions . putBoolean ( DISALLOW_INSTALL_UNKNOWN_SOURCES , true ) ; mService . setUserRestrictions ( guestRestrictions , guest . id ...
Don t allow guests to install from unknown sources
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
eliminate ecilpse warning
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> public class TestInvoicePayment extends TestIntegrationBase { @ test ( groups = STRING0 ) public void testCancellationEOTWithInvoiceItemAdjustmentsOnInvoiceWithMultipleItems ( ) throws Exception { final int billingDay = NUMBER0 ; - Boolean foo = true ; - System . out . println ( Boolean . TRUE . equals (...
remove debugging statements
<nb> public class LocalDiscovery extends AbstractLifecycleComponent < Discovery > implem } try { newNodeSpecificClusterState = discovery . lastProcessedClusterState . readDiffFrom ( StreamInput . wrap ( clusterStateDiffBytes ) ) . apply ( discovery . lastProcessedClusterState ) ; - logger . debug ( STRING0 , cl...
reduce log chatter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + SINGLE + SINGLE public class SelectNextEditorTabAction extends AnAction implements DumbAware { public void actionPerformed ( final AnActionEvent e ) { } + + @ override + public void update ( AnActionEvent e ) { + SINGLE + e . getP...
allow Alt Shift Left Right shortcut to be used by plugins
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; impor...
Removed unused imports
<nb> public class ParallelGatewayTest extends PluggableActivitiTestCase { SINGLE taskService . complete ( tasks . get ( NUMBER0 ) . getId ( ) ) ; - assertEquals ( NUMBER1 , historyService . createHistoricProcessInstanceQuery ( ) . processInstanceId ( processInstanceId ) . finished ( ) . count ( ) ) ; + assert...
Removed usage of history for test case assertion since hudson has a profile to run without history
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class ContentTypeMissingScanner extends PluginPassiveScanner {
removed unused packages
<nb> public class ProgressWheel extends View { SINGLE private float spinSpeed = FLOAT0 ; SINGLE - private int delayMillis = NUMBER0 ; + private int delayMillis = NUMBER1 ; private float progress = NUMBER0 ; boolean isSpinning = false ; <nb> public class ProgressWheel extends View { barLength = ( int...
Increased the default delay
<nb> public class SslHandler extends FrameDecoder if ( result . bytesProduced ( ) > NUMBER0 ) { outNetBuf . flip ( ) ; int remaining = outNetBuf . remaining ( ) ; - msg = ChannelBuffers . buffer ( remaining ) ; + msg = ctx . getChannel ( ) . getConfig ( ) . getBufferFactory ( ) . getBuffer ( remaining ) ; ...
Use the correct ChannelBufferFactory when creating new ChannelBuffers
<nb> public final class CommonUtils { } } + COMMENT + COMMENT + COMMENT public static void warmUpLoop ( ) { for ( int k = NUMBER0 ; k < NUMBER1 ; k ++ ) { } } - + COMMENT COMMENT COMMENT
adding comments to the warmUpLoop function
<nb> public interface Locks interface Client extends ResourceLocker , AutoCloseable { COMMENT + COMMENT + COMMENT + int NO_LOCK_SESSION_ID = - NUMBER0 ; + + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; ...
Introduce specific NO_LOCK_SESSION_ID constant
<nb> public interface DruidAbstractDataSourceMBean { List < String > getFilterClassNames ( ) ; boolean isTestOnBorrow ( ) ; + + void setTestOnBorrow ( boolean testOnBorrow ) ; boolean isTestOnReturn ( ) ; + + boolean isTestWhileIdle ( ) ; + + void setTestWhileIdle ( boolean testWhileIdle ) ; b...
enhance jmx support
<nb> public class ReaderSearchService extends Service { ReaderPostList serverPosts = ReaderPostList . fromJson ( jsonObject ) ; SINGLE - int sortIndex = offset + NUMBER0 ; + int sortIndex = offset ; for ( ReaderPost post : serverPosts ) { post . sortIndex = sortIndex ; - sortIndex ++ ; + sortIndex -- ...
Set sort index in reverse for search results
<nb> public class One2OneAnalyzer extends AssociationsAnalyzer { COMMENT private void bidirectionalCondition ( DataSupport baseObj , DataSupport associatedModel ) { if ( associatedModel . isSaved ( ) ) { + SINGLE baseObj . addAssociatedModelWithFK ( associatedModel . getTableName ( ) , associatedModel . get...
add annotations on One2OneAnalyzer when handling bidirectionalConditions
<nb> public class GoSdkType extends SdkType { if ( SystemInfo . isWindows ) { return STRING0 ; } else { - String fromEnv = findPathInEnvironment ( ) ; - if ( fromEnv != null ) { - return fromEnv ; - } - else if ( SystemInfo . isMac ) { + if ( SystemInfo . isMac ) { + String fromEnv = findPathInEnvir...
use only usr lib go for linux
<nb> public class HdfsFetcher implements FileFetcher { logger . info ( stats . getTotalBytesCopied ( ) / ( NUMBER0 * NUMBER0 ) + STRING0 + format . format ( stats . getBytesPerSecond ( ) / ( NUMBER0 * NUMBER0 ) ) + STRING1 + format . format ( stats . getPercentCopied ( ) ) - + STRING2 ) ; + + STRING3 + dest )...
Added destination name to the status message in the fetcher
<nb> public class GradleProjectResolverUtil { return ExternalSystemApiUtil . find ( moduleNode , ProjectKeys . TASK , new BooleanFunction < DataNode < TaskData > > ( ) { @ override public boolean fun ( DataNode < TaskData > node ) { - return node . getData ( ) . getName ( ) . equals ( taskName ) ; + String na...
find task by task path also
<nb> final class ActivityStack { return ; } + mStackSupervisor . moveHomeStack ( isHomeStack ( ) ) ; + SINGLE SINGLE mTaskHistory . remove ( tr ) ;
Don t move stack with task for moveTaskToFront
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CommentLiteralEscaper extends LiteralTextEscaper < PsiCommentImpl > { } ...
decouple CommentLiteralEscaper from JavaTokenType
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class HeavyIdeaTestFixtureImpl extends BaseFixture implements HeavyIdeaTestFixtu doPostponedFormatting ( myProject ) ; - Disposer . dispose ( myProject...
dispose project on EDT in tests
<nb> public class FileSystemMasterIntegrationTest { public void getCapacityBytesTest ( ) { BlockMaster blockMaster = mLocalTachyonClusterResource . get ( ) . getMaster ( ) . getInternalMaster ( ) . getBlockMaster ( ) ; - SINGLE - SINGLE - SINGLE - CommonUtils . sleepMs ( NUMBER0 ) ; Assert . assertEqual...
Remove unneeded sleep
<nb> public class MatcherImpl { } } - Project getProject ( ) { - return project ; - } - COMMENT COMMENT COMMENT
remove unused method
<nb> public class ServerStateMachine extends StateMachine player . posX = pos . getX ( ) . doubleValue ( ) ; player . posY = pos . getY ( ) . doubleValue ( ) ; player . posZ = pos . getZ ( ) . doubleValue ( ) ; - SINGLE - player . setGameType ( GameType . getByName ( as . getMode ( ) . name ( ) . toLowerCase ...
Fixed potentially disastrous gametype bug
<nb> package NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class MathUtils } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final int log2strict ( int value ) throws ArithmeticException...
Added strict binary logarithm computation to math utils
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JUnitRunner { tests . remove ( ConcurrentKeyTest . class ) ; tests . remove ( ValueArrayToFrameTestAll . class ) ; tests . remove ( N...
Remove leaky test for now
<nb> 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 - COMMENT - COMMENT - COMMENT - COMMENT - ...
git deprecate GitTask
<nb> public class Sphere extends BaseObject3D { numUvs = NUMBER0 ; for ( j = NUMBER0 ; j <= mSegmentsH ; ++ j ) { - for ( i = NUMBER0 ; i <= mSegmentsW ; ++ i ) { - textureCoords [ numUvs ++ ] = - ( float ) i / mSegmentsW ; + for ( i = mSegmentsW ; i >= NUMBER0 ; -- i ) { + textureCoords [ numUvs ++ ] = (...
Fixed UV order in Sphere
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ;
Importing exception needed in a test method
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; @ runwith ( HazelcastParallelClassRunner . class ) @ category ( SlowTest . class ) <nb> public class ConditionTest extends HazelcastTestSupport { HazelcastInstance instance...
Minor conditiontest await timoeout cleanup
<nb> public class StoreDirect extends Store { } public StoreDirect ( String fileName ) { - super ( fileName , fileName == null ? Volume . memoryFactory ( ) : Volume . fileFactory ( ) , false , false , null , false ) ; + this ( fileName , fileName == null ? Volume . memoryFactory ( ) : Volume . fileFactory ( )...
fix some tests
<nb> public class DefaultRenderingProcess { public void takeScreenshot ( ) { takeScreenshot = true ; - overwriteRtWidth = NUMBER0 * NUMBER1 ; - overwriteRtHeight = NUMBER2 * NUMBER1 ; + SINGLE + overwriteRtWidth = NUMBER3 ; + overwriteRtHeight = NUMBER4 ; createOrUpdateFullscreenFbos ( ) ; }
Shrink screenshot size down to default window size until we can introduce options to take in different sizes
<nb> public class HystrixObservableCommandTest extends CommonHystrixCommandTests < Test assertTrue ( command4 . isResponseFromCache ( ) ) ; assertTrue ( command4 . getExecutionTimeInMilliseconds ( ) == - NUMBER0 ) ; - assertEquals ( NUMBER1 , circuitBreaker . metrics . getCurrentConcurrentExecutionCount ( ) ) ;...
Removing concurrency check from testRequestCacheWithSlowExecution
<nb> public class InsertIntoIntegrationTest extends SQLTransportIntegrationTest { ensureGreen ( ) ; refresh ( ) ; - execute ( STRING0 ) ; - assertThat ( TestingHelpers . printedTable ( response . rows ( ) ) , is ( - STRING1 + - STRING2 + - STRING3 ) ) ; - execute ( STRING4 ) ; assertThat ( Testing...
fixed a flaky test
<nb> class BluetoothEventLoop { } String name = propValues [ NUMBER0 ] ; if ( name . equals ( STRING0 ) ) { - Intent intent = new Intent ( BluetoothDevice . ACTION_NAME_CHANGED ) ; - intent . putExtra ( BluetoothDevice . EXTRA_NAME , propValues [ NUMBER1 ] ) ; + Intent intent = new Intent ( BluetoothAdapter...
Fix adapter name change problem
<nb> public class MonitorServiceTest implements JobScheduler @ test public void correctRepresentation ( ) throws Exception { - UriInfo mockUri = mock ( UriInfo . class ) ; Response resp = monitorService . getServiceDefinition ( ) ; assertEquals ( NUMBER0 , resp . getStatus ( ) ) ;
Removing unused variables
<nb> import NAMESPACE ; import NAMESPACE ; public class ExampleTest extends TestUtil { + @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } + @ test public void testIris ( ) { ExampleModel kmm = null ; Frame fr = null ;
Fix broken algo tests
<nb> public class CliDriver { SINGLE SINGLE SINGLE + ss . close ( ) ; System . exit ( NUMBER0 ) ; } else if ( tokens [ NUMBER0 ] . equalsIgnoreCase ( STRING0 ) ) { <nb> public class CliSessionState extends SessionState { public void close ( ) { try { - client . clean ( ) ; - client . shutdown ...
CLI local mode hit NPE when exiting by D Ning Zhang via He Yongqiang
<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator > { SINGLE if ( _buildParseTrees && _ctx != localctx ) { ParserRuleContext < ? > parent = ( ParserRuleContext < ? > ) _ctx . parent ; - parent . removeLastChild ( ) ; - if ( parent != null ) parent . addChild ( localctx ) ; + ...
add null ptr so start rule it doesn t crash if you label the alternatives
<nb> public class InMemorySessionManager implements SessionManager { } @ override - public int activeSessions ( ) { - return sessions . size ( ) ; - } - - @ override public Set < String > getTransientSessions ( ) { return getAllSessions ( ) ; } <nb> public interface SessionManager { void setDe...
Remove SessionManager activeSessions since it is made redundant by SessionManager getActiveSessions
<nb> public enum IntelliJPlatformProduct { APPCODE ( STRING0 , STRING1 , PlatformUtils . APPCODE_PREFIX ) , CLION ( STRING2 , STRING3 , PlatformUtils . CLION_PREFIX ) , DBE ( STRING4 , STRING5 , PlatformUtils . DBE_PREFIX ) , + RIDER ( STRING6 , STRING7 , PlatformUtils . RIDER_PREFIX ) , ANDROID_STUDIO ( STRI...
unified creation of license sources
<nb> public class MarshlandPool < T > implements Pool < T > reference != null ; reference = ( LocalSlotReference ) objectsFromDeadThreads . poll ( ) ) { - pool . release ( reference . object ) ; + T instance = reference . object ; + if ( instance != null ) + pool . release ( instance ) ; } }
Added null check
<nb> public class TestStatementBuilder { STRING0 + STRING1 + STRING2 + STRING3 + - STRING4 + - STRING5 + + STRING6 + + STRING7 + STRING8 ) ) ; statement = SqlParser . createStatement ( STRING9 ) ; <nb> public class TestStatementBuilder { STRING10 + STRING1 + STRING2 + STRING3 + - STRING4 +...
fixed statement builder test
<nb> public class EditorWindowImpl extends UserDataHolderBase implements EditorWindow @ notnull public Point logicalPositionToXY ( @ notnull final LogicalPosition pos ) { assert isValid ( ) ; - return myDelegate . logicalPositionToXY ( injectedToHost ( fitInsideEditor ( pos ) ) ) ; + LogicalPosition trimmedPo...
restore extra space trimmed by fitInsideEditor
<nb> public interface SamlProfileObjectBuilder < T extends SAMLObject > { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public interface SamlProfileObjectBuilder < T extends SAMLObject > { COMMENT COMMENT COMMENT - < T > T build ( final AuthnRequest authnRequest , final HttpServ...
fix an incorrect generic override
<nb> public class TestFragmentTransaction extends FragmentTransaction { private boolean replacing ; private boolean addedToBackStack ; private String backStackName ; + private int lastEnterAnimation ; + private int lastExitAnimation ; public TestFragmentTransaction ( TestFragmentManager fragmentManager ) ...
record last animations
<nb> public class Allocation extends BaseObj { } } + COMMENT + COMMENT + COMMENT + COMMENT + @ override + public void destroy ( ) { + if ( ( mUsage & USAGE_IO_OUTPUT ) != NUMBER0 ) { + setSurface ( null ) ; + } + super . destroy ( ) ; + } }
make Allocation destroy include setSurface null for USAGE_IO_OUTPUT
<nb> public class VCardComposer { if ( contentValuesList != null ) { for ( ContentValues contentValues : contentValuesList ) { byte [ ] data = contentValues . getAsByteArray ( Photo . PHOTO ) ; + if ( data == null ) { + continue ; + } final String photoType ; SINGLE SINGLE
Make vCard composer handle null of Photo entry correctly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AbstractHqlQuery < A extends AbstractHqlQuery < A > > extends HqlQueryBas } } + public long count ( ) { + return uniqueResult ( HqlGramm...
added count methods
<nb> public class WsSession implements Session { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public void doClose ( CloseReason closeReasonMessage , CloseReason closeReasonLocal ) { SINGLE
Fix WebSocket Javadoc warnings
<nb> public class GenerateTests { } public static void main ( String [ ] args ) throws IOException { + System . setProperty ( STRING0 , STRING1 ) ; generateTest ( STRING2 , STRING3 ,
GenerateTests uses headless mode
<nb> public class Transaction extends ChildMessage { COMMENT public String toString ( @ nullable AbstractBlockChain chain ) { StringBuilder s = new StringBuilder ( ) ; - s . append ( STRING0 ) . append ( getHashAsString ( ) ) . append ( STRING1 ) . append ( getConfidence ( ) ) . append ( STRING2 ) ; + s . app...
Put transaction confidence into separate line in toString
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ComparatorNotSerializableInspection extends ClassInspection { public void visitClass ( PsiClass aClass ) { SINGLE + if ( aClass instanceo...
do not report anonymous classes
<nb> 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 ; import NAMESPACE ; import NAMESPACE ; - import N...
removed useless imports
<nb> public class ShutdownMonitor extends Thread { if ( isAlive ( ) ) { - System . out . printf ( STRING0 ) ; + System . err . printf ( STRING0 ) ; return ; SINGLE } startListenSocket ( ) ; <nb> public class ShutdownMonitor extends Thread private void startListenSocket ( ) { if ( this . port < N...
removed System outs
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ClassInnerStuffCache { final Map < String , PsiClass > cachedInners = new THashMap < String , PsiClass > ( ) ; for ( final PsiClass psiClass : classes ) { - cachedInners . put ( psiClass . getName ( ) , psiClass ) ; + fin...
Prefer own inner classes to introduced
<nb> public class TxLog COMMENT public void close ( ) throws IOException { + logBuffer . force ( ) ; logBuffer . getFileChannel ( ) . close ( ) ; }
Fixed an issue where the tx log wasn t closed properly leaving transactions not marked as finished
<nb> public class Session { private BasicHttpContext _basicHttpContext ; private final AtomicInteger _downloadedBytes = new AtomicInteger ( NUMBER0 ) ; - private int _downloadRate ; + private volatile int _downloadRate ; private final ExecutorService _executorService ; private final HttpClient _httpClient...
sync engine Set counter fields to volatile since value is read from multiple threads
<nb> public class StreamingHistogram else { Map . Entry < Double , Long > pi = bin . floorEntry ( b ) ; + if ( pi == null ) + return NUMBER0 ; SINGLE double weight = ( b - pi . getKey ( ) ) / ( pnext . getKey ( ) - pi . getKey ( ) ) ; double mb = pi . getValue ( ) + ( pnext . getValue ( ) - pi . getValu...
add null check to StreamingHistogram sum
<nb> public class AQueryAsyncTest extends AbstractTest < AQueryTestActivity > { aq . ajax ( url , JSONObject . class , NUMBER0 * NUMBER1 * NUMBER2 , cb ) ; - waitAsync ( ) ; + waitAsync ( NUMBER3 ) ; JSONObject jo = ( JSONObject ) result ;
Add wait for async delay
<nb> public class SpoutExecutor extends Executor { Long id = ( Long ) tuple . getValue ( NUMBER0 ) ; Long timeDeltaMs = ( Long ) tuple . getValue ( NUMBER1 ) ; TupleInfo tupleInfo = ( TupleInfo ) pending . remove ( id ) ; - if ( tupleInfo . getMessageId ( ) != null ) { + if ( tupleInfo != null && tupleInfo . ...
fixed SpoutExecutor NPE
<nb> public class AccessLogValve COMMENT COMMENT COMMENT - private Date currentDate = null ; + private volatile Date currentDate = null ; private volatile long currentMillis = NUMBER0 ; <nb> public class AccessLogValve } SINGLE - if ( writer != null ) { - writer . println ( message ) ; - i...
Add an additional volatile from a review of the associated benchmark tests
<nb> public abstract class ATransformable3D { } public Quaternion getOrientation ( ) { + setOrientation ( ) ; SINGLE return new Quaternion ( mOrientation ) ; }
Recalculate orientation in getOrientation
<nb> public class XmlNode extends RubyObject { public IRubyObject add_next_sibling_node ( ThreadContext context , IRubyObject other ) { return adoptAs ( context , AdoptScheme . NEXT_SIBLING , other ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ jrub...
Adds one method for xinclude
<nb> public class MusicService extends MediaBrowserService implements Playback . Callba } } } + SINGLE + SINGLE + mDelayedStopHandler . removeCallbacksAndMessages ( null ) ; + mDelayedStopHandler . sendEmptyMessageDelayed ( NUMBER0 , STOP_DELAY ) ; return START_STICKY ; }
Schedule a task to stop the service if not being used
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FixGetGlueCheckInActivity extends BaseActivity implements } } + + @ override + protected void onStart ( ) { + super . onStart ( ) ; ...
Send views for fix GetGlue activity
<nb> public abstract class DiffRequestPresentableProxy implements DiffRequestPresenta myStepResult = request . step ( context ) ; } catch ( VcsException e ) { - myStepResult = new MyResult ( null , DiffPresentationReturnValue . quit ) ; + myStepResult = new MyResult ( null , DiffPresentationReturnValue . quit...
pass unshelve error up
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ runwith ( CustomSpringJUnit4ClassRunner . class ) @ contextconfiguration ( locations = { STRING0 } )
add some more comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class Settings { COMMENT public static final boolean isLoggingBehaviorEnabled ( LoggingBehaviors behavior ) { synchronize...
android sdk Disable all logging behaviors except in DEBUG builds
<nb> import NAMESPACE ; COMMENT public class BootstrapMainStarter { public void start ( String [ ] args , String gradleHome , String version ) throws Exception { + System . setProperty ( STRING0 , gradleHome ) ; boolean debug = WrapperMain . isDebug ( ) ; File gradleJar = new File ( gradleHome , STRING1 + v...
Fixed bug with not setting gradle home
<nb> public class PwoDiscoveryService extends Service private void initialize ( ) { mNotificationManager = NotificationManagerCompat . from ( this ) ; mPwoDiscoverers = new ArrayList < > ( ) ; - mPwoDiscoverers . add ( new MdnsPwoDiscoverer ( this ) ) ; + + SINGLE + if ( Build . VERSION . SDK_INT > Build ...
Disable mDNS PWO discovery for pre M devices
<nb> public final class DreamManagerService extends IDreamManager . Stub { @ override protected void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) { - mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . DUMP , TAG ) ; + if ( mContext . checkCallingOrSelfPermission ( S...
Normalize dream service dump check with other services
<nb> public class BeanConfigurerTests extends TestCase { public static class CircularFactoryBean implements FactoryBean { public CircularFactoryBean ( ) { - SINGLE - SINGLE + ValidAutowireByName autowired = new ValidAutowireByName ( ) ; + assertNull ( autowired . getRamnivas ( ) ) ; } public Object ...
Fixed a commented test
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestOgg extends SimpleApplication { @ override public void simpleInitApp ( ) { System . out . println ( STRING0 ) ; - audioSource = new AudioNode ( assetMan...
don t use deprecated AudioNode constructor
<nb> public final class OAuthAuthorization implements Authorization , java . io . Serializ logger . debug ( STRING0 , signature ) ; oauthHeaderParams . add ( new HttpParameter ( STRING1 , signature ) ) ; - return STRING2 + encodeParameters ( oauthHeaderParams , STRING3 , true ) ; + return STRING2 + encodePara...
Twitter fixed the user streams OAuth bug I found so reverting the workaround
<nb> public class LiquidTank { return this . liquid ; } + public void setLiquid ( LiquidStack liquid ) { + this . liquid = liquid ; + } + public int getCapacity ( ) { return this . capacity ; }
Added function to set liquid on LiquidTank java
<nb> public class MetaData implements Iterable < IndexMetaData > { for ( String index : indices ) { if ( ! this . indices . containsKey ( index ) ) { possiblyAliased = true ; + break ; } } if ( ! possiblyAliased ) { return indices ; } - ArrayList < String > actualIndices = Lists . newArrayListWith...
Fix double counts when count is executed on two aliases pointing to the same index
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Javadoc used startApplication which doesnt exists changed to createApplication
<nb> class MountService extends IMountService . Stub != PackageManager . PERMISSION_GRANTED ) { throw new SecurityException ( STRING0 ) ; } - mConnector . doCommand ( String . format ( STRING1 , id ) ) ; String cmd = String . format ( STRING2 , id , key , ownerUid ) ; mConnector . doCommand ( cmd ) ;
Remove destroy asec command when mounting secure container