diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class AudioplayerActivity extends MediaplayerActivity { } @ override - protected void onPause ( ) { - super . onPause ( ) ; + protected void onStop ( ) { + super . onStop ( ) ; resetFragmentView ( ) ; + } @ override
Moved resetFragmentView into onStop fixes problems when opening dialogs inside AudioplayerActivity
<nb> public abstract class ABaseTransformer implements PageTransformer { view . setPivotY ( NUMBER0 ) ; view . setTranslationY ( NUMBER0 ) ; - if ( isPagingEnabled ( ) ) { - view . setTranslationX ( width * position * FLOAT0 ) ; - } else { + if ( ! isPagingEnabled ( ) ) view . setTranslationX ( - width ...
Fixed default and cube animations
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT public abstract class MapBinder < K , V > { private MapBinder ( ) { } <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT COMMENT public class MapBinderTest extends TestCase {
Giving DPB full credit for authoring the MapBinder code
<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito } @ override + public void visitFrame ( int type , int nLocal , Object [ ] local , int nStack , Object [ ] stack ) { + COMMENT + } + + @ override public void visitMaxs ( int maxStack , int maxLocals ) { onMetho...
Suppress frames from advice visitor as recomutation is currently required
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class AdvancedSettings { + public static final String KEY_LASTUPDATE = STRING0 ; + public static final String KEY_AUTOBACKUP = STRING1 ; public static final String KEY_LASTBACKUP = STRING2 ; + public stat...
Add last update time to AdvancedSettings
<nb> public class ProjectWorkspace { } String expectedFileContent = Files . toString ( file . toFile ( ) , Charsets . UTF_8 ) ; String observedFileContent = Files . toString ( observedFile , Charsets . UTF_8 ) ; + SINGLE + SINGLE + SINGLE + expectedFileContent = expectedFileContent . replace ( STRING0 , S...
Normalize file output to use n style newlines before comparing
<nb> public class OsmandSettings { SINGLE public final OsmandPreference < RouteService > ROUTER_SERVICE = new EnumIntPreference < RouteService > ( STRING0 , RouteService . OSMAND , - new RouteService [ ] { RouteService . OSMAND , RouteService . YOURS , RouteService . ORS } ) . makeProfile ( ) ; + RouteService...
Add osrm provider
<nb> public class TextEditingTarget implements } else { + String newlineOrSpace = getDistanceToPreviousNewline ( ) >= NUMBER0 ? + STRING0 : + STRING1 ; if ( ! peek ( NUMBER1 ) . isWhitespaceOrNewline ( ) ) - setValue ( currentValue ( ) + STRING1 ) ; + setValue ( currentValue ( ) + newlineOrSpace ) ; ...
ensure newline after operators on long lines
<nb> public class TurnType { this . lanes = lanes ; } - SINGLE + SINGLE public static void setPrimaryTurn ( int [ ] lanes , int lane , int turnType ) { lanes [ lane ] |= ( turnType < < NUMBER0 ) ; } public void setPrimaryTurn ( int lane , int turnType ) { + lanes [ lane ] &= ~ ( NUMBER1 < < NUMBER...
When setting a new primary or secondary turn clear the bits from the currently set turn first
<nb> public class DateTimeUtils { return NUMBER0 ; return ( int ) ( msDiff / NUMBER1 ) ; } + public static int secondsBetween ( Date dt1 , Date dt2 ) { + long msDiff = millisecondsBetween ( dt1 , dt2 ) ; + if ( msDiff == NUMBER0 ) { + return NUMBER0 ; + } + return ( int ) ( msDiff / NUMBER2 ) ; + } ...
Add a routine to return a diff between two dates in seconds
<nb> public class CarrierConfigManager { COMMENT public static final String STRING_VVM_TYPE = STRING0 ; - COMMENT - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static final String VVM_TYPE_OMTP = STRING1 ; - private final static String TAG = STRING2 ; COMMENT <nb> public c...
Add vvm type for t mobile
<nb> public final class ClientContext { COMMENT COMMENT + COMMENT + COMMENT COMMENT private static void reset ( ) { sTachyonConf = new TachyonConf ( ) ; <nb> public final class ClientContext { } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT private s...
Improve javadoc on client context init reset
<nb> public class CheckForUpdateAction extends AnAction implements DumbAware { final CheckForUpdateResult result = UpdateChecker . checkForUpdates ( instance , true ) ; final List < PluginDownloader > updatedPlugins = UpdateChecker . updatePlugins ( true , hostsConfigurable , indicator ) ; - if ( updatedPlugins...
show update dialog when no plugins were updated
<nb> public class MavenConsoleImpl extends MavenConsole { if ( ! myTitle . equals ( console . myTitle ) ) continue ; if ( console . isFinished ( ) ) { - messageView . getContentManager ( ) . removeContent ( each , false ) ; + messageView . getContentManager ( ) . removeContent ( each , true ) ; } }
dispose maven console during the tab removal
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EditPostActivity extends SherlockActivity implements OnClickListene } else { SINGLE text = text . ...
Switch EditPostActivity to use renamed StringUtils class
<nb> public class ArtifactUtil { public static String getDefaultArtifactOutputPath ( @ notnull String artifactName , final @ notnull Project project ) { final CompilerProjectExtension extension = CompilerProjectExtension . getInstance ( project ) ; if ( extension == null ) return null ; - final String outputUrl...
suggest output path for artifact even if project output dir isn t specified
<nb> public interface DecoratorBarriers { COMMENT COMMENT + COMMENT COMMENT + @ deprecated String START_VIOLATION_PERSISTENCE = STRING0 ; COMMENT COMMENT + COMMENT COMMENT + @ deprecated String END_OF_VIOLATION_PERSISTENCE = STRING1 ; COMMENT
Deprecate the decorator barriers related to issue persistence
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClassWithTooManyDependenciesInspection @ override public void visitClass ( @ notnull RefClass refClass ) { super . visitC...
fix skip inner classes
<nb> class ClientThread extends Thread SINGLE try { - if ( _target > NUMBER0 ) - { - sleep ( random . nextInt ( ( int ) ( FLOAT0 / _target ) ) ) ; - } + SINGLE + SINGLE + if ( ( _target > NUMBER0 ) && ( _target <= FLOAT0 ) ) + { + sleep ( random . nextInt ( ( int ) ( FLOAT0 / _target ) ) ) ; +...
Fix initial sleep for client thread
<nb> public class QueryPhase implements SearchPhase { } searchContext . queryResult ( ) . topDocs ( topDocs ) ; } catch ( Exception e ) { - throw new QueryPhaseExecutionException ( searchContext ) ; + throw new QueryPhaseExecutionException ( searchContext , e ) ; } facetsPhase . execute ( searchContext ...
add the cause to query phase execption
<nb> public final class FileUtils { TarArchiveEntry tarEntry = new TarArchiveEntry ( f , f . getName ( ) ) ; tOut . setLongFileMode ( TarArchiveOutputStream . LONGFILE_GNU ) ; tOut . putArchiveEntry ( tarEntry ) ; - IOUtils . copy ( new FileInputStream ( f ) , tOut ) ; SINGLE + FileInputStream input = new Fil...
FileUtils tar does not close input files Navis Ryu via Ashutosh Chauhan
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix code snippet
<nb> public class AutoValueProcessor extends AbstractProcessor { @ override public boolean process ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) { - - processingEnv . getMessager ( ) . printMessage ( Diagnostic . Kind . NOTE , STRING0 + extensions . iterator ( ) . hasNext ( ) ) ; ...
Removes test logging
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT...
Updated DataPoints documentation for the new iterable datapoints
<nb> public abstract class WXComponent implements IWXObject , IWXActivityStateListener return measureOutput ; } - public final void updateProperties ( Map < String , Object > props ) { + public void updateProperties ( Map < String , Object > props ) { if ( props == null || props . isEmpty ( ) || mHost == nu...
android modify updateProperties to none final
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class CoAPComponentTest extends CamelTestSupport { - + int port = AvailablePortFinder . getNextAvailable ( ) ; + @ tes...
Switch coap test to a dynamic port
<nb> public class ExpectedException implements TestRule { private String missingExceptionMessage ( ) { if ( isMissingExceptionMessageEmpty ( ) ) { - String expectation = StringDescription . toString ( fMatcherBuilder . build ( ) ) ; + String expectation = StringDescription . toString ( fMatcherBuilder . build...
Converted tab to spaces
<nb> package NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public class HpackException extends Exception {
Fix Javadoc error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IndexTask extends AbstractFixedIntervalTask indexGranularity , shardSpec ) , - getInterval ( ) , + bucket , myLock ...
Actually make and publish segments for the correct intervals
<nb> public class MongoClient extends Mongo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Removed spurious character in Javadoc
<nb> public class RealmProcessor extends AbstractProcessor { if ( elementKind . equals ( ElementKind . FIELD ) ) { VariableElement variableElement = ( VariableElement ) element ; String fieldName = variableElement . getSimpleName ( ) . toString ( ) ; + + Set < Modifier > modifiers = variableElement . getModif...
Added support for static fields
<nb> public class TpchMetadata . column ( STRING0 , STRING ) SINGLE . column ( STRING1 , STRING ) SINGLE . column ( STRING2 , STRING ) SINGLE - . column ( STRING3 , STRING ) SINGLE + . column ( STRING3 , LONG ) SINGLE . column ( STRING4 , STRING ) . build ( ) ; SINGLE
Fix column type for orders shippriority
<nb> public class ThumbnailsCacheManager { public static Bitmap mDefaultImg = BitmapFactory . decodeResource ( - MainApp . getAppContext ( ) . getResources ( ) , - DisplayUtils . getFileTypeIconId ( STRING0 , STRING1 ) + MainApp . getAppContext ( ) . getResources ( ) , + R . drawable . file_image ) ;
shortened this prediction since it will always be image
<nb> public class CompositeByteBuf extends AbstractByteBuf { dst . writerIndex ( dst . capacity ( ) ) ; } - public ByteBuf getBufferFor ( int index ) throws IOException { + public ByteBuf getBufferFor ( int index ) throws IndexOutOfBoundsException { if ( index < NUMBER0 || index > capacity ( ) ) { throw n...
Actually throw the correct Exception type
<nb> public class DefaultDaemonStarter implements DaemonStarter { builder . commandLine ( args ) ; builder . setWorkingDir ( workingDir ) ; builder . redirectErrorStream ( ) ; + builder . setDisplayName ( STRING0 ) ; DaemonOutputConsumer outputConsumer = new DaemonOutputConsumer ( ) ; builder . streamsHan...
Added a human readable name for the daemon process exec handle
<nb> public class OkHttpDownloader implements Downloader { return connection ; } - protected OkHttpClient getClient ( ) { - return client ; + protected OkHttpClient getClient ( ) { + return client ; } @ override public Response load ( Uri uri , boolean localCacheOnly ) throws IOException {
Corrected the styling of the source to be compliant to Square s requirements
<nb> public class SqsConsumer extends ScheduledBatchPollingConsumer { } private boolean shouldDelete ( Exchange exchange ) { + boolean shouldDeleteByFilter = exchange . getProperty ( Exchange . FILTER_MATCHED ) != null + && getConfiguration ( ) . isDeleteIfFiltered ( ) + && passedThroughFilter ( exchange ) ...
Adjusted deleteIfFiltered behavior for aws sqs component
<nb> public class PhantomJSDriverService extends DriverService { COMMENT COMMENT - COMMENT COMMENT public static final String PHANTOMJS_EXECUTABLE_PATH_PROPERTY = STRING0 ; COMMENT COMMENT COMMENT - COMMENT COMMENT public static final String PHANTOMJS_GHOSTDRIVER_PATH_PROPERTY = STRING1 ;
remove unnecessary javadoc
<nb> public class TestAll implements Test { public TestAll ( String packageRoot , String . . . classRoots ) throws IOException , ClassNotFoundException { myTestCaseLoader = new TestCaseLoader ( ( ourMode & FILTER_CLASSES ) != NUMBER0 ? STRING0 : STRING1 ) ; - myTestCaseLoader . addClassIfTestCase ( Class . forN...
do not test nothing having nothing to test
<nb> public class BackendImplementationModule extends AbstractModule implements Backe } @ override - public boolean inMemory ( ) { + public boolean embedded ( ) { return embedded ; } @ override - public boolean embedded ( ) { + public boolean inMemory ( ) { return inMemory ; } }
Fixed errata in Derby configuration
<nb> public class LocalNotification extends Plugin { unpersistAlarm ( alarmId ) ; return this . cancelNotification ( alarmId ) ; } else if ( action . equalsIgnoreCase ( STRING0 ) ) { + PluginResult result = this . cancelAllNotifications ( ) ; unpersistAlarmAll ( ) ; - return this . cancelAllNotifications ( ...
Cancel notications before unpersisting
<nb> public abstract class DBCollection { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
clarify functionality in comment
<nb> final class CompilerExecutor { } return result ; - } + } }
Fix a trailing whitespace in CompilerExecutor java
<nb> public final class CollQuerySerializer extends SerializerBase < CollQuerySerialize @ override protected void visitOperation ( Class < ? > type , Operator < ? > operator , List < ? extends Expression < ? > > args ) { if ( Ops . aggOps . contains ( operator ) ) { - throw new UnsupportedOperationException ( S...
Change exception message
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT public interface TemplateService {
clarify comment in TemplateService explain why we have this class
<nb> public class AdvancedValidationITest extends WithJetty { when ( ) . get ( STRING0 ) ; } + + @ test + public void advancedJsonValidation2 ( ) throws Exception { + expect ( ) . + statusCode ( allOf ( greaterThanOrEqualTo ( NUMBER0 ) , lessThanOrEqualTo ( NUMBER1 ) ) ) . + root ( STRING1 ) . + bod...
Added more tests
<nb> public class ViewOfflineResultsAction extends AnAction implements DumbAware { inspectionProfile = ( InspectionProfile ) profile ; } else { - inspectionProfile = new InspectionProfileImpl ( profileName ) { + inspectionProfile = new InspectionProfileImpl ( profileName != null ? profileName : STRING0 ) { ...
avoid null profile name from TeamCity
<nb> public class Frame extends Lockable < Frame > { COMMENT COMMENT public int find ( String name ) { + if ( name == null ) + return - NUMBER0 ; + if ( _names != null ) for ( int i = NUMBER1 ; i < _names . length ; i ++ ) - if ( name . equals ( _names [ i ] ) ) - return i ; + if ( _names [ i ] !=...
Add more null pointer checking
<nb> public final class BlockMaster extends AbstractMaster implements ContainerIdGene MasterWorkerInfo worker = iter . next ( ) ; final long lastUpdate = CommonUtils . getCurrentMs ( ) - worker . getLastUpdatedTimeMs ( ) ; if ( lastUpdate > masterWorkerTimeoutMs ) { - LOG . error ( STRING0 , worker , + LOG . ...
Improve error message
<nb> public class GenericsHighlightUtil { final HighlightInfo highlightInfo = HighlightInfo . newHighlightInfo ( HighlightInfoType . ERROR ) . range ( referenceParameterList ) . descriptionAndTooltip ( description ) . create ( ) ; if ( registerIntentions ) { + if ( typeParameterListOwner instanceof PsiClass ) {...
make change class signature available from incomplete code
<nb> public class TestSentence implements SequenceModel { COMMENT COMMENT COMMENT - protected void updateConfusionMatrix ( String [ ] finalTags , ConfusionMatrix confusionMatrix ) { + protected void updateConfusionMatrix ( String [ ] finalTags , + ConfusionMatrix < String > confusionMatrix ) { for ( int i...
Resolve unchecked type warning confusion matrix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPAC...
Remove dead code
<nb> public class RelationTriple implements Comparable < RelationTriple > { SINGLE add ( SemgrexPattern . compile ( STRING0 ) ) ; SINGLE - add ( SemgrexPattern . compile ( STRING1 ) ) ; + add ( SemgrexPattern . compile ( STRING2 ) ) ; SINGLE add ( SemgrexPattern . compile ( STRING3 ) ) ; SINGLE <nb> p...
Fix the build
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix JavaDoc typos
<nb> public abstract class BatteryStats implements Parcelable { if ( rec . time >= histStart ) { if ( histStart >= NUMBER0 && ! printed ) { if ( rec . cmd == HistoryItem . CMD_CURRENT_TIME - || rec . cmd == HistoryItem . CMD_RESET ) { + || rec . cmd == HistoryItem . CMD_RESET + || rec . cmd == HistoryItem ....
Include START event reboots in partial history
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class TagFragment extends PodcastListFragment { Bundle args = getArguments ( ) ; Validate . isTrue ( args != null && args . getString ( STRING0 ) != null , STRING1 ) ; - tag =...
Fixed a couple of NullpointerException in TagFragment
<nb> import NAMESPACE ; public class LiquibaseMigrate extends ConfigurableLiquibaseMojo { protected void performLiquibaseTask ( Migrator migrator ) throws LiquibaseException { + super . performLiquibaseTask ( migrator ) ; migrator . migrate ( ) ; } } <nb> public class LiquibaseMigrateSQL extends Configu...
Fixed error that would ignore drop request from the user when migrating
<nb> public interface AppState { public boolean isInitialized ( ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public void setActive ( boolean active ) ; - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecat...
remove isActive from AppState interface
<nb> public class ViewPropertyAnimator { private Animator . AnimatorListener mListener = null ; COMMENT + COMMENT + COMMENT + COMMENT + private ValueAnimator mTempValueAnimator ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class ViewPropertyAnimator { } else { SINGLE SINGLE - retur...
Return the actual interpolator of the ViewPropertyAnimator
<nb> public class OStorageLocal extends OStorageEmbedded { txManager . open ( ) ; - } catch ( IOException e ) { + } catch ( Exception e ) { open = false ; dataSegments = new ODataLocal [ NUMBER0 ] ; clusters = new OCluster [ NUMBER0 ] ; <nb> public class OMVRBTreeDatabase < K , V > extends OMVRBTreePe...
Improved messages when the db is locked by another process
<nb> public class Planner { if ( showIntermediateStops != null && showIntermediateStops ) { request . setShowIntermediateStops ( true ) ; } - if ( intermediatePlaces != null && ! intermediatePlaces . get ( NUMBER0 ) . equals ( STRING0 ) ) { + if ( intermediatePlaces != null && intermediatePlaces . size ( ) > ...
prevent error when not sending an intermediatePlaces request parameter
<nb> public abstract class SelectBaseTest extends AbstractBaseTest { } @ test + @ skipforquoted public void aliasQuotes ( ) { expectedQuery = STRING0 ; query ( ) . from ( employee ) . list ( employee . firstname . as ( STRING1 ) ) ;
finished tests for quoting
<nb> public class SlidingUpPanelLayout extends ViewGroup { childHeightSpec = MeasureSpec . makeMeasureSpec ( lp . height , MeasureSpec . EXACTLY ) ; } + if ( child == mSlideableView ) { + mSlideRange = MeasureSpec . getSize ( childHeightSpec ) - mPanelHeight ; + } + child . measure ( childWidthSpec , ch...
Fix over sliding of slidable view
<nb> class ClusterContextImpl return ; } } - else if ( electorId . equals ( lastElector ) && ( version < electorVersion && version > NUMBER0 ) ) + else if ( electorId . equals ( lastElector ) && ( version < electorVersion && version > NUMBER1 ) ) { getLogger ( getClass ( ) ) . warn ( STRING0 + roleName + ...
Fix so that instances can crash and rejoin with a restarted election version
<nb> public class ModuleFileSystemProvider extends ProviderAdapter { workDir = tempDirectories . getDir ( STRING0 ) ; LOG . warn ( STRING1 + workDir . getAbsolutePath ( ) ) ; } else { - LOG . warn ( STRING2 + workDir . getAbsolutePath ( ) ) ; + LOG . info ( STRING2 + workDir . getAbsolutePath ( ) ) ; try { ...
Fix log level of batch working dir
<nb> public class NinePatch { this . padBottom = bottom ; } + COMMENT + public void scale ( float scaleX , float scaleY ) { + leftWidth *= scaleX ; + rightWidth *= scaleX ; + topHeight *= scaleY ; + bottomHeight *= scaleY ; + padLeft *= scaleX ; + padRight *= scaleX ; + padTop *= scaleY ; + pa...
Added scale method to NinePatch
<nb> public class StorageManagerConfig return this ; } + @ minduration ( STRING0 ) public Duration getShardRecoveryTimeout ( ) { return shardRecoveryTimeout ; <nb> public class StorageManagerConfig return this ; } + @ minduration ( STRING0 ) public Duration getMissingShardDiscoveryInterval ( )...
Add missing constraints on config options
<nb> public class UriBeaconDiscoveryService extends Service implements MetadataResolv mDeviceAddressToUrl = new HashMap < > ( ) ; mMdnsUrlDiscoverer = new MdnsUrlDiscoverer ( this , UriBeaconDiscoveryService . this ) ; initializeScreenStateBroadcastReceiver ( ) ; - tryToStartScanning ( ) ; - } - - private...
moved isScreenOn logic to onStartCommand
<nb> public class FetchExtResourceAction extends BaseExtResourceAction implements Wat out . write ( buffer , NUMBER0 , read ) ; bytesRead += read ; - indicator . setFraction ( ( double ) bytesRead / ( double ) contentLength ) ; + if ( contentLength > NUMBER0 ) { + indicator . setFraction ( ( double ) bytesR...
Don t show fraction if contentLength is undefined
<nb> import NAMESPACE ; public class IOSGraphics extends NSObject implements Graphics , GLKViewDelegate , GLKViewControllerDelegate { private static final String tag = STRING0 ; - + static class IOSUIViewController extends GLKViewController { final IOSApplication app ; final IOSGraphics graphics ; <nb...
fixed getFrameId in IOSGraphics
<nb> public class PlaybackService extends Service { if ( player . isPlaying ( ) ) { Log . d ( TAG , STRING0 ) ; player . pause ( ) ; + if ( positionSaver != null ) { + positionSaver . cancel ( true ) ; + } saveCurrentPosition ( ) ; setStatus ( PlayerStatus . PAUSED ) ; stopForeground ( true ) ;
Fixed crash when losing audio focus
<nb> public class HikariPool extends PoolBase implements HikariPoolMXBean , IBagStateL addConnectionExecutor . shutdown ( ) ; addConnectionExecutor . awaitTermination ( NUMBER0 , TimeUnit . SECONDS ) ; - if ( config . getScheduledExecutorService ( ) == null ) { + if ( config . getScheduledExecutorService ( ) ...
Add null check
<nb> public class NavigationBarView extends LinearLayout { } } - @ override - public void setVisibility ( int visibility ) { - super . setVisibility ( visibility ) ; - boolean visible = visibility == View . VISIBLE ; - getBackButton ( ) . getBackground ( ) . setVisible ( visible , false COMMENT ) ; - ...
Fix NPE in Drawable setVisible
<nb> public class CollectionListModel < T > extends AbstractListModel implements Editabl myItems = new ArrayList < T > ( items ) ; } + public CollectionListModel ( @ notnull final List < ? extends T > items ) { + this ( ( Collection < ? extends T > ) items ) ; + } + public CollectionListModel ( final T ...
Fix broken API
<nb> public class SimpleGrailsController implements Controller , ApplicationContextAwa if ( uri . indexOf ( STRING0 ) > - NUMBER0 ) { uri = uri . substring ( NUMBER1 , uri . indexOf ( STRING0 ) ) ; } - + if ( uri . endsWith ( STRING1 ) ) { + uri = uri . substring ( NUMBER1 , uri . length ( ) - NUMBER2 ) ; ...
fixed bug where url has end slash
<nb> public abstract class AbstractTimestampProvider implements TimestampProvider { COMMENT COMMENT COMMENT - SINGLE - SINGLE - SINGLE - SINGLE + if ( log . isDebugEnabled ( ) ) { + log . debug ( STRING0 , + new Object [ ] { now , time , delta , unit } ) ; + } unit . sleep ( delta ) ; }
Add a logging statement in TimestampProvider
<nb> public class AbstractTreeUi { invokeLaterIfNeeded ( new Runnable ( ) { @ override public void run ( ) { - if ( row >= getTree ( ) . getVisibleRowCount ( ) ) return ; + if ( row >= getTree ( ) . getRowCount ( ) ) return ; TreePath path = getTree ( ) . getPathForRow ( row ) ; if ( path != null ) {
file status fast update fix
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener ColorStateList textColorLink = null ; int textSize = NUMBER0 ; String fontFamily = null ; + boolean fontFamilyExplicit = false ; int typefaceIndex = - NUMBER1 ; int styleIndex = - NUMBER1 ; boolean allCaps = false ; ...
Refine resolution order for typeface and fontFamily
<nb> import NAMESPACE ; COMMENT public class JsonParser extends JsonParserBase { + COMMENT + COMMENT + COMMENT + public static JsonParser create ( ) { + return new JsonParser ( ) ; + } + private static final char [ ] T_RUE = new char [ ] { STRING0 , STRING1 , STRING2 } ; private static final cha...
Added static ctors
<nb> import NAMESPACE ; COMMENT COMMENT public abstract class PyBreakpointHandlerFactory { - public static ExtensionPointName < PyBreakpointHandlerFactory > EP_NAME = ExtensionPointName . create ( STRING0 ) ; + public static final ExtensionPointName < PyBreakpointHandlerFactory > EP_NAME = ExtensionPointName ...
add final to EP_NAME
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MultiUserChatServiceImpl implements...
Make termination timeout configurable
<nb> public class SimpleTest extends LanguageTestSupport { assertPredicate ( STRING0 , true ) ; } + public void testSimpleRegexp ( ) throws Exception { + exchange . getIn ( ) . setBody ( STRING1 ) ; + assertPredicate ( STRING2 , true ) ; + assertPredicate ( STRING3 , false ) ; + + exchange . getIn ( )...
Added test based on user forum issue
<nb> public class CqlRecordReader extends RecordReader < Long , Row > super ( ) ; } + @ override public void initialize ( InputSplit split , TaskAttemptContext context ) throws IOException { this . split = ( ColumnFamilySplit ) split ; <nb> public class CqlRecordReader extends RecordReader < Long , Row ...
remove dead code
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class GoogleCredentialProvider extends CredentialProvider { <nb> publi...
Fix typo recieved received
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - interface ClassResolver { + public interface ClassResolver { Class < ? > resolve ( String className ) throws ClassNotFoundException ;
making interface public so that others can implement it jic
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + public class Page { private final Block [ ] blocks ; <nb> public class Page { Preconditions . checkNotNull ( blocks , STRING0 ) ; Preconditions . checkArgument ( blocks . length > NUMBER0 , STRING1 ) ; - this...
Create copy of input array
<nb> public class ReconnectPluginActivator if ( logger . isTraceEnabled ( ) ) { - logger . trace ( STRING0 + pp ) ; + logger . trace ( STRING0 + pp , + new Exception ( STRING1 ) ) ; traceCurrentPPState ( ) ; } }
Adds stacktrace when tracing enabled in reconnect plugin
<nb> COMMENT package NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class ExpressionStatement extends Statement { private Expression expression ; public ExpressionStatement ( Expression expression ) { + if ( expression == null ) { + throw new IllegalArgumentException ( STRING0 ) ; + } t...
added check for null parameter
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ODocumentEqualityWrapper { public boolean equals ( Object obj ) { if ( obj instanceof ODocumentEqualityWrapper ) { - return ODocumentHelper . hasSameContentOf ( internal , n...
Fix NPE on EXPLAIN MATCH
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { SINGLE SINGLE - int test1 = listAdapter . getGroupCount ( ) ; - int test2 = getDownloadActivity ( ) . getLocalIndexInfos ( ) . size ( ) ; - SINGLE - SINGLE ...
try catch listAdapter null
<nb> public class FunctionRegistry . function ( HISTOGRAM ) . function ( ARBITRARY_AGGREGATION ) . function ( ARRAY_AGGREGATION ) - . function ( LEAST ) - . function ( GREATEST ) - . function ( MAX_BY ) - . function ( MIN_BY ) + . functions ( GREATEST , LEAST ) + . functions ( MAX_BY , MIN_BY ) . fu...
Combine related functions in FunctionRegistry
<nb> public class PutAllPerMemberOperation extends MapOperation implements Identified } @ override - public void afterRun ( ) throws Exception { - } - - @ override - public Object getResponse ( ) { - return null ; - } - - @ override protected void writeInternal ( ObjectDataOutput out ) throws ...
Removed superfluous methods in PutAllPerMemberOperation
<nb> public class JUnitRunnerDebug { SINGLE SINGLE tests . add ( hex . NeuralNetSpiralsTest . class ) ; + tests . add ( hex . NeuralNetIrisTest . class ) ; SINGLE SINGLE
Add NeuralNetIrisTest to JUnitRunnerDebug
<nb> public class DevicePolicyManager { public static final int WIPE_EXTERNAL_STORAGE = NUMBER0 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in DevicePolicyManager documentation
<nb> package NAMESPACE ; import NAMESPACE ; public interface ITankContainer { - + COMMENT COMMENT COMMENT <nb> public interface ITankContainer { COMMENT int fill ( ForgeDirection from , LiquidStack resource , boolean doFill ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb>...
Tweak liquidcontainer API for sidedness capability
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT
Removed spurious import of a com sun class
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - im...
Implement cancelHttpRequest method
<nb> public class DroidGap extends PhonegapActivity { return true ; } - SINGLE - else if ( url . startsWith ( STRING0 ) || url . startsWith ( STRING1 ) || url . startsWith ( STRING2 ) || url . startsWith ( STRING3 ) ) { + SINGLE + else { int i = url . lastIndexOf ( STRING4 ) ; String newBaseUrl = ur...
Support all URIs by passing them to their default activity
<nb> afterwards , some of these steps need a cleanup function ps . println ( STRING0 ) ; ps . println ( STRING1 ) ; - ps . println ( STRING2 + exportSketchName + STRING3 ) ; + ps . println ( STRING2 + exportSketchName + STRING4 ) ; ps . println ( STRING5 ) ; ps . println ( STRING6 ) ; ps . println ( STR...
Altering the HTML output to read Processid
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - @ singleton public class MetadataManager implements Metadata {
Remove Singleton annotation from class