diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class State { COMMENT COMMENT final boolean finished ; + + @ override + public String toString ( ) { + StringBuilder result = new StringBuilder ( ) ; + result . append ( STRING0 ) ; + result . append ( STRING1 + sentence + STRING2 ) ; + result . append ( STRING3 + tokenPosition + STRING2...
Add a toString to State
<nb> public class CompletionUtil { public static boolean shouldShowFeature ( final CompletionParameters parameters , @ nonnls final String id ) { - return FeatureUsageTracker . getInstance ( ) . isToBeShown ( id , parameters . getPosition ( ) . getProject ( ) ) ; + if ( FeatureUsageTracker . getInstance ( ) ....
if a feature is likely to be advertized in completion register this as a successful ad presentation
<nb> public class Circle implements Serializable { y = circle . y ; radius = circle . radius ; } - + + COMMENT + COMMENT + public void setPosition ( Vector2 position ) { + this . x = position . x ; + this . y = position . y ; + } + + COMMENT + COMMENT + COMMENT + public void setPosition ...
Circle add setPosition and setRadius methods
<nb> class GlobalActions implements DialogInterface . OnDismissListener , DialogInterfac filteredPos ++ ; } - throw new IllegalArgumentException ( STRING0 + position + STRING1 - + STRING2 - + STRING3 + getCount ( ) + STRING4 + mKeyguardShowing + throw new IllegalArgumentException ( STRING0 + position + ...
Remove duplicate in exception message
<nb> public class AmenityMenuBuilder extends MenuBuilder { } if ( ! pType . isText ( ) ) { if ( ! Algorithms . isEmpty ( pType . getPoiAdditionalCategory ( ) ) ) { - vl = pType . getPoiAdditionalCategoryTranslation ( ) + STRING0 + pType . getTranslation ( ) . toLowerCase ( ) ; + vl = pType . getPoiAdditionalC...
Do not force lower case after colon
<nb> public class AbstractMetricGroupTest { public void testGetAllVariables ( ) { MetricRegistry registry = new MetricRegistry ( new Configuration ( ) ) ; - AbstractMetricGroup group = new AbstractMetricGroup < AbstractMetricGroup > ( registry , new String [ NUMBER0 ] , null ) { + AbstractMetricGroup group = ...
hotfix metrics Fix AbstractMetricGroupTest testGetAllVariables
<nb> public class FeedParser { FeedEntry entry = new FeedEntry ( ) ; entry . setGuid ( item . getUri ( ) ) ; entry . setGuidHash ( DigestUtils . sha1Hex ( item . getUri ( ) ) ) ; - entry . setUrl ( item . getLink ( ) ) ; + entry . setUrl ( FeedUtils . truncate ( item . getLink ( ) , NUMBER0 ) ) ; entry . se...
truncate url if too long
<nb> import NAMESPACE ; COMMENT public class ProtobufAnnotationSerializer extends AnnotationSerializer { + COMMENT private static final Object globalLock = STRING0 ; COMMENT <nb> public class ProtobufAnnotationSerializer extends AnnotationSerializer { COMMENT public ProtobufAnnotationSerializer ( bo...
Tweak documentation of Protobuf Serializer
<nb> public class RestAdapter { if ( ! methodInfo . isSynchronous ) { SINGLE - Thread . currentThread ( ) . setName ( THREAD_PREFIX + url . substring ( serverUrl . length ( ) ) ) ; + int substrEnd = url . indexOf ( STRING0 , serverUrl . length ( ) ) ; + if ( substrEnd == - NUMBER0 ) { + substrEnd = url . ...
Shorten Thread name by removing query string
<nb> public class OsgiManagementNameStrategy extends DefaultManagementNameStrategy { @ override protected String customResolveManagementName ( String pattern , String answer ) { String bundleId = STRING0 + bundleContext . getBundle ( ) . getBundleId ( ) ; - String symbolicName = Matcher . quoteReplacement ( bun...
Fixed potential NPE if symbolic name is null
<nb> abstract class JsonObject { SerializationFeature . CLOSE_CLOSEABLE , false ) ; } - public Map < String , Object > parameters = Maps . newHashMap ( ) ; + private static final ObjectMapper OBJECT_MAPPER = createObjectMapper ( ) ; - private final ObjectMapper objectMapper = createObjectMapper ( ) ; + ...
Conver the ObjectMapper in JsonObject to static final per discussion
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class MultipleParentClassLoader extends ClassLoader {
Added a description on package loading behavior for the multiple parent class loader
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AppEngineFacetEditor extends FacetEditorTab { for ( VirtualFile file : rootModel ...
added method to choose single file in FileChooser
<nb> public class FacetsPhase implements SearchPhase { Filter facetFilter = new QueryWrapperFilter ( queryFacet . query ( ) ) ; facetFilter = context . filterCache ( ) . cache ( facetFilter ) ; long count ; - if ( contextFacets . queryType ( ) == SearchContextFacets . QueryExecutionType . COLLECT ) { - count ...
if we already have an idset use it
<nb> public class XDebugSessionTab extends DebuggerSessionTabBase { debugProcess . registerAdditionalContent ( myUi ) ; RunContentBuilder . addAdditionalConsoleEditorActions ( myConsole , consoleContent ) ; - myUi . addContent ( consoleContent , NUMBER0 , PlaceInGrid . bottom , false ) ; if ( ApplicationMan...
remove double adding of console
<nb> public final class ConfigurationBean extends Neo4jMBean for ( String key : config . keySet ( ) ) { keys . add ( new MBeanAttributeInfo ( key , String . class . getName ( ) , - describeConfigParameter ( key ) , true , true , false ) ) ; + describeConfigParameter ( key ) , true , false , false ) ) ; } ...
Make configuration props read only
<nb> public class WifiManager { } else if ( rssi >= MAX_RSSI ) { return numLevels - NUMBER0 ; } else { - int partitionSize = ( MAX_RSSI - MIN_RSSI ) / ( numLevels - NUMBER0 ) ; - return ( rssi - MIN_RSSI ) / partitionSize ; + float inputRange = ( MAX_RSSI - MIN_RSSI ) ; + float outputRange = ( numLevels -...
Fix divide by zero when calculating signal level over a large output range
<nb> public class Criteria { } else if ( CriteriaType . EXISTS . equals ( key ) ) { boolean exp = ( Boolean ) expectedVal ; - boolean act = map . containsKey ( this . key ) ; + boolean act = true ; + try { + this . key . read ( map ) ; + } catch ( InvalidPathException e ) { + act = false ; + } r...
fix EXISTS filter
<nb> final class PlaceJSONImpl extends TwitterResponseImpl implements Place , java . io . JSONArray array = geometryJSON . getJSONArray ( STRING0 ) ; if ( geometryType . equals ( STRING1 ) ) { geometryCoordinates = new GeoLocation [ NUMBER0 ] [ NUMBER0 ] ; - geometryCoordinates [ NUMBER1 ] [ NUMBER1 ] = new Geo...
Fix the conversion of Geometry Point in PlaceJSONImpl
<nb> class GLES20RenderLayer extends GLES20Layer { @ override void end ( Canvas currentCanvas ) { - if ( currentCanvas instanceof GLES20Canvas ) { - ( ( GLES20Canvas ) currentCanvas ) . resume ( ) ; - } HardwareCanvas canvas = getCanvas ( ) ; if ( canvas != null ) { canvas . onPostDraw ( ) ; } + i...
Finish current Canvas operations then resume previous Canvas
<nb> public class FoldingModelSupport { } @ notnull - private static RangeHighlighter createFoldingHighlighter ( @ notnull Editor editor , @ notnull final FoldRegion region ) { + private static RangeHighlighter createFoldingHighlighter ( @ notnull final Editor editor , @ notnull final FoldRegion region ) { ...
hide block separators from folded region popup
<nb> public class RemoteObject implements Remote , Unreferenced { } if ( foreignException ) { - Throwable wrapper = new Throwable ( ex . toString ( ) ) ; + final RuntimeException wrapper = new RuntimeException ( ex . toString ( ) ) ; wrapper . setStackTrace ( ex . getStackTrace ( ) ) ; ex = wrapper ; }
flatten exception chain a bit
<nb> public class Environment { return outer_boundary . bbox ( ) ; } - Polygon get ( int i ) { + public Polygon get ( int i ) { if ( i == NUMBER0 ) { return outer_boundary ; } else { <nb> public class Polygon { return vertices . hashCode ( ) + NUMBER1 ; } - Point get ( int i ) { + public Poi...
fix more access control issues
<nb> public class DebugDrawerLayout extends ViewGroup implements DrawerLayoutImpl { COMMENT COMMENT COMMENT - public void onDrawerSlide ( View drawerView , float slideOffset ) ; + void onDrawerSlide ( View drawerView , float slideOffset ) ; COMMENT COMMENT <nb> public class DebugDrawerLayout extends V...
Remove redundant public modifiers for interface methods
<nb> public class NodeStats extends NodeOperationResponse implements ToXContent { @ override public XContentBuilder toXContent ( XContentBuilder builder , Params params ) throws IOException { - builder . field ( STRING0 , getTimestamp ( ) ) ; builder . field ( STRING1 , getNode ( ) . name ( ) , XContentBuilde...
serialize timestamp on the response
<nb> public class RenderContext { Gdx . gl . glDepthFunc ( depthFunc = depthFunction ) ; if ( ! wasEnabled || this . depthRangeNear != depthRangeNear || this . depthRangeFar != depthRangeFar ) Gdx . gl . glDepthRangef ( this . depthRangeNear = depthRangeNear , this . depthRangeFar = depthRangeFar ) ; - if ( ! w...
Fix depth test
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class AtomFeedCheckerCmd { System . out . println ( STRING0 + langCode ) ; int sleepTimeMillis = Integer . parseInt ( args [ NUMBER0 ] ) ; System . out . println ( STRING1 + sleepTimeMillis + STR...
also print LT version to stdout
<nb> public class GoKeywordCompletionContributor extends CompletionContributor { private static ElementPattern < ? extends PsiElement > typeExpression ( ) { return psiElement ( GoTypes . IDENTIFIER ) . withParent ( - psiElement ( GoTypes . TYPE_REFERENCE_EXPRESSION ) - . with ( new PatternCondition < PsiEleme...
Restore completion pattern
<nb> public class OperationSetBasicInstantMessagingJabberImpl { SINGLE if ( ! jabberProvider . isRegistered ( ) ) + { + logger . trace ( STRING0 + + STRING1 + + jabberProvider . getAccountID ( ) + . getAccountUniqueID ( ) ) ; return ; + } Chat chat = jabberProvider . getConnection ( ) .
added a log for keepalive tasks
<nb> public class HtmlToPdfMojo extends AbstractMojo { SINGLE String content = downloadContent ( ) ; if ( content == null ) { + SINGLE + storeDummyFile ( ) ; return ; } <nb> public class HtmlToPdfMojo extends AbstractMojo { return pdf ; } + private void storeDummyFile ( ) throws FileNotFoundEx...
Manual will create a dummy file in case download fails as the Apache servers does this occationanlly
<nb> public class BinaryExpressionHelper { if ( directAssignment ) { VariableExpression var = ( VariableExpression ) leftExpression ; rhsType = controller . getTypeChooser ( ) . resolveType ( var , controller . getClassNode ( ) ) ; - operandStack . doGroovyCast ( rhsType ) ; + if ( ! ( rightExpression instanc...
Added another case where casting null is not necessary
<nb> class PackageManagerService extends IPackageManager . Stub { pw . println ( STRING0 ) ; pw . println ( mSettings . mReadMessages . toString ( ) ) ; } + + synchronized ( mProviders ) { + pw . println ( STRING1 ) ; + pw . println ( STRING2 ) ; + for ( PackageParser . Provider p : mProviders . values ...
Include the list of registered providers the package manager dumpsys output
<nb> public class Entity implements IEntity { if ( this . mChildren == null ) { return null ; } - return this . mChildren . remove ( pEntityMatcher ) ; + return this . mChildren . remove ( pEntityMatcher , Entity . PARAMETERCALLABLE_DETACHCHILD ) ; } @ override
Fixed a bug where IEntity onDetached was not called when using the method when using IEntity detachChild IEntityMatcher
<nb> public class HBaseProducerTest extends CamelHBaseTestSupport { Object result1 = resp . getOut ( ) . getHeader ( HBaseAttribute . HBASE_VALUE . asHeader ( NUMBER0 ) ) ; Object result2 = resp . getOut ( ) . getHeader ( HBaseAttribute . HBASE_VALUE . asHeader ( NUMBER1 ) ) ; Object result3 = resp . getOut ( ) ....
Remove unuseful print
<nb> public abstract class AbstractClient implements ShellClient public static final String TITLE_MAX_LENGTH = STRING0 ; private static final Set < String > EXIT_COMMANDS = new HashSet < String > ( - Arrays . asList ( STRING1 , STRING2 ) ) ; + Arrays . asList ( STRING1 , STRING2 , null ) ) ; private Conso...
Quit the shell on EOF i e D as per convention rather than parsing null
<nb> public class ExecutionHandler implements ChannelUpstreamHandler , ChannelDownstre COMMENT COMMENT + COMMENT COMMENT public ExecutionHandler ( Executor executor ) { if ( executor == null ) {
Javadoc not to receive a question about messy data transfer anymore
<nb> public class UberTestCaseGroovySourceSubPackages extends TestCase { suite . addTest ( AllTestSuite . suite ( BASE , STRING0 , EXCLUDES ) ) ; suite . addTest ( AllTestSuite . suite ( BASE , STRING1 , EXCLUDES ) ) ; suite . addTest ( AllTestSuite . suite ( BASE , STRING2 , EXCLUDES ) ) ; - suite . addTest ( ...
back out bamboo build hack in stages
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add links to the hash function comparisons to the Hashing javadocs
<nb> public class HttpPanelRequest extends HttpPanel { if ( comboChangeMethod == null ) { comboChangeMethod = new JComboBox < > ( ) ; comboChangeMethod . setEditable ( false ) ; + comboChangeMethod . setMaximumRowCount ( NUMBER0 ) ; SINGLE comboChangeMethod . addItem ( Constant . messages . getString ( STRING...
Tweak http panel so that Method pulldown doesnt need a scrollbar
<nb> import NAMESPACE ; COMMENT COMMENT public class LruPhotoCache { - private static final float SIZE_RATIO = FLOAT0 / FLOAT1 ; + private static final float SIZE_RATIO = FLOAT0 / NUMBER0 f ; private final PhotoCache photoCache ; private PhotoRemovedListener photoRemovedListener ;
Reduce the default memory cache size
<nb> public abstract class TitanGraphTest extends TitanGraphTestCommon { SINGLE assertFalse ( v . getProperties ( key ) . iterator ( ) . hasNext ( ) ) ; - long id = v . getID ( ) ; SINGLE - SINGLE clopen ( ) ; SINGLE - v = tx . getVertex ( id ) ; + v = tx . getVertex ( v . getID ( ) ) ; key = tx...
Fix getID abuse
<nb> public class SearchFilter SINGLE filterQuery . addContactQuery ( defaultQuery ) ; - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - mclSource . startQuery ( defaultQuery , filterPattern ) ; } else if ( sourceContactList . getDefaultFilter ( )
Removes commented lines of code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { public void setTargetComponent ( final JComponent component ) { myTargetComponent ...
do not schedule toolbar refresh for partially initialized target component
<nb> public class DumbServiceImpl extends DumbService implements Disposable , Modifica private void queueUpdateFinished ( boolean modal ) { if ( myUpdateFinishedQueued ) return ; myUpdateFinishedQueued = true ; - TransactionGuard . submitTransaction ( myProject , ( ) - > WriteAction . run ( ( ) - > updateFinish...
do not lose information about write action caller
<nb> public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase } } - private boolean brokerSaysIAmMaster ( ) - { - return broker . iAmMaster ( ) ; - } - public Transaction beginTx ( ) { return localGraph . beginTx ( ) ; <nb> public class HighlyAvailableGraphDatabase extends Abstrac...
Added a temporary method to ask a ha db if it currently is a master or not
<nb> public final class MotionEvent implements Parcelable { } COMMENT - < < < < < < < HEAD : core / java / android / view / MotionEvent . java COMMENT COMMENT COMMENT <nb> public final class MotionEvent implements Parcelable { COMMENT COMMENT COMMENT - || || || | - COMMENT - COMMENT - == =...
Fixes merge conflict
<nb> public class KotlinToJVMBytecodeCompiler { collector . report ( CompilerMessageSeverity . ERROR , message . toString ( ) , CompilerMessageLocation . NO_LOCATION ) ; } } - - public static CompilerMessageLocation create ( @ nullable String path , @ notnull DiagnosticUtils . LineAndColumn lineAndColumn ) { ...
Remove unused method
<nb> public class VertexBufferObject implements VertexData { } protected VertexBufferObject ( int usage , ByteBuffer data , boolean ownsBuffer , VertexAttributes attributes ) { + bufferHandle = Gdx . gl20 . glGenBuffer ( ) ; + setBuffer ( data , ownsBuffer , attributes ) ; setUsage ( usage ) ; }
Actually generate a buffer handle
<nb> public class LauncherAppsService extends SystemService { private void verifyCallingPackage ( String callingPackage ) { int packageUid = - NUMBER0 ; try { - packageUid = mPm . getPackageUid ( callingPackage , + packageUid = mPm . getPackageUidAsUser ( callingPackage , PackageManager . MATCH_ENCRYPTION_A...
Fix caller validation on secondary user
<nb> public class DaemonCommand extends Command { switch ( operationResult . getResultCode ( ) ) { case OK : out . println ( STRING0 ) ; - out . println ( STRING1 ) ; + out . println ( STRING2 ) ; out . println ( ) ; break ; <nb> public class DaemonCommand extends Command { switch ( operationResult ...
Correct sy daemon output
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SearchServer implements Monitored { String clusterReplicationFactor = settings . get ( STRING0 , STRING1 ) ; if ( Integer ....
Fix documentation of sonar cluster activate
<nb> public class Message extends Packet { public String toXML ( ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( STRING0 ) ; - buf . append ( STRING1 ) . append ( getPacketID ( ) ) . append ( STRING2 ) ; + if ( getPacketID ( ) != null ) { + buf . append ( STRING1 ) . append ( getPacketID ( ) ) ...
Do not print the packet id in toXML when the id is null
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT @ beta @ gwtcompatible + @ checkreturnvalue public abstract class MultimapBuilder < K0 , V0 > { COMMENT COMMENT
Add CheckReturnValue to MultimapBuilder
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LocallyAvailableResourceFinderFactory implements Factory < LocallyAva SINGLE finders . add ( new LocalMavenLocallyAvailableResourceFinder ( l...
Remove duplicate local maven repo definition to LocallyAvailableResourceFinderFactory
<nb> import NAMESPACE ; COMMENT COMMENT public final class BytecodeArray { - COMMENT - public static final Visitor EMPTY_VISITOR = new BaseVisitor ( ) ; - COMMENT private final ByteArray bytes ; <nb> public final class BytecodeArray { COMMENT public int parseInstruction ( int offset , Visitor vi...
Eliminate EMPTY_VISITOR static in DX
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
remove untruth from javadoc
<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...
removed unused imports
<nb> public class OUser extends ODocumentWrapper { } public OUser setPassword ( final String iPassword ) { - return setPasswordEncoded ( encryptPassword ( iPassword ) ) ; + return setPasswordEncoded ( iPassword ) ; } - public OUser setPasswordEncoded ( String iPassword ) { + public OUser setPasswordEn...
Fixed issue on set password for OUser
<nb> public class HttpBrowser { if ( newCookies != null ) { for ( String cookieValue : newCookies ) { Cookie cookie = new Cookie ( cookieValue ) ; - cookies . put ( cookie . getName ( ) , cookie ) ; } } <nb> public class HttpBrowser { if ( ! cookies . isEmpty ( ) ) { for ( Cookie cookie : cookies ...
don t add cookies to the header that have been deleted
<nb> class PeepholeSubstituteAlternateSyntax } } + private static final ImmutableSet < String > BUILTIN_TYPES = ImmutableSet . of ( + STRING0 , + STRING1 , + STRING2 , + STRING3 ) ; + private Node tryMinimizeWindowRefs ( Node node ) { SINGLE SINGLE <nb> class PeepholeSubstituteAlternateSyntax ...
Add window RegExp as a standard builtin that can fold to just RegExp
<nb> public class PlansActivity extends AppCompatActivity { startActivity ( intent ) ; } } else { - AppLog . e ( AppLog . T . PLANS , STRING0 + result . getMessage ( ) ) ; + AppLog . e ( AppLog . T . PLANS , STRING1 + result . getMessage ( ) ) ; SINGLE SINGLE }
Fix log message
<nb> public class MetaClassImpl implements MetaClass , MutableMetaClass { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class MetaClassImpl implements MetaClass , MutableMetaClass { } COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT ...
Fixed compilation warnings for javadoc
<nb> public class FlipViewController extends AdapterView < Adapter > { handler . post ( new Runnable ( ) { public void run ( ) { - if ( ! inFlipAnimation ) + if ( ! inFlipAnimation ) { cards . setVisible ( false ) ; + surfaceView . requestRender ( ) ; SINGLE + } } } ) ; }
Fix an issue when rendering stays on screen after animation ends
<nb> public class JobProxyGcm implements JobProxy { . setExecutionWindow ( Common . getStartMs ( request ) / NUMBER0 , Common . getEndMs ( request ) / NUMBER0 ) . setRequiredNetwork ( convertNetworkType ( request . requiredNetworkType ( ) ) ) . setPersisted ( request . isPersisted ( ) ) - . setRequiresCharging ...
Fix requires charging parameter in GCM proxy
<nb> public class RenderScript { } catch ( InterruptedException e ) { } } - Log . d ( LOG_TAG , STRING0 ) ; + SINGLE } } <nb> public class ScriptC extends Script { String resName = resources . getResourceEntryName ( resourceID ) ; String cachePath = rs . getApplicationContext ( ) . getCacheDir ( )...
Remove extraneous logging
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Scope return variable ; } + + public Variable declareVariable ( String variableName , ByteCodeBlock block , ByteCodeExpression initialValue ) + { + Variable variable = declareVaria...
Add initializer to variables declaration in Scope
<nb> public class AppCompatEditText extends EditText implements TintableBackgroundVie } public AppCompatEditText ( Context context , AttributeSet attrs ) { - this ( TintContextWrapper . wrap ( context ) , attrs , R . attr . editTextStyle ) ; + this ( context , attrs , R . attr . editTextStyle ) ; } publ...
Fix AppCompatEditText s context wrapping
<nb> public final class MessageBytes implements Cloneable , Serializable { public static final int T_CHARS = NUMBER0 ; private int hashCode = NUMBER1 ; - SINGLE + SINGLE private boolean hasHashCode = false ; SINGLE
Fix comment typo
<nb> public abstract class DexWriter < @ nullable Iterable < ? extends StringKey > parameterNames , @ nullable Iterable < ? extends DebugItem > debugItems ) throws IOException { int parameterCount = NUMBER0 ; + int lastNamedParameterIndex = - NUMBER1 ; if ( parameterNames != null ) { + parameterCount = Iter...
When writing a debug item always include all parameters
<nb> public class CompactionController this . forceDeserialize = forceDeserialize ; isMajor = cfs . isCompleteSSTables ( this . sstables ) ; SINGLE - throttleResolution = ( int ) ( DatabaseDescriptor . getCompactionThroughputMbPerSec ( ) * NUMBER0 * NUMBER0 / ( NUMBER1 * cfs . getMeanRowSize ( ) ) ) ; + long ...
handle zero rowSize in throttleResolution calculation
<nb> public abstract class ItemLoader < Params , Result > { return false ; } - public Result loadItemFromMemory ( Params itemParams ) { - return null ; - } - public abstract Params getItemParams ( Adapter adapter , int position ) ; public abstract Result loadItem ( Params itemParams ) ; + public...
library Make ItemLoader s loadItemFromMemory abstract
<nb> public class SettingsActivity extends PreferenceActivity implements OnPreference if ( VECTOR_MAP . equals ( ( String ) newValue ) ) { osmandSettings . setUsingMapVectorData ( true ) ; } else { - osmandSettings . setUsingMapVectorData ( true ) ; + osmandSettings . setUsingMapVectorData ( false ) ; osman...
Fix bug with changing vector map source
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + SINGLE public interface ClientConnectionManager { public void shutdown ( ) ;
added TODO about recursive connection of client
<nb> import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class DatabaseActionsTest { - - private static final URI BASE_URI ; - - static -...
Removing unused code
<nb> public final class Bukkit { return server . getUpdateFolderFile ( ) ; } + public static long getConnectionThrottle ( ) { + return server . getConnectionThrottle ( ) ; + } + public static int getTicksPerAnimalSpawns ( ) { return server . getTicksPerAnimalSpawns ( ) ; } <nb> public interface Se...
Added configurable Connection Throttle
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DatabaseShardManager { private static final String INDEX_TABLE_PREFIX = STRING0 ; - private static final Logger log = L...
Remove unused logger
<nb> public class Registry { SINGLE SINGLE if ( isNative && info != null && info . isPersistent ( ) ) { - try { - info . getFunctionClass ( ) ; - } catch ( Exception e ) { - return registerToSessionRegistry ( qualifiedName , info ) ; - } - return info ; + return registerToSessionRegistry ( qualified...
getFunctionInfo should register jars under a check Reviewed by Amareshwari
<nb> public class EmailAlarmCallback implements AlarmCallback { final AlertCondition alertCondition = result . getTriggeredCondition ( ) ; final int effectiveBacklogSize = Math . min ( alertCondition . getBacklog ( ) , result . getMatchingMessages ( ) . size ( ) ) ; final List < MessageSummary > backlogSummaries ...
Preventing IndexOutOfBoundsException if search result is empty
<nb> public class TestQueries } @ test + public void testGroupByCount ( ) + { + List < Tuple > expected = computeExpected ( STRING0 , VARIABLE_BINARY , FIXED_INT_64 ) ; + + BlockStream groupBySource = createBlockStream ( ordersData , Column . ORDER_ORDERSTATUS , VARIABLE_BINARY ) ; + BlockStream aggre...
Add test for group by count
<nb> public class InsecureCipherMode extends BugChecker implements MethodInvocationTr SINGLE SINGLE SINGLE - if ( transformation . matches ( STRING0 ) || transformation . matches ( STRING1 ) + if ( transformation . matches ( STRING0 ) + || transformation . matches ( STRING1 ) || transformation . matches (...
Update recognized ciphers in InsecureCipherMode
<nb> package NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class Intents { public static final String ACTION_VIEW_EPISODE = STRING0 ; - public static final String EXTRA_EPISODE_TVDBID = STRING1 ; + public static final String ACTION_VIEW_SHOW + = STRING2 ; + + public...
Support building show view intents from API as well
<nb> public class InteractiveShell { out . println ( STRING0 ) ; out . println ( STRING1 ) ; - int counter = NUMBER0 ; boolean running = true ; while ( running ) { SINGLE <nb> public class InteractiveShell { if ( command . length ( ) > NUMBER1 ) { SINGLE try { - SINGLE shell . evaluate ( comma...
removed unneeded counter
<nb> public class GitBlit implements ServletContextListener { SINGLE if ( getBoolean ( Keys . web . showRepositorySizes , true ) ) { + ByteFormat byteFormat = new ByteFormat ( ) ; msg = STRING0 ; for ( String repository : repositories ) { RepositoryModel model = getRepositoryModel ( repository ) ; if ( ...
Added missing repo size values
<nb> public class NotificationStackScrollLayout extends ViewGroup } public void onChildAnimationFinished ( ) { - applyCurrentState ( ) ; + updateChildren ( ) ; mAnimationEvents . clear ( ) ; }
Fixed a bug where the notification scroller could crash
<nb> public class TypeName { internal = internal . substring ( NUMBER0 , pos ) ; pos = internal . lastIndexOf ( STRING0 ) ; - package_ = internal . substring ( NUMBER1 , pos ) . replace ( STRING0 , STRING1 ) ; - type = internal . substring ( pos + NUMBER0 ) ; + if ( pos == - NUMBER0 ) { + package_ = STRIN...
fixed a bug occuring when parsing class name without a package
<nb> public class HistoryReaderImpl implements HistoryReader { return this . findByXpath ( expr ) ; } - public QueryResultSet findByText ( Date startDate , Date endDate , + public QueryResultSet findByPeriod ( Date startDate , Date endDate , String [ ] keywords ) throws UnsupportedOperationException { Str...
changed method signiture in service
<nb> public class SLF4JHandler extends OutputHandler { Class source = null ; SINGLE Object backupSource = null ; SINGLE Redwood . Flag flag = Redwood . Flag . STDOUT ; - for ( Object c : channel ) { + for ( Object c : ( ( channel == null ) ? new Object [ NUMBER0 ] : channel ) ) { if ( c instanceof Class ) {...
Fix strange null pointer
<nb> public class SpringExtension extends AbstractGlobalExtension { } private boolean isSpringSpec ( SpecInfo spec ) { + if ( isSpringBootSpec ( spec ) ) return true ; - if ( isSpringBootSpec ( spec ) ) { - return true ; - } return findAnnotationDescriptorForTypesMethod != null && ReflectionUtil ....
Fix NPE if BootstrapWith annotation is not available on classpath
<nb> public class CoordinatorDynamicConfig this . replicantLifetime = replicantLifetime ; this . replicationThrottleLimit = replicationThrottleLimit ; this . emitBalancingStats = emitBalancingStats ; - this . balancerComputeThreads = balancerComputeThreads ; + this . balancerComputeThreads = Math . min ( bala...
limit on balancer compute threads
<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 static NAMESPACE ; imp...
DemoActivity can log scope hierarchy
<nb> public class RouteCalculationResult { type = diff > NUMBER0 ? TurnType . KL : TurnType . KR ; } SINGLE - RouteDirectionInfo info = new RouteDirectionInfo ( NUMBER1 , TurnType . valueOf ( type , false ) ) ; + RouteDirectionInfo info = new RouteDirectionInfo ( lastDirInf != null ? lastDirInf . getAverageSp...
refine travel time solution
<nb> public class ReplaySubjectBoundedConcurrencyTest { break ; } else { Assert . assertEquals ( NUMBER0 , o . get ( ) ) ; - rs . onCompleted ( ) ; + worker . schedule ( new Action0 ( ) { + @ override + public void call ( ) { + rs . onCompleted ( ) ; + } + } ) ; } } }
Fixed wrong subject use in test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public class EclipseClasspath { - - private static final String DEPRECATED_NOEXPORTCONFIGURATION_FIELD = STRING0 ;...
Fixed merge problem
<nb> public class LocationManagerService extends ILocationManager . Stub implements Run SINGLE int uid = Binder . getCallingUid ( ) ; + if ( UserHandle . getUserId ( uid ) != UserHandle . USER_OWNER ) { + SINGLE + Log . w ( TAG , STRING0 ) ; + return ; + } long identity = Binder . clearCallingIdentity...
disable geofences for secondary users
<nb> public class MasterInfo extends ImageWriter { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public boolean rename ( int fileId , TachyonURI dstPath , long opTimeMs ) - throws FileDoesNotExistException , InvalidPathException { - r...
remove rename which is supposed to be a wrapper around renameInternal
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Adding license for new file
<nb> public class Ir compressConstantEnums ( messageTokens ) ; countComponentTokens ( messageTokens ) ; - messagesByIdMap . put ( messageId , Collections . unmodifiableList ( new ArrayList < > ( messageTokens ) ) ) ; + messagesByIdMap . put ( messageId , new ArrayList < > ( messageTokens ) ) ; } private...
Java Remove a layer or indirection in the IR
<nb> public class WorldEdit { if ( commands . hasCommand ( searchCmd ) ) { } else if ( config . noDoubleSlash && commands . hasCommand ( STRING0 + searchCmd ) ) { split [ NUMBER0 ] = STRING0 + split [ NUMBER0 ] ; - } else if ( commands . hasCommand ( searchCmd . substring ( NUMBER1 ) ) ) { + } else if ( split...
Fixed an error the command parser that resulted it in handling commands it did not really handle
<nb> public class QueueContainer implements IdentifiedDataSerializable { if ( ! fromBackup && store . isEnabled ( ) ) { Set < Long > keys = store . loadAllKeys ( ) ; if ( keys != null ) { + long maxId = - NUMBER0 ; for ( Long key : keys ) { QueueItem item = new QueueItem ( this , key , null ) ; getItemQue...
queue init load fix
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface DirectoryProjectGenerator < T > { String getName ( ) ; COMMENT + COMMENT + COMMENT + @ nullable + default T showGenerationSettings ( final VirtualFile baseDir ) throws ProcessCanceledException { + return null ; ...
Fix broken API