diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class RosiePresenter < T extends RosiePresenter . View > { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public void initialize ( ) { <nb> public class RosiePresenter < T extends RosiePresenter . View > { } COMMENT - COMMENT + COMMENT COMMENT COMMENT public void update ( ) ...
Improve javadoc in RosiePresenter
<nb> public class FindSettingsImpl extends FindSettings implements PersistentStateCom LOG . info ( e ) ; } if ( RECENT_FILE_MASKS . isEmpty ( ) ) { - RECENT_FILE_MASKS . add ( STRING0 ) ; + RECENT_FILE_MASKS . add ( STRING1 ) ; RECENT_FILE_MASKS . add ( STRING2 ) ; RECENT_FILE_MASKS . add ( STRING3 ) ; ...
fixed typo in properties file extension
<nb> 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 NAMESPACE ; + import NAMESPACE ; import NAM...
fixed DispatcherServletTests breakage
<nb> public class ListViewActivity extends AppCompatActivity { } ) ; } - @ override - public boolean onCreateOptionsMenu ( Menu menu ) { - SINGLE - getMenuInflater ( ) . inflate ( R . menu . menu_list_view , menu ) ; - return true ; - } - - @ override - public boolean onOptionsItemSelected ( Men...
Remove unnecessary method
<nb> public class GitFilter extends AccessRestrictionFilter { return false ; } if ( action . equals ( gitReceivePack ) ) { - SINGLE - if ( user . canPush ( repository ) ) { - return true ; - } else { - SINGLE - logger . warn ( MessageFormat . format ( STRING0 , - user . username , repository ) ) ; ...
Move push authorization from the ARF to the receive pack
<nb> final class JsonSchemaHelper { if ( ! Strings . isNullOrEmpty ( defaultValue ) ) { sb . append ( STRING0 ) ; - sb . append ( Strings . doubleQuote ( defaultValue ) ) ; + String text = safeDefaultValue ( defaultValue ) ; + sb . append ( Strings . doubleQuote ( text ) ) ; } if ( ! Strings . isNullO...
apt plugin fixed default value to be json safe
<nb> final public class MediaMuxer { COMMENT public void release ( ) { if ( mState == MUXER_STATE_STARTED ) { - throw new IllegalStateException ( STRING0 ) ; + stop ( ) ; } if ( mNativeObject != NUMBER0 ) { nativeRelease ( mNativeObject ) ;
Make release behaves the same way as other part of media framework
<nb> public class GotoImplementationHandler extends GotoTargetHandler { } else { PsiElement container = getContainer ( sourceElement ) ; - ItemPresentation containerPresentation = container == null ? null : ( ( NavigationItem ) container ) . getPresentation ( ) ; + ItemPresentation containerPresentation = con...
do not show file name in popup
<nb> class PageInfo { } COMMENT - COMMENT - COMMENT - @ deprecated - public void setExtends ( String value , @ suppresswarnings ( STRING0 ) Node . PageDirective n ) { - xtends = value ; - } - - COMMENT COMMENT COMMENT COMMENT
Remove unused code
<nb> public class IpnbUtils { LOG . error ( e ) ; } catch ( SAXException e ) { - e . printStackTrace ( ) ; + LOG . error ( e ) ; } catch ( ParserConfigurationException e ) { - e . printStackTrace ( ) ; + LOG . error ( e ) ; } }
do not use print stacktrace
<nb> public interface Player extends HumanEntity , Conversable , CommandSender , Offline public void setBedSpawnLocation ( Location location ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setBedSpawnLocation ( Location location , boolean force ) ; + + COMMENT COMMENT...
Expose setBedSpawnLocation with force option
<nb> public class DatabaseBackend extends SQLiteOpenHelper { cursor . close ( ) ; } if ( oldVersion < NUMBER0 && newVersion >= NUMBER0 ) { - recreateAxolotlDb ( ) ; + recreateAxolotlDb ( db ) ; db . execSQL ( STRING0 + Message . TABLENAME + STRING1 + Message . FINGERPRINT + STRING2 ) ; } <nb> public c...
Fix axolotl database migration
<nb> import static NAMESPACE ; import NAMESPACE ; public class Issue1141Test { - interface LongFunction { - public Long func ( Long a ) ; + interface Function < T > { + public T func ( T a ) ; } - interface BinaryLongFunction { - public Long sum ( Long a , Long b ) ; + interface BinaryFunction <...
Modified Issue1141Test to reproduce the original bug properly
<nb> public abstract class HTMLComposerImpl extends HTMLComposer { buf . append ( A_CLOSING ) ; } - protected void appendQuickFix ( @ nonnls final StringBuffer buf , String text , int index ) { + protected void appendQuickFix ( @ nonnls final StringBuffer buf , String text ) { if ( myExporter == null ) { ...
do not add href to problem resolutions
<nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param if ( _parms . _checkpoint != null && DKV . get ( _parms . _checkpoint ) == null ) { error ( STRING0 , STRING1 ) ; } - - assert ( _weights != null == hasWeightCol ( ) ) ; - assert ( _parms . _weights_column != n...
Remove extra assertions don t always hold if some of the columns are ignored
<nb> public class TransitToTaggedStopsGraphBuilderImpl implements GraphBuilder { TransitStopStreetVertex tsv = ( TransitStopStreetVertex ) v ; SINGLE - if ( tsv . getStopCode ( ) != null && tsv . getStopCode ( ) . matches ( stopCode ) ) { + if ( tsv . getStopCode ( ) != null && tsv . getStopCode ( ) . equals ...
write better java
<nb> public class PhoneWindowManager implements WindowManagerPolicy { SINGLE if ( down && repeatCount == NUMBER0 && keyCode == KeyEvent . KEYCODE_TAB ) { - if ( mRecentAppsHeldModifiers == NUMBER0 && ! keyguardOn ) { + if ( mRecentAppsHeldModifiers == NUMBER0 && ! keyguardOn && isUserSetupComplete ( ) ) { f...
Prevent recents from coming up when in SUW
<nb> public final class OBJLoader implements AssetLoader { v = Integer . parseInt ( split [ NUMBER0 ] . trim ( ) ) ; vn = Integer . parseInt ( split [ NUMBER1 ] . trim ( ) ) ; } + + if ( v < NUMBER0 ) { + v = verts . size ( ) + v + NUMBER2 ; + } + if ( vt < NUMBER0 ) { + vt = texCoords . size ( ) + vt...
OBJ loader now supports loading models that use negative indices in the face statement
<nb> public class TestDiscoveryIndex implements ProjectComponent { } } } - for ( int classQName : previousClassData . keys ( ) ) { - if ( classData . containsKey ( classQName ) ) continue ; + if ( classData != null ) { + for ( int classQName : previousClassData . keys ( ) ) { + if ( classData . contains...
fix possible NPE if we remove test trace
<nb> public class UdcExtensionImpl extends KernelExtension implements UdcProperties { COMMENT private boolean disabled = false ; + private Timer timer ; + COMMENT COMMENT COMMENT <nb> public class UdcExtensionImpl extends KernelExtension implements UdcProperties { kernel . setState ( this , new Obje...
added an explicit unload implementation to cancel the thread
<nb> public class XmppConnection extends ImConnection implements CallbackHandler { if ( state == LOGGED_IN ) { + SINGLE mUserPresence = new Presence ( Presence . AVAILABLE , STRING0 , Presence . CLIENT_TYPE_MOBILE ) ; sendPresencePacket ( ) ; - refreshSessionPresence ( ) ; + + SINGLE + for ( ChatSes...
simplify the refreshSessionPresence code by merging into login logic
<nb> public class CarrierConfigManager { COMMENT COMMENT public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL = - STRING0 ; + STRING1 ; COMMENT private final static PersistableBundle sDefaults ;
Rename carrier config constant
<nb> package 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 ; import NAMESPA...
getContentProvider maybe access a null value
<nb> public class PartitionManager { for ( MessageAndOffset msg : msgs ) { _pending . add ( _emittedToOffset ) ; _waitingToEmit . add ( new MessageAndRealOffset ( msg . message ( ) , _emittedToOffset ) ) ; - _emittedToOffset = msg . offset ( ) ; + _emittedToOffset = msg . nextOffset ( ) ; } if ( numMessag...
fixed infinite loop in KafkaSpout
<nb> public class RepositoryManager implements IRepositoryManager { SINGLE repositoryName = repositoryName . replace ( STRING0 , STRING1 ) . replace ( STRING2 , STRING1 ) ; - if ( ! repositoryListCache . containsKey ( repositoryName ) ) { + String repositoryKey = repositoryName . toLowerCase ( ) ; + if ( ! ...
Fix cache miss on repository model retrieval
<nb> public class Json { private static final boolean debug = false ; private JsonWriter writer ; - private String typeName = STRING0 ; + private String typeName = STRING1 ; private boolean usePrototypes = true ; private OutputType outputType ; private final ObjectMap < Class , ObjectMap < String , Fiel...
updated Json changed default type field name to class
<nb> public final class DexFileFactory { InputStream stream ; stream = zipFile . getInputStream ( zipEntry ) ; try { - return DexBackedDexFile . fromInputStream ( opcodes , stream ) ; + return DexBackedDexFile . fromInputStream ( opcodes , new BufferedInputStream ( stream ) ) ; } finally { if ( stream != ...
Fix reading a dex file from a zip file
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface PreparedOperation < Result > { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - @ nonnull + @ nullable @ workerthread Result executeAsB...
Base executeAsBlocking result nullability fix
<nb> public class SocketIOClient { webSocket . setClosedCallback ( null ) ; webSocket . close ( ) ; webSocket = null ; + if ( closedCallback != null ) { + closedCallback . onCompleted ( null ) ; + } } private void reconnect ( final SocketIOConnectCallback callback , final FutureImpl ret ) {
Call closedCallback in disconnect
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused imports
<nb> final public class AndrolibResources { if ( sFrameworkFolder != null ) { path = sFrameworkFolder ; } else if ( OSDetection . isMacOSX ( ) ) { - SINGLE - path = System . getProperty ( STRING0 ) + File . separatorChar + STRING1 ; + path = System . getProperty ( STRING0 ) + File . separatorChar + STRING2 ...
add warning for unknown operating system and fix getFrameworkDir to use non hardcode seperator char
<nb> public abstract class JavaCodeInsightFixtureTestCase extends UsefulTestCase { return PathManager . getHomePath ( ) . replace ( File . separatorChar , STRING0 ) + getBasePath ( ) ; } - protected void tuneFixture ( final JavaModuleFixtureBuilder moduleBuilder ) { } + protected void tuneFixture ( final Java...
tuneFixture throws Exception
<nb> public abstract class SCMConfigCommand implements EntityConfigUpdateCommand < SCM > } return true ; } + + @ override + public void clearErrors ( ) { + BasicCruiseConfig . clearErrors ( globalScmConfig ) ; + } } <nb> public class SCMConfigCommandTest { } @ test + public void shouldClearE...
Implemented the clearErrors method in SCMConfigCommand
<nb> public class AppInitializer implements IProgress { - public void initPlugins ( ) { - OsmandPlugin . initPlugins ( app ) ; - } - public net . osmand . router . RoutingConfiguration . Builder getLazyDefaultRoutingConfig ( ) { long tm = System . currentTimeMillis ( ) ; try { <nb> public class Os...
Slightly change code bug somewhere in dex
<nb> public class WebView extends AbsoluteLayout } } if ( mInZoomOverview ) { + SINGLE + if ( mScrollY < getTitleHeight ( ) ) mScrollY = NUMBER0 ; zoomWithPreview ( ( float ) getViewWidth ( ) / mZoomOverviewWidth ) ; } else { SINGLE
When double tap zoom out to overview mode force reveal the full
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class Waiter { return activityUtils . getCurrentActivity ( ) . getFragmentManager ( ) . findFragmentById ( id ) ; else return activityUtils . getCurrentA...
Removed log message
<nb> public class NodeCmd case STATUS : - nodeCmd . printClusterStatus ( System . out , arguments [ NUMBER0 ] ) ; + if ( arguments . length > NUMBER0 ) nodeCmd . printClusterStatus ( System . out , arguments [ NUMBER0 ] ) ; + else nodeCmd . printClusterStatus ( System . out , null ) ; break ; case DEC...
Fix nodetool status regression
<nb> public class ClassDefinition { List < StringTemplate > staticFields = new ArrayList < StringTemplate > ( ) ; if ( classDataItem != null ) { + SINGLE + assert ( classDefItem != null ) ; EncodedArrayItem encodedStaticInitializers = classDefItem . getStaticFieldInitializers ( ) ; EncodedValue [ ] stat...
Added assertion comment to clarify a misleading null check
<nb> public interface DomainObjectCollection < T > extends Collection < T > { COMMENT COMMENT COMMENT - public Collection < T > findAll ( Closure spec ) ; + Collection < T > findAll ( Closure spec ) ; }
Remove unnecessary public modifier
<nb> public final class Main { } private Optional < WebServer > createWebServer ( BuckConfig config , Console console ) { - SINGLE - SINGLE - Optional < String > serverPort = config . getValue ( STRING0 , STRING1 ) ; + SINGLE + SINGLE + Optional < String > serverPort = Optional . fromNullable ( System...
Allow HTTP server port of buckd to be specifed with command line parameter
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> final class Utils { } static Downloader createDefaultDownloader ( Context context ) {...
Only use OkHttp in versions greater than Froyo
<nb> public abstract class ODatabasePool < DB extends ODatabase > implements OResourcePo } public DB acquireDatabase ( final String iURL ) throws OLockException , InterruptedException { - final String url = iURL ; + final String url = iURL . indexOf ( STRING0 ) > - NUMBER0 ? iURL . substring ( NUMBER1 , iURL ...
Fixed problem with release of connections after last changes
<nb> SINGLE SINGLE SINGLE + SINGLE package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TableHistory extends AbstractTable { if ( bodiesAsBytes ) { psInsert . setBytes ( NUMBER0 , reqBody ) ; } else { -...
Tidy up changed the class TableHistory to use the class StandardCharsets to get the charset US_ASCII
<nb> public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra super . dispose ( ) ; + removeAll ( ) ; SINGLE if ( rootPane != null ) { SINGLE try { - ReflectionUtil . resetField ( rootPane , STRING0 ) ; - ReflectionUtil . resetField ( rootPane , STRING1 ) ; - + Disposer . cle...
Fix memory leak in the XDebuggerEvaluationDialog by cleaning its root pane
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT
Removes dependencies that the neomedia service has on the service protocol package
<nb> public class viewStats extends Activity { postMethod . addHeader ( STRING0 , STRING1 ) ; SINGLE - postMethod . addHeader ( STRING2 , STRING3 ) ; + postMethod . addHeader ( STRING2 , STRING4 ) ; httpParams = postMethod . getParams ( ) ; HttpProtocolParams . setUseExpectContinue ( httpParams , false ...
Updated version number
<nb> public interface OnShowcaseEventListener { void onShowcaseViewShow ( ShowcaseView showcaseView ) ; COMMENT + COMMENT + COMMENT + COMMENT + void onShowcaseViewTouchBlocked ( MotionEvent motionEvent ) ; + + COMMENT COMMENT COMMENT COMMENT <nb> public interface OnShowcaseEventListener { ...
Add javadoc to event callback
<nb> public final class MediaControlIntent { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix build due to bad link references in javadocs
<nb> public class ReadOnlyStoreManagementServlet extends HttpServlet { String className = server . getVoldemortConfig ( ) . getAllProps ( ) . getString ( STRING0 , null ) ; - if ( className == null ) { + if ( className == null || className . trim ( ) . length ( ) == NUMBER0 ) { this . fileFetcher = null ; ...
Treat empty class name as null for readonly storage configuration
<nb> public final class ProtoSchemaParser { } } - char c = peekChar ( ) ; - if ( c == STRING0 ) { + SINGLE + if ( peekChar ( ) == STRING0 ) { pos ++ ; - } else if ( c != closeBrace ) { - throw unexpected ( STRING1 + closeBrace + STRING2 ) ; } } } <nb> public final class ProtoSchemaParserTest...
Option maps do not require comma separators
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , final int drawingCacheSize = ViewConfiguration . get ( mContext ) . getScaledMaximumDrawingCacheSize ( ) ; if ( width <= NUMBER0 || height <= NUMBER0 || projectedBitmapSize > drawingCacheSize ) { - Log . w ( VIEW_LOG_TAG , STRING0 -...
Don t trigger log for empty views
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class SessionBeanComponentConfiguration extends EJBComponentConf this . methodAccessTimeouts = description . getMethodApplicableAccessTimeout...
Change the Lock interceptor to be at ComponentInstance level
<nb> public class CalendarUtils { public static Calendar getInstance ( Date date ) { Calendar calendar = Calendar . getInstance ( ) ; - calendar . setTime ( date ) ; - copyDateTo ( calendar , calendar ) ; + if ( date != null ) { + calendar . setTime ( date ) ; + } + int year = getYear ( calendar ) ; ...
Fix issue with setting the date of a new Calendar
<nb> public class BatchNode extends Node implements Savable { int maxVertCount = NUMBER0 ; Mesh . Mode mode = null ; - for ( Geometry geom : geometries ) { + for ( Geometry geom : geometries ) { totalVerts += geom . getVertexCount ( ) ; totalTris += geom . getTriangleCount ( ) ; totalLodLevels = Math . ...
Removed whitespace at end of line in mergeGeometries I m not a perfectionist
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class StatusUpdateThread implements Runnable { if ( MouseInfo . getPointerInfo ( ) != null ) { - Point currentPosition = MouseInfo . getPointerInfo ( ) - . ...
Fixed NPE occurring on some systems when screensaver starts no mouseinfo can be received
<nb> public class TCPNetworkConnection implements NetworkConnection { versionMessage = ( VersionMessage ) m ; SINGLE int peerVersion = versionMessage . clientVersion ; - log . info ( STRING0 , new Object [ ] { + log . info ( STRING1 , new Object [ ] { + getPeerAddress ( ) . getAddr ( ) . getHostAddress ( ) ...
Bit more logging in TCPNetworkConnection
<nb> public class GenTest { SINGLE enum testEnum { - value1 , value2 , value3 + value1 } @ test public void shouldChooseFromEnum ( ) throws Exception { - assertForAll ( ( ) - > Gen . choose ( testEnum . class ) . apply ( RANDOM ) , e - > { System . out . println ( e ) ; return true ; } ) ; + asser...
reverted bogus test code committed by accident
<nb> public class SparkFilter implements Filter { @ override public void doFilter ( ServletRequest request , ServletResponse response , FilterChain chain ) throws - IOException , - ServletException { + IOException , + ServletException { HttpServletRequest httpRequest = ( HttpServletRequest ) request ; S...
Re added removed method since it might small risk backwards compatibility
<nb> public class VimPlugin implements ApplicationComponent , PersistentStateComponent } private void updateState ( ) { - if ( isEnabled ( ) ) { + if ( isEnabled ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { boolean requiresRestart = false ; if ( previousStateVersion < NUMBER0 ...
Fixed unit tests for updated plugin state
<nb> public class Watchdog extends Thread { } name = ( mCurrentMonitor != null ) ? - mCurrentMonitor . getClass ( ) . getName ( ) : STRING0 ; + mCurrentMonitor . getClass ( ) . getName ( ) : STRING1 ; } SINGLE
Improve watchdog explanation when system server is blocked
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SettingsModule extends AbstractModule { COMMENT COMMENT - COMMENT + COMMENT COMMENT public void registerSettingsFilter ( String filter ) { if ( SettingsFilter . isVali...
Corrected typos and removed unused import
<nb> public class Drawer { IDrawerItem drawerItem = mDrawerBuilder . mDrawerItems . get ( position ) ; if ( drawerItem instanceof Nameable ) { - ( ( Nameable ) drawerItem ) . setNameRes ( nameRes ) ; ( ( Nameable ) drawerItem ) . setName ( null ) ; + ( ( Nameable ) drawerItem ) . setNameRes ( nameRes ) ; ...
reset text inside Nameable items before setting it to the new value
<nb> public class Indexer { if ( getopt . getOptarg ( ) . equalsIgnoreCase ( STRING0 ) ) { env . setRemoteScmSupported ( true ) ; } else if ( getopt . getOptarg ( ) . equalsIgnoreCase ( STRING1 ) ) { - env . setRemoteScmSupported ( true ) ; + env . setRemoteScmSupported ( false ) ; } else { System . err ....
Fixed r option
<nb> public final class Main { server . registerInitializer ( new HostCounterCacheWriterInitializer ( server ) ) ; server . registerInitializer ( new MessageCounterInitializer ( server ) ) ; server . registerInitializer ( new SyslogServerInitializer ( server , configuration ) ) ; + server . registerInitializer ...
initialize message retention
<nb> public class JavaClassReference extends GenericReference implements PsiJavaRefer } private boolean isStaticClassReference ( final String s ) { - return myIndex > NUMBER0 && s . charAt ( getRangeInElement ( ) . getStartOffset ( ) - NUMBER1 ) == JavaClassReferenceSet . SEPARATOR2 ; + final char separatorCh...
show dotted inner class reference as error
<nb> public class DynamicClusterTest { int size = factory . node . clientService . numberOfConnectedClients ( ) ; return size ; } + + public static class MyTask extends HazelcastInstanceAwareObject implements Callable , Serializable { + final int x ; + byte [ ] b = new byte [ NUMBER0 ] ; + String str = ...
Added missing class
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adding ScoreTypesTest missing license header
<nb> public class DocUpdateSentinel { if ( ! thisChangeTracker . hasChanged ( ) ) changeTracker_ . reset ( ) ; - + + SINGLE + SINGLE + SINGLE + sourceDoc_ . setFoldSpec ( foldSpec ) ; + sourceDoc_ . setChunkOutput ( chunkOutput ) ; + onSuccessfulUpdate ( newContents , newHash , path ,
update foldSpec and chunkOutput in sourceDoc for change detection
<nb> public class GoGetPackageFix extends LocalQuickFixBase implements HighPriorityAc @ notnull private final String myPackage ; public GoGetPackageFix ( @ notnull String packageName ) { - super ( STRING0 + packageName + STRING1 ) ; + super ( STRING2 + packageName + STRING3 ) ; myPackage = packageName ; }...
Run go get for test packages and sub packages
<nb> public class SampleProjectPlugin implements ProjectComponent { COMMENT COMMENT public void initComponent ( ) { - System . out . println ( STRING0 ) ; + SINGLE } COMMENT COMMENT COMMENT public void disposeComponent ( ) { - System . out . println ( STRING1 ) ; + SINGLE } COMMENT
commented print statement
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - interface MemoizeCache < K , V > { + public interface MemoizeCache < K , V > { V put ( K key , V value ) ;
make MemoizeCache public to avoid class casting problems
<nb> public class SimpleRealmProxy extends Simple { row . setLong ( Realm . columnIndices . get ( STRING0 ) . get ( STRING1 ) , ( long ) value ) ; } - @ override - public int getObject_id ( ) { - realm . checkIfValid ( ) ; - return ( int ) row . getLong ( Realm . columnIndices . get ( STRING0 ) . get ( ST...
Fixed merge mistake
<nb> public class SpringApplication { if ( log . isInfoEnabled ( ) ) { String [ ] activeProfiles = context . getEnvironment ( ) . getActiveProfiles ( ) ; if ( ObjectUtils . isEmpty ( activeProfiles ) ) { - log . info ( STRING0 ) ; + String [ ] defaultProfiles = context . getEnvironment ( ) . getDefaultProfile...
Improve log message with active profiles
<nb> public interface StagedModelDataHandler < T extends StagedModel > { throws PortletDataException ; public void importMissingReference ( - PortletDataContext portletDataContext , String uuid , - long liveGroupId , long classPK ) + PortletDataContext portletDataContext , String uuid , long groupId , + l...
keeping groupId instead of liveGroupId since it can be any groupId not just a live group s id
<nb> public class FileSystemMediumTest { File projectDir = new File ( STRING0 ) ; TaskResult result = tester . newScanTask ( new File ( projectDir , STRING1 ) ) - . property ( STRING2 , STRING3 ) + . property ( STRING2 , STRING4 ) + . property ( STRING5 , STRING6 ) . start ( ) ; assertThat ( result . ...
Fix test Windows
<nb> public class BenchmarkSuite new Top100SqlBenchmark ( ) , new SqlHashJoinBenchmark ( ) , new VarBinaryMaxAggregationSqlBenchmark ( ) , + new SqlDistinctMultipleFields ( ) , + new SqlDistinctSingleField ( ) , SINGLE new StatisticsBenchmark . LongVarianceBenchmark ( ) ,
Add benchmarks to suite
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SeriesGuidePreferences extends SherlockPreferenceActivity implement + SeriesGuideDatabase . DATABASE_VERSION + STRING0 ) ; } + @ override ...
Implement isValidFragment for PreferenceActivity
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class DownloadingAsyncPrettyPrinterFactory implements AsyncPrett @ override public String call ( ) throws IOException...
Add status code checking for schema download
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT package NAMESPACE ;
added license header
<nb> public class SampleActivity extends Activity implements View . OnClickListener , } } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - @ override public void onShowcaseViewHide ( Showcas...
Removed old code
<nb> public class PhotonUtils { return STRING0 ; SINGLE - if ( ! imageUrl . contains ( STRING1 ) ) + if ( ! imageUrl . contains ( STRING1 ) ) { return getPhotonImageUrl ( imageUrl , avatarSz , avatarSz ) ; + } SINGLE return UrlUtils . removeQuery ( imageUrl ) + STRING2 + avatarSz + STRING3 ; <nb> ...
Photo viewer now uses low quality for the lo res image
<nb> public abstract class Parser extends Iced { } public static ColTypeInfo [ ] fromStrings ( String strs [ ] ) { + if ( strs == null ) return null ; ColTypeInfo [ ] res = new ColTypeInfo [ strs . length ] ; for ( int i = NUMBER0 ; i < strs . length ; i ++ ) res [ i ] = new ColTypeInfo ( strs [ i ] ) ;
Missing null check
<nb> public class BlockGenericPipe extends BlockContainer implements ( entityplayer . getCurrentEquippedItem ( ) == null || ! ( entityplayer . getCurrentEquippedItem ( ) . getItem ( ) instanceof IToolWrench ) ) ) { - if ( pipe . hasGate ( ) - || pipe . isWired ( ) ) + if ( ! APIProxy . isRemote ( ) + && (...
Suppress pipe stripping client side
<nb> public class TaskListWrapperActivity extends AstridWrapperActivity { listsNav . setOnClickListener ( popupMenuClickListener ) ; createPopover ( ) ; } + setupFilterlistFragment ( ) ; } <nb> public class TaskListWrapperActivity extends AstridWrapperActivity { setupTasklistFragmentWithFilter ( saved...
Moved filterlist creation back into onCreate to fix a refresh bug
<nb> public class PackageUtil { final VirtualFile virtualFile = psiDirectory . getVirtualFile ( ) ; if ( isPackage ( psiDirectory ) && ! isSourceRoot ( psiDirectory ) && ! settings . isFlattenPackages ( ) && settings . isHideEmptyMiddlePackages ( ) ) { - if ( TreeViewUtil . isEmptyMiddlePackage ( psiDirectory ,...
don t hide library root on EmptyMiddlePackage
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea public TwoDimTable createSummaryTable ( ) { Neurons [ ] neurons = DeepLearningTask . makeNeuronsForTesting ( this ) ; TwoDimTable table = new TwoDimTable ( - STRING0 , + STRING1 + + ( get_params ( ) . _autoencoder ? ST...
Add info about loss function and model type for DL
<nb> public class AudioManager { COMMENT COMMENT public static final int DEVICE_IN_SPDIF = AudioSystem . DEVICE_IN_SPDIF ; + COMMENT + COMMENT + COMMENT + public static final int DEVICE_IN_LOOPBACK = AudioSystem . DEVICE_IN_LOOPBACK ; COMMENT COMMENT <nb> public class AudioSystem public static f...
add definition for loopback input device
<nb> public class GroupManager { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Collection < Group > getGroups ( User user ) { + return getGroups ( XMPPServer . getInstance ( ) . createJID ( user . getUsername ( ) , null ) ) ; + } + + COMMENT COMMENT COMMENT COMMENT...
Added method to get groups for a user added method to get provider
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; public enum RelativeFont implements PropertyChangeListener { PLAIN ( Fon...
add italic relative font
<nb> public class IosGL implements GL , GLExt { if ( buffer . remaining ( ) < n ) { throw new BufferOverflowException ( ) ; } + int pos = buffer . position ( ) ; buffer . put ( array , NUMBER0 , n ) ; + buffer . position ( pos ) ; } private static void checkLimit ( Buffer buffer ) {
reset buffer position in fromArray
<nb> public class ProjectLocatorImpl extends ProjectLocator { if ( projects . length == NUMBER0 && ! projects [ NUMBER1 ] . isDisposed ( ) ) return projects [ NUMBER1 ] ; for ( Project project : projects ) { - if ( ! project . isDisposed ( ) && ProjectRootManager . getInstance ( project ) . getFileIndex ( ) . i...
ProjectLocatorImpl doesn t check isInContent for uninitialized projects
<nb> public class Esperanto extends Language { } public String [ ] getCountryVariants ( ) { - return new String [ ] { } ; + COMMENT + return new String [ ] { STRING0 } ; } public Tagger getTagger ( ) {
add any country code to make Esperanto work in OOo
<nb> public class ConfigurePagerActivity extends Activity { editor . putString ( STRING0 + currentAccount + STRING1 + num , f . listName ) ; editor . putString ( STRING0 + currentAccount + STRING2 + num , f . searchQuery ) ; - if ( f . check . isChecked ( ) ) { + if ( f . check != null && f . check . isChecke...
Fix Force Close
<nb> public class LocalStore extends Store implements Serializable { if ( disposition != null ) { String s = MimeUtility . getHeaderParameter ( disposition , STRING0 ) ; if ( s != null ) { - size = Integer . parseInt ( s ) ; + try { + size = Integer . parseInt ( s ) ; + } catch ( NumberFormatException e )...
Catch NumberFormatException when parsing disposition size parameter
<nb> public class FileListListAdapter extends BaseAdapter implements ListAdapter { } else if ( parentList . getCheckedItemCount ( ) > NUMBER0 ) { if ( parentList . isItemChecked ( position ) ) { checkBoxV . setImageResource ( - android . R . drawable . checkbox_on_background ) ; + R . drawable . ic_checkbox_m...
use actual checkbox icon work
<nb> public interface BlockChangeDelegate { COMMENT COMMENT public int getTypeId ( int x , int y , int z ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int getHeight ( ) ; }
Added getHeight to BlockChangeDelegate
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - public class UnknownParameterException extends RuntimeException { + class UnknownParameterException extends RuntimeException { public UnknownParameterException ( String message ) { super ( message ) ;
make class non public
<nb> public class ObservableTests { Observable . from ( NUMBER0 , NUMBER1 , NUMBER2 ) . compose ( new Transformer < Integer , String > ( ) { @ override - public Observable < ? extends String > call ( Observable < ? extends Integer > t1 ) { + public Observable < String > call ( Observable < ? extends Integer >...
Fix the compose unit test
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT public class Application implements SystemListener { <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT ...
add clarification about Application SimpleApplication to javadoc
<nb> public class PreModelPrintCellRow { for ( int i = NUMBER0 ; i < visibleCells . size ( ) ; i ++ ) { Cell cell = visibleCells . get ( i ) ; if ( cell . getClass ( ) == NodeCell . class ) { - specialCells . add ( new SpecialCell ( cell , i , SpecialCell . Type . commitNode ) ) ; + if ( ( ( NodeCell ) cell )...
fix generate SpecialCells