diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; COMMENT public class Geometry extends Spatial { + SINGLE + SINGLE + public static final int SAVABLE_VERSION = NUMBER0 ; + private static final Logger logger = Logger . getLogger ( Geometry . class . getName ( ) ) ; protected Mesh mesh ; protected transient int lodLevel = NUMB...
Geometry will now automatically de share VertexBuffers if it detects it
<nb> public class EBeanUsingService { myService . updateEvent ( event , id ) ; } + @ restservice + void methodInjectedRestService ( MyService myService ) { + } + + void multiInjectedRestService ( @ restservice MyService myService , @ restservice MyService myService2 ) { + } }
add test for method injected rest services
<nb> public class JettyRun extends AbstractJettyRunTask { COMMENT COMMENT COMMENT - SINGLE - SINGLE - @ internal + @ optional @ inputfile public File getWebXml ( ) { return webXml ; }
Fix annotations for JettyRun webXml
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CassandraServer implements Cassandra . Iface decompressor . end ( ) ; queryString = new String ( byteArray . toByteArray ...
handle Compression NONE in CassandraServer
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
removed unused import
<nb> public class IdTableBuilding { } private int convertToMask ( final WordOccurrence . Kind kind ) { - if ( kind == null ) return UsageSearchContext . IN_PLAIN_TEXT ; + if ( kind == null ) { + return UsageSearchContext . ANY ; + } if ( kind == WordOccurrence . Kind . CODE ) return UsageSearchContext ....
restore ANY mask for occurrences with null kind need to fix clients first
<nb> public class AudioConferenceCallPanel scrollPane = new JScrollPane ( ) ; scrollPane . setHorizontalScrollBarPolicy ( JScrollPane . HORIZONTAL_SCROLLBAR_NEVER ) ; - scrollPane . setViewport ( new MyViewport ( ) ) ; + SINGLE + SINGLE + SINGLE scrollPane . setViewportView ( mainPanel ) ; scrollPan...
Temporarily disables the custom viewport in audio conferences as we
<nb> public class QueryResult implements DataSerializable { public void writeData ( ObjectDataOutput out ) throws IOException { int psize = ( partitionIds == null ) ? NUMBER0 : partitionIds . size ( ) ; out . writeInt ( psize ) ; - for ( Integer partitionId : partitionIds ) { - out . writeInt ( partitionId ) ...
writeData should check partition collection size
<nb> public class NetworkConfigurationWatcher { try { - SINGLE - SINGLE + SINGLE + SINGLE SINGLE - if ( activeInterfaces . size ( ) == NUMBER0 ) + synchronized ( this ) { - synchronized ( this ) - { - try { - wait ( NUMBER1 ) ; - } catch ( InterruptedException ex ) { } - } + try { ...
Fixes some problem with reconnecting and detecting interfaces
<nb> public class ReaderActivityLauncher { } public static void showReaderBlogDetail ( Context context , long blogId , String blogUrl ) { - if ( blogId == NUMBER0 ) { - return ; - } Intent intent = new Intent ( context , ReaderActivity . class ) ; intent . putExtra ( ReaderActivity . ARG_BLOG_ID , blogI...
Blog detail no longer requires a blogId
<nb> public class ShiftReduceParser extends ParserGrammar implements Serializable { for ( int i = NUMBER0 ; i <= models . size ( ) ; ++ i ) { System . err . println ( STRING0 + i + STRING1 ) ; ShiftReduceParser parser = averageScoredModels ( models . subList ( NUMBER1 , i ) ) ; - EvaluateTreebank evaluator = ne...
Save a few unnecessary tagger loadings
<nb> public class TaskStack { ( mDisplayContent . mDeferredActions & DisplayContent . DEFER_DETACH ) != NUMBER0 && ! isAnimating ( ) ) { mDisplayContent . mDeferredActions &= ~ DisplayContent . DEFER_DETACH ; - mService . detachStack ( mStackId ) ; if ( ( mDisplayContent . mDeferredActions & DisplayContent . ...
Don t null class member before using it
<nb> public class CorsConfiguration { } COMMENT - COMMENT + COMMENT COMMENT public Long getMaxAge ( ) { return maxAge ; } - COMMENT COMMENT COMMENT
Fix typo in Javadoc
<nb> class MeasuredText { } private static final Object [ ] sLock = new Object [ NUMBER0 ] ; - private static MeasuredText [ ] sCached = new MeasuredText [ NUMBER1 ] ; + private static final MeasuredText [ ] sCached = new MeasuredText [ NUMBER1 ] ; static MeasuredText obtain ( ) { MeasuredText mt ;
Make MeasuredText sCached field final
<nb> public class TestEventLogger extends AbstractTestLogger implements TestOutputLis public void onOutput ( TestDescriptor descriptor , TestOutputEvent outputEvent ) { if ( outputEvent . getDestination ( ) == TestOutputEvent . Destination . StdOut && shouldLogStandardStreamEvent ( TestLogEvent . STANDARD_OUT ) )...
fixed newline in logging of test output events
<nb> public class PyExtractMethodUtil { scope . add ( owner ) ; final PyClass containingClass = ( ( PyFunction ) owner ) . getContainingClass ( ) ; if ( containingClass != null ) { - Collections . addAll ( scope , containingClass . getMethods ( ) ) ; + for ( PyFunction function : containingClass . getMethods ...
improved search for duplicates in class
<nb> public class SettingsNavigationActivity extends SettingsBaseActivity { } else if ( preference == speakAlarms ) { showBooleanSettings ( new String [ ] { getString ( R . string . speak_street_names ) , getString ( R . string . speak_traffic_warnings ) , getString ( R . string . speak_speed_limit ) , getString ...
move less used settings to bottom
<nb> public class MustacheBuilder implements MustacheJava { } final String command = sb . toString ( ) . trim ( ) ; final char ch = command . charAt ( NUMBER0 ) ; - final String variable = command . substring ( NUMBER1 ) ; + final String variable = command . substring ( NUMBER1 ) . trim ( ) ; switch ( ch ) ...
preserve backwards compatibility where developers have used extra whitespace
<nb> public class JettyModule implements Module { public void initialize ( Container container ) { try { SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE + System . setProperty ( STRING0 , STRING1 ) ; + File logDir = new File ( JiveGlobals . ...
Fixed Jetty logging
<nb> public class GoTestRunningState extends GoRunningState { } String pattern = myConfiguration . getPattern ( ) ; if ( StringUtil . isNotEmpty ( pattern ) ) { - commandLine . addParameter ( STRING0 ) ; - commandLine . addParameter ( pattern ) ; + commandLine . addParameters ( STRING0 , pattern ) ; } }...
Fix single test running
<nb> public class SIPCommStatusMenuUI GuiActivator . getResources ( ) . getColor ( STRING0 ) ) ; + g . setColor ( newBgColor ) ; + g . fillRect ( NUMBER0 , NUMBER0 , menuWidth , menuHeight ) ; + if ( menuItem . isSelected ( ) ) { g . setColor ( Color . LIGHT_GRAY ) ; g . fillRoundRect ( NUMBER0 , NU...
Fix white corners of presence status selector box on Windows and Linux
<nb> public class BlazeJavacLog extends Log { COMMENT COMMENT COMMENT - COMMENT COMMENT public static void preRegister ( final Context context ) { context . put ( logKey , new Context . Factory < Log > ( ) { <nb> public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin { if ( tree . sym...
Removed a couple of warnings in JavaBuilder
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap if ( parentFile == null ) { throw new FileNotFoundException ( rootPath ) ...
Create missing watch roots inside system directory to avoid receiving endless logging notifications
<nb> public class Measurement if ( ! hopper . load ( graphLocation ) ) throw new IllegalStateException ( STRING0 + graphLocation ) ; - GraphStorage g = ( GraphStorage ) hopper . getGraph ( ) ; + GraphStorage g = hopper . getGraph ( ) ; if ( STRING1 . equals ( g . getProperties ( ) . get ( STRING2 ) ) ) th...
found minor bug in measurement
<nb> public class WifiNative { break ; } + SINGLE + SINGLE COMMENT - if ( config . persist != WifiP2pConfig . Persist . NO ) args . add ( STRING0 ) ; + SINGLE + if ( joinExistingGroup ) args . add ( STRING1 ) ; int groupOwnerIntent = config . groupOwnerIntent ;
Remove persistent behavior
<nb> public class FlexibleAggregationStrategiesTest extends ContextTestSupport { template . sendBody ( STRING0 , STRING1 ) ; - assertTrue ( timeoutLatch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ) ; + assertTrue ( timeoutLatch . await ( NUMBER1 , TimeUnit . MILLISECONDS ) ) ; template . sendBody ( STR...
Fixed test on slower CI boxes
<nb> public class CassandraSplitManager SINGLE TupleDomain < ConnectorColumnHandle > remainingTupleDomain = TupleDomain . none ( ) ; if ( ! tupleDomain . isNone ( ) ) { - @ suppresswarnings ( { STRING0 , STRING1 } ) - List < ConnectorColumnHandle > partitionColumns = ( List ) partitionKeys ; - remainingTupl...
Keep original domains as remaining if using token range query
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class StubStrategy...
Add a privileged action for JacORB StubStrategy initializer
<nb> public class NeuralNetViz extends NeuralNetMnist { } protected void startTraining ( Layer [ ] ls ) { - _trainer = new Trainer . MapReduce ( ls , NUMBER0 , self ( ) ) ; - SINGLE + SINGLE + _trainer = new Trainer . Threaded ( ls , NUMBER0 , self ( ) ) ; SINGLE JFrame frame = new JFrame ( STRING0 ...
Use the threaded version for NN visualization
<nb> public class TileTest extends GdxTest { public void create ( ) { cam = new OrthographicCamera ( ) ; cam . setViewport ( NUMBER0 , NUMBER1 ) ; - cam . getPosition ( ) . set ( WIDTH * NUMBER2 / NUMBER3 , HEIGHT / NUMBER3 , NUMBER4 ) ; + cam . getPosition ( ) . set ( WIDTH * NUMBER2 / NUMBER3 , HEIGHT * NUM...
fixed borked stuff in TileTest
<nb> public final class HdmiCecMessageValidator { SINGLE SINGLE addValidationInfo ( Constants . MESSAGE_VENDOR_COMMAND , - maxLengthValidator , DEST_DIRECT | SRC_UNREGISTERED ) ; + new VariableLengthValidator ( NUMBER0 , NUMBER1 ) , DEST_DIRECT | SRC_UNREGISTERED ) ; addValidationInfo ( Constants . MESSAGE_...
Validate Vendor Command correctly
<nb> public class TagPluginManager { if ( Constants . IS_SECURITY_ENABLED ) { PrivilegedGetTccl pa = new PrivilegedGetTccl ( ) ; original = AccessController . doPrivileged ( pa ) ; - } else { - original = Thread . currentThread ( ) . getContextClassLoader ( ) ; - } + } else { + original = Thread . curre...
Fix indents and copy paste errors
<nb> package NAMESPACE ; public class LatLon extends QueryParameter { - + public double lat ; public double lon ; <nb> public class LatLon extends QueryParameter { @ override protected void parse ( String value ) throws Throwable { - if ( value == null || value . isEmpty ( ) ) - return ; -...
don t fail silently on null empty latlons
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class IdeaModifiableModelsProvider implements ModifiableModelsProvider { @ nullable private static StructureConfigurableContext getProjectStructu...
don t create UI in headless environment
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Sputnik ...
moved Sputnik to org spockframework runtime because it s no longer part of the public API
<nb> import NAMESPACE ; COMMENT COMMENT public class DragListener extends InputListener { - private float tapSquareSize = NUMBER0 , touchDownX = - NUMBER1 , touchDownY = - NUMBER1 ; + private float tapSquareSize = NUMBER0 , touchDownX = - NUMBER1 , touchDownY = - NUMBER1 , stageTouchDownX = - NUMBER1 , stageT...
Added stageTouchDownX Y
<nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider { String charset = request . getBodyEncoding ( ) ; if ( charset == null ) { - charset = Charsets . DEFAULT_CHARACTER_ENCODING ; + charset = Charsets . ASCII_CHARSET . name ( ) ; } final byte [ ] data = request . getStringData ( ) . ge...
Fix test failure
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - @ test ( groups = STRING0 , enabled = false ) public class TestChargeback extends TestJaxrsBase { private final String accountId = UUID . randomUUID ( ) . toString ( ) ; private InvoicePayment invoicePayment ;
enable most tests in TestChargeback
<nb> import NAMESPACE ; abstract class AbstractTransactSQLDialect extends Dialect { public AbstractTransactSQLDialect ( ) { super ( ) ; + registerColumnType ( Types . BINARY , STRING0 ) ; registerColumnType ( Types . BIT , STRING1 ) ; SINGLE registerColumnType ( Types . BIGINT , STRING2 ) ; registerColumn...
Added BINARY datatype mapping to AbstractTransactSQLDialect the base class for Sybase and SQL Server dialects
<nb> public class DefaultBlurController implements BlurController { COMMENT COMMENT public DefaultBlurController ( @ nonnull View blurView , @ nonnull View rootView , float scaleFactor ) { + throwIfInvalidScaleFactor ( scaleFactor ) ; + blurredBitmapPaint = new Paint ( ) ; blurredBitmapPaint . setFlags ( ...
Throwing exception in case of invalid scale factor
<nb> public class LineChart extends View { private int mSelectedSeriesIndex = Integer . MIN_VALUE ; private int mSelectedValueIndex = Integer . MIN_VALUE ; private OnPointClickListener mOnPointClickListener = new DummyOnPointListener ( ) ; - public float mZoomLevel = FLOAT0 ; private ScaleGestureDetector mS...
Fixed zoom scale for vertical values
<nb> public class DialogBuilder implements Disposable { return myActions ; } - public void setActionDescriptors ( ActionDescriptor [ ] descriptors ) { + public void setActionDescriptors ( ActionDescriptor . . . descriptors ) { removeAllActions ( ) ; ContainerUtil . addAll ( myActions , descriptors ) ; }
make DialogBuilder setActionDescriptors vararg
<nb> public class JSONPath implements JSONAware { while ( ! isEOF ( ) ) { skipWhitespace ( ) ; - if ( ch == STRING0 ) { - next ( ) ; - return SelfSegement . instance ; - } - if ( ch == STRING1 ) { next ( ) ; continue ; <nb> public class JSONPath implements JSONAware { Object eval ( JSONPath pa...
removed SelfSegment support
<nb> public class NioServerSocketChannel extends AbstractServerChannel private final ServerSocketChannel socket ; private final ServerSocketChannelConfig config ; - private volatile InetSocketAddress localAddress ; private volatile SelectionKey selectionKey ; public NioServerSocketChannel ( ) { <nb> pub...
Remove unnecessary field
<nb> public final class ActivityThread { } public void handleInstallProvider ( ProviderInfo info ) { - installContentProviders ( mInitialApplication , Lists . newArrayList ( info ) ) ; + final StrictMode . ThreadPolicy oldPolicy = StrictMode . allowThreadDiskWrites ( ) ; + try { + installContentProviders ...
Allow I O when installing providers
<nb> public class SimpleType extends SingleSignatureClosureHint { public ClassNode [ ] getParameterTypes ( final MethodNode node , final String [ ] options , final SourceUnit sourceUnit , final CompilationUnit unit , final ASTNode usage ) { ClassNode [ ] result = new ClassNode [ options . length ] ; for ( int i =...
Make it possible to use SimpleType for arrays
<nb> public class SimpleConsumerWrapper implements Closeable { case UNKNOWN : case OFFSET_OUT_OF_RANGE : case CORRUPT_MESSAGE : - case UNKNOWN_TOPIC_OR_PARTITION : case MESSAGE_TOO_LARGE : case OFFSET_METADATA_TOO_LARGE : case INVALID_TOPIC_EXCEPTION : <nb> public class SimpleConsumerWrapper implements ...
Handle UNKNOWN_TOPIC_OR_PARTITION as a temporary exception instead of permanent
<nb> public class HttpRequest { COMMENT COMMENT COMMENT - public boolean noContent ( ) { + public boolean noContent ( ) throws HttpRequestException { return HTTP_NO_CONTENT == code ( ) ; }
Add throws HttpRequestException
<nb> public class ChaosMonkeyResource { for ( Event evt : evts ) { gen . writeStartObject ( ) ; gen . writeStringField ( STRING0 , evt . monkeyType ( ) . name ( ) ) ; + gen . writeStringField ( STRING1 , evt . id ( ) ) ; gen . writeStringField ( STRING2 , evt . eventType ( ) . name ( ) ) ; gen . writeNumber...
Add event ID to list of chaos events
<nb> public class JavaTypedHandler extends TypedHandlerDelegate { autoPopupMemberLookup ( project , editor ) ; } - - final FileType originalFileType = getOriginalFileType ( file ) ; - int offsetBefore = editor . getCaretModel ( ) . getOffset ( ) ; SINGLE <nb> public class JavaTypedHandler extends Ty...
make JavaTypeHandler work equally in Java scratch files
<nb> public class JarBuilder implements Closeable { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
In jar tool use apache commons FileUtils moveFile to use copy when target of jar write is across filesystem boundary
<nb> public class GroovyFilter extends StructuredSyntaxDocumentFilter { STRING0 , STRING1 , STRING2 , - STRING3 } ; + STRING3 , + STRING4 + } ; COMMENT COMMENT
Let Groovy Console syntax highlight the trait keyword
<nb> public class JavaValue extends XNamedValue implements NodeDescriptorProvider { @ override public void computePresentation ( @ notnull XValueNode node , @ notnull XValuePlace place ) { Type type = myValueDescriptor . getType ( ) ; - String typeName = type != null ? type . name ( ) : STRING0 ; + String typ...
do not show empty type
<nb> public class FolderMapperTest { COMMENT COMMENT - String resource = STRING0 ; InputStream inputStream = Resources . getResourceAsStream ( resource ) ; SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder ( ) . build ( inputStream ) ; <nb> public class FolderMapperTest { List < Fol...
Removed writes to console ci skip
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT @ retention ( RetentionPolicy . SOURCE ) @ target ( { ElementType . TYPE } ) <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT @ retention ( RetentionPolicy . SOURCE ) @ target ( { ElementType . TYPE } ) <n...
added since javadoc tags to logging files
<nb> public final class Presence extends Packet { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT public Mode getMode ( ) { + if ( mode == null ) { + return Mode . available ; + } return mode ; }
Make Presence getMode return available if null
<nb> public class ZWaveAssociationCommandClass extends ZWaveCommandClass COMMENT public List < Integer > getGroupMembers ( int group ) { if ( configAssociations . get ( group ) == null ) { - return null ; + return new ArrayList < Integer > ( ) ; } return configAssociations . get ( group ) . getNodes ( ) ;...
Fix error when association group has no members
<nb> public class OptaPlannerComponentConfigurationAndDocumentationTest extends Camel @ test public void testComponentConfiguration ( ) throws Exception { OptaPlannerComponent component = context . getComponent ( STRING0 , OptaPlannerComponent . class ) ; - EndpointConfiguration configuration = component . crea...
Minor Fix CS errors in camel optaplanner
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Removed unwanted imports
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove an unneeded and improper import
<nb> class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku synchronized ( mLock ) { ensureGroupStateLoadedLocked ( userId ) ; - ArrayList < AppWidgetProviderInfo > result = null ; + ArrayList < AppWidgetProviderInfo > result = new ArrayList < AppWidgetProviderInfo > ( ) ; fina...
GetInstalledProvidersForProfiles should never return null object
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ deprecated public class FilePathImpl implements FilePath { <nb> public class FilePathImpl implements FilePath { myPath = FileUtil . toCanonicalPath ( path ) ; myIsDirectory = isDirectory ; } + + COMMENT + COMMENT...
explicitly deprecate an unused method with external usages
<nb> final class FastBlurHelper { COMMENT COMMENT COMMENT + public static Bitmap doBlur ( Bitmap sentBitmap , int radius , boolean canReuseInBitmap ) { + return doBlur ( sentBitmap , radius , canReuseInBitmap , false , null ) ; + } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add method to keep API consistent
<nb> public final class PlanUtils { STRING0 , e ) ; storageHandler . configureTableJobProperties ( tableDesc , jobProperties ) ; } + if ( tableDesc . getOutputFileFormatClass ( ) . getName ( ) + == HivePassThroughOutputFormat . HIVE_PASSTHROUGH_OF_CLASSNAME ) { + SINGLE + jobProperties . put ( + HivePas...
PassthroughOutputFormat SH changes causes IllegalArgumentException Sushanth Sowmyan via Ashutosh Chauhan
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class IcedHashMapGeneric < K , V > extends Iced implements Map < K , V > , Cloneable , Serializable {
Fixed comment on IcedHashMapGeneric
<nb> public final class TestErrorReporter extends Assert implements ErrorReporter { if ( errors != null && errorsIndex < errors . length ) { assertEquals ( errors [ errorsIndex ++ ] , message ) ; } else { - fail ( STRING0 + message ) ; + fail ( STRING0 + message + STRING1 + line + STRING2 + lineOffset ) ; }...
When the TestErrorReporter finds an extra error include the location info
<nb> public class PathParser { SINGLE SINGLE - int numSegments = Math . abs ( ( int ) Math . ceil ( sweep * NUMBER0 / Math . PI ) ) ; + int numSegments = ( int ) Math . ceil ( Math . abs ( sweep * NUMBER0 / Math . PI ) ) ; double eta1 = start ; double cosTheta = Math . cos ( theta ) ;
Fix segment number for arcTo conversion
<nb> public class MiniDrawerActivity extends AppCompatActivity { headerResult . addProfiles ( newProfile ) ; } } + + SINGLE miniResult . onProfileClick ( ) ; SINGLE <nb> public class MiniDrawerActivity extends AppCompatActivity { Toast . makeText ( MiniDrawerActivity . this , ( ( Nameable ) drawerIt...
add somre more info for the MiniDrawerActivity
<nb> public class RedissonAttachedLiveObjectService implements RAttachedLiveObjectSer } SINGLE + SINGLE @ override public < T , K > T get ( Class < T > entityClass , K id , long timeToLive , TimeUnit timeUnit ) { T instance = get ( entityClass , id ) ;
Add TTL renewal functionality
<nb> public class InsetDrawable extends Drawable implements Drawable . Callback { if ( ! mMutated && super . mutate ( ) == this ) { mState = new InsetState ( mState ) ; mDrawable . mutate ( ) ; + mState . mDrawableState = mDrawable . getConstantState ( ) ; mMutated = true ; } return this ;
Synchronize mutated constant state s drawable constant state
<nb> public class APIHandler extends AbstractHandler { String startRowParam = request . getParameter ( QUERY_PARAM_START_KEY ) ; byte [ ] startRow = null ; if ( startRowParam != null && ! startRowParam . isEmpty ( ) ) { - startRow = BaseEncoding . base64Url ( ) . decode ( startRowParam ) ; + startRow = BaseEn...
Change BaseEncoding base64Url to BaseEncoding base64
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class FacebookApi extends DefaultApi20 { private static final String AUTHORIZE_URL = STRING0 ; + @ override public String getAuthorizationUrl ( OAuthConfig config ) { - if ( OAuthConstants . OUT_OF_BAN...
Refactored OOB checking in fbook api
<nb> public class OtrService extends OtrCryptoEngineImpl implements OtrEngineHost { packet . addChild ( STRING0 , STRING1 ) ; packet . addChild ( STRING2 , STRING3 ) ; packet . addChild ( STRING4 , STRING3 ) ; - + packet . addChild ( STRING4 , STRING3 ) ; try { Jid jid = Jid . fromSessionID ( session ) ; ...
also add no permanent storage to message hints
<nb> public final class ValidateConf { SINGLE validProperties . add ( STRING0 ) ; + + SINGLE + validProperties . add ( STRING1 ) ; SINGLE SINGLE <nb> public class AlluxioMaster { System . exit ( - NUMBER0 ) ; } - SINGLE + SINGLE if ( ! ValidateConf . validate ( ) ) { System . exit ( - ...
add alluxio accesslooger as valid field
<nb> public class TooltipController { } if ( Comparing . equal ( tooltipObject , myCurrentTooltipObject ) ) { + IdeTooltipManager . getInstance ( ) . cancelAutoHide ( ) ; return ; } hideCurrentTooltip ( ) ; <nb> public class IdeTooltipManager implements ApplicationComponent , AWTEventListener } pr...
avoid flickering on the same object
<nb> public abstract class FunctionDescriptorImpl extends DeclarationDescriptorImpl i } public void setReturnType ( @ notnull JetType unsubstitutedReturnType ) { + if ( this . unsubstitutedReturnType != null ) { + SINGLE + SINGLE + } this . unsubstitutedReturnType = unsubstitutedReturnType ; }
do not set FunctionDescriptorImpl returnValue more than once
<nb> public class ChangeGroup extends AbstractActionGroup { FileEditor fe = event . getOldEditor ( ) ; if ( fe instanceof TextEditor ) { Editor editor = ( ( TextEditor ) event . getOldEditor ( ) ) . getEditor ( ) ; - CommandState . getInstance ( editor ) . reset ( ) ; + if ( logger . isDebugEnabled ( ) ) { ...
Remove redundant actions
<nb> public class SwiftUnderFileSystem extends UnderFileSystem { COMMENT COMMENT private String stripPrefixIfPresent ( String path ) { + if ( path . startsWith ( PATH_SEPARATOR ) ) { + return stripPrefixIfPresent ( path , PATH_SEPARATOR ) ; + } return stripPrefixIfPresent ( path , mContainerPrefix ) ; }
Fixed a bug that Alluxio cannot list content in mounted SwiftFS path
<nb> public class BlockLogBuffer implements LogBuffer return checkFlush ( ) ; } + public LogBuffer putShort ( short s ) throws IOException + { + byteBuffer . putShort ( s ) ; + return checkFlush ( ) ; + } + public LogBuffer putInt ( int i ) throws IOException { byteBuffer . putInt ( i ) ;
Missing interface method
<nb> public class ClusterService { List < Notification > notifications = Lists . newArrayList ( ) ; for ( NotificationSummaryResponse notification : r . notifications ) { try { - notifications . add ( new Notification ( notification ) ) ; + notifications . add ( new Notification ( notification , nodeService )...
Fix ClusterService allNotifications in REST client
<nb> public class UtilTest extends TestCase { SINGLE assertEquals ( HeatmapTileProvider . interpolateColor ( red , blue , FLOAT0 ) , - NUMBER0 ) ; - assertEquals ( HeatmapTileProvider . interpolateColor ( red , blue , FLOAT1 ) , - NUMBER1 ) ; + assertEquals ( HeatmapTileProvider . interpolateColor ( red , blu...
Using Color constants
<nb> public interface ClassLoaderScope { ClassLoaderScope getBase ( ) ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT ClassLoader addLocal ( ClassPath classpath ) ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT ClassLoader...
Added some javadocs
<nb> public class NeuralNetConfiguration implements Serializable , Cloneable { if ( clone . momentumAfter != null ) clone . momentumAfter = new HashMap < > ( clone . momentumAfter ) ; if ( clone . layer != null ) clone . layer = clone . layer . clone ( ) ; if ( clone . stepFunction != null ) clone . stepFunction ...
Fix NNConf clone
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT @ gwtcompatible @ beta
Add a Javadoc pointer from DiscreteDomain to DiscreteDomains
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT + @ deprecated class CommonsLogger extends AbstractInternalLogger { private static final long serialVersionUID = NUMBER0 ; <nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAM...
deprecated old loggers
<nb> public class SQLiteQuery extends SQLiteProgram { SINGLE int numRows = native_fill_window ( window , window . getStartPosition ( ) , mOffsetIndex , maxRead , lastPos ) ; - - SINGLE - if ( SQLiteDebug . DEBUG_SQL_STATEMENTS ) { - Log . d ( TAG , STRING0 + mSql ) ; - } mDatabase . logTimeStat ( mSql...
remove some not so useful logging
<nb> public class DcorefBenchmarkSlowITest extends TestCase { lowResults . setCount ( BLANC_F1 , FLOAT0 ) ; expectedResults . setCount ( BLANC_F1 , FLOAT1 ) ; - highResults . setCount ( BLANC_F1 , FLOAT2 ) ; + highResults . setCount ( BLANC_F1 , FLOAT3 ) ; lowResults . setCount ( CONLL_SCORE , FLOAT4 ) ; ...
Increase the high range for the accepted results
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class NestedTryStatementsPredicate implements PsiElementPredicate { + class NestedTryStatementsPredicate implements PsiElementPredicate { @ override public boolean satisfiedBy ( PsiElement element ) {
make predicate package local
<nb> public class SimpleTransportPlugin implements ITransportPlugin { COMMENT @ override public TTransport connect ( TTransport transport , String serverHost , String asUser ) throws TTransportException { + int maxBufferSize = type . getMaxBufferSize ( storm_conf ) ; SINGLE - TTransport conn = new TFramedTr...
Simple Transport Client cannot configure thrift buffer size
<nb> public final class AnalyticsTracker { SITE_SETTINGS_DELETED_LIST_ITEMS , SITE_SETTINGS_SAVED_REMOTELY , SITE_SETTINGS_HINT_TOAST_SHOWN , + SITE_SETTINGS_DELETE_SITE_ACCESSED , + SITE_SETTINGS_DELETE_SITE_REQUESTED , + SITE_SETTINGS_EXPORT_SITE_ACCESSED , + SITE_SETTINGS_EXPORT_SITE_REQUESTED , + SI...
Adding tracking additions for delete site
<nb> public class ShellExecStatementTest extends HiveTestService { public void setUp ( ) throws Exception { super . setUp ( ) ; - SINGLE - SINGLE + + Z . configure ( ) ; SINGLE driver = new HiveZeppelinDriver ( Z . getConf ( ) ) ;
Initialize Z before test
<nb> public class OsMoService implements OsMoReactor { try { SINGLE List < NameValuePair > nameValuePairs = new ArrayList < NameValuePair > ( NUMBER0 ) ; + nameValuePairs . add ( new BasicNameValuePair ( STRING0 , Version . getFullVersion ( app ) ) ) ; nameValuePairs . add ( new BasicNameValuePair ( STRING1 ,...
Osmo service pass a version
<nb> public class BlockStoreLocation { return ( mTierAlias < < NUMBER0 ) + ( mTierAlias < < NUMBER1 ) + mDirIndex ; } - public int tier ( ) { return mTierAlias ; } <nb> public class BlockStoreLocation { return result ; } + @ override + public boolean equals ( Object object ) { + if ( object ...
Add equals method for BlockStoreLocation on comparison
<nb> public class CommonContentEntriesEditor extends ModuleElementsEditor { entriesPanel . add ( new ToolbarPanel ( myScrollPane , group ) , BorderLayout . CENTER ) ; final Splitter splitter = new Splitter ( false ) ; + splitter . setProportion ( FLOAT0 ) ; splitter . setHonorComponentsMinimumSize ( true ) ; ...
increased default size of source roots tree
<nb> public class LiquibaseDatabaseDiff extends AbstractLiquibaseChangeLogMojo { protected String referenceDriver ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class LiquibaseDatabaseDiff extends AbstractLiquibaseChangeLogMojo { super . checkRe...
Removed hibernate references
<nb> public class CodeItem extends Item < CodeItem > { } int newOffset = newOffsetsByOriginalOffset . get ( address * NUMBER0 , - NUMBER1 ) ; + + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + if ( newOffset == - NUMBER1 ) { + return ; + } + assert newOffset != - NUMBER1 ; newOffset = newOff...
Fix an issue when the current address immediatly after an AdvancePC debug instruction doesn t point to an instruction
<nb> public class Matchers { public boolean matches ( MethodTree methodTree , VisitorState state ) { Tree returnTree = methodTree . getReturnType ( ) ; Type methodReturnType = null ; + if ( returnTree == null ) { + SINGLE + return false ; + } switch ( returnTree . getKind ( ) ) { case ARRAY_TYPE : m...
fixed NPE added Supplier VOID_TYPE
<nb> public final class MahoutDriver { if ( argMap . get ( arg ) . length > NUMBER0 && ! argMap . get ( arg ) [ NUMBER0 ] . trim ( ) . isEmpty ( ) ) { arg += STRING0 + argMap . get ( arg ) [ NUMBER0 ] . trim ( ) ; } + argsList . add ( NUMBER1 , arg ) ; } - argsList . add ( arg ) ; - if ( ! arg . startsWit...
Fixed D ordering problem in MahoutDriver
<nb> public class RecyclerView extends ViewGroup { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Fix bad param tag in javadoc
<nb> final class ActivityStack { if ( DEBUG_TASKS ) Slog . d ( TAG_TASKS , STRING0 + task + STRING1 + r ) ; continue ; } + if ( r . mActivityType != target . mActivityType ) { + if ( DEBUG_TASKS ) Slog . d ( TAG_TASKS , STRING0 + task + STRING2 ) ; + continue ; + } final Intent taskIntent = task . int...
Only launch an activity in an existing task if activity types match