diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class TestServlet extends HttpServlet { out . println ( STRING0 ) ; out . println ( STRING1 ) ; out . println ( STRING2 ) ; - out . println ( STRING3 ) ; + out . println ( STRING4 ) ; out . println ( STRING5 ) ; out . println ( STRING6 ) ; - out . println ( STRING7 ) ; + out . println ( ST...
Improved the output message
<nb> final class DexterInstance { PermissionStates permissionStates = new PermissionStates ( ) ; for ( String permission : pendingPermissions ) { - int permissionState = androidPermissionService . checkSelfPermission ( activity , permission ) ; + int permissionState = checkSelfPermission ( activity , permissi...
Add a workaround for RuntimeException when checking self permissions
<nb> public class PartitionServiceImpl implements PartitionService , ManagedService , @ override public Address getReplicaAddress ( int replicaIndex ) { - return ( addresses . length ( ) > replicaIndex ) ? addresses . get ( replicaIndex ) : null ; + return addresses . get ( replicaIndex ) ; } void setRe...
Removed returning null when index out of bounds on getReplicaAddress
<nb> public class SliceDictionaryStreamReader ByteArrayStream dictionaryDataStream = rowGroupDictionaryDataStreamSource . openStream ( ) ; readDictionary ( dictionaryDataStream , rowGroupDictionarySize , rowGroupDictionaryLength , rowGroupDictionary ) ; } - dictionaryOpen = true ; presentStream = presentStr...
Remove redundant line
<nb> public class UnindexedFilesUpdater implements BackgroundableCacheUpdater { final RegistryValue value = Registry . get ( DumbServiceImpl . FILE_INDEX_BACKGROUND ) ; if ( ! value . asBoolean ( ) ) { if ( Messages . showDialog ( myProject , STRING0 + - STRING1 + + STRING2 + STRING3 + - STRING4 + + STR...
Send indexing to background message text suggested update
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT @ suppresswarnings ( STRING0 ) public class ConsoleEvent extends AbstractBuckEvent { <nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix warnings flagged by Javadoc
<nb> public final class AnalyticsTracker { STATS_ACCESSED , STATS_OPENED_WEB_VERSION , STATS_TAPPED_BAR_CHART , + STATS_SCROLLED_TO_BOTTOM , EDITOR_CREATED_POST , EDITOR_ADDED_PHOTO_VIA_LOCAL_LIBRARY , EDITOR_ADDED_PHOTO_VIA_WP_MEDIA_LIBRARY , <nb> public class AnalyticsTrackerMixpanel implements Analyt...
Adding tracking point for when user scrolls to bottom of stats screen
<nb> final class CheckSuspiciousCode extends AbstractPostOrderCallback { private static boolean reportIfNonObject ( NodeTraversal t , Node n , DiagnosticType diagnosticType ) { - if ( n . isAdd ( ) || ! NodeUtil . mayBeObect ( n ) ) { + if ( n . isAdd ( ) || ! NodeUtil . mayBeObject ( n ) ) { t . report ( n...
Fix typos and remove incorrect comments
<nb> public interface AnnotationDescription { COMMENT private static final ElementType [ ] DEFAULT_TARGET = new ElementType [ ] { ElementType . ANNOTATION_TYPE , ElementType . CONSTRUCTOR , ElementType . FIELD , ElementType . LOCAL_VARIABLE , ElementType . METHOD , - ElementType . PACKAGE , ElementType . PARAME...
Fixed default values for element type
<nb> public class HadoopDefaultAuthenticator implements HiveAuthenticationProvider { private String userName ; private List < String > groupNames ; - + private Configuration conf ; @ override <nb> public class HadoopDefaultAuthenticator implements HiveAuthenticationProvider { STRING0 ) ; } - t...
Hive authorization should use short username when Kerberos authentication Kai Zheng via Ashutosh Chauhan
<nb> public class ClassLoaderSafeConnectorMetadata @ override public boolean canCreateSampledTables ( ) { - return false ; + try ( ThreadContextClassLoader ignored = new ThreadContextClassLoader ( classLoader ) ) { + return delegate . canCreateSampledTables ( ) ; + } } @ override
Fix ClassLoaderSafeConnectorMetadata so that it delegates canCreateSampledTables
<nb> public abstract class SharedMemoryVertexBufferObject extends ZeroMemoryVertexBuf SINGLE SINGLE - private static ReentrantLock sSharedByteBufferLock ; + private static ReentrantLock sSharedByteBufferLock = new ReentrantLock ( true ) ; private static ByteBuffer sSharedByteBuffer ; - public static int...
Fixed a bug in the untested SharedMemortVertexBufferObject
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public final class Codecs { private Codecs ( ) { - + } - + COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMEN...
remove an unused import
<nb> public abstract class Property < T , V > { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void set ( T object , V value ) { - throw new NoSuchPropertyException ( STRING0 ) ; + throw new UnsupportedOperationException ( STRING1 + getName ( ) + STRING2 ) ; } COMMENT
Change Property set to throw UnsupportedOperationException by default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - public abstract class BaseC...
Made BaseCluster package private
<nb> class WatchServiceDirectoryWatcher extends AbstractDirectoryWatcher { SINGLE SINGLE SINGLE - LOG . debug ( STRING0 ) ; + LOG . debug ( STRING1 ) ; } else { if ( kind == StandardWatchEventKinds . ENTRY_CREATE ) { SINGLE addWatchDirectory ( child , fileExtensions ) ; + if ( childFile . isDirector...
Fix reloading not picking up new files created in new directories
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT @ incubating
Added a TODO
<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 ; <nb> imp...
Removed a view unused CoreRegistry imports
<nb> public class FilterListFragment extends ListFragment { } protected int getLayout ( Activity activity ) { - if ( AndroidUtilities . isTabletSized ( activity ) ) + if ( AndroidUtilities . isTabletSized ( activity ) ) { + adapter . filterStyle = R . style . TextAppearance_FLA_Filter_Tablet ; return R . ...
Fixed a text color bug in the filter list on tablets
<nb> public final class Job < T extends Keyed > extends Keyed < Job > { } static public boolean isCancelledException ( Throwable ex ) { - return ex instanceof Job . JobCancelledException || ex . getMessage ( ) . contains ( STRING0 ) ; + return ex instanceof Job . JobCancelledException || ex . getMessage ( ) !...
Fixed NPE in Job
<nb> public class TransitToStreetNetworkModule implements GraphBuilderModule { LOG . info ( STRING0 ) ; int nUnlinked = NUMBER0 ; for ( TransitStop ts : stopVertices ) { - SINGLE - SINGLE + SINGLE + SINGLE + SINGLE boolean alreadyLinked = false ; for ( Edge e : ts . getOutgoing ( ) ) { if ( e inst...
add comment and clarify
<nb> public abstract class TitanGraphPerformanceMemoryTest extends TitanGraphTestComm System . out . println ( STRING0 + ( rounds * commitSize * writeThreads . length ) + STRING1 + ( System . currentTimeMillis ( ) - start ) ) ; final int maxUID = uidCounter . get ( ) ; - final int trials = NUMBER0 ; + final i...
Reducing iteration count in testTranactionalMemory
<nb> public final class ViewService implements Service < ComponentView > { SINGLE final ClassLoader oldTCCL = WildFlySecurityManager . getCurrentContextClassLoaderPrivileged ( ) ; try { - WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( component . getComponentClass ( ) . getClassLoader ( ) ) ;...
Fix security manager issue
<nb> public abstract class AbstractReflectorAtmosphereHandler implements AtmosphereHa COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
AbstractReflectorAtmosphereHandler Fix typo
<nb> public class AlternateRecentsComponent implements ActivityOptions . OnAnimationSta } else { SINGLE ActivityOptions opts = getUnknownTransitionActivityOptions ( ) ; - startAlternateRecentsActivity ( topTask , opts , null ) ; + startAlternateRecentsActivity ( topTask , opts , EXTRA_FROM_HOME ) ; } } ...
Fixing issue with excluded tasks sometimes showing in Recents
<nb> class NativeCrashListener extends Thread { pr = mAm . mPidsSelfLocked . get ( pid ) ; } if ( pr != null ) { + SINGLE + if ( pr . persistent ) { + if ( DEBUG ) { + Slog . v ( TAG , STRING0 + pr ) ; + } + return ; + } + int bytes ; do { SINGLE
Don t attempt native crash reporting for persistent apps
<nb> public class GraphHopperStorage implements GraphStorage nextEdgeOther = tmp ; } + if ( edge < NUMBER0 || edge == EdgeIterator . NO_EDGE ) + throw new IllegalStateException ( STRING0 + edge + + STRING1 + nodeThis + STRING2 + nodeOther ) ; + long edgePointer = ( long ) edge * edgeEntryBytes ; edges...
added check before writing edge
<nb> public class ColumnAlias implements Query { } return queryBuilder . getQuery ( ) ; } + + @ override + public String toString ( ) { + return getQuery ( ) ; + } }
added toString method for appending to query
<nb> public final class Ranker extends NotificationRankerService { if ( notificationsForPackage == null ) { notificationsForPackage = new LinkedHashSet < > ( ) ; } - if ( notificationsForPackage . contains ( sbn . getKey ( ) ) ) { - return ; - } + notificationsForPackage . add ( sbn . getKey ( ) ) ; m...
Don t unbundle updated notifications
<nb> public abstract class GuiAdvancedInterface extends GuiBuildCraft { int cornerY = ( height - ySize ) / NUMBER0 ; itemRenderer . zLevel = NUMBER1 F ; - itemRenderer . renderItemIntoGUI ( fontRenderer , mc . renderEngine , item , cornerX + x , cornerY + y ) ; + itemRenderer . func_82406_b ( fontRenderer , m...
Fix rendering ItemStacks in the advanced guis
<nb> public class TheTVDB { SINGLE SINGLE show . airtime -= NUMBER0 * DateUtils . HOUR_IN_MILLIS ; + } else if ( STRING0 . equals ( traktShow . country ) ) { + SINGLE + SINGLE + show . airtime -= NUMBER1 * DateUtils . HOUR_IN_MILLIS ; } }
Modify air time for Australian shows
<nb> public class NeuralNet extends ValidatedJob { SINGLE SINGLE SINGLE - SINGLE - arg . disable ( STRING0 - + ( H2O . CLOUD . _memary . length - NUMBER0 ) + STRING1 , inputArgs ) ; - mode = ExecutionMode . SingleNode ; + if ( mode == ExecutionMode . MapReduce ) { + arg . disable ( STRING0 + + ( H...
Allow single threaded mode on multi node for Python tests
<nb> public class TestFile extends File implements TestFileContext { } public TestFile createDir ( ) { - if ( isDirectory ( ) ) { + if ( mkdirs ( ) ) { return this ; } - if ( mkdirs ( ) ) { + if ( isDirectory ( ) ) { return this ; } throw new AssertionError ( STRING0 + this
Fixed TestFile createDir to handle something else creating the directory concurrently
<nb> class DarwinEnvironment extends PortableEnvironment { if ( isPortableEditFileSupported ( ) ) { - portableEditFile ( file ) ; + try + { + portableEditFile ( file ) ; + } + catch ( IOException ioe ) + { + String commands [ ] = { STRING0 , STRING1 , file . getAbsolutePath ( ) } ; + Runtime . g...
fixed opening options files when there is no default app
<nb> public class DateTimeFormatterBuilder { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public DateTimeFormatterBuilder appendFixedDecimal ( DateTimeFieldType fieldType , int numDigits ) { <nb> public class DateTimeFormatterBuilder { COMMENT COMMENT COMMENT - COMMENT + COMMENT COM...
Fixed since tags
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; public class VirtualMachineProxyImpl implements JdiTimer , VirtualMachineProxy { private static final Logger LOG...
isSuspended implementation fix
<nb> public class NotificationsTest extends AndroidTestCase { addHandlerMessages . countDown ( ) ; SINGLE - Boolean result = future . get ( NUMBER0 , TimeUnit . SECONDS ) ; + SINGLE + SINGLE + Boolean result = future . get ( NUMBER1 , TimeUnit . SECONDS ) ; assertTrue ( result ) ; } }
Increased timeout yet again
<nb> public class NotificationPanelView extends PanelView implements if ( mListenForHeadsUp && ! mHeadsUpTouchHelper . isTrackingHeadsUp ( ) && mHeadsUpTouchHelper . onInterceptTouchEvent ( event ) ) { mIsExpansionFromHeadsUp = true ; - MetricsLogger . count ( mContext , COUNTER_PANEL_OPEN , NUMBER0 ) ; Metri...
remove double count of panel open
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import that was breaking the build
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; public class HiveHdfsConfiguration implements HdfsConfiguration { + private static final Configuration DEFAULT_CONFIGURATION = new Configuration ( ) ; + @ suppresswarnings ( STRING0 ) ...
Reduce allocation of hadoop configuration objects
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GroovyPsiElementFactoryImpl extends GroovyPsiElementFactory { private GroovyFile createGroovyFileChecked ( @ notnull CharSequence idText , boolean isPhysical , @ nullable PsiElement...
revert error checking
<nb> public class ClassMetaData { if ( elementKind . equals ( ElementKind . FIELD ) ) { VariableElement variableElement = ( VariableElement ) element ; String fieldName = variableElement . getSimpleName ( ) . toString ( ) ; + + Set < Modifier > modifiers = variableElement . getModifiers ( ) ; + if ( modifie...
Fixed merge mistake
<nb> public class UriConfigurationTest extends Assert { String json = compConf . createParameterJsonSchema ( ) ; assertNotNull ( json ) ; - assertTrue ( json . contains ( STRING0 ) ) ; - assertTrue ( json . contains ( STRING1 ) ) ; + assertTrue ( json . contains ( STRING2 ) ) ; + assertTrue ( json . conta...
Added path kind option to explained options in endpoints
<nb> abstract class AbstractOperationContext implements OperationContext { } } catch ( Throwable t ) { - t . printStackTrace ( ) ; SINGLE if ( ! ( t instanceof OperationClientException ) ) { - t . printStackTrace ( ) ; throw t ; } else if ( currentStage != Stage . DONE ) { SINGLE
Remove extra stacktrace logging for debugging
<nb> public abstract class JaxRsResourceBase implements JaxrsResource { generator . writeStartArray ( ) ; for ( final E entity : entities ) { - generator . writeObject ( toJson . apply ( entity ) ) ; + final J asJson = toJson . apply ( entity ) ; + if ( asJson != null ) { + generator . writeObject ( asJso...
make sure not to write null entities in the JSON bodies
<nb> public class DistributedQueryRunner this . servers = servers . build ( ) ; } catch ( Exception e ) { - throw closer . rethrow ( e , Exception . class ) ; - } - finally { - closer . close ( ) ; + try { + throw closer . rethrow ( e , Exception . class ) ; + } + finally { + closer . close ( ) ...
Fix premature close in DistributedQueryRunner
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Completed the aggregation strategy javadoc
<nb> import NAMESPACE ; import static NAMESPACE ; @ runwith ( Parameterized . class ) - public class AstRectangleAssignTest extends TestUtil { + public class AstRectangleFrameSliceAssignTest extends TestUtil { @ beforeclass static public void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
Rename test to be more descriptive
<nb> public class AbstractRestFunctionalTestBase implements GraphHolder { private static ImpermanentGraphDatabase graphdb ; + protected static final String NODES = STRING0 ; public @ rule TestData < Map < String , Node > > data = TestData . producedThrough ( GraphDescription . createGraphFor ( this , true...
adjusting REST test starting
<nb> public class DummyActivity extends Activity { AlertDialog . Builder builder = new AlertDialog . Builder ( this ) ; builder . setIcon ( android . R . drawable . ic_dialog_alert ) . setTitle ( R . string . im_label ) . setMessage ( R . string . swipe_alert ) - . setPositiveButton ( android . R . string . ok ...
don t use android R string it might not have Tibetan and others
<nb> public class HBaseClient extends com . yahoo . ycsb . DB COMMENT public void cleanup ( ) throws DBException { - + try { + if ( _hTable != null ) { + _hTable . flushCommits ( ) ; + } + } catch ( IOException e ) { + throw new DBException ( e ) ; + } } public void getHTable ( String table ...
Added HBase cleanup code fix
<nb> public class ProjectConfigurator implements BatchComponent { public ProjectConfigurator configure ( Project project ) { Date analysisDate = loadAnalysisDate ( ) ; - checkCurrentAnalyisIsTheLatestOne ( project . getKey ( ) , analysisDate ) ; + checkCurrentAnalysisIsTheLatestOne ( project . getKey ( ) , an...
Fix method name typo
<nb> public class SessionInfo extends JavaScriptObject public final native int getActiveSessionCount ( ) COMMENT COMMENT COMMENT ; + + public final native String getRVersion ( ) COMMENT + COMMENT + COMMENT ; + + public final native String getRHomeDir ( ) COMMENT + COMMENT + COMMENT ; }
add accessors for version and home dir
<nb> public class PartitionByMurmurHash extends AbstractPartionAlgorithm implements R private int seed ; private int count ; private int virtualBucketTimes = DEFAULT_VIRTUAL_BUCKET_TIMES ; - private Map < Integer , Integer > weightMap ; + private Map < Integer , Integer > weightMap = new HashMap < > ( ) ; p...
fix an NullPointerException
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; public class NodeScheduler { <nb> public class NodeScheduler else { candidateNodes = selectRandomNodes ( minCandidates ) ;...
Add error code for no nodes available error
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + @ ignore ( STRING0 ) public class WebSocketClientTest { public static class TrackingSocket extends WebSocketAdapter
Setting client tests to Ignore
<nb> public abstract class AbstractJRubyMojo extends AbstractMojo { classpath . setValue ( p . toString ( ) ) ; java . addEnv ( classpath ) ; + java . setCloneVm ( true ) ; } Environment . Variable gemPathVar = new Environment . Variable ( ) ;
set jvm clone option so that system properties will be picked up in the forked jvm
<nb> public class PlainSocketImpl extends SocketImpl { SINGLE SINGLE SINGLE - IoBridge . sendto ( fd , buffer , offset , byteCount , NUMBER0 , address , port ) ; + + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + IoBridge . sendto ( fd , buffer , offset , byteCount , NUMBER0 , null , port...
Fixed javadotNet PlainSocketImpl write failure on Mac OS X for datagram sockets
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GrailsASTUtils { public static boolean isApplied ( ASTNode astNode , Class < ? > transformationClass ) { return resolveRe...
Add helper methods for re processing variable scopes with VariableScopeVisitor
<nb> public class PGL { } - protected boolean needSepFrontBackTex = false ; + protected boolean needSepFrontTex = false ; protected void syncBackTexture ( ) { - if ( usingFrontTex ) needSepFrontBackTex = true ; + if ( usingFrontTex ) needSepFrontTex = true ; if ( USE_JOGL_FBOLAYER ) { if ( NUMBER0 <...
renamed front tex flag
<nb> package NAMESPACE ; COMMENT public enum DeviceType { Invalid ( NUMBER0 ) , HeatingThermostat ( NUMBER1 ) , HeatingThermostatPlus ( NUMBER2 ) , WallMountedThermostat ( - NUMBER3 ) , ShutterContact ( NUMBER4 ) , PushButton ( NUMBER5 ) , ; + NUMBER3 ) , ShutterContact ( NUMBER4 ) , PushButton ( NUMBER5 ) ; ...
minor change removed comma
<nb> public final class HdmiControlService extends SystemService { device . onDeviceRemoved ( ) ; SINGLE SINGLE - invokeDeviceEventListeners ( device . getInfo ( ) , DEVICE_EVENT_REMOVE_DEVICE ) ; - updateSafeMhlInput ( ) ; + HdmiDeviceInfo deviceInfo = device . getInfo ( ) ; + if ( deviceInfo != null ) {...
Invoke the callback only when DeviceInfo is available
<nb> public class OSQLFunctionEval extends OSQLFunctionMathAbstract { public Object execute ( final OIdentifiable iRecord , final Object iCurrentResult , final Object [ ] iParameters , OCommandContext iContext ) { if ( predicate == null ) - predicate = new OSQLPredicate ( ( String ) iParameters [ NUMBER0 ] ) ; ...
added toString in SQL eval to avoid CCE and to parse any object
<nb> public class QBean < T > extends ESimple < T > implements FactoryExpression < T > { T rv = getType ( ) . newInstance ( ) ; BeanMap beanMap = new BeanMap ( rv ) ; for ( Map . Entry < String , Expr < ? > > entry : bindings . entrySet ( ) ) { - beanMap . put ( entry . getKey ( ) , args [ this . args . indexOf...
added null check
<nb> public class MetaDataMappingService extends AbstractComponent { insertOrder = ++ refreshOrUpdateInsertOrder ; refreshOrUpdateQueue . add ( new UpdateTask ( index , indexUUID , type , mappingSource , order , nodeId , listener ) ) ; } - clusterService . submitStateUpdateTask ( STRING0 + index + STRING1 + typ...
add node and order to the source of update mapping
<nb> public class Execution { f . setAccessible ( true ) ; } SINGLE - System . out . println ( value + STRING0 + f . getGenericType ( ) ) ; Object objVal = MetaClass . cast ( value , f . getGenericType ( ) ) ; if ( objVal != null ) { if ( objVal . getClass ( ) . isArray ( ) ) { <nb> public class Executi...
made argument parsing easy
<nb> public class SpyAnnotationEngine implements AnnotationEngine { Class < ? > enclosing = type . getEnclosingClass ( ) ; if ( enclosing != null ) { if ( ! enclosing . isInstance ( testInstance ) ) { - throw new MockitoException ( STRING0 + type ) ; + throw new MockitoException ( STRING1 + field . getName ( ...
Improved an exception message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class QSPanel extends ViewGroup { listener = mTeardownDetailWhenDone ; fireScanStateChanged ( false ) ; } + sendAccessibilityEvent ( Accessibili...
Fix accessibility announcement for QS details
<nb> public class ReaderPostListFragment extends Fragment @ override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; - AnalyticsTracker . track ( AnalyticsTracker . Stat . READER_SEARCH_LOADED ) ; if ( savedInstanceState != null ) { AppLog . d ( T . READER , ...
Bump stat from more appropriate location
<nb> public final class Indexer { String defaultProject = null ; boolean listFiles = false ; boolean createDict = false ; - int noThreads = Runtime . getRuntime ( ) . availableProcessors ( ) ; + int noThreads = NUMBER0 + ( NUMBER0 * Runtime . getRuntime ( ) . availableProcessors ( ) ) ; SINGLE Getopt ge...
Increase the default number of projects to index in parallel
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class FrameSplitter extends H2OCountedCompleter {
Fix HTML markup in javadoc comment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ResourceCRLFetcher implements CRLFetcher { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed cs issue
<nb> public class SearchResults { if ( searchResult . getPrimaryRange ( ) . intersects ( oldCursorRange ) ) { mayBeOldCursor = searchResult ; } - if ( searchResult . getPrimaryRange ( ) . equals ( oldCursorRange ) ) { + if ( searchResult . getPrimaryRange ( ) . getStartOffset ( ) == oldCursorRange . getStartO...
fix cursor moving when editing self repeating cyclic pattern
<nb> public class MyTaskTest { COMMENT COMMENT COMMENT - @ test + SINGLE public void testJNDILookup ( ) { try { InitialContext ctx = new InitialContext ( ) ; <nb> public class MyTaskTest { COMMENT COMMENT COMMENT - @ test + SINGLE public void testResourceNoName ( ) { Thread thread = fact...
Commenting the test for now until JNDI lookup is figured out correctly
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public enum SnapshotMessage { in . defaultReadObject ( ) ; buf = new byte [ in . readInt ( ) ] ; - in . readFully ( buf ) ; + try + { + in . rea...
Swallow an EOFException
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in example in javadoc
<nb> public class DumbServiceImpl extends DumbService { final CacheUpdateRunner runner = new CacheUpdateRunner ( myProject , new ArrayList < CacheUpdater > ( updaters ) ) ; final Application application = ApplicationManager . getApplication ( ) ; - if ( ! forceDumbMode && application . isDispatchThread ( ) && !...
unless explicitly requested always do first queryNeededFiles before entering dumb mode
<nb> public class GTFSPatternHopFactory { HashMap < ScheduledStopPattern , BasicTripPattern > patterns = new HashMap < ScheduledStopPattern , BasicTripPattern > ( ) ; - private GtfsStopContext context ; + private GtfsStopContext context = new GtfsStopContext ( ) ; private int defaultStreetToStopTime ;
fix broken tests
<nb> public class MulticoreWrapper < I , O > { public void join ( ) { SINGLE if ( ! threadPool . isShutdown ( ) ) { - int numActiveThreads = nThreads - idleProcessors . size ( ) ; + int numActiveThreads = nThreads ; while ( numActiveThreads > NUMBER0 ) { try { + SINGLE idleProcessors . take ( ) ; } ...
Add some debug output
<nb> public class AddShow extends Activity { private void getTrendingTraktShows ( ) { ServiceManager manager = new ServiceManager ( ) ; + manager . setApiKey ( Constants . TRAKT_API_KEY ) ; try { List < TvShow > trendingShows = manager . showService ( ) . trending ( ) . fire ( ) ; List < SearchResult > sh...
Should always set api key when using trakt
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UserManagerService extends IUserManager . Stub { private static final String XATTR_SERIAL = STRING0 ; + SINGLE + priv...
Collect user creation metrics
<nb> public class TileAdapter extends RecyclerView . Adapter < Holder > implements TileSta private void selectPosition ( int position , View v ) { SINGLE mAccessibilityMoving = false ; - move ( mAccessibilityFromIndex , position , v ) ; - mTiles . remove ( mEditIndex ) ; + mTiles . remove ( mEditIndex -- ) ...
Fix up accessibility
<nb> public interface LoadControl { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarify param bufferSizeContribution documentation
<nb> public class RootsAndBranches implements CommittedChangeListDecorator { } public JComponent getPanel ( ) { - myPanelWrapper = new JPanel ( new GridBagLayout ( ) ) ; - myPanelWrapper . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ; + myPanelWrapper = new JPanel ( new GridBagLayout ( ) ) { ...
mergeinfo panel preferred size corrected
<nb> class Clicker { ArrayList < T > allTextViews = RobotiumUtils . removeInvisibleViews ( viewFetcher . getCurrentViews ( viewClass ) ) ; for ( T view : allTextViews ) { - Log . d ( LOG_TAG , nameRegex + STRING0 + view . getText ( ) ) ; + Log . d ( LOG_TAG , STRING1 + nameRegex + STRING2 + view . getText ( )...
Improved log message in clickOn
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class CordovaWebViewTestActivity extends Activity implements CordovaInterface { CordovaWebView cordovaWebView ; + private final ExecutorService threadPool = Execu...
Fixing the tests so that they run as an Activity again
<nb> public class SlidingPaneLayout extends ViewGroup { public void draw ( Canvas c ) { super . draw ( c ) ; - if ( ! mCanSlide || mSlideableView == null || mSlideableView . getVisibility ( ) == GONE || + if ( mSlideableView == null || mSlideableView . getVisibility ( ) == GONE || mShadowDrawable == null ) ...
Don t hide SlidingPaneLayout shadows if things don t slide
<nb> public class BridgePackageManager extends PackageManager { return NUMBER0 ; } - @ overide + @ override public boolean isPermissionRevokedByPolicy ( String permName , String pkgName ) { return false ; }
Fix the build
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Added file header
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class StorageDirectTest extends StorageTestCase { Long value = e . getKey ( ) ; assertEquals ( value , engine . get ( recid , Serializer . LONG_SERIALIZER ) ) ; } + } - + @ ignore + @ test pub...
Add ignored test
<nb> public class CacheEventListenerAdaptor < K , V > } finally { ( ( CacheSyncListenerCompleter ) source ) . countDownCompletionLatch ( cacheEventSet . getCompletionId ( ) ) ; } - return ; } - throw new UnsupportedOperationException ( STRING0 + eventObject . getClass ( ) . getName ( ) ) ; } private v...
Don t throw exception in CacheEventListenerAdaptor when event object is not CacheEventSet
<nb> public class CreateTableGenerator extends AbstractSqlGenerator < CreateTableStatem } - if ( database instanceof MySQLDatabase && mysqlTableOptionStartWith != null ) { - LogFactory . getInstance ( ) . getLog ( ) . info ( STRING0 + mysqlTableOptionStartWith . toString ( ) + STRING1 ) ; - sql += STRING2 +...
Removed duplicated autoincrement start clause
<nb> public class FlywaySmallTest { } @ test + public void configurePlaceholderReplacement ( ) { + Flyway flyway = new Flyway ( ) ; + flyway . configure ( new Properties ( ) ) ; + assertTrue ( flyway . isPlaceholderReplacement ( ) ) ; + + Properties properties = new Properties ( ) ; + properties . s...
Added test case for placeholderReplacement configuration
<nb> public class MasterClient { Exception lastException = null ; while ( tries ++ < MAX_CONNECT_TRY && ! mIsShutdown ) { mMasterAddress = getMasterAddress ( ) ; + + LOG . info ( STRING0 + mMasterAddress ) ; + mProtocol = new TBinaryProtocol ( new TFramedTransport ( new TSocket ( mMasterAddress . getHos...
improve master logging
<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara annotations . put ( STRING0 , new Pair ( STRING1 , new SimpleStringFunction ( STRING2 ) ) ) ; - annotations . put ( STRING3 , new Pair ( STRING4 , + annotations . put ( STRING3 , new Pair ( STRING5 , new SimpleStringFuncti...
Fix verbless annotation
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public interface HistoryService { COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static String CACHE_ENABLED_PROPERTY = + STRING0 ; + public static ...
Added fields for caching enabled disabled used through the configuration service
<nb> public class LocalMUCRoom implements MUCRoom { COMMENT COMMENT COMMENT - @ override public String getUID ( ) { SINGLE
Fixed compilation error
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ItemSlidingAnimator { mActive . remove ( mViewHolder ) ; - SINGLE - ViewCompat . postInvalidateOnAnimation ( ( View )...
Fix NPE due to the previous workaround code
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebSocketModule extends ReactContextBaseJavaModule { client . sendMessage ( WebSocket . PayloadType . TEXT , new Buffer ( ) . writeUtf8 ( message ) ) ; - } catch ( IOException...
Fix IllegalStateException crash in WebSocketModule java
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; @ eactivity ( R . layout . my_activity ) public class MyActivity extends Activity { <nb> public class MyActivity extends Activity { @ systemservice WindowManager windowManager ; - COMMENT - CO...
Remove Eclair back pressed from Maven example