diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class HiveConf extends Configuration {
private boolean isSparkRelatedConfig ( String name ) {
boolean result = false ;
if ( name . startsWith ( STRING0 ) ) { SINGLE
- result = true ;
+ SINGLE
+ result = ! name . equals ( STRING1 ) ;
} else if ( name . startsWith ( STRING2 ) ) { SINGLE
String... | Name yarn application name more meaning than just Hive on Spark Rui reviewed by Xuefu |
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
if ( mPushManagementService . available ( account ) ) {
mPushManagementService . registerPushTokenOnServer ( account ) ;
}
- mMessageArchiveService . executePendingQueries ( account ) ;
connectMultiModeConversations ( accoun... | execute pending mam queries every time we come online |
<nb> public abstract class DiskJournalCache implements InputCache , OutputCache {
@ override
public void add ( final Message message ) {
- LOG . debug ( STRING0 , message . toString ( ) ) ;
+ if ( LOG . isTraceEnabled ( ) ) {
+ LOG . trace ( STRING0 , message . toString ( ) ) ;
+ }
try {
synchronized ... | Change some log messages to trace level |
<nb> public class FileConsumer extends ScheduledPollConsumer < FileExchange > {
endpoint . configureMessage ( file , exchange . getIn ( ) ) ;
try {
if ( LOG . isDebugEnabled ( ) ) {
- LOG . debug ( STRING0 + file + STRING1 + exchange ) ;
+ LOG . debug ( STRING2 + file + STRING1 + exchange ) ;
}
if ( proce... | Fixed logging line had double space hawk eye strikes again |
<nb> public class TextField extends Widget {
if ( ! super . touchDown ( event , x , y , pointer , button ) ) return false ;
if ( pointer == NUMBER0 && button != NUMBER0 ) return false ;
Stage stage = getStage ( ) ;
- if ( stage != null ) stage . setKeyboardFocus ( TextField . this ) ;
keyboard . show ( true )... | Changed TextField selection order so external code can select all on click |
<nb> public class VcsHistoryDialog extends DialogWrapper implements DataProvider {
myList . getSelectionModel ( ) . addSelectionInterval ( NUMBER0 , NUMBER0 ) ;
}
} ) ;
-
- setTitle ( VcsBundle . message ( STRING0 , file . getName ( ) ) ) ;
}
private void canNotLoadRevisionMessage ( final VcsException e... | do not set dialog title twice |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
public class NeoServletContainer extends ServletContainer
{
+
public GraphDatabaseService db ;
public NeoServletContainer ( GraphDatabaseService db ) | Just tidying up some warnings |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JBCardLayout extends CardLayout {
public void actionPerformed ( ActionEvent e ) {
long timePassed = System . currentTimeMillis ( ) - startTime ;
if ( timePassed >= mySwipeTime ) {
+ Comp... | JBCardLayout keeps focused component when after swipe finishes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class GestureListenerWrapper extends GestureDetector . SimpleOnGestureListener {
+ public class GestureListenerWrapper extends GestureDetector . SimpleOnGestureListener {
private GestureDetector . SimpleOnGestureListener mDelegate ; | Bring zoomable control to dedupe gallery view |
<nb> import static NAMESPACE ;
public class Moco {
public static HttpServer httpserver ( final int port , final MocoConfig . . . configs ) {
- return ActualHttpServer . createSilientServer ( port , configs ) ;
+ return ActualHttpServer . createSilentServer ( port , configs ) ;
}
public static MocoConfig... | corrected a typo |
<nb> public class DanmakuUtils {
return true ;
}
- if ( d1 . isTimeOut ( ) ) {
+ if ( d1 . isTimeOut ( ) || d2 . isTimeOut ( ) ) {
return false ;
} | Fix collision detection of Danmaku |
<nb> public class HtmlContentHandler extends DefaultHandler {
int pos = content . toLowerCase ( ) . indexOf ( STRING0 ) ;
if ( pos != - NUMBER0 ) {
metaRefresh = content . substring ( pos + NUMBER1 ) ;
+ addToOutgoingUrls ( metaRefresh , localName ) ;
}
- addToOutgoingUrls ( metaRefresh , localName ) ;
} ... | Fix bug where metaRefresh was used instead of metaLocation |
<nb> public class DataTypeFactory {
( ( BigIntType ) liquibaseDataType ) . setAutoIncrement ( true ) ;
}
- if ( primaryKey && liquibaseDataType instanceof IntType ) {
- ( ( IntType ) liquibaseDataType ) . setAutoIncrement ( true ) ;
- }
- if ( primaryKey && liquibaseDataType instanceof BigIntType ) {
- ... | remove duplicate lines that have no effect |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports warnings |
<nb> public abstract class AbstractConsoleRunnerWithHistory {
public boolean process ( final AnActionEvent e , final String s ) {
new WriteCommandAction ( languageConsole . getProject ( ) , languageConsole . getFile ( ) ) {
protected void run ( final Result result ) throws Throwable {
- languageConsole . getEdi... | put caret to the end of the history entry |
<nb> public class ProjectRegistry {
boolean detected ) throws ServerException ,
ConflictException ,
NotFoundException {
- final RegisteredProject project = new RegisteredProject ( folder , config , updated , detected , this . projectTypeRegistry ) ;
+ final RegisteredProject project = new RegisteredProject ( ... | Initialize projects from unconfigured folders on starting WS agent |
<nb> public class GraphDbModule
private NodeManager nodeManager ;
private boolean readOnly = false ;
+ private boolean useNewCache = true ;
public GraphDbModule ( GraphDatabaseService graphDb ,
AdaptiveCacheManager cacheManager , LockManager lockManager ,
<nb> public class GraphDbModule
{
return ;
... | Added method to tell if soft reference based cache is in use or not |
<nb> public class WPComLoginActivity extends SherlockFragmentActivity {
settings . putString ( WordPress . WPCOM_USERNAME_PREFERENCE , mUsername ) ;
settings . putString ( WordPress . WPCOM_PASSWORD_PREFERENCE , WordPressDB . encryptPassword ( mPassword ) ) ;
settings . commit ( ) ;
-
- SINGLE
- WordPress .... | Remove extra call to updatedWPComCredentials as it occurs within the WordPressDB saveBlog method |
<nb> class AtomFeedChecker {
this . language = Objects . requireNonNull ( language ) ;
langTool = new JLanguageTool ( language ) ;
langTool . activateDefaultPatternRules ( ) ;
- langTool . disableRule ( STRING0 ) ; SINGLE
+ SINGLE
+ langTool . disableRule ( STRING0 ) ;
+ langTool . disableRule ( STRING1 )... | disable more rules to keep the database lean |
<nb> public class Object3D extends ATransformable3D implements Comparable < Object3D > ,
public Object3D clone ( boolean copyMaterial , boolean cloneChildren ) {
Object3D clone = new Object3D ( ) ;
cloneTo ( clone , copyMaterial ) ;
- clone . setRotation ( getRotation ( ) ) ;
- clone . setScale ( getScale ( )... | fixed clone rotation and scale cloning |
<nb> public class PercolateStats implements Streamable , ToXContent {
builder . field ( Fields . CURRENT , current ) ;
builder . field ( Fields . MEMORY_SIZE_IN_BYTES , memorySizeInBytes ) ;
builder . field ( Fields . MEMORY_SIZE , getMemorySize ( ) ) ;
+ builder . field ( Fields . QUERIES , getNumQueries ( ) )... | Add queries to XContent output of PercolateStats |
<nb> public class Ls extends NodeOrRelationshipApp
}
StringBuffer buf =
new StringBuffer ( getDisplayNameForCurrentNode ( ) ) ;
- buf . append ( STRING0 ) . append ( rel . getType ( ) ) ;
+ buf . append ( STRING0 ) . append ( rel . getType ( ) . name ( ) ) ;
if ( verbose )
{
buf . append ( STRING1 ) . a... | Doesn t use the RelationshipType toString but |
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal
@ override
public void onCreate ( Bundle icicle ) {
super . onCreate ( icicle ) ;
- returnResult = getIntent ( ) . getAction ( ) . equals ( SCAN_ACTION ) ;
+
+ SINGLE
+ SINGLE
+ returnResult = false ;
+
+ Intent ... | Added null checks for intent and action |
<nb> package NAMESPACE ;
import NAMESPACE ;
- SINGLE
+
public class PermanentlyFailingSecurityRuleWithWildcardPath implements SecurityRule
{
public static final String REALM = STRING0 ; SINGLE
- @ override
+
public boolean isAuthorized ( HttpServletRequest request )
{
return false ;
}
... | Updating documentation and snippets for wildcard blob auth security rules |
<nb> static public ClassLoader makeClassLoader ( ) {
} ) ;
}
- static ClassLoader baseLoader ( ) {
+ static public ClassLoader baseLoader ( ) {
if ( booleanCast ( USE_CONTEXT_CLASSLOADER . get ( ) ) )
return Thread . currentThread ( ) . getContextClassLoader ( ) ;
return ROOT_CLASSLOADER ; | made baseLoader public |
<nb> public class IQAuthHandler extends IQHandler implements IQAuthInfo {
UserNotFoundException
{
String resource = iq . elementTextTrim ( STRING0 ) ;
- resource = resource != null ? resource . toLowerCase ( ) : null ;
+ if ( resource != null ) {
+ try {
+ resource = Stringprep . resourceprep ( resource )... | Cannot optimize this |
<nb> public class EndpointWebMvcChildContextConfiguration {
COMMENT
COMMENT
@ configuration
- @ conditionalonmissingclass ( WebSecurityConfigurerAdapter . class )
+ @ conditionalonmissingclass ( name = STRING0 )
protected static class EndpointHandlerMappingConfiguration {
@ autowired ( required = false ... | Use a String when referencing a class with ConditionalOnMissingClass |
<nb> public class JmsPollEnrichTest extends CamelTestSupport {
public void testPollEnrichJms ( ) throws Exception {
template . sendBody ( STRING0 , STRING1 ) ;
- Thread . sleep ( NUMBER0 ) ;
-
MockEndpoint mock = getMockEndpoint ( STRING2 ) ;
mock . expectedBodiesReceived ( STRING1 ) ;
<nb> public cla... | Fixed unit test occational failing |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VisualStudioProjectMapper {
}
private String projectSuffix ( ProjectNativeBinary nativeBi... | Don t assume a limited set of native binary subtypes |
<nb> public class KCVSLog implements Log , BackendOperation . TransactionalProvider {
try {
final int timeslice = getTimeSlice ( nextTimestamp ) ;
long maxTime = Math . min ( Timestamps . MICRO . getTime ( ) - readLagTime , ( timeslice + NUMBER0 ) * TIMESLICE_INTERVAL ) ;
+ SINGLE
+ maxTime = Math . max ( max... | Prevent KCVSLog from slicing with end start |
<nb> public class RStudioAPI implements RStudioAPIShowDialogEvent . Handler
{
public RStudioAPI ( )
{
- SINGLE
}
@ inject
<nb> public class RStudioAPI implements RStudioAPIShowDialogEvent . Handler
{
globalDisplay_ . showMessage (
MessageDialog . INFO ,
+ event . getTitle ( ) ,
event . getMess... | finish up dialog event |
<nb> public class ProcessMainClassesMojo extends ProcessClassesMojo {
public File mainInputDir ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ProcessTestClassesMojo extends ProcessClassesMojo {
public File testInputDir ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMEN... | Fixed copy paste mistake in docs |
<nb> public class SessionTests extends SessionTestsBase {
setPermissions ( Arrays . asList ( new String [ ] { STRING0 } ) ) ) ;
fail ( STRING1 ) ;
} catch ( FacebookException e ) {
- assertTrue ( e . getMessage ( ) . contains ( STRING2 ) ) ;
+ assertTrue ( e . getMessage ( ) . contains ( STRING3 ) ) ;
} fin... | Fixing test issue |
<nb> public class XIpPrefix extends XHook {
private Methods mMethod ;
private XIpPrefix ( Methods method , String restrictionName ) {
- super ( restrictionName , STRING0 + method . name ( ) , null ) ;
+ super ( restrictionName , method . name ( ) , STRING0 + method . name ( ) ) ;
mMethod = method ;
} | Fix new IP prefix restrictions |
<nb> public class HystrixMetricsStreamHandler < I , O > implements RequestHandler < I , O > {
final Subject < Void , Void > subject = PublishSubject . create ( ) ;
final MultipleAssignmentSubscription subscription = new MultipleAssignmentSubscription ( ) ;
- Subscription actionSubscription = Observable . timer ... | Switch usage of Observable timer for Observable interval |
<nb> public class RFXComLighting6Message extends RFXComBaseMessage {
@ override
public String generateDeviceId ( ) {
- return sensorId + groupCode + STRING0 + unitcode ;
+ return sensorId + STRING0 + groupCode + STRING0 + unitcode ;
}
@ override | Fix the generateDeviceId method |
<nb> public class FileHandler
COMMENT
COMMENT
COMMENT
- private PrintWriter writer = null ;
+ private volatile PrintWriter writer = null ;
COMMENT
COMMENT
<nb> public class FileHandler
}
try {
+ PrintWriter writer = this . writer ;
if ( writer != null ) {
writer . write ( result ) ;
} el... | Make the file handler thread safe |
<nb> public class TestsPacketsReceiver implements PacketProcessor , Disposable {
public void notifyTestStart ( ObjectReader reader ) {
myCurrentTest = reader . readObject ( ) ;
- COMMENT
final JUnitRunningModel model = getModel ( ) ;
if ( model != null && myCurrentTest . getParent ( ) == null && model . get... | model root has no parents sic |
<nb> public class NotificationManagerService extends INotificationManager . Stub
long identity = Binder . clearCallingIdentity ( ) ;
try {
r . statusBarKey = mStatusBar . addNotification ( n ) ;
- mAttentionLight . pulse ( ) ;
+ if ( ( n . notification . flags & Notification . FLAG_SHOW_LIGHTS ) != NUMBER0 ) ... | Don t pulse LED on new notification unless notification has LED flag set |
<nb> public abstract class WsRemoteEndpointImplBase implements RemoteEndpoint {
sm . getString ( STRING0 ) ) ;
}
+ SINGLE
+ SINGLE
if ( buffer . position ( ) > NUMBER0 ) {
doWrite ( false ) ;
} | Add a comment to explain what is going on and why |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GTFSPatternHopFactory {
switch ( t . getTransferType ( ) ) {
case NUMBER0 :
SINGLE
- transferTable . setTransferTime ( ... | Represent timed synchronized transfers with edges instead of table entries |
<nb> public class TextEditingTarget implements EditingTarget
void handlePdfCommand ( final String completedAction )
{
- compilePdfDependencyChecker_ . ensureRnwConcordance ( docDisplay_ ) ;
+ if ( fileType_ . isRnw ( ) )
+ compilePdfDependencyChecker_ . ensureRnwConcordance ( docDisplay_ ) ;
saveThenExe... | only do concordance injection for rnw files |
<nb> public class InnerClassesScopeWrapper extends JetScopeImpl {
@ notnull
@ override
public ReceiverDescriptor getImplicitReceiver ( ) {
- return actualScope . getImplicitReceiver ( ) ;
+ return ReceiverDescriptor . NO_RECEIVER ;
}
@ override
public void getImplicitReceiversHierarchy ( @ notnull Lis... | Class object resolution scope should not have an implicit receiver |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SpringServletContainerInitializer implements ServletContainerInitia
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMME... | SpringServletContainerInitializer does not log WebApplicationInitializer class names |
<nb> public class DefaultDialerManager {
COMMENT
COMMENT
COMMENT
- public static void setDefaultPhoneApplication ( Context context , String packageName ) {
+ public static void setDefaultDialerApplication ( Context context , String packageName ) {
SINGLE
String oldPackageName = Settings . Secure . getStri... | Rename setDefaultDialerApplication for consistency |
<nb> import NAMESPACE ;
public abstract class ShellStep implements Step {
COMMENT
+ @ nullable
private ImmutableList < String > shellCommandArgs ;
COMMENT
<nb> public abstract class ShellStep implements Step {
protected ShellStep ( @ nullable File workingDirectory ) {
this . workingDirectory = wor... | Fixing some Nullable inconsistencies in shell |
<nb> public class TransformProcessor extends DelegateProcessor implements Processor {
Object newBody = expression . evaluate ( exchange ) ;
exchange . getOut ( ) . setBody ( newBody ) ;
- SINGLE
+ SINGLE
exchange . getOut ( ) . getHeaders ( ) . putAll ( exchange . getIn ( ) . getHeaders ( ) ) ;
-
+ exch... | Transform should also propagate attachments |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | added java headers |
<nb> public abstract class BaseEntityRef extends EntityRef {
public AssetUri getPrefabURI ( ) {
if ( exists ( ) ) {
EntityInfoComponent info = getComponent ( EntityInfoComponent . class ) ;
- if ( info != null && ! info . parentPrefab . exists ( ) ) {
+ if ( info != null && info . parentPrefab . exists ( ) ) ... | Fixed a issue in BaseEntityRef getPrefabURI |
<nb> public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory {
@ override
protected void runExecuteActionInner ( final AnActionEvent actionEvent ) {
+ try {
+ SINGLE
+ Thread . sleep ( NUMBER0 ) ;
+ }
+ catch ( InterruptedException e ) {
+ SINGLE
+ }
+
final Editor editor = getL... | Move timeout to more appropriate place |
<nb> public class Arrays {
int idx = indexOf ( member , members ) + NUMBER0 ;
if ( idx >= members . length ) idx = ( ( members . length > NUMBER1 ) ? NUMBER1 : - NUMBER0 ) ;
- SINGLE
- SINGLE
- SINGLE
return idx ;
} | Remove unused debug code |
<nb> public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh
@ override
public void onHttpResponseReceive ( HttpMessage msg , int initiator , HttpSender sender ) {
if ( initiator == HttpSender . ACTIVE_SCANNER_INITIATOR || initiator == HttpSender . SPIDER_INITIATOR
+ || initiator == Htt... | Skip process automated msgs for HTTP Sessions tab |
<nb> public class DbSqlSession implements Session {
SINGLE
PropertyEntity dbVersionProperty = selectById ( PropertyEntity . class , STRING0 ) ;
dbVersion = dbVersionProperty . getValue ( ) ;
- isUpgradeNeeded = ! ProcessEngine . VERSION . equals ( dbVersion ) ;
+ isUpgradeNeeded = isUpgradeNeeded ( dbVersion ... | Actually using the isUpgradeNeeded method now |
<nb> public final class UnsafeUtil {
}
} catch ( Throwable t ) {
unsafe = null ;
- LOGGER . warning ( STRING0 , t ) ;
+ logFailureToFindUnsafeDueTo ( t ) ;
}
UNSAFE = unsafe ;
UNSAFE_AVAILABLE = UNSAFE != null ;
<nb> public final class UnsafeUtil {
unsafe . putDouble ( buffer , normalize ( arrayBase... | Suppress find Unsafe exception when Log Level is not set to trace |
<nb> public class NewChunk extends Chunk {
SINGLE
final boolean fpoint = xmin < NUMBER0 || min < Long . MIN_VALUE || max > Long . MAX_VALUE ;
SINGLE
- if ( ! fpoint && ( _nzCnt + _naCnt ) * NUMBER1 < _len2 &&
- lemin > Short . MIN_VALUE && lemax <= Short . MAX_VALUE ) SINGLE
+ if ( ! fpoint && ( _nzCnt + _n... | Don t use the very sparse schemes for large chunks |
<nb> public class NetworkLinker {
}
}
- FindMaxWalkDistances . find ( graph ) ;
-
LOG . debug ( STRING0 ) ;
for ( BikeRentalStationVertex brsv : Iterables . filter ( vertices ,
BikeRentalStationVertex . class ) ) {
<nb> public class TestRequest extends TestCase {
planner . setNonpreferredTransferPen... | don t tag vertices with distances to stops too expensive |
<nb> public class IngestActionFilterTests extends ESTestCase {
verifyZeroInteractions ( executionService , actionFilterChain ) ;
}
+ public void testApplyBulkNoPipelineId ( ) throws Exception {
+ BulkRequest bulkRequest = new BulkRequest ( ) ;
+ bulkRequest . add ( new IndexRequest ( ) ) ;
+ Task task = m... | add test for bulk without any request holiding a pipeline id |
<nb> public class RCFileThriftOutputFormat extends RCFileOutputFormat {
getRecordWriter ( TaskAttemptContext job ) throws IOException , InterruptedException {
if ( typeRef == null ) {
- typeRef = ThriftUtils . getTypeRef ( HadoopCompat . getConfiguration ( job ) , RCFileProtobufOutputFormat . class ) ;
+ type... | Fix erroneous reference to RCFileProtobufOutputFormat configuration within RCFileThriftOutputFormat |
<nb> public class InputMethodsPanel extends LinearLayout implements StatusBarPanel ,
if ( imi2 == null ) return NUMBER0 ;
if ( imi1 == null ) return NUMBER1 ;
if ( mPackageManager != null ) {
- CharSequence imiId1 = imi1 . loadLabel ( mPackageManager ) ;
- CharSequence imiId2 = imi2 . loadLabel ( mPackageMana... | Add the Id of InputMethodInfo at the tail of Application label at sorting InputMethods |
<nb> public class InternalRubyIssueService {
this . userWriter = userWriter ;
}
- public Issue getIssueByKey ( String issueKey ) {
- return issueService . getByKey ( issueKey ) ;
- }
-
public List < Transition > listTransitions ( String issueKey ) {
return issueService . listTransitions ( issueKey ) ;... | Remove unused InternalRubyIssueService getIssueByKey |
<nb> public abstract class AbstractTable < Cursor , View , Query > extends AbstractTableOr
return AbstractQuery . createQuery ( types . getQueryClass ( ) , table , table . where ( ) ) ;
}
- SINGLE
+ COMMENT
public long lookup ( String value ) {
return table . lookup ( value ) ;
- }
+ COMMENT
publi... | moved lookup from Abstract table |
<nb> public class PyRequirementTest extends PyTestCase {
doRequirementVersionNormalizationTest ( STRING0 , STRING1 ) ;
}
+ SINGLE
+ public void testRequirementAlternateVersionNumber ( ) {
+ doRequirementVersionNormalizationTest ( STRING2 , STRING3 ) ;
+ }
+
+ SINGLE
+ public void testRequirementAlte... | Add tests for requirement version and local version numbers which are not normalized |
<nb> public abstract class BptBuilderBase implements IAreaProvider {
. world ( )
. getBlock ( slot . x , slot . y , slot . z )
. getBlockHardness ( context . world ( ) , slot . x , slot . y ,
- slot . z ) ;
- if ( hardness == NUMBER0 ) {
- hardness = NUMBER1 ;
- }
+ slot . z ) + NUMBER1 ;
if ( build... | Changed hardness to a linear relationship rather than a clamping one |
<nb> public class TomcatDataSourceConfigurationTests {
assertThat ( ds . getTimeBetweenEvictionRunsMillis ( ) ) . isEqualTo ( NUMBER0 ) ;
assertThat ( ds . getMinEvictableIdleTimeMillis ( ) ) . isEqualTo ( NUMBER1 ) ;
assertThat ( ds . getMaxWait ( ) ) . isEqualTo ( NUMBER2 ) ;
- assertThat ( ds . getValidation... | Fix failing test following Tomcat upgrade |
<nb> public class TestAll implements Test {
super . addTest ( test ) ;
}
else {
- if ( isPerformanceTestsRun ( ) ^ ( hasPerformance ( ( ( TestCase ) test ) . getName ( ) ) || hasPerformance ( testCaseClass . getSimpleName ( ) ) ) )
+ String name = ( ( TestCase ) test ) . getName ( ) ;
+ if ( STRING0 . equal... | Mute no tests warning take II |
<nb> public class CamelContextAwareTest extends CdiContextTestSupport {
@ inject
private ContextAwareBean bean ;
- @ inject
- private CamelContext context ;
-
@ test
public void shouldInjectCamelContextToBean ( ) throws InterruptedException {
assertNotNull ( bean . getCamelContext ( ) ) ; | avoid unnecessary extra injection point |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class PyElementType extends IElementType {
protected Class < ? extends PsiElement > _psiElementClass ;
private static final Class [ ] PARAMETER_TYPES = new Class [ ] { ASTNode . class } ;
+ private Constructor ... | Speed up python parsing a bit |
<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> import NAMESPACE ;
COMMENT
COMMENT
public cl... | removed dependency on groovy added by mistake |
<nb> public class NonBooleanMethodNameMayNotStartWithQuestionInspection
}
public void readSettings ( Element element ) throws InvalidDataException {
- System . out . println ( STRING0 ) ;
super . readSettings ( element ) ;
parseQuestionString ( ) ;
} | remove accidental System out println |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QualifiedTableName
return tableName ;
}
- public QualifiedName asQualifiedName ( )
- {
- return new QualifiedName ( ImmutableList . of ( catalogName , s... | Remove unsed method from QualifiedTableName |
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
}
} , null ) ;
} else {
+ SINGLE
+ mUrlEditText . setText ( STRING0 ) ;
finishCurrentActivity ( userBlogList ) ;
}
} | Stop persisting self hosted URL field after login |
<nb> public class Plugins {
}
private static void loadPlugins ( ) {
- try {
- System . out . println ( Class . forName ( STRING0 ) ) ;
- }
- catch ( Exception e ) {
- e . printStackTrace ( ) ;
- }
for ( Class < ? extends Plugin > pluginClass : reflections . getSubTypesOf ( Plugin . class ) ) {
- S... | Remove debug output |
<nb> public abstract class OsmandPlugin {
checkMarketPlugin ( app , new NauticalMapsPlugin ( app ) , false , NauticalMapsPlugin . COMPONENT , null ) ;
checkMarketPlugin ( app , new SkiMapsPlugin ( app ) , false , SkiMapsPlugin . COMPONENT , null ) ;
- checkMarketPlugin ( app , new RoutePointsPlugin ( app ) , fa... | Not properly functioning routes plugin |
<nb> public interface MyService {
List < Event > [ ] getEventsGenericsArrayList ( String location , int year ) throws RestClientException ;
@ get ( STRING0 )
+ List < Event > [ ] [ ] getEventsGenericsArrayList2 ( String location , int year ) throws RestClientException ;
+
+ @ get ( STRING0 )
List < List <... | add additional test case for arrays of generic types |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GrIntroduceConstantHandler extends GrIntroduceFieldHandlerBase < GrIn
}
@ override
- protected GrAbstractInplaceIntroducer < GrIntroduceConstantSettings > getIntroduce... | Introduce constant from string part |
<nb> import NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
public enum Scopes implements Scope {
COMMENT
- COMMENT
+ COMMENT
COMMENT
DEFAULT {
public < T > Factory < T > scope ( Key < T > key , Factory < T ... | Updated scope javadocs |
<nb> public class JavaDebuggerEvaluator extends XDebuggerEvaluator {
callback . errorOccurred ( STRING0 ) ;
return ;
}
- descriptor . setContext ( evalContext ) ;
- descriptor . updateRepresentation ( evalContext , DescriptorLabelListener . DUMMY_LISTENER ) ;
JavaDebugProcess process = myDebugProcess . getX... | do not evaluate values twice |
<nb> public abstract class BaseQuickAdapter < T , H extends BaseAdapterHelper > extends B
notifyDataSetChanged ( ) ;
}
+ public void replaceAll ( List < T > elem ) {
+ data . clear ( ) ;
+ data . addAll ( elem ) ;
+ notifyDataSetChanged ( ) ;
+ }
+
public boolean contains ( T elem ) {
return data ... | Add replaceAll method on BaseQuickAdapter |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT | Uses star instead of class imports |
<nb> public class WindowsSubprocessFactory implements Subprocess . Factory {
StringBuilder result = new StringBuilder ( ) ;
for ( Map . Entry < String , String > entry : realEnv . entrySet ( ) ) {
if ( entry . getKey ( ) . contains ( STRING0 ) ) {
- throw new IOException ( STRING1 ) ;
+ SINGLE
+ SINGLE
+ ... | Fixed a bug during bootstrap |
<nb> class UsageRepr {
throw new BuildDataCorruptedException ( e ) ;
}
}
+
+ @ override
+ public void toStream ( final DependencyContext context , final PrintStream stream ) {
+ stream . println ( STRING0 + context . getValue ( myClassName ) ) ;
+ }
}
public static class ClassExtendsUsage extends ... | correctly identify class usage in dumps |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PortalWebTestSuite extends BaseTests {
addTestSuite ( JournalContentSearchTests . class ) ;
addTestSuite ( LanguageTests . ... | update PortalWestTestSuite java |
<nb> public class RocksDBStore < K , V > implements KeyValueStore < K , V > {
try {
if ( ttl == TTL_NOT_USED ) {
dir . getParentFile ( ) . mkdirs ( ) ;
- return RocksDB . open ( options , dir . toString ( ) ) ;
+ return RocksDB . open ( options , dir . getAbsolutePath ( ) ) ;
} else {
throw new Unsupporte... | Pass absolute directory path to RocksDB open |
<nb> public class SPDYAsyncConnection extends AbstractConnection implements AsyncConn
catch ( Exception x )
{
close ( false ) ;
- handler . failed ( x , context ) ;
+ handler . failed ( x ) ;
}
finally
{ | Simplified Handler by removing the context parameter from failed |
<nb> public class GridSearch extends Job {
}
void updateErrors ( ArrayList < JobInfo > infos ) {
+ if ( jobs == null ) return ;
errors = new double [ jobs . length ] ;
int i = NUMBER0 ;
for ( Job job : jobs ) { | Avoid NPE in GridSearch |
<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
@ override
public void completed ( Integer result , AioSocketChannel channel ) {
- ByteBuf buf = channel . pipeline ( ) . outboundByteBuffer ( ) ;
-
+ ByteBuf buf = channel . unsafe ( ) . directOutboundContext ( ) . outbou... | Use the correct outbound buffer for flush the writes |
<nb>
package 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 ;
-
COMMENT ... | Remove listener on close |
<nb> public class TestChaosMonkeyArmy {
public void testBurnIo ( ) {
String key = STRING0 ;
- SINGLE
-
TestChaosMonkeyContext ctx = runChaosMonkey ( key ) ;
checkSelected ( ctx ) ;
<nb> public class TestChaosMonkeyArmy {
public void testFillDisk ( ) {
String key = STRING1 ;
- SINGLE
-
Test... | Remove todos from unit tests |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MediaPlayer
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a Javadoc to clarify when setAudioStreamType should be called |
<nb> package NAMESPACE ;
import NAMESPACE ;
- public class ServerCursor {
+ import NAMESPACE ;
+
+ public final class ServerCursor implements Serializable {
+
private final long id ;
private final ServerAddress address ; | Make ServerCursor final and Serializable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Blog {
return uri . getHost ( ) ;
} catch ( URISyntaxException e ) {
return StringUtils . unescapeHTML ( getHomeURL (... | Adding getWordPressComHost to find |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class InvalidCharComparisonPositiveCases {
- public boolean testEquality ( char c , Reader r ) {
+ public boolean testEquality ( char c , Reader r ) throws IOException {
SINGLE
... | Add thrown exception declaration |
<nb> private static Expr analyze ( C context , Object form , String name ) throws Exceptio
return registerKeyword ( ( Keyword ) form ) ;
SINGLE
SINGLE
- SINGLE
- SINGLE
+ else if ( fclass == String . class )
+ return new ConstantExpr ( ( ( String ) form ) . intern ( ) ) ;
SINGLE
SINGLE
else if ( for... | intern compiled string literals |
<nb> public final class AppLoginModule implements LoginModule {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
public boolean login ( ) throws LoginException {
<nb> public final class TachyonLoginModule implements LoginModule {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
CO... | Incorporated PR comments |
<nb> public class MaterialMultiSelectListPreference extends MultiSelectListPreference
onClick ( null , DialogInterface . BUTTON_POSITIVE ) ;
dialog . dismiss ( ) ;
final Set < String > values = new HashSet < > ( ) ;
- for ( CharSequence s : text )
- values . add ( ( String ) s ) ;
+ for ( int i : which ) { ... | Should save entry value |
<nb> public abstract class BazelJavaBuilder {
} catch ( IOException e ) {
e . printStackTrace ( ) ;
return NUMBER0 ;
- } finally {
- SINGLE
- SINGLE
- SINGLE
- System . gc ( ) ;
}
}
-
return NUMBER1 ;
} | Remove explicit GC calls in javac persistent worker |
<nb> public final class ActionBarView extends RelativeLayout {
}
public void setProgressBarIndeterminateVisibility ( boolean visible ) {
- mIndeterminateProgress . setVisibility ( visible ? View . VISIBLE : View . INVISIBLE ) ;
+ mIndeterminateProgress . setVisibility ( visible ? View . VISIBLE : View . GONE ... | Don t allow ind progress bar to occupy space when not in use |
<nb>
package NAMESPACE ;
- 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 ;
import NAMESPACE ;
-... | Remove unneeded imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultServerWebExchange implements ServerWebExchange {
if ( this . sessionMono == null ) {
synchronized ( this . createSessionLock ) {
... | Split FluxProcessor factories into individual Processor remove confusing factories |
<nb> public class NumberPicker extends LinearLayout {
updateInputTextView ( ) ;
updateIncrementAndDecrementButtonsVisibilityState ( ) ;
- if ( mFlingable ) {
+ if ( mFlingable && ! isInEditMode ( ) ) {
SINGLE
SINGLE
SINGLE
<nb> public class NumberPicker extends LinearLayout {
super . onAttachedToWin... | NumberPicker should not play initial animation while in edit mode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.