diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public abstract class LocalHistoryUITestCase extends IntegrationTestCase {
@ override
protected void runTest ( ) throws Throwable {
- if ( GraphicsEnvironment . isHeadless ( ) ) {
+ if ( isInHeadlessEnvironment ( ) ) {
System . out... | fixed more tests for headless environment |
<nb> public class ClientEngineImpl implements ClientEngine , CoreService ,
endpoint = createEndpoint ( conn ) ;
if ( endpoint != null ) {
processRequest ( endpoint , request ) ;
- } else {
+ } else {
handleEndpointNotCreatedConnectionNotAlive ( ) ;
}
} else if ( endpoint == null ) {
<nb> public class ... | resolved checkstyle issue in clientengineimpl |
<nb> public class WeightBasedComparator implements Comparator < NodeDescriptor > {
return compareToString ( o1 , o2 ) ;
}
- if ( w1 == UNDEFINED_WEIGHT && w2 == UNDEFINED_WEIGHT ) {
- return o1 . getIndex ( ) - o2 . getIndex ( ) ;
- } else {
- return compareWeights ( w1 , w2 ) ;
- }
-
+ int weights ... | default weight based sorting fix |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
public final class ThreadContext implements Cl... | Fix JavaDoc comment |
<nb> public abstract class HttpContentEncoder extends MessageToMessageCodec < HttpReque
case AWAIT_CONTENT : {
ensureContent ( msg ) ;
encodeContent ( ( HttpContent ) msg , out ) ;
- if ( msg instanceof LastHttpContent ) {
+ if ( out . get ( out . size ( ) - NUMBER0 ) instanceof LastHttpContent ) {
state = ... | Correctly detect LastHttpContent after encoding |
<nb> public class AsyncWriteWrapper implements RecordManager {
@ override
public void close ( ) {
shutdownSignal = true ;
+ synchronized ( writerNotify ) {
+ writerNotify . notify ( ) ;
+ }
+
SINGLE
try {
shutdownResponse . await ( ) ; | Fix background thread not exiting |
<nb> public abstract class Util implements UserRegistrationConstants {
} ) ;
}
- static Intent authorisationIntent ( INetworkLink link , Activity activity , Class < ? extends Activity > cls ) {
+ public static Intent authorisationIntent ( INetworkLink link , Activity activity , Class < ? extends Activity > cl... | fixed compilation issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ runwith ( CamelSpringBootJUnit4ClassRunner . cla... | Use a shorter name for the Camel RunWith so its easier to remember |
<nb> public class TextEndWithSelectionAction extends TextComponentEditorAction {
}
int selectionStart = caret . getLeadSelectionOffset ( ) ;
if ( editor instanceof EditorImpl && ( ( EditorImpl ) editor ) . myUseNewRendering ) {
- editor . getCaretModel ( ) . moveToLogicalPosition ( editor . offsetToLogicalPosit... | fix a mistake in TextEndWithSelectionAction |
<nb> public class Posts extends FragmentActivity implements OnPostSelectedListener ,
public void onClick ( DialogInterface dialog ,
int whichButton ) {
popPostDetail ( ) ;
+ attemptToSelectPost ( ) ;
postList . refreshPosts ( false ) ;
}
} ) ;
<nb> public class Posts extends FragmentActivity implements ... | select a post after refreshing the list |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
COMMENT
+ @ singleton
public class UserDetailsPresenter implements Presenter {
COMMENT
<nb> public class UserDetailsPresenter implements Presente... | Add injectable constructor to user details presenter |
<nb> public interface JsonSerializer < T > extends Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
void toJson ( OutputStream out , T object ) ;
<nb> public interface JsonSerializer < T > extends Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
void toJson ( Writer out , T o... | fixed cs issues |
<nb> public class PowerManagerService extends IPowerManager . Stub
}
if ( mSensorManager != null && mLightSensorEnabled != enable ) {
mLightSensorEnabled = enable ;
+ SINGLE
+ SINGLE
+ mHighestLightSensorValue = - NUMBER0 ;
+ mLightSensorValue = - NUMBER0 ;
+
SINGLE
long identity = Binder . clearCal... | Reset cached light sensor values when toggling auto brightness mode |
<nb> public class Weighted < T > {
return Lists . newArrayList ( sampled . values ( ) ) ;
}
+ public Weighted ( ) {
+ this ( null ) ; SINGLE
+ }
+
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
- public final class WeightedRealVector exte... | Also make Weighted WeightedRealVector serializable HT Justin Hayes |
<nb> public class Metrics {
COMMENT
COMMENT
public static void shutdown ( ) {
- DEFAULT_REGISTRY . shutdown ( ) ;
- JmxReporter . shutdownDefault ( ) ;
- Runtime . getRuntime ( ) . removeShutdownHook ( SHUTDOWN_HOOK ) ;
+ try {
+ DEFAULT_REGISTRY . shutdown ( ) ;
+ JmxReporter . shutdownDefault ( ) ; ... | Fix IllegalStateExceptions thrown during shutdown |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
COMMENT
- public interface GrImplicitVariable extends ImplicitVariable , NavigatablePsiElement {
+ public interface GrImplicitVariable extends PsiVariable , NavigatablePsiEleme... | GrImplicitVariable should not extends PsiLocalVariable |
<nb> public class CatalogManagerActivity extends ListActivity {
myAllItems . clear ( ) ;
if ( myIds . size ( ) > NUMBER0 ) {
- myAllItems . add ( new SectionItem ( STRING0 ) ) ;
+ myAllItems . add ( new SectionItem ( STRING1 ) ) ;
final TreeSet < CatalogItem > cItems = new TreeSet < CatalogItem > ( ) ;
fo... | enabled disabled labels fix in catalogs manager |
<nb> public class KeyguardUpdateMonitor {
public void registerInfoCallback ( InfoCallback callback ) {
if ( ! mInfoCallbacks . contains ( callback ) ) {
mInfoCallbacks . add ( callback ) ;
+ SINGLE
+ SINGLE
+ callback . onRefreshCarrierInfo ( mTelephonyPlmn , mTelephonySpn ) ;
} else {
if ( DEBUG ) Log ... | Notify the sim state after callback registration |
<nb> public class AsyncIntegrationTests extends AbstractHttpHandlerIntegrationTests {
@ override
public Mono < Void > handle ( ServerHttpRequest request , ServerHttpResponse response ) {
return response . writeWith ( Flux . just ( STRING0 , STRING1 , STRING2 , STRING2 , STRING3 )
- . useTimer ( Schedulers . tim... | Polish timed operators and remove useTimer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPA... | Make SAML support as an optional module for CAS server |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaBuilderService extends BuilderService {
@ notnull
@ override
public List < ? extends ModuleLevelBuilder > createModuleLevelBuilders ( ) {
- return Array... | ensure sequential task execution inside java builder |
<nb> public class MultiThreadedJLanguageTool extends JLanguageTool {
final List < RuleMatch > ruleMatches = new ArrayList < > ( ) ;
final int threads = getThreadPoolSize ( ) ;
+
final ExecutorService executorService = getExecutorService ( threads ) ;
-
- final List < Callable < List < RuleMatch > > > call... | move the executor service creation directly before the try finally to make sure it always gets shut down |
<nb> public class InteractiveShell {
public void run ( String [ ] args ) throws Exception {
final String version = InvokerHelper . getVersion ( ) ;
- out . println ( STRING0 ) ;
+ out . println ( STRING1 ) ;
out . println ( STRING2 ) ;
out . println ( STRING3 + version + STRING4 + System . getProperty ( S... | Let s get Groovy with an apostrophe |
<nb> public class PostgreSQLSchema extends Schema < PostgreSQLDbSupport > {
jdbcTemplate . execute ( statement ) ;
}
- for ( Type type : allTypes ( ) ) {
- type . drop ( ) ;
- }
}
COMMENT | remove the ending dropping of all types |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
@ suppresswarnings ( { STRING0 } )
@ implements ( CheckBox . class )
public class FakeCompoundButton extends FakeTextView implements Checkable {
private boolean mmmmmChecked ... | Added support for onCheckedChange |
<nb> public class ManagementExampleTest extends CamelSpringTestSupport {
SINGLE
Set < ObjectName > set = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ;
- SINGLE
- assertEquals ( NUMBER0 , set . size ( ) ) ;
+ SINGLE
+ assertEquals ( NUMBER1 , set . size ( ) ) ;
SINGLE
set = mbeanSe... | Fix the test of ManagementExampleTest |
<nb> public class DefaultMavenPluginExecutor implements MavenPluginExecutor {
. toString ( ) ;
}
- public void concreteExecute ( MavenProject pom , String goal ) throws SecurityException {
+ public void concreteExecute ( MavenProject pom , String goal ) {
Method executeMethod = null ;
for ( Method m : lif... | Fix quality flaw and increase timeout of EmbeddedDatabaseTest for slow boxes |
<nb> public class ContextPreparer extends AbstractComponent {
throw new IllegalArgumentException ( String . format ( Locale . ENGLISH ,
STRING0 +
STRING1 +
- STRING2 , preparerContext . opCtx . nodeOperationMap , preparerContext . opCtx . targetToSourceMap ) , t ) ;
+ STRING3 +
+ STRING4 , preparerContext .... | Include original error message in prepare context failure |
<nb> class ImageViewFutureImpl extends TransformFuture < ImageView , IonDrawable > implem
}
SINGLE
- imageView . setImageDrawable ( null ) ;
- imageView . setImageDrawable ( result ) ;
BitmapInfo info = result . getBitmapInfo ( ) ;
if ( info != null && info . exception == null ) {
applyScaleMode ( image... | Set the drawable as the last step after scale type to make sure that the intrinsic dims check |
<nb> public class JsonProcessingExceptionMapper implements ExceptionMapper < JsonProces
COMMENT
COMMENT
COMMENT
- LOGGER . debug ( STRING0 , exception ) ;
+ LOGGER . warn ( STRING0 , exception ) ;
final ErrorMessage errorMessage = new ErrorMessage ( Response . Status . BAD_REQUEST . getStatusCode ( ) ,
ST... | Do not swallow exception cause when parsing JSON |
<nb> abstract class ListenerResourceDefinition extends PersistentResourceDefinition {
public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) {
super . registerAttributes ( resourceRegistration ) ;
for ( ConnectorStat attr : ConnectorStat . values ( ) ) {
- resourceRegistration . ... | Properly register metric |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ... | Moved org bukkit Vector to org bukkit util |
<nb> public class TypeTest extends CQLTester
createTable ( STRING0 ) ;
execute ( STRING1 ) ;
- UntypedResultSet results = execute ( STRING2 ) ;
+ UntypedResultSet results = execute ( STRING3 ) ;
assertEquals ( NUMBER0 , results . size ( ) ) ;
execute ( STRING4 ) ;
- results = execute ( STRING5 ) ;
+... | Fix testDateCompatibility on Windows |
<nb> public class StringText implements Sequence {
return lines ;
}
- private static final int nextLF ( String b , int ptr ) {
+ private static int nextLF ( String b , int ptr ) {
return next ( b , ptr , STRING0 ) ;
}
- private static final int next ( final String b , int ptr , final char chrA ) {
+... | Fix some quality flaws |
<nb> public class WriteTimeoutTestCase {
throw new RuntimeException ( e ) ;
}
- final int capacity = NUMBER0 * NUMBER1 * NUMBER1 ; SINGLE
+ final int capacity = NUMBER2 * NUMBER1 * NUMBER1 ; SINGLE
final ByteBuffer buffer = ByteBuffer . allocateDirect ( capacity ) ;
for ( int i = NUMBER3 ; i < capacity ; ... | Reduce the size of the direct buffer used in the test |
<nb> public class FreeTypeFontGeneratorLoader extends
@ override
public FreeTypeFontGenerator load ( AssetManager assetManager , String fileName , FileHandle file ,
FreeTypeFontGeneratorParameters parameter ) {
- FreeTypeFontGenerator generator = new FreeTypeFontGenerator ( file . sibling ( file . name ( ) . su... | Allow FreeTypeFontGeneratorLoader to be used without extra |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public abstract class AccessToken {
protected void acquired ( ) { | fix wrong import |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public interface PacketRouter extends IQRouter , MessageRouter , PresenceRouter {
COMMENT
COMMENT
COMMENT
- public void route ( CompositePacket packet ) throws IllegalArgumentException , NullPointerExceptio... | Removing composite packet temp |
<nb> public abstract class VirtualFileSystemEntry extends NewVirtualFile {
String target = myParent . getFileSystem ( ) . resolveSymLink ( this ) ;
putUserData ( SYMLINK_TARGET , target != null ? FileUtil . toSystemIndependentName ( target ) : target ) ;
}
- setFlagInt ( HAS_SYMLINK_FLAG , isSymLink || ( ( Virt... | made method public |
<nb> public class Notification implements Parcelable
private RemoteViews generateActionButton ( Action action ) {
final boolean tombstone = ( action . actionIntent == null ) ;
- RemoteViews button = new RemoteViews ( mContext . getPackageName ( ) ,
+ RemoteViews button = new BuilderRemoteViews ( mContext . ge... | Fixed a bug where notifications were not posted on secondary users |
<nb> public class Jedis extends BinaryJedis implements JedisCommands , MultiKeyCommand
public List < String > srandmember ( final String key , final int count ) {
checkIsInMulti ( ) ;
- client . srandmember ( key ) ;
+ client . srandmember ( key , count ) ;
return client . getMultiBulkReply ( ) ;
} | fix srandmember missing parameter |
<nb> public class UpdateChecker {
}
} ;
t . setDaemon ( true ) ;
- t . run ( ) ;
+ t . start ( ) ;
}
private void doCheck ( final ServletContext servletContext ) throws IOException { | start thread in background |
<nb> public class AndroidInput implements
case MotionEvent . ACTION_MOVE :
SINGLE
for ( int p = NUMBER0 ; p < event . getPointerCount ( ) ; p ++ ) {
- lastPos = lastPositions . get ( p ) ;
+ lastPos = lastPositions . get ( event . getPointerId ( p ) ) ;
if ( lastPos == null ) {
lastPos = new Vector2f ( ev... | Fixed issue with handling Multi Touch not tracking MOVE for second finger when first finger is lifted |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class MavenArtifactDownloader {
private static final ThreadPoolExecutor EXECUTOR =
- new ThreadPoolExecutor ( NUMBER0 , Integer . MAX_VALUE , NUMBER1 , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ... | do not pollute test snapshots |
<nb> public interface ServerMessages {
@ message ( id = NUMBER0 , value = STRING0 )
IOException resourceTooLarge ( ) ;
- @ message ( id = NUMBER1 , value = STRING1 )
+ @ message ( id = NUMBER1 , value = STRING2 )
DeploymentUnitProcessingException subdeploymentNotFound ( String path , StringBuilder subdeploy... | Fix messages to complain about jboss deployment structure |
<nb> public class FlappingTest extends FailureDetectorPerformanceTest {
@ override
public String test ( FailureDetector failureDetector ) throws Exception {
+ final int threads = NUMBER0 ;
+
Node node = Iterables . get ( failureDetectorConfig . getNodes ( ) , NUMBER1 ) ;
CountDownLatch countDownLatch = ne... | Changed the number of threads in the FlappingTest |
<nb> public class GraphServiceFileImpl implements GraphService {
}
public Graph getGraph ( String routerId ) {
- if ( routerId == null || routerId . isEmpty ( ) ) {
+ if ( routerId == null || routerId . isEmpty ( ) || routerId . equalsIgnoreCase ( STRING0 ) ) {
routerId = defaultRouterId ;
LOG . debug ( S... | accept default as a routerId in the path |
<nb> public class ChunkOutputWidget extends Composite
if ( expansionState_ . getValue ( ) == EXPANDED )
root_ . getElement ( ) . getStyle ( ) . setOpacity ( NUMBER0 ) ;
- clear_ . setVisible ( true ) ;
- expand_ . setVisible ( true ) ;
- popout_ . setVisible ( true ) ;
+ if ( chunkOutputSize_ != ChunkOutp... | hide chunk controls for satellite chunks |
<nb> public class Oauth {
}
} ) ;
Log . d ( TAG , String . format ( STRING0 , TOKEN_ENDPOINT ) ) ;
- Log . d ( TAG , String . format ( STRING1 , params ) ) ;
}
public AsyncHttpClient getClient ( ) { | Remove logging of sensitive information |
<nb> final class JoglPanel extends JPanel implements GLEventListener , MouseMotionList
{
for ( RenderListener listener : listeners )
listener . surfaceCreated ( ) ;
- setVerticalSynch ( false ) ;
+ setVerticalSynch ( true ) ;
}
@ override | changed vsynch on againf ro jogl |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XDebuggerEvaluationDialog extends DialogWrapper {
@ notnull XDebuggerEvaluator evaluator ,
@ notnull XExpression text ,
@... | set frame as a parent in evaluate dialogs it prevents it from closing when opened from another evaluate dialog |
<nb> public class PropertyStore extends AbstractStore implements Store
if ( value instanceof String )
{
int stringBlockId = nextStringBlockId ( ) ;
- System . out . println ( STRING0 + stringBlockId ) ;
record . setPropBlock ( stringBlockId ) ;
String string = ( String ) value ;
int length = string . leng... | Removed a System out |
<nb> public class CovariantEqualsCheck
}
COMMENT
- public int [ ] getAcceptableTokens ( )
+ public int [ ] getRequiredTokens ( )
{
- return new int [ ] { } ;
+ return getDefaultTokens ( ) ;
}
-
+
COMMENT
public void beginTree ( DetailAST aRootAST )
{ | defined CovariantEqualsCheck method getRequiredTokens to prevent |
<nb> public class IndexedWord implements AbstractCoreLabel , Comparable < IndexedWord > {
label . set ( CoreAnnotations . IndexAnnotation . class , index ) ;
}
+ public IndexedWord makeCopy ( int count ) {
+ CoreLabel labelCopy = new CoreLabel ( label ) ;
+ IndexedWord copy = new IndexedWord ( labelCopy ) ;... | Add a method which returns a copy of the IndexedWord in question |
<nb> public final class GrailsDomainBinder {
COMMENT
COMMENT
public static Mapping getMapping ( Class theClass ) {
- return MAPPING_CACHE . get ( theClass ) ;
+ return theClass != null ? MAPPING_CACHE . get ( theClass ) : null ;
}
COMMENT
<nb> public final class GrailsDomainBinder {
COMMENT
COMMEN... | now shows more helpful mapping exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
- > > > > > > > master
+
public abstract class TestUserApiBase { | Fix merge issue |
<nb> public class PackageResourceLoader extends XResourceLoader {
new DrawableResourceLoader ( drawableData ) . findDrawableResources ( resourcePath ) ;
new RawResourceLoader ( resourcePath ) . loadTo ( rawResources ) ;
-
- loadOtherResources ( resourcePath ) ;
- }
-
- protected void loadOtherResources ... | Remove unused PackageResourceLoader loadOtherResources hook |
<nb> public class CentralizedLogging extends AbstractLifeCycle
private CentralizedWebAppLoggingConfiguration webAppConfiguration ;
private String configurationFilename ;
- public CentralizedLogging ( )
- {
- System . err . println ( CentralizedLogging . class . getName ( ) + STRING0 ) ;
- }
-
public S... | Making configurationFilename on CentralizedLogging optional |
<nb> public class CoordinationTransformer implements TreeTransformer {
if ( VERBOSE ) {
System . err . println ( STRING0 + conjp ) ;
}
- return conjp ;
+ Tree movedRB = moveRB ( conjp ) ;
+ if ( VERBOSE ) {
+ System . err . println ( STRING1 + movedRB ) ;
+ }
+ return movedRB ;
}
private static ... | In cases of conjunctions attach not to the subtree it is actually negating |
<nb> public class ResourceManager {
log . error ( e . getMessage ( ) , e ) ;
}
}
+ File liveDir = context . getAppPath ( IndexConstants . LIVE_INDEX_DIR ) ;
for ( File f : files ) {
progress . startTask ( context . getString ( R . string . indexing_map ) + STRING0 + f . getName ( ) , - NUMBER0 ) ; SINGLE
... | Give correct names for update |
<nb> public class BuildInvocationsBuilder extends ProjectSensitiveToolingModelBuilder
findTasks ( project , selectorsByName , visibleTasks ) ;
for ( String selectorName : selectorsByName . keySet ( ) ) {
LaunchableGradleTaskSelector selector = selectorsByName . get ( selectorName ) ;
- selectors . add ( new Lau... | Avoid another unnecessary creation of new LaunchableGradleTaskSelector instance |
<nb> public class ApiModule extends AbstractModule {
bindConstant ( ) . annotatedWith ( Names . named ( org . eclipse . che . api . machine . server . WsAgentLauncherImpl . WS_AGENT_PROCESS_START_COMMAND ) )
. to ( STRING0 +
+ STRING1 +
STRING2 ) ;
install ( new org . eclipse . che . plugin . docker . mac... | Add chown to projects dir to make sure a current container user has write access to it |
<nb> public class LuceneHdfsDirectory extends Directory {
private final FSDataInputStream in ;
private String resourceDescription ;
- SINGLE
- SINGLE
+ SINGLE
private final List < HDFSIndexInput > clonedList ;
protected HDFSIndexInput ( String resourceDescription ) throws IOException { | closing the cloned HDFSIndexInput instances |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface Converter < S , T > {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
T convert ( S ... | Converter interface explicitly documents null values |
<nb> public class TourGuide {
COMMENT
mFrameLayout . addAnimatorSet ( animatorSet ) ;
mFrameLayout . addAnimatorSet ( animatorSet2 ) ;
- } else { SINGLE
+ } else if ( mTechnique != null && mTechnique == Technique . HorizontalRight ) { SINGLE
+
+ } else if ( mTechnique != null && mTechnique == Technique . ... | Undo a cleanup |
<nb> public class ExecutorInvokeAllServletTest {
COMMENT
COMMENT
COMMENT
- @ test
+ SINGLE
public void testProcessRequest ( ) throws Exception {
List < Future < Product > > results = executor . invokeAll ( tasks ) ;
int count = NUMBER0 ; | Commenting the test need to be fixed |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class RuntimeTestWlalker {
+ class RuntimeTestWalker {
private static final Field residualTestField ; | Revert accidental class name change |
<nb> public class TieredBlockStore implements BlockStore {
mMetadataLock . readLock ( ) . lock ( ) ;
try {
if ( ! mMetaManager . hasBlockMeta ( blockId ) ) {
+ mLockManager . unlockBlock ( lockId ) ;
throw new NotFoundException ( STRING0 + blockId + STRING1 ) ;
}
return lockId ; | Fix a bug not releasing block lock |
<nb> public class Hugo {
@ pointcut ( STRING0 )
public void withinAnnotatedClass ( ) { }
- @ pointcut ( STRING1 )
+ @ pointcut ( STRING2 )
public void methodInsideAnnotatedType ( ) { }
@ pointcut ( STRING3 ) | Prevent execution on synthetic methods of annotated classes |
<nb> public class BloomFilter extends Filter
numElements , bucketsPerElement , targetBucketsPerElem ) ) ;
}
BloomCalculations . BloomSpecification spec = BloomCalculations . computeBloomSpec ( bucketsPerElement ) ;
- logger . debug ( STRING0 , numElements , spec ) ;
+ logger . trace ( STRING0 , numElements , ... | Push BF debug logging to trace to fix LongCompactionSpeedTest timeouts |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in InstrumentationTestRunner page |
<nb> public class CoyoteAdapter implements Adapter {
log . debug ( sm . getString ( STRING0 , STRING1 , enc ) ) ;
}
- boolean warnedEncoding = false ;
-
while ( semicolon > - NUMBER0 ) {
SINGLE
int start = uriBC . getStart ( ) ; | Remove unused code |
<nb> public class ScoreBuildHistogram2 extends ScoreBuildHistogram {
for ( int row = NUMBER0 ; row < nnids . length ; row ++ )
if ( nnids [ row ] >= NUMBER0 )
rows [ nh [ nnids [ row ] ] ++ ] = row ;
- SINGLE
- SINGLE
+
}
@ override
protected void map ( int id ) {
<nb> public class ScoreBuildHistogr... | gbm update hot fix |
<nb> public class RoutingHelper {
SINGLE
if ( evalWaitInterval == NUMBER0 && settings . FOLLOW_THE_GPX_ROUTE . get ( ) == null ) {
showMessage ( context . getString ( R . string . osmand_routing_experimental ) , Toast . LENGTH_LONG ) ;
+ evalWaitInterval = NUMBER1 ;
}
serviceToUse = RouteService . CLOUDMADE... | suppress temporary switch to cloudmade even further |
<nb> public final class MultiWordPreprocessor {
}
if ( unigramTagger . firstKeySet ( ) . contains ( word ) )
- return Counters . argmax ( unigramTagger . getCounter ( word ) ) ;
+ return Counters . argmax ( unigramTagger . getCounter ( word ) , new POSTieBreaker ( ) ) ;
return ManualUWModel . getTag ( wor... | prefer nouns to everything else in unigram tagging |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMEN... | Improved JavaDocs for com hazelcast cache reviewed |
<nb> static public Iter iter ( Object coll )
}
+ static public Object box ( Object x )
+ {
+ return x ;
+ }
+
static public Character box ( char x )
{
return new Character ( x ) ; | added RT box Object |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
public class EscapeTest extends BaseTest {
+ private static JSONStyle style ;
+
+ @ beforeclass
+ public static void before ( ) {
+ ... | Fixed failing test |
<nb> public abstract class Packet {
SINGLE
if ( properties != null && ! properties . isEmpty ( ) ) {
xml . halfOpenElement ( STRING0 ) . xmlnsAttribute ( STRING1 ) ;
+ xml . rightAngelBracket ( ) ;
SINGLE
for ( String name : getPropertyNames ( ) ) {
Object value = getProperty ( name ) ; | Fix not well format packet exception when set property for packet |
<nb> public class NativeComponentModelPlugin implements Plugin < ProjectInternal > {
}
@ mutate
- void configurePrefixHeaderGenerationTasks ( final TaskContainer tasks , ModelMap < SourceComponentSpec > nativeComponents ) {
- for ( final SourceComponentSpec nativeComponentSpec : nativeComponents . values ( ) ... | Fixed problem configuring precompiled headers to native components when native test suite plugins applied |
<nb> public class MoreFutures {
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public static < V > List < V > getAll (
ListeningExecutorService executorService ,
Iterable < Callable < V > > callables ) throws ExecutionException , InterruptedException {
<nb> public class MoreFutures {
try {
... | avoid re interrupting when re throwing InterruptedException |
<nb> public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
@ override
public void onReceive ( Context context , Intent intent ) {
- android . os . Debug . waitForDebugger ( ) ;
Log_OC . d ( TAG , STRING0 + intent . getAction ( ) ) ;
if ( intent . getAction ( ) . equals ( NEW_PHOTO_ACTION_U... | remove debug cmd |
<nb> public class ConnectivityService extends IConnectivityManager . Stub
int notificationType ) {
if ( notificationType == ConnectivityManager . CALLBACK_AVAILABLE ) {
Intent intent = new Intent ( ) ;
- intent . putExtra ( ConnectivityManager . EXTRA_NETWORK , nri . request ) ;
- intent . putExtra ( Connecti... | Fix the ordering of extra values in the PI |
<nb> import NAMESPACE ;
if ( ! hasOutputFormat ) {
int audioObjectType = adtsScratch . readBits ( NUMBER0 ) + NUMBER1 ;
- if ( audioObjectType == NUMBER1 ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- Log . w ( TAG , STRING0 ) ;
+ if ( audioObjectType != NUMBER0 ) {
+ SINGLE
+ SINGLE
+ S... | Assume AAC LC or HE AAC in MPEG TS |
<nb> public class PssmShadowFilter extends Filter {
return pssmRenderer . getLambda ( ) ;
}
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed javadoc in PSSMShadowFilter |
<nb> public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
assertEquals ( expected , main . invoke ( null , arg , arg ) ) ;
}
+ public void testLongCmp ( ) throws Exception {
+ loadText ( STRING0 ) ;
+ System . out . println ( generateToText ( ) ) ;
+ final Method main = generateFunction... | failing test for long comparison |
<nb> public class ShiftReduceParser extends ParserGrammar implements Serializable {
SINGLE
SINGLE
SINGLE
+ SINGLE
SINGLE
SINGLE
- SINGLE
public static void main ( String [ ] args ) {
List < String > remainingArgs = Generics . newArrayList ( ) ; | Also update the Goldberg source from something to implement to something implemented |
<nb> public abstract class MarvelRenderer < T > extends Renderer < T > {
@ override protected void hookListeners ( View view ) {
}
- }
+ } | Added line at the end of the MarvelRenderer class |
<nb> public class SqaleMeasuresStep implements ComputationStep {
case LONG :
return measure . getLongValue ( ) ;
case DOUBLE :
- return new Double ( measure . getDoubleValue ( ) ) . longValue ( ) ;
+ return ( long ) measure . getDoubleValue ( ) ;
default :
return NUMBER0 L ;
} | fix quality flaw unnecessary boxing |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class MappingRegistry {
SINGLE
SINGLE
- for ( Object keyO : nbt . func_150296_c ( ) ) {
+ for ( Object keyO : new HashSet ( nbt . func_150296_c ( ) ) ) {
String key = ( String )... | fix an error when loading a blueprint with invalid mappings |
<nb> public final class SqlBrite {
} finally {
cursor . close ( ) ;
}
- subscriber . onCompleted ( ) ;
+ if ( ! subscriber . isUnsubscribed ( ) ) {
+ subscriber . onCompleted ( ) ;
+ }
}
} ) ;
} | Don t call onCompleted for the Query asRows mapper observable when it is unsubscribed |
<nb> public class FloatList implements Iterable < Float > {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void reverse ( ) {
int ii = count - NUMBER0 ;
<nb> public class IntList implements Iterable < Integer > {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void reverse ( ) {
... | Correcting descriptions of reverse method for FloatList IntList and StringList |
<nb> public class AboutFragment extends Fragment {
SINGLE
tv = v . findViewById ( R . id . aimsicd_github_link ) ;
- setLink ( tv , R . string . github_link ) ;
+ setLink ( tv , R . string . aimsicd_github_link ) ;
SINGLE
tv = v . findViewById ( R . id . aimsicd_disclaimer_link ) ; | Testing possible fix for changed strings |
<nb> public class ValidatorParameterHelper {
}
if ( currentParameterRequirement . isSatisfied ( parameter ) ) {
satisfiedParameterRequirements . add ( currentParameterRequirement ) ;
- } else if ( ! currentParameterRequirement . multiple ( ) ) {
- nextParameterRequirement ( ) ;
+ if ( ! currentParameterRequ... | Fix inOrder parameter validation |
<nb> import static NAMESPACE ;
COMMENT
public class TermsFacetSearchBenchmark {
- static long COUNT = SizeValue . parseSizeValue ( STRING0 ) . singles ( ) ;
+ static long COUNT = SizeValue . parseSizeValue ( STRING1 ) . singles ( ) ;
static int BATCH = NUMBER0 ;
static int QUERY_WARMUP = NUMBER1 ;
stati... | add more terms stats bench |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class CGIServlet extends HttpServlet {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMEN... | Remove dperecated code |
<nb> class AppCompatDelegateImplV7 extends AppCompatDelegateImplBase
SINGLE
SINGLE
if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . HONEYCOMB ) {
- if ( onKeyShortcut ( keyCode , event ) ) {
- return true ;
- }
+ onKeyShortcut ( keyCode , event ) ;
}
return false ;
} | Fix button on Gingerbread when using Toolbar |
<nb> public class TypeSimplifierTest extends TestCase {
assertTrue ( set . contains ( otherObjectMirror ) ) ;
assertFalse ( set . contains ( null ) ) ;
- assertFalse ( set . contains ( STRING0 ) ) ;
+ assertFalse ( set . contains ( ( Object ) STRING0 ) ) ;
assertFalse ( set . remove ( null ) ) ;
- assertF... | Suppress new CollectionIncompatibleType Error Prone check by casting |
<nb> public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
if ( this . informServer )
{
- SINGLE
+ SINGLE
HashMap < String , String > map = new HashMap < String , String > ( ) ;
- map . put ( STRING0 , Minecraft . getMinecraft ( ) . thePlayer . getName ( ) ) ;
+ if ( Minecraft... | Fixed null pointer error when error state occurs before a player exists |
<nb> public class SchemaServer {
if ( impl_class != Iced . class ) {
Pair < String , Integer > versioned = new Pair < > ( impl_class . getSimpleName ( ) , version ) ;
- SINGLE
- if ( iced_to_schema . containsKey ( versioned ) )
- throw H2O . fail ( STRING0 +
- iced_to_schema . get ( versioned ) + STRING1 ... | remove check that there could be only one class per version backing a particular Iced object |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.