diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class DeepLearningModel extends Model < DeepLearningModel , DeepLearningModel dl . hide ( STRING0 , STRING1 ) ; if ( _rate != FLOAT0 ) dl . warn ( STRING2 , STRING3 ) ; if ( _rate_annealing != FLOAT1 ) dl . warn ( STRING4 , STRING5 ) ; - if ( _rate_decay != FLOAT1 ) dl . warn ( STRING6 , STRING7 ) ;...
Fix typo in warning message generation
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class LineageMasterClientRestApiTest extends RestApiTest { mHostname = mResource . get ( ) . getHostn...
Fix merge conflict
<nb> public class SIPCommCallComboBoxUI extends SIPCommComboBoxUI { super ( combo ) ; } - + COMMENT - COMMENT + COMMENT + COMMENT COMMENT - public void show ( ) { - setListSelection ( comboBox . getSelectedIndex ( ) ) ; + protected void togglePopup ( ) { + if ( isVisible ( ) ) { + hide ( )...
depricated method removed
<nb> public class ZooKeeperMasterModel implements MasterModel { @ override public List < String > getDeploymentGroupHosts ( final String name ) throws DeploymentGroupDoesNotExistException { - log . error ( STRING0 , name ) ; + log . debug ( STRING0 , name ) ; final ZooKeeperClient client = provider . get ( ...
Fix log level for a message
<nb> public class JoinPublicGroupFragment extends BaseFragment { } } ) ; PublicGroupSetView topFriendsGroupSetView = new PublicGroupSetView ( getActivity ( ) , new PublicGroupSet ( topByFriendsGroupsSet , getString ( R . string . join_public_group_top_by_friends_title ) , getString ( R . string . join_public_grou...
friends top set handle clicks
<nb> class Stream extends AbstractStream implements HeaderEmitter { @ override final String getConnectionId ( ) { - return getParentStream ( ) . getConnectionId ( ) ; + return handler . getConnectionId ( ) ; }
Always obtain connection ID from the handler which will never be null
<nb> public class DeepLearningTask extends FrameTask < DeepLearningTask > { _chunk_node_count += other . _chunk_node_count ; } } + if ( other . _output . unstable ( ) ) _output . set_unstable ( ) ; } static long _lastWarn ; <nb> public abstract class Neurons { scale += _a . get ( row ) ; } for ( i...
Catch numerical instability earlier
<nb> public abstract class AbstractGenruleStep extends ShellStep { public AbstractGenruleStep ( BuildRuleType type , - BuildTarget target , CommandString commandString , Set < BuildRule > depsToSubstituteInCommandString ,
Remove a random blank line
<nb> public class Watcher implements Runnable { } protected boolean isIgnoredFilePath ( Path filePath ) { - if ( _downloadedFilePathNames . remove ( filePath . toString ( ) ) ) { + if ( _downloadedFilePathNames . remove ( filePath . toString ( ) ) || + Files . notExists ( filePath ) ) { + return true ; ...
sync engine Clean up logs a bit by checking if file exists before seeing if ignored
<nb> public class BackgroundPlayer extends Service / * implements MediaPlayer . OnPrepare SINGLE noteBuilder . setVisibility ( Notification . VISIBILITY_PUBLIC ) ; - + noteBuilder . setCustomContentView ( view ) ; + noteBuilder . setCustomBigContentView ( expandedView ) ; note = noteBuilder . build ( ) ; ...
Set customs views in builder
<nb> final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice { assertRunOnServiceThread ( ) ; mService . sendCecCommand ( HdmiCecMessageBuilder . buildReportPhysicalAddressCommand ( mAddress , mService . getPhysicalAddress ( ) , mDeviceType ) ) ; - if ( reason == HdmiControlService . INITIATED_BY_SCRE...
Prevents HdmiControlService from turning on TV on wakeup
<nb> public class HomegearClient extends BaseHomematicClient { for ( HmChannel channel : device . getChannels ( ) ) { for ( HmDatapoint dp : channel . getDatapoints ( ) ) { + logger . trace ( STRING0 , dp ) ; DatapointConfig bindingConfig = new DatapointConfig ( device . getAddress ( ) , channel . getNumber (...
Added trace logging for homegear
<nb> package NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class RESTErrorHandler { response . setHeader ( CONTENT_TYPE , STRING0 ) ; response . setContent ( ChannelBuffers . copiedBuffer ( STRING1 + status . toString ( ) + STRING2 + messag...
Bug fix in RESTErrorHandler adding the right content length in the response header
<nb> public class DatabaseHelper extends SQLiteOpenHelper { SINGLE SINGLE SINGLE - private static final int DATABASE_VERSION = NUMBER0 ; + private static final int DATABASE_VERSION = NUMBER1 ; private Context mContext ; <nb> public class DatabaseHelper extends SQLiteOpenHelper { upgradeVersion = NUM...
Adjust default screen timeout
<nb> public class AudioTrack return ERROR_INVALID_OPERATION ; } - if ( mAudioFormat == AudioFormat . ENCODING_PCM_FLOAT ) { - Log . e ( TAG , STRING0 ) ; - return ERROR_INVALID_OPERATION ; - } - if ( ( writeMode != WRITE_BLOCKING ) && ( writeMode != WRITE_NON_BLOCKING ) ) { Log . e ( TAG , STRING1 )...
Add float support to ByteBuffer AudioTrack write
<nb> public class Container extends AbsLayoutContainer { private EdgeEffect mLeftEdge , mRightEdge , mTopEdge , mBottomEdge ; - private float pullPastSlack = NUMBER0 f ; + private float pullPastSlack = NUMBER1 f ; SINGLE SINGLE
Updated value for drag distance
<nb> public abstract class Logger { error ( resultMessage , new Throwable ( ) ) ; } + SINGLE return value ; }
suppress contract validation for wrong Logger assertTrue
<nb> public class AudioVideoNotesPlugin extends OsmandPlugin { runMediaRecorder ( mapActivity , mr , f ) ; } catch ( Exception e ) { logErr ( e ) ; - return ; - } + } } @ override <nb> public class AudioVideoNotesPlugin extends OsmandPlugin { private void logErr ( Exception e ) { log . error ( S...
Remove unnecessary returns
<nb> public final class OpenSslEngine extends SSLEngine { if ( session == null ) { session = new SSLSession ( ) { SINGLE - private byte [ ] id ; private X509Certificate [ ] x509PeerCerts ; SINGLE <nb> public final class OpenSslEngine extends SSLEngine { @ override public byte [ ] getId ( ) { - S...
Add proper Openssl SSLSession getId implementation
<nb> public class TheTVDB { show . airtime = TimeTools . parseShowReleaseTime ( traktShow . airTime ) ; show . country = traktShow . country ; - SINGLE - if ( Utils . isAllowedLargeDataConnection ( context , false ) ) { - fetchArt ( show . poster , true , context ) ; - } - return show ; }
Don t pre load poster when adding or updating show
<nb> public class TestSSOnonLoginAndDigestAuthenticator extends TomcatBaseTest { auth . append ( md5response ) ; auth . append ( STRING0 ) ; if ( qop != null ) { - auth . append ( STRING1 ) ; + auth . append ( STRING2 ) ; auth . append ( qop ) ; - auth . append ( STRING0 ) ; } if ( nc != null ) { - ...
Fix broken test qop and nc are not quoted
<nb> class EmbeddedChannel extends AbstractChannel { } @ override - protected void doRegister ( ) throws Exception { + protected Runnable doRegister ( ) throws Exception { state = NUMBER0 ; + return null ; } @ override
Fix a compilation error
<nb> public class BreadcrumbsComponent extends JComponent implements Disposable { @ notnull Dimension getSize ( @ notnull @ nonnls final String s , @ notnull final FontMetrics fm , final int maxWidth ) { final int width = fm . stringWidth ( s ) + ROUND_VALUE ; - return new Dimension ( width > maxWidth ? maxWidt...
minor rendering fix
<nb> public abstract class AttributeDefinition { COMMENT COMMENT COMMENT - public abstract void marshallAsElement ( final ModelNode resourceModel , final boolean marshallDefault , final XMLStreamWriter writer ) throws XMLStreamException ; + public void marshallAsElement ( final ModelNode resourceModel , final...
fix potential backward compatibility issue
<nb> public class GpsListener implements LocationListener { public Location getLocation ( ) { + cLoc = mLocMan . getLastKnownLocation ( LocationManager . GPS_PROVIDER ) ; return cLoc ; } <nb> public class NetworkListener implements LocationListener { public Location getLocation ( ) { + cLoc = mL...
Cherry picking the listeners to get GeoLocation to work
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AjpAprProtocol processor = createProcessor ( ) ; } - if ( processor instanceof ActionHook ) { - ( ( ActionHook ) processor ) . action ( ...
Remove unnecessary tests and casts
<nb> public class PartitionRuntimeState implements DataSerializable { if ( ! unmatchAddresses . isEmpty ( ) ) { SINGLE SINGLE - logger . warning ( STRING0 + - unmatchAddresses ) ; + logger . warning ( STRING0 + + unmatchAddresses ) ; } }
Resolved checkstyle issue
<nb> public class NotesAdapter extends CursorRecyclerViewAdapter < NotesAdapter . NoteVie if ( mHiddenNoteIds . size ( ) > NUMBER0 && mHiddenNoteIds . contains ( objectCursor . getSimperiumKey ( ) ) ) { noteViewHolder . contentView . setVisibility ( View . GONE ) ; + noteViewHolder . headerView . setVisibility ...
Hide the header view when hiding a notification
<nb> public final class GenericRequest < A , T , Z , R > implements Request , SizeReadyCallb COMMENT COMMENT private void onResourceReady ( Resource < ? > resource , R result ) { + status = Status . COMPLETE ; + this . resource = resource ; + if ( requestListener == null || ! requestListener . onResourceR...
Avoid overriding status if cleared in Target
<nb> public class ReaderTagActions { public static boolean deleteTag ( final ReaderTag tag , final ReaderActions . ActionListener actionListener ) { - SINGLE - if ( tag == null || tag . tagType == ReaderTagType . DEFAULT ) { + if ( tag == null ) { ReaderActions . callActionListener ( actionListener , fals...
Remove unnecessary default tag checks
<nb> public class StatsVisitorsAndViewsFragment extends StatsAbstractFragment for ( int i = NUMBER0 ; i < overviewItems . length ; i ++ ) { CheckedTextView rb = ( CheckedTextView ) inflater . inflate ( R . layout . stats_visitors_and_views_button , container , false ) ; LinearLayout . LayoutParams params = new Li...
Each pseudo tab now match the height of the parent
<nb> public class CppCompletionRequest } } - SINGLE - ArrayList < String > snippets = snippets_ . getCppSnippets ( ) ; - for ( String snippet : snippets ) - if ( snippet . startsWith ( userTypedText ) ) - filtered . unshift ( CppCompletion . createSnippetCompletion ( snippet ) ) ; + SINGLE + if ( co...
only add snippet completions for global scope
<nb> import NAMESPACE ; public abstract class ValidatingCallbackHandler implements CallbackHandler { private static final Pattern ALPHANUMERICS_PATTERN = Pattern . compile ( STRING0 ) ; - private static final Pattern NODE_NAME_PATTERN = Pattern . compile ( STRING1 ) ; + SINGLE protected String operation...
Relax node name validation in the CLI
<nb> final class BootstrapCheck { static class MaxNumberOfThreadsCheck implements Check { - private final long maxNumberOfThreadsThreshold = NUMBER0 < < NUMBER1 ; + private final long maxNumberOfThreadsThreshold = NUMBER0 < < NUMBER2 ; @ override public boolean check ( ) { <nb> public class BootstrapC...
Reduce maximum number of threads in boostrap check
<nb> public class AnnotationVisitor { String methodName = mn . getName ( ) ; SINGLE if ( mn . getCode ( ) == null && ! attributes . containsKey ( methodName ) ) { - addError ( STRING0 + methodName + STRING1 + classNode , node ) ; + addError ( STRING0 + methodName + STRING2 , node ) ; ok = false ; } }
remove trivial dupe in error message
<nb> public class AccessibleObject implements AnnotatedElement { if ( sc == callee ) { return true ; } - sc = caller . getSuperclass ( ) ; + sc = sc . getSuperclass ( ) ; } } return samePackage || isSamePackage ( caller , callee ) ;
Fixed infinite loop problem in AccessibleObject checkAccessible when checking protected member
<nb> public class MaterialDesignIconGenerateDialog extends DialogWrapper { private static final String ERROR_SIZE_CHECK_EMPTY = STRING0 ; private static final String ERROR_RESOURCE_DIR_NOTHING_PREFIX = STRING1 ; private static final String ERROR_CUSTOM_COLOR = STRING2 ; + private static final String OK_BUTTON_L...
Renamed dialog buttons to have more intuitive labels
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class MetaDataFieldProvider implements Serializable { SINGLE SINGLE - catch ( SQLFeatureNotSupportedException e ) { + catch ( SQLExcepti...
Handle SQLException thrown when initializing MeataDataFieldProvider with Amazon Hive JDBC driver
<nb> public class Editor { } } - private void hideInsertionPointCursorController ( ) { + void hideInsertionPointCursorController ( ) { if ( mInsertionPointCursorController != null ) { mInsertionPointCursorController . hide ( ) ; } <nb> public class TextView extends View implements ViewTreeObserver . O...
Fix unexpected selection cancellation
<nb> public class MediaFile { addFileType ( STRING0 , FILE_TYPE_MID , STRING1 ) ; addFileType ( STRING2 , FILE_TYPE_MP4 , STRING3 , MtpConstants . FORMAT_MPEG ) ; + addFileType ( STRING4 , FILE_TYPE_MP4 , STRING3 , MtpConstants . FORMAT_MPEG ) ; addFileType ( STRING5 , FILE_TYPE_MP4 , STRING6 , MtpConstants ....
Recognize MPG file extension as MPEG video
<nb> public class Camera implements IUpdateHandler { SINGLE SINGLE - public Camera ( final float pCenterX , final float pCenterY , final DisplayMetrics pDisplayMetrics ) { - this . mMinX = NUMBER0 ; - this . mMinY = NUMBER0 ; - this . mMaxX = pDisplayMetrics . widthPixels ; - this . mMaxY = pDisplayMetr...
Made Camera Constructor using DisplayMetrics static so the specific Camera Constructor gets higher attention
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMM...
Remove Javadoc errors
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { if ( iv == null ) { iv = new IntersectionVertex ( graph , label , coordinate . x , coordinate . y , label ) ; + if ( node . hasTrafficLight ( ) ) { + iv . setTrafficLight ( true ) ; + } } intersectionNodes . put ( nid , iv ) ; e...
set IntersectionVertex trafficLight when appropriate
<nb> public class HazelcastIdempotentRepository extends ServiceSupport implements Ide repo . unlock ( key ) ; } } + + @ override + public void clear ( ) { + repo . clear ( ) ; + } public String getRepositoryName ( ) { return repositoryName ; } - } <nb> public class HazelcastIdempotentRepos...
IdempotentRepository Add clear operation align HazelcastIdempotentRepository
<nb> public class RuleKey { public RuleKeyPair build ( ) { RuleKey ruleKeyWithoutDeps = new RuleKey ( hasher . hash ( ) ) ; + if ( logElms != null ) { + logger . verbose ( + STRING0 , + ruleKeyWithoutDeps , + Joiner . on ( STRING1 ) . join ( logElms ) ) ; + } + SINGLE setReflectively ( STRING2 ,...
Log rule key without deps in verbose mode
<nb> public class MainApplication extends Application { IntentFilter filter = info . filter ; if ( filter != null && filter . hasAction ( Intent . ACTION_VIEW ) && filter . hasCategory ( Intent . CATEGORY_BROWSABLE ) ) { if ( info . activityInfo . packageName . equals ( BuildConfig . STORE_PACKAGE ) ) { - MainA...
Fix copy paste error with openAppStore
<nb> public class TwitterTestUnit extends TestCase { SINGLE statuses = unauthenticated . getUserTimeline ( id1 , new Paging ( NUMBER0 ) ) ; assertTrue ( STRING0 , NUMBER1 < statuses . size ( ) ) ; - - SINGLE - SINGLE - statuses = unauthenticated . getUserTimeline ( id1 , NUMBER2 , NUMBER0 ) ; - assertTr...
fixing TwitterTestUnit java
<nb> class TypeEvalConstraints { result = NUMBER0 * result + ( myOrigin != null ? myOrigin . hashCode ( ) : NUMBER1 ) ; return result ; } + + @ override + public String toString ( ) { + return String . format ( STRING0 , myAllowDataFlow , myAllowStubToAST , myOrigin ) ; + } }
Added TypeEvalConstraints toString
<nb> public class DbUserInfoProvider implements UserInfoProvider { SINGLE userInfo = new BasicUserInfo ( username , rs . getString ( NUMBER0 ) , SINGLE - rs . getString ( NUMBER1 ) , SINGLE - new java . util . Date ( Long . parseLong ( rs . getString ( NUMBER2 ) . trim ( ) ) ) , SINGLE - new java . util . D...
Fixed loading users
<nb> public class FastImage extends Actor { updateSprite ( ) ; if ( region . getTexture ( ) != null ) { - sprite . draw ( batch ) ; SINGLE + sprite . draw ( batch , parentAlpha ) ; } }
added parent alpha to fastimage
<nb> public class ForgeModContainer extends DummyModContainer implements WorldAccessC MinecraftForge . EVENT_BUS . register ( MinecraftForge . INTERNAL_HANDLER ) ; ForgeChunkManager . captureConfig ( evt . getModConfigurationDirectory ( ) ) ; FMLCommonHandler . instance ( ) . bus ( ) . register ( this ) ; + +...
Fix versionCheck config option
<nb> public class FromBuilder extends BuilderSupport implements ProcessorFactory { @ fluent public RecipientListBuilder recipientList ( @ fluentarg ( value = STRING0 , element = true ) - ValueBuilder receipients ) { + Expression receipients ) { RecipientListBuilder answer = new RecipientListBuilder ( this ,...
tidied up the DSL removing the unnecessary use of ValueBuilder
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class LocalAddress extends SocketAddress implements Comparable < LocalAddress > { + public final class LocalAddress extends SocketAddress implements Comparable < LocalAddress > { private static final long serialVersionUID = - NUMBER0 ; private sta...
Made LocalAddress final
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AbstractMicrobenchmark { } protected int getWarmupIterations ( ) { - return Integer . parseInt ( System . getProperty ( STRING0 , STRING1 ) ) ; + return S...
Using SystemPropertyUtil for prperty parsing
<nb> public class MaterialListView extends RecyclerView { if ( oldAdapter != null ) { oldAdapter . unregisterAdapterDataObserver ( observer ) ; } - if ( adapter instanceof IMaterialListAdapter ) { - super . setAdapter ( adapter ) ; - if ( adapter != null ) { + if ( adapter != null ) { + if ( adapter ins...
Fixed potential NullPointerException
<nb> public class TestSuite implements Test { addTest ( createTest ( theClass , name ) ) ; } + COMMENT + COMMENT + COMMENT + COMMENT static public Test createTest ( Class theClass , String name ) { Constructor constructor ; try {
Added important geographical commentary
<nb> public class SugarRecord { Field idField = null ; for ( Field column : columns ) { ReflectionUtil . addFieldValueToColumn ( values , column , object , entitiesMap ) ; - if ( column . getName ( ) == STRING0 ) { + if ( column . getName ( ) . equals ( STRING0 ) ) { idField = column ; } }
Fixed a bug when saving a row that was already in the db
<nb> public abstract class BaseChart extends ViewGroup { public void setLegendHeight ( float _legendHeight ) { mLegendHeight = Utils . dpToPx ( _legendHeight ) ; - if ( getData . size ( ) > NUMBER0 ) + if ( getData ( ) . size ( ) > NUMBER0 ) onDataChanged ( ) ; }
added missing brackets
<nb> public class ClientConductorTest extends MockBufferUsage } @ test ( expected = RegistrationException . class ) - public void shouldFailToAddOnMediaDriverError ( ) + public void shouldFailToAddPublicationOnMediaDriverError ( ) { doAnswer ( ( invocation ) - > <nb> public class ClientConductorTest e...
add subscription error test case
<nb> public class BaseInputConnection implements InputConnection { } COMMENT - COMMENT + COMMENT COMMENT public boolean performEditorAction ( int actionCode ) { - return false ; + long eventTime = SystemClock . uptimeMillis ( ) ; + sendKeyEvent ( new KeyEvent ( eventTime , eventTime , + KeyEvent ....
Generate key events for actions sent to generic input connections
<nb> import NAMESPACE ; public class ASMSerializerFactory implements Opcodes { - protected final ASMClassLoader classLoader = new ASMClassLoader ( ASMSerializerFactory . class . getClassLoader ( ) ) ; + protected final ASMClassLoader classLoader = new ASMClassLoader ( ) ; private final AtomicLong seed = n...
revert use thead context classloader
<nb> public abstract class AbstractSchemesManager < T extends Scheme , E extends Externa } protected boolean isExternalizable ( final T scheme ) { - try { - E e = ( ( E ) scheme ) ; - return true ; - } - catch ( ClassCastException e ) { - return false ; - } + return scheme instanceof Externalizabl...
do not catch ClassCastException
<nb> public class SessionManager extends BasicModule implements ConnectionCloseListen private int conflictLimit ; private Random randomResource = new Random ( ) ; - private Map < String , Session > preAuthenticatedSessions = new HashMap < String , Session > ( ) ; + private Map < String , Session > preAuthenti...
Fixed concurrency issue
<nb> import NAMESPACE ; STRING0 + STRING1 + STRING2 + - STRING3 + - STRING4 + STRING5 ) public class PreconditionsExpensiveString extends RefactoringMatcher < MethodInvocationTree > {
Refined description of PreconditionsExpensiveString
<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 ; <nb> public abstract class AbstractCo...
Commit metadata changes on success
<nb> public class DbNotificationListener extends MetaStoreEventListener { throw new RuntimeException ( e ) ; } } - + + @ override + public void remove ( ) { + throw new UnsupportedOperationException ( ) ; + } } class PartitionFilesIterator implements Iterator < PartitionFiles > { <nb> public c...
Add file checksum list for create table partition during notification creation whenever relevant
<nb> public class FindManagerImpl extends FindManager implements PersistentStateCompo try { if ( editorHighlighter instanceof LayeredLexerEditorHighlighter ) { - lexer = LexerEditorHighlighterLexer . getLexerBasedOnLexerHighlighter ( text , file , myProject ) ; + lexer = new LexerEditorHighlighterLexer ( edit...
don t use editor highlighter from editor as it is built with other options
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class IncreasingSubsequnceOfLength3WithMaxProduct { public int maxProduct ( int arr [ ] ) { <nb> public class IncreasingSubsequnceOfLength3WithMaxProduct { ...
Add some comments
<nb> public class Ctags { command . add ( STRING0 ) ; command . add ( STRING1 ) ; command . add ( STRING2 ) ; - + } + SINGLE command . add ( STRING3 ) ; SINGLE command . add ( STRING4 ) ; command . add ( STRING5 ) ; <nb> public class Ctags { command . add ( STRING6 ) ; command . add ( STRING7 ) ...
disable universal ctags clojure parser use ours
<nb> public class PatternRuleHandler extends XMLRuleHandler { private boolean defaultOff ; private boolean ruleGroupDefaultOff ; - private boolean defaultOn ; private String ruleGroupDescription ; private int startPos = - NUMBER0 ; <nb> public class PatternRuleHandler extends XMLRuleHandler { } if (...
remove unused variable
<nb> public class NeoStore extends AbstractStore public void flushAll ( ) { + super . flush ( ) ; + } + + public void flushNeoStoreOnly ( ) + { try { - pageCache . flush ( ) ; + storeFile . flush ( ) ; } catch ( IOException e ) { - SINGLE - SINGLE - throw new UnderlyingStorageExcepti...
Fix a bug where log rotation did not properly flush and force the neostore with the new log version
<nb> public class Environment extends AbstractLifeCycle { COMMENT COMMENT + COMMENT + COMMENT COMMENT public Environment ( Configuration configuration ) { this . config = new DropwizardResourceConfig ( ) {
Fix a Javadoc issue in Environment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT @ patterns class $ { SINGLE <nb> import NAMESPACE ; @ unapply static < T > Tuple2 < T , Stream < T > > Stream ( Stream . Cons < T > cons ) { return Tuple . of ( cons . head ( ) , cons . tail ( ) ) ; } @ u...
Added javadoc to internal class
<nb> public class CompileDriver { public static volatile boolean ourDebugMode = false ; SINGLE - private static final boolean OUT_OF_PROCESS_MAKE_AS_SERVER = false ; SINGLE + private static final boolean OUT_OF_PROCESS_MAKE_AS_SERVER = true ; SINGLE public static boolean runOutOfProcessMakeAsServer ( ) { ...
turn server on again
<nb> public class ThriftColumnFamilyDefinitionImpl implements ColumnFamilyDefinition @ override public Object getFieldValue ( String name ) { - System . out . println ( STRING0 + name ) ; return cfDef . getFieldValue ( _Fields . valueOf ( name ) ) ; }
Remove debug code
<nb> public class Profiler { return this ; } + public Profiler printThreadName ( ) { + println ( Thread . currentThread ( ) . getName ( ) + STRING0 , name ) ; + return this ; + } + public Profiler start ( ) { if ( paused ) { start = System . nanoTime ( ) ;
add method for printing thread name
<nb> public class RolloutPlanCompleter implements CommandLineCompleter { COMMENT @ override public int complete ( CommandContext ctx , String buffer , int cursor , List < String > candidates ) { + if ( ! ctx . isDomainMode ( ) ) { + return - NUMBER0 ; + } final ParsedCommandLine parsedCmd = ctx . getParse...
don t complete rollout plans in standalone mode
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment { @ override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { SINGLE - if ( listAdapter . getGroupCount ( ) == NUMBER0 && getDownloadActivity ( ) . getLocalIndexInfos ( ) . size ( ) > NUMBER0 ) { + if ( listAdap...
check out NPE in LocalIndexesFragment
<nb> package NAMESPACE ; public class InlineMarker { - - public static void beforeInlineCall ( ) { - + public static void mark ( int i ) { } - public static void afterInlineCall ( ) { - + public static void mark ( String name ) { } - SINGLE - @ deprecated - public static void goToTryCa...
Add generalized methods to InlineMarker
<nb> public class ZooKeeperMasterModel implements MasterModel { final String deploymentGroupName = entry . getKey ( ) ; final VersionedValue < DeploymentGroupTasks > versionedTasks = entry . getValue ( ) ; final DeploymentGroupTasks tasks = versionedTasks . value ( ) ; + final int taskIndex = tasks . getTaskInd...
Improve rolling update logging
<nb> public class ShowcaseView extends RelativeLayout implements View . OnClickListener COMMENT COMMENT public int fadeOutDuration = AnimationUtils . DEFAULT_DURATION ; - COMMENT + COMMENT COMMENT public LayoutParams buttonLayoutParams = null ; }
Fixed broken comment after pull request
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AtmosphereResourceInjector extends BaseInjectableProvider { return new Injectable < AtmosphereResource > ( ) { @ override public Atmospher...
Fix regression by rolling back last commit
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractItem < Item extends IItem , VH extends RecyclerView . V @ override + @ callsuper public void bindView ( VH holder ) { SINGLE holder ....
add CallSuper annotation so people call the super
<nb> public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro createWheels ( ) ; } + @ override public Control cloneForSpatial ( Spatial spatial ) { throw new UnsupportedOperationException ( STRING0 ) ; } <nb> public class TestHoveringTank extends SimpleApplication implements Ana...
removed unnecessary changes
<nb> public class LinkProperties implements Parcelable { public Collection < String > getAllInterfaceNames ( ) { Collection interfaceNames = new ArrayList < String > ( mStackedLinks . size ( ) + NUMBER0 ) ; - interfaceNames . add ( new String ( mIfaceName ) ) ; + if ( mIfaceName != null ) interfaceNames . add...
Prevent NPE in new API
<nb> public class CodeCompletionHandlerBase implements CodeInsightActionHandler { public final void invoke ( @ notnull final Project project , @ notnull final Editor editor , @ notnull PsiFile psiFile ) { if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { - assert ! ApplicationManager . get...
Please don t invoke completion inside write action
<nb> public final class Futures { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT @ deprecated public <nb> public final class Futures { COMMENT COMMENT COMMENT + COMMENT + COMMENT ...
Deprecate Futures makeChecked
<nb> public class Table extends SqlTable < TableModel > { COMMENT public void appendCreateTableSql ( StringBuilder sql , PropertyVisitor < Void , StringBuilder > propertyVisitor ) { sql . append ( STRING0 ) . append ( getExpression ( ) ) . append ( STRING1 ) ; + boolean needsComma = false ; for ( Property < ?...
Fix a syntax error in create table sql
<nb> public class SQLiteQueryBuilder } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void setStrictProjectionMap ( boolean flag ) { - } - - COMMENT COMMENT COMMENT COMMENT
Remove the obsolete function that is not used anymore
<nb> public class FileConsumerCustomExceptionHandlerTest extends ContextTestSupport { return jndi ; } + SINGLE @ override protected RouteBuilder createRouteBuilder ( ) throws Exception { return new RouteBuilder ( ) { <nb> public class FileConsumerCustomExceptionHandlerTest extends ContextTestSupport { ...
File consumer should use exception handler to handle all component specific exceptions
<nb> public abstract class JpaBaseConfiguration implements BeanFactoryAware { return NO_PACKAGES ; } - protected void configure ( - LocalContainerEntityManagerFactoryBean entityManagerFactoryBean ) { - } - COMMENT COMMENT COMMENT
Remove JpaBaseConfiguration configure method
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT CO...
Removed the Javadoc links to the deprecated methods
<nb> public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca } } - @ override - public void updateLocation ( LatLon location ) { - for ( WeakReference < Fragment > ref : fragList ) { - Fragment f = ref . get ( ) ; - if ( f instanceof DashFavoritesFragment && ! f . isDetached ( )...
Remove update routine to check result
<nb> public final class RingBuffer < T extends Entry > public T claimNext ( ) { long sequence = claimStrategy . getAndIncrement ( ) ; - T next = ( T ) entries [ ( int ) sequence & ringModMask ] ; - next . setSequence ( sequence , appendCallback ) ; - return next ; + T entry = ( T ) entries [ ( int ) seque...
Rename entry variable
<nb> public class StatusBarHeaderView extends RelativeLayout implements View . OnClickL ( ImageView ) findViewById ( R . id . brightness_icon ) , ( ToggleSlider ) findViewById ( R . id . brightness_slider ) ) ; loadDimens ( ) ; + updateVisibilities ( ) ; } private void loadDimens ( ) {
Set header views to an initial state
<nb> public class WebSocketUpgradeHandler implements UpgradeHandler < WebSocket > , Async if ( responseStatus . getStatusCode ( ) == NUMBER0 ) { return STATE . UPGRADE ; } else { - throw new IllegalStateException ( STRING0 ) ; + throw new IllegalStateException ( STRING1 + responseStatus . getStatusCode ( ) ) ...
on bad websocket upgrade include the bad status code in the exception
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT public class WiggleSort { <nb> public class WiggleSort { } } + public void wiggleSort1 ( int [ ] nums ) { + for ( int i = NUMBER0 ; i < nums . length ; i ++ ) { + int a = nums [ i - NUMBER0 ] ; + if ( ( i % NUMBER1 =...
add another version of wiggle sort
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CmdServlet extends BaseServlet { SINGLE SINGLE SINGLE - if ( item instanceof SwitchItem && commandName . equals ( STRING0 ) ) { + if ( (...
fix GroupItems require special treatment for TOGGLE command as well
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReaderTag implements Serializable , FilterCriteria { String endpoint , ReaderTagType tagType ) { SINGLE - SINGLE - SINGLE + SINGLE if ( TextUtils . isEmpty ( slug ) ) { ...
Set slug to title regardless of tag type
<nb> class NioDatagramPipelineSink extends AbstractChannelSink { private void close ( NioDatagramChannel channel , ChannelFuture future ) { try { channel . getDatagramChannel ( ) . socket ( ) . close ( ) ; - future . setSuccess ( ) ; if ( channel . setClosed ( ) ) { + future . setSuccess ( ) ; if ( channe...
Fixed a potential bug where close future might not be notified