diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class VolumeControlButton public void stateChanged ( ChangeEvent e ) { JSlider source = ( JSlider ) e . getSource ( ) ; - if ( ! source . getValueIsAdjusting ( ) ) - { - int volume = source . getValue ( ) ; + int volume = source . getValue ( ) ; - SINGLE - volumeControl . setVolume ( ( f...
Change the volume during a call while sliding and not when the slider is released
<nb> public interface Project { File getBuildDir ( ) ; + String getGradleUserHome ( ) ; + String getBuildFileName ( ) ; Project getParent ( ) ; <nb> public interface Project { public void allprojects ( ProjectAction action ) ; public void applyActions ( Set < Project > projects , ProjectAction a...
Added gradleUserHome as declared project propery
<nb> public class TokensRegexNERAnnotator implements Annotator { return props ; } - private static Pattern FILE_DELIMITERS_PATTERN = Pattern . compile ( STRING0 ) ; - private static Pattern COMMA_DELIMITERS_PATTERN = Pattern . compile ( STRING1 ) ; + private static final Pattern FILE_DELIMITERS_PATTERN = Pa...
Make Pattern s final
<nb> public class WebServerExtension extends Extension { @ override public Status getStatus ( ) { - return Status . EXPERIMENTAL ; + return Status . BETA ; } @ override
Change webserver ext status to beta
<nb> public class AppSecurityPermissions { int existingReqFlags ) { final int base = pInfo . protectionLevel & PermissionInfo . PROTECTION_MASK_BASE ; final boolean isNormal = ( base == PermissionInfo . PROTECTION_NORMAL ) ; + + SINGLE + if ( isNormal ) { + return false ; + } + final boolean isDange...
Do not show normal permissions in sideloading UI
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public class Navigator { + @ inject public void Navigator ( ) { SINGLE }
Make navigator injectable
<nb> public abstract class NanoHTTPD { FORBIDDEN ( NUMBER0 , STRING0 ) , NOT_FOUND ( NUMBER1 , STRING1 ) , METHOD_NOT_ALLOWED ( NUMBER2 , STRING2 ) , + NOT_ACCEPTABLE ( NUMBER3 , STRING3 ) , REQUEST_TIMEOUT ( NUMBER4 , STRING4 ) , + CONFLICT ( NUMBER5 , STRING5 ) , RANGE_NOT_SATISFIABLE ( NUMBER6 , STRING...
Added some HTTP status codes
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ;...
implements DomModel T
<nb> public class AccessTransformer implements IClassTransformer public byte [ ] transform ( String name , String transformedName , byte [ ] bytes ) { if ( bytes == null ) { return null ; } - boolean makeAllPublic = FMLDeobfuscatingRemapper . INSTANCE . isRemappedClass ( name ) || ! name . contains ( STRING0 ) ...
Fix up derp in access transformer
<nb> public class AnalysisReportDaoTest { session . commit ( ) ; db . assertDbUnit ( getClass ( ) , STRING0 , STRING1 ) ; + SINGLE + assertThat ( report1 . getId ( ) ) . isNotNull ( ) ; + assertThat ( report2 . getId ( ) ) . isNotNull ( ) ; } @ test
Computation add some tests and filter ComputationStep by project qualifier
<nb> public class HttpSession extends LocalClientSession { } private void closeSession ( ) { - synchronized ( this ) { - if ( isClosed ) { return ; } - isClosed = true ; - } + if ( isClosed ) { return ; } + isClosed = true ; SINGLE synchronized ( connectionQueue ) {
Avoid deadlock between session reaper and BOSH terminate request
<nb> public class OClientConnection { database = null ; } + + if ( protocol != null ) + protocol . sendShutdown ( ) ; } COMMENT
Fixed issue on shutdown while a parallel query is running
<nb> public class Sequence COMMENT public Sequence ( ) { - setOrdered ( - NUMBER0 ) ; + this ( - NUMBER1 ) ; } COMMENT <nb> public class Sequence COMMENT public Sequence ( final long initialValue ) { - setOrdered ( initialValue ) ; + unsafe . putOrderedLong ( paddedValue , valueOffset , init...
Fixed test error introduced by refactoring
<nb> class ErrorPageFilter extends AbstractConfigurableEmbeddedServletContainer imple rethrow ( ex ) ; return ; } + logger . error ( STRING0 , ex ) ; setErrorAttributes ( request , NUMBER0 , ex . getMessage ( ) ) ; request . setAttribute ( ERROR_EXCEPTION , ex ) ; request . setAttribute ( ERROR_EXCEPTION_...
Log exceptions in ErrorPageFilter
<nb> public class GesturesController extends GesturesAdapter { mZoomGestureMinSpan = TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , ZOOM_GESTURE_MIN_SPAN_DP , metrics ) ; - mSettings = new Settings ( context ) ; + mSettings = new Settings ( ) ; mStateController = new StateController ( mSettin...
Settings constructor cleanup
<nb> public class LayeredIcon implements Icon { } myWidth = maxX - minX ; myHeight = maxY - minY ; - myXShift = - minX ; - myYShift = - minY ; + + if ( myIcons . length > NUMBER0 ) { + myXShift = - minX ; + myYShift = - minY ; + } } public static Icon create ( final Icon backgroundIcon , final...
better icons for read write property functions
<nb> public class TestOperationSetTypingNotifications opSetTypingNotifs . addTypingNotificationsListener ( evtCollector ) ; fixture . testerAgent . sendTypingNotification ( - fixture . ourAccountID , TypingState . TYPING ) ; + fixture . ourUserID , TypingState . TYPING ) ; evtCollector . waitForEvent ( NU...
renamed some variables
<nb> public class OrderedSet < T > extends AbstractList < T > implements Set < T > , RandomAcce return myElements . toArray ( a ) ; } - public Object clone ( ) { - try { - OrderedSet < T > newSet = ( OrderedSet < T > ) super . clone ( ) ; - newSet . myHashSet . addAll ( myHashSet ) ; - newSet . myElemen...
Remove broken method clone
<nb> public abstract class GroovyNamedArgumentProvider { public static final StringTypeCondition TYPE_STRING = new StringTypeCondition ( CommonClassNames . JAVA_LANG_STRING ) ; public static final StringTypeCondition TYPE_MAP = new StringTypeCondition ( CommonClassNames . JAVA_UTIL_MAP ) ; public static final Str...
add completion for named arguments
<nb> public class ZeppelinServer extends Application { } private static void setupNotebookServer ( WebAppContext webapp , - ZeppelinConfiguration conf ) { + ZeppelinConfiguration conf ) { notebookWsServer = new NotebookServer ( ) ; String maxTextMessageSize = conf . getWebsocketMaxTextMessageSize ( ) ; ...
Fix duplicate CORS header problem
<nb> public class Astroboy2Test { @ after public void teardown ( ) { - SINGLE - SINGLE + RoboGuice . destroyInjector ( Robolectric . application ) ; } @ test <nb> public class RoboGuice { public static void destroyInjector ( Context context ) { getInjector ( context ) . getInstance ( ContextSc...
tear down the custom injector when done
<nb> import static NAMESPACE ; public class Node { - private static final int SLEEP_DURATION = NUMBER0 ; + private static final int THREAD_SLEEP_DURATION_MS = NUMBER0 ; public final NodeEngineImpl nodeEngine ; <nb> public class Node { logger . info ( STRING0 ) ; while ( state != NodeState . SHUT_D...
Rename SLEEP_DURATION to THREAD_SLEEP_DURATION_MS
<nb> public abstract class FragmentTuner { return false ; } - if ( mState . action == ACTION_OPEN_TREE ) { + if ( mState . action == ACTION_OPEN_TREE + || mState . action == ACTION_PICK_COPY_DESTINATION ) { SINGLE SINGLE SINGLE
Don t allow selection in copy dest picker
<nb> public class SimpleUserdefEmoticonsKeyBoard extends XhsEmoticonsKeyBoard { } @ override + public void OnSoftClose ( ) { + super . OnSoftClose ( ) ; + if ( mLyKvml . getCurrentFuncKey ( ) == FUNC_TYPE_APPPS ) { + setFuncViewHeight ( EmoticonsKeyboardUtils . dip2px ( getContext ( ) , APPS_HEIGHT ) ) ; ...
fix a demo bug that can t auto fix height when the softkeyboard close
<nb> public class PostfixTemplateLookupActionProvider implements LookupActionProvider if ( element instanceof PostfixTemplateLookupElement ) { final PostfixTemplate template = ( ( PostfixTemplateLookupElement ) element ) . getPostfixTemplate ( ) ; - consumer . consume ( new LookupElementAction ( PlatformIcons ....
rename Edit postfix templates settings action
<nb> public static Object macroexpand1 ( Object x ) throws Exception { else { SINGLE - int idx = sname . indexOf ( STRING0 ) ; - if ( idx > NUMBER0 && idx < sname . length ( ) - NUMBER1 && idx == sname . lastIndexOf ( STRING0 ) ) + SINGLE + int idx = sname . lastIndexOf ( STRING0 ) ; + if ( idx > NUMBER...
added support for package qualified classnames in symbol dot macroexpansion
<nb> public class EditAccountActivity extends XmppActivity { xmppConnectionService . getKnownHosts ( ) ) ; this . xmppConnectionService . setOnAccountListChangedListener ( this . mOnAccountUpdateListener ) ; - this . mAccountJid . setAdapter ( null ) ; if ( this . jidToEdit != null ) { this . mAccount = xmp...
fixed lint error
<nb> public final class NetUtil { } } catch ( SocketException e ) { SINGLE - logger . error ( STRING0 , e ) ; + logger . warn ( STRING0 , e ) ; } }
Fix incorrect log level in NetUtil
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class ExternalNode implements Closeable { private final String clusterName ; private TransportClient client...
Tests add a debug logging message when starting an external node
<nb> public class DefaultServlet extends HttpServlet implements HttpHandler { } int ext = lastSegment . lastIndexOf ( STRING0 ) ; if ( ext == - NUMBER0 ) { - return defaultAllowed ; + SINGLE + return true ; } final String extension = lastSegment . substring ( ext + NUMBER0 , lastSegment . length ( ) ) ;...
Fix isAllowed issue that was stopping welcome pages from working
<nb> public class GradientDrawable extends Drawable { } } else { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE float rad = st . mRadius ; + float r = Math . min ( mRect . width ( ) , mRect . height ( ) ) * FLOAT0 ; + if ( rad > r ) { + rad = r ; + } canvas . drawRoundRect ( mRect , rad , rad ...
if we have a single value for roundrect radius manually clamp it before drawing
<nb> public enum PointInImport { NONE , COMMENT - COMMENT + COMMENT + COMMENT COMMENT AS_MODULE , COMMENT - COMMENT + COMMENT + COMMENT COMMENT AS_NAME } <nb> public class ResolveImportUtil { COMMENT COMMENT COMMENT + COMMENT COMMENT + @ notnull public static PointInImpor...
Improve javadoc for PointInImport and clean up a bit in ResolveImportUtil
<nb> public class SettingsProvider extends ContentProvider { } private void dumpSettings ( Cursor cursor , PrintWriter pw ) { - if ( ! cursor . moveToFirst ( ) ) { + if ( cursor == null || ! cursor . moveToFirst ( ) ) { return ; }
Fixed NPE when dumpSettings is called with a null cursor
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve record . value = Boolean . toString ( node . isRouting ( ) ) ; records . add ( record ) ; + record = new OpenHABConfigurationRecord ( domain , STRING0 , STRING0 , true ) ; + record . value = Boolean . toString ( node . isDe...
Add DEAD status indicator
<nb> public class HttpRequest { return this ; if ( multipart ) output . write ( STRING0 + BOUNDARY + STRING1 ) ; + output . flush ( ) ; output . close ( ) ; output = null ; return this ;
Don t ignore flush exceptions on close
<nb> public class MapActivityActions implements DialogProvider { } ) . reg ( ) ; optionsMenuHelper . item ( R . string . settings_activity ) - . icons ( R . drawable . ic_action_settings_dark , R . drawable . ic_action_settings_light ) + . icons ( R . drawable . ic_action_settings_light , R . drawable . ic_ac...
FIxed settings icon at Drawer
<nb> public class FileDisplayActivity extends SherlockFragmentActivity implements } popDirname ( ) ; mFileList . onNavigateUp ( ) ; + mCurrentDir = mFileList . getCurrentFile ( ) ; } @ override <nb> public class FileDisplayActivity extends SherlockFragmentActivity implements if ( ! mCurrentDir . isDir...
Rotating screen after viewing a file would return you to the
<nb> public final class ManageRegisteredServicesMultiActionController { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class RootCasException extends Exception { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public final Strin...
Fixed javadoc issues with tags and links
<nb> public class SqlStageExecution else if ( any ( taskStates , equalTo ( TaskState . ABORTED ) ) ) { SINGLE stageState . set ( StageState . FAILED ) ; - failureCauses . add ( new PrestoException ( StandardErrorCode . INTERNAL_ERROR , STRING0 + stageState ) ) ; + failureCauses . add ( new PrestoException ( S...
Fix error message in SqlStageExecution
<nb> public class ECKey implements EncryptableItem , Serializable { } } ; - COMMENT - public static final X9ECParameters CURVE_PARAMS = CustomNamedCurves . getByName ( STRING0 ) ; + SINGLE + private static final X9ECParameters CURVE_PARAMS = CustomNamedCurves . getByName ( STRING0 ) ; COMMENT public...
Restrict access to ECKey CURVE_PARAMS
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; @ runwith ( WithTestDefaultsRunner . class ) public class MapActivityTest { - @ before - public void setUp ...
Removed another unneeded test setup
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + impo...
Add tests for JsonPropertyDescription value
<nb> public class JavaTextArea extends JEditTextArea { suggestionRunning = false ; if ( suggestionRequested ) { Messages . log ( STRING0 ) ; - hideSuggestion ( ) ; fetchPhrase ( ) ; return ; } <nb> public class JavaTextArea extends JEditTextArea { COMMENT COMMENT protected void showSuggestion ( De...
Make suggestion window flicker little bit less
<nb> public class PreciseDurationField extends BaseDurationField { return ( minuendInstant - subtrahendInstant ) / iUnitMillis ; } + SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public boolean equals ( Object obj ) { + if ( this == obj ) { + return true ; ...
Add equals hashCode
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; COMMENT COMMENT <nb> public class LruBitmapCache implements CacheManager { } private void reset ( ) ...
improved lru reset
<nb> public class BuildSourceBuilder { PersistentCache createCache ( StartParameter startParameter ) { return cacheRepository . - cache ( STRING0 + DefaultFileLockManager . PROTOCOL_VERSION ) . SINGLE + SINGLE + cache ( STRING0 + DefaultFileLockManager . PROTOCOL_VERSION ) . withLockMode ( FileLockManager...
Changed TODO so that checkstyle is happy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SelectWordHandler extends EditorActionHandler { } } - while ( element instanceof PsiWhiteSpace ) { + while ( element ...
ctrl w before groovy method should select it like in java
<nb> public abstract class DefaultDeserializationContext } } } + if ( resolver == null ) { resolver = resolverType . newForDeserialization ( this ) ; + SINGLE + if ( resolverType instanceof SimpleObjectIdResolver ) { + resolver = new SimpleObjectIdResolver ( ) ; + } _objectIdResolvers . add ( reso...
create a new instance of
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LuceneSessionFactoryImpl implements LuceneSessionFactory { @ nullable private volatile LuceneSearcher searcher ; - ExecutorService se...
Removed unnecessary field
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class UsageInfoToUsageConverter { @ notnull private static List < SmartPsiElementPointer < PsiElement > > convertToSmartPointers ( @ notnull PsiElement [ ] primaryElements ) { ...
optimize getInstance for big collections
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IndexTask extends AbstractFixedIntervalTask inputRow ) ; collector . add ( - hashFunction . hashBytes ( HadoopDruidInde...
Avoid the Hadoop objectMapper in the local IndexTask
<nb> public class SwitchCompat extends CompoundButton { SINGLE checked = isChecked ( ) ; - if ( getWindowToken ( ) != null && ViewCompat . isLaidOut ( this ) ) { + if ( getWindowToken ( ) != null && ViewCompat . isLaidOut ( this ) && isShown ( ) ) { animateThumbToCheckedState ( checked ) ; } else { SING...
Fix SwitchCompat animating while not visible
<nb> public class ReliabilityTest extends ActivityInstrumentationTestCase2 < Reliabilit SINGLE SINGLE while ( ( url = listReader . readLine ( ) ) != null ) { + url = url . trim ( ) ; + if ( url . length ( ) == NUMBER0 ) + continue ; start = System . currentTimeMillis ( ) ; Log . v ( LOGTAG , STRING0 + u...
Skip empty lines in test url list
<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito @ override public Target resolve ( MethodDescription . InDefinedShape instrumentedMethod , Context context ) { if ( ! readOnly && ! instrumentedMethod . getReturnType ( ) . asErasure ( ) . equals ( targetType ) ) { - throw...
Fix exception message
<nb> public class IndexDatabase { startuid ) ; } } - SINGLE + SINGLE int file_cnt = NUMBER0 ; if ( RuntimeEnvironment . getInstance ( ) . isPrintProgress ( ) ) { log . log ( Level . INFO , STRING0 , dir ) ;
fix the comment
<nb> public final class ParallelEvaluator implements Evaluator { errorEntry ) ; break ; } + Preconditions . checkNotNull ( parentEntry , STRING0 , errorKey , parent ) ; errorKey = parent ; SkyFunction factory = skyFunctions . get ( parent . functionName ( ) ) ; if ( parentEntry . isDirty ( ) ) {
Add sanity check in bubbleErrorUp that the parentEntry is non null iff the parent is non null
<nb> public class FirstWizardPage } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public Object getSimpleForm ( ) { <nb> public interface OperationSetAvatar extends OperationSet COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT public byte [ ] getAvatar ( ) ;
Fix javadoc warnings
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT <nb> import NAMESPACE ; public class GrowlNotificationActivator implements BundleActivator { - private static Logger logger = + private static final Logger logger = Logger . getLogger ( GrowlNotificationActivator . clas...
Removes an unnecessary field from GrowlNotificationActivator
<nb> public class TrustedAuthorities { STRING0 , STRING1 , STRING2 , - STRING3 , + STRING4 , STRING5 , STRING6 , STRING7 ,
switch out turtles for longclaw
<nb> public class JsonResponse < T > { for ( NewCookie nc : cookies ) r . cookie ( nc ) ; } + r . header ( STRING0 , STRING1 ) + . header ( STRING2 , STRING3 ) + . header ( STRING4 , STRING5 ) + . header ( STRING6 , STRING7 ) ; return r . build ( ) ; } }
add Access Control Allow Origin
<nb> public abstract class AbstractByteBufferedInputChannel < T extends Record > extends releasedConsumedReadBuffer ( ) ; } + SINGLE + synchronized ( this . synchronisationObject ) { + if ( ! this . brokerAggreedToCloseChannel ) { + while ( ! this . brokerAggreedToCloseChannel ) { + + requestReadBuffe...
Fixed bug in byte buffered input channel with prevented unconsumed channel from closing
<nb> public class LegacyEditorFragment extends EditorFragmentAbstract implements Text thumbnailBitmap = ImageUtils . getWPImageSpanThumbnailFromFilePath ( context , imageUri . getEncodedPath ( ) , ImageUtils . getMaximumThumbnailWidthForEditor ( context ) ) ; if ( thumbnailBitmap == null ) { - return null ; +...
Use a placeholder image when thumbnail can t be decoded
<nb> public class TagsGet extends ActivitiCycleWebScript { COMMENT private Map < String , String > getTagsByArtifact ( String connectorId , String artifactId ) { Map < String , String > tags = new HashMap < String , String > ( ) ; - for ( RepositoryNodeTag repositoryNodeTag : this . cycleService . getTagsForNod...
adjusted refactored method name in REST module
<nb> public class WaypointHelper { if ( type == WAYPOINTS ) { getVoiceRouter ( ) . approachWaypoint ( lastKnownLocation , approachPoints ) ; } else if ( type == POI ) { - getVoiceRouter ( ) . approachPoi ( lastKnownLocation , announcePoints ) ; + getVoiceRouter ( ) . approachPoi ( lastKnownLocation , approach...
Sherpafy announce points hotfix
<nb> public class ProjectConfigurable extends ProjectStructureElementConfigurable < Pro @ override @ suppresswarnings ( { STRING0 } ) public boolean isModified ( ) { - if ( ! LanguageLevelProjectExtension . getInstance ( myProject ) . getLanguageLevel ( ) . equals ( myLanguageLevelCombo . getSelectedLevel ( ) )...
detect change language level to default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class DjangoManageTestTask extends PyExecutionFixtureTestTask { RunManager . getInstance ( project ) . createRunConfigurat...
do not add already presented path to sys path
<nb> public abstract class BaseJavaMigration extends BaseMigration { transactionTemplate . execute ( new TransactionCallback ( ) { @ override public Void doInTransaction ( TransactionStatus status ) { - doMigrateInTransaction ( jdbcTemplate , dbSupport ) ; + doMigrateInTransaction ( jdbcTemplate ) ; return ...
Removed DbSupport argument from BaseJavaMigration doMigrateInTransaction
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HttpRequestTest extends ServerTestCase { } COMMENT + COMMENT + COMMENT + @ test + public void verifierAccepts ( ) { + HttpRequest request = get ( STR...
Add test of trusted hostname verifier
<nb> public class CompileModuleChunkTarget extends CompositeGenerator { final Tag srcTag = new Tag ( STRING0 , Pair . create ( STRING1 , BuildProperties . getTestSourcepathProperty ( moduleChunkName ) ) ) ; final Tag testClassPath = new Tag ( STRING2 ) ; testClassPath . add ( new Tag ( STRING3 , classpathRef ) ) ...
fixed bug in classpath generation for the test compilation task
<nb> public class SimulateDocumentSimpleResult implements SimulateDocumentResult < Simu Exception exception = in . readThrowable ( ) ; return new SimulateDocumentSimpleResult ( exception ) ; } - return new SimulateDocumentSimpleResult ( WriteableIngestDocument . readWriteableIngestDocumentFrom ( in ) ) ; + re...
fix compile errors
<nb> public class LiquidStack return liquidstack . itemID == NUMBER0 ? null : liquidstack ; } - @ sideonly ( CLIENT ) private String textureSheet = STRING0 ; COMMENT
Remove unneeded SideOnly
<nb> public class HeaderBroadcasterCache extends AbstractBroadcasterCache { return Collections . emptyList ( ) ; } - long cacheHeaderTime = Long . valueOf ( cacheHeader ) ; + long cacheHeaderTime = NUMBER0 ; + if ( ! cacheHeader . isEmpty ( ) ) { + cacheHeaderTime = Long . valueOf ( cacheHeader ) ; + } ...
Prevent bogus client to produce exception
<nb> public class HashImpl implements Hash { if ( this == o ) return true ; if ( o == null || getClass ( ) != o . getClass ( ) ) return false ; HashImpl that = ( HashImpl ) o ; - return ( myHashCode == that . myHashCode && asString ( ) . equals ( that . asString ( ) ) ) ; + return myHashCode == that . myHashC...
log Fix HashImpl equals
<nb> public class FoldersImportingTest extends MavenImportingTestCase { createStdProjectFolders ( ) ; createProjectSubDirs ( STRING0 , STRING1 , - STRING2 , + STRING3 , STRING4 ) ; importProject ( STRING5 + <nb> public class FoldersImportingTest extends MavenImportingTestCase { STRING6 , STRING7 ,...
Fix Maven test
<nb> public class ReformatCodeProcessor extends AbstractLayoutCodeProcessor { } CaretVisualPositionKeeper caretPositionKeeper = new CaretVisualPositionKeeper ( document ) ; - CodeStyleManager . getInstance ( myProject ) . reformatText ( file , ranges ) ; + + if ( processChangedTextOnly ) { + CodeStyleMana...
Bind reformatWithContext on Reformat VCS changed text
<nb> public class WXPerformance { quotas . put ( STRING0 , ( double ) templateLoadTime ) ; quotas . put ( STRING1 , ( double ) WXEnvironment . sSDKInitInvokeTime ) ; quotas . put ( STRING2 , ( double ) WXEnvironment . sSDKInitExecuteTime ) ; + quotas . put ( STRING3 , ( double ) firstScreenCreateInstanceTime ) ...
android add firstScreenJSFExecuteTime ut
<nb> public class Frame extends Lockable < Frame > { @ override public byte priority ( ) { return H2O . MIN_HI_PRIORITY ; } @ override public void compute2 ( ) { Value v = DKV . get ( k ) ; - if ( v == null ) System . err . println ( STRING0 + k ) ; + if ( v == null ) Log . err ( STRING0 + k ) ; vecs [ ii ]...
change System err println to Log err so python tests will find the message
<nb> public abstract class CamelBlueprintTestSupport extends CamelTestSupport { SINGLE SINGLE - log . debug ( STRING0 , context . getName ( ) ) ; + log . debug ( STRING1 , context . getName ( ) ) ; context . start ( ) ; }
Fix Typo in CamelBlueprintTestSupport
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MediaRouteControllerDialog extends AlertDialog { int dialogWidth = displayMetrics . widthPixels < displayMetrics . heightPixe...
Fix incorrect use of measure
<nb> public class Join < ModelClass extends Model , FromClass extends Model > implements . appendSpace ( ) . append ( on . getQuery ( ) ) . appendSpace ( ) ; - } else if ( using != null ) { + } else if ( ! using . isEmpty ( ) ) { queryBuilder . append ( STRING0 ) . appendArray ( using ) . append ( STRIN...
fix join statement
<nb> public class SnackBar extends Dialog { View view ; ButtonFlat button ; - int backgroundSnackBar = Color . parseColor ( STRING0 ) ; + int backgroundSnackBar = Color . parseColor ( STRING1 ) ; int backgroundButton = Color . parseColor ( STRING2 ) ; OnHideListener onHideListener ; <nb> public class ...
Fix SnackBar Crash
<nb> import NAMESPACE ; public class Point { @ getter @ setter - private static double longitude ; + private double longitude ; @ getter @ setter - private static double latitude ; + private double latitude ; public Point ( double latitude , double longitude ) { this . latitude = latitude ;
Fix incorrect static statements on point
<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara new MarkPrefixFunction ( NUMBER0 ) ) ) ; - SINGLE + SINGLE annotations . put ( STRING0 , new Pair ( STRING1 , new SimpleStringFunction ( STRING2 ) ) ) ; annotations . put ( STRING3 , new Pair ( STRING4 , <nb> public ...
Remove poor annotations
<nb> public final class CommandEnvironment { } COMMENT - COMMENT - COMMENT - COMMENT - public Path getServerDirectory ( ) { - return getOutputBase ( ) . getChild ( STRING0 ) ; - } - - COMMENT COMMENT COMMENT COMMENT
Remove unused method
<nb> public abstract class CharMatcher implements Predicate < Character > { static CharMatcher inRange ( final char startInclusive , final char endInclusive , String description ) { - char [ ] chars = new char [ endInclusive - startInclusive + NUMBER0 ] ; - for ( int i = startInclusive ; i <= endInclusive ; i...
Remove unused char instance in CharMatcher inRange
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class CasLoggerContextInitializer implements ServletContextAware { private ServletContextListener prepareAndgetContextListener ( ) { try { i...
fixed merge issue
<nb> public class DeepLearningV3 extends ModelBuilderSchema < DeepLearning , DeepLearning STRING0 , STRING1 , SINGLE - STRING2 , - STRING3 , - STRING4 + SINGLE + SINGLE + SINGLE } ; COMMENT <nb> public class DeepLearningV3 extends ModelBuilderSchema < DeepLearning , DeepLearning SINGLE SIN...
Remove parameter for elastic averaging for now
<nb> public class MemberImpl implements Member , java . io . Externalizable { COMMENT COMMENT public static final boolean DO_DNS_LOOKUPS = Boolean . parseBoolean ( System . getProperty ( STRING0 , STRING1 ) ) ; + COMMENT - COMMENT + COMMENT COMMENT + @ deprecated public static final transient String...
Deprecate unused code
<nb> public class ToggleDistractionFreeModeAction extends DumbAwareAction { p . setValue ( before + STRING0 , valueOf ( eo . ARE_LINE_NUMBERS_SHOWN ) ) ; eo . ARE_LINE_NUMBERS_SHOWN = p . getBoolean ( after + STRING0 , value ) ; p . setValue ( before + STRING1 , valueOf ( eo . IS_RIGHT_MARGIN_SHOWN ) ) ; eo . IS_RI...
hide breadcrumbs in DFM
<nb> public class XMPPServer { loadModule ( IQOfflineMessagesHandler . class . getName ( ) ) ; loadModule ( MultiUserChatServerImpl . class . getName ( ) ) ; loadModule ( MulticastDNSService . class . getName ( ) ) ; + loadModule ( IQSharedGroupHandler . class . getName ( ) ) ; SINGLE SINGLE loadModule ( ...
Added IQSharedGroupHandler module
<nb> package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT - public interface ISidedInventory { + public interface ISidedInventory extends IInventory { - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface ISidedInventory { COMMENT int getStartI...
ISidedInventory is now explicitely an inventory
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public class EntityScanner { COMMENT
deprecate EntityScanner as it literally does nothing
<nb> public class XHTMLExtensionProvider implements PacketExtensionProvider { throws Exception { XHTMLExtension xhtmlExtension = new XHTMLExtension ( ) ; boolean done = false ; - StringBuffer buffer = null ; + StringBuffer buffer = new StringBuffer ( ) ; ; while ( ! done ) { int eventType = parser . next ...
Fixed possible NPE when parsing invalid XHTML text
<nb> public class HandleMetaClass extends DelegatingMetaClass { } public boolean equals ( Object obj ) { - return super . equals ( obj ) || getAdaptee ( ) . equals ( obj ) ; + return super . equals ( obj ) || getAdaptee ( ) . equals ( obj ) || ( obj instanceof HandleMetaClass && equals ( ( ( HandleMetaClass )...
Better equals for HandleMetaClass
<nb> public class ConnectivityService extends IConnectivityManager . Stub { ! network . isTeardownRequested ( ) ) { if ( ni . isConnected ( ) == true ) { SINGLE - handleDnsConfigurationChange ( networkType ) ; + handleDnsConfigurationChange ( usedNetworkType ) ; if ( DBG ) log ( STRING0 ) ; return Phone ....
Fix networktype on per process DNS setting
<nb> public abstract class AbstractZipalignMojo extends AbstractAndroidMojo { COMMENT protected void zipalign ( ) throws MojoExecutionException { - SINGLE + SINGLE + SINGLE if ( ! SUPPORTED_PACKAGING_TYPES . contains ( project . getPackaging ( ) ) ) { getLog ( ) . info ( STRING0 + project . getPackaging...
Add issue reference
<nb> public class KeyguardHostView extends KeyguardViewBase { KeyguardWidgetFrame frame = mAppWidgetContainer . getWidgetPageAt ( i ) ; frame . removeAllViews ( ) ; } - getSecurityContainer ( ) . onPause ( ) ; SINGLE + mSecurityViewContainer . onPause ( ) ; SINGLE } COMMENT
Fix the build
<nb> public enum BlockType { SINGLE SINGLE addIdentity ( BlockID . PISTON_BASE ) ; - nonDataBlockBagItems . put ( BlockID . PISTON_EXTENSION , doNotDestroy ) ; SINGLE + SINGLE addIdentities ( BlockID . CLOTH , NUMBER0 ) ; SINGLE - nonDataBlockBagItems . put ( BlockID . PISTON_MOVING_PIECE , doNotDestroy )...
Piston extension and moving piece now put nothing into the blockbag
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + @ ignore public class TestApplication extends Application { } <nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + @ ignore public class TestOnClickListener implements View . OnClickListener { publ...
Ignore in non test classes
<nb> public class MultiMatchQueryIT extends ESIntegTestCase { public List < String > fillRandom ( List < String > list , int times ) { for ( int i = NUMBER0 ; i < times ; i ++ ) { - list . add ( randomRealisticUnicodeOfCodepointLengthBetween ( NUMBER1 , NUMBER2 ) ) ; + list . add ( randomAsciiOfLengthBetween ...
TEST use random ascii instead of random unicode