diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class SftpOperations implements RemoteFileOperations < ChannelSftp . LsEntry > } } ) ; + + SINGLE + if ( configuration . getSoTimeout ( ) > NUMBER0 ) { + session . setTimeout ( configuration . getSoTimeout ( ) ) ; + } SINGLE if ( proxy != null ) {
SFTP should use soTimeout on session as that is what it is
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public abstract class AbstractOutOfBlockModificationTest extends JetLightCodeInsi...
Add file text to assert message
<nb> import NAMESPACE ; COMMENT public class SQLCipherStatement implements DatabaseStatement { - private final SQLiteStatement statement ; - public static SQLCipherStatement from ( SQLiteStatement statement ) { return new SQLCipherStatement ( statement ) ; } + private final SQLiteStatement statement...
add get statement method to each to return its contained actual statement
<nb> public class QueryOperation < T > implements AsyncReadOperation < MongoAsyncCursor < T > document . put ( STRING0 , new BsonInt32 ( maxScan ) ) ; } - SINGLE return document ; } <nb> class DBObjectCodec implements CollectibleCodec < DBObject > { this . bsonTypeClassMap = bsonTypeClassMap ; } ...
Removed outdated TODOs
<nb> public class Expression { this . variableNames = variableNames ; variables . put ( STRING0 , new Constant ( - NUMBER0 , Math . E ) ) ; variables . put ( STRING1 , new Constant ( - NUMBER0 , Math . PI ) ) ; + variables . put ( STRING2 , new Constant ( - NUMBER0 , NUMBER0 ) ) ; + variables . put ( STRING3 ...
Added true and false constants to the expression parser
<nb> public class FlushingPlumber extends RealtimePlumber computeBaseDir ( getSchema ( ) ) . mkdirs ( ) ; initializeExecutors ( ) ; bootstrapSinksFromDisk ( ) ; - startPersistThread ( ) ; } protected void flushAfterDuration ( final long truncatedTime , final Sink sink )
remove unneccessary merge n persist start
<nb> public class AssetDataNode extends DataNode { Sheet . Set set = sheet . createPropertiesSet ( ) ; set . setName ( STRING0 ) ; - set . setDisplayName ( STRING1 ) ; + set . setDisplayName ( STRING2 ) ; for ( Field field : key . getClass ( ) . getDeclaredFields ( ) ) { PropertyDescriptor prop = Property...
rename AssetKey Properties to Conversion Settings
<nb> public abstract class GlobalInspectionTool extends InspectionProfileEntry { COMMENT COMMENT public boolean worksInBatchModeOnly ( ) { - return getSharedLocalInspectionTool ( ) != null ; + return getSharedLocalInspectionTool ( ) == null ; } COMMENT
fix stupid flipped boolean mistake
<nb> public abstract class ExtendableListView extends AbsListView { final View view = getChildAt ( motionPosition ) ; SINGLE if ( view != null ) { - performItemClick ( view , motionPosition + mFirstPosition , adapter . getItemId ( motionPosition + mFirstPosition ) ) ; + performItemClick ( view , motionPositio...
Removed conflicting fix
<nb> public final class Roster extends Manager { } COMMENT - COMMENT + COMMENT COMMENT private class RosterResultListener implements StanzaListener {
Fix typo and add URL to Roster javadoc
<nb> public class FileUploadBean { } public void setFile ( Part file ) { + System . out . println ( STRING0 ) ; this . file = file ; if ( null != file ) { + System . out . println ( STRING1 ) ; try { BufferedReader reader = new BufferedReader ( new InputStreamReader ( file . getInputStream ( ) ) ) ; ...
Added more debugging statements
<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...
always show module name
<nb> public class Http2Channel extends AbstractFramedChannel < Http2Channel , AbstractHt if ( setting . getId ( ) == Http2Setting . SETTINGS_INITIAL_WINDOW_SIZE ) { int old = initialSendWindowSize ; initialSendWindowSize = setting . getValue ( ) ; - int difference = old - initialSendWindowSize ; + int differe...
Handle window size updates correctly
<nb> class PowerManagerService extends IPowerManager . Stub private int setScreenStateLocked ( boolean on ) { int err = Power . setScreenState ( on ) ; - if ( err == NUMBER0 ) { + if ( err == NUMBER0 && ! mHasHardwareAutoBrightness ) { enableLightSensor ( on && mAutoBrightessEnabled ) ; if ( ! on ) { SI...
Do not enable light sensor if hardware backlight management is being used
<nb> public class SpringApplicationBuilderTests { ExampleConfig . class ) . profiles ( STRING0 ) . properties ( STRING1 ) . child ( ChildConfig . class ) . profiles ( STRING2 ) . web ( false ) ; this . context = application . run ( ) ; - assertThat ( this . context . getEnvironment ( ) . acceptsProfiles ( STRIN...
Remove missing module from pom thanks Eclipse
<nb> public class QualifiedName { } @ nullable + public String getFirstComponent ( ) { + if ( myComponents . size ( ) == NUMBER0 ) { + return null ; + } + return myComponents . get ( NUMBER0 ) ; + } + + @ nullable public String getLastComponent ( ) { if ( myComponents . size ( ) == NUMBER0 ) {...
do not unwrap index elements in TypeScript when resolving type name
<nb> public class JdbcOwnerRepositoryImpl implements OwnerRepository { ) ; for ( JdbcPet pet : pets ) { owner . addPet ( pet ) ; + SINGLE pet . setType ( EntityUtils . getById ( getPetTypes ( ) , PetType . class , pet . getTypeId ( ) ) ) ; List < Visit > visits = this . visitRepository . findByPetId ( pet ....
Improving fixing comments
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + @ singleton public class Tem...
fixed NPE in TemplateEngineManagerImpl
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class JSON { COMMENT public static Object parse ( String s , BSONCallback c ) { if ( s == null || ( s = s . trim ( ) ) . equals ( STRING0 ) ) { - return ( DBObject ) null ; + return null ; } JSONParser p...
Removed redundant cast
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface Multimap < K , V > { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + C...
Increase the symmetry of the Javadoc changes to Multimap hashCode
<nb> public abstract class RxRatpack { return new ExecControllerBackedScheduler ( execController ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static Scheduler scheduler ( ) { + return scheduler ( ExecController . require ( ) ) ; + } + private static ...
Add a scheduler method to rx integration that finds the exec controller dynamically
<nb> public class ContentView extends FrameLayout { } Integer redirectedCount = NUMBER0 ; + String urlToBlackList = STRING0 ; + try { + urlToBlackList = new URL ( originalUrl ) . getHost ( ) ; + } + catch ( MalformedURLException exc ) { + urlToBlackList = originalUrl ; + } if ( null != mHostRedire...
Add only host to blacklist
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo { private ArtifactFactory artifactFactory ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - private String androidVersion ; - - COMMENT COMMENT COMMENT COMMENT
Removed config parameter androidVersion because we no longer need it
<nb> public class ChatRoomIrcImpl public void setUserNickname ( final String nickName ) throws OperationFailedException { + SINGLE + SINGLE + SINGLE try { parentProvider . getIrcStack ( ) . setUserNickname ( nickName ) ;
Added FIXME for chat room specific nick name issue that Boris Grozev reported
<nb> public class MakeCustomActivity extends Activity { } builder . interpolator ( interpolator ) ; + builder . colors ( getResources ( ) . getIntArray ( R . array . colors ) ) ; SmoothProgressDrawable d = builder . build ( ) ; d . setBounds ( mProgressBar . getIndeterminateDrawable ( ) . getBounds ( ) ) ...
Added sample colors in the MakeCustom Sample
<nb> public class SvnCommand { outputAdapter = new CapturingProcessAdapter ( ) ; myHandler . addProcessListener ( outputAdapter ) ; myHandler . addProcessListener ( new ProcessEventTracker ( ) ) ; + myHandler . addProcessListener ( new ErrorTracker ( ) ) ; myHandler . startNotify ( ) ; } <nb> public cla...
Refactored SvnCommand command error tracking code extracted to separate listener
<nb> public class CxxPreprocess extends AbstractBuildRule { SINGLE for ( Path path : ImmutableSortedSet . copyOf ( includes . getNameToPathMap ( ) . keySet ( ) ) ) { SourcePath source = includes . getNameToPathMap ( ) . get ( path ) ; - builder . setReflectively ( STRING0 + path + STRING1 , getResolver ( ) . ge...
don t dereference SourcePath when forming rule key
<nb> public class MapActivityActions implements DialogProvider { if ( mDrawerList != null && refreshDrawer ) { if ( currentDrawer == DrawerType . WAYPOINTS ) { showWaypointsInDrawer ( false ) ; + } else if ( currentDrawer == DrawerType . MAIN_MENU ) { + final ContextMenuAdapter cm = createOptionsMenu ( ) ; ...
Fixed bug when main manu does not update when using slide
<nb> public class ExtractMethodHandler implements RefactoringActionHandler { public static ExtractMethodProcessor getProcessor ( final Project project , final PsiElement [ ] elements , final PsiFile file , - final boolean showErrorMessage ) { - return getProcessor ( elements , project , file , openEditor ( pr...
update duplicates view fix
<nb> public class FtpOperations implements RemoteFileOperations < FTPFile > { } public List < FTPFile > listFiles ( ) throws GenericFileOperationFailedException { - return listFiles ( STRING0 ) ; + try { + final List < FTPFile > list = new ArrayList < FTPFile > ( ) ; + FTPFile [ ] files = client . listFil...
Adjusted list files opeartion a bit
<nb> public final class DRF extends water . DRemoteTask { @ override public final void reduce ( DRemoteTask drt ) { } - @ override - public void onCompletion ( CountedCompleter caller ) { - System . out . println ( STRING0 + _job ) ; - System . out . println ( STRING1 + _keys . length ) ; - System . out...
Remove debug printouts
<nb> public class EnglishGrammaticalRelations { new String [ ] { STRING0 + timeWordRegex + STRING1 + timeWordRegex + STRING2 , SINGLE + SINGLE + SINGLE STRING3 + selfRegex + STRING4 + timeWordLotRegex + STRING5 , } ) ; public static class IndirectObjectGRAnnotation extends GrammaticalRelationAnnotation ...
Add a couple comments
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea } COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public Frame scoreDeepFeatures ( Frame frame , final int layer ) { if ( layer < NUMBER0 || layer >= model_info ( ) . get_params ( ...
Fix JavaDoc for deepfeatures
<nb> abstract class SingleConsumerLinkedArrayQueue < E > extends SingleConsumerQueue < E , return ep ; } } else { - assert n == tail ; + SINGLE return null ; } }
remove erroneous assertion
<nb> public class PoiFilter { @ override public boolean isCancelled ( ) { - return false || ( matcher != null && matcher . isCancelled ( ) ) ; + return ( matcher != null && matcher . isCancelled ( ) ) ; } } ; } <nb> public class NextTurnInfoWidget extends BaseMapWidget { String text = OsmAndFormatte...
Simplify boolean expressions
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestAll implements Test { private static int CHECK_MEMORY = NUMBER0 ; private static int FILTER_CLASSES = NUMBER1 ; - public static int ourMode = SAVE_MEMOR...
Revert all tests for coverage for now
<nb> public class ShadowActivity extends ShadowContextThemeWrapper { field ( STRING0 ) . ofType ( Application . class ) . in ( realActivity ) . set ( application ) ; } - private void setWindowManager ( WindowManager windowManager ) { - field ( STRING1 ) . ofType ( WindowManager . class ) . in ( realActivity )...
Delete unused private method
<nb> public class SmaliCodeFragmentFactory extends DefaultCodeFragmentFactory { @ override public void visitLocalVariable ( final PsiLocalVariable variable ) { final String name = variable . getName ( ) ; - if ( registerMap . containsKey ( name ) ) { + if ( name != null && registerMap . containsKey ( name ) )...
Fix a possible NPE in SmaliCodeFragmentFactory
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class HttpClient extends ContainerLifeCycle if ( HttpHeader . HOST == header . getHeader ( ) ) continue ; + SINGLE + if ( HttpHeader . EXPECT == header . getHead...
Avoid copying sensitive headers when copying a Request
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public class UptimeClientHandler extends SimpleChannelUpstreamHandler { + SINGLE + private static long ...
Fixed a bug in the uptime example where uptime is reset even when it
<nb> public class Converter < T > { return ; } else if ( resName . type . equals ( STRING0 ) ) { return ; SINGLE + } else if ( resName . type . equals ( STRING1 ) ) { + return ; } else if ( DrawableResourceLoader . isStillHandledHere ( resName ) ) { SINGLE DrawableNode drawableNode = resourceLoader . ge...
Allow Converter to handle dimen resources for the moment think this might break realism but makes everything work
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> class JobPrefixFile implements AutoCloseable { private JobPrefixFile ( final String prefix , final Path directory ) throws IOEx...
Add date string to temporary job names
<nb> public class WPRestClient { public static final float REST_BACKOFF_MULT = FLOAT0 ; public WPRestClient ( RequestQueue queue , Authenticator authenticator ) { - SINGLE this ( queue , authenticator , RestClient . REST_CLIENT_VERSIONS . V1 ) ; } public WPRestClient ( RequestQueue queue , Authenticator...
Set the correct user agent by using the default utility method and remove unnecessary comments
<nb> public abstract class NeoApp extends AbstractApp catch ( NotFoundException e ) { throw new ShellException ( STRING0 + typedId . getId ( ) + - STRING1 , e ) ; + STRING1 ) ; } } else <nb> public abstract class NeoApp extends AbstractApp catch ( NotFoundException e ) { throw new ShellException...
Doesn t include the cause since that Exception class may not exist
<nb> package 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 ; - import NAMESPACE ; + ...
Do not block the super console if there s a connection error in the http cache client
<nb> public class PGraphicsOpenGL extends PGraphics { } public float screenX ( float x , float y , float z ) { - y = - NUMBER0 * y ; SINGLE - SINGLE - if ( ! modelviewUpdated ) { getModelviewMatrix ( ) ; } <nb> public class PGraphicsOpenGL extends PGraphics { } public float screenY ( float x ,...
Removed y inversion from screenXYZ methods
<nb> public class ForgeEventFactory private static CapabilityDispatcher gatherCapabilities ( AttachCapabilitiesEvent event , ICapabilityProvider parent ) { MinecraftForge . EVENT_BUS . post ( event ) ; - return event . getCapabilities ( ) . size ( ) > NUMBER0 ? new CapabilityDispatcher ( event . getCapabilities...
Fix ItemStacks not getting the parent capability provider from items
<nb> public abstract class GeneralItemAnimator extends BaseItemAnimator { schedulePendingAnimationsByDefaultRule ( ) ; } + @ suppresswarnings ( STRING0 ) protected void schedulePendingAnimationsByDefaultRule ( ) { final boolean removalsPending = mRemoveAnimationManager . hasPending ( ) ; final boolean mov...
Suppress AS warnings of Redundant local variable
<nb> class AlignmentImpl extends Alignment { } private boolean continueOffsetResponsibleBlockRetrieval ( @ nullable AbstractBlockWrapper block ) { - if ( block == null ) { - return false ; - } - SINGLE - if ( ! myAllowBackwardShift && ! block . getWhiteSpace ( ) . containsLineFeeds ( ) ) { + if ( ! ...
Make it possible to align code blocks by the right edge
<nb> public class AsyncMultiDataSetIterator implements MultiDataSetIterator { throw new IllegalArgumentException ( STRING0 ) ; this . iterator = iterator ; + this . iterator . reset ( ) ; this . queue = new LinkedBlockingQueue < > ( queueLength ) ; runnable = new AsyncMultiDataSetIterator . IteratorRunnab...
reset backing iterator on asyn iterator creation
<nb> public final class Constant { System . out . println ( STRING0 + e ) ; } - messages = ResourceBundle . getBundle ( STRING1 + MESSAGES_PREFIX , locale ) ; + messages = ResourceBundle . getBundle ( MESSAGES_PREFIX , locale ) ; } private void copyProperty ( XMLConfiguration fromConfig , XMLConfigurati...
roll back to pick up Messages rather than lang Messages properties file which caused Zap to fail to load
<nb> public class RemoteBlockInStreamIntegrationTest { @ parameterized.parameters public static Collection < Object [ ] > data ( ) { SINGLE - List < Object [ ] > list = new ArrayList < Object [ ] > ( ) ; + List < Object [ ] > list = new ArrayList < > ( ) ; list . add ( new Object [ ] { IntegrationTestConsta...
SMALLFIX Removed explicit argument type in RemoteBlockInStreamIntegrationTest
<nb> public class ReceiverActivity extends Activity { JSONObject args = new JSONObject ( bundle . getString ( Receiver . OPTIONS ) ) ; Options options = new Options ( getApplicationContext ( ) ) . parse ( args ) ; - invokeBackgroundCallback ( options ) ; - launchMainIntent ( ) ; + if ( LocalNotification . w...
If the webview is not created firstly start the main intent and then exec the callback
<nb> public class MaterialCalendarView extends ViewGroup { CalendarDay c = currentMonth ; adapter . setRangeDates ( min , max ) ; currentMonth = c ; + if ( min != null ) { + currentMonth = min . isAfter ( currentMonth ) ? min : currentMonth ; + } int position = adapter . getIndexForDay ( c ) ; pager . s...
Fix current month not updating if min date is set to a month after the current month
<nb> public final class TreeMap < K , V > implements SortedMap < K , V > , Serializable { @ override public java . util . TreeMap < K , V > toJavaMap ( ) { - return toJavaMap ( java . util . TreeMap : : new , t - > t ) ; + return toJavaMap ( ( ) - > new java . util . TreeMap < > ( keyComparator ( ) ) , t - > ...
Using appropriate comparator for TreeMap and TreeSet conversion
<nb> public class QueryMethod implements MethodDefinition { . add ( STRING0 , tableDefinition . getPropertyClassName ( ) ) . build ( ) ) ; ProviderMethodUtils . appendTableName ( codeBuilder , - manager . getDatabaseName ( contentProviderDefinition . databaseName ) , tableEndpointDefinition . tableName ) ; - ...
Handle selection and selectionargs on where clause
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { String highway = way . getTag ( STRING0 ) ; if ( highway != null && ( highway . equals ( STRING1 ) || highway . equals ( STRING2 ) || - highway . equals ( STRING3 ) ) ) + highway . equals ( STRING3 ) || highway . equals ( STRING4 ) ) ) ...
Fix unbuilt highways being included for routing
<nb> public abstract class ColoredListCellRenderer < T > extends SimpleColoredComponent } } else { - setBackground ( selected ? list . getSelectionBackground ( ) : null ) ; + setBackground ( selected ? + hasFocus ? UIUtil . getListSelectionBackground ( ) : UIUtil . getListUnfocusedSelectionBackground ( ) : ...
Fix list selection background when unfocused
<nb> final class FileWorkerMasterSyncExecutor implements HeartbeatExecutor { LOG . info ( STRING0 , persistedFiles ) ; } - FileSystemCommand command = null ; + FileSystemCommand command ; try { command = mMasterClient . heartbeat ( WorkerIdRegistry . getWorkerId ( ) , persistedFiles ) ; } catch ( IOExce...
SMALLFIX Removed redundant initializer in FileWorkerMasterSyncExecutor
<nb> public class JPAQueryFactory implements JPQLQueryFactory { } @ override - public JPQLQuery < ? > from ( EntityPath < ? > . . . from ) { + public JPAQuery < ? > from ( EntityPath < ? > . . . from ) { return query ( ) . from ( from ) ; }
specialized return type of from in JPAQueryFactory
<nb> public class StoreDirect extends Store { if ( CC . PARANOID ) offsetsVerify ( newOffsets ) ; - putData ( recid , newOffsets , out ) ; + putData ( recid , newOffsets , out ) ; } protected void offsetsVerify ( long [ ] linkedOffsets ) { <nb> public class StoreDirect extends Store { @ override ...
implement store size
<nb> public class TitanEventualGraphTest extends TitanGraphTestCommon { timehotglobal = timehotglobal / measurements ; System . out . println ( round ( timecoldglobal ) + STRING0 + round ( timewarmglobal ) + STRING0 + round ( timehotglobal ) ) ; - assertTrue ( timecoldglobal > timewarmglobal * NUMBER0 ) ; - a...
relaxed performance test case requirement to not fail on outliers
<nb> public class CustomImportOrderCheckTest extends BaseCheckTestSupport { try { Class < ? > clazz = Class . forName ( STRING0 ) ; - Object t = clazz . newInstance ( ) ; + Object t = clazz . getConstructor ( ) . newInstance ( ) ; Method method = clazz . getDeclaredMethod ( STRING1 , DetailAST . class ) ; ...
Create new instance using constructor in test code
<nb> public abstract class OpenSslContext extends SslContext { try { long bio = SSL . newMemBIO ( ) ; int readable = buffer . readableBytes ( ) ; - if ( SSL . writeToBIO ( bio , OpenSsl . memoryAddress ( buffer ) , readable ) != readable ) { + if ( SSL . writeToBIO ( bio , OpenSsl . memoryAddress ( buffer ) +...
Take readerIndex into account when write to BIO
<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa switchToForeground ( ) ; } this . mOnUpdateBlocklist = listener ; - if ( this . newKeysAvailableListenerCount < NUMBER0 ) { - this . newKeysAvailableListenerCount ++ ; + if ( this . updateBlocklistListenerCount < NUMBER0 )...
Fix set remove OnUpdateBlocklistListener
<nb> public class ActionModesNoActionBar extends SherlockActivity { @ override protected void onCreate ( Bundle savedInstanceState ) { - int theme = R . style . Theme_Sherlock_NoActionBar ; - if ( SampleList . THEME == R . style . Theme_Sherlock_Light || SampleList . THEME == R . style . Theme_Sherlock_Light_...
Use the set theme and request no action bar rather than the
<nb> public class EditSession { COMMENT COMMENT public boolean rawSetBlock ( Vector pt , BaseBlock block ) { - int y = pt . getBlockY ( ) ; - int type = block . getType ( ) ; + final int y = pt . getBlockY ( ) ; + final int type = block . getType ( ) ; if ( y < NUMBER0 || y > NUMBER1 ) { return false ...
Made some variables final
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidMessenger extends im . actor . core . Messenger { return outputFile . getAbsolutePath ( ) ; } - @ objectivecname ( STRING0 ) ...
chore android remove ObjectiveCName
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SSTableSplitter { this . task = new SplittingCompactionTask ( cfs , sstable , sstableSizeInMB ) ; } - public void split ( ) throws IOException + public void split ( ) { task . exec...
don t declare throwing exceptions that aren t thrown
<nb> static public class FnExpr implements Expr { ClassVisitor cv = cw ; SINGLE SINGLE - cv . visit ( V1_5 , ACC_PUBLIC , internalName , null , isVariadic ( ) ? STRING0 : STRING1 , null ) ; + cv . visit ( V1_5 , ACC_PUBLIC + ACC_SUPER , internalName , null , + isVariadic ( ) ? STRING0 : STRING1 , null ) ; ...
added ACC_SUPER flag
<nb> public class RoutingTableTests extends ESAllocationTestCase { private int totalNumberOfShards ; private final static Settings DEFAULT_SETTINGS = Settings . builder ( ) . put ( IndexMetaData . SETTING_VERSION_CREATED , Version . CURRENT ) . build ( ) ; private final AllocationService ALLOCATION_SERVICE = crea...
Don t limit recoveries in RoutingTableTests
<nb> public class GatherEntropy COMMENT private boolean prepareAudioEntropy ( ) { + CaptureDeviceInfo audioCaptureDevice = + deviceConfiguration . getAudioCaptureDevice ( ) ; + if ( audioCaptureDevice == null ) + return false ; + MediaLocator audioCaptureDeviceLocator - = deviceConfiguration . getAu...
Fix NPE when there is no audio capture device
<nb> public class DeepLearningParameters extends Model . Parameters { dl . error ( STRING0 , STRING1 ) ; if ( _activation == Activation . Maxout || _activation == Activation . MaxoutWithDropout ) - dl . error ( STRING2 , STRING3 ) ; + dl . warn ( STRING2 , STRING4 ) ; SINGLE if ( _autoencoder && _activa...
Allow Maxout but warn that the implementation is still ongoing
<nb> public class UserServiceTest { public static class WhenCompanySecurityStrangers { @ test ( expected = ReservedUserEmailAddressException . class ) - public void testCompanySecurityStrangersWithMX1 ( ) throws Exception { + public void testAddUserWithMX1 ( ) throws Exception { Field field = ReflectionUtil...
remove tokens that are inherit by context and describe what is being tested
<nb> public class PGraphics extends PImage implements PConstants { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class PGraphics extends PImage implements PConstants { COMMENT COMMENT COMMENT + COMMENT COMMENT public void stroke ( float x , float y , float...
stress testing the notWebref tag in conjunction with webref
<nb> public class DistributedLogicalPlanner @ override protected SubPlanBuilder visitPlan ( PlanNode node , Void context ) { - throw new UnsupportedOperationException ( STRING0 ) ; + throw new UnsupportedOperationException ( STRING1 + node . getClass ( ) . getName ( ) ) ; } public SubPlanBuilder createS...
Add class name to exception message
<nb> public class ImageManagerInstrumentationTest extends InstrumentationTestCase { FileOutputStream outputStream = null ; try { outputStream = new FileOutputStream ( file ) ; + if ( outputStream == null ) { + return null ; + } while ( ( read = imageStream . read ( ) ) != - NUMBER0 ) { outputStream . wr...
Adds nullcheck to outputstream
<nb> public class MongoDbConfiguration { @ validatormethod public void validate ( ) throws ValidationException { - if ( ( isNullOrEmpty ( getHost ( ) ) || isNullOrEmpty ( getDatabase ( ) ) ) && isNullOrEmpty ( getUri ( ) ) ) { + if ( ( isNullOrEmpty ( getHost ( ) ) || isNullOrEmpty ( getDatabase ( ) ) || getR...
Fix MongoDB config validation if replica set is used
<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 ; <nb> public class MapReduceTest extends DatabaseTestCase { ...
Fix race condition
<nb> 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 NAMESPACE ; <nb>...
Removed unneeded imports set Eclipse to display a warning to remind you
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ViewTextAction extends XFetchValueActionBase { return new Action [ ] { ge...
correctly set focus in view text dialog
<nb> public class AHBottomNavigation extends FrameLayout { } if ( titleState != TitleState . ALWAYS_HIDE && - ( items . size ( ) == MIN_ITEMS || titleState == TitleState . SHOW_WHEN_ACTIVE ) ) { + ( items . size ( ) == MIN_ITEMS || titleState == TitleState . ALWAYS_SHOW ) ) { updateItems ( position , useCal...
Fix a crash with setCurrentItem int position boolean useCallback
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; public class JsonFileMappingsSaver implements MappingsSaver { private final FileSource mappingsFil...
Fixed compile error from bad Nullable import
<nb> public class DefaultFlexByteArrayPoolParams { public static PoolParams get ( ) { return new PoolParams ( - DEFAULT_MAX_BYTE_ARRAY_SIZE , - DEFAULT_MAX_BYTE_ARRAY_SIZE , + COMMENT + COMMENT + COMMENT generateBuckets ( DEFAULT_MIN_BYTE_ARRAY_SIZE , DEFAULT_MAX_BYTE_ARRAY_SIZE ) , - DEFAULT_MIN_BY...
Expand flex byte array pool s cap
<nb> public class WindowManagerService extends IWindowManager . Stub WindowState win = allAppWindows . get ( i ) ; if ( win == startingWindow || win . mAppFreezing || win . mViewVisibility != View . VISIBLE - || win . mAttrs . type == TYPE_APPLICATION_STARTING ) { + || win . mAttrs . type == TYPE_APPLICATION_...
Corrected visibility reporting error in WindowManager
<nb> public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev return false ; } + @ override + public boolean acceptsDirectory ( @ notnull VirtualFile file , @ notnull Project project ) { + return true ; + } + private static final FileAttribute PERSISTENCE = new FileAttribute ...
language level pushers can skip individual directories in order to allow e g JavaLanguageLevelPusher to avoid nonsource roots
<nb> public class NewChatActivity extends FragmentActivity implements View . OnCreateCo @ override public void notifyDataSetChanged ( ) { - if ( ! mCursorChats . isClosed ( ) ) - mCursorChats . requery ( ) ; + mCursorChats . requery ( ) ; super . notifyDataSetChanged ( ) ; }
Remove more cursor defensive coding
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class JBColor extends Color { DARK = dark ; } + public static boolean isBright ( ) { + return ! DARK ; + } + Color getDarkVariant ( ) { return darkColor ; }
introduce JBColor isBright for better use with lambdas
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConstructorDescriptorImpl extends FunctionDescriptorImpl implements @ override protected FunctionDescriptorImpl createSubstitutedCopy ( Declar...
Adding info to an exception
<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea TwoDimTable variableImportances ; ModelMetrics trainMetrics ; ModelMetrics validMetrics ; + double run_time ; @ override public ModelCategory getModelCategory ( ) { return autoencoder ? ModelCategory . AutoEncoder : ...
Add model run time to DL Model Output
<nb> public class Backend { persistAttemptWaittime = configuration . get ( STORAGE_ATTEMPT_WAITTIME ) ; if ( configuration . get ( PARALLEL_BACKEND_OPS ) ) { - int poolsize = Math . min ( NUMBER0 , Runtime . getRuntime ( ) . availableProcessors ( ) ) * THREAD_POOL_SIZE_SCALE_FACTOR ; + int poolsize = Runtime ...
Remove Math min around PARALLEL_BACKEND_OPS
<nb> public class YoutubeSearchEngineTest extends AndroidTestCase { SearchEngine engine = ServiceList . getService ( STRING0 ) . getSearchEngineInstance ( new Downloader ( ) ) ; - result = engine . search ( STRING1 , + result = engine . search ( STRING2 , NUMBER0 , STRING3 , new Downloader ( ) ) . getSearch...
fixed viewcount test again
<nb> public class Hook implements Comparable < Hook > { return mReplacedMethod ; } + @ suppresslint ( STRING0 ) public boolean isDangerous ( ) { String name = String . format ( STRING1 , PrivacyManager . cSettingDangerous , this . getRestrictionName ( ) , this . getName ( ) ) ;
Fix lint warning
<nb> final class SQLiteConfig extends ConfigInterface . Stub { myDatabase = service . openOrCreateDatabase ( STRING0 , Context . MODE_PRIVATE , null ) ; switch ( myDatabase . getVersion ( ) ) { case NUMBER0 : - myDatabase . execSQL ( STRING1 ) ; + myDatabase . execSQL ( STRING2 ) ; break ; case NUMBER1 : ...
fixed possible SQL error
<nb> public class ShadowPhoneNumberUtils { public static java . lang . String formatNumber ( java . lang . String source ) { return source + STRING0 ; } + + @ implementation + public static java . lang . String stripSeparators ( java . lang . String source ) { + return source + STRING1 ; + } } <nb> ...
added stripSeparators shadow method to PhoneNumberUtils
<nb> public class DhcpClient extends BaseDhcpStateMachine { maybeLog ( STRING0 + packet ) ; sendMessage ( CMD_RECEIVED_PACKET , packet ) ; } - } catch ( IOException | ErrnoException e ) { - Log . e ( TAG , STRING1 , e ) ; + } catch ( IOException | ErrnoException e ) { + if ( ! stopped ) { + Log . e ( TA...
Don t log errors if the receive thread is stopped
<nb> public final class ActivityStackSupervisor implements DisplayListener { boolean didSomething = false ; for ( int displayNdx = mActivityDisplays . size ( ) - NUMBER0 ; displayNdx >= NUMBER1 ; -- displayNdx ) { final ArrayList < ActivityStack > stacks = mActivityDisplays . valueAt ( displayNdx ) . mStacks ; ...
ActivityManager Fix IndexOutOfBoundsException
<nb> public abstract class WebSettings { } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static final int LOAD_DEFAULT = - NUMBER0 ; COMMENT - COMMENT + COMMENT COMMENT public static final int LOAD_NORMAL = NUMBER1 ; COMMENT - COMMENT - COMMENT + COMM...
Improve JavaDoc for cache mode constants
<nb> import NAMESPACE ; COMMENT COMMENT public class TokensRegexNERAnnotator implements Annotator { - protected static final Redwood . RedwoodChannels logger = Redwood . channels ( STRING0 ) ; + protected static final Redwood . RedwoodChannels logger = Redwood . channels ( STRING1 ) ; SINGLE private fin...
Minor logging changes
<nb> public abstract class AbstractExecutionThreadService implements Service { return delegate . stopAndWait ( ) ; } - private String getServiceName ( ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + protected String getServiceName ( ) { return getClass (...
make AbstractExecutionThreadService getServiceName protected