diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class CompilerManager {
public static CompilerManager getInstance ( Project project ) {
return ServiceManager . getService ( project , CompilerManager . class ) ;
}
-
+
+ public abstract boolean isCompilationActive ( ) ;
+
COMMENT
COMMENT
COMMENT
<nb> public abstract class Com... | disable compiler actions when compilation is running |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OperatorGroupByTest {
assertEquals ( NUMBER0 , sentEventCounter . get ( ) ) ;
}
+ @ ignore SINGLE
@ test
public void testStaggeredCompletion ( ) throws I... | Ignore Unit Test until Delay is Fixed |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ requires ( { @ facet ( SeaLevelFacet . class ) ,
@ facet ( value = SurfaceHeightFacet . class , border = @ facetborder ( bottom = NUMBER0 , sides = NUMBER1 ) ) ,
... | Fixing TreeProvider to extend the borders of BiomeFacet as it is needed by TreeRasterizer |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GetPatternsFromDataMultiClass implements Serializable {
}
if ( evalsents . size ( ) == NUMBER0 && goldEntitiesEvalFiles == null )
- System . err
- . println (... | Fix javadoc some whitespace |
<nb> public class GeoPointFieldMapper extends BaseGeoPointFieldMapper {
FIELD_TYPE . setNumericPrecisionStep ( GeoPointField . PRECISION_STEP ) ;
FIELD_TYPE . setDocValuesType ( DocValuesType . SORTED_NUMERIC ) ;
FIELD_TYPE . setHasDocValues ( true ) ;
- FIELD_TYPE . setStored ( true ) ;
FIELD_TYPE . freeze (... | Revert GeoPointField stored default back to false |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpEndpoint extends DefaultPollingEndpoint < HttpExchange > {
this . httpUri = httpURI ;
}
- public HttpProducer createProducer ( ) throws Exception {
+ public Producer < H... | fixed compile error in camel jetty |
<nb> public class SessionCookieTest {
SINGLE
SessionCookie sessionCookie = new SessionCookieImpl ( crypto , ninjaProperties ) ;
- verify ( ninjaProperties . getOrDie ( NinjaConstant . applicationCookiePrefix ) ) ;
+ verify ( ninjaProperties ) . getOrDie ( NinjaConstant . applicationCookiePrefix ) ;
}
@ ... | Fixed unit tests |
<nb> public final class FastHttpDateFormat {
date = internalParseDate ( value , threadLocalformats ) ;
updateParseCache ( value , date ) ;
} else {
- synchronized ( parseCache ) {
- date = internalParseDate ( value , formats ) ;
- updateParseCache ( value , date ) ;
- }
+ date = internalParseDate ( valu... | Remove unnecessary sync identified by FindBugs |
<nb> import NAMESPACE ;
COMMENT
public class SqlUtils {
- public
- @ intdef
- @ interface SaveMode {
+ @ deprecated
+ public @ intdef @ interface SaveMode {
}
COMMENT
<nb> public class SqlUtils {
COMMENT
public static final
@ savemode
+ @ deprecated
int SAVE_MODE_DEFAULT = NUMBER0 ;
... | deprecated the savemode class |
<nb> public class GithubApiUtil {
}
@ notnull
+ public static String getMasterToken ( @ notnull GithubAuthData auth , @ nullable String note ) throws IOException {
+ List < String > scopes = new ArrayList < String > ( ) ;
+
+ scopes . add ( STRING0 ) ; SINGLE
+ scopes . add ( STRING1 ) ; SINGLE
+
+ ... | add API function |
<nb> public class FeatureSuiteTest
{
}
- @ runwith ( Cucumber . class )
- @ cucumberoptions ( plugin = {
- STRING0 , STRING1 ,
- STRING2 ,
- STRING3 ,
- STRING4 ,
- } )
- public static class CostCompiled
- {
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ S... | Disable the compiled runtime from TCK testing |
<nb> public class FileIndexer implements BatchComponent {
private void indexFile ( InputFileBuilder inputFileBuilder , DefaultModuleFileSystem fileSystem , Progress progress , File sourceFile , InputFile . Type type ) {
DeprecatedDefaultInputFile inputFile = inputFileBuilder . create ( sourceFile ) ;
- SINGLE
... | Fix some possible NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class MortarContextWrapper extends ContextWrapper implements HasMortarScope {
+ class MortarContextWrapper extends ContextWrapper implements HasMortarScope {
private final MortarScope scope ;
private LayoutInflater inflater ; | Remove MortarContextWrapper from the public API |
<nb> public class DriverConductor implements Agent
connections
. stream ( )
- . filter ( ( connection ) - > connection . matches ( channelEndpoint , streamId ) && connection . status ( ) == NetworkConnection . Status . ACTIVE )
+ . filter ( ( connection ) - > connection . matches ( channelEndpoint , streamId ... | Cleaned up checkstyle error |
<nb> public class PoiUIFilter implements SearchPoiTypeFilter , Comparable < PoiUIFilter >
}
if ( amenityList . size ( ) == NUMBER0 && isAutomaticallyIncreaseSearch ( ) ) {
int step = NUMBER1 ;
- while ( amenityList . size ( ) == NUMBER0 && step -- > NUMBER0 && isSearchFurtherAvailable ( ) && ! SearchPOIActivity... | Fix compilation error |
<nb> public final class ExecutionGroupVertex {
final Iterator < ExecutionVertex > it = this . groupMembers . iterator ( ) ;
while ( it . hasNext ( ) ) {
- if ( it . next ( ) . getExecutionState ( ) != newExecutionState ) {
+ final ExecutionState es = it . next ( ) . getExecutionState ( ) ;
+ SINGLE
+ SING... | Fixed problem in state transition logic |
<nb> public class DefaultEmailSender implements EmailSender {
email . setSSL ( config . useSSL ( ) ) ;
email . send ( ) ;
} catch ( EmailException ee ) {
- log . warn ( STRING0 , ee ) ;
+ throw new EmailApiException ( ee , ErrorCode . EMAIL_SENDING_FAILED ) ;
}
}
} | throw exception on email delivery failure |
<nb> public class Accounts extends K9ListActivity implements OnItemClickListener , OnC
public void onExport ( final boolean includeGlobals , final Account account ) {
SINGLE
- final Set < String > accountUuids = new HashSet < String > ( ) ;
+ Set < String > accountUuids = null ;
if ( account != null ) {
+... | Fix code so accounts are exported when exporting everything |
<nb> public class WheelJoint extends Joint {
COMMENT
public Vector2 getLocalAnchorB ( ) {
- jniGetLocalAnchorA ( addr , tmp ) ;
+ jniGetLocalAnchorB ( addr , tmp ) ;
localAnchorB . set ( tmp [ NUMBER0 ] , tmp [ NUMBER1 ] ) ;
return localAnchorB ;
}
<nb> public class WheelJoint extends Joint {
COMMEN... | Use correct native methods |
<nb> public class JabberAccountID
public static final String ANONYMOUS_AUTH = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String BOSH_URL = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
public static final String GOOGLE_USER_SUFFIX = STRING2 ;
<nb> public class JabberAccountI... | Adds BOSH_URL property to JabberAccountID |
<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 ;
import NAMESPACE ;
<nb> public class RuleKey implemen... | Avoid reading the entire file into memory when hashing its contents |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StubProcessingHelper extends StubProcessingHelperBase {
details += STRING0 + psiFile ;
details += STRING1 + psiFile . getClass ( ) ;
details... | don t get compiled file text to diagnose stub psi mismatch |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ incubating
- public class TestExecutionException extends GradleException implements MultiCauseException {
+ public class TestExecutionException extends GradleException {
List < Throwable > causes = new ArrayList < Throwable > ( ) ;
<nb> public class TestExecut... | remove internal interface from TestExecutionException |
<nb> public abstract class AbstractTestQueries
throws Exception
{
assertQuery ( STRING0 ) ;
- assertQuery ( STRING1 ) ;
+ assertQuery ( STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING6 +
+ STRING7 ) ;
}
@ test | Rewrite the very slow test for join |
<nb> public class TestJsonStringEncoder
}
- SINGLE
public void testQuoteLongCharSequenceAsString ( ) throws Exception
{
JsonStringEncoder encoder = new JsonStringEncoder ( ) ; | Remove wrong comment |
<nb> public class GitUtil {
content = readFile ( child ) ;
}
catch ( IOException e ) {
- throw new RuntimeException ( STRING0 + child , e ) ;
+ LOG . error ( STRING1 + child , e ) ;
+ return null ;
}
String pathToDir ;
String prefix = STRING2 ; | handle reading exception more gracefully |
<nb> public class JLanguageTool {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public List < Rule > getAllRules ( ) {
<nb> public class JLanguageTool {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public List < Rule > getAll... | improve javadoc to avoid confusion of multiple rules with the same id |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MavenPropertyPsiReference extends MavenPsiReference {
}
private LookupElement createLoo... | kill InsertHandler LookupElementRenderer from LookupElement |
<nb> public class SeekBarPreference extends Preference
}
@ override
+ protected Object onGetDefaultValue ( TypedArray a , int index ) {
+ return a . getInt ( index , NUMBER0 ) ;
+ }
+
+ @ override
public boolean onKey ( View v , int keyCode , KeyEvent event ) {
if ( event . getAction ( ) != KeyEvent... | Implement SeekBarPreference onGetDefaultValue |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MultiAutoCompleteTextView extends AutoCompleteTextView {
COMMENT
COMMENT
COM... | Remove an unnecessary word from javadoc |
<nb> public class RssConverterTest extends RssDataFormatTest {
SINGLE
from ( STRING0 ) . convertBodyTo ( String . class ) . to ( STRING1 ) ;
SINGLE
- from ( STRING0 ) . convertBodyTo ( String . class ) . convertBodyTo ( SyndFeed . class ) . to ( STRING2 ) ;
+ from ( STRING3 ) . convertBodyTo ( String . class ... | Fixed unit test |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix build remove obsolete import of Animatable |
<nb> public class SettingsActivity extends PreferenceActivity implements OnPreference
registerBooleanPreference ( osmandSettings . USE_ENGLISH_NAMES , screen ) ;
registerBooleanPreference ( osmandSettings . AUTO_ZOOM_MAP , screen ) ;
registerBooleanPreference ( osmandSettings . FAST_ROUTE_MODE , screen ) ;
- re... | Fix settings issue |
<nb> public final class SafeTreeSet < E > implements Serializable , NavigableSet < E > {
}
@ override public NavigableSet < E > tailSet ( E fromElement , boolean inclusive ) {
- return delegate . tailSet ( checkValid ( fromElement ) , inclusive ) ;
+ return new SafeTreeSet < E > ( delegate . tailSet ( checkVa... | Fix SafeTreeSet so delegate tailSet is wrapped by a new SafeTreeSet as is headSet and subSet |
<nb> public class PythonRemoteSdkAdditionalData extends PythonSdkAdditionalData imple
rootElement . setAttribute ( PASSPHRASE , getSerializedPassphrase ( ) ) ;
rootElement . setAttribute ( USE_KEY_PAIR , Boolean . toString ( isUseKeyPair ( ) ) ) ;
- rootElement . setAttribute ( INTERPRETER_PATH , getInterpreter... | Fixed remote sdk interpreter path load |
<nb> public class ConversationActivity extends XmppActivity
}
this . mConversationFragment . reInit ( getSelectedConversation ( ) ) ;
mOpenConverstaion = null ;
- } else if ( getSelectedConversation ( ) != null ) {
- this . mConversationFragment . reInit ( getSelectedConversation ( ) ) ;
- } else {
+ } el... | don t reinit conversation when coming back to activity |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class Crawler {
return ;
}
+ MediaType mediaType = MediaType . parse ( contentType ) ;
+ if ( mediaType == null || ! ... | Don t waste bandwidth crawling non HTML resources |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class ChaosType {
+ COMMENT
+ private static final Logger LOGGER = LoggerFactory . getLogger ( ChaosType . c... | Log enabled status of ChaosTypes |
<nb> public class ColumnDefinition extends BaseDefinition implements FlowWriter {
adapterQueryBuilder . appendContentValues ( ) ;
adapterQueryBuilder . append ( STRING0 ) . appendParenthesisEnclosed ( STRING1 + foreignKeyReference . columnName ( ) + STRING1 ) ;
} else {
- SINGLE
adapterQueryBuilder . append (... | removed unnecessary commented line |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BehaviorSystem extends BaseComponentSystem implements Update... | Fix crash when a entity with a behavior gets unloaded |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectRepositoryPanel extends BasePanel {
public void onClick ( ) {
if ( GitBlit . self ( ) . deleteRepositoryModel ( entry ) ) {
info ( Me... | Fixed delete repository from repository panel |
<nb> public class ZMQ {
ByteBuffer buffer = ByteBuffer . allocate ( size ) ;
buffer . putInt ( event ) ;
buffer . put ( ( byte ) addr . length ( ) ) ;
+ buffer . put ( addr . getBytes ( ) ) ;
buffer . put ( ( byte ) flag ) ;
if ( flag == VALUE_INTEGER )
buffer . putInt ( ( Integer ) arg ) ; | fix missing frame at monitoring |
<nb> public class AvoidSpecificRoads {
SINGLE
View v = convertView ;
if ( position == NUMBER0 ) {
- TextView tv = ( TextView ) ctx . getLayoutInflater ( ) . inflate ( R . layout . list_menu_item_native , null ) ;
+ TextView tv = ( TextView ) ctx . getLayoutInflater ( ) . inflate ( R . layout . list_bigtextvie... | Fix avoid roads |
<nb> public class HttpRequest {
COMMENT
COMMENT
COMMENT
- public HttpRequestException ( final IOException cause ) {
+ protected HttpRequestException ( final IOException cause ) {
super ( cause ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public IOException getCause ( ) {
+ r... | Override getCause to return casted IOException |
<nb> 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 ;
import NAMESPACE ;
import NAMESPACE ;
- im... | Remove the dodgy ColorFilter on the RatingBar |
<nb> public final class HttpRemoteTask
if ( getTaskInfo ( ) . getState ( ) . isDone ( ) ) {
return ;
}
+ checkState ( continuousTaskInfoFetcher . isRunning ( ) , STRING0 ) ;
URI uri = getTaskInfo ( ) . getSelf ( ) ;
if ( uri == null ) {
<nb> public final class HttpRemoteTask
failTask ( cause ) ;
}
... | Add checkState to HttpRemoteTask cancel |
<nb> public class MiniHDFS {
tmp = Files . createTempFile ( baseDir , null , null ) ;
Files . write ( tmp , Integer . toString ( dfs . getNameNodePort ( ) ) . getBytes ( StandardCharsets . UTF_8 ) ) ;
Files . move ( tmp , baseDir . resolve ( PORT_FILE_NAME ) , StandardCopyOption . ATOMIC_MOVE ) ;
-
- SINGLE
... | Fail fast if HDFS cluster shuts itself down |
<nb> class SpdyHeaderBlockJZlibEncoder extends SpdyHeaderBlockRawEncoder {
}
if ( finished ) {
- throw new IllegalAccessException ( STRING0 ) ;
+ return Unpooled . EMPTY_BUFFER ;
}
ByteBuf decompressed = super . encode ( frame ) ;
<nb> class SpdyHeaderBlockZlibEncoder extends SpdyHeaderBlockRawEncoder... | replace exception in SpdyHeaderBlockZlibEncoder with EMPTY_BUFFER |
<nb> public class StaticLayout extends Layout {
while ( breakIndex < breakCount && paraStart + breaks [ breakIndex ] <= spanEnd ) {
int endPos = paraStart + breaks [ breakIndex ] ;
+ boolean moreChars = ( endPos < paraEnd ) ; SINGLE
+
v = out ( source , here , endPos ,
fmAscent , fmDescent , fmTop , fmBot... | Revert Fix missing ellipsis when just one character is truncated |
<nb> public class UIHelper {
char first = l . charAt ( NUMBER0 ) ;
if ( first != STRING0 && first != STRING1 ) {
String line = l . trim ( ) ;
+ if ( line . isEmpty ( ) ) {
+ continue ;
+ }
char last = line . charAt ( line . length ( ) - NUMBER1 ) ;
if ( builder . length ( ) != NUMBER0 ) {
builder . ap... | skip empty lines in message preview |
<nb> public abstract class NotificationListenerService extends Service {
}
private boolean isAmbient ( String key ) {
+ int firstAmbientIndex = mRankingUpdate . getFirstAmbientIndex ( ) ;
+ if ( firstAmbientIndex < NUMBER0 ) {
+ return false ;
+ }
int rank = getRank ( key ) ;
- return rank >= NUMBER0 ... | Fix speedbump when no low prio notifs |
<nb> public class PhoneStatusBar extends BaseStatusBar {
mNavigationBarView . getRecentsButton ( ) . setOnClickListener ( mRecentsClickListener ) ;
mNavigationBarView . getRecentsButton ( ) . setOnTouchListener ( mRecentsPreloadOnTouchListener ) ;
mNavigationBarView . getHomeButton ( ) . setOnTouchListener ( mHom... | Show the assist ring on center button longpress on lockscreen |
<nb> static public void writeClassFile ( String internalName , byte [ ] bytecode ) throws E
String genPath = ( String ) COMPILE_PATH . get ( ) ;
if ( genPath == null )
throw new Exception ( STRING0 ) ;
+ String [ ] dirs = internalName . split ( STRING1 ) ;
+ String p = genPath ;
+ for ( int i = NUMBER0 ; i ... | create child dirs of compile path but not compile path itself |
<nb> public class DefaultChannelPipeline implements ChannelPipeline {
public final void run ( ) {
try {
runTask ( ) ;
+
} catch ( Throwable t ) {
if ( t instanceof ChannelException ) {
cause = ( ChannelException ) t ;
<nb> public class DefaultChannelPipeline implements ChannelPipeline {
void await (... | Add missing synchronized |
<nb> public class CallInfoFrame
COMMENT
private void constructPeerInfo ( CallPeer callPeer , StringBuffer stringBuffer )
{
- long startTime = callPeer . getCallDurationStartTime ( ) ;
- long currentTime = System . currentTimeMillis ( ) ;
- long callNbTimeMsSpent = currentTime - startTime ;
+ Date startTim... | Corrects call duration computation for CallInfoFrame |
<nb> public final class ActivityStackSupervisor {
mService . mHandler . removeMessages ( LAUNCH_TIMEOUT_MSG ) ;
}
}
+ checkReadyForSleepLocked ( ) ;
}
boolean shutdownLocked ( int timeout ) {
boolean timedout = false ;
goingToSleepLocked ( ) ;
- checkReadyForSleepLocked ( ) ;
final long endTime ... | Fix a regression in pausing activity immediately on sleep |
<nb> public class IndexingMemoryController extends AbstractLifecycleComponent < Indexin
}
protected List < IndexShard > availableShards ( ) {
- List < IndexShard > activeShards = new ArrayList < > ( ) ;
+ List < IndexShard > availableShards = new ArrayList < > ( ) ;
for ( IndexService indexService : indic... | Clarify variable name in IndexingMemoryController availableShards |
<nb> public class NioEndpoint {
if ( key != null ) {
final KeyAttachment att = ( KeyAttachment ) key . attachment ( ) ;
if ( att != null ) {
+ att . access ( ) ; SINGLE
SINGLE
att . setFairness ( NUMBER0 ) ;
att . interestOps ( interestOps ) ; | reset timeout counter upon registration |
<nb> public abstract class AbstractTestOrcReader
}
@ test
+ public void testDoubleNaNInfinity ( )
+ throws Exception
+ {
+ tester . testRoundTrip ( javaDoubleObjectInspector , ImmutableList . of ( Double . NaN , Double . NEGATIVE_INFINITY , Double . POSITIVE_INFINITY ) , DOUBLE ) ;
+ }
+
+ @ test
... | Add tests for NaN and Infinity in TestOrcReader |
<nb> public abstract class StatusText {
} ;
myMouseMotionListener = new MouseAdapter ( ) {
+
+ private Cursor myOriginalCursor ;
+
@ override
public void mouseMoved ( final MouseEvent e ) {
if ( isStatusVisible ( ) ) {
if ( findActionListenerAt ( e . getPoint ( ) ) != null ) {
- myMouseTarget . se... | Don t change cursor to default if it hasn t been changed before |
<nb> public class Plugin extends AbstractMojo {
private MavenProject project ;
COMMENT
+ COMMENT
+ COMMENT
+ @ parameter
+ private boolean skip ;
+
+ COMMENT
COMMENT
COMMENT
@ parameter
<nb> public class Plugin extends AbstractMojo {
@ override
public void execute ( ) throws MojoExecutio... | Add Maven plugin skip property |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
... | Removed unused imports |
<nb> public class WalletTool {
long rotationTimeSecs = Utils . currentTimeSeconds ( ) ;
if ( options . has ( dateFlag ) ) {
rotationTimeSecs = options . valueOf ( dateFlag ) . getTime ( ) / NUMBER0 ;
+ } else if ( options . has ( unixtimeFlag ) ) {
+ rotationTimeSecs = options . valueOf ( unixtimeFlag ) ;
}... | allow rotation time to be specified in seconds |
<nb>
package 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 ;
imp... | Remove unused imports |
<nb> public class SearchRequestBuilder extends BaseRequestBuilder < SearchRequest , Sear
@ override
protected void doExecute ( ActionListener < SearchResponse > listener ) {
- request . source ( sourceBuilder ( ) ) ;
+ if ( sourceBuilder != null ) {
+ request . source ( sourceBuilder ( ) ) ;
+ }
client ... | when no specific internal source builder is constructed don t set it so setting raw source will not get override |
<nb> public class ArrangementMatchingRulesControl extends JBTable {
final Object target = getModel ( ) . getElementAt ( index ) ;
if ( target instanceof StdArrangementMatchRule ) {
- final Set < String > rules = ContainerUtil . newHashSet ( ) ;
for ( int i = NUMBER0 ; i < index ; i ++ ) {
final Object eleme... | Provide visual indication for duplicate rules |
<nb> public class ClosureCodegen extends GenerationStateAware {
}
public ClosureCodegen gen ( JetDeclarationWithBody fun , CodegenContext context , ExpressionCodegen expressionCodegen ) {
- SimpleFunctionDescriptor descriptor = bindingContext . get ( BindingContext . FUNCTION , fun ) ;
- assert descriptor != ... | Removed redundant code |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class DarculaInstaller {
- public static final String DARCULA_EDITOR_THEME_KEY = STRING0 ;
- public static final String DEFAULT_EDITOR_THEME_KEY = STRING1 ;
+ private static final String DARCULA_EDITOR_THEME_KEY = STRING0 ;
+ private static final String DEFAU... | make keys private |
<nb> import static NAMESPACE
import static NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ConnectionFactoryAdd implements ModelAddOperationHandler {
if ( context . getRuntimeContext ( ) != null ) {
context . getRuntimeContext... | remove system out |
<nb> public class BoundingSphere extends BoundingVolume {
return rVal ;
}
- return new BoundingSphere ( radius ,
- ( center != null ? ( Vector3f ) center . clone ( ) : null ) ) ;
+ return new BoundingSphere ( radius , center . clone ( ) ) ;
}
COMMENT | remove useless null check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShowAllAffectedGenericAction extends AnAction {
final AbstractVcs vcs = ProjectLevelVcsManager . getInstance ( project ) . fi... | use short git revision number in title of show affected paths |
<nb> public class DRF extends SharedTree < hex . tree . drf . DRFModel , hex . tree . drf . DRFModel
Timer kb_timer = new Timer ( ) ;
ktrees = buildNextKTrees ( _train , _mtry , _parms . _sample_rate , rand , tid ) ;
Log . info ( ( tid + NUMBER0 ) + STRING0 + kb_timer . toString ( ) ) ;
+ DRF . this . update ( ... | Add progress bar |
<nb> public class PactCompiler {
new NodeConnector ( ) . connectNodes ( bestPlanSinks ) ;
SINGLE
- Configuration config = GlobalConfiguration . getConfiguration ( ) ;
- new DeadlockResolver ( config . getBoolean ( STRING0 , true ) ) . resolveDeadlocks ( bestPlanSinks ) ;
+ SINGLE
+ new DeadlockResolver ( ... | reactivated deadlock resolver in PactCompiler |
<nb> import NAMESPACE ;
COMMENT
public class CompilerOptions {
- SINGLE
- @ suppresswarnings ( STRING0 )
- private boolean manageClosureDependencies = false ;
-
COMMENT
COMMENT
COMMENT
<nb> public class CompilerOptions {
dependencyOptions . setDependencyPruning (
newVal || dependencyOptions . ... | Remove unused and misleading field |
<nb> class AndroidEnvironment {
}
final EmulatorController emuController = EmulatorController . getInstance ( ) ;
- final State currentState = emuController . getState ( ) ;
- if ( currentState == State . NOT_RUNNING ) {
+ if ( emuController . getState ( ) == State . NOT_RUNNING ) {
try {
emuController ... | Don t need those conditions |
<nb> import NAMESPACE ;
public class Flavor implements Comparable < Flavor > {
public static final Flavor DEFAULT = new Flavor ( ) ;
- private static final Pattern VALID_FLAVOR_PATTERN = Pattern . compile ( STRING0 ) ;
+ private static final Pattern VALID_FLAVOR_PATTERN = Pattern . compile ( STRING1 ) ;
p... | Relax Flavor pattern restriction to allow |
<nb> public abstract class DiffWindowBase {
public void actionPerformed ( final AnActionEvent e ) {
myWrapper . close ( ) ;
}
- } . registerCustomShortcutSet ( CommonShortcuts . getCloseActiveWindow ( ) , myProcessor . getComponent ( ) , myWrapper ) ;
+ } . registerCustomShortcutSet ( CommonShortcuts . getClo... | Revert disposing for a while |
<nb> public class RoutingHelper {
if ( showToast . value ) {
String msg = app . getString ( R . string . new_route_calculated_dist ) + STRING0
+ OsmAndFormatter . getFormattedDistance ( res . getWholeDistance ( ) , app ) ;
- if ( res . getRoutingTime ( ) != FLOAT0 ) {
+ if ( OsmandPlugin . isDevelopment ( ) &... | Fix bug with wrong eta in toast |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
COMMENT
<nb> public class MockTridentTuple extends ArrayList < Object > implements TridentTuple {
}
private Map < String , I... | Drop use of Guava |
<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 ;
import NAMESPACE ;
import... | Removing wildcard imports |
<nb> public class BillCycleDayCalculator {
SINGLE
SINGLE
final CalculatedBillCycleDay calculatedBillCycleDay = new CalculatedBillCycleDay ( account . getTimeZone ( ) , date ) ;
- log . info ( STRING0 , new Object [ ] { date . toDateTimeISO ( ) , account . getTimeZone ( ) ,
- calculatedBillCycleDay . getDayOfM... | add subscription id in log line |
<nb> public class RatpackApp {
}
}
+ public Vertx getVertx ( ) {
+ return vertx ;
+ }
+
+ public HttpServer getHttpServer ( ) {
+ return httpServer ;
+ }
+
+ public String getHost ( ) {
+ return host ;
+ }
+
+ public int getPort ( ) {
+ return port ;
+ }
+
+ public boolean isRunn... | Provide some info about the app |
<nb> public class IncomingTcpConnection extends Thread
}
else
{
- SINGLE
- logger . error ( STRING0 ) ;
+ SINGLE
+ logger . error ( STRING1 ,
+ version , MessagingService . version_ ) ;
}
SINGLE
return ; | improve message logged for stream protocol mismatch |
<nb> public class CompilingClassLoader extends ClassLoader {
boolean valid = task . call ( ) ;
if ( valid ) {
for ( Diagnostic < ? > d : diagnostics . getDiagnostics ( ) ) {
- log . info ( d ) ;
+ String code = d . getCode ( ) ;
+ if ( code == null || ( ! code . startsWith ( STRING0 ) &&
+ ! STRING1 . equ... | Skip unnecessary warnings when deploying a Java class with success |
<nb> public abstract class BaseDataReader {
protected void doRun ( ) {
try {
+ boolean stopSignalled = false ;
while ( true ) {
- boolean read = readAvailable ( ) ;
+ final boolean read = readAvailable ( ) ;
- if ( ( ! read && isStopped ) || mySleepingPolicy == SleepingPolicy . BLOCKING ) {
- SINGLE... | before terminating read loop make sure all available output is read |
<nb> public class RepeatTaskCompleteListener extends BroadcastReceiver {
}
private static long handleMonthlyRepeat ( Date original , DateValue startDateAsDV , RRule rrule ) {
- SINGLE
- return invokeRecurrence ( rrule , original , startDateAsDV ) ;
+ if ( DateUtilities . isEndOfMonth ( original ) ) {
+ Ca... | Handle end of month repeating tasks better |
<nb> import NAMESPACE ;
public class Utils {
private static final String HEADER = STRING0 ;
-
+
public static void validateTachyonPath ( String path ) {
if ( ! path . startsWith ( HEADER ) ) {
System . out . println ( STRING1 ) ;
<nb> public class Utils {
System . exit ( - NUMBER0 ) ;
}
}
-
... | add cmd branch |
<nb> public class FactoryImpl {
try {
Long max = ( Long ) map . get ( name ) ;
if ( max == null ) {
- max = NUMBER0 l ;
- map . put ( name , NUMBER0 ) ;
+ max = NUMBER0 L ;
+ map . put ( name , NUMBER0 L ) ;
return max ;
} else {
Long newMax = max + NUMBER1 ; | Removing the map handling IdGenerator causes a ClassCastException at the next call of IdGenerator newId |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SchemaMapping implements Serializable {
return generatedTable ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void setDefaultS... | Added some Javadoc to SchemaMapping |
<nb> public class GitRefManager implements VcsLogRefManager {
VcsRef trackedRef = ContainerUtil
. find ( references , ref - > ref . getType ( ) . equals ( REMOTE_BRANCH ) && ref . getName ( ) . equals ( trackInfo . getRemoteBranch ( ) . getName ( ) ) ) ;
if ( trackedRef != null ) {
- name = trackInfo . getRemot... | vcs log add space into origin master |
<nb> public final class Metadata {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public synchronized void add ( String topic ) {
topics . put ( topic , TOPIC_EXPIRY_NEEDS_UPDATE ) ; | Fix wording in Metadata add javadoc |
<nb> public class BuildView {
skyframeBuildView . setTopLevelHostConfiguration ( configurations . getHostConfiguration ( ) ) ;
}
- public BuildConfigurationCollection getConfigurationCollection ( ) {
- return configurations ;
- }
-
COMMENT
COMMENT
COMMENT | Remove the last call to BuildView getConfigurationCollection and the method |
<nb> public class SentimentModel implements Serializable {
throw new RuntimeException ( STRING0 ) ;
}
Set < String > words = Generics . newHashSet ( ) ;
+ words . add ( op . unkWord ) ;
for ( Tree tree : trainingTrees ) {
List < Tree > leaves = tree . getLeaves ( ) ;
for ( Tree leaf : leaves ) { | Make sure to add random unk word vector |
<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 NAMES... | Making devkit s run configuration include extensions jar into initial classpath of the launched idea |
<nb> public class BackupManager extends StandardManager implements ClusterManager , Ma
if ( sessions instanceof LazyReplicatedMap ) {
LazyReplicatedMap map = ( LazyReplicatedMap ) sessions ;
- if ( map != null ) {
- map . breakdown ( ) ;
- }
+ map . breakdown ( ) ;
}
cluster . removeManager ( this )... | remove null check |
<nb> public class SpongePlayer extends AbstractPlayerActor {
private void sendColorized ( String msg , TextColor formatting ) {
for ( String part : msg . split ( STRING0 ) ) {
- this . player . sendMessage ( Text . of ( formatting , part ) ) ;
+ this . player . sendMessage ( Text . of ( formatting , TextSeria... | Fixed additional formatting bugs |
<nb> public class GrailsCoreDependencies {
} ;
registerDependencies ( dependencyManager , compileTimeDependenciesMethod , commonsExcludingLoggingAndXmlApis , STRING0 , STRING1 ) ;
- String datastoreMappingVersion = STRING2 ;
+ String datastoreMappingVersion = STRING3 ;
ModuleRevisionId [ ] compileDependenci... | use datastore snapshots |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MySQLTriggerManager extends SQLTriggerManager < MySQLTrigger , MySQLTa
}
protected void createOrReplaceTriggerQuery ( Lis... | add DROP TRIGGER |
<nb> public class TextUtils {
source = normalizeNewlines ( source ) ;
SINGLE
- Pattern pattern = Pattern . compile ( STRING0 ) ;
+ Pattern pattern = Pattern . compile ( STRING1 , Pattern . MULTILINE ) ;
Matcher matcher = pattern . matcher ( source ) ;
source = matcher . replaceAll ( STRING2 ) ;
<nb> p... | Fix up the whitespace normalization in TextUtils normalizeWhitespace |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public final class NetworkStats implements AutoCloseable {
- private final static String TAG = STRING0 ;
+ private final static String TAG = STRING1 ;
private final CloseGuard mCloseGuard = CloseGuard . get ( ... | Replace renamed reference to NetworkStats in javadoc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.