diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class TopChildrenQuery extends Query implements ScopePhase . TopDocsPhase { return TopChildrenQuery . this ; } - public float getValue ( ) { - return getBoost ( ) ; - } - @ override public float getValueForNormalization ( ) throws IOException { float sum = queryWeight . getValueForNormal...
Removed unused code
<nb> public abstract class WsFrameBase { fin = ( b & NUMBER0 ) > NUMBER1 ; rsv = ( b & NUMBER2 ) > > > NUMBER3 ; if ( rsv != NUMBER1 ) { - SINGLE + SINGLE + SINGLE throw new WsIOException ( new CloseReason ( CloseCodes . PROTOCOL_ERROR , sm . getString ( STRING0 , Integer . valueOf ( rsv ) ) ) ) ;
Remove a TODO
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Utils { COMMENT COMMENT COMMENT + @ targetapi ( NUMBER0 ) public static < T > void executeAsyncTask ( AsyncTask < T , ? , ? > task , T ....
Add TargetApi tag
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea int x = _output . _names . length , y = adaptFrm . numCols ( ) ; Frame f = adaptFrm . extractFrame ( x , y ) ; SINGLE - if ( destination_key != null ) { - Key k = Key . make ( destination_key ) ; - f = new Frame ( k , ...
For AE scoring create Frame key if destination_key null
<nb> public class Danmakus implements IDanmakus { if ( obj2 . text == null ) { return NUMBER0 ; } + int r = obj1 . text . compareTo ( obj2 . text ) ; if ( r != NUMBER1 ) { return r ; <nb> public class Danmakus implements IDanmakus { if ( r != NUMBER1 ) { return r < NUMBER1 ? - NUMBER0 : NUMBER0 ; ...
Fix missing problem
<nb> public class SnapshotControl { this . types = new HashSet < Class < ? extends DatabaseObject > > ( ) ; for ( Class < ? extends DatabaseObject > type : types ) { this . types . addAll ( SnapshotGeneratorFactory . getInstance ( ) . getContainerTypes ( type , database ) ) ; + this . types . add ( type ) ; }...
Not adding passed type to types collection
<nb> public class ModelUtils { float res = preds [ best ] ; SINGLE long hash = NUMBER0 ; SINGLE if ( data != null ) - for ( double d : data ) hash ^= Double . doubleToRawLongBits ( d ) ; + for ( double d : data ) hash ^= Double . doubleToRawLongBits ( d ) > > NUMBER1 ; SINGLE int idx = ( int ) hash % ( tieC...
Kind of hack dropping least significant bits from
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; imp...
Ignore INPUT_METHOD_MANAGER__ROOT_VIEW on M
<nb> public class RefsModel implements VcsLogRefs { @ notnull public Collection < VcsRef > branchesToCommit ( int index ) { Collection < VcsRef > refs = refsToCommit ( index ) ; - return refs . stream ( ) . filter ( ref - > ref . getType ( ) . isBranch ( ) ) . collect ( Collectors . toList ( ) ) ; + return Co...
vcs log use ContainerUtil filter instead of streams
<nb> public abstract class WebSocketServerHandshaker { } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public ChannelFuture handshake ( Channel channel , FullHttpRequest req ) { return handshake ( cha...
Add explaination to the javadocs to not call retain on the request when doing the handshake
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public class JavaHeaderCompileActionBuild...
Make header compilation flag non experimental
<nb> public class MockEditorActivity extends AppCompatActivity implements EditorFragm } @ override - public void onMediaUploadCancelClicked ( String mediaId ) { + public void onMediaUploadCancelClicked ( String mediaId , boolean delete ) { } <nb> public class EditorExampleActivity extends AppCompatAct...
Fixed a broken test and an issue with the editor demo activity
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class IMapRegionCache implements RegionCache { SINGLE SINGLE SINGLE - SINGLE + SINGLE SINGLE SINGLE SINGLE
Fix grammatical issues in JavaDoc
<nb> public class Subscription public boolean matches ( final String destination , final long channelId ) { - return this . destination . equals ( destination ) && this . channelId == channelId ; + return this . channelId == channelId && this . destination . equals ( destination ) ; } COMMENT
Use the faster discriminator first
<nb> public class ReaderUpdateService extends Service { @ override public int onStartCommand ( Intent intent , int flags , int startId ) { if ( intent != null && intent . hasExtra ( ARG_UPDATE_TASKS ) ) { + @ suppresswarnings ( STRING0 ) EnumSet < UpdateTask > tasks = ( EnumSet < UpdateTask > ) intent . getSe...
Suppress unchecked warning in ReaderUpdateService
<nb> import NAMESPACE ; COMMENT public class LocalTachyonClusterResource implements TestRule { + private static final long DEFAULT_WORKER_CAPACITY_BYTES = NUMBER0 * Constants . MB ; + private static final int DEFAULT_QUOTA_UNIT_BYTES = NUMBER0 * Constants . KB ; + private static final int DEFAULT_USER_BLOCK...
Add convenient default constructor to LocalTachyonClusterResource
<nb> public class VehicleWheel implements Savable { protected void finalize ( ) throws Throwable { super . finalize ( ) ; Logger . getLogger ( this . getClass ( ) . getName ( ) ) . log ( Level . INFO , STRING0 , Long . toHexString ( wheelId ) ) ; - if ( wheelId != NUMBER0 && wheelIndex != NUMBER0 ) { - finali...
revert previous commit
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CardViewNative extends android . support . v7 . widget . CardView implement } + @ targetapi ( Build . VERSION_CODES ....
changed the code for shadow
<nb> public final class TestUtils { } public static Principal getPrincipal ( final String name ) { - return new DefaultPrincipalFactory ( ) . createPrincipal ( name ) ; + return getPrincipal ( name , Collections . EMPTY_MAP ) ; } public static Principal getPrincipal ( final String name , final Map < Str...
fixed test compilation
<nb> public abstract class AbstractReplicatedMap < K , V > @ override public void finalize ( ) { - try { broadcast ( MapMessage . MSG_STOP , false ) ; } catch ( Exception ignore ) { } - SINGLE if ( this . rpcChannel != null ) { this . rpcChannel . breakdown ( ) ; } + try { broadcast ( MapMessage . MSG...
In AbstractReplicatedMap finalize remove rpcChannel from channel Listener of group channel before sending MapMessage MSG_STOP message
<nb> public abstract class InternalNumericMetricsAggregation extends InternalMetricsA } - protected InternalNumericMetricsAggregation ( ) { } SINGLE + private InternalNumericMetricsAggregation ( ) { } SINGLE - protected InternalNumericMetricsAggregation ( String name ) { + private InternalNumericMetrics...
Stops direct subclassing of InternalNumericMetricsAggregation
<nb> public final class NettyDataServer implements DataServer { SINGLE SINGLE boot . childOption ( ChannelOption . WRITE_BUFFER_HIGH_WATER_MARK , - ( int ) mTachyonConf . getBytes ( Constants . WORKER_NETTY_WATERMARK_HIGH , NUMBER0 * NUMBER1 ) ) ; + ( int ) mTachyonConf . getBytes ( Constants . WORKER_NETTY_W...
add a space between type cast and the variable
<nb> public class NetworkSystemImpl implements EntityChangeSubscriber , NetworkSystem return new JoinStatusImpl ( STRING0 + connectCheck . getCause ( ) . getMessage ( ) ) ; } else { allChannels . add ( connectCheck . getChannel ( ) ) ; - mode = NetworkMode . CLIENT ; - nextNetworkTick = time . getRealTimeInMs...
Put the final server connection switch in a ore logical place
<nb> public class BitmapRequest < T > implements Request , ImageManager . LoadedCallback , T if ( model != null && Log . isLoggable ( TAG , Log . INFO ) ) { Log . i ( TAG , STRING0 + model ) ; } - setErrorPlaceholder ( ) ; + onLoadFailed ( null ) ; return ; }
Treat null request as a load failure
<nb> public class TranslogTests extends ElasticsearchTestCase { int count = NUMBER0 ; for ( int op = NUMBER0 ; op < translogOperations ; op ++ ) { locations . add ( translog . add ( new Translog . Create ( STRING0 , STRING1 + op , Integer . toString ( ++ count ) . getBytes ( Charset . forName ( STRING2 ) ) ) ) ) ...
TEST only roll over translog if we at least add one operation
<nb> public class MagicLinkSignInFragment extends SignInFragment { private void showPasswordField ( ) { mPasswordLayout . setVisibility ( View . VISIBLE ) ; mForgotPassword . setVisibility ( View . VISIBLE ) ; + if ( ! mSelfHosted ) { + mPasswordEditText . setImeOptions ( EditorInfo . IME_ACTION_DONE ) ; + ...
Making sure to set the ime option to done if it s not a self hosted site
<nb> public class Config { public static final String DIR_DATABASE = STRING0 ; public static final String DIR_LOG = STRING1 ; public static final String DIR_STATE = STRING2 ; + + SINGLE + public static final String FILE_IGNORE = STRING3 ; + SINGLE public static final String FILE_CONFIG = STRING4 ; p...
Going wild with new lines
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove obsolete JavaDoc referring to a sundotNet dependence I removed years ago
<nb> import NAMESPACE ; import static NAMESPACE ; public final class Data implements DataSerializable { - final List < ByteBuffer > lsData = new ArrayList < ByteBuffer > ( NUMBER0 ) ; + COMMENT + COMMENT + COMMENT + private static final long serialVersionUID = NUMBER1 ; + + final List < ByteBuffer >...
Added serial version UID
<nb> public interface Extent { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Extent { COMMENT COMMENT COMMENT - boolean setBlock ( Vector location , BaseBlock block , boolean notifyAdjacent ) ; + boolean setBlock ( Vector location , BaseBlock block...
Fixed Javadocs in Extent
<nb> public class HiveClient else if ( VARCHAR . equals ( type ) ) { builder . put ( columnHandle , utf8Slice ( value ) ) ; } + else { + throw new IllegalArgumentException ( format ( STRING0 , type , partitionId ) ) ; + } } return new HivePartition ( tableName , partitionId , builder . build ( ) , buc...
Add check for unsupported Hive partition type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class TypeKindHighlightingVisitor extends AfterAnalysisHighlighting...
Highlight super and this as keywords
<nb> public class TileAutoWorkbench extends TileEntity implements ISpecialInventory { } @ override - public ItemStack decrStackSize ( int i , int j ) { - - ItemStack newStack = stackList [ i ] . copy ( ) ; - newStack . stackSize = j ; - - stackList [ i ] . stackSize -= j ; - - if ( stackList [ i ]...
Fixed decrStackSize bug on crafting table
<nb> public final class EmailIntentSenderFactory implements ReportSenderFactory { @ nonnull @ override public ReportSender create ( @ nonnull Context context , @ nonnull ACRAConfiguration config ) { - return new EmailIntentSender ( context , config ) ; + return new EmailIntentSender ( config ) ; } }
remove context from argument
<nb> public class FileFilter { static final String [ ] ignoreTestDirs = { STRING0 , SINGLE STRING1 , SINGLE - STRING2 , SINGLE STRING3 , SINGLE STRING4 , SINGLE STRING5 , SINGLE <nb> public class FileFilter { static final String [ ] ignoreTestList = { STRING6 , STRING7 , SINGLE - STRING8 , SINGL...
Removes regex tests from the DumpRenderTree skipped list
<nb> public class Parser { } private boolean peekParenPatternAssignment ( ) { - return peekParenPattern ( PatternKind . ANY , EnumSet . of ( TokenType . EQUAL ) ) ; + return peekParenPattern ( PatternKind . ANY , assignmentFollowSet ) ; } private boolean peekParenPatternStart ( ) { <nb> public class P...
Move the EnumSet containing just TokenType EQUAL into a static variable to avoid calling EnumSet of multiple times
<nb> public class IdentityServiceTest extends PluggableActivitiTestCase { SINGLE identityService . setUserPicture ( userId , null ) ; - assertNull ( ' it should be possible to nullify user picture ' , identityService . getUserPicture ( userId ) ) ; + assertNull ( STRING0 , identityService . getUserPicture ( u...
Fixing java lang NullPointerException when attempting to delete user
<nb> final class DreamController { private final Intent mDreamingStoppedIntent = new Intent ( Dream . ACTION_DREAMING_STOPPED ) . addFlags ( Intent . FLAG_RECEIVER_REGISTERED_ONLY ) ; + private final Intent mCloseNotificationShadeIntent = new Intent ( Intent . ACTION_CLOSE_SYSTEM_DIALOGS ) ; + private Dream...
Close the notification shade when starting dream
<nb> public class ZRTPTransformEngine COMMENT public void setOwnSSRC ( long ssrc ) { ownSSRC = ( int ) ( ssrc & NUMBER0 ) ; - System . out . println ( STRING0 + ownSSRC ) ; } COMMENT
Remove a debug print
<nb> public class BinaryExpressionHelper { controller . getOperandStack ( ) . push ( type ) ; } - private ClassNode getCastType ( Expression exp ) { - if ( exp instanceof ClassExpression ) { - return ClassHelper . CLASS_Type ; - } else if ( exp instanceof ConstructorCallExpression ) { - return ClassHelp...
remove unused method
<nb> final class ActivityStack { return ; } - mStackSupervisor . moveHomeStack ( isHomeStack ( ) ) ; - SINGLE SINGLE mTaskHistory . remove ( tr ) ; <nb> public final class ActivityStackSupervisor { } removeTask ( task ) ; stack . addTask ( task , toTop ) ; - if ( toTop ) { - moveHomeStack ( ...
Don t bring stack forward when moving tasks
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class LongTaskExecutor { if ( task . future != null ) { task . future . cancel ( inte...
Fix minor issue in LongTask API
<nb> public class ACRA { log . e ( LOG_TAG , STRING0 ) ; return ; } - setConfig ( config ) ; + configProxy = config ; final SharedPreferences prefs = getACRASharedPreferences ( ) ; <nb> public class ACRA { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static vo...
Breaking Change removed ACRA setConfig
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class TransportMasterNodeOperationAction < Request extends MasterN } } ) ; } else { + if ( nodes . masterNode ( ) == null ) { + throw new ElasticSearch...
add an exception if there is no master node set
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed bad tags
<nb> public class FetchPhase implements SearchPhase { if ( fieldMappers != null ) { FieldMapper mapper = fieldMappers . mapper ( ) ; if ( mapper != null ) { - name = mapper . names ( ) . name ( ) ; + name = mapper . names ( ) . fullName ( ) ; value = mapper . valueForSearch ( field ) ; } }
fetch phase in search sould return the full name of the field and not just the name
<nb> public class PsiSearchHelperImpl implements PsiSearchHelper { final MultiMap < VirtualFile , RequestWithProcessor > candidateFiles = collectFiles ( singles ) ; + if ( candidateFiles . isEmpty ( ) ) { + return true ; + } + final Map < RequestWithProcessor , StringSearcher > searchers = new HashMap <...
if there are no files containing a word don t change the find usages progress indicator text
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT public class ContextScope implements Scope { - protected HashMap < Context , Map < Key < ? > , Object > > values = new HashMap < Context , Map < Key < ? > , Object > > ( ) ; + protected Wea...
Use a Weak key map for ContextScope but a hard reference for the Context threadlocal
<nb> public class Category { COMMENT COMMENT COMMENT + COMMENT COMMENT public Category ( final String name , final int priority , Location location ) { if ( priority < NUMBER0 || priority > NUMBER1 ) { <nb> public class Category { COMMENT COMMENT + COMMENT COMMENT Category ( final String nam...
deprecate the Category constructors with priority as the priority value isn t used at all
<nb> public abstract class Spring { COMMENT COMMENT public static Registry spring ( SpringApplicationBuilder builder , String . . . args ) { - builder . web ( false ) ; return spring ( builder . run ( args ) ) ; }
Remove artificial restriction on disabling SpringMVC
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , inflateEmptyShadeView ( ) ; updateEmptyShadeView ( ) ; inflateOverflowContainer ( ) ; + mStatusBarKeyguardViewManager . onDensityOrFontScaleChanged ( ) ; } private void inflateSignalClusters ( ) { <nb> public class StatusBarKey...
Fixed a bug where the pin wasn t scaled correctly
<nb> public final class ContactsContract { intent . putExtra ( EXTRA_TARGET_RECT , target ) ; intent . putExtra ( EXTRA_MODE , mode ) ; intent . putExtra ( EXTRA_EXCLUDE_MIMES , excludeMimes ) ; + intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; context . startActivity ( intent ) ; } }
Adds Intent FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET to launch fasttrack intent
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Removing redundant imports
<nb> public final class ObjectHelper { if ( camelProperties != null ) { for ( Map . Entry < String , String > entry : camelProperties . entrySet ( ) ) { String key = entry . getKey ( ) ; - if ( key . startsWith ( prefix ) ) { + if ( key != null && key . startsWith ( prefix ) ) { answer . put ( key . substri...
Fixed possible NPE
<nb> public class SchedulingPolicyService extends ISchedulingPolicyService . Stub { final int callingUid = Binder . getCallingUid ( ) ; switch ( callingUid ) { case Process . AUDIOSERVER_UID : SINGLE - case Process . MEDIA_UID : SINGLE + case Process . CAMERASERVER_UID : SINGLE return true ; default : r...
Fix UID for cameraserver
<nb> public class DownloadIndexActivity extends ExpandableListActivity { } } catch ( InterruptedException e ) { SINGLE - progressFileDlg = null ; } finally { if ( progressFileDlg != null ) { removeDialog ( DIALOG_PROGRESS_FILE ) ;
Fix download error
<nb> public class PlanFragmenter public FragmentProperties setSourceDistribution ( PlanNodeId source ) { if ( distribution . isPresent ( ) ) { - SINGLE - checkState ( distribution . get ( ) == PlanDistribution . SINGLE , + SINGLE + checkState ( distribution . get ( ) == PlanDistribution . SINGLE || distri...
Allow COORDINATOR ONLY plan fragment to remain as the source
<nb> public class ZWaveActiveBinding extends AbstractActiveBinding < ZWaveBindingProvid } if ( StringUtils . isNotBlank ( ( String ) config . get ( STRING0 ) ) ) { try { - isSUC = Boolean . parseBoolean ( ( String ) config . get ( STRING1 ) ) ; - logger . info ( STRING2 , isSUC ) ; + isSUC = Boolean . parse...
Fix setSUC parameter parsing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NotificationsConfiguration implements ApplicationComponent , Notific } public synchronized void registerDefaultSettings (...
when a notification group suddenly gets a toolwindow capability use this capability
<nb> public abstract class Config { @ notnull public static final List < String > LIB_FILES_WITH_CODE = Arrays . asList ( + STRING0 , STRING1 ) ;
Fix most of JS back end tests after adding Pair and Triple
<nb> public class App { System . out . println ( STRING0 + threadSafeIvoryTower1 ) ; System . out . println ( STRING1 + threadSafeIvoryTower2 ) ; - EnumIvoryTower enumIvoryTower1 = EnumIvoryTower . getInstance ( ) ; - EnumIvoryTower enumIvoryTower2 = EnumIvoryTower . getInstance ( ) ; + EnumIvoryTower enumI...
remove the getInstance method
<nb> public class CameraInputController extends GestureDetector { startY = screenY ; this . button = button ; } - return super . touchDown ( screenX , screenY , pointer , button ) || activatePressed ; + return super . touchDown ( screenX , screenY , pointer , button ) || ( activateKey == NUMBER0 || activatePr...
Fix minor bug in CameraInputController
<nb> import NAMESPACE ; import NAMESPACE ; @ singleton - public class RequestIdFilter implements ContainerRequestFilter , ContainerResponseFilter { + public class RequestDataFilter implements ContainerRequestFilter , ContainerResponseFilter { private static final String REQUEST_ID_HEADER_REQ = STRING0 ;...
Rename RequestIdFilter RequestDataFilter
<nb> public class SslHandler setHandshakeSuccess ( ) ; continue ; case NOT_HANDSHAKING : + SINGLE + SINGLE + if ( ctx . inboundByteBuffer ( ) . isReadable ( ) ) { + unwrapLater = true ; + } break ; default : throw new IllegalStateException ( STRING0 + result . getHandshakeStatus ( ) ) ;
Fix a problem in SslHandler where it doesn t work with TLS False Start
<nb> public class CreateNodeFunctionalTest { Client client = Client . create ( ) ; WebResource resource = client . resource ( server . restApiUri ( ) + STRING0 ) ; - ClientResponse response = resource . type ( MediaType . APPLICATION_JSON_TYPE ) . accept ( MediaType . APPLICATION_JSON ) . entity ( STRING1 ) . p...
Reverted a change that made an intentional failing condition into a passing condition
<nb> public class RealmTest extends AndroidTestCase { outStream . close ( ) ; } - public void testWriteEncryptedCopy ( ) throws Exception { + SINGLE + public void disableTestWriteEncryptedCopy ( ) throws Exception { populateTestRealm ( ) ; long before = testRealm . where ( AllTypes . class ) . count ( )...
Temporarily disable writeEncryptedCopy
<nb> public class Reference < T > { COMMENT COMMENT public boolean isNotSet ( ) { - return value != null ; + return value == null ; } }
Fixed bug in org parboiled common Reference
<nb> public class PyTypeModelBuilder { final PyTupleType tupleType = ( PyTupleType ) elementType ; final int n = tupleType . getElementCount ( ) ; for ( int i = NUMBER0 ; i < n ; i ++ ) { - elementTypes . add ( build ( tupleType . getElementType ( i ) , true ) ) ; + final PyType t = tupleType . getElementType...
Don t show parameters for multi parameter types if all parameters are unknown
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SessionFactoryFactory { final ManagedDataSourceFactory dataSourceFactory = new ManagedDataSourceFactory ( dbConfig ) ; final ManagedDataSource dataSource = data...
Pass properties to Hibernate connection
<nb> public class TestJNDI } } + @ suppresswarnings ( STRING0 ) private class BogusContext extends AbstractContext { @ override
Suppress unchecked warning
<nb> public class ShadowConfiguration { @ realobject private Configuration realConfiguration ; - + + public int screenLayout ; + public int touchscreen ; + public int orientation ; + @ implementation public void setToDefaults ( ) { realConfiguration . screenLayout = Configuration . SCREENLAYOUT_...
add ints to store orientation screenLayout touchscreen
<nb> public final class InputManager { } catch ( RemoteException ex ) { throw new RuntimeException ( STRING0 , ex ) ; } + if ( inputDevice != null ) { + mInputDevices . setValueAt ( index , inputDevice ) ; + } } - mInputDevices . setValueAt ( index , inputDevice ) ; return inputDevice ; } } <nb>...
Avoid redundant store into array list
<nb> public class ConcurrentLRUCache < V > { protected void finalize ( ) throws Throwable { try { if ( ! isDestroyed ) { - log . error ( STRING0 ) ; + log . error ( STRING1 ) ; destroy ( ) ; } } finally {
Fixed exception message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ActivityInjectionTest { c . onCreate ( null ) ; } + @ test + public void shouldInjectApplication ( ) { + + final G g = new G ( ) ; ...
add application injection
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public final class ApiSc...
Add external whitelist to ApiScraper
<nb> public class Am { STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 +
Fix incorrect usage text for am
<nb> public class PsiDirectoryImpl extends PsiElementBase implements PsiDirectory { } public void accept ( @ notnull PsiElementVisitor visitor ) { - if ( visitor instanceof JavaElementVisitor ) { - ( ( JavaElementVisitor ) visitor ) . visitDirectory ( this ) ; - } - else { - visitor . visitElement ( thi...
remove incorrect JavaElementVisitor dependency
<nb> public class SeriesGuideApplication extends Application { @ override public void onCreate ( ) { super . onCreate ( ) ; - SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( this ) ; SINGLE CONTENT_AUTHORITY = getPackageName ( ) + STRING0 ; <nb> public class SeriesGuideApplic...
Don t schedule notifications on application creation
<nb> public class TabOverflowPopupPanel extends ThemedPopupPanel event . stopPropagation ( ) ; event . preventDefault ( ) ; hide ( false ) ; + + Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) + { + @ override + public void execute ( ) + { + if ( lastFocusedElement_ != null ) + l...
provide focus restore behaviour only on escape
<nb> public final class NettyUnderFileSystemFileReader implements Closeable { COMMENT public ByteBuffer read ( InetSocketAddress address , long ufsFileId , long offset , long length ) throws IOException { + SingleResponseListener listener = new SingleResponseListener ( ) ; try { ChannelFuture f = mClientBoo...
Remove the listener from the handler after the response
<nb> public class CustomViewAbove extends ViewGroup { int contentLeft = getChildLeft ( NUMBER0 ) ; float percentOpen = getPercentOpen ( ) ; int offset = ( int ) ( mScrollX * ( NUMBER0 - mScrollScale ) ) ; - Log . v ( TAG , STRING0 + offset + STRING1 + contentLeft ) ; mMenu . layout ( NUMBER1 , NUMBER1 , width...
Remove print statement
<nb> public class JSPSourceProcessor extends BaseSourceProcessor { if ( portalSource && mainReleaseVersion . equals ( MAIN_RELEASE_LATEST_VERSION ) && fileName . endsWith ( STRING0 ) && + ! fileName . startsWith ( STRING1 ) && ! fileName . endsWith ( STRING2 ) ) { addImportCounts ( content ) ;
SourceFormatter do not move imports to common init
<nb> public class OpenSprinklerBinding extends AbstractActiveBinding < OpenSprinklerBin } public void activate ( ) { - super . activate ( ) ; updateBinding ( ) ; + super . activate ( ) ; } public void deactivate ( ) { <nb> public class OpenSprinklerBinding extends AbstractActiveBinding < OpenSprinkl...
Debug log instances of OpenSprinkler library not initialized
<nb> public class Verifier implements GroovyClassVisitor , Opcodes { boolean knownSpecialCase = node . isDerivedFrom ( ClassHelper . GSTRING_TYPE ) - || node . isDerivedFrom ( ClassHelper . make ( GroovyObjectSupport . class ) ) - || node . implementsInterface ( ClassHelper . METACLASS_TYPE ) ; + || node . ...
remove MetaClass from the list of classes that is used to exclude addition of getMetaClass getProperty and setProperty
<nb> public class XmppConnection extends ImConnection implements CallbackHandler { Log . e ( ImApp . LOG_TAG , STRING0 , e ) ; } - Log . d ( ImApp . LOG_TAG , STRING1 + alUpdate . size ( ) ) ; + SINGLE mContactListManager . notifyContactsPresenceUpdated ( alUpdate . toArray ( new Contact [ alUpdate . size...
remove debug log
<nb> import NAMESPACE ; COMMENT COMMENT public class AbstractPeerEventListener implements PeerEventListener { + @ override public void onBlocksDownloaded ( Peer peer , Block block , int blocksLeft ) { } + @ override public void onChainDownloadStarted ( Peer peer , int blocksLeft ) { } + @ overri...
Add Override annotations to PeerEventListener
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EchoServer { . option ( ChannelOption . SO_BACKLOG , NUMBER0 ) . localAddress ( new InetSocketAddress ( port ) ) . childO...
Add LoggingHandler to ServerSocketChannel s pipeline
<nb> public class IpnbFilePanel extends JPanel implements Scrollable , DataProvider , D mySelectedCell = null ; myIpnbFile = IpnbParser . parseIpnbFile ( myDocument , myVirtualFile . getPath ( ) ) ; if ( myIpnbFile . getCells ( ) . isEmpty ( ) ) { - createAndAddCell ( true ) ; + CommandProcessor . getInstance...
fixed NPE on creating new Ipython notebook
<nb> public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase PsiFile file = getFile ( ) ; WriteAction . run ( ( ) - > { try { - SINGLE + SINGLE + SINGLE + SINGLE ReadOnlyAttributeUtil . setReadOnlyAttribute ( file . getVirtualFile ( ) , true ) ; } catch ( IOException e ) {
adds more clarifying comments to setReadOnlyAttribute call
<nb> import NAMESPACE ; public class TemplatingModule extends AbstractModule implements HandlerDecoratingModule { private String templatesPath = STRING0 ; - private int cacheSize = NUMBER0 ; + private int cacheSize ; private boolean staticallyCompile ; public String getTemplatesPath ( ) {
use implicit default
<nb> import NAMESPACE ; COMMENT COMMENT + COMMENT COMMENT final class POSDictionaryBuilder extends DictionaryBuilder { - - - POSDictionaryBuilder ( File infoFile ) throws IOException { + public POSDictionaryBuilder ( File infoFile ) throws IOException { super ( infoFile ) ; } <nb> final cl...
make POSDictionaryBuilder public
<nb> public class ReaderPostPagerActivity extends AppCompatActivity } else { menuItems . add ( ReaderMenuAdapter . ITEM_FOLLOW ) ; } - if ( getPostListType ( ) == ReaderPostListType . TAG_FOLLOWED ) { + if ( ! mIsSinglePostView ) { menuItems . add ( ReaderMenuAdapter . ITEM_BLOCK ) ; } listPopup . setAd...
Hide block menu item in single post view
<nb> public abstract class BaseTypeReference implements TypeReference { @ override public boolean equals ( Object o ) { - if ( o != null && o instanceof TypeReference ) { - return getType ( ) . equals ( ( ( TypeReference ) o ) . getType ( ) ) ; + if ( o != null ) { + if ( o instanceof TypeReference ) { ...
Fix implementation of equals for BaseTypeReference
<nb> import NAMESPACE ; import NAMESPACE ; public interface ConstructorDescriptor extends FunctionDescriptor { - COMMENT - COMMENT - COMMENT @ notnull @ override List < TypeParameterDescriptor > getTypeParameters ( ) ; - COMMENT - COMMENT - COMMENT @ notnull @ override JetType getReturnT...
Minor delete outdated comments and refine type
<nb> public class DiffRuleKeysScriptIntegrationTest { public DebuggableTemporaryFolder tmp = new DebuggableTemporaryFolder ( ) ; private Logger ruleKeyBuilderLogger ; private Level previousRuleKeyBuilderLevel ; + private int lastPositionInLog ; @ before public void enableVerboseRuleKeys ( ) throws Excepti...
Don t overwrite the log file mid way through the test
<nb> public abstract class Packet { private final List < PacketExtension > packetExtensions = new CopyOnWriteArrayList < PacketExtension > ( ) ; - private final Map < String , Object > properties = null ; + private final Map < String , Object > properties = new HashMap < String , Object > ( ) ; private XMPP...
Fixed possible NPE
<nb> class TagFileProcessor { Jar tagJar = null ; if ( tagFilePath . startsWith ( STRING0 ) ) { - tagJar = compiler . getCompilationContext ( ) . getTldLocation ( + tagJar = compiler . getCompilationContext ( ) . getTldLocation ( tagInfo . getTagLibrary ( ) . getURI ( ) ) . getJar ( ) ; } String wrapper...
Already have a reference to the JAR containing the tag so use it rather than looking it up again
<nb> public class ChunkOutputWidget extends Composite public void showChunkOutputUnit ( RmdChunkOutputUnit unit , boolean ensureVisible ) { + SINGLE + SINGLE + if ( unit . getType ( ) == RmdChunkOutputUnit . TYPE_TEXT && + unit . getArray ( ) . length ( ) < NUMBER0 ) + return ; + initializeOutput ( ...
avoid initializing chunk output when emitting zero length console data
<nb> public class ShardCompactionManager startDiscovery ( ) ; } - if ( compactionStarted . getAndSet ( true ) ) { + if ( ! compactionStarted . getAndSet ( true ) ) { compactionDriverService . submit ( new ShardCompactionDriver ( ) ) ; } }
Fix start condition for compaction
<nb> public class MongoInputSplit implements Writable , InputSplit { } } - DBCursor getCursor ( ) { + public DBCursor getCursor ( ) { SINGLE SINGLE SINGLE
make something public that we were using