diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ImporterCSV implements FileImporter , LongTask {
edge = container . factory ( ) . newEdgeDraft ( ) ;
edge . setSource ( sourceNode ) ;
edge . setTarget ( targetNode ) ;
+ edge . setWeight ( weight ) ;
container . addEdge ( edge ) ;
} else {
edge . setWeight ( edge . getWeight ( ) + weigh... | Fix edge weight import in CSV matrix |
<nb> public class Tracker < RAW extends Trackable , BASE extends Trackable > {
if ( this == o ) {
return true ;
}
- LineAndLineHashKey that = ( LineAndLineHashKey ) o ;
+ LineHashKey that = ( LineHashKey ) o ;
SINGLE
return lineHash . equals ( that . lineHash )
&& ruleKey . equals ( that . ruleKey ) ; | Fix issue tracking when comparing only hash of line |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class ExternalRepository {
}
}
+ File root = RuntimeEnvironment . getInstance ( ) . getSourceRootFile ( ) ;
for ( Map . Entry < String , List < HistoryEntr... | Do not create history cache for directories |
<nb> public class PaymentStateMachineHelper {
private static final String CHARGEBACK_SUCCESS = STRING0 ;
private static final String AUTHORIZE_PENDING = STRING1 ;
+ private static final String PURCHASE_PENDING = STRING2 ;
+ private static final String REFUND_PENDING = STRING3 ;
+ private static final String... | add missing pending states in PaymentStateMachineHelper getPendingStateForTransaction |
<nb> public class VcsStructureChooser extends DialogWrapper {
VirtualFile file = getFile ( value ) ;
DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) value ;
if ( file == null ) {
- if ( value instanceof DefaultMutableTreeNode ) {
+ if ( value != null ) {
Object uo = node . getUserObject ( ) ;
if ... | vcs log remove unnecessary instanceof |
<nb> public class BeanSerializerTest {
BeanSerializer serializer = new BeanSerializer ( ) ;
serializer . setAddToString ( true ) ;
serializer . serialize ( type , SimpleSerializerConfig . DEFAULT , new JavaWriter ( writer ) ) ;
- SINGLE
+ assertTrue ( String . valueOf ( writer ) . contains (
+ STRING0
+ +... | Add verification test for Override annotation |
<nb> public class SQLServer2005Dialect extends SQLServerDialect {
SINGLE
SINGLE
SINGLE
+ registerColumnType ( Types . BLOB , STRING0 ) ;
registerColumnType ( Types . VARBINARY , STRING0 ) ;
registerColumnType ( Types . VARBINARY , MAX_LENGTH , STRING1 ) ;
-
registerColumnType ( Types . LONGVARBINARY , S... | registered some more columntypes as varchar max and varbinary max |
<nb> public class BalancedShardsAllocator extends AbstractComponent implements Shards
return index == null ? NUMBER0 : index . numShards ( ) ;
}
- public Collection < ShardRouting > shards ( ) {
- Collection < ShardRouting > result = new ArrayList < > ( ) ;
- for ( ModelIndex index : indices . values ( ) ) ... | Removed unused methods |
<nb> public class LocalNotificationOptions {
COMMENT
COMMENT
LocalNotificationOptions ( JSONObject options ) {
+ String repeat = options . optString ( STRING0 ) ;
+
this . options = options ;
date = options . optLong ( STRING1 ) * NUMBER0 ;
- SINGLE
id = options . optString ( STRING2 ) ;
+
+ if ( ... | Added interval support |
<nb> public abstract class AbstractByteBufTest {
@ test
public void testLittleEndianWithExpand ( ) {
ByteBuf buffer = releaseLater ( newBuffer ( NUMBER0 ) ) . order ( LITTLE_ENDIAN ) ;
- System . out . println ( buffer . getClass ( ) ) ;
buffer . writeInt ( NUMBER1 ) ;
- System . out . println ( ByteBufUtil... | Remove System out println debug messages |
<nb> public class LocalOnlyOkHttpDownloader implements Downloader {
connection . setUseCaches ( true ) ;
if ( localCacheOnly ) {
connection . setRequestProperty ( STRING0 ,
- STRING1 + Integer . MAX_VALUE ) ;
+ STRING1 + Integer . MAX_VALUE
+ + STRING2 + Integer . MAX_VALUE ) ;
}
int responseCode = co... | Set max stale on picasso http clients |
<nb> public class TypeFieldMapper extends AbstractFieldMapper < String > implements Inte
return value . toString ( ) ;
}
- public Term term ( String value ) {
- return names ( ) . createIndexNameTerm ( value ) ;
- }
-
@ override
public Query termQuery ( Object value , @ nullable QueryParseContext cont... | remove unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
-
COMMENT
COMMENT
COMMENT | remove unused import |
<nb> abstract public class GoLiveTemplateContextType extends TemplateContextType {
@ override
protected boolean isInContext ( @ notnull PsiElement element ) {
+ if ( element instanceof PsiComment ) {
+ return false ;
+ }
return element instanceof GoFile || element . getParent ( ) instanceof GoFile && ! ( ... | Do not suggest live templates in comments |
<nb> public class Span implements Serializable , Iterable < Integer > {
}
public static Span fromValues ( Object . . . values ) {
- if ( values . length == NUMBER0 ) {
- return fromValues ( values [ NUMBER1 ] , values [ NUMBER1 ] instanceof Number ? ( ( Number ) values [ NUMBER1 ] ) . intValue ( ) + NUMBER0 :... | Adding tested mt tools ModifiedMooreLewisCorpusSelection borrowing heavily from Thangs Moore Lewis code |
<nb> public class ListCursorCardFragment extends BaseFragment implements LoaderManage
header . setPopupMenu ( R . menu . popupmain , new CardHeader . OnClickCardHeaderPopupMenuListener ( ) {
@ override
public void onMenuItemClick ( BaseCard card , MenuItem item ) {
- Toast . makeText ( getContext ( ) , STRING0 ... | Fixed an issue on CursorCard demo |
<nb> public abstract class StartupManager {
public abstract void registerPostStartupActivity ( @ notnull Runnable runnable ) ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class StartupManagerImpl extends StartupManagerEx {
action . ... | execute runWhenProjectIsInitialized immediately whatever the modality fixes blinking appcode cidr tests |
<nb> public class AclEntryAfterInvocationProvider extends AbstractAclProvider impleme
super ( aclService , STRING0 , requirePermission ) ;
}
+ public AclEntryAfterInvocationProvider ( AclService aclService , String processConfigAttribute ,
+ List < Permission > requirePermission ) {
+ super ( aclService , p... | Added extra constructor which allows setting of the config attribute name |
<nb> class WriteBehindQueueManager implements WriteBehindManager {
if ( ! owner . equals ( thisAddress ) ) {
if ( now < lastRunTimeInNanos + backupWorkIntervalTimeInNanos ) {
doInBackup ( queue , delayedEntries , partitionId ) ;
- lastRunTimeInNanos = now ;
}
continue ;
}
<nb> class WriteBehindQueueMana... | set right time before backup starts processing nex time |
<nb> public class GitContentRevision implements ContentRevision {
Project project ,
boolean isDeleted , final boolean canBeDeleted , boolean unescapePath ) throws VcsException {
final FilePath file = createPath ( vcsRoot , path , isDeleted , canBeDeleted , unescapePath ) ;
- if ( revisionNumber != null ) {
+ ... | handle VcsRevision NULL |
<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub {
private static final int MAX_POOL_SIZE = NUMBER0 ;
+ private static final int WINDOW_ID_UNKNOWN = - NUMBER1 ;
+
private static int sIdCounter = NUMBER2 ;
private static int sNextWindowId ;
<nb> public class Accessibil... | Send accessibility events with no window |
<nb> public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe
} finally {
try {
impl . notifyListeners ( ) ;
- try {
- impl . getResponse ( false ) . getOutputStream ( ) . close ( ) ;
- } catch ( Throwable t ) {
- try {
- impl . getResponse ( false ) . getWriter ( ) . close ( )... | Remove old legacy code for early Comet Server |
<nb> public class ListRepresentation extends Representation
void serialize ( ListSerializer serializer )
{
- for ( Representation repr : content )
+ Iterator < ? extends Representation > contentIterator = content . iterator ( ) ;
+
+ try
+ {
+ while ( contentIterator . hasNext ( ) )
+ {
+ Represen... | Ensure that representation drains the iterator of there s an exception while rendering |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
}
this . memops = ops ;
}
+
+ public long estimateKeys ( )
+ {
+ return ssTables . estimatedKeys ( ) ;
+ }
}
<nb> public interface ColumnFamilyStoreMBean
public double getMemtableOperationsInMillions ( ) ;
public void setMem... | Expose SSTableTracker estimatedKeys for quickly estimating CF size |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class KeyMap
return node != null && ! node . getChildren ( ) . isEmpty ( ) ;
}
+ public void forEachBinding ( CommandWith... | forEachBinding helper for KeyMap |
<nb> public interface ListenableFuture < V > extends Future < V > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a warning about deadlocks |
<nb> public final class Session
{
return toStringHelper ( this )
. add ( STRING0 , getUser ( ) )
- . add ( STRING1 , source )
+ . add ( STRING1 , source . orElse ( null ) )
. add ( STRING2 , catalog )
. add ( STRING3 , schema )
. add ( STRING4 , timeZoneKey )
. add ( STRING5 , locale )
- . add ( STR... | Omit null values in Session toString |
<nb> public class PyCharmInitialConfigurator {
propertiesComponent . setValue ( STRING0 , true ) ;
CodeInsightSettings . getInstance ( ) . REFORMAT_ON_PASTE = CodeInsightSettings . NO_REFORMAT ;
}
+ if ( ! propertiesComponent . getBoolean ( STRING1 ) ) {
+ propertiesComponent . setValue ( STRING1 , true ) ;
... | turn smart indent on by default |
<nb> public abstract class GLMTask {
ArrayUtils . mult ( _gradient , _reg ) ;
for ( int j = NUMBER0 ; j < _beta . length - NUMBER1 ; ++ j )
_gradient [ j ] += _currentLambda * _beta [ j ] ;
- System . out . println ( STRING0 + Arrays . toString ( _beta ) + STRING1 + Arrays . toString ( _gradient ) + STRING2 + _... | Removed forgotten debug print |
<nb> public class DynamicCounterTest {
DynamicCounter . increment ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ;
DynamicCounter . increment ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ;
Counter c2 = getByName ( STRING0 ) ;
- assertEquals ( c . getValue ( ) . longValue ( ) , NUMBER0 ) ;
+ assert... | Fix typo in test |
<nb> public abstract class AbstractOneDReader implements OneDReader {
SINGLE
SINGLE
int middle = height > > NUMBER0 ;
- int rowStep = Math . max ( NUMBER0 , height > > NUMBER1 ) ;
- for ( int x = NUMBER2 ; x < NUMBER3 ; x ++ ) {
+ int rowStep = Math . max ( NUMBER0 , height > > NUMBER4 ) ;
+ for ( int x =... | Check fewer lines and make sure we don t run off the top bottom of image |
<nb> public class InstructionOffsetMap {
this . instructionCodeOffsets = instructionCodeOffsets ;
}
+ public int getInstructionIndexAtCodeOffset ( int codeOffset ) {
+ return getInstructionIndexAtCodeOffset ( codeOffset , true ) ;
+ }
+
public int getInstructionIndexAtCodeOffset ( int codeOffset , boole... | Add a version of getInstructionIndexAtCodeOffset that defaults to exact |
<nb> public class AndroidDisplayer extends AbsDisplayer < Canvas > {
applyPaintConfig ( danmaku , paint , false ) ;
canvas . drawText ( lines [ NUMBER0 ] , left , top - paint . ascent ( ) , paint ) ;
} else {
- Float textHeight = danmaku . paintHeight / lines . length ;
+ float textHeight = danmaku . paintHei... | Float float no necessary to use wrapper |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class EditorChangeAction implements UndoableAction {
private DocumentEx getDocument ( ) {
if ( myDocument != null ) return myDocument ;
+ if ( ! myDocu... | change delete file after undo file restored without content because changes were made to the cached document |
<nb> public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser
case Any : return Languages . Language . Unknown ;
case English : return Languages . Language . English ;
case Chinese : return Languages . Language . Chinese ;
+ case UniversalEnglish : return Languages . Language . Engli... | added UniversalEnglish to GrammaticalStructure getLanguage |
<nb> public class XaDataSourceDefinition extends SimpleResourceDefinition {
}
@ override
+ public void registerCapabilities ( ManagementResourceRegistration resourceRegistration ) {
+ if ( ! deployed )
+ resourceRegistration . registerCapability ( Capabilities . DATA_SOURCE_CAPABILITY ) ;
+ }
+
+ @ ov... | Adding Override registerCapabilities method |
<nb> class JDBCHistoryCache implements HistoryCache {
QUERIES . load ( klazz . getResourceAsStream (
klazz . getSimpleName ( ) + STRING0 ) ) ;
} catch ( IOException ioe ) {
- throw new Error ( ioe ) ;
+ throw new ExceptionInInitializerError ( ioe ) ;
}
} | Fixed PMD warning avoid throwing raw exception types |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ serverendpoint ( value = STRING0 )
+ @ serverendpoint ( STRING0 )
@ logging
public class MyEndpointWithCDI {
@ inject MyBean bean ;
- @ inject ServletCon... | Removing fields that cannot be injected here |
<nb> public class PastSnapshotFinderByPreviousVersion implements BatchExtension {
String currentVersion = projectSnapshot . getVersion ( ) ;
Integer resourceId = projectSnapshot . getResourceId ( ) ;
Long snapshotId ;
+ SINGLE
+ session . commit ( ) ;
try ( DbSession dbSession = mybatis . openSession ( fals... | Fix lock of project table in devcockpit |
<nb> public class DefUseInspectionBase extends BaseJavaBatchLocalInspectionTool {
}
else {
if ( REPORT_REDUNDANT_INITIALIZER ) {
+ List < LocalQuickFix > fixes = ContainerUtil . createMaybeSingletonList ( isOnTheFly ? createRemoveInitializerFix ( ) : null ) ;
holder . registerProblem ( psiVariable . getInitia... | hide fix with possible dialogs in batch mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMME... | TerrainQuad documentation patch thanks slyh |
<nb> public class JettyWebSocketSupportTest extends BaseTest {
@ beforemethod ( alwaysRun = true )
public void startServer ( ) throws Exception {
- int port = NUMBER0 ;
+ int port = findFreePort ( ) ;
urlTarget = STRING0 + port + STRING1 ;
server = new Server ( port ) ; | Use a free port |
<nb> public class DefaultBroadcaster implements Broadcaster {
bc . getBroadcasterCache ( ) . start ( ) ;
setID ( name ) ;
+ logger . debug ( STRING0 , name , lifeCyclePolicy . getLifeCyclePolicy ( ) . name ( ) ) ;
SINGLE
if ( notifierFuture == null && asyncWriteFuture == null ) {
spawnReactor ( ) ; | Log the BroadcasterLifeCyclePolicy |
<nb> public class WifiInfo implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public String getSSID ( ) { | Fix incorrect doc for WifiInfo getSSID |
<nb> public class ChineseConverterTest extends ResourceActivitiTestCase {
}
protected void deployProcess ( BpmnModel bpmnModel ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ byte [ ] xml = new BpmnXMLConverter ( ) . convertToXML ( bpmnModel ) ;
+ try {
+ Deployment deploy... | Bring chinese test back |
<nb> public class MessageTimeoutTest extends ActorBaseTest
SINGLE
Future < UUID > first = someActor . getUniqueActivationId ( TimeUnit . SECONDS . toNanos ( NUMBER0 ) ) ;
SINGLE
- awaitFor ( ( ) - > isIdle ( stage1 ) ) ;
clock . incrementTimeMillis ( TimeUnit . MINUTES . toMillis ( NUMBER1 ) ) ;
SINGLE
Fu... | Removing unnecessary wait |
<nb> public class FeedUtils {
public static boolean isRTL ( FeedEntry entry ) {
String content = entry . getContent ( ) . getContent ( ) ;
- Direction direction = BidiUtils . get ( ) . estimateDirection ( content , true ) ;
+ String text = Jsoup . parse ( content ) . text ( ) ;
+ if ( StringUtils . isBlank ... | keep text only before detecting direction use jsoup because bidiutils html stripping is too restrictive |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix straggler in qa tests |
<nb> public class ChatRoomTableDialog
public void keyReleased ( KeyEvent e )
{
updateOKButtonEnableState ( ) ;
+ if ( e . getKeyCode ( ) == KeyEvent . VK_ENTER && okButton . isEnabled ( ) )
+ {
+ okButton . doClick ( ) ;
+ }
}
} ;
SINGLE | add KeyEvent handling for ENTER key default |
<nb> public class InitCommandTest {
assertTrue ( tempDir . exists ( ) ) ;
assertTrue ( new File ( tempDir + STRING0 ) . exists ( ) ) ;
- assertTrue ( new File ( tempDir + STRING1 ) . exists ( ) ) ;
+ assertTrue ( new File ( tempDir + STRING2 ) . exists ( ) ) ;
assertTrue ( new File ( tempDir + STRING3 ) . e... | Correcting InitCommandTest for new file naming |
<nb> public class StickyListHeadersListView extends FrameLayout {
return mList . getItemIdAtPosition ( position ) ;
}
+ @ override
public void setOnCreateContextMenuListener ( OnCreateContextMenuListener l ) {
mList . setOnCreateContextMenuListener ( l ) ;
}
+ @ override
public boolean showContextMe... | Removed redundant Build Version SDK_INT check |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | fix missing import |
<nb> public class RedisClient {
public RedisClient ( final Timer timer , ExecutorService executor , EventLoopGroup group , Class < ? extends SocketChannel > socketChannelClass , String host , int port ,
int connectTimeout , int commandTimeout ) {
+ if ( timer == null ) {
+ throw new NullPointerException ( STR... | Add null check for timer and assign to variable so it is shutdown |
<nb> public class ConfigurationPropertiesReportEndpoint extends
COMMENT
private void applyCglibFilters ( ObjectMapper mapper ) {
mapper . setAnnotationIntrospector ( new CglibAnnotationIntrospector ( ) ) ;
- mapper . setFilters ( new SimpleFilterProvider ( ) . addFilter ( CGLIB_FILTER_ID ,
+ mapper . setFilte... | Fix deprecation warning in ConfigurationPropertiesReportEndpoint |
<nb> package NAMESPACE ;
COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
+ @ deprecated
public interface CopyActionImpl {
}
<nb> package NAMESPACE ;
COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
+ @ deprecated
public class FileCopyActionImpl {
}
<nb> package NAMESPACE ;
COMMENT
COMMENT
... | Marked the placeholder interfaces as Deprecated |
<nb> public class Camera implements Savable , Cloneable {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public void setDirection ( Vector3f direc... | Camera setDirection now deprecated since it doesn t do the thing most people expect it |
<nb> public final class AnalyticsTracker {
OPENED_MEDIA_LIBRARY ,
OPENED_SETTINGS ,
CREATED_ACCOUNT ,
- CREATED_SITE ,
SHARED_ITEM ,
ADDED_SELF_HOSTED_SITE ,
SIGNED_IN ,
<nb> public class AnalyticsTrackerMixpanel implements AnalyticsTracker . Tracker {
instructions = AnalyticsTrackerMixpanelInstructio... | Removing unused CREATED_SITE tracking point |
<nb> public class JsonReader extends AbstractBsonReader {
}
}
- private void setStateOnEnd ( ) {
- switch ( getContext ( ) . getContextType ( ) ) {
- case ARRAY :
- case DOCUMENT :
- setState ( State . TYPE ) ;
- break ;
- case TOP_LEVEL :
- setState ( State . DONE ) ;
- break ;
- default :
... | Remove unused private method in JsonReader |
<nb> public final class DisplayManagerService extends IDisplayManager . Stub {
private static final String TAG = STRING0 ;
private static final boolean DEBUG = false ;
+ SINGLE
+ SINGLE
+ SINGLE
+ private static final String FORCE_WIFI_DISPLAY_ENABLE = STRING1 ;
+
private static final String SYSTEM_HE... | Provide a debugging option to force enable wifi display |
<nb> import NAMESPACE ;
public abstract class SiteSettingsInterface {
public static final String SITE_SETTINGS_PREFS = STRING0 ;
public static final String LOCATION_PREF_KEY = STRING1 ;
+ public static final String DEF_CATEGORY_PREF_KEY = STRING2 ;
+ public static final String DEF_FORMAT_PREF_KEY = STRING3 ; ... | Introducing local preferences for default post category and format |
<nb> public class BlockStructuralSupportSystem extends BaseComponentSystem implements
for ( BlockStructuralSupport support : supports ) {
if ( support . shouldBeRemovedDueToChange ( blockPosition , sideReverse ) ) {
- System . out . println ( STRING0 + support . getClass ( ) ) ;
blockEntityRegistry . getBlock... | Removed System out println from the structural support system |
<nb> public class InstallerFragment extends Fragment {
}
private boolean checkCompatibility ( ) {
- return checkBinaryCompatibility ( ) && checkRomCompatibility ( ) ;
+ return checkXposedTestCompatibility ( ) && checkAppProcessCompatibility ( ) ;
}
- private boolean checkBinaryCompatibility ( ) {
+ pr... | renamed compatibility check functions for clarity |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> final class ReadConvertor extends InputStreamReader {
return super . read ( ) ;
}
- public final int read ( CharBuffer cb ) throws IOException {
- return super . read ( cb... | remove non needed methods somehow they cause an itch so lets get rid of the itch |
<nb> public final class RaptorQueryRunner
. put ( STRING0 , STRING1 )
. put ( STRING2 , new File ( baseDir , STRING3 ) . getAbsolutePath ( ) )
. put ( STRING4 , new File ( baseDir , STRING5 ) . getAbsolutePath ( ) )
- . put ( STRING6 , STRING7 )
+ . put ( STRING8 , STRING7 )
. build ( ) ;
queryRunner . ... | Fix Raptor storage config property name |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Main {
time ( start ) ;
System . out . printf ( STRING0 , sources . size ( ) ) ;
+ Rule rootRule = parser . CompilationUnit ( ) . suppres... | Switched java example to parse tree less parsing |
<nb> public class ShellSpout implements ISpout {
_collector . emitDirect ( ( int ) task . longValue ( ) , stream ,
tuple , messageId ) ;
}
+ } else {
+ throw new RuntimeException ( STRING0 + command ) ;
}
}
} catch ( IOException e ) { | Added debugging info to ShellSpout and pulled in latest upstream master |
<nb> public class BottomSheetLayout extends FrameLayout {
}
public boolean onInterceptTouchEvent ( @ nonnull MotionEvent ev ) {
- return isSheetShowing ( ) ;
+ return ev . getActionMasked ( ) == MotionEvent . ACTION_DOWN && isSheetShowing ( ) ;
}
@ override | Intercept touch event if motion event is down and bottomsheet is showing |
<nb> public class DBCursor implements Cursor , Iterable < DBObject > {
@ override
public long getCursorId ( ) {
- if ( cursor != null ) {
+ if ( cursor != null && cursor . getServerCursor ( ) != null ) {
return cursor . getServerCursor ( ) . getId ( ) ;
} else {
return NUMBER0 ;
<nb> public class DBCu... | Add null check for the ServerCursor as the server might not have created a cursor even if there are results |
<nb> public class ManyTableConsumer implements Consumer {
STRING0 ) ) ;
return null ;
}
- SINGLE
-
replaceFieldsWithRelationColumns ( mss ) ;
return planSubRelation ( context , buildTwoTableJoinTree ( mss ) ) ;
}
<nb> public class JoinIntegrationTest extends SQLTransportIntegrationTest {
execute (... | fix flaky join test |
<nb> public class TextField extends Widget {
private void setCursorPosition ( float x ) {
lastBlink = NUMBER0 ;
cursorOn = false ;
- x -= renderOffset ;
+ x -= renderOffset + textOffset ;
for ( int i = NUMBER0 ; i < glyphPositions . size ; i ++ ) {
if ( glyphPositions . items [ i ] > x ) {
cursor = Math... | TextField fixed click to set cursor with right align |
<nb> public final class History implements Iterable < Object > {
return ( T ) peek ( NUMBER0 ) ;
}
+ COMMENT
public < T > T peek ( int index ) {
SINGLE
return history . isEmpty ( ) ? null : ( T ) history . get ( history . size ( ) - index - NUMBER1 ) . state ;
}
+ COMMENT
+ public ViewState peekVi... | Adding ability to peek view state without creating useless builders |
<nb> public class ProjectStructureProblemsHolderImpl implements ProjectStructureProbl
public String composeTooltipMessage ( ) {
final StringBuilder buf = StringBuilderSpinAllocator . alloc ( ) ;
try {
+ buf . append ( STRING0 ) ;
if ( myProblemDescriptions != null ) {
for ( ProjectStructureProblemDescriptio... | add warning for dependent module |
<nb> public class CodaHaleShim
}
catch ( ClassNotFoundException e ) {
SINGLE
+ LOGGER . debug ( STRING0 ) ;
+
ClassPool classPool = new ClassPool ( ) ;
classPool . appendClassPath ( new LoaderClassPath ( this . getClass ( ) . getClassLoader ( ) ) ) ;
<nb> public class CodaHaleShim
}
catch ( ClassN... | Log a debug level message when codahale metrics is not found and we generate a stub |
<nb> public class JDBCMetaDataParser extends MetaDataElementParser {
fields . add ( getElementText ( reader ) ) ;
break ;
}
+ case DESCRIPTION : {
+ getElementText ( reader ) ;
+ break ;
+ }
default : {
throw unexpectedElement ( reader ) ;
} | added processing of description in load group |
<nb> public class PathServiceImpl implements PathService {
private static final String _doublePattern = STRING0 ;
- private static final Pattern _latLonPattern = Pattern . compile ( STRING1 + _doublePattern + STRING2
- + _doublePattern + STRING3 ) ;
+ private static final Pattern _latLonPattern = Pattern . ... | allow optional leading trailing spaces in latitude longitude specifications |
<nb> public class TestWorker implements Action < WorkerProcessContext > , RemoteTestClass
}
} finally {
LOGGER . info ( STRING0 , workerProcessContext . getDisplayName ( ) ) ;
+ SINGLE
+ System . setSecurityManager ( null ) ;
testServices . close ( ) ;
}
} | Remove any SecurityManager installed by tests before attempting to cleanup in the test worker process |
<nb> public class WebView extends AbsoluteLayout
private int computeMaxScrollY ( ) {
int maxContentH = computeVerticalScrollRange ( ) + getTitleHeight ( ) ;
- return Math . max ( maxContentH - getHeight ( ) , NUMBER0 ) ;
+ return Math . max ( maxContentH - getHeight ( ) , getTitleHeight ( ) ) ;
}
public... | Set the minimum fling to the title height |
<nb> class WindowStateAnimator {
return ;
}
+ final WindowState winShowWhenLocked = ( WindowState ) mPolicy . getWinShowWhenLockedLw ( ) ;
+ if ( w == winShowWhenLocked ) {
+ return ;
+ }
+
final TaskStack stack = task . mStack ;
stack . getDimBounds ( mTmpStackBounds ) ;
SINGLE | Do not apply stack bounds if the window is above lockscreen |
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
if ( always ) {
SharedPreferences publicPrefs = AstridPreferences . getPublicPrefs ( ContextManager . getContext ( ) ) ;
- Editor editor = publicPrefs . edit ( ) ;
- editor . putInt ( SortHelper . PREF_SORT_FLAGS , flags ) ;... | Don t allow null prefs in onSortSelected |
<nb> public class Configuration
}
else
{
- for ( int j = COMMENT NUMBER0 - NUMBER1 ; j >= NUMBER2 ; -- j )
+ for ( int j = configBlocks . length - NUMBER1 ; j >= NUMBER2 ; -- j )
{
if ( Block . blocksList [ j ] == null && ! configBlocks [ j ] )
{ | Changed logic in Configuration to allow for extended block ID mods easier access to change that |
<nb> public class SharedProject
{
return null ;
}
+
+ public ProjectUser popCursorSync ( String path )
+ {
+ return null ;
+ }
} | add method to pop pending cursor sync state from shared project state |
<nb> public class Value extends Iced implements ForkJoinPool . ManagedBlocker {
byte [ ] mem = _mem ; SINGLE
if ( mem != null ) return mem ;
Freezable pojo = _pojo ; SINGLE
- if ( pojo != null ) return ( _mem = pojo . write ( new AutoBuffer ( ) ) . buf ( ) ) ;
+ if ( pojo != null )
+ if ( pojo instanceof Ch... | Remove a useless bottleneck when spilling |
<nb> public class GuiActivator implements BundleActivator
public static ProtocolProviderFactory getProtocolProviderFactory (
ProtocolProviderService protocolProvider )
{
- ServiceReference [ ] serRefs = null ;
-
String osgiFilter = STRING0
+ ProtocolProviderFactory . PROTOCOL
+ STRING1 + protocolProvide... | Fix a possible NPE |
<nb> public class ReaderPost {
this . format = StringUtils . notNullStr ( format ) ;
}
+ public boolean isGallery ( ) {
+ return format != null && format . equals ( STRING0 ) ;
+ }
+
+
public String getUrl ( ) {
return StringUtils . notNullStr ( url ) ;
}
<nb> public class ReaderPostAdapter exte... | Also show thumbs when post format is gallery |
<nb> public class MaterialListViewAdapter extends BaseAdapter {
for ( Card c : newCards ) {
mCardList . add ( c ) ;
}
+ fillClassList ( ) ;
notifyDataSetChanged ( ) ;
}
<nb> public class MaterialListViewAdapter extends BaseAdapter {
}
private void fillClassList ( ) {
+ mClassList . clear ( ) ;
... | Fixed NPE when adding new custom Card to an existing set |
<nb> public class MySQLProcedure extends AbstractProcedure < MySQLDataSource , MySQLCata
try ( JDBCPreparedStatement dbStat = session . prepareStatement ( STRING0 + getProcedureType ( ) . name ( ) + STRING1 + getFullQualifiedName ( ) ) ) {
try ( JDBCResultSet dbResult = dbStat . executeQuery ( ) ) {
if ( dbResult... | MySQL function body read fix |
<nb> public final class FileSystemMasterClientRestServiceHandler {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
@ post
<nb> public final class CreateFileOptions {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public long getTtl ( ) { | Fixing time units |
<nb>
- COMMENT
- COMMENT
- COMMENT
-
package NAMESPACE ;
import NAMESPACE ; | Remove copyright notice |
<nb> public class Wallet implements Serializable , BlockChainListener {
log . info ( STRING0 , bitcoinValueToFriendlyString ( bestChangeOutput . getValue ( ) ) ) ;
}
- SINGLE
-
SINGLE
try {
req . tx . signInputs ( Transaction . SigHash . ALL , this , req . aesKey ) ; | shuffling inputs does not grant extra privacy |
<nb> public class PropertyPlaceholderHelper {
}
SINGLE
placeholder = parseStringValue ( placeholder , placeholderResolver , visitedPlaceholders ) ;
-
SINGLE
String propVal = placeholderResolver . resolvePlaceholder ( placeholder ) ;
if ( propVal == null && this . valueSeparator != null ) {
<nb> public c... | Polished Could not resolve placeholder error message |
<nb> public class NodeScheduler
}
}
+ SINGLE
+ if ( chosen . isEmpty ( ) && ! includeCoordinator ) {
+ for ( HostAddress hint : addresses ) {
+ SINGLE
+ SINGLE
+ SINGLE
+
+ nodeMap . getNodesByHostAndPort ( ) . get ( hint ) . stream ( )
+ . forEach ( chosen : : add ) ;
+
+ InetAddress addres... | Fix scheduling when only coordinator is eligible |
<nb> public class SetLiteral extends Literal < Set < Object > , Set < Literal > > {
public void writeTo ( StreamOutput out ) throws IOException {
DataType . toStream ( valueType ( ) , out ) ;
+ SINGLE
int numLiterals = literals ( ) . size ( ) ;
out . writeVInt ( numLiterals ) ;
for ( Literal literal : lit... | added note in writeTo |
<nb> public final class NettyServerBuilder extends AbstractServerBuilder < NettyServerB
COMMENT
COMMENT
COMMENT
- public NettyServerBuilder userBossEventLoopGroup ( EventLoopGroup group ) {
+ public NettyServerBuilder bossEventLoopGroup ( EventLoopGroup group ) {
this . userBossEventLoopGroup = group ;
re... | Remove user prefix from NettyServerBuilder userBossEventLoopGroup |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class AggregationPhaseConfig {
private List < String > dimensionNames ;
private List < String > metricNames ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
+ COMMENT
+ COMMENT... | Create aggregation phase job in thirdeye hadoop |
<nb> public class Node {
try {
address = addressPicker . getPublicAddress ( ) ;
final Map < String , Object > memberAttributes = findMemberAttributes ( config . getMemberAttributeConfig ( ) . asReadOnly ( ) ) ;
- localMember = new MemberImpl ( address , true , createMemberUuid ( address ) , hazelcastInstance , ... | Fix line length violation |
<nb> public class JiveGlobals {
if ( messengerHome == null ) {
messengerHome = System . getProperty ( STRING0 ) ;
}
+
+ if ( messengerHome == null ) {
+ try {
+ messengerHome = new File ( STRING1 ) . getCanonicalPath ( ) ;
+ if ( ! new File ( messengerHome , STRING2 ) . exists ( ) ) {
+ messengerHome ... | Add check for messenger home relative to startup script |
<nb> public class WordPressDB {
c = db . query ( POSTS_TABLE ,
new String [ ] { STRING0 , STRING1 , STRING2 ,
STRING3 , STRING4 , STRING5 } ,
- STRING6 ,
+ STRING7 ,
new String [ ] { String . valueOf ( blogId ) , ( loadPages ) ? STRING8 : STRING9 } , null , null , STRING10 ) ;
int numRows = c . getCount (... | Don t include uploaded local drafts when getting the posts for the Posts list |
<nb> public class SameProgressRunner extends GeneralRunner {
public void ping ( ) {
clearSuspend ( ) ;
if ( Thread . currentThread ( ) . equals ( myInitThread ) ) {
- new Runnable ( ) {
- @ override
- public void run ( ) {
- pingInSourceThread ( ) ;
- }
- } . run ( ) ;
+ pingInSourceThread ( ) ;
}... | apply inspection fixes |
<nb> class ServerThread {
if ( safeMode ) {
ActivityManagerService . self ( ) . enterSafeMode ( ) ;
SINGLE
- Zygote . systemInSafeMode = true ;
+ SystemServer . inSafeMode = true ;
SINGLE
VMRuntime . getRuntime ( ) . disableJitCompilation ( ) ;
} else {
<nb> public class SystemServer {
SINGLE
priv... | Don t make isSafeMode a field on the Zygote class |
<nb> public class SharedPsiElementImplUtil {
PsiElement [ ] children = parent . getChildren ( ) ;
for ( int i = NUMBER0 ; i < children . length ; i ++ ) {
PsiElement child = children [ i ] ;
- if ( child . equals ( element ) ) {
+ if ( child == element ) { SINGLE
return i < children . length - NUMBER1 ? chi... | fixed endless loop involving getNextSibling |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.