diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class Execution { SINGLE if ( target != null ) { SINGLE + System . out . println ( target + STRING0 + value ) ; fillField ( class2object . get ( target . getDeclaringClass ( ) ) , target , value ) ; } else if ( ensureAllOptions ) { SINGLE
made argument parsing easy
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; im...
Removed unused imports sun tools java ClassNotFound caused build to fail org osgi util tracker BundleTracker
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal } COMMENT - COMMENT - COMMENT - COMMENT + ...
Improve View Javadoc for padding
<nb> public class WikipediaIndexHandler extends DefaultHandler { inTitle = false ; } else if ( qName . equals ( STRING0 ) ) { System . out . println ( ++ articleCount + STRING1 + title ) ; + final String tempTitle = title . toString ( ) ; title = new StringBuilder ( ) ; if ( articleCount < start ) { retur...
fix exception messages
<nb> public interface Constant { String [ ] BIG_FILE_URLS = { STRING0 , + STRING1 , STRING2 , STRING3 , STRING4 , <nb> public class SingleTaskTestActivity extends AppCompatActivity { switch ( position ) { case NUMBER0 : - url = Constant . BIG_FILE_URLS [ NUMBER1 ] ; + url = Constant . BIG_FILE...
add the new stability resource url to single task test
<nb> public class ApplicationErrorReport implements Parcelable { candidate = SystemProperties . get ( DEFAULT_ERROR_RECEIVER_PROPERTY ) ; return getErrorReportReceiver ( pm , packageName , candidate ) ; } - + COMMENT COMMENT COMMENT <nb> public class ApplicationErrorReport implements Parcelable { ca...
Add dumping of Running Service reports to ApplicationErrorReports
<nb> public class UnusedDeclarationInspectionBase extends GlobalInspectionTool { myContext = null ; } - @ override - public boolean isGraphNeeded ( ) { - return true ; - } - @ testonly public List < EntryPoint > getExtensions ( ) { return myExtensions ; <nb> import NAMESPACE ; public class U...
remove methods same as super
<nb> public enum Sound { DIG_SAND , DIG_SNOW , DIG_STONE , - DIG_WOOD + DIG_WOOD , + SINGLE + FIREWORK_BLAST , + FIREWORK_BLAST2 , + FIREWORK_LARGE_BLAST , + FIREWORK_LARGE_BLAST2 , + FIREWORK_TWINKLE , + FIREWORK_TWINKLE2 , + FIREWORK_LAUNCH , + SUCCESSFUL_HIT , + SINGLE + HORSE_ANGRY ,...
Add new sounds to the Sound Enum
<nb> public class PeerGroup implements TransactionBroadcaster { protected final ReentrantLock lock = Threading . lock ( STRING0 ) ; private final NetworkParameters params ; - private final Context context ; @ nullable private final AbstractBlockChain chain ; SINGLE <nb> public class PeerGroup implements...
Remove unused field
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class CasVersion { } if ( STRING0 . equals ( resource . getProtocol ( ) ) ) { - final File file = new VfsResource ( resource ) . getFile ( ) ; + final File file = new VfsResou...
get the VirtualFile object from the vfs URL
<nb> public class ConvertersConfigurationHolder { if ( cfg == null ) { cfg = new DefaultConverterConfiguration ( ) ; } - setThreadLocalConverterConfiguration ( converterClass , cfg ) ; return cfg ; } <nb> public class ConvertersConfigurationHolder { return getThreadLocalForConverter ( converterClass ,...
Revert fixed typo and added setting thread local converter configuration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA } } ; SearchEverywherePsiRenderer myFileRenderer = ne...
remove unused psiRenderer from SE
<nb> public class DocGen extends AbstractProcessor { if ( ! bugpatternDir . exists ( ) ) { bugpatternDir . mkdirs ( ) ; } + new File ( wikiDir , STRING0 ) . mkdirs ( ) ; BugPatternFileGenerator generator = new BugPatternFileGenerator ( bugpatternDir , exampleDirBase ) ; try ( Writer w = new FileWriter ( new...
Fix missing directory in docgen
<nb> public class ViewConfiguration { mScaledTouchExplorationTapSlop = ( int ) ( density * TOUCH_EXPLORATION_TAP_SLOP + FLOAT0 ) ; mWindowTouchSlop = ( int ) ( sizeAndDensity * WINDOW_TOUCH_SLOP + FLOAT0 ) ; + final Display display = WindowManagerImpl . getDefault ( ) . getDefaultDisplay ( ) ; SINGLE - mMax...
Use the actual screen size for the max bitmap cache size
<nb> public class PyCodeInsightSettings implements PersistentStateComponent < PyCodeIns } public boolean PREFER_FROM_IMPORT = true ; - public boolean SHOW_IMPORT_POPUP = true ; + public boolean SHOW_IMPORT_POPUP = false ; public boolean HIGHLIGHT_UNUSED_IMPORTS = true ; public boolean RENAME_SEARCH_IN_C...
turn off auto import popup by default
<nb> public class HttpDownloadConnection implements Transferable { throw new CancellationException ( ) ; } } + try { + os . flush ( ) ; + } catch ( IOException e ) { + throw new WriteException ( ) ; + } } catch ( CancellationException | IOException e ) { throw e ; } finally { - if ( os != null )...
throw writeexecption in downloader if flush fails
<nb> public class MessageView extends K9Activity implements OnClickListener { || ! mMessageReference . accountUuid . equals ( account . getUuid ( ) ) ) { return ; } - MessageView . this . mMessage = message ; COMMENT COMMENT
Keep current view state after having downloaded the complete message
<nb> import NAMESPACE ; COMMENT COMMENT public class LambdaCanBeMethodReferenceInspection extends BaseJavaBatchLocalInspectionTool { - public static final Logger LOG = Logger . getInstance ( STRING0 + LambdaCanBeMethodReferenceInspection . class . getName ( ) ) ; + private static final Logger LOG = Logger . g...
make logs private to avoid static imports suggestions
<nb> public class Spark { synchronized static void stop ( ) { if ( server != null ) { server . stop ( ) ; - initialized = false ; } + initialized = false ; } private synchronized static final void init ( ) {
Fixed issue with failing jUnit tests for maven
<nb> public abstract class JDBCDataSource @ override public JDBCExecutionContext openContext ( DBRProgressMonitor monitor , DBCExecutionPurpose purpose , String taskTitle ) { - if ( connection == null ) { - throw new IllegalStateException ( CoreMessages . editors_sql_status_not_connected_to_database ) ; - }...
Autocomit check fix
<nb> public class Execution implements Runtime private Map < Class < ? > , InterfaceDescriptor > descriptorMapByInterface = new HashMap < > ( ) ; private Map < Integer , InterfaceDescriptor > descriptorMapByInterfaceId = new HashMap < > ( ) ; private Map < EntryKey , ReferenceEntry > localActors = new ConcurrentH...
Remove extra newlines
<nb> public abstract class Logger { } COMMENT - COMMENT + COMMENT COMMENT public static class ErrorLogger extends Logger { @ override <nb> public abstract class Logger { } COMMENT - COMMENT + COMMENT COMMENT public static class JavaLogger extends Logger { <nb> public abstract class L...
Fix javadoc of ErrorLogger
<nb> public class WalletTool { private static OptionSet options ; private static OptionSpec < Date > dateFlag ; - private static OptionSpec < Integer > unixtimeFlag ; + private static OptionSpec < Long > unixtimeFlag ; private static OptionSpec < String > seedFlag , watchFlag ; private static OptionSpec <...
Fix Integer to long casting compiler error for Eclipse
<nb> public class LocalMiniDFSCluster extends UnderFileSystemCluster { mNamenodePort = mDfsCluster . getNameNodePort ( ) ; } - SINGLE + SINGLE SINGLE mDfsClient = ( DistributedFileSystem ) mDfsCluster . getFileSystem ( ) ; mIsStarted = true ;
Fix a typo
<nb> public class WebInterfaceBrowseLogsServlet extends HttpServlet { request . setAttribute ( STRING0 , STRING1 ) ; String tachyonHome = mTachyonConf . get ( Constants . TACHYON_HOME , Constants . DEFAULT_HOME ) ; - String logsPath = mTachyonConf . get ( Constants . LOGS_DIR , tachyonHome + STRING2 ) ; + Str...
Use CommonUtils cancatPath to build the path
<nb> public class Configuration Property prop = this . get ( category , name , defaultValue ) ; prop . setLanguageKey ( langKey ) ; prop . setValidValues ( validValues ) ; - prop . comment = comment + STRING0 + defaultValue + STRING1 ; + prop . comment = comment + STRING0 + prop . getDefault ( ) + STRING1 ; ...
Write the correct default value for StringList comments in the config
<nb> final class ClosureRewriteModule implements HotSwapCompilerPass { STRING0 ) ; static final DiagnosticType USELESS_USE_STRICT_DIRECTIVE = - DiagnosticType . warning ( + DiagnosticType . disabled ( STRING1 , STRING2 ) ; <nb> public class DiagnosticGroups { ClosureCheckModule . LET_GOOG_REQUIRE , ...
Add USELESS_USE_STRICT_DIRECTIVE to the lintChecks DiagnosticGroup
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class SpanishVerbStripper { SINGLE SINGLE - COMMENT - SINGLE - private static final String DICT_PATH = STRING0 ; + private static final String DICT_PATH = STRING1 ; ...
Fix dictionary data lookup in SpanishVerbStripper
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT class DefaultFilterPipeline implements FilterPipeline { + @ inject DefaultFilterPipeline ( ) { + } + public void initPipeline ( ...
Add an Inject constructor to DefaultFilterPipeline so services which depend upon it can be used with Modules requireAtInjectOnConstructorsModule
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class FieldUtils2 { } for ( Object anInterface : ClassUtils . getAllInterfaces ( clazz ) ) { - for ( Field declaredField : ( ( Class ) anInterface ) . getDeclaredFields...
Fix quality flaw in FieldUtils2
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ActionBarPolicy { } public boolean showsOverflowMenuButton ( ) { - return ! ViewConfiguration . get ( mContext ) . hasPermanentMenuKey ( ...
Add policy check to always show overflow menu button on TV devices
<nb> public class UsbDeviceManager { updateState ( state ) ; mAdbEnabled = containsFunction ( mCurrentFunctions , UsbManager . USB_FUNCTION_ADB ) ; - SINGLE - String value = SystemProperties . get ( STRING0 , STRING1 ) ; - if ( value . length ( ) > NUMBER0 ) { - char enable = value . charAt ( NUMBER0 ) ; ...
delete obsolete code
<nb> + package NAMESPACE ; + + COMMENT + COMMENT + COMMENT + public class Version { + private Version ( ) { + SINGLE + } + + public static String id ( ) { + return STRING0 ; + } + }
fixed bogus release
<nb> public class RouteInfoWidgetsFactory { NextDirectionInfo r = routingHelper . getNextRouteDirectionInfo ( calc1 , true ) ; if ( ! deviatedFromRoute ) { if ( r != null ) { - r = routingHelper . getNextRouteDirectionInfo ( calc1 , true ) ; - if ( r != null ) { - r = routingHelper . getNextRouteDirectionIn...
remove obsolete code
<nb> public class Inspect extends Request { return NBModelView . redirect ( this , key ) ; if ( f instanceof DRFModel ) return DRFModelView . redirect ( this , key ) ; + if ( f instanceof hex . speedrf . RFModel ) + return water . api . SPDRFView . redirect ( this , key ) ; if ( f instanceof GapStatisticMod...
allow speedrf to be inspected
<nb> public class LoaderTask extends AsyncTask < String , Void , Bitmap > { return getNetworkImage ( imageFile , uri ) ; } } - return getImageFromFile ( imageFile ) ; + + Bitmap bitmap = getImageFromFile ( imageFile ) ; + if ( bitmap == null ) { + onDecodeFailed ( ) ; + } + return bitmap ; + } +...
even delete corrupted files
<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 NAMES...
add missing imports for R
<nb> public final class ObexHelper { COMMENT COMMENT public static String convertToUnicode ( byte [ ] b , boolean includesNull ) { - if ( b == null ) { + if ( b == null || b . length == NUMBER0 ) { return null ; } int arrayLength = b . length ;
Fix a bug introduced in obex cleanup
<nb> public class ModuleTypeStep extends ModuleWizardStep { if ( ! createNewProject ) { myPanel . add ( myRbImportModule , new GridBagConstraints ( NUMBER0 , GridBagConstraints . RELATIVE , NUMBER1 , NUMBER2 , FLOAT0 , FLOAT1 , GridBagConstraints . NORTHWEST , GridBagConstraints . NONE , new Insets ( NUMBER3 , NU...
remove import from eclipse from UI
<nb> public class JBMacMessages extends MacMessagesEmulation { if ( window == null ) { window = getForemostWindow ( null ) ; } - new SheetMessage ( window , title , message , UIUtil . getInformationIcon ( ) , new String [ ] { okText } , null , null , okText ) ; + new SheetMessage ( window , title , message , ...
make the only button the default one
<nb> public class ContractionPathServiceImpl implements PathService { editor . setTraverseOptions ( options ) ; origin = editor . makeState ( ) ; - SINGLE - long remainingComputationTime = computationEndTime - System . currentTimeMillis ( ) ; - LOG . debug ( STRING0 , remainingComputationTime / FLOAT0 ) ; ...
disable search timeout by default unbreak tests
<nb> public class ConfigureMapMenu { List < RenderingRuleProperty > customRules = new ArrayList < RenderingRuleProperty > ( renderer . PROPS . getCustomRules ( ) ) ; createProperties ( customRules , R . string . rendering_category_details , STRING0 , adapter , activity ) ; - createProperties ( customRules , R ....
Revert Fix category
<nb> public class DefaultPromise implements Promise { notifyListeners ( ) ; return this ; } - throw new IllegalStateException ( ) ; + throw new IllegalStateException ( STRING0 ) ; } @ override <nb> public class DefaultPromise implements Promise { notifyListeners ( ) ; return this ; } - throw n...
Add stacktrace to the IllegalStateException which is thrown if a Promise was notified before
<nb> public class GroovyClassLoader extends URLClassLoader { else { lastMod = source . openConnection ( ) . getLastModified ( ) ; } + if ( lastMod > System . currentTimeMillis ( ) ) return false ; return lastMod > getTimeStamp ( cls ) ; }
disable reloading for scripts with dates in the future
<nb> public class HystrixCommandTest extends CommonHystrixCommandTests < TestHystrixCom @ override public void call ( TestHystrixCommand < Integer > command ) { TestableExecutionHook hook = command . getBuilder ( ) . executionHook ; + System . out . println ( STRING0 + HystrixRequestLog . getCurrentRequest ( ) ...
Added println to undersand test failure
<nb> public class SelectStatementPlanner { private final Visitor visitor ; @ inject - public SelectStatementPlanner ( ClusterService clusterService , ConsumingPlanner consumingPlanner ) { - visitor = new Visitor ( clusterService , consumingPlanner ) ; + public SelectStatementPlanner ( ConsumingPlanner consu...
remove unused clusterService from SelectStatementPlanner
<nb> public class UserREST extends AbstractResourceREST { return Response . status ( Status . UNAUTHORIZED ) . build ( ) ; } - user . setEmail ( request . getEmail ( ) ) ; + user . setEmail ( StringUtils . trimToNull ( request . getEmail ( ) ) ) ; if ( StringUtils . isNotBlank ( request . getPassword ( ) ) ...
don t save email if it s empty
<nb> public class TileQuarry extends TileAbstractBuilder implements IHasWork , ISidedI if ( useDefault ) { int xMin , zMin ; - EnumFacing face = BuildCraftProperties . BLOCK_FACING . getValue ( worldObj . getBlockState ( pos ) ) ; + EnumFacing face = BuildCraftProperties . BLOCK_FACING . getValue ( worldObj ....
Fix the quarry facing the wrong way
<nb> public class DeepLearningCheckpointReporting extends TestUtil { SINGLE Assert . assertTrue ( STRING0 , ( Double ) table . get ( i , NUMBER0 ) == i ) ; SINGLE + Assert . assertTrue ( STRING1 , ( Integer ) table . get ( i , NUMBER1 ) == i ) ; SINGLE } try { SINGLE
Add JUnit check for iterations in scoring history for checkpointing
<nb> public final class BridgeResources extends Resources { @ override public Drawable getDrawable ( int id ) throws NotFoundException { + return getDrawable ( id , null ) ; + } + + @ override + public Drawable getDrawable ( int id , Theme theme ) { Pair < String , ResourceValue > value = getResourceV...
Add ability to obtain themed Drawable from Context
<nb> public class UpgradeProcessor < S > implements Processor < S > , WebConnection { wrapper . unRead ( leftOverInput ) ; wrapper . setReadTimeout ( INFINITE_TIMEOUT ) ; + wrapper . setWriteTimeout ( INFINITE_TIMEOUT ) ; }
Fix a test failure after the timeout refactoring
<nb> public final class BridgeContext extends Context { new IdentityHashMap < Object , Map < String , String > > ( ) ; SINGLE + @ nullable private Map < Integer , StyleResourceValue > mDynamicIdToStyleMap ; private Map < StyleResourceValue , Integer > mStyleToDynamicIdMap ; private int mDynamicIdGenerator...
Fix NPE in BridgeContext obtainStyledAttributes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import static NAMESPACE ; COMMENT
fixed cs issues
<nb> class QueryPlanner SINGLE List < List < Symbol > > groupingSetsSymbols = groupingSetsSymbolsBuilder . build ( ) ; if ( groupingSets . size ( ) > NUMBER0 ) { - Set < Symbol > groupIdInputs = new HashSet < > ( ) ; - distinctGroupingColumns . stream ( ) - . map ( subPlan : : translate ) - . forEach ( gr...
Remove unused groupIdInputs variable
<nb> public class PigToThrift < T extends TBase < ? , ? > > { } @ suppresswarnings ( STRING0 ) - private static Object toThriftValue ( Field field , Object value ) { + public static Object toThriftValue ( Field field , Object value ) { try { switch ( field . getType ( ) ) { case TType . BOOL :
Making toThriftValue public
<nb> public class CommunityFacadeFactory extends GraphDatabaseFacadeFactory @ override protected DatabaseInfo databaseInfo ( ) { - return new DatabaseInfo ( determineEdition ( ) , OperationalMode . single ) ; + return new DatabaseInfo ( Edition . community , OperationalMode . single ) ; } - - private Ed...
Remove advanced edition from the list of possible editions
<nb> public class ConfiguredGZipEncoder implements WriterInterceptor , ClientRequestFi @ override public void filter ( ClientRequestContext context ) throws IOException { - if ( context . getHeaders ( ) . getFirst ( HttpHeaders . CONTENT_ENCODING ) == null && this . forceEncoding ) { + if ( context . hasEntit...
only add gzip encoding header if there is an entity to send
<nb> public class RelaunchLibraryManager { boolean download = false ; String libName = lib . getLibraries ( ) [ i ] ; - File tmp = new File ( libName ) ; - String targFileName = tmp . getName ( ) ; + String targFileName = libName . lastIndexOf ( STRING0 ) >= NUMBER0 ? libName . substring ( libName . lastInd...
Don t use File to separate the last element of the path
<nb> public class FilterRenderer { INDArray column = data . getColumn ( col ) ; - double col_max = ( double ) column . min ( Integer . MAX_VALUE ) . element ( ) ; - double col_min = ( double ) column . max ( Integer . MAX_VALUE ) . element ( ) ; + double col_max = column . min ( Integer . MAX_VALUE ) . getD...
fix bug in renderer
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused imports
<nb> public class EditPostActivity extends SherlockActivity implements OnClickListene ProgressDialog loadingDialog = new ProgressDialog ( this ) ; loadingDialog . setMessage ( getResources ( ) . getText ( R . string . loading ) ) ; loadingDialog . setIndeterminate ( true ) ; - loadingDialog . setCancelable ( tr...
Don t allow the loading dialog in the post editor to be cancelable
<nb> public final class LinkCommandLine extends CommandLine { private final BuildConfiguration configuration ; private final CppConfiguration cppConfiguration ; private final ActionOwner owner ; - private final Artifact output ; + @ nullable private final Artifact output ; @ nullable private final Artifact ...
Allow LinkCommandLine to have a null output
<nb> public class GrailsHibernateUtil { if ( otherSide != null ) { BeanWrapper bean = new BeanWrapperImpl ( target ) ; Object inverseObject = bean . getPropertyValue ( association . getName ( ) ) ; - if ( isInitialized ( inverseObject , otherSide . getName ( ) ) ) { - BeanWrapper inverseBean = new BeanWrapper...
fix failing tests
<nb> public class AndroidExopackageBinaryIntegrationTest { workspace . getFile ( STRING0 ) ) ; - zipInspector . assertFileExists ( STRING1 ) ; + zipInspector . assertFileDoesNotExist ( STRING1 ) ; + zipInspector . assertFileExists ( STRING2 ) ; zipInspector . assertFileExists ( STRING3 ) ;
Fix AndroidExopackageBinaryIntegrationTest to mirror AndroidBinaryIntegrationTest
<nb> public class KeyguardConstants { COMMENT COMMENT COMMENT - public static final boolean DEBUG = true ; + public static final boolean DEBUG = false ; public static final boolean DEBUG_SIM_STATES = true ; }
Stop keyguard from spamming the log
<nb> public class ToyWallet { SINGLE int txIndex = transactions . indexOf ( tx ) ; fireContentsChanged ( this , txIndex , txIndex ) ; - SINGLE - try { - wallet . saveToFile ( walletFile ) ; - } catch ( IOException e ) { - throw new RuntimeException ( e ) ; - } } } ) ; fireIntervalAdded ( this , ...
Remove an unnecessary save point in ToyWallet
<nb> public abstract class AbstractApiProducer < E extends Enum < E > & ApiName , T > SINGLE } - private ApiMethod findMethod ( Exchange exchange , Map < String , Object > properties ) { + protected ApiMethod findMethod ( Exchange exchange , Map < String , Object > properties ) { ApiMethod method = null ;...
Made findMethod protected to support callback based API components
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix a rebase error
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RingChart { imageG2d . setRenderingHint ( RenderingHints . KEY_RENDERING , RenderingHints . VALUE_RENDER_QUALITY ) ; imageG2d . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints ...
Fixes chart background
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StorageExporter { exportPreferences ( activit...
Remove some vestiges of HashSet
<nb> public final class CollocDriver extends AbstractJob { boolean emitUnigrams , int maxNGramSize , int reduceTasks , - int minSupport ) throws IOException { + int minSupport ) throws IOException , ClassNotFoundException , InterruptedException { Configuration con = new Configuration ( baseConf ) ; con ...
left out job waitForCompletion true in generateCollocations method
<nb> enum CompilationParam { } } , + COMMENT + REMOVE_UNUSED_CLASS_PROPERTIES { + @ override + void apply ( CompilerOptions options , boolean value ) { + options . setRemoveUnusedClassProperties ( value ) ; + } + } , + COMMENT REMOVE_UNUSED_PROTOTYPE_PROPERTIES_IN_EXTERNS { @ override
Add REMOVE_UNUSED_CLASS_PROPERTIES option to debugger
<nb> public class MainActivity extends Activity { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_main ) ; RecyclerView recyclerView = ( RecyclerView ) findViewById ( R . id . recyclerview ) ; - SampleArrayHeadersAdapter mAdapter = new SampleArrayHeadersAdapter ( ) ; + final S...
In sample clicking on an item deletes it
<nb> public class PCA extends ModelBuilder < PCAModel , PCAModel . PCAParameters , PCAModel . P if ( _parms . _pca_method == PCAParameters . Method . GramSVD ) { dinfo = new DataInfo ( Key . make ( ) , _train , null , NUMBER0 , _parms . _use_all_factor_levels , _parms . _transform , DataInfo . TransformType . NON...
Fix PCA SVD JUnit tests
<nb> public class BluetoothService extends IBluetooth . Stub { return true ; } - boolean ret ; - SINGLE - SINGLE - if ( mDeviceProperties . isInCache ( address ) && getRemoteUuids ( address ) != null ) { - String path = getObjectPathFromAddress ( address ) ; - if ( path == null ) return false ; - ...
Fix failure of Opp
<nb> import NAMESPACE ; class SearchSettings { - private static Logger LOGGER = LoggerFactory . getLogger ( SearchSettings . class ) ; + private static final Logger LOGGER = LoggerFactory . getLogger ( SearchSettings . class ) ; public static final String PROP_HTTP_PORT = STRING0 ; public static final S...
Fix quality flaw
<nb> public class FarmWarDeployer extends ClusterListener } } - configBase = new File ( engine . getCatalinaBase ( ) , STRING0 ) ; - configBase = new File ( configBase , engine . getName ( ) ) ; - configBase = new File ( configBase , hostname ) ; + configBase = host . getConfigBaseFile ( ) ; SINGLE ...
Add support for Host xmlBase
<nb> public class SourceIndexBenchmarkTest { tester . get ( EsClient . class ) . prepareOptimize ( SourceLineIndexDefinition . INDEX ) . get ( ) ; long dirSize = FileUtils . sizeOfDirectory ( tester . getEsServerHolder ( ) . getHomeDir ( ) ) ; LOGGER . info ( String . format ( STRING0 + FileUtils . byteCountToDis...
Adjust size of ES dir in benchmark
<nb> public interface PluginManager { COMMENT COMMENT COMMENT - public void RegisterInterface ( Class loader ) throws IllegalArgumentException ; + public void RegisterInterface ( Class < ? extends ClassLoader > loader ) throws IllegalArgumentException ; COMMENT COMMENT <nb> public final class SimplePl...
Added generics to PluginManager
<nb> public class Tokens { public static final String JOB = STRING0 ; public static final String BZ2 = STRING1 ; + + public static int MAP_SPILL_OVER = NUMBER0 ; } <nb> public class GroupCountMapReduce { } SINGLE - if ( this . map . size ( ) > NUMBER1 ) { + if ( this . map . size ( ) > Tokens . ...
added MAP SPILL OVER as a hardcoded Token value
<nb> public abstract class AbstractBinaryRenderer < T extends BinarySpec > extends Repor } protected void renderOwnedSourceSets ( T binary , TextReportBuilder builder ) { + if ( ( ( BinarySpecInternal ) binary ) . isLegacyBinary ( ) ) { + return ; + } ModelMap < LanguageSourceSet > sources = binary . getS...
Legacy binaries need exception in reports
<nb> public class GlobalOptionDefinition { public GlobalOptionDefinition ( ) { } + COMMENT + COMMENT + COMMENT public void setKey ( String key ) { this . key = key ; } <nb> public class GlobalOptionDefinition { return key ; } + COMMENT + COMMENT + COMMENT public void setValue ( String ...
Add missing docs
<nb> public class DeodexUtil { instructionThrowTable . set ( Opcode . DIV_INT_LIT8 . value & NUMBER0 ) ; instructionThrowTable . set ( Opcode . REM_INT_LIT8 . value & NUMBER0 ) ; instructionThrowTable . set ( Opcode . THROW . value & NUMBER0 ) ; + instructionThrowTable . set ( Opcode . INVOKE_EXECUTE_INLINE . v...
Add execute inline to the list of instructions that can throw an exception
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - SINGLE - SINGLE SINGLE
update todo comments
<nb> public class Hook implements Comparable < Hook > { } public static boolean isAOSP ( int sdk ) { - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) - return false ; if ( ! PrivacyManager . cVersion3 ) return false ; if ( Build . VERSION . SDK_INT >= sdk ) {
Enabled AOSP mode for Lollipop again
<nb> public interface CommonClassNames { @ nonnls String JAVA_LANG_DEPRECATED = STRING0 ; @ nonnls String JAVA_LANG_ANNOTATION_INHERITED = STRING1 ; + @ nonnls String JAVA_LANG_REFLECT_ARRAY = STRING2 ; + + @ nonnls String JAVA_UTIL_COLLECTION = STRING3 ; @ nonnls String JAVA_UTIL_MAP = STRING4 ; @ nonn...
Hibernate attributes creation TV ERD
<nb> public final class SingleSignOnSessionsReportController { private enum SsoSessionReportOptions { ALL ( STRING0 ) , - PROXIED ( STRING0 ) , + PROXIED ( STRING1 ) , DIRECT ( STRING2 ) ; private final String type ;
fixed issue with proxied enum
<nb> public class MovieDetailsFragment extends SherlockFragment { private static final String TAG = STRING0 ; - private static final int LOADER_ID = R . layout . movie_details_fragment ; - private int mTmdbId ; - private MovieDetails mMovieDetails ; + private MovieDetails mMovieDetails = new MovieDeta...
Properly initialize movie details holder
<nb> final class ActivityStack { r . userId , System . identityHashCode ( r ) , r . shortComponentName , mPausingActivity != null ? mPausingActivity . shortComponentName : STRING0 ) ; - if ( r . finishing && r . state == ActivityState . PAUSING ) { - if ( DEBUG_PAUSE ) Slog . v ( TAG , - STRING1 + r ) ; -...
Ensure state transition of paused activity
<nb> public class EntityIdentifier { private SimpleAttributeBinding attributeBinding ; private IdentifierGenerator identifierGenerator ; private IdGenerator idGenerator ; + private boolean isEmbedded ; + private boolean isIdentifierMapper ; SINGLE COMMENT <nb> public class EntityIdentifier { this . ...
Add boolean values and getters to EntityIdentifier indicating if an ID is embedded or identifier mapper
<nb> public class Exceptions } catch ( Exception failure ) { - SINGLE + SINGLE } return exception ; } <nb> public class Exceptions } else { - throw new RuntimeException ( messageForUnexpected , exception ) ; + return new RuntimeException ( messageForUnexpected , exception ) ; } }
Fixed some small typos
<nb> public class AudioService extends IAudioService . Stub { streamType = AudioSystem . STREAM_NOTIFICATION ; } + SINGLE + if ( ( mContext . getResources ( ) . getConfiguration ( ) . uiMode & Configuration . UI_MODE_TYPE_WATCH ) + == Configuration . UI_MODE_TYPE_WATCH ) { + flags &= ~ AudioManager . FLAG...
DO NOT MERGE Hide the volume panel for watches for now
<nb> public class Authentication extends Model { private boolean valid ; - public boolean isValid ( ) { + public boolean isValid ( ) { return valid ; }
Fix quality flaws
<nb> import NAMESPACE ; COMMENT @ threadsafe public abstract class Channel { - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public final < RequestT , ResponseT > ClientCall < RequestT , ResponseT > newCall ( - MethodDescriptor...
Remove Deprecated newCall method on Channel
<nb> public class HeartBeatThread extends Thread { int counter = NUMBER0 ; SINGLE while ( true ) { + SINGLE + Log . info ( STRING0 ) SINGLE H2O cloud = H2O . CLOUD ; HeartBeat hb = H2O . SELF . _heartbeat ;
Logging Heartbeats for debug purposes
<nb> public class ReadWriteDiskCacheTest { brokenByte [ NUMBER0 ] = NUMBER1 ; updateFilePage ( NUMBER2 , systemOffset + NUMBER2 , brokenByte ) ; - updateFilePage ( NUMBER3 , systemOffset + NUMBER4 , brokenByte ) ; + updateFilePage ( NUMBER3 , systemOffset + NUMBER3 , brokenByte ) ; OPageDataVerificationEr...
Check sum test fix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class IdeKeyEventDispatcher implements Disposable { . sh...
handle INRE in more actionPerformed calls
<nb> public class OServerCommandPostStudio extends OServerCommandAuthenticatedDbAbstr throw new IllegalArgumentException ( STRING0 ) ; final ODocument doc = new ODocument ( db , new ORecordId ( rid ) ) ; + doc . load ( ) ; doc . delete ( ) ; sendTextContent ( iRequest , OHttpUtils . STATUS_OK_CODE , STRING1...
fixed bug on delete record
<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 NAMES...
eliminate eclipse warnings
<nb> public class EditorFragment extends EditorFragmentAbstract implements View . OnCli private void insertTextToEditor ( String text ) { if ( text != null ) { - mWebView . execJavaScriptFromString ( STRING0 + text + STRING1 ) ; + mWebView . execJavaScriptFromString ( STRING0 + Utils . escapeHtml ( text ) + S...
Escape dropped text before inserting