diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class BindTemplate {
bind template polish
<nb> public class DependencyResolver { throw new IllegalArgumentException ( STRING0 + representative ) ; } + if ( versions . isEmpty ( ) ) { + throw new IllegalArgumentException ( STRING1 + representative ) ; + } + List < List < Artifact > > companionVersions = new ArrayList < List < Artifact > > ( vers...
Throw exception when dependency is not exist
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class LsRemoteOperationResult implements OperationResult { - private List < DatabaseRemoteFile > unknownRemoteDatabases ; + @ element ( name = STRING0 ) ...
Reverted abstraction and added XML annotation
<nb> public class SystemEnvironment implements Serializable , ConfigDirProvider { public static GoSystemProperty < Boolean > GO_API_WITH_SAFE_MODE = new GoBooleanSystemProperty ( STRING0 , true ) ; public static GoSystemProperty < Integer > MAX_PENDING_AGENTS_ALLOWED = new GoIntSystemProperty ( STRING1 , NUMBER0 ...
Adding a toggle around duplicate checking and removal of modifications
<nb> public abstract class BinaryInputFormat extends FileInputFormat { return false ; this . deserialize ( record , this . dataInputStream ) ; this . readRecords ++ ; - if ( this . readRecords >= this . blockInfo . getRecordCount ( ) ) - if ( this . dataInputStream . available ( ) != NUMBER0 ) - System . ou...
removed verbose system out print statement
<nb> public class UpdateHighlightersUtil { info . startOffset , HighlighterLayer . ADDITIONAL_SYNTAX , info . attributes , - HighlighterTargetArea . LINES_IN_RANGE ) ; + HighlighterTargetArea . EXACT_RANGE ) ; marker . setGutterIconRenderer ( info . createGutterRenderer ( ) ) ; marker . setLineSeparatorCo...
make exact range for daemon line markers
<nb> public class PipePowerWood extends Pipe implements IPowerReceptor { TileEntity tile = container . getTile ( o ) ; if ( tile instanceof TileGenericPipe ) { + if ( ( ( TileGenericPipe ) tile ) . pipe == null ) { + System . out . println ( STRING0 ) ; + continue ; SINGLE + } + PipeTransportPower pow...
Add NPE protection
<nb> public class PokeBank { COMMENT COMMENT public void addPokemon ( final Pokemon pokemon ) { - pokemon . setPgo ( instance ) ; List < Pokemon > alreadyAdded = Stream . of ( pokemons ) . filter ( new Predicate < Pokemon > ( ) { @ override public boolean test ( Pokemon testPokemon ) {
Adjusted some other functions
<nb> public class WXListComponent extends WXVContainer implements IRecyclerAdapterLis @ override public void notifyAppearStateChange ( int firstVisible , int lastVisible ) { - WXLogUtils . e ( TAG , STRING0 + firstVisible + STRING1 + lastVisible ) ; + WXLogUtils . d ( TAG , STRING0 + firstVisible + STRING1 + ...
android update WXListComponent java
<nb> final class DisplayDeviceInfo { msg . append ( STRING0 ) ; } if ( ( flags & FLAG_SUPPORTS_ROTATION ) != NUMBER0 ) { - msg . append ( STRING0 ) ; + msg . append ( STRING1 ) ; } if ( ( flags & FLAG_SUPPORTS_SECURE_VIDEO_OUTPUT ) != NUMBER0 ) { msg . append ( STRING2 ) ;
Eat copy pasta
<nb> public class OLuceneOperator extends SimpleNode implements OBinaryCompareOperato } @ override public boolean supportsBasicCalculation ( ) { - return false ; + return true ; } <nb> public class OWithinOperator extends SimpleNode implements OBinaryCompareOperato } @ override public boolean su...
Disable check on multiple LUCENE statements on the same WHERE condition
<nb> package NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; - import static NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import NAMESPACE ; public class PeakRateCounterTest ext...
remove unused imports
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CopyNativeLibraries extends AbstractBuildRule implements RuleKeyApp } ) ; for ( Path exePath : executablesBuilder . build ...
Copy the correct native libs on Windows
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class BoringLayout extends Layout implements TextUtils . EllipsizeCallback TextUtils . recycle ( temp ) ; + if ( boring && text instanceof Spanned ) { +...
Don t use BoringLayout to display text that has paragraph style markup
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { ourToolbars . add ( this ) ; myActionManager . addTimerListener ( NUMBER0 , myWeakTimerListener ) ; myActionManager . addTransparentTimerListener ( NUMBER0 , myWeakTimerListener ) ; + + SINGLE + SINGLE + updateActionsImmediately...
update action toolbar on showing to avoid situation when it s not displayed until IDE gets focued
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + public class FacetValue < K extends Comparable < K > > implements Comparable < FacetValue < K > > { String key ; <nb> public class FacetValue < K extends Comparable < K > > implements Comparable < FacetValu public int compareTo ( FacetValue < K...
Added toString method to base SearchObjects
<nb> public class MultiPartITest extends WithJetty { statusCode ( NUMBER0 ) ; } - @ test + @ test @ ignore ( STRING0 ) public void returnsErrorWhenMultipartPatchReturnsFailureStatusCode ( ) throws Exception { SINGLE final byte [ ] bytes = IOUtils . toByteArray ( getClass ( ) . getResourceAsStream ( STRI...
Ignoring flaky test
<nb> public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta class MoveToEntries extends QuickFixAction { MoveToEntries ( @ notnull InspectionToolWrapper toolWrapper ) { - super ( InspectionsBundle . message ( STRING0 ) , null , KeyStroke . getKeyStroke ( KeyEvent . VK_INSERT , NUMBER0 ...
inspection toolwindow remove ins shortcut from move to entries action
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT public abstract class SearchIndexableData { COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class SearchIndexableData { public L...
Add support for enabled state for SearchIndexableData
<nb> public class SearchGroup extends AbstractActionGroup firstMatch = false ; } - String match = sp . vim_regsub_multi ( regmatch , lnum , sub , NUMBER0 , true ) ; + String match = sp . vim_regsub_multi ( regmatch , lnum , sub , NUMBER0 , false ) ; SINGLE int line = lnum + regmatch . startpos [ NUMBER1...
Fixed backslashes in replacement text
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - - import static NAMESPACE ; - import static NAMESPACE ; - COMMENT COMMENT COMMENT
Fix imports problem from rebase conflict resolution
<nb> public abstract class PagedView extends ViewGroup implements ViewGroup . OnHierarc if ( mTouchState == TOUCH_STATE_SCROLLING ) { final int activePointerId = mActivePointerId ; final int pointerIndex = ev . findPointerIndex ( activePointerId ) ; + + if ( pointerIndex == - NUMBER0 ) return true ; + fin...
Fix possible crash in System UI
<nb> public abstract class FragmentTransaction { public abstract FragmentTransaction hide ( Fragment fragment ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix summary for FragmentTransaction show
<nb> public class ContributionListPanel extends JPanel implements Scrollable , Contrib updateColors ( ) ; SINGLE } } + SINGLE EventQueue . invokeLater ( new Runnable ( ) { public void run ( ) { scrollRectToVisible ( new Rectangle ( NUMBER0 , NUMBER0 , NUMBER1 , NUMBER1 ) ) ;
Added link as comment
<nb> COMMENT package 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 N...
Provide a default exceptionHandler in Disruptor DSL to avoid creating WorkerPools with a null exceptionHandler
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AdHocCommandHandler extends IQHandler addCommand ( new GetNumberUserSessions ( ) ) ; addCommand ( new GetListActiveUsers ( ...
Added commands for managing groups
<nb> public class CompletionPopupPanel extends ThemedPopupPanel styles_ = ConsoleResources . INSTANCE . consoleStyles ( ) ; help_ = new HelpInfoPane ( ) ; help_ . setWidth ( STRING0 ) ; + help_ . clearHelp ( false ) ; + help_ . setVisible ( false ) ; setStylePrimaryName ( styles_ . completionPopup ( ) ) ; ...
ensure help_ not visible when created
<nb> public class PopupMenu implements MenuBuilder . Callback , MenuPresenter . Callback { if ( mDragListener == null ) { mDragListener = new ForwardingListener ( mAnchor ) { @ override + protected boolean onForwardingStarted ( ) { + show ( ) ; + return true ; + } + + @ override + protected boolean ...
Fix NPE in PopupMenu getDragToOpenListener
<nb> public class StickyListHeadersListView extends FrameLayout { } } + public int getPositionForView ( View view ) { + return mList . getPositionForView ( view ) ; + } + }
Reveal getPositionForView View
<nb> import NAMESPACE ; return NUMBER0 & fullAtomInt ; } - private static String getAtomTypeString ( int type ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static String getAtomTypeString ( int type ) { return STRING0 + ( char ) ( type > > NUMBER1 ) + ( char ) ( ( ty...
Make Atom getAtomTypeString public
<nb> public class SearchManager public final static int CLICK = NUMBER0 ; public final static String CLICK_SEND_POSITION = STRING0 ; + public final static String CLICK_SEND_MAX_DISPLAY_POS + = STRING1 ; public final static String CLICK_RECEIVE_SELECTED_POS = STRING2 ; <nb> class SuggestionsAdapter ext...
Send max displayed position in search dialog click event
<nb> public class ResponseBodyPart extends HttpResponseBodyPart { @ override public ByteBuffer getBodyByteBuffer ( ) { - ChannelBuffer b = chunk != null ? chunk . getContent ( ) : response . getContent ( ) ; - return b . toByteBuffer ( ) ; + return ByteBuffer . wrap ( getBodyPartBytes ( ) ) ; } protec...
Wrap the cached bytes as toByteBuffer doesn t return the exact bytes
<nb> public class IndicesStoreTests extends AbstractNodesTests { assertThat ( server2Shard . exists ( ) , equalTo ( true ) ) ; logger . info ( STRING0 ) ; - clusterHealth = client1 . admin ( ) . cluster ( ) . health ( clusterHealthRequest ( ) . setWaitForGreenStatus ( ) ) . actionGet ( ) ; + clusterHealth = c...
Improve stability of shardsCleanup test
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unused import
<nb> public class YAMLLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSett } } - @ override - public boolean usesSharedPreview ( ) { - return false ; - } }
Make every language have its own preview page by default no need to specify useSharedPreview for each
<nb> public class Publication implements AutoCloseable } COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Publication implements AutoCloseable } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public int maxPayloadLength ( ) ...
Java Exposed max payload length from a publication
<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable { COMMENT SUICIDE , COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + STARVATION , + COMMENT COMMENT COMMENT COMMENT
Added DamageCause STARVATION
<nb> public class NetworkInstance SINGLE private ExecutorService sendExecutor ; + private NioServerSocketChannelFactory nioChannelFactory ; private ServerBootstrap serverBootstrap ; SINGLE private Iterable < MessageProcessor > processors = Listeners . newListeners ( ) ; <nb> public class NetworkInstance...
adding explicit call to free resources in channel factory
<nb> public class CompactionManager implements CompactionManagerMBean for ( SSTableReader sstable : sstableCandidates . sstables ) { - if ( ! ( new Bounds < > ( sstable . first . getToken ( ) , sstable . last . getToken ( ) ) . intersects ( Arrays . asList ( validator . desc . range ) ) ) ) + if ( new Bounds ...
Fix wrong check when validating in parallel
<nb> public class NonBlockingCoordinator extends ChannelInterceptorBase { coordMsgReceived . set ( true ) ; synchronized ( electionMutex ) { electionMutex . notifyAll ( ) ; } } - msg . timestamp = System . currentTimeMillis ( ) ; Membership merged = mergeOnArrive ( msg ) ; if ( isViewConf ( msg ) ) handleVi...
Remove unused code
<nb> public class DynamicListView extends ListView { } COMMENT + COMMENT + COMMENT + public void enableDrag ( ) { + setOnItemLongClickListener ( mOnItemLongClickListener ) ; + } + + COMMENT + COMMENT + COMMENT + public void disableDrag ( ) { + setOnItemLongClickListener ( null ) ; + } + ...
Added an option to disable drag functionality
<nb> public class Swapper < T > { this . setter = setter ; } - public < N > N swap ( T value , Callable < N > whileSwapped ) throws Exception { + public < Y extends T , N > N swap ( Y value , Callable < N > whileSwapped ) throws Exception { T orginalValue = getter . call ( ) ; setter . execute ( value ) ;...
improved generic signatures
<nb> public class DefaultGrailsControllerClass extends AbstractInjectableGrailsClass private void methodStrategy ( Map < String , FastMethod > methodNames ) { Class superClass = getClazz ( ) ; - FastClass fastClass = GrailsClassUtils . fastClass ( superClass ) ; while ( superClass != Object . class && superCl...
Don t create FastClass for java lang Object
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ ignore public class PluginManagerTest { private static PluginManager manager ;
Restoring an ignored test
<nb> public final class MediaControllerCompat { COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
add API level requirement documentation for playFromUri
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility mHardwareLayer . destroy ( ) ; mHardwareLayer = null ; } - mAttachInfo . mHandler . removeMessages ( AttachInfo . INVALIDATE_MSG , this ) ; - mAttachInfo . mHandler . removeMessages ( AttachInfo . INVALIDATE_RECT_MSG ,...
Prevent NPE when a View is detached without having been attached
<nb> public class OModifier extends SimpleNode { result = filterByCondition ( iCurrentRecord , result , ctx ) ; } else if ( arraySingleValues != null ) { result = arraySingleValues . execute ( iCurrentRecord , result , ctx ) ; - } else { - throw new UnsupportedOperationException ( STRING0 ) ; - SINGLE - }...
remove dead code
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - abstract class AbstractIterator < T > implements Iterator < T > { + public abstract class AbstractIterator < T > implements Iterator < T > { @ override public String toString ( ) {
restored public visibility
<nb> public class EqualsTesterTest extends TestCase { private static class InvalidEqualsIncompatibleClassObject { @ override public boolean equals ( Object o ) { - if ( o == null ) { - return false ; - } - return true ; + return o != null ; } @ override public int hashCode ( ) {
Simplify a boolean return
<nb> public class TestDataIntegrity extends TestCase { for ( int x = NUMBER0 ; x < threads . length ; x ++ ) { threads [ x ] . join ( ) ; } SINGLE long start = System . currentTimeMillis ( ) ; - while ( ( System . currentTimeMillis ( ) - start ) < NUMBER1 && msgCount * threadCount != listener1 . count ) Thread ...
increased tolerance on the test
<nb> package NAMESPACE ; public enum GarbageCollectorMonitoringStrategy { - ORACLE_PARALLEL_CMS ( STRING0 , STRING1 , FLOAT0 , NUMBER0 ) , - ORACLE_6_CMS ( STRING2 , STRING3 , FLOAT0 , NUMBER0 ) , - ORACLE_SERIAL ( STRING4 , STRING5 , FLOAT0 , NUMBER0 ) , + ORACLE_PARALLEL_CMS ( STRING0 , STRING1 , FLOAT1...
Tweaking GC rate threshold
<nb> public class BikeRentalStationService { } public void addStation ( BikeRentalStation station ) { + stations . remove ( station ) ; stations . add ( station ) ; }
really refresh bikeshare stations in service
<nb> public class Starter { boolean clustered = args . map . get ( STRING0 ) != null || ha ; Vertx vertx = startVertx ( clustered , ha , args ) ; + if ( vertx == null ) { + SINGLE + return ; + } String sinstances = args . map . get ( STRING1 ) ; int instances ;
Avoid NPE when vertx could not be started
<nb> public class RendererRegistry { internalRenderers . put ( STRING0 , STRING0 + STRING1 ) ; internalRenderers . put ( STRING2 , STRING2 + STRING1 ) ; internalRenderers . put ( STRING3 , STRING3 + STRING1 ) ; - internalRenderers . put ( STRING4 , STRING4 + STRING1 ) ; internalRenderers . put ( STRING5 , STR...
Remove topo map assimilation from renderers list
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class ReaderTest { COMMENT COMMENT COMMENT + @ ignore SINGLE @ test public void testRead ( ) throws Exception { <nb> import NAMESPACE ; import NAMESPACE ; import ...
Ignore rest of ReaderWriterLock tests with intermittent failures
<nb> public class ProposeCallback extends AbstractPaxosCallback < Boolean > public void response ( MessageIn < Boolean > msg ) { - logger . debug ( STRING0 , msg . payload , msg . from ) ; + logger . trace ( STRING0 , msg . payload , msg . from ) ; if ( msg . payload ) accepts . incrementAndGet ( ) ;
Fix spammy logging in paxos
<nb> public class AsyncHttpClientConfigBean extends AsyncHttpClientConfig { maxDefaultRedirects = Integer . getInteger ( ASYNC_CLIENT + STRING0 , NUMBER0 ) ; compressionEnabled = Boolean . getBoolean ( ASYNC_CLIENT + STRING1 ) ; userAgent = System . getProperty ( ASYNC_CLIENT + STRING2 , STRING3 + AHC_VERSION ) ;...
Properly initialize AsyncHttpClientConfigBean ioThreadMultiplier
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AbstractArchiver implements CompressedReadableResource { return resource . getBaseName ( ) ; } - @ override - public ReadableResource getCompressedResource ( ) { - retur...
Removed unused method
<nb> import NAMESPACE ; import NAMESPACE ; public class FieldCriteria extends AbstractCriteria implements Criteria { - private static final Logr log = MorphiaLoggerFactory . get ( Mapper . class ) ; + private static final Logr log = MorphiaLoggerFactory . get ( FieldCriteria . class ) ; private String fie...
Fixed logging typo
<nb> package NAMESPACE ; COMMENT COMMENT public interface StatFilterMBean { - + boolean isMergeSql ( ) ; + + void setMergeSql ( boolean mergeSql ) ; + + boolean isLogSlowSql ( ) ; + + void setLogSlowSql ( boolean logSlowSql ) ; + + String mergeSql ( String sql , String dbType ) ; + + long ...
improve StatFilter JMX support
<nb> public class JsonHelper public static Object readJson ( String json ) throws JsonParseException { - ObjectMapper mapper = new ObjectMapper ( ) ; try { - return mapper . readValue ( json , Object . class ) ; + return OBJECT_MAPPER . readValue ( json , Object . class ) ; } catch ( IOException e )...
Don t create a new JSON mapper each time a new json string is parsed
<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM : _parms . _learn_rate * m1class * gp . _rss [ k ] [ i ] / gp . _gss [ k ] [ i ] ; assert ! Double . isNaN ( g ) ; assert ! Double . isInfinite ( g ) ; + assert ! Float . isNaN ( ( float ) g ) ; + assert ! Float . ...
Add assertions for Inf Nan for float double in GBM prediction
<nb> public class ProfileMailsFragment extends BaseMailsFragment < ProfileMailsView , Pr . mailAppComponent ( MailApplication . getMailComponents ( ) ) . navigationModule ( new NavigationModule ( ) ) . build ( ) ; + + profileMailsComponent . inject ( this ) ; } }
Added missing inject call
<nb> public class K9 extends Application { int cachedVersion = sDatabaseVersionCache . getInt ( KEY_LAST_ACCOUNT_DATABASE_VERSION , NUMBER0 ) ; - if ( cachedVersion > NUMBER0 && cachedVersion <= LocalStore . DB_VERSION ) { + if ( cachedVersion >= LocalStore . DB_VERSION ) { K9 . setDatabasesUpToDate ( false...
Fix condition to check whether or not the database needs upgrading
<nb> public class SignCode extends Task { private static String getApplicationString ( List < String > fileNames , List < File > files ) throws IOException { SINGLE + SINGLE + SINGLE + SINGLE ByteArrayOutputStream baos = new ByteArrayOutputStream ( NUMBER0 * NUMBER1 * NUMBER1 ) ; try ( ZipOutputStream z...
Add a TODO
<nb> class SearchEverywherePsiRenderer extends PsiElementListCellRenderer < PsiElement > @ override public String getElementText ( PsiElement element ) { - return element instanceof PsiNamedElement ? ( ( PsiNamedElement ) element ) . getName ( ) : STRING0 ; + final String name = element instanceof PsiNamedEle...
Fix assertion when psi elements return null from getName
<nb> public class TimeSurface { public SparseMatrixZSampleGrid < WTWD > sampleGrid ; SINGLE public TimeSurface ( ShortestPathTree spt ) { - - routerId = spt . getOptions ( ) . routerId ; + + String routerId = spt . getOptions ( ) . routerId ; + if ( routerId == null || routerId . isEmpty ( ) || routerId...
make web analyst demo work with default router ID
<nb> package NAMESPACE ; public class App { public static void main ( String [ ] args ) { - GnomeEngineeringManager manager = new GnomeEngineeringManager ( ) ; + Engineer manager = new GnomeEngineeringManager ( ) ; manager . operateDevice ( ) ; } }
change the adapter pattern manager class type to Interface
<nb> public class ExtraPropertiesDynamicObjectAdapter extends BeanDynamicObject { DeprecationLogger . nagUserWith ( String . format ( - STRING0 - + STRING1 - + STRING2 - + STRING3 , - name , delegate , delegate . getClass ( ) . getSimpleName ( ) , value , ExtraPropertiesExtension . class . getSimpleName...
Improved dynamic properties deprecation message
<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl @ override public void onBindViewHolder ( final RecyclerView . ViewHolder holder , int position ) { if ( mLegacyBindViewMode ) { - onBindViewHolder ( holder , position , Collections . EMPTY_LIST ) ; + mOnBindViewHolde...
fix endless loop in legacy mode
<nb> public class DeepLearning extends Job . ValidatedJob { COMMENT COMMENT @ api ( help = STRING0 , filter = Default . class , json = true , importance = ParamImportance . CRITICAL ) - public Activation activation = Activation . Tanh ; + public Activation activation = Activation . Rectifier ; COMMENT C...
Change default activation function to Rectifier
<nb> public class ServletHttpHandlerAdapter extends HttpServlet { private static Log logger = LogFactory . getLog ( ServletHttpHandlerAdapter . class ) ; - private HttpHandler handler ; + private final HttpHandler handler ; SINGLE SINGLE <nb> public class ServletHttpHandlerAdapter extends HttpServlet ...
Added HttpHandler contructor argument
<nb> public class ExecuteShellCommandChange extends AbstractChange { try { executeCommand ( database ) ; } catch ( Exception e ) { - throw new UnexpectedLiquibaseException ( STRING0 + e ) ; + throw new UnexpectedLiquibaseException ( STRING0 + e . getLocalizedMessage ( ) , e ) ; } return null ;
Improve Exception handling
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractResourceAdapterDeploymentService { . addDependency ( connectionFactoryServiceName , Object . class , referen...
Fix resource adaptor JNDI service names
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface IndexAwarePredicate < K , V > extends Predicate < K , V > {
Fixed CheckStyle error in IndexAwarePredicate
<nb> public class MetaClassHelper { else if ( classToTransformTo == Integer . class ) { if ( classToTransformFrom == Integer . class || classToTransformFrom == Short . class - || classToTransformFrom == Byte . class ) + || classToTransformFrom == Byte . class + || classToTransformFrom == BigInteger . class ...
include BigInteger as compatible class to Integer
<nb> public class VFSDirContext extends BaseDirContext { attrs . setName ( entry . getName ( ) ) ; if ( entry . isFile ( ) ) attrs . setResourceType ( STRING0 ) ; + else + attrs . setCollection ( true ) ; attrs . setContentLength ( entry . getSize ( ) ) ; attrs . setLastModified ( entry . getLastModified ...
Set the collection if the resource is a folder
<nb> public final class Tags { final int len = metric . length ( ) ; if ( metric . charAt ( len - NUMBER0 ) != STRING0 ) { SINGLE throw new IllegalArgumentException ( STRING1 + metric ) ; - } else if ( curly == len - NUMBER0 ) { SINGLE + } else if ( curly == len - NUMBER1 ) { SINGLE return metric . substrin...
properly parse the syntax metric empty tags
<nb> public abstract class AbstractMemoryHttpData extends AbstractHttpData { if ( sizeLeft < length ) { sliceLength = sizeLeft ; } - ByteBuf chunk = byteBuf . slice ( chunkPosition , sliceLength ) ; + ByteBuf chunk = byteBuf . slice ( chunkPosition , sliceLength ) . retain ( ) ; chunkPosition += sliceLength...
Fix IllegalReferenceCountException which occurs when multipart data is stored in memory
<nb> final class ImmutableRangeSet < C extends Comparable > extends AbstractRangeSet < C > COMMENT COMMENT @ suppresswarnings ( STRING0 ) - public static < C extends Comparable > ImmutableRangeSet < C > all ( ) { + static < C extends Comparable > ImmutableRangeSet < C > all ( ) { return ALL ; }
Remove ImmutableRangeSet all
<nb> public class JmsPollingConsumer extends PollingConsumerSupport { } public Exchange receiveNoWait ( ) { - return receive ( NUMBER0 ) ; + return receive ( JmsTemplate . RECEIVE_TIMEOUT_NO_WAIT ) ; } public Exchange receive ( ) { - return receive ( NUMBER1 L ) ; + return receive ( JmsTemplate . RE...
Fixed jms polling consumer to use correct timeout values for receive and receive no wait
<nb> public class XContentProvider extends XHook { else if ( uri . startsWith ( STRING0 ) ) return STRING1 ; else if ( uri . startsWith ( STRING2 ) ) - return STRING3 ; + return null ; else if ( uri . startsWith ( STRING4 ) ) return STRING3 ; else <nb> public class XContentProvider extends XHook { r...
contacts profile has no usable ID
<nb> public class ODocument extends ORecordSchemaAwareAbstract < Object > implements Ite COMMENT COMMENT public int fields ( ) { + checkForLoading ( ) ; + checkForFields ( ) ; return _fieldValues == null ? NUMBER0 : _fieldValues . size ( ) ; } public boolean isEmpty ( ) { + checkForLoading ( ) ; +...
add document lazy load on method fields and isEmpty
<nb> public class CRFLogConditionalObjectiveFunction extends AbstractStochasticCachin docLabels = newDocLabels ; } + double startPosLogProb = cliqueTree . logProbStartPos ( ) ; + if ( VERBOSE ) + System . err . printf ( STRING0 , startPosLogProb ) ; + prob += startPosLogProb ; + SINGLE for ( int i =...
fixed a bug in non multithreaded CRF training
<nb> public class ChoiceProcessor extends ServiceSupport implements AsyncProcessor , N public ChoiceProcessor ( List < FilterProcessor > filters , Processor otherwise ) { this . filters = filters ; - this . otherwise = AsyncProcessorConverterHelper . convert ( otherwise ) ; + this . otherwise = otherwise != n...
Content based router Only set otherwise processor if given
<nb> public interface Script { ResourceHandler getResources ( ) ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ incubating - PluginHandler getPlugins ( ) ; - - COMMENT COMMENT COMMENT COMMENT <nb> public abstract class DefaultScript extends BasicScript { new ClosureBackedAction < P...
Remove unnecessary getPlugins from Script
<nb> public enum DataFormat { COMMENT + COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT RAW ,
Polished the javadoc of camel cxf DataFormat
<nb> public abstract class PanelView extends FrameLayout { protected int mTouchSlop ; protected boolean mHintAnimationRunning ; private boolean mOverExpandedBeforeFling ; - private float mOriginalIndicationY ; private boolean mTouchAboveFalsingThreshold ; private int mUnlockFalsingThreshold ; <nb> publi...
Fixed a bug where the indication text could get too high
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class WebComponentDescription extends AbstractComponentDescription protected AbstractComponentConfiguration constructComponentConfiguration ( ) { return new WebComponentCo...
Web component should have USE_MODULE ComponentNamingMode
<nb> public class CompletionData { return substr . substring ( i ) . trim ( ) ; } - public static LookupElement objectToLookupItem ( Object object ) { + public static LookupElement objectToLookupItem ( @ notnull Object object ) { if ( object instanceof LookupElement ) return ( LookupElement ) object ; S...
add NotNull to CompletionData objectToLookupItem
<nb> public class BackendCompilerWrapper { if ( testsOutputDir == null ) { LOG . error ( STRING0 + module . getName ( ) + STRING1 ) ; } - pairs . add ( new OutputDir ( testsOutputDir , ModuleChunk . TEST_SOURCES ) ) ; + else { + pairs . add ( new OutputDir ( testsOutputDir , ModuleChunk . TEST_SOURCES ) ) ;...
avoid induced NPE
<nb> public class RoutingService extends AbstractLifecycleComponent < RoutingService > i if ( nextDelaySetting > NUMBER0 && nextDelaySetting < registeredNextDelaySetting ) { FutureUtils . cancel ( registeredNextDelayFuture ) ; registeredNextDelaySetting = nextDelaySetting ; - SINGLE - SINGLE - SINGLE - SI...
Fix calculation of next delay for delayed shard allocation
<nb> public class PluginManagerIT extends ESIntegTestCase { } @ test - @ awaitsfix ( bugUrl = STRING0 ) public void testThatBasicAuthIsSupportedWithHttps ( ) throws Exception { assumeTrue ( STRING1 , System . getSecurityManager ( ) == null ) ;
Removing AwaitsFix in PluginMangerIT after merging in fix from master
<nb> public class SecurityInterceptor implements MethodInterceptor , InitializingBean COMMENT COMMENT public Object invoke ( MethodInvocation mi ) throws Throwable { + if ( logger . isDebugEnabled ( ) ) { + logger . debug ( STRING0 + mi . getMethod ( ) ) ; + } + ConfigAttributeDefinition attr = this . m...
Added debug statement at commencement of interception and additional comment re ContextHolder
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove self closing tags
<nb> public abstract class ForwardingEjbClientConfiguration implements EJBClientConfi @ override public long getInvocationTimeout ( ) { - return NUMBER0 ; + return delegate . getInvocationTimeout ( ) ; } }
Fix issue with ForwardingEjbClientConfiguration
<nb> public class DataInfo extends Keyed < DataInfo > { return this . rid + Arrays . toString ( Arrays . copyOf ( binIds , nBins ) ) + STRING0 + Arrays . toString ( numVals ) ; } public void setResponse ( int i , double z ) { response [ i ] = z ; } - - private void resetDense ( ) { Arrays . fill ( numVals , N...
remove experimental reset call
<nb> public class ApplicationInfoEx implements Comparable < ApplicationInfoEx > { for ( String version : this . getPackageVersion ( context ) ) if ( ! listVersion . contains ( version ) ) listVersion . add ( version ) ; - Collections . sort ( listVersion ) ; return TextUtils . join ( STRING0 , listVersion ) ;...
Removed sorting of the package versions list
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT COMMENT public interface DaemonCommandExecuter {
removed outdated javadoc
<nb> import NAMESPACE ; COMMENT public class VcsLogDataKeys { - public static DataKey < VcsLog > VSC_LOG = DataKey . create ( STRING0 ) ; - public static DataKey < VcsLogUi > VCS_LOG_UI = DataKey . create ( STRING1 ) ; - public static DataKey < VcsLogDataProvider > VCS_LOG_DATA_PROVIDER = DataKey . create (...
log make constants final