diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TermQueryBuilderTest extends BaseQueryTestCase < TermQueryBuilder > {
if ( queryBuilder . queryName ( ) != null ) {
Filter namedQuery = contex... | Removed deleted lucene CustomQueryWrappingFilter |
<nb> public class FileTypeRegistry
register ( STRING0 , TEXT , icons . iconText ( ) ) ;
register ( STRING1 , RD , icons . iconTex ( ) ) ;
register ( STRING2 , RDATA , icons . iconRdata ( ) ) ;
+ register ( STRING3 , RDATA , icons . iconRdata ( ) ) ;
defaultType_ = BROWSER ;
registerIcon ( STRING4 , icons ... | add support for loading rda files |
<nb> public class ChooseEncodingDialog extends ModalDialog < String >
if ( includePromptForEncoding_ )
{
- listBox_ . addItem ( STRING0 , STRING1 ) ;
+ listBox_ . addItem ( STRING2 , STRING1 ) ;
}
for ( int i = NUMBER0 ; i < encodings . length ( ) ; i ++ ) | Change Ask every time to Ask in encoding chooser dialog |
<nb> public final class JsonTransformer
objectIndenter . setCompact ( true ) ;
json . writeStartObject ( ) ;
json . writeFieldName ( STRING0 ) ;
- AbstractType < ? > type = cd . column ( ) . type ;
json . writeString ( cd . column ( ) . name . toCQLString ( ) ) ;
serializeDeletion ( complexData . complexDel... | remove dead assignment |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
public class MocoPortTest {
-
+
private MocoTestHelper helper ;
@ before
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ... | removed unused import from verification extractor test and mount to test |
<nb> public class RState {
allAsk = ( allAsk && ! query . asked ) ;
someAsk = ( someAsk || ! query . asked ) ;
}
- asked = ! someAsk ;
+ asked = ! onDemand ;
} else {
SINGLE
PRestriction query = PrivacyManager . getRestrictionEx ( uid , restrictionName , null ) ; | Fix corner case |
<nb> public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj
return ser ;
}
- public BaseObject3D clone ( boolean copyMaterial ) {
- BaseObject3D clone = new BaseObject3D ( ) ;
+ protected void cloneTo ( BaseObject3D clone , boolean copyMaterial ) {
clone . getGeometry ( ) . cop... | Add BaseObject3D cloneTo helper method |
<nb> public class AlarmDecoderBinding extends AbstractActiveBinding < AlarmDecoderBindi
parts . get ( NUMBER0 ) . length ( ) ) ;
}
try {
- int numeric = Integer . parseInt ( parts . get ( NUMBER1 ) ) ;
+ int numeric = NUMBER0 ;
+ try {
+ numeric = Integer . parseInt ( parts . get ( NUMBER1 ) ) ;
+ } cat... | handle non numeric zone code gracefully |
<nb> public class TextEditingTarget implements EditingTarget
private boolean isCursorInRMode ( )
{
String mode = docDisplay_ . getLanguageMode ( docDisplay_ . getCursorPosition ( ) ) ;
- Debug . devlog ( mode ) ;
if ( mode == null )
return true ;
if ( mode . equals ( TextFileType . R_LANG_MODE ) ) | Remove spurious logging |
<nb> public class Settings {
String host = url . getHost ( ) ;
for ( String redirectHost : mFallbackRedirectHosts ) {
- if ( host . endsWith ( redirectHost ) ) {
+ if ( host . endsWith ( STRING0 + redirectHost ) ) {
return true ;
}
} | Corrected host redirects check |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
@ override
public void removeEditorMouseListener ( @ notnull EditorMouseListener listener ) {
boolean success = myMouseListeners . remove ( listener ) ;
- LOG . assertTrue ( success ) ;
+ LOG . assertTrue ( success || isRel... | tolerate removal of mouse and mouse motion listeners after disposal |
<nb> public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > {
if ( running && ! paused ) {
SINGLE
if ( ! setSocketOptions ( socket ) ) {
+ countDownConnection ( ) ;
closeSocket ( socket ) ;
}
} else {
+ countDownConnection ( ) ;
SINGLE
closeSocket ( socket ) ;
} | actually calling another closeSocket method so no issue there |
<nb> import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
@ singleton
public class BellyStepdefs {
<nb> public class BellyStepdefs {
@ inject
private Belly belly ;
+ private boolean inTheBelly = false ;
+
@ given ( STRING0 )
public void haveCukes ( in... | Refute claim that stepdef classes get instantiated for every step |
<nb> public class JobClient {
allURLs [ pos ++ ] = blobClient . getURL ( blobKey ) ;
} catch ( Exception e ) {
blobClient . shutdown ( ) ;
- throw new JobRetrievalException ( jobID , STRING0 + blobKey ) ;
+ throw new JobRetrievalException ( jobID , STRING0 + blobKey , e ) ;
}
} | hotfix properly encapsulate the original exception in JobClient |
<nb> public class ExchangeClient
}
}
- if ( bufferBytes > maxBufferedBytes ) {
- return ;
- }
-
long neededBytes = maxBufferedBytes - bufferBytes ;
if ( neededBytes <= NUMBER0 ) {
return ; | Remove unnecessary code in ExchangeClient scheduleRequestIfNecessary |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class EventLogger extends AbstractEventSubscriber implements EventHandler {
+ public class EventLogger extends AbstractEventSubscriber {
static priv... | removed unnecessary implements statement |
<nb> public class GrammarAST extends CommonTree {
}
public GrammarAST getNodeWithTokenIndex ( int index ) {
- if ( this . getToken ( ) . getTokenIndex ( ) == index ) {
+ if ( this . getToken ( ) != null && this . getToken ( ) . getTokenIndex ( ) == index ) {
return this ;
}
SINGLE | add nullptr check |
<nb> public class PhoneWindow extends Window implements MenuBuilder . Callback {
}
if ( hasFeature ( FEATURE_CONTENT_TRANSITIONS ) ) {
SINGLE
- throw new UnsupportedOperationException (
- STRING0 ) ;
+ Log . v ( TAG , STRING0 ) ;
}
mContentParent . addView ( view , params ) ;
final Callback cb = getCa... | Don t throw exception for root scene transitions |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Steer users away from ListenableFutureTask |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class HighlightVisitorImpl extends JavaElementVisitor implements H... | bring back java highlighting in dumb mode |
<nb> public class WelcomeActivity extends XposedBaseActivity implements
}
private void navigate ( final int itemId ) {
- SINGLE
SINGLE
Fragment navFragment = null ;
switch ( itemId ) {
case R . id . drawer_item_1 :
- SINGLE
+ mToolbar . setTitle ( R . string . app_name ) ;
navFragment = new Instal... | set fragment titles on selection |
<nb> public class IndicesTermsFilterCache extends AbstractComponent {
public DocIdSet getDocIdSet ( AtomicReaderContext context , Bits acceptDocs ) throws IOException {
SINGLE
if ( ! termsFilterCalled ) {
+ termsFilterCalled = true ;
termsFilter = cache . termsFilter ( cacheKey , lookup ) ;
}
if ( termsFi... | properly set the set flag |
<nb> public class SearchCityByNameActivity extends SearchByNameAbstractActivity < City >
@ override
public void itemSelected ( City obj ) {
settings . setLastSearchedCity ( obj . getId ( ) , obj . getName ( region . useEnglishNames ( ) ) , obj . getLocation ( ) ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ ... | take out partial fix for easier debugging |
<nb> public class GrReferenceExpressionImpl extends GrReferenceElementImpl < GrExpressi
final GroovyResolveResult resolveResult = advancedResolve ( ) ;
PsiElement resolved = resolveResult . getElement ( ) ;
- if ( STRING0 . equals ( getReferenceName ( ) ) && getParent ( ) instanceof GrIfStatement ) {
- System... | removed GrReferenceExpressionImpl println |
<nb> public class GCMIntentService extends GCMBaseIntentService {
try {
iconURL = URLDecoder . decode ( iconURL , STRING0 ) ;
} catch ( UnsupportedEncodingException e ) {
- e . printStackTrace ( ) ;
+ AppLog . e ( T . NOTIFS , e ) ;
}
float screenDensity = getResources ( ) . getDisplayMetrics ( ) . densit... | remove e printStackTrace |
<nb> package NAMESPACE ;
COMMENT
public class CardinalityException extends RuntimeException {
- COMMENT
- COMMENT
- COMMENT
- private static final long serialVersionUID = NUMBER0 ;
-
}
<nb> package NAMESPACE ;
COMMENT
public class IndexException extends RuntimeException {
- COMMENT
- COMME... | Remove serialVersionUID per our standards right |
<nb> public abstract class AbstractTextViewerStage extends Stage
int pos = NUMBER0 ;
ObservableList < Node > items = vBoxRows . getChildren ( ) ;
+
+ Pattern pattern = Pattern . compile ( regex ) ;
for ( Node item : items )
{
<nb> public abstract class AbstractTextViewerStage extends Stage
String ... | Moved Pattern compile outside loop duh |
<nb> public class LayoutModelImpl implements LayoutModel {
protected void setSelectedLayout ( Layout selectedLayout ) {
Layout oldValue = this . selectedLayout ;
this . selectedLayout = selectedLayout ;
+ this . selectedBuilder = selectedLayout . getBuilder ( ) ;
if ( oldValue != null ) {
saveProperties ( o... | Fix issue in LayoutPanel refresh with selected builder |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class NineUpBorder extends ResizeComposite implements AcceptsOneWidget
{
- public interface Resources exte... | Squelch Eclipse errors |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PicassoDiagnosticService extends Service {
@ override
public void onDestroy ( ) {
server . stop ( ) ;
+ AsyncServer . g... | fixed stop logic |
<nb> public abstract class PhotoBaseActivity extends Activity implements EasyPermissi
@ override
public void onActivityResult ( int requestCode , int resultCode , Intent data ) {
if ( requestCode == GalleryFinal . TAKE_REQUEST_CODE ) {
- if ( resultCode == RESULT_OK && mTakePhotoUri != null ) {
+ if ( data !=... | fix result error when take photo and press back key |
<nb> public class BinaryJedis implements BasicCommands , BinaryJedisCommands , MultiKey
}
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class BinaryJedis implements BasicCommands , BinaryJedisCommands , MultiKey
COMMENT
COMMENT
COMMENT
+ @ deprecated
public Long pexpire ( String key , ... | Add deprecated to BinaryJedis pexpire String long |
<nb> import NAMESPACE ;
@ deprecated
public class Compile extends AbstractCompile {
- private Compiler < JavaCompileSpec > cleaningCompiler ;
+ private CleaningJavaCompiler cleaningCompiler ;
private File dependencyCacheDir ;
private final CompileOptions compileOptions = new CompileOptions ( ) ;
<nb> ... | Removed unnecessary casting |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class MemoryPoolMessage extends Message {
@ override
protected void parseLite ( ) throws ProtocolException { }
+
+ @ override
+ void bitcoinSerializeToStream ( OutputStream stream ) t... | Suppress annoying and useless warning |
<nb> public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > imple
public static void animateExpanding ( final View view , final AbsListView listView ) {
view . setVisibility ( View . VISIBLE ) ;
- final int widthSpec = View . MeasureSpec . makeMeasureSpec ( NUMBER0 , View . MeasureSpec... | Properly measure a expanding content view |
<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> class ActivityChooserModel extend... | Replace ArrayDeque with LinkedList to support older APIs |
<nb> public abstract class AbstractBenchmark {
COMMENT
COMMENT
public enum FlowWindowSize {
- SMALL ( NUMBER0 ) , MEDIUM ( NUMBER1 ) , LARGE ( NUMBER2 ) , JUMBO ( NUMBER3 ) ;
+ SMALL ( NUMBER0 ) , MEDIUM ( NUMBER1 ) , LARGE ( NUMBER2 ) , JUMBO ( NUMBER4 ) ;
private final int bytes ;
FlowWindowSize ( int... | Properly set inbound and outbound connection and stream window sizes |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public interface WebSocketMessage < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
boolean isLast ( ) ;
<nb> import NAMESPACE... | Delete unused imports |
<nb> public class Config extends HashMap < String , Object > {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix config description for worker childopts |
<nb> public class HotspotTile extends QSTile < QSTile . AirplaneBooleanState > {
mController . addCallback ( mCallback ) ;
final IntentFilter filter = new IntentFilter ( ) ;
filter . addAction ( Intent . ACTION_AIRPLANE_MODE_CHANGED ) ;
+ refreshState ( ) ;
} else {
mController . removeCallback ( mCallback ... | Fix hotspot refreshing state |
<nb> public class AdminClient {
return flushed ;
}
- private void printUpdateEntriesStats ( long printStatsTimer ,
- long entryCounter ,
- long printStatsThreshold ,
- int nodeId ,
- String storeName ) {
-
- }
-
private void initiateFetchRequest ( DataOutputStream outputStream ,
String storeNa... | remove an empty function from AdminClient java |
<nb> public class VcsConnectionProblem extends VcsException {
super ( message ) ;
}
+ public VcsConnectionProblem ( VcsConnectionProblem cause ) {
+ super ( cause . getMessage ( ) , cause ) ;
+ }
+
public boolean attemptQuickFix ( boolean mayDisplayDialogs ) {
return false ;
} | restore login notification when session expires |
<nb> public class ApiHelpMessageBodyWriter implements MessageBodyWriter < Documentation
public void writeTo ( Documentation documentation , Class < ? > type , Type genericType , Annotation [ ] annotations ,
MediaType mediaType , MultivaluedMap < String , Object > httpHeaders , OutputStream entityStream )
throws I... | Fix compiler error |
<nb> public class Matrix4 implements Serializable {
val [ M23 ] = vector . z ;
return this ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Matrix4 setTranslation ( float x , float y , float z ) {
+ val [ M03 ] = x ;
+ val [ M13 ] = y ;
+ val [ M23 ] = z ;
+ retur... | Add Matrix4 setTranslation float float float |
<nb> public class PasswordRecoveryPage extends BasePage {
user . setRecoverPasswordTokenDate ( Calendar . getInstance ( )
. getTime ( ) ) ;
userDAO . update ( user ) ;
- mailService . sendMail ( user ,
- STRING0 ,
+ mailService . sendMail ( user , STRING1 ,
buildEmailContent ( user ) ) ;
info ( STRING2 ... | remove duplicate email title |
<nb> public interface Player extends HumanEntity , Conversable , CommandSender , Offline
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public void setTexturePack ( String url ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMM... | Add new setResourcePack method |
<nb> public class SystemBarTintManager {
COMMENT
COMMENT
COMMENT
+ @ targetapi ( NUMBER0 )
public void setStatusBarAlpha ( float alpha ) {
- if ( mStatusBarAvailable ) {
+ if ( mStatusBarAvailable && Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) {
mStatusBarTintView . setAlpha ( alpha... | don t setAlpha pre honeycomb |
<nb> class DefaultNioSocketChannelConfig extends DefaultSocketChannelConfig
setWriteBufferLowWaterMark0 ( ConversionUtil . toInt ( value ) ) ;
} else if ( key . equals ( STRING0 ) ) {
setWriteSpinCount ( ConversionUtil . toInt ( value ) ) ;
+ } else if ( key . equals ( STRING1 ) ) {
+ setReceiveBufferSizePred... | Fixed a bug where DefaultNioSocketChannelConfig does not recognize receiveBufferSizePredictorFactory option |
<nb> public class ChooseFolder extends K9ListActivity {
input . setHint ( R . string . folder_list_filter_hint ) ;
filterAlert . setView ( input ) ;
- filterAlert . setPositiveButton ( STRING0 , new DialogInterface . OnClickListener ( ) {
+ String okay = getString ( R . string . okay_action ) ;
+ filterAler... | Replaced hardcoded strings with references to string resources |
<nb> class PreferredProducerFind {
final ConfigurationFromContext first = configurationsFromContext . get ( NUMBER0 ) ;
for ( Iterator < ConfigurationFromContext > it = configurationsFromContext . iterator ( ) ; it . hasNext ( ) ; ) {
ConfigurationFromContext producer = it . next ( ) ;
- if ( producer != first ... | show both run configurations in context menu if no one is preferred |
<nb> public class PreviewMediaFragment extends FileFragment implements
}
} else {
- setFile ( ( OCFile ) savedInstanceState . getParcelable ( PreviewMediaFragment . EXTRA_FILE ) ) ;
+ file = ( OCFile ) savedInstanceState . getParcelable ( PreviewMediaFragment . EXTRA_FILE ) ;
+ setFile ( file ) ;
mAccount... | Fixed recovery on file state in PreviewFragment on rotations |
<nb> public class ConnectionString {
authSource = value ;
} else if ( key . equals ( STRING0 ) ) {
gssapiServiceName = value ;
- } else if ( key . endsWith ( STRING1 ) ) {
+ } else if ( key . equals ( STRING1 ) ) {
authMechanismProperties = value ;
}
} | Fix comparision for authMechanismProperties query parameter from use of String endsWith to String equals |
<nb> public class JetFlowInformationProvider {
}
boolean isInitializedNotHere = ctxt . enterInitState . isInitialized ;
- if ( expression . getParent ( ) instanceof JetProperty && ( ( JetProperty ) expression ) . getInitializer ( ) != null ) {
- isInitializedNotHere = false ;
- }
boolean hasBackingField =... | removed unnecessary code |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- public class KeyValueWorkerClient extends ClientBase {
+ public final class KeyValueWorkerClient extends ClientBase {
private static final Logger LOG = LoggerFactory . getLogger (... | Fix incorrect javadoc in KeyValueWorkerClient |
<nb> public final class Report {
pointer = null ;
closed = true ;
}
+
+ @ override
+ public void remove ( ) {
+ throw new UnsupportedOperationException ( ) ;
+ }
}
private static class IssueIterator implements Iterator < Issue > {
<nb> public final class Report {
return res ;
}
+ @ overr... | Fix small compile issue |
<nb> public class RemoteViewsAdapter extends BaseAdapter implements Handler . Callback
SINGLE
Context context = parent . getContext ( ) ;
RemoteViews rv = mCache . getRemoteViewsAt ( position ) ;
- int typeId = mCache . getMetaDataAt ( position ) . typeId ;
+ RemoteViewsIndexMetaData indexMetaData = mCache . ... | Fixing a bug in RemoteViewsAdapter where cached items weren t being marked as requested |
<nb> public class FAQDialog {
Intent emailIntent = new Intent ( Intent . ACTION_SENDTO ,
Uri . fromParts ( STRING0 , STRING1 , null ) ) ;
String appVersion = BuildConfig . VERSION_NAME ;
- String subject = STRING2 + appVersion + STRING3 + Constant . getOSFlavor ( )
+ String subject = STRING4 + appVersion + ST... | Add prefix for LinkBubble support emails |
<nb> public enum ElectionState
}
else
{
- logger . warn ( STRING0 +
- STRING1 ) ;
+ logger . warn ( STRING2 ) ;
if ( currentElected != null )
{
SINGLE | Packs logged string in one line for easy grepping in source |
<nb> public abstract class ZLTextView extends ZLTextViewBase {
protected void drawSelectionCursor ( ZLPaintContext context , int x , int y ) {
final int dpi = ZLibrary . Instance ( ) . getDisplayDPI ( ) ;
- final int accent = dpi / NUMBER0 ;
+ final int accent = dpi / NUMBER1 ;
final int width = dpi / NUMBE... | better look for selection cursors |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
public class GivenWhenThenXsdITest extends WithJetty {
<nb> public class GivenWhenThenXsdITest extends WithJetty {
get ( STRING0 ) . then ( ) . body ( matchesXsd ( xsd ) ) ;
}
+
+ @ test
+... | Added XSD and Path validation test |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class TaskCheckinHandlerFactory extends CheckinHandlerFactory {
<nb>... | use safe invokeLater |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class TestAndroidResources extends SimpleApplication { | Fix doc for test case |
<nb> public class GraphStats {
Collections . shuffle ( vertices , random ) ;
vertices = vertices . subList ( NUMBER0 , n ) ;
try {
- writer . writeRecord ( new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 } ) ;
+ writer . writeRecord ( new String [ ] { STRING0 , STRING1 , STRING3 , STRING2 } ) ;
int i... | change lat lon headers to match data |
<nb> class ReaderPostRenderer {
. append ( STRING0 ) . append ( mResourceVars . linkColorStr ) . append ( STRING1 )
SINGLE
- . append ( STRING2 )
+ . append ( STRING3 )
. append ( STRING4 )
SINGLE | Retain img size ratio when in reader |
<nb> public class MatcherImpl {
MalformedPatternException exception = new MalformedPatternException ( ) ;
exception . initCause ( e ) ;
throw exception ;
+ } finally {
+ options . setScope ( null ) ;
}
return sink . getMatches ( ) ; | don t hold psi in local search scope in tests |
<nb> public class PyResolveUtil {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
@ nullable
public static PsiElement treeCrawlUp ( PsiScopeProcessor processor , PsiElement elt ) {
if ( elt == null || ! elt . isValid ( ) ) return null ; SINGLE | Deprecated PyResolveUtil treeCrawlUp as a slow way of traversing the PSI |
<nb> public class WindowManagerService extends IWindowManager . Stub
int i ;
for ( i = N - NUMBER0 ; i >= NUMBER1 ; -- i ) {
WindowState w = windows . get ( i ) ;
- if ( w . mBaseLayer <= myLayer ) {
+ SINGLE
+ SINGLE
+ if ( w . mBaseLayer <= myLayer && w . mAttrs . type != TYPE_DOCK_DIVIDER ) {
break ;... | Fix dock divider going under application windows |
<nb> public class SourceFormatter {
trimmedLine , StringPool . TAB , StringPool . SPACE ) ;
}
+ if ( line . contains ( StringPool . TAB + StringPool . SPACE ) &&
+ ! previousLine . endsWith ( STRING0 ) &&
+ ! previousLine . endsWith ( STRING1 ) &&
+ ! previousLine . contains ( StringPool . TAB + STRING2 )... | SourceFormatter remove wrong spaces at start of line |
<nb> public abstract class PanelView extends FrameLayout {
public void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) {
pw . println ( String . format ( STRING0
- + STRING1
+ + STRING2
+ STRING3 ,
this . getClass ( ) . getSimpleName ( ) ,
getExpandedHeight ( ) ,
<nb> public abstract cla... | Add touch disabled state output in dumpsys |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SystemGesturesPointerEventListener implements PointerEventListener
}
break ;
case MotionEvent . ACTION_HOVER_MOVE :
- i... | Fix the condition of hovering at the edge |
<nb> public class Texture2D extends Texture {
public Texture2D ( Image img ) {
super ( ) ;
setImage ( img ) ;
- if ( img . getFormat ( ) . isDepthFormat ( ) ) {
+ if ( img . getData ( NUMBER0 ) == null ) {
setMagFilter ( MagFilter . Nearest ) ;
setMinFilter ( MinFilter . NearestNoMipMaps ) ;
} | always use nearest filtering |
<nb> final class GsmServiceStateTracker extends ServiceStateTracker {
int cid = - NUMBER0 ;
GsmCellLocation loc = ( ( GsmCellLocation ) phone . getCellLocation ( ) ) ;
if ( loc != null ) cid = loc . getCid ( ) ;
- EventLog . List val = new EventLog . List ( cid , networkType , newNetworkType ) ;
- EventLog . ... | Fix build GsmServiceStateTracker was using old EventLog API |
<nb> public class PyNames {
public static final String SET = STRING0 ;
public static final String KEYS = STRING1 ;
+ public static final String EXTEND = STRING2 ;
public static final String PASS = STRING3 ; | collect all variants of string list building in one pass |
<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... | Remove unused import for KeyboardShortcutGroup |
<nb> public class AuditedInvoiceDao implements InvoiceDao {
final BigDecimal invoiceBalanceAfterRefund = invoice . getBalance ( ) ;
final InvoiceItemSqlDao transInvoiceItemDao = transInvoiceDao . become ( InvoiceItemSqlDao . class ) ;
-
SINGLE
SINGLE
SINGLE | remove extra line in AuditedInvoiceDao |
<nb> public class RFXComBinding extends AbstractBinding < RFXComBindingProvider > {
RFXComValueSelector parseItem = provider
. getValueSelector ( itemName ) ;
- State value = RFXComDataConverter
- . convertRFXCOMValueToOpenHABValue (
- obj , parseItem ) ;
- eventPublisher . postUpdate ( itemName , value )... | added exception handling to handle message parsing errors |
<nb> public final class Jid {
if ( localpart . isEmpty ( ) || localpart . length ( ) > NUMBER0 ) {
throw new InvalidJidException ( InvalidJidException . INVALID_PART_LENGTH ) ;
}
- domainpartStart = atLoc ;
+ domainpartStart = atLoc + NUMBER1 ;
finaljid = lp + STRING0 ;
} else {
localpart = STRING1 ; | Fix JID parsing error |
<nb> public class TemplateManagerImpl extends TemplateManager implements Disposable {
@ override
public boolean startTemplate ( @ notnull Editor editor , char shortcutChar ) {
- PsiDocumentManager . getInstance ( myProject ) . commitDocument ( editor . getDocument ( ) ) ;
Runnable runnable = prepareTemplate (... | commit document only when there is a live template to start |
<nb> public class ReaderPostTable {
return SqlUtils . stringForQuery ( ReaderDatabase . getReadableDb ( ) , sql , new String [ ] { Long . toString ( blogId ) } ) ;
}
- public static String getOldestPubDateInBlog ( String blogSlug ) {
- String sql = STRING0
- + STRING1
- + STRING2 ;
- return SqlUtils . s... | Remove unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestUtil extends Iced {
}
public static Frame frame ( double [ ] . . . rows ) { return frame ( null , rows ) ; }
public s... | Add factory method for Frame from named Vec |
<nb> public class EdgeDataImpl implements EdgeData , DynamicData {
}
public float getRadius ( ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ return NUMBER0 ;
}
public float getSize ( ) { | Fix edge label positionning |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatsWebViewActivity extends AuthenticatedWebViewActivity {
AppLog . e ( AppLog . T . STATS , e ) ;
}
}
- }
+
+ @ override
+ protected void onDestroy ... | Fix a leaked window issue |
<nb> public class IntervalTracker
public boolean hasElapsed ( )
{
- return lastTime_ != null
- && System . currentTimeMillis ( ) - lastTime_ < threshold_ ;
+ return lastTime_ == null
+ || System . currentTimeMillis ( ) - lastTime_ >= threshold_ ;
}
private Long lastTime_ ;
<nb> public class TextEd... | Fix correct logic but incorrect method name in IntervalTracker |
<nb> public class RuleDaoTest extends DaoTestCase {
@ test
public void testSelectById ( ) throws Exception {
- setupData ( STRING0 ) ;
+ setupData ( STRING1 ) ;
org . sonar . persistence . model . Rule rule = dao . selectById ( NUMBER0 ) ;
assertThat ( rule . getId ( ) , Is . is ( NUMBER0 ) ) ; | Fix typo in RuleDaoTest |
<nb> public class TileQuarry extends TileAbstractBuilder implements IHasWork , ISidedI
Integer [ ] [ ] columnHeights = new Integer [ builder . blueprint . sizeX - NUMBER0 ] [ builder . blueprint . sizeZ - NUMBER0 ] ;
boolean [ ] [ ] blockedColumns = new boolean [ builder . blueprint . sizeX - NUMBER0 ] [ builder . ... | make mining depth work with quarries |
<nb> public class FingerprintService extends SystemService implements IBinder . DeathRe
}
daemon . setActiveGroup ( userId , fpDir . getAbsolutePath ( ) . getBytes ( ) ) ;
mCurrentUserId = userId ;
- mCurrentAuthenticatorId = daemon . getAuthenticatorId ( ) ;
}
+ mCurrentAuthenticatorId = daemon . getAuthen... | Always update cached copy of authenticatorId |
<nb> public class ClusterDescription {
COMMENT
public ServerDescription getByServerAddress ( final ServerAddress serverAddress ) {
for ( final ServerDescription cur : getAll ( ) ) {
- if ( cur . getAddress ( ) . equals ( serverAddress ) ) {
+ if ( cur . isOk ( ) && cur . getAddress ( ) . equals ( serverAddres... | Changed contract of ClusterDescription getByServerAddress to only report an ok server |
<nb> public interface HelpID {
@ nonnls String METHOD_BREAKPOINTS = STRING0 ;
@ nonnls String EXCEPTION_BREAKPOINTS = STRING1 ;
@ nonnls String FIELD_WATCHPOINTS = STRING2 ;
+ @ nonnls String EVALUATE = STRING3 ;
} | context Help working |
<nb> public abstract class LocalHistoryAction extends AnAction {
p . setEnabled ( false ) ;
return ;
}
+ p . setVisible ( true ) ;
p . setText ( getText ( e ) , true ) ;
p . setEnabled ( isEnabled ( getVcs ( e ) , getGateway ( e ) , getFile ( e ) , e ) ) ;
} | visibility update fix |
<nb> public class GdxSetupUI extends JFrame {
} else {
JFileChooser chooser = new JFileChooser ( ) ;
chooser . setFileSelectionMode ( JFileChooser . DIRECTORIES_ONLY ) ;
- chooser . setDialogTitle ( STRING0 ) ;
+ chooser . setDialogTitle ( STRING1 ) ;
int result = chooser . showOpenDialog ( null ) ;
if ( ... | fixed typo in file chooser dialog |
<nb> public class SettingTests extends ESTestCase {
Setting < Boolean > booleanSetting = Setting . boolSetting ( STRING0 , false , SettingsProperty . Dynamic , SettingsProperty . ClusterScope ) ;
assertFalse ( booleanSetting . get ( Settings . EMPTY ) ) ;
assertFalse ( booleanSetting . get ( Settings . builder ( ... | Fix regression in test |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix javadoc bug in option name |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultResolvedDependency implements ResolvedDependency {
public Set < ResolvedArtifact > getParentArtifacts ( ResolvedDependency parent ) {
if ( ! parents . ... | Improved the error message and exception kind |
<nb> public class DefaultIdeaErrorLogger implements ErrorLogger {
}
else if ( ! ourOomOccurred ) {
MessagePool messagePool = MessagePool . getInstance ( ) ;
- LogMessage message = messagePool . addIdeFatalMessage ( event ) ;
- if ( message != null && ApplicationManager . getApplication ( ) != null ) {
- Err... | Do not put IDE fatal errors into Event Log there s a dedicated UI for them |
<nb> public class Components {
TraverseOptions options = new TraverseOptions ( modes ) ;
long dateTime = DateUtils . toDate ( date , time ) . getTime ( ) ;
- options . setServiceDays ( dateTime ) ;
Graph graph = graphService . getGraph ( ) ;
if ( graphService . getCalendarService ( ) != null ) {
options .... | eliminate spurious warning |
<nb> public class Presence extends Packet {
public static final Mode AWAY = new Mode ( STRING0 ) ;
public static final Mode EXTENDED_AWAY = new Mode ( STRING1 ) ;
public static final Mode DO_NOT_DISTURB = new Mode ( STRING2 ) ;
- public static final Mode INVISIBLE = new Mode ( STRING3 ) ;
private String val... | Removed invisible mode |
<nb> public class Receiver implements Closeable
NONE , START_MESSAGE , END_MESSAGE
}
+ COMMENT
+ COMMENT
+ COMMENT
public interface DataHandler
{
- void handleData ( final ByteBuffer buffer , final int offset , final MessageFlags flags ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | added some more jaavdoc |
<nb> public class HttpHeaders extends HashMap < String , String > {
@ override
public Set < Map . Entry < String , String > > entrySet ( ) {
- return super . entrySet ( ) ;
+ throw new UnsupportedOperationException ( ) ;
}
@ override | Removed use of HttpHeaders putAll |
<nb> public class IndentingWriter extends Writer {
int pos = start ;
while ( pos < end ) {
pos = str . indexOf ( STRING0 , start ) ;
- if ( pos == - NUMBER0 ) {
+ if ( pos == - NUMBER0 || pos >= end ) {
writeLine ( str , start , end - start ) ;
return ;
} else { | Fix a bounds check problem in IndentingWriter |
<nb> public class LanguageLoadScriptFromClasspathTest extends ContextTestSupport {
public void configure ( ) throws Exception {
SINGLE
from ( STRING0 )
- SINGLE
- . to ( STRING1 )
+ SINGLE
+ . to ( STRING2 )
. to ( STRING3 ) ;
SINGLE
}
<nb> public class LanguageLoadScriptFromFileCachedTest extends... | Language component can now load scripts from classpath or file system |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.