diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OneHandler public static void main ( String [ ] args ) throws Exception { Server server = new Server ( NUMBER0 ) ; - server . getConnectors ( ) [ NUMBER1 ] . getConnectionFactory ( HttpConnectio...
Removing HttpCompliance from example
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + + import NAMESPACE ; COMMENT COMMENT <nb> im...
Set Dandelion active profile to prod when Spring production profile is enabled
<nb> public interface KeyValueFileReader extends Closeable { COMMENT ByteBuffer get ( ByteBuffer key ) throws IOException , TachyonException ; - COMMENT COMMENT COMMENT <nb> public final class KeyValueStore { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> publ...
Make stylechecker happy
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class TestStandardSession extends TomcatBaseTest { + public class TestStandardSessionIntegration extends TomcatBaseTest { COMMENT COMMENT
Rename test to make way for a genuine unit test
<nb> public class ApplicationServerTypeResolver { } Map < String , ServerTypeDetector > registeredDetectors = getRegisteredServerTypeDetectors ( plugins ) ; for ( String orderedDetector : orderedDetectors ) { - if ( registeredDetectors . containsKey ( orderedDetector ) ) ; - this . detectors . add ( registere...
fixed a bug regarding missing conditional check
<nb> public class DriverBroadcastReceiver { errorHeader . wrap ( buffer , index ) ; final ErrorCode errorCode = errorHeader . errorCode ( ) ; - - switch ( errorCode ) + if ( activeCorrelationId == correlationId ( buffer , errorHeader . offendingHeaderOffset ( ) ) ) { - SINGLE - case PUBLICATION_STREAM...
simplify error handling code now all control protocol messages have correlation ids
<nb> public class PartialDimExtractionFn implements DimExtractionFn @ override public String apply ( String dimValue ) { + if ( dimValue == null ) return null ; Matcher matcher = pattern . matcher ( dimValue ) ; return matcher . find ( ) ? dimValue : null ; } <nb> public class PartialDimExtractionFnTest...
Fix NullPointerException in PartialDimExtractionFn by explicity checking for dimValue null
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - class SecretContentJooqDao { + public class SecretContentJooqDao { private final DSLContext dslContext ; private final ObjectMapper mapper = KeywhizService . customizeObjectMapper ( Jackson . newObjectMapper ( ) ) ; <nb> import static NAMESPACE ...
Exposes Dao classes to ServiceModule
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - public interface ContextAwareTaskAction extends Action < Task > , ClassLoaderAwareTaskAction { + public interface ContextAwareTaskAction extends ClassLoaderAwareTaskAction { void contextualise ( TaskExecutionContext context ) ; }
Remove unnecessary extended interface
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ODatabaseExport extends ODatabaseImpExpAbstract { throws IOException { super ( iDatabase , iFileName , iListener ) ; + final File f = new File ( fileName ) ; + if ( ...
Created output file s directory structure if not exists
<nb> public class JavacHandlerUtil { SINGLE return ; } - parentNode . removeChild ( annotation ) ; JCCompilationUnit unit = ( JCCompilationUnit ) annotation . top ( ) . get ( ) ; deleteImportFromCompilationUnit ( unit , annotationType . getName ( ) ) ;
In our efforts to eliminate annotations for delombok we also eliminated all traces of the annotation for lombok itself
<nb> public final class Es6TypedIntegrationTest extends IntegrationTestCase { TypeValidator . TYPE_MISMATCH_WARNING ) ; } + public void testClassGetterSetter ( ) throws Exception { + CompilerOptions co = createCompilerOptions ( ) ; + co . setPropertyRenaming ( PropertyRenamingPolicy . OFF ) ; + test ( co ...
added ClassGetterSetter test case into Es6TypedIntegrationTest
<nb> public class BreakpointManager Set < FileFunction > functionsToBreak = new TreeSet < FileFunction > ( ) ; for ( Breakpoint breakpoint : breakpoints_ ) { - boolean processBreakpoint = isFile ? - breakpoint . isInFile ( path ) : - breakpoint . isInPath ( path ) ; + SINGLE + SINGLE + boolean process...
don t replay top level breakpoints when debug source finishes
<nb> public class SwipeOnScrollListener implements AbsListView . OnScrollListener { @ override public void onScroll ( AbsListView view , int firstVisibleItem , int visibleItemCount , int totalItemCount ) { } - } + }
add newline for github not to cry
<nb> public class EditPeopleControlSet extends PopupControlSet { user . label += STRING0 + user . user . optString ( STRING1 ) + STRING2 ; names . put ( name , null ) ; } - if ( ! TextUtils . isEmpty ( STRING1 ) ) + if ( ! TextUtils . isEmpty ( email ) ) atu . label += STRING0 + email + STRING2 ; - } else...
Fixed a minor bug in constructing people list
<nb> public class FilesList extends Composite @ override public int doCompare ( FileSystemItem arg0 , FileSystemItem arg1 ) { - return arg0 . getName ( ) . compareTo ( arg1 . getName ( ) ) ; + return arg0 . getName ( ) . compareToIgnoreCase ( arg1 . getName ( ) ) ; } } ) ;
make files pane name compares case insensitive
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PhoneWindowManager implements WindowManagerPolicy { mHeadless = STRING0 . e...
Enable new keyguard
<nb> import NAMESPACE ; COMMENT public class BroadcasterLifeCyclePolicy { + public final static BroadcasterLifeCyclePolicy IDLE = new BroadcasterLifeCyclePolicy ( ATMOSPHERE_RESOURCE_POLICY . IDLE ) ; + public final static BroadcasterLifeCyclePolicy IDLE_DESTROY = new BroadcasterLifeCyclePolicy ( ATMOSPHERE_R...
Add direct instance to make easier to use
<nb> public class GoBuildingRunner extends AsyncGenericProgramRunner { String configurationName = settings != null ? settings . getName ( ) : STRING0 ; if ( StringUtil . isEmpty ( outputDirectoryPath ) ) { try { - outputFile = FileUtil . createTempFile ( configurationName , STRING1 , true ) ; + outputFile = F...
Add exe suffix for building output file
<nb> public class Ride { COMMENT private Stats calcStatsForFreqs ( TimeWindow window ) { Stats stats = new Stats ( ) ; SINGLE - int n = NUMBER0 ; SINGLE + stats . num = NUMBER0 ; SINGLE for ( PatternRide patternRide : patternRides ) { for ( FrequencyEntry freq : patternRide . pattern . scheduledTimetable ...
set Stats num to total number of seconds in non exact frequency boardings
<nb> public class UpdatePuller implements Runnable , Lifecycle { if ( ! isActive ( ) ) { - throw new IllegalStateException ( STRING0 + this ) ; + throw new IllegalStateException ( this + STRING1 + this ) ; } Thread . sleep ( NUMBER0 ) ; <nb> public class UpdatePuller implements Runnable , Lifecycle ...
Includes more information about which update puller it is in the event of failure
<nb> class PersistentMultiMaplet < K , V > implements MultiMaplet < K , V > { @ override public void replace ( K key , Collection < V > value ) { try { - if ( value == null || value . isEmpty ( ) ) { + if ( value == null ) { myMap . remove ( key ) ; } else { <nb> class TransientMultiMaplet < K , V > i...
allow empty values
<nb> public class WrapperTest extends AbstractTaskTest { jarDir . mkdirs ( ) ; File wrapperJar = new File ( getProject ( ) . getProjectDir ( ) , targetWrapperJarPath ) ; System . out . println ( STRING0 + wrapperJar . getAbsolutePath ( ) ) ; + wrapperJar . getParentFile ( ) . mkdirs ( ) ; wrapperJar . createN...
attempt a fix for unit test on windows
<nb> public abstract class HttpSender implements AsyncContentProvider . Listener public boolean abort ( Throwable failure ) { RequestState current = requestState . get ( ) ; - boolean abortable = isBeforeCommit ( current ) || - isSending ( current ) && ! content . isLast ( ) ; + boolean abortable = isBefore...
Removed check on the HttpSender content field that could lead to
<nb> public class CompletionPopupPanel extends ThemedPopupPanel SINGLE SINGLE SINGLE - if ( list_ . getOffsetWidth ( ) > list_ . getElement ( ) . getClientWidth ( ) ) + if ( list_ != null && list_ . getOffsetWidth ( ) > list_ . getElement ( ) . getClientWidth ( ) ) list_ . setWidth ( list_ . getOffsetWidth ...
ensure not null
<nb> public class ODatabaseObjectTx extends ODatabaseWrapperAbstract < ODatabaseDocumen if ( pojo == null ) { try { pojo = entityManager . createPojo ( record . getClassName ( ) ) ; - OObjectSerializerHelper . fromStream ( record , pojo , getEntityManager ( ) , this ) ; - registerPojo ( pojo , record ) ; ...
Registered early the pojo created to avoid circular reference problems
<nb> public class MaxCulMsgHandler implements CULListener { case PAIR_PONG : new PairPongMsg ( data ) . printMessage ( ) ; break ; + case THERMOSTAT_STATE : + new ThermostatStateMsg ( data ) . printMessage ( ) ; + break ; + case SET_GROUP_ID : + new SetGroupIdMsg ( data ) . printMessage ( ) ; + break ...
Add newly implemented messages to listen mode
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class ActivityThread { SINGLE SINGLE if ( ! sharable ) { + final List < String > codePaths = new ArrayList < > ( ) ; ...
Pass app s code paths to the runtime
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Added license to Roman s code
<nb> public class RedirectDynamicMethod extends AbstractDynamicControllerMethod { GrailsApplicationAttributes attrs = helper . getGrailsAttributes ( ) ; if ( uri != null ) { - actualUri = uri . toString ( ) ; + actualUri = attrs . getApplicationUri ( request ) + uri . toString ( ) ; } else if ( url != nul...
fixed redirect method bug where context path was not included when redirecting to a uri
<nb> public class GradleDistributionExecuter extends AbstractGradleExecuter implement GradleExecuter returnedExecuter = inProcessGradleExecuter ; if ( EXECUTER != Executer . embedded || ! inProcessGradleExecuter . canExecute ( ) ) { - ForkingGradleExecuter forkingGradleExecuter = EXECUTER == Executer . daemon ?...
Fixed broken int test when using the daemon
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - interface ColumnMapper { + public interface ColumnMapper { public String getColumnName ( ) ;
Changing visibility of interface to public
<nb> public class DefaultComponentSpecIdentifier implements ComponentSpecIdentifier { DefaultComponentSpecIdentifier that = ( DefaultComponentSpecIdentifier ) o ; return name . equals ( that . name ) && projectPath . equals ( that . projectPath ) ; - } @ override
Remove unnecessary empty line
<nb> public class WebView extends AbsoluteLayout @ override public boolean onTouchEvent ( MotionEvent ev ) { - if ( mNativeClass == NUMBER0 || ! isClickable ( ) || ! isLongClickable ( ) ) { + if ( mNativeClass == NUMBER0 || ( ! isClickable ( ) && ! isLongClickable ( ) ) ) { return false ; }
Allow touch events when clickable or longClickable
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Modified axpression with arguments parsing
<nb> public class ExternalDocumentValidator { final String localizedMessage , final boolean warning ) { currentElement = PsiTreeUtil . getParentOfType ( currentElement , XmlTag . class , false ) ; + if ( currentElement == null ) { + currentElement = PsiTreeUtil . getParentOfType ( originalElement , XmlElement...
fixed xerces validation problem
<nb> public class SqlQueryQueueManager checkIsDAG ( this . rules ) ; } - private void checkIsDAG ( List < QueryQueueRule > rules ) + private static void checkIsDAG ( List < QueryQueueRule > rules ) { - DirectedPseudograph < String , DefaultEdge > graph = new DirectedPseudograph < String , DefaultEdge > ( ...
Fix warnings in SqlQueryQueueManager
<nb> public class SourceFormatter { SQLSourceProcessor . class . newInstance ( ) ) ; sourceProcessors . add ( TLDSourceProcessor . class . newInstance ( ) ) ; - sourceProcessors . add ( - XMLSourceProcessor . class . newInstance ( ) ) ; for ( SourceProcessor sourceProcessor : sourceProcessors ) { _runSo...
SourceFormatter Keep threads balanced
<nb> public class MhItemProvider implements ItemProvider , ItemUIProvider , ManagedServ COMMENT COMMENT @ override - public boolean containsBinding ( String itemName ) { + public boolean providesBindingFor ( String itemName ) { return MhtFileParser . allItems . contains ( itemName ) ; }
adapted MhItemProvider to changes in BindingProvider interface
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public final class WebInterfaceWorkersServlet extends HttpServlet { COMMENT public WebInterfaceWorkersServlet ( BlockMaster blockMaster ) { mBlockMaster = blockMaster ; -...
Fix check style
<nb> public class ZkSetup private final String password ; { - username = args [ NUMBER0 ] . split ( STRING0 ) [ NUMBER1 ] ; - password = args [ NUMBER0 ] . split ( STRING0 ) [ NUMBER2 ] ; + String [ ] splitArgs = args [ NUMBER0 ] . split ( STRING0 ) ; + username = splitArgs [ NUMBER1 ] ; + if ( splitArg...
Allow blank mysql passwords
<nb> import NAMESPACE ; public class PhotoViewAttacher implements View . OnTouchListener , VersionedGestureDetector . OnGestureListener , GestureDetector . OnDoubleTapListener , ViewTreeObserver . OnGlobalLayoutListener { - static final boolean DEBUG = true ; static final String LOG_TAG = STRING0 ; + + SI...
Remove log spamming without changing source hardcoded DEBUG flag and
<nb> public interface MustacheFactory { SINGLE Reader getReader ( String file ) ; - SINGLE - SINGLE - SINGLE + SINGLE + SINGLE void encode ( String value , Writer writer ) ; SINGLE
Fix a comment that was pulled over from the previous version
<nb> class UiModeManagerService extends IUiModeManager . Stub { } final void updateConfigurationLocked ( boolean sendIt ) { - int uiMode = NUMBER0 ; + int uiMode = Configuration . UI_MODE_TYPE_NORMAL ; if ( mCarModeEnabled ) { uiMode = Configuration . UI_MODE_TYPE_CAR ; } else if ( mDockState == Intent ...
Make desk mode work again
<nb> public abstract class ExploreByTouchHelper extends AccessibilityDelegateCompat { COMMENT private static final String DEFAULT_CLASS_NAME = STRING0 ; + COMMENT + private static final Rect INVALID_PARENT_BOUNDS = new Rect ( + Integer . MAX_VALUE , Integer . MAX_VALUE , Integer . MIN_VALUE , Integer . MIN_...
Only throw exception in EBT helper if parent bounds are untouched
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BasicVerificationInOrderTest extends TestBase { COMMENT - @ test ( expected = WantedButNotInvoked . class ) + @ test ( expected = Argume...
Fixed the test
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NewCoverageTest { orchestrator ....
Add NewCoverageTest in the suite
<nb> public class MavenDomElementDescriptorHolder { public Result < XmlNSDescriptorImpl > compute ( ) { return Result . create ( doCreateDescriptor ( kind ) , PsiModificationTracker . OUT_OF_CODE_BLOCK_MODIFICATION_COUNT ) ; } - } ) ; + } , false ) ; myDescriptorsMap . put ( kind , result ) ; } return r...
invalidate dom element descriptors on psi changes tests fixed
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class DeclarationCacheKey { } private class MyCollectProcessor extends ResolverProcessor { - final List < Pair < PsiElement , Resolv...
Migrate CollectionFactory to ContainerUtil
<nb> public class AtmosphereResponse extends HttpServletResponseWrapper { return new Builder ( ) . response ( response ) . build ( ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + public String uuid ( ) { + return uuid ; + } + @ override public String toString ( ) { return STRING0 +
Add a utility method for retrieving UUID
<nb> public class App extends Application { public void onCreate ( ) { super . onCreate ( ) ; PluginManager . init ( this ) ; - } }
Fix an serializable bug
<nb> public class ParticleEffectLoader extends SINGLE if ( ! resolve ( assetData . filename ) . exists ( ) ) { - if ( Gdx . app . getType ( ) == ApplicationType . WebGL ) - Gdx . app . error ( STRING0 , STRING1 + assetData . filename - + STRING2 + fileName + STRING3 ) ; - assetData . filename = file . par...
Fix handling of relative asset path to work the
<nb> public class ReaderPostDetailFragment extends Fragment txtTitle . setText ( mPost . hasTitle ( ) ? mPost . getTitle ( ) : getString ( R . string . reader_untitled_post ) ) ; if ( mIsLoggedOutReader ) { - followButton . setEnabled ( false ) ; + followButton . setVisibility ( View . GONE ) ; } else { f...
No follow buttons anywhere when logged out
<nb> public final class SerializingExecutor implements Executor { boolean stillRunning = true ; try { while ( true ) { - Preconditions . checkState ( isThreadScheduled ) ; Runnable nextToRun ; synchronized ( internalLock ) { + Preconditions . checkState ( isThreadScheduled ) ; nextToRun = waitQueue . po...
Hold lock while reading isThreadScheduled
<nb> public class PeopleUtils { } } catch ( JSONException e ) { - AppLog . e ( T . API , e ) ; + AppLog . e ( T . API , STRING0 + e ) ; } } }
Fixed the error message for json parsing error for sites users request
<nb> public interface ScriptPlugin extends Plugin < Object > { ScriptSource getSource ( ) ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT void apply ( Object target ) ; + }
Remove unneeded Javadoc
<nb> public class EnglishGrammaticalRelations { new String [ ] { STRING0 , STRING1 , - STRING2 , + SINGLE + STRING3 , STRING4 , STRING5 , SINGLE <nb> public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser SINGLE TregexMatcher m = p . matcher ( root , headFinder ) ; ...
Fix a tregex that had no target
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CeProcessingSchedulerImplMultiThreadTest { private ThreadNameRecordingCeWorkerCallable ceWorkerRunnable = new ThreadNameRecordingCeWorkerCall...
disable unstable CeProcessingSchedulerImplMultiThreadTest
<nb> public class TestClass { } private static < T > List < T > getAnnotatedMembers ( Map < Class < ? > , List < T > > map , - Class < ? extends Annotation > type , boolean canFill ) { - if ( ! map . containsKey ( type ) && canFill ) { + Class < ? extends Annotation > type , boolean fillIfAbsent ) { + if ...
renamed parameter to fillIfAbsent
<nb> public class DataFrameDispatcher implements DataFrameHandler , SetupFrameHandler { throw new UnknownSubscriptionException ( STRING0 + streamId ) ; } + + connectionBySessionIdMap . values ( ) . forEach ( ( connection ) - > connection . status ( DriverConnection . Status . INACTIVE ) ) ; } public voi...
Java Set connections inactive when a subscription is removed
<nb> public class HttpTestClient extends TestClientBase { } public void testConnectInvalidHost ( ) { + client . setConnectTimeout ( NUMBER0 ) ; client . exceptionHandler ( createNoConnectHandler ( ) ) ; client . setHost ( STRING0 ) ; client . getNow ( STRING1 , new Handler < HttpClientResponse > ( ) { <...
Set a connect timeout as otherwise it will wait to long on OSX
<nb> public abstract class ExternalRepository { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT void createCache ( ) throws Exception { - HistoryParser p = getDirectoryHistoryParser ( ) . newInstance ( ) ; + Class < ? extends HistoryParser > pClass = getDirectoryHistoryParser (...
Make createCache a no op for Teamware rather than throw
<nb> public class GarageDoorData { String deviceName = node . get ( i ) . get ( STRING0 ) . asText ( ) ; String deviceType = node . get ( i ) . get ( STRING1 ) . asText ( ) ; - if ( DEVICE_TYPE_PATTERN . matcher ( deviceType ) . matches ( ) ) { + if ( DEVICE_TYPE_PATTERN . matcher ( deviceType ) . find ( ) ) ...
Changed Regex To Find To support more garage door openers
<nb> public class PropertyIndexManager if ( index == null ) { TxCommitHook commitHook = txCommitHooks . get ( getTransaction ( ) ) ; - index = commitHook . getIndex ( keyId ) ; - if ( index != null ) + if ( commitHook != null ) { - return index ; + index = commitHook . getIndex ( keyId ) ; + if ( in...
Fixed NPE when no tx hook was registered
<nb> public class MasterFaultToleranceTest { for ( int kills = NUMBER0 ; kills < NUMBER1 ; kills ++ ) { Assert . assertTrue ( mLocalTachyonClusterMultiMaster . killLeader ( ) ) ; - CommonUtils . sleepMs ( null , NUMBER2 ) ; + CommonUtils . sleepMs ( null , Constants . SECOND_MS * NUMBER3 ) ; faultTestDataCh...
increase the waiting time in journal test
<nb> public class MessageHeader extends LinearLayout public boolean additionalHeadersVisible ( ) { - if ( mAdditionalHeadersView . getVisibility ( ) == View . VISIBLE ) + if ( mAdditionalHeadersView != null && mAdditionalHeadersView . getVisibility ( ) == View . VISIBLE ) { return true ; }
Add null check in header view to prevent NPE
<nb> public class TestDistributedQueries long start = System . nanoTime ( ) ; while ( ! allNodesGloballyVisible ( ) ) { - assertLessThan ( nanosSince ( start ) . compareTo ( new Duration ( NUMBER0 , SECONDS ) ) , NUMBER1 ) ; + assertLessThan ( nanosSince ( start ) , new Duration ( NUMBER0 , SECONDS ) ) ; MI...
Simplify duration test
<nb> COMMENT COMMENT COMMENT - COMMENT - + COMMENT + package NAMESPACE ; import NAMESPACE ; <nb> public class Ouya { public static final int BUTTON_U ; public static final int BUTTON_Y ; public static final int BUTTON_A ; + public static final int BUTTON_MENU ; public static final int BU...
Ouya gwt missing constants
<nb> public class PythonHighlightingTest extends DaemonAnalyzerTestCase { doTest ( ) ; } - public void testMethodParams ( ) throws Exception { + public void _testMethodParams ( ) throws Exception { doTest ( ) ; }
suppress test for now
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public static BigInteger power ( BigInteger self , BigInteger exponent ) { if ( ( exponent . signum ( ) >= NUMBER0 ) && ( exponent . compareTo ( BI_INT_MAX ) <= NUMBER0 ) ) {
Add a BigInteger power Biginteger method
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AggregatorRouteNumberOfProcessorTest extends ContextTestSupport { hasOut = newExchange . hasOut ( ) ; return newExchange ; } - } ) . batc...
Fixed unit test
<nb> public class ColumnIdentTest { ident = new ColumnIdent ( STRING0 , Collections . singletonList ( STRING1 ) ) ; assertThat ( ident . sqlFqn ( ) , is ( STRING2 ) ) ; + + ident = new ColumnIdent ( STRING3 , Collections . singletonList ( STRING4 ) ) ; + assertThat ( ident . sqlFqn ( ) , is ( STRING5 ) ) ; ...
ported additional column ident test to master
<nb> package NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ShadowLocation { SINGLE private float [ ] mResults = new float [ NUMBER0 ] ; + private Bundle extras = new Bundle ( ) ; + public void __construct...
Added implementation of getExtras and setExtras Bundle in ShadowLocation class
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT COMMENT COMMENT COMMENT
Added TOTO in Text class to use CharSequence insteaf of String
<nb> public class SQLSelectTest { } @ test + public void queryInAsParameter ( ) { + database . open ( STRING0 , STRING0 ) ; + + List < ODocument > roles = database . query ( new OSQLSynchQuery < Object > ( STRING1 ) ) ; + roles . remove ( NUMBER0 ) ; + + List < ODocument > result = database . comman...
Added test case to try if Collections are taken as parameter of query
<nb> public interface NeoService COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed some javadoc regarding the shell RMI name for the enableRemoteShell Map method
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TransportUpdateActionTest extends ElasticsearchIntegrationTest { COMMENT COMMENT @ test + @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) public void shouldReceiveUpdateResp...
TEST Temporarily ignore transport update tests
<nb> public class ActivityShare extends ActivityBase { SINGLE if ( ! mListUidSettings . contains ( uid ) ) { + SINGLE + if ( lastUid > NUMBER0 ) { + boolean restart = ! PrivacyManager . getRestartStates ( lastUid , null ) . equals ( mOldState ) ; + setState ( lastUid , STATE_SUCCESS , restart ? getString ...
Fix state when importing settings only
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU String base64Settings = stream . getCoyoteRequest ( ) . getHeader ( HTTP2_SETTINGS_HEADER ) ; byte [ ] settings = Base64 . decodeBase64 ( base64Settings ) ; - if ( settings . length % NUMBER0 != NUMBER1 ) { - SINGLE - SING...
Fix a TODO
<nb> public class Anomaly extends Job . FrameJob { public static DocGen . FieldDoc [ ] DOC_FIELDS ; public static final String DOC_GET = STRING0 ; - @ api ( help = STRING1 , filter = Default . class , json = true ) + @ api ( help = STRING1 , required = true , filter = Default . class , json = true ) public ...
Add a check that the DL model given to Anomaly detection app isn t NULL
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class LRUMemoryMapState < T > implements Snapshottable < T > , ITupleCollection { + public class LRUMemoryMapState < T > implements Snapshottable < T > , ITupleCollection , MapState < T > { LRUMemoryMapStateBacking < OpaqueValue > _bac...
converted LRUMemoryMapState to nathans refactored design
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class RestIndicesAction extends AbstractCatAction { table . addCell ( indexStats == null ? null : indexStats . getPrimaries ( ) . getDocs ( ) . getDeleted ( ) ) ; ta...
using default timezone explicitly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public abstract class RequestFilter extends FilterBase implements CometFilter { - SINGLE - - - COMMENT - COMMENT - COMMENT - protected static StringManager sm = ...
Remove unnecessary code
<nb> import NAMESPACE ; public class StatusBarService extends Service implements CommandQueue . Callbacks { static final String TAG = STRING0 ; - static final boolean SPEW = false ; + static final boolean SPEW = true ; public static final String ACTION_STATUSBAR_START = STRING1 ; <nb> public class Sta...
DO NOT MERGE Enable debug in StatusBarService
<nb> public final class ActivityManagerService extends ActivityManagerNative COMMENT COMMENT private ActivityManager . RecentTaskInfo createRecentTaskInfoFromTaskRecord ( TaskRecord tr ) { + SINGLE + tr . updateTaskDescription ( ) ; + + SINGLE ActivityManager . RecentTaskInfo rti = new ActivityManager...
Updating task description whenever we create a RecentTaskInfo
<nb> public abstract class AbstractCallPeer < T extends Call , { CallPeerListener listener = listeners . next ( ) ; + if ( logger . isDebugEnabled ( ) ) + logger . debug ( STRING0 + + listener . getClass ( ) + + STRING1 + evt . toString ( ) ) ; + SINGLE SINGLE try <nb> public abstract class Abst...
Adds debug messages
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JDBCMetaDataParser extends MetaData...
Fix checkstyle error
<nb> public abstract class LayoutInflater { mFactory = original . mFactory ; mFactory2 = original . mFactory2 ; mPrivateFactory = original . mPrivateFactory ; - mFilter = original . mFilter ; + setFilter ( original . mFilter ) ; } COMMENT
Fix LayoutInflater copy constructor logic
<nb> public final class NdefRecord implements Parcelable { } } catch ( FormatException e ) { } } else if ( Arrays . equals ( mType , RTD_URI ) ) { - return parseWktUri ( ) . normalizeScheme ( ) ; + Uri wktUri = parseWktUri ( ) ; + return ( wktUri != null ? wktUri . normalizeScheme ( ) : null ) ; } break...
Fix NPE in NdefRecord parser
<nb> public class CallJabberImpl COMMENT public CallPeerJabberImpl processSessionInitiate ( JingleIQ jingleIQ ) { - String remoteParty = jingleIQ . getInitiator ( ) ; + SINGLE + SINGLE + SINGLE + String remoteParty = jingleIQ . getFrom ( ) ; + boolean autoAnswer = false ; CallPeerJabberImpl attend...
Ignore the jingle initiator field in session initiate messages and use the IQs from field instead
<nb> final class ActivityStack { STRING0 + task . taskId + STRING1 + STRING2 + task . mFullscreen + STRING1 + STRING3 + task . mBounds + STRING1 + + STRING4 + task . mMinimalWidth + STRING1 + + STRING5 + task . mMinimalHeight + STRING1 + STRING6 + task . mLastNonFullscreenBounds ) ; if ( printed ) { hea...
Add minimal width and height logging to AM dump
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class MaxNumberFromTwoArray { public int [ ] maxNumber ( int ...
add comments in max number
<nb> public class TestShellActivity extends Activity implements LayoutTestController SINGLE SINGLE settings . setProperty ( STRING0 , STRING1 ) ; - settings . setProperty ( WebViewProperties . gfxUseMinimalMemory , STRING2 ) ; + settings . setProperty ( STRING3 , STRING2 ) ; } private WebView mWebView ;
use hard coded WebViewProperties gfxUseMinimalMemory
<nb> public class MinimalServlets { public static void main ( String [ ] args ) throws Exception { + SINGLE + SINGLE + SINGLE Server server = new Server ( NUMBER0 ) ; + + SINGLE + SINGLE ServletHandler handler = new ServletHandler ( ) ; server . setHandler ( handler ) ; + SINGLE + SINGLE ...
Add comments to embedded MinimalServlets example
<nb> public class MySiteFragment extends Fragment scrollView . smoothScrollTo ( NUMBER0 , NUMBER0 ) ; } } - - @ override - public void onMediaAdded ( String mediaId ) { - } }
Removing unused override
<nb> public class CodeInsightTestFixtureImpl implements CodeInsightTestFixture { assert copy != null : STRING0 + fullPath ; final PsiFile psiFile = myPsiManager . findFile ( copy ) ; assert psiFile != null ; - checkResultByFile ( filePath , psiFile , false ) ; + checkResultByFile ( expectedFile , psiFile , fa...
checking arbitrary files fixed
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class HiveBucketing { return bucketCount ; } + + @ override + public String toString ( ) + { + return Objects . toStringHelper ( this ) + . add ( STRING0...
Add toString to HiveBucket
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class ServerSocketSuspendTest extends AbstractServerSocketTest { <nb> public class ServerSocketSuspendTest extends AbstractServerSocketTest { private static final long TIMEOUT = NUMBER0 ; @ test + @ ignore ...
disable test for now
<nb> public interface MeasureRepository { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove bad comment in org sonar server computation measure MeasureRepository
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class HttpResponseCacheTest extends TestCase { server . play ( ) ; URLConnection c1 = server . getUrl ( STRING0 ) . open...
Fix HttpResponseCacheTest in anticipation of an OkHttp upgrade