diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class OperationSetPersistentPresenceYahooImpl yahooProvider . getYahooSession ( ) . setStatus ( statusMessage , isAvailable ) ; } - else - yahooProvider . getYahooSession ( ) . setStatus ( - ( ( Long ) scToYahooModesMappings . get ( status ) ) . longValue ( ) ) ; + + yahooProvider . getYahoo...
Fix yahoo status changes with status message
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JavaGlobalMemberNameCompletionContributor extends CompletionContrib final PsiReferenceExpression ref = PsiTreeUtil . findElementOfClassAtOffset...
do postponed formatting
<nb> public class ConversationActivity extends XmppActivity } public void sendReadMarkerIfNecessary ( final Conversation conversation ) { - if ( ! mActivityPaused && ! conversation . isRead ( ) ) { + if ( ! mActivityPaused && conversation != null && ! conversation . isRead ( ) ) { xmppConnectionService . se...
sending read marker when resuming activity and conversation is open
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class BasicNonByteBufferOperations implements Callable < Boolean > { private void write ( TachyonFileSystem tachyonFileSystem , TachyonURI filePath , T...
throw FileAlreadyExists exception
<nb> public class FrameBuffer implements Disposable { COMMENT public void begin ( ) { Gdx . graphics . getGL20 ( ) . glBindFramebuffer ( GL20 . GL_FRAMEBUFFER , framebufferHandle ) ; + setFrameBufferViewport ( ) ; + } + + COMMENT + protected void setFrameBufferViewport ( ) { Gdx . graphics . getGL20 (...
Added finer control over viewport setting on begin end
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ItemUIRegistryImpl implements ItemUIRegistry { return SitemapFactory . eINSTANCE . createText ( ) ; } if ( itemType . equ...
enable switch support for default slider widget
<nb> public class AccessibilityNodeInfo implements Parcelable { return STRING0 ; case ACTION_SET_SELECTION : return STRING1 ; + case ACTION_EXPAND : + return STRING2 ; + case ACTION_COLLAPSE : + return STRING3 ; + case ACTION_DISMISS : + return STRING4 ; + case ACTION_SET_TEXT : + return STRING5 ;...
Add missing actions to getActionSymbolicName
<nb> public class DeskShareApplet extends JApplet implements ClientListener { client = new DeskshareClient . NewBuilder ( ) . host ( hostValue ) . port ( portValue ) . room ( roomValue ) . captureWidth ( cWidthValue ) . captureHeight ( cHeightValue ) . scaleWidth ( sWidthValue ) . scaleHeight ( sHeightValue ) -...
try to make the applet run
<nb> final class FragmentManagerImpl extends FragmentManager { if ( ! fragment . mHidden ) { fragment . mHidden = true ; if ( fragment . mView != null ) { - Animator anim = loadAnimator ( fragment , transition , true , + Animator anim = loadAnimator ( fragment , transition , false , transitionStyle ) ; if...
Fix incorrect fragment animation used for hiding fragments
<nb> public final class Constant { public static URL LOW_FLAG_IMAGE_URL = Constant . class . getResource ( STRING0 ) ; SINGLE public static URL MED_FLAG_IMAGE_URL = Constant . class . getResource ( STRING1 ) ; SINGLE public static URL HIGH_FLAG_IMAGE_URL = Constant . class . getResource ( STRING2 ) ; SINGLE + p...
Sites panel shows broken URLs added a blank image to fix redrawing issue
<nb> public class AntBuildTargetImpl implements AntBuildTargetBase { } public OpenFileDescriptor getOpenFileDescriptor ( ) { - final VirtualFile vFile = myModel . getBuildFile ( ) . getVirtualFile ( ) ; - return ( vFile == null ) ? null : new OpenFileDescriptor ( myModel . getBuildFile ( ) . getProject ( ) , ...
fixing jump to source in case of imported and included targets
<nb> public abstract class AbstractBulkByScrollRequest < Self extends AbstractBulkByScr COMMENT COMMENT - COMMENT + COMMENT COMMENT - private TimeValue retryBackoffInitialTime = timeValueMillis ( NUMBER0 ) ; + private TimeValue retryBackoffInitialTime = timeValueMillis ( NUMBER1 ) ; COMMENT COMMEN...
Rework retries in reindex
<nb> public class DescriptorRenderer implements Renderer < DeclarationDescriptor > { private void renderModality ( Modality modality , StringBuilder builder ) { switch ( modality ) { case FINAL : - SINGLE + builder . append ( STRING0 ) ; break ; case OPEN : builder . append ( STRING1 ) ;
Restored final keyword in DescriptorRenderer
<nb> import NAMESPACE ; COMMENT COMMENT public class BlockFromToEvent extends BlockEvent { - protected BlockFace face ; + protected Block from ; + protected BlockFace face ; public BlockFromToEvent ( final Event . Type type , final Block block , final BlockFace face ) { super ( type , block ) ; this...
Changed it so we store both the block and the face for speed
<nb> public class VimPlugin implements ApplicationComponent , PersistentStateComponent } } - private void notify ( @ notnull String content , @ notnull NotificationType type ) { - final Notification notification = new Notification ( VimPlugin . IDEAVIM_NOTIFICATION_ID , - VimPlugin . IDEAVIM_NOTIFICATION_TI...
Removed unused method
<nb> public class FreeFlowContainer extends AbsLayoutContainer { COMMENT COMMENT COMMENT - private void computeViewPort ( FreeFlowLayout newLayout ) { + protected void computeViewPort ( FreeFlowLayout newLayout ) { if ( mLayout == null || frames == null || frames . size ( ) == NUMBER0 ) { viewPortX = NUMB...
Changed a private method to protected to allow classes to extend Container and do their own viewport magic
<nb> public class PartitionRuntimeState implements DataSerializable { Integer knownIndex = addressIndexes . get ( address ) ; if ( knownIndex == null && index == NUMBER0 ) { - unmatchAddresses . add ( address + STRING0 + partition ) ; + unmatchAddresses . add ( address + STRING1 + partition ) ; } if ( kno...
Improved logging when unknown endpoints found in partition table
<nb> public class DeflectorInformation { shard . put ( STRING0 , ss . getShardRouting ( ) . unassigned ( ) ) ; shard . put ( STRING1 , ss . getShardRouting ( ) . relocating ( ) ) ; shard . put ( STRING2 , graylogServer . getIndexer ( ) . nodeIdToName ( ss . getShardRouting ( ) . relocatingNodeId ( ) ) ) ; + +...
fix bug in shard information collection
<nb> public class ErrorCheckerService { JavaCore . COMPILER_PB_UNUSED_IMPORT , JavaCore . COMPILER_PB_MISSING_SERIAL_VERSION , JavaCore . COMPILER_PB_RAW_TYPE_REFERENCE , + JavaCore . COMPILER_PB_REDUNDANT_TYPE_ARGUMENTS , JavaCore . COMPILER_PB_UNCHECKED_TYPE_OPERATION } ; <nb> public class ErrorChecke...
ANTLR does not support diamonds ignore
<nb> public class NonBlockingOpDeDupProc implements Transform { COMMENT COMMENT private void fixContextReferences ( SelectOperator cSEL , SelectOperator pSEL ) { - Collection < QBJoinTree > qbJoinTrees = pctx . getJoinContext ( ) . values ( ) ; + Collection < QBJoinTree > qbJoinTrees = new ArrayList < QBJoinT...
Fix child operator references after NonBlockingOpDeDupProc II Szehon via Xuefu
<nb> public class ConsoleInput extends LifecycleAdapter COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public void add ( String name , Command command )
Fix broken link in JavaDoc
<nb> public class DeadCodeInspection extends FilteringInspectionTool { public void runInspection ( AnalysisScope scope , final InspectionManager manager ) { getRefManager ( ) . iterate ( new RefJavaVisitor ( ) { @ override public void visitElement ( final RefEntity refEntity ) { - if ( refEntity instanceof RefE...
suppress warnings entry points
<nb> public class LdapAuthenticationHandler extends AbstractUsernamePasswordAuthentic if ( AuthenticationResultCode . DN_RESOLUTION_FAILURE == response . getAuthenticationResultCode ( ) ) { throw new AccountNotFoundException ( upc . getUsername ( ) + STRING0 ) ; } - throw new FailedLoginException ( STRING1 + re...
removed ldap response message from the exception
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class AbstractExpandableItemsHandler < KeyType , ComponentType exte @ override public Dimension getPreferredSize ( ) {...
expandable item has extra space under Retina Oracle JDK
<nb> public class ChatPanel protected ChatConferenceCallDialog chatConferencesDialog = null ; COMMENT + COMMENT + COMMENT + private static final String USE_ADDITIONAL_NUMBERS_PROP + = STRING0 ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class ChatPanel UIPhoneUtil contactPhoneUtil = U...
Adds property to enable sending sms to all numbers
<nb> static class FnMethod { Var . pushThreadBindings ( RT . map ( LOOP_LABEL , loopLabel ) ) ; body . emit ( C . RETURN , fn , gen ) ; Label end = gen . mark ( ) ; + gen . visitLocalVariable ( STRING0 , STRING1 , null , loopLabel , end , NUMBER0 ) ; for ( ISeq lbs = argLocals . seq ( ) ; lbs != null ; lbs = ...
added local entry for this
<nb> public abstract class Packet { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public abstract class Packet { ...
Allows IQ packets to include extensions
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; public enum RuleTagType {
Fix missing license header
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class XFrameOptionScanner extends PluginPassiveScanner {
removed unused packages
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class RebalanceDataSet extends H2O . H2OCountedCompleter { public static ...
Turn off verbose logging for RebalanceDataSet
<nb> public class DeepLearning extends Job . ValidatedJob { final int chunks = NUMBER0 * cores ; if ( force_load_balance && chunks < fr . numRows ( ) ) { SINGLE - return rebalanceDataset ( Key . make ( fr . _key . toString ( ) + STRING0 ) , fr , chunks ) ; + Key newKey = fr . _key != null ? Key . make ( fr . ...
Fix NPE in rebalance call
<nb> public class AnalyticsListener implements IApiListener recordTransition ( transitionKey , transition . getRequestedTransitionTime ( ) , event , prevSubscription , nextSubscription ) ; } - private void recordTransition ( final String key , final DateTime requestedDateTime , final BusinessSubscriptionEvent e...
make recordTransition public in AnalyticsListener
<nb> COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT + COMMENT COMMENT package NAMESPACE ; <nb> public class GELFProcessor { json = objectMapper . readTree ( message ) ; } catch ( Exception e ) { LOG . error ( STRING0 , e ) ; - LOG . debug ( STRING1 , message ) ; json = null ; }
Catching exception that is thrown when invalid input comes in via GELF processor
<nb> public class JniGenSharedLibraryLoader { } private InputStream getFromJar ( String jarFile , String sharedLibrary ) throws IOException { - SINGLE - @ suppresswarnings ( STRING0 ) ZipFile file = new ZipFile ( nativesJar ) ; ZipEntry entry = file . getEntry ( sharedLibrary ) ; return file . getInputS...
Revert Ignore false warning
<nb> public class RouteResource extends CamelChildResourceSupport { DefaultCamelContext defaultCamelContext = ( DefaultCamelContext ) getCamelContext ( ) ; SINGLE defaultCamelContext . stopRoute ( id ) ; - defaultCamelContext . removeRouteDefinition ( id ) ; + defaultCamelContext . removeRoute ( id ) ; SI...
Fixed compiler error
<nb> public class ClientConfig { COMMENT COMMENT public ClientConfig setMaxTotalConnections ( int maxTotalConnections ) { - if ( maxConnectionsPerNode <= NUMBER0 ) + if ( maxTotalConnections <= NUMBER0 ) throw new IllegalArgumentException ( STRING0 ) ; this . maxTotalConnections = maxTotalConnections ; ...
Fixed one bug in ClientConfig and copied over the missing shutdown logic to StorageService
<nb> public abstract class AbstractChannel implements Channel { COMMENT @ override public String toString ( ) { - if ( strVal != null ) { + boolean connected = isConnected ( ) ; + if ( connected && strVal != null ) { return strVal ; } <nb> public abstract class AbstractChannel implements Channel { ...
Fixed a problem where AbstractChannel toString returns dirty cache value
<nb> public class Options implements Serializable { COMMENT public TestOptions newTestOptions ( ) { - return newTestOptions ( ) ; + return new TestOptions ( ) ; }
Oops typo caused infinite loop
<nb> public abstract class Dispatcher { public MockResponse peek ( ) { return new MockResponse ( ) . setSocketPolicy ( SocketPolicy . KEEP_OPEN ) ; } - - COMMENT - protected final SocketPolicy peekSocketPolicy ( ) { - throw new UnsupportedOperationException ( STRING0 ) ; - } }
Remove long deprecated peek API
<nb> public class JavaModule implements NamedElement . WithOptionalName { return null ; } + public Object unwrap ( ) { + return module ; + } + @ override public boolean equals ( Object object ) { if ( this == object ) return true ;
Add unwrap method for Java module
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La return ( value ( ) == null ) ? STRING0 : value ( ) ; } + public static boolean DISPLAY_SCORES = true ; + COMMENT COMMENT COMMENT <nb> public abstract class Tree extends AbstractCollection < Tree > implements Labe...
NPLMLanguageModelTest expects scores in log base
<nb> public class NavigatePointActivity extends Activity { @ override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; - SINGLE - LatLon loc = MapActivity . getMapLocation ( ) ; + LatLon loc = OsmandSettings . getOsmandSettings ( this ) . getLastKnownMapLocat...
backed out previous commit did not come up
<nb> public abstract class MixinEntityPlayerMP extends EntityPlayer implements Comman } public String playermp$getName ( ) { - return getName ( ) ; + return getGameProfile ( ) . getName ( ) ; + } + + public boolean playermp$isOnline ( ) { + return true ; + } + + public Optional < Player > player...
Fix infinite loop in getName when used in deobfuscated environment
<nb> public abstract class MouseDragHandler { onDrag ( event , state_ ) ; lastCoordinates_ = MouseCoordinates . fromEvent ( event ) ; + + SINGLE + SINGLE + event . getNativeEvent ( ) . stopPropagation ( ) ; + event . getNativeEvent ( ) . preventDefault ( ) ; } private void endDragImpl ( )
suppress move event when drag initiated
<nb> public class SecondLevelCacheTestCase { DataSource ds = rawLookup ( STRING0 , DataSource . class ) ; Connection conn = ds . getConnection ( ) ; - int deleted = conn . prepareStatement ( STRING1 ) . executeUpdate ( ) ; - - SINGLE - assertTrue ( STRING2 + deleted , deleted > NUMBER0 ) ; + try { + i...
Fix connection leak in testcase
<nb> public abstract class PageCacheTest < T extends PageCache > cache . unmap ( file ) ; } - @ test ( timeout = NUMBER0 ) + @ test ( timeout = NUMBER1 ) public void readsAndWritesMustBeMutuallyConsistent ( ) throws Exception { SINGLE
Increase the timeout for the slowest PageCache test
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean SINGLE clearEphemeralSnapshots ( directories ) ; - logger . trace ( STRING0 , metadata . cfName ) ; + logger . trace ( STRING1 , metadata . cfName ) ; LifecycleTransaction . removeUnfinishedLeftovers ( metadata ) ; logger . trace ( ST...
add missing logger parm marker
<nb> public class CookieDecoderTest { } @ test + public void testDecodingValuesWithCommasAndEquals ( ) { + String src = STRING0 ; + Set < Cookie > cookies = CookieDecoder . decode ( src ) ; + Iterator < Cookie > i = cookies . iterator ( ) ; + Cookie c = i . next ( ) ; + assertEquals ( STRING1 , c . ge...
Add more cookie decoding test case
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT
Fix a CS error of camel itest
<nb> public final class NetworkOs { addr = addr - > ifa_next ; } } - freeifaddrs ( interfaces ) ; if ( ! sinAddress ) { + freeifaddrs ( interfaces ) ; LibcoreIoPosix_throwErrnoExceptionWithNSString_withInt_ ( msg , originalError ) ; } IOSByteArray * byteArray = [ IOSByteArray arrayWithBytes : ( jbyte ...
Fixed use after free error looking up IP addresses
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAM...
Delete stale imports in ExpectedValueCheckingStore
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public final class Configuration implements Parcelable , Comparable < Configuration > { COMMENT
add a little info to Configuration class description
<nb> public class PhoneStatusBar extends StatusBar { } void updateExpandedSize ( ) { - if ( mExpandedDialog != null ) { + if ( mExpandedDialog != null && mExpandedParams != null ) { mExpandedParams . width = mDisplaySize . x ; mExpandedParams . height = getExpandedHeight ( mDisplaySize . y ) ; if ( ! mE...
Fix NPE on first ever boot if display has rotated
<nb> public abstract class VisualOperatorActionHandler extends EditorActionHandlerBas if ( cmd == null || ( ( cmd . getFlags ( ) & Command . FLAG_MULTIKEY_UNDO ) == NUMBER0 && ( cmd . getFlags ( ) & Command . FLAG_EXPECT_MORE ) == NUMBER0 ) ) { logger . debug ( STRING0 ) ; - if ( cmd == null || ( cmd . getFlags...
Removed check for unused FLAG_KEEP_VISUAL flag
<nb> public interface Value < T > extends Iterable < T > { COMMENT COMMENT Match < ? extends Value < T > > match ( ) ; + SINGLE + SINGLE + SINGLE + SINGLE COMMENT COMMENT
Added API TODO
<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler StompHeaderAccessor headerAccessor = MessageHeaderAccessor . getAccessor ( message , StompHeaderAccessor . class ) ; + headerAccessor . setSessionId ( this . sessionId ) ; + if ( headerAccessor . isHeartbeat ( ) ) { logg...
Log STOMP ERROR frames at error level
<nb> public final class ActivityManagerService extends ActivityManagerNative int debugFlags = NUMBER0 ; if ( ( app . info . flags & ApplicationInfo . FLAG_DEBUGGABLE ) != NUMBER0 ) { debugFlags |= Zygote . DEBUG_ENABLE_DEBUGGER ; + SINGLE + SINGLE + debugFlags |= Zygote . DEBUG_ENABLE_CHECKJNI ; } SINGL...
Make debuggable true imply CheckJNI
<nb> public class AndroidResourceFilterIntegrationTest { resolver , Optional . < Path > absent ( ) ) . getAaptExecutable ( ) ; String buildToolsVersion = aapt . getParent ( ) . getFileName ( ) . toString ( ) ; - isBuildToolsNew = new VersionStringComparator ( ) . compare ( buildToolsVersion , STRING0 ) != - NUM...
Fix comparison in a failing test
<nb> public class ProxyPool { if ( ! new File ( proxyFilePath ) . exists ( ) ) { setFilePath ( ) ; } - setFilePath ( ) ; readProxyList ( ) ; timer . schedule ( saveProxyTask , NUMBER0 , saveProxyInterval ) ; }
remove duplicate setPath in ProxyPool
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ executiontestlisteners ( listeners = { En...
Test Fixes Use right test listener
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public @ interface ConfigurationProperties { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarify precedence of property sources
<nb> 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 NAMESPACE ; import NA...
GUI Make context menu language direction aware
<nb> public class SQLUpdateTest { database . command ( updatecommand ) . execute ( STRING0 , STRING1 ) ; checkUpdatedDoc ( database , STRING2 , STRING1 , STRING0 ) ; - COMMENT updatecommand = new OCommandSQL ( STRING3 ) ; database . command ( updatecommand ) . execute ( STRING4 , STRING2 ) ; checkUpdatedD...
removed old comment
<nb> public interface AtmosphereServletProcessor extends void init ( ServletConfig sc ) throws ServletException ; - COMMENT - COMMENT - COMMENT - void destroy ( ) ; - }
Remove unneeded method
<nb> final class ActivityStack { } else if ( isActivityOverHome ( r ) ) { if ( DEBUG_VISBILITY ) Slog . v ( TAG , STRING0 + r ) ; showHomeBehindStack = true ; - behindFullscreen = ! isHomeStack ( ) ; + behindFullscreen = ! isHomeStack ( ) && r . frontOfTask && task . mOnTopOfHome ; } } else { if ( DEBUG...
Fix visibility of multiple non fullscreen activities
<nb> public abstract class AbstractTransferManager implements TransferManager { if ( repoExists ( ) ) { if ( repoIsValid ( ) ) { - result = StorageTestResult . REPO_EXISTS_BUT_INVALID ; + result = StorageTestResult . REPO_EXISTS ; } else { - result = StorageTestResult . REPO_EXISTS ; + result = Storag...
Fix TM test repo validity test test is still odd
<nb> public class Executor implements FactoryOperations { } COMMENT - COMMENT - COMMENT - final static Executor getStaticFactory ( SQLDialect dialect ) { - return DEFAULT_INSTANCES [ dialect . ordinal ( ) ] ; - } - - COMMENT COMMENT COMMENT final static Executor getNewFactory ( Configuration c...
Removed unused code
<nb> public class SentimentCostAndGradient extends AbstractCachingDiffFunction { return Wt_df ; } - void forwardPropagateTree ( Tree tree ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void forwardPropagateTree ( Tree tree ) { SimpleM...
Add some documentation and make forwardPropagateTree public
<nb> public final class BuddyAllocator implements EvictionAwareAllocator , BuddyAlloca File rf = File . createTempFile ( STRING0 , STRING1 , cacheDir . toFile ( ) ) ; RandomAccessFile rwf = new RandomAccessFile ( rf , STRING2 ) ; rwf . setLength ( arenaSize ) ; SINGLE - ByteBuffer rwbuf = rwf . getChannel ( ) ....
Avoid private pages in the SSD cache Gopal V reviewed by Sergey Shelukhin
<nb> public class InstructionList implements Iterable < Instruction > + STRING0 + STRING1 + STRING2 - + STRING3 + formatter . format ( startTimeMillis ) + STRING4 + + STRING3 + tzHack ( formatter . format ( startTimeMillis ) ) + STRING4 + STRING5 ; StringBuilder track = new StringBuilder ( header ) ; tr...
validate gpx again
<nb> public class CompletionAutoPopupHandler extends TypedHandlerDelegate { public void run ( ) { if ( project . isDisposed ( ) || ! file . isValid ( ) ) return ; if ( editor . isDisposed ( ) || isMainEditor && FileEditorManager . getInstance ( project ) . getSelectedTextEditor ( ) != editor ) return ; + if ( A...
don t start autopopup if we are already inside a write action e g someone showed a dialog under it
<nb> public class CategoryTest { assertThat ( new Category ( STRING0 ) ) . isEqualTo ( new Category ( STRING1 ) ) ; SINGLE - assertThat ( new Category ( STRING0 ) ) . isNotEqualTo ( new SubCategory ( STRING2 ) ) ; + assertThat ( new Category ( STRING0 ) ) . isNotEqualTo ( STRING0 ) ; } @ test
Improve code coverage
<nb> public abstract class AbstractModel implements Model , Serializable { SINGLE public double scoreProbability ( float score ) { + return scoreProbability ( score , offset , slope ) ; + } + + public static double scoreProbability ( float score , double offset , double slope ) { return FLOAT0 / ( FLOAT...
add static function scoreProbability so that scoring use different offset and slope
<nb> public class SlidingLayer extends FrameLayout { scrollTo ( x , y ) ; - if ( mOnScrollListener == null && mLayerTransformer == null ) return ; + if ( mOnScrollListener == null && mLayerTransformer == null ) { + return ; + } int scroll ; if ( allowedDirection ( ) == VERTICAL ) {
Better to avoid one line returns to be consistent
<nb> public final class TagService { TodorooCursor < Metadata > existing = metadataDao . query ( Query . select ( Metadata . PROPERTIES ) . where ( Criterion . and ( MetadataCriteria . withKey ( TagMetadata . KEY ) , TagMetadata . TASK_UUID . eq ( task . getValue ( Task . REMOTE_ID ) ) , - TagMetadata . TAG_UUI...
Check tag deletion status when creating new links
<nb> public class ConnectTraktTask extends AsyncTask < String , Void , Integer > { editor . commit ( ) ; - SINGLE - SgSyncAdapter . requestSyncImmediate ( mContext , SgSyncAdapter . SyncType . DELTA , NUMBER0 , true ) ; - return Result . SUCCESS ; } @ override protected void onPostExecute ( Intege...
Call sync request with toasts on UI thread idiot
<nb> public class ResultsManager { public ActionResult register ( ActionResult result ) { String resultType = result . getResultType ( ) ; + boolean existingResult = false ; + if ( resultType != null ) { ActionResult existing = lookup ( resultType ) ; if ( existing != null ) { <nb> public class Result...
Prevent double initialization of results
<nb> class IonDrawable extends Drawable { int visibleRight = Math . min ( bounds . width ( ) , clip . right ) ; int visibleTop = Math . max ( NUMBER0 , clip . top ) ; int visibleBottom = Math . min ( bounds . height ( ) , clip . bottom ) ; - int level = ( int ) Math . ceil ( maxLevel ) ; + int level = ( int )...
Tweak deepZoom to not use pixel perfect tiles so aggressively
<nb> public class MarkupBuilder extends BuilderSupport { this . out = out ; } + protected IndentPrinter getPrinter ( ) { + return this . out ; + } + protected void setParent ( Object parent , Object child ) { }
Added a protected method to retrieve the indent printer for reuse in subclasses of MarkupBuilder
<nb> public class FileChooserDialogImpl extends DialogWrapper implements FileChooserD @ override public void choose ( @ nullable VirtualFile toSelect , @ notnull Consumer < List < VirtualFile > > callback ) { prepareAndShow ( toSelect , myProject ) ; - callback . consume ( Arrays . asList ( myChosenFiles ) ) ; ...
Do not invoke callback with an empty list
<nb> public class Place implements ComparableObject { public static ActionCallback goFurther ( Object object , Place place , final boolean requestFocus ) { if ( object instanceof Navigator ) { - return ( ( Navigator ) object ) . navigateTo ( place , false ) ; + return ( ( Navigator ) object ) . navigateTo ( p...
please respect requestFocus parameter
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> public class DelayedActionSystem implements UpdateSubscriberSystem { @ receivee...
Removed the doubled remove from set call
<nb> public abstract class OutOfMemoryHandler { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved OutOfMemoryHandler javadoc
<nb> package NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public interface Mapping { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT void apply ( Configuration configuration ) ; } <nb> package NAMESPACE ; import NAMESPACE ; COMMENT + CO...
Add documentation for Mapping classes
<nb> public class CompileStack implements Opcodes { COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT protected void init ( VariableScope el , Parameter [ ] parameters , MethodVisitor mv , ClassNode cn ) {
Fix typo in comments
<nb> public class ReaderPostDetailFragment extends SherlockFragment { mListView = ( ListView ) view . findViewById ( android . R . id . list ) ; setupListView ( mListView ) ; - SINGLE - SINGLE - if ( isFullScreenSupported ( ) ) { - ReaderFullScreenUtils . addListViewHeader ( container . getContext ( ) , m...
Removed listview transparent header from reader post detail
<nb> public final class Main { private static final class ParsedOptions { ServerEnvironment environment ; List < String > clientArguments ; - String hostUrl = STRING0 ; + String hostUrl = STRING1 ; } }
Change default appclient port
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultArtifactRepositoryContainer extends DefaultNamedDomainObject public List < DependencyResolver > getResolvers ( ) { L...
Add toString for MethodMetaInfo
<nb> public class LogConfig { SINGLE SINGLE Files . createDirectories ( BuckConstant . LOG_PATH ) ; - deleteOldLogFiles ( ) ; + + try { + deleteOldLogFiles ( ) ; + } catch ( IOException e ) { + System . err . format ( + STRING0 , + e . getMessage ( ) ) ; + } ImmutableList . Builder < InputSt...
Ignore IOException when deleting old log files LogConfig setupLogging
<nb> public class VimEmulationConfigurable implements Configurable { final JScrollPane scrollPane = new JBScrollPane ( myShortcutConflictsTable ) ; scrollPane . setBorder ( new LineBorder ( UIUtil . getBorderColor ( ) ) ) ; final JPanel conflictsPanel = new JPanel ( new BorderLayout ( ) ) ; - conflictsPanel . s...
Mentioned the active keymap in the shortcut conflicts title
<nb> public class AppBarLayout extends LinearLayout { ViewCompat . setFitsSystemWindows ( child , true ) ; } - final int height = parent . getHeight ( ) - appBar . getMeasuredHeight ( ) + int availableHeight = MeasureSpec . getSize ( parentHeightMeasureSpec ) ; + if ( availableHeight == NUMBER0 ) { + SING...
Allow AppBarLayout to handle size changes
<nb> public class NotificationsUtils { imagePlaceholder = STRING0 ; } + SINGLE + int tempIndex = index + imagePlaceholder . length ( ) - NUMBER0 ; + if ( spannableStringBuilder . getSpans ( tempIndex , + tempIndex , ImageSpan . class ) . length > NUMBER1 ) { + imagePlaceholder = STRING1 + imagePlacehold...
Add a newline to accommodate additional images in the content
<nb> public class UpdateTask extends AsyncTask < Void , Integer , Integer > { TheTVDB . onRenewFTSTable ( mAppContext ) ; } - SINGLE - SINGLE - if ( updateCount . get ( ) == NUMBER0 ) { - SINGLE - final int traktResult = getTraktActivity ( prefs , maxProgress , currentTime , - isAutoUpdateWlanOnly ) ;...
Revert Don t get trakt activity if we just update one show
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AaptStepTest { ImmutableList < String > command = aaptStep . getShellCommandInternal ( mockContext ) ; assertTrue ( com...
fixing the test to use platform specific path
<nb> public class ContactList COMMENT public void protoContactAdded ( ProtoContactEvent evt ) { - this . modifyContact ( evt . getNewParent ( ) ) ; - Contact contact = evt . getProtoContact ( ) ; - MetaContact metaContact = contactList . findMetaContactByContact ( contact ) ; + MetaContact parentMetaCon...
obtain the MetaContact from the event and not by searching it in the contact list
<nb> public class DevicePolicyManager { = STRING0 ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static final int FLAG_PARENT_CAN_ACCESS_MANAGED = NUMBER0 ; COMMENT - COMMENT - COMMENT - COMMENT - COM...
Make documentation for cross profile intent filters clearer
<nb> public class JpaVetRepositoryImpl implements VetRepository { @ cacheable ( value = STRING0 ) @ suppresswarnings ( STRING1 ) public Collection < Vet > findAll ( ) { - return this . em . createQuery ( STRING2 ) . getResultList ( ) ; + return this . em . createQuery ( STRING3 ) . getResultList ( ) ; } ...
fixing JPA query for Vets
<nb> import static NAMESPACE ; public class ChannelConnectionTest extends TestWithWallet { private static final int CLIENT_MAJOR_VERSION = NUMBER0 ; private Wallet serverWallet ; - private BlockChain serverChain ; private AtomicBoolean fail ; private BlockingQueue < Transaction > broadcasts ; private Tran...
Delete unused field
<nb> public class SQLiteLibraryLoaderTest { SQLiteLibraryLoader . load ( ) ; File extractedPath = SQLiteLibraryLoader . getNativeLibraryPath ( ) ; assertThat ( extractedPath ) . exists ( ) ; + + final long resetTime = NUMBER0 ; + assertThat ( extractedPath . setLastModified ( resetTime ) ) . describedAs ( S...
remove sleep from test
<nb> public class IpnbFilePanel extends JPanel implements Scrollable , DataProvider { public void run ( ) { try { myIpnbFile = IpnbParser . parseIpnbFile ( vFile ) ; + if ( myIpnbFile . getCells ( ) . isEmpty ( ) ) { + final IpnbCodeCell cell = new IpnbCodeCell ( STRING0 , new String [ ] { STRING1 } , null , ...
add first cell if ipynb file is empty