File size: 32,569 Bytes
58725b9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
{"diff": "<nb> import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ServerBootstrap extends AbstractBootstrap < ServerBootstrap > { \n + public final class ServerBootstrap extends AbstractBootstrap < ServerBootstrap > { \n \n private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ServerBootstrap . class ) ;", "msg_token": "Make ServerBootstrap final"}
{"diff": "<nb> public class CommentDetailFragment extends Fragment implements NotificationFragm \n \n final TextView txtPostTitle = ( TextView ) getView ( ) . findViewById ( R . id . text_post_title ) ; \n boolean postExists = ReaderPostTable . postExists ( blogId , postId ) ; \n + \n + SINGLE \n + SINGLE \n boolean isDotComOrJetpack = WordPress . wpDB . isRemoteBlogIdDotComOrJetpack ( mRemoteBlogId ) ; \n + boolean canRequestPost = isDotComOrJetpack && WordPress . hasValidWPComCredentials ( getActivity ( ) ) ; \n \n final String title ; \n final boolean hasTitle ; \n <nb> public class CommentDetailFragment extends Fragment implements NotificationFragm \n hasTitle = false ; \n } \n if ( hasTitle ) { \n - setPostTitle ( txtPostTitle , title , isDotComOrJetpack ) ; \n + setPostTitle ( txtPostTitle , title , canRequestPost ) ; \n } else { \n txtPostTitle . setText ( postExists ? R . string . untitled : R . string . loading ) ; \n } \n \n SINGLE \n SINGLE \n - if ( isDotComOrJetpack ) { \n + if ( canRequestPost ) { \n SINGLE \n SINGLE \n if ( ! postExists ) {", "msg_token": "Comment detail now only requests the post associated with the comment if valid"}
{"diff": "<nb> public final class SocksCmdResponse extends SocksResponse { \n } \n host = IDN . toASCII ( host ) ; \n } \n - if ( port <= NUMBER0 && port >= NUMBER1 ) { \n - throw new IllegalArgumentException ( port + STRING0 ) ; \n + if ( port < NUMBER0 || port > NUMBER2 ) { \n + throw new IllegalArgumentException ( port + STRING1 ) ; \n } \n this . cmdStatus = cmdStatus ; \n this . addressType = addressType ;", "msg_token": "Correctly handle SocksCmdResponse"}
{"diff": "<nb> public class PDFRenderTargetBuilder implements RenderTargetBuilder { \n double scale = ( float ) ( ratioWidth < ratioHeight ? ratioWidth : ratioHeight ) ; \n double translateX = ( marginLeft + pageWidth / FLOAT0 ) / scale ; \n double translateY = ( marginBottom + pageHeight / FLOAT0 ) / scale ; \n - cb . transform ( AffineTransform . getTranslateInstance ( - centerX * scale , - centerY * scale ) ) ; \n + cb . transform ( AffineTransform . getTranslateInstance ( - centerX * scale , centerY * scale ) ) ; \n cb . transform ( AffineTransform . getScaleInstance ( scale , scale ) ) ; \n cb . transform ( AffineTransform . getTranslateInstance ( translateX , translateY ) ) ; \n \n <nb> public class PreviewControllerImpl implements PreviewController { \n bottomRightY = y ; \n } \n } \n + \n float marginWidth = ( bottomRightX - topLeftX ) * ( margin / NUMBER0 f ) ; \n float marginHeight = ( bottomRightY - topLeftY ) * ( margin / NUMBER0 f ) ; \n topLeftX -= marginWidth ;", "msg_token": "Fix PDF export transformation on y"}
{"diff": "<nb> \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fixed the CS error of camel cxf transport"}
{"diff": "<nb> \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - public final class IdAllocation implements Serializable \n + public final class IdAllocation \n { \n - private static final long serialVersionUID = NUMBER0 ; \n - \n private final long [ ] ids ; \n private final long highestIdInUse ; \n private final long defragCount ; \n <nb> public enum LockStatus \n { \n OK_LOCKED , \n NOT_LOCKED , \n - DEAD_LOCKED , \n + DEAD_LOCKED \n + { \n + @ override \n + public boolean hasMessage ( ) \n + { \n + return true ; \n + } \n + } ; \n + \n + public boolean hasMessage ( ) \n + { \n + return false ; \n + } \n }", "msg_token": "Added a hasMessage to LockStatus"}
{"diff": "<nb> \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n <nb> public abstract class AbstractSimpleTranslogTests extends ElasticsearchTestCase \n } \n \n @ test \n + @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) \n public void testTranslogChecksums ( ) throws Exception { \n List < Translog . Location > locations = newArrayList ( ) ;", "msg_token": "TEST add AwaitsFix for testTranslogChecksums since it may cause OOME"}
{"diff": "<nb> public class AnalyzeStacktraceUtil { \n public static void printStacktrace ( final ConsoleView consoleView , final String unscrambledTrace ) { \n consoleView . clear ( ) ; \n consoleView . print ( unscrambledTrace + STRING0 , ConsoleViewContentType . ERROR_OUTPUT ) ; \n - if ( consoleView instanceof ConsoleViewImpl ) { \n - ( ( ConsoleViewImpl ) consoleView ) . foldImmediately ( ) ; \n - } \n consoleView . scrollTo ( NUMBER0 ) ; \n }", "msg_token": "do not fold immediately as console now works async"}
{"diff": "<nb> public class NNModel extends Model { \n else err . valid_mse = validErr ; \n } \n \n + SINGLE \n + if ( errors . length > NUMBER0 ) { \n + if ( errors [ errors . length - NUMBER0 ] . trainAUC != null ) errors [ errors . length - NUMBER0 ] . trainAUC . thresholds = null ; \n + if ( errors [ errors . length - NUMBER0 ] . validAUC != null ) errors [ errors . length - NUMBER0 ] . validAUC . thresholds = null ; \n + } \n + \n SINGLE \n if ( err . train_confusion_matrix . cm != null \n && err . train_confusion_matrix . cm . length >= model_info ( ) . get_params ( ) . max_confusion_matrix_size ) {", "msg_token": "Only keep that latest AUC thresholds in the NN output JSON to keep it small"}
{"diff": "<nb> public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( ) { \n <nb> public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( Ticker ticker ) { \n <nb> public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( ) { \n <nb> public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( Ticker ticker ) {", "msg_token": "Give removal dates for Stopwatch ctors"}
{"diff": "<nb> public class PlainModuleTemplatesFactory implements ProjectTemplatesFactory { \n @ override \n public ProjectTemplate [ ] createTemplates ( final String group , WizardContext context ) { \n if ( OTHER_GROUP . equals ( group ) ) { \n - return context . isCreatingNewProject ( ) ? new ProjectTemplate [ ] { new PlainModuleTemplate ( new EmptyModuleBuilder ( ) { \n + if ( ! context . isCreatingNewProject ( ) ) { \n + return ProjectTemplate . EMPTY_ARRAY ; \n + } \n + return new ProjectTemplate [ ] { new PlainModuleTemplate ( new EmptyModuleBuilder ( ) { \n @ override \n public String getPresentableName ( ) { \n return STRING0 ; \n <nb> public class PlainModuleTemplatesFactory implements ProjectTemplatesFactory { \n public String getDescription ( ) { \n return STRING1 ; \n } \n - } ) } : ProjectTemplate . EMPTY_ARRAY ; \n + } ) } ; \n } \n ModuleBuilder [ ] builders = context . getAllBuilders ( ) ; \n return ContainerUtil . mapNotNull ( builders , new NullableFunction < ModuleBuilder , ProjectTemplate > ( ) {", "msg_token": "remove empty project from templates list"}
{"diff": "<nb> public class MatcherTest { \n @ datapoint \n public static Matcher < ? > ANY_FAILURE = hasFailureContaining ( STRING0 ) ; \n \n - SINGLE \n - \n @ datapoint \n public static PrintableResult TWO_FAILURES_ONE_CHEESE = new PrintableResult ( \n - Arrays . asList ( new Failure ( Description . EMPTY , new Error ( STRING0 ) ) , \n - new Failure ( Description . EMPTY , new Error ( STRING1 ) ) ) ) ; \n + Arrays . asList ( failure ( STRING0 ) , failure ( STRING1 ) ) ) ; \n \n @ theory \n public < T > void differentMatchersHaveDifferentDescriptions ( \n <nb> public class MatcherTest { \n assertThat ( matcher1 . toString ( ) , not ( matcher2 . toString ( ) ) ) ; \n } \n \n + private static Failure failure ( String string ) { \n + return new Failure ( Description . EMPTY , new Error ( string ) ) ; \n + } \n }", "msg_token": "Remove duplication in test logic"}
{"diff": "<nb> public class JSR356AsyncSupport extends Servlet30CometSupport { \n ServerContainer container = ( ServerContainer ) config . getServletContext ( ) . getAttribute ( ServerContainer . class . getName ( ) ) ; \n \n if ( container == null ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n } \n \n int pathLength = NUMBER0 ;", "msg_token": "Improve error message"}
{"diff": "<nb> class MyDraggableSwipeableItemAdapter \n } \n \n SINGLE \n - holder . setSwipeItemSlideAmount ( \n + holder . setSwipeItemHorizontalSlideAmount ( \n item . isPinned ( ) ? RecyclerViewSwipeManager . OUTSIDE_OF_THE_WINDOW_LEFT : NUMBER0 ) ; \n } \n \n <nb> class MyExpandableDraggableSwipeableItemAdapter \n } \n \n SINGLE \n - holder . setSwipeItemSlideAmount ( \n + holder . setSwipeItemHorizontalSlideAmount ( \n item . isPinned ( ) ? RecyclerViewSwipeManager . OUTSIDE_OF_THE_WINDOW_LEFT : NUMBER0 ) ; \n } \n \n <nb> class MyExpandableDraggableSwipeableItemAdapter \n } \n \n SINGLE \n - holder . setSwipeItemSlideAmount ( \n + holder . setSwipeItemHorizontalSlideAmount ( \n item . isPinned ( ) ? RecyclerViewSwipeManager . OUTSIDE_OF_THE_WINDOW_LEFT : NUMBER0 ) ; \n } \n \n <nb> class MyUnderSwipeableItemAdapter \n SINGLE \n holder . setMaxLeftSwipeAmount ( - FLOAT0 ) ; \n holder . setMaxRightSwipeAmount ( NUMBER0 ) ; \n - holder . setSwipeItemSlideAmount ( \n + holder . setSwipeItemHorizontalSlideAmount ( \n item . isPinned ( ) ? - FLOAT0 : NUMBER0 ) ; \n }", "msg_token": "Replace SwipableItemViewHolder setSwipeItemSlideAmount method with SwipeableItemViewHolder setSwipeItemHorizontalSlideAmount"}
{"diff": "<nb> public class SeriesGuideContract { \n String GENRES = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public class TimeTools { \n if ( releaseDateTime == null || releaseDateTime . length ( ) == NUMBER0 ) { \n return null ; \n } \n - DateTime dateTime = DATE_TIME_FORMATTER_UTC . parseDateTime ( releaseDateTime ) ; \n + \n + DateTime dateTime ; \n + \n + try { \n + dateTime = DATE_TIME_FORMATTER_UTC . parseDateTime ( releaseDateTime ) ; \n + } catch ( IllegalArgumentException ignored ) { \n + SINGLE \n + try { \n + SINGLE \n + dateTime = TVDB_DATE_FORMATTER . parseDateTime ( releaseDateTime ) ; \n + } catch ( IllegalArgumentException e ) { \n + return null ; \n + } \n + } \n + \n return new SimpleDateFormat ( STRING1 , Locale . getDefault ( ) ) . format ( dateTime . toDate ( ) ) ; \n }", "msg_token": "Support legacy show first release date strings"}
{"diff": "<nb> public abstract class AbstractPrologCommandPlayer implements CommandPlayer { \n private final int [ ] sortedVoiceVersions ; \n private AudioFocusHelper mAudioFocusHelper ; \n \n - private int streamType ; \n + protected int streamType ; \n \n protected AbstractPrologCommandPlayer ( Context ctx , OsmandSettings settings , String voiceProvider , String configFile , int [ ] sortedVoiceVersions ) \n throws CommandPlayerException \n <nb> public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen \n private MediaPlayer mediaPlayer ; \n SINGLE \n private List < String > filesToPlay = Collections . synchronizedList ( new ArrayList < String > ( ) ) ; \n - private int streamType ; \n \n \n public MediaCommandPlayerImpl ( Context ctx , OsmandSettings settings , String voiceProvider )", "msg_token": "Fix audio stream type"}
{"diff": "<nb> public class BuildToolsWebsitePanel extends BuildToolsPanel \n chkPreviewAfterBuilding_ . addStyleName ( RES . styles ( ) . previewWebsite ( ) ) ; \n add ( chkPreviewAfterBuilding_ ) ; \n \n - chkLivePreviewSite_ = checkBox ( STRING0 ) ; \n + chkLivePreviewSite_ = checkBox ( STRING1 ) ; \n chkLivePreviewSite_ . addStyleName ( RES . styles ( ) . previewWebsite ( ) ) ; \n add ( chkLivePreviewSite_ ) ; \n } \n <nb> public class RmdOutput implements RmdRenderStartedEvent . Handler , \n if ( ! file . getParentPathString ( ) . equals ( websiteDir ) ) \n reRenderPreview ( ) ; \n \n - SINGLE \n - else \n + SINGLE \n + else \n reRenderPreview ( file . getPath ( ) ) ; \n }", "msg_token": "tweak live preview comments label"}
{"diff": "<nb> public class CollapsingToolbarLayout extends FrameLayout { \n COMMENT \n COMMENT \n public void setCollapsedTitleGravity ( int gravity ) { \n - mCollapsingTextHelper . setExpandedTextGravity ( gravity ) ; \n + mCollapsingTextHelper . setCollapsedTextGravity ( gravity ) ; \n } \n \n COMMENT", "msg_token": "Fix CollapsingToolbarLayout setCollapsedTitleGravity"}
{"diff": "<nb> import NAMESPACE ; \n public final class BluetoothAdapter { \n private static final String TAG = STRING0 ; \n private static final boolean DBG = true ; \n + private static final boolean VDBG = false ; \n \n COMMENT \n COMMENT \n <nb> public final class BluetoothAdapter { \n if ( mService != null ) \n { \n int state = mService . getState ( ) ; \n - if ( DBG ) Log . d ( TAG , STRING1 + hashCode ( ) + STRING2 + state ) ; \n + if ( VDBG ) Log . d ( TAG , STRING1 + hashCode ( ) + STRING2 + state ) ; \n return state ; \n } \n SINGLE", "msg_token": "Turn off verbose debug message in BluetoothAdapter"}
{"diff": "<nb> public final class HiveWriteUtils \n return isWritableType ( listTypeInfo . getListElementTypeInfo ( ) ) ; \n case STRUCT : \n StructTypeInfo structTypeInfo = checkType ( typeInfo , StructTypeInfo . class , STRING0 ) ; \n - return structTypeInfo . getAllStructFieldTypeInfos ( ) . stream ( ) . allMatch ( HiveType : : isSupportedType ) ; \n + return structTypeInfo . getAllStructFieldTypeInfos ( ) . stream ( ) . allMatch ( HiveWriteUtils : : isWritableType ) ; \n } \n return false ; \n }", "msg_token": "Fix check for Hive writable structs"}
{"diff": "<nb> public abstract class AbstractJavaBuilder extends AbstractLibraryBuilder { \n COMMENT \n protected boolean debug = false ; \n \n - @ override \n - protected boolean keepFileDuringCleanup ( File file ) { \n - return false ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT \n <nb> public abstract class AbstractLibraryBuilder extends CommonJavaLibraryProcessor \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public abstract class AbstractLibraryBuilder extends CommonJavaLibraryProcessor \n } else if ( ! removeEverything && keepClassFilesDuringCleanup ( ) && \n file . getName ( ) . endsWith ( STRING0 ) ) { \n isEmpty = false ; \n - } else if ( ! removeEverything && keepFileDuringCleanup ( file ) ) { \n - isEmpty = false ; \n } else { \n file . delete ( ) ; \n } \n <nb> public abstract class AbstractLibraryBuilder extends CommonJavaLibraryProcessor \n return isEmpty ; \n } \n \n - protected abstract boolean keepFileDuringCleanup ( File file ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove the callback that allowed excluding files from deletion"}
{"diff": "<nb> public class TextPanel extends JLabel { \n myText = text ; \n } \n \n + public void setDisplayedMnemonic ( int key ) { \n + SINGLE \n + } \n + \n + public void setDisplayedMnemonicIndex ( int index ) throws IllegalArgumentException { \n + SINGLE \n + super . setDisplayedMnemonicIndex ( - NUMBER0 ) ; \n + } \n + \n public final Dimension getPreferredSize ( ) { \n int max = NUMBER1 ; \n for ( String possibleString : myPossibleStrings ) {", "msg_token": "ignore attempts to set mnemonics on status bar label"}
{"diff": "<nb> public abstract class ComponentManagerImpl extends UserDataHolderBase implements \n } \n \n public < T > T getComponent ( Class < T > interfaceClass ) { \n - assert ! myDisposed ; \n + assert ! myDisposed : STRING0 ; \n return getComponent ( interfaceClass , null ) ; \n }", "msg_token": "Added assertion message"}
{"diff": "<nb> public class ExactMatcher implements StreamRuleMatcher { \n \n @ override \n public boolean match ( Message msg , StreamRule rule ) { \n - String field = msg . getField ( rule . getField ( ) ) . toString ( ) ; \n + String field = ( String ) msg . getField ( rule . getField ( ) ) ; \n \n if ( field == null ) { \n return false ; \n <nb> public class RegexMatcher implements StreamRuleMatcher { \n \n @ override \n public boolean match ( Message msg , StreamRule rule ) { \n + if ( msg . getField ( rule . getField ( ) ) == null ) \n + return false ; \n return Pattern . compile ( rule . getValue ( ) , Pattern . DOTALL ) . matcher ( msg . getField ( rule . getField ( ) ) . toString ( ) ) . find ( ) ; \n }", "msg_token": "Preventing NullPointerExceptions in Matchers"}
{"diff": "<nb> public class DominantColorCalculator { \n COMMENT \n private int findPrimaryTextColor ( final ColorNode primary ) { \n SINGLE \n - for ( ColorNode color : mPalette ) { \n + for ( ColorNode color : mWeightedPalette ) { \n if ( ColorUtils . calculateContrast ( color , primary ) >= PRIMARY_TEXT_MIN_CONTRAST ) { \n return color . getRgb ( ) ; \n }", "msg_token": "Use weighted palette to calculate text color"}
{"diff": "<nb> \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n COMMENT \n <nb> \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added license header"}
{"diff": "<nb> public class DiffToChangeLog { \n STRING0 + \n STRING1 ; \n \n + SINGLE \n + sql += STRING2 + \n + STRING3 + \n + STRING4 ; \n + \n SINGLE \n sql += STRING5 + \n STRING6 +", "msg_token": "Improve sqlserver dependency query"}
{"diff": "<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha \n } \n if ( dead . size ( ) > NUMBER0 ) { \n builder . append ( STRING0 ) ; \n - toStringHelper ( builder , dead , chain , Transaction . SORT_TX_BY_HEIGHT ) ; \n + toStringHelper ( builder , dead , chain , Transaction . SORT_TX_BY_UPDATE_TIME ) ; \n } \n } \n if ( includeExtensions && extensions . size ( ) > NUMBER0 ) {", "msg_token": "Dead transaction does not contain confidence depth and should not fail when sorting"}
{"diff": "<nb> public class OsmandSettings { \n } \n \n \n + public final OsmandPreference < ApplicationMode > PREV_APPLICATION_MODE = new EnumIntPreference < ApplicationMode > ( \n + STRING0 , ApplicationMode . DEFAULT , true , false , ApplicationMode . values ( ) ) ; \n + \n SINGLE \n SINGLE \n public final OsmandPreference < MetricsConstants > METRIC_SYSTEM = new EnumIntPreference < MetricsConstants > ( \n <nb> public class MapActivityActions implements DialogProvider { \n } \n ApplicationMode mode = getAppMode ( buttons , settings ) ; \n SINGLE \n + settings . PREV_APPLICATION_MODE . set ( settings . APPLICATION_MODE . get ( ) ) ; \n boolean changed = settings . APPLICATION_MODE . set ( mode ) ; \n if ( changed ) { \n mapActivity . updateApplicationModeSettings ( ) ;", "msg_token": "Save previously selected application mode"}
{"diff": "<nb> public class ShadowResources { \n public Configuration getConfiguration ( ) { \n Configuration configuration = new Configuration ( ) ; \n configuration . setToDefaults ( ) ; \n + if ( configuration . locale == null ) { \n + configuration . locale = Locale . getDefault ( ) ; \n + } \n return configuration ; \n } \n \n <nb> \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n <nb> public class ResourcesTest { \n \n @ test \n public void testConfiguration ( ) { \n - assertThat ( new Activity ( ) . getResources ( ) . getConfiguration ( ) , notNullValue ( ) ) ; \n + Configuration configuration = new Activity ( ) . getResources ( ) . getConfiguration ( ) ; \n + assertThat ( configuration , notNullValue ( ) ) ; \n + assertThat ( configuration . locale , notNullValue ( ) ) ; \n } \n \n @ test", "msg_token": "Added default locale when retrieving configuration"}
{"diff": "<nb> public class DSLContexts { \n try ( Connection conn = dataSource . getConnection ( ) ) { \n dialect = dialect ( conn ) ; \n } \n - return DSL . using ( dataSource , dialect , new Settings ( ) \n - . withRenderSchema ( false ) \n - . withRenderNameStyle ( RenderNameStyle . AS_IS ) ) ; \n + return DSL . using ( dataSource , dialect , \n + new Settings ( ) \n + . withRenderSchema ( false ) \n + . withRenderNameStyle ( RenderNameStyle . AS_IS ) ) ; \n } \n }", "msg_token": "Keep formatting closer to original"}
{"diff": "<nb> public class DemoActivity extends ActionBarActivity { \n } ) ; \n \n TextView t = ( TextView ) findViewById ( R . id . main ) ; \n + t . setOnClickListener ( new OnClickListener ( ) { \n + @ override \n + public void onClick ( View v ) { \n + mLayout . collapsePanel ( ) ; \n + } \n + } ) ; \n + \n t = ( TextView ) findViewById ( R . id . name ) ; \n t . setText ( Html . fromHtml ( getString ( R . string . hello ) ) ) ; \n Button f = ( Button ) findViewById ( R . id . follow ) ;", "msg_token": "Updated demo to collapse the main when clicking on the main layout"}
{"diff": "<nb> public class I18nInspection extends BaseLocalInspectionTool { \n final Project project = manager . getProject ( ) ; \n final GlobalSearchScope scope = GlobalSearchScope . allScope ( project ) ; \n final PsiClass throwable = manager . findClass ( STRING0 , scope ) ; \n - return aClass . isInheritor ( throwable , true ) ; \n + return throwable != null && aClass . isInheritor ( throwable , true ) ; \n } \n \n private static boolean isArgOfSpecifiedExceptionConstructor ( PsiExpression expression , String [ ] specifiedExceptions ) {", "msg_token": "avoid exception on misconfigured JDK"}
{"diff": "<nb> public class OptimizeImportsRefactoringHelper implements RefactoringHelper < Set < P \n public Set < PsiJavaFile > prepareOperation ( final UsageInfo [ ] usages ) { \n Set < PsiJavaFile > javaFiles = new HashSet < PsiJavaFile > ( ) ; \n for ( UsageInfo usage : usages ) { \n + if ( usage . isNonCodeUsage ) continue ; \n final PsiElement element = usage . getElement ( ) ; \n if ( element != null ) { \n final PsiFile file = element . getContainingFile ( ) ; \n <nb> public class GroovyImportOptimizerRefactoringHelper implements RefactoringHelper \n public Set < GroovyFile > prepareOperation ( UsageInfo [ ] usages ) { \n Set < GroovyFile > files = new HashSet < GroovyFile > ( ) ; \n for ( UsageInfo usage : usages ) { \n + if ( usage . isNonCodeUsage ) continue ; \n final PsiElement element = usage . getElement ( ) ; \n if ( element != null ) { \n final PsiFile file = element . getContainingFile ( ) ;", "msg_token": "skip non code usages when collecting files for optimize imports"}
{"diff": "<nb> public final class NetworkUtils { \n public static String getLocalIpAddress ( ) { \n try { \n InetAddress address = InetAddress . getLocalHost ( ) ; \n - LOG . debug ( STRING0 + address . toString ( ) + STRING1 + address . isLoopbackAddress ( ) + STRING1 \n - + address . getHostAddress ( ) + STRING1 + address . getHostName ( ) ) ; \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( STRING0 + address . toString ( ) + STRING1 + address . isLoopbackAddress ( ) + STRING1 \n + + address . getHostAddress ( ) + STRING1 + address . getHostName ( ) ) ; \n + } \n if ( address . isLoopbackAddress ( ) ) { \n Enumeration < NetworkInterface > networkInterfaces = NetworkInterface . getNetworkInterfaces ( ) ; \n while ( networkInterfaces . hasMoreElements ( ) ) {", "msg_token": "avoid unnecessary toString and concatenation"}
{"diff": "<nb> public interface Config extends ConfigMergeable { \n @ deprecated Long getNanoseconds ( String path ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public interface Config extends ConfigMergeable { \n COMMENT \n @ deprecated List < Long > getNanosecondsList ( String path ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n List < Long > getDurationList ( String path , TimeUnit unit ) ; \n \n COMMENT \n <nb> public interface Config extends ConfigMergeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add since to getDuration and minor doc tweaks"}
{"diff": "<nb> public class CTConnectionFactory implements KeyedPoolableObjectFactory < String , C \n \n \n TSocket socket ; \n - if ( ! cfg . sslTruststoreLocation . isEmpty ( ) ) { \n + if ( null != cfg . sslTruststoreLocation && ! cfg . sslTruststoreLocation . isEmpty ( ) ) { \n TSSLTransportFactory . TSSLTransportParameters params = new TSSLTransportFactory . TSSLTransportParameters ( ) { { \n setKeyStore ( cfg . sslTruststoreLocation , cfg . sslTruststorePassword ) ; \n } } ;", "msg_token": "Fix NPE in SSL trust store configuration"}
{"diff": "<nb> public class AsmClassGenerator extends ClassGenerator { \n } \n \n public void visitBlockStatement ( BlockStatement block ) { \n - onLineNumber ( block , STRING0 ) ; \n visitStatement ( block ) ; \n \n int mark = controller . getOperandStack ( ) . getStackLength ( ) ;", "msg_token": "Rogue line number for method declarations confuses IDE debuggers"}
{"diff": "<nb> public class IndexCheck implements RecordCheck < IndexEntry , ConsistencyReport . Ind \n public void checkChange ( IndexEntry oldRecord , IndexEntry newRecord , CheckerEngine < IndexEntry , ConsistencyReport \n . IndexConsistencyReport > engine , DiffRecordAccess records ) \n { \n + check ( newRecord , engine , records ) ; \n } \n } \n <nb> public class LabelScanCheck implements RecordCheck < LabelScanDocument , Consistenc \n CheckerEngine < LabelScanDocument , \n ConsistencyReport . LabelScanConsistencyReport > engine , DiffRecordAccess records ) \n { \n - throw new UnsupportedOperationException ( ) ; \n + check ( newRecord , engine , records ) ; \n } \n }", "msg_token": "delegate incremental checking to full checking"}
{"diff": "<nb> public class CorePlugin implements Plugin { \n \n SINGLE \n extensions . add ( TendencyDecorator . class ) ; \n + extensions . add ( PastSnapshotFinderByDate . class ) ; \n extensions . add ( PastSnapshotFinderByDays . class ) ; \n + extensions . add ( PastSnapshotFinderByLastAnalysis . class ) ; \n extensions . add ( PastSnapshotFinderByVersion . class ) ; \n extensions . add ( PastMeasuresLoader . class ) ; \n extensions . add ( PastSnapshotFinder . class ) ;", "msg_token": "Add missing extensions to CorePlugin"}
{"diff": "<nb> public class SJK { \n SINGLE \n jarFileName = URLDecoder . decode ( packageURL . getFile ( ) , STRING0 ) ; \n jarFileName = jarFileName . substring ( NUMBER0 , jarFileName . indexOf ( STRING1 ) ) ; \n - System . out . println ( STRING2 + jarFileName ) ; \n jf = new JarFile ( jarFileName ) ; \n jarEntries = jf . entries ( ) ; \n while ( jarEntries . hasMoreElements ( ) ) {", "msg_token": "Removed forgotten System out"}
{"diff": "<nb> import NAMESPACE ; \n COMMENT \n COMMENT \n @ modelcontainer \n - @ table ( database = TestDatabase . class ) \n + @ table ( database = TestDatabase . class , cachingEnabled = true ) \n public class AIContainerForeign extends AutoIncrementContainer { \n \n \n <nb> public class SqlUtils { \n } \n \n if ( cacheable != null ) { \n + instanceAdapter . reloadRelationships ( cacheable , cursor ) ; \n entities . add ( cacheable ) ; \n } else { \n cacheable = instanceAdapter . newInstance ( ) ; \n <nb> public class SqlUtils { \n if ( model == null ) { \n model = modelAdapter . newInstance ( ) ; \n modelAdapter . loadFromCursor ( cursor , model ) ; \n + } else { \n + modelAdapter . reloadRelationships ( model , cursor ) ; \n } \n } \n }", "msg_token": "reloading relationships in the sql methods"}
{"diff": "<nb> public abstract class MediaRouteProviderService extends Service { \n if ( mControllers . indexOfKey ( controllerId ) < NUMBER0 ) { \n MediaRouteProvider . RouteController controller = \n mProvider . onCreateRouteController ( routeId ) ; \n - mControllers . put ( controllerId , controller ) ; \n - return true ; \n + if ( controller != null ) { \n + mControllers . put ( controllerId , controller ) ; \n + return true ; \n + } \n } \n return false ; \n }", "msg_token": "Fix NPE when provider does not supply a route controller"}
{"diff": "<nb> public class BytecodeHelper implements Constants { \n cv . visitInsn ( ICONST_5 ) ; \n break ; \n default : \n - if ( value > Byte . MIN_VALUE && value < Byte . MAX_VALUE ) { \n + if ( value >= Byte . MIN_VALUE && value <= Byte . MAX_VALUE ) { \n cv . visitIntInsn ( BIPUSH , value ) ; \n } \n - else if ( value > Short . MIN_VALUE && value < Short . MAX_VALUE ) { \n + else if ( value >= Short . MIN_VALUE && value <= Short . MAX_VALUE ) { \n cv . visitIntInsn ( SIPUSH , value ) ; \n } \n else {", "msg_token": "applied Robert Fuller s patch DOH"}
{"diff": "<nb> public class PsiReferenceExpressionImpl extends PsiReferenceExpressionBase imple \n LOG . error ( STRING0 ) ; \n return JavaResolveResult . EMPTY_ARRAY ; \n } \n + if ( ! isValid ( ) ) { \n + LOG . error ( STRING1 ) ; \n + return JavaResolveResult . EMPTY_ARRAY ; \n + } \n ResolveResult [ ] results = ResolveCache . getInstance ( getProject ( ) ) . resolveWithCaching ( this , OurGenericsResolver . INSTANCE , true , incompleteCode ) ; \n return results . length == NUMBER0 ? JavaResolveResult . EMPTY_ARRAY : ( JavaResolveResult [ ] ) results ; \n }", "msg_token": "don t resolve invalid references"}
{"diff": "<nb> public class BeaconManager { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public class BeaconManager { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public class BeaconManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n <nb> public class BeaconParser { \n return null ; \n } \n else { \n - BeaconManager . logDebug ( TAG , STRING0 + String . format ( STRING1 , getMatchingBeaconTypeCode ( ) ) + STRING2 ) ; \n + BeaconManager . logDebug ( TAG , STRING3 + String . format ( STRING1 , getMatchingBeaconTypeCode ( ) ) + STRING2 ) ; \n } \n \n ArrayList < Identifier > identifiers = new ArrayList < Identifier > ( ) ;", "msg_token": "Fix typos in docs and log messages"}
{"diff": "<nb> public interface SourceSet { \n String getCompileTaskName ( String language ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated javadoc information"}
{"diff": "<nb> package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unneeded import"}
{"diff": "<nb> public class StorageProxy implements StorageProxyMBean \n SINGLE \n if ( destination . equals ( FBUtilities . getLocalAddress ( ) ) ) \n { \n - insertLocalMessage ( rm , responseHandler ) ; \n + insertLocal ( rm , responseHandler ) ; \n } \n else \n { \n <nb> public class StorageProxy implements StorageProxyMBean \n message . setHeader ( RowMutation . HINT , bos . toByteArray ( ) ) ; \n } \n \n - private static void insertLocalMessage ( final RowMutation rm , final IWriteResponseHandler responseHandler ) \n + private static void insertLocal ( final RowMutation rm , final IWriteResponseHandler responseHandler ) \n { \n if ( logger . isDebugEnabled ( ) ) \n logger . debug ( STRING0 + rm . toString ( true ) ) ;", "msg_token": "rename insertLocalMessage insertLocal"}
{"diff": "<nb> public class TestingPrestoServer \n . put ( STRING0 , STRING1 ) \n . put ( STRING2 , STRING3 ) \n . put ( STRING4 , STRING3 ) \n + . put ( STRING5 , STRING3 ) \n . put ( STRING6 , STRING7 ) ; \n \n if ( ! properties . containsKey ( STRING8 ) ) {", "msg_token": "Reduce number of exchange client threads used in tests"}
|