diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class MessageGenerator extends AbstractGenerator { packet . setTo ( conversation . getJid ( ) . toBareJid ( ) ) ; packet . setFrom ( account . getJid ( ) ) ; packet . addChild ( ChatState . toElement ( conversation . getOutgoingChatState ( ) ) ) ; + packet . addChild ( STRING0 , STRING1 ) ; + pack...
add no store to chat states
<nb> public class ShardStateAction extends AbstractComponent { default void onSuccess ( ) { } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT default void onShardFailedFailure ( fi...
Add Javadocs for exceptions that are handled by ShardStateAction
<nb> public class Solo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT <nb> public class Solo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT
Removed two dots in javadoc
<nb> public class PosixUtil { LOGGER . debug ( STRING0 ) ; return new FallbackPOSIX ( ) ; } - LOGGER . debug ( STRING1 ) ; - return posix ; } }
Remove reduntant debug log message when posix is initialized
<nb> public interface Vertex extends Element { public Iterable < Edge > getEdges ( Direction direction , String . . . labels ) ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Adjust API docs on Vertex getVertices
<nb> public class IdentityManager . getLogger ( IdentityManager . class ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT private static final Set < Character > RESERVED ; <nb> public class IdentityManager throw new IllegalArgumentException ( STRIN...
Added markers for improvements
<nb> public class LuaBinaryDescription implements ruleResolver , pathResolver , cxxPlatform , - output , + packageStyle == LuaConfig . PackageStyle . STANDALONE ? + output . resolveSibling ( output . getFileName ( ) + STRING0 ) : + output , starterType , nativeStarterLibrary , mainModule ,
write starter to a different output when using packaged style
<nb> public final class StandardClasses { standardClasses . declareStandardTopLevelObject ( arrayListFQName , STRING0 ) ; standardClasses . declareStandardInnerDeclaration ( arrayListFQName , STRING1 , STRING0 ) ; declareMethods ( standardClasses , arrayListFQName , STRING2 , STRING3 , STRING4 , - STRING5 , STR...
fixed arrayList tests
<nb> public class CrossOriginFilter implements Filter public static final String PREFLIGHT_MAX_AGE_PARAM = STRING0 ; public static final String ALLOW_CREDENTIALS_PARAM = STRING1 ; public static final String EXPOSED_HEADERS_PARAM = STRING2 ; + public static final String OLD_CHAIN_PREFLIGHT_PARAM = STRING3 ; pu...
better name missed the release
<nb> abstract public class EventAction < T extends Event > extends Action { private final EventListener listener = new EventListener ( ) { public boolean handle ( Event event ) { - if ( ! ClassReflection . isInstance ( eventClass , event ) ) return false ; + if ( ! active || ! ClassReflection . isInstance ( e...
Added active flag
<nb> import NAMESPACE ; public class LagartoException extends UncheckedException { public LagartoException ( Throwable t ) { - super ( t ) ; + super ( STRING0 , t ) ; } public LagartoException ( ) { - super ( ) ; + super ( STRING0 ) ; } public LagartoException ( String message ) {
Added default message to the LagartoException
<nb> public class JobValidator { if ( image == null ) { errors . add ( format ( STRING0 ) ) ; } else { - if ( image . endsWith ( STRING1 ) ) { - errors . add ( STRING2 ) ; - } - SINGLE validateImageReference ( image , errors ) ; } <nb> public class JobValidatorTest { } @ test - public void...
unban the tag latest
<nb> public class DeviceOwner { } String getDeviceOwnerPackageName ( ) { - return mDeviceOwner . packageName ; + return mDeviceOwner != null ? mDeviceOwner . packageName : null ; } String getDeviceOwnerName ( ) { - return mDeviceOwner . name ; + return mDeviceOwner != null ? mDeviceOwner . name : nu...
Fix two potential NPEs in DeviceInfo
<nb> public class RestrictedLockUtils { ComponentName adminComponent = null ; List < ComponentName > admins = dpm . getActiveAdmins ( ) ; int quality ; - for ( ComponentName admin : admins ) { - quality = dpm . getPasswordQuality ( admin ) ; - if ( quality >= DevicePolicyManager . PASSWORD_QUALITY_UNSPECIFI...
Add a guard against NullPointerException in RestrictedLockUtils
<nb> public class DefaultEntitlementUserApi extends EntitlementApiBase implements Ent throw new EntitlementUserApiException ( ErrorCode . ENT_CREATE_BP_EXISTS , bundleId ) ; } else { SINGLE - baseSubscription . recreate ( spec , requestedDate , context ) ; - return baseSubscription ; + final Subscription re...
Fix NPE when recreating a plan
<nb> public class SearchView extends LinearLayout { if ( mIconifiedByDefault == iconified ) return ; mIconifiedByDefault = iconified ; updateViewsVisibility ( iconified ) ; - setImeVisibility ( ! iconified ) ; } COMMENT
Don t change keyboard state in setIconifiedByDefault
<nb> final class ProcessExecutor { private List < String > getPlatformIndependentCommand ( ) { if ( platform . isWindows ( ) ) { - return Utils . merge ( Arrays . asList ( STRING0 , STRING1 ) , command ) ; + return Utils . merge ( Arrays . asList ( STRING0 , STRING1 , STRING2 + workingDirectory + STRING3 ) , ...
Add local Node js to PATH before running
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; SINGLE <nb> public class ScriptReceiver implements ThisReceiver { @ override public JetType getType ( ) { SINGLE - return KotlinBuiltIns . getInstance ( ) . getAnyType ...
Remove usage of KotlinBuiltIns getInstance
<nb> public class LwjglAWTCanvas implements Application { } void render ( ) { + if ( ! running ) return ; + setGlobals ( ) ; canvas . setCursor ( cursor ) ; graphics . updateTime ( ) ; <nb> public class LwjglAWTCanvas implements Application { listener . pause ( ) ; listener . dispose ( ) ; + G...
Add some lifecycle safety
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class ConversionContextImpl implements ConversionContext { myRunManagerSettings = new RunManagerSettingsImpl ( myWorkspaceFile , myProjectFile , null , this ) ; } else { - fi...
Cannot convert error fixed
<nb> public class OwnReadActor extends ModuleActor { } public void onOutMessage ( Peer peer , long sortDate ) { - long readState = context ( ) . getMessagesModule ( ) . loadReadState ( peer ) ; - if ( sortDate <= readState ) { - SINGLE - return ; - } + SINGLE + SINGLE + SINGLE + SINGLE + SINGL...
Fixing not disappearing of messages
<nb> public class ActFmSyncV2Provider extends SyncV2Provider { @ override public void pushRemoteModel ( Task model ) { + long userId = model . getValue ( Task . USER_ID ) ; + if ( userId != Task . USER_ID_SELF && userId != ActFmPreferenceService . userId ( ) ) + model . putTransitory ( TaskService . TRANS_A...
Fixed bug where tasks assigned while offline would be reassigned to self after sync
<nb> public class OMetadata { security = instance ; instance . load ( ) ; } + + if ( instance . getAllRoles ( ) . isEmpty ( ) ) { + OLogManager . instance ( ) . error ( this , STRING0 ) ; + security . repair ( ) ; + } + return instance ; } } ) , database ) ; <nb> import NAMESPACE ; import ...
Fixed last bugs on recovery of a dirty metadata
<nb> public class IndexHelper { } private static FilterBuilder fromRangeBuilder ( FromRange range ) { - return FilterBuilders . rangeFilter ( STRING0 ) . gte ( Tools . buildElasticSearchTimeFormat ( range . getFrom ( ) ) ) ; + return FilterBuilders . rangeFilter ( STRING0 ) + . gte ( Tools . buildElasticSea...
set upper range for relative timerange filters to avoid showing messages from the future
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ODocument extends ORecordVirtualAbstract < Object > implements Iterabl checkForLoading ( ) ; checkForFields ( ) ; - ret...
Fixed bug on ordering of columns in console output
<nb> public final class CheckGlobalThisTest extends CompilerTestCase { testFailure ( STRING0 + STRING1 ) ; } + + public void testInnerFunctionInClassMethod1 ( ) { + SINGLE + testSame ( LINE_JOINER . join ( + STRING2 , + STRING3 , + STRING4 , + STRING5 , + STRING6 , + STRING7 , + STRING8 ) ) ...
Added tests for using this in inner anonymous functions
<nb> public class ShowGraph extends PApplet implements MouseWheelListener { } private boolean drawAll ( int startMillis ) { - SINGLE - SINGLE if ( drawOffset == NUMBER0 ) { findVisibleElements ( ) ; background ( NUMBER1 ) ; <nb> public class ShowGraph extends PApplet implements MouseWheelListener { ...
remove comment cruft
<nb> public class Installer extends ModuleInstall { SINGLE SINGLE SwingUtilities . invokeLater ( new Runnable ( ) { - @ override public void run ( ) { SINGLE <nb> public class Installer extends ModuleInstall { } ) ; WindowManager . getDefault ( ) . invokeWhenUIReady ( new Runnable ( ) { - @ ov...
Fix bug when launching without Timelime component
<nb> public interface Container COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void addEventListener ( Listener listener ) ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void removeEventListener ( Listener listener ) ; <nb> public interface Logger COMMENT ...
Fixing invalid javadoc
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SampleDialogFragment extends DialogFragment implements public void onDismiss ( DialogInterface unused ) { super . onDismiss...
replaced Toast with Log d in onDismiss
<nb> public class TextEditingTarget implements void onCommentUncomment ( ) { if ( fileType_ . isCpp ( ) ) - docDisplay_ . toggleCommentLines ( ) ; + doCommentUncomment ( STRING0 ) ; else if ( isCursorInTexMode ( ) ) doCommentUncomment ( STRING1 ) ; else if ( isCursorInRMode ( ) )
Use internal commenting method for cpp handles trailing spaces nicely
<nb> public class MasterInfoTest { } @ test + public void deleteRootTest ( ) throws InvalidPathException , FileAlreadyExistException , + TachyonException , BlockInfoException { + Assert . assertFalse ( mMasterInfo . delete ( STRING0 , true ) ) ; + Assert . assertFalse ( mMasterInfo . delete ( STRING0 , fa...
Added test for deleting root
<nb> public final class TestRecomputeExecutor { RecomputeExecutor executor = new RecomputeExecutor ( planner , fileSystemMaster ) ; SINGLE executor . heartbeatWithFuture ( ) . get ( NUMBER0 , TimeUnit . SECONDS ) ; + executor . close ( ) ; Mockito . verify ( fileSystemMaster ) . resetFile ( fileId ) ; Moc...
Add missing close to test
<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput setResultset ( new ArrayList < OIdentifiable > ( ) ) ; SINGLE - OGlobalConfiguration . STORAGE_LOCK_TIMEOUT . setValue ( NUMBER0 ) ; - OGlobalConfiguration . NETWORK_LOCK_TIMEOUT . setValue ( NUMBER0 ) ; - OGlobalConfigura...
Removed custom setting in console because no needed anymore
<nb> public class Authentication { private void onLoggedIn ( final CommandCallback < AuthState > callback , ResponseAuth response ) { state = AuthState . LOGGED_IN ; myUid = response . getUser ( ) . getId ( ) ; - modules . getPreferences ( ) . putBool ( KEY_AUTH , true ) ; - modules . getPreferences ( ) . put...
Fixing authentication state saving
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ transactional public class DefaultTokenServices implements AuthorizationServerTokenServices , ResourceServerTokenServices , ConsumerTokenServices , InitializingBean { <nb> public class DefaultTokenServices implements AuthorizationServerTokenServices , ...
Move Transactional down to method level in DefaultTokenServices
<nb> public class TaskModelRealizingConfigurationAction implements ProjectConfigureAc public void execute ( ProjectInternal projectInternal ) { ModelRegistry modelRegistry = projectInternal . getModelRegistry ( ) ; modelRegistry . get ( TaskContainerInternal . MODEL_PATH , ModelType . UNTYPED ) ; - modelRegistr...
Don t call the method that validates closes the model registry close
<nb> public final class Settings { public static final String VIBRATE_WHEN_RINGING = STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String USB_AUDIO_AUTOMATIC_ROUTING_DISABLED = + STRING1 ; + + COMMENT COMMENT COMMENT COMMENT <nb> pu...
Add setting to disable automatic USB audio routing
<nb> public class ActFmSyncThread { try { SyncMessageCallback r = pendingCallbacks . remove ( message ) ; if ( r != null && ! callbacksExecutedThisLoop . contains ( r ) ) { - r . runOnSuccess ( ) ; + List < JSONObject > errorList = errorMap . get ( i ) ; + if ( errorList == null || errorList . isEmpty ( ) )...
Pass error list into sync callbacks
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReadOnlyStorePerformanceTest { Utils . croak ( STRING0 ) ; } - final Serializer keySerializer = new DefaultSerializerFa...
Eliminate compiler warnings
<nb> public abstract class Renderer < T > implements Cloneable { } COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class Renderer < T > implements Cloneable { COMMENT COMMENT COMMENT - public View getRootView ( ) { + View getRootView ( ) { return rootVi...
Revert Change getRootView visibility to improve testability
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT class TypeVariableTypeWrapper implements WildcardWrapper { private final String name ;
Removed unused import
<nb> public class ZWaveNode { COMMENT COMMENT public ZWaveNode ( int homeId , int nodeId , ZWaveController controller ) { + nodeState = ZWaveNodeState . ALIVE ; this . homeId = homeId ; this . nodeId = nodeId ; this . controller = controller ;
Ensure nodeState initialised for new nodes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class TextClock extends TextView { COMMENT COMMENT COMMENT + @ remotableviewmethod public void setFormat12Hour ( CharSequence format ) { mFormat12 = format ; ...
Add programmatic access to setters in TextClock
<nb> public class LineChartRenderer extends LineRadarRenderer { float fillMin = dataSet . getFillFormatter ( ) . getFillLinePosition ( dataSet , mChart ) ; - spline . lineTo ( bounds . min + bounds . range , fillMin ) ; - spline . lineTo ( bounds . min , fillMin ) ; + spline . lineTo ( dataSet . getEntryFor...
fixed LineChartRenderer to get correct x values when using cubicFill
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> + COMMENT + COM...
added more missing license headers
<nb> public final class DocumentsContract { final ContentProviderClient client = resolver . acquireUnstableContentProviderClient ( sourceDocumentUri . getAuthority ( ) ) ; try { - return moveDocument ( client , sourceParentDocumentUri , sourceDocumentUri , + return moveDocument ( client , sourceDocumentUri , ...
Fix arguments order in DocumentsContract moveDocument
<nb> public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe @ override public void showPromptReason ( int reason ) { if ( mCurrentSecuritySelection != SecurityMode . None ) { + if ( reason != PROMPT_REASON_NONE ) { + Log . i ( TAG , STRING0 + reason ) ; + } getSecurityView ( mCur...
Log bouncer prompt reason
<nb> public class NioEndpoint { close = true ; events . clear ( ) ; selector . wakeup ( ) ; - try { stopLatch . await ( ) ; } catch ( InterruptedException ignore ) { } + try { stopLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ; } catch ( InterruptedException ignore ) { } } public void addEvent ( Runnab...
don t give the selector infinite time to shutdown
<nb> public class TabbedShowHistoryForRevisionAction extends DumbAwareAction { Project project = event . getProject ( ) ; if ( project == null ) return false ; if ( getVcsHelper ( project ) == null ) return false ; - if ( event . getData ( VcsDataKeys . CHANGES ) == null ) return false ; - AbstractVcs vcs =...
remove useless check
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper { if ( b . request == null ) b . request ( new NoOpsRequest ( ) ) ; this . b = b ; + this . uuid = resource ( ) != null ? resource ( ) . uuid ( ) : STRING0 ; } private BufferedReader getVoidReader ( ) { <nb> public class AtmosphereReq...
Expose AtmosphereRequest uuid
<nb> public class HttpPostRequestEncoder implements ChunkedMessageInput < HttpChunk > { } ByteBuf buffer ; if ( currentData instanceof InternalAttribute ) { - String internal = ( ( InternalAttribute ) currentData ) . toString ( ) ; + String internal = currentData . toString ( ) ; byte [ ] bytes ; try { ...
Remove recundant type casting
<nb> public class InspectionToolRegistrar { public JobDescriptor [ ] getJobDescriptors ( GlobalInspectionContext globalInspectionContext ) { return getTool ( ) . getJobDescriptors ( globalInspectionContext ) ; } + + @ override + public boolean isGraphNeeded ( ) { + return getTool ( ) . isGraphNeeded ( ) ;...
build graph for dead code inspection
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public class WriterUtils { } return success ; } + }
Removed changes in formatting automatically done by Android Studio
<nb> import NAMESPACE ; COMMENT public final class RandomUtils { - public static void main ( String [ ] args ) { - int i = NUMBER0 ; - System . out . print ( i += i ++ ) ; - System . out . print ( i ) ; - } - private static final byte [ ] STANDARD_SEED = STRING0 . getBytes ( Charset . forName ( STRI...
Oops removed some test code
<nb> public abstract class AbstractConfiguredTarget return get ( name ) ; } } - + @ override public String errorMessage ( String name ) { return null ; <nb> public abstract class AbstractConfiguredTarget @ override public ImmutableCollection < String > getKeys ( ) { - return ImmutableList . of...
Replaced redundant strings
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMES...
readjust quarry battery buffer size
<nb> public class WordPressDB { new String [ ] { String . valueOf ( localBlogId ) , postID , String . valueOf ( SqlUtils . boolToSql ( isPage ) ) } ) ; if ( result == NUMBER0 ) db . insert ( POSTS_TABLE , null , values ) ; - - db . setTransactionSuccessful ( ) ; } + + db . setTransactionSuccessful ( ) ;...
Moving db setTransactionSuccessful to the proper location outside of the loop
<nb> public abstract class OAbstractPaginatedStorage extends OStorageAbstract private volatile ThreadLocal < OStorageTransaction > transaction = new ThreadLocal < OStorageTransaction > ( ) ; private final AtomicBoolean checkpointInProgress = new AtomicBoolean ( ) ; - private final OSBTreeCollectionManagerShared...
restored sbTreeCollectionManager visibility
<nb> public class DrawableContainer extends Drawable implements Drawable . Callback { final int N = mDrawableContainerState . getChildCount ( ) ; final Drawable [ ] drawables = mDrawableContainerState . getChildren ( ) ; for ( int i = NUMBER0 ; i < N ; i ++ ) { - drawables [ i ] . mutate ( ) ; + if ( drawable...
Fix possible NPE when mutating a DrawableContainer
<nb> public class ExtensionUserManagement extends ExtensionAdaptor implements Context public void exportContextData ( Context ctx , Configuration config ) { ContextUserAuthManager m = contextManagers . get ( ctx . getIndex ( ) ) ; for ( User u : m . getUsers ( ) ) { - config . setProperty ( CONTEXT_CONFIG_USERS...
Fixed issue where during export only one users was being persisted
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SavePlotAsImageDialog extends ExportPlotDialog public SavePlotAsImageDialog ( GlobalDisplay globalDisplay , PlotsServerOperations server , ...
pass previewer to save plot as image dialog
<nb> class DialogInit { SINGLE dialog . setCancelable ( builder . cancelable ) ; - dialog . setCanceledOnTouchOutside ( builder . cancelable ) ; + dialog . setCanceledOnTouchOutside ( builder . canceledOnTouchOutside ) ; if ( builder . backgroundColor == NUMBER0 ) builder . backgroundColor = DialogUtils ....
Add setCanceledOnTouchOutside boolean method
<nb> public class TextInputLayout extends LinearLayout { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT public void setCounterMaxLength ( int maxLength ) { if ( mCounterMaxLength != maxLength ) { <nb> public class TextInputLayout extends LinearLayout { COMMENT COMMENT + COMMENT + COMMEN...
Add attr links to TextInputLayout
<nb> public final class Splitter { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in Splitter limit javadoc
<nb> public class Queries { COMMENT public final static Query NO_MATCH_QUERY = MatchNoDocsQuery . INSTANCE ; - private static final Filter MATCH_ALL_DOCS_FILTER = new MatchAllDocsFilter ( ) ; - COMMENT COMMENT COMMENT <nb> public class Queries { SINGLE SINGLE SINGLE - return new XConstantScore...
use the already used constant for match no filter
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; import static NAMESPACE ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class MockClientHttpRequestFactoryTests { this . factory . createRequest ( new URI ( STRING0 ) ,...
Fix failing test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class RegistrationBean implements ServletContextInitializer { + public abstract class RegistrationBean implements Serv...
Add Ordered to RegistrationBean
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class DTask < T extends DTask > extends H2OCountedCompleter implements Freezable { + p...
Fix Scala type issues
<nb> public class HintedHandOffManager Table systemTable = Table . open ( Table . SYSTEM_TABLE ) ; for ( String tableName : DatabaseDescriptor . getTables ( ) ) { - ColumnFamily hintedColumnFamily = systemTable . get ( tableName , HINTS_CF ) ; + ColumnFamily hintedColumnFamily = ColumnFamilyStore . removeDele...
add removeDeleted to deliverHintsToEndpoint
<nb> class LockScreen extends LinearLayout implements KeyguardScreen , KeyguardUpdateM mEmergencyCallButton . setText ( R . string . lockscreen_emergency_call ) ; mScreenLocked = ( TextView ) findViewById ( R . id . screenLocked ) ; mSelector = ( SlidingTab ) findViewById ( R . id . tab_selector ) ; + mSelector...
Fix visual glitches in lockscreen
<nb> public class ServerTestCase { handlerList . addHandler ( proxyHandler ) ; proxy . setHandler ( handlerList ) ; - ServletHolder proxyHolder = proxyHandler . addServletWithMapping ( STRING0 , STRING1 ) ; + ServletHolder proxyHolder = proxyHandler . addServletWithMapping ( STRING0 , STRING1 ) ; proxyHolde...
Add space after comma
<nb> public abstract class CachedEvaluator { protected Cache initEvaluatorAndChildrenExpression ( final Project project ) { final Cache cache = new Cache ( ) ; try { - final PsiClass contextClass = DebuggerUtils . findClass ( getClassName ( ) , project , GlobalSearchScope . allScope ( project ) ) ; + PsiClass...
renderers do not resolve types in the context of decompiled class
<nb> final class ToolWindowsPane extends JPanel { try { SINGLE final UISettings uiSettings = UISettings . getInstance ( ) ; - if ( ! myDirtyMode && uiSettings . ANIMATE_WINDOWS ) { + if ( ! myDirtyMode && uiSettings . ANIMATE_WINDOWS && ! UISettings . isRemoteDesktopConnected ( ) ) { SINGLE final Image to...
do not animate slide toolwindows undr remote desktop
<nb> class DisplayContent { COMMENT if ( isFreeformed ) { mTmpRect . inset ( - delta , - delta ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + mTmpRect . intersect ( mContentRect ) ; } mTouchExcludeRegion . op ( mTmpRect , Region . Op . DIFFERENCE ) ; }
Exclude system decor area from tap detection
<nb> public class Configuration { private Collection < ? extends String > getListFromProperties ( final Properties props , final String key ) { final String value = ( String ) props . get ( key ) ; final List < String > list = new ArrayList < > ( ) ; - if ( value != null ) { + if ( value != null && ! value . ...
handle zero length string correctly
<nb> public class CookieBasedSessionManagementMethodType extends SessionManagementMet else { SINGLE CookieBasedSession session = new CookieBasedSession ( ) ; - session . getHttpState ( ) ; for ( HttpCookie c : msg . getRequestHeader ( ) . getHttpCookies ( ) ) session . getHttpState ( ) . addCookie ( convert...
removed useless call
<nb> public class DeepLearningSpiralsTest extends TestUtil { p . seed = NUMBER0 ; p . rate = FLOAT0 ; p . rate_annealing = NUMBER1 ; - p . epochs = NUMBER2 ; + p . epochs = NUMBER3 ; p . hidden = new int [ ] { NUMBER4 } ; p . activation = DeepLearning . Activation . Tanh ; p . max_w2 = Double . MAX_VALU...
Add more epochs for Spirals test to finish with single precision
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class TestZActor { - SINGLE public void testMinimalistic ( ) { Actor acting = new ZActor . SimpleActor ( ) <nb> public class TestZActor ...
Fix linter errors
<nb> class CompiledArgumentResolver { } private Object [ ] applyArgumentResolver ( Object [ ] args ) { - SINGLE + SINGLE Object [ ] result = new Object [ args . length ] ; for ( int i = NUMBER0 ; i < args . length ; i ++ ) { result [ i ] = compileContext . getArgumentResolver ( ) . resolveArgument ( arg...
Reword a TODO
<nb> final class ZLOwnXMLParser { while ( true ) { int count = streamReader . read ( buffer ) ; if ( count <= NUMBER0 ) { + streamReader . close ( ) ; return ; } if ( count < buffer . length ) {
added InputStreamReader closing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - public class SlidingLayer extends FrameLayout { SINGLE
removed import from sample project
<nb> public class HttpRequest { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class HttpRequest { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class HttpRequest { } COMMENT + COMMENT + COMMENT ...
Add helper to get buffered reader to response body
<nb> class ActivityStarter { SINGLE mService . setFocusedActivityLocked ( mStartActivity , STRING0 ) ; } - mSupervisor . resumeFocusedStackTopActivityLocked ( mTargetStack , mStartActivity , - mOptions ) ; + if ( mTargetStack . isFocusable ( ) ) { + mSupervisor . resumeFocusedStackTopActivityLocked ( mTar...
Ensure visibility of pinned activity when starting it
<nb> public final class ApplicationMaster implements AMRMClientAsync . CallbackHandler COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT private CountDownLatch mOutstandingWorkerContainerRequestsLatch = null ;
Fix javadoc link
<nb> public class LoadingActivity extends Activity { Intent intent = getIntent ( ) . getParcelableExtra ( ExtraConstants . EXTRA_INTENT ) ; VirtualCore . getCore ( ) . addLoadingPage ( intent , this ) ; if ( intent != null ) { - VUiKit . postDelayed ( NUMBER0 , ( ) - > startActivity ( intent ) ) ; + VUiKit . ...
delay open vapp
<nb> public class MRUtils { long [ ] dist = new ClassDist ( r . vecs ( ) [ labelidx ] ) . doAll ( r . vecs ( ) [ labelidx ] ) . dist ( ) ; SINGLE - if ( dist == null ) + if ( dist == null ) { + r . delete ( ) ; return fr ; + } if ( debug ) { long sumdist = Utils . sum ( dist ) ;
Fix memory leak
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractHttpClientTransport extends ContainerLifeCycle imp SINGLE catch ( Throwable x ) { + SINGLE + SINGLE...
Improved error reporting
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Doc InteractiveAuthenticationEvent doesn t extend AuthentcationEvent
<nb> public class DocGen extends AbstractProcessor { + STRING0 ) ; break ; case CUSTOM_ANNOTATION : - lines . add ( STRING1 + lines . add ( STRING2 + STRING3 ) ; break ; case UNSUPPRESSIBLE :
Fix docgen for custom suppression
<nb> public class Java extends AbstractLanguage { return ! ( getKey ( ) != null ? ! getKey ( ) . equals ( language . getKey ( ) ) : language . getKey ( ) != null ) ; } - @ override - public int hashCode ( ) { - return super . hashCode ( ) ; - } - }
Fix quality flaws
<nb> public class ThumbnailUtil { Cursor c = cr . query ( thumbUri , THUMB_PROJECTION , Thumbnails . IMAGE_ID + STRING0 , new String [ ] { String . valueOf ( origId ) } , null ) ; + if ( c == null ) return null ; try { if ( c . moveToNext ( ) ) { return ContentUris . withAppendedId ( thumbUri , c . getLon...
Check cursor and URI value for nullity to prevent NPE
<nb> public class BasicReservationService extends Poller implements ReservationServic pollAPI ( ) ; } catch ( Exception e ) { + logger . error ( STRING0 , e ) ; throw new RuntimeException ( STRING1 + e . getMessage ( ) ) ; } }
print the pollAPI execption
<nb> public class Summary2 extends Iced { int binIdx = _isInt ? ( int ) ( ( ( long ) val - ( long ) start ) / ( long ) binsz ) : ( int ) Math . floor ( ( val - start ) / binsz ) ; + if ( start + ( binIdx + NUMBER0 ) * binsz <= val ) ++ binIdx ; SINGLE ++ bins [ binIdx ] ; }
add bin index adjustment to guard agains numeric errors in histogram
<nb> public class FeedMedia extends FeedFile implements Playable { if ( hasEmbeddedPicture ( ) ) { Uri . Builder builder = new Uri . Builder ( ) ; builder . scheme ( SCHEME_MEDIA ) . encodedPath ( getLocalMediaUrl ( ) ) ; + + if ( item != null && item . getFeed ( ) != null ) { + final Uri feedImgUri = item ...
Have to set the fallback URL
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import static NAMESPACE ; - import static NAMESPACE ;...
removed unused deps
<nb> public class RenderPipe extends TileEntitySpecialRenderer { default : } func_110628_a ( TextureMap . field_110575_b ) ; + FluidRenderer . colorFluid ( liquid ) ; GL11 . glCallList ( list ) ; GL11 . glPopMatrix ( ) ; } <nb> public class RenderPipe extends TileEntitySpecialRenderer { int stage = ( ...
Adds FluidStack color to pipes Render
<nb> public class CompletionStyleTest extends LightCodeInsightTestCase { checkResultByFile ( path + STRING0 ) ; } - public void testIDEADEV4566 ( ) throws Exception { - configureFromFileText ( - STRING1 , - STRING2 + - STRING3 + - STRING4 + - STRING5 + - STRING6 + - STRING7 ) ; - performSmartC...
remove superfluous test
<nb> package NAMESPACE ; COMMENT import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GifDecoder { Bitmap result = bitmapProvider . obtain ( header . width , header . height , targetConfig ) ; if ( result == null ) { result = Bitmap . createBitmap ( heade...
Fix gifs showing images from recycled bitmaps
<nb> public class GoBuilder extends TargetBuilder < GoSourceRootDescriptor , GoTarget > { for ( String contentRootUrl : module . getContentRootsList ( ) . getUrls ( ) ) { String contentRootPath = new URL ( contentRootUrl ) . getPath ( ) ; GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; - commandLi...
Remote deprecated code