{"diff": " 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": " 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 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": " 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": " 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 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": " \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": " \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 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": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n 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": " 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": " 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": " public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( ) { \n 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 public final class Stopwatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public Stopwatch ( ) { \n 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": " 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 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": " 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 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": " 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": " 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 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 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 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": " public class SeriesGuideContract { \n String GENRES = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n 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": " 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 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": " 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 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": " 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": " 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 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": " 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": " 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 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 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 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": " 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": " 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": " 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 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": " 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": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n COMMENT \n \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": " 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": " 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": " 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 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": " 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 \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n 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": " 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": " 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": " 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": " 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 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": " 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": " 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 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 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": " 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": " 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": " 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 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": " 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": " 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": " 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 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 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": " 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": " 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": " 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": " 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 public class BeaconManager { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class BeaconManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n 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": " 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": " 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": " 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 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": " 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"} {"diff": " public class RootFileReferenceSet extends FileReferenceSet { \n } \n \n public boolean isAbsolutePathReference ( ) { \n - return FileUtil . isAbsolute ( getPathString ( ) ) ; \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + return FileUtil . isAbsolute ( getPathString ( ) ) ; \n + } \n + else { \n + return super . isAbsolutePathReference ( ) ; \n + } \n } \n \n @ notnull", "msg_token": "Check that path is absolute equally for different OSs in tests"} {"diff": " public class XmppConnectionService extends Service implements OnPhoneContactsLoa \n @ override \n public void onBind ( final Account account ) { \n account . getRoster ( ) . clearPresences ( ) ; \n + mJingleConnectionManager . cancelInTransmission ( ) ; \n fetchRosterFromServer ( account ) ; \n fetchBookmarks ( account ) ; \n - mMessageArchiveService . executePendingQueries ( account ) ; \n sendPresence ( account ) ; \n + mMessageArchiveService . executePendingQueries ( account ) ; \n connectMultiModeConversations ( account ) ; \n - mJingleConnectionManager . cancelInTransmission ( ) ; \n syncDirtyContacts ( account ) ; \n } \n } ;", "msg_token": "changed order of send presence and execute mam queries"} {"diff": " public class DefaultLanguageResolver implements LanguageResolver { \n } \n } \n \n - private Object lookupInRegistry ( CamelContext context , String . . . names ) { \n - for ( String name : names ) { \n - try { \n - Object bean = context . getRegistry ( ) . lookupByName ( name ) ; \n - if ( bean != null ) { \n - getLog ( ) . debug ( STRING0 , name , bean ) ; \n - return bean ; \n - } \n - } catch ( Exception e ) { \n - if ( getLog ( ) . isDebugEnabled ( ) ) { \n - getLog ( ) . debug ( STRING1 + name + STRING2 + e ) ; \n - } \n - } \n - } \n - \n - return null ; \n - } \n \n protected Language noSpecificLanguageFound ( String name , CamelContext context ) { \n Class < ? > type = null ;", "msg_token": "Removed unused method"} {"diff": " public class ViewValuePanel implements IResultSetPanel { \n valueSaving = true ; \n Object newValue = valueViewer . extractEditorValue ( ) ; \n previewController . updateValue ( newValue ) ; \n + presentation . refreshData ( false , false ) ; \n } catch ( Exception e ) { \n UIUtils . showErrorDialog ( null , STRING0 , STRING1 , e ) ; \n } finally {", "msg_token": "Refresh data view on value change"} {"diff": " public class Sql { \n } \n } else { \n nulls = true ; \n - buffer . append ( STRING0 ) ; SINGLE \n - SINGLE \n + iter . remove ( ) ; \n + buffer . append ( STRING0 ) ; SINGLE \n } \n } \n }", "msg_token": "Can not insert nulls into the table using Sql execute improved solution"} {"diff": " public class LwjglOffscreenBuffer extends LwjglContext implements Runnable { \n } \n \n public void run ( ) { \n + loadNatives ( ) ; \n logger . log ( Level . FINE , STRING0 , Sys . getVersion ( ) ) ; \n initInThread ( ) ; \n while ( ! needClose . get ( ) ) { \n public class Installer extends ModuleInstall { \n logger . log ( Level . INFO , STRING1 , projectDir ) ; \n file . mkdirs ( ) ; \n } \n - com . jme3 . system . Natives . setExtractionDir ( jmpDir ) ; \n - \n + \n + com . jme3 . system . NativeLibraryLoader . setCustomExtractionFolder ( jmpDir ) ; \n SINGLE \n JPopupMenu . setDefaultLightWeightPopupEnabled ( false ) ; \n }", "msg_token": "Ensure LwjglOffscreenBuffer extracts the required natives"} {"diff": " public class HttpConnection extends AbstractConnection implements Runnable , Http \n finally \n { \n setCurrentConnection ( last ) ; \n - if ( ! suspended && getEndPoint ( ) . isOpen ( ) && getEndPoint ( ) . getConnection ( ) == this ) \n + if ( ! suspended && ! getEndPoint ( ) . isInputShutdown ( ) && getEndPoint ( ) . getConnection ( ) == this ) \n { \n fillInterested ( ) ; \n }", "msg_token": "Fixed spinning loop that called onFillable in case of closed"} {"diff": " public class UsbDeviceManager { \n intent . addFlags ( Intent . FLAG_RECEIVER_REGISTERED_ONLY ) ; \n intent . putExtra ( STRING0 , ( enabled ? NUMBER0 : NUMBER1 ) ) ; \n if ( enabled ) { \n + Scanner scanner = null ; \n try { \n - Scanner scanner = new Scanner ( new File ( AUDIO_SOURCE_PCM_PATH ) ) ; \n + scanner = new Scanner ( new File ( AUDIO_SOURCE_PCM_PATH ) ) ; \n int card = scanner . nextInt ( ) ; \n int device = scanner . nextInt ( ) ; \n intent . putExtra ( STRING1 , card ) ; \n intent . putExtra ( STRING2 , device ) ; \n } catch ( FileNotFoundException e ) { \n Slog . e ( TAG , STRING3 , e ) ; \n + } finally { \n + if ( scanner != null ) { \n + scanner . close ( ) ; \n + } \n } \n } \n mContext . sendStickyBroadcastAsUser ( intent , UserHandle . ALL ) ;", "msg_token": "Add explicit close of Scanner input"} {"diff": " public class ReliabilityTest extends ActivityInstrumentationTestCase2 < Reliabilit \n System . gc ( ) ; \n System . gc ( ) ; \n } \n + updateTestStatus ( TEST_DONE ) ; \n activity . finish ( ) ; \n listReader . close ( ) ; \n }", "msg_token": "Fixed bug where test status is not marked DONE when completed"} {"diff": " public final class EncodeActivity extends Activity { \n return true ; \n case R . id . menu_encode : \n Intent intent = getIntent ( ) ; \n + if ( intent == null ) { \n + return false ; \n + } \n intent . putExtra ( USE_VCARD_KEY , ! qrCodeEncoder . isUseVCard ( ) ) ; \n - startActivity ( getIntent ( ) ) ; \n + startActivity ( intent ) ; \n finish ( ) ; \n return true ; \n default :", "msg_token": "Fix possible strange NPE on EncodeActivity"} {"diff": " public class AtmosphereFramework { \n for ( String p : params ) { \n s = p . split ( STRING0 , NUMBER0 ) ; \n final String header = s [ NUMBER1 ] ; \n - final String value = s [ NUMBER2 ] ; \n + final String value = s . length > NUMBER2 ? s [ NUMBER2 ] : STRING1 ; \n \n if ( header . equalsIgnoreCase ( STRING2 ) ) { \n SINGLE", "msg_token": "Fix regression broken build"} {"diff": " public abstract class AbstractRememberMeServices implements RememberMeServices , \n protected void onLoginFail ( HttpServletRequest request , HttpServletResponse response ) { } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public final void loginSuccess ( HttpServletRequest request , HttpServletResponse response , \n Authentication successfulAuthentication ) {", "msg_token": "Clarify AbstractRememberMeServices loginSuccess javadoc"} {"diff": " public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt \n if ( p != null && p . getRequestTimeoutInMs ( ) != - NUMBER0 ) { \n requestTimeout = p . getRequestTimeoutInMs ( ) ; \n } \n - this . nettyResponseFuture . getRequest ( ) . getPerRequestConfig ( ) ; \n - \n abort ( this . nettyResponseFuture , new TimeoutException ( String . format ( STRING0 , requestTimeout ) ) ) ; \n markChannelNotReadable ( channel . getPipeline ( ) . getContext ( NettyAsyncHttpProvider . class ) ) ;", "msg_token": "Remove extra line"} {"diff": " public class AggregatorParsers { \n pipelineAggregatorFactory \n . validate ( null , factories . getAggregatorFactories ( ) , factories . getPipelineAggregatorFactories ( ) ) ; \n } \n + if ( metaData != null ) { \n + pipelineAggregatorFactory . setMetaData ( metaData ) ; \n + } \n factories . addPipelineAggregator ( pipelineAggregatorFactory ) ; \n } \n }", "msg_token": "Set meta data for pipeline aggregations"} {"diff": " public final class HttpHeaders { \n public static final String RANGE = STRING0 ; \n COMMENT \n public static final String REFERER = STRING1 ; \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final String SERVICE_WORKER = STRING2 ; \n COMMENT \n public static final String TE = STRING3 ; \n public final class HttpHeaders { \n public static final String RETRY_AFTER = STRING4 ; \n COMMENT \n public static final String SERVER = STRING5 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String SERVICE_WORKER_ALLOWED = STRING6 ; \n COMMENT \n public static final String SET_COOKIE = STRING7 ; \n COMMENT", "msg_token": "Add the Service Worker Allowed header to the HTTP header constants for Java Go"} {"diff": " public class WifiStateTracker implements NetworkStateTracker { \n \n mWifiManager = ( WifiManager ) mContext . getSystemService ( Context . WIFI_SERVICE ) ; \n IntentFilter filter = new IntentFilter ( ) ; \n - filter . addAction ( WifiManager . WIFI_STATE_CHANGED_ACTION ) ; \n filter . addAction ( WifiManager . NETWORK_STATE_CHANGED_ACTION ) ; \n filter . addAction ( WifiManager . CONFIG_CHANGED_ACTION ) ; \n - filter . addAction ( WifiManager . SCAN_RESULTS_AVAILABLE_ACTION ) ; \n \n mWifiStateReceiver = new WifiStateReceiver ( ) ; \n mContext . registerReceiver ( mWifiStateReceiver , filter ) ;", "msg_token": "Remove unused Intent filter values"} {"diff": " public class HSQLDBTemplates extends SQLTemplates { \n setAutoIncrement ( STRING0 ) ; \n add ( Ops . TRIM , STRING1 ) ; \n add ( Ops . NEGATE , STRING2 , NUMBER0 ) ; \n + \n + add ( Ops . NEXTVAL , STRING3 ) ; \n \n add ( Ops . MathOps . ROUND , STRING4 ) ; \n add ( Ops . MathOps . LN , STRING5 ) ; \n public final class SQLExpressions { \n } \n \n public static final < T extends Number > SimpleExpression < T > nextval ( Class < T > type , String sequence ) { \n - return SimpleOperation . create ( type , SQLTemplates . NEXTVAL , ConstantImpl . create ( STRING6 ) ) ; \n + return SimpleOperation . create ( type , SQLTemplates . NEXTVAL , ConstantImpl . create ( sequence ) ) ; \n } \n \n private SQLExpressions ( ) { }", "msg_token": "Fixed nextval expression and NEXTVAL Operator for HSQLDB"} {"diff": " public class ReturnChange { \n COMMENT \n public List < Integer > calculate ( int [ ] moneys , int billAmount ) { \n validateInputData ( moneys , billAmount ) ; \n - \n + \n List < Integer > change = new LinkedList < Integer > ( ) ; \n while ( billAmount > NUMBER0 && moneys . length > NUMBER0 ) { \n for ( int i = moneys . length - NUMBER1 ; i >= NUMBER0 ; i -- ) {", "msg_token": "Fix check style issue"} {"diff": " abstract class BaseCameraFragment extends Fragment implements CameraUriInterface \n return CameraUtil . makeTempFile ( getActivity ( ) , getArguments ( ) . getString ( CameraIntentKey . SAVE_DIR ) , STRING0 , STRING1 ) ; \n } \n \n + @ nonnull \n + protected final File getOutputPictureFile ( ) { \n + return CameraUtil . makeTempFile ( getActivity ( ) , getArguments ( ) . getString ( CameraIntentKey . SAVE_DIR ) , STRING1 ) ; \n + } \n + \n public abstract void openCamera ( ) ; \n \n public abstract void closeCamera ( ) ;", "msg_token": "Add support for change flash mode"} {"diff": " public class SnacktoryWebViewRenderer extends WebViewRenderer { \n leftString = STRING0 + authorName + STRING1 ; \n } \n if ( url != null ) { \n - leftString += STRING2 + url . getHost ( ) + STRING3 + ( url . getHost ( ) . replace ( STRING4 , STRING5 ) ) + STRING6 ; \n + leftString += STRING2 + url . getProtocol ( ) + STRING7 + url . getHost ( ) + STRING3 + ( url . getHost ( ) . replace ( STRING4 , STRING5 ) ) + STRING6 ; \n } \n \n Log . d ( STRING8 , STRING9 + url . getHost ( ) + STRING10 + authorName ) ;", "msg_token": "Add protocol to infobar URL"} {"diff": " public abstract class DBCollection { \n COMMENT \n COMMENT \n COMMENT \n - < < < < < < < HEAD \n - COMMENT \n - == == == = \n COMMENT \n - > > > > > > > JAVA - NUMBER0 \n COMMENT \n public long getCount ( DBObject query ) { \n return getCount ( query , null ) ;", "msg_token": "fixed another merge issue"} {"diff": " public final class Roster extends Manager { \n logLevel = Level . SEVERE ; \n } \n LOGGER . log ( logLevel , STRING0 , exception ) ; \n + for ( RosterLoadedListener listener : rosterLoadedListeners ) { \n + listener . onRosterLoadingFailed ( exception ) ; \n + } \n } \n } ) ; \n } \n public interface RosterLoadedListener { \n COMMENT \n public void onRosterLoaded ( Roster roster ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onRosterLoadingFailed ( Exception exception ) ; \n + \n }", "msg_token": "Add Roster loading failed callback"} {"diff": " public final class DiscreteDomains { \n private Object readResolve ( ) { \n return INSTANCE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 ; \n + } \n \n private static final long serialVersionUID = NUMBER0 ; \n } \n public final class DiscreteDomains { \n private Object readResolve ( ) { \n return INSTANCE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING1 ; \n + } \n \n private static final long serialVersionUID = NUMBER0 ; \n } \n public final class DiscreteDomains { \n private Object readResolve ( ) { \n return INSTANCE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING2 ; \n + } \n \n private static final long serialVersionUID = NUMBER0 ; \n }", "msg_token": "Add toString to DiscreteDomains"} {"diff": " public class NetworkSender \n { \n ChannelPipeline pipeline = Channels . pipeline ( ) ; \n pipeline . addLast ( STRING0 , new ObjectEncoder ( NUMBER0 ) ) ; \n - pipeline . addLast ( STRING1 , new NetworkSender . MessageSender ( ) ) ; \n + pipeline . addLast ( STRING1 , new NetworkMessageSender ( ) ) ; \n return pipeline ; \n } \n } \n \n - private class MessageSender \n + private class NetworkMessageSender \n extends SimpleChannelHandler \n { \n @ override", "msg_token": "Renames NetworkSender MessageSender to NetworkSenderdotNetworkMessageSender"} {"diff": " import NAMESPACE ; \n public class KMeansModel extends Model < KMeansModel , KMeansModel . KMeansParameters , KMeansModel . KMeansOutput > { \n \n public static class KMeansParameters extends Model . Parameters < KMeansModel , KMeansModel . KMeansParameters , KMeansModel . KMeansOutput > { \n - public int _K ; SINGLE \n - public int _max_iters ; SINGLE \n - public boolean _normalize ; SINGLE \n - public long _seed ; SINGLE \n - public KMeans . Initialization _init ; \n + public int _K ; SINGLE \n + public int _max_iters = NUMBER0 ; SINGLE \n + public boolean _normalize = false ; SINGLE \n + public long _seed ; SINGLE \n + public KMeans . Initialization _init = KMeans . Initialization . None ; \n } \n \n public static class KMeansOutput extends Model . Output < KMeansModel , KMeansModel . KMeansParameters , KMeansModel . KMeansOutput > {", "msg_token": "Set defaults for appropriate KMeansParameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShowFeatureUsageStatisticsDialog extends DialogWrapper { \n } \n \n private static String formatCharacterCount ( int count , boolean full ) { \n - String result = count > NUMBER0 * NUMBER0 ? ( count / NUMBER0 / NUMBER0 ) + STRING0 : \n - count > NUMBER0 ? ( count / NUMBER0 ) + STRING1 : \n + DecimalFormat oneDigit = new DecimalFormat ( STRING2 ) ; \n + String result = count > NUMBER0 * NUMBER0 ? oneDigit . format ( ( double ) count / NUMBER0 / NUMBER0 ) + STRING0 : \n + count > NUMBER0 ? oneDigit . format ( ( double ) count / NUMBER0 ) + STRING1 : \n String . valueOf ( count ) ; \n if ( full ) { \n return result + STRING3 ;", "msg_token": "show some decimal parts"} {"diff": " class DisplayAdjustmentUtils { \n NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 \n } ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private static final float [ ] INVERSION_MATRIX_VALUE_ONLY = new float [ ] { \n - NUMBER0 , - FLOAT0 , - FLOAT0 , NUMBER0 , \n - - FLOAT0 , NUMBER0 , - FLOAT0 , NUMBER0 , \n - - FLOAT0 , - FLOAT0 , NUMBER0 , NUMBER0 , \n - NUMBER1 , NUMBER1 , NUMBER1 , NUMBER1 \n + FLOAT1 , - FLOAT2 , - FLOAT3 , NUMBER0 , \n + - FLOAT4 , - FLOAT5 , - FLOAT6 , NUMBER0 , \n + - FLOAT7 , - FLOAT7 , FLOAT8 , NUMBER0 , \n + NUMBER1 , NUMBER1 , NUMBER1 , NUMBER1 \n } ; \n \n COMMENT", "msg_token": "Adjust display inversion matrix to account for luminance"} {"diff": " public class Contact { \n public void ResetRestitution ( ) { \n contact . resetRestitution ( ) ; \n } \n + \n + public float getTangentSpeed ( ) { \n + return contact . getTangentSpeed ( ) ; \n + } \n + \n + public void setTangentSpeed ( float speed ) { \n + contact . setTangentSpeed ( speed ) ; \n + } \n }", "msg_token": "Implement Contact GWT Backend SetTangentSpeed GetTangentSpeed methods"} {"diff": " public class ContextConfig implements LifecycleListener { \n String name = className . replace ( STRING0 , STRING1 ) + STRING2 ; \n InputStream is = \n context . getLoader ( ) . getClassLoader ( ) . getResourceAsStream ( name ) ; \n + if ( is == null ) { \n + return ; \n + } \n ClassParser parser = new ClassParser ( is , null ) ; \n try { \n JavaClass clazz = parser . parse ( ) ;", "msg_token": "Avoid NPE if class interface is not present"} {"diff": " public class MtpDatabase { \n return new int [ ] { \n SINGLE \n MtpConstants . FORMAT_UNDEFINED , \n + \n MtpConstants . FORMAT_ASSOCIATION , \n + MtpConstants . FORMAT_TEXT , \n + MtpConstants . FORMAT_HTML , \n + MtpConstants . FORMAT_WAV , \n + MtpConstants . FORMAT_MP3 , \n + MtpConstants . FORMAT_MPEG , \n + MtpConstants . FORMAT_EXIF_JPEG , \n + MtpConstants . FORMAT_TIFF_EP , \n + MtpConstants . FORMAT_GIF , \n + MtpConstants . FORMAT_JFIF , \n + MtpConstants . FORMAT_PNG , \n + MtpConstants . FORMAT_TIFF , \n + MtpConstants . FORMAT_WMA , \n + MtpConstants . FORMAT_OGG , \n + MtpConstants . FORMAT_AAC , \n + MtpConstants . FORMAT_MP4_CONTAINER , \n + MtpConstants . FORMAT_MP2 , \n + MtpConstants . FORMAT_3GP_CONTAINER , \n MtpConstants . FORMAT_ABSTRACT_AV_PLAYLIST , \n + MtpConstants . FORMAT_WPL_PLAYLIST , \n + MtpConstants . FORMAT_M3U_PLAYLIST , \n + MtpConstants . FORMAT_PLS_PLAYLIST , \n + MtpConstants . FORMAT_XML_DOCUMENT , \n } ; \n }", "msg_token": "List all the formats we support in addition to FORMAT_UNDEFINED"} {"diff": " public class TimerComponent extends DefaultComponent { \n answer = timers . get ( key ) ; \n if ( answer == null ) { \n SINGLE \n - String name = endpoint . getCamelContext ( ) . getExecutorServiceManager ( ) . resolveThreadName ( endpoint . getTimerName ( ) ) ; \n + String name = endpoint . getCamelContext ( ) . getExecutorServiceManager ( ) . resolveThreadName ( STRING0 + endpoint . getTimerName ( ) ) ; \n answer = new Timer ( name , endpoint . isDaemon ( ) ) ; \n timers . put ( key , answer ) ; \n }", "msg_token": "Timer thread should use same thread name pattern as the others"} {"diff": " public class InternalJUnitRunner implements RunnerImpl { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n reporter . report ( testClass , notifier ) ; \n } \n }", "msg_token": "Added a TODO"} {"diff": " public class EndpointAnnotationProcessor extends AbstractAnnotationProcessor { \n return false ; \n } \n \n - EndpointOption that = ( EndpointOption ) o ; \n + ComponentOption that = ( ComponentOption ) o ; \n \n if ( ! name . equals ( that . name ) ) { \n return false ;", "msg_token": "Fixed apt plugin"} {"diff": " public class Log4JLoggingSystemTests { \n this . loggingSystem . initialize ( ) ; \n java . util . logging . Logger julLogger = java . util . logging . Logger \n . getLogger ( getClass ( ) . getName ( ) ) ; \n - julLogger . info ( STRING0 ) ; \n + julLogger . severe ( STRING0 ) ; \n String output = this . output . toString ( ) . trim ( ) ; \n assertTrue ( STRING1 + output , output . contains ( STRING0 ) ) ; \n } \n public class Log4J2LoggingSystemTests { \n this . loggingSystem . initialize ( ) ; \n java . util . logging . Logger julLogger = java . util . logging . Logger \n . getLogger ( getClass ( ) . getName ( ) ) ; \n - julLogger . info ( STRING0 ) ; \n + julLogger . severe ( STRING0 ) ; \n String output = this . output . toString ( ) . trim ( ) ; \n assertTrue ( STRING1 + output , output . contains ( STRING0 ) ) ; \n }", "msg_token": "Increase the level of JUL logging calls in the tests to try to fix CI"} {"diff": " public class DeterministicSeed implements EncryptableItem { \n COMMENT \n COMMENT \n public DeterministicSeed ( List < String > mnemonicCode , String passphrase , long creationTimeSeconds ) { \n - this ( getCachedMnemonicCodec ( ) . toSeed ( mnemonicCode , passphrase ) , mnemonicCode , creationTimeSeconds ) ; \n + this ( MnemonicCode . toSeed ( mnemonicCode , passphrase ) , mnemonicCode , creationTimeSeconds ) ; \n } \n \n COMMENT \n public class DeterministicSeed implements EncryptableItem { \n SINGLE \n throw new RuntimeException ( e ) ; \n } \n - this . seed = getCachedMnemonicCodec ( ) . toSeed ( mnemonicCode , passphrase ) ; \n + this . seed = MnemonicCode . toSeed ( mnemonicCode , passphrase ) ; \n this . encryptedMnemonicCode = null ; \n this . creationTimeSeconds = creationTimeSeconds ; \n }", "msg_token": "Fix a couple of static method via instance warnings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class MultiMatchQueryParser implements QueryParser { \n \n public class MultiMatchQueryParser implements QueryParser { \n } \n \n if ( value == null ) { \n - throw new QueryParsingException ( parseContext . index ( ) , STRING0 ) ; \n + throw new QueryParsingException ( parseContext . index ( ) , STRING1 ) ; \n } \n \n if ( fieldNameWithBoosts . isEmpty ( ) ) { \n - throw new QueryParsingException ( parseContext . index ( ) , STRING2 ) ; \n + throw new QueryParsingException ( parseContext . index ( ) , STRING3 ) ; \n } \n if ( type == null ) { \n type = MultiMatchQueryBuilder . Type . BEST_FIELDS ; \n public class MultiMatchQueryParser implements QueryParser { \n fieldNameWithBoosts . put ( fField , fBoost ) ; \n } \n } \n - } \n + }", "msg_token": "Fix wrong error messages in MultiMatchQueryParser"} {"diff": " class SearchEverywherePsiRenderer extends PsiElementListCellRenderer < PsiElement > \n if ( in ) text = text . substring ( NUMBER0 ) ; \n final FontMetrics fm = myList . getFontMetrics ( myList . getFont ( ) ) ; \n final int maxWidth = myList . getWidth ( ) - fm . stringWidth ( name ) - NUMBER1 - myRightComponentWidth - NUMBER2 ; \n - String left = STRING0 + ( in ? STRING1 : STRING2 ) ; \n + String left = in ? STRING3 : STRING0 ; \n String right = STRING4 ; \n \n if ( fm . stringWidth ( left + text + right ) < maxWidth ) return left + text + right ;", "msg_token": "do not put space inside parens"} {"diff": " public class HttpExchangeBuilder { \n String relativePath ; \n String protocol ; \n final HeaderMap headers = new HeaderMap ( ) ; \n - final Map < String , Deque < String > > queryParameters = new SecureHashMap < String , java . util . Deque < String > > ( ) ; \n + final Map < String , Deque < String > > queryParameters = new SecureHashMap < String , java . util . Deque < String > > ( NUMBER0 ) ; \n \n public String getMethod ( ) { \n return method ; \n public final class HeaderMap implements Iterable < String > { \n private final String name ; \n \n HeaderValue ( final String name ) { \n + super ( NUMBER1 ) ; \n this . name = name ; \n }", "msg_token": "Use smaller default sizes"} {"diff": " public class CachedClass { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public CachedClass getCachedClass ( ) { \n return this ;", "msg_token": "remove javadoc warning"} {"diff": " public class FrameDebuggerTree extends DebuggerTree { \n super . visitLocalVariable ( variable ) ; \n } \n \n + public void visitClass ( final PsiClass aClass ) { \n + SINGLE \n + } \n + \n COMMENT \n public void visitStatement ( PsiStatement statement ) { \n if ( lineRange . intersects ( statement . getTextRange ( ) ) ) {", "msg_token": "do not display variables used in local and anonymous classes out of current execution scope"} {"diff": " public class RefactoringQuickListPopupAction extends QuickSwitchSchemeAction { \n return true ; \n } \n \n + @ override \n + public void update ( AnActionEvent e ) { \n + super . update ( e ) ; \n + e . getPresentation ( ) . setVisible ( e . getPlace ( ) == ActionPlaces . MAIN_MENU ) ; \n + } \n + \n protected String getPopupTitle ( AnActionEvent e ) { \n return STRING0 ; \n }", "msg_token": "disable refactor this everywhere but main menu"} {"diff": " public class ChannelLocal < T > { \n COMMENT \n COMMENT \n COMMENT \n - protected T initialValue ( @ suppresswarnings ( STRING0 ) Channel channel ) { \n + protected T initialValue ( Channel channel ) { \n return null ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class WriteTimeoutHandler extends SimpleChannelDownstreamHandler \n timer . stop ( ) ; \n } \n \n - protected long getTimeoutMillis ( @ suppresswarnings ( STRING0 ) MessageEvent e ) { \n + protected long getTimeoutMillis ( MessageEvent e ) { \n return timeoutMillis ; \n }", "msg_token": "Fix some unused imports and warnings"} {"diff": " class ConfusionRuleEvaluator { \n ConfusionProbabilityRule foundRule = null ; \n for ( Rule rule : rules ) { \n if ( rule . getId ( ) . equals ( ConfusionProbabilityRule . RULE_ID ) ) { \n - foundRule = ( ConfusionProbabilityRule ) rules . get ( NUMBER0 ) ; \n + foundRule = ( ConfusionProbabilityRule ) rule ; \n break ; \n } \n }", "msg_token": "use the correct rule"} {"diff": " public class MetaClassHelper { \n if ( parameter . getTheClass ( ) == argument ) return NUMBER0 ; \n \n if ( parameter . isInterface ( ) ) { \n - return getMaximumInterfaceDistance ( argument , parameter . getTheClass ( ) ) < < INTERFACE_SHIFT ; \n + int dist = getMaximumInterfaceDistance ( argument , parameter . getTheClass ( ) ) < < INTERFACE_SHIFT ; \n + if ( dist != - NUMBER1 ) return dist ; \n } \n \n long objectDistance = NUMBER0 ; \n public class MetaClassHelper { \n if ( clazz . isPrimitive ( ) ) { \n objectDistance += NUMBER2 ; \n } else { \n - while ( clazz != Object . class ) { \n + while ( clazz != Object . class && clazz != null ) { \n clazz = clazz . getSuperclass ( ) ; \n objectDistance += NUMBER2 ; \n }", "msg_token": "adjust method selection for SAM"} {"diff": " public class DeviceAdminReceiver extends BroadcastReceiver { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION ) \n public static final String ACTION_LOCK_TASK_ENTERING \n public class DeviceAdminReceiver extends BroadcastReceiver { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION ) \n public static final String ACTION_LOCK_TASK_EXITING \n = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static final String EXTRA_LOCK_TASK_PACKAGE = \n STRING1 ;", "msg_token": "Fix the javadocs for lock task mode intents"} {"diff": " public class MockCompileContext implements CompileContextEx { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n + SINGLE \n + public boolean isRebuildRequested ( ) { \n + throw new UnsupportedOperationException ( STRING1 ) ; \n + } \n + \n + SINGLE \n + @ nullable \n + public String getRebuildReason ( ) { \n + throw new UnsupportedOperationException ( STRING2 ) ; \n + } \n + \n @ override \n public Module getModuleByFile ( VirtualFile file ) { \n return module ;", "msg_token": "Implemented abstract methods introduced in newer IDEA"} {"diff": " public final class Bitmap_Delegate { \n } \n \n @ layoutlibdelegate \n - COMMENT \n + COMMENT \n sManager . removeJavaReferenceFor ( nativeBitmap ) ; \n + return true ; \n } \n \n @ layoutlibdelegate \n public class TestDelegates extends TestCase { \n originalClass . getName ( ) ) , \n delegateMethod . getAnnotation ( LayoutlibDelegate . class ) ) ; \n \n + SINGLE \n + assertTrue ( \n + String . format ( STRING0 + \n + STRING1 , \n + delegateClass . getName ( ) , \n + getMethodName ( delegateMethod ) , \n + originalMethod . getReturnType ( ) . getName ( ) ) , \n + delegateMethod . getReturnType ( ) == originalMethod . getReturnType ( ) ) ; \n + \n SINGLE \n assertTrue ( \n String . format (", "msg_token": "Layoutlib tests now check methods return value DO NOT MERGE"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add notes about circular buffer to EvictingQueue javadocs"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class JcrNodePathCreationTest extends JcrRouteTestSupport { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class JcrProducerSubNodeTest extends JcrRouteTestSupport { \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class JcrProducerTest extends JcrRouteTestSupport {", "msg_token": "Minor Organize imports to reduce warnings"} {"diff": " public class StatusBarService extends Service implements CommandQueue . Callbacks \n PixelFormat . RGBX_8888 ) ; \n lp . gravity = Gravity . TOP | Gravity . FILL_HORIZONTAL ; \n lp . setTitle ( STRING0 ) ; \n - SINGLE \n + lp . windowAnimations = com . android . internal . R . style . Animation_StatusBar ; \n \n WindowManagerImpl . getDefault ( ) . addView ( view , lp ) ; \n }", "msg_token": "Add animation for the status bar going away"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n public class DatabaseTest { \n \n private File databaseDirectory ; \n public class DatabaseTest { \n } \n \n @ test \n + @ ignore \n public void shouldEnableRemoteShellByDefault ( ) throws IOException \n { \n int wellKnownSocket = NUMBER0 ;", "msg_token": "Ignored test for now"} {"diff": " public class EntityIdentifier { \n ) ; \n \n private final EntityBinding entityBinding ; \n - private AttributeBinding attributeBinding ; \n + private KeyValueBinding attributeBinding ; \n private IdentifierGenerator identifierGenerator ; \n private IdGenerator idGenerator ; \n SINGLE \n public class EntityIdentifier { \n this . entityBinding = entityBinding ; \n } \n \n - public AttributeBinding getValueBinding ( ) { \n + public KeyValueBinding getValueBinding ( ) { \n return attributeBinding ; \n } \n \n - public void setValueBinding ( AttributeBinding attributeBinding ) { \n + public void setValueBinding ( KeyValueBinding attributeBinding ) { \n if ( this . attributeBinding != null ) { \n SINGLE \n SINGLE", "msg_token": "Change EntityIdentifier attributeBinding to be type KeyValueBinding"} {"diff": " public interface TreeNode \n COMMENT \n JsonParser traverse ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + JsonParser traverse ( ObjectCodec codec ) ; \n }", "msg_token": "Add TreeNode traverse ObjectCodec"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class TreeUtil { \n tree . validate ( ) ; \n } \n } else { \n - okToScroll = false ; \n + Application app = ApplicationManager . getApplication ( ) ; \n + if ( app != null && app . isUnitTestMode ( ) ) { \n + okToScroll = false ; \n + } \n } \n \n Runnable selectRunnable = new Runnable ( ) {", "msg_token": "usage view scrolls to selection"} {"diff": " public abstract class DBCollection { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract void createIndex ( DBObject keys , DBObject options , DBEncoder encoder ) ;", "msg_token": "deprecate createIndex that takes an Encoder"} {"diff": " public class NetworkStatsServiceTest extends AndroidTestCase { \n expect ( mSettings . getPollInterval ( ) ) . andReturn ( HOUR_IN_MILLIS ) . anyTimes ( ) ; \n expect ( mSettings . getTimeCacheMaxAge ( ) ) . andReturn ( DAY_IN_MILLIS ) . anyTimes ( ) ; \n expect ( mSettings . getSampleEnabled ( ) ) . andReturn ( true ) . anyTimes ( ) ; \n - expect ( mSettings . getReportXtOverDev ( ) ) . andReturn ( true ) . anyTimes ( ) ; \n \n final Config config = new Config ( bucketDuration , deleteAge , deleteAge ) ; \n expect ( mSettings . getDevConfig ( ) ) . andReturn ( config ) . anyTimes ( ) ;", "msg_token": "Follow API removal"} {"diff": " public class WebDriverManager { \n } \n \n String url ; \n - if ( System . getProperty ( STRING0 ) != null ) { \n - url = System . getProperty ( STRING0 ) ; \n + if ( System . getenv ( STRING0 ) != null ) { \n + url = System . getenv ( STRING0 ) ; \n } else { \n url = STRING1 ; \n }", "msg_token": "Fix Selenium test url"} {"diff": " public class BulkProcessorIT extends ESIntegTestCase { \n public void testBulkProcessorConcurrentRequests ( ) throws Exception { \n int bulkActions = randomIntBetween ( NUMBER0 , NUMBER1 ) ; \n int numDocs = randomIntBetween ( bulkActions , bulkActions + NUMBER1 ) ; \n - int concurrentRequests = randomIntBetween ( NUMBER2 , NUMBER0 ) ; \n + int concurrentRequests = randomIntBetween ( NUMBER2 , NUMBER3 ) ; \n \n int expectedBulkActions = numDocs / bulkActions ; \n \n public class BulkProcessorIT extends ESIntegTestCase { \n \n Set < String > ids = new HashSet < > ( ) ; \n for ( BulkItemResponse bulkItemResponse : listener . bulkItems ) { \n - assertThat ( bulkItemResponse . isFailed ( ) , equalTo ( false ) ) ; \n + assertThat ( bulkItemResponse . getFailureMessage ( ) , bulkItemResponse . isFailed ( ) , equalTo ( false ) ) ; \n assertThat ( bulkItemResponse . getIndex ( ) , equalTo ( STRING0 ) ) ; \n assertThat ( bulkItemResponse . getType ( ) , equalTo ( STRING0 ) ) ; \n SINGLE", "msg_token": "Reduce maximum number of concurrent requests in BulkProcessorIT"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Post implements Serializable { \n \n public JSONArray getJSONCategories ( ) { \n JSONArray jArray = null ; \n - if ( categories == null ) \n - categories = STRING0 ; \n + if ( categories == null ) { \n + categories = STRING1 ; \n + } \n try { \n categories = StringUtils . unescapeHTML ( categories ) ; \n - jArray = new JSONArray ( categories ) ; \n + if ( TextUtils . isEmpty ( categories ) ) { \n + jArray = new JSONArray ( categories ) ; \n + } else { \n + jArray = new JSONArray ( ) ; \n + } \n } catch ( JSONException e ) { \n AppLog . e ( T . POSTS , e ) ; \n }", "msg_token": "avoid a recuring exception print when no categories are selected"} {"diff": " public class XmppConnectionService extends Service { \n \n public XmppConnection createConnection ( final Account account ) { \n final SharedPreferences sharedPref = getPreferences ( ) ; \n - account . setResource ( sharedPref . getString ( STRING0 , getString ( R . string . default_resource ) ) \n - . toLowerCase ( Locale . getDefault ( ) ) ) ; \n + String resource ; \n + try { \n + resource = sharedPref . getString ( STRING0 , getString ( R . string . default_resource ) ) . toLowerCase ( Locale . ENGLISH ) ; \n + if ( resource . trim ( ) . isEmpty ( ) ) { \n + throw new Exception ( ) ; \n + } \n + } catch ( Exception e ) { \n + resource = STRING1 ; \n + } \n + account . setResource ( resource ) ; \n final XmppConnection connection = new XmppConnection ( account , this ) ; \n connection . setOnMessagePacketReceivedListener ( this . mMessageParser ) ; \n connection . setOnStatusChangedListener ( this . statusListener ) ;", "msg_token": "add exception handling when loading default resource"} {"diff": " public interface Person extends Observable , Parcelable , Persistable { \n String getName ( ) ; \n \n @ bindable \n - @ index ( name = STRING0 ) \n + @ index ( value = STRING0 ) \n String getEmail ( ) ; \n \n @ bindable", "msg_token": "Fix example project"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class XML {", "msg_token": "Fix NullPointerException in XML toString object tagName"} {"diff": " class NonRecursivePropertyPlaceholderHelper extends PropertyPlaceholderHelper { \n \n private final PlaceholderResolver resolver ; \n \n - public NonRecursivePlaceholderResolver ( PlaceholderResolver resolver ) { \n + NonRecursivePlaceholderResolver ( PlaceholderResolver resolver ) { \n this . resolver = resolver ; \n } \n \n public class DefaultErrorViewIntegrationTests { \n assertFalse ( STRING0 + content , content . contains ( STRING1 ) ) ; \n } \n \n + public static String injectCall ( ) { \n + return STRING1 ; \n + } \n + \n @ target ( ElementType . TYPE ) \n @ retention ( RetentionPolicy . RUNTIME ) \n @ documented \n public class DefaultErrorViewIntegrationTests { \n \n } \n \n - public static String injectCall ( ) { \n - return STRING1 ; \n - } \n - \n }", "msg_token": "Fix checkstyle issues"} {"diff": " class CallbackProxy extends Handler { \n SINGLE \n SINGLE \n SINGLE \n - if ( messagesBlocked ( ) ) return ; \n + if ( messagesBlocked ( ) ) { \n + synchronized ( this ) { \n + notify ( ) ; \n + } \n + return ; \n + } \n switch ( msg . what ) { \n case PAGE_STARTED : \n String startedUrl = msg . getData ( ) . getString ( STRING0 ) ;", "msg_token": "Fix deadlock of WebViewCoreThread"} {"diff": " public class TokenMetadata \n private final Set < Pair < Token , InetAddress > > movingEndpoints = new HashSet < Pair < Token , InetAddress > > ( ) ; \n \n SINGLE \n - private final Map < Token , InetAddress > relocatingTokens = new HashMap < Token , InetAddress > ( ) ; \n + private final ConcurrentMap < Token , InetAddress > relocatingTokens = new ConcurrentHashMap < Token , InetAddress > ( ) ; \n \n COMMENT \n private final ReadWriteLock lock = new ReentrantReadWriteLock ( true ) ;", "msg_token": "make TokenMetadata relocatingTokens a ConcurrentMap"} {"diff": " public class Poller extends PollerBase implements Runnable \n public void start ( ) \n { \n worker = new Thread ( this , name ) ; \n + worker . setDaemon ( true ) ; \n worker . start ( ) ; \n }", "msg_token": "Set daemon flag on poller threads"} {"diff": " public class LogAspect { \n COMMENT \n COMMENT \n COMMENT \n - @ around ( STRING0 ) \n + @ around ( STRING1 ) \n public Object traceMethod ( final ProceedingJoinPoint proceedingJoinPoint ) throws Throwable { \n Object returnVal = null ; \n final Logger logger = this . getLog ( proceedingJoinPoint ) ;", "msg_token": "reset log aspect config"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public final class Failures \n type = ( ( Failure ) failure ) . getType ( ) ; \n } \n else { \n - type = failure . getClass ( ) . getCanonicalName ( ) ; \n + Class < ? > clazz = failure . getClass ( ) ; \n + type = firstNonNull ( clazz . getCanonicalName ( ) , clazz . getName ( ) ) ; \n } \n \n return new ExecutionFailureInfo ( type ,", "msg_token": "Fix handling of failure class without canonical name"} {"diff": " public class JSSESocketFactory \n } else { \n sessionCacheSize = defaultSessionCacheSize ; \n } \n - int sessionCacheTimeout ; \n + int sessionTimeout ; \n if ( attributes . get ( \n AbstractEndpoint . SSL_ATTR_SESSION_TIMEOUT ) != null ) { \n - sessionCacheTimeout = Integer . parseInt ( \n + sessionTimeout = Integer . parseInt ( \n ( String ) attributes . get ( \n AbstractEndpoint . SSL_ATTR_SESSION_TIMEOUT ) ) ; \n } else { \n - sessionCacheTimeout = defaultSessionTimeout ; \n + sessionTimeout = defaultSessionTimeout ; \n } \n SSLSessionContext sessionContext = \n context . getServerSessionContext ( ) ; \n if ( sessionContext != null ) { \n sessionContext . setSessionCacheSize ( sessionCacheSize ) ; \n - sessionContext . setSessionTimeout ( sessionCacheTimeout ) ; \n + sessionContext . setSessionTimeout ( sessionTimeout ) ; \n } \n \n SINGLE", "msg_token": "Use better variable name"} {"diff": " \n - package NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Move URLTest to the correct package"} {"diff": " public class Driver \n SINGLE \n try { \n for ( Operator operator : operators ) { \n - if ( operator instanceof AutoCloseable ) { \n try { \n - ( ( AutoCloseable ) operator ) . close ( ) ; \n + operator . close ( ) ; \n } \n catch ( InterruptedException t ) { \n SINGLE \n public class Driver \n operator . getOperatorContext ( ) . getOperatorId ( ) , \n driverContext . getTaskId ( ) ) ; \n } \n - } \n } \n driverContext . finished ( ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface Operator \n + extends AutoCloseable \n { \n ListenableFuture < ? > NOT_BLOCKED = Futures . immediateFuture ( null ) ; \n \n public interface Operator \n COMMENT \n COMMENT \n Page getOutput ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + default void close ( ) \n + throws Exception \n + { \n + } \n }", "msg_token": "Make Operator implement AutoCloseable"} {"diff": " public class MultipleParentClassLoader extends ClassLoader { \n classLoaders . add ( type . getClassLoader ( ) ) ; \n } \n return append ( classLoaders ) ; \n - \n } \n \n COMMENT", "msg_token": "Removed an accidental line break to retain the standard code formatting"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class ThreadMonitorTest \n { \n public final static int DURATION = NUMBER0 ; \n \n + @ ignore \n @ test \n public void monitorTest ( ) throws Exception \n {", "msg_token": "Ignore poor test case ThreadMonitorTest"} {"diff": " public class ReaderCharacterSource implements CharacterSource { \n try { \n ensureBuffer ( ) ; \n \n + foundEscape = false ; \n if ( readBuf [ index ] == STRING0 ) { \n index ++ ; \n return EMPTY_CHARS ; \n } \n \n int start = index ; \n - foundEscape = false ; \n \n char [ ] results = null ; \n boolean foundEnd = false ;", "msg_token": "Set found escape when parsing empty strings"} {"diff": " public final class MediaType { \n createConstant ( APPLICATION_TYPE , STRING0 ) ; \n public static final MediaType PDF = createConstant ( APPLICATION_TYPE , STRING1 ) ; \n public static final MediaType POSTSCRIPT = createConstant ( APPLICATION_TYPE , STRING2 ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final MediaType PROTOBUF = createConstant ( APPLICATION_TYPE , STRING3 ) ; \n public static final MediaType RDF_XML_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING4 ) ; \n public static final MediaType RTF_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING5 ) ; \n public static final MediaType SHOCKWAVE_FLASH = createConstant ( APPLICATION_TYPE , \n public final class MediaType { \n . put ( OPENDOCUMENT_TEXT , OPENDOCUMENT_TEXT ) \n . put ( PDF , PDF ) \n . put ( POSTSCRIPT , POSTSCRIPT ) \n + . put ( PROTOBUF , PROTOBUF ) \n . put ( RDF_XML_UTF_8 , RDF_XML_UTF_8 ) \n . put ( RTF_UTF_8 , RTF_UTF_8 ) \n . put ( SHOCKWAVE_FLASH , SHOCKWAVE_FLASH )", "msg_token": "Add application protobuf mime type from"} {"diff": " public abstract class XmlElementStorage implements StateStorage , Disposable { \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n \n @ nonnls private static final String ATTR_NAME = STRING1 ; \n + public static final String VERSION_FILE_SUFFIX = STRING2 ; \n \n protected TrackingPathMacroSubstitutor myPathMacroSubstitutor ; \n @ notnull private final String myRootElementName ; \n public abstract class XmlElementStorage implements StateStorage , Disposable { \n StorageUtil . sendContent ( myStreamProvider , myFileSpec , copy , roamingType , true ) ; \n Document versionDoc = createVersionDocument ( copy ) ; \n if ( ! versionDoc . getRootElement ( ) . getChildren ( ) . isEmpty ( ) ) { \n - StorageUtil . sendContent ( myStreamProvider , myFileSpec + STRING2 , versionDoc , roamingType , true ) ; \n + StorageUtil . sendContent ( myStreamProvider , myFileSpec + VERSION_FILE_SUFFIX , versionDoc , roamingType , true ) ; \n } \n } \n }", "msg_token": "ignore ver as well"} {"diff": " public class JBOptionButton extends JButton implements MouseMotionListener { \n @ override \n protected void paintChildren ( Graphics g ) { \n super . paintChildren ( g ) ; \n - AllIcons . General . ArrowDown . paintIcon ( this , g , myMoreRec . x , myMoreRec . y ) ; \n - \n + boolean dark = UIUtil . isUnderDarcula ( ) ; \n + int off = dark ? NUMBER0 : NUMBER1 ; \n + AllIcons . General . ArrowDown . paintIcon ( this , g , myMoreRec . x - off , myMoreRec . y ) ; \n + if ( dark ) return ; \n int y1 = myMoreRec . y - NUMBER2 ; \n int y2 = myMoreRec . y + myMoreRec . height + NUMBER2 ;", "msg_token": "dop out Commit button has misplaces arrow icon"} {"diff": " public class ConvertViolationsToIssues implements DatabaseMigration { \n \n \n private static class ViolationHandler extends AbstractListHandler < Map < String , Object > > { \n - private static final String SQL ; \n + static final String SQL ; \n static { \n StringBuilder sb = new StringBuilder ( STRING0 + \n STRING1 +", "msg_token": "Fix quality flaw in ConvertViolationsToIssues"} {"diff": " public class DefaultRecordStore implements RecordStore { \n final List < Object > chunk = batchChunks . poll ( ) ; \n final List < Data > keyValueSequence = loadAndGet ( chunk ) ; \n if ( keyValueSequence . isEmpty ( ) ) { \n + if ( finishedBatchCounter . decrementAndGet ( ) == NUMBER0 ) { \n + loaded . set ( true ) ; \n + } \n continue ; \n } \n sendOperation ( keyValueSequence , finishedBatchCounter ) ; \n public class DefaultRecordStore implements RecordStore { \n } \n \n private List < Data > loadAndGet ( List < Object > keys ) { \n - Map < Object , Object > entries = mapContainer . getStore ( ) . loadAll ( keys ) ; \n + Map < Object , Object > entries = Collections . emptyMap ( ) ; \n + try { \n + entries = mapContainer . getStore ( ) . loadAll ( keys ) ; \n + } catch ( Throwable t ) { \n + logger . warning ( STRING0 , t ) ; \n + } \n return getKeyValueSequence ( entries ) ; \n }", "msg_token": "add exception handling"} {"diff": " public class NewChunk extends Chunk { \n return new CBSChunk ( cbuf , cbuf [ NUMBER0 ] , cbuf [ NUMBER1 ] ) ; \n } \n \n - SINGLE \n final boolean fpoint = xmin < NUMBER0 || min < Long . MIN_VALUE || max > Long . MAX_VALUE ; \n + \n + COMMENT \n + SINGLE \n SINGLE \n if ( ! fpoint && ( _nzCnt + _naCnt ) * NUMBER2 < _len2 && _len2 < NUMBER3 && SINGLE \n lemin > Short . MIN_VALUE && lemax <= Short . MAX_VALUE ) SINGLE \n if ( _len2 == _len ) return new CX2Chunk ( _ls , _xs , _len2 , _nzCnt , _naCnt ) ; SINGLE \n else return new CX2Chunk ( _ls , _xs , _len2 , _len ) ; \n + COMMENT \n \n SINGLE \n SINGLE", "msg_token": "Comment out CX2Chunk temporarily since it triggers unimplemented failures"} {"diff": " public class Notification implements Parcelable \n extras . putBoolean ( EXTRA_PROGRESS_INDETERMINATE , mProgressIndeterminate ) ; \n extras . putBoolean ( EXTRA_SHOW_CHRONOMETER , mUseChronometer ) ; \n extras . putBoolean ( EXTRA_SHOW_WHEN , mShowWhen ) ; \n + if ( mLargeIcon != null ) { \n + extras . putParcelable ( EXTRA_LARGE_ICON , mLargeIcon ) ; \n + } \n } \n \n COMMENT", "msg_token": "Save Notification large icon to extras"} {"diff": " \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 package NAMESPACE ; \n \n \n public class TridentKafkaWordCount { \n cluster . killTopology ( STRING0 ) ; \n cluster . shutdown ( ) ; \n } \n - } \n + }", "msg_token": "added apache license"} {"diff": " public COMMENT class AutoBuffer { \n int oldpos = _bb . position ( ) ; \n _bb = ByteBuffer . wrap ( MemoryManager . arrayCopyOfRange ( ary , NUMBER0 , newLen ) , oldpos , newLen - oldpos ) \n . order ( ByteOrder . nativeOrder ( ) ) ; \n - } else { \n + } else if ( _bb . capacity ( ) != BBP_BIG . _size ) { SINGLE \n int oldPos = _bb . position ( ) ; \n _bb . flip ( ) ; \n _bb = BBP_BIG . make ( ) . put ( _bb ) ;", "msg_token": "Fixes a bug that allowed big buffers to be constantly reallocated when it wasn t needed"} {"diff": " public class MavenExternalParameters { \n encodeCoreAndRunnerSettings ( coreSettings , runnerSettings , list ) ; \n \n if ( runnerSettings . isSkipTests ( ) ) { \n - addProperty ( list , STRING0 , STRING1 ) ; \n + addProperty ( list , STRING2 , STRING1 ) ; \n } \n \n for ( Map . Entry < String , String > entry : runnerSettings . getMavenProperties ( ) . entrySet ( ) ) {", "msg_token": "use skipTests instead of maven test skip option"} {"diff": " public class Constants { \n \n SINGLE \n SINGLE \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION = STRING1 ; \n \n SINGLE \n SINGLE \n - public static final String VERSION_DATE = STRING2 ; \n + public static final String VERSION_DATE = STRING3 ; \n \n SINGLE \n SINGLE", "msg_token": "Change build identifiers for next release"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \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 - COMMENT \n COMMENT \n - public static String minus ( String left , Object value ) { \n + public static String minus ( String self , Object value ) { \n String text = RegexUtils . quote ( toString ( value ) ) ; \n - return left . replaceFirst ( text , STRING0 ) ; \n + return self . replaceFirst ( text , STRING0 ) ; \n } \n \n COMMENT", "msg_token": "remove misleading javadoc statement"} {"diff": " public class GpodnetAuthenticationActivity extends ActionBarActivity { \n @ override \n public void onClick ( View v ) { \n final int position = spinnerDevices . getSelectedItemPosition ( ) ; \n - selectedDevice = devices . get ( ) . get ( position ) ; \n - advance ( ) ; \n + if ( position != AdapterView . INVALID_POSITION ) { \n + selectedDevice = devices . get ( ) . get ( position ) ; \n + advance ( ) ; \n + } \n } \n } ) ; \n }", "msg_token": "Fixed NullpointerException in GpodnetAuthenticationActivity"} {"diff": " public class MongoConfigUtil { \n } \n } \n \n - public static BasicDBObject getDBObject ( Configuration conf , String key ) { \n + public static DBObject getDBObject ( Configuration conf , String key ) { \n try { \n final String json = conf . get ( key ) ; \n final BasicDBObject obj = ( BasicDBObject ) JSON . parse ( json ) ;", "msg_token": "don t expose implementation of dbobject in config util"} {"diff": " public abstract class AbstractTestQueries \n { \n assertQuery ( \n STRING0 + \n - STRING1 + \n - STRING2 ) ; \n + STRING3 + \n + STRING4 + \n + STRING5 ) ; \n \n assertQuery ( \n STRING0 + \n - STRING6 + \n - STRING7 , \n + STRING8 + \n + STRING9 + \n + STRING5 , \n STRING10 + \n STRING11 + \n - STRING6 + \n - STRING12 + \n + STRING8 + \n + STRING4 + \n + STRING13 + \n STRING14 + \n STRING15 + \n - STRING6 + \n - STRING16 + \n + STRING8 + \n + STRING17 + \n + STRING13 + \n STRING18 ) ; \n }", "msg_token": "Reduce data size for test query"} {"diff": " \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Fixed spelling error in package info"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n @ jsonautodetect \n public class IOState < T extends Stoppable > { \n \n IOState that = ( IOState ) o ; \n \n - if ( ! stoppable . equals ( that . stoppable ) ) return false ; \n - \n - return true ; \n + return Objects . equals ( this . stoppable , that . stoppable ) ; \n } \n \n @ override \n public int hashCode ( ) { \n - int result = stoppable . hashCode ( ) ; \n - result = NUMBER0 * result + stoppable . hashCode ( ) ; \n - return result ; \n + return Objects . hash ( this . stoppable ) ; \n } \n }", "msg_token": "Fix NPE in IOState hashCode and IOState equals"} {"diff": " public class AbstractTreeBuilder implements Disposable { \n \n protected void runBackgroundLoading ( @ notnull final Runnable runnable ) { \n if ( isDisposed ( ) ) return ; \n - \n - final Application app = ApplicationManager . getApplication ( ) ; \n - if ( app != null ) { \n - app . runReadAction ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - runnable . run ( ) ; \n - } \n - } ) ; \n - } \n - else { \n - runnable . run ( ) ; \n - } \n + runnable . run ( ) ; \n } \n \n protected void updateAfterLoadedInBackground ( @ notnull Runnable runnable ) {", "msg_token": "don t take readAction here"} {"diff": " public final class Aeron implements AutoCloseable \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public Context aeronDirectoryName ( String dirName ) \n + { \n + super . aeronDirectoryName ( dirName ) ; \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public void close ( ) \n public final class MediaDriver implements AutoCloseable \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public Context aeronDirectoryName ( String dirName ) \n + { \n + super . aeronDirectoryName ( dirName ) ; \n + return this ; \n + } \n + \n public EpochClock epochClock ( ) \n { \n return epochClock ;", "msg_token": "Override CommonContext aeronDirectoryName in order to use covarient return types"} {"diff": " public class MapDestroyTest extends HazelcastTestSupport { \n public void setUp ( ) { \n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( NUMBER0 ) ; \n Config config = getConfig ( ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + config . setProperty ( GroupProperty . PARTITION_MAX_PARALLEL_REPLICATIONS , String . valueOf ( Integer . MAX_VALUE ) ) ; \n instance1 = factory . newHazelcastInstance ( config ) ; \n instance2 = factory . newHazelcastInstance ( config ) ; \n }", "msg_token": "Use unlimited parallel replications for MapDestroyTest"} {"diff": " public class ZWaveProductDatabase { \n } \n \n public List < ZWaveDbProduct > GetProducts ( ) { \n - if ( selManufacturer == null ) \n - return null ; \n + if ( selManufacturer == null ) { \n + return Collections . emptyList ( ) ; \n + } \n \n return selManufacturer . Product ; \n } \n public class ZWaveProductDatabase { \n COMMENT \n COMMENT \n public boolean FindManufacturer ( int manufacturerId ) { \n - if ( database == null ) \n + if ( database == null ) { \n return false ; \n + } \n \n selManufacturer = null ; \n selProduct = null ;", "msg_token": "Fix return from products list to avoid null return"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexRotationThread extends Periodical { \n LOG . warn ( msg ) ; \n activityWriter . write ( new Activity ( msg , IndexRotationThread . class ) ) ; \n \n - deflector . pointTo ( shouldBeTarget , currentTarget ) ; \n + if ( ClusterHealthStatus . RED == indices . waitForRecovery ( shouldBeTarget ) ) { \n + LOG . error ( STRING0 ) ; \n + } else { \n + deflector . pointTo ( shouldBeTarget , currentTarget ) ; \n + } \n } \n } catch ( NoTargetIndexException e ) { \n LOG . warn ( STRING1 ) ;", "msg_token": "Skip deflector update if new target index isn t healthy"} {"diff": " import NAMESPACE ; \n public class ContactProtocolButton extends SIPCommButton { \n \n private Contact protocolContact ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public ContactProtocolButton ( Image bgImage , Image rolloverImage ) { \n - super ( bgImage , rolloverImage ) ; \n + public ContactProtocolButton ( Image bgImage ) { \n + super ( bgImage , bgImage ) ; \n } \n \n COMMENT", "msg_token": "constructor takes one image now"} {"diff": " public class WebAppContext extends ServletContextHandler implements WebAppClassL \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve WebAppContext classloading javadoc"} {"diff": " public class EmbeddedThroughput \n STRING0 , \n NUMBER_OF_MESSAGES , MESSAGE_LENGTH , CHANNEL , STREAM_ID ) ; \n \n + long backPressureCount = NUMBER0 ; \n + \n for ( long i = NUMBER0 ; i < NUMBER_OF_MESSAGES ; i ++ ) \n { \n ATOMIC_BUFFER . putLong ( NUMBER0 , i ) ; \n \n while ( ! publication . offer ( ATOMIC_BUFFER , NUMBER0 , ATOMIC_BUFFER . capacity ( ) ) ) \n { \n + backPressureCount ++ ; \n OFFER_IDLE_STRATEGY . idle ( NUMBER0 ) ; \n } \n } \n \n - System . out . println ( STRING1 ) ; \n + System . out . println ( STRING2 + ( ( double ) backPressureCount / NUMBER_OF_MESSAGES ) ) ; \n \n if ( NUMBER0 < LINGER_TIMEOUT_MS ) \n {", "msg_token": "Print the back pressure ratio to see what ratio of appends are back pressured"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static < K , V > Map < K , V > subMap ( Map < K , V > map , K [ ] keys ) { \n + Map < K , V > answer = new LinkedHashMap < K , V > ( keys . length ) ; \n + for ( K key : keys ) { \n + answer . put ( key , map . get ( key ) ) ; \n + } \n + return answer ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add DGM variant for Map subMap supporting an array of keys"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IdeBorderFactory { \n return new IdeaTitledBorder ( title ) ; \n } \n \n + @ deprecated \n + SINGLE \n + public static TitledBorder createTitledHeaderBorder ( String title ) { \n + return new IdeaTitledBorder ( title ) ; \n + } \n + \n private static Color getBorderColor ( ) { \n return UIUtil . getBorderColor ( ) ; \n } \n - } \n + }", "msg_token": "Have an API back"} {"diff": " public class GrMethodDefinitionImpl extends GroovyPsiElementImpl implements GrMe \n PsiClassType [ ] superClassTypes = psiClass . getSuperTypes ( ) ; \n \n for ( PsiClassType superClassType : superClassTypes ) { \n - assert superClassType instanceof GrInterfaceDefinition ; \n - \n PsiClass resolvedSuperClass = superClassType . resolve ( ) ; \n \n + assert resolvedSuperClass instanceof GrInterfaceDefinition ; \n + \n if ( resolvedSuperClass == null ) continue ; \n PsiMethod [ ] superClassMethods = resolvedSuperClass . getMethods ( ) ;", "msg_token": "interface can extend only interface"} {"diff": " public class GeocodingUtilities { \n public boolean isCancelled ( ) { \n return result != null && result . isCancelled ( ) ; \n } \n - } , mainWord , StringMatcherMode . CHECK_EQUALS_FROM_SPACE ) ; SINGLE \n + } , mainWord , StringMatcherMode . CHECK_EQUALS_FROM_SPACE ) ; \n + req . setBBoxRadius ( road . getLocation ( ) . getLatitude ( ) , road . getLocation ( ) . getLongitude ( ) , NUMBER0 ) ; \n reader . searchAddressDataByName ( req ) ; \n }", "msg_token": "Speed up geocoding search"} {"diff": " class MailSubsystemParser implements XMLStreamConstants , XMLElementReader < List < M \n COMMENT \n for ( Property mailSession : sessions ) { \n String jndi = mailSession . getName ( ) ; \n - log . info ( STRING0 + jndi ) ; \n + log . debug ( STRING0 + jndi ) ; \n ModelNode sessionData = mailSession . getValue ( ) ; \n writer . writeStartElement ( Element . MAIL_SESSION . getLocalName ( ) ) ; \n \n class MailSubsystemParser implements XMLStreamConstants , XMLElementReader < List < M \n \n \n private MailSessionConfig parseMailSession ( final XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { \n - log . info ( STRING1 ) ; \n + log . debug ( STRING1 ) ; \n MailSessionConfig cfg = new MailSessionConfig ( ) ; \n \n for ( int i = NUMBER0 ; i < reader . getAttributeCount ( ) ; i ++ ) {", "msg_token": "Reduce log level in parsing"} {"diff": " public @ interface BugPattern { \n COMMENT \n public @ interface NoCustomSuppression { } \n \n - \n - SINGLE \n public class Instance { \n public String name ; \n public String summary ;", "msg_token": "Remove completed FIXME"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ContextConfig implements LifecycleListener { \n \n try { \n source = new InputSource ( contextXml . toString ( ) ) ; \n - stream = contextXml . openStream ( ) ; \n + URLConnection xmlConn = contextXml . openConnection ( ) ; \n + xmlConn . setUseCaches ( false ) ; \n + stream = xmlConn . getInputStream ( ) ; \n } catch ( Exception e ) { \n log . error ( sm . getString ( STRING0 , \n contextXml ) , e ) ;", "msg_token": "Prevent possible WAR file locking when reading context xml from WAR"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CalculateDenseNodePrepareStep extends ProcessorStep < Batch < InputRela \n { \n if ( cursors [ i ] > NUMBER0 ) \n { \n - sender . send ( inProgressBatches [ i ] ) ; \n + sender . send ( cursors [ i ] == batchSize \n + ? inProgressBatches [ i ] \n + : Arrays . copyOf ( inProgressBatches [ i ] , cursors [ i ] ) ) ; \n } \n } \n }", "msg_token": "Fixed a counting issues for trailing batches"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestMultimapAggAggregation \n Signature signature = new Signature ( NAME , AGGREGATE , mapType . getTypeSignature ( ) , keyType . getTypeSignature ( ) , valueType . getTypeSignature ( ) ) ; \n InternalAggregationFunction aggFunc = metadata . getFunctionRegistry ( ) . getAggregateFunctionImplementation ( signature ) ; \n \n - Map < K , List < V > > map = Maps . newHashMap ( ) ; \n + Map < K , List < V > > map = new HashMap < > ( ) ; \n for ( int i = NUMBER0 ; i < expectedKeys . size ( ) ; i ++ ) { \n if ( ! map . containsKey ( expectedKeys . get ( i ) ) ) { \n map . put ( expectedKeys . get ( i ) , new ArrayList < > ( ) ) ;", "msg_token": "Replace Maps newHashMap with new HashMap"} {"diff": " public class RealmAdapterTest extends AndroidTestCase { \n RealmAdapter realmAdapter = new RealmAdapter ( getContext ( ) , resultList , automaticUpdate ) ; \n \n testRealm . beginTransaction ( ) ; \n - try { \n - realmAdapter . getRealmResults ( ) . remove ( NUMBER0 ) ; \n - fail ( STRING0 ) ; \n - } catch ( RealmException ignore ) { \n - } finally { \n - testRealm . cancelTransaction ( ) ; \n - } \n + realmAdapter . getRealmResults ( ) . remove ( NUMBER0 ) ; \n + testRealm . commitTransaction ( ) ; \n + assertEquals ( TEST_DATA_SIZE - NUMBER1 , realmAdapter . getCount ( ) ) ; \n + \n + resultList = testRealm . where ( AllTypes . class ) . equalTo ( FIELD_STRING , STRING1 ) . findAll ( ) ; \n + assertEquals ( NUMBER0 , resultList . size ( ) ) ; \n } \n \n public void testSortWithAdapter ( ) {", "msg_token": "Fix unit test"} {"diff": " public class AccountActivity extends Activity { \n settings . setTlsCertVerify ( true ) ; \n settings . setAllowPlainAuth ( false ) ; \n \n - } else if ( domain . equals ( STRING0 ) ) { \n - settings . setDoDnsSrv ( true ) ; \n - settings . setDomain ( domain ) ; \n + } else if ( domain . equals ( STRING1 ) ) { \n + settings . setDoDnsSrv ( false ) ; \n + settings . setDomain ( STRING0 ) ; \n settings . setPort ( DEFAULT_PORT ) ; \n - settings . setServer ( domain ) ; \n + settings . setServer ( STRING0 ) ; \n settings . setRequireTls ( false ) ; \n settings . setTlsCertVerify ( false ) ; \n settings . setAllowPlainAuth ( false ) ;", "msg_token": "added new changes for support facebook accounts"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class SQLiteGeneralTest extends AndroidTestCase { \n + public class SQLiteStatementTest extends AndroidTestCase { \n \n private SQLiteDatabase mDatabase ; \n private File mDatabaseFile ;", "msg_token": "renaming a testfile"} {"diff": " public class InnerHitsIT extends ESIntegTestCase { \n } \n \n @ test \n + @ awaitsfix ( bugUrl = STRING0 ) \n + SINGLE \n public void testNestedInnerHitsWithStoredFieldsAndNoSourceBackcompat ( ) throws Exception { \n assertAcked ( prepareCreate ( STRING1 ) \n . setSettings ( IndexMetaData . SETTING_VERSION_CREATED , Version . V_1_4_2 . id ) \n public class InnerHitsIT extends ESIntegTestCase { \n } \n \n @ test \n + @ awaitsfix ( bugUrl = STRING0 ) \n + SINGLE \n public void testNestedInnerHitsWithExcludeSourceBackcompat ( ) throws Exception { \n assertAcked ( prepareCreate ( STRING1 ) . setSettings ( IndexMetaData . SETTING_VERSION_CREATED , Version . V_1_4_2 . id ) \n . addMapping ( STRING2 , jsonBuilder ( ) . startObject ( ) \n public class InnerHitsIT extends ESIntegTestCase { \n } \n \n @ test \n + @ awaitsfix ( bugUrl = STRING0 ) \n + SINGLE \n public void testNestedInnerHitsHiglightWithExcludeSourceBackcompat ( ) throws Exception { \n assertAcked ( prepareCreate ( STRING1 ) . setSettings ( IndexMetaData . SETTING_VERSION_CREATED , Version . V_1_4_2 . id ) \n . addMapping ( STRING2 , jsonBuilder ( ) . startObject ( )", "msg_token": "muted failing test"} {"diff": " public class SummaryPage2 extends Request2 { \n names [ i ] = source . _names [ cols [ i ] ] ; \n } \n Frame fr = new Frame ( names , vecs ) ; \n + \n + Futures fs = new Futures ( ) ; \n + for ( Vec vec : vecs ) vec . rollupStats ( fs ) ; \n + fs . blockForPending ( ) ; \n + \n summaries = new Summary2 . SummaryTask2 ( ) . doAll ( fr ) . _summaries ; \n if ( summaries != null ) \n for ( int i = NUMBER0 ; i < cols . length ; i ++ )", "msg_token": "do basic stats rollup upfront in Summary2 to avoid stalling on nest mapreduce jobs"} {"diff": " public abstract class BaseStructureConfigurable extends MasterDetailsComponent i \n \n protected class MyRemoveAction extends MyDeleteAction { \n public MyRemoveAction ( ) { \n + SINGLE \n super ( new Condition < Object [ ] > ( ) { \n @ override \n public boolean value ( final Object [ ] objects ) {", "msg_token": "suppress due to javac bug"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ jsonignoreproperties ( ignoreUnknown = true ) \n public class Deployment extends Descriptor { \n \n public static final String EMTPY_DEPLOYER_USER = null ; \n public class Deployment extends Descriptor { \n private final JobId jobId ; \n private final Goal goal ; \n private final String deployerUser ; \n + \n + @ jsoninclude ( JsonInclude . Include . NON_NULL ) \n private final String deployerMaster ; \n + \n + @ jsoninclude ( JsonInclude . Include . NON_NULL ) \n private final String deploymentGroupName ; \n \n COMMENT", "msg_token": "Only include new Deployment fields if non null"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \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 - \n public class ConditionalRunRule implements TestRule { \n \n @ override", "msg_token": "Added some helpful comments to ConditionalRunRule"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Committed Sylvain s test case for OLockManager class"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ArgWriter implements ArgCollector { \n if ( args . isEmpty ( ) ) { \n return args ; \n } \n - GFileUtils . mkdirs ( argsFile . getParentFile ( ) ) ; \n + argsFile . getParentFile ( ) . mkdirs ( ) ; \n try { \n PrintWriter writer = new PrintWriter ( argsFile ) ; \n try {", "msg_token": "Removed usage of GFileUtils pending move to baseServices project"} {"diff": " public class PulseAudioSystem \n PA . context_connect ( \n context , \n null , \n - PA . CONTEXT_NOFAIL , \n + PA . CONTEXT_NOFLAGS , \n NUMBER0 ) ; \n \n try", "msg_token": "Fixes an application freeze when PulseAudio is disabled"} {"diff": " public class ImageWallpaper extends WallpaperService { \n \n glDrawArrays ( GL_TRIANGLE_STRIP , NUMBER0 , NUMBER1 ) ; \n \n - if ( ! mEgl . eglSwapBuffers ( mEglDisplay , mEglSurface ) ) { \n - throw new RuntimeException ( STRING0 ) ; \n - } \n + boolean status = mEgl . eglSwapBuffers ( mEglDisplay , mEglSurface ) ; \n checkEglError ( ) ; \n \n finishGL ( ) ; \n \n - return true ; \n + return status ; \n } \n \n private FloatBuffer createMesh ( int left , int top , float right , float bottom ) {", "msg_token": "Wallpaper software rendering fallback"} {"diff": " public class StartupService { \n SINGLE \n ContextManager . setContext ( context ) ; \n \n - Crittercism . init ( context . getApplicationContext ( ) , Constants . CRITTERCISM_APP_ID , \n - Constants . CRITTERCISM_OATH_KEY , Constants . CRITTERCISM_SECRET , StatisticsService . dontCollectStatistics ( ) ) ; \n + if ( ! StatisticsService . dontCollectStatistics ( ) ) \n + Crittercism . init ( context . getApplicationContext ( ) , Constants . CRITTERCISM_APP_ID , \n + Constants . CRITTERCISM_OATH_KEY , Constants . CRITTERCISM_SECRET ) ; \n \n database . openForWriting ( ) ;", "msg_token": "Don t start the crittercism service ever"} {"diff": " public class BaseKeyboard implements \n \n \n public void destroy ( ) { \n - showing = false ; \n - SINGLE \n - if ( emojiKeyboardView != null ) { \n - SINGLE \n - emojiKeyboardView = null ; \n - } \n + dismiss ( true ) ; \n + \n if ( keyboardStatusListener != null ) { \n keyboardStatusListener . onDismiss ( ) ; \n }", "msg_token": "dismiss emoji keyboard on pause"} {"diff": " public class MimeUtility { \n COMMENT \n COMMENT \n public static final String [ ] [ ] MIME_TYPE_BY_EXTENSION_MAP = new String [ ] [ ] { \n - { STRING0 , STRING1 } , \n + SINGLE \n + { STRING0 , DEFAULT_ATTACHMENT_MIME_TYPE } , \n + { STRING2 , K9_SETTINGS_MIME_TYPE } , \n + SINGLE \n { STRING3 , STRING4 } , \n { STRING5 , STRING6 } , \n { STRING7 , STRING8 } , \n public class MimeUtility { \n { STRING9 , STRING10 } , \n { STRING11 , STRING12 } , \n { STRING13 , STRING14 } , \n - { STRING2 , K9_SETTINGS_MIME_TYPE } , \n { STRING15 , STRING16 } , \n { STRING17 , STRING18 } , \n { STRING19 , STRING20 } ,", "msg_token": "Discourage accidental deletion of essential mime types"} {"diff": " public class ProxyParser { \n \n if ( type . equals ( STRING0 ) ) { \n Node value = deJson ( map . get ( STRING1 ) ) ; \n - Name attr ; \n - if ( map . containsKey ( STRING2 ) ) { \n - attr = ( Name ) deJson ( map . get ( STRING2 ) ) ; \n - } else { \n + Name attr = ( Name ) deJson ( map . get ( STRING2 ) ) ; \n + if ( attr == null ) { \n attr = new Name ( ( String ) map . get ( STRING3 ) ) ; \n } \n return new Attribute ( value , attr , start , end ) ;", "msg_token": "fix a null pointer"} {"diff": " public class ApkMojo extends AbstractAndroidMojo \n continue ; \n } \n } \n - \n - zos . putNextEntry ( new ZipEntry ( zn ) ) ; \n + final ZipEntry ne ; \n + if ( ze . getMethod ( ) == ZipEntry . STORED ) \n + { \n + ne = new ZipEntry ( ze ) ; \n + } \n + else \n + { \n + ne = new ZipEntry ( zn ) ; \n + } \n + \n + zos . putNextEntry ( ne ) ; \n \n InputStream is = zin . getInputStream ( ze ) ;", "msg_token": "By default Android tooling does not compress certain assets and just puts them in as STORED"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ config ( emulateSdk = NUMBER0 ) \n @ runwith ( RobolectricTestRunner . class ) \n public class DebugLoggerTest {", "msg_token": "Added missing javadoc"} {"diff": " public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n class ViewFetcher { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for getImageButton in Solo and ViewFetcher"} {"diff": " public class PythonSdkType extends SdkType { \n } \n \n public static LanguageLevel getLanguageLevelForSdk ( @ nullable Sdk sdk ) { \n - if ( sdk != null ) { \n + if ( sdk != null && sdk . getSdkType ( ) instanceof PythonSdkType ) { \n final PythonSdkFlavor flavor = PythonSdkFlavor . getFlavor ( sdk ) ; \n if ( flavor != null ) { \n return flavor . getLanguageLevel ( sdk ) ;", "msg_token": "checking SDK flavor only makes sense for Python SDK type"} {"diff": " import NAMESPACE ; \n public class TestSparkClient { \n \n SINGLE \n - private static final long TIMEOUT = NUMBER0 ; \n + private static final long TIMEOUT = NUMBER1 ; \n \n private Map < String , String > createConf ( boolean local ) { \n Map < String , String > conf = new HashMap < String , String > ( ) ;", "msg_token": "TestSparkClient throws Timeoutexception Szehon reviewed by Brock"} {"diff": " public class OQueryOperatorEquals extends OQueryOperatorEqualityNotNulls { \n } \n \n public static boolean equals ( final Object iLeft , final Object iRight ) { \n + if ( iLeft == null || iRight == null ) \n + return false ; \n + \n if ( iLeft instanceof ORecord < ? > ) { \n SINGLE \n return comparesValues ( iRight , ( ORecord < ? > ) iLeft ) ;", "msg_token": "fixed bug on equals operator against null left right"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProviderTest { \n assertEquals ( STRING0 , sun . toString ( ) ) ; \n } \n \n + @ test \n + public void testProviderLookup ( ) { \n + PetiteContainer pc = new PetiteContainer ( ) ; \n + \n + pc . registerBean ( Solar3 . class ) ; \n + \n + Planet earth = ( Planet ) pc . getBean ( STRING1 ) ; \n + \n + assertEquals ( STRING2 , earth . toString ( ) ) ; \n + } \n + \n }", "msg_token": "added test for provider lookup"} {"diff": " public class BatchProcessor { \n private TraverseModeSet modes = new TraverseModeSet ( STRING0 ) ; \n private String outputPath ; \n \n - static void main ( String [ ] args ) throws IOException { \n + public static void main ( String [ ] args ) throws IOException { \n \n GenericApplicationContext ctx = new GenericApplicationContext ( ) ; \n XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader ( ctx ) ;", "msg_token": "make batch processor main method public"} {"diff": " public class PipRecentsOverlayManager { \n COMMENT \n public void requestFocus ( boolean allowRecentsFocusable ) { \n mRecentsView . setVisibility ( allowRecentsFocusable ? View . VISIBLE : View . GONE ) ; \n - if ( ! mIsRecentsShown || mIsPipFocusedInRecent ) { \n + if ( ! mIsPipRecentsOverlayShown || ! mIsRecentsShown || mIsPipFocusedInRecent ) { \n return ; \n } \n mIsPipFocusedInRecent = true ; \n public class PipRecentsOverlayManager { \n COMMENT \n COMMENT \n public void clearFocus ( ) { \n - if ( ! mIsRecentsShown || ! mIsPipFocusedInRecent ) { \n + if ( ! mIsPipRecentsOverlayShown || ! mIsRecentsShown || ! mIsPipFocusedInRecent ) { \n return ; \n } \n if ( ! mRecentsView . hasFocus ( ) ) {", "msg_token": "Fix system UI crash"} {"diff": " public final class OperatorDebounceWithTime < T > implements Operator < T , T > { \n emitting = true ; \n } \n \n - if ( localHasValue ) { \n + if ( localHasValue ) { \n try { \n onNextAndComplete . onNext ( localValue ) ; \n } catch ( Throwable e ) { \n public class TestSubscriber < T > extends Subscriber < T > { \n \n @ override \n public void onStart ( ) { \n - if ( initialRequest >= NUMBER0 ) { \n + if ( initialRequest >= NUMBER0 ) { \n requestMore ( initialRequest ) ; \n } \n }", "msg_token": "Remove double whitespace in if conditions"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SimpleMapCache < ModelClass extends Model > extends ModelCache < ModelClass , Map < Object , ModelClass > > { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public SimpleMapCache ( int capacity ) { \n super ( new HashMap < Object , ModelClass > ( capacity ) ) ; \n }", "msg_token": "added comment on constructor"} {"diff": " class ModelCombiner implements ManagedServerBootConfiguration { \n if ( ! binding . get ( DEFAULT_INTERFACE ) . isDefined ( ) ) { \n binding . get ( DEFAULT_INTERFACE ) . set ( defaultInterface ) ; \n } \n - SocketBindingAddHandler . getOperation ( pathAddress ( PathElement . pathElement ( SOCKET_BINDING_GROUP , SOCKET_BINDING_GROUP_NAME ) , \n - PathElement . pathElement ( SOCKET_BINDING , name ) ) , binding ) ; \n + updates . add ( SocketBindingAddHandler . getOperation ( pathAddress ( PathElement . pathElement ( SOCKET_BINDING_GROUP , SOCKET_BINDING_GROUP_NAME ) , \n + PathElement . pathElement ( SOCKET_BINDING , name ) ) , binding ) ) ; \n \n \n }", "msg_token": "add socket bindings to the update list"} {"diff": " public class PreparedQueryNotFoundException extends RequestValidationException \n \n private static String makeMsg ( MD5Digest id ) \n { \n - return String . format ( STRING0 + \n + return String . format ( STRING1 + \n STRING2 + \n - STRING3 , \n + STRING4 , \n id , QueryProcessor . MAX_CACHE_PREPARED , id ) ; \n } \n }", "msg_token": "Fix error message formatting"} {"diff": " public class CommandLineActionFactory { \n DaemonClientServices clientServices = new SingleUseDaemonClientServices ( loggingServices , daemonParameters , System . in ) ; \n DaemonClient client = clientServices . get ( DaemonClient . class ) ; \n return daemonBuildAction ( commandLine , daemonParameters , client ) ; \n - SINGLE \n } \n \n private Action < ExecutionListener > daemonBuildAction ( ParsedCommandLine commandLine , DaemonParameters daemonParameters , DaemonClient client ) {", "msg_token": "Remove TODO from Daz that he has already done"} {"diff": " public class HeadsUpManager implements ViewTreeObserver . OnComputeInternalInsetsL \n \n @ override \n public int compareTo ( HeadsUpEntry o ) { \n + boolean selfFullscreen = hasFullScreenIntent ( entry ) ; \n + boolean otherFullscreen = hasFullScreenIntent ( o . entry ) ; \n + if ( selfFullscreen && ! otherFullscreen ) { \n + return - NUMBER0 ; \n + } else if ( ! selfFullscreen && otherFullscreen ) { \n + return NUMBER0 ; \n + } \n return postTime < o . postTime ? NUMBER0 \n : postTime == o . postTime ? entry . key . compareTo ( o . entry . key ) \n : - NUMBER0 ;", "msg_token": "Changing the ordering for heads up notifications"} {"diff": " public class BillingFileProcessor extends Poller { \n } \n } \n \n - toMarkOwners . add ( new TagGroup ( tagGroup . account , tagGroup . region , tagGroup . zone , tagGroup . product , Operation . getBonusReservedInstances ( utilization ) , tagGroup . usageType , null ) ) ; \n + toMarkOwners . add ( new TagGroup ( tagGroup . account , tagGroup . region , tagGroup . zone , tagGroup . product , Operation . getReservedInstances ( utilization ) , tagGroup . usageType , null ) ) ; \n } \n \n SINGLE", "msg_token": "fix a reservation processing bug"} {"diff": " import NAMESPACE \n \n public class SelectCategoriesActivity extends SherlockListActivity { \n String finalResult = STRING0 ; \n - public String categoryErrorMsg = STRING0 ; \n private final Handler mHandler = new Handler ( ) ; \n private Blog blog ; \n private ListView mListView ;", "msg_token": "remove unused code"} {"diff": " public class ShellSession implements ScriptSession \n public ShellSession ( GraphDatabaseAPI graph ) \n { \n ShellServerExtension shell = ( ShellServerExtension ) Service . load ( KernelExtension . class , STRING0 ) ; \n - if ( shell == null ) throw new UnsupportedOperationException ( STRING1 ) ; \n + if ( shell == null ) \n + throw new UnsupportedOperationException ( STRING1 ) ; \n try \n { \n - ShellServer server = shell . getShellServer ( graph . getKernelData ( ) ) ; \n - if ( server == null ) \n - { \n - server = getFallbackServer ( graph ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + ShellServer server = getFallbackServer ( graph ) ; \n output = new CollectingOutput ( ) ; \n client = new SameJvmClient ( new HashMap < String , Serializable > ( ) , server , output ) ; \n output . asString ( ) ;", "msg_token": "Always uses the fallback server to circumvent use of db getKernelData which may bypass any proxy instance"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Added an import for a javadoc reference"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class GotoLineHandler extends CommandHandler \n { \n int count = cmd . getLine ( editor , context ) ; \n \n + int max = EditorHelper . getLineCount ( editor ) ; \n + if ( count >= max ) \n + { \n + count = max - NUMBER0 ; \n + } \n + \n if ( count >= NUMBER1 ) \n { \n MotionGroup . moveCaret ( editor , context ,", "msg_token": "Handle line greater than line count"} {"diff": " class OioChildEventLoop extends SingleThreadEventLoop { \n } \n \n if ( isShutdown ( ) ) { \n - ch . unsafe ( ) . close ( ch . unsafe ( ) . voidFuture ( ) ) ; \n + if ( ch != null ) { \n + ch . unsafe ( ) . close ( ch . unsafe ( ) . voidFuture ( ) ) ; \n + } \n if ( peekTask ( ) == null ) { \n break ; \n }", "msg_token": "Fix NPE in OioChildEventLoop"} {"diff": " public final class ParseDataset extends Job { \n public static void parseCompressed ( ParseDataset job , Key [ ] keys , CsvParser . Setup setup , Compression comp ) throws IOException { \n UnzipTask tsk = new UnzipTask ( ) ; \n tsk . _comp = comp ; \n + UnzipTask tsk = new UnzipTask ( job , comp ) ; \n tsk . invoke ( keys ) ; \n if ( tsk . _success ) { \n if ( tsk . _success && DKV . get ( job . _self ) != null ) {", "msg_token": "missing update from my previous commit"} {"diff": " public class UniqueName implements Comparable < UniqueName > { \n return returnCode ; \n } \n \n - if ( id < other . id ) { \n - return - NUMBER0 ; \n - } else if ( id > other . id ) { \n - return NUMBER0 ; \n - } else { \n - return NUMBER1 ; \n - } \n + return ( ( Integer ) id ) . compareTo ( ( Integer ) other . id ) ; \n } \n \n @ override", "msg_token": "Optimize UniqueName compareTo other slightly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalIndexesActivity extends OsmandExpandableListActivity { \n asyncLoader . setResult ( null ) ; \n startActivity ( new Intent ( LocalIndexesActivity . this , DownloadIndexActivity . class ) ) ; \n } \n + \n + @ override \n + public void updateDrawState ( TextPaint ds ) { \n + super . updateDrawState ( ds ) ; \n + ds . setColor ( Color . GREEN ) ; \n + } \n } , NUMBER0 , l , NUMBER0 ) ; \n ds . setText ( content ) ; \n ds . setMovementMethod ( LinkMovementMethod . getInstance ( ) ) ;", "msg_token": "Change link color"} {"diff": " final class NamespaceTranslator extends AbstractTranslator { \n \n @ override \n public Void visitObjectDeclaration ( @ notnull JetObjectDeclaration declaration , @ notnull TranslationContext context ) { \n - InitializerUtils . generate ( declaration , initializerStatements , context ) ; \n + InitializerUtils . generateObjectInitializer ( declaration , initializerStatements , context ) ; \n return null ; \n } \n \n public final class InitializerUtils { \n return null ; \n } \n \n - public static void generate ( \n + public static void generateObjectInitializer ( \n @ notnull JetObjectDeclaration declaration , \n @ notnull List < JsStatement > initializers , \n @ notnull TranslationContext context \n public final class InitializerVisitor extends TranslatorVisitor < Void > { \n \n @ override \n public Void visitObjectDeclaration ( @ notnull JetObjectDeclaration declaration , @ notnull TranslationContext context ) { \n - InitializerUtils . generate ( declaration , result , context ) ; \n + InitializerUtils . generateObjectInitializer ( declaration , result , context ) ; \n return null ; \n } \n }", "msg_token": "rename InitializerUtils generate to generateObjectInitializer"} {"diff": " public class UndertowConnector implements Connector { \n \n @ override \n public boolean isReverse ( ) { \n - return true ; \n + return false ; \n } \n \n @ override", "msg_token": "Do not configure Undertow listeners as reversed with the reverse proxy"} {"diff": " public class HazelcastAggregationRepository extends ServiceSupport \n COMMENT \n COMMENT \n public boolean containsKey ( Object key ) { \n + if ( cache != null ) \n return cache . containsKey ( key ) ; \n + else \n + return false ; \n } \n \n public boolean isAllowSerializedHeaders ( ) {", "msg_token": "added null check before trying to call containsKey prevent NPE"} {"diff": " public class RestIndicesStatsAction extends BaseRestHandler { \n indicesStatsRequest . docs ( request . paramAsBoolean ( STRING0 , indicesStatsRequest . docs ( ) ) ) ; \n indicesStatsRequest . store ( request . paramAsBoolean ( STRING1 , indicesStatsRequest . store ( ) ) ) ; \n indicesStatsRequest . indexing ( request . paramAsBoolean ( STRING2 , indicesStatsRequest . indexing ( ) ) ) ; \n + indicesStatsRequest . indexing ( request . paramAsBoolean ( STRING3 , indicesStatsRequest . get ( ) ) ) ; \n indicesStatsRequest . merge ( request . paramAsBoolean ( STRING4 , indicesStatsRequest . merge ( ) ) ) ; \n indicesStatsRequest . refresh ( request . paramAsBoolean ( STRING5 , indicesStatsRequest . refresh ( ) ) ) ; \n indicesStatsRequest . flush ( request . paramAsBoolean ( STRING6 , indicesStatsRequest . flush ( ) ) ) ;", "msg_token": "also add it as a parameter"} {"diff": " public class NettySSLTest extends CamelTestSupport { \n \n @ test \n public void testSSLInOutWithNettyConsumer ( ) throws Exception { \n + SINGLE \n + if ( isJavaVendor ( STRING0 ) ) { \n + return ; \n + } \n + \n context . addRoutes ( new RouteBuilder ( ) { \n public void configure ( ) { \n from ( STRING1 )", "msg_token": "Skip test on IBM jdks"} {"diff": " public class TileEngineIron extends TileEngineWithInventory implements IFluidHan \n if ( currentCoolant != null ) { \n float cooling = currentCoolant . getDegreesCoolingPerMB ( heat ) ; \n cooling /= getBiomeTempScalar ( ) ; \n + \n + if ( cooling > extraHeat ) { \n + return ; \n + } \n + \n if ( coolantAmount * cooling > extraHeat ) { \n tankCoolant . drain ( Math . round ( extraHeat / cooling ) , true ) ; \n heat -= extraHeat ;", "msg_token": "Stop the cooling when it round the use to zero"} {"diff": " public class ParcelFileDescriptor implements Parcelable , Closeable { \n COMMENT \n @ override \n public void writeToParcel ( Parcel out , int flags ) { \n + SINGLE \n + SINGLE \n if ( mWrapped != null ) { \n mWrapped . writeToParcel ( out , flags ) ; \n } else { \n public class ParcelFileDescriptor implements Parcelable , Closeable { \n = new Parcelable . Creator < ParcelFileDescriptor > ( ) { \n @ override \n public ParcelFileDescriptor createFromParcel ( Parcel in ) { \n + SINGLE \n + SINGLE \n final FileDescriptor fd = in . readRawFileDescriptor ( ) ; \n FileDescriptor commChannel = null ; \n if ( in . readInt ( ) != NUMBER0 ) {", "msg_token": "Add comments to warn that parcelling must stay in sync with Parcel cpp implementation"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class UsageViewTreeCellRenderer extends ColoredTreeCellRenderer { \n for ( int i = NUMBER0 ; i < text . length ; i ++ ) { \n TextChunk textChunk = text [ i ] ; \n SimpleTextAttributes simples = textChunk . getSimpleAttributesIgnoreBackground ( ) ; \n - append ( textChunk . getText ( ) + ( i == NUMBER0 ? STRING0 : STRING1 ) , patchAttrs ( node , simples ) ) ; \n + append ( textChunk . getText ( ) + ( i == NUMBER0 ? STRING0 : STRING1 ) , patchAttrs ( node , simples ) , true ) ; \n } \n } \n }", "msg_token": "highlight speed search result in usage tree"} {"diff": " public class ConcurrentMergeSchedulerProvider extends MergeSchedulerProvider { \n \n @ override \n protected void handleMergeException ( Directory dir , Throwable exc ) { \n - logger . warn ( STRING0 , exc ) ; \n + logger . error ( STRING0 , exc ) ; \n provider . failedMerge ( new MergePolicy . MergeException ( exc , dir ) ) ; \n - super . handleMergeException ( dir , exc ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n @ override", "msg_token": "don t rethrow merge exceptions"} {"diff": " public class HadoopDruidIndexerConfig \n \n public void setVersion ( DateTime version ) \n { \n - this . version = version ; \n + this . version = version == null ? new DateTime ( ) : version ; \n } \n \n @ jsonproperty", "msg_token": "set default version if one is not set"} {"diff": " public abstract class Closure extends GroovyObjectSupport implements Cloneable , \n } \n \n if ( params . length == NUMBER0 ) { \n - SINGLE \n - return doCall ( null ) ; \n + return doCall ( ) ; \n } else if ( params . length == NUMBER1 ) { \n return doCall ( params [ NUMBER0 ] ) ; \n } else if ( params . length == NUMBER2 ) { \n public abstract class Closure extends GroovyObjectSupport implements Cloneable , \n protected Object doCall ( final Object p1 ) { \n return callViaReflection ( new Object [ ] { p1 } ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected Object doCall ( ) { \n + return doCall ( ( Object ) null ) ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "to avoid endless loops when closures are using default arguments a method doCall was added"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ immutable \n + @ skylarkmodule ( name = STRING0 , doc = STRING1 ) \n public final class JavaRuntimeClasspathProvider implements TransitiveInfoProvider { \n \n private final NestedSet < Artifact > runtimeClasspath ; \n public final class JavaRuntimeClasspathProvider implements TransitiveInfoProvide \n COMMENT \n COMMENT \n COMMENT \n + @ skylarkcallable ( name = STRING2 , doc = STRING1 , structField = true ) \n public NestedSet < Artifact > getRuntimeClasspath ( ) { \n return runtimeClasspath ; \n }", "msg_token": "Expose information from JavaRuntimeClasspathProvider to Skylark"} {"diff": " public class DisposableTaskListFragment extends TaskListFragment { \n Activity activity = getActivity ( ) ; \n if ( activity instanceof TaskListActivity ) { \n TaskListActivity tla = ( TaskListActivity ) activity ; \n - tla . getFragmentPagerAdapter ( ) . remove ( filter ) ; \n + if ( tla . getFragmentLayout ( ) == AstridActivity . LAYOUT_SINGLE ) \n + tla . getFragmentPagerAdapter ( ) . remove ( filter ) ; \n } \n super . onDetach ( ) ; \n }", "msg_token": "Fixed a crash in DisposableTaskListFragment"} {"diff": " public class EnglishGrammaticalRelations { \n new String [ ] { \n STRING0 , SINGLE \n SINGLE \n - STRING1 , \n + SINGLE \n + STRING2 , \n SINGLE \n - STRING3 , \n - STRING4 , \n + STRING5 , \n + STRING6 , \n SINGLE \n SINGLE \n } ) ;", "msg_token": "Allow an adverb to come before a participle and still trigger partmod"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \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 import NAMESPACE ; \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 import NAMESPACE ; \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", "msg_token": "Synchronized AST transform javadoc tweak"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n SINGLE \n SINGLE \n for ( int i = FIRST_STATIC_STACK_ID ; i <= LAST_STATIC_STACK_ID ; i ++ ) { \n - if ( i != DOCKED_STACK_ID ) { \n + if ( i != DOCKED_STACK_ID && getStack ( i ) != null ) { \n resizeStackLocked ( i , null , preserveWindows ) ; \n } \n } \n public class DockedStackDividerController implements View . OnTouchListener , DimLa \n mStartY = ( int ) event . getRawY ( ) ; \n synchronized ( mDisplayContent . mService . mWindowMap ) { \n mTaskStack = mDisplayContent . getDockedStackLocked ( ) ; \n - mTaskStack . getBounds ( mOriginalRect ) ; \n - mDockSide = mTaskStack . getDockSide ( ) ; \n + if ( mTaskStack != null ) { \n + mTaskStack . getBounds ( mOriginalRect ) ; \n + mDockSide = mTaskStack . getDockSide ( ) ; \n + } \n } \n break ; \n case MotionEvent . ACTION_MOVE :", "msg_token": "Fixed NPE when getting stack for dock divider"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in JavaDoc"} {"diff": " public class PythonEnterHandler extends EnterHandlerDelegateAdapter { \n public Result postProcessEnter ( @ notnull PsiFile file , \n @ notnull Editor editor , \n @ notnull DataContext dataContext ) { \n + if ( ! ( file instanceof PyFile ) ) { \n + return Result . Continue ; \n + } \n if ( myPostprocessShift > NUMBER0 ) { \n editor . getCaretModel ( ) . moveCaretRelatively ( myPostprocessShift , NUMBER0 , false , false , false ) ; \n myPostprocessShift = NUMBER0 ;", "msg_token": "Don t invoke PythonEnterHandler postProcessEnter on non Python files"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VideoRecorderAppState extends AbstractAppState { \n this . file = file ; \n } \n \n + public File getFile ( ) { \n + return file ; \n + } \n + \n + public void setFile ( File file ) { \n + this . file = file ; \n + } \n + \n @ override \n public void initialize ( AppStateManager stateManager , Application app ) { \n super . initialize ( stateManager , app ) ; \n public class VideoRecorderAppState extends AbstractAppState { \n } \n \n public void cleanup ( ) { \n + app . setTimer ( new NanoTimer ( ) ) ; \n try { \n writer . finishAVI ( ) ; \n } catch ( Exception ex ) {", "msg_token": "set NanoTimer when detaching VideoRecorderAppState"} {"diff": " public class GTFSPatternHopFactory { \n \n List < StopTime > nextStopTimes = _dao . getStopTimesForTrip ( nextTrip . trip ) ; \n StopTime startTime = nextStopTimes . get ( NUMBER0 ) ; \n - int dwellTime = startTime . getDepartureTime ( ) - endTime . getArrivalTime ( ) ; \n + int dwellTime = startTime . getDepartureTime ( ) - startTime . getArrivalTime ( ) ; \n encoded . pattern . setDwellTime ( stopTimes . size ( ) - NUMBER1 , encoded . patternIndex , \n dwellTime ) ;", "msg_token": "calculate dwell time correctly when creating hops from GTFS should fix the NegativeWeightException bug Edwin ran into"} {"diff": " public class Frame extends Iced { \n if ( rx >= _rows . length ) break ; SINGLE \n long r = _rows [ rx ++ ] - NUMBER0 ; SINGLE \n if ( r < NUMBER1 ) { SINGLE \n + if ( rx > NUMBER1 && _rows [ rx - NUMBER0 ] < _rows [ rx ] ) throw H2O . unimpl ( ) ; \n long er = Math . abs ( r ) - NUMBER2 ; \n if ( er < rstart ) continue ; \n SINGLE", "msg_token": "throw unimpl for jumbled indices that are negative"} {"diff": " public class SQLInsertClause extends AbstractSQLClause implements InsertClause < S \n String property = entry . getKey ( ) . toString ( ) ; \n if ( ! property . equals ( STRING0 ) ) { \n Path path = ( Path < ? > ) entity . getClass ( ) . getField ( property ) . get ( entity ) ; \n - set ( path , entry . getValue ( ) ) ; \n + if ( entry . getValue ( ) != null ) { \n + set ( path , entry . getValue ( ) ) ; \n + } \n } \n } \n return this ;", "msg_token": "skip null values in populate"} {"diff": " public class DavisBinding extends AbstractActiveBinding < DavisBindingProvider > im \n \n public void updated ( Dictionary < String , ? > config ) throws ConfigurationException { \n if ( config != null ) { \n + SINGLE \n + SINGLE \n + String refreshIntervalString = ( String ) config . get ( STRING0 ) ; \n + if ( StringUtils . isNotBlank ( refreshIntervalString ) ) { \n + refreshInterval = Long . parseLong ( refreshIntervalString ) ; \n + } \n String newPort = ( String ) config . get ( STRING1 ) ; SINGLE \n if ( StringUtils . isNotBlank ( newPort ) && ! newPort . equals ( port ) ) { \n - SINGLE \n - \n - SINGLE \n - SINGLE \n - String refreshIntervalString = ( String ) config . get ( STRING0 ) ; \n - if ( StringUtils . isNotBlank ( refreshIntervalString ) ) { \n - refreshInterval = Long . parseLong ( refreshIntervalString ) ; \n - } \n - \n + \n try { \n openPort ( newPort ) ; \n setProperlyConfigured ( true ) ;", "msg_token": "reworked config handling"} {"diff": " public interface TypeDescription extends TypeDefinition , TypeVariableSource { \n } \n if ( ! rawType . isGenericDeclaration ( ) ) { \n throw new IllegalArgumentException ( rawType + STRING0 ) ; \n - } if ( ownerType == null && declaringType != null && ! rawType . isStatic ( ) ) { \n + } else if ( ownerType == null && declaringType != null && ! rawType . isStatic ( ) ) { \n throw new IllegalArgumentException ( rawType + STRING1 ) ; \n } else if ( ownerType != null && ! ownerType . asErasure ( ) . equals ( declaringType ) ) { \n throw new IllegalArgumentException ( ownerType + STRING2 + rawType ) ;", "msg_token": "Fixed checkstyle rule"} {"diff": " public class ExpressionAnalyzer \n Expression expression = node . getArguments ( ) . get ( i ) ; \n Type type = metadata . getType ( function . getArgumentTypes ( ) . get ( i ) ) ; \n checkNotNull ( type , STRING0 , function . getArgumentTypes ( ) . get ( i ) ) ; \n + if ( node . isDistinct ( ) && ! type . isComparable ( ) ) { \n + throw new SemanticException ( TYPE_MISMATCH , node , STRING1 , type ) ; \n + } \n coerceType ( context , expression , type , String . format ( STRING2 , function . getSignature ( ) , i ) ) ; \n } \n resolvedFunctions . put ( node , function ) ; \n public class TestAnalyzer \n } \n \n @ test \n + public void testNonComparableDistinct ( ) \n + throws Exception \n + { \n + assertFails ( TYPE_MISMATCH , STRING3 ) ; \n + } \n + \n + @ test \n public void testScalarSubQueryException ( ) \n throws Exception \n {", "msg_token": "Improve error message when using DISTINCT with non comparable type"} {"diff": " public final class ConformanceRules { \n private static ConformanceResult visibilityAtDeclarationOrFileoverview ( \n @ nullable JSDocInfo declaredJsDoc , @ nullable Node scriptNode ) { \n if ( declaredJsDoc != null \n - && declaredJsDoc . getVisibility ( ) != Visibility . INHERITED ) { \n + && ( declaredJsDoc . getVisibility ( ) != Visibility . INHERITED \n + || declaredJsDoc . isOverride ( ) ) ) { \n return ConformanceResult . CONFORMANCE ; \n } else if ( scriptNode != null \n && scriptNode . getJSDocInfo ( ) != null \n public class CheckConformanceTest extends CompilerTestCase { \n \n testSame ( STRING0 ) ; \n \n + testSame ( \n + STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 ) ; \n + \n SINGLE \n SINGLE \n testSame ( STRING8 ) ;", "msg_token": "skip overridden properties"} {"diff": " public class MethodSecurityMetadataSourceAdvisor extends AbstractPointcutAdvisor \n private BeanFactory beanFactory ; \n private String adviceBeanName ; \n private String metadataSourceBeanName ; \n - private final Serializable adviceMonitor = new Serializable ( ) { } ; \n + private transient volatile Object adviceMonitor = new Object ( ) ; \n \n SINGLE \n \n public class MethodSecurityMetadataSourceAdvisor extends AbstractPointcutAdvisor \n \n private void readObject ( ObjectInputStream ois ) throws IOException , ClassNotFoundException { \n ois . defaultReadObject ( ) ; \n - \n + adviceMonitor = new Object ( ) ; \n attributeSource = beanFactory . getBean ( metadataSourceBeanName , MethodSecurityMetadataSource . class ) ; \n }", "msg_token": "Use a transient object as the advice monitor rather than a Serializable"} {"diff": " import NAMESPACE ; \n COMMENT \n public class FunctionLibrary extends HashMap < String , Functions > { \n \n + static private ServiceLoader < Functions > functionsService = ServiceLoader . load ( Functions . class ) ; \n + \n public FunctionLibrary ( ) { \n - final ServiceLoader < Functions > functionsService = ServiceLoader . load ( Functions . class ) ; \n + SINGLE \n \n for ( final Functions functions : functionsService ) { \n this . registerFunctions ( functions ) ; \n import NAMESPACE ; \n COMMENT \n public class StepLibrary extends HashMap < String , Step > { \n \n + static private final ServiceLoader < Steps > stepsService = ServiceLoader . load ( Steps . class ) ; \n + \n public StepLibrary ( ) { \n - final ServiceLoader < Steps > stepsService = ServiceLoader . load ( Steps . class ) ; \n + SINGLE \n \n for ( final Steps steps : stepsService ) { \n for ( final Step step : steps . getSteps ( ) ) {", "msg_token": "updated FunctionLibrary and StepLibrary with static loading"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpSe \n COMMENT \n COMMENT \n COMMENT \n - private static class StandardMultipartFile implements MultipartFile { \n + @ suppresswarnings ( STRING0 ) \n + private static class StandardMultipartFile implements MultipartFile , Serializable { \n \n private final Part part ;", "msg_token": "StandardMultipartFile declares itself as Serializable now"} {"diff": " public class GLMTest extends TestUtil { \n if ( s . startsWith ( STRING0 ) ) \n s1 = STRING1 + s . substring ( NUMBER0 ) ; \n assertEquals ( STRING2 + s1 + STRING3 + coefs1 . get ( s1 ) + STRING4 + coefs2 . get ( s ) , coefs1 . get ( s1 ) , coefs2 . get ( s ) , FLOAT0 ) ; \n + DKV . put ( frMM . _key , frMM ) ; SINGLE \n } \n assertEquals ( val1 . nullDeviance ( ) , val2 . nullDeviance ( ) , FLOAT0 ) ; \n assertEquals ( val1 . residualDeviance ( ) , val2 . residualDeviance ( ) , FLOAT0 ) ;", "msg_token": "Fix GLMTest update Frame in KV after removing a vec from it"} {"diff": " public class OAuth2GetAccessToken extends RemoteOperation { \n Log . e ( TAG , STRING0 + mOAuth2ParsedAuthorizationResponse . get ( STRING1 ) + STRING2 + client . getBaseUri ( ) + STRING3 + result . getLogMessage ( ) , result . getException ( ) ) ; \n \n } else if ( result . getCode ( ) == ResultCode . OAUTH2_ERROR ) { \n - Log . e ( TAG , STRING0 + mOAuth2ParsedAuthorizationResponse . get ( STRING1 ) + STRING2 + client . getBaseUri ( ) + STRING3 + mResultTokenMap . get ( OAuth2Context . OAUTH2_TOKEN_RECEIVED_ERROR ) ) ; \n + Log . e ( TAG , STRING0 + mOAuth2ParsedAuthorizationResponse . get ( STRING1 ) + STRING2 + client . getBaseUri ( ) + STRING3 + ( ( mResultTokenMap != null ) ? mResultTokenMap . get ( OAuth2Context . OAUTH2_TOKEN_RECEIVED_ERROR ) : STRING4 ) ) ; \n \n } else { \n Log . e ( TAG , STRING0 + mOAuth2ParsedAuthorizationResponse . get ( STRING1 ) + STRING2 + client . getBaseUri ( ) + STRING3 + result . getLogMessage ( ) ) ;", "msg_token": "Fixed NullPointerException in log"} {"diff": " public class SessionImpl implements Session { \n \n private void setSessionStatus ( SessionStatus sessionStatus ) throws OtrException { \n \n - if ( sessionStatus == this . sessionStatus ) \n - return ; \n - \n switch ( sessionStatus ) { \n case ENCRYPTED : \n AuthContext auth = this . getAuthContext ( ) ; \n public class SessionImpl implements Session { \n break ; \n } \n \n + if ( sessionStatus == this . sessionStatus ) \n + return ; \n + \n this . sessionStatus = sessionStatus ; \n \n for ( OtrEngineListener l : this . listeners )", "msg_token": "Fix OTR refresh on error issue"} {"diff": " public class AsmClassGenerator extends ClassGenerator { \n BytecodeHelper . getClassInternalNames ( classNode . getInterfaces ( ) ) \n ) ; \n cv . visitSource ( sourceFile , null ) ; \n + if ( classNode instanceof InnerClassNode ) { \n + InnerClassNode innerClass = ( InnerClassNode ) classNode ; \n + MethodNode enclosingMethod = innerClass . getEnclosingMethod ( ) ; \n + if ( enclosingMethod != null ) { \n + String outerClassName = BytecodeHelper . getClassInternalName ( innerClass . getOuterClass ( ) . getName ( ) ) ; \n + cv . visitOuterClass ( outerClassName , enclosingMethod . getName ( ) , BytecodeHelper . getMethodDescriptor ( enclosingMethod ) ) ; \n + } \n + } \n if ( classNode . getName ( ) . endsWith ( STRING0 ) ) { \n PackageNode packageNode = classNode . getPackage ( ) ; \n if ( packageNode != null ) {", "msg_token": "Fix missing EnclosingMethod attribute in class files"} {"diff": " public class SynchronizeFolderOperation extends SyncOperation { \n \n try { \n SINGLE \n - mLocalFolder = getStorageManager ( ) . getFileByPath ( mRemotePath ) ; \n - \n + mLocalFolder = getStorageManager ( ) . getFileByPath ( mRemotePath ) ; \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 result = checkForChanges ( client ) ; \n \n if ( result . isSuccess ( ) ) { \n public class SynchronizeFolderOperation extends SyncOperation { \n syncContents ( client ) ; \n } \n \n + COMMENT \n + \n + result = fetchAndSyncRemoteFolder ( client ) ; \n + if ( result . isSuccess ( ) ) { \n + syncContents ( client ) ; \n } \n \n if ( mCancellationRequested . get ( ) ) {", "msg_token": "Fixed unnoticed conflicts in subtree"} {"diff": " public class EigenValueDecomposition { \n \n logger . info ( STRING0 , neig , step + NUMBER0 , step + NUMBER0 ) ; \n if ( neig != NUMBER1 ) { \n - for ( int i = NUMBER1 , n = NUMBER1 ; i <= step ; i ++ ) { \n + for ( int i = NUMBER1 ; i <= step ; i ++ ) { \n if ( bnd [ i ] <= FLOAT0 * Math . EPSILON * Math . abs ( ritz [ i ] ) ) { \n logger . info ( STRING1 , i , ritz [ i ] ) ; \n }", "msg_token": "remove unused variable"} {"diff": " public class SparkDl4jMultiLayer implements Serializable { \n throw new IllegalStateException ( STRING0 + paramsLength + STRING1 + params . length ( ) ) ; \n JavaRDD < INDArray > results = rdd . sample ( true , FLOAT0 ) . mapPartitions ( new IterativeReduceFlatMap ( conf . toJson ( ) , this . params ) ) ; \n log . debug ( STRING2 ) ; \n - INDArray newParams = results . fold ( Nd4j . zeros ( results . first ( ) . shape ( ) ) , new Add ( ) ) ; \n + INDArray newParams = results . aggregate ( Nd4j . zeros ( params . shape ( ) ) , new Add ( ) , new Add ( ) ) ; \n newParams . divi ( rdd . partitions ( ) . size ( ) ) ; \n network . setParameters ( newParams ) ; \n this . network = network ;", "msg_token": "try new aggregation function"} {"diff": " public class SherpafyCustomization extends OsmAndAppCustomization { \n @ override \n public void prepareOptionsMenu ( MapActivity mapActivity , ContextMenuAdapter adapter ) { \n \n - filter ( adapter , R . string . exit_Button , R . string . favorites_Button , R . string . menu_layers , \n + filter ( adapter , R . string . exit_Button , R . string . menu_layers , \n R . string . cancel_navigation , R . string . cancel_route , R . string . clear_destination , \n R . string . get_directions , \n R . string . menu_mute_on , R . string . menu_mute_off ,", "msg_token": "Removed my places button"} {"diff": " public final class CalligraphyUtils { \n final TypedArray typedArray = context . obtainStyledAttributes ( attrs , new int [ ] { attributeId } ) ; \n try { \n return typedArray . getString ( NUMBER0 ) ; \n + } catch ( Exception ignore ) { \n + SINGLE \n + return null ; \n } finally { \n typedArray . recycle ( ) ; \n } \n public final class CalligraphyUtils { \n final TypedArray typedArray = theme . obtainStyledAttributes ( value . resourceId , new int [ ] { attributeId } ) ; \n try { \n return typedArray . getString ( NUMBER0 ) ; \n + } catch ( Exception ignore ) { \n + SINGLE \n + return null ; \n } finally { \n typedArray . recycle ( ) ; \n }", "msg_token": "added catch to getting style and theme"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class BufferUtils { \n + private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n COMMENT \n COMMENT \n COMMENT \n public class BufferUtils { \n cleaner . getClass ( ) . getMethod ( STRING0 ) . invoke ( cleaner ) ; \n } \n } catch ( Exception e ) { \n + LOG . warn ( STRING1 , e ) ; \n buffer = null ; \n } \n }", "msg_token": "add log warning for non oracle jvms that don t have a direct byte buffer cleaner implementation"} {"diff": " public class RequestFacade implements HttpServletRequest { \n \n \n public ServletContext getServletContext ( ) { \n - SINGLE \n - return null ; \n + if ( request == null ) { \n + throw new IllegalStateException ( \n + sm . getString ( STRING0 ) ) ; \n + } \n + \n + return request . getServletContext ( ) ; \n }", "msg_token": "Implement the simple stuff"} {"diff": " public class MotionGroup { \n } \n else { \n for ( int i = NUMBER0 ; i < ends . length ; ++ i ) { \n - ends [ i ] += NUMBER1 ; \n + ends [ i ] = EditorHelper . normalizeOffset ( editor , ends [ i ] + NUMBER1 , false ) ; \n } \n } \n }", "msg_token": "Normalize offsets in order to prevent selecting newlines"} {"diff": " public class OFileMMap extends OFile { \n public void close ( ) throws IOException { \n if ( headerBuffer != null ) { \n setSoftlyClosed ( true ) ; \n - headerBuffer . force ( ) ; \n headerBuffer = null ; \n } \n super . close ( ) ;", "msg_token": "Removed unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class BeanValidatorComponent extends DefaultComponent { \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static final String OSGI_CONTEXT_CLASS_PREFIX = STRING0 ; \n - \n @ override \n protected Endpoint createEndpoint ( String uri , String remaining , Map < String , Object > parameters ) throws Exception { \n BeanValidator beanValidator = new BeanValidator ( ) ; \n public class BeanValidatorComponent extends DefaultComponent { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n protected boolean isOsgiContext ( ) { \n - return getCamelContext ( ) . getClass ( ) . getSimpleName ( ) . startsWith ( OSGI_CONTEXT_CLASS_PREFIX ) ; \n + return isInOsgiEnvironment ( ) ; \n } \n \n }", "msg_token": "Switched bean validator to PlatformHelper"} {"diff": " public class HttpConnection COMMENT implements Connecti \n } \n } \n } \n - \n + \n + SINGLE \n + if ( _endp . isOpen ( ) && _endp . isInputShutdown ( ) && _generator . isComplete ( ) ) \n + { \n + complete = true ; \n + close = true ; \n + close ( ) ; \n + } \n + \n if ( complete || failed ) \n { \n synchronized ( this ) \n public class HttpConnection COMMENT implements Connecti \n { \n HttpExchange exchange = _exchange ; \n _exchange . disassociate ( ) ; \n + \n + \n if ( _exchange . getTimeout ( ) > NUMBER0 && _exchange . getTimeout ( ) != getDestination ( ) . getHttpClient ( ) . getTimeout ( ) ) \n _endp . setMaxIdleTime ( ( int ) getDestination ( ) . getHttpClient ( ) . getTimeout ( ) ) ; \n _exchange = null ;", "msg_token": "Improve handling of io shutdown in SSL"} {"diff": " public class DNSUtil { \n List < HostAddress > results = new LinkedList < > ( ) ; \n if ( dnsOverride != null ) { \n HostAddress hostAddress = dnsOverride . get ( domain ) ; \n + if ( hostAddress == null ) { \n + hostAddress = dnsOverride . get ( STRING0 ) ; \n + } \n if ( hostAddress != null ) { \n results . add ( hostAddress ) ; \n return results ;", "msg_token": "Add support for a wildcard DNS override"} {"diff": " public class TextEditingTarget implements \n } \n } , \n null , SINGLE \n - STRING0 , \n + STRING1 , \n STRING2 , \n true SINGLE \n ) ;", "msg_token": "clarify text in join session button when editor is dirty"} {"diff": " public class HttpPageBufferClient \n \n public synchronized void scheduleRequest ( ) \n { \n - Preconditions . checkState ( ! closed , getClass ( ) . getSimpleName ( ) + STRING0 ) ; \n + if ( closed ) { \n + log . debug ( STRING1 ) ; \n + return ; \n + } \n if ( future != null ) { \n log . debug ( STRING2 ) ; \n return ;", "msg_token": "Ignore calls to a schedule request if the buffer client has been closed"} {"diff": " public class EventLog { \n return decodeObject ( ) ; \n } \n \n + public byte [ ] getRawData ( ) { \n + return mBuffer . array ( ) ; \n + } \n + \n COMMENT \n private Object decodeObject ( ) { \n if ( mBuffer . remaining ( ) < NUMBER0 ) return null ; \n switch ( mBuffer . get ( ) ) { \n case INT : \n if ( mBuffer . remaining ( ) < NUMBER1 ) return null ; \n - return mBuffer . getInt ( ) ; \n + return ( Integer ) mBuffer . getInt ( ) ; \n \n case LONG : \n if ( mBuffer . remaining ( ) < NUMBER2 ) return null ; \n - return mBuffer . getLong ( ) ; \n + return ( Long ) mBuffer . getLong ( ) ; \n \n case STRING : \n try {", "msg_token": "Add getRawData method for AggregationService"} {"diff": " public class CustomViewBehind extends ViewGroup { \n mWidthOffset = i ; \n requestLayout ( ) ; \n } \n + \n + public void setMarginThreshold ( int marginThreshold ) { \n + mMarginThreshold = marginThreshold ; \n + } \n + \n + public int getMarginThreshold ( ) { \n + return mMarginThreshold ; \n + } \n \n public int getBehindWidth ( ) { \n return mContent . getWidth ( ) ; \n public class SlidingMenu extends RelativeLayout { \n public float getBehindScrollScale ( ) { \n return mViewBehind . getScrollScale ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getTouchmodeMarginThreshold ( ) { \n + return mViewBehind . getMarginThreshold ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setTouchmodeMarginThreshold ( int touchmodeMarginThreshold ) { \n + mViewBehind . setMarginThreshold ( touchmodeMarginThreshold ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added getter and setter for the touchmode margin threshold"} {"diff": " public class GroovyRunConfigurationConverterProvider extends ConverterProvider { \n @ override \n public boolean isConversionNeeded ( RunManagerSettings settings ) { \n for ( Element element : settings . getRunConfigurations ( ) ) { \n - if ( STRING0 . equals ( element . getAttributeValue ( STRING1 ) ) ) { \n + if ( STRING0 . equals ( element . getAttributeValue ( STRING1 ) ) && ! STRING2 . equals ( element . getAttributeValue ( STRING3 ) ) ) { \n return true ; \n } \n }", "msg_token": "don t convert the project if there s only a default Groovy Script run configuration but no real ones"} {"diff": " public class AccountAdapter extends CursorAdapter { \n List < AccountInfo > accountInfoList = getAccountInfoList ( mStashCursor ) ; \n runBindTask ( ( Activity ) mContext , accountInfoList ) ; \n } \n - return super . swapCursor ( null ) ; \n + return super . swapCursor ( mStashCursor ) ; \n } ; \n \n COMMENT \n public class AccountAdapter extends CursorAdapter { \n @ override \n public void bindView ( View view , Context context , Cursor cursor ) { \n ( ( ProviderListItem ) view ) . bindView ( cursor ) ; \n - ( ( ProviderListItem ) view ) . applyView ( mAccountSettingList . get ( cursor . getPosition ( ) ) ) ; \n + \n + if ( mAccountSettingList != null ) \n + ( ( ProviderListItem ) view ) . applyView ( mAccountSettingList . get ( cursor . getPosition ( ) ) ) ; \n } \n \n private void runBindTask ( final Activity context , final List < AccountInfo > accountInfoList ) {", "msg_token": "use this cursor even though it doesn t have all the data yet"} {"diff": " public class OStorageLocal extends OStorageEmbedded { \n try { \n \n for ( ODataLocal d : dataSegments ) \n - holes . addAll ( d . getHolesList ( ) ) ; \n + if ( d != null ) \n + holes . addAll ( d . getHolesList ( ) ) ; \n \n return holes ; \n \n public class OStorageLocal extends OStorageEmbedded { \n \n long holes = NUMBER0 ; \n for ( ODataLocal d : dataSegments ) \n - holes += d . getHoles ( ) ; \n + if ( d != null ) \n + holes += d . getHoles ( ) ; \n return holes ; \n \n } finally {", "msg_token": "added check if data segment is null"} {"diff": " class IntArrayList { \n COMMENT \n public boolean add ( int e ) { \n ensureCapacityInternal ( size + NUMBER0 ) ; \n - elementData [ size ++ ] = e ; \n + elementData [ size ] = e ; \n + size ++ ; \n return true ; \n }", "msg_token": "Fix Quality flaw"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BsonTypeClassMap { \n COMMENT \n COMMENT \n public BsonTypeClassMap ( final Map < BsonType , Class < ? > > replacementsForDefaults ) { \n - this ( ) ; \n + addDefaults ( ) ; \n map . putAll ( replacementsForDefaults ) ; \n } \n \n public class BsonTypeClassMap { \n COMMENT \n COMMENT \n public BsonTypeClassMap ( ) { \n - addDefaults ( ) ; \n + this ( Collections . < BsonType , Class < ? > > emptyMap ( ) ) ; \n }", "msg_token": "Using unused constructor in BsonTypeClassMap"} {"diff": " public final class ListStatusOptions { \n \n @ override \n public boolean equals ( Object o ) { \n - if ( this == o ) { \n - return true ; \n - } \n - if ( ! ( o instanceof ListStatusOptions ) ) { \n - return false ; \n - } \n - return true ; \n + return this == o || o instanceof ListStatusOptions ; \n } \n \n @ override", "msg_token": "SMALLFIX Simplified equals implementation of ListStatusOptions"} {"diff": " public class CodeStyleSettings implements Cloneable , JDOMExternalizable { \n \n @ nonnls public String HTML_ELEMENTS_TO_INSERT_NEW_LINE_BEFORE = STRING0 ; \n @ nonnls public String HTML_ELEMENTS_TO_REMOVE_NEW_LINE_BEFORE = STRING1 ; \n - @ nonnls public String HTML_DO_NOT_INDENT_CHILDREN_OF = STRING2 ; \n - public int HTML_DO_NOT_ALIGN_CHILDREN_OF_MIN_LINES = NUMBER0 ; \n + @ nonnls public String HTML_DO_NOT_INDENT_CHILDREN_OF = STRING3 ; \n + public int HTML_DO_NOT_ALIGN_CHILDREN_OF_MIN_LINES = NUMBER1 ; \n \n @ nonnls public String HTML_KEEP_WHITESPACES_INSIDE = STRING4 ; \n @ nonnls public String HTML_INLINE_ELEMENTS =", "msg_token": "tweak html formatter default options"} {"diff": " public class SQLEditor extends SQLEditorBase \n \n private void onDataSourceChange ( ) \n { \n + if ( sashForm == null || sashForm . isDisposed ( ) ) { \n + return ; \n + } \n DatabaseEditorUtils . setPartBackground ( this , sashForm ) ; \n \n if ( resultsView != null ) {", "msg_token": "SQL editor dispose fix"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AceEditorWidget extends Composite \n private Image createRunIcon ( ) \n { \n Image icon = new Image ( ThemeResources . INSTANCE . runChunk ( ) ) ; \n + icon . setTitle ( \n + commands_ . executeCurrentChunk ( ) . getTooltip ( ) ) ; \n return icon ; \n } \n \n public class AceEditorWidget extends Composite \n private LintResources . Styles lintStyles_ = LintResources . INSTANCE . styles ( ) ; \n \n private EventBus events_ ; \n + private Commands commands_ = RStudioGinjector . INSTANCE . getCommands ( ) ; \n \n \n }", "msg_token": "add tooltip to run chunk icons"} {"diff": " public class GLMBasicTest extends TestUtil { \n @ beforeclass \n public static void setup ( ) { \n stall_till_cloudsize ( NUMBER0 ) ; \n - File f = new File ( STRING0 ) ; \n + File f = find_test_file ( STRING0 ) ; \n assert f . exists ( ) ; \n + \n NFSFileVec nfs = NFSFileVec . make ( f ) ; \n Key outputKey = Key . make ( STRING1 ) ; \n _prostate = ParseDataset . parse ( outputKey , nfs . _key ) ; \n public class GLMBasicTest extends TestUtil { \n \n @ afterclass \n public static void cleanUp ( ) { \n - _prostate . delete ( ) ; \n + if ( _prostate != null ) \n + _prostate . delete ( ) ; \n } \n } \n public class TestUtil extends Iced { \n COMMENT \n COMMENT \n COMMENT \n - protected File find_test_file ( String fname ) { \n + protected static File find_test_file ( String fname ) { \n SINGLE \n SINGLE \n File file = new File ( fname ) ;", "msg_token": "Fixed unit test not seeing file in small data"} {"diff": " public class ImapStore extends Store \n \n try \n { \n + SINGLE \n if ( mHost . endsWith ( STRING0 ) ) \n { \n if ( K9 . DEBUG )", "msg_token": "Add a comment about the custom IMAP command Yahoo needs to work right"} {"diff": " public class WrapperTest extends AbstractTaskTest { \n context . checking ( new Expectations ( ) { \n { \n one ( wrapperScriptGeneratorMock ) . generate ( \n - STRING0 + targetWrapperJarPath + STRING1 + Wrapper . WRAPPER_JAR , \n - STRING0 + targetWrapperJarPath + STRING1 + Wrapper . WRAPPER_PROPERTIES , \n + toNative ( STRING0 + targetWrapperJarPath + STRING1 + Wrapper . WRAPPER_JAR ) , \n + toNative ( STRING0 + targetWrapperJarPath + STRING1 + Wrapper . WRAPPER_PROPERTIES ) , \n wrapper . getScriptFile ( ) ) ; \n } \n } ) ; \n public class WrapperTest extends AbstractTaskTest { \n assertEquals ( properties . getProperty ( Wrapper . ZIP_STORE_BASE_PROPERTY ) , wrapper . getArchiveBase ( ) . toString ( ) ) ; \n assertEquals ( properties . getProperty ( Wrapper . ZIP_STORE_PATH_PROPERTY ) , wrapper . getArchivePath ( ) ) ; \n } \n + \n + private String toNative ( String s ) { \n + return s . replace ( STRING1 , File . separator ) ; \n + } \n }", "msg_token": "Fixed broken unit test on windows"} {"diff": " import NAMESPACE ; \n \n public class DefaultStepRunnerTest { \n \n - @ test ( expected = StepFailedException . class , timeout = NUMBER0 ) \n + @ test ( expected = StepFailedException . class , timeout = NUMBER1 ) \n public void testParallelCommandFailure ( ) throws Exception { \n ImmutableList . Builder < Step > commands = ImmutableList . builder ( ) ; \n commands . add ( new SleepingStep ( NUMBER2 , NUMBER2 ) ) ;", "msg_token": "Increased timeout of DefaultStepRunnerTest testParallelCommandFailure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OStorageRemote extends OStorageAbstract { \n network . writeString ( iClusterType . toString ( ) ) ; \n network . writeString ( iClusterName ) ; \n \n - if ( OClusterLocal . TYPE . equals ( iClusterType ) ) { \n - SINGLE \n + switch ( iClusterType ) { \n + case PHYSICAL : \n + SINGLE \n network . writeString ( iArguments . length > NUMBER0 ? ( String ) iArguments [ NUMBER0 ] : STRING0 ) . writeInt ( \n iArguments . length > NUMBER0 ? ( Integer ) iArguments [ NUMBER1 ] : - NUMBER1 ) ; \n - } else { \n + break ; \n + \n + case LOGICAL : \n SINGLE \n network . writeInt ( iArguments . length > NUMBER0 ? ( Integer ) iArguments [ NUMBER0 ] : - NUMBER1 ) ; \n + break ; \n } \n \n network . flush ( ) ;", "msg_token": "Fixed issue on recent change of method signature addCluster"} {"diff": " public abstract class Cell extends ColumnData \n ? column . cellPathSerializer ( ) . deserialize ( in ) \n : null ; \n \n - boolean isCounter = localDeletionTime == NO_DELETION_TIME && column . type . isCounter ( ) ; \n - \n ByteBuffer value = ByteBufferUtil . EMPTY_BYTE_BUFFER ; \n if ( hasValue ) \n { \n public abstract class Cell extends ColumnData \n } \n else \n { \n + boolean isCounter = localDeletionTime == NO_DELETION_TIME && column . type . isCounter ( ) ; \n + \n value = header . getType ( column ) . readValue ( in ) ; \n if ( isCounter ) \n value = helper . maybeClearCounterValue ( value ) ;", "msg_token": "push down counter check to where it s needed"} {"diff": " final public class MediaCodec { \n public int mode ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final static class Pattern { \n COMMENT \n final public class MediaCodec { \n COMMENT \n private Pattern pattern ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void set ( \n int newNumSubSamples , \n @ nonnull int [ ] newNumBytesOfClearData , \n final public class MediaCodec { \n pattern = new Pattern ( NUMBER0 , NUMBER0 ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setPattern ( Pattern newPattern ) { \n pattern = newPattern ; \n }", "msg_token": "Add javadocs to MediaCodec CryptoInfo methods"} {"diff": " public class InterceptionInstrumenter { \n Type [ ] parameterTypes = Type . getArgumentTypes ( instrumentedMethodDesc ) ; \n boolean isStatic = ( access & ACC_STATIC ) != NUMBER0 ; \n int base = isStatic ? NUMBER0 : NUMBER1 ; \n - int parametersUsed = NUMBER0 ; \n + int parameterOffset = NUMBER0 ; \n for ( int i = NUMBER0 ; i < parameterCount ; i ++ ) { \n if ( i == methodData . getThisParameterIndex ( ) ) { \n if ( isStatic ) { \n public class InterceptionInstrumenter { \n ia . aconst ( instrumentedMethodDesc ) ; \n } \n else { \n - ia . load ( base + parametersUsed , parameterTypes [ parametersUsed ] ) ; \n - parametersUsed ++ ; \n + Type type = parameterTypes [ parameterOffset ] ; \n + ia . load ( base + parameterOffset , type ) ; \n + parameterOffset += type . getSize ( ) ; \n } \n \n }", "msg_token": "Fix parameter indexing for longs and doubles"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SessionHandler extends ScopedHandler \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SessionHandler extends ScopedHandler \n requested_session_id = cookies [ i ] . getValue ( ) ; \n requested_session_id_from_cookie = true ; \n \n - LOG . info ( STRING0 , requested_session_id ) ; \n + LOG . debug ( STRING0 , requested_session_id ) ; \n \n if ( requested_session_id != null ) \n {", "msg_token": "Reverted log call at info level back to debug level"} {"diff": " public class RecipientList extends ServiceSupport implements Processor { \n Object recipient = iter . next ( ) ; \n Endpoint endpoint = resolveEndpoint ( exchange , recipient ) ; \n Producer producer = getProducerCache ( exchange ) . getProducer ( endpoint ) ; \n - SINGLE \n - Processor target = new UnitOfWorkProcessor ( producer ) ; \n - processors . add ( target ) ; \n + processors . add ( producer ) ; \n } \n MulticastProcessor mp = new MulticastProcessor ( processors , new UseLatestAggregationStrategy ( ) ) ; \n mp . process ( exchange ) ;", "msg_token": "Ensured using UnitOfWork for EIPs that emit new Exchanges on new routes which didnt have that beforehand"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public interface RatpackConsulConfig { \n \n \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Add since markers"} {"diff": " public class Redwood { \n COMMENT \n @ override \n public void print ( Object [ ] channels , String line ) { \n - printWriter . write ( line ) ; \n + printWriter . write ( line == null ? STRING0 : line ) ; \n printWriter . flush ( ) ; \n } \n }", "msg_token": "Incorporate official scorer"} {"diff": " public class StartConversationActivity extends XmppActivity implements OnRosterU \n } \n } \n } ) ; \n + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN_MR2 ) { \n + builder . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) { \n + @ override \n + public void onDismiss ( DialogInterface dialog ) { \n + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { \n + requestPermissions ( new String [ ] { Manifest . permission . READ_CONTACTS } , REQUEST_SYNC_CONTACTS ) ; \n + } \n + } \n + } ) ; \n + } \n builder . create ( ) . show ( ) ; \n } else { \n requestPermissions ( new String [ ] { Manifest . permission . READ_CONTACTS } , NUMBER0 ) ;", "msg_token": "always display allow contact perm dialog after intro"} {"diff": " public class PreviousIssueRepository implements BatchComponent { \n if ( r == null ) { \n SINGLE \n issuesCache . put ( NUMBER0 , issue . key ( ) , issue ) ; \n + } else { \n + issuesCache . put ( r . batchId ( ) , issue . key ( ) , issue ) ; \n } \n - issuesCache . put ( r . batchId ( ) , issue . key ( ) , issue ) ; \n return null ; \n } \n } ) ;", "msg_token": "Fix some quality flaws"} {"diff": " public class ServerWebSocketContainer implements ServerContainer , Closeable { \n COMMENT \n public synchronized void pause ( PauseListener listener ) { \n closed = true ; \n + if ( configuredServerEndpoints . isEmpty ( ) ) { \n + listener . paused ( ) ; \n + return ; \n + } \n if ( listener != null ) { \n pauseListeners . add ( listener ) ; \n }", "msg_token": "Fix issue with websocket pause"} {"diff": " public class JsBindingModule extends AbsModule implements JsFileLoadedListener { \n } \n } \n } ) ; \n + groupOnlines . put ( gid , value ) ; \n } \n return groupOnlines . get ( gid ) ; \n }", "msg_token": "Fixing group online binding"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove fully leaded colloquialism"} {"diff": " public class NamespaceGenTest extends LightCodeInsightFixtureTestCase { \n assertEquals ( Boolean . FALSE , main . invoke ( null , null , STRING0 ) ) ; \n } \n \n + public void testEqualsNullLiteral ( ) throws Exception { \n + loadText ( STRING1 ) ; \n + final Method main = generateFunction ( ) ; \n + assertEquals ( Boolean . TRUE , main . invoke ( null , new Object [ ] { null } ) ) ; \n + assertEquals ( Boolean . FALSE , main . invoke ( null , STRING0 ) ) ; \n + } \n + \n public void testFunctionCall ( ) throws Exception { \n loadFile ( STRING2 ) ; \n System . out . println ( generateToText ( ) ) ;", "msg_token": "failing test for null"} {"diff": " public class DruidDataSource extends DruidAbstractDataSource implements DruidDat \n } \n \n if ( pooledConnection . getOwnerThread ( ) != Thread . currentThread ( ) ) { \n - throw new SQLException ( STRING0 ) ; \n + LOG . warn ( STRING1 ) ; \n } \n \n final Connection physicalConnection = holder . getConnection ( ) ;", "msg_token": "add pool concurrent warnnings"} {"diff": " public class BottomBar extends FrameLayout implements View . OnClickListener , View \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public View getBar ( ) { \n + return mItemContainer ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a method for getting the BottomBar View"} {"diff": " public class TransactionalGraphTestSuite extends TestSuite { \n graph . addEdge ( null , graph . addVertex ( null ) , graph . addVertex ( null ) , convertId ( STRING0 ) ) ; \n } \n assertEquals ( BaseTest . count ( graph . getEdges ( ) ) , NUMBER0 ) ; \n + graph . stopTransaction ( TransactionalGraph . Conclusion . FAILURE ) ; \n + assertEquals ( BaseTest . count ( graph . getEdges ( ) ) , NUMBER1 ) ; \n + \n + for ( int i = NUMBER1 ; i < NUMBER0 ; i ++ ) { \n + graph . addEdge ( null , graph . addVertex ( null ) , graph . addVertex ( null ) , convertId ( STRING0 ) ) ; \n + } \n + assertEquals ( BaseTest . count ( graph . getEdges ( ) ) , NUMBER0 ) ; \n graph . stopTransaction ( TransactionalGraph . Conclusion . SUCCESS ) ; \n assertEquals ( BaseTest . count ( graph . getEdges ( ) ) , NUMBER0 ) ;", "msg_token": "added a stronger test for bulk transaction semantics"} {"diff": " public class CrossDomainScriptInclusionScanner extends PluginPassiveScanner { \n try { \n URI scriptURI = new URI ( scriptURL , true ) ; \n String scriptHost = scriptURI . getHost ( ) ; \n - if ( scriptHost != null && scriptHost . toLowerCase ( ) . equals ( host . toLowerCase ( ) ) ) { \n + if ( scriptHost != null && ! scriptHost . toLowerCase ( ) . equals ( host . toLowerCase ( ) ) ) { \n result = true ; \n } \n } catch ( URIException e ) {", "msg_token": "Fixed a condition inside isScriptFromOtherDomain"} {"diff": " public class CachingAuthenticator { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public void reset ( ) { \n - authenticatedDatabases . clear ( ) ; \n - } \n - \n private void authenticate ( final MongoCredential credential ) { \n Authenticator authenticator = createAuthenticator ( credential ) ; \n authenticator . authenticate ( ) ;", "msg_token": "Removed unused method"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public interface WebServer { \n public void addPackages ( String packageNames ) ;", "msg_token": "Tidying up an unused import"} {"diff": " public class TestOperationSetPresence \n newStatus , \n operationSetPresence1 . getPresenceStatus ( ) ) ; \n \n + logger . trace ( STRING0 + fixture . userID1 + STRING1 ) ; \n + \n MsnStatusEnum actualStatus = ( MsnStatusEnum ) \n operationSetPresence2 . queryContactStatus ( fixture . userID1 ) ; \n - \n + \n assertEquals ( STRING2 \n + STRING3 , \n newStatus , \n public class TestOperationSetPresence \n \n pauseAfterStateChanges ( ) ; \n \n + logger . trace ( STRING0 + fixture . userID2 + STRING1 ) ; \n PresenceStatus actualReturn \n = operationSetPresence1 . queryContactStatus ( fixture . userID2 ) ; \n assertEquals ( STRING4", "msg_token": "Add debug before query msn contact status"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LightScatteringFilter extends Filter { \n getClipCoordinates ( lightPosition , screenLightPos , viewPort . getCamera ( ) ) ; \n viewPort . getCamera ( ) . getViewMatrix ( ) . mult ( lightPosition , viewLightPos ) ; \n if ( adaptative ) { \n - innerLightDensity = Math . max ( lightDensity - Math . max ( screenLightPos . x , screenLightPos . y ) , FLOAT0 ) ; \n + float densityX = FLOAT1 - FastMath . clamp ( FastMath . abs ( screenLightPos . x - FLOAT2 ) , NUMBER0 , NUMBER1 ) ; \n + float densityY = FLOAT1 - FastMath . clamp ( FastMath . abs ( screenLightPos . y - FLOAT2 ) , NUMBER0 , NUMBER1 ) ; \n + innerLightDensity = lightDensity * densityX * densityY ; \n } else { \n innerLightDensity = lightDensity ; \n }", "msg_token": "changed the way lightdensity attenuation is computed according to this thread"} {"diff": " public final class InodeLastModificationTimeEntry implements JournalEntry { \n protected final long mId ; \n protected final long mLastModificationTimeMs ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public InodeLastModificationTimeEntry ( long id , long lastModificationTimeMs ) { \n mId = id ; \n mLastModificationTimeMs = lastModificationTimeMs ;", "msg_token": "fixed javadoc formatting"} {"diff": " public class Main { \n } \n \n private static void printUsageAndExit ( ) { \n - System . out . println ( STRING0 + Main . class . getName ( ) + STRING1 ) ; \n - System . out . println ( STRING2 ) ; \n + System . out . println ( STRING0 + Main . class . getName ( ) + STRING3 ) ; \n + System . out . println ( STRING4 ) ; \n System . out . println ( STRING5 ) ; \n System . out . println ( STRING6 ) ; \n System . out . println ( STRING7 ) ; \n System . out . println ( STRING8 ) ; \n System . out . println ( STRING9 ) ; \n System . out . println ( STRING10 ) ; \n - System . out . println ( STRING11 ) ; \n + System . out . println ( STRING12 ) ; \n System . out . println ( STRING13 ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "improve usage text a bit"} {"diff": " public class FileObserverService extends Service { \n ProviderTableMeta . FILE_KEEP_IN_SYNC + STRING0 , \n new String [ ] { String . valueOf ( NUMBER0 ) } , \n null ) ; \n - if ( ! c . moveToFirst ( ) ) return ; \n + if ( c == null || ! c . moveToFirst ( ) ) return ; \n AccountManager acm = AccountManager . get ( this ) ; \n Account [ ] accounts = acm . getAccounts ( ) ; \n do {", "msg_token": "Fixed null pointer in FileObserverService initialization"} {"diff": " public class GLM extends ModelBuilder < GLMModel , GLMParameters , GLMOutput > { \n \n String [ ] cnames = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ; \n if ( _lambdaDevTest != null ) \n - cnames = ArrayUtils . append ( cnames , STRING6 ) ; \n + cnames = ArrayUtils . append ( cnames , STRING7 ) ; \n if ( _lambdaDevXval != null ) \n cnames = ArrayUtils . append ( cnames , new String [ ] { STRING8 , STRING9 } ) ; \n String [ ] ctypes = new String [ ] { STRING10 , STRING10 , STRING11 , STRING10 , STRING11 , STRING12 } ;", "msg_token": "Fixed name in glm scoring history json output"} {"diff": " public abstract class AbstractAction implements Action { \n this . outputs = ImmutableSet . copyOf ( outputs ) ; \n this . runfilesSupplier = Preconditions . checkNotNull ( runfilesSupplier , \n STRING0 ) ; \n - Preconditions . checkArgument ( ! this . outputs . isEmpty ( ) , owner ) ; \n + Preconditions . checkArgument ( ! this . outputs . isEmpty ( ) , STRING1 ) ; \n } \n \n @ override \n public abstract class AbstractAction implements Action { \n protected abstract String computeKey ( ) ; \n \n @ override \n - public synchronized final String getKey ( ) { \n + public final synchronized String getKey ( ) { \n if ( cachedKey == null ) { \n cachedKey = computeKey ( ) ; \n }", "msg_token": "Improve an error message"} {"diff": " import static NAMESPACE ; \n public class ConsistencyCheckTool \n { \n SINGLE \n - static final boolean EXPERIMENTAL_BY_DEFAULT = true ; \n + public static final boolean EXPERIMENTAL_BY_DEFAULT = true ; \n \n static final String RECOVERY = STRING0 ; \n static final String CONFIG = STRING1 ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n enum ConsistencyCheck \n FileSystemAbstraction fileSystem , PageCache pageCache , boolean verbose ) \n throws ConsistencyCheckFailedException \n { \n - return EXPERIMENTAL . runFull ( storeDir , tuningConfiguration , progressFactory , logProvider , \n + ConsistencyCheck checker = ConsistencyCheckTool . EXPERIMENTAL_BY_DEFAULT ? EXPERIMENTAL : LEGACY ; \n + return checker . runFull ( storeDir , tuningConfiguration , progressFactory , logProvider , \n fileSystem , pageCache , verbose ) ; \n } \n } ,", "msg_token": "Uses ConsistencyCheckTool version default for BackupTool"} {"diff": " public abstract class OAbstractPaginatedStorage extends OStorageAbstract \n final String originalName = engineName ; \n engineName = engineName . toLowerCase ( configuration . getLocaleInstance ( ) ) ; \n \n - if ( indexEngineNameMap . containsKey ( engineName ) ) \n - throw new OIndexException ( STRING0 + engineName + STRING1 ) ; \n + if ( indexEngineNameMap . containsKey ( engineName ) ) { \n + SINGLE \n + OLogManager . instance ( ) . warn ( this , STRING2 , engineName ) ; \n + final OIndexEngine engine = indexEngineNameMap . remove ( engineName ) ; \n + if ( engine != null ) { \n + indexEngines . remove ( engine ) ; \n + configuration . deleteIndexEngine ( engineName ) ; \n + engine . delete ( ) ; \n + } \n + } \n \n makeStorageDirty ( ) ;", "msg_token": "replace an index if it s broken partial"} {"diff": " public class ReaderPostListFragment extends Fragment \n if ( position >= NUMBER0 && mPostSelectedListener != null ) { \n ReaderPost post = ( ReaderPost ) getPostAdapter ( ) . getItem ( position ) ; \n if ( post != null ) { \n - AnalyticsTracker . track ( AnalyticsTracker . Stat . READER_OPENED_ARTICLE ) ; \n mPostSelectedListener . onPostSelected ( post . blogId , post . postId ) ; \n } \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderPostPagerActivity extends Activity \n @ override \n public void onPageSelected ( int position ) { \n super . onPageSelected ( position ) ; \n + AnalyticsTracker . track ( AnalyticsTracker . Stat . READER_OPENED_ARTICLE ) ; \n + \n onRequestFullScreen ( false ) ; \n SINGLE \n if ( mViewPager . getAdapter ( ) != null ) {", "msg_token": "Corrected duplicate tracking of READER_OPENED_ARTICLE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n final class MarkableInputStream extends InputStream { \n + private static final int DEFAULT_BUFFER_SIZE = NUMBER0 ; \n + \n private final InputStream in ; \n \n private long offset ; \n private long reset ; \n private long limit ; \n - \n private long defaultMark = - NUMBER1 ; \n \n public MarkableInputStream ( InputStream in ) { \n + this ( in , DEFAULT_BUFFER_SIZE ) ; \n + } \n + \n + public MarkableInputStream ( InputStream in , int size ) { \n if ( ! in . markSupported ( ) ) { \n - in = new BufferedInputStream ( in ) ; \n + in = new BufferedInputStream ( in , size ) ; \n } \n this . in = in ; \n }", "msg_token": "Change default buffersize"} {"diff": " public class FakeContext implements Context { \n return contentType . startsWith ( ContentTypes . APPLICATION_XML ) ; \n } \n \n - \n - } \n + @ override \n + public void addCookie ( Cookie cookie ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n + \n + @ override \n + public void unsetCookie ( Cookie cookie ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n + }", "msg_token": "added missing methods"} {"diff": " public class UberTestCase2 extends TestCase { \n suite . addTestSuite ( groovy . bugs . Groovy779_Bug . class ) ; \n suite . addTestSuite ( groovy . bugs . Groovy831_Bug . class ) ; \n suite . addTestSuite ( groovy . bugs . Groovy872 . class ) ; \n - suite . addTestSuite ( groovy . bugs . Groovy872 . class ) ; \n suite . addTestSuite ( groovy . bugs . Groovy977 . class ) ; \n + suite . addTestSuite ( groovy . bugs . IanMaceysBug . class ) ; \n suite . addTestSuite ( groovy . bugs . InterfaceImplBug . class ) ; \n suite . addTestSuite ( groovy . bugs . MarkupInScriptBug . class ) ; \n suite . addTestSuite ( groovy . bugs . MethodClosureWithArrayBug . class ) ;", "msg_token": "Correcting a faulty edit commit removed the duplicate and reinstated the deleted test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public interface FileWatcherFactory { \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 FileWatcher watch ( FileSystemSubset systemSubset , Action < ? super Throwable > onError , FileWatcherListener listener ) ; \n }", "msg_token": "Add some docs on the filewatcher contract"} {"diff": " public interface Transformer < T > { \n \n @ override \n public TypeDescription . Generic getReceiverType ( ) { \n - return methodDescription . getReceiverType ( ) ; \n + TypeDescription . Generic receiverType = token . getReceiverType ( ) ; \n + return receiverType == null \n + ? TypeDescription . Generic . UNDEFINED \n + : receiverType . accept ( TypeDescription . Generic . Visitor . Substitutor . ForAttachment . of ( this ) ) ; \n } \n \n COMMENT", "msg_token": "Fixed receiver type resolution"} {"diff": " public class SolrFixtures { \n if ( serverType == TestServerType . USE_HTTPS ) { \n return STRING0 + httpsPort + STRING1 ; \n } else if ( serverType == TestServerType . USE_CLOUD ) { \n - String zkHostStr = cloudFixture . miniCluster . getZkServer ( ) \n - . getZkHost ( ) ; \n + String zkAddrStr = cloudFixture . miniCluster . getZkServer ( ) . getZkAddress ( ) ; \n return STRING2 + httpsPort + STRING3 \n - + zkHostStr + STRING4 ; \n + + zkAddrStr + STRING4 ; \n } else { \n return STRING5 + port + STRING1 ; \n }", "msg_token": "Get zkHost correctly when constructing test endpoint a test passes"} {"diff": " public class BackgroundProcessManager { \n synchronized ( processesLock ) { \n if ( processes . size ( ) == NUMBER0 ) { \n wsBackgroundThread = new WsBackgroundThread ( this ) ; \n + wsBackgroundThread . setContextClassLoader ( \n + this . getClass ( ) . getClassLoader ( ) ) ; \n wsBackgroundThread . setDaemon ( true ) ; \n wsBackgroundThread . start ( ) ; \n }", "msg_token": "Avoid a memory leak with the background processing thread"} {"diff": " public class MultiUserChatTest extends SmackTestCase { \n if ( ( room + STRING0 ) . equals ( participant ) ) { \n answer [ NUMBER0 ] = participant ; \n } \n - else { \n + SINGLE \n + else if ( ! ( room + STRING1 ) . equals ( participant ) ) { \n answer [ NUMBER1 ] = participant ; \n } \n } \n public class MultiUserChatTest extends SmackTestCase { \n if ( ( room + STRING1 ) . equals ( participant ) ) { \n answer [ NUMBER2 ] = participant ; \n } \n - else { \n + SINGLE \n + else if ( ! ( room + STRING0 ) . equals ( participant ) ) { \n answer [ NUMBER3 ] = participant ; \n } \n }", "msg_token": "Fixed testJoinLeftEvents since the server may send an unavailable presence to the user that just left the room"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public interface AnalysisPlugin { \n COMMENT", "msg_token": "Add note explaining analysis caching for plugins"} {"diff": " public abstract class ReactNativeHost { \n return null ; \n } \n \n + protected final Application getApplication ( ) { \n + return mApplication ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add oss based fb activity and host classes"} {"diff": " public class PreferenceManager { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - interface OnPreferenceTreeClickListener { \n + public interface OnPreferenceTreeClickListener { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make public but hide OnPreferenceTreeClickListener"} {"diff": " public class TestWebSocketFrameClient extends TomcatBaseTest { \n \n SINGLE \n SINGLE \n - handler . getLatch ( ) . await ( NUMBER0 , TimeUnit . SECONDS ) ; \n + handler . getLatch ( ) . await ( TesterFirehoseServer . WAIT_TIME_MILLIS , \n + TimeUnit . MILLISECONDS ) ; \n \n List < String > messages = handler . getMessages ( ) ; \n Assert . assertEquals ( \n public class TesterFirehoseServer { \n public static final int MESSAGE_COUNT = NUMBER1 ; \n public static final String MESSAGE ; \n public static final int MESSAGE_SIZE = NUMBER2 ; \n + public static final int WAIT_TIME_MILLIS = NUMBER3 ; \n \n static { \n StringBuilder sb = new StringBuilder ( MESSAGE_SIZE ) ; \n public class TesterFirehoseServer { \n } \n } \n \n + session . getUserProperties ( ) . put ( \n + STRING0 , \n + Long . valueOf ( WAIT_TIME_MILLIS ) ) ; \n + \n Basic remote = session . getBasicRemote ( ) ; \n remote . setBatchingAllowed ( true ) ;", "msg_token": "Use a common wait time on the server and the client"} {"diff": " public class DependencyParser { \n IndexedWord root = new IndexedWord ( new Word ( STRING0 + ( tokens . size ( ) + NUMBER0 ) ) ) ; \n root . set ( CoreAnnotations . IndexAnnotation . class , - NUMBER0 ) ; \n \n - for ( int i = NUMBER0 ; i < result . n ; i ++ ) { \n + for ( int i = NUMBER0 ; i <= result . n ; i ++ ) { \n int head = result . getHead ( i ) ; \n String label = result . getLabel ( i ) ;", "msg_token": "Don t drop the last token of the sentence when converting dependency parse formats"} {"diff": " public class GitRebaser { \n mySkippedCommits = new ArrayList < GitRebaseUtils . CommitInfo > ( ) ; \n } \n \n - public void setProgressIndicator ( @ nullable ProgressIndicator progressIndicator ) { \n - myProgressIndicator = progressIndicator ; \n - } \n - \n public GitUpdateResult rebase ( @ notnull VirtualFile root , \n @ notnull List < String > parameters , \n @ nullable final Runnable onCancel ,", "msg_token": "git remove unused method"} {"diff": " public class KeyguardViewMediator extends SystemUI { \n \n @ override \n public void onFingerprintAuthenticated ( int userId , boolean wakeAndUnlocking ) { \n + boolean unlockingWithFingerprintAllowed = \n + mUpdateMonitor . isUnlockingWithFingerprintAllowed ( ) ; \n if ( mStatusBarKeyguardViewManager . isBouncerShowing ( ) ) { \n - if ( mUpdateMonitor . isUnlockingWithFingerprintAllowed ( ) ) { \n + if ( unlockingWithFingerprintAllowed ) { \n mStatusBarKeyguardViewManager . notifyKeyguardAuthenticated ( ) ; \n } \n } else { \n - if ( wakeAndUnlocking ) { \n + if ( wakeAndUnlocking && unlockingWithFingerprintAllowed ) { \n mWakeAndUnlocking = true ; \n keyguardDone ( true , true ) ; \n } else { \n + if ( wakeAndUnlocking ) { \n + mStatusBarKeyguardViewManager . notifyScreenWakeUpRequested ( ) ; \n + } \n mStatusBarKeyguardViewManager . animateCollapsePanels ( \n FINGERPRINT_COLLAPSE_SPEEDUP_FACTOR ) ; \n }", "msg_token": "Fixed wake to unlock when the device has never been unlocked"} {"diff": " public abstract class JavaPlugin implements Plugin { \n private final PluginDescriptionFile description ; \n private final File dataFolder ; \n private final ClassLoader classLoader ; \n + private final Configuration config ; \n \n COMMENT \n COMMENT \n public abstract class JavaPlugin implements Plugin { \n description = desc ; \n dataFolder = folder ; \n classLoader = cLoader ; \n + config = new Configuration ( new File ( dataFolder , STRING0 ) ) ; \n + config . load ( ) ; \n } \n \n COMMENT \n public abstract class JavaPlugin implements Plugin { \n COMMENT \n COMMENT \n public Configuration getConfiguration ( ) { \n - Configuration config = \n - new Configuration ( new File ( dataFolder , STRING0 ) ) ; \n - config . load ( ) ; \n return config ; \n }", "msg_token": "JavaPlugin now loads the configuration file on load"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class WebDAVEnviornmentConfigTestListener \n + public class WebDAVEnvironmentConfigTestListener \n extends EnvironmentExecutionTestListener { \n \n @ override \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ executiontestlisteners ( listeners = { WebDAVEnviornmentConfigTestListener . class } ) \n + @ executiontestlisteners ( listeners = { WebDAVEnvironmentConfigTestListener . class } ) \n @ runwith ( LiferayIntegrationJUnitTestRunner . class ) \n public class WebDAVLitmusBasicTest extends BaseWebDAVTestCase { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ executiontestlisteners ( listeners = { WebDAVEnviornmentConfigTestListener . class } ) \n + @ executiontestlisteners ( listeners = { WebDAVEnvironmentConfigTestListener . class } ) \n @ runwith ( LiferayIntegrationJUnitTestRunner . class ) \n public class WebDAVLitmusCopyMoveTest extends BaseWebDAVTestCase { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ executiontestlisteners ( listeners = { WebDAVEnviornmentConfigTestListener . class } ) \n + @ executiontestlisteners ( listeners = { WebDAVEnvironmentConfigTestListener . class } ) \n @ runwith ( LiferayIntegrationJUnitTestRunner . class ) \n public class WebDAVOSXTest extends BaseWebDAVTestCase {", "msg_token": "it s environment not enviornment"} {"diff": " public class StreamResource extends RestResource { \n throw new WebApplicationException ( e , Response . Status . BAD_REQUEST ) ; \n } \n \n - checkPermission ( RestPermissions . STREAMS_CLONE , streamId ) ; \n + checkPermission ( RestPermissions . STREAMS_CREATE ) ; \n checkPermission ( RestPermissions . STREAMS_READ , streamId ) ; \n \n StreamImpl sourceStream = fetchStream ( streamId ) ; \n public class RestPermissions { \n public static final String STREAMS_CREATE = STRING0 ; \n public static final String STREAMS_READ = STRING1 ; \n public static final String STREAMS_EDIT = STRING2 ; \n - public static final String STREAMS_CLONE = STRING3 ; \n public static final String STREAMS_CHANGESTATE = STRING4 ; \n public static final String INDEXERCLUSTER_READ = STRING5 ; \n public static final String INDICES_READ = STRING6 ;", "msg_token": "Fixing permissions for stream cloning"} {"diff": " import NAMESPACE ; \n public class DefaultJavaCompileSpec extends DefaultJvmLanguageCompileSpec implements JavaCompileSpec { \n private CompileOptions compileOptions ; \n private File dependencyCacheDir ; \n - private File destinationDir ; \n private String sourceCompatibility ; \n private String targetCompatibility ; \n \n public class DefaultJavaCompileSpec extends DefaultJvmLanguageCompileSpec implem \n this . dependencyCacheDir = dependencyCacheDir ; \n } \n \n - public File getDestinationDir ( ) { \n - return destinationDir ; \n - } \n - \n - public void setDestinationDir ( File destinationDir ) { \n - this . destinationDir = destinationDir ; \n - } \n - \n public String getSourceCompatibility ( ) { \n return sourceCompatibility ; \n }", "msg_token": "Removed unecessary java params"} {"diff": " public class ItemlistFragment extends SherlockListFragment implements \n public void onClick ( View v ) { \n int index = getListView ( ) . getPositionForView ( v ) ; \n if ( index != ListView . INVALID_POSITION ) { \n - FeedItem newSelectedItem = items . get ( index ) ; \n + FeedItem newSelectedItem = fila . getItem ( index ) ; \n if ( newSelectedItem != selectedItem ) { \n if ( mActionMode != null ) { \n mActionMode . finish ( ) ;", "msg_token": "pressing the button of an itemlist item selected the wrong item if"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PostgresDatabase extends AbstractDatabase { \n \n \n protected SqlStatement getViewDefinitionSql ( String name ) throws JDBCException { \n - return new RawSqlStatement ( STRING0 + name + STRING1 ) ; \n + return new RawSqlStatement ( STRING0 + name + STRING1 ) ; \n + } \n + \n + \n + public String getColumnType ( ColumnConfig column ) { \n + String type = super . getColumnType ( column ) ; \n + \n + if ( column . isAutoIncrement ( ) ) { \n + if ( STRING2 . equals ( type . toLowerCase ( ) ) ) { \n + return STRING3 ; \n + } else if ( STRING4 . equals ( type . toLowerCase ( ) ) ) { \n + return STRING5 ; \n + } else { \n + SINGLE \n + return STRING3 ; \n + } \n + } \n + \n + return type ; \n } \n }", "msg_token": "Added postgres support for auto increment field types"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class MutableProjectReactorProvider extends ProviderAdapter { \n private ProjectReactor reactor = null ; \n \n - public ProjectReactor provide ( ProjectReactorBuilder builder , AnalysisProperties settings ) { \n + public ProjectReactor provide ( ProjectReactorBuilder builder ) { \n if ( reactor == null ) { \n reactor = builder . execute ( ) ; \n cleanDirectory ( reactor . getRoot ( ) . getWorkDir ( ) ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectCacheSynchronizerTest { \n @ mock \n private ProjectDefinition project ; \n @ mock \n - private ProjectReactor projectReactor ; \n - @ mock \n private ProjectCacheStatus cacheStatus ; \n @ mock \n private DefaultAnalysisMode analysisMode ;", "msg_token": "Remove unused objects"} {"diff": " public class PreviewImageFragment extends FileFragment { \n public void onPrepareOptionsMenu ( Menu menu ) { \n super . onPrepareOptionsMenu ( menu ) ; \n \n - if ( mContainerActivity . getStorageManager ( ) != null ) { \n + if ( mContainerActivity . getStorageManager ( ) != null && getFile ( ) != null ) { \n SINGLE \n setFile ( mContainerActivity . getStorageManager ( ) . getFileById ( getFile ( ) . getFileId ( ) ) ) ;", "msg_token": "Fixed NullPointerException after clearing app data when left from image preview"} {"diff": " import NAMESPACE ; \n COMMENT \n class DelegateRunnerWithTimeout extends Runner { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final ExecutorService executor = MoreExecutors . newSingleThreadExecutor ( ) ; \n + \n private final Runner delegate ; \n private final long defaultTestTimeoutMillis ; \n \n class DelegateRunnerWithTimeout extends Runner { \n delegate , notifier , defaultTestTimeoutMillis ) ; \n \n SINGLE \n - ExecutorService executor = MoreExecutors . newSingleThreadExecutor ( ) ; \n Future < ? > future = executor . submit ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Reuse the ExecutorService in DelegateRunnerWithTimeout so all tests are run on the same thread"} {"diff": " public class SubscriptionManager implements BaseColumns { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SubscriptionManager implements BaseColumns { \n public static int setColor ( int color , int subId ) { \n if ( VDBG ) logd ( STRING0 + color + STRING1 + subId ) ; \n int size = sSimBackgroundDarkRes . length ; \n - if ( ! isValidSubId ( subId ) || color < NUMBER0 || color >= size ) { \n + if ( ! isValidSubId ( subId ) ) { \n logd ( STRING2 ) ; \n return - NUMBER1 ; \n }", "msg_token": "Remove checks to support new sim color selection"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed type on docs"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix broken link in docs"} {"diff": " class WireUncaughtExceptionHandler implements Thread . UncaughtExceptionHandler { \n @ override \n public void uncaughtException ( Thread thread , Throwable throwable ) { \n try { \n - Throwable cause = throwable . getCause ( ) ; \n - if ( cause == null ) { \n - cause = throwable ; \n + Throwable cause = throwable ; \n + while ( cause . getCause ( ) != null ) { \n + cause = cause . getCause ( ) ; \n } \n StackTraceElement [ ] stack = cause . getStackTrace ( ) ;", "msg_token": "Adjusted exception handler to get topmost cause of exception"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove unused imports of no longer existing classes"} {"diff": " public class ContentEntriesEditor extends ModuleElementsEditor { \n if ( myRootTreeEditor != null ) { \n myRootTreeEditor . setContentEntryEditor ( null ) ; \n } \n + if ( myModulesProvider instanceof ModulesConfigurator ) { \n + ( ( ModulesConfigurator ) myModulesProvider ) . disposeUIResources ( ) ; \n + } \n super . disposeUIResources ( ) ; \n }", "msg_token": "additional dispose resources"} {"diff": " public class HttpClient { \n SINGLE \n HttpRequest request = new DefaultHttpRequest ( HttpVersion . HTTP_1_0 , HttpMethod . GET , uri ) ; \n request . addHeader ( HttpHeaders . HOST , host ) ; \n - ChannelFuture lastWriteFuture = channel . write ( request ) ; \n - lastWriteFuture . awaitUninterruptibly ( ) ; \n + channel . write ( request ) ; \n + \n + SINGLE \n + channel . getCloseFuture ( ) . awaitUninterruptibly ( ) ; \n + \n + SINGLE \n + factory . getExternalResource ( ) . release ( ) ; \n } \n }", "msg_token": "Resource should be released in HttpClient example"} {"diff": " public class BpmnParse extends Parse { \n super ( parser ) ; \n this . expressionManager = parser . getExpressionManager ( ) ; \n this . parseListeners = parser . getParseListeners ( ) ; \n - \n \n - SINGLE \n setSchemaResource ( Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( BpmnParser . SCHEMA_RESOURCE ) . toString ( ) ) ; \n - \n - \n + \n this . importers . put ( STRING0 , new WSDLImporter ( ) ) ; \n } \n \n public class BpmnParse extends Parse { \n parseSubProcess ( activityElement , scopeElement ) ; \n } else if ( activityElement . getTagName ( ) . equals ( STRING1 ) ) { \n parseCallActivity ( activityElement , scopeElement ) ; \n + } else { \n + addWarning ( STRING2 , activityElement ) ; \n } \n } \n }", "msg_token": "added warning for unsupported activity types"} {"diff": " public class ConnectionExplorer extends Composite implements RequiresResize \n initWidget ( dockPanel_ ) ; \n } \n \n - \n - public void addItem ( String item ) \n - { \n - dataProvider_ . getList ( ) . add ( item ) ; \n - } \n - \n public void setConnection ( Connection connection , String connectVia ) \n { \n codePanel_ . setCode ( connection . getConnectCode ( ) , connectVia ) ;", "msg_token": "remove unused method"} {"diff": " import NAMESPACE ; \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", "msg_token": "Add comment warning against incorrect use"} {"diff": " public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid \n SINGLE \n registrationEnabled = JiveGlobals . getBooleanProperty ( STRING0 , true ) ; \n SINGLE \n - canChangePassword = JiveGlobals . getBooleanProperty ( STRING1 , true ) ; \n + canChangePassword = JiveGlobals . getBooleanProperty ( STRING2 , true ) ; \n } \n \n public IQ handleIQ ( IQ packet ) throws PacketException , UnauthorizedException { \n public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid \n \n public void setCanChangePassword ( boolean allowed ) { \n canChangePassword = allowed ; \n - JiveGlobals . setProperty ( STRING1 , canChangePassword ? STRING3 : STRING4 ) ; \n + JiveGlobals . setProperty ( STRING2 , canChangePassword ? STRING3 : STRING4 ) ; \n } \n \n public IQHandlerInfo getInfo ( ) {", "msg_token": "change register password to xmpp auth iqauth to match IQAuthHandler"} {"diff": " public class CacheBatchInvalidationMessage extends CacheInvalidationMessage { \n public CacheBatchInvalidationMessage ( String name , \n List < CacheSingleInvalidationMessage > invalidationMessages ) { \n super ( name ) ; \n - assert invalidationMessages != null : STRING0 + invalidationMessages ; \n this . invalidationMessages = invalidationMessages ; \n }", "msg_token": "Removed assertion for invalidationMessages in constructor of CacheBatchInvalidationMessage"} {"diff": " import NAMESPACE ; \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 public class ValidatorParameterHelper { \n \n private static final List < String > ANDROID_SHERLOCK_MENU_ITEM_QUALIFIED_NAMES = asList ( CanonicalNameConstants . MENU_ITEM , CanonicalNameConstants . SHERLOCK_MENU_ITEM ) ; \n private static final List < String > EDITOR_ACTION_ALLOWED_PARAMETER_TYPES = asList ( CanonicalNameConstants . TEXT_VIEW , CanonicalNameConstants . INTEGER , STRING0 , CanonicalNameConstants . KEY_EVENT ) ; \n - private static final List < String > PREFERENCE_CHANGE_ALLOWED_NEWVALUE_PARAM = asList ( CanonicalNameConstants . OBJECT , CanonicalNameConstants . SET , CanonicalNameConstants . STRING , CanonicalNameConstants . BOOLEAN ) ; \n + private static final List < String > PREFERENCE_CHANGE_ALLOWED_NEWVALUE_PARAM = asList ( CanonicalNameConstants . OBJECT , CanonicalNameConstants . STRING_SET , CanonicalNameConstants . STRING , CanonicalNameConstants . BOOLEAN ) ; \n \n protected final TargetAnnotationHelper annotationHelper ;", "msg_token": "Fix valid types of PreferenceChange newValue param"} {"diff": " public class MessageList \n \n @ override \n public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { \n - SINGLE \n - if ( mCurrentFolder != null && ( ( position + NUMBER0 ) == mListView . getAdapter ( ) . getCount ( ) ) ) { \n - mController . loadMoreMessages ( mAccount , mFolderName , mAdapter . mListener ) ; \n + if ( view == mFooterView ) { \n + if ( mCurrentFolder != null ) { \n + mController . loadMoreMessages ( mAccount , mFolderName , mAdapter . mListener ) ; \n + } \n return ; \n }", "msg_token": "Don t crash if footer view is clicked in search results"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectConfigurablesGroup implements ConfigurableGroup { \n } \n \n public Configurable [ ] getConfigurables ( ) { \n - return myProject . getComponents ( Configurable . class ) ; \n + Configurable [ ] components = myProject . getComponents ( Configurable . class ) ; \n + Configurable [ ] configurables = new Configurable [ components . length - ( isDefault ( ) ? NUMBER0 : NUMBER1 ) ] ; \n + int j = NUMBER1 ; \n + for ( int i = NUMBER1 ; i < components . length ; i ++ ) { \n + if ( components [ i ] instanceof ScopeChooserConfigurable && isDefault ( ) ) continue ; SINGLE \n + configurables [ j ++ ] = components [ i ] ; \n + } \n + return configurables ; \n } \n \n public int hashCode ( ) {", "msg_token": "hide scopes configurable for default project"} {"diff": " import NAMESPACE ; \n public class ASTHelper { \n \n private static final String [ ] EMPTY_STRING_ARRAY = new String [ NUMBER0 ] ; \n - private static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING1 , STRING2 } ; \n + private static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING3 , STRING4 , STRING5 , STRING1 , STRING2 } ; \n \n COMMENT \n private SourceUnit controller ;", "msg_token": "added default imports to java lang java io javadotNet java util"} {"diff": " public class ComponentModelBasePlugin implements Plugin < ProjectInternal > { \n @ model \n PlatformContainer platforms ( ServiceRegistry serviceRegistry ) { \n Instantiator instantiator = serviceRegistry . get ( Instantiator . class ) ; \n - return new DefaultPlatformContainer ( instantiator ) ; \n + return instantiator . newInstance ( DefaultPlatformContainer . class , instantiator ) ; \n } \n \n @ model @ internal \n public class LanguageBasePlugin implements Plugin < Project > { \n } \n \n @ model \n - ProjectSourceSet sources ( ) { \n - return new DefaultProjectSourceSet ( ) ; \n + ProjectSourceSet sources ( ServiceRegistry serviceRegistry ) { \n + return serviceRegistry . get ( Instantiator . class ) . newInstance ( DefaultProjectSourceSet . class ) ; \n } \n \n @ mutate", "msg_token": "Added some decoration back"} {"diff": " public class UnderStoreBlockInStreamTest { \n COMMENT \n private void singleByteReadInternal ( UnderStoreBlockInStream inStream , int startIndex ) \n throws IOException { \n - long remaining = mBlockStream . remaining ( ) ; \n + long remaining = inStream . remaining ( ) ; \n for ( int i = startIndex ; i < startIndex + BLOCK_LENGTH ; i ++ ) { \n Assert . assertEquals ( i , inStream . read ( ) ) ; \n remaining -- ;", "msg_token": "Fix unittest for ufs block instream"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb \n } \n \n private static boolean versionMatch ( @ nullable Sdk sdk , String version ) { \n - if ( sdk != null ) { \n + if ( sdk != null && sdk . getSdkType ( ) instanceof JavaSdk ) { \n String versionString = sdk . getVersionString ( ) ; \n return versionString != null && versionString . contains ( version ) ; \n }", "msg_token": "check only java sdk versions"} {"diff": " public class TestShardOrganizationManager \n assertEquals ( actual , ImmutableSet . of ( table1 , table2 ) ) ; \n \n SINGLE \n - organizerDao . updateLastStartTime ( STRING0 , table1 , System . currentTimeMillis ( ) ) ; \n - organizerDao . updateLastStartTime ( STRING0 , table2 , System . currentTimeMillis ( ) ) ; \n + long updateTime = System . currentTimeMillis ( ) ; \n + organizerDao . updateLastStartTime ( STRING0 , table1 , updateTime ) ; \n + organizerDao . updateLastStartTime ( STRING0 , table2 , updateTime ) ; \n \n SINGLE \n long start = System . nanoTime ( ) ;", "msg_token": "Fix flaky test in TestShardOrganizationManager"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NodeImpl extends PersistedImpl implements Node { \n } \n \n @ override \n + @ jsonignore \n public Map < String , Validator > getValidations ( ) { \n return Collections . emptyMap ( ) ; \n } \n \n @ override \n + @ jsonignore \n public Map < String , Validator > getEmbeddedValidations ( String key ) { \n return Collections . emptyMap ( ) ; \n }", "msg_token": "Ignoring internal fields in JSON serialization"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class Utils { \n provider . addConditions ( field . equal ( record . getValue ( field ) ) ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - static final Configuration getConfiguration ( Attachable attachable ) { \n - if ( attachable instanceof AttachableInternal ) { \n - return ( ( AttachableInternal ) attachable ) . configuration ( ) ; \n - } \n - \n - return null ; \n - } \n - \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Removed unused internal method"} {"diff": " public class SvnConfiguration implements PersistentStateComponent < Element > { \n else { \n myIsUseDefaultConfiguration = true ; \n } \n - SINGLE \n - List urls = element . getChildren ( STRING0 ) ; \n - for ( Object url1 : urls ) { \n - Element child = ( Element ) url1 ; \n - String url = child . getText ( ) ; \n - if ( url != null ) { \n - SvnApplicationSettings . getInstance ( ) . addCheckoutURL ( url ) ; \n - } \n - } \n myIsKeepLocks = element . getChild ( STRING1 ) != null ; \n final Element useProxy = element . getChild ( STRING2 ) ; \n if ( useProxy == null ) {", "msg_token": "Refactored SvnConfiguration removed old compatibility logic for checkout urls config parameter which was moved from workspace file to app config"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ForkingGradleExecuter extends AbstractGradleExecuter { \n gradleHome , \n path ) ) ; \n builder . environment ( STRING0 , STRING1 ) ; \n + \n + LOG . info ( STRING2 ) ; \n + new WindowsProcessInitializer ( ) . initialize ( ) ; \n } \n }", "msg_token": "ForkingGradleExecuter now uses the same logic as the daemon to make sure chlid processes are fully detached"} {"diff": " public class PullToRefreshHelper implements OnRefreshListener { \n ) ; \n } \n setupWizard . setup ( mPullToRefreshLayout ) ; \n + SINGLE \n + setNetworkRefreshMode ( true ) ; \n } \n \n COMMENT", "msg_token": "set network refresh mode as default"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class VcsUpdateInfoScopeFilterConfigurable implements Configurable , NamedScopesH \n final JPanel panel = new JPanel ( new FlowLayout ( FlowLayout . LEFT , NUMBER0 , NUMBER0 ) ) ; \n panel . add ( myCheckbox ) ; \n panel . add ( myComboBox ) ; \n + panel . add ( Box . createHorizontalStrut ( UIUtil . DEFAULT_HGAP ) ) ; \n panel . add ( new LinkLabel ( STRING0 , null , new LinkListener ( ) { \n @ override \n public void linkSelected ( LinkLabel aSource , Object aLinkData ) {", "msg_token": "add a spacer between label and combobox"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class ReproduceInfoPrinter extends RunListener { \n \n - \n + protected final ESLogger logger = Loggers . getLogger ( ElasticsearchTestCase . class ) ; \n + \n + @ override \n + public void testStarted ( Description description ) throws Exception { \n + logger . info ( STRING0 , description . getDisplayName ( ) ) ; \n + } \n + \n @ override \n public void testFailure ( Failure failure ) throws Exception { \n SINGLE \n public class ReproduceInfoPrinter extends RunListener { \n } \n traces . formatThrowable ( b , failure . getException ( ) ) ; \n } \n - System . out . println ( b . toString ( ) ) ; \n + logger . error ( b . toString ( ) ) ; \n } \n \n private static class MavenMessageBuilder extends ReproduceErrorMessageBuilder {", "msg_token": "Add test method information to log output"} {"diff": " public class HgFile { \n } \n \n private static String buildRelativePath ( File anchestor , File descendant ) { \n + if ( anchestor . equals ( descendant ) ) { \n + return STRING0 ; \n + } \n if ( anchestor . equals ( descendant . getParentFile ( ) ) ) { \n return descendant . getName ( ) ; \n }", "msg_token": "correctly calculate relative path for root"} {"diff": " public abstract class EComponentWithViewSupportHolder extends EComponentHolder { \n JDefinedClass onSeekbarChangeListenerClass = getCodeModel ( ) . anonymousClass ( getClasses ( ) . ON_SEEKBAR_CHANGE_LISTENER ) ; \n JClass viewClass = getClasses ( ) . SEEKBAR ; \n \n - JBlock onViewChangedBody = getOnViewChangedBody ( ) . block ( ) ; \n - JVar viewVariable = onViewChangedBody . decl ( FINAL , viewClass , STRING0 , cast ( viewClass , findViewById ( idRef ) ) ) ; \n - onViewChangedBody . _if ( viewVariable . ne ( JExpr . _null ( ) ) ) . _then ( ) SINGLE \n - . invoke ( viewVariable , STRING1 ) . arg ( _new ( onSeekbarChangeListenerClass ) ) ; \n + FoundViewHolder foundViewHolder = getFoundViewHolder ( idRef , viewClass ) ; \n + foundViewHolder . getIfNotNullBlock ( ) . invoke ( foundViewHolder . getRef ( ) , STRING1 ) . arg ( _new ( onSeekbarChangeListenerClass ) ) ; \n \n return new OnSeekBarChangeListenerHolder ( this , onSeekbarChangeListenerClass ) ; \n }", "msg_token": "Remove doubled findViewById with SeekBarXXX"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UberRDotJava extends AbstractBuildable implements \n GenRDotJavaStep genRDotJava = new GenRDotJavaStep ( \n resDirectories , \n rDotJavaSrc , \n - rDotJavaPackages . iterator ( ) . next ( ) , \n + Iterables . get ( rDotJavaPackages , NUMBER0 ) , \n COMMENT \n - rDotJavaPackages ) ; \n + FluentIterable . from ( rDotJavaPackages ) . skip ( NUMBER1 ) . toSet ( ) ) ; \n steps . add ( genRDotJava ) ; \n \n if ( shouldBuildStringSourceMap ) {", "msg_token": "Do not pass the main R java package in the extraLibraryPackages arg of aapt"} {"diff": " public class ShowTools { \n \n ContentValues values = new ContentValues ( ) ; \n for ( Show show : shows ) { \n - SINGLE \n - if ( show . getIsRemoved ( ) != null && show . getIsRemoved ( ) ) { \n - continue ; \n - } \n - \n SINGLE \n if ( ! showsExisting . contains ( show . getTvdbId ( ) ) ) { \n + SINGLE \n + if ( show . getIsRemoved ( ) != null && show . getIsRemoved ( ) ) { \n + continue ; \n + } \n + \n if ( ! showsNew . containsKey ( show . getTvdbId ( ) ) ) { \n SINGLE \n SearchResult item = new SearchResult ( ) ; \n public class ShowTools { \n item . title = STRING0 ; \n showsNew . put ( show . getTvdbId ( ) , item ) ; \n } \n + \n SINGLE \n continue ; \n }", "msg_token": "Sync shows flagged as removed just do not auto add them"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n cmp = myPsiRenderer . getListCellRendererComponent ( list , value , index , isSelected , cellHasFocus ) ; \n } else { \n cmp = super . getListCellRendererComponent ( list , value , index , isSelected , cellHasFocus ) ; \n + final JPanel p = new JPanel ( new BorderLayout ( ) ) ; \n + p . setBackground ( UIUtil . getListBackground ( isSelected ) ) ; \n + p . add ( cmp , BorderLayout . CENTER ) ; \n + cmp = p ; \n } \n if ( myLocationString != null || value instanceof BooleanOptionDescription ) { \n final JPanel panel = new JPanel ( new BorderLayout ( ) ) ;", "msg_token": "gaps in actions w o location string"} {"diff": " public class KillbillJdbcRealm extends JdbcRealm { \n \n private void configureDataSource ( ) { \n final DataSource realDataSource = new DataSourceProvider ( config ) . get ( ) ; \n - final DataSource dataSource = new ReferenceableDataSourceSpy < DataSource > ( realDataSource , SHIRO_DATA_SOURCE_ID ) ; \n + final DataSource dataSource = new ReferenceableDataSourceSpy ( realDataSource , SHIRO_DATA_SOURCE_ID ) ; \n setDataSource ( dataSource ) ; \n } \n }", "msg_token": "update to latest ReferenceableDataSourceSpy API"} {"diff": " package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class ChildNumber { \n public class EncryptedPrivateKey { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public EncryptedPrivateKey ( byte [ ] initialisationVector , byte [ ] encryptedPrivateKeys ) { \n class TransactionalHashMap < KeyType , ValueType > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n class TransactionalMultiKeyHashMap < UniqueKeyType , MultiKeyType , ValueType > { \n TransactionalHashMap < UniqueKeyType , ValueType > mapValues ;", "msg_token": "Fixed type references in javadoc to avoid IntelliJ error reports on rebuild"} {"diff": " public abstract class Plugin { \n private static final String PLUGIN_PROPERTIES_NAME_KEY = STRING0 ; \n private static final String PLUGIN_PROPERTIES_VERSION_KEY = STRING1 ; \n private static final String PLUGIN_PROPERTIES_DATE_KEY = STRING2 ; \n - private static final String PLUGIN_PROPERTIES_REVISION_KEY = STRING3 ; \n \n private String pluginId ; \n private Properties pluginProperties ; \n public abstract class Plugin { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public String getRevision ( ) { \n - return pluginProperties . getProperty ( PLUGIN_PROPERTIES_REVISION_KEY ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove pluginRevision because it does not exist"} {"diff": " public class GlobalSettings { \n @ override \n public boolean isValid ( String key , String value , Map < String , String > validatedSettings ) { \n try { \n + SINGLE \n + if ( DateFormatter . SHORT_FORMAT . equals ( value ) || \n + DateFormatter . MEDIUM_FORMAT . equals ( value ) ) { \n + return true ; \n + } \n + \n + SINGLE \n new SimpleDateFormat ( value ) ; \n return true ; \n } catch ( Exception e ) {", "msg_token": "Fixed DateFormatValidator to handle placeholders SHORT and MEDIUM"} {"diff": " public class IO \n SINGLE \n SINGLE \n \n - Preferences prefs = Preferences . userNodeForPackage ( Groovysh . class ) ; \n + Preferences prefs = Preferences . userRoot ( ) . node ( STRING0 ) ; \n \n verbose = prefs . getBoolean ( STRING1 , false ) ; \n \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class Logger \n SINGLE \n SINGLE \n \n - Preferences prefs = Preferences . userNodeForPackage ( Groovysh . class ) ; \n + Preferences prefs = Preferences . userRoot ( ) . node ( STRING0 ) ; \n \n debug = prefs . getBoolean ( STRING2 , false ) ;", "msg_token": "Blah hack up things more since we can t access Groovysh groovy from these"} {"diff": " public final class BasicOperationScheduler { \n private final BlockingQueue genericWorkQueue = new LinkedBlockingQueue ( ) ; \n private final ConcurrentLinkedQueue genericPriorityWorkQueue = new ConcurrentLinkedQueue ( ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - private final Random genericOperationRandom = new Random ( ) ; \n - \n private final ResponseThread responseThread ; \n \n private volatile boolean shutdown ;", "msg_token": "Removed an unused Random field in the BasicOperationScheduler"} {"diff": " public class JetControlFlowProcessor { \n builder . loadUnit ( expression ) ; \n } \n else { \n - copyValue ( ( JetExpression ) KotlinPackage . lastOrNull ( statements ) , expression ) ; \n + copyValue ( KotlinPackage . lastOrNull ( statements ) , expression ) ; \n } \n if ( declareLexicalScope ) { \n builder . exitLexicalScope ( expression ) ;", "msg_token": "Remove redundant cast"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ runwith ( HazelcastParallelClassRunner . class ) \n + @ category ( QuickTest . class ) \n public class JoinConfigTest { \n \n @ test", "msg_token": "Added correct test annotations on the JoinConfigTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Delete unused import"} {"diff": " public class SubsystemParsingUnitTestCase extends TestCase { \n System . out . println ( STRING0 + configURL ) ; \n \n BufferedReader reader = new BufferedReader ( new InputStreamReader ( configURL . openStream ( ) ) ) ; \n - mapper . parseDocument ( operations , XMLInputFactory . newFactory ( ) . createXMLStreamReader ( reader ) ) ; \n + mapper . parseDocument ( operations , XMLInputFactory . newInstance ( ) . createXMLStreamReader ( reader ) ) ; \n \n return operations ; \n }", "msg_token": "Fix use of newFactory"} {"diff": " public class ZWaveController { \n @ override \n public void run ( ) { \n logger . debug ( STRING0 ) ; \n + \n + SINGLE \n + sendResponse ( NAK ) ; \n + \n while ( ! interrupted ( ) ) { \n int nextByte ;", "msg_token": "Send NAK to controller on startup to synchronise communications"} {"diff": " public class AntPathMatcher implements PathMatcher { \n } \n if ( matcher == null ) { \n matcher = new AntPathStringMatcher ( pattern ) ; \n - if ( cachePatterns == null && this . stringMatcherCache . size ( ) == CACHE_TURNOFF_THRESHOLD ) { \n + if ( cachePatterns == null && this . stringMatcherCache . size ( ) >= CACHE_TURNOFF_THRESHOLD ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Refined check for cache turnoff threshold"} {"diff": " public class LinearLayoutSoftKeyboardDetect extends LinearLayout { \n SINGLE \n else if ( height > oldHeight ) { \n if ( app != null ) \n - app . sendJavascript ( STRING0 ) ; \n + app . sendJavascript ( STRING1 ) ; \n } \n SINGLE \n SINGLE \n else if ( height < oldHeight ) { \n if ( app != null ) \n - app . sendJavascript ( STRING2 ) ; \n + app . sendJavascript ( STRING3 ) ; \n } \n \n SINGLE", "msg_token": "Call js code using new common js way"} {"diff": " public final class AddressBookParsedResult extends ParsedResult { \n public String getDisplayResult ( ) { \n StringBuffer result = new StringBuffer ( ) ; \n maybeAppend ( names , result ) ; \n - maybeAppend ( emails , result ) ; \n + maybeAppend ( title , result ) ; \n + maybeAppend ( org , result ) ; \n maybeAppend ( address , result ) ; \n maybeAppend ( phoneNumbers , result ) ; \n - maybeAppend ( note , result ) ; \n - maybeAppend ( org , result ) ; \n - maybeAppend ( birthday , result ) ; \n - maybeAppend ( title , result ) ; \n + maybeAppend ( emails , result ) ; \n maybeAppend ( url , result ) ; \n + maybeAppend ( birthday , result ) ; \n + maybeAppend ( note , result ) ; \n return result . toString ( ) ; \n } \n \n - } \n + }", "msg_token": "Reordered the address book fields to something a little more standard reasonable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class UpdatableRecordImpl < R extends UpdatableRecord < R > > extends TableReco \n } \n \n @ override \n - public final int deleteLocked ( ) throws DataAccessException , DataChangedException { \n + public final int deleteLocked ( ) { \n return deleteLockedUsing ( getMainKey ( ) . getFieldsArray ( ) ) ; \n }", "msg_token": "Removed unnecessary throws clause"} {"diff": " public class LocalStore extends Store implements Serializable \n } \n catch ( SQLiteException e ) \n { \n - if ( ! e . toString ( ) . startsWith ( STRING0 ) ) \n + if ( ! e . getMessage ( ) . startsWith ( STRING0 ) ) \n { \n throw e ; \n }", "msg_token": "Fix error handling code in DB upgrade"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class WebSubsystemAdd implements ModelAddOperationHandler , BootOperationHandler , \n ctx . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_TLD_DEPLOYMENT , new TldParsingDeploymentProcessor ( ) ) ; \n ctx . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_ANNOTATION_WAR , new WarAnnotationDeploymentProcessor ( ) ) ; \n ctx . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_WEB_COMPONENTS , new WebComponentProcessor ( ) ) ; \n + ctx . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_EAR_CONTEXT_ROOT , new EarContextRootProcessor ( ) ) ; \n ctx . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_WEB_MERGE_METADATA , new WarMetaDataProcessor ( ) ) ; \n ctx . addDeploymentProcessor ( Phase . DEPENDENCIES , Phase . DEPENDENCIES_WAR_MODULE , new WarClassloadingDependencyProcessor ( ) ) ; \n ctx . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_SERVLET_INIT_DEPLOYMENT , new ServletContainerInitializerDeploymentProcessor ( ) ) ;", "msg_token": "Fix processor that went missing in rebase"} {"diff": " public class Element { \n COMMENT \n COMMENT \n COMMENT \n - public final boolean isMatched ( final AnalyzedToken token ) { \n + public final boolean isMatched ( final AnalyzedToken token ) { \n + if ( testWhitespace && ! isWhitespaceBefore ( token ) ) { \n + return false ; \n + } \n boolean matched = false ; \n if ( testString ) { \n matched = ( isStringTokenMatched ( token ) ^ negation ) \n public class Element { \n if ( andGroupSet ) { \n andGroupCheck [ NUMBER0 ] |= matched ; \n } \n - \n - return matched && ( ! testWhitespace || isWhitespaceBefore ( token ) ) ; \n + return matched ; \n } \n \n COMMENT", "msg_token": "skip expensive testing if there is no whitespace match"} {"diff": " public class IconDeferrerImpl extends IconDeferrer { \n } \n \n public < T > Icon defer ( final Icon base , final T param , final Function < T , Icon > f ) { \n - synchronized ( LOCK ) { \n - if ( myEvaluationIsInProgress . get ( ) . booleanValue ( ) ) { \n - return f . fun ( param ) ; \n - } \n + if ( myEvaluationIsInProgress . get ( ) . booleanValue ( ) ) { \n + return f . fun ( param ) ; \n + } \n \n + synchronized ( LOCK ) { \n Icon result = myIconsCache . get ( param ) ; \n if ( result == null ) { \n result = new DeferredIconImpl < T > ( base , param , f ) ; \n public class IconDeferrerImpl extends IconDeferrer { \n myEvaluationIsInProgress . set ( Boolean . FALSE ) ; \n } \n } \n - } \n + }", "msg_token": "Reduce contention on icon deferrer s lock"} {"diff": " public class NewDirectoryPage extends NewProjectWizardPage \n namePanel . add ( dirNameLabel_ ) ; \n txtProjectName_ = new TextBox ( ) ; \n txtProjectName_ . setWidth ( STRING0 ) ; \n + txtProjectName_ . getElement ( ) . setAttribute ( STRING1 , STRING2 ) ; \n namePanel . add ( txtProjectName_ ) ; \n panel . add ( namePanel ) ; \n addWidget ( panel ) ;", "msg_token": "disable spellcheck on project name"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class StdOutLogger extends Logger { \n + final class StdOutLogger extends Logger { \n private static final boolean DEBUG = ConfigurationContext . getInstance ( ) . isDebugEnabled ( ) ; \n \n COMMENT \n public final class PrintFilterStream implements StatusListener { \n filterArray [ i ] = Integer . parseInt ( filterSplit [ i ] ) ; \n \n } \n - String [ ] trackArray = track . split ( STRING0 ) ; \n } \n \n private void printUsageAndExit ( ) {", "msg_token": "removing an unnecessary line from PrintFilterStream"} {"diff": " public class MaterialShowcaseSequence implements IDetachedListener { \n \n public MaterialShowcaseSequence addSequenceItem ( View targetView , String content , String dismissText ) { \n addSequenceItem ( targetView , STRING0 , content , dismissText ) ; \n + return this ; \n } \n \n public MaterialShowcaseSequence addSequenceItem ( View targetView , String title , String content , String dismissText ) {", "msg_token": "Added title to sequences fix"} {"diff": " public class LdapAuthenticationTest extends GitblitUnitTest { \n assertNull ( userThreeModel . getTeam ( STRING0 ) ) ; \n assertTrue ( userThreeModel . canAdmin ) ; \n } \n + \n + @ test \n + public void testBindWithUser ( ) { \n + settings . put ( Keys . realm . ldap . bindpattern , STRING1 ) ; \n + settings . put ( Keys . realm . ldap . username , STRING2 ) ; \n + settings . put ( Keys . realm . ldap . password , STRING2 ) ; \n + \n + UserModel userOneModel = auth . authenticate ( STRING3 , STRING4 . toCharArray ( ) ) ; \n + assertNotNull ( userOneModel ) ; \n + \n + UserModel userOneModelFailedAuth = auth . authenticate ( STRING3 , STRING5 . toCharArray ( ) ) ; \n + assertNull ( userOneModelFailedAuth ) ; \n + } \n \n private int countLdapUsersInUserManager ( ) { \n int ldapAccountCount = NUMBER0 ;", "msg_token": "Added test for binding without special account e g userbased"} {"diff": " public class MediaType implements Comparable < MediaType > { \n COMMENT \n COMMENT \n public static List < MediaType > parseMediaTypes ( String mediaTypes ) { \n - Assert . hasLength ( mediaTypes , STRING0 ) ; \n + if ( ! StringUtils . hasLength ( mediaTypes ) ) { \n + return Collections . emptyList ( ) ; \n + } \n String [ ] tokens = mediaTypes . split ( STRING1 ) ; \n List < MediaType > result = new ArrayList < MediaType > ( tokens . length ) ; \n for ( String token : tokens ) { \n public class MediaTypeTests { \n List < MediaType > mediaTypes = MediaType . parseMediaTypes ( s ) ; \n assertNotNull ( STRING2 , mediaTypes ) ; \n assertEquals ( STRING3 , NUMBER0 , mediaTypes . size ( ) ) ; \n + \n + mediaTypes = MediaType . parseMediaTypes ( null ) ; \n + assertNotNull ( STRING2 , mediaTypes ) ; \n + assertEquals ( STRING3 , NUMBER1 , mediaTypes . size ( ) ) ; \n } \n \n @ test", "msg_token": "MediaType parseMediaTypes now accepts null and"} {"diff": " public class Redwood { \n public static void forceTrack ( String title ) { Redwood . startTrack ( FORCE , title ) ; } \n public static void endTrack ( String check ) { Redwood . endTrack ( check ) ; } \n public static void endTrack ( ) { Redwood . endTrack ( ) ; } \n - public static void endTrackIfOpen ( String check ) { \n - if ( Redwood . titleStack . peek ( ) . equals ( check ) ) { Redwood . endTrack ( check ) ; } \n - } \n \n public static void startThreads ( String title ) { Redwood . startThreads ( title ) ; } \n public static void finishThread ( ) { Redwood . finishThread ( ) ; }", "msg_token": "Added graph consistency post processors"} {"diff": " public abstract class PathType { \n path = path . replace ( STRING0 , STRING1 ) ; \n \n if ( WORKING_DIR_WITH_DRIVE . matcher ( path ) . matches ( ) ) { \n - throw new InvalidPathException ( path , \n + throw new InvalidPathException ( original , \n STRING2 ) ; \n } \n \n public abstract class PathType { \n \n Matcher trailingSpaceMatcher = TRAILING_SPACES . matcher ( path ) ; \n if ( trailingSpaceMatcher . find ( ) ) { \n - throw new InvalidPathException ( path , STRING3 , trailingSpaceMatcher . start ( ) ) ; \n + throw new InvalidPathException ( original , STRING3 , trailingSpaceMatcher . start ( ) ) ; \n } \n \n if ( root != null ) {", "msg_token": "Fix a couple exceptions to use the original path string"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class XmlPsiManager extends AbstractProjectComponent { \n SINGLE \n return ! isXml ; \n } \n + \n + @ override \n + public void treeChanged ( @ notnull PsiTreeChangeEventImpl event ) { \n + if ( ! ( event . getFile ( ) instanceof XmlFile ) ) return ; \n + super . treeChanged ( event ) ; \n + } \n } ; \n } \n }", "msg_token": "XmlPsiManager should not increase tracker on changes in unrelated files"} {"diff": " import static NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public class ServerPropertiesTests { \n \n public class ServerPropertiesTests { \n binder . bind ( new MutablePropertyValues ( Collections . singletonMap ( STRING0 , \n STRING1 ) ) ) ; \n assertFalse ( binder . getBindingResult ( ) . hasErrors ( ) ) ; \n - assertEquals ( InetAddress . getLocalHost ( ) , this . properties . getAddress ( ) ) ; \n + assertEquals ( InetAddress . getByName ( STRING1 ) , this . properties . getAddress ( ) ) ; \n } \n \n @ test", "msg_token": "Fix broken ServerPropertiesTests on OSX"} {"diff": " public class AnnotationAttributes extends LinkedHashMap < String , Object > { \n return STRING0 ; \n } \n if ( value instanceof Object [ ] ) { \n - return STRING1 + StringUtils . arrayToCommaDelimitedString ( ( Object [ ] ) value ) + STRING2 ; \n + return STRING1 + StringUtils . arrayToDelimitedString ( ( Object [ ] ) value , STRING3 ) + STRING2 ; \n } \n return String . valueOf ( value ) ; \n }", "msg_token": "Align AnnotationAttributes toString with contract in Map"} {"diff": " public final class HttpRequest { \n } \n } \n \n + final byte [ ] contentAsBytes = content . getBytes ( STRING0 ) ; \n + \n SINGLE \n urlConnection . setRequestMethod ( method . name ( ) ) ; \n urlConnection . setDoOutput ( true ) ; \n - urlConnection . setChunkedStreamingMode ( NUMBER0 ) ; \n + urlConnection . setFixedLengthStreamingMode ( contentAsBytes . length ) ; \n \n SINGLE \n System . setProperty ( STRING1 , STRING2 ) ; \n public final class HttpRequest { \n urlConnection . connect ( ) ; \n \n final OutputStream outputStream = new BufferedOutputStream ( urlConnection . getOutputStream ( ) ) ; \n - \n - outputStream . write ( content . getBytes ( STRING0 ) ) ; \n + outputStream . write ( contentAsBytes ) ; \n outputStream . flush ( ) ; \n outputStream . close ( ) ;", "msg_token": "Configuring request length instead of using chunked streaming mode"} {"diff": " public class GroovyToJavaGenerator { \n \n private void generateClassStub ( @ notnull PsiClass typeDefinition , GrPackageDefinition packageDefinition , Map < String , String > output ) { \n StringBuffer text = new StringBuffer ( ) ; \n - writeTypeDefinition ( text , typeDefinition , packageDefinition , true ) ; \n + try { \n + writeTypeDefinition ( text , typeDefinition , packageDefinition , true ) ; \n \n - output . put ( getPackageDirectory ( packageDefinition ) + typeDefinition . getName ( ) + STRING0 + STRING1 , text . toString ( ) ) ; \n + output . put ( getPackageDirectory ( packageDefinition ) + typeDefinition . getName ( ) + STRING0 + STRING1 , text . toString ( ) ) ; \n + } \n + catch ( Throwable e ) { \n + LOG . error ( e ) ; \n + } \n } \n \n private static GrTopStatement [ ] getTopStatementsInReadAction ( final GroovyFileBase myPsiFile ) {", "msg_token": "don t let our internal PSI exceptions during groovy stub generation cause project rebuild"} {"diff": " public interface ClaimStrategy \n void setSequence ( long sequence ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class RingBuffer < T extends Entry > \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final class ConsumerTrackingProducerBarrier implements ProducerBarrier < T > \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc after naming refactor"} {"diff": " public class UndeployMojo extends AbstractAndroidMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - private String packageName ; \n + private String _package ; \n + \n + public void setPackage ( String packageName ) { \n + this . _package = packageName ; \n + } \n \n COMMENT \n COMMENT \n public class UndeployMojo extends AbstractAndroidMojo { \n private File file ; \n \n public void execute ( ) throws MojoExecutionException , MojoFailureException { \n - String packageToUndeploy = packageName ; \n - if ( packageToUndeploy != null ) { \n + String packageToUndeploy = _package ; \n + if ( packageToUndeploy != null && ! STRING0 . equals ( packageToUndeploy ) && ! STRING1 . equals ( packageToUndeploy ) ) { \n undeployApk ( packageToUndeploy ) ; \n } else { \n if ( file != null ) { \n public class UndeployMojo extends AbstractAndroidMojo { \n } \n \n } \n - \n }", "msg_token": "Fixed package parameter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestPatternHopFactory extends TestCase { \n ShortestPathTree spt = aStar . getShortestPathTree ( options ) ; \n GraphPath path = spt . getPath ( destination , false ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + long endTime = path . getEndTime ( ) ; \n + Calendar c = new GregorianCalendar ( ) ; \n + c . setTimeInMillis ( endTime * NUMBER0 ) ; \n + assertTrue ( endTime - TestUtils . toSeconds ( startTime ) < NUMBER1 ) ; \n } \n \n public void testFrequencies ( ) {", "msg_token": "Fix millisecond issue"} {"diff": " public class MapActivityActions implements DialogProvider { \n final TargetPointsHelper targetPointsHelper = app . getTargetPointsHelper ( ) ; \n \n \n - Item dir = qa . item ( R . string . get_directions ) . icons ( \n + Item dir = qa . item ( R . string . context_menu_item_directions_to ) . icons ( \n R . drawable . ic_action_gdirections_dark , R . drawable . ic_action_gdirections_light ) ; \n dir . listen ( \n new OnContextMenuClick ( ) {", "msg_token": "missed one more context menu to fix"} {"diff": " public abstract class HttpBase < T > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public byte [ ] bodyBytes ( ) { \n if ( body == null ) { \n public abstract class HttpBase < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public String bodyText ( ) { \n if ( body == null ) { \n - return null ; \n + return StringPool . EMPTY ; \n } \n if ( charset != null ) { \n return StringUtil . convertCharset ( body , StringPool . ISO_8859_1 , charset ) ;", "msg_token": "Unify the behavior of bodyTex"} {"diff": " public class BlockOutStream extends OutStream { \n \n long userFileBufferBytes = mTachyonConf . getBytes ( Constants . USER_FILE_BUFFER_BYTES , \n Constants . MB ) ; \n - if ( mBuffer . position ( ) + len >= userFileBufferBytes && mBuffer . position ( ) > NUMBER0 ) { \n + if ( mBuffer . position ( ) > NUMBER0 && mBuffer . position ( ) + len > userFileBufferBytes ) { \n appendCurrentBuffer ( mBuffer . array ( ) , NUMBER0 , mBuffer . position ( ) ) ; \n mBuffer . clear ( ) ; \n } \n \n - if ( len >= userFileBufferBytes ) { \n + if ( len > userFileBufferBytes / NUMBER1 ) { \n appendCurrentBuffer ( b , off , len ) ; \n - } else { \n + } else if ( len > NUMBER0 ) { \n mBuffer . put ( b , off , len ) ; \n }", "msg_token": "Modify condition for reducing buffer copy and mapped file write frequency"} {"diff": " public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed \n @ override \n public void run ( ) { \n try { \n + boolean moreData ; \n do { \n ChannelListener < ? super R > listener = getReadListener ( ) ; \n if ( listener == null || ! isReadResumed ( ) ) { \n public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed \n SINGLE \n SINGLE \n SINGLE \n - } while ( allAreSet ( state , STATE_READS_RESUMED ) && allAreClear ( state , STATE_CLOSED ) && frameDataRemaining > NUMBER0 && data != null ) ; \n + moreData = ( frameDataRemaining > NUMBER0 && data != null ) || ! pendingFrameData . isEmpty ( ) ; \n + } while ( allAreSet ( state , STATE_READS_RESUMED ) && allAreClear ( state , STATE_CLOSED ) && moreData ) ; \n } finally { \n state &= ~ STATE_IN_LISTENER_LOOP ; \n }", "msg_token": "Fix issue with framed channel when loop will exit even if there are pending frames"} {"diff": " public class MaterialViewPager extends FrameLayout { \n MaterialViewPagerAnimator animator = MaterialViewPagerHelper . getAnimator ( this . getContext ( ) ) ; \n \n SINGLE \n - animator . restoreScroll ( - NUMBER0 * ss . yOffset , ss . settings ) ; \n + animator . restoreScroll ( - NUMBER0 * ss . yOffset , ss . settings ) ; \n MaterialViewPagerHelper . register ( getContext ( ) , animator ) ; \n } \n \n + public ViewGroup getHeaderBackgroundContainer ( ) { \n + return headerBackgroundContainer ; \n + } \n + \n static class SavedState extends BaseSavedState { \n public MaterialViewPagerSettings settings ; \n public float yOffset ;", "msg_token": "added getter for header background"} {"diff": " public class WritingPreferencesPane extends PreferencesPane \n \n \n Label perProjectLabel = new Label ( \n - STRING0 ) ; \n + STRING1 + \n + STRING2 ) ; \n perProjectLabel . addStyleName ( baseRes . styles ( ) . infoLabel ( ) ) ; \n nudgeRight ( perProjectLabel ) ; \n add ( perProjectLabel ) ; \n \n \n - defaultSweaveEngine_ = new WeaveRnwSelectWidget ( STRING3 ) ; \n + defaultSweaveEngine_ = new WeaveRnwSelectWidget ( \n + STRING4 ) ; \n defaultSweaveEngine_ . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER0 , Unit . PX ) ; \n defaultSweaveEngine_ . setValue ( \n prefs . defaultSweaveEngine ( ) . getGlobalValue ( ) ) ;", "msg_token": "improve clarity of compile pdf options"} {"diff": " public class ModClassLoader extends URLClassLoader \n \n public Class < ? extends BaseModProxy > loadBaseModClass ( String modClazzName ) throws Exception \n { \n - AccessTransformer transformer = ( AccessTransformer ) mainClassLoader . getTransformers ( ) . get ( NUMBER0 ) ; \n - transformer . ensurePublicAccessFor ( modClazzName ) ; \n + AccessTransformer accessTransformer = null ; \n + for ( IClassTransformer transformer : mainClassLoader . getTransformers ( ) ) \n + { \n + if ( transformer instanceof AccessTransformer ) \n + { \n + accessTransformer = ( AccessTransformer ) transformer ; \n + break ; \n + } \n + } \n + if ( accessTransformer == null ) \n + { \n + FMLLog . log ( Level . SEVERE , STRING0 ) ; \n + throw new LoaderException ( ) ; \n + } \n + accessTransformer . ensurePublicAccessFor ( modClazzName ) ; \n return ( Class < ? extends BaseModProxy > ) Class . forName ( modClazzName , true , this ) ; \n } \n }", "msg_token": "Fixed ClassCastException when loading ModLoader mods"} {"diff": " public class Wallet extends BaseTaggableObject implements Serializable , BlockCha \n } \n \n COMMENT \n - public void setLookaheadThreshold ( int num ) { \n + public void setKeychainLookaheadThreshold ( int num ) { \n lock . lock ( ) ; \n try { \n keychain . setLookaheadThreshold ( num ) ;", "msg_token": "rename setLookaheadThreshold to setKeychainLookaheadThreshold"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - public class MapperServiceTest extends ElasticsearchSingleNodeTest { \n + public class MapperServiceTest extends ESSingleNodeTestCase { \n @ rule \n public ExpectedException expectedException = ExpectedException . none ( ) ;", "msg_token": "Reflect renaming of base test class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SplunkConnectionFactory { \n String sunHandlerClassName = STRING0 ; \n Class < URLStreamHandler > clazz = camelContext . getClassResolver ( ) . resolveClass ( sunHandlerClassName , URLStreamHandler . class ) ; \n if ( clazz != null ) { \n - URLStreamHandler handler = ObjectHelper . newInstance ( clazz ) ; \n + URLStreamHandler handler = camelContext . getInjector ( ) . newInstance ( clazz ) ; \n args . setHTTPSHandler ( handler ) ; \n LOG . debug ( STRING1 , handler , args ) ; \n } else {", "msg_token": "Better make use of the Camel Injector API to instantiate"} {"diff": " public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n } else if ( status == SocketStatus . OPEN_READ && \n request . getReadListener ( ) != null ) { \n try { \n - try { \n - if ( inputBuffer . available ( ) > NUMBER0 || inputBuffer . nbRead ( ) > NUMBER0 ) { \n - asyncStateMachine . asyncOperation ( ) ; \n - } \n - } catch ( IOException x ) { \n - if ( getLog ( ) . isDebugEnabled ( ) ) { \n - getLog ( ) . debug ( STRING0 , x ) ; \n - } \n - status = SocketStatus . ASYNC_READ_ERROR ; \n - request . setAttribute ( RequestDispatcher . ERROR_EXCEPTION , x ) ; \n + if ( inputBuffer . available ( ) > NUMBER0 ) { \n + asyncStateMachine . asyncOperation ( ) ; \n } \n } catch ( IllegalStateException x ) { \n registerForEvent ( true , false ) ;", "msg_token": "Remove unnecessary code"} {"diff": " public abstract class BaseNavDrawerActivity extends BaseActivity { \n new NavigationView . OnNavigationItemSelectedListener ( ) { \n @ override \n public boolean onNavigationItemSelected ( MenuItem menuItem ) { \n - menuItem . setChecked ( true ) ; \n onNavItemClick ( menuItem . getItemId ( ) ) ; \n - return true ; \n + return false ; \n } \n } ) ; \n } \n public abstract class BaseNavDrawerActivity extends BaseActivity { \n COMMENT \n COMMENT \n public void setDrawerSelectedItem ( @ idres int menuItemId ) { \n - navigationView . getMenu ( ) . findItem ( menuItemId ) . setChecked ( true ) ; \n + navigationView . setCheckedItem ( menuItemId ) ; \n } \n \n public void openNavDrawer ( ) {", "msg_token": "Do not select drawer items when clicking them"} {"diff": " public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n @ override \n public void run ( ) { \n mFetchingThemes = false ; \n + if ( result == null ) { \n + mThemeBrowserFragment . mEmptyView . setText ( STRING0 ) ; \n + mThemeSearchFragment . mEmptyView . setText ( STRING0 ) ; \n + } \n mThemeBrowserFragment . setRefreshing ( false ) ; \n mThemeSearchFragment . setRefreshing ( false ) ; \n }", "msg_token": "Setting empty text"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public interface DependencyFactory { \n + SINGLE \n enum ClassPathNotation { \n GRADLE_API , LOCAL_GROOVY \n }", "msg_token": "Added tiny bit of a comment"} {"diff": " public class EclipseAST extends AST < EclipseAST , EclipseNode , ASTNode > { \n } \n \n private static volatile boolean skipEclipseWorkspaceBasedFileResolver = false ; \n + private static final URI NOT_CALCULATED_MARKER = URI . create ( STRING0 ) ; \n + private URI memoizedAbsoluteFileLocation = NOT_CALCULATED_MARKER ; \n + \n public URI getAbsoluteFileLocation ( ) { \n + if ( memoizedAbsoluteFileLocation != NOT_CALCULATED_MARKER ) return memoizedAbsoluteFileLocation ; \n + \n + memoizedAbsoluteFileLocation = getAbsoluteFileLocation0 ( ) ; \n + return memoizedAbsoluteFileLocation ; \n + } \n + \n + COMMENT \n + private URI getAbsoluteFileLocation0 ( ) { \n String fileName = getFileName ( ) ; \n if ( fileName != null && ( fileName . startsWith ( STRING1 ) || fileName . startsWith ( STRING2 ) ) ) { \n SINGLE", "msg_token": "added memoization to config lookup in eclipse"} {"diff": " public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a comment"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n pgl . disable ( PGL . POLYGON_SMOOTH ) ; \n \n if ( sized ) { \n - reapplySettings ( ) ; \n + SINGLE \n \n SINGLE \n SINGLE", "msg_token": "Not reapplying settings after sizing because it calls smooth without"} {"diff": " public abstract class SpeedSearch { \n if ( e . getKeyCode ( ) == KeyEvent . VK_BACK_SPACE ) { \n backspace ( ) ; \n } \n - else if ( Character . isLetter ( e . getKeyChar ( ) ) ) { \n + else if ( Character . isLetterOrDigit ( e . getKeyChar ( ) ) ) { \n type ( Character . toString ( e . getKeyChar ( ) ) ) ; \n }", "msg_token": "enable popup speed search for digits"} {"diff": " public class HeadersMessage extends Message { \n private static final Logger log = LoggerFactory . getLogger ( HeadersMessage . class ) ; \n \n SINGLE \n - final static int MAX_HEADERS = NUMBER0 ; \n + public static final int MAX_HEADERS = NUMBER0 ; \n \n private List < Block > blockHeaders ; \n \n public class Peer { \n return ; \n } \n } \n - SINGLE \n - blockChainDownload ( Sha256Hash . ZERO_HASH ) ; \n + SINGLE \n + SINGLE \n + if ( m . getBlockHeaders ( ) . size ( ) >= HeadersMessage . MAX_HEADERS ) \n + blockChainDownload ( Sha256Hash . ZERO_HASH ) ; \n } catch ( VerificationException e ) { \n log . warn ( STRING0 , e ) ; \n } catch ( ScriptException e ) {", "msg_token": "Fix detection of end of block chain download when syncing a wallet with no keys"} {"diff": " final class SimpleConfigList extends AbstractConfigValue implements ConfigList { \n super ( origin ) ; \n this . value = value ; \n this . resolved = status == ResolveStatus . RESOLVED ; \n + \n + SINGLE \n + if ( status != ResolveStatus . fromValues ( value ) ) \n + throw new ConfigException . BugOrBroken ( \n + STRING0 + this ) ; \n } \n \n @ override", "msg_token": "add check to SimpleConfigList that resolveStatus is correct"} {"diff": " public final class Metadata { \n BitSet valid = new BitSet ( NUMBER0 ) ; \n valid . set ( STRING0 ) ; \n valid . set ( STRING1 ) ; \n + valid . set ( STRING2 ) ; \n for ( char c = STRING3 ; c <= STRING4 ; c ++ ) { \n valid . set ( c ) ; \n } \n public class ProtoUtils { \n COMMENT \n public static < T extends Message > Metadata . Key < T > keyForProto ( final T instance ) { \n return Metadata . Key . of ( \n - instance . getDescriptorForType ( ) . getFullName ( ) . replace ( STRING2 , STRING0 ) \n - + Metadata . BINARY_HEADER_SUFFIX , \n + instance . getDescriptorForType ( ) . getFullName ( ) + Metadata . BINARY_HEADER_SUFFIX , \n new Metadata . BinaryMarshaller < T > ( ) { \n @ override \n public byte [ ] toBytes ( T value ) {", "msg_token": "Re add support for periods in metadata key names"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class ConfigurationException extends Exception { \n private static final long serialVersionUID = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public ConfigurationException ( File file , Iterable < String > errors ) { \n super ( formatMessage ( file , errors ) ) ; \n }", "msg_token": "Added docs for ConfigurationException"} {"diff": " public class ShowIntentionsPass extends TextEditorHighlightingPass { \n intentionOffset = offset - NUMBER0 ; \n } \n } \n - collectIntentionsFromDoNotShowLeveledInspections ( project , hostFile , intentionElement , intentionOffset , intentions ) ; \n + if ( intentionElement != null && intentionElement . getManager ( ) . isInProject ( intentionElement ) ) { \n + collectIntentionsFromDoNotShowLeveledInspections ( project , hostFile , intentionElement , intentionOffset , intentions ) ; \n + } \n } \n \n final int line = hostDocument . getLineNumber ( offset ) ;", "msg_token": "Don t apply information level inspections to decompiled code"} {"diff": " public class FeedUpdateService { \n private FeedEntry findEntry ( List < FeedEntry > existingEntries , FeedEntry entry ) { \n FeedEntry foundEntry = null ; \n for ( FeedEntry existingEntry : existingEntries ) { \n - if ( StringUtils . equals ( entry . getGuid ( ) , existingEntry . getGuid ( ) ) ) { \n + if ( StringUtils . equals ( entry . getGuid ( ) , existingEntry . getGuid ( ) ) \n + && StringUtils . equals ( entry . getUrl ( ) , \n + existingEntry . getUrl ( ) ) ) { \n foundEntry = existingEntry ; \n break ; \n } \n public class FeedUpdateService { \n } \n List < FeedEntry > existingEntries = guids . isEmpty ( ) ? new ArrayList < FeedEntry > ( ) \n : feedEntryDAO . findByGuids ( guids ) ; \n - \n return existingEntries ; \n } \n }", "msg_token": "some feeds don t use a globally unique id as a guid sigh"} {"diff": " public class PyClassImpl extends PyPresentableElementImpl < PyClassStub > implement \n if ( statementList != null ) { \n statementList . accept ( new PyRecursiveElementVisitor ( ) { \n public void visitPyAssignmentStatement ( final PyAssignmentStatement node ) { \n - super . visitPyAssignmentStatement ( node ) ; \n collectNewTargets ( result , node ) ; \n } \n } ) ;", "msg_token": "Removed unnecessary recursion in assignments visitor"} {"diff": " package NAMESPACE ; \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 public class App { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void main ( String [ ] args ) { \n OliphauntPool pool = new OliphauntPool ( ) ; \n System . out . println ( pool ) ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class AppTest { \n \n @ test", "msg_token": "Improve JavaDoc for Object Pool example"} {"diff": " public class StringGroovyMethods extends DefaultGroovyMethodsSupport { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static String plus ( String left , CharSequence value ) { \n + return left + value ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a StringGroovyMethods plus String CharSequence version for faster string concatenation"} {"diff": " public class CommandLineLargeTest { \n \n @ test \n public void migrateWithCustomLocations ( ) throws Exception { \n - String stdOut = runFlywayCommandLine ( NUMBER0 , STRING0 , STRING1 , STRING2 + new File ( getInstallDir ( ) ) . getAbsolutePath ( ) + STRING3 ) ; \n + String stdOut = runFlywayCommandLine ( NUMBER0 , STRING0 , STRING1 , STRING2 + getInstallDir ( ) + STRING3 ) ; \n assertTrue ( stdOut . contains ( STRING4 ) ) ; \n } \n \n @ test \n public void exitCodeForFailedMigration ( ) throws Exception { \n - String stdOut = runFlywayCommandLine ( NUMBER1 , STRING0 , STRING1 , STRING2 + new File ( getInstallDir ( ) ) . getAbsolutePath ( ) + STRING5 ) ; \n + String stdOut = runFlywayCommandLine ( NUMBER1 , STRING0 , STRING1 , STRING2 + getInstallDir ( ) + STRING5 ) ; \n assertTrue ( stdOut . contains ( STRING6 ) ) ; \n } \n \n public class SQLServerDbSupport extends DbSupport { \n } \n \n public String getCurrentUserFunction ( ) { \n - return STRING7 ; \n + return STRING8 ; \n } \n \n @ override", "msg_token": "Improved SQL Azure compatibility"} {"diff": " public class PSurfaceAWT implements PSurface { \n SINGLE \n SINGLE \n \n + if ( ! canvas . isDisplayable ( ) ) { \n + SINGLE \n + return ; \n + } \n + \n SINGLE \n if ( canvas . getBufferStrategy ( ) == null ) { SINGLE \n SINGLE \n canvas . createBufferStrategy ( NUMBER0 ) ; \n } \n BufferStrategy strategy = canvas . getBufferStrategy ( ) ; \n + SINGLE \n if ( strategy == null ) { \n return ; \n } \n public class PSurfaceAWT implements PSurface { \n \n \n public void blit ( ) { \n - canvas . repaint ( ) ; \n + SINGLE \n + ( ( SmoothCanvas ) canvas ) . render ( ) ; SINGLE \n + SINGLE \n COMMENT \n if ( canvas . getGraphicsConfiguration ( ) != null ) { \n GraphicsDevice device = canvas . getGraphicsConfiguration ( ) . getDevice ( ) ;", "msg_token": "let s get away from that repaint thing shall we"} {"diff": " public class IndexInfrastructure { \n return indexDir ; \n } \n \n + private static volatile long ourLastStamp ; SINGLE \n + \n public static void rewriteVersion ( final File file , final int version ) throws IOException { \n final long prevLastModifiedValue = file . lastModified ( ) ; \n if ( file . exists ( ) ) { \n public class IndexInfrastructure { \n finally { \n ourIndexIdToCreationStamp . clear ( ) ; \n os . close ( ) ; \n - file . setLastModified ( Math . max ( System . currentTimeMillis ( ) , prevLastModifiedValue + NUMBER0 ) ) ; \n + long max = Math . max ( System . currentTimeMillis ( ) , Math . max ( prevLastModifiedValue + NUMBER0 , ourLastStamp ) ) ; \n + ourLastStamp = max ; \n + file . setLastModified ( max ) ; \n } \n }", "msg_token": "fix test ensure any file index stamp only increases"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PausableStorageConfiguration implements StorageConfiguration { \n \n - private final String TYPE_NAME = STRING0 ; \n + private static final String TYPE_NAME = STRING0 ; \n \n public PausableStorageConfiguration ( @ suppresswarnings ( STRING1 ) VoldemortConfig config ) { }", "msg_token": "Make static field final"} {"diff": " public abstract class PreferenceActivity extends ListActivity implements \n super . onDestroy ( ) ; \n if ( mPreferenceManager != null ) { \n mPreferenceManager . dispatchActivityDestroy ( ) ; \n + mPreferenceManager . setOnPreferenceTreeClickListener ( null ) ; \n } \n }", "msg_token": "remove listener in order to avoid memory leak in preferences"} {"diff": " public class BroadcastFilterTest { \n } \n } \n \n - private final static class Filter implements BroadcastFilter { \n + public final static class Filter implements BroadcastFilter { \n \n final String msg ;", "msg_token": "Make the test pass"} {"diff": " public class Permit implements DataSerializable { \n } \n \n public void writeData ( ObjectDataOutput out ) throws IOException { \n + out . writeBoolean ( initialized ) ; \n out . writeInt ( available ) ; \n out . writeInt ( partitionId ) ; \n out . writeInt ( backupCount ) ; \n public class Permit implements DataSerializable { \n } \n \n public void readData ( ObjectDataInput in ) throws IOException { \n + initialized = in . readBoolean ( ) ; \n available = in . readInt ( ) ; \n partitionId = in . readInt ( ) ; \n backupCount = in . readInt ( ) ;", "msg_token": "send initialized state upon migration"} {"diff": " public class EmailValidator implements TextWatcher { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed unused javadoc param tag"} {"diff": " public class Publication implements AutoCloseable \n \n default: \n newPosition = ( position - currentTail ) + nextOffset ; \n - break ; \n } \n \n return newPosition ;", "msg_token": "Remove unneeded break statement"} {"diff": " public abstract class AbstractConvertLineSeparatorsAction extends AnAction { \n public static boolean shouldProcess ( @ notnull VirtualFile file , @ notnull Project project ) { \n if ( file . isDirectory ( ) \n || ! file . isWritable ( ) \n - || FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) ) \n + || FileTypeManager . getInstance ( ) . isFileIgnored ( file ) \n || file . getFileType ( ) . isBinary ( ) \n || file . equals ( project . getProjectFile ( ) ) \n || file . equals ( project . getWorkspaceFile ( ) ) )", "msg_token": "Provide an inspection which reports files with line separator different from project s default"} {"diff": " public class SiteSettingsFragment extends PreferenceFragment \n \n private void showDeleteSiteDialog ( ) { \n Bundle args = new Bundle ( ) ; \n - String url = STRING0 ; \n + String url ; \n try { \n URI uri = new URI ( mBlog . getHomeURL ( ) ) ; \n url = uri . getHost ( ) ; \n } catch ( URISyntaxException e ) { \n - url = STRING0 ; \n + url = StringUtils . unescapeHTML ( mBlog . getHomeURL ( ) . replaceFirst ( ADDRESS_FORMAT_REGEX , STRING0 ) ) ; \n } \n \n args . putString ( DeleteSiteDialogFragment . SITE_DOMAIN_KEY , url ) ;", "msg_token": "Try formatting with URI but if that fails use regex"} {"diff": " public class HeliosSoloDeployment implements HeliosDeployment { \n \n public static final String BOOT2DOCKER_SIGNATURE = STRING0 ; \n public static final String PROBE_IMAGE = STRING1 ; \n - public static final String HELIOS_NAME_PREFIX = STRING2 ; \n + public static final String HELIOS_NAME_SUFFIX = STRING3 ; SINGLE \n public static final String HELIOS_CONTAINER_PREFIX = STRING4 ; \n public static final int HELIOS_MASTER_PORT = NUMBER0 ; \n \n public class HeliosSoloDeployment implements HeliosDeployment { \n SINGLE \n final List < String > env = new ArrayList < > ( ) ; \n env . addAll ( this . env ) ; \n - env . add ( STRING5 + HELIOS_NAME_PREFIX + this . namespace ) ; \n + env . add ( STRING5 + this . namespace + HELIOS_NAME_SUFFIX ) ; \n env . add ( STRING6 + heliosHost ) ; \n \n final String heliosPort = String . format ( STRING7 , HELIOS_MASTER_PORT ) ;", "msg_token": "Switch namespaced Helios agent name to end in"} {"diff": " \n package NAMESPACE ; \n \n import static NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Add initial processors to detect EAR deployments and start filling out their structure"} {"diff": " public class TwitterPicProvider implements Provider { \n @ override \n public boolean supports ( @ nonnull String link ) { \n final String authority = PreviewMediaExtractor . getAuthority ( link ) ; \n - return STRING0 . equals ( authority ) || STRING1 . equals ( authority ) ; \n + return STRING0 . equals ( authority ) || STRING2 . equals ( authority ) ; \n } \n \n @ nullable", "msg_token": "Fix small URL typo on TwitterPicProvider"} {"diff": " public class Option { \n } \n } \n SINGLE \n - SINGLE \n + fares = DCFareCalculator . calculateFares ( rides ) ; \n summary = generateSummary ( ) ; \n }", "msg_token": "enable fare calculations"} {"diff": " public class Analytics { \n public static final String EVENT_PHOTO_PLACE = STRING0 ; \n \n static { \n - FlurryAgent . setLogEnabled ( BuildConfig . DEBUG ) ; \n + FlurryAgent . setLogEnabled ( Constants . DEBUG ) ; \n FlurryAgent . setCaptureUncaughtExceptions ( false ) ; \n FlurryAgent . setReportLocation ( false ) ; \n }", "msg_token": "Tie Flurry Logging to internal constant"} {"diff": " public final class ODistributedVersion implements ORecordVersion { \n else \n otherCounter = o . getCounter ( ) ; \n \n - if ( myCounter != other . counter ) \n + if ( myCounter != otherCounter ) \n return myCounter > otherCounter ? NUMBER0 : - NUMBER0 ; \n \n if ( timestamp != other . timestamp )", "msg_token": "Fix issue in compare method in distributed version"} {"diff": " class HtmlToSpannedConverter implements ContentHandler { \n } \n \n private void startImg ( SpannableStringBuilder text , Attributes attributes , WPHtml . ImageGetter img ) { \n + if ( ctx == null ) return ; \n + \n String src = attributes . getValue ( STRING0 ) ; \n \n Bitmap resizedBitmap = null ;", "msg_token": "Ignoring startImg when the context is null"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class AdvisedSupport extends ProxyConfig implements Advised { \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( { STRING0 , STRING1 } ) \n public class DefaultIntroductionAdvisor implements IntroductionAdvisor , ClassFilter , Ordered , Serializable { \n \n private final Advice advice ; \n public abstract class TypeUtils { \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public static boolean isAssignable ( Type lhsType , Type rhsType ) { \n Assert . notNull ( lhsType , STRING2 ) ; \n Assert . notNull ( rhsType , STRING3 ) ;", "msg_token": "Suppressing unchecked and serial warnings"} {"diff": " public class StatusBarWindowView extends FrameLayout \n handled = super . onTouchEvent ( ev ) ; \n } \n final int action = ev . getAction ( ) ; \n - if ( action == MotionEvent . ACTION_UP || action == MotionEvent . ACTION_CANCEL ) { \n + if ( ! handled && ( action == MotionEvent . ACTION_UP || action == MotionEvent . ACTION_CANCEL ) ) { \n mService . setInteracting ( StatusBarManager . WINDOW_STATUS_BAR , false ) ; \n } \n return handled ;", "msg_token": "Don t clear the interacting bit if panel handled touch"} {"diff": " public class UIUtil { \n \n @ nonnls String fontFamilyAndSize = STRING0 + font . getFamily ( ) + STRING1 + font . getSize ( ) + STRING2 ; \n @ nonnls @ language ( STRING3 ) \n - String body = STRING4 + fontFamilyAndSize + STRING5 + ( fgColor != null ? STRING6 + ColorUtil . toHex ( fgColor ) : STRING7 ) + STRING8 ; \n + String body = STRING9 + fontFamilyAndSize + STRING5 + ( fgColor != null ? STRING6 + ColorUtil . toHex ( fgColor ) : STRING7 ) + STRING8 ; \n if ( resource != null ) { \n body += STRING10 + resource . toExternalForm ( ) + STRING8 ; \n }", "msg_token": "render multiple paragraph inspection description using one font size in tooltip"} {"diff": " public final class SuperficialValidation { \n && validateAnnotationValues ( annotationMirror . getElementValues ( ) ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n private static boolean validateAnnotationValues ( \n Map < ? extends ExecutableElement , ? extends AnnotationValue > valueMap ) { \n + COMMENT \n for ( Map . Entry < ? extends ExecutableElement , ? extends AnnotationValue > valueEntry : \n valueMap . entrySet ( ) ) { \n TypeMirror expectedType = valueEntry . getKey ( ) . getReturnType ( ) ; \n public final class SuperficialValidation { \n return false ; \n } \n } \n + COMMENT \n return true ; \n } \n \n public class SuperficialValidationTest { \n . failsToCompile ( ) ; \n } \n \n + SINGLE \n + COMMENT \n @ test \n public void invalidAnnotationValue ( ) { \n JavaFileObject javaFileObject = JavaFileObjects . forSourceLines ( STRING1 , \n public class SuperficialValidationTest { \n } \n } ) . failsToCompile ( ) ; \n } \n + COMMENT \n \n private static abstract class AssertingProcessor extends AbstractProcessor { \n @ override", "msg_token": "Disable SuperficialValidation of AnnotationValues until an internal issue is resolved"} {"diff": " public class WireGenerateSourcesMojo extends AbstractMojo { \n SINGLE \n SINGLE \n WireCompiler . main ( args . toArray ( new String [ args . size ( ) ] ) ) ; \n + \n + SINGLE \n + project . addCompileSourceRoot ( generatedSourceDirectory ) ; \n } catch ( Exception e ) { \n throw new MojoExecutionException ( STRING0 , e ) ; \n }", "msg_token": "Add generated source directory as a compilation root"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class AndroidCallable < ResultT > implements AndroidCallableI < ResultT > , Runnable { \n + protected StackTraceElement [ ] creationLocation = Ln . isDebugEnabled ( ) ? Thread . currentThread ( ) . getStackTrace ( ) : null ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n public void run ( ) { \n - final StackTraceElement [ ] launchLocation = Ln . isDebugEnabled ( ) ? Thread . currentThread ( ) . getStackTrace ( ) : null ; \n - new AndroidCallableWrapper < ResultT > ( null , this , launchLocation ) . run ( ) ; \n + new AndroidCallableWrapper < ResultT > ( null , this , creationLocation ) . run ( ) ; \n } \n \n COMMENT", "msg_token": "Fix AndroidCallable to use the correct thread s stacktrace"} {"diff": " public class SpongePluginContainer implements ModContainer , PluginContainer { \n public String toString ( ) { \n return STRING0 + getName ( ) + STRING1 + getVersion ( ) + STRING2 ; \n } \n + \n + @ override \n + public boolean shouldLoadInEnvironment ( ) { \n + return true ; \n + } \n }", "msg_token": "Add missing method to SpongePluginContainer"} {"diff": " public class RecyclerViewDragDropManager { \n final int draggingItemTop = mDraggingItemDecorator . getTranslatedItemPositionTop ( ) ; \n final int draggingItemBottom = mDraggingItemDecorator . getTranslatedItemPositionBottom ( ) ; \n final int draggingItemCenter = ( draggingItemTop + draggingItemBottom ) / NUMBER0 ; \n - final int nearEdgePosition = ( ( draggingItemCenter < ( height / NUMBER0 ) ) ? draggingItemTop : draggingItemBottom ) ; \n + final int nearEdgePosition ; \n + \n + if ( firstVisibleChild == NUMBER1 && lastVisibleChild == NUMBER1 ) { \n + SINGLE \n + nearEdgePosition = ( scrollAmount < NUMBER1 ) ? draggingItemTop : draggingItemBottom ; \n + } else { \n + nearEdgePosition = ( draggingItemCenter < ( height / NUMBER0 ) ) ? draggingItemTop : draggingItemBottom ; \n + } \n \n final float nearEdgeOffset = ( nearEdgePosition * invHeight ) - FLOAT0 ; \n final float absNearEdgeOffset = Math . abs ( nearEdgeOffset ) ;", "msg_token": "Fix edge effect not working properly when the list has only one item"} {"diff": " public class FMLClientHandler implements IFMLSidedHandler \n @ override \n public void haltGame ( String message , Throwable t ) \n { \n + SplashProgress . finish ( ) ; \n client . displayCrashReport ( new CrashReport ( message , t ) ) ; \n throw Throwables . propagate ( t ) ; \n } \n public class FMLClientHandler implements IFMLSidedHandler \n { \n if ( modsMissing != null || wrongMC != null || customError != null || dupesFound != null || modSorting != null ) \n { \n + SplashProgress . finish ( ) ; \n return ; \n } \n try \n public class FMLClientHandler implements IFMLSidedHandler \n { \n FMLLog . log ( Level . ERROR , custom , STRING0 ) ; \n customError = custom ; \n + SplashProgress . finish ( ) ; \n return ; \n } \n catch ( LoaderException le )", "msg_token": "Make sure to close the splash screen if there s gonna be an error display"} {"diff": " public class MessageCompose extends K9Activity implements OnClickListener , OnFoc \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - private String quoteOriginalMessage ( final Message originalMessage , final String body , final Account . QuoteStyle quoteStyle ) throws MessagingException \n + private String quoteOriginalMessage ( final Message originalMessage , final String messageBody , final Account . QuoteStyle quoteStyle ) throws MessagingException \n { \n + String body = messageBody == null ? STRING0 : messageBody ; \n if ( quoteStyle == Account . QuoteStyle . PREFIX ) \n { \n StringBuilder quotedText = new StringBuilder ( body . length ( ) + QUOTE_BUFFER_LENGTH ) ; \n public class MessageCompose extends K9Activity implements OnClickListener , OnFoc \n } \n quotedText . append ( STRING1 ) ; \n \n - if ( body != null ) \n - { \n - quotedText . append ( body ) ; \n - } \n + quotedText . append ( body ) ; \n \n return quotedText . toString ( ) ; \n }", "msg_token": "Fix potential NPE"} {"diff": " class InProcessGradleExecuter extends AbstractGradleExecuter { \n } \n \n public ExecutionFailure assertHasDescription ( String context ) { \n - assertThatDescription ( equalTo ( context ) ) ; \n + assertThatDescription ( startsWith ( context ) ) ; \n return this ; \n } \n \n public class OutputScrapingExecutionFailure extends OutputScrapingExecutionResul \n } \n \n public ExecutionFailure assertHasDescription ( String context ) { \n - assertThatDescription ( equalTo ( context ) ) ; \n + assertThatDescription ( startsWith ( context ) ) ; \n return this ; \n }", "msg_token": "Use the startsWith matcher instead of equalTo for ExecutionResult assertHasDescription"} {"diff": " public interface JsonProvider { \n \n Object createMap ( ) ; \n \n - Iterable createArray ( ) ; \n + Object createArray ( ) ; \n \n \n Object clone ( Object model ) ;", "msg_token": "JsonProvider creteArray now returns Object"} {"diff": " public class RenderUtil { \n } \n } \n else { \n - builder . append ( STRING0 ) . append ( missingClasses . iterator ( ) . next ( ) ) ; \n + builder . append ( STRING0 ) . append ( missingClasses . iterator ( ) . next ( ) ) . append ( STRING1 ) ; \n } \n - removeLastNewLineChar ( builder ) ; \n + builder . append ( STRING2 ) ; \n warnMessages . add ( new FixableIssueMessage ( builder . toString ( ) ) ) ; \n } \n }", "msg_token": "add try to build project to missing classes notification"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Fix checkstyle errors"} {"diff": " public class AggregatorFactories { \n return EMPTY ; \n } \n List < ReducerFactory > orderedReducers = resolveReducerOrder ( this . reducerFactories , this . factories ) ; \n - SINGLE \n return new AggregatorFactories ( factories . toArray ( new AggregatorFactory [ factories . size ( ) ] ) , orderedReducers ) ; \n } \n \n public class AggregatorFactories { \n for ( ReducerFactory reducerFactory : orderedReducers ) { \n orderedReducerNames . add ( reducerFactory . getName ( ) ) ; \n } \n - System . out . println ( STRING0 + orderedReducerNames ) ; \n return orderedReducers ; \n }", "msg_token": "removed obselete NOCOMMIT and left over sysout call"} {"diff": " public class Theories extends JUnit4ClassRunner { \n \n @ override \n protected List < FrameworkMethod > computeTestMethods ( ) { \n - SINGLE \n - SINGLE \n - \n List < FrameworkMethod > testMethods = super . computeTestMethods ( ) ; \n List < FrameworkMethod > theoryMethods = getTestClass ( ) . getAnnotatedMethods ( Theory . class ) ; \n testMethods . removeAll ( theoryMethods ) ;", "msg_token": "Remove stale TODO"} {"diff": " public final class TieredBlockStore implements BlockStore { \n mMetaManager . moveBlockMeta ( srcBlockMeta , dstTempBlock ) ; \n } catch ( BlockAlreadyExistsException | BlockDoesNotExistException \n | WorkerOutOfSpaceException e ) { \n + SINGLE \n + SINGLE \n throw Throwables . propagate ( e ) ; SINGLE \n }", "msg_token": "SMALLFIX Incorporated PR comment"} {"diff": " public class EnhancedDebugger implements SmackDebugger { \n } \n return str ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isConnectionActive ( ) { \n + return connection . isConnected ( ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Adds a method that anwwers if the connection with the server is active"} {"diff": " public class GooglePlusSocialNetwork extends SocialNetwork \n } \n } \n \n + socialPerson . nickname = person . getNickname ( ) ; \n + socialPerson . profileURL = person . getUrl ( ) ; \n + \n if ( mLocalListeners . get ( REQUEST_GET_CURRENT_PERSON ) != null ) { \n mHandler . post ( new Runnable ( ) { \n @ override", "msg_token": "add profileURL for GooglePlus"} {"diff": " public final class DecisionForestPMML { \n \n List < String > columnNames = settings . getColumnNames ( ) ; \n List < MiningField > fields = miningModel . getMiningSchema ( ) . getMiningFields ( ) ; \n - double [ ] featureImportances = new double [ fields . size ( ) ] ; \n + double [ ] featureImportances = new double [ columnNames . size ( ) ] ; \n for ( MiningField field : fields ) { \n Double importance = field . getImportance ( ) ; \n if ( importance != null ) {", "msg_token": "Fix error when RDF used with an ignored ID column"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n + \n public class SessionCreateRequest extends ApiRequest { \n + @ jsonproperty \n private final String username ; \n + @ jsonproperty \n private final String password ; \n private final String host ;", "msg_token": "Fixing nonserializable CreateSessionRequest bean"} {"diff": " public class JacksonDataCodec implements TextDataCodec \n { \n if ( ! JsonToken . START_OBJECT . equals ( token ) ) \n { \n - throw new DataDecodingException ( STRING0 ) ; \n + throw new DataDecodingException ( STRING1 ) ; \n } \n \n final DataMap map = new DataMap ( ) ; \n public class JacksonDataCodec implements TextDataCodec \n { \n if ( ! JsonToken . START_ARRAY . equals ( token ) ) \n { \n - throw new DataDecodingException ( STRING2 ) ; \n + throw new DataDecodingException ( STRING3 ) ; \n } \n \n final DataList list = new DataList ( ) ;", "msg_token": "Remove extra double quote from error message"} {"diff": " public final class HTMLHostManagerServlet extends HostManagerServlet { \n HttpServletResponse response , \n String message ) throws IOException { \n \n + if ( debug >= NUMBER0 ) { \n + log ( sm . getString ( STRING0 , engine . getName ( ) ) ) ; \n + } \n + \n String newNonce = generateNonce ( ) ; \n request . getSession ( ) . setAttribute ( NONCE_SESSION , newNonce ) ;", "msg_token": "Make logging consistent for HTML and text interfaces"} {"diff": " public class PathChildrenCache implements Closeable \n \n default: \n { \n - if ( watchedEvent . getState ( ) == Watcher . Event . KeeperState . Expired ) \n - { \n - System . out . println ( ) ; \n - } \n refresh ( ) ; \n break ; \n }", "msg_token": "Removed some vestigal debugging code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Subscription implements AutoCloseable \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Subscription implements AutoCloseable \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve Subscription JavaDoc"} {"diff": " public abstract class NanoHTTPD { \n ByteBuffer fbuf = randomAccessFile . getChannel ( ) . map ( FileChannel . MapMode . READ_ONLY , NUMBER0 , randomAccessFile . length ( ) ) ; \n randomAccessFile . seek ( NUMBER0 ) ; \n \n - SINGLE \n - InputStream bin = new FileInputStream ( randomAccessFile . getFD ( ) ) ; \n - in = new BufferedReader ( new InputStreamReader ( bin ) ) ; \n - \n SINGLE \n SINGLE \n if ( Method . POST . equals ( this . method ) ) { \n public abstract class NanoHTTPD { \n } \n } finally { \n safeClose ( randomAccessFile ) ; \n - safeClose ( in ) ; \n } \n }", "msg_token": "Actually remove the extra inputstreams"} {"diff": " public class TemplateServlet extends HttpServlet { \n COMMENT \n COMMENT \n COMMENT \n - public void init ( ServletConfig config ) { \n + public void init ( ServletConfig config ) throws ServletException { \n + super . init ( config ) ; \n \n COMMENT \n COMMENT", "msg_token": "Fixed NPE in log calls by calling super init in init"} {"diff": " public class PhysicalWritableLogChannel implements WritableLogChannel \n LogVersionedStoreChannel channel = this . channel ; \n try \n { \n - channel . write ( buffer ) ; \n + channel . writeAll ( buffer ) ; \n } \n catch ( ClosedChannelException e ) \n {", "msg_token": "PhysicalWriteableLogChannel now empties its buffer using writeAll"} {"diff": " public class Facebook { \n final private String mAppId ; \n private static String mAccessToken = null ; \n private static long mAccessExpires = NUMBER0 ; \n - private static LinkedList < LogoutListener > logoutListeners = \n - new LinkedList < LogoutListener > ( ) ; \n \n \n SINGLE \n public class Facebook { \n } \n } ) ; \n } \n - \n - public static synchronized void addLogoutListener ( LogoutListener l ) { \n - logoutListeners . add ( l ) ; \n - } \n - \n - public static synchronized void removeLogoutListener ( LogoutListener l ) { \n - logoutListeners . remove ( l ) ; \n - } \n \n public void logout ( ) { \n - for ( LogoutListener l : logoutListeners ) { \n - l . onSessionLogoutStart ( ) ; \n - } \n setAccessToken ( STRING0 ) ; \n setAccessExpires ( NUMBER0 ) ; \n clearStoredSession ( ) ; \n - for ( LogoutListener l : logoutListeners ) { \n - l . onSessionLogoutFinish ( ) ; \n - } \n }", "msg_token": "removing logout listeners"} {"diff": " public class GroupByQueryRunnerTest \n . setDimensions ( \n Lists . < DimensionSpec > newArrayList ( \n new ExtractionDimensionSpec ( \n - STRING0 , STRING1 , new LookupExtractionFn ( new MapLookupExtractor ( map ) , false , null , false , false ) , null \n + STRING0 , STRING1 , new LookupExtractionFn ( new MapLookupExtractor ( map , false ) , false , null , false , false ) , null \n ) \n ) \n )", "msg_token": "handle a failing UT in GroupByQueryRunnerTest after merging into the master"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed new consumer Javadoc typo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChatView extends LinearLayout { \n \n } ) ; \n \n - mOtrSwitch . setOnCheckedChangeListener ( new OnCheckedChangeListener ( ) \n - { \n - \n + mOtrSwitch . setOnClickListener ( new OnClickListener ( ) { \n + \n @ override \n - public void onCheckedChanged ( CompoundButton buttonView , boolean isChecked ) { \n - mActivity . switchOtrState ( ChatView . this , isChecked ) ; \n - \n + public void onClick ( View view ) { \n + mActivity . switchOtrState ( ChatView . this , mOtrSwitch . isChecked ( ) ) ; \n } \n - \n - \n } ) ; \n \n COMMENT", "msg_token": "Fix handling of OTR switch UI"} {"diff": " public class DeployHandler extends BatchModeCommandHandler { \n } \n \n } \n - SINGLE \n + ctx . printLine ( STRING0 + name + STRING1 ) ; \n } \n \n @ override \n public class DeployHandler extends BatchModeCommandHandler { \n ctx . printLine ( Util . getFailureDescription ( result ) ) ; \n return ; \n } \n - SINGLE \n + ctx . printLine ( STRING0 + name + STRING2 ) ; \n } \n \n protected byte [ ] readBytes ( File f ) throws OperationFormatException { \n public class UndeployHandler extends BatchModeCommandHandler { \n ctx . printLine ( STRING3 + Util . getFailureDescription ( result ) ) ; \n return ; \n } \n + ctx . printLine ( STRING4 + name + STRING5 ) ; \n } \n \n @ override", "msg_token": "temporarily reinstate messages after successful deploy and undeploy"} {"diff": " public class Messages { \n SINGLE \n } \n \n - String NO_PERMISSION = STRING0 ; \n + static String NO_PERMISSION = STRING0 ; \n }", "msg_token": "Fix Messages to become a static field"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Minor Remove unused imports"} {"diff": " public class EntryObject { \n } \n \n public EntryObject key ( ) { \n - if ( qb . attribute == null ) { \n - qb . attribute = KEY_ATTRIBUTE_NAME ; \n - } else if ( ! qb . attribute . startsWith ( KEY_ATTRIBUTE_NAME ) ) { \n - qb . attribute = KEY_ATTRIBUTE_NAME + STRING0 + qb . attribute ; \n - } \n - \n + qb . attribute = KEY_ATTRIBUTE_NAME ; \n return this ; \n } \n \n import static NAMESPACE ; \n @ category ( ParallelTest . class ) \n public class PredicateBuilderTest extends HazelcastTestSupport { \n \n + \n @ test \n public void get_keyAttribute ( ) { \n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( NUMBER0 ) ;", "msg_token": "Solves problem with QueryBuilder and key"} {"diff": " public class SecureNio2Channel extends Nio2Channel { \n public void reset ( AsynchronousSocketChannel channel , SocketWrapperBase < Nio2Channel > socket ) \n throws IOException { \n super . reset ( channel , socket ) ; \n + sslEngine = null ; \n sniComplete = false ; \n handshakeComplete = false ; \n closed = false ;", "msg_token": "Harmonize null the SSL engine as well"} {"diff": " public class DefaultGrailsCodecClass extends AbstractInjectableGrailsClass imple \n \n private void initializeCodec ( ) { \n Integer orderSetting = ( Integer ) getPropertyOrStaticPropertyOrFieldValue ( STRING0 , Integer . class ) ; \n + if ( orderSetting != null ) { \n + order = orderSetting ; \n + } \n if ( Encoder . class . isAssignableFrom ( getClazz ( ) ) ) { \n encoder = ( Encoder ) getReferenceInstance ( ) ; \n autowireCodecBean ( encoder ) ;", "msg_token": "Fix Codec class ordering setting coming from static order property"} {"diff": " public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter { \n processBeforeEvent ( event ) ; \n } \n \n + public void beforeChildrenChange ( PsiTreeChangeEvent event ) { \n + processBeforeEvent ( event ) ; \n + } \n + \n private void processBeforeEvent ( PsiTreeChangeEvent event ) { \n if ( toProcessPsiEvent ( ) ) { \n PsiFile psiFile = event . getParent ( ) . getContainingFile ( ) ;", "msg_token": "PsiToDocSynchronizer must override beforeChildrenChange in order to fasten belts in smart pointer managers"} {"diff": " public class ProjectManagerImpl extends ProjectManagerEx implements PersistentSt \n } \n } \n \n + File projectFile = new File ( filePath ) ; \n + if ( projectFile . isFile ( ) ) { \n + FileUtil . delete ( projectFile ) ; \n + } \n + else { \n + File [ ] files = new File ( projectFile , Project . DIRECTORY_STORE_FOLDER ) . listFiles ( ) ; \n + if ( files != null ) { \n + for ( File file : files ) { \n + FileUtil . delete ( file ) ; \n + } \n + } \n + } \n ProjectImpl project = createProject ( projectName , filePath , false , optimiseTestLoadSpeed ) ; \n try { \n initProject ( project , useDefaultProjectSettings ? ( ProjectImpl ) getDefaultProject ( ) : null ) ;", "msg_token": "Overriding existing project files in the new project wizard has no effect"} {"diff": " import NAMESPACE ; \n @ target ( ElementType . TYPE ) \n @ retention ( RetentionPolicy . SOURCE ) \n public @ interface Data { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n String staticConstructor ( ) default STRING0 ; \n - int hashCodePrime ( ) default NUMBER0 ; \n }", "msg_token": "Removed the equalsPrime thing because that s just needlessly putting implementation details in there"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FrameworkPerfActivity extends Activity \n mLocalCheckBox = ( CheckBox ) findViewById ( R . id . local ) ; \n \n mLog = ( TextView ) findViewById ( R . id . log ) ; \n + mLog . setTextColor ( Color . RED ) ; \n \n PowerManager pm = ( PowerManager ) getSystemService ( POWER_SERVICE ) ; \n mPartialWakeLock = pm . newWakeLock ( PowerManager . PARTIAL_WAKE_LOCK , STRING0 ) ;", "msg_token": "Set text color for the output log"} {"diff": " public class NetworkDiagnostics { \n \n public void recordSuccess ( String msg ) { \n maybeFixupTimes ( ) ; \n + result = SUCCEEDED + STRING0 + msg ; \n if ( mCountDownLatch != null ) { \n mCountDownLatch . countDown ( ) ; \n } \n - result = SUCCEEDED + STRING0 + msg ; \n } \n \n public void recordFailure ( String msg ) { \n maybeFixupTimes ( ) ; \n + result = FAILED + STRING0 + msg ; \n if ( mCountDownLatch != null ) { \n mCountDownLatch . countDown ( ) ; \n } \n - result = FAILED + STRING0 + msg ; \n } \n \n private void maybeFixupTimes ( ) {", "msg_token": "Don t lose critical success failure messages"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n \n COMMENT \n public double stairsReluctance = FLOAT0 ; \n + \n + COMMENT \n + @ setter \n + public double turnReluctance = FLOAT1 ; \n \n COMMENT \n COMMENT \n public class PlainStreetEdge extends StreetEdge implements Cloneable { \n \n long turnTime = ( long ) Math . ceil ( realTurnCost ) ; \n time += turnTime ; \n - weight += realTurnCost ; \n + weight += options . turnReluctance * realTurnCost ; \n } \n \n int timeLong = ( int ) Math . ceil ( time ) ;", "msg_token": "add a turn reluctance for weighing turn costs"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Making Fragment non support version"} {"diff": " public class AntFileImpl extends LightPsiFileBase implements AntFile { \n @ notnull \n public PsiElement [ ] getChildren ( ) { \n synchronized ( PsiLock . LOCK ) { \n + buildPropertiesIfNeeded ( ) ; \n if ( myChildren == null ) { \n final AntProject project = getAntProject ( ) ; \n final ArrayList < PsiElement > children = new ArrayList < PsiElement > ( NUMBER0 ) ; \n public interface PropertiesTokenTypes { \n \n TokenSet COMMENTS = TokenSet . create ( END_OF_LINE_COMMENT ) ; \n TokenSet WHITESPACES = TokenSet . create ( WHITE_SPACE ) ; \n - TokenSet PROPERTIES_TYPES_TO_IGNORE = TokenSet . create ( END_OF_LINE_COMMENT , VALUE_CHARACTERS ) ; \n + TokenSet PROPERTIES_TYPES_TO_IGNORE = TokenSet . create ( END_OF_LINE_COMMENT ) ; \n }", "msg_token": "make highlighter work on property value change"} {"diff": " public class WXStreamModule extends WXModule { \n WXBridgeManager . getInstance ( ) . callback ( mWXSDKInstance . getInstanceId ( ) , callback , \n ( response == null || response . originalData == null ) ? STRING0 : \n readAsString ( response . originalData , \n - headers . get ( STRING1 ) \n + headers != null ? headers . get ( STRING1 ) : STRING2 \n ) ) ; \n } \n } , null ) ;", "msg_token": "android update np"} {"diff": " public class PopupWindow { \n if ( isShowing ( ) && mPopupView != null ) { \n unregisterForScrollChanged ( ) ; \n \n - mWindowManager . removeView ( mPopupView ) ; \n - \n - if ( mPopupView != mContentView && mPopupView instanceof ViewGroup ) { \n - ( ( ViewGroup ) mPopupView ) . removeView ( mContentView ) ; \n - } \n - mPopupView = null ; \n - mIsShowing = false ; \n - \n - if ( mOnDismissListener != null ) { \n - mOnDismissListener . onDismiss ( ) ; \n + try { \n + mWindowManager . removeView ( mPopupView ) ; \n + } finally { \n + if ( mPopupView != mContentView && mPopupView instanceof ViewGroup ) { \n + ( ( ViewGroup ) mPopupView ) . removeView ( mContentView ) ; \n + } \n + mPopupView = null ; \n + mIsShowing = false ; \n + \n + if ( mOnDismissListener != null ) { \n + mOnDismissListener . onDismiss ( ) ; \n + } \n } \n } \n }", "msg_token": "Prevent crash when dismissing a PopupWindow that didn t have time to show up"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public final class BaseFileSystemTest { \n private FileSystemMasterClient mFileSystemMasterClient ; \n \n private class DummyAlluxioFileSystem extends BaseFileSystem { \n + public DummyAlluxioFileSystem ( FileSystemContext context ) { \n + super ( context ) ; \n + } \n } \n \n COMMENT \n public final class BaseFileSystemTest { \n COMMENT \n @ before \n public void before ( ) { \n - mFileSystem = new DummyAlluxioFileSystem ( ) ; \n mFileContext = PowerMockito . mock ( FileSystemContext . class ) ; \n - Whitebox . setInternalState ( mFileSystem , STRING0 , mFileContext ) ; \n + mFileSystem = new DummyAlluxioFileSystem ( mFileContext ) ; \n mFileSystemMasterClient = PowerMockito . mock ( FileSystemMasterClient . class ) ; \n Mockito . when ( mFileContext . acquireMasterClient ( ) ) . thenReturn ( mFileSystemMasterClient ) ; \n }", "msg_token": "Remove use of whitebox in BaseFileSystemTest"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n try { \n final long now = System . currentTimeMillis ( ) ; \n epoch_counter = ( float ) model_info ( ) . get_processed_total ( ) / training_rows ; \n - final double time_last_iter_millis = now - _timeLastScoreEnter ; \n + final double time_last_iter_millis = Math . max ( NUMBER0 , now - _timeLastScoreEnter ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fix DL bug with autotuning"} {"diff": " public class SemanticGraph implements Serializable { \n addVertex ( govVertex ) ; \n addVertex ( depVertex ) ; \n addEdge ( govVertex , depVertex , reln , Double . NEGATIVE_INFINITY , d . extra ( ) ) ; \n - } \n - \n - else { SINGLE \n + } else { SINGLE \n IndexedWord depVertex = new IndexedWord ( docID , sentIndex , dep . index ( ) , depLabel ) ; \n depVertex . setTag ( dep . highestNodeWithSameHead ( ) . headTagNode ( ) . value ( ) ) ; \n if ( lemmatize ) { \n depVertex . setLemma ( morphology . lemma ( depVertex . value ( ) , depVertex . tag ( ) , true ) ) ; \n } \n \n + addVertex ( depVertex ) ; \n roots . add ( depVertex ) ; \n } \n }", "msg_token": "Fix a bug when a SemanticGraph with a single node and no edges would not be constructed with the node"} {"diff": " public class WifiScanner { \n FullScanResult result = ( FullScanResult ) msg . obj ; \n ( ( ScanListener ) listener ) . onFullResult ( result ) ; \n return ; \n + case CMD_PERIOD_CHANGED : \n + ( ( ScanListener ) listener ) . onPeriodChanged ( msg . arg1 ) ; \n + return ; \n case CMD_AP_FOUND : \n ( ( HotlistListener ) listener ) . onFound ( \n ( ( ParcelableScanResults ) msg . obj ) . getResults ( ) ) ;", "msg_token": "Implement onPeriodChanged and multiple scans of same channels"} {"diff": " public class TcpOutgoingConnector < T > implements OutgoingConnector < T > { \n \n SINGLE \n try { \n - SocketException lastFailure = null ; \n + Exception lastFailure = null ; \n for ( InetAddress candidate : candidateAddresses ) { \n LOGGER . debug ( STRING0 , candidate ) ; \n SocketChannel socketChannel ; \n try { \n socketChannel = SocketChannel . open ( new InetSocketAddress ( candidate , address . getPort ( ) ) ) ; \n - } catch ( SocketException e ) { \n + } catch ( java . net . ConnectException e ) { \n LOGGER . debug ( STRING1 , candidate ) ; \n lastFailure = e ; \n continue ; \n + } catch ( SocketException e ) { \n + LOGGER . debug ( STRING1 , candidate ) ; \n + lastFailure = new RuntimeException ( String . format ( STRING2 , candidate ) , e ) ; \n + continue ; \n } \n LOGGER . debug ( STRING3 , candidate ) ; \n return new SocketConnection < T > ( socketChannel , serializer ) ;", "msg_token": "Added some trace to try to track down windows ci failure"} {"diff": " class DropboxRemoteClient implements RemoteClient { \n STRING0 , fileDownload ) ; \n } \n } \n + try { \n + if ( ! TODO_TXT_TMP_FILE . exists ( ) ) { \n + Util . createParentDirectory ( TODO_TXT_TMP_FILE ) ; \n + TODO_TXT_TMP_FILE . createNewFile ( ) ; \n + } \n + } catch ( IOException e ) { \n + throw new RemoteException ( STRING1 , e ) ; \n + } \n \n try { \n Util . writeFile ( fileDownload . is , TODO_TXT_TMP_FILE ) ;", "msg_token": "Creates temp file when not existing"} {"diff": " public class GLRenderer extends HardwareRenderer { \n mAttachedLayers . add ( hardwareLayer ) ; \n } \n \n + boolean hasContext ( ) { \n + return sEgl != null && mEglContext != null \n + && mEglContext . equals ( sEgl . eglGetCurrentContext ( ) ) ; \n + } \n + \n @ override \n void onLayerDestroyed ( HardwareLayer layer ) { \n if ( mGlCanvas != null ) { \n mGlCanvas . cancelLayerUpdate ( layer ) ; \n } \n - if ( Looper . myLooper ( ) == Looper . getMainLooper ( ) && validate ( ) ) { \n + if ( hasContext ( ) ) { \n long backingLayer = layer . detachBackingLayer ( ) ; \n nDestroyLayer ( backingLayer ) ; \n }", "msg_token": "Fix NPE in layer destruction"} {"diff": " public class ThreadPool extends AbstractComponent { \n public void run ( ) { \n try { \n runnable . run ( ) ; \n - } catch ( Exception e ) { \n - logger . warn ( STRING0 , e , runnable . toString ( ) ) ; \n + } catch ( Throwable t ) { \n + logger . warn ( STRING0 , t , runnable . toString ( ) ) ; \n } \n }", "msg_token": "catch Throwable instead of Exception in LoggingRunnable run"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostProcessor implements \n - Ordered { \n + public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostProcessor { \n \n private static final long serialVersionUID = - NUMBER0 ; \n \n public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostPr \n return new TimedMethodInterceptor ( metrics , targetClass ) ; \n } \n \n - @ override \n - public int getOrder ( ) { \n - return HIGHEST_PRECEDENCE ; \n - } \n - \n }", "msg_token": "Remove Ordered interface from TimedAnnotationBeanPostProcessor"} {"diff": " public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean setPermittedInputMethods ( ComponentName admin , List < String > packageNames ) { \n if ( mService != null ) {", "msg_token": "Fix mangled javadoc for setPermittedInputMethods"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestFragmentTransaction extends FragmentTransaction { \n \n @ override \n public int commit ( ) { \n - fragmentManager . addFragment ( containerViewId , tag , fragment , isReplacing ) ; \n + new Handler ( ) . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + fragmentManager . addFragment ( containerViewId , tag , fragment , isReplacing ) ; \n + } \n + } ) ; \n return NUMBER0 ; \n }", "msg_token": "TestFragmentTransaction simulates real Android behavior of posting the commit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class TagLibConfiguration implements Configuration \n SINGLE \n TldProcessor processor = new TldProcessor ( context ) ; \n context . setAttribute ( TldProcessor . __taglib_processor , processor ) ; \n + \n SINGLE \n + Resource tld = null ; \n Iterator iter = tlds . iterator ( ) ; \n while ( iter . hasNext ( ) ) \n { \n try \n { \n - Resource tld = ( Resource ) iter . next ( ) ; \n + tld = ( Resource ) iter . next ( ) ; \n if ( Log . isDebugEnabled ( ) ) Log . debug ( STRING0 + tld ) ; \n processor . parse ( tld ) ; \n } \n catch ( Exception e ) \n { \n - Log . warn ( e ) ; \n + Log . warn ( STRING1 + tld , e ) ; \n } \n } \n }", "msg_token": "Enhancing Warning log entry to output Resource if defined that cannot be parsed"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n return more ; \n } \n \n - float alpha = child . getAlpha ( ) ; \n - SINGLE \n - if ( alpha <= ViewConfiguration . ALPHA_THRESHOLD && ( child . mPrivateFlags & ALPHA_SET ) == NUMBER0 && \n - ! ( child instanceof SurfaceView ) ) { \n - return more ; \n - } \n - \n if ( hardwareAccelerated ) { \n SINGLE \n SINGLE \n public abstract class ViewGroup extends View implements ViewParent , ViewManager \n } \n } \n \n + float alpha = child . getAlpha ( ) ; \n if ( transformToApply != null || alpha < FLOAT0 || ! child . hasIdentityMatrix ( ) ) { \n if ( transformToApply != null || ! childHasIdentityMatrix ) { \n int transX = NUMBER0 ;", "msg_token": "Remove dangerous and useless optimization"} {"diff": " public class RegionUtils { \n COMMENT \n COMMENT \n private static void initSDKRegions ( ) { \n - ClassLoader classLoader = RegionUtils . class . getClassLoader ( ) ; \n - InputStream inputStream = classLoader . getResourceAsStream ( STRING0 ) ; \n + InputStream inputStream = RegionUtils . class . getResourceAsStream ( STRING0 ) ; \n initRegions ( inputStream ) ; \n }", "msg_token": "Fix RegionUtils initSDKRegions"} {"diff": " public class DefaultCacheAwareExternalResourceAccessor implements CacheAwareExte \n throw new IOException ( STRING0 + destFile + STRING1 ) ; \n } \n \n + if ( srcFile . length ( ) == NUMBER0 ) { \n + throw new IOException ( STRING2 + srcFile + STRING3 ) ; \n + } \n + \n FileInputStream input = new FileInputStream ( srcFile ) ; \n try { \n FileOutputStream output = new FileOutputStream ( destFile ) ;", "msg_token": "Check the source file length before the copy"} {"diff": " public class Progress extends SherlockActivity { \n @ override \n public void run ( ) { \n mProgress += NUMBER0 ; \n - \n + \n SINGLE \n int progress = ( Window . PROGRESS_END - Window . PROGRESS_START ) / NUMBER1 * mProgress ; \n setSupportProgress ( progress ) ; \n - \n + \n if ( mProgress < NUMBER1 ) { \n mHandler . postDelayed ( mProgressRunner , NUMBER2 ) ; \n } \n } \n } ; \n - \n + \n private int mProgress = NUMBER1 ; \n - \n + \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n setTheme ( SampleList . THEME ) ; SINGLE", "msg_token": "Fix checkstyle errors"} {"diff": " final class SettingsTreeView extends JComponent implements Disposable , OptionsEd \n } \n SINGLE \n Icon nodeIcon = null ; \n - if ( node != null ) { \n - if ( NUMBER0 == node . getChildCount ( ) ) { \n + if ( value instanceof DefaultMutableTreeNode ) { \n + DefaultMutableTreeNode treeNode = ( DefaultMutableTreeNode ) value ; \n + if ( NUMBER0 == treeNode . getChildCount ( ) ) { \n nodeIcon = myTree . getEmptyHandle ( ) ; \n } \n - else if ( value instanceof DefaultMutableTreeNode ) { \n - DefaultMutableTreeNode treeNode = ( DefaultMutableTreeNode ) value ; \n + else { \n nodeIcon = myTree . isExpanded ( new TreePath ( treeNode . getPath ( ) ) ) \n ? myTree . getExpandedHandle ( ) \n : myTree . getCollapsedHandle ( ) ;", "msg_token": "do not show collapsed icon if subnodes are filtered out"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - public interface HasAndroidPlatformTarget extends BuildRule { \n + public interface HasAndroidPlatformTarget { \n \n COMMENT \n COMMENT", "msg_token": "HasAndroidPlatformTarget no longer extends BuildRule"} {"diff": " public class CreatureSpawnEvent extends EntityEvent implements Cancellable { \n COMMENT \n SLIME_SPLIT , \n COMMENT \n + COMMENT \n + COMMENT \n + REINFORCEMENTS , \n + COMMENT \n COMMENT \n COMMENT \n CUSTOM ,", "msg_token": "Add SpawnReason for Entity Reinforcements"} {"diff": " public class ZWaveController { \n this . enqueue ( switchAllCommandClass . allOnMessage ( ) ) ; \n continue ; \n } \n - logger . debug ( STRING0 , ( Object ) nodeId ) ; \n } \n } \n \n public class ZWaveController { \n this . enqueue ( switchAllCommandClass . allOffMessage ( ) ) ; \n continue ; \n } \n - logger . debug ( STRING1 , ( Object ) nodeId ) ; \n } \n }", "msg_token": "removed excessive logging in allOn and allOff"} {"diff": " public class OreDictionary \n COMMENT \n public static String getOreName ( int id ) \n { \n - return id < idToName . size ( ) ? idToName . get ( id ) : STRING0 ; \n + return ( id >= NUMBER0 && id < idToName . size ( ) ) ? idToName . get ( id ) : STRING0 ; \n } \n \n COMMENT", "msg_token": "Fixed ArrayIndexOutOfBoundsException in getOreName"} {"diff": " public class SpiderTextParser extends SpiderParser { \n COMMENT \n private static final Pattern patternURL = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ; \n \n - public static void main ( String [ ] args ) { \n - for ( char x = NUMBER0 ; x <= NUMBER1 ; x ++ ) { \n - System . err . println ( x ) ; \n - } \n - } \n - \n @ override \n public boolean parseResource ( HttpMessage message , Source source , int depth ) { \n log . debug ( STRING1 ) ;", "msg_token": "Remove debug code in SpiderTextParser"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class EditPostActivity extends SherlockFragmentActivity { \n \n public static final String EXTRA_POSTID = STRING0 ;", "msg_token": "Removed unused imports"} {"diff": " public class AuthorizationRequestedDialog \n \n private I18NString ignoreString = Messages . getI18NString ( STRING0 ) ; \n \n - private JButton acceptButton \n - = new JButton ( ) ; \n + private JButton acceptButton = new JButton ( acceptString . getText ( ) ) ; \n \n private JButton rejectButton = new JButton ( rejectString . getText ( ) ) ;", "msg_token": "accept button text fixed"} {"diff": " public class SpecialFiles { \n excludedFiles . add ( STRING0 ) ; \n excludedFiles . add ( STRING1 ) ; \n excludedFiles . add ( STRING2 ) ; \n + excludedFiles . add ( STRING3 ) ; \n + excludedFiles . add ( STRING4 ) ; \n \n SINGLE \n excludedFiles . add ( STRING5 ) ; \n \n + SINGLE \n + excludedFiles . add ( STRING6 ) ; \n + \n SINGLE \n excludedFiles . add ( STRING7 ) ; \n excludedFiles . add ( STRING8 ) ;", "msg_token": "Disable some reflection tests on Android"} {"diff": " public abstract class ServletInputStream extends InputStream { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public abstract int dataAvailable ( ) ; \n \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public abstract boolean isFinished ( ) ; \n \n public abstract class ServletInputStream extends InputStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public abstract boolean isReady ( ) ; \n \n public abstract class ServletOutputStream extends OutputStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public abstract boolean canWrite ( ) ; \n \n public interface ServletRequest { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public int getContentLength ( ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public long getContentLengthLong ( ) ;", "msg_token": "Fix Javadoc warnings"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ErrorTable extends JTable { \n public ErrorTable ( final Editor editor ) { \n super ( new DefaultTableModel ( columnNames , NUMBER0 ) ) ; \n \n + setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; \n + \n this . editor = editor ; \n JTableHeader header = getTableHeader ( ) ;", "msg_token": "Set selection mode for error table"} {"diff": " public class DragTopLayout extends FrameLayout { \n } else { \n panelState = PanelState . COLLAPSED ; \n } \n - if ( wizard . panelListener != null ) { \n - wizard . panelListener . onPanelStateChanged ( panelState ) ; \n - } \n } else { \n panelState = PanelState . SLIDING ; \n } \n + if ( wizard . panelListener != null ) { \n + wizard . panelListener . onPanelStateChanged ( panelState ) ; \n + } \n super . onViewDragStateChanged ( state ) ; \n } \n } ;", "msg_token": "on view drag state changed"} {"diff": " public interface Player extends HumanEntity , CommandSender { \n public void kickPlayer ( String message ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void chat ( String msg ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Player chat"} {"diff": " public class ExpressionCodegen extends JetVisitor < StackValue , StackValue > { \n } \n \n private abstract class ForLoopGenerator { \n - protected JetForExpression expression ; \n - protected Type loopRangeType ; \n - protected JetType expressionType ; \n - protected VariableDescriptor parameterDescriptor ; \n - Label end = new Label ( ) ; \n + protected final JetForExpression expression ; \n + protected final Type loopRangeType ; \n + protected final JetType expressionType ; \n + protected final VariableDescriptor parameterDescriptor ; \n + protected final Label end = new Label ( ) ; \n \n public ForLoopGenerator ( JetForExpression expression , Type loopRangeType ) { \n this . expression = expression ; \n public class ExpressionCodegen extends JetVisitor < StackValue , StackValue > { \n StackValue . onStack ( intermediateType ) . put ( type , v ) ; \n } \n else { \n - throw new UnsupportedOperationException ( ) ; \n + throw new UnsupportedOperationException ( STRING0 + descriptor ) ; \n } \n }", "msg_token": "Clarifying message making fields final"} {"diff": " public class ListView extends AbsListView { \n previouslyFocusedRect . offset ( mScrollX , mScrollY ) ; \n \n final ListAdapter adapter = mAdapter ; \n - final int firstPosition = mFirstPosition ; \n - SINGLE \n - if ( adapter . getCount ( ) < getChildCount ( ) + firstPosition ) { \n + SINGLE \n + SINGLE \n + if ( adapter . getCount ( ) < getChildCount ( ) + mFirstPosition ) { \n mLayoutMode = LAYOUT_NORMAL ; \n layoutChildren ( ) ; \n } \n public class ListView extends AbsListView { \n Rect otherRect = mTempRect ; \n int minDistance = Integer . MAX_VALUE ; \n final int childCount = getChildCount ( ) ; \n + final int firstPosition = mFirstPosition ; \n \n for ( int i = NUMBER0 ; i < childCount ; i ++ ) { \n SINGLE", "msg_token": "Don t cache mFirstPosition before a layoutChildren in ListView onFocusChanged"} {"diff": " final class InjectorImpl implements Injector , Lookups { \n return getProvider ( type ) . get ( ) ; \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 + COMMENT \n + COMMENT \n + COMMENT \n private final ThreadLocal < Object [ ] > localContext ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add comment explaining InjectorImpl localContext"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n boolean mClientFreezingScreen = false ; \n int mAppsFreezingScreen = NUMBER0 ; \n int mLastWindowForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED ; \n - int mLastKeyguardForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ; \n + int mLastKeyguardForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED ; \n \n int mLayoutSeq = NUMBER0 ;", "msg_token": "Do not force keyguard orientation to no sensor"} {"diff": " public class JavaMatchingVisitor extends JavaElementVisitor { \n } \n } \n \n - @ override \n - public void visitDocTagValue ( final PsiDocTagValue value ) { \n - final PsiDocTagValue value2 = ( PsiDocTagValue ) myMatchingVisitor . getElement ( ) ; \n - final boolean isTypedVar = myMatchingVisitor . getMatchContext ( ) . getPattern ( ) . isTypedVar ( value ) ; \n - \n - if ( isTypedVar ) { \n - myMatchingVisitor . setResult ( myMatchingVisitor . handleTypedElement ( value , value2 ) ) ; \n - } \n - else { \n - myMatchingVisitor . setResult ( value . textMatches ( value2 ) ) ; \n - } \n - } \n - \n private static boolean isNotInstanceModifier ( final PsiModifierList list2 ) { \n return list2 . hasModifierProperty ( PsiModifier . STATIC ) || \n list2 . hasModifierProperty ( PsiModifier . ABSTRACT ) ;", "msg_token": "remove visitDocTagValue method doc tag value matching is handled in visitDocTag"} {"diff": " public final class Main { \n JPanel panel = new JPanel ( new GridBagLayout ( ) ) ; \n taggerDialog . add ( panel ) ; \n taggerArea = new JTextPane ( ) ; \n + taggerArea . registerKeyboardAction ( new ActionListener ( ) { \n + @ override \n + public void actionPerformed ( ActionEvent e ) { \n + taggerArea . copy ( ) ; \n + } \n + } , KeyStroke . getKeyStroke ( KeyEvent . VK_C , KeyEvent . CTRL_DOWN_MASK ) , JComponent . WHEN_IN_FOCUSED_WINDOW ) ; \n taggerArea . setContentType ( STRING0 ) ; \n taggerArea . setEditable ( false ) ; \n GridBagConstraints c = new GridBagConstraints ( ) ;", "msg_token": "Allow copying from taggerArea to clipboard"} {"diff": " class MappedPersistenceWindow extends LockableWindow \n public Buffer getOffsettedBuffer ( long id ) \n { \n int offset = ( int ) ( id - buffer . position ( ) ) * recordSize ; \n - buffer . setOffset ( offset ) ; \n - return buffer ; \n + try \n + { \n + buffer . setOffset ( offset ) ; \n + return buffer ; \n + } catch ( IllegalArgumentException e ) \n + { \n + throw new IllegalArgumentException ( STRING0 + id + STRING1 + buffer . position ( ) \n + + STRING2 + recordSize , e ) ; \n + } \n } \n }", "msg_token": "Added better error message for offset error"} {"diff": " public interface EditorTextFieldProvider { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ notnull \n EditorTextField getEditorField ( @ notnull Language language , @ notnull Project project , @ notnull Iterable < EditorCustomization > features ) ;", "msg_token": "add javadoc statement"} {"diff": " public class ReaderBlogTable { \n if ( TextUtils . isEmpty ( url ) ) { \n return NUMBER0 ; \n } \n - String normUrl = UrlUtils . normalizeUrl ( url ) ; \n - String [ ] args = { normUrl , normUrl } ; \n + String [ ] args = { UrlUtils . normalizeUrl ( url ) } ; \n return SqlUtils . longForQuery ( ReaderDatabase . getReadableDb ( ) , \n - STRING0 , \n + STRING1 , \n args ) ; \n } \n \n public class ReaderBlogTable { \n if ( TextUtils . isEmpty ( url ) ) { \n return NUMBER0 ; \n } \n - String normUrl = UrlUtils . normalizeUrl ( url ) ; \n - String [ ] args = { normUrl , normUrl } ; \n + String [ ] args = { UrlUtils . normalizeUrl ( url ) } ; \n return SqlUtils . longForQuery ( ReaderDatabase . getReadableDb ( ) , \n - STRING2 , \n + STRING3 , \n args ) ; \n }", "msg_token": "Updated getBlogIdFromUrl and getFeedIdFromUrl to only check the appropriate url column"} {"diff": " public class ConfluenceToPDFMojo extends AbstractMojo { \n COMMENT \n private String [ ] princeArgs ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean failOnCommandLineError ; \n + \n public void execute ( ) throws MojoExecutionException { \n File outputDir = new File ( pdf ) . getParentFile ( ) ; \n if ( ! outputDir . exists ( ) ) { \n public class ConfluenceToPDFMojo extends AbstractMojo { \n if ( rc == NUMBER0 ) { \n getLog ( ) . info ( STRING0 + getPDFFileName ( ) ) ; \n } else { \n - throw new MojoExecutionException ( STRING1 + rc ) ; \n + if ( failOnCommandLineError ) { \n + throw new MojoExecutionException ( STRING1 + rc ) ; \n + } else { \n + getLog ( ) . warn ( STRING2 + rc ) ; \n + } \n } \n }", "msg_token": "avoided the build failing if the prince executable is not configured or installed properly"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ path ( STRING0 ) \n public class TestJetty9WebServer \n { \n - \n - @ get \n - public Response index ( ) \n - { \n - return Response . status ( Status . NO_CONTENT ) \n - . build ( ) ; \n - } \n - \n @ test \n public void shouldBeAbleToRestart ( ) throws Throwable \n {", "msg_token": "Remove unused Jersey annotations"} {"diff": " class ClsWrapperStubPsiFactory extends StubPsiFactory { \n @ override \n public PsiClass createClass ( @ notnull PsiClassStub stub ) { \n final PsiElement origin = getOriginalElement ( stub ) ; \n - if ( origin == null ) return delegate . createClass ( stub ) ; \n - \n return new ClsClassImpl ( stub ) { \n @ notnull \n @ override \n public PsiElement getNavigationElement ( ) { \n - return origin ; \n + if ( origin != null ) return origin ; \n + \n + return super . getNavigationElement ( ) ; \n + } \n + \n + @ nullable \n + @ override \n + public PsiClass getSourceMirrorClass ( ) { \n + return null ; \n } \n } ; \n }", "msg_token": "Prevent recursion when computing parameter list of KtLightMethod"} {"diff": " public class ReactWebViewManager extends SimpleViewManager < WebView > { \n } \n if ( source . hasKey ( STRING0 ) ) { \n String url = source . getString ( STRING0 ) ; \n + String previousUrl = view . getUrl ( ) ; \n + if ( previousUrl != null && previousUrl . equals ( url ) ) { \n + return ; \n + } \n if ( source . hasKey ( STRING1 ) ) { \n String method = source . getString ( STRING1 ) ; \n if ( method . equals ( HTTP_METHOD_POST ) ) {", "msg_token": "Stop Reload Android Webview On Same URL Before"} {"diff": " public class DataImport extends Composite \n \n gridViewer_ . setOption ( STRING0 , \n STRING1 + toLocaleString ( maxRows_ ) + \n - STRING2 + Integer . toString ( response . getParsingErrors ( ) ) + \n - STRING3 ) ; \n - \n + STRING2 + ( \n + response . getParsingErrors ( ) > NUMBER0 ? \n + Integer . toString ( response . getParsingErrors ( ) ) + STRING3 : STRING4 ) \n + ) ; \n \n assignColumnDefinitions ( response , importOptions_ . getColumnDefinitions ( ) ) ;", "msg_token": "hide parsing errors count from data import footer when no errors exists"} {"diff": " public class NeoServerFunctionalTest { \n FunctionalTestHelper functionalTestHelper = new FunctionalTestHelper ( server ) ; \n \n Client client = Client . create ( ) ; \n - SINGLE \n - SINGLE \n ClientResponse response = client . resource ( functionalTestHelper . getWebadminUri ( ) ) . get ( ClientResponse . class ) ; \n \n assertThat ( response . getStatus ( ) , is ( NUMBER0 ) ) ;", "msg_token": "Removing unused commented out code"} {"diff": " public class SimpleSuspendableClassifier implements SuspendableClassifier { \n } \n \n SimpleSuspendableClassifier ( String suspendablesFileName ) { \n - readSuspendablesFile ( suspendablesFileName , suspendables , suspendables ) ; \n + readSuspendablesFile ( suspendablesFileName , suspendables , suspendableClasses ) ; \n } \n \n Set < String > getSuspendables ( ) {", "msg_token": "handle suspend able classes in file"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class IsEmptyCollection < E > extends TypeSafeMatcher < Collection < ? extends E \n COMMENT \n @ factory \n public static < E > Matcher < Collection < E > > emptyCollectionOf ( Class < E > type ) { \n - @ suppresswarnings ( { STRING0 , STRING1 } ) \n - final Matcher < Collection < E > > result = ( Matcher ) empty ( ) ; \n - return result ; \n + return ( Matcher ) empty ( ) ; \n } \n }", "msg_token": "removed unnecessary variable"} {"diff": " public abstract class AbstractNumericTests extends ElasticsearchIntegrationTest \n . endObject ( ) ) ) ; \n } \n indexRandom ( true , builders ) ; \n - ensureGreen ( ) ; SINGLE \n } \n \n public abstract void testEmptyAggregation ( ) throws Exception ; \n public class ValueCountTests extends ElasticsearchIntegrationTest { \n } \n client ( ) . admin ( ) . indices ( ) . prepareFlush ( ) . execute ( ) . actionGet ( ) ; \n client ( ) . admin ( ) . indices ( ) . prepareRefresh ( ) . execute ( ) . actionGet ( ) ; \n - ensureGreen ( ) ; \n } \n \n @ test", "msg_token": "remove ensureGreen for debugging"} {"diff": " public class GroovyPlugin implements Plugin { \n groovySourceSet . getGroovy ( ) . srcDir ( String . format ( STRING0 , sourceSet . getName ( ) ) ) ; \n sourceSet . getAllJava ( ) . add ( groovySourceSet . getGroovy ( ) . matching ( sourceSet . getJavaSourcePatterns ( ) ) ) ; \n \n - TaskDependency javaCompileTaskDependency = project . getTasks ( ) . getByName ( sourceSet . getCompileTaskName ( ) ) . getTaskDependencies ( ) ; \n String compileTaskName = String . format ( STRING1 , sourceSet . getCompileTaskName ( ) ) ; \n GroovyCompile compile = project . getTasks ( ) . add ( compileTaskName , GroovyCompile . class ) ; \n javaPlugin . configureForSourceSet ( sourceSet , compile ) ; \n - compile . dependsOn ( javaCompileTaskDependency ) ; \n compile . dependsOn ( sourceSet . getCompileTaskName ( ) ) ; \n compile . setDescription ( String . format ( STRING2 , sourceSet . getName ( ) ) ) ; \n compile . conventionMapping ( STRING3 , new ConventionValue ( ) {", "msg_token": "Removed original fix for missing compileTest on compile dependency for Groovy projects"} {"diff": " public interface Vertx extends Measured { \n COMMENT \n COMMENT \n COMMENT \n - @ genignore \n void deployVerticle ( String name , DeploymentOptions options , Handler < AsyncResult < String > > completionHandler ) ; \n \n COMMENT", "msg_token": "Remove GenIgnore on deployVerticle String name DeploymentOptions options Handler AsyncResult String completionHandler as that s something we can do now"} {"diff": " public class DimensionManager \n WorldSettings worldSettings = new WorldSettings ( overworld . getWorldInfo ( ) ) ; \n \n WorldServer world = ( dim == NUMBER0 ? overworld : new WorldServerMulti ( mcServer , savehandler , overworld . getWorldInfo ( ) . getWorldName ( ) , dim , worldSettings , overworld , mcServer . theProfiler ) ) ; \n - MinecraftForge . EVENT_BUS . post ( new WorldEvent . Load ( world ) ) ; \n world . addWorldAccess ( new WorldManager ( mcServer , world ) ) ; \n + MinecraftForge . EVENT_BUS . post ( new WorldEvent . Load ( world ) ) ; \n if ( ! mcServer . isSinglePlayer ( ) ) \n { \n world . getWorldInfo ( ) . setGameType ( mcServer . getGameType ( ) ) ;", "msg_token": "Fix problem with spawning custom entities in hotloaded dimensions"} {"diff": " public final class RingBuffer < T > implements SequenceManager \n @ override \n public SequenceBatch nextSequenceBatch ( final SequenceBatch sequenceBatch ) \n { \n - final long sequence = claimStrategy . incrementAndGet ( sequenceBatch . getSize ( ) ) ; \n + final int batchSize = sequenceBatch . getSize ( ) ; \n + if ( batchSize > events . length ) \n + { \n + final String msg = STRING0 + batchSize + STRING1 + events . length ; \n + throw new IllegalArgumentException ( msg ) ; \n + } \n + \n + final long sequence = claimStrategy . incrementAndGet ( batchSize ) ; \n sequenceBatch . setEnd ( sequence ) ; \n claimStrategy . ensureSequencesAreInRange ( sequence , sequencesToTrack ) ; \n return sequenceBatch ;", "msg_token": "Do not allow a batch size greater than the ring buffer size"} {"diff": " public class $ { binding - name } Binding extends AbstractActiveBinding < $ { binding - name \n } \n \n public void deactivate ( ) { \n - SINGLE \n + SINGLE \n SINGLE \n } \n \n public class $ { binding - name } Binding extends AbstractActiveBinding < $ { binding - name \n SINGLE \n logger . debug ( STRING0 ) ; \n } \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ override \n - protected boolean providesBindingFor ( String itemName ) { \n - SINGLE \n - return true ; \n - } \n - \n - \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed providesBindingFor method from archetype"} {"diff": " public class MovieTools { \n languageCode , tmdbId ) ; \n if ( movieDetails . tmdbMovie ( ) == null || movieDetails . released == null ) { \n SINGLE \n - Timber . d ( STRING0 ) ; \n + Timber . d ( STRING1 + tmdbId + STRING2 ) ; \n continue ; \n }", "msg_token": "Include movie in add fail log message"} {"diff": " public class NanoXmlUtil { \n } \n catch ( XMLException e ) { \n if ( e . getException ( ) instanceof ParserStoppedException ) return ; \n - LOG . error ( e ) ; \n + SINGLE \n } \n finally { \n reader . close ( ) ;", "msg_token": "commented error due to invalid xml different tag names for element start and end"} {"diff": " public abstract class HttpResolution { \n } \n \n client = vertx . createHttpClient ( ) ; \n + client . setKeepAlive ( false ) ; SINGLE \n if ( proxyHost != null ) { \n client . setHost ( proxyHost ) ; \n if ( proxyPort != NUMBER0 ) {", "msg_token": "Don t use keep alive for http resolution as not all servers will support this"} {"diff": " public class ConvertProperties implements Runnable \n new Rename ( STRING0 , STRING1 ) , \n new Rename ( STRING2 , STRING3 ) , \n new Rename ( STRING0 , STRING1 ) , \n + new Rename ( STRING4 , STRING5 ) , \n new Rename ( STRING6 , STRING7 ) , \n new Rename ( STRING8 , STRING9 ) , \n new Rename ( STRING10 , STRING11 ) ,", "msg_token": "fix broken validation query config port"} {"diff": " public class ApkMojo extends AbstractAndroidMojo { \n } \n catch ( Exception e ) \n { \n - getLog ( ) . error ( STRING0 + e . getMessage ( ) , e ) ; \n + throw new MojoExecutionException ( STRING1 , e ) ; \n } \n } \n }", "msg_token": "Never swallow an exception unless there is a very specific and well documented reason to do so"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MessageProcessorsResource extends RestResource { \n @ apioperation ( value = STRING0 ) \n @ path ( STRING1 ) \n public MessageProcessorsConfigWithDescriptors config ( ) { \n + checkPermission ( RestPermissions . CLUSTER_CONFIG_ENTRY_READ ) ; \n final MessageProcessorsConfig config = clusterConfigService . getOrDefault ( MessageProcessorsConfig . class , \n MessageProcessorsConfig . defaultConfig ( ) ) ; \n \n public class MessageProcessorsResource extends RestResource { \n @ apioperation ( value = STRING2 ) \n @ path ( STRING1 ) \n public MessageProcessorsConfigWithDescriptors updateConfig ( @ apiparam ( name = STRING1 , required = true ) final MessageProcessorsConfigWithDescriptors configWithDescriptors ) { \n + checkPermission ( RestPermissions . CLUSTER_CONFIG_ENTRY_EDIT ) ; \n final MessageProcessorsConfig config = configWithDescriptors . toConfig ( ) ; \n \n clusterConfigService . write ( config . withProcessors ( processorClassNames ) ) ;", "msg_token": "Add missing permission checks to MessasgeProcessorsResource"} {"diff": " public class Util { \n } \n \n \n + static boolean isContinuation ( byte opCode ) { \n + return opCode == Constants . OPCODE_CONTINUATION ; \n + } \n + \n + \n static CloseCode getCloseCode ( int code ) { \n if ( code > NUMBER0 && code < NUMBER1 ) { \n return CloseCodes . NORMAL_CLOSURE ; \n public abstract class WsFrameBase { \n } \n } else { \n if ( continuationExpected ) { \n - if ( opCode != Constants . OPCODE_CONTINUATION ) { \n + if ( ! Util . isContinuation ( opCode ) ) { \n throw new WsIOException ( new CloseReason ( \n CloseCodes . PROTOCOL_ERROR , \n sm . getString ( STRING0 ) ) ) ;", "msg_token": "Add a new utility method and make use of it will also be used in permessage deflate"} {"diff": " public abstract class CodegenContext < T extends DeclarationDescriptor > { \n @ notnull \n public final ClassDescriptor getThisDescriptor ( ) { \n if ( thisDescriptor == null ) { \n - throw new UnsupportedOperationException ( ) ; \n + throw new UnsupportedOperationException ( STRING0 + this ) ; \n } \n return thisDescriptor ; \n }", "msg_token": "Minor add assertion message to CodegenContext"} {"diff": " public class GridItemDividerDecoration extends RecyclerView . ItemDecoration { \n \n @ override \n public void onDrawOver ( Canvas canvas , RecyclerView parent , RecyclerView . State state ) { \n + if ( parent . isAnimating ( ) ) return ; \n + \n final int childCount = parent . getChildCount ( ) ; \n final RecyclerView . LayoutManager lm = parent . getLayoutManager ( ) ; \n for ( int i = NUMBER0 ; i < childCount ; i ++ ) {", "msg_token": "Don t draw grid dividers if RecyclerView is animating"} {"diff": " public class NetworkLinkerLibrary { \n return request ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n public DistanceLibrary getDistanceLibrary ( ) { \n return distanceLibrary ; \n }", "msg_token": "remove unused code"} {"diff": " public class StackStateAnimator { \n boolean hasDelays = mAnimationFilter . hasDelays ; \n boolean isDelayRelevant = yTranslationChanging || zTranslationChanging || scaleChanging || \n alphaChanging || heightChanging || topInsetChanging ; \n - boolean noAnimation = wasAdded && ! mAnimationFilter . hasGoToFullShadeEvent ; \n + boolean noAnimation = wasAdded ; \n long delay = NUMBER0 ; \n long duration = mCurrentLength ; \n if ( hasDelays && isDelayRelevant || wasAdded ) { \n public class StackStateAnimator { \n \n SINGLE \n if ( yTranslationChanging ) { \n - if ( noAnimation ) { \n + if ( noAnimation && ! mAnimationFilter . hasGoToFullShadeEvent ) { \n child . setTranslationY ( viewState . yTranslation ) ; \n } else { \n startYTranslationAnimation ( child , viewState , duration , delay ) ;", "msg_token": "Fixed a bug where the drag down animation was behaving wrong"} {"diff": " final class WifiDisplayAdapter extends DisplayAdapter { \n updateRememberedDisplaysLocked ( ) ; \n scheduleStatusChangedBroadcastLocked ( ) ; \n } \n + \n + if ( mActiveDisplay != null && mActiveDisplay . getDeviceAddress ( ) . equals ( address ) \n + && mDisplayDevice != null ) { \n + mDisplayDevice . setNameLocked ( mActiveDisplay . getFriendlyDisplayName ( ) ) ; \n + sendDisplayDeviceEventLocked ( mDisplayDevice , DISPLAY_DEVICE_EVENT_CHANGED ) ; \n + } \n } \n \n public void requestForgetLocked ( String address ) { \n final class WifiDisplayAdapter extends DisplayAdapter { \n } ; \n \n private final class WifiDisplayDevice extends DisplayDevice { \n - private final String mName ; \n + private String mName ; \n private final int mWidth ; \n private final int mHeight ; \n private final float mRefreshRate ; \n final class WifiDisplayAdapter extends DisplayAdapter { \n sendTraversalRequestLocked ( ) ; \n } \n \n + public void setNameLocked ( String name ) { \n + mName = name ; \n + mInfo = null ; \n + } \n + \n @ override \n public void performTraversalInTransactionLocked ( ) { \n setSurfaceInTransactionLocked ( mSurface ) ;", "msg_token": "Update wifi display device name when renamed"} {"diff": " public class SparkDl4jMultiLayer implements Serializable { \n if ( params . length ( ) != paramsLength ) \n throw new IllegalStateException ( STRING0 + paramsLength + STRING1 + params . length ( ) ) ; \n JavaRDD < INDArray > results = rdd . sample ( true , FLOAT0 ) . mapPartitions ( new IterativeReduceFlatMap ( conf . toJson ( ) , this . params ) ) ; \n - log . debug ( STRING2 ) ; \n + log . info ( STRING2 ) ; \n INDArray newParams = results . aggregate ( Nd4j . zeros ( params . shape ( ) ) , new Add ( ) , new Add ( ) ) ; \n newParams . divi ( rdd . partitions ( ) . size ( ) ) ; \n network . setParameters ( newParams ) ;", "msg_token": "try new aggregation function"} {"diff": " public class MessageResource extends RestResource { \n try { \n return MessageTokens . create ( messages . analyze ( string , index ) ) ; \n } catch ( IndexNotFoundException e ) { \n - final String message = STRING0 + index + STRING1 ; \n + final String message = STRING0 + index + STRING2 ; \n LOG . error ( message , e ) ; \n throw new NotFoundException ( message ) ; \n }", "msg_token": "Add missing whitespace to error message in MessageResource analyze"} {"diff": " public class CompactPersistentActionCache implements ActionCache { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private static String validateIntegrity ( int indexerSize , byte [ ] validationRecord ) { \n if ( indexerSize == NUMBER0 ) { \n public class CompactPersistentActionCache implements ActionCache { \n } catch ( BufferUnderflowException e ) { \n return e . getMessage ( ) ; \n } \n - \n } \n \n public static Path cacheFile ( Path cacheRoot ) {", "msg_token": "Fix doc for CompactPersistentActionCache validateIntegrity"} {"diff": " public class HttpSpiContextHandler extends ContextHandler \n ex . printStackTrace ( writer ) ; \n writer . println ( STRING0 ) ; \n \n - writer . println ( STRING1 ) ; \n + writer . println ( STRING2 ) ; \n \n writer . close ( ) ; \n }", "msg_token": "fixing url to jetty"} {"diff": " public class AudioTrack \n static private native final int native_get_min_buff_size ( \n int sampleRateInHz , int channelConfig , int audioFormat ) ; \n \n - private native final int native_get_session_id ( ) ; \n - \n private native final int native_attachAuxEffect ( int effectId ) ; \n private native final void native_setAuxEffectSendLevel ( float level ) ;", "msg_token": "Remove dead method native_get_session_id"} {"diff": " public class Json { \n COMMENT \n public < T > T readValue ( String name , Class < T > type , Class elementType , T defaultValue , JsonValue jsonMap ) { \n JsonValue jsonValue = jsonMap . get ( name ) ; \n - if ( jsonValue == null ) return defaultValue ; \n - return ( T ) readValue ( type , elementType , jsonValue ) ; \n + return ( T ) readValue ( type , elementType , defaultValue , jsonValue ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n public < T > T readValue ( Class < T > type , Class elementType , T defaultValue , JsonValue jsonData ) { \n + if ( jsonData == null ) return defaultValue ; \n return ( T ) readValue ( type , elementType , jsonData ) ; \n }", "msg_token": "Json readValue ignores default value"} {"diff": " public class LdapDirectorySettingsImpl \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setGlobalPhonePrefix ( String prefix ) \n { \n public class ConfigurationPanel \n extends TransparentPanel \n { \n COMMENT \n + COMMENT \n + COMMENT \n + private final static long serialVersionUID = NUMBER0 L ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public ConfigurationPanel ( ) \n public class ConfigurationPanel \n = new TransparentPanel ( new GridBagLayout ( ) ) ; \n add ( contentPanel ) ; \n \n - ResourceManagementService resources = NeomediaActivator . getResources ( ) ; \n + ResourceManagementService resources = NeomediaActivator . getResources ( ) ; \n GridBagConstraints gridBagConstraints = new GridBagConstraints ( ) ; \n \n JLabel defaultProfileLabel \n public class ConfigurationPanel \n public final String name ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final String value ;", "msg_token": "Fixes some javadoc warnings"} {"diff": " public class PluginCollection { \n System . loadLibrary ( STRING0 ) ; \n } \n \n - private static PluginCollection ourInstance ; \n + private static volatile PluginCollection ourInstance ; \n \n private final List < BuiltinFormatPlugin > myBuiltinPlugins = \n new LinkedList < BuiltinFormatPlugin > ( ) ; \n public class PluginCollection { \n \n public static PluginCollection Instance ( ) { \n if ( ourInstance == null ) { \n + createInstance ( ) ; \n + } \n + return ourInstance ; \n + } \n + \n + private static synchronized void createInstance ( ) { \n + if ( ourInstance == null ) { \n ourInstance = new PluginCollection ( ) ; \n \n - SINGLE \n + SINGLE \n + SINGLE \n for ( NativeFormatPlugin p : ourInstance . nativePlugins ( ) ) { \n ourInstance . myBuiltinPlugins . add ( p ) ; \n System . err . println ( STRING1 + p ) ; \n } \n } \n - return ourInstance ; \n } \n \n public static void deleteInstance ( ) {", "msg_token": "avoid multiple plugin instances"} {"diff": " public abstract class MixinDimensionManager { \n SINGLE \n } \n \n - System . out . println ( STRING0 + provider + STRING1 + worldType ) ; \n SINGLE \n DimensionRegistryModule . getInstance ( ) . registerAdditionalCatalog ( new SpongeDimensionType ( worldType , keepLoaded , provider , id ) ) ; \n providers . put ( id , provider ) ;", "msg_token": "Remove debug line from DimensionManager"} {"diff": " public class MigratePartitions { \n try { \n VoldemortConfig voldemortConfig = createTempVoldemortConfig ( ) ; \n Cluster currentCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( currentClusterFile ) ) ) ; \n - Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ; \n adminClient = RebalanceUtils . createTempAdminClient ( voldemortConfig , \n currentCluster , \n - targetCluster . getNumberOfNodes ( ) , \n + NUMBER0 , \n NUMBER0 ) ; \n - \n + Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ; \n List < StoreDefinition > currentStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( currentStoresFile ) ) ) ; \n List < StoreDefinition > targetStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( targetStoresFile ) ) ) ;", "msg_token": "Revert Increase the number of threads in migrate partitions tool"} {"diff": " abstract class ActivityTransitionCoordinator extends ResultReceiver { \n final View decor = getDecor ( ) ; \n if ( decor != null ) { \n final ViewRootImpl viewRoot = decor . getViewRootImpl ( ) ; \n - viewRoot . setPausedForTransition ( false ) ; \n + if ( viewRoot != null ) { \n + viewRoot . setPausedForTransition ( false ) ; \n + } \n } \n onTransitionsComplete ( ) ; \n }", "msg_token": "Fix crash in forceViewsToAppear"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ResourcePoolTest { \n mThrown . expect ( RuntimeException . class ) ; \n final int POOL_SIZE = NUMBER0 ; \n @ suppresswarnings ( STRING0 ) \n - LinkedBlockingQueue < Integer > queue = PowerMockito . mock ( LinkedBlockingQueue . class ) ; \n + LinkedBlockingQueue < Integer > queue = Mockito . mock ( LinkedBlockingQueue . class ) ; \n TestResourcePool testPool = new TestResourcePool ( POOL_SIZE , queue ) ; \n Mockito . when ( queue . isEmpty ( ) ) . thenReturn ( true ) ; \n Mockito . when ( queue . take ( ) ) . thenThrow ( new InterruptedException ( ) ) ;", "msg_token": "SMALLFIX use Mockito instead of PowerMockito when possible"} {"diff": " public class TestHttpServer { \n @ afterclass \n public static void tearDown ( ) throws Exception { \n stdIn . write ( STRING0 . getBytes ( ) ) ; \n - serverStartThread . join ( NUMBER0 ) ; \n + serverStartThread . join ( NUMBER1 ) ; \n Assert . assertFalse ( serverStartThread . isAlive ( ) ) ; \n }", "msg_token": "wait a little longer durring testing"} {"diff": " public class TextOutputter { \n SINGLE \n SINGLE \n if ( sentence . get ( SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class ) != null ) { \n - pipeline . getDependencyTreePrinter ( ) . printTree ( tree , os ) ; \n + os . print ( sentence . get ( SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class ) . toList ( ) ) ; \n + os . print ( STRING0 ) ; \n } \n }", "msg_token": "Use the SemanticGraph directly when outputting text dependencies"} {"diff": " abstract class ModelNodeInternal implements MutableModelNode { \n this . ensureUsable ( ) ; \n ModelView < ? > modelView = getAdapter ( ) . asImmutable ( ModelType . untyped ( ) , this , null ) ; \n if ( modelView != null ) { \n - ModelType < ? > type = modelView . getType ( ) ; \n - if ( type != null ) { \n - return Optional . of ( type . toString ( ) ) ; \n + try { \n + ModelType < ? > type = modelView . getType ( ) ; \n + if ( type != null ) { \n + return Optional . of ( type . toString ( ) ) ; \n + } \n + } finally { \n + modelView . close ( ) ; \n } \n - modelView . close ( ) ; \n } \n return Optional . absent ( ) ; \n }", "msg_token": "Always close the model view in getTypeDescription"} {"diff": " public class AssetExtractor { \n \n if ( subAssetName == null ) { \n continue ; \n + } else { \n + SINGLE \n + subAssetName = subAssetName . replaceAll ( STRING0 , STRING1 ) ; \n } \n \n subAsset . setDataBuffer ( bbAsset ) ;", "msg_token": "Fixed cut off file names if the asset name contains characters invalid for the current file system"} {"diff": " public class CallPeerRecord \n protected String peerAddress = null ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + protected String displayName = null ; \n + \n + COMMENT \n COMMENT \n COMMENT \n protected Date startTime = null ; \n public class CallPeerRecord \n Date endTime ) \n { \n this . peerAddress = peerAddress ; \n + this . displayName = displayName ; \n this . startTime = startTime ; \n this . endTime = endTime ; \n } \n public class CallPeerRecord \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getDisplayName ( ) \n + { \n + return displayName ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Stores call peer display names in history"} {"diff": " public class ApplyDeferredLightingNode extends AbstractNode { \n addDesiredStateChange ( new SetInputTexture ( \n textureSlot , READ_ONLY_GBUFFER . getFbo ( ) . lightBufferTextureId , DEFERRED_LIGHTING_MATERIAL , STRING0 ) ) ; \n } \n + \n COMMENT \n COMMENT \n COMMENT \n public class SetInputTexture implements StateChange { \n && this . materialURN . equals ( ( ( SetInputTexture ) other ) . materialURN ) \n && this . materialParameter . equals ( ( ( SetInputTexture ) other ) . materialParameter ) ; \n } \n - \n - \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed newlines issues reported by Cervator"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class KMeans extends ClusteringModelBuilder < KMeansModel , KMeansModel . KMean \n model . _output . _scoring_history = createScoringHistoryTable ( model . _output ) ; \n model . _output . _training_metrics = makeTrainingMetrics ( model ) ; \n if ( _valid != null ) { \n - model . score ( _parms . valid ( ) ) ; \n + Frame pred = model . score ( _parms . valid ( ) ) ; \n model . _output . _validation_metrics = DKV . getGet ( model . _output . _model_metrics [ model . _output . _model_metrics . length - NUMBER0 ] ) ; \n + pred . delete ( ) ; \n } \n model . update ( _key ) ; SINGLE \n update ( NUMBER0 ) ; SINGLE", "msg_token": "Fix memory leak in validation scoring in K Means"} {"diff": " public class WebView extends AbsoluteLayout \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 public void loadDataWithBaseURL ( String baseUrl , String data , \n String mimeType , String encoding , String historyUrl ) {", "msg_token": "Clarify the documentation for WebView loadDataWithBaseURL when the base URL uses the data scheme"} {"diff": " public class AssetDatabaseOpenHelper { \n COMMENT \n public synchronized SQLiteDatabase getWritableDatabase ( ) { \n File dbFile = context . getDatabasePath ( databaseName ) ; \n - if ( ! dbFile . exists ( ) ) { \n + if ( dbFile != null && ! dbFile . exists ( ) ) { \n try { \n copyDatabase ( dbFile ) ; \n } catch ( IOException e ) {", "msg_token": "add file not null"} {"diff": " class ControlFlowAnalyzer extends JavaElementVisitor { \n \n private void handleContract ( PsiMethodCallExpression expression , MethodContract contract ) { \n PsiExpression [ ] params = expression . getArgumentList ( ) . getExpressions ( ) ; \n - assert params . length == contract . arguments . length ; \n + if ( params . length != contract . arguments . length ) { \n + return ; \n + } \n \n final int exitPoint = getEndOffset ( expression ) ;", "msg_token": "tolerate incomplete method calls"} {"diff": " public class SbeExample \n \n SINGLE \n final int templateId = MESSAGE_HEADER . templateId ( ) ; \n - \n - final int version = MESSAGE_HEADER . version ( ) ; \n - final int blockLength = MESSAGE_HEADER . blockLength ( ) ; \n + final int actingVersion = MESSAGE_HEADER . version ( ) ; \n + final int actingBlockLength = MESSAGE_HEADER . blockLength ( ) ; \n \n bufferOffset += MESSAGE_HEADER . size ( ) ; \n - decode ( CAR , directBuffer , bufferOffset , blockLength , version ) ; \n + decode ( CAR , directBuffer , bufferOffset , actingBlockLength , actingVersion ) ; \n } \n \n private static void encode ( final Car car , final DirectBuffer directBuffer , final int bufferOffset )", "msg_token": "Renamed variables to better reflect usage on the wiki"} {"diff": " public class PartialAggregationPushDown \n SINGLE \n private AggregationWithLayout generateNewPartial ( AggregationNode node , PlanNode source , Map < Symbol , Symbol > exchangeMap ) \n { \n + checkState ( ! node . getHashSymbol ( ) . isPresent ( ) , STRING0 ) ; \n + \n SINGLE \n Map < Symbol , Symbol > layoutMap = new HashMap < > ( ) ; \n \n public abstract class AbstractTestQueries \n STRING1 + \n STRING2 \n ) ; \n + \n + assertQuery ( \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 , \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING9 + \n + STRING10 + \n + STRING11 + \n + STRING10 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING2 \n + ) ; \n } \n \n @ test", "msg_token": "Add additional check and test for PartialAggregationPushDown"} {"diff": " class ListenerAnnotations { \n return Stream . concat ( annotationClasses ( ) , jpaAnnotationClasses ( ) ) ; \n } \n \n - static Stream < Class < ? extends Annotation > > jpaAnnotationClasses ( ) { \n + private static Stream < Class < ? extends Annotation > > jpaAnnotationClasses ( ) { \n return Stream . of ( \n javax . persistence . PostLoad . class , \n javax . persistence . PostPersist . class , \n class ListenerAnnotations { \n javax . persistence . PreUpdate . class ) ; \n } \n \n - static Stream < Class < ? extends Annotation > > annotationClasses ( ) { \n + private static Stream < Class < ? extends Annotation > > annotationClasses ( ) { \n return Stream . of ( \n PostLoad . class , \n PostInsert . class ,", "msg_token": "Reduce visibility fix warnings"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public final class WebViewFactory { \n - private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ; \n + public static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_OFF = STRING0 ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_ON = STRING1 ; \n \n SINGLE \n SINGLE \n - private static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ? \n + public static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ? \n EXPERIMENTAL_PROPERTY_DEFAULT_ON : EXPERIMENTAL_PROPERTY_DEFAULT_OFF ; \n \n private static final String FORCE_PROVIDER_PROPERTY = STRING2 ;", "msg_token": "Build fix for WebViewFactory"} {"diff": " public class Loader \n { \n loaded . load ( getClass ( ) . getClassLoader ( ) . getResourceAsStream ( STRING0 ) ) ; \n } \n - catch ( IOException e ) \n + catch ( Exception e ) \n { \n SINGLE \n }", "msg_token": "Fix NPE when branding isn t present"} {"diff": " public class HighlightingSettingsPerFile implements JDOMExternalizable , ProjectC \n final PsiFile containingFile = root . getContainingFile ( ) ; \n final VirtualFile virtualFile = containingFile . getVirtualFile ( ) ; \n FileHighlighingSetting [ ] fileHighlighingSettings = myHighlightSettings . get ( virtualFile ) ; \n - if ( fileHighlighingSettings == null ) { \n + final int index = PsiUtil . getRootIndex ( root ) ; \n + \n + if ( fileHighlighingSettings == null || fileHighlighingSettings . length <= index ) { \n fileHighlighingSettings = getDefaults ( containingFile . getViewProvider ( ) . getBaseLanguage ( ) ) ; \n } \n - return fileHighlighingSettings [ PsiUtil . getRootIndex ( root ) ] ; \n + return fileHighlighingSettings [ index ] ; \n } \n \n public FileHighlighingSetting [ ] getDefaults ( Language lang ) {", "msg_token": "fixed crash due to reference to nonexisting root highlight level"} {"diff": " final class SubsystemTestDelegate { \n try { \n desc . writeString ( pw , false ) ; \n SINGLE \n - System . out . println ( STRING0 + dmrFile . getAbsolutePath ( ) ) ; \n + System . out . println ( STRING1 + dmrFile . getAbsolutePath ( ) ) ; \n } finally { \n IoUtils . safeClose ( pw ) ; \n }", "msg_token": "Fix minor typo"} {"diff": " public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer \n } \n \n public FlatDirectoryArtifactRepository flatDir ( Map < String , ? > args ) { \n - return flatDir ( new ConfigureByMapAction < FlatDirectoryArtifactRepository > ( args ) ) ; \n + Map < String , Object > modifiedArgs = new HashMap < String , Object > ( args ) ; \n + if ( modifiedArgs . containsKey ( STRING0 ) ) { \n + modifiedArgs . put ( STRING0 , flattenToList ( modifiedArgs . get ( STRING0 ) ) ) ; \n + } \n + return flatDir ( new ConfigureByMapAction < FlatDirectoryArtifactRepository > ( modifiedArgs ) ) ; \n } \n \n public MavenArtifactRepository mavenCentral ( ) { \n public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer \n ConfigureUtil . configureByMap ( modifiedArgs , repository ) ; \n DependencyResolver resolver = repositoryFactory . toResolver ( repository ) ; \n ConfigureUtil . configure ( configClosure , resolver ) ; \n - addRepository ( new FixedResolverArtifactRepository ( resolver ) , resolver . getName ( ) ) ; \n + addRepository ( new FixedResolverArtifactRepository ( resolver ) , STRING1 ) ; \n return resolver ; \n }", "msg_token": "Reinstate special handling of dirs property when configuring flat dir repo"} {"diff": " public class ExpandedActivity extends Activity { \n \n if ( Constant . EXPANDED_ACTIVITY_DEBUG ) { \n rootView . setBackgroundColor ( NUMBER0 ) ; \n + } else { \n + rootView . setWillNotDraw ( true ) ; \n } \n \n initHotwordService ( ) ;", "msg_token": "Turn off EXPANDED_ACTIVITY_DEBUG"} {"diff": " public class CommandLineRunnerTest extends TestCase { \n args . add ( STRING0 ) ; \n args . add ( STRING1 ) ; \n test ( \n - STRING2 + \n - STRING3 + \n - STRING4 + \n - STRING2 + \n - STRING5 + \n - STRING6 + \n - STRING7 + \n - STRING8 , \n - STRING9 + \n - STRING10 + \n - STRING11 + \n - STRING12 + \n - STRING13 + \n - STRING14 ) ; \n + STRING2 \n + + STRING3 \n + + STRING4 \n + + STRING2 \n + + STRING5 \n + + STRING6 \n + + STRING7 \n + + STRING8 , \n + STRING9 \n + + STRING10 \n + + STRING11 \n + + STRING12 \n + + STRING13 \n + + STRING14 ) ; \n } \n \n public void testTypeCheckingOnWithVerbose ( ) {", "msg_token": "Fix linter warnings with new unit test"} {"diff": " public class Polling { \n } \n Thread . sleep ( NUMBER0 ) ; \n } \n - throw new TimeoutException ( ) ; \n + \n + final String msg = String . format ( \n + STRING0 , \n + callable . getClass ( ) . getName ( ) , \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + Thread . currentThread ( ) . getStackTrace ( ) [ NUMBER1 ] , \n + timeUnit . toMillis ( timeout ) \n + ) ; \n + throw new TimeoutException ( msg ) ; \n } \n \n public static < T > T awaitUnchecked ( final long timeout , final TimeUnit timeUnit ,", "msg_token": "make Polling await exception messages friendlier"} {"diff": " public class DriverPublication implements AutoCloseable \n COMMENT \n public int cleanLogBuffer ( ) \n { \n + int workCount = NUMBER0 ; \n + \n for ( final LogBuffer logBuffer : logScanners ) \n { \n if ( logBuffer . status ( ) == NEEDS_CLEANING && logBuffer . compareAndSetStatus ( NEEDS_CLEANING , IN_CLEANING ) ) \n { \n logBuffer . clean ( ) ; \n - \n - return NUMBER1 ; \n + workCount = NUMBER1 ; \n } \n } \n \n - return NUMBER0 ; \n + return workCount ; \n } \n \n public long timeOfFlush ( )", "msg_token": "Java Remove return from inside loop on buffer cleaning"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n public class TextValueEncoderTest { \n @ test \n public void testAddToVector ( ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n public class WordLikeValueEncoderTest { \n @ test \n public void testAddToVector ( ) {", "msg_token": "Forced locale to EN US"} {"diff": " class DisplayContent { \n for ( int taskNdx = tasks . size ( ) - NUMBER0 ; taskNdx >= NUMBER1 ; -- taskNdx ) { \n final Task task = tasks . get ( taskNdx ) ; \n task . getBounds ( mTmpRect ) ; \n - if ( task . inFreeformWorkspace ( ) && mTmpRect . contains ( x , y ) ) { \n + if ( mTmpRect . contains ( x , y ) ) { \n return task . mTaskId ; \n } \n }", "msg_token": "Allow non freeform tasks to gain focus when docked stack is up"} {"diff": " public abstract class Connection { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n CDMA_DROP , \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n public interface CallFailCause { \n + SINGLE \n + static final int UNOBTAINABLE_NUMBER = NUMBER0 ; \n + \n static final int NORMAL_CLEARING = NUMBER1 ; \n SINGLE \n static final int USER_BUSY = NUMBER2 ; \n public class GsmConnection extends Connection { \n case CallFailCause . FDN_BLOCKED : \n return DisconnectCause . FDN_BLOCKED ; \n \n + case CallFailCause . UNOBTAINABLE_NUMBER : \n + return DisconnectCause . UNOBTAINABLE_NUMBER ; \n + \n case CallFailCause . ERROR_UNSPECIFIED : \n case CallFailCause . NORMAL_CLEARING : \n default :", "msg_token": "Notify user regarding invalid number during MO call"} {"diff": " public class TestMathFunctions \n assertFunction ( STRING0 , DOUBLE , null ) ; \n assertInvalidFunction ( STRING1 + Byte . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ; \n assertInvalidFunction ( STRING3 + Short . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ; \n + assertInvalidFunction ( STRING4 + Integer . MIN_VALUE + STRING2 , NUMERIC_VALUE_OUT_OF_RANGE ) ; \n assertInvalidFunction ( STRING5 , NUMERIC_VALUE_OUT_OF_RANGE ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class TestIntegerOperators \n { \n assertFunction ( STRING6 , INTEGER , - NUMBER0 ) ; \n assertFunction ( STRING7 , INTEGER , - NUMBER1 ) ; \n + assertInvalidFunction ( STRING8 + Integer . MIN_VALUE + STRING9 , INVALID_CAST_ARGUMENT ) ; \n } \n \n @ test", "msg_token": "Add more abs and negative unary tests for INTEGER"} {"diff": " public class ArtefactTypeAstTransformation extends AbstractArtefactTypeAstTransf \n injector . performInjectionOnAnnotatedClass ( sourceUnit , cNode ) ; \n } \n } catch ( RuntimeException e ) { \n - GrailsConsole . getInstance ( ) . error ( STRING0 + e . getMessage ( ) , e ) ; \n + try { \n + GrailsConsole . getInstance ( ) . error ( STRING0 + e . getMessage ( ) , e ) ; \n + } catch ( Throwable t ) { \n + SINGLE \n + } \n throw e ; \n } \n }", "msg_token": "Fix throwing AST exceptions when GrailsConsole isn t available"} {"diff": " public class StompRelayPubSubMessageHandler < M extends Message > extends AbstractP \n \n public void forward ( M message , StompHeaders headers ) { \n \n - synchronized ( this . monitor ) { \n - if ( ! this . isConnected ) { \n - if ( logger . isTraceEnabled ( ) ) { \n - logger . trace ( STRING0 + message + STRING1 + this . messageQueue . size ( ) ) ; \n + if ( ! this . isConnected ) { \n + synchronized ( this . monitor ) { \n + if ( ! this . isConnected ) { \n + this . messageQueue . add ( message ) ; \n + if ( logger . isTraceEnabled ( ) ) { \n + logger . trace ( STRING2 + message + STRING1 + this . messageQueue . size ( ) ) ; \n + } \n + return ; \n } \n - this . messageQueue . add ( message ) ; \n - return ; \n } \n }", "msg_token": "Improve synchronization checks in STOMP relay session"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class DashModule extends BlazeModule { \n \n private void sendMessage ( final String suffix , final HttpEntity message ) \n throws SenderException { \n - HttpClient httpClient = new DefaultHttpClient ( ) ; \n + HttpParams httpParams = new BasicHttpParams ( ) ; \n + HttpConnectionParams . setConnectionTimeout ( httpParams , NUMBER0 ) ; \n + HttpConnectionParams . setSoTimeout ( httpParams , NUMBER0 ) ; \n + HttpClient httpClient = new DefaultHttpClient ( httpParams ) ; \n + \n HttpPost httppost = new HttpPost ( url + STRING0 + suffix + STRING0 + buildId ) ; \n if ( message != null ) { \n httppost . setHeader ( HttpHeaders . CONTENT_TYPE , STRING1 ) ;", "msg_token": "Add timeout to dash connections"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n class EditorDocumentBulkUpdateAdapter implements DocumentBulkUpdateListener { \n @ override \n public void updateStarted ( @ notnull Document doc ) { \n + if ( doc != getDocument ( ) ) return ; \n + \n bulkUpdateStarted ( ) ; \n } \n \n @ override \n public void updateFinished ( @ notnull Document doc ) { \n + if ( doc != getDocument ( ) ) return ; \n + \n bulkUpdateFinished ( ) ; \n } \n } \n public class SoftWrapModelImpl implements SoftWrapModelEx , PrioritizedDocumentLi \n \n @ override \n public void updateStarted ( @ notnull Document doc ) { \n + if ( doc != myEditor . getDocument ( ) ) return ; \n + \n myBulkUpdateInProgress = true ; \n } \n \n @ override \n public void updateFinished ( @ notnull Document doc ) { \n + if ( doc != myEditor . getDocument ( ) ) return ; \n + \n myBulkUpdateInProgress = false ; \n if ( ! isSoftWrappingEnabled ( ) ) { \n return ;", "msg_token": "editors should only handle bulk changes of their own documents otherwise main editor constantly scrolls during test run"} {"diff": " public class SpeeDRF extends Job . ValidatedJob { \n @ api ( help = STRING0 , importance = ParamImportance . EXPERT ) \n public int _exclusiveSplitLimit = NUMBER0 ; \n \n - private static Random _seedGenerator = Utils . getDeterRNG ( NUMBER1 ) ; \n + private static Random _seedGenerator = Utils . getDeterRNG ( new Random ( ) . nextLong ( ) ) ; SINGLE \n \n private boolean regression ;", "msg_token": "generate a new seed for SpeeDRF if one not specified"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SystemEnvironmentPropertySourceTests { \n \n @ test \n public void none ( ) { \n - SINGLE \n - \n assertThat ( ps . containsProperty ( STRING0 ) , equalTo ( false ) ) ; \n assertThat ( ps . getProperty ( STRING0 ) , equalTo ( null ) ) ; \n } \n public class SystemEnvironmentPropertySourceTests { \n } \n \n @ test \n + @ suppresswarnings ( STRING1 ) \n public void withSecurityConstraints ( ) throws Exception { \n envMap = new HashMap < String , Object > ( ) { \n @ override \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING2 ) \n public class ParameterizedBeanPropertyRowMapperTests extends AbstractRowMapperTests { \n \n @ rule", "msg_token": "Avoid Gradle compiler warnings"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractDeploymentUnitService implements Service < Deploymen \n final DeploymentUnitPhaseService < ? > phaseService = DeploymentUnitPhaseService . create ( firstPhase ) ; \n final ServiceBuilder < ? > phaseServiceBuilder = target . addService ( serviceName , phaseService ) ; \n phaseServiceBuilder . addDependency ( Services . JBOSS_DEPLOYMENT_CHAINS , DeployerChains . class , phaseService . getDeployerChainsInjector ( ) ) ; \n + phaseServiceBuilder . addDependency ( deploymentUnit . getServiceName ( ) , DeploymentUnit . class , phaseService \n + . getDeploymentUnitInjector ( ) ) ; \n phaseServiceBuilder . install ( ) ; \n }", "msg_token": "Add dependency on deployment unit to the structure phase service"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n \n @ override \n public void onBackPressed ( ) { \n + SINGLE \n + SINGLE \n + InputMethodManager imm = ( InputMethodManager ) getContext ( ) \n + . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n + if ( imm != null && imm . isFullscreenMode ( ) && \n + imm . hideSoftInputFromWindow ( getWindow ( ) . getDecorView ( ) . getWindowToken ( ) , NUMBER0 ) ) { \n + return ; \n + } \n + SINGLE \n + SINGLE \n if ( ! backToPreviousComponent ( ) ) { \n + SINGLE \n cancel ( ) ; \n } \n }", "msg_token": "On BACK in search hide just IME if IME is fullscreen"} {"diff": " public class ChatRoomsList \n { \n Object o = listModel . get ( i ) ; \n \n - if ( ( o instanceof MultiUserChatServerWrapper ) \n - || i == listModel . getSize ( ) - NUMBER0 ) \n + if ( o instanceof MultiUserChatServerWrapper ) \n { \n - listModel . removeRange ( serverIndex , i ) ; \n + listModel . removeRange ( serverIndex , i - NUMBER0 ) ; \n break ; \n } \n + \n + if ( i == listModel . getSize ( ) - NUMBER0 ) \n + listModel . removeRange ( serverIndex , i ) ; \n } \n \n ConfigurationService configService \n public class ChatRoomsList \n listModel . addElement ( chatRoomWrapper ) ; \n } \n \n - String chatRoomStatus = Constants . OFFLINE_STATUS ; \n - \n ConfigurationManager . updateChatRoom ( \n chatRoomWrapper . getParentProvider ( ) , \n chatRoomWrapper . getChatRoomID ( ) ,", "msg_token": "Correctly remove chat server from the chat rooms list"} {"diff": " public class HikariPool implements HikariPoolMXBean , IBagStateListener \n \n previous = now ; \n \n - logPoolState ( STRING0 ) ; \n if ( idleTimeout > NUMBER0 L ) { \n + logPoolState ( STRING0 ) ; \n final List < PoolBagEntry > bag = connectionBag . values ( STATE_NOT_IN_USE ) ; \n int removable = bag . size ( ) - config . getMinimumIdle ( ) ; \n for ( PoolBagEntry bagEntry : bag ) { \n public class HikariPool implements HikariPoolMXBean , IBagStateListener \n } \n } \n } \n + logPoolState ( STRING1 ) ; \n } \n - logPoolState ( STRING1 ) ; \n \n fillPool ( ) ; SINGLE \n }", "msg_token": "revise housekeeper log"} {"diff": " public class DoubleSumAggregatorFactory implements AggregatorFactory \n @ override \n public Object deserialize ( Object object ) \n { \n + SINGLE \n + if ( object instanceof String ) { \n + return Double . parseDouble ( ( String ) object ) ; \n + } \n return object ; \n } \n \n public class JavaScriptAggregatorFactory implements AggregatorFactory \n @ override \n public Object deserialize ( Object object ) \n { \n + SINGLE \n + if ( object instanceof String ) { \n + return Double . parseDouble ( ( String ) object ) ; \n + } \n return object ; \n } \n \n public class MaxAggregatorFactory implements AggregatorFactory \n @ override \n public Object deserialize ( Object object ) \n { \n + SINGLE \n if ( object instanceof String ) { \n return Double . parseDouble ( ( String ) object ) ; \n } \n public class MinAggregatorFactory implements AggregatorFactory \n @ override \n public Object deserialize ( Object object ) \n { \n + SINGLE \n if ( object instanceof String ) { \n return Double . parseDouble ( ( String ) object ) ; \n }", "msg_token": "handle NaN Infinity values"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BootstrapMainStarter { \n Class < ? > mainClass = contextClassLoader . loadClass ( STRING0 ) ; \n Method mainMethod = mainClass . getMethod ( STRING1 , String [ ] . class ) ; \n mainMethod . invoke ( null , new Object [ ] { args } ) ; \n + if ( contextClassLoader instanceof Closeable ) { \n + ( ( Closeable ) contextClassLoader ) . close ( ) ; \n + } \n } \n \n private File findLauncherJar ( File gradleHome ) {", "msg_token": "Close the bootstrap classloader after the build finishes"} {"diff": " public class RouteProvider { \n } \n } \n pt . desc = pt . name ; \n - \n } \n + gpx . points . add ( pt ) ; \n } \n return gpx ; \n }", "msg_token": "Fix bug with saving intermediate points of the route into GPX file"} {"diff": " import NAMESPACE ; \n final class AutoExpandReplicas { \n SINGLE \n private static final String ALL_NODES_VALUE = STRING0 ; \n - public static final Setting < AutoExpandReplicas > SETTING = new Setting < > ( IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , STRING1 , ( value ) - > { \n + public static final Setting < AutoExpandReplicas > SETTING = new Setting < > ( IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , STRING2 , ( value ) - > { \n final int min ; \n final int max ; \n if ( Booleans . parseBoolean ( value , true ) == false ) {", "msg_token": "use a valid default"} {"diff": " public class FileSystemSourceCache { \n return new Content ( null , MISSING , MISSING ) ; \n } \n } \n - \n - public void reset ( ) { \n - cache . clear ( ) ; \n - } \n }", "msg_token": "removed unused code"} {"diff": " public class TransitionDrawable extends LayerDrawable implements Drawable . Callba \n final long time = SystemClock . uptimeMillis ( ) ; \n SINGLE \n if ( time - mStartTimeMillis > mDuration ) { \n - if ( mAlpha == NUMBER0 ) { \n + if ( mTo == NUMBER0 ) { \n mFrom = NUMBER0 ; \n mTo = NUMBER1 ; \n mAlpha = NUMBER0 ;", "msg_token": "Fixed bug with reverseTransition"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TransportUpdateAction extends TransportInstanceSingleOperationActio \n @ override \n public void onFailure ( Throwable e ) { \n e = ExceptionsHelper . unwrapCause ( e ) ; \n - if ( e instanceof VersionConflictEngineException ) { \n + if ( e instanceof VersionConflictEngineException || e instanceof DocumentAlreadyExistsException ) { \n if ( retryCount < request . retryOnConflict ( ) ) { \n threadPool . executor ( executor ( ) ) . execute ( new Runnable ( ) { \n @ override", "msg_token": "Fixed document already exists error when concurrently sending update request with upsert using the same id"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SessionState { \n FileSystem fs = FileSystem . get ( new URI ( value ) , conf ) ; \n fs . copyToLocalFile ( new Path ( value ) , new Path ( destinationFile . getCanonicalPath ( ) ) ) ; \n value = destinationFile . getCanonicalPath ( ) ; \n + \n + SINGLE \n + FileUtil . chmod ( value , STRING0 , true ) ; \n if ( convertToUnix && DosToUnix . isWindowsScript ( destinationFile ) ) { \n try { \n DosToUnix . convertWindowsScriptToUnix ( destinationFile ) ;", "msg_token": "Hive custom SerDe cannot load DLL added by ADD FILE command Shuaishuai Nie via Ashutosh Chauhan"} {"diff": " public interface LivingEntity extends Entity { \n COMMENT \n COMMENT \n public boolean hasLineOfSight ( Entity other ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean getRemoveWhenFarAway ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setRemoveWhenFarAway ( boolean remove ) ; \n }", "msg_token": "Add API for controlling mob despawn away from players"} {"diff": " public class MacIntelliJComboBoxUI extends BasicComboBoxUI { \n rect . height = Math . min ( rect . height , COMBOBOX . getIconHeight ( ) - NUMBER0 ) ; \n rect . y += NUMBER1 ; \n rect . x += NUMBER0 ; \n + rect . width -= NUMBER0 ; \n return rect ; \n }", "msg_token": "fix text editor overlaps combo button in Yosemite LaF"} {"diff": " public class MessageList extends K9FragmentActivity implements MessageListFragme \n break ; \n } \n case MESSAGE_VIEW : { \n - mViewSwitcher . setAnimateFirstView ( true ) ; \n showMessageView ( ) ; \n break ; \n } \n public class MessageList extends K9FragmentActivity implements MessageListFragme \n private void showMessageView ( ) { \n mDisplayMode = DisplayMode . MESSAGE_VIEW ; \n \n + if ( ! mMessageListWasDisplayed ) { \n + mViewSwitcher . setAnimateFirstView ( false ) ; \n + } \n mViewSwitcher . showSecondView ( ) ; \n \n showMessageTitleView ( ) ;", "msg_token": "Don t show animation when directly opening message view"} {"diff": " public class MediaButtonReceiver extends BroadcastReceiver { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static KeyEvent handleIntent ( MediaSessionCompat mediaSessionCompat , Intent intent ) {", "msg_token": "Modify comments in MediaButtonReceiver"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class Document implements Map < String , Object > , Serializable {", "msg_token": "Added since javadoc annotation"} {"diff": " public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters , \n public String _names [ ] ; \n \n COMMENT \n - Key _cross_validation_models [ ] ; \n + public Key _cross_validation_models [ ] ; \n COMMENT \n - Key _cross_validation_predictions [ ] ; \n + public Key _cross_validation_predictions [ ] ; \n \n public Output ( ) { this ( false , false , false ) ; } \n public Output ( boolean hasWeights , boolean hasOffset , boolean hasFold ) {", "msg_token": "Make cross validation models and predictions public"} {"diff": " public final class SetProcessor extends AbstractProcessor { \n String field = ConfigurationUtils . readStringProperty ( TYPE , processorTag , config , STRING0 ) ; \n Object value = ConfigurationUtils . readObject ( TYPE , processorTag , config , STRING1 ) ; \n boolean overrideEnabled = ConfigurationUtils . readBooleanProperty ( TYPE , processorTag , config , STRING2 , true ) ; \n - return new SetProcessor ( processorTag , templateService . compile ( field ) , ValueSource . wrap ( value , templateService ) , overrideEnabled ) ; \n + return new SetProcessor ( \n + processorTag , \n + templateService . compile ( field ) , \n + ValueSource . wrap ( value , templateService ) , \n + overrideEnabled ) ; \n } \n } \n }", "msg_token": "Fix line length violation in SetProcessor"} {"diff": " public class DataStructures { \n private static Integer [ ] unsorted = null ; \n private static String string = null ; \n private static boolean debug = false ; \n - private static boolean debugTime = true ; \n + private static boolean debugTime = false ; \n \n \n public static void main ( String [ ] args ) {", "msg_token": "Removed testing code"} {"diff": " public class CountryNamesAdapter extends RecyclerView . Adapter < CountryViewHolder > \n lp . headerEndMarginIsAuto = ! mMarginsFixed ; \n lp . headerStartMarginIsAuto = ! mMarginsFixed ; \n } \n - lp . sectionManager = NUMBER0 ; SINGLE \n + lp . sectionManager = item . sectionManager ; \n lp . setFirstPosition ( item . sectionFirstPosition ) ; \n itemView . setLayoutParams ( lp ) ; \n }", "msg_token": "Fix adapter after tests"} {"diff": " public class Source implements InsertSourceHandler , \n public void onError ( ServerError error ) \n { \n dismissProgress . execute ( ) ; \n + pMruList_ . get ( ) . remove ( file . getPath ( ) ) ; \n Debug . logError ( error ) ; \n if ( resultCallback != null ) \n resultCallback . onFailure ( error ) ;", "msg_token": "remove file from mru list if it is deleted"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class ModelCache implements Disposable , RenderableProvider { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void add ( Renderable renderable ) { \n public interface Shader extends Disposable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n void render ( final Renderable renderable ) ; \n \n COMMENT", "msg_token": "Javadoc warnings probably wrong but if you don t like it don t commit warnings"} {"diff": " public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n layoutPostHeader = ( ViewGroup ) itemView . findViewById ( R . id . layout_post_header ) ; \n \n SINGLE \n - if ( ! hasSiteHeader ( ) ) { \n - SINGLE \n - SINGLE \n - layoutPostHeader . setPadding ( \n - layoutPostHeader . getPaddingLeft ( ) , \n - layoutPostHeader . getPaddingTop ( ) , \n - layoutPostHeader . getPaddingRight ( ) - imgMore . getPaddingRight ( ) , \n - layoutPostHeader . getPaddingBottom ( ) ) ; \n - } else { \n - SINGLE \n + if ( hasSiteHeader ( ) ) { \n layoutPostHeader . setVisibility ( View . GONE ) ; \n SINGLE \n int extraPadding = itemView . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_medium ) ;", "msg_token": "No longer adjusting post header for more icon"} {"diff": " public class MtpManagerTest extends InstrumentationTestCase { \n @ override \n public void setUp ( ) throws Exception { \n mUsbManager = getContext ( ) . getSystemService ( UsbManager . class ) ; \n - mUsbDevice = findDevice ( ) ; \n - mManager = new MtpManager ( getContext ( ) ) ; \n - mManager . openDevice ( mUsbDevice . getDeviceId ( ) ) ; \n - waitForStorages ( mManager , mUsbDevice . getDeviceId ( ) ) ; \n + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + mUsbDevice = findDevice ( ) ; \n + mManager = new MtpManager ( getContext ( ) ) ; \n + mManager . openDevice ( mUsbDevice . getDeviceId ( ) ) ; \n + try { \n + waitForStorages ( mManager , mUsbDevice . getDeviceId ( ) ) ; \n + return ; \n + } catch ( IOException exp ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + continue ; \n + } \n + } \n } \n \n @ override", "msg_token": "Handle Android M as a MTP device in MtpManagerTest"} {"diff": " public class GitPull extends GitRepositoryAction { \n } \n \n if ( GitHttpAdapter . shouldUseJGit ( url ) ) { \n - boolean fetchSuccessful = new GitFetcher ( project , indicator ) . fetchRootsAndNotify ( gitRoots , STRING0 , false ) ; \n + boolean fetchSuccessful = new GitFetcher ( project , indicator ) . fetchRootsAndNotify ( gitRoots , STRING1 , false ) ; \n if ( ! fetchSuccessful ) { \n return ; \n }", "msg_token": "Fix notification title"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PersistentMethodTests extends AbstractDependencyInjectionSpringCont \n ProxyMetaClass pmc = PropertyAccessProxyMetaClass . getInstance ( groovyClass ) ; \n GrailsControllerHelper helper = new SimpleGrailsControllerHelper ( this . grailsApplication , this . applicationContext ) ; \n SINGLE \n - pmc . setInterceptor ( new ControllerDynamicMethodsInterceptor ( groovyClass , helper , request , response ) ) ; \n - \n GroovyObject go = ( GroovyObject ) groovyClass . newInstance ( ) ; \n + pmc . setInterceptor ( new ControllerDynamicMethodsInterceptor ( go , helper , request , response ) ) ; \n + \n + \n \n go . setMetaClass ( pmc ) ;", "msg_token": "updated constructor call"} {"diff": " public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n holder . imgMore . setOnClickListener ( null ) ; \n } \n \n - SINGLE \n - boolean showFollowButton = ! isDiscover ( ) ; \n + SINGLE \n + boolean showFollowButton = ! hasSiteHeader ( ) ; \n if ( showFollowButton ) { \n holder . followButton . setIsFollowed ( post . isFollowedByCurrentUser ) ; \n holder . followButton . setOnClickListener ( new View . OnClickListener ( ) {", "msg_token": "Don t show follow button when there s a site header"} {"diff": " public class XmlNode extends RubyObject { \n } \n \n public void relink_namespace ( ThreadContext context ) { \n - ( ( XmlNodeSet ) this . children ( context ) ) . relink_namespace ( context ) ; \n + SINGLE \n } \n \n public void saveContent ( ThreadContext context , SaveContext ctx ) { \n public class XmlNode extends RubyObject { \n coalesceTextNodes ( context , other ) ; \n } \n \n - SINGLE \n + relink_namespace ( context ) ; \n SINGLE \n \n return this ;", "msg_token": "Fix namespace when adding nodes to another node doc"} {"diff": " public class FirstComponentInsertLocation extends GridDropLocation { \n \n private int initialWidth ( ComponentDragObject dragObject , int defaultSize ) { \n Dimension initialSize = dragObject . getInitialSize ( getContainer ( ) . getDelegee ( ) ) ; \n - if ( initialSize . width > NUMBER0 ) { \n + if ( initialSize . width > NUMBER0 && initialSize . width < defaultSize ) { \n return initialSize . width ; \n } \n return defaultSize ; \n public class FirstComponentInsertLocation extends GridDropLocation { \n \n private int initialHeight ( ComponentDragObject dragObject , int defaultSize ) { \n Dimension initialSize = dragObject . getInitialSize ( getContainer ( ) . getDelegee ( ) ) ; \n - if ( initialSize . height > NUMBER0 ) { \n + if ( initialSize . height > NUMBER0 && initialSize . height < defaultSize ) { \n return initialSize . height ; \n } \n return defaultSize ;", "msg_token": "better sizing of feedback rect"} {"diff": " public abstract class AbstractSessionIdManager extends AbstractLifeCycle impleme \n if ( LOG . isDebugEnabled ( ) ) \n LOG . debug ( STRING0 , id ) ; \n \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n if ( removeId ( id ) ) \n { \n SINGLE \n public class JDBCSessionDataStore extends AbstractSessionDataStore \n connection . setAutoCommit ( true ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n long upperBound = now ; \n if ( LOG . isDebugEnabled ( ) ) \n - LOG . debug ( STRING1 , _context . getWorkerName ( ) , _context . getCanonicalContextPath ( ) , upperBound ) ; \n + LOG . debug ( STRING2 , _context . getWorkerName ( ) , _context . getCanonicalContextPath ( ) , upperBound ) ; \n \n try ( PreparedStatement statement = _sessionTableSchema . getMyExpiredSessionsStatement ( connection , _context . getCanonicalContextPath ( ) , _context . getVhost ( ) , upperBound ) ) \n {", "msg_token": "Add comments to session implemention code"} {"diff": " public class EditPostContentFragment extends Fragment implements TextWatcher , \n } \n \n createGallery ( ) ; \n - mUploadingMedia . clear ( ) ; \n - mMediaIdToPath . clear ( ) ; \n } \n } \n } \n public class EditPostContentFragment extends Fragment implements TextWatcher , \n \n mContentEditText . setText ( text ) ; \n mGalleryIds . clear ( ) ; \n - \n mGalleryIds = null ; \n mUploadingMedia = null ; \n mMediaIdToPath = null ;", "msg_token": "Fixing null pointer exception"} {"diff": " public class BasicOutputCollector implements IBasicOutputCollector { \n protected IOutputCollector getOutputter ( ) { \n return out ; \n } \n + \n + public void reportError ( Throwable t ) { \n + out . reportError ( t ) ; \n + } \n } \n import NAMESPACE ; \n public interface IBasicOutputCollector { \n List < Integer > emit ( String streamId , List < Object > tuple ) ; \n void emitDirect ( int taskId , String streamId , List < Object > tuple ) ; \n + void reportError ( Throwable t ) ; \n }", "msg_token": "add reportError function to BasicOutputCollector"} {"diff": " class DefaultServer implements ClusterableServer { \n \n private final class DefaultServerStateListener implements ChangeListener < ServerDescription > { \n @ override \n - public synchronized void stateChanged ( final ChangeEvent < ServerDescription > event ) { \n + public void stateChanged ( final ChangeEvent < ServerDescription > event ) { \n description = event . getNewValue ( ) ; \n for ( final ChangeListener < ServerDescription > listener : changeListeners ) { \n listener . stateChanged ( event ) ;", "msg_token": "Fixed deadlock between DefaultServer and MultiServerCluster by removing unnecessary synchronization in DefaultServer"} {"diff": " public class VersionedCatalog extends ValidatingConfig < StandaloneCatalogWithPric \n } \n } \n \n - COMMENT \n - public VersionedCatalog ( final VersionedCatalog inputCatalog , final InternalTenantContext tenantContext ) { \n - this . clock = inputCatalog . getClock ( ) ; \n - this . catalogName = inputCatalog . getCatalogName ( ) ; \n - this . recurringBillingMode = inputCatalog . getRecurringBillingMode ( ) ; \n - versions = new ArrayList < StandaloneCatalogWithPriceOverride > ( ) ; \n - for ( final StandaloneCatalogWithPriceOverride cur : inputCatalog . getVersions ( ) ) { \n - final StandaloneCatalogWithPriceOverride catalogWithTenantInfo = new StandaloneCatalogWithPriceOverride ( cur , tenantContext ) ; \n - versions . add ( catalogWithTenantInfo ) ; \n - } \n - } \n - COMMENT \n \n SINGLE \n SINGLE", "msg_token": "Remove old commented out code"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Javadoc spelling"} {"diff": " public class WallpaperManager { \n COMMENT \n COMMENT \n public Intent getCropAndSetWallpaperIntent ( Uri imageUri ) { \n + if ( imageUri == null ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + \n if ( ! ContentResolver . SCHEME_CONTENT . equals ( imageUri . getScheme ( ) ) ) { \n throw new IllegalArgumentException ( STRING1 \n + ContentResolver . SCHEME_CONTENT + STRING2 ) ;", "msg_token": "add NULL pointer check for getCropAndSetWallpaperIntent"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class BeanComponent extends DefaultComponent { \n \n public BeanComponent ( ) { \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public ProcessorEndpoint createEndpoint ( Object bean ) { \n + String uri = STRING0 + bean ; \n + return createEndpoint ( bean , uri ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public ProcessorEndpoint createEndpoint ( Object bean , String uri ) { \n + BeanProcessor processor = new BeanProcessor ( bean , getCamelContext ( ) ) ; \n + return createEndpoint ( uri , processor ) ; \n + } \n \n SINGLE \n SINGLE \n public class BeanComponent extends DefaultComponent { \n setProperties ( processor , parameters ) ; \n return endpoint ; \n } \n + \n + protected BeanEndpoint createEndpoint ( String uri , BeanProcessor processor ) { \n + return new BeanEndpoint ( uri , this , processor ) ; \n + } \n \n }", "msg_token": "Revert the change of BeanCompnent to make the servicemix camel build happy"} {"diff": " public class Wallet extends BaseTaggableObject implements Serializable , BlockCha \n RiskAnalysis analysis = riskAnalyzer . create ( this , tx , dependencies ) ; \n RiskAnalysis . Result result = analysis . analyze ( ) ; \n if ( result != RiskAnalysis . Result . OK ) { \n - log . warn ( STRING0 , tx . getHashAsString ( ) , analysis ) ; \n + log . warn ( STRING1 , analysis , tx ) ; \n return true ; \n } \n return false ;", "msg_token": "Log full tx when considered risky"} {"diff": " public abstract class AnnotationUtils { \n COMMENT \n COMMENT \n public static < A extends Annotation > A getAnnotation ( Method method , Class < A > annotationType ) { \n - return BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotation ( annotationType ) ; \n + Method resolvedMethod = BridgeMethodResolver . findBridgedMethod ( method ) ; \n + A ann = resolvedMethod . getAnnotation ( annotationType ) ; \n + if ( ann == null ) { \n + for ( Annotation metaAnn : resolvedMethod . getAnnotations ( ) ) { \n + ann = metaAnn . annotationType ( ) . getAnnotation ( annotationType ) ; \n + if ( ann != null ) { \n + break ; \n + } \n + } \n + } \n + return ann ; \n } \n \n COMMENT", "msg_token": "AnnotationUtils getAnnotation generally supports meta annotation lookup"} {"diff": " public class GraphInferencePolicy extends ProcessCandidateParameterTypeInference \n final Set < JavaResolveResult > results = map . keySet ( ) ; \n return results . toArray ( new JavaResolveResult [ results . size ( ) ] ) ; \n } \n - map = new WeakHashMap < JavaResolveResult , PsiSubstitutor > ( ) ; \n - ourResults . get ( ) . put ( contextCall , map ) ; \n \n final MethodCandidatesProcessor processor = new MethodCandidatesProcessor ( contextCall ) { \n @ override \n public class GraphInferencePolicy extends ProcessCandidateParameterTypeInference \n } ; \n PsiScopesUtil . setupAndRunProcessor ( processor , contextCall , false ) ; \n final JavaResolveResult [ ] results = processor . getResult ( ) ; \n + \n + map = new WeakHashMap < JavaResolveResult , PsiSubstitutor > ( ) ; \n + ourResults . get ( ) . put ( contextCall , map ) ; \n for ( JavaResolveResult result : results ) { \n map . put ( result , PsiSubstitutor . UNKNOWN ) ; \n }", "msg_token": "avoid empty map cache when processor throws exception"} {"diff": " public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public int getResultSetType ( ) { \n return resultSetType ; \n public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setResultSetType ( int resultSetType ) { \n this . resultSetType = resultSetType ; \n public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public int getResultSetConcurrency ( ) { \n return resultSetConcurrency ; \n public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setResultSetConcurrency ( int resultSetConcurrency ) { \n this . resultSetConcurrency = resultSetConcurrency ; \n public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public int getResultSetHoldability ( ) { \n return resultSetHoldability ; \n public class Sql { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setResultSetHoldability ( int resultSetHoldability ) { \n this . resultSetHoldability = resultSetHoldability ;", "msg_token": "add javadoc since for some methods"} {"diff": " import NAMESPACE ; \n COMMENT \n public interface ConfigurationAction { \n \n + public void include ( \n + PortletConfig portletConfig , RenderRequest renderRequest , \n + RenderResponse renderResponse ) \n + throws Exception ; \n + \n public void processAction ( \n PortletConfig portletConfig , ActionRequest actionRequest , \n ActionResponse actionResponse ) \n throws Exception ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public String render ( \n PortletConfig portletConfig , RenderRequest renderRequest , \n RenderResponse renderResponse )", "msg_token": "replace method which expects a JSP by another that can actually render the configuration using any technology"} {"diff": " public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh \n COMMENT \n COMMENT \n public final Set < String > getHttpSessionTokens ( String site ) { \n - return Collections . unmodifiableSet ( sessionTokens . get ( site ) ) ; \n + Set < String > internalSet = sessionTokens . get ( site ) ; \n + if ( internalSet == null ) \n + return null ; \n + return Collections . unmodifiableSet ( internalSet ) ; \n } \n \n COMMENT \n public class HttpSessionsSite { \n } \n } \n SINGLE \n - message . setHttpSession ( session ) ; \n + message . setHttpSession ( activeSession ) ; \n \n SINGLE \n message . getRequestHeader ( ) . setCookies ( requestCookies ) ; \n public class Spider { \n new Thread ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - threadPool . shutdownNow ( ) ; \n + if ( threadPool != null ) \n + threadPool . shutdownNow ( ) ; \n SINGLE \n notifyListenersSpiderComplete ( true ) ; \n controller . reset ( ) ;", "msg_token": "Fixed a small issue in ExtensionHttpSessions that did not allow proper detection of active session"} {"diff": " public class AnnotatedEndpoint extends Endpoint { \n \n \n private void addWholeHandler ( final UndertowSession session , final BoundMethod method ) { \n - session . addMessageHandler ( ( Class ) textMessage . getMessageType ( ) , new MessageHandler . Whole < Object > ( ) { \n + session . addMessageHandler ( ( Class ) method . getMessageType ( ) , new MessageHandler . Whole < Object > ( ) { \n @ override \n public void onMessage ( Object partialMessage ) {", "msg_token": "Fix copy paste error"} {"diff": " public interface TypeResolver { \n } \n \n @ override \n + @ suppressfbwarnings ( value = STRING0 , justification = STRING1 ) \n public TypeResolver . Resolved resolve ( ) { \n return new Resolved ( new Random ( ) . nextInt ( ) ) ; \n }", "msg_token": "Added hint for findbugs"} {"diff": " public class MainActivity extends ActionBarActivity implements ActionMode . Callba \n ultimateRecyclerView . setRefreshing ( false ) ; \n SINGLE \n linearLayoutManager . scrollToPosition ( NUMBER0 ) ; \n + SINGLE \n + SINGLE \n } \n } , NUMBER1 ) ; \n }", "msg_token": "update demo of fixing the empty view when the adapter is null"} {"diff": " public class ListPopupWindow { \n COMMENT \n COMMENT \n public void setModal ( boolean modal ) { \n - mModal = true ; \n + mModal = modal ; \n mPopup . setFocusable ( modal ) ; \n }", "msg_token": "Actually set the internal modal value in ListPopupWindow setModal"} {"diff": " public class SparseDatasetTest { \n assertEquals ( FLOAT0 , sm . get ( NUMBER0 , NUMBER1 ) , FLOAT1 ) ; \n assertEquals ( FLOAT2 , sm . get ( NUMBER0 , NUMBER2 ) , FLOAT1 ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - @ test \n - public void testSet ( ) { \n - System . out . println ( STRING0 ) ; \n - sm . set ( NUMBER0 , NUMBER0 , FLOAT3 ) ; \n - assertEquals ( FLOAT3 , sm . get ( NUMBER0 , NUMBER0 ) , FLOAT1 ) ; \n - sm . set ( NUMBER0 , NUMBER0 , FLOAT4 ) ; \n - \n - sm . set ( NUMBER1 , NUMBER1 , FLOAT5 ) ; \n - assertEquals ( FLOAT5 , sm . get ( NUMBER1 , NUMBER1 ) , FLOAT1 ) ; \n - sm . set ( NUMBER1 , NUMBER1 , FLOAT3 ) ; \n - } \n }", "msg_token": "remove SparseMatrix set tests as it is removed"} {"diff": " public class GsmDataConnection extends DataConnection { \n \n int authType = mApn . authType ; \n if ( authType == - NUMBER0 ) { \n - authType = ( mApn . user != null ) ? RILConstants . SETUP_DATA_AUTH_PAP_CHAP : \n - RILConstants . SETUP_DATA_AUTH_NONE ; \n + authType = TextUtils . isEmpty ( mApn . user ) ? RILConstants . SETUP_DATA_AUTH_NONE \n + : RILConstants . SETUP_DATA_AUTH_PAP_CHAP ; \n } \n \n String protocol ;", "msg_token": "Set AuthType to NONE if username of APN is not set"} {"diff": " public class CastDiagnosticsUtil { \n if ( typeChecker . isSubtypeOf ( supertype , subtype ) ) return false ; \n \n SINGLE \n - if ( TypeUtils . isNonReifiedTypeParemeter ( subtype ) ) return true ; \n + if ( TypeUtils . isNonReifiedTypeParameter ( subtype ) ) return true ; \n \n SINGLE \n SINGLE \n public class TypeUtils { \n return getTypeParameterDescriptorOrNull ( type ) != null ; \n } \n \n - public static boolean isNonReifiedTypeParemeter ( @ notnull KotlinType type ) { \n + public static boolean isReifiedTypeParameter ( @ notnull KotlinType type ) { \n + TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull ( type ) ; \n + return typeParameterDescriptor != null && typeParameterDescriptor . isReified ( ) ; \n + } \n + \n + public static boolean isNonReifiedTypeParameter ( @ notnull KotlinType type ) { \n TypeParameterDescriptor typeParameterDescriptor = getTypeParameterDescriptorOrNull ( type ) ; \n return typeParameterDescriptor != null && ! typeParameterDescriptor . isReified ( ) ; \n }", "msg_token": "minor fixed typo"} {"diff": " public final class RequestTemplate implements Serializable { \n for ( String key : firstQueries . keySet ( ) ) { \n Collection < String > values = firstQueries . get ( key ) ; \n if ( allValuesAreNull ( values ) ) { \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix typo in comment"} {"diff": " public class XaLogicalLog \n } \n else if ( entry instanceof LogEntry . Command || entry instanceof LogEntry . Prepare ) \n { \n - transactions . get ( entry . getIdentifier ( ) ) . add ( entry ) ; \n + List < LogEntry > list = transactions . get ( entry . getIdentifier ( ) ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( list != null ) \n + { \n + list . add ( entry ) ; \n + } \n } \n else if ( entry instanceof LogEntry . Done ) \n {", "msg_token": "Fixed an issues with extracting a transaction from a log where it now is possible to"} {"diff": " public abstract class ChangelistTable extends Composite \n layout_ . remove ( infoBar_ ) ; \n layout_ . setWidgetTopBottom ( scrollPanel_ , NUMBER0 , Unit . PX , NUMBER0 , Unit . PX ) ; \n layout_ . animate ( NUMBER1 ) ; \n + infoBar_ = null ; \n } \n }", "msg_token": "fix bug in info bar visibility management"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class ImageDecoder { \n + final class ImageDecoder { \n \n private static final String TAG = ImageDecoder . class . getSimpleName ( ) ;", "msg_token": "Reduce ImageDecoder class visibility"} {"diff": " public class RecyclableBufferedInputStream extends FilterInputStream { \n COMMENT \n protected int pos ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public RecyclableBufferedInputStream ( InputStream in ) { \n - this ( in , NUMBER0 ) ; \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 - COMMENT \n - public RecyclableBufferedInputStream ( InputStream in , int size ) { \n - this ( in , new byte [ size ] ) ; \n - } \n - \n public RecyclableBufferedInputStream ( InputStream in , byte [ ] buffer ) { \n super ( in ) ; \n if ( buffer == null || buffer . length == NUMBER1 ) {", "msg_token": "Remove misleading constructors from RecycleableBIS"} {"diff": " public final class GzipSource implements Source { \n SINGLE \n SINGLE \n checkEqual ( STRING0 , source . readIntLe ( ) , ( int ) crc . getValue ( ) ) ; \n - checkEqual ( STRING1 , source . readIntLe ( ) , inflater . getTotalOut ( ) ) ; \n + checkEqual ( STRING1 , source . readIntLe ( ) , ( int ) inflater . getBytesWritten ( ) ) ; \n } \n \n @ override public Timeout timeout ( ) {", "msg_token": "Fix GzipSource to handle large files on AOSP"} {"diff": " public class PolicyAllCategoryPanel extends AbstractParamPanel { \n policySelector . addActionListener ( new ActionListener ( ) { \n @ override \n public void actionPerformed ( ActionEvent e ) { \n + String policyName = ( String ) policySelector . getSelectedItem ( ) ; \n + if ( policyName == null ) { \n + return ; \n + } \n + \n ScanPolicy policy ; \n try { \n - policy = extension . getPolicyManager ( ) . getPolicy ( ( String ) policySelector . getSelectedItem ( ) ) ; \n + policy = extension . getPolicyManager ( ) . getPolicy ( policyName ) ; \n if ( policy != null ) { \n setScanPolicy ( policy ) ; \n }", "msg_token": "Ignore no selected scan policy while reloading Active Scan dialogue"} {"diff": " public class LoadingPhaseRunner { \n } \n } \n \n - private Collection < Target > getTargetsForLabels ( Collection < Label > labels ) { \n + private Set < Target > getTargetsForLabels ( Collection < Label > labels ) { \n Set < Target > result = new HashSet < > ( ) ; \n - \n for ( Label label : labels ) { \n try { \n result . add ( packageManager . getLoadedTarget ( label ) ) ; \n public class LoadingPhaseRunner { \n throw new IllegalStateException ( e ) ; SINGLE \n } \n } \n - \n return result ; \n } \n \n public class LoadingPhaseRunner { \n } \n \n return ImmutableSet . copyOf ( Sets . difference ( ImmutableSet . copyOf ( targetsToLoad ) , \n - ImmutableSet . copyOf ( getTargetsForLabels ( rootCauses . keySet ( ) ) ) ) ) ; \n + getTargetsForLabels ( rootCauses . keySet ( ) ) ) ) ; \n } \n \n COMMENT", "msg_token": "Simplify LoadingPhaseRunner avoid an unnecessary Set copy"} {"diff": " public final class JDBCUtil { \n try { \n setParameter ( stmt , counter ++ , o ) ; \n } catch ( NoSuchMethodException e ) { \n - throw new QueryException ( e ) ; \n + throw new IllegalArgumentException ( e ) ; \n } catch ( IllegalAccessException e ) { \n - throw new QueryException ( e ) ; \n + throw new IllegalArgumentException ( e ) ; \n } catch ( InvocationTargetException e ) { \n - throw new QueryException ( e ) ; \n + throw new IllegalArgumentException ( e ) ; \n } \n } \n }", "msg_token": "changed QueryException to IllegalArgumentException"} {"diff": " public class SummaryPage extends Request { \n Response r = Response . done ( res ) ; \n r . setBuilder ( ROOT_OBJECT , new Builder ( ) { \n @ override public String build ( Response response , JsonElement element , String contextName ) { \n - StringBuilder pageBldr = new StringBuilder ( STRING0 ) ; \n - StringBuilder sb = new StringBuilder ( STRING1 ) ; \n + StringBuilder pageBldr = new StringBuilder ( STRING2 ) ; \n + StringBuilder sb = new StringBuilder ( STRING3 ) ; \n JsonArray cols = element . getAsJsonObject ( ) . get ( STRING4 ) . getAsJsonObject ( ) . get ( STRING5 ) . getAsJsonArray ( ) ; \n Iterator < JsonElement > it = cols . iterator ( ) ;", "msg_token": "Keeps Columns Links to Hover"} {"diff": " public class MapRouteInfoControl extends MapControls implements IRouteInformatio \n public void showControls ( FrameLayout parent ) { \n infoButton = addButton ( parent , R . string . route_info , R . drawable . map_btn_signpost ) ; \n if ( showDialog ) { \n - showDialog ( ) ; \n + if ( getTargets ( ) . getPointToNavigate ( ) == null ) { \n + showDialog ( ) ; \n + } \n showDialog = false ; \n } \n controlVisible = true ;", "msg_token": "Fixed bug with navigation dialog being opened every time"} {"diff": " \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 ; \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added file header"} {"diff": " public class StorageBasedAuthorizationProvider extends HiveAuthorizationProvider \n } \n \n private HiveException hiveException ( Exception e ) { \n - HiveException ex = new HiveException ( e ) ; \n - ex . initCause ( e ) ; \n - return ex ; \n + return new HiveException ( e ) ; \n } \n \n private AuthorizationException authorizationException ( Exception e ) { \n - AuthorizationException ex = new AuthorizationException ( e ) ; \n - ex . initCause ( e ) ; \n - return ex ; \n + return new AuthorizationException ( e ) ; \n } \n \n private static AccessControlException accessControlException (", "msg_token": "StorageBasedAuthorizationProvider masks lower level exception with IllegalStateException Eugene Koifman via Ashutosh Chauhan"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DeployApkMojo extends AbstractIntegrationtestMojo { \n + public class DeployMojo extends AbstractIntegrationtestMojo { \n \n public void execute ( ) throws MojoExecutionException , MojoFailureException { \n if ( ! isEnableIntegrationTest ( ) ) {", "msg_token": "Renamed DeployApkMojo to DeployMojo"} {"diff": " import NAMESPACE ; \n @ enableconfigurationproperties \n public class ManagementServerPropertiesAutoConfiguration { \n \n - @ bean ( name = STRING0 ) \n + @ bean \n @ conditionalonmissingbean \n public ManagementServerProperties managementServerProperties ( ) { \n return new ManagementServerProperties ( ) ; \n } \n \n SINGLE \n - @ bean ( name = STRING1 ) \n + @ bean \n @ conditionalonmissingbean \n @ conditionalonclass ( name = STRING2 ) \n public SecurityProperties securityProperties ( ) { \n import NAMESPACE ; \n AuthenticationManagerConfiguration . class } ) \n public class SecurityAutoConfiguration { \n \n - @ bean ( name = STRING1 ) \n + @ bean \n @ conditionalonmissingbean \n public SecurityProperties securityProperties ( ) { \n return new SecurityProperties ( ) ; \n public class ServerPropertiesAutoConfiguration implements ApplicationContextAwar \n \n private ApplicationContext applicationContext ; \n \n - @ bean ( name = STRING3 ) \n + @ bean \n @ conditionalonmissingbean ( search = SearchStrategy . CURRENT ) \n public ServerProperties serverProperties ( ) { \n return new ServerProperties ( ) ;", "msg_token": "Remove hard coded bean names for couple of ConfigurationProperties beans"} {"diff": " public class Context { \n COMMENT \n COMMENT \n public Context ( NetworkParameters params ) { \n + log . info ( STRING0 , VersionMessage . BITCOINJ_VERSION ) ; \n this . confidenceTable = new TxConfidenceTable ( ) ; \n this . params = params ; \n lastConstructed = this ;", "msg_token": "Log context creation"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n intent , resolvedType , flags , userId ) ; \n if ( resolveInfo != null ) { \n result . add ( resolveInfo ) ; \n + Collections . sort ( result , mResolvePrioritySorter ) ; \n } \n return result ; \n }", "msg_token": "Add cross profile intent in order after intent filter resolution"} {"diff": " public abstract class ScmMaterial extends AbstractMaterial { \n protected Filter filter ; \n protected String folder ; \n protected boolean autoUpdate = true ; \n + protected boolean invertFilter = false ; \n \n public ScmMaterial ( String typeName ) { \n super ( typeName ) ; \n public abstract class ScmMaterial extends AbstractMaterial { \n autoUpdate = value ; \n } \n \n + public boolean isInvertFilter ( ) { \n + return invertFilter ; \n + } \n + \n + public boolean getInvertFilter ( ) { \n + return invertFilter ; \n + } \n + \n + public void setInvertFilter ( boolean value ) { \n + invertFilter = value ; \n + } \n + \n public final MatchedRevision createMatchedRevision ( Modification modification , String searchString ) { \n return new MatchedRevision ( searchString , getShortRevision ( modification . getRevision ( ) ) , modification . getRevision ( ) , modification . getUserName ( ) , modification . getModifiedTime ( ) , \n modification . getComment ( ) ) ;", "msg_token": "Add invertFilter to ScmMaterial"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class RaptorSplitManager \n } \n } ; \n } \n - \n - private static Function < Node , String > nodeIdentifier ( ) \n - { \n - return new Function < Node , String > ( ) \n - { \n - @ override \n - public String apply ( Node node ) \n - { \n - return node . getNodeIdentifier ( ) ; \n - } \n - } ; \n - } \n }", "msg_token": "Use shared utility method"} {"diff": " public class EditInspectionToolsSettingsAction implements IntentionAction { \n \n public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException { \n final InspectionProjectProfileManager projectProfileManager = InspectionProjectProfileManager . getInstance ( file . getProject ( ) ) ; \n - final boolean canChooseDifferentProfiles = false ; \n InspectionProfile inspectionProfile = projectProfileManager . getInspectionProfile ( ) ; \n editToolSettings ( project , \n - inspectionProfile , \n - canChooseDifferentProfiles , \n + inspectionProfile , true , \n myShortName ) ; \n }", "msg_token": "edit tools intention fix"} {"diff": " public final class PageAdapter extends Adapter implements \n public void onOrientationChanged ( ) { \n mColumnCount = mContext . getResources ( ) . getInteger ( \n R . integer . preview_page_per_row_count ) ; \n + notifyDataSetChanged ( ) ; \n } \n \n public boolean isOpened ( ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix a crash in print preview on multiple rotations"} {"diff": " public class HttpSender { \n public static final int BEAN_SHELL_INITIATOR = NUMBER0 ; \n public static final int ACCESS_CONTROL_SCANNER_INITIATOR = NUMBER1 ; \n \n - public static final String ZAP_CFU_PROTOCOL_ID = STRING0 ; \n - \n private static Logger log = Logger . getLogger ( HttpSender . class ) ; \n \n private static ProtocolSocketFactory sslFactory = null ; \n public class HttpSender { \n Protocol . registerProtocol ( STRING1 , new Protocol ( STRING1 , \n ( ProtocolSocketFactory ) new SSLConnector ( true ) , NUMBER2 ) ) ; \n } \n - Protocol . registerProtocol ( ZAP_CFU_PROTOCOL_ID , new Protocol ( ZAP_CFU_PROTOCOL_ID COMMENT , \n - ( ProtocolSocketFactory ) new SSLConnector ( false ) , NUMBER3 ) ) ; \n \n AuthPolicy . registerAuthScheme ( AuthPolicy . NTLM , ZapNTLMScheme . class ) ; \n }", "msg_token": "Remove unused registered protocol and corresponding SSLConnector"} {"diff": " public class MediaGridAdapter extends CursorAdapter { \n imageView . setTag ( thumbnailURL ) ; \n imageView . setImageUrl ( thumbnailURL , WordPress . imageLoader ) ; \n } else { \n - imageView . setImageUrl ( STRING0 , WordPress . imageLoader ) ; \n + imageView . setImageResource ( placeholderResId ) ; \n } \n \n }", "msg_token": "FredrichO JonathanL fixed issue where views were not recycling properly"} {"diff": " public class ComponentContainer implements BatchComponent , ServerComponent { \n \n public ComponentContainer stopComponents ( boolean swallowException ) { \n try { \n - pico . stop ( ) ; \n + if ( ! pico . getLifecycleState ( ) . isStopped ( ) ) { \n + pico . stop ( ) ; \n + } \n + removeChild ( ) ; \n + if ( parent != null ) { \n + parent . removeChild ( ) ; \n + } \n \n } catch ( RuntimeException e ) { \n if ( ! swallowException ) { \n throw PicoUtils . propagate ( e ) ; \n } \n - } finally { \n - removeChild ( ) ; \n } \n return this ; \n }", "msg_token": "Fix stop of ComponentContainer with child"} {"diff": " public final class UniqueId implements UniqueIdInterface { \n SINGLE \n return new UniqueIdAllocator ( name , assignment ) . tryAllocate ( ) ; \n } \n - System . out . println ( STRING0 ) ; \n return e ; SINGLE \n } \n }", "msg_token": "remove unhelpful System out println"} {"diff": " public class JournalPortlet extends MVCPortlet { \n getForward ( renderRequest , STRING0 ) ) ; \n } \n \n - protected void deleteFeeds ( ActionRequest actionRequest ) throws Exception { \n + public void deleteFeeds ( ActionRequest actionRequest ) throws Exception { \n long groupId = ParamUtil . getLong ( actionRequest , STRING1 ) ; \n \n String [ ] deleteFeedIds = StringUtil . split ( \n public class JournalPortlet extends MVCPortlet { \n } \n } \n \n - protected void updateFeed ( ActionRequest actionRequest ) throws Exception { \n + public void updateFeed ( ActionRequest actionRequest ) throws Exception { \n String cmd = ParamUtil . getString ( actionRequest , Constants . CMD ) ; \n \n long groupId = ParamUtil . getLong ( actionRequest , STRING1 ) ;", "msg_token": "make methods public no logic changes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { \n \n private final PathManager pathManager ; \n public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { \n } \n \n private static OutputFileCollection compileFromText ( String filePath , String text , JetCoreEnvironment jetEnvironment ) { \n - JetFile psiFile = JetTestUtils . createFile ( STRING0 , text , jetEnvironment . getProject ( ) ) ; \n + CodegenTestFiles codegenFile = CodegenTestFiles . create ( STRING0 , text , jetEnvironment . getProject ( ) ) ; \n + JetFile psiFile = codegenFile . getPsiFile ( ) ; \n OutputFileCollection outputFiles ; \n try { \n outputFiles = GenerationUtils . compileFileGetClassFileFactoryForTest ( psiFile ) ;", "msg_token": "Make Android test load files with diagnostics"} {"diff": " public class Roster { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public RosterEntry createEntry ( String user , String name ) { \n + SINGLE \n + SINGLE \n + SINGLE \n return new RosterEntry ( user , name , connection ) ; \n }", "msg_token": "Added TODO items"} {"diff": " public class MockFactory < T > { \n \n public Object intercept ( Object obj , Method method , Object [ ] args , \n MethodProxy proxy ) throws Throwable { \n - System . err . println ( method + STRING0 + method . isBridge ( ) ) ; \n if ( method . isBridge ( ) ) { \n SINGLE \n return proxy . invokeSuper ( obj , args ) ; \n public class ExtraMatchers { \n for ( Method m : clazz . getMethods ( ) ) { \n if ( m . isBridge ( ) ) { \n if ( m . getName ( ) . equals ( methodName ) ) { \n - System . out . println ( m ) ; \n return true ; \n } \n }", "msg_token": "removed debug statements"} {"diff": " public abstract class ChunkBuildExtension { \n final ChunkBuildExtension [ ] extensions = Extensions . getRootArea ( ) . getExtensionPoint ( EP_NAME ) . getExtensions ( ) ; \n final Module [ ] modules = chunk . getModules ( ) ; \n for ( ChunkBuildExtension extension : extensions ) { \n - if ( ! extension . haveSelfOutputs ( modules ) ) return false ; \n + if ( extension . haveSelfOutputs ( modules ) ) return true ; \n } \n - return true ; \n + return false ; \n } \n \n public static String [ ] getAllTargets ( ModuleChunk chunk ) {", "msg_token": "Fixed bug with output detection now runtime classpath is generated when Gwt plugin is not set for the module"} {"diff": " public class AdminClient { \n private static final String CLUSTER_VERSION_KEY = STRING0 ; \n private static final int DEFAULT_ZONE_ID = NUMBER0 ; \n \n - public final static List < String > restoreStoreEngineBlackList = Arrays . asList ( MysqlStorageConfiguration . TYPE_NAME , \n - ReadOnlyStorageConfiguration . TYPE_NAME , \n + public final static List < String > restoreStoreEngineBlackList = Arrays . asList ( ReadOnlyStorageConfiguration . TYPE_NAME , \n ViewStorageConfiguration . TYPE_NAME ) ; \n \n private Cluster currentCluster ;", "msg_token": "delete mysql from blacklist"} {"diff": " public class SecureServletTest { \n } \n \n @ test \n - public void testWithCorrectCredentials ( ) throws Exception { \n + public void testGetWithCorrectCredentials ( ) throws Exception { \n WebClient webClient = new WebClient ( ) ; \n webClient . setCredentialsProvider ( correctCreds ) ; \n HtmlPage page = webClient . getPage ( base + STRING0 ) ; \n public class SecureServletTest { \n } \n \n @ test \n - public void testWithIncorrectCredentials ( ) throws Exception { \n + public void testGetWithIncorrectCredentials ( ) throws Exception { \n WebClient webClient = new WebClient ( ) ; \n webClient . setCredentialsProvider ( incorrectCreds ) ; \n try {", "msg_token": "Naming the method appropriately"} {"diff": " public class FaunusTitanGraph extends StandardTitanGraph { \n for ( final Entry data : entries ) { \n try { \n final FaunusVertexLoader . RelationFactory factory = loader . getFactory ( ) ; \n - super . edgeSerializer . readRelation ( factory , data , tx ) ; \n + super . edgeSerializer . readRelation ( tx . getExistingVertex ( factory . getVertexID ( ) ) , data ) ; \n factory . build ( ) ; \n } catch ( Exception e ) { \n SINGLE", "msg_token": "updated Faunus with change in Titans EdgeSerializers API"} {"diff": " public class SpdySessionHandler \n \n @ override \n public void freeInboundBuffer ( ChannelHandlerContext ctx , Buf buf ) throws Exception { \n - SINGLE \n + buf . free ( ) ; \n } \n \n @ override \n public void freeOutboundBuffer ( ChannelHandlerContext ctx , Buf buf ) throws Exception { \n - SINGLE \n + buf . free ( ) ; \n } \n \n @ override", "msg_token": "Add missing free on SpdySessionHandler buffers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WPMainActivity extends Activity \n if ( now > expires ) { \n SINGLE \n ToastUtils . showToast ( this , R . string . push_auth_expired , ToastUtils . Duration . LONG ) ; \n + AnalyticsTracker . track ( AnalyticsTracker . Stat . PUSH_AUTHENTICATION_EXPIRED ) ; \n } else { \n NotificationsUtils . showPushAuthAlert ( this , token , title , message ) ; \n }", "msg_token": "Added expired event"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SvnAuthenticationNotifier extends GenericNotifierImpl < SvnAuthentica \n final boolean checkWrite , \n final String realm , \n final String kind , boolean interactive ) { \n + SINGLE \n + if ( configuration . isIsUseDefaultProxy ( ) ) { \n + final HttpConfigurable instance = HttpConfigurable . getInstance ( ) ; \n + if ( instance . USE_HTTP_PROXY && instance . PROXY_AUTHENTICATION && ( StringUtil . isEmptyOrSpaces ( instance . PROXY_LOGIN ) || \n + StringUtil . isEmptyOrSpaces ( instance . getPlainProxyPassword ( ) ) ) ) { \n + return false ; \n + } \n + } \n SvnInteractiveAuthenticationProvider . clearCallState ( ) ; \n try { \n new SVNWCClient ( manager , configuration . getOptions ( project ) ) . doInfo ( url , SVNRevision . UNDEFINED , SVNRevision . HEAD ) ;", "msg_token": "do not ask proxy credentials when passively check whether background connections are enabled"} {"diff": " public class PdeKeywords extends TokenMarker { \n if ( lastKeyword != lastOffset ) { \n addToken ( lastKeyword - lastOffset , Token . NULL ) ; \n } \n - if ( paren && id == Token . LITERAL2 ) { \n - id = Token . KEYWORD2 ; \n - } else if ( ! paren && id == Token . KEYWORD2 ) { \n - id = Token . LITERAL2 ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n addToken ( len , id ) ; \n lastOffset = i ; \n }", "msg_token": "check no longer necessary b c of multiple lookups"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DateType extends AbstractType < Date > \n \n public static final DateType instance = new DateType ( ) ; \n \n - static final String DEFAULT_FORMAT = TimestampSerializer . iso8601Patterns [ NUMBER0 ] ; \n - static final SimpleDateFormat FORMATTER = new SimpleDateFormat ( DEFAULT_FORMAT ) ; \n - \n DateType ( ) { } SINGLE \n \n public int compare ( ByteBuffer o1 , ByteBuffer o2 )", "msg_token": "remove dead fields"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added missing license header"} {"diff": " public final class MediaSession { \n break ; \n case MSG_SKIP_TO_ITEM : \n mCallback . onSkipToQueueItem ( ( Long ) msg . obj ) ; \n + break ; \n case MSG_PAUSE : \n mCallback . onPause ( ) ; \n break ;", "msg_token": "Add missing break to switch statement"} {"diff": " public class RegistrationIntentService extends IntentService { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n - InstanceID instanceID = InstanceID . getInstance ( this ) ; \n SINGLE \n SINGLE \n + SINGLE \n + InstanceID instanceID = InstanceID . getInstance ( this ) ; \n String token = instanceID . getToken ( getString ( R . string . gcm_defaultSenderId ) , \n GoogleCloudMessaging . INSTANCE_ID_SCOPE , null ) ; \n SINGLE", "msg_token": "Moving comment up so that it won t be displayed in the android start"} {"diff": " public class Layer extends BaseEntity { \n public void addEntity ( final IEntity pEntity ) { \n this . mEntities . add ( pEntity ) ; \n } \n + \n + public boolean removeEntity ( final IEntity pEntity ) { \n + return this . mEntities . remove ( pEntity ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Added method to remove Entity from Layer"} {"diff": " public class BuildCraftFactory extends BuildCraftMod { \n FactoryProxyClient . pumpTexture = terrainTextures . registerSprite ( new ResourceLocation ( STRING0 ) ) ; \n ChuteRenderModel . sideTexture = terrainTextures . registerSprite ( new ResourceLocation ( STRING1 ) ) ; \n \n - if ( Loader . isModLoaded ( STRING2 ) && ! BuildCraftCore . DEVELOPER_MODE ) { \n + if ( Loader . isModLoaded ( STRING2 ) && BuildCraftCore . DEVELOPER_MODE ) { \n ComplexRefiningManager . textureStitchPre ( evt ) ; \n } \n } \n public class BuildCraftFactory extends BuildCraftMod { \n event . modelRegistry . putObject ( mrl , ChuteRenderModel . create ( model ) ) ; \n } \n \n - if ( Loader . isModLoaded ( STRING2 ) && ! BuildCraftCore . DEVELOPER_MODE ) { \n + if ( Loader . isModLoaded ( STRING2 ) && BuildCraftCore . DEVELOPER_MODE ) { \n ComplexRefiningManager . registerModels ( event ) ; \n } \n }", "msg_token": "Fix fluid textures model in the dev environment"} {"diff": " public final class SamlUtils { \n public static Document constructDocumentFromXmlString ( final String xmlString ) { \n try { \n final SAXBuilder builder = new SAXBuilder ( ) ; \n + builder . setFeature ( STRING0 , false ) ; \n + builder . setFeature ( STRING1 , true ) ; \n return builder \n . build ( new ByteArrayInputStream ( xmlString . getBytes ( ) ) ) ; \n } catch ( final Exception e ) {", "msg_token": "Changed SAMLBuilder features"} {"diff": " public class HtmlFetcher { \n } \n reader . close ( ) ; \n } \n - private String referrer = STRING0 ; \n - private String userAgent = STRING1 + referrer + STRING2 ; \n + private String referrer = STRING3 ; \n + private String userAgent = STRING4 + referrer + STRING2 ; \n private String cacheControl = STRING5 ; \n private String language = STRING6 ; \n private String accept = STRING7 ;", "msg_token": "Change referrer to LinkBubble"} {"diff": " public abstract class AbstractExternalProjectImportBuilder < C extends AbstractImp \n modules . add ( module ) ; \n return module ; \n } \n - } : new IdeModifiableModelsProviderImpl ( project ) ; \n + } : new IdeModifiableModelsProviderImpl ( project ) { \n + @ notnull \n + @ override \n + public Module newModule ( @ notnull @ nonnls String filePath , \n + String moduleTypeId ) { \n + final Module module = super . newModule ( filePath , moduleTypeId ) ; \n + modules . add ( module ) ; \n + return module ; \n + } \n + } ; \n AbstractExternalSystemSettings systemSettings = ExternalSystemApiUtil . getSettings ( project , myExternalSystemId ) ; \n final ExternalProjectSettings projectSettings = getCurrentExternalProjectSettings ( ) ;", "msg_token": "project builder commit should return committed modules for non ui mode too"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CompletionFieldMapper extends AbstractFieldMapper < String > { \n } \n } \n \n - private static final char END_LABEL = NUMBER0 ; \n - \n SINGLE \n public static boolean isReservedChar ( char character ) { \n - COMMENT \n - COMMENT \n - COMMENT \n - return character == END_LABEL ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + assert XAnalyzingSuggester . PAYLOAD_SEP == XAnalyzingSuggester . SEP_LABEL ; SINGLE \n + switch ( character ) { \n + case XAnalyzingSuggester . END_BYTE : \n + case XAnalyzingSuggester . SEP_LABEL : \n + return true ; \n + default : \n + return false ; \n + } \n } \n }", "msg_token": "Fixing CompletionFieldMapper isReservedChar to take all relevant chars in account"} {"diff": " public class TestFormAuthenticator extends TomcatBaseTest { \n COMMENT \n COMMENT \n COMMENT \n - private class FormAuthClientBase extends SimpleHttpClient { \n + private abstract class FormAuthClientBase extends SimpleHttpClient { \n \n protected static final String LOGIN_PARAM_TAG = STRING0 ; \n protected static final String LOGIN_RESOURCE = STRING1 ;", "msg_token": "Make base class abstract"} {"diff": " public class Http11Nio2Processor extends AbstractHttp11Processor < Nio2Channel > { \n response . setStatus ( NUMBER0 ) ; \n setErrorState ( ErrorState . CLOSE_CLEAN , null ) ; \n getAdapter ( ) . log ( request , response , NUMBER1 ) ; \n - } else { \n - return true ; \n + return false ; \n } \n - return false ; \n + return true ; \n }", "msg_token": "Simplify the logic"} {"diff": " public class BaseDataSourceModifyHandler extends BaseOperationCommand { \n RequestParamArgWithValue poolUseStrictMin = new RequestParamArgWithValue ( STRING0 , this , new ValueCompleter ( STRING0 ) ) ; \n poolUseStrictMin . addRequiredPreceding ( lastRequired ) ; \n \n - RequestParamArgWithValue securityDomain = new RequestParamArgWithValue ( STRING1 , this , new ValueCompleter ( STRING1 ) ) ; \n - securityDomain . addRequiredPreceding ( lastRequired ) ; \n - \n RequestParamArgWithValue blockingTimeoutWait = new RequestParamArgWithValue ( STRING2 , this , new ValueCompleter ( STRING2 ) ) ; \n blockingTimeoutWait . addRequiredPreceding ( lastRequired ) ; \n \n public class BaseDataSourceModifyHandler extends BaseOperationCommand { \n \n RequestParamArgWithValue useFastFail = new RequestParamArgWithValue ( STRING3 , this , new ValueCompleter ( STRING3 ) ) ; \n useFastFail . addRequiredPreceding ( lastRequired ) ; \n - \n - RequestParamArgWithValue useCCM = new RequestParamArgWithValue ( STRING4 , this , new ValueCompleter ( STRING4 ) ) ; \n - useCCM . addRequiredPreceding ( lastRequired ) ; \n } \n \n public class ValueCompleter extends DefaultCompleter {", "msg_token": "removed not writtable attributes for the modify command"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultLifecycleProcessor implements LifecycleProcessor , BeanFactor \n \n private final List < LifecycleGroupMember > members = new ArrayList < LifecycleGroupMember > ( ) ; \n \n - private Map < String , ? extends Lifecycle > lifecycleBeans = getLifecycleBeans ( ) ; \n - \n - private volatile int smartMemberCount ; \n - \n private final int phase ; \n \n private final long timeout ; \n \n + private final Map < String , ? extends Lifecycle > lifecycleBeans ; \n + \n private final boolean autoStartupOnly ; \n \n + private volatile int smartMemberCount ; \n + \n public LifecycleGroup ( int phase , long timeout , Map < String , ? extends Lifecycle > lifecycleBeans , boolean autoStartupOnly ) { \n this . phase = phase ; \n this . timeout = timeout ;", "msg_token": "Removed unnecessary default value of LifecycleGroup lifecycleBeans"} {"diff": " class RelationshipTypeHolder \n return name ; \n } \n \n + public String toString ( ) \n + { \n + return name ; \n + } \n + \n public boolean equals ( Object o ) \n { \n if ( ! ( o instanceof RelationshipType ) )", "msg_token": "Fixed toString on private relationship type implementation"} {"diff": " public class ComparisonFailureData { \n if ( filePath != null ) { \n attrs . put ( STRING0 , filePath ) ; \n } \n - attrs . put ( STRING1 , STRING2 ) ; \n + final int expectedIdx = trace . indexOf ( STRING3 ) ; \n + final String comparisonFailureMessage ; \n + if ( expectedIdx > NUMBER0 ) { \n + comparisonFailureMessage = trace . substring ( NUMBER0 , expectedIdx ) ; \n + } \n + else { \n + comparisonFailureMessage = STRING4 ; \n + } \n + attrs . put ( STRING1 , comparisonFailureMessage ) ; \n } \n else { \n attrs . put ( STRING5 , trace ) ;", "msg_token": "restore comparison message from trace"} {"diff": " public abstract class AppIntro extends AppIntroBase { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void showSkipButton ( boolean showButton ) { \n - this . skipButtonEnabled = showButton ; \n - setButtonState ( skipButton , showButton ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Moved showSkipButton to AppIntroBase"} {"diff": " public final class FixedLengthStreamSourceChannel implements StreamSourceChannel \n final int lim = dst . limit ( ) ; \n final int pos = dst . position ( ) ; \n if ( lim - pos > remaining ) { \n - dst . limit ( ( int ) ( remaining - ( long ) pos ) ) ; \n + dst . limit ( ( int ) ( remaining + ( long ) pos ) ) ; \n try { \n return res = delegate . read ( dst ) ; \n } finally {", "msg_token": "Fix bug in FixedLengthStreamSourceChannel"} {"diff": " public class HiveSessionImpl implements HiveSession { \n hiveHist . closeStream ( ) ; \n } \n try { \n + sessionState . resetThreadName ( ) ; \n sessionState . close ( ) ; \n } finally { \n sessionState = null ; \n public class HiveSessionImpl implements HiveSession { \n } finally { \n if ( sessionState != null ) { \n try { \n + sessionState . resetThreadName ( ) ; \n sessionState . close ( ) ; \n } catch ( Throwable t ) { \n LOG . warn ( STRING0 , t ) ;", "msg_token": "Hive session close is not resetting thread name Rajat Khandelwal reviewed by Sergey Shelukhin"} {"diff": " public class MapRouteInfoControl extends MapControls implements IRouteInformatio \n @ override \n public boolean onSingleTap ( PointF point , RotatedTileBox tileBox ) { \n if ( selectFromMapTouch ) { \n - LatLon new latlon = tileBox . getLatLonFromPixel ( point . x , point . y ) ; \n + latlon = new LatLon ( tileBox . getLatLonFromPixel ( point . x , point . y ) ) ; \n selectFromMapTouch = false ; \n SINGLE \n if ( selectFromMapForTarget ) {", "msg_token": "get syntax right"} {"diff": " public class Rectangle implements Serializable , Shape2D { \n return this ; \n } \n \n + COMMENT \n + COMMENT \n public String toString ( ) { \n return STRING0 + x + STRING1 + y + STRING1 + width + STRING1 + height + STRING2 ; \n } \n public class Vector2 implements Serializable , Vector < Vector2 > { \n : scl ( ( float ) Math . sqrt ( len2 / oldLen2 ) ) ; \n } \n \n + COMMENT \n + COMMENT \n @ override \n public String toString ( ) { \n return STRING3 + x + STRING1 + y + STRING4 ; \n public class Vector3 implements Serializable , Vector < Vector3 > { \n return scl ( ( float ) Math . cos ( theta ) ) . add ( tx * dl , ty * dl , tz * dl ) . nor ( ) ; \n } \n \n + COMMENT \n + COMMENT \n @ override \n public String toString ( ) { \n return STRING3 + x + STRING1 + y + STRING1 + z + STRING4 ;", "msg_token": "Add toString javadoc for vector and rectangle implementations"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public final class MapParametricType \n { \n public static final MapParametricType MAP = new MapParametricType ( ) ; \n SINGLE \n - private static final Set < Type > SUPPORTED_KEY_TYPES = ImmutableSet . < Type > of ( VARCHAR , BIGINT , DOUBLE , BOOLEAN , DATE , TIMESTAMP ) ; \n + private static final Set < Type > SUPPORTED_KEY_TYPES = ImmutableSet . < Type > of ( VARCHAR , VARBINARY , BIGINT , DOUBLE , BOOLEAN , DATE , TIMESTAMP ) ; \n \n private MapParametricType ( ) \n {", "msg_token": "Allow VARBINARY in MapParametricType"} {"diff": " final class DefaultChannelHandlerContext extends DefaultAttributeMap implements \n } \n } catch ( Throwable t ) { \n notifyHandlerException ( t ) ; \n + break ; \n } finally { \n if ( handler instanceof ChannelInboundByteHandler && ! isInboundFreed ( ) ) { \n try {", "msg_token": "Fix an infinite exception storm triggered by DefaultChannelHandlerContext invokeInboundBufferUpdated"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FacetStructureConfigurable extends BaseStructureConfigurable { \n actions . add ( new MyNavigateAction ( ) ) ; \n } \n actions . add ( new MyRemoveAction ( ) ) ; \n - actions . add ( Separator . getInstance ( ) ) ; \n - addCollapseExpandActions ( actions ) ; \n + if ( fromPopup || ! ( Registry . is ( STRING0 ) ) ) { \n + actions . add ( Separator . getInstance ( ) ) ; \n + addCollapseExpandActions ( actions ) ; \n + } \n return actions ; \n }", "msg_token": "remove collapse expand from toolbar"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public interface StudyExecutor { \n - LanguageExtension < StudyExecutor > INSTANCE = new LanguageExtension < StudyExecutor > ( STRING0 ) ; \n + LanguageExtension < StudyExecutor > INSTANCE = new LanguageExtension < StudyExecutor > ( STRING1 ) ; \n \n @ nullable \n Sdk findSdk ( @ notnull final Project project ) ;", "msg_token": "fixed StudyExecutor extension point"} {"diff": " public class FtpConsumer extends RemoteFileConsumer < FTPFile > { \n \n for ( FTPFile file : files ) { \n \n + if ( log . isTraceEnabled ( ) ) { \n + log . trace ( STRING0 , new Object [ ] { file . getName ( ) , file . isDirectory ( ) , file . isFile ( ) } ) ; \n + } \n + \n SINGLE \n if ( ! canPollMoreFiles ( fileList ) ) { \n return false ; \n public class SftpConsumer extends RemoteFileConsumer < ChannelSftp . LsEntry > { \n \n for ( ChannelSftp . LsEntry file : files ) { \n \n + if ( log . isTraceEnabled ( ) ) { \n + log . trace ( STRING1 , new Object [ ] { file . getFilename ( ) , file . getLongname ( ) , file . getAttrs ( ) . isDir ( ) } ) ; \n + } \n + \n SINGLE \n if ( ! canPollMoreFiles ( fileList ) ) { \n return false ;", "msg_token": "Added a bit more TRACE logging to camel ftp"} {"diff": " public class AstridNewSyncMigrator { \n TaskListMetadata tlm = new TaskListMetadata ( ) ; \n tlm . setValue ( TaskListMetadata . FILTER , TaskListMetadata . FILTER_ID_ALL ) ; \n tlm . setValue ( TaskListMetadata . TASK_IDS , activeTasksOrder ) ; \n - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ; \n if ( taskListMetadataDao . update ( TaskListMetadata . FILTER . eq ( TaskListMetadata . FILTER_ID_ALL ) , tlm ) <= NUMBER0 ) { \n - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ; \n taskListMetadataDao . createNew ( tlm ) ; \n } \n \n public class AstridNewSyncMigrator { \n \n tlm . setValue ( TaskListMetadata . FILTER , TaskListMetadata . FILTER_ID_TODAY ) ; \n tlm . setValue ( TaskListMetadata . TASK_IDS , todayTasksOrder ) ; \n - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ; \n if ( taskListMetadataDao . update ( TaskListMetadata . FILTER . eq ( TaskListMetadata . FILTER_ID_TODAY ) , tlm ) <= NUMBER0 ) { \n - tlm . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ; \n taskListMetadataDao . createNew ( tlm ) ; \n }", "msg_token": "Don t suppress changes when creating new task list metadata in migration"} {"diff": " public class RosterGroup { \n COMMENT \n public void removeEntry ( RosterEntry entry ) { \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n synchronized ( entries ) { \n if ( entries . contains ( entry ) ) { \n RosterPacket packet = new RosterPacket ( ) ; \n public class RosterGroup { \n item . removeGroupName ( this . getName ( ) ) ; \n packet . addRosterItem ( item ) ; \n connection . sendPacket ( packet ) ; \n + SINGLE \n + entries . remove ( entry ) ; \n } \n } \n }", "msg_token": "Modifies removeEntry to remove the entry immediately locally"} {"diff": " \n package NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class JettyThreadLimitTest \n QueuedThreadPool threadPool = ( QueuedThreadPool ) server . getJetty ( ) . getThreadPool ( ) ; \n threadPool . start ( ) ; \n CountDownLatch cb = loadThreadPool ( threadPool , configuredMaxThreads + NUMBER0 ) ; \n - Thread . sleep ( NUMBER1 ) ; SINGLE \n + Thread . sleep ( NUMBER1 ) ; SINGLE \n int threads = threadPool . getThreads ( ) ; \n assertEquals ( STRING0 , configuredMaxThreads , threads ) ; \n cb . countDown ( ) ;", "msg_token": "Removed unused imports"} {"diff": " public class ShardIndexingService extends AbstractIndexShardComponent { \n \n public void postCreateUnderLock ( Engine . Create create ) { \n for ( IndexingOperationListener listener : listeners ) { \n - listener . postCreateUnderLock ( create ) ; \n + try { \n + listener . postCreateUnderLock ( create ) ; \n + } catch ( Exception e ) { \n + logger . warn ( STRING0 , e , listener ) ; \n + } \n } \n }", "msg_token": "postCreateUnderLock try catch listeners"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class CodecPrintWriter extends GrailsPrintWriter {", "msg_token": "remove unused import"} {"diff": " public interface DependencyHandler { \n Dependency gradleApi ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix userguide link in javadoc"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ contentview ( R . layout . main ) \n public class AstroboyMasterConsole extends RoboActivity { \n \n SINGLE \n public class AstroboyMasterConsole extends RoboActivity { \n @ override \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; SINGLE \n - setContentView ( R . layout . main ) ; \n \n sayText . setOnEditorActionListener ( new OnEditorActionListener ( ) { \n public boolean onEditorAction ( TextView textView , int i , KeyEvent keyEvent ) {", "msg_token": "Revert temporarily remove ContentView from demo it s causing problems with annotation processing not sure why yet"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExtensionCompare extends ExtensionAdaptor implements SessionChanged \n cmpModel . openSession ( file , this ) ; \n \n SINGLE \n - Database db = new ParosDatabase ( ) ; \n + ParosDatabase db = new ParosDatabase ( ) ; \n + db . setDatabaseParam ( new DatabaseParam ( ) ) ; \n db . open ( file . getAbsolutePath ( ) ) ; \n \n Map < String , String > curMap = new HashMap < > ( ) ;", "msg_token": "Restore session comparison"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FilePatternPackageSet extends PatternBasedPackageSet { \n } \n \n private boolean fileMatcher ( @ notnull VirtualFile virtualFile , ProjectFileIndex fileIndex , VirtualFile projectBaseDir ) { \n + if ( virtualFile instanceof VirtualFileWindow ) { \n + virtualFile = ( ( VirtualFileWindow ) virtualFile ) . getDelegate ( ) ; \n + } \n final String relativePath = getRelativePath ( virtualFile , fileIndex , true , projectBaseDir ) ; \n if ( relativePath == null ) { \n LOG . error ( STRING0 + virtualFile + STRING1 + projectBaseDir + STRING2 + fileIndex . getContentRootForFile ( virtualFile ) ) ;", "msg_token": "filter injected files by containing physical files"} {"diff": " public class StorageProxy implements StorageProxyMBean \n AbstractWriteResponseHandler responseHandler = new WriteResponseHandler ( endpoint , WriteType . COUNTER ) ; \n \n Tracing . trace ( STRING0 , endpoint ) ; \n - MessagingService . instance ( ) . sendRR ( cm . makeMutationMessage ( ) , endpoint , responseHandler ) ; \n + MessageOut < CounterMutation > message = cm . makeMutationMessage ( ) ; \n + int id = MessagingService . instance ( ) . addCallback ( responseHandler , message , endpoint , message . getTimeout ( ) , cm . consistency ( ) ) ; \n + MessagingService . instance ( ) . sendOneWay ( message , id , endpoint ) ; \n return responseHandler ; \n } \n }", "msg_token": "add consistencyLevel to callback in mutateCounter"} {"diff": " class MountService extends IMountService . Stub \n if ( st == VolumeState . NoMedia ) { \n state = Environment . MEDIA_REMOVED ; \n } else if ( st == VolumeState . Idle ) { \n - state = Environment . MEDIA_UNMOUNTED ; \n + state = null ; \n try { \n mountVolume ( path ) ; \n } catch ( Exception ex ) { \n class MountService extends IMountService . Stub \n throw new Exception ( String . format ( STRING0 , st ) ) ; \n } \n } \n - updatePublicVolumeState ( path , state ) ; \n + if ( state != null ) { \n + updatePublicVolumeState ( path , state ) ; \n + } \n } catch ( Exception e ) { \n Log . e ( TAG , STRING1 , e ) ; \n updatePublicVolumeState ( path , Environment . MEDIA_REMOVED ) ;", "msg_token": "Don t update the storage status when we re unmounted"} {"diff": " public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo \n int startOffset = NUMBER0 ; \n if ( ! tokens . isEmpty ( ) ) { \n final TokenInfo lastToken = tokens . get ( tokens . size ( ) - NUMBER1 ) ; \n - if ( lastToken . contentType == contentType ) { \n + if ( lastToken . contentType == contentType && info == lastToken . getHyperlinkInfo ( ) ) { \n lastToken . endOffset += length ; SINGLE \n return ; \n }", "msg_token": "do not merge hyperlinks with any other types den"} {"diff": " public class OTRv3OutgoingSessionSwitcher \n COMMENT \n private void updateEnableStatus ( ) \n { \n - this . menu . setVisible ( this . menu . getItemCount ( ) > NUMBER0 ) ; \n + this . menu . setEnabled ( this . menu . getItemCount ( ) > NUMBER0 ) ; \n + this . menu . setVisible ( true ) ; \n } \n }", "msg_token": "Always show OTR session switcher disable for single session"} {"diff": " public class PeerGroup { \n } \n \n private synchronized void recalculateFastCatchupTime ( ) { \n + SINGLE \n + if ( chain . shouldVerifyTransactions ( ) ) return ; \n long earliestKeyTime = Long . MAX_VALUE ; \n for ( Wallet w : wallets ) { \n earliestKeyTime = Math . min ( earliestKeyTime , w . getEarliestKeyCreationTime ( ) ) ;", "msg_token": "Don t recalculate fast catchup time to avoid hitting an assert"} {"diff": " public class IdeaJdk extends JavaDependentSdkType implements JavaSdkType { \n ArrayList < VirtualFile > result = new ArrayList < VirtualFile > ( ) ; \n appendIdeaLibrary ( home , result , STRING0 ) ; \n appendIdeaLibrary ( plugins + STRING1 , result , STRING2 , STRING3 ) ; \n - appendIdeaLibrary ( plugins + STRING4 , result , STRING5 ) ; \n appendIdeaLibrary ( plugins + STRING6 , result , STRING7 ) ; \n appendIdeaLibrary ( plugins + STRING8 , result , STRING9 , STRING10 ) ; \n appendIdeaLibrary ( plugins + STRING11 , result , STRING12 ) ;", "msg_token": "removed jsf iml"} {"diff": " public final class NUIEditorScreen extends AbstractEditorScreen { \n JsonElement json = JsonTreeConverter . deserialize ( getEditor ( ) . getModel ( ) . getNode ( NUMBER0 ) . getRoot ( ) ) ; \n String jsonString = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( json ) ; \n outputStream . write ( jsonString . getBytes ( ) ) ; \n + setUnsavedChangesPresent ( false ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n } \n public final class NUISkinEditorScreen extends AbstractEditorScreen { \n JsonElement json = JsonTreeConverter . deserialize ( getEditor ( ) . getModel ( ) . getNode ( NUMBER0 ) . getRoot ( ) ) ; \n String jsonString = new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( json ) ; \n outputStream . write ( jsonString . getBytes ( ) ) ; \n + setUnsavedChangesPresent ( false ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n }", "msg_token": "Properly modify a state flag when changes are saved"} {"diff": " public class ExecutorServiceTest extends HazelcastTestSupport { \n } \n e . put ( STRING0 , hazelcastInstance ) ; \n try { \n + SINGLE \n + if ( e . getFactory ( ) . getEngineName ( ) . toLowerCase ( ) . contains ( STRING1 ) ) { \n + e . eval ( STRING2 ) ; \n + } \n + \n e . eval ( STRING3 ) ; \n e . eval ( STRING4 ) ; \n e . eval ( STRING5 ) ;", "msg_token": "Fixed the engine name pattern"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class CustomizersFactory extends AbstractFactory implements PostCompletionFactory { \n - @ override \n + \n public Object newInstance ( final FactoryBuilderSupport builder , final Object name , final Object value , final Map attributes ) throws InstantiationException , IllegalAccessException { \n return new LinkedList ( ) ; \n } \n public class CustomizersFactory extends AbstractFactory implements PostCompletio \n } \n } \n \n - @ override \n + \n @ suppresswarnings ( STRING0 ) \n public Object postCompleteNode ( final FactoryBuilderSupport factory , final Object parent , final Object node ) { \n if ( node instanceof List ) {", "msg_token": "Remove Override for compatibility"} {"diff": " public abstract class AbstractWeatherParser implements WeatherParser { \n precip . setRain ( null ) ; \n } \n \n - if ( precip . getSnow ( ) != null && precip . getSnow ( ) == FLOAT0 ) { \n - precip . setSnow ( null ) ; \n + if ( precip . getSnow ( ) == null ) { \n + precip . setSnow ( FLOAT0 ) ; \n } \n - if ( precip . getRain ( ) != null && precip . getRain ( ) == FLOAT0 ) { \n - precip . setRain ( null ) ; \n + if ( precip . getRain ( ) == null ) { \n + precip . setRain ( FLOAT0 ) ; \n } \n \n CommonIdHandler . getInstance ( ) . setCommonId ( weather ) ;", "msg_token": "Set snow and rain to zero if empty"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Mongo { \n \n - SINGLE \n + SINGLE \n SINGLE \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public static final int MAJOR_VERSION = NUMBER0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public static final int MINOR_VERSION = NUMBER1 ; \n \n static int cleanerIntervalMS ; \n public class Mongo { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static int getMajorVersion ( ) { \n + return MAJOR_VERSION ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static int getMinorVersion ( ) { \n + return MINOR_VERSION ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Deprecated public static major minor version fields in favor of public static methods"} {"diff": " public class OCommandCacheSoftRefs implements OCommandCache { \n private boolean updateCfgOnDisk ( ) throws IOException { \n File f = getConfigFile ( ) ; \n if ( f != null ) { \n - OLogManager . instance ( ) . info ( this , STRING0 , databaseName ) ; \n + OLogManager . instance ( ) . debug ( this , STRING0 , databaseName ) ; \n OIOUtils . writeFile ( f , configuration . toJSON ( STRING1 ) ) ; \n return true ; \n } \n public class OCommandCacheSoftRefs implements OCommandCache { \n protected void deleteFileIfExists ( ) { \n File f = getConfigFile ( ) ; \n if ( f != null ) { \n - OLogManager . instance ( ) . info ( this , STRING2 , databaseName ) ; \n + OLogManager . instance ( ) . debug ( this , STRING2 , databaseName ) ; \n f . delete ( ) ; \n } \n }", "msg_token": "changed logging messages of command cache"} {"diff": " public final class ApduServiceInfo implements Parcelable { \n return mRequiresDeviceUnlock ; \n } \n \n + public String getDescription ( ) { \n + return mDescription ; \n + } \n + \n public CharSequence loadLabel ( PackageManager pm ) { \n return mService . loadLabel ( pm ) ; \n } \n public final class ApduServiceInfo implements Parcelable { \n Log . e ( TAG , STRING0 + aid + STRING1 ) ; \n return false ; \n } \n + SINGLE \n + if ( aidLength < NUMBER0 ) { \n + Log . e ( TAG , STRING0 + aid + STRING2 ) ; \n + return false ; \n + } \n return true ; \n }", "msg_token": "Validate AID format and length"} {"diff": " public class DirectedMultiGraph < V , E > implements Graph < V , E > COMMENT { \n return true ; \n } \n \n + COMMENT \n private Map < V , List < E > > getOutgoingEdgesMap ( V v ) { \n Map < V , List < E > > map = outgoingEdges . get ( v ) ; \n if ( map == null ) { \n public class DirectedMultiGraph < V , E > implements Graph < V , E > COMMENT { \n return map ; \n } \n \n + COMMENT \n private Map < V , List < E > > getIncomingEdgesMap ( V v ) { \n Map < V , List < E > > map = incomingEdges . get ( v ) ; \n if ( map == null ) {", "msg_token": "Add a couple comments"} {"diff": " public class CommandLineInterfaceDriver { \n \n public static void main ( String [ ] args ) { \n \n - if ( args . length < NUMBER0 ) \n - printUsage ( ) ; \n - \n - \n + if ( args . length < NUMBER0 ) { \n + System . out . println ( args . length ) ; \n + System . out . println ( STRING0 ) ; \n + System . out . println ( STRING1 . equals ( args [ NUMBER1 ] ) ) ; \n + System . out . println ( STRING2 ) ; \n + printUsage ( ) ; \n + \n + } \n else if ( STRING1 . equals ( args [ NUMBER1 ] ) ) { \n \n String [ ] vec_params = Arrays . copyOfRange ( args , NUMBER0 , args . length ) ; \n public class CommandLineInterfaceDriver { \n log . info ( STRING3 ) ; \n } \n else \n - \n + System . out . println ( STRING4 ) ; \n printUsage ( ) ;", "msg_token": "Adds debug print statements to CLI driver"} {"diff": " abstract class AbstractNioWorker implements Worker { \n } \n \n Queue < MessageEvent > writeBuffer = channel . writeBufferQueue ; \n - if ( ! writeBuffer . isEmpty ( ) ) { \n + for ( ; ; ) { \n + evt = writeBuffer . poll ( ) ; \n + if ( evt == null ) { \n + break ; \n + } \n SINGLE \n SINGLE \n if ( cause == null ) { \n abstract class AbstractNioWorker implements Worker { \n } else { \n cause = new ClosedChannelException ( ) ; \n } \n - } \n - \n - for ( ; ; ) { \n - evt = writeBuffer . poll ( ) ; \n - if ( evt == null ) { \n - break ; \n - } \n evt . getFuture ( ) . setFailure ( cause ) ; \n fireExceptionCaught = true ; \n } \n + \n } \n }", "msg_token": "Optimize AbstractNioWorker cleanUpWriteBuffer"} {"diff": " public class BrowserUtil { \n } \n } \n \n - COMMENT \n - @ suppresswarnings ( STRING0 ) \n - public static String escapeUrl ( @ notnull @ nonnls String url ) { \n - return SystemInfo . isWindows ? STRING1 + url + STRING1 : url ; \n - } \n - \n @ notnull \n public static List < String > getOpenBrowserCommand ( @ nonnls @ notnull String browserPathOrName ) { \n return getOpenBrowserCommand ( browserPathOrName , false ) ;", "msg_token": "remove deprecated method escapeUrl"} {"diff": " public class DefaultPlacementStrategy implements IDPlacementStrategy { \n } \n \n @ override \n - public long getPartition ( InternalElement vertex ) { \n + public int getPartition ( InternalElement vertex ) { \n return partitionID ; \n } \n \n public interface IDPlacementStrategy { \n COMMENT \n COMMENT \n COMMENT \n - public long getPartition ( InternalElement vertex ) ; \n + public int getPartition ( InternalElement vertex ) ; \n \n COMMENT \n COMMENT \n public class SimpleBulkPlacementStrategy implements IDPlacementStrategy { \n } \n \n @ override \n - public long getPartition ( InternalElement vertex ) { \n + public int getPartition ( InternalElement vertex ) { \n return nextPartitionID ( ) ; \n }", "msg_token": "changed return from long to int for partition id"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TextFieldWithHistoryWithBrowseButton extends ComponentWithBrowseBut \n super . addBrowseFolderListener ( title , description , project , fileChooserDescriptor , accessor , autoRemoveOnHide ) ; \n FileChooserFactory . getInstance ( ) . installFileCompletion ( getChildComponent ( ) . getTextEditor ( ) , fileChooserDescriptor , false , project ) ; \n } \n + \n + public String getText ( ) { \n + return getChildComponent ( ) . getText ( ) ; \n + } \n }", "msg_token": "add delegate method to TextFieldWithHistoryWitBrowseButton"} {"diff": " public class AndroidTestFinder { \n \n classReader . accept ( decendantFinder , ClassReader . SKIP_DEBUG | ClassReader . SKIP_FRAMES | ClassReader . SKIP_CODE ) ; \n } catch ( IOException e ) { \n - throw new MojoExecutionException ( STRING0 + classFile + STRING1 , e ) ; \n + throw new MojoExecutionException ( STRING0 + classFile + STRING2 , e ) ; \n } finally { \n org . apache . commons . io . IOUtils . closeQuietly ( inputStream ) ; \n }", "msg_token": "Corrected error message"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class LwjglFrameBufferObject implements FrameBufferObject { \n glOrtho ( NUMBER0 , Display . getWidth ( ) , Display . getHeight ( ) , NUMBER0 , NUMBER0 , NUMBER1 f ) ; \n glMatrixMode ( GL_MODELVIEW ) ; \n glLoadIdentity ( ) ; \n + \n + SINGLE \n + GL11 . glColorMask ( true , true , true , true ) ; \n } \n \n @ override \n public class LwjglFrameBufferObject implements FrameBufferObject { \n glOrtho ( NUMBER0 , size . x ( ) , size . y ( ) , NUMBER0 , NUMBER0 , NUMBER1 f ) ; \n glMatrixMode ( GL_MODELVIEW ) ; \n glLoadIdentity ( ) ; \n + \n + SINGLE \n + SINGLE \n + GL11 . glClearColor ( FLOAT0 , FLOAT0 , FLOAT0 , FLOAT1 ) ; \n + GL11 . glClear ( GL11 . GL_COLOR_BUFFER_BIT ) ; \n + GL11 . glClearColor ( FLOAT0 , FLOAT0 , FLOAT0 , FLOAT0 ) ; SINGLE \n + GL11 . glColorMask ( true , true , true , false ) ; \n } \n }", "msg_token": "Disable alpha for canvas FBOs"} {"diff": " public class RestartAction extends FakeRerunAction implements DumbAware , AnActio \n myDescriptor = descriptor ; \n myExecutor = executor ; \n SINGLE \n + \n + if ( descriptor . getRestarter ( ) == null ) { \n + descriptor . setRestarter ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + restart ( ) ; \n + } \n + } ) ; \n + } \n } \n \n @ override \n public class RunContentBuilder extends LogConsoleManagerBase { \n final RestartAction restartAction = new RestartAction ( myExecutor , myRunner , contentDescriptor , getEnvironment ( ) ) ; \n restartAction . registerShortcut ( component ) ; \n actionGroup . add ( restartAction ) ; \n - contentDescriptor . setRestarter ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - restartAction . restart ( ) ; \n - } \n - } ) ; \n \n if ( myExecutionResult instanceof DefaultExecutionResult ) { \n final AnAction [ ] actions = ( ( DefaultExecutionResult ) myExecutionResult ) . getRestartActions ( ) ;", "msg_token": "XDebugSession tab must set restarter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CxxLibraryDescription implements \n HeaderVisibility . PUBLIC ) ; \n Map < BuildTarget , CxxPreprocessorInput > input = Maps . newLinkedHashMap ( ) ; \n \n - CxxSymlinkTreeHeaders . Builder headers = CxxSymlinkTreeHeaders . builder ( ) ; \n - headers . setIncludeType ( CxxPreprocessables . IncludeType . LOCAL ) ; \n - headers . setRoot ( \n - new BuildTargetSourcePath ( \n - symlinkTree . getBuildTarget ( ) , \n - symlinkTree . getIncludePath ( ) ) ) ; \n - headers . putAllNameToPathMap ( symlinkTree . getLinks ( ) ) ; \n - if ( symlinkTree . getHeaderMap ( ) . isPresent ( ) ) { \n - headers . setHeaderMap ( \n - new BuildTargetSourcePath ( \n - symlinkTree . getBuildTarget ( ) , \n - symlinkTree . getHeaderMap ( ) . get ( ) ) ) ; \n - } \n input . put ( \n params . getBuildTarget ( ) , \n CxxPreprocessorInput . builder ( )", "msg_token": "remove dead code CxxLibraryDescription getTransitiveCxxPreprocessorInput"} {"diff": " public class GlobalMatchingVisitor extends AbstractMatchingVisitor { \n return myResult ; \n } \n \n - public void setElement ( PsiElement element ) { \n - this . myElement = element ; \n - } \n - \n public void setResult ( boolean result ) { \n this . myResult = result ; \n }", "msg_token": "remove unused method"} {"diff": " public class Bind extends IQ { \n \n public Bind ( String resource , String jid ) { \n this . resource = resource ; \n - this . jid = null ; \n + this . jid = jid ; \n } \n \n public String getResource ( ) {", "msg_token": "Set jid to passed parameter not null"} {"diff": " public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM \n } \n } \n } else { \n - _parms . _distribution . p = _parms . _tweedie_power ; SINGLE \n + _parms . _distribution . p = _parms . _tweedie_power ; SINGLE \n wk . set ( row , ( float ) _parms . _distribution . gradient ( y , f ) ) ; \n } \n } \n public class Distributions { \n return expString ( f ) ; \n } \n } ; \n - public double p ; SINGLE \n + public double p ; SINGLE \n } \n \n SINGLE", "msg_token": "Add comment to make clear why workaround was done"} {"diff": " public class TemporaryJobJsonReports extends TemporaryJobReports { \n \n public TemporaryJobJsonReports ( final Path outputDir ) { \n this . outputDir = outputDir ; \n - this . outputDir . toFile ( ) . mkdirs ( ) ; \n + if ( ! this . outputDir . toFile ( ) . mkdirs ( ) ) { \n + throw new IllegalStateException ( format ( STRING0 , outputDir ) ) ; \n + } \n } \n \n public ReportWriter getWriterForTest ( final Description testDescription ) {", "msg_token": "Throw exception if failing to create test report directory"} {"diff": " public class CompilerTester { \n path . getChildren ( ) ; \n assert path != null ; \n path . refresh ( false , true ) ; \n - return path . findChild ( className + STRING0 ) ; \n + return path . findChild ( className . replace ( STRING1 , STRING2 ) + STRING0 ) ; \n } \n \n public void touch ( VirtualFile file ) throws IOException {", "msg_token": "CompilerTester findClassFile should accept qualified names"} {"diff": " public class FileOutStreamIntegrationTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ test", "msg_token": "improve test comments"} {"diff": " public class BetterCharacterControl extends AbstractPhysicsControl implements Ph \n public float getPhysicsDamping ( ) { \n return physicsDamping ; \n } \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public class BetterCharacterControl extends AbstractPhysicsControl implements Ph \n Vector3f rayVector = vars . vect2 ; \n float height = getFinalHeight ( ) ; \n location . set ( localUp ) . multLocal ( height ) . addLocal ( this . location ) ; \n - rayVector . set ( localUp ) . multLocal ( - height - FastMath . ZERO_TOLERANCE ) . addLocal ( location ) ; \n + rayVector . set ( localUp ) . multLocal ( - height - FLOAT0 ) . addLocal ( location ) ; \n List < PhysicsRayTestResult > results = space . rayTest ( location , rayVector ) ; \n vars . release ( ) ; \n for ( PhysicsRayTestResult physicsRayTestResult : results ) {", "msg_token": "Added a little offset to the physics ray to correct detecting onGround"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class PresentationExamplesITest extends WithJetty { \n public class PresentationExamplesITest extends WithJetty { \n assertThat ( firstName , equalTo ( STRING0 ) ) ; \n assertThat ( lastName , equalTo ( STRING1 ) ) ; \n } \n + \n + @ test \n + public void advancedJsonValidation ( ) throws Exception { \n + expect ( ) . \n + statusCode ( allOf ( greaterThanOrEqualTo ( NUMBER0 ) , lessThanOrEqualTo ( NUMBER1 ) ) ) . \n + root ( STRING2 ) . \n + body ( STRING3 , hasItems ( STRING4 , STRING5 ) ) . \n + body ( STRING6 , Matchers . equalTo ( NUMBER2 ) ) . \n + when ( ) . \n + get ( STRING7 ) ; \n + } \n }", "msg_token": "Added new presentation example"} {"diff": " public class BlockTank extends BlockContainer implements ITextureProvider { \n \n int qty = tank . empty ( BuildCraftAPI . BUCKET_VOLUME , false ) ; \n \n - if ( filled != null && qty >= BuildCraftAPI . BUCKET_VOLUME ) { \n + LiquidStack liquid = LiquidManager . getLiquidForFilledItem ( filled ) ; \n + if ( liquid != null && qty >= liquid . amount ) { \n if ( current . stackSize > NUMBER0 && ! entityplayer . inventory . addItemStackToInventory ( filled ) ) { \n return false ; \n } \n entityplayer . inventory . setInventorySlotContents ( entityplayer . inventory . currentItem , \n Utils . consumeItem ( current ) ) ; \n - tank . empty ( BuildCraftAPI . BUCKET_VOLUME , true ) ; \n + tank . empty ( liquid . amount , true ) ; \n return true ; \n } \n }", "msg_token": "Added support for non standard capacity liquid container filling"} {"diff": " public class GitCherryPicker { \n \n @ notnull \n private static String commitDetails ( @ notnull GitCommitWrapper commit ) { \n - return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING0 + commit . getOriginalSubject ( ) + STRING1 ; \n + return commit . getCommit ( ) . getShortHash ( ) . toString ( ) + STRING2 + commit . getOriginalSubject ( ) ; \n } \n \n private void refreshChangedFiles ( @ notnull Collection < FilePath > filePaths ) {", "msg_token": "remove quotes from commit subject in notifications"} {"diff": " public class RcvSessionState \n rebuilders = rotator . buffers ( ) \n . map ( TermRebuilder : : new ) \n . toArray ( TermRebuilder [ ] : : new ) ; \n - cleanedTermId . lazySet ( initialTermId + NUMBER0 ) ; \n + cleanedTermId . lazySet ( initialTermId + CLEAN_WINDOW ) ; \n } \n \n public InetSocketAddress sourceAddress ( )", "msg_token": "clarify magic number"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ApiClientImpl implements ApiClient { \n new ObjectMapper ( ) \n . setPropertyNamingStrategy ( PropertyNamingStrategy . CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES ) \n . disable ( DeserializationFeature . FAIL_ON_UNKNOWN_PROPERTIES ) \n + . setVisibility ( PropertyAccessor . FIELD , JsonAutoDetect . Visibility . ANY ) \n . registerModule ( new GuavaModule ( ) ) \n . registerModule ( new JodaModule ( ) ) ) ; \n }", "msg_token": "Fixing serialization errors by using the same ObjectMapper config"} {"diff": " \n COMMENT \n - DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER . \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixing licence header"} {"diff": " public abstract class ProtoAdapter < E > { \n return size ; \n } \n \n - @ override public void encode ( ProtoWriter writer , List < E > value ) throws IOException { \n + @ override public void encode ( ProtoWriter writer , List < E > value ) { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n public final class ProtoReader { \n COMMENT \n COMMENT \n COMMENT \n - public FieldEncoding peekFieldEncoding ( ) throws IOException { \n + public FieldEncoding peekFieldEncoding ( ) { \n return nextFieldEncoding ; \n }", "msg_token": "Remove unused exception declarations"} {"diff": " public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider , \n \n public void availableSession ( ClientSession session , Presence presence ) { \n JID newlyAvailableJID = presence . getFrom ( ) ; \n + \n + if ( newlyAvailableJID == null ) { \n + return ; \n + } \n \n SINGLE \n try {", "msg_token": "Fixed potential null pointer exception in IQPEPHandler"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n if ( ! gone || ! win . mHaveFrame || win . mLayoutNeeded \n - || win . isConfigChanged ( ) \n + || win . mAttrs . type == TYPE_KEYGUARD && win . isConfigChanged ( ) \n + || mOpeningApps . contains ( win . mAppToken ) \n || win . mAttrs . type == TYPE_UNIVERSE_BACKGROUND ) { \n if ( ! win . mLayoutAttached ) { \n if ( initial ) {", "msg_token": "Tweak test for layout"} {"diff": " public class GithubRepository extends BaseRepositoryImpl { \n \n public GithubRepository ( GithubRepositoryType type ) { \n super ( type ) ; \n - setUrl ( GithubApiUtil . DEFAULT_GITHUB_HOST ) ; \n + setUrl ( STRING0 + GithubApiUtil . DEFAULT_GITHUB_HOST ) ; \n } \n \n @ notnull", "msg_token": "set default protocol"} {"diff": " public class ResPackage { \n return config ; \n } \n \n + public int getResSpecCount ( ) { \n + return mResSpecs . size ( ) ; \n + } \n + \n public ResConfig getOrCreateConfig ( ResConfigFlags flags ) \n throws AndrolibException { \n ResConfig config = mConfigs . get ( flags ) ;", "msg_token": "add method to return size of resPackage count of ResSpecs"} {"diff": " \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class BlockLockManager { \n LOG . error ( STRING0 , blockId ) ; \n return false ; \n } \n - mBlockIdToLockMap . put ( new BlockLock ( blockId ) ; \n + mBlockIdToLockMap . put ( blockId , new BlockLock ( blockId ) ) ; \n return true ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix a typo error in BlockMetaManager and correct the package name of BlockLockManager"} {"diff": " public class SeriesGuideDatabase extends SQLiteOpenHelper { \n \n public static final int DBVER_PERSHOWUPDATEDATE = NUMBER0 ; \n \n - public static final int DATABASE_VERSION = DBVER_AIRTIMECOLUMN ; \n + public static final int DATABASE_VERSION = DBVER_PERSHOWUPDATEDATE ; \n \n public interface Tables { \n String SHOWS = STRING0 ;", "msg_token": "Actually change the database version to initialize an upgrade oops"} {"diff": " public final class Intents { \n COMMENT \n COMMENT \n public static final String FORMATS = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String CAMERA_ID = STRING1 ; \n \n COMMENT \n COMMENT", "msg_token": "Added constant Intents Scan CAMERA_ID"} {"diff": " public class AsyncSSLSocketWrapper implements AsyncSocketWrapper , AsyncSSLSocket \n res = engine . wrap ( bb , mWriteTmp ) ; \n writeTmp ( mWriteTmp ) ; \n if ( res . getStatus ( ) == Status . BUFFER_OVERFLOW ) { \n - System . out . println ( STRING0 ) ; \n mWriteTmp = ByteBufferList . obtain ( mWriteTmp . capacity ( ) * NUMBER0 ) ; \n remaining = - NUMBER1 ; \n } \n public class AsyncSSLSocketWrapper implements AsyncSocketWrapper , AsyncSSLSocket \n bb . addAll ( arr ) ; \n writeTmp ( mWriteTmp ) ; \n if ( res . getStatus ( ) == Status . BUFFER_OVERFLOW ) { \n - System . out . println ( STRING0 ) ; \n mWriteTmp = ByteBufferList . obtain ( mWriteTmp . capacity ( ) * NUMBER0 ) ; \n remaining = - NUMBER1 ; \n }", "msg_token": "remove some system out spam"} {"diff": " public class DevicePolicyManager { \n public void setProfileName ( ComponentName who , String profileName ) { \n if ( mService != null ) { \n try { \n - mService . setProfileName ( who , profileName ) ; \n - } catch ( RemoteException e ) { \n - Log . w ( TAG , STRING0 , e ) ; \n + mService . setProfileName ( who , profileName ) ; \n + } catch ( RemoteException e ) { \n + Log . w ( TAG , STRING0 , e ) ; \n + } \n } \n } \n - } \n \n COMMENT \n COMMENT", "msg_token": "Fixed indentation in setProfileName method"} {"diff": " public class SpdyChannel extends AbstractFramedChannel < SpdyChannel , SpdyStreamSo \n \n @ override \n public AbstractFramedStreamSourceChannel < ? , ? , ? > getExistingChannel ( ) { \n - if ( type == SYN_STREAM ) { \n + if ( type == SYN_STREAM || type == WINDOW_UPDATE ) { \n return null ; \n } \n int id ; \n public class SpdySynStreamStreamSourceChannel extends SpdyStreamSourceChannel { \n this . deflater = deflater ; \n this . headers = headers ; \n this . streamId = streamId ; \n + this . flowControlWindow = framedChannel . getInitialWindowSize ( ) ; \n } \n \n public SpdySynReplyStreamSinkChannel getResponseChannel ( ) {", "msg_token": "Fix issue with SPDY flow control"} {"diff": " public class RestRolloverIndexAction extends BaseRestHandler { \n @ inject \n public RestRolloverIndexAction ( Settings settings , RestController controller , Client client ) { \n super ( settings , client ) ; \n - controller . registerHandler ( RestRequest . Method . PUT , STRING0 , this ) ; \n controller . registerHandler ( RestRequest . Method . POST , STRING0 , this ) ; \n controller . registerHandler ( RestRequest . Method . GET , STRING0 , this ) ; \n }", "msg_token": "remove put method"} {"diff": " public class MatchingSentence { \n public List < RuleMatch > getRuleMatches ( ) { \n return ruleMatches ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return sentence ; \n + } \n } \n public class PatternRuleQueryBuilder { \n SINGLE \n SINGLE \n SINGLE \n - posQuery = getWrappedRegexQuery ( element , POS_PREFIX + pos ) ; \n + posQuery = getWrappedRegexQuery ( element , POS_PREFIX + STRING0 + pos + STRING1 ) ; \n SINGLE \n } else { \n if ( element . getCaseSensitive ( ) ) { \n public class PatternRuleQueryBuilderTest extends LuceneTestCase { \n assertMatches ( makeRule ( STRING2 ) , NUMBER0 ) ; \n \n assertMatches ( makeRule ( STRING3 ) , NUMBER1 ) ; \n + assertMatches ( makeRule ( STRING4 ) , NUMBER1 ) ; \n + assertMatches ( makeRule ( STRING5 ) , NUMBER1 ) ; \n assertMatches ( makeRule ( STRING6 ) , NUMBER0 ) ; \n \n SINGLE", "msg_token": "fix some queries with POS tag regex"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix bad import"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class NonClasspathDirectoriesScope extends GlobalSearchScope { \n \n @ override \n public int hashCode ( ) { \n - int result = super . hashCode ( ) ; \n - result = NUMBER0 * result + myRoots . hashCode ( ) ; \n - return result ; \n + return myRoots . hashCode ( ) ; \n } \n \n @ notnull", "msg_token": "fixed hashCode and equals contract"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class GrBlockImpl extends LazyParseablePsiElement implements GrC \n } \n \n @ override \n + public void delete ( ) throws IncorrectOperationException { \n + if ( getParent ( ) instanceof ASTDelegatePsiElement ) { \n + CheckUtil . checkWritable ( this ) ; \n + ( ( ASTDelegatePsiElement ) getParent ( ) ) . deleteChildInternal ( getNode ( ) ) ; \n + } \n + else { \n + getParent ( ) . deleteChildRange ( this , this ) ; \n + } \n + } \n + \n + @ override \n public void removeElements ( PsiElement [ ] elements ) throws IncorrectOperationException { \n GroovyPsiElementImpl . removeElements ( this , elements ) ; \n }", "msg_token": "Split into declaration and assignment intention leaves unnecessary if applied to closures"} {"diff": " public class MatchQueryBuilder extends AbstractQueryBuilder < MatchQueryBuilder > { \n } \n } \n } else { \n + if ( fieldName != null ) { \n + throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 \n + + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ; \n + } \n fieldName = parser . currentName ( ) ; \n value = parser . objectText ( ) ; \n } \n public class MatchQueryBuilderTests extends AbstractQueryTestCase < MatchQueryBuil \n STRING3 ; \n ParsingException e = expectThrows ( ParsingException . class , ( ) - > parseQuery ( json ) ) ; \n assertEquals ( STRING4 , e . getMessage ( ) ) ; \n + \n + String shortJson = STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING3 ; \n + e = expectThrows ( ParsingException . class , ( ) - > parseQuery ( shortJson ) ) ; \n + assertEquals ( STRING4 , e . getMessage ( ) ) ; \n } \n }", "msg_token": "Throw parsing error if match query contains multiple fields in its short version"} {"diff": " class InstallPluginCommand extends SettingCommand { \n SINGLE \n SINGLE \n if ( MODULES . contains ( info . getName ( ) ) ) { \n - throw new UserException ( ExitCodes . USAGE , STRING0 + info . getName ( ) + STRING1 ) ; \n + throw new UserException ( \n + ExitCodes . USAGE , STRING0 + info . getName ( ) + STRING1 ) ; \n } \n \n SINGLE", "msg_token": "Fix style violation in InstallPluginCommand java"} {"diff": " public class CacheLoadAllOperation \n final Set < Data > keysLoaded = cache . loadAll ( filteredKeys , replaceExistingValues ) ; \n shouldBackup = ! keysLoaded . isEmpty ( ) ; \n if ( shouldBackup ) { \n - backupRecords = new HashMap < Data , CacheRecord > ( ) ; \n + backupRecords = new HashMap < Data , CacheRecord > ( keysLoaded . size ( ) ) ; \n for ( Data key : keysLoaded ) { \n - backupRecords . put ( key , cache . getRecord ( key ) ) ; \n + CacheRecord record = cache . getRecord ( key ) ; \n + SINGLE \n + SINGLE \n + if ( record != null ) { \n + backupRecords . put ( key , record ) ; \n + } \n } \n } \n } catch ( CacheException e ) {", "msg_token": "Check loaded keys are evicted or not at CacheLoadAllOperation"} {"diff": " public class CodeOutputPanel extends JPanel { \n public CodeOutputPanel ( @ notnull String outputText ) { \n super ( new BorderLayout ( ) ) ; \n \n - add ( new JTextArea ( outputText ) , BorderLayout . CENTER ) ; \n + JTextArea textArea = new JTextArea ( outputText ) ; \n + textArea . setEditable ( false ) ; \n + add ( textArea , BorderLayout . CENTER ) ; \n } \n }", "msg_token": "Don t edit output"} {"diff": " public class TransformUncorrelatedScalarToJoin \n SINGLE \n return new JoinNode ( \n idAllocator . getNextId ( ) , \n - JoinNode . Type . FULL , \n + JoinNode . Type . INNER , \n rewrittenNode . getInput ( ) , \n rewrittenNode . getSubquery ( ) , \n ImmutableList . of ( ) ,", "msg_token": "Use INNER join as result of TransformUncorrelatedScalarToJoin optimizer"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n public class ResettableClassFileTransformerResetTest { \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n public class AnnotationValueRenderingDispatcherTest { \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Removed import of specialized hamcrest matcher"} {"diff": " public interface AccountMethods \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface AccountMethodsAsync { \n void updateDeliveryDevice ( Device device ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface UserMethods \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n ResponseList < User > lookupUsers ( int [ ] ids ) throws TwitterException ;", "msg_token": "fixed JavaDoc errors"} {"diff": " class OptimizeParameters \n if ( varName != null ) { \n stmt = NodeUtil . newVarNode ( varName . getString ( ) , value ) ; \n } else { \n - stmt = IR . exprResult ( value ) ; \n + stmt = IR . exprResult ( value ) . useSourceInfoFrom ( value ) ; \n } \n block . addChildToFront ( stmt ) ; \n compiler . reportCodeChange ( ) ; \n public final class OptimizeParametersTest extends CompilerTestCase { \n @ override \n public void setUp ( ) { \n enableNormalize ( ) ; \n - enableLineNumberCheck ( false ) ; \n } \n \n public void testNoRemoval ( ) {", "msg_token": "Enable the line number check for OptimizeParametersTest"} {"diff": " public class NotificationsTest extends AndroidTestCase { \n Thread . sleep ( NUMBER0 ) ; \n } \n \n + Thread . sleep ( NUMBER0 ) ; SINGLE \n + \n Realm realm = Realm . getInstance ( getContext ( ) , false ) ; \n realm . beginTransaction ( ) ; \n Dog dog = realm . createObject ( Dog . class ) ; \n public class NotificationsTest extends AndroidTestCase { \n Thread . sleep ( NUMBER0 ) ; \n } \n \n + Thread . sleep ( NUMBER0 ) ; SINGLE \n + \n Realm realm = Realm . getInstance ( getContext ( ) ) ; \n realm . beginTransaction ( ) ; \n for ( int i = NUMBER1 ; i < TEST_SIZE ; i ++ ) {", "msg_token": "Give some time to start Loopers"} {"diff": " public final class ACRAConfiguration implements Serializable { \n keyStoreFactory = builder . keyStoreFactory ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ suppresswarnings ( STRING0 ) \n - public ACRAConfiguration ( ) { \n - SINGLE \n - this ( null ) ; \n - } \n - \n \n COMMENT \n COMMENT", "msg_token": "remove empty Constructor which resulted anyway always in a NPE"} {"diff": " public final class ComputationState { \n _activeData = _dinfo . filterExpandedColumns ( Arrays . copyOf ( cols , selected ) ) ; \n _activeBC = _bc . filterExpandedColumns ( _activeData . activeCols ( ) ) ; \n _gslvr = new GLMGradientSolver ( _jobKey , _parms , _activeData , ( NUMBER0 - _alpha ) * _lambda , _bc ) ; \n - } \n + assert _beta . length == selected ; \n + } else _activeData = _dinfo ; \n } \n return selected ; \n } \n public final class ComputationState { \n _gslvr = new GLMGradientSolver ( _jobKey , _parms , _dinfo , ( NUMBER0 - _alpha ) * _lambda , _bc ) ; \n GLMGradientInfo ginfo = _gslvr . getGradient ( beta ) ; \n double [ ] grad = ginfo . _gradient . clone ( ) ; \n - double err = NUMBER1 ; \n + double err = FLOAT0 ; \n ADMM . subgrad ( _alpha * _lambda , beta , grad ) ; \n for ( int c : activeCols ) SINGLE \n if ( grad [ c ] > err ) err = grad [ c ] ;", "msg_token": "Fixed glm strong rules added missing assignment when all columns become active"} {"diff": " public class TextField extends Widget implements Disableable { \n \n public boolean keyTyped ( InputEvent event , char character ) { \n if ( disabled ) return false ; \n + if ( character == NUMBER0 ) return false ; \n \n Stage stage = getStage ( ) ; \n if ( stage == null || stage . getKeyboardFocus ( ) != TextField . this ) return false ;", "msg_token": "Don t insert character zero"} {"diff": " public class OperationSetPresenceSipImpl \n logger . error ( STRING0 , e ) ; \n return false ; \n } \n - \n + } \n + SINGLE \n + else if ( response . getStatusCode ( ) >= NUMBER0 \n + && response . getStatusCode ( ) < NUMBER1 ) \n + { \n + SINGLE \n + SINGLE \n + } \n SINGLE \n SINGLE \n SINGLE \n - } \n else \n { \n if ( logger . isDebugEnabled ( ) )", "msg_token": "Skips provisional response for sip presence operation set"} {"diff": " public final class TvContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class TvContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add more documentation on start end time of TvContract Program"} {"diff": " public class ImapStore extends Store \n } \n } \n \n - class ImapMessage extends MimeMessage \n + static class ImapMessage extends MimeMessage \n { \n ImapMessage ( String uid , Folder folder ) \n { \n public class ImapStore extends Store \n } \n } \n \n - class ImapBodyPart extends MimeBodyPart \n + static class ImapBodyPart extends MimeBodyPart \n { \n public ImapBodyPart ( ) throws MessagingException \n { \n public class ImapStore extends Store \n } \n } \n \n - class ImapException extends MessagingException \n + static class ImapException extends MessagingException \n { \n String mAlertText ; \n \n public class ImapStore extends Store \n List < ImapResponse > search ( ) throws IOException , MessagingException ; \n } \n \n - private class FetchBodyCallback implements ImapResponseParser . IImapResponseCallback \n + private static class FetchBodyCallback implements ImapResponseParser . IImapResponseCallback \n { \n private HashMap < String , Message > mMessageMap ; \n \n public class ImapStore extends Store \n } \n } \n \n - private class FetchPartCallback implements ImapResponseParser . IImapResponseCallback \n + private static class FetchPartCallback implements ImapResponseParser . IImapResponseCallback \n { \n private Part mPart ;", "msg_token": "Don t reference the enclosing type instance when it s not used memory optimisation"} {"diff": " public class ShadowBundle { \n } \n \n @ implementation \n - public String getString ( String key , String defaultValue ) { \n - return map . containsKey ( key ) ? ( String ) map . get ( key ) : defaultValue ; \n + public String getString ( String key , String defaultValue ) { \n + Object value = map . get ( key ) ; \n + return value == null ? ( String ) value : defaultValue ; \n } \n \n @ implementation", "msg_token": "Match coding style already in place"} {"diff": " public class MainFrame extends JPanel implements DataProvider , Disposable { \n myTextFilter = myFilterUi . createTextFilter ( ) ; \n myToolbar = createActionsToolbar ( ) ; \n \n - myDetailsSplitter = new OnePixelSplitter ( true , FLOAT0 ) ; \n + myDetailsSplitter = new OnePixelSplitter ( true , STRING0 , FLOAT0 ) ; \n myDetailsSplitter . setFirstComponent ( setupScrolledGraph ( ) ) ; \n setupDetailsSplitter ( uiProperties . isShowDetails ( ) ) ; \n \n public class MainFrame extends JPanel implements DataProvider , Disposable { \n } \n } , this ) ; \n \n - myChangesBrowserSplitter = new OnePixelSplitter ( false , FLOAT0 ) ; \n + myChangesBrowserSplitter = new OnePixelSplitter ( false , STRING1 , FLOAT0 ) ; \n myChangesBrowserSplitter . setFirstComponent ( progressStripe ) ; \n myChangesBrowserSplitter . setSecondComponent ( myChangesLoadingPane ) ;", "msg_token": "vcs log remember splitter proportions in log window"} {"diff": " public class EditArticleAction extends PortletAction { \n expireArticles ( req ) ; \n } \n \n - sendRedirect ( req , res ) ; \n + if ( Validator . isNotNull ( cmd ) ) { \n + sendRedirect ( req , res ) ; \n + } \n } \n catch ( Exception e ) { \n if ( e != null &&", "msg_token": "Fix cmd check for article"} {"diff": " public interface GradleConnection { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface GradleConnection { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n < T > ModelBuilder < Set < T > > models ( Class < T > modelType ) ;", "msg_token": "remove javadoc warning"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GridCellImpl implements GridCell { \n public void resetDropOver ( TabInfo tabInfo ) { \n ( ( RunnerContentUi ) myContext ) . myTabs . resetDropOver ( tabInfo ) ; \n } \n + \n + @ override \n + protected TabLabel createTabLabel ( TabInfo info ) { \n + return new TabLabel ( this , info ) { \n + @ override \n + public void setAlignmentToCenter ( boolean toCenter ) { \n + super . setAlignmentToCenter ( false ) ; \n + } \n + } ; \n + } \n } . setDataProvider ( new DataProvider ( ) { \n @ override \n @ nullable", "msg_token": "Align debugger tab headers to the left"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Shortened the first statement of ChannelHandler description"} {"diff": " public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n private final boolean myTestModeFlag ; \n private final boolean myHeadlessMode ; \n private final boolean myCommandLineMode ; \n - private static volatile Boolean ourIsRunningFromSources ; \n \n private final boolean myIsInternal ; \n private final String myName ; \n public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n return myCommandLineMode ; \n } \n \n + private static class Holder { \n + private static final boolean ourIsRunningFromSources = new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ; \n + } \n public static boolean isRunningFromSources ( ) { \n - if ( ourIsRunningFromSources == null ) { \n - ourIsRunningFromSources = new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ; \n - } \n - return ourIsRunningFromSources ; \n + return Holder . ourIsRunningFromSources ; \n } \n \n @ notnull", "msg_token": "made field final"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix checkstyle issue"} {"diff": " public class ErrorCollector extends Verifier { \n COMMENT \n COMMENT \n public < T > void checkThat ( final T value , final Matcher < T > matcher ) { \n - checkSucceeds ( new Callable < Object > ( ) { \n - public Object call ( ) throws Exception { \n - assertThat ( value , matcher ) ; \n - return value ; \n - } \n - } ) ; \n + checkThat ( STRING0 , value , matcher ) ; \n } \n \n COMMENT \n public class ErrorCollector extends Verifier { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public Object checkSucceeds ( Callable < Object > callable ) { \n try { \n public class ErrorCollector extends Verifier { \n } catch ( Throwable e ) { \n addError ( e ) ; \n return null ; \n - } \n + } \n } \n }", "msg_token": "invoke overloaded method with default value instead of copy paste"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class Map { \n \n private final PokemonGo api ; \n public class Map { \n result . addPokestops ( groupedForts . get ( FortTypeOuterClass . FortType . CHECKPOINT ) ) ; \n } \n \n - lastMapObjects = result ; \n - lastMapUpdate = System . currentTimeMillis ( ) ; \n + if ( useCache ) { \n + cachedMapObjects . update ( result ) ; \n + result = cachedMapObjects ; \n + lastMapUpdate = System . currentTimeMillis ( ) ; \n + } \n + \n return result ; \n }", "msg_token": "Fixed the license"} {"diff": " public class BatchingPhysicalTransactionAppenderTest \n long ticket = appendCounter . incrementAndGet ( ) ; \n SINGLE \n Future < Object > forceFuture = t2 . executeDontWait ( forceAfterAppend ( appender , ticket ) ) ; \n - System . out . println ( t2 . waitUntilWaiting ( ) ) ; \n forceThreadControl . letLoose ( ) ; \n forceFuture . get ( ) ; \n }", "msg_token": "Remove println in test"} {"diff": " public class InputMethodService extends AbstractInputMethodService { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class InputMethodManager { \n \n try { \n if ( DEBUG ) Log . v ( TAG , STRING0 + mCurMethod ) ; \n - mCurMethod . updateSelection ( mCursorSelStart , mCursorSelEnd , \n - selStart , selEnd , candidatesStart , candidatesEnd ) ; \n + final int oldSelStart = mCursorSelStart ; \n + final int oldSelEnd = mCursorSelEnd ; \n + SINGLE \n + SINGLE \n + SINGLE \n mCursorSelStart = selStart ; \n mCursorSelEnd = selEnd ; \n mCursorCandStart = candidatesStart ; \n mCursorCandEnd = candidatesEnd ; \n + mCurMethod . updateSelection ( oldSelStart , oldSelEnd , \n + selStart , selEnd , candidatesStart , candidatesEnd ) ; \n } catch ( RemoteException e ) { \n Log . w ( TAG , STRING1 + mCurId , e ) ; \n }", "msg_token": "Don t send the same values to onUpdateSelection repeatedly"} {"diff": " public final class Buffer implements BufferedSource , BufferedSink , Cloneable { \n fromIndex -= segmentByteCount ; \n } else { \n byte [ ] data = s . data ; \n - for ( long pos = s . pos + fromIndex , limit = s . limit ; pos < limit ; pos ++ ) { \n - if ( data [ ( int ) pos ] == b ) return offset + pos - s . pos ; \n + for ( int pos = ( int ) ( s . pos + fromIndex ) , limit = s . limit ; pos < limit ; pos ++ ) { \n + if ( data [ pos ] == b ) return offset + pos - s . pos ; \n } \n fromIndex = NUMBER0 ; \n }", "msg_token": "Move a cast in Buffer indexOf"} {"diff": " public class ReplicaSetStatus { \n \n } catch ( final Exception e ) { \n \n - if ( ! _logger . get ( ) . isLoggable ( Level . WARNING ) ) { \n - _ok = false ; \n - return ; \n - } \n - \n final StringBuilder logError = ( new StringBuilder ( STRING0 ) ) . append ( _addr ) ; \n \n if ( ! ( ( _ok ) ? true : ( Math . random ( ) > FLOAT0 ) ) ) return ;", "msg_token": "removed check for enabled log level"} {"diff": " public final class MasterBlockInfo { \n private final Map < Long , Integer > mWorkerIdToAlias ; \n \n public MasterBlockInfo ( long blockId , long length ) { \n - SINGLE \n + SINGLE \n mBlockId = blockId ; \n mLength = length ; \n \n public final class MasterWorkerInfo { \n private long mLastUpdatedTimeMs ; \n COMMENT \n private boolean mIsRegistered ; \n - SINGLE \n + SINGLE \n COMMENT \n private List < Long > mTotalBytesOnTiers ; \n COMMENT", "msg_token": "Tagging TODOs in tachyon master block meta"} {"diff": " public class Neo4jMBean extends StandardMBean \n \n public static < T > T getBean ( int instanceId , Class < T > beanType ) \n { \n - if ( beanType . isInterface ( ) && beanType . getPackage ( ) . equals ( STRING0 ) ) \n + if ( beanType . isInterface ( ) \n + && beanType . getPackage ( ) . getName ( ) . equals ( \n + STRING0 ) ) \n { \n if ( PROXY_MAKER == null ) \n {", "msg_token": "Fixed problem in package checking"} {"diff": " public class CliClient \n sessionState . out . println ( STRING0 ) ; \n try \n { \n + sessionState . out . println ( STRING1 + thriftClient . describe_cluster_name ( ) ) ; \n sessionState . out . println ( STRING2 + thriftClient . describe_snitch ( ) ) ; \n sessionState . out . println ( STRING3 + thriftClient . describe_partitioner ( ) ) ;", "msg_token": "Print cluster name in describe cluster"} {"diff": " public class ConstrainedProperty implements Constrained { \n for ( Object constraintFactory : candidateConstraints ) { \n \n Constraint c ; \n - if ( constraintFactory instanceof org . codehaus . groovy . grails . validation . ConstraintFactory ) { \n - c = ( ( org . codehaus . groovy . grails . validation . ConstraintFactory ) constraintFactory ) . newInstance ( ) ; \n - } \n - else if ( constraintFactory instanceof ConstraintFactory ) { \n + if ( constraintFactory instanceof ConstraintFactory ) { \n c = ( ( ConstraintFactory ) constraintFactory ) . newInstance ( ) ; \n } \n else { \n public class GrailsDomainClassValidator implements CascadingValidator , GrailsApp \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n public void validate ( Object obj , Errors errors , boolean cascade ) {", "msg_token": "Remove references to deprecated classes"} {"diff": " public abstract class AbstractApplicationContext extends DefaultResourceLoader \n return getBeanFactory ( ) . getBeansWithAnnotation ( annotationType ) ; \n } \n \n - public Map < String , Object > getBeansWithAnnotation ( \n - Class < ? extends Annotation > annotationType , boolean includeNonSingletons , boolean allowEagerInit ) \n - throws BeansException { \n - \n - return getBeanFactory ( ) . getBeansWithAnnotation ( annotationType , includeNonSingletons , allowEagerInit ) ; \n - } \n - \n public < A extends Annotation > A findAnnotationOnBean ( String beanName , Class < A > annotationType ) { \n return getBeanFactory ( ) . findAnnotationOnBean ( beanName , annotationType ) ; \n }", "msg_token": "removed getBeansWithAnnotation Class boolean boolean method from ListableBeanFactory reimplemented getBeansWithAnnotation Class to avoid use of getBeanNamesForType Object class"} {"diff": " import NAMESPACE ; \n public interface HostedConnection extends MessageConnection \n { \n COMMENT \n + COMMENT \n + COMMENT \n + public Server getServer ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public int getId ( ) ; \n public class DefaultServer implements Server \n { \n id = nextId . getAndIncrement ( ) ; \n } \n - \n + \n + public Server getServer ( ) \n + { \n + return DefaultServer . this ; \n + } \n + \n public int getId ( ) \n { \n return id ;", "msg_token": "HostedConnection can now supply the Server instance"} {"diff": " public class StripedFileTestUtil { \n public static LocatedBlocks waitForReconstructionFinished ( Path file , \n DistributedFileSystem fs , int groupSize ) \n throws Exception { \n + LOG . info ( STRING0 + file \n + + STRING1 + groupSize ) ; \n final int attempts = NUMBER0 ; \n for ( int i = NUMBER1 ; i < attempts ; i ++ ) { \n LocatedBlocks locatedBlocks = getLocatedBlocks ( file , fs ) ; \n public class TestReconstructStripedBlocks { \n \n SINGLE \n SINGLE \n + StripedFileTestUtil . waitForReconstructionFinished ( filePath , fs , \n + GROUP_SIZE ) ; \n boolean reconstructed = false ; \n for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) { \n NumberReplicas num = null ;", "msg_token": "Fix TestReconstructStripedBlocks testCountLiveReplicas test failures"} {"diff": " \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added comment header"} {"diff": " public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , Prog \n COMMENT \n COMMENT \n COMMENT \n - public STATE onContentWriteProgess ( long amount , long current , long total ) { \n + public STATE onContentWriteProgress ( long amount , long current , long total ) { \n return STATE . CONTINUE ; \n } \n } \n public interface ProgressAsyncHandler < T > extends AsyncHandler < T > { \n COMMENT \n COMMENT \n COMMENT \n - STATE onContentWriteProgess ( long amount , long current , long total ) ; \n + STATE onContentWriteProgress ( long amount , long current , long total ) ; \n \n }", "msg_token": "Fix API method typo"} {"diff": " public class LuceneInvertedIndex implements InvertedIndex , IndexReader . ReaderClos \n private AtomicInteger totalWords = new AtomicInteger ( NUMBER0 ) ; \n private int batchSize = NUMBER1 ; \n private List < List < VocabWord > > miniBatches = new ArrayList < > ( ) ; \n - private List < VocabWord > currMiniBatch = new CopyOnWriteArrayList < > ( ) ; \n + private List < VocabWord > currMiniBatch = Collections . synchronizedList ( new ArrayList < VocabWord > ( ) ) ; \n private double sample = NUMBER0 ; \n private AtomicLong nextRandom = new AtomicLong ( NUMBER2 ) ;", "msg_token": "faster write performance"} {"diff": " public class Lexer \n case ( STRING0 ) : \n { \n consume ( ) ; \n - \n if ( la ( ) == STRING1 ) \n { \n consume ( ) ; \n } \n - break CONSUME_LOOP ; \n + break CONSUME_LOOP ; \n } \n case ( STRING1 ) : \n { \n public class Lexer \n case ( STRING2 ) : \n { \n consume ( ) ; \n - if ( la ( NUMBER0 ) == STRING3 ) \n + if ( la ( ) == STRING3 ) \n { \n consume ( ) ; \n break CONSUME_LOOP ;", "msg_token": "Fixing comment lexing"} {"diff": " public class FMLDeobfuscatingRemapper extends Remapper { \n String methodDescriptor = name + desc ; \n return methodMap != null && methodMap . containsKey ( methodDescriptor ) ? methodMap . get ( methodDescriptor ) : name ; \n } \n + \n + @ override \n + public String mapSignature ( String signature , boolean typeSignature ) \n + { \n + SINGLE \n + if ( signature != null && signature . contains ( STRING0 ) ) \n + { \n + return null ; \n + } \n + return super . mapSignature ( signature , typeSignature ) ; \n + } \n \n private Map < String , String > getFieldMap ( String className ) \n {", "msg_token": "Fix ASM SignatureReader choking on lambda signatures generated by JDT"} {"diff": " public class DirectorySettingsForm \n COMMENT \n COMMENT \n COMMENT \n - private JCheckBox encryptionBox = new JCheckBox ( \n + private JCheckBox encryptionBox = new SIPCommCheckBox ( \n Resources . getString ( STRING0 ) ) ; \n \n COMMENT", "msg_token": "Use the Jitsi L F on the SSL checkbox in the LDAP config form"} {"diff": " public abstract class JSON implements JSONStreamAware , JSONAware { \n DEFAULT_GENERATE_FEATURE = features ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void setDefaultTypeKey ( String typeKey ) { \n DEFAULT_TYPE_KEY = typeKey ; \n ParserConfig . global . symbolTable . addSymbol ( typeKey ,", "msg_token": "add JSON setDefaultTypeKey java doc since info"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class CountingRetry implements RetryPolicy { \n \n private final int mMaxRetries ; \n - private int mCount = NUMBER0 ; \n + private int mCount = - NUMBER1 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public CountingRetry ( int maxRetries ) { \n Preconditions . checkArgument ( maxRetries > NUMBER0 , STRING0 ) ; \n mMaxRetries = maxRetries ; \n public class CountingRetry implements RetryPolicy { \n \n @ override \n public boolean attemptRetry ( ) { \n - if ( mMaxRetries > mCount ) { \n - mCount ++ ; \n - return true ; \n - } \n - return false ; \n + ++ mCount ; \n + return mCount < mMaxRetries ; \n } \n }", "msg_token": "simplifying the condition and adding javadoc"} {"diff": " public class ResequenceDSLTest extends GroovyRendererTestSupport { \n \n @ test \n public void testResequencer ( ) throws Exception { \n - String dsl = STRING0 ; \n + String dsl = STRING1 ; \n String expected = STRING1 ; \n \n assertEquals ( expected , render ( dsl ) ) ;", "msg_token": "Fixed broken unit test"} {"diff": " public class ErrorActivity extends AppCompatActivity { \n public static final int REQUESTED_STREAM = NUMBER0 ; \n public static final String SEARCHED_STRING = STRING0 ; \n public static final String REQUESTED_STREAM_STRING = STRING1 ; \n - public static final String ERROR_EMAIL_ADDRESS = STRING2 ; \n + public static final String ERROR_EMAIL_ADDRESS = STRING3 ; \n public static final String ERROR_EMAIL_SUBJECT = STRING4 + BuildConfig . VERSION_NAME ; \n \n private List < Exception > errorList ;", "msg_token": "changed crashreport email address"} {"diff": " public class IndexBufferObjectSubData implements IndexData { \n public void setIndices ( short [ ] indices , int offset , int count ) { \n isDirty = true ; \n buffer . clear ( ) ; \n - buffer . put ( indices ) ; \n + buffer . put ( indices , offset , count ) ; \n buffer . flip ( ) ; \n byteBuffer . position ( NUMBER0 ) ; \n byteBuffer . limit ( count < < NUMBER1 ) ;", "msg_token": "fixed bug in IndexBufferObjectSubData thanks Eric"} {"diff": " public class Configuration \n STRING0 + \n STRING1 ) ; \n FMLLog . warning ( STRING2 , fileName , category , key , defaultID ) ; \n - defaultID = upper ; \n + defaultID = upper - NUMBER0 ; \n } \n \n if ( Block . blocksList [ defaultID ] == null && ! configMarkers [ defaultID ] )", "msg_token": "Fixed AIOOB issue with new sanity check in getBlock"} {"diff": " public final class CommandLineRunnerTest extends TestCase { \n compileArgs ( expectedOutput , null ) ; \n } \n \n + @ safevarargs \n private final void compileFilesError ( \n DiagnosticType expectedError , FlagEntry < JsSourceType > . . . entries ) { \n setupFlags ( entries ) ; \n compileArgs ( STRING0 , expectedError ) ; \n } \n \n + @ safevarargs \n private final void setupFlags ( FlagEntry < JsSourceType > . . . entries ) { \n for ( FlagEntry < JsSourceType > entry : entries ) { \n args . add ( STRING1 + entry . flag . flagName + STRING2 + entry . value ) ;", "msg_token": "Add SafeVarargs to methods that cause warnings again"} {"diff": " public class DeepLearningV3 extends SupervisedModelBuilderSchema < DeepLearning , De \n SINGLE \n static public String [ ] own_fields = new String [ ] { \n SINGLE \n - STRING0 , \n + SINGLE \n STRING1 , \n STRING2 , \n STRING3 , \n public class DeepLearningV3 extends SupervisedModelBuilderSchema < DeepLearning , De \n SINGLE \n SINGLE \n \n - @ api ( help = STRING4 , level = API . Level . expert , direction = API . Direction . INOUT ) \n - public boolean keep_cross_validation_splits ; \n + SINGLE \n + SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Remove keep_cross_validation_splits for now from DL until nfolds is implemented"} {"diff": " public abstract class SanitizedSecret { \n @ jsonproperty ( STRING0 ) @ nullable String type , \n @ jsonproperty ( STRING1 ) @ nullable Map < String , String > generationOptions , \n @ jsonproperty ( STRING2 ) long expiry , \n - @ jsonproperty ( STRING3 ) @ nullable List < String > groups ) { \n + @ jsonproperty ( STRING3 ) List < String > groups ) { \n ImmutableMap < String , String > meta = \n ( metadata == null ) ? ImmutableMap . of ( ) : ImmutableMap . copyOf ( metadata ) ; \n ImmutableMap < String , String > genOptions =", "msg_token": "Make groups non nullable"} {"diff": " public abstract class TestSupport extends TestCase { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static void assertFileNotExists ( String filename ) { \n + File file = new File ( filename ) . getAbsoluteFile ( ) ; \n + assertFalse ( STRING0 + filename + STRING1 , file . exists ( ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added assertFileNotExists to test kit"} {"diff": " public class VcsInfoCollector { \n } \n \n return SourceControlInfo . builder ( ) \n + . setRevisionId ( vcCmdLineInterface . currentRevisionId ( ) ) \n . setDirtyFiles ( vcCmdLineInterface . changedFiles ( STRING0 ) ) \n . setFilesChangedFromMasterBranchPoint ( filesChangedFromMasterBranchPoint ) \n . build ( ) ; \n public class VcsInfoCollector { \n @ value.immutable \n @ buckstyleimmutable \n interface AbstractSourceControlInfo { \n + String getRevisionId ( ) ; \n ImmutableSet < String > getDirtyFiles ( ) ; \n Optional < ImmutableSet < String > > getFilesChangedFromMasterBranchPoint ( ) ; \n }", "msg_token": "Add repo revisionId to buck rage log"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class main { \n public class main { \n COMMENT \n COMMENT \n public static void main ( String [ ] args ) { \n + Locale locale = new Locale ( STRING0 , STRING1 ) ; \n + Locale . setDefault ( locale ) ; \n + \n CommandLineParser parser = new PosixParser ( ) ; \n CommandLine commandLine ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class main { \n COMMENT \n COMMENT \n public static void main ( String [ ] args ) { \n + Locale locale = new Locale ( STRING0 , STRING1 ) ; \n + Locale . setDefault ( locale ) ; \n + \n CommandLineParser parser = new PosixParser ( ) ; \n CommandLine commandLine ;", "msg_token": "Set the default local to en US to avoid locale specific weirdness"} {"diff": " class GithubErrorMessageRaw { \n \n private static class Error { \n @ nullable public String resource ; \n + @ nullable public String field ; \n @ nullable public String code ; \n @ nullable public String message ; \n } \n class GithubErrorMessageRaw { \n else { \n StringBuilder s = new StringBuilder ( message ) ; \n for ( Error e : errors ) { \n - s . append ( STRING0 ) . append ( STRING1 ) . append ( e . resource ) . append ( STRING2 ) . append ( e . code ) . append ( STRING3 ) . append ( e . message ) ; \n + s . append ( STRING0 ) . append ( STRING1 ) . append ( e . resource ) . append ( STRING4 ) . append ( e . field ) . append ( STRING2 ) . append ( e . code ) . append ( STRING3 ) \n + . append ( e . message ) ; \n } \n return s . toString ( ) ; \n }", "msg_token": "add field to parse"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface CustomDomChildrenDescription extends AbstractDomChildrenDescrip \n } \n \n @ override \n - public PomTarget findDeclaration ( @ notnull EvaluatedXmlName name ) { \n + public PomTarget findDeclaration ( DomElement parent , @ notnull EvaluatedXmlName name ) { \n return null ; \n } \n \n public interface CustomDomChildrenDescription extends AbstractDomChildrenDescrip \n public abstract Set < EvaluatedXmlName > getCompletionVariants ( @ notnull DomElement parent ) ; \n \n @ nullable \n - public abstract PomTarget findDeclaration ( @ notnull EvaluatedXmlName name ) ; \n + public abstract PomTarget findDeclaration ( DomElement parent , @ notnull EvaluatedXmlName name ) ; \n \n @ nullable \n public abstract PomTarget findDeclaration ( @ notnull DomElement child ) ;", "msg_token": "added parentElement parameter"} {"diff": " final class WebViewInputDispatcher { \n return false ; \n } \n long downDuration = event . getEventTime ( ) - event . getDownTime ( ) ; \n - return downDuration < TAP_TIMEOUT ; \n + return downDuration < LONG_PRESS_TIMEOUT ; \n } \n \n private void enqueueDoubleTapLocked ( MotionEvent event ) {", "msg_token": "Use the right timeout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ServerStatus { \n public void setStatsMode ( boolean statsMode ) { \n if ( statsMode ) { \n addCapability ( Capability . STATSMODE ) ; \n + } else { \n + removeCapability ( Capability . STATSMODE ) ; \n } \n } \n \n + private ServerStatus removeCapability ( Capability capability ) { \n + this . capabilitySet . remove ( capability ) ; \n + return this ; \n + } \n + \n public void setLocalMode ( boolean localMode ) { \n if ( localMode ) { \n addCapability ( Capability . LOCALMODE ) ; \n + } else { \n + removeCapability ( Capability . LOCALMODE ) ; \n } \n } \n }", "msg_token": "Adding methods to remove capabilities fixing some setters"} {"diff": " public final class SystemServer { \n SINGLE \n SINGLE \n if ( isEmulator ) { \n - Slog . i ( TAG , STRING0 ) ; \n + Slog . i ( TAG , STRING1 ) ; \n } else if ( mFactoryTestMode == FactoryTest . FACTORY_TEST_LOW_LEVEL ) { \n Slog . i ( TAG , STRING2 ) ; \n } else if ( ! context . getPackageManager ( ) . hasSystemFeature", "msg_token": "Fix Bluetooh logging typo"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n \n } else if ( currentConfig != null ) { \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n mTempConfiguration . setToDefaults ( ) ; \n + mTempConfiguration . fontScale = currentConfig . fontScale ; \n if ( computeNewConfigurationLocked ( mTempConfiguration ) ) { \n if ( currentConfig . diff ( mTempConfiguration ) != NUMBER0 ) { \n mWaitingForConfig = true ;", "msg_token": "Fixing font scale in WindowManagerService"} {"diff": " public class SerializerBaseTest extends TestCase { \n assertTrue ( s2 . toString ( ) . contains ( STRING0 ) ) ; \n } \n \n + public void test_multi_dim_array ( ) { \n + int [ ] [ ] arr = new int [ ] [ ] { { NUMBER0 , NUMBER1 , NUMBER2 } , { NUMBER3 , NUMBER4 , NUMBER5 } } ; \n + int [ ] [ ] arr2 = ( int [ ] [ ] ) Utils . clone ( arr , Serializer . BASIC_SERIALIZER ) ; \n + assertArrayEquals ( arr , arr2 ) ; \n + } \n + \n + public void test_multi_dim_array2 ( ) { \n + Object [ ] [ ] arr = new Object [ ] [ ] { { NUMBER0 , NUMBER1 , NUMBER2 } , { NUMBER3 , NUMBER4 , NUMBER5 } } ; \n + Object [ ] [ ] arr2 = ( Object [ ] [ ] ) Utils . clone ( arr , Serializer . BASIC_SERIALIZER ) ; \n + assertArrayEquals ( arr , arr2 ) ; \n + } \n + \n + \n }", "msg_token": "Add serialization test for multi dimensional arrays"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class EmptyEnumeration implements Enumeration { \n \n static EmptyEnumeration staticInstance = new EmptyEnumeration ( ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n \n public class LRUCache \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class Queue { \n private Vector vector = new Vector ( ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public final class SimpleHashtable implements Enumeration \n { \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class SimplePool {", "msg_token": "Deprecate classes that are no longer used"} {"diff": " public class GenericMessage < T > implements Message < T > , Serializable { \n else { \n headers = new HashMap < String , Object > ( headers ) ; \n } \n - this . headers = new MessageHeaders ( headers ) ; \n + this . headers = createMessageHeaders ( headers ) ; \n this . payload = payload ; \n } \n \n \n + protected MessageHeaders createMessageHeaders ( Map < String , Object > headers ) { \n + return new MessageHeaders ( headers ) ; \n + } \n + \n public MessageHeaders getHeaders ( ) { \n return this . headers ; \n }", "msg_token": "Add method to create MessageHeaders in Message"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class IpnbStreamPanel extends IpnbCodeOutputPanel < IpnbStreamOutputCell > { \n public IpnbStreamPanel ( @ notnull final IpnbStreamOutputCell cell ) { \n super ( cell ) ; \n } \n + \n + @ override \n + protected JComponent createViewPanel ( ) { \n + final JComponent viewPanel = super . createViewPanel ( ) ; \n + if ( STRING0 . equals ( myCell . getStream ( ) ) ) { \n + viewPanel . setBackground ( MessageType . ERROR . getPopupBackground ( ) ) ; \n + } \n + return viewPanel ; \n + } \n }", "msg_token": "added background for the pyerr output"} {"diff": " public class PointSetResource { \n if ( pset == null ) { \n return Response . status ( Status . NOT_FOUND ) . entity ( STRING0 ) . build ( ) ; \n } \n + if ( pset . capacity > NUMBER0 ) { \n + SINGLE \n + return Response . ok ( ) . entity ( new PointSetShort ( pointSetId , pset ) ) . build ( ) ; \n + } \n return Response . ok ( ) . entity ( new StreamingOutput ( ) { \n @ override \n public void write ( OutputStream output ) throws IOException , WebApplicationException {", "msg_token": "do not return complete description of enormous pointsets"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class UpdateManager { \n private static final UpdateManager instance = new UpdateManager ( ) ; \n private final AbstractReleaseCallback releaseCallback ;", "msg_token": "Adds explanations on UpdateManager"} {"diff": " public class ByWord { \n indicator . checkCanceled ( ) ; \n \n SINGLE \n + SINGLE \n + SINGLE \n \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE \n public class ByWord { \n @ notnull List < InlineChunk > words2 , \n @ notnull FairDiffIterable iterable , \n @ notnull ProgressIndicator indicator ) { \n - SINGLE \n List < Range > newRanges = new ArrayList < Range > ( ) ; \n \n for ( Range range : iterable . iterateUnchanged ( ) ) {", "msg_token": "add thoughts into TODO"} {"diff": " public class OHttpGraphResponse extends OHttpResponse { \n json . writeAttribute ( STRING0 , edge . getIdentity ( ) ) ; \n json . writeAttribute ( STRING1 , edge . getRecord ( ) . getClassName ( ) ) ; \n \n - json . writeAttribute ( STRING2 , edge . getVertex ( Direction . OUT ) . getId ( ) ) ; \n - json . writeAttribute ( STRING3 , edge . getVertex ( Direction . IN ) . getId ( ) ) ; \n + json . writeAttribute ( STRING4 , edge . getVertex ( Direction . OUT ) . getId ( ) ) ; \n + json . writeAttribute ( STRING5 , edge . getVertex ( Direction . IN ) . getId ( ) ) ; \n \n for ( String field : edge . getPropertyKeys ( ) ) { \n final Object v = edge . getProperty ( field ) ;", "msg_token": "Changed Edge props From To In Out as before"} {"diff": " public class Picasso { \n COMMENT \n public enum LoadedFrom { \n MEMORY ( Color . GREEN ) , \n - DISK ( Color . YELLOW ) , \n + DISK ( Color . BLUE ) , \n NETWORK ( Color . RED ) ; \n \n final int debugColor ;", "msg_token": "Using colourblind friendly LoadedFrom indicators"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n \n releaseExternalResources ( ) ; \n if ( notifierFuture != null ) { \n - notifierFuture . cancel ( true ) ; \n + notifierFuture . cancel ( false ) ; \n } \n \n if ( asyncWriteFuture != null ) { \n - asyncWriteFuture . cancel ( true ) ; \n + asyncWriteFuture . cancel ( false ) ; \n } \n \n if ( bc != null ) {", "msg_token": "Stop execution when we get destroyed"} {"diff": " public class ReaderBlogIdPostIdList extends ArrayList < ReaderBlogIdPostId > \n public ReaderBlogIdPostIdList ( Serializable serializedList ) { \n super ( ) ; \n if ( serializedList != null && serializedList instanceof ArrayList ) { \n + SINGLE \n ArrayList < ReaderBlogIdPostId > list = ( ArrayList < ReaderBlogIdPostId > ) serializedList ; \n for ( ReaderBlogIdPostId idPair : list ) { \n this . add ( idPair ) ;", "msg_token": "Suppress unchecked warning in ReaderBlogIdPostIdList"} {"diff": " public class AioSocketChannel extends AbstractAioChannel implements SocketChanne \n SINGLE \n SINGLE \n byteBuf . writerIndex ( byteBuf . writerIndex ( ) + localReadAmount ) ; \n - expandReadBuffer ( byteBuf ) ; \n \n read = true ; \n } else if ( localReadAmount < NUMBER0 ) { \n public class AioSocketChannel extends AbstractAioChannel implements SocketChanne \n \n @ override \n protected void completed0 ( Void result , AioSocketChannel channel ) { \n - channel . beginRead ( ) ; \n ( ( AbstractAioUnsafe ) channel . unsafe ( ) ) . connectSuccess ( ) ; \n channel . pipeline ( ) . fireChannelActive ( ) ; \n + channel . beginRead ( ) ; \n } \n \n @ override", "msg_token": "Ensure unmodified buffer delivered via pipeline after read completes but before next read begins"} {"diff": " public abstract class ArrangementSettingsPanel extends CodeStyleAbstractPanel { \n \n @ override \n public void apply ( CodeStyleSettings settings ) { \n + myMatchingRulesPanel . hideEditor ( ) ; \n + \n CommonCodeStyleSettings commonSettings = settings . getCommonSettings ( myLanguage ) ; \n commonSettings . setArrangementSettings ( createSettings ( ) ) ; \n if ( myForceArrangementPanel != null ) { \n public class ArrangementMatchingRulesPanel extends JPanel implements DataProvide \n myControl . setRulesAliases ( aliases ) ; \n } \n \n + public void hideEditor ( ) { \n + myControl . hideEditor ( ) ; \n + } \n + \n @ nullable \n @ override \n public Object getData ( @ nonnls String dataId ) {", "msg_token": "Apply button should quit edit mode"} {"diff": " public class MessageProvider extends ContentProvider \n @ override \n public Long getField ( final MessageInfoHolder source ) \n { \n - return ( ( LocalStore . LocalMessage ) source . message ) . getId ( ) ; \n + return source . message . getId ( ) ; \n } \n } \n public static class CountExtractor < T > implements FieldExtractor < T , Integer >", "msg_token": "Removed unnecessary type cast"} {"diff": " public class TestHostConfigAutomaticDeployment extends TomcatBaseTest { \n true , false , false , XML_COOKIE_NAME , REDEPLOY ) ; \n } \n \n + @ test \n + public void testModifyXmlDirUpdateDir ( ) throws Exception { \n + doTestModify ( true , false , false , false , true , DIR , \n + true , false , true , XML_COOKIE_NAME , NONE ) ; \n + } \n + \n private void doTestModify ( boolean startXml , boolean startExternalWar , \n boolean startExternalDir , boolean startWar , boolean startDir , \n int toModify , boolean resultXml , boolean resultWar , \n public class TestHostConfigAutomaticDeployment extends TomcatBaseTest { \n Assert . assertNull ( newContext ) ; \n } \n if ( ! resultWar && ! resultDir ) { \n - if ( resultXml ) { \n + if ( resultXml && ! startExternalWar && ! startExternalDir ) { \n Assert . assertEquals ( LifecycleState . FAILED , newContext . getState ( ) ) ; \n } else { \n Assert . assertNull ( newContext ) ;", "msg_token": "Add another test"} {"diff": " public class Table \n COMMENT \n COMMENT \n COMMENT \n - public void doGC ( ) \n + public void forceCleanup ( ) \n { \n Set < String > columnFamilies = tableMetadata_ . getColumnFamilies ( ) ; \n for ( String columnFamily : columnFamilies ) \n public final class StorageService implements IEndPointStateChangeSubscriber , Sto \n doBootstrap ( nodes ) ; \n } \n \n - public void doGC ( ) \n + public void forceTableCleanup ( ) \n { \n List < String > tables = DatabaseDescriptor . getTables ( ) ; \n for ( String tName : tables ) \n { \n Table table = Table . open ( tName ) ; \n - table . doGC ( ) ; \n + table . forceCleanup ( ) ; \n } \n } \n \n public interface StorageServiceMBean \n COMMENT \n COMMENT \n COMMENT \n - public void doGC ( ) ; \n + public void forceTableCleanup ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "rename Table doGC to forceCleanup"} {"diff": " public class JobManager implements DeploymentManager , ExtendedManagementProtocol \n \n SINGLE \n final ExecutionState executionState = connectedVertex . getExecutionState ( ) ; \n + if ( executionState == ExecutionState . FINISHED ) { \n + return ConnectionInfoLookupResponse . createReceiverFoundAndReady ( ) ; \n + } \n + \n if ( executionState != ExecutionState . RUNNING && executionState != ExecutionState . FINISHING ) { \n return ConnectionInfoLookupResponse . createReceiverNotReady ( ) ; \n } \n public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc \n + transferEnvelope . getSource ( ) + STRING0 ) ; \n } \n \n - if ( receiverList . getTotalNumberOfReceivers ( ) == NUMBER0 ) { \n - throw new IOException ( STRING1 + transferEnvelope . getSequenceNumber ( ) \n - + STRING2 + transferEnvelope . getSource ( ) + STRING3 ) ; \n - } \n - \n SINGLE \n if ( transferEnvelope . getBuffer ( ) == null ) { \n processEnvelopeEnvelopeWithoutBuffer ( transferEnvelope , receiverList ) ;", "msg_token": "Improved robustness of lookup protocol"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class IdentifierTable { \n - private THashMap < String , String > myMap = new THashMap < String , String > ( NUMBER0 , FLOAT0 ) ; \n + private THashMap < String , String > myMap = new THashMap < String , String > ( NUMBER0 , FLOAT0 ) ; \n \n - public String intern ( String name ) { \n - String entry = myMap . get ( name ) ; \n - if ( entry == null ) { \n - myMap . put ( name , name ) ; \n - entry = name ; \n - } \n - return entry ; \n + public String intern ( String name ) { \n + String entry = myMap . get ( name ) ; \n + if ( entry == null ) { \n + name = new String ( name ) ; \n + myMap . put ( name , name ) ; \n + entry = name ; \n } \n + return entry ; \n + } \n }", "msg_token": "Optimizing garbage memory allocations for repository index queries"} {"diff": " public class RandomUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RandomUtils { \n if ( min == max ) { \n return min ; \n } \n - \n - Random random = new Random ( ) ; \n - return min + random . nextInt ( max - min ) ; \n + return min + new Random ( ) . nextInt ( max - min ) ; \n } \n \n COMMENT", "msg_token": "delete unuse variable name"} {"diff": " class Http2Parser { \n } \n \n \n - void setHpackDecoder ( HpackDecoder hpackDecoder ) { \n - this . hpackDecoder = hpackDecoder ; \n - } \n - \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class XaLogicalLog implements LogLoader \n { \n XaTransaction xaTx = xaRm . getXaTransaction ( xid ) ; \n xaTx . setCommitTxId ( txId ) ; \n - COMMENT \n - COMMENT \n - COMMENT \n + cacheTxStartPosition ( txId , startEntry . getMasterId ( ) , startEntry ) ; \n xaRm . injectOnePhaseCommit ( xid ) ; \n registerRecoveredTransaction ( txId ) ; \n } \n public class XaLogicalLog implements LogLoader \n { \n XaTransaction xaTx = xaRm . getXaTransaction ( xid ) ; \n xaTx . setCommitTxId ( txId ) ; \n - COMMENT \n - COMMENT \n - COMMENT \n + cacheTxStartPosition ( txId , identifier , startEntry ) ; \n xaRm . injectTwoPhaseCommit ( xid ) ; \n registerRecoveredTransaction ( txId ) ; \n } \n public class XaLogicalLog implements LogLoader \n { \n for ( LogEntry entry : logEntries ) \n { \n + if ( entry instanceof Start ) ( ( Start ) entry ) . setStartPosition ( writeBuffer . getFileChannelPosition ( ) ) ; \n LogIoUtils . writeLogEntry ( entry , writeBuffer ) ; \n applyEntry ( entry ) ; \n }", "msg_token": "Updates the correct start position on start log entries before applying them so that their position can be cached correctly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalStore extends Store implements Serializable { \n String new_html ; \n \n new_html = cursor . getString ( NUMBER0 ) ; \n - new_html = new_html . replaceAll ( STRING0 + contentId , \n + new_html = new_html . replaceAll ( Pattern . quote ( STRING0 + contentId ) , \n contentUri . toString ( ) ) ; \n \n ContentValues cv = new ContentValues ( ) ;", "msg_token": "Quote CID before using it in a regular expression"} {"diff": " public class ModelRuleInspector { \n return new InvalidModelRuleDeclarationException ( sb . toString ( ) ) ; \n } \n \n - public < T > List < ModelRuleRegistration > inspect ( Class < T > source , RuleSourceDependencies dependencies ) { \n + public List < ModelRuleRegistration > inspect ( Class < ? > source , RuleSourceDependencies dependencies ) { \n validate ( source ) ; \n final Method [ ] methods = source . getDeclaredMethods ( ) ;", "msg_token": "Remove unnecessary type param"} {"diff": " public class AbstractAlertConditionTest extends AlertConditionTest { \n \n @ test ( enabled = false ) \n public void testInGracePeriod ( ) throws Exception { \n - System . out . println ( alertService ) ; \n alertLastTriggered ( - NUMBER0 ) ; \n assertFalse ( STRING0 , alertService . inGracePeriod ( alertCondition ) ) ; \n alertLastTriggered ( NUMBER1 ) ;", "msg_token": "Removing debug output"} {"diff": " public class MetricRegistry implements MetricSet { \n } \n \n @ suppresswarnings ( STRING0 ) \n - private < T extends Metric > SortedMap < String , T > getMetrics ( Class < T > klass , MetricFilter filter ) { \n + protected final < T extends Metric > SortedMap < String , T > getMetrics ( Class < T > klass , MetricFilter filter ) { \n final TreeMap < String , T > timers = new TreeMap < String , T > ( ) ; \n for ( Map . Entry < String , Metric > entry : metrics . entrySet ( ) ) { \n if ( klass . isInstance ( entry . getValue ( ) ) && filter . matches ( entry . getKey ( ) ,", "msg_token": "Making getMetrics method in class MetricRegistry as protected final instead of private"} {"diff": " public class PrivacyProvider extends ContentProvider { \n \n public static void migrateSettings ( Context context ) { \n try { \n - SINGLE \n - convertSettings ( context ) ; \n - \n SINGLE \n File prefFile = new File ( getPrefFileName ( PREF_SETTINGS ) ) ; \n if ( prefFile . exists ( ) ) { \n Util . log ( null , Log . WARN , STRING0 + prefFile ) ; \n \n + SINGLE \n + convertSettings ( context ) ; \n + \n SharedPreferences prefs = context . getSharedPreferences ( PREF_SETTINGS , Context . MODE_WORLD_READABLE ) ; \n for ( String settingKey : prefs . getAll ( ) . keySet ( ) ) \n try { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Prevent migrating empty file"} {"diff": " public class SignalClusterView \n } \n \n private void setTint ( ImageView v , int tint ) { \n - v . setImageTintMode ( PorterDuff . Mode . SRC_ATOP ) ; \n v . setImageTintList ( ColorStateList . valueOf ( tint ) ) ; \n }", "msg_token": "Fix wrong tint mode on airplane and vpn icons"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n \n \n @ runwith ( MavenJUnitTestRunner . class ) \n public class Junit4TestBuildExampleIT { \n File basedir = resources . getBasedir ( STRING0 ) ; \n MavenExecutionResult result = mavenRuntime \n . forProject ( basedir ) \n - . withCliOptions ( STRING1 , STRING2 ) \n - . execute ( STRING3 , STRING4 ) ; \n + . withCliOptions ( STRING1 ) \n + . execute ( STRING3 , PluginInfo . getQualifiedGoal ( STRING5 ) , STRING4 ) ; \n result . assertErrorFreeLog ( ) ; \n result . assertLogText ( STRING6 ) ; \n }", "msg_token": "adding undeploy to test to ensure it can be run from different computers with different certs"} {"diff": " public class ReaderPostTable { \n return numDeleted ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void deletePostsFromUnfollowedBlogs ( ) { \n + ReaderDatabase . getWritableDb ( ) . delete ( STRING0 , \n + STRING1 , null ) ; \n + } \n + \n public static int deletePostsInBlog ( long blogId ) { \n String [ ] args = { Long . toString ( blogId ) } ; \n return ReaderDatabase . getWritableDb ( ) . delete ( STRING0 , STRING2 , args ) ; \n public class ReaderUpdateService extends Service { \n \n if ( ! localBlogs . isSameList ( serverBlogs ) ) { \n ReaderBlogTable . setFollowedBlogs ( serverBlogs ) ; \n + ReaderPostTable . deletePostsFromUnfollowedBlogs ( ) ; \n AppLog . d ( AppLog . T . READER , STRING3 ) ; \n EventBus . getDefault ( ) . post ( new ReaderEvents . FollowedBlogsChanged ( ) ) ; \n }", "msg_token": "Changed the timing of delete call"} {"diff": " public @ interface NetworkMod \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix up documentation of VersionCheckHandler it only ever accepted a String and only works on the NetworkMod annotated class"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add comment about sql subclasses of Date"} {"diff": " public class Element { \n } \n \n final boolean matchStringToken ( final AnalyzedToken token ) { \n - SINGLE \n - SINGLE \n - if ( stringToken == null ) { \n - return true ; \n - } \n - if ( stringToken . equals ( STRING0 ) ) { \n - return true ; \n - } \n - \n String testToken = null ; \n SINGLE \n SINGLE", "msg_token": "removing obsolete code"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpriteCacheOffsetTest extends GdxTest implements InputProcessor { \n } \n \n public void render ( ) { \n + Gdx . gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ; \n cache . begin ( ) ; \n for ( int y = NUMBER0 ; y < tileMapHeight - NUMBER0 ; y ++ ) \n cache . draw ( y , NUMBER0 , tileMapWidth - NUMBER1 ) ;", "msg_token": "fixed Clear screen for SpriteCacheOffsetTest"} {"diff": " public abstract class DebuggerUtils implements ApplicationComponent { \n if ( toStringMethod == null ) { \n throw EvaluateExceptionUtil . createEvaluateException ( DebuggerBundle . message ( STRING0 , objRef . referenceType ( ) . name ( ) ) ) ; \n } \n - final StringReference stringReference = ( StringReference ) debugProcess . invokeInstanceMethod ( evaluationContext , objRef , toStringMethod , Collections . emptyList ( ) , ObjectReference . INVOKE_SINGLE_THREADED ) ; \n + final StringReference stringReference = ( StringReference ) debugProcess . invokeInstanceMethod ( evaluationContext , objRef , toStringMethod , Collections . emptyList ( ) , NUMBER0 ) ; \n return stringReference == null ? STRING1 : stringReference . value ( ) ; \n } \n throw EvaluateExceptionUtil . createEvaluateException ( DebuggerBundle . message ( STRING2 ) ) ;", "msg_token": "fix spurious debuggee hangup when debugging remote application or an app server"} {"diff": " public abstract class AbstractEndpoint < S > { \n public String getSslProtocol ( ) { return sslProtocol ; } \n public void setSslProtocol ( String s ) { sslProtocol = s ; } \n \n - SINGLE \n - SINGLE \n private String ciphers = null ; \n - private String [ ] ciphersarr = new String [ NUMBER0 ] ; \n - public String [ ] getCiphersArray ( ) { return this . ciphersarr ; } \n public String getCiphers ( ) { return ciphers ; } \n public void setCiphers ( String s ) { \n ciphers = s ; \n - if ( s == null ) ciphersarr = new String [ NUMBER0 ] ; \n - else { \n - StringTokenizer t = new StringTokenizer ( s , STRING0 ) ; \n - ciphersarr = new String [ t . countTokens ( ) ] ; \n - for ( int i = NUMBER0 ; i < ciphersarr . length ; i ++ ) ciphersarr [ i ] = t . nextToken ( ) ; \n - } \n } \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class VectorDrawable extends Drawable { \n COMMENT \n COMMENT \n public float getPixelSize ( ) { \n - if ( mVectorState == null && mVectorState . mVPathRenderer == null || \n + if ( mVectorState == null || mVectorState . mVPathRenderer == null || \n mVectorState . mVPathRenderer . mBaseWidth == NUMBER0 || \n mVectorState . mVPathRenderer . mBaseHeight == NUMBER0 || \n mVectorState . mVPathRenderer . mViewportHeight == NUMBER0 ||", "msg_token": "Fix null pointer check"} {"diff": " public class SourceFormatter { \n private static void _checkIfClause ( \n String ifClause , String fileName , int lineCount ) { \n \n - if ( ifClause . contains ( StringPool . DOUBLE_SLASH ) || \n - ifClause . contains ( STRING0 ) || ifClause . contains ( STRING1 ) ) { \n + int quoteCount = StringUtil . count ( ifClause , StringPool . QUOTE ) ; \n \n + if ( ( quoteCount % NUMBER0 ) == NUMBER1 ) { \n return ; \n } \n \n - int quoteCount = StringUtil . count ( ifClause , StringPool . QUOTE ) ; \n + ifClause = _stripQuotes ( ifClause ) ; \n + \n + if ( ifClause . contains ( StringPool . DOUBLE_SLASH ) || \n + ifClause . contains ( STRING0 ) || ifClause . contains ( STRING1 ) ) { \n \n - if ( ( quoteCount % NUMBER0 ) == NUMBER1 ) { \n return ; \n } \n \n - ifClause = _stripQuotes ( ifClause ) ; \n ifClause = _stripRedundantParentheses ( ifClause ) ; \n \n ifClause = StringUtil . replace (", "msg_token": "Sourceformatter slight improvement catching redundant parentheses"} {"diff": " public interface JavaInstance { \n stringBuilder . append ( parameterType . getDescriptor ( ) ) ; \n } \n String descriptor = stringBuilder . append ( STRING0 ) . append ( getReturnType ( ) . getDescriptor ( ) ) . toString ( ) ; \n - return new Handle ( getHandleType ( ) . getIdentifier ( ) , getOwnerType ( ) . getInternalName ( ) , getName ( ) , descriptor ) ; \n + return new Handle ( getHandleType ( ) . getIdentifier ( ) , getOwnerType ( ) . getInternalName ( ) , getName ( ) , descriptor , getOwnerType ( ) . isInterface ( ) ) ; \n } \n \n @ override", "msg_token": "Refactored ASM API use"} {"diff": " public class GFileUtils { \n COMMENT \n COMMENT \n public static void createDirectory ( File directory ) { \n - if ( ! directory . exists ( ) && ! directory . mkdirs ( ) ) { \n + if ( ! directory . mkdirs ( ) && ! directory . isDirectory ( ) ) { \n throw new UncheckedIOException ( STRING0 + directory ) ; \n } \n }", "msg_token": "Handle the case where something else is creating the directory"} {"diff": " public interface ReadableInstant extends Comparable { \n COMMENT \n int get ( DateTimeFieldType type ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isSupported ( DateTimeFieldType field ) ; \n + \n SINGLE \n COMMENT \n COMMENT \n public abstract class AbstractInstant implements ReadableInstant { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isSupported ( DateTimeFieldType type ) { \n + if ( type == null ) { \n + return false ; \n + } \n + return type . getField ( getChronology ( ) ) . isSupported ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add isSupported type to bring in line with ReadablePartial and potential future shared interface"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class SlidingTabStrip extends LinearLayout { \n final float density = getResources ( ) . getDisplayMetrics ( ) . density ; \n \n TypedValue outValue = new TypedValue ( ) ; \n - context . getTheme ( ) . resolveAttribute ( R . attr . colorForeground , outValue , true ) ; \n + context . getTheme ( ) . resolveAttribute ( android . R . attr . colorForeground , outValue , true ) ; \n final int themeForegroundColor = outValue . data ; \n \n mDefaultBottomBorderColor = setColorAlpha ( themeForegroundColor ,", "msg_token": "Removed confusing import of android R"} {"diff": " public class LicenseManager { \n } \n \n public boolean isFeatureAllowed ( String featureName , boolean silent ) { \n + return true ; \n + } \n + \n + COMMENT \n + public boolean isFeatureAllowed ( String featureName , boolean silent ) { \n if ( _license == null ) { \n if ( ! silent ) { \n Log . info ( STRING0 + featureName + STRING1 ) ; \n public class LicenseManager { \n \n return false ; \n } \n + COMMENT \n }", "msg_token": "Make isFeatureAllowed always return true"} {"diff": " \n - package NAMESPACE ; \n nWith ( StubbedTheories . class ) \n @ theory \n public void ask ( @ stub \n Correspondent correspondent ) { \n assumeThat ( correspondent . getAnswer ( STRING0 , STRING1 , STRING2 ) , \n is ( STRING2 ) ) ; \n } \n + package NAMESPACE ; \n + \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + @ runwith ( StubbedTheories . class ) \n + public class StubbedTheoriesTest { \n + @ theory \n + public void ask ( @ stub Correspondent correspondent ) { \n + assumeThat ( correspondent . getAnswer ( STRING0 , STRING1 , STRING2 ) , \n + is ( STRING2 ) ) ; \n + } \n + }", "msg_token": "Changed line endings to LF"} {"diff": " public class SelectCategoriesActivity extends SherlockListActivity { \n \n SINGLE \n if ( ! mCategoryNames . keySet ( ) . contains ( category_name ) ) { \n + mPullToRefreshHelper . setRefreshing ( true ) ; \n Thread th = new Thread ( ) { \n public void run ( ) { \n finalResult = addCategory ( category_name , category_slug , category_desc , parent_id ) ;", "msg_token": "start the progress bar when add category action is called"} {"diff": " public class PipeItemRenderer implements IItemRenderer { \n return true ; \n case EQUIPPED : \n return true ; \n + case EQUIPPED_FIRST_PERSON : \n + return true ; \n case INVENTORY : \n return true ; \n default : \n public class PipeItemRenderer implements IItemRenderer { \n case EQUIPPED : \n renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT0 , FLOAT1 , FLOAT2 ) ; \n break ; \n + case EQUIPPED_FIRST_PERSON : \n + renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT0 , FLOAT1 , FLOAT2 ) ; \n + break ; \n case INVENTORY : \n renderPipeItem ( ( RenderBlocks ) data [ NUMBER0 ] , item , - FLOAT3 , - FLOAT3 , - FLOAT3 ) ; \n break ;", "msg_token": "Add missing case for EQUIPPED_FIRST_PERSON"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class EqualsAvoidNullCheck extends Check { \n COMMENT \n COMMENT \n public Set < FieldFrame > getChildren ( ) { \n - return children ; \n + return Collections . unmodifiableSet ( children ) ; \n } \n \n COMMENT \n public class EqualsAvoidNullCheck extends Check { \n COMMENT \n COMMENT \n public Set < DetailAST > getMethodCalls ( ) { \n - return methodCalls ; \n + return Collections . unmodifiableSet ( methodCalls ) ; \n } \n \n COMMENT", "msg_token": "Make return collection unmodifiable"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove superfluous comment"} {"diff": " public abstract class Channel { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated", "msg_token": "Fix a javadoc warning"} {"diff": " public abstract class AbstractProcessor implements ActionHook , Processor { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - protected AbstractProcessor ( ) { \n - asyncStateMachine = null ; \n - endpoint = null ; \n - request = null ; \n - response = null ; \n - } \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractProcessor implements ActionHook , Processor { \n \n @ override \n public boolean isAsync ( ) { \n - return ( asyncStateMachine != null && asyncStateMachine . isAsync ( ) ) ; \n + return asyncStateMachine . isAsync ( ) ; \n }", "msg_token": "Remove unused unnecessary code"} {"diff": " public class NewIssuesDecorator implements Decorator { \n public void decorate ( Resource resource , DecoratorContext context ) { \n if ( shouldDecorateResource ( resource , context ) ) { \n Issuable issuable = perspectives . as ( Issuable . class , context . getResource ( ) ) ; \n - Collection < Issue > issues = issuable . issues ( ) ; \n + if ( issuable != null ) { \n + Collection < Issue > issues = issuable . issues ( ) ; \n \n - computeNewIssues ( context , issues ) ; \n - computeNewIssuesPerSeverity ( context , issues ) ; \n - computeNewIssuesPerRule ( context , issues ) ; \n + computeNewIssues ( context , issues ) ; \n + computeNewIssuesPerSeverity ( context , issues ) ; \n + computeNewIssuesPerRule ( context , issues ) ; \n + } \n } \n if ( ResourceUtils . isRootProject ( resource ) ) { \n notifyNewIssues ( ( Project ) resource , context ) ;", "msg_token": "Fix a NPE"} {"diff": " import static NAMESPACE ; \n @ runwith ( RobolectricTestRunner . class ) \n @ config ( manifest = Config . NONE ) \n public class ContentObservableTest { \n + \n + @ test \n public void givenCursorWhenFromCursorInvokedThenObservableCallsOnNextWhileHasNext ( ) { \n final Subscriber < Cursor > subscriber = spy ( new TestSubscriber < Cursor > ( ) ) ; \n final Cursor cursor = mock ( Cursor . class ) ;", "msg_token": "add missing test annotation"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Server \n implements Runnable \n { \n - \n + @ override \n public void run ( ) \n { \n - Logger log = Logger . get ( Main . class ) ; \n + Logger log = Logger . get ( Server . class ) ; \n Bootstrap app = new Bootstrap ( \n new NodeModule ( ) , \n new DiscoveryModule ( ) ,", "msg_token": "Fix logger name"} {"diff": " public class EvictionConfig implements EvictionConfiguration , DataSerializable , \n } \n \n public EvictionConfig setSize ( int size ) { \n + return setSizeInternal ( size ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + EvictionConfig setSizeInternal ( int size ) { \n this . sizeConfigured = true ; \n this . size = checkPositive ( size , STRING0 ) ; \n return this ; \n public final class EvictionConfigAccessor { \n \n public static EvictionConfig initDefaultMaxSize ( EvictionConfig evictionConfig ) { \n if ( ! evictionConfig . sizeConfigured ) { \n - evictionConfig . setSize ( EvictionConfig . DEFAULT_MAX_ENTRY_COUNT_FOR_ON_HEAP_MAP ) ; \n + evictionConfig . setSizeInternal ( EvictionConfig . DEFAULT_MAX_ENTRY_COUNT_FOR_ON_HEAP_MAP ) ; \n } \n return evictionConfig ; \n }", "msg_token": "Fixed EvictionConfigAccessor to work with read only configurations"} {"diff": " public class CallJabberImpl \n if ( remoteParty == null ) \n remoteParty = jingleIQ . getFrom ( ) ; \n \n - CallPeerJabberImpl callPeer = new CallPeerJabberImpl ( remoteParty , this ) ; \n + CallPeerJabberImpl callPeer = new CallPeerJabberImpl ( remoteParty , this , \n + jingleIQ ) ; \n \n addCallPeer ( callPeer ) ; \n \n public class CallPeerJabberImpl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public CallPeerJabberImpl ( String peerAddress , \n + CallJabberImpl owningCall , \n + JingleIQ sessionIQ ) \n + { \n + this ( peerAddress , owningCall ) ; \n + this . sessionInitIQ = sessionIQ ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "When we receive a Jingle call set the session init IQ of the CallPeer before adding it to the Call"} {"diff": " public class JmfMediaManager extends JingleMediaManager { \n COMMENT \n public JmfMediaManager ( ) { \n setupPayloads ( ) ; \n - setupJMF ( ) ; \n } \n \n COMMENT", "msg_token": "Don t initialize JMF"} {"diff": " public class ImageLoader implements Runnable { \n \n public ImageLoader ( String imageUrl , ImageView imageView , int position ) { \n this . imageUrl = imageUrl ; \n + imageView . setTag ( position ) ; \n this . handler = new ImageLoaderHandler ( imageView , position ) ; \n }", "msg_token": "automatically set position as tag on imageview"} {"diff": " public class EventLog implements Notifications { \n showLink = true ; \n } \n \n + mainText = mainText . replaceAll ( STRING0 , STRING1 ) ; \n + \n final NotificationType type = notification . getType ( ) ; \n view . print ( mainText , type == NotificationType . ERROR \n ? ConsoleViewContentType . ERROR_OUTPUT", "msg_token": "remove html in event console"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove deprecated use of projection Point"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlacesListFragment extends SherlockDialogFragment implements Places \n mAdapter . notifyDataSetChanged ( ) ; \n } \n \n + private void hideIme ( ) { \n + if ( null != mFilterEditText ) { \n + InputMethodManager imm = ( InputMethodManager ) getActivity ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n + imm . hideSoftInputFromWindow ( mFilterEditText . getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ; \n + } \n + } \n + \n private void refreshPlaces ( ) { \n refreshPlaces ( mFilterEditText . getText ( ) . toString ( ) ) ; \n } \n \n private void refreshPlaces ( String query ) { \n + hideIme ( ) ; \n if ( null != mProgressBar ) { \n mProgressBar . setVisibility ( View . VISIBLE ) ; \n }", "msg_token": "Hide Keyboard after searching for Place"} {"diff": " public class ExopackageInstaller { \n String hash , \n final Path source ) \n throws Exception { \n - installFile ( device , port , SECONDARY_DEX_DIR . resolve ( STRING0 + hash + STRING1 ) , source ) ; \n + installFile ( \n + device , \n + port , \n + SECONDARY_DEX_DIR . resolve ( STRING0 + hash + STRING1 ) , \n + source ) ; \n } \n \n private void installFile (", "msg_token": "Fix lint failure"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TaskContext \n Deque < TaskContext > stack = contextStacks . get ( ) ; \n if ( stack == null ) \n { \n - stack = new ConcurrentLinkedDeque < > ( ) ; \n + SINGLE \n + SINGLE \n + stack = new LinkedList < > ( ) ; \n contextStacks . set ( stack ) ; \n final Thread currentThread = Thread . currentThread ( ) ; \n synchronized ( contextStacksMap ) \n public class TaskContext \n SINGLE \n stack = contextStacksMap . get ( thread ) ; \n } \n - return ( stack != null ) ? stack . peekLast ( ) : null ; \n + SINGLE \n + SINGLE \n + return ( stack != null ) ? stack . peek ( ) : null ; \n } \n \n COMMENT", "msg_token": "Optimizing the TaskContext"} {"diff": " public abstract class AbstractAQuery < T extends AbstractAQuery < T > > implements Con \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc typo"} {"diff": " public class HumanInteractionClassifier extends Classifier { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n mDpi = ( displayMetrics . xdpi + displayMetrics . ydpi ) / FLOAT0 ; \n mClassifierData = new ClassifierData ( mDpi ) ; \n mHistoryEvaluator = new HistoryEvaluator ( ) ;", "msg_token": "Remove obsolete TODO"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n class ArrayWriteBehindQueue < T > implements WriteBehindQueue < T > { \n \n - private static final int INITIAL_CAPACITY = NUMBER0 ; \n + private static final int INITIAL_CAPACITY = NUMBER1 ; \n \n private List < T > list ;", "msg_token": "Added todo for backpressure implementation"} {"diff": " final class TextureUtil { \n } \n \n public GLImageFormat getImageFormatWithError ( Format fmt , boolean isSrgb ) { \n + SINGLE \n + isSrgb = isSrgb && fmt != Format . Depth && fmt != Format . Depth16 && fmt != Format . Depth24 && fmt != Format . Depth24Stencil8 && fmt != Format . Depth32 && fmt != Format . Depth32F ; \n GLImageFormat glFmt = getImageFormat ( fmt , isSrgb ) ; \n if ( glFmt == null && isSrgb ) { \n - glFmt = getImageFormat ( fmt , false ) ; \n + glFmt = getImageFormat ( fmt , false ) ; \n logger . log ( Level . WARNING , STRING0 , fmt ) ; \n } \n if ( glFmt == null ) {", "msg_token": "Fixed warning when trying to find a srgb format for a Depth format"} {"diff": " public class ChannelManager \n extends AbstractIrcMessageListener \n { \n COMMENT \n + COMMENT \n + COMMENT \n + private static final String GONE = STRING0 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ChannelManager \n COMMENT \n private IrcStatusEnum determineStatus ( final String presenceReply ) \n { \n - if ( presenceReply != null && presenceReply . startsWith ( STRING0 ) ) \n + if ( presenceReply != null && presenceReply . startsWith ( GONE ) ) \n { \n return IrcStatusEnum . AWAY ; \n }", "msg_token": "Add constant for indicator of AWAY members G"} {"diff": " public class Transaction extends ChildMessage implements Serializable { \n length = NUMBER0 ; SINGLE \n } \n \n - public Transaction ( NetworkParameters params , int version , Sha256Hash hash ) { \n - super ( params ) ; \n - this . version = version & ( ( NUMBER1 < < NUMBER2 ) - NUMBER3 ) ; SINGLE \n - inputs = new ArrayList < TransactionInput > ( ) ; \n - outputs = new ArrayList < TransactionOutput > ( ) ; \n - this . hash = hash ; \n - SINGLE \n - length = NUMBER0 ; SINGLE \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove undocumented and unused Transaction constructor"} {"diff": " public class PrestoDatabaseMetaData \n public String getIdentifierQuoteString ( ) \n throws SQLException \n { \n - SINGLE \n - return STRING0 ; \n + return STRING1 ; \n } \n \n @ override", "msg_token": "Fix JDBC DatabaseMetaData getIdentifierQuoteString"} {"diff": " public class ManualRequestEditorDialog extends AbstractFrame implements Tab { \n private void setFooterStatus ( HttpMessage msg ) { \n if ( msg != null ) { \n SINGLE \n - long totalLength = msg . getResponseBody ( ) . toString ( ) . length ( ) + msg . getResponseHeader ( ) . getHeadersAsString ( ) . length ( ) ; \n - long contentLength = msg . getResponseBody ( ) . toString ( ) . length ( ) ; \n + long contentLength = msg . getResponseBody ( ) . length ( ) ; \n + long totalLength = msg . getResponseHeader ( ) . toString ( ) . length ( ) + contentLength ; \n long timeLapse = msg . getTimeElapsedMillis ( ) ; \n SINGLE \n getLabelTimeLapse ( ) . setText (", "msg_token": "Fixed the calculation of the response s length in the ManualRequestEditorDialog"} {"diff": " public class CharArrayUtil { \n if ( seq instanceof CharBuffer ) { \n final CharBuffer buffer = ( CharBuffer ) seq ; \n if ( buffer . hasArray ( ) && ! buffer . isReadOnly ( ) && buffer . arrayOffset ( ) == NUMBER0 ) { \n - return buffer . array ( ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + char [ ] array = buffer . array ( ) ; \n + if ( buffer . length ( ) == array . length ) { \n + return array ; \n + } \n } \n \n char [ ] chars = new char [ seq . length ( ) ] ;", "msg_token": "CharArrayUtil should not return array that s longer than CharSequence"} {"diff": " public class ZBeacon \n } \n \n broadcastServer = new BroadcastServer ( ignoreLocalAddress ) ; \n + broadcastServer . setDaemon ( true ) ; \n broadcastClient = new BroadcastClient ( ) ; \n + broadcastClient . setDaemon ( true ) ; \n } \n \n public void start ( ) \n public class ZThread \n { \n SINGLE \n Thread shim = new ShimThread ( runnable , args ) ; \n + shim . setDaemon ( true ) ; \n shim . start ( ) ; \n }", "msg_token": "Set daemon flag on beacon and zthread threads"} {"diff": " public class ByteBuddy { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Slightly changed javadoc"} {"diff": " public abstract class ExtendableListView extends AbsListView { \n \n mLayoutMode = LAYOUT_SYNC ; \n mSyncPosition = Math . min ( Math . max ( NUMBER0 , mSyncPosition ) , count - NUMBER1 ) ; \n - if ( mSyncPosition == NUMBER0 ) mLayoutMode = LAYOUT_FORCE_TOP ; \n return ; \n }", "msg_token": "Always use LAYOUT_SYNC mode to sync items positions"} {"diff": " abstract public class GenericItem implements Item { \n \n final protected String name ; \n \n - protected State state = UnDefType . UNDEF ; \n + protected State state = UnDefType . NULL ; \n \n public GenericItem ( String name ) { \n this . name = name ;", "msg_token": "corrected initial state at system startup"} {"diff": " class BeanBinding implements Binding { \n } \n } \n \n + if ( element == null ) { \n + element = new Element ( myTagName ) ; \n + } \n + \n Object node = binding . serialize ( o , element , filter ) ; \n if ( node != null ) { \n - if ( element == null ) { \n - element = new Element ( myTagName ) ; \n - } \n if ( node instanceof org . jdom . Attribute ) { \n element . setAttribute ( ( org . jdom . Attribute ) node ) ; \n }", "msg_token": "quick fix MapBinding assert"} {"diff": " public class DeadlockDetectedException extends RuntimeException \n { \n public DeadlockDetectedException ( String message ) \n { \n - super ( message ) ; \n + super ( STRING0 + \n + STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING1 + \n + STRING5 + \n + STRING6 + \n + STRING1 + \n + STRING7 + message + STRING8 ) ; \n } \n }", "msg_token": "Added a friendlier message to the DeadlockDetectedException"} {"diff": " public class BlockTank extends BlockContainer { \n ItemStack filled = LiquidManager . fillLiquidContainer ( available , current ) ; \n \n liquid = LiquidManager . getLiquidForFilledItem ( filled ) ; \n + \n if ( liquid != null ) { \n - \n + if ( ! BuildCraftCore . debugMode && ! entityplayer . capabilities . isCreativeMode ) { \n if ( current . stackSize > NUMBER0 ) { \n if ( ! entityplayer . inventory . addItemStackToInventory ( filled ) ) \n return false ; \n public class BlockTank extends BlockContainer { \n Utils . consumeItem ( current ) ) ; \n entityplayer . inventory . setInventorySlotContents ( entityplayer . inventory . currentItem , filled ) ; \n } \n - \n + } \n tank . drain ( Orientations . Unknown , liquid . amount , true ) ; \n return true ; \n }", "msg_token": "Makes buckets behavior like in creative mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ErrorMessageSimplifier { \n } \n } \n break ; \n - \n + \n case IProblem . UndefinedConstructor : \n if ( args . length == NUMBER0 ) { \n String constructorName = args [ NUMBER1 ] ; \n - SINGLE \n + SINGLE \n SINGLE \n if ( constructorName . contains ( STRING0 ) ) { \n SINGLE", "msg_token": "remove unused import"} {"diff": " public class RouterActor extends ModuleActor { \n . changeCounter ( counter ) \n . changeInReadDate ( date ) ; \n conversationStates . addOrUpdateItem ( state ) ; \n + \n + dialogsActor ( new DialogsActor . CounterChanged ( peer , counter ) ) ; \n }", "msg_token": "Fixing dialgs counters in readbyme"} {"diff": " public class MtpDatabase { \n try { \n File f = new File ( path ) ; \n String canonical = f . getCanonicalPath ( ) ; \n - if ( canonical . startsWith ( mMediaStoragePath ) ) { \n - return true ; \n + for ( String root : mStorageMap . keySet ( ) ) { \n + if ( canonical . startsWith ( root ) ) { \n + return true ; \n + } \n } \n } catch ( IOException e ) { \n SINGLE", "msg_token": "Also consider secondary storage when verifying paths"} {"diff": " public class FileTransfer extends Plugin { \n connection . connect ( ) ; \n \n Log . d ( LOG_TAG , STRING0 + url ) ; \n + InputStream inputStream ; \n + try { \n + inputStream = connection . getInputStream ( ) ; \n + } catch ( FileNotFoundException e ) { \n + Log . e ( LOG_TAG , e . toString ( ) , e ) ; \n + throw new IOException ( STRING1 ) ; \n + } \n \n - InputStream inputStream = connection . getInputStream ( ) ; \n byte [ ] buffer = new byte [ NUMBER0 ] ; \n int bytesRead = NUMBER1 ; \n \n public class FileTransfer extends Plugin { \n \n } catch ( FileNotFoundException e ) { \n JSONObject error = createFileTransferError ( FILE_NOT_FOUND_ERR , source , target , connection ) ; \n + Log . d ( LOG_TAG , STRING2 ) ; \n Log . e ( LOG_TAG , error . toString ( ) , e ) ; \n return new PluginResult ( PluginResult . Status . IO_EXCEPTION , error ) ; \n } catch ( MalformedURLException e ) {", "msg_token": "Fixing FileTransfer download should handle unknown host failing mobile spec test case"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added JEP info"} {"diff": " public class TokenBasedRememberMeServices implements RememberMeServices , Initial \n SINGLE \n SINGLE \n \n - private AuthenticationDetailsSource authenticationDetailsSource = new AuthenticationDetailsSourceImpl ( ) ; \n + protected AuthenticationDetailsSource authenticationDetailsSource = new AuthenticationDetailsSourceImpl ( ) ; \n \n private String key ; \n \n public class TokenBasedRememberMeServices implements RememberMeServices , Initial \n \n private UserDetailsService userDetailsService ; \n \n - private long tokenValiditySeconds = NUMBER0 ; SINGLE \n + protected long tokenValiditySeconds = NUMBER0 ; SINGLE \n \n private boolean alwaysRemember = false ;", "msg_token": "made two instance variables protected for RBA solution"} {"diff": " public class LookupImpl extends LightweightHint implements LookupEx , Disposable \n myList . setCellRenderer ( myCellRenderer ) ; \n \n myList . setFocusable ( false ) ; \n + myList . setFixedCellWidth ( NUMBER0 ) ; \n \n myList . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; \n myList . setBackground ( LookupCellRenderer . BACKGROUND_COLOR ) ;", "msg_token": "don t calculate width for each lookup element"} {"diff": " final class ElectronBeam { \n mTexNamesGenerated = true ; \n } \n \n - SurfaceTexture st = new SurfaceTexture ( mTexNames [ NUMBER0 ] ) ; \n - SurfaceControl . screenshot ( SurfaceControl . getBuiltInDisplay ( \n - SurfaceControl . BUILT_IN_DISPLAY_ID_MAIN ) , \n - new Surface ( st ) ) ; \n + final SurfaceTexture st = new SurfaceTexture ( mTexNames [ NUMBER0 ] ) ; \n + final Surface s = new Surface ( st ) ; \n + try { \n + SurfaceControl . screenshot ( SurfaceControl . getBuiltInDisplay ( \n + SurfaceControl . BUILT_IN_DISPLAY_ID_MAIN ) , s ) ; \n + } finally { \n + s . release ( ) ; \n + } \n \n st . updateTexImage ( ) ; \n st . getTransformMatrix ( mTexMatrix ) ;", "msg_token": "Avoid leaking Surface native object"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n public class IssuesDbExtractionTest extends AbstractTest { \n \n static final Logger LOGGER = LoggerFactory . getLogger ( IssuesDbExtractionTest . class ) ;", "msg_token": "Temporarily disable benchmark of issue db extraction"} {"diff": " public abstract class Message implements Part , Body { \n return false ; \n } \n Message other = ( Message ) o ; \n - return ( mFolder . getName ( ) . equals ( other . getFolder ( ) . getName ( ) ) \n - && mFolder . getAccount ( ) . getUuid ( ) . equals ( other . getFolder ( ) . getAccount ( ) . getUuid ( ) ) \n - && mUid . equals ( other . getUid ( ) ) ) ; \n + return ( mUid . equals ( other . getUid ( ) ) \n + && mFolder . getName ( ) . equals ( other . getFolder ( ) . getName ( ) ) \n + && mFolder . getAccount ( ) . getUuid ( ) . equals ( other . getFolder ( ) . getAccount ( ) . getUuid ( ) ) ) ; \n } \n \n @ override", "msg_token": "Check message uids first when comparing messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "removed obsolete import"} {"diff": " public class SSTableReader extends SSTable \n \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n int i = NUMBER0 ; \n Iterator < FileDataInput > segments = ifile . iterator ( sampledPosition , INDEX_FILE_BUFFER_BYTES ) ; \n - while ( segments . hasNext ( ) && i < DatabaseDescriptor . getIndexInterval ( ) ) \n + while ( segments . hasNext ( ) && i <= DatabaseDescriptor . getIndexInterval ( ) ) \n { \n FileDataInput in = segments . next ( ) ; \n try \n { \n - while ( ! in . isEOF ( ) && i < DatabaseDescriptor . getIndexInterval ( ) ) \n + while ( ! in . isEOF ( ) && i <= DatabaseDescriptor . getIndexInterval ( ) ) \n { \n i ++ ;", "msg_token": "Fix comparison against IndexInterval in SSTR getPosition"} {"diff": " public class MainPhoneController extends MainBaseController { \n \n searchList . setAdapter ( recyclerAdapter ) ; \n searchDisplay . addListener ( searchListener ) ; \n - \n + onHideToolbarCustomView ( ) ; \n showView ( searchHintView , false ) ; \n goneView ( searchEmptyView , false ) ; \n \n public class MainPhoneController extends MainBaseController { \n searchList . setAdapter ( null ) ; \n \n goneView ( searchContainer ) ; \n - \n + onShowToolbarCustomView ( ) ; \n if ( searchMenu != null ) { \n if ( searchMenu . isActionViewExpanded ( ) ) { \n searchMenu . collapseActionView ( ) ;", "msg_token": "MainPhoneController hide toolbar custom view on search"} {"diff": " public class Bundle { \n COMMENT \n COMMENT \n String uriString = uri . toString ( ) ; \n - if ( ! uriString . startsWith ( this . uriString ) ) return false ; \n + if ( this . uriString == null || ! uriString . startsWith ( this . uriString ) ) return false ; \n \n String srcPath = uriString . substring ( this . uriString . length ( ) ) ; \n String srcQuery = uri . getQuery ( ) ;", "msg_token": "Avoid crash while undefine uri in bundle json"} {"diff": " public class IrcConnection \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IrcConnection \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IrcConnection \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IrcConnection \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IrcConnection \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ProtocolProviderServiceIrcImpl \n SINGLE \n SINGLE \n \n + SINGLE \n + SINGLE \n + \n final String user = getAccountID ( ) . getUserID ( ) ; \n \n ircstack = new IrcStack ( this , user , user , STRING0 , user ) ;", "msg_token": "Added comments for guaranteed instances and a TODO w r t password changing"} {"diff": " public abstract class AbstractCandidateItemsStrategy implements CandidateItemsSt \n return doGetCandidateItems ( itemIDs , dataModel ) ; \n } \n \n - abstract FastIDSet doGetCandidateItems ( long [ ] preferredItemIDs , DataModel dataModel ) throws TasteException ; \n + protected abstract FastIDSet doGetCandidateItems ( long [ ] preferredItemIDs , DataModel dataModel ) throws TasteException ; \n \n @ override \n public void refresh ( Collection < Refreshable > alreadyRefreshed ) {", "msg_token": "Cannot extend CandidateItemsStrategy due to restricted visibility"} {"diff": " public class DriverConductor implements Agent \n switch ( connection . status ( ) ) \n { \n case INACTIVE : \n - if ( connection . remaining ( ) == NUMBER0 || \n - now > ( connection . timeOfLastStatusChange ( ) + CONNECTION_LIVENESS_TIMEOUT_NS ) ) \n + if ( connection . isDrained ( ) || now > ( connection . timeOfLastStatusChange ( ) + CONNECTION_LIVENESS_TIMEOUT_NS ) ) \n { \n connection . status ( DriverConnection . Status . LINGER ) ; \n \n public class DriverConnection extends DriverConnectionPadding3 implements AutoCl \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public long remaining ( ) \n + public boolean isDrained ( ) \n { \n - return Math . max ( completedPosition - subscribersPosition , NUMBER0 ) ; \n + return subscribersPosition >= completedPosition ; \n } \n \n COMMENT", "msg_token": "Clarify logic for checking if a connection is drained before changing state to linger"} {"diff": " public class GCMIntentService extends GCMBaseIntentService { \n . setSmallIcon ( R . drawable . notification_icon ) \n . setColor ( getResources ( ) . getColor ( R . color . wordpress_blue ) ) \n . setContentTitle ( title ) \n - . setContentText ( message ) . setTicker ( message ) . setAutoCancel ( true ) \n + . setContentText ( message ) \n + . setTicker ( message ) \n + . setAutoCancel ( true ) \n . setStyle ( new NotificationCompat . BigTextStyle ( ) . bigText ( message ) ) ; \n \n if ( note_id != null ) {", "msg_token": "Added a few line breaks"} {"diff": " import NAMESPACE ; \n \n public class PdfToSwfSlidesGenerationService { \n private static Logger log = LoggerFactory . getLogger ( PdfToSwfSlidesGenerationService . class ) ; \n - \n + \n + private final ExecutorService executor = Executors . newFixedThreadPool ( NUMBER0 ) ; \n + \n private SwfSlidesGenerationProgressNotifier notifier ; \n private PageCounterService counterService ; \n private PageConverter pdfToSwfConverter ; \n public class PdfToSwfSlidesGenerationService { \n private void convertPdfToSwf ( UploadedPresentation pres ) { \n int numPages = pres . getNumberOfPages ( ) ; \n List < PdfToSwfSlide > slides = setupSlides ( pres , numPages ) ; \n - \n - ExecutorService executor ; \n + \n CompletionService < PdfToSwfSlide > completionService ; \n - int numThreads = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n - executor = Executors . newFixedThreadPool ( numThreads ) ; \n + \n completionService = new ExecutorCompletionService < PdfToSwfSlide > ( executor ) ; \n generateSlides ( pres , slides , completionService ) ; \n }", "msg_token": "don t create threads unnecessarily when processing uploaded presentations"} {"diff": " import NAMESPACE ; \n public class FromFtpStartingDirAndFileNameClashTest extends FtpServerTestSupport { \n \n private String getFtpUrl ( ) { \n - return STRING0 + getPort ( ) + STRING1 ; \n + return STRING0 + getPort ( ) + STRING2 ; \n } \n \n @ override \n public class FromFtpStartingDirAndFileNameClashTest extends FtpServerTestSupport \n Endpoint endpoint = context . getEndpoint ( getFtpUrl ( ) ) ; \n Exchange exchange = endpoint . createExchange ( ) ; \n exchange . getIn ( ) . setBody ( STRING3 ) ; \n - exchange . getIn ( ) . setHeader ( Exchange . FILE_NAME , STRING4 ) ; \n + exchange . getIn ( ) . setHeader ( Exchange . FILE_NAME , STRING5 ) ; \n Producer producer = endpoint . createProducer ( ) ; \n producer . start ( ) ; \n producer . process ( exchange ) ;", "msg_token": "Added unit test"} {"diff": " public class TupleAnalyzer \n if ( ! ( optimizedExpression instanceof Expression ) ) { \n throw new SemanticException ( TYPE_MISMATCH , node , STRING0 ) ; \n } \n + SINGLE \n + SINGLE \n + analyzer = new ExpressionAnalyzer ( analysis , session , metadata , sqlParser , experimentalSyntaxEnabled ) ; \n + analyzer . analyze ( ( Expression ) optimizedExpression , output , context ) ; \n + analysis . addCoercions ( analyzer . getExpressionCoercions ( ) ) ; \n \n for ( Expression conjunct : ExpressionUtils . extractConjuncts ( ( Expression ) optimizedExpression ) ) { \n if ( ! ( conjunct instanceof ComparisonExpression ) ) { \n public abstract class AbstractTestQueries \n } \n \n @ test \n + public void testJoinCoercion ( ) \n + throws Exception \n + { \n + assertQuery ( STRING1 ) ; \n + } \n + \n + @ test \n public void testGroupByNoAggregations ( ) \n throws Exception \n {", "msg_token": "Fix coercions in JOIN criteria"} {"diff": " public class ApiHelper { \n HttpRequest request = HttpRequest . get ( urlString ) ; \n \n SINGLE \n - if ( request . code ( ) == HttpURLConnection . HTTP_MOVED_PERM \n - || request . code ( ) == HttpURLConnection . HTTP_MOVED_TEMP ) { \n - String location = request . location ( ) ; \n - if ( location != null ) { \n - request = HttpRequest . get ( location ) ; \n + if ( request != null ) { \n + if ( request . code ( ) == HttpURLConnection . HTTP_MOVED_PERM \n + || request . code ( ) == HttpURLConnection . HTTP_MOVED_TEMP ) { \n + String location = request . location ( ) ; \n + if ( location != null ) { \n + request = HttpRequest . get ( location ) ; \n + } \n } \n }", "msg_token": "add null check when fetching http resource"} {"diff": " import NAMESPACE ; \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 public interface InputType { \n COMMENT", "msg_token": "Clarify use of InputType flags"} {"diff": " public class QueryStringQueryBuilder extends BaseQueryBuilder { \n COMMENT \n COMMENT \n COMMENT \n - public void autoGeneratePhraseQueries ( boolean autoGeneratePhraseQueries ) { \n + public QueryStringQueryBuilder autoGeneratePhraseQueries ( boolean autoGeneratePhraseQueries ) { \n this . autoGeneratePhraseQueries = autoGeneratePhraseQueries ; \n + return this ; \n } \n \n COMMENT", "msg_token": "return the query builder for chaining"} {"diff": " public class GrailsCoreDependencies { \n ModuleRevisionId . newInstance ( STRING0 , STRING1 , STRING2 ) , \n ModuleRevisionId . newInstance ( STRING3 , STRING3 , STRING4 ) , \n ModuleRevisionId . newInstance ( STRING5 , STRING5 , STRING6 ) , \n - ModuleRevisionId . newInstance ( STRING7 , STRING8 , STRING9 ) , \n SINGLE \n ModuleRevisionId . newInstance ( STRING10 , STRING10 , STRING11 ) , \n ModuleRevisionId . newInstance ( STRING12 , STRING12 , STRING13 ) ,", "msg_token": "remove jstl as a core dependencies since it is part of the tomcat jars"} {"diff": " public final class OBJLoader implements AssetLoader { \n try { \n matList = ( MaterialList ) assetManager . loadAsset ( key . getFolder ( ) + name ) ; \n } catch ( AssetNotFoundException ex ) { \n - throw new AssetNotFoundException ( STRING0 + name + STRING1 + key . getName ( ) ) ; \n + throw new AssetNotFoundException ( STRING2 + name + STRING1 + key . getName ( ) , ex ) ; \n } \n \n if ( matList != null ) { \n public class AssetNotFoundException extends RuntimeException { \n public AssetNotFoundException ( String message ) { \n super ( message ) ; \n } \n + public AssetNotFoundException ( String message , Exception ex ) { \n + super ( message , ex ) ; \n + } \n }", "msg_token": "Fixed issue with an exception getting silenced when MTL was loaded for an OBJ file"} {"diff": " public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol { \n } \n channel . writeByte ( ( byte ) NUMBER0 ) ; \n \n - channel . clearInput ( ) ; \n + SINGLE \n \n } finally { \n channel . releaseExclusiveLock ( ) ;", "msg_token": "removed clearInput on error as reported by Steven and Alex in ML"} {"diff": " public class OOrientDBLoader extends OAbstractLoader implements OLoader { \n for ( ODocument idx : indexes ) { \n OIndex index ; \n \n - String idxName = idx . field ( STRING0 ) ; \n + String idxName = ( String ) resolve ( idx . field ( STRING0 ) ) ; \n if ( idxName != null ) { \n index = documentDatabase . getMetadata ( ) . getIndexManager ( ) . getIndex ( idxName ) ; \n if ( index != null ) \n public class OOrientDBLoader extends OAbstractLoader implements OLoader { \n continue ; \n } \n \n - final String idxClass = idx . field ( STRING1 ) ; \n + final String idxClass = ( String ) resolve ( idx . field ( STRING1 ) ) ; \n if ( idxClass == null ) \n throw new OConfigurationException ( STRING2 ) ;", "msg_token": "Added configurable index class and name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AtomicLongTest extends HazelcastTestSupport { \n \n @ test \n @ clientcompatibletest \n - @ category ( ProblematicTest . class ) \n public void testAtomicLongSpawnNodeInParallel ( ) throws InterruptedException { \n int total = NUMBER0 ; \n int parallel = NUMBER1 ;", "msg_token": "Removed a AtomicLongTest from problematic to regular"} {"diff": " public class AsmClassGenerator extends ClassGenerator { \n } \n \n protected int getBytecodeVersion ( ) { \n - ClassNode classNode = controller . getClassNode ( ) ; \n - if ( ! classNode . isUsingGenerics ( ) && \n - ! classNode . isAnnotated ( ) && \n - ! classNode . isAnnotationDefinition ( ) ) \n - { \n - return Opcodes . V1_3 ; \n - } \n - \n - final String target = getCompileUnit ( ) . getConfig ( ) . getTargetBytecode ( ) ; \n - return CompilerConfiguration . POST_JDK5 . equals ( target ) ? Opcodes . V1_5 : Opcodes . V1_3 ; \n + return Opcodes . V1_5 ; \n } \n \n public boolean addInnerClass ( ClassNode innerClass ) {", "msg_token": "always produce V1_5 bytecode classes"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexCustomKeyTest { \n database . close ( ) ; \n } \n \n + @ afterclass \n + public void afterClass ( ) { \n + database . open ( STRING0 , STRING0 ) ; \n + database . getMetadata ( ) . getIndexManager ( ) . dropIndex ( STRING1 ) ; \n + } \n + \n @ parameters ( value = STRING2 ) \n public IndexCustomKeyTest ( String iURL ) { \n database = new ODatabaseDocumentTx ( iURL ) ;", "msg_token": "Drop custom index from demo db"} {"diff": " public class NewShinyWebApplication extends ModalDialog < NewShinyWebApplication . R \n appNameTextBox_ . getElement ( ) . setAttribute ( STRING0 , STRING1 ) ; \n addTextFieldValidator ( appNameTextBox_ ) ; \n \n - String cachedAppName = result_ . getAppName ( ) ; \n - String appName = StringUtil . isNullOrEmpty ( cachedAppName ) ? STRING2 : cachedAppName ; \n - appNameTextBox_ . setText ( appName ) ; \n - \n appTypeLabel_ = new Label ( STRING3 ) ; \n appTypeLabel_ . addStyleName ( RES . styles ( ) . label ( ) ) ; \n appTypeLabel_ . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER0 , Unit . PX ) ;", "msg_token": "don t reuse cached app name"} {"diff": " public class RegexNotQueryTest extends LuceneTestCase { \n assertFalse ( query1 . equals ( query2 ) ) ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n public void testJakartaCaseSensitive ( ) throws Exception { \n assertEquals ( NUMBER0 , regexQueryNrHits ( STRING0 , null ) ) ; \n } \n public class RegexNotQueryTest extends LuceneTestCase { \n assertEquals ( NUMBER0 , regexQueryNrHits ( STRING0 , null ) ) ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n public void testJakartaCaseInsensitive ( ) throws Exception { \n assertEquals ( \n NUMBER1 ,", "msg_token": "add some comments of the test methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MakePublicFix extends BaseFix { \n @ notnull \n public String getName ( ) { \n return DevKitBundle . message ( STRING0 , \n - myElement . getLanguage ( ) . getFindUsagesProvider ( ) . getType ( myElement ) ) ; \n + LanguageFindUsages . INSTANCE . forLanguage ( myElement . getLanguage ( ) ) . getType ( myElement ) ) ; \n } \n \n protected void doFix ( Project project , ProblemDescriptor descriptor , boolean external ) throws IncorrectOperationException {", "msg_token": "decouple FindUsagesProvider from Language"} {"diff": " public class DatabaseReconciliatorTest { \n STRING0 , \n STRING1 , \n STRING2 , SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE \n public class DatabaseReconciliatorTest { \n TestResult expectedTestResult = new TestResult ( ) ; \n \n expectedTestResult . winnersLastDatabaseVersionHeader = TestDatabaseUtil . createMapWithMachineKey ( new String [ ] { \n - STRING3 , STRING4 \n + STRING5 , STRING6 \n } ) . firstEntry ( ) ; \n \n SINGLE", "msg_token": "Fix expected output"} {"diff": " public class IssueIndex extends BaseIndex < Issue , FakeIssueDto , String > { \n } \n } \n \n - public Collection < String > listTagsMatching ( String query , int pageSize ) { \n + public Collection < String > listTagsMatching ( @ nullable String query , int pageSize ) { \n SearchRequestBuilder count = getClient ( ) . prepareSearch ( IssueIndexDefinition . INDEX ) \n . setTypes ( IssueIndexDefinition . TYPE_ISSUE ) \n . setQuery ( QueryBuilders . matchAllQuery ( ) ) ;", "msg_token": "Fix quality flaw"} {"diff": " public class TabWidget extends LinearLayout implements OnFocusChangeListener { \n COMMENT \n COMMENT \n public void setRightStripDrawable ( Drawable drawable ) { \n - mBottomLeftStrip = drawable ; \n + mBottomRightStrip = drawable ; \n requestLayout ( ) ; \n invalidate ( ) ; } \n \n public class TabWidget extends LinearLayout implements OnFocusChangeListener { \n COMMENT \n COMMENT \n public void setRightStripDrawable ( int resId ) { \n - mBottomLeftStrip = mContext . getResources ( ) . getDrawable ( resId ) ; \n + mBottomRightStrip = mContext . getResources ( ) . getDrawable ( resId ) ; \n requestLayout ( ) ; \n invalidate ( ) ; \n }", "msg_token": "Fix Tabwidget copy paste bug"} {"diff": " public class BottomBar extends FrameLayout implements View . OnClickListener , View \n } else { \n ViewCompat . setScaleX ( title , NUMBER0 ) ; \n ViewCompat . setScaleY ( title , NUMBER0 ) ; \n - ViewCompat . setTranslationY ( tab , - translationY ) ; \n + icon . setPadding ( icon . getPaddingLeft ( ) , icon . getPaddingTop ( ) - translationY , \n + icon . getPaddingRight ( ) , icon . getPaddingBottom ( ) ) ; \n \n if ( mIsShiftingMode ) { \n ViewCompat . setAlpha ( icon , FLOAT0 ) ;", "msg_token": "Fixed initial shifting active tab title"} {"diff": " public class ECKey implements Serializable { \n DERInteger r = ( DERInteger ) seq . getObjectAt ( NUMBER0 ) ; \n DERInteger s = ( DERInteger ) seq . getObjectAt ( NUMBER1 ) ; \n decoder . close ( ) ; \n - return signer . verifySignature ( data , r . getValue ( ) , s . getValue ( ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + return signer . verifySignature ( data , r . getPositiveValue ( ) , s . getPositiveValue ( ) ) ; \n } catch ( IOException e ) { \n throw new RuntimeException ( e ) ; \n }", "msg_token": "Fix handling of improperly encoded DER signatures to match OpenSSL"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n - public abstract class Invocation implements OperationResponseHandler , Runnable { \n + public abstract class Invocation implements OperationResponseHandler { \n \n private static final AtomicReferenceFieldUpdater < Invocation , Boolean > RESPONSE_RECEIVED = \n AtomicReferenceFieldUpdater . newUpdater ( Invocation . class , Boolean . class , STRING1 ) ; \n public abstract class Invocation implements OperationResponseHandler , Runnable { \n } \n } \n \n - @ override \n - public void run ( ) { \n - doInvoke ( false ) ; \n - } \n - \n private boolean engineActive ( ) { \n NodeState state = context . node . getState ( ) ; \n if ( state == NodeState . ACTIVE ) { \n public abstract class Invocation implements OperationResponseHandler , Runnable { \n context . executionService . schedule ( ASYNC_EXECUTOR , this , tryPauseMillis , MILLISECONDS ) ; \n return ; \n } \n - Invocation . this . run ( ) ; \n + doInvoke ( false ) ; \n } \n }", "msg_token": "Invocation no longer implements Runnable"} {"diff": " public class ReaderPostPagerActivity extends Activity \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . reader_activity_post_pager ) ; \n \n - SINGLE \n - getWindow ( ) . setBackgroundDrawable ( null ) ; \n - \n ActionBar actionBar = getActionBar ( ) ; \n if ( actionBar != null ) { \n actionBar . setDisplayShowTitleEnabled ( true ) ;", "msg_token": "No longer removing the window background"} {"diff": " import NAMESPACE ; \n public class NotifyingSplitLayoutPanel extends SplitLayoutPanel \n { \n @ inject \n - public NotifyingSplitLayoutPanel ( EventBus events ) \n + public NotifyingSplitLayoutPanel ( int splitterSize , EventBus events ) \n { \n - super ( ) ; \n + super ( splitterSize ) ; \n \n events_ = events ; \n \n public class MainSplitPanel extends NotifyingSplitLayoutPanel \n public MainSplitPanel ( EventBus events , \n Session session ) \n { \n - super ( events ) ; \n + super ( NUMBER0 , events ) ; \n session_ = session ; \n addSplitterResizedHandler ( this ) ; \n }", "msg_token": "Fix too wide splitter"} {"diff": " public class SqlStageExecution \n if ( ! getState ( ) . isDone ( ) ) { \n transitionToState ( StageState . FAILED ) ; \n log . error ( e , STRING0 , stageId ) ; \n + cancelAll ( ) ; \n throw e ; \n } \n Throwables . propagateIfInstanceOf ( e , Error . class ) ; \n public class SqlStageExecution \n transitionToState ( StageState . FAILED ) ; \n } \n log . error ( e , STRING1 , stageId ) ; \n - cancel ( ) ; \n + cancelAll ( ) ; \n throw Throwables . propagate ( e ) ; \n } \n }", "msg_token": "Add missing cancelAll calls"} {"diff": " public class Command implements Serializable { \n \n @ override \n public String toString ( ) { \n - return getClass ( ) . getSimpleName ( ) ; \n + return String . format ( STRING0 , getClass ( ) . getSimpleName ( ) , System . identityHashCode ( this ) ) ; \n } \n }", "msg_token": "provide a little more information in the toString of a command object for debugging"} {"diff": " public final class TreeWalker \n walk ( rootAST , contents ) ; \n } \n catch ( FileNotFoundException fnfe ) { \n + SINGLE \n + SINGLE \n mMessages . add ( new LocalizedMessage ( NUMBER0 , Defn . CHECKSTYLE_BUNDLE , \n STRING0 , null ) ) ; \n }", "msg_token": "Added a flag something needs to be done about"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n public class ShowcaseViews { \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class ProfilerEditingTarget implements EditingTarget , \n @ handler \n void onSaveSourceDoc ( ) \n { \n - saveNewFile ( getPath ( ) ) ; \n + saveNewFile ( null ) ; \n } \n \n @ handler \n void onSaveSourceDocAs ( ) \n { \n - saveNewFile ( getPath ( ) ) ; \n + saveNewFile ( isUserSaved_ ? getPath ( ) : null ) ; \n } \n \n public String getDefaultNamePrefix ( )", "msg_token": "suggest a better directory when saving profiles"} {"diff": " public class MediaScanner \n \n private boolean inScanDirectory ( String path , String [ ] directories ) { \n for ( int i = NUMBER0 ; i < directories . length ; i ++ ) { \n - if ( path . startsWith ( directories [ i ] ) ) { \n + String directory = directories [ i ] ; \n + if ( mExternalStoragePath != null && directory . equals ( mMediaStoragePath ) ) { \n + SINGLE \n + directory = mExternalStoragePath ; \n + } \n + if ( path . startsWith ( directory ) ) { \n return true ; \n } \n }", "msg_token": "Fix path mismatch in code that check for missing files in postScan"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StorageUtils { \n public static long getFreeSpaceAvailable ( ) { \n StatFs stat = new StatFs ( UserPreferences . getDataFolder ( \n PodcastApp . getInstance ( ) , null ) . getAbsolutePath ( ) ) ; \n - long availableBlocks = stat . getAvailableBlocks ( ) ; \n - long blockSize = stat . getBlockSize ( ) ; \n + long availableBlocks ; \n + long blockSize ; \n + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN_MR2 ) { \n + availableBlocks = stat . getAvailableBlocksLong ( ) ; \n + blockSize = stat . getBlockSizeLong ( ) ; \n + } else { \n + availableBlocks = stat . getAvailableBlocks ( ) ; \n + blockSize = stat . getBlockSize ( ) ; \n + } \n return availableBlocks * blockSize ; \n } \n }", "msg_token": "Use new StatFS API if available"} {"diff": " public class OreDictionary \n registerOre ( STRING0 , Items . quartz ) ; \n registerOre ( STRING1 , Items . redstone ) ; \n registerOre ( STRING2 , Items . glowstone_dust ) ; \n - registerOre ( STRING3 , new ItemStack ( Items . dye , NUMBER0 , NUMBER1 ) ) ; \n + registerOre ( STRING4 , new ItemStack ( Items . dye , NUMBER0 , NUMBER1 ) ) ; \n registerOre ( STRING5 , Items . slime_ball ) ; \n registerOre ( STRING6 , Blocks . glowstone ) ; \n registerOre ( STRING7 , Items . wheat ) ;", "msg_token": "Changed dustLapis to gemLapis to make OM SHUT THE HELL UP"} {"diff": " public interface IExecutorService extends ExecutorService , DistributedObject { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface IExecutorService extends ExecutorService , DistributedObject { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface IExecutorService extends ExecutorService , DistributedObject { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface IExecutorService extends ExecutorService , DistributedObject { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "javadoc fixes for methods w a MultiExecutionCallback param"} {"diff": " public class GridView extends AbsListView { \n final int selectedPosition = mSelectedPosition ; \n \n View child = null ; \n + final int nextChildDir = isLayoutRtl ? - NUMBER0 : + NUMBER0 ; \n for ( int pos = startPos ; pos < last ; pos ++ ) { \n SINGLE \n boolean selected = pos == selectedPosition ; \n public class GridView extends AbsListView { \n final int where = flow ? - NUMBER0 : pos - startPos ; \n child = makeAndAddView ( pos , y , flow , nextLeft , selected , where ) ; \n \n - nextLeft += ( isLayoutRtl ? - NUMBER0 : + NUMBER0 ) * columnWidth ; \n + nextLeft += nextChildDir * columnWidth ; \n if ( pos < last - NUMBER0 ) { \n - nextLeft += horizontalSpacing ; \n + nextLeft += nextChildDir * horizontalSpacing ; \n } \n \n if ( selected && ( hasFocus || inClick ) ) {", "msg_token": "Fix RTL horizontal spacing in Gridview"} {"diff": " public class Resources { \n return true ; \n } \n \n - COMMENT \n + @ nullable \n + Drawable loadDrawable ( TypedValue value , int id , Theme theme ) throws NotFoundException { \n if ( TRACE_FOR_PRELOAD ) { \n SINGLE \n if ( ( id > > > NUMBER0 ) == NUMBER1 ) { \n public class Resources { \n SINGLE \n SINGLE \n SINGLE \n - final boolean canApplyTheme = dr . canApplyTheme ( ) ; \n + final boolean canApplyTheme = dr != null && dr . canApplyTheme ( ) ; \n if ( canApplyTheme && theme != null ) { \n dr = dr . mutate ( ) ; \n dr . applyTheme ( theme ) ;", "msg_token": "Avoid NPE when drawable fails to load"} {"diff": " public class LocalEventBusTest extends EventBusTestBase { \n closeVertx ( ) ; \n await ( ) ; \n } \n + \n + @ test \n + public void testHandlerRegistrationDoesNotCancelTimer0 ( ) throws Exception { \n + HandlerRegistration < String > handlerRegistration = new HandlerRegistration < String > ( vertx , null , null , null , false , \n + false , null , - NUMBER0 ) ; \n + \n + AtomicBoolean timerFinished = new AtomicBoolean ( false ) ; \n + \n + long tid1 = vertx . setTimer ( NUMBER1 , id - > { \n + timerFinished . set ( true ) ; \n + } ) ; \n + \n + if ( tid1 != NUMBER2 ) { \n + fail ( STRING0 ) ; \n + } \n + \n + handlerRegistration . unregister ( ) ; \n + \n + vertx . setTimer ( NUMBER3 , id2 - > { \n + assertTrue ( STRING1 , timerFinished . get ( ) ) ; \n + testComplete ( ) ; \n + } ) ; \n + await ( ) ; \n + } \n }", "msg_token": "add unit test for the timer issue"} {"diff": " public class DigestAuthenticator extends AuthenticatorBase { \n } \n \n private static class NonceInfo { \n - private volatile long timestamp ; \n - private volatile boolean seen [ ] ; \n - private volatile int offset ; \n - private volatile int count = NUMBER0 ; \n + private final long timestamp ; \n + private final boolean seen [ ] ; \n + private final int offset ; \n + private int count = NUMBER0 ; \n \n public NonceInfo ( long currentTime , int seenWindowSize ) { \n this . timestamp = currentTime ;", "msg_token": "Remove volatile from variables as it is misleading"} {"diff": " public class DeprecationLogger { \n if ( ! isEnabled ( ) ) { \n return ; \n } \n - nagUserWith ( STRING0 \n - + STRING1 ) ; \n + nagUserWith ( STRING2 ) ; \n \n String propertyWithClass = target . getClass ( ) . getName ( ) + STRING3 + propertyName ; \n if ( DYNAMIC_PROPERTIES . add ( propertyWithClass ) ) {", "msg_token": "Removed an extra line in the deprecation message for dynamic properties"} {"diff": " public class HystrixCommandTest extends CommonHystrixCommandTests < TestHystrixCom \n assertTrue ( hook . fallbackEventsMatch ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n assertEquals ( TimeoutException . class , hook . getCommandException ( ) . getClass ( ) ) ; \n assertNull ( hook . getFallbackException ( ) ) ; \n + System . out . println ( STRING0 + HystrixRequestLog . getCurrentRequest ( ) . getExecutedCommandsAsString ( ) ) ; \n assertEquals ( STRING1 , hook . executionSequence . toString ( ) ) ; \n } \n } ) ; \n public class HystrixCommandTest extends CommonHystrixCommandTests < TestHystrixCom \n assertTrue ( hook . commandEmissionsMatch ( NUMBER1 , NUMBER0 , NUMBER1 ) ) ; \n assertTrue ( hook . executionEventsMatch ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n assertTrue ( hook . fallbackEventsMatch ( NUMBER1 , NUMBER0 , NUMBER1 ) ) ; \n + System . out . println ( STRING0 + HystrixRequestLog . getCurrentRequest ( ) . getExecutedCommandsAsString ( ) ) ; \n assertEquals ( STRING2 , hook . executionSequence . toString ( ) ) ; \n } \n } ) ;", "msg_token": "Add printlns to understand why some tests are failing"} {"diff": " public final class UrlImageViewHelper { \n } \n o = new Options ( ) ; \n o . inSampleSize = NUMBER0 < < scale ; \n - final Bitmap bitmap = BitmapFactory . decodeStream ( stream ) ; \n + final Bitmap bitmap = BitmapFactory . decodeStream ( stream , null , o ) ; \n SINGLE \n BitmapDrawable bd = new BitmapDrawable ( mResources , bitmap ) ; \n ZombieDrawable zd = new ZombieDrawable ( url , bd ) ;", "msg_token": "readd some code I deleted during testing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n @ retention ( RetentionPolicy . CLASS ) \n @ target ( { \n ElementType . ANNOTATION_TYPE ,", "msg_token": "Dump some more blahblah into the Beta annotation to try to clear up some persistent misconceptions"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class Note { \n COMMENT \n COMMENT \n public String getCommentPreview ( ) { \n - return getCommentBody ( ) . toString ( ) . replace ( STRING0 , STRING1 ) . replaceAll ( STRING2 , STRING1 ) . trim ( ) ; \n + return getCommentBody ( ) . toString ( ) . replaceAll ( STRING3 , STRING4 ) . replace ( STRING0 , STRING1 ) . replaceAll ( STRING2 , STRING1 ) . trim ( ) ; \n } \n COMMENT \n COMMENT", "msg_token": "Remove goofy looking obj image placeholder in comment preview of notifications list view"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Fix more docstrings"} {"diff": " public class MockHandler < T > implements MockAwareInterceptor < T > { \n InvocationMatcher invocationMatcher = matchersBinder . bindMatchers ( invocation ) ; \n \n if ( verificationMode != null ) { \n - SINGLE \n - verifyingRecorder . verify ( invocationMatcher , verificationMode ) ; \n + VerificationDataImpl data = new VerificationDataImpl ( verifyingRecorder . getRegisteredInvocations ( ) , invocationMatcher ) ; \n + verificationMode . verify ( data ) ; \n return null ; \n } \n \n package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n - SINGLE \n public class VerifyingRecorder { \n \n private RegisteredInvocations registeredInvocations = new RegisteredInvocations ( ) ; \n public class VerifyingRecorder { \n public List < Invocation > getRegisteredInvocations ( ) { \n return registeredInvocations . getVerifiableInvocations ( ) ; \n } \n - \n - public void verify ( InvocationMatcher wanted , VerificationMode mode ) { \n - mode . verify ( new VerificationDataImpl ( getRegisteredInvocations ( ) , wanted ) ) ; \n - } \n }", "msg_token": "thinning down verifyingRecorder"} {"diff": " public class GraphVisualizer extends JFrame implements VertexSelectionListener { \n JPanel pane = new JPanel ( ) ; \n pane . setLayout ( new GridLayout ( NUMBER0 , NUMBER1 ) ) ; \n \n - SINGLE \n + SINGLE \n walkCheckBox = new JCheckBox ( STRING0 ) ; \n walkCheckBox . setSelected ( true ) ; \n pane . add ( walkCheckBox ) ; \n public class GraphVisualizer extends JFrame implements VertexSelectionListener { \n carCheckBox = new JCheckBox ( STRING1 ) ; \n pane . add ( carCheckBox ) ; \n \n + SINGLE \n + JLabel dummyLabel = new JLabel ( STRING2 ) ; \n + pane . add ( dummyLabel ) ; \n + \n SINGLE \n JLabel arriveByLabel = new JLabel ( STRING3 ) ; \n pane . add ( arriveByLabel ) ;", "msg_token": "Added empty label to fix the layout of the grid"} {"diff": " public enum Token { \n PLACEHOLDER1 , \n PLACEHOLDER2 ; \n \n - @ deprecated \n - public static String name ( Token token ) { \n - return token . toString ( ) ; \n - } \n - \n COMMENT \n public static int arity ( Token token ) { \n switch ( token ) {", "msg_token": "Remove deprecated method Token name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ notthreadsafe \n + @ threadsafe \n interface InternalConnection extends BufferProvider { \n \n COMMENT", "msg_token": "Fixed Connection and InternalConnection Javadoc to reflect that both are now thread safe"} {"diff": " public class ActivityApp extends ActivityBase { \n holder . imgCbMethodRestricted . setImageBitmap ( getCheckBoxImage ( rstate ) ) ; \n holder . imgCbMethodRestricted . setVisibility ( View . VISIBLE ) ; \n \n + SINGLE \n holder . imgCbMethodWhitelist . setVisibility ( whitelist ? View . VISIBLE : View . GONE ) ; \n + if ( whitelist ) \n + holder . imgCbMethodWhitelist . setOnClickListener ( new View . OnClickListener ( ) { \n + @ override \n + public void onClick ( View view ) { \n + ActivityApp . this . optionWhitelists ( ) ; \n + } \n + } ) ; \n + else \n + holder . imgCbMethodWhitelist . setClickable ( false ) ; \n \n + SINGLE \n if ( ondemand ) { \n holder . imgCbMethodAsk . setImageBitmap ( getAskBoxImage ( rstate ) ) ; \n holder . imgCbMethodAsk . setVisibility ( View . VISIBLE ) ;", "msg_token": "Make whitelist icon clickable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class PendingRangeCalculatorService extends PendingRangeCalculatorService \n \n SINGLE \n SINGLE \n - synchronized ( bootstrapTokens ) \n - { \n + synchronized ( bootstrapTokens ) { \n + bootstrapTokens = new LinkedHashMap < Token , InetAddress > ( bootstrapTokens ) ; \n + } \n + \n for ( Map . Entry < Token , InetAddress > entry : bootstrapTokens . entrySet ( ) ) \n { \n InetAddress endpoint = entry . getValue ( ) ; \n public class PendingRangeCalculatorService extends PendingRangeCalculatorService \n pendingRanges . put ( range , endpoint ) ; \n allLeftMetadata . removeEndpoint ( endpoint ) ; \n } \n - } \n \n SINGLE \n SINGLE", "msg_token": "Remove synchronization in long running PCRS"} {"diff": " public class IntentionManagerSettings implements ApplicationComponent , NamedJDOM \n \n public static URL getIntentionDescriptionDirURL ( Class aClass , String prefix ) { \n URL pageURL = aClass . getClassLoader ( ) . getResource ( STRING0 + prefix ) ; \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( STRING1 + aClass . getName ( ) ) ; \n + LOG . debug ( STRING2 + aClass . getClassLoader ( ) ) ; \n + LOG . debug ( STRING3 + STRING0 + prefix ) ; \n + LOG . debug ( STRING4 + pageURL ) ; \n + } \n return pageURL ; \n }", "msg_token": "added trace for get intention description"} {"diff": " public class InnerClassVisitor extends InnerClassVisitorHelper implements Opcode \n ve . setUseReferenceDirectly ( true ) ; \n expressions . add ( pCount , ve ) ; \n \n - Parameter p = new Parameter ( ClassHelper . REFERENCE_TYPE , STRING0 + pCount ) ; \n + ClassNode rawReferenceType = ClassHelper . REFERENCE_TYPE . getPlainNodeReference ( ) ; \n + Parameter p = new Parameter ( rawReferenceType , STRING0 + pCount ) ; \n parameters . add ( pCount , p ) ; \n p . setOriginType ( var . getOriginType ( ) ) ; \n final VariableExpression initial = new VariableExpression ( p ) ; \n initial . setUseReferenceDirectly ( true ) ; \n - final FieldNode pField = innerClass . addFieldFirst ( ve . getName ( ) , PUBLIC_SYNTHETIC , ClassHelper . REFERENCE_TYPE , initial ) ; \n + final FieldNode pField = innerClass . addFieldFirst ( ve . getName ( ) , PUBLIC_SYNTHETIC , rawReferenceType , initial ) ; \n pField . setHolder ( true ) ; \n pField . setOriginType ( ClassHelper . getWrapper ( var . getOriginType ( ) ) ) ; \n }", "msg_token": "use the Reference Raw type instead of the generic version to avoid problems with generics"} {"diff": " public class CheckedExceptionCompatibilityConstraint extends InputOutputConstrai \n \n @ override \n public boolean reduce ( InferenceSession session , List < ConstraintFormula > constraints ) { \n - if ( ! PsiPolyExpressionUtil . isPolyExpression ( myExpression ) || \n - myExpression instanceof PsiCallExpression ) { \n + if ( myExpression instanceof PsiCallExpression || ! PsiPolyExpressionUtil . isPolyExpression ( myExpression ) ) { \n return true ; \n } \n if ( myExpression instanceof PsiParenthesizedExpression ) {", "msg_token": "simplify check for call expression"} {"diff": " public class ClassRenamer { \n \n private String renameRetargetIfNecessary ( String string ) { \n String value = retargets . get ( string ) ; \n - if ( value != null ) { \n + if ( value != null ) { \n return value ; \n } \n - if ( string . indexOf ( oldname ) != - NUMBER0 ) { \n + if ( string != null && string . indexOf ( oldname ) != - NUMBER0 ) { \n return string . replace ( oldname , newname ) ; \n } \n return string ;", "msg_token": "Fix for enums test"} {"diff": " public class UsbConfirmActivity extends AlertActivity \n \n } \n \n + @ override \n + protected void onDestroy ( ) { \n + if ( mDisconnectedReceiver != null ) { \n + unregisterReceiver ( mDisconnectedReceiver ) ; \n + } \n + super . onDestroy ( ) ; \n + } \n + \n public void onClick ( DialogInterface dialog , int which ) { \n if ( which == AlertDialog . BUTTON_POSITIVE ) { \n try {", "msg_token": "Fix broadcast receiver leak in UsbConfirmActivity"} {"diff": " public class WPWebViewActivity extends WebViewActivity implements DownloadListen \n } \n \n class DownloadExportFileTask extends AsyncTask < String , Void , Void > { \n + private DownloadManager downloadManager ; \n + @ override \n + protected void onPreExecute ( ) { \n + super . onPreExecute ( ) ; \n + downloadManager = ( DownloadManager ) getSystemService ( DOWNLOAD_SERVICE ) ; \n + } \n + \n @ override \n protected Void doInBackground ( String . . . exportUrls ) { \n try { \n public class WPWebViewActivity extends WebViewActivity implements DownloadListen \n SINGLE \n fileOutput . close ( ) ; \n \n + downloadManager . addCompletedDownload ( STRING0 , STRING1 , true , STRING2 , file . getPath ( ) , file . length ( ) , true ) ; \n + \n } catch ( java . io . IOException e ) { \n e . printStackTrace ( ) ; \n }", "msg_token": "Add completed download"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CassandraServer extends FacebookBase implements \n \n public List < String > get_range ( String tablename , final String startkey ) throws CassandraException \n { \n + if ( ! ( StorageService . getPartitioner ( ) instanceof OrderPreservingPartitioner ) ) { \n + throw new CassandraException ( STRING0 ) ; \n + } \n + \n logger_ . debug ( STRING1 ) ; \n \n SINGLE", "msg_token": "add check for OPP"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class AbstractJsonProvider implements JsonProvider { \n \n - private static final Logger logger = LoggerFactory . getLogger ( AbstractJsonProvider . class ) ; \n - \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused logger from class"} {"diff": " public class RestrictedPreferenceHelper { \n public boolean setDisabledByAdmin ( EnforcedAdmin admin ) { \n final boolean disabled = ( admin != null ? true : false ) ; \n mEnforcedAdmin = ( disabled ? admin : null ) ; \n + mPreference . setEnabled ( ! disabled ) ; \n if ( mDisabledByAdmin != disabled ) { \n mDisabledByAdmin = disabled ; \n - mPreference . setEnabled ( ! disabled ) ; \n return true ; \n } \n return false ;", "msg_token": "Always update preference state"} {"diff": " public class MailBinding { \n \n if ( attachmentFilename . toLowerCase ( ) . startsWith ( STRING0 ) ) { \n SINGLE \n - messageBodyPart . addHeader ( STRING1 , attachmentFilename . substring ( NUMBER0 ) ) ; \n + SINGLE \n + messageBodyPart . addHeader ( STRING1 , STRING2 + attachmentFilename . substring ( NUMBER0 ) + STRING3 ) ; \n } \n \n SINGLE", "msg_token": "attachments using cid must use angle brackets in Content ID according to RFC"} {"diff": " public class WeightedRVFDataset < L , F > extends RVFDataset < L , F > { \n \n float [ ] weights = new float [ NUMBER0 ] ; \n \n - public WeightedRVFDataset ( Index < L > labelIndex , int [ ] trainLabels , Index < F > featureIndex , int [ ] [ ] trainData , double [ ] [ ] trainValues , float [ ] trainWeights ) { \n + public WeightedRVFDataset ( ) { \n + super ( ) ; \n + } \n + \n + protected WeightedRVFDataset ( Index < L > labelIndex , int [ ] trainLabels , Index < F > featureIndex , int [ ] [ ] trainData , double [ ] [ ] trainValues , float [ ] trainWeights ) { \n super ( labelIndex , trainLabels , featureIndex , trainData , trainValues ) ; \n this . weights = trainWeights ; \n }", "msg_token": "Fix the build"} {"diff": " public class UIPrefsAccessor extends Prefs \n \n public PrefValue < Boolean > showFunctionTooltipOnIdle ( ) \n { \n - return bool ( STRING0 , true ) ; \n + return bool ( STRING1 , false ) ; \n } \n \n public static final String EDITOR_SURROUND_SELECTION_NEVER = STRING2 ;", "msg_token": "change option default name"} {"diff": " public class LowMemoryWatcher { \n private static final Runnable ourJanitor = new Runnable ( ) { \n @ override \n public void run ( ) { \n + LOG . info ( STRING0 ) ; \n try { \n for ( LowMemoryWatcher watcher : ourInstances ) { \n try { \n public class PersistentHashMap < Key , Value > extends PersistentEnumeratorDelegate < \n private final LowMemoryWatcher myAppendCacheFlusher = LowMemoryWatcher . register ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - LOG . info ( STRING1 ) ; \n dropMemoryCaches ( ) ; \n } \n } ) ;", "msg_token": "avoid duplicated logging"} {"diff": " import NAMESPACE ; \n COMMENT \n public class DefaultModuleRegistry implements ModuleRegistry { \n private final GradleDistributionLocator gradleDistributionLocator ; \n - private final ClassLoader classLoader ; \n private final Map < String , Module > modules = new HashMap < String , Module > ( ) ; \n private final List < File > classpath = new ArrayList < File > ( ) ; \n private final Map < String , File > classpathJars = new LinkedHashMap < String , File > ( ) ; \n public class DefaultModuleRegistry implements ModuleRegistry { \n } \n \n private DefaultModuleRegistry ( ClassLoader classLoader , ClassPath additionalModuleClassPath , GradleDistributionLocator gradleDistributionLocator ) { \n - this . classLoader = classLoader ; \n this . gradleDistributionLocator = gradleDistributionLocator ; \n \n for ( File classpathFile : new EffectiveClassPath ( classLoader ) . plus ( additionalModuleClassPath ) . getAsFiles ( ) ) {", "msg_token": "Removed unused field"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SocketPacketWriteHandler implements ChannelHandler { \n SINGLE \n routingTable . routePacket ( packet . getFrom ( ) , packet ) ; \n } \n - else { \n + else if ( recipient . getResource ( ) != null || ! ( packet instanceof Presence ) ) { \n + SINGLE \n routingTable . routePacket ( recipient , packet ) ; \n } \n + else { \n + SINGLE \n + for ( JID route : routingTable . getRoutes ( recipient ) ) { \n + routingTable . routePacket ( route , packet ) ; \n + } \n + } \n } \n catch ( Exception e ) { \n Log . error ( LocaleUtils . getLocalizedString ( STRING0 ) + STRING1 + packet . toString ( ) , e ) ;", "msg_token": "Fixed routing of Presence packets to bare jids"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GradleWorkerMain { \n \n public static void main ( String [ ] args ) { \n try { \n - GradleJvmSystem . installSecurity ( ) ; \n new GradleWorkerMain ( ) . run ( ) ; \n - GradleJvmSystem . exit ( NUMBER0 ) ; \n } catch ( Throwable throwable ) { \n throwable . printStackTrace ( System . err ) ; \n - GradleJvmSystem . exit ( NUMBER1 ) ; \n } \n } \n }", "msg_token": "Removed the gradle System exit protection from the GradleWorkerMain until I figure out how to fix failing UI tests"} {"diff": " class DetailsPanel extends JPanel implements ListSelectionListener { \n add ( myAuthor , g . nextLine ( ) . next ( ) ) ; \n add ( myCommitMessage , g . nextLine ( ) . next ( ) ) ; \n \n - setBackground ( UIUtil . getTableBackground ( ) ) ; \n + setOpaque ( false ) ; \n } \n \n void setData ( VcsCommit commit ) { \n class DetailsPanel extends JPanel implements ListSelectionListener { \n myCommitMessage . setText ( commit . getFullMessage ( ) ) ; \n repaint ( ) ; \n } \n - \n } \n \n private static class RefsPanel extends JPanel { \n class DetailsPanel extends JPanel implements ListSelectionListener { \n myRefPainter = new RefPainter ( ) ; \n myRefs = Collections . emptyList ( ) ; \n setPreferredSize ( new Dimension ( - NUMBER0 , PrintParameters . HEIGHT_CELL + UIUtil . DEFAULT_VGAP ) ) ; \n - setBackground ( UIUtil . getTableBackground ( ) ) ; \n + setOpaque ( false ) ; \n } \n \n @ override", "msg_token": "simplify background setting"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NtlmAwareLdapAuthenticatorImpl extends BindAuthenticator { \n + public class NtlmAwareLdapAuthenticator extends BindAuthenticator { \n SINGLE \n \n - private static final Log logger = LogFactory . getLog ( NtlmAwareLdapAuthenticatorImpl . class ) ; \n + private static final Log logger = LogFactory . getLog ( NtlmAwareLdapAuthenticator . class ) ; \n \n \n SINGLE \n \n - public NtlmAwareLdapAuthenticatorImpl ( InitialDirContextFactory initialDirContextFactory ) { \n + public NtlmAwareLdapAuthenticator ( InitialDirContextFactory initialDirContextFactory ) { \n super ( initialDirContextFactory ) ; \n }", "msg_token": "Renamed NtlmAwareLdapAuthenticatorImpl to NtlmAwareLdapAuthenticator as there is no longer a corresponding interface"} {"diff": " public class OpenSSLContext implements org . apache . tomcat . util . net . SSLContext { \n aprPool = Pool . create ( NUMBER0 ) ; \n boolean success = false ; \n try { \n - if ( SSLHostConfig . adjustRelativePath ( certificate . getCertificateFile ( ) ) == null ) { \n - SINGLE \n - SINGLE \n - } \n - \n SINGLE \n int value = SSL . SSL_PROTOCOL_NONE ; \n if ( sslHostConfig . getProtocols ( ) . size ( ) == NUMBER0 ) {", "msg_token": "Remove unused code"} {"diff": " public final class MidiDeviceInfo implements Parcelable { \n mId = id ; \n mInputPortCount = numInputPorts ; \n mOutputPortCount = numOutputPorts ; \n - mInputPortNames = inputPortNames ; \n - mOutputPortNames = outputPortNames ; \n + if ( inputPortNames == null ) { \n + mInputPortNames = new String [ numInputPorts ] ; \n + } else { \n + mInputPortNames = inputPortNames ; \n + } \n + if ( outputPortNames == null ) { \n + mOutputPortNames = new String [ numOutputPorts ] ; \n + } else { \n + mOutputPortNames = outputPortNames ; \n + } \n mProperties = properties ; \n mIsPrivate = isPrivate ; \n }", "msg_token": "Fix NPE for devices with no port names"} {"diff": " public class KotlinBytecodeToolWindow extends JPanel implements Disposable { \n exhaust . getModuleDescriptor ( ) , exhaust . getBindingContext ( ) , \n Collections . singletonList ( jetFile ) , true , true , \n GenerationState . GenerateClassFilter . GENERATE_ALL , \n - enableInline . isSelected ( ) , enableOptimization . isEnabled ( ) , null , null , \n + enableInline . isSelected ( ) , enableOptimization . isSelected ( ) , null , null , \n DiagnosticHolder . DO_NOTHING , null ) ; \n KotlinCodegenFacade . compileCorrectFiles ( state , CompilationErrorHandler . THROW_EXCEPTION ) ; \n }", "msg_token": "Fix optimizations check box in bytecode toolwindow"} {"diff": " public class StaticByteBuffer implements StaticBuffer { \n \n private final ByteBuffer b ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public StaticByteBuffer ( final ByteBuffer buffer ) { \n Preconditions . checkNotNull ( buffer ) ; \n this . b = buffer ;", "msg_token": "Added Javadoc on StaticByteBuffer constructor"} {"diff": " public class BNCCheck { \n private Main prg ; \n \n private BNCCheck ( ) throws IOException , ParserConfigurationException , SAXException { \n - prg = new Main ( false , Language . ENGLISH ) ; \n + prg = new Main ( false , Language . ENGLISH , null ) ; \n String [ ] disRules = new String [ ] { STRING0 , STRING1 , \n STRING2 , STRING3 } ; \n System . err . println ( STRING4 ) ;", "msg_token": "adapt to API change"} {"diff": " public final class Options { \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public Options build ( ) { \n return mOptions ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class PullToRefreshLayout extends FrameLayout {", "msg_token": "Add some missing javadoc"} {"diff": " public class TextFileType extends EditableFileType \n results . add ( commands . goToLine ( ) ) ; \n if ( canExecuteCode ( ) || isC ( ) ) \n { \n + results . add ( commands . reindent ( ) ) ; \n + } \n + if ( canExecuteCode ( ) ) { \n results . add ( commands . executeCode ( ) ) ; \n results . add ( commands . executeCodeWithoutFocus ( ) ) ; \n results . add ( commands . executeLastCode ( ) ) ; \n results . add ( commands . extractFunction ( ) ) ; \n results . add ( commands . extractLocalVariable ( ) ) ; \n results . add ( commands . commentUncomment ( ) ) ; \n - results . add ( commands . reindent ( ) ) ; \n results . add ( commands . reflowComment ( ) ) ; \n } \n if ( canExecuteAllCode ( ) )", "msg_token": "Give reindent its own block"} {"diff": " public abstract class ProcessorDefinition < Type extends ProcessorDefinition < Type > \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 public ChoiceDefinition endChoice ( ) { \n SINGLE", "msg_token": "improved javadoc doc"} {"diff": " public class ExcelImporterTests extends ImporterTest { \n private static final double EPSILON = FLOAT0 ; \n private static final int SHEETS = NUMBER0 ; \n private static final int ROWS = NUMBER1 ; \n - private static final int COLUMNS = NUMBER2 ; \n + private static final int COLUMNS = NUMBER3 ; \n \n SINGLE \n private static final File xlsFile = createSpreadsheet ( false ) ;", "msg_token": "Fix failing test"} {"diff": " public class SourceLineResultSetIteratorTest { \n @ test \n public void should_generate_source_line_documents ( ) throws Exception { \n db . prepareDbUnit ( getClass ( ) , STRING0 ) ; \n - Connection connection = db . openConnection ( ) ; \n PreparedStatement stmt = connection . prepareStatement ( STRING1 ) ; \n stmt . setString ( NUMBER0 , STRING2 + \n STRING3 + \n public class SourceLineResultSetIteratorTest { \n @ test \n public void should_fail_on_bad_csv ( ) throws Exception { \n db . prepareDbUnit ( getClass ( ) , STRING0 ) ; \n - Connection connection = db . openConnection ( ) ; \n PreparedStatement stmt = connection . prepareStatement ( STRING1 ) ; \n stmt . setString ( NUMBER0 , STRING4 ) ; \n stmt . executeUpdate ( ) ;", "msg_token": "Fix DB connection leak"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class NearCacheImpl implements NearCache < Data , Object > { \n this . serializationService = nodeEngine . getSerializationService ( ) ; \n this . invalidateOnChange = nearCacheConfig . isInvalidateOnChange ( ) ; \n this . mapName = mapName ; \n - int partitionCount = getPartitionCount ( nodeEngine ) ; \n - } \n - \n - private int getPartitionCount ( NodeEngine nodeEngine ) { \n - HazelcastProperties properties = nodeEngine . getProperties ( ) ; \n - return properties . getInteger ( PARTITION_COUNT ) ; \n } \n \n SINGLE", "msg_token": "Removed dead store to partitionCount"} {"diff": " import NAMESPACE ; \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", "msg_token": "Added remark to Factory Javadocs concerning static imports"} {"diff": " public class PooledByteBufAllocator extends AbstractByteBufAllocator { \n } \n } \n \n - @ deprecated \n - @ suppresswarnings ( STRING0 ) \n - public PooledByteBufAllocator ( boolean preferDirect , int nHeapArena , int nDirectArena , int pageSize , int maxOrder , \n - int tinyCacheSize , int smallCacheSize , int normalCacheSize , \n - long cacheThreadAliveCheckInterval ) { \n - this ( preferDirect , nHeapArena , nDirectArena , pageSize , maxOrder , \n - tinyCacheSize , smallCacheSize , normalCacheSize ) ; \n - } \n - \n @ suppresswarnings ( STRING1 ) \n private static < T > PoolArena < T > [ ] newArenaArray ( int size ) { \n return new PoolArena [ size ] ;", "msg_token": "Remove the deprecated constructor"} {"diff": " public abstract class RoutingResource { \n boolean tripPlannedForNow = Math . abs ( request . getDateTime ( ) . getTime ( ) - new Date ( ) . getTime ( ) ) \n < NOW_THRESHOLD_MILLIS ; \n request . setUseBikeRentalAvailabilityInformation ( tripPlannedForNow ) ; \n - if ( intermediatePlaces != null \n + if ( intermediatePlaces != null && intermediatePlaces . size ( ) > NUMBER0 \n && ( request . getModes ( ) . isTransit ( ) || \n ( request . getModes ( ) . getWalk ( ) && \n request . getModes ( ) . getBicycle ( ) ) ) )", "msg_token": "handle case of empty non null intermediateplaces"} {"diff": " public abstract class XmlElementImpl extends CompositePsiElement implements XmlE \n if ( anchor != null ) { \n final PsiElement original = anchor . retrieve ( ) ; \n if ( original != null ) { \n - final int endOffset = getTextRange ( ) . getEndOffset ( ) ; \n + final int endOffset = getTextRange ( ) . getEndOffset ( ) + original . getTextRange ( ) . getStartOffset ( ) ; \n \n PsiElement candidate = original . findElementAt ( getTextRange ( ) . getStartOffset ( ) - root . getTextRange ( ) . getStartOffset ( ) ) ; \n - while ( candidate != null && candidate . getTextRange ( ) . getEndOffset ( ) < endOffset ) { \n + while ( candidate != null && candidate . getStartOffsetInParent ( ) == NUMBER0 && candidate . getTextRange ( ) . getEndOffset ( ) < endOffset ) { \n candidate = candidate . getParent ( ) ; \n }", "msg_token": "include navigation offsets"} {"diff": " public final class Icon implements Parcelable { \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 + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void loadDrawableAsync ( Context context , final OnDrawableLoadedListener listener , \n Handler handler ) {", "msg_token": "Fix javadoc for Icon loadDrawableAsync Context OnDrawableLoadedListener Handler"} {"diff": " public class JobExecutorMBean { \n \n @ managedattribute ( description = STRING0 ) \n public boolean isJobExecutorActivated ( ) { \n - return jobExecutor == null || jobExecutor . isActive ( ) ; \n + return jobExecutor != null && jobExecutor . isActive ( ) ; \n } \n \n @ managedoperation ( description = STRING1 )", "msg_token": "fix a bug in jmx mbean"} {"diff": " public class HistogramTests extends ESIntegTestCase { \n \n SINGLE \n int bucketsCount = ( int ) ( ( boundsMaxKey - boundsMinKey ) / interval ) + NUMBER0 ; \n - long [ ] extendedValueCounts = new long [ bucketsCount ] ; \n + long [ ] extendedValueCounts = new long [ valueCounts . length + addedBucketsLeft + addedBucketsRight ] ; \n System . arraycopy ( valueCounts , NUMBER1 , extendedValueCounts , addedBucketsLeft , valueCounts . length ) ; \n \n SearchResponse response = null ;", "msg_token": "TEST fix histogram test when extended bounds overlaps data"} {"diff": " public class ShiftReduceOptions extends Options { \n } else if ( args [ i ] . equalsIgnoreCase ( STRING0 ) ) { \n trainOptions ( ) . cvAveragedModels = false ; \n i ++ ; \n + } else if ( args [ i ] . equalsIgnoreCase ( STRING1 ) ) { \n + trainOptions ( ) . retrainAfterCutoff = true ; \n + i ++ ; \n + } else if ( args [ i ] . equalsIgnoreCase ( STRING2 ) ) { \n + trainOptions ( ) . retrainAfterCutoff = false ; \n + i ++ ; \n } else if ( args [ i ] . equalsIgnoreCase ( STRING3 ) ) { \n trainOptions ( ) . trainingMethod = ShiftReduceTrainOptions . TrainingMethod . valueOf ( args [ i + NUMBER0 ] . toUpperCase ( ) ) ; \n if ( trainOptions ( ) . trainingMethod == ShiftReduceTrainOptions . TrainingMethod . BEAM ||", "msg_token": "Add a flag for retrainAfterCutoff"} {"diff": " public abstract class AbstractHistogram extends AbstractHistogramBase implements \n return ; SINGLE \n } \n final long internalValue = value & ~ unitMagnitudeMask ; SINGLE \n - while ( internalValue < minNonZeroValue ) { \n - minNonZeroValueUpdater . compareAndSet ( this , minNonZeroValue , internalValue ) ; \n + long sampledMinNonZeroValue ; \n + while ( internalValue < ( sampledMinNonZeroValue = minNonZeroValue ) ) { \n + minNonZeroValueUpdater . compareAndSet ( this , sampledMinNonZeroValue , internalValue ) ; \n } \n }", "msg_token": "Fix race in updateMinNonZeroValue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove Imports OCIDResponse"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n \n protected void hideRecents ( boolean triggeredFromAltTab ) { \n if ( mRecents != null ) { \n - sendCloseSystemWindows ( mContext , SYSTEM_DIALOG_REASON_RECENT_APPS ) ; \n mRecents . hideRecents ( triggeredFromAltTab ) ; \n } \n }", "msg_token": "Should not be closing system dialogs when Recents is hidden"} {"diff": " public class ConstantBranchPruner extends TreeVisitor { \n @ override \n public void endVisit ( DoStatement node ) { \n if ( getValue ( node . getExpression ( ) ) == FALSE ) { \n - node . remove ( ) ; \n + node . replaceWith ( node . getBody ( ) . copy ( ) ) ; \n } \n } \n \n public class ConstantBranchPrunerTest extends GenerationTest { \n assertTranslatedLines ( translation , STRING0 , STRING1 , STRING2 , STRING3 ) ; \n } \n \n + SINGLE \n + public void testFalseDoExpression ( ) throws IOException { \n + String translation = translateSourceFile ( \n + STRING4 , \n + STRING5 , STRING6 ) ; \n + assertTranslatedLines ( translation , STRING7 , STRING8 , STRING9 , STRING2 , STRING2 ) ; \n + translation = translateSourceFile ( \n + STRING10 \n + + STRING11 , \n + STRING5 , STRING6 ) ; \n + assertTranslatedLines ( translation , STRING7 , STRING8 , STRING9 , STRING2 , STRING2 ) ; \n + } \n + \n SINGLE \n public void testTrueIfExpression ( ) throws IOException { \n String translation = translateSourceFile (", "msg_token": "Keep the do stmt body if the const exp is false"} {"diff": " public class InternalComponentManager implements ComponentManager , RoutableChann \n } \n } \n catch ( Exception e ) { \n - Log . error ( STRING0 + \n - packet . toXML ( ) , e ) ; \n + Log . error ( STRING1 + component + \n + STRING2 + packet . toXML ( ) , e ) ; \n } \n } \n }", "msg_token": "Added try catch when processing disco packet of external component"} {"diff": " public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer { \n } \n \n @ override \n - public String [ ] getLibraries ( ) { \n - return new String [ ] { STRING0 } ; \n - } \n - \n - @ override \n public void playCommands ( CommandBuilder builder ) { \n filesToPlay . addAll ( builder . execute ( ) ) ; \n playQueue ( ) ;", "msg_token": "Fix media player"} {"diff": " public class K9 extends Application { \n \n \n public static boolean startIntegratedInbox ( ) { \n - return ! mHideSpecialAccounts && mStartIntegratedInbox ; \n + return mStartIntegratedInbox ; \n } \n \n public static void setStartIntegratedInbox ( boolean startIntegratedInbox ) {", "msg_token": "Removed dup check keeping the more explicit one per cketti recommendation"} {"diff": " public class TestChaosMonkeyResource { \n } \n \n @ test \n - public void testServlet ( ) { \n + public void testResource ( ) { \n MonkeyRunner . getInstance ( ) . replaceMonkey ( BasicChaosMonkey . class , MockTestChaosMonkeyContext . class ) ; \n \n ChaosMonkeyResource resource = new ChaosMonkeyResource ( ) ;", "msg_token": "Fixed name consistency"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UsbDeviceManager { \n } \n \n private static boolean containsFunction ( String functions , String function ) { \n - int index = functions . indexOf ( function ) ; \n - if ( index < NUMBER0 ) return false ; \n - if ( index > NUMBER0 && functions . charAt ( index - NUMBER1 ) != STRING0 ) return false ; \n - int charAfter = index + function . length ( ) ; \n - if ( charAfter < functions . length ( ) && functions . charAt ( charAfter ) != STRING0 ) return false ; \n - return true ; \n + return Arrays . asList ( functions . split ( STRING1 ) ) . contains ( function ) ; \n } \n \n private final class UsbHandler extends Handler {", "msg_token": "Simplify UsbDeviceManager containsFunction"} {"diff": " public class Glide { \n private static Glide GLIDE ; \n private final GenericLoaderFactory loaderFactory = new GenericLoaderFactory ( ) ; \n private final RequestQueue requestQueue ; \n - private ImageManager imageManager = null ; \n + private final ImageManager imageManager ; \n \n COMMENT \n COMMENT", "msg_token": "Make ImageManager final"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FrameSplitter extends H2OCountedCompleter { \n SINGLE \n assert cs [ i ] . _len == splits [ _partIdx ] ; SINGLE \n SINGLE \n - extractChunkPart ( _srcVecs [ i ] . chunkForChunkIdx ( cidx ) , cs [ i ] , startRow , splits [ _partIdx ] , _fs ) ; \n + ChunkSplitter . extractChunkPart ( _srcVecs [ i ] . chunkForChunkIdx ( cidx ) , cs [ i ] , startRow , splits [ _partIdx ] , _fs ) ; \n SINGLE \n } \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NewChunkHelper { \n + public class ChunkSplitter { \n COMMENT \n public static NewChunk resetLen ( NewChunk nc ) { \n nc . _len = nc . _len2 = NUMBER0 ;", "msg_token": "Rename Helper file to something else"} {"diff": " public class ODocument extends ORecordAbstract implements Iterable < Entry < String , \n if ( _fields != null && ! _fields . isEmpty ( ) ) { \n boolean allFound = true ; \n for ( String f : iFields ) \n - if ( ! f . startsWith ( STRING0 ) && ! _fields . containsKey ( f ) ) { \n + if ( f != null && ! f . startsWith ( STRING0 ) && ! _fields . containsKey ( f ) ) { \n allFound = false ; \n break ; \n }", "msg_token": "Fixed NPE in case of parallel queries"} {"diff": " public class CodeItem extends OffsettedItem < CodeItem > { \n return ItemType . TYPE_CODE_ITEM ; \n } \n \n + public int getRegisterCount ( ) { \n + return registersCountField . getCachedValue ( ) ; \n + } \n + \n + public List < InstructionField > getInstructions ( ) { \n + return ( List < InstructionField > ) instructionList . clone ( ) ; \n + } \n + \n public void copyTo ( DexFile dexFile , CodeItem copy ) \n { \n for ( int i = NUMBER0 ; i < fields . length - NUMBER1 ; i ++ ) {", "msg_token": "Added some accessors to CodeItem"} {"diff": " public class HttpServer extends AbstractLifecycleComponent < HttpServer > { \n if ( logger . isInfoEnabled ( ) ) { \n logger . info ( STRING0 , transport . boundAddress ( ) ) ; \n } \n - nodeService . putNodeAttribute ( STRING1 , transport . boundAddress ( ) . publishAddress ( ) . toString ( ) ) ; \n + nodeService . putAttribute ( STRING1 , transport . boundAddress ( ) . publishAddress ( ) . toString ( ) ) ; \n } \n \n @ override \n protected void doStop ( ) throws ElasticSearchException { \n - nodeService . removeNodeAttribute ( STRING1 ) ; \n + nodeService . removeAttribute ( STRING1 ) ; \n transport . stop ( ) ; \n }", "msg_token": "use non deprecated methods"} {"diff": " public class BuckConfig { \n return Boolean . parseBoolean ( getValue ( STRING0 , STRING1 ) . or ( STRING2 ) ) ; \n } \n \n + public boolean getFlushEventsBeforeExit ( ) { \n + return getBooleanValue ( STRING3 , STRING4 , false ) ; \n + } \n + \n public ImmutableSet < String > getListenerJars ( ) { \n String jarPathsString = getValue ( STRING5 , STRING6 ) . or ( STRING7 ) ; \n Splitter splitter = Splitter . on ( STRING8 ) . omitEmptyStrings ( ) . trimResults ( ) ; \n public final class Main { \n } finally { \n commandSemaphore . release ( ) ; SINGLE \n } \n - if ( isDaemon ) { \n + if ( isDaemon && ! config . getFlushEventsBeforeExit ( ) ) { \n context . get ( ) . in . close ( ) ; SINGLE \n context . get ( ) . exit ( exitCode ) ; SINGLE \n }", "msg_token": "Create a setting for not flushing event listeners after buckd returns"} {"diff": " public class EditPOIFilterActivity extends OsmandListActivity { \n } \n \n public ListView selectAllFromCategory ( PoiCategory poiCategory ) { \n - filter . selectSubTypesToAccept ( poiCategory , null ) ; \n + filter . updateTypesToAccept ( poiCategory ) ; \n helper . editPoiFilter ( filter ) ; \n ListView lv = this . getListView ( ) ; \n AmenityAdapter la = this . getListAdapter ( ) ;", "msg_token": "Fix toilets customer filter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class DefaultIssueQueryResultTest { \n + \n + @ test ( expected = IllegalArgumentException . class ) \n + public void should_first_throw_exception_if_no_issue ( ) { \n + DefaultIssueQueryResult result = new DefaultIssueQueryResult ( Collections . < Issue > emptyList ( ) ) ; \n + result . first ( ) ; \n + } \n + \n @ test \n public void test_first_issue ( ) { \n - DefaultIssueQueryResult result = new DefaultIssueQueryResult ( Collections . < Issue > emptyList ( ) ) ; \n - assertThat ( result . first ( ) ) . isNull ( ) ; \n + DefaultIssueQueryResult result = new DefaultIssueQueryResult ( newArrayList ( ( Issue ) new DefaultIssue ( ) ) ) ; \n + assertThat ( result . first ( ) ) . isNotNull ( ) ; \n \n Issue first = new DefaultIssue ( ) ; \n Issue second = new DefaultIssue ( ) ;", "msg_token": "Fix unit test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class WindowManagerImpl extends WindowManagerEx implements NamedCom \n myProject2Frame . put ( null , frame ) ; \n \n if ( myFrameBounds == null || ! ScreenUtil . isVisible ( myFrameBounds ) ) { SINGLE \n - final Rectangle rect = ScreenUtil . getMainScreenBounds ( ) ; \n - int yParts = rect . height / NUMBER0 ; \n - int xParts = rect . width / NUMBER1 ; \n - myFrameBounds = new Rectangle ( xParts / NUMBER2 , yParts / NUMBER2 , xParts * NUMBER3 , yParts * NUMBER4 ) ; \n + myFrameBounds = ScreenUtil . getMainScreenBounds ( ) ; \n + int xOff = myFrameBounds . width / NUMBER5 ; \n + int yOff = myFrameBounds . height / NUMBER5 ; \n + JBInsets . removeFrom ( myFrameBounds , new Insets ( yOff , xOff , yOff , xOff ) ) ; \n } \n \n fixForOracleBug8007219 ( frame ) ;", "msg_token": "change the initial size of the main frame"} {"diff": " public class NearCacheTest extends HazelcastTestSupport { \n @ test \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void testCacheLocalEntries ( ) { \n int n = NUMBER0 ;", "msg_token": "add specific note to NearCacheTest testCacheLocalEntries"} {"diff": " public class TextToSpeech { \n result = mITts . setLanguage ( mCachedParams [ Engine . TTS_PARAM_POSITION_LANGUAGE + NUMBER0 ] , \n mCachedParams [ Engine . TTS_PARAM_POSITION_COUNTRY + NUMBER0 ] , \n mCachedParams [ Engine . TTS_PARAM_POSITION_VARIANT + NUMBER0 ] ) ; \n + } catch ( RemoteException e ) { \n SINGLE \n mStarted = false ; \n initTts ( ) ;", "msg_token": "Adding a missing catch"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PojoRouteTest extends TestCase { \n SINGLE \n camelContext . addRoutes ( new RouteBuilder ( ) { \n public void configure ( ) { \n - from ( STRING0 ) . to ( STRING1 ) ; \n + from ( STRING0 ) . to ( STRING2 ) ; \n } \n } ) ; \n SINGLE", "msg_token": "Updated wiki sample to use bean instead of pojo that is deprecated"} {"diff": " public class SimpleAttributes2GrantedAuthoritiesMapper implements Attributes2Gra \n return attributePrefix == null ? STRING0 : attributePrefix ; \n } \n \n - public void seAttributePrefix ( String string ) { \n + public void setAttributePrefix ( String string ) { \n attributePrefix = string ; \n }", "msg_token": "Fixed typo in setter method seAttributePrefix"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n \n \n public class TestGlobalCount extends BaseRichBolt { \n public class TestGlobalCount extends BaseRichBolt { \n \n public void execute ( Tuple input ) { \n _count ++ ; \n - _collector . emit ( tuple ( _count ) ) ; \n + _collector . emit ( input , new Values ( _count ) ) ; \n _collector . ack ( input ) ; \n }", "msg_token": "fix TestGlobalCount to anchor tuples to it doesn t cause errors in tests"} {"diff": " public class Message extends AbstractEntity { \n \n public static final String TABLENAME = STRING0 ; \n \n - public static final String MERGE_SEPARATOR = STRING1 ; \n + public static final String MERGE_SEPARATOR = STRING2 ; \n \n public static final int STATUS_RECEIVED = NUMBER0 ; \n public static final int STATUS_UNSEND = NUMBER1 ;", "msg_token": "changed paragraph divider"} {"diff": " public class SqlProducer extends DefaultProducer { \n } else { \n boolean isResultSet = ps . execute ( ) ; \n if ( isResultSet ) { \n + SINGLE \n + exchange . getOut ( ) . getHeaders ( ) . putAll ( exchange . getIn ( ) . getHeaders ( ) ) ; \n + \n ResultSet rs = ps . getResultSet ( ) ; \n SqlOutputType outputType = getEndpoint ( ) . getOutputType ( ) ; \n log . trace ( STRING0 , rs , outputType ) ; \n public class SqlProducer extends DefaultProducer { \n } else { \n throw new IllegalArgumentException ( STRING1 + outputType ) ; \n } \n - \n - SINGLE \n - exchange . getOut ( ) . getHeaders ( ) . putAll ( exchange . getIn ( ) . getHeaders ( ) ) ; \n } else { \n exchange . getIn ( ) . setHeader ( SqlConstants . SQL_UPDATE_COUNT , ps . getUpdateCount ( ) ) ; \n }", "msg_token": "Fixed sql producer setting header after preserving"} {"diff": " public class TemplateManagerImpl extends TemplateManager implements ProjectCompo \n } \n } \n \n - private static boolean containsTemplateStartingBefore ( Map < TemplateImpl , String > template2argument , \n - int offset , \n - int caretOffset , \n - CharSequence text ) { \n - for ( TemplateImpl template : template2argument . keySet ( ) ) { \n - String argument = template2argument . get ( template ) ; \n - int templateStart = getTemplateStart ( template , argument , caretOffset , text ) ; \n - if ( templateStart <= offset ) { \n - return true ; \n - } \n - } \n - return false ; \n - } \n - \n public boolean startTemplate ( final Editor editor , char shortcutChar , final PairProcessor < String , String > processor ) { \n PsiFile file = PsiUtilBase . getPsiFileInEditor ( editor , myProject ) ; \n if ( file == null ) return false ;", "msg_token": "remove unused method"} {"diff": " public class RandomSeedGenerator { \n if ( log . isInfoEnabled ( ) ) { \n log . info ( STRING0 + value . asFormatString ( ) ) ; \n } \n - writer . append ( new Text ( key . toString ( ) ) , new Cluster ( value ) ) ; \n + Cluster val = new Cluster ( value ) ; \n + val . addPoint ( value ) ; \n + writer . append ( new Text ( key . toString ( ) ) , val ) ; \n count ++ ; \n } \n }", "msg_token": "add the center as a point"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - abstract class GitPushSource implements PushSource { \n + public abstract class GitPushSource implements PushSource { \n \n @ notnull \n - static GitPushSource create ( @ notnull GitLocalBranch branch ) { \n + public static GitPushSource create ( @ notnull GitLocalBranch branch ) { \n return new OnBranch ( branch ) ; \n } \n \n @ notnull \n - static GitPushSource create ( @ notnull String revision ) { \n + public static GitPushSource create ( @ notnull String revision ) { \n return new DetachedHead ( revision ) ; \n }", "msg_token": "git Make GitPushSource public to let it available from plugins"} {"diff": " public class SedaAsyncRouteTest extends ContextTestSupport { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedBodiesReceived ( STRING1 ) ; \n \n + SINGLE \n Object out = template . requestBody ( STRING2 , STRING1 ) ; \n assertEquals ( STRING3 , out ) ; \n + SINGLE \n \n assertMockEndpointsSatisfied ( ) ; \n } \n public class SedaAsyncRouteTest extends ContextTestSupport { \n @ override \n protected RouteBuilder createRouteBuilder ( ) throws Exception { \n return new RouteBuilder ( ) { \n + SINGLE \n public void configure ( ) throws Exception { \n from ( STRING2 ) \n SINGLE \n public class SedaAsyncRouteTest extends ContextTestSupport { \n \n from ( STRING4 ) . to ( STRING0 ) ; \n } \n + SINGLE \n } ; \n } \n }", "msg_token": "Added snippet for wiki"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing license header"} {"diff": " public class InlineMarker { \n public static void afterInlineCall ( ) { \n \n } \n - \n - public static void beforeLambdaCall ( ) { \n - \n - } \n - \n - public static void afterLambdaCall ( ) { \n - \n - } \n - \n - } \n + }", "msg_token": "Removed unused inline markers"} {"diff": " public class BuiltInCheckerSuppliers { \n LongLiteralLowerCaseSuffix . class , \n MislabeledAndroidString . class , \n MisusedWeekYear . class , \n + MockitoCast . class , \n MockitoUsage . class , \n NonCanonicalStaticImport . class , \n NonFinalCompileTimeConstant . class , \n public class BuiltInCheckerSuppliers { \n MissingCasesInEnumSwitch . class , \n MissingFail . class , \n MissingOverride . class , \n - MockitoCast . class , \n ModifyingCollectionWithItself . class , \n NarrowingCompoundAssignment . class , \n NoAllocationChecker . class ,", "msg_token": "Make MockitoCast an error"} {"diff": " public class StringUtil \n \n public static String ensureSurroundedWith ( String string , char chr ) \n { \n + if ( isNullOrEmpty ( string ) ) \n + return STRING0 ; \n String result = string ; \n if ( result . charAt ( NUMBER0 ) != chr ) \n result = chr + result ;", "msg_token": "Handle empty null strings"} {"diff": " public class TtsService extends Service implements OnCompletionListener { \n if ( mSpeechQueue . size ( ) > NUMBER0 ) { \n mSpeechQueue . remove ( NUMBER0 ) ; \n } \n - } catch ( InterruptedException e ) { \n - Log . e ( STRING0 , STRING1 ) ; \n - e . printStackTrace ( ) ; \n } finally { \n SINGLE \n SINGLE", "msg_token": "Unbreaking the build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DruidMasterTest \n \n EasyMock . expect ( serverInventoryView . getInventoryValue ( STRING0 ) ) . andReturn ( druidServer ) ; \n EasyMock . expect ( serverInventoryView . getInventoryValue ( STRING1 ) ) . andReturn ( druidServer ) ; \n + EasyMock . expect ( serverInventoryView . getInventoryManagerConfig ( ) ) . andReturn ( new InventoryManagerConfig ( ) \n + { \n + @ override \n + public String getContainerPath ( ) \n + { \n + return STRING2 ; \n + } \n + \n + @ override \n + public String getInventoryPath ( ) \n + { \n + return STRING2 ; \n + } \n + } ) ; \n EasyMock . replay ( serverInventoryView ) ; \n \n master . moveSegment ( STRING0 , STRING1 , STRING3 , null ) ;", "msg_token": "fix broken test"} {"diff": " public interface GroovyContext extends Context { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n void byMethod ( @ delegatesto ( GroovyByMethodSpec . class ) Closure < ? > closure ) throws Exception ; \n \n public interface GroovyContext extends Context { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n void byContent ( @ delegatesto ( GroovyByContentSpec . class ) Closure < ? > closure ) throws Exception ;", "msg_token": "Missing throws tags"} {"diff": " final class Utils { \n return NUMBER0 ; \n } \n return cursor . getInt ( NUMBER0 ) ; \n - } catch ( IllegalArgumentException ignored ) { \n + } catch ( RuntimeException ignored ) { \n SINGLE \n return NUMBER0 ; \n } finally {", "msg_token": "Catch a more general exception when checking for rotation from content"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ stateless \n + @ transactionmanagement ( TransactionManagementType . BEAN ) \n public class ScheduledTasks { \n \n @ inject \n public class ScheduledTasks { \n @ inject \n DatabaseCleaningService cleaner ; \n \n - @ persistencecontext \n - EntityManager em ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "create a new transaction for each delete chunk"} {"diff": " public class DefaultSensorContext implements SensorContext { \n } \n \n private Resource resourceOrProject ( Resource resource ) { \n - return resource != null ? getResource ( resource ) : project ; \n + if ( resource == null ) { \n + return project ; \n + } \n + Resource indexedResource = getResource ( resource ) ; \n + return indexedResource != null ? indexedResource : resource ; \n } \n \n @ override", "msg_token": "Fix resource indexing in views"} {"diff": " public class ChangeContextUtil { \n } \n \n public static void encodeContextInfo ( PsiElement scope , boolean includeRefClasses , boolean canChangeQualifier ) { \n - encodeContextInfo ( scope , scope , includeRefClasses , true ) ; \n + encodeContextInfo ( scope , scope , includeRefClasses , canChangeQualifier ) ; \n } \n \n private static void encodeContextInfo ( PsiElement scope ,", "msg_token": "avoid qualifier change on rename"} {"diff": " public abstract class AAnimationObject3D extends BaseObject3D { \n mIsPlaying = false ; \n } \n \n + public boolean isPlaying ( ) { \n + return mIsPlaying ; \n + } \n + \n public int getFps ( ) { \n return mFps ; \n }", "msg_token": "Add isPlaying to animation objects"} {"diff": " public final class Tools { \n COMMENT \n COMMENT \n COMMENT \n - public static void checkText ( final String contents , JLanguageTool lt ) throws IOException { \n + public static int checkText ( final String contents , JLanguageTool lt ) throws IOException { \n long startTime = System . currentTimeMillis ( ) ; \n List < RuleMatch > ruleMatches = lt . check ( contents ) ; \n long startTimeMatching = System . currentTimeMillis ( ) ; \n public final class Tools { \n System . out . printf ( Locale . ENGLISH , \n STRING0 , \n time , endTime - startTimeMatching , lt . getSentenceCount ( ) , sentencesPerSecond ) ; \n + return ruleMatches . size ( ) ; \n } \n \n public static InputStream getInputStream ( final String resourcePath ) throws IOException {", "msg_token": "checkText now returns number of matches"} {"diff": " public class Fiber < V > extends Strand implements Joinable < V > , Serializable , Futur \n private void installFiberDataInThread ( Thread currentThread ) { \n record ( NUMBER0 , STRING0 , STRING1 , STRING2 , this , currentThread ) ; \n installFiberLocals ( currentThread ) ; \n - setCurrentFiber ( this , currentThread ) ; \n installFiberContextClassLoader ( currentThread ) ; \n if ( MAINTAIN_ACCESS_CONTROL_CONTEXT ) \n installFiberInheritedAccessControlContext ( currentThread ) ; \n + setCurrentFiber ( this , currentThread ) ; \n } \n \n private void restoreThreadData ( Thread currentThread , Object old ) {", "msg_token": "Reorder setCurrentFiber in installFiberDataInThread"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ incubating \n + @ nonextensible \n public interface ComponentMetadataDetails { \n COMMENT \n COMMENT", "msg_token": "Don t make ComponentMetadataDetails extensible"} {"diff": " public final class TableInfo { \n for ( Field field : fields ) { \n if ( field . isAnnotationPresent ( Column . class ) ) { \n final Column columnAnnotation = field . getAnnotation ( Column . class ) ; \n - mColumnNames . put ( field , columnAnnotation . name ( ) ) ; \n + String columnName = columnAnnotation . name ( ) ; \n + if ( columnName == null || columnName . isEmpty ( ) ) { \n + columnName = field . getName ( ) ; \n + } \n + mColumnNames . put ( field , columnName ) ; \n } \n } \n } \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n COMMENT \n COMMENT \n public @ interface Column { \n SET_NULL , SET_DEFAULT , CASCADE , RESTRICT , NO_ACTION \n } \n \n - public String name ( ) ; \n + public String name ( ) default STRING0 ; \n \n public int length ( ) default - NUMBER0 ;", "msg_token": "Made Column name optional"} {"diff": " public final class DocumentsContract { \n \n final ProviderInfo info = context . getPackageManager ( ) \n . resolveContentProvider ( uri . getAuthority ( ) , PackageManager . GET_META_DATA ) ; \n - if ( info . metaData != null && info . metaData . containsKey ( \n + if ( info != null && info . metaData != null && info . metaData . containsKey ( \n DocumentsContract . META_DATA_DOCUMENT_PROVIDER ) ) { \n return true ; \n }", "msg_token": "Avoid NPE when ProviderInfo is missing"} {"diff": " public class DribbbleSearch { \n . host ( STRING0 ) \n . addPathSegment ( STRING1 ) \n . addQueryParameter ( STRING2 , query ) \n + . addQueryParameter ( STRING3 , sort ) \n . addQueryParameter ( STRING4 , String . valueOf ( page ) ) \n . addQueryParameter ( STRING5 , STRING6 ) \n . build ( ) ;", "msg_token": "Re added accidentally dropped sort order"} {"diff": " public class OnCompletionProcessor extends ServiceSupport implements AsyncProces \n exchange . setProperty ( Exchange . ROLLBACK_ONLY , rollbackOnly ) ; \n } \n if ( rollbackOnlyLast != null ) { \n - exchange . setProperty ( Exchange . ROLLBACK_ONLY , rollbackOnlyLast ) ; \n + exchange . setProperty ( Exchange . ROLLBACK_ONLY_LAST , rollbackOnlyLast ) ; \n } \n if ( cause != null ) { \n exchange . setException ( cause ) ;", "msg_token": "Fixed wrong restore of property in onCompletion"} {"diff": " public class InMemoryDependencyMetadataCache implements Stoppable { \n \n private final static Logger LOG = Logging . getLogger ( InMemoryDependencyMetadataCache . class ) ; \n \n - Map < String , DependencyMetadataCache > cachePerRepo = new MapMaker ( ) . softValues ( ) . makeMap ( ) ; \n + Map < String , DependencyMetadataCache > cachePerRepo = new MapMaker ( ) . makeMap ( ) ; \n \n final DependencyMetadataCacheStats stats = new DependencyMetadataCacheStats ( ) ;", "msg_token": "In memory dependency metadata cache no longer uses soft references"} {"diff": " public class MetricReporterService extends AbstractPollingReporter implements Me \n tg = tg . getParent ( ) ; \n } \n \n - Thread [ ] t = new Thread [ tg . activeCount ( ) ] ; \n - tg . enumerate ( t ) ; \n - \n - for ( Thread thread : t ) \n - { \n - System . out . println ( thread . getName ( ) ) ; \n - } \n - \n return tg . activeCount ( ) ; \n } \n }", "msg_token": "Removed debug statement that printed out threads"} {"diff": " public class DatabaseMetadata { \n initSequences ( connection , dialect ) ; \n } \n \n - private static final String [ ] TYPES = { STRING0 , STRING1 } ; \n + private static final String [ ] TYPES = { STRING0 , STRING1 , STRING2 } ; \n \n public TableMetadata getTableMetadata ( String name , String schema , String catalog , boolean isQuoted ) throws HibernateException {", "msg_token": "Adding SYNONYM in the list of searched types"} {"diff": " public class ClassProto implements TypeProto { \n SINGLE \n @ nonnull \n private Method [ ] loadVtable ( ) { \n - SINGLE \n List < Method > virtualMethodList = Lists . newLinkedList ( ) ; \n \n SINGLE", "msg_token": "Remove unnecessary TODO"} {"diff": " public class ListItemAdapter extends ArrayAdapter < ListItem > { \n } \n final Jid jid = item . getJid ( ) ; \n if ( jid != null ) { \n + tvJid . setVisibility ( View . VISIBLE ) ; \n tvJid . setText ( jid . toString ( ) ) ; \n } else { \n - tvJid . setText ( STRING0 ) ; \n + tvJid . setVisibility ( View . GONE ) ; \n } \n tvName . setText ( item . getDisplayName ( ) ) ; \n loadAvatar ( item , picture ) ;", "msg_token": "hide jid row in list item list when jid is null"} {"diff": " public abstract class Expr < D > { \n public D getConstant ( ) { return constant ; } \n @ override public java . lang . String toString ( ) { return constant . toString ( ) ; } \n } \n - \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "added support for custom expressions"} {"diff": " public class ReferrerPushStrategy implements PushStrategy \n this . referrerPushPeriod = referrerPushPeriod ; \n } \n \n + public Set < Pattern > getPushRegexps ( ) \n + { \n + return pushRegexps ; \n + } \n + \n + public Set < String > getPushContentTypes ( ) \n + { \n + return pushContentTypes ; \n + } \n + \n + public Set < Pattern > getAllowedPushOrigins ( ) \n + { \n + return allowedPushOrigins ; \n + } \n + \n + public Set < Pattern > getUserAgentBlacklist ( ) \n + { \n + return userAgentBlacklist ; \n + } \n + \n + public int getMaxAssociatedResources ( ) \n + { \n + return maxAssociatedResources ; \n + } \n + \n + public int getReferrerPushPeriod ( ) \n + { \n + return referrerPushPeriod ; \n + } \n + \n @ override \n public Set < String > apply ( Stream stream , Fields requestHeaders , Fields responseHeaders ) \n {", "msg_token": "Add getters to expose ReferrerPushStrategy Config"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added note on requirement of columnAnnotation for ExtendedBeanSerializer"} {"diff": " public abstract class BinaryBlockReader < M > { \n } \n \n int blockSize = readInt ( ) ; \n - LOG . debug ( STRING0 + blockSize ) ; \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( STRING0 + blockSize ) ; \n + } \n if ( blockSize < NUMBER0 ) { \n LOG . debug ( STRING1 ) ; \n SINGLE", "msg_token": "Don t allocate strings and do concat if debug mode isn t enabled"} {"diff": " public class BuildManager implements ApplicationComponent { \n } \n \n for ( Project project : activeProjects ) { \n - if ( ProjectRootManager . getInstance ( project ) . getFileIndex ( ) . isInContent ( eventFile ) ) { \n + if ( ! project . isInitialized ( ) || ProjectRootManager . getInstance ( project ) . getFileIndex ( ) . isInContent ( eventFile ) ) { \n return true ; \n } \n }", "msg_token": "skip project content check for not yet initialized projects"} {"diff": " public class ShowcaseViews { \n } \n \n public void addView ( ItemViewProperties properties ) { \n - ShowcaseViewBuilder builder = new ShowcaseViewBuilder ( activity , showcaseTemplateId ) \n + ShowcaseViewBuilder builder = new ShowcaseViewBuilder ( activity ) \n . setText ( properties . titleResId , properties . messageResId ) \n . setShowcaseIndicatorScale ( properties . scale ) ;", "msg_token": "Fixes a crash relating to ShowcaseViews"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class SslCertificateServiceImpl implements SslCertificateService { \n \n certGen . addExtension ( Extension . subjectKeyIdentifier , false , new SubjectKeyIdentifier ( pubKey . getEncoded ( ) ) ) ; \n certGen . addExtension ( Extension . basicConstraints , false , new BasicConstraints ( false ) ) ; \n + certGen . addExtension ( Extension . subjectAlternativeName , false , new GeneralNames ( new GeneralName ( GeneralName . dNSName , hostname ) ) ) ; \n \n ContentSigner sigGen ; \n try {", "msg_token": "include SubjectAlternativeName extension in generated certificates"} {"diff": " public class NetworkManager extends Plugin { \n if ( action . equals ( STRING0 ) ) { \n this . connectionCallbackId = callbackId ; \n NetworkInfo info = sockMan . getActiveNetworkInfo ( ) ; \n - PluginResult pluginResult = new PluginResult ( status , this . getConnectionInfo ( info ) ) ; \n + PluginResult pluginResult = new PluginResult ( PluginResult . Status . OK , this . getConnectionInfo ( info ) ) ; \n pluginResult . setKeepCallback ( true ) ; \n return pluginResult ; \n }", "msg_token": "Shouldn t return error on first call"} {"diff": " public class DriverConnection extends DriverConnectionPadding3 implements AutoCl \n \n if ( changeNumber == beginLossChange ) \n { \n - System . out . format ( STRING0 , termId , termOffset , length ) ; \n channelEndpoint . sendNakMessage ( controlAddress , sessionId , streamId , termId , termOffset , length ) ; \n lastChangeNumber = changeNumber ; \n systemCounters . nakMessagesSent ( ) . orderedIncrement ( ) ; \n public class LossDetector \n COMMENT \n COMMENT \n public LossDetector ( \n - final TimerWheel wheel , \n - final FeedbackDelayGenerator delayGenerator , \n - final NakMessageSender nakMessageSender ) \n + final TimerWheel wheel , final FeedbackDelayGenerator delayGenerator , final NakMessageSender nakMessageSender ) \n { \n this . wheel = wheel ; \n this . timer = wheel . newBlankTimer ( ) ;", "msg_token": "Remove debug output"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - @ registersystem \n + @ registersystem ( RegisterMode . AUTHORITY ) \n public class PlayerStartingInventorySystem extends BaseComponentSystem { \n \n private static final Logger logger = LoggerFactory . getLogger ( PlayerStartingInventorySystem . class ) ; \n public class PlayerStartingInventorySystem extends BaseComponentSystem { \n inventoryManager . giveItem ( player , EntityRef . NULL , entityManager . create ( STRING0 ) ) ; \n inventoryManager . giveItem ( player , EntityRef . NULL , chest ) ; \n } \n - \n - \n - @ command \n - public String test ( @ commandparam ( STRING1 ) String first , @ commandparam ( STRING2 ) String . . . remainder ) { \n - logger . info ( STRING3 , first , Arrays . asList ( remainder ) ) ; \n - return first + STRING4 + Arrays . asList ( remainder ) . toString ( ) ; \n - } \n }", "msg_token": "Fixing the PlayerStartingInventorySystem to only be run on AUTHORITY and removing some random debug code"} {"diff": " public class CordovaActivity extends Activity implements CordovaInterface { \n protected void onResume ( ) { \n super . onResume ( ) ; \n LOG . d ( TAG , STRING0 ) ; \n - SINGLE \n - Config . init ( this ) ; \n \n if ( this . activityState == ACTIVITY_STARTING ) { \n this . activityState = ACTIVITY_RUNNING ;", "msg_token": "Don t re parse config xml in onResume"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CameraDeviceImpl extends CameraDevice { \n private volatile StateCallbackKK mSessionStateCallback ; \n private final Handler mDeviceHandler ; \n \n - private volatile boolean mClosing = false ; \n + private final AtomicBoolean mClosing = new AtomicBoolean ( ) ; \n private boolean mInError = false ; \n private boolean mIdle = true ; \n \n public class CameraDeviceImpl extends CameraDevice { \n @ override \n public void close ( ) { \n synchronized ( mInterfaceLock ) { \n + if ( mClosing . getAndSet ( true ) ) { \n + return ; \n + } \n + \n try { \n if ( mRemoteDevice != null ) { \n mRemoteDevice . disconnect ( ) ; \n public class CameraDeviceImpl extends CameraDevice { \n \n COMMENT \n private boolean isClosed ( ) { \n - return mClosing ; \n + return mClosing . get ( ) ; \n } \n \n private CameraCharacteristics getCharacteristics ( ) {", "msg_token": "Make CameraDeviceImpl close idempotent for real"} {"diff": " public final class Settings { \n STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VENDING_DOWNLOADING_KICK_TIMEOUT_MS = \n + STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String VENDING_DISK_INPUT_BUFFER_BYTES =", "msg_token": "Add Gservices flag for Vending doctor download complete timeout"} {"diff": " public class Scene extends BaseEntity { \n } \n \n public void updatePreFrameHandlers ( final float pSecondsElapsed ) { \n - if ( this . mChildScene == null && ! this . mChildSceneModalUpdate ) { \n + if ( this . mChildScene == null || ! this . mChildSceneModalUpdate ) { \n this . mPreFrameHandlers . onUpdate ( pSecondsElapsed ) ; \n } \n \n public class Scene extends BaseEntity { \n } \n \n public void updatePostFrameHandlers ( final float pSecondsElapsed ) { \n - if ( this . mChildScene == null && ! this . mChildSceneModalUpdate ) { \n + if ( this . mChildScene == null || ! this . mChildSceneModalUpdate ) { \n this . mPostFrameHandlers . onUpdate ( pSecondsElapsed ) ; \n }", "msg_token": "Fixed Bug with Scene not propagating Pre PostFrameHandlers correctly"} {"diff": " public class Vec extends Keyed < Vec > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public TwoDimTable toTwoDimTable ( int off , int len ) { \n + return new Frame ( this ) . toTwoDimTable ( off , len ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public TwoDimTable toTwoDimTable ( ) { \n + int len = ( int ) Math . min ( Integer . MAX_VALUE , length ( ) ) ; \n + return new Frame ( this ) . toTwoDimTable ( NUMBER0 , len ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add convenience helper to print a Vec to string via TwoDimTable"} {"diff": " public class PoiFiltersHelper { \n putValues ( types , AmenityType . TRANSPORTATION , STRING0 ) ; \n } else if ( UDF_FOOD_SHOP . equals ( key ) ) { \n putValues ( types , AmenityType . SHOP , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , \n - STRING5 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 ) ; \n + STRING5 , STRING7 , STRING8 , STRING9 , STRING10 , STRING13 , STRING11 , STRING12 ) ; \n } else if ( UDF_SIGHTSEEING . equals ( key ) ) { \n putAll ( types , AmenityType . HISTORIC ) ; \n putValues ( types , AmenityType . TOURISM , STRING14 ,", "msg_token": "add some missing tags"} {"diff": " public class Response \n COMMENT \n COMMENT \n protected static final String info = \n - STRING0 ; \n + STRING1 ; \n \n \n COMMENT", "msg_token": "Update info should probably just delete all these"} {"diff": " public class OTPConfigurator { \n } \n OpenStreetMapGraphBuilderImpl osmBuilder = new OpenStreetMapGraphBuilderImpl ( osmProviders ) ; \n DefaultStreetEdgeFactory streetEdgeFactory = new DefaultStreetEdgeFactory ( ) ; \n - streetEdgeFactory . useElevationData = params . elevation ; \n + streetEdgeFactory . useElevationData = params . elevation || ( demFile != null ) ; \n osmBuilder . edgeFactory = streetEdgeFactory ; \n DefaultWayPropertySetSource defaultWayPropertySetSource = new DefaultWayPropertySetSource ( ) ; \n osmBuilder . setDefaultWayPropertySetSource ( defaultWayPropertySetSource ) ;", "msg_token": "Set streetEdgeFactory useElevationData to true when DEM file is present"} {"diff": " public abstract class RootPage extends BasePage { \n } \n \n if ( filters . size ( ) > NUMBER0 ) { \n - SINGLE \n - filters . add ( new DropDownMenuItem ( ) ) ; \n SINGLE \n filters . add ( new DropDownMenuItem ( STRING0 , null , null ) ) ; \n }", "msg_token": "Really fixed extra divider"} {"diff": " public class LocationManagerService extends ILocationManager . Stub implements Run \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n public List < String > getAllProviders ( ) { \n - checkPermission ( ) ; \n - \n ArrayList < String > out ; \n synchronized ( mLock ) { \n out = new ArrayList < String > ( mProviders . size ( ) ) ;", "msg_token": "Remove checkPermission call in getAllProviders"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ErrorInfo { \n isCatastrophic ) ; \n } \n \n - SINGLE \n - private transient NestedSet < SkyKey > rootCauses ; \n + private final NestedSet < SkyKey > rootCauses ; \n \n @ nullable private final Exception exception ; \n private final SkyKey rootCauseOfException ; \n public class ErrorInfo { \n return isCatastrophic ; \n } \n \n - private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { \n - in . defaultReadObject ( ) ; \n - rootCauses = NestedSetBuilder . emptySet ( Order . STABLE_ORDER ) ; \n - } \n }", "msg_token": "Remove vestigial serialization bits from ErrorInfo"} {"diff": " public class NettyRemoteBlockReaderTest { \n return new RPCErrorResponse ( status ) ; \n } \n } \n -", "msg_token": "formatting last line"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \n public final class UtilsTest { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix checkstyle problems with client module"} {"diff": " public class ObjectProperty extends AbstractProperty implements Property { \n return isType ( type ) ; \n } \n \n + public ObjectProperty properties ( Map < String , Property > properties ) { \n + this . setProperties ( properties ) ; \n + return this ; \n + } \n + \n public Map < String , Property > getProperties ( ) { \n return this . properties ; \n }", "msg_token": "Adding a builder pattern friendly method in ObjectProperty"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class CertificatePinner { \n public static final CertificatePinner DEFAULT = new Builder ( ) . build ( ) ;", "msg_token": "Add Javadoc about self signed certificates"} {"diff": " final class FlashlightManager { \n private static final Method setFlashEnabledMethod ; \n static { \n iHardwareService = getHardwareService ( ) ; \n + Log . v ( TAG , STRING0 + ( iHardwareService == null ? STRING1 : STRING2 ) + STRING3 ) ; \n setFlashEnabledMethod = getSetFlashEnabledMethod ( iHardwareService ) ; \n - if ( iHardwareService == null ) { \n - Log . v ( TAG , STRING4 ) ; \n - } else { \n - Log . v ( TAG , STRING5 ) ; \n - } \n } \n \n private FlashlightManager ( ) {", "msg_token": "Log message typo fix"} {"diff": " public class NotQueryParser implements QueryParser { \n SINGLE \n query = parseContext . parseInnerFilter ( currentFieldName ) ; \n } \n - } else if ( token == XContentParser . Token . START_ARRAY ) { \n - queryFound = true ; \n - SINGLE \n - query = parseContext . parseInnerFilter ( currentFieldName ) ; \n } else if ( token . isValue ( ) ) { \n if ( STRING0 . equals ( currentFieldName ) ) { \n queryName = parser . text ( ) ;", "msg_token": "remove attemped not working support for array in not query parser"} {"diff": " public class AndroidNet implements Net { \n \n private final ExecutorService executorService ; \n \n - HttpClient httpClient ; \n + DefaultHttpClient httpClient ; \n \n public AndroidNet ( AndroidApplication activity ) { \n app = activity ; \n public class AndroidNet implements Net { \n if ( httpRequest . getUrl ( ) == null ) throw new GdxRuntimeException ( STRING0 ) ; \n \n final HttpUriRequest httpClientRequest = getHttpClientRequest ( httpRequest ) ; \n - \n + \n SINGLE \n - \n + \n executorService . submit ( new Runnable ( ) { \n @ override \n public void run ( ) { \n public interface Net { \n public void setTimeOut ( long timeOut ) { \n this . timeOut = timeOut ; \n } \n + \n + public long getTimeOut ( ) { \n + return timeOut ; \n + } \n \n COMMENT \n public String getMethod ( ) {", "msg_token": "added getTimouet to HttpRequest"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ReaderSearchSuggestionAdapter extends CursorAdapter { \n private static final int MAX_SUGGESTIONS = NUMBER0 ; \n public class ReaderSearchSuggestionAdapter extends CursorAdapter { \n super ( context , null , false ) ; \n String clearAllText = context . getString ( R . string . label_clear_saved_searches ) ; \n mClearAllRow = new Object [ ] { CLEAR_ALL_ROW_ID , clearAllText } ; \n - mClearAllBgColor = context . getResources ( ) . getColor ( R . color . grey_lighten_30 ) ; \n + mClearAllBgColor = ResourceUtils . getColorResource ( context , R . color . grey_lighten_30 ) ; \n } \n \n public void setFilter ( String filter ) {", "msg_token": "Use the new ResourceUtils getColorResource"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Added missing import"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AdditionalOptionsPanel implements RefreshableOnComponent , TagNameFi \n \n public void refresh ( ) { \n myTagName . setText ( myConfiguration . TAG_AFTER_PROJECT_COMMIT_NAME ) ; \n - myOverrideExisting . setSelected ( myConfiguration . OVERRIDE_EXISTING_TAG_FOR_PROJECT ) ; \n + myOverrideExisting . setSelected ( false ) ; SINGLE \n updateEnable ( ) ; \n }", "msg_token": "reset override existing tag checkbox on every invocation"} {"diff": " public class IndicesStore extends AbstractComponent implements ClusterStateListe \n shardCanBeDeleted = false ; \n break ; \n } \n - String localNodeId = clusterService . localNode ( ) . id ( ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! event . state ( ) . nodes ( ) . nodeExists ( shardRouting . currentNodeId ( ) ) ) { \n + shardCanBeDeleted = false ; \n + break ; \n + } \n + if ( shardRouting . relocatingNodeId ( ) != null ) { \n + if ( ! event . state ( ) . nodes ( ) . nodeExists ( shardRouting . relocatingNodeId ( ) ) ) { \n + shardCanBeDeleted = false ; \n + break ; \n + } \n + } \n + \n SINGLE \n + String localNodeId = clusterService . localNode ( ) . id ( ) ; \n if ( localNodeId . equals ( shardRouting . currentNodeId ( ) ) || localNodeId . equals ( shardRouting . relocatingNodeId ( ) ) ) { \n - SINGLE \n shardCanBeDeleted = false ; \n break ; \n }", "msg_token": "Don t delete local shard data when its allocated on a node that doesn t exists"} {"diff": " public class SecurityContextAssociationValve extends ValveBase { \n principal = ( JBossGenericPrincipal ) session . getPrincipal ( ) ; \n } \n if ( principal == null ) { \n - principal = ( JBossGenericPrincipal ) request . getSessionInternal ( false ) . getNote ( Constants . FORM_PRINCIPAL_NOTE ) ; \n + Session sessionInternal = request . getSessionInternal ( false ) ; \n + if ( sessionInternal != null ) { \n + principal = ( JBossGenericPrincipal ) sessionInternal . getNote ( Constants . FORM_PRINCIPAL_NOTE ) ; \n + } \n } \n } else { \n SINGLE \n public class SecurityContextAssociationValve extends ValveBase { \n } \n } \n } catch ( Throwable e ) { \n - log . debugf ( STRING0 , e ) ; \n + SINGLE \n + log . debug ( STRING0 , e ) ; \n } \n SINGLE \n PolicyContext . setContextID ( deploymentUnit . getName ( ) ) ;", "msg_token": "Added a check for null session reference"} {"diff": " public class TestGremlin implements GraphHolder \n { \n String response = gen . get ( ) \n . expectedStatus ( Status . OK . getStatusCode ( ) ) \n - . payload ( STRING0 + URLEncoder . encode ( STRING1 + data . get ( ) . get ( STRING2 ) . getId ( ) + STRING3 , STRING4 ) ) \n + . payload ( STRING0 + URLEncoder . encode ( STRING5 + data . get ( ) . get ( STRING2 ) . getId ( ) + STRING3 , STRING4 ) ) \n . payloadType ( MediaType . APPLICATION_FORM_URLENCODED_TYPE ) \n . post ( ENDPOINT ) \n . entity ( ) ;", "msg_token": "fixing URL encoding of scripts"} {"diff": " href = STRING0 > Traceview : A Graphical Lo \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify art gc gc count rate histogram runtime stat"} {"diff": " public class CoordinationTransformer implements TreeTransformer { \n private static final TregexPattern [ ] [ ] matchPatterns = { \n { \n SINGLE \n - TregexPattern . safeCompile ( STRING0 , true ) , \n + TregexPattern . compile ( STRING0 ) , \n SINGLE \n - TregexPattern . safeCompile ( STRING1 , true ) \n + TregexPattern . compile ( STRING1 ) \n } , \n { \n SINGLE \n - TregexPattern . safeCompile ( STRING2 , true ) , \n - TregexPattern . safeCompile ( STRING3 , true ) \n + TregexPattern . compile ( STRING2 ) , \n + TregexPattern . compile ( STRING3 ) \n } \n } ;", "msg_token": "No need to use safeCompile here we would actually want the exceptions"} {"diff": " public class ConfigurationException extends Exception { \n final StringBuilder msg = new StringBuilder ( file . toString ( ) ) \n . append ( STRING0 ) ; \n for ( String error : errors ) { \n - msg . append ( STRING1 ) . append ( error ) ; \n + msg . append ( STRING1 ) . append ( error ) . append ( STRING2 ) ; \n } \n return msg . toString ( ) ; \n }", "msg_token": "Fix formatting of config errors"} {"diff": " public class BackupProtocolTest \n LifeSupport life = new LifeSupport ( ) ; \n \n LogEntryReader < ReadableClosablePositionAwareChannel > reader = new VersionAwareLogEntryReader < > ( ) ; \n - BackupClient client = life . add ( new BackupClient ( host , port , null , NullLogProvider . getInstance ( ) , storeId , NUMBER0 , \n + BackupClient client = life . add ( new BackupClient ( host , port , null , NullLogProvider . getInstance ( ) , storeId , NUMBER1 , \n mock ( ResponseUnpacker . class ) , mock ( ByteCounterMonitor . class ) , mock ( RequestMonitor . class ) , reader ) ) ; \n ControlledBackupInterface backup = new ControlledBackupInterface ( ) ; \n life . add ( new BackupServer ( backup , new HostnamePort ( host , port ) , NullLogProvider . getInstance ( ) , mock ( ByteCounterMonitor . class ) ,", "msg_token": "Increases read timeout in test"} {"diff": " public class StoredPaymentChannelServerStates implements WalletExtension { \n this . broadcasterFuture . set ( checkNotNull ( broadcaster ) ) ; \n } \n \n + COMMENT \n + @ nullable \n + public static StoredPaymentChannelServerStates getFromWallet ( Wallet wallet ) { \n + return ( StoredPaymentChannelServerStates ) wallet . getExtensions ( ) . get ( EXTENSION_ID ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added getFromWallet method to StoredPaymentChannelServerStates"} {"diff": " public class ServerTestUtils \n \n public static File createTempPropertyFile ( File parentDir ) throws IOException \n { \n - File f = new File ( parentDir , STRING0 + new Random ( ) . nextInt ( ) + STRING1 ) ; \n + File f = new File ( parentDir , STRING0 + new Random ( ) . nextInt ( ) + STRING1 ) ; \n f . deleteOnExit ( ) ; \n return f ; \n }", "msg_token": "Updating the way we create temporary files to hopefully solve the functional test problem where lots of files stick around"} {"diff": " public class Peer { \n COMMENT \n COMMENT \n public void startBlockChainDownload ( ) throws IOException { \n - for ( PeerEventListener listener : eventListeners ) { \n - synchronized ( listener ) { \n - listener . onChainDownloadStarted ( this , getPeerBlocksToGet ( ) ) ; \n + SINGLE \n + SINGLE \n + if ( getPeerBlocksToGet ( ) > NUMBER0 ) { \n + for ( PeerEventListener listener : eventListeners ) { \n + synchronized ( listener ) { \n + listener . onChainDownloadStarted ( this , getPeerBlocksToGet ( ) ) ; \n + } \n } \n - } \n \n - if ( getPeerBlocksToGet ( ) > NUMBER0 ) { \n SINGLE \n blockChainDownload ( Sha256Hash . ZERO_HASH ) ; \n }", "msg_token": "Do not callback if nothing to download from peer"} {"diff": " public class RouteDirectionInfo { \n \n SINGLE \n public int getExpectedTime ( ) { \n - return ( int ) ( distance / averageSpeed ) ; \n + return ( int ) Math . round ( distance / averageSpeed ) ; \n } \n \n \n public class RouteProvider { \n RouteDirectionInfo last = directions . get ( directions . size ( ) - NUMBER0 ) ; \n SINGLE \n last . setAverageSpeed ( ( distanceToEnd [ last . routePointOffset ] - distanceToEnd [ offset ] ) / last . getAverageSpeed ( ) ) ; \n - last . distance = ( int ) ( distanceToEnd [ last . routePointOffset ] - distanceToEnd [ offset ] ) ; \n + last . distance = ( int ) Math . round ( distanceToEnd [ last . routePointOffset ] - distanceToEnd [ offset ] ) ; \n } \n SINGLE \n float avgSpeed = time ;", "msg_token": "Avoid accumulation of missing rouding"} {"diff": " public final class ThreadReferenceProxyImpl extends ObjectReferenceProxyImpl imp \n try { \n getThreadReference ( ) . popFrames ( stackFrame . getStackFrame ( ) ) ; \n } \n + catch ( InvalidStackFrameException ignored ) { \n + } \n catch ( ObjectCollectedException ignored ) { \n } \n catch ( InternalException e ) {", "msg_token": "ignore com sun jdi InvalidStackFrameException"} {"diff": " public class SharedIndicesData { \n \n @ override \n protected void doDropMemoryCaches ( ) { \n - myStateCache . clear ( ) ; \n + if ( myStateCache != null ) myStateCache . clear ( ) ; \n super . doDropMemoryCaches ( ) ; \n } \n \n @ override \n protected void doForce ( ) { \n - myStateCache . clear ( ) ; \n + if ( myStateCache != null ) myStateCache . clear ( ) ; \n super . doForce ( ) ; \n }", "msg_token": "avoid NPE on compaction"} {"diff": " public class Player extends Character { \n public boolean isRenderPlayerModel ( ) { \n return _renderPlayerModel ; \n } \n + \n + public void resetInventory ( ) { \n + _inventory = new Inventory ( ) ; \n + loadDefaultItems ( ) ; \n + } \n } \n public class GroovyManager { \n spState . initWorld ( title , seed ) ; \n } \n } \n + \n + public void resetInventory ( ) { \n + Player player = Terasology . getInstance ( ) . getActiveWorldRenderer ( ) . getPlayer ( ) ; \n + player . resetInventory ( ) ; \n + } \n } \n }", "msg_token": "Adds an option to reset the inventory via the console"} {"diff": " public class Times implements VerificationInOrderMode , VerificationMode { \n List < Invocation > allInvocations = data . getAllInvocations ( ) ; \n InvocationMatcher wanted = data . getWanted ( ) ; \n \n - if ( wantedCount ( ) > NUMBER0 ) { \n + if ( wantedCount > NUMBER0 ) { \n MissingInvocationInOrderChecker missingInvocation = new MissingInvocationInOrderChecker ( ) ; \n missingInvocation . verify ( allInvocations , wanted , this ) ; \n } \n public class Times implements VerificationInOrderMode , VerificationMode { \n \n @ override \n public String toString ( ) { \n - return STRING0 + wantedCount ( ) ; \n - } \n - \n - public int wantedCount ( ) { \n - return wantedCount ; \n + return STRING0 + wantedCount ; \n } \n }", "msg_token": "removed unnecessary method"} {"diff": " import NAMESPACE ; \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 public class App {", "msg_token": "Improve Property Javadoc"} {"diff": " public class FileReference implements PsiFileReference , FileReferenceOwner , PsiP \n } \n \n public String getFileNameToCreate ( ) { \n - return getCanonicalText ( ) ; \n + return decode ( getCanonicalText ( ) ) ; \n } \n \n public", "msg_token": "decode file name for quickfix"} {"diff": " public final class OperatorPublish < T > extends ConnectableObservable < T > { \n SINGLE \n int d = NUMBER0 ; \n while ( d < maxRequested ) { \n + term = terminalEvent ; \n Object v = queue . poll ( ) ; \n empty = v == null ; \n SINGLE \n - if ( checkTerminated ( terminalEvent , empty ) ) { \n + if ( checkTerminated ( term , empty ) ) { \n skipFinal = true ; \n return ; \n }", "msg_token": "Fixes another race between terminalEvent and the queue being empty"} {"diff": " public class TachyonFileSystem extends AbstractTachyonFileSystem { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n public boolean mkdirs ( TachyonURI path ) throws FileAlreadyExistException , InvalidPathException , \n IOException { \n return mkdirs ( path , false ) ;", "msg_token": "add TODO on rename mkdirs"} {"diff": " public class ArrayUtils { \n } \n public static float maxValue ( float [ ] ary , int from , int to ) { \n float result = ary [ from ] ; \n - for ( int i = from + NUMBER0 ; i < to ; ++ i ) \n + for ( int i = from + NUMBER1 ; i < to ; ++ i ) \n if ( ary [ i ] > result ) result = ary [ i ] ; \n return result ; \n }", "msg_token": "Fix typo in maxValue broke DL unpredictably"} {"diff": " public class CamelSpringDelegatingTestContextLoader extends DelegatingSmartConte \n \n AnnotationConfigUtils . registerAnnotationConfigProcessors ( ( BeanDefinitionRegistry ) context ) ; \n \n - logger . info ( STRING0 ) ; \n - \n SINGLE \n handleProvidesBreakpoint ( context , testClass ) ; \n handleShutdownTimeout ( context , testClass ) ;", "msg_token": "Remove noisy logging"} {"diff": " public class UpdateRequestBuilder extends BaseRequestBuilder < UpdateRequest , Upda \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public UpdateRequestBuilder setPercolate ( String percolate ) { \n + request . percolate ( percolate ) ; \n + return this ; \n + } \n + \n @ override \n protected void doExecute ( ActionListener < UpdateResponse > listener ) { \n client . update ( request , listener ) ;", "msg_token": "add missing setPercolate method to UpdateRequestBuilder"} {"diff": " public class SearchManagerService extends ISearchManager . Stub { \n mContext = context ; \n mContext . registerReceiver ( new BootCompletedReceiver ( ) , \n new IntentFilter ( Intent . ACTION_BOOT_COMPLETED ) ) ; \n - mContext . registerReceiver ( new UserReceiver ( ) , \n + mContext . registerReceiver ( new UserReceiver ( ) , \n new IntentFilter ( Intent . ACTION_USER_REMOVED ) ) ; \n new MyPackageMonitor ( ) . register ( context , null , UserHandle . ALL , true ) ; \n } \n public class SearchManagerService extends ISearchManager . Stub { \n } \n SINGLE \n Intent intent = new Intent ( SearchManager . INTENT_ACTION_SEARCHABLES_CHANGED ) ; \n - intent . addFlags ( Intent . FLAG_RECEIVER_REPLACE_PENDING ) ; \n + intent . addFlags ( Intent . FLAG_RECEIVER_REPLACE_PENDING \n + | Intent . FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; \n mContext . sendBroadcastAsUser ( intent , new UserHandle ( changingUserId ) ) ; \n } \n }", "msg_token": "Only send broadcasts to registered receivers"} {"diff": " public class VActivityService extends IActivityManager . Stub { \n resultFlags |= Intent . FLAG_ACTIVITY_NO_USER_ACTION ; \n } \n if ( ( launchFlags & Intent . FLAG_ACTIVITY_CLEAR_TOP ) != NUMBER0 ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n ActivityTaskRecord task = mMainStack . findTask ( taskAffinity ) ; \n - if ( task . isInTask ( targetActInfo ) && ! task . isOnTop ( targetActInfo ) ) { \n + if ( task != null && task . size ( ) >= NUMBER1 && task . isInTask ( targetActInfo ) && ! task . isOnTop ( targetActInfo ) ) { \n List < ActivityRecord > activityList = task . activityList ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n ListIterator < ActivityRecord > iterator = activityList . listIterator ( ) ; \n while ( iterator . hasNext ( ) ) { \n ActivityRecord current = iterator . next ( ) ;", "msg_token": "optimized the code"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n public class HttpHeadersTest { \n \n @ test \n public class HttpHeadersTest { \n Assert . assertEquals ( STRING0 , values . get ( NUMBER0 ) ) ; \n Assert . assertEquals ( STRING1 , values . get ( NUMBER1 ) ) ; \n } \n + \n + @ test \n + public void testEquansIgnoreCase ( ) { \n + assertThat ( HttpHeaders . equalsIgnoreCase ( null , null ) , is ( true ) ) ; \n + assertThat ( HttpHeaders . equalsIgnoreCase ( null , STRING2 ) , is ( false ) ) ; \n + assertThat ( HttpHeaders . equalsIgnoreCase ( STRING3 , null ) , is ( false ) ) ; \n + assertThat ( HttpHeaders . equalsIgnoreCase ( STRING4 , STRING5 ) , is ( true ) ) ; \n + } \n }", "msg_token": "Add test case for HttpHeaders equalsIgnoreCase"} {"diff": " public class JmxService implements AdvertisableService \n public static final String QUERY_PATH = STRING0 ; \n public static final String KERNEL_NAME_PATH = STRING1 ; \n private final OutputFormat output ; \n - private final InputFormat input ; \n \n public JmxService ( @ context OutputFormat output , @ context InputFormat input ) \n { \n this . output = output ; \n - this . input = input ; \n } \n \n @ get", "msg_token": "Removing completely unused field"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Compare reports output config"} {"diff": " public final class CamelBlueprintHelper { \n SINGLE \n SINGLE \n SINGLE \n - String value = cfg . get ( key ) ; \n + String value = ( String ) cfg . get ( key ) ; \n props . put ( key , value ) ; \n }", "msg_token": "Fixed compilation error"} {"diff": " public class MaterialTest { \n @ test \n public void testSelectNamedTechnique_GLSL150Cap ( ) { \n supportGlsl ( NUMBER0 ) ; \n - material ( STRING0 ) ; \n + material ( STRING1 ) ; \n \n - material . selectTechnique ( STRING2 , renderManager ) ; \n + material . selectTechnique ( STRING3 , renderManager ) ; \n \n - checkRequiredCaps ( Caps . GLSL100 , Caps . GLSL150 ) ; \n + checkRequiredCaps ( Caps . GLSL150 ) ; \n } \n \n @ test \n public void testSelectNamedTechnique_GLSL100Cap ( ) { \n supportGlsl ( NUMBER1 ) ; \n - material ( STRING0 ) ; \n + material ( STRING1 ) ; \n \n - material . selectTechnique ( STRING2 , renderManager ) ; \n + material . selectTechnique ( STRING3 , renderManager ) ; \n \n checkRequiredCaps ( Caps . GLSL100 ) ; \n }", "msg_token": "fix failing unit test"} {"diff": " public class DiffTaskQueue implements Disposable { \n if ( myDisposed ) return ; \n abort ( ) ; \n \n - Function < ProgressIndicator , Runnable > function = new Function < ProgressIndicator , Runnable > ( ) { \n - @ override \n - @ calledinbackground \n - public Runnable fun ( final ProgressIndicator indicator ) { \n - final Runnable callback = backgroundTask . fun ( indicator ) ; \n - return new Runnable ( ) { \n - @ override \n - @ calledinawt \n - public void run ( ) { \n - synchronized ( LOCK ) { \n - if ( myDisposed ) return ; \n - indicator . checkCanceled ( ) ; \n - } \n - callback . run ( ) ; \n - } \n - } ; \n - } \n - } ; \n - \n - myProgressIndicator . set ( BackgroundTaskUtil . executeAndTryWait ( function , onSlowAction , waitMillis , forceEDT ) ) ; \n + myProgressIndicator . set ( BackgroundTaskUtil . executeAndTryWait ( backgroundTask , onSlowAction , waitMillis , forceEDT ) ) ; \n } \n } \n }", "msg_token": "remove unnecessary check"} {"diff": " public class StompSubProtocolHandler implements SubProtocolHandler { \n try { \n message = MessageBuilder . withPayload ( message . getPayload ( ) ) . setHeaders ( headers ) . build ( ) ; \n byte [ ] bytes = this . stompEncoder . encode ( ( Message < byte [ ] > ) message ) ; \n - session . sendMessage ( new TextMessage ( new String ( bytes , Charset . forName ( STRING0 ) ) ) ) ; \n + \n + synchronized ( session ) { \n + session . sendMessage ( new TextMessage ( new String ( bytes , Charset . forName ( STRING0 ) ) ) ) ; \n + } \n + \n } \n catch ( Throwable t ) { \n sendErrorMessage ( session , t ) ;", "msg_token": "Fix synchronization issue in StompSubProtocolHandler"} {"diff": " public class Processor { \n \n SINGLE \n for ( Element element : roundEnv . getElementsAnnotatedWith ( configuration . getEmbeddableAnnotation ( ) ) ) { \n + SINGLE \n typeFactory . getEntityType ( element . asType ( ) , false ) ; \n typeMirrors . add ( element . asType ( ) ) ; \n elements . add ( element ) ;", "msg_token": "Added a question in TODO comment"} {"diff": " public class DynamicStubFactoryFactory extends StubFactoryFactoryDynamicBase { \n } catch ( ClassNotFoundException e ) { \n try { \n final ClassFile clazz = IIOPStubCompiler . compile ( myClass , stubClassName ) ; \n - theClass = clazz . define ( cl ) ; \n + theClass = clazz . define ( cl , myClass . getProtectionDomain ( ) ) ; \n } catch ( RuntimeException ex ) { \n SINGLE \n try {", "msg_token": "Set protection domain when generating stubs via DynamicStubFactoryFactory"} {"diff": " public abstract class Wallpaper extends WallpaperService { \n \n @ override \n public void onSurfaceDestroyed ( SurfaceHolder holder ) { \n - mRenderer . onSurfaceDestroyed ( ) ; \n - mRenderer = null ; \n super . onSurfaceDestroyed ( holder ) ; \n } \n \n @ override \n public void onDestroy ( ) { \n setTouchEventsEnabled ( false ) ; \n + mRenderer . onSurfaceDestroyed ( ) ; \n + mRenderer = null ; \n mSurfaceView . onDestroy ( ) ; \n super . onDestroy ( ) ; \n }", "msg_token": "Destroy renderer at original spot"} {"diff": " public class KeyguardViewStateManager implements \n boolean isCameraPage = newPage instanceof CameraWidgetFrame ; \n SlidingChallengeLayout scl = ( SlidingChallengeLayout ) mChallengeLayout ; \n scl . setChallengeInteractive ( ! isCameraPage ) ; \n - if ( isCameraPage ) scl . fadeOutChallenge ( ) ; \n + if ( isCameraPage ) { \n + scl . fadeOutChallenge ( ) ; \n + } \n + final int currentFlags = mKeyguardWidgetPager . getSystemUiVisibility ( ) ; \n + final int newFlags = isCameraPage ? ( currentFlags | View . STATUS_BAR_DISABLE_SEARCH ) \n + : ( currentFlags & ~ View . STATUS_BAR_DISABLE_SEARCH ) ; \n + mKeyguardWidgetPager . setSystemUiVisibility ( newFlags ) ; \n } \n \n SINGLE", "msg_token": "Hide the camera and search icons when switching to the camera page"} {"diff": " public abstract class UnderFileSystemCluster { \n return new LocalFilesystemCluster ( baseDir , tachyonConf ) ; \n } \n \n - protected String mBaseDir ; \n - \n - protected final TachyonConf mTachyonConf ; \n - \n COMMENT \n COMMENT \n COMMENT \n public abstract class UnderFileSystemCluster { \n && sUnderFSClass . equals ( STRING0 ) ; \n } \n \n + protected String mBaseDir ; \n + \n + protected final TachyonConf mTachyonConf ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Moving static members above non static members"} {"diff": " public class ContactListModel extends AbstractListModel { \n COMMENT \n COMMENT \n public PresenceStatus getMetaContactStatus ( MetaContact metaContact ) { \n - \n - PresenceStatus defaultStatus = Constants . OFFLINE_STATUS ; \n - \n + PresenceStatus status = null ; \n Iterator i = metaContact . getContacts ( ) ; \n while ( i . hasNext ( ) ) { \n Contact protoContact = ( Contact ) i . next ( ) ; \n PresenceStatus contactStatus = protoContact . getPresenceStatus ( ) ; \n \n - defaultStatus \n - = ( contactStatus . compareTo ( defaultStatus ) > NUMBER0 ) \n - ? contactStatus : defaultStatus ; \n + if ( status == null ) { \n + status = contactStatus ; \n + } \n + else { \n + status \n + = ( contactStatus . compareTo ( status ) > NUMBER0 ) \n + ? contactStatus : status ; \n + } \n } \n - return defaultStatus ; \n + return status ; \n } \n \n COMMENT", "msg_token": "when getting the status for a meta contact do not use IcqStatusEnum"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub \n @ override \n public LegacyVpnInfo getLegacyVpnInfo ( int userId ) { \n enforceCrossUserPermission ( userId ) ; \n - throwIfLockdownEnabled ( ) ; \n + if ( mLockdownEnabled ) { \n + return null ; \n + } \n + \n synchronized ( mVpns ) { \n return mVpns . get ( userId ) . getLegacyVpnInfo ( ) ; \n }", "msg_token": "Revise lockdown check in getLegacyVpnInfo"} {"diff": " public class Maven3ServerEmbedderImpl extends MavenRemoteObject implements Maven \n mySystemProperties , \n FieldAccessor . < Properties > get ( cliRequestClass , cliRequest , STRING0 ) ) ; \n \n - myLocalRepository = createLocalRepository ( settings . getSnapshotUpdatePolicy ( ) ) ; \n + myLocalRepository = createLocalRepository ( ) ; \n } \n \n private static Settings buildSettings ( SettingsBuilder builder , \n public class Maven3ServerEmbedderImpl extends MavenRemoteObject implements Maven \n } \n } \n \n - private ArtifactRepository createLocalRepository ( MavenServerSettings . UpdatePolicy snapshotUpdatePolicy ) { \n + private ArtifactRepository createLocalRepository ( ) { \n try { \n return getComponent ( RepositorySystem . class ) . createLocalRepository ( new File ( myMavenSettings . getLocalRepository ( ) ) ) ; \n }", "msg_token": "Remove unused parameter"} {"diff": " public class XmlFileTypeFactory extends FileTypeFactory { \n consumer . consume ( XHtmlFileType . INSTANCE , STRING0 ) ; \n consumer . consume ( new DTDFileType ( ) , STRING1 ) ; \n \n - consumer . consume ( XmlFileType . INSTANCE , STRING2 ) ; \n + consumer . consume ( XmlFileType . INSTANCE , STRING3 ) ; \n } \n }", "msg_token": "mxm mxml macromedia url dropped mxml file type introduced"} {"diff": " class PropertyDerivations \n @ override \n public ActualProperties visitDelete ( DeleteNode node , List < ActualProperties > inputProperties ) \n { \n - return Iterables . getOnlyElement ( inputProperties ) ; \n + SINGLE \n + return Iterables . getOnlyElement ( inputProperties ) . translate ( symbol - > Optional . empty ( ) ) ; \n } \n \n @ override \n public abstract class AbstractTestDistributedQueries \n STRING0 ) ; \n \n assertQueryTrue ( STRING1 ) ; \n + \n + SINGLE \n + \n + assertQuery ( STRING2 , STRING3 ) ; \n + \n + assertQuery ( STRING4 , STRING5 ) ; \n + assertQuery ( STRING6 , STRING7 ) ; \n + \n + assertQueryTrue ( STRING1 ) ; \n } \n \n @ test", "msg_token": "Fix bug in property derivations for delete"} {"diff": " public class AjpProcessor extends AbstractProcessor { \n \n SINGLE \n \n + private final AbstractAjpProtocol < ? > protocol ; \n + \n \n COMMENT \n COMMENT \n public class AjpProcessor extends AbstractProcessor { \n public AjpProcessor ( AbstractAjpProtocol < ? > protocol ) { \n \n super ( protocol ) ; \n + this . protocol = protocol ; \n \n int packetSize = protocol . getPacketSize ( ) ; \n SINGLE", "msg_token": "Retain a reference to the AjpProtocol to aid refactoring"} {"diff": " public class DefaultRequirementTest { \n . isEqualTo ( new DefaultRequirement ( ) . setRuleKey ( RuleKey . of ( STRING0 , STRING1 ) ) . setCharacteristic ( characteristic ) ) ; \n assertThat ( new DefaultRequirement ( ) . setRuleKey ( RuleKey . of ( STRING0 , STRING1 ) ) . setCharacteristic ( characteristic ) ) \n . isNotEqualTo ( new DefaultRequirement ( ) . setRuleKey ( RuleKey . of ( STRING2 , STRING3 ) ) . setCharacteristic ( characteristic ) ) ; \n + \n + assertThat ( new DefaultRequirement ( ) . setRuleKey ( RuleKey . of ( STRING0 , STRING1 ) ) . setCharacteristic ( characteristic ) ) \n + . isNotEqualTo ( new DefaultRequirement ( ) . setRuleKey ( RuleKey . of ( STRING0 , STRING1 ) ) . setCharacteristic ( \n + new DefaultCharacteristic ( ) \n + . setId ( NUMBER0 ) \n + . setKey ( STRING4 ) ) ) ; \n + \n } \n \n @ test \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix some quality flaw"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class PluginManager { \n private static String TAG = STRING0 ; \n + private static final int SLOW_EXEC_WARNING_THRESHOLD = Debug . isDebuggerConnected ( ) ? NUMBER0 : NUMBER1 ; \n \n SINGLE \n private final HashMap < String , PluginEntry > entries = new HashMap < String , PluginEntry > ( ) ; \n public class PluginManager { \n long pluginStartTime = System . currentTimeMillis ( ) ; \n boolean wasValidAction = plugin . execute ( action , rawArgs , callbackContext ) ; \n long duration = System . currentTimeMillis ( ) - pluginStartTime ; \n - if ( duration > NUMBER1 ) { \n + \n + if ( duration > SLOW_EXEC_WARNING_THRESHOLD ) { \n Log . w ( TAG , STRING1 + service + STRING2 + action + STRING3 + duration + STRING4 ) ; \n } \n if ( ! wasValidAction ) {", "msg_token": "Use a higher threshold for slow exec warnings when debugger is attached"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class RecipientTest extends ContextTestSupport { \n + public class RecipientListTest extends ContextTestSupport { \n protected MockEndpoint x , y , z ; \n \n public void testSendingAMessageUsingMulticastReceivesItsOwnExchange ( ) throws Exception {", "msg_token": "fixed typo on name"} {"diff": " public class InjectedLanguageUtil { \n List < DocumentRange > injected = hostDocument . getUserData ( INJECTED_FILES_KEY ) ; \n \n if ( injected == null ) { \n - injected = new SmartList < DocumentRange > ( ) ; \n + injected = new ArrayList < DocumentRange > ( ) ; \n hostDocument . putUserData ( INJECTED_FILES_KEY , injected ) ; \n }", "msg_token": "not supported exception fixed"} {"diff": " public class BuildCraftCore extends BuildCraftMod { \n builderAchievement = new Achievement ( STRING0 , STRING1 , NUMBER0 , NUMBER1 , BuildCraftBuilders . builderBlock , architectAchievement ) . registerStat ( ) ; \n blueprintAchievement = new Achievement ( STRING2 , STRING3 , NUMBER2 , NUMBER3 , BuildCraftBuilders . blueprintItem , architectAchievement ) . registerStat ( ) ; \n templateAchievement = new Achievement ( STRING4 , STRING5 , NUMBER0 , NUMBER3 , BuildCraftBuilders . templateItem , blueprintAchievement ) . registerStat ( ) ; \n - blueprintLibraryAchievement = new Achievement ( STRING6 , STRING7 , NUMBER4 , NUMBER1 , BuildCraftBuilders . libraryBlock , builderAchievement ) . registerStat ( ) ; \n + libraryAchievement = new Achievement ( STRING6 , STRING7 , NUMBER4 , NUMBER1 , BuildCraftBuilders . libraryBlock , builderAchievement ) . registerStat ( ) ; \n \n BuildcraftAchievements = new AchievementPage ( STRING8 , woodenGearAchievement , stoneGearAchievement , ironGearAchievement , goldGearAchievement , diamondGearAchievement , wrenchAchievement , engineAchievement1 , engineAchievement2 , engineAchievement3 , aLotOfCraftingAchievement , straightDownAchievement , chunkDestroyerAchievement , fasterFillingAchievement , timeForSomeLogicAchievement , refineAndRedefineAchievement , tinglyLaserAchievement , architectAchievement , builderAchievement , blueprintAchievement , templateAchievement , libraryAchievement ) ; \n AchievementPage . registerAchievementPage ( BuildcraftAchievements ) ;", "msg_token": "Fixed a little hiccup regarding achievements"} {"diff": " public class PlayerPortalEvent extends PlayerTeleportEvent { \n super ( player , from , to ) ; \n this . travelAgent = pta ; \n } \n + \n + public PlayerPortalEvent ( Player player , Location from , Location to , TravelAgent pta , TeleportCause cause ) { \n + super ( Type . PLAYER_PORTAL , player , from , to , cause ) ; \n + this . travelAgent = pta ; \n + } \n \n public void useTravelAgent ( boolean useTravelAgent ) { \n this . useTravelAgent = useTravelAgent ; \n public class PlayerTeleportEvent extends PlayerMoveEvent { \n COMMENT \n PLUGIN , \n COMMENT \n + COMMENT \n + COMMENT \n + NETHER_PORTAL , \n + COMMENT \n + COMMENT \n + COMMENT \n + END_PORTAL , \n + COMMENT \n COMMENT \n COMMENT \n UNKNOWN ;", "msg_token": "Added NETHER_PORTAL and END_PORTAL to the TeleportCause enum"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface Player extends HumanEntity { \n public void setDisplayName ( String name ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setCompassTarget ( Location loc ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added compass setting methods"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class NetworkTestTest extends TestUtil { \n + @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } \n public NetworkTestTest ( ) { super ( NUMBER0 ) ; } \n \n @ test public void testNetworkTest ( ) { \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProfilerTest extends TestUtil { \n + @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } \n public ProfilerTest ( ) { super ( NUMBER0 ) ; } \n \n @ test public void testProfiler ( ) {", "msg_token": "Add stall_till_cloudsize to tests"} {"diff": " public class TraktCredentials { \n \n nb . setAutoCancel ( true ) ; \n nb . setColor ( mContext . getResources ( ) . getColor ( R . color . accent_primary ) ) ; \n - nb . setPriority ( NotificationCompat . PRIORITY_DEFAULT ) ; \n + nb . setPriority ( NotificationCompat . PRIORITY_HIGH ) ; \n nb . setCategory ( NotificationCompat . CATEGORY_ERROR ) ; \n \n NotificationManager nm = ( NotificationManager ) mContext . getSystemService (", "msg_token": "Make credentials error notification high priority"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EditorHighlighterFactoryImpl extends EditorHighlighterFactory { \n try { \n return FileTypeEditorHighlighterProviders . INSTANCE . forFileType ( fileType ) . getEditorHighlighter ( project , fileType , vFile , settings ) ; \n } \n + catch ( ProcessCanceledException e ) { \n + throw e ; \n + } \n catch ( Exception e ) { \n LOG . error ( e ) ; \n }", "msg_token": "do not log PCE"} {"diff": " public abstract class OutputLineSplitter { \n \n myStdOutChunks . clear ( ) ; \n } \n - final boolean isTCLikeFakeOutput = chunks . size ( ) == NUMBER0 ; \n for ( OutputChunk chunk : chunks ) { \n - onLineAvailable ( chunk . getText ( ) , chunk . getKey ( ) , isTCLikeFakeOutput ) ; \n + onLineAvailable ( chunk . getText ( ) , chunk . getKey ( ) , false ) ; \n } \n }", "msg_token": "don t modify stdout lines previously newline symbols handling was postponed"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AnnotationJmxAttributeSource implements JmxAttributeSource , BeanFac \n @ override \n public ManagedResource getManagedResource ( Class < ? > beanClass ) throws InvalidMetadataException { \n org . springframework . jmx . export . annotation . ManagedResource ann = \n - beanClass . getAnnotation ( org . springframework . jmx . export . annotation . ManagedResource . class ) ; \n + AnnotationUtils . getAnnotation ( beanClass , org . springframework . jmx . export . annotation . ManagedResource . class ) ; \n if ( ann == null ) { \n return null ; \n } \n public class AnnotationJmxAttributeSource implements JmxAttributeSource , BeanFac \n \n @ override \n public ManagedNotification [ ] getManagedNotifications ( Class < ? > clazz ) throws InvalidMetadataException { \n - ManagedNotifications notificationsAnn = clazz . getAnnotation ( ManagedNotifications . class ) ; \n + ManagedNotifications notificationsAnn = AnnotationUtils . getAnnotation ( clazz , ManagedNotifications . class ) ; \n if ( notificationsAnn == null ) { \n return new ManagedNotification [ NUMBER0 ] ; \n }", "msg_token": "AnnotationJmxAttributeSource uses AnnotationUtils for consistent meta annotation handling and diagnostics"} {"diff": " public class GraphOfTheGodsFactory { \n public static TitanGraph create ( final String directory ) { \n BaseConfiguration config = new BaseConfiguration ( ) ; \n Configuration storage = config . subset ( GraphDatabaseConfiguration . STORAGE_NAMESPACE ) ; \n - SINGLE \n + SINGLE \n storage . setProperty ( GraphDatabaseConfiguration . STORAGE_BACKEND_KEY , STRING0 ) ; \n storage . setProperty ( GraphDatabaseConfiguration . STORAGE_DIRECTORY_KEY , directory ) ; \n - SINGLE \n + SINGLE \n Configuration index = storage . subset ( GraphDatabaseConfiguration . INDEX_NAMESPACE ) . subset ( INDEX_NAME ) ; \n index . setProperty ( INDEX_BACKEND_KEY , STRING1 ) ; \n index . setProperty ( STRING2 , true ) ; \n public class GraphOfTheGodsFactory { \n pluto . addEdge ( STRING3 , cerberus ) ; \n \n cerberus . addEdge ( STRING4 , tartarus ) ; \n + \n + SINGLE \n + graph . commit ( ) ; \n } \n }", "msg_token": "commit the transaction on GraphOfTheGodsFactory"} {"diff": " public class LexicalizedParser extends ParserGrammar implements Serializable { \n return buildTrainTransformer ( op , binarizer ) ; \n } \n \n + SINGLE \n public static CompositeTreeTransformer buildTrainTransformer ( Options op , TreeAnnotatorAndBinarizer binarizer ) { \n TreebankLangParserParams tlpParams = op . tlpParams ; \n TreebankLanguagePack tlp = tlpParams . treebankLanguagePack ( ) ; \n public class LexicalizedParser extends ParserGrammar implements Serializable { \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n + SINGLE \n public static Triple < Treebank , Treebank , Treebank > getAnnotatedBinaryTreebankFromTreebank ( Treebank trainTreebank , \n Treebank secondaryTreebank , \n Treebank tuneTreebank , \n public class TreeAnnotatorAndBinarizer implements TreeTransformer { \n } \n \n \n - COMMENT \n + COMMENT \n COMMENT \n public static Triple < Treebank , Treebank , Treebank > getAnnotatedBinaryTreebankFromTreebank ( Treebank trainTreebank , \n Treebank secondaryTreebank ,", "msg_token": "Add todo s fix javadoc"} {"diff": " public class SignavioSvgApiBuilder { \n \n public static final String HEADER = STRING0 ; \n public static final String FOOTER = STRING1 ; \n - public static final String SVGAPI_URL_REMOTE = STRING2 ; \n + public static final String SVGAPI_URL_REMOTE = STRING3 ; \n SINGLE \n - public static final String SVGAPI_URL_LOCAL = STRING4 ; \n + public static final String SVGAPI_URL_LOCAL = STRING5 ; \n SINGLE \n public static final String SERVER_SCRIPT_URL = STRING6 ;", "msg_token": "Updated urls to signavio svg"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Removed unused import from LocalOperationStatsImpl"} {"diff": " public class MongoSessionManager extends NoSqlSessionManager \n if ( currentMaxIdle != null && getMaxInactiveInterval ( ) > NUMBER0 && getMaxInactiveInterval ( ) < currentMaxIdle ) \n sets . put ( __MAX_IDLE , getMaxInactiveInterval ( ) ) ; \n if ( currentExpiry != null && expiry > NUMBER0 && expiry != currentExpiry ) \n - sets . put ( __EXPIRY , currentExpiry ) ; \n + sets . put ( __EXPIRY , expiry ) ; \n } \n }", "msg_token": "Persist updated session expiry time for MongoSessionManager"} {"diff": " public class GeolocationSearch { \n SINGLE \n SINGLE \n YouTube . Videos . List listVideosRequest = youtube . videos ( ) . list ( STRING0 ) . setId ( videoId ) ; \n - \n - SINGLE \n - listVideosRequest . setKey ( apiKey ) ; \n - \n VideoListResponse listResponse = listVideosRequest . execute ( ) ; \n \n List < Video > videoList = listResponse . getItems ( ) ;", "msg_token": "Updating samples to reflect recent changes"} {"diff": " public class DeepLearningProstateTest extends TestUtil { \n \n SINGLE \n final DeepLearningModel mymodel = UKV . get ( dest ) ; SINGLE \n + SINGLE \n + { \n + StringBuilder sb = new StringBuilder ( ) ; \n + mymodel . generateHTML ( STRING0 , sb ) ; \n + } \n if ( valid == null ) valid = frame ; \n if ( mymodel . isClassifier ( ) ) { \n Frame pred = mymodel . score ( valid ) ;", "msg_token": "Add generateHTML test to JUnit for DeepLearning"} {"diff": " public class JavaMethodsConflictResolver implements PsiConflictResolver { \n } \n \n private static boolean areTypeParametersAgree ( CandidateInfo info ) { \n - PsiSubstitutor substitutor = info . getSubstitutor ( ) ; \n - PsiMethod method = ( ( MethodCandidateInfo ) info ) . getElement ( ) ; \n - \n - Iterator < PsiTypeParameter > li = PsiUtil . typeParametersIterator ( method ) ; \n - while ( li . hasNext ( ) ) { \n - PsiTypeParameter typeParameter = li . next ( ) ; \n - PsiType type = substitutor . substitute ( typeParameter ) ; \n - if ( type == null ) continue ; \n - for ( PsiClassType bound : typeParameter . getExtendsListTypes ( ) ) { \n - if ( ! TypeConversionUtil . isAssignable ( type , bound ) ) return false ; \n - } \n - } \n - return true ; \n + return ( ( MethodCandidateInfo ) info ) . isApplicable ( ) ; \n } \n \n private static void checkParametersNumber ( final List < CandidateInfo > conflicts , final int argumentsCount ) {", "msg_token": "fixed red code"} {"diff": " public class Robolectric { \n ShadowBitmapFactory . reset ( ) ; \n ShadowDrawable . reset ( ) ; \n ShadowMediaStore . reset ( ) ; \n + ShadowLog . reset ( ) ; \n } \n \n public static < T > T directlyOn ( T shadowedObject ) { \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class LogTest { \n assertLogged ( ShadowLog . LogType . wtf , STRING0 , STRING1 , throwable ) ; \n } \n \n - @ after \n - public void tearDown ( ) { \n - ShadowLog . reset ( ) ; \n - } \n - \n private void assertLogged ( ShadowLog . LogType type , String tag , String msg , Throwable throwable ) { \n ShadowLog . LogItem lastLog = ShadowLog . getLogs ( ) . get ( NUMBER0 ) ; \n assertEquals ( type , lastLog . type ) ;", "msg_token": "Reset ShadowLog in RobolectricTestRunner"} {"diff": " public class TestPlayer implements Player { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n + public boolean isFlying ( ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n + \n + public void setFlying ( boolean value ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n + \n public boolean addPotionEffect ( PotionEffect effect ) { \n throw new UnsupportedOperationException ( STRING0 ) ; \n }", "msg_token": "Added missing tests to TestPlayer"} {"diff": " public class AtmosphereResourceImpl implements AtmosphereResource { \n } \n \n private void unregister ( ) { \n - if ( ! Utils . pollableTransport ( transport ( ) ) && ! Utils . webSocketMessage ( this ) ) { \n - config . resourcesFactory ( ) . unRegisterUuidForFindCandidate ( this ) ; \n - } \n + config . resourcesFactory ( ) . unRegisterUuidForFindCandidate ( this ) ; \n } \n \n public void _destroy ( ) {", "msg_token": "Call remove for any reason"} {"diff": " public class AppInitializer implements IProgress { \n \n \n \n - public void initVoiceDataInDifferentThread ( final Activity uiContext , final String voiceProvider , final Runnable run , boolean showDialog ) { \n + public void synchronized initVoiceDataInDifferentThread ( final Activity uiContext , final String voiceProvider , final Runnable run , boolean showDialog ) { \n final ProgressDialog dlg = showDialog ? ProgressDialog . show ( uiContext , app . getString ( R . string . loading_data ) , \n app . getString ( R . string . voice_data_initializing ) ) : null ; \n new Thread ( new Runnable ( ) { \n public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { \n if ( mTts != null ) { \n mTts . stop ( ) ; \n SINGLE \n - mTts = null ; \n + SINGLE \n } \n if ( ctx != null ) { \n abandonAudioFocus ( ) ;", "msg_token": "try less intrusive fix first"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Fix compilation error after merge"} {"diff": " public class PostsListFragment extends ListFragment { \n } \n \n public void requestPosts ( boolean loadMore ) { \n - if ( WordPress . getCurrentBlog ( ) == null ) \n + if ( WordPress . getCurrentBlog ( ) == null || mIsFetchingPosts ) \n return ; \n \n int postCount = getPostListAdapter ( ) . getRemotePostCount ( ) + POSTS_REQUEST_COUNT ;", "msg_token": "Don t allow requestPosts to continue if we are already requesting posts"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AsyncStateMachine { \n DISPATCHED ( false , false , false ) , \n STARTING ( true , true , false ) , \n STARTED ( true , true , false ) , \n - MUST_COMPLETE ( true , true , false ) , \n + MUST_COMPLETE ( true , Globals . STRICT_SERVLET_COMPLIANCE , false ) , \n COMPLETING ( true , false , false ) , \n TIMING_OUT ( true , false , false ) , \n MUST_DISPATCH ( true , true , true ) ,", "msg_token": "Use the strict compliance flag to wrap around the change deferring real completion of AsyncContext complete until after onComplete"} {"diff": " public abstract class EGLObjectHandle { \n private final long mHandle ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated", "msg_token": "Fix bad link tag in javadoc"} {"diff": " public class ChatAtmosphereHandler extends OnMessage < String > { \n response . getWriter ( ) . write ( mapper . writeValueAsString ( mapper . readValue ( message , Data . class ) ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public final static class WebSocketEventListener extends WebSocketEventListenerAdapter { \n @ override \n - public void onClose ( WebSocketEvent event ) { \n - logger . debug ( STRING0 , event ) ; \n + public void onConnect ( WebSocketEvent event ) { \n + logger . debug ( STRING1 , event ) ; \n } \n \n @ override \n public void onDisconnect ( WebSocketEvent event ) { \n - logger . debug ( STRING0 , event ) ; \n + logger . debug ( STRING1 , event ) ; \n } \n }", "msg_token": "Add onConnect Disconnect events"} {"diff": " public abstract class AbstractEmbeddedServletContainerFactoryTests { \n . getEmbeddedServletContainer ( exampleServletRegistration ( ) ) ; \n this . container . start ( ) ; \n this . container . stop ( ) ; \n - SINGLE \n + this . thrown . expect ( IOException . class ) ; \n String response = getResponse ( getLocalUrl ( STRING0 ) ) ; \n throw new RuntimeException ( response ) ; \n }", "msg_token": "Throw exception on stop failure"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n if ( layerType == LAYER_TYPE_HARDWARE ) { \n HardwareLayer layer = getHardwareLayer ( ) ; \n if ( layer != null ) { \n - layer . setLayerPaint ( paint ) ; \n + layer . setLayerPaint ( mLayerPaint ) ; \n } \n invalidateViewProperty ( false , false ) ; \n } else {", "msg_token": "Pass correct paint to HW layer"} {"diff": " class ASTRunif extends ASTUniPrefixOp { \n if ( ary instanceof ASTId ) ary = Env . staticLookup ( ( ASTId ) ary ) ; \n SINGLE \n try { \n - _seed = ( long ) E . nextDbl ( ) ; \n + _seed = ( long ) E . parse ( ) . treeWalk ( new Env ( null ) ) . popDbl ( ) ; \n } catch ( ClassCastException e ) { \n e . printStackTrace ( ) ; \n throw new IllegalArgumentException ( STRING0 ) ;", "msg_token": "allow expr for seed eager it in parse"} {"diff": " public class HistogramMetric implements Metric { \n public long count ( ) { return count . get ( ) ; } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public double max ( ) { \n if ( count ( ) > NUMBER0 ) { \n public class HistogramMetric implements Metric { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public double min ( ) { \n if ( count ( ) > NUMBER0 ) {", "msg_token": "Fix some docs"} {"diff": " public class TokensRegexNERAnnotator implements Annotator { \n private final Pattern validPosPattern ; \n private final boolean verbose ; \n \n - public TokensRegexNERAnnotator ( String mapping ) { \n - this ( mapping , false ) ; \n - } \n - \n - public TokensRegexNERAnnotator ( String mapping , boolean ignoreCase ) { \n - this ( STRING0 , getProperties ( STRING0 , mapping , ignoreCase ) ) ; \n - } \n - \n - private static Properties getProperties ( String name , String mapping , boolean ignoreCase ) { \n - Properties props = new Properties ( ) ; \n - props . setProperty ( name + STRING1 , mapping ) ; \n - props . setProperty ( name + STRING2 , String . valueOf ( ignoreCase ) ) ; \n - return props ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n public TokensRegexNERAnnotator ( String name , Properties properties ) { \n String backgroundSymbol = properties . getProperty ( name + STRING3 , SeqClassifierFlags . DEFAULT_BACKGROUND_SYMBOL ) ;", "msg_token": "Fixed compilation bugs"} {"diff": " public class ConsistentRoutingStrategy implements RoutingStrategy { \n this . partitionToNode = new Node [ m . size ( ) ] ; \n for ( int i = NUMBER0 ; i < m . size ( ) ; i ++ ) { \n if ( ! m . containsKey ( i ) ) \n - throw new IllegalArgumentException ( STRING0 + i ) ; \n + throw new IllegalArgumentException ( STRING1 + i ) ; \n this . partitionToNode [ i ] = m . get ( i ) ; \n } \n }", "msg_token": "Remove error message containing the obsolete terminology tag to refer to a partition"} {"diff": " public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters , \n SINGLE \n } \n } \n - domains [ NUMBER0 ] = nc == NUMBER1 || ! computeMetrics ? null : adaptFrm . lastVec ( ) . domain ( ) ; \n + domains [ NUMBER0 ] = nc == NUMBER1 ? null : ! computeMetrics ? _output . _domains [ _output . _domains . length - NUMBER1 ] : adaptFrm . lastVec ( ) . domain ( ) ; \n SINGLE \n BigScore bs = new BigScore ( domains [ NUMBER0 ] , ncols , adaptFrm . means ( ) , computeMetrics ) . doAll ( ncols , adaptFrm ) ; \n if ( computeMetrics )", "msg_token": "Fix NPE when scoring a test set without a response"} {"diff": " public class ReaderPost { \n private static void assignAuthorFromJson ( ReaderPost post , JSONObject jsonAuthor ) { \n if ( jsonAuthor == null ) return ; \n \n - post . authorName = JSONUtils . getString ( jsonAuthor , STRING0 ) ; \n - post . authorFirstName = JSONUtils . getString ( jsonAuthor , STRING1 ) ; \n + post . authorName = JSONUtils . getStringDecoded ( jsonAuthor , STRING0 ) ; \n + post . authorFirstName = JSONUtils . getStringDecoded ( jsonAuthor , STRING1 ) ; \n post . postAvatar = JSONUtils . getString ( jsonAuthor , STRING2 ) ; \n post . authorId = jsonAuthor . optLong ( STRING3 ) ;", "msg_token": "Also decode author name"} {"diff": " public class LdapAuthenticationProvider implements AuthenticationProvider { \n try { \n DirContextOperations userData = getAuthenticator ( ) . authenticate ( authentication ) ; \n \n - GrantedAuthority [ ] extraAuthorities = getAuthoritiesPopulator ( ) . getGrantedAuthorities ( userData , username ) ; \n + GrantedAuthority [ ] extraAuthorities = loadUserAuthorities ( userData , username , password ) ; \n \n UserDetails user = userDetailsContextMapper . mapUserFromContext ( userData , username , extraAuthorities ) ; \n \n public class LdapAuthenticationProvider implements AuthenticationProvider { \n } \n } \n \n + protected GrantedAuthority [ ] loadUserAuthorities ( DirContextOperations userData , String username , String password ) { \n + return getAuthoritiesPopulator ( ) . getGrantedAuthorities ( userData , username ) ; \n + } \n + \n protected Authentication createSuccessfulAuthentication ( UsernamePasswordAuthenticationToken authentication , \n UserDetails user ) { \n Object password = useAuthenticationRequestCredentials ? authentication . getCredentials ( ) : user . getPassword ( ) ;", "msg_token": "Introduced loadUserAuthorities method"} {"diff": " public class RoutedStore implements Store < ByteArray , byte [ ] > { \n storeDef . getPreferredReads ( ) , \n storeDef . getRequiredReads ( ) , \n Event . INSUFFICIENT_SUCCESSES ) ) ; \n - \n pipeline . addEventAction ( Event . INSUFFICIENT_SUCCESSES , \n new PerformSerialRequests < List < Versioned < byte [ ] > > , BasicPipelineData < List < Versioned < byte [ ] > > > > ( pipelineData , \n repairReads ? Event . RESPONSES_RECEIVED", "msg_token": "Removed a single line of whitespace"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ConnectionConfiguration implements Cloneable { \n \n + static { \n + SINGLE \n + SINGLE \n + SmackConfiguration . getVersion ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public final class SmackInitialization { \n SINGLE \n SINGLE \n try { \n - SmackConfiguration . DEBUG_ENABLED = Boolean . getBoolean ( STRING0 ) ; \n + SINGLE \n + SINGLE \n + if ( Boolean . getBoolean ( STRING0 ) ) { \n + SmackConfiguration . DEBUG_ENABLED = true ; \n + } \n } \n catch ( Exception e ) { \n SINGLE", "msg_token": "Fix initialization order issue with DEBUG_ENABLED"} {"diff": " public class HdrHistogram extends com . codahale . metrics . Histogram { \n public HdrHistogram ( AtomicHistogram hdrHistogram ) { \n super ( new ExponentiallyDecayingReservoir ( ) ) ; \n this . hdrHistogram = hdrHistogram ; \n - log . info ( STRING0 , hdrHistogram . getEstimatedFootprintInBytes ( ) ) ; \n } \n \n public HdrHistogram ( final long highestTrackableValue , final int numberOfSignificantValueDigits ) {", "msg_token": "remove log message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class GrizzlyByteBufferCapacityTest extends ByteBufferCapacityTest { \n \n public class GrizzlyByteBufferCapacityTest extends ByteBufferCapacityTest { \n return new AsyncHttpClient ( new GrizzlyAsyncHttpProvider ( config ) , config ) ; \n } \n \n + @ test ( groups = { STRING0 , STRING1 } , enabled = false ) \n + public void basicByteBufferTest ( ) throws Throwable { \n + } \n }", "msg_token": "Disable the test as it fail"} {"diff": " public abstract class TestUtil { \n File roboTestDir = file ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n if ( hasTestManifest ( roboTestDir ) ) return testDirLocation = roboTestDir ; \n \n + SINGLE \n File roboSiblingTestDir = file ( new File ( new File ( STRING4 ) . getAbsolutePath ( ) ) . getParentFile ( ) . getParentFile ( ) , STRING0 , STRING1 , STRING2 , STRING3 ) ; \n if ( hasTestManifest ( roboSiblingTestDir ) ) return testDirLocation = roboSiblingTestDir ;", "msg_token": "add comment to TestUtil before submitting pull request"} {"diff": " public class DefaultManagementMBeanAssembler implements ManagementMBeanAssembler \n } \n \n boolean santizie = camelContext . getManagementStrategy ( ) . getManagementAgent ( ) . getSanitize ( ) != null && camelContext . getManagementStrategy ( ) . getManagementAgent ( ) . getSanitize ( ) ; \n - DefaultRequiredModelMBean mbean = ( DefaultRequiredModelMBean ) mBeanServer . instantiate ( DefaultRequiredModelMBean . class . getName ( ) ) ; \n + DefaultRequiredModelMBean mbean = new DefaultRequiredModelMBean ( mbi ) ; \n mbean . setSanitize ( santizie ) ; \n - mbean . setModelMBeanInfo ( mbi ) ; \n \n try { \n mbean . setManagedResource ( obj , STRING0 ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DefaultRequiredModelMBean extends RequiredModelMBean { \n SINGLE \n } \n \n + public DefaultRequiredModelMBean ( ModelMBeanInfo mbi ) throws MBeanException , RuntimeOperationsException { \n + super ( mbi ) ; \n + } \n + \n public boolean isSanitize ( ) { \n return sanitize ; \n }", "msg_token": "Added santizie option to JMX to hide sensitive information like password in URIs exposed in JMX MBean names and attributes"} {"diff": " public class ErasureUtils { \n Collections . sort ( ( List ) result ) ; \n } catch ( ClassCastException e ) { \n SINGLE \n + } catch ( NullPointerException npe ) { \n + SINGLE \n } \n return result ; \n }", "msg_token": "Make sortedIfPossible robust against null elements in the Collection"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n checks . add ( jqueryAliases ) ; \n } \n \n + if ( options . angularPass && ! options . skipNonTranspilationPasses ) { \n + checks . add ( angularPass ) ; \n + } \n + \n if ( options . generateExports && ! options . skipNonTranspilationPasses ) { \n checks . add ( generateExports ) ; \n } \n public final class DefaultPassConfig extends PassConfig { \n \n SINGLE \n \n - if ( options . angularPass ) { \n - checks . add ( angularPass ) ; \n - } \n - \n if ( options . exportTestFunctions ) { \n checks . add ( exportTestFunctions ) ; \n }", "msg_token": "Move angularPass to before the later transpilation step"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove out of date import from CoreWorker"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ConsoleBarPresenter \n { \n public class ConsoleBarPresenter \n server_ . vcsExecuteCommand ( command , new SimpleRequestCallback < ConsoleProcess > ( ) \n { \n @ override \n - public void onResponseReceived ( ConsoleProcess response ) \n + public void onResponseReceived ( final ConsoleProcess response ) \n { \n response . addConsoleOutputHandler ( new ConsoleOutputEvent . Handler ( ) \n { \n public class ConsoleBarPresenter \n } \n } ) ; \n \n + response . addProcessExitHandler ( new Handler ( ) \n + { \n + @ override \n + public void onProcessExit ( ProcessExitEvent event ) \n + { \n + response . reap ( new VoidServerRequestCallback ( ) ) ; \n + } \n + } ) ; \n + \n response . start ( new SimpleRequestCallback < Void > ( ) ) ; \n } \n } ) ;", "msg_token": "Reap VCS commands"} {"diff": " public abstract class WPCOMReaderBase extends Fragment { \n webSettings . setJavaScriptEnabled ( true ) ; \n webSettings . setPluginsEnabled ( true ) ; \n webSettings . setDomStorageEnabled ( true ) ; \n - webSettings . setUserAgentString ( STRING0 ) ; \n + webSettings . setUserAgentString ( STRING1 ) ; \n webSettings . setSavePassword ( false ) ; \n } \n \n public class WPCOMReaderImpl extends WPCOMReaderBase { \n try { \n HttpClient httpclient = new DefaultHttpClient ( ) ; \n HttpProtocolParams . setUserAgent ( \n - httpclient . getParams ( ) , STRING0 ) ; \n + httpclient . getParams ( ) , STRING1 ) ; \n String readerURL = Constants . readerURL \n + STRING2 ; \n if ( ( getResources ( ) . getConfiguration ( ) . screenLayout & Configuration . SCREENLAYOUT_SIZE_MASK ) == NUMBER0 ) { \n public class WPCOMReaderImpl extends WPCOMReaderBase { \n try { \n HttpClient httpclient = new DefaultHttpClient ( ) ; \n HttpProtocolParams . setUserAgent ( httpclient . getParams ( ) , \n - STRING0 ) ; \n + STRING1 ) ; \n \n String readerURL = Constants . readerURL \n + STRING3 ;", "msg_token": "Updated user agent of native reader"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SubclassDynamicTypeBuilderTest { \n methodVisitor . visitFieldInsn ( Opcodes . PUTSTATIC , \n Type . getInternalName ( Foo . class ) , \n FOO , \n - Type . INT . getDescriptor ( ) ) ; \n + Type . getDescriptor ( int . class ) ) ; \n methodVisitor . visitInsn ( Opcodes . RETURN ) ; \n return new ByteCodeAppender . Size ( NUMBER0 , methodDescription . getStackSize ( ) ) ; \n }", "msg_token": "Fixed reference of Nashorn ASM to explicitly added ASM"} {"diff": " public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n boolean writeAccessAllowed = isInsideWriteActionEDTOnly ( ) ; \n if ( writeAccessAllowed SINGLE \n SINGLE \n + || isHeadlessEnvironment ( ) && ! isUnitTestMode ( ) \n ) { \n LOG . debug ( STRING0 ) ; \n try {", "msg_token": "do not instantiate ProgressWindow in headless environment"} {"diff": " public abstract class FtpServerTestSupport extends CamelTestSupport { \n deleteDirectory ( FTP_ROOT_DIR ) ; \n \n canTest = false ; \n - ftpServer = createFtpServerFactory ( ) . createServer ( ) ; \n - if ( ftpServer != null ) { \n - ftpServer . start ( ) ; \n - canTest = true ; \n + \n + FtpServerFactory factory = createFtpServerFactory ( ) ; \n + if ( factory != null ) { \n + ftpServer = factory . createServer ( ) ; \n + if ( ftpServer != null ) { \n + ftpServer . start ( ) ; \n + canTest = true ; \n + } \n } \n \n super . setUp ( ) ;", "msg_token": "Fixed NPE issue when FTP server cannot be simulated on the OS box"} {"diff": " public abstract class BaseTopActivity extends BaseActivity { \n getMenu ( ) . setSlideDrawable ( R . drawable . ic_drawer ) ; \n getMenu ( ) . setDrawerIndicatorEnabled ( true ) ; \n \n - SINGLE \n - if ( ! Utils . hasXinstalled ( this ) ) { \n + SINGLE \n + if ( ! Utils . isSupporterChannel ( this ) ) { \n String key = getString ( R . string . key_a ) + getString ( R . string . key_b ) \n + getString ( R . string . key_c ) + getString ( R . string . key_d ) ; \n mHelper = new IabHelper ( this , key ) ;", "msg_token": "Do not run in app purchase query if on beta or X"} {"diff": " public class GmailEmailListView { \n final AndroidDriver driver ; \n \n @ androidfindby ( uiAutomator = STRING0 ) \n - private AndroidElement email ; \n + private AndroidElement emailAmericanFormatDate ; \n @ androidfindby ( uiAutomator = STRING1 ) \n - private AndroidElement email2 ; \n + private AndroidElement emailEuropeanFormatDate ; \n \n \n public GmailEmailListView ( AndroidDriver driver ) { \n public class GmailEmailListView { \n \n public GmailEmailView clickOnEmail ( ) { \n try { \n - email . click ( ) ; \n + emailAmericanFormatDate . click ( ) ; \n } catch ( NoSuchElementException e ) { \n - email2 . click ( ) ; \n + emailEuropeanFormatDate . click ( ) ; \n } \n GmailEmailView gmailEmailView = new GmailEmailView ( driver ) ; \n return gmailEmailView ;", "msg_token": "change the name of a variable"} {"diff": " public class NUIManagerInternal extends BaseComponentSystem implements NUIManage \n focus . onKeyEvent ( event ) ; \n } \n if ( event . isDown ( ) && ! event . isConsumed ( ) && event . getKey ( ) == Keyboard . Key . ESCAPE ) { \n - if ( ! screens . isEmpty ( ) && screens . peek ( ) . isEscapeToCloseAllowed ( ) ) { \n - popScreen ( ) ; \n - event . consume ( ) ; \n + for ( UIScreenLayer screen : screens ) { \n + if ( screen . isEscapeToCloseAllowed ( ) ) { \n + closeScreen ( screen ) ; \n + event . consume ( ) ; \n + break ; \n + } else if ( screen . isModal ( ) ) { \n + break ; \n + } \n } \n } \n for ( UIScreenLayer screen : screens ) {", "msg_token": "Fixed support for escape to close ui screen layers now correctly iterates the layer stack"} {"diff": " public class MapConfig implements DataSerializable { \n \n private MapStoreConfig mapStoreConfig = null ; \n \n - private NearCacheConfig nearCacheConfig = null ; \n + private NearCacheConfig nearCacheConfig = new NearCacheConfig ( ) ; \n \n private boolean readBackupData = false ;", "msg_token": "fix create a nearcache object before reading into"} {"diff": " final class WellKnownMutability { \n . add ( java . math . BigDecimal . class ) \n . add ( java . net . InetAddress . class ) \n . add ( java . util . Locale . class ) \n + . add ( STRING0 , STRING1 ) \n . add ( STRING2 ) \n . add ( STRING3 ) \n . add ( STRING4 )", "msg_token": "Add java util Optional as a well known immutable container"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n } \n \n private int findMotionHeader ( float y ) { \n - if ( mStickiedHeader != null && y <= mStickiedHeader . getBottom ( ) ) { \n + if ( mStickiedHeader != null && y <= mHeaderBottomPosition ) { \n return MATCHED_STICKIED_HEADER ; \n }", "msg_token": "Fix erroneous passing of touch to stickied header"} {"diff": " public class TabWidget extends LinearLayout implements OnFocusChangeListener { \n if ( child . getLayoutParams ( ) == null ) { \n final LinearLayout . LayoutParams lp = new LayoutParams ( \n NUMBER0 , \n - ViewGroup . LayoutParams . WRAP_CONTENT , NUMBER1 ) ; \n + ViewGroup . LayoutParams . FILL_PARENT , FLOAT0 ) ; \n lp . setMargins ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n child . setLayoutParams ( lp ) ; \n } \n public class TabWidget extends LinearLayout implements OnFocusChangeListener { \n SINGLE \n SINGLE \n if ( mDividerDrawable != null && getTabCount ( ) > NUMBER0 ) { \n - View divider = new View ( mContext ) ; \n + ImageView divider = new ImageView ( mContext ) ; \n final LinearLayout . LayoutParams lp = new LayoutParams ( \n mDividerDrawable . getIntrinsicWidth ( ) , \n - mDividerDrawable . getIntrinsicHeight ( ) ) ; \n + LayoutParams . FILL_PARENT ) ; \n lp . setMargins ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n divider . setLayoutParams ( lp ) ; \n divider . setBackgroundDrawable ( mDividerDrawable ) ;", "msg_token": "Fix the TabWidget to display custom views for the tabs better when the tabs have different sizes"} {"diff": " public class ClassPathResourceManager implements ResourceManager { \n } \n } \n \n + public ClassPathResourceManager ( final ClassLoader classLoader ) { \n + this ( classLoader , STRING0 ) ; \n + } \n + \n @ override \n public Resource getResource ( final String path ) throws IOException { \n String modPath = path ;", "msg_token": "Add constructor that does not take prefix"} {"diff": " public class Verifier implements GroovyClassVisitor , Opcodes { \n ConstructorNode dummy = new ConstructorNode ( NUMBER0 , null ) ; \n addInitialization ( node , dummy ) ; \n node . visitContents ( this ) ; \n + classNode . setNodeMetaData ( ClassNodeSkip . class , true ) ; \n return ; \n }", "msg_token": "disable optimizations for interfaces"} {"diff": " public final class PhoneAccount implements Parcelable { \n public static final int CAPABILITY_CALL_SUBJECT = NUMBER0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int CAPABILITY_EMERGENCY_CALLS_ONLY = NUMBER1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String SCHEME_TEL = STRING0 ;", "msg_token": "Add capability to identify phone accounts that are emergency only"} {"diff": " public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \n \n @ override \n public boolean equals ( Object other ) { \n - return this == other || ! ( other == null || getClass ( ) != other . getClass ( ) ) && adviceMethod . equals ( ( ( Inlining ) other ) . adviceMethod ) ; \n + return this == other || ! ( other == null || getClass ( ) != other . getClass ( ) ) && adviceMethod . equals ( ( ( Delegating ) other ) . adviceMethod ) ; \n } \n \n @ override", "msg_token": "Fixed incorrect equality method"} {"diff": " import NAMESPACE ; \n public abstract class MemoryManager { \n \n SINGLE \n - static final long MEM_MAX = Runtime . getRuntime ( ) . maxMemory ( ) ; \n + static public final long MEM_MAX = Runtime . getRuntime ( ) . maxMemory ( ) ; \n \n SINGLE \n static final HeapUsageMonitor HEAP_USAGE_MONITOR = new HeapUsageMonitor ( ) ; \n public abstract class MemoryManager { \n static final AtomicLong _taskMem = new AtomicLong ( MEM_MAX - ( MEM_MAX > > NUMBER0 ) ) ; \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 public static boolean tryReserveTaskMem ( long m ) { \n if ( ! CAN_ALLOC ) return false ; \n + if ( m == NUMBER1 ) return true ; \n assert m >= NUMBER1 : STRING0 + m ; \n long current = _taskMem . addAndGet ( - m ) ; \n if ( current < NUMBER1 ) {", "msg_token": "Improve comments in MemoryManager backpressure"} {"diff": " \n - COMMENT \n - modify it under the terms of the GNU Lesser General Public License \n - as published by the Free Software Foundation , either version NUMBER0 of \n - the License , or ( props , at your option ) any later version . \n - \n - This program is distributed in the hope that it will be useful , \n - but WITHOUT ANY WARRANTY ; without even the implied warranty of \n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the \n - GNU General Public License for more details . \n - \n - You should have received a copy of the GNU General Public License \n - COMMENT \n - \n - SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n \n package NAMESPACE ;", "msg_token": "Remove the LGPL license of the generated GTFS RT protocol buffer class"} {"diff": " public class ClusterServiceIT extends ESIntegTestCase { \n \n SINGLE \n for ( TaskExecutor executor : executors ) { \n - assertEquals ( ( int ) counts . get ( executor ) , executor . counter . get ( ) ) ; \n + if ( counts . containsKey ( executor ) ) { \n + assertEquals ( ( int ) counts . get ( executor ) , executor . counter . get ( ) ) ; \n + } \n } \n \n SINGLE", "msg_token": "Fix test bug in ClusterServiceIT testClusterStateBatchedUpdates"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoTestRunningState extends GoRunningState < GoTestRunConfiguration > { \n String frameworkName = myConfiguration . getTestFramework ( ) . getName ( ) ; \n ConsoleView consoleView = SMTestRunnerConnectionUtil . createAndAttachConsole ( frameworkName , processHandler , consoleProperties ) ; \n consoleView . addMessageFilter ( new GoConsoleFilter ( myConfiguration . getProject ( ) , myModule , myConfiguration . getWorkingDirectoryUrl ( ) ) ) ; \n + ProcessTerminatedListener . attach ( processHandler ) ; \n \n DefaultExecutionResult executionResult = new DefaultExecutionResult ( consoleView , processHandler ) ; \n AbstractRerunFailedTestsAction rerunFailedTestsAction = consoleProperties . createRerunFailedTestsAction ( consoleView ) ;", "msg_token": "Print result code in test console"} {"diff": " public abstract class SquidDatabase { \n } \n } \n \n - SINGLE \n + SINGLE \n \n private final Object notifiersLock = new Object ( ) ; \n private boolean dataChangedNotificationsEnabled = true ;", "msg_token": "Fix a comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public final class OptionsSupport { \n result = addUrlOption ( result , STRING0 , STRING1 ) ; \n } \n else if ( STRING2 . equals ( writeConcernType ) ) { \n - result = addUrlOption ( result , STRING3 , STRING4 ) ; \n + result = addUrlOption ( result , STRING5 , STRING4 ) ; SINGLE \n + result = addUrlOption ( result , STRING3 , STRING4 ) ; SINGLE \n } \n else if ( STRING6 . equals ( writeConcernType ) ) { \n result = addUrlOption ( result , STRING0 , STRING7 ) ; \n public class OptionsSupportTest { \n assertThat ( \n updateUrl ( STRING8 , \n props ( STRING9 , STRING2 ) ) , \n - is ( STRING10 ) ) ; \n + is ( STRING11 ) ) ; \n assertThat ( \n updateUrl ( STRING8 , \n props ( STRING9 , STRING6 ) ) ,", "msg_token": "Added journal true back into MongoDB connection string"} {"diff": " public final class Config { \n \n public static final boolean IGNORE_ID_REWRITE_IN_MUC = true ; \n \n - public static final boolean REQUEST_DISCO = true ; \n - \n public static final long MILLISECONDS_IN_DAY = NUMBER0 * NUMBER1 * NUMBER1 * NUMBER2 ; \n public static final long MAM_MAX_CATCHUP = MILLISECONDS_IN_DAY / NUMBER3 ; \n public static final int MAM_MAX_MESSAGES = NUMBER4 ; \n public class PresenceParser extends AbstractParser implements \n final String message = packet . findChildContent ( STRING0 ) ; \n final Presence presence = Presence . parse ( show , caps , message ) ; \n contact . updatePresence ( resource , presence ) ; \n - if ( presence . hasCaps ( ) && Config . REQUEST_DISCO ) { \n + if ( presence . hasCaps ( ) && ! from . equals ( account . getJid ( ) ) ) { \n mXmppConnectionService . fetchCaps ( account , from , presence ) ; \n }", "msg_token": "don t request disco from self"} {"diff": " public abstract class LookaheadStream < T > extends FastQueue < T > { \n COMMENT \n public void seek ( int index ) { \n int bufferStartIndex = currentElementIndex - p ; \n - if ( index < bufferStartIndex || index > currentElementIndex ) { \n + if ( index < bufferStartIndex ) { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n - currentElementIndex = index ; \n - p = index - bufferStartIndex ; \n + if ( index > currentElementIndex ) { \n + for ( int i = NUMBER0 ; i < currentElementIndex - index ; i ++ ) { \n + consume ( ) ; \n + } \n + } else { \n + currentElementIndex = index ; \n + p = index - bufferStartIndex ; \n + } \n } \n \n protected T LB ( int k ) {", "msg_token": "Fix LookaheadStream ability to seek forward past the current location via consume"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClassReloadingStrategy implements ClassLoadingStrategy { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n ClassInjector make ( Instrumentation instrumentation , AccessControlContext accessControlContext ) ;", "msg_token": "Added missing documentation and removed obsolete imports"} {"diff": " public abstract class AbstractServletOutputStream extends ServletOutputStream { \n } else { \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix comment typo"} {"diff": " public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener \n print ( STRING0 ) ; \n } \n } \n - printf ( STRING1 \n - + STRING2 , params . size ( ) ) ; \n + printf ( STRING3 \n + + STRING4 , params . size ( ) ) ; \n } \n }", "msg_token": "Removes use of arrayClassWithComponentType"} {"diff": " public abstract class AbstractConfigurableEmbeddedServletContainer implements \n this . jspServletClassName = jspServletClassName ; \n } \n \n - @ override \n - public void setSsl ( Ssl ssl ) { \n - this . ssl = ssl ; \n - } \n - \n - public Ssl getSsl ( ) { \n - return this . ssl ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix merge error"} {"diff": " public class ShutdownEndpoint implements ApplicationContextAware , \n @ autowired \n private ContainerProperties configuration = new ContainerProperties ( ) ; \n \n + private boolean shuttingDown = false ; \n + \n @ requestmapping ( value = STRING0 , method = RequestMethod . POST ) \n @ responsebody \n public Map < String , Object > shutdown ( ) { \n if ( this . configuration . isAllowShutdown ( ) ) { \n + this . shuttingDown = true ; \n return Collections . < String , Object > singletonMap ( STRING1 , \n STRING2 ) ; \n } else { \n public class ShutdownEndpoint implements ApplicationContextAware , \n @ override \n public void onApplicationEvent ( ServletRequestHandledEvent event ) { \n \n - if ( this . context != null && this . configuration . isAllowShutdown ( ) ) { \n + if ( this . context != null && this . configuration . isAllowShutdown ( ) \n + && this . shuttingDown ) { \n \n new Thread ( new Runnable ( ) { \n @ override", "msg_token": "Fix service integration tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JBTable extends JTable implements ComponentWithEmptyText , Component \n return false ; \n } \n \n + if ( e instanceof KeyEvent && UIUtil . isReallyTypedEvent ( ( KeyEvent ) e ) ) { \n + SpeedSearchSupply supply = SpeedSearchSupply . getSupply ( this ) ; \n + if ( supply != null && supply . isPopupActive ( ) ) { \n + return false ; \n + } \n + } \n + \n if ( myEditorRemover == null ) { \n final KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) ; \n myEditorRemover = new MyCellEditorRemover ( ) ;", "msg_token": "do not start editing if speed search is active"} {"diff": " public class HiveHFileOutputFormat extends \n job . getConfiguration ( ) , progressable ) ; \n \n final Path outputdir = FileOutputFormat . getOutputPath ( tac ) ; \n - final Path taskAttemptOutputdir = FileOutputCommitter . getTaskAttemptPath ( tac , outputdir ) ; \n + final Path taskAttemptOutputdir = new FileOutputCommitter ( outputdir , tac ) . getWorkPath ( ) ; \n final org . apache . hadoop . mapreduce . RecordWriter < \n ImmutableBytesWritable , KeyValue > fileWriter = getFileWriter ( tac ) ;", "msg_token": "Get work path instead of attempted task path in HiveHFileOutputFormat Chaoyu Tang reviewed by Mohit Sabharwal"} {"diff": " public class PublishProfilePictureActivity extends XmppActivity { \n public void run ( ) { \n hintOrWarning . setText ( errorCode ) ; \n hintOrWarning . setTextColor ( getWarningTextColor ( ) ) ; \n - publishButton . setText ( R . string . publish_avatar ) ; \n + publishButton . setText ( R . string . publish ) ; \n enablePublishButton ( ) ; \n } \n } ) ; \n public class PublishProfilePictureActivity extends XmppActivity { \n this . avatar . setImageBitmap ( bm ) ; \n if ( support ) { \n enablePublishButton ( ) ; \n - this . publishButton . setText ( R . string . publish_avatar ) ; \n + this . publishButton . setText ( R . string . publish ) ; \n this . hintOrWarning . setText ( R . string . publish_avatar_explanation ) ; \n this . hintOrWarning . setTextColor ( getPrimaryTextColor ( ) ) ; \n } else {", "msg_token": "fixed link to old resource"} {"diff": " public abstract class VideoRenderer extends Renderer < Video > { \n COMMENT \n COMMENT \n private void renderThumbnail ( Video video ) { \n + Picasso . with ( context ) . cancelRequest ( thumbnail ) ; \n Picasso . with ( context ) \n . load ( video . getThumbnail ( ) ) \n . placeholder ( R . drawable . placeholder )", "msg_token": "Add request cancelation to VideoRenderer using Picasso"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ tableendpoint ( name = STRING0 ) \n @ table ( databaseName = AppDatabase . NAME ) \n @ modelcontainer \n public class AModel extends BaseModel { \n public @ interface ContentUri { \n COMMENT \n COMMENT \n COMMENT \n - public static class ContentType { \n + class ContentType { \n \n public static final String VND_MULTIPLE = STRING1 ; \n \n public @ interface ContentUri { \n COMMENT \n COMMENT \n COMMENT \n - public @ interface PathSegment { \n + @ interface PathSegment { \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n @ target ( ElementType . METHOD ) \n public @ interface Notify { \n \n - public enum Method { \n + enum Method { \n INSERT , \n UPDATE , \n DELETE", "msg_token": "remove unnecessary publics"} {"diff": " public class TestCountLogger implements TestListener { \n \n @ override \n public void beforeTest ( TestDescriptor testDescriptor ) { \n + progressLogger . progress ( summary ( ) ) ; \n } \n \n @ override \n public class TestCountLogger implements TestListener { \n totalTests += result . getTestCount ( ) ; \n failedTests += result . getFailedTestCount ( ) ; \n skippedTests += result . getSkippedTestCount ( ) ; \n - progressLogger . progress ( summary ( ) ) ; \n } \n \n private String summary ( ) { \n public class TestCountLogger implements TestListener { \n @ override \n public void afterSuite ( TestDescriptor suite , TestResult result ) { \n if ( suite . getParent ( ) == null ) { \n + progressLogger . progress ( summary ( ) ) ; \n + \n if ( failedTests > NUMBER0 ) { \n logger . error ( TextUtil . getPlatformLineSeparator ( ) + summary ( ) ) ; \n }", "msg_token": "Move test progress logging to when we start running tests"} {"diff": " public class DefaultJoystickAxis implements JoystickAxis { \n return deadZone ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDeadZone ( float f ) { \n + this . deadZone = f ; \n + } \n + \n @ override \n public String toString ( ) { \n return STRING0 + name + STRING1 + parent . getName ( ) + STRING2 + axisIndex", "msg_token": "Allow the caller to override the axis default dead"} {"diff": " public class PyRemoteProcessStarter { \n } \n if ( Messages . showYesNoDialog ( e . getMessage ( ) + STRING0 , STRING1 , Messages . getErrorIcon ( ) ) == \n Messages . NO ) { \n - throw new ExecutionException ( STRING2 + e . getMessage ( ) ) ; \n + throw new ExecutionException ( STRING2 + e . getMessage ( ) , e ) ; \n } \n } \n }", "msg_token": "Write full stack trace"} {"diff": " public class CacheTest extends AndroidTestCase { \n @ override \n protected void setUp ( ) { \n Configuration conf = new Configuration . Builder ( getContext ( ) ) \n + . setDatabaseName ( STRING0 ) \n . addModelClasses ( CacheTestModel . class , CacheTestModel2 . class ) \n . create ( ) ; \n ActiveAndroid . initialize ( conf , true ) ;", "msg_token": "Fix test suite by setting a different database name for CacheTest"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PathMatchingResourcePatternResolver implements ResourcePatternResol \n SINGLE \n addAllClassLoaderJarRoots ( cl , result ) ; \n } \n + postProcessFindAllClassPathResourcesResult ( location , result ) ; \n return result . toArray ( new Resource [ result . size ( ) ] ) ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected void postProcessFindAllClassPathResourcesResult ( String location , Set < Resource > result ) { \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PathMatchingResourcePatternResolver implements ResourcePatternResol \n COMMENT \n COMMENT \n COMMENT \n - private void addAllClassLoaderJarRoots ( ClassLoader classLoader , Set < Resource > result ) { \n + protected void addAllClassLoaderJarRoots ( ClassLoader classLoader , Set < Resource > result ) { \n if ( classLoader instanceof URLClassLoader ) { \n try { \n for ( URL url : ( ( URLClassLoader ) classLoader ) . getURLs ( ) ) {", "msg_token": "Provide subclass hooks in path matching resolver"} {"diff": " public class HttpRequestHandler extends SimpleChannelUpstreamHandler { \n \n SINGLE \n ChannelFuture future = e . getChannel ( ) . write ( response ) ; \n - System . out . println ( response . toString ( ) ) ; \n + \n SINGLE \n if ( ! keepAlive ) { \n future . addListener ( ChannelFutureListener . CLOSE ) ;", "msg_token": "Removed System out"} {"diff": " public class BottomBar extends LinearLayout implements View . OnClickListener , Vie \n private boolean isComingFromRestoredState ; \n private boolean ignoreTabReselectionListener ; \n private boolean shyHeightAlreadyCalculated ; \n - private boolean useExtraOffset ; \n \n private ViewGroup tabContainer ;", "msg_token": "Removed useless variables"} {"diff": " public class InputMethodService extends AbstractInputMethodService { \n public static final int CURSOR_ANCHOR_MONITOR_MODE_NONE = NUMBER0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT = NUMBER1 ;", "msg_token": "Revise Javadoc for CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT"} {"diff": " public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > { \n \n sb . append ( STRING0 ) ; \n sb . append ( method ) ; \n + sb . append ( STRING1 \n for ( String name : headers . keySet ( ) ) { \n sb . append ( STRING0 ) ; \n sb . append ( name ) ; \n sb . append ( STRING2 ) ; \n sb . append ( headers . getJoinedValue ( name , STRING3 ) ) ; \n } \n + sb . append ( STRING4 \n + for ( String name : params . keySet ( ) ) { \n + sb . append ( STRING0 ) ; \n + sb . append ( name ) ; \n + sb . append ( STRING2 ) ; \n + sb . append ( params . getJoinedValue ( name , STRING3 ) ) ; \n + } \n \n return sb . toString ( ) ; \n }", "msg_token": "Make RequestImpl toString also print params"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ScreenUtil { \n } \n \n if ( activity . getSupportActionBar ( ) != null ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - int actionbar = activity . getSupportActionBar ( ) . getHeight ( ) ; \n - Log . d ( TAG , STRING0 + actionbar ) ; \n - height -= actionbar ; \n + int actionbar = activity . getSupportActionBar ( ) . getHeight ( ) ; \n + if ( actionbar == NUMBER0 ) { \n + TypedArray actionbarSizeTypedArray = activity . obtainStyledAttributes ( new int [ ] { android . R . attr . actionBarSize } ) ; \n + actionbar = ( int ) actionbarSizeTypedArray . getDimension ( NUMBER0 , NUMBER0 ) ; \n + } \n + Log . d ( TAG , STRING0 + actionbar ) ; \n + height -= actionbar ; \n } \n \n int status = getStatusBarHeight ( activity ) ;", "msg_token": "android update screenUtil java"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class OrderingFromTest { \n new File ( this . getClass ( ) . getResource ( STRING0 ) . toURI ( ) ) ) ; \n } \n \n - SINGLE \n + @ test \n public void testNegativeCase ( ) throws Exception { \n compilationHelper . assertCompileSucceeds ( \n new File ( this . getClass ( ) . getResource ( STRING1 ) . toURI ( ) ) ) ;", "msg_token": "Enable commented out test for OrderingFrom"} {"diff": " public class TraversalRequirements { \n return false ; \n } \n } \n - if ( modes . getWalk ( ) && e . getPermission ( ) . allows ( StreetTraversalPermission . PEDESTRIAN ) ) { \n - return true ; \n - } \n - if ( modes . getBicycle ( ) && e . getPermission ( ) . allows ( StreetTraversalPermission . BICYCLE ) ) { \n - return true ; \n - } \n - if ( modes . getDriving ( ) && e . getPermission ( ) . allows ( StreetTraversalPermission . CAR ) ) { \n - return true ; \n - } \n - return false ; \n + \n + return e . getPermission ( ) . allows ( modes ) ; \n } \n \n COMMENT", "msg_token": "use new helper in TraversalRequirements java"} {"diff": " \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class App \n { \n public static void main ( String [ ] args ) \n \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface ItemIterator { \n \n boolean hasNext ( ) ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class TreasureChest { \n \n private List < Item > items ;", "msg_token": "Added comments for iterator example"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class LoadQueryInfluencers { \n + public class LoadQueryInfluencers implements Serializable { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "made LoadQueryInfluencers Serializable"} {"diff": " public class PhysicsSpace { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public void enableDebug ( AssetManager manager ) { \n debugManager = manager ; \n } \n public class PhysicsSpace { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public void enableDebug ( AssetManager manager ) { \n debugManager = manager ; \n }", "msg_token": "add deprecation info to PhysicsSpace enableDebug"} {"diff": " public class TransferEdge extends Edge { \n } \n \n public State traverse ( State s0 ) { \n - if ( s0 . getOptions ( ) . wheelchairAccessible && ! wheelchairAccessible ) { \n - return null ; \n - } \n + if ( s0 . getBackEdge ( ) instanceof TransferEdge ) return null ; SINGLE \n + if ( s0 . getOptions ( ) . wheelchairAccessible && ! wheelchairAccessible ) return null ; \n StateEditor s1 = s0 . edit ( this ) ; \n s1 . setEverBoarded ( true ) ; \n s1 . incrementTimeInSeconds ( time ) ;", "msg_token": "Disallow chaining of TransferEdges"} {"diff": " public class CalculateShortestPath \n System . out . println ( STRING0 ) ; \n indexService . shutdown ( ) ; \n graphDb . shutdown ( ) ; \n - System . exit ( NUMBER0 ) ; \n } \n \n private static void createChain ( String . . . names ) \n public class EmbeddedNeo4j \n SINGLE \n graphDb . shutdown ( ) ; \n SINGLE \n - System . exit ( NUMBER0 ) ; \n } \n \n private static void registerShutdownHook ( final GraphDatabaseService graphDb ) \n public class EmbeddedNeo4jWithIndexing \n } \n System . out . println ( STRING0 ) ; \n shutdown ( ) ; \n - System . exit ( NUMBER0 ) ; \n } \n \n private static void shutdown ( ) \n public class Neo4jShell \n startRemoteShellAndWait ( ) ; \n } \n shutdown ( ) ; \n - System . exit ( NUMBER0 ) ; \n } \n \n private static void startGraphDb ( )", "msg_token": "Removed System exit no longer needed because the problem is fixes for real"} {"diff": " import NAMESPACE ; \n public class WolfPassFactory extends AbstractProjectComponent implements TextEditorHighlightingPassFactory { \n public WolfPassFactory ( Project project , TextEditorHighlightingPassRegistrar highlightingPassRegistrar ) { \n super ( project ) ; \n - highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , null , new int [ ] { Pass . LOCAL_INSPECTIONS } , false , - NUMBER0 ) ; \n + highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , new int [ ] { Pass . UPDATE_ALL } , new int [ ] { Pass . LOCAL_INSPECTIONS } , false , - NUMBER0 ) ; \n } \n \n @ nonnls \n public abstract class TextEditorHighlightingPassRegistrar extends AbstractProjec \n \n public abstract int registerTextEditorHighlightingPass ( @ notnull TextEditorHighlightingPassFactory factory , \n @ nullable final int [ ] runAfterCompletionOf , \n - @ nullable int [ ] runAfterOfStartingOf , \n + @ nullable int [ ] runAfterStartingOf , \n boolean runIntentionsPassAfter , \n int forcedPassId ) ; \n }", "msg_token": "run wolf pass after completion of syntax highlighting"} {"diff": " public class PeerGroup extends AbstractIdleService { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setFastCatchupTimeSecs ( long secondsSinceEpoch ) { \n lock . lock ( ) ;", "msg_token": "Add comment about using a large fast catchup time in PeerGroup"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed comments in MapTask and ReduceTask"} {"diff": " public abstract class ProxiedResource extends RestResource { \n final Node targetNode = nodeService . byNodeId ( nodeId ) ; \n return Optional . of ( this . remoteInterfaceProvider . get ( targetNode , this . authenticationToken , interfaceClass ) ) ; \n } catch ( NodeNotFoundException e ) { \n - LOG . warn ( STRING0 + nodeId + STRING1 + interfaceClass . getName ( ) + STRING2 ) \n + LOG . warn ( STRING0 + nodeId + STRING1 + interfaceClass . getName ( ) + STRING2 ) ; \n return Optional . empty ( ) ; \n } \n } ;", "msg_token": "Add missing semicolon"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public final class Util \n { \n try \n { \n - Field theUnsafe = Unsafe . class . getDeclaredField ( STRING0 ) ; \n - theUnsafe . setAccessible ( true ) ; \n - THE_UNSAFE = ( Unsafe ) theUnsafe . get ( null ) ; \n + final PrivilegedExceptionAction < Unsafe > action = new PrivilegedExceptionAction < Unsafe > ( ) \n + { \n + public Unsafe run ( ) throws Exception \n + { \n + Field theUnsafe = Unsafe . class . getDeclaredField ( STRING0 ) ; \n + theUnsafe . setAccessible ( true ) ; \n + return ( Unsafe ) theUnsafe . get ( null ) ; \n + } \n + } ; \n + \n + THE_UNSAFE = AccessController . doPrivileged ( action ) ; \n } \n catch ( Exception e ) \n {", "msg_token": "Add privileged action around getting the Unsafe"} {"diff": " public class QueryPhase implements SearchPhase { \n parseElements . put ( STRING0 , new QueryParseElement ( ) ) ; \n parseElements . put ( STRING1 , new QueryBinaryParseElement ( ) ) ; \n parseElements . put ( STRING2 , new QueryBinaryParseElement ( ) ) ; \n - parseElements . put ( STRING3 , new PostFilterParseElement ( ) ) ; SINGLE \n parseElements . put ( STRING4 , new PostFilterParseElement ( ) ) ; \n parseElements . put ( STRING5 , new PostFilterParseElement ( ) ) ; \n parseElements . put ( STRING6 , new FilterBinaryParseElement ( ) ) ;", "msg_token": "Remove support for deprecated top level filter in search api"} {"diff": " public abstract class Packet implements TopLevelStreamElement { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public String getPacketID ( ) { \n return packetID ; \n public abstract class Packet implements TopLevelStreamElement { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Packet s javadoc"} {"diff": " import NAMESPACE ; \n \n public class MediaModelFactory { \n private static final String TAG = STRING0 ; \n - private static final boolean LOCAL_LOGV = true ; \n + private static final boolean LOCAL_LOGV = false ; \n \n COMMENT \n COMMENT \n public class MediaModelFactory { \n \n String tag = sme . getTagName ( ) ; \n String src = sme . getSrc ( ) ; \n - Log . v ( TAG , STRING1 + src ) ; \n + \n PduPart part = findPart ( context , pb , src , srcs ) ; \n \n if ( sme instanceof SMILRegionMediaElement ) { \n public class MediaModelFactory { \n SINGLE \n ArrayList < Long > cids = new ArrayList < > ( ) ; \n for ( String _src : srcs ) { \n - Log . v ( TAG , STRING2 + _src ) ; \n cids . add ( getContentId ( _src ) ) ; \n } \n Collections . sort ( cids ) ;", "msg_token": "Removed some temp"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZooKeeperClient { \n private volatile ZooKeeper zooKeeper ; \n private SessionState sessionState ; \n \n - private final Set < Watcher > watchers = Collections . synchronizedSet ( new HashSet < Watcher > ( ) ) ; \n + private final Set < Watcher > watchers = new CopyOnWriteArraySet < Watcher > ( ) ; \n \n private static Iterable < InetSocketAddress > combine ( InetSocketAddress address , \n InetSocketAddress . . . addresses ) { \n public class ZooKeeperClient { \n } \n } \n \n - synchronized ( watchers ) { \n - for ( Watcher watcher : watchers ) { \n - watcher . process ( event ) ; \n - } \n + for ( Watcher watcher : watchers ) { \n + watcher . process ( event ) ; \n } \n } \n } ;", "msg_token": "Use a CopyOnWriteHashSet to avoid CME"} {"diff": " public class InventoryCell extends CoreWidget { \n public void onDraw ( Canvas canvas ) { \n getTargetItem ( ) . send ( new BeforeInventoryCellRendered ( canvas ) ) ; \n \n - canvas . addInteractionRegion ( interactionListener , canvas . getRegion ( ) ) ; \n + canvas . addInteractionRegion ( interactionListener , icon . getTooltip ( ) , canvas . getRegion ( ) ) ; \n canvas . drawWidget ( icon ) ; \n \n getTargetItem ( ) . send ( new InventoryCellRendered ( canvas ) ) ; \n public class ItemIcon extends CoreWidget { \n \n @ override \n public UIWidget getTooltip ( ) { \n - return tooltip ; \n + if ( tooltip . getList ( ) . size ( ) > NUMBER0 ) { \n + return tooltip ; \n + } else { \n + return null ; \n + } \n } \n }", "msg_token": "Fix inventory tooltips"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n } \n } \n } \n - ActivityStack resultStack = resultRecord == null ? null : resultRecord . task . stack ; \n \n final int launchFlags = intent . getFlags ( ) ; \n \n public final class ActivityStackSupervisor implements DisplayListener { \n } \n } \n \n + final ActivityStack resultStack = resultRecord == null ? null : resultRecord . task . stack ; \n + \n if ( err != ActivityManager . START_SUCCESS ) { \n if ( resultRecord != null ) { \n resultStack . sendActivityResultLocked ( - NUMBER0 ,", "msg_token": "ActivityManager Fix NPE when start activity"} {"diff": " public class ListManagedCursorTest extends ActivityInstrumentationTestCase < ListM \n COMMENT \n COMMENT \n @ largetest \n - @ suppress SINGLE \n public void testKeyScrollingToTouchMode ( ) { \n Instrumentation inst = getInstrumentation ( ) ; \n \n public class ListManagedCursorTest extends ActivityInstrumentationTestCase < ListM \n COMMENT \n @ flakytest ( tolerance = NUMBER0 ) \n @ largetest \n + @ suppress SINGLE \n public void testTouchScrollingToTrackballMode ( ) { \n Instrumentation inst = getInstrumentation ( ) ;", "msg_token": "Suppress tests in ListManagedCursorTest"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DisabledSchemaValidationTest { \n . disableSchemaValidation ( ) \n . deploy ( ) ; \n Assert . fail ( ) ; \n - } catch ( XMLException e ) { \n + } catch ( ActivitiException e ) { \n SINGLE \n }", "msg_token": "Catch ActivitiException instead of XMLException"} {"diff": " public class ConnectionPool implements Runnable { \n } \n catch ( InterruptedException ex ) { \n -- waitingForCon ; \n - waitLock . notify ( ) ; \n + waitLock . notifyAll ( ) ; \n \n throw new SQLException ( STRING0 + \n STRING1 ) ; \n public class ConnectionPool implements Runnable { \n public void freeConnection ( ) { \n synchronized ( waitLock ) { \n if ( waitingForCon > NUMBER0 ) { \n - waitLock . notify ( ) ; \n + waitLock . notifyAll ( ) ; \n } \n } \n }", "msg_token": "Wake up ALL waiting threads"} {"diff": " public class DeterministicKeyChain implements EncryptableKeyChain { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public List < ECKey > getIssuedReceiveKeys ( ) { \n - return getKeys ( false ) ; \n + final List < ECKey > keys = new ArrayList < ECKey > ( getKeys ( false ) ) ; \n + for ( Iterator < ECKey > i = keys . iterator ( ) ; i . hasNext ( ) ; ) { \n + DeterministicKey parent = ( ( DeterministicKey ) i . next ( ) ) . getParent ( ) ; \n + if ( parent == null || ! externalKey . equals ( parent ) ) \n + i . remove ( ) ; \n + } \n + return keys ; \n } \n \n COMMENT", "msg_token": "Fix getIssuedReceiveKeys is returning internal keys too"} {"diff": " public final class PrintManagerService extends SystemService { \n \n @ override \n public void onPackageModified ( String packageName ) { \n + if ( ! mUserManager . isUserUnlocked ( getChangingUserId ( ) ) ) return ; \n updateServices ( packageName ) ; \n getOrCreateUserStateLocked ( getChangingUserId ( ) ) . prunePrintServices ( ) ; \n } \n \n @ override \n public void onPackageRemoved ( String packageName , int uid ) { \n + if ( ! mUserManager . isUserUnlocked ( getChangingUserId ( ) ) ) return ; \n updateServices ( packageName ) ; \n getOrCreateUserStateLocked ( getChangingUserId ( ) ) . prunePrintServices ( ) ; \n }", "msg_token": "Skip package updates when user is locked"} {"diff": " public class JaspicAuthenticator extends AuthenticatorBase { \n AuthStatus authStatus ; \n Subject subject = new Subject ( ) ; \n try { \n + SINGLE \n + SINGLE \n + SINGLE \n ServerAuthConfig authConfig = configProvider . getServerAuthConfig ( MESSAGE_LAYER , \n appContext , callbackHandler ) ; \n String messageAuthContextId = authConfig . getAuthContextID ( messageInfo ) ;", "msg_token": "Add a TODO"} {"diff": " public final class Path_Delegate { \n } \n \n @ layoutlibdelegate \n + COMMENT \n + Bridge . getLog ( ) . fidelityWarning ( LayoutLog . TAG_UNSUPPORTED , \n + STRING0 , null , null ) ; \n + return true ; \n + } \n + \n + @ layoutlibdelegate \n COMMENT \n Path_Delegate pathDelegate = sManager . getDelegate ( nPath ) ; \n if ( pathDelegate == null ) { \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ICU_Delegate { \n } \n \n @ layoutlibdelegate \n + COMMENT \n + return Currency . getInstance ( currencyCode ) . getNumericCode ( ) ; \n + } \n + \n + @ layoutlibdelegate \n COMMENT \n return STRING1 ; \n }", "msg_token": "Add native method delegates to layoutlib"} {"diff": " public class Request implements HttpServletRequest { \n return mappingData . context ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setContext ( Context context ) { \n - mappingData . context = context ; \n - } \n - \n \n COMMENT \n COMMENT \n public class Request implements HttpServletRequest { \n return mappingData . wrapper ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setWrapper ( Wrapper wrapper ) { \n - mappingData . wrapper = wrapper ; \n - } \n - \n \n SINGLE \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated code"} {"diff": " public final class Results { \n else { \n r = new TagFilter ( new BufferedReader ( new FileReader ( dataRoot + STRING0 + rpath ) ) ) ; } \n int len = r . read ( content ) ; \n - SINGLE \n + SINGLE \n out . write ( summer . getSummary ( new String ( content , NUMBER0 , len ) ) . toString ( ) ) ; \n r . close ( ) ; \n } else if ( STRING1 . equals ( genre ) && srcRoot != null && summer != null ) { \n public class Summarizer { \n } \n \n private Token [ ] getTokens ( String text ) throws IOException { \n - SINGLE \n + SINGLE \n SINGLE \n ArrayList < Token > result = new ArrayList < Token > ( ) ; \n TokenStream ts = analyzer . tokenStream ( STRING2 , new StringReader ( text ) ) ;", "msg_token": "fix the fixme comments"} {"diff": " public class CassandraDaemon \n { \n keyspace . viewManager . buildAllViews ( ) ; \n } \n + logger . debug ( STRING0 ) ; \n } \n } ;", "msg_token": "Ninja add debug log statement to mv builder scheduled at startup"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Correcting the DeclarationExpression javadoc"} {"diff": " public class ShiftReduceParser extends ParserGrammar implements Serializable { \n serializedPath = args [ argIndex + NUMBER0 ] ; \n argIndex += NUMBER1 ; \n } else if ( args [ argIndex ] . equalsIgnoreCase ( STRING0 ) ) { \n - tlppClass = args [ argIndex ] + NUMBER0 ; \n + tlppClass = args [ argIndex + NUMBER0 ] ; \n argIndex += NUMBER1 ; \n } else if ( args [ argIndex ] . equalsIgnoreCase ( STRING1 ) ) { \n continueTraining = args [ argIndex + NUMBER0 ] ;", "msg_token": "Fix a bug in the way we get the tlpp option"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( STRING0 ) \n final class ApplicationFilterChain implements FilterChain { \n \n SINGLE", "msg_token": "Remove a now unused warning"} {"diff": " public class ResourceHandler extends HandlerWrapper \n path = URIUtil . canonicalPath ( path ) ; \n Resource r = base . addPath ( path ) ; \n \n - System . err . println ( base + STRING0 + path + STRING1 + r ) ; \n - \n if ( r != null && r . getAlias ( ) != null && ( _context == null || ! _context . checkAlias ( path , r ) ) ) \n { \n - System . err . println ( STRING2 + r ) ; \n if ( LOG . isDebugEnabled ( ) ) \n LOG . debug ( STRING3 , r , r . getAlias ( ) ) ; \n return null ; \n } \n - System . err . println ( STRING4 + r ) ; \n return r ; \n } \n catch ( Exception e ) \n { \n - e . printStackTrace ( ) ; \n LOG . ignore ( e ) ; \n }", "msg_token": "improved FileResource encoded alias checking"} {"diff": " public class BuildAndDecodeTest { \n \n @ test \n public void buildAndDecodeTest ( ) throws BrutException { \n - assertTrue ( sTestNewDir . hashCode ( ) == sTestNewDir . hashCode ( ) ) ; \n + assertTrue ( sTestNewDir . isDirectory ( ) ) ; \n } \n \n @ test", "msg_token": "fixed unit test to properly detect if decode worked"} {"diff": " public abstract class AbstractQueryReport extends AbstractCreateStatementInterce \n } catch ( Exception t ) { \n if ( log . isWarnEnabled ( ) ) log . warn ( STRING0 , t ) ; \n } \n - } else { \n + } else if ( process ) { \n reportQuery ( query , args , name , start , delta ) ; \n } \n SINGLE", "msg_token": "Only report query executions"} {"diff": " public class HorizontalBarChart extends BarChart \n \n int step = mData . getDataSetCount ( ) ; \n \n - for ( int i = NUMBER0 ; i < mData . getXValCount ( ) ; i += mXLabels . mXAxisLabelModulus ) { \n + for ( int i = NUMBER0 ; i < mData . getXValCount ( ) ; i ++ ) { \n \n position [ NUMBER1 ] = i * step + i * mData . getGroupSpace ( ) \n + mData . getGroupSpace ( ) / FLOAT0 ; \n public class HorizontalBarChart extends BarChart \n { \n String longest = STRING0 ; \n \n - for ( int i = NUMBER0 ; i < mData . getXValCount ( ) ; i += mXLabels . mXAxisLabelModulus ) \n + for ( int i = NUMBER0 ; i < mData . getXValCount ( ) ; i ++ ) \n { \n String text = mData . getXVals ( ) . get ( i ) ;", "msg_token": "remove reliance on xLabelModulus"} {"diff": " public class TerminalEmulator { \n } \n \n private int nextTabStop ( int cursorCol ) { \n - for ( int i = cursorCol ; i < mColumns ; i ++ ) { \n + for ( int i = cursorCol + NUMBER0 ; i < mColumns ; i ++ ) { \n if ( mTabStop [ i ] ) { \n return i ; \n }", "msg_token": "Fix tab behavior when cursor is on tab stop"} {"diff": " import NAMESPACE \n COMMENT \n COMMENT \n public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer < Filter , WebSecurity > { \n - private final Log logger = LogFactory . getLog ( getClass ( ) ) ; \n + private final Log logger = LogFactory . getLog ( WebSecurityConfigurerAdapter . class ) ; \n \n private ApplicationContext context ;", "msg_token": "WebSecurityConfigurerAdapter no longer uses getClass for logger"} {"diff": " public final class Log { \n private static final String LOG_TAG_PREFIX = STRING0 ; \n \n static { \n + globalLogger . setLevel ( Level . ALL ) ; SINGLE \n InputStream input = Log . class . getResourceAsStream ( STRING1 ) ; \n if ( input != null ) { \n try { \n public class Logger { \n @ deprecated \n public static final Logger global = new Logger ( GLOBAL_LOGGER_NAME , null ) ; \n \n - static { \n - global . setLevel ( Level . ALL ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Only set Logger global level when android util Log initializes"} {"diff": " public class AndroidSdkTest { \n final File platform = sdkTestSupport . getSdk_with_platform_default ( ) . getPlatform ( ) ; \n final String platformPath = platform . getAbsolutePath ( ) ; \n final String pathPath = path . getAbsolutePath ( ) ; \n - final String regex = pathPath + STRING0 ; \n + final String regex = pathPath + STRING1 ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Changed test to accept all platform names that starts with android"} {"diff": " public class BoundedOverheadBlockStore implements BlockStore { \n if ( ! file . delete ( ) ) \n throw new BlockStoreException ( STRING0 ) ; \n } \n - this . file = new RandomAccessFile ( file , STRING1 ) ; SINGLE \n + SINGLE \n + this . file = new RandomAccessFile ( file , STRING2 ) ; \n this . channel = this . file . getChannel ( ) ; \n this . file . write ( FILE_FORMAT_VERSION ) ; \n } catch ( IOException e1 ) { \n public class BoundedOverheadBlockStore implements BlockStore { \n \n private void load ( File file ) throws IOException , BlockStoreException { \n log . info ( STRING3 , file ) ; \n - this . file = new RandomAccessFile ( file , STRING1 ) ; \n + SINGLE \n + this . file = new RandomAccessFile ( file , STRING2 ) ; \n try { \n channel = this . file . getChannel ( ) ; \n SINGLE", "msg_token": "Open files in sync mode"} {"diff": " public abstract class MixinEnchantment implements Enchantment { \n public abstract int getMaxEnchantability ( int level ) ; \n \n @ shadow \n - public abstract boolean canApplyAtEnchantingTable ( net . minecraft . item . ItemStack stack ) ; \n - \n - @ shadow \n public abstract boolean canApplyTogether ( net . minecraft . enchantment . Enchantment ench ) ; \n \n @ shadow \n public abstract class MixinEnchantment implements Enchantment { \n \n @ override \n public boolean canBeAppliedByTable ( ItemStack stack ) { \n - return canApplyAtEnchantingTable ( ( net . minecraft . item . ItemStack ) stack ) ; \n + return canBeAppliedToStack ( stack ) ; \n } \n \n @ override", "msg_token": "Fixed table troubles"} {"diff": " public class IDManager { \n } else { \n assert isUserVertex ( vertexid ) ; \n VertexIDType type = getUserVertexIDType ( vertexid ) ; \n + assert type . offset ( ) == USERVERTEX_PADDING_BITWIDTH ; \n long partition = getPartitionId ( vertexid ) ; \n long count = vertexid > > > ( partitionBits + USERVERTEX_PADDING_BITWIDTH ) ; \n assert count > NUMBER0 ;", "msg_token": "Bugfixing partitioned vertices"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n mInputShown = true ; \n res = true ; \n } else if ( mHaveConnection && SystemClock . uptimeMillis ( ) \n - < ( mLastBindTime + TIME_TO_RECONNECT ) ) { \n + >= ( mLastBindTime + TIME_TO_RECONNECT ) ) { \n SINGLE \n SINGLE \n SINGLE \n SINGLE \n EventLog . writeEvent ( EventLogTags . IMF_FORCE_RECONNECT_IME , mCurMethodId , \n SystemClock . uptimeMillis ( ) - mLastBindTime , NUMBER0 ) ; \n + Slog . w ( TAG , STRING0 ) ; \n mContext . unbindService ( this ) ; \n mContext . bindService ( mCurIntent , this , Context . BIND_AUTO_CREATE ) ; \n }", "msg_token": "Fix a logic to recconect IME in InputMethodManagerService"} {"diff": " import NAMESPACE ; \n public class JetContentBasedFileSubstitutor implements ContentBasedClassFileProcessor { \n \n @ override \n - public boolean isApplicable ( Project project , VirtualFile file ) { \n - return JetDecompiledData . isKotlinFile ( project , file ) ; \n + public boolean isApplicable ( @ nullable Project project , @ notnull VirtualFile file ) { \n + return project != null && JetDecompiledData . isKotlinFile ( project , file ) ; \n } \n \n @ notnull", "msg_token": "Fixed IAE from JetDecompiledData isKotlinFile on startup"} {"diff": " public enum HttpHeader \n COMMENT \n COMMENT \n COMMENT \n + ORIGIN ( STRING0 ) , \n SEC_WEBSOCKET_KEY ( STRING1 ) , \n SEC_WEBSOCKET_VERSION ( STRING2 ) , \n SEC_WEBSOCKET_EXTENSIONS ( STRING3 ) ,", "msg_token": "Adding ORIGIN header"} {"diff": " import NAMESPACE ; \n public class BranchesPanel extends JPanel { \n private static final int SMALL_ROOTS_GAP = NUMBER0 ; \n private static final int BIG_ROOTS_GAP = NUMBER1 ; \n - private static final int TOP = NUMBER2 ; \n + private static final int TOP = NUMBER3 ; \n private static final int BOTTOM = NUMBER0 ; \n @ notnull private final VcsLogDataHolder myDataHolder ; \n @ notnull private final VcsLogUiImpl myUI ;", "msg_token": "vcs log add vertical gap between branches panel and toolbar"} {"diff": " public class UnderStoreBlockInStreamTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class UnderStoreBlockInStreamTest { \n arrayReadInternal ( mBlockStream , NUMBER0 ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ test \n public void arrayReadEOFTest ( ) throws IOException { \n arrayReadInternal ( mEOFBlockStream , ( int ) BLOCK_LENGTH ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private void arrayReadInternal ( UnderStoreBlockInStream inStream , int startIndex ) \n throws IOException { \n long remaining = inStream . remaining ( ) ;", "msg_token": "Improve javadocs for tests in UnderStoreBlockInStreamTest"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n final NotificationGuts v = mNotificationGutsExposed ; \n mNotificationGutsExposed = null ; \n \n + if ( v . getWindowToken ( ) == null ) return ; \n + \n final int x = ( v . getLeft ( ) + v . getRight ( ) ) / NUMBER0 ; \n final int y = ( v . getTop ( ) + v . getActualHeight ( ) / NUMBER0 ) ; \n final Animator a = ViewAnimationUtils . createCircularReveal ( v ,", "msg_token": "Fixed crash with notification guts"} {"diff": " public class ChatRoomQuery \n boolean isAutoJoin ) \n { \n if ( queryString == null \n - || ( ( room . getName ( ) . startsWith ( \n + || ( ( room . getName ( ) . contains ( \n queryString ) \n - || room . getIdentifier ( ) . startsWith ( queryString ) \n + || room . getIdentifier ( ) . contains ( queryString ) \n ) ) ) \n { \n ChatRoomSourceContact contact \n public class ChatRoomQuery \n boolean isAutoJoin ) \n { \n if ( queryString == null \n - || ( ( chatRoomName . startsWith ( \n + || ( ( chatRoomName . contains ( \n queryString ) \n - || chatRoomID . startsWith ( queryString ) \n + || chatRoomID . contains ( queryString ) \n ) ) ) \n { \n ChatRoomSourceContact contact", "msg_token": "Changes the chat room contact source to return chat rooms that contains"} {"diff": " public class ServerSentEventHttpMessageWriter implements HttpMessageWriter < Objec \n DataBufferFactory bufferFactory = outputMessage . bufferFactory ( ) ; \n Flux < Publisher < DataBuffer > > body = encode ( inputStream , bufferFactory , type ) ; \n \n - SINGLE \n - SINGLE \n - body = body . concatWith ( Flux . never ( ) ) ; \n - \n return outputMessage . writeAndFlushWith ( body ) ; \n }", "msg_token": "Let users control SSE stream completion"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n abstract class Action < T > { \n static class RequestWeakReference < M > extends WeakReference < M > { \n final Action action ;", "msg_token": "Use a static import for Priority"} {"diff": " import static NAMESPACE ; \n public class CxfToJmsInOutTest extends AbstractJUnit4SpringContextTests { \n private static int port = AvailablePortFinder . getNextAvailable ( NUMBER0 ) ; \n static { \n - SINGLE \n + SINGLE \n SINGLE \n System . setProperty ( STRING0 , Integer . toString ( port ) ) ; \n }", "msg_token": "Fixed a typo of CxfToJmsInOutTest"} {"diff": " public class PhotoUploadService extends Service implements Handler . Callback { \n mNumberUploaded ) ; \n \n mNotificationBuilder . setOngoing ( false ) ; \n - mNotificationBuilder . setProgress ( NUMBER0 , NUMBER0 , false ) ; \n + mNotificationBuilder . setProgress ( NUMBER1 , NUMBER1 , false ) ; \n mNotificationBuilder . setWhen ( System . currentTimeMillis ( ) ) ; \n mNotificationBuilder . setContentTitle ( text ) ; \n mNotificationBuilder . setTicker ( text ) ;", "msg_token": "Fix Finished Notication having progress bar"} {"diff": " public class StandardContext extends ContainerBase \n COMMENT \n COMMENT \n public void setPath ( String path ) { \n - SINGLE \n + \n setName ( path ) ; \n \n }", "msg_token": "Remove todo for bad idea"} {"diff": " public class ECKey implements Serializable { \n return pubKeyHash ; \n } \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public byte [ ] getPubKey ( ) { \n return pub ; \n } \n public class ECKey implements Serializable { \n return b . toString ( ) ; \n } \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Address toAddress ( NetworkParameters params ) { \n byte [ ] hash160 = Utils . sha256hash160 ( pub ) ; \n return new Address ( params , hash160 ) ;", "msg_token": "Improve JavaDocs in ECKey to try and help people understand the difference between pubkeyhashes and pubkeys"} {"diff": " import NAMESPACE ; \n public final class Es6ExtractClasses \n extends NodeTraversal . AbstractPostOrderCallback implements HotSwapCompilerPass { \n \n - static final String CLASS_DECL_VAR = STRING0 ; \n + private static final String CLASS_DECL_VAR = STRING0 ; \n \n private final AbstractCompiler compiler ; \n private final ExpressionDecomposer expressionDecomposer ;", "msg_token": "This rollback makes a package private constant on Es6ExtractClasses private once more"} {"diff": " public class JetControlFlowInstructionsGenerator extends JetControlFlowBuilderAd \n private final Stack < LexicalScope > lexicalScopes = new Stack < LexicalScope > ( ) ; \n private final Map < JetElement , BreakableBlockInfo > elementToBlockInfo = new HashMap < JetElement , BreakableBlockInfo > ( ) ; \n private int labelCount = NUMBER0 ; \n - private int allowDeadLabelCount = NUMBER0 ; \n \n private final Stack < JetControlFlowInstructionsGeneratorWorker > builders = new Stack < JetControlFlowInstructionsGeneratorWorker > ( ) ;", "msg_token": "Remove unused field"} {"diff": " public class Capsule implements Runnable { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "improve prelaunch javadoc"} {"diff": " public class WorkDuration implements Serializable { \n } \n \n static WorkDuration createFromMinutes ( long duration , int hoursInDay ) { \n - int days = ( ( Double ) ( duration / hoursInDay / NUMBER0 d ) ) . intValue ( ) ; \n + int days = ( int ) ( duration / ( double ) hoursInDay / FLOAT0 ) ; \n Long currentDurationInMinutes = duration - ( NUMBER1 * days * hoursInDay ) ; \n - int hours = ( ( Double ) ( currentDurationInMinutes / NUMBER0 d ) ) . intValue ( ) ; \n + int hours = ( int ) ( currentDurationInMinutes / FLOAT0 ) ; \n currentDurationInMinutes = currentDurationInMinutes - ( NUMBER1 * hours ) ; \n return new WorkDuration ( duration , days , hours , currentDurationInMinutes . intValue ( ) , hoursInDay ) ; \n }", "msg_token": "Fix critical issue in WorkDuration"} {"diff": " public interface Action < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - void execute ( T thing ) throws Exception ; \n + void execute ( T t ) throws Exception ; \n \n }", "msg_token": "Rename action param so IDEA does a better job of supplying a default name"} {"diff": " import NAMESPACE ; \n @ cyclecomponent ( context = CycleContextType . APPLICATION ) \n public class JsonProvider extends SignavioContentRepresentationProvider { \n \n - private SignavioConnectorInterface signavioConnector ; \n - \n - public JsonProvider ( ) { \n - } \n - \n - public JsonProvider ( SignavioConnectorInterface signavioConnector ) { \n - this . signavioConnector = signavioConnector ; \n - } \n - \n private static final long serialVersionUID = NUMBER0 ; \n \n public Content getContent ( RepositoryArtifact artifact ) { \n try { \n - if ( signavioConnector == null ) { \n - signavioConnector = ( SignavioConnectorInterface ) CycleSessionContext . get ( RuntimeConnectorList . class ) . getConnectorById ( artifact . getConnectorId ( ) ) ; \n - } \n + \n + SignavioConnectorInterface signavioConnector = ( SignavioConnectorInterface ) CycleSessionContext . get ( RuntimeConnectorList . class ) . getConnectorById ( artifact . getConnectorId ( ) ) ; \n + \n Content content = new Content ( ) ; \n Response jsonResponse = getJsonResponse ( signavioConnector , artifact , STRING0 ) ;", "msg_token": "Fixed bug with caching SignavioConnector in application scoped component"} {"diff": " public abstract class Tree extends AbstractCollection < Tree > implements Label , La \n COMMENT \n COMMENT \n public boolean dominates ( Tree t ) { \n - return ! ( dominationPath ( t ) == null ) ; \n + List < Tree > dominationPath = dominationPath ( t ) ; \n + return dominationPath != null && dominationPath . size ( ) > NUMBER0 ; \n } \n \n COMMENT \n public class TreeTest extends TestCase { \n assertEquals ( STRING0 , t . toString ( ) ) ; \n } \n \n + \n + public void testDominates ( ) { \n + Tree t = Tree . valueOf ( STRING1 ) ; \n + assertFalse ( t . dominates ( t ) ) ; \n + \n + for ( Tree child : t . children ( ) ) { \n + assertTrue ( t . dominates ( child ) ) ; \n + assertFalse ( child . dominates ( t ) ) ; \n + } \n + } \n }", "msg_token": "Fix Tree dominates to match the documentation"} {"diff": " public class AntElementNameReference extends AntGenericReference { \n } \n else { \n AntTask task = ( AntTask ) element ; \n - if ( task . isMacroDefined ( ) || task . isPresetDefined ( ) ) { \n + if ( task . isMacroDefined ( ) || task . isPresetDefined ( ) || task . isTypeDefined ( ) ) { \n final XmlAttribute attr = getAttribute ( ) ; \n if ( attr == null ) { \n - SINGLE \n + SINGLE \n task . getSourceElement ( ) . setName ( newElementName ) ; \n } \n else {", "msg_token": "handle rename of type defined elements as well along with macro defined and preset defined"} {"diff": " public class StringUtils { \n System . out . println ( STRING0 + key + STRING1 + flagArgs ) ; \n for ( String flagArg : flagArgs ) \n result . putAll ( propFileToTreeMap ( flagArg , existingArgs ) ) ; \n - i ++ ; \n + \n existingArgs . clear ( ) ; \n } else \n existingArgs . put ( key , join ( flagArgs , STRING2 ) ) ;", "msg_token": "made argument parsing easy"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - SINGLE \n + SINGLE \n + \n + SINGLE \n \n SINGLE \n \n - SINGLE \n + SINGLE \n \n @ singleton \n public class SatelliteManager implements CloseHandler < Window >", "msg_token": "update todo comments"} {"diff": " public class EditorFragmentComponent extends JPanel { \n int endLine , \n boolean showFolding , boolean showGutter ) { \n final EditorEx editorEx = ( EditorEx ) editor ; \n + final Color old = editorEx . getBackroundColor ( ) ; \n Color backColor = getBackgroundColor ( editor ) ; \n editorEx . setBackgroundColor ( backColor ) ; \n EditorFragmentComponent fragmentComponent = new EditorFragmentComponent ( editorEx , startLine , endLine , \n showFolding , showGutter ) ; \n fragmentComponent . setBackground ( backColor ) ; \n \n - editorEx . resetBackgourndColor ( ) ; \n + editorEx . setBackgroundColor ( old ) ; \n return fragmentComponent ; \n } \n \n public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n } \n \n public void setBackgroundColor ( Color color ) { \n + if ( getBackgroundIgnoreForced ( ) . equals ( color ) ) { \n + myForcedBackground = null ; \n + return ; \n + } \n + \n myForcedBackground = color ; \n }", "msg_token": "preserve console background when a folded fragment is hovered"} {"diff": " public enum JingleAction \n TRANSPORT_REPLACE ( STRING0 ) , \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - ADDSOURCE ( STRING1 ) ; \n + ADDSOURCE ( STRING1 ) , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + REMOVESOURCE ( STRING2 ) ; \n \n COMMENT \n COMMENT", "msg_token": "Adds the removesource Jingle action"} {"diff": " public class StringTools { \n xml . append ( STRING0 + match . getMessage ( ) + STRING1 ) ; \n String context = Tools . getContext ( match . getFromPos ( ) , match . getToPos ( ) , \n escapeXML ( text ) , contextSize , STRING2 , STRING3 ) ; \n + xml . append ( STRING4 ) ; \n + for ( String replacement : match . getSuggestedReplacements ( ) ) { \n + xml . append ( STRING5 ) ; \n + xml . append ( replacement ) ; \n + xml . append ( STRING6 ) ; \n + } \n + xml . append ( STRING7 ) ; \n xml . append ( STRING8 + context + STRING9 ) ; \n xml . append ( STRING10 ) ; \n i ++ ;", "msg_token": "add replacements to XML output"} {"diff": " public class PhoneStatusBar extends StatusBar { \n mNavigationBarView = \n ( NavigationBarView ) View . inflate ( context , R . layout . navigation_bar , null ) ; \n \n + mNavigationBarView . setEnabled ( ( mDisabled & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ; \n + \n sb . setOnSystemUiVisibilityChangeListener ( \n new View . OnSystemUiVisibilityChangeListener ( ) { \n @ override \n public class PhoneStatusBar extends StatusBar { \n mHandler . sendEmptyMessage ( MSG_CLOSE_RECENTS_PANEL ) ; \n } \n \n - mNavigationBarView . setEnabled ( ( state & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ; \n + if ( mNavigationBarView != null ) { \n + mNavigationBarView . setEnabled ( ( state & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ; \n + } \n } \n \n if ( ( diff & StatusBarManager . DISABLE_NOTIFICATION_ICONS ) != NUMBER0 ) {", "msg_token": "Fix a crasher in SystemUI"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class ColumnInfo < Item , Aspect > { \n - \n - public static class StringColumn extends ColumnInfo < String , String > { \n - public StringColumn ( final String name ) { \n - super ( name ) ; \n - } \n - \n - @ override \n - public String valueOf ( final String item ) { \n - return item ; \n - } \n - } \n - \n private String myName ; \n public static final ColumnInfo [ ] EMPTY_ARRAY = new ColumnInfo [ NUMBER0 ] ;", "msg_token": "remove unused class ColumnInfo StringColumn"} {"diff": " public class WrappedContext implements Context { \n } \n \n @ override \n + public String getScheme ( ) { \n + return wrapped . getScheme ( ) ; \n + } \n + \n + @ override \n public String getRemoteAddr ( ) { \n return wrapped . getRemoteAddr ( ) ; \n } \n public class ContextImplTest { \n \n } \n \n - } \n + @ test \n + public void testGetScheme ( ) { \n + final String scheme = STRING0 ; \n + when ( httpServletRequest . getScheme ( ) ) . thenReturn ( scheme ) ; \n + \n + context . init ( servletContext , httpServletRequest , httpServletResponse ) ; \n + \n + assertEquals ( scheme , httpServletRequest . getScheme ( ) ) ; \n + } \n + }", "msg_token": "Added unit test for Context getScheme"} {"diff": " import NAMESPACE ; \n public class OracleSelectParser extends SQLSelectParser { \n \n public OracleSelectParser ( String sql ) { \n - super ( sql ) ; \n + this ( new OracleLexer ( sql ) ) ; \n + this . lexer . nextToken ( ) ; \n } \n \n public OracleSelectParser ( Lexer lexer ) {", "msg_token": "fixed oracle parser bug"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Add define constants in Ant task"} {"diff": " public class ProjectBuildFileParser implements AutoCloseable { \n } catch ( InterruptedException e ) { \n throw Throwables . propagate ( e ) ; \n } \n + \n + try { \n + synchronized ( this ) { \n + if ( pathToBuckPy . isPresent ( ) ) { \n + Files . delete ( pathToBuckPy . get ( ) ) ; \n + } \n + } \n + } catch ( IOException e ) { \n + SINGLE \n + } \n + \n } \n } finally { \n isClosed = true ; \n public class Parser { \n File buildFile , \n Iterable < String > defaultIncludes ) \n throws BuildFileParseException , BuildTargetException , IOException { \n - ProjectBuildFileParser projectBuildFileParser = \n - buildFileParserFactory . createParser ( defaultIncludes ) ; \n - \n - return parseBuildFile ( buildFile , defaultIncludes , projectBuildFileParser ) ; \n + try ( ProjectBuildFileParser projectBuildFileParser = \n + buildFileParserFactory . createParser ( defaultIncludes ) ) { \n + return parseBuildFile ( buildFile , defaultIncludes , projectBuildFileParser ) ; \n + } \n } \n \n COMMENT", "msg_token": "Delete the temp buck py files generated"} {"diff": " public class Span implements Serializable , Iterable < Integer > { \n } \n \n public static Span fromValues ( Object . . . values ) { \n + if ( values . length == NUMBER0 ) { \n + return fromValues ( values [ NUMBER1 ] , values [ NUMBER1 ] instanceof Number ? ( ( Number ) values [ NUMBER1 ] ) . intValue ( ) + NUMBER0 : Integer . parseInt ( values [ NUMBER1 ] . toString ( ) ) + NUMBER0 ) ; \n + } \n if ( values . length != NUMBER2 ) { throw new IllegalArgumentException ( STRING0 ) ; } \n int val1 ; \n if ( values [ NUMBER1 ] instanceof Number ) { val1 = ( ( Number ) values [ NUMBER1 ] ) . intValue ( ) ; } \n public class EnglishGrammaticalRelations { \n SINGLE \n STRING1 , \n STRING2 , \n - SINGLE \n - STRING3 , \n + SINGLE \n + STRING4 , \n SINGLE \n SINGLE \n STRING5 ,", "msg_token": "Tweaks to bulletproof the slotfilling validation code"} {"diff": " public class StructuralReplaceTest extends IdeaTestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 ; \n + STRING4 ; \n assertEquals ( \n STRING5 , \n expectedResult ,", "msg_token": "Fixing test accordint to new xml formatter beheviour"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport { \n \n public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport { \n \n public EmbeddedDaemonClientServices ( ) { \n this ( LoggingServiceRegistry . newCommandLineProcessLogging ( ) , false ) ; \n - add ( EmbeddedDaemonFactory . class , new EmbeddedDaemonFactory ( ) ) ; \n } \n \n private class EmbeddedDaemonFactory implements Factory < Daemon > { \n public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport { \n public EmbeddedDaemonClientServices ( ServiceRegistry loggingServices , boolean displayOutput ) { \n super ( loggingServices ) ; \n this . displayOutput = displayOutput ; \n + add ( EmbeddedDaemonFactory . class , new EmbeddedDaemonFactory ( ) ) ; \n } \n \n protected DaemonRegistry createDaemonRegistry ( ) {", "msg_token": "fixed problem where GradleDistributionExecuter run in embeddedDaemon mode couldn t find a Factory Daemon"} {"diff": " public class HttpSessionContextIntegrationFilter implements InitializingBean , Fi \n \n public void doFilter ( ServletRequest request , ServletResponse response , FilterChain chain ) throws IOException , \n ServletException { \n - if ( ( request != null ) && ( request . getAttribute ( FILTER_APPLIED ) != null ) ) { \n + if ( request . getAttribute ( FILTER_APPLIED ) != null ) { \n SINGLE \n chain . doFilter ( request , response ) ; \n \n public class HttpSessionContextIntegrationFilter implements InitializingBean , Fi \n \n request . setAttribute ( FILTER_APPLIED , Boolean . TRUE ) ; \n \n - SINGLE \n + SINGLE \n \n try { \n chain . doFilter ( request , response ) ; \n - } catch ( IOException ioe ) { \n - throw ioe ; \n - } catch ( ServletException se ) { \n - throw se ; \n } \n finally { \n SINGLE", "msg_token": "Removed unnecessary check for a null request object"} {"diff": " public class ThriftClusterImpl implements Cluster { \n KeyspaceDefinition ksDef = this . describeKeyspace ( keyspace ) ; \n ColumnFamilyDefinition cfDef = ksDef . getColumnFamily ( columnFamily ) ; \n if ( cfDef == null ) \n - throw new NotFoundException ( String . format ( STRING0 , keyspace , columnFamily ) ) ; \n + throw new NotFoundException ( String . format ( STRING0 , columnFamily , keyspace ) ) ; \n \n Properties props = new Properties ( ) ; \n ThriftColumnFamilyDefinitionImpl thriftCfDef = ( ThriftColumnFamilyDefinitionImpl ) cfDef ;", "msg_token": "Pass NotFoundException constructor args in the correct order"} {"diff": " public class LevelRenderer implements ApplicationListener { \n float uSize = FLOAT0 / FLOAT1 ; \n float vSize = FLOAT0 / FLOAT1 ; \n \n - BufferedReader reader = new BufferedReader ( new InputStreamReader ( Gdx . files . readFile ( STRING0 , FileType . Internal ) ) ) ; \n + BufferedReader reader = new BufferedReader ( new InputStreamReader ( Gdx . files . internal ( STRING0 ) . read ( ) ) ) ; \n String line = reader . readLine ( ) ; \n String tokens [ ] = line . split ( STRING1 ) ; \n camera . getPosition ( ) . set ( Float . parseFloat ( tokens [ NUMBER0 ] ) , NUMBER0 , Float . parseFloat ( tokens [ NUMBER1 ] ) ) ;", "msg_token": "fixed rtm file handling"} {"diff": " public class PieRadarChartTouchListener extends SimpleOnGestureListener implemen \n } else { \n \n float angle = mChart . getAngleForPoint ( e . getX ( ) , e . getY ( ) ) ; \n + \n + if ( mChart instanceof PieChart ) { \n + angle /= mChart . getAnimator ( ) . getPhaseY ( ) ; \n + } \n + \n int index = mChart . getIndexForAngle ( angle ) ; \n \n SINGLE", "msg_token": "Consider anim phase on pie taps for highlights"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports of OptionalConfigurable"} {"diff": " public class SqlScript { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public SqlScript ( String sqlScriptSource , DbSupport dbSupport ) {", "msg_token": "Fixed javadoc for core dbSupport SqlScript"} {"diff": " public class RecoverySettings extends AbstractComponent implements Closeable { \n rateLimiter = new SimpleRateLimiter ( maxBytesPerSec . mbFrac ( ) ) ; \n } \n \n - logger . debug ( STRING0 , \n + logger . debug ( STRING1 , \n maxBytesPerSec , concurrentStreams ) ; \n \n nodeSettingsService . addListener ( new ApplySettings ( ) ) ; \n public class RecoverySourceHandler { \n \n private void sendNextChunk ( long position , BytesArray content , boolean lastChunk ) throws IOException { \n final TransportRequestOptions chunkSendOptions = TransportRequestOptions . builder ( ) \n - . withCompress ( false ) \n + . withCompress ( false ) SINGLE \n . withType ( TransportRequestOptions . Type . RECOVERY ) \n . withTimeout ( recoverySettings . internalActionTimeout ( ) ) \n . build ( ) ;", "msg_token": "apply review comments from bleskes"} {"diff": " class CursorImpl < R extends Record > implements Cursor < R > { \n \n @ override \n public final < E > E fetchOneInto ( Class < ? extends E > clazz ) { \n - return fetchOne ( ) . into ( clazz ) ; \n + R record = fetchOne ( ) ; \n + return record == null ? null : record . into ( clazz ) ; \n } \n \n @ override", "msg_token": "Avoid potential NPE"} {"diff": " class RelinkerRule extends AbstractBuildRule implements OverrideScheduleRule { \n @ override \n public ImmutableList < Step > getBuildSteps ( \n BuildContext context , \n - BuildableContext buildableContext ) { \n + final BuildableContext buildableContext ) { \n \n final ImmutableList . Builder < Step > relinkerSteps = ImmutableList . builder ( ) ; \n if ( isRelinkable ) { \n class RelinkerRule extends AbstractBuildRule implements OverrideScheduleRule { \n ImmutableSet < String > symbolsNeeded = readSymbolsNeeded ( ) ; \n if ( ! isRelinkable ) { \n getProjectFilesystem ( ) . copyFile ( getBaseLibPath ( ) , getLibFilePath ( ) ) ; \n + buildableContext . recordArtifact ( getLibFilePath ( ) ) ; \n } else { \n writeVersionScript ( symbolsNeeded ) ; \n for ( Step s : relinkerSteps . build ( ) ) {", "msg_token": "Record copied library as an artifact"} {"diff": " public class ZygoteInit { \n private static boolean startSystemServer ( ) \n throws MethodAndArgsCaller , RuntimeException { \n long capabilities = posixCapabilitiesAsBits ( \n + OsConstants . CAP_BLOCK_SUSPEND , \n OsConstants . CAP_KILL , \n OsConstants . CAP_NET_ADMIN , \n OsConstants . CAP_NET_BIND_SERVICE ,", "msg_token": "enable CAP_BLOCK_SUSPEND capability for system server"} {"diff": " public class MapperService extends AbstractIndexComponent implements Iterable < Do \n if ( mapper . type ( ) . charAt ( NUMBER0 ) == STRING0 ) { \n throw new InvalidTypeNameException ( STRING1 ) ; \n } \n + remove ( mapper . type ( ) ) ; SINGLE \n mappers = newMapBuilder ( mappers ) . put ( mapper . type ( ) , mapper ) . immutableMap ( ) ; \n mapper . addFieldMapperListener ( fieldMapperListener , true ) ; \n }", "msg_token": "when replacing a mapping clear the aggregated mapping information and then readd it"} {"diff": " public class GoStructureViewFactory implements PsiStructureViewFactory { \n @ nullable \n @ override \n public String getName ( ) { \n + if ( myElement instanceof GoNamedElement ) return ( ( GoNamedElement ) myElement ) . getName ( ) ; \n return myElement . getText ( ) ; \n } \n \n public class GoStructureViewFactory implements PsiStructureViewFactory { \n String appendix = type instanceof GoStructType || type instanceof GoInterfaceType ? \n STRING0 : \n ( type != null ? separator + GoPsiImplUtil . getText ( type ) : STRING0 ) ; \n - return ( ( GoTypeSpec ) myElement ) . getIdentifier ( ) . getText ( ) + appendix ; \n + return ( ( GoTypeSpec ) myElement ) . getName ( ) + appendix ; \n } \n else if ( myElement instanceof GoNamedElement ) { \n GoType type = ( ( GoNamedElement ) myElement ) . getGoType ( ) ;", "msg_token": "don t use the full text in go to class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MinecraftForge \n \n EVENT_BUS . register ( INTERNAL_HANDLER ) ; \n OreDictionary . getOreName ( NUMBER0 ) ; \n + \n + SINGLE \n + new CrashReport ( STRING0 , new Exception ( STRING1 ) ) ; \n } \n \n public static String getBrandingVersion ( )", "msg_token": "Early define CrashReport classes to combat invalid crash details"} {"diff": " static public void writeClassFile ( String internalName , byte [ ] bytecode ) throws E \n String path = genPath + File . separator + internalName + STRING0 ; \n File cf = new File ( path ) ; \n cf . createNewFile ( ) ; \n - OutputStream cfs = new FileOutputStream ( cf ) ; \n + FileOutputStream cfs = new FileOutputStream ( cf ) ; \n try \n { \n cfs . write ( bytecode ) ; \n + cfs . flush ( ) ; \n + cfs . getFD ( ) . sync ( ) ; \n } \n finally \n {", "msg_token": "added sync to writeClassFile"} {"diff": " public class CmdServlet extends BaseServlet { \n } \n } \n } \n + res . setContentType ( STRING0 ) ; \n + res . getWriter ( ) . write ( STRING1 ) ; \n } \n \n \n public class WebAppServlet extends BaseServlet { \n result . append ( renderer . processPage ( renderer . getItemUIRegistry ( ) . getWidgetId ( w ) , sitemapName , label , children , async ) ) ; \n } \n \n + } else if ( widgetId . equals ( STRING2 ) ) { \n + result . append ( STRING1 ) ; \n } \n } catch ( RenderException e ) { \n throw new ServletException ( e . getMessage ( ) , e ) ;", "msg_token": "Fix invalid empty reponse"} {"diff": " public class ShiroSecurityProcessor extends DelegateAsyncProcessor { \n if ( token instanceof ShiroSecurityToken ) { \n ShiroSecurityToken sst = ( ShiroSecurityToken ) token ; \n encryptedToken = ShiroSecurityHelper . encrypt ( sst , policy . getPassPhrase ( ) , policy . getCipherService ( ) ) ; \n + SINGLE \n + exchange . getIn ( ) . removeHeader ( ShiroSecurityConstants . SHIRO_SECURITY_TOKEN ) ; \n + exchange . getIn ( ) . setHeader ( ShiroSecurityConstants . SHIRO_SECURITY_TOKEN , encryptedToken ) ; \n } else if ( token instanceof String ) { \n String data = ( String ) token ; \n if ( policy . isBase64 ( ) ) {", "msg_token": "Favor storing the encrypted shiro token instead of unecrypted"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class Jid { \n return resourcepart ; \n } \n \n + public static Jid fromSessionID ( SessionID id ) throws InvalidJidException { \n + if ( id . getUserID ( ) . isEmpty ( ) ) { \n + return Jid . fromString ( id . getAccountID ( ) ) ; \n + } else { \n + return Jid . fromString ( id . getAccountID ( ) + STRING0 + id . getUserID ( ) ) ; \n + } \n + } \n + \n public static Jid fromString ( final String jid ) throws InvalidJidException { \n return new Jid ( jid ) ; \n }", "msg_token": "made Jid class parse otr session ids"} {"diff": " abstract class BaseWebFragment extends LazyLoadFragment \n ViewGroup . LayoutParams params = mWebView . getLayoutParams ( ) ; \n if ( isFullscreen ) { \n mScrollView . removeView ( mScrollViewContent ) ; \n + mWebView . scrollTo ( mScrollView . getScrollX ( ) , mScrollView . getScrollY ( ) ) ; \n mFullscreenView . addView ( mScrollViewContent ) ; \n params . height = ViewGroup . LayoutParams . MATCH_PARENT ; \n } else { \n reset ( ) ; \n - mWebView . pageUp ( true ) ; \n mFullscreenView . removeView ( mScrollViewContent ) ; \n mScrollView . addView ( mScrollViewContent ) ; \n + mScrollView . post ( ( ) - > mScrollView . scrollTo ( mWebView . getScrollX ( ) , mWebView . getScrollY ( ) ) ) ; \n params . height = ViewGroup . LayoutParams . WRAP_CONTENT ; \n } \n mWebView . setLayoutParams ( params ) ;", "msg_token": "Retain scroll position when toggling fullscreen"} {"diff": " public class WildcardTest extends TestCase { \n assertTrue ( Wildcard . matchPath ( STRING0 , STRING1 ) ) ; \n assertTrue ( Wildcard . matchPath ( STRING2 , STRING3 ) ) ; \n } \n + \n + public void testPaths ( ) { \n + assertTrue ( Wildcard . match ( STRING4 , STRING5 ) ) ; \n + assertTrue ( Wildcard . match ( STRING6 , STRING5 ) ) ; \n + \n + assertTrue ( Wildcard . matchPath ( STRING4 , STRING5 ) ) ; \n + assertTrue ( Wildcard . matchPath ( STRING7 , STRING5 ) ) ; \n + assertFalse ( Wildcard . matchPath ( STRING6 , STRING5 ) ) ; \n + assertTrue ( Wildcard . matchPath ( STRING6 , STRING8 ) ) ; \n + } \n }", "msg_token": "Added more tests"} {"diff": " public abstract class NetworkParameters implements Serializable { \n public static final String PAYMENT_PROTOCOL_ID_MAINNET = STRING0 ; \n COMMENT \n public static final String PAYMENT_PROTOCOL_ID_TESTNET = STRING1 ; \n + COMMENT \n + public static final String PAYMENT_PROTOCOL_ID_UNIT_TESTS = STRING2 ; \n \n SINGLE \n \n public abstract class NetworkParameters implements Serializable { \n return MainNetParams . get ( ) ; \n } else if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_TESTNET ) ) { \n return TestNet3Params . get ( ) ; \n + } else if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_UNIT_TESTS ) ) { \n + return UnitTestParams . get ( ) ; \n } else { \n return null ; \n } \n public class UnitTestParams extends NetworkParameters { \n \n @ override \n public String getPaymentProtocolId ( ) { \n - return null ; \n + return STRING2 ; \n } \n }", "msg_token": "Give unit test params a payment protocol ID"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ value.enclosing \n - @ buckstyleimmutable \n public class NdkCxxPlatforms { \n \n COMMENT", "msg_token": "Remove unused Value"} {"diff": " public class EditorSettingsExternalizable implements NamedJDOMExternalizable , Ex \n \n public boolean IS_BLOCK_CURSOR = false ; \n public boolean IS_WHITESPACES_SHOWN = false ; \n - public boolean IS_INDENT_GUIDES_SHOWN = false ; \n + public boolean IS_INDENT_GUIDES_SHOWN = true ; \n public boolean IS_ANIMATED_SCROLLING = true ; \n public boolean IS_CAMEL_WORDS = false ; \n public boolean ADDITIONAL_PAGE_AT_BOTTOM = false ;", "msg_token": "Turn show indent guides on by default"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + @ suppresswarnings ( STRING0 ) \n public interface FileStatus { \n COMMENT \n COMMENT", "msg_token": "suppress JBColor warning"} {"diff": " public class TestSVMLightRecordFactory { \n private String test_svm_light_positive_label = STRING0 ; \n private String test_svm_light_no_label = STRING1 ; \n \n + private String test_svm_light_zero_index = STRING2 ; \n \n \n @ test \n public class TestSVMLightRecordFactory { \n \n } \n \n + \n + @ test \n + public void testSVMLightRecordFactoryParseZeroIndex ( ) { \n + \n + int feature_size = NUMBER0 ; \n + \n + INDArray in_vector = Nd4j . create ( feature_size ) ; \n + INDArray out_vector = Nd4j . create ( NUMBER1 ) ; \n + \n + SVMLightRecordFactory recFactory = new SVMLightRecordFactory ( feature_size ) ; \n + try { \n + recFactory . parseFromLine ( test_svm_light_zero_index , in_vector , out_vector ) ; \n + } catch ( NumberFormatException e ) { \n + } \n + \n + assertEquals ( FLOAT0 , in_vector . getDouble ( NUMBER2 ) , FLOAT1 ) ; \n + \n + \n + } \n + \n + \n \n }", "msg_token": "added zero index unit test for svmlight"} {"diff": " public interface HostedConnection extends MessageConnection \n public void close ( String reason ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultServer implements Server \n \n public Object setAttribute ( String name , Object value ) \n { \n + if ( value == null ) \n + return sessionData . remove ( name ) ; \n return sessionData . put ( name , value ) ; \n }", "msg_token": "Modified the setAttribute method to remove the attribute"} {"diff": " public abstract class ChooseByNameBase { \n } \n \n myList . setVisibleRowCount ( Math . min ( VISIBLE_LIST_SIZE_LIMIT , myList . getModel ( ) . getSize ( ) ) ) ; \n - ListScrollingUtil . selectItem ( myList , Math . min ( selectionPos , myListModel . size ( ) - NUMBER0 ) ) ; \n + if ( myListModel . size ( ) > NUMBER1 ) { \n + ListScrollingUtil . selectItem ( myList , Math . min ( selectionPos , myListModel . size ( ) - NUMBER0 ) ) ; \n + } \n + \n if ( ! myCommands . isEmpty ( ) ) { \n myAlarm . addRequest ( this , DELAY ) ; \n }", "msg_token": "Fix index out of bounds"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove obsolete function setPlaybackRate from comments"} {"diff": " public class DefaultCommandLineConverterTest { \n private TestFile currentDir = testDir . file ( STRING0 ) ; \n private File expectedBuildFile ; \n private File expectedGradleUserHome = StartParameter . DEFAULT_GRADLE_USER_HOME ; \n - private File expectedDaemonRegistryDir = null ; \n + private File expectedDaemonRegistryDir ; \n private File expectedProjectDir = currentDir ; \n private List < String > expectedTaskNames = toList ( ) ; \n private Set < String > expectedExcludedTasks = toSet ( ) ;", "msg_token": "Fixed checkstyle complaint"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MovieDetailsFragment extends Fragment { \n @ bind ( R . id . buttonMovieComments ) Button mCommentsButton ; \n @ bind ( R . id . progressBar ) View mProgressBar ; \n \n - @ targetapi ( Build . VERSION_CODES . JELLY_BEAN ) \n @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , \n Bundle savedInstanceState ) { \n public class MovieDetailsFragment extends Fragment { \n mCrewView . setVisibility ( View . GONE ) ; \n \n SINGLE \n - if ( AndroidUtils . isJellyBeanOrHigher ( ) ) { \n + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) { \n mMoviePosterBackground . setImageAlpha ( NUMBER0 ) ; \n } else { \n + SINGLE \n mMoviePosterBackground . setAlpha ( NUMBER0 ) ; \n }", "msg_token": "Ignore deprecation of setAlpha in MovieDetailsFragment"} {"diff": " public class Camera implements Savable , Cloneable { \n float ex = width * viewPortRight ; \n float sy = height * viewPortBottom ; \n float ey = height * viewPortTop ; \n - float xExtent = ( ex - sx ) / NUMBER0 ; \n - float yExtent = ( ey - sy ) / NUMBER0 ; \n + float xExtent = Math . max ( FLOAT0 , ( ex - sx ) / FLOAT1 ) ; \n + float yExtent = Math . max ( FLOAT0 , ( ey - sy ) / FLOAT1 ) ; \n guiBounding . setCenter ( new Vector3f ( sx + xExtent , sy + yExtent , NUMBER1 ) ) ; \n guiBounding . setXExtent ( xExtent ) ; \n guiBounding . setYExtent ( yExtent ) ;", "msg_token": "Fixed IllegalArgumentException in Camera setGuiBounding"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n abstract class AbstractStreamingHashFunction implements HashFunction { \n } \n \n @ override \n - @ checkreturnvalue \n public final HashCode hash ( ) { \n munch ( ) ; \n buffer . flip ( ) ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public interface Hasher extends PrimitiveSink { \n COMMENT \n COMMENT \n COMMENT \n - @ checkreturnvalue \n HashCode hash ( ) ; \n \n COMMENT \n public interface Hasher extends PrimitiveSink { \n COMMENT \n @ override \n @ deprecated \n - @ checkreturnvalue \n int hashCode ( ) ; \n }", "msg_token": "Remove more unnecessary CheckReturnValues on APIs now that these packages are"} {"diff": " public class SuggestedFixTest { \n } \n \n @ test \n - public void testInsertArguments_castInArguments ( ) { \n + public void testInsertArguments_beforeCastInArguments ( ) { \n String originalCode = STRING0 ; \n String expectedCode = STRING1 ; \n Compiler compiler = getCompiler ( originalCode ) ; \n public class SuggestedFixTest { \n } \n \n @ test \n + public void testInsertArguments_afterCastInArguments ( ) { \n + String originalCode = STRING0 ; \n + String expectedCode = STRING2 ; \n + Compiler compiler = getCompiler ( originalCode ) ; \n + Node root = compileToScriptRoot ( compiler ) ; \n + SuggestedFix fix = new SuggestedFix . Builder ( ) \n + . insertArguments ( root . getFirstFirstChild ( ) , NUMBER0 , STRING3 ) \n + . build ( ) ; \n + assertChanges ( fix , STRING4 , originalCode , expectedCode ) ; \n + } \n + \n + @ test \n public void testDeleteArgumentFirst ( ) { \n String originalCode = STRING5 ; \n String expectedCode = STRING6 ;", "msg_token": "Add another test to make sure casts aren t removed"} {"diff": " public class CompositeRecordReader < K , V > extends RecordReader < K , V > \n long localTotalSplitLength = NUMBER0 ; \n for ( int i = NUMBER0 ; i < numSplits ; i ++ ) { \n InputSplit split = splits . get ( i ) ; \n - recordReaders . add ( new DelayedRecordReader ( inputSplit , taskAttemptContext ) ) ; \n + recordReaders . add ( new DelayedRecordReader ( split , taskAttemptContext ) ) ; \n long splitLength = split . getLength ( ) ; \n splitLengths [ i ] = splitLength ; \n cumulativeSplitLengths [ i ] = localTotalSplitLength ;", "msg_token": "Fix bug in CompositeRecordReader"} {"diff": " public interface NativeLinkable extends HasBuildTarget { \n \n Iterable < ? extends NativeLinkable > getNativeLinkableExportedDeps ( CxxPlatform cxxPlatform ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n NativeLinkableInput getNativeLinkableInput ( CxxPlatform cxxPlatform , Linker . LinkableDepType type ) \n throws NoSuchBuildTargetException ;", "msg_token": "Add a bit of documentation to NativeLinkable"} {"diff": " public class BrowseFragment extends android . support . v17 . leanback . app . BrowseFragm \n \n mRowsAdapter = new ArrayObjectAdapter ( lrp ) ; \n \n + SINGLE \n + SINGLE \n + final CardPresenter cardPresenter = new CardPresenter ( ) ; \n + \n for ( int i = NUMBER0 ; i < NUM_ROWS ; ++ i ) { \n - ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter ( new CardPresenter ( ) ) ; \n + ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter ( cardPresenter ) ; \n listRowAdapter . add ( STRING0 ) ; \n listRowAdapter . add ( STRING1 ) ; \n HeaderItem header = new HeaderItem ( i , STRING2 + i , null ) ;", "msg_token": "Use a single card presenter instance so views get recycled"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixing import collapse"} {"diff": " public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme \n return ; \n } \n \n - boolean redirectEnabled = request . isRedirectEnabled ( ) ? true : config . isRedirectEnabled ( ) ; \n + boolean redirectEnabled = request . isRedirectOverrideSet ( ) ? request . isRedirectEnabled ( ) : config . isRedirectEnabled ( ) ; \n if ( redirectEnabled && ( statusCode == NUMBER0 || statusCode == NUMBER1 || statusCode == NUMBER2 ) ) { \n \n if ( future . incrementAndGetCurrentRedirectCount ( ) < config . getMaxRedirects ( ) ) {", "msg_token": "Fix merge clash that removed that line"} {"diff": " public final class VorbisUtilTest extends TestCase { \n assertEquals ( true , VorbisUtil . verifyVorbisHeaderCapturePattern ( NUMBER0 , header , false ) ) ; \n } \n \n - public void testVerifyVorbisHeaderCapturePatternInvalidHeader ( ) throws ParserException { \n + public void testVerifyVorbisHeaderCapturePatternInvalidHeader ( ) { \n ParsableByteArray header = new ParsableByteArray ( \n new byte [ ] { NUMBER0 , STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ) ; \n try { \n public final class VorbisUtilTest extends TestCase { \n assertFalse ( VorbisUtil . verifyVorbisHeaderCapturePattern ( NUMBER1 , header , true ) ) ; \n } \n \n - public void testVerifyVorbisHeaderCapturePatternInvalidPattern ( ) throws ParserException { \n + public void testVerifyVorbisHeaderCapturePatternInvalidPattern ( ) { \n ParsableByteArray header = new ParsableByteArray ( \n new byte [ ] { NUMBER0 , STRING6 , STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ) ; \n try {", "msg_token": "Removed VorbisUtilTests throws declarations to avoid warning"} {"diff": " public abstract class Neurons { \n int [ ] cats = MemoryManager . malloc4 ( _dinfo . _cats ) ; SINGLE \n int i = NUMBER0 , ncats = NUMBER0 ; \n for ( ; i < _dinfo . _cats ; ++ i ) { \n + assert ( _dinfo . _catMissing [ i ] != NUMBER0 ) ; SINGLE \n SINGLE \n if ( Double . isNaN ( data [ i ] ) ) { \n if ( _dinfo . _catMissing [ i ] != NUMBER0 ) cats [ ncats ++ ] = ( _dinfo . _catOffsets [ i + NUMBER1 ] - NUMBER1 ) ; SINGLE", "msg_token": "Add assertion that we have categorical level for NAs even though there might not be any during training"} {"diff": " public class TestEventBus { \n private Bus eventBus ; \n \n \n - @ beforeclass \n + @ beforeclass ( groups = STRING0 ) \n public void setup ( ) { \n eventBus = new InMemoryBus ( ) ; \n eventBus . start ( ) ; \n } \n \n - @ afterclass \n + @ afterclass ( groups = STRING0 ) \n public void tearDown ( ) { \n eventBus . stop ( ) ; \n }", "msg_token": "add missing group in TestEventBus annotations"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class BuildCompat { \n COMMENT \n COMMENT \n public static boolean isAtLeastN ( ) { \n - return STRING0 . equals ( VERSION . CODENAME ) ; \n + if ( TextUtils . isEmpty ( VERSION . CODENAME ) ) { \n + return false ; \n + } \n + final char prefix = VERSION . CODENAME . charAt ( NUMBER0 ) ; \n + return prefix >= STRING1 && prefix <= STRING2 ; \n } \n }", "msg_token": "Make BuildCompat isAtLeastN more forward compatible"} {"diff": " public class OtrEngineHostImpl implements OtrEngineHost { \n public void showError ( SessionID sessionID , String error ) { \n OtrDebugLogger . log ( sessionID . toString ( ) + STRING0 + error ) ; \n \n - Toast . makeText ( mContext . getApplicationContext ( ) , STRING1 + error , Toast . LENGTH_LONG ) . show ( ) ; \n + if ( mImService != null ) \n + mImService . showToast ( STRING2 + error , Toast . LENGTH_SHORT ) ; \n + \n \n } \n \n public void showWarning ( SessionID sessionID , String warning ) { \n OtrDebugLogger . log ( sessionID . toString ( ) + STRING3 + warning ) ; \n \n - Toast . makeText ( mContext . getApplicationContext ( ) , STRING4 + warning , Toast . LENGTH_LONG ) . show ( ) ; \n + if ( mImService != null ) \n + mImService . showToast ( STRING5 + warning , Toast . LENGTH_SHORT ) ; \n + \n }", "msg_token": "properly show OTR errors and warnings"} {"diff": " public abstract class AndroidRunningState implements RunProfileState , AndroidDeb \n \n private boolean myDeploy = true ; \n \n + private volatile boolean myApplicationDeployed = false ; \n + \n public void setDebugMode ( boolean debugMode ) { \n myDebugMode = debugMode ; \n } \n public abstract class AndroidRunningState implements RunProfileState , AndroidDeb \n if ( myDebugLauncher == null ) { \n return ; \n } \n + if ( myDeploy && ! myApplicationDeployed ) { \n + return ; \n + } \n IDevice device = client . getDevice ( ) ; \n if ( isMyDevice ( device ) && device . isOnline ( ) ) { \n if ( myTargetDeviceSerialNumbers . length == NUMBER0 ) { \n public abstract class AndroidRunningState implements RunProfileState , AndroidDeb \n if ( myDeploy ) { \n if ( ! uploadAndInstall ( device , myPackageName , myFacet ) ) return false ; \n if ( ! uploadAndInstallDependentModules ( device ) ) return false ; \n + myApplicationDeployed = true ; \n } \n if ( ! myApplicationLauncher . launch ( this , device ) ) return false ; \n synchronized ( myDebugLock ) {", "msg_token": "do not attach debugger if application is not yet deployed"} {"diff": " public class Socket extends Emitter { \n \n int type = HasBinary . hasBinary ( jsonArgs ) \n ? Parser . BINARY_ACK : Parser . ACK ; \n - Packet < JSONArray > packet = new Packet < JSONArray > ( type , new JSONArray ( Arrays . asList ( args ) ) ) ; \n + Packet < JSONArray > packet = new Packet < JSONArray > ( type , jsonArgs ) ; \n packet . id = id ; \n self . packet ( packet ) ; \n }", "msg_token": "don t create json array twice"} {"diff": " import static NAMESPACE ; \n public class ComponentModelBasePlugin implements Plugin < ProjectInternal > { \n private final ModelRegistry modelRegistry ; \n private final ModelSchemaStore schemaStore ; \n - private final NodeInitializerRegistry nodeInitializerRegistry ; \n \n @ inject \n - public ComponentModelBasePlugin ( ModelRegistry modelRegistry , ModelSchemaStore schemaStore , NodeInitializerRegistry nodeInitializerRegistry ) { \n + public ComponentModelBasePlugin ( ModelRegistry modelRegistry , ModelSchemaStore schemaStore ) { \n this . modelRegistry = modelRegistry ; \n this . schemaStore = schemaStore ; \n - this . nodeInitializerRegistry = nodeInitializerRegistry ; \n } \n \n public void apply ( final ProjectInternal project ) {", "msg_token": "Fixed tests again"} {"diff": " public class WaypointHelper { \n return uiCtx . getResources ( ) . getDrawable ( \n ! ( ( TargetPoint ) point ) . intermediate ? R . drawable . list_destination : \n R . drawable . list_intermediate ) ; \n - } else { \n + } else if ( type == FAVORITES || type == WAYPOINTS ) { \n return FavoriteImageDrawable . getOrCreate ( uiCtx , point . getColor ( ) ) ; \n + } else if ( type == ALARMS ) { \n + return null ; \n + } else { \n + return null ; \n } \n }", "msg_token": "remove ALARMS list icon for now"} {"diff": " public class PersistentUtil { \n @ notnull \n private static File getStorageFile ( @ notnull String logId , @ notnull String logKind , int version ) { \n File subdir = new File ( LOG_CACHE , logKind ) ; \n - final File mapFile = new File ( subdir , PathUtilRt . suggestFileName ( logId , true , true ) + STRING0 + version ) ; \n + String safeLogId = PathUtilRt . suggestFileName ( logId , true , true ) ; \n + final File mapFile = new File ( subdir , safeLogId + STRING0 + version ) ; \n if ( ! mapFile . exists ( ) ) { \n - IOUtil . deleteAllFilesStartingWith ( new File ( subdir , logId ) ) ; \n + IOUtil . deleteAllFilesStartingWith ( new File ( subdir , safeLogId ) ) ; \n } \n return mapFile ; \n }", "msg_token": "vcs log correctly delete old storage files"} {"diff": " public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n @ override \n public void init ( ) { \n loadComponents ( ) ; \n + \n + for ( ApplicationLoadListener listener : ApplicationLoadListener . EP_NAME . getExtensions ( ) ) { \n + try { \n + listener . beforeApplicationLoaded ( this ) ; \n + } \n + catch ( Exception e ) { \n + LOG . error ( e ) ; \n + } \n + } \n + \n super . init ( ) ; \n }", "msg_token": "bring back beforeApplicationLoaded"} {"diff": " public abstract class AbstractDirectoriesDecorator implements Decorator { \n COMMENT \n COMMENT \n COMMENT \n - public AbstractDirectoriesDecorator ( Language language ) { SINGLE \n + public AbstractDirectoriesDecorator ( Language language ) { \n } \n \n COMMENT \n import NAMESPACE ; \n public class DefaultRule implements Rule { \n \n private final RuleKey key ; \n - private Integer id ; \n + private final Integer id ; \n private final String name , severity , description , metadata ; \n private final RuleStatus status ; \n private final Map < String , RuleParam > params ; \n public enum RuleStatus { \n public static RuleStatus defaultStatus ( ) { \n return READY ; \n } \n - } \n + } \n import NAMESPACE ; \n COMMENT \n @ entity \n @ table ( name = STRING0 ) \n - @ deprecated \n public class ActiveRule implements Cloneable { \n \n public static final String INHERITED = STRING1 ;", "msg_token": "Fix some quality flaws"} {"diff": " public class TextIconGenerator { \n \n private static int getBackground ( int style ) { \n switch ( style ) { \n + default : \n case STYLE_DEFAULT : \n case STYLE_WHITE : \n return R . drawable . bubble_white ; \n public class TextIconGenerator { \n case STYLE_ORANGE : \n return R . drawable . bubble_orange ; \n } \n - return getBackground ( STYLE_DEFAULT ) ; \n } \n \n private static int getTextStyle ( int style ) { \n switch ( style ) { \n + default : \n case STYLE_DEFAULT : \n case STYLE_WHITE : \n return R . drawable . bubble_white ; \n public class TextIconGenerator { \n case STYLE_ORANGE : \n return R . style . Bubble_TextAppearance_Light ; \n } \n - return getTextStyle ( STYLE_DEFAULT ) ; \n } \n }", "msg_token": "Avoid the dangerous recursive call"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HeapKeyedStateBackend < K > extends AbstractKeyedStateBackend < K > { \n return STRING0 ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ internal \n - @ deprecated \n - public Map < String , StateTable < K , ? , ? > > getStateTables ( ) { \n - return stateTables ; \n - } \n - \n @ deprecated \n private void restoreOldSavepointKeyedState ( \n Collection < KeyGroupsStateHandle > stateHandles ) throws IOException , ClassNotFoundException { \n public class HeapKeyedStateBackend < K > extends AbstractKeyedStateBackend < K > { \n stateTable . getState ( ) . set ( NUMBER0 , rawResultMap ) ; \n \n SINGLE \n - getStateTables ( ) . put ( registeredBackendStateMetaInfo . getName ( ) , stateTable ) ; \n + stateTables . put ( registeredBackendStateMetaInfo . getName ( ) , stateTable ) ; \n } \n }", "msg_token": "hotfix Remove deprecated method in HeapKeyedStateBackend"} {"diff": " public class SupportForFrameworksStep extends ModuleWizardStep { \n } \n \n @ override \n + public JComponent getPreferredFocusedComponent ( ) { \n + return mySupportForFrameworksPanel . getFrameworksTree ( ) ; \n + } \n + \n + @ override \n public void updateStep ( ) { \n ProjectBuilder builder = myContext . getProjectBuilder ( ) ; \n if ( builder instanceof ModuleBuilder ) {", "msg_token": "preferred focused component"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class FakeSettings { \n @ implements ( Settings . Secure . class ) \n public static class FakeSecure extends SettingsImpl { \n } \n + \n + public static void setAirplaneMode ( boolean isAirplaneMode ) { \n + Settings . System . putInt ( FakeHelper . application . getContentResolver ( ) , Settings . System . AIRPLANE_MODE_ON , isAirplaneMode ? NUMBER0 : NUMBER1 ) ; \n + setWifiOn ( ! isAirplaneMode ) ; \n + } \n + \n + public static void setWifiOn ( boolean isOn ) { \n + Settings . Secure . putInt ( FakeHelper . application . getContentResolver ( ) , Settings . Secure . WIFI_ON , isOn ? NUMBER0 : NUMBER1 ) ; \n + } \n }", "msg_token": "Add convenience methods for setting airplane wifi mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ParametersFolder { \n \n if ( mostRanked != null ) { \n myExpressions . put ( data . variable , mostRanked ) ; \n - data . type = mostRanked . getType ( ) ; \n + data . type = RefactoringChangeUtil . getTypeByExpression ( mostRanked ) ; \n final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager . getInstance ( mostRanked . getProject ( ) ) ; \n final SuggestedNameInfo nameInfo = codeStyleManager . suggestVariableName ( VariableKind . PARAMETER , null , mostRanked , data . type ) ; \n if ( nameInfo . names . length > NUMBER0 ) {", "msg_token": "ensure folded parameters have denotable types"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractTreeNode < T > extends PresentableNodeDescriptor < Abst \n return myParentDescriptor ; \n } \n \n - public T getValue ( ) { \n + public final T getValue ( ) { \n if ( myValue == null ) { \n return null ; \n }", "msg_token": "revert changes in api"} {"diff": " public class RexsterTokens { \n public static final String NAME = STRING0 ; \n public static final String _LABEL_EQUALS = STRING1 ; \n \n - \n - public static final String TOTAL_SIZE = STRING2 ; \n public static final String REXSTER_OFFSET_END = STRING3 ; \n public static final String REXSTER_OFFSET_START = STRING4 ; \n - public static final String REXSTER_SHOW_TYPES_EQUALS_TRUE = STRING5 ; \n + public static final String REXSTER_SHOW_TYPES_EQUALS_TRUE = STRING6 ; \n \n public static final String FLOAT = STRING7 ; \n public static final String INTEGER = STRING8 ;", "msg_token": "changed tokens to work with latest changes in rexster"} {"diff": " public class WriteStringTemplateRule extends AbstractBuildRule { \n public ImmutableList < Step > getBuildSteps ( \n BuildContext context , \n BuildableContext buildableContext ) { \n + buildableContext . recordArtifact ( output ) ; \n return ImmutableList . of ( \n new MkdirStep ( getProjectFilesystem ( ) , output . getParent ( ) ) , \n new StringTemplateStep (", "msg_token": "cache generated file"} {"diff": " public class AtmosphereFramework { \n \n String inputLine ; \n String newVersion = Version . getRawVersion ( ) ; \n - String clientVersion = STRING0 ; \n + String clientVersion = null ; \n String nextMajorRelease = null ; \n boolean nextAvailable = false ; \n if ( newVersion . indexOf ( STRING1 ) == - NUMBER0 ) { \n public class AtmosphereFramework { \n } \n } \n } finally { \n - logger . info ( STRING2 , clientVersion ) ; \n + if ( clientVersion != null ) { \n + logger . info ( STRING2 , clientVersion ) ; \n + } \n if ( newVersion . compareTo ( Version . getRawVersion ( ) ) > NUMBER1 ) { \n if ( nextAvailable ) { \n logger . info ( STRING3 , newVersion , nextMajorRelease ) ;", "msg_token": "make the client version info logged only when online"} {"diff": " public class DSLVFragment extends ListFragment { \n new DragSortListView . DropListener ( ) { \n @ override \n public void drop ( int from , int to ) { \n - String item = adapter . getItem ( from ) ; \n - adapter . remove ( item ) ; \n - adapter . insert ( item , to ) ; \n + if ( from != to ) { \n + String item = adapter . getItem ( from ) ; \n + adapter . remove ( item ) ; \n + adapter . insert ( item , to ) ; \n + } \n } \n } ; \n \n public class DragSortListView extends ListView { \n \n removeFloatView ( ) ; \n \n + adjustAllItems ( ) ; \n + \n if ( mTrackDragSort ) { \n mDragSortTracker . stopTracking ( ) ; \n }", "msg_token": "start position drop fails"} {"diff": " public class GUtil { \n } \n } \n \n - public static List flatten ( Collection elements , boolean flattenMaps ) { \n - return flatten ( elements , new ArrayList ( ) , flattenMaps ) ; \n + public static List flatten ( Collection elements , boolean flattenMapsAndArrays ) { \n + return flatten ( elements , new ArrayList ( ) , flattenMapsAndArrays ) ; \n } \n \n public static List flatten ( Collection elements ) {", "msg_token": "Fixed param name to be more descriptive"} {"diff": " public class VagrantExecutor { \n try \n { \n return cmd . run ( sh , vagrantPath ) ; \n - } catch ( RuntimeException e ) \n + } catch ( VagrantCommandException e ) \n { \n exception = e ; \n } \n } \n \n - throw exception ; \n + throw new RuntimeException ( STRING0 + retries + STRING1 , exception ) ; \n \n } else \n {", "msg_token": "Made vagrant command executor more explicit about failed retries"} {"diff": " public class Mockito extends Matchers { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed reference to deprecated stubVoid method"} {"diff": " public class DefaultDiskStorage implements DiskStorage { \n } \n \n public static FileType fromExtension ( String extension ) { \n - for ( FileType ft : FileType . values ( ) ) { \n - if ( ft . extension . equals ( extension ) ) { \n - return ft ; \n - } \n + if ( CONTENT_FILE_EXTENSION . equals ( extension ) ) { \n + return CONTENT ; \n + } else if ( TEMP_FILE_EXTENSION . equals ( extension ) ) { \n + return TEMP ; \n } \n return null ; \n }", "msg_token": "Replaced the calls to enum values in DefaultDiskStorage with normal if else"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public enum ServerQueryPhase implements AbstractMetrics . QueryPhase { \n + REQUEST_DESERIALIZATION , \n TOTAL_QUERY_TIME , \n SEGMENT_PRUNING , \n BUILD_QUERY_PLAN , \n public class SimpleRequestHandler implements RequestHandler { \n final InstanceRequest queryRequest = new InstanceRequest ( ) ; \n serDe . deserialize ( queryRequest , byteArray ) ; \n long deserRequestTime = System . nanoTime ( ) ; \n - _serverMetrics . addPhaseTiming ( brokerRequest , ServerQueryPhase . TOTAL_QUERY_TIME , deserRequestTime - queryStartTime ) ; \n + _serverMetrics . addPhaseTiming ( brokerRequest , ServerQueryPhase . REQUEST_DESERIALIZATION , deserRequestTime - queryStartTime ) ; \n LOGGER . info ( STRING0 , queryRequest . getRequestId ( ) , queryRequest . getSearchSegmentsSize ( ) ) ; \n LOGGER . debug ( STRING1 , queryRequest ) ; \n brokerRequest = queryRequest . getQuery ( ) ;", "msg_token": "Add deserialization metric fix bug where total query time would be computed twice on the server metrics"} {"diff": " public class RxNettyServerHttpResponse extends AbstractServerHttpResponse { \n protected Mono < Void > writeAndFlushWithInternal ( \n Publisher < Publisher < DataBuffer > > body ) { \n Flux < ByteBuf > bodyWithFlushSignals = Flux . from ( body ) . \n - flatMap ( publisher - > { \n - return Flux . from ( publisher ) . \n - map ( NettyDataBufferFactory : : toByteBuf ) . \n - concatWith ( Mono . just ( FLUSH_SIGNAL ) ) ; \n - } ) ; \n + flatMap ( publisher - > Flux . from ( publisher ) . \n + map ( NettyDataBufferFactory : : toByteBuf ) . \n + concatWith ( Mono . just ( FLUSH_SIGNAL ) ) ) ; \n Observable < ByteBuf > content = RxJava1Adapter . publisherToObservable ( bodyWithFlushSignals ) ; \n ResponseContentWriter < ByteBuf > writer = this . response . write ( content , bb - > bb == FLUSH_SIGNAL ) ; \n return RxJava1Adapter . observableToFlux ( writer ) . then ( ) ;", "msg_token": "Use abbreviated expression lambda instead of statement lambda"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n public final class JsonExtract \n { \n - private static final Pattern PATH_TOKEN = Pattern . compile ( STRING0 ) ; \n private static final int ESTIMATED_JSON_OUTPUT_SIZE = NUMBER0 ; \n \n private static final JsonFactory JSON_FACTORY = new JsonFactory ( ) \n public final class JsonExtract \n length ++ ; \n } \n } \n - else if ( jsonParser . getCurrentToken ( ) == START_OBJECT ) { \n + \n + if ( jsonParser . getCurrentToken ( ) == START_OBJECT ) { \n long length = NUMBER1 ; \n while ( true ) { \n JsonToken token = jsonParser . nextToken ( ) ; \n public final class JsonExtract \n } \n } \n } \n - else { \n - return NUMBER1 L ; \n - } \n + \n + return NUMBER1 L ; \n } \n }", "msg_token": "Fix warnings in JsonExtract"} {"diff": " public class TreeContactList \n \n SINGLE \n SINGLE \n - if ( StringUtils . isNumber ( contactString ) \n - && atIndex >= NUMBER0 ) \n + if ( atIndex >= NUMBER0 \n + && StringUtils . isNumber ( contactString . substring ( NUMBER0 , atIndex ) ) ) \n { \n contactString = contactString . substring ( NUMBER0 , atIndex ) ; \n }", "msg_token": "Remove the sign from number contacts when searching for a corresponding image Fixed"} {"diff": " public class StringLogger \n try \n { \n File file = new File ( filename ) ; \n - file . getParentFile ( ) . mkdirs ( ) ; \n + if ( file . getParentFile ( ) != null ) \n + { \n + file . getParentFile ( ) . mkdirs ( ) ; \n + } \n out = new PrintWriter ( new FileWriter ( file , true ) ) ; \n } \n catch ( IOException e )", "msg_token": "Added a check for if you just supply a filename without directory"} {"diff": " class WelcomeContextService implements Service < Context > { \n context . addServletMapping ( STRING0 , STRING1 ) ; \n context . addMimeMapping ( STRING2 , STRING3 ) ; \n context . addMimeMapping ( STRING4 , STRING5 ) ; \n + context . addMimeMapping ( STRING6 , STRING7 ) ; \n + context . addMimeMapping ( STRING8 , STRING9 ) ; \n + context . addMimeMapping ( STRING10 , STRING11 ) ; \n + context . addMimeMapping ( STRING12 , STRING13 ) ; \n \n SINGLE \n WelcomeContextConsoleServlet wccs = new WelcomeContextConsoleServlet ( httpManagement ) ;", "msg_token": "Add mime types for wellcome content handling"} {"diff": " public class AccessibilityManagerCompat { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isTouchExplorationEnabled ( AccessibilityManager manager ) { \n + return IMPL . isTouchExplorationEnabled ( manager ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public static abstract class AccessibilityStateChangeListenerCompat {", "msg_token": "AccessibilityManagerCompat missing isTouchExplorationEnabled"} {"diff": " public class CreateSequenceGenerator extends AbstractSqlGenerator < CreateSequence \n validationErrors . checkDisallowedField ( STRING0 , statement . getMinValue ( ) , database , FirebirdDatabase . class , H2Database . class , HsqlDatabase . class ) ; \n validationErrors . checkDisallowedField ( STRING1 , statement . getMaxValue ( ) , database , FirebirdDatabase . class , H2Database . class , HsqlDatabase . class ) ; \n \n - validationErrors . checkDisallowedField ( STRING2 , statement . getOrdered ( ) , database , DB2Database . class , HsqlDatabase . class ) ; \n + validationErrors . checkDisallowedField ( STRING2 , statement . getOrdered ( ) , database , DB2Database . class , HsqlDatabase . class , PostgresDatabase . class ) ; \n \n \n return validationErrors ;", "msg_token": "Postgresql does not support ordered"} {"diff": " public class TaskListActivity extends AstridActivity implements MainMenuListener \n tlfPager . showFilter ( ( Filter ) item ) ; \n return true ; \n } \n + \n + getIntent ( ) . removeExtra ( OPEN_TASK ) ; \n TaskEditFragment tef = getTaskEditFragment ( ) ; \n if ( tef != null ) \n onBackPressed ( ) ;", "msg_token": "Remove open task extra when switching filters on tablet fixes bugs with dismissing task edit"} {"diff": " public class DevicePolicyManager { \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public boolean setActiveProfileOwner ( ComponentName admin , String ownerName ) \n throws IllegalArgumentException { \n if ( mService != null ) {", "msg_token": "Expose setActiveProfileOwner using SystemApi"} {"diff": " public class SslHandler \n InternalLoggerFactory . getInstance ( SslHandler . class ) ; \n \n private static final Pattern IGNORABLE_CLASS_IN_STACK = Pattern . compile ( \n - STRING0 ) ; \n + STRING1 ) ; \n private static final Pattern IGNORABLE_ERROR_MESSAGE = Pattern . compile ( \n - STRING2 , Pattern . CASE_INSENSITIVE ) ; \n + STRING3 , Pattern . CASE_INSENSITIVE ) ; \n \n private static final SSLException SSLENGINE_CLOSED = new SSLException ( STRING4 ) ; \n private static final SSLException HANDSHAKE_TIMED_OUT = new SSLException ( STRING5 ) ;", "msg_token": "Add more safe to ignore exception messages for SslHandler"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n public interface Creature extends LivingEntity { \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setTarget ( LivingEntity target ) ; \n }", "msg_token": "Adding Creature setTarget per jlogsdon"} {"diff": " public class FavouritesActivity extends OsmandExpandableListActivity { \n List < String > groups = new ArrayList < String > ( ) ; \n \n public void setFavoriteGroups ( Map < String , List < FavouritePoint > > favoriteGroups ) { \n - this . sourceFavoriteGroups = new TreeMap < String , List < FavouritePoint > > ( favoriteGroups ) ; \n + this . sourceFavoriteGroups = favoriteGroups ; \n synchronizeGroups ( ) ; \n }", "msg_token": "Fix delete favorite group"} {"diff": " class XMLLightweightParser { \n \n SINGLE \n char lastChar = buf [ readByte - NUMBER0 ] ; \n - if ( Character . isISOControl ( lastChar ) || lastChar >= NUMBER1 ) { \n - Log . debug ( STRING0 + String . valueOf ( buf ) ) ; \n + SINGLE \n + if ( lastChar >= NUMBER1 ) { \n + if ( Log . isDebugEnabled ( ) ) { \n + Log . debug ( STRING0 + String . valueOf ( buf ) ) ; \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fixed double byte char fix to accept t heart beats"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UpdateCopyrightAction extends BaseAnalysisAction { \n @ override \n public void run ( ) { \n CommandProcessor . getInstance ( ) . markCurrentCommandAsGlobal ( project ) ; \n - ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - ProgressManager . getInstance ( ) . run ( progressTask ) ; \n - } \n - } ) ; \n + ProgressManager . getInstance ( ) . run ( progressTask ) ; \n } \n } , getTemplatePresentation ( ) . getText ( ) , null ) ; \n }", "msg_token": "restore a modal dialog during a commit phase"} {"diff": " public class ResettableCounter extends StepCounter { \n public ResettableCounter ( MonitorConfig config ) { \n super ( config ) ; \n } \n + \n + public ResettableCounter ( MonitorConfig config , long l ) { \n + super ( config ) ; \n + } \n }", "msg_token": "re add deprecated constructor to ResettableCounter"} {"diff": " public interface PartitionAssignor { \n return userData ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING0 + \n + STRING1 + topics + \n + STRING2 ; \n + } \n } \n \n class Assignment { \n public interface PartitionAssignor { \n return userData ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING3 + \n + STRING4 + partitions + \n + STRING2 ; \n + } \n } \n \n }", "msg_token": "Add toString implementations to Subscription and Assignment"} {"diff": " \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 \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Checkstyle issues"} {"diff": " public class InferenceSession { \n collectAdditionalConstraints ( parameters , args , properties . getMethod ( ) , mySiteSubstitutor , additionalConstraints , properties . isVarargs ( ) ) ; \n } \n \n - if ( ! additionalConstraints . isEmpty ( ) && ! proceedWithAdditionalConstraints ( additionalConstraints , initialSubstitutor == null ? PsiSubstitutor . EMPTY : initialSubstitutor ) ) { \n + if ( ! additionalConstraints . isEmpty ( ) && ! proceedWithAdditionalConstraints ( additionalConstraints ) ) { \n return prepareSubstitution ( ) . putAll ( retrieveNonPrimitiveEqualsBounds ( myInferenceVariables ) ) ; \n } \n } \n public class InferenceSession { \n } \n } \n \n - private boolean proceedWithAdditionalConstraints ( Set < ConstraintFormula > additionalConstraints , PsiSubstitutor initialSubstitutor ) { \n + private boolean proceedWithAdditionalConstraints ( Set < ConstraintFormula > additionalConstraints ) { \n SINGLE \n SINGLE \n SINGLE \n SINGLE \n SINGLE \n - final PsiSubstitutor siteSubstitutor = initialSubstitutor ; \n + final PsiSubstitutor siteSubstitutor = PsiSubstitutor . EMPTY ; \n \n while ( ! additionalConstraints . isEmpty ( ) ) { \n SINGLE", "msg_token": "revert second substitution for incomplete inference sessions"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CacheTests extends RefineTest { \n } \n \n SINGLE \n - StringWriter writer ; \n Project project ; \n Properties options ; \n JSONObject engine_config ; \n public class CacheTests extends RefineTest { \n \n @ beforemethod \n public void SetUp ( ) throws JSONException , IOException , ModelException { \n - writer = new StringWriter ( ) ; \n - \n Path dir = Files . createTempDirectory ( STRING0 ) ; \n FileProjectManager . initialize ( dir . toFile ( ) ) ; \n project = new Project ( ) ; \n public class CacheTests extends RefineTest { \n \n @ aftermethod \n public void TearDown ( ) { \n - writer = null ; \n project = null ; \n options = null ; \n + engine = null ; \n + bindings = null ; \n } \n \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class OChannelTextServer extends OChannelText { \n public OChannelTextServer ( final Socket iSocket , final OContextConfiguration iConfiguration ) throws IOException { \n super ( iSocket , iConfiguration ) ; \n \n + socket . setPerformancePreferences ( NUMBER0 , NUMBER1 , NUMBER2 ) ; \n + socket . setSendBufferSize ( socketBufferSize ) ; \n + socket . setReceiveBufferSize ( socketBufferSize ) ; \n + \n inStream = new BufferedInputStream ( socket . getInputStream ( ) , socketBufferSize ) ; \n outStream = new BufferedOutputStream ( socket . getOutputStream ( ) , socketBufferSize ) ; \n } \n public class OServerCommandGetStaticContent extends OServerCommandAbstract { \n contentSize = inputFile . length ( ) ; \n \n if ( cache != null ) { \n - SINGLE \n + SINGLE \n final byte [ ] buffer = new byte [ ( int ) contentSize ] ; \n for ( int i = NUMBER2 ; i < contentSize ; ++ i ) \n buffer [ i ] = ( byte ) is . read ( ) ;", "msg_token": "Changed settings of HTTP socket parameters"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class ScriptDataPortletFilter implements RenderFilter , ResourceFilter { \n \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PositionTagSupport extends BaseBodyTagSupport implements BodyTag { \n } \n \n if ( Validator . isNull ( position ) ) { \n - position = _POSITION_AUTO ; \n + ThemeDisplay themeDisplay = ( ThemeDisplay ) request . getAttribute ( \n + WebKeys . THEME_DISPLAY ) ; \n + \n + if ( themeDisplay . isIsolated ( ) ) { \n + position = _POSITION_INLINE ; \n + } \n + else { \n + position = _POSITION_AUTO ; \n + } \n } \n \n return position ;", "msg_token": "Isolated requests should always force inline scripts"} {"diff": " import NAMESPACE ; \n SINGLE \n releasePeriodsFrom ( playingPeriod ) ; \n playingPeriod = null ; \n + readingPeriod = null ; \n + loadingPeriod = null ; \n \n MediaSource . Position defaultStartPosition = \n mediaSource . getDefaultStartPosition ( newPlayingPeriodIndex ) ; \n import NAMESPACE ; \n index = playingPeriod . index ; \n releasePeriodsFrom ( playingPeriod ) ; \n playingPeriod = null ; \n + readingPeriod = null ; \n + loadingPeriod = null ; \n seekToPeriodPosition ( index , NUMBER0 ) ; \n return ; \n } \n public final class ExtractorMediaSource implements MediaSource , MediaSource . List \n @ override \n public void prepareSource ( MediaSource . Listener listener ) { \n sourceListener = listener ; \n - timeline = new SinglePeriodTimeline ( this , C . UNSET_TIME_US , false ) ; \n + timeline = new SinglePeriodTimeline ( NUMBER0 , C . UNSET_TIME_US , false ) ; \n listener . onSourceInfoRefreshed ( timeline , null ) ; \n }", "msg_token": "Use consistent identifiers for extractor periods"} {"diff": " class AlarmManagerService extends SystemService { \n for ( int i = NUMBER0 ; i < triggerList . size ( ) ; i ++ ) { \n Alarm alarm = triggerList . get ( i ) ; \n try { \n - if ( localLOGV ) Slog . v ( TAG , STRING0 + alarm ) ; \n + Slog . v ( TAG , STRING0 + alarm ) ; \n alarm . operation . send ( getContext ( ) , NUMBER0 , \n mBackgroundIntent . putExtra ( \n Intent . EXTRA_ALARM_COUNT , alarm . count ) ,", "msg_token": "Temp enable the log to identify the wake up cause"} {"diff": " public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme \n } \n \n public void unregisterVcs ( AbstractVcs vcs ) { \n + if ( myActiveVcss . contains ( vcs ) ) { \n + vcs . deactivate ( ) ; \n + myActiveVcss . remove ( vcs ) ; \n + } \n try { \n vcs . shutdown ( ) ; \n }", "msg_token": "CVS tests fix"} {"diff": " public class ProcessorTestHelper { \n if ( expectedErrorPath . endsWith ( source . toUri ( ) . toString ( ) ) ) { \n \n CharSequence sourceContent = source . getCharContent ( true ) ; \n - \n if ( diagnostic . getPosition ( ) != Diagnostic . NOPOS ) { \n CharSequence contentInError = sourceContent . subSequence ( ( int ) diagnostic . getStartPosition ( ) , ( int ) diagnostic . getEndPosition ( ) ) ; \n - if ( expectedContentInError . equals ( contentInError . toString ( ) ) ) { \n + String contentInErrorString = contentInError . toString ( ) ; \n + int parenIndex = contentInErrorString . indexOf ( STRING0 ) ; \n + if ( parenIndex != - NUMBER0 ) \n + { \n + contentInErrorString = contentInErrorString . substring ( NUMBER1 , parenIndex ) ; \n + } \n + if ( expectedContentInError . equals ( contentInErrorString ) ) { \n return ; \n } \n }", "msg_token": "Fix assertCompilationDiagnostingOn so that it doesn t improperly fail"} {"diff": " public class TableModelSpecFieldPlugin extends BaseFieldPlugin { \n \n @ override \n protected PropertyGenerator getPropertyGenerator ( VariableElement field , DeclaredTypeName fieldType ) { \n - Class < ? extends BasicPropertyGenerator > generatorClass = generatorMap . get ( fieldType ) ; \n + Class < ? extends BasicPropertyGenerator > generatorClass ; \n + if ( isIntegerPrimaryKey ( field , fieldType ) ) { \n + SINGLE \n + generatorClass = getLongPropertyGenerator ( ) ; \n + } else { \n + generatorClass = generatorMap . get ( fieldType ) ; \n + } \n try { \n BasicPropertyGenerator propertyGenerator = generatorClass . getConstructor ( ModelSpec . class , \n VariableElement . class , AptUtils . class ) . newInstance ( modelSpec , field , utils ) ;", "msg_token": "Coerce all integer primary key properties to LongProperty"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DistributionFactory { \n } \n \n public ClassPath getToolingImplementationClasspath ( ProgressLoggerFactory progressLoggerFactory , File userHomeDir , BuildCancellationToken cancellationToken ) { \n - return new EffectiveClassPath ( getClass ( ) . getClassLoader ( ) ) ; \n + ClassPath classpath = new DefaultClassPath ( ) ; \n + DefaultModuleRegistry registry = new DefaultModuleRegistry ( null ) ; \n + for ( Module module : registry . getModule ( STRING0 ) . getAllRequiredModules ( ) ) { \n + classpath = classpath . plus ( module . getClasspath ( ) ) ; \n + } \n + return classpath ; \n } \n } \n }", "msg_token": "Include only the launcher and core classes when loading tooling API provider from test JVM classpath"} {"diff": " public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass \n \n private Collection < HighlightInfo > myHighlights ; \n private boolean myHasRedundantImports ; \n - private final JavaCodeStyleManager myStyleManager ; \n private int myCurrentEntryIndex ; \n private boolean myHasMissortedImports ; \n private static final ImplicitUsageProvider [ ] ourImplicitUsageProviders = Extensions . getExtensions ( ImplicitUsageProvider . EP_NAME ) ; \n public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass \n myStartOffset = NUMBER0 ; \n myEndOffset = file . getTextLength ( ) ; \n \n - myStyleManager = JavaCodeStyleManager . getInstance ( myProject ) ; \n myCurrentEntryIndex = - NUMBER1 ; \n } \n \n public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass \n return registerRedundantImport ( importStatement , unusedImportKey ) ; \n } \n \n - int entryIndex = myStyleManager . findEntryIndex ( importStatement ) ; \n + int entryIndex = JavaCodeStyleManager . getInstance ( myProject ) . findEntryIndex ( importStatement ) ; \n if ( entryIndex < myCurrentEntryIndex ) { \n myHasMissortedImports = true ; \n }", "msg_token": "move service loading away from edt"} {"diff": " import static NAMESPACE ; \n COMMENT \n public class DefaultCamelCatalog implements CamelCatalog { \n \n + SINGLE \n + \n private static final String MODELS_CATALOG = STRING0 ; \n private static final String COMPONENTS_CATALOG = STRING1 ; \n private static final String DATA_FORMATS_CATALOG = STRING2 ; \n public class DefaultCamelCatalog implements CamelCatalog { \n \n return answer ; \n } \n + \n + SINGLE \n + \n }", "msg_token": "Ignore Checkstyle issues"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SpatialDimensionSchema \n private final String dimName ; \n private final List < String > dims ; \n \n - public SpatialDimensionSchema ( String dimName , List < String > dims ) \n + @ jsoncreator \n + public SpatialDimensionSchema ( \n + @ jsonproperty ( STRING0 ) String dimName , \n + @ jsonproperty ( STRING1 ) List < String > dims \n + ) \n { \n this . dimName = dimName . toLowerCase ( ) ; \n this . dims = Lists . transform ( \n public class SpatialDimensionSchema \n ) ; \n } \n \n + @ jsonproperty \n public String getDimName ( ) \n { \n return dimName ; \n } \n \n + @ jsonproperty \n public List < String > getDims ( ) \n { \n return dims ;", "msg_token": "add serde for spatial dim schemas"} {"diff": " class ParametricCallable implements CommandCallable { \n } catch ( UnconsumedParameterException e ) { \n throw new InvalidUsageException ( STRING0 + e . getUnconsumed ( ) , getDescription ( ) ) ; \n } catch ( ParameterException e ) { \n - if ( e . getCause ( ) != null ) { \n - for ( ExceptionConverter converter : builder . getExceptionConverters ( ) ) { \n - converter . convert ( e . getCause ( ) ) ; \n - } \n - } \n - \n assert parameter != null ; \n String name = parameter . getName ( ) ;", "msg_token": "Ignore cause when handling ParameterException in ParametricCallable"} {"diff": " public class LanguageConsoleViewImpl extends ConsoleViewImpl implements Language \n } \n \n public LanguageConsoleViewImpl ( @ notnull LanguageConsoleImpl console , boolean usePredefinedMessageFilter ) { \n - super ( console . getProject ( ) , GlobalSearchScope . allScope ( console . getProject ( ) ) , true , null , usePredefinedMessageFilter ) ; \n + super ( console . getProject ( ) , GlobalSearchScope . allScope ( console . getProject ( ) ) , true , usePredefinedMessageFilter ) ; \n \n myConsole = console ; \n Disposer . register ( this , myConsole ) ;", "msg_token": "replace obsolete myFileType lexer highlighting with ConsoleViewUtil printAsFileType"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class LineReader { \n \n private static final int DEFAULT_BUFFER_SIZE = NUMBER0 * NUMBER1 ; \n - private static final byte [ ] EMPTY_BYTE_ARRAY = new byte [ NUMBER2 ] ; \n \n private final byte [ ] myBuffer ; \n private final InputStream myInputStream ; \n public class LineReader { \n private byte [ ] getLineArray ( ) { \n myPosition ++ ; \n if ( myOutputStream . size ( ) == NUMBER2 ) { \n - return EMPTY_BYTE_ARRAY ; \n + return ArrayUtil . EMPTY_BYTE_ARRAY ; \n } \n final byte [ ] bytes = myOutputStream . toByteArray ( ) ; \n myOutputStream . reset ( ) ;", "msg_token": "use ArrayUtil EMPTY_BYTE_ARRAY instead of own"} {"diff": " public class Deodexerant { \n loadvtable ( ) ; \n } \n \n + if ( index >= resolvedMethods . length ) { \n + throw new RuntimeException ( STRING0 + index + STRING1 ) ; \n + } \n if ( resolvedMethods [ index ] == null ) { \n resolvedMethods [ index ] = parseAndResolveMethod ( ClassType , MethodNames [ index ] , MethodParams [ index ] , \n MethodRets [ index ] ) ;", "msg_token": "Add a check on the vtable index when doing a virtual method lookup"} {"diff": " public class Tomcat { \n if ( engine == null ) { \n getServer ( ) ; \n engine = new StandardEngine ( ) ; \n - engine . setName ( STRING0 ) ; \n + engine . setName ( STRING1 ) ; \n engine . setDefaultHost ( hostname ) ; \n service . setContainer ( engine ) ; \n }", "msg_token": "JMX expects service name and engine name to be the same"} {"diff": " public abstract class Actor < Message , V > extends LightweightThread < V > { \n public Actor start ( ) { \n return ( Actor ) super . start ( ) ; \n } \n + \n + public Actor currentActor ( ) { \n + return ( Actor ) currentLightweightThread ( ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Added Actor currentActor"} {"diff": " public interface Trigger < T , W extends Window > extends Serializable { \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 enum TriggerResult { \n CONTINUE ( false , false ) , FIRE_AND_PURGE ( true , true ) , FIRE ( true , false ) , PURGE ( false , true ) ;", "msg_token": "hotfix Fix typos in Trigger java"} {"diff": " public interface PConstants { \n \n static final int HINT_COUNT = NUMBER0 ; \n \n - SINGLE \n - \n - static final int FIXED = NUMBER1 ; \n - static final int PROG_GL2 = NUMBER2 ; \n - static final int PROG_GL3 = NUMBER3 ; \n - static final int PROG_GL4 = NUMBER4 ; \n \n SINGLE", "msg_token": "Updated core constants"} {"diff": " final class WebViewInputDispatcher { \n \n DispatchEvent d = obtainDispatchEventLocked ( eventToEnqueue , eventType , NUMBER0 , \n webKitXOffset , webKitYOffset , webKitScale ) ; \n + updateStateTrackersLocked ( d , event ) ; \n enqueueEventLocked ( d ) ; \n } \n return true ; \n final class WebViewInputDispatcher { \n \n flags = d . mFlags ; \n \n - updateStateTrackersLocked ( d , event ) ; \n if ( event == d . mEvent ) { \n d . mEvent = null ; SINGLE \n }", "msg_token": "Prevent updateStateTrackers from being affected by preventDefault"} {"diff": " public class CompletionProgressIndicator extends ProgressIndicatorBase implement \n } \n \n public void closeAndFinish ( boolean hideLookup ) { \n - Lookup lookup = LookupManager . getActiveLookup ( myEditor ) ; \n - LOG . assertTrue ( lookup == myLookup , lookup + STRING0 + this ) ; \n + if ( ! myLookup . isLookupDisposed ( ) ) { \n + Lookup lookup = LookupManager . getActiveLookup ( myEditor ) ; \n + LOG . assertTrue ( lookup == myLookup , lookup + STRING0 + this ) ; \n + } \n myLookup . removeLookupListener ( myLookupListener ) ; \n finishCompletionProcess ( true ) ; \n CompletionServiceImpl . assertPhase ( CompletionPhase . NoCompletion . getClass ( ) ) ;", "msg_token": "don t retrieve a disposed lookup"} {"diff": " public class CatalogManager \n Map < String , String > properties = new HashMap < > ( loadProperties ( file ) ) ; \n \n String connectorName = properties . remove ( STRING0 ) ; \n - checkState ( connectorName != null , STRING1 , file . getAbsoluteFile ( ) ) ; \n + checkState ( connectorName != null , STRING2 , file . getAbsoluteFile ( ) ) ; \n \n String catalogName = Files . getNameWithoutExtension ( file . getName ( ) ) ;", "msg_token": "Fix typo in error message about connector name"} {"diff": " public class EndpointState \n { \n isAlive = false ; \n } \n + \n + public String toString ( ) \n + { \n + return STRING0 + hbState + STRING1 + applicationState ; \n + } \n } \n \n class EndpointStateSerializer implements IVersionedSerializer < EndpointState > \n class HeartBeatState \n { \n generation += NUMBER0 ; \n } \n + \n + public String toString ( ) \n + { \n + return String . format ( STRING2 , generation , version ) ; \n + } \n } \n \n class HeartBeatStateSerializer implements IVersionedSerializer < HeartBeatState >", "msg_token": "ninja add toString on gossip related classes"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PatternRuleTest extends TestCase { \n final String grammarFile = getGrammarFileName ( lang ) ; \n System . out . println ( STRING0 + grammarFile + STRING1 ) ; \n final String rulesDir = JLanguageTool . getDataBroker ( ) . getRulesDir ( ) ; \n - validator . validate ( rulesDir + STRING2 + grammarFile , rulesDir + STRING3 ) ; \n + final String ruleFilePath = rulesDir + STRING2 + grammarFile ; \n + final InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( ruleFilePath ) ; \n + if ( xmlStream != null ) { \n + validator . validate ( ruleFilePath , rulesDir + STRING3 ) ; \n + } else { \n + System . out . println ( STRING4 + ruleFilePath ) ; \n + } \n } \n \n private void disableSpellingRules ( JLanguageTool languageTool ) {", "msg_token": "don t crash the test if a rule file doesn t exist e g de CH grammar"} {"diff": " public class ServerInterface { \n for ( byte i = NUMBER0 ; i <= NUMBER1 ; i ++ ) { \n Item item = chest . getItemFromSlot ( i ) ; \n if ( item != null ) { \n - items . put ( i , new Countable ( new BaseItem ( ( short ) item . getItemId ( ) ) , item . getAmount ( ) ) ) ; \n + items . put ( i , new Countable < BaseItem > ( new BaseItem ( ( short ) item . getItemId ( ) ) , \n + item . getAmount ( ) ) ) ; \n } \n }", "msg_token": "Fixed unsafe operation in ServerInterface"} {"diff": " public final class Files { \n public static String toString ( File file , Charset charset ) throws IOException { \n checkNotNull ( file ) ; \n checkNotNull ( charset ) ; \n - return new String ( toByteArray ( file ) , charset . name ( ) ) ; \n + return new String ( toByteArray ( file ) , charset ) ; \n } \n \n COMMENT", "msg_token": "use the new String byte Charset constructor directly"} {"diff": " public class FindImplementation extends ReadTorodbCommandImpl < FindArgument , Find \n } \n } \n \n - List < BsonDocument > batch = cursor . getNextBatch ( NUMBER0 ) ; \n + if ( Long . valueOf ( arg . getBatchSize ( ) ) > ( long ) Integer . MAX_VALUE ) { \n + return Status . from ( ErrorCode . COMMAND_FAILED , STRING0 + Integer . MAX_VALUE + STRING1 ) ; \n + } \n + \n + List < BsonDocument > batch = cursor . getNextBatch ( ( int ) arg . getBatchSize ( ) ) ; \n cursor . close ( ) ; \n \n return Status . ok ( new FindResult ( CursorResult . createSingleBatchCursor ( req . getDatabase ( ) , arg . getCollection ( ) , batch . iterator ( ) ) ) ) ;", "msg_token": "Using find argument batchSize"} {"diff": " public class Transaction extends ChildMessage implements Serializable { \n COMMENT \n public static long parseLockTimeStr ( String lockTimeStr ) throws ParseException { \n if ( lockTimeStr . indexOf ( STRING0 ) != - NUMBER0 ) { \n - SimpleDateFormat format = new SimpleDateFormat ( STRING1 ) ; \n + SimpleDateFormat format = new SimpleDateFormat ( STRING1 , Locale . US ) ; \n Date date = format . parse ( lockTimeStr ) ; \n return date . getTime ( ) / NUMBER1 ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class BlockChainTest { \n BlockChain prod = new BlockChain ( params , new MemoryBlockStore ( params ) ) ; \n Date d = prod . estimateBlockTime ( NUMBER2 ) ; \n SINGLE \n - assertEquals ( new SimpleDateFormat ( STRING2 ) . parse ( STRING3 ) , d ) ; \n + assertEquals ( new SimpleDateFormat ( STRING2 , Locale . US ) . parse ( STRING3 ) , d ) ; \n } \n \n @ test", "msg_token": "When manually constructing SimpleDateFormat specify Locale US or otherwise we may end up on non latin scripts"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed unnecessary import"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n abstract class AbstractMultipleEntryBackupOperation extends AbstractMultipleEntryOperation { \n \n - \n protected AbstractMultipleEntryBackupOperation ( ) { \n }", "msg_token": "Fixed JavaDoc in AbstractMultipleEntryBackupOperation"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n if ( broadcasterCacheClassName == null ) { \n logger . warn ( STRING0 + \n STRING1 ) ; \n + } else { \n + logger . info ( STRING2 , broadcasterCacheClassName ) ; \n } \n \n SINGLE", "msg_token": "Log the BroadasterCacheName"} {"diff": " public class Raptor implements PathService { \n \n SINGLE \n SINGLE \n - \n + COMMENT \n double minWalk = distanceToNearestTransitStop ; \n \n double targetDistance = distanceLibrary . fastDistance ( \n public class Raptor implements PathService { \n continue SPTSTATE ; \n \n } \n - \n + COMMENT \n cur . visitedLastRound . add ( stop ) ; \n cur . visitedEver . add ( stop ) ; \n states . add ( newState ) ;", "msg_token": "actually comment out code which is not a speedup"} {"diff": " public class MediaScanner \n prescan ( path , true ) ; \n \n File file = new File ( path ) ; \n + if ( ! file . exists ( ) ) { \n + return null ; \n + } \n \n SINGLE \n long lastModifiedSeconds = file . lastModified ( ) / NUMBER0 ;", "msg_token": "Don t create files when scanning"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n final class RingBufferEventMatcher extends TypeSafeMatcher < RingBuffer < Object [ ] > > \n { \n private final Matcher < ? > [ ] expectedValueMatchers ; \n final class RingBufferEventMatcher extends TypeSafeMatcher < RingBuffer < Object [ ] > > \n public void describeTo ( final Description description ) \n { \n description . appendText ( STRING0 ) ; \n - SINGLE \n + \n + for ( Matcher < ? > expectedValueMatcher : expectedValueMatchers ) \n + { \n + expectedValueMatcher . describeTo ( description ) ; \n + } \n } \n }", "msg_token": "Remove warnings from RingBufferEventMatcher"} {"diff": " public class StandardService \n \n } \n if ( server == null ) { \n - SINGLE \n - SINGLE \n - \n - ServerFactory . getServer ( ) . addService ( this ) ; \n + SINGLE \n + server = new StandardServer ( ) ; \n + server . addService ( this ) ; \n }", "msg_token": "Remove another ServerFactory reference"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WorldGeneratorManager { \n COMMENT \n COMMENT \n public WorldGenerator createGenerator ( SimpleUri uri , Context context ) throws UnresolvedWorldGeneratorException { \n - ModuleManager moduleManager = CoreRegistry . get ( ModuleManager . class ) ; \n + ModuleManager moduleManager = context . get ( ModuleManager . class ) ; \n Module module = moduleManager . getEnvironment ( ) . get ( uri . getModuleName ( ) ) ; \n if ( module == null ) { \n DependencyResolver resolver = new DependencyResolver ( moduleManager . getRegistry ( ) ) ;", "msg_token": "Remove CoreRegistry usage from WorldGeneratorManager"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class UnionTypeBuilder implements Serializable { \n return result ; \n } \n \n - private static final Comparator < JSType > typeSorter = \n - new Comparator < JSType > ( ) { \n - @ override public int compare ( JSType a , JSType b ) { \n - return b . hashCode ( ) - a . hashCode ( ) ; \n - } \n - } ; \n - \n private Collection < JSType > getAlternateListCopy ( ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - Collections . sort ( alternates , typeSorter ) ; \n - \n return ImmutableList . copyOf ( alternates ) ; \n } \n }", "msg_token": "remove a TODO now that it s satisfied"} {"diff": " public final class BluetoothDeviceProfileState extends HierarchicalStateMachine \n @ override \n protected boolean processMessage ( Message message ) { \n log ( STRING0 + message . what ) ; \n - Message deferMsg = new Message ( ) ; \n switch ( message . what ) { \n case CONNECT_HFP_OUTGOING : \n deferMessage ( message ) ;", "msg_token": "Removing dead store it was likely a relict of debuging code"} {"diff": " public class MockApplicationContext extends GroovyObjectSupport implements WebAp \n this . servletContext = servletContext ; \n } \n \n - @ override \n public Environment getEnvironment ( ) { \n return new org . springframework . web . context . support . DefaultWebEnvironment ( ) ; \n }", "msg_token": "remove Override from interface method"} {"diff": " public class AsyncHttpClient { \n COMMENT \n COMMENT \n COMMENT \n - public void delete ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) { \n + public RequestHandle delete ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) { \n final HttpDelete delete = new HttpDelete ( getUrlWithQueryString ( isUrlEncodingEnabled , url , params ) ) ; \n - sendRequest ( httpClient , httpContext , delete , null , responseHandler , null ) ; \n + return sendRequest ( httpClient , httpContext , delete , null , responseHandler , null ) ; \n } \n \n COMMENT", "msg_token": "Made delete String RequestParams AsyncHttpResponseHandler return a RequestHandle"} {"diff": " public abstract class AbstractFrontendMojo extends AbstractMojo { \n COMMENT \n COMMENT \n private boolean skipTestPhase ( ) { \n - return skipTests && execution . getLifecyclePhase ( ) . equals ( STRING0 ) ; \n + return skipTests && isTestingPhase ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean isTestingPhase ( ) { \n + String phase = execution . getLifecyclePhase ( ) ; \n + return phase . equals ( STRING0 ) || phase . equals ( STRING1 ) ; \n } \n \n protected abstract void execute ( FrontendPluginFactory factory ) throws FrontendException ;", "msg_token": "Also skip integration test phase"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class GetActionTests extends ElasticsearchIntegrationTest { \n public class GetActionTests extends ElasticsearchIntegrationTest { \n assertThat ( getResponse . getField ( field ) . getValues ( ) . get ( NUMBER0 ) . toString ( ) , equalTo ( STRING0 ) ) ; \n \n FlushResponse flushResponse = client ( ) . admin ( ) . indices ( ) . prepareFlush ( STRING1 ) . get ( ) ; \n - assertNoFailures ( flushResponse ) ; \n + SINGLE \n + assertThat ( flushResponse . getSuccessfulShards ( ) , greaterThanOrEqualTo ( NUMBER0 ) ) ; \n \n getResponse = client ( ) . prepareGet ( STRING1 , STRING2 , STRING3 ) . setFields ( field ) . get ( ) ; \n assertThat ( getResponse . isExists ( ) , equalTo ( true ) ) ;", "msg_token": "TEST Fix assert"} {"diff": " public class NetUtils { \n return ports ; \n } \n \n - private static String getLocalHostString ( ) { \n + public static String getLocalHostString ( ) { \n SINGLE \n String localHostString = STRING0 ; \n try {", "msg_token": "Finally revert real trunk state"} {"diff": " public class JdbcDatabaseSnapshot extends DatabaseSnapshot { \n sql += STRING0 + tableName + STRING1 ; \n } \n } else if ( database instanceof OracleDatabase ) { \n - sql = STRING2 \n - + STRING3 \n + sql = STRING4 + \n + STRING5 \n + + STRING6 \n + STRING7 + jdbcSchemaName + STRING8 \n - + STRING9 + jdbcSchemaName + STRING8 ; \n + + STRING10 ; \n + \n if ( tableName != null ) { \n sql += STRING11 + tableName + STRING1 ; \n }", "msg_token": "improve unique constraint snapshot query performance"} {"diff": " public class HTTPServer extends ContentOracle { \n \n SINGLE \n if ( connRequest . getLocation ( ) . endsWith ( STRING0 ) ) { \n + connResponse . setHeaderLine ( ProtocolResponseHeader . Content_Type , STRING1 ) ; \n + connResponse . setHeaderLine ( ProtocolResponseHeader . Content_Encoding , STRING2 ) ; \n return getSupportedLanguagesAsXML ( ) ; \n }", "msg_token": "HTTPServer added content type for languages list"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConverterFactory { \n return ( ( ValueBindingConfig ) bindingConfig ) . getConverter ( ) ; \n } \n \n - List < Class < ? extends State > > acceptedTypes = item . getAcceptedDataTypes ( ) ; \n + List < Class < ? extends State > > acceptedTypes = new ArrayList < Class < ? extends State > > ( item . getAcceptedDataTypes ( ) ) ; \n Collections . sort ( acceptedTypes , typeComparator ) ; \n \n for ( Class < ? extends State > clazz : acceptedTypes ) {", "msg_token": "Fixed occasionally ConcurrentModificationException"} {"diff": " public class CaretModelImpl implements CaretModel , PrioritizedDocumentListener , \n int newLineNumber = visualCaret . line + lineShift ; \n \n Document document = myEditor . getDocument ( ) ; \n - if ( ! editorSettings . isVirtualSpace ( ) && columnShift == NUMBER0 ) { \n + if ( ! editorSettings . isVirtualSpace ( ) && columnShift == NUMBER0 && getLogicalPosition ( ) . softWrapLinesOnCurrentLogicalLine <= NUMBER0 ) { \n newColumnNumber = myEditor . getLastColumnNumber ( ) ; \n } \n else if ( ! editorSettings . isVirtualSpace ( ) && lineShift == NUMBER0 && columnShift == NUMBER1 ) {", "msg_token": "Corrected vertical caret shift in case of soft wrapped lines"} {"diff": " public class ManagedRoute extends ManagedPerformanceCounter implements TimerList \n answer . append ( STRING0 ) . append ( routeSelfTime ) . append ( STRING1 ) ; \n answer . append ( STRING2 ) . append ( getInflightExchanges ( ) ) . append ( STRING1 ) ; \n InFlightKey oldestInflightEntry = getOldestInflightEntry ( ) ; \n - if ( oldestInflightEntry != null ) { \n + if ( oldestInflightEntry == null ) { \n answer . append ( STRING3 ) ; \n answer . append ( STRING4 ) ; \n } else {", "msg_token": "Add a OldestInflightDuration and OldestInflightExchangeId attribute to route MBeans"} {"diff": " public class InstanceSpec \n SINGLE \n SINGLE \n SINGLE \n - for ( InetAddress a : InetAddress . getAllByName ( STRING0 ) ) \n + for ( InetAddress a : InetAddress . getAllByName ( STRING0 ) ) \n { \n if ( ! a . isLinkLocalAddress ( ) ) \n {", "msg_token": "Fixed whitespace to be consistent with existing formatting"} {"diff": " public final class Protostuff \n SINGLE \n groups . media . add ( JavaBuiltIn . MediaTransformer , ProtostuffRuntimeMediaSerializer ) ; \n \n + SINGLE \n + groups . media . add ( MediaTransformer , ProtobufMediaSerializer ) ; \n + \n COMMENT \n \n SINGLE \n public final class Protostuff \n \n SINGLE \n groups . media . add ( JavaBuiltIn . MediaTransformer , ProtostuffGraphRuntimeMediaSerializer ) ; \n - \n - SINGLE \n - groups . media . add ( MediaTransformer , ProtobufMediaSerializer ) ; \n \n SINGLE \n COMMENT", "msg_token": "restore protobuf protostuff was accidentally commented out"} {"diff": " public class MapActivityActions implements DialogProvider { \n @ override \n public boolean onContextMenuClick ( ArrayAdapter < ? > adapter , int itemId , int pos , boolean isChecked ) { \n Intent newIntent = new Intent ( mapActivity , mapActivity . getMyApplication ( ) . getAppCustomization ( ) . getMainMenuActivity ( ) ) ; \n + LatLon loc = mapActivity . getMapLocation ( ) ; \n + newIntent . putExtra ( SearchActivity . SEARCH_LAT , loc . getLatitude ( ) ) ; \n + newIntent . putExtra ( SearchActivity . SEARCH_LON , loc . getLongitude ( ) ) ; \n newIntent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n mapActivity . startActivity ( newIntent ) ; \n return true ;", "msg_token": "see if this fixes direction arrows only appearing after position fix"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Addressing review comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class BlockUtil { \n } \n \n public static boolean isFullFluidBlock ( Block block , World world , int x , int y , int z ) { \n - if ( block instanceof BlockFluidBase || block instanceof IFluidBlock ) { \n + if ( block instanceof IFluidBlock || block instanceof BlockStaticLiquid ) { \n return world . getBlockMetadata ( x , y , z ) == NUMBER0 ; \n } \n return false ;", "msg_token": "Fix isFullFluidBlock fix Floodgates"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class DetectedJavaChangeInfo extends JavaChangeInfoImpl { \n return null ; \n } \n } \n + \n + if ( PsiTreeUtil . findChildOfType ( method . getParameterList ( ) , PsiErrorElement . class ) != null ) { \n + return null ; \n + } \n } \n catch ( IncorrectOperationException e ) { \n return null ;", "msg_token": "don t create detected change for invalid method signature"} {"diff": " public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor \n this . numTimeBuckets = numTimeBuckets ; \n \n this . dimensionSize = dimensionNames . size ( ) * Integer . SIZE / NUMBER0 ; \n - this . timeBucketSize = metricNames . size ( ) * Integer . SIZE / NUMBER0 + Long . SIZE / NUMBER0 ; SINGLE \n + this . timeBucketSize = metricNames . size ( ) * Integer . SIZE / NUMBER0 + Long . SIZE / NUMBER0 ; \n this . entrySize = dimensionSize + timeBucketSize * numTimeBuckets ; \n \n this . sync = new Object ( ) ; \n public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor \n getDimensions ( currentDimensions ) ; \n \n SINGLE \n - for ( int i = NUMBER1 ; i < numTimeBuckets ; i ++ ) \n + if ( matches ( targetDimensions , currentDimensions ) ) \n { \n - if ( matches ( targetDimensions , currentDimensions ) ) \n + for ( int i = NUMBER1 ; i < numTimeBuckets ; i ++ ) \n { \n updateSums ( sums , timeBuckets ) ; \n }", "msg_token": "fixed bug where dimension equality computed for every bucket"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix import issue"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ConditionalSequenceflowTest { \n + public class ConditionalSequenceFlowTest { \n \n @ rule \n public LogInitializer logSetup = new LogInitializer ( ) ;", "msg_token": "Fix file name lower case"} {"diff": " public class FileDownloader extends Service implements OnDatatransferProgressLis \n downloadResult = mCurrentDownload . execute ( mDownloadClient ) ; \n if ( downloadResult . isSuccess ( ) ) { \n saveDownloadedFile ( ) ; \n + } else { \n + updateUnsuccessfulDownloadedFile ( ) ; \n } \n \n } catch ( AccountsException e ) { \n public class FileDownloader extends Service implements OnDatatransferProgressLis \n mStorageManager . triggerMediaScan ( file . getStoragePath ( ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + private void updateUnsuccessfulDownloadedFile ( ) { \n + OCFile file = mStorageManager . getFileById ( mCurrentDownload . getFile ( ) . getFileId ( ) ) ; \n + file . setDownloading ( false ) ; \n + mStorageManager . saveFile ( file ) ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "Update unsuccessful downloaded file"} {"diff": " public class AsyncContextImpl implements AsyncContext { \n } \n exchange . unDispatch ( ) ; \n dispatched = true ; \n - HttpServletRequestImpl request = servletRequestContext . getOriginalRequest ( ) ; \n + final HttpServletRequestImpl request = servletRequestContext . getOriginalRequest ( ) ; \n initialRequestDone ( ) ; \n - request . asyncRequestDispatched ( ) ; \n } else { \n doDispatch ( new Runnable ( ) { \n @ override", "msg_token": "Don t set isAsyncStarted to false till after the request has returned to the container"} {"diff": " import NAMESPACE ; \n \n public class InstrumentingClassLoaderFactory { \n \n - SINGLE \n - private static final int CACHE_SIZE_FACTOR = NUMBER0 ; \n + COMMENT \n + private static final int CACHE_SIZE_FACTOR = NUMBER1 ; \n \n - SINGLE \n + COMMENT \n private static final int CACHE_SIZE = SdkConfig . getSupportedApis ( ) . size ( ) * CACHE_SIZE_FACTOR ; \n \n SINGLE", "msg_token": "Change the cache size"} {"diff": " public class Request \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected transient Subject subject = null ;", "msg_token": "Correct a typo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n COMMENT \n - < < < < < < < SimpleTemplateEngine . java \n COMMENT \n COMMENT \n COMMENT \n - == == == = \n - COMMENT \n - COMMENT \n - COMMENT \n - > > > > > > > FLOAT0 \n COMMENT \n COMMENT \n public class SimpleTemplateEngine extends TemplateEngine { \n import NAMESPACE ; \n \n \n COMMENT \n - < < < < < < < Template . java \n COMMENT \n - == == == = \n - COMMENT \n - COMMENT \n - > > > > > > > FLOAT0 \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed sam s CVS merge conflicts"} {"diff": " public class NetworkRecordingModuleMock extends ReactContextBaseJavaModule { \n int requestId , \n ReadableArray headers , \n ReadableMap data , \n - boolean incrementalUpdates ) { \n + boolean incrementalUpdates , \n + int timeout ) { \n mLastRequestId = requestId ; \n mRequestCount ++ ; \n mRequestMethod = method ;", "msg_token": "add timeout param to remaining RCTNetworking implementations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class K2JSCompilerPlugin implements CompilerPlugin { \n } ; \n \n K2JSTranslator translator = new K2JSTranslator ( config ) ; \n - final String code = translator . generateProgramCode ( sources ) ; \n + final String code = translator . generateProgramCode ( sources , MainCallParameters . noCall ( ) ) ; \n \n File file = new File ( outFile ) ;", "msg_token": "Fix maven plugin compilation"} {"diff": " public class FileConsumerBridgeRouteExceptionHandlerTest extends ContextTestSupp \n SINGLE \n } \n \n + @ override \n + public void setMarkerFiler ( boolean markerFile ) { \n + SINGLE \n + } \n + \n public int getCounter ( ) { \n return counter ; \n } \n public class FileConsumerCustomExceptionHandlerTest extends ContextTestSupport { \n SINGLE \n } \n \n + @ override \n + public void setMarkerFiler ( boolean markerFile ) { \n + SINGLE \n + } \n + \n public int getCounter ( ) { \n return counter ; \n }", "msg_token": "Added readLockMarkerFile to allow end users to turn it off for changed rename read locks"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class AbstractContentResponseHandler extends AbstractResponseHan \n private final HeaderDetector detector = new HeaderDetector ( ) ; \n \n protected abstract MessageContent responseContent ( final Request request ) ; \n + protected abstract MediaType getContentType ( final HttpRequest request ) ; \n \n @ override \n public void writeToResponse ( final SessionContext context ) { \n public abstract class AbstractContentResponseHandler extends AbstractResponseHan \n } \n return content ; \n } \n - \n - protected MediaType getContentType ( final HttpRequest request ) { \n - return FileContentType . DEFAULT_CONTENT_TYPE_WITH_CHARSET ; \n - } \n }", "msg_token": "removed default get content type implementation in response handler"} {"diff": " public class DnssecPanel \n protected void setValue ( Object value ) \n { \n if ( value instanceof SecureResolveMode ) \n - setText ( R . getI18NString ( SecureResolveMode . class \n - . getName ( ) \n + setText ( R . getI18NString ( \n + STRING0 \n + + SecureResolveMode . class . getSimpleName ( ) \n + STRING1 \n + ( ( SecureResolveMode ) value ) . name ( ) ) ) ; \n else \n public class DnssecPanel \n Component c = \n super . getListCellRendererComponent ( list , value , index , \n isSelected , cellHasFocus ) ; \n - setText ( R . getI18NString ( SecureResolveMode . class . getName ( ) + STRING1 \n + setText ( R . getI18NString ( STRING0 \n + + SecureResolveMode . class . getSimpleName ( ) \n + + STRING1 \n + value ) ) ; \n return c ; \n }", "msg_token": "Fix translations after DNS refactorings"} {"diff": " public class SipCommunicatorLock extends Thread \n SINGLE \n try \n { \n + lockFile . getParentFile ( ) . mkdirs ( ) ; \n lockFile . createNewFile ( ) ; \n } \n catch ( IOException e )", "msg_token": "Creates lock file parent dirs if necessary"} {"diff": " public class BinRpcClient implements RpcClient { \n logger . trace ( STRING0 , request ) ; \n } \n socket = new Socket ( context . getConfig ( ) . getHost ( ) , hmInterface . getPort ( ) ) ; \n - socket . setSoTimeout ( NUMBER0 ) ; \n + socket . setSoTimeout ( context . getConfig ( ) . getTimeout ( ) * NUMBER1 ) ; \n socket . getOutputStream ( ) . write ( request . createMessage ( ) ) ; \n BinRpcResponse resp = new BinRpcResponse ( socket . getInputStream ( ) , false ) ;", "msg_token": "Fixed configurable timeout in BinRpcClient"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class JetLightCodeInsightFixtureTestCase extends LightCodeInsightFixtureTestCase { \n + private boolean kotlinInternalModeOriginalValue ; \n + \n @ override \n protected void setUp ( ) throws Exception { \n super . setUp ( ) ; \n ( ( StartupManagerImpl ) StartupManager . getInstance ( getProject ( ) ) ) . runPostStartupActivities ( ) ; \n VfsRootAccess . allowRootAccess ( JetTestCaseBuilder . getHomeDirectory ( ) ) ; \n + \n + kotlinInternalModeOriginalValue = KotlinInternalModeToggleAction . OBJECT$ . getEnabled ( ) ; \n KotlinInternalModeToggleAction . OBJECT$ . setEnabled ( true ) ; \n } \n \n @ override \n protected void tearDown ( ) throws Exception { \n + KotlinInternalModeToggleAction . OBJECT$ . setEnabled ( kotlinInternalModeOriginalValue ) ; \n VfsRootAccess . disallowRootAccess ( JetTestCaseBuilder . getHomeDirectory ( ) ) ; \n \n Set < JetFile > builtInsSources = getProject ( ) . getComponent ( BuiltInsReferenceResolver . class ) . getBuiltInsSources ( ) ;", "msg_token": "Reverting internal mode state in tearDown of JetPsiChecker tests"} {"diff": " public class ODocument extends ORecordAbstract implements Iterable < Entry < String , \n COMMENT \n COMMENT \n private void convertFieldsToClass ( OClass _clazz ) { \n - if ( _fields == null ) \n + if ( _fields == null || _fields . isEmpty ( ) ) \n return ; \n for ( OProperty prop : _clazz . properties ( ) ) { \n ODocumentEntry entry = _fields . get ( prop . getName ( ) ) ;", "msg_token": "add check for populated fields on class set"} {"diff": " public class PathManagerEx { \n COMMENT \n COMMENT \n private static FileSystemLocation parseProjectLocation ( ) { \n - return new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ? FileSystemLocation . ULTIMATE : FileSystemLocation . COMMUNITY ; \n + return new File ( PathManager . getHomePath ( ) , STRING1 ) . isDirectory ( ) ? FileSystemLocation . ULTIMATE : FileSystemLocation . COMMUNITY ; \n } \n \n COMMENT", "msg_token": "improved isInCommunity check"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class RelatedPostsDialog extends DialogFragment { \n - public RelatedPostsDialog ( ) { \n - super ( ) ; \n - } \n - \n @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , \n Bundle savedInstanceState ) { \n - View v = inflater . inflate ( R . layout . related_posts_dialog , container , false ) ; \n + setStyle ( STYLE_NORMAL , R . style . Calypso_SiteSettingsTheme ) ; \n + getDialog ( ) . setTitle ( R . string . site_settings_related_posts_title ) ; \n \n - return v ; \n + return inflater . inflate ( R . layout . related_posts_dialog , container , false ) ; \n } \n } \n public class SiteSettingsFragment extends PreferenceFragment \n public boolean onPreferenceClick ( Preference preference ) { \n if ( preference == mRelatedPostsPreference ) { \n DialogFragment relatedPosts = new RelatedPostsDialog ( ) ; \n - relatedPosts . show ( getFragmentManager ( ) , STRING0 ) ; \n + relatedPosts . show ( getFragmentManager ( ) , STRING1 ) ; \n return true ; \n }", "msg_token": "Styling the related posts dialog"} {"diff": " public final class IslamicChronology extends BaseGJChronology { \n COMMENT \n COMMENT \n COMMENT \n - public static class LeapYearPatternType implements Serializable { \n + static class LeapYearPatternType implements Serializable { \n COMMENT \n private static final long serialVersionUID = NUMBER0 ; \n COMMENT \n public final class IslamicChronology extends BaseGJChronology { \n COMMENT \n COMMENT \n COMMENT \n - protected LeapYearPatternType ( int index , int pattern ) { \n + LeapYearPatternType ( int index , int pattern ) { \n super ( ) ; \n this . index = ( byte ) index ; \n this . pattern = pattern ; \n public final class IslamicChronology extends BaseGJChronology { \n COMMENT \n COMMENT \n COMMENT \n - public boolean isLeapYear ( int year ) { \n + boolean isLeapYear ( int year ) { \n int key = NUMBER1 < < ( year % NUMBER2 ) ; \n return ( ( pattern & key ) > NUMBER3 ) ; \n }", "msg_token": "Remove leap year pattern type from public API"} {"diff": " public class CdiActivitiInterceptor extends CommandInterceptor { \n \n protected void flushBeanStore ( ) { \n BusinessProcessAssociationManager associationManager = null ; \n + String processInstanceId = null ; \n try { \n associationManager = ProgrammaticBeanLookup . lookup ( BusinessProcessAssociationManager . class ) ; \n + processInstanceId = associationManager . getProcessInstanceId ( ) ; \n + \n } catch ( Exception e ) { \n SINGLE \n logger . finest ( STRING0 + BusinessProcessAssociationManager . class . getName ( ) ) ; \n return ; \n - } \n - if ( associationManager . getProcessInstanceId ( ) != null ) { \n + } \n + if ( processInstanceId != null ) { \n ExecutionEntity processInstance = Context \n . getCommandContext ( ) \n . getExecutionManager ( ) \n - . findExecutionById ( associationManager . getProcessInstanceId ( ) ) ; \n + . findExecutionById ( processInstanceId ) ; \n if ( processInstance != null && ! processInstance . isEnded ( ) ) { \n CachingBeanStore beanStore = associationManager . getBeanStore ( ) ; \n logFlushSummary ( beanStore ) ;", "msg_token": "Preventing the cdi interceptor from throwing an exception if no context is active"} {"diff": " public class OneToOneCallPanel \n southPanel . add ( enableDesktopRemoteControl ) ; \n \n enableDesktopRemoteControl . setAlignmentX ( CENTER_ALIGNMENT ) ; \n + enableDesktopRemoteControl . setOpaque ( false ) ; \n \n enableDesktopRemoteControl . addItemListener ( new ItemListener ( ) \n {", "msg_token": "Make the remote control desktop sharing check box non opaque on Windows and Linux"} {"diff": " import NAMESPACE ; \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 import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed java doc"} {"diff": " public class SpringBootstrapCompilerAutoConfiguration extends CompilerAutoConfig \n \n @ override \n public void applyDependencies ( DependencyCustomizer dependencies ) { \n - DependencyCustomizer customizer = dependencies . ifAnyMissingClasses ( \n + dependencies . ifAnyMissingClasses ( \n STRING0 ) . add ( \n STRING1 , STRING2 , STRING3 ) ; \n - customizer = customizer . ifAnyResourcesPresent ( STRING4 ) . add ( \n - STRING5 , STRING6 , STRING7 ) ; \n - customizer = customizer . ifNotAdded ( STRING8 , STRING6 ) \n + dependencies . ifAnyResourcesPresent ( STRING4 ) . add ( STRING5 , \n + STRING6 , STRING7 ) ; \n + dependencies . ifNotAdded ( STRING8 , STRING6 ) \n . ifAnyResourcesPresent ( STRING9 , STRING10 ) \n . add ( STRING11 , STRING12 , STRING13 ) \n . add ( STRING14 , STRING14 , STRING15 ) ; \n - customizer = customizer . ifNotAdded ( STRING5 , STRING6 ) \n + dependencies . ifNotAdded ( STRING5 , STRING6 ) \n . ifNotAdded ( STRING11 , STRING12 ) \n . add ( STRING11 , STRING16 , STRING13 ) ; \n SINGLE", "msg_token": "Improve readability of SpringBootstrapCompilerAutoConfiguration"} {"diff": " import NAMESPACE ; \n public class TestCountLogger implements TestListener { \n private final ProgressLoggerFactory factory ; \n private ProgressLogger progressLogger ; \n - private final Logger logger ; SINGLE \n + private final Logger logger ; \n \n private long totalTests ; \n private long failedTests ;", "msg_token": "removed TODO because the simplification I had in mind doesn t appear to work"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "SourceFormatter Source formatting"} {"diff": " public class BatchingPageCache implements PageCache \n Writer writer = file . getName ( ) . contains ( StoreFactory . COUNTS_STORE ) \n ? SYNCHRONOUS . create ( channel , monitor ) \n : writerFactory . create ( channel , monitor ) ; \n - BatchingPagedFile pageFile = new BatchingPagedFile ( file , channel , writer , pageSize ) ; \n + BatchingPagedFile pageFile = new BatchingPagedFile ( file , channel , writer , \n + individualizedPageSize ( file , pageSize ) ) ; \n pagedFiles . put ( file , pageFile ) ; \n return pageFile ; \n } \n \n + private int individualizedPageSize ( File file , int pageSize ) \n + { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return file . getName ( ) . endsWith ( StoreFactory . RELATIONSHIP_STORE_NAME ) ? pageSize * NUMBER0 : pageSize ; \n + } \n + \n void unmap ( BatchingPagedFile pagedFile ) throws IOException \n { \n File file = pagedFile . file ;", "msg_token": "Importer page cache uses larger page size for relationship store"} {"diff": " public abstract class BaseSourceProcessor implements SourceProcessor { \n protected Properties getLanguageProperties ( String fileName ) { \n StringBundler sb = new StringBundler ( NUMBER0 ) ; \n \n - int pos = fileName . indexOf ( STRING0 ) ; \n + int pos = fileName . indexOf ( STRING1 ) ; \n \n sb . append ( BASEDIR ) ;", "msg_token": "SourceFormatter Make small change so we can use this for plugins as well"} {"diff": " public class WPMobileStatsUtil { \n \n SINGLE \n boolean connected = WordPress . hasValidWPComCredentials ( WordPress . getContext ( ) ) ; \n - int numBlogs = WordPress . wpDB . getAccounts ( ) . size ( ) ; \n + int numBlogs = WordPress . wpDB . getShownAccounts ( ) . size ( ) ; \n try { \n JSONObject properties = new JSONObject ( ) ; \n properties . put ( STRING0 , STRING1 ) ;", "msg_token": "fix a merge error"} {"diff": " public enum DataSourceType implements Tag { \n RATE , \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n NORMALIZED ,", "msg_token": "make it clear that normalized is for counters"} {"diff": " public class MainFragment extends Fragment { \n View rootView = inflater . inflate ( R . layout . fragment_main , container , false ) ; \n TextView tvSection = ( TextView ) rootView . findViewById ( R . id . section_label ) ; \n tvSection . setText ( R . string . hello ) ; \n - tvSection . setTextColor ( getResources ( ) . getColor ( net . wequick . example . small . lib . utils . R . color . my_test_color2 ) ) ; \n + tvSection . setTextColor ( getResources ( ) . getColor ( R . color . my_test_color2 ) ) ; \n \n Button button = ( Button ) rootView . findViewById ( R . id . inter_start_button ) ; \n button . setOnClickListener ( new View . OnClickListener ( ) {", "msg_token": "Add sample for directly using R xx of lib"} {"diff": " public class DatabaseShardManager \n for ( int attempt = NUMBER0 ; attempt <= maxAttempts ; attempt ++ ) { \n try { \n dbi . useTransaction ( ( handle , status ) - > { \n - if ( commitTransaction ( shardDaoSupplier . attach ( handle ) , transactionId ) ) { \n + ShardDao dao = shardDaoSupplier . attach ( handle ) ; \n + if ( commitTransaction ( dao , transactionId ) ) { \n callback . useHandle ( handle ) ; \n dao . deleteCreatedShards ( transactionId ) ; \n }", "msg_token": "Fix commit to delete created shards within transaction"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DiskBasedCache implements Cache { \n return ; \n } \n for ( File file : files ) { \n - FileInputStream fis = null ; \n + BufferedInputStream fis = null ; \n try { \n - fis = new FileInputStream ( file ) ; \n + fis = new BufferedInputStream ( new FileInputStream ( file ) ) ; \n CacheHeader entry = CacheHeader . readHeader ( fis ) ; \n entry . size = file . length ( ) ; \n putEntry ( entry . key , entry ) ;", "msg_token": "Improve DiskBasedCache initial scan performance"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix missing import"} {"diff": " public class QueryStringDecoder { \n boolean modified = false ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n final char c = s . charAt ( i ) ; \n - switch ( c ) { \n - case STRING0 : \n - i ++ ; SINGLE \n - SINGLE \n - case STRING1 : \n - modified = true ; \n - break ; \n + if ( c == STRING0 || c == STRING1 ) { \n + modified = true ; \n + break ; \n } \n } \n if ( ! modified ) {", "msg_token": "Fix inefficient loop in QueryStringDecoder decodeComponent"} {"diff": " public final class InputManager { \n synchronized ( mInputDevicesLock ) { \n int index = findInputDeviceListenerLocked ( listener ) ; \n if ( index >= NUMBER0 ) { \n + InputDeviceListenerDelegate d = mInputDeviceListeners . get ( index ) ; \n + d . removeCallbacksAndMessages ( null ) ; \n mInputDeviceListeners . remove ( index ) ; \n } \n }", "msg_token": "Lost the race"} {"diff": " ZWaveCommandClassDynamicState { \n public SerialMessage setValueMessage ( int value ) { \n \n if ( fanModeTypes . isEmpty ( ) ) { \n + logger . warn ( STRING0 , this . getNode ( ) . getNodeId ( ) ) ; \n return this . getSupportedMessage ( ) ; \n } \n \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n ZWaveCommandClassDynamicState { \n \n SINGLE \n if ( modeTypes . isEmpty ( ) ) { \n + logger . warn ( STRING1 , this . getNode ( ) . getNodeId ( ) ) ; \n return this . getSupportedMessage ( ) ; \n } \n \n - if ( modeTypes . contains ( ModeType . getModeType ( value ) ) ) { \n + if ( ! modeTypes . contains ( ModeType . getModeType ( value ) ) ) { \n logger . error ( STRING2 , this . getNode ( ) . getNodeId ( ) , value ) ; \n return null ; \n }", "msg_token": "Fixed boolean logic error when look for supported mode types added warnings messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler < Ful \n ctx . write ( new DefaultFileRegion ( raf . getChannel ( ) , NUMBER0 , fileLength ) , ctx . newProgressivePromise ( ) ) ; \n } else { \n sendFileFuture = \n - ctx . write ( new ChunkedFile ( raf , NUMBER0 , fileLength , NUMBER1 ) , ctx . newProgressivePromise ( ) ) ; \n + ctx . write ( new HttpChunkedInput ( new ChunkedFile ( raf , NUMBER0 , fileLength , NUMBER1 ) ) , \n + ctx . newProgressivePromise ( ) ) ; \n } \n \n sendFileFuture . addListener ( new ChannelProgressiveFutureListener ( ) {", "msg_token": "Make use of HttpChunkedInput as this will also work when compression is used"} {"diff": " public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport { \n } \n } \n } \n - if ( receiver == ClassHelper . GSTRING_TYPE ) return findMethodOrFail ( expr , ClassHelper . STRING_TYPE , name , args ) ; \n + if ( receiver == ClassHelper . GSTRING_TYPE ) return findMethod ( expr , ClassHelper . STRING_TYPE , name , args ) ; \n return null ; \n }", "msg_token": "Fixed recursive method calling findMethodOrFail instead of findMethod"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make checkstyle happy"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \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 public class Gdx { \n public static GL10 gl10 ; \n public static GL11 gl11 ; \n public static GL20 gl20 ; \n - public static GLU glu ; \n }", "msg_token": "Removed GLU only complicates backends and libgdx matrix stuff has the same functionality"} {"diff": " public class TextEditingTargetNotebook \n SINGLE \n SINGLE \n SINGLE \n - if ( scope . getEnd ( ) . getRow ( ) == terminalLine ) \n + if ( scope != null && \n + scope . getEnd ( ) . getRow ( ) == terminalLine ) \n { \n ChunkDefinition def = ( ChunkDefinition ) widget . getData ( ) ; \n def . setRow ( terminalLine ) ;", "msg_token": "handle removing line widget with no associated scope"} {"diff": " public abstract class GroovyPage extends Script { \n } \n } \n \n + if ( value == null ) { \n + MetaProperty mp = getMetaClass ( ) . getMetaProperty ( property ) ; \n + if ( mp != null ) { \n + return mp . getProperty ( this ) ; \n + } \n + } \n + \n return value ; \n }", "msg_token": "fix for failing test will touch base with Stephane tomorrow to discuss if this is really the right thing"} {"diff": " public class HttpTransportOverHTTP2 implements HttpTransport \n @ override \n public void abort ( Throwable failure ) \n { \n + IStream stream = this . stream ; \n if ( LOG . isDebugEnabled ( ) ) \n - LOG . debug ( STRING0 , stream . getId ( ) ) ; \n - stream . reset ( new ResetFrame ( stream . getId ( ) , ErrorCode . INTERNAL_ERROR . code ) , Callback . Adapter . INSTANCE ) ; \n + LOG . debug ( STRING0 , stream == null ? - NUMBER0 : stream . getId ( ) ) ; \n + if ( stream != null ) \n + stream . reset ( new ResetFrame ( stream . getId ( ) , ErrorCode . INTERNAL_ERROR . code ) , Callback . Adapter . INSTANCE ) ; \n } \n \n private class CommitCallback implements Callback", "msg_token": "Prevented NPE in abort"} {"diff": " public class Wallet implements Serializable { \n COMMENT \n COMMENT \n public synchronized void saveToFile ( File f ) throws IOException { \n - saveToFileStream ( new FileOutputStream ( f ) ) ; \n + FileOutputStream stream = null ; \n + try { \n + stream = new FileOutputStream ( f ) ; \n + saveToFileStream ( stream ) ; \n + } finally { \n + if ( stream != null ) stream . close ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "Always close the FileOutputStream in Wallet saveToFile"} {"diff": " public final class BluetoothGattServer implements BluetoothProfile { \n \n List < BluetoothGattDescriptor > descriptors = characteristic . getDescriptors ( ) ; \n for ( BluetoothGattDescriptor descriptor : descriptors ) { \n + permission = ( ( characteristic . getKeySize ( ) - NUMBER0 ) < < NUMBER1 ) \n + + descriptor . getPermissions ( ) ; \n mService . addDescriptor ( mServerIf , \n - new ParcelUuid ( descriptor . getUuid ( ) ) , \n - descriptor . getPermissions ( ) ) ; \n + new ParcelUuid ( descriptor . getUuid ( ) ) , permission ) ; \n } \n }", "msg_token": "Fix minor LE descriptor permissions issue"} {"diff": " public class TWItemClickListener implements OnItemTouchListener { \n } \n \n private int getFirstVisiblePosition ( ) { \n - RecyclerView . LayoutParams lp = \n - ( RecyclerView . LayoutParams ) mHostView . getChildAt ( NUMBER0 ) . getLayoutParams ( ) ; \n + final View child = mHostView . getChildAt ( NUMBER0 ) ; \n + if ( child == null ) { \n + return NUMBER0 ; \n + } \n + \n + final RecyclerView . LayoutParams lp = \n + ( RecyclerView . LayoutParams ) child . getLayoutParams ( ) ; \n return lp . getViewPosition ( ) ; \n }", "msg_token": "core Fix crasher on TWItemClickListener when list is empty"} {"diff": " public class NodeVersionAllocationDeciderTests extends ESAllocationTestCase { \n assertThat ( primary , notNullValue ( ) ) ; \n String fromId = primary . currentNodeId ( ) ; \n String toId = r . relocatingNodeId ( ) ; \n - logger . error ( STRING0 + fromId + STRING1 + routingNodes . node ( fromId ) . node ( ) . version ( ) + STRING2 + toId + STRING1 + routingNodes . node ( toId ) . node ( ) . version ( ) ) ; \n - logger . error ( routingNodes . prettyPrint ( ) ) ; \n + logger . trace ( STRING0 + fromId + STRING1 + routingNodes . node ( fromId ) . node ( ) . version ( ) + STRING2 + toId + STRING1 + routingNodes . node ( toId ) . node ( ) . version ( ) ) ; \n assertTrue ( routingNodes . node ( toId ) . node ( ) . version ( ) . onOrAfter ( routingNodes . node ( fromId ) . node ( ) . version ( ) ) ) ; \n } \n }", "msg_token": "TEST Reduce log level in NodeVersionAllocationDeciderTests"} {"diff": " public class OEdgeTransformer extends OAbstractLookupTransformer { \n return null ; \n case HALT : \n throw new OETLProcessHaltedException ( STRING0 + joinCurrentValue + STRING1 ) ; \n + case NOTHING : \n + default : \n + return null ; \n } \n }", "msg_token": "remove warning about missing default in switch"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BatchInserterImpl implements BatchInserter \n ConfiguringPageCacheFactory pageCacheFactory = new ConfiguringPageCacheFactory ( \n fileSystem , config , PageCacheTracer . NULL ) ; \n PageCache pageCache = pageCacheFactory . getOrCreatePageCache ( ) ; \n + life . add ( new PageCacheLifecycle ( pageCache ) ) ; \n \n msgLog = StringLogger . loggerDirectory ( fileSystem , this . storeDir ) ; \n logging = new SingleLoggingService ( msgLog ) ;", "msg_token": "Add BatchInserterImpl pageCache to lifecycle"} {"diff": " public class FileDisplayActivity extends SherlockFragmentActivity implements \n \n @ override \n protected void onRestoreInstanceState ( Bundle savedInstanceState ) { \n - Log . e ( STRING0 , STRING1 ) ; \n super . onRestoreInstanceState ( savedInstanceState ) ; \n mDirs = savedInstanceState . getStringArray ( KEY_DIR_ARRAY ) ; \n mDirectories = new CustomArrayAdapter < String > ( this , R . layout . sherlock_spinner_dropdown_item ) ; \n public class FileDisplayActivity extends SherlockFragmentActivity implements \n \n @ override \n protected void onSaveInstanceState ( Bundle outState ) { \n - Log . e ( STRING0 , STRING2 + ( mCurrentDir != null ? mCurrentDir . getFileName ( ) : STRING3 ) ) ; \n super . onSaveInstanceState ( outState ) ; \n if ( mDirectories != null && mDirectories . getCount ( ) != NUMBER0 ) { \n mDirs = new String [ mDirectories . getCount ( ) - NUMBER1 ] ;", "msg_token": "remove dummy logs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n \n - public class SpringInfinispanIdempotentRpoositoryIT extends CamelSpringTestSupport { \n + public class SpringInfinispanIdempotentRepositoryIT extends CamelSpringTestSupport { \n @ override \n protected AbstractApplicationContext createApplicationContext ( ) { \n return new ClassPathXmlApplicationContext ( STRING0 ) ;", "msg_token": "Renamed SpringInfinispanIdempotentRepositoryIT test class"} {"diff": " public class ExtendedVerifier implements GroovyClassVisitor { \n } \n \n private void visitDeprecation ( AnnotatedNode node , AnnotationNode visited ) { \n - if ( visited . getClassNode ( ) . isResolved ( ) && visited . getClassNode ( ) . getTypeClass ( ) == Deprecated . class ) { \n + if ( visited . getClassNode ( ) . isResolved ( ) && visited . getClassNode ( ) . getTypeClass ( ) . getName ( ) . equals ( Deprecated . class . getName ( ) ) ) { \n if ( node instanceof MethodNode ) { \n MethodNode mn = ( MethodNode ) node ; \n mn . setModifiers ( mn . getModifiers ( ) | Opcodes . ACC_DEPRECATED ) ; \n public class ExtendedVerifier implements GroovyClassVisitor { \n ) ; \n } \n \n + SINGLE \n public void visitGenericType ( GenericsType genericsType ) { \n \n }", "msg_token": "Deprecated does not have effect in Groovy minor refactor"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n \n if ( mPost . hasPostAvatar ( ) ) { \n imgAvatar . setImageUrl ( mPost . getPostAvatarForDisplay ( \n - mResourceVars . likeAvatarSizePx ) , WPNetworkImageView . ImageType . AVATAR ) ; \n + mResourceVars . headerAvatarSizePx ) , WPNetworkImageView . ImageType . AVATAR ) ; \n imgAvatar . setVisibility ( View . VISIBLE ) ; \n } else { \n imgAvatar . setVisibility ( View . GONE ) ; \n class ReaderResourceVars { \n final int displayWidthPx ; \n final int actionBarHeightPx ; \n final int likeAvatarSizePx ; \n + final int headerAvatarSizePx ; \n \n final int marginLargePx ; \n final int marginSmallPx ; \n class ReaderResourceVars { \n displayWidthPx = DisplayUtils . getDisplayPixelWidth ( context ) ; \n actionBarHeightPx = DisplayUtils . getActionBarHeight ( context ) ; \n likeAvatarSizePx = resources . getDimensionPixelSize ( R . dimen . avatar_sz_small ) ; \n + headerAvatarSizePx = resources . getDimensionPixelSize ( R . dimen . avatar_sz_medium ) ; \n featuredImageHeightPx = resources . getDimensionPixelSize ( R . dimen . reader_featured_image_height ) ; \n \n marginLargePx = resources . getDimensionPixelSize ( R . dimen . margin_large ) ;", "msg_token": "Add an additional avatar size to ReaderResourceVars"} {"diff": " public final class ActFmSyncService { \n metadata . clear ( ) ; \n model . clearValue ( Task . REMOTE_ID ) ; \n model . setValue ( Task . REMOTE_ID , json . getLong ( STRING0 ) ) ; \n - model . setValue ( Task . FLAGS , NUMBER0 ) ; \n readUser ( json . getJSONObject ( STRING1 ) , model , Task . USER_ID , Task . USER ) ; \n readUser ( json . getJSONObject ( STRING2 ) , model , Task . CREATOR_ID , null ) ; \n model . setValue ( Task . COMMENT_COUNT , json . getInt ( STRING3 ) ) ;", "msg_token": "don t clear task flags on sync"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExternalSystemFacadeManager { \n myProgressManager = ( RemoteExternalSystemProgressNotificationManager ) notificationManager ; \n myRemoteCommunicationManager = remoteCommunicationManager ; \n myInProcessCommunicationManager = inProcessCommunicationManager ; \n - boolean inProcessCommunication = Registry . is ( ExternalSystemConstants . USE_IN_PROCESS_COMMUNICATION_REGISTRY_KEY , false ) ; \n + boolean inProcessCommunication = ExternalSystemApiUtil . isInProcessMode ( ) ; \n myInProcessCommunication . set ( inProcessCommunication ) ; \n myCommunicationManager . set ( inProcessCommunication ? myInProcessCommunicationManager : myRemoteCommunicationManager ) ; \n }", "msg_token": "Make it possible to customize processing classpath in case of in process mode"} {"diff": " public class Protocol { \n return processInteger ( is ) ; \n } else if ( b == DOLLAR_BYTE ) { \n return processBulkReply ( is ) ; \n - } else { \n + } else if ( b == PLUS_BYTE ) { \n return processStatusCodeReply ( is ) ; \n + } else { \n + throw new JedisException ( STRING0 ) ; \n } \n } catch ( IOException e ) { \n throw new JedisException ( e ) ;", "msg_token": "Treat any other type of reply as an error"} {"diff": " public class IntentUriOverrideTest extends ActivityInstrumentationTestCase2 < Sabo \n runTestOnUiThread ( new Runnable ( ) { \n public void run ( ) \n { \n + sleep ( ) ; \n boolean isBadUrl = testView . getUrl ( ) . equals ( BAD_URL ) ; \n assertFalse ( isBadUrl ) ; \n }", "msg_token": "Added sleep to avoid null error after most recent change to not break API"} {"diff": " public class FormField { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FormField createCopy ( ) { \n + return new FormField ( this . element . createCopy ( ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adds utility method that allows you to create copies of a DataForm object"} {"diff": " public class ServerProperties implements EmbeddedServletContainerCustomizer { \n this . sessionTimeout = sessionTimeout ; \n } \n \n + public void setLoader ( String value ) { \n + SINGLE \n + } \n + \n @ override \n public void customize ( ConfigurableEmbeddedServletContainerFactory factory ) { \n factory . setPort ( getPort ( ) ) ;", "msg_token": "Add back no op setLoader to ServerProperties"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class MavenWebArtifactConfiguration { \n - @ tag ( STRING0 ) \n - public String webArtifactName ; \n - \n @ tag ( STRING1 ) \n public String moduleName ; \n \n public class MavenResourceCompilerConfigurationGenerator { \n MavenWebArtifactConfiguration artifactResourceCfg = projectCfg . webArtifactConfigs . get ( webArtifactName ) ; \n if ( artifactResourceCfg == null ) { \n artifactResourceCfg = new MavenWebArtifactConfiguration ( ) ; \n - artifactResourceCfg . webArtifactName = webArtifactName ; \n artifactResourceCfg . moduleName = module . getName ( ) ; \n projectCfg . webArtifactConfigs . put ( webArtifactName , artifactResourceCfg ) ; \n }", "msg_token": "Remove unused field webArtifactName"} {"diff": " public class DecorView extends FrameLayout implements RootViewSurfaceTaker , Wind \n mDecorCaptionView . addView ( root , \n new ViewGroup . MarginLayoutParams ( MATCH_PARENT , MATCH_PARENT ) ) ; \n } else { \n - addView ( root , new ViewGroup . LayoutParams ( MATCH_PARENT , MATCH_PARENT ) ) ; \n + \n + SINGLE \n + addView ( root , NUMBER0 , new ViewGroup . LayoutParams ( MATCH_PARENT , MATCH_PARENT ) ) ; \n } \n mContentRoot = ( ViewGroup ) root ; \n initializeElevation ( ) ;", "msg_token": "Fix disappearing translucent status bar background"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ ignore ( STRING0 ) \n public final class FileSystemAclIntegrationTest { \n \n private static final int BLOCK_SIZE = NUMBER0 ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JournalIntegrationTest { \n } \n \n @ test \n + @ ignore ( STRING0 ) \n @ localalluxioclusterresource.config ( confParams = { \n Constants . SECURITY_AUTHENTICATION_TYPE , STRING1 , \n Constants . SECURITY_AUTHORIZATION_PERMISSION_ENABLED , STRING2 ,", "msg_token": "SMALLFIX Disable failing integration tests for now with TODOS"} {"diff": " public final class AutoBuffer { \n } \n return put1 ( STRING0 ) ; \n } \n - AutoBuffer putJSONA4 ( String name , int [ ] a ) { \n + public AutoBuffer putJSONA4 ( String name , int [ ] a ) { \n putJSONStr ( name ) . put1 ( STRING1 ) ; \n return putJSONA4 ( a ) ; \n }", "msg_token": "make public for writeJSON"} {"diff": " public class StackScrollAlgorithm { \n private static final int MAX_ITEMS_IN_BOTTOM_STACK = NUMBER0 ; \n private static final int MAX_ITEMS_IN_TOP_STACK = NUMBER0 ; \n \n - COMMENT \n - private static final float ACTIVATED_INVERSE_ALPHA = FLOAT0 ; \n public static final float DIMMED_SCALE = FLOAT1 ; \n \n private int mPaddingBetweenElements ; \n public class StackScrollAlgorithm { \n childViewState . scale = ! mScaleDimmed || ! dimmed || isActivatedChild \n ? FLOAT2 \n : DIMMED_SCALE ; \n - if ( dimmed && activatedChild != null ) { \n - if ( ! isActivatedChild ) { \n - childViewState . alpha *= ACTIVATED_INVERSE_ALPHA ; \n - } else { \n - childViewState . zTranslation += FLOAT3 * mZDistanceBetweenElements ; \n - } \n + if ( dimmed && isActivatedChild ) { \n + childViewState . zTranslation += FLOAT3 * mZDistanceBetweenElements ; \n } \n } \n }", "msg_token": "Do not dim the non activated notifications on lockscreen"} {"diff": " public class ELFAnalyzer extends FileAnalyzer { \n out . write ( STRING0 ) ; \n } \n \n - class ELFHeader { \n + private static class ELFHeader { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fixed FindBugs warning inner class should be static"} {"diff": " public class DefaultFormat extends RepresentationFormat \n } \n \n @ override \n - protected String serializeValue ( String type , Object value ) \n + protected String serializeValue ( String type , Object value ) throws BadInputException \n { \n return inner . serializeValue ( type , value ) ; \n } \n public class DefaultFormat extends RepresentationFormat \n } \n \n @ override \n - protected String complete ( MappingWriter serializer ) \n + protected String complete ( MappingWriter serializer ) throws BadInputException \n { \n return inner . complete ( serializer ) ; \n }", "msg_token": "updated DefaultOutput to pass on BadInputExceptions"} {"diff": " public class OptionsMenuProcessor implements ElementProcessor { \n \n JBlock body = method . body ( ) ; \n \n - JVar menuInflater = body . decl ( holder . refClass ( usesSherlock ? STRING0 : STRING1 ) , STRING2 , invoke ( usesSherlock ? STRING3 : STRING4 ) ) ; \n + JVar menuInflater = body . decl ( holder . refClass ( usesSherlock ? STRING5 : STRING1 ) , STRING2 , invoke ( usesSherlock ? STRING3 : STRING4 ) ) ; \n \n body . invoke ( menuInflater , STRING6 ) . arg ( optionsMenuId ) . arg ( menuParam ) ;", "msg_token": "Fixed typo in Sherlock version of the MenuInflater class"} {"diff": " public abstract class IteratorUtil \n } \n } ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static < T > int count ( Iterator < T > iterator ) \n + { \n + int result = NUMBER0 ; \n + while ( iterator . hasNext ( ) ) \n + { \n + iterator . next ( ) ; \n + result ++ ; \n + } \n + return result ; \n + } \n }", "msg_token": "Added a method for counting an iterator"} {"diff": " public class RecoveryStatus extends AbstractRefCounted { \n \n COMMENT \n public void setWaitingRecoveryThread ( Thread thread ) { \n + ensureRefCount ( ) ; \n waitingRecoveryThread . set ( thread ) ; \n } \n \n public class RecoveryStatus extends AbstractRefCounted { \n \n final Thread thread = waitingRecoveryThread . get ( ) ; \n if ( thread != null ) { \n + logger . debug ( STRING0 ) ; \n thread . interrupt ( ) ; \n } \n }", "msg_token": "add more debug logging if recovery thread got iterrupted"} {"diff": " public class Realm { \n @ suppresswarnings ( STRING0 ) \n private static Realm createAndValidate ( String absolutePath , byte [ ] key , boolean validateSchema , boolean autoRefresh ) { \n Map < Integer , Realm > realms = realmsCache . get ( ) ; \n - Realm realm = realms . get ( absolutePath . hashCode ( ) ) ; \n + Realm realm = realms . get ( absolutePath ) ; \n \n if ( realm != null ) { \n return realm ;", "msg_token": "Moved bug fix to another PR"} {"diff": " public class EnglishGrammaticalRelations { \n STRING0 , \n STRING1 , \n SINGLE \n - STRING2 , \n + STRING3 , \n STRING4 , \n STRING5 , \n STRING6 + copularWordRegex + STRING7 ,", "msg_token": "Fix a few examples of xcomp dependencies"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpTransportOverSPDYTest \n @ test \n public void testVerifyThatAStreamIsNotCommittedTwice ( ) throws IOException \n { \n + ( ( StdErrLog ) Log . getLogger ( HttpTransportOverSPDY . class ) ) . setHideStacks ( true ) ; \n ByteBuffer content = createRandomByteBuffer ( ) ; \n boolean lastContent = false ; \n \n public class HttpTransportOverSPDYTest \n \n verify ( stream , times ( NUMBER0 ) ) . data ( any ( DataInfo . class ) ) ; \n verify ( stream , times ( NUMBER1 ) ) . data ( any ( DataInfo . class ) , anyLong ( ) , any ( TimeUnit . class ) , any ( Callback . class ) ) ; \n + \n + ( ( StdErrLog ) Log . getLogger ( HttpTransportOverSPDY . class ) ) . setHideStacks ( false ) ; \n } \n \n private ByteBuffer createRandomByteBuffer ( )", "msg_token": "HttpTransportOverSPDYTest hide stacktrace"} {"diff": " public class MethodProcessorSetupFailedException extends Exception { \n public MethodProcessorSetupFailedException ( @ nonnls String message ) { \n super ( message ) ; \n } \n + \n + @ suppresswarnings ( { STRING0 } ) \n + @ override \n + public Throwable fillInStackTrace ( ) { \n + return this ; \n + } \n }", "msg_token": "don t need a stack trace for this control flow throwable"} {"diff": " public class HyperLogLogPlus implements ICardinality \n { \n biasTotal += biasVector [ nearestNeighbor ] ; \n } \n - return biasTotal / ( biasVector . length ) ; \n + return biasTotal / ( nearestNeighbors . length ) ; \n } \n \n private int [ ] getNearestNeighbors ( SortedMap < Double , Integer > distanceMap )", "msg_token": "reapply bias bugfix"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VcsLogContentProvider implements ChangesViewContentProvider , NotNul \n \n @ override \n public void disposeContent ( ) { \n + Disposer . dispose ( myLogManager ) ; \n }", "msg_token": "log Properly dispose the content provider"} {"diff": " public class German extends Language implements AutoCloseable { \n private GermanCompoundTokenizer strictCompoundTokenizer ; \n private LanguageModel languageModel ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n + public German ( ) { \n + } \n + \n @ override \n public Language getDefaultLanguageVariant ( ) { \n return GERMANY_GERMAN ; \n public class English extends Language implements AutoCloseable { \n private WordTokenizer wordTokenizer ; \n private LuceneLanguageModel languageModel ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n + public English ( ) { \n + } \n + \n @ override \n public Language getDefaultLanguageVariant ( ) { \n return AMERICAN_ENGLISH ;", "msg_token": "en de deprecate the constructors that create a language object without spell checking rules this regularly confused users"} {"diff": " public class Duration extends AbstractDuration implements ReadableDuration , Seri \n \n SINGLE \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Duration withDurationType ( DurationType type ) { \n + if ( type == null ) { \n + type = DurationType . getAllType ( ) ; \n + } \n + if ( type . equals ( getDurationType ( ) ) ) { \n + return this ; \n + } \n + return new Duration ( getTotalMillis ( ) , type ) ; \n + } \n + \n + SINGLE \n + COMMENT \n COMMENT \n COMMENT \n protected final void setDuration ( ReadableDuration duration ) {", "msg_token": "Add withDurationType method"} {"diff": " public class ConcurrentLinkedHashCacheProvider implements IRowCacheProvider \n \n public int weightOf ( IRowCacheEntry value ) \n { \n - return ( int ) Math . min ( meter . measure ( value ) , Integer . MAX_VALUE ) ; \n + return ( int ) Math . min ( meter . measureDeep ( value ) , Integer . MAX_VALUE ) ; \n } \n } ; \n }", "msg_token": "update measure to measureDeep"} {"diff": " public abstract class HttpContentEncoder extends MessageToMessageCodec < HttpReque \n break ; \n } \n if ( ! buf . isReadable ( ) ) { \n + buf . release ( ) ; \n continue ; \n } \n out . add ( new DefaultHttpContent ( buf ) ) ;", "msg_token": "Fix potential leak in HttpContentEncoder"} {"diff": " public class CompletionUtil { \n type = factory . createType ( aClass , substitutor ) ; \n } \n } else if ( type instanceof PsiArrayType ) { \n - final PsiType psiType = eliminateWildcardsInner ( ( ( PsiArrayType ) type ) . getComponentType ( ) , false ) ; \n - if ( psiType != null ) return psiType . createArrayType ( ) ; \n + return eliminateWildcardsInner ( ( ( PsiArrayType ) type ) . getComponentType ( ) , false ) . createArrayType ( ) ; \n } else if ( type instanceof PsiWildcardType ) { \n return ( ( PsiWildcardType ) type ) . getExtendsBound ( ) ; \n }", "msg_token": "reverted previous change"} {"diff": " public class MongoInsertStorage extends StoreFunc implements StoreMetadata { \n \n } \n \n + @ override \n public void checkSchema ( ResourceSchema schema ) throws IOException { \n this . schema = schema ; \n UDFContext udfc = UDFContext . getUDFContext ( ) ; \n public class MongoInsertStorage extends StoreFunc implements StoreMetadata { \n p . setProperty ( SCHEMA_SIGNATURE , schema . toString ( ) ) ; \n } \n \n + @ override \n public void storeSchema ( ResourceSchema schema , String location , Job job ) { \n SINGLE \n } \n \n - \n + @ override \n public void storeStatistics ( ResourceStatistics stats , String location , Job job ) { \n SINGLE \n } \n \n + @ override \n public void putNext ( Tuple tuple ) throws IOException { \n try { \n final BasicDBObjectBuilder builder = BasicDBObjectBuilder . start ( ) ;", "msg_token": "enforce overrides with annotation"} {"diff": " public class OracleDatabase extends AbstractDatabase { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + STRING0 , \n SINGLE \n SINGLE \n SINGLE \n public class OracleDatabase extends AbstractDatabase { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + STRING1 \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added back real oracle keywords"} {"diff": " public final class ProcessControllerClient implements Closeable { \n for ( int i = NUMBER0 ; i < cnt ; i ++ ) { \n final String processName = readUTFZBytes ( dataStream ) ; \n final byte [ ] processAuthCode = new byte [ NUMBER1 ] ; \n - final boolean processRunning = StreamUtils . readBoolean ( dataStream ) ; \n readFully ( dataStream , processAuthCode ) ; \n + final boolean processRunning = StreamUtils . readBoolean ( dataStream ) ; \n inventory . put ( processName , new ProcessInfo ( processName , authCode , processRunning ) ) ; \n } \n dataStream . close ( ) ;", "msg_token": "Fix wrong unmarshalling order of process inventory data"} {"diff": " public class ClassNode extends AnnotatedNode implements Opcodes { \n while ( node != null ) ; \n return false ; \n } \n + \n + public boolean isInterface ( ) { \n + return ( getModifiers ( ) & Opcodes . ACC_INTERFACE ) > NUMBER0 ; \n + } \n }", "msg_token": "added a method to identify a classnode as interface"} {"diff": " public enum CompilationLevel { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setTypeBasedOptimizationOptions ( CompilerOptions options ) { \n public enum CompilationLevel { \n options . setUseTypesForOptimization ( true ) ; \n break ; \n case SIMPLE_OPTIMIZATIONS : \n - options . setUseTypesForOptimization ( true ) ; \n - break ; \n case WHITESPACE_ONLY : \n break ; \n }", "msg_token": "Turn off useTypesForOptimization in simple mode"} {"diff": " public class GetDatabaseVersionHeadersFolderResponse extends FolderResponse { \n @ elementlist ( required = true , entry = STRING0 ) \n private ArrayList < DatabaseVersionHeader > databaseVersionHeaders ; \n \n + public GetDatabaseVersionHeadersFolderResponse ( ) { \n + SINGLE \n + } \n + \n public GetDatabaseVersionHeadersFolderResponse ( int requestId , String root , List < DatabaseVersionHeader > databaseVersionHeaders ) { \n super ( NUMBER0 , requestId , null ) ;", "msg_token": "Add default constructor"} {"diff": " public class SampleIntegrationTests { \n \n @ test \n public void integrationSample ( ) throws Exception { \n - SINGLE \n - System . clearProperty ( STRING0 ) ; \n - \n String output = this . cli . run ( STRING1 ) ; \n assertTrue ( STRING2 + output , output . contains ( STRING3 ) ) ; \n }", "msg_token": "Remove special case for integration sample s milestone dependency"} {"diff": " public class OutgoingConnection { \n } \n } \n } \n - \n + \n SINGLE \n final Iterator < Buffer > it = buffersToRecycle . iterator ( ) ; \n - while ( it . hasNext ( ) ) { \n + while ( it . hasNext ( ) ) { \n it . next ( ) . recycleBuffer ( ) ; \n } \n }", "msg_token": "Corrected code style of OutgoingConnection java"} {"diff": " public class TextViewCompatTest extends ActivityInstrumentationTestCase2 < TestAct \n TextViewCompat . setTextAppearance ( mTextView , R . style . TextMediumStyle ) ; \n \n final Resources res = getActivity ( ) . getResources ( ) ; \n - assertEquals ( STRING0 , mTextView . getTypeface ( ) . getStyle ( ) , \n - Typeface . ITALIC ) ; \n + assertTrue ( STRING0 , \n + mTextView . getTypeface ( ) . isItalic ( ) || ( mTextView . getPaint ( ) . getTextSkewX ( ) < NUMBER0 ) ) ; \n assertEquals ( STRING1 , mTextView . getTextColors ( ) . getDefaultColor ( ) , \n res . getColor ( R . color . text_color ) ) ; \n assertEquals ( STRING2 , mTextView . getTextSize ( ) ,", "msg_token": "Refine TextViewCompat setTextAppearance logic"} {"diff": " public final class BlockMaster extends MasterBase \n } \n } \n } \n - \n - SINGLE \n - if ( mLostWorkers . size ( ) != NUMBER0 ) { \n - LOG . warn ( STRING0 ) ; \n - try { \n - String tachyonHome = conf . get ( Constants . TACHYON_HOME ) ; \n - java . lang . Runtime . getRuntime ( ) \n - . exec ( tachyonHome + STRING1 ) ; \n - } catch ( IOException e ) { \n - LOG . error ( e . getMessage ( ) ) ; \n - } \n - } \n } \n }", "msg_token": "Remove restart workers logic"} {"diff": " public class CrawlController extends Configurable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public < T extends WebCrawler > void startNonBlocking ( final Class < T > _c , \n - final int numberOfCrawlers ) { \n - this . start ( new DefaultWebCrawlerFactory < > ( _c ) , numberOfCrawlers , false ) ; \n + public < T extends WebCrawler > void startNonBlocking ( Class < T > clazz , int numberOfCrawlers ) { \n + start ( new DefaultWebCrawlerFactory < > ( clazz ) , numberOfCrawlers , false ) ; \n } \n \n protected < T extends WebCrawler > void start ( final WebCrawlerFactory < T > crawlerFactory ,", "msg_token": "Fix checkstyle issue"} {"diff": " public class Redwood { \n COMMENT \n COMMENT \n static { \n - RedwoodConfiguration . standard ( ) . apply ( ) ; \n + RedwoodConfiguration . minimal ( ) . apply ( ) ; \n } \n \n COMMENT", "msg_token": "Redwood should load the minimal configuration by default"} {"diff": " public class ReplicatedRecord < K , V > implements IdentifiedDataSerializable { \n } \n \n public K getKey ( ) { \n + access ( ) ; \n return key ; \n } \n \n public V getValue ( ) { \n + access ( ) ; \n return value ; \n } \n \n public class ReplicatedRecord < K , V > implements IdentifiedDataSerializable { \n } \n \n public V setValue ( V value , int hash , long ttlMillis ) { \n + access ( ) ; \n V oldValue = value ; \n this . value = value ; \n this . latestUpdateHash = hash ;", "msg_token": "Added record access for lastAccess time in statistics"} {"diff": " public class DBTCPConnector implements DBConnector { \n return false ; \n \n if ( _masterPortPool != null ) \n - _logger . log ( Level . WARNING , STRING0 + _masterPortPool . getServerAddress ( ) + STRING1 + addr ) ; \n + _logger . log ( Level . WARNING , STRING2 + _masterPortPool . getServerAddress ( ) + STRING1 + addr ) ; \n _masterPortPool = newPool ; \n return true ; \n }", "msg_token": "changed Master to Primary in log statement"} {"diff": " abstract public class ShadowContext { \n } \n \n @ implementation \n + public File getCacheDir ( ) { \n + SINGLE \n + File file = new File ( System . getProperty ( STRING0 ) , STRING1 ) ; \n + file . mkdirs ( ) ; \n + return file ; \n + } \n + \n + @ implementation \n public File getFilesDir ( ) { \n SINGLE \n File file = new File ( System . getProperty ( STRING0 ) , STRING2 ) ; \n public class ContextTest { \n } \n \n @ test \n + public void getCacheDir_shouldCreateDirectory ( ) throws Exception { \n + assertTrue ( context . getCacheDir ( ) . exists ( ) ) ; \n + } \n + \n + @ test \n public void getFilesDir_shouldCreateDirectory ( ) throws Exception { \n assertTrue ( context . getFilesDir ( ) . exists ( ) ) ; \n }", "msg_token": "Added Context getCacheDir"} {"diff": " public interface DataContext { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n @ nullable Object getData ( @ nonnls String dataId ) ; \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public interface DataProvider { \n COMMENT", "msg_token": "reduce number of deprecations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "removed unused import"} {"diff": " public class ImplementationImportCollector extends HeaderImportCollector { \n \n @ override \n public boolean visit ( ArrayAccess node ) { \n - addReference ( Types . getTypeBinding ( node ) ) ; \n + ITypeBinding componentType = Types . getTypeBinding ( node ) ; \n + addReference ( componentType ) ; \n + addReference ( Types . resolveArrayType ( componentType ) ) ; \n return super . visit ( node ) ; \n } \n \n public class ImplementationImportCollectorTest extends GenerationTest { \n STRING0 , STRING1 ) ; \n SINGLE \n } \n + \n + public void testArrayImport ( ) throws IOException { \n + addSourceFile ( STRING2 , STRING3 ) ; \n + String translation = translateSourceFile ( \n + STRING4 , STRING5 , STRING6 ) ; \n + assertTranslation ( translation , STRING7 ) ; \n + } \n }", "msg_token": "Add import references for array type and its component type"} {"diff": " public class ContactAccessorSdk5 extends ContactAccessor { \n columnsToFetch . add ( ContactsContract . CommonDataKinds . Phone . TYPE ) ; \n } \n if ( isRequired ( STRING0 , populate ) ) { \n + columnsToFetch . add ( ContactsContract . CommonDataKinds . Email . _ID ) ; \n columnsToFetch . add ( ContactsContract . CommonDataKinds . Email . DATA ) ; \n columnsToFetch . add ( ContactsContract . CommonDataKinds . Email . TYPE ) ; \n }", "msg_token": "Searching for emails in Contacts throws an exception always errors out"} {"diff": " public class LockExclusiveJobCmd implements Command < Object > , Serializable { \n } \n \n if ( log . isDebugEnabled ( ) ) { \n - log . debug ( STRING0 , job . getId ( ) ) ; \n + log . debug ( STRING1 , job . getId ( ) , job . getExecutionId ( ) ) ; \n } \n \n if ( job . isExclusive ( ) ) {", "msg_token": "added debug info"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class HostedRoom { \n \n - private final Jid jid ; \n + private final EntityBareJid jid ; \n \n private final String name ; \n \n public HostedRoom ( DiscoverItems . Item item ) { \n - jid = item . getEntityID ( ) ; \n + jid = Objects . requireNonNull ( item . getEntityID ( ) . asEntityBareJidIfPossible ( ) , \n + STRING0 ) ; \n name = item . getName ( ) ; \n } \n \n public class HostedRoom { \n COMMENT \n COMMENT \n COMMENT \n - public Jid getJid ( ) { \n + public EntityBareJid getJid ( ) { \n return jid ; \n }", "msg_token": "Improve HostedRoom API"} {"diff": " public class ReconstructMessageTest extends AndroidTestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n STRING4 + \n STRING5 + \n STRING6 + \n + STRING3 + \n STRING7 + \n STRING8 + \n STRING9 +", "msg_token": "Modify ReconstructMessageTest to highlight more problems"} {"diff": " public class MessageCompose extends K9Activity implements OnClickListener , \n if ( body != null && ! subject . isEmpty ( ) ) { \n mMessageContentView . setCharacters ( body ) ; \n } \n - \n - \n } \n \n - static class CaseInsensitiveParamWrapper { \n - private final Uri uri ; \n - private Set < String > mParamNames ; \n - \n - public CaseInsensitiveParamWrapper ( Uri uri ) { \n - this . uri = uri ; \n - } \n - \n - public List < String > getQueryParameters ( String key ) { \n - final List < String > params = new ArrayList < String > ( ) ; \n - for ( String paramName : uri . getQueryParameterNames ( ) ) { \n - if ( paramName . equalsIgnoreCase ( key ) ) { \n - params . addAll ( uri . getQueryParameters ( paramName ) ) ; \n - } \n - } \n - return params ; \n - } \n - \n - } \n \n private class SendMessageTask extends AsyncTask < Void , Void , Void > { \n @ override", "msg_token": "Remove unused class"} {"diff": " public class MongodbQuery < K > implements SimpleQuery < MongodbQuery < K > > , SimpleProj \n \n @ override \n public K uniqueResult ( ) { \n - DBCursor c = createCursor ( ) . limit ( NUMBER0 ) ; \n + Long limit = queryMixin . getMetadata ( ) . getModifiers ( ) . getLimit ( ) ; \n + if ( limit == null ) { \n + limit = NUMBER1 ; \n + } \n + DBCursor c = createCursor ( ) . limit ( limit . intValue ( ) ) ; \n if ( c . hasNext ( ) ) { \n K rv = transformer . transform ( c . next ( ) ) ; \n if ( c . hasNext ( ) ) {", "msg_token": "fixed uniqueResult implementation"} {"diff": " public class QualityGates { \n return from ( conditionDao . selectForQualityGate ( qGateId ) ) . filter ( new MatchConditionId ( conditionId ) ) . toList ( ) ; \n } \n \n - private void validateCondition ( Metric metric , String operator , @ nullable String warningThreshold , @ nullable String errorThreshold , @ nullable Integer period ) { \n + private static void validateCondition ( Metric metric , String operator , @ nullable String warningThreshold , @ nullable String errorThreshold , @ nullable Integer period ) { \n Errors errors = new Errors ( ) ; \n validateMetric ( metric , errors ) ; \n checkOperator ( metric , operator , errors ) ;", "msg_token": "Fix quality flaw"} {"diff": " public final class MessageEventManager extends Manager { \n method . invoke ( listener , new Object [ ] { from , packetID , this } ) ; \n } \n } catch ( Exception e ) { \n - LOGGER . log ( Level . SEVERE , STRING0 , e ) ; \n + LOGGER . log ( Level . SEVERE , STRING1 + methodName , e ) ; \n } \n } \n \n public final class MessageEventManager extends Manager { \n method . invoke ( listener , new Object [ ] { from , packetID } ) ; \n } \n } catch ( Exception e ) { \n - LOGGER . log ( Level . SEVERE , STRING2 , e ) ; \n + LOGGER . log ( Level . SEVERE , STRING3 + methodName , e ) ; \n } \n }", "msg_token": "Improve MessageEventManager s log message"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Camera implements Savable , Cloneable { \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", "msg_token": "Created clickable links out of http mentions in Camera Javadoc"} {"diff": " public class EnglishGrammaticalRelations { \n SINGLE \n SINGLE \n STRING0 , \n - STRING1 , \n + STRING2 , \n STRING3 , \n } ) ; \n public static class RelativeClauseModifierGRAnnotation extends GrammaticalRelationAnnotation { }", "msg_token": "Reorder a tregex pattern to make it slightly more efficient"} {"diff": " public class ImplementationBodyCodegen extends ClassBodyCodegen { \n } \n } \n \n - @ nullable \n - private JetClassObject getClassObject ( ) { \n - return myClass instanceof JetClass ? ( ( JetClass ) myClass ) . getClassObject ( ) : null ; \n - } \n - \n \n COMMENT \n COMMENT", "msg_token": "Remove unused method"} {"diff": " class AlarmManagerService extends IAlarmManager . Stub { \n private static final String ClockReceiver_TAG = STRING0 ; \n private static final boolean localLOGV = false ; \n private static final boolean DEBUG_BATCH = localLOGV || false ; \n - private static final boolean DEBUG_VALIDATE = localLOGV || true ; \n + private static final boolean DEBUG_VALIDATE = localLOGV || false ; \n private static final int ALARM_EVENT = NUMBER0 ; \n private static final String TIMEZONE_PROPERTY = STRING1 ;", "msg_token": "Turn off Alarm Manager logspew pending a more friendly implementation"} {"diff": " public class DefaultIvyDependencyResolver implements IvyDependencyResolver { \n \n for ( ModuleDependency moduleDependency : selectedDependencies ) { \n Set < ResolvedDependency > resolvedDependencies = conversionResult . getFirstLevelResolvedDependencies ( ) . get ( moduleDependency ) ; \n + SINGLE \n if ( resolvedDependencies != null ) { \n for ( ResolvedDependency resolvedDependency : resolvedDependencies ) { \n artifacts . addAll ( resolvedDependency . getParentArtifacts ( conversionResult . getRoot ( ) ) ) ;", "msg_token": "Added todo comment for DefaultIvyDependencyResolver"} {"diff": " public class ArrayMultiplication { \n int result2 = multiplicationImproved ( x % div , y % div , len ) ; \n int result3 = multiplicationImproved ( x / div + x % div , y / div + y % div , len ) ; \n \n - return result1 * ( power ( NUMBER0 * len ) - power ( len ) ) + \n - result3 * power ( len ) - result2 * ( power ( len ) - NUMBER1 ) ; \n + return result1 * div * ( div - NUMBER1 ) + \n + result3 * div - result2 * ( div - NUMBER1 ) ; \n \n }", "msg_token": "Improving array multiplication"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapStoreWriteBehindTest extends AbstractMapStoreTest { \n \n \n @ test ( timeout = NUMBER0 ) \n + @ category ( NightlyTest . class ) \n SINGLE \n public void testWriteBehindDestroy ( ) throws InterruptedException { \n - final int writeDelaySeconds = NUMBER1 ; \n + final int writeDelaySeconds = NUMBER2 ; \n String mapName = randomMapName ( ) ; \n \n final MapStore < String , String > store = new SimpleMapStore < String , String > ( ) ;", "msg_token": "Increases write delay seconds"} {"diff": " public final class LineageFileSystemTest { \n Whitebox . setInternalState ( LineageContext . class , STRING0 , mLineageContext ) ; \n mAlluxioLineageFileSystem = LineageFileSystem . get ( ) ; \n Whitebox . setInternalState ( mAlluxioLineageFileSystem , STRING1 , mLineageContext ) ; \n - FileSystemContext mFileSystemContext = PowerMockito . mock ( FileSystemContext . class ) ; \n - FileSystemMasterClient mFileSystemMasterClient = \n + FileSystemContext fileSystemContext = PowerMockito . mock ( FileSystemContext . class ) ; \n + FileSystemMasterClient fileSystemMasterClient = \n PowerMockito . mock ( FileSystemMasterClient . class ) ; \n - Mockito . when ( mFileSystemContext . acquireMasterClient ( ) ) . thenReturn ( mFileSystemMasterClient ) ; \n - Whitebox . setInternalState ( FileSystemContext . class , STRING0 , mFileSystemContext ) ; \n - Whitebox . setInternalState ( mAlluxioLineageFileSystem , STRING2 , mFileSystemContext ) ; \n + Mockito . when ( fileSystemContext . acquireMasterClient ( ) ) . thenReturn ( fileSystemMasterClient ) ; \n + Whitebox . setInternalState ( FileSystemContext . class , STRING0 , fileSystemContext ) ; \n + Whitebox . setInternalState ( mAlluxioLineageFileSystem , STRING2 , fileSystemContext ) ; \n } \n \n COMMENT", "msg_token": "SMALLFIX Incorporated PR comment"} {"diff": " public class InputUnusedParameter \n Object aUnreadObject ) \n { \n int i = aReadObject . length ( ) ; \n - \n + \n int j = aRectangle . x ; \n - \n + \n try { \n - i ++ ; \n + i ++ ; \n } \n catch ( Exception unreadException ) { \n } \n public class InputUnusedParameter \n int i = aArray [ NUMBER0 ] ; \n aArray2 [ NUMBER0 ] = NUMBER0 ; \n } \n + \n + private int member = NUMBER1 ; \n + private void methodSameLocalVariable ( int member ) \n + { \n + int x = member ; SINGLE \n + } \n } \n \n interface Interface", "msg_token": "added test input for hidden field to prevent false alarms"} {"diff": " public final class MediaType { \n public static final MediaType ATOM_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING0 ) ; \n public static final MediaType BZIP2 = createConstant ( APPLICATION_TYPE , STRING1 ) ; \n \n - public static final MediaType X_PROTOBUF = createConstant ( APPLICATION_TYPE , STRING2 ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Withdraw application x protobuf from Guava and document it"} {"diff": " public class ImperativeCodeDetectingTransformer extends AbstractScriptTransforme \n } \n \n ImperativeCodeDetectingVisitor visitor = new ImperativeCodeDetectingVisitor ( scriptBlockNames ) ; \n - statementBlock . visit ( visitor ) ; \n + for ( int i = NUMBER0 ; i < statements . size ( ) && ! visitor . isImperativeStatementDetected ( ) ; i ++ ) { \n + statements . get ( i ) . visit ( visitor ) ; \n + } \n imperativeStatementDetected = visitor . isImperativeStatementDetected ( ) ; \n }", "msg_token": "Don t visit any subsequent build script statements after encountering the first imperative statement"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface DocumentReaderAndWriter < IN extends CoreMap > \n COMMENT \n COMMENT \n COMMENT \n - public void init ( SeqClassifierFlags flags ) ; \n + void init ( SeqClassifierFlags flags ) ; \n \n COMMENT \n COMMENT \n public interface DocumentReaderAndWriter < IN extends CoreMap > \n COMMENT \n COMMENT \n COMMENT \n - public void printAnswers ( List < IN > doc , PrintWriter out ) ; \n + void printAnswers ( List < IN > doc , PrintWriter out ) ; \n \n }", "msg_token": "Remove unnecesary public modifiers"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n + @ ignore \n @ runwith ( StructurePerformanceSuite . class ) \n @ structureperformancesuite.graphproviderclass ( provider = BerkeleyGraphProvider . class , graph = TitanGraph . class ) \n public class BerkeleyTitanStructurePerformanceTest {", "msg_token": "Updated test case"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public abstract class AbstractPlugin implements Plugin , Comparable < Object > { \n try { \n result = URLEncoder . encode ( msg , STRING0 ) ; \n \n - } catch ( UnsupportedEncodingException e ) { \n - e . printStackTrace ( ) ; \n + } catch ( UnsupportedEncodingException ignore ) { \n + SINGLE \n } \n \n return result ; \n public abstract class AbstractPlugin implements Plugin , Comparable < Object > { \n try { \n result = URLDecoder . decode ( msg , STRING0 ) ; \n \n - } catch ( UnsupportedEncodingException e ) { \n - e . printStackTrace ( ) ; \n + } catch ( UnsupportedEncodingException ignore ) { \n + SINGLE \n } \n \n return result ;", "msg_token": "Remove unnecessary exceptions stack trace prints"} {"diff": " public class DbMigrate { \n } \n \n MigrationInfo [ ] future = infoService . future ( ) ; \n - MigrationInfo [ ] resolved = infoService . resolved ( ) ; \n - boolean isFutureMigration = future . length < NUMBER0 ; \n - if ( isFutureMigration ) { \n + if ( future . length > NUMBER0 ) { \n + MigrationInfo [ ] resolved = infoService . resolved ( ) ; \n LOG . warn ( STRING0 + schema + STRING1 + currentSchemaVersion + STRING2 \n + resolved [ resolved . length - NUMBER1 ] . getVersion ( ) + STRING3 ) ; \n }", "msg_token": "Fixed detection of future migrations"} {"diff": " public final class InputSplitManager { \n if ( inputSplits . length == NUMBER0 ) { \n continue ; \n } \n - \n + \n final InputSplitAssigner assigner = this . assignerCache . remove ( groupVertex ) ; \n if ( assigner == null ) { \n LOG . error ( STRING0 + groupVertex . getName ( )", "msg_token": "Corrected code style"} {"diff": " public class ChartServlet extends HttpServlet implements ManagedService { \n } \n if ( properties . get ( STRING0 ) != null ) { \n scale = Double . parseDouble ( ( String ) properties . get ( STRING0 ) ) ; \n - if ( scale < FLOAT0 ) \n + if ( scale < FLOAT1 ) \n scale = FLOAT2 ; \n } \n }", "msg_token": "allow lower chart scale values"} {"diff": " public class RepeatRule implements TestRule \n public abstract int times ( ) ; \n } \n \n - private static class RepeatStatement extends Statement \n + private int count ; \n + \n + private class RepeatStatement extends Statement \n { \n private final int times ; \n private final Statement statement ; \n public class RepeatRule implements TestRule \n @ override \n public void evaluate ( ) throws Throwable \n { \n - for ( int i = NUMBER0 ; i < times ; i ++ ) \n + for ( count = NUMBER0 ; count < times ; count ++ ) \n { \n statement . evaluate ( ) ; \n } \n public class RepeatRule implements TestRule \n } \n return base ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getCount ( ) \n + { \n + return count ; \n + } \n }", "msg_token": "RepeatRule now exposes count for easy debug output of which iteration is currently running"} {"diff": " public class VolumeDialog { \n } \n \n protected void dismissH ( int reason ) { \n + if ( mMotion . isAnimating ( ) ) { \n + return ; \n + } \n mHandler . removeMessages ( H . DISMISS ) ; \n mHandler . removeMessages ( H . SHOW ) ; \n if ( ! mShowing ) return ;", "msg_token": "Don t dismiss volume during animation"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class AbstractCodegenTestCaseOnAndroid extends TestCase { \n Class clazz ; \n clazz = Class . forName ( filePath . replaceAll ( STRING0 , STRING1 ) + STRING2 ) ; \n Method method ; \n - method = clazz . getMethod ( STRING3 ) ; \n + try { \n + method = clazz . getMethod ( STRING3 ) ; \n + } \n + catch ( NoSuchMethodException e ) { \n + try { \n + method = clazz . getMethod ( STRING4 , String [ ] . class ) ; \n + } \n + catch ( Throwable e ) { \n + throw new RuntimeException ( STRING5 + filePath , e ) ; \n + } \n + method . invoke ( null ) ; \n + return ; \n + } \n assertEquals ( STRING6 , method . invoke ( null ) ) ; \n } \n catch ( Throwable e ) {", "msg_token": "some codegen tests use main instead of box"} {"diff": " public class NotificationTemplateViewWrapper extends NotificationViewWrapper { \n } \n } \n if ( mIcon != null ) { \n + boolean hadColorFilter = mNotificationHeader . getOriginalIconColor ( ) \n + != NotificationHeaderView . NO_COLOR ; \n if ( fade ) { \n - fadeIconColorFilter ( mIcon , dark , delay ) ; \n - fadeIconAlpha ( mIcon , dark , delay ) ; \n + if ( hadColorFilter ) { \n + fadeIconColorFilter ( mIcon , dark , delay ) ; \n + fadeIconAlpha ( mIcon , dark , delay ) ; \n + } else { \n + fadeGrayscale ( mIcon , dark , delay ) ; \n + } \n } else { \n - updateIconColorFilter ( mIcon , dark ) ; \n - updateIconAlpha ( mIcon , dark ) ; \n + if ( hadColorFilter ) { \n + updateIconColorFilter ( mIcon , dark ) ; \n + updateIconAlpha ( mIcon , dark ) ; \n + } else { \n + updateGrayscale ( mIcon , dark ) ; \n + } \n } \n } \n setPictureGrayscale ( dark , fade , delay ) ;", "msg_token": "Fixed a bug where legacy icons where incorrectly colored"} {"diff": " public abstract class DataChangedNotifier < T > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public Set < SqlTable < ? > > whichTables ( ) {", "msg_token": "Fix typo in docs"} {"diff": " public class ParseTests extends TestCase { \n } \n \n public void testParseWithUnclosedSquareBracket ( ) throws Exception { \n - String output = parseCode ( STRING0 , STRING1 ) . generatedGsp ; \n + String output = parseCode ( STRING0 , STRING2 ) . generatedGsp ; \n String expected = makeImports ( ) + \n STRING3 + \n STRING4 + \n public class ParseTests extends TestCase { \n STRING5 + \n STRING6 + \n \n - STRING7 + \n + STRING8 + \n STRING9 + GSP_FOOTER ; \n \n assertEquals ( trimAndRemoveCR ( expected ) , trimAndRemoveCR ( output ) ) ;", "msg_token": "Fixed failing test"} {"diff": " public class GermanHelperTest { \n } \n \n @ test \n + public void testGetDeterminerNumber ( ) throws Exception { \n + assertThat ( GermanHelper . getDeterminerNumber ( STRING0 ) , is ( STRING1 ) ) ; \n + } \n + \n + @ test \n + public void testGetDeterminerDefiniteness ( ) throws Exception { \n + assertThat ( GermanHelper . getDeterminerDefiniteness ( STRING0 ) , is ( STRING2 ) ) ; \n + } \n + \n + @ test \n + public void testGetDeterminerCase ( ) throws Exception { \n + assertThat ( GermanHelper . getDeterminerCase ( STRING0 ) , is ( STRING3 ) ) ; \n + } \n + \n + @ test \n public void testGetDeterminerGender ( ) throws Exception { \n assertThat ( GermanHelper . getDeterminerGender ( null ) , is ( STRING4 ) ) ; \n assertThat ( GermanHelper . getDeterminerGender ( STRING4 ) , is ( STRING4 ) ) ;", "msg_token": "de adding some tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class IndexRotationThread extends Periodical { \n LOG . error ( STRING0 ) ; \n return ; \n } \n - LOG . info ( STRING1 , rotate . getDescription ( ) ) ; \n + LOG . debug ( STRING1 , rotate . getDescription ( ) ) ; \n if ( rotate . shouldRotate ( ) ) { \n LOG . info ( STRING2 , currentTarget ) ; \n deflector . cycle ( ) ;", "msg_token": "Log index rotation strategy message to debug instead of info"} {"diff": " public class HighlyAvailableGraphDatabase \n \n protected void start ( ) \n { \n + life . start ( ) ; \n + \n getMessageLog ( ) . logMessage ( STRING0 + getStoreDir ( ) + STRING1 ) ; \n \n StoreId storeId = null ;", "msg_token": "Add call to life start"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class MinaFiltersTest extends ContextTestSupport {", "msg_token": "Fixed typo in javadoc"} {"diff": " public class ContactListTreeCellRenderer \n \n UIContactDetail desktopContact \n = uiContact . getDefaultContactDetail ( \n - OperationSetDesktopStreaming . class ) ; \n + OperationSetDesktopSharingServer . class ) ; \n \n if ( desktopContact != null \n || ( contactPhoneUtil != null", "msg_token": "Check for correct capability for showing desktop sharing"} {"diff": " public class AndroidAptCompiler implements SourceGeneratingCompiler { \n context . addMessage ( CompilerMessageCategory . ERROR , STRING0 + genRootPath , null , - NUMBER0 , - NUMBER0 ) ; \n continue ; \n } \n + final File parent = genRootDir . getParentFile ( ) ; \n + if ( parent != null && ! parent . exists ( ) && ! parent . mkdirs ( ) ) { \n + context . addMessage ( CompilerMessageCategory . ERROR , STRING1 + parent . getPath ( ) , null , - NUMBER0 , - NUMBER0 ) ; \n + continue ; \n + } \n if ( ! FileUtil . moveDirWithContent ( tmpOutputDir , genRootDir ) ) { \n final String message = STRING2 + tmpOutputDir . getPath ( ) + STRING3 + genRootPath ; \n context . addMessage ( CompilerMessageCategory . ERROR , message , null , - NUMBER0 , - NUMBER0 ) ;", "msg_token": "fix cannot move content error"} {"diff": " public class FileStructureDialogTest extends BaseProjectViewTestCase { \n final Document document = FileDocumentManager . getInstance ( ) . getDocument ( virtualFile ) ; \n assertNotNull ( document ) ; \n \n - final Editor editor = factory . createEditor ( document ) ; \n + final Editor editor = factory . createEditor ( document , myProject ) ; \n try { \n final FileStructureDialog dialog = \n new FileStructureDialog ( structureViewModel , editor , myProject , psiClass , new Disposable ( ) { \n public class LocalHistoryActionsTest extends LocalHistoryUITestCase { \n document = FileDocumentManager . getInstance ( ) . getDocument ( f ) ; \n document . setText ( STRING0 ) ; \n \n - editor = getEditorFactory ( ) . createEditor ( document ) ; \n + editor = getEditorFactory ( ) . createEditor ( document , myProject ) ; \n } \n \n @ override", "msg_token": "create editors associated with a project"} {"diff": " public class UIStyleFamily { \n Table < String , String , UIStyle > elementStyles = elementStyleLookup . get ( classes . get ( i ) ) ; \n if ( elementStyles != null ) { \n style = elementStyles . get ( part , mode ) ; \n + if ( style == null && part . equals ( UIWidget . BASE_PART ) ) { \n + style = elementStyles . get ( STRING0 , mode ) ; \n + } \n if ( style == null ) { \n style = elementStyles . get ( part , STRING0 ) ; \n }", "msg_token": "Fixed a bug causing mode styles to not be applied"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class LegSwitchingEdge extends Edge { \n private static final long serialVersionUID = NUMBER0 ;", "msg_token": "add comment clarifying purpose of class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public abstract class TestBase { \n private final MongoClient mongoClient ;", "msg_token": "removed unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "removed unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClassMappingNameConverter extends ResolvingConverter . StringConverte \n assert parent != null ; \n return parent . getXmlElement ( ) ; \n } \n + \n + @ override \n + public boolean isReferenceTo ( @ notnull PsiElement element , \n + String stringValue , \n + @ nullable String resolveResult , \n + ConvertContext context ) { \n + return element . getManager ( ) . areElementsEquivalent ( element , resolve ( stringValue , context ) ) ; \n + } \n }", "msg_token": "highlight usages in file should highlight all occurrences of servlet name re fixed"} {"diff": " public enum Direction { \n throw new IllegalArgumentException ( ) ; \n } \n \n + public Direction opposite ( ) { \n + switch ( this ) { \n + case UP : \n + return DOWN ; \n + case UP_RIGHT : \n + return DOWN_LEFT ; \n + case RIGHT : \n + return LEFT ; \n + case DOWN_RIGHT : \n + return UP_LEFT ; \n + case DOWN : \n + return UP ; \n + case DOWN_LEFT : \n + return UP_RIGHT ; \n + case LEFT : \n + return RIGHT ; \n + case UP_LEFT : \n + return DOWN_RIGHT ; \n + } \n + throw new IllegalArgumentException ( ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added Direction opposite"} {"diff": " public class SurfaceView extends MockView { \n super ( context , attrs , defStyle ) ; \n } \n \n + public SurfaceView ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { \n + super ( context , attrs , defStyleAttr , defStyleRes ) ; \n + } \n + \n public SurfaceHolder getHolder ( ) { \n return mSurfaceHolder ; \n } \n import NAMESPACE ; \n public class MockView extends TextView { \n \n public MockView ( Context context , AttributeSet attrs , int defStyle ) { \n - super ( context , attrs , defStyle ) ; \n + this ( context , attrs , defStyle , NUMBER0 ) ; \n + } \n + \n + public MockView ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { \n + super ( context , attrs , defStyleAttr , defStyleRes ) ; \n \n setText ( this . getClass ( ) . getSimpleName ( ) ) ; \n setTextColor ( NUMBER1 ) ;", "msg_token": "Fix SurfaceView in LayoutLib"} {"diff": " public class TestPlan implements Closeable { \n SINGLE \n } \n \n - private final class ExecutionExceptionHandler implements ExecutionListener { \n + private static final class ExecutionExceptionHandler implements ExecutionListener { \n private String executionError ; \n \n public ExecutionVertex executionVertex ;", "msg_token": "Made ExecutionExceptionHandler in TestPlans static to make the code more robust against resource leakage"} {"diff": " public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { \n \n private final CompletionHandler < Integer , SocketWrapperBase < Nio2Channel > > readCompletionHandler ; \n private final Semaphore readPending = new Semaphore ( NUMBER0 ) ; \n - private boolean readInterest = true ; SINGLE \n + private boolean readInterest = false ; SINGLE \n \n private final CompletionHandler < Integer , ByteBuffer > writeCompletionHandler ; \n private final CompletionHandler < Long , ByteBuffer [ ] > gatheringWriteCompletionHandler ; \n private final Semaphore writePending = new Semaphore ( NUMBER0 ) ; \n - private boolean writeInterest = true ; SINGLE \n + private boolean writeInterest = false ; SINGLE \n private boolean writeNotify = false ; \n \n private CompletionHandler < Integer , SocketWrapperBase < Nio2Channel > > awaitBytesHandler", "msg_token": "Change read write interest defaults for NIO"} {"diff": " public class OutputServiceMJImpl implements OutputService { \n \n @ override \n public Output load ( String streamOutputId ) throws NotFoundException { \n - return coll . findOneById ( streamOutputId ) ; \n + final Output output = coll . findOneById ( streamOutputId ) ; \n + if ( output == null ) { \n + throw new NotFoundException ( STRING0 + streamOutputId ) ; \n + } \n + \n + return output ; \n } \n \n @ override", "msg_token": "Fix contract of OutputServiceMJImpl load String"} {"diff": " public class LdapContactQuery \n @ override \n public void cancel ( ) \n { \n - ldapQuery . setState ( LdapQuery . State . CANCELLED ) ; \n + if ( ldapQuery != null ) \n + { \n + ldapQuery . setState ( LdapQuery . State . CANCELLED ) ; \n + } \n super . cancel ( ) ; \n } \n }", "msg_token": "Fix null pointer exception in LDAP contact source plugin"} {"diff": " public abstract class BatteryStats implements Parcelable { \n STRING0 , which , linePrefix ) ; \n linePrefix = printWakeLock ( sb , wl . getWakeTime ( WAKE_TYPE_WINDOW ) , rawRealtime , \n STRING1 , which , linePrefix ) ; \n - if ( ! linePrefix . equals ( STRING2 ) ) { \n + if ( true || ! linePrefix . equals ( STRING2 ) ) { \n sb . append ( STRING3 ) ; \n SINGLE \n pw . println ( sb . toString ( ) ) ; \n public final class BatteryStatsImpl extends BatteryStats { \n SINGLE \n SINGLE \n SINGLE \n - private static final int MAX_WAKELOCKS_PER_UID = NUMBER0 ; \n + private static final int MAX_WAKELOCKS_PER_UID = NUMBER1 ; \n \n private static int sNumSpeedSteps ;", "msg_token": "raise overflow limit print all wake locks"} {"diff": " public final class ExceptionsHelper { \n return result ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public static String detailedMessage ( Throwable t ) { \n return detailedMessage ( t , false , NUMBER0 ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public static String detailedMessage ( Throwable t , boolean newLines , int initialCounter ) { \n if ( t == null ) { \n return STRING0 ;", "msg_token": "Deprecate ExceptionsHelper detailedMessage"} {"diff": " public class LuceneSerializerTest { \n } \n \n @ test \n + @ ignore \n + public void in ( ) throws Exception { \n + fail ( STRING0 ) ; \n + } \n + \n + @ test \n public void various ( ) throws Exception { \n MatchingFilters filters = new MatchingFilters ( Module . LUCENE , Target . LUCENE ) ; \n for ( EBoolean filter : filters . string ( title , EStringConst . create ( STRING1 ) ) ) {", "msg_token": "Added test stub for IN operation in LuceneSerializerTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CustomTHsHaServer extends TNonblockingServer \n } \n catch ( Throwable t ) \n { \n + if ( t instanceof OutOfMemoryError ) \n + Throwables . propagate ( t ) ; \n + StorageMetrics . exceptions . inc ( ) ; \n LOGGER . error ( STRING0 , t ) ; \n } \n finally", "msg_token": "HSHA rethrows OOM"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed redundant imports"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class GuiceChatModule extends ServletModule { \n \n @ override \n protected void configureServlets ( ) { \n - bind ( org . atmosphere . commons . jersey . ResourceChat . class ) ; \n + bind ( GuiceResourceChat . class ) ; \n } \n }", "msg_token": "Rename the resource"} {"diff": " public class ForgeNetworkHandler \n \n public static void registerChannel ( ForgeModContainer forgeModContainer , Side side ) \n { \n - channelPair = NetworkRegistry . INSTANCE . newChannel ( forgeModContainer , STRING0 , new FMLRuntimeCodec ( ) , new HandshakeCompletionHandler ( ) ) ; \n + channelPair = NetworkRegistry . INSTANCE . newChannel ( forgeModContainer , STRING1 , new ForgeRuntimeCodec ( ) , new HandshakeCompletionHandler ( ) ) ; \n EmbeddedChannel embeddedChannel = channelPair . get ( Side . SERVER ) ; \n embeddedChannel . attr ( FMLOutboundHandler . FML_MESSAGETARGET ) . set ( OutboundTarget . NOWHERE ) ;", "msg_token": "Forge uses the FORGE channel for packets"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ASTFactory { \n } \n \n public static LeafElement whitespace ( CharSequence text ) { \n - return new PsiWhiteSpaceImpl ( WHITSPACES . intern ( text ) ) ; \n + PsiWhiteSpaceImpl w = new PsiWhiteSpaceImpl ( WHITSPACES . intern ( text ) ) ; \n + CodeEditUtil . setNodeGenerated ( w , true ) ; \n + return w ; \n } \n \n public static LeafElement leaf ( IElementType type , CharSequence text , CharTable table ) {", "msg_token": "Fix tests sorry"} {"diff": " public class CheckTxLogs \n } \n } \n \n + SINGLE \n + public boolean checkAll ( File [ ] logs ) throws IOException \n + { \n + return scan ( logs , new PrintingInconsistenciesHandler ( out ) , CheckTypes . CHECK_TYPES ) ; \n + } \n + \n boolean scan ( File [ ] logs , InconsistenciesHandler handler , CheckType < ? , ? > . . . checkTypes ) throws IOException \n { \n boolean success = true ;", "msg_token": "Add public method to run all checks in a programmatic way"} {"diff": " public class DataFlowInspection extends BaseLocalInspectionTool { \n PsiMethod method = ( PsiMethod ) body . getParent ( ) ; \n final PsiIdentifier name = method . getNameIdentifier ( ) ; \n if ( name != null ) { SINGLE \n - holder . registerProblem ( name , InspectionsBundle . message ( STRING0 ) , ProblemHighlightType . INFO ) ; \n + holder . registerProblem ( name , InspectionsBundle . message ( STRING0 ) , ProblemHighlightType . WEAK_WARNING ) ; \n } \n } \n } \n public class HighlightInfo implements Segment { \n if ( infoType == HighlightInfoType . ERROR || infoType == HighlightInfoType . WRONG_REF ) return ProblemHighlightType . ERROR ; \n if ( infoType == HighlightInfoType . WARNING ) return ProblemHighlightType . GENERIC_ERROR_OR_WARNING ; \n if ( infoType == HighlightInfoType . INFORMATION ) return ProblemHighlightType . INFORMATION ; \n - return ProblemHighlightType . INFO ; \n + return ProblemHighlightType . WEAK_WARNING ; \n } \n \n public static ProblemHighlightType convertSeverityToProblemHighlight ( HighlightSeverity severity ) {", "msg_token": "remove deprecated ProblemHighlightType INFO usages"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( { STRING0 } ) \n public class RoboGuice { \n public static Stage DEFAULT_STAGE = Stage . PRODUCTION ; \n \n public class RoboGuice { \n \n \n \n + @ suppresswarnings ( STRING1 ) \n protected static ResourceListener getResourceListener ( Application application ) { \n ResourceListener resourceListener = resourceListeners . get ( application ) ; \n if ( resourceListener == null ) { \n public class RoboGuice { \n return resourceListener ; \n } \n \n + @ suppresswarnings ( STRING1 ) \n protected static ViewListener getViewListener ( final Application application ) { \n ViewListener viewListener = viewListeners . get ( application ) ; \n if ( viewListener == null ) { \n public class RoboGuice { \n public static void destroyInjector ( Context context ) { \n final RoboInjector injector = getInjector ( context ) ; \n injector . getInstance ( EventManager . class ) . destroy ( ) ; \n - injectors . remove ( context ) ; \n + SINGLE \n + injectors . remove ( context ) ; SINGLE \n }", "msg_token": "Remove SuppressWarnings All"} {"diff": " public class TileTank extends TileBuildCraft implements ITankContainer { \n resource = resource . copy ( ) ; \n int totalUsed = NUMBER0 ; \n TileTank tankToFill = getBottomTank ( ) ; \n + LiquidStack liquid = tankToFill . tank . getLiquid ( ) ; \n + \n + if ( liquid != null && ! liquid . isLiquidEqual ( resource ) ) \n + return NUMBER0 ; \n + \n while ( tankToFill != null && resource . amount > NUMBER0 ) { \n int used = tankToFill . tank . fill ( resource , doFill ) ; \n resource . amount -= used ;", "msg_token": "Stacked tanks no longer store different liquids"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class Polygonal2DRegionSelector implements RegionSelector , CUIRegion { \n - protected BlockVector pos1 ; \n - protected Polygonal2DRegion region ; \n + private BlockVector pos1 ; \n + private Polygonal2DRegion region ; \n \n public Polygonal2DRegionSelector ( LocalWorld world ) { \n region = new Polygonal2DRegion ( world ) ; \n public class Polygonal2DRegionSelector implements RegionSelector , CUIRegion { \n public String getLegacyTypeID ( ) { \n return STRING0 ; \n } \n - \n - \n }", "msg_token": "Made the fields of Polygonal2DRegionSelector private"} {"diff": " public class CompileStepBeforeRun extends BeforeRunTaskProvider < CompileStepBefor \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n public static final Key < MakeBeforeRunTask > ID = Key . create ( STRING1 ) ; \n private static final Key < RunConfiguration > RUN_CONFIGURATION = Key . create ( STRING2 ) ; \n + private static final Key < String > RUN_CONFIGURATION_TYPE_ID = Key . create ( STRING3 ) ; \n \n @ nonnls protected static final String MAKE_PROJECT_ON_RUN_KEY = STRING4 ; \n \n public class CompileStepBeforeRun extends BeforeRunTaskProvider < CompileStepBefor \n if ( ! myProject . isDisposed ( ) ) { \n done . down ( ) ; \n scope . putUserData ( RUN_CONFIGURATION , configuration ) ; \n + scope . putUserData ( RUN_CONFIGURATION_TYPE_ID , configuration . getType ( ) . getId ( ) ) ; \n compilerManager . make ( scope , callback ) ; \n } \n }", "msg_token": "pass run configuration type id to compile server"} {"diff": " public class WsRemoteEndpoint implements RemoteEndpoint { \n } \n } \n } \n + if ( opCode == Constants . OPCODE_CLOSE ) { \n + SINGLE \n + SINGLE \n + writeBarrier . reset ( ) ; \n + } \n }", "msg_token": "Spotted a couple of threads hanging waiting on this barrier after an aborted Autobahn test"} {"diff": " public abstract class AbstractSyncableContentProvider extends SyncableContentPro \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 COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final void beginBatch ( ) { \n public abstract class AbstractSyncableContentProvider extends SyncableContentPro \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractSyncableContentProvider extends SyncableContentPro \n getContext ( ) . getContentResolver ( ) . notifyChange ( url , null COMMENT , \n changeRequiresLocalSync ( url ) ) ; \n } \n - mDb . endTransaction ( ) ; \n } \n }", "msg_token": "Fix a bug in AbstractSyncableContentProvider java and modify comments"} {"diff": " public class DbEntityColumnDescriptor implements Comparable { \n COMMENT \n COMMENT \n public void updateDbSqlType ( int dbSqlType ) { \n - if ( dbSqlType == Integer . MAX_VALUE ) { \n + if ( this . dbSqlType == Integer . MAX_VALUE ) { \n this . dbSqlType = dbSqlType ; \n } \n }", "msg_token": "fixed update db sql type bug"} {"diff": " public class SpreadsheetPresentation extends AbstractPresentation implements IRe \n for ( Integer row : spreadsheet . getRowSelection ( ) ) { \n rows . add ( controller . getModel ( ) . getRow ( row ) ) ; \n } \n + Collections . sort ( rows , new Comparator < ResultSetRow > ( ) { \n + @ override \n + public int compare ( ResultSetRow o1 , ResultSetRow o2 ) { \n + return o1 . getVisualNumber ( ) - o2 . getVisualNumber ( ) ; \n + } \n + } ) ; \n return rows ; \n } \n }", "msg_token": "Keep rows order in SQL generator"} {"diff": " public class MessagesController extends AuthenticatedController { \n Map < String , Object > result = Maps . newHashMap ( ) ; \n result . put ( STRING0 , message . getId ( ) ) ; \n if ( filtered ) \n - result . put ( STRING1 , message . getFormattedFields ( ) ) ; \n + result . put ( STRING1 , message . getFilteredFields ( ) ) ; \n else \n result . put ( STRING1 , message . getFields ( ) ) ;", "msg_token": "don t use formatted fields for the message loader only filter fields but never format them"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CommitHelper { \n moveToFailedList ( myChangeList , myCommitMessage , getChangesFailedToCommit ( ) , \n VcsBundle . message ( STRING0 , myChangeList . getName ( ) ) , myProject ) ; \n } \n - } ) ; \n + } , ModalityState . defaultModalityState ( ) , o - > myProject . isDisposed ( ) ) ; \n } \n \n public void doBeforeRefresh ( ) {", "msg_token": "add expiring condition to invokeLater"} {"diff": " public abstract class AbstractValueHint { \n } \n \n protected boolean showHint ( final JComponent component ) { \n + if ( myCurrentHint != null ) { \n + myCurrentHint . hide ( ) ; \n + } \n myCurrentHint = new LightweightHint ( component ) ; \n myCurrentHint . addHintListener ( new HintListener ( ) { \n @ override", "msg_token": "do not show two debugger tooltips loading and real value"} {"diff": " \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixes license header"} {"diff": " public class RcFilePageSourceFactory \n TupleDomain < HiveColumnHandle > effectivePredicate , \n DateTimeZone hiveStorageTimeZone ) \n { \n - if ( ! isOptimizedReaderEnabled ( session , enabled ) ) { \n + SINGLE \n + if ( false || ! isOptimizedReaderEnabled ( session , enabled ) ) { \n return Optional . absent ( ) ; \n }", "msg_token": "Disable new RcFileReader until GC issues are resolved"} {"diff": " public final class Settings { \n ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED , \n WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON , \n WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY , \n + WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED , \n WIFI_NUM_OPEN_NETWORKS_KEPT , \n EMERGENCY_TONE , \n CALL_AUTO_RETRY ,", "msg_token": "Back up restore the Avoid poor connections wifi setting"} {"diff": " public class JsonMarshaller { \n \n public void write ( ConfigurationMetadata metadata , OutputStream outputStream ) \n throws IOException { \n - JSONObject object = new JSONObject ( ) ; \n + JSONObject object = new JSONOrderedObject ( ) ; \n object . put ( STRING0 , toJsonArray ( metadata , ItemType . GROUP ) ) ; \n object . put ( STRING1 , toJsonArray ( metadata , ItemType . PROPERTY ) ) ; \n object . put ( STRING2 , toJsonArray ( metadata . getHints ( ) ) ) ;", "msg_token": "Fix meta data root attributes ordering"} {"diff": " public class TileGenericPipe extends TileEntity implements IPowerReceptor , ILiqu \n private boolean blockNeighborChange = false ; \n private boolean pipeBound = false ; \n \n + SINGLE \n + int key ; \n + \n @ tilenetworkdata \n public int pipeId = - NUMBER0 ; \n \n public class TileGenericPipe extends TileEntity implements IPowerReceptor , ILiqu \n if ( pipe != null ) { \n nbttagcompound . setInteger ( STRING0 , pipe . itemID ) ; \n pipe . writeToNBT ( nbttagcompound ) ; \n - } \n + } else \n + nbttagcompound . setInteger ( STRING0 , key ) ; \n } \n \n @ override \n public class TileGenericPipe extends TileEntity implements IPowerReceptor , ILiqu \n super . readFromNBT ( nbttagcompound ) ; \n \n \n - int key = nbttagcompound . getInteger ( STRING0 ) ; \n + key = nbttagcompound . getInteger ( STRING0 ) ; \n pipe = BlockGenericPipe . createPipe ( key ) ; \n \n if ( pipe != null ) {", "msg_token": "Prevent addon pipes from becoming permanent ghosts"} {"diff": " public class RepairJob implements Runnable { \n } \n \n public RepairJob ( StoreRepository storeRepo , MetadataStore metadataStore , Semaphore repairPermits ) { \n - this ( storeRepo , metadataStore , repairPermits , false , NUMBER0 ) ; \n + this ( storeRepo , metadataStore , repairPermits , true , NUMBER0 ) ; \n } \n \n public RepairJob ( StoreRepository storeRepo ,", "msg_token": "Made deleteOnly true as default in RepairJob"} {"diff": " public class InMemoryDataSource < T extends Cacheable > implements DataSource < T > { \n List < T > newItems = new LinkedList < > ( ) ; \n for ( T i : items ) { \n if ( i . equals ( item ) ) { \n - items . add ( item ) ; \n + newItems . add ( item ) ; \n } else { \n - items . add ( i ) ; \n + newItems . add ( i ) ; \n } \n } \n this . items = newItems ;", "msg_token": "Fix little bug I ve found in InMemoryDataSource"} {"diff": " public abstract class SearchSelectionFragment extends BaseOsmAndDialogFragment { \n clearButton . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n - searchEditText . setText ( null ) ; \n + dismiss ( ) ; \n } \n } ) ; \n return view ;", "msg_token": "Cross now closes SearchSelectionDialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class InspectionNodeInfo extends JPanel { \n description . setContentType ( UIUtil . HTML_MIME ) ; \n description . setEditable ( false ) ; \n description . setOpaque ( false ) ; \n - if ( Registry . is ( STRING0 ) ) { \n - description . setBackground ( UIUtil . getLabelBackground ( ) ) ; \n - description . setForeground ( UIUtil . getLabelForeground ( ) ) ; \n - } \n description . addHyperlinkListener ( BrowserHyperlinkListener . INSTANCE ) ; \n final String toolDescription = toolWrapper . loadDescription ( ) ; \n SingleInspectionProfilePanel . readHTML ( description , SingleInspectionProfilePanel . toHTML ( description , toolDescription == null ? STRING1 : toolDescription , false ) ) ;", "msg_token": "remove hack for transparent editor pane from InspectionNodeInfo"} {"diff": " public class StandardGraphIO implements GraphIO , VizArchitecture { \n graphDrawable . graphComponent . setCursor ( Cursor . getDefaultCursor ( ) ) ; \n } \n \n + vizEventManager . mouseReleased ( ) ; \n if ( pressing ) { \n pressing = false ; \n }", "msg_token": "Fix mouse released"} {"diff": " public class Image \n final ErrorHandler errorHandler , \n final long correlationId ) \n { \n + System . out . println ( STRING0 + this ) ; \n this . correlationId = correlationId ; \n this . sessionId = sessionId ; \n this . subscriberPosition = subscriberPosition ; \n public class Image \n \n public void delete ( ) \n { \n + System . out . println ( STRING1 + Image . this ) ; \n logBuffers . close ( ) ; \n } \n }", "msg_token": "Cleanly separate the close and release logic in publications"} {"diff": " public class Iconify { \n COMMENT \n COMMENT \n COMMENT \n - static Icon findIconForKey ( String iconKey ) { \n + public static Icon findIconForKey ( String iconKey ) { \n for ( int i = NUMBER0 , iconFontDescriptorsSize = iconFontDescriptors . size ( ) ; i < iconFontDescriptorsSize ; i ++ ) { \n IconFontDescriptorWrapper iconFontDescriptor = iconFontDescriptors . get ( i ) ; \n Icon icon = iconFontDescriptor . getIcon ( iconKey ) ;", "msg_token": "Opened method findIconForKey"} {"diff": " public class PlainTextPresentation extends AbstractPresentation implements IAdap \n \n @ override \n public void refreshData ( boolean refreshMetadata , boolean append ) { \n + colWidths = null ; \n if ( controller . isRecordMode ( ) ) { \n printRecord ( ) ; \n } else {", "msg_token": "PlainText presentation rendering fix"} {"diff": " import static NAMESPACE ; \n \n public class SettingRunner implements Runner { \n private static final GlobalSettingParser settingParser = new GlobalSettingParser ( ) ; \n - private final Optional < Integer > port ; \n private final ImmutableList < GlobalSetting > globalSettings ; \n private final Optional < String > env ; \n private final StartArgs startArgs ; \n public class SettingRunner implements Runner { \n private final FluentIterable < File > files ; \n \n public SettingRunner ( InputStream stream , StartArgs args ) { \n - this . port = args . getPort ( ) ; \n this . env = args . getEnv ( ) ; \n this . globalSettings = settingParser . parse ( stream ) ; \n this . files = from ( globalSettings ) . transform ( toFile ( ) ) ; \n public class SettingRunner implements Runner { \n } \n \n private Predicate < ? super GlobalSetting > byEnv ( final Optional < String > env ) { \n - \n return new Predicate < GlobalSetting > ( ) { \n @ override \n public boolean apply ( GlobalSetting globalSetting ) {", "msg_token": "removed unused port from setting runner"} {"diff": " public class PipeItemsEmerald extends PipeItemsWood implements ISpecialInventory \n \n COMMENT \n @ override \n - public void readFromNBT ( NBTTagCompound nbttagcompound ) { \n - super . readFromNBT ( nbttagcompound ) ; \n - filters . readFromNBT ( nbttagcompound ) ; \n + public void readFromNBT ( NBTTagCompound nbt ) { \n + super . readFromNBT ( nbt ) ; \n + filters . readFromNBT ( nbt ) ; \n + currentFilter = nbt . getInteger ( STRING0 ) ; \n } \n \n @ override \n - public void writeToNBT ( NBTTagCompound nbttagcompound ) { \n - super . writeToNBT ( nbttagcompound ) ; \n - filters . writeToNBT ( nbttagcompound ) ; \n + public void writeToNBT ( NBTTagCompound nbt ) { \n + super . writeToNBT ( nbt ) ; \n + filters . writeToNBT ( nbt ) ; \n + nbt . setInteger ( STRING0 , currentFilter ) ; \n } \n \n SINGLE", "msg_token": "Emerald Pipes should remember their state better"} {"diff": " public class NettyConnectionsPool implements ConnectionsPool < String , Channel > { \n log . debug ( STRING0 , trackedIdleConnections . size ( ) ) ; \n } \n } else { \n - log . debug ( STRING1 , config . getMaxConnectionPerHost ( ) ) ; \n + log . debug ( STRING2 , config . getMaxConnectionPerHost ( ) , uri ) ; \n added = false ; \n } \n return added ;", "msg_token": "Improve debug message"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix import style in storagedir"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JumpToLastEditAction extends AnAction { \n presentation . setEnabled ( false ) ; \n return ; \n } \n - Editor editor = PlatformDataKeys . EDITOR . getData ( dataContext ) ; \n - if ( editor == null ) { \n - presentation . setEnabled ( false ) ; \n - return ; \n - } \n presentation . setEnabled ( IdeDocumentHistory . getInstance ( project ) . isNavigatePreviousChangeAvailable ( ) ) ; \n } \n }", "msg_token": "allow Ctrl Shift Backspace even if all editors are closed"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class TestCreators3 extends BaseMapTest \n + public class TestCreators421 extends BaseMapTest \n { \n static class MultiCtor \n {", "msg_token": "move failing test to failing so as to prevent CI failures github merge warnings"} {"diff": " public class GrailsResourceUtils { \n for ( Pattern COMPILER_ROOT_PATTERN : COMPILER_ROOT_PATTERNS ) { \n Matcher m = COMPILER_ROOT_PATTERN . matcher ( path ) ; \n if ( m . find ( ) ) { \n - return m . group ( m . groupCount ( ) ) ; \n + return m . group ( m . groupCount ( ) - NUMBER0 ) ; \n } \n } \n return null ; \n public class GrailsResourceUtilsTests extends TestCase { \n } \n \n public void testGetPathFromRoot ( ) throws Exception { \n - assertEquals ( STRING0 , GrailsResourceUtils . getPathFromRoot ( TEST_URL ) ) ; \n assertEquals ( STRING1 , GrailsResourceUtils . getPathFromRoot ( TEST_PACKAGE_URL ) ) ; \n + assertEquals ( STRING0 , GrailsResourceUtils . getPathFromRoot ( TEST_URL ) ) ; \n } \n \n public void testGetClassNameResource ( ) throws Exception {", "msg_token": "Fixed failing test"} {"diff": " public class ReceiverHandler extends BaseAnnotationHandler < HasReceiverRegistrati \n \n Receiver annotation = element . getAnnotation ( Receiver . class ) ; \n String [ ] actions = annotation . actions ( ) ; \n + String [ ] dataSchemes = annotation . dataSchemes ( ) ; \n Receiver . RegisterAt registerAt = annotation . registerAt ( ) ; \n boolean local = annotation . local ( ) ; \n \n - JFieldVar intentFilterField = holder . getIntentFilterField ( actions ) ; \n + JFieldVar intentFilterField = holder . getIntentFilterField ( actions , dataSchemes ) ; \n JFieldVar receiverField = createReceiverField ( holder , receiverName , methodName , hasIntentParam ) ; \n registerAndUnregisterReceiver ( holder , registerAt , intentFilterField , receiverField , local ) ; \n }", "msg_token": "handle dataSchemes in ReceiverHandler"} {"diff": " import NAMESPACE ; \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", "msg_token": "Fix Javadoc formatting"} {"diff": " public class QuickTour { \n \n SINGLE \n DBCursor cur = coll . find ( ) ; \n - while ( cur . hasNext ( ) ) { \n - System . out . println ( cur . next ( ) ) ; \n + try { \n + while ( cur . hasNext ( ) ) { \n + System . out . println ( cur . next ( ) ) ; \n + } \n + } finally { \n + cur . close ( ) ; \n } \n \n SINGLE \n public class QuickTour { \n System . out . println ( STRING0 + db . getLastError ( ) ) ; \n \n db . resetError ( ) ; \n + \n + SINGLE \n + m . close ( ) ; \n } \n }", "msg_token": "added calls to close"} {"diff": " public class MaterialMenuDrawable extends Drawable implements Animatable { \n } \n \n @ override public void stop ( ) { \n - if ( ! isRunning ( ) ) return ; \n - if ( transformation . isRunning ( ) ) { \n + if ( isRunning ( ) && transformation . isRunning ( ) ) { \n transformation . end ( ) ; \n } else { \n transformationRunning = false ;", "msg_token": "Remove unreachable statement in stop"} {"diff": " public class CommandContext { \n } \n \n public boolean matches ( String command ) { \n - return command . equalsIgnoreCase ( command ) ; \n + return this . command . equalsIgnoreCase ( command ) ; \n } \n \n public String getString ( int index ) {", "msg_token": "Fixed CommandContext matches always returning true"} {"diff": " public abstract class Log { \n } \n } \n } \n + public static void POST ( int n , Exception e ) { \n + if ( e . getMessage ( ) != null ) { \n + POST ( n , e . getMessage ( ) ) ; \n + } \n + POST ( n , e . toString ( ) ) ; \n + StackTraceElement [ ] els = e . getStackTrace ( ) ; \n + for ( int i = NUMBER0 ; i < els . length ; i ++ ) { \n + POST ( n , els [ i ] . toString ( ) ) ; \n + } \n + } \n \n public static void main ( String [ ] args ) { \n Log . info ( STRING0 ) ;", "msg_token": "Added a POST to log exceptions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EmergencyButton extends Button { \n Intent intent = new Intent ( ACTION_EMERGENCY_DIAL ) ; \n intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK \n | Intent . FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS ) ; \n - getContext ( ) . startActivity ( intent ) ; \n + getContext ( ) . startActivityAsUser ( intent , \n + new UserHandle ( mLockPatternUtils . getCurrentUser ( ) ) ) ; \n } \n }", "msg_token": "Fix bug where Keyguard s emergencydialer wasn t being launched with a userid"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - \n + @ deprecated \n public final class Constants { \n public static final String Package = STRING0 ; \n }", "msg_token": "Deprecate unused code"} {"diff": " public final class ValueGraphTest { \n \n @ after \n public void validateGraphState ( ) { \n - new EqualsTester ( ) . addEqualityGroup ( \n - graph , \n - Graphs . copyOf ( graph ) , \n - ImmutableValueGraph . copyOf ( graph ) ) . testEquals ( ) ; \n + new EqualsTester ( ) \n + . addEqualityGroup ( \n + graph , \n + Graphs . copyOf ( graph ) , \n + ImmutableValueGraph . copyOf ( graph ) ) \n + . addEqualityGroup ( \n + Graphs . copyOf ( ( Graph < Integer > ) graph ) , \n + ImmutableGraph . copyOf ( graph ) ) \n + . testEquals ( ) ; \n \n for ( Endpoints < Integer > edge : graph . edges ( ) ) { \n assertThat ( graph . edgeValue ( edge . nodeA ( ) , edge . nodeB ( ) ) ) . isNotNull ( ) ;", "msg_token": "Add a bit of test coverage for value graphs"} {"diff": " public final class AndroidManifest { \n this . minSdkVersion = minSdkVersion ; \n this . maxSdkVersion = maxSdkVersion ; \n this . targetSdkVersion = targetSdkVersion ; \n - debugabble = debuggable ; \n + this . debugabble = debuggable ; \n } \n \n SINGLE", "msg_token": "Fix unintentional self assignment in AndroidManifest java"} {"diff": " class SitePickerAdapter extends RecyclerView . Adapter < SitePickerAdapter . SiteViewH \n String searchTextLowerCase = searchText . toLowerCase ( ) ; \n \n for ( int i = NUMBER0 ; i < sites . size ( ) ; i ++ ) { \n - SiteRecord record = sites . get ( NUMBER0 ) ; \n + SiteRecord record = sites . get ( i ) ; \n String siteNameLowerCase = record . blogName . toLowerCase ( ) ; \n String hostNameLowerCase = record . hostName . toLowerCase ( ) ;", "msg_token": "Getting every index vs the first one every time"} {"diff": " public class MessagingController implements Runnable \n List < Message > messages = new ArrayList < Message > ( ) ; \n \n messages . add ( message ) ; \n - stats . unreadMessageCount += ( message . isSet ( Flag . SEEN ) == false ) ? NUMBER0 : NUMBER1 ; \n + stats . unreadMessageCount += ( ! message . isSet ( Flag . SEEN ) ) ? NUMBER0 : NUMBER1 ; \n stats . flaggedMessageCount += ( message . isSet ( Flag . FLAGGED ) ) ? NUMBER0 : NUMBER1 ; \n if ( listener != null ) \n {", "msg_token": "Simplify a boolean conditional"} {"diff": " public class ParcelTransactionWorker extends AbstractCompletionTransactionWorker \n public ParcelImplementations innerRun ( Provider < ASTType > valueProvider ) { \n \n ASTType value = valueProvider . get ( ) ; \n - Parcel parcelAnnotation = value . getAnnotation ( Parcel . class ) ; \n ASTAnnotation parcelASTAnnotation = value . getASTAnnotation ( Parcel . class ) ; \n \n ParcelableDescriptor analysis = parcelableAnalysis . analyze ( value , parcelASTAnnotation ) ;", "msg_token": "Removed unused variable"} {"diff": " public abstract class Parser extends Recognizer < Token , ParserATNSimulator > { \n return _input . getSourceName ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public List < String > toStrings ( List < ? extends Token > tokens ) { \n - if ( tokens == null ) return null ; \n - List < String > strings = new ArrayList < String > ( tokens . size ( ) ) ; \n - for ( int i = NUMBER0 ; i < tokens . size ( ) ; i ++ ) { \n - strings . add ( tokens . get ( i ) . getText ( ) ) ; \n - } \n - return strings ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused Parser utility method toStrings left over from output template"} {"diff": " public class TestAsyncContextImpl extends TomcatBaseTest { \n if ( flush ) { \n resp . flushBuffer ( ) ; \n } \n + try { \n + SINGLE \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + } catch ( InterruptedException e ) { \n + throw new ServletException ( e ) ; \n + } \n throw new ServletException ( STRING0 ) ; \n } \n }", "msg_token": "Fix an intermittent unit test failure"} {"diff": " public class AbstractQueueVisitorTest { \n counter . awaitQuiescence ( COMMENT false ) ; \n assertSame ( NUMBER0 , counter . getCount ( ) ) ; \n assertSame ( NUMBER1 , counter . activeParallelTasks ( ) ) ; \n - assertSame ( NUMBER2 , counter . getMaxRunningConcurrently ( ) ) ; \n + SINGLE \n + SINGLE \n } \n \n @ test", "msg_token": "Quick fix for AbstractQueueVisitorTest simpleCounter test flake"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ incubating \n public class BuildDashboardPlugin implements Plugin < ProjectInternal > { \n public class BuildDashboardPlugin implements Plugin < ProjectInternal > { \n project . getPlugins ( ) . apply ( ReportingBasePlugin . class ) ; \n \n final GenerateBuildDashboard buildDashboardTask = project . getTasks ( ) . create ( BUILD_DASHBOARD_TASK_NAME , GenerateBuildDashboard . class ) ; \n + buildDashboardTask . setDescription ( STRING0 ) ; \n + buildDashboardTask . setGroup ( STRING1 ) ; \n \n DirectoryReport htmlReport = buildDashboardTask . getReports ( ) . getHtml ( ) ; \n ConventionMapping htmlReportConventionMapping = new DslObject ( htmlReport ) . getConventionMapping ( ) ;", "msg_token": "Added a description and group to the buildDashboard task"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLAbstract imple \n public static final String KEYWORD_ORDER_BY = STRING0 ; \n public static final String KEYWORD_LIMIT = STRING1 ; \n public static final String KEYWORD_RANGE = STRING2 ; \n + private static final String KEYWORD_FROM_2FIND = STRING3 + KEYWORD_FROM + STRING3 ; \n \n private OSQLAsynchQuery < ORecordSchemaAware < ? > > request ; \n private OSQLFilter compiledFilter ; \n public class OCommandExecutorSQLSelect extends OCommandExecutorSQLAbstract imple \n if ( ! word . toString ( ) . equals ( KEYWORD_SELECT ) ) \n return - NUMBER0 ; \n \n - int fromPosition = textUpperCase . indexOf ( KEYWORD_FROM , currentPos ) ; \n + int fromPosition = textUpperCase . indexOf ( KEYWORD_FROM_2FIND , currentPos ) ; \n if ( fromPosition == - NUMBER0 ) \n throw new OQueryParsingException ( STRING4 + KEYWORD_FROM , text , currentPos ) ;", "msg_token": "fixed bug on recognizing of FROM clause reported by Raf in ML"} {"diff": " public class OLocalHashTable < K , V > extends OSharedResourceAdaptive { \n } \n \n public V get ( K key ) { \n + if ( key == null ) \n + return null ; \n + \n acquireSharedLock ( ) ; \n try { \n key = keySerializer . preprocess ( key , ( Object [ ] ) keyTypes ) ; \n public class OSBTree < K , V > extends ODurableComponent implements OTreeInternal < K , \n } \n \n public V get ( K key ) { \n + if ( key == null ) \n + return null ; \n + \n acquireSharedLock ( ) ; \n try { \n key = keySerializer . preprocess ( key , ( Object [ ] ) keyTypes ) ;", "msg_token": "fixed get value by null key"} {"diff": " public class KeyguardBottomAreaView extends FrameLayout implements View . OnClickL \n public void onScreenTurnedOff ( int why ) { \n updateLockIcon ( ) ; \n } \n + \n + @ override \n + public void onKeyguardVisibilityChanged ( boolean showing ) { \n + updateLockIcon ( ) ; \n + } \n } ; \n \n public void setKeyguardIndicationController (", "msg_token": "Fix stale unlock icon"} {"diff": " public final class JavassistProxyFactory \n try \n { \n SINGLE \n - String methodBody = STRING0 ; \n + String methodBody = STRING1 ; \n generateProxyClass ( Connection . class , ConnectionProxy . class , methodBody ) ; \n \n - SINGLE \n - methodBody = STRING2 ; \n + SINGLE \n + methodBody = STRING3 ; \n generateProxyClass ( Statement . class , StatementProxy . class , methodBody ) ; \n - generateProxyClass ( CallableStatement . class , CallableStatementProxy . class , methodBody ) ; \n - generateProxyClass ( PreparedStatement . class , PreparedStatementProxy . class , methodBody ) ; \n generateProxyClass ( ResultSet . class , ResultSetProxy . class , methodBody ) ; \n + \n + SINGLE \n + methodBody = STRING2 ; \n + generateProxyClass ( PreparedStatement . class , PreparedStatementProxy . class , methodBody ) ; \n + generateProxyClass ( CallableStatement . class , CallableStatementProxy . class , methodBody ) ; \n } \n catch ( Exception e ) \n {", "msg_token": "Remove unnecessary casts in the generated proxies"} {"diff": " public class DoSFilter implements Filter \n SINGLE \n if ( _insertHeaders ) \n ( ( HttpServletResponse ) response ) . addHeader ( STRING0 , STRING1 ) ; \n - Continuation continuation = ContinuationSupport . getContinuation ( request , response ) ; \n + Continuation continuation = ContinuationSupport . getContinuation ( request ) ; \n request . setAttribute ( __TRACKER , tracker ) ; \n if ( _delayMs > NUMBER0 ) \n continuation . setTimeout ( _delayMs ) ;", "msg_token": "avoid deprecated method"} {"diff": " public class BluetoothA2dpService extends IBluetoothA2dp . Stub { \n private boolean isSinkDevice ( String address ) { \n String uuids [ ] = mBluetoothService . getRemoteUuids ( address ) ; \n UUID uuid ; \n - for ( String deviceUuid : uuids ) { \n - uuid = UUID . fromString ( deviceUuid ) ; \n - if ( BluetoothUuid . isAudioSink ( uuid ) ) { \n - return true ; \n + if ( uuids != null ) { \n + for ( String deviceUuid : uuids ) { \n + uuid = UUID . fromString ( deviceUuid ) ; \n + if ( BluetoothUuid . isAudioSink ( uuid ) ) { \n + return true ; \n + } \n } \n } \n return false ;", "msg_token": "Fix NullPointerException when checking if its a sinkDevice"} {"diff": " import NAMESPACE \n public class UnderSwipeableExampleActivity extends AppCompatActivity implements ItemPinnedMessageDialogFragment . EventListener { \n private static final String FRAGMENT_TAG_DATA_PROVIDER = STRING0 ; \n private static final String FRAGMENT_LIST_VIEW = STRING1 ; \n - private static final String FRAGMENT_TAG_ITEM_PINNED_DIALOG = STRING2 ; \n \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n public class UnderSwipeableExampleActivity extends AppCompatActivity implements \n snackbar . show ( ) ; \n } \n \n - private void onItemUndoActionClicked ( ) { \n - int position = getDataProvider ( ) . undoLastRemoval ( ) ; \n - if ( position >= NUMBER0 ) { \n - final Fragment fragment = getSupportFragmentManager ( ) . findFragmentByTag ( FRAGMENT_LIST_VIEW ) ; \n - ( ( RecyclerListViewFragment ) fragment ) . notifyItemInserted ( position ) ; \n - } \n - } \n - \n SINGLE \n @ override \n public void onNotifyItemPinnedDialogDismissed ( int itemPosition , boolean ok ) {", "msg_token": "Remove unused codes"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PublishRequest extends RequestBase { \n \n - private static final Log log = LogFactory . getLog ( RequestBase . class ) ; \n + private static final Log log = LogFactory . getLog ( PublishRequest . class ) ; \n \n protected static HashMap < String , Object > responseTemplate = new HashMap < String , Object > ( ) ;", "msg_token": "Use the right class for the logger"} {"diff": " public class Utils { \n \n Calendar cal = getAirtimeCalendar ( airtime , prefs ) ; \n \n - SINGLE \n final java . text . DateFormat timeFormat = DateFormat . getTimeFormat ( context ) ; \n final SimpleDateFormat dayFormat = new SimpleDateFormat ( STRING0 ) ; \n Date airDate = cal . getTime ( ) ; \n public class Utils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static void setPosterBitmap ( ImageView poster , String path , boolean isBusy , \n Context context ) {", "msg_token": "Remove irrelevant TODOs"} {"diff": " public class FetchBlogListWPOrg extends FetchBlogListAbstract { \n private boolean mHttpAuthRequired ; \n private boolean mErroneousSslCertificate ; \n private int mErrorMsgId ; \n - private boolean mForcedXmlrpcUrl ; \n \n public FetchBlogListWPOrg ( String username , String password , String selfHostedUrl ) { \n super ( username , password ) ;", "msg_token": "remove unused field"} {"diff": " \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fix up the license on CaseCanonicalize"} {"diff": " public class ClassWithOnlyPrivateConstructorsInspectionBase extends BaseInspecti \n return ; \n } \n for ( PsiMethod constructor : constructors ) { \n - if ( constructor . hasModifierProperty ( PsiModifier . FINAL ) ) { \n + if ( ! constructor . hasModifierProperty ( PsiModifier . PRIVATE ) ) { \n return ; \n } \n } \n public class ClassWithOnlyPrivateConstructorsInspectionTest extends LightInspect \n STRING0 ) ; \n } \n \n + public void testPublicConstructor ( ) { \n + doTest ( STRING1 + \n + STRING2 + \n + STRING0 ) ; \n + } \n + \n @ nullable \n @ override \n protected InspectionProfileEntry getInspection ( ) {", "msg_token": "correct check that all constructors are private for Class with only private constructors should be declared final inspection"} {"diff": " public class DeprecationLogger { \n public static void nagUserWith ( String message ) { \n if ( isEnabled ( ) && METHODS . add ( message ) ) { \n LOGGER . warn ( message ) ; \n + logTraceIfNecessary ( ) ; \n } \n }", "msg_token": "Add missing deprecation trace for nagUserWith"} {"diff": " public class SiteSettingsFragment extends PreferenceFragment \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n String entry = input . getText ( ) . toString ( ) ; \n - if ( ! mEditingList . contains ( entry ) ) { \n + if ( ! TextUtils . isEmpty ( entry ) && ! mEditingList . contains ( entry ) ) { \n mEditingList . add ( entry ) ; \n list . setAdapter ( new ArrayAdapter < > ( getActivity ( ) , \n R . layout . wp_simple_list_item_1 ,", "msg_token": "Preventing users from adding blank keys to list editor"} {"diff": " public class Message extends AbstractEntity { \n if ( message == null ) { \n return false ; \n } \n - return ( this . getType ( ) == Message . TYPE_TEXT \n + return ( message . getType ( ) == Message . TYPE_TEXT \n + && message . getEncryption ( ) != Message . ENCRYPTION_PGP \n && this . getType ( ) == message . getType ( ) \n + && this . getEncryption ( ) == message . getEncryption ( ) \n && this . getCounterpart ( ) . equals ( message . getCounterpart ( ) ) \n && ( message . getTimeSent ( ) - this . getTimeSent ( ) ) <= NUMBER0 && ( ( this \n . getStatus ( ) == message . getStatus ( ) ) || ( this . getStatus ( ) == Message . STATUS_SEND && message", "msg_token": "require encrypted to be the same for messages to get merged"} {"diff": " public class JavaBuild { \n SINGLE \n \n List < String > runOptions = new ArrayList < String > ( ) ; \n - if ( Preferences . getBoolean ( STRING0 ) ) { \n + \n + SINGLE \n + SINGLE \n + if ( Preferences . getBoolean ( STRING0 ) && \n + ! exportVariant . equals ( STRING1 ) ) { \n runOptions . add ( STRING2 + Preferences . get ( STRING3 ) + STRING4 ) ; \n runOptions . add ( STRING5 + Preferences . get ( STRING6 ) + STRING4 ) ; \n }", "msg_token": "Ignore memory options when exporting for ARM"} {"diff": " public abstract class HazelcastMBean < T > implements DynamicMBean , MBeanRegistrati \n try { \n return new MBeanAttributeInfo ( name , description , method , null ) ; \n } catch ( IntrospectionException e ) { \n - throw new IllegalArgumentException ( ) ; \n + throw new IllegalArgumentException ( e ) ; \n } \n } \n \n public class ManagementService implements DistributedObjectListener { \n try { \n return new ObjectName ( DOMAIN , properties ) ; \n } catch ( MalformedObjectNameException e ) { \n - throw new IllegalArgumentException ( ) ; \n + throw new IllegalArgumentException ( e ) ; \n } \n }", "msg_token": "Do not eat exception cause in MBean code"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NewDirectoryProjectAction extends AnAction implements DumbAware { \n } \n } \n \n + String generatorName = generator == null ? STRING0 : ConvertUsagesUtil . ensureProperKey ( generator . getName ( ) ) ; \n + UsageTrigger . trigger ( STRING1 + generatorName ) ; \n Object settings = null ; \n if ( generator != null ) { \n try {", "msg_token": "collect statistics for New Project action"} {"diff": " public class WebView extends AbsoluteLayout \n mProvider . getViewDelegate ( ) . onAttachedToWindow ( ) ; \n } \n \n + COMMENT \n @ override \n - protected void onDetachedFromWindow ( ) { \n + protected void onDetachedFromWindowInternal ( ) { \n mProvider . getViewDelegate ( ) . onDetachedFromWindow ( ) ; \n - super . onDetachedFromWindow ( ) ; \n + super . onDetachedFromWindowInternal ( ) ; \n } \n \n @ override", "msg_token": "Switch WebView to onDetachedFromWindowInternal"} {"diff": " public class JBTable extends JTable implements ComponentWithEmptyText , Component \n myStriped = striped ; \n if ( striped ) { \n getColumnModel ( ) . setColumnMargin ( NUMBER0 ) ; \n + setIntercellSpacing ( new Dimension ( getIntercellSpacing ( ) . width , NUMBER0 ) ) ; \n setShowGrid ( false ) ; \n } \n }", "msg_token": "disabling inter cell spacing for striped tables"} {"diff": " public class CachedResource implements Resource { \n \n \n final DirectBufferCache dataCache = cachingResourceManager . getDataCache ( ) ; \n + if ( dataCache == null ) { \n + underlyingResource . serve ( exchange ) ; \n + return ; \n + } \n DirectBufferCache . CacheEntry existing = dataCache . get ( cacheKey ) ; \n SINGLE \n if ( existing == null || ! existing . enabled ( ) || ! existing . reference ( ) ) {", "msg_token": "Allow the buffer cache to be null in the cached resource handler"} {"diff": " public class DisplayMetrics { \n public static final int DENSITY_400 = NUMBER0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static final int DENSITY_XXHIGH = NUMBER1 ;", "msg_token": "Remove obsolete remark from XXHDPI comment"} {"diff": " public abstract class AbstractFuture < V > implements ListenableFuture < V > { \n SINGLE \n SINGLE \n SINGLE \n - Throwable cause = GENERATE_CANCELLATION_CAUSES ? newCancellationCause ( ) : null ; \n + Throwable cause = GENERATE_CANCELLATION_CAUSES \n + ? new CancellationException ( STRING0 ) \n + : null ; \n Object valueToSet = new Cancellation ( mayInterruptIfRunning , cause ) ; \n do { \n if ( ATOMIC_HELPER . casValue ( this , localValue , valueToSet ) ) { \n public abstract class AbstractFuture < V > implements ListenableFuture < V > { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private Throwable newCancellationCause ( ) { \n - return new CancellationException ( STRING0 ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Delete AbstractFuture newCancellationCause"} {"diff": " public class StreetVertexIndexServiceImpl implements StreetVertexIndexService { \n SINGLE \n SINGLE \n Set < String > uniqueNameSet = new HashSet < String > ( ) ; \n - for ( Edge e : intersection . getOutgoing ( ) ) \n - uniqueNameSet . add ( e . getName ( ) ) ; \n + for ( Edge e : intersection . getOutgoing ( ) ) { \n + if ( e instanceof StreetEdge ) { \n + uniqueNameSet . add ( e . getName ( ) ) ; \n + } \n + } \n List < String > uniqueNames = new ArrayList < String > ( uniqueNameSet ) ; \n if ( uniqueNames . size ( ) > NUMBER0 ) \n name = String . format ( STRING0 , uniqueNames . get ( NUMBER1 ) ,", "msg_token": "do not include STLs and the like in insersection reverse geocode"} {"diff": " public class RelaunchLibraryManager \n downloadMonitor . updateProgressString ( infoString ) ; \n FMLRelaunchLog . info ( infoString ) ; \n URLConnection connection = libDownload . openConnection ( ) ; \n + connection . setConnectTimeout ( NUMBER0 ) ; \n + connection . setReadTimeout ( NUMBER0 ) ; \n connection . setRequestProperty ( STRING0 , STRING1 ) ; \n int sizeGuess = connection . getContentLength ( ) ; \n performDownload ( connection . getInputStream ( ) , sizeGuess , hash , libFile ) ; \n public class RelaunchLibraryManager \n { \n if ( downloadMonitor . stopIt ) \n { \n - FMLRelaunchLog . warning ( STRING2 ) ; \n + FMLRelaunchLog . warning ( STRING3 ) ; \n return ; \n } \n if ( e instanceof RuntimeException ) throw ( RuntimeException ) e ; \n FMLRelaunchLog . severe ( STRING4 + \n STRING5 + \n - STRING6 , libFile . getName ( ) ) ; \n + STRING7 , libFile . getName ( ) ) ; \n libFile . delete ( ) ; \n throw new RuntimeException ( STRING8 , e ) ; \n }", "msg_token": "Add a connect and read timeout for downloading libraries"} {"diff": " public interface RegistrySpec { \n COMMENT \n < O > RegistrySpec addLazy ( TypeToken < O > type , Supplier < ? extends O > supplier ) ; \n \n - default < O > RegistrySpec addLazyAsync ( Class < O > type , Supplier < ? extends Promise < ? extends O > > supplier ) { \n - return addLazy ( Types . promiseOf ( type ) , Types . cast ( supplier ) ) ; \n - } \n - \n - default < O > RegistrySpec addLazyAsync ( TypeToken < O > type , Supplier < ? extends Promise < ? extends O > > supplier ) { \n - return addLazy ( Types . promiseOf ( type ) , Types . cast ( supplier ) ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused methods"} {"diff": " public class DefaultServlet \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultServlet \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebdavServlet \n \n SINGLE \n Stack < String > stackBelow = new Stack < String > ( ) ; \n - \n + \n while ( ( ! stack . isEmpty ( ) ) && ( depth >= NUMBER0 ) ) { \n \n String currentPath = stack . pop ( ) ; \n public class WebdavServlet \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Correcting JavaDoc for HTTP methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebFilter implements Filter { \n } \n \n private static String generateSessionId ( ) { \n - final String id = UuidUtil . buildRandomUuidString ( ) ; \n + final String id = UUID . randomUUID ( ) . toString ( ) ; \n final StringBuilder sb = new StringBuilder ( STRING0 ) ; \n final char [ ] chars = id . toCharArray ( ) ; \n for ( final char c : chars ) {", "msg_token": "use SecureRandom instead of Random"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed white space"} {"diff": " public class HttpChannel < T > implements HttpParser . RequestHandler < T > , Runnable , H \n private static final Logger LOG = Log . getLogger ( HttpChannel . class ) ; \n private static final ThreadLocal < HttpChannel < ? > > __currentChannel = new ThreadLocal < > ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static HttpChannel < ? > getCurrentHttpChannel ( ) \n { \n return __currentChannel . get ( ) ; \n public class HttpConnection extends AbstractConnection implements Runnable , Http \n private volatile ByteBuffer _chunk = null ; \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static HttpConnection getCurrentConnection ( ) \n { \n return __currentConnection . get ( ) ;", "msg_token": "Improved javadoc for accessing HttpChannel and HttpConnection"} {"diff": " public class TraktSync extends AsyncTask < Void , Void , Integer > { \n for ( TvShow tvShow : shows ) { \n if ( tvdbId . equalsIgnoreCase ( tvShow . getTvdbId ( ) ) ) { \n if ( mResult . length ( ) != NUMBER0 ) { \n - mResult += STRING0 ; \n + mResult += STRING1 ; \n } \n \n if ( mIsSyncingUnseen ) { \n public class TraktSync extends AsyncTask < Void , Void , Integer > { \n case SUCCESS_WORK : \n message = STRING2 ; \n if ( mResult != null ) { \n - message += STRING3 + mResult + STRING4 ; \n + message += STRING5 + mResult + STRING4 ; \n } \n break ; \n case SUCCESS_NOWORK :", "msg_token": "Fix message creation of trakt sync task"} {"diff": " public class NamespaceGenTest extends LightCodeInsightFixtureTestCase { \n assertEquals ( NUMBER0 , main . invoke ( null , STRING0 ) ) ; \n } \n \n + public void testBoxedInt ( ) throws Exception { \n + loadText ( STRING1 ) ; \n + final Method main = generateFunction ( ) ; \n + assertEquals ( NUMBER1 , main . invoke ( null , NUMBER1 ) ) ; \n + assertEquals ( NUMBER2 , main . invoke ( null , new Object [ ] { null } ) ) ; \n + } \n + \n private void binOpTest ( final String text , final int arg1 , final int arg2 , final int expected ) throws Exception { \n loadText ( text ) ; \n System . out . println ( generateToText ( ) ) ;", "msg_token": "failing test for int boxing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n public abstract class AbstractOperatorMatcher < T > implements RequestMatcher { \n protected abstract RequestMatcher newMatcher ( final RequestExtractor < T > extractor , final Resource resource ) ; \n \n public abstract class AbstractOperatorMatcher < T > implements RequestMatcher { \n \n if ( target instanceof String [ ] ) { \n String [ ] contents = ( String [ ] ) target ; \n - for ( String content : contents ) { \n - if ( predicate . apply ( content ) ) { \n - return true ; \n - } \n - } \n + return any ( newArrayList ( contents ) , predicate ) ; \n } \n \n return false ;", "msg_token": "used guava to simplify code in operator matcher"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class IndexCommand extends XaCommand \n { \n static final byte DEFINE_COMMAND = ( byte ) NUMBER0 ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class IndexDefineCommand extends XaCommand \n { \n private final AtomicInteger nextIndexNameId = new AtomicInteger ( ) ;", "msg_token": "Added some class level javadoc"} {"diff": " public class DnsNameResolverTest { \n \n final Map < String , InetAddress > resultB = testResolve0 ( EXCLUSIONS_RESOLVE_A , InternetProtocolFamily . IPv4 ) ; \n \n - assertThat ( resultA , is ( resultB ) ) ; \n + SINGLE \n + assertThat ( resultB . size ( ) , is ( resultA . size ( ) ) ) ; \n + for ( Entry < String , InetAddress > e : resultA . entrySet ( ) ) { \n + InetAddress expected = e . getValue ( ) ; \n + InetAddress actual = resultB . get ( e . getKey ( ) ) ; \n + assertThat ( actual , is ( expected ) ) ; \n + } \n } finally { \n SINGLE \n resolver . setTtl ( oldMinTtl , oldMaxTtl ) ;", "msg_token": "Improve DnsNameResolverTest testResolveA"} {"diff": " public final class ActionManagerImpl extends ActionManagerEx implements JDOMExte \n reportActionError ( pluginId , STRING0 + e . getMessage ( ) + STRING1 ) ; \n return null ; \n } \n + catch ( UnsupportedClassVersionError e ) { \n + reportActionError ( pluginId , STRING2 + className ) ; \n + return null ; \n + } \n catch ( Exception e ) { \n final String message = STRING3 + className + STRING4 ; \n if ( pluginId == null ) {", "msg_token": "catch UnsupportedClassVersionError when loading group class"} {"diff": " public final class HdmiControlService extends SystemService { \n } \n } else { \n Slog . i ( TAG , STRING0 ) ; \n + return ; \n } \n \n mMhlController = HdmiMhlControllerStub . create ( this ) ; \n class TvInputHardwareManager implements TvInputHal . Callback { \n } catch ( RemoteException e ) { \n Slog . w ( TAG , STRING1 , e ) ; \n } \n + } else { \n + Slog . w ( TAG , STRING2 ) ; \n } \n } \n }", "msg_token": "Do not publish the service if native HAL is not ready"} {"diff": " public class NewExprent extends Exprent { \n } \n \n int start = enumconst ? NUMBER0 : NUMBER1 ; \n - if ( start < lstParameters . size ( ) ) { \n + if ( ! enumconst || start < lstParameters . size ( ) ) { \n buf . append ( STRING0 ) ; \n \n boolean firstpar = true ;", "msg_token": "missing parentheses on default constructor invocation"} {"diff": " public final class FBReader extends ZLAndroidActivity { \n @ override \n public void onResume ( ) { \n super . onResume ( ) ; \n - sendBroadcast ( new Intent ( getApplicationContext ( ) , KillerCallback . class ) ) ; \n + final Context context = getApplicationContext ( ) ; \n + if ( context != null ) { \n + sendBroadcast ( new Intent ( context , KillerCallback . class ) ) ; \n + } \n ControlButtonPanel . restoreVisibilities ( ) ; \n }", "msg_token": "fixed possible NPE"} {"diff": " final class NodeAndNPMInstaller { \n public NodeAndNPMInstaller ( String nodeVersion , String npmVersion , File workingDirectory , Log log ) { \n this . workingDirectory = workingDirectory ; \n this . log = log ; \n - this . architecture = Architecture . x86 ; \n + this . architecture = Architecture . guess ( ) ; \n this . nodeVersion = nodeVersion ; \n this . npmVersion = npmVersion ; \n }", "msg_token": "fix bug don t hardcode x86 architecture use Architecture guess"} {"diff": " \n \n package NAMESPACE ; \n \n - public class MongoException extends Exception { \n + public class MongoException extends RuntimeException { \n \n public MongoException ( String msg ) { \n super ( msg ) ;", "msg_token": "Made MongoException unchecked"} {"diff": " public class ShutdownMonitor \n { \n return ; \n } \n - System . err . println ( STRING0 ) ; \n + if ( DEBUG ) \n + System . err . println ( STRING0 ) ; \n super . start ( ) ; \n }", "msg_token": "removed verbose output"} {"diff": " public class UpcomingFragment extends SherlockFragment implements \n super . onCreateContextMenu ( menu , v , menuInfo ) ; \n \n SINGLE \n + menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER0 , R . string . checkin ) ; \n AdapterContextMenuInfo info = ( AdapterContextMenuInfo ) menuInfo ; \n WatchedBox watchedBox = ( WatchedBox ) info . targetView . findViewById ( R . id . watchedBoxUpcoming ) ; \n if ( watchedBox . isChecked ( ) ) { \n - menu . add ( NUMBER0 , CONTEXT_FLAG_UNWATCHED_ID , NUMBER1 , R . string . unmark_episode ) ; \n + menu . add ( NUMBER0 , CONTEXT_FLAG_UNWATCHED_ID , NUMBER2 , R . string . unmark_episode ) ; \n } else { \n - menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER0 , R . string . mark_episode ) ; \n + menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER1 , R . string . mark_episode ) ; \n } \n - menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER2 , R . string . checkin ) ; \n } \n \n @ override", "msg_token": "Put check in context item first like in other places"} {"diff": " public class CsvParser extends CustomParser { \n DParseTask callback ; \n \n \n - public CsvParser ( Key aryKey , int numColumns , byte separator , byte decimalSeparator , DParseTask callback , boolean skipFirstLine ) throws Exception { \n + public CsvParser ( Key aryKey , int numColumns , byte separator , byte decimalSeparator , DParseTask callback , boolean skipFirstLine ) { \n _aryKey = aryKey ; \n _numColumns = numColumns ; \n CHAR_SEPARATOR = separator ; \n public class CsvParser extends CustomParser { \n } \n \n @ suppresswarnings ( STRING0 ) \n - @ override public final void parse ( Key key ) throws Exception { \n + @ override public final void parse ( Key key ) { \n ValueArray _ary = _aryKey == null ? null : ValueArray . value ( DKV . get ( _aryKey ) ) ; \n ValueString _str = new ValueString ( ) ; \n byte [ ] bits = DKV . get ( key ) . memOrLoad ( ) ;", "msg_token": "CsvParser does not throw exceptions"} {"diff": " public class PagerSlidingTabStrip extends HorizontalScrollView { \n protected void onDraw ( Canvas canvas ) { \n super . onDraw ( canvas ) ; \n \n - if ( isInEditMode ( ) ) { \n - return ; \n - } \n - if ( tabsContainer == null || tabsContainer . getChildCount ( ) == NUMBER0 ) { \n + if ( isInEditMode ( ) || tabCount == NUMBER0 ) { \n return ; \n }", "msg_token": "Using tabCount instead of tabsContainer getChildCount"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SelectQuery extends BaseQuery < Result < SelectResultValue > > \n this . dimensions = dimensions ; \n this . metrics = metrics ; \n this . pagingSpec = pagingSpec ; \n + \n + Preconditions . checkNotNull ( pagingSpec , STRING0 ) ; \n } \n \n @ override", "msg_token": "Added null check for the pagingSpec on a Select Query"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Season { \n \n @ serializedname ( STRING0 ) \n public int tvdbId ; \n - \n + \n public int season ; \n - \n + \n public List < Episode > episodes ; \n \n }", "msg_token": "Use correct kind of Episode"} {"diff": " public final class Iconics { \n for ( String fontsClassPath : fonts ) { \n try { \n ITypeface typeface = ( ITypeface ) Class . forName ( fontsClassPath ) . newInstance ( ) ; \n + validateFont ( typeface ) ; \n FONTS . put ( typeface . getMappingPrefix ( ) , typeface ) ; \n } catch ( Exception e ) { \n Log . e ( STRING0 , STRING1 + fontsClassPath ) ; \n public final class Iconics { \n COMMENT \n COMMENT \n public static boolean registerFont ( ITypeface font ) { \n + validateFont ( font ) ; \n + \n FONTS . put ( font . getMappingPrefix ( ) , font ) ; \n return true ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static void validateFont ( ITypeface font ) { \n + if ( font . getMappingPrefix ( ) . length ( ) != NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING2 ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a simple sanity check to registered fonts length check for mapping prefix"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CodecsModule extends Graylog2Module { \n protected void configure ( ) { \n final MapBinder < String , Codec . Factory < ? extends Codec > > mapBinder = codecMapBinder ( ) ; \n \n + SINGLE \n + bind ( GelfChunkAggregator . class ) . in ( Scopes . SINGLETON ) ; \n + \n installCodec ( mapBinder , RawCodec . class ) ; \n installCodec ( mapBinder , SyslogCodec . class ) ; \n installCodec ( mapBinder , RandomHttpMessageCodec . class ) ;", "msg_token": "Bind GelfChunkAggregator as singleton"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class DumpByteCodeVisitor \n \n private String indent ( int level ) \n { \n - StringBuilder builder = new StringBuilder ( ) ; \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - for ( int i = NUMBER0 ; i < level ; i ++ ) { \n - builder . append ( STRING0 ) ; \n - } \n - return builder . toString ( ) ; \n + return Strings . repeat ( STRING0 , level ) ; \n } \n \n private void visitNestedNode ( String description , ByteCodeNode node , ByteCodeNode parent )", "msg_token": "Simplify indent in DumpByteCodeVisitor"} {"diff": " public class NetworkController extends BroadcastReceiver { \n } \n } else { \n iconId = R . drawable . stat_sys_no_sim ; \n + visible = false ; SINGLE \n } \n } else { \n SINGLE \n public class NetworkController extends BroadcastReceiver { \n } \n \n if ( DEBUG ) { \n - Slog . d ( TAG , STRING0 \n + Slog . d ( TAG , STRING1 \n + + ( mWifiConnected ? STRING2 : STRING3 ) \n + + ( mDataConnected ? STRING4 : STRING3 ) \n + + STRING5 \n + + ( ( mSignalStrength == null ) ? STRING6 : Integer . toString ( mSignalStrength . getLevel ( ) ) ) \n + + STRING7 \n + Integer . toHexString ( combinedSignalIconId ) \n + STRING8 + getResourceName ( combinedSignalIconId ) \n + STRING9 + Integer . toHexString ( dataDirectionOverlayIconId )", "msg_token": "Don t show network type if no SIM"} {"diff": " public class MetaDataSerializer extends EntitySerializer { \n \n private final String beanSuffix ; \n \n + @ nullable \n private final String beanPackageName ; \n \n private final NamingStrategy namingStrategy ;", "msg_token": "added Nullable annotations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import causing checkstyle to fail"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class IcqStatusEnum \n COMMENT \n COMMENT \n public static byte [ ] loadIcon ( String imagePath ) { \n - InputStream is = JabberStatusEnum . class . getClassLoader ( ) \n + InputStream is = IcqStatusEnum . class . getClassLoader ( ) \n . getResourceAsStream ( imagePath ) ; \n \n byte [ ] icon = null ;", "msg_token": "copy paste error fixed JabberStatusEnum replace by IcqStatusEnum"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SwaggerSampleApplication extends Application < SwaggerSampleConfigur \n public void run ( SwaggerSampleConfiguration configuration , Environment environment ) { \n environment . jersey ( ) . register ( new ApiListingResource ( ) ) ; \n environment . jersey ( ) . register ( new PetResource ( ) ) ; \n + environment . getObjectMapper ( ) . setSerializationInclusion ( JsonInclude . Include . NON_NULL ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n + BeanConfig config = new BeanConfig ( ) ; \n + config . setTitle ( STRING0 ) ; \n + config . setVersion ( STRING1 ) ; \n + config . setResourcePackage ( STRING2 ) ; \n + config . setScan ( true ) ; \n } \n }", "msg_token": "fixed application configuration"} {"diff": " public class ClusterResource extends RestResource { \n node . getTransportAddress ( ) , \n Tools . getISO8601String ( node . getLastSeen ( ) ) , \n node . getShortNodeId ( ) , \n - Tools . getLocalCanonicalHostname ( ) \n + node . getHostname ( ) \n ) ; \n } \n }", "msg_token": "Use actual node hostname in NodeSummary"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove broken unused imports"} {"diff": " public class XMLRPCClient implements XMLRPCClientInterface { \n SINGLE \n SINGLE \n Map < String , Object > map = ( Map < String , Object > ) XMLRPCSerializer . deserialize ( pullParser ) ; \n + consumeHttpEntity ( entity ) ; \n SINGLE \n if ( ! map . containsKey ( TAG_FAULT_STRING ) || ! map . containsKey ( TAG_FAULT_CODE ) ) { \n - throw new XMLRPCException ( STRING0 ) ; \n + throw new XMLRPCException ( STRING1 ) ; \n } \n String faultString = String . valueOf ( map . get ( TAG_FAULT_STRING ) ) ; \n int faultCode ; \n try { \n faultCode = ( int ) map . get ( TAG_FAULT_CODE ) ; \n } catch ( NumberFormatException | ClassCastException e ) { \n - throw new XMLRPCException ( STRING2 ) ; \n + throw new XMLRPCException ( STRING3 ) ; \n } \n - consumeHttpEntity ( entity ) ; \n throw new XMLRPCFault ( faultString , faultCode ) ; \n } else { \n consumeHttpEntity ( entity ) ;", "msg_token": "Consume Entity even in case of errors and improved logging"} {"diff": " public abstract class AbstractTreeBuilderCrashTest extends BaseTreeTestCase { \n } \n } \n \n - public static class NoYieldNoBackground extends AbstractTreeBuilderCrashTest { \n + public abstract static class NoYieldNoBackground extends AbstractTreeBuilderCrashTest { \n public NoYieldNoBackground ( ) { \n super ( false , false ) ; \n }", "msg_token": "do not run invalid test accidentally"} {"diff": " public enum Aggregations { \n \n SUM ( new SumAggregationFunction . SumAggregationFunctionFactory ( ) ) , \n MIN ( new MinAggregationFunction . MinAggregationFunctionFactory ( ) ) , \n - MAX ( new MaxAggregationFunction . MaxAggregationFunctionFactory ( ) ) , \n - SINGLE \n - ; \n - SINGLE \n + MAX ( new MaxAggregationFunction . MaxAggregationFunctionFactory ( ) ) ; \n \n SINGLE", "msg_token": "Remove unused enum values from Aggregations enum"} {"diff": " public class WebView extends AbsoluteLayout \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void freeMemoryForTests ( ) { \n + checkThread ( ) ; \n + getFactory ( ) . getStatics ( ) . freeMemoryForTests ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface WebViewFactoryProvider { \n String getDefaultUserAgent ( Context context ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + void freeMemoryForTests ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding freeMemoryForTests static method to WebView"} {"diff": " public abstract class DataSupport { \n } \n } \n \n + public static synchronized int deleteAll ( Class < ? > modelClass , String [ ] conditions ) { \n + DeleteHandler deleteHandler = new DeleteHandler ( Connector . getDatabase ( ) ) ; \n + return deleteHandler . onDeleteAll ( modelClass , conditions ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class DeleteHandler extends DataHandler { \n } \n } \n \n + int onDeleteAll ( Class < ? > modelClass , String [ ] conditions ) { \n + try { \n + checkConditionsCorrect ( conditions ) ; \n + return mDatabase . delete ( getTableName ( modelClass ) , getWhereClause ( conditions ) , \n + getWhereArgs ( conditions ) ) ; \n + } catch ( Exception e ) { \n + throw new DataSupportException ( e . getMessage ( ) ) ; \n + } \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add basic codes for deleteAll function"} {"diff": " public class GpsLocationProvider extends LocationProviderImpl { \n for ( int i = NUMBER0 ; i < size && l == null ; i ++ ) { \n Listener test = mListeners . get ( i ) ; \n if ( binder . equals ( test . mListener . asBinder ( ) ) ) { \n - SINGLE \n - return ; \n + l = test ; \n } \n }", "msg_token": "In removeGpsStatusListener remove the listener for real"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Remove unused import"} {"diff": " public class ServiceDay implements Serializable { \n } \n \n COMMENT \n - public boolean serviceIdRunning ( int serviceId ) { \n - return this . serviceIdsRunning . get ( serviceId ) ; \n + public boolean serviceRunning ( int serviceCode ) { \n + return this . serviceIdsRunning . get ( serviceCode ) ; \n } \n \n COMMENT \n - public boolean anyServiceRunning ( BitSet serviceIds ) { \n - return this . serviceIdsRunning . intersects ( serviceIds ) ; \n + public boolean anyServiceRunning ( BitSet serviceCodes ) { \n + return this . serviceIdsRunning . intersects ( serviceCodes ) ; \n } \n \n COMMENT", "msg_token": "rename serviceId to serviceCode"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SrvDiscoveryIntegrationTest extends ElasticsearchIntegrationTest { \n Lookup . setDefaultCache ( new MockedZoneCache ( STRING0 ) , DClass . IN ) ; \n } \n \n + @ after \n + public void clearDNSCache ( ) throws Exception { \n + Lookup . setDefaultCache ( new Cache ( ) , DClass . IN ) ; \n + } \n + \n @ test \n public void testClusterSrvDiscovery ( ) throws Exception { \n Settings localSettings = settingsBuilder ( )", "msg_token": "delete fake DNS cache after test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalOnlyOkHttpDownloader implements Downloader { \n SINGLE \n SINGLE \n connection . setRequestProperty ( STRING0 , \n - STRING1 ) ; \n + STRING2 ) ; \n } \n \n int responseCode = connection . getResponseCode ( ) ; \n public class LocalOnlyOkHttpDownloader implements Downloader { \n responseSource = connection . getHeaderField ( RESPONSE_SOURCE_ANDROID ) ; \n } \n \n + long contentLength = connection . getHeaderFieldInt ( STRING3 , - NUMBER0 ) ; \n boolean fromCache = parseResponseSourceHeader ( responseSource ) ; \n \n - return new Response ( connection . getInputStream ( ) , fromCache ) ; \n + return new Response ( connection . getInputStream ( ) , fromCache , contentLength ) ; \n } \n \n static File createDefaultCacheDir ( Context context ) {", "msg_token": "Set seconds for max stale cache control flag"} {"diff": " public class FakeMapView extends FakeViewGroup { \n \n public FakeMapView ( ViewGroup viewGroup ) { \n super ( viewGroup ) ; \n - \n mapController = mock ( MapController . class ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ suppresswarnings ( { STRING0 } ) \n + @ suppresswarnings ( { STRING1 } ) \n public class FakeView { \n private View realView ;", "msg_token": "add unused declarations"} {"diff": " public final class XcodeProvider implements TransitiveInfoProvider { \n if ( dependency . productType == XcodeProductType . EXTENSION ) { \n this . extensions . add ( dependency ) ; \n this . inputsToXcodegen . addTransitive ( dependency . inputsToXcodegen ) ; \n + this . additionalSources . addTransitive ( dependency . additionalSources ) ; \n } else { \n if ( doPropagate ) { \n this . propagatedDependencies . add ( dependency ) ;", "msg_token": "Propagate additional sources of an ios application s extension"} {"diff": " public abstract class IQ extends Packet { \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 public enum Type { \n \n + COMMENT \n + COMMENT \n + COMMENT \n get , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n set , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n result , \n - error ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + error , \n + ; \n \n COMMENT \n COMMENT", "msg_token": "Improve IQ Type javadoc"} {"diff": " public class FileUtilRt { \n boolean success = isDirectory ? f . mkdir ( ) : f . createNewFile ( ) ; \n if ( ! success ) { \n throw new IOException ( STRING0 + f + STRING1 + f . getParentFile ( ) + \n - STRING2 + Arrays . toString ( f . getParentFile ( ) . list ( ) ) ) ; \n + STRING2 + Arrays . asList ( f . getParentFile ( ) . list ( ) ) ) ; \n } \n \n return normalizeFile ( f ) ;", "msg_token": "avoid huge reallocation"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SingleConsumerNonblockingProducerDelayQueueTest { \n @ rule \n public TestRule watchman = TestUtil . WATCHMAN ; \n \n + @ beforeclass \n + public static void setupClass ( ) { \n + VirtualClock . setForCurrentThreadAndChildren ( Debug . isCI ( ) ? new ScaledClock ( FLOAT0 ) : SystemClock . instance ( ) ) ; \n + System . out . println ( STRING0 + VirtualClock . get ( ) ) ; \n + } \n + \n private static final boolean SEQUENCED = false ; \n \n public SingleConsumerNonblockingProducerDelayQueueTest ( ) {", "msg_token": "Add virtual clock to another timed test"} {"diff": " public class EntityDamageEvent extends EntityEvent implements Cancellable { \n COMMENT \n STARVATION , \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + POISON , \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + MAGIC , \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class EntityRegainHealthEvent extends EntityEvent implements Cancellable \n COMMENT \n EATING , \n COMMENT \n + COMMENT \n + COMMENT \n + MAGIC , \n + COMMENT \n + COMMENT \n + COMMENT \n + MAGIC_REGEN , \n + COMMENT \n COMMENT \n COMMENT \n CUSTOM", "msg_token": "Bleeding Added DamageCause POISON MAGIC and RegainReason MAGIC MAGIC_REGEN for potions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public abstract class SPDYTest \n { \n + @ rule \n + public final TestWatchman testName = new TestWatchman ( ) \n + { \n + @ override \n + public void starting ( FrameworkMethod method ) \n + { \n + super . starting ( method ) ; \n + System . err . printf ( STRING0 , \n + method . getMethod ( ) . getDeclaringClass ( ) . getName ( ) , \n + method . getName ( ) ) ; \n + } \n + } ; \n private Server server ; \n private SPDYClient . Factory clientFactory ;", "msg_token": "Added test method rule"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class TestDefaultServlet extends TomcatBaseTest { \n \n public class TestDefaultServlet extends TomcatBaseTest { \n SINGLE \n org . apache . catalina . Context ctx = \n tomcat . addWebapp ( null , STRING0 , appDir . getAbsolutePath ( ) ) ; \n + ctx . addApplicationListener ( WsListener . class . getName ( ) ) ; \n \n SINGLE \n Tomcat . addServlet ( ctx , STRING1 , new DefaultServlet ( ) ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class TestWebdavServlet extends TomcatBaseTest { \n \n public class TestWebdavServlet extends TomcatBaseTest { \n \n Tomcat . addServlet ( ctx , STRING2 , new WebdavServlet ( ) ) ; \n ctx . addServletMapping ( STRING3 , STRING2 ) ; \n + ctx . addApplicationListener ( WsListener . class . getName ( ) ) ; \n \n tomcat . start ( ) ;", "msg_token": "Fix some more unit test failures triggered by WebSocket init changes"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class InvertBooleanDialog extends RefactoringDialog { \n invokeRefactoring ( new InvertBooleanProcessor ( myElement , name ) ) ; \n } \n \n + protected void doHelpAction ( ) { \n + HelpManager . getInstance ( ) . invokeHelp ( HelpID . INVERT_BOOLEAN ) ; \n + } \n + \n protected JComponent createCenterPanel ( ) { \n return myPanel ; \n }", "msg_token": "Making Help button work"} {"diff": " public class DefaultNodeInitializer implements NodeInitializer { \n } \n \n public void printNodeInfo ( Node node ) { \n - systemLogger . info ( STRING0 + version + STRING1 \n + systemLogger . info ( STRING2 + version + STRING1 \n + build + STRING3 + node . getThisAddress ( ) ) ; \n systemLogger . info ( STRING4 ) ; \n }", "msg_token": "boot message should not include community edition"} {"diff": " public class EnglishGrammaticalRelations { \n STRING0 ; \n private static final String selfRegex = \n STRING1 ; \n + private static final String xcompVerbRegex = \n + STRING2 ; \n \n SINGLE \n SINGLE \n public class EnglishGrammaticalRelations { \n new String [ ] { \n SINGLE \n SINGLE \n - STRING3 , SINGLE \n + STRING4 + xcompVerbRegex + STRING5 , SINGLE \n STRING6 , \n STRING7 , \n SINGLE \n public class EnglishGrammaticalRelations { \n SINGLE \n SINGLE \n SINGLE \n - STRING8 , \n + STRING9 + xcompVerbRegex + STRING10 , \n STRING11 , \n STRING12 , \n STRING13 ,", "msg_token": "Add a bunch of verbs which are more likely to be xcomp than vmod"} {"diff": " public class StickyListHeadersListView extends FrameLayout { \n } \n } ) ; \n } \n + mHeader . setClickable ( true ) ; \n } \n \n SINGLE \n public class StickyListHeadersListView extends FrameLayout { \n mAdapter . setOnHeaderClickListener ( null ) ; \n } \n } \n + if ( mHeader != null && mOnHeaderClickListener != null ) { \n + mHeader . setOnClickListener ( new OnClickListener ( ) { \n + @ override \n + public void onClick ( View v ) { \n + mOnHeaderClickListener . onHeaderClick ( \n + StickyListHeadersListView . this , mHeader , \n + mHeaderPosition , mHeaderId , true ) ; \n + } \n + } ) ; \n + } \n } \n \n public void setOnStickyHeaderOffsetChangedListener ( OnStickyHeaderOffsetChangedListener listener ) {", "msg_token": "fix current header touch interception"} {"diff": " public abstract class BlockFluidBase extends Block implements IFluidBlock \n } \n \n @ override \n - public AxisAlignedBB getSelectedBoundingBox ( IBlockState blockState , World worldIn , BlockPos pos ) \n + public AxisAlignedBB getCollisionBoundingBox ( IBlockState blockState , World worldIn , BlockPos pos ) \n { \n - return null ; \n + return NULL_AABB ; \n } \n }", "msg_token": "Fix BlockFluidBase having collision"} {"diff": " public class SyslogTcpTransport extends TcpTransport { \n return new InstrumentedExecutorService ( \n Executors . newCachedThreadPool ( threadFactory ) , \n metricRegistry , \n - name ( HttpTransport . class , executorName , STRING0 ) ) ; \n + name ( SyslogTcpTransport . class , executorName , STRING0 ) ) ; \n }", "msg_token": "Fix metrics name of SyslogTcpTransport"} {"diff": " public class Context implements IContext { \n int maxWorkers = Utils . getInt ( storm_conf . get ( Config . STORM_MESSAGING_NETTY_CLIENT_WORKER_THREADS ) ) ; \n ThreadFactory bossFactory = new NettyRenameThreadFactory ( STRING0 + STRING1 ) ; \n ThreadFactory workerFactory = new NettyRenameThreadFactory ( STRING0 + STRING2 ) ; \n - SINGLE \n if ( maxWorkers > NUMBER0 ) { \n clientChannelFactory = new NioClientSocketChannelFactory ( Executors . newCachedThreadPool ( bossFactory ) , \n Executors . newCachedThreadPool ( workerFactory ) , maxWorkers ) ;", "msg_token": "Remove obsolete TODO"} {"diff": " public final class ClassPath { \n } \n } \n \n - private void scanFrom ( File file , ClassLoader classloader ) \n - throws IOException { \n + private void scanFrom ( File file , ClassLoader classloader ) throws IOException { \n if ( ! file . exists ( ) ) { \n return ; \n }", "msg_token": "Fixed a line wrapping I missed"} {"diff": " public class __ACTIVITY__ extends CordovaActivity \n super . init ( ) ; \n SINGLE \n super . loadUrl ( Config . getStartUrl ( ) ) ; \n - SINGLE \n + SINGLE \n } \n }", "msg_token": "Add missing semicolon"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int \n WeldInterceptorInstances existing = ( WeldInterceptorInstances ) componentInstance . getInstanceData ( SerializedCdiInterceptorsKey . class ) ; \n \n if ( existing == null ) { \n - WeldCreationalContext < Object > creationalContext = beanManager . createCreationalContext ( bean ) ; \n + CreationalContext < Object > creationalContext = beanManager . createCreationalContext ( bean ) ; \n HashMap < String , SerializableContextualInstance < Interceptor < Object > , Object > > interceptorInstances = new HashMap < String , SerializableContextualInstance < Interceptor < Object > , Object > > ( ) ; \n \n if ( interceptorBindings != null ) {", "msg_token": "Minor remove unnecessary dependency on Weld s internal class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CacheCredentialsMetaDataPopulatorTests { \n } \n } ; \n \n - populator . populateAttributes ( AuthenticationBuilder . newInstance ( auth ) , c ) ; \n + if ( populator . supports ( c ) ) { \n + populator . populateAttributes ( AuthenticationBuilder . newInstance ( auth ) , c ) ; \n + } \n + \n assertEquals ( map . size ( ) , NUMBER0 ) ; \n \n }", "msg_token": "Fixed test failure"} {"diff": " public class CommentActions { \n new RestRequest . Listener ( ) { \n @ override \n public void onResponse ( JSONObject response ) { \n - actionListener . onActionResult ( true ) ; \n + if ( actionListener != null ) { \n + actionListener . onActionResult ( true ) ; \n + } \n } \n } , new RestRequest . ErrorListener ( ) { \n @ override \n public void onErrorResponse ( VolleyError error ) { \n - actionListener . onActionResult ( false ) ; \n + if ( actionListener != null ) { \n + actionListener . onActionResult ( false ) ; \n + } \n } \n } \n ) ;", "msg_token": "Added null check on actionListener"} {"diff": " public abstract class GradleToolWindowPanel extends SimpleToolWindowPanel { \n @ override public void onPreferLocalGradleDistributionToWrapperChange ( boolean preferLocalToWrapper ) { refreshAll ( ) ; } \n @ override public void onGradleHomeChange ( @ nullable String oldPath , @ nullable String newPath ) { refreshAll ( ) ; } \n @ override public void onServiceDirectoryPathChange ( @ nullable String oldPath , @ nullable String newPath ) { refreshAll ( ) ; } \n - @ override public void onUseAutoImportChange ( boolean oldValue , boolean newValue ) { refreshAll ( ) ; } \n + @ override public void onUseAutoImportChange ( boolean oldValue , boolean newValue ) { \n + if ( newValue ) { \n + update ( ) ; \n + } \n + } \n \n private void refreshAll ( ) { \n if ( myInBulk ) {", "msg_token": "Don t refresh a project on disabling auto import"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n COMMENT \n public void dispatchSystemUiVisibilityChanged ( int visibility ) { \n - mSystemUiVisibility = visibility ; \n if ( mOnSystemUiVisibilityChangeListener != null ) { \n mOnSystemUiVisibilityChangeListener . onSystemUiVisibilityChange ( \n visibility & ~ PUBLIC_STATUS_BAR_VISIBILITY_MASK ) ;", "msg_token": "Don t force all views to be asking for lights out just because somebody did"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class DanmakusRetainer { \n \n private static IDanmakusRetainer rldrInstance = null ;", "msg_token": "Remove unused import"} {"diff": " public class HBaseStoreManager extends DistributedStoreManager implements KeyCol \n . put ( EDGESTORE_NAME + LOCK_STORE_SUFFIX , STRING0 ) \n . put ( EDGEINDEX_STORE_NAME + LOCK_STORE_SUFFIX , STRING1 ) \n . build ( ) ; \n + \n + static { \n + SINGLE \n + Preconditions . checkArgument ( null != shortCfNameMap ) ; \n + Collection < String > shorts = shortCfNameMap . values ( ) ; \n + Preconditions . checkArgument ( Sets . newHashSet ( shorts ) . size ( ) == shorts . size ( ) ) ; \n + } \n \n public HBaseStoreManager ( org . apache . commons . configuration . Configuration config ) throws StorageException { \n super ( config , PORT_DEFAULT ) ;", "msg_token": "Statically check HBase short CF name integrity"} {"diff": " public class ParallelAccumulationExecutor implements AccumulationExecutor { \n this . callTimeoutInMillis = callTimeoutInMillis ; \n } \n \n + @ override \n @ suppresswarnings ( STRING0 ) \n public AggregationResult execute ( \n Aggregator aggregator , Collection < QueryableEntry > entries , Collection < Integer > partitionIds ) { \n public class QueryResult implements Result < QueryResult > , IdentifiedDataSerializa \n } \n } \n \n + @ override \n public Collection < Integer > getPartitionIds ( ) { \n return partitionIds ; \n } \n public class QueryResult implements Result < QueryResult > , IdentifiedDataSerializa \n public void onCombineFinished ( ) { \n } \n \n + @ override \n public void setPartitionIds ( Collection < Integer > partitionIds ) { \n this . partitionIds = new ArrayList < Integer > ( partitionIds ) ; \n } \n public class QueryResultRow implements IdentifiedDataSerializable , Map . Entry < Dat \n this . value = valueData ; \n } \n \n + @ override \n public Data getKey ( ) { \n return key ; \n } \n \n + @ override \n public Data getValue ( ) { \n return value ; \n }", "msg_token": "Added missing Override annotations in query package"} {"diff": " public abstract class AbstractBlockChain { \n registration . listener . notifyNewBestBlock ( newStoredBlock ) ; \n } else { \n SINGLE \n - final boolean notFirst = ! first ; \n registration . executor . execute ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Remove no longer used variable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n class MongoClientImpl implements MongoClient { \n return new ClientAdministrationImpl ( this ) ; \n } \n \n - public Session getSession ( ) { \n - return new ClusterSession ( cluster , executorService ) ; \n - } \n - \n public Cluster getCluster ( ) { \n return cluster ; \n }", "msg_token": "Removed unused getSession method in MongoClientImpl"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface JSONMapper { \n \n String toJSON ( Object toSerialize ) throws Exception ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class SquidbJSONSupport { \n \n private static final String TAG = STRING0 ;", "msg_token": "Add some documentation"} {"diff": " public class AdminConsolePlugin implements Plugin { \n public AdminConsolePlugin ( ) { \n } \n \n - public String getName ( ) { \n - return STRING0 ; \n - } \n - \n - public String getDescription ( ) { \n - return STRING1 ; \n - } \n - \n - public String getAuthor ( ) { \n - return STRING2 ; \n - } \n - \n - public String getVersion ( ) { \n - return STRING3 ; \n - } \n - \n public void initializePlugin ( PluginManager manager , File pluginDir ) { \n try { \n SINGLE", "msg_token": "Removed plugin methods that are no longer used"} {"diff": " public class MockComponentManager extends UserDataHolderBase implements Componen \n \n @ override \n public void dispose ( ) { \n + myMessageBus . dispose ( ) ; \n } \n \n @ notnull", "msg_token": "dispose project message bus in lite tests"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public class NeuralNetPlotter implements Serializable { \n \n private static ClassPathResource script = new ClassPathResource ( STRING0 + File . separator + STRING1 ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n + @ deprecated \n public class AccuracyPlotterIterationListener implements IterationListener { \n private int epochs = NUMBER0 ; SINGLE \n private INDArray input ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n + @ deprecated \n public class LossPlotterIterationListener implements IterationListener { \n private int iterations = NUMBER0 ; \n private NeuralNetPlotter plotter = new NeuralNetPlotter ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public class RenderFilterIterationListener implements IterationListener { \n private int iterations = NUMBER1 ; \n private NeuralNetPlotter plotter = new NeuralNetPlotter ( ) ;", "msg_token": "Deprecate NeuralNetPlotter and all iteration listeners that use it"} {"diff": " public class ResolverUtil < T > { \n URL url = null ; \n try { \n url = urls . nextElement ( ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . trace ( STRING0 + url ) ; \n + } \n \n String urlPath = url . getFile ( ) ; \n urlPath = URLDecoder . decode ( urlPath , STRING1 ) ;", "msg_token": "Added a little more trace logging to aid classloading resolution"} {"diff": " public class ServerStarter { \n return name . endsWith ( STRING0 ) ; \n } \n } ) ; \n + \n + if ( packedFiles == null ) { \n + SINGLE \n + return ; \n + } \n + \n SINGLE \n boolean unpacked = false ; \n for ( File packedFile : packedFiles ) {", "msg_token": "Do nothing since no"} {"diff": " public class InstallerFragment extends Fragment { \n \n private String install ( ) { \n File appProcessFile = writeAssetToCacheFile ( APP_PROCESS_NAME , STRING0 ) ; \n - writeAssetToSdcardFile ( STRING1 ) ; \n if ( appProcessFile == null ) \n return STRING2 ;", "msg_token": "don t copy Xposed Disabler CWM zip twice"} {"diff": " \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class AngryState implements State { \n \n private Mammoth mammoth ; \n package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class App { \n \n \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class PeacefulState implements State { \n \n private Mammoth mammoth ;", "msg_token": "Improved comments for state pattern"} {"diff": " public class CUDChunkTest extends TestUtil { \n Assert . assertTrue ( cc . isNA ( vals . length ) ) ; \n Assert . assertTrue ( cc . isNA_abs ( vals . length ) ) ; \n \n + SINGLE \n + cc . set_impl ( vals . length - NUMBER0 , a ) ; \n + Assert . assertTrue ( cc . atd ( vals . length - NUMBER0 ) == a ) ; \n + vals [ vals . length - NUMBER0 ] = a ; \n + \n nc = cc . inflate_impl ( new NewChunk ( null , NUMBER1 ) ) ; \n nc . values ( NUMBER1 , nc . _len ) ; \n Assert . assertEquals ( vals . length + NUMBER0 , nc . _len ) ;", "msg_token": "Add more testing for CUDChunk"} {"diff": " public class PagedTraverserFunctionalTest \n \n private String traverserDescription ( ) \n { \n - String description = STRING0 \n - + STRING1 \n - + STRING2 \n - + STRING3 \n - + STRING4 + STRING5 ; \n + String description = STRING6 \n + + STRING7 \n + + STRING8 \n + + STRING9 \n + + STRING10 \n + + STRING11 ; \n return description ; \n }", "msg_token": "Better looking request entity"} {"diff": " public class LocationManagerService extends ILocationManager . Stub implements Run \n } \n \n public void locationCallbackFinished ( ILocationListener listener ) { \n - Receiver receiver = getReceiver ( listener ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + IBinder binder = listener . asBinder ( ) ; \n + Receiver receiver = mReceivers . get ( binder ) ; \n if ( receiver != null ) { \n synchronized ( receiver ) { \n SINGLE \n public class LocationManagerService extends ILocationManager . Stub implements Run \n try { \n if ( mReceivers . remove ( receiver . mKey ) != null && receiver . isListener ( ) ) { \n receiver . getListener ( ) . asBinder ( ) . unlinkToDeath ( receiver , NUMBER0 ) ; \n + synchronized ( receiver ) { \n + if ( receiver . mPendingBroadcasts > NUMBER0 ) { \n + decrementPendingBroadcasts ( ) ; \n + receiver . mPendingBroadcasts = NUMBER0 ; \n + } \n + } \n } \n \n SINGLE", "msg_token": "Fix race when removing LocationListener"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class Main { \n if ( ! apiFormat && ! applySuggestions ) { \n System . out . println ( STRING0 + filename + STRING1 ) ; \n } \n - final String fileContents = StringTools . readStream ( new FileInputStream ( filename ) , encoding ) ; \n + SINGLE \n + final String fileContents = StringTools . streamToString ( new FileInputStream ( filename ) , encoding != null ? encoding : Charset . defaultCharset ( ) . name ( ) ) ; \n if ( xmlFiltering ) { \n return StringTools . filterXML ( fileContents ) ; \n } else { \n public final class StringTools { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "don t add a newline when reading files for the command line checker"} {"diff": " public class AndroidDatabaseConnection implements DatabaseConnection { \n } \n \n public < T > Object queryForOne ( String statement , Object [ ] args , FieldType [ ] argFieldTypes , \n - GenericRowMapper < T > rowMapper ) throws SQLException { \n - return queryForOne ( statement , args , argFieldTypes , rowMapper , null ) ; \n - } \n - \n - public < T > Object queryForOne ( String statement , Object [ ] args , FieldType [ ] argFieldTypes , \n GenericRowMapper < T > rowMapper , ObjectCache objectCache ) throws SQLException { \n Cursor cursor = null ;", "msg_token": "Removed a deprecated internal method"} {"diff": " public class WebSocketEngine { \n } \n } ) ; \n \n - context . getDirectChannelAccess ( ) . takeOwnership ( msg - > { \n + final DirectChannelAccess directAccessChannel = context . getDirectChannelAccess ( ) ; \n + final Channel channel = directAccessChannel . getChannel ( ) ; \n + \n + channel . closeFuture ( ) . addListener ( fu - > { \n + try { \n + handler . onClose ( new DefaultWebSocketClose < > ( true , openResult ) ) ; \n + } catch ( Exception e ) { \n + throw uncheck ( e ) ; \n + } \n + } ) ; \n + \n + directAccessChannel . takeOwnership ( msg - > { \n openLatch . await ( ) ; \n - Channel channel = context . getDirectChannelAccess ( ) . getChannel ( ) ; \n if ( channel . isOpen ( ) ) { \n if ( msg instanceof WebSocketFrame ) { \n WebSocketFrame frame = ( WebSocketFrame ) msg ;", "msg_token": "Properly call onClose method of websocket handler when connection is abruptly closed"} {"diff": " public class Annotation { \n COMMENT \n COMMENT \n void addLine ( String revision , String author ) { \n - final Line line = new Line ( revision , author ) ; \n + final Line line = new Line ( revision , author ) ; \n lines . add ( line ) ; \n widestRevision = Math . max ( widestRevision , line . revision . length ( ) ) ; \n widestAuthor = Math . max ( widestAuthor , line . author . length ( ) ) ;", "msg_token": "Replaced TAB character with space"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProgressIndicatorBase implements ProgressIndicatorEx { \n \n public final void checkCanceled ( ) { \n if ( isCanceled ( ) && myNonCancelableCount == NUMBER0 ) { \n - throw new ProcessCanceledException ( ) ; \n + SINGLE \n } \n \n delegate ( new IndicatorAction ( ) {", "msg_token": "JS Unused function parameter inspection transformed into JS unused local symbols inspection"} {"diff": " public interface BuildLauncher extends LongRunningOperation { \n BuildLauncher addProgressListener ( ProgressListener listener ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ incubating \n + BuildLauncher withCancellationToken ( CancellationToken cancellationToken ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add missing override for withCancellationToken"} {"diff": " public final class ActFmSyncService { \n } else if ( id == ActFmPreferenceService . userId ( ) ) { \n model . setValue ( idProperty , NUMBER0 L ) ; \n if ( userProperty != null ) \n - model . setValue ( userProperty , STRING0 ) ; \n + model . setValue ( userProperty , ActFmPreferenceService . thisUser ( ) . toString ( ) ) ; \n } else { \n model . setValue ( idProperty , id ) ; \n if ( userProperty != null )", "msg_token": "Fixed a bug that would cause activity from this user to not display correctly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "core Remove unused imports from TwoWayLayoutManager"} {"diff": " public abstract class Session implements RoutableChannelHandler { \n public String toString ( ) { \n return super . toString ( ) + STRING0 + status + STRING1 + address + STRING2 + streamID ; \n } \n + \n + protected static int [ ] decodeVersion ( String version ) { \n + int [ ] answer = new int [ ] { NUMBER0 , NUMBER0 } ; \n + String [ ] versionString = version . split ( STRING3 ) ; \n + answer [ NUMBER0 ] = Integer . parseInt ( versionString [ NUMBER0 ] ) ; \n + answer [ NUMBER1 ] = Integer . parseInt ( versionString [ NUMBER1 ] ) ; \n + return answer ; \n + } \n }", "msg_token": "Added protected method decodeVersion"} {"diff": " public abstract class PropertyTable extends JBTable { \n } \n \n public static int findProperty ( List < Property > properties , Property property ) { \n + int index = properties . indexOf ( property ) ; \n + if ( index != - NUMBER0 ) { \n + return index ; \n + } \n + \n String name = property . getName ( ) ; \n int size = properties . size ( ) ;", "msg_token": "Optimize find property"} {"diff": " class CertificateValidatorCache { \n } \n } \n \n - int hashLength = secureHash . length ; \n - if ( secureHash != null && NUMBER0 < hashLength ) { \n - if ( hashLength == mHash . length ) { \n - for ( int i = NUMBER0 ; i < hashLength ; ++ i ) { \n - if ( secureHash [ i ] != mHash [ i ] ) { \n - return false ; \n + if ( secureHash != null ) { \n + int hashLength = secureHash . length ; \n + if ( NUMBER0 < hashLength ) { \n + if ( hashLength == mHash . length ) { \n + for ( int i = NUMBER0 ; i < hashLength ; ++ i ) { \n + if ( secureHash [ i ] != mHash [ i ] ) { \n + return false ; \n + } \n } \n + return true ; \n } \n - return true ; \n } \n }", "msg_token": "Rework some code so that it works the way it was supposed to work"} {"diff": " public class NameTable { \n SINGLE \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , \n \n + SINGLE \n + STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , \n + STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , \n + STRING19 , STRING20 , STRING21 , STRING22 , \n + STRING23 , STRING24 , STRING25 , STRING26 , STRING27 , STRING28 , STRING29 , \n + STRING30 , STRING31 , STRING32 , STRING33 , STRING34 , STRING35 , STRING36 , \n + \n SINGLE \n STRING37 , STRING38 , STRING39 , STRING40 , STRING41 , STRING42 , STRING43 , STRING44 , \n STRING45 , STRING46 , STRING47 , STRING48 ,", "msg_token": "added usr include limits"} {"diff": " public class GLHelper { \n public static void switchToMatrix ( final MatrixMode pMatrixMode ) { \n GLHelper . sGLMatrixStack . setMatrixMode ( pMatrixMode ) ; \n } \n - \n + \n + public static GLMatrix getProjectionMatrix ( ) { \n + return GLHelper . sGLMatrixStack . getProjectionMatrix ( ) ; \n + } \n + \n + public static GLMatrix getModelViewMatrix ( ) { \n + return GLHelper . sGLMatrixStack . getModelViewMatrix ( ) ; \n + } \n + \n public static GLMatrix getModelViewProjectionMatrix ( ) { \n return GLHelper . sGLMatrixStack . getModelViewProjectionMatrix ( ) ; \n }", "msg_token": "Added methods to get ModelView and Projection Matrix on their own from GLMatrixThread through GLHelper"} {"diff": " public class GitHistoryUtils { \n @ notnull \n public static List < TimeCommitParents > readAllHashes ( @ notnull Project project , @ notnull VirtualFile root ) throws VcsException { \n GitSimpleHandler h = new GitSimpleHandler ( project , root , GitCommand . LOG ) ; \n - GitLogParser parser = new GitLogParser ( project , GitLogParser . NameStatus . NONE , HASH , PARENTS ) ; \n + GitLogParser parser = new GitLogParser ( project , GitLogParser . NameStatus . NONE , HASH , PARENTS , AUTHOR_TIME ) ; \n h . setStdoutSuppressed ( true ) ; \n h . addParameters ( parser . getPretty ( ) , STRING0 ) ; \n h . addParameters ( STRING1 , STRING2 , STRING3 , STRING4 ) ;", "msg_token": "Request the author time from Git"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CommandRunner implements Iterable < Command > { \n showUsage ( ) ; \n return NUMBER0 ; \n } \n - catch ( TestFailedException e ) { \n - return NUMBER0 ; \n - } \n catch ( Exception ex ) { \n return handleError ( debug , ex ) ; \n }", "msg_token": "Fix CLI package tangle"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public abstract class BaseParser < T extends Server > implements Parser < T > { \n \n public T parseServer ( final InputStream is , final Optional < Integer > port , \n final MocoConfig . . . configs ) { \n - return createServer ( reader . read ( is , SessionSetting . class ) , port , configs ) ; \n + try { \n + return createServer ( reader . read ( is , SessionSetting . class ) , port , configs ) ; \n + } finally { \n + Closeables . closeQuietly ( is ) ; \n + } \n } \n }", "msg_token": "closed input stream in base parser"} {"diff": " public class TextTable { \n if ( table ) { \n sb . setLength ( sb . length ( ) - NUMBER0 ) ; \n } \n + trimTail ( sb ) ; \n sb . append ( STRING0 ) ; \n if ( header ) { \n header = false ; \n public class TextTable { \n sb . append ( STRING1 ) ; \n } \n sb . setLength ( sb . length ( ) - NUMBER0 ) ; \n + trimTail ( sb ) ; \n sb . append ( STRING0 ) ; \n } \n } \n public class TextTable { \n } \n } \n \n + private static void trimTail ( StringBuilder sb ) { \n + while ( sb . length ( ) > NUMBER1 && sb . charAt ( sb . length ( ) - NUMBER0 ) == STRING2 ) { \n + sb . setLength ( sb . length ( ) - NUMBER0 ) ; \n + } \n + } \n + \n class CSVWriter { \n \n private Writer rawWriter ;", "msg_token": "Remove trailing spaces in frame histogram"} {"diff": " public class PeriodFormatterBuilder { \n return ~ position ; \n } \n \n + if ( position + length != suffixPos ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return position ; \n + } \n + \n int value ; \n if ( length >= NUMBER0 ) { \n SINGLE", "msg_token": "Fixed parsing bug that would consume wrong suffix for field"} {"diff": " public class MetaClass { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MetaClass { \n for ( int i = NUMBER0 , size = baseTypes . length ; i < size ; i ++ ) { \n Class baseType = baseTypes [ i ] ; \n Class derivedType = derivedTypes [ i ] ; \n - if ( ! baseType . isAssignableFrom ( derivedType ) ) { \n + if ( ! isAssignableFrom ( derivedType , baseType ) ) { \n throw new GroovyRuntimeException ( \n STRING0 \n + name \n public class MetaClass { \n else if ( type == long . class ) { \n return Long . class ; \n } \n + else if ( type == boolean . class ) { \n + return Boolean . class ; \n + } \n else if ( type == float . class ) { \n return Float . class ; \n }", "msg_token": "fixed another autoboxing glitch that was failing a test case"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n public final class LoggerInfoStream extends InfoStream { \n \n private final Logger parentLogger ; \n \n + private final Map < String , Logger > loggers = new ConcurrentHashMap < > ( ) ; \n + \n public LoggerInfoStream ( final Logger parentLogger ) { \n this . parentLogger = parentLogger ; \n } \n public final class LoggerInfoStream extends InfoStream { \n } \n \n private Logger getLogger ( String component ) { \n - return Loggers . getLogger ( parentLogger , STRING0 + component ) ; \n + return loggers . computeIfAbsent ( component , c - > Loggers . getLogger ( parentLogger , STRING0 + c ) ) ; \n } \n \n @ override \n public void close ( ) { \n \n } \n + \n }", "msg_token": "Avoid unnecessary creation of prefix loggers"} {"diff": " \n package NAMESPACE ; \n \n public class Animation { \n - public String name ; \n - public float frameDuration ; \n + public String name ; \n public float totalDuration ; \n }", "msg_token": "removed Animation frameDuration due to SkeletalModel having different frame durations per bone track animation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing obsolete imports"} {"diff": " public class FeedlistFragment extends SherlockListFragment { \n filter . addAction ( DownloadService . ACTION_FEED_SYNC_COMPLETED ) ; \n \n pActivity . registerReceiver ( contentUpdate , filter ) ; \n + fla . notifyDataSetChanged ( ) ; \n } \n \n @ override \n public class FeedlistFragment extends SherlockListFragment { \n private BroadcastReceiver contentUpdate = new BroadcastReceiver ( ) { \n @ override \n public void onReceive ( Context context , Intent intent ) { \n + Log . d ( TAG , STRING0 ) ; \n fla . notifyDataSetChanged ( ) ; \n } \n } ;", "msg_token": "Fixed potential bug in FeedlistFragment"} {"diff": " public class DaemonListeners implements Disposable { \n } \n } , this ) ; \n \n - connection . subscribe ( PsiModificationTracker . TOPIC , ( ) - > stopDaemonAndRestartAllFiles ( STRING0 ) ) ; \n - \n commandProcessor . addCommandListener ( new MyCommandListener ( ) , this ) ; \n application . addApplicationListener ( new MyApplicationListener ( ) , this ) ; \n editorColorsManager . addEditorColorsListener ( new MyEditorColorsListener ( ) , this ) ;", "msg_token": "restart daemon on any psi mod count change"} {"diff": " public class AuthProceduresIT \n @ test \n public void shouldNotChangeOwnPasswordIfNewPasswordInvalid ( ) throws Exception \n { \n - assertFail ( admin , STRING0 , STRING1 ) ; \n + assertFail ( admin , STRING0 , STRING2 ) ; \n assertFail ( admin , STRING3 , STRING4 ) ; \n } \n \n public class AuthProceduresIT \n @ test \n public void shouldNotCreateUserIfInvalidPassword ( ) throws Exception \n { \n - assertFail ( admin , STRING5 , STRING1 ) ; \n + assertFail ( admin , STRING5 , STRING2 ) ; \n } \n \n @ test \n public void shouldNotCreateExistingUser ( ) throws Exception \n { \n assertFail ( admin , STRING6 , \n - STRING7 ) ; \n - assertFail ( admin , STRING8 , STRING1 ) ; \n + STRING9 ) ; \n + assertFail ( admin , STRING8 , STRING2 ) ; \n } \n \n SINGLE", "msg_token": "Fixed failing tests"} {"diff": " public class PsiNameValuePairImpl extends CompositePsiElement implements PsiName \n return new TextRange ( NUMBER0 , id . getTextLength ( ) ) ; \n } \n else { \n - return new TextRange ( NUMBER0 , getTextLength ( ) ) ; \n + return new TextRange ( NUMBER0 , NUMBER0 ) ; \n } \n }", "msg_token": "default value annotation attribute reference ranges fix"} {"diff": " public class Notifications extends BroadcastReceiver { \n public boolean showTaskNotification ( long id , int type , String reminder ) { \n Task task ; \n try { \n - task = taskDao . fetch ( id , Task . TITLE , Task . HIDE_UNTIL , Task . COMPLETION_DATE , \n + task = taskDao . fetch ( id , Task . ID , Task . TITLE , Task . HIDE_UNTIL , Task . COMPLETION_DATE , \n Task . DELETION_DATE , Task . REMINDER_FLAGS ) ; \n if ( task == null ) \n throw new IllegalArgumentException ( STRING0 ) ; SINGLE", "msg_token": "wasn t able to set lastNotified previously now we do a better job of it"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class SentimentAnnotator implements Annotator { \n + static final String DEFAULT_MODEL = STRING0 ; \n String modelPath ; \n SentimentModel model ; \n CollapseUnaryTransformer transformer = new CollapseUnaryTransformer ( ) ; \n \n public SentimentAnnotator ( String name , Properties props ) { \n - this . modelPath = props . getProperty ( name + STRING1 ) ; \n + this . modelPath = props . getProperty ( name + STRING1 , DEFAULT_MODEL ) ; \n if ( modelPath == null ) { \n throw new IllegalArgumentException ( STRING2 ) ; \n }", "msg_token": "Set a default model for the sentiment annotator"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n @ gwtcompatible \n public final class Ascii { \n \n public final class Ascii { \n COMMENT \n COMMENT \n @ beta \n - @ checkreturnvalue \n public static String truncate ( CharSequence seq , int maxLength , String truncationIndicator ) { \n checkNotNull ( seq ) ;", "msg_token": "Add CheckReturnValue to Ascii"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaDebugProcess extends XDebugProcess { \n leftToolbar . add ( ActionManager . getInstance ( ) . getAction ( DebuggerActions . DUMP_THREADS ) , beforeRunner ) ; \n leftToolbar . add ( Separator . getInstance ( ) , beforeRunner ) ; \n \n - addActionToGroup ( settings , XDebuggerActions . INLINE_DEBUGGER ) ; \n - addActionToGroup ( settings , XDebuggerActions . AUTO_TOOLTIP ) ; \n - addActionToGroup ( settings , XDebuggerActions . AUTO_TOOLTIP_ON_SELECTION ) ; \n settings . addAction ( new AutoVarsSwitchAction ( ) , Constraints . FIRST ) ; \n settings . addAction ( new WatchLastMethodReturnValueAction ( ) , Constraints . FIRST ) ; \n }", "msg_token": "can t start Java debug process"} {"diff": " public class CreateBreakoutRoomsRequestTest { \n \n CreateBreakoutRoomsRequest rxMsg = gson . fromJson ( json , CreateBreakoutRoomsRequest . class ) ; \n \n + Assert . assertEquals ( rxMsg . header . name , CreateBreakoutRoomsRequest . NAME ) ; \n Assert . assertEquals ( rxMsg . payload . meetingId , meetingId ) ; \n Assert . assertEquals ( rxMsg . payload . rooms . size ( ) , NUMBER0 ) ; \n Assert . assertEquals ( rxMsg . payload . durationInMinutes , durationInMinutes ) ;", "msg_token": "add name to test"} {"diff": " public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider { \n if ( myCurrentEditor != null && myCurrentEditor . isDisposed ( ) ) { \n myCurrentEditor = null ; \n } \n + if ( ! isValid ( ) ) return ; \n ApplicationManager . getApplication ( ) . runReadAction ( myUiUpdateRunnable ) ; \n } \n } \n public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider { \n return ObjectUtils . assertNotNull ( myVirtualFile . getLanguage ( ) ) ; \n } \n \n + public boolean isValid ( ) { \n + return myVirtualFile . isValid ( ) && myProject . isOpen ( ) ; \n + } \n + \n public void setLanguage ( @ notnull Language language ) { \n myVirtualFile . setLanguage ( language ) ; \n myVirtualFile . setContent ( myEditorDocument , myEditorDocument . getText ( ) , false ) ;", "msg_token": "do not invoke ui update if invalid"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IOUtils { \n COMMENT \n COMMENT \n public static Map < String , AtmosphereFramework . MetaServiceAction > readServiceFile ( final String path ) { \n - final Map < String , AtmosphereFramework . MetaServiceAction > b = new HashMap < String , AtmosphereFramework . MetaServiceAction > ( ) ; \n + final Map < String , AtmosphereFramework . MetaServiceAction > b = new LinkedHashMap < String , AtmosphereFramework . MetaServiceAction > ( ) ; \n \n String line ; \n InputStream is = null ;", "msg_token": "Keep order of declaration in meta service file"} {"diff": " public final class ValueType extends TypeIntrospectionBase { \n Collections . < String > emptySet ( ) , \n true , \n false , \n - ElementType . METHOD , \n + ElementType . CONSTRUCTOR , \n newTypeStringResolver ( ) ) ; \n } \n }", "msg_token": "Fixing the generation of constructor annotations by using the element type CONSTRUCTOR instead of METHOD"} {"diff": " public class OutboundTcpConnection extends Thread \n catch ( IOException e ) \n { \n logger . info ( STRING0 + endpoint ) ; \n + logger . debug ( STRING1 , e ) ; \n disconnect ( ) ; \n } \n }", "msg_token": "include outbound socket exceptions at debug level"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BidForFixHelper { \n private void loadList ( ) { \n if ( initialized == null || initialized . before ( new Date ( System . currentTimeMillis ( ) - DAY ) ) ) { \n BufferedReader in = null ; \n - String project = STRING0 ; SINGLE \n - String url = STRING1 \n - + project + STRING2 ; \n + String url = STRING3 + project + STRING2 ; \n try { \n URL twitter = new URL ( url ) ; \n URLConnection tc = twitter . openConnection ( ) ;", "msg_token": "updated the bidforfix josm link"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference \n if ( ! haveQualifiers ( element ) ) { \n final ScopeOwner ourScopeOwner = ScopeUtil . getScopeOwner ( getElement ( ) ) ; \n final ScopeOwner theirScopeOwner = ScopeUtil . getScopeOwner ( element ) ; \n - SINGLE \n - if ( element instanceof PyParameter || element instanceof PyTargetExpression || element instanceof CythonVariable ) { \n + if ( element instanceof PyParameter || element instanceof PyTargetExpression ) { \n SINGLE \n if ( resolvesToSameLocal ( element , elementName , ourScopeOwner , theirScopeOwner ) ) { \n return true ;", "msg_token": "Don t use resolvesToSameLocal shortcut for Cython elements"} {"diff": " public class GelfChunkAggregator implements CodecAggregator { \n if ( aggregatedBuffer == null ) { \n return VALID_EMPTY_RESULT ; \n } \n - } catch ( IllegalArgumentException | IllegalStateException e ) { \n + } catch ( IllegalArgumentException | IllegalStateException | IndexOutOfBoundsException e ) { \n log . debug ( STRING0 , e ) ; \n return INVALID_RESULT ; \n }", "msg_token": "Also handle IndexOutOfBoundsException in GELF chunk aggregator"} {"diff": " public final class Tags { \n throws NoSuchUniqueId { \n try { \n return resolveIdsAsync ( tsdb , tags ) . joinUninterruptibly ( ) ; \n + } catch ( NoSuchUniqueId e ) { \n + throw e ; \n } catch ( Exception e ) { \n throw new RuntimeException ( STRING0 , e ) ; \n }", "msg_token": "Fix a bug in the Tags resolveIds method where the NoSuchUniqueId"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class DemoApplication extends RosieApplication { \n \n + @ override public void onCreate ( ) { \n + super . onCreate ( ) ; \n + StrictMode . setThreadPolicy ( \n + new StrictMode . ThreadPolicy . Builder ( ) . detectAll ( ) . penaltyLog ( ) . penaltyDeath ( ) . build ( ) ) ; \n + StrictMode . setVmPolicy ( \n + new StrictMode . VmPolicy . Builder ( ) . detectAll ( ) . penaltyLog ( ) . penaltyDeath ( ) . build ( ) ) ; \n + } \n + \n @ override public List < Object > getApplicationModules ( ) { \n return Arrays . asList ( ( Object ) new GlobalDemoAndroidModule ( ) ) ; \n }", "msg_token": "Enable strict mode in the demo application"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class SdkHomeConfigurable implements Configurable { \n \n public void apply ( ) throws ConfigurationException { \n final SdkHomeSettings state = new SdkHomeSettings ( ) ; \n - state . SDK_HOME = myPathField . getText ( ) ; \n + state . SDK_HOME = FileUtil . toSystemIndependentName ( myPathField . getText ( ) ) ; \n getFrameworkSettings ( ) . loadState ( state ) ; \n } \n \n public abstract class SdkHomeConfigurable implements Configurable { \n private String getStateText ( ) { \n final SdkHomeSettings state = getFrameworkSettings ( ) . getState ( ) ; \n final String stateText = state == null ? STRING0 : state . SDK_HOME ; \n - return StringUtil . notNullize ( stateText ) ; \n + return StringUtil . notNullize ( FileUtil . toSystemDependentName ( stateText ) ) ; \n } \n \n public void disposeUIResources ( ) {", "msg_token": "store gant gradle path in system independent format take advantage of path macros"} {"diff": " public class User extends AbstractModel { \n @ index ( name = STRING0 ) \n private String name ; \n \n - @ column ( length = NUMBER0 ) \n + @ column ( length = NUMBER1 , unique = true ) \n + @ index ( name = STRING1 ) \n private String email ; \n \n @ column ( length = NUMBER0 , nullable = false )", "msg_token": "reset index and use maximum length"} {"diff": " public class ChangeLogWriter { \n SINGLE \n \n \n - File xmlFile = new File ( outputDir , changeLog + STRING0 ) ; \n + String changeLogOutFile = changeLog . replace ( STRING1 , STRING2 ) ; \n + File xmlFile = new File ( outputDir , changeLogOutFile + STRING0 ) ; \n xmlFile . getParentFile ( ) . mkdirs ( ) ; \n \n BufferedWriter changeLogStream = new BufferedWriter ( new FileWriter ( xmlFile , false ) ) ;", "msg_token": "Handle writing changelog files with absolute path on windows"} {"diff": " public class PApplet implements PConstants { \n public BufferedReader createReader ( String filename ) { \n InputStream is = createInput ( filename ) ; \n if ( is == null ) { \n - System . err . println ( filename + STRING0 ) ; \n + System . err . println ( STRING1 + filename + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 ) ; \n return null ; \n } \n return createReader ( is ) ;", "msg_token": "Changed the error message in JSON functions"} {"diff": " public class ReplicaSetStatusDomainModelTest extends TestCase { \n assertNotNull ( addr ) ; \n counters . get ( addr . getHost ( ) ) . incrementAndGet ( ) ; \n } \n - assertLess ( ( ( getHigh ( counters ) - getLow ( counters ) ) / ( double ) getHigh ( counters ) ) , FLOAT0 ) ; \n + assertLess ( ( ( getHigh ( counters ) - getLow ( counters ) ) / ( double ) getHigh ( counters ) ) , FLOAT1 ) ; \n \n SINGLE \n counters . clear ( ) ;", "msg_token": "Made test for even distribution a bit more lenient"} {"diff": " public class NotificationContentView extends FrameLayout { \n return VISIBLE_TYPE_EXPANDED ; \n } \n } else { \n - if ( viewHeight <= mContractedChild . getHeight ( ) || noExpandedChild ) { \n + if ( noExpandedChild || ( viewHeight <= mContractedChild . getHeight ( ) \n + && ( ! mIsChildInGroup || ! mContainingNotification . isExpanded ( ) ) ) ) { \n return VISIBLE_TYPE_CONTRACTED ; \n } else { \n return VISIBLE_TYPE_EXPANDED ;", "msg_token": "Fixed animation jank in notification groups"} {"diff": " public class WebView extends AbsoluteLayout \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc breakage"} {"diff": " public class AsmClassGenerator extends ClassGenerator { \n } \n } \n \n - private void makeInnerClassEntry ( ClassNode innerClass ) { \n - if ( ! ( innerClass instanceof InnerClassNode ) ) return ; \n + private void makeInnerClassEntry ( ClassNode cn ) { \n + if ( ! ( cn instanceof InnerClassNode ) ) return ; \n + InnerClassNode innerClass = ( InnerClassNode ) cn ; \n String innerClassName = innerClass . getName ( ) ; \n String innerClassInternalName = BytecodeHelper . getClassInternalName ( innerClassName ) ; \n { \n int index = innerClassName . lastIndexOf ( STRING0 ) ; \n if ( index >= NUMBER0 ) innerClassName = innerClassName . substring ( index + NUMBER1 ) ; \n } \n - String outerClassName = controller . getInternalClassName ( ) ; SINGLE \n + String outerClassName = BytecodeHelper . getClassInternalName ( innerClass . getOuterClass ( ) . getName ( ) ) ; \n MethodNode enclosingMethod = innerClass . getEnclosingMethod ( ) ; \n if ( enclosingMethod != null ) { \n SINGLE", "msg_token": "corrects the naming entry for the outer class to avoid an inner class being an inner class of itself"} {"diff": " public class Selector < Message > implements Synchronization { \n @ override \n public Object register ( ) { \n Strand s = Strand . currentStrand ( ) ; \n - if ( waiter != null && waiter != s ) \n + if ( waiter != null && ! waiter . equals ( s ) ) \n throw new IllegalMonitorStateException ( STRING0 ) ; \n this . waiter = Strand . currentStrand ( ) ;", "msg_token": "use equals instead of for comparing strands not the same when the strand is a thread"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WriteResult { \n private final boolean updateOfExisting ; \n private final Object upsertedId ; \n \n - public WriteResult ( final int n , final boolean updateOfExisting , final Object upsertedId , \n - final WriteConcern writeConcern ) { \n + WriteResult ( final int n , final boolean updateOfExisting , final Object upsertedId , final WriteConcern writeConcern ) { \n this . n = n ; \n this . updateOfExisting = updateOfExisting ; \n this . upsertedId = upsertedId ;", "msg_token": "Reduced visibility of WriteResult constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public class main { \n \n public static final String VERSION = STRING0 ;", "msg_token": "cleaned up comment"} {"diff": " public class DocHolder extends MessageHolder { \n downloadIcon . setVisibility ( View . GONE ) ; \n progressView . setVisibility ( View . GONE ) ; \n progressValue . setVisibility ( View . GONE ) ; \n + fileIcon . setVisibility ( View . GONE ) ; \n menu . setVisibility ( View . GONE ) ; \n status . setVisibility ( View . GONE ) ; \n \n public class DownloadManager extends ModuleActor { \n \n promote ( fileLocation . getFileId ( ) ) ; \n \n + if ( ! queueItem . callbacks . contains ( callback ) ) { \n + queueItem . callbacks . add ( callback ) ; \n + } \n + \n if ( queueItem . isStopped ) { \n callback . onNotDownloaded ( ) ; \n } else {", "msg_token": "Fixed callback reference in DownloadManager"} {"diff": " public class BuildCraftBakedModel extends PerspAwareModelBase { \n List < MutableQuad > mutableQuads = BCModelHelper . toMutableQuadList ( baked , false ) ; \n for ( MutableQuad mutable : mutableQuads ) { \n mutable . transform ( translation ) ; \n + mutable . setTint ( - NUMBER0 ) ; \n } \n \n return mutableQuads ; \n public class RobotStationModel extends BakedModelHolder implements IPluggableMod \n mutable . normalv ( normal ) ; \n float diffuse = MutableQuad . diffuseLight ( normal ) ; \n mutable . colourf ( diffuse , diffuse , diffuse , NUMBER0 ) ; \n - BCLog . logger . info ( STRING0 + mutable ) ; \n BCModelHelper . appendBakeQuads ( quads , format , mutable ) ; \n } \n }", "msg_token": "Fix robot stattion block models"} {"diff": " public class InputsResource extends RestResource { \n } \n \n LOG . info ( STRING0 + input . getName ( ) + STRING1 ) ; \n - SINGLE \n + if ( inputState == null ) \n + input . initialize ( ) ; \n inputLauncher . launch ( input ) ; \n LOG . info ( STRING2 + input . getName ( ) + STRING1 ) ; \n } \n public class InputsResource extends RestResource { \n try { \n final Input input = inputService . findForThisNodeOrGlobal ( serverStatus . getNodeId ( ) . toString ( ) , inputId ) ; \n messageInput = inputService . getMessageInput ( input ) ; \n + messageInput . initialize ( ) ; \n } catch ( NoSuchInputTypeException | org . graylog2 . database . NotFoundException e ) { \n final String error = STRING3 + inputId + STRING4 ; \n LOG . info ( error ) ;", "msg_token": "Initializing inputs which are pre existing but not running yet"} {"diff": " public class AppCacheTest extends AndroidTestCase { \n verifyTestFiles1 ( cacheDir , STRING0 , NUMBER0 ) ; \n } \n \n - @ largetest \n + SINGLE \n + SINGLE \n public void testFreeApplicationCacheSomeFiles ( ) throws Exception { \n StatFs st = new StatFs ( STRING1 ) ; \n long blks1 = getFreeStorageBlks ( st ) ;", "msg_token": "Suppress flaky test AppCacheTest testFreeApplicationCacheSomeFiles"} {"diff": " public class Memory extends Pointer { \n protected void finalize ( ) { } \n COMMENT \n protected void boundsCheck ( long off , long sz ) { \n - Memory . this . boundsCheck ( ( int ) ( this . peer - Memory . this . peer ) + off , sz ) ; \n + Memory . this . boundsCheck ( this . peer - Memory . this . peer + off , sz ) ; \n } \n } \n \n public class Memory extends Pointer { \n COMMENT \n COMMENT \n COMMENT \n - public Memory ( int size ) { \n + public Memory ( long size ) { \n this . size = size ; \n if ( size <= NUMBER0 ) \n throw new IllegalArgumentException ( STRING0 ) ;", "msg_token": "Fix Memory ctor signature"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ImageUrlsRequestBuilder { \n \n public ImageUrlsRequestBuilder ( final String endpointUrl ) { \n mEndpointUrl = Preconditions . checkNotNull ( endpointUrl ) ; \n - mRequestedImageFormats = Maps . newHashMap ( ) ; \n + mRequestedImageFormats = new HashMap < > ( ) ; \n } \n \n COMMENT", "msg_token": "Removed common internal dependency for maps"} {"diff": " public class TestProcessor implements Processor { \n \n public static final class Factory implements Processor . Factory { \n @ override \n - public TestProcessor create ( Map < String , Processor . Factory > registry , String processorTag , Map < String , Object > config ) throws Exception { \n + public TestProcessor create ( Map < String , Processor . Factory > registry , String processorTag , \n + Map < String , Object > config ) throws Exception { \n return new TestProcessor ( processorTag , STRING0 , ingestDocument - > { } ) ; \n } \n }", "msg_token": "Fix checkstyle for TestProcessor"} {"diff": " public class SearchServer extends MonitoredProcess { \n } \n \n private File esHomeDir ( ) { \n - if ( ! props . contains ( SONAR_PATH_HOME ) ) { \n + String homeDir = props . of ( SONAR_PATH_HOME ) ; \n + if ( StringUtils . isEmpty ( homeDir ) ) { \n throw new IllegalStateException ( STRING0 ) ; \n + } else { \n + return new File ( homeDir ) ; \n } \n - return new File ( props . of ( SONAR_PATH_HOME ) ) ; \n } \n \n private File esDataDir ( ) {", "msg_token": "fix quality flaw"} {"diff": " public class JetFlowInformationProvider { \n private final JetElement subroutine ; \n private final Pseudocode pseudocode ; \n private final PseudocodeVariablesData pseudocodeVariablesData ; \n - private BindingTrace trace ; \n + private final BindingTrace trace ; \n \n public JetFlowInformationProvider ( \n @ notnull JetElement declaration ,", "msg_token": "Field made final"} {"diff": " public class SitePickerSearchView extends SearchView implements SearchView . OnQue \n } ) ; \n } \n \n + public InputMethodManager getInputMethodManager ( ) { \n + return mInputMethodManager ; \n + } \n + \n public void enableSearchMode ( ) { \n requestFocus ( ) ; \n showSoftKeyboard ( ) ; \n public class SitePickerSearchView extends SearchView implements SearchView . OnQue \n mSitePickerActivity . getAdapter ( ) . loadSites ( ) ; \n } \n \n - private void showSoftKeyboard ( ) { \n + public void hideSoftKeyboard ( ) { \n if ( ! hasHardwareKeyboard ( ) ) { \n - mInputMethodManager . toggleSoftInput ( InputMethodManager . SHOW_IMPLICIT , InputMethodManager . HIDE_NOT_ALWAYS ) ; \n + mInputMethodManager . hideSoftInputFromWindow ( getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ; \n } \n } \n \n - public void hideSoftKeyboard ( ) { \n + private void showSoftKeyboard ( ) { \n if ( ! hasHardwareKeyboard ( ) ) { \n - mInputMethodManager . hideSoftInputFromWindow ( getWindowToken ( ) , InputMethodManager . HIDE_NOT_ALWAYS ) ; \n + mInputMethodManager . toggleSoftInput ( InputMethodManager . SHOW_IMPLICIT , InputMethodManager . HIDE_NOT_ALWAYS ) ; \n } \n }", "msg_token": "Flipping methods so public one is first"} {"diff": " abstract class BaseWebFragment extends LazyLoadFragment \n } \n \n private void setFullscreen ( boolean isFullscreen ) { \n - if ( ! getUserVisibleHint ( ) ) { \n + if ( getView ( ) == null ) { \n return ; \n } \n mFullscreen = isFullscreen ; \n mControls . setVisibility ( isFullscreen ? VISIBLE : View . GONE ) ; \n AppUtils . toggleWebViewZoom ( mWebView . getSettings ( ) , isFullscreen ) ; \n + ViewGroup . LayoutParams params = mWebView . getLayoutParams ( ) ; \n if ( isFullscreen ) { \n mScrollView . removeView ( mScrollViewContent ) ; \n mFullscreenView . addView ( mScrollViewContent ) ; \n + params . height = ViewGroup . LayoutParams . MATCH_PARENT ; \n } else { \n reset ( ) ; \n mWebView . pageUp ( true ) ; \n mFullscreenView . removeView ( mScrollViewContent ) ; \n mScrollView . addView ( mScrollViewContent ) ; \n + params . height = ViewGroup . LayoutParams . WRAP_CONTENT ; \n } \n + mWebView . setLayoutParams ( params ) ; \n } \n \n private void showPreferences ( ) {", "msg_token": "Prevent page swipe in fullscreen"} {"diff": " public interface PropertyResolver \n { \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - String resolve ( String propertyName ) \n + String resolve ( String aName ) \n throws CheckstyleException ; \n }", "msg_token": "Fix cause of GUMP failure"} {"diff": " public class LiveTemplateSettingsEditor extends JPanel { \n sb . append ( ownName ) ; \n } \n final boolean noContexts = sb . length ( ) == NUMBER0 ; \n - ctxLabel . setText ( ( noContexts ? STRING0 + ( allowNoContexts ? STRING1 : STRING2 ) : STRING3 + sb . toString ( ) ) + STRING4 ) ; \n + String contexts = ( noContexts ? STRING0 + ( allowNoContexts ? STRING1 : STRING2 ) : STRING3 + sb . toString ( ) ) + STRING4 ; \n + ctxLabel . setText ( StringUtil . first ( contexts , NUMBER1 , true ) ) ; \n ctxLabel . setForeground ( noContexts ? allowNoContexts ? JBColor . GRAY : JBColor . RED : UIUtil . getLabelForeground ( ) ) ; \n change . setText ( noContexts ? STRING5 : STRING6 ) ; \n }", "msg_token": "trim live template contexts label text to avoid the dialog becoming too wide"} {"diff": " class DecodeJob < A , T , Z > { \n } \n \n public void cancel ( ) { \n - fetcher . cancel ( ) ; \n isCancelled = true ; \n + fetcher . cancel ( ) ; \n } \n \n private Resource < Z > transformEncodeAndTranscode ( Resource < T > decoded ) {", "msg_token": "Fix a race in cancellation in DecodeJob"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removed wrong import causing tests to fail"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class Italian extends Language implements AutoCloseable { \n \n private Tagger tagger ; \n private SentenceTokenizer sentenceTokenizer ; \n private LuceneLanguageModel languageModel ; \n + private Disambiguator disambiguator ; \n \n @ override \n public String getName ( ) { \n public class Italian extends Language implements AutoCloseable { \n } \n } \n \n + @ override \n + public final Disambiguator getDisambiguator ( ) { \n + if ( disambiguator == null ) { \n + disambiguator = new ItalianRuleDisambiguator ( ) ; \n + } \n + return disambiguator ; \n + } \n + \n }", "msg_token": "Adding disambiguation for Italian"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added TODO for refactoring VBOS to all have a common base class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FBUtilities \n \n public static String toString ( Map < ? , ? > map ) \n { \n - SINGLE \n - StringBuilder sb = new StringBuilder ( STRING0 ) ; \n - for ( Map . Entry < ? , ? > entry : map . entrySet ( ) ) \n - { \n - sb . append ( toString ( entry . getKey ( ) ) ) . append ( STRING1 ) . append ( toString ( entry . getValue ( ) ) ) . append ( STRING2 ) ; \n - } \n - sb . append ( STRING3 ) ; \n - return sb . toString ( ) ; \n + Joiner . MapJoiner joiner = Joiner . on ( STRING4 ) . withKeyValueSeparator ( STRING5 ) ; \n + return joiner . join ( map ) ; \n } \n \n COMMENT", "msg_token": "replace ad hoc toString Map w guava MapJoiner"} {"diff": " public final class EventCollector extends TimerTask implements ProfilingListener \n if ( instance == null ) { \n event = new VertexAssignmentEvent ( timestamp , managementVertexID , STRING0 , STRING0 ) ; \n } else { \n - event = new VertexAssignmentEvent ( timestamp , managementVertexID , instance . getName ( ) , instance . getType ( ) \n + \n + String instanceName = null ; \n + if ( instance . getInstanceConnectionInfo ( ) != null ) { \n + instanceName = instance . getInstanceConnectionInfo ( ) . toString ( ) ; \n + } else { \n + instanceName = instance . toString ( ) ; \n + } \n + \n + event = new VertexAssignmentEvent ( timestamp , managementVertexID , instanceName , instance . getType ( ) \n . getIdentifier ( ) ) ; \n }", "msg_token": "Fixed problem with instance assignment update event in event collector"} {"diff": " public class GremlinSessionTest \n } \n \n @ test \n + public void testGremlinVersion ( ) \n + { \n + String result = session . evaluate ( STRING0 ) . first ( ) ; \n + assertEquals ( STRING1 + NEWLINE , result ) ; \n + } \n + \n + @ test \n public void canCreateNodesAndEdgesInGremlinLand ( ) \n { \n String result = session . evaluate ( STRING2 ) . first ( ) ; \n public class GremlinWebConsole \n { \n groovy . execute ( STRING3 + imps ) ; \n } \n + groovy . execute ( STRING4 ) ; \n groovy . setResultHook ( new GremlinResultHook ( groovy , io ) ) ; \n Gremlin . load ( ) ; \n }", "msg_token": "adding test for the Gremlin groovy import"} {"diff": " class ActivityUtils { \n activityList . get ( i ) . finish ( ) ; \n } \n getCurrentActivity ( ) . finish ( ) ; \n + activityList . clear ( ) ; \n \n } catch ( Throwable e ) {", "msg_token": "Fixed a small bug that impacts large applications with many Activities"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JsonExportTask extends AsyncTask < Void , Void , Integer > { \n lists . close ( ) ; \n } \n \n + if ( mIsAutoBackupMode ) { \n + SINGLE \n + final SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( mContext ) ; \n + prefs . edit ( ) . putLong ( SeriesGuidePreferences . KEY_LASTBACKUP , System . currentTimeMillis ( ) ) \n + . commit ( ) ; \n + } \n + \n return SUCCESS ; \n }", "msg_token": "Store last auto backup time in new JsonExportTask"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class RexsterElement implements Element { \n } \n \n public void setProperty ( final String key , final Object value ) { \n + if ( key . equals ( StringFactory . ID ) || ( key . equals ( StringFactory . LABEL ) && this instanceof Edge ) ) \n + throw new RuntimeException ( key + StringFactory . PROPERTY_EXCEPTION_MESSAGE ) ; \n + \n if ( key . startsWith ( RexsterTokens . UNDERSCORE ) ) \n throw new RuntimeException ( STRING0 ) ;", "msg_token": "updated RexsterGraph to not allow id and label properties"} {"diff": " public class SpecialAnnotationsUtil { \n @ nonnls final String name = psiAnnotation . getQualifiedName ( ) ; \n if ( name == null ) continue ; \n if ( name . startsWith ( STRING0 ) || name . startsWith ( STRING1 ) || \n - ( name . startsWith ( STRING2 ) && ! AnnotationUtil . isJetbrainsAnnotation ( StringUtil . getShortName ( name ) ) ) ) continue ; \n + ( name . startsWith ( STRING2 ) && AnnotationUtil . isJetbrainsAnnotation ( StringUtil . getShortName ( name ) ) ) ) continue ; \n if ( ! processor . process ( name ) ) break ; \n } \n }", "msg_token": "skip registered jetbrains annotations really"} {"diff": " public class DelimiterBasedFrameDecoder extends FrameDecoder { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public DelimiterBasedFrameDecoder setFailImmediatelyOnTooLongFrame ( \n - ) \n - { \n - return this ; \n - } \n - \n private void fail ( ChannelHandlerContext ctx , long frameLength ) { \n if ( frameLength > NUMBER0 ) { \n Channels . fireExceptionCaught (", "msg_token": "Remove empty method which I forgot to remove before"} {"diff": " public class PoiFiltersHelper { \n if ( place != null && ! Algorithms . isEmpty ( application . getLanguage ( ) ) ) { \n PoiUIFilter filter = new PoiUIFilter ( place , application , STRING0 + \n application . getLangTranslation ( application . getLanguage ( ) ) ) ; SINGLE \n - filter . setFilterByName ( STRING1 + application . getLanguage ( ) ) ; \n + filter . setSavedFilterByName ( STRING1 + application . getLanguage ( ) ) ; \n filter . setStandardFilter ( true ) ; \n localWikiPoiFilter = filter ; \n }", "msg_token": "Add wikipedia local"} {"diff": " public class SsoWebViewClient extends WebViewClient { \n @ override \n public void onPageStarted ( WebView view , String url , Bitmap favicon ) { \n Log_OC . d ( TAG , STRING0 + url ) ; \n + view . clearCache ( true ) ; \n super . onPageStarted ( view , url , favicon ) ; \n }", "msg_token": "Fixed bug it is not possible to login using two accounts in saml server"} {"diff": " public class FileInStream extends InputStream implements BoundedStream , Seekable \n SINGLE \n SINGLE \n SINGLE \n - LOG . info ( STRING0 , \n - e . getMessage ( ) ) ; \n + LOG . info ( \n + STRING1 \n + + STRING2 , e . getMessage ( ) ) ; \n } \n } \n mCurrentCacheStream = null ;", "msg_token": "update logging msg"} {"diff": " class HttpTunnelingClientSocketChannel extends AbstractChannel \n public void operationComplete ( ChannelFuture f ) { \n realChannel . close ( ) . addListener ( new ChannelFutureListener ( ) { \n public void operationComplete ( ChannelFuture f ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n if ( f . isSuccess ( ) ) { \n future . setSuccess ( ) ; \n } else { \n future . setFailure ( f . getCause ( ) ) ; \n } \n + \n + SINGLE \n + setClosed ( ) ; \n } \n } ) ; \n }", "msg_token": "Fixed a bug where HttpTunnelingClientSocketChannel s closeFuture is not notified if the connection is closed by the client"} {"diff": " public class PdfJsWindow extends WindowEx \n } - * / ; \n \n public final native void goToPage ( int page ) 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 + COMMENT \n + COMMENT \n COMMENT ; \n \n public final native int getCurrentPage ( ) / * - {", "msg_token": "retry pdf js page set if target page has not yet rendered"} {"diff": " public class MethodSorterTest { \n } \n \n @ test \n + public void testDefaultMethodSorter ( ) { \n + List < String > expected = Arrays . asList ( new String [ ] { EPSILON , BETA , ALPHA , DELTA , GAMMA_VOID , GAMMA_BOOLEAN } ) ; \n + List < String > actual = getDeclaredFilteredMethods ( DummySortWithDefault . class , expected ) ; \n + assertEquals ( expected , actual ) ; \n + } \n + \n + \n + @ test \n public void testDefaultSorter ( ) { \n String [ ] expected = new String [ ] { EPSILON , BETA , ALPHA , DELTA , GAMMA_VOID , GAMMA_BOOLEAN } ; \n assertEquals ( Arrays . asList ( expected ) . toString ( ) , declaredMethods ( DummySortWithDefault . class ) ) ;", "msg_token": "Fixed MethodSorter test case for default sorter"} {"diff": " public class AboutDialog { \n } \n \n protected String getAboutText ( ) { \n - return STRING0 + JLanguageTool . VERSION + STRING1 \n + return STRING0 + JLanguageTool . VERSION + STRING2 + JLanguageTool . BUILD_DATE + STRING3 \n + STRING4 \n + STRING5 \n + STRING6", "msg_token": "add build date to About dialog"} {"diff": " public class PyBlock implements ASTBlock { \n else { \n childIndent = parentType == PyElementTypes . PARAMETER_LIST || isInControlStatement ( ) \n ? Indent . getContinuationIndent ( ) \n - : Indent . getNormalIndent ( true ) ; \n + : Indent . getNormalIndent ( COMMENT ) ; \n } \n } \n else if ( parentType == PyElementTypes . DICT_LITERAL_EXPRESSION || parentType == PyElementTypes . SET_LITERAL_EXPRESSION || \n public class PyFormatterTest extends PyTestCase { \n doTest ( ) ; \n } \n \n - public void testIndentInNestedCall ( ) { SINGLE \n + public void _testIndentInNestedCall ( ) { SINGLE \n doTest ( ) ; \n }", "msg_token": "don t fail the test just yet"} {"diff": " public class Solo { \n public final static int MENU = NUMBER0 ; \n public final static int DELETE = NUMBER1 ; \n public final static int CALL = NUMBER2 ; \n - public final static int ENDCALL = NUMBER3 ; \n \n \n COMMENT \n public class Solo { \n case CALL : \n robotiumUtils . sendKeyCode ( KeyEvent . KEYCODE_CALL ) ; \n break ; \n - case ENDCALL : \n - robotiumUtils . sendKeyCode ( KeyEvent . KEYCODE_ENDCALL ) ; \n - break ; \n default : \n break ; \n }", "msg_token": "Removed ENDCALL key as it does not work for most cases"} {"diff": " public class UniqueConstraint extends AbstractPersistentConstraint { \n String uniquenessGroupPropertyName = ( String ) anUniquenessGroup ; \n Object uniquenessGroupPropertyValue = GrailsClassUtils . getPropertyOrStaticPropertyOrFieldValue ( target , uniquenessGroupPropertyName ) ; \n \n - if ( DomainClassArtefactHandler . isDomainClass ( uniquenessGroupPropertyValue . getClass ( ) ) ) { \n + if ( uniquenessGroupPropertyValue != null && DomainClassArtefactHandler . isDomainClass ( uniquenessGroupPropertyValue . getClass ( ) ) ) { \n try { \n SINGLE \n session . lock ( uniquenessGroupPropertyValue , LockMode . NONE ) ;", "msg_token": "fixed potential NPE in unique constraint"} {"diff": " public final class CursorAnchorInfo implements Parcelable { \n || ! areSameFloatImpl ( mInsertionMarkerBottom , that . mInsertionMarkerBottom ) ) { \n return false ; \n } \n - if ( ! Objects . equals ( mComposingTextStart , that . mComposingTextStart ) ) { \n - return false ; \n - } \n if ( ! Objects . equals ( mCharacterRects , that . mCharacterRects ) ) { \n return false ; \n }", "msg_token": "Get rid of one redundant comparison of mComposingTextStart"} {"diff": " public class InstrumentationTestRunner extends Instrumentation implements TestSu \n mIncludeDetailedStats = false ; \n try { \n SINGLE \n - if ( testMethod . isAnnotationPresent ( TimedTest . class ) ) { \n + if ( testMethod != null && testMethod . isAnnotationPresent ( TimedTest . class ) ) { \n mIsTimedTest = true ; \n mIncludeDetailedStats = testMethod . getAnnotation ( \n TimedTest . class ) . includeDetailedStats ( ) ;", "msg_token": "Fix NPE in InstrumentationTestRunner"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class MessageItem implements Comparable < MessageItem > { \n \n public Spannable getSpannable ( ) { \n if ( spannable == null ) { \n - spannable = Emoticons . newSpannable ( text ) ; \n + spannable = Emoticons . newSpannable ( Html . fromHtml ( text ) ) ; \n Linkify . addLinks ( this . spannable , Linkify . ALL ) ; \n XMPPUri . addLinks ( this . spannable ) ; \n }", "msg_token": "Process HTML tags"} {"diff": " public class DomUtils \n child = child . offsetParent ; \n } \n \n + if ( ! child ) \n + return ; \n + \n SINGLE \n top -= padding ; \n height += padding * NUMBER0 ;", "msg_token": "Fix bug where console jumps to top"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class HttpCookieDecoder { \n - private final static String semicolon = STRING0 ; \n \n + SINGLE \n + private final static String semicolon = STRING0 ; \n private final static String equals = STRING1 ; \n \n public Map < String , HttpCookie > decode ( String header ) { \n import NAMESPACE ; \n COMMENT \n public class HttpCookieEncoder { \n \n + SINGLE \n private final Map < String , HttpCookie > cookies = new TreeMap < String , HttpCookie > ( CaseIgnoringComparator . INSTANCE ) ; \n \n public void addCookie ( String name , String val ) {", "msg_token": "Added more TODOs"} {"diff": " public class AndroidDatabaseConnection implements DatabaseConnection { \n } \n } \n \n + public boolean isTableExists ( String tableName ) throws SQLException { \n + SINGLE \n + return true ; \n + } \n + \n private void bindArgs ( SQLiteStatement stmt , Object [ ] args , FieldType [ ] argFieldTypes ) { \n if ( args == null ) { \n return ;", "msg_token": "Added isTableExists boolean to the DAO and the DatabaseConnection"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \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", "msg_token": "Fix Javadoc typo"} {"diff": " public class EdgeDraftImpl implements EdgeDraft , EdgeDraftGetter { \n SINGLE \n private Color color ; \n private boolean labelVisible ; \n - private boolean visible ; \n + private boolean visible = true ; \n private float labelSize ; \n \n SINGLE \n public class NodeDraftImpl implements NodeDraft , NodeDraftGetter { \n private float z ; \n private float labelSize ; \n private boolean labelVisible ; \n - private boolean visible ; \n + private boolean visible = true ; \n private boolean fixed ; \n \n SINGLE", "msg_token": "Set visible default value to true in drafts"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ test \n + @ test ( singleThreaded = true ) \n public class TestJdbcMetadata \n { \n private static final ConnectorSession SESSION = new ConnectorSession ( STRING0 , UTC_KEY , ENGLISH , System . currentTimeMillis ( ) , null ) ;", "msg_token": "Fix JDBC connector tests"} {"diff": " public class ResolverResults { \n this . fatalFailure = failure ; \n } \n \n - public void withResolvedConfiguration ( ResolvedConfiguration resolvedConfiguration ) { \n - this . resolvedConfiguration = resolvedConfiguration ; \n - } \n - \n public void retainState ( ResolvedGraphResults graphResults , ResolvedArtifactsBuilder artifactResults , TransientConfigurationResultsBuilder transientConfigurationResultsBuilder ) { \n this . graphResults = graphResults ; \n this . artifactResults = artifactResults ; \n this . transientConfigurationResultsBuilder = transientConfigurationResultsBuilder ; \n } \n \n + public void withResolvedConfiguration ( ResolvedConfiguration resolvedConfiguration ) { \n + this . resolvedConfiguration = resolvedConfiguration ; \n + this . graphResults = null ; \n + this . transientConfigurationResultsBuilder = null ; \n + this . artifactResults = null ; \n + } \n + \n public ResolvedGraphResults getGraphResults ( ) { \n return graphResults ; \n }", "msg_token": "Clear some state from ResolverResults when no longer required"} {"diff": " public abstract class RepositoryPage extends BasePage { \n if ( objectId != null ) { \n RefModel branch = null ; \n if ( ( branch = JGitUtils . getBranch ( getRepository ( ) , objectId ) ) != null ) { \n - boolean canAccess = GitBlitWebSession \n - . get ( ) \n - . getUser ( ) \n - . hasBranchPermission ( getRepositoryModel ( ) . name , \n + UserModel user = GitBlitWebSession . get ( ) . getUser ( ) ; \n + if ( user == null ) { \n + SINGLE \n + user = UserModel . ANONYMOUS ; \n + } \n + boolean canAccess = user . hasBranchPermission ( repositoryName , \n branch . reference . getName ( ) ) ; \n if ( ! canAccess ) { \n error ( STRING0 , true ) ;", "msg_token": "Added UserModel null check"} {"diff": " public class HttpDumpers { \n } \n \n private static boolean isText ( String type ) { \n - return type == null || type . startsWith ( STRING0 ) || type . endsWith ( STRING1 ) || type . endsWith ( STRING2 ) ; \n + return type == null || type . startsWith ( STRING0 ) || type . endsWith ( STRING1 ) || type . endsWith ( STRING2 ) || type . endsWith ( STRING3 ) ; \n } \n \n private static long getContentLength ( HttpMessage response , long defaultValue ) {", "msg_token": "Update HttpDumpers recognized text content types"} {"diff": " public interface Implementation extends InstrumentedType . Prepareable { \n this . visibility = visibility ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n protected abstract DelegationRecord with ( AccessType accessType ) ; \n \n @ override \n public interface MethodAccessorFactory { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n MethodDescription . InDefinedShape registerAccessorFor ( Implementation . SpecialMethodInvocation specialMethodInvocation , AccessType accessType ) ; \n public interface MethodAccessorFactory { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n MethodDescription . InDefinedShape registerGetterFor ( FieldDescription fieldDescription , AccessType accessType ) ; \n public interface MethodAccessorFactory { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n MethodDescription . InDefinedShape registerSetterFor ( FieldDescription fieldDescription , AccessType accessType ) ;", "msg_token": "Added missing documentation"} {"diff": " public class HaIdGeneratorFactory implements IdGeneratorFactory \n { \n if ( state == IdGeneratorState . PENDING ) \n throw new IllegalStateException ( state . name ( ) ) ; \n - \n - try \n - { \n - return delegate . nextIdBatch ( size ) ; \n - } \n - catch ( UnsupportedOperationException e ) \n - { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - try \n - { \n - Thread . sleep ( NUMBER0 ) ; \n - return delegate . nextIdBatch ( size ) ; \n - } \n - catch ( InterruptedException e1 ) \n - { \n - throw new RuntimeException ( e1 ) ; \n - } \n - } \n + \n + return delegate . nextIdBatch ( size ) ; \n } \n \n @ override", "msg_token": "Revert Temporary fix for race condition in switch to master using slave tx id generator"} {"diff": " public class TourViewActivity extends SherlockFragmentActivity { \n showSelectedItem ( ) ; \n } \n } \n - \n + \n + @ override \n + public void onBackPressed ( ) { \n + if ( state == STATE_SELECT_TOUR ) { \n + super . onBackPressed ( ) ; \n + } else if ( state == STATE_TOUR_VIEW ) { \n + selectMenu ( R . string . sherpafy_tours ) ; \n + } else if ( state == STATE_STAGE_OVERVIEW ) { \n + selectMenu ( customization . getSelectedTour ( ) ) ; \n + } \n + } \n \n private ArrayAdapter < Object > setupAdapter ( ) { \n return new ArrayAdapter < Object > ( this , R . layout . sherpafy_drawer_list_item ) {", "msg_token": "Added back handling for shertpafytoursactivity"} {"diff": " public class NcsaRequestLogFormatter implements RequestLogger . Formatter { \n Request request = outcome . getRequest ( ) ; \n SentResponse response = outcome . getResponse ( ) ; \n \n - builder . append ( request . getRemoteAddress ( ) ) ; \n + builder . append ( request . getRemoteAddress ( ) . getHostText ( ) ) ; \n builder . append ( STRING0 ) ; \n \n builder . append ( request . maybeGet ( UserId . class ) . map ( Object : : toString ) . orElse ( STRING1 ) ) ; \n public class NcsaRequestLogFormatter implements RequestLogger . Formatter { \n builder . append ( STRING2 ) ; \n \n builder . append ( request . getMethod ( ) . getName ( ) ) ; \n - builder . append ( STRING3 ) ; \n + builder . append ( STRING4 ) ; \n \n builder . append ( request . getRawUri ( ) ) ; \n builder . append ( STRING4 ) ;", "msg_token": "Fix NCSA request log formatter"} {"diff": " public class HomematicBinding extends AbstractActiveBinding < HomematicBindingProv \n COMMENT \n @ override \n protected long getRefreshInterval ( ) { \n - return context . getConfig ( ) . getAliveInterval ( ) * NUMBER0 ; \n + return NUMBER1 ; \n } \n \n COMMENT", "msg_token": "Changed alive validation check to one minute"} {"diff": " public final class NodeUtil { \n case Token . INSTANCEOF : \n case Token . TYPEOF : \n case Token . AND : \n + case Token . OR : \n return true ; \n \n case Token . NE : \n public final class NewTypeInferenceES5OrLowerTest extends NewTypeInferenceTestBa \n STRING0 , \n STRING1 , \n STRING2 ) ) ; \n + \n + typeCheck ( LINE_JOINER . join ( \n + STRING3 , \n + STRING4 , \n + STRING5 , \n + STRING2 ) ) ; \n } \n \n public void testFunctionReturnTypeSpecialization ( ) {", "msg_token": "NTI Fix regression and correctly tighten property types"} {"diff": " import NAMESPACE ; \n public class RenderManager { \n \n private static final Logger logger = Logger . getLogger ( RenderManager . class . getName ( ) ) ; \n + \n private Renderer renderer ; \n private Timer timer ; \n private ArrayList < ViewPort > preViewPorts = new ArrayList < ViewPort > ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - \n package NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class Timer { \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract class Timer { \n COMMENT \n public abstract void update ( ) ; \n \n - \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract void reset ( ) ; \n public class Picture extends Geometry { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added some new lines here and there"} {"diff": " public class HttpGetter { \n HttpClient client = newClient ( ) ; \n try { \n HttpGet httpget = new HttpGet ( url ) ; \n + httpget . addHeader ( HttpHeaders . ACCEPT_LANGUAGE , STRING0 ) ; \n httpget . addHeader ( HttpHeaders . PRAGMA , STRING1 ) ; \n httpget . addHeader ( HttpHeaders . CACHE_CONTROL , STRING2 ) ; \n httpget . addHeader ( HttpHeaders . USER_AGENT ,", "msg_token": "set lang header"} {"diff": " public abstract class AbstractSharedSessionContract implements SharedSessionCont \n SINGLE \n SINGLE \n ois . defaultReadObject ( ) ; \n + sessionEventsManager = new SessionEventListenerManagerImpl ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fix SessionEventListenerManager serialization issue"} {"diff": " public class ShowcaseView extends RelativeLayout \n invalidate ( ) ; \n } \n \n + public void setShowcaseX ( float x ) { \n + setShowcasePosition ( x , showcaseY ) ; \n + } \n + \n + public void setShowcaseY ( float y ) { \n + setShowcasePosition ( showcaseX , y ) ; \n + } \n + \n + public float getShowcaseX ( ) { \n + return showcaseX ; \n + } \n + \n + public float getShowcaseY ( ) { \n + return showcaseY ; \n + } \n + \n public void setShowcaseItem ( final int itemType , final int actionItemId , \n final Activity activity ) { \n post ( new Runnable ( ) {", "msg_token": "Added some getters and setters"} {"diff": " public class IOConverterTest extends ContextTestSupport { \n byte [ ] data = IOConverter . toBytes ( new FileInputStream ( file ) ) ; \n assertEquals ( STRING0 , file . length ( ) , data . length ) ; \n assertEquals ( STRING1 , ( char ) data [ NUMBER0 ] ) ; \n - char testChar = ( char ) data [ data . length - NUMBER1 ] ; \n - if ( System . getProperty ( STRING2 ) . startsWith ( STRING3 ) ) { \n - SINGLE \n - testChar = ( char ) data [ data . length - NUMBER2 ] ; \n - } \n - assertEquals ( STRING4 , testChar ) ; \n - SINGLE \n - assertEquals ( STRING5 , ( char ) data [ data . length - NUMBER3 ] ) ; \n + \n + SINGLE \n + String s = new String ( data ) ; \n + assertTrue ( STRING6 , s . contains ( STRING7 ) ) ; \n } \n \n public void testToByteArray ( ) throws Exception {", "msg_token": "Polished test due user forum issue on windows"} {"diff": " public abstract class DataConnection extends HierarchicalStateMachine { \n \n SINGLE \n boolean okToUseSystemPropertyDns = false ; \n + cid = response . cid ; \n String propertyPrefix = STRING0 + response . ifname + STRING1 ; \n String dnsServers [ ] = new String [ NUMBER0 ] ; \n dnsServers [ NUMBER1 ] = SystemProperties . get ( propertyPrefix + STRING2 ) ;", "msg_token": "set CID to the correct value"} {"diff": " public interface Try < T > extends TraversableOnce < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updating thenRun to allow chaining of previous success value"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ManagedModelCreators { \n . descriptor ( descriptor ) ; \n \n if ( schema . getKind ( ) == ModelSchema . Kind . STRUCT && Named . class . isAssignableFrom ( type . getRawClass ( ) ) ) { \n - builder . action ( ModelActionRole . Initialize , new NamedInitializer ( path , descriptor ) ) ; \n + SINGLE \n + SINGLE \n + if ( ( ( ModelStructSchema < T > ) schema ) . getProperties ( ) . containsKey ( STRING0 ) ) { \n + builder . action ( ModelActionRole . Initialize , new NamedInitializer ( path , descriptor ) ) ; \n + } \n } \n if ( initializer != null ) { \n builder . action ( ModelActionRole . Initialize , initializer ) ;", "msg_token": "Only set name on new struct if name property is managed"} {"diff": " \n package NAMESPACE ; \n \n public class NumberUtils { \n + COMMENT \n + COMMENT \n + static public boolean intToFloatColorMask = true ; \n + \n public static int floatToIntBits ( float value ) { \n return Float . floatToIntBits ( value ) ; \n } \n public class NumberUtils { \n COMMENT \n COMMENT \n public static float intToFloatColor ( int value ) { \n - return Float . intBitsToFloat ( value & NUMBER0 ) ; \n + return Float . intBitsToFloat ( intToFloatColorMask ? ( value & NUMBER0 ) : value ) ; \n } \n \n public static float intBitsToFloat ( int value ) {", "msg_token": "Added boolean to turn off float color mask"} {"diff": " public class FieldLookup { \n value = null ; \n valueLoaded = false ; \n values . clear ( ) ; \n - valuesLoaded = false ; \n doc = null ; \n }", "msg_token": "remove double setting clear"} {"diff": " public class AndroidMessenger extends BaseMessenger { \n } \n \n @ override \n + public void changeGroupAvatar ( int gid , String descriptor ) { \n + try { \n + Bitmap bmp = ImageHelper . loadOptimizedHQ ( descriptor ) ; \n + if ( bmp == null ) { \n + return ; \n + } \n + String resultFileName = getExternalTempFile ( STRING0 , STRING1 ) ; \n + if ( resultFileName == null ) { \n + return ; \n + } \n + ImageHelper . save ( bmp , resultFileName ) ; \n + \n + super . changeGroupAvatar ( gid , resultFileName ) ; \n + } catch ( IOException e ) { \n + e . printStackTrace ( ) ; \n + } \n + } \n + \n + @ override \n public void changeAvatar ( String descriptor ) { \n try { \n Bitmap bmp = ImageHelper . loadOptimizedHQ ( descriptor ) ;", "msg_token": "Fixed group avatar orientation"} {"diff": " public abstract class ChartView extends RelativeLayout { \n COMMENT \n public void addData ( ArrayList < ChartSet > data ) { \n \n - final int nEntries = data . get ( NUMBER0 ) . size ( ) ; \n - for ( ChartSet set : data ) \n - if ( nEntries != set . size ( ) ) \n - Log . e ( TAG , STRING0 , \n - new IllegalArgumentException ( ) ) ; \n - \n this . data = data ; \n }", "msg_token": "removed addData Array size check due to performance decrease"} {"diff": " import NAMESPACE ; \n file = STRING0 \n ) } \n ) \n - public final class ProjectViewImpl extends ProjectView implements PersistentStateComponent < Element > , Disposable , QuickActionProvider , BusyObject { \n + public class ProjectViewImpl extends ProjectView implements PersistentStateComponent < Element > , Disposable , QuickActionProvider , BusyObject { \n private static final Logger LOG = Logger . getInstance ( STRING1 ) ; \n private final CopyPasteDelegator myCopyPasteDelegator ; \n private boolean isInitialized ;", "msg_token": "Hack scope view out of AppCode"} {"diff": " public class BpmnXMLConverter implements BpmnXMLConstants { \n addConverter ( AlfrescoUserTaskXMLConverter . getXMLType ( ) , AlfrescoUserTaskXMLConverter . getBpmnElementType ( ) , AlfrescoUserTaskXMLConverter . class ) ; \n } \n \n - private static void addConverter ( String elementName , Class < ? extends BaseElement > elementClass , \n + public static void addConverter ( String elementName , Class < ? extends BaseElement > elementClass , \n Class < ? extends BaseBpmnXMLConverter > converter ) { \n \n convertersToBpmnMap . put ( elementName , converter ) ;", "msg_token": "Added possibility to register custom XMLConverters changed visibility"} {"diff": " public class Consts { \n kwd . add ( STRING0 ) ; \n kwd . add ( STRING1 ) ; \n kwd . add ( STRING2 ) ; \n + kwd . add ( STRING3 ) ; \n kwd . add ( STRING4 ) ; \n kwd . add ( STRING5 ) ; \n kwd . add ( STRING6 ) ;", "msg_token": "Missed strict keyword"} {"diff": " public class DbUtils { \n return getInstance ( config ) ; \n } \n \n + public static DbUtils create ( Context context , String sdCardPath , String dbName , int dbVersion , DbUpgradeListener dbUpgradeListener ) throws DbException { \n + DaoConfig config = new DaoConfig ( context ) ; \n + config . setSdCardPath ( sdCardPath ) ; \n + config . setDbName ( dbName ) ; \n + config . setDbVersion ( dbVersion ) ; \n + config . setDbUpgradeListener ( dbUpgradeListener ) ; \n + return getInstance ( config ) ; \n + } \n + \n public static DbUtils create ( DaoConfig daoConfig ) throws DbException { \n return getInstance ( daoConfig ) ; \n }", "msg_token": "DbUtils add a create method"} {"diff": " public class OnSubscribeToObservableFuture { \n } \n } ) ) ; \n try { \n + SINGLE \n + if ( subscriber . isUnsubscribed ( ) ) { \n + return ; \n + } \n T value = ( unit == null ) ? ( T ) that . get ( ) : ( T ) that . get ( time , unit ) ; \n subscriber . onNext ( value ) ; \n subscriber . onCompleted ( ) ; \n public class OnSubscribeToObservableFuture { \n SINGLE \n SINGLE \n SINGLE \n + if ( subscriber . isUnsubscribed ( ) ) { \n + SINGLE \n + return ; \n + } \n subscriber . onError ( e ) ; \n } \n }", "msg_token": "Modify OnSubscribeToObservableFuture to return early if unsubscribe without emitting anything"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractStandardTest { \n } \n \n @ test \n + public void Constant ( ) { \n + SINGLE \n + query ( ) . from ( cat ) . list ( new QTuple ( cat . id , Expressions . constantAs ( STRING0 , new StringPath ( STRING1 ) ) ) ) ; \n + } \n + \n + @ test \n public void DistinctResults ( ) { \n System . out . println ( STRING2 ) ; \n SearchResults < Date > res = query ( ) . from ( cat ) . limit ( NUMBER0 ) . listResults ( cat . birthdate ) ;", "msg_token": "added test case"} {"diff": " public class ChapterListAdapter extends ArrayAdapter < Chapter > { \n public int getCount ( ) { \n SINGLE \n int counter = NUMBER0 ; \n - for ( Chapter chapter : chapters ) { \n - if ( ! ignoreChapter ( chapter ) ) { \n - counter ++ ; \n + if ( chapters != null ) { \n + for ( Chapter chapter : chapters ) { \n + if ( ! ignoreChapter ( chapter ) ) { \n + counter ++ ; \n + } \n } \n } \n return counter ;", "msg_token": "prevent NPE when chapters is null"} {"diff": " public class PostprocessReformattingAspect implements PomModelAspect , Disposable \n private final Set < FileViewProvider > myUpdatedProviders = new HashSet < FileViewProvider > ( ) ; \n \n private ApplicationListener myApplicationListener = new ApplicationAdapter ( ) { \n - private boolean myInWriteAction = false ; \n - \n public void writeActionStarted ( final Object action ) { \n - assert ! myInWriteAction ; \n final Project project = CommandProcessor . getInstance ( ) . getCurrentCommandProject ( ) ; \n if ( project == myProject ) { \n - myInWriteAction = true ; \n myPostponedCounter ++ ; \n } \n } \n \n public void writeActionFinished ( final Object action ) { \n - if ( myInWriteAction ) { \n - myInWriteAction = false ; \n + final Project project = CommandProcessor . getInstance ( ) . getCurrentCommandProject ( ) ; \n + if ( project == myProject ) { \n decrementPostponedCounter ( ) ; \n } \n }", "msg_token": "fix handling of nested write actions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove stray import"} {"diff": " public class ByWord { \n \n if ( isAlpha ( ch ) ) { \n int startOffset = offset ; \n - offset ++ ; SINGLE \n \n int h = NUMBER0 ; \n while ( offset < len ) {", "msg_token": "the first character should affect hash code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class BaseRefreshDrawable extends Drawable implements Drawable . Callback , Animatable { \n \n private boolean mEndOfRefreshing ; \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class SunRefreshDrawable extends BaseRefreshDrawable implements Animatable {", "msg_token": "add link and copy right"} {"diff": " public class CssCompressor { \n } \n m . appendTail ( sb ) ; \n css = sb . toString ( ) ; \n - css = css . replaceAll ( STRING0 , STRING1 ) ; \n + css = css . replaceAll ( STRING2 , STRING1 ) ; \n css = css . replaceAll ( STRING3 , STRING4 ) ; \n \n SINGLE \n - css = css . replaceAll ( STRING5 , STRING1 ) ; \n + css = css . replaceAll ( STRING6 , STRING1 ) ; \n \n SINGLE \n css = css . replaceAll ( STRING7 , STRING8 ) ;", "msg_token": "Remove spaces before and after and"} {"diff": " public class ChunkOptionsPopupPanel extends ThemedPopupPanel \n \n static { \n BOOLEAN_CHUNK_OPTIONS = new HashMap < String , String > ( ) ; \n - BOOLEAN_CHUNK_OPTIONS . put ( STRING0 , STRING1 ) ; \n - BOOLEAN_CHUNK_OPTIONS . put ( STRING2 , STRING3 ) ; \n - BOOLEAN_CHUNK_OPTIONS . put ( STRING4 , STRING5 ) ; \n + BOOLEAN_CHUNK_OPTIONS . put ( STRING0 , STRING6 ) ; \n + BOOLEAN_CHUNK_OPTIONS . put ( STRING2 , STRING7 ) ; \n + BOOLEAN_CHUNK_OPTIONS . put ( STRING4 , STRING8 ) ; \n } \n \n public interface Styles extends CssResource", "msg_token": "remove question marks"} {"diff": " class InstallPluginCommand extends Command { \n \n SINGLE \n static final Set < String > MODULES = unmodifiableSet ( newHashSet ( \n + STRING0 , \n STRING1 , \n - STRING2 ) ) ; \n + STRING2 , \n + STRING3 , \n + STRING4 ) ) ; \n \n SINGLE \n static final Set < String > OFFICIAL_PLUGINS = unmodifiableSet ( new LinkedHashSet < > ( Arrays . asList ( \n class InstallPluginCommand extends Command { \n STRING5 , \n STRING6 , \n STRING7 , \n + STRING8 , \n + STRING9 , \n STRING10 , \n - STRING3 , \n STRING11 , \n STRING12 , \n STRING13 ,", "msg_token": "Fix list of modules and official plugins"} {"diff": " public class Vpn extends BaseNetworkStateTracker { \n int appId = UserHandle . getAppId ( Binder . getCallingUid ( ) ) ; \n final long token = Binder . clearCallingIdentity ( ) ; \n try { \n - SINGLE \n + SINGLE \n PackageManager pm = mContext . getPackageManager ( ) ; \n ApplicationInfo app = pm . getApplicationInfo ( VpnConfig . DIALOGS_PACKAGE , NUMBER0 ) ; \n - if ( appId == app . uid ) { \n + if ( ( ( app . flags & ApplicationInfo . FLAG_SYSTEM ) != NUMBER0 ) && ( appId == app . uid ) ) { \n return ; \n } \n } catch ( Exception e ) {", "msg_token": "Add system partition check for vpn dialogs"} {"diff": " public class HotThreadsTest extends ElasticsearchIntegrationTest { \n client ( ) . prepareIndex ( STRING0 , STRING1 , STRING2 ) . setSource ( STRING3 , STRING4 ) , \n client ( ) . prepareIndex ( STRING0 , STRING1 , STRING5 ) . setSource ( STRING3 , STRING6 ) ) ; \n ensureSearchable ( ) ; \n - if ( randomBoolean ( ) ) { \n - optimize ( ) ; \n - } \n while ( latch . getCount ( ) > NUMBER0 ) { \n assertHitCount ( \n client ( ) . prepareSearch ( )", "msg_token": "Remove unnecessary optimize call that destabelizes test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MetricsPluginTest extends AbstractPerformanceMonitorPluginTest { \n } \n \n @ test \n + @ ignore \n public void testRunWithProblematicProbe ( ) throws IOException { \n metricsRegistry . register ( this , STRING0 , MANDATORY , new LongProbeFunction ( ) { \n @ override", "msg_token": "Disabling MetricsPluginTest testRunWithProblematicProbe due to spurious failure"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n \n private class Handler implements OpenStreetMapContentHandler { \n \n - private static final double VISIBILITY_EPSILON = FLOAT0 ; \n + private static final double VISIBILITY_EPSILON = FLOAT1 ; \n private Map < Long , OSMNode > _nodes = new HashMap < Long , OSMNode > ( ) ; \n private Map < Long , OSMWay > _ways = new HashMap < Long , OSMWay > ( ) ; \n private List < Area > _areas = new ArrayList < Area > ( ) ;", "msg_token": "again reduce epsilon to handle really tiny features"} {"diff": " public class RemoteOperationResult implements Serializable { \n } \n \n public boolean isTemporalRedirection ( ) { \n - return ( mHttpCode == NUMBER0 || mHttpCode == NUMBER1 ) ; \n + return ( mHttpCode == NUMBER0 || mHttpCode == NUMBER1 || \n + mRedirectedLocation . toUpperCase ( ) . contains ( STRING0 ) || \n + mRedirectedLocation . toLowerCase ( ) . contains ( STRING1 ) ) ; \n } \n \n public String getRedirectedLocation ( ) {", "msg_token": "add an extra condition to check of redirection"} {"diff": " public final class NioEventLoop extends SingleThreadEventLoop { \n try { \n selector . close ( ) ; \n } catch ( IOException e ) { \n - logger . warn ( \n - STRING0 , e ) ; \n + logger . warn ( STRING0 , e ) ; \n } \n }", "msg_token": "Remove unnecessarily split line"} {"diff": " public class SampleTask extends AbstractTask { \n int counter = NUMBER0 ; \n while ( ! this . taskCanceled && in . hasNext ( ) ) { \n KeyValuePair < Key , Value > pair = in . next ( ) ; \n - out . collect ( pair . getKey ( ) , pair . getValue ( ) ) ; \n - if ( counter >= NUMBER1 ) { \n - break ; \n + counter ++ ; \n + if ( ( counter % NUMBER2 ) == NUMBER0 ) { \n + out . collect ( pair . getKey ( ) , pair . getValue ( ) ) ; \n } \n - \n - ++ counter ; \n SINGLE \n } \n } \n - } \n + }", "msg_token": "Reverted changes to sample task"} {"diff": " public final class BlockMaster extends MasterBase implements ContainerIdGenerabl \n public long getNewContainerId ( ) { \n synchronized ( mBlockContainerIdGenerator ) { \n long containerId = mBlockContainerIdGenerator . getNewContainerId ( ) ; \n - writeJournalEntry ( new BlockContainerIdGeneratorEntry ( containerId ) ) ; \n + writeJournalEntry ( mBlockContainerIdGenerator . toJournalEntry ( ) ) ; \n flushJournal ( ) ; \n return containerId ; \n }", "msg_token": "BlocakMaster writes wrong containerID into jounal"} {"diff": " public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SecurityLog { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static final int TAG_APP_PROCESS_START = SecurityLogTags . SECURITY_APP_PROCESS_START ; \n COMMENT", "msg_token": "Adjusting javadocs for process logging"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void clearModes ( ) { \n + modes . clear ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void addMode ( TraverseMode mode ) { \n modes . setMode ( mode , true ) ; \n } \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void addMode ( List < TraverseMode > mList ) { \n for ( TraverseMode m : mList ) { \n addMode ( m ) ; \n public class TraverseModeSet implements Cloneable , Serializable { \n throw new RuntimeException ( e ) ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void clear ( ) { \n + modes = NUMBER0 ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Allow clients to clear the TraverseModeSet held by RoutingRequest"} {"diff": " public class EditorModificationUtil { \n } \n \n private static String getStringContent ( final Transferable content ) throws UnsupportedFlavorException , IOException { \n + RawText raw = null ; \n + try { \n + raw = ( RawText ) content . getTransferData ( RawText . FLAVOR ) ; \n + } \n + catch ( UnsupportedFlavorException e ) { \n + SINGLE \n + } \n + catch ( IOException e ) { \n + SINGLE \n + } \n + \n String s ; \n - RawText raw = ( RawText ) content . getTransferData ( RawText . FLAVOR ) ; \n if ( raw != null ) { \n s = raw . rawText ; \n }", "msg_token": "Fix pasting from external clipboard"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add apache license header"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - public interface ResourceElement extends AndroidDomElement { \n + public interface ResourceElement extends GenericDomValue < String > , AndroidDomElement { \n @ required \n GenericAttributeValue < String > getName ( ) ; \n - \n - String getValue ( ) ; \n - \n - void setValue ( String s ) ; \n }", "msg_token": "inherit GenericDomValue interface"} {"diff": " class LoadListener extends Handler implements EventHandler { \n mCacheLoader != null ) ? HTTP_OK : mStatusCode ; \n SINGLE \n final int nativeResponse = nativeCreateResponse ( \n - mUrl , statusCode , mStatusText , \n + originalUrl ( ) , statusCode , mStatusText , \n mMimeType , mContentLength , mEncoding ) ; \n if ( mHeaders != null ) { \n mHeaders . getHeaders ( new Headers . HeaderCallback ( ) { \n class LoadListener extends Handler implements EventHandler { \n return ; \n } \n \n - if ( mOriginalUrl == null ) { \n - mOriginalUrl = mUrl ; \n - } \n \n SINGLE \n if ( getErrorID ( ) == OK ) { \n class LoadListener extends Handler implements EventHandler { \n WebViewWorker . MSG_REMOVE_CACHE , this ) . sendToTarget ( ) ; \n } \n \n + SINGLE \n + mOriginalUrl = redirectTo ; \n SINGLE \n setUrl ( redirectTo ) ;", "msg_token": "Don t cut the url on a redirect"} {"diff": " public class DefaultXmlExtension extends XmlExtension { \n final String name = tag . getLocalName ( ) ; \n final Set < String > byTagName = getNamespacesByTagName ( name , file ) ; \n if ( ! byTagName . isEmpty ( ) ) { \n - byTagName . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ; \n - return byTagName ; \n + Set < String > filtered = new HashSet < String > ( byTagName ) ; \n + filtered . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ; \n + return filtered ; \n } \n final Set < String > set = guessNamespace ( file , name ) ; \n set . removeAll ( Arrays . asList ( tag . knownNamespaces ( ) ) ) ;", "msg_token": "do not remove elements from returned sets"} {"diff": " public final class PrintHelper { \n COMMENT \n COMMENT \n public static boolean systemSupportsPrint ( ) { \n - if ( STRING0 . equals ( Build . VERSION . CODENAME ) SINGLE \n - || Build . VERSION . SDK_INT > NUMBER0 ) { \n - \n + if ( Build . VERSION . SDK_INT >= NUMBER1 ) { \n + SINGLE \n return true ; \n } \n return false ; \n public class ScaleGestureDetectorCompat { \n \n static { \n final int version = android . os . Build . VERSION . SDK_INT ; \n - if ( version > NUMBER0 ) { SINGLE \n + if ( version >= NUMBER1 ) { SINGLE \n IMPL = new ScaleGestureDetectorCompatKitKatImpl ( ) ; \n } else { \n IMPL = new BaseScaleGestureDetectorImpl ( ) ;", "msg_token": "Update support lib to match final KitKat API version"} {"diff": " public abstract class DefaultMapAggregateMessageTask < P > \n } \n } \n } finally { \n - combinedResult . onCombineFinished ( ) ; \n + if ( combinedResult != null ) { \n + combinedResult . onCombineFinished ( ) ; \n + } \n } \n return combinedResult ; \n } \n - \n }", "msg_token": "Fixed FindBugs issue in DefaultMapAggregateMessageTask"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "core Remove extra li HTML tags in TypeInformation JavaDoc class header"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n checks . add ( suspiciousCode ) ; \n } \n \n + if ( options . closurePass && options . checkMissingGetCssNameLevel . isOn ( ) \n + && ! options . skipNonTranspilationPasses ) { \n + checks . add ( closureCheckGetCssName ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE \n public final class DefaultPassConfig extends PassConfig { \n \n SINGLE \n \n - if ( options . closurePass && options . checkMissingGetCssNameLevel . isOn ( ) ) { \n - checks . add ( closureCheckGetCssName ) ; \n - } \n - \n if ( options . syntheticBlockStartMarker != null ) { \n SINGLE \n checks . add ( createSyntheticBlocks ) ;", "msg_token": "Moving closureCheckGetCssName pass to before the later transpilation step"} {"diff": " public class PinotAdministrator { \n \n public static void main ( String [ ] args ) throws Exception { \n PinotAdministrator pinotAdministrator = new PinotAdministrator ( ) ; \n - \n pinotAdministrator . execute ( args ) ; \n - System . exit ( pinotAdministrator . getStatus ( ) ? NUMBER0 : NUMBER1 ) ; \n } \n \n public void printUsage ( ) {", "msg_token": "Removing sys exit from PinotAdministrator"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class LoggingHandler implements ChannelUpstreamHandler , ChannelDownstream \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public InternalLogLevel getLevel ( ) { \n + return level ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added LoggingHandler getLevel"} {"diff": " public class DocumentOutlineWidget extends Composite \n \n private void onValueChanged ( ) \n { \n - buildScopeTree ( ) ; \n - resetTreeStyles ( ) ; \n + SINGLE \n + SINGLE \n + if ( docUpdateTimer_ != null ) \n + docUpdateTimer_ . cancel ( ) ; \n + \n + docUpdateTimer_ = new Timer ( ) \n + { \n + \n + @ override \n + public void run ( ) \n + { \n + buildScopeTree ( ) ; \n + resetTreeStyles ( ) ; \n + } \n + } ; \n + \n + docUpdateTimer_ . schedule ( NUMBER0 ) ; \n } \n \n private void buildScopeTree ( ) \n public class DocumentOutlineWidget extends Composite \n private final TextEditingTarget target_ ; \n \n private final Timer renderTimer_ ; \n + private Timer docUpdateTimer_ ; \n private JsArray < Scope > scopeTree_ ; \n \n SINGLE", "msg_token": "avoid rebuilding scope tree too eagerly"} {"diff": " public interface Storage < K , R > { \n \n R get ( K key ) ; \n \n - Object removeRecord ( R record ) ; \n + void removeRecord ( R record ) ; \n \n boolean containsKey ( K key ) ; \n \n class StorageImpl < R extends Record > implements Storage < Data , R > { \n } \n \n @ override \n - public Object removeRecord ( R record ) { \n + public void removeRecord ( R record ) { \n if ( record == null ) { \n - return null ; \n + return ; \n } \n \n Data key = record . getKey ( ) ; \n class StorageImpl < R extends Record > implements Storage < Data , R > { \n \n updateSizeEstimator ( - calculateHeapCost ( record ) ) ; \n updateSizeEstimator ( - calculateHeapCost ( key ) ) ; \n - \n - Object oldValue = record . getValue ( ) ; \n record . invalidate ( ) ; \n - return oldValue ; \n } \n \n protected void updateSizeEstimator ( long recordSize ) {", "msg_token": "removed return value from Storage removeRecord"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ContentChooser < Data > extends DialogWrapper { \n \n private static class MyListCellRenderer extends ColoredListCellRenderer { \n protected void customizeCellRenderer ( JList list , Object value , int index , boolean selected , boolean hasFocus ) { \n + SINGLE \n + if ( UIUtil . isUnderGTKLookAndFeel ( ) ) { \n + final Color background = selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ; \n + UIUtil . changeBackGround ( this , background ) ; \n + } \n setIcon ( textIcon ) ; \n if ( index <= NUMBER0 ) { \n append ( String . valueOf ( ( index + NUMBER1 ) % NUMBER2 ) + STRING0 , SimpleTextAttributes . GRAYED_ATTRIBUTES ) ;", "msg_token": "items have grey background"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ runwith ( JUnit4 . class ) \n public final class ExtensionWithStateTest { \n static class A { }", "msg_token": "add RunWith annotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class NotificationStackScrollLayout extends ViewGroup \n super . onInterceptTouchEvent ( ev ) ; \n } \n \n + @ override \n + protected void onViewRemoved ( View child ) { \n + super . onViewRemoved ( child ) ; \n + mCurrentStackScrollState . removeViewStateForView ( child ) ; \n + } \n + \n private boolean onInterceptTouchEventScroll ( MotionEvent ev ) { \n COMMENT \n COMMENT \n public class StackScrollState { \n return mStateMap . get ( requestedView ) ; \n } \n \n + public void removeViewStateForView ( View child ) { \n + mStateMap . remove ( child ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix memory leak in NotificationStackScrollLayout"} {"diff": " public class OperationSetBasicInstantMessagingIcqImpl \n } \n \n String msgContent ; \n + String msgContentType ; \n if ( msgBody . startsWith ( defaultHtmlStartTag ) ) \n { \n msgContent = msgBody . substring ( \n msgBody . indexOf ( defaultHtmlStartTag ) \n + defaultHtmlStartTag . length ( ) , \n msgBody . indexOf ( defaultHtmlEndTag ) ) ; \n + \n + msgContentType = HTML_MIME_TYPE ; \n } \n else \n + { \n msgContent = msgBody ; \n + msgContentType = DEFAULT_MIME_TYPE ; \n + } \n \n Message newMessage = \n - createMessage ( msgContent , HTML_MIME_TYPE , \n + createMessage ( msgContent , msgContentType , \n DEFAULT_MIME_ENCODING , null ) ; \n \n Contact sourceContact =", "msg_token": "Fix URLs within icq messages"} {"diff": " public interface TimelineMethods { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n ResponseList < Status > getHomeTimeline ( Paging paging ) throws TwitterException ;", "msg_token": "adding setHttpMaxTotalConnections and setHttpMaxTotalConnections to ConfigurationBuilder"} {"diff": " public final class TransportFrameUtil { \n COMMENT \n public static byte [ ] [ ] toHttp2Headers ( Metadata headers ) { \n byte [ ] [ ] serializedHeaders = headers . serialize ( ) ; \n - ArrayList < byte [ ] > result = new ArrayList < byte [ ] > ( ) ; \n + ArrayList < byte [ ] > result = new ArrayList < byte [ ] > ( serializedHeaders . length ) ; \n for ( int i = NUMBER0 ; i < serializedHeaders . length ; i += NUMBER1 ) { \n byte [ ] key = serializedHeaders [ i ] ; \n byte [ ] value = serializedHeaders [ i + NUMBER2 ] ;", "msg_token": "Set likely final size of array in toHttp2Headers"} {"diff": " public class ManagedMetricsRoutePolicyTest extends CamelTestSupport { \n SINGLE \n Set < ObjectName > set = getMBeanServer ( ) . queryNames ( new ObjectName ( STRING0 ) , null ) ; \n assertEquals ( NUMBER0 , set . size ( ) ) ; \n - } \n + } \n \n @ override \n protected RouteBuilder createRouteBuilder ( ) throws Exception {", "msg_token": "Fix a checkstyle issue"} {"diff": " public class XDebuggerEvaluationDialog extends DialogWrapper { \n @ override \n public void actionPerformed ( AnActionEvent e ) { \n doOKAction ( ) ; \n - } \n - } . registerCustomShortcutSet ( new CustomShortcutSet ( KeyStroke . getKeyStroke ( KeyEvent . VK_ENTER , InputEvent . CTRL_DOWN_MASK ) ) , getRootPane ( ) , myDisposable ) ; \n - \n - new AnAction ( ) { \n - @ override \n - public void actionPerformed ( AnActionEvent e ) { \n - doOKAction ( ) ; \n addToWatches ( ) ; \n } \n } . registerCustomShortcutSet ( new CustomShortcutSet ( KeyStroke . getKeyStroke ( KeyEvent . VK_ENTER , InputEvent . CTRL_DOWN_MASK | InputEvent . SHIFT_DOWN_MASK ) ) , getRootPane ( ) , myDisposable ) ;", "msg_token": "removed redundant ctrl enter listener"} {"diff": " public class LlapDaemon extends AbstractService implements ContainerRunner , Llap \n \n public LlapDaemon ( LlapDaemonConfiguration daemonConf ) { \n super ( STRING0 ) ; \n + \n + printAsciiArt ( ) ; \n + \n SINGLE \n SINGLE \n this . numExecutors = daemonConf . getInt ( LlapDaemonConfiguration . LLAP_DAEMON_NUM_EXECUTORS , \n public class LlapDaemon extends AbstractService implements ContainerRunner , Llap \n this . server = new LlapDaemonProtocolServerImpl ( daemonConf , this , address ) ; \n this . containerRunner = new ContainerRunnerImpl ( numExecutors , localDirs , shufflePort , address , \n memoryPerInstance , metrics ) ; \n + } \n \n + private void printAsciiArt ( ) { \n + final String asciiArt = STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING10 ; \n + LOG . info ( STRING11 + asciiArt ) ; \n } \n \n @ override", "msg_token": "Print ASCII art of LLAP during daemon startup Prasanth Jayachandran"} {"diff": " public class SignInFragment extends AbstractFragment implements TextWatcher { \n mSelfHosted = true ; \n } \n \n - public void setNewLoginView ( boolean isWPCom ) { \n - mForgotPassword . setVisibility ( View . GONE ) ; \n - mAddSelfHostedButton . setVisibility ( View . GONE ) ; \n - mCreateAccountButton . setVisibility ( View . GONE ) ; \n - if ( isWPCom ) { \n - mUrlButtonLayout . setVisibility ( View . GONE ) ; \n - } else { \n - mUrlButtonLayout . setVisibility ( View . VISIBLE ) ; \n - } \n - mSelfHosted = ! isWPCom ; \n - } \n - \n @ override \n public void onConfigurationChanged ( Configuration newConfig ) { \n super . onConfigurationChanged ( newConfig ) ;", "msg_token": "Removing work for magic links as that is all handled in MagicLinkSignInFragment now"} {"diff": " public class ResultSetViewer extends Viewer implements IDataSourceProvider , ISpr \n SINGLE \n } \n \n + @ notnull \n public Spreadsheet getSpreadsheet ( ) \n { \n return spreadsheet ;", "msg_token": "Activate RS by a single CTRL TAB in SQL editor"} {"diff": " import NAMESPACE ; \n \n public class Logger \n { \n - SINGLE \n - \n java . util . logging . Logger logger ; \n \n public static Logger getLogger ( Class < ? > clazz ) \n public class Logger \n public void log ( Level level , String message , Object . . . parameters ) \n { \n \n - if ( logger . isLoggable ( level ) ) \n + final String logMessage = String . format ( message , parameters ) ; \n + if ( logger != null && logger . isLoggable ( level ) ) \n + { \n + logger . log ( level , logMessage ) ; \n + } \n + else \n { \n - logger . log ( level , String . format ( message , parameters ) ) ; \n + System . out . println ( \n + String . format ( STRING0 , level . getName ( ) , logMessage ) ) ; \n } \n }", "msg_token": "Added an untested check to see if logger is configured before using it in server"} {"diff": " public class BuildAndDecodeJarTest { \n private static ExtFile sTestOrigDir ; \n private static ExtFile sTestNewDir ; \n \n - private final static Logger LOGGER = Logger . getLogger ( BuildAndDecodeTest . class . getName ( ) ) ; \n + private final static Logger LOGGER = Logger . getLogger ( BuildAndDecodeJarTest . class . getName ( ) ) ; \n }", "msg_token": "skip fixed bad logger name"} {"diff": " public class TextEditingTargetNotebook \n @ handler \n public void onNotebookClearAllOutput ( ) \n { \n - removeAllChunks ( ) ; \n + if ( executingChunk_ == null && chunkExecQueue_ . isEmpty ( ) ) \n + { \n + SINGLE \n + removeAllChunks ( ) ; \n + return ; \n + } \n + else \n + { \n + RStudioGinjector . INSTANCE . getGlobalDisplay ( ) . showYesNoMessage ( \n + GlobalDisplay . MSG_INFO , \n + STRING0 , \n + STRING1 + \n + STRING2 , \n + false , \n + new Operation ( ) \n + { \n + @ override \n + public void execute ( ) \n + { \n + if ( commands_ . interruptR ( ) . isEnabled ( ) ) \n + commands_ . interruptR ( ) . execute ( ) ; \n + \n + clearChunkExecQueue ( ) ; \n + removeAllChunks ( ) ; \n + } \n + } , \n + null , \n + null , \n + STRING3 , \n + STRING4 , \n + false ) ; \n + } \n } \n SINGLE", "msg_token": "handle case where output is cleared while chunks are executing"} {"diff": " public class FlinkTopology { \n getClass ( ) . getClassLoader ( ) \n ) ; \n } catch ( IOException | ClassNotFoundException e ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING0 , e ) ; \n } \n }", "msg_token": "hotfix storm Add proper exception forwarding to FlinkTopology copyObject"} {"diff": " public final class ModelPreferences \n PrefUtils . setDefaultPreferenceValue ( store , SQL_NAMED_PARAMETERS_PREFIX , String . valueOf ( SQLConstants . DEFAULT_PARAMETER_PREFIX ) ) ; \n \n PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_FORMATTER , SQLTokenizedFormatter . FORMATTER_ID ) ; \n - PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_KEYWORD_CASE , DBPIdentifierCase . UPPER . name ( ) ) ; \n + PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_KEYWORD_CASE , STRING0 ) ; \n PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_CMD , STRING0 ) ; \n PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_FILE , false ) ; \n PrefUtils . setDefaultPreferenceValue ( store , SQL_FORMAT_EXTERNAL_TIMEOUT , NUMBER0 ) ;", "msg_token": "Set default keyword case to database specific"} {"diff": " import NAMESPACE ; \n COMMENT \n @ gwtcompatible ( serializable = true , emulated = true ) \n @ suppresswarnings ( STRING0 ) SINGLE \n - final class RegularImmutableSet < E > extends ImmutableSet < E > { \n + final class RegularImmutableSet < E > extends ImmutableSet . Indexed < E > { \n static final RegularImmutableSet < Object > EMPTY = \n new RegularImmutableSet < Object > ( ObjectArrays . EMPTY_ARRAY , NUMBER0 , null , NUMBER0 ) ; \n \n final class RegularImmutableSet < E > extends ImmutableSet < E > { \n return elements . length ; \n } \n \n - @ suppresswarnings ( STRING1 ) SINGLE \n - @ override \n - public UnmodifiableIterator < E > iterator ( ) { \n - return ( UnmodifiableIterator < E > ) Iterators . forArray ( elements ) ; \n + @ override E get ( int i ) { \n + return ( E ) elements [ i ] ; \n } \n \n @ override", "msg_token": "RegularImmutableSet extends ImmutableSet Indexed"} {"diff": " public class QueryMonitor \n \n private static Optional < TaskInfo > findFailedTask ( StageInfo stageInfo ) \n { \n + if ( stageInfo == null ) { \n + return Optional . empty ( ) ; \n + } \n + \n for ( StageInfo subStage : stageInfo . getSubStages ( ) ) { \n Optional < TaskInfo > task = findFailedTask ( subStage ) ; \n if ( task . isPresent ( ) ) {", "msg_token": "Fix NPE when query fails during parsing planning"} {"diff": " class Searcher { \n private final Instrumentation inst ; \n private final Sleeper sleeper ; \n private final int TIMEOUT = NUMBER0 ; \n - private final int LONGTIMEOUT = NUMBER1 ; \n private final String LOG_TAG = STRING0 ; \n \n COMMENT \n class Searcher { \n expectedMinimumNumberOfMatches = NUMBER2 ; \n } \n final Pattern pattern = Pattern . compile ( regex ) ; \n - final long endTime = System . currentTimeMillis ( ) + LONGTIMEOUT ; \n Collection < T > views ; \n - while ( System . currentTimeMillis ( ) < endTime ) { \n - \n + while ( true ) { \n views = viewFetcherCallback . call ( ) ; \n for ( TextView view : views ) { \n final Matcher matcher = pattern . matcher ( view . getText ( ) . toString ( ) ) ; \n class Searcher { \n } \n sleeper . sleep ( NUMBER3 ) ; \n } \n - return false ; \n } \n \n COMMENT", "msg_token": "Removed timeout in searchFor"} {"diff": " public class MainFrame \n this . initTitleFont ( ) ; \n \n ResourceManagementService resources = GuiActivator . getResources ( ) ; \n - String applicationName = resources . getSettingsString ( STRING0 ) ; \n + String applicationName \n + = resources . getSettingsString ( STRING1 ) ; \n \n this . setTitle ( applicationName ) ;", "msg_token": "Fixed missing main window title"} {"diff": " import NAMESPACE ; \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", "msg_token": "Add boxed types to RealmObject javadoc"} {"diff": " public final class CommonUtils { \n } \n } \n \n - public static void warmUpJVM ( ) { \n + public static void warmUpLoop ( ) { \n for ( int k = NUMBER0 ; k < NUMBER1 ; k ++ ) { \n } \n } \n public class Performance { \n sFiles , sBlockSizeBytes / NUMBER2 , sBlocksPerFile , sFileBytes / Constants . MB , \n fileBufferBytes / NUMBER2 , sBaseFileNumber ) ; \n \n - CommonUtils . warmUpJVM ( ) ; \n + CommonUtils . warmUpLoop ( ) ; \n \n if ( testCase == NUMBER3 ) { \n sResultPrefix = STRING0 + sResultPrefix ;", "msg_token": "Changing the loop function name to warmUpLoop"} {"diff": " public class RankingModelImpl implements RankingModel , AttributeListener { \n Collection < ? extends RankingBuilder > builders = Lookup . getDefault ( ) . lookupAll ( RankingBuilder . class ) ; \n for ( RankingBuilder builder : builders ) { \n Ranking [ ] builtRankings = builder . buildRanking ( this ) ; \n - for ( Ranking r : builtRankings ) { \n - if ( r . getElementType ( ) . equals ( elementType ) ) { \n - rankings . add ( r ) ; \n + if ( builtRankings != null ) { \n + for ( Ranking r : builtRankings ) { \n + if ( r . getElementType ( ) . equals ( elementType ) ) { \n + rankings . add ( r ) ; \n + } \n } \n } \n }", "msg_token": "Fix NullPointerException in RankingModelImpl"} {"diff": " public class BlockLockManager { \n \n public synchronized Optional < Long > lockBlock ( long userId , long blockId , \n BlockLockType blockLockType ) { \n - int hashValue = ( int ) blockId % NUM_LOCKS ; \n + SINGLE \n + int hashValue = ( int ) ( blockId % ( long ) NUM_LOCKS ) ; \n ClientRWLock blockLock = mLockArray . get ( hashValue ) ; \n Lock lock = null ; \n if ( blockLockType == BlockLockType . READ ) {", "msg_token": "Fix hashValue which may be negative"} {"diff": " public class FavoriteManager implements LocalItemManager < Favorite > { \n private static final String URI_PATH_CLEAR = STRING0 ; \n @ visiblefortesting static final String FILE_AUTHORITY = STRING1 ; \n private static final String PATH_SAVED = STRING2 ; \n - private static final String FILENAME_EXPORT = STRING3 ; \n + private static final String FILENAME_EXPORT = STRING4 ; \n private final Scheduler mIoScheduler ; \n @ synthetic Cursor mCursor ; \n private final int mNotificationId = Long . valueOf ( System . currentTimeMillis ( ) ) . intValue ( ) ; \n public class FavoriteManagerTest { \n manager = new FavoriteManager ( Schedulers . immediate ( ) ) { \n @ override \n protected Uri getUriForFile ( Context context , File file ) { \n - return Uri . parse ( STRING5 + FavoriteManager . FILE_AUTHORITY + STRING6 ) ; \n + return Uri . parse ( STRING5 + FavoriteManager . FILE_AUTHORITY + STRING7 ) ; \n } \n } ; \n }", "msg_token": "Give export file a descriptive name"} {"diff": " public class LocalStore extends Store implements Serializable \n cv . put ( STRING0 , message . getInternalDate ( ) == null \n ? System . currentTimeMillis ( ) : message . getInternalDate ( ) . getTime ( ) ) ; \n String messageId = message . getMessageId ( ) ; \n - Log . e ( K9 . LOG_TAG , STRING1 ) ; \n if ( messageId != null ) \n { \n - Log . e ( K9 . LOG_TAG , STRING2 + messageId ) ; \n cv . put ( STRING3 , messageId ) ; \n } \n long messageUid = mDb . insert ( STRING4 , STRING5 , cv ) ;", "msg_token": "removing debugging messages"} {"diff": " public class PackageFunction implements SkyFunction { \n } \n packageShouldBeInError = markFileDepsAndPropagateInconsistentFilesystemExceptions ( \n pkg . getName ( ) , subincludeFileDepKeys , env , pkg . containsErrors ( ) ) ; \n - SINGLE \n - SINGLE \n \n SINGLE \n SINGLE", "msg_token": "Remove obsolete comment about labels crossing subpackage check happening in legacy package loading"} {"diff": " class ExtendedBeanInfo implements BeanInfo { \n continue ALL_METHODS ; \n } \n } \n - if ( method == pd . getReadMethod ( ) \n - || ( pd instanceof IndexedPropertyDescriptor && method == ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) ) ) { \n + if ( method . equals ( pd . getReadMethod ( ) ) \n + || ( pd instanceof IndexedPropertyDescriptor && method . equals ( ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) ) ) ) { \n SINGLE \n if ( pd instanceof IndexedPropertyDescriptor ) { \n this . addOrUpdatePropertyDescriptor ( pd , pd . getName ( ) , pd . getReadMethod ( ) , pd . getWriteMethod ( ) , ( ( IndexedPropertyDescriptor ) pd ) . getIndexedReadMethod ( ) , ( ( IndexedPropertyDescriptor ) pd ) . getIndexedWriteMethod ( ) ) ;", "msg_token": "Fix method equality bug in ExtendedBeanInfo"} {"diff": " public class LayoutManager extends RecyclerView . LayoutManager { \n updateHeaderForTrimFromStart ( header ) ; \n } \n \n - if ( getDecoratedBottom ( header ) < NUMBER0 ) { \n + if ( getDecoratedBottom ( header ) <= NUMBER0 ) { \n removeAndRecycleView ( header , state . recycler ) ; \n } \n } \n public class LayoutManager extends RecyclerView . LayoutManager { \n \n final int height = getDecoratedMeasuredHeight ( header ) ; \n if ( ( sd . headerParams . isHeaderInline ( ) && ! sd . headerParams . isHeaderOverlay ( ) ) \n - || ( sectionBottom - sectionTop ) > height ) { \n + || ( sectionBottom - sectionTop ) >= height ) { \n final int left = getDecoratedLeft ( header ) ; \n final int right = getDecoratedRight ( header ) ;", "msg_token": "Pass scroll consistency tests"} {"diff": " public class LintMojo extends AbstractAndroidMojo \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed documentation for enabling lint"} {"diff": " public class ClassFileNameHandler { \n super ( parent , logicalName ) ; \n } \n \n - public FileSystemEntry addChild ( FileSystemEntry entry ) { \n + public synchronized FileSystemEntry addChild ( FileSystemEntry entry ) { \n String normalizedChildName = entry . getNormalizedName ( false ) ; \n Collection < FileSystemEntry > entries = children . get ( normalizedChildName ) ; \n if ( entry instanceof DirectoryEntry ) {", "msg_token": "Make ClassFileNameHandler thread safe"} {"diff": " public class QueryTest { \n } \n \n @ test \n + public void multipleFromTest ( ) throws IOException , SqlParseException , SQLFeatureNotSupportedException { \n + SearchHits response = query ( String . format ( STRING0 , TEST_INDEX , TEST_INDEX ) ) ; \n + Assert . assertEquals ( NUMBER0 , response . getTotalHits ( ) ) ; \n + } \n + \n + \n + @ test \n public void selectSpecificFields ( ) throws IOException , SqlParseException , SQLFeatureNotSupportedException { \n String [ ] arr = new String [ ] { STRING1 , STRING2 } ; \n Set expectedSource = new HashSet ( Arrays . asList ( arr ) ) ;", "msg_token": "add multiple from test"} {"diff": " public abstract class AbstractTestQueries \n } \n \n @ test \n + public void testDistinctHaving ( ) \n + throws Exception \n + { \n + assertQuery ( STRING0 + \n + STRING1 + \n + STRING2 + \n + STRING3 ) ; \n + } \n + \n + @ test \n public void testDistinctWindow ( ) \n throws Exception \n {", "msg_token": "Add test for HAVING with DISTINCT aggregations"} {"diff": " abstract public class Log { \n private static ArrayList < String > INIT_MSGS = new ArrayList < String > ( ) ; \n \n public static void flushStdout ( ) { \n - for ( String s : INIT_MSGS ) { \n - System . out . println ( s ) ; \n - } \n + if ( INIT_MSGS != null ) { \n + for ( String s : INIT_MSGS ) { \n + System . out . println ( s ) ; \n + } \n \n - INIT_MSGS . clear ( ) ; \n + INIT_MSGS . clear ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fix NPE in Log class"} {"diff": " public class TextIconGenerator { \n COMMENT \n private void ensureViewsSetUp ( ) { \n if ( mContainer == null ) { \n - final LayoutInflater inflater = ( LayoutInflater ) mContext . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ; \n - mContainer = ( ViewGroup ) inflater . inflate ( R . layout . text_bubble , null ) ; \n + mContainer = ( ViewGroup ) LayoutInflater . from ( mContext ) . inflate ( R . layout . text_bubble , null ) ; \n mRotationLayout = ( RotationLayout ) mContainer . getChildAt ( NUMBER0 ) ; \n mContentView = mTextView = ( TextView ) mRotationLayout . findViewById ( R . id . text ) ; \n }", "msg_token": "Use the LayoutInflater from Context utility method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class JoglContext implements JmeContext { \n glfbo = ( GLFbo ) GLTracer . createDesktopGlTracer ( glfbo , GLFbo . class ) ; \n } \n \n - renderer = new GLRenderer ( gl , glext , glfbo ) ; \n + SINGLE \n + SINGLE \n + renderer = new JoglRenderer ( ) ; \n renderer . initialize ( ) ; \n } else { \n throw new UnsupportedOperationException ( STRING0 + settings . getRenderer ( ) ) ;", "msg_token": "Temporarily disables the unified renderer in the JogAmp backend"} {"diff": " public abstract class LogEntry \n @ override \n public String toString ( ) \n { \n - return STRING0 + getIdentifier ( ) + STRING1 + xid + STRING1 + timestamp ( timeWritten ) + STRING2 ; \n + return STRING0 + getIdentifier ( ) + STRING3 + xid + STRING4 + masterId + STRING5 + timestamp ( timeWritten ) + STRING2 ; \n } \n }", "msg_token": "Improved toString of LogEntry Start"} {"diff": " public class DataInfo extends Keyed { \n assert false ; \n row . response [ i ] = ( row . response [ i ] - _normRespSub [ i ] ) * _normRespMul [ i ] ; \n } \n - if ( Double . isNaN ( row . response [ row . response . length - i ] ) ) { \n - assert false ; \n + if ( Double . isNaN ( row . response [ row . response . length - i ] ) ) \n row . bad = true ; \n - } \n } \n } \n return rows ;", "msg_token": "Removed bad assert asserting we get no NAs in resigns column"} {"diff": " public abstract class Drawable { \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", "msg_token": "Fix Drawable getOpacity docs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n JavaScriptExecutor jsExecutor , \n JSBundleLoader jsBundleLoader ) { \n FLog . i ( ReactConstants . TAG , STRING0 ) ; \n + ReactMarker . logMarker ( STRING1 ) ; \n mSourceUrl = jsBundleLoader . getSourceUrl ( ) ; \n NativeModuleRegistry . Builder nativeRegistryBuilder = new NativeModuleRegistry . Builder ( ) ; \n JavaScriptModulesConfig . Builder jsModulesBuilder = new JavaScriptModulesConfig . Builder ( ) ; \n import NAMESPACE ; \n Systrace . endSection ( Systrace . TRACE_TAG_REACT_JAVA_BRIDGE ) ; \n } \n \n + ReactMarker . logMarker ( STRING2 ) ; \n return reactContext ; \n }", "msg_token": "Add cold start events dashboard ctscan test"} {"diff": " public class JavaHeaderCompileActionBuilder { \n builder . addOutput ( outputDepsProto ) ; \n } \n \n - builder . useParameterFile ( ParameterFileType . SHELL_QUOTED ) ; \n + builder . useParameterFile ( ParameterFileType . UNQUOTED ) ; \n builder . setCommandLine ( buildCommandLine ( ruleContext . getConfiguration ( ) . getHostPathSeparator ( ) ) ) ; \n \n builder . addTransitiveInputs ( javabaseInputs ) ;", "msg_token": "Don t shell quote header compiler params files"} {"diff": " public class Glove implements Serializable { \n } \n \n \n + public VocabCache getCache ( ) { \n + return cache ; \n + } \n \n + public void setCache ( VocabCache cache ) { \n + this . cache = cache ; \n + } \n \n + public GloveWeightLookupTable getLookupTable ( ) { \n + return lookupTable ; \n + } \n \n + public void setLookupTable ( GloveWeightLookupTable lookupTable ) { \n + this . lookupTable = lookupTable ; \n + } \n \n public static class Builder { \n private VocabCache vocabCache ;", "msg_token": "add some missing constructors for multi label docs"} {"diff": " public class MaterialDialog extends DialogBase implements View . OnClickListener { \n protected ListType listType ; \n protected List < Integer > selectedIndicesList ; \n \n - private int lastDialogHeight ; \n - \n private static ContextThemeWrapper getTheme ( Builder builder ) { \n TypedArray a = builder . context . getTheme ( ) . obtainStyledAttributes ( new int [ ] { R . attr . md_dark_theme } ) ; \n boolean darkTheme = builder . theme == Theme . DARK ;", "msg_token": "Removed variable that was left in by mistake"} {"diff": " \n + \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class CubocDesktop { \n public static void main ( String [ ] argv ) { \n + SINGLE \n + Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ; \n new LwjglApplication ( new Cubocy ( ) , STRING0 , NUMBER0 , NUMBER1 , true ) ; \n } \n }", "msg_token": "changed Set the log level to debug for the Cubocy demo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class FQueryFilterParser implements FilterParser { \n if ( query == null ) { \n return null ; \n } \n - Filter filter = new QueryWrapperFilter ( query ) ; \n + Filter filter ; \n + if ( CustomQueryWrappingFilter . shouldUseCustomQueryWrappingFilter ( query ) ) { \n + filter = new CustomQueryWrappingFilter ( query ) ; \n + } else { \n + filter = new QueryWrapperFilter ( query ) ; \n + } \n if ( cache ) { \n filter = parseContext . cacheFilter ( filter , cacheKey ) ; \n }", "msg_token": "Also wrap p c queries in CustomQueryWrappingFilter in the fquery qparser because they otherwise p c queries may work incorrectly"} {"diff": " public class DelegatingController extends WriterController { \n public void switchToSlowPath ( ) { \n delegationController . switchToSlowPath ( ) ; \n } \n + \n + @ override \n + public int getBytecodeVersion ( ) { \n + return delegationController . getBytecodeVersion ( ) ; \n + } \n + \n + @ override \n + public void setLineNumber ( int n ) { \n + delegationController . setLineNumber ( n ) ; \n + } \n + \n + @ override \n + public int getLineNumber ( ) { \n + return delegationController . getLineNumber ( ) ; \n + } \n + \n + @ override \n + public void resetLineNumber ( ) { \n + delegationController . resetLineNumber ( ) ; \n + } \n }", "msg_token": "add missing overrides for delegation to ensure line number handling and bytecode version are right"} {"diff": " public class DeepLearningProstateTest extends TestUtil { \n p . validation = valid ; \n \n p . hidden = hidden ; \n - if ( i == NUMBER0 && resp == NUMBER1 ) p . classification = false ; \n + p . classification = ! ( i == NUMBER0 && resp == NUMBER1 ) ; \n p . best_model_key = best_model_key ; \n p . epochs = epochs ; \n p . seed = seed ;", "msg_token": "Always set classification flag since the auto setter is disabled"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EnvironmentPresenter extends BasePresenter \n EnvironmentServerOperations server , \n Binder binder , \n Commands commands , \n - GlobalDisplay globalDisplay ) \n + GlobalDisplay globalDisplay , \n + EventBus eventBus ) \n { \n super ( view ) ; \n binder . bind ( commands , this ) ;", "msg_token": "add event bus dependeny to environment"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n public final class PsiElementRef < T extends PsiElement > { \n + private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n private volatile PsiRefColleague < T > myColleague ; \n \n public PsiElementRef ( PsiRefColleague < T > colleague ) { \n public final class PsiElementRef < T extends PsiElement > { \n private final T myElement ; \n \n public Real ( @ notnull T element ) { \n + LOG . assertTrue ( element . isValid ( ) ) ; \n myElement = element ; \n }", "msg_token": "prohibit refs to invalid PSI"} {"diff": " public abstract class StaticTypeCheckingSupport { \n } \n GenericsType gt = connection ; \n if ( ! connection . isWildcard ( ) ) gt = buildWildcardType ( connection ) ; \n - if ( gt . isPlaceholder ( ) && gt . getUpperBounds ( ) . length == NUMBER0 && ! gt . getUpperBounds ( ) [ NUMBER1 ] . isGenericsPlaceHolder ( ) && gt . getUpperBounds ( ) [ NUMBER1 ] . getName ( ) . equals ( STRING0 ) ) { \n + if ( resolved . isPlaceholder ( ) && resolved . getUpperBounds ( ) != null && \n + resolved . getUpperBounds ( ) . length == NUMBER0 && ! resolved . getUpperBounds ( ) [ NUMBER1 ] . isGenericsPlaceHolder ( ) && \n + resolved . getUpperBounds ( ) [ NUMBER1 ] . getName ( ) . equals ( STRING0 ) ) \n + { \n return true ; \n } \n ClassNode compareNode ;", "msg_token": "add special codepath to skip checks on placeholders without further information"} {"diff": " public final class ActivityThread { \n new LoadedApk ( this , aInfo , compatInfo , baseLoader , \n securityViolation , includeCode && \n ( aInfo . flags & ApplicationInfo . FLAG_HAS_CODE ) != NUMBER0 , registerPackage ) ; \n + \n + if ( mSystemThread && STRING0 . equals ( aInfo . packageName ) ) { \n + packageInfo . installSystemApplicationInfo ( aInfo , \n + getSystemContext ( ) . mPackageInfo . getClassLoader ( ) ) ; \n + } \n + \n if ( includeCode ) { \n mPackages . put ( aInfo . packageName , \n new WeakReference < LoadedApk > ( packageInfo ) ) ; \n public final class ActivityThread { \n synchronized ( this ) { \n getSystemContext ( ) . installSystemApplicationInfo ( info , classLoader ) ; \n \n - SINGLE \n - SINGLE \n - mPackages . put ( STRING0 , new WeakReference < LoadedApk > ( getSystemContext ( ) . mPackageInfo ) ) ; \n - \n SINGLE \n mProfiler = new Profiler ( ) ; \n }", "msg_token": "Fix getPackageInfo android in the system server"} {"diff": " public class FS20Binding extends AbstractActiveBinding < FS20BindingProvider > \n Boolean configChanged = false ; \n String baudRateString = ( String ) config . get ( KEY_BAUD_RATE ) ; \n if ( StringUtils . isNotBlank ( baudRateString ) ) { \n - properties . put ( KEY_BAUD_RATE , Integer . parseInt ( baudRateString ) ) ; \n + properties . put ( KEY_BAUD_RATE , baudRateString ) ; \n configChanged = true ; \n }", "msg_token": "put a String in the map for KEY_BAUD_RATE not an Integer"} {"diff": " public class InMemoryDependencyMetadataCache implements Stoppable { \n \n public void stop ( ) { \n cachePerRepo . clear ( ) ; \n - LOG . info ( STRING0 , stats ) ; \n + LOG . debug ( STRING0 , stats ) ; \n } \n }", "msg_token": "Reduced log level of the message that summarises the in memory dependency metadata cache usage"} {"diff": " package NAMESPACE ; \n COMMENT \n public abstract class TAtomic < T extends Iced > extends Atomic { \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract T atomic ( T old ) ; \n \n @ override public Value atomic ( Value val ) { \n - T old = val == null ? null : ( T ) val . get ( ) ; \n + T old = val == null ? null : ( T ) ( val . get ( ) . clone ( ) ) ; \n T nnn = atomic ( old ) ; \n return nnn == null ? null : new Value ( _key , nnn ) ; \n }", "msg_token": "Fix possible TAtomic bug"} {"diff": " public class WebFilter implements Filter { \n throw new NullPointerException ( STRING0 ) ; \n } \n if ( value == null ) { \n - throw new IllegalArgumentException ( STRING1 ) ; \n + removeAttribute ( name ) ; \n } \n if ( deferredWrite ) { \n LocalCacheEntry entry = localCache . get ( name ) ;", "msg_token": "Fix HazelcastHttpSession s setAttribute with null value"} {"diff": " public class TemporalRule extends ServiceSupport { \n ArrayList < Route > list = new ArrayList < Route > ( ) ; \n RouteDefinition route = new RouteDefinition ( ) ; \n route . setCamelContext ( first . getBuilder ( ) . getProcessBuilder ( ) . getContext ( ) ) ; \n - RouteContext routeContext = new DefaultRouteContext ( route , null , list ) ; \n + RouteContext routeContext = new DefaultRouteContext ( first . getBuilder ( ) . getProcessBuilder ( ) . getContext ( ) , route , null , list ) ; \n \n overdueAction = overdueProcessors . createOutputsProcessor ( routeContext ) ; \n }", "msg_token": "Fixed the build error of camel bam"} {"diff": " public class PackageParser { \n providerExportedDefault = true ; \n } \n \n - if ( ( ( owner . applicationInfo . flags & ApplicationInfo . FLAG_SYSTEM ) != NUMBER0 ) \n - && ( owner . applicationInfo . targetSdkVersion == Build . VERSION_CODES . JELLY_BEAN ) ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - providerExportedDefault = false ; \n - } \n - \n p . info . exported = sa . getBoolean ( \n com . android . internal . R . styleable . AndroidManifestProvider_exported , \n providerExportedDefault ) ;", "msg_token": "remove temporary code"} {"diff": " public class WebView extends AbsoluteLayout \n \n private void drawLayers ( Canvas canvas ) { \n if ( mRootLayer != NUMBER0 ) { \n - float scrollY = Math . max ( mScrollY - getTitleHeight ( ) , NUMBER0 ) ; \n + int scrollY = computeVerticalScrollOffset ( ) ; \n + int viewHeight = getHeight ( ) - getVisibleTitleHeight ( ) ; \n + \n nativeDrawLayers ( mRootLayer , mScrollX , scrollY , \n + getWidth ( ) , viewHeight , \n mActualScale , canvas ) ; \n } \n } \n public class WebView extends AbsoluteLayout \n private native boolean nativeLayersHaveAnimations ( int layer ) ; \n private native void nativeUpdateLayers ( int layer , int updates ) ; \n private native void nativeDrawLayers ( int layer , \n - float scrollX , float scrollY , \n + int scrollX , int scrollY , \n + int width , int height , \n float scale , Canvas canvas ) ; \n private native void nativeDrawMatches ( Canvas canvas ) ; \n private native void nativeDrawSelectionPointer ( Canvas content ,", "msg_token": "Add proper support for fixed position elements"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoExecutor { \n commandLine . getEnvironment ( ) . put ( GoConstants . GO_PATH , StringUtil . notNullize ( myGoPath ) ) ; \n commandLine . withWorkDirectory ( myWorkDirectory ) ; \n commandLine . addParameters ( parameters ) ; \n + commandLine . withCharset ( CharsetToolkit . UTF8_CHARSET ) ; \n + EncodingEnvironmentUtil . setLocaleEnvironmentIfMac ( commandLine ) ; \n \n final Ref < Boolean > result = Ref . create ( false ) ; \n try {", "msg_token": "Define charset in executor"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ immutable \n - public class QueryId \n + public final class QueryId \n { \n @ jsoncreator \n public static QueryId valueOf ( String queryId )", "msg_token": "Make QueryId final"} {"diff": " public abstract class MoviesBaseFragment extends SherlockFragment implements \n } \n \n @ override \n + public void onPrepareOptionsMenu ( Menu menu ) { \n + SINGLE \n + boolean isDrawerOpen = ( ( BaseNavDrawerActivity ) getActivity ( ) ) . isDrawerOpen ( ) ; \n + menu . findItem ( R . id . menu_action_movies_sort ) . setVisible ( ! isDrawerOpen ) ; \n + } \n + \n + @ override \n public boolean onOptionsItemSelected ( MenuItem item ) { \n int itemId = item . getItemId ( ) ; \n if ( itemId == R . id . menu_action_movies_sort_title ) {", "msg_token": "Hide movies sort button if nav drawer is open"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class JibriStatusPacketExt \n COMMENT \n COMMENT \n COMMENT \n - private static final String NAMESPACE = JibriIq . NAMESPACE ; \n + public static final String NAMESPACE = JibriIq . NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - private static final String ELEMENT_NAME = STRING0 ; \n + public static final String ELEMENT_NAME = STRING0 ; \n \n private static final String STATUS_ATTRIBUTE = STRING1 ; \n \n public class JibriStatusPacketExt \n super ( NAMESPACE , ELEMENT_NAME ) ; \n } \n \n + static public void registerExtensionProvider ( ) \n + { \n + ProviderManager . getInstance ( ) . addExtensionProvider ( \n + ELEMENT_NAME , \n + NAMESPACE , \n + new DefaultPacketExtensionProvider < JibriStatusPacketExt > ( \n + JibriStatusPacketExt . class ) \n + ) ; \n + } \n + \n public Status getStatus ( ) \n { \n return Status . parse ( getAttributeAsString ( STATUS_ATTRIBUTE ) ) ;", "msg_token": "Makes some fields public and adds utility method to JibriStatusPacketExtension"} {"diff": " public class Transaction extends ChildMessage implements Serializable { \n COMMENT \n public void setLockTime ( long lockTime ) { \n unCache ( ) ; \n + SINGLE \n this . lockTime = lockTime ; \n } \n \n public class Transaction extends ChildMessage implements Serializable { \n return version ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public List < TransactionInput > getInputs ( ) { \n maybeParse ( ) ; \n - return Collections . unmodifiableList ( inputs ) ; \n + return inputs ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public List < TransactionOutput > getOutputs ( ) { \n maybeParse ( ) ; \n - return Collections . unmodifiableList ( outputs ) ; \n + return outputs ; \n } \n \n COMMENT", "msg_token": "Allow modification of the inputs outputs list"} {"diff": " public class ClusterQualityAssurance extends Suite { \n VirtualMachine ubuntu3 = vmf . vm ( Neo4jVM . UBUNTU_3 ) ; \n \n SINGLE \n - platforms . put ( Platforms . WINDOWS , new ClusterTestPermutation ( \n - WindowsEnterpriseDriver . class . getSimpleName ( ) , \n - new DefaultMachineClusterModel ( new DefaultMachineModelImpl ( \n - new WindowsEnterpriseDriver ( win1 ) ) , \n - new DefaultMachineModelImpl ( \n - new WindowsEnterpriseDriver ( win2 ) ) , \n - new DefaultMachineModelImpl ( \n - new WindowsEnterpriseDriver ( win3 ) ) ) ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n SINGLE \n platforms . put ( Platforms . UBUNTU_DEB , new ClusterTestPermutation (", "msg_token": "Temporarily stop Windows tests"} {"diff": " public class ContactListManagerAdapter extends \n return Presence . AVAILABLE ; \n } \n \n - COMMENT \n + \n public void clearOnLogout ( ) { \n clearValidatedContactsAndLists ( ) ; \n clearTemporaryContacts ( ) ; \n SINGLE \n - COMMENT \n + } \n \n COMMENT \n COMMENT", "msg_token": "this just clears objects from memory it should be done"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ListIntToIntMap extends AbstractIntToIntMap implements UpdatableInt \n return newInstance ( thisIsVisible , longSize , DEFAULT_BLOCK_SIZE ) ; \n } \n \n + @ notnull \n + public static UpdatableIntToIntMap newInstance ( final Flags visibleNodes ) { \n + return newInstance ( new BooleanFunction < Integer > ( ) { \n + @ override \n + public boolean fun ( Integer integer ) { \n + return visibleNodes . get ( integer ) ; \n + } \n + } , visibleNodes . size ( ) ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class ListIntToIntMap extends AbstractIntToIntMap implements UpdatableInt \n mySubSumOfBlocks [ blockIndex ] += sumDelta ; \n } \n \n + \n }", "msg_token": "log Added ListIntToIntMap newInstance Flags"} {"diff": " public class ManagementServerProperties implements SecurityPrerequisite { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int BASIC_AUTH_ORDER = SecurityProperties . BASIC_AUTH_ORDER - NUMBER0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int ACCESS_OVERRIDE_ORDER = ManagementServerProperties . BASIC_AUTH_ORDER \n - NUMBER1 ;", "msg_token": "Fix javadocs on ManagementServerProperties"} {"diff": " public class Client extends Connection implements EndPoint { \n } \n close ( ) ; \n } catch ( KryoNetException ex ) { \n + lastProtocolError = ex ; \n if ( ERROR ) { \n if ( isConnected ) \n error ( STRING0 , STRING1 + this , ex ) ; \n public class Connection { \n private long lastPingSendTime ; \n private int returnTripTime ; \n volatile boolean isConnected ; \n + volatile KryoNetException lastProtocolError ; \n \n protected Connection ( ) { \n } \n public class Connection { \n public boolean isConnected ( ) { \n return isConnected ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public KryoNetException getLastProtocolError ( ) { \n + return lastProtocolError ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added error tracking to Connection"} {"diff": " public interface Errors { \n UnresolvedReferenceDiagnosticFactory UNRESOLVED_REFERENCE = UnresolvedReferenceDiagnosticFactory . create ( ) ; \n \n SINGLE \n + SINGLE \n DiagnosticFactory3 < JetSimpleNameExpression , DeclarationDescriptor , Visibility , DeclarationDescriptor > INVISIBLE_REFERENCE = \n DiagnosticFactory3 . create ( ERROR ) ; \n DiagnosticFactory3 < PsiElement , DeclarationDescriptor , Visibility , DeclarationDescriptor > INVISIBLE_MEMBER = DiagnosticFactory3 . create ( ERROR , CALL_ELEMENT ) ;", "msg_token": "added comment for INVISIBLE_REFERENCE error"} {"diff": " public class HttpObjectAggregatorTest { \n \n assertEquals ( HttpHeaders . getContentLength ( fullMsg ) , fullMsg . content ( ) . readableBytes ( ) ) ; \n \n + fullMsg . release ( ) ; \n assertFalse ( embedder . finish ( ) ) ; \n }", "msg_token": "Fix a memory leak in HttpObjectAggregatorTest"} {"diff": " public class GetPatternsFromDataMultiClass implements Serializable { \n if ( en . getValue ( ) . size ( ) < constVars . minPosPhraseSupportForPat ) { \n remove . add ( en . getKey ( ) ) ; \n } \n + \n } \n + int numRemoved = remove . size ( ) ; \n + Redwood . log ( Redwood . DBG , STRING0 + numRemoved + STRING1 + constVars . minPosPhraseSupportForPat ) ; \n + \n + \n for ( Entry < SurfacePattern , ClassicCounter < String > > en : unLabeledPatternsandWords4Label \n . entrySet ( ) ) { \n if ( en . getValue ( ) . size ( ) < constVars . minUnlabPhraseSupportForPat ) { \n remove . add ( en . getKey ( ) ) ; \n } \n } \n + Redwood . log ( Redwood . DBG , STRING0 + ( remove . size ( ) - numRemoved ) + STRING2 + constVars . minUnlabPhraseSupportForPat ) ; \n return remove ; \n }", "msg_token": "changed minUnlabNegPhraseSupportForPat to minUnlabPhraseSupportForPat and removed discardPatternsWithNoNegSupport"} {"diff": " public class ParallaxContentScrollView extends FrameLayout { \n \n void updateOffset ( int y ) { \n if ( y <= mHeaderView . getHeight ( ) ) { \n + mHeaderView . setVisibility ( View . VISIBLE ) ; \n + \n int newTop = Math . round ( - y * PARALLAX_FRICTION ) ; \n mHeaderView . offsetTopAndBottom ( newTop - mHeaderView . getTop ( ) ) ; \n \n public class ParallaxContentScrollView extends FrameLayout { \n mContentViewScrollListener \n . onContentViewScrolled ( y / ( float ) mHeaderView . getHeight ( ) ) ; \n } \n + } else { \n + mHeaderView . setVisibility ( View . INVISIBLE ) ; \n } \n }", "msg_token": "Hide HeaderView if it isn t visible"} {"diff": " public class CometdAtmosphereInterceptor implements AtmosphereInterceptor { \n \n @ override \n public void configure ( AtmosphereConfig config ) { \n - if ( config . getServletContext ( ) . getServerInfo ( ) . contains ( STRING0 ) ) { \n - config . framework ( ) . setAsyncSupport ( new JettyAsyncSupport ( \n - config ) ) ; \n - } \n } \n \n @ override \n public class CometdServlet extends AtmosphereServlet { \n framework ( ) . interceptor ( new CometdAtmosphereInterceptor ( ) ) ; \n framework ( ) . setUseStreamForFlushingComments ( false ) ; \n \n + if ( sc . getServletContext ( ) . getServerInfo ( ) . contains ( STRING0 ) ) { \n + framework ( ) . setAsyncSupport ( new JettyAsyncSupport ( framework ( ) . getAtmosphereConfig ( ) ) ) ; \n + } \n + \n framework ( ) . addInitParameter ( STRING1 , WebSocketTransport . class . getName ( ) ) ; \n framework ( ) . addInitParameter ( ApplicationConfig . WEBSOCKET_CONTENT_TYPE , STRING2 ) ; \n super . init ( sc ) ;", "msg_token": "Undo CometD changes accidental commit"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix merge issue"} {"diff": " public class ValidatingVisitor implements Visitor < Void , Void > , Serializable { \n @ override \n public Void visit ( Path < ? > expr , Void context ) { \n if ( ! known . contains ( expr . getRoot ( ) ) ) { \n - throw new IllegalArgumentException ( STRING0 + expr . getRoot ( ) ) ; \n + throw new IllegalArgumentException ( STRING1 + expr . getRoot ( ) + STRING2 + \n + STRING3 ) ; \n } \n if ( expr . getMetadata ( ) . getParent ( ) != null ) { \n expr . getMetadata ( ) . getParent ( ) . accept ( this , null ) ;", "msg_token": "improved error message"} {"diff": " public class ObjLoader extends ModelLoader < ObjLoader . ObjLoaderParameters > { \n if ( hasNorms ) attributes . add ( new VertexAttribute ( Usage . Normal , NUMBER0 , ShaderProgram . NORMAL_ATTRIBUTE ) ) ; \n if ( hasUVs ) attributes . add ( new VertexAttribute ( Usage . TextureCoordinates , NUMBER1 , ShaderProgram . TEXCOORD_ATTRIBUTE + STRING0 ) ) ; \n \n - String nodeId = STRING1 + ( ++ id ) ; \n - String meshId = STRING2 + id ; \n - String partId = STRING3 + id ; \n + String stringId = STRING4 + ( ++ id ) ; \n + String nodeId = group . name != STRING5 ? group . name : STRING1 + stringId ; \n + String meshId = group . name != STRING5 ? group . name : STRING2 + stringId ; \n + String partId = group . name != STRING5 ? group . name : STRING3 + stringId ; \n ModelNode node = new ModelNode ( ) ; \n node . id = nodeId ; \n node . meshId = meshId ;", "msg_token": "Use group names instead of generated ids in ObjLoader"} {"diff": " public class ChatWritePanel extends JScrollPane implements \n String editorText = editorPane . getText ( ) ; \n \n editorPane . setText ( editorText . substring ( NUMBER0 , caretPosition ) \n - + System . getProperty ( STRING0 ) \n + + STRING1 \n + editorText . substring ( caretPosition ) ) ; \n \n editorPane . setCaretPosition ( caretPosition + NUMBER1 ) ;", "msg_token": "use n instead of system newline property"} {"diff": " public class GroovyScriptIT extends ESIntegTestCase { \n } \n \n @ test \n + @ awaitsfix ( bugUrl = STRING0 ) \n public void testGroovyExceptionSerialization ( ) throws Exception { \n List < IndexRequestBuilder > reqs = new ArrayList < > ( ) ; \n for ( int i = NUMBER0 ; i < randomIntBetween ( NUMBER1 , NUMBER2 ) ; i ++ ) {", "msg_token": "await fix on GroovyScriptIT testGroovyExceptionSerialization"} {"diff": " public final class ContactsContract { \n public static final int TYPE_HOME = NUMBER0 ; \n public static final int TYPE_WORK = NUMBER1 ; \n public static final int TYPE_OTHER = NUMBER2 ; \n + public static final int TYPE_MOBILE = NUMBER3 ; \n \n COMMENT \n COMMENT", "msg_token": "Add mobile Email type"} {"diff": " public class ParserTest { \n assertEquals ( STRING0 , a . text ( ) ) ; \n assertEquals ( STRING1 , a . attr ( STRING2 ) ) ; \n } \n + \n + @ test public void handlesSpanInTbody ( ) { \n + SINGLE \n + String h = STRING3 ; \n + Document doc = Jsoup . parse ( h ) ; \n + assertEquals ( doc . select ( STRING4 ) . first ( ) . children ( ) . size ( ) , NUMBER0 ) ; SINGLE \n + assertEquals ( doc . select ( STRING5 ) . size ( ) , NUMBER1 ) ; SINGLE \n + } \n }", "msg_token": "Added test to confirm that tbody in span does not create a new table"} {"diff": " public class ReindexSameIndexTests extends ESTestCase { \n \n private static ClusterState STATE ; \n private static final IndexNameExpressionResolver INDEX_NAME_EXPRESSION_RESOLVER = new IndexNameExpressionResolver ( Settings . EMPTY ) ; \n - private static final AutoCreateIndex AUTO_CREATE_INDEX = new AutoCreateIndex ( Settings . EMPTY , INDEX_NAME_EXPRESSION_RESOLVER ) ; \n + private static AutoCreateIndex AUTO_CREATE_INDEX = new AutoCreateIndex ( Settings . EMPTY , INDEX_NAME_EXPRESSION_RESOLVER ) ; \n \n @ beforeclass \n public static void beforeClass ( ) {", "msg_token": "Revert Mark field in ReindexSameIndexTests as final"} {"diff": " public class SmartTypePointerManagerImpl extends SmartTypePointerManager { \n final PsiClassType . ClassResolveResult resolveResult = classType . resolveGenerics ( ) ; \n final PsiClass aClass = resolveResult . getElement ( ) ; \n if ( aClass == null ) { \n - LOG . assertTrue ( classType instanceof PsiClassReferenceType , classType ) ; \n - return new ClassReferenceTypePointer ( ( PsiClassReferenceType ) classType ) ; \n + if ( classType instanceof PsiClassReferenceType ) { \n + return new ClassReferenceTypePointer ( ( PsiClassReferenceType ) classType ) ; \n + } \n + return new SimpleTypePointer ( classType ) ; \n } \n if ( classType instanceof PsiClassReferenceType ) { \n classType = ( ( PsiClassReferenceType ) classType ) . createImmediateCopy ( ) ;", "msg_token": "don t expect PsiClassType with no class to be PsiClassReferenceType"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n public boolean parkAndRide = false ; \n public boolean kissAndRide = false ; \n \n - public boolean bikeParkAndRide = false ; \n - \n COMMENT \n \n COMMENT", "msg_token": "Remove duplicated variable after merge"} {"diff": " public class PSurfaceFX implements PSurface { \n public PSurfaceFX ( PGraphicsFX2D graphics ) { \n fx = graphics ; \n canvas = new ResizableCanvas ( ) ; \n - fx . context = canvas . getGraphicsContext2D ( ) ; \n \n SINGLE \n KeyFrame keyFrame = new KeyFrame ( Duration . millis ( NUMBER0 ) , \n public class PSurfaceFX implements PSurface { \n SINGLE \n \n Canvas canvas = surface . canvas ; \n + surface . fx . context = canvas . getGraphicsContext2D ( ) ; \n StackPane stackPane = new StackPane ( ) ; \n stackPane . getChildren ( ) . add ( canvas ) ; \n canvas . widthProperty ( ) . bind ( stackPane . widthProperty ( ) ) ;", "msg_token": "FX Initialize JavaFX properly"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n WindowState win = null ; \n synchronized ( mWindowMap ) { \n win = windowForClientLocked ( null , window , false ) ; \n + SINGLE \n + SINGLE \n if ( ! startPositioningLocked ( win , false COMMENT , startX , startY ) ) { \n return false ; \n } \n public class WindowManagerService extends IWindowManager . Stub \n WindowState win = null ; \n synchronized ( mWindowMap ) { \n win = displayContent . findWindowForControlPoint ( startX , startY ) ; \n - if ( ! startPositioningLocked ( win , true COMMENT , startX , startY ) ) { \n + if ( win == null || ! startPositioningLocked ( win , true COMMENT , startX , startY ) ) { \n return ; \n } \n }", "msg_token": "Fix bogus warning in startResizingTask"} {"diff": " public class ExtractMethodHelper { \n boolean replaceAll = false ; \n final Map < SimpleMatch , RangeHighlighter > highlighterMap = new HashMap < SimpleMatch , RangeHighlighter > ( ) ; \n for ( SimpleMatch match : duplicates ) { \n + if ( ! match . getStartElement ( ) . isValid ( ) || ! match . getEndElement ( ) . isValid ( ) ) continue ; \n final Pair < SimpleMatch , PsiElement > replacement = Pair . create ( match , callElement ) ; \n if ( ! replaceAll ) { \n highlightInEditor ( project , match , editor , highlighterMap ) ;", "msg_token": "do not replace invalid duplicates"} {"diff": " public class MTLLoader implements AssetLoader { \n \n if ( shadeless ) { \n material = new Material ( assetManager , STRING0 ) ; \n - material . setColor ( STRING1 , diffuse ) ; \n + material . setColor ( STRING1 , diffuse . clone ( ) ) ; \n material . setTexture ( STRING2 , diffuseMap ) ; \n SINGLE \n } else { \n material = new Material ( assetManager , STRING3 ) ; \n material . setBoolean ( STRING4 , true ) ; \n - material . setColor ( STRING5 , ambient ) ; \n - material . setColor ( STRING6 , diffuse ) ; \n - material . setColor ( STRING7 , specular ) ; \n + material . setColor ( STRING5 , ambient . clone ( ) ) ; \n + material . setColor ( STRING6 , diffuse . clone ( ) ) ; \n + material . setColor ( STRING7 , specular . clone ( ) ) ; \n material . setFloat ( STRING8 , shininess ) ; SINGLE \n \n if ( diffuseMap != null ) material . setTexture ( STRING9 , diffuseMap ) ;", "msg_token": "Fix colors reference issue in MTL loader"} {"diff": " public class TextureAtlas implements Disposable { \n originalWidth = region . originalWidth ; \n originalHeight = region . originalHeight ; \n rotate = region . rotate ; \n - \n - setRegionWidth ( packedWidth ) ; \n - setRegionHeight ( packedHeight ) ; \n } \n \n COMMENT", "msg_token": "fixed TextureAtlas copy constructor the region should be set to the passed in region not the packed size"} {"diff": " public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService \n \n private static final String NO_JDK = ProjectBundle . message ( STRING0 ) ; \n \n - private final Project myProject ; \n - \n - public OrderEntryAppearanceServiceImpl ( @ notnull final Project project ) { \n - myProject = project ; \n - } \n - \n @ notnull \n @ override \n public CellAppearanceEx forOrderEntry ( Project project , @ notnull final OrderEntry orderEntry , final boolean selected ) { \n public class OrderEntryAppearanceServiceImpl extends OrderEntryAppearanceService \n @ notnull \n @ override \n public CellAppearanceEx forLibrary ( Project project , @ notnull final Library library , final boolean hasInvalidRoots ) { \n - final StructureConfigurableContext context = ProjectStructureConfigurable . getInstance ( myProject ) . getContext ( ) ; \n + final StructureConfigurableContext context = ProjectStructureConfigurable . getInstance ( project ) . getContext ( ) ; \n final Icon icon = LibraryPresentationManager . getInstance ( ) . getCustomIcon ( library , context ) ; \n \n final String name = library . getName ( ) ;", "msg_token": "removed Project field from application service"} {"diff": " public abstract class ChatPanel \n this . writeMessagePanel = new ChatWritePanel ( this ) ; \n \n this . topSplitPane . setResizeWeight ( FLOAT0 ) ; \n + \n + SINGLE \n + this . topSplitPane . setBorder ( null ) ; \n + this . messagePane . setBorder ( null ) ; \n + \n this . messagePane . setResizeWeight ( FLOAT0 ) ; \n this . chatContactListPanel . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ; \n this . chatContactListPanel . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ;", "msg_token": "Remove multiple split pane borders from chat window"} {"diff": " public class CompilerOptions implements Serializable , Cloneable { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void resetWarningsGuard ( ) { \n + warningsGuard = new ComposeWarningsGuard ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a resetWarningsGuard API"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CreateMethodFromUsageFix implements IntentionAction { \n TypeConstraint [ ] constraints = GroovyExpectedTypesProvider . calculateTypeConstraints ( ( GrExpression ) myRefExpression . getParent ( ) ) ; \n \n final PsiGenerationInfo < PsiMethod > info = OverrideImplementUtil . createGenerationInfo ( method ) ; \n - info . insert ( myTargetClass , findInsertionAnchor ( info ) , true ) ; \n + info . insert ( myTargetClass , findInsertionAnchor ( info ) , false ) ; \n method = info . getPsiMember ( ) ; \n \n final PsiElement context = PsiTreeUtil . getParentOfType ( myRefExpression , PsiClass . class , PsiMethod . class ) ;", "msg_token": "create method from usage after current position"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n public class HealthCheckServiceImplTest \n { \n \n - @ test ( expectedExceptions = NullPointerException . class ) \n + @ test ( expected = NullPointerException . class ) \n public void testConstructorNullInjectorInvalid ( ) \n { \n new HealthCheckServiceImpl ( null ) ;", "msg_token": "Fixed compiler error"} {"diff": " public final class Utils \n } \n catch ( final PatternSyntaxException e ) { \n throw new ConversionException ( \n - STRING0 + pattern , e ) ; \n + STRING1 + pattern , e ) ; \n } \n } \n \n package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n public class UtilsTest \n { \n COMMENT \n public class UtilsTest \n assertUtilsClassHasPrivateConstructor ( Utils . class ) ; \n } \n \n + @ test \n + public void testInvalidPattern ( ) \n + { \n + boolean result = Utils . isPatternValid ( STRING2 ) ; \n + assertFalse ( result ) ; \n + } \n }", "msg_token": "Added test method for Utils isPatternValid method"} {"diff": " public class Ls extends NeoApp \n @ override \n public String getDescription ( ) \n { \n - return STRING0 ; \n + return STRING1 + \n + STRING2 ; \n } \n \n @ override", "msg_token": "Added manual doc for ls node id"} {"diff": " public final class BlockMaster extends MasterBase implements ContainerIdGenerato \n private final Set < Long > mLostBlocks ; \n \n SINGLE \n - private final IndexedSet . FieldIndex < MasterWorkerInfo > mIdIndex = new IndexedSet . FieldIndex < MasterWorkerInfo > ( ) { \n + private final IndexedSet . FieldIndex < MasterWorkerInfo > mIdIndex = \n + new IndexedSet . FieldIndex < MasterWorkerInfo > ( ) { \n @ override \n public Object getFieldValue ( MasterWorkerInfo o ) { \n return o . getId ( ) ;", "msg_token": "Fixed style issue"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add Apache license header in DatanodeStats java"} {"diff": " public class CordovaWebViewTestActivity extends Activity implements CordovaInter \n super . onDestroy ( ) ; \n if ( cordovaWebView != null ) { \n SINGLE \n - cordovaWebView . loadUrl ( STRING0 ) ; \n cordovaWebView . handleDestroy ( ) ; \n } \n }", "msg_token": "Don t call loadUrlIntoView on the actvity"} {"diff": " public class MethodTypeInferencer implements Computable < PsiType > { \n } \n } \n \n - boolean isVoid = returns . size ( ) == NUMBER0 ; \n + boolean isObject = returns . size ( ) == NUMBER0 ; \n \n GrStatement [ ] statements = myBlock . getStatements ( ) ; \n if ( statements . length > NUMBER0 ) { \n GrStatement last = statements [ statements . length - NUMBER1 ] ; \n if ( last instanceof GrExpression ) { \n result = upperBound ( ( ( GrExpression ) last ) . getType ( ) , result , manager ) ; \n - isVoid = false ; \n + isObject = false ; \n } \n } \n \n - if ( isVoid ) return PsiType . VOID ; \n + if ( isObject ) return myBlock . getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING0 , myBlock . getResolveScope ( ) ) ; \n \n return result ; \n }", "msg_token": "inference should produce Object for empty methods"} {"diff": " \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ;", "msg_token": "Fix display of func package description"} {"diff": " public class NeoStore extends AbstractStore \n return getStoreOk ( ) && relTypeStore . getStoreOk ( ) && \n propStore . getStoreOk ( ) && relStore . getStoreOk ( ) && nodeStore . getStoreOk ( ) ; \n } \n - \n - public static class WithoutChildStores extends NeoStore \n - { \n - public WithoutChildStores ( Map < ? , ? > config ) \n - { \n - super ( config ) ; \n - } \n - \n - @ override \n - protected void initStorage ( ) \n - { SINGLE \n - } \n - \n - @ override \n - protected void closeStorage ( ) \n - { SINGLE \n - } \n - } \n }", "msg_token": "Removed unused inner class"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "library Add more information about the semantics of part indexes"} {"diff": " public class ConnectionManager { \n } \n \n private void handshakeFailure ( ContextImpl context , Channel ch , Throwable cause , Waiter waiter ) { \n - System . out . println ( STRING0 ) ; \n cause . printStackTrace ( ) ; \n SSLHandshakeException sslException = new SSLHandshakeException ( STRING1 ) ; \n if ( cause != null ) {", "msg_token": "Remove wrong system out println"} {"diff": " public class CachingConnectionFactory extends SingleConnectionFactory { \n if ( active ) { \n synchronized ( this . sessionList ) { \n if ( this . sessionList . size ( ) < getSessionCacheSize ( ) ) { \n - logicalClose ( ( Session ) proxy ) ; \n - SINGLE \n - return null ; \n + try { \n + logicalClose ( ( Session ) proxy ) ; \n + SINGLE \n + return null ; \n + } \n + catch ( JMSException ex ) { \n + logger . trace ( STRING0 , ex ) ; \n + SINGLE \n + } \n } \n } \n }", "msg_token": "CachingConnectionFactory proceeds to physicalClose in case of logicalClose exceptions"} {"diff": " public class MailThreadInfo \n COMMENT \n COMMENT \n COMMENT \n - private List < String > senders = new LinkedList < String > ( ) ; \n + private List < Sender > senders = new LinkedList < Sender > ( ) ; \n \n COMMENT \n COMMENT \n public class MailThreadInfo \n { \n return participation ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Iterator < Sender > senders ( ) \n + { \n + return senders . iterator ( ) ; \n + } \n }", "msg_token": "Adds mail notifications for Google mail servers"} {"diff": " public class JsonXContent implements XContent { \n \n @ override \n public XContentParser createParser ( Reader reader ) throws IOException { \n - return new JsonXContentParser ( jsonFactory . createJsonParser ( reader ) ) ; \n + return new JsonXContentParser ( jsonFactory . createParser ( reader ) ) ; \n } \n } \n public class SmileXContent implements XContent { \n \n @ override \n public XContentParser createParser ( Reader reader ) throws IOException { \n - return new JsonXContentParser ( smileFactory . createJsonParser ( reader ) ) ; \n + return new JsonXContentParser ( smileFactory . createParser ( reader ) ) ; \n } \n }", "msg_token": "remove deprecated method usage with jackson"} {"diff": " public class CastorUnmarshallerTests extends AbstractUnmarshallerTests { \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void testClearCollectionsFalse ( ) throws Exception { \n \n Flights flights = new Flights ( ) ;", "msg_token": "Ignoring test failing on build server though it works locally"} {"diff": " public class ElasticSearchConnection implements Connection { \n \n @ override \n public void close ( ) throws SQLException { \n - client . close ( ) ; \n } \n \n @ override", "msg_token": "Remove ES Client close"} {"diff": " public class DynamicResponseHandlerFactory extends Dynamics implements ResponseH \n private static Maps . EntryTransformer < String , TextContainer , RequestExtractor < ? > > toVariable ( ) { \n return new Maps . EntryTransformer < String , TextContainer , RequestExtractor < ? > > ( ) { \n @ override \n - @ suppresswarnings ( STRING0 ) \n public RequestExtractor < ? > transformEntry ( final String key , final TextContainer value ) { \n if ( value . isRawText ( ) ) { \n return var ( value . getText ( ) ) ;", "msg_token": "removed unused unchecked warning in dynamic response handler factory"} {"diff": " public abstract class TitanIndexTest extends TitanGraphBaseTest { \n } \n \n @ test \n - public void testIndexQueryWithScore ( ) { \n + public void testIndexQueryWithScore ( ) throws InterruptedException { \n PropertyKey textKey = mgmt . makePropertyKey ( STRING0 ) . dataType ( String . class ) . make ( ) ; \n mgmt . buildIndex ( STRING1 , Vertex . class ) . addKey ( textKey ) . buildMixedIndex ( INDEX ) ; \n mgmt . commit ( ) ; \n public abstract class TitanIndexTest extends TitanGraphBaseTest { \n \n tx . commit ( ) ; \n \n + Thread . sleep ( NUMBER0 ) ; \n + \n Set < Double > scores = new HashSet < Double > ( ) ; \n for ( TitanIndexQuery . Result < TitanVertex > r : graph . indexQuery ( STRING1 , STRING2 ) . vertices ( ) ) { \n scores . add ( r . getScore ( ) ) ;", "msg_token": "Add sleep to testIndexQueryWithScore"} {"diff": " public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec \n myListeners . addListener ( new ChangeListAdapter ( ) { \n @ override \n public void defaultListChanged ( final ChangeList oldDefaultList , ChangeList newDefaultList ) { \n - if ( oldDefaultList instanceof LocalChangeList && \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) && \n + oldDefaultList instanceof LocalChangeList && \n oldDefaultList . getChanges ( ) . isEmpty ( ) ) { \n \n SwingUtilities . invokeLater ( new Runnable ( ) {", "msg_token": "removing empty changelists"} {"diff": " public class SessionImpl implements Session { \n } \n \n logger . finest ( STRING0 + decryptedMsgContent + STRING1 ) ; \n - extraKey = authContext . getExtraSymmetricKey ( ) ; \n + SINGLE \n \n SINGLE \n SessionKeys mostRecent = this . getMostRecentSessionKeys ( ) ;", "msg_token": "Disable extraSymmKey for now"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removes unused import"} {"diff": " public class PrivateDataManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public static Object getPrivateDataProvider ( String elementName , String namespace ) { \n + public static PrivateData getPrivateDataProvider ( String elementName , String namespace ) { \n String key = getProviderKey ( elementName , namespace ) ; \n - return privateDataProviders . get ( key ) ; \n + return ( PrivateData ) privateDataProviders . get ( key ) ; \n } \n \n COMMENT \n public class PrivateDataManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static void addPrivateDataProvider ( String elementName , String namespace , \n - IQProvider provider ) \n + PrivateDataProvider provider ) \n { \n String key = getProviderKey ( elementName , namespace ) ; \n privateDataProviders . put ( key , provider ) ;", "msg_token": "Fixed provider methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unsued imports"} {"diff": " public class ReaderAnim { \n return ; \n } \n \n - ObjectAnimator animX = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_X , FLOAT0 , FLOAT1 ) ; \n + ObjectAnimator animX = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_X , FLOAT0 , FLOAT2 ) ; \n animX . setRepeatMode ( ValueAnimator . REVERSE ) ; \n animX . setRepeatCount ( NUMBER0 ) ; \n \n - ObjectAnimator animY = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_Y , FLOAT0 , FLOAT1 ) ; \n + ObjectAnimator animY = ObjectAnimator . ofFloat ( txtFollow , View . SCALE_Y , FLOAT0 , FLOAT2 ) ; \n animY . setRepeatMode ( ValueAnimator . REVERSE ) ; \n animY . setRepeatCount ( NUMBER0 ) ;", "msg_token": "Tweaked follow button animation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class DaoAuthenticationProvider extends AbstractUserDetailsAuthenticationProvider {", "msg_token": "Tidied up Id tag"} {"diff": " public class FileRouteTest extends ContextTestSupport { \n public void testFileRoute ( ) throws Exception { \n MockEndpoint result = resolveMandatoryEndpoint ( STRING0 , MockEndpoint . class ) ; \n result . expectedBodiesReceived ( expectedBody ) ; \n + result . setDefaulResultWaitMillis ( NUMBER0 ) ; \n \n template . sendBodyAndHeader ( uri , expectedBody , STRING1 , NUMBER1 ) ;", "msg_token": "increased the timeout to make sure the test passes even on slow boxes"} {"diff": " public class MainImpl { \n COMMENT \n @ suppresswarnings ( STRING0 ) \n protected static void start ( final String [ ] args ) { \n - System . setProperty ( STRING1 , STRING2 ) ; \n + if ( System . getProperty ( STRING1 ) == null ) { \n + System . setProperty ( STRING1 , STRING2 ) ; \n + } \n \n StartupUtil . isHeadless = Main . isHeadless ( args ) ; \n if ( ! StartupUtil . isHeadless ) {", "msg_token": "don t set platform prefix if already specified"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PsiTypeElementImpl extends CompositePsiElement implements PsiTypeEl \n \n @ notnull \n public PsiAnnotation addAnnotation ( @ notnull @ nonnls String qualifiedName ) { \n - throw new NotImplementedException ( ) ; SINGLE \n + throw new UnsupportedOperationException ( ) ; \n } \n }", "msg_token": "removed jmock dep"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Groovyc extends MatchingTask { \n \n - private CompilerConfiguration configuration = new CompilerConfiguration ( ) ; \n private Path src ; \n private File destDir ; \n private Path compileClasspath ; \n private Path compileSourcepath ; \n private String encoding ; \n - \n + \n + protected CompilerConfiguration configuration = new CompilerConfiguration ( ) ; \n protected boolean failOnError = true ; \n protected boolean listFiles = false ; \n protected File [ ] compileList = new File [ NUMBER0 ] ;", "msg_token": "changed configuration field to protected"} {"diff": " public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public void onResolvePadding ( int layoutDirection ) { \n }", "msg_token": "Fix Javadoc for View"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "added missing imports"} {"diff": " public interface EclipseClasspathEntry { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n DomainObjectSet < ? extends AccessRule > getAccessRules ( ) throws UnsupportedMethodException ; \n }", "msg_token": "Add since to javadoc"} {"diff": " public final class NettyDataServer implements DataServer { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public int getPort ( ) { \n SINGLE \n SINGLE \n return ( ( InetSocketAddress ) mChannelFuture . channel ( ) . localAddress ( ) ) . getPort ( ) ; \n } \n \n + @ override \n public boolean isClosed ( ) { \n return mBootstrap . group ( ) . isShutdown ( ) ; \n } \n public class NIODataServer implements Runnable , DataServer { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public int getPort ( ) { \n return mServerChannel . socket ( ) . getLocalPort ( ) ; \n } \n public class NIODataServer implements Runnable , DataServer { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public boolean isClosed ( ) { \n return mShutdownComplete ; \n }", "msg_token": "Add override annotation where appropriate for classes implementing the data server interface"} {"diff": " public class AndroidBinary \n SINGLE \n Path relativeLibPath = libSubdirectory . relativize ( libPath ) ; \n long filesize = filesystem . getFileSize ( libPath ) ; \n - metadataLines . add ( relativeLibPath . toString ( ) + STRING0 + filesize ) ; \n + String output = relativeLibPath . toString ( ) ; \n + SINGLE \n + SINGLE \n + String desiredOutput = output . substring ( NUMBER0 , output . length ( ) - NUMBER1 ) ; \n + metadataLines . add ( desiredOutput + STRING0 + filesize ) ; \n } \n ImmutableList < String > metadata = metadataLines . build ( ) ; \n if ( ! metadata . isEmpty ( ) ) {", "msg_token": "Removes from output filenames in asset library metadata"} {"diff": " public final class WindowManagerImpl extends WindowManagerEx implements Applicat \n finally { \n if ( fullScreen ) { \n frame . setBounds ( device . getDefaultConfiguration ( ) . getBounds ( ) ) ; \n - if ( ! Registry . is ( STRING0 , false ) ) { \n + if ( ! Registry . is ( STRING0 , false ) && ! SystemInfo . isMac ) { \n frame . getStatusBar ( ) . addWidget ( new ClockPanel ( ) , STRING1 + MemoryUsagePanel . WIDGET_ID ) ; \n } \n }", "msg_token": "Don t show clock in Mac OS"} {"diff": " public class WriteBehindMapStoreWithEvictionsTest extends HazelcastTestSupport { \n } \n \n @ test \n - public void testWriteBehindFlush_persistAllRecords_afterHazelcastShutdownall ( ) throws Exception { \n + public void testWriteBehindFlushPersistsAllRecords_afterShutdownAll ( ) throws Exception { \n int nodeCount = NUMBER0 ; \n final MapStoreWithCounter mapStore = new MapStoreWithCounter < Integer , String > ( ) ; \n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( nodeCount ) ; \n public class WriteBehindMapStoreWithEvictionsTest extends HazelcastTestSupport { \n . build ( ) ; \n final int numberOfItems = NUMBER1 ; \n \n + SINGLE \n populateMap ( map , numberOfItems , NUMBER2 ) ; \n \n factory . shutdownAll ( ) ; \n \n assertEquals ( numberOfItems , mapStore . countStore . get ( ) ) ; \n - \n } \n \n private void assertFinalValueEquals ( final int expected , final int actual ) {", "msg_token": "fix some typo"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "SMALLFIX Remove unused import"} {"diff": " public class MetricsBean { \n this . pushFeedsQueued = pushFeedsQueued ; \n } \n \n + public int getEntryCacheHit ( ) { \n + return entryCacheHit ; \n + } \n + \n + public void setEntryCacheHit ( int entryCacheHit ) { \n + this . entryCacheHit = entryCacheHit ; \n + } \n + \n + public int getEntryCacheMiss ( ) { \n + return entryCacheMiss ; \n + } \n + \n + public void setEntryCacheMiss ( int entryCacheMiss ) { \n + this . entryCacheMiss = entryCacheMiss ; \n + } \n + \n } \n }", "msg_token": "added getters and setters for json serialization"} {"diff": " public class AssetBundleWriter { \n \n SINGLE \n LzmaEncoderProps props = new LzmaEncoderProps ( ) ; \n - props . setDictionarySize ( NUMBER0 < < NUMBER1 ) ; \n - props . setNumFastBytes ( NUMBER2 ) ; \n + props . setDictionarySize ( NUMBER0 < < NUMBER3 ) ; SINGLE \n + props . setNumFastBytes ( NUMBER2 ) ; SINGLE \n props . setUncompressedSize ( outData . size ( ) ) ; \n props . setEndMarkerMode ( true ) ;", "msg_token": "Fixed dictionary size"} {"diff": " public abstract class XQueryBuilder < E extends Exchange > implements Expression < E > \n return this ; \n } \n \n + public XQueryBuilder < E > parameter ( String name , Object value ) { \n + parameters . put ( name , value ) ; \n + return this ; \n + } \n + \n SINGLE \n SINGLE", "msg_token": "added helper method"} {"diff": " public final class MoreExecutors { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + @ gwtincompatible ( STRING0 ) static < T > T invokeAnyImpl ( ListeningExecutorService executorService , \n Collection < ? extends Callable < T > > tasks , boolean timed , long nanos ) \n throws InterruptedException , ExecutionException , TimeoutException { \n checkNotNull ( executorService ) ;", "msg_token": "Don t strip the GwtIncompatible from Guava"} {"diff": " public class TestRunner extends BaseTestRunner { \n } \n } \n \n - public static void main ( String args [ ] ) { \n + public static void main ( String [ ] args ) { \n TestRunner aTestRunner = new TestRunner ( ) ; \n try { \n TestResult r = aTestRunner . start ( args ) ; \n public class TestRunner extends BaseTestRunner { \n COMMENT \n COMMENT \n COMMENT \n - public TestResult start ( String args [ ] ) throws Exception { \n + public TestResult start ( String [ ] args ) throws Exception { \n String testCase = STRING0 ; \n String method = STRING0 ; \n boolean wait = false ;", "msg_token": "Move the array designator to the type"} {"diff": " public class IndexDatabase { \n String absolutePath = file . getAbsolutePath ( ) ; \n \n if ( ignoredNames . ignore ( file ) ) { \n - LOGGER . log ( Level . FINE , STRING0 , absolutePath ) ; \n + LOGGER . log ( Level . FINER , STRING0 , absolutePath ) ; \n return false ; \n }", "msg_token": "when logging ignored files use FINER log level"} {"diff": " public class AprEndpoint extends AbstractEndpoint { \n SINGLE \n SINGLE \n SINGLE \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n destroySocket ( socket , running ) ; \n }", "msg_token": "Add explanatory comment"} {"diff": " public class VcsConfigurationsDialog extends DialogWrapper { \n currentVcs = selectedIndex >= NUMBER0 ? ( VcsDescriptor ) ( myVcses . getModel ( ) ) . getElementAt ( selectedIndex ) : null ; \n String currentName = currentVcs == null ? NONE : currentVcs . getName ( ) ; \n if ( currentVcs != null ) { \n - myVcsNameToConfigurableMap . get ( currentName ) . createComponent ( ) ; \n + final UnnamedConfigurable unnamedConfigurable = myVcsNameToConfigurableMap . get ( currentName ) ; \n + unnamedConfigurable . createComponent ( ) ; \n + unnamedConfigurable . reset ( ) ; \n } \n final CardLayout cardLayout = ( CardLayout ) myVcsConfigurationPanel . getLayout ( ) ; \n cardLayout . show ( myVcsConfigurationPanel , currentName ) ;", "msg_token": "edit VCS settings from VCS mappings to reset panel"} {"diff": " final class DisplayPowerController implements AutomaticBrightnessController . Call \n \n SINGLE \n SINGLE \n - if ( state == Display . STATE_ON || state == Display . STATE_DOZE ) { \n - animateScreenBrightness ( brightness , \n - slowChange ? BRIGHTNESS_RAMP_RATE_SLOW : BRIGHTNESS_RAMP_RATE_FAST ) ; \n - } else { \n - animateScreenBrightness ( brightness , NUMBER0 ) ; \n + if ( ! mPendingScreenOff ) { \n + if ( state == Display . STATE_ON || state == Display . STATE_DOZE ) { \n + animateScreenBrightness ( brightness , \n + slowChange ? BRIGHTNESS_RAMP_RATE_SLOW : BRIGHTNESS_RAMP_RATE_FAST ) ; \n + } else { \n + animateScreenBrightness ( brightness , NUMBER0 ) ; \n + } \n } \n \n SINGLE", "msg_token": "Don t animate screen brightness if there is a pending off transition"} {"diff": " public class HBaseEndpoint extends DefaultEndpoint { \n private HBaseRow rowModel ; \n @ uriparam ( label = STRING0 ) \n private int maxMessagesPerPoll ; \n + @ uriparam ( description = STRING1 ) \n + private UserGroupInformation ugi ; \n \n COMMENT \n COMMENT \n COMMENT \n private byte [ ] tableNameBytes ; \n \n - private UserGroupInformation ugi = null ; \n - \n public HBaseEndpoint ( String uri , HBaseComponent component , HTablePool tablePool , String tableName ) { \n super ( uri , component ) ; \n this . tableName = tableName ;", "msg_token": "annotate ugi as a parameter to be passed by beanId"} {"diff": " public class SelectBox < T > extends Widget implements Disableable { \n validate ( ) ; \n float width = Math . max ( getPrefWidth ( ) , selectBox . getWidth ( ) ) ; \n if ( getPrefHeight ( ) > height ) width += getScrollBarWidth ( ) ; \n + if ( scrollPaneBackground != null ) { \n + SINGLE \n + width += Math . max ( NUMBER0 , scrollPaneBackground . getRightWidth ( ) - scrollPaneBackground . getLeftWidth ( ) ) ; \n + } \n setWidth ( width ) ; \n \n validate ( ) ;", "msg_token": "Allow shadow on right edge of select box drop down list"} {"diff": " public class EJB3Extension implements Extension { \n SINGLE \n subsystemRegistration . registerSubModel ( EJB3ThreadPoolResourceDefinition . INSTANCE ) ; \n \n - SINGLE \n - subsystemRegistration . registerSubModel ( EJB3ThreadPoolResourceDefinition . INSTANCE ) ; \n - \n ResourceDefinition deploymentsDef = new SimpleResourceDefinition ( PathElement . pathElement ( ModelDescriptionConstants . SUBSYSTEM , SUBSYSTEM_NAME ) , \n getResourceDescriptionResolver ( STRING0 ) ) ; \n final ManagementResourceRegistration deploymentsRegistration = subsystem . registerDeploymentModel ( deploymentsDef ) ;", "msg_token": "Fix merge conflict resolution mistake"} {"diff": " public class InfoEndpointCompatibilityTests { \n } \n \n private InfoEndpoint getEndpointBean ( ) { \n - return new InfoEndpoint ( Collections . singletonMap ( STRING0 , STRING1 ) , \n + return new InfoEndpoint ( Collections . < String , Object > singletonMap ( STRING0 , STRING1 ) , \n infoContributor ( ) ) ; \n }", "msg_token": "Fix some more tests"} {"diff": " public abstract class MonthView extends View { \n @ override \n protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { \n setMeasuredDimension ( MeasureSpec . getSize ( widthMeasureSpec ) , mRowHeight * mNumRows \n - + getMonthHeaderSize ( ) ) ; \n + + getMonthHeaderSize ( ) + NUMBER0 ) ; \n } \n \n @ override", "msg_token": "Fixed truncation of day selection circle"} {"diff": " public class TargetBound implements SearchTerminationStrategy , SkipTraverseResul \n } \n } \n COMMENT \n + \n for ( State bounder : bounders ) { \n \n - if ( optimisticDistance > bounder . getWalkDistance ( ) && current . getTime ( ) + minTime > bounder . getTime ( ) ) \n + if ( minWalk > bounder . getWalkDistance ( ) && current . getTime ( ) + minTime > bounder . getTime ( ) ) \n return true ; SINGLE \n \n SINGLE", "msg_token": "fix bug in bounding"} {"diff": " public class ShiroAuthManager extends BasicAuthManager implements RoleManager \n { \n assertAuthEnabled ( ) ; \n \n + passwordPolicy . validatePassword ( initialPassword ) ; \n + \n return realm . newUser ( username , initialPassword , requirePasswordChange ) ; \n } \n \n public class AuthProceduresTest \n } \n \n @ test \n + public void shouldNotCreateUserWithEmptyPassword ( ) throws Exception \n + { \n + testCallFail ( db , adminSubject , STRING0 , QueryExecutionException . class , \n + STRING1 ) ; \n + } \n + \n + @ test \n public void shouldNotCreateExistingUser ( ) throws Exception \n {", "msg_token": "Added check for password on user creation"} {"diff": " public class Danmakus implements IDanmakus { \n } \n \n public synchronized void reset ( ) { \n - if ( mData != null ) { \n + if ( mData != null || mSize > NUMBER0 ) { \n it = mData . iterator ( ) ; \n } else { \n it = null ;", "msg_token": "reduce object alloctaion"} {"diff": " public class CloneElementAction extends CopyElementAction { \n } \n \n protected void updateForToolWindow ( String id , DataContext dataContext , Presentation presentation ) { \n - if ( ! ToolWindowId . COMMANDER . equals ( id ) ) { \n - presentation . setVisible ( false ) ; \n - return ; \n - } \n SINGLE \n PsiElement [ ] elements = LangDataKeys . PSI_ELEMENT_ARRAY . getData ( dataContext ) ; \n presentation . setEnabled ( elements != null && elements . length == NUMBER0 && CopyHandler . canClone ( elements ) ) ; \n presentation . setVisible ( true ) ; \n + if ( ! ToolWindowId . COMMANDER . equals ( id ) ) { \n + presentation . setVisible ( false ) ; \n + } \n } \n }", "msg_token": "restore clone in project view by shortcut even if it is invisible"} {"diff": " public interface Call { \n PsiElement getCallElement ( ) ; \n \n enum CallType { \n - DEFAULT , ARRAY_GET_METHOD , ARRAY_SET_METHOD \n + DEFAULT , ARRAY_GET_METHOD , ARRAY_SET_METHOD , INVOKE \n } \n \n @ notnull \n public class CallTransformer < D extends CallableDescriptor , F extends D > { \n return invokeExpression ; \n } \n \n + @ notnull \n + @ override \n + public CallType getCallType ( ) { \n + return CallType . INVOKE ; \n + } \n + \n + @ notnull \n + public Call getOuterCall ( ) { \n + return outerCall ; \n + } \n } \n }", "msg_token": "added INVOKE CallType"} {"diff": " public class RosterManager extends BasicModule implements GroupEventListener { \n } \n \n public void memberRemoved ( Group group , Map params ) { \n - JID deletedUser = new JID ( ( String ) params . get ( STRING0 ) ) ; \n + String member = ( String ) params . get ( STRING0 ) ; \n + if ( member == null ) { \n + return ; \n + } \n + JID deletedUser = new JID ( member ) ; \n SINGLE \n if ( group . getAdmins ( ) . contains ( deletedUser ) ) { \n return ;", "msg_token": "Added safety check"} {"diff": " public class MoveKotlinTopLevelDeclarationsDialog extends RefactoringDialog { \n PsiDirectory selectedPsiDirectory ; \n if ( initialTargetDirectory == null ) { \n DirectoryChooser . ItemWrapper selectedItem = ( DirectoryChooser . ItemWrapper ) destinationFolderCB . getComboBox ( ) . getSelectedItem ( ) ; \n - selectedPsiDirectory = selectedItem . getDirectory ( ) ; \n + selectedPsiDirectory = selectedItem != null ? selectedItem . getDirectory ( ) : null ; \n if ( selectedPsiDirectory == null ) return Pair . create ( null , new MultipleRootsMoveDestination ( targetPackage ) ) ; \n } \n else {", "msg_token": "Fix NPE in MoveKotlinTopLevelDeclarationsDialog"} {"diff": " public class RpcChannel implements ChannelListener { \n } \n \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected static String bToS ( byte [ ] data ) { \n - StringBuilder buf = new StringBuilder ( NUMBER0 * NUMBER1 ) ; \n - buf . append ( STRING0 ) ; \n - for ( int i = NUMBER2 ; data != null && i < data . length ; i ++ ) buf . append ( String . valueOf ( data [ i ] ) ) . append ( STRING1 ) ; \n - buf . append ( STRING2 ) ; \n - return buf . toString ( ) ; \n - } \n - \n - \n }", "msg_token": "Remove unused code"} {"diff": " public class ReviewPanel extends Composite implements Display \n public void onClick ( ClickEvent event ) \n { \n changelist_ . showProgress ( ) ; \n - commands . vcsRefresh ( ) ; \n + commands . vcsRefresh ( ) . execute ( ) ; \n } \n } ) ) ;", "msg_token": "Fix refresh button in VCS review panel"} {"diff": " public class Preference implements Comparable < Preference > { \n R . styleable . Preference_android_icon , NUMBER0 ) ; \n \n mKey = TypedArrayUtils . getString ( a , R . styleable . Preference_key , \n - R . styleable . Preference_key ) ; \n + R . styleable . Preference_android_key ) ; \n \n mTitle = TypedArrayUtils . getString ( a , R . styleable . Preference_title , \n R . styleable . Preference_android_title ) ;", "msg_token": "Use correct fallback attr for Preference key"} {"diff": " public class DataTypeTest { \n DataType . forValue ( objects ) ; \n } \n \n - @ test ( expected = IllegalArgumentException . class ) \n + @ test \n public void testForValueWithEmptyList ( ) { \n List < Object > objects = Arrays . < Object > asList ( ) ; \n - DataType . forValue ( objects ) ; \n + DataType type = DataType . forValue ( objects ) ; \n + assertThat ( type , is ( DataType . NULL_ARRAY ) ) ; \n } \n }", "msg_token": "fix empty list type handling in DataTypeTest"} {"diff": " public class TestStatementCache extends DefaultTestCase { \n Connection con1 = datasource . getConnection ( ) ; \n Connection con2 = datasource . getConnection ( ) ; \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n - @ suppresswarnings ( STRING0 ) SINGLE \n Connection con = ( i % NUMBER2 == NUMBER0 ) ? con1 : con2 ; \n PreparedStatement ps = con . prepareStatement ( STRING1 + i ) ; \n ps . close ( ) ;", "msg_token": "Remove unnecessary IDE warning"} {"diff": " public class TokenPathBinder implements PathBinder { \n } \n \n private String decodeURIComponent ( String s ) { \n - String str = null ; \n + String str ; \n try { \n str = URLDecoder . decode ( s . replaceAll ( STRING0 , STRING1 ) , STRING2 ) ; \n } catch ( UnsupportedEncodingException ignored ) {", "msg_token": "Remove redundant initializer"} {"diff": " public class SimpleAccountRegistrationActivator \n \n for ( int j = NUMBER0 ; j < accountsList . size ( ) ; j ++ ) \n { \n - accountID = ( AccountID ) accountsList . get ( i ) ; \n + accountID = ( AccountID ) accountsList . get ( j ) ; \n \n boolean isHidden = \n accountID . getAccountProperties ( )", "msg_token": "Fix loop index"} {"diff": " public class WorldEdit { \n public boolean handleRightClick ( LocalPlayer player ) { \n LocalSession session = getSession ( player ) ; \n \n - if ( player . getItemInHand ( ) == config . navigationWand ) { \n + if ( player . isHoldingPickAxe ( ) ) { \n + if ( session . getArmSwingMode ( ) != null ) { \n + session . getArmSwingMode ( ) . act ( server , config , \n + player , session , null ) ; \n + return true ; \n + } \n + } else if ( player . getItemInHand ( ) == config . navigationWand ) { \n CompassMode mode = session . getCompassMode ( ) ; \n \n if ( mode == CompassMode . JUMPTO ) {", "msg_token": "Changed the arm swing tools to also work on right click"} {"diff": " public class NamingRuleSet extends RuleSetBase { \n STRING0 ) ) ; \n \n digester . addObjectCreate ( prefix + STRING1 , \n - STRING2 ) ; \n + STRING3 ) ; \n digester . addRule ( prefix + STRING1 , new SetAllPropertiesRule ( ) ) ; \n digester . addRule ( prefix + STRING1 , \n new SetNextNamingRule ( STRING4 ,", "msg_token": "Can t init wsdl Service as Naming Context"} {"diff": " public class OClass extends OSchemaRecord { \n } \n \n public void removeProperty ( final String iPropertyName ) { \n - OProperty prop = properties . remove ( iPropertyName ) ; \n + OProperty prop = properties . remove ( iPropertyName . toLowerCase ( ) ) ; \n \n if ( prop == null ) \n throw new OSchemaException ( STRING0 + iPropertyName + STRING1 + name + STRING2 ) ; \n \n + prop . removeIndex ( ) ; \n + \n fixedSize -= prop . getType ( ) . size ; \n setDirty ( ) ; \n }", "msg_token": "Fixed problem with case for properties"} {"diff": " public class ActionHandler extends CommandHandler { \n application . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - executeAction ( action , context , actionName ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + application . invokeLater ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + executeAction ( action , context , actionName ) ; \n + } \n + } ) ; \n } \n } ) ; \n }", "msg_token": "action commands a keymap"} {"diff": " public class BootstrapMain { \n List jars = new ArrayList ( ) ; \n File [ ] files = getGradleClasspath ( gradleHome , bootStrapDebug ) ; \n for ( int i = NUMBER0 ; i < files . length ; i ++ ) { \n - jars . add ( files [ i ] . toURL ( ) ) ; \n + if ( files [ i ] . isFile ( ) ) { \n + jars . add ( files [ i ] . toURL ( ) ) ; \n + } \n } \n ClassLoader parentClassloader = classLoader . getParent ( ) ; \n if ( bootStrapDebug ) {", "msg_token": "Only include file objects no dirs from lib dir"} {"diff": " public class OutputStreamDataSink implements DataSink { \n outputStreamCallback . onWriteable ( ) ; \n \n if ( closeReported && ! pending . hasRemaining ( ) ) { \n - System . out . println ( STRING0 + totalWritten ) ; \n if ( mClosedCallback != null ) \n mClosedCallback . onCompleted ( closeException ) ; \n return ; \n public class OutputStreamDataSink implements DataSink { \n return ; \n closeReported = true ; \n closeException = ex ; \n - doBackground ( ) ; \n + if ( blocking ) { \n + getServer ( ) . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + doBackground ( ) ; \n + } \n + } ) ; \n + return ; \n + } \n + \n + if ( mClosedCallback != null ) \n + mClosedCallback . onCompleted ( closeException ) ; \n } \n \n CompletedCallback mClosedCallback ;", "msg_token": "comment out the blocking paths"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class StringSorter { \n ExternalSorter < String > sorter = new ExternalSorter < String > ( new StringSerializer ( ) , \n internalSortSize , \n numThreads ) ; \n - LineIterator it = new LineIterator ( new BufferedReader ( new FileReader ( input ) , \n - NUMBER0 * NUMBER1 * NUMBER1 ) ) ; \n + @ suppresswarnings ( STRING0 ) \n + Iterator < String > it = new LineIterator ( new BufferedReader ( new FileReader ( input ) , \n + NUMBER0 * NUMBER1 * NUMBER1 ) ) ; \n \n String seperator = System . getProperty ( STRING1 ) ; \n BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( System . out ) ,", "msg_token": "Add SuppressWarnings unchecked when assigning ListIterator to Iterator String since the commons io is not generified"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaDocInfoComponent extends JPanel implements Disposable { \n } \n \n private static boolean isExternalDocActionEnabled ( PsiElement element ) { \n - boolean actionEnabled = element != null && ( element . getLanguage ( ) == StdLanguages . JAVA || JavaDocManager . getExternalJavaDocUrl ( element ) != null ) ; \n + boolean actionEnabled = element != null && JavaDocManager . getExternalJavaDocUrl ( element ) != null ; \n \n if ( element instanceof PsiVariable && ! ( element instanceof PsiField ) ) { \n actionEnabled = false ;", "msg_token": "disable view external javadoc if no external javadoc is configured"} {"diff": " public class RefParameterImpl extends RefElementImpl implements RefParameter { \n \n myIndex = ( short ) index ; \n myActualValueTemplate = VALUE_UNDEFINED ; \n + final RefElementImpl owner = ( RefElementImpl ) manager . getReference ( PsiTreeUtil . getParentOfType ( parameter , PsiMethod . class ) ) ; \n + if ( owner != null ) { \n + owner . add ( this ) ; \n + } \n } \n \n public void parameterReferenced ( boolean forWriting ) {", "msg_token": "add owner for RefParameter"} {"diff": " public abstract class TitanGraphTest extends TitanGraphBaseTest { \n \n newTx ( ) ; \n \n - assertCount ( NUMBER0 , Iterables . size ( tx . query ( ) . has ( STRING0 , STRING1 ) . vertices ( ) ) ) ; \n - assertCount ( NUMBER1 , Iterables . size ( tx . query ( ) . has ( STRING0 , STRING2 ) . vertices ( ) ) ) ; \n - assertCount ( NUMBER1 , Iterables . size ( tx . query ( ) . has ( STRING3 , NUMBER2 ) . vertices ( ) ) ) ; \n + assertCount ( NUMBER0 , tx . query ( ) . has ( STRING0 , STRING1 ) . vertices ( ) ) ; \n + assertCount ( NUMBER1 , tx . query ( ) . has ( STRING0 , STRING2 ) . vertices ( ) ) ; \n + assertCount ( NUMBER1 , tx . query ( ) . has ( STRING3 , NUMBER2 ) . vertices ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fix failing unit test due to asserting count on an integer"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisitorWrapper { \n public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \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 public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added additional javadoc"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n final class PolymerPass extends AbstractPostOrderCallback implements HotSwapCompilerPass {", "msg_token": "Add link to documentation about the Polymer pass"} {"diff": " class ExperimentalStateTracker { \n if ( packageProgressReceiver != null ) { \n Pair < String , String > progress = packageProgressReceiver . progressState ( ) ; \n terminalWriter . append ( STRING0 + progress . getFirst ( ) + STRING1 ) ; \n - if ( progress . getSecond ( ) . length ( ) > NUMBER0 ) { \n + if ( progress . getSecond ( ) . length ( ) > NUMBER0 && ! shortVersion ) { \n terminalWriter . newline ( ) . append ( STRING2 + progress . getSecond ( ) ) ; \n } \n }", "msg_token": "also during loading produce a short progress bar"} {"diff": " public abstract class TestObject implements JavaCommandLine { \n \n myJavaParameters . getClassPath ( ) . add ( JavaSdkUtil . getIdeaRtJarPath ( ) ) ; \n myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( JUnitStarter . class ) ) ; \n - myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( ServiceMessageTypes . class ) ) ; \n + if ( Registry . is ( STRING0 , false ) ) { \n + myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( ServiceMessageTypes . class ) ) ; \n + } \n myJavaParameters . getProgramParametersList ( ) . add ( JUnitStarter . IDE_VERSION + JUnitStarter . VERSION ) ; \n for ( RunConfigurationExtension ext : Extensions . getExtensions ( RunConfigurationExtension . EP_NAME ) ) { \n ext . updateJavaParameters ( myConfiguration , myJavaParameters , getRunnerSettings ( ) ) ;", "msg_token": "exclude service messages until usage"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AHBottomNavigation extends FrameLayout { \n COMMENT \n COMMENT \n COMMENT \n - public void addItems ( ArrayList < AHBottomNavigationItem > items ) { \n + public void addItems ( List < AHBottomNavigationItem > items ) { \n if ( items . size ( ) >= MAX_ITEMS || ( this . items . size ( ) + items . size ( ) ) > MAX_ITEMS ) { \n Log . w ( TAG , STRING0 ) ; \n }", "msg_token": "Allow AHBottomNavigation addItems to take List as parameter instead of ArrayList"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class BlogTest extends InstrumentationTestCase { \n private Blog blog ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class PostTest extends InstrumentationTestCase { \n private WordPressDB mDB ;", "msg_token": "Removing author information from test related files"} {"diff": " final class Dictan extends DictionaryUtil . PackageInfo { \n outliner . run ( ) ; \n } \n } catch ( ActivityNotFoundException e ) { \n - fbreader . hideDictionarySelection ( ) ; \n InternalUtil . installDictionaryIfNotInstalled ( fbreader , this ) ; \n } \n }", "msg_token": "removed non sense call"} {"diff": " public final class HazelcastComponentHelper { \n addMapping ( STRING0 , HazelcastConstants . QUERY_OPERATION ) ; \n addMapping ( STRING1 , HazelcastConstants . GET_ALL_OPERATION ) ; \n addMapping ( STRING2 , HazelcastConstants . CLEAR_OPERATION ) ; \n + addMapping ( STRING3 , HazelcastConstants . EVICT_OPERATION ) ; \n + addMapping ( STRING4 , HazelcastConstants . EVICT_ALL_OPERATION ) ; \n + addMapping ( STRING5 , HazelcastConstants . PUT_IF_ABSENT_OPERATION ) ; \n + addMapping ( STRING6 , HazelcastConstants . ADD_ALL_OPERATION ) ; \n + addMapping ( STRING7 , HazelcastConstants . REMOVE_ALL_OPERATION ) ; \n + addMapping ( STRING8 , HazelcastConstants . RETAIN_ALL_OPERATION ) ; \n \n SINGLE \n addMapping ( STRING9 , HazelcastConstants . REMOVEVALUE_OPERATION ) ;", "msg_token": "HazelcastComponentHelper miss some operations in mapping"} {"diff": " public abstract class MessagesFragment extends DisplayListFragment < Message , Mess \n } else { \n background = Drawable . createFromPath ( BaseActorSettingsFragment . getWallpaperFile ( ) ) ; \n } \n - ( ( ImageView ) res . findViewById ( R . id . chatBackgroundView ) ) . setImageDrawable ( background ) ; \n + } else { \n + background = getResources ( ) . getDrawable ( backgrounds [ NUMBER0 ] ) ; \n } \n + ( ( ImageView ) res . findViewById ( R . id . chatBackgroundView ) ) . setImageDrawable ( background ) ; \n \n \n SINGLE", "msg_token": "Fixing default background"} {"diff": " public final class RingtonePickerActivity extends AlertActivity implements \n public void run ( ) { \n \n if ( mSampleRingtonePos == mSilentPos ) { \n + mRingtoneManager . stopPreviousRingtone ( ) ; \n return ; \n }", "msg_token": "Stop previous ringtone when silent is selected"} {"diff": " public class ChaseCamera implements ActionListener , AnalogListener , Control { \n protected float maxVerticalRotation = FastMath . PI / NUMBER0 ; \n protected float minDistance = FLOAT0 ; \n protected float maxDistance = FLOAT1 ; \n - protected float distance = NUMBER1 ; \n - protected float zoomSpeed = FLOAT2 ; \n + protected float distance = NUMBER1 ; \n protected float rotationSpeed = FLOAT0 ; \n protected float rotation = NUMBER2 ; \n protected float trailingRotationInertia = FLOAT3 ; \n - protected float zoomSensitivity = FLOAT4 ; \n + protected float zoomSensitivity = FLOAT2 ; \n protected float rotationSensitivity = FLOAT4 ; \n protected float chasingSensitivity = FLOAT4 ; \n protected float trailingSensitivity = FLOAT5 ; \n public class ChaseCamera implements ActionListener , AnalogListener , Control { \n } \n \n zooming = true ; \n - targetDistance += value * zoomSpeed ; \n + targetDistance += value * zoomSensitivity ; \n if ( targetDistance > maxDistance ) { \n targetDistance = maxDistance ; \n }", "msg_token": "Fixed zoomSensitivity in chaseCamera removed the zoomSpeed"} {"diff": " public abstract class Mode { \n abstract public String getDefaultExtension ( ) ; \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getModuleExtension ( ) { \n + return getDefaultExtension ( ) ; \n + } \n + \n \n COMMENT \n COMMENT \n public class Sketch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n protected void nameCode ( String newName ) { \n newName = newName . trim ( ) ; \n public class Sketch { \n \n SINGLE \n if ( newName . indexOf ( STRING0 ) == - NUMBER0 ) { \n - newName += STRING1 + mode . getDefaultExtension ( ) ; \n + newName += STRING1 + ( renamingCode ? mode . getDefaultExtension ( ) : mode . getModuleExtension ( ) ) ; \n } \n \n SINGLE", "msg_token": "Permit Modes to specify different default file extension for auxilliary not main pde files created in new tabs"} {"diff": " public class MainController implements Choreographer . FrameCallback { \n Log . e ( TAG , STRING0 ) ; \n sStartExpandedActivityTime = System . currentTimeMillis ( ) ; \n Intent intent = new Intent ( mContext , ExpandedActivity . class ) ; \n - intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ; SINGLE \n + intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n mContext . getApplicationContext ( ) . startActivity ( intent ) ; \n }", "msg_token": "Remove use of Intent FLAG_ACTIVITY_TASK_ON_HOME flag"} {"diff": " public class GeoIntentActivity extends OsmandListActivity { \n \n private ProgressDialog progressDlg ; \n private LatLon location ; \n + protected static final boolean DO_NOT_SEARCH_ADDRESS = true ; \n \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n public class GeoIntentActivity extends OsmandListActivity { \n if ( geo != null ) { \n return new ExecutionResult ( Collections . singleton ( geo ) ) ; \n } \n + SINGLE \n + if ( DO_NOT_SEARCH_ADDRESS ) { \n + return ExecutionResult . EMPTY ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "disable search by geo address"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ArithmeticNode extends SimpleNode { \n + public abstract class ArithmeticNode extends SimpleNode { \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class BooleanNode extends SimpleNode { \n + public abstract class BooleanNode extends SimpleNode { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make abstract nodes abstract"} {"diff": " public class BookFragmentTest extends ActivityInstrumentationTestCase2 < MainActiv \n public void test_shouldShowBookTitle ( ) throws Exception { \n TextView titleText = ( TextView ) solo . getView ( R . id . title ) ; \n assertEquals ( View . VISIBLE , titleText . getVisibility ( ) ) ; \n - assertNotSame ( STRING0 , titleText . getText ( ) . toString ( ) ) ; \n solo . sleep ( NUMBER0 ) ; \n - assertEquals ( STRING0 , titleText . getText ( ) . toString ( ) ) ; \n + assertEquals ( titleText . getText ( ) . toString ( ) . startsWith ( STRING1 ) , true ) ; \n } \n }", "msg_token": "Fixed connected test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpanishTreebankLanguagePack extends AbstractTreebankLanguagePack { \n COMMENT \n @ override \n public TokenizerFactory < ? extends HasWord > getTokenizerFactory ( ) { \n - return SpanishTokenizer . SpanishTokenizerFactory . newTokenizerFactory ( ) ; \n + return SpanishTokenizer . factory ( new CoreLabelTokenFactory ( ) , null ) ; \n } \n \n COMMENT", "msg_token": "Fix tokenizer instantiation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n public class ThreeClientsRecordDeleteWithTransactionsOnMultipleServersScenarioTe \n \n @ override \n public String getDatabaseName ( ) { \n - return STRING0 ; \n + return STRING1 ; \n } \n \n }", "msg_token": "fixed wrong db name"} {"diff": " public final class BridgeContext extends Context { \n SINGLE \n return null ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public int getUserId ( ) { \n + return NUMBER0 ; SINGLE \n + } \n }", "msg_token": "Fix the build"} {"diff": " public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme \n fc = handleIoException ( fc , future ) ; \n } else { \n fc = new FilterContext . FilterContextBuilder ( ) . asyncHandler ( future . getAsyncHandler ( ) ) \n - . request ( future . getRequest ( ) ) . replayRequest ( true ) . ioException ( IOException . class . cast ( cause . getClass ( ) ) ) . build ( ) ; \n + . request ( future . getRequest ( ) ) . replayRequest ( true ) . build ( ) ; \n } \n \n if ( fc . replayRequest ( ) ) {", "msg_token": "Avoid unnessary cast"} {"diff": " public class DefaultGradleLauncherFactory implements GradleLauncherFactory { \n } \n listenerManager . addListener ( tracker ) ; \n \n + listenerManager . addListener ( serviceRegistry . get ( ProfileEventAdapter . class ) ) ; \n if ( startParameter . isProfile ( ) ) { \n - listenerManager . addListener ( serviceRegistry . get ( ProfileEventAdapter . class ) ) ; \n listenerManager . addListener ( new ReportGeneratingProfileListener ( ) ) ; \n } \n ScriptUsageLocationReporter usageLocationReporter = new ScriptUsageLocationReporter ( ) ;", "msg_token": "Revert register ProfileEventAdapter only when profiling is enabled"} {"diff": " public class TestBeeLineWithArgs { \n final String EXPECTED_PATTERN = STRING0 ; \n testScriptFile ( SCRIPT_TEXT , EXPECTED_PATTERN , true , argList , true , false ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ test \n + public void testBeelineWithForce ( ) throws Throwable { \n + final String SCRIPT_TEXT = STRING1 \n + + STRING2 \n + + STRING3 ; \n + final String EXPECTED_PATTERN = STRING4 ; \n + List < String > argList = getBaseArgs ( miniHS2 . getBaseJdbcURL ( ) ) ; \n + argList . add ( STRING5 ) ; \n + testScriptFile ( SCRIPT_TEXT , EXPECTED_PATTERN , true , argList ) ; \n + } \n }", "msg_token": "Add tests for beeline force option Kavan Suresh via Jason Dere"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n COMMENT \n public void setConfigurationClasses ( String [ ] configurations ) \n { \n - if ( isRunning ( ) ) \n + if ( isStarted ( ) ) \n throw new IllegalStateException ( ) ; \n _configurationClasses = configurations == null ? null : ( String [ ] ) configurations . clone ( ) ; \n _configurationClassesSet = true ; \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n COMMENT \n public void setConfigurations ( Configuration [ ] configurations ) \n { \n - if ( isRunning ( ) ) \n + if ( isStarted ( ) ) \n throw new IllegalStateException ( ) ; \n _configurations = configurations == null ? null : ( Configuration [ ] ) configurations . clone ( ) ; \n _configurationsSet = true ;", "msg_token": "allow configuration during starting state"} {"diff": " public class Arguments implements GenerationConfig { \n @ parameter ( names = { STRING0 , STRING1 } , description = STRING2 ) \n private boolean nullCollections = false ; \n \n - @ parameter ( names = { STRING3 , STRING4 } , description = STRING2 ) \n + @ parameter ( names = { STRING3 , STRING4 } , description = STRING5 ) \n private String classNamePrefix = STRING6 ; \n \n - @ parameter ( names = { STRING7 , STRING8 } , description = STRING2 ) \n + @ parameter ( names = { STRING7 , STRING8 } , description = STRING9 ) \n private String classNameSuffix = STRING6 ; \n \n private static final int EXIT_OKAY = NUMBER0 ;", "msg_token": "Fix parameter description of class prefix and class suffix"} {"diff": " public class CachedResource implements WebResource { \n return true ; \n } \n \n + if ( ! webResource . exists ( ) && \n + root . getResourceInternal ( webAppPath ) . exists ( ) ) { \n + return false ; \n + } \n + \n SINGLE \n SINGLE \n if ( webResource . getLastModified ( ) != getLastModified ( ) ||", "msg_token": "Invalidate the cache entry if a previously missing resource is now present"} {"diff": " public class SparkDl4jLayer implements Serializable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public Layer fitDataSet ( JavaRDD < DataSet > rdd ) { \n int batchSize = conf . getBatchSize ( ) ;", "msg_token": "add extra methods for layer"} {"diff": " public class View implements ViewDelegate { \n } \n } \n \n - public void addContextPanelFactory ( ContextPanelFactory cpf ) { \n + @ override \n + public void addContextPanelFactory ( ContextPanelFactory cpf ) { \n this . contextPanelFactories . add ( cpf ) ; \n }", "msg_token": "Add missing Override to method addContextPanelFactory"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n final FileOutputStream fos = new FileOutputStream ( fileName ) ; \n try { \n currentDatabase . backup ( fos , null , null , this , compressionLevel , bufferSize ) ; \n - \n - } finally { \n fos . flush ( ) ; \n fos . close ( ) ; \n - \n message ( STRING0 , ( ( float ) ( System . currentTimeMillis ( ) - startTime ) / NUMBER0 ) ) ; \n + } catch ( RuntimeException e ) { \n + fos . close ( ) ; \n + File f = new File ( fileName ) ; \n + if ( f . exists ( ) ) \n + f . delete ( ) ; \n + throw e ; \n } \n } \n } catch ( ODatabaseExportException e ) {", "msg_token": "removed eventual backup file if the backup operation fail"} {"diff": " public abstract class MixinNetHandlerPlayServer { \n + STRING0 \n + STRING1 , remap = false ) ) \n public PlayerInteractEvent onFirePlayerInteractEvent ( EntityPlayer player , PlayerInteractEvent . Action action , World world , BlockPos pos , EnumFacing face ) { \n - PlayerInteractEvent event = new PlayerInteractEvent ( playerEntity , PlayerInteractEvent . Action . RIGHT_CLICK_AIR , new BlockPos ( NUMBER0 , NUMBER0 , NUMBER0 ) , null , world ) ; \n + PlayerInteractEvent event = new PlayerInteractEvent ( player , action , pos , face , world ) ; \n double reach = this . playerEntity . theItemInWorldManager . getGameType ( ) == WorldSettings . GameType . CREATIVE ? NUMBER1 : FLOAT0 ; \n Optional < BlockRayHit > attempt = \n BlockRay . from ( ( Player ) this . playerEntity )", "msg_token": "Use provided arguments from redirect for block place event"} {"diff": " public class Message \n { \n if ( field . groupFields ( ) != null ) \n { \n - return field . computedOffset ( ) ; \n + return blockLength ; \n } \n else if ( field . type ( ) != null ) \n { \n public class Message \n { \n if ( NUMBER0 != specifiedBlockLength && computedBlockLength > specifiedBlockLength ) \n { \n - handleError ( node , STRING0 ) ; \n + handleError ( node , STRING1 + computedBlockLength + STRING2 + specifiedBlockLength ) ; \n } \n } \n }", "msg_token": "fixed check when computing root blocklength to return current blocklength value when hitting a group"} {"diff": " public interface Cluster { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added javadoc on cluster getMembers"} {"diff": " public class Daemon implements Stoppable { \n \n Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { \n public void run ( ) { \n - LOGGER . debug ( STRING0 ) ; \n try { \n daemonRegistry . remove ( connectorAddress ) ; \n } catch ( Exception e ) {", "msg_token": "Reduced logging noise"} {"diff": " public class ShareActivity extends FileActivity \n public void onGetDataShareWithFinish ( RemoteOperationResult result ) { \n SINGLE \n dismissLoadingDialog ( ) ; \n - if ( result != null && result . isSuccess ( ) ) { \n + if ( result . isSuccess ( ) ) { \n Log_OC . d ( TAG , STRING0 ) ; \n } SINGLE", "msg_token": "Removed check of NULL after code review"} {"diff": " public class IQRouter extends BasicModule { \n namespace = childElement . getNamespaceURI ( ) ; \n } \n if ( namespace == null ) { \n - if ( packet . getType ( ) != IQ . Type . result ) { \n + if ( packet . getType ( ) != IQ . Type . result && packet . getType ( ) != IQ . Type . error ) { \n SINGLE \n Log . warn ( STRING0 + packet ) ; \n }", "msg_token": "Do not print warn message with returned IQ error packets"} {"diff": " public interface ModelMap < T > extends CollectionBuilder < T > , Iterable < T > { \n < S extends T > void create ( String name , Class < S > type , Action < ? super S > configAction ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + SINGLE \n void put ( String name , T instance ) ; \n \n COMMENT", "msg_token": "Updated Javadoc for ModelMap put"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ContextNames { \n final int i = context . indexOf ( STRING0 ) ; \n if ( i == - NUMBER0 ) { \n namespace = context . substring ( NUMBER1 ) ; \n + } else if ( i == NUMBER1 ) { \n + SINGLE \n + return JAVA_CONTEXT_SERVICE_NAME . append ( context . substring ( NUMBER2 ) ) ; \n } else { \n namespace = context . substring ( NUMBER1 , i ) ; \n } \n + \n if ( namespace . equals ( STRING1 ) ) { \n return GLOBAL_CONTEXT_SERVICE_NAME . append ( context . substring ( NUMBER3 ) ) ; \n } else if ( namespace . equals ( STRING2 ) ) {", "msg_token": "Fix absolute path handling"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Changed the HA REST API so that it returns UNKNOWN when it s neither master nor slave"} {"diff": " public enum ServerMeter implements AbstractMetrics . Meter { \n REALTIME_ROWS_CONSUMED ( STRING0 , true ) , \n INVALID_REALTIME_ROWS_DROPPED ( STRING0 , false ) , \n REALTIME_CONSUMPTION_EXCEPTIONS ( STRING1 , true ) , \n - REALTIME_OFFSET_COMMITS ( STRING2 , true ) ; \n + REALTIME_OFFSET_COMMITS ( STRING2 , true ) , \n + REALTIME_OFFSET_COMMIT_EXCEPTIONS ( STRING1 , false ) ; \n \n private final String meterName ; \n private final String unit ; \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RealtimeSegmentDataManager extends SegmentDataManager { \n SINGLE \n LOGGER . error ( STRING3 , \n commitSuccessful , e ) ; \n + serverMetrics . addMeteredTableValue ( tableName , ServerMeter . REALTIME_OFFSET_COMMIT_EXCEPTIONS , NUMBER0 ) ; \n if ( ! commitSuccessful ) { \n kafkaStreamProvider . shutdown ( ) ; \n }", "msg_token": "Add metric for offset commit exceptions"} {"diff": " public class SSTableRewriterTest extends SchemaLoader \n SSTableWriter writer = getWriter ( cfs , dir ) ; \n try \n { \n - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) \n + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) \n writer . append ( StorageService . getPartitioner ( ) . decorateKey ( random ( i , NUMBER3 ) ) , cf ) ; \n SSTableReader s = writer . openEarly ( NUMBER1 ) ; \n assert s != null ; \n assertFileCounts ( dir . list ( ) , NUMBER4 , NUMBER4 ) ; \n - for ( int i = NUMBER1 ; i < NUMBER5 ; i ++ ) \n + for ( int i = NUMBER2 ; i < NUMBER6 ; i ++ ) \n writer . append ( StorageService . getPartitioner ( ) . decorateKey ( random ( i , NUMBER3 ) ) , cf ) ; \n SSTableReader s2 = writer . openEarly ( NUMBER1 ) ; \n assertTrue ( s . last . compareTo ( s2 . last ) < NUMBER0 ) ;", "msg_token": "Fix SSTableRewriterTest when run with compression"} {"diff": " public class CxfRsInvoker extends JAXRSInvoker { \n SINGLE \n return method . invoke ( serviceObject , paramArray ) ; \n } \n - Continuation continuation = getContinuation ( cxfExchange ) ; \n - SINGLE \n - if ( continuation != null && ! endpoint . isSynchronous ( ) && Version . getCurrentVersion ( ) . startsWith ( STRING0 ) ) { \n + Continuation continuation ; \n + if ( ! endpoint . isSynchronous ( ) && ( continuation = getContinuation ( cxfExchange ) ) != null && Version . getCurrentVersion ( ) . startsWith ( STRING0 ) ) { \n + SINGLE \n return asyncInvoke ( cxfExchange , serviceObject , method , paramArray , continuation ) ; \n } else { \n return syncInvoke ( cxfExchange , serviceObject , method , paramArray ) ;", "msg_token": "Do not use CXF continuation if option is disabled"} {"diff": " public class CaptivePortalLoginActivity extends Activity { \n } \n \n @ override \n + public void onBackPressed ( ) { \n + WebView myWebView = ( WebView ) findViewById ( R . id . webview ) ; \n + if ( myWebView . canGoBack ( ) ) { \n + myWebView . goBack ( ) ; \n + } else { \n + super . onBackPressed ( ) ; \n + } \n + } \n + \n + @ override \n public boolean onOptionsItemSelected ( MenuItem item ) { \n int id = item . getItemId ( ) ; \n if ( id == R . id . action_use_network ) {", "msg_token": "Make back button work in CaptivePortalLogin app like a web browser"} {"diff": " public class ITvInputSessionWrapper extends ITvInputSession . Stub implements Hand \n private static final String TAG = STRING0 ; \n \n private static final int MESSAGE_HANDLING_DURATION_THRESHOLD_MILLIS = NUMBER0 ; \n - private static final int MESSAGE_TUNE_DURATION_THRESHOLD_MILLIS = NUMBER1 ; \n + private static final int MESSAGE_TUNE_DURATION_THRESHOLD_MILLIS = NUMBER2 ; \n \n private static final int DO_RELEASE = NUMBER3 ; \n private static final int DO_SET_MAIN = NUMBER4 ;", "msg_token": "increase the time threshold for tune operation which was too harsh"} {"diff": " public class IndexingMemoryBufferController extends AbstractLifecycleComponent < I \n SINGLE \n if ( ! status . inactive ) { \n SINGLE \n - if ( ( time - status . time ) > inactiveTime . millis ( ) && ( ( InternalIndexShard ) indexShard ) . mergeScheduler ( ) . stats ( ) . current ( ) == NUMBER0 ) { \n + if ( ( time - status . time ) > inactiveTime . millis ( ) && indexShard . mergeStats ( ) . current ( ) == NUMBER0 ) { \n try { \n ( ( InternalIndexShard ) indexShard ) . engine ( ) . updateIndexingBufferSize ( Engine . INACTIVE_SHARD_INDEXING_BUFFER ) ; \n } catch ( EngineClosedException e ) {", "msg_token": "use a simpler API call"} {"diff": " public class ChatConversationPanel \n + message \n + endHeaderTag ; \n } \n + else if ( messageType . equals ( Constants . ACTION_MESSAGE ) ) \n + { \n + chatString = STRING0 \n + + msgDate + STRING1 ; \n + endHeaderTag = STRING2 ; \n + \n + chatString += STRING3 + GuiUtils . formatTime ( date ) \n + + STRING4 + contactName + STRING4 \n + + message \n + + endHeaderTag ; \n + } \n else if ( messageType . equals ( Constants . SYSTEM_MESSAGE ) ) \n { \n chatString += startSystemDivTag", "msg_token": "new style added for multi user chat action messages"} {"diff": " public class SpiderHtmlParser extends SpiderParser { \n Matcher matcher = urlPattern . matcher ( content ) ; \n if ( matcher . find ( ) ) { \n String url = matcher . group ( NUMBER0 ) ; \n - processURL ( message , depth , baseURL , url ) ; \n + processURL ( message , depth , url , baseURL ) ; \n } \n } \n }", "msg_token": "Correct the order of parameters when processing URLs found in meta tags"} {"diff": " public class SimpleAppServer extends AbstractAppServer \n @ override \n public String getDescription ( ) \n { \n - return STRING0 ; \n + return STRING1 ; \n } \n } \n }", "msg_token": "Changed the description for the Quit app"} {"diff": " public abstract class MahoutTestCase extends org . apache . mahout . math . MahoutTestCa \n } \n super . tearDown ( ) ; \n } \n - \n + \n protected final Configuration getConfiguration ( ) throws IOException { \n - Configuration conf = new Configuration ( ) ; \n + Configuration conf = new Configuration ( ) ; \n conf . set ( STRING0 , getTestTempDir ( STRING1 + Math . random ( ) ) . getAbsolutePath ( ) ) ; \n return conf ; \n }", "msg_token": "Formatted code replaced tabs with spaces and deleted trailing whitespace"} {"diff": " public final class URLChecker { \n \n COMMENT \n private static final String TAG = STRING0 ; \n - COMMENT \n - private static final String FEEDBURNER_URL = STRING1 ; \n - COMMENT \n - private static final String FEEDBURNER_PREFIX = STRING2 ; \n \n COMMENT \n COMMENT \n public final class URLChecker { \n } \n builder . append ( url ) ; \n \n - if ( url . contains ( FEEDBURNER_URL ) ) { \n - if ( AppConfig . DEBUG ) Log . d ( TAG , \n - STRING3 ) ; \n - builder . append ( FEEDBURNER_PREFIX ) ; \n - } \n return builder . toString ( ) ; \n } \n }", "msg_token": "Removed feedburner specific URL handling"} {"diff": " public class TraktFriendsFragment extends SherlockFragment implements \n Toast . makeText ( getActivity ( ) , R . string . offline , Toast . LENGTH_SHORT ) . show ( ) ; \n return ; \n } \n + showProgressBar ( true ) ; \n mEmptyView . setText ( R . string . friends_empty ) ; \n getLoaderManager ( ) . restartLoader ( ShowsActivity . FRIENDS_LOADER_ID , null , \n mActivityLoaderCallbacks ) ;", "msg_token": "Also show progress when refreshing via button"} {"diff": " public class ImagePresenter < T > { \n \n width = imageView . getWidth ( ) ; \n height = imageView . getHeight ( ) ; \n - if ( pendingLoad != null ) \n - Log . d ( STRING0 + width + STRING1 + height ) ; \n + SINGLE \n + SINGLE \n if ( width != NUMBER0 && height != NUMBER0 ) { \n postPendingLoad ( ) ; \n }", "msg_token": "Remove a noisy debug log line"} {"diff": " public class GitHubService { \n input . getTitle ( ) , input . getHead ( ) , input . getBase ( ) , input . getBody ( ) ) ; \n return gitHubDTOFactory . createPullRequest ( pullRequest ) ; \n } catch ( Exception e ) { \n - LOG . error ( STRING0 , e ) ; \n + if ( ! e . getMessage ( ) . contains ( STRING1 ) ) { \n + LOG . error ( STRING0 , e ) ; \n + } \n throw new ServerException ( e . getMessage ( ) ) ; \n } \n }", "msg_token": "Do not log error when sending a pull request to own project"} {"diff": " final class BaseWebBrowserAction extends BaseOpenInBrowserAction { \n @ nullable \n @ override \n protected WebBrowser getBrowser ( @ notnull AnActionEvent event ) { \n - return WebBrowserManager . getInstance ( ) . isActive ( browser ) ? browser : null ; \n + return WebBrowserManager . getInstance ( ) . isActive ( browser ) && browser . getPath ( ) != null ? browser : null ; \n } \n }", "msg_token": "don t show browser if path is not specified"} {"diff": " public class EnglishGrammaticalRelations { \n COMMENT \n COMMENT \n public static final GrammaticalRelation CLAUSAL_PASSIVE_SUBJECT = \n - new GrammaticalRelation ( Language . English , STRING0 , STRING1 , \n + new GrammaticalRelation ( Language . English , STRING0 , STRING2 , \n ClausalPassiveSubjectGRAnnotation . class , CLAUSAL_SUBJECT , STRING3 , tregexCompiler , \n new String [ ] { \n STRING4 + passiveAuxWordRegex + STRING5 ,", "msg_token": "Fix name of a relation"} {"diff": " public class Log { \n \n SINGLE \n Handler jdkLogHandler = new JiveLogHandler ( ) ; \n + jdkLogHandler . setLevel ( Level . ALL ) ; \n java . util . logging . Logger . getLogger ( STRING0 ) . addHandler ( jdkLogHandler ) ; \n }", "msg_token": "set log level to all"} {"diff": " public class RelativeLayout extends ViewGroup { \n mRules [ ALIGN_PARENT_START ] = NUMBER0 ; \n } \n \n - if ( mRules [ ALIGN_PARENT_RIGHT ] == NUMBER0 ) { \n + if ( mRules [ ALIGN_PARENT_END ] != NUMBER0 ) { \n if ( mRules [ ALIGN_PARENT_RIGHT ] == NUMBER0 ) { \n SINGLE \n SINGLE", "msg_token": "Fix alignParentRight End in RelativeLayout"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n SINGLE \n SINGLE \n SINGLE \n - mWindowManager . resizeTask ( task . taskId , bounds , task . mOverrideConfig , \n + mWindowManager . resizeTask ( task . taskId , task . mBounds , task . mOverrideConfig , \n false COMMENT , false COMMENT ) ; \n } \n } \n final class TaskRecord { \n Rect updateOverrideConfigurationFromLaunchBounds ( ) { \n final Rect bounds = validateBounds ( getLaunchBounds ( ) ) ; \n updateOverrideConfiguration ( bounds ) ; \n + if ( bounds != null ) { \n + bounds . set ( mBounds ) ; \n + } \n return bounds ; \n }", "msg_token": "Use correct task bounds after updating override config"} {"diff": " public class BackgroundableProcessIndicator extends ProgressWindow { \n final Project nonDefaultProject = project == null || project . isDisposed ( ) ? null : project . isDefault ( ) ? null : project ; \n final IdeFrame frame = ( ( WindowManagerEx ) WindowManager . getInstance ( ) ) . findFrameFor ( nonDefaultProject ) ; \n myStatusBar = ( StatusBarEx ) frame . getStatusBar ( ) ; \n + myBackgrounded = option . shouldStartInBackground ( ) ; \n if ( option . shouldStartInBackground ( ) ) { \n doBackground ( ) ; \n } \n public class ProgressWindow extends BlockingProgressIndicator implements Disposa \n private boolean myStoppedAlready = false ; \n protected final FocusTrackback myFocusTrackback ; \n private boolean myStarted = false ; \n - private boolean myBackgrounded = false ; \n + protected boolean myBackgrounded = false ; \n private boolean myWasShown ; \n private String myProcessId = STRING0 ; \n @ nullable private volatile Runnable myBackgroundHandler ;", "msg_token": "correctly define isBackgroundable method review kirill safonov"} {"diff": " public class JsonProvider implements MessageBodyReader < Object > , MessageBodyWrite \n \n if ( type . equals ( String . class ) ) { \n entityStream . write ( value . toString ( ) . getBytes ( Charsets . UTF_8 ) ) ; \n + } else if ( value instanceof byte [ ] ) { \n + entityStream . write ( ( byte [ ] ) value ) ; \n } else { \n getMapper ( ) . writeValue ( entityStream , value ) ; \n }", "msg_token": "don t handle byte arrays with jackson feed icons"} {"diff": " public class AssetTextureSource implements ITextureSource { \n return null ; \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + return this . getClass ( ) . getSimpleName ( ) + STRING0 + this . mAssetPath + STRING1 ; \n + } \n \n SINGLE \n SINGLE \n public class ResourceTextureSource implements ITextureSource { \n public Bitmap getBitmap ( ) { \n return BitmapFactory . decodeResource ( this . mContext . getResources ( ) , this . mDrawableResourceID ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return this . getClass ( ) . getSimpleName ( ) + STRING0 + this . mDrawableResourceID + STRING1 ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Added toStrings of TextureSources"} {"diff": " public class OpenHABConfigurationRecord { \n public Map < String , String > actionlist ; \n \n enum TYPE { \n - LIST , FREELIST , MULTILIST , STRING , GROUP , DECIMAL , HEXADECIMAL , BINARY , BYTE , SHORT , LONG \n + LIST , FREELIST , MULTILIST , CONSTANT , STRING , GROUP , DECIMAL , HEXADECIMAL , BINARY , BYTE , SHORT , LONG \n } \n \n enum STATE {", "msg_token": "Add CONSTANT to data types"} {"diff": " public class StandardServerSF extends StoreFactoryBase { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Correct a typo"} {"diff": " public class ScoreKeeper extends Iced { \n throw H2O . unimpl ( STRING0 ) ; \n } SINGLE \n } SINGLE \n + \n + @ override \n + public String toString ( ) { \n + return STRING1 + \n + STRING2 + _r2 + \n + STRING3 + _mean_residual_deviance + \n + STRING4 + _mse + \n + STRING5 + _logloss + \n + STRING6 + _AUC + \n + STRING7 + _classError + \n + STRING8 + Arrays . toString ( _hitratio ) + \n + STRING9 + _lift + \n + STRING10 ; \n + } \n }", "msg_token": "Add toString for ScoreKeeper"} {"diff": " public class LwjglAWTCanvas implements Application { \n } \n } \n \n + COMMENT \n + public boolean isCurrent ( ) { \n + try { \n + return canvas . isCurrent ( ) ; \n + } catch ( LWJGLException ex ) { \n + throw new GdxRuntimeException ( ex ) ; \n + } \n + } \n + \n COMMENT \n public void setCursor ( Cursor cursor ) { \n this . cursor = cursor ;", "msg_token": "Add the ability to test whether the canvas context is current"} {"diff": " public final class DecimalCasts \n { \n BigInteger decimalBigInteger = BigInteger . valueOf ( value ) . multiply ( BigInteger . valueOf ( tenToScale ) ) ; \n if ( overflows ( decimalBigInteger , ( int ) precision ) ) { \n - throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING0 , value , precision , scale ) ) ; \n + throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING1 , value , precision , scale ) ) ; \n } \n return encodeUnscaledValue ( decimalBigInteger ) ; \n }", "msg_token": "Fix typo in decimal cast error message"} {"diff": " public class MultiUserChatServiceImpl implements Component , MultiUserChatService \n IQ reply = IQ . createResultIQ ( iq ) ; \n reply . setType ( IQ . Type . error ) ; \n reply . setError ( PacketError . Condition . service_unavailable ) ; \n + router . route ( reply ) ; \n } \n + return true ; \n } \n return false ; \n }", "msg_token": "Fix logic on return"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DomJavaUtil { \n @ nullable \n public static PsiClass findClass ( @ nullable String name , @ notnull DomElement element ) { \n assert element . isValid ( ) ; \n - XmlElement xmlElement = element . getXmlElement ( ) ; \n - if ( xmlElement != null ) { \n - assert xmlElement . isValid ( ) ; \n - return findClass ( name , xmlElement . getContainingFile ( ) , element . getModule ( ) , element . getResolveScope ( ) ) ; \n + if ( DomUtil . hasXml ( element ) ) { \n + return findClass ( name , DomUtil . getFile ( element ) , element . getModule ( ) , element . getResolveScope ( ) ) ; \n } \n return null ; \n }", "msg_token": "do not call getXmlElement but use DomUtil hasXml"} {"diff": " public class PsiTreeUtil { \n COMMENT \n COMMENT \n @ nullable \n - public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element , @ notnull final Class < T > . . . classes ) { \n + public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element , @ notnull final Class < ? extends T > . . . classes ) { \n return findChildOfAnyType ( element , true , classes ) ; \n } \n \n public class PsiTreeUtil { \n @ nullable \n public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element , \n final boolean strict , \n - @ notnull final Class < T > . . . classes ) { \n + @ notnull final Class < ? extends T > . . . classes ) { \n PsiElementProcessor . FindElement < PsiElement > processor = new PsiElementProcessor . FindElement < PsiElement > ( ) { \n @ override \n public boolean execute ( @ notnull PsiElement each ) {", "msg_token": "Changed signatures of PsiTreeUtil findChildOfAnyType so they accept vararg Class"} {"diff": " public abstract class ExecutableArchiveLauncher extends Launcher { \n this . javaAgentDetector = javaAgentDetector ; \n } \n \n - ExecutableArchiveLauncher ( Archive archive ) { \n + protected ExecutableArchiveLauncher ( Archive archive ) { \n this . javaAgentDetector = new InputArgumentsJavaAgentDetector ( ) ; \n this . archive = archive ; \n } \n public class JarLauncher extends ExecutableArchiveLauncher { \n \n private static final AsciiBytes LIB = new AsciiBytes ( STRING0 ) ; \n \n + public JarLauncher ( ) { \n + } \n + \n + protected JarLauncher ( Archive archive ) { \n + super ( archive ) ; \n + } \n + \n @ override \n protected boolean isNestedArchive ( Archive . Entry entry ) { \n return ! entry . isDirectory ( ) && entry . getName ( ) . startsWith ( LIB ) ; \n public class WarLauncher extends ExecutableArchiveLauncher { \n super ( ) ; \n } \n \n - WarLauncher ( Archive archive ) { \n + protected WarLauncher ( Archive archive ) { \n super ( archive ) ; \n }", "msg_token": "Make it easier to subclass Launchers"} {"diff": " public class TypeRegistry { \n if ( bangSlash != - NUMBER0 ) { \n String pathInJar = urlstring . substring ( bangSlash + NUMBER1 ) ; \n String remainingPrefix = urlstring . substring ( NUMBER2 , bangSlash ) ; \n - int lastSlash = remainingPrefix . lastIndexOf ( STRING0 ) ; SINGLE \n + int lastSlash = remainingPrefix . lastIndexOf ( File . separator ) ; \n String jarname = remainingPrefix . substring ( lastSlash + NUMBER0 ) ; \n for ( String jarToWatch : GlobalConfiguration . jarsToWatch ) { \n if ( jarname . equals ( jarToWatch ) ) {", "msg_token": "windows slash handling"} {"diff": " public class HmBatteryTypeProvider { \n batteries . put ( STRING0 , new HmBattery ( HmBatteryType . AAA , NUMBER0 ) ) ; \n batteries . put ( STRING1 , new HmBattery ( HmBatteryType . AAA , NUMBER1 ) ) ; \n batteries . put ( STRING2 , new HmBattery ( HmBatteryType . AAA , NUMBER1 ) ) ; \n + batteries . put ( STRING0 , new HmBattery ( HmBatteryType . AAA , NUMBER0 ) ) ; \n \n batteries . put ( STRING3 , new HmBattery ( HmBatteryType . WINMATIC_ACCU , NUMBER0 ) ) ; \n }", "msg_token": "Added battery type for new HM Sec SCo device"} {"diff": " public class VecStatsTest extends TestUtil { \n } \n } \n \n - @ test public void testPCTiles ( ) { \n + @ test @ ignore public void testPCTiles ( ) { \n Vec vec = vec ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 , NUMBER13 , NUMBER14 , NUMBER15 , NUMBER16 , NUMBER17 ) ; \n double [ ] pctiles = vec . pctiles ( ) ; \n System . out . println ( java . util . Arrays . toString ( pctiles ) ) ;", "msg_token": "Turn off rollupstats quantiles test"} {"diff": " public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC \n useMapCenter = false ; \n centerLatLon = null ; \n updateUseMapCenterUI ( ) ; \n - startLocationUpdate ( ) ; \n LatLon centerLatLon = new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) ; \n SearchSettings ss = searchUICore . getSearchSettings ( ) . setOriginalLocation ( \n new LatLon ( centerLatLon . getLatitude ( ) , centerLatLon . getLongitude ( ) ) ) ; \n searchUICore . updateSettings ( ss ) ; \n updateClearButtonAndHint ( ) ; \n updateClearButtonVisibility ( true ) ; \n + startLocationUpdate ( ) ; \n } \n updateToolbarButton ( ) ; \n }", "msg_token": "Fix quick search crash"} {"diff": " public abstract class ServiceBase extends Service { \n sWifiLock = wMgr . createWifiLock ( STRING0 ) ; \n } \n sWifiLock . acquire ( ) ; \n - } else if ( PrefStore . isWifiOnly ( this ) ) { \n + } else if ( background && PrefStore . isWifiOnly ( this ) ) { \n throw new ConnectivityErrorException ( getString ( R . string . error_wifi_only_no_connection ) ) ; \n }", "msg_token": "Don t use wifiOnly for user initiated backup"} {"diff": " public class SignInDelegate extends SmartLockBase < CredentialRequestResult > { \n } \n \n private void redirectToIdpSignIn ( String email , String accountType ) { \n - if ( accountType != null && ( accountType . equals ( IdentityProviders . GOOGLE ) \n + if ( TextUtils . isEmpty ( accountType ) ) { \n + startActivityForResult ( \n + SignInNoPasswordActivity . createIntent ( \n + getContext ( ) , \n + mHelper . getFlowParams ( ) , \n + email ) , \n + RC_EMAIL_FLOW ) ; \n + return ; \n + } \n + \n + if ( accountType . equals ( IdentityProviders . GOOGLE ) \n || accountType . equals ( IdentityProviders . FACEBOOK ) \n - || accountType . equals ( IdentityProviders . TWITTER ) ) ) { \n + || accountType . equals ( IdentityProviders . TWITTER ) ) { \n IdpSignInContainer . signIn ( \n getActivity ( ) , \n mHelper . getFlowParams ( ) ,", "msg_token": "Fix email flow"} {"diff": " public class LexerTest { \n } \n int expectedTokenType = tokenTypesByName . get ( expectedToken . tokenName ) ; \n \n - System . out . println ( String . format ( STRING0 , expectedToken . tokenName , expectedToken . tokenText , getTokenName ( token . getType ( ) ) , token . getText ( ) ) ) ; \n - \n if ( token . getType ( ) != expectedTokenType ) { \n Assert . fail ( String . format ( STRING1 , \n expectedTokenIndex - NUMBER0 , expectedToken . tokenName , getTokenName ( token . getType ( ) ) ) ) ;", "msg_token": "Don t print the expected actual tokens during the lexer tests"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter \n \n Object arg = readWithMessageConverters ( inputMessage , methodParam , paramType ) ; \n if ( arg == null ) { \n - if ( methodParam . getParameterAnnotation ( RequestBody . class ) . required ( ) ) { \n + if ( checkRequired ( methodParam ) ) { \n throw new HttpMessageNotReadableException ( STRING0 + \n methodParam . getMethod ( ) . toGenericString ( ) ) ; \n } \n public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter \n return arg ; \n } \n \n + protected boolean checkRequired ( MethodParameter methodParam ) { \n + return methodParam . getParameterAnnotation ( RequestBody . class ) . required ( ) ; \n + } \n + \n @ override \n public void handleReturnValue ( Object returnValue , MethodParameter returnType , \n ModelAndViewContainer mavContainer , NativeWebRequest webRequest )", "msg_token": "Add protected method for required RequestBody"} {"diff": " public class ExperimentalEventHandler implements EventHandler { \n } \n \n private void doRefresh ( ) { \n + if ( buildComplete ) { \n + return ; \n + } \n long nowMillis = clock . currentTimeMillis ( ) ; \n if ( lastRefreshMillis + minimalDelayMillis < nowMillis ) { \n synchronized ( this ) { \n public class ExperimentalEventHandler implements EventHandler { \n LOG . warning ( STRING0 + e ) ; \n } \n } \n - if ( ! stateTracker . progressBarTimeDependent ( ) && mustRefreshAfterMillis < lastRefreshMillis ) { \n - stopUpdateThread ( ) ; \n - } \n } else { \n SINGLE \n SINGLE", "msg_token": "remove deadlock in update thread"} {"diff": " import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ runwith ( Parallelized . class ) \n public class VersionResponseFilterTest extends SystemTestBase { \n \n private PomVersion current ;", "msg_token": "Don t paralellize VersionResponseFilterTest"} {"diff": " public class DialogTitle extends TextView { \n android . R . style . TextAppearance_Medium , \n android . R . styleable . TextAppearance ) ; \n final int textSize = a . getDimensionPixelSize ( \n - android . R . styleable . TextAppearance_textSize , NUMBER0 ) ; \n + android . R . styleable . TextAppearance_textSize , \n + ( int ) ( NUMBER0 * getResources ( ) . getDisplayMetrics ( ) . density ) ) ; \n \n - setTextSize ( TypedValue . COMPLEX_UNIT_SP , textSize ) ; \n + SINGLE \n + setTextSize ( TypedValue . COMPLEX_UNIT_PX , textSize ) ; \n setMaxLines ( NUMBER1 ) ; \n super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ; \n } \n } \n } \n } \n - \n - } \n + }", "msg_token": "Dialog titles would sometimes use a font too large"} {"diff": " public class NewKotlinFileAction extends CreateFileFromTemplateAction { \n protected void buildDialog ( Project project , PsiDirectory directory , CreateFileFromTemplateDialog . Builder builder ) { \n builder \n . setTitle ( JetBundle . message ( STRING0 ) ) \n + . addKind ( STRING1 , JetFileType . INSTANCE . getIcon ( ) , STRING2 ) \n . addKind ( STRING3 , PlatformIcons . CLASS_ICON , STRING4 ) \n . addKind ( STRING5 , PlatformIcons . INTERFACE_ICON , STRING6 ) \n - . addKind ( STRING7 , PlatformIcons . ENUM_ICON , STRING8 ) \n - . addKind ( STRING1 , JetFileType . INSTANCE . getIcon ( ) , STRING2 ) ; \n + . addKind ( STRING7 , PlatformIcons . ENUM_ICON , STRING8 ) ; \n } \n \n @ override", "msg_token": "By default new kotlin file creates empty file"} {"diff": " public class RepositoryNamePanel extends BasePanel { \n SINGLE \n if ( StringUtils . isEmpty ( repository . projectPath ) ) { \n defaultPath = STRING0 ; \n + defaultName = repository . name ; \n } else { \n defaultPath = repository . projectPath + STRING0 ; \n + defaultName = repository . name . substring ( defaultPath . length ( ) ) ; \n } \n - defaultName = repository . name . substring ( defaultPath . length ( ) ) ; \n pathNames . add ( defaultPath ) ; \n }", "msg_token": "Fix substring regression in repository name panel"} {"diff": " public class ScrollPaneFactory implements ScrollPaneConstants { \n JBScrollPane scrollPane = new JBScrollPane ( view ) ; \n if ( withoutBorder ) { \n scrollPane . setBorder ( IdeBorderFactory . createEmptyBorder ( ) ) ; SINGLE \n + scrollPane . setViewportBorder ( IdeBorderFactory . createEmptyBorder ( ) ) ; \n } \n return scrollPane ; \n }", "msg_token": "Use empty border for the viewport too"} {"diff": " public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter { \n req . setAttribute ( MAX_INACTIVE , ( long ) - NUMBER0 ) ; \n \n logger . debug ( STRING0 , r ) ; \n - \n - if ( ! AtmosphereResourceImpl . class . cast ( r ) . isSuspended ( ) || ! AtmosphereResourceImpl . class . cast ( r ) . isInScope ( ) ) { \n - return ; \n - } \n - \n Future < ? > f = ( Future < ? > ) req . getAttribute ( HeartbeatInterceptor . HEARTBEAT_FUTURE ) ; \n if ( f != null ) f . cancel ( false ) ; \n req . removeAttribute ( HeartbeatInterceptor . HEARTBEAT_FUTURE ) ;", "msg_token": "Wipe out dead connection whatever their status is"} {"diff": " public interface ReadablePartial { \n boolean isSupported ( DateTimeFieldType field ) ; \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 - DateTime toDateTime ( DateTimeZone zone ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove toDateTime Zone as it had unclear semantics"} {"diff": " public class ProfileState implements Cloneable { \n ret . lowerBound += deltaMin ; \n ret . upperBound += deltaMax ; \n \n - this . targetPatterns = null ; \n + ret . targetPatterns = null ; \n \n return ret ; \n }", "msg_token": "reset target patterns after propagation"} {"diff": " public abstract class Command { \n } \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + return getClass ( ) . getName ( ) + STRING0 + name + STRING1 ; \n + } \n } \n public final class PluginCommand extends Command implements PluginIdentifiableCo \n } \n return completions ; \n } \n + \n + @ override \n + public String toString ( ) { \n + StringBuilder stringBuilder = new StringBuilder ( super . toString ( ) ) ; \n + stringBuilder . deleteCharAt ( stringBuilder . length ( ) - NUMBER0 ) ; \n + stringBuilder . append ( STRING2 ) . append ( owningPlugin . getDescription ( ) . getFullName ( ) ) . append ( STRING1 ) ; \n + return stringBuilder . toString ( ) ; \n + } \n }", "msg_token": "Override toString method in Command"} {"diff": " public class JavacHandlerUtil { \n COMMENT \n COMMENT \n public static void deleteAnnotationIfNeccessary ( JavacNode annotation , Class < ? extends Annotation > annotationType ) { \n + if ( inNetbeansEditor ( annotation ) ) return ; \n if ( ! annotation . shouldDeleteLombokAnnotations ( ) ) return ; \n JavacNode parentNode = annotation . directUp ( ) ; \n switch ( parentNode . getKind ( ) ) { \n public class JavacHandlerUtil { \n } \n \n public static void deleteImportFromCompilationUnit ( JavacNode node , String name ) { \n + if ( inNetbeansEditor ( node ) ) return ; \n if ( ! node . shouldDeleteLombokAnnotations ( ) ) return ; \n ListBuffer < JCTree > newDefs = ListBuffer . lb ( ) ;", "msg_token": "Lombok not longer removes the feature annotations and the import declarations of said annotations when running in Netbeans"} {"diff": " public class PropertyAttributeParserTest \n { \n try \n { \n - parseAsValueModelAttribute ( illegalStaticResourceAttributeValue . value ) ; \n + parseAsStaticResourceAttribute ( illegalStaticResourceAttributeValue . value ) ; \n fail ( STRING0 ) ; \n } catch ( MalformedAttributeException e ) \n {", "msg_token": "corrected a misuse"} {"diff": " public class DynamicRequestMatcherFactory extends Dynamics implements RequestMat \n private Function < Map . Entry < String , Object > , RequestMatcher > toTargetMatcher ( final Method extractorMethod ) { \n return new Function < Map . Entry < String , Object > , RequestMatcher > ( ) { \n @ override \n - @ suppresswarnings ( STRING0 ) \n public RequestMatcher apply ( final Map . Entry < String , Object > pair ) { \n RequestExtractor extractor = createRequestExtractor ( extractorMethod , pair . getKey ( ) ) ; \n return createRequestMatcher ( extractor , pair . getValue ( ) ) ;", "msg_token": "removed unused unchecked warning in dynamic request matcher factory"} {"diff": " public class ONothingCompression extends OAbstractCompression { \n \n @ override \n public byte [ ] compress ( final byte [ ] content , final int offset , final int length ) { \n - byte [ ] result = new byte [ length - offset ] ; \n + byte [ ] result = new byte [ length ] ; \n System . arraycopy ( content , offset , result , NUMBER0 , length ) ; \n \n return result ; \n public class ONothingCompression extends OAbstractCompression { \n \n @ override \n public byte [ ] uncompress ( final byte [ ] content , final int offset , final int length ) { \n - byte [ ] result = new byte [ length - offset ] ; \n + byte [ ] result = new byte [ length ] ; \n System . arraycopy ( content , offset , result , NUMBER0 , length ) ; \n \n return result ;", "msg_token": "Fix nothing compression method"} {"diff": " public interface PsiElement extends UserDataHolder , Iconable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n boolean processDeclarations ( @ notnull PsiScopeProcessor processor , \n @ notnull ResolveState state ,", "msg_token": "Fixed typos in javadoc please check if it still makes the same sence"} {"diff": " public class SmsMessage extends SmsMessageBase { \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 private synchronized static int getNextMessageId ( ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - int msgId = SystemProperties . getInt ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , NUMBER0 ) ; \n - String nextMsgId = Integer . toString ( ( msgId + NUMBER1 ) & NUMBER2 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + int msgId = SystemProperties . getInt ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , NUMBER1 ) ; \n + String nextMsgId = Integer . toString ( ( msgId % NUMBER2 ) + NUMBER1 ) ; \n SystemProperties . set ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , nextMsgId ) ; \n if ( DBG_SMS ) { \n Log . d ( LOG_TAG , STRING0 + TelephonyProperties . PROPERTY_CDMA_MSG_ID + STRING1 + nextMsgId ) ;", "msg_token": "Avoid CDMA messages with IDs of zero"} {"diff": " public abstract class AuthenticationClient extends ClientMonitor { \n } else { \n result = true ; SINGLE \n } \n - if ( fingerId == NUMBER0 ) { \n + if ( ! authenticated ) { \n if ( receiver != null ) { \n FingerprintUtils . vibrateFingerprintError ( getContext ( ) ) ; \n } \n SINGLE \n - result |= handleFailedAttempt ( ) ; \n + boolean inLockoutMode = handleFailedAttempt ( ) ; \n + SINGLE \n + if ( inLockoutMode ) { \n + try { \n + Slog . w ( TAG , STRING0 ) ; \n + receiver . onError ( getHalDeviceId ( ) , \n + FingerprintManager . FINGERPRINT_ERROR_LOCKOUT ) ; \n + } catch ( RemoteException e ) { \n + Slog . w ( TAG , STRING1 , e ) ; \n + } \n + } \n + result |= inLockoutMode ; \n } else { \n if ( receiver != null ) { \n FingerprintUtils . vibrateFingerprintSuccess ( getContext ( ) ) ;", "msg_token": "Send FINGERPRINT_ERROR_LOCKOUT on some devices"} {"diff": " public class GoCompletionContributor extends CompletionContributor { \n private static Collection < String > suggestKeywords ( @ notnull PsiElement position ) { \n TextRange posRange = position . getTextRange ( ) ; \n GoFile posFile = ( GoFile ) position . getContainingFile ( ) ; \n - final TextRange range = new TextRange ( NUMBER0 , posRange . getStartOffset ( ) ) ; \n - final String text = range . isEmpty ( ) ? CompletionInitializationContext . DUMMY_IDENTIFIER : range . substring ( posFile . getText ( ) ) ; \n + TextRange range = new TextRange ( NUMBER0 , posRange . getStartOffset ( ) ) ; \n + String text = range . isEmpty ( ) ? CompletionInitializationContext . DUMMY_IDENTIFIER : range . substring ( posFile . getText ( ) ) ; \n \n PsiFile file = PsiFileFactory . getInstance ( posFile . getProject ( ) ) . createFileFromText ( STRING0 , GoLanguage . INSTANCE , text , true , false ) ; \n int completionOffset = posRange . getStartOffset ( ) - range . getStartOffset ( ) ;", "msg_token": "remove final modifiers"} {"diff": " public final class ScanSettings implements Parcelable { \n private int mScanResultType = SCAN_RESULT_TYPE_FULL ; \n private long mReportDelayMillis = NUMBER0 ; \n private int mMatchMode = MATCH_MODE_AGGRESSIVE ; \n - private int mNumOfMatchesPerFilter = MATCH_NUM_ONE_ADVERTISEMENT ; \n + private int mNumOfMatchesPerFilter = MATCH_NUM_MAX_ADVERTISEMENT ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "DO NOT MERGE Temp workaround to track max beacons"} {"diff": " public class HtmlUnitRequestBuilderTests { \n SINGLE \n \n @ test \n + @ suppresswarnings ( STRING0 ) \n public void buildRequestBasicAuth ( ) { \n String base64Credentials = STRING1 ; \n String authzHeaderValue = STRING2 + base64Credentials ;", "msg_token": "Suppress deprecation warning in HtmlUnitRequestBuilderTests"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PreferenceActivity extends SherlockPreferenceActivity { \n return true ; \n } \n \n + @ override \n + protected void onApplyThemeResource ( Theme theme , int resid , boolean first ) { \n + theme . applyStyle ( PodcastApp . getThemeResourceId ( ) , true ) ; \n + } \n + \n + \n + \n }", "msg_token": "PreferenceActivity now applies its theme correctly"} {"diff": " public class StatsActivity extends AppCompatActivity \n } \n \n @ suppresswarnings ( STRING0 ) \n - public void onEventMainThread ( StatsEvents . JetpackMissingError event ) { \n + public void onEventMainThread ( StatsEvents . JetpackStatsModuleNotConnectedError event ) { \n if ( isFinishing ( ) || ! mIsInFront ) { \n return ; \n }", "msg_token": "Use the correct event name"} {"diff": " public class ExecutionGraph implements ExecutionListener { \n SINGLE \n if ( ev . getEnvironment ( ) . getInvokable ( ) instanceof AbstractInputTask ) { \n try { \n - inputSplits = ( ( AbstractInputTask ) ev . getEnvironment ( ) . getInvokable ( ) ) . \n + inputSplits = ( ( AbstractInputTask < ? > ) ev . getEnvironment ( ) . getInvokable ( ) ) . \n computeInputSplits ( jobVertex . getNumberOfSubtasks ( ) ) ; \n } \n catch ( Exception e ) {", "msg_token": "Fixed warning in execution graph"} {"diff": " public class EditSession implements Extent { \n \n try { \n if ( expression . evaluate ( scaled . getX ( ) , scaled . getZ ( ) ) <= NUMBER0 ) { \n - return null ; \n + return null ; SINGLE \n } \n \n SINGLE \n public class GenerationCommands { \n \n @ command ( \n aliases = { STRING0 , STRING1 , STRING2 } , \n - usage = STRING3 , \n + usage = STRING4 , \n desc = STRING5 , \n help = \n STRING6 + \n STRING7 + \n - STRING8 + \n + STRING9 + \n STRING10 + \n STRING11 + \n STRING12 + \n public abstract class ArbitraryBiomeShape { \n \n if ( ! hollow ) { \n final BaseBiome material = getBiome ( x , z , baseBiome ) ; \n - if ( material != OUTSIDE ) { \n + if ( material != null && material != OUTSIDE ) { \n editSession . getWorld ( ) . setBiome ( position , material ) ; \n ++ affected ; \n }", "msg_token": "Fix NPE when genbiome expression was false"} {"diff": " public class BasicMap { \n } \n JavaSparkContext sc = new JavaSparkContext ( \n master , STRING0 , System . getenv ( STRING1 ) , System . getenv ( STRING2 ) ) ; \n - JavaRDD < Integer > rdd = sc . parallelize ( Arrays . asList ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ; \n + JavaRDD < Integer > rdd = sc . parallelize ( Arrays . asList ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ; \n JavaRDD < Integer > result = rdd . map ( \n - new Function < Integer , Integer > ( ) { public Integer call ( Integer x ) { return x * x ; } } ) ; \n + new Function < Integer , Integer > ( ) { public Integer call ( Integer x ) { return x * x ; } } ) ; \n System . out . println ( StringUtils . join ( result . collect ( ) , STRING3 ) ) ; \n } \n }", "msg_token": "Fix basicmap indentation"} {"diff": " import NAMESPACE ; \n public final class Utils { \n private static Random sRandom = new Random ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public static synchronized long getRandomNonNegativeLong ( ) { \n return Math . abs ( sRandom . nextLong ( ) ) ; \n }", "msg_token": "Add javadoc for utils"} {"diff": " public class BooksIntegrationTest { \n UrlResponse response = doMethod ( STRING0 , STRING1 , null ) ; \n assertNotNull ( response ) ; \n String body = response . body . trim ( ) ; \n - System . out . println ( STRING2 + body ) ; \n + \n assertNotNull ( body ) ; \n assertTrue ( Integer . valueOf ( body ) > NUMBER0 ) ; \n assertEquals ( NUMBER1 , response . status ) ;", "msg_token": "remove println in testListBooks"} {"diff": " public class DhcpStateMachine extends StateMachine { \n SINGLE \n SINGLE \n SINGLE \n - mAlarmManager . set ( AlarmManager . ELAPSED_REALTIME_WAKEUP , \n + mAlarmManager . setExact ( AlarmManager . ELAPSED_REALTIME_WAKEUP , \n SystemClock . elapsedRealtime ( ) + \n leaseDuration * NUMBER0 , SINGLE \n mDhcpRenewalIntent ) ; \n public class NetworkStatsServiceTest extends AndroidTestCase { \n mAlarmManager . remove ( isA ( PendingIntent . class ) ) ; \n expectLastCall ( ) . anyTimes ( ) ; \n \n - mAlarmManager . setInexactRepeating ( \n - eq ( AlarmManager . ELAPSED_REALTIME ) , anyLong ( ) , anyLong ( ) , isA ( PendingIntent . class ) ) ; \n + mAlarmManager . set ( eq ( AlarmManager . ELAPSED_REALTIME ) , anyLong ( ) , anyLong ( ) , isA ( PendingIntent . class ) , false ) ; \n expectLastCall ( ) . atLeastOnce ( ) ; \n \n mNetManager . setGlobalAlert ( anyLong ( ) ) ;", "msg_token": "Fix build preserve DHCP scheduling as is"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public interface NioSocketChannelConfig extends SocketChannelConfig { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public interface XnioChannelConfig extends ChannelConfig {", "msg_token": "Fixed APIviz errors"} {"diff": " public class RawDXF extends PGraphics { \n return false ; SINGLE \n } \n \n + \n + public boolean is2D ( ) { \n + return false ; \n + } \n + \n + \n + public boolean is3D ( ) { \n + return true ; \n + } \n + \n \n SINGLE", "msg_token": "Merging changes in dxf library"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ScenariosForSpringSecurity extends ExpressionTestCase { \n throws AccessException { \n } \n \n - public Class [ ] getSpecificTargetClasses ( ) { \n + public Class < ? > [ ] getSpecificTargetClasses ( ) { \n return null ; \n } \n \n public class ScenariosForSpringSecurity extends ExpressionTestCase { \n throws AccessException { \n } \n \n - public Class [ ] getSpecificTargetClasses ( ) { \n + public Class < ? > [ ] getSpecificTargetClasses ( ) { \n return null ; \n }", "msg_token": "Fixed generics warnings"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo \n protected String [ ] aaptExtraArgs ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected boolean aaptVerbose ;", "msg_token": "fixed plugin plugin annotation usage"} {"diff": " public final class SessionFactoryImpl implements SessionFactoryImplementor { \n identifierGenerators . put ( model . getEntityName ( ) , generator ) ; \n } ) ; \n \n - \n - SINGLE \n - this . namedQueryRepository = metadata . buildNamedQueryRepository ( this ) ; \n - \n - \n LOG . debug ( STRING0 ) ; \n \n this . metamodel = new MetamodelImpl ( this ) ; \n this . metamodel . initialize ( metadata , determineJpaMetaModelPopulationSetting ( properties ) ) ; \n \n + SINGLE \n + this . namedQueryRepository = metadata . buildNamedQueryRepository ( this ) ; \n + \n settings . getMultiTableBulkIdStrategy ( ) . prepare ( \n jdbcServices , \n buildLocalConnectionAccess ( ) ,", "msg_token": "Fix issue with getMetamodel called before its initialization"} {"diff": " public abstract class SquidDatabase { \n \n SINGLE \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final class DatabaseOpenHelperDelegate { \n \n private DatabaseOpenHelperDelegate ( ) { \n - SINGLE \n + SINGLE \n } \n \n COMMENT", "msg_token": "Add some comments to DatabaseOpenHelperDelegate"} {"diff": " public class JavaTypeHierarchyProvider implements HierarchyProvider { \n PsiElement element = file . findElementAt ( offset ) ; \n while ( element != null ) { \n if ( element instanceof PsiFile ) { \n - if ( ! ( element instanceof PsiJavaFile ) ) return null ; \n - final PsiClass [ ] classes = ( ( PsiJavaFile ) element ) . getClasses ( ) ; \n + if ( ! ( element instanceof PsiClassOwner ) ) return null ; \n + final PsiClass [ ] classes = ( ( PsiClassOwner ) element ) . getClasses ( ) ; \n return classes . length == NUMBER0 ? classes [ NUMBER1 ] : null ; \n } \n if ( element instanceof PsiClass && ! ( element instanceof PsiAnonymousClass ) ) {", "msg_token": "enable type hierarchy in groovy"} {"diff": " public class ImageLoader { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isCached ( String requestUrl , int maxWidth , int maxHeight ) { \n + throwIfNotOnMainThread ( ) ; \n + \n + String cacheKey = getCacheKey ( requestUrl , maxWidth , maxHeight ) ; \n + return mCache . getBitmap ( cacheKey ) != null ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "adding isCached function to ImageLoader"} {"diff": " public class MBeanFactory { \n this . container = container ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public String findObjectName ( String type ) { \n - \n - if ( type . equals ( STRING0 ) ) { \n - return STRING1 ; \n - } else if ( type . equals ( STRING2 ) ) { \n - return STRING3 ; \n - } else if ( type . equals ( STRING4 ) ) { \n - return STRING5 ; \n - } else { \n - return null ; \n - } \n - \n - } \n - \n \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class TypedProperties extends HashMap < String , Object > { \n public String getString ( String property ) { \n return getString ( property , STRING0 ) ; \n } \n + \n + SINGLE \n + public static final int STRING_TYPE_MISMATCH = - NUMBER0 ; \n + public static final int STRING_NOT_SET = - NUMBER1 ; \n + public static final int STRING_NULL = NUMBER2 ; \n + public static final int STRING_SET = NUMBER1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getStringInfo ( String property ) { \n + Object value = super . get ( property ) ; \n + if ( value == null ) { \n + return STRING_NOT_SET ; \n + } \n + if ( value == NULL_STRING ) { \n + return STRING_NULL ; \n + } else if ( value instanceof String ) { \n + return STRING_SET ; \n + } \n + return STRING_TYPE_MISMATCH ; \n + } \n }", "msg_token": "add getStringInfo to help deal with null strings"} {"diff": " public class PyProtectedMemberInspection extends PyInspection { \n } \n } \n final PyType type = myTypeEvalContext . getType ( qualifier ) ; \n - final String bundle_key = type instanceof PyModuleType ? STRING0 : STRING1 ; \n - registerProblem ( node , PyBundle . message ( bundle_key , name ) , new PyRenameElementQuickFix ( ) ) ; \n + final String bundleKey = type instanceof PyModuleType ? STRING0 : STRING1 ; \n + registerProblem ( node , PyBundle . message ( bundleKey , name ) , new PyRenameElementQuickFix ( ) ) ; \n } \n }", "msg_token": "fixed code style"} {"diff": " public class MediaCodecAudioTrackRenderer extends MediaCodecTrackRenderer implem \n protected boolean processOutputBuffer ( long positionUs , long elapsedRealtimeUs , MediaCodec codec , \n ByteBuffer buffer , MediaCodec . BufferInfo bufferInfo , int bufferIndex , boolean shouldSkip ) \n throws ExoPlaybackException { \n + if ( passthroughEnabled && ( bufferInfo . flags & MediaCodec . BUFFER_FLAG_CODEC_CONFIG ) != NUMBER0 ) { \n + SINGLE \n + codec . releaseOutputBuffer ( bufferIndex , false ) ; \n + return true ; \n + } \n + \n if ( shouldSkip ) { \n codec . releaseOutputBuffer ( bufferIndex , false ) ; \n codecCounters . skippedOutputBufferCount ++ ;", "msg_token": "Discard CSD buffers from the raw decoder in passthrough mode"} {"diff": " public class EpisodesFragment extends SherlockFragment { \n } \n } \n \n - if ( handled ) { \n - adapter . notifyDataSetChanged ( ) ; \n - } \n resetContextMenuSelection ( ) ; \n return handled ; \n }", "msg_token": "Fixed IndexOutOfBoundsException in EpisodesFragment"} {"diff": " public class GenericSortingTest extends Assert { \n @ test \n public void testMergeSort ( ) { \n String [ ] sd = { STRING0 , STRING1 , STRING1 , STRING2 , STRING3 } ; \n - String [ ] correct = { STRING3 , STRING1 , STRING1 , STRING2 , STRING0 } ; \n + String [ ] correct = { sd [ NUMBER0 ] , sd [ NUMBER1 ] , sd [ NUMBER2 ] , sd [ NUMBER3 ] , sd [ NUMBER4 ] } ; \n \n SomethingToSortStable sts = new SomethingToSortStable ( sd ) ; \n GenericSorting . mergeSort ( NUMBER4 , NUMBER5 , sts , sts ) ;", "msg_token": "Oops restore proper testing of stability"} {"diff": " public class StatsInsightsLatestPostSummaryFragment extends StatsAbstractInsight \n if ( event . mEndPointName != StatsService . StatsEndpointsEnum . INSIGHTS_LATEST_POST_VIEWS ) { \n super . onEventMainThread ( event ) ; \n } else { \n - SINGLE \n - if ( isDataEmpty ( NUMBER0 ) || ! ( mDatamodels [ NUMBER0 ] instanceof InsightsLatestPostModel ) ) { \n - showErrorUI ( null ) ; \n - return ; \n - } \n \n + SINGLE \n if ( event . mResponseObjectModel instanceof VolleyError || \n event . mResponseObjectModel instanceof StatsError ) { \n showErrorUI ( event . mResponseObjectModel ) ; \n return ; \n } \n \n + SINGLE \n + if ( isDataEmpty ( NUMBER0 ) || ! ( mDatamodels [ NUMBER0 ] instanceof InsightsLatestPostModel ) ) { \n + showErrorUI ( null ) ; \n + return ; \n + } \n + \n if ( event . mResponseObjectModel == null || \n ! ( event . mResponseObjectModel instanceof Integer ) ) { \n showErrorUI ( null ) ;", "msg_token": "check the current REST response before going deeper into UI updating"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class AbstractCollinsHeadFinder implements HeadFinder COMMENT , CopulaHeadFinder { \n \n - private static final boolean DEBUG = false ; \n + private static final boolean DEBUG = System . getProperty ( STRING0 , null ) != null ; \n protected final TreebankLanguagePack tlp ; \n protected Map < String , String [ ] [ ] > nonTerminalInfo ;", "msg_token": "Add a debug flag for AbstractCollinsHeadFinder"} {"diff": " public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC \n public void afterTextChanged ( Editable s ) { \n String newQueryText = s . toString ( ) ; \n updateClearButtonAndHint ( ) ; \n - updateClearButtonVisibility ( newQueryText . length ( ) > NUMBER0 ) ; \n + updateClearButtonVisibility ( true ) ; \n updateTabbarVisibility ( newQueryText . length ( ) == NUMBER0 ) ; \n if ( ! searchQuery . equalsIgnoreCase ( newQueryText ) ) { \n searchQuery = newQueryText ; \n public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC \n new LatLon ( centerLatLon . getLatitude ( ) , centerLatLon . getLongitude ( ) ) ) ; \n searchUICore . updateSettings ( ss ) ; \n updateClearButtonAndHint ( ) ; \n + updateClearButtonVisibility ( true ) ; \n } \n updateToolbarButton ( ) ; \n } \n public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC \n \n updateToolbarButton ( ) ; \n updateClearButtonAndHint ( ) ; \n - updateClearButtonVisibility ( searchQuery . length ( ) > NUMBER0 ) ; \n + updateClearButtonVisibility ( true ) ; \n addMainSearchFragment ( ) ; \n \n searchEditText . requestFocus ( ) ;", "msg_token": "Quick search fix my location button"} {"diff": " public class StompProtocolHandler implements SubProtocolHandler { \n \n Set < String > acceptVersions = connectHeaders . getAcceptVersion ( ) ; \n if ( acceptVersions . contains ( STRING0 ) ) { \n - connectedHeaders . setAcceptVersion ( STRING0 ) ; \n + connectedHeaders . setVersion ( STRING0 ) ; \n } \n else if ( acceptVersions . contains ( STRING1 ) ) { \n - connectedHeaders . setAcceptVersion ( STRING1 ) ; \n + connectedHeaders . setVersion ( STRING1 ) ; \n } \n else if ( acceptVersions . isEmpty ( ) ) { \n SINGLE", "msg_token": "Use correct header for version in CONNECTED frame"} {"diff": " public class JBTabsImpl extends JComponent \n \n final ShapeInfo shapeInfo = computeSelectedLabelShape ( ) ; \n if ( ! isHideTabs ( ) ) { \n - g2d . setColor ( getBackground ( ) ) ; \n + SINGLE \n + g2d . setColor ( Color . green ) ; \n g2d . fill ( shapeInfo . fillPath . getShape ( ) ) ; \n }", "msg_token": "continue skin for editor tabLabel"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BasicDataManager extends Poller implements DataManager { \n @ override \n protected void poll ( ) throws Exception { \n logger . info ( dbName + STRING0 ) ; \n - for ( DateTime key : fileCache . keySet ( ) ) { \n + for ( DateTime key : Sets . newHashSet ( fileCache . keySet ( ) ) ) { \n File file = fileCache . get ( key ) ; \n try { \n logger . info ( STRING1 + file ) ; \n public class BasicDataManager extends Poller implements DataManager { \n if ( downloaded ) { \n ReadOnlyData newData = loadDataFromFile ( file ) ; \n data . put ( key , newData ) ; \n + fileCache . put ( key , file ) ; \n } \n } \n catch ( Exception e ) {", "msg_token": "fix the file cache issue"} {"diff": " public class BuildCheckpoints { \n CheckpointManager manager = new CheckpointManager ( PARAMS , new FileInputStream ( CHECKPOINTS_FILE ) ) ; \n checkState ( manager . numCheckpoints ( ) == checkpoints . size ( ) ) ; \n \n - if ( PARAMS . getId ( ) == NetworkParameters . ID_MAINNET ) { \n + if ( PARAMS . getId ( ) . equals ( NetworkParameters . ID_MAINNET ) ) { \n StoredBlock test = manager . getCheckpointBefore ( NUMBER0 ) ; SINGLE \n checkState ( test . getHeight ( ) == NUMBER1 ) ; \n checkState ( test . getHeader ( ) . getHashAsString ( ) \n . equals ( STRING0 ) ) ; \n - } else if ( PARAMS . getId ( ) == NetworkParameters . ID_TESTNET ) { \n + } else if ( PARAMS . getId ( ) . equals ( NetworkParameters . ID_TESTNET ) ) { \n StoredBlock test = manager . getCheckpointBefore ( NUMBER0 ) ; SINGLE \n checkState ( test . getHeight ( ) == NUMBER2 ) ; \n checkState ( test . getHeader ( ) . getHashAsString ( )", "msg_token": "compare strings correctly"} {"diff": " public class YoutubeSearchEngineTest extends AndroidTestCase { \n SearchEngine engine = ServiceList . getService ( STRING0 ) \n . getSearchEngineInstance ( new Downloader ( ) ) ; \n \n - result = engine . search ( STRING1 , \n + result = engine . search ( STRING2 , \n NUMBER0 , STRING3 , new Downloader ( ) ) . getSearchResult ( ) ; \n suggestionReply = engine . suggestionList ( STRING4 , STRING3 , new Downloader ( ) ) ; \n }", "msg_token": "change test search term to avoid google ads"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class AvoidStarImport \n + public class AvoidStarImportCheck \n extends AbstractImportCheck \n { \n COMMENT \n public class AvoidStarImportTest \n throws Exception \n { \n final DefaultConfiguration checkConfig = \n - createCheckConfig ( AvoidStarImport . class ) ; \n + createCheckConfig ( AvoidStarImportCheck . class ) ; \n final String [ ] expected = { \n STRING0 , \n STRING1 ,", "msg_token": "renamed class from AvoidStarImport to AvoidStarImportCheck"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class JmxTest \n {", "msg_token": "Fixed a compilation error due to management JXM moving around"} {"diff": " public class SmartTabLayout extends HorizontalScrollView { \n \n SINGLE \n setHorizontalScrollBarEnabled ( false ) ; \n - SINGLE \n - setFillViewport ( true ) ; \n \n final DisplayMetrics dm = getResources ( ) . getDisplayMetrics ( ) ; \n final float density = dm . density ;", "msg_token": "Delete unnecessary code"} {"diff": " public class PublishRiverClusterStateAction extends AbstractComponent { \n SINGLE \n SINGLE \n \n - if ( node . clientNode ( ) ) { \n - continue ; \n - } \n - \n if ( ! node . masterNode ( ) && ! RiverNodeHelper . isRiverNode ( node ) ) { \n continue ; \n } \n import NAMESPACE ; \n public class RiverNodeHelper { \n \n public static boolean isRiverNode ( DiscoveryNode node ) { \n + SINGLE \n if ( node . clientNode ( ) ) { \n return false ; \n }", "msg_token": "remove checking for client node on rivers its automatically done with master and non river node anyhow"} {"diff": " import NAMESPACE ; \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 public final class MultiMount {", "msg_token": "Updating the example"} {"diff": " public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { \n return originalCallable ; \n } \n return new Callable < TestResults > ( ) { \n + @ override \n public TestResults call ( ) throws Exception { \n TestResults originalTestResults = originalCallable . call ( ) ; \n ImmutableList < TestCaseSummary > cachedTestResults = FluentIterable", "msg_token": "Add missing Override annotation"} {"diff": " public class Accounts extends K9ListActivity implements OnItemClickListener { \n \n class AccountsHandler extends Handler { \n private void setViewTitle ( ) { \n - mActionBarTitle . setText ( STRING0 + getString ( R . string . accounts_title ) ) ; \n + mActionBarTitle . setText ( getString ( R . string . accounts_title ) ) ; \n \n if ( mUnreadMessageCount == NUMBER0 ) { \n mActionBarUnread . setVisibility ( View . GONE ) ;", "msg_token": "Remove leading space in action bar title of Accounts activity"} {"diff": " public class ZWaveSwitchAllCommandClass extends ZWaveCommandClass { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getMode ( ) { \n + return mode ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add getNote method"} {"diff": " public class EC2Configuration { \n private String secretKey ; \n @ uriparam \n private String amazonEc2Endpoint ; \n - @ uriparam ( label = STRING0 ) \n + @ uriparam ( label = STRING0 , enums = STRING1 \n + + STRING2 ) \n @ metadata ( required = STRING3 ) \n private EC2Operations operation ; \n @ uriparam", "msg_token": "Added enumeration for the possible operations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class DGLM { \n } \n public static GLMModel buildModel ( Job job , Key resKey , DataFrame data , LSMSolver lsm , GLMParams params , \n double [ ] oldBeta , int xval , boolean parallel ) throws JobCancelledException { \n + Log . info ( STRING0 + data . _ary . _key + STRING1 + data . expandedSz ( ) + STRING2 + ( data . expandedSz ( ) - data . _dense ) + STRING3 ) ; \n GLMModel currentModel = null ; \n ArrayList < String > warns = new ArrayList < String > ( ) ; \n long t1 = System . currentTimeMillis ( ) ;", "msg_token": "Added log print for glm to print out the total number of predictors and how many of them are categoricals"} {"diff": " public class GsmAlphabet { \n COMMENT \n COMMENT \n COMMENT \n - static synchronized void setEnabledSingleShiftTables ( int [ ] tables ) { \n + public static synchronized void setEnabledSingleShiftTables ( int [ ] tables ) { \n sEnabledSingleShiftTables = tables ; \n sDisableCountryEncodingCheck = true ; \n \n public class GsmAlphabet { \n COMMENT \n COMMENT \n COMMENT \n - static synchronized void setEnabledLockingShiftTables ( int [ ] tables ) { \n + public static synchronized void setEnabledLockingShiftTables ( int [ ] tables ) { \n sEnabledLockingShiftTables = tables ; \n sDisableCountryEncodingCheck = true ; \n } \n public class GsmAlphabet { \n COMMENT \n COMMENT \n COMMENT \n - static synchronized int [ ] getEnabledSingleShiftTables ( ) { \n + public static synchronized int [ ] getEnabledSingleShiftTables ( ) { \n return sEnabledSingleShiftTables ; \n } \n \n public class GsmAlphabet { \n COMMENT \n COMMENT \n COMMENT \n - static synchronized int [ ] getEnabledLockingShiftTables ( ) { \n + public static synchronized int [ ] getEnabledLockingShiftTables ( ) { \n return sEnabledLockingShiftTables ; \n }", "msg_token": "Make some static functions public so telephony tests can access them"} {"diff": " public class OCommandExecutorSQLCreateIndex extends OCommandExecutorSQLAbstract \n if ( pos == - NUMBER0 ) \n throw new OCommandSQLParsingException ( STRING0 + getSyntax ( ) , parserText , oldPos ) ; \n \n - indexName = word . toString ( ) ; \n + indexName = decodeClassName ( word . toString ( ) ) ; \n \n oldPos = pos ; \n pos = nextWord ( parserText , parserTextUpperCase , oldPos , word , true ) ;", "msg_token": "Fix index creation when using TinkerPop createKeyIndex"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n || Intent . ACTION_MEDIA_SCANNER_SCAN_FILE . equals ( action ) \n || Intent . ACTION_GET_PERMISSIONS_COUNT . equals ( action ) \n || Intent . ACTION_GET_PERMISSIONS_PACKAGES . equals ( action ) \n + || Intent . ACTION_SHOW_KEYBOARD_SHORTCUTS . equals ( action ) \n || AppWidgetManager . ACTION_APPWIDGET_CONFIGURE . equals ( action ) \n || AppWidgetManager . ACTION_APPWIDGET_UPDATE . equals ( action ) \n || LocationManager . HIGH_POWER_REQUEST_CHANGE_ACTION . equals ( action ) ) {", "msg_token": "Fix silent errors when launching Keyboard Shortcuts from Settings"} {"diff": " public class ExpectedTypeUtil { \n if ( acc . isEmpty ( ) ) { \n return ExpectedTypeInfo . EMPTY_ARRAY ; \n } \n - result = acc ; \n + result = new ExpectedTypeInfos ( acc . toArray ( ) ) ; \n } \n \n return result . toArray ( ) ;", "msg_token": "suggest more accurate type"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter { \n \n - protected ByteBuf cumulation ; \n + ByteBuf cumulation ; \n private boolean singleDecode ; \n private boolean decodeWasNull ;", "msg_token": "Make the cumulation field in ByteToMessageDecoder package private to hide it"} {"diff": " public class EvictionTest extends HazelcastTestSupport { \n } \n } \n \n + SINGLE \n @ test \n + @ category ( ProblematicTest . class ) \n public void testEvictionSpeedTestPerPartition ( ) { \n final int k = NUMBER0 ; \n final int size = NUMBER1 ; \n public class NearCacheTest extends HazelcastTestSupport { \n } \n \n @ test \n + @ category ( ProblematicTest . class ) \n public void testNearCacheEvictionByUsingMapTTLEviction ( ) throws InterruptedException { \n final Config cfg = new Config ( ) ; \n final String mapName = STRING0 ;", "msg_token": "Moved spurious failing and badly written test to the ProblematicSection"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n } \n \n private void writePackets ( ) { \n + Exception writerException = null ; \n try { \n openStream ( ) ; \n initalOpenStreamSend . reportSuccess ( ) ; \n public class XMPPTCPConnection extends AbstractXMPPConnection { \n SINGLE \n SINGLE \n if ( ! ( done ( ) || queue . isShutdown ( ) ) ) { \n - notifyConnectionError ( e ) ; \n + writerException = e ; \n } else { \n LOGGER . log ( Level . FINE , STRING0 , e ) ; \n } \n public class XMPPTCPConnection extends AbstractXMPPConnection { \n LOGGER . fine ( STRING1 ) ; \n shutdownDone . reportSuccess ( ) ; \n } \n + SINGLE \n + if ( writerException != null ) { \n + notifyConnectionError ( writerException ) ; \n + } \n } \n \n private void drainWriterQueueToUnacknowledgedStanzas ( ) {", "msg_token": "Delay notifyConnectionError in writer shutdown"} {"diff": " public class LineChartRenderer extends DataRenderer { \n prevDx = ( next . getXIndex ( ) - cur . getXIndex ( ) ) * intensity ; \n prevDy = ( next . getVal ( ) - cur . getVal ( ) ) * intensity ; \n \n - cur = entries . get ( NUMBER0 ) ; \n - next = entries . get ( ( entries . size ( ) > NUMBER1 ) ? NUMBER1 : NUMBER0 ) ; \n + cur = entries . get ( minx + NUMBER0 ) ; \n + next = entries . get ( minx + ( size - minx > NUMBER1 ? NUMBER1 : NUMBER0 ) ) ; \n curDx = ( next . getXIndex ( ) - prev . getXIndex ( ) ) * intensity ; \n curDy = ( next . getVal ( ) - prev . getVal ( ) ) * intensity ;", "msg_token": "Consider viewport for second point in cubic line"} {"diff": " public class WikipediaQuickCheck { \n SINGLE \n private static final List < String > disabledRuleIds = Arrays . asList ( STRING0 , STRING1 , \n STRING2 , STRING3 , STRING4 , \n - STRING5 , STRING6 , STRING7 , STRING8 ) ; \n + STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ) ; \n \n public List < String > getDisabledRuleIds ( ) { \n return disabledRuleIds ;", "msg_token": "de wikipedia disable another rule"} {"diff": " public class SlidingMenuFragment extends ListFragment { \n mAdapter = new MenuAdapter ( getActivity ( ) ) ; \n mAdapter . add ( new MenuItem ( getString ( R . string . shows ) , R . drawable . ic_launcher , \n MENU_ITEM_SHOWS_ID ) ) ; \n - mAdapter . add ( new MenuItem ( getString ( R . string . lists ) , R . drawable . ic_action_list , \n - MENU_ITEM_LISTS_ID ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n mAdapter . add ( new MenuItem ( getString ( R . string . checkin ) , R . drawable . ic_action_checkin , \n MENU_ITEM_CHECKIN_ID ) ) ; \n mAdapter . add ( new MenuItem ( getString ( R . string . activity ) , R . drawable . ic_action_upcoming ,", "msg_token": "Don t display lists menu item for now"} {"diff": " public class QueryOperation extends AbstractMapOperation { \n . getLocalMapStatsProvider ( ) . getLocalMapStatsImpl ( name ) . incrementOtherOperations ( ) ; \n } \n \n - if ( partitionStateVersion != partitionService . getPartitionStateVersion ( ) ) { \n + checkPartitionStateChanges ( partitionService , partitionStateVersion ) ; \n + } \n + \n + private void checkPartitionStateChanges ( InternalPartitionService partitionService , int partitionStateVersion ) { \n + if ( partitionStateVersion != partitionService . getPartitionStateVersion ( ) ) { \n getLogger ( ) . info ( STRING0 + predicate ) ; \n } \n } \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class IterableUtil { \n \n + private IterableUtil ( ) { \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding javadoc extracting method check style fixes"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class FileHandle { \n + \n + protected FileHandle ( ) { \n + } \n + \n + public FileHandle ( String fileName ) { \n + } \n + \n + public FileHandle ( File file ) { \n + } \n + \n + protected FileHandle ( String fileName , FileType type ) { \n + } \n + \n + protected FileHandle ( File file , FileType type ) { \n + } \n + \n public String path ( ) { \n throw new GdxRuntimeException ( STRING0 ) ; \n }", "msg_token": "Emulate missing constructors"} {"diff": " public class ShadowConnectivityManager { \n \n private Map < Integer , NetworkInfo > networkTypeToNetworkInfo = new HashMap < Integer , NetworkInfo > ( ) ; \n \n - public void __constructor__ ( ) { \n + public ShadowConnectivityManager ( ) { \n setActiveNetworkInfo ( ShadowNetworkInfo . newInstance ( ) ) ; \n }", "msg_token": "Fix ShadowConnectivityManager constructor"} {"diff": " import NAMESPACE ; \n public interface Transport { \n \n public void initialize ( Map < String , String > config ) throws TransportConfigurationException ; \n + public Map < String , String > getRequestedConfiguration ( ) ; \n public void transportAlarm ( Alarm alarm ) ; \n public String getName ( ) ;", "msg_token": "requested configuration for transports"} {"diff": " public class CopyClassesHandler implements CopyHandlerDelegate { \n private static PsiClass [ ] getTopLevelClasses ( PsiElement element ) { \n while ( true ) { \n if ( element == null || element instanceof PsiFile ) break ; \n - if ( element instanceof PsiClass && ( ( ( PsiClass ) element ) . getContainingClass ( ) == null ) ) break ; \n - element = element . getContext ( ) ; \n + if ( element instanceof PsiClass && element . getParent ( ) != null && ( ( ( PsiClass ) element ) . getContainingClass ( ) == null ) ) break ; \n + element = element . getParent ( ) ; \n } \n if ( element instanceof PsiClassOwner ) { \n PsiClass [ ] classes = ( ( PsiClassOwner ) element ) . getClasses ( ) ;", "msg_token": "CopyClassHandler don t copy classes in Groovy scripts GroovyCopyClassTest fixed"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface MethodTransformer {", "msg_token": "Added additional information to javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class StatsTests extends AbstractNumericTestCase { \n Stats s1 = client ( ) . prepareSearch ( STRING0 ) \n . addAggregation ( stats ( STRING1 ) . field ( STRING2 ) ) . get ( ) \n . getAggregations ( ) . get ( STRING1 ) ; \n - ExtendedStats s2 = client ( ) . prepareSearch ( STRING0 , STRING3 ) \n + Stats s2 = client ( ) . prepareSearch ( STRING0 , STRING3 ) \n . addAggregation ( stats ( STRING1 ) . field ( STRING2 ) ) . get ( ) \n . getAggregations ( ) . get ( STRING1 ) ; \n assertEquals ( s1 . getAvg ( ) , s2 . getAvg ( ) , FLOAT0 ) ;", "msg_token": "Fix test bug"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n public class JSONException extends RuntimeException { \n + COMMENT \n private static final long serialVersionUID = NUMBER0 ; \n \n COMMENT \n public class JSONException extends RuntimeException { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public JSONException ( String message , Throwable cause ) { \n + super ( message , cause ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allows a custom message to be passed with a cause"} {"diff": " import NAMESPACE ; \n public class Log { \n \n private static Logger logger ; \n - private static Level level ; \n + private static Level level = Level . VERBOSE ; \n \n private static Logger getInstance ( ) { \n if ( logger == null ) {", "msg_token": "Fix silly error"} {"diff": " public class XValPredictionsCheck extends TestUtil { \n m . delete ( ) ; \n m . deleteCrossValidationModels ( ) ; \n Key [ ] xvalKeys = m . _output . _cross_validation_predictions ; \n + Key xvalKey = m . _output . _cross_validation_holdout_predictions_frame_id ; \n final int [ ] id = new int [ NUMBER0 ] ; \n for ( Key k : xvalKeys ) { \n Frame preds = DKV . getGet ( k ) ; \n public class XValPredictionsCheck extends TestUtil { \n id [ NUMBER1 ] ++ ; \n preds . delete ( ) ; \n } \n + xvalKey . remove ( ) ; \n } \n }", "msg_token": "Fix memory leak"} {"diff": " public class ExceptionMapper { \n SINGLE \n if ( ! this . exceptionMap . containsKey ( exceptionClass ) ) { \n \n - Class superclass = exceptionClass . getSuperclass ( ) ; \n + Class < ? > superclass = exceptionClass . getSuperclass ( ) ; \n do { \n SINGLE \n if ( this . exceptionMap . containsKey ( superclass ) ) {", "msg_token": "added generic arguments to remove IDE warnings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final class JournalTailer { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n \n public final class JournalTailer { \n public void processJournalCheckpoint ( boolean applyToMaster ) throws IOException { \n SINGLE \n LOG . info ( STRING0 + mJournal . getCheckpointFilePath ( ) ) ; \n + SINGLE \n + SINGLE \n + JournalInputStream is = mReader . getCheckpointInputStream ( ) ; \n + \n if ( applyToMaster ) { \n - SINGLE \n - JournalInputStream is = mReader . getCheckpointInputStream ( ) ; \n + SINGLE \n mMaster . processJournalCheckpoint ( is ) ; \n } \n + is . close ( ) ; \n } \n \n COMMENT", "msg_token": "Improve comments in JournalTailer"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class JaxRsResponse extends Response \n {", "msg_token": "Removing unused imports in a moment of boredom"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix missing import"} {"diff": " public class CollectionTransactionRollbackOperation extends CollectionOperation \n } \n \n @ override \n + public boolean returnsResponse ( ) { \n + return false ; \n + } \n + \n + @ override \n protected void writeInternal ( ObjectDataOutput out ) throws IOException { \n super . writeInternal ( out ) ; \n out . writeUTF ( transactionId ) ;", "msg_token": "CollectionTransactionRollbackOperation should not return response"} {"diff": " public class StreetSegment { \n public TraverseMode mode ; \n public int time ; \n public EncodedPolylineBean geometry ; \n - public List < WalkStep > walkSteps ; \n + public List < WalkStep > walkSteps = Lists . newArrayList ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Fix NPE from uninitialized walkSteps var"} {"diff": " public class QualifiedModeSetSequence { \n for ( QualifiedMode qMode : qModes ) { \n req . modes . setMode ( qMode . mode , true ) ; \n } \n + \n SINGLE \n + SINGLE \n SINGLE \n + \n for ( QualifiedMode qMode : qModes ) { \n if ( qMode . mode == TraverseMode . BICYCLE ) { \n if ( qMode . qualifiers . contains ( Qualifier . RENT ) ) { \n public class StateData implements Cloneable { \n nonTransitMode = TraverseMode . CAR ; \n else if ( modes . getCustomMotorVehicle ( ) ) \n nonTransitMode = TraverseMode . CUSTOM_MOTOR_VEHICLE ; \n - else if ( modes . getWalk ( ) ) \n - nonTransitMode = TraverseMode . WALK ; \n else if ( modes . getBicycle ( ) ) \n nonTransitMode = TraverseMode . BICYCLE ; \n + else if ( modes . getWalk ( ) ) \n + nonTransitMode = TraverseMode . WALK ; \n else \n nonTransitMode = null ; \n }", "msg_token": "add comment set nontransit mode using a less arbitrary order of precendence"} {"diff": " class WebViewFactory { \n SINGLE \n private static final String DEFAULT_WEBVIEW_FACTORY = STRING0 ; \n private static final String CHROMIUM_WEBVIEW_FACTORY = \n - STRING1 ; \n + STRING2 ; \n private static final String CHROMIUM_WEBVIEW_JAR = STRING3 ; \n \n private static final String LOGTAG = STRING4 ;", "msg_token": "Rename Chromium powered WebView package"} {"diff": " public interface LivingEntity extends Entity { \n COMMENT \n COMMENT \n public Vehicle getVehicle ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getRemainingAir ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setRemainingAir ( int ticks ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getMaximumAir ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setMaximumAir ( int ticks ) ; \n }", "msg_token": "Added getRemainingAir setRemainingAir getMaximumAir setMaximumAir on LivingEntity"} {"diff": " public abstract class ListAdapterWithProgress < T > extends BaseAdapter { \n return isLoadingData && position == data . size ( ) ; \n } \n \n - public List < T > getData ( ) { \n + public ArrayList < T > getData ( ) { \n return data ; \n }", "msg_token": "explicitly return an ArrayList so that one doesn t have to cast it when putting it in a Bundle"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class LocalChannel extends AbstractChannel { \n - SINGLE \n private final ThreadLocal < Boolean > delivering = new ThreadLocal < Boolean > ( ) { \n @ override \n protected Boolean initialValue ( ) {", "msg_token": "Removed unused line"} {"diff": " public class LocalTachyonCluster { \n private TachyonMaster mMaster = null ; \n \n private TachyonWorker mWorker = null ; \n - SINGLE \n - SINGLE \n \n private long mWorkerCapacityBytes ; \n private String mTachyonHome ; \n public class LocalTachyonCluster { \n \n private List < TachyonFS > mClients = new ArrayList < TachyonFS > ( ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n public LocalTachyonCluster ( long workerCapacityBytes ) { \n - SINGLE \n - SINGLE \n mWorkerCapacityBytes = workerCapacityBytes ; \n }", "msg_token": "removed dead code"} {"diff": " public class VcsContextFactoryImpl implements VcsContextFactory { \n \n @ override \n @ notnull \n - public FilePath createFilePathOn ( @ notnull final File file ) { \n - VirtualFile vf = LocalFileSystem . getInstance ( ) . findFileByIoFile ( file ) ; \n - return vf != null ? createFilePathOn ( vf ) : createFilePath ( file . getPath ( ) , file . isDirectory ( ) ) ; \n + public FilePath createFilePathOn ( @ notnull File file ) { \n + String path = file . getPath ( ) ; \n + VirtualFile vf = LocalFileSystem . getInstance ( ) . findFileByPath ( path ) ; \n + return createFilePath ( path , vf != null ? vf . isDirectory ( ) : file . isDirectory ( ) ) ; \n } \n \n @ override", "msg_token": "use the given path and detect only isDirectory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DeepLearningVsNeuralNet extends TestUtil { \n } \n } \n \n - SINGLE \n + @ ignore \n + @ test \n public void compare ( ) throws Exception { \n final long seed = NUMBER0 ; \n Random rng = new Random ( seed ) ;", "msg_token": "Ignore DLvsNN Junit test properly"} {"diff": " public abstract class DependencyResolver { \n } else { \n attributes = new ArrayList < > ( ) ; \n attributes . addAll ( rule . getRuleClassObject ( ) . getAttributes ( ) ) ; \n - if ( aspect != null ) { \n - attributes . addAll ( aspect . getAttributes ( ) . values ( ) ) ; \n - } \n + attributes . addAll ( aspect . getAttributes ( ) . values ( ) ) ; \n } \n \n ImmutableSortedKeyListMultimap . Builder < Attribute , LabelAndConfiguration > result =", "msg_token": "Remove extraneous check in DependencyResolver"} {"diff": " public class ShadowActivityManager { \n \n private String backgroundPackage ; \n private ActivityManager . MemoryInfo memoryInfo ; \n + private int memoryClass ; \n \n @ implementation \n public List < ActivityManager . RunningTaskInfo > getRunningTasks ( int maxNum ) { \n public class ShadowActivityManager { \n this . memoryInfo = memoryInfo ; \n } \n \n + @ implementation \n + public int getMemoryClass ( ) { \n + return memoryClass ; \n + } \n + \n + public void setMemoryClass ( int memoryClass ) { \n + this . memoryClass = memoryClass ; \n + } \n + \n @ implements ( ActivityManager . MemoryInfo . class ) \n public static class ShadowMemoryInfo { \n public boolean lowMemory ;", "msg_token": "add ActivityManager getMemoryClass"} {"diff": " public class PsiClassUtil { \n public static boolean isRunnableClass ( final PsiClass aClass , final boolean mustBePublic , boolean mustNotBeAbstract ) { \n if ( aClass instanceof PsiAnonymousClass ) return false ; \n if ( aClass . isInterface ( ) ) return false ; \n - if ( mustBePublic && ! aClass . hasModifierProperty ( PsiModifier . PUBLIC ) ) return false ; \n + if ( mustBePublic && ! aClass . hasModifierProperty ( PsiModifier . PUBLIC ) ) { \n + if ( mustNotBeAbstract || ! aClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) { \n + return false ; \n + } \n + } \n if ( aClass . hasModifierProperty ( PsiModifier . PRIVATE ) ) return false ; \n if ( mustNotBeAbstract && aClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return false ; \n return aClass . getContainingClass ( ) == null || aClass . hasModifierProperty ( PsiModifier . STATIC ) ;", "msg_token": "don t check public modifier for abstract classes cause inheritors would be checked for actual runnable"} {"diff": " public final class ActFmSyncService { \n return ; \n \n try { \n - JSONObject result = actFmInvoker . invoke ( STRING0 , STRING1 , tagData . getValue ( TagData . REMOTE_ID ) ) ; \n + JSONObject result = actFmInvoker . invoke ( STRING0 , STRING1 , tagData . getValue ( TagData . REMOTE_ID ) , STRING2 , token ) ; \n JSONArray ordering = result . optJSONArray ( STRING3 ) ; \n if ( ordering == null ) \n return ;", "msg_token": "Fetching list order requires token"} {"diff": " public class WebView extends AbsoluteLayout \n nativeHideCursor ( ) ; \n } \n \n + if ( keyCode == KeyEvent . KEYCODE_PAGE_UP ) { \n + pageUp ( false ) ; \n + return true ; \n + } \n + \n + if ( keyCode == KeyEvent . KEYCODE_PAGE_DOWN ) { \n + pageDown ( false ) ; \n + return true ; \n + } \n + \n if ( keyCode >= KeyEvent . KEYCODE_DPAD_UP \n && keyCode <= KeyEvent . KEYCODE_DPAD_RIGHT ) { \n SINGLE", "msg_token": "Add PageUp and PageDown hot keys"} {"diff": " public class TexturePacker { \n } \n } \n } \n - System . out . println ( width + STRING0 + height ) ; \n if ( width == maxWidth && height == maxHeight ) break ; \n if ( bestComparator != null ) break ; \n if ( settings . pot ) {", "msg_token": "removed A sysout in TexturePacker"} {"diff": " public abstract class GraphGeneratorSupport { \n this . dir = dir ; \n } \n \n + public String getImagePrefix ( ) { \n + return imagePrefix ; \n + } \n + \n + public void setImagePrefix ( String imagePrefix ) { \n + this . imagePrefix = imagePrefix ; \n + } \n + \n public String getRoutesText ( CamelContext context ) throws IOException { \n List < RouteDefinition > routes = context . getRouteDefinitions ( ) ; \n routeGroupMap = createRouteGroupMap ( routes ) ;", "msg_token": "allow the image URI to be changed"} {"diff": " public class AnimatedSprite extends TiledSprite implements TimeConstants { \n } \n \n public void animate ( final long pFrameDurationEach , final int pLoopCount , final IAnimationListener pAnimationListener ) { \n - final long [ ] frameDurations = new long [ this . getTextureRegion ( ) . getTileCount ( ) - NUMBER0 ] ; \n + final long [ ] frameDurations = new long [ this . getTextureRegion ( ) . getTileCount ( ) ] ; \n Arrays . fill ( frameDurations , pFrameDurationEach ) ; \n this . animate ( frameDurations , pLoopCount , pAnimationListener ) ; \n }", "msg_token": "Fixed little index bug animating one frame less than it should when using the simpel constructors"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub \n private static final int EVENT_APPLY_GLOBAL_HTTP_PROXY = NUMBER0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - private static final int EVENT_SEND_STICKY_BROADCAST_INTENT = NUMBER1 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n private static final int EVENT_PROXY_HAS_CHANGED = NUMBER2 ; \n public class ConnectivityService extends IConnectivityManager . Stub \n handleDeprecatedGlobalHttpProxy ( ) ; \n break ; \n } \n - case EVENT_SEND_STICKY_BROADCAST_INTENT : { \n - Intent intent = ( Intent ) msg . obj ; \n - sendStickyBroadcast ( intent ) ; \n - break ; \n - } \n case EVENT_PROXY_HAS_CHANGED : { \n handleApplyDefaultProxy ( ( ProxyInfo ) msg . obj ) ; \n break ;", "msg_token": "Remove defunct EVENT_SEND_STICKY_BROADCAST_INTENT"} {"diff": " public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler { \n private static final InternalLogger logger = \n InternalLoggerFactory . getInstance ( HttpUploadServerHandler . class ) ; \n \n - private volatile HttpRequest request ; \n + private HttpRequest request ; \n \n - private volatile boolean readingChunks ; \n + private boolean readingChunks ; \n \n private final StringBuilder responseContent = new StringBuilder ( ) ;", "msg_token": "Remove volatile on two fields that don t need it"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - public interface HierarchicalEclipseProject extends HierarchicalProject { \n + public interface HierarchicalEclipseProject extends HierarchicalProject , HierarchicalElement { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Changed HierarchicalEclipseProject to extend HierarchicalElement to pick up non deprecated getName etc methods"} {"diff": " public class SecurityAuthorityImpl implements SecurityAuthority { \n if ( reasonCode == WRONG_PASSWORD ) \n { \n errorMessage \n - = Messages . getI18NString ( STRING0 ) . getText ( ) ; \n + = Messages . getI18NString ( STRING0 , \n + new String [ ] { userCredentials . getUserName ( ) , \n + realm } ) . getText ( ) ; \n } \n else if ( reasonCode == WRONG_USERNAME ) \n { \n errorMessage \n - = Messages . getI18NString ( STRING0 ) . getText ( ) ; \n + = Messages . getI18NString ( STRING0 , \n + new String [ ] { userCredentials . getUserName ( ) , \n + realm } ) . getText ( ) ; \n } \n \n AuthenticationWindow loginWindow = null ;", "msg_token": "Missing username and server name parameters in error text in the Authentication window"} {"diff": " public class VfsUtil extends VfsUtilCore { \n while ( src . getParent ( ) != commonAncestor ) { \n buffer . append ( STRING0 ) . append ( separatorChar ) ; \n src = src . getParent ( ) ; \n - assert src != null ; \n } \n } \n buffer . append ( getRelativePath ( dst , commonAncestor , separatorChar ) ) ;", "msg_token": "Remove unnecessary assertion"} {"diff": " public class SpringLiquibase implements InitializingBean , BeanNameAware , Resourc \n } \n \n private String adjustClasspath ( String file ) { \n - return isClasspathPrefixPresent ( parentFile ) && ! isPrefixPresent ( file ) \n + return isPrefixPresent ( parentFile ) && ! isPrefixPresent ( file ) \n ? ResourceLoader . CLASSPATH_URL_PREFIX + file \n : file ; \n } \n \n - public boolean isClasspathPrefixPresent ( String file ) { \n - return file . startsWith ( ResourceLoader . CLASSPATH_URL_PREFIX ) ; \n - } \n - \n public boolean isPrefixPresent ( String file ) { \n if ( file . startsWith ( STRING0 ) || \n file . startsWith ( STRING1 ) ||", "msg_token": "Could not find directory"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Adding license header to fix the build"} {"diff": " public class JiveGlobals { \n } \n } \n \n + if ( messengerHome == null ) { \n + try { \n + messengerHome = new File ( STRING0 ) . getCanonicalPath ( ) ; \n + if ( ! new File ( messengerHome , STRING1 ) . exists ( ) ) { \n + messengerHome = null ; \n + } \n + } \n + catch ( IOException e ) { \n + e . printStackTrace ( ) ; \n + } \n + } \n + \n SINGLE \n if ( messengerHome == null ) { \n failedLoading = true ;", "msg_token": "Added check for messengerHome in startup dir"} {"diff": " public class RCFile { \n } \n if ( codec != null ) { \n IOUtils . closeStream ( decompressBuffer ) ; \n - CodecPool . returnDecompressor ( valDecompressor ) ; \n + if ( valDecompressor != null ) { \n + SINGLE \n + CodecPool . returnDecompressor ( valDecompressor ) ; \n + valDecompressor = null ; \n + } \n } \n } \n \n public class RCFile { \n currentValue . close ( ) ; \n if ( decompress ) { \n IOUtils . closeStream ( keyDecompressedData ) ; \n - CodecPool . returnDecompressor ( keyDecompressor ) ; \n + if ( keyDecompressor != null ) { \n + SINGLE \n + CodecPool . returnDecompressor ( keyDecompressor ) ; \n + keyDecompressor = null ; \n + } \n } \n }", "msg_token": "multiple threads can use the same decompressor Mikhail Bautin via Ashutosh Chauhan"} {"diff": " public class DeepLearningProstateTest extends TestUtil { \n try { \n pred = model2 . score ( valid ) ; \n SINGLE \n - Assert . assertTrue ( model2 . testJavaScoring ( valid , pred , FLOAT0 ) ) ; \n + Assert . assertTrue ( model2 . testJavaScoring ( valid , pred , FLOAT1 ) ) ; \n \n hex . ModelMetrics mm = hex . ModelMetrics . getFromDKV ( model2 , valid ) ; \n double error = NUMBER0 ; \n public class DeepLearningProstateTest extends TestUtil { \n else { \n Frame pred = model2 . score ( valid ) ; \n SINGLE \n - Assert . assertTrue ( model1 . testJavaScoring ( frame , pred , FLOAT0 ) ) ; \n + Assert . assertTrue ( model1 . testJavaScoring ( frame , pred , FLOAT1 ) ) ; \n pred . delete ( ) ; \n } \n Log . info ( STRING0 + count + STRING1 ) ;", "msg_token": "Relax tolerances for DL POJO scoring"} {"diff": " public class NameUtil { \n ) { \n int c = data [ offset ] & NUMBER0 ; \n if ( ( c & NUMBER1 ) == NUMBER1 ) { \n - c = ( ( c & NUMBER2 ) < < NUMBER3 ) + data [ offset + NUMBER4 ] ; \n + c = ( ( c & NUMBER2 ) < < NUMBER3 ) + ( data [ offset + NUMBER4 ] & NUMBER0 ) ; \n if ( jumps . contains ( c ) ) { \n throw new IllegalStateException ( STRING0 ) ; \n }", "msg_token": "Fix negative jump targets"} {"diff": " public class HystrixTimer { \n COMMENT \n protected void startThreadIfNeeded ( ) { \n SINGLE \n - if ( executor . get ( ) == null ) { \n + while ( executor . get ( ) == null || ! executor . get ( ) . isInitialized ( ) ) { \n if ( executor . compareAndSet ( null , new ScheduledExecutor ( ) ) ) { \n SINGLE \n executor . get ( ) . initialize ( ) ; \n public class HystrixTimer { \n \n private static class ScheduledExecutor { \n private volatile ScheduledThreadPoolExecutor executor ; \n + private volatile boolean initialized ; \n \n COMMENT \n COMMENT \n public class HystrixTimer { \n } \n \n } ) ; \n + initialized = true ; \n } \n \n public ScheduledThreadPoolExecutor getThreadPool ( ) { \n return executor ; \n } \n + \n + public boolean isInitialized ( ) { \n + return initialized ; \n + } \n } \n \n public static interface TimerListener { \n public class HystrixTimer { \n \n } \n } \n - } \n + }", "msg_token": "Made HystrixTimer initialization thread safe"} {"diff": " public final class ActivityThread { \n @ override \n public void dumpDbInfo ( final FileDescriptor fd , final String [ ] args ) { \n if ( mSystemThread ) { \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + final ParcelFileDescriptor dup ; \n + try { \n + dup = ParcelFileDescriptor . dup ( fd ) ; \n + } catch ( IOException e ) { \n + Log . w ( TAG , STRING0 + fd . getInt$ ( ) ) ; \n + return ; \n + } \n + \n AsyncTask . THREAD_POOL_EXECUTOR . execute ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - dumpDatabaseInfo ( fd , args ) ; \n + dumpDatabaseInfo ( dup . getFileDescriptor ( ) , args ) ; \n + IoUtils . closeQuietly ( dup ) ; \n } \n } ) ; \n } else {", "msg_token": "Duplicate file descriptor when dumping asynchronously"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class Base64 { \n } \n \n int len43 = len * NUMBER0 / NUMBER1 ; \n - ByteBuf dest = Unpooled . buffer ( \n + ByteBuf dest = src . alloc ( ) . buffer ( \n len43 + \n ( len % NUMBER1 > NUMBER2 ? NUMBER0 : NUMBER2 ) + SINGLE \n ( breakLines ? len43 / MAX_LINE_LENGTH : NUMBER2 ) ) . order ( src . order ( ) ) ; SINGLE \n public final class Base64 { \n byte [ ] DECODABET = decodabet ( dialect ) ; \n \n int len34 = len * NUMBER1 / NUMBER0 ; \n - ByteBuf dest = Unpooled . buffer ( len34 ) . order ( src . order ( ) ) ; SINGLE \n + ByteBuf dest = src . alloc ( ) . buffer ( len34 ) . order ( src . order ( ) ) ; SINGLE \n int outBuffPosn = NUMBER2 ; \n \n byte [ ] b4 = new byte [ NUMBER0 ] ;", "msg_token": "Use the allocator of the src ByteBuf to allocate the new ByteBuf"} {"diff": " public class SwipeDismissBehavior < V extends View > extends CoordinatorLayout . Beha \n \n @ override \n public void onViewReleased ( View child , float xvel , float yvel ) { \n - SINGLE \n - final ViewParent parent = child . getParent ( ) ; \n - if ( parent != null ) { \n - parent . requestDisallowInterceptTouchEvent ( false ) ; \n - } \n - \n final int childWidth = child . getWidth ( ) ; \n int targetLeft ; \n boolean dismiss = false ;", "msg_token": "Don t call requestDisallowInterceptTouchEvent false"} {"diff": " public class ProjectAdministrationTest { \n \n Selenese selenese = Selenese \n . builder ( ) \n - . setHtmlTestsInClasspath ( STRING0 , \n + . setHtmlTestsInClasspath ( STRING1 , \n STRING2 \n ) . build ( ) ; \n orchestrator . executeSelenese ( selenese ) ;", "msg_token": "Fix selenium id in ProjectAdministrationTest"} {"diff": " public class NiftyPreviewPanel extends PanelView { \n audioRenderer , \n guiViewPort ) ; \n nifty = niftyDisplay . getNifty ( ) ; \n - de . lessvoid . nifty . tools . resourceloader . ResourceLoader . addResourceLocation ( new FileSystemLocation ( new File ( pm . getAssetFolderName ( ) ) ) ) ; \n \n SINGLE \n guiViewPort . addProcessor ( niftyDisplay ) ;", "msg_token": "remove nifty resource locator setting"} {"diff": " public class HttpResourceAccessor implements ExternalResourceAccessor { \n return false ; \n } \n \n - private ExternalResource findCachedResourceBySha1 ( String source , LocallyAvailableResourceCandidates candidates ) { \n - String checksumType = STRING0 ; \n - String checksumUrl = source + STRING1 ; \n - \n - HashValue sha1 = downloadSha1 ( checksumUrl ) ; \n - if ( sha1 == null ) { \n - LOGGER . info ( STRING2 , checksumType , checksumUrl ) ; \n - } else { \n - LocallyAvailableResource locallyAvailable = candidates . findByHashValue ( sha1 ) ; \n - if ( locallyAvailable != null ) { \n - return new LocallyAvailableExternalResource ( source , locallyAvailable ) ; \n - } \n - \n - LOGGER . info ( STRING3 , checksumType , checksumUrl ) ; \n - } \n - return null ; \n - } \n - \n private HashValue getChecksumFor ( String source ) { \n String checksumUrl = source + STRING1 ; \n return downloadSha1 ( checksumUrl ) ;", "msg_token": "Remove unused method"} {"diff": " public final class Label implements Comparable < Label > , Serializable , SkylarkPrin \n COMMENT \n @ override \n public String toString ( ) { \n + return getCanonicalForm ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getCanonicalForm ( ) { \n return packageIdentifier . getRepository ( ) + STRING0 + packageIdentifier . getPackageFragment ( ) \n + STRING1 + name ; \n }", "msg_token": "Add an explicit way to get the canonical string representation of a Label"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( STRING0 ) \n public class AccumulatingReducer extends MapReduceBase implements Reducer < Text , Text , Text , Text > { \n static final String VALUE_TYPE_LONG = STRING1 ; \n static final String VALUE_TYPE_FLOAT = STRING2 ; \n public final class BlockMaster extends MasterBase implements ContainerIdGenerabl \n return o . getAddress ( ) ; \n } \n } ; \n - @ suppresswarnings ( STRING3 ) \n COMMENT \n COMMENT \n COMMENT \n public final class WebInterfaceGeneralServlet extends HttpServlet { \n getServletContext ( ) . getRequestDispatcher ( STRING4 ) . forward ( request , response ) ; \n } \n \n - @ suppresswarnings ( STRING3 ) \n @ override \n protected void doPost ( HttpServletRequest request , HttpServletResponse response ) \n throws ServletException , IOException {", "msg_token": "SMALLFIX Remove useless warning suppressions"} {"diff": " public final class MoreExecutors { \n COMMENT \n COMMENT \n public static ListeningExecutorService sameThreadExecutor ( ) { \n - return new SameThreadExecutorService ( ) ; \n + return new DirectExecutorService ( ) ; \n } \n \n SINGLE \n - private static class SameThreadExecutorService \n + private static class DirectExecutorService \n extends AbstractListeningExecutorService { \n COMMENT \n COMMENT", "msg_token": "Rename SameThreadExecutorService to DirectExecutorService"} {"diff": " public final class Downsampler { \n String sourceMimeType = options . outMimeType ; \n \n int orientation = getOrientation ( is ) ; \n - int degreesToRotate = TransformationUtils . getExifOrientationDegrees ( getOrientation ( is ) ) ; \n + int degreesToRotate = TransformationUtils . getExifOrientationDegrees ( orientation ) ; \n \n options . inPreferredConfig = getConfig ( is , decodeFormat ) ; \n if ( options . inPreferredConfig != Bitmap . Config . ARGB_8888 ) {", "msg_token": "Reuse the orientation information instead of parsing the stream again"} {"diff": " public class ManagementSecurityAutoConfiguration { \n @ configuration \n @ conditionalonexpression ( STRING0 ) \n @ conditionalonmissingbean ( WebSecurityConfiguration . class ) \n + @ conditionalonwebapplication \n @ enablewebsecurity \n protected static class WebSecurityEnabler extends AuthenticationManagerConfiguration { \n }", "msg_token": "Activate WebSecurityEnabler only for web applications"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed some warnings"} {"diff": " public class LinuxSandboxedStrategyTestCase { \n \n OptionsParser optionsParser = \n OptionsParser . newOptionsParser ( ExecutionOptions . class , SandboxOptions . class ) ; \n - optionsParser . parse ( STRING0 , STRING1 ) ; \n \n EventBus bus = new EventBus ( ) ;", "msg_token": "Remove debug flags from LinuxSandboxedStrategyTestCase as they were causing LocalLinuxSandboxedStrategyTest to fail due to unexpected lines in the output"} {"diff": " public abstract class GenericDAO < T extends AbstractModel > { \n \n public void saveOrUpdate ( Collection < ? extends AbstractModel > models ) { \n Session session = em . unwrap ( Session . class ) ; \n + int i = NUMBER0 ; \n for ( AbstractModel model : models ) { \n session . saveOrUpdate ( model ) ; \n + if ( i % NUMBER1 == NUMBER2 ) { \n + session . flush ( ) ; \n + session . clear ( ) ; \n + } \n } \n }", "msg_token": "flush the session for large inserts"} {"diff": " class ErrorPositionComparator implements Comparator < SingleProofreadingError > { \n } else { \n if ( match1 . aSuggestions . length != NUMBER0 && match2 . aSuggestions . length != NUMBER0 \n && match1 . aSuggestions . length != match2 . aSuggestions . length ) { \n - return ( ( Integer ) ( match1 . aSuggestions . length ) ) \n - . compareTo ( match2 . aSuggestions . length ) ; \n + return Integer . compare ( match1 . aSuggestions . length , match2 . aSuggestions . length ) ; \n } \n } \n return match1 . aRuleIdentifier . compareTo ( match2 . aRuleIdentifier ) ;", "msg_token": "avoid boxing of a primitive"} {"diff": " public class RequestManagerImpl extends DebugProcessAdapterImpl implements Reque \n } \n \n private void addLocatableRequest ( FilteredRequestor requestor , EventRequest request ) { \n - if ( DebuggerSettings . SUSPEND_ALL . equals ( requestor . SUSPEND_POLICY ) ) { \n + if ( DebuggerSettings . SUSPEND_ALL . equals ( requestor . getSuspendPolicy ( ) ) ) { \n request . setSuspendPolicy ( EventRequest . SUSPEND_ALL ) ; \n } \n else {", "msg_token": "ensure thread suspend policy for logging breakpoints"} {"diff": " \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 + \n package NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Added license header to Memory sampler test"} {"diff": " \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": "Fix license header"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ converter \n - public class JaxpConverter { \n + public class XmlConverter { \n public static final String DEFAULT_CHARSET_PROPERTY = STRING0 ; \n \n public static String defaultCharset = ObjectHelper . getSystemProperty ( DEFAULT_CHARSET_PROPERTY , STRING1 ) ; \n public class JaxpConverter { \n } \n \n \n - public JaxpConverter ( ) { \n + public XmlConverter ( ) { \n } \n \n - public JaxpConverter ( DocumentBuilderFactory documentBuilderFactory ) { \n + public XmlConverter ( DocumentBuilderFactory documentBuilderFactory ) { \n this . documentBuilderFactory = documentBuilderFactory ; \n }", "msg_token": "avoid svn issues so renamed to XmlConverter which is a bit of a better name anyway"} {"diff": " \n - import NAMESPACE \n + import NAMESPACE ; \n \n class KotlinClassUsedFromJava { \n void test ( ) { \n - < caret > Test ( ) \n + < caret > Test ( ) ; \n } \n } \n \n \n - import NAMESPACE \n + import NAMESPACE ; \n \n - class KotlinClassUsedFromJava { \n + class KotlinPackageClassUsedFromJava { \n void test ( ) { \n - < caret > TestingPackage . foo ( ) \n + < caret > TestingPackage . foo ( ) ; \n } \n }", "msg_token": "fix compile errors in java test data"} {"diff": " public class ClientRegressionWithMockNetworkTest extends HazelcastTestSupport { \n clientConfig . getNetworkConfig ( ) . setConnectionAttemptLimit ( NUMBER0 ) ; \n hazelcastFactory . newHazelcastClient ( clientConfig ) ; \n \n - Thread . sleep ( NUMBER0 ) ; \n - \n instance . shutdown ( ) ; \n \n - Thread . sleep ( NUMBER1 ) ; \n - \n hazelcastFactory . newHazelcastInstance ( ) ; \n \n - assertTrue ( latch . await ( NUMBER2 , TimeUnit . SECONDS ) ) ; \n + assertTrue ( latch . await ( NUMBER3 , TimeUnit . SECONDS ) ) ; \n }", "msg_token": "Remove sleeps and increase latch timeout in ClientRegressionWithMockNetworkTest"} {"diff": " public class ScriptRunner { \n if ( stopOnError ) { \n hasResults = statement . execute ( sql ) ; \n if ( throwWarning ) { \n + SINGLE \n + SINGLE \n SQLWarning warning = statement . getWarnings ( ) ; \n if ( warning != null ) { \n throw warning ;", "msg_token": "Added a comment"} {"diff": " public class LlcpSocket { \n throw new IOException ( ) ; \n } \n } catch ( RemoteException e ) { \n - Log . e ( TAG , STRING0 , e ) ; \n + Log . e ( TAG , STRING1 , e ) ; \n } \n \n return receivedLength ;", "msg_token": "Fix trace mismatch"} {"diff": " public class SingleSignOn extends ValveBase implements SessionListener { \n } \n Cookie cookie = null ; \n Cookie cookies [ ] = request . getCookies ( ) ; \n - if ( cookies == null ) { \n - cookies = new Cookie [ NUMBER0 ] ; \n - } \n - for ( int i = NUMBER0 ; i < cookies . length ; i ++ ) { \n - if ( Constants . SINGLE_SIGN_ON_COOKIE . equals ( cookies [ i ] . getName ( ) ) ) { \n - cookie = cookies [ i ] ; \n - break ; \n + if ( cookies != null ) { \n + for ( int i = NUMBER0 ; i < cookies . length ; i ++ ) { \n + if ( Constants . SINGLE_SIGN_ON_COOKIE . equals ( cookies [ i ] . getName ( ) ) ) { \n + cookie = cookies [ i ] ; \n + break ; \n + } \n } \n } \n if ( cookie == null ) {", "msg_token": "Avoid unnecessary object creation"} {"diff": " public class ServletContextResource extends AbstractFileResolvingResource implem \n COMMENT \n @ override \n public File getFile ( ) throws IOException { \n - URL url = getURL ( ) ; \n - if ( ResourceUtils . isFileURL ( url ) ) { \n + URL url = this . servletContext . getResource ( this . path ) ; \n + if ( url != null && ResourceUtils . isFileURL ( url ) ) { \n SINGLE \n return super . getFile ( ) ; \n }", "msg_token": "Handle non existent files in ServletContextResource"} {"diff": " public abstract class RxRatpack { \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add javadoc example for RX Observable RS Publisher"} {"diff": " public class Client implements Runnable { \n } \n if ( isDisposeRegistered ) { \n parent . unregisterMethod ( STRING0 , this ) ; \n + isDisposeRegistered = false ; \n } \n dispose ( ) ; \n }", "msg_token": "Prevent possible duplicate deregistering"} {"diff": " public class SQLiteDatabase extends SQLiteClosable { \n @ override \n protected void onAllReferencesReleased ( ) { \n if ( isOpen ( ) ) { \n - dbclose ( ) ; \n + SINGLE \n + close ( ) ; \n } \n } \n \n public class SQLiteDatabase extends SQLiteClosable { \n SINGLE \n closePendingStatements ( ) ; \n SINGLE \n - onAllReferencesReleased ( ) ; \n + dbclose ( ) ; \n if ( mConnectionPool != null ) { \n mConnectionPool . close ( ) ; \n }", "msg_token": "when closing db close all pending statements also"} {"diff": " public class Preference implements Comparable < Preference > { \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 public SharedPreferences getSharedPreferences ( ) { \n if ( mPreferenceManager == null ) { \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class PreferenceManager { \n import NAMESPACE ; \n & lt ; / PreferenceScreen & gt ; < / pre > \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class TwoStatePreference extends Preference { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc for preference lib"} {"diff": " public abstract class ConnectionProxy implements IHikariConnectionProxy \n checkClosed ( ) ; \n try { \n delegate . setCatalog ( catalog ) ; \n - isCatalogDirty = ! catalog . equals ( parentPool . catalog ) ; \n + isCatalogDirty = ( catalog != null && ! catalog . equals ( parentPool . catalog ) ) || ( catalog == null && parentPool . catalog != null ) ; \n } \n catch ( SQLException e ) { \n throw checkException ( e ) ; \n public abstract class ConnectionProxy implements IHikariConnectionProxy \n checkClosed ( ) ; \n try { \n delegate . setCatalog ( catalog ) ; \n - isCatalogDirty = ! catalog . equals ( parentPool . catalog ) ; \n + isCatalogDirty = ( catalog != null && ! catalog . equals ( parentPool . catalog ) ) || ( catalog == null && parentPool . catalog != null ) ; \n } \n catch ( SQLException e ) { \n throw checkException ( e ) ;", "msg_token": "Fix potential but never encountered NPE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class BlurDialogEngine { \n + class BlurDialogEngine { \n \n COMMENT \n COMMENT \n public class BlurDialogEngine { \n COMMENT \n COMMENT \n COMMENT \n - public class BlurAsyncTask extends AsyncTask < Void , Void , Void > { \n + private class BlurAsyncTask extends AsyncTask < Void , Void , Void > { \n \n private Bitmap mBackground ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class FastBlurHelper { \n + final class FastBlurHelper { \n \n COMMENT \n COMMENT", "msg_token": "Tweak public API with package private"} {"diff": " public class GoImportReference extends FileReference { \n @ notnull \n @ override \n protected ResolveResult [ ] innerResolve ( boolean caseSensitive ) { \n + if ( isFirst ( ) && isLast ( ) && STRING0 . equals ( getFileReferenceSet ( ) . getPathString ( ) ) ) { \n + SINGLE \n + return ResolveResult . EMPTY_ARRAY ; \n + } \n if ( isFirst ( ) ) { \n if ( STRING1 . equals ( getCanonicalText ( ) ) ) { \n PsiDirectory directory = getDirectory ( ) ;", "msg_token": "Do not resolve import builtin"} {"diff": " public class Presence extends Packet { \n COMMENT \n COMMENT \n COMMENT \n - error ; \n + error , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + probe , \n + ; \n \n COMMENT \n COMMENT", "msg_token": "Add support for presence probes"} {"diff": " public final class Sequencer extends Animatable { \n COMMENT \n public void after ( long delay ) { \n SINGLE \n - Animator anim = new Animator ( delay , FLOAT0 , FLOAT1 ) ; \n - Node node = new Node ( anim ) ; \n - mNodes . add ( node ) ; \n - Dependency dependency = new Dependency ( node , Dependency . AFTER ) ; \n - mCurrentNode . addDependency ( dependency ) ; \n + after ( new Animator ( delay , FLOAT0 , FLOAT1 ) ) ; \n } \n \n }", "msg_token": "Fix NPE in onAnimationEnd when using Sequencer after long"} {"diff": " public class AddColumnExecutorTest extends AbstractExecuteTest { \n assertCorrect ( STRING0 , SQLiteDatabase . class ) ; \n assertCorrect ( STRING1 , PostgresDatabase . class , InformixDatabase . class , OracleDatabase . class , DerbyDatabase . class , HsqlDatabase . class , DB2Database . class , H2Database . class , CacheDatabase . class , FirebirdDatabase . class , MaxDBDatabase . class ) ; \n assertCorrect ( STRING2 , SybaseASADatabase . class ) ; \n - assertCorrect ( STRING1 , MySQLDatabase . class ) ; \n + assertCorrect ( STRING3 , MySQLDatabase . class ) ; \n assertCorrectOnRest ( STRING4 ) ; \n }", "msg_token": "Fix test after mysql change"} {"diff": " public class CustomIntro extends AppIntro { \n @ override \n public void init ( Bundle savedInstanceState ) { \n addSlide ( AppIntroFragment . newInstance ( STRING0 , STRING1 , \n - R . drawable . ic_slide1 , R . color . material_blue_grey_800 ) ) ; \n + R . drawable . ic_slide1 , Color . parseColor ( STRING2 ) ) ) ; \n \n setBarColor ( Color . parseColor ( STRING3 ) ) ; \n setSeparatorColor ( Color . parseColor ( STRING2 ) ) ;", "msg_token": "Changed example color in example app"} {"diff": " public class ZFrame \n for ( byte aData : data ) { \n if ( aData < NUMBER0 ) { \n isText = false ; \n + break ; \n } \n } \n if ( isText ) {", "msg_token": "Break loop on finding the first non printable character"} {"diff": " public class PublishArtifactToFileBuildOutcomeTransformer { \n } \n \n private String getDescription ( PublishArtifact artifact ) { \n - return String . format ( STRING0 , artifact . toString ( ) ) ; \n + return STRING1 . concat ( artifact . toString ( ) ) . concat ( STRING2 ) ; \n } \n \n private String getTypeIdentifier ( PublishArtifact artifact ) {", "msg_token": "Remove use of String format"} {"diff": " class Record { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n + STRING4 , \n STRING5 , \n STRING6 , \n + STRING7 , \n + STRING8 , \n + STRING9 , \n + STRING10 , \n + STRING11 , \n + STRING12 , \n + STRING13 , \n + STRING14 , \n + STRING15 , \n + STRING16 , \n + STRING17 , \n + STRING18 , \n } ; \n \n enum Type {", "msg_token": "Fix the preloaded classes tool for JellyBean"} {"diff": " final class AioSocketChannelConfig extends DefaultChannelConfig \n } \n \n @ override \n - @ suppresswarnings ( STRING0 ) \n public < T > T getOption ( ChannelOption < T > option ) { \n if ( option == SO_RCVBUF ) { \n return ( T ) Integer . valueOf ( getReceiveBufferSize ( ) ) ;", "msg_token": "Remove unnecessary annotation"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public class FromJsonDecoder { \n StartCustomPollRequestMessage msg = gson . fromJson ( message , StartCustomPollRequestMessage . class ) ; \n return msg ; \n } else { \n - System . out . println ( STRING0 + messageName + STRING1 ) ; \n + SINGLE \n return null ; \n } \n }", "msg_token": "prevent flooding of akka fsesls log"} {"diff": " public class JavaGenerator implements CodeGenerator \n indent + STRING0 + \n indent + STRING1 + \n indent + STRING2 + \n + indent + STRING3 + \n indent + STRING4 + \n indent + STRING0 + \n indent + STRING5 + \n indent + STRING2 + \n + indent + STRING3 + \n indent + STRING6 + \n indent + STRING0 + \n indent + STRING7 + \n indent + STRING2 + \n + indent + STRING3 + \n indent + STRING8 + \n indent + STRING0 + \n indent + STRING9 + \n public class JavaGenerator implements CodeGenerator \n ) ) ; \n \n sb . append ( String . format ( \n + indent + STRING3 + \n indent + STRING10 + \n indent + STRING0 + \n indent + STRING11 +", "msg_token": "Java Missing Iterator methods Override"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class ClusterEventPeriodical extends Periodical { \n public void doRun ( ) { \n try { \n LOG . debug ( STRING0 , COLLECTION_NAME ) ; \n + \n final DBCursor < ClusterEvent > cursor = eventCursor ( nodeId ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . trace ( STRING1 , cursor . explain ( ) ) ; \n + } \n + \n while ( cursor . hasNext ( ) ) { \n ClusterEvent clusterEvent = cursor . next ( ) ; \n LOG . trace ( STRING2 , clusterEvent ) ;", "msg_token": "Log MongoDB query plan on TRACE level in ClusterEventPeriodical"} {"diff": " public class FMLNetworkHandler \n { \n Map < String , ModContainer > mods = Loader . instance ( ) . getIndexedModList ( ) ; \n NetworkModHandler handler = findNetworkModHandler ( mods . get ( key ) ) ; \n - handler . setNetworkId ( value ) ; \n - networkIdLookup . put ( value , handler ) ; \n + if ( handler != null ) \n + { \n + handler . setNetworkId ( value ) ; \n + networkIdLookup . put ( value , handler ) ; \n + } \n } \n \n public static void onClientConnectionToRemoteServer ( NetHandler netClientHandler , String server , int port , NetworkManager networkManager )", "msg_token": "Fix a problem with network ids"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n \n - public abstract interface MetaClass extends MOP { \n + public abstract interface MetaClass extends MetaObjectProtocol { \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n - public interface MOP { \n + public interface MetaObjectProtocol { \n Class getTheClass ( ) ; \n Object invokeConstructor ( Object [ ] arguments ) ; \n Object invokeMethod ( Object object , String methodName , Object [ ] arguments ) ;", "msg_token": "Rename MOP to MetaObjectProtocol"} {"diff": " public class BaseSettingsApi { \n COMMENT \n COMMENT \n public void updateMetadata ( Map entries ) throws IOException { \n - if ( ! metadataFile . exists ( ) ) { \n - FileWriter writer = new FileWriter ( metadataFile ) ; \n - try { \n - new Properties ( ) \n - . store ( writer , \n - STRING0 \n - + STRING1 ) ; \n - } finally { \n - writer . close ( ) ; \n - } \n - metadata = Metadata . getInstance ( metadataFile ) ; \n - } \n - \n - SINGLE \n - \n + Metadata metadata = Metadata . getCurrent ( ) ; \n for ( Object key : entries . keySet ( ) ) { \n final Object value = entries . get ( key ) ; \n if ( value != null )", "msg_token": "fixed a bug updating the application metadata"} {"diff": " public class NettyRatpackServer implements RatpackServer { \n } \n \n pipeline . addLast ( STRING0 , new HttpRequestDecoder ( NUMBER0 , NUMBER1 , NUMBER1 , false ) ) ; \n - pipeline . addLast ( STRING1 , new HttpObjectAggregator ( serverConfig . getMaxContentLength ( ) ) ) ; \n pipeline . addLast ( STRING2 , new HttpResponseEncoder ( ) ) ; \n + pipeline . addLast ( STRING1 , new HttpObjectAggregator ( serverConfig . getMaxContentLength ( ) ) ) ; \n pipeline . addLast ( STRING3 , new SmartHttpContentCompressor ( ) ) ; \n pipeline . addLast ( STRING4 , new ChunkedWriteHandler ( ) ) ; \n pipeline . addLast ( STRING5 , handlerAdapter ) ;", "msg_token": "Put encoder before aggregator in NettyRatpackServer pipeline"} {"diff": " public class Tethering extends INetworkManagementEventObserver . Stub { \n try { \n NetworkInfo info = service . getNetworkInfo ( ConnectivityManager . TYPE_MOBILE_DUN ) ; \n int msg ; \n - if ( info . isConnected ( ) == true ) { \n + if ( info != null && info . isConnected ( ) == true ) { \n msg = TetherMasterSM . CMD_CELL_DUN_ENABLED ; \n } else { \n msg = TetherMasterSM . CMD_CELL_DUN_DISABLED ;", "msg_token": "Fix null pointer exception in connectivity service broadcast receiver"} {"diff": " ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener { \n handler . postDelayed ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - if ( mPager . getCurrentItem ( ) == TAB_VIEW_UPDATES ) \n - setPagerHeightForPosition ( TAB_VIEW_UPDATES ) ; \n + updatesChanged ( ) ; \n } \n } , NUMBER0 ) ; \n } \n ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener { \n SINGLE \n @ override \n public void updatesChanged ( ) { \n - SINGLE \n + if ( mPager . getCurrentItem ( ) == TAB_VIEW_UPDATES ) \n + setPagerHeightForPosition ( TAB_VIEW_UPDATES ) ; \n } \n \n SINGLE", "msg_token": "Fixed a ui refresh bug when syncing task comments"} {"diff": " public class ForgeHooksClient \n { \n if ( ! Objects . equal ( from , to ) || from == null ) \n { \n - return false ; \n + return Objects . equal ( from , to ) ; \n } \n boolean changed = false ; \n if ( slot != - NUMBER0 )", "msg_token": "Fixed emply hand not rendering in first person"} {"diff": " public class ZooClient extends AbstractZooKeeperManager \n \n public void process ( WatchedEvent event ) \n { \n + String path = event . getPath ( ) ; \n + msgLog . logMessage ( this + STRING0 + new Date ( ) + STRING1 + event \n + + STRING2 + path + STRING3 , true ) ; \n + if ( shutdown ) \n + { \n + msgLog . logMessage ( this \n + + STRING4 ) ; \n + return ; \n + } \n try \n { \n - String path = event . getPath ( ) ; \n - msgLog . logMessage ( this + STRING0 + new Date ( ) + STRING1 + event + STRING2 + path + STRING3 , true ) ; \n if ( path == null && event . getState ( ) == Watcher . Event . KeeperState . Expired ) \n { \n keeperState = KeeperState . Expired ; \n public class ZooClient extends AbstractZooKeeperManager \n { \n return storeId ; \n } \n - \n + \n @ override \n public String toString ( ) \n {", "msg_token": "ZooClient ignores events after being shutdown"} {"diff": " public final class CheckDocsDoclet \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed typoin javadoc"} {"diff": " public class TableDefinition extends BaseTableDefinition { \n typeBuilder . addMethod ( MethodSpec . methodBuilder ( STRING0 ) \n . addAnnotation ( Override . class ) \n . addModifiers ( Modifier . PUBLIC , Modifier . FINAL ) \n - . addStatement ( STRING1 , QueryBuilder . quote ( autoIncrementDefinition . columnName ) ) \n + . addStatement ( STRING1 , QueryBuilder . stripQuotes ( autoIncrementDefinition . columnName ) ) \n . returns ( ClassName . get ( String . class ) ) . build ( ) ) ; \n }", "msg_token": "fix incorrectly quoted refs"} {"diff": " public class NumberPicker extends LinearLayout { \n SINGLE \n mInputText . setRawInputType ( InputType . TYPE_CLASS_TEXT \n | InputType . TYPE_TEXT_FLAG_NO_SUGGESTIONS ) ; \n + SINGLE \n + SINGLE \n + if ( getMinValue ( ) >= displayedValues . length ) { \n + setMinValue ( NUMBER0 ) ; \n + } \n + if ( getMaxValue ( ) >= displayedValues . length ) { \n + setMaxValue ( displayedValues . length - NUMBER1 ) ; \n + } \n } else { \n mInputText . setRawInputType ( InputType . TYPE_CLASS_NUMBER ) ; \n }", "msg_token": "NumberPicker should adjust min and max when displayed values are set"} {"diff": " public final class ConformanceRules { \n || isWizDeclaration ( n ) ) { \n return ConformanceResult . CONFORMANCE ; \n } \n + SINGLE \n + SINGLE \n + SINGLE \n + Node enclosingScript = NodeUtil . getEnclosingScript ( n ) ; \n + if ( enclosingScript != null && enclosingScript . getBooleanProp ( Node . GOOG_MODULE ) ) { \n + return ConformanceResult . CONFORMANCE ; \n + } \n + \n JSDocInfo ownJsDoc = n . getFirstChild ( ) . getJSDocInfo ( ) ; \n if ( ownJsDoc != null && ownJsDoc . isConstructor ( ) ) { \n FunctionType functionType = n . getFirstChild ( )", "msg_token": "Don t run the NoImplicitlyPublicDecls check on goog modules"} {"diff": " public class NettyTransportChannel implements TransportChannel { \n channel . write ( buffer ) ; \n transportServiceAdapter . onResponseSent ( requestId , action , error ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Channel getChannel ( ) { \n + return channel ; \n + } \n }", "msg_token": "add getter for channel in NettyTransportChannel"} {"diff": " public interface Context extends Registry { \n void render ( Object object ) throws NoSuchRendererException ; \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 + default String header ( String name ) { \n + return getRequest ( ) . getHeaders ( ) . get ( name ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added shortcut for getting header values"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class ChromeDevtoolsServer implements SimpleEndpoint { \n private static final String TAG = STRING0 ;", "msg_token": "ChromeDevToolsServer java update link to debugger protocol"} {"diff": " public class AceEditorIdleCommands \n } ; \n \n cow . set ( new ChunkOutputWidget ( \n - StringUtil . makeRandomId ( NUMBER0 ) , \n - StringUtil . makeRandomId ( NUMBER0 ) , \n + STRING0 , \n + STRING1 + StringUtil . makeRandomId ( NUMBER0 ) , \n RmdChunkOptions . create ( ) , \n ChunkOutputWidget . EXPANDED , \n host ) ) ;", "msg_token": "use blank document id prefix for chunk id"} {"diff": " public class BlockIgniteEvent extends BlockEvent implements Cancellable { \n COMMENT \n COMMENT \n SPREAD , \n - COMMENT \n - COMMENT \n - COMMENT \n - SLOW_SPREAD \n - \n } \n \n }", "msg_token": "Removed SLOW_SPREAD from IgniteCause enum"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class PopupUpdateProcessor extends JBPopupAdapter { \n if ( windowEvent . asPopup ( ) . isVisible ( ) ) { SINGLE \n final LookupElement item = event . getItem ( ) ; \n if ( item != null ) { \n - updatePopup ( item . getObject ( ) ) ; SINGLE \n + updatePopup ( CompletionUtil . getTargetElement ( item ) ) ; SINGLE \n } \n } else { \n activeLookup . removeLookupListener ( this ) ; SINGLE", "msg_token": "always show docs impls for physical elements"} {"diff": " public abstract class CodegenTestCase extends UsefulTestCase { \n @ notnull \n protected String relativePath ( @ notnull File file ) { \n String stringToCut = STRING0 ; \n - assert file . getPath ( ) . startsWith ( stringToCut ) : STRING1 + file ; \n - return file . getPath ( ) . substring ( stringToCut . length ( ) ) ; \n + String systemIndependentPath = file . getPath ( ) . replace ( File . separatorChar , STRING2 ) ; \n + assert systemIndependentPath . startsWith ( stringToCut ) : STRING1 + file ; \n + return systemIndependentPath . substring ( stringToCut . length ( ) ) ; \n } \n \n @ notnull", "msg_token": "Fix file separators in Codegen Tests on Windows"} {"diff": " public class QueryFailureTest extends SystemTestBase { \n assertEquals ( CreateJobResponse . Status . OK , created . getStatus ( ) ) ; \n \n final String result = cli ( STRING0 , STRING1 , STRING2 ) ; \n - assertThat ( result , containsString ( STRING3 ) ) ; \n + assertThat ( result , containsString ( STRING4 ) ) ; \n } \n }", "msg_token": "Fix test string"} {"diff": " public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex \n COMMENT \n protected void destroyContext ( ) { \n if ( Display . isCreated ( ) ) { \n + try { \n + SINGLE \n + SINGLE \n + Display . setParent ( null ) ; \n + } catch ( LWJGLException ex ) { \n + logger . log ( Level . SEVERE , STRING0 , ex ) ; \n + } \n Display . destroy ( ) ; \n }", "msg_token": "Fix LwjglCanvas freezing on Windows XP"} {"diff": " public class ImageManager { \n } \n \n private void handleException ( final Exception e ) { \n + if ( Log . isLoggable ( TAG , Log . DEBUG ) ) { \n + Log . d ( TAG , STRING0 , e ) ; \n + } \n mainHandler . post ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Add debug logging for exceptions loading images"} {"diff": " public class WritableScopeImpl extends WritableScopeWithImports { \n \n if ( ! allDescriptorsDone ) { \n allDescriptorsDone = true ; \n + \n + SINGLE \n + changeLockLevel ( LockLevel . READING ) ; \n + \n allDescriptors . addAll ( getWorkerScope ( ) . getAllDescriptors ( ) ) ; \n for ( JetScope imported : getImports ( ) ) { \n allDescriptors . addAll ( imported . getAllDescriptors ( ) ) ;", "msg_token": "check state in WriteableScopeImpl"} {"diff": " public class LRUCache < K , V > { \n CacheEntry < K , V > value = cache . get ( key ) ; \n if ( value == null ) { \n long expires ; \n - if ( maxEntries == - NUMBER0 ) { \n + if ( maxAge == - NUMBER0 ) { \n expires = - NUMBER0 ; \n } else { \n expires = System . currentTimeMillis ( ) + maxAge ;", "msg_token": "Fix cache issue"} {"diff": " public class IpnbFileEditor extends UserDataHolderBase implements FileEditor , Te \n @ override \n public void beforeFileClosed ( @ notnull FileEditorManager source , @ notnull VirtualFile file ) { \n if ( ! new File ( file . getPath ( ) ) . exists ( ) ) return ; \n + final Document document = getEditor ( ) . getDocument ( ) ; \n + FileDocumentManager . getInstance ( ) . saveDocument ( document ) ; \n IpnbParser . saveIpnbFile ( myIpnbFilePanel ) ; \n file . refresh ( false , false ) ; \n }", "msg_token": "properly save document"} {"diff": " final class RestHelper { \n } \n \n static String uriCast ( final Object value ) { \n + if ( value == null ) \n + return STRING0 ; \n if ( value instanceof String ) \n return STRING1 + RexsterTokens . STRING + STRING2 + value . toString ( ) + STRING3 ; \n else if ( value instanceof Integer )", "msg_token": "Fixed failing test for RexsterGraph given Query changes"} {"diff": " import NAMESPACE ; \n public class HawtDBAggregateLoadTest extends CamelTestSupport { \n \n private static final Log LOG = LogFactory . getLog ( HawtDBAggregateLoadTest . class ) ; \n - private static final int SIZE = NUMBER0 ; \n + private static final int SIZE = NUMBER1 ; \n \n @ before \n @ override", "msg_token": "Bring the test size down since the new flush change increases commit latency"} {"diff": " public class SimpleTemplateEngine extends TemplateEngine { \n } \n \n private void startScript ( StringWriter sw ) { \n - sw . write ( STRING0 ) ; \n sw . write ( STRING1 ) ; \n } \n \n private void endScript ( StringWriter sw ) { \n sw . write ( STRING2 ) ; \n + sw . write ( STRING3 ) ; \n } \n \n private void processGSstring ( Reader reader , StringWriter sw ) throws IOException {", "msg_token": "Push the signature comment of SimpleTemplateEngine to end of template output"} {"diff": " public final class WebViewDelegate { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void callDrawGlFunction ( Canvas canvas , long nativeDrawGLFunctor ) { \n if ( ! ( canvas instanceof HardwareCanvas ) ) {", "msg_token": "Fix docs build breakage"} {"diff": " public final class FBReaderApp extends ZLApplication { \n public final ZLStringOption FooterFontOption = \n new ZLStringOption ( STRING0 , STRING1 , STRING2 ) ; \n \n - final ZLBooleanOption SelectionEnabledOption = \n - new ZLBooleanOption ( STRING0 , STRING3 , true ) ; \n - \n final ZLStringOption ColorProfileOption = \n new ZLStringOption ( STRING0 , STRING4 , ColorProfile . DAY ) ; \n \n public final class FBView extends ZLTextView { \n return myFooter ; \n } \n \n - @ override \n - protected boolean isSelectionEnabled ( ) { \n - return myReader . SelectionEnabledOption . getValue ( ) ; \n - } \n - \n public static final int SCROLLBAR_SHOW_AS_FOOTER = NUMBER0 ; \n \n @ override \n public abstract class ZLTextView extends ZLTextViewBase { \n return false ; \n } \n \n - protected abstract boolean isSelectionEnabled ( ) ; \n - \n private ZLTextRegion mySelectedRegion ; \n private boolean myHighlightSelectedRegion = true ;", "msg_token": "removed unused code"} {"diff": " public class SpongeForgeEventFactory { \n EntitySpawnCause spawnCause = ( EntitySpawnCause ) source ; \n SpongeEntitySnapshot snapshot = ( SpongeEntitySnapshot ) spawnCause . getEntity ( ) ; \n Entity entity = ( Entity ) snapshot . getEntityReference ( ) . get ( ) ; \n - if ( entity == null ) { \n + if ( entity == null || ! ( entity instanceof EntityLivingBase ) ) { \n return spongeEvent ; \n }", "msg_token": "Fix ClassCastException while firing Forge s LivingDropsEvent"} {"diff": " public class PostgreDatabase implements DBSInstance , DBSCatalog , DBPRefreshableO \n throws SQLException \n { \n return session . prepareStatement ( \n - STRING0 + \n + STRING1 + \n STRING2 \n ) ; \n } \n public class PostgreDatabase implements DBSInstance , DBSCatalog , DBPRefreshableO \n @ override \n protected boolean handleCacheReadError ( DBException error ) { \n SINGLE \n + SINGLE \n SINGLE \n SINGLE \n setCache ( Collections . < PostgreAuthId > emptyList ( ) ) ;", "msg_token": "AuthId access denied workaroun"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MakeCustomActivity extends Activity { \n @ override \n public void onClick ( View v ) { \n mProgressBar . progressiveStart ( ) ; \n + ( ( CircularProgressDrawable ) mCircularProgressBar . getIndeterminateDrawable ( ) ) . start ( ) ; \n } \n } ) ; \n \n public class MakeCustomActivity extends Activity { \n @ override \n public void onClick ( View v ) { \n mProgressBar . progressiveStop ( ) ; \n + ( ( CircularProgressDrawable ) mCircularProgressBar . getIndeterminateDrawable ( ) ) . progressiveStop ( ) ; \n } \n } ) ;", "msg_token": "Updated sample to add the progressive stop"} {"diff": " public class RefCountingStorage extends AbstractStorage { \n } \n \n synchronized ( myLock ) { \n - myPendingWriteRequests . remove ( record ) ; \n doWrite ( record , fixedSize , s ) ; \n + myPendingWriteRequests . remove ( record ) ; \n } \n return null ; \n }", "msg_token": "remove pending request as last"} {"diff": " public class PopupToolbarAction extends AnAction { \n new SelectInNavBarTarget ( project ) . select ( null , false ) ; \n return ; \n } \n + if ( DataKeys . CONTEXT_COMPONENT . getData ( dataContext ) instanceof NavBarPanel ) { \n + return ; \n + } \n final Editor editor = DataKeys . EDITOR . getData ( dataContext ) ; \n final NavBarPanel toolbarPanel = new NavBarPanel ( project ) { \n public Dimension getPreferredSize ( ) {", "msg_token": "keep NavBar in one place"} {"diff": " public final class Files { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static void copy ( File from , File to ) throws IOException { \n + Preconditions . checkArgument ( ! from . equals ( to ) , \n + STRING0 , from , to ) ; \n copy ( newInputStreamSupplier ( from ) , to ) ; \n } \n \n public final class Files { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static void move ( File from , File to ) throws IOException { \n Preconditions . checkNotNull ( to ) ; \n public final class Files { \n } \n \n SINGLE \n - Iterable < String > components = Splitter . on ( STRING1 ) . omitEmptyStrings ( ) . split ( pathname ) ; \n + Iterable < String > components = \n + Splitter . on ( STRING1 ) . omitEmptyStrings ( ) . split ( pathname ) ; \n List < String > path = new ArrayList < String > ( ) ; \n \n SINGLE", "msg_token": "Throw an IAE if source and destination files are the same in Files copy"} {"diff": " public interface Operator \n \n OperatorContext getOperatorContext ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n List < Type > getTypes ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n void finish ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n boolean isFinished ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n ListenableFuture < ? > isBlocked ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n boolean needsInput ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n void addInput ( Page page ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n Page getOutput ( ) ; \n }", "msg_token": "Add documentation to Operator interface"} {"diff": " public class MustacheCompiler { \n private static String header , middle , footer ; \n private static AtomicInteger num = new AtomicInteger ( NUMBER0 ) ; \n private Logger logger = Logger . getLogger ( getClass ( ) . getName ( ) ) ; \n - private boolean debug = true ; \n + private boolean debug = false ; \n private String superclass ; \n \n public void setDebug ( ) {", "msg_token": "turn debug off"} {"diff": " public class JreMemoryLeakPreventionListener implements LifecycleListener { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n SINGLE", "msg_token": "Add bug info"} {"diff": " public class JsonValue { \n public String asString ( ) { \n if ( stringValue != null ) return stringValue ; \n if ( doubleValue != null ) { \n - if ( doubleValue == longValue ) return Long . toString ( longValue ) ; \n + if ( doubleValue % NUMBER0 == NUMBER1 ) return Long . toString ( longValue ) ; \n return Double . toString ( doubleValue ) ; \n } \n if ( booleanValue != null ) return Boolean . toString ( booleanValue ) ;", "msg_token": "Better has no decimal check"} {"diff": " public class AzureBlobContainer extends AbstractBlobContainer { \n } \n \n @ override \n - public boolean deleteBlob ( String blobName ) throws IOException { \n + public void deleteBlob ( String blobName ) throws IOException { \n try { \n blobStore . client ( ) . deleteBlob ( blobStore . container ( ) , buildKey ( blobName ) ) ; \n - return true ; \n } catch ( URISyntaxException e ) { \n logger . warn ( STRING0 , blobName , blobStore . container ( ) , e . getMessage ( ) ) ; \n throw new IOException ( e ) ;", "msg_token": "Change in BlobContainer deleteBlob does not return boolean"} {"diff": " public class CachedList < CO extends CachedModel > extends CachedModel { \n } \n \n @ override \n + public boolean equals ( Object o ) { \n + if ( ! ( o instanceof CachedList ) ) { \n + return false ; \n + } \n + @ suppresswarnings ( STRING0 ) \n + CachedList that = ( CachedList ) o ; \n + return clazz . equals ( that . clazz ) && list . equals ( that . list ) ; \n + } \n + \n + @ override \n public String createKey ( String id ) { \n return STRING1 + id ; \n }", "msg_token": "Added better equality check to model cached lists"} {"diff": " public class AeronClient implements DriverManagedResource \n { \n SINGLE \n } \n - \n - public int incRef ( ) \n - { \n - return NUMBER0 ; \n - } \n - \n - public int decRef ( ) \n - { \n - return NUMBER0 ; \n - } \n }", "msg_token": "remove unused refcnt methods"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n COMMENT \n COMMENT \n public void addFocusables ( ArrayList < View > views , @ focusdirection int direction ) { \n - addFocusables ( views , direction , FOCUSABLES_TOUCH_MODE ) ; \n + addFocusables ( views , direction , isInTouchMode ( ) ? FOCUSABLES_TOUCH_MODE : FOCUSABLES_ALL ) ; \n } \n \n COMMENT \n public class View implements Drawable . Callback , KeyEvent . Callback , \n return ; \n } \n if ( ( focusableMode & FOCUSABLES_TOUCH_MODE ) == FOCUSABLES_TOUCH_MODE \n - && isInTouchMode ( ) && ! isFocusableInTouchMode ( ) ) { \n + && ! isFocusableInTouchMode ( ) ) { \n return ; \n } \n views . add ( this ) ;", "msg_token": "Respect add focusables flags"} {"diff": " final class AccessibilityController { \n SINGLE \n SINGLE \n if ( ( flags & WindowManager . LayoutParams . FLAG_NOT_TOUCHABLE ) != NUMBER0 ) { \n - unaccountedSpace . op ( boundsInScreen , unaccountedSpace , \n - Region . Op . DIFFERENCE ) ; \n continue ; \n }", "msg_token": "Not touchable windows should not hide windows behind"} {"diff": " public class AdminClient { \n writableStores . add ( def ) ; \n } \n } \n - System . out . println ( writableStores ) ; \n for ( StoreDefinition def : writableStores ) { \n restoreStoreFromReplication ( nodeId , cluster , def , executors ) ; \n } \n public class AdminServiceBasicTest extends TestCase { \n \n @ test \n public void testFetchPartitionFiles ( ) throws IOException { \n - generateAndFetchFiles ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ; \n + if ( useNio ) \n + generateAndFetchFiles ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ; \n } \n \n private void generateFiles ( int numChunks ,", "msg_token": "Removing sysout from the Admin client unit tests"} {"diff": " public class RoutePointsPlugin extends OsmandPlugin { \n \n @ override ( ) \n public boolean updateInfo ( OsmandMapLayer . DrawSettings drawSettings ) { \n - setText ( getVisitedAllString ( ) , STRING0 ) ; \n + if ( currentRoute != null ) { \n + setText ( getVisitedAllString ( ) , STRING0 ) ; \n + } else { \n + setText ( STRING0 , app . getString ( R . string . route_points_no_gpx ) ) ; \n + } \n return true ; \n }", "msg_token": "Fix route point plugin"} {"diff": " public class JSSESocketFactory implements SSLUtil { \n algorithm = TrustManagerFactory . getDefaultAlgorithm ( ) ; \n } \n \n - return getTrustManagers ( truststoreType , sslHostConfig . getCertificateKeystoreProvider ( ) , \n - algorithm ) ; \n + return getTrustManagers ( truststoreType , endpoint . getTruststoreProvider ( ) , algorithm ) ; \n } \n \n @ override", "msg_token": "Use the trustStoreProvider rather than the keystoreProvider for the trust manager"} {"diff": " public class SpaceReserver implements Runnable { \n } else { \n LOG . warn ( STRING0 , lastIntervalMs , mCheckIntervalMs ) ; \n } \n + lastCheckMs = System . currentTimeMillis ( ) ; \n reserveSpace ( ) ; \n } \n }", "msg_token": "update last check time before reserve space in SpaceReserver"} {"diff": " public final class UpgradeService { \n StringBuilder changeLog = new StringBuilder ( ) ; \n \n if ( from < V4_1_0 ) { \n - newVersionString ( changeLog , STRING0 , new String [ ] { \n + newVersionString ( changeLog , STRING1 , new String [ ] { \n STRING2 + \n - STRING3 , \n + STRING4 , \n STRING5 + \n STRING6 , \n STRING7 ,", "msg_token": "Fixed upgrade message"} {"diff": " public abstract class NavigatorHandlerObjectBase extends AbstractHandler { \n @ override \n public void run ( DBRProgressMonitor monitor ) throws InvocationTargetException , InterruptedException \n { \n + monitor . beginTask ( STRING0 , NUMBER0 ) ; \n try { \n commander . saveChanges ( monitor ) ; \n + monitor . done ( ) ; \n } catch ( DBException e ) { \n throw new InvocationTargetException ( e ) ; \n } \n public class NavigatorHandlerObjectDelete extends NavigatorHandlerObjectBase imp \n if ( commandTarget . getEditor ( ) == null && commandTarget . getContext ( ) != null ) { \n SINGLE \n ObjectSaver deleter = new ObjectSaver ( commandTarget . getContext ( ) ) ; \n - DBeaverUI . runInProgressService ( deleter ) ; \n + DBeaverUI . runInProgressDialog ( deleter ) ; \n } \n \n - } catch ( InterruptedException e ) { \n - SINGLE \n } catch ( Throwable e ) { \n if ( e instanceof InvocationTargetException ) { \n e = ( ( InvocationTargetException ) e ) . getTargetException ( ) ;", "msg_token": "Object delete in progress dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class WorldEditPlayerListener extends PlayerListener { \n COMMENT \n @ override \n public void onPlayerAnimation ( PlayerAnimationEvent event ) { \n + LocalPlayer localPlayer = wrapPlayer ( event . getPlayer ( ) ) ; \n + \n if ( event . getAnimationType ( ) == PlayerAnimationType . ARM_SWING ) { \n - plugin . controller . handleArmSwing ( wrapPlayer ( event . getPlayer ( ) ) ) ; \n + plugin . controller . handleArmSwing ( localPlayer ) ; \n + } \n + \n + SINGLE \n + SINGLE \n + WorldVector pt = localPlayer . getBlockTrace ( NUMBER0 ) ; \n + if ( pt != null && pt . getWorld ( ) . getBlockType ( pt ) == BlockID . BEDROCK ) { \n + if ( plugin . controller . handleBlockLeftClick ( localPlayer , pt ) ) { \n + } \n } \n }", "msg_token": "Added a workaround to the fact that Minecraft no longer sends a block dig packet for bedrock"} {"diff": " public class MockitoJUnitRule implements TestRule { \n private final JUnitRule jUnitRule ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public MockitoJUnitRule ( Object testInstance ) { \n - checkNotNull ( testInstance , STRING0 ) ; \n - this . jUnitRule = new JUnitRule ( testInstance ) ; \n + public MockitoJUnitRule ( Object targetTest ) { \n + checkNotNull ( targetTest , STRING1 ) ; \n + this . jUnitRule = new JUnitRule ( targetTest ) ; \n } \n \n public Statement apply ( final Statement base , Description description ) { \n public class MockitoJUnitRuleTest { \n new MockitoJUnitRule ( null ) ; \n fail ( ) ; \n } catch ( NullPointerException e ) { \n - assertEquals ( STRING2 , STRING3 , e . getMessage ( ) ) ; \n + assertEquals ( STRING2 , STRING4 , e . getMessage ( ) ) ; \n } \n }", "msg_token": "Fixed failing test"} {"diff": " public class RemoteActorRef < Message > extends ActorRefImpl < Message > { \n private static LifecycleListenerProxy lifecycleListenerProxy = ServiceUtil . loadSingletonService ( LifecycleListenerProxy . class ) ; \n private final transient ActorRefImpl < Message > actor ; \n \n - public RemoteActorRef ( ActorRef < Message > actor ) { \n + protected RemoteActorRef ( ActorRef < Message > actor ) { \n super ( actor . getName ( ) , ( ( ActorRefImpl ) actor ) . mailbox ( ) ) ; \n this . actor = ( ActorRefImpl ) actor ; \n }", "msg_token": "Made RemoteActorRef constructor protected"} {"diff": " public class ParserATNSimulator < Symbol extends Token > extends ATNSimulator { \n \n if ( ambigAlts . isNil ( ) ) return null ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n return ambigAlts ; \n }", "msg_token": "add Sam s getConflictingAlts potential bug fix as comment"} {"diff": " public class PGraphics extends PImage implements PConstants { \n } \n \n \n + protected void flush ( ) { \n + SINGLE \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT \n public class PGraphics extends PImage implements PConstants { \n \n public void endRaw ( ) { \n if ( raw != null ) { \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + raw . flush ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "handling flush stuff"} {"diff": " public class PersistenceRefProcessor extends AbstractDeploymentDescriptorBinding \n } else { \n throw new RuntimeException ( STRING0 ) ; \n } \n + bindingConfigurations . add ( bindingConfiguration ) ; \n } \n } \n return bindingConfigurations ;", "msg_token": "Fix persistence context ref"} {"diff": " class ExitTransitionCoordinator extends ActivityTransitionCoordinator { \n } \n \n private void startExitTransition ( ) { \n - Transition sharedElementTransition = mSharedElements . isEmpty ( ) \n - ? null : getSharedElementTransition ( ) ; \n - if ( sharedElementTransition == null ) { \n - sharedElementTransitionComplete ( ) ; \n - } \n - Transition transition = mergeTransitions ( sharedElementTransition , \n - getExitTransition ( ) ) ; \n + Transition transition = getExitTransition ( ) ; \n if ( transition != null ) { \n TransitionManager . beginDelayedTransition ( getDecor ( ) , transition ) ; \n setViewVisibility ( mTransitioningViews , View . INVISIBLE ) ;", "msg_token": "Don t do a shared element exit transition twice"} {"diff": " public class ProxyStreamServlet extends HttpServlet { \n if ( origin == null ) { \n response . setStatus ( NUMBER0 ) ; \n response . getWriter ( ) . println ( STRING0 ) ; \n + return ; \n } \n origin = origin . trim ( ) ;", "msg_token": "Avoid NPE when origin parameter not present"} {"diff": " public abstract class InputHandler extends KeyAdapter \n textArea . getToolkit ( ) . beep ( ) ; \n } \n } \n + \n + public boolean hasBracketsAndQuotes ( String str ) { \n + for ( String bracketsAndQuotes : bracketsAndQuotesMap . keySet ( ) ) \n + { \n + if ( str . equals ( bracketsAndQuotes ) ) \n + return true ; \n + } \n + return false ; \n + } \n }", "msg_token": "Add hasBracketsAndQuotes Method"} {"diff": " public class Glsl100ShaderGenerator extends ShaderGenerator { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private void fixInPositionType ( ShaderNodeVariable var ) {", "msg_token": "Fixed typo in previous commit s javadoc"} {"diff": " public class GitBlit implements ServletContextListener { \n @ override \n public void contextInitialized ( ServletContextEvent contextEvent ) { \n servletContext = contextEvent . getServletContext ( ) ; \n - settingsModel = loadSettingModels ( ) ; \n if ( settings == null ) { \n SINGLE \n ServletContext context = contextEvent . getServletContext ( ) ; \n public class GitBlit implements ServletContextListener { \n } \n } \n } \n - \n + \n + settingsModel = loadSettingModels ( ) ; \n serverStatus . servletContainer = servletContext . getServerInfo ( ) ; \n }", "msg_token": "Reordered settings model loading to avoid WAR null pointer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove JacksonStdImpl from RawSerializer"} {"diff": " public class MavenProjectsStructure extends SimpleTreeStructure { \n \n private String wrappedText ( MavenProjectProblem each ) { \n String text = StringUtil . replace ( each . getDescription ( ) , new String [ ] { STRING0 , STRING1 } , new String [ ] { STRING2 , STRING3 } ) ; \n - StringBuffer result = new StringBuffer ( ) ; \n + StringBuilder result = new StringBuilder ( ) ; \n int count = NUMBER0 ; \n for ( int i = NUMBER0 ; i < text . length ( ) ; i ++ ) { \n char ch = text . charAt ( i ) ;", "msg_token": "change StringBuffer to StringBuilder"} {"diff": " public class TestSubscriber < T > extends Subscriber < T > { \n public static < T > TestSubscriber < T > create ( Observer < T > delegate , long initialRequest ) { \n return new TestSubscriber < T > ( delegate , initialRequest ) ; \n } \n - \n + \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TestSubscriber < T > extends Subscriber < T > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix TestSubscriber create doc"} {"diff": " public class JdbcPreserveHeadersTest extends CamelTestSupport { \n public void testPreserveHeaders ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . expectedHeaderReceived ( STRING1 , NUMBER0 ) ; \n - mock . expectedHeaderReceived ( STRING2 , NUMBER1 ) ; \n + mock . expectedHeaderReceived ( STRING3 , STRING4 ) ; \n mock . assertIsSatisfied ( ) ; \n } \n \n public class JdbcPreserveHeadersTest extends CamelTestSupport { \n from ( STRING5 ) . \n process ( new Processor ( ) { \n public void process ( Exchange e ) throws Exception { \n - e . getIn ( ) . setHeader ( STRING1 , NUMBER0 ) ; \n - e . getIn ( ) . setHeader ( STRING2 , NUMBER1 ) ; \n + e . getIn ( ) . setHeader ( STRING3 , STRING4 ) ; \n } \n } ) . \n setBody ( constant ( STRING6 ) ) .", "msg_token": "Fixed test on other box"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n + SINGLE \n + healing . node . resetResendCount ( ) ; \n \n case PING : \n if ( healing . nodeId != zController . getOwnNodeId ( ) ) {", "msg_token": "Reset resend count before starting heal sets time"} {"diff": " public class EditorFragment extends EditorFragmentAbstract implements View . OnCli \n mWebView . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - mWebView . execJavaScriptFromString ( STRING0 ) ; \n + mWebView . execJavaScriptFromString ( STRING1 + \n + STRING2 ) ; \n } \n } ) ; \n }", "msg_token": "catch a common JS exception"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n @ runwith ( MavenJUnitTestRunner . class ) \n - @ mavenversions ( { STRING1 } ) \n + @ mavenversions ( { STRING2 } ) \n public class ApkWithProvidedJarBuildExampleIT { \n \n @ rule", "msg_token": "disabled failing test for now"} {"diff": " public class WebdavClient extends HttpClient { \n return result ; \n } \n \n - public int tryToLogin ( ) { \n - int r = NUMBER0 ; \n - HeadMethod head = new HeadMethod ( mUri . toString ( ) ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int tryToLogin ( Uri uri , String username , String password ) { \n + int returnCode = NUMBER0 ; \n + setCredentials ( username , password ) ; \n + HeadMethod head = new HeadMethod ( uri . toString ( ) ) ; \n try { \n - r = executeMethod ( head ) ; \n + returnCode = executeMethod ( head ) ; \n } catch ( Exception e ) { \n Log . e ( TAG , STRING0 + e . getMessage ( ) ) ; \n } \n - return r ; \n + return returnCode ; \n } \n \n public boolean createDirectory ( String path ) {", "msg_token": "tryToLogin must get parameters now"} {"diff": " public class HardcodedContracts { \n return Collections . singletonList ( new MethodContract ( constraints , THROW_EXCEPTION ) ) ; \n } \n } \n + else if ( STRING0 . equals ( className ) || STRING1 . equals ( className ) ) { \n + if ( STRING2 . equals ( methodName ) && paramCount > NUMBER0 ) { \n + MethodContract . ValueConstraint [ ] constraints = createConstraintArray ( paramCount ) ; \n + constraints [ NUMBER0 ] = NULL_VALUE ; \n + return Collections . singletonList ( new MethodContract ( constraints , THROW_EXCEPTION ) ) ; \n + } \n + } \n else if ( STRING3 . equals ( className ) || \n STRING4 . equals ( className ) || \n STRING5 . equals ( className ) ||", "msg_token": "add hardcoded contracts for apache Validate notNull"} {"diff": " public abstract class BaseOrmLiteLoader < T , ID > extends AsyncTaskLoader < List < T > > \n public BaseOrmLiteLoader ( Context context , Dao < T , ID > dao ) { \n super ( context ) ; \n this . dao = dao ; \n - dao . registerObserver ( this ) ; \n } \n \n @ override \n public abstract class BaseOrmLiteLoader < T , ID > extends AsyncTaskLoader < List < T > > \n if ( takeContentChanged ( ) || cachedResults == null ) { \n forceLoad ( ) ; \n } \n + SINGLE \n + dao . registerObserver ( this ) ; \n } \n \n COMMENT", "msg_token": "Moved register to the onStartLoading"} {"diff": " public class SimpleExprGenerator extends Generator < ExprStmtToken > { \n param = analyzer . generator ( SimpleExprGenerator . class ) \n . getToken ( nextToken ( iterator ) , iterator , true , BraceExprToken . Kind . SIMPLE ) ; \n \n - if ( param != null ) \n + if ( param != null ) { \n parameters . add ( param ) ; \n + if ( param . isSingle ( ) ) { \n + if ( param . getTokens ( ) . get ( NUMBER0 ) instanceof VariableExprToken ) { \n + if ( analyzer . getFunction ( ) != null ) \n + analyzer . getFunction ( ) . getPassedLocal ( ) . add ( ( VariableExprToken ) param . getTokens ( ) . get ( NUMBER0 ) ) ; \n + } \n + } \n + } \n \n } while ( param != null ) ; \n nextToken ( iterator ) ;", "msg_token": "Fix local variable reference detection"} {"diff": " public class VideoEditorProfile \n case MediaProperties . VCODEC_H263 : \n case MediaProperties . VCODEC_H264 : \n case MediaProperties . VCODEC_MPEG4 : \n - level = native_get_videoeditor_export_profile ( vidCodec ) ; \n + level = native_get_videoeditor_export_level ( vidCodec ) ; \n break ; \n default : \n throw new IllegalArgumentException ( STRING0 + vidCodec ) ;", "msg_token": "Can t export a movie Error returned from OMX API in ducati"} {"diff": " public class MapActivityActions implements DialogProvider { \n if ( onShow != null ) { \n onShow . onClick ( v ) ; \n } \n - targetPointsHelper . setSingleDestination ( location . getLatitude ( ) , location . getLongitude ( ) , name ) ; \n + SINGLE \n + getMyApplication ( ) . getSettings ( ) . setPointToNavigate ( latitude , longitude , true , name ) ; \n + targetPointsHelper . updatePointsFromSettings ( ) ; \n + SINGLE \n + if ( ! routingHelper . isRouteBeingCalculated ( ) && ! routingHelper . isRouteCalculated ( ) ) { \n + getDirections ( null , new LatLon ( latitude , longitude ) , true ) ; \n MapActivity . launchMapActivityMoveToTop ( activity ) ; \n qa . dismiss ( ) ; \n }", "msg_token": "do not delete waypoints when chosing directions"} {"diff": " public class AudioTrack \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AudioTrack \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AudioTrack \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setPlaybackParams ( @ nonnull PlaybackParams params ) {", "msg_token": "Spell out parameters"} {"diff": " public class CassandraDaemon \n \n daemon . start ( ) ; \n } \n - catch ( Exception e ) \n + catch ( Throwable e ) \n { \n String msg = STRING0 ; \n logger . error ( msg , e ) ;", "msg_token": "catch Throwable on startup rather than Exception"} {"diff": " public class GroupExpression < T > extends SimpleOperation < T > { \n } \n } \n \n + @ override \n + public int hashCode ( ) { \n + return super . hashCode ( ) ; \n + } \n + \n }", "msg_token": "fixed Sonar issues"} {"diff": " public final class Actions { \n } \n \n @ suppresswarnings ( STRING0 ) \n - public static final < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > EmptyAction < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > empty ( ) { \n + public static < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > EmptyAction < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > empty ( ) { \n return EMPTY_ACTION ; \n }", "msg_token": "Remove redundant final modifier from static method in Actions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac \n SINGLE \n Class beanClass = resolveBeanClass ( mbd , beanName ) ; \n \n + if ( beanClass != null && ! Modifier . isPublic ( beanClass . getModifiers ( ) ) && ! mbd . isNonPublicAccessAllowed ( ) ) { \n + throw new BeanCreationException ( mbd . getResourceDescription ( ) , beanName , \n + STRING0 + beanClass . getName ( ) ) ; \n + } \n + \n if ( mbd . getFactoryMethodName ( ) != null ) { \n return instantiateUsingFactoryMethod ( beanName , mbd , args ) ; \n }", "msg_token": "prevent non public access to bean class as well if demanded"} {"diff": " package NAMESPACE ; \n public interface CUIEvent { \n \n SINGLE \n - public static final int MIN_PROTOCOL = NUMBER0 , CURRENT_PROTOCOL = NUMBER0 ; \n + public static final int MIN_PROTOCOL = - NUMBER1 , CURRENT_PROTOCOL = NUMBER0 ; SINGLE \n \n public String getTypeId ( ) ;", "msg_token": "Updated the min protocol version so people don t get warnings every time they join servers"} {"diff": " public class GeocodingUtilities { \n \n private static final Log log = PlatformUtil . getLog ( GeocodingUtilities . class ) ; \n \n + SINGLE \n public static final float THRESHOLD_MULTIPLIER_SKIP_STREETS_AFTER = NUMBER0 ; \n - public static final float STOP_SEARCHING_STREET_WITH_MULTIPLIER_RADIUS = NUMBER1 ; \n + public static final float STOP_SEARCHING_STREET_WITH_MULTIPLIER_RADIUS = NUMBER2 ; \n public static final float STOP_SEARCHING_STREET_WITHOUT_MULTIPLIER_RADIUS = NUMBER3 ; \n \n public static final int DISTANCE_STREET_NAME_PROXIMITY_BY_NAME = NUMBER4 ;", "msg_token": "Slightly change coefficient to search more streets"} {"diff": " public abstract class Http2ClientStream extends AbstractClientStream < Integer > { \n if ( transportError != null ) { \n SINGLE \n SINGLE \n - transportError = transportError . withDescription ( STRING0 + headers . toString ( ) ) ; \n + transportError = transportError . augmentDescription ( STRING0 + headers . toString ( ) ) ; \n errorCharset = extractCharset ( headers ) ; \n } else { \n stripTransportDetails ( headers ) ;", "msg_token": "Don t overwrite error message if bad headers"} {"diff": " public abstract class Script extends GroovyObjectSupport { \n GroovyShell shell = new GroovyShell ( binding ) ; \n return shell . evaluate ( file ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void run ( File file , String [ ] arguments ) throws SyntaxException , IOException { \n + GroovyShell shell = new GroovyShell ( binding ) ; \n + shell . run ( file , arguments ) ; \n + } \n }", "msg_token": "added run helper method too"} {"diff": " public final class Settings { \n MOVED_TO_GLOBAL . add ( Settings . Global . TETHER_SUPPORTED ) ; \n MOVED_TO_GLOBAL . add ( Settings . Global . USB_MASS_STORAGE_ENABLED ) ; \n MOVED_TO_GLOBAL . add ( Settings . Global . USE_GOOGLE_MAIL ) ; \n - MOVED_TO_GLOBAL . add ( Settings . Global . WEB_AUTOFILL_QUERY_URL ) ; \n MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_COUNTRY_CODE ) ; \n MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_FRAMEWORK_SCAN_INTERVAL_MS ) ; \n MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_FREQUENCY_BAND ) ; \n public final class Settings { \n COMMENT \n public static final String USE_GOOGLE_MAIL = STRING0 ; \n \n - COMMENT \n - COMMENT \n - public static final String WEB_AUTOFILL_QUERY_URL = \n - STRING1 ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Cleanup a unused setting"} {"diff": " public class InsecureCipherMode extends BugChecker implements MethodInvocationTr \n \n SINGLE \n SINGLE \n - if ( transformation . matches ( STRING0 ) || transformation . matches ( STRING1 ) ) { \n + SINGLE \n + if ( transformation . matches ( STRING0 ) || transformation . matches ( STRING1 ) \n + || transformation . matches ( STRING2 ) ) { \n return Description . NO_MATCH ; \n } \n \n public class InsecureCipherModeNegativeCases { \n } \n } \n \n + static Cipher rc4CipherJsch ; \n + static { \n + try { \n + rc4CipherJsch = Cipher . getInstance ( STRING3 , STRING4 ) ; \n + } catch ( NoSuchAlgorithmException e ) { \n + SINGLE \n + } catch ( NoSuchPaddingException e ) { \n + SINGLE \n + } catch ( NoSuchProviderException e ) { \n + SINGLE \n + } \n + } \n + \n static Cipher arcfourCipherSunJce ; \n static { \n try {", "msg_token": "Add a filter to InsecureCipherMode"} {"diff": " public class MainActivity extends Activity implements OnClickListener { \n } \n } ) ; \n \n + webView . send ( STRING0 ) ; \n + \n } \n \n public void pickFile ( ) {", "msg_token": "add more api demo"} {"diff": " public abstract class AbstractNewProjectDialog extends DialogWrapper { \n ListScrollingUtil . ensureSelectionExists ( myList ) ; \n } \n } ) ; \n - ListScrollingUtil . ensureSelectionExists ( myList ) ; \n return component ; \n }", "msg_token": "prevent list size toggle after first selection"} {"diff": " public class EventReceiverFirehoseTestClient \n SINGLE \n SINGLE \n int totalEventsPosted = NUMBER0 ; \n + int expectedEventsPosted = NUMBER0 ; \n while ( ( s = reader . readLine ( ) ) != null ) { \n events . add ( \n ( Map < String , Object > ) this . jsonMapper . readValue ( \n public class EventReceiverFirehoseTestClient \n : SmileMediaTypes . APPLICATION_JACKSON_SMILE ; \n totalEventsPosted += postEvents ( events , mapper , mediaType ) ; \n ; \n + expectedEventsPosted += events . size ( ) ; \n events = new ArrayList < > ( ) ; \n } \n \n - if ( totalEventsPosted != events . size ( ) ) { \n + if ( totalEventsPosted != expectedEventsPosted ) { \n throw new ISE ( STRING0 , events . size ( ) , totalEventsPosted ) ; \n } \n return totalEventsPosted ;", "msg_token": "fix broken integration test"} {"diff": " public final class ZWaveActivator implements BundleActivator { \n COMMENT \n public void start ( BundleContext bc ) throws Exception { \n context = bc ; \n - logger . debug ( STRING0 ) ; \n + logger . debug ( STRING1 , ZWaveActivator . getVersion ( ) ) ; \n } \n \n COMMENT \n public final class ZWaveActivator implements BundleActivator { \n COMMENT \n public void stop ( BundleContext bc ) throws Exception { \n context = null ; \n - logger . debug ( STRING2 ) ; \n + logger . debug ( STRING3 ) ; \n } \n \n COMMENT", "msg_token": "Add version number to binding start log"} {"diff": " public class HostsResource { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ delete \n @ path ( STRING0 )", "msg_token": "Fix incorrect comment"} {"diff": " class ConnectionState implements Watcher , Closeable \n finally \n { \n isConnected . set ( false ) ; \n + lost . set ( false ) ; \n } \n } \n \n class ConnectionState implements Watcher , Closeable \n if ( newIsConnected != wasConnected ) \n { \n isConnected . set ( newIsConnected ) ; \n + if ( newIsConnected ) \n + { \n + lost . set ( false ) ; \n + } \n connectionStartMs = System . currentTimeMillis ( ) ; \n } \n }", "msg_token": "If connection comes alive clear lost flag"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class RemoteExporter extends RemotingSupport { \n } \n } \n proxyFactory . setTarget ( getService ( ) ) ; \n + proxyFactory . setOpaque ( true ) ; \n return proxyFactory . getProxy ( getBeanClassLoader ( ) ) ; \n }", "msg_token": "RemoteExporter uses an opaque proxy for serviceInterface exposure no AOP interfaces exposed"} {"diff": " public class RecentApplicationsDialog extends Dialog implements OnClickListener \n if ( b == v ) { \n SINGLE \n Intent intent = ( Intent ) b . getTag ( ) ; \n - intent . addFlags ( Intent . FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY ) ; \n - getContext ( ) . startActivity ( intent ) ; \n + if ( intent != null ) { \n + intent . addFlags ( Intent . FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY ) ; \n + getContext ( ) . startActivity ( intent ) ; \n + } \n + break ; \n } \n } \n dismiss ( ) ;", "msg_token": "Prevent NPE in recent apps dialog"} {"diff": " public class InspectionApplication { \n PsiClass psiObjectClass = PsiManager . getInstance ( myProject ) . findClass ( STRING0 ) ; \n if ( psiObjectClass == null ) { \n logError ( InspectionsBundle . message ( STRING1 ) ) ; \n + System . exit ( NUMBER0 ) ; \n return ; \n } \n inspectionContext . launchInspectionsOffline ( scope , myOutPath , myRunWithEditorSettings , im ) ;", "msg_token": "fail offline inspections if no jdk found"} {"diff": " public class ClientConfig { \n if ( configPatternKey != null ) { \n return configPatterns . get ( configPatternKey ) ; \n } \n - LOGGER . warning ( STRING0 + itemName + STRING1 ) ; \n + if ( ! STRING2 . equals ( itemName ) ) { \n + LOGGER . warning ( STRING0 + itemName + STRING1 ) ; \n + } \n return null ; \n } \n } \n public class Config { \n if ( configPatternKey != null ) { \n return configPatterns . get ( configPatternKey ) ; \n } \n - LOGGER . warning ( STRING0 + itemName + STRING1 ) ; \n + if ( ! STRING2 . equals ( itemName ) ) { \n + LOGGER . warning ( STRING0 + itemName + STRING1 ) ; \n + } \n return null ; \n }", "msg_token": "Don t show no configuration found default is used warning for default configuration"} {"diff": " public class IdeRepaintManager extends RepaintManager { \n . invoke ( env , displayChangeHack ) ; \n } \n } catch ( Throwable t ) { \n - LOG . error ( STRING0 , t ) ; \n + if ( ! ( t instanceof HeadlessException ) ) LOG . error ( STRING0 , t ) ; \n } \n }", "msg_token": "tolerate headless env"} {"diff": " public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL \n } \n \n static float dpToPixels ( Context context , int dp ) { \n - return context . getResources ( ) . getDisplayMetrics ( ) . densityDpi \n - / DisplayMetrics . DENSITY_DEFAULT * dp ; \n + return dp * context . getResources ( ) . getDisplayMetrics ( ) . density ; \n } \n \n }", "msg_token": "Fix dp to pixel conversion error"} {"diff": " public class PluginsListTest { \n FileUtils . writeStringToFile ( externalPlugin2 , externalPlugin2 . getName ( ) ) ; \n FileUtils . writeStringToFile ( externalPlugin3 , externalPlugin3 . getName ( ) ) ; \n \n - when ( systemEnvironment . get ( PLUGIN_GO_PROVIDED_PATH ) ) . thenReturn ( bundledPluginsDir . getAbsolutePath ( ) ) ; \n - when ( systemEnvironment . get ( PLUGIN_EXTERNAL_PROVIDED_PATH ) ) . thenReturn ( externalPluginsDir . getAbsolutePath ( ) ) ; \n + when ( systemEnvironment . getBundledPluginAbsolutePath ( ) ) . thenReturn ( bundledPluginsDir . getAbsolutePath ( ) ) ; \n + when ( systemEnvironment . getExternalPluginAbsolutePath ( ) ) . thenReturn ( externalPluginsDir . getAbsolutePath ( ) ) ; \n \n pluginsList = new PluginsList ( systemEnvironment ) ; \n }", "msg_token": "Fixed the failing tests"} {"diff": " public class Resources { \n private final long mTheme ; \n \n SINGLE \n - COMMENT \n + COMMENT \n return mTheme ; \n } \n }", "msg_token": "Fix incorrect merge conflict to klp modular dev plus aosp"} {"diff": " public class UndertowEndpoint extends DefaultEndpoint implements HeaderFilterStr \n private Boolean tcpNoDelay = Boolean . TRUE ; \n @ uripath ( label = STRING0 , defaultValue = STRING1 ) \n private Boolean reuseAddresses = Boolean . TRUE ; \n - @ uriparam ( label = STRING0 ) \n + @ uriparam ( label = STRING0 , prefix = STRING2 , multiValue = true ) \n private Map < String , Object > options ; \n \n public UndertowEndpoint ( String uri , UndertowComponent component ) throws URISyntaxException {", "msg_token": "Add multi value to component docs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class BasicLookupStrategyTests { \n + SINGLE \n + \n private static JdbcTemplate jdbcTemplate ; \n \n private LookupStrategy strategy ;", "msg_token": "tidying up changes"} {"diff": " public abstract class AbstractTestQueries \n STRING0 ) ; \n \n assertQuery ( STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 , \n + STRING8 ) ; \n + \n + assertQuery ( STRING1 + \n + STRING9 + \n + STRING10 + \n + STRING4 + \n + STRING11 + \n + STRING12 + \n + STRING13 , \n + STRING14 ) ; \n + \n + assertQuery ( STRING1 + \n STRING15 + \n STRING16 + \n STRING17 +", "msg_token": "Add unit test for SELECT table"} {"diff": " public class ColibriIQProvider \n new DefaultPacketExtensionProvider < PayloadTypePacketExtension > ( \n PayloadTypePacketExtension . class ) ) ; \n providerManager . addExtensionProvider ( \n + RtcpFbPacketExtension . ELEMENT_NAME , \n + RtcpFbPacketExtension . NAMESPACE , \n + new DefaultPacketExtensionProvider < RtcpFbPacketExtension > ( \n + RtcpFbPacketExtension . class ) ) ; \n + providerManager . addExtensionProvider ( \n RTPHdrExtPacketExtension . ELEMENT_NAME , \n ColibriConferenceIQ . NAMESPACE , \n new DefaultPacketExtensionProvider < RTPHdrExtPacketExtension > ( \n public class ColibriIQProvider \n peName = name ; \n peNamespace = namespace ; \n } \n + else if ( RtcpFbPacketExtension . ELEMENT_NAME . equals ( \n + name ) \n + && RtcpFbPacketExtension . NAMESPACE \n + . equals ( parser . getNamespace ( ) ) ) \n + { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + peName = name ; \n + peNamespace = namespace ; \n + } \n else if ( RTPHdrExtPacketExtension . ELEMENT_NAME . equals ( \n name ) ) \n {", "msg_token": "Adds support for a payload type element in the ColibriIQ"} {"diff": " public class Step extends TexturedMaterial { \n textures . add ( Material . COBBLESTONE ) ; \n textures . add ( Material . BRICK ) ; \n textures . add ( Material . SMOOTH_BRICK ) ; \n + textures . add ( Material . NETHER_BRICK ) ; \n + textures . add ( Material . QUARTZ_BLOCK ) ; \n } \n \n public Step ( ) {", "msg_token": "Add missing materials to Step"} {"diff": " \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 ; \n public class AutobahnWebSocketServer { \n } \n } \n write ( channel , ws , buffer ) ; \n - \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n IoUtils . safeClose ( channel ) ;", "msg_token": "Add missing license header"} {"diff": " public class XmppConnectionService extends Service implements OnPhoneContactsLoa \n try { \n jid = Jid . fromString ( phoneContact . getString ( STRING0 ) ) ; \n } catch ( final InvalidJidException e ) { \n - break ; \n + continue ; \n } \n - final Contact contact = account . getRoster ( ) \n - . getContact ( jid ) ; \n + final Contact contact = account . getRoster ( ) . getContact ( jid ) ; \n String systemAccount = phoneContact . getInt ( STRING1 ) \n + STRING2 \n + phoneContact . getString ( STRING3 ) ;", "msg_token": "fixed another break continue bug"} {"diff": " public class PointSet implements Serializable { \n jp . skipChildren ( ) ; SINGLE \n } \n } \n - } catch ( Exception ex ) { \n + } catch ( Exception ex ) { \n LOG . error ( STRING0 ) ; \n return null ; \n } \n public class PointSet implements Serializable { \n String attrId = ad . getKey ( ) ; \n Integer attrVal = ad . getValue ( ) ; \n \n + this . getOrCreateCategoryForId ( attrId ) ; \n this . categories . get ( attrId ) [ index ] = attrVal ; \n \n + \n } \n }", "msg_token": "make sure ot create space for a category before putting data into it"} {"diff": " public class Intents { \n return new Intent ( ACTION_VIEW_EPISODE ) \n . putExtra ( EXTRA_SHOW_TVDBID , showTvdbId ) \n . putExtra ( EXTRA_EPISODE_TVDBID , episodeTvdbId ) \n - . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) \n - . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n + . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) \n + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TASK ) \n + . addFlags ( Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ; \n } \n \n COMMENT \n public class Intents { \n public static Intent buildViewShowIntent ( int showTvdbId ) { \n return new Intent ( ACTION_VIEW_SHOW ) \n . putExtra ( EXTRA_SHOW_TVDBID , showTvdbId ) \n - . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) \n - . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n + . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) \n + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TASK ) \n + . addFlags ( Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ; \n } \n }", "msg_token": "Use correct intent flags when viewing episodes or shows"} {"diff": " public class FragmentLayoutSupport extends FragmentActivity { \n SINGLE \n SINGLE \n FragmentTransaction ft = getFragmentManager ( ) . beginTransaction ( ) ; \n - ft . replace ( R . id . details , details ) ; \n + if ( index == NUMBER0 ) { \n + ft . replace ( R . id . details , details ) ; \n + } else { \n + ft . replace ( R . id . a_item , details ) ; \n + } \n ft . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) ; \n ft . commit ( ) ; \n }", "msg_token": "Rename UserId to UserHandle"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ target ( ElementType . TYPE ) \n @ retention ( RetentionPolicy . SOURCE )", "msg_token": "and added some more javadoc to point at the new main package variant"} {"diff": " public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR \n } else { \n processNonData ( analysis , request , listener ) ; \n } \n - } catch ( Exception e ) { \n + } catch ( Throwable e ) { \n logger . debug ( STRING0 , e ) ; \n sendResponse ( listener , buildSQLActionException ( e ) ) ; \n } \n public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR \n request . includeTypesOnResponse ( ) \n ) ; \n } \n - } catch ( Exception e ) { \n + } catch ( Throwable e ) { \n sendResponse ( listener , e ) ; \n return ; \n }", "msg_token": "catch Throwable instead Exception"} {"diff": " public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2 < Medi \n \n } catch ( Exception e ) { \n Log . v ( TAG , e . toString ( ) ) ; \n + assertTrue ( STRING0 , false ) ; \n } \n } \n \n public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2 < Medi \n \n } catch ( Exception e ) { \n Log . v ( TAG , e . toString ( ) ) ; \n + assertTrue ( STRING1 , false ) ; \n } \n } \n }", "msg_token": "Add the checking for mediaplayer stress test"} {"diff": " public class Operation { \n private List < Scheme > schemes ; \n private List < String > consumes ; \n private List < String > produces ; \n - private List < Parameter > parameters ; \n + private List < Parameter > parameters = new ArrayList < Parameter > ( ) ; \n private Map < String , Response > responses ; \n private List < Map < String , List < String > > > security ; \n private String example ;", "msg_token": "added default array for parameters as they are required per the spec"} {"diff": " public class GraphPath { \n Edge edge = state . getBackEdge ( ) ; \n EdgeNarrative narrative = state . getBackEdgeNarrative ( ) ; \n StateEditor editor = root . edit ( edge , narrative ) ; \n - editor . setTime ( next . getTime ( ) ) ; \n - editor . setFromState ( state ) ; \n + editor . incrementTimeMsec ( state . getAbsTimeDeltaMsec ( ) ) ; \n + editor . incrementWeight ( state . getWeightDelta ( ) ) ; \n root = editor . makeState ( ) ; \n state = state . getBackState ( ) ; \n }", "msg_token": "Change GraphPath reverse to accumulate weight"} {"diff": " public class PipelineStore extends AbstractLifecycleComponent { \n return factory . create ( id , config , processorFactoryRegistry ) ; \n } \n \n - void updatePipelines ( ) throws IOException { \n + synchronized void updatePipelines ( ) throws IOException { \n SINGLE \n SINGLE", "msg_token": "made updatePipelines to not make it prone to race conditions"} {"diff": " public @ interface TestPropertySource { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix broken Javadoc link in TestPropertySource"} {"diff": " public final class UniqueId implements UniqueIdInterface { \n results . put ( new String ( column . qualifier ( ) , CHARSET ) , \n Bytes . getLong ( column . value ( ) ) ) ; \n } \n + \n + SINGLE \n + SINGLE \n + for ( final byte [ ] kind : kinds ) { \n + if ( results . get ( new String ( kind , CHARSET ) ) == null ) { \n + results . put ( new String ( kind , CHARSET ) , NUMBER0 L ) ; \n + } \n + } \n return results ; \n }", "msg_token": "Fix exception raised by missing map entries when fetching STATs for a TSD with"} {"diff": " public class UriBeaconDiscoveryService extends Service \n private static final int NON_LOLLIPOP_NOTIFICATION_TITLE_COLOR = Color . parseColor ( STRING0 ) ; \n private static final int NON_LOLLIPOP_NOTIFICATION_URL_COLOR = Color . parseColor ( STRING1 ) ; \n private static final int NON_LOLLIPOP_NOTIFICATION_SNIPPET_COLOR = Color . parseColor ( STRING1 ) ; \n - private static final int NOTIFICATION_PRIORITY = NotificationCompat . PRIORITY_LOW ; \n + private static final int NOTIFICATION_PRIORITY = NotificationCompat . PRIORITY_MIN ; \n private static final int NOTIFICATION_VISIBILITY = NotificationCompat . VISIBILITY_PUBLIC ; \n private static final long NOTIFICATION_UPDATE_GATE_DURATION = NUMBER0 ; \n private boolean mCanUpdateNotifications = false ;", "msg_token": "android Change notify priority from low to min"} {"diff": " public class AccountActivity extends ThemeableActivity { \n public void onClick ( View v ) { \n \n checkUserChanged ( ) ; \n + \n + if ( mUseTor . isChecked ( ) ) \n + { \n + OrbotHelper oh = new OrbotHelper ( AccountActivity . this ) ; \n + if ( ! oh . isOrbotRunning ( ) ) \n + { \n + oh . requestOrbotStart ( AccountActivity . this ) ; \n + return ; \n + } \n + } \n + \n \n final String pass = mEditPass . getText ( ) . toString ( ) ; \n final boolean rememberPass = mRememberPass . isChecked ( ) ; \n public class AccountActivity extends ThemeableActivity { \n isSignedIn = true ; \n } \n updateWidgetState ( ) ; \n + \n } \n } ) ; \n \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "uses OrbotHelper to check if Tor is running"} {"diff": " public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit \n if ( mParent instanceof ViewGroup ) { \n ( ( ViewGroup ) mParent ) . onChildVisibilityChanged ( this , ( flags & VISIBILITY_MASK ) ) ; \n ( ( View ) mParent ) . invalidate ( true ) ; \n + } else if ( mParent != null ) { \n + mParent . invalidateChild ( this , null ) ; \n } \n dispatchVisibilityChanged ( this , ( flags & VISIBILITY_MASK ) ) ; \n }", "msg_token": "Fixed bug with invalidation in top level Views"} {"diff": " class JspReader { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public JspReader ( JspCompilationContext ctxt , \n String fname ,", "msg_token": "Complete missing Javadoc"} {"diff": " class LibraryPath { \n int n0 = path . indexOf ( STRING0 ) ; \n \n int n1 = - NUMBER0 ; \n + COMMENT \n if ( Platform . isWindows ( ) ) { \n n1 = path . indexOf ( STRING1 ) ; SINGLE \n SINGLE \n class LibraryPath { \n } else if ( Platform . isMac ( ) ) { \n SINGLE \n SINGLE \n - n1 = path . indexOf ( STRING2 ) ; \n - } else if ( Platform . isLinux ( ) ) { \n + n1 = path . indexOf ( STRING2 ) ; \n + COMMENT \n + \n + \n + if ( Platform . isLinux ( ) ) { \n return STRING3 ; \n + } else { \n + n1 = path . indexOf ( STRING2 ) ; \n + if ( Platform . isWindows ( ) ) { \n + SINGLE \n + SINGLE \n + n0 ++ ; \n + } \n } \n \n if ( ( - NUMBER0 < n0 ) && ( - NUMBER0 < n1 ) ) {", "msg_token": "Using new location of video library files in exported app"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SlidingUpPanelLayout extends ViewGroup { \n COMMENT \n COMMENT \n public boolean expandPanel ( float mSlideOffset ) { \n - if ( mSlideState == SlideState . EXPANDED ) return false ; \n + if ( mSlideableView == null || mSlideState == SlideState . EXPANDED ) return false ; \n mSlideableView . setVisibility ( View . VISIBLE ) ; \n return expandPanel ( mSlideableView , NUMBER0 , mSlideOffset ) ; \n } \n public class SlidingUpPanelLayout extends ViewGroup { \n } \n \n public void showPanel ( ) { \n - if ( mSlideState != SlideState . HIDDEN ) return ; \n + if ( mSlideableView == null || mSlideState != SlideState . HIDDEN ) return ; \n mSlideableView . setVisibility ( View . VISIBLE ) ; \n requestLayout ( ) ; \n smoothSlideTo ( NUMBER0 , NUMBER0 ) ;", "msg_token": "Fixed the expand show NPEs"} {"diff": " public class UnsharableCodecsConflicts2Test extends BaseNettyTest { \n \n @ override \n public void process ( Exchange exchange ) throws Exception { \n - exchange . getOut ( ) . setBody ( \n - new String ( ( ( BigEndianHeapChannelBuffer ) exchange . getIn ( ) \n - . getBody ( ) ) . array ( ) ) ) ; \n + exchange . getOut ( ) . setBody ( exchange . getIn ( ) . getBody ( String . class ) ) ; \n } \n } \n } \n public class UnsharableCodecsConflictsTest extends BaseNettyTest { \n \n @ override \n public void process ( Exchange exchange ) throws Exception { \n - exchange . getOut ( ) . setBody ( new String ( ( ( BigEndianHeapChannelBuffer ) exchange . getIn ( ) . getBody ( ) ) . array ( ) ) ) ; \n + exchange . getOut ( ) . setBody ( exchange . getIn ( ) . getBody ( String . class ) ) ; \n } \n }", "msg_token": "Using camel converter directly in the UnsharableCodecsConflicts Test"} {"diff": " public class SimpleProjectRoot implements ProjectRoot , JDOMExternalizable { \n private boolean myInitialized = false ; \n @ nonnls private static final String ATTRIBUTE_URL = STRING0 ; \n \n - SimpleProjectRoot ( @ notnull VirtualFile file ) { \n + public SimpleProjectRoot ( @ notnull VirtualFile file ) { \n myFile = file ; \n myUrl = myFile . getUrl ( ) ; \n }", "msg_token": "Fixed loosing egg interpreter path after reload"} {"diff": " final public class MediaCodec { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void configure ( \n MediaFormat format ,", "msg_token": "add undocumented exceptions to MediaCodec api"} {"diff": " public class Solo { \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 \n class ViewFetcher { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for getCurrentRadioButtons in Solo and ViewFetcher"} {"diff": " public final class BlockLockManager { \n SINGLE \n if ( blockLock == null ) { \n blockLock = mLockPool . acquire ( NUMBER0 , TimeUnit . SECONDS ) ; \n - acquiredNewLock = true ; \n + acquiredNewLock = ( blockLock != null ) ; \n } \n } \n SINGLE", "msg_token": "Fix stress test"} {"diff": " public class EditorPlace extends JComponent implements Disposable , ButtonlessScr \n \n int offset = DiffDivider . MERGE_SCROLL_DIVIDER_POLYGONS_OFFSET ; \n ArrayList < DividerPolygon > polygons = \n - DividerPolygon . createVisiblePolygons ( myMergePanel . getSecondEditingSide ( ) , FragmentSide . SIDE1 , offset ) ; \n + DividerPolygon . createVisiblePolygons ( myMergePanel . getSecondEditingSide ( true ) , FragmentSide . SIDE1 , offset ) ; \n for ( DividerPolygon polygon : polygons ) { \n int startY = polygon . getTopLeftY ( ) ; \n int endY = polygon . getBottomLeftY ( ) ;", "msg_token": "draw applied changes on scrollbar"} {"diff": " final class WebViewCore { \n return view ; \n } \n \n + private void updateSurface ( ViewManager . ChildView childView , int x , int y , \n + int width , int height ) { \n + childView . attachView ( x , y , width , height ) ; \n + } \n + \n private void destroySurface ( ViewManager . ChildView childView ) { \n childView . removeView ( ) ; \n }", "msg_token": "Enabling plugin surfaces to update their position in the UI"} {"diff": " public class MocoTemplateTest extends AbstractMocoHttpTest { \n } \n } ) ; \n } \n + \n + @ test \n + public void should_generate_response_with_many_extracted_variables ( ) throws Exception { \n + server . request ( by ( uri ( STRING0 ) ) ) . response ( template ( STRING1 , STRING2 , xpath ( STRING3 ) ) ) ; \n + \n + running ( server , new Runnable ( ) { \n + @ override \n + public void run ( ) throws Exception { \n + assertThat ( helper . postFile ( remoteUrl ( STRING0 ) , STRING4 ) , is ( STRING5 ) ) ; \n + } \n + } ) ; \n + } \n }", "msg_token": "added test for many extracted variables"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ configurationproperties ( prefix = STRING0 ) \n + @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = false ) \n public class GroovyTemplateProperties { \n \n public static final String DEFAULT_PREFIX = STRING1 ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class GroovyTemplateView extends AbstractUrlBasedView { \n protected void renderMergedOutputModel ( Map < String , Object > model , \n HttpServletRequest request , HttpServletResponse response ) throws Exception { \n applyContentType ( response ) ; \n + model . put ( STRING2 , new RequestContext ( request , response , getServletContext ( ) , \n + model ) ) ; \n this . template . make ( model ) . writeTo ( new BufferedWriter ( response . getWriter ( ) ) ) ; \n }", "msg_token": "Add RequestContext to Groovy template view model"} {"diff": " public class WalletTool { \n default : \n throw new RuntimeException ( STRING0 ) ; \n } \n + Context . propagate ( new Context ( params ) ) ; \n + \n mode = modeFlag . value ( options ) ; \n \n SINGLE", "msg_token": "Properly initialize context"} {"diff": " public class AUC extends Iced { \n _cms [ i ] = new ConfusionMatrix2 ( NUMBER0 ) ; \n final int len = Math . min ( ca . _len , cp . _len ) ; \n for ( int i = NUMBER1 ; i < len ; i ++ ) { \n - assert ( ! ca . isNA0 ( i ) ) ; SINGLE \n + if ( ca . isNA0 ( i ) ) \n + throw new UnsupportedOperationException ( STRING0 ) ; \n final int a = ( int ) ca . at80 ( i ) ; SINGLE \n assert ( a == NUMBER1 || a == NUMBER2 ) : STRING1 ; \n if ( cp . isNA0 ( i ) ) {", "msg_token": "Replace assertion with exception"} {"diff": " \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n package NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Added file headers to TopologicalSort"} {"diff": " import NAMESPACE ; \n public class Base { \n SINGLE \n SINGLE \n - static private final int REVISION = NUMBER0 ; \n + static private final int REVISION = NUMBER1 ; \n COMMENT \n - static private String VERSION_NAME = STRING0 ; SINGLE \n + static private String VERSION_NAME = STRING1 ; SINGLE \n COMMENT \n \n COMMENT", "msg_token": "starting the next release"} {"diff": " public final class BufferUtils { \n \n private static final Map < Buffer , Object > trackingHash = Collections . synchronizedMap ( new WeakHashMap < Buffer , Object > ( ) ) ; \n private static final Object ref = new Object ( ) ; \n - private static final boolean trackDirectMemory = true ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + private static final boolean trackDirectMemory = false ; \n \n COMMENT \n COMMENT", "msg_token": "Turning the memory tracking off since it s pretty expensive"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \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", "msg_token": "Added javadoc for itemMapping and dropdownMapping"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HTML5VideoView implements MediaPlayer . OnPreparedListener { \n protected boolean mAutostart ; \n \n SINGLE \n - protected String mUri ; \n + protected Uri mUri ; \n protected Map < String , String > mHeaders ; \n \n SINGLE \n public class HTML5VideoView implements MediaPlayer . OnPreparedListener { \n \n public void setVideoURI ( String uri , HTML5VideoViewProxy proxy ) { \n SINGLE \n - mUri = uri ; \n + mUri = Uri . parse ( uri ) ; \n mHeaders = generateHeaders ( uri , proxy ) ; \n } \n \n public class HTML5VideoView implements MediaPlayer . OnPreparedListener { \n SINGLE \n SINGLE \n try { \n - mPlayer . setDataSource ( mUri , mHeaders ) ; \n + mPlayer . setDataSource ( mProxy . getContext ( ) , mUri , mHeaders ) ; \n mPlayer . prepareAsync ( ) ; \n } catch ( IllegalArgumentException e ) { \n e . printStackTrace ( ) ;", "msg_token": "Fix the Uri parsing issue"} {"diff": " class SipSessionGroup implements SipListener { \n case Response . UNAUTHORIZED : \n case Response . PROXY_AUTHENTICATION_REQUIRED : \n if ( ! handleAuthentication ( event ) ) { \n - Log . v ( TAG , STRING0 ) ; \n - onRegistrationFailed ( SipErrorCode . INVALID_CREDENTIALS , \n - STRING1 ) ; \n + if ( mLastNonce == null ) { \n + onRegistrationFailed ( SipErrorCode . SERVER_ERROR , \n + STRING2 ) ; \n + } else { \n + Log . v ( TAG , STRING0 ) ; \n + onRegistrationFailed ( \n + SipErrorCode . INVALID_CREDENTIALS , \n + STRING1 ) ; \n + } \n } \n return true ; \n default : \n class SipSessionGroup implements SipListener { \n case Response . PROXY_AUTHENTICATION_REQUIRED : \n if ( handleAuthentication ( event ) ) { \n addSipSession ( this ) ; \n + } else if ( mLastNonce == null ) { \n + endCallOnError ( SipErrorCode . SERVER_ERROR , \n + STRING2 ) ; \n } else { \n endCallOnError ( SipErrorCode . INVALID_CREDENTIALS , \n STRING1 ) ;", "msg_token": "send SERVER_ERROR if server doesn t provide nonce"} {"diff": " public class DumbServiceImpl extends DumbService implements Disposable { \n public void run ( ) { \n runWhenSmart ( runnable ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return runnable . toString ( ) ; \n + } \n } , myProject . getDisposed ( ) ) ; \n }", "msg_token": "add cosmetic toString"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public enum RemoteConnectionType { \n COMMENT \n NONE ; \n \n + private static final Logger LOG = Logger . getInstance ( RemoteConnectionType . class ) ; \n + \n public static RemoteConnectionType findByName ( String name ) { \n try { \n return valueOf ( name ) ; \n } \n catch ( Exception e ) { \n + LOG . error ( STRING0 + name , e ) ; \n return NONE ; \n } \n }", "msg_token": "Logging an error in case of absent name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class InsertBaseTest extends AbstractBaseTest { \n public abstract class InsertBaseTest extends AbstractBaseTest { \n public void Insert_With_Keys_Projected ( ) throws SQLException { \n assertNotNull ( insert ( survey ) . set ( survey . name , STRING0 ) . executeWithKey ( survey . id ) ) ; \n } \n + \n + @ test \n + @ excludein ( { Target . HSQLDB , Target . DERBY , Target . POSTGRES } ) \n + public void Insert_With_Keys_Projected2 ( ) throws SQLException { \n + Path < Object > idPath = new PathImpl < Object > ( Object . class , STRING1 ) ; \n + Object id = insert ( survey ) . set ( survey . name , STRING0 ) . executeWithKey ( idPath ) ; \n + assertNotNull ( id ) ; \n + } \n \n @ test \n public void Insert_Null_With_Columns ( ) {", "msg_token": "added test for executeWithKey"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class DrawingCacheHolder {", "msg_token": "remove unused import"} {"diff": " import NAMESPACE ; \n public class PCAModelV3 extends ModelSchema < PCAModel , PCAModelV3 , PCAModel . PCAParameters , PCAV3 . PCAParametersV3 , PCAModel . PCAOutput , PCAModelV3 . PCAModelOutputV3 > { \n public static final class PCAModelOutputV3 extends ModelOutputSchema < PCAModel . PCAOutput , PCAModelOutputV3 > { \n SINGLE \n + SINGLE \n + @ api ( help = STRING0 ) \n + public double [ ] std_deviation ; \n + \n @ api ( help = STRING1 ) \n public TwoDimTableBase pc_importance ;", "msg_token": "Put back redundant std_deviation output"} {"diff": " public class GTFSPatternHopFactory { \n _log . warn ( STRING0 + trip . getId ( ) \n + STRING1 ) ; \n \n + simple = true ; \n createSimpleHops ( graph , trip , stopTimes ) ; \n \n } else { \n public class GTFSPatternHopFactory { \n addTripToInterliningMap ( tripsByBlockAndStart , trip , stopTimes , tripPattern , \n blockId ) ; \n } \n + tripPattern . setTripFlags ( insertionPoint , ( trip . getWheelchairAccessible ( ) != NUMBER0 ) ? TripPattern . FLAG_WHEELCHAIR_ACCESSIBLE : NUMBER0 ) ; \n } \n - tripPattern . setTripFlags ( insertionPoint , ( trip . getWheelchairAccessible ( ) != NUMBER0 ) ? TripPattern . FLAG_WHEELCHAIR_ACCESSIBLE : NUMBER0 ) ; \n } \n }", "msg_token": "set flags properly in the cases of simple hops"} {"diff": " public class OutputMappers \n { \n return asList ( userClass . getDeclaredFields ( ) ) . stream ( ) \n . filter ( ( f ) - > ! isStatic ( f . getModifiers ( ) ) && \n - ! isSynthetic ( f . getModifiers ( ) ) ) \n + ! f . isSynthetic ( ) ) \n . collect ( toList ( ) ) ; \n } \n - \n - private static boolean isSynthetic ( int modifiers ) \n - { \n - return ( modifiers & NUMBER0 ) != NUMBER1 ; \n - } \n }", "msg_token": "Use built in isSynthetic instead of reimplementing it"} {"diff": " public final class ServiceManager { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ServiceManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean isHealthy ( ) { \n - boolean result = true ; \n for ( Service service : services . keySet ( ) ) { \n if ( ! service . isRunning ( ) ) { \n - State state = service . state ( ) ; \n - if ( state == State . FAILED ) { \n - logger . log ( Level . SEVERE , STRING0 + service + STRING1 , service . failureCause ( ) ) ; \n - } else { \n - logger . severe ( STRING2 + service + STRING3 + state ) ; \n - } \n - result = false ; \n + return false ; \n } \n } \n - return result ; \n + return true ; \n } \n \n COMMENT", "msg_token": "Remove logging from ServiceManager isHealthy"} {"diff": " public abstract class GroovyCompilerTestCase extends JavaCodeInsightFixtureTestC \n file . setBinaryContent ( file . contentsToByteArray ( ) , file . getModificationStamp ( ) + NUMBER0 , file . getTimeStamp ( ) + NUMBER0 ) ; \n File ioFile = VfsUtil . virtualToIoFile ( file ) ; \n assert ioFile . setLastModified ( ioFile . lastModified ( ) - NUMBER1 ) ; \n + file . refresh ( false , false ) ; \n } \n \n protected static void setFileText ( final PsiFile file , final String barText ) throws IOException {", "msg_token": "refresh vfs in touch"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class OSProcessUtil { \n private static final Logger LOG = Logger . getInstance ( OSProcessUtil . class ) ;", "msg_token": "get back the copyright"} {"diff": " public class IdeErrorMessages { \n \n MAP . put ( MANY_IMPL_MEMBER_NOT_IMPLEMENTED , STRING0 , \n RENDER_CLASS_OR_OBJECT , DescriptorRenderer . HTML ) ; \n + MAP . put ( CONFLICTING_OVERLOADS , STRING1 , DescriptorRenderer . HTML , TO_STRING ) ; \n \n MAP . setImmutable ( ) ; \n }", "msg_token": "Added IDE error messages for CONFLICTING_OVERLOADS"} {"diff": " public class TestVoiceActivity extends SherlockActivity { \n addButton ( ll , STRING0 , builder ( p ) . arrivedAtWayPoint ( STRING1 ) ) ; \n addButton ( ll , STRING2 , builder ( p ) . offRoute ( NUMBER0 ) ) ; \n addButton ( ll , STRING3 , builder ( p ) . speedAlarm ( ) ) ; \n - addButton ( ll , STRING4 , builder ( p ) . attention ( STRING5 ) ) ; \n + addButton ( ll , STRING6 , builder ( p ) . attention ( STRING7 ) ) ; \n ll . forceLayout ( ) ; \n }", "msg_token": "remove obvious sped cam reference from test button"} {"diff": " public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark \n private Cache cache ; \n private static byte [ ] randBytes ; \n \n + @ param ( { STRING0 } ) String hosts ; \n + \n SINGLE \n @ param ( { STRING1 , STRING2 , STRING3 , STRING4 } ) int objectSize ; \n @ param ( { STRING5 , STRING6 } ) int objectCount ; \n public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark \n SINGLE \n transcoder . setCompressionThreshold ( Integer . MAX_VALUE ) ; \n \n + System . out . println ( String . format ( STRING7 , hosts ) ) ; \n + \n client = new MemcachedClient ( \n new ConnectionFactoryBuilder ( ) . setProtocol ( ConnectionFactoryBuilder . Protocol . BINARY ) \n . setHashAlg ( DefaultHashAlgorithm . FNV1A_64_HASH ) \n public class MemcachedCacheBrokerBenchmark extends SimpleBenchmark \n . setTranscoder ( transcoder ) \n . setShouldOptimize ( true ) \n . build ( ) , \n - AddrUtil . getAddresses ( System . getProperty ( STRING8 , STRING0 ) ) \n + AddrUtil . getAddresses ( hosts ) \n ) ; \n \n broker = new MemcachedCacheBroker (", "msg_token": "add parameter for benchmarking host"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class FormAuthenticator \n uriCC . setLimit ( - NUMBER0 ) ; \n String contextPath = request . getContextPath ( ) ; \n String requestURI = request . getDecodedRequestURI ( ) ; \n - response . setContext ( request . getContext ( ) ) ; \n \n SINGLE \n boolean loginAction = \n public class FormAuthenticator \n COMMENT \n COMMENT \n COMMENT \n - protected boolean restoreRequest ( Request request , Session session ) \n - throws IOException { \n + protected boolean restoreRequest ( Request request , Session session ) { \n \n SINGLE \n SavedRequest saved = ( SavedRequest )", "msg_token": "Remove code that doesn t do anything"} {"diff": " public class Dialog implements DialogInterface , Window . Callback , \n } \n \n private void dismissDialog ( ) { \n - if ( mDecor == null || ! mShowing || mDecor . getWindowToken ( ) == null ) { \n + if ( mDecor == null || ! mShowing ) { \n return ; \n }", "msg_token": "Dismiss a dialog if dimissed right after calling show"} {"diff": " public class SelfSignedSSLCertsManager { \n } \n try { \n createLocalKeyStoreFile ( ) ; \n - localKeyStore = KeyStore . getInstance ( STRING0 ) ; \n } catch ( GeneralSecurityException e ) { \n + AppLog . e ( T . API , STRING1 , e ) ; \n } catch ( IOException e ) { \n + AppLog . e ( T . API , STRING1 , e ) ; \n } \n }", "msg_token": "Fix an issue where Keystore was not properly restarted on sign out"} {"diff": " public class BrowserUtil { \n \n private static List < String > getOpenBrowserWinCommand ( @ nullable String browserPath ) { \n ArrayList < String > command = new ArrayList < String > ( ) ; \n - command . add ( ! SystemInfo . isWin2kOrNewer ? STRING0 : STRING1 ) ; \n + command . add ( SystemInfo . isWin2kOrNewer ? STRING0 : STRING1 ) ; \n command . add ( STRING2 ) ; \n command . add ( STRING3 ) ; \n command . add ( STRING4 ) ;", "msg_token": "restore open browser on windows"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix a bad merge"} {"diff": " public class VertexBuffer extends NativeObject implements Savable , Cloneable { \n SINGLE \n \n this . usage = usage ; \n + this . setUpdateNeeded ( ) ; \n } \n \n COMMENT", "msg_token": "indicate refresh when usage changes"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class Script extends GroovyObjectSupport { \n try { \n object = getProperty ( STRING0 ) ; \n } catch ( MissingPropertyException e ) { \n - System . out . print ( value ) ; \n + DefaultGroovyMethods . print ( System . out , value ) ; \n return ; \n } \n \n public abstract class Script extends GroovyObjectSupport { \n try { \n object = getProperty ( STRING0 ) ; \n } catch ( MissingPropertyException e ) { \n - System . out . println ( value ) ; \n + DefaultGroovyMethods . println ( System . out , value ) ; \n return ; \n }", "msg_token": "corrects println and print implementation for Scripts to use the DefaultGroovyMethods method instead of directly printing to System out"} {"diff": " public enum ExceptionMessage { \n NO_RPC_HANDLER ( STRING0 ) , \n UNEXPECTED_RPC_RESPONSE ( STRING1 ) , \n WRITER_ALREADY_OPEN ( STRING2 ) , \n - UNDER_FILE_WRITE_ERROR ( STRING3 ) , \n + UNDER_FILE_WRITE_ERROR ( STRING4 ) , \n \n SINGLE \n ADD_EXISTING_BLOCK ( STRING5 ) ,", "msg_token": "Fix error message"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Fixed some warnings"} {"diff": " public class ClosureCodingConvention extends DefaultCodingConvention { \n } else if ( callNode . getChildCount ( ) == NUMBER0 ) { \n SINGLE \n subclass = callName . getNext ( ) ; \n + } else { \n + return null ; \n } \n \n if ( type == SubclassType . MIXIN ) { \n public class ClosureCodingConventionTest extends TestCase { \n assertNotClassDefining ( STRING0 ) ; \n } \n \n + public void testInheritanceDetection14 ( ) { \n + assertNotClassDefining ( STRING1 ) ; \n + } \n + \n public void testInheritanceDetectionPostCollapseProperties ( ) { \n assertDefinesClasses ( STRING2 , STRING3 , STRING4 ) ; \n assertNotClassDefining ( STRING5 ) ;", "msg_token": "fix an NPE"} {"diff": " import NAMESPACE ; \n \n public interface Scanner { \n Set < Class < ? > > classes ( ) ; \n + boolean getPrettyPrint ( ) ; \n + void setPrettyPrint ( boolean shouldPrettyPrint ) ; \n }", "msg_token": "added getter made protected"} {"diff": " public class MethodLibrary { \n name = STRING0 , \n objectType = MutableList . class , \n returnType = Runtime . NoneType . class , \n - documented = false , \n doc = STRING1 , \n mandatoryPositionals = { \n @ param ( name = STRING2 , type = MutableList . class , doc = STRING3 ) , \n public class MethodLibrary { \n name = STRING4 , \n objectType = MutableList . class , \n returnType = Runtime . NoneType . class , \n - documented = false , \n doc = STRING5 , \n mandatoryPositionals = { \n @ param ( name = STRING2 , type = MutableList . class , doc = STRING3 ) ,", "msg_token": "Add list append and list extend to the documentation"} {"diff": " class JPASubsystemAdd implements ModelAddOperationHandler , BootOperationHandler \n updateContext . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_PERSISTENCE_UNIT , new PersistenceUnitParseProcessor ( ) ) ; \n updateContext . addDeploymentProcessor ( Phase . PARSE , Phase . PARSE_PERSISTENCE_ANNOTATION , new JPAAnnotationParseProcessor ( ) ) ; \n updateContext . addDeploymentProcessor ( Phase . DEPENDENCIES , Phase . DEPENDENCIES_JPA , new JPADependencyProcessor ( ) ) ; \n - updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENCE_PROVIDER , new PersistenceProviderProcessor ( ) ) ; \n + SINGLE \n updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENCE_REF , new PersistenceRefProcessor ( ) ) ; \n updateContext . addDeploymentProcessor ( Phase . INSTALL , Phase . INSTALL_PERSISTENTUNIT , new PersistenceUnitDeploymentProcessor ( ) ) ; \n }", "msg_token": "disable TLD persistence provider need to move that to a branch or finish it"} {"diff": " import static NAMESPACE ; \n @ jsonsubtypes.type ( value = TableCommitNode . class , name = STRING0 ) , \n @ jsonsubtypes.type ( value = UnnestNode . class , name = STRING1 ) , \n @ jsonsubtypes.type ( value = ExchangeNode . class , name = STRING2 ) , \n + @ jsonsubtypes.type ( value = UnionNode . class , name = STRING3 ) , \n } ) \n public abstract class PlanNode \n {", "msg_token": "Add missing json serialization for UnionNode"} {"diff": " public class KafkaUtils { \n public static final Logger LOG = LoggerFactory . getLogger ( KafkaUtils . class ) ; \n private static final int NO_OFFSET = - NUMBER0 ; \n \n + SINGLE \n + private KafkaUtils ( ) { \n + throw new AssertionError ( ) ; \n + } \n \n public static IBrokerReader makeBrokerReader ( Map stormConf , KafkaConfig conf ) { \n if ( conf . hosts instanceof StaticHosts ) {", "msg_token": "add private constructor for Utils class"} {"diff": " public class ShadowPreference { \n protected Context context ; \n protected AttributeSet attrs ; \n protected int defStyle ; \n - protected boolean shouldPersist = true ; \n + protected boolean shouldPersist = false ; \n protected int persistedInt ; \n \n public void __constructor__ ( Context context , AttributeSet attrs , int defStyle ) {", "msg_token": "Assuming Preference shouldPersist defaults to false"} {"diff": " public class PGL { \n fboLayerCreated = false ; \n fboLayerInUse = false ; \n firstFrame = false ; \n + GLProfile . shutdown ( ) ; \n }", "msg_token": "Added manual GLProfile shutdown to make sure that no JOGL threads are"} {"diff": " public class Pixmap implements Disposable { \n COMMENT \n COMMENT \n public int getPixel ( int x , int y ) { \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n return NUMBER0 ; \n }", "msg_token": "fixed Pixmap getPixel won t work for a while"} {"diff": " public final class ConcatenateStrategy implements CustomMergeStrategy { \n private byte lastByteCopied = STRING0 ; \n private final boolean appendNewLine ; \n \n - ConcatenateStrategy ( ) { \n + public ConcatenateStrategy ( ) { \n this ( true ) ; \n } \n \n public final class ConcatenateStrategy implements CustomMergeStrategy { \n COMMENT \n COMMENT \n COMMENT \n - ConcatenateStrategy ( boolean appendNewLine ) { \n + public ConcatenateStrategy ( boolean appendNewLine ) { \n this . appendNewLine = appendNewLine ; \n }", "msg_token": "Change constructor of ConcatenateStrategy to public for better extensibility"} {"diff": " public class QuerySpaceTreePrinter { \n + StringHelper . join ( STRING0 , collectionReferenceAliases . getCollectionColumnAliases ( ) . getSuffixedKeyAliases ( ) ) \n + STRING1 \n ) ; \n - final EntityAliases elementAliases = collectionReferenceAliases . getEntityElementAliases ( ) . getColumnAliases ( ) ; \n + final EntityAliases elementAliases = \n + collectionReferenceAliases . getEntityElementAliases ( ) == null ? \n + null : \n + collectionReferenceAliases . getEntityElementAliases ( ) . getColumnAliases ( ) ; \n if ( elementAliases != null ) { \n printWriter . println ( \n TreePrinterHelper . INSTANCE . generateNodePrefix ( depth + detailDepthOffset )", "msg_token": "Move load plan implementations from spi to internal"} {"diff": " public class TransitionManager { \n sPendingTransitions . remove ( sceneRoot ) ; \n \n final ArrayList < Transition > runningTransitions = getRunningTransitions ( ) . get ( sceneRoot ) ; \n - if ( runningTransitions != null ) { \n - final int count = runningTransitions . size ( ) ; \n - for ( int i = NUMBER0 ; i < count ; i ++ ) { \n - final Transition transition = runningTransitions . get ( i ) ; \n + if ( runningTransitions != null && ! runningTransitions . isEmpty ( ) ) { \n + SINGLE \n + ArrayList < Transition > copy = new ArrayList ( runningTransitions ) ; \n + for ( int i = copy . size ( ) - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n + final Transition transition = copy . get ( i ) ; \n transition . end ( ) ; \n } \n }", "msg_token": "Fix endTransition index out of bounds exception"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class InternalDecorator extends JPanel implements Queryable , DataPr \n \n \n private final class ToggleContentUiTypeAction extends ToggleAction implements DumbAware { \n - \n - boolean seenSeveralContents ; \n + private boolean myHadSeveralContents ; \n \n private ToggleContentUiTypeAction ( ) { \n copyFrom ( ActionManager . getInstance ( ) . getAction ( TOGGLE_CONTENT_UI_TYPE_ACTION_ID ) ) ; \n public final class InternalDecorator extends JPanel implements Queryable , DataPr \n \n @ override \n public void update ( @ notnull AnActionEvent e ) { \n - seenSeveralContents = seenSeveralContents || myToolWindow . getContentManager ( ) . getContentCount ( ) > NUMBER0 ; \n + myHadSeveralContents = myHadSeveralContents || myToolWindow . getContentManager ( ) . getContentCount ( ) > NUMBER0 ; \n super . update ( e ) ; \n - e . getPresentation ( ) . setVisible ( seenSeveralContents ) ; \n + e . getPresentation ( ) . setVisible ( myHadSeveralContents ) ; \n } \n \n @ override", "msg_token": "rename field according project code style and reformat"} {"diff": " import static NAMESPACE \n \n public final class AllSimpleTypesTableDefinitions \n { \n + SINGLE \n + \n private AllSimpleTypesTableDefinitions ( ) \n { \n }", "msg_token": "Add TODO in AllSimpleTypesTableDefinitions"} {"diff": " public final class SpeedLayer < K , M , U > extends AbstractSparkLayer < K , M > { \n new Thread ( new LoggingRunnable ( ) { \n @ override \n public void doRun ( ) throws IOException { \n - modelManager . consume ( transformed , streamingContext . sc ( ) . hadoopConfiguration ( ) ) ; \n + modelManager . consume ( transformed , streamingContext . sparkContext ( ) . hadoopConfiguration ( ) ) ; \n } \n } , STRING0 ) . start ( ) ;", "msg_token": "Fix use of deprecate sc"} {"diff": " public class BooleanSubscription implements Subscription { \n \n @ override \n public void unsubscribe ( ) { \n - unsubscribed . set ( false ) ; \n + unsubscribed . set ( true ) ; \n } \n \n }", "msg_token": "Set unsubscribed true"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class MediaDriver", "msg_token": "added javadoc for command buffer size"} {"diff": " public class ResourceAdaptersExtension implements Extension { \n POOL_FLUSH_STRATEGY . marshallAsElement ( conDef , streamWriter ) ; \n \n SAME_RM_OVERRIDE . marshallAsElement ( conDef , streamWriter ) ; \n - if ( conDef . get ( INTERLEAVING . getName ( ) ) . asBoolean ( ) ) { \n + if ( conDef . hasDefined ( INTERLEAVING . getName ( ) ) && conDef . get ( INTERLEAVING . getName ( ) ) . asBoolean ( ) ) { \n streamWriter . writeEmptyElement ( INTERLEAVING . getXmlName ( ) ) ; \n } else { \n INTERLEAVING . marshallAsElement ( conDef , streamWriter ) ; \n } \n - if ( conDef . get ( NOTXSEPARATEPOOL . getName ( ) ) . asBoolean ( ) ) { \n + if ( conDef . hasDefined ( NOTXSEPARATEPOOL . getName ( ) ) && conDef . get ( NOTXSEPARATEPOOL . getName ( ) ) . asBoolean ( ) ) { \n streamWriter . writeEmptyElement ( NOTXSEPARATEPOOL . getXmlName ( ) ) ; \n } else { \n NOTXSEPARATEPOOL . marshallAsElement ( conDef , streamWriter ) ;", "msg_token": "Only write interleaving no tx separate pool if defined"} {"diff": " \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 ; \n + \n public class AdditionalMediaType { \n public final static String TEXT_CSV = STRING0 ; \n + public final static MediaType TEXT_CSV_TYPE = new MediaType ( STRING1 , STRING2 ) ; \n }", "msg_token": "Adding license header"} {"diff": " public class ReaderDatabase extends SQLiteOpenHelper { \n @ override \n public void onOpen ( SQLiteDatabase db ) { \n super . onOpen ( db ) ; \n - copyDatabase ( db ) ; \n + SINGLE \n } \n \n COMMENT", "msg_token": "Removed accidental copyDatabase call"} {"diff": " public class ExecuteResource \n throw internalServerError ( failureMessage ( client . finalResults ( ) ) ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n private static < T > Iterator < T > flatten ( Iterator < Iterable < T > > iterator ) \n { \n - return concat ( transform ( iterator , Iterable : : iterator ) ) ; \n + SINGLE \n + return concat ( transform ( iterator , Iterable < T > : : iterator ) ) ; \n } \n \n private static class ResultsPageIterator", "msg_token": "Fix Eclipse compiler TypeConversion error"} {"diff": " public class UserWebViewTest extends ActivityInstrumentationTestCase2 < userwebvie \n assertNotNull ( testView ) ; \n } \n \n - public void customTest ( ) \n + public void testCustom ( ) \n { \n assertTrue ( CordovaWebView . class . isInstance ( testView ) ) ; \n assertTrue ( CordovaWebViewClient . class . isInstance ( testActivity . testViewClient ) ) ;", "msg_token": "changes the test name to make it auto run"} {"diff": " public class StreamingJsonBuilder extends GroovyObjectSupport { \n writeName ( name ) ; \n verifyValue ( ) ; \n if ( json instanceof GString ) { \n - writer . write ( JsonOutput . toJson ( json . toString ( ) ) ) ; \n + writer . write ( generator . toJson ( json . toString ( ) ) ) ; \n } \n else { \n json . writeTo ( writer ) ;", "msg_token": "Fix StreamingJsonBuilder new method should use generator"} {"diff": " public enum ExceptionMessage { \n \n SINGLE \n DESTINATION_FILE_CANNOT_EXIST_WITH_WILDCARD_SOURCE ( \n - STRING0 + \n - STRING1 ) , \n + STRING0 \n + + STRING1 ) , \n \n SINGLE \n DELETE_LINEAGE_WITH_CHILDREN ( STRING2 ) ,", "msg_token": "Fix the code style"} {"diff": " public abstract class DocumentCommitProcessor { \n } \n } \n \n + SINGLE \n @ nullable ( STRING0 ) \n - Processor < Document > doCommit ( @ notnull final CommitTask task , \n + public Processor < Document > doCommit ( @ notnull final CommitTask task , \n @ notnull final PsiFile file , \n final boolean synchronously ) { \n Document document = task . document ;", "msg_token": "make public for Upsource"} {"diff": " public class HttpRequest { \n COMMENT \n public static class HttpRequestException extends RuntimeException { \n \n - COMMENT \n private static final long serialVersionUID = - NUMBER0 ; \n \n COMMENT", "msg_token": "Remove comment on private serialization constant"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class BlockLock implements ReadWriteLock { \n public enum BlockLockType { \n - READ , SINGLE \n - WRITE , SINGLE \n + READ ( NUMBER0 ) , SINGLE \n + WRITE ( NUMBER1 ) ; SINGLE \n + \n + private final int mValue ; \n + \n + BlockLockType ( int value ) { \n + mValue = value ; \n + } \n + \n + public int getValue ( ) { \n + return mValue ; \n + } \n } \n \n private final ReentrantReadWriteLock mLock ;", "msg_token": "Make BlockLockType convertible from and to int"} {"diff": " public class ZWaveController { \n \n SINGLE \n try { \n - logger . debug ( STRING0 , lastSentMessage . getMessageNode ( ) ) ; \n if ( ! transactionCompleted . tryAcquire ( NUMBER0 , zWaveResponseTimeout , TimeUnit . MILLISECONDS ) ) { \n - logger . debug ( STRING1 , lastSentMessage . getMessageNode ( ) ) ; \n timeOutCount . incrementAndGet ( ) ; \n SINGLE \n SINGLE", "msg_token": "Updated debugging messages"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NanoProtoInputStream extends InputStream implements KnownLength { \n + class NanoProtoInputStream extends InputStream implements KnownLength { \n \n SINGLE \n SINGLE", "msg_token": "Make NanoProtoInputStream package private"} {"diff": " public abstract class ExtendableListView extends AbsListView { \n mPerformClick = new PerformClick ( ) ; \n } \n final int motionPosition = mMotionPosition ; \n - if ( ! mDataChanged && mAdapter . isEnabled ( motionPosition ) ) { \n + if ( ! mDataChanged && motionPosition > NUMBER0 && mAdapter . isEnabled ( motionPosition ) ) { \n final PerformClick performClick = mPerformClick ; \n performClick . mClickMotionPosition = motionPosition ; \n performClick . rememberWindowAttachCount ( ) ;", "msg_token": "Check motion position before passing into adapter"} {"diff": " public class JUnitStep extends ShellStep { \n try { \n context . getProcessExecutor ( ) . launchAndExecute ( \n COMMENT \n - . addCommand ( jstack . get ( ) . toString ( ) , STRING0 , STRING1 , pid . get ( ) . toString ( ) ) \n + . addCommand ( jstack . get ( ) . toString ( ) , STRING1 , pid . get ( ) . toString ( ) ) \n . setEnvironment ( context . getEnvironment ( ) ) \n . build ( ) , \n COMMENT", "msg_token": "Do not pass F to jstack"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WordPress extends MultiDexApplication { \n \n SINGLE \n WPActivityUtils . applyLocale ( getContext ( ) ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + AppCompatDelegate . setCompatVectorFromResourcesEnabled ( true ) ; \n } \n \n private void initAnalytics ( final long elapsedTimeOnCreate ) {", "msg_token": "call setCompatVectorFromResourcesEnabled to enable vectors to be loaded from selectors"} {"diff": " public class BlazeCommandDispatcher { \n \n BlazeCommand command = commandsByName . get ( commandName ) ; \n if ( command == null ) { \n - outErr . printErrLn ( STRING0 + commandName + STRING1 + STRING2 ) ; \n + outErr . printErrLn ( String . format ( \n + STRING3 , commandName , Constants . PRODUCT_NAME ) ) ; \n return ExitCode . COMMAND_LINE_ERROR . getNumericExitCode ( ) ; \n } \n Command commandAnnotation = command . getClass ( ) . getAnnotation ( Command . class ) ;", "msg_token": "Fix product name in the error message for invalid commands"} {"diff": " class PFontTexture implements PConstants { \n resize = false ; \n } \n \n - PTexture . Parameters par = new PTexture . Parameters ( ARGB , BILINEAR ) ; \n - par . wrapU = CLAMP ; \n - par . wrapV = CLAMP ; \n - PTexture tex = new PTexture ( parent , w , h , par ) ; \n + PTexture tex = new PTexture ( parent , w , h , new PTexture . Parameters ( ARGB , BILINEAR ) ) ; \n \n if ( textures == null ) { \n textures = new PTexture [ NUMBER0 ] ;", "msg_token": "Not using CLAMP in PFontTexture"} {"diff": " public class UnshelveWithDialogAction extends DumbAwareAction { \n @ nullable Change [ ] preselectedChanges ) { \n super ( project , new UnshelvePatchDefaultExecutor ( project , changeList ) , \n Collections . emptyList ( ) , ApplyPatchMode . UNSHELVE , \n - patchFile , null , getPredefinedChangeList ( changeList . DESCRIPTION , ChangeListManager . getInstance ( project ) ) , binaryShelvedPatches , \n + patchFile , null , \n + changeList . isMarkedToDelete ( ) ? getPredefinedChangeList ( changeList . DESCRIPTION , ChangeListManager . getInstance ( project ) ) : null , \n + binaryShelvedPatches , \n hasNotAllSelectedChanges ( project , changeList , preselectedChanges ) ? newArrayList ( preselectedChanges ) : null , \n changeList . DESCRIPTION , true ) ; \n }", "msg_token": "predefine changelist only for system shelved changelist"} {"diff": " class GetActivityIconTask extends AsyncTask < AppInfo , Void , Drawable > { \n return null ; \n } \n \n - return ai . loadIcon ( mPackageManager ) ; \n + Drawable unbadgedIcon = ai . loadIcon ( mPackageManager ) ; \n + return mPackageManager . getUserBadgedIcon ( unbadgedIcon , appInfo . getUser ( ) ) ; \n } catch ( RemoteException e ) { \n Slog . w ( TAG , STRING0 + appInfo , e ) ; \n return null ;", "msg_token": "Adding briefcase picture to icons for work profile apps"} {"diff": " public class SentimentTraining { \n \n public static boolean runGradientCheck ( SentimentModel model , List < Tree > trees ) { \n SentimentCostAndGradient gcFunc = new SentimentCostAndGradient ( model , trees ) ; \n - return gcFunc . gradientCheck ( NUMBER0 , NUMBER1 , model . paramsToVector ( ) ) ; \n + return gcFunc . gradientCheck ( model . totalParamSize ( ) , NUMBER1 , model . paramsToVector ( ) ) ; \n } \n \n public static void attachGoldLabels ( Tree tree ) { \n public class SentimentTraining { \n SINGLE \n \n SINGLE \n + System . err . println ( STRING0 + op . randomSeed ) ; \n SentimentModel model = new SentimentModel ( op , trainingTrees ) ; \n \n SINGLE", "msg_token": "Make the gradient check touch every value print out the random seed"} {"diff": " public final class IOConverter { \n StringBuilder sb = new StringBuilder ( NUMBER0 ) ; \n char [ ] buf = new char [ NUMBER0 ] ; \n try { \n - int len = reader . read ( buf ) ; \n - if ( len != - NUMBER1 ) { \n - sb . append ( buf , NUMBER2 , len ) ; \n + int len = NUMBER2 ; \n + SINGLE \n + while ( len != - NUMBER1 ) { \n + len = reader . read ( buf ) ; \n + if ( len != - NUMBER1 ) { \n + sb . append ( buf , NUMBER2 , len ) ; \n + } \n } \n } finally { \n ObjectHelper . close ( reader , STRING0 , LOG ) ;", "msg_token": "Fixed bad patch not reading the entire stream"} {"diff": " public class MainCallPanel \n buttonsPanel . add ( callButton ) ; \n \n this . setOpaque ( false ) ; \n + callViaPanel . setOpaque ( false ) ; \n comboPanel . setOpaque ( false ) ; \n buttonsPanel . setOpaque ( false ) ; \n phoneNumberCombo . setOpaque ( false ) ;", "msg_token": "Make the call via panel transparent"} {"diff": " public class Gossiper implements IFailureDetectionEventListener \n private boolean sendGossip ( MessageProducer prod , Set < InetAddress > epSet ) \n { \n int size = epSet . size ( ) ; \n + if ( size < NUMBER0 ) \n + return false ; \n COMMENT \n List < InetAddress > liveEndpoints = new ArrayList < InetAddress > ( epSet ) ; \n int index = ( size == NUMBER0 ) ? NUMBER1 : random . nextInt ( size ) ;", "msg_token": "Avoid possible race in gossip to unreachable endpoints"} {"diff": " import static NAMESPACE ; \n public class ShadowBundle { \n Map < String , Object > map = new HashMap < String , Object > ( ) ; \n \n + public void __constructor__ ( Bundle b ) { \n + putAll ( b ) ; \n + } \n + \n @ implementation \n public Object get ( String key ) { \n return map . get ( key ) ; \n public class BundleTest { \n assertNull ( bundle . getParcelableArray ( STRING0 ) ) ; \n } \n \n + @ test \n + public void testCopyConstructor ( ) { \n + bundle . putInt ( STRING1 , NUMBER0 ) ; \n + Bundle copiedBundle = new Bundle ( bundle ) ; \n + \n + Assert . assertEquals ( copiedBundle , bundle ) ; \n + } \n + \n private void assertArrayEquals ( double [ ] expected , double [ ] actual ) { \n if ( expected != null && actual == null ) { \n throw new AssertionFailedError ( ) ;", "msg_token": "Add copy constructor to ShadowBundle"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing copyright header"} {"diff": " public class IrcStack \n SINGLE \n synchronized ( this . channellist ) \n { \n + SINGLE \n + SINGLE \n if ( this . channellist . instance == null ) \n { \n Result < List < String > , Exception > listSignal = \n public class IrcStack \n } \n } \n this . channellist . instance = listSignal . getValue ( ) ; \n + LOGGER . trace ( STRING0 ) ; \n + } \n + else \n + { \n + LOGGER . trace ( STRING1 ) ; \n } \n - LOGGER . trace ( STRING0 ) ; \n return Collections . unmodifiableList ( this . channellist . instance ) ; \n } \n }", "msg_token": "Added TODO and fine tuned trace logging"} {"diff": " public class ContactRightButtonMenu \n guiContactList . removeExcContactListListener ( this ) ; \n \n guiContactList . setCursor ( \n - Cursor . getPredefinedCursor ( Cursor . MOVE_CURSOR ) ) ; \n + Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; \n \n if ( moveAllContacts ) { \n new MoveAllSubcontactsThread ( toMetaContact ) . start ( ) ;", "msg_token": "return the hand cursor after the move operation is finished"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public class PluginFactory { \n } \n \n synchronized void setRunningPluginCompleted ( Plugin plugin ) { \n - listRunning . remove ( plugin ) ; \n - listCompleted . add ( plugin ) ; \n - plugin . setTimeFinished ( ) ; \n + if ( listRunning . remove ( plugin ) ) { \n + Plugin completedPlugin = mapAllPlugin . get ( plugin . getId ( ) ) ; \n + listCompleted . add ( completedPlugin ) ; \n + completedPlugin . setTimeFinished ( ) ; \n + } \n } \n \n boolean isRunning ( Plugin plugin ) {", "msg_token": "Set existing Plugin instance as completed"} {"diff": " public class InvocableHandlerMethod extends HandlerMethod { \n COMMENT \n COMMENT \n private Object resolveProvidedArgument ( MethodParameter parameter , Object . . . providedArgs ) { \n - if ( providedArgs == null || parameter . hasParameterAnnotations ( ) ) { \n + if ( providedArgs == null ) { \n return null ; \n } \n for ( Object providedArg : providedArgs ) {", "msg_token": "Fix issue with resolution of WebDataBinder argument"} {"diff": " public class JavacTurbine implements AutoCloseable { \n CLASSPATH_JOINER . join ( actualClasspath ) , compileResult . success ( ) ) ; \n } \n \n - out . println ( compileResult . output ( ) ) ; \n + out . print ( compileResult . output ( ) ) ; \n return result ; \n }", "msg_token": "Don t print extra newlines"} {"diff": " import NAMESPACE ; \n public abstract class SecurityRealm implements ServerExtension { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public String getName ( ) { \n return getClass ( ) . getSimpleName ( ) ;", "msg_token": "prefer low case ids"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public final class EEDefaultPermissionsProcessor implements DeploymentUnitProces \n permissions . add ( new JndiPermission ( STRING0 , LOOKUP ) ) ; \n permissions . add ( new JndiPermission ( STRING1 , LOOKUP ) ) ; \n permissions . add ( new JndiPermission ( STRING2 , LOOKUP ) ) ; \n + permissions . add ( new PropertyPermission ( STRING3 , STRING4 ) ) ; \n + permissions . add ( new RuntimePermission ( STRING5 ) ) ; \n + permissions . add ( new RuntimePermission ( STRING6 ) ) ; \n + permissions . add ( new FilePermission ( STRING3 , STRING4 ) ) ; \n + permissions . add ( new FilePermission ( STRING3 , STRING7 ) ) ; \n + permissions . add ( new SocketPermission ( STRING3 , STRING8 ) ) ; \n DEFAULT_PERMISSIONS = permissions ; \n }", "msg_token": "Add default permissions required by the spec"} {"diff": " public class ParallelBatchImporter implements BatchImporter \n \n executionMonitor . done ( currentTimeMillis ( ) - startTime ) ; \n \n - logger . log ( STRING0 ) ; \n + SINGLE \n + logger . log ( STRING1 ) ; \n } \n catch ( Throwable t ) \n {", "msg_token": "Removed a TODO from a log statement"} {"diff": " public class DocumentStorageService extends IntentService { \n public static void loadDocument ( Context ctxt , Uri document ) { \n Intent i = new Intent ( ctxt , DocumentStorageService . class ) \n . setAction ( Intent . ACTION_OPEN_DOCUMENT ) \n + . addFlags ( Intent . FLAG_GRANT_READ_URI_PERMISSION ) \n . setData ( document ) ; \n \n ctxt . startService ( i ) ; \n public class DocumentStorageService extends IntentService { \n Intent i = new Intent ( ctxt , DocumentStorageService . class ) \n . setAction ( Intent . ACTION_EDIT ) \n . setData ( document ) \n + . addFlags ( Intent . FLAG_GRANT_READ_URI_PERMISSION | \n + Intent . FLAG_GRANT_WRITE_URI_PERMISSION ) \n . putExtra ( Intent . EXTRA_TEXT , text ) \n . putExtra ( EXTRA_CLOSING , isClosing ) ;", "msg_token": "pass Uri access rights to service"} {"diff": " public class GitFileAnnotation implements FileAnnotation { \n COMMENT \n private void fireAnnotationChanged ( ) { \n myListeners . getMulticaster ( ) . onAnnotationChanged ( ) ; \n - LOG . debug ( STRING0 , new Throwable ( ) ) ; \n } \n \n COMMENT \n public class GitFileAnnotation implements FileAnnotation { \n \n private class MyFileStatusListener implements FileStatusListener { \n public void fileStatusesChanged ( ) { \n - checkAndFire ( ) ; \n } \n \n public void fileStatusChanged ( @ notnull VirtualFile virtualFile ) {", "msg_token": "annotations disappear on focus switch"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class EncoderTest extends Assert { \n STRING0 + \n STRING1 ) ; \n } \n - \n + \n + @ ignore ( STRING2 ) \n @ test \n public void testAztecWriter ( ) throws Exception { \n testWriter ( STRING3 , STRING4 , NUMBER0 , true , NUMBER1 ) ;", "msg_token": "Disable strangely flaky test for now"} {"diff": " public class UIUtil { \n public static HTMLEditorKit getHTMLEditorKit ( boolean noGapsBetweenParagraphs ) { \n Font font = getLabelFont ( ) ; \n @ nonnls String family = ! SystemInfo . isWindows && font != null ? font . getFamily ( ) : STRING0 ; \n - int size = font != null ? font . getSize ( ) : NUMBER0 ; \n + int size = font != null ? font . getSize ( ) : JBUI . scale ( NUMBER0 ) ; \n \n String customCss = String . format ( STRING1 , family , size ) ; \n if ( noGapsBetweenParagraphs ) {", "msg_token": "add scaling for default font for HTMLEditorKit"} {"diff": " public class JavaPreviewHintProvider implements PreviewHintProvider { \n return file instanceof PsiJavaFile ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ override \n public JComponent getPreviewComponent ( @ notnull PsiElement element ) { \n final PsiNewExpression psiNewExpression = PsiTreeUtil . getParentOfType ( element , PsiNewExpression . class ) ;", "msg_token": "suppress JBColor warning"} {"diff": " public class DefaultCommandLineTool implements CommandLineTool { \n public void run ( ) { \n DefaultCommandLineTool . this . internalExecute ( invocation ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return DefaultCommandLineTool . this . toString ( ) ; \n + } \n } ; \n }", "msg_token": "Add better toString to anonymous command line tool runnable"} {"diff": " public class KeyguardViewManager implements KeyguardWindowController { \n lp . softInputMode = WindowManager . LayoutParams . SOFT_INPUT_ADJUST_PAN ; \n lp . windowAnimations = com . android . internal . R . style . Animation_LockScreen ; \n \n - if ( mContext . getResources ( ) . getBoolean ( R . bool . config_enableLockScreenRotation ) ) { \n - Log . d ( TAG , STRING0 ) ; \n - lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ; \n - } else { \n - Log . d ( TAG , STRING1 ) ; \n - lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ; \n - } \n - \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ; \n lp . setTitle ( STRING2 ) ; \n mWindowLayoutParams = lp ;", "msg_token": "Always enable screen rotation in lockscreen"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing unused import"} {"diff": " public abstract class MultimapBuilder < K0 , V0 > { \n return new MultimapBuilderWithKeys < Object > ( ) { \n @ override \n < K , V > Map < K , Collection < V > > createMap ( ) { \n - return new HashMap < K , Collection < V > > ( expectedKeys ) ; \n + return Maps . newHashMapWithExpectedSize ( expectedKeys ) ; \n } \n } ; \n } \n public abstract class MultimapBuilder < K0 , V0 > { \n \n @ override \n public Set < V > get ( ) { \n - return new HashSet < V > ( expectedValuesPerKey ) ; \n + return Sets . newHashSetWithExpectedSize ( expectedValuesPerKey ) ; \n } \n } \n \n public abstract class MultimapBuilder < K0 , V0 > { \n \n @ override \n public Set < V > get ( ) { \n - return new LinkedHashSet < V > ( expectedValuesPerKey ) ; \n + return Sets . newLinkedHashSetWithExpectedSize ( expectedValuesPerKey ) ; \n } \n }", "msg_token": "Properly use the expected size factory methods in MultimapBuilder instead of conflating capacity with expected size"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class UimaSentenceIterator extends BaseSentenceIterator { \n protected volatile AnalysisEngine engine ; \n protected volatile Iterator < String > sentences ; \n protected String path ; \n - \n + private static Logger log = LoggerFactory . getLogger ( UimaSentenceIterator . class ) ; \n \n public UimaSentenceIterator ( SentencePreProcessor preProcessor , String path , AnalysisEngine engine ) { \n super ( preProcessor ) ; \n public class UimaSentenceIterator extends BaseSentenceIterator { \n CAS cas = engine . newCAS ( ) ; \n \n synchronized ( reader ) { \n - \n - reader . getNext ( cas ) ; \n + try { \n + reader . getNext ( cas ) ; \n + } catch ( Exception e ) { \n + log . warn ( STRING0 ) ; \n + return STRING1 ; \n + } \n \n } \n synchronized ( engine ) {", "msg_token": "synchronoze has next and next sentence"} {"diff": " public class RapidsTest extends TestUtil { \n exec_str ( STRING0 , ses ) ; \n \n SINGLE \n - exec_str ( STRING1 , ses ) ; \n + exec_str ( STRING2 , ses ) ; \n \n SINGLE \n - exec_str ( STRING3 , ses ) ; \n + exec_str ( STRING4 , ses ) ; \n \n SINGLE \n exec_str ( STRING5 , ses ) ;", "msg_token": "Added allx ally and method to merge rapids call in testChicago with Eric"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MainActivity extends FragmentActivity { \n \n tabs . setIndicatorColor ( newColor ) ; \n \n - Bitmap bmp = Bitmap . createBitmap ( NUMBER0 , NUMBER0 , Config . ARGB_8888 ) ; \n - bmp . setPixel ( NUMBER1 , NUMBER1 , newColor ) ; \n - Drawable colorDrawable = new BitmapDrawable ( getResources ( ) , bmp ) ; \n + Drawable colorDrawable = new ColorDrawable ( newColor ) ; \n Drawable bottomDrawable = getResources ( ) . getDrawable ( R . drawable . actionbar_bottom ) ; \n LayerDrawable ld = new LayerDrawable ( new Drawable [ ] { colorDrawable , bottomDrawable } ) ;", "msg_token": "avoid creation of bitmaps in sample project by using ColorDrawable"} {"diff": " package NAMESPACE ; \n # include STRING0 \n # include STRING1 \n \n - extern char * * environ ; \n + # if ! TARGET_OS_IPHONE && ! TARGET_OS_SIMULATOR \n + # include < crt_externs . h > \n + # endif \n COMMENT \n \n import NAMESPACE ; \n public class System { \n \n public static native Map < String , String > getenv ( ) 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 + COMMENT \n COMMENT \n COMMENT \n COMMENT ;", "msg_token": "Restrict environ use to OS X not supported on iOS use NSGetEnviron to fetch its address"} {"diff": " public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem \n mUsernameEditText . requestFocus ( ) ; \n } \n \n - \n protected boolean specificShowError ( int messageId ) { \n switch ( getErrorType ( messageId ) ) { \n case USERNAME : \n public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem \n if ( mErrorMsgId == R . string . update_credentials ) { \n showUsernameError ( mErrorMsgId ) ; \n showPasswordError ( mErrorMsgId ) ; \n + mErrorMsgId = NUMBER0 ; \n endProgress ( ) ; \n return ; \n } else {", "msg_token": "reset errorId after displaying an error message"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class HgUtil { \n try { \n final File file = copyResourceToTempFile ( base , STRING0 ) ; \n final String fileName = file . getName ( ) ; \n - Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { \n - @ override \n + ShutDownTracker . getInstance ( ) . registerShutdownTask ( new Runnable ( ) { \n public void run ( ) { \n File [ ] files = file . getParentFile ( ) . listFiles ( new FilenameFilter ( ) { \n public boolean accept ( File dir , String name ) {", "msg_token": "Using ShutdownTracker instead of Runtime addShutdownHook to prevent IllegalStateException"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n public class TimeSurface implements Serializable { \n id = makeUniqueId ( ) ; \n dateTime = req . fromTime ; SINGLE \n routerId = profileRouter . graph . routerId ; \n + cutoffMinutes = NUMBER0 ; SINGLE \n } \n \n public static TimeSurface . RangeSet makeSurfaces ( AnalystProfileRouterPrototype profileRouter ) {", "msg_token": "set cutoffMinutes to arbitrary value for RAPTOR output"} {"diff": " public class BuckBuildLog { \n \n public void assertNotTargetBuiltLocally ( String buildTargetRaw ) { \n BuildLogEntry logEntry = getLogEntry ( buildTargetRaw ) ; \n - assertNotEquals ( BuildRuleSuccessType . BUILT_LOCALLY , logEntry . successType . get ( ) ) ; \n + assertNotEquals ( \n + String . format ( \n + STRING0 , buildTargetRaw ) , \n + BuildRuleSuccessType . BUILT_LOCALLY , \n + logEntry . successType . get ( ) ) ; \n } \n \n public void assertTargetIsAbsent ( String buildTargetRaw ) {", "msg_token": "Improve error message for BuckBuildLog assertNotTargetBuiltLocally"} {"diff": " public class JavaSourceProcessor extends BaseSourceProcessor { \n STRING0 + fileName + STRING1 + lineCount ) ; \n } \n } \n + else if ( trimmedLine . endsWith ( StringPool . COMMA ) && \n + ! trimmedLine . startsWith ( STRING2 ) ) { \n + \n + int closeParenthesisCount = StringUtil . count ( \n + strippedQuotesLine , StringPool . CLOSE_PARENTHESIS ) ; \n + int openParenthesisCount = StringUtil . count ( \n + strippedQuotesLine , StringPool . OPEN_PARENTHESIS ) ; \n + \n + if ( closeParenthesisCount < openParenthesisCount ) { \n + processErrorMessage ( \n + fileName , \n + STRING0 + fileName + STRING1 + lineCount ) ; \n + } \n + } \n \n if ( line . contains ( StringPool . COMMA ) && \n ! line . contains ( StringPool . CLOSE_PARENTHESIS ) &&", "msg_token": "SourceFormatter catch incorrect line breaks"} {"diff": " public class TextEditingTarget implements \n } \n \n @ handler \n + void onInsertChunk ( ) \n + { \n + onInsertChunkR ( ) ; \n + } \n + \n + @ handler \n void onInsertChunkR ( ) \n { \n onInsertChunk ( STRING0 ) ;", "msg_token": "restore original insert chunk command"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C \n label . setIcon ( EMPTY_ICON ) ; \n panel . add ( label , BorderLayout . WEST ) ; \n panel . add ( new JBLabel ( STRING0 ) , BorderLayout . EAST ) ; \n + if ( ! isSelected ) { \n + panel . setBackground ( LightColors . SLIGHTLY_GRAY ) ; \n + } \n } else if ( value instanceof String ) { \n final JBLabel label = new JBLabel ( ( String ) value ) ; \n label . setIcon ( EMPTY_ICON ) ;", "msg_token": "setting background Ctrl Shift A"} {"diff": " public class SingleResultFuture < T > implements MongoFuture < T > { \n } \n \n if ( isDone ( ) ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + if ( newException != null ) { \n + throw new IllegalStateException ( STRING1 + result , \n + newException ) ; \n + } else { \n + throw new IllegalStateException ( STRING2 + newResult ) ; \n + } \n } \n \n if ( newResult != null && newException != null ) { \n public class SingleResultFutureTest { \n } \n } \n \n - @ test ( expected = IllegalArgumentException . class ) \n + @ test ( expected = IllegalStateException . class ) \n public void testInitFailure ( ) { \n SingleResultFuture < Integer > future = new SingleResultFuture < Integer > ( ) ; \n future . init ( NUMBER0 , null ) ;", "msg_token": "Beefing up error checking in SingleResultFuture"} {"diff": " public class CallPeerMediaHandlerSipImpl \n this . setCallInfoURL ( SdpUtils . getCallInfoURL ( offer ) ) ; \n \n boolean atLeastOneValidDescription = false ; \n + boolean rejectedAvpOfferDueToSavpRequired = false ; \n \n List < MediaType > seenMediaTypes = new ArrayList < MediaType > ( ) ; \n for ( MediaDescription mediaDescription : remoteDescriptions ) \n public class CallPeerMediaHandlerSipImpl \n == ProtocolProviderFactory . SAVP_MANDATORY \n && transportProtocol . equals ( SdpConstants . RTP_AVP ) ) \n { \n + rejectedAvpOfferDueToSavpRequired = true ; \n continue ; \n } \n \n public class CallPeerMediaHandlerSipImpl \n atLeastOneValidDescription = true ; \n } \n \n + if ( rejectedAvpOfferDueToSavpRequired && ! atLeastOneValidDescription ) \n + throw new OperationFailedException ( STRING0 \n + + STRING1 \n + + STRING2 , \n + OperationFailedException . ILLEGAL_ARGUMENT ) ; \n + \n if ( ! atLeastOneValidDescription ) \n throw new OperationFailedException ( STRING0 \n + STRING3 ,", "msg_token": "Throw distinct error when RTP AVP is rejected because of RTP SAVP required"} {"diff": " public class RedissonMapTest extends BaseTest { \n \n @ test \n public void testValueSize ( ) { \n + Assume . assumeTrue ( RedisRunner . getDefaultRedisServerInstance ( ) . getRedisVersion ( ) . compareTo ( STRING0 ) > NUMBER0 ) ; \n RMap < String , String > map = redisson . getMap ( STRING1 ) ; \n map . put ( STRING2 , STRING3 ) ; \n assertThat ( map . valueSize ( STRING4 ) ) . isZero ( ) ;", "msg_token": "Check redis version before testValueSize"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class MysqlStorageEngineTest extends AbstractStorageEngineTest { \n public class MysqlStorageEngineTest extends AbstractStorageEngineTest { \n \n public void testOpenNonExistantStoreCreatesTable ( ) throws SQLException { \n String newStore = TestUtils . randomLetters ( NUMBER0 ) ; \n - MysqlStorageEngine engine = new MysqlStorageEngine ( newStore , getDataSource ( ) ) ; \n + COMMENT \n + new MysqlStorageEngine ( newStore , getDataSource ( ) ) ; \n DataSource ds = getDataSource ( ) ; \n executeQuery ( ds , STRING0 + newStore + STRING1 ) ; \n executeQuery ( ds , STRING2 + newStore ) ;", "msg_token": "Remove unused variable engine and add comment to indicate that MysqlStorageEngine is created for side effect"} {"diff": " public class DefaultIvyArtifact implements IvyArtifact { \n public TaskDependency getBuildDependencies ( ) { \n return buildDependencies ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return String . format ( STRING0 , getClass ( ) . getSimpleName ( ) , getName ( ) , getType ( ) , getExtension ( ) , getClassifier ( ) ) ; \n + } \n } \n public class DefaultMavenArtifact implements MavenArtifact { \n public TaskDependency getBuildDependencies ( ) { \n return buildDependencies ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return String . format ( STRING1 , getClass ( ) . getSimpleName ( ) , getExtension ( ) , getClassifier ( ) ) ; \n + } \n }", "msg_token": "Added toString representations to assist with debugging"} {"diff": " public abstract class KeyInputQueue { \n mLast = new QueuedEvent ( ) ; \n mFirst . next = mLast ; \n mLast . prev = mFirst ; \n + } \n \n + void start ( ) { \n mThread . start ( ) ; \n } \n \n public class WindowManagerService extends IWindowManager . Stub \n } \n \n mInputThread . start ( ) ; \n + mQueue . start ( ) ; \n \n SINGLE \n Watchdog . getInstance ( ) . addMonitor ( this ) ;", "msg_token": "Fix that InputDeviceReaderThread that got killed during startup"} {"diff": " public abstract class Editor extends JFrame implements RunnerListener { \n } else if ( result == JOptionPane . NO_OPTION ) { \n return true ; SINGLE \n \n - } else if ( result == JOptionPane . CANCEL_OPTION ) { \n + } else if ( result == JOptionPane . CANCEL_OPTION || \n + result == JOptionPane . CLOSED_OPTION ) { \n return false ; \n \n } else {", "msg_token": "fix illegal state when closing window"} {"diff": " public class HeadsUpTouchHelper implements Gefingerpoken { \n mInitialTouchY = y ; \n mInitialTouchX = x ; \n setTrackingHeadsUp ( false ) ; \n - ExpandableView child = mStackScroller . getChildAtPosition ( x , y ) ; \n + ExpandableView child = mStackScroller . getChildAtRawPosition ( x , y ) ; \n mTouchingHeadsUpView = false ; \n if ( child instanceof ExpandableNotificationRow ) { \n mPickedChild = ( ExpandableNotificationRow ) child ;", "msg_token": "Fixed a bug that the user could not drag down on the heads up"} {"diff": " public final class BlockMasterSync implements Runnable { \n public void registerWithMaster ( ) { \n BlockStoreMeta storeMeta = mBlockDataManager . getStoreMeta ( ) ; \n try { \n - mWorkerId = \n - mMasterClient . register ( mWorkerId , storeMeta . getCapacityBytesOnTiers ( ) , \n - storeMeta . getUsedBytesOnTiers ( ) , storeMeta . getBlockList ( ) ) ; \n + SINGLE \n + setWorkerId ( ) ; \n + SINGLE \n + mMasterClient . register ( mWorkerId , storeMeta . getCapacityBytesOnTiers ( ) , \n + storeMeta . getUsedBytesOnTiers ( ) , storeMeta . getBlockList ( ) ) ; \n } catch ( IOException ioe ) { \n throw new RuntimeException ( STRING0 , ioe ) ; \n }", "msg_token": "Get worker ID first when re register to master"} {"diff": " public interface PluginManager { \n COMMENT \n COMMENT \n public Set < Permissible > getDefaultPermSubscriptions ( boolean op ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Set < Permission > getPermissions ( ) ; \n } \n public final class SimplePluginManager implements PluginManager { \n return ImmutableSet . copyOf ( map . keySet ( ) ) ; \n } \n } \n + \n + public Set < Permission > getPermissions ( ) { \n + return new HashSet < Permission > ( permissions . values ( ) ) ; \n + } \n }", "msg_token": "Added method to retrieve all registered permissions"} {"diff": " public class ComputationGraph implements Serializable , Model { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public INDArray outputSingle ( INDArray . . . input ) { \n + return outputSingle ( false , input ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ComputationGraph implements Serializable , Model { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public INDArray outputSingle ( boolean train , INDArray . . . input ) { \n + if ( numOutputArrays != NUMBER0 ) { \n + throw new IllegalStateException ( STRING0 + numOutputArrays ) ; \n + } \n + return output ( train , input ) [ NUMBER1 ] ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add ComputationGraph outputSingle convenience methods"} {"diff": " public class CucumberMojo extends AbstractJRubyMojo { \n protected boolean installGems = false ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean skip ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CucumberMojo extends AbstractJRubyMojo { \n } \n } \n \n + if ( skip ) { \n + getLog ( ) . info ( STRING0 ) ; \n + return ; \n + } \n + \n CucumberTask cucumber = cucumber ( allCucumberArgs ( ) ) ; \n try { \n cucumber . execute ( ) ;", "msg_token": "Implement skip configuration element for maven plugin with default value of maven test skip"} {"diff": " public abstract class Executor { \n public abstract String getHelpId ( ) ; \n \n public String getStartActionText ( String configurationName ) { \n - return getStartActionText ( ) + STRING0 + StringUtil . first ( configurationName , NUMBER0 , true ) + STRING1 ; \n + return getStartActionText ( ) + ( StringUtil . isEmpty ( configurationName ) ? STRING2 : STRING0 + StringUtil . first ( configurationName , NUMBER0 , true ) + STRING1 ) ; \n } \n }", "msg_token": "don t show empty quotes"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public interface SequenceFormat extends Serializable { \n COMMENT \n COMMENT \n COMMENT \n - Writable key ( Tuple tuple ) ; \n + Object key ( Tuple tuple ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - Writable value ( Tuple tuple ) ; \n + Object value ( Tuple tuple ) ; \n }", "msg_token": "Added support for serialization to SequenceFileBolt"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix malformed Javadoc"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Javadoc for PredicatePushDown class Andrew Sears via Ashutosh Chauhan"} {"diff": " public class BatchStoreMutator extends BufferStoreMutator { \n super . flush ( ) ; \n int waitTimeMS = NUMBER0 ; \n while ( runningWorkers . get ( ) > NUMBER1 ) { \n - log . debug ( STRING0 , waitTimeMS ) ; \n + log . debug ( STRING1 , runningWorkers . get ( ) , waitTimeMS ) ; \n + waitTimeMS *= NUMBER2 ; \n try { \n Thread . sleep ( waitTimeMS ) ; \n } catch ( InterruptedException e ) {", "msg_token": "adjusted Batch wait time"} {"diff": " public class StateData { \n private boolean created = false ; \n \n private Editor ( ) { \n - \n + extensions = new HashMap < Object , Object > ( ) ; \n } \n \n private Editor ( StateData state ) {", "msg_token": "Fix bug where we don t properly instantiate extensions map on initial state creation"} {"diff": " public abstract class Pair < T1 , T2 > \n @ override \n public T1 first ( ) \n { \n - return first ( ) ; \n + return first ; \n } \n \n @ override", "msg_token": "Very stupid coding mistake"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor \n SINGLE \n String path = file . getPath ( ) ; \n int index = path . lastIndexOf ( CLASSES_FOLDER ) ; \n - path = path . substring ( NUMBER0 , index ) + RESOURCES_FOLDER \n - + path . substring ( index + CLASSES_FOLDER . length ( ) ) ; \n - file = new File ( path ) ; \n + if ( index >= NUMBER0 ) { \n + path = path . substring ( NUMBER0 , index ) + RESOURCES_FOLDER \n + + path . substring ( index + CLASSES_FOLDER . length ( ) ) ; \n + file = new File ( path ) ; \n + } \n } \n return ( file . exists ( ) ? new FileInputStream ( file ) : fileObject . toUri ( ) . toURL ( ) \n . openStream ( ) ) ;", "msg_token": "Remove incorrect assumption that output will be in folder named classes"} {"diff": " public class PatternTestTools { \n SINGLE \n SINGLE \n SINGLE \n - if ( exception . getString ( ) . indexOf ( STRING0 ) >= NUMBER0 \n - && exception . getString ( ) . matches ( STRING1 ) ) { \n + if ( exception . getString ( ) . indexOf ( STRING0 ) >= NUMBER0 ) { \n final String [ ] alt = exception . getString ( ) . split ( STRING2 ) ; \n for ( final String part : alt ) { \n + if ( exception . getString ( ) . indexOf ( STRING3 ) >= NUMBER0 ) { \n + break ; \n + } \n if ( part . matches ( STRING4 ) ) { \n if ( ! part . matches ( STRING5 + element . getString ( ) ) ) { \n System . err . println ( STRING6 + lang . toString ( ) + STRING7", "msg_token": "Improved detection of invalid exceptions and speed up avoiding"} {"diff": " public class LinkedList < E > extends AbstractSequentialList < E > implements \n \n final LinkedList < ET > list ; \n \n - Link < ET > link , lastLink ; \n + @ weak Link < ET > link , lastLink ; \n \n LinkIterator ( LinkedList < ET > object , int location ) { \n list = object ;", "msg_token": "Makes link references weak in the LinkedList iterator to improve performance"} {"diff": " public final class RPCBlockReadRequest extends RPCRequest { \n @ override \n public String toString ( ) { \n return Objects . toStringHelper ( this ) . add ( STRING0 , mBlockId ) . add ( STRING1 , mOffset ) \n - . add ( STRING2 , mLength ) . add ( STRING3 , mLockId ) . add ( STRING4 , mSessionId ) . toString ( ) ; \n + . add ( STRING5 , mLength ) . add ( STRING3 , mLockId ) . add ( STRING4 , mSessionId ) . toString ( ) ; \n } \n \n COMMENT \n public final class RPCBlockWriteRequest extends RPCRequest { \n @ override \n public String toString ( ) { \n return Objects . toStringHelper ( this ) . add ( STRING0 , mBlockId ) . add ( STRING1 , mOffset ) \n - . add ( STRING2 , mLength ) . add ( STRING4 , mSessionId ) . toString ( ) ; \n + . add ( STRING5 , mLength ) . add ( STRING4 , mSessionId ) . toString ( ) ; \n } \n \n COMMENT", "msg_token": "Fix typos in rpc messages"} {"diff": " public class ActionBarView extends AbsActionBarView { \n R . bool . abc_action_bar_expanded_action_views_exclusive ) ) ; \n configPresenters ( builder ) ; \n menuView = ( ActionMenuView ) mActionMenuPresenter . getMenuView ( this ) ; \n + menuView . initialize ( builder ) ; \n final ViewGroup oldParent = ( ViewGroup ) menuView . getParent ( ) ; \n if ( oldParent != null && oldParent != this ) { \n oldParent . removeView ( menuView ) ;", "msg_token": "Fix Fragments with Sub Menus not working"} {"diff": " public final class InputMethodManager { \n static final int MSG_SEND_INPUT_EVENT = NUMBER0 ; \n static final int MSG_TIMEOUT_INPUT_EVENT = NUMBER1 ; \n static final int MSG_FLUSH_INPUT_EVENT = NUMBER2 ; \n - static final int SET_CURSOR_ANCHOR_MONITOR_MODE = NUMBER3 ; \n + static final int MSG_SET_CURSOR_ANCHOR_MONITOR_MODE = NUMBER3 ; \n \n class H extends Handler { \n H ( Looper looper ) { \n public final class InputMethodManager { \n finishedInputEvent ( msg . arg1 , false , false ) ; \n return ; \n } \n - case SET_CURSOR_ANCHOR_MONITOR_MODE : { \n + case MSG_SET_CURSOR_ANCHOR_MONITOR_MODE : { \n synchronized ( mH ) { \n mCursorAnchorMonitorMode = msg . arg1 ; \n SINGLE \n public final class InputMethodManager { \n \n @ override \n public void setCursorAnchorMonitorMode ( int monitorMode ) { \n - mH . sendMessage ( mH . obtainMessage ( SET_CURSOR_ANCHOR_MONITOR_MODE , monitorMode , NUMBER4 ) ) ; \n + mH . sendMessage ( mH . obtainMessage ( MSG_SET_CURSOR_ANCHOR_MONITOR_MODE , monitorMode , NUMBER4 ) ) ; \n } \n } ;", "msg_token": "Naming style fix for an internal constant"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class Switch extends CompoundButton { \n } \n } \n \n + @ override \n + public void onPopulateAccessibilityEvent ( AccessibilityEvent event ) { \n + super . onPopulateAccessibilityEvent ( event ) ; \n + Layout switchText = getTargetCheckedState ( ) ? mOnLayout : mOffLayout ; \n + event . getText ( ) . add ( switchText . getText ( ) ) ; \n + } \n + \n private Layout makeLayout ( CharSequence text ) { \n return new StaticLayout ( text , mTextPaint , \n ( int ) Math . ceil ( Layout . getDesiredWidth ( text , mTextPaint ) ) ,", "msg_token": "Switch state text not added to accessibility events"} {"diff": " public class UserTokenDao implements Dao { \n public Map < String , Integer > countTokensByLogins ( DbSession dbSession , List < String > logins ) { \n Map < String , Integer > result = new HashMap < > ( logins . size ( ) ) ; \n executeLargeInputs ( \n - logins , \n - input - > { \n - List < UserTokenCount > userTokenCounts = mapper ( dbSession ) . countTokensByLogins ( input ) ; \n - for ( UserTokenCount userTokenCount : userTokenCounts ) { \n - result . put ( userTokenCount . getLogin ( ) , userTokenCount . tokenCount ( ) ) ; \n - } \n - return userTokenCounts ; \n - } ) ; \n + logins , \n + input - > { \n + List < UserTokenCount > userTokenCounts = mapper ( dbSession ) . countTokensByLogins ( input ) ; \n + for ( UserTokenCount userTokenCount : userTokenCounts ) { \n + result . put ( userTokenCount . getLogin ( ) , userTokenCount . tokenCount ( ) ) ; \n + } \n + return userTokenCounts ; \n + } ) ; \n \n return result ; \n }", "msg_token": "Fix quality flaws"} {"diff": " public class ClientStateMachine extends StateMachine implements IMalmoMessageLis \n int port = currentMissionInit ( ) . getMinecraftServerConnection ( ) . getPort ( ) ; \n String targetIP = address + STRING0 + port ; \n System . out . println ( STRING1 + targetIP ) ; \n - SINGLE \n - SINGLE \n - net . minecraftforge . fml . client . FMLClientHandler . instance ( ) . connectToServerAtStartup ( address , port ) ; \n + if ( Minecraft . getMinecraft ( ) . getCurrentServerData ( ) == null || ! Minecraft . getMinecraft ( ) . getCurrentServerData ( ) . serverIP . equals ( targetIP ) ) \n + { \n + net . minecraftforge . fml . client . FMLClientHandler . instance ( ) . connectToServerAtStartup ( address , port ) ; \n + } \n } \n }", "msg_token": "Optimisation don t rejoin server if already in the correct one"} {"diff": " public class CatalystInstance { \n SINGLE \n SINGLE \n mNativeModuleCallExceptionHandler . handleException ( e ) ; \n - mCatalystQueueConfiguration . getUIQueueThread ( ) . runOnQueue ( \n - new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - destroy ( ) ; \n - } \n - } ) ; \n } \n }", "msg_token": "do not destroy instance when handling exception"} {"diff": " public class Label extends Widget { \n \n public float getPrefHeight ( ) { \n if ( prefSizeInvalid ) scaleAndComputePrefSize ( ) ; \n - float height = prefSize . y - style . font . getDescent ( ) * NUMBER0 ; \n + float height = prefSize . y - style . font . getDescent ( ) * fontScaleY * NUMBER0 ; \n Drawable background = style . background ; \n if ( background != null ) height += background . getTopHeight ( ) + background . getBottomHeight ( ) ; \n return height ;", "msg_token": "Fixed pref height for label font scale"} {"diff": " final class AlluxioFuseFileSystem extends FuseStubFS { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n LoadingCache < String , AlluxioURI > getPathResolverCache ( ) { \n return mPathResolverCache ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private class PathCacheLoader extends CacheLoader < String , AlluxioURI > { \n @ override \n public class AlluxioFramework { \n String taskId = status . getTaskId ( ) . getValue ( ) ; \n Protos . TaskState state = status . getState ( ) ; \n System . out . printf ( STRING0 , taskId , state ) ; \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE \n public final class Client { \n private Options mOptions ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public Client ( ) { \n mOptions = new Options ( ) ;", "msg_token": "Fixing indefinite articles"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ClientPasswordAuthenticationProvider implements AuthenticationProvi \n public Authentication authenticate ( Authentication authentication ) throws AuthenticationException { \n ClientPasswordAuthenticationToken auth = ( ClientPasswordAuthenticationToken ) authentication ; \n Authentication clientAuth = getAuthenticationManager ( ) . authenticate ( auth . getClientAuthentication ( ) ) ; \n - Authentication userAuth = getAuthenticationManager ( ) . authenticate ( auth . getUserAuthentication ( ) ) ; \n + Authentication userAuth ; \n + try { \n + userAuth = getAuthenticationManager ( ) . authenticate ( auth . getUserAuthentication ( ) ) ; \n + } \n + catch ( BadCredentialsException e ) { \n + throw new InvalidClientException ( STRING0 , e ) ; \n + } \n return new OAuth2Authentication ( clientAuth , userAuth ) ; \n }", "msg_token": "invalid user creds should throw appropriate oauth exception"} {"diff": " public class Clicker { \n if ( buttonToClick != null ) { \n clickOnScreen ( buttonToClick ) ; \n } else if ( scroller . scrollDown ( ) ) { \n + SINGLE \n clickOnButton ( nameRegex ) ; \n } else { \n for ( int i = NUMBER0 ; i < buttons . size ( ) ; i ++ )", "msg_token": "Added TODO comment about possible bug"} {"diff": " public class OSMWay extends OSMWithTags { \n _nodes . add ( nodeRef ) ; \n } \n \n + public void addNodeRef ( long nodeRef , int index ) { \n + _nodes . add ( index , nodeRef ) ; \n + } \n + \n public List < Long > getNodeRefs ( ) { \n return _nodes ; \n }", "msg_token": "Add method to insert a node into a way"} {"diff": " public class PyCallExpressionHelper { \n } \n \n private static boolean isQualifiedByInstance ( Callable resolved , List < PyExpression > qualifiers , TypeEvalContext context ) { \n - PyDocStringOwner owner = PsiTreeUtil . getParentOfType ( resolved , PyDocStringOwner . class ) ; \n + PyDocStringOwner owner = PsiTreeUtil . getStubOrPsiParentOfType ( resolved , PyDocStringOwner . class ) ; \n if ( ! ( owner instanceof PyClass ) ) { \n return false ; \n }", "msg_token": "avoid unnecessary stub AST switch"} {"diff": " public class ProtocolChannelClient < T extends ProtocolChannel > implements Closeab \n } \n \n public static final class Configuration < T extends ProtocolChannel > { \n - private static final long DEFAULT_CONNECT_TIMEOUT = NUMBER0 ; \n + private static final long DEFAULT_CONNECT_TIMEOUT = NUMBER1 ; \n \n private static final AtomicInteger COUNTER = new AtomicInteger ( ) ; \n private Endpoint endpoint ;", "msg_token": "Allow the client a bit more time"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n \n private ConnectivityService ( Context context ) { \n if ( DBG ) Log . v ( TAG , STRING0 ) ; \n + \n + SINGLE \n + String id = Settings . Secure . getString ( context . getContentResolver ( ) , \n + Settings . Secure . ANDROID_ID ) ; \n + if ( id != null && id . length ( ) > NUMBER0 ) { \n + String name = new String ( STRING1 ) . concat ( id ) ; \n + SystemProperties . set ( STRING2 , name ) ; \n + } \n + \n mContext = context ; \n mNetTrackers = new NetworkStateTracker [ \n ConnectivityManager . MAX_NETWORK_TYPE + NUMBER1 ] ;", "msg_token": "Set net hostname sys property to our unique ID"} {"diff": " public class ClassCompiler { \n \n createLookupFunction ( method ) ; \n } \n - if ( method . isStatic ( ) ) { \n + if ( method . isStatic ( ) && ! method . isPrivate ( ) && ! name . equals ( STRING0 ) ) { \n String fnName = method . isSynchronized ( ) \n ? Symbols . synchronizedWrapperSymbol ( method ) \n : Symbols . methodSymbol ( method ) ;", "msg_token": "Don t generate clinit wrappers for private static methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "merging Tree and SimpleTree accept and select methods"} {"diff": " public class AccountStatusPanel \n = new TransparentPanel ( new BorderLayout ( ) ) ; \n \n new PluginContainer ( \n - new TransparentPanel ( new BorderLayout ( ) ) , \n + southPluginPanel , \n Container . CONTAINER_ACCOUNT_SOUTH ) ; \n \n this . add ( southPluginPanel , BorderLayout . SOUTH ) ;", "msg_token": "Fix account panel south plugin container"} {"diff": " public class CommitLogArchiver \n { \n segment . waitForFinalSync ( ) ; \n String command = archiveCommand . replace ( STRING0 , segment . getName ( ) ) ; \n + SINGLE \n + if ( FBUtilities . isWindows ( ) ) \n + archiveCommand . replace ( STRING1 , File . separatorChar ) ; \n command = command . replace ( STRING2 , segment . getPath ( ) ) ; \n exec ( command ) ; \n }", "msg_token": "Remove incorrect file separator in CommitLogArchiver on Windows"} {"diff": " public class TestNGTestClassProcessor implements TestClassProcessor { \n try { \n JavaReflectionUtil . method ( TestNG . class , void . class , STRING0 , boolean . class ) . invoke ( testNg , options . getGroupByInstances ( ) ) ; \n } catch ( NoSuchMethodException e ) { \n - if ( options . getPreserveOrder ( ) ) { \n + if ( options . getGroupByInstances ( ) ) { \n throw e ; \n } \n }", "msg_token": "Fixed error handling for explicit setting of groupByInstances option when underlying TestNG does not support it"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n canvas . save ( ) ; \n canvas . clipRect ( mClippingRect ) ; \n canvas . translate ( getPaddingLeft ( ) , top ) ; \n + canvas . saveLayerAlpha ( NUMBER0 , NUMBER0 , canvas . getWidth ( ) , canvas . getHeight ( ) , ( int ) ( NUMBER1 * ( float ) mHeaderBottomPosition / headerHeight ) , Canvas . HAS_ALPHA_LAYER_SAVE_FLAG ) ; \n mStickiedHeader . draw ( canvas ) ; \n canvas . restore ( ) ; \n }", "msg_token": "Fade header out as it scrolls off the screen"} {"diff": " public class ColorUtils { \n COMMENT \n COMMENT \n public static final int calculateYiqLuma ( int color ) { \n - return Math . round ( ( NUMBER0 * Color . red ( color ) + NUMBER1 * Color . green ( color ) + NUMBER2 * Color . green ( color ) ) / NUMBER3 f ) ; \n + return Math . round ( ( \n + NUMBER0 * Color . red ( color ) + \n + NUMBER1 * Color . green ( color ) + \n + NUMBER2 * Color . blue ( color ) ) \n + / NUMBER3 f ) ; \n } \n \n COMMENT", "msg_token": "Fix YIQ color calculation"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class HeatmapTileProvider implements TileProvider { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n static double [ ] generateKernel ( int radius , double sd ) {", "msg_token": "Removed Log import"} {"diff": " public class MediaProxyService extends BasicModule implements ServerItemsProvide \n public static final String NAMESPACE = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public MediaProxyService ( ) { \n super ( STRING1 ) ; \n public class MediaProxyService extends BasicModule implements ServerItemsProvide \n String hostname = JiveGlobals . getProperty ( STRING2 , \n JiveGlobals . getProperty ( STRING3 , STRING4 ) ) ; \n mediaProxy = new MediaProxy ( hostname ) ; \n - serviceName = JiveGlobals . getProperty ( STRING5 , name ) ; \n + serviceName = JiveGlobals . getProperty ( STRING6 , name ) ; \n serviceName = serviceName == null ? name : serviceName . equals ( STRING7 ) ? name : serviceName ; \n \n routingTable = server . getRoutingTable ( ) ;", "msg_token": "Fix property name"} {"diff": " public class RootLoaderRef extends MatchingTask { \n if ( list [ i ] . matches ( STRING0 ) ) { \n continue ; \n } \n + if ( list [ i ] . matches ( STRING1 ) ) { \n + continue ; \n + } \n lc . addFile ( list [ i ] ) ; \n } \n return new RootLoader ( lc ) ;", "msg_token": "removes the xerces parser from the given classpath"} {"diff": " public class BottomBar extends LinearLayout implements View . OnClickListener , Vie \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n private void updateTitleBottomPadding ( ) { \n if ( tabContainer == null ) { \n return ;", "msg_token": "Removed useless comment"} {"diff": " public class Requirements { \n public static void sendSupportInfo ( final String text , final ActivityBase context ) { \n Util . log ( null , Log . WARN , text ) ; \n \n - if ( Util . hasValidFingerPrint ( context ) && ! STRING0 . equals ( System . getenv ( STRING1 ) ) \n - && ! STRING2 . equals ( Build . PRODUCT ) ) { \n + if ( Util . hasValidFingerPrint ( context ) && ! STRING0 . equals ( System . getenv ( STRING1 ) ) ) { \n AlertDialog . Builder alertDialogBuilder = new AlertDialog . Builder ( context ) ; \n alertDialogBuilder . setTitle ( R . string . app_name ) ; \n alertDialogBuilder . setMessage ( R . string . msg_support_info ) ;", "msg_token": "Enabled support info for HTC Europe again"} {"diff": " public class EmployeeBean { \n @ persistencecontext \n EntityManager em ; \n \n - public void persist ( Employee e ) { \n - em . persist ( e ) ; \n - } \n - \n public List < Employee > get ( ) { \n return em . createNamedQuery ( STRING0 , Employee . class ) . getResultList ( ) ; \n }", "msg_token": "Removing a redundant method"} {"diff": " public class NetworkController extends BroadcastReceiver { \n filter . addAction ( Telephony . Intents . SPN_STRINGS_UPDATED_ACTION ) ; \n filter . addAction ( ConnectivityManager . CONNECTIVITY_ACTION ) ; \n filter . addAction ( ConnectivityManager . INET_CONDITION_ACTION ) ; \n + filter . addAction ( Intent . ACTION_CONFIGURATION_CHANGED ) ; \n context . registerReceiver ( this , filter ) ; \n \n SINGLE \n public class NetworkController extends BroadcastReceiver { \n action . equals ( ConnectivityManager . INET_CONDITION_ACTION ) ) { \n updateConnectivity ( intent ) ; \n refreshViews ( ) ; \n + } else if ( action . equals ( Intent . ACTION_CONFIGURATION_CHANGED ) ) { \n + refreshViews ( ) ; \n } \n }", "msg_token": "Update the network info when the configuration changes"} {"diff": " public class KotlinCompiler { \n \n boolean noErrors ; \n if ( arguments . module != null ) { \n - List < Module > modules = CompileEnvironmentUtil . loadModuleScript ( arguments . module , configuration . getMessageCollector ( ) ) ; \n + List < Module > modules = CompileEnvironmentUtil . loadModuleScript ( arguments . module , new PrintingMessageCollector ( errStream , messageRenderer , false ) ) ; \n File directory = new File ( arguments . module ) . getParentFile ( ) ; \n noErrors = KotlinToJVMBytecodeCompiler . compileModules ( configuration , modules , \n directory , arguments . jar , arguments . outputDir ,", "msg_token": "Don t compile module scripts in verbose mode"} {"diff": " public final class FBReader extends ZLApplication { \n getMenubar ( ) . addItem ( ActionCode . QUIT , STRING0 ) ; \n \n ZLTextView view = new ZLTextViewImpl ( this , getContext ( ) ) ; \n - SINGLE \n - ZLStringOption bookNameOption = new ZLStringOption ( ZLOption . STATE_CATEGORY , STRING1 , STRING2 , STRING3 ) ; \n + ZLStringOption bookNameOption = new ZLStringOption ( ZLOption . STATE_CATEGORY , STRING1 , STRING2 , STRING4 ) ; \n + SINGLE \n if ( args . length > NUMBER0 ) { \n bookNameOption . setValue ( args [ NUMBER0 ] ) ; \n }", "msg_token": "changed the default book name"} {"diff": " public final class BlockDataManager implements Testable < BlockDataManager > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "SMALLFIX Update javadoc for renamed methods"} {"diff": " public class PooledConnection { \n throw ex ; \n } \n } \n + if ( connection == null ) { \n + throw new SQLException ( STRING0 + driver + STRING1 + driverURL ) ; \n + } \n + \n SINGLE \n if ( poolProperties . getJdbcInterceptors ( ) == null || poolProperties . getJdbcInterceptors ( ) . indexOf ( ConnectionState . class . getName ( ) ) < NUMBER0 ) { \n if ( poolProperties . getDefaultReadOnly ( ) != null ) connection . setReadOnly ( poolProperties . getDefaultReadOnly ( ) . booleanValue ( ) ) ;", "msg_token": "Better error message according to"} {"diff": " public class ProcessModelInfo < ModelClass extends Model > { \n return transactionInfo ; \n } \n \n + public List < ModelClass > getModels ( ) { \n + return models ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added get models to retrive information from the processmodel info"} {"diff": " public class MaterialViewPager extends FrameLayout implements ViewPager . OnPageCh \n COMMENT \n COMMENT \n public void setColor ( int color , int fadeDuration ) { \n + if ( MaterialViewPagerHelper . getAnimator ( getContext ( ) ) != null ) \n MaterialViewPagerHelper . getAnimator ( getContext ( ) ) . setColor ( color , fadeDuration * NUMBER0 ) ; \n }", "msg_token": "Fix crashes when setColor is executed when Animator is null"} {"diff": " abstract public class Pool < T > { \n COMMENT \n public void freeAll ( Array < T > objects ) { \n if ( objects == null ) throw new IllegalArgumentException ( STRING0 ) ; \n + Array < T > freeObjects = this . freeObjects ; \n + int max = this . max ; \n for ( int i = NUMBER0 ; i < objects . size ; i ++ ) { \n T object = objects . get ( i ) ; \n if ( object == null ) continue ;", "msg_token": "Avoid field lookup in loop"} {"diff": " public class InferNullityAnnotationsAction extends BaseAnalysisAction { \n PropertiesComponent . getInstance ( ) . setValue ( ANNOTATE_LOCAL_VARIABLES , String . valueOf ( myAnnotateLocalVariablesCb . isSelected ( ) ) ) ; \n \n final ProgressManager progressManager = ProgressManager . getInstance ( ) ; \n - final int totalFiles = scope . getFileCount ( ) ; \n - \n final Set < Module > modulesWithoutAnnotations = new HashSet < Module > ( ) ; \n final Set < Module > modulesWithLL = new HashSet < Module > ( ) ; \n if ( ! progressManager . runProcessWithProgressSynchronously ( new Runnable ( ) { \n @ override \n public void run ( ) { \n + final int totalFiles = scope . getFileCount ( ) ; \n \n scope . accept ( new PsiElementVisitor ( ) { \n private int myFileCount = NUMBER0 ;", "msg_token": "collect files under progress"} {"diff": " public class ProtocolProviderServiceYahooImpl \n \n SINGLE \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( ( password == null ) || \n - ( authReasonCode == SecurityAuthority . AUTHENTICATION_REQUIRED ) || \n - ( authReasonCode == SecurityAuthority . WRONG_PASSWORD ) || \n - ( authReasonCode == SecurityAuthority . WRONG_USERNAME ) ) \n + if ( password == null \n + || authReasonCode == SecurityAuthority . WRONG_PASSWORD \n + || authReasonCode == SecurityAuthority . WRONG_USERNAME ) \n { \n SINGLE \n UserCredentials credentials = new UserCredentials ( ) ;", "msg_token": "Removes unnecessary check when connecting to yahoo"} {"diff": " public class NotificationGuts extends LinearLayout implements TunerService . Tunab \n public NotificationGuts ( Context context , AttributeSet attrs ) { \n super ( context , attrs ) ; \n setWillNotDraw ( false ) ; \n - TunerService . get ( mContext ) . addTunable ( this , SHOW_SLIDER ) ; \n mHandler = new Handler ( ) ; \n mFalsingCheck = new Runnable ( ) { \n @ override \n public class NotificationGuts extends LinearLayout implements TunerService . Tunab \n ta . recycle ( ) ; \n } \n \n + @ override \n + protected void onAttachedToWindow ( ) { \n + super . onAttachedToWindow ( ) ; \n + TunerService . get ( mContext ) . addTunable ( this , SHOW_SLIDER ) ; \n + } \n + \n + @ override \n + protected void onDetachedFromWindow ( ) { \n + TunerService . get ( mContext ) . removeTunable ( this ) ; \n + super . onDetachedFromWindow ( ) ; \n + } \n + \n public void resetFalsingCheck ( ) { \n mHandler . removeCallbacks ( mFalsingCheck ) ; \n if ( mNeedsFalsingProtection && mExposed ) {", "msg_token": "Don t leak guts"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unnecessary imports"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public interface MongoConnectionManager extends AutoCloseable { \n + public interface MongoConnectionManager { \n MongoSyncConnection getConnection ( ) ; \n \n MongoAsyncConnection getAsyncConnection ( ) ;", "msg_token": "Removed errant AutoCloseable"} {"diff": " \n SINGLE \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public final class AspectParameters { \n COMMENT \n COMMENT \n COMMENT \n - @ nullable \n public ImmutableCollection < String > getAttribute ( String key ) { \n return attributes . get ( key ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getOnlyValueOfAttribute ( String key ) { \n + return getOnlyElement ( getAttribute ( key ) ) ; \n + } \n + \n public boolean isEmpty ( ) { \n return this . equals ( AspectParameters . EMPTY ) ; \n }", "msg_token": "Add a method to get a single value from AspectParameters"} {"diff": " public class TileTank extends TileBuildCraft implements IFluidHandler { \n \n @ override \n public boolean canFill ( ForgeDirection from , Fluid fluid ) { \n - return true ; \n + Fluid tankFluid = getBottomTank ( ) . tank . getFluidType ( ) ; \n + return tankFluid == null || tankFluid == fluid ; \n } \n \n @ override \n public boolean canDrain ( ForgeDirection from , Fluid fluid ) { \n - return false ; \n + Fluid tankFluid = getBottomTank ( ) . tank . getFluidType ( ) ; \n + return tankFluid != null && tankFluid == fluid ; \n } \n \n public int getFluidLightLevel ( ) {", "msg_token": "Fix canFill canDrain in tanks"} {"diff": " import NAMESPACE ; \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 COMMENT", "msg_token": "Improve documentation of Bean lite mode"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n \n mHomeStack . moveHomeStackTaskToTop ( homeStackTaskType ) ; \n ActivityRecord r = getHomeActivity ( ) ; \n - if ( r != null ) { \n + SINGLE \n + if ( r != null && ! r . finishing ) { \n mService . setFocusedActivityLocked ( r , reason ) ; \n return resumeTopActivitiesLocked ( mHomeStack , prev , null ) ; \n }", "msg_token": "Fix resumeHomeStackTask can t resume home if activity is finishing"} {"diff": " public abstract class AbstractDataSource < T > implements DataSource < T > { \n SUCCESS , \n \n SINGLE \n - FAILURE , \n + FAILURE , StoredProcedureResult , \n } \n \n @ guardedby ( STRING0 )", "msg_token": "Implemented pre key lookup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public class MavenJUnitPatcherTest extends MavenImportingTestCase { \n + \n + @ override \n + protected void setUp ( ) throws Exception { \n + super . setUp ( ) ; \n + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassArgLine ( true ) ; \n + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassEnvironmentVariables ( true ) ; \n + MavenProjectSettings . getInstance ( myProject ) . getTestRunningSettings ( ) . setPassSystemProperties ( true ) ; \n + } \n + \n public void testArgList ( ) throws Exception { \n VirtualFile m1 = createModulePom ( STRING0 , STRING1 + \n STRING2 +", "msg_token": "Fix maven test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class PipeItemsWood extends Pipe < PipeTransportItems > implements IEnergyHandler { \n protected RFBattery battery = new RFBattery ( NUMBER0 , NUMBER1 , NUMBER2 ) ; \n public class PipeItemsWood extends Pipe < PipeTransportItems > implements IEnergyHa \n \n TravelingItem entity = makeItem ( entPos , stack ) ; \n entity . setSpeed ( TransportConstants . PIPE_DEFAULT_SPEED ) ; \n - transport . injectItem ( entity , side ) ; \n + transport . injectItem ( entity , side . getOpposite ( ) ) ; \n } \n } \n }", "msg_token": "Fix Items fbeing pulled out of chests incorectly"} {"diff": " public final class EndpointHelper { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n public static < T > List < T > resolveReferenceListParameter ( CamelContext context , String value , Class < T > elementType ) { \n if ( value == null ) { \n - return Collections . emptyList ( ) ; \n + return new ArrayList < T > ( ) ; \n } \n List < String > elements = Arrays . asList ( value . split ( STRING2 ) ) ; \n if ( elements . size ( ) == NUMBER0 ) {", "msg_token": "EndpointHelper resolveReferenceListParameter should not return immutable lists"} {"diff": " public class LegacyMetadataMapper { \n CameraCharacteristics . CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES , \n CameraCharacteristics . CONTROL_AE_COMPENSATION_RANGE , \n CameraCharacteristics . CONTROL_AE_COMPENSATION_STEP , \n + CameraCharacteristics . CONTROL_AE_LOCK_AVAILABLE , \n CameraCharacteristics . CONTROL_AF_AVAILABLE_MODES , \n CameraCharacteristics . CONTROL_AVAILABLE_EFFECTS , \n CameraCharacteristics . CONTROL_AVAILABLE_SCENE_MODES , \n CameraCharacteristics . CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES , \n CameraCharacteristics . CONTROL_AWB_AVAILABLE_MODES , \n + CameraCharacteristics . CONTROL_AWB_LOCK_AVAILABLE , \n CameraCharacteristics . CONTROL_MAX_REGIONS , \n CameraCharacteristics . FLASH_INFO_AVAILABLE , \n CameraCharacteristics . INFO_SUPPORTED_HARDWARE_LEVEL ,", "msg_token": "Add missing LEGACY available keys"} {"diff": " public class ServletPrintWriter { \n if ( result . isOverflow ( ) ) { \n outputStream . flushInternal ( ) ; \n } \n + if ( result . isError ( ) || result . isUnmappable ( ) || result . isMalformed ( ) ) { \n + error = true ; \n + return ; \n + } \n } \n } catch ( IOException e ) { \n error = true ;", "msg_token": "Avoid infinite loop on unmappable characters"} {"diff": " public class ReaderPostPagerActivity extends Activity \n \n @ override \n public void restoreState ( Parcelable state , ClassLoader loader ) { \n + SINGLE \n + SINGLE \n + SINGLE \n try { \n AppLog . d ( AppLog . T . READER , STRING0 ) ; \n super . restoreState ( state , loader ) ;", "msg_token": "Added comment explaining necessary of IllegalStateException try catch"} {"diff": " public class NioChannel implements ByteChannel { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public void close ( ) throws IOException { \n getIOChannel ( ) . socket ( ) . close ( ) ; \n getIOChannel ( ) . close ( ) ; \n public class NioChannel implements ByteChannel { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public boolean isOpen ( ) { \n return sc . isOpen ( ) ; \n } \n public class NioChannel implements ByteChannel { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public int write ( ByteBuffer src ) throws IOException { \n return sc . write ( src ) ; \n } \n public class NioChannel implements ByteChannel { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public int read ( ByteBuffer dst ) throws IOException { \n return sc . read ( dst ) ; \n }", "msg_token": "Add Override annotation"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MigrateCvsRootAction extends AnAction { \n public MigrateCvsRootAction ( ) { \n super ( ) ; \n myVisibility . shouldNotBePerformedOnFile ( ) ; \n + myVisibility . addCondition ( ActionOnSelectedElement . FILES_ARE_UNDER_CVS ) ; \n } \n \n @ override", "msg_token": "only enable migrate cvs root action on directories under CVS"} {"diff": " public class ActivityMain extends Activity implements OnItemSelectedListener , Co \n boolean mounted = Environment . MEDIA_MOUNTED . equals ( Environment . getExternalStorageState ( ) ) ; \n \n menu . findItem ( R . id . menu_export ) . setEnabled ( pro && mounted ) ; \n + menu . findItem ( R . id . menu_import ) . setEnabled ( pro && mounted ) ; \n menu . findItem ( R . id . menu_pro ) . setVisible ( ! pro ) ; \n \n return super . onPrepareOptionsMenu ( menu ) ;", "msg_token": "Revert always allow import"} {"diff": " public class Camera { \n COMMENT \n COMMENT \n public List < Area > getMeteringAreas ( ) { \n - return splitArea ( KEY_METERING_AREAS ) ; \n + return splitArea ( get ( KEY_METERING_AREAS ) ) ; \n } \n \n COMMENT", "msg_token": "Fix camera getMeteringAreas does not return areas correctly"} {"diff": " public class ShowcaseView extends RelativeLayout \n showcaseView . setEndButton ( button ) ; \n return this ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Builder replaceEndButton ( int buttonResourceId ) { \n + View view = LayoutInflater . from ( activity ) . inflate ( buttonResourceId , showcaseView , false ) ; \n + if ( ! ( view instanceof Button ) ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + return replaceEndButton ( ( Button ) view ) ; \n + } \n } \n \n private void setEndButton ( Button button ) {", "msg_token": "Add resource Id button API"} {"diff": " import NAMESPACE ; \n mPreChange . substring ( NUMBER0 , mMaxLength ) . equals ( postChange ) ) ) { \n return ; \n } \n - mPreChange = postChange ; \n if ( NUMBER0 == count ) { \n if ( before > NUMBER0 ) { \n SINGLE \n import NAMESPACE ; \n SINGLE \n SINGLE \n if ( count > NUMBER1 && before == count - NUMBER1 ) { \n - String replaceButOne = s . subSequence ( start , \n + String replaceButOne = mPreChange . subSequence ( start , \n start + before ) . toString ( ) ; \n - String replacedString = getText ( ) . subSequence ( start , \n + String replacedString = s . subSequence ( start , \n start + before ) . toString ( ) ; \n if ( replaceButOne . equals ( replacedString ) ) { \n SINGLE \n import NAMESPACE ; \n count = NUMBER1 ; \n } \n } \n + mPreChange = postChange ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix add single character check"} {"diff": " public class Downloader extends Plugin { \n obj . put ( STRING0 , NUMBER0 ) ; \n obj . put ( STRING1 , fileSize ) ; \n obj . put ( STRING2 , fileName ) ; \n + obj . put ( STRING3 , dirName ) ; \n obj . put ( STRING4 , progress ) ; \n \n return new PluginResult ( PluginResult . Status . OK , obj ) ;", "msg_token": "Downloader would sometimes not return the directory name depending on the code path"} {"diff": " public final class DebugAppContainer implements AppContainer { \n \n @ override public ViewGroup get ( final Activity activity ) { \n this . activity = activity ; \n - drawerContext = new ContextThemeWrapper ( activity , R . style . Theme_U2020_Debug ) ; ; \n + drawerContext = new ContextThemeWrapper ( activity , R . style . Theme_U2020_Debug ) ; \n \n riseAndShine ( activity ) ;", "msg_token": "Remove unnecessary semicolon"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub \n SINGLE \n info = new NetworkInfo ( info ) ; \n info . setDetailedState ( DetailedState . BLOCKED , null , null ) ; \n - if ( DBG ) log ( STRING0 ) ; \n + if ( DBG ) { \n + log ( STRING1 + \n + lp . getInterfaceName ( ) + STRING2 + uid ) ; \n + } \n } \n if ( info != null && mLockdownTracker != null ) { \n info = mLockdownTracker . augmentNetworkInfo ( info ) ;", "msg_token": "Log interface name and uid when filtering a blocked network"} {"diff": " public class TestDiscoveryExtension extends RunConfigurationExtension { \n final String tracesDirectory = getTracesDirectory ( configuration ) ; \n final TestDiscoveryIndex coverageIndex = TestDiscoveryIndex . getInstance ( configuration . getProject ( ) ) ; \n synchronized ( ourTracesLock ) { \n - final File [ ] testMethodTraces = new File ( tracesDirectory ) . listFiles ( new FilenameFilter ( ) { \n + final File tracesDirectoryFile = new File ( tracesDirectory ) ; \n + final File [ ] testMethodTraces = tracesDirectoryFile . listFiles ( new FilenameFilter ( ) { \n @ override \n public boolean accept ( File dir , String name ) { \n return name . endsWith ( STRING0 ) ; \n public class TestDiscoveryExtension extends RunConfigurationExtension { \n LOG . error ( STRING1 + testMethodTrace , e ) ; \n } \n } \n + \n + if ( tracesDirectoryFile . list ( ) == null ) FileUtil . delete ( tracesDirectoryFile ) ; \n } \n } \n }", "msg_token": "remove empty directory"} {"diff": " public abstract class GenericsHighlightUtil { \n PsiModifierList list = method . getModifierList ( ) ; \n final PsiAnnotation overrideAnnotation = list . findAnnotation ( STRING0 ) ; \n if ( overrideAnnotation != null ) { \n - PsiClass superClass = method . getContainingClass ( ) . getSuperClass ( ) ; \n - if ( superClass != null ) { \n - PsiMethod [ ] superMethods = method . findSuperMethods ( ) ; \n - for ( PsiMethod superMethod : superMethods ) { \n - if ( InheritanceUtil . isInheritorOrSelf ( superClass , superMethod . getContainingClass ( ) , true ) ) return null ; \n - } \n - return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , overrideAnnotation , \n - STRING1 ) ; \n + PsiMethod [ ] superMethods = method . findSuperMethods ( ) ; \n + for ( PsiMethod superMethod : superMethods ) { \n + if ( ! superMethod . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return null ; \n } \n + return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , overrideAnnotation , \n + STRING1 ) ; \n } \n return null ; \n }", "msg_token": "Override check error"} {"diff": " public class PrefStore { \n return ! getSharedPreferences ( ctx ) . contains ( PREF_MAX_SYNCED_DATE ) ; \n } \n \n + static boolean isFirstUse ( Context ctx ) { \n + final String key = STRING0 ; \n + \n + if ( isFirstSync ( ctx ) && \n + ! getSharedPreferences ( ctx ) . contains ( key ) ) { \n + getSharedPreferences ( ctx ) . edit ( ) . putBoolean ( key , false ) . commit ( ) ; \n + return true ; \n + } else { \n + return false ; \n + } \n + } \n + \n static void clearSyncData ( Context ctx ) { \n getSharedPreferences ( ctx ) . edit ( ) \n . remove ( PREF_LOGIN_USER ) \n public class SmsSync extends PreferenceActivity { \n \n updateConnected ( ) ; \n updateUsernameLabelFromPref ( ) ; \n + \n + SINGLE \n + if ( PrefStore . isFirstUse ( SmsSync . this ) ) { \n + show ( Dialogs . FIRST_SYNC ) ; \n + } \n } else { \n show ( Dialogs . ACCESS_TOKEN_ERROR ) ; \n }", "msg_token": "Invite user to perform a backup after connecting only once"} {"diff": " public class EJB3RemoteServiceAdd extends AbstractBoottimeAddStepHandler { \n } \n \n ServiceController < EJBRemoteConnectorService > installRuntimeService ( final OperationContext context , final ModelNode model , final ServiceVerificationHandler verificationHandler ) { \n - SINGLE \n final String connectorName = model . require ( CONNECTOR_REF ) . asString ( ) ; \n final String threadPoolName = model . require ( THREAD_POOL_NAME ) . asString ( ) ; \n final ServiceTarget serviceTarget = context . getServiceTarget ( ) ; \n public class EJB3RemoteServiceAdd extends AbstractBoottimeAddStepHandler { \n final ServiceBuilder < EJBRemoteConnectorService > ejbRemoteConnectorServiceBuilder = serviceTarget . addService ( EJBRemoteConnectorService . SERVICE_NAME , service ) ; \n SINGLE \n ejbRemoteConnectorServiceBuilder . addDependency ( RemotingServices . SUBSYSTEM_ENDPOINT , Endpoint . class , service . getEndpointInjector ( ) ) ; \n + SINGLE \n + ejbRemoteConnectorServiceBuilder . addDependency ( RemotingServices . connectorServiceName ( connectorName ) ) ; \n SINGLE \n ejbRemoteConnectorServiceBuilder . addDependency ( EJB3ThreadPoolAdd . BASE_SERVICE_NAME . append ( threadPoolName ) , ExecutorService . class , service . getExecutorService ( ) ) \n . addDependency ( DeploymentRepository . SERVICE_NAME , DeploymentRepository . class , service . getDeploymentRepositoryInjector ( ) )", "msg_token": "Fix dependency between the EJB remoting service and the remoting connector service"} {"diff": " public class MultipartFormDataBody extends BoundaryEmitter implements AsyncHttpR \n c . add ( new ContinuationCallback ( ) { \n @ override \n public void onContinue ( Continuation continuation , CompletedCallback next ) throws Exception { \n - byte [ ] bytes = ( getBoundaryEnd ( ) + STRING0 ) . getBytes ( ) ; \n + byte [ ] bytes = ( getBoundaryEnd ( ) ) . getBytes ( ) ; \n com . koushikdutta . async . Util . writeAll ( sink , bytes , next ) ; \n written += bytes . length ;", "msg_token": "Removed extra CRLF"} {"diff": " public class ViewPropertyAnimator { \n NameValuesHolder nameValuePair = new NameValuesHolder ( constantName , startValue , byValue ) ; \n mPendingAnimations . add ( nameValuePair ) ; \n mView . removeCallbacks ( mAnimationStarter ) ; \n - mView . post ( mAnimationStarter ) ; \n + mView . postOnAnimation ( mAnimationStarter ) ; \n } \n \n COMMENT", "msg_token": "Fix start delay jank in ViewPropertyAnimator"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class AssetsController { \n } \n \n SINGLE \n - context . finalizeHeaders ( result ) ; \n + ResponseStreams responseStreams \n + = context . finalizeHeaders ( result ) ; \n \n ByteStreams . copy ( \n this . getClass ( ) \n . getClassLoader ( ) \n . getResourceAsStream ( \n ASSETS_PREFIX + finalName ) , \n - context . getHttpServletResponse ( ) \n - . getOutputStream ( ) ) ; \n + responseStreams . getOutputStream ( ) ) ; \n \n } catch ( FileNotFoundException e ) { \n logger . error ( STRING0 , e ) ;", "msg_token": "Removed deprecated method"} {"diff": " public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > imple \n @ override \n public boolean dropCluster ( final int iClusterId , final boolean iTruncate ) { \n checkIfActive ( ) ; \n + \n + checkSecurity ( ORule . ResourceGeneric . CLUSTER , ORole . PERMISSION_DELETE , getClusterNameById ( iClusterId ) ) ; \n + \n final OClass clazz = metadata . getSchema ( ) . getClassByClusterId ( iClusterId ) ; \n if ( clazz != null ) \n clazz . removeClusterId ( iClusterId ) ;", "msg_token": "Added security check on drop cluster"} {"diff": " public class BSONBinaryReader extends BSONReader { \n public RegularExpression readRegularExpression ( ) { \n checkPreconditions ( STRING0 , BsonType . REGULAR_EXPRESSION ) ; \n setState ( getNextState ( ) ) ; \n - return new RegularExpression ( buffer . readString ( ) , buffer . readString ( ) ) ; \n + return new RegularExpression ( buffer . readCString ( ) , buffer . readCString ( ) ) ; \n } \n \n @ override", "msg_token": "Fixed a bug in reading regular expressions"} {"diff": " public class JIoEndpoint extends AbstractEndpoint { \n SINGLE \n } \n } \n - } catch ( IOException x ) { \n - if ( running ) log . error ( sm . getString ( STRING0 ) , x ) ; \n + } catch ( IOException x ) { \n + if ( running ) { \n + log . error ( sm . getString ( STRING0 ) , x ) ; \n + } \n + } catch ( NullPointerException npe ) { \n + if ( running ) { \n + log . error ( sm . getString ( STRING0 ) , npe ) ; \n + } \n } catch ( Throwable t ) { \n log . error ( sm . getString ( STRING0 ) , t ) ; \n } \n - \n SINGLE \n - \n } \n - \n } \n - \n }", "msg_token": "Also handle NPEs seen during testing of new async re factoring and ignore them if the endpoint is shutting down"} {"diff": " package NAMESPACE ; \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 public class Matchers { \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", "msg_token": "Improved javadoc around custom matchers"} {"diff": " public class PluginRunConfiguration extends RunConfigurationBase { \n params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING0 ) ; \n params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING1 ) ; \n params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING2 ) ; \n + params . getClassPath ( ) . addFirst ( libPath + File . separator + STRING3 ) ; \n params . getClassPath ( ) . addFirst ( ideaJdk . getToolsPath ( ) ) ; \n \n Sdk run = jdk ;", "msg_token": "add idea jar for compatibility"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class TitanHadoopConfiguration { \n \n public static final ConfigNamespace ROOT_NS = \n public class TitanHadoopConfiguration { \n public static final ConfigOption < String > INDEX_TYPE = new ConfigOption < String > ( \n INDEX_NS , STRING0 , \n STRING1 , \n - ConfigOption . Type . LOCAL , String . class ) ; \n + ConfigOption . Type . LOCAL , String . class , STRING2 , new Predicate < String > ( ) { \n + @ override \n + public boolean apply ( @ nullable String input ) { \n + return null != input ; SINGLE \n + } \n + } ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fix predicate on reindex type"} {"diff": " public class RegularPactTask < S extends Stub , OT > extends AbstractTask implements \n throw new Exception ( STRING0 + this . getEnvironment ( ) . getTaskName ( ) + \n STRING1 + t . getMessage ( ) , t ) ; \n } \n + \n + SINGLE \n + if ( ! this . running ) { \n + return ; \n + } \n \n SINGLE \n RegularPactTask . openChainedTasks ( this . chainedTasks , this ) ;", "msg_token": "Added cancelling hook that was lost during merge"} {"diff": " public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > , Closeab \n currentIterator = currentResult . getResults ( ) . iterator ( ) ; \n } \n \n - protected MongoConnector getConnector ( ) { \n + private MongoConnector getConnector ( ) { \n return getCollection ( ) . getConnector ( ) ; \n } \n - \n }", "msg_token": "Changed visibility of getConnector method to private"} {"diff": " class FunctionArgumentInjector { \n private static boolean canNameValueChange ( Node n , Node parent ) { \n int type = parent . getType ( ) ; \n return ( type == Token . VAR || type == Token . INC || type == Token . DEC || \n - ( NodeUtil . isAssignmentOp ( parent ) && parent . getFirstChild ( ) == n ) ) ; \n + ( NodeUtil . isAssignmentOp ( parent ) && parent . getFirstChild ( ) == n ) || \n + ( NodeUtil . isForIn ( parent ) ) ) ; \n } \n \n COMMENT \n public class InlineFunctionsTest extends CompilerTestCase { \n STRING0 ) ; \n } \n \n + public void test8609285a ( ) { \n + test ( \n + STRING1 , \n + STRING2 ) ; \n + } \n + \n + public void test8609285b ( ) { \n + test ( \n + STRING3 , \n + STRING2 ) ; \n + } \n }", "msg_token": "Fix inlining of functions whose named parameter are assigned in for in loops"} {"diff": " public abstract class AbstractRememberMeServices implements RememberMeServices , \n } \n \n public void afterPropertiesSet ( ) throws Exception { \n - Assert . hasLength ( key ) ; \n + Assert . hasLength ( key , STRING0 ) ; \n Assert . notNull ( userDetailsService , STRING1 ) ; \n }", "msg_token": "AbstractRememberMeServices provide message for Assert on key fieldd"} {"diff": " public class RemoteBlockInStream extends BlockInStream { \n long blockId , long offset , long length , TachyonConf conf ) throws IOException { \n SINGLE \n closeReader ( ) ; \n - RemoteBlockReader mCurrentReader = RemoteBlockReader . Factory . createRemoteBlockReader ( conf ) ; \n + mCurrentReader = RemoteBlockReader . Factory . createRemoteBlockReader ( conf ) ; \n return mCurrentReader . readRemoteBlock ( \n address . getHostName ( ) , address . getPort ( ) , blockId , offset , length ) ; \n }", "msg_token": "retrieveByteBufferFromRemoteMachine should not create mCurrentReader"} {"diff": " public class JdbcTokenRepositoryImplTests { \n \n @ beforeclass \n public static void createDataSource ( ) { \n - dataSource = new DriverManagerDataSource ( ) ; \n - dataSource . setDriverClassName ( STRING0 ) ; \n - dataSource . setUrl ( STRING1 ) ; \n - dataSource . setUsername ( STRING2 ) ; \n - dataSource . setPassword ( STRING3 ) ; \n + dataSource = new DriverManagerDataSource ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n } \n \n @ before", "msg_token": "Simplified initialization of datasource"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing redundant imports"} {"diff": " public class PyUtil { \n return ArrayUtil . toObjectArray ( result , aClass ) ; \n } \n \n - public static PyExpression flattenParens ( PyExpression expr ) { \n + @ nullable \n + public static PyExpression flattenParens ( @ nullable PyExpression expr ) { \n while ( expr instanceof PyParenthesizedExpression ) { \n expr = ( ( PyParenthesizedExpression ) expr ) . getContainedExpression ( ) ; \n }", "msg_token": "Refactored a bit"} {"diff": " abstract class AbstractTFS extends FileSystem { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - @ override \n public abstract String getScheme ( ) ; \n \n COMMENT", "msg_token": "Fix compilation error"} {"diff": " public final class Configuration implements Parcelable , Comparable < Configuration \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public int keyboard ; \n \n public final class Configuration implements Parcelable , Comparable < Configuration \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public int navigation ;", "msg_token": "Fix Configuration documentation for new constants"} {"diff": " class DisplayContent { \n mTouchExcludeRegion . op ( mTmpRect , Region . Op . DIFFERENCE ) ; \n } \n } \n - mTapDetector . setTouchExcludeRegion ( mTouchExcludeRegion ) ; \n + if ( mTapDetector != null ) { \n + mTapDetector . setTouchExcludeRegion ( mTouchExcludeRegion ) ; \n + } \n } \n \n void switchUserStacks ( ) {", "msg_token": "Fix NPE in DisplayContent setTouchExcludeRegion"} {"diff": " public abstract class LookupArranger { \n } \n result . addAll ( items ) ; \n ArrayList < LookupElement > list = new ArrayList < LookupElement > ( result ) ; \n - int selected = onExplicitAction ? NUMBER0 : list . indexOf ( lookup . getCurrentItem ( ) ) ; \n + int selected = ! lookup . isSelectionTouched ( ) && onExplicitAction ? NUMBER0 : list . indexOf ( lookup . getCurrentItem ( ) ) ; \n return new Pair < List < LookupElement > , Integer > ( list , selected >= NUMBER0 ? selected : NUMBER0 ) ; \n } \n \n public abstract class LookupActionHandler extends EditorActionHandler { \n lookup . setFocused ( true ) ; \n lookup . getList ( ) . setSelectedIndex ( NUMBER0 ) ; \n } \n + lookup . markSelectionTouched ( ) ; \n ListScrollingUtil . moveUp ( lookup . getList ( ) , NUMBER0 ) ; \n lookup . refreshUi ( false , true ) ; \n return true ;", "msg_token": "fix up arrow jumping to the first suggestion in in place rename"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class RuleClass { \n } \n } \n \n - static Builder createPlaceholderBuilder ( \n - final String name , final Location ruleLocation , ImmutableList < RuleClass > parents ) { \n - return new Builder ( name , RuleClassType . PLACEHOLDER , COMMENT true , \n - parents . toArray ( new RuleClass [ parents . size ( ) ] ) ) . factory ( \n - new ConfiguredTargetFactory < Object , Object > ( ) { \n - @ override \n - public Object create ( Object ruleContext ) throws InterruptedException { \n - throw new IllegalStateException ( \n - STRING0 + name \n - + STRING1 + ruleLocation ) ; \n - } \n - } ) ; \n - } \n - \n private final String name ; SINGLE \n \n COMMENT", "msg_token": "Delete unused RuleClass createPlaceholderBuilder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RegionCommands { \n throws WorldEditException { \n \n Region region = session . getSelection ( player . getWorld ( ) ) ; \n + Mask mask = session . getMask ( ) ; \n + session . setMask ( null ) ; \n player . getWorld ( ) . regenerate ( region , editSession ) ; \n + session . setMask ( mask ) ; \n player . print ( STRING0 ) ; \n } \n }", "msg_token": "Disabling global masks while regnerating because they only affect the area outside the selection"} {"diff": " public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc \n handler . getClass ( ) . getSimpleName ( ) ) ; \n } \n } \n - SINGLE \n catch ( Throwable t ) { \n - logger . warn ( STRING0 + className , t ) ; \n + logger . trace ( STRING0 + className , t ) ; \n } \n } \n }", "msg_token": "Swallow those exception"} {"diff": " import NAMESPACE ; \n \n public class FirewallingTcpIpConnectionManager extends TcpIpConnectionManager { \n \n - final Set < Address > blockedAddresses = Collections . newSetFromMap ( new ConcurrentHashMap < Address , Boolean > ( ) ) ; \n + private final Set < Address > blockedAddresses = Collections . newSetFromMap ( new ConcurrentHashMap < Address , Boolean > ( ) ) ; \n \n public FirewallingTcpIpConnectionManager ( \n LoggingService loggingService , \n public class FirewallingTcpIpConnectionManager extends TcpIpConnectionManager { \n Connection connection = getConnection ( address ) ; \n if ( connection instanceof DroppingConnection ) { \n connection . close ( null , null ) ; \n + onClose ( connection ) ; \n } \n }", "msg_token": "FirewallingTcpIpConnectionManager unblock should remove DroppingConnection"} {"diff": " public abstract class GroovyPage extends Script { \n else { \n tagLib = ( GroovyObject ) appContext . getBean ( tagLibClass . getFullName ( ) ) ; \n try { \n - new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) , request , response ) ; \n + new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) ) ; \n } catch ( IntrospectionException e ) { \n throw new GrailsTagException ( STRING0 + tagLibClass . getFullName ( ) + STRING1 + e . getMessage ( ) , e ) ; \n } \n public class JspInvokeGrailsTagLibTag extends BodyTagSupport implements DynamicA \n else { \n tagLib = ( GroovyObject ) appContext . getBean ( tagLibClass . getFullName ( ) ) ; \n try { \n - new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) , request , response ) ; \n + new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) ) ; \n } catch ( IntrospectionException e ) { \n throw new GrailsTagException ( STRING0 + tagLibClass . getFullName ( ) + STRING1 + e . getMessage ( ) , e ) ; \n }", "msg_token": "updated following change to TagLibDynamicMethods contructor"} {"diff": " public class JMSBroadcaster extends AbstractBroadcasterProxy { \n broadcastReceivedMessage ( message ) ; \n } \n } catch ( JMSException ex ) { \n - logger . warn ( STRING0 , ex ) ; \n + logger . warn ( STRING1 , ex ) ; \n } \n } \n } ) ; \n public class JMSBroadcaster extends AbstractBroadcasterProxy { \n id = STRING2 ; \n } \n \n + if ( session == null ) { \n + throw new IllegalStateException ( STRING3 ) ; \n + } \n + \n TextMessage textMessage = session . createTextMessage ( message . toString ( ) ) ; \n textMessage . setStringProperty ( STRING4 , id ) ; \n publisher . send ( textMessage ) ;", "msg_token": "Throw an exception if the Broadcaster wasn t started properly"} {"diff": " public abstract class NinjaApiDocTest extends DocTest { \n } \n \n public URI buildUri ( String relativePath , Map < String , String > parameters ) throws URISyntaxException { \n - return build ( STRING0 + relativePath , parameters ) . build ( ) ; \n + return build ( relativePath , parameters ) . build ( ) ; \n } \n \n public URI buildUri ( String relativePath ) throws URISyntaxException { \n - return build ( STRING0 + relativePath , null ) . build ( ) ; \n + return build ( relativePath , null ) . build ( ) ; \n } \n \n private URIBuilder build ( String relativePath , Map < String , String > parameters ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed test urls and import"} {"diff": " public class ParameterContext { \n \n public io . crate . planner . symbol . Literal getAsSymbol ( int index ) { \n try { \n - Object value ; \n - if ( hasBulkParams ( ) ) { \n - value = bulkParameters [ currentIdx ] [ index ] ; \n - } else { \n - value = parameters [ index ] ; \n - } \n + Object value = parameters ( ) [ index ] ; \n DataType type = guessTypeSafe ( value ) ; \n SINGLE \n return newLiteral ( type , type . value ( value ) ) ;", "msg_token": "increased test coverage"} {"diff": " public class RegistrationTest extends TomcatBaseTest { \n \n tomcat . stop ( ) ; \n \n - SINGLE \n - onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ; \n - assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ; \n + SINGLE \n + onames = mbeanServer . queryNames ( new ObjectName ( STRING2 ) , null ) ; \n + assertTrue ( STRING3 , onames . size ( ) > NUMBER0 ) ; \n \n SINGLE \n StandardHost host = new StandardHost ( ) ; \n public class RegistrationTest extends TomcatBaseTest { \n tomcat . start ( ) ; \n tomcat . stop ( ) ; \n \n + SINGLE \n onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ; \n assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ; \n + onames = mbeanServer . queryNames ( new ObjectName ( STRING2 ) , null ) ; \n + assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ; \n } \n \n }", "msg_token": "Align test with expected behaviour currently fails"} {"diff": " public class ReadOnlyStorageEngine implements StorageEngine < ByteArray , byte [ ] > { \n File backup = ReadOnlyUtils . findKthVersionedDir ( storeDirList , storeDirList . length - NUMBER0 ) ; \n \n File primary ; \n - if ( versionDir != null && versionDir . exists ( ) ) { \n + if ( versionDir != null ) { \n primary = versionDir ; \n } else { \n primary = new File ( storeDir , STRING0 + maxVersionId ) ;", "msg_token": "Removed irrelevant check"} {"diff": " public class Androlib { \n throws AndrolibException { \n DumperOptions options = new DumperOptions ( ) ; \n options . setDefaultFlowStyle ( DumperOptions . FlowStyle . BLOCK ) ; \n - options . setIndent ( NUMBER0 ) ; \n + SINGLE \n Yaml yaml = new Yaml ( options ) ; \n try { \n yaml . dump ( meta , new FileWriter ( new File ( mOutDir , STRING0 ) ) ) ;", "msg_token": "use default intendation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UpdateMessageService { \n \n @ autowired protected RestClient restClient ; \n @ autowired private GtasksPreferenceService gtasksPreferenceService ; \n + @ autowired private ActFmPreferenceService actFmPreferenceService ; \n @ autowired private AddOnService addOnService ; \n @ autowired private StoreObjectDao storeObjectDao ; \n \n public class UpdateMessageService { \n int versionCode = pi . versionCode ; \n String result = restClient . get ( URL + STRING0 + versionCode + STRING1 + \n STRING2 + Locale . getDefault ( ) . getISO3Language ( ) + STRING1 + \n - STRING3 + Constants . MARKET_STRATEGY . strategyId ( ) ) ; SINGLE \n + STRING3 + Constants . MARKET_STRATEGY . strategyId ( ) + STRING1 + \n + STRING4 + ( actFmPreferenceService . isLoggedIn ( ) ? STRING5 : STRING6 ) ) ; SINGLE \n if ( TextUtils . isEmpty ( result ) ) \n return null ;", "msg_token": "Send logged in status for the update message"} {"diff": " public class ClientSocketStats { \n if ( parent == null && statsMap != null ) { \n int monitoringInterval = this . monitoringInterval . get ( ) ; \n if ( monitoringCount % ( monitoringInterval + NUMBER0 ) == monitoringInterval ) { \n + long startTimeNs = System . nanoTime ( ) ; \n + \n SINGLE \n Iterator < SocketDestination > it = statsMap . keySet ( ) . iterator ( ) ; \n while ( it . hasNext ( ) ) { \n public class ClientSocketStats { \n } \n SINGLE \n resetForInterval ( ) ; \n + \n + logger . info ( STRING0 + System . identityHashCode ( this ) \n + + STRING1 \n + + ( startTimeNs - System . nanoTime ( ) ) + STRING2 ) ; \n } \n } \n }", "msg_token": "Added INFO level messages to better understand resetting stats in ClientSocketStats"} {"diff": " public class QuotationAnnotatorTest extends TestCase { \n } \n } \n \n + public void testBasicInternalPunc ( ) { \n + String text = STRING0 + \n + STRING1 ; \n + List < CoreMap > quotes = runQuotes ( text , NUMBER0 ) ; \n + assertEquals ( text , quotes . get ( NUMBER1 ) . get ( CoreAnnotations . TextAnnotation . class ) ) ; \n + } \n + \n public void testBasicLatexQuotes ( ) { \n String text = STRING2 ; \n List < CoreMap > quotes = runQuotes ( text , NUMBER2 ) ;", "msg_token": "added a quote test for internal punc"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MetricsBean { \n private long minuteTimestamp ; \n private long hourTimestamp ; \n \n - public void feedRefreshed ( ) { \n + @ aroundinvoke \n + private Object roll ( InvocationContext context ) throws Exception { \n long now = System . currentTimeMillis ( ) ; \n if ( now - minuteTimestamp > NUMBER0 ) { \n lastMinute = thisMinute ; \n public class MetricsBean { \n minuteTimestamp = now ; \n \n } \n - thisMinute . feedsRefreshed ++ ; \n \n if ( now - hourTimestamp > NUMBER0 * NUMBER1 ) { \n lastHour = thisHour ; \n public class MetricsBean { \n hourTimestamp = now ; \n \n } \n + return context . proceed ( ) ; \n + } \n + \n + public void feedRefreshed ( ) { \n + thisMinute . feedsRefreshed ++ ; \n thisHour . feedsRefreshed ++ ; \n }", "msg_token": "better rolling mechanism for metrics"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class PyEduDebugRunner extends PyDebugRunner { \n - public static final String OUTPUT = STRING0 ; \n private static final Logger LOG = Logger . getInstance ( PyEduDebugRunner . class ) ; \n public static final int NO_LINE = - NUMBER0 ; \n \n public class PyEduDebugRunner extends PyDebugRunner { \n view . enableConsole ( false ) ; \n \n Content eduConsole = \n - ui . createContent ( OUTPUT , view . getComponent ( ) , OUTPUT , AllIcons . Debugger . ToolConsole , view . getPreferredFocusableComponent ( ) ) ; \n + ui . createContent ( STRING1 , view . getComponent ( ) , \n + XDebuggerBundle . message ( STRING2 ) , \n + AllIcons . Debugger . ToolConsole , view . getPreferredFocusableComponent ( ) ) ; \n eduConsole . setCloseable ( false ) ; \n ui . addContent ( eduConsole , NUMBER1 , PlaceInGrid . right , false ) ;", "msg_token": "renamed Output back to Console"} {"diff": " public class SpecialPhrases { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static Locale getPreferredLanguage ( OsmandSettings set ) { \n if ( set . usingEnglishNames ( ) ) { \n - return new Locale ( STRING0 ) ; \n + return Locale . ENGLISH ; \n } \n return Locale . getDefault ( ) ;", "msg_token": "Using constant instead of new object"} {"diff": " public interface ILanguageAdapter { \n catch ( ClassNotFoundException e ) \n { \n SINGLE \n - FMLLog . log ( Level . SEVERE , e , STRING0 , proxyTarget . getSimpleName ( ) , target . getName ( ) ) ; \n - throw new LoaderException ( e ) ; \n + FMLLog . log ( Level . INFO , e , STRING0 , proxyTarget . getSimpleName ( ) , target . getName ( ) ) ; \n + return ; \n } \n \n SINGLE", "msg_token": "Don t throw an exception if the scala adapter find a java proxy"} {"diff": " public abstract class PsiType { \n COMMENT \n COMMENT \n COMMENT \n - public boolean isAssignableFrom ( PsiType type ) { \n + public boolean isAssignableFrom ( @ notnull PsiType type ) { \n return TypeConversionUtil . isAssignable ( this , type ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n - public boolean isConvertibleFrom ( PsiType type ) { \n + public boolean isConvertibleFrom ( @ notnull PsiType type ) { \n return TypeConversionUtil . areTypesConvertible ( type , this ) ; \n } \n \n public class TypeConversionUtil { \n COMMENT \n COMMENT \n COMMENT \n - public static boolean areTypesConvertible ( PsiType fromType , PsiType toType ) { \n + public static boolean areTypesConvertible ( @ notnull PsiType fromType , @ notnull PsiType toType ) { \n if ( isPrimitiveAndNotNull ( fromType ) || isPrimitiveAndNotNull ( toType ) ) { \n final int fromTypeRank = getTypeRank ( fromType ) ; \n final int toTypeRank = getTypeRank ( toType ) ;", "msg_token": "add NotNull annotations"} {"diff": " public class BubbleView extends FrameLayout { \n @ override \n public void onPageLoading ( String url ) { \n showProgressBar ( true , NUMBER0 ) ; \n + onReceivedIcon ( null ) ; \n } \n \n @ override", "msg_token": "Restore default favicon when page loads so as to prevent a favicon from the last webpage being used"} {"diff": " public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getExpandedItemsCount ( int from , int position ) { \n + int totalAddedItems = NUMBER0 ; \n + int length = mExpanded . size ( ) ; \n + for ( int i = NUMBER0 ; i < length ; i ++ ) { \n + SINGLE \n + if ( mExpanded . keyAt ( i ) >= from && mExpanded . keyAt ( i ) < position ) { \n + totalAddedItems = totalAddedItems + mExpanded . get ( mExpanded . keyAt ( i ) ) ; \n + } else if ( mExpanded . keyAt ( i ) >= position ) { \n + SINGLE \n + break ; \n + } \n + } \n + return totalAddedItems ; \n + } \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add new method to get the count of expandable items before a specific position"} {"diff": " public abstract class TestBase { \n public TestBase ( Configuration config , String clusterConfig ) { \n this . clusterConfig = clusterConfig ; \n this . config = config ; \n + \n + LogUtils . initializeDefaultConsoleLogger ( Level . WARN ) ; \n + \n verifyJvmOptions ( ) ; \n } \n \n public TestBase ( Configuration testConfig ) { \n this ( testConfig , Constants . DEFAULT_TEST_CONFIG ) ; \n - \n - LogUtils . initializeDefaultConsoleLogger ( Level . WARN ) ; \n } \n \n private void verifyJvmOptions ( ) {", "msg_token": "Changed default testing log verbosity for TestBase"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class SearchEverywhereAction extends AnAction implements CustomComponentA \n return field ; \n } \n \n - private static class MySearchTextField extends SearchTextField { \n + private static class MySearchTextField extends SearchTextField implements DataProvider { \n public MySearchTextField ( ) { \n super ( false ) ; \n setOpaque ( false ) ; \n public class SearchEverywhereAction extends AnAction implements CustomComponentA \n @ override \n protected void showPopup ( ) { \n } \n + \n + @ nullable \n + @ override \n + public Object getData ( @ nonnls String dataId ) { \n + if ( PlatformDataKeys . PREDEFINED_TEXT . is ( dataId ) ) { \n + return getTextEditor ( ) . getText ( ) ; \n + } \n + return null ; \n + } \n } \n \n private class MyListRenderer extends ColoredListCellRenderer {", "msg_token": "transfer search query to go to actions"} {"diff": " public class TechnicalDebtXMLImporter implements ServerExtension { \n cursor . getStreamReader ( ) . closeCompletely ( ) ; \n \n } catch ( XMLStreamException e ) { \n + LOG . error ( STRING0 , e ) ; \n messages . addErrorText ( STRING1 + e . getMessage ( ) ) ; \n } \n return model ;", "msg_token": "Fix quality flaw"} {"diff": " public abstract class DbTest < T extends Application > extends ApplicationTestCase < \n protected SQLiteDatabase db ; \n protected Random random ; \n protected final boolean inMemory ; \n + private boolean dontCreateApp ; \n \n public DbTest ( ) { \n this ( true ) ; \n public abstract class DbTest < T extends Application > extends ApplicationTestCase < \n random = new Random ( ) ; \n } \n \n + protected void dontCreateApplicationDuringSetUp ( ) { \n + dontCreateApp = true ; \n + } \n + \n @ override \n protected void setUp ( ) { \n try { \n public abstract class DbTest < T extends Application > extends ApplicationTestCase < \n } catch ( Exception e ) { \n throw new RuntimeException ( e ) ; \n } \n - createApplication ( ) ; \n + if ( ! dontCreateApp ) { \n + createApplication ( ) ; \n + } \n setUpDb ( ) ; \n }", "msg_token": "added dontCreateApplicationDuringSetUp to DbTest"} {"diff": " public class CreateTableGenerator extends AbstractSqlGenerator < CreateTableStatem \n String sql = buffer . toString ( ) . replaceFirst ( STRING0 , STRING1 ) + STRING2 ; \n \n if ( database instanceof MySQLDatabase && mysqlTableOptionStartWith != null ) { \n - LogFactory . getInstance ( ) . getLog ( ) . info ( STRING3 + mysqlTableOptionStartWith . toString ( ) + STRING4 ) ; \n + LogFactory . getLogger ( ) . info ( STRING3 + mysqlTableOptionStartWith . toString ( ) + STRING4 ) ; \n sql += STRING5 + ( ( MySQLDatabase ) database ) . getTableOptionAutoIncrementStartWithClause ( mysqlTableOptionStartWith ) ; \n }", "msg_token": "Fixed merge issues from cherry pick"} {"diff": " public class AnalysisReportDaoTest { \n session . commit ( ) ; \n \n db . assertDbUnit ( getClass ( ) , STRING0 , STRING1 ) ; \n - SINGLE \n - assertThat ( report1 . getId ( ) ) . isNotNull ( ) ; \n - assertThat ( report2 . getId ( ) ) . isNotNull ( ) ; \n } \n \n @ test", "msg_token": "Fix compatibility of test AnalysisReportDaoTest with Oracle"} {"diff": " public abstract class ZLTextPosition implements Comparable < ZLTextPosition > { \n return e0 < e1 ? - NUMBER0 : NUMBER0 ; \n } \n \n - final int c0 = getCharIndex ( ) ; \n - final int c1 = position . getCharIndex ( ) ; \n - if ( c0 != c1 ) { \n - return c0 < c1 ? - NUMBER0 : NUMBER0 ; \n + return getCharIndex ( ) - position . getCharIndex ( ) ; \n + } \n + \n + public int compareToIgnoreChar ( ZLTextPosition position ) { \n + final int p0 = getParagraphIndex ( ) ; \n + final int p1 = position . getParagraphIndex ( ) ; \n + if ( p0 != p1 ) { \n + return p0 < p1 ? - NUMBER0 : NUMBER0 ; \n } \n \n - return NUMBER1 ; \n + return getElementIndex ( ) - position . getElementIndex ( ) ; \n } \n \n @ override", "msg_token": "added ZLTextPosition compareToIgnoreChar"} {"diff": " public class WebSocketSession extends ContainerLifeCycle implements Session , Inc \n @ override \n public RemoteEndpoint getRemote ( ) \n { \n - if ( ! isOpen ( ) ) \n + ConnectionState state = connection . getIOState ( ) . getConnectionState ( ) ; \n + \n + if ( ( state == ConnectionState . OPEN ) || ( state == ConnectionState . CONNECTED ) ) \n { \n - throw new WebSocketException ( STRING0 ) ; \n + return remote ; \n } \n - return remote ; \n + \n + throw new WebSocketException ( STRING1 + state + STRING2 ) ; \n } \n \n @ override", "msg_token": "Making error message on Session getRemote more clear about connection state"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n public class WireMockServerTests { \n \n + @ rule \n + public final TemporaryFolder tempDir = new TemporaryFolder ( ) ; \n + \n @ test \n public void instantiationWithEmptyFileSource ( ) throws IOException { \n - Path tempDir = Files . createTempDirectory ( STRING0 ) ; \n - Options options = new WireMockConfiguration ( ) . fileSource ( new SingleRootFileSource ( tempDir . toFile ( ) ) ) ; \n + Options options = new WireMockConfiguration ( ) . fileSource ( new SingleRootFileSource ( tempDir . getRoot ( ) ) ) ; \n \n WireMockServer wireMockServer = null ; \n try {", "msg_token": "Stopped test from creating temp dirs and failing to clean them up"} {"diff": " public abstract class DataChangedNotifier < T > { \n SINGLE \n final void flushAccumulatedNotifications ( SquidDatabase database , boolean shouldSendNotifications ) { \n Set < T > accumulatedNotifications = notifyObjectAccumulator . get ( ) ; \n - if ( ! enabled || ! shouldSendNotifications ) { \n - accumulatedNotifications . clear ( ) ; \n - return ; \n - } \n - \n - for ( T notifyObject : accumulatedNotifications ) { \n - sendNotification ( database , notifyObject ) ; \n + if ( enabled && shouldSendNotifications ) { \n + for ( T notifyObject : accumulatedNotifications ) { \n + sendNotification ( database , notifyObject ) ; \n + } \n } \n + accumulatedNotifications . clear ( ) ; \n } \n \n COMMENT", "msg_token": "Fix another issue where accumulated notification objects might not be flushed properly"} {"diff": " public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public DefaultLdapAuthoritiesPopulator ( InitialDirContextFactory initialDirContextFactory , String groupSearchBase ) { \n Assert . notNull ( initialDirContextFactory , STRING0 ) ; \n public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added some comments"} {"diff": " public abstract class AbstractLoadBalancerAwareClient < S extends ClientRequest , T \n if ( t instanceof ClientException ) { \n throw ( ClientException ) t ; \n } else { \n - throw new ClientException ( t ) ; \n + throw new ClientException ( e ) ; \n } \n }", "msg_token": "Propagate exception when cause is null"} {"diff": " package NAMESPACE ; \n public interface ChannelHandlerContext { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Channel getChannel ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultChannelPipeline implements ChannelPipeline { \n this . handler = handler ; \n } \n \n + public Channel getChannel ( ) { \n + return getPipeline ( ) . getChannel ( ) ; \n + } \n + \n public ChannelPipeline getPipeline ( ) { \n return DefaultChannelPipeline . this ; \n }", "msg_token": "Added ChannelHandlerContext getChannel"} {"diff": " import NAMESPACE ; \n public class MultiLayerConfiguration implements Serializable , Cloneable { \n \n protected List < NeuralNetConfiguration > confs ; \n - @ deprecated \n - protected boolean useGaussNewtonVectorProductBackProp = false ; \n protected boolean pretrain = true ; \n @ deprecated \n protected double dampingFactor = NUMBER0 ;", "msg_token": "deprecated props useGaussNewtonVectorProductBackProp"} {"diff": " public class KMeans2 extends ColumnsJob { \n SINGLE \n SINGLE \n \n + @ api ( help = STRING0 ) \n + public int k ; \n + \n @ api ( help = STRING1 ) \n public long [ ] size ; \n \n + @ api ( help = STRING2 ) \n + public boolean normalized ; \n + \n + @ api ( help = STRING3 ) \n + public int max_iter = NUMBER0 ; \n + \n @ api ( help = STRING4 ) \n public int iterations ; \n \n public class KMeans2 extends ColumnsJob { \n super ( selfKey , dataKey , names , domains , COMMENT null , COMMENT null ) ; \n _ncats = params . _ncats ; \n parameters = params ; \n + \n + SINGLE \n + k = params . k ; \n + normalized = params . normalize ; \n + max_iter = params . max_iter ; \n + \n _clustersKey = Key . make ( selfKey . toString ( ) + STRING5 ) ; \n }", "msg_token": "Add back redundant model parameters to the model JSON itself to maintain backward compatibility for python tests"} {"diff": " import NAMESPACE ; \n COMMENT \n public class BootstrapLogging { \n \n - @ guardedby ( STRING0 ) \n + @ guardedby ( STRING1 ) \n private static boolean bootstrapped = false ; \n private static final Lock bootstrappingLock = new ReentrantLock ( ) ;", "msg_token": "Correct the name of the lock in GuardedBy"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class PyGotoTargetRendererProvider implements GotoTargetRendererProvider { \n - public PsiElementListCellRenderer getRenderer ( final PsiElement element ) { \n + public PsiElementListCellRenderer getRenderer ( final PsiElement element , GotoTargetHandler . GotoData gotoData ) { \n if ( element instanceof PyElement && element instanceof PsiNamedElement ) return new PyElementListCellRenderer ( ) ; \n return null ; \n }", "msg_token": "show implementations for groovy implicit accessors"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DownloadIndexActivity extends ListActivity { \n \n filterText = ( EditText ) findViewById ( R . id . search_box ) ; \n filterText . addTextChangedListener ( textWatcher ) ; \n - final String filter = getIntent ( ) . getExtras ( ) . getString ( FILTER_KEY ) ; \n - if ( filter != null ) { \n - filterText . setText ( filter ) ; \n + final Intent intent = getIntent ( ) ; \n + if ( intent != null && intent . getExtras ( ) != null ) { \n + final String filter = intent . getExtras ( ) . getString ( FILTER_KEY ) ; \n + if ( filter != null ) { \n + filterText . setText ( filter ) ; \n + } \n } \n \n if ( downloadListIndexThread . getCachedIndexFiles ( ) != null ) {", "msg_token": "fixed null pointer"} {"diff": " public class CursorLoader extends AsyncTaskLoader < Cursor > { \n if ( cursor != null ) { \n SINGLE \n cursor . getCount ( ) ; \n - registerContentObserver ( cursor , mObserver ) ; \n + cursor . registerContentObserver ( mObserver ) ; \n } \n return cursor ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - void registerContentObserver ( Cursor cursor , ContentObserver observer ) { \n - cursor . registerContentObserver ( mObserver ) ; \n - } \n - \n COMMENT \n @ override \n public void deliverResult ( Cursor cursor ) {", "msg_token": "Remove a method"} {"diff": " public class BuildBinarizedDataset { \n scorer . forwardPropagateTree ( collapsedUnary ) ; \n setPredictedLabels ( collapsedUnary ) ; \n } else { \n - setUnknownLabels ( binarized , mainLabel ) ; \n + setUnknownLabels ( collapsedUnary , mainLabel ) ; \n } \n \n Trees . convertToCoreLabels ( collapsedUnary ) ;", "msg_token": "Fix a bug for setting labels in BuildBinarizedDataset"} {"diff": " public class SerializerPojo extends SerializerBase implements Serializable { \n \n public SerializerPojo ( CopyOnWriteArrayList < ClassInfo > registered ) { \n if ( registered == null ) \n - this . registered = new CopyOnWriteArrayList < ClassInfo > ( ) ; \n - else \n - this . registered = registered ; \n + registered = new CopyOnWriteArrayList < ClassInfo > ( ) ; \n + this . registered = registered ; \n \n for ( int i = NUMBER0 ; i < registered . size ( ) ; i ++ ) \n {", "msg_token": "Fix NPE from previous commit"} {"diff": " public abstract class HazelcastTestSupport { \n for ( ; ; ) { \n String id = prefix + randomString ( ) ; \n Partition partition = partitionService . getPartition ( id ) ; \n - if ( comparePartitionOwnership ( false , localMember , partition ) ) { \n + if ( comparePartitionOwnership ( true , localMember , partition ) ) { \n return id ; \n } \n }", "msg_token": "HazelcastTestSupport randomNameOwnedBy reverted a fix that wasn t a fix"} {"diff": " public class TopologyContext extends GeneralTopologyContext { \n _workerPort = workerPort ; \n _taskId = taskId ; \n try { \n - _pidDir = new File ( pidDir ) . getCanonicalPath ( ) ; \n + if ( pidDir != null ) { \n + _pidDir = new File ( pidDir ) . getCanonicalPath ( ) ; \n + } else { \n + _pidDir = null ; \n + } \n } catch ( IOException e ) { \n throw new RuntimeException ( STRING0 + _pidDir , e ) ; \n }", "msg_token": "allow piddir to be null in topologycontext for testing"} {"diff": " public class OSMDatabase implements OpenStreetMapContentHandler { \n if ( relationsById . containsKey ( relation . getId ( ) ) ) \n return ; \n \n - if ( relation . isTag ( STRING0 , STRING1 ) && OSMFilter . isOsmEntityRoutable ( relation ) ) { \n + if ( relation . isTag ( STRING0 , STRING1 ) \n + && ( OSMFilter . isOsmEntityRoutable ( relation ) || relation . isParkAndRide ( ) ) ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Handle multi polygon P R"} {"diff": " public class AppCompiler { \n } \n } else { \n for ( String pattern : config . getForceLinkClasses ( ) ) { \n + if ( pattern == null || pattern . trim ( ) . isEmpty ( ) ) { \n + continue ; \n + } \n + pattern = pattern . trim ( ) ; \n if ( pattern . indexOf ( STRING0 ) == - NUMBER0 ) { \n Clazz clazz = config . getClazzes ( ) . load ( pattern . replace ( STRING1 , STRING2 ) ) ; \n if ( clazz == null ) {", "msg_token": "Ignore empty and null patterns in forceLinkClasses"} {"diff": " public class TaskExecutionServices { \n SerializerRegistry < FileCollectionSnapshot > serializerRegistry = new DefaultSerializerRegistry < FileCollectionSnapshot > ( ) ; \n fileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ; \n outputFilesSnapshotter . registerSerializers ( serializerRegistry ) ; \n - fileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ; \n + discoveredFileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ; \n \n TaskHistoryRepository taskHistoryRepository = new CacheBackedTaskHistoryRepository ( cacheAccess , \n new CacheBackedFileSnapshotRepository ( cacheAccess ,", "msg_token": "Fixed file snapshot type registration"} {"diff": " public interface FieldMapper < T > extends Mapper { \n } \n \n public Names ( String name , String indexName , String indexNameClean , String fullName , @ nullable String sourcePath ) { \n - this . name = name . intern ( ) ; \n - this . indexName = indexName . intern ( ) ; \n - this . indexNameClean = indexNameClean . intern ( ) ; \n - this . fullName = fullName . intern ( ) ; \n - this . sourcePath = sourcePath == null ? this . fullName : sourcePath . intern ( ) ; \n + this . name = name ; \n + this . indexName = indexName ; \n + this . indexNameClean = indexNameClean ; \n + this . fullName = fullName ; \n + this . sourcePath = sourcePath == null ? this . fullName : sourcePath ; \n } \n \n COMMENT", "msg_token": "Remove intern calls on FieldMapper Names"} {"diff": " public class MetaDataSerializer extends EntitySerializer { \n local . append ( STRING0 ) ; \n foreign . append ( STRING0 ) ; \n } \n - local . append ( namingStrategy . getPropertyName ( foreignKey . getForeignColumns ( ) . get ( NUMBER0 ) , model ) ) ; \n - foreign . append ( STRING1 + foreignKey . getParentColumns ( ) . get ( NUMBER0 ) + STRING1 ) ; \n + local . append ( namingStrategy . getPropertyName ( foreignKey . getForeignColumns ( ) . get ( i ) , model ) ) ; \n + foreign . append ( STRING1 + foreignKey . getParentColumns ( ) . get ( i ) + STRING1 ) ; \n } \n value . append ( STRING2 + local + STRING3 + foreign + STRING4 ) ; \n }", "msg_token": "Fix code generation"} {"diff": " public class FileSystemUtilsIntegrationTest { \n final Runnable writer = new Runnable ( ) { \n @ override \n public void run ( ) { \n - FileOutStream os = null ; \n try { \n - os = sFileSystem . createFile ( uri , sWriteBoth ) ; \n + FileOutStream os = sFileSystem . createFile ( uri , sWriteBoth ) ; \n boolean completed = sFileSystem . getStatus ( uri ) . isCompleted ( ) ; \n Assert . assertFalse ( completed ) ; \n for ( int i = NUMBER0 ; i < numWrites ; i ++ ) { \n public class FileSystemUtilsIntegrationTest { \n final Runnable writer = new Runnable ( ) { \n @ override \n public void run ( ) { \n - FileOutStream os = null ; \n try { \n - os = sFileSystem . createFile ( uri , sWriteBoth ) ; \n + FileOutStream os = sFileSystem . createFile ( uri , sWriteBoth ) ; \n boolean completed = sFileSystem . getStatus ( uri ) . isCompleted ( ) ; \n Assert . assertFalse ( completed ) ; \n SINGLE", "msg_token": "SMALLFIX Removed redundant initializers in FileSystemUtilsIntegrationTest"} {"diff": " public class AbstractViolationReporterTest extends BaseCheckTestSupport \n LocalizedMessages collector = new LocalizedMessages ( ) ; \n emptyCheck . setMessages ( collector ) ; \n \n - emptyCheck . log ( NUMBER0 , STRING0 , null ) ; \n + emptyCheck . log ( NUMBER0 , STRING0 ) ; \n \n LocalizedMessage [ ] messages = collector . getMessages ( ) ; \n Assert . assertTrue ( messages . length == NUMBER1 ) ;", "msg_token": "fix a warning"} {"diff": " public class ExtensionPointImpl < T > implements ExtensionPoint < T > { \n } \n } \n internalRegisterExtension ( extension , new ObjectComponentAdapter ( extension , order ) , index , true ) ; \n - clearCache ( ) ; \n } \n else { \n myExtensionAdapters . add ( new ObjectComponentAdapter ( extension , order ) ) ; \n processAdapters ( ) ; \n } \n + clearCache ( ) ; \n } \n \n private void internalRegisterExtension ( T extension , ExtensionComponentAdapter adapter , int index , boolean runNotifications ) {", "msg_token": "any extension modification should clear the cache"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HtmlUnknownBooleanAttributeInspectionBase extends HtmlUnknownElemen \n } \n \n XmlAttributeDescriptor attributeDescriptor = elementDescriptor . getAttributeDescriptor ( attribute ) ; \n - if ( attributeDescriptor != null ) { \n + if ( attributeDescriptor != null && ! ( attributeDescriptor instanceof AnyXmlAttributeDescriptor ) ) { \n String name = attribute . getName ( ) ; \n if ( ! HtmlUtil . isBooleanAttribute ( attributeDescriptor , null ) && ( ! isCustomValuesEnabled ( ) || ! isCustomValue ( name ) ) ) { \n LocalQuickFix [ ] quickFixes = new LocalQuickFix [ ] {", "msg_token": "ignore AnyAttributeDescriptors in inspection"} {"diff": " public class MavenRunnerSettings implements Cloneable { \n @ nonnls public static final String USE_INTERNAL_JAVA = STRING0 ; \n @ nonnls public static final String USE_JAVA_HOME = STRING1 ; \n \n - private boolean runMavenInBackground = false ; \n + private boolean runMavenInBackground = true ; \n @ notnull private String jreName = STRING2 ; \n @ notnull private String vmOptions = STRING2 ; \n private boolean skipTests = false ;", "msg_token": "run tasks in background by default"} {"diff": " public class BugReproductionControllerDocTesterTest extends NinjaDocTester { \n @ test \n public void testThatBug157IsFixedTest1 ( ) { \n \n - Response response \n + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + Response response \n = makeRequest ( Request . GET ( ) . url ( testServerUrl ( ) . path ( GET_TEST_AGAINST_BUG_157_TEST_1 ) ) ) ; \n \n - assertThat ( response . payload , equalTo ( STRING0 ) ) ; \n + assertThat ( response . payload , equalTo ( STRING0 ) ) ; \n + } \n \n } \n \n @ test \n public void testThatBug157IsFixedTest2 ( ) { \n \n - Response response \n + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + Response response \n = makeRequest ( Request . GET ( ) . url ( testServerUrl ( ) . path ( GET_TEST_AGAINST_BUG_157_TEST_2 ) ) ) ; \n \n - assertThat ( response . payload , equalTo ( STRING0 ) ) ; \n + assertThat ( response . payload , equalTo ( STRING0 ) ) ; \n + } \n \n }", "msg_token": "Added more than one request just to make sure it works"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DefaultInitialDirContextFactory implements InitialDirContextFactory , MessageSourceAware , ContextSource { \n + public class DefaultInitialDirContextFactory implements InitialDirContextFactory , MessageSourceAware { \n SINGLE \n \n private static final Log logger = LogFactory . getLog ( DefaultInitialDirContextFactory . class ) ;", "msg_token": "Remoned unnecessary declaration of ContextMapper interface"} {"diff": " public class StoreMigrator \n migratePropertyIndexes ( neoStore . getPropertyStore ( ) . getIndexStore ( ) ) ; \n legacyStore . getPropertyStoreReader ( ) . close ( ) ; \n migrateRelationshipTypes ( neoStore . getRelationshipTypeStore ( ) ) ; \n - SINGLE \n legacyStore . close ( ) ; \n } \n \n public class StoreMigrator \n } \n propIndexStore . updateRecord ( record ) ; \n } \n - \n - private void migrateIdGenerators ( NeoStore neoStore ) throws IOException \n - { \n - String [ ] idGeneratorSuffixes = new String [ ] { STRING0 , STRING1 } ; \n - for ( String suffix : idGeneratorSuffixes ) \n - { \n - FileUtils . copyFile ( new File ( legacyStore . getStorageFileName ( ) + suffix ) , \n - new File ( neoStore . getStorageFileName ( ) + suffix ) ) ; \n - } \n - } \n } \n }", "msg_token": "Remove unused code"} {"diff": " public class ConnectivityManager { \n \n COMMENT \n public static final int ERROR_HARDWARE_UNSUPPORTED = - NUMBER0 ; \n + COMMENT \n + public static final int ERROR_HARDWARE_ERROR = - NUMBER1 ; \n \n public static final int NATT_PORT = NUMBER2 ;", "msg_token": "Add an error code for generic hardware error"} {"diff": " public class WordPressDB { \n } \n } \n \n + public Theme getCurrentTheme ( String blogId ) { \n + String currentThemeId = getCurrentThemeId ( blogId ) ; \n + \n + return getTheme ( blogId , currentThemeId ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n } \n \n setContentView ( R . layout . theme_browser_activity ) ; \n + setCurrentThemeFromDB ( ) ; \n \n if ( savedInstanceState == null ) { \n AnalyticsUtils . trackWithCurrentBlogDetails ( AnalyticsTracker . Stat . THEMES_ACCESSED_THEMES_BROWSER ) ; \n public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n showToolbar ( ) ; \n } \n \n + private void setCurrentThemeFromDB ( ) { \n + mCurrentTheme = WordPress . wpDB . getCurrentTheme ( getBlogId ( ) ) ; \n + } \n + \n @ override \n public void finish ( ) { \n super . finish ( ) ;", "msg_token": "getting current theme from db onCreate of ThemeBrowserActivity"} {"diff": " public class ProcessGroup { \n if ( logger . isDebugEnabled ( ) ) logger . debug ( STRING0 + command ) ; \n final StringWriter writer = new StringWriter ( ) ; \n \n - logger . debug ( STRING1 ) ; \n Process filter = Runtime . getRuntime ( ) . exec ( command ) ; \n - logger . debug ( STRING2 ) ; \n BufferedWriter bufferedWriter = new BufferedWriter ( new OutputStreamWriter ( filter . getOutputStream ( ) ) ) ; \n - logger . debug ( STRING3 ) ; \n copy ( car , bufferedWriter ) ; \n bufferedWriter . close ( ) ; \n - logger . debug ( STRING4 ) ; \n \n final BufferedReader reader = new BufferedReader ( new InputStreamReader ( filter . getInputStream ( ) ) ) ; \n - logger . debug ( STRING5 ) ; \n copy ( reader , writer ) ; \n writer . close ( ) ; \n - logger . debug ( STRING6 ) ; \n \n lastCommand = command ; \n return writer ;", "msg_token": "Removed debug output"} {"diff": " public class GPXUtilities { \n } \n } \n \n - public static class Extensions extends GPXExtensions { \n - \n - } \n - \n public static class GPXFile extends GPXExtensions { \n public String author ; \n public List < Track > tracks = new ArrayList < Track > ( ) ; \n public class GPXUtilities { \n WptPt wptPt = parseWptAttributes ( parser ) ; \n points . add ( wptPt ) ; \n parserState . push ( wptPt ) ; \n - } else if ( tag . equals ( STRING0 ) ) { \n - Extensions ext = new Extensions ( ) ; \n - parserState . push ( ext ) ; \n } \n }", "msg_token": "Fix GPSUtilities after refactoring cloudmade was not working"} {"diff": " public class CommandUsageBox extends StyledFragment { \n contents . newLine ( ) ; \n \n if ( description . getHelp ( ) != null ) { \n - contents . createFragment ( Style . YELLOW_DARK ) . append ( description . getHelp ( ) ) ; \n + contents . append ( description . getHelp ( ) ) ; \n } else if ( description . getShortDescription ( ) != null ) { \n contents . append ( description . getShortDescription ( ) ) ; \n } else {", "msg_token": "Removed gold color from CommandUsageBox for command help"} {"diff": " public final class MostAvailableFirstPolicy implements FileWriteLocationPolicy { \n \n @ override \n public boolean equals ( Object o ) { \n - if ( this == o ) { \n - return true ; \n - } \n - if ( ! ( o instanceof MostAvailableFirstPolicy ) ) { \n - return false ; \n - } \n - return true ; \n + return this == o || o instanceof MostAvailableFirstPolicy ; \n } \n \n @ override", "msg_token": "SMALLFIX Simplified equals implementation of MostAvailableFirstPolicy"} {"diff": " public final class ActiveDirectoryLdapAuthenticationProvider extends AbstractLda \n COMMENT \n COMMENT \n COMMENT \n - public ActiveDirectoryLdapAuthenticationProvider ( String rootDn , String domain , String url ) { \n + public ActiveDirectoryLdapAuthenticationProvider ( String domain , String url , String rootDn ) { \n Assert . isTrue ( StringUtils . hasText ( url ) , STRING0 ) ; \n this . domain = StringUtils . hasText ( domain ) ? domain . toLowerCase ( ) : null ; \n - this . rootDn = StringUtils . hasText ( rootDn ) ? rootDn . toLowerCase ( ) : null ; \n this . url = url ; \n + this . rootDn = StringUtils . hasText ( rootDn ) ? rootDn . toLowerCase ( ) : null ; \n } \n \n COMMENT \n public class ActiveDirectoryLdapAuthenticationProviderTests { \n \n @ test \n public void rootDnProvidedSeparatelyFromDomainAlsoWorks ( ) throws Exception { \n - ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider ( STRING1 , STRING2 , STRING3 ) ; \n + ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider ( STRING2 , STRING3 , STRING1 ) ; \n checkAuthentication ( STRING1 , provider ) ; \n \n }", "msg_token": "Move optional constructor arg last"} {"diff": " public class SemanticAnalyzer extends BaseSemanticAnalyzer { \n partSpec ) ; \n outputs . add ( new WriteEntity ( p , false ) ) ; \n } catch ( HiveException e ) { \n - throw new SemanticException ( e . getMessage ( ) ) ; \n + throw new SemanticException ( e . getMessage ( ) , e ) ; \n } \n } \n } \n public class SemanticAnalyzer extends BaseSemanticAnalyzer { \n . getFieldObjectInspector ( ) ) , STRING0 , false ) ) ; \n } \n } catch ( Exception e ) { \n - throw new SemanticException ( e . getMessage ( ) ) ; \n + throw new SemanticException ( e . getMessage ( ) , e ) ; \n } \n \n RowSchema fsRS = new RowSchema ( vecCol ) ;", "msg_token": "SemanticAnalyzer twice swallows an exception it shouldn t jghoman via hashutosh"} {"diff": " public class VolumeTest { \n \n } \n \n + COMMENT \n @ test public void direct_bb_overallocate ( ) { \n Volume vol = new Volume . MemoryVol ( true , CC . VOLUME_PAGE_SHIFT ) ; \n try { \n public class VolumeTest { \n } \n vol . close ( ) ; \n } \n + COMMENT \n \n }", "msg_token": "disable two possibly dangerous tests"} {"diff": " public class EdgeDataImpl implements EdgeData , DynamicData { \n protected Edge edge ; \n protected LayoutData layoutData ; \n protected String label = STRING0 ; \n + protected String id = STRING0 ; \n protected float r = FLOAT0 ; \n protected float g = FLOAT0 ; \n protected float b = FLOAT0 ; \n public class EdgeDataImpl implements EdgeData , DynamicData { \n this . dynamicRangeFrom = from ; \n this . dynamicRangeTo = to ; \n } \n + \n + public void setId ( String id ) { \n + this . id = id ; \n + } \n + \n + public String getId ( ) { \n + return id ; \n + } \n } \n public interface EdgeData extends Renderable { \n \n public NodeData getTarget ( ) ; \n \n + public String getId ( ) ; \n + \n + public void setId ( String id ) ; \n + \n public String getLabel ( ) ; \n \n public LayoutData getLayoutData ( ) ;", "msg_token": "Add EdgeData id"} {"diff": " public final class Constants { \n public static final String Package = STRING0 ; \n \n public static final long DEFAULT_THREAD_RENEWAL_DELAY = NUMBER0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final boolean IS_SECURITY_ENABLED = ( System . getSecurityManager ( ) != null ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix cyclic dependency"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public final class Main { \n private static final class ParsedOptions { \n ServerEnvironment environment ; \n List < String > clientArguments ; \n - String hostUrl = STRING0 ; \n + SINGLE \n + String hostUrl = STRING1 ; \n String propertiesFile ; \n } \n }", "msg_token": "Change the default host url to use http remoting protocol"} {"diff": " public class Grid extends Wrapper implements Disposable , CellTransform . Facade , D \n \n public void updateGridUI ( ) { \n for ( final GridCell cell : myPlaceInGrid2Cell . values ( ) ) { \n - cell . setHideTabs ( myContents . size ( ) == NUMBER0 && ! cell . isDetached ( ) ) ; \n + cell . setHideTabs ( myContents . size ( ) == NUMBER0 && ! cell . isDetached ( ) && ! getTab ( ) . isDefault ( ) ) ; \n } \n } \n \n public class NewDebuggerContentUI \n } \n \n \n - tab . setText ( title ) . setIcon ( icon ) ; \n + tab . setText ( title ) . setIcon ( grid . getTab ( ) . isDefault ( ) ? null : icon ) ; \n } \n \n private void restoreLastUiState ( ) {", "msg_token": "the last not tabbed view has Debugger tab without detach button"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class Ping \n private static final int WARMUP_NUMBER_OF_ITERATIONS = ExampleConfiguration . WARMUP_NUMBER_OF_ITERATIONS ; \n private static final int MESSAGE_LENGTH = ExampleConfiguration . MESSAGE_LENGTH ; \n private static final int FRAGMENT_COUNT_LIMIT = ExampleConfiguration . FRAGMENT_COUNT_LIMIT ; \n - private static final long LINGER_TIMEOUT_MS = ExampleConfiguration . LINGER_TIMEOUT_MS ; \n private static final boolean EMBEDDED_MEDIA_DRIVER = ExampleConfiguration . EMBEDDED_MEDIA_DRIVER ; \n \n private static final AtomicBuffer ATOMIC_BUFFER = new AtomicBuffer ( ByteBuffer . allocateDirect ( MESSAGE_LENGTH ) ) ;", "msg_token": "Java Removed unused import"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RecoveryWhileUnderLoadTests extends AbstractNodesTests { \n SINGLE \n startNode ( STRING0 ) ; \n \n + SINGLE \n + assertThat ( client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForGreenStatus ( ) . execute ( ) . actionGet ( ) . status ( ) , equalTo ( ClusterHealthStatus . GREEN ) ) ; \n + \n \n SINGLE \n while ( client ( STRING1 ) . prepareCount ( ) . setQuery ( matchAllQuery ( ) ) . execute ( ) . actionGet ( ) . count ( ) < NUMBER0 ) {", "msg_token": "add a recovery test while under indexing load"} {"diff": " public class FileListAdapter extends BaseAdapter { \n private final static int ICON_FILE = R . drawable . ic_file ; \n \n private List < File > mFiles = new ArrayList < File > ( ) ; \n - private LayoutInflater mInflater ; \n + private final LayoutInflater mInflater ; \n \n public FileListAdapter ( Context context ) { \n mInflater = LayoutInflater . from ( context ) ; \n public class FileListAdapter extends BaseAdapter { \n \n public void add ( File file ) { \n mFiles . add ( file ) ; \n + notifyDataSetChanged ( ) ; \n } \n \n public void clear ( ) { \n mFiles . clear ( ) ; \n + notifyDataSetChanged ( ) ; \n } \n \n public Object getItem ( int position ) {", "msg_token": "When clearing the array also notify the view"} {"diff": " \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 ; \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing licence headers"} {"diff": " public class ExtensionManager { \n public synchronized void requestAction ( ComponentName extension , Episode episode ) { \n mContext . startService ( new Intent ( IncomingConstants . ACTION_UPDATE ) \n . setComponent ( extension ) \n + . putExtra ( IncomingConstants . EXTRA_ENTITY_IDENTIFIER , episode . getTvdbId ( ) ) \n . putExtra ( IncomingConstants . EXTRA_EPISODE , episode . toBundle ( ) ) ) ; \n }", "msg_token": "Send episode TVDb id as unique identifier"} {"diff": " public class GrailsResourceLoaderFactoryBean implements FactoryBean < GrailsResour \n } \n \n public void afterPropertiesSet ( ) throws Exception { \n - resourceLoader = Holders . getResourceLoader ( true ) ; \n + resourceLoader = GrailsResourceLoaderHolder . getResourceLoader ( ) ; \n if ( resourceLoader != null ) { \n return ; \n } \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class GrailsResourceLoaderHolder { \n \n + private static GrailsResourceLoader resourceLoader ; \n + \n public static synchronized GrailsResourceLoader getResourceLoader ( ) { \n - return Holders . getResourceLoader ( ) ; \n + return resourceLoader ; \n } \n \n public static synchronized void setResourceLoader ( GrailsResourceLoader resourceLoader ) { \n - Holders . setResourceLoader ( resourceLoader ) ; \n + GrailsResourceLoaderHolder . resourceLoader = resourceLoader ; \n } \n }", "msg_token": "also reverted use of Holder for ResourceLoader since the classloader changes between initial set and later gets"} {"diff": " public class Presence extends BaseModule { \n } \n \n public void run ( ) { \n - myPresence . send ( new OwnPresenceActor . OnAppVisible ( ) ) ; \n + SINGLE \n } \n \n public void onAppVisible ( ) {", "msg_token": "Fixed initial online state"} {"diff": " public class DirectoryHistoryDialog extends HistoryDialog < DirectoryHistoryDialog \n int index = NUMBER0 ; \n List < Change > changes = new ArrayList < Change > ( ) ; \n for ( DirectoryChange change : iterFileChanges ( ) ) { \n - changes . add ( change ) ; \n if ( selectedSet . contains ( change ) ) index = changes . size ( ) ; \n + changes . add ( change ) ; \n } \n \n ShowDiffAction . showDiffForChange ( myProject , changes , index , new ShowDiffContext ( DiffDialogHints . FRAME ) ) ;", "msg_token": "fix selected file index"} {"diff": " public class CommentsListFragment extends ListFragment { \n private XMLRPCClient client ; \n private String accountName = STRING0 , moderateErrorMsg = STRING0 ; \n private ViewSwitcher switcher ; \n - private boolean loadMore = false , doInBackground = false , refreshOnly = false ; \n + private boolean loadMore = false , refreshOnly = false ; \n private HashSet < Integer > selectedCommentPositions = new HashSet < Integer > ( ) ; \n private Object [ ] commentParams ; \n private OnCommentSelectedListener mOnCommentSelectedListener ; \n public class CommentsListFragment extends ListFragment { \n } \n } else { \n allComments . putAll ( commentsResult ) ; \n - if ( ! doInBackground ) { \n - loadComments ( refreshOnly , loadMore ) ; \n - } \n + loadComments ( refreshOnly , loadMore ) ; \n } \n \n mOnAnimateRefreshButton . onAnimateRefreshButton ( false ) ; \n public class CommentsListFragment extends ListFragment { \n switcher . showPrevious ( ) ; \n } \n \n - if ( ! doInBackground ) { \n - showOrHideModerationBar ( ) ; \n - } \n + showOrHideModerationBar ( ) ; \n } \n \n @ override", "msg_token": "Removed unused doInBackground variable it was always false"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ path ( STRING0 ) \n + @ path ( STRING1 ) \n @ produces ( MediaType . APPLICATION_JSON ) \n public class DashboardConfigResource { \n \n public class DashboardConfigResource { \n @ get \n @ path ( STRING2 ) \n public Map < String , Collection < String > > getDimensionValues ( \n - @ pathparam ( STRING3 ) String collection , @ pathparam ( STRING4 ) long baselineMillis , \n + @ pathparam ( STRING3 ) String collection , @ pathparam ( STRING5 ) long baselineMillis , \n @ pathparam ( STRING6 ) long currentMillis , \n @ defaultvalue ( DIMENSION_VALUES_OPTIONS_THRESHOLD ) @ queryparam ( STRING7 ) double contributionThreshold , \n @ defaultvalue ( DIMENSION_VALUES_LIMIT ) @ queryparam ( STRING8 ) int dimensionValuesLimit )", "msg_token": "change endpoint to dashboardConfig instead of"} {"diff": " import NAMESPACE ; \n COMMENT \n public class TestHttp2Section_6_8 extends Http2TestBase { \n \n + private static final boolean RELAX_TIMING = Boolean . getBoolean ( STRING0 ) ; \n + \n private static final long PNG_ACK_DELAY_MS = NUMBER0 ; \n + SINGLE \n + private static final long TIMING_MARGIN_MS = RELAX_TIMING ? NUMBER1 : NUMBER2 ; \n \n @ test \n public void testGoawayIgnoreNewStreams ( ) throws Exception { \n public class TestHttp2Section_6_8 extends Http2TestBase { \n sendClientPreface ( ) ; \n validateHttp2InitialResponse ( ) ; \n \n - Thread . sleep ( PNG_ACK_DELAY_MS + NUMBER3 ) ; \n + Thread . sleep ( PNG_ACK_DELAY_MS + TIMING_MARGIN_MS ) ; \n \n getTomcatInstance ( ) . getConnector ( ) . pause ( ) ; \n \n public class TestHttp2Section_6_8 extends Http2TestBase { \n SINGLE \n sendSimpleGetRequest ( NUMBER4 ) ; \n \n - Thread . sleep ( PNG_ACK_DELAY_MS + NUMBER3 ) ; \n + Thread . sleep ( PNG_ACK_DELAY_MS + TIMING_MARGIN_MS ) ; \n \n SINGLE \n sendSimpleGetRequest ( NUMBER5 ) ;", "msg_token": "Pull our timing margin as a constant and use the relaxTiming option"} {"diff": " public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements ParentA \n if ( LOG . isDebugEnabled ( ) ) { \n LOG . debug ( STRING0 + event + STRING1 ) ; \n } \n - \n - getManager ( ) . informObservers ( getName ( ) , event ) ; \n } \n } \n \n public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements ParentA \n switch ( eventKind ) { \n case EVENT_ON_CHANGE : \n notifyOfEvent ( event ) ; \n + getManager ( ) . informObservers ( getName ( ) , event ) ; \n break ; \n case EVENT_ON_SHUTDOWN : \n invokeOnShutdownEventListener ( event ) ;", "msg_token": "Inform observers of changes when processing the event instead of when the change is noticed"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WXListComponent extends WXVContainer implements \n } else if ( newState == RecyclerView . SCROLL_STATE_SETTLING ) { \n newState = OnWXScrollListener . SETTLING ; \n } \n - listener . onScrollStateChanged ( recyclerView , tempState , recyclerView . getScrollX ( ) , recyclerView . getScrollY ( ) ) ; \n + RecyclerView . LayoutManager layoutManager = recyclerView . getLayoutManager ( ) ; \n + LinearLayoutManager linearLayoutManager = null ; \n + int x = NUMBER0 , y = NUMBER0 ; \n + if ( layoutManager instanceof LinearLayoutManager ) { \n + linearLayoutManager = ( LinearLayoutManager ) layoutManager ; \n + } \n + if ( linearLayoutManager != null ) { \n + x = NUMBER0 ; \n + y = linearLayoutManager . findFirstVisibleItemPosition ( ) ; \n + } \n + listener . onScrollStateChanged ( recyclerView , x , y , tempState ) ; \n } \n } \n }", "msg_token": "android update WXListComponent java recycle position"} {"diff": " import NAMESPACE ; \n \n @ uriendpoint ( scheme = STRING0 , consumerClass = SparkConsumer . class , label = STRING1 ) \n public class SparkEndpoint extends DefaultEndpoint { \n - \n + @ uriparam \n + SparkConfiguration sparkConfiguration ; \n @ uripath \n private String verb ; \n @ uripath \n private String path ; \n @ uriparam \n - SparkConfiguration sparkConfiguration ; \n - @ uriparam \n private SparkBinding sparkBinding ; \n @ uriparam \n private String accept ;", "msg_token": "Fixed CS error of camel spark"} {"diff": " public class HttpSessionSecurityContextRepository implements SecurityContextRepo \n if ( ! allowSessionCreation ) { \n if ( logger . isDebugEnabled ( ) ) { \n logger . debug ( STRING0 \n - + STRING1 \n + + HttpSessionSecurityContextRepository . class . getSimpleName ( ) \n + + STRING2 \n + STRING3 \n + STRING4 ) ; \n }", "msg_token": "Corrected log in HttpSessionSecurityContextRepository to reference itself instead of HttpSessionContextIntegrationFilter"} {"diff": " public class XbmcConnector { \n continue ; \n } else if ( property . equals ( STRING0 ) ) { \n properties . add ( property ) ; \n + } else if ( property . equals ( STRING1 ) ) { \n + properties . add ( property ) ; \n } \n } \n } else {", "msg_token": "XBMC Add Title property to be polled as well"} {"diff": " public class DefaultChannelPipeline implements ChannelPipeline { \n \n private void checkDuplicateName ( String name ) { \n if ( name2ctx . containsKey ( name ) ) { \n - throw new IllegalArgumentException ( STRING0 + name ) ; \n + throw new IllegalArgumentException ( STRING1 + name ) ; \n } \n }", "msg_token": "Add a missing colon"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ActionMacroManager implements ExportableApplicationComponent , Named \n public void messageEdt ( PlaybackContext context , String text , Type type ) { \n if ( type == Type . message || type == Type . error ) { \n StatusBar statusBar = frame . getStatusBar ( ) ; \n - if ( context != null ) { \n - if ( statusBar != null ) statusBar . setInfo ( STRING0 + context . getCurrentLine ( ) + STRING1 + text ) ; \n - } \n - else { \n - if ( statusBar != null ) statusBar . setInfo ( text ) ; \n + if ( statusBar != null ) { \n + if ( context != null ) { \n + text = STRING0 + context . getCurrentLine ( ) + STRING1 + text ; \n + } \n + statusBar . setInfo ( text ) ; \n } \n } \n }", "msg_token": "remove extra checks"} {"diff": " import NAMESPACE ; \n \n class DataRecord extends AbstractRecord < Data > { \n \n - protected Data value ; \n + protected volatile Data value ; \n \n DataRecord ( Data value ) { \n this . value = value ; \n import NAMESPACE ; \n \n class DataRecordWithStats extends AbstractRecordWithStats < Data > { \n \n - protected Data value ; \n + protected volatile Data value ; \n \n DataRecordWithStats ( ) { \n super ( ) ; \n package NAMESPACE ; \n \n class ObjectRecord extends AbstractRecord < Object > implements Record < Object > { \n \n - private Object value ; \n + private volatile Object value ; \n \n ObjectRecord ( ) { \n super ( ) ; \n package NAMESPACE ; \n \n class ObjectRecordWithStats extends AbstractRecordWithStats < Object > { \n \n - private Object value ; \n + private volatile Object value ; \n \n public ObjectRecordWithStats ( ) { \n super ( ) ;", "msg_token": "multiple threads access the value field"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n SINGLE \n socket = context . getSocketFactory ( ) . createSocket ( plain , \n host , plain . getPort ( ) , true ) ; \n - SINGLE \n - initReaderAndWriter ( ) ; \n \n final SSLSocket sslSocket = ( SSLSocket ) socket ; \n + SINGLE \n + SINGLE \n + SINGLE \n TLSUtils . setEnabledProtocolsAndCiphers ( sslSocket , config . getEnabledSSLProtocols ( ) , config . getEnabledSSLCiphers ( ) ) ; \n \n + SINGLE \n + initReaderAndWriter ( ) ; \n + \n SINGLE \n sslSocket . startHandshake ( ) ;", "msg_token": "Fix XMPPTCPConnection setEnabledSSL Protocols Ciphers"} {"diff": " public class SliceArrayBlock \n static int getSliceArrayRetainedSizeInBytes ( Slice [ ] values ) \n { \n long sizeInBytes = SizeOf . sizeOf ( values ) ; \n - Map < Object , Boolean > uniqueRetained = new IdentityHashMap < > ( ) ; \n + Map < Object , Boolean > uniqueRetained = new IdentityHashMap < > ( values . length ) ; \n for ( Slice value : values ) { \n if ( value != null && value . getBase ( ) != null && uniqueRetained . put ( value . getBase ( ) , true ) == null ) { \n sizeInBytes += value . getRetainedSize ( ) ;", "msg_token": "Avoid resizing IdentityHashMap in SliceArrayBlock"} {"diff": " public class TableConverter { \n if ( e . getCause ( ) instanceof NullPointerException ) { \n throw new CucumberException ( String . format ( STRING0 , e . get ( STRING1 ) ) ) ; \n } else { \n - throw e ; \n + throw new CucumberException ( e ) ; \n } \n } \n }", "msg_token": "wrapping unrecognized XStream ConversionException in CucumberException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ServerImpl extends AbstractService implements Server { \n this . listener = listener ; \n } \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private void internalClose ( Status status , Metadata . Trailers trailers ) { \n SINGLE \n stream . close ( status , trailers ) ; \n public class ServerImpl extends AbstractService implements Server { \n } ) ; \n } \n \n + @ override \n public void halfClosed ( ) { \n callExecutor . execute ( new Runnable ( ) { \n @ override", "msg_token": "Use our own SerializingExecutor"} {"diff": " public class SqlQueryManager \n \n SINGLE \n if ( ! queryStarter . submit ( queryExecution ) ) { \n - return createFailedQuery ( session , query , queryId , new PrestoException ( QUERY_QUEUE_FULL , STRING0 ) ) ; \n + queryExecution . fail ( new PrestoException ( QUERY_QUEUE_FULL , STRING0 ) ) ; \n } \n \n return queryExecution . getQueryInfo ( ) ;", "msg_token": "Fix double counting of queries"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public abstract class LibraryRootsComponentDescriptor { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ notnull \n - public List < ? extends RootDetector > getRootDetectors ( ) { \n - return Collections . emptyList ( ) ; \n - } \n + public abstract List < ? extends RootDetector > getRootDetectors ( ) ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class RootDetector { \n - private OrderRootType myRootType ; \n - private boolean myJarDirectory ; \n - private String myPresentableRootTypeName ; \n + private final OrderRootType myRootType ; \n + private final boolean myJarDirectory ; \n + private final String myPresentableRootTypeName ; \n \n protected RootDetector ( OrderRootType rootType , boolean jarDirectory , String presentableRootTypeName ) { \n myRootType = rootType ;", "msg_token": "implemented automatic root detection for javascript libraries to fix exception"} {"diff": " public class StartConversationActivity extends XmppActivity implements OnRosterU \n \n private boolean handleJid ( Invite invite ) { \n Account account = xmppConnectionService . findAccountByJid ( invite . getJid ( ) ) ; \n - if ( account != null && invite . hasFingerprints ( ) ) { \n + if ( account != null && ! account . isOptionSet ( Account . OPTION_DISABLED ) && invite . hasFingerprints ( ) ) { \n if ( xmppConnectionService . verifyFingerprints ( account , invite . getFingerprints ( ) ) ) { \n switchToAccount ( account ) ; \n finish ( ) ;", "msg_token": "don t use xmpp uri for self verification if account is disabled"} {"diff": " public class RobolectricGradleTestRunner extends RobolectricTestRunner { \n final FileFsFile assets ; \n final FileFsFile manifest ; \n \n - SINGLE \n - if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 ) . exists ( ) ) { \n + if ( FileFsFile . from ( BUILD_OUTPUT , STRING2 ) . exists ( ) ) { \n + SINGLE \n + SINGLE \n + res = FileFsFile . from ( BUILD_OUTPUT , STRING2 , flavor , type ) ; \n + } else if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 ) . exists ( ) ) { \n + SINGLE \n res = FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 , flavor , type ) ; \n } else if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 ) . exists ( ) ) { \n res = FileFsFile . from ( BUILD_OUTPUT , STRING0 , flavor , type ) ;", "msg_token": "Fix databinding with android gradle plugin"} {"diff": " public class UsageStatsService extends SystemService implements \n mPowerManager = getContext ( ) . getSystemService ( PowerManager . class ) ; \n \n mScreenOnSystemTimeSnapshot = System . currentTimeMillis ( ) ; \n - synchronized ( this ) { \n + synchronized ( mLock ) { \n mScreenOnTime = readScreenOnTimeLocked ( ) ; \n } \n mDisplayManager . registerDisplayListener ( mDisplayListener , mHandler ) ; \n - synchronized ( this ) { \n + synchronized ( mLock ) { \n updateDisplayLocked ( ) ; \n } \n } else if ( phase == PHASE_BOOT_COMPLETED ) {", "msg_token": "Use correct lock for reading writing usage stats files"} {"diff": " public class KeyguardWidgetPager extends PagedView implements PagedView . PageSwit \n currentPage . setPivotX ( NUMBER0 ) ; \n currentPage . setPivotX ( currentPage . getMeasuredWidth ( ) / NUMBER1 ) ; \n } \n - if ( ! ( currentPage . getScaleX ( ) < FLOAT0 || currentPage . getScaleY ( ) < FLOAT0 ) ) { \n + if ( currentPage != null && ( ! ( currentPage . getScaleX ( ) < FLOAT0 || currentPage . getScaleY ( ) < FLOAT0 ) ) ) { \n mZoomInOutAnim = new AnimatorSet ( ) ; \n mZoomInOutAnim . playTogether ( \n ObjectAnimator . ofFloat ( currentPage , STRING0 , BOUNCER_SCALE_FACTOR ) ,", "msg_token": "Fix crash in widget pager DO NOT MERGE"} {"diff": " public class Dependencies { \n DiType typeToInitialize = InjectorGeneratorUtil . getEffectiveFieldType ( field ) ; \n \n SINGLE \n - List < Method > declaredMethods = Lists . newArrayList ( typeToInitialize . getClazz ( ) . getDeclaredMethods ( ) ) ; \n + List < Method > declaredMethods = Lists . newArrayList ( typeToInitialize . getClazz ( ) . getMethods ( ) ) ; \n Collections . sort ( declaredMethods , new Comparator < Method > ( ) { \n @ override \n public int compare ( @ notnull Method o1 , @ notnull Method o2 ) {", "msg_token": "Take inherited setters into account"} {"diff": " public class DebuggerUtilsImpl extends DebuggerUtilsEx { \n if ( ProgressIndicatorUtils . runInReadActionWithWriteActionPriority ( ( ) - > res . set ( action . compute ( ) ) ) ) { \n return res . get ( ) ; \n } \n + try { \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + } \n + catch ( InterruptedException e ) { \n + Thread . currentThread ( ) . interrupt ( ) ; \n + return null ; \n + } \n } \n } \n }", "msg_token": "early cancel and restart debugger read actions added a delay between iterations"} {"diff": " public class AdvancedDemoActivity extends BaseActivity implements \n setContentView ( R . layout . activity_advanced_demo ) ; \n mViews = new ViewHolder ( this ) ; \n \n + mSettingsMenu = new GestureSettingsMenu ( ) ; \n + mSettingsMenu . onRestoreInstanceState ( savedInstanceState ) ; \n + \n setSupportActionBar ( mViews . toolbar ) ; \n getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; \n \n public class AdvancedDemoActivity extends BaseActivity implements \n initPager ( ) ; \n initAnimator ( ) ; \n \n - mSettingsMenu = new GestureSettingsMenu ( ) ; \n - mSettingsMenu . onRestoreInstanceState ( savedInstanceState ) ; \n - \n if ( mPagerPhotoPosition != - NUMBER0 ) { \n SINGLE \n onPositionUpdate ( FLOAT0 , false ) ;", "msg_token": "Fixed settings for advanced demo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GitVcs extends AbstractVcs { \n COMMENT \n COMMENT \n public void showCommandLine ( final String cmdLine ) { \n - showMessage ( cmdLine , ConsoleViewContentType . SYSTEM_OUTPUT . getAttributes ( ) ) ; \n + SimpleDateFormat f = new SimpleDateFormat ( STRING0 ) ; \n + showMessage ( f . format ( new Date ( ) ) + STRING1 + cmdLine , ConsoleViewContentType . SYSTEM_OUTPUT . getAttributes ( ) ) ; \n } \n \n COMMENT \n public abstract class GitHandler { \n try { \n SINGLE \n if ( ! myProject . isDefault ( ) && ! mySilent ) { \n + myVcs . showCommandLine ( STRING2 + myWorkingDirectory ) ; \n myVcs . showCommandLine ( printableCommandLine ( ) ) ; \n } \n if ( log . isDebugEnabled ( ) ) {", "msg_token": "Added tracking and working directory and time for the commands"} {"diff": " public final class AndroidGraphicsLiveWallpaper implements Graphics , Renderer { \n synchronized ( synch ) { \n running = true ; \n resume = true ; \n + while ( resume ) { \n + try { \n + synch . wait ( ) ; \n + } catch ( InterruptedException ignored ) { \n + Gdx . app . log ( STRING0 , STRING1 ) ; \n + } \n + } \n } \n } \n \n public final class AndroidGraphicsLiveWallpaper implements Graphics , Renderer { \n \n if ( resume ) { \n resume = false ; \n + synch . notifyAll ( ) ; \n } \n \n if ( pause ) {", "msg_token": "added synchronization to AndroidGraphicsLiveWallpaper resume as in"} {"diff": " public class ClientCloseTest \n SINGLE \n clientSocket . assertReceivedCloseEvent ( timeout , \n anyOf ( is ( StatusCode . SHUTDOWN ) , is ( StatusCode . ABNORMAL ) ) , \n - anyOf ( containsString ( STRING0 ) , containsString ( STRING1 ) ) ) ; \n + anyOf ( containsString ( STRING0 ) , containsString ( STRING2 ) , containsString ( STRING1 ) ) ) ; \n } \n \n @ test", "msg_token": "Allowing alternate timeout check in testcase"} {"diff": " public class DRFV2 extends SharedTreeV2 < DRF , DRFV2 , DRFV2 . DRFParametersV2 > { \n static public String [ ] own_fields = new String [ ] { \n STRING0 , \n STRING1 , \n - STRING2 , \n STRING3 \n } ; \n \n SINGLE \n - @ api ( help = STRING4 ) \n + @ api ( help = STRING5 ) \n public int mtries ; \n \n @ api ( help = STRING6 ) \n public float sample_rate ; \n \n - @ api ( help = STRING7 ) \n - public boolean do_grpsplit ; \n - \n @ api ( help = STRING8 ) \n public boolean build_tree_one_node ; \n }", "msg_token": "Fix DRFParametersV2 remove unused do_grpsplit argument"} {"diff": " import NAMESPACE ; \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", "msg_token": "Fix Cacheable javadoc"} {"diff": " public abstract class ReplayingDecoder < T extends Enum < T > > \n private ReplayingDecoderBuffer replayable ; \n private T state ; \n private int checkpoint ; \n + private boolean needsCleanup ; \n + \n \n COMMENT \n COMMENT \n public abstract class ReplayingDecoder < T extends Enum < T > > \n return ; \n } \n \n + needsCleanup = true ; \n + \n if ( cumulation == null ) { \n SINGLE \n SINGLE \n public abstract class ReplayingDecoder < T extends Enum < T > > \n throws Exception { \n try { \n ChannelBuffer cumulation = this . cumulation ; \n - if ( cumulation == null ) { \n + if ( ! needsCleanup ) { \n return ; \n + } else { \n + needsCleanup = false ; \n } \n \n this . cumulation = null ;", "msg_token": "Make sure we always cleanup once ReplayingDecoder handles a message"} {"diff": " public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb \n cfg = super . getDatabaseConfiguration ( iDatabaseName ) ; \n SINGLE \n distributedConfiguration . put ( STRING0 + iDatabaseName , cfg ) ; \n + } else { \n + SINGLE \n + saveDatabaseConfiguration ( iDatabaseName , cfg ) ; \n } \n return cfg ; \n }", "msg_token": "Changed configuration to stay in a separate JSON file called default distributed db"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo { \n protected boolean attachSources ; \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 protected Proguard proguard ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add documentation for the ProGuard goal and configuration"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractDiagnosticsTestWithEagerResolve extends AbstractJe \n ok &= testFile . getActualText ( bindingContext , actualText ) ; \n } \n \n - assertSameLinesWithFile ( testDataFile . getAbsolutePath ( ) , actualText . toString ( ) ) ; \n + JetTestUtils . assertEqualsToFile ( testDataFile , actualText . toString ( ) ) ; \n \n assertTrue ( STRING0 , ok ) ; \n }", "msg_token": "Use a charset aware method"} {"diff": " public class IndentOptionsDetectorImpl implements IndentOptionsDetector { \n public IndentOptions getIndentOptions ( ) { \n IndentOptions indentOptions = ( IndentOptions ) CodeStyleSettingsManager . getSettings ( myProject ) . getIndentOptions ( myFile . getFileType ( ) ) . clone ( ) ; \n \n - long start = System . currentTimeMillis ( ) ; \n List < LineIndentInfo > linesInfo = calcLineIndentInfo ( ) ; \n - long end = System . currentTimeMillis ( ) ; \n - LOG . info ( STRING0 + myUseFormatterBasedLineIndentBuilder + STRING1 + ( end - start ) ) ; \n - \n if ( linesInfo != null ) { \n IndentUsageStatistics stats = new IndentUsageStatisticsImpl ( linesInfo ) ; \n adjustIndentOptions ( indentOptions , stats ) ;", "msg_token": "IndentDetector Removed logging"} {"diff": " public final class Period \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 public final class Period \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", "msg_token": "Clarify period addition Javadoc"} {"diff": " public final class NetworkCapabilities implements Parcelable { \n COMMENT \n COMMENT \n public NetworkCapabilities ( ) { \n + clearAll ( ) ; \n + mNetworkCapabilities = \n + ( NUMBER0 < < NET_CAPABILITY_NOT_RESTRICTED ) | \n + ( NUMBER0 < < NET_CAPABILITY_TRUSTED ) | \n + ( NUMBER0 < < NET_CAPABILITY_NOT_VPN ) ; \n } \n \n public NetworkCapabilities ( NetworkCapabilities nc ) { \n public final class NetworkCapabilities implements Parcelable { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void clearAll ( ) { \n + mNetworkCapabilities = mTransportTypes = NUMBER1 ; \n + mLinkUpBandwidthKbps = mLinkDownBandwidthKbps = NUMBER1 ; \n + mNetworkSpecifier = null ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - private long mNetworkCapabilities = ( NUMBER0 < < NET_CAPABILITY_NOT_RESTRICTED ) | \n - ( NUMBER0 < < NET_CAPABILITY_TRUSTED ) | ( NUMBER0 < < NET_CAPABILITY_NOT_VPN ) ; \n + private long mNetworkCapabilities ; \n \n COMMENT \n COMMENT", "msg_token": "Add a hidden method to clear NetworkCapabilities"} {"diff": " public final class UpgradeService { \n \n if ( from >= V4_2_0 && from < V4_2_5 ) { \n newVersionString ( changeLog , STRING0 , new String [ ] { \n - STRING1 , \n - STRING2 , \n - STRING3 , \n - STRING4 , \n - STRING5 , \n + STRING6 , \n + STRING7 , \n + STRING8 , \n STRING9 , \n - STRING10 \n + STRING11 \n } ) ; \n }", "msg_token": "Fixed upgrade message"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix header in MixinBlockState"} {"diff": " public class MessageListFragment extends SherlockFragment implements OnItemClick \n } \n \n public void updateFooter ( final String message , final boolean showProgress ) { \n - SINGLE \n post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - updateFooter ( message , showProgress ) ; \n + MessageListFragment . this . updateFooter ( message , showProgress ) ; \n } \n } ) ; \n }", "msg_token": "Avoid endless loop via Handler"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class HandleStop implements DaemonCommandAction { \n immediately tear down the client connection and remove the daemon from the registry . \n COMMENT \n execution . getDaemonStateControl ( ) . requestForcefulStop ( ) ; \n + execution . getConnection ( ) . dispatch ( new Success ( null ) ) ; \n } else { \n execution . proceed ( ) ; \n }", "msg_token": "Send a Success message back to client when handling a Stop request"} {"diff": " public class HeartbeatInterceptor extends AtmosphereInterceptorAdapter { \n @ override \n public Action inspect ( final AtmosphereResource r ) { \n \n + if ( Utils . webSocketMessage ( r ) ) return Action . CONTINUE ; \n + \n final int interval = extractHeartbeatInterval ( r ) ; \n \n if ( interval != NUMBER0 ) {", "msg_token": "Do not associate a heartbeat with a websocket message"} {"diff": " public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n ! renderer . startsWith ( kMSM7K_RENDERER_PREFIX ) ; \n notifyAll ( ) ; \n } \n - mLimitedGLESContexts = ! mMultipleGLESContextsAllowed || renderer . startsWith ( kADRENO ) ; \n + mLimitedGLESContexts = ! mMultipleGLESContextsAllowed ; \n if ( LOG_SURFACE ) { \n Log . w ( TAG , STRING0 + renderer + STRING1 \n + mMultipleGLESContextsAllowed \n public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private boolean mGLESVersionCheckComplete ; \n private int mGLESVersion ; \n private boolean mGLESDriverCheckComplete ; \n public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n private static final int kGLES_20 = NUMBER0 ; \n private static final String kMSM7K_RENDERER_PREFIX = \n STRING2 ; \n - private static final String kADRENO = STRING3 ; \n private GLThread mEglOwner ; \n }", "msg_token": "Remove EGL context limit for Adreno GPUs"} {"diff": " public class MockitoPostProcessor extends InstantiationAwareBeanPostProcessorAda \n \n private void registerSpies ( SpyDefinition definition , Field field , \n String [ ] existingBeans ) { \n - if ( field != null ) { \n - Assert . state ( field == null || existingBeans . length == NUMBER0 , \n - STRING0 + definition . getClassToSpy ( ) . getName ( ) \n - + STRING1 \n - + new TreeSet < String > ( Arrays . asList ( existingBeans ) ) ) ; \n - } \n + Assert . state ( field == null || existingBeans . length == NUMBER0 , \n + STRING0 + definition . getClassToSpy ( ) . getName ( ) \n + + STRING1 \n + + new TreeSet < String > ( Arrays . asList ( existingBeans ) ) ) ; \n for ( String beanName : existingBeans ) { \n registerSpy ( definition , field , beanName ) ; \n }", "msg_token": "Remove superflous if in MockitoPostProcessor"} {"diff": " \n package NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EditPoiDialogFragment extends DialogFragment { \n . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_ADJUST_RESIZE ) ; \n } \n \n - @ targetapi ( Build . VERSION_CODES . HONEYCOMB ) \n @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , \n Bundle savedInstanceState ) { \n public class EditPoiDialogFragment extends DialogFragment { \n . setNegativeButton ( R . string . shared_string_cancel , null ) ; \n return builder . create ( ) ; \n } \n - } \n + } \n \n private TextView . OnEditorActionListener mOnEditorActionListener = \n new TextView . OnEditorActionListener ( ) {", "msg_token": "Remove target api should not be used"} {"diff": " public class BarrierBuffer { \n LOG . debug ( STRING0 ) ; \n } \n \n - if ( currentSuperstep != null ) { \n + if ( currentSuperstep != null && ! inputFinished ) { \n reader . publish ( currentSuperstep ) ; \n }", "msg_token": "streaming Minor bugfix in the BarrierBuffer input finishing logic"} {"diff": " public class EditSession { \n COMMENT \n private void makePumpkinPatch ( Vector basePos ) \n throws MaxChangedBlocksException { \n - BaseBlock logBlock = new BaseBlock ( NUMBER0 ) ; \n + SINGLE \n BaseBlock leavesBlock = new BaseBlock ( NUMBER1 ) ; \n \n - setBlock ( basePos . subtract ( NUMBER2 , NUMBER3 , NUMBER2 ) , logBlock ) ; \n + SINGLE \n setBlockIfAir ( basePos , leavesBlock ) ; \n \n makePumpkinPatchVine ( basePos , basePos . add ( NUMBER2 , NUMBER2 , NUMBER3 ) ) ;", "msg_token": "Pumpkin patch generator no longer drops a log block"} {"diff": " final class HintsDispatchExecutor \n \n try \n { \n - dispatch ( descriptor ) ; \n + if ( ! dispatch ( descriptor ) ) \n + break ; \n } \n catch ( FSReadError e ) \n { \n final class HintsDispatchExecutor \n } \n } \n \n - private void dispatch ( HintsDescriptor descriptor ) \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean dispatch ( HintsDescriptor descriptor ) \n { \n logger . debug ( STRING0 , descriptor . fileName ( ) ) ; \n \n final class HintsDispatchExecutor \n logger . error ( STRING1 , descriptor . fileName ( ) ) ; \n store . cleanUp ( descriptor ) ; \n logger . info ( STRING2 , descriptor . fileName ( ) , hostId ) ; \n + return true ; \n } \n else \n { \n store . markDispatchOffset ( descriptor , dispatcher . dispatchOffset ( ) ) ; \n store . offerFirst ( descriptor ) ; \n logger . info ( STRING3 , descriptor . fileName ( ) , hostId ) ; \n + return false ; \n } \n } \n }", "msg_token": "Fix an issue with transient dispatch failures"} {"diff": " public class ProtobufAnnotationSerializerSlowITest { \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n - private static boolean THOROUGH_TEST = false ; \n + private static boolean THOROUGH_TEST = true ; \n \n public static final String prideAndPrejudiceChapters1to5 = \n STRING1 ;", "msg_token": "Run a thorough protobuf itest"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class Table { \n protected int rowCount ; \n public class Table { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void addColumn ( ) { \n addColumn ( null , STRING ) ; \n public class Table { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void removeColumn ( String columnName ) { \n removeColumn ( getColumnIndex ( columnName ) ) ;", "msg_token": "Adding a couple related reference links for Table methods"} {"diff": " public class XActivityThread extends XHook { \n List < XHook > listHook = new ArrayList < XHook > ( ) ; \n \n SINGLE \n - listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cPhone , Intent . ACTION_NEW_OUTGOING_CALL ) ) ; \n + listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cCalling , \n + Intent . ACTION_NEW_OUTGOING_CALL ) ) ; \n listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cPhone , \n TelephonyManager . ACTION_PHONE_STATE_CHANGED ) ) ; \n \n public class XContentResolver extends XHook { \n } \n \n else if ( uri . startsWith ( STRING0 ) ) { \n - restrictionName = PrivacyManager . cPhone ; \n + restrictionName = PrivacyManager . cCalling ; \n methodName = STRING1 ; \n }", "msg_token": "Complete moving methods"} {"diff": " public class MarkView extends View { \n protected void onDraw ( Canvas canvas ) { \n super . onDraw ( canvas ) ; \n \n - String text = isMarkValid ( mMark ) ? String . valueOf ( mMark ) + STRING0 : STRING1 ; \n + String text = ( isMarkValid ( mMark ) ? String . valueOf ( mMark ) : STRING2 ) + STRING0 ; \n if ( ! TextUtils . isEmpty ( text ) ) { \n float textHeight = mTextPaint . descent ( ) + mTextPaint . ascent ( ) ; \n float yPositionOfText = ( getWidth ( ) - textHeight ) / FLOAT0 ;", "msg_token": "Fix an issue where on new blogs there is no gauge when visits are empty"} {"diff": " public abstract class AbstractJDBCDataModel implements JDBCDataModel { \n private ResultSetUserIterator ( DataSource dataSource , String getUsersSQL ) throws TasteException { \n try { \n connection = dataSource . getConnection ( ) ; \n - statement = connection . prepareStatement ( getUsersSQL ) ; \n + SINGLE \n + statement = connection . prepareStatement ( getUsersSQL , \n + ResultSet . TYPE_SCROLL_INSENSITIVE , \n + ResultSet . CONCUR_READ_ONLY ) ; \n statement . setFetchDirection ( ResultSet . FETCH_UNKNOWN ) ; \n log . debug ( STRING0 , getUsersSQL ) ; \n resultSet = statement . executeQuery ( ) ;", "msg_token": "Adjust JDBC settings to avoid error on Oracle driver"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n COMMENT \n COMMENT \n public AtmosphereFramework setDefaultBroadcasterClassName ( String bccn ) { \n + if ( isBroadcasterSpecified ) { \n + logger . trace ( STRING0 , broadcasterClassName ) ; \n + return this ; \n + } \n + \n broadcasterClassName = bccn ; \n \n SINGLE", "msg_token": "If the broadcaster has been specifiedin web xml don t override it"} {"diff": " public abstract class BasePartial \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - protected BasePartial ( int [ ] values , Chronology chronology ) { \n - super ( ) ; \n - chronology = DateTimeUtils . getChronology ( chronology ) ; \n - iChronology = chronology . withUTC ( ) ; \n - chronology . validate ( this , values ) ; \n - iValues = ( int [ ] ) values . clone ( ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class TabletStatusBar extends StatusBar implements \n \n sb . setHandler ( mHandler ) ; \n \n + SINGLE \n + SINGLE \n + if ( mContext . getResources ( ) . getBoolean ( \n + com . android . internal . R . bool . config_showNavigationBar ) ) { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n + \n mBarContents = ( ViewGroup ) sb . findViewById ( R . id . bar_contents ) ; \n SINGLE \n mBarContentsLayoutTransition = new LayoutTransition ( ) ;", "msg_token": "Throw an exception if a both nav and system bars are configured"} {"diff": " public class KotlinBuilder extends ModuleLevelBuilder { \n ModuleBuildTarget representativeTarget = chunk . representativeTarget ( ) ; \n \n SINGLE \n - if ( ! dirtyFilesHolder . hasDirtyFiles ( ) ) { \n + if ( ! dirtyFilesHolder . hasDirtyFiles ( ) && ! dirtyFilesHolder . hasRemovedFiles ( ) ) { \n return ExitCode . NOTHING_DONE ; \n }", "msg_token": "Check removed files as well as dirty ones"} {"diff": " public class ToastUtils { \n } \n \n if ( isInvalidTokenError && ( context instanceof FragmentActivity ) ) { \n - showAuthErrorDialog ( context ) ; \n + showAuthErrorDialog ( ( FragmentActivity ) context ) ; \n } else { \n String fallbackErrorMessage = TextUtils . isEmpty ( friendlyMessage ) ? context . getString ( \n R . string . error_generic ) : friendlyMessage ; \n public class ToastUtils { \n \n if ( ( context instanceof FragmentActivity ) && ! TextUtils . isEmpty ( xmlrpcMessage ) && ( xmlrpcMessage . contains ( \n STRING0 ) || is2StepsAuthEnabled ) ) { \n - showAuthErrorDialog ( context ) ; \n + showAuthErrorDialog ( ( FragmentActivity ) context ) ; \n } else { \n String errorMessage = null ; \n if ( isLoginLimitReached ) { \n public class ToastUtils { \n } \n } \n \n - private static void showAuthErrorDialog ( Context context ) { \n - FragmentActivity activity = ( FragmentActivity ) context ; \n + private static void showAuthErrorDialog ( FragmentActivity activity ) { \n if ( activity . isFinishing ( ) ) { \n return ; \n }", "msg_token": "prevent future erroneous call to showAuthErrorDialog"} {"diff": " import NAMESPACE ; \n public class SslErrorHandler extends Handler { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - SslErrorHandler ( ) { } \n + public SslErrorHandler ( ) { } \n \n COMMENT \n COMMENT", "msg_token": "Make SslErrorHandler ctor public hide"} {"diff": " \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", "msg_token": "Remove erroneous statement about inability to unregister from eventbus package Javadoc"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Add a stub implementation for a namespace type"} {"diff": " public class AnalysisPipeline { \n look = anal . getDecisionLookahead ( s ) ; \n g . tool . log ( STRING0 , STRING1 + Arrays . toString ( look ) ) ; \n } \n + \n + assert s . decision + NUMBER0 >= g . decisionLOOK . size ( ) ; \n Utils . setSize ( g . decisionLOOK , s . decision + NUMBER0 ) ; \n g . decisionLOOK . set ( s . decision , look ) ; \n g . tool . log ( STRING0 , STRING2 + disjoint ( look ) ) ; \n public class LL1StarBlockSingleAlt extends LL1Loop { \n loopBackStateNumber = star . loopBackState . stateNumber ; \n this . decision = star . decision ; \n IntervalSet [ ] altLookSets = factory . getGrammar ( ) . decisionLOOK . get ( decision ) ; \n + assert altLookSets . length == NUMBER1 ; \n IntervalSet enterLook = altLookSets [ NUMBER2 ] ; \n IntervalSet exitLook = altLookSets [ NUMBER0 ] ; \n loopExpr = addCodeForLoopLookaheadTempVar ( enterLook ) ;", "msg_token": "Add some assertions"} {"diff": " public class CmdRevertClient extends BaseSvnClient implements RevertClient { \n String statusMessage = matcher . group ( NUMBER0 ) ; \n String path = matcher . group ( NUMBER1 ) ; \n \n - return new SVNEvent ( new File ( path ) , null , null , NUMBER2 , null , null , null , null , createAction ( statusMessage ) , null , null , null , null , null , \n - null ) ; \n + return createEvent ( new File ( path ) , createAction ( statusMessage ) ) ; \n } \n \n @ nullable", "msg_token": "Refactored revert client for command line use utility method for event creation"} {"diff": " public class ShareDialog { \n } \n share . add ( new ShareType ( longExplanation , EMAIL ) ) ; \n share . add ( new ShareType ( shortExplanation , SMS ) ) ; \n - share . add ( new ShareType ( shortExplanation , CLIPBOARD ) ) ; \n + share . add ( new ShareType ( url , CLIPBOARD ) ) ; \n share . add ( new ShareType ( url , QR ) ) ; \n return this ; \n } \n public class SettingsOsMoActivity extends SettingsBaseActivity { \n ShareDialog dlg = new ShareDialog ( this ) ; \n dlg . setTitle ( getString ( R . string . osmo_tracker_id ) ) ; \n dlg . viewContent ( ci . trackerId ) ; \n - dlg . shareURLOrText ( ci . trackerId , getString ( R . string . osmo_tracker_id_share , ci . trackerId ) , null ) ; \n + dlg . shareURLOrText ( ci . trackerId , getString ( R . string . osmo_tracker_id_share , ci . trackerId , STRING0 ) , null ) ; \n dlg . showDialog ( ) ; \n } \n }", "msg_token": "Fix small issues"} {"diff": " public interface Task extends Comparable < Task > , ExtensionAware { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix syntax in API doc comment"} {"diff": " class JarFileResource extends JarResource \n private boolean _exists ; \n \n COMMENT \n - JarFileResource ( URL url ) \n + protected JarFileResource ( URL url ) \n { \n super ( url ) ; \n } \n \n COMMENT \n - JarFileResource ( URL url , boolean useCaches ) \n + protected JarFileResource ( URL url , boolean useCaches ) \n { \n super ( url , useCaches ) ; \n } \n public class JarResource extends URLResource \n protected JarURLConnection _jarConnection ; \n \n COMMENT \n - JarResource ( URL url ) \n + protected JarResource ( URL url ) \n { \n super ( url , null ) ; \n } \n \n COMMENT \n - JarResource ( URL url , boolean useCaches ) \n + protected JarResource ( URL url , boolean useCaches ) \n { \n super ( url , null , useCaches ) ; \n }", "msg_token": "Make JarResource constructors protected"} {"diff": " public class WordPress extends Application { \n } \n \n @ override \n - public void onActivityCreated ( Activity activity , Bundle arg1 ) { \n + public void onActivityCreated ( Activity arg0 , Bundle arg1 ) { \n } \n \n @ override", "msg_token": "Reverted var name change"} {"diff": " public class EventBusImpl implements EventBus , MetricsProvider { \n if ( ! ar . succeeded ( ) ) { \n log . error ( STRING0 ) ; \n } else { \n - completionHandler . handle ( Future . succeededFuture ( ) ) ; \n + if ( completionHandler != null ) { \n + completionHandler . handle ( Future . succeededFuture ( ) ) ; \n + } \n } \n } ) ; \n }", "msg_token": "Fix NPE in unregistering handler when clustered"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n SINGLE \n SINGLE \n SINGLE \n - int shortSizeDp = ( shortSize * DisplayMetrics . DENSITY_DEVICE ) \n - / DisplayMetrics . DENSITY_DEFAULT ; \n + int shortSizeDp = shortSize \n + COMMENT \n + / DisplayMetrics . DENSITY_DEVICE ; \n mStatusBarCanHide = shortSizeDp < NUMBER0 ; \n mStatusBarHeight = mContext . getResources ( ) . getDimensionPixelSize ( \n mStatusBarCanHide", "msg_token": "Restore status bar on phones"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n case NUMBER0 : \n SINGLE \n for ( ZWaveDbManufacturer manufacturer : database . GetManufacturers ( ) ) { \n - record = new OpenHABConfigurationRecord ( domain , manufacturer . Id . toString ( ) , manufacturer . Name , true ) ; \n + record = new OpenHABConfigurationRecord ( domain + manufacturer . Id . toString ( ) + STRING0 , manufacturer . Name ) ; \n \n records . add ( record ) ; \n }", "msg_token": "Fix product explorer domain"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class MopubFastItemAdapter < Item extends IItem > extends FastItemAdapter < It \n public int getHolderAdapterPosition ( RecyclerView . ViewHolder holder ) { \n return mMoPubAdAdapter . getOriginalPosition ( super . getHolderAdapterPosition ( holder ) ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public void onBindViewHolder ( final RecyclerView . ViewHolder holder , int position ) { \n + super . onBindViewHolder ( holder , position , Collections . EMPTY_LIST ) ; \n + } \n }", "msg_token": "improve MopubFastItemAdapter as Mopub does not correctly pass all methods to the original adapter"} {"diff": " public class DiscoverableSubtypeResolver extends StdSubtypeResolver { \n protected List < Class < ? > > discoverServices ( Class < ? > klass ) { \n final List < Class < ? > > serviceClasses = Lists . newArrayList ( ) ; \n try { \n - final Enumeration < URL > resources = ClassLoader . getSystemResources ( STRING0 + klass . getName ( ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + final Enumeration < URL > resources = this . getClass ( ) . getClassLoader ( ) . getResources ( STRING0 + klass . getName ( ) ) ; \n while ( resources . hasMoreElements ( ) ) { \n final URL url = resources . nextElement ( ) ; \n try ( InputStream input = url . openStream ( ) ;", "msg_token": "Fix configuration classloader bug when system classloader not used"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class ColumnSortInfo extends JavaScriptObject \n public class ColumnSortInfo extends JavaScriptObject \n table . getColumn ( getColumnIndex ( ) ) , getAscending ( ) ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n + @ suppresswarnings ( { STRING0 , STRING1 } ) \n public static ColumnSortInfo fromGwtSortInfo ( CellTable table , \n ColumnSortList . ColumnSortInfo si ) \n { \n public class ColumnSortInfo extends JavaScriptObject \n return list ; \n } \n \n + @ suppresswarnings ( STRING1 ) \n public static JsArray < ColumnSortInfo > getSortList ( CellTable table ) \n { \n ColumnSortList sortList = table . getColumnSortList ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public class FileSystemMasterIntegrationTest { \n List < FileInfo > infoList = mFsMaster . getFileInfoList ( mFsMaster . getFileId ( new TachyonURI ( STRING0 ) ) ) ; \n for ( FileInfo info : infoList ) { \n SINGLE \n - long id = new Long ( info . getFileId ( ) ) ; \n + long id = info . getFileId ( ) ; \n listedDirIds . add ( id ) ; \n for ( FileInfo fileInfo : mFsMaster . getFileInfoList ( id ) ) { \n - listedIds . add ( ( long ) fileInfo . getFileId ( ) ) ; \n + listedIds . add ( fileInfo . getFileId ( ) ) ; \n } \n } \n Assert . assertEquals ( ids , listedIds ) ;", "msg_token": "Remove Long cast in getFileld of listFilesTest since it s not needed anymore"} {"diff": " public final class Calendar { \n COMMENT \n COMMENT \n public static final String MAX_REMINDERS = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String [ ] SYNC_WRITABLE_COLUMNS = new String [ ] { \n + _SYNC_ACCOUNT , \n + _SYNC_ACCOUNT_TYPE , \n + _SYNC_ID , \n + _SYNC_TIME , \n + _SYNC_VERSION , \n + _SYNC_DIRTY , \n + OWNER_ACCOUNT , \n + MAX_REMINDERS , \n + CAN_MODIFY_TIME_ZONE , \n + CAN_ORGANIZER_RESPOND , \n + LOCATION , \n + TIMEZONE , \n + ACCESS_LEVEL , \n + DELETED , \n + SYNC1 , \n + SYNC2 , \n + SYNC3 , \n + SYNC4 , \n + SYNC5 , \n + SYNC6 , \n + SYNC_STATE , \n + } ; \n } \n \n COMMENT", "msg_token": "Adds Calendars sync only columns to the contract"} {"diff": " import NAMESPACE ; \n this . state = HSBType . BLACK ; \n } else if ( state == OnOffType . ON ) { \n this . state = HSBType . WHITE ; \n - } else if ( state instanceof PercentType ) { \n + } else if ( state instanceof PercentType && ! ( state instanceof HSBType ) ) { \n this . state = new HSBType ( DecimalType . ZERO , PercentType . ZERO , ( PercentType ) state ) ; \n } else { \n super . setState ( state ) ;", "msg_token": "fixed bug when setting the initial color state"} {"diff": " public class Beacon implements Parcelable { \n return mBluetoothAddress ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getBluetoothName ( ) { \n + return mBluetoothName ; \n + } \n \n COMMENT \n COMMENT \n public class Beacon implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - public Builder setManufacturer ( String name ) { \n + public Builder setBluetoothName ( String name ) { \n mBeacon . mBluetoothName = name ; \n return this ; \n }", "msg_token": "expose bluetoothName field"} {"diff": " public class BatchKVResponse < K , V extends RecordTemplate > extends RecordTemplate \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Map < K , V > getResults ( ) \n { \n return _results ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Map < K , ErrorResponse > getErrors ( ) \n { \n return _errors ;", "msg_token": "added comments to getResult and getErrors"} {"diff": " public class StatsActivity extends ActionBarActivity \n \n selectCurrentTimeframeInActionBar ( ) ; \n \n - TextView otherRecemtStatsMovedLabel = ( TextView ) findViewById ( R . id . stats_other_recent_stats_moved ) ; \n - otherRecemtStatsMovedLabel . setOnClickListener ( new View . OnClickListener ( ) { \n + TextView otherRecentStatsMovedLabel = ( TextView ) findViewById ( R . id . stats_other_recent_stats_moved ) ; \n + otherRecentStatsMovedLabel . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n for ( int i = NUMBER0 ; i < timeframes . length ; i ++ ) {", "msg_token": "Fixed a typo"} {"diff": " interface FromJava8 { \n default void < warning descr = STRING0 > foo < / warning > ( ) { \n System . out . println ( ) ; \n } \n + } \n + class B { \n + public void accept ( String t ) { \n + System . out . println ( t ) ; \n + } \n + } \n + class V extends B implements Consumer < String > { } \n + interface Consumer < T > { \n + void accept ( T t ) ; \n }", "msg_token": "add test case"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConnectionManagerImpl extends BasicModule implements ConnectionMana \n routingTable = server . getRoutingTable ( ) ; \n deliverer = server . getPacketDeliverer ( ) ; \n sessionManager = server . getSessionManager ( ) ; \n + SINGLE \n + SINGLE \n + if ( JiveGlobals . getBooleanProperty ( STRING0 , false ) ) { \n + ByteBuffer . setUseDirectBuffers ( false ) ; \n + ByteBuffer . setAllocator ( new SimpleByteBufferAllocator ( ) ) ; \n + } \n } \n \n public void enableClientListener ( boolean enabled ) {", "msg_token": "Optimization use heap buffers by default"} {"diff": " public class UpcomingFragment extends ListFragment implements LoaderManager . Load \n \n final ListView list = getListView ( ) ; \n list . setFastScrollEnabled ( true ) ; \n + list . setDivider ( null ) ; \n registerForContextMenu ( list ) ; \n }", "msg_token": "Remove the divider in Upcoming and Recent lists"} {"diff": " public class CachingBuildEngine implements BuildEngine { \n } \n \n @ visiblefortesting \n - public synchronized void createFutureFor ( BuildTarget buildTarget ) { \n - results . put ( buildTarget , SettableFuture . < BuildRuleSuccess > create ( ) ) ; \n + public SettableFuture < BuildRuleSuccess > createFutureFor ( BuildTarget buildTarget ) { \n + SettableFuture < BuildRuleSuccess > newFuture = SettableFuture . create ( ) ; \n + SettableFuture < BuildRuleSuccess > result = results . putIfAbsent ( \n + buildTarget , \n + newFuture ) ; \n + return result == null ? newFuture : result ; \n } \n \n @ visiblefortesting \n - synchronized void setBuildRuleResult ( \n + void setBuildRuleResult ( \n BuildTarget buildTarget , \n BuildRuleSuccess success ) { \n - if ( results . get ( buildTarget ) == null ) { \n - createFutureFor ( buildTarget ) ; \n - } \n - results . get ( buildTarget ) . set ( success ) ; \n + createFutureFor ( buildTarget ) . set ( success ) ; \n } \n \n @ override", "msg_token": "Remove unrequired synchronized"} {"diff": " public abstract class AutoProxyUtils { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n static void exposeTargetClass ( ConfigurableListableBeanFactory beanFactory , String beanName , Class < ? > targetClass ) { \n - if ( beanFactory . containsBeanDefinition ( beanName ) ) { \n + if ( beanName != null && beanFactory . containsBeanDefinition ( beanName ) ) { \n beanFactory . getMergedBeanDefinition ( beanName ) . setAttribute ( ORIGINAL_TARGET_CLASS_ATTRIBUTE , targetClass ) ; \n } \n }", "msg_token": "Avoid exposeTargetClass attempt if bean name is null"} {"diff": " public class DownloadIndexActivity extends OsmandExpandableListActivity { \n private Map < String , String > indexActivatedFileNames = null ; \n private TreeMap < String , DownloadEntry > entriesToDownload = new TreeMap < String , DownloadEntry > ( ) ; \n \n - private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = NUMBER0 ; \n + private int MAXIMUM_AVAILABLE_FREE_DOWNLOADS = NUMBER1 ; \n \n \n private TextWatcher textWatcher ;", "msg_token": "Fix number of downloads"} {"diff": " public class IconModel { \n private static final String PATH_DRAWABLE_PREFIX = STRING0 ; \n private static final String VECTOR_SIZE_NAME = STRING1 ; \n private static final String VECTOR_DEFAULT_DP = STRING2 ; \n + private static final String VECTOR_VIEWPORT_SIZE = STRING3 ; \n private static final String UNDERBAR = STRING4 ; \n private static final String PNG_SUFFIX = STRING5 ; \n private static final String XML_SUFFIX = STRING6 ; \n public class IconModel { \n } \n \n public String getViewportSize ( ) { \n - if ( dp != null ) { \n - return dp . replace ( DP , STRING7 ) + STRING8 ; \n - } else { \n - return null ; \n - } \n + return VECTOR_VIEWPORT_SIZE ; \n } \n \n public String getFileName ( ) {", "msg_token": "Fixed viewport size"} {"diff": " public class HttpParser implements Parser \n break ; \n \n case HttpTokens . NO_CONTENT : \n - _state = _persistent || ( _responseStatus >= NUMBER0 && _responseStatus < NUMBER1 ) ? STATE_END : STATE_SEEKING_EOF ; \n _handler . headerComplete ( ) ; \n + _state = _persistent || ( _responseStatus >= NUMBER0 && _responseStatus < NUMBER1 ) ? STATE_END : STATE_SEEKING_EOF ; \n _handler . messageComplete ( _contentPosition ) ; \n break ;", "msg_token": "revert no content state"} {"diff": " public class FileReferenceQuickFixProvider { \n } \n } else { \n final Collection < PsiElement > defaultContexts = fileReferenceSet . getDefaultContexts ( reference . getElement ( ) ) ; \n - PsiElement psiElement = defaultContexts . iterator ( ) . next ( ) ; \n + final PsiElement psiElement = ( ! defaultContexts . isEmpty ( ) ) ? defaultContexts . iterator ( ) . next ( ) : null ; \n \n if ( psiElement instanceof PsiDirectory ) { \n directory = ( PsiDirectory ) psiElement ; \n public class FileReferenceSet { \n if ( dir != null ) { \n if ( properties != null ) { \n result = JspManager . getInstance ( project ) . findWebDirectoryByFile ( dir . getVirtualFile ( ) , properties ) ; \n + if ( result == null ) result = dir ; \n } \n else { \n result = dir ;", "msg_token": "fixed NoSuchElementException using current dir as default context in webmodule if there is no parent webdir"} {"diff": " public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT \n assertThat ( numHits , equalTo ( NUMBER0 ) ) ; \n clearScroll ( STRING0 ) ; \n \n - cluster ( ) . stopRandomDataNode ( ) ; \n + cluster ( ) . stopRandomNonMasterNode ( ) ; \n \n searchResponse = client ( ) . prepareSearch ( ) \n . setQuery ( matchAllQuery ( ) )", "msg_token": "TEST Don t stop master node"} {"diff": " public class SyncFailsafeTest extends AbstractFailsafeTest { \n } catch ( Exception e ) { \n assertTrue ( e instanceof FailsafeException ) ; \n assertTrue ( e . getCause ( ) instanceof InterruptedException ) ; \n + SINGLE \n + Thread . interrupted ( ) ; \n } \n }", "msg_token": "Fix thread interrupt test"} {"diff": " public class TestServlet extends HttpServlet { \n PrintWriter out = response . getWriter ( ) ; \n out . println ( STRING0 ) ; \n out . println ( STRING1 ) ; \n - out . println ( STRING2 ) ; \n + out . println ( STRING3 ) ; \n out . println ( STRING4 ) ; \n out . println ( STRING5 ) ; \n - out . println ( STRING6 + request . getContextPath ( ) + STRING7 ) ; \n + out . println ( STRING8 ) ; \n Client client = ClientBuilder . newClient ( ) ; \n WebTarget target = client . target ( STRING9 \n + request . getServerName ( )", "msg_token": "Fixed servlet title"} {"diff": " public abstract class QueueOperation extends Operation \n } \n \n @ override \n - public boolean returnsResponse ( ) { \n - return true ; \n - } \n - \n - @ override \n public final Object getResponse ( ) { \n return response ; \n } \n public class GetOperation extends Operation implements IdentifiedDataSerializabl \n } \n \n @ override \n - public boolean returnsResponse ( ) { \n - return true ; \n - } \n - \n - @ override \n public Object getResponse ( ) { \n return response ; \n }", "msg_token": "Removed returnsResponse true implementations"} {"diff": " public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro \n if ( processor . processUsage ( javaChangeInfo , usage , beforeMethodChange , javaUsageInfos ) ) break ; \n } \n if ( usage instanceof OverriderUsageInfo ) { \n - PsiMethod overridingMethod = ( ( OverriderUsageInfo ) usage ) . getElement ( ) ; \n + PsiMethod overridingMethod = ( ( OverriderUsageInfo ) usage ) . getOverridingMethod ( ) ; \n if ( overridingMethod != null ) { \n nullabilityPropagator . processMethod ( overridingMethod ) ; \n }", "msg_token": "Fixed compilation error IDEA API changed"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class RadioAccessFamily implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public void writeToParcel ( Parcel outParcel , int flags ) { \n outParcel . writeInt ( mPhoneId ) ; \n outParcel . writeInt ( mRadioAccessFamily ) ; \n public class RadioAccessFamily implements Parcelable { \n return new RadioAccessFamily [ size ] ; \n } \n } ; \n + \n + public static int getRafFromNetworkType ( int type ) { \n + SINGLE \n + switch ( type ) { \n + case RILConstants . NETWORK_MODE_WCDMA_PREF : \n + case RILConstants . NETWORK_MODE_GSM_UMTS : \n + return RAF_UMTS | RAF_GSM ; \n + case RILConstants . NETWORK_MODE_GSM_ONLY : \n + return RAF_GSM ; \n + default : \n + return RAF_UNKNOWN ; \n + } \n + } \n }", "msg_token": "Add mapping between RAT and Network Mode"} {"diff": " public final class HttpUtils { \n } \n \n public static boolean isWebSocket ( String scheme ) { \n - return WEBSOCKET . equalsIgnoreCase ( scheme ) || WEBSOCKET_SSL . equalsIgnoreCase ( scheme ) ; \n + return WEBSOCKET . equals ( scheme ) || WEBSOCKET_SSL . equals ( scheme ) ; \n } \n \n public static boolean isSecure ( String scheme ) { \n - return HTTPS . equalsIgnoreCase ( scheme ) || WEBSOCKET_SSL . equalsIgnoreCase ( scheme ) ; \n + return HTTPS . equals ( scheme ) || WEBSOCKET_SSL . equals ( scheme ) ; \n } \n \n public static boolean isSecure ( UriComponents uri ) {", "msg_token": "Would would write schemes not in lowercase"} {"diff": " public class RttManager { \n if ( mRttCapabilities == null ) { \n if ( getRttCapabilities ( ) == null ) { \n Log . e ( TAG , STRING0 ) ; \n - SINGLE \n + throw new IllegalStateException ( STRING1 ) ; \n } \n } \n \n public class RttManager { \n return true ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n public void startRanging ( RttParams [ ] params , RttListener listener ) { \n int index = NUMBER0 ; \n for ( RttParams rttParam : params ) {", "msg_token": "enable RTT capability exception"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class MusicFactory { \n SINGLE \n SINGLE \n \n + public static Music createMusicFromFile ( final MusicManager pMusicManager , final Context pContext , final File pFile ) throws IOException { \n + final MediaPlayer mediaPlayer = new MediaPlayer ( ) ; \n + \n + mediaPlayer . setDataSource ( new FileInputStream ( pFile ) . getFD ( ) ) ; \n + mediaPlayer . prepare ( ) ; \n + \n + final Music music = new Music ( pMusicManager , mediaPlayer ) ; \n + pMusicManager . add ( music ) ; \n + \n + return music ; \n + } \n + \n public static Music createMusicFromAsset ( final MusicManager pMusicManager , final Context pContext , final String pAssetPath ) throws IOException { \n final MediaPlayer mediaPlayer = new MediaPlayer ( ) ;", "msg_token": "Added createMusicFromFile method to MusicFactory Thx to cpasjuste"} {"diff": " import NAMESPACE ; \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", "msg_token": "Rewrite misleading Note in FingerprintTrustManagerFactory javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n - import static NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class DefaultIdeaModule implements Serializable , IdeaModule { \n } \n \n public DomainObjectSet < ? extends HierarchicalElement > getChildren ( ) { \n - return new ImmutableDomainObjectSet < HierarchicalElement > ( ( Set < HierarchicalElement > ) emptySet ( ) ) ; \n + return new ImmutableDomainObjectSet < HierarchicalElement > ( Collections . < HierarchicalElement > emptySet ( ) ) ; \n } \n \n public String getDescription ( ) {", "msg_token": "fix broken attempt at fixing unchecked error"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class OkHttpClientTransportTest { \n assertEquals ( Status . INTERNAL . getCode ( ) , listener1 . status . getCode ( ) ) ; \n assertEquals ( NETWORK_ISSUE_MESSAGE , listener2 . status . getCause ( ) . getMessage ( ) ) ; \n verify ( listener ) . transportShutdown ( ) ; \n - verify ( listener ) . transportTerminated ( ) ; \n + verify ( listener , timeout ( TIME_OUT_MS ) ) . transportTerminated ( ) ; \n } \n \n @ test", "msg_token": "Fix race in OkHttp test"} {"diff": " public class J2ObjCTest extends GenerationTest { \n \n SINGLE \n public void testAnnotationProcessing ( ) throws Exception { \n + if ( runningInEclipse ( ) ) { \n + SINGLE \n + return ; \n + } \n String processorPath = getResourceAsFile ( STRING0 ) ; \n Options . getClassPathEntries ( ) . add ( processorPath ) ; \n \n public class J2ObjCTest extends GenerationTest { \n assertTranslation ( translatedAnnotationImpl , STRING1 ) ; \n assertTranslation ( translatedAnnotationImpl , STRING2 ) ; \n } \n + \n + private boolean runningInEclipse ( ) { \n + Throwable t = new Throwable ( ) ; \n + StackTraceElement [ ] trace = t . getStackTrace ( ) ; \n + return trace [ trace . length - NUMBER0 ] . getClassName ( ) . startsWith ( STRING3 ) ; \n + } \n }", "msg_token": "Don t run test that fails in Eclipse due to Eclipse build limitation"} {"diff": " public class RecipeServiceClientImpl implements RecipeServiceClient { \n tagsParam . toString ( ) ; \n \n if ( type != null ) { \n - url += STRING0 + type ; \n + url += STRING1 + type ; \n } \n \n return asyncRequestFactory . createGetRequest ( url )", "msg_token": "Fix finding recipe by tags"} {"diff": " public class TileEngine extends TileBuildCraft implements IPowerReceptor , IInven \n } \n @ override public ILiquidTank getTank ( ForgeDirection direction , LiquidStack type ) { return null ; } \n \n - @ override \n - public ILiquidTank getTank ( ForgeDirection direction , LiquidStack type ) { \n - SINGLE \n - return null ; \n - } \n }", "msg_token": "Fixed accidental edit conflict"} {"diff": " public class MediaUtils { \n return false ; \n } \n \n - private static boolean isVideo ( String url ) { \n + public static boolean isVideo ( String url ) { \n if ( url == null ) \n return false ; \n if ( url . endsWith ( STRING0 ) || url . endsWith ( STRING1 ) || url . endsWith ( STRING2 ) || url . endsWith ( STRING3 ) ||", "msg_token": "Changing isVideo utility method visibility to public"} {"diff": " public class ShouldRunChangeSetFilter implements ChangeSetFilter { \n \n \n private String getPath ( RanChangeSet ranChangeSet ) { \n - return stripClasspathPrefix ( ranChangeSet . getChangeLog ( ) ) ; \n + return normalizePath ( ranChangeSet . getChangeLog ( ) ) ; \n } \n \n private String getPath ( ChangeSet changeSet ) { \n - return stripClasspathPrefix ( changeSet . getFilePath ( ) ) ; \n + return normalizePath ( changeSet . getFilePath ( ) ) ; \n } \n \n - private String stripClasspathPrefix ( String filePath ) { \n + protected String normalizePath ( String filePath ) { \n if ( ignoreClasspathPrefix ) { \n return filePath . replaceFirst ( STRING0 , STRING1 ) ; \n }", "msg_token": "renamed stripClasspathPrefix to normalizePath and made it protected"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n COMMENT \n COMMENT \n COMMENT \n + @ viewdebug.exportedproperty ( category = STRING0 ) \n public float getTextSize ( ) { \n return mTextPaint . getTextSize ( ) ; \n }", "msg_token": "Add TextView textSize as a ViewDebug for hierarchyviewer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class ElementFindingTest extends BaseTest { \n @ test \n public class ElementFindingTest extends BaseTest { \n assertEquals ( inputField . getText ( ) , active . getText ( ) ) ; \n assertTrue ( inputField . equals ( active ) ) ; \n } \n + \n + @ test \n + public void failToFindNonExistentElement ( ) { \n + WebDriver d = getDriver ( ) ; \n + \n + d . get ( STRING0 ) ; \n + try { \n + WebElement inputField = d . findElement ( By . cssSelector ( STRING1 ) ) ; \n + fail ( ) ; \n + } catch ( NoSuchElementException e ) { \n + SINGLE \n + } \n + } \n }", "msg_token": "Adding test for failing to find element"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class AbstractPollingReporter implements Reporter { \n COMMENT \n COMMENT \n public abstract class AbstractPollingReporter implements Reporter { \n } , period , period , unit ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void stop ( ) { \n executor . shutdown ( ) ; \n try {", "msg_token": "Added docs for AbstractPollingReporter"} {"diff": " public class SoundTriggerHelper implements SoundTrigger . StatusListener { \n if ( status != STATUS_OK ) { \n Slog . w ( TAG , STRING0 + model . getHandle ( ) ) ; \n } \n - model . clearState ( ) ; \n + model . setStopped ( ) ; \n + model . setRequested ( false ) ; \n + model . clearCallback ( ) ; \n + model . setRecognitionConfig ( null ) ; \n } \n } \n internalClearGlobalStateLocked ( ) ;", "msg_token": "Keep STH state in sync with HAL"} {"diff": " public class JBossStandaloneJtaExampleTest extends TestCase { \n for ( String mapping : mappings ) { \n cfg . addResource ( mapping , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; \n } \n + cfg . buildMappings ( ) ; \n Iterator iter = cfg . getClassMappings ( ) ; \n while ( iter . hasNext ( ) ) { \n PersistentClass clazz = ( PersistentClass ) iter . next ( ) ;", "msg_token": "Fix unit test by adding necessary Configuration buildMappings call otherwise cache strategy is not set correctly in entity"} {"diff": " class ScopedAliases implements HotSwapCompilerPass { \n } else if ( isVar || isFunctionDecl ) { \n boolean isHoisted = NodeUtil . isHoistedFunctionDeclaration ( parent ) ; \n Node grandparent = parent . getParent ( ) ; \n - Node value = v . getInitialValue ( ) != null ? \n - v . getInitialValue ( ) : \n - null ; \n + Node value = v . getInitialValue ( ) ; \n Node varNode = null ; \n \n SINGLE", "msg_token": "Remove useless hook"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TextEditor extends JTextPane implements Pageable , Printable { \n aMap = aMap . getParent ( ) ; \n } while ( aMap != null ) ; \n aMap = getActionMap ( ) ; \n - KeyStroke keyStroke = \n - KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , NUMBER0 , false ) ; \n InputMap iMap = getInputMap ( ) ; \n + KeyStroke keyStroke = KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , NUMBER0 , false ) ; \n + iMap . put ( keyStroke , STRING0 ) ; \n + keyStroke = KeyStroke . getKeyStroke ( KeyEvent . VK_BACK_SPACE , KeyEvent . SHIFT_MASK , false ) ; \n iMap . put ( keyStroke , STRING0 ) ; \n aMap . put ( STRING0 , action ) ;", "msg_token": "Shift Backspace does not delete character before caret"} {"diff": " public class CompilerTest extends GroovyTestCase { \n dir . mkdirs ( ) ; \n \n CompilerConfiguration config = new CompilerConfiguration ( ) ; \n + config . setTargetDirectory ( dir ) ; \n config . setDebug ( dumpClass ) ; \n \n compiler = new Compiler ( config ) ;", "msg_token": "test was using incorrect target directory noise in source tree"} {"diff": " public class SelectCategoriesActivity extends SherlockListActivity { \n } \n } \n } ) ; \n - \n + \n mSelectedCategories = new HashSet < String > ( ) ; \n \n Bundle extras = getIntent ( ) . getExtras ( ) ; \n public class SelectCategoriesActivity extends SherlockListActivity { \n if ( extras . containsKey ( STRING0 ) ) \n mSelectedCategories = ( HashSet < String > ) extras . getSerializable ( STRING0 ) ; \n } \n + if ( mSelectedCategories == null ) { \n + mSelectedCategories = new HashSet < String > ( ) ; \n + } \n \n populateOrFetchCategories ( ) ; \n }", "msg_token": "fix a NPE when a user doesn t have rights to post but create a local draft"} {"diff": " class DynamicConnectionStatus extends ConnectionStatus { \n } \n } \n \n - private synchronized void notifyOfOkNode ( DynamicNode node ) { \n + private void notifyOfOkNode ( DynamicNode node ) { \n synchronized ( this ) { \n if ( connectionStatus != null ) { \n return ; \n class DynamicConnectionStatus extends ConnectionStatus { \n private boolean isMongos ; \n } \n \n - private synchronized ConnectionStatus getConnectionStatus ( ) { \n + private ConnectionStatus getConnectionStatus ( ) { \n if ( connectionStatus == null ) { \n try { \n synchronized ( this ) {", "msg_token": "Removed over synchronized methods"} {"diff": " public class ImapStore extends Store \n \n List < ImapResponse > responses = \n executeSimpleCommand ( \n - String . format ( STRING0 , messageId ) ) ; \n + String . format ( STRING1 , messageId ) ) ; \n for ( ImapResponse response1 : responses ) \n { \n if ( response1 . mTag == null && response1 . get ( NUMBER0 ) . equals ( STRING2 )", "msg_token": "Changed IMAP command UID SEARCH HEADER MESSAGE ID s to UID SEARCH HEADER MESSAGE ID s"} {"diff": " public class BluetoothService extends IBluetooth . Stub { \n \n handlePanDeviceStateChange ( device , BluetoothPan . STATE_CONNECTING , \n BluetoothPan . LOCAL_PANU_ROLE ) ; \n - if ( connectPanDeviceNative ( objectPath , STRING0 , STRING1 ) ) { \n + if ( connectPanDeviceNative ( objectPath , STRING0 ) ) { \n log ( STRING2 ) ; \n return true ; \n } else {", "msg_token": "Fix parameter to Pan Device Call"} {"diff": " public class PluginController { \n this . pluginManager = pluginManager ; \n } \n \n - @ requestmapping ( value = STRING0 , method = RequestMethod . GET ) \n + @ requestmapping ( value = STRING0 , method = { RequestMethod . GET , RequestMethod . POST , RequestMethod . PUT , RequestMethod . DELETE } ) \n public ModelAndView handlePluginInteractRequest ( \n @ pathvariable String pluginId , \n @ pathvariable String requestName ,", "msg_token": "Go Server should delegate all HTTP verbs to plugin"} {"diff": " final class ALPNHackClientHelloExplorer { \n SINGLE \n return null ; \n } else if ( firstByte == NUMBER0 ) { SINGLE \n - if ( secondByte == NUMBER1 && thirdByte == NUMBER1 ) { \n - SINGLE \n + if ( secondByte == NUMBER1 && thirdByte >= NUMBER2 && thirdByte <= NUMBER1 ) { \n exploreTLSRecord ( input , \n firstByte , secondByte , thirdByte , alpnProtocols , null ) ; \n return alpnProtocols ; \n final class ALPNHackClientHelloExplorer { \n out . write ( helloMajorVersion & NUMBER3 ) ; \n out . write ( helloMinorVersion & NUMBER3 ) ; \n } \n + if ( helloMajorVersion != NUMBER1 && helloMinorVersion != NUMBER1 ) { \n + SINGLE \n + return ; \n + } \n + \n \n SINGLE \n for ( int i = NUMBER4 ; i < NUMBER5 ; ++ i ) { SINGLE", "msg_token": "Check the server hello version not the record layer version"} {"diff": " public class RouteService extends ServiceSupport { \n \n SINGLE \n \n - for ( Route route : routes ) { \n - List < Service > services = route . getServicesForRoute ( ) ; \n - for ( Service service : services ) { \n - stopChildService ( service ) ; \n - } \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n protected LifecycleStrategy getLifecycleStrategy ( ) {", "msg_token": "Fixed a bug where we potential start some consumers again when stopping"} {"diff": " public class LightweightThread implements Serializable { \n COMMENT \n public static LightweightThread currentLightweightThread ( ) { \n try { \n - return LightweightThreadForkJoinTask . getCurrent ( ) . getLightweightThread ( ) ; \n + final LightweightThreadForkJoinTask currentFJTask = LightweightThreadForkJoinTask . getCurrent ( ) ; \n + if ( currentFJTask == null ) \n + return null ; \n + return currentFJTask . getLightweightThread ( ) ; \n } catch ( ClassCastException e ) { \n return null ; \n }", "msg_token": "fixed curentLWT NPE"} {"diff": " public class GELFClientHandlerThread extends Thread { \n Log . crit ( STRING0 + e . toString ( ) ) ; \n } catch ( jave . io . EOFException e ) { \n Log . crit ( STRING1 + e . toString ( ) ) ; \n + } catch ( java . net . SocketException e ) { \n + Log . crit ( STRING2 + e . toString ( ) ) ; \n } \n }", "msg_token": "added another exception which has to be caught in the GELF handler thread"} {"diff": " abstract class AbstractGenerator implements Generator { \n boolean generateJPAAnnotations = false ; \n boolean generateValidationAnnotations = false ; \n \n - GeneratorStrategyWrapper strategy ; \n + protected GeneratorStrategyWrapper strategy ; \n \n @ override \n public void setStrategy ( GeneratorStrategy strategy ) {", "msg_token": "Allow extended classes to access the strategy"} {"diff": " public class BytesContainer { \n offset += read ; \n } \n \n + public byte [ ] fitBytes ( ) { \n + byte [ ] fitted = new byte [ offset ] ; \n + System . arraycopy ( bytes , NUMBER0 , fitted , NUMBER0 , offset ) ; \n + return fitted ; \n + } \n + \n } \n public class ORecordSerializerBinary implements ORecordSerializer { \n int pos = container . alloc ( NUMBER1 ) ; \n container . bytes [ pos ] = LAST_RECORD_VERSION ; \n serializerByVersion [ LAST_RECORD_VERSION ] . serialize ( ( ODocument ) iSource , container ) ; \n - return container . bytes ; \n + \n + return container . fitBytes ( ) ; \n } \n \n }", "msg_token": "removed empty bytes from the serliazation bytes resutl"} {"diff": " public abstract class PythonRemoteInterpreterManager { \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public abstract ProcessOutput runRemoteProcess ( @ nullable Project project , \n RemoteSdkCredentials data , \n @ notnull PyRemotePathMapper pathMapper ,", "msg_token": "Add Deprecated to runRemoteProcess interface and implementation methods"} {"diff": " class PowerManagerService extends IPowerManager . Stub \n mWakeLockState = mLocks . gatherState ( ) ; \n SINGLE \n if ( ( wl . flags & PowerManager . ON_AFTER_RELEASE ) != NUMBER0 ) { \n - userActivity ( SystemClock . uptimeMillis ( ) , false ) ; \n + userActivity ( SystemClock . uptimeMillis ( ) , - NUMBER1 , false , OTHER_EVENT , false ) ; \n } \n setPowerState ( mWakeLockState | mUserState ) ; \n }", "msg_token": "Use the private version of userActivity"} {"diff": " public class MustacheLetterTest extends CamelTestSupport { \n public void testMustacheLetter ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . expectedBodiesReceived ( STRING1 \n - + STRING2 ) ; \n + mock . message ( NUMBER1 ) . body ( ) . contains ( STRING3 ) ; \n \n template . send ( STRING4 , createLetter ( ) ) ;", "msg_token": "Fixed test on windows"} {"diff": " public class Config extends HashMap < String , Object > { \n public static final String STORM_META_SERIALIZATION_DELEGATE = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ isstringlist", "msg_token": "Fixing java docs"} {"diff": " public class MultiDexHelper { \n if ( extractedFile . isFile ( ) ) { \n sourcePaths . add ( extractedFile . getAbsolutePath ( ) ) ; \n SINGLE \n - } else { \n - throw new IOException ( STRING0 + \n - extractedFile . getPath ( ) + STRING1 ) ; \n } \n }", "msg_token": "Fixing migration to single dex after multidex"} {"diff": " public interface ModuleConfigManager { \n String getStringVariable ( String moduleName , String propertyName , String defaultValue ) ; \n int getIntVariable ( String moduleName , String propertyName , int defaultValue ) ; \n float getFloatVariable ( String moduleName , String propertyName , float defaultValue ) ; \n + boolean getBooleanVariable ( String moduleName , String propertyName , boolean defaultValue ) ; \n } \n public class ModuleConfigSystem extends BaseComponentSystem implements ModuleCon \n return getVariable ( moduleName , propertyName , Float : : parseFloat , defaultValue ) ; \n } \n \n + @ override \n + public boolean getBooleanVariable ( String moduleName , String propertyName , boolean defaultValue ) { \n + return getVariable ( moduleName , propertyName , Boolean : : parseBoolean , defaultValue ) ; \n + } \n + \n private < T > T getVariable ( String moduleName , String propertyName , Function < String , T > extractFunction , T defaultValue ) { \n Map < String , String > moduleProperties = propertiesPerModule . get ( moduleName ) ; \n if ( moduleProperties == null ) {", "msg_token": "Added support for boolean module config variables"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fix a merge error"} {"diff": " public class ServiceState implements Parcelable { \n return TelephonyManager . NETWORK_TYPE_LTE ; \n case ServiceState . RIL_RADIO_TECHNOLOGY_HSPAP : \n return TelephonyManager . NETWORK_TYPE_HSPAP ; \n + case ServiceState . RIL_RADIO_TECHNOLOGY_GSM : \n + return TelephonyManager . NETWORK_TYPE_GSM ; \n default : \n return TelephonyManager . NETWORK_TYPE_UNKNOWN ; \n } \n public class TelephonyManager { \n public static final int NETWORK_TYPE_EHRPD = NUMBER0 ; \n COMMENT \n public static final int NETWORK_TYPE_HSPAP = NUMBER1 ; \n + COMMENT \n + public static final int NETWORK_TYPE_GSM = NUMBER2 ; \n \n COMMENT \n COMMENT \n public class TelephonyManager { \n public static int getNetworkClass ( int networkType ) { \n switch ( networkType ) { \n case NETWORK_TYPE_GPRS : \n + case NETWORK_TYPE_GSM : \n case NETWORK_TYPE_EDGE : \n case NETWORK_TYPE_CDMA : \n case NETWORK_TYPE_1xRTT : \n public class TelephonyManager { \n return STRING0 ; \n case NETWORK_TYPE_HSPAP : \n return STRING1 ; \n + case NETWORK_TYPE_GSM : \n + return STRING2 ; \n default : \n return STRING3 ; \n }", "msg_token": "Add support for NETWORK_TYPE_GSM"} {"diff": " public class UpdateIntegrationTest extends SQLTransportIntegrationTest { \n execute ( STRING0 , new Object [ ] { map } ) ; \n assertEquals ( NUMBER0 , response . rowCount ( ) ) ; \n refresh ( ) ; \n + waitNoPendingTasksOnAll ( ) ; \n \n Map < String , Object > new_map = new HashMap < > ( ) ; \n new_map . put ( STRING1 , NUMBER0 ) ;", "msg_token": "fix flaky dynamic object update test"} {"diff": " public abstract class Request < T > implements Comparable < Request < T > > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public Response . ErrorListener getErrorListener ( ) { \n + return mErrorListener ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public int getTrafficStatsTag ( ) {", "msg_token": "Add a public accessor for a Request s ErrorListener"} {"diff": " public class TestNonBlockingAPI extends TomcatBaseTest { \n @ override \n public void onWritePossible ( ) throws IOException { \n long start = System . currentTimeMillis ( ) ; \n - long end = System . currentTimeMillis ( ) ; \n int before = written ; \n while ( written < WRITE_SIZE && \n ctx . getResponse ( ) . getOutputStream ( ) . isReady ( ) ) { \n public class TestNonBlockingAPI extends TomcatBaseTest { \n SINGLE \n ctx . getResponse ( ) . flushBuffer ( ) ; \n } \n - log . info ( STRING0 + ( end - start ) + \n + log . info ( STRING1 + ( System . currentTimeMillis ( ) - start ) + \n STRING2 + before + STRING3 + written ) ; \n SINGLE \n if ( ctx . getResponse ( ) . getOutputStream ( ) . isReady ( ) &&", "msg_token": "Fix time in test oops"} {"diff": " public abstract class BaseSprite extends BaseRectangle { \n return this . mTextureRegion ; \n } \n \n + public void setTextureRegionFlippedHorizontal ( final boolean pFlippedHorizontal ) { \n + this . mTextureRegion . setFlippedHorizontal ( pFlippedHorizontal ) ; \n + } \n + \n + public void setTextureRegionFlippedVertical ( final boolean pFlippedVertical ) { \n + this . mTextureRegion . setFlippedVertical ( pFlippedVertical ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added convenience methods in BaseSprite to flip its TextureRegion horizontally or vertically"} {"diff": " public class MapInfoLayer extends OsmandMapLayer { \n themeId = calcThemeId ; \n boolean textBold = following ; \n int textColor = nightMode ? view . getResources ( ) . getColor ( R . color . widgettext_night ) : Color . BLACK ; \n + SINGLE \n int textShadowColor = transparent && ! nightMode ? Color . WHITE : NUMBER0 ; \n int boxTop ; \n int boxTopStack ; \n public class RulerControl extends MapControls { \n \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n \n ShadowText cacheRulerText = null ; \n double cacheRulerZoom = NUMBER1 ;", "msg_token": "add comments for night view readability fixes"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public abstract class AbstractArgumentExtractor implements \n - ArgumentExtractor { \n + public abstract class AbstractArgumentExtractor implements ArgumentExtractor { \n \n - private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + protected final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; \n \n + @ override \n public final WebApplicationService extractService ( final HttpServletRequest request ) { \n final WebApplicationService service = extractServiceInternal ( request ) ;", "msg_token": "Making the logger instance available to extensions"} {"diff": " public class Main extends Application { \n SINGLE \n if ( params == RegTestParams . get ( ) ) { \n bitcoin . connectToLocalHost ( ) ; SINGLE \n - } else if ( params == MainNetParams . get ( ) ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - bitcoin . setCheckpoints ( getClass ( ) . getResourceAsStream ( STRING0 ) ) ; \n } else if ( params == TestNet3Params . get ( ) ) { \n - bitcoin . setCheckpoints ( getClass ( ) . getResourceAsStream ( STRING1 ) ) ; \n SINGLE \n bitcoin . useTor ( ) ; \n }", "msg_token": "Fix WalletTemplate now that checkpoints are included"} {"diff": " public class ObjcProtoLibrary implements RuleConfiguredTargetFactory { \n actionsBuilder \n . registerCompileAndArchiveActions ( \n compilationArtifacts , common . getObjcProvider ( ) , OptionsProvider . DEFAULT , \n - COMMENT \n + ruleContext . getConfiguration ( ) . isCodeCoverageEnabled ( ) ) ; \n actionsBuilder . registerXcodegenActions ( \n new ObjcRuleClasses . Tools ( ruleContext ) , \n ruleContext . getImplicitOutputArtifact ( XcodeSupport . PBXPROJ ) ,", "msg_token": "Compiling protos should generate coverage files"} {"diff": " public interface SecurityLogger extends BasicLogger { \n COMMENT \n COMMENT \n COMMENT \n - @ message ( id = NONE , value = STRING0 ) \n + @ message ( id = NUMBER0 , value = STRING0 ) \n IllegalArgumentException incorrectKeystoreParameters ( final String keystoreName ) ; \n \n }", "msg_token": "Revise NONE id in previous fix which should only be used for vault logging messages"} {"diff": " public class ContextMenuAdapter { \n tv . setCompoundDrawables ( imageId , null , null , null ) ; \n tv . setCompoundDrawablePadding ( paddingInPixels ) ; \n } else { \n - Drawable drawable = ContextCompat . getDrawable ( getContext ( ) , item . getLightIcon ( ) ) ; \n - DrawableCompat . setTint ( drawable , item . getThemedColor ( getContext ( ) ) ) ; \n - if ( drawable != null ) { \n + if ( item . getLightIcon ( ) != - NUMBER0 ) { \n + Drawable drawable = ContextCompat . getDrawable ( getContext ( ) , item . getLightIcon ( ) ) ; \n + DrawableCompat . setTint ( drawable , item . getThemedColor ( getContext ( ) ) ) ; \n ( ( AppCompatImageView ) convertView . findViewById ( R . id . icon ) ) . setImageDrawable ( drawable ) ; \n convertView . findViewById ( R . id . icon ) . setVisibility ( View . VISIBLE ) ; \n } else if ( convertView . findViewById ( R . id . icon ) != null ) {", "msg_token": "Fixed introduced crash"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class ActionBarSherlock { \n protected static final String TAG = STRING0 ; \n - protected static final boolean DEBUG = true ; \n + protected static final boolean DEBUG = false ; \n \n private static final Class < ? > [ ] CONSTRUCTOR_ARGS = new Class [ ] { Activity . class , int . class } ; \n private static final HashMap < Implementation , Class < ? extends ActionBarSherlock > > IMPLEMENTATIONS = \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class SherlockFragmentActivity extends FragmentActivity implements OnCreatePanelMenuListener , OnPreparePanelListener , OnMenuItemSelectedListener , OnActionModeStartedListener , OnActionModeFinishedListener { \n - static final boolean DEBUG = true ; \n + static final boolean DEBUG = false ; \n private static final String TAG = STRING1 ; \n \n private ActionBarSherlock mSherlock ;", "msg_token": "Turn off debug logging"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestPullUpdates \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void makeSureUpdatePullerGetsGoingAfterMasterSwitch ( ) throws Throwable \n { \n File root = TargetDirectory . forTest ( getClass ( ) ) . directory ( STRING1 ) ;", "msg_token": "Ignores TestPullUpdates test as it s being fragile"} {"diff": " public class RequestCounter { \n SINGLE \n latencyMax , valueBytesMax , keyBytesMax , getAllKeysCountMax , \n SINGLE \n - getAllKeysCountSampledTotal , \n + getAllKeysCountSampledTotal , emptyResponseKeysSampledTotal , \n SINGLE \n - requestSampledCount , emptyResponseKeysSampledCount , \n + requestSampledCount , \n SINGLE \n requestAllTimeCount , \n SINGLE \n public class RequestCounter { \n String emptyResponseKeysSensorName = name + STRING0 ; \n this . emptyResponseKeysSensor = \n metricsRepository . sensor ( emptyResponseKeysSensorName , metricConfig , emptyResponseKeysParentSensors ) ; \n - this . emptyResponseKeysSampledCount = \n - this . emptyResponseKeysSensor . add ( emptyResponseKeysSensorName + STRING1 , new SampledCount ( ) ) ; \n + this . emptyResponseKeysSampledTotal = \n + this . emptyResponseKeysSensor . add ( emptyResponseKeysSensorName + STRING2 , new SampledTotal ( ) ) ; \n \n SINGLE \n \n public class RequestCounter { \n COMMENT \n COMMENT \n public long getNumEmptyResponses ( ) { \n - return ( long ) emptyResponseKeysSampledCount . value ( ) ; \n + return ( long ) emptyResponseKeysSampledTotal . value ( ) ; \n } \n \n COMMENT", "msg_token": "Fixed a problem with RequestCounter getNumEmptyResponses"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class DefaultSharedByteArrayParams { \n SINGLE \n - private static final int DEFAULT_MAX_BYTE_ARRAY_SIZE = NUMBER0 * ByteConstants . MB ; \n + public static final int DEFAULT_MAX_BYTE_ARRAY_SIZE = NUMBER0 * ByteConstants . MB ; \n SINGLE \n private static final int DEFAULT_MIN_BYTE_ARRAY_SIZE = NUMBER1 * ByteConstants . KB ; \n \n private DefaultSharedByteArrayParams ( ) { \n } \n \n + public static SparseIntArray generateBuckets ( int min , int max ) { \n + SparseIntArray buckets = new SparseIntArray ( ) ; \n + for ( int i = min ; i <= max ; i *= NUMBER2 ) { \n + buckets . put ( i , NUMBER3 ) ; \n + } \n + return buckets ; \n + } \n + \n public static PoolParams get ( ) { \n return new PoolParams ( \n DEFAULT_MAX_BYTE_ARRAY_SIZE , \n DEFAULT_MAX_BYTE_ARRAY_SIZE , \n - null , \n + generateBuckets ( DEFAULT_MIN_BYTE_ARRAY_SIZE , DEFAULT_MAX_BYTE_ARRAY_SIZE ) , \n DEFAULT_MIN_BYTE_ARRAY_SIZE , \n DEFAULT_MAX_BYTE_ARRAY_SIZE \n ) ;", "msg_token": "Add buckets to the byte array params"} {"diff": " public class AsyncHttpServer { \n response . end ( ) ; \n return ; \n } \n - callback . onConnected ( new WebSocketImpl ( request , response ) , request . getHeaders ( ) ) ; \n + callback . onConnected ( createWebSocket ( request , response ) , request . getHeaders ( ) ) ; \n } \n } ) ; \n } \n \n + protected WebSocket createWebSocket ( final AsyncHttpServerRequest request , final AsyncHttpServerResponse response ) { \n + return new WebSocketImpl ( request , response ) ; \n + } \n + \n public void get ( String regex , HttpServerRequestCallback callback ) { \n addAction ( AsyncHttpGet . METHOD , regex , callback ) ; \n }", "msg_token": "Added protected API for WebSocket creation"} {"diff": " public class SASLAuthentication { \n \n private void sendChallenge ( byte [ ] challenge ) { \n StringBuilder reply = new StringBuilder ( NUMBER0 ) ; \n + String challenge_b64 = StringUtils . encodeBase64 ( challenge ) . trim ( ) ; \n + if ( STRING0 . equals ( challenge_b64 ) ) { \n + challenge_b64 = STRING1 ; SINGLE \n + } \n reply . append ( \n STRING2 ) ; \n - reply . append ( StringUtils . encodeBase64 ( challenge ) . trim ( ) ) ; \n + reply . append ( challenge_b64 ) ; \n reply . append ( STRING3 ) ; \n connection . deliverRawText ( reply . toString ( ) ) ; \n }", "msg_token": "Fixed padding of null responses"} {"diff": " public class MuzeiWatchFace extends CanvasWatchFaceService { \n \n @ override \n public void onPeekCardPositionUpdate ( Rect bounds ) { \n - super . onPeekCardPositionUpdate ( bounds ) ; \n if ( Log . isLoggable ( TAG , Log . DEBUG ) ) { \n Log . d ( TAG , STRING0 + bounds ) ; \n }", "msg_token": "Remove double call to super onPeekCardPositionUpdate from watch face"} {"diff": " public class LibraryImpl implements LibraryEx . ModifiableModelEx , LibraryEx { \n for ( VirtualFile file : myRoots . get ( rootType ) . getFiles ( ) ) { \n if ( file . isDirectory ( ) ) { \n final Boolean expandRecursively = myJarDirectories . get ( file . getUrl ( ) ) ; \n - if ( expandRecursively != null ) { \n + if ( Boolean . TRUE . equals ( expandRecursively ) ) { \n addChildren ( file , expanded , expandRecursively . booleanValue ( ) ) ; \n continue ; \n }", "msg_token": "corrected check for recursiveness"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AttributeDefinition { \n if ( operationObject . has ( name ) ) { \n node . set ( operationObject . get ( name ) ) ; \n } \n + if ( isAllowExpression ( ) && node . getType ( ) == ModelType . STRING ) { \n + node = ParseUtils . parsePossibleExpression ( node . asString ( ) ) ; \n + } \n if ( ! node . isDefined ( ) && defaultValue . isDefined ( ) ) { \n validator . validateParameter ( name , defaultValue ) ; \n } else {", "msg_token": "Handle string expressions in operation values"} {"diff": " public class OtrAndroidKeyManagerImpl extends IOtrKeyManager . Stub implements Otr \n return ; \n \n FileInputStream fis = null ; \n - \n + OpenSSLPBEInputStream encIS = null ; \n try { \n \n fis = new FileInputStream ( mStoreFile ) ; \n \n \n SINGLE \n - OpenSSLPBEInputStream encIS = new OpenSSLPBEInputStream ( fis , STORE_ALGORITHM , NUMBER0 , password . toCharArray ( ) ) ; \n + encIS = new OpenSSLPBEInputStream ( fis , STORE_ALGORITHM , NUMBER0 , password . toCharArray ( ) ) ; \n \n mProperties . load ( encIS ) ; \n \n } catch ( FileNotFoundException fnfe ) { \n OtrDebugLogger . log ( STRING0 ) ; \n mStoreFile . getParentFile ( ) . mkdirs ( ) ; \n - \n - \n - } \n + } finally { \n + encIS . close ( ) ; \n + fis . close ( ) ; \n + } \n } \n \n public void setProperty ( String id , byte [ ] value ) {", "msg_token": "Fix file leak in key manager"} {"diff": " public class ZRTPTransformEngine \n private short senderZrtpSeqNo = NUMBER0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - private long sendPacketCount = NUMBER0 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ZRTPTransformEngine \n } \n \n SINGLE \n - sendPacketCount ++ ; \n if ( srtpOutTransformer == null ) \n { \n return pkt ;", "msg_token": "Remove unused packet counter field"} {"diff": " public class ComputationStepRegistry implements ServerComponent { \n public List < ComputationStep > steps ( ) { \n List < ComputationStep > steps = Lists . newArrayList ( ) ; \n SINGLE \n - steps . add ( pico . getComponentByType ( DigestReportStep . class ) ) ; \n + SINGLE \n + SINGLE \n SINGLE \n steps . add ( pico . getComponentByType ( SynchronizeProjectPermissionsStep . class ) ) ; \n SINGLE \n public class ComputationStepRegistryMediumTest { \n @ test \n public void steps_returned_in_the_right_order ( ) throws Exception { \n List < Class < ? extends ComputationStep > > wishStepsClasses = Lists . newArrayList ( \n - DigestReportStep . class , \n + SINGLE \n SynchronizeProjectPermissionsStep . class , \n SwitchSnapshotStep . class , \n InvalidatePreviewCacheStep . class ,", "msg_token": "Remove DigestReportStep from Computation steps as it throw an NPE in some cases"} {"diff": " public class Log { \n COMMENT \n COMMENT \n public static final int SEVERITY_EMERG = NUMBER0 ; \n + \n + private Log ( ) { } \n \n COMMENT \n COMMENT \n public class Main { \n COMMENT \n COMMENT \n public static Properties masterConfig = null ; \n - \n + \n + private Main ( ) { } \n + \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n public class Tools { \n \n + private Tools ( ) { } \n + \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n public class ReceiveHookManager { \n + \n + private ReceiveHookManager ( ) { } \n + \n COMMENT \n COMMENT \n COMMENT \n public class GELF { \n COMMENT \n public static final String HEADER_TYPE_CHUNKED_GELF = STRING0 ; \n \n + private GELF ( ) { } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "hiding constructors for utility classes"} {"diff": " public class GradleDistributionExecuter extends AbstractGradleExecuter implement \n TestFile tmpDir = getTmpDir ( ) ; \n if ( tmpDir != null ) { \n tmpDir . deleteDir ( ) . createDir ( ) ; \n - forkingGradleExecuter . addGradleOpts ( String . format ( STRING0 , tmpDir ) ) ; \n + forkingGradleExecuter . addGradleOpts ( String . format ( STRING1 , tmpDir ) ) ; \n } \n returnedExecuter = forkingGradleExecuter ; \n }", "msg_token": "Quote the tmp dir arg in a way that works for winblows and nix"} {"diff": " public class IndexVectorMapCreator extends AbstractIndexPartCreator { \n \n private Node checkOuterWaysEncloseInnerWays ( List < List < Way > > completedRings , Map < Entity , String > entities ) { \n List < List < Way > > innerWays = new ArrayList < List < Way > > ( ) ; \n - Boundary outerBoundary = new Boundary ( ) ; \n + Boundary outerBoundary = new Boundary ( true ) ; \n Node toReturn = null ; \n for ( List < Way > ring : completedRings ) { \n boolean innerType = STRING0 . equals ( entities . get ( ring . get ( NUMBER0 ) ) ) ; SINGLE", "msg_token": "Fix compilation error"} {"diff": " public class StageStateMachine \n public synchronized boolean transitionToScheduled ( ) \n { \n schedulingComplete . compareAndSet ( null , DateTime . now ( ) ) ; \n - return stageState . setIf ( SCHEDULED , currentState - > currentState == PLANNED || currentState == SCHEDULING ) ; \n + return stageState . setIf ( SCHEDULED , currentState - > currentState == PLANNED || currentState == SCHEDULING || currentState == SCHEDULING_SPLITS ) ; \n } \n \n public boolean transitionToRunning ( )", "msg_token": "Allow Stage state transition from SCHEDULING_SPLITS to SCHEDULED"} {"diff": " public class SimpleDiffViewer extends TwosideTextDiffViewer { \n \n private class MyToggleExpandByDefaultAction extends ToggleExpandByDefaultAction { \n @ override \n - public boolean isEnabled ( ) { \n - return myFoldingModel != null ; \n - } \n - \n - @ override \n protected void expandAll ( boolean expand ) { \n - assert myFoldingModel != null ; \n - myFoldingModel . expandAll ( expand ) ; \n + if ( myFoldingModel != null ) myFoldingModel . expandAll ( expand ) ; \n } \n } \n \n public abstract class TextDiffViewerBase extends ListenerDiffViewerBase { \n } \n \n @ override \n + public boolean isVisible ( ) { \n + return getTextSettings ( ) . getContextRange ( ) != - NUMBER0 ; \n + } \n + \n + @ override \n public boolean isSelected ( AnActionEvent e ) { \n return ! getTextSettings ( ) . isExpandByDefault ( ) ; \n }", "msg_token": "do not disable ToggleExpand action if there are no folding model"} {"diff": " public class FluxParser { \n String propertiesFile , boolean envSub ) throws IOException { \n Yaml yaml = yaml ( ) ; \n InputStream in = FluxParser . class . getResourceAsStream ( resource ) ; \n + if ( in == null ) { \n + LOG . error ( STRING0 + resource ) ; \n + System . exit ( NUMBER0 ) ; \n + } \n TopologyDef topology = loadYaml ( yaml , in , propertiesFile , envSub ) ; \n in . close ( ) ; \n if ( dumpYaml ) {", "msg_token": "when a resource can t be found log an error and exit rather than throw NPE"} {"diff": " public class SearchCoreFactory { \n SearchResult res = new SearchResult ( phrase ) ; \n res . localeName = pt . getTranslation ( ) ; \n res . object = pt ; \n - res . priority = SEARCH_AMENITY_TYPE_PRIORITY + ( pt instanceof PoiCategory ? FLOAT0 : FLOAT1 ) ; \n + res . priority = SEARCH_AMENITY_TYPE_PRIORITY ; \n res . priorityDistance = NUMBER0 ; \n res . objectType = ObjectType . POI_TYPE ; \n resultMatcher . publish ( res ) ;", "msg_token": "Fix sorting of categories"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReachTest extends TestCase { \n List < RoutingRequest > optionlist = Arrays . asList ( options ) ; \n SINGLE \n SINGLE \n - graph . save ( new File ( STRING0 ) ) ; \n + graph . save ( File . createTempFile ( STRING1 , STRING2 ) ) ; \n } \n \n void makeGraph ( Graph graph ) {", "msg_token": "give reach test graph a unique name and OS independent location"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed missing opening quotes for href in javadoc"} {"diff": " import NAMESPACE ; \n private void maybeContinueLoading ( ) { \n long nextLoadPositionUs = loadingPeriod . mediaPeriod . getNextLoadPositionUs ( ) ; \n if ( nextLoadPositionUs != C . END_OF_SOURCE_US ) { \n - long positionUs = internalPositionUs - loadingPeriod . offsetUs ; \n + long positionUs = internalPositionUs - loadingPeriod . offsetUs + loadingPeriod . startPositionUs ; \n long bufferedDurationUs = nextLoadPositionUs - positionUs ; \n boolean continueLoading = loadControl . shouldContinueLoading ( bufferedDurationUs ) ; \n setIsLoading ( continueLoading ) ; \n public final class ConcatenatingMediaSource implements MediaSource { \n @ override \n public long getWindowOffsetInFirstPeriodUs ( int windowIndex ) { \n int sourceIndex = getSourceIndexForWindow ( windowIndex ) ; \n - int firstWindowIndexInSource = getFirstPeriodIndexInSource ( sourceIndex ) ; \n + int firstWindowIndexInSource = getFirstWindowIndexInSource ( sourceIndex ) ; \n return timelines [ sourceIndex ] . getWindowOffsetInFirstPeriodUs ( \n windowIndex - firstWindowIndexInSource ) ; \n }", "msg_token": "Fix VOD to live transitions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoMultiplePackagesInspection extends GoInspectionBase { \n \n @ override \n protected void checkFile ( @ notnull GoFile file , @ notnull ProblemsHolder problemsHolder ) { \n - if ( ! GoUtil . allowed ( file ) ) return ; \n + if ( GoUtil . directoryToIgnore ( file . getName ( ) ) || ( ( ScratchFileType ) ScratchFileType . INSTANCE ) . isMyFileType ( file . getVirtualFile ( ) ) ) return ; \n GoPackageClause packageClause = file . getPackage ( ) ; \n if ( packageClause != null ) { \n String packageName = file . getPackageName ( ) ;", "msg_token": "Do not inspect scratch files for multiple packages better ignore check"} {"diff": " public abstract class OAbstractPaginatedStorage extends OStorageAbstract impleme \n \n if ( checkPointRecord != null ) { \n OLogManager . instance ( ) . warn ( this , STRING0 ) ; \n - \n + return restoreFromCheckPoint ( ( OAbstractCheckPointStartRecord ) checkPointRecord ) ; \n } else { \n OLogManager . instance ( ) . warn ( this , STRING1 ) ; \n return restoreFromBegging ( ) ;", "msg_token": "Fixed bug when previous checkpoint is not accounted"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class BluetoothInstrumentation extends Instrumentation { \n public class BluetoothInstrumentation extends Instrumentation { \n getAddress ( ) ; \n } else if ( STRING0 . equals ( command ) ) { \n getBondedDevices ( ) ; \n + } else if ( STRING1 . equals ( command ) ) { \n + enableBtSnoop ( ) ; \n } else { \n finish ( null ) ; \n } \n public class BluetoothInstrumentation extends Instrumentation { \n finish ( mSuccessResult ) ; \n } \n \n + public void enableBtSnoop ( ) { \n + Assert . assertTrue ( STRING2 , \n + getBluetoothAdapter ( ) . configHciSnoopLog ( true ) ) ; \n + finish ( mSuccessResult ) ; \n + } \n + \n public void finish ( Bundle result ) { \n if ( result == null ) { \n result = new Bundle ( ) ;", "msg_token": "add command to enable bt snoop log"} {"diff": " public abstract class ODatabasePoolAbstract < DB extends ODatabase > extends OAdapt \n \n if ( pool != null ) { \n for ( DB db : pool . getResources ( ) ) { \n - if ( db . getStorage ( ) . getStatus ( ) == OStorage . STATUS . OPEN ) \n + final OStorage stg = db . getStorage ( ) ; \n + if ( stg != null && stg . getStatus ( ) == OStorage . STATUS . OPEN ) \n try { \n OLogManager . instance ( ) . debug ( this , STRING0 , db . getName ( ) ) ; \n ( ( ODatabasePooled ) db ) . forceClose ( ) ;", "msg_token": "fixed graph closing on MT env"} {"diff": " public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc \n ( ( AsynchronousProcessor ) cometSupport ) . shutdown ( ) ; \n } \n \n + SINGLE \n + BroadcasterConfig bc = null ; \n + for ( Entry < String , AtmosphereHandlerWrapper > entry : atmosphereHandlers . entrySet ( ) ) { \n + AtmosphereHandlerWrapper handlerWrapper = entry . getValue ( ) ; \n + handlerWrapper . atmosphereHandler . destroy ( ) ; \n + } \n + \n BroadcasterFactory factory = BroadcasterFactory . getDefault ( ) ; \n if ( factory != null ) { \n factory . destroy ( ) ;", "msg_token": "Re add missing code"} {"diff": " public abstract class AbsActionBarView extends ViewGroup { \n \n @ override \n public void setVisibility ( int visibility ) { \n - if ( mVisibilityAnim != null ) { \n - mVisibilityAnim . end ( ) ; \n + if ( visibility != getVisibility ( ) ) { \n + if ( mVisibilityAnim != null ) { \n + mVisibilityAnim . end ( ) ; \n + } \n + super . setVisibility ( visibility ) ; \n } \n - super . setVisibility ( visibility ) ; \n } \n \n public boolean showOverflowMenu ( ) {", "msg_token": "Fix stack overflow during animation of action bar"} {"diff": " public class TransactionSignature extends ECKey . ECDSASignature { \n COMMENT \n COMMENT \n public static TransactionSignature dummy ( ) { \n - BigInteger val = BigInteger . ONE . shiftLeft ( NUMBER0 * NUMBER1 ) ; SINGLE \n + BigInteger val = BigInteger . ONE . shiftLeft ( NUMBER0 * NUMBER1 ) ; SINGLE \n return new TransactionSignature ( val , val ) ; \n }", "msg_token": "Fix a bad comment in TransactionSignature"} {"diff": " public abstract class AbstractJPATest { \n \n @ test \n @ nobatoojpa \n - @ noeclipselink \n public void Treat ( ) { \n QDomesticCat domesticCat = QDomesticCat . domesticCat ; \n query ( ) . from ( cat )", "msg_token": "Enable Treat test for EclipseLink"} {"diff": " public class Lists { \n return Collections . isNullOrEmpty ( list ) ? None . < T > instance ( ) : new Some < T > ( list . get ( list \n . size ( ) - NUMBER0 ) ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static < T > T [ ] toArray ( List < T > list ) { \n + @ suppresswarnings ( STRING0 ) \n + final T [ ] array = ( T [ ] ) new Object [ list . size ( ) ] ; \n + return list . toArray ( array ) ; \n + } \n \n }", "msg_token": "added toArray method"} {"diff": " public class PacketExtensionFilter implements PacketFilter { \n this ( null , namespace ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public PacketExtensionFilter ( PacketExtension packetExtension ) { \n this ( packetExtension . getElementName ( ) , packetExtension . getNamespace ( ) ) ; \n } \n \n - public PacketExtensionFilter ( Class < ? extends PacketExtension > packetExtensionClass ) throws InstantiationException , IllegalAccessException { \n - this ( packetExtensionClass . newInstance ( ) ) ; \n - } \n - \n public boolean accept ( Packet packet ) { \n return packet . hasExtension ( elementName , namespace ) ; \n }", "msg_token": "Remove PacketExtensionFilter Class constructor"} {"diff": " class PackageManagerService extends IPackageManager . Stub { \n Log . v ( TAG , STRING0 + packageName + STRING1 + path ) ; \n PackageSetting pkgSetting ; \n final int uid = Binder . getCallingUid ( ) ; \n - boolean allowedByPermission = false ; \n + final int permission = mContext . checkCallingPermission ( \n + android . Manifest . permission . INSTALL_PACKAGES ) ; \n + final boolean allowedByPermission = ( permission == PackageManager . PERMISSION_GRANTED ) ; \n synchronized ( mPackages ) { \n pkgSetting = mSettings . mPackages . get ( packageName ) ; \n if ( pkgSetting == null ) {", "msg_token": "Allow things that can install packages to set Obb paths"} {"diff": " public class CreateColumnFamilyStatement extends SchemaAlteringStatement \n { \n AbstractType type = columns . get ( t ) ; \n if ( type == null ) \n - throw new InvalidRequestException ( String . format ( STRING0 , t ) ) ; \n + throw new InvalidRequestException ( String . format ( STRING1 , t ) ) ; \n columns . remove ( t ) ; \n Boolean isReversed = definedOrdering . get ( t ) ; \n return isReversed != null && isReversed ? ReversedType . getInstance ( type ) : type ;", "msg_token": "fix message spelling"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ControlledRandom extends Random { \n public ControlledRandom ( ) { \n - super ( ) ; \n + super ( NUMBER0 ) ; \n } \n COMMENT \n COMMENT", "msg_token": "Fixing failed tests"} {"diff": " public final class DescriptorToDeclarationUtil { \n } \n \n @ nullable \n - public static PsiElement getDeclaration ( JetFile file , DeclarationDescriptor descriptor , BindingContext bindingContext ) { \n + public static PsiElement getDeclaration ( \n + @ notnull JetFile file , \n + @ notnull DeclarationDescriptor descriptor , \n + @ notnull BindingContext bindingContext \n + ) { \n return getDeclaration ( file . getProject ( ) , descriptor , bindingContext ) ; \n } \n \n @ nullable \n - public static PsiElement getDeclaration ( Project project , DeclarationDescriptor descriptor , BindingContext bindingContext ) { \n + public static PsiElement getDeclaration ( \n + @ notnull Project project , \n + @ notnull DeclarationDescriptor descriptor , \n + @ notnull BindingContext bindingContext \n + ) { \n Collection < PsiElement > elements = BindingContextUtils . descriptorToDeclarations ( bindingContext , descriptor ) ; \n if ( elements . isEmpty ( ) ) { \n elements = findDeclarationsForDescriptorWithoutTrace ( project , descriptor ) ;", "msg_token": "add NotNull annotations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Added a necessary import statement in RepairJob for ReadOnlyStorageConfiguration"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ConfigUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - public static void set ( Map < String , String > overlay , String key , Path value ) throws IOException { \n - overlay . put ( key , STRING0 + value . toRealPath ( LinkOption . NOFOLLOW_LINKS ) . toUri ( ) + STRING0 ) ; \n + public static void set ( Map < String , String > overlay , String key , Path path ) throws IOException { \n + Path finalPath = Files . exists ( path , LinkOption . NOFOLLOW_LINKS ) ? \n + path . toRealPath ( LinkOption . NOFOLLOW_LINKS ) : \n + path ; \n + overlay . put ( key , STRING0 + finalPath . toUri ( ) + STRING0 ) ; \n } \n \n COMMENT", "msg_token": "Fix new ConfigUtils handling of Path that does not exist"} {"diff": " public class DatasourceIngestionSpec \n return new DatasourceIngestionSpec ( dataSource , interval , filter , granularity , dimensions , metrics ) ; \n } \n \n + public DatasourceIngestionSpec withQueryGranularity ( QueryGranularity granularity ) \n + { \n + return new DatasourceIngestionSpec ( dataSource , interval , filter , granularity , dimensions , metrics ) ; \n + } \n + \n @ override \n public boolean equals ( Object o ) \n { \n public class DatasourcePathSpec implements PathSpec \n updatedIngestionSpec = updatedIngestionSpec . withMetrics ( Lists . newArrayList ( metrics ) ) ; \n } \n \n + updatedIngestionSpec = updatedIngestionSpec . withQueryGranularity ( config . getGranularitySpec ( ) . getQueryGranularity ( ) ) ; \n + \n job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_DRUID_SCHEMA , mapper . writeValueAsString ( updatedIngestionSpec ) ) ; \n job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_INPUT_SEGMENTS , mapper . writeValueAsString ( segments ) ) ; \n job . getConfiguration ( ) . set ( DatasourceInputFormat . CONF_MAX_SPLIT_SIZE , String . valueOf ( maxSplitSize ) ) ;", "msg_token": "For dataSource inputSpec in hadoop batch ingestion use configured query granularity for reading existing segments instead of NONE"} {"diff": " public abstract class Operation implements DataSerializable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved javadoc Operation calltimeout"} {"diff": " public class SpringSecurityLdapTemplate extends LdapTemplate { \n SearchControls ctls = new SearchControls ( ) ; \n ctls . setSearchScope ( searchControls . getSearchScope ( ) ) ; \n ctls . setReturningAttributes ( new String [ ] { attributeName } ) ; \n - ctls . setReturningObjFlag ( false ) ; \n \n search ( base , formattedFilter , ctls , roleMapper ) ;", "msg_token": "Removed the line setting returningObj to false"} {"diff": " public class XMPPBOSHConnection extends AbstractXMPPConnection { \n BodyQName . create ( XMPPBOSHConnection . BOSH_URI , STRING0 ) , getServiceName ( ) ) . build ( ) ) ; \n Success success = new Success ( parser . nextText ( ) ) ; \n getSASLAuthentication ( ) . authenticated ( success ) ; \n + break ; \n case STRING1 : \n parseFeatures ( parser ) ; \n break ;", "msg_token": "Add missing break statement in BOSHPacketReader"} {"diff": " static public void writeClassFile ( String internalName , byte [ ] bytecode ) throws I \n { \n cfs . write ( bytecode ) ; \n cfs . flush ( ) ; \n - cfs . getFD ( ) . sync ( ) ; \n } \n finally \n {", "msg_token": "Remove call to FileDescriptor sync in Compiler writeClassFile"} {"diff": " public class EmmetOptions implements PersistentStateComponent < EmmetOptions > , Exp \n private boolean myBemFilterEnabledByDefault = false ; \n private boolean myEmmetEnabled = true ; \n private int myEmmetExpandShortcut = TemplateSettings . TAB_CHAR ; \n - private boolean myFuzzySearchEnabled = false ; \n + private boolean myFuzzySearchEnabled = true ; \n private boolean myAutoInsertCssPrefixedEnabled = true ; \n private boolean myPreviewEnabled = false ; \n private Set < String > myFiltersEnabledByDefault = ContainerUtil . newHashSet ( ) ;", "msg_token": "enable fuzzy abbreviation search by default"} {"diff": " public class I2C { \n transmitting = false ; \n out = null ; \n if ( ret < NUMBER0 ) { \n + if ( ret == - NUMBER1 ) { SINGLE \n + System . err . println ( STRING0 ) ; \n + } \n throw new RuntimeException ( NativeInterface . getError ( ret ) ) ; \n } \n } \n public class I2C { \n transmitting = false ; \n out = null ; \n if ( ret < NUMBER0 ) { \n + if ( ret == - NUMBER1 ) { SINGLE \n + System . err . println ( STRING0 ) ; \n + } \n throw new RuntimeException ( NativeInterface . getError ( ret ) ) ; \n }", "msg_token": "Add helpful text for I2C errors"} {"diff": " public class MediaMimeTest extends ActivityInstrumentationTestCase2 < MediaFramewo \n assertMediaPlaybackActivityHandles ( STRING0 ) ; \n } \n \n - @ mediumtest \n + SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Remove testCheckMediaPlaybackHandlesApplicationItunes from continuous"} {"diff": " public class AvroStreamInputRowParserTest \n \n public static void assertInputRowCorrect ( InputRow inputRow ) \n { \n - Collections . sort ( DIMENSIONS ) ; \n assertEquals ( DIMENSIONS , inputRow . getDimensions ( ) ) ; \n assertEquals ( DATE_TIME . getMillis ( ) , inputRow . getTimestampFromEpoch ( ) ) ;", "msg_token": "Remove sorting of dimensions in AvroStreamInputRowParserTest"} {"diff": " class WrapperDrawable extends Drawable { \n public int getIntrinsicWidth ( ) { \n return mDrawable . getIntrinsicWidth ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public BitmapDrawable toBitmapDrawable ( ) { \n + return mDrawable ; \n + } \n }", "msg_token": "Added the ability to get the underlying"} {"diff": " public class LockPatternKeyguardView extends KeyguardViewBase { \n if ( DEBUG ) Log . d ( TAG , STRING0 ) ; \n mScreenOn = false ; \n mForgotPattern = false ; \n - if ( mBiometricUnlock != null ) { \n - mSuppressBiometricUnlock = \n - mUpdateMonitor . getPhoneState ( ) != TelephonyManager . CALL_STATE_IDLE \n - || mHasDialog ; \n - } \n \n SINGLE \n if ( mLockScreen != null ) { \n public class LockPatternKeyguardView extends KeyguardViewBase { \n restartBiometricUnlock = mBiometricUnlock . stop ( ) ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! mScreenOn ) { \n + mSuppressBiometricUnlock = \n + mUpdateMonitor . getPhoneState ( ) != TelephonyManager . CALL_STATE_IDLE \n + || mHasDialog ; \n + } \n + \n SINGLE \n SINGLE \n mBiometricUnlock = null ;", "msg_token": "Moved setting the flag to suppress face unlock during a phone call"} {"diff": " public class GroupByTypeComparator implements Comparator < NodeDescriptor > { \n } \n \n private boolean isAbbreviateQualifiedNames ( ) { \n - return myProjectView != null && myProjectView . isSortByType ( myPaneId ) ; \n + return myProjectView != null && myProjectView . isAbbreviatePackageNames ( myPaneId ) ; \n } \n \n }", "msg_token": "fixed copy paste typo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n final class LabelVisitor { \n COMMENT \n private void visit ( \n Target from , Attribute attribute , final Target target , int depth , int count ) { \n - Preconditions . checkNotNull ( target , String . format ( STRING0 , \n - from == null ? STRING1 : from . getLabel ( ) . toString ( ) , \n - attribute == null ? STRING1 : attribute . getName ( ) ) ) ; \n + if ( target == null ) { \n + throw new NullPointerException ( \n + String . format ( STRING0 , \n + from == null ? STRING1 : from . getLabel ( ) . toString ( ) , \n + attribute == null ? STRING1 : attribute . getName ( ) ) ) ; \n + } \n if ( depth > maxDepth ) { \n return ; \n }", "msg_token": "Don t waste time formatting an assertion message we re not going to throw"} {"diff": " public class BitSetFlags implements Flags { \n myBitSet = new BitSet ( size ) ; \n } \n \n + public BitSetFlags ( int size , boolean defaultValue ) { \n + this ( size ) ; \n + if ( defaultValue ) \n + setAll ( true ) ; \n + } \n + \n @ override \n public int size ( ) { \n return mySize ;", "msg_token": "log Add constructor"} {"diff": " public class JsonParser { \n Map map = ( Map ) value ; \n \n value = mapToBean . map2bean ( map , null ) ; \n - } else if ( value instanceof List ) { \n - SINGLE \n } \n }", "msg_token": "Removed todo as it works"} {"diff": " class Task implements DimLayer . DimLayerUser { \n } \n \n boolean isResizeableByDockedStack ( ) { \n - return mStack != null && getDisplayContent ( ) . getDockedStackLocked ( ) != null && \n - StackId . isTaskResizeableByDockedStack ( mStack . mStackId ) ; \n + final DisplayContent displayContent = getDisplayContent ( ) ; \n + return displayContent != null && displayContent . getDockedStackLocked ( ) != null \n + && mStack != null && StackId . isTaskResizeableByDockedStack ( mStack . mStackId ) ; \n } \n \n COMMENT", "msg_token": "Fixed NPE in Task isResizeableByDockedStack"} {"diff": " public class TtsService extends Service implements OnCompletionListener { \n try { \n synthAvailable = synthesizerLock . tryLock ( ) ; \n if ( ! synthAvailable ) { \n - mSynthBusy = true ; \n + synchronized ( this ) { \n + mSynthBusy = true ; \n + } \n Thread . sleep ( NUMBER0 ) ; \n Thread synth = ( new Thread ( new SynthThread ( ) ) ) ; \n synth . start ( ) ; \n - mSynthBusy = false ; \n + synchronized ( this ) { \n + mSynthBusy = false ; \n + } \n return ; \n } \n String language = STRING0 ;", "msg_token": "Setting the synth busy flag inside a synchronized block for"} {"diff": " public class BasicManagers extends Poller implements Managers { \n \n public void init ( ) { \n config = ReaderConfig . getInstance ( ) ; \n - doWork ( ) ; \n start ( NUMBER0 ) ; \n } \n \n public class BasicReservationService extends Poller implements ReservationServic \n \n AwsUtils . downloadFileIfNotExist ( config . workS3BucketName , config . workS3BucketPrefix , file ) ; \n if ( ! file . exists ( ) ) { \n - try { \n - poll ( ) ; \n - } \n - catch ( Exception e ) { \n - throw new RuntimeException ( STRING0 + e . getMessage ( ) ) ; \n - } \n - start ( NUMBER1 * NUMBER2 , NUMBER1 * NUMBER2 , true ) ; \n + start ( NUMBER1 * NUMBER2 ) ; \n } \n else { \n try { \n public class ProcessorConfig extends Config { \n } \n } \n \n - billingFileProcessor . start ( NUMBER0 ) ; \n + SINGLE \n + billingFileProcessor . start ( NUMBER3 , NUMBER3 * NUMBER4 , true ) ; \n } \n \n public void shutdown ( ) {", "msg_token": "Make slow tasks non blocking during initialisation"} {"diff": " public class SeparatorBasedImporter extends TabularImportingParserBase { \n ) { \n SINGLE \n String sep = JSONUtilities . getString ( options , STRING0 , STRING1 ) ; \n - if ( sep == null ) { \n + if ( sep == null || STRING2 . equals ( sep ) ) { \n sep = STRING1 ; \n } \n boolean processQuotes = JSONUtilities . getBoolean ( options , STRING3 , true ) ;", "msg_token": "Fix index out of bounds exception when separator is the empty string"} {"diff": " public abstract class BaseManager { \n return node . isSuperClient ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n protected void log ( final Object obj ) { \n - logger . log ( Level . FINEST , obj . toString ( ) ) ; \n + if ( logger . isLoggable ( Level . FINEST ) ) { \n + logger . log ( Level . FINEST , obj . toString ( ) ) ; \n + } \n } \n \n protected Packet obtainPacket ( ) {", "msg_token": "Check loggable level"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ runwith ( JUnit4 . class ) \n - public class JimfsWindowsLikeIntegrationTest extends AbstractJimfsIntegrationTest { \n + public class JimfsWindowsLikeFileSystemTest extends AbstractJimfsIntegrationTest { \n \n @ override \n protected FileSystem createFileSystem ( ) {", "msg_token": "Rename a test"} {"diff": " public class ShowsActivity extends BaseTopShowsActivity implements OnFirstRunDis \n SINGLE \n for ( int i = fetchCount . get ( ) ; i < count ; i ++ ) { \n if ( isCancelled ( ) || \n - Utils . isAllowedLargeDataConnection ( ShowsActivity . this , false ) ) { \n + ! Utils . isAllowedLargeDataConnection ( ShowsActivity . this , false ) ) { \n SINGLE \n return UPDATE_INCOMPLETE ; \n }", "msg_token": "Fix connection check on poster task"} {"diff": " public final class CaptureActivity extends Activity implements SurfaceHolder . Cal \n try { \n return getExternalFilesDir ( Environment . MEDIA_MOUNTED ) ; \n } catch ( NullPointerException e ) { \n + SINGLE \n Log . e ( TAG , STRING0 ) ; \n - showErrorMessage ( STRING1 , STRING2 ) ; \n + showErrorMessage ( STRING1 , STRING3 ) ; \n } \n \n SINGLE", "msg_token": "clarify SD card full message"} {"diff": " public class ShiftReduceParser extends ParserGrammar implements Serializable { \n wordLabel = ( CoreLabel ) hw ; \n tag = wordLabel . tag ( ) ; \n CoreLabel cl = ( CoreLabel ) hw ; \n - System . err . println ( STRING0 + cl . word ( ) + STRING1 + cl . value ( ) + STRING1 + cl . tag ( ) ) ; \n } else { \n wordLabel = new CoreLabel ( ) ; \n wordLabel . setValue ( hw . word ( ) ) ;", "msg_token": "Remove an old debugging line"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add some references to class comments"} {"diff": " public class MessageList \n hideBatchButtons ( ) ; \n break ; \n case WIDGET_MULTISELECT : \n - showBatchButtons ( ) ; \n + toggleBatchButtons ( ) ; \n break ; \n }", "msg_token": "Don t automatically show the batch buttons when entering multiselect mode"} {"diff": " public class CustomActionsSchema implements JDOMExternalizable { \n final ActionManager actionManager = ActionManager . getInstance ( ) ; \n for ( Iterator < String > iterator = myIdToName . keySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { \n String name = iterator . next ( ) ; \n - if ( name . equals ( IdeActions . GROUP_MAIN_MENU ) ) { \n - root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createMainMenuGroup ( false ) ) ) ; \n - } else { \n - root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createGroup ( ( ActionGroup ) actionManager . getAction ( name ) , myIdToName . get ( name ) , null , null , true ) ) ) ; \n - } \n + root . add ( ActionsTreeUtil . createNode ( ActionsTreeUtil . createGroup ( ( ActionGroup ) actionManager . getAction ( name ) , myIdToName . get ( name ) , null , null , true ) ) ) ; \n } \n }", "msg_token": "remove main menu diff in actions tree"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class BlockDataManager { \n - private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n - \n COMMENT \n private final BlockHeartbeatReporter mHeartbeatReporter ; \n COMMENT", "msg_token": "remove unused variable LOG"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DOMCategory { \n return nodes . get ( index ) ; \n } \n } \n - } \n + }", "msg_token": "Remove unused imports from DOMCategory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ReaderPostPagerActivity extends Activity \n } \n \n @ override \n + public boolean onOptionsItemSelected ( final MenuItem item ) { \n + switch ( item . getItemId ( ) ) { \n + case android . R . id . home : \n + onBackPressed ( ) ; \n + return true ; \n + default : \n + return super . onOptionsItemSelected ( item ) ; \n + } \n + } \n + \n + @ override \n public boolean onRequestFullScreen ( boolean enableFullScreen ) { \n if ( ! isFullScreenSupported ( ) || enableFullScreen == mIsFullScreen ) { \n return false ;", "msg_token": "Added ActionBar home button support"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReflectionCacheSourceCreator { \n StringBuilder b = new StringBuilder ( ) ; \n b . append ( STRING0 ) ; \n for ( Annotation annotation : annotations ) { \n - SINGLE \n + SINGLE \n Class < ? > type = annotation . annotationType ( ) ; \n + Retention retention = type . getAnnotation ( Retention . class ) ; \n + if ( retention == null || retention . value ( ) != RetentionPolicy . RUNTIME ) { \n + continue ; \n + } \n + SINGLE \n b . append ( STRING1 ) . append ( type . getCanonicalName ( ) ) . append ( STRING2 ) ; \n SINGLE \n Method [ ] methods = type . getDeclaredMethods ( ) ;", "msg_token": "Aligned GWT backend with other platforms to only include RetentionPolicy RUNTIME annotations"} {"diff": " public class SmsMessage extends SmsMessageBase { \n COMMENT \n COMMENT \n COMMENT \n - return mEnvelope . messageType ; \n + SINGLE \n + SINGLE \n + if ( mEnvelope . serviceCategory != NUMBER0 ) { \n + return SmsEnvelope . MESSAGE_TYPE_BROADCAST ; \n + } else { \n + return SmsEnvelope . MESSAGE_TYPE_POINT_TO_POINT ; \n + } \n } \n \n COMMENT", "msg_token": "Fix detection of CDMA cell broadcast messages"} {"diff": " public final class EarClippingTriangulator { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n if ( ! ( ( areaSign1 > NUMBER0 || areaSign2 > NUMBER0 || areaSign3 > NUMBER0 ) && ( areaSign1 < NUMBER0 || areaSign2 < NUMBER0 || areaSign3 < NUMBER0 ) ) ) { \n return false ; \n }", "msg_token": "Add a TODO"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class Drawer { \n public void setStatusBarColor ( int statusBarColor ) { \n if ( mDrawerBuilder . mDrawerContentRoot != null ) { \n mDrawerBuilder . mDrawerContentRoot . setInsetForeground ( statusBarColor ) ; \n + mDrawerBuilder . mDrawerContentRoot . invalidate ( ) ; \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public ScrimInsetsFrameLayout getScrimInsetsFrameLayout ( ) { \n + return mDrawerBuilder . mDrawerContentRoot ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "add new api go get the DrawerContentRoot"} {"diff": " public final class ActivityThread { \n synchronized ( this ) { \n getSystemContext ( ) . installSystemApplicationInfo ( info ) ; \n \n + SINGLE \n + SINGLE \n + mPackages . put ( STRING0 , new WeakReference < LoadedApk > ( getSystemContext ( ) . mPackageInfo ) ) ; \n + \n SINGLE \n mProfiler = new Profiler ( ) ; \n }", "msg_token": "Fix getPackageInfo for the android package in the system server"} {"diff": " public final class FBView extends ZLTextView { \n } \n \n public synchronized void paint ( ZLPaintContext context ) { \n + final ZLFile wallpaper = getWallpaperFile ( ) ; \n + if ( wallpaper != null ) { \n + context . clear ( wallpaper , wallpaper instanceof ZLResourceFile ) ; \n + } else { \n + context . clear ( getBackgroundColor ( ) ) ; \n + } \n + \n final FBReaderApp reader = myReader ; \n if ( reader == null ) { \n return ; \n public final class FBView extends ZLTextView { \n final String infoString = info . toString ( ) ; \n \n final int infoWidth = context . getStringWidth ( infoString ) ; \n - final ZLFile wallpaper = getWallpaperFile ( ) ; \n - if ( wallpaper != null ) { \n - context . clear ( wallpaper , wallpaper instanceof ZLResourceFile ) ; \n - } else { \n - context . clear ( getBackgroundColor ( ) ) ; \n - } \n \n SINGLE \n context . setTextColor ( fgColor ) ;", "msg_token": "don t show footer if book is not loaded"} {"diff": " public class CoordinationTransformer implements TreeTransformer { \n } \n \n private static TregexPattern moveRBTregex [ ] = { \n - TregexPattern . compile ( STRING0 ) , \n + TregexPattern . compile ( STRING1 ) , \n TregexPattern . compile ( STRING2 ) , \n TregexPattern . compile ( STRING3 ) , \n } ;", "msg_token": "Add NP to the set of labels under which we transform RB"} {"diff": " import NAMESPACE ; \n public final class SonarMojo extends AbstractMojo { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n private MavenSession session ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class SonarMojo extends AbstractMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed warnings in sonar maven plugin"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Mapping { \n return type ; \n } \n \n - private static Map < String , String > typeTimeWithMillis ( ) { \n - final Map < String , String > type = Maps . newHashMap ( ) ; \n + private static Map < String , Serializable > typeTimeWithMillis ( ) { \n + final Map < String , Serializable > type = Maps . newHashMap ( ) ; \n type . put ( STRING0 , STRING1 ) ; \n type . put ( STRING2 , Tools . ES_DATE_FORMAT ) ; \n + type . put ( STRING3 , true ) ; \n \n return type ; \n }", "msg_token": "Save message timestamps as doc values in ES"} {"diff": " public final class UnderStoreBlockInStream extends BlockInStream { \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 public UnderStoreBlockInStream ( long initPos , long length , long fileBlockSize ,", "msg_token": "Add javadoc about responsibility of closing factory"} {"diff": " public class BindDynamicMethod extends AbstractDynamicMethodInvocation { \n if ( arguments . length < NUMBER0 ) \n throw new MissingMethodException ( METHOD_SIGNATURE , target . getClass ( ) , arguments ) ; \n if ( arguments [ NUMBER1 ] == null ) \n - throw new IllegalArgumentException ( STRING0 + target . getClass ( ) + STRING1 ) ; \n + throw new IllegalArgumentException ( STRING2 + target . getClass ( ) + STRING1 ) ; \n \n Object targetObject = arguments [ NUMBER1 ] ; \n Object bindParams = arguments [ NUMBER2 ] ;", "msg_token": "Typo in exception showed bind instead of bindData as method name"} {"diff": " public abstract class AbstractInFileObjectPersisterTest extends AndroidTestCase \n \n public void testGetCachePrefix ( ) { \n String actual = inFileObjectPersister . getCachePrefix ( ) ; \n - assertEquals ( inFileObjectPersister . getClass ( ) . getSimpleName ( ) + STRING0 , actual ) ; \n + assertEquals ( inFileObjectPersister . getClass ( ) . getSimpleName ( ) + STRING0 + inFileObjectPersister . getHandledClass ( ) . getSimpleName ( ) + STRING0 , actual ) ; \n } \n \n public void testRemoveDataFromCache ( Object data , Object cacheKey ) throws Exception { \n public abstract class InFileObjectPersister < T > extends ObjectPersister < T > { \n protected abstract T readCacheDataFromFile ( File file ) throws CacheLoadingException ; \n \n protected final String getCachePrefix ( ) { \n - return factoryCachePrefix + getClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END ; \n + return factoryCachePrefix + getClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END + getHandledClass ( ) . getSimpleName ( ) + CACHE_PREFIX_END ; \n } \n \n protected boolean isCachedAndNotExpired ( Object cacheKey , long maxTimeInCacheBeforeExpiry ) {", "msg_token": "Fix inFileObjectPersister file cache name generation for correct cache deletion handling"} {"diff": " public class ConnectivityManagerCompat { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static NetworkInfo getNetworkInfoFromBroadcast ( ConnectivityManager cm , Intent intent ) { \n final NetworkInfo info = intent . getParcelableExtra ( ConnectivityManager . EXTRA_NETWORK_INFO ) ; \n - return cm . getNetworkInfo ( info . getType ( ) ) ; \n + if ( info != null ) { \n + return cm . getNetworkInfo ( info . getType ( ) ) ; \n + } else { \n + return null ; \n + } \n } \n }", "msg_token": "Avoid NPE when missing EXTRA_NETWORK_INFO"} {"diff": " public class ValidatorHelper { \n private boolean elementHasAnnotationSafe ( Class < ? extends Annotation > annotation , Element element ) { \n List < ? extends AnnotationMirror > annotationMirrors = element . getAnnotationMirrors ( ) ; \n for ( AnnotationMirror annotationMirror : annotationMirrors ) { \n - if ( annotationMirror . toString ( ) . equals ( STRING0 + annotation . getName ( ) ) ) { \n + if ( annotationMirror . getAnnotationType ( ) . toString ( ) . equals ( annotation . getName ( ) ) ) { \n return true ; \n } \n }", "msg_token": "Fixing a bug with RestService"} {"diff": " public class HtmlHighlightingLexer extends BaseHtmlLexer { \n } \n } \n else if ( tokenType == XmlTokenType . XML_WHITE_SPACE ) { \n - tokenType = ( getState ( ) != NUMBER0 ) ? XmlTokenType . TAG_WHITE_SPACE : XmlTokenType . XML_REAL_WHITE_SPACE ; \n + if ( hasSeenTag ( ) && ( hasSeenStyle ( ) || hasSeenScript ( ) ) ) { \n + int a = NUMBER1 ; \n + } else { \n + tokenType = ( getState ( ) != NUMBER0 ) ? XmlTokenType . TAG_WHITE_SPACE : XmlTokenType . XML_REAL_WHITE_SPACE ; \n + } \n } \n return tokenType ; \n }", "msg_token": "fixed issue with tag whitespace appearing before style or script"} {"diff": " class GroovyScriptRunConfiguration extends ModuleBasedConfiguration { \n @ nonnls private static final String GROOVY_STARTER_CONF = STRING0 ; \n \n SINGLE \n - @ nonnls private static final String DGROOVY_STARTER_CONF = STRING1 ; \n + @ nonnls private static final String DGROOVY_STARTER_CONF = STRING2 ; \n @ nonnls private static final String DTOOLS_JAR = STRING3 ; \n @ nonnls private static final String DGROOVY_HOME = STRING4 ;", "msg_token": "missed in command line property definition"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AccountHeader { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setHeaderBackground ( ImageHolder imageHolder ) { \n + ImageHolder . applyTo ( imageHolder , mAccountHeaderBuilder . mAccountHeaderBackground ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add new api method to set the header background via the result object"} {"diff": " public abstract class DataConnection extends HierarchicalStateMachine { \n phone . mCM . deactivateDataCall ( cid , obtainMessage ( EVENT_DEACTIVATE_DONE , o ) ) ; \n } else { \n if ( DBG ) log ( STRING0 ) ; \n - sendMessage ( obtainMessage ( EVENT_DEACTIVATE_DONE , o ) ) ; \n + AsyncResult ar = new AsyncResult ( o , null , null ) ; \n + sendMessage ( obtainMessage ( EVENT_DEACTIVATE_DONE , ar ) ) ; \n } \n }", "msg_token": "Fix a FATAL ClassCastException in DataConnection java"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed redundant import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BaseFunctionalTestCase { \n \n protected static DataSource dataSource ; \n \n + private static Logger logger = LoggerFactory . getLogger ( BaseFunctionalTestCase . class ) ; \n + \n @ beforeclass \n public static void startAll ( ) throws Exception { \n startJetty ( ) ; \n public class BaseFunctionalTestCase { \n jettyServer = JettyFactory . buildTestServer ( Start . TEST_PORT , Start . CONTEXT ) ; \n jettyServer . start ( ) ; \n \n + logger . info ( STRING0 ) ; \n + \n dataSource = SpringContextHolder . getBean ( STRING1 ) ; \n } \n }", "msg_token": "add debug message for functionla case"} {"diff": " public final class ConfigFileFixture { \n + STRING0 \n + STRING1 \n + CONFIG_SCHEMA_VERSION + STRING2 \n - + STRING3 \n + + STRING4 \n + STRING5 \n + STRING6 \n + STRING7", "msg_token": "Add agent autoregisterkey to fixture as it s being defaulted"} {"diff": " public class Materials extends BaseCollection < Material > { \n } \n } \n \n - public int count ( Class < ? extends Material > materiaClass ) { \n + public int count ( Class < ? extends Material > materialClass ) { \n int count = NUMBER0 ; \n for ( Material material : this ) { \n - if ( materiaClass . isInstance ( material ) ) { \n + if ( materialClass . isInstance ( material ) ) { \n count ++ ; \n } \n }", "msg_token": "Fixed a typo"} {"diff": " public class ResourceHttpRequestHandler extends WebContentGenerator \n return true ; \n } \n } \n - if ( path . contains ( STRING0 ) ) { \n + if ( path . contains ( STRING1 ) ) { \n path = StringUtils . cleanPath ( path ) ; \n if ( path . contains ( STRING0 ) ) { \n if ( logger . isTraceEnabled ( ) ) {", "msg_token": "Improve static resource path check"} {"diff": " public class CropImageView extends FrameLayout { \n COMMENT \n COMMENT \n public Bitmap getCroppedImage ( ) { \n + return getCroppedImage ( NUMBER0 , NUMBER0 ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Bitmap getCroppedImage ( int reqWidth , int reqHeight ) { \n if ( mLoadedImageUri != null && mLoadedSampleSize > NUMBER1 ) { \n Rect rect = getActualCropRectNoRotation ( ) ; \n + reqWidth = reqWidth > NUMBER0 ? reqWidth : rect . width ( ) ; \n + reqHeight = reqHeight > NUMBER0 ? reqHeight : rect . height ( ) ; \n ImageViewUtil . DecodeBitmapResult result = \n - ImageViewUtil . decodeSampledBitmapRegion ( getContext ( ) , mLoadedImageUri , rect , rect . width ( ) , rect . height ( ) ) ; \n + ImageViewUtil . decodeSampledBitmapRegion ( getContext ( ) , mLoadedImageUri , rect , reqWidth , reqHeight ) ; \n \n Bitmap bitmap = result . bitmap ; \n if ( mDegreesRotated > NUMBER0 ) {", "msg_token": "support required size of cropped image for URI loaded image"} {"diff": " public class EnglishGrammaticalStructureTest extends TestCase { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n + STRING4 , \n + \n SINGLE \n SINGLE \n \n public class EnglishGrammaticalStructureTest extends TestCase { \n STRING5 + \n STRING6 , \n \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING10 + \n + STRING11 , \n + \n + \n + STRING12 + \n + STRING13 + \n + STRING14 + \n + STRING15 , \n + \n } ; \n \n SINGLE \n public class EnglishGrammaticalStructureTest extends TestCase { \n STRING16 + \n STRING5 + \n STRING6 , \n + \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING10 + \n + STRING11 , \n + \n + \n + STRING12 + \n + STRING13 + \n + STRING14 + \n + STRING15 , \n + \n } ; \n \n assertEquals ( STRING17 , testTrees . length , basicAnswers . length ) ;", "msg_token": "Add a couple more tests"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class AndroidResourceLoader implements ResourceLoader { \n - private Context context ; \n + private final Context context ; \n \n public AndroidResourceLoader ( Context context ) { \n this . context = context ;", "msg_token": "Make field final"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileDisplayActivity extends HookActivity \n public void onBackPressed ( ) { \n OCFileListFragment listOfFiles = getListOfFilesFragment ( ) ; \n if ( mDualPane || getSecondFragment ( ) == null ) { \n - if ( getFile ( ) != null && getFile ( ) . getParentId ( ) == NUMBER0 ) { \n + OCFile currentDir = getCurrentDir ( ) ; \n + if ( currentDir == null || currentDir . getParentId ( ) == FileDataStorageManager . ROOT_PARENT_ID ) { \n finish ( ) ; \n return ; \n }", "msg_token": "Fixed condition to browse up when current file shown is uploading for first time or a failed upload"} {"diff": " public interface PsiElement extends UserDataHolder , Iconable { \n COMMENT \n COMMENT \n COMMENT \n - PsiFile getContainingFile ( ) ; \n + @ nullable PsiFile getContainingFile ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Fix NotNull exception with com intellij psi impl source resolve reference ReferenceProvidersRegistry getManipulator ReferenceProvidersRegistry java"} {"diff": " public class XActivityThread extends XHook { \n listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cSystem , \n Intent . ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE ) ) ; \n \n - listHook . add ( new XActivityThread ( Methods . performConfigurationChanged , PrivacyManager . cPhone , null ) ) ; \n + listHook . add ( new XActivityThread ( Methods . performConfigurationChanged , null , null ) ) ; \n \n return listHook ; \n }", "msg_token": "Fix unknown method"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( { STRING0 , STRING1 } ) \n public final class Fun { \n \n \n public final class Fun { \n R run ( A a , B b ) ; \n } \n \n - public interface Runnable2 < A , B > { \n - void run ( A a , B b ) ; \n - } \n - \n - public interface Runnable3 < A , B , C > { \n - void run ( A a , B b , C c ) ; \n - } \n - \n \n public static < K , V > Fun . Function1 < K , Fun . Tuple2 < K , V > > extractKey ( ) { \n return new Fun . Function1 < K , Fun . Tuple2 < K , V > > ( ) {", "msg_token": "remove unused classes"} {"diff": " import NAMESPACE ; \n public abstract class LightVariableBase extends LightElement implements PsiVariable { \n protected PsiElement myScope ; \n protected PsiIdentifier myNameIdentifier ; \n - protected final PsiType myType ; \n + protected PsiType myType ; \n protected final PsiModifierList myModifierList ; \n protected boolean myWritable ; \n \n public abstract class LightVariableBase extends LightElement implements PsiVaria \n \n @ notnull \n public PsiType getType ( ) { \n + if ( myType == null ) { \n + myType = computeType ( ) ; \n + } \n return myType ; \n } \n \n @ notnull \n + protected PsiType computeType ( ) { \n + return PsiType . VOID ; \n + } \n + \n + @ notnull \n public PsiTypeElement getTypeElement ( ) { \n return JavaPsiFacade . getInstance ( getProject ( ) ) . getElementFactory ( ) . createTypeElement ( myType ) ; \n }", "msg_token": "composite element attributes with types and top level completion"} {"diff": " public final class EmailAddressResultHandler extends ResultHandler { \n EmailAddressParsedResult emailResult = ( EmailAddressParsedResult ) getResult ( ) ; \n switch ( index ) { \n case NUMBER0 : \n - sendEmailFromUri ( emailResult . getMailtoURI ( ) , emailResult . getEmailAddress ( ) , null , null ) ; \n + sendEmailFromUri ( emailResult . getMailtoURI ( ) , \n + emailResult . getEmailAddress ( ) , \n + emailResult . getSubject ( ) , \n + emailResult . getBody ( ) ) ; \n break ; \n case NUMBER1 : \n String [ ] addresses = new String [ NUMBER1 ] ;", "msg_token": "Actually add subject body per GeoSixPack"} {"diff": " public class ZMQException extends RuntimeException \n code = errno ; \n } \n \n + public ZMQException ( String message , int errno ) \n + { \n + super ( message ) ; \n + code = errno ; \n + } \n + \n + public ZMQException ( ZMQException cause ) \n + { \n + super ( cause . getMessage ( ) , cause ) ; \n + code = cause . code ; \n + } \n + \n public int getErrorCode ( ) \n { \n return code ;", "msg_token": "Added constructors to ZMQException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UIUtil { \n private static final Color INACTIVE_HEADER_COLOR = Gray . _128 ; \n private static final Color BORDER_COLOR = Color . LIGHT_GRAY ; \n \n - public static final Color AQUA_SEPARATOR_FOREGROUND_COLOR = Gray . _190 ; \n - public static final Color AQUA_SEPARATOR_BACKGROUND_COLOR = Gray . _240 ; \n + public static final Color AQUA_SEPARATOR_FOREGROUND_COLOR = new JBColor ( Gray . _190 , Gray . x51 ) ; \n + public static final Color AQUA_SEPARATOR_BACKGROUND_COLOR = new JBColor ( Gray . _240 , Gray . x51 ) ; \n public static final Color TRANSPARENT_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n \n public static final int DEFAULT_HGAP = NUMBER1 ;", "msg_token": "switch between lafs doesn t change separator color"} {"diff": " public class CombinedChannelHandler implements ChannelInboundHandler < Object > , \n private ChannelOutboundHandler < Object > out ; \n private ChannelInboundHandler < Object > in ; \n \n - public CombinedChannelHandler ( ) { \n + protected CombinedChannelHandler ( ) { \n SINGLE \n }", "msg_token": "Make the default constructor of CombinedChannelHandler protected"} {"diff": " public class DBCollection { \n COMMENT \n COMMENT \n public DBObject group ( final GroupCommand cmd , final ReadPreference readPreference ) { \n - SINGLE \n MongoCursor < DBObject > cursor = execute ( new GroupOperation < DBObject > ( getNamespace ( ) , cmd . toNew ( getDefaultDBObjectCodec ( ) ) , \n getDefaultDBObjectCodec ( ) ) , \n readPreference ) ;", "msg_token": "Removed outdated TODO"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Use correct Guava API in stress test client"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > { \n \n public class HexDumpProxyInitializer extends ChannelInitializer < SocketChannel > { \n @ override \n public void initChannel ( SocketChannel ch ) throws Exception { \n ch . pipeline ( ) . addLast ( \n - new ByteLoggingHandler ( LogLevel . INFO ) , \n + new LoggingHandler ( LogLevel . INFO ) , \n new HexDumpProxyFrontendHandler ( remoteHost , remotePort ) ) ; \n } \n }", "msg_token": "Fix a compilation error"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n class DefaultCachedModuleResolution implements ModuleResolutionCache . CachedModuleResolution { \n - private final ModuleRevisionId requestedVersion ; \n + private final ModuleVersionIdentifier requestedVersion ; \n private final ModuleVersionIdentifier resolvedVersion ; \n private final long ageMillis ; \n \n public DefaultCachedModuleResolution ( ModuleRevisionId requestedVersion , ModuleResolutionCacheEntry entry , TimeProvider timeProvider ) { \n - this . requestedVersion = requestedVersion ; \n + this . requestedVersion = new DefaultModuleVersionIdentifier ( requestedVersion . getOrganisation ( ) , requestedVersion . getName ( ) , requestedVersion . getRevision ( ) ) ; \n this . resolvedVersion = entry . moduleVersionIdentifier ; \n ageMillis = timeProvider . getCurrentTime ( ) - entry . createTimestamp ; \n }", "msg_token": "Fix DefaultCachedModuleResolution isDynamicVersion was always reporting true"} {"diff": " final class SpanGroup implements DataPoints { \n ? Double . longBitsToDouble ( values [ prev ] ) \n : values [ prev ] ) ; \n final long x1 = timestamps [ prev ] & TIME_MASK ; \n + assert x0 > x1 : ( STRING0 + x0 + STRING1 \n + + STRING2 + x1 + STRING3 \n + + STRING4 + this ) ; \n final double r = ( y0 - y1 ) / ( x0 - x1 ) ; \n SINGLE \n SINGLE", "msg_token": "Add a safety check"} {"diff": " public final class LocalFileBlockReader implements BlockReader { \n public ByteBuffer read ( long offset , long length ) throws IOException { \n Preconditions . checkArgument ( offset + length <= mFileSize , \n STRING0 , offset , length , mFileSize ) ; \n - SINGLE \n + SINGLE \n if ( length == - NUMBER0 ) { \n length = mFileSize - offset ; \n } \n public class LocalFileBlockWriterTest { \n Assert . assertEquals ( TEST_BLOCK_SIZE , mWriter . append ( buf ) ) ; \n mWriter . close ( ) ; \n Assert . assertEquals ( NUMBER1 * TEST_BLOCK_SIZE , new File ( mTestFilePath ) . length ( ) ) ; \n - SINGLE \n + SINGLE \n + SINGLE \n } \n \n @ test", "msg_token": "Tagging TODOs in tachyon worker block io"} {"diff": " public class DefaultPaymentApi extends DefaultApiBase implements PaymentApi { \n checkNotNullParameter ( amount , STRING0 ) ; \n checkNotNullParameter ( currency , STRING1 ) ; \n } \n - checkNotNullParameter ( paymentTransactionExternalKey , STRING2 ) ; \n + \n checkNotNullParameter ( properties , STRING3 ) ; \n \n if ( paymentMethodId == null && ! paymentOptions . isExternalPayment ( ) ) {", "msg_token": "Removed unnecessary not null check for transactionExternalKey"} {"diff": " public class AUC extends Iced { \n throw new IllegalArgumentException ( STRING0 ) ; \n if ( ! vactual . isInt ( ) ) \n throw new IllegalArgumentException ( STRING1 ) ; \n + if ( vpredict . isInt ( ) ) \n + throw new IllegalArgumentException ( STRING2 ) ; \n } \n \n SINGLE", "msg_token": "Check that AUC isn t given a label instead of a probability"} {"diff": " public class HTTPServer extends ContentOracle { \n if ( daemon . isRunning ( ) ) \n System . out . println ( STRING0 ) ; \n else \n - throw new RuntimeException ( STRING1 ) ; \n + throw new RuntimeException ( STRING2 + port \n + + STRING3 ) ; \n } \n \n public String demultiplex ( Request connRequest , Response connResponse ) {", "msg_token": "improve text of exception message"} {"diff": " public class AnalyticsTrackerMixpanel implements AnalyticsTracker . Tracker { \n case EDITOR_PUBLISHED_POST_WITH_PHOTO : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor ( \n - STRING0 ) ; \n + STRING1 ) ; \n break ; \n case EDITOR_PUBLISHED_POST_WITH_VIDEO : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor ( \n - STRING2 ) ; \n + STRING3 ) ; \n break ; \n case EDITOR_PUBLISHED_POST_WITH_CATEGORIES : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor ( \n - STRING4 ) ; \n + STRING5 ) ; \n break ; \n case EDITOR_PUBLISHED_POST_WITH_TAGS : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsWithSuperPropertyAndPeoplePropertyIncrementor ( \n - STRING6 ) ; \n + STRING7 ) ; \n break ; \n case NOTIFICATIONS_ACCESSED : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat .", "msg_token": "Adjusting property names of some publishing related analytics"} {"diff": " public final class GrailsDomainBinder { \n \n OneToMany oneToMany = new OneToMany ( collection . getOwner ( ) ) ; \n collection . setElement ( oneToMany ) ; \n - if ( property . isBidirectional ( ) ) { \n + COMMENT \n collection . setReferencedPropertyName ( property . getOtherSide ( ) . getName ( ) ) ; \n - } \n + COMMENT \n \n bindOneToMany ( property , oneToMany , mappings ) ; \n }", "msg_token": "fixed bug causing property not found on entity mapping exception"} {"diff": " public abstract class Language { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class Language { \n } \n throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING1 ) ; \n } \n - if ( shortLanguageCode . length ( ) != STRING2 . length ( ) && shortLanguageCode . length ( ) != STRING3 . length ( ) ) { \n - throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING4 ) ; \n - } \n - \n for ( Language element : Language . LANGUAGES ) { \n if ( shortLanguageCode . equals ( element . getShortName ( ) ) ) { \n return element ;", "msg_token": "remove an exception that s misleading now that we have language variants e g en US"} {"diff": " public class AceEditor implements DocDisplay , \n widget_ . getEditor ( ) . getRenderer ( ) . setPrintMarginColumn ( column ) ; \n } \n \n + public void setReadOnly ( boolean readOnly ) \n + { \n + widget_ . getEditor ( ) . setReadOnly ( readOnly ) ; \n + } \n + \n public HandlerRegistration addCursorChangedHandler ( final CursorChangedHandler handler ) \n { \n return widget_ . addCursorChangedHandler ( handler ) ; \n public class AceEditorNative extends JavaScriptObject { \n this . setHighlightSelectedWord ( highlight ) ; \n } - * / ; \n \n + public native final void setReadOnly ( boolean readOnly ) COMMENT \n + COMMENT \n + COMMENT ; \n + \n public native final void focus ( ) COMMENT \n COMMENT \n COMMENT ;", "msg_token": "Add read only setter to ace"} {"diff": " public class GitDiffProvider implements DiffProvider , DiffMixin { \n return null ; \n } \n try { \n - return GitHistoryUtils . getCurrentRevision ( myProject , VcsUtil . getFilePath ( file . getPath ( ) ) , null ) ; \n + return GitHistoryUtils . getCurrentRevision ( myProject , VcsUtil . getFilePath ( file . getPath ( ) ) , STRING0 ) ; \n } \n catch ( VcsException e ) { \n return null ;", "msg_token": "correctly determine current revision for a file"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n + @ runwith ( HazelcastParallelClassRunner . class ) \n + @ category ( { QuickTest . class , ParallelTest . class } ) \n public class EventMessageConstTest extends HazelcastTestSupport { \n \n @ test", "msg_token": "Added missing RunWith and Category to EventMessageConstTest"} {"diff": " public interface ChatStateListener extends ChatMessageListener { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n void stateChanged ( Chat chat , ChatState state , Message message ) ; \n }", "msg_token": "Fix ChatStateListener javadoc"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " import NAMESPACE ; \n @ supportedsourceversion ( SourceVersion . RELEASE_6 ) \n public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor { \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private boolean alreadyProcessed = false ; \n - \n private final TimeStats timeStats = new TimeStats ( ) ; \n \n @ override \n public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor { \n return ; \n } \n \n - alreadyProcessed = true ; \n - \n AnnotationElementsHolder extractedModel = extractAnnotations ( annotations , roundEnv ) ; \n \n AndroidManifest androidManifest = extractAndroidManifest ( ) ; \n public class AndroidAnnotationProcessor extends AnnotatedAbstractProcessor { \n } \n \n private boolean nothingToDo ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) { \n - return roundEnv . processingOver ( ) || annotations . size ( ) == NUMBER0 || alreadyProcessed ; \n + return roundEnv . processingOver ( ) || annotations . size ( ) == NUMBER0 ; \n } \n \n private AnnotationElementsHolder extractAnnotations ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) {", "msg_token": "not skipping rounds"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestDiscoverySearchHelper { \n \n final JavaPsiFacade psiFacade = JavaPsiFacade . getInstance ( project ) ; \n final GlobalSearchScope searchScope = GlobalSearchScope . projectScope ( project ) ; \n - return new HashSet < > ( ContainerUtil . filter ( patterns , fqn - > psiFacade . findClass ( fqn , searchScope ) != null ) ) ; \n + return new HashSet < > ( ContainerUtil . filter ( patterns , fqn - > ReadAction . compute ( ( ) - > psiFacade . findClass ( StringUtil . getPackageName ( fqn , STRING0 ) , searchScope ) != null ) ) ) ; \n } \n \n private static void collectPatterns ( final Project project ,", "msg_token": "read action added search for class names not methods"} {"diff": " public class PhoneStatusBar extends BaseStatusBar implements DemoMode , \n } \n for ( int i = NUMBER0 ; i < toRemove . size ( ) ; i ++ ) { \n removeNotification ( toRemove . get ( i ) . getStatusBarNotification ( ) . getKey ( ) , ranking ) ; \n + SINGLE \n + SINGLE \n + mStackScroller . removeViewStateForView ( toRemove . get ( i ) ) ; \n } \n } \n } \n public class NotificationStackScrollLayout extends ViewGroup \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void removeViewStateForView ( View view ) { \n + mCurrentStackScrollState . removeViewStateForView ( view ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public interface OnChildLocationsChangedListener {", "msg_token": "Fixed a memory leak with notification children"} {"diff": " public class MediaScanner \n } else if ( MediaFile . isAudioFileType ( mFileType ) ) { \n map . put ( Audio . Media . ARTIST , ( mArtist != null && mArtist . length ( ) > NUMBER0 ) ? \n mArtist : MediaStore . UNKNOWN_STRING ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n + map . put ( Audio . Media . ALBUM_ARTIST , ( mAlbumArtist != null && \n + mAlbumArtist . length ( ) > NUMBER0 ) ? mAlbumArtist : null ) ; \n map . put ( Audio . Media . ALBUM , ( mAlbum != null && mAlbum . length ( ) > NUMBER0 ) ? \n mAlbum : MediaStore . UNKNOWN_STRING ) ; \n map . put ( Audio . Media . COMPOSER , mComposer ) ;", "msg_token": "Send album artist to the media provider again"} {"diff": " public class AvailableToolChains { \n for ( int i = NUMBER0 ; i < gppCandidates . size ( ) ; i ++ ) { \n File candidate = gppCandidates . get ( i ) ; \n GccVersionResult version = versionDeterminer . transform ( candidate ) ; \n - if ( version . isAvailable ( ) && version . getVersion ( ) . startsWith ( STRING0 ) ) { \n + if ( version . isAvailable ( ) ) { \n InstalledGcc gcc = new InstalledGcc ( STRING1 ) ; \n if ( i > NUMBER0 ) { \n SINGLE", "msg_token": "Changed the test fixtures to select whichever version of gcc happens to be available on the path"} {"diff": " public LazyCons ( IFn f ) { \n \n LazyCons ( IPersistentMap meta , Object first , ISeq rest ) { \n super ( meta ) ; \n - this . _first = sentinel ; \n - this . _rest = sentinel ; \n + this . _first = first ; \n + this . _rest = rest ; \n } \n \n final", "msg_token": "fixed withMeta ctor in LazyCons"} {"diff": " public class SchemaReferencesProvider implements PsiReferenceProvider { \n } \n } \n \n - static class NameReference implements PsiReference { \n + public static class NameReference implements PsiReference { \n private PsiElement myElement ; \n \n - NameReference ( PsiElement element ) { \n + public NameReference ( PsiElement element ) { \n myElement = element ; \n }", "msg_token": "Fixed illegal access error"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class MenuItemPresentationFactory extends PresentationFactory { \n + private final boolean myForceHide ; \n + \n + public MenuItemPresentationFactory ( ) { \n + this ( false ) ; \n + } \n + \n + public MenuItemPresentationFactory ( boolean forceHide ) { \n + myForceHide = forceHide ; \n + } \n + \n protected Presentation processPresentation ( Presentation presentation ) { \n - if ( ! UISettings . getInstance ( ) . SHOW_ICONS_IN_MENUS ) { \n + if ( ! UISettings . getInstance ( ) . SHOW_ICONS_IN_MENUS || myForceHide ) { \n presentation . setIcon ( null ) ; \n presentation . setDisabledIcon ( null ) ; \n presentation . setHoveredIcon ( null ) ;", "msg_token": "add option to force icons hiding"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n public class LoggingConfigurationTests extends ElasticsearchTestCase { \n \n - @ awaitsfix ( bugUrl = STRING0 ) \n + SINGLE \n @ test \n public void testMultipleConfigs ( ) throws Exception { \n File configDir = resolveConfigDir ( ) ; \n + logger . info ( STRING1 , configDir . getAbsolutePath ( ) ) ; \n Settings settings = ImmutableSettings . builder ( ) \n . put ( STRING2 , configDir . getAbsolutePath ( ) ) \n . build ( ) ;", "msg_token": "TEST added additional logging to LoggingConfigurationTests"} {"diff": " public class EditorWithProviderComposite extends EditorComposite { \n return new HistoryEntry ( getFile ( ) , providers , states , providers [ selectedProviderIndex ] ) ; \n } \n \n - void addEditor ( FileEditor editor , FileEditorProvider provider ) { \n + public void addEditor ( FileEditor editor , FileEditorProvider provider ) { \n addEditor ( editor ) ; \n myProviders = ArrayUtil . append ( myProviders , provider ) ; \n }", "msg_token": "Convert CSV editor editor provider to explicit action"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class DefaultGroupByTranslator implements GroupByTranslator { \n int groupBySize = groupBy . getSize ( ) ; \n \n if ( groupBySize == NUMBER0 ) { \n - groupBySize = end ; \n + groupBySize = end - start + NUMBER1 ; \n } \n \n topHitsBuilder . setSize ( groupBySize ) ;", "msg_token": "needs the range size not its end"} {"diff": " public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce \n exceptionHandlerMethod . invokeAndHandle ( webRequest , mavContainer , exception , handlerMethod ) ; \n } \n catch ( Exception invocationEx ) { \n - if ( logger . isErrorEnabled ( ) ) { \n - logger . error ( STRING0 + exceptionHandlerMethod , invocationEx ) ; \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING0 + exceptionHandlerMethod , invocationEx ) ; \n } \n return null ; \n }", "msg_token": "Reduce log level for ExceptionHandler failure"} {"diff": " public class RelaxedHtmlFromSchemaElementDescriptor extends XmlElementDescriptor \n } \n \n public static XmlAttributeDescriptor [ ] getCommonAttributeDescriptors ( XmlTag context ) { \n - final XmlNSDescriptor nsDescriptor = context != null ? context . getNSDescriptor ( STRING0 , false ) : null ; \n + final XmlNSDescriptor nsDescriptor = context != null ? context . getNSDescriptor ( context . getNamespace ( ) , false ) : null ; \n if ( nsDescriptor != null ) { \n for ( XmlElementDescriptor descriptor : nsDescriptor . getRootElementsDescriptors ( null ) ) { \n final String name = descriptor . getName ( ) ;", "msg_token": "use namespace from tag not empty one"} {"diff": " public class PlaybackService extends Service { \n } \n \n private void updateMediaSessionMetadata ( Playable p ) { \n - if ( p == null ) { \n + if ( p == null || mediaSession == null ) { \n return ; \n } \n MediaMetadataCompat . Builder builder = new MediaMetadataCompat . Builder ( ) ; \n public class PlaybackService extends Service { \n castManager . disconnect ( ) ; \n } \n } \n - } else if ( key . equals ( UserPreferences . PREF_LOCKSCREEN_BACKGROUND ) ) { \n + } else if ( UserPreferences . PREF_LOCKSCREEN_BACKGROUND . equals ( key ) ) { \n updateMediaSessionMetadata ( getPlayable ( ) ) ; \n } \n } ;", "msg_token": "combine both preference listeners in PlaybackService"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractDatagramMulticastTest { \n \n int port = TestUtils . getFreePort ( ) ; \n \n - NetworkInterface iface = NetworkInterface . getByInetAddress ( InetAddress . getLoopbackAddress ( ) ) ; \n + NetworkInterface iface = NetworkInterface . getNetworkInterfaces ( ) . nextElement ( ) ; \n sb . setOption ( STRING0 , iface ) ; \n sb . setOption ( STRING1 , true ) ;", "msg_token": "Fix a NPE in a testcase when running via ubuntu"} {"diff": " public class ImageInfoIndex implements FileBasedIndexExtension { \n public Map < Integer , ImageInfo > map ( FileContent inputData ) { \n final ImageInfo info = fetchImageInfo ( inputData . getContent ( ) ) ; \n SINGLE \n - return info == null ? Collections . EMPTY_MAP : Collections . singletonMap ( FileBasedIndex . getFileId ( inputData . getFile ( ) ) , info ) ; \n + return info == null ? Collections . EMPTY_MAP : Collections . singletonMap ( Math . abs ( FileBasedIndex . getFileId ( inputData . getFile ( ) ) ) , info ) ; \n } \n } ;", "msg_token": "use correct file ID"} {"diff": " \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 ; \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing headers"} {"diff": " public class ZWaveController { \n transactionCompleted . release ( ) ; \n logger . trace ( STRING0 , transactionCompleted . availablePermits ( ) ) ; \n } \n + \n + SINGLE \n + ZWaveWakeUpCommandClass wakeUp = ( ZWaveWakeUpCommandClass ) node . getCommandClass ( ZWaveCommandClass . CommandClass . WAKE_UP ) ; \n + if ( wakeUp != null ) { \n + wakeUp . setAwake ( true ) ; \n + } \n break ; \n case NODE_INFO_REQ_FAILED : \n logger . debug ( STRING1 ) ;", "msg_token": "Treat node information frame as a device wakeup"} {"diff": " public class MessageView extends K9Activity implements OnClickListener \n SINGLE \n SINGLE \n if ( \n - ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . FROYO ) \n + ( Integer . parseInt ( Build . VERSION . SDK ) > Build . VERSION_CODES . ECLAIR ) \n && K9 . mobileOptimizedLayout ( ) ) \n { \n webSettings . setLayoutAlgorithm ( WebSettings . LayoutAlgorithm . SINGLE_COLUMN ) ; \n public class Prefs extends K9PreferenceActivity \n mZoomControlsEnabled . setChecked ( K9 . zoomControlsEnabled ( ) ) ; \n \n mMobileOptimizedLayout = ( CheckBoxPreference ) findPreference ( PREFERENCE_MESSAGEVIEW_MOBILE_LAYOUT ) ; \n - if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . FROYO ) \n + if ( Integer . parseInt ( Build . VERSION . SDK ) <= Build . VERSION_CODES . ECLAIR ) \n { \n mMobileOptimizedLayout . setEnabled ( false ) ; \n }", "msg_token": "Use a more backward compatible os version check since the current"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClientCalls { \n throw Status . CANCELLED . withCause ( ie ) . asRuntimeException ( ) ; \n } \n } \n - if ( last instanceof Status ) { \n - throw ( ( Status ) last ) . asRuntimeException ( ) ; \n + if ( last instanceof StatusRuntimeException ) { \n + SINGLE \n + StatusRuntimeException e = ( StatusRuntimeException ) last ; \n + throw e . getStatus ( ) . asRuntimeException ( e . getTrailers ( ) ) ; \n } \n return last != this ; \n } \n public class ClientCalls { \n if ( status . isOk ( ) ) { \n buffer . add ( BlockingResponseStream . this ) ; \n } else { \n - buffer . add ( status ) ; \n + buffer . add ( status . asRuntimeException ( trailers ) ) ; \n } \n done = true ; \n }", "msg_token": "Add trailers to Status for BlockingResponseStream"} {"diff": " public class Sprite extends TextureRegion { \n } \n \n public void draw ( Batch batch , float alphaModulation ) { \n - Color color = getColor ( ) ; \n - float oldAlpha = color . a ; \n - color . a *= alphaModulation ; \n - setColor ( color ) ; \n + float oldAlpha = getColor ( ) . a ; \n + setAlpha ( oldAlpha * alphaModulation ) ; \n draw ( batch ) ; \n - color . a = oldAlpha ; \n - setColor ( color ) ; \n + setAlpha ( oldAlpha ) ; \n } \n \n public float getX ( ) {", "msg_token": "Sprite draw alpha modulation optimization"} {"diff": " public class Wallet extends BaseTaggableObject \n \n for ( Transaction tx : txns ) { \n try { \n - builder . append ( STRING0 ) ; \n + builder . append ( tx . getValue ( this ) . toFriendlyString ( ) ) ; \n + builder . append ( STRING1 ) ; \n builder . append ( tx . getValueSentFromMe ( this ) . toFriendlyString ( ) ) ; \n builder . append ( STRING2 ) ; \n builder . append ( tx . getValueSentToMe ( this ) . toFriendlyString ( ) ) ; \n - builder . append ( STRING3 ) ; \n - builder . append ( tx . getValue ( this ) . toFriendlyString ( ) ) ; \n - builder . append ( STRING4 ) ; \n + builder . append ( STRING5 ) ; \n } catch ( ScriptException e ) { \n SINGLE \n }", "msg_token": "In wallet transactions dump reformat value line"} {"diff": " public class EmbeddedWebApplicationContext extends GenericWebApplicationContext \n @ override \n protected void onRefresh ( ) { \n super . onRefresh ( ) ; \n - registerShutdownHook ( ) ; \n try { \n createEmbeddedServletContainer ( ) ; \n } \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class EmbeddedWebApplicationContextTests { \n } \n \n @ test \n - public void registersShutdownHook ( ) throws Exception { \n + public void doesNotRegistersShutdownHook ( ) throws Exception { \n + SINGLE \n + SINGLE \n + SINGLE \n addEmbeddedServletContainerFactoryBean ( ) ; \n this . context . refresh ( ) ; \n Field shutdownHookField = AbstractApplicationContext . class \n . getDeclaredField ( STRING0 ) ; \n shutdownHookField . setAccessible ( true ) ; \n Object shutdownHook = shutdownHookField . get ( this . context ) ; \n - assertThat ( shutdownHook , not ( nullValue ( ) ) ) ; \n + assertThat ( shutdownHook , nullValue ( ) ) ; \n } \n \n @ test", "msg_token": "Don t register shutdown hook from embedded context"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \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", "msg_token": "Add more javadocs"} {"diff": " public class JDBCStore extends StoreBase { \n COMMENT \n COMMENT \n COMMENT \n - protected final String threadName = STRING0 ; \n + protected static final String threadName = STRING0 ; \n \n COMMENT \n COMMENT \n class PageInfo { \n private final HashMap < String , LinkedList < String > > xmlPrefixMapper ; \n private final HashMap < String , Mark > nonCustomTagPrefixMap ; \n private final String jspFile ; \n - private final String defaultLanguage = STRING1 ; \n + private static final String defaultLanguage = STRING1 ; \n private String language ; \n private final String defaultExtends = Constants . JSP_SERVLET_BASE ; \n private String xtends ; \n import NAMESPACE ; \n public class SendMailFactory implements ObjectFactory \n { \n SINGLE \n - protected final String DataSourceClassName = \n + protected static final String DataSourceClassName = \n STRING2 ; \n \n @ override", "msg_token": "Make the field static"} {"diff": " public class FutureWriter extends Writer { \n old . shutdown ( ) ; \n } \n \n + public static ExecutorService getExecutorService ( ) { \n + return es ; \n + } \n + \n public FutureWriter ( ) { \n }", "msg_token": "add an accessor for the executor service"} {"diff": " public class HelpPane extends WorkbenchPane \n \n public String getUrl ( ) \n { \n - if ( getIFrameEx ( ) != null ) \n - return getIFrameEx ( ) . getContentWindow ( ) . getLocationHref ( ) ; \n - else \n - return null ; \n + String url = null ; \n + try \n + { \n + if ( getIFrameEx ( ) != null ) \n + url = getIFrameEx ( ) . getContentWindow ( ) . getLocationHref ( ) ; \n + } \n + catch ( Exception e ) \n + { \n + SINGLE \n + SINGLE \n + SINGLE \n + } \n + return url ; \n } \n \n public String getDocTitle ( )", "msg_token": "fetch current URL in help pane safely"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import warning"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix comment in ViewsById"} {"diff": " public abstract class TitanBlueprintsGraph implements InternalTitanGraph { \n public Iterable < Vertex > getVertices ( ) { \n return getAutoStartTx ( ) . getVertices ( ) ; \n } \n + \n + public TypeMaker makeType ( ) { \n + return getAutoStartTx ( ) . makeType ( ) ; \n + } \n + \n + public TitanType getType ( String name ) { \n + return getAutoStartTx ( ) . getType ( name ) ; \n + } \n \n @ override \n public Iterable < Vertex > getVertices ( String key , Object value ) {", "msg_token": "Made type access possible in graph by forwarding to tx"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface JavaLibrary extends BuildRule , HasClasspathEntries , \n \n public AnnotationProcessingParams getAnnotationProcessingParams ( ) ; \n \n - public RuleKey . Builder appendDetailsToRuleKey ( RuleKey . Builder builder ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove duplicated appendToRuleKey method from JavaLibrary"} {"diff": " public class DRFTest extends TestUtil { \n \n Scope . enter ( ) ; \n try { \n - tfr = parse_test_file ( STRING0 ) ; \n + tfr = parse_test_file ( STRING1 ) ; \n for ( String s : new String [ ] { \n STRING2 , \n } ) { \n public class DRFTest extends TestUtil { \n gbm = job . trainModel ( ) . get ( ) ; \n \n ModelMetricsRegression mm = ( ModelMetricsRegression ) gbm . _output . _training_metrics ; \n - assertEquals ( FLOAT0 , mm . mse ( ) , FLOAT1 ) ; \n + assertEquals ( FLOAT2 , mm . mse ( ) , FLOAT1 ) ; \n \n job . remove ( ) ; \n } finally {", "msg_token": "Fix DRF JUnit path issue"} {"diff": " public class SyncHttpHandler { \n } \n \n private ResponseStream handleResponse ( HttpResponse response ) throws HttpException , IOException { \n - if ( response != null ) return null ; \n + if ( response == null ) return null ; \n StatusLine status = response . getStatusLine ( ) ; \n if ( status . getStatusCode ( ) < NUMBER0 ) { \n return new ResponseStream ( response , charset , _getRequestUrl , expiry ) ;", "msg_token": "fix a bug"} {"diff": " public class DiskBasedCache implements Cache { \n private static final float HYSTERESIS_FACTOR = FLOAT0 ; \n \n COMMENT \n - private static final int CACHE_MAGIC = NUMBER0 ; \n + private static final int CACHE_MAGIC = NUMBER1 ; \n \n COMMENT \n COMMENT \n public class DiskBasedCache implements Cache { \n try { \n FileOutputStream fos = new FileOutputStream ( file ) ; \n CacheHeader e = new CacheHeader ( key , entry ) ; \n - e . writeHeader ( fos ) ; \n + boolean success = e . writeHeader ( fos ) ; \n + if ( ! success ) { \n + fos . close ( ) ; \n + VolleyLog . d ( STRING0 , file . getAbsolutePath ( ) ) ; \n + throw new IOException ( ) ; \n + } \n fos . write ( entry . data ) ; \n fos . close ( ) ; \n putEntry ( key , e ) ;", "msg_token": "Fix crash OOM in DiskBasedCache"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PostUploadService extends Service { \n } else { SINGLE \n path = imageUri . toString ( ) . replace ( STRING0 , STRING1 ) ; \n jpeg = new File ( path ) ; \n + String extension = MimeTypeMap . getFileExtensionFromUrl ( path ) ; \n + if ( extension != null ) { \n + MimeTypeMap mime = MimeTypeMap . getSingleton ( ) ; \n + mimeType = mime . getMimeTypeFromExtension ( extension ) ; \n + if ( mimeType == null ) \n + mimeType = STRING2 ; \n + } \n mf . setFilePath ( path ) ; \n }", "msg_token": "Get the mime type for images outside of the media library"} {"diff": " public class RemoteConnectionCredentialsWrapper { \n else if ( isWebDeploymentConnection ( ) ) { \n return getWebDeploymentCredentials ( ) ; \n } \n + else if ( isDockerConnection ( ) ) { \n + return getDockerCredentials ( ) ; \n + } \n else { \n throw unknownConnectionType ( ) ; \n }", "msg_token": "Generate connection key for Docker"} {"diff": " public class MasterFaultDetection extends AbstractComponent { \n synchronized ( masterNodeMutex ) { \n SINGLE \n if ( masterToPing . equals ( MasterFaultDetection . this . masterNode ( ) ) ) { \n - if ( exp instanceof ConnectTransportException ) { \n + if ( exp instanceof ConnectTransportException || exp . getCause ( ) instanceof ConnectTransportException ) { \n handleTransportDisconnect ( masterToPing ) ; \n return ; \n } else if ( exp . getCause ( ) instanceof NoLongerMasterException ) { \n public class NodesFaultDetection extends AbstractComponent { \n if ( ! nodeFD . running ) { \n return ; \n } \n - if ( exp instanceof ConnectTransportException ) { \n + if ( exp instanceof ConnectTransportException || exp . getCause ( ) instanceof ConnectTransportException ) { \n handleTransportDisconnect ( node ) ; \n return ; \n }", "msg_token": "Discovery Fault detection should also check cause exceptions for disconnects"} {"diff": " import NAMESPACE ; \n \n public final class SqlUtils { \n \n - private static final Pattern ALPHANUMERIC = Pattern . compile ( STRING0 ) ; \n + private static final Pattern ALPHANUMERIC = Pattern . compile ( STRING1 ) ; \n \n COMMENT \n COMMENT \n public final class SqlUtils { \n } \n } else if ( ! ALPHANUMERIC . matcher ( identifier ) . matches ( ) ) { \n aptUtils . getMessager ( ) . printMessage ( Diagnostic . Kind . WARNING , type + STRING2 + identifier + STRING3 \n - + STRING4 \n - + STRING5 , element ) ; \n + + STRING6 \n + + STRING7 \n + + STRING8 , element ) ; \n } \n return result ; \n }", "msg_token": "Add underscore to the list of alphanumeric characters that don t need a warning"} {"diff": " public class MainActivity extends Activity { \n public void scanBarcodeCustomOptions ( View view ) { \n IntentIntegrator integrator = new IntentIntegrator ( this ) ; \n integrator . setDesiredBarcodeFormats ( IntentIntegrator . ONE_D_CODE_TYPES ) ; \n - integrator . autoWide ( ) ; \n integrator . initiateScan ( ) ; \n }", "msg_token": "Fix sample nosupport"} {"diff": " public class ProjectFileIndexImpl implements ProjectFileIndex { \n } \n \n public boolean isInSource ( @ notnull VirtualFile fileOrDir ) { \n - if ( fileOrDir . isDirectory ( ) ) { \n - DirectoryInfo info = getInfoForDirectory ( fileOrDir ) ; \n - return info != null && ( info . isInModuleSource || info . isInLibrarySource ) ; \n + DirectoryInfo info = getInfoForDirectory ( fileOrDir ) ; \n + if ( info != null ) { \n + return info . isInModuleSource || info . isInLibrarySource ; \n } \n else { \n VirtualFile parent = fileOrDir . getParent ( ) ;", "msg_token": "Fix scope bugs in ProjectFileIndex for JS libraries"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n name = STRING0 , \n category = JDK , \n summary = STRING1 , \n - severity = WARNING , \n + severity = ERROR , \n maturity = MATURE \n ) \n public class GetClassOnAnnotation extends BugChecker \n public class BuiltInCheckerSuppliers { \n EqualsNaN . class , \n ForOverrideChecker . class , \n FormatString . class , \n + GetClassOnAnnotation . class , \n GetClassOnClass . class , \n GuardedByValidator . class , \n GuardedByChecker . class , \n public class BuiltInCheckerSuppliers { \n EqualsIncompatibleType . class , \n Finally . class , \n FragmentNotInstantiable . class , \n - GetClassOnAnnotation . class , \n GetClassOnEnum . class , \n IncompatibleModifiersChecker . class , \n JUnit3FloatingPointComparisonWithoutDelta . class ,", "msg_token": "Make GetClassOnAnnotation an error"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n record = new OpenHABConfigurationRecord ( STRING0 + STRING1 + node . getNodeId ( ) + STRING2 , STRING3 + node . getNodeId ( ) ) ; \n } \n else { \n - record = new OpenHABConfigurationRecord ( STRING0 + STRING1 + node . getNodeId ( ) + STRING2 , node . getName ( ) ) ; \n + record = new OpenHABConfigurationRecord ( STRING0 + STRING1 + node . getNodeId ( ) + STRING2 , node . getNodeId ( ) + STRING4 + node . getName ( ) ) ; \n } \n \n SINGLE", "msg_token": "Fix display Node ID when Name set"} {"diff": " public class ApiClientImplementation implements ServiceConnection , Api , ApiMetho \n myInterface = null ; \n } \n \n + public synchronized boolean isConnected ( ) { \n + return myInterface != null ; \n + } \n + \n private synchronized void checkConnection ( ) throws ApiException { \n if ( myInterface == null ) { \n throw new ApiException ( STRING0 ) ;", "msg_token": "added public isConnected method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DefaultHttpClientResponse implements HttpClientResponse { \n void handleChunk ( Buffer data ) { \n if ( paused ) { \n if ( pausedChunks == null ) { \n - pausedChunks = new LinkedList < > ( ) ; \n + pausedChunks = new ArrayDeque < > ( ) ; \n } \n pausedChunks . add ( data ) ; \n } else {", "msg_token": "Replace LinkedList with ArrayDeque as ArrayDeque is faster"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class GzipHandler extends HandlerWrapper \n public abstract class AbstractSession implements AbstractSessionManager . SessionI \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected void checkValid ( ) throws IllegalStateException \n { \n public class JDBCSessionManager extends AbstractSessionManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ override \n protected void addSession ( AbstractSession session )", "msg_token": "Fixing javadoc errors and warnings"} {"diff": " final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { \n @ servicethreadonly \n void deviceSelect ( int targetAddress , IHdmiControlCallback callback ) { \n assertRunOnServiceThread ( ) ; \n + ActiveSource active = getActiveSource ( ) ; \n + if ( active . isValid ( ) && targetAddress == active . logicalAddress ) { \n + invokeCallback ( callback , HdmiControlManager . RESULT_SUCCESS ) ; \n + return ; \n + } \n if ( targetAddress == Constants . ADDR_INTERNAL ) { \n handleSelectInternalSource ( ) ; \n SINGLE \n class TvInputHardwareManager implements TvInputHal . Callback { \n if ( inputId != null ) { \n Intent intent = new Intent ( Intent . ACTION_VIEW ) ; \n intent . setData ( TvContract . buildChannelUriForPassthroughTvInput ( inputId ) ) ; \n + intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n mContext . startActivity ( intent ) ; \n } else { \n Slog . w ( TAG , STRING0 + device ) ;", "msg_token": "Make deviceSelect to active device a no op"} {"diff": " final class HazelcastInstanceLoader { \n \n if ( ! isEmpty ( instanceName ) ) { \n config . setInstanceName ( instanceName ) ; \n - HazelcastInstance instance = Hazelcast . getHazelcastInstanceByName ( instanceName ) ; \n - if ( instance == null ) { \n - try { \n - instance = Hazelcast . newHazelcastInstance ( config ) ; \n - } catch ( DuplicateInstanceNameException ignored ) { \n - instance = Hazelcast . getHazelcastInstanceByName ( instanceName ) ; \n - } \n - } \n - return instance ; \n + return Hazelcast . getOrCreateHazelcastInstance ( config ) ; \n } else { \n return Hazelcast . newHazelcastInstance ( config ) ; \n }", "msg_token": "HazelcastInstanceLoader now makes use of the new getOrCreateHazelcastInstance method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PullToRefreshListActivity extends ListActivity { \n new GetDataTask ( ) . execute ( ) ; \n } \n } ) ; \n + \n + ListView actualListView = mPullRefreshListView . getRefreshableView ( ) ; \n \n mListItems = new LinkedList < String > ( ) ; \n mListItems . addAll ( Arrays . asList ( mStrings ) ) ; \n \n mAdapter = new ArrayAdapter < String > ( this , android . R . layout . simple_list_item_1 , mListItems ) ; \n - setListAdapter ( mAdapter ) ; \n + \n + SINGLE \n + actualListView . setAdapter ( mAdapter ) ; \n } \n \n private class GetDataTask extends AsyncTask < Void , Void , String [ ] > {", "msg_token": "Make ListView sample use getRefreshableView to get ListView"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n if ( ! ( o instanceof RoutingRequest ) ) \n return false ; \n RoutingRequest other = ( RoutingRequest ) o ; \n + if ( this . batch != other . batch ) \n + return false ; \n boolean endpointsMatch ; \n if ( this . batch ) { \n if ( this . arriveBy ) {", "msg_token": "check batch mode in routingrequest equals method"} {"diff": " public class AndroidTableUtils { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public static < T > int dropTable ( ConnectionSource connectionSource , Class < T > dataClass , boolean ignoreErrors ) \n public class AndroidTableUtils { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public static < T > int dropTable ( ConnectionSource connectionSource , DatabaseTableConfig < T > tableConfig ,", "msg_token": "Fixed a javadoc error"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n COMMENT \n COMMENT \n public void destroy ( ) { \n + releaseExternalResources ( ) ; \n if ( notifierFuture != null ) { \n notifierFuture . cancel ( true ) ; \n } \n public class DefaultBroadcaster implements Broadcaster { \n SINGLE \n if ( resources . isEmpty ( ) ) { \n BroadcasterFactory . getDefault ( ) . remove ( this , name ) ; \n - this . releaseExternalResources ( ) ; \n } \n return r ; \n }", "msg_token": "Do not release resources when there is no suspended connection"} {"diff": " public class LazyTypeParameterDescriptor implements TypeParameterDescriptor { \n return upperBounds ; \n } \n \n - private JetTypeParameter resolveUpperBoundsFromWhereClause ( Set < JetType > upperBounds , boolean forClassObject ) { \n + private void resolveUpperBoundsFromWhereClause ( Set < JetType > upperBounds , boolean forClassObject ) { \n JetTypeParameter jetTypeParameter = getElement ( ) ; \n \n JetClassOrObject classOrObject = PsiTreeUtil . getParentOfType ( jetTypeParameter , JetClassOrObject . class ) ; \n if ( classOrObject instanceof JetClass ) { \n JetClass jetClass = ( JetClass ) classOrObject ; \n for ( JetTypeConstraint jetTypeConstraint : jetClass . getTypeConstaints ( ) ) { \n - if ( jetTypeConstraint . isClassObjectContraint ( ) == forClassObject ) continue ; \n + if ( jetTypeConstraint . isClassObjectContraint ( ) != forClassObject ) continue ; \n \n JetSimpleNameExpression constrainedParameterName = jetTypeConstraint . getSubjectTypeParameterName ( ) ; \n if ( constrainedParameterName != null ) { \n public class LazyTypeParameterDescriptor implements TypeParameterDescriptor { \n } \n } \n } \n - return jetTypeParameter ; \n + \n } \n \n private JetTypeParameter getElement ( ) {", "msg_token": "Flipped the wrong condition"} {"diff": " \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 + 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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix license for CometDReplayExtension"} {"diff": " public class TestRegistration extends TomcatBaseTest { \n assertTrue ( STRING0 + missing , missing . isEmpty ( ) ) ; \n \n SINGLE \n - List additional = found ; \n + List < String > additional = found ; \n additional . removeAll ( expected ) ; \n assertTrue ( STRING1 + additional , additional . isEmpty ( ) ) ;", "msg_token": "Fix generics warnings"} {"diff": " public class RepositoryHelper { \n indicator . checkCanceled ( ) ; \n } \n \n - if ( connection . getResponseCode ( ) == NUMBER0 ) { \n + if ( connection . getResponseCode ( ) == HttpURLConnection . HTTP_NOT_MODIFIED ) { \n return loadPluginList ( pluginListFile ) ; \n }", "msg_token": "use HttpURLConnection HTTP_NOT_MODIFIED"} {"diff": " public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase { \n SINGLE \n ownerClassDescriptor = DescriptorUtils . getClassDescriptorForType ( selectedReceiverType . getType ( ) ) ; \n JetType receiverType = ownerClassDescriptor . getDefaultType ( ) ; \n - PsiElement typeDeclaration = BindingContextUtils . classDescriptorToDeclaration ( currentFileContext , ownerClassDescriptor ) ; \n - if ( typeDeclaration != null && typeDeclaration instanceof JetClass ) { \n - ownerClass = ( JetClass ) typeDeclaration ; \n + PsiElement classDeclaration = BindingContextUtils . classDescriptorToDeclaration ( currentFileContext , ownerClassDescriptor ) ; \n + if ( classDeclaration != null && classDeclaration instanceof JetClass ) { \n + ownerClass = ( JetClass ) classDeclaration ; \n isExtension = ! ownerClass . isWritable ( ) ; \n } else { \n isExtension = true ;", "msg_token": "Renamed typeDeclaration to classDeclaration"} {"diff": " public class ApplicationPidFileWriter implements \n writePidFile ( event ) ; \n } \n catch ( Exception ex ) { \n - logger . warn ( String . format ( STRING0 , this . file ) ) ; \n + logger . warn ( String . format ( STRING0 , this . file ) , ex ) ; \n } \n } \n }", "msg_token": "Include exception in warning message when pid file cannot be created"} {"diff": " public class FilterListActivity extends ListFragment { \n \n getActivity ( ) . setDefaultKeyMode ( Activity . DEFAULT_KEYS_SEARCH_LOCAL ) ; \n SINGLE \n - newListButton = getView ( ) . findViewById ( R . id . new_list_button ) ; \n + newListButton = getView ( ) . findViewById ( R . id . lists_footer ) ; \n \n SINGLE \n SINGLE", "msg_token": "Make whole filter list footer clickable"} {"diff": " public final class HttpMethod { \n \n public static boolean permitsRequestBody ( String method ) { \n return requiresRequestBody ( method ) \n + || method . equals ( STRING0 ) \n || method . equals ( STRING1 ) SINGLE \n || method . equals ( STRING2 ) SINGLE \n || method . equals ( STRING3 ) SINGLE", "msg_token": "OPTIONS allows body"} {"diff": " import NAMESPACE ; \n \n class StatusView { \n public static final int LOCK_ICON = NUMBER0 ; SINGLE \n - public static final int ALARM_ICON = NUMBER0 ; SINGLE \n + public static final int ALARM_ICON = R . drawable . ic_lock_idle_alarm ; \n public static final int CHARGING_ICON = NUMBER0 ; SINGLE \n public static final int BATTERY_LOW_ICON = NUMBER0 ; SINGLE", "msg_token": "Bring back alarm icon on LockScreen"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n public class Redactor < T extends Message > { \n private static final Redactor < ? > NOOP_REDACTOR = new Redactor < Message > ( null , null , null , null ) { \n @ override \n public class Redactor < T extends Message > { \n } \n } \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ suppresswarnings ( STRING0 ) SINGLE \n public T redact ( T message ) { \n if ( message == null ) return null ;", "msg_token": "Fix Redactor to mention that it returns a redacted copy"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n public class BasicUltimateListView extends ListView { \n \n int currentFirstVisibleItem ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class UltimateListview extends LinearLayout {", "msg_token": "update some docs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class IsDistinctFrom < T > extends AbstractCondition { \n + class IsDistinctFrom < T > extends AbstractCondition { \n \n COMMENT \n COMMENT", "msg_token": "Made IsDistinctFrom package private"} {"diff": " public class JmfDeviceDetector \n logger . debug ( STRING0 + exc . getMessage ( ) ) ; \n } \n \n + String disableVideoObj = ( String ) MediaActivator . \n + getConfigurationService ( ) . getProperty ( \n + MediaServiceImpl . DISABLE_VIDEO_SUPPORT_PROPERTY_NAME ) ; \n + \n + SINGLE \n + boolean disableVideo = false ; \n + if ( disableVideoObj != null ) \n + { \n + disableVideo = Boolean . valueOf ( disableVideoObj ) \n + . booleanValue ( ) ; \n + } \n + \n + SINGLE \n + if ( disableVideo ) \n + return ; \n + \n SINGLE \n SINGLE \n logger . info ( STRING1 ) ; \n public interface MediaService \n COMMENT \n COMMENT \n public static final int BIND_RETRIES_DEFAULT_VALUE = NUMBER0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DISABLE_VIDEO_SUPPORT_PROPERTY_NAME \n + = STRING2 ; \n \n COMMENT \n COMMENT", "msg_token": "Add property to media service to disable video support skip device detection"} {"diff": " public class TestUpgrade extends TomcatBaseTest { \n SINGLE \n Assert . assertEquals ( MESSAGE , response ) ; \n Assert . assertEquals ( MESSAGE , response ) ; \n - \n - pw . close ( ) ; \n }", "msg_token": "Remove close it just triggers errors"} {"diff": " public abstract class AnnotationCodegen { \n public static final List < JvmFlagAnnotation > METHOD_FLAGS = Arrays . asList ( \n new JvmFlagAnnotation ( STRING0 , Opcodes . ACC_STRICT ) , \n new JvmFlagAnnotation ( STRING1 , Opcodes . ACC_SYNCHRONIZED ) , \n - new JvmFlagAnnotation ( STRING2 , Opcodes . ACC_NATIVE ) , \n - new JvmFlagAnnotation ( STRING3 , Opcodes . ACC_NATIVE ) \n + new JvmFlagAnnotation ( STRING2 , Opcodes . ACC_NATIVE ) \n ) ; \n \n private static final AnnotationVisitor NO_ANNOTATION_VISITOR = new AnnotationVisitor ( Opcodes . ASM5 ) { } ; \n public class AsmUtil { \n } \n } \n \n + if ( functionDescriptor . getOriginal ( ) . isExternal ( ) ) { \n + flags |= Opcodes . ACC_NATIVE ; \n + } \n + \n if ( AnnotationUtilKt . isPlatformStaticInCompanionObject ( functionDescriptor ) ) { \n SINGLE \n flags &= ~ Opcodes . ACC_NATIVE ;", "msg_token": "Generate ACC_NATIVE for external"} {"diff": " public class Mesh extends BaseObj { \n \n sm . getVertexAllocation ( NUMBER0 ) . copy1DRangeFromUnchecked ( NUMBER0 , mMaxIndex , mVtxData ) ; \n if ( uploadToBufferObject ) { \n - if ( uploadToBufferObject ) { \n - sm . getVertexAllocation ( NUMBER0 ) . syncAll ( Allocation . USAGE_SCRIPT ) ; \n - } \n + sm . getVertexAllocation ( NUMBER0 ) . syncAll ( Allocation . USAGE_SCRIPT ) ; \n } \n \n sm . getIndexSetAllocation ( NUMBER0 ) . copy1DRangeFromUnchecked ( NUMBER0 , mIndexCount , mIndexData ) ;", "msg_token": "Remove duplicate check in Mesh"} {"diff": " public class Entity implements IEntity { \n } else { \n if ( this . mChildrenSortPending ) { \n ZIndexSorter . getInstance ( ) . sort ( this . mChildren ) ; \n + this . mChildrenSortPending = false ; \n } \n \n final int childCount = children . size ( ) ;", "msg_token": "reset mChildrenSortPending after sort"} {"diff": " import NAMESPACE ; \n rebuffering = false ; \n setState ( ExoPlayer . STATE_BUFFERING ) ; \n \n - if ( positionUs == C . UNSET_TIME_US ) { \n - SINGLE \n + if ( positionUs == C . UNSET_TIME_US \n + || ( readingPeriod != playingPeriod && ( periodIndex == playingPeriod . index \n + || ( readingPeriod != null && periodIndex == readingPeriod . index ) ) ) ) { \n + SINGLE \n + SINGLE \n periodIndex = Timeline . NO_PERIOD_INDEX ; \n }", "msg_token": "Clear the timeline on seeking if renderers are reading ahead"} {"diff": " public class PushController implements Disposable { \n boolean isSelected , \n boolean isSingleRepositoryProject ) { \n PushTarget target = support . getDefaultTarget ( repository ) ; \n - final MyRepoModel model = new MyRepoModel ( repository , support , isSelected , new PushSpec ( support . getSource ( repository ) , target ) , \n + final MyRepoModel model = new MyRepoModel ( repository , support , isSingleRepositoryProject || isSelected , \n + new PushSpec ( support . getSource ( repository ) , target ) , \n DEFAULT_CHILDREN_PRESENTATION_NUMBER ) ; \n RepositoryWithBranchPanel repoPanel = new RepositoryWithBranchPanel ( myProject , DvcsUtil . getShortRepositoryName ( repository ) , \n support . getSource ( repository ) . getPresentation ( ) ,", "msg_token": "push Don t require preselected repositories if there is only one"} {"diff": " public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon \n \n stopWatch . stop ( ) ; \n if ( log . isInfoEnabled ( ) ) { \n - log . info ( STRING0 + getVersion ( ) + STRING1 + getName ( ) + STRING2 + TimeUtils . printDuration ( stopWatch . taken ( ) ) + STRING3 + getUptime ( ) + STRING4 ) ; \n + log . info ( STRING5 , getUptime ( ) ) ; \n + log . info ( STRING0 + getVersion ( ) + STRING1 + getName ( ) + STRING2 + TimeUtils . printDuration ( stopWatch . taken ( ) ) ) ; \n } \n \n SINGLE", "msg_token": "Made uptime when stopping Camel more easy to spot in its own log line"} {"diff": " public abstract class PullToRefreshBase < T extends View > extends LinearLayout { \n return false ; \n } \n \n - if ( state == REFRESHING && disableScrollingWhileRefreshing ) { \n - return true ; \n + if ( state == REFRESHING ) { \n + return disableScrollingWhileRefreshing ; \n } \n \n final int action = event . getAction ( ) ;", "msg_token": "Hopefully fix bug where manually calling setRefreshing and then scrolling would cause refresh pull"} {"diff": " public class CodeStyleSettingPresentation { \n ApplicationBundle . message ( STRING0 ) ) \n ) ) ; \n \n - result . put ( new SettingsGroup ( SPACES_IN_TYPE_ARGUMENTS ) , ContainerUtil . < CodeStyleSettingPresentation > immutableList ( ) ) ; \n + result . put ( new SettingsGroup ( SPACES_IN_TYPE_ARGUMENTS ) , ContainerUtil . immutableList ( \n + new CodeStyleSettingPresentation ( STRING1 , ApplicationBundle . message ( STRING2 ) ) \n + ) ) ; \n \n result . put ( new SettingsGroup ( SPACES_IN_TYPE_PARAMETERS ) , ContainerUtil . < CodeStyleSettingPresentation > immutableList ( ) ) ;", "msg_token": "Added code style setting presentation to space settings"} {"diff": " class WebViewRenderer extends WebRenderer { \n \n WebSettings webSettings = mWebView . getSettings ( ) ; \n webSettings . setJavaScriptEnabled ( true ) ; \n + webSettings . setDomStorageEnabled ( true ) ; \n webSettings . setGeolocationEnabled ( true ) ; \n webSettings . setSupportZoom ( true ) ; \n webSettings . setTextZoom ( Settings . get ( ) . getWebViewTextZoom ( ) ) ;", "msg_token": "Add webivew support for localStorage"} {"diff": " public class MessageCompose extends Activity implements OnClickListener , OnFocus \n return message ; \n } \n \n - private String appendSignature ( String text ) { \n + private String appendSignature ( String text ) { \n String mSignature ; \n mSignature = mAccount . getSignature ( ) ; \n - \n - if ( mSignature != null && ! mSignature . contentEquals ( STRING0 ) ) { \n - text += STRING1 + mAccount . getSignature ( ) ; \n + \n + if ( mSignature != null && ! mSignature . contentEquals ( STRING0 ) ) { \n + text += STRING2 + mAccount . getSignature ( ) ; \n } \n \n return text ;", "msg_token": "Reverted signature formatting code that was not meant to be committed"} {"diff": " public class ReaderRelatedPostsView extends LinearLayout { \n txtExcerpt . setVisibility ( View . GONE ) ; \n } \n \n - if ( relatedPost . hasFeaturedImageUrl ( ) ) { \n + if ( relatedPost . hasFeaturedImageUrl ( ) && relatedPost . hasExcerpt ( ) ) { \n String imageUrl = PhotonUtils . getPhotonImageUrl ( relatedPost . getFeaturedImageUrl ( ) , imageWidth , imageHeight ) ; \n imgFeatured . setImageUrl ( imageUrl , WPNetworkImageView . ImageType . PHOTO ) ; \n imgFeatured . setVisibility ( View . VISIBLE ) ;", "msg_token": "Don t show featured image unless there s an excerpt"} {"diff": " public class Main extends MainSupport { \n } \n \n COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public CamelContext getOrCreateCamelContext ( ) { \n SINGLE", "msg_token": "Added a comment for the Main getOrCreateCamelContext"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class JavaConfigContextLoader implements ContextLoader { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed links in Javadoc"} {"diff": " public final class ActiveServices { \n EventLog . writeEvent ( EventLogTags . AM_SERVICE_CRASHED_TOO_MUCH , \n sr . userId , sr . crashCount , sr . shortName , app . pid ) ; \n bringDownServiceLocked ( sr ) ; \n - } else if ( ! allowRestart ) { \n + } else if ( ! allowRestart || ! mAm . isUserRunningLocked ( sr . userId , false ) ) { \n bringDownServiceLocked ( sr ) ; \n } else { \n boolean canceled = scheduleServiceRestartLocked ( sr , true ) ;", "msg_token": "ActivityManager Do not add service to reschedule after removing users"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed webview events package path"} {"diff": " public class Snackbar extends RelativeLayout { \n private EventListener mEventListener ; \n private boolean mIsShowing = false ; \n private boolean mCanSwipeToDismiss = false ; \n + private boolean mIsDismissing = false ; \n \n private Snackbar ( Context context ) { \n super ( context ) ; \n public class Snackbar extends RelativeLayout { \n return ; \n } \n \n + if ( mIsDismissing ) { \n + return ; \n + } \n + \n final Animation slideOut = AnimationUtils . loadAnimation ( getContext ( ) , R . anim . snackbar_out ) ; \n slideOut . setAnimationListener ( new Animation . AnimationListener ( ) { \n @ override \n public void onAnimationStart ( Animation animation ) { \n - \n + mIsDismissing = true ; \n } \n \n @ override", "msg_token": "don t restart slideout if already dismissing"} {"diff": " public interface InternalPartition { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n boolean isLocal ( ) ;", "msg_token": "Fixed typo in javadoc"} {"diff": " public class HttpArtifactCache implements ArtifactCache { \n StandardCharsets . UTF_8 ) ) ; \n os . write ( key . getBytes ( StandardCharsets . UTF_8 ) ) ; \n os . write ( ( STRING0 + BOUNDARY + STRING1 ) . getBytes ( StandardCharsets . UTF_8 ) ) ; \n - os . write ( STRING2 \n + os . write ( STRING3 \n . getBytes ( StandardCharsets . UTF_8 ) ) ; \n os . write ( STRING4 . getBytes ( StandardCharsets . UTF_8 ) ) ;", "msg_token": "don t set filename in content disposition"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class FMLNetworkHandler \n {", "msg_token": "Way to go missing import"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TestShapefileStreetGraphBuilderImpl extends TestCase { \n \n + @ test \n public void testBasic ( ) throws Exception { \n Graph gg = new Graph ( ) ; \n \n - File file = new File ( STRING0 ) ; \n + File file = new File ( getClass ( ) . getResource ( STRING1 ) . getFile ( ) ) ; \n \n if ( ! file . exists ( ) ) { \n System . out . println ( STRING2 ) ;", "msg_token": "use getResource to locate file"} {"diff": " public class DeterministicKeyChain implements EncryptableKeyChain { \n \n COMMENT \n protected DeterministicKey getKeyByPath ( ImmutableList < ChildNumber > path ) { \n - return hierarchy . get ( path , false , false ) ; \n + return getKeyByPath ( path , false ) ; \n + } \n + \n + COMMENT \n + public DeterministicKey getKeyByPath ( ImmutableList < ChildNumber > path , boolean create ) { \n + return hierarchy . get ( path , false , create ) ; \n } \n \n COMMENT", "msg_token": "Add method to derive new keys when queried by path"} {"diff": " public class WallpaperBackupHelper extends FileBackupHelperBase implements Backu \n if ( widthRatio > NUMBER0 && widthRatio < FLOAT0 \n && heightRatio > NUMBER0 && heightRatio < FLOAT0 ) { \n SINGLE \n - if ( DEBUG ) Slog . d ( TAG , STRING0 ) ; \n + Slog . d ( TAG , STRING1 ) ; \n f . renameTo ( new File ( WALLPAPER_IMAGE ) ) ; \n SINGLE \n SINGLE \n SINGLE \n } else { \n - if ( DEBUG ) Slog . d ( TAG , STRING2 + widthRatio \n + Slog . i ( TAG , STRING3 + widthRatio \n + STRING4 + heightRatio ) ; \n f . delete ( ) ; \n }", "msg_token": "Briefly log wallpaper restore outcomes"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class SpongeEventManager implements EventManager { \n public class SpongeEventManager implements EventManager { \n } \n \n @ override \n - public boolean call ( org . spongepowered . api . event . Event spongeEvent ) { \n + public boolean call ( Event spongeEvent ) { \n return spongeBus . post ( new SpongeProxyEvent ( spongeEvent ) ) ; \n } \n }", "msg_token": "Favor an import over a qualification"} {"diff": " final class GridLayoutManager extends RecyclerView . LayoutManager { \n } \n \n private void initScrollController ( ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + int paddingPrimaryDiff , paddingSecondaryDiff ; \n + if ( mOrientation == HORIZONTAL ) { \n + paddingPrimaryDiff = getPaddingLeft ( ) - mWindowAlignment . horizontal . getPaddingLow ( ) ; \n + paddingSecondaryDiff = getPaddingTop ( ) - mWindowAlignment . vertical . getPaddingLow ( ) ; \n + } else { \n + paddingPrimaryDiff = getPaddingTop ( ) - mWindowAlignment . vertical . getPaddingLow ( ) ; \n + paddingSecondaryDiff = getPaddingLeft ( ) - mWindowAlignment . horizontal . getPaddingLow ( ) ; \n + } \n + mScrollOffsetPrimary -= paddingPrimaryDiff ; \n + mScrollOffsetSecondary -= paddingSecondaryDiff ; \n + \n mWindowAlignment . horizontal . setSize ( getWidth ( ) ) ; \n mWindowAlignment . horizontal . setPadding ( getPaddingLeft ( ) , getPaddingRight ( ) ) ; \n mWindowAlignment . vertical . setSize ( getHeight ( ) ) ;", "msg_token": "handle padding change properly"} {"diff": " public class GroupProperties { \n HOSTED_MANAGEMENT_ENABLED = new GroupProperty ( config , PROP_HOSTED_MANAGEMENT_ENABLED , STRING0 ) ; \n \n SINGLE \n - HOSTED_MANAGEMENT_URL = new GroupProperty ( config , PROP_HOSTED_MANAGEMENT_URL , STRING1 ) ; \n + HOSTED_MANAGEMENT_URL = new GroupProperty ( config , PROP_HOSTED_MANAGEMENT_URL , STRING2 ) ; \n \n HEALTH_MONITORING_LEVEL = new GroupProperty ( config , PROP_HEALTH_MONITORING_LEVEL , HealthMonitorLevel . SILENT . toString ( ) ) ; \n HEALTH_MONITORING_DELAY_SECONDS = new GroupProperty ( config , PROP_HEALTH_MONITORING_DELAY_SECONDS , STRING3 ) ;", "msg_token": "change the url of the hosted management center"} {"diff": " public class GoLanguage extends Language { \n public static final Language INSTANCE = new GoLanguage ( ) ; \n \n protected GoLanguage ( ) { \n - super ( STRING0 , STRING1 ) ; \n + super ( STRING0 , STRING2 , STRING3 , STRING4 ) ; \n } \n \n @ nullable", "msg_token": "Fix go mime types"} {"diff": " public class BuildCommand extends AbstractCommand { \n } \n \n public ConcurrencyLimit getConcurrencyLimit ( BuckConfig buckConfig ) { \n - return new ConcurrencyLimit ( buckConfig . getNumThreads ( ) , buckConfig . getLoadLimit ( ) ) ; \n + Double loadLimit = this . loadLimit ; \n + if ( loadLimit == null ) { \n + loadLimit = ( double ) buckConfig . getLoadLimit ( ) ; \n + } \n + \n + return new ConcurrencyLimit ( buckConfig . getNumThreads ( ) , loadLimit ) ; \n } \n \n COMMENT", "msg_token": "Fix specifying load limit on command line"} {"diff": " public abstract class CamelServletContextListener < R extends Registry > implements \n COMMENT \n COMMENT \n private void initCamelContext ( ServletCamelContext camelContext , Map < String , Object > parameters ) throws Exception { \n + String messageHistory = ( String ) parameters . remove ( STRING0 ) ; \n + if ( messageHistory != null ) { \n + camelContext . setMessageHistory ( CamelContextHelper . parseBoolean ( camelContext , messageHistory ) ) ; \n + } \n String streamCache = ( String ) parameters . remove ( STRING1 ) ; \n if ( streamCache != null ) { \n camelContext . setStreamCaching ( CamelContextHelper . parseBoolean ( camelContext , streamCache ) ) ;", "msg_token": "servletlistener component Add messageHistory option"} {"diff": " class Stats implements Cloneable { \n \n @ override \n public String toString ( ) { \n - return String . format ( STRING0 , avg / FLOAT0 , min / FLOAT0 , max / FLOAT0 ) ; \n + return String . format ( STRING1 , min / FLOAT0 , avg / FLOAT0 , max / FLOAT0 ) ; \n } \n }", "msg_token": "change stats logging order to min avg max not avg min max"} {"diff": " public class FileContentProvider extends ContentProvider { \n mFileProjectionMap . put ( ProviderTableMeta . FILE_ETAG , \n ProviderTableMeta . FILE_ETAG ) ; \n mFileProjectionMap . put ( ProviderTableMeta . FILE_SHARE_BY_LINK , \n + ProviderTableMeta . FILE_SHARE_BY_LINK ) ; \n + mFileProjectionMap . put ( ProviderTableMeta . FILE_PUBLIC_LINK , \n ProviderTableMeta . FILE_PUBLIC_LINK ) ; \n }", "msg_token": "Fix problem in mFileProjectionMap"} {"diff": " public abstract class FileAsyncHttpResponseHandler extends AsyncHttpResponseHand \n COMMENT \n public FileAsyncHttpResponseHandler ( File file ) { \n super ( ) ; \n - assert ( file != null ) ; \n + AssertUtils . asserts ( file != null , STRING0 ) ; \n this . mFile = file ; \n } \n \n public abstract class FileAsyncHttpResponseHandler extends AsyncHttpResponseHand \n COMMENT \n COMMENT \n protected File getTemporaryFile ( Context context ) { \n - assert ( context != null ) ; \n + AssertUtils . asserts ( context != null , STRING1 ) ; \n try { \n + SINGLE \n + assert context != null ; \n return File . createTempFile ( STRING2 , STRING3 , context . getCacheDir ( ) ) ; \n } catch ( IOException e ) { \n Log . e ( LOG_TAG , STRING4 , e ) ;", "msg_token": "Replaced assert calls with AssertUtils asserts which are handled properly in release mode"} {"diff": " public class AudioTrack \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AudioTrack \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AudioTrack \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", "msg_token": "Fix API level in documentation to refer to MNC"} {"diff": " public class WebImage implements SmartImage { \n conn . setReadTimeout ( READ_TIMEOUT ) ; \n BitmapFactory . Options options = new BitmapFactory . Options ( ) ; \n options . inSampleSize = NUMBER0 ; \n + options . purgeable = true ; \n Rect rect = new Rect ( - NUMBER1 , - NUMBER1 , - NUMBER1 , - NUMBER1 ) ; \n bitmap = BitmapFactory . decodeStream ( ( InputStream ) conn . getContent ( ) , rect , options ) ; \n } catch ( Exception e ) {", "msg_token": "Add purgeable flag to recycle bitmaps when the memory gets full"} {"diff": " public class PhotoViewerActivity extends SherlockFragmentActivity implements OnU \n mController . addPhotoSelectionListener ( this ) ; \n \n final Intent intent = getIntent ( ) ; \n - mViewPager . setCurrentItem ( intent . getIntExtra ( EXTRA_POSITION , NUMBER0 ) ) ; \n + final int requestedPosition = intent . getIntExtra ( EXTRA_POSITION , NUMBER0 ) ; \n + if ( mViewPager . getCurrentItem ( ) != requestedPosition ) { \n + mViewPager . setCurrentItem ( requestedPosition ) ; \n + } else { \n + onPageSelected ( requestedPosition ) ; \n + } \n \n mFriendsFragment = new FriendsListFragment ( ) ; \n }", "msg_token": "Fix Caption not showing in Action Bar on relaunch"} {"diff": " public class HqlParserTest extends QueryBaseWithDomain < HqlParserTest > { \n \n SINGLE \n from ( $ ( c ) ) . innerJoin ( $ ( c . getMate ( ) ) . as ( $ ( m ) ) ) \n - . leftJoin ( $ ( c . getKittens ( ) ) . as ( $ ( k ) ) ) \n - . parse ( ) ; \n + . leftJoin ( $ ( c . getKittens ( ) ) . as ( $ ( k ) ) ) . parse ( ) ; \n SINGLE \n from ( $ ( c ) ) . leftJoin ( $ ( c . getMate ( ) . getKittens ( ) ) . as ( $ ( k ) ) ) . parse ( ) ; \n SINGLE", "msg_token": "added convenience method to MiniApi"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class MasterInfoIntegrationTest { \n \n SINGLE \n SINGLE \n + @ ignore \n @ test \n public void concurrentCreateJournalTest ( ) throws Exception { \n SINGLE", "msg_token": "Disable failing test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class TvInputHardwareManager implements TvInputHal . Callback { \n } \n int sinkDevice = mAudioManager . getDevicesForStream ( AudioManager . STREAM_MUSIC ) ; \n for ( AudioDevicePort port : devicePorts ) { \n - if ( ( port . type ( ) & sinkDevice ) != NUMBER0 ) { \n + if ( ( port . type ( ) & sinkDevice ) != NUMBER0 && \n + ( port . type ( ) & AudioSystem . DEVICE_BIT_IN ) == NUMBER0 ) { \n sinks . add ( port ) ; \n } \n }", "msg_token": "Exclude input devices when finding sinks from audio policy"} {"diff": " public @ interface FieldProxy { \n COMMENT \n private final FieldResolver . Factory fieldResolverFactory ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n protected Binder ( MethodDescription . InDefinedShape getterMethod , MethodDescription . InDefinedShape setterMethod ) { \n this ( new FieldResolver . Factory . Simplex ( getterMethod , setterMethod ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n protected Binder ( TypeDescription proxyType , MethodDescription . InDefinedShape getterMethod , MethodDescription . InDefinedShape setterMethod ) { \n this ( new FieldResolver . Factory . Duplex ( proxyType , getterMethod , setterMethod ) ) ; \n }", "msg_token": "Added missing documentation"} {"diff": " public class MessageListFragment extends QKFragment implements ActivityLauncher , \n SINGLE \n SINGLE \n \n - private long mLastMessageId ; \n private BackgroundQueryHandler mBackgroundQueryHandler ; \n \n private long mThreadId ; \n public class MessageListFragment extends QKFragment implements ActivityLauncher , \n mConversation . setMessageCount ( NUMBER0 ) ; \n SINGLE \n case DELETE_MESSAGE_TOKEN : \n - if ( cookie instanceof Boolean && ( ( Boolean ) cookie ) . booleanValue ( ) ) { \n - SINGLE \n - mLastMessageId = NUMBER0 ; \n - } \n \n SINGLE \n NotificationManager . update ( mContext ) ;", "msg_token": "Remove unused variable MessageListFragment mLastMessageId to prevent from confusing with mLastMessageId of the observer"} {"diff": " public class TwitterException extends Exception implements TwitterResponse , Http \n \n @ override \n public String toString ( ) { \n - return getMessage ( ) + ( nested ? STRING0 : STRING1 \n + return getMessage ( ) + ( nested ? STRING0 : STRING2 \n + STRING3 + getExceptionDiagnosis ( ) . getStackLineHashAsHex ( ) \n + STRING4 + getExceptionDiagnosis ( ) . getLineNumberHashAsHex ( ) ) \n + STRING5 + ( nested ? STRING0 : STRING6 + getExceptionCode ( ) + STRING7 ) +", "msg_token": "put line break after error message to improve exception message readability"} {"diff": " public class WordPressDB { \n public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = STRING0 ; \n public static final String COLUMN_NAME_UPLOAD_STATE = STRING1 ; \n \n - private static final int DATABASE_VERSION = NUMBER0 ; \n + private static final int DATABASE_VERSION = NUMBER1 ; \n \n private static final String CREATE_TABLE_BLOGS = STRING2 \n + STRING3 ; \n public class WordPressDB { \n SINGLE \n ctx . deleteDatabase ( STRING4 ) ; \n currentVersion ++ ; \n - case NUMBER2 : \n + case NUMBER0 : \n resetThemeTable ( ) ; \n currentVersion ++ ; \n }", "msg_token": "Drop Simperium DB could contains invalid Note IDs"} {"diff": " public class Strings { \n throw new ElasticsearchIllegalStateException ( STRING0 ) ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static String substring ( String s , int beginIndex , int endIndex ) { \n + if ( s == null ) { \n + return s ; \n + } \n + \n + int realEndIndex = s . length ( ) > NUMBER0 ? s . length ( ) - NUMBER1 : NUMBER0 ; \n + \n + if ( endIndex > realEndIndex ) { \n + return s . substring ( beginIndex ) ; \n + } else { \n + return s . substring ( beginIndex , endIndex ) ; \n + } \n + } \n }", "msg_token": "Add Strings substring that handles short strings"} {"diff": " public class BottomBar extends FrameLayout implements View . OnClickListener { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class BottomBar extends FrameLayout implements View . OnClickListener { \n public void setFragmentItems ( FragmentManager fragmentManager , @ idres int containerResource , \n BottomBarFragment . . . fragmentItems ) { \n clearItems ( ) ; \n - \n mFragmentManager = fragmentManager ; \n mFragmentContainer = containerResource ; \n mFragments = fragmentItems ;", "msg_token": "Added support for fragments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SuperToast \n private Animations mAnimations = Animations . FADE ; \n private int mXOffset = NUMBER0 ; \n private int mYOffset = NUMBER0 ; \n - private OnToastDismissListener mOnToastDismissListener ; \n + private OnDismissListener mOnDismissListener ; \n \n COMMENT \n COMMENT \n public class SuperToast \n COMMENT \n COMMENT \n COMMENT \n - public void setOnDismissListener ( OnToastDismissListener onToastDismissListener ) { \n + public void setOnDismissListener ( OnDismissListener onToastDismissListener ) { \n \n - this . mOnToastDismissListener = onToastDismissListener ; \n + this . mOnDismissListener = onToastDismissListener ; \n \n } \n \n public class SuperToast \n COMMENT \n COMMENT \n COMMENT \n - public OnToastDismissListener getOnDismissListener ( ) { \n + public OnDismissListener getOnDismissListener ( ) { \n \n - return mOnToastDismissListener ; \n + return mOnDismissListener ; \n \n }", "msg_token": "Shortened file names"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OIndexManagerImpl extends ODocumentWrapperNoClass implements OIndex \n super . reload ( STRING0 ) ; \n \n SINGLE \n - for ( OClass c : getDatabase ( ) . getMetadata ( ) . getSchema ( ) . getClasses ( ) ) { \n + final Collection < OClass > classes = new ArrayList < OClass > ( getDatabase ( ) . getMetadata ( ) . getSchema ( ) . getClasses ( ) ) ; \n + for ( OClass c : classes ) { \n for ( OProperty p : c . properties ( ) ) { \n if ( p . getIndex ( ) != null ) { \n p . getIndex ( ) . delegate = indexes . get ( p . getIndex ( ) . delegate . getName ( ) . toLowerCase ( ) ) ;", "msg_token": "Fixed concurrency problem by working on a copy of class list"} {"diff": " public class EditShareFragment extends Fragment { \n boolean areEditOptionsAvailable = ! isFederated || isNotReshareableFederatedSupported ; \n \n if ( mFile . isFolder ( ) && areEditOptionsAvailable ) { \n - SINGLE \n + SINGLE \n SINGLE \n compound = ( CompoundButton ) editShareView . findViewById ( R . id . canEditCreateCheckBox ) ; \n compound . setChecked ( ( sharePermissions & OCShare . CREATE_PERMISSION_FLAG ) > NUMBER0 ) ;", "msg_token": "Fix var name in comment"} {"diff": " public class WebView extends AbsoluteLayout \n df = mScrollFilter ; \n } \n canvas . setDrawFilter ( df ) ; \n - int content = nativeDraw ( canvas , color , extras , true ) ; \n + SINGLE \n + SINGLE \n + int content = nativeDraw ( canvas , color , extras , false ) ; \n canvas . setDrawFilter ( null ) ; \n if ( content != NUMBER0 ) { \n mWebViewCore . sendMessage ( EventHub . SPLIT_PICTURE_SET , content , NUMBER0 ) ;", "msg_token": "Turn off picture splitting for now"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class DropDownPreference extends ListPreference { \n \n private final Context mContext ;", "msg_token": "Add docs to DropDownPreference"} {"diff": " public class AnnouncerTest extends CuratorTestBase \n \n announcer . stop ( ) ; \n \n - int count = NUMBER0 ; \n - while ( ( curator . checkExists ( ) . forPath ( testPath1 ) != null ) || ( curator . checkExists ( ) . forPath ( testPath1 ) != null ) ) { \n + while ( ( curator . checkExists ( ) . forPath ( testPath1 ) != null ) || ( curator . checkExists ( ) . forPath ( testPath2 ) != null ) ) { \n Thread . sleep ( NUMBER1 ) ; \n - if ( ++ count > NUMBER2 ) { \n - throw new ISE ( STRING0 ) ; \n - } \n } \n \n Assert . assertNull ( curator . checkExists ( ) . forPath ( testPath1 ) ) ;", "msg_token": "Fix announcer test bad check"} {"diff": " public abstract class ManagerBase extends LifecycleMBeanBase \n COMMENT \n COMMENT \n COMMENT \n - protected int maxInactiveInterval = NUMBER0 ; \n + protected int maxInactiveInterval = NUMBER1 * NUMBER0 ; \n \n \n COMMENT", "msg_token": "Align default with Context default"} {"diff": " public class ChunkOutputWidget extends Composite \n host_ . onOutputHeightChanged ( NUMBER0 , ensureVisible ) ; \n } \n \n - state_ = CHUNK_READY ; \n + state_ = root_ . getWidgetCount ( ) == NUMBER0 ? CHUNK_EMPTY : CHUNK_READY ; \n lastOutputType_ = RmdChunkOutputUnit . TYPE_NONE ; \n setOverflowStyle ( ) ; \n showReadyState ( ) ;", "msg_token": "keep empty chunks hidden in editor when saving notebooks"} {"diff": " final class SettingsState { \n private void skipEmptyTextTags ( XmlPullParser parser ) \n throws IOException , XmlPullParserException { \n while ( accept ( parser , XmlPullParser . TEXT , null ) \n - && STRING0 . equals ( parser . getText ( ) ) ) { \n + && parser . isWhitespace ( ) ) { \n parser . next ( ) ; \n } \n }", "msg_token": "Fix XML parsing crash in SettingsProvider"} {"diff": " public class ClientInterceptor implements Interceptor { \n Request originalRequest = chain . request ( ) ; \n Request requestWithUserAgent = originalRequest . newBuilder ( ) \n . removeHeader ( STRING0 ) \n - . addHeader ( STRING0 , STRING1 ) \n + . addHeader ( STRING0 , STRING2 ) \n . build ( ) ; \n \n return chain . proceed ( requestWithUserAgent ) ; \n } \n - } \n + }", "msg_token": "Fix user agent"} {"diff": " public class MediaSessionService extends SystemService implements Monitor { \n SINGLE \n int userId = ActivityManager . getCurrentUser ( ) ; \n UserRecord user = mUserRecords . get ( userId ) ; \n - if ( user . mLastMediaButtonReceiver != null \n - || user . mRestoredMediaButtonReceiver != null ) { \n + if ( user != null && ( user . mLastMediaButtonReceiver != null \n + || user . mRestoredMediaButtonReceiver != null ) ) { \n if ( DEBUG ) { \n Log . d ( TAG , STRING0 \n + user . mLastMediaButtonReceiver + STRING1", "msg_token": "Prevent NPE in MediaSessionService"} {"diff": " public class KTXTextureData implements TextureData , CubemapData { \n numberOfArrayElements = compressedData . getInt ( ) ; \n numberOfFaces = compressedData . getInt ( ) ; \n numberOfMipmapLevels = compressedData . getInt ( ) ; \n + if ( numberOfMipmapLevels == NUMBER0 ) { \n + numberOfMipmapLevels = NUMBER1 ; \n + useMipMaps = true ; \n + } \n int bytesOfKeyValueData = compressedData . getInt ( ) ; \n imagePos = compressedData . position ( ) + bytesOfKeyValueData ; \n if ( ! compressedData . isDirect ( ) ) { \n public class KTXTextureData implements TextureData , CubemapData { \n } \n } \n if ( previousUnpackAlignment != NUMBER2 ) Gdx . gl . glPixelStorei ( GL20 . GL_UNPACK_ALIGNMENT , previousUnpackAlignment ) ; \n - if ( useMipMaps && numberOfMipmapLevels == NUMBER1 ) Gdx . gl . glGenerateMipmap ( target ) ; \n + if ( useMipMaps ( ) ) Gdx . gl . glGenerateMipmap ( target ) ; \n \n SINGLE \n disposePreparedData ( ) ;", "msg_token": "Fix automipmap for KTX files"} {"diff": " public class OFetchHelper { \n \n public static Map < String , Integer > buildFetchPlan ( final String iFetchPlan ) { \n final Map < String , Integer > fetchPlan = new HashMap < String , Integer > ( ) ; \n - \n + fetchPlan . put ( ROOT_FETCH , NUMBER0 ) ; \n if ( iFetchPlan != null ) { \n SINGLE \n final List < String > planParts = OStringSerializerHelper . split ( iFetchPlan , STRING0 ) ; \n public class OFetchHelper { \n parts = OStringSerializerHelper . split ( planPart , STRING1 ) ; \n fetchPlan . put ( parts . get ( NUMBER0 ) , Integer . parseInt ( parts . get ( NUMBER1 ) ) ) ; \n } \n - } else { \n - fetchPlan . put ( ROOT_FETCH , NUMBER0 ) ; \n } \n - } else \n - fetchPlan . put ( ROOT_FETCH , NUMBER0 ) ; \n - \n + } \n return fetchPlan ; \n }", "msg_token": "Fixed bug on Fetch Plan map building"} {"diff": " public class JavaClientTest extends TestCase { \n c . update ( new BasicDBObject ( STRING0 , NUMBER0 ) , new BasicDBObject ( STRING1 , new BasicDBObject ( STRING2 , NUMBER0 ) ) ) ; \n } \n \n + @ test \n + public void testAllTypes ( ) { \n + DBCollection c = _db . getCollectionFromString ( STRING3 ) ; \n + c . drop ( ) ; \n + String json = STRING4 ; \n + BasicDBObject a = ( BasicDBObject ) JSON . parse ( json ) ; \n + c . insert ( a ) ; \n + DBObject b = c . findOne ( ) ; \n + assertTrue ( a . equals ( b ) ) ; \n + } \n + \n final Mongo _mongo ; \n final DB _db ;", "msg_token": "added test to make sure all types are correctly encoded with BSON to from db"} {"diff": " public class RPCBlockReadRequest extends RPCRequest { \n private final long mOffset ; \n private final long mLength ; \n \n - SINGLE \n public RPCBlockReadRequest ( long blockId , long offset , long length ) { \n mBlockId = blockId ; \n mOffset = offset ; \n public class RPCBlockReadResponse extends RPCResponse { \n private final DataBuffer mData ; \n private final Status mStatus ; \n \n - SINGLE \n public RPCBlockReadResponse ( long blockId , long offset , long length , DataBuffer data , Status status ) { \n mBlockId = blockId ; \n mOffset = offset ; \n public abstract class RPCMessage implements EncodedMessage { \n SINGLE \n public enum Type implements EncodedMessage { \n RPC_ERROR_RESPONSE ( NUMBER0 ) , \n - SINGLE \n RPC_BLOCK_READ_REQUEST ( NUMBER1 ) , \n RPC_BLOCK_READ_RESPONSE ( NUMBER2 ) , \n RPC_BLOCK_WRITE_REQUEST ( NUMBER3 ) ,", "msg_token": "Remove TODO comments related to this change"} {"diff": " public class DBCursorOldTest extends DatabaseTestCase { \n } ) . start ( ) ; \n \n \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n SINGLE \n c . save ( new BasicDBObject ( STRING0 , NUMBER2 ) ) ; \n latch . await ( ) ;", "msg_token": "Decreasing sleep in test to try to make it faster"} {"diff": " public class InferenceSession { \n if ( lub != null ) { \n inferenceVariable . setInstantiation ( lub instanceof PsiCapturedWildcardType ? ( ( PsiCapturedWildcardType ) lub ) . getWildcard ( ) : lub ) ; \n } \n - else if ( acceptObject || upperBounds . size ( ) > NUMBER0 || ! upperBounds . get ( NUMBER1 ) . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ) { \n + else { \n PsiType glb = null ; \n if ( isThrowable ( upperBounds ) ) { \n glb = PsiType . getJavaLangRuntimeException ( myManager , GlobalSearchScope . allScope ( myManager . getProject ( ) ) ) ; \n public class InferenceSession { \n } \n } \n } \n - if ( glb != null ) { \n + if ( glb != null && ( acceptObject || ! glb . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ) ) { \n inferenceVariable . setInstantiation ( glb ) ; \n } \n }", "msg_token": "fair reject Object"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class ActiveMQComponent extends JmsComponent { \n return ( ActiveMQConfiguration ) super . getConfiguration ( ) ; \n } \n \n + public void setBrokerURL ( String brokerURL ) { \n + getConfiguration ( ) . setBrokerURL ( brokerURL ) ; \n + } \n + \n + \n @ override \n protected JmsConfiguration createConfiguration ( ) { \n return new ActiveMQConfiguration ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "allow the brokerURL to be configured on the ActiveMQComponent"} {"diff": " import NAMESPACE ; \n \n public class TesterAccessLogValve extends ValveBase implements AccessLog { \n \n - private static boolean RELAX_TIMING = Boolean . getBoolean ( STRING0 ) ; \n + private static final boolean RELAX_TIMING = Boolean . getBoolean ( STRING0 ) ; \n \n SINGLE \n private static final long ERROR_MARGIN = RELAX_TIMING ? NUMBER0 : NUMBER1 ;", "msg_token": "Make constant final"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in code sample for ForwardingWrapperTester"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n } \n String id = ackedStanza . getStanzaId ( ) ; \n if ( StringUtils . isNullOrEmpty ( id ) ) { \n - return ; \n + continue ; \n } \n PacketListener listener = stanzaIdAcknowledgedListeners . remove ( id ) ; \n if ( listener != null ) {", "msg_token": "Fix Stream Management ack listner invocation"} {"diff": " public class GroovyTestCase extends TestCase { \n COMMENT \n COMMENT \n protected void assertScript ( final String script ) throws Exception { \n - log . info ( STRING0 ) ; \n - SINGLE \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - String testClassName = getTestClassName ( ) ; \n - \n - File dir = new File ( STRING1 ) ; \n - dir . mkdirs ( ) ; \n - File file = new File ( dir , testClassName ) ; \n - \n - log . info ( STRING2 + file ) ; \n - \n - DefaultGroovyMethods . withPrintWriter ( file , new Closure ( null ) { \n - protected void doCall ( PrintWriter writer ) { \n - writer . println ( script ) ; \n - } \n - } ) ; \n - \n GroovyShell shell = new GroovyShell ( ) ; \n - shell . evaluate ( new GroovyCodeSource ( file ) ) ; \n + shell . evaluate ( script , getTestClassName ( ) ) ; \n } \n \n protected String getTestClassName ( ) {", "msg_token": "Simplified the assertScript method to avoid having to create directories and files"} {"diff": " public class NearCacheTest extends HazelcastTestSupport { \n @ override \n public void run ( ) throws Exception { \n final MapProxyImpl mapProxy = ( MapProxyImpl ) map ; \n - final MapService mapService = mapProxy . getService ( ) ; \n + final MapService mapService = ( MapService ) mapProxy . getService ( ) ; \n final MapServiceContext mapServiceContext = mapService . getMapServiceContext ( ) ; \n final NearCacheProvider nearCacheProvider = mapServiceContext . getNearCacheProvider ( ) ; \n final NearCache nearCache = nearCacheProvider . getNearCache ( mapName ) ;", "msg_token": "made test compilable"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class RoutePolicySupport extends ServiceSupport implements Route \n route . getRouteContext ( ) . getCamelContext ( ) . stopRoute ( route . getId ( ) ) ; \n } \n \n + protected void stopRoute ( Route route , long timeout , TimeUnit timeUnit ) throws Exception { \n + route . getRouteContext ( ) . getCamelContext ( ) . stopRoute ( route . getId ( ) , timeout , timeUnit ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added an API to RoutePolicySupport for stopRoute to control timeout for graceful shutdown"} {"diff": " public class Notifications extends BroadcastReceiver { \n notification . audioStreamType = AudioManager . STREAM_ALARM ; \n audioManager . setStreamVolume ( AudioManager . STREAM_ALARM , \n audioManager . getStreamMaxVolume ( AudioManager . STREAM_ALARM ) , NUMBER0 ) ; \n + } else { \n + notification . audioStreamType = AudioManager . STREAM_NOTIFICATION ; \n } \n \n SINGLE", "msg_token": "Explicitly set notification audio stream"} {"diff": " public class GeoDistanceFacetCollectorParser implements FacetCollectorParser { \n throw new FacetPhaseExecutionException ( facetName , STRING0 ) ; \n } \n \n + if ( entries . isEmpty ( ) ) { \n + throw new FacetPhaseExecutionException ( facetName , STRING1 ) ; \n + } \n + \n if ( valueFieldName != null ) { \n return new ValueGeoDistanceFacetCollector ( facetName , fieldName , lat , lon , unit , geoDistance , entries . toArray ( new GeoDistanceFacet . Entry [ entries . size ( ) ] ) , \n context . fieldDataCache ( ) , context . mapperService ( ) , valueFieldName ) ;", "msg_token": "add a check for at least one range"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BlueprintCamelContext extends DefaultCamelContext implements Servic \n setLanguageResolver ( new BlueprintLanguageResolver ( bundleContext ) ) ; \n setDataFormatResolver ( new BlueprintDataFormatResolver ( bundleContext ) ) ; \n setApplicationContextClassLoader ( new BundleDelegatingClassLoader ( bundleContext . getBundle ( ) ) ) ; \n + } \n + \n + @ override \n + protected ModelJAXBContextFactory createModelJAXBContextFactory ( ) { \n SINGLE \n - setModelJAXBContextFactory ( new BlueprintModelJAXBContextFactory ( CamelNamespaceHandler . class . getClassLoader ( ) ) ) ; \n + return new BlueprintModelJAXBContextFactory ( CamelNamespaceHandler . class . getClassLoader ( ) ) ; \n } \n \n public BundleContext getBundleContext ( ) {", "msg_token": "Make similar change for camel blueprint"} {"diff": " public class TruncatedLocation extends Location { \n String s = String . format ( STRING0 + Integer . toString ( numDecimal ) + STRING1 , d ) ; \n try { \n Number number = format . parse ( s ) ; \n - double td = number . doubleValue ( ) ; \n + td = number . doubleValue ( ) ; \n } catch ( ParseException e ) { \n e . printStackTrace ( ) ; \n }", "msg_token": "Removed dual declaration"} {"diff": " public class QueryState \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 public class QueryTaskResource \n try { \n List < Page > pages = queryTaskManager . getQueryTaskResults ( taskId , outputId , DEFAULT_MAX_PAGE_COUNT , DEFAULT_MAX_WAIT_TIME ) ; \n if ( pages . isEmpty ( ) ) { \n + SINGLE \n if ( queryTaskManager . getQueryTaskInfo ( taskId ) . getState ( ) . isDone ( ) ) { \n return Response . status ( Status . GONE ) . build ( ) ; \n }", "msg_token": "Fix javadocs and add comments"} {"diff": " public class LoggingApplicationContextInitializerTests { \n String output = getOutput ( ) . trim ( ) ; \n assertTrue ( STRING0 + output , output . contains ( STRING1 ) ) ; \n assertFalse ( STRING0 + output , output . contains ( STRING2 ) ) ; \n - assertTrue ( STRING0 + output , output . startsWith ( STRING3 ) ) ; \n } \n \n @ test", "msg_token": "Relax logging tests for CI"} {"diff": " public class GameRegistry \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static Block registerBlock ( Block block , Class < ? extends ItemBlock > itemclass , String name , Object . . . itemCtorArgs ) \n {", "msg_token": "Fix itemCtorArgs javadoc in registerBlock"} {"diff": " public class XContentFactory { \n COMMENT \n COMMENT \n public static XContentBuilder yamlBuilder ( ) throws IOException { \n - return contentBuilder ( XContentType . SMILE ) ; \n + return contentBuilder ( XContentType . YAML ) ; \n } \n \n COMMENT", "msg_token": "Fix yamlBuilder to return YAML builder instead of SMILE"} {"diff": " public class OAuthSignatureCalculator implements SignatureCalculator { \n private static final String OAUTH_VERSION_1_0 = STRING0 ; \n private static final String OAUTH_SIGNATURE_METHOD = STRING1 ; \n \n - protected final byte [ ] nonceBuffer = new byte [ NUMBER0 ] ; \n + protected static final ThreadLocal < byte [ ] > NONCE_BUFFER = new ThreadLocal < byte [ ] > ( ) { \n + protected byte [ ] initialValue ( ) { \n + return new byte [ NUMBER0 ] ; \n + } \n + } ; \n \n protected final ThreadSafeHMAC mac ; \n \n public class OAuthSignatureCalculator implements SignatureCalculator { \n } \n \n protected synchronized String generateNonce ( ) { \n + byte [ ] nonceBuffer = NONCE_BUFFER . get ( ) ; \n ThreadLocalRandom . current ( ) . nextBytes ( nonceBuffer ) ; \n SINGLE \n return Base64 . encode ( nonceBuffer ) ;", "msg_token": "Fix OAuthSignatureCalculator buffer threadsafety"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class CodeMirrorEditor extends Composite \n SINGLE \n codeMirrorPanel_ = new SimplePanel ( ) ; \n initWidget ( codeMirrorPanel_ ) ; \n + getElement ( ) . getStyle ( ) . setPosition ( Position . RELATIVE ) ; \n } \n \n public CodeMirror getRawEditor ( )", "msg_token": "Edit Dialog Save and Cancel buttons don t work"} {"diff": " public class ManageDialog extends AlertActivity implements \n mHandler . removeMessages ( NUMBER0 ) ; \n \n if ( ! isFinishing ( ) ) { \n - if ( mConfig . startTime != NUMBER0 ) { \n + if ( mConfig . startTime != - NUMBER1 ) { \n long seconds = ( SystemClock . elapsedRealtime ( ) - mConfig . startTime ) / NUMBER2 ; \n mDuration . setText ( String . format ( STRING0 , \n seconds / NUMBER3 , seconds / NUMBER4 % NUMBER4 , seconds % NUMBER4 ) ) ; \n public class Vpn extends BaseNetworkStateTracker { \n \n SINGLE \n synchronized ( Vpn . this ) { \n + SINGLE \n + mConfig . startTime = SystemClock . elapsedRealtime ( ) ; \n + \n SINGLE \n checkpoint ( false ) ;", "msg_token": "Fix incorrect VPN time"} {"diff": " public final class Metadata { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public synchronized void failedUpdate ( long now ) { \n + this . lastRefreshMs = now ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public synchronized int version ( ) { \n public class NetworkClient implements KafkaClient { \n Cluster cluster = response . cluster ( ) ; \n SINGLE \n SINGLE \n - if ( cluster . nodes ( ) . size ( ) > NUMBER0 ) \n + if ( cluster . nodes ( ) . size ( ) > NUMBER0 ) { \n this . metadata . update ( cluster , now ) ; \n - else \n + } else { \n log . trace ( STRING0 , header . correlationId ( ) ) ; \n + this . metadata . failedUpdate ( now ) ; \n + } \n } \n \n COMMENT", "msg_token": "Always update the metadata when a metadata response is received to ensure we back off"} {"diff": " final class GitRepositoryUpdater implements Disposable , BulkFileListener { \n \n VirtualFile gitDir = root . findChild ( STRING0 ) ; \n assert gitDir != null ; \n + gitDir . getChildren ( ) ; \n LocalFileSystem . getInstance ( ) . addRootToWatch ( gitDir . getPath ( ) , true ) ; \n \n myRepositoryFiles = GitRepositoryFiles . getInstance ( root ) ;", "msg_token": "fixed git status refresh on external operation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class SnapshotCommands { \n - \n private static Logger logger = Logger . getLogger ( STRING0 ) ; \n private static DateFormat dateFormat = new SimpleDateFormat ( STRING1 ) ;", "msg_token": "Added multiworld support for snapshots"} {"diff": " public class ClassRenderer extends NodeRendererImpl { \n \n PsiElementFactory elementFactory = JavaPsiFacade . getInstance ( node . getProject ( ) ) . getElementFactory ( ) ; \n try { \n - return elementFactory . createExpressionFromText ( fieldDescriptor . getField ( ) . name ( ) , DebuggerUtils . findClass ( \n + return elementFactory . createExpressionFromText ( STRING0 + fieldDescriptor . getField ( ) . name ( ) , DebuggerUtils . findClass ( \n fieldDescriptor . getObject ( ) . referenceType ( ) . name ( ) , context . getProject ( ) , context . getDebugProcess ( ) . getSearchScope ( ) ) \n ) ; \n }", "msg_token": "corrected evaluation expression for private fields from base classes"} {"diff": " public class GuideEntryLoader { \n JsonContents contents = loadContents ( loadable , mod ) ; \n \n if ( contents != null ) { \n - contents . printContents ( ) ; \n + if ( DEBUG ) { \n + contents . printContents ( ) ; \n + } \n contents = contents . inheritMissingTags ( ) ; \n - contents . printContents ( ) ; \n + if ( DEBUG ) { \n + contents . printContents ( ) ; \n + } \n for ( JsonEntry entry : contents . contents ) { \n allEntries . put ( entry , loadable ) ; \n }", "msg_token": "Fix guide always logging"} {"diff": " public class Helper \n \n public static final double round2 ( double value ) \n { \n - return Math . round ( value * NUMBER0 ) / NUMBER0 ; \n + return Math . round ( value * NUMBER0 ) / NUMBER0 d ; \n } \n }", "msg_token": "fixing minor rounding bug in Helper"} {"diff": " public class AudioplayerActivity extends MediaplayerActivity { \n if ( AppConfig . DEBUG ) \n Log . d ( TAG , STRING0 \n + intent . getData ( ) . getPath ( ) ) ; \n - ExternalMedia media = new ExternalMedia ( intent . getData ( ) . getPath ( ) , MediaType . AUDIO ) ; \n + ExternalMedia media = new ExternalMedia ( intent . getData ( ) . getPath ( ) , \n + MediaType . AUDIO ) ; \n Intent launchIntent = new Intent ( this , PlaybackService . class ) ; \n launchIntent . putExtra ( PlaybackService . EXTRA_PLAYABLE , media ) ; \n launchIntent . putExtra ( PlaybackService . EXTRA_START_WHEN_PREPARED , \n public class AudioplayerActivity extends MediaplayerActivity { \n } \n \n @ override \n + protected void onNewIntent ( Intent intent ) { \n + super . onNewIntent ( intent ) ; \n + setIntent ( intent ) ; \n + } \n + \n + @ override \n protected void onAwaitingVideoSurface ( ) { \n startActivity ( new Intent ( this , VideoplayerActivity . class ) ) ; \n }", "msg_token": "audio player didn t always play external files correctly"} {"diff": " public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme \n DefaultChannelFuture . setUseDeadLockChecker ( false ) ; \n \n if ( asyncHttpProviderConfig != null ) { \n - if ( asyncHttpProviderConfig . getProperty ( NettyAsyncHttpProviderConfig . EXECUTE_ASYNC_CONNECT ) != null ) { \n - executeConnectAsync = true ; \n + Object value = asyncHttpProviderConfig . getProperty ( NettyAsyncHttpProviderConfig . EXECUTE_ASYNC_CONNECT ) ; \n + if ( value != null && Boolean . class . isAssignableFrom ( value . getClass ( ) ) ) { \n + executeConnectAsync = Boolean . class . cast ( value ) ; \n } else if ( asyncHttpProviderConfig . getProperty ( NettyAsyncHttpProviderConfig . DISABLE_NESTED_REQUEST ) != null ) { \n DefaultChannelFuture . setUseDeadLockChecker ( true ) ; \n }", "msg_token": "Properly set the EXECUTE_ASYNC_CONNECT value"} {"diff": " public class DefaultPayment extends EntityBase implements Payment { \n \n BigDecimal result = amount ; \n for ( RefundModelDao cur : refunds ) { \n - if ( cur . getRefundStatus ( ) != RefundStatus . CREATED ) { \n + if ( cur . getRefundStatus ( ) == RefundStatus . COMPLETED ) { \n result = result . subtract ( cur . getAmount ( ) ) ; \n } \n }", "msg_token": "Fix an issue with how we report paidAmount when there were some incomplete refunds"} {"diff": " public class HikariCPCollectorTest { \n config . setJdbcUrl ( STRING0 ) ; \n config . setMaximumPoolSize ( NUMBER0 ) ; \n \n - try ( HikariDataSource ds = new HikariDataSource ( config ) ; \n - Connection connection1 = ds . getConnection ( ) ) { \n + try ( HikariDataSource ds = new HikariDataSource ( config ) ) { \n + try ( Connection connection1 = ds . getConnection ( ) ) { \n + SINGLE \n + } \n \n assertThat ( getValue ( STRING1 , STRING2 ) , is ( FLOAT0 ) ) ; \n assertThat ( getValue ( STRING3 , STRING2 ) , is ( FLOAT1 ) ) ;", "msg_token": "Fix test failure caused by reformatting code"} {"diff": " public class SelectChannelEndPoint extends ChannelEndPoint implements SelectorMa \n case UPDATING : \n { \n SINGLE \n - setKeyInterests ( ) ; \n if ( ! _interestState . compareAndSet ( current , State . SELECTING ) ) \n throw new IllegalStateException ( ) ; \n + SINGLE \n + SINGLE \n + setKeyInterests ( ) ; \n return ; \n } \n case CHANGING :", "msg_token": "Fixed race where the key interests were set before updating the"} {"diff": " public class DeepLearningMissingTest extends TestUtil { \n sumErr . put ( mvh , sumerr ) ; \n } \n Log . info ( sb . toString ( ) ) ; \n - Assert . assertTrue ( sumErr . get ( DeepLearningModel . DeepLearningParameters . MissingValuesHandling . Skip ) > FLOAT0 ) ; \n + Assert . assertTrue ( sumErr . get ( DeepLearningModel . DeepLearningParameters . MissingValuesHandling . Skip ) > FLOAT1 ) ; \n Assert . assertTrue ( sumErr . get ( DeepLearningModel . DeepLearningParameters . MissingValuesHandling . MeanImputation ) < FLOAT2 ) ; \n } \n }", "msg_token": "Relax tolerance for DL Missing test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class BlockLockManager { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;", "msg_token": "Fix wrong javadoc"} {"diff": " public class MediaDriverAdminThreadTest \n @ after \n public void cleanup ( ) throws IOException \n { \n - IoUtil . delete ( new File ( adminPath ) , false ) ; \n + IoUtil . delete ( new File ( adminPath ) , true ) ; \n } \n \n @ test", "msg_token": "ignore delete failures"} {"diff": " public class WebXml { \n } \n \n SINGLE \n - SINGLE \n + SINGLE \n private int majorVersion = NUMBER0 ; \n - private int minorVersion = NUMBER1 ; \n + private int minorVersion = NUMBER2 ; \n public int getMajorVersion ( ) { return majorVersion ; } \n public int getMinorVersion ( ) { return minorVersion ; }", "msg_token": "Change the default"} {"diff": " public class ClassNode extends AnnotatedNode implements Opcodes { \n MethodNode method = ( MethodNode ) methIt . next ( ) ; \n SINGLE \n SINGLE \n - if ( abstractNodes . contains ( method . getDeclaringClass ( ) ) ) { \n + if ( abstractNodes . contains ( method . getDeclaringClass ( ) ) && \n + ( method . getModifiers ( ) & Opcodes . ACC_ABSTRACT ) != NUMBER0 \n + ) { \n result . add ( method ) ; \n } \n }", "msg_token": "only use abstract methods when asking for abstract methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class DummyEntryPointsPresentation extends UnusedDeclarationPresentation { \n public class DummyEntryPointsPresentation extends UnusedDeclarationPresentation \n if ( permanentFound && nonPermanentFound ) { \n e . getPresentation ( ) . setText ( InspectionsBundle . message ( STRING0 ) ) ; \n } \n - else if ( nonPermanentFound ) { \n + else if ( nonPermanentFound || ! permanentFound ) { \n e . getPresentation ( ) . setEnabled ( false ) ; \n } \n }", "msg_token": "disable remove from EP for predefined EPs"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class BuildResult { \n public class DescribedRuleBuilder < T > implements BuildRuleBuilder < DescribedRule > \n Object value ) { \n \n if ( value instanceof Optional ) { \n - value = ( ( Optional ) value ) . orNull ( ) ; \n + value = ( ( Optional < ? > ) value ) . orNull ( ) ; \n } \n \n if ( value instanceof BuildTargetSourcePath ) {", "msg_token": "Fix Eclipse warnings under src"} {"diff": " public class AprEndpoint extends AbstractEndpoint < Long > { \n \n private void doRun ( ) { \n SINGLE \n - if ( socket . getSocket ( ) == null ) { \n + if ( socket . getSocket ( ) == null || ! connections . containsKey ( socket ) ) { \n SINGLE \n return ; \n } \n public class TestUpgrade extends TomcatBaseTest { \n Socket socket = \n SocketFactory . getDefault ( ) . createSocket ( STRING0 , getPort ( ) ) ; \n \n - socket . setSoTimeout ( NUMBER0 ) ; \n + socket . setSoTimeout ( NUMBER1 ) ; \n \n UpgradeConnection uc = new UpgradeConnection ( socket ) ;", "msg_token": "Fix a crash with testUpgrade and APR native"} {"diff": " public class TokensRegexDemo { \n } \n \n pipeline . annotate ( annotation ) ; \n - SINGLE \n \n SINGLE \n - SINGLE \n out . println ( ) ; \n SINGLE \n SINGLE", "msg_token": "Remove wrong comments for this Demo"} {"diff": " public class Admin extends Controller { \n } \n \n public static void deleteUser ( long id ) { \n - TrinetUser user = TrinetUser . findById ( id ) ; \n - user . delete ( ) ; \n - getUsers ( ) ; \n + TrinetUser user = TrinetUser . findById ( id ) ; \n + \n + List < Session > sessions ; \n + \n + sessions = Session . find ( STRING0 , user ) . fetch ( ) ; \n + for ( Session sess : sessions ) { \n + sess . delete ( ) ; \n + } \n + \n + user . delete ( ) ; \n + getUsers ( ) ; \n } \n - \n + \n }", "msg_token": "delete old sessions on user delete"} {"diff": " public class HaBeanIT \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void testAfterGentleMasterSwitchClusterInfoIsCorrect ( ) throws Throwable \n { \n startCluster ( NUMBER0 ) ; \n public class HaBeanIT \n assertEquals ( STRING1 + info . getClusterId ( ) + STRING2 , \n HighAvailabilityModeSwitcher . SLAVE , info . getHaRole ( ) ) ; \n } \n - for ( String uri : info . getUris ( ) ) \n + for ( String uri : info . getUris ( ) ) \n { \n assertTrue ( STRING3 , uri . startsWith ( STRING4 ) ) ; \n }", "msg_token": "Temporarily ignore test in HaBeanIT pending investigation"} {"diff": " public class CoberturaCoverageRunner extends JavaCoverageRunner { \n for ( VirtualFile sourceRoot : sourceRoots ) { \n javaParameters . getProgramParametersList ( ) . add ( FileUtil . toSystemDependentName ( sourceRoot . getPath ( ) ) ) ; \n } \n - javaParameters . setJdk ( projectRootManager . getProjectJdk ( ) ) ; \n + javaParameters . setJdk ( projectRootManager . getProjectSdk ( ) ) ; \n final DefaultJavaProcessHandler processHandler = new DefaultJavaProcessHandler ( javaParameters ) ; \n processHandler . startNotify ( ) ; \n processHandler . addProcessListener ( new ProcessAdapter ( ) {", "msg_token": "jdk sdk rename refactoring"} {"diff": " public class JvmRouteBinderValve extends ValveBase implements ClusterValve { \n protected void sendSessionIDClusterBackup ( Request request , String sessionId , \n String newSessionID ) { \n CatalinaCluster c = getCluster ( ) ; \n - if ( c != null ) { \n + if ( c != null && getManager ( request ) instanceof DeltaManager ) { \n SessionIDMessage msg = new SessionIDMessage ( ) ; \n msg . setOrignalSessionID ( sessionId ) ; \n msg . setBackupSessionID ( newSessionID ) ;", "msg_token": "Avoid an unnecessary session ID change notice"} {"diff": " public class SelectChannelEndPointSslTest extends SelectChannelEndPointTest \n filled = client . read ( sslIn ) ; \n Assert . assertEquals ( - NUMBER0 , filled ) ; \n \n + Thread . sleep ( NUMBER1 ) ; SINGLE \n Assert . assertFalse ( server . isOpen ( ) ) ; \n }", "msg_token": "added delay to improve SSL tcpClose test"} {"diff": " public class ShellProperties { \n return this . auth ; \n } \n \n - public void setAdditionalProperties ( CrshShellProperties [ ] additionalProperties ) { \n - Assert . notNull ( additionalProperties , STRING0 ) ; \n - this . additionalProperties = additionalProperties ; \n - } \n - \n public CrshShellProperties [ ] getAdditionalProperties ( ) { \n return this . additionalProperties ; \n }", "msg_token": "Drop ShellProperties setAdditionalProperties"} {"diff": " public class SslHandler extends FrameDecoder \n engine . beginHandshake ( ) ; \n runDelegatedTasks ( ) ; \n handshakeFuture = this . handshakeFuture = future ( channel ) ; \n - } catch ( SSLException e ) { \n + } catch ( Exception e ) { \n handshakeFuture = this . handshakeFuture = failedFuture ( channel , e ) ; \n } \n }", "msg_token": "SSLEngine beginHandshake can throw a RuntimeException"} {"diff": " abstract class ModifierIntention extends Intention { \n } \n final MultiMap < PsiElement , String > conflicts = new MultiMap ( ) ; \n for ( PsiElement reference : problemReferences ) { \n - final PsiNameIdentifierOwner context = PsiTreeUtil . getParentOfType ( reference , PsiMethod . class , PsiField . class , PsiClass . class ) ; \n + final PsiElement context = \n + PsiTreeUtil . getParentOfType ( reference , PsiMethod . class , PsiField . class , PsiClass . class , PsiFile . class ) ; \n conflicts . putValue ( reference , RefactoringUIUtil . getDescription ( member , false ) + \n STRING0 + getModifier ( ) + STRING1 + \n RefactoringUIUtil . getDescription ( context , true ) ) ;", "msg_token": "prevent NPE when presenting usage warning from import statement"} {"diff": " public class GroovyFileImpl extends GroovyFileBaseImpl implements GroovyFile { \n } \n \n private boolean processChildrenScopes ( PsiScopeProcessor processor , ResolveState state , PsiElement lastParent , PsiElement place ) { \n + final StubElement < ? > stub = getStub ( ) ; \n + if ( stub != null ) { \n + return true ; SINGLE \n + } \n + \n PsiElement run = lastParent == null ? getLastChild ( ) : lastParent . getPrevSibling ( ) ; \n while ( run != null ) { \n if ( ! ( run instanceof GrTopLevelDefintion ) && \n public class GroovyFileImpl extends GroovyFileBaseImpl implements GroovyFile { \n return true ; \n } \n \n + \n public GrImportStatement [ ] getImportStatements ( ) { \n return findChildrenByClass ( GrImportStatement . class ) ; \n }", "msg_token": "don t process local script level declarations when only stub level info is needed"} {"diff": " public abstract class JavaTestFrameworkRunnableState < T extends ModuleBasedConfig \n ext . updateJavaParameters ( getConfiguration ( ) , javaParameters , getRunnerSettings ( ) ) ; \n } \n \n - JavaParametersUtil . configureConfiguration ( javaParameters , getConfiguration ( ) ) ; \n + final String parameters = getConfiguration ( ) . getProgramParameters ( ) ; \n + getConfiguration ( ) . setProgramParameters ( null ) ; \n + try { \n + JavaParametersUtil . configureConfiguration ( javaParameters , getConfiguration ( ) ) ; \n + } \n + finally { \n + getConfiguration ( ) . setProgramParameters ( parameters ) ; \n + } \n JavaSdkUtil . addRtJar ( javaParameters . getClassPath ( ) ) ; \n \n configureClasspath ( javaParameters ) ;", "msg_token": "do not pass unprocessed program params to tests process"} {"diff": " public class EventTest { \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void event_widget ( ) { \n SINGLE \n executeAnalysis ( STRING1 , STRING2 ) ;", "msg_token": "Disable a test of EventTest which raises too many false positives"} {"diff": " public class NauticalMapsPlugin extends OsmandPlugin { \n @ override \n public String getDescription ( ) { \n return STRING0 \n - + STRING1 \n - + STRING2 ; \n + + STRING3 \n + + STRING4 ; \n } \n \n @ override \n public class SkiMapsPlugin extends OsmandPlugin { \n \n @ override \n public String getDescription ( ) { \n - return STRING5 \n - + STRING6 \n - + STRING7 ; \n + return STRING8 \n + + STRING9 \n + + STRING4 ; \n } \n \n @ override", "msg_token": "modify ski maps plugin for comparison"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class JsonUtil { \n + COMMENT \n + COMMENT \n + COMMENT \n + public final class JsonUtil { \n \n public static int getInt ( JsonObject object , String field ) { \n final JsonValue value = object . get ( field ) ; \n public class JsonUtil { \n throw new IllegalArgumentException ( STRING0 + field ) ; \n } \n } \n + \n + private JsonUtil ( ) { } \n }", "msg_token": "Fixed checkstyle issue with JsonUtil"} {"diff": " public class HttpExchangeTest \n int size = NUMBER0 ; \n ContentExchange httpExchange = new ContentExchange ( ) \n { \n + int total ; \n + \n @ override \n protected synchronized void onResponseStatus ( Buffer version , int status , Buffer reason ) throws IOException \n { \n if ( verbose ) \n - super . onResponseStatus ( version , status , reason ) ; \n + System . err . println ( STRING0 + version + STRING1 + status + STRING1 + reason ) ; \n + super . onResponseStatus ( version , status , reason ) ; \n } \n \n @ override \n public class HttpExchangeTest \n protected synchronized void onResponseContent ( Buffer content ) throws IOException \n { \n if ( verbose ) \n - System . err . println ( STRING0 + content . length ( ) ) ; \n + { \n + total += content . length ( ) ; \n + System . err . println ( STRING0 + content . length ( ) + STRING2 + total ) ; \n + } \n super . onResponseContent ( content ) ; \n }", "msg_token": "fixed client test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class RemoteTransportException extends TransportException implements ElasticSearchWrapperException { \n \n public class SendRequestTransportException extends RemoteTransportException { \n \n public SendRequestTransportException ( DiscoveryNode node , String action , Throwable cause ) { \n super ( node == null ? null : node . name ( ) , node == null ? null : node . address ( ) , action , cause ) ; \n + fillStack ( ) ; \n } \n } \n public class TransportService extends AbstractLifecycleComponent < TransportServic \n } \n SINGLE \n SINGLE \n + final SendRequestTransportException sendRequestException = new SendRequestTransportException ( node , action , e ) ; \n threadPool . execute ( new Runnable ( ) { \n @ override public void run ( ) { \n - handler . handleException ( new SendRequestTransportException ( node , action , e ) ) ; \n + handler . handleException ( sendRequestException ) ; \n } \n } ) ; \n }", "msg_token": "create a send transaction exception on the calling thread and fill its stack so we know where its coming from"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public abstract class JvmSmartStepIntoHandler { \n } \n } ) ; \n final ListPopup popup = JBPopupFactory . getInstance ( ) . createListPopup ( popupStep ) ; \n - final RelativePoint point = DebuggerUIUtil . calcPopupLocation ( ( ( TextEditor ) fileEditor ) . getEditor ( ) , position . getLine ( ) ) ; \n + final RelativePoint point = DebuggerUIUtil . calcPopupLocation ( fileEditor . getEditor ( ) , position . getLine ( ) ) ; \n popup . show ( point ) ; \n } \n return true ;", "msg_token": "remove redundant cast"} {"diff": " public class ColorCodeBuilder { \n public String [ ] build ( StyledFragment message ) { \n StringBuilder builder = new StringBuilder ( ) ; \n buildFragment ( builder , message , message . getStyle ( ) , new StyleSet ( ) ) ; \n - return wordWrap ( builder . toString ( ) , GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH ) ; \n + return builder . toString ( ) . split ( STRING0 ) ; \n } \n \n COMMENT", "msg_token": "Remove word wrapping in ColorCodeBuilder build"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MasterResource \n return resp ; \n } \n \n - \n + @ get \n + @ path ( STRING0 ) \n + @ produces ( STRING1 ) \n + public Map < String , Double > getLoadStatus ( ) \n + { \n + return master . getLoadStatus ( ) ; \n + } \n }", "msg_token": "revert removal of master loadstatus"} {"diff": " public class JavadocGenerator implements Compiler < JavadocSpec > { \n try { \n execAction . execute ( ) ; \n } catch ( ExecException e ) { \n - throw new GradleException ( STRING0 , e ) ; \n + throw new GradleException ( String . format ( STRING1 , spec . getOptionsFile ( ) ) , e ) ; \n } \n \n return new SimpleWorkResult ( true ) ;", "msg_token": "Added more context to the javadoc generation exception"} {"diff": " public class UpdatesIndexFragment extends SherlockListFragment { \n return ; \n } \n \n - List < DownloadEntry > download = e . createDownloadEntry ( getMyApplication ( ) , getDownloadActivity ( ) . getDownloadType ( ) , new ArrayList < DownloadEntry > ( ) ) ; \n + List < DownloadEntry > download = e . createDownloadEntry ( getMyApplication ( ) , e . getType ( ) , new ArrayList < DownloadEntry > ( ) ) ; \n if ( download . size ( ) > NUMBER0 ) { \n getDownloadActivity ( ) . getEntriesToDownload ( ) . put ( e , download ) ; \n getDownloadActivity ( ) . updateDownloadButton ( true ) ;", "msg_token": "Fixed issue with wrong type maps downloading roads only"} {"diff": " public class BulkWriteError { \n result = NUMBER0 * result + details . hashCode ( ) ; \n return result ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 \n + + STRING1 + index \n + + STRING2 + code \n + + STRING3 + message + STRING4 \n + + STRING5 + details \n + + STRING6 ; \n + } \n }", "msg_token": "Add toString method to BulkWriteError as BulkWriteException relies on it to create its message"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n givenConnectionExceptionObtainingCharacters ( ) ; \n givenEmptyComicSeries ( ) ; \n \n - MainActivity mainActivity = startActivity ( ) ; \n + startActivity ( ) ; \n \n - ViewVisibilityIdlingResource viewVisibilityIdlingResource = \n - new ViewVisibilityIdlingResource ( mainActivity , android . support . design . R . id . snackbar_text , \n - View . VISIBLE ) ; \n - Espresso . registerIdlingResources ( viewVisibilityIdlingResource ) ; \n onView ( allOf ( withId ( android . support . design . R . id . snackbar_text ) , \n withText ( STRING0 ) ) ) . check ( \n matches ( withEffectiveVisibility ( ViewMatchers . Visibility . VISIBLE ) ) ) ; \n - Espresso . unregisterIdlingResources ( viewVisibilityIdlingResource ) ; \n } \n \n @ test public void shouldHideLoadingWhenDataIsLoaded ( ) throws Exception {", "msg_token": "Fix build error"} {"diff": " public class XmlElementDescriptorImpl implements XmlElementDescriptor , PsiWritab \n \n if ( rootTag != null && \n ( NONQUALIFIED_ATTR_VALUE . equals ( elementFormDefault = rootTag . getAttributeValue ( ELEMENT_FORM_DEFAULT ) ) || elementFormDefault == null COMMENT ) && \n - tag . getNamespaceByPrefix ( STRING0 ) . length ( ) == NUMBER0 \n + tag . getNamespaceByPrefix ( STRING0 ) . isEmpty ( ) \n + && myDescriptorTag . getParentTag ( ) != rootTag \n ) { \n value = XmlUtil . findLocalNameByQualifiedName ( value ) ; \n } else {", "msg_token": "code completion in xml suggest unprefixed constructor arg and property when beans namespace has been bound to prefix"} {"diff": " public interface MockSettings extends Serializable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ incubating \n MockSettings useConstructor ( ) ; \n \n COMMENT \n public interface MockSettings extends Serializable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ incubating \n MockSettings outerInstance ( Object outerClassInstance ) ; \n } \n public class Mockito extends Matchers { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ incubating \n public static < T > T spy ( Class < T > classToSpy ) { \n return MOCKITO_CORE . mock ( classToSpy , withSettings ( ) \n . useConstructor ( ) \n public interface MockCreationSettings < T > { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ incubating \n boolean isUsingConstructor ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ incubating \n Object getOuterClassInstance ( ) ;", "msg_token": "Added since tags and Incubating"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DirectNoMultipleConsumersTest extends TestCase { \n \n try { \n container . start ( ) ; \n - fail ( STRING0 ) ; \n - } catch ( IllegalStateException e ) { \n + fail ( STRING1 ) ; \n + } catch ( FailedToStartRouteException e ) { \n SINGLE \n } \n }", "msg_token": "Fixed unit test"} {"diff": " public interface TestProgressListener { \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 void statusChanged ( TestProgressEvent event ) ;", "msg_token": "Document the issued events"} {"diff": " import NAMESPACE ; \n COMMENT \n public final class SipService extends ISipService . Stub { \n private static final String TAG = STRING0 ; \n + private static final boolean DEBUGV = false ; \n private static final boolean DEBUG = true ; \n private static final boolean DEBUG_TIMER = DEBUG && false ; \n private static final int EXPIRY_TIME = NUMBER0 ; \n public final class SipService extends ISipService . Stub { \n if ( notCurrentSession ( session ) ) return ; \n \n session = session . duplicate ( ) ; \n - if ( DEBUG ) Log . d ( TAG , STRING1 ) ; \n + if ( DEBUGV ) Log . v ( TAG , STRING1 ) ; \n mTimer . cancel ( this ) ; \n session . sendKeepAlive ( ) ; \n if ( session . isReRegisterRequired ( ) ) {", "msg_token": "turn off verbose logging"} {"diff": " public class NumberedShardSpecTest \n { \n final ObjectMapper jsonMapper = new DefaultObjectMapper ( ) ; \n final ShardSpec spec = jsonMapper . readValue ( \n - STRING0 , \n + STRING1 , \n ShardSpec . class \n ) ; \n Assert . assertEquals ( NUMBER0 , spec . getPartitionNum ( ) ) ;", "msg_token": "Fix test oopsie"} {"diff": " public class AlfrescoContentUtil { \n \n HasPermissionsResult [ ] results = \n accessControlService . hasPermissions ( \n - predicate , new String [ ] { Constants . WRITE } ) ; \n + predicate , new String [ ] { action } ) ; \n \n if ( ( results . length == NUMBER0 ) && \n - ( results [ NUMBER1 ] . getPermission ( ) . equals ( Constants . WRITE ) ) && \n + ( results [ NUMBER1 ] . getPermission ( ) . equals ( action ) ) && \n ( results [ NUMBER1 ] . getAccessStatus ( ) . equals ( AccessStatus . acepted ) ) ) { \n \n return true ;", "msg_token": "pass the correct permission to the alfresco ws"} {"diff": " public class OPDSCustomNetworkLink extends OPDSNetworkLink implements ICustomNet \n if ( ! opensearchDescriptionURLs . isEmpty ( ) ) { \n LinkedList < ZLNetworkRequest > requests = new LinkedList < ZLNetworkRequest > ( ) ; \n for ( String url : opensearchDescriptionURLs ) { \n - requests . add ( new ZLNetworkRequest ( url ) { \n + requests . add ( new ZLNetworkRequest ( url , quietly ) { \n @ override \n public void handleStream ( InputStream inputStream , int length ) throws IOException , ZLNetworkException { \n new OpenSearchXMLReader ( getURL ( ) , descriptions ) . read ( inputStream ) ;", "msg_token": "fixed opensearch request"} {"diff": " public abstract class Context { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix malformed Javadoc"} {"diff": " public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme \n LOG . debug ( STRING0 + expr ) ; \n } \n \n - if ( expr == null ) { \n + if ( expr == null || ! expr . isPhysical ( ) ) { \n if ( ReassignVariableUtil . reassign ( editor ) ) return false ; \n - String message = RefactoringBundle . getCannotRefactorMessage ( RefactoringBundle . message ( STRING1 ) ) ; \n - showErrorMessage ( project , editor , message ) ; \n - return false ; \n + if ( expr == null ) { \n + String message = RefactoringBundle . getCannotRefactorMessage ( RefactoringBundle . message ( STRING1 ) ) ; \n + showErrorMessage ( project , editor , message ) ; \n + return false ; \n + } \n }", "msg_token": "enable reassign variable in anonymous class call parent expression exists"} {"diff": " public class RCompletionManager implements CompletionManager \n { \n if ( string . matches ( STRING0 + chr + STRING1 ) ) \n { \n - int ind = string . indexOf ( chr ) ; \n + int ind = string . lastIndexOf ( chr ) ; \n String before = string . substring ( NUMBER0 , ind + NUMBER1 ) ; \n String after = string . substring ( ind + NUMBER1 , string . length ( ) ) ; \n if ( after . length ( ) > NUMBER0 )", "msg_token": "Use the last index for syntactic quoting"} {"diff": " public class CoordinationTransformer implements TreeTransformer { \n SINGLE \n SINGLE \n private static TregexPattern flattenSQTregex = \n - TregexPattern . compile ( STRING0 + EnglishGrammaticalRelations . copularWordRegex + STRING1 + \n + TregexPattern . compile ( STRING2 + EnglishGrammaticalRelations . copularWordRegex + STRING1 + \n SINGLE \n STRING3 + EnglishGrammaticalRelations . copularWordRegex + STRING1 + \n SINGLE \n public class CoordinationTransformer implements TreeTransformer { \n SINGLE \n STRING4 + \n SINGLE \n - STRING5 + EnglishGrammaticalRelations . copularWordRegex + STRING6 ) ; \n + STRING5 + EnglishGrammaticalRelations . copularWordRegex + STRING7 ) ; \n \n private static TsurgeonPattern flattenSQTsurgeon = Tsurgeon . parseOperation ( STRING8 ) ;", "msg_token": "Loosen the restrictions on where the WHNP appears to handle quotation marks and transition words such as So"} {"diff": " public class NearCacheContext { \n private NearCacheManager nearCacheManager ; \n private SerializationService serializationService ; \n private NearCacheExecutor nearCacheExecutor ; \n - private Object nullPlaceHolder ; \n \n public NearCacheContext ( ) {", "msg_token": "Fixed findbugs issues"} {"diff": " public abstract class OAbstractBlock implements OProcessorBlock { \n public void assignVariable ( final OCommandContext iContext , final String iName , final Object iValue ) { \n if ( iName != null ) { \n iContext . setVariable ( iName , iValue ) ; \n - debug ( iContext , STRING0 + iName + STRING1 + iValue ) ; \n + debug ( iContext , STRING2 , iName , iValue ) ; \n } \n } \n \n public abstract class OAbstractBlock implements OProcessorBlock { \n text . append ( getName ( ) ) ; \n text . append ( STRING3 ) ; \n text . append ( iText ) ; \n - OLogManager . instance ( ) . info ( this , text . toString ( ) , getName ( ) , iText , iArgs ) ; \n + OLogManager . instance ( ) . info ( this , text . toString ( ) , iArgs ) ; \n } \n }", "msg_token": "fixed debug messages"} {"diff": " public class ActivityMain extends ActivityBase implements OnItemSelectedListener \n menu . findItem ( R . id . menu_export ) . setEnabled ( mounted ) ; \n menu . findItem ( R . id . menu_import ) . setEnabled ( mounted ) ; \n menu . findItem ( R . id . menu_pro ) . setVisible ( ! Util . isProEnabled ( ) && Util . hasProLicense ( this ) == null ) ; \n + menu . findItem ( R . id . menu_update ) . setVisible ( mounted && PrivacyManager . cVersion3 ) ; \n \n SINGLE", "msg_token": "Check storage state for update menu"} {"diff": " class NewPropertyAction extends AnAction { \n \n @ override \n public boolean checkInput ( final String inputString ) { \n - return true ; \n + return ! inputString . isEmpty ( ) ; \n } \n \n @ override", "msg_token": "NewPropertyAction checks empty property keys"} {"diff": " public class Fields implements Iterable < String > , Serializable { \n _index . put ( _fields . get ( i ) , i ) ; \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + return _fields . toString ( ) ; \n + } \n }", "msg_token": "add toString for Fields"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "collectMany should not use createSimilarCollection and instead behave like collect"} {"diff": " public class XmlTagTreeHighlightingPass extends TextEditorHighlightingPass { \n myFile . getVirtualFile ( ) , \n myProject , myInfoProvider ) ; \n \n - if ( elements == null || elements . length == NUMBER0 ) { \n - return ; \n - } \n - \n - if ( ! XmlTagTreeHighlightingUtil . containsTagsWithSameName ( elements ) ) { \n + if ( elements == null || elements . length == NUMBER0 || ! XmlTagTreeHighlightingUtil . containsTagsWithSameName ( elements ) ) { \n elements = PsiElement . EMPTY_ARRAY ; \n final FileViewProvider provider = myFile . getViewProvider ( ) ; \n for ( Language language : provider . getLanguages ( ) ) {", "msg_token": "handle last tag in file correctly"} {"diff": " public class LocalFsBlobStore extends BlobStore { \n SettableBlobMeta meta = getStoredBlobMeta ( key ) ; \n _aclHandler . hasPermissions ( meta . get_acl ( ) , READ , who , key ) ; \n if ( zkClient . checkExists ( ) . forPath ( BLOBSTORE_SUBTREE + key ) == null ) { \n - zkClient . close ( ) ; \n return NUMBER0 ; \n } \n replicationCount = zkClient . getChildren ( ) . forPath ( BLOBSTORE_SUBTREE + key ) . size ( ) ;", "msg_token": "removing close method as shutdown does that"} {"diff": " public abstract class AbstractModelElement < E extends AbstractModelElement < E > > im \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public abstract E clone ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make AME cloneable"} {"diff": " public class EditAccountActivity extends XmppActivity implements OnAccountUpdate \n mAccount . setOption ( Account . OPTION_REGISTER , registerNewAccount ) ; \n xmppConnectionService . createAccount ( mAccount ) ; \n } \n - if ( jidToEdit != null && ! mAccount . isOptionSet ( Account . OPTION_DISABLED ) ) { \n + if ( jidToEdit != null \n + && ! mAccount . isOptionSet ( Account . OPTION_DISABLED ) \n + && ! registerNewAccount ) { \n finish ( ) ; \n } else { \n updateSaveButton ( ) ;", "msg_token": "do not dismiss editAccountActivity when still trying to register new account"} {"diff": " public final class LegacyTableLayoutHandle \n { \n return Objects . hash ( table , partitions ) ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return table . toString ( ) ; \n + } \n } \n public class TpchTableLayoutHandle \n { \n return table . getConnectorId ( ) ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return table . toString ( ) ; \n + } \n }", "msg_token": "Fix plan printing of table layouts"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JBTableWithRowHeaders extends JBTable { \n \n @ override \n protected void paintComponent ( @ notnull Graphics g ) { \n - getEmptyText ( ) . setText ( STRING0 ) ; \n + if ( ! Strings . isNullOrEmpty ( getEmptyText ( ) . getText ( ) ) ) { \n + getEmptyText ( ) . setText ( STRING0 ) ; \n + } \n super . paintComponent ( g ) ; \n } \n \n public class JBTableWithRowHeaders extends JBTable { \n \n @ override \n public int getRowHeight ( int row ) { \n - setRowHeight ( myMainTable . getRowHeight ( ) ) ; \n + int height = super . getRowHeight ( ) ; \n + if ( height != myMainTable . getRowHeight ( ) ) { \n + setRowHeight ( myMainTable . getRowHeight ( ) ) ; \n + } \n return super . getRowHeight ( row ) ; \n }", "msg_token": "Fix code that causes constant revalidation during repaint"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class ALight extends ATransformable3D { \n mColor [ NUMBER0 ] = r ; mColor [ NUMBER1 ] = g ; mColor [ NUMBER2 ] = b ; \n } \n \n + public void setColor ( int color ) { \n + mColor [ NUMBER0 ] = Color . red ( color ) / NUMBER3 f ; \n + mColor [ NUMBER1 ] = Color . green ( color ) / NUMBER3 f ; \n + mColor [ NUMBER2 ] = Color . blue ( color ) / NUMBER3 f ; \n + } \n + \n public void setColor ( Number3D color ) { \n mColor [ NUMBER0 ] = color . x ; \n mColor [ NUMBER1 ] = color . y ;", "msg_token": "Set light color from int hex"} {"diff": " public class HttpSessionContextIntegrationFilter extends SpringSecurityFilter im \n SINGLE \n if ( authenticationTrustResolver . isAnonymous ( securityContext . getAuthentication ( ) ) ) { \n if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( STRING0 ) ; \n + logger . debug ( STRING1 ) ; \n } \n } else { \n httpSession . setAttribute ( SPRING_SECURITY_CONTEXT_KEY , securityContext ) ;", "msg_token": "Fixed typo in message"} {"diff": " public class ViewTransformationHelper implements TransformableView { \n \n @ override \n public void setVisible ( boolean visible ) { \n + if ( mViewTransformationAnimation != null ) { \n + mViewTransformationAnimation . cancel ( ) ; \n + } \n for ( Integer viewType : mTransformedViews . keySet ( ) ) { \n TransformState ownState = getCurrentState ( viewType ) ; \n if ( ownState != null ) {", "msg_token": "Fixed a bug where notifications could become all white"} {"diff": " public class DefaultFailover implements Failover { \n return session . get ( ) . getResponse ( ) ; \n } \n \n - logger . error ( format ( STRING0 , request . toString ( ) ) ) ; \n + logger . error ( format ( STRING0 , dumpedRequest . toString ( ) ) ) ; \n \n throw new RuntimeException ( STRING1 ) ; \n }", "msg_token": "corrected dumped request"} {"diff": " public class Spider implements Runnable , Task { \n Page page = downloader . download ( request , this ) ; \n if ( page == null ) { \n sleep ( site . getSleepTime ( ) ) ; \n - throw new IllegalStateException ( STRING0 ) ; \n + onError ( request ) ; \n } \n SINGLE \n if ( page . isNeedCycleRetry ( ) ) {", "msg_token": "remove IllegalStateException when download error for less error log"} {"diff": " public class CoreLabel extends ArrayCoreMap implements AbstractCoreLabel , HasWor \n return copy ; \n } \n \n + public void setCopyCount ( int count ) { \n + set ( CoreAnnotations . CopyAnnotation . class , count ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class IndexedWord implements AbstractCoreLabel , Comparable < IndexedWord > { \n return label . copyCount ( ) ; \n } \n \n + public void setCopyCount ( int count ) { \n + label . setCopyCount ( count ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a setCopyCount method to make certain other operations simpler"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class MainActivity extends Activity { \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . activity_main ) ; \n + \n + findViewById ( R . id . pink_icon ) . setOnClickListener ( new OnClickListener ( ) { \n + @ override \n + public void onClick ( View v ) { \n + Toast . makeText ( MainActivity . this , STRING0 , Toast . LENGTH_SHORT ) . show ( ) ; \n + } \n + } ) ; \n } \n }", "msg_token": "Added onClickListener to sample project"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class NioEndpoint { \n protected int maxThreads = NUMBER0 ; \n public void setMaxThreads ( int maxThreads ) { \n this . maxThreads = maxThreads ; \n - if ( running && executor != null && executor instanceof ThreadPoolExecutor ) { \n - ( ( ThreadPoolExecutor ) executor ) . setMaximumPoolSize ( maxThreads ) ; \n + if ( running && executor != null && executor instanceof java . util . concurrent . ThreadPoolExecutor ) { \n + ( ( java . util . concurrent . ThreadPoolExecutor ) executor ) . setMaximumPoolSize ( maxThreads ) ; \n } \n } \n public int getMaxThreads ( ) { return maxThreads ; }", "msg_token": "correct the import statement"} {"diff": " public class RelativePath implements Serializable , Comparable < RelativePath > { \n while ( k < lim ) { \n String c1 = v1 [ k ] ; \n String c2 = v2 [ k ] ; \n - int compareResult = c1 . compareTo ( c2 ) ; \n + int compareResult = c1 == c2 ? NUMBER0 : c1 . compareTo ( c2 ) ; \n if ( compareResult != NUMBER0 ) { \n return compareResult ; \n }", "msg_token": "Optimize RelativePath compareTo"} {"diff": " public abstract class Neurons { \n } \n for ( int row = NUMBER0 ; row < rows ; row ++ ) { \n _a . raw ( ) [ row ] /= scaling ; \n - if ( Double . isNaN ( _a . get ( row ) ) ) { \n - _minfo . set_unstable ( ) ; \n - throw new RuntimeException ( STRING0 ) ; \n - } \n } \n }", "msg_token": "Fix previous commit"} {"diff": " public class WebView extends AbsoluteLayout \n canvas . restoreToCount ( saveCount ) ; \n \n SINGLE \n - if ( mTitleBar != null ) { \n - int y = mScrollY + getVisibleTitleHeight ( ) ; \n + int titleH = getVisibleTitleHeight ( ) ; \n + if ( mTitleBar != null && titleH == NUMBER0 ) { \n int height = ( int ) ( FLOAT0 * getContext ( ) . getResources ( ) \n . getDisplayMetrics ( ) . density ) ; \n - mTitleShadow . setBounds ( mScrollX , y , mScrollX + getWidth ( ) , \n - y + height ) ; \n + mTitleShadow . setBounds ( mScrollX , mScrollY , mScrollX + getWidth ( ) , \n + mScrollY + height ) ; \n mTitleShadow . draw ( canvas ) ; \n } \n if ( AUTO_REDRAW_HACK && mAutoRedraw ) {", "msg_token": "Remove the shadow under url bar"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FacadePluggable extends PipePluggable implements IFacadePluggable { \n } \n \n public void setActiveState ( int activeState2 ) { \n - BCLog . logger . error ( STRING0 + activeState2 ) ; \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Remove silly log message"} {"diff": " public class BrowseFragment extends Fragment { \n mRowsFragment = ( RowsFragment ) getChildFragmentManager ( ) \n . findFragmentById ( R . id . browse_container_dock ) ; \n } \n + mRowsFragment . setAdapter ( mAdapter ) ; \n + mHeadersFragment . setAdapter ( mAdapter ) ; \n + \n mRowsFragment . setOnItemSelectedListener ( mRowSelectedListener ) ; \n mHeadersFragment . setOnItemSelectedListener ( mHeaderSelectedListener ) ; \n mHeadersFragment . setOnHeaderClickListener ( mHeaderClickListener ) ; \n mRowsFragment . setOnItemClickedListener ( mOnItemClickedListener ) ; \n - mRowsFragment . setAdapter ( mAdapter ) ; \n - mHeadersFragment . setAdapter ( mAdapter ) ; \n \n View root = inflater . inflate ( R . layout . lb_browse_fragment , container , false ) ; \n \n public class DetailsFragment extends Fragment { \n getChildFragmentManager ( ) . beginTransaction ( ) \n . replace ( R . id . fragment_dock , mRowsFragment ) . commit ( ) ; \n } \n + mRowsFragment . setAdapter ( mAdapter ) ; \n mRowsFragment . setOnItemSelectedListener ( mRowSelectedListener ) ; \n mRowsFragment . setOnItemClickedListener ( mOnItemClickedListener ) ; \n - mRowsFragment . setAdapter ( mAdapter ) ; \n return view ; \n }", "msg_token": "Fix browse and details child fragment re creation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class IlluminationConverter extends StateConverter < NumberWithUnit , Decima \n \n @ override \n protected DecimalType convertToImpl ( NumberWithUnit source ) { \n - return new PercentType ( ( BigDecimal ) source . getValue ( ) ) ; \n + return new DecimalType ( ( BigDecimal ) source . getValue ( ) ) ; \n } \n \n }", "msg_token": "Fix illumunation value conversion"} {"diff": " public class SSLConfig { \n String storeType = JiveGlobals . getProperty ( STRING0 , STRING1 ) ; \n SINGLE \n keyStoreLocation = JiveGlobals . getProperty ( STRING2 , \n - JiveGlobals . getMessengerHome ( ) + File . separator + STRING3 + \n - File . separator + STRING4 ) ; \n + JiveGlobals . getMessengerHome ( ) + File . separator + STRING5 + File . separator + \n + STRING3 + File . separator + STRING4 ) ; \n SINGLE \n keypass = JiveGlobals . getProperty ( STRING6 , STRING7 ) ; \n keypass = keypass . trim ( ) ; \n SINGLE \n trustStoreLocation = JiveGlobals . getProperty ( STRING8 , \n - JiveGlobals . getMessengerHome ( ) + File . separator + STRING3 + \n - File . separator + STRING9 ) ; \n + JiveGlobals . getMessengerHome ( ) + File . separator + STRING5 + File . separator + \n + STRING3 + File . separator + STRING9 ) ; \n SINGLE \n trustpass = JiveGlobals . getProperty ( STRING10 , STRING7 ) ; \n trustpass = trustpass . trim ( ) ;", "msg_token": "Changed default location of stores to resources security"} {"diff": " abstract class FilterPopupComponent < Filter extends VcsLogFilter > extends JPanel \n \n protected void setValue ( @ notnull String value , @ notnull String tooltip ) { \n myFilterValueLabel . setText ( value ) ; \n - setToolTipText ( tooltip ) ; \n + setToolTipText ( tooltip . equals ( value ) ? null : tooltip ) ; \n } \n \n @ notnull", "msg_token": "log Don t duplicate text in tooltip"} {"diff": " public class SpongeEntityType implements EntityType { \n \n @ override \n public boolean isTagged ( ) { \n - return entity . get ( Keys . DISPLAY_NAME ) . orElse ( Text . EMPTY ) . isEmpty ( ) ; \n + return ! entity . get ( Keys . DISPLAY_NAME ) . orElse ( Text . EMPTY ) . isEmpty ( ) ; \n } \n \n @ override", "msg_token": "Fixed a bug where some mobs were incorrectly determined to be tagged on the Sponge platform"} {"diff": " public class Imports { \n SINGLE \n imports . add ( STRING0 ) ; \n imports . add ( STRING1 ) ; \n + imports . add ( STRING2 ) ; \n imports . add ( STRING3 ) ; \n imports . add ( STRING4 ) ; \n imports . add ( STRING5 ) ;", "msg_token": "updated imports to support Gremlin version"} {"diff": " public class MessageView extends K9Activity implements OnClickListener { \n mMessageView . showStatusMessage ( text ) ; \n } \n mMessageView . setHeaders ( clonedMessage , account ) ; \n - setTitle ( clonedMessage . getSubject ( ) ) ; \n + final String subject = clonedMessage . getSubject ( ) ; \n + if ( subject == null || subject . equals ( STRING0 ) ) { \n + setTitle ( getString ( R . string . general_no_subject ) ) ; \n + } else { \n + setTitle ( clonedMessage . getSubject ( ) ) ; \n + } \n mMessageView . setOnFlagListener ( new OnClickListener ( ) { \n @ override \n public void onClick ( View v ) {", "msg_token": "Set abs title to no subject if the message has no subject"} {"diff": " public class ZWaveNodeNamingCommandClass extends ZWaveCommandClass \n logger . debug ( STRING0 , this . getNode ( ) . getNodeId ( ) ) ; \n break ; \n case ENCODING_EXTENDED_ASCII : \n - logger . debug ( STRING1 , \n + logger . debug ( STRING2 , \n this . getNode ( ) . getNodeId ( ) ) ; \n break ; \n case ENCODING_UTF16 : \n logger . debug ( STRING3 , this . getNode ( ) . getNodeId ( ) ) ; \n break ; \n default : \n - logger . error ( STRING4 , \n + logger . error ( STRING5 , \n this . getNode ( ) . getNodeId ( ) , charPresentation ) ; \n return null ; \n } \n public class ZWaveNodeNamingCommandClass extends ZWaveCommandClass \n \n SINGLE \n if ( numBytes > MAX_STRING_LENGTH ) { \n - logger . warn ( STRING6 , this . getNode ( ) . getNodeId ( ) , \n + logger . warn ( STRING7 , this . getNode ( ) . getNodeId ( ) , \n MAX_STRING_LENGTH , numBytes ) ; \n numBytes = MAX_STRING_LENGTH ; \n }", "msg_token": "Made some minor improvements to log messages"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n COMMENT \n COMMENT \n public class UsesSdk \n return targetSdkVersion ; \n } \n \n - public void setMinSdkVersion ( String minSdkVersion ) \n - { \n - this . minSdkVersion = minSdkVersion ; \n - } \n - \n - public void setMaxSdkVersion ( String maxSdkVersion ) \n - { \n - this . maxSdkVersion = maxSdkVersion ; \n - } \n - \n - public void setTargetSdkVersion ( String targetSdkVersion ) \n - { \n - this . targetSdkVersion = targetSdkVersion ; \n - } \n - \n @ override \n public boolean equals ( Object o ) \n { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Moved UsesSdk into configuration to have it in a more meaningful place"} {"diff": " import NAMESPACE \n COMMENT \n public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLMOutput > { \n public GLMModel ( Key selfKey , GLMParameters parms , GLM job , double [ ] ymu , double ySigma , double lambda_max , long nobs ) { \n - super ( selfKey , parms , null ) ; \n + super ( selfKey , parms , job == null ? new GLMOutput ( ) : new GLMOutput ( job ) ) ; \n SINGLE \n _ymu = ymu ; \n _ySigma = ySigma ; \n _lambda_max = lambda_max ; \n _nobs = nobs ; \n - _output = job == null ? new GLMOutput ( ) : new GLMOutput ( job ) ; \n _nullDOF = nobs - ( parms . _intercept ? NUMBER0 : NUMBER1 ) ; \n }", "msg_token": "Populate start end runtime for GLM"} {"diff": " public class ShowIntentionsPass extends TextEditorHighlightingPass { \n PsiElement psiElement , \n final int offset , \n @ notnull final IntentionsInfo intentions ) { \n - if ( psiElement != null && psiElement . isPhysical ( ) ) { \n + if ( psiElement != null ) { \n + assert psiElement . isPhysical ( ) : STRING0 + psiElement . getText ( ) + STRING1 + psiElement . getTextRange ( ) + STRING2 + offset + \n + STRING3 + psiElement . getClass ( ) . getName ( ) + STRING4 + ( psiElement . isValid ( ) ? STRING5 : STRING6 ) + \n + psiElement . getContainingFile ( ) + STRING7 + hostFile + STRING3 + hostFile . getClass ( ) . getName ( ) + STRING8 ; \n final List < LocalInspectionToolWrapper > intentionTools = new ArrayList < > ( ) ; \n final InspectionProfile profile = InspectionProjectProfileManager . getInstance ( project ) . getInspectionProfile ( ) ; \n final InspectionToolWrapper [ ] tools = profile . getInspectionTools ( hostFile ) ;", "msg_token": "Collect more data on information level inspections when they re applied to non physical elements"} {"diff": " public class ServiceNetworkContext extends AndroidNetworkContext { \n final String text = \n ZLResource . resource ( STRING0 ) \n . getResource ( STRING1 ) \n - . getResource ( STRING2 ) \n + . getResource ( STRING3 ) \n . getValue ( ) ; \n final Notification notification = new NotificationCompat . Builder ( myService ) \n . setSmallIcon ( android . R . drawable . ic_dialog_alert ) \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class WebAuthorisationScreen extends Activity { \n super . onCreate ( icicle ) ; \n \n requestWindowFeature ( Window . FEATURE_PROGRESS ) ; \n + SQLiteCookieDatabase . init ( this ) ; \n CookieSyncManager . createInstance ( getApplicationContext ( ) ) ; \n CookieManager . getInstance ( ) . removeAllCookie ( ) ; \n final Intent intent = getIntent ( ) ;", "msg_token": "fixed web authorisation behaviour added missed cookie db initialization"} {"diff": " public class NonBlockingCoordinator extends ChannelInterceptorBase { \n } \n \n @ override \n - public boolean accept ( ChannelMessage msg ) { \n - return super . accept ( msg ) ; \n - } \n - \n - @ override \n public void memberAdded ( Member member ) { \n memberAdded ( member , true ) ; \n }", "msg_token": "Remove unnecessary overridden method"} {"diff": " public class MediaCodecVideoRenderer extends MediaCodecRenderer { \n if ( ! MimeTypes . isVideo ( mimeType ) ) { \n return FORMAT_UNSUPPORTED_TYPE ; \n } \n - DrmInitData drmInitData = format . drmInitData ; \n boolean requiresSecureDecryption = false ; \n - for ( int i = NUMBER0 ; i < drmInitData . schemeDataCount ; i ++ ) { \n - requiresSecureDecryption |= drmInitData . get ( i ) . requiresSecureDecryption ; \n + DrmInitData drmInitData = format . drmInitData ; \n + if ( drmInitData != null ) { \n + for ( int i = NUMBER0 ; i < drmInitData . schemeDataCount ; i ++ ) { \n + requiresSecureDecryption |= drmInitData . get ( i ) . requiresSecureDecryption ; \n + } \n } \n MediaCodecInfo decoderInfo = mediaCodecSelector . getDecoderInfo ( mimeType , \n requiresSecureDecryption ) ;", "msg_token": "Fix non DRM playback"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SearchAction implements RootsWsAction { \n \n private static WsRoot . Root toRoot ( WsRoot . Root . Builder builder , UserDto dto ) { \n builder . clear ( ) ; \n - if ( dto . getLogin ( ) != null ) { \n - builder . setLogin ( dto . getLogin ( ) ) ; \n - } \n + builder . setLogin ( dto . getLogin ( ) ) ; \n if ( dto . getName ( ) != null ) { \n builder . setName ( dto . getName ( ) ) ; \n }", "msg_token": "fix some quality flaws UT coverage and useless imports"} {"diff": " public final class TipsManager { \n return excludeNonPackageDescriptors ( resolutionScope . getAllDescriptors ( ) ) ; \n } \n else { \n - HashSet < DeclarationDescriptor > descriptorsSet = Sets . newHashSet ( ) ; \n + Collection < DeclarationDescriptor > descriptorsSet = Sets . newHashSet ( ) ; \n \n ArrayList < ReceiverDescriptor > result = new ArrayList < ReceiverDescriptor > ( ) ; \n resolutionScope . getImplicitReceiversHierarchy ( result ) ;", "msg_token": "Fix Type can be weakened warning"} {"diff": " public class ClusterResource \n Result result ; \n if ( type != null ) \n { \n - context . getExhibitor ( ) . getControlPanelValues ( ) . set ( type , newValue ) ; \n - result = new Result ( STRING0 , true ) ; \n + try \n + { \n + context . getExhibitor ( ) . getControlPanelValues ( ) . set ( type , newValue ) ; \n + result = new Result ( STRING0 , true ) ; \n + } \n + catch ( Exception e ) \n + { \n + result = new Result ( e ) ; \n + } \n } \n else \n {", "msg_token": "Set result correctly if there is an exception setting the control panel"} {"diff": " public class PhoneWindow extends Window implements MenuBuilder . Callback { \n SINGLE \n mPanelChordingKey = NUMBER0 ; \n mPanelMayLongPress = false ; \n - InputMethodManager imm = ( InputMethodManager ) \n - getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n - if ( imm != null ) { \n - mDecor . performHapticFeedback ( HapticFeedbackConstants . LONG_PRESS ) ; \n - imm . toggleSoftInput ( InputMethodManager . SHOW_FORCED , NUMBER0 ) ; \n - } \n - \n } \n \n return false ;", "msg_token": "Long press on menu no longer opens the IME"} {"diff": " public class GitVcsApplicationSettings implements PersistentStateComponent < GitVc \n COMMENT \n COMMENT \n COMMENT \n - @ nonnls static final String [ ] DEFAULT_UNIX_PATHS = { STRING0 , STRING1 , STRING2 , STRING3 } ; \n + @ nonnls static final String [ ] DEFAULT_UNIX_PATHS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add additional default path to git on OSX"} {"diff": " public class HealthCheckTest extends TemporaryJobsTestBase { \n SINGLE \n SINGLE \n final TemporaryJob job = temporaryJobs . job ( ) \n - . command ( STRING0 , STRING1 , STRING2 ) \n + . image ( ALPINE ) \n + . command ( STRING0 , STRING1 , STRING3 ) \n . port ( HEALTH_CHECK_PORT , NUMBER0 ) \n . port ( QUERY_PORT , NUMBER1 ) \n . tcpHealthCheck ( HEALTH_CHECK_PORT ) \n public class HealthCheckTest extends TemporaryJobsTestBase { \n SINGLE \n final HealthCheck healthCheck = TcpHealthCheck . of ( HEALTH_CHECK_PORT ) ; \n final TemporaryJob job = temporaryJobs . job ( ) \n - . command ( STRING0 , STRING1 , STRING2 ) \n + . image ( ALPINE ) \n + . command ( STRING0 , STRING1 , STRING3 ) \n . port ( HEALTH_CHECK_PORT , NUMBER0 ) \n . port ( QUERY_PORT , NUMBER1 ) \n . healthCheck ( healthCheck )", "msg_token": "Fix intermittent failures"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface PsiReference { \n COMMENT \n PsiReference [ ] EMPTY_ARRAY = new PsiReference [ NUMBER0 ] ; \n \n + ArrayFactory < PsiReference > ARRAY_FACTORY = new ArrayFactory < PsiReference > ( ) { \n + @ override \n + public PsiReference [ ] create ( final int count ) { \n + return count == NUMBER0 ? EMPTY_ARRAY : new PsiReference [ count ] ; \n + } \n + } ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Struts tests"} {"diff": " public class OptionsScannerPanel extends AbstractParamPanel { \n panelScanner . add ( getChkDeleteRequestsOnShutdown ( ) , \n LayoutHelper . getGBC ( NUMBER0 , NUMBER1 , NUMBER2 , FLOAT0 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ; \n \n + \n + SINGLE \n + SINGLE \n panelScanner . add ( new JLabel ( Constant . messages . getString ( STRING0 ) ) , \n LayoutHelper . getGBC ( NUMBER0 , NUMBER4 , NUMBER5 , FLOAT1 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ; \n panelScanner . add ( getComboThreshold ( ) , \n public class OptionsScannerPanel extends AbstractParamPanel { \n panelRPC , \n LayoutHelper . getGBC ( NUMBER3 , NUMBER6 , NUMBER5 , FLOAT0 , NUMBER0 , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER3 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ; \n \n - \n SINGLE \n panelScanner . add ( \n new JLabel ( ) ,", "msg_token": "Added some comments"} {"diff": " public class GPUImage { \n } \n } \n } ) ; \n - requestRender ( ) ; \n synchronized ( mFilter ) { \n + requestRender ( ) ; \n try { \n mFilter . wait ( ) ; \n } catch ( InterruptedException e ) {", "msg_token": "Fixed deadlock in getBitmapWithFilterApplied"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ServerStateNotifier implements Runnable { \n \n final CommandResult buildInfoResult = connection . runCommand ( mongo . getDB ( STRING0 ) , new BasicDBObject ( STRING1 , NUMBER0 ) ) ; \n serverDescription = createDescription ( isMasterResult , buildInfoResult , elapsedNanosSum / count ) ; \n - } catch ( MongoSocketException e ) { \n + } catch ( IOException e ) { \n if ( ! isClosed ) { \n connection . close ( ) ; \n connection = null ;", "msg_token": "Fixed exception handling bug in ServerStateNotifier"} {"diff": " public final class HlsPlaylistParser implements UriLoadable . Parser < HlsPlaylist > \n private static final Pattern RESOLUTION_ATTR_REGEX = \n Pattern . compile ( RESOLUTION_ATTR + STRING0 ) ; \n private static final Pattern MEDIA_DURATION_REGEX = \n - Pattern . compile ( MEDIA_DURATION_TAG + STRING1 ) ; \n + Pattern . compile ( MEDIA_DURATION_TAG + STRING2 ) ; \n private static final Pattern MEDIA_SEQUENCE_REGEX = \n Pattern . compile ( MEDIA_SEQUENCE_TAG + STRING3 ) ; \n private static final Pattern TARGET_DURATION_REGEX =", "msg_token": "Don t require comma in EXTINF tags"} {"diff": " public class ProcessCommands { \n } \n \n private void deleteFile ( File file ) { \n - if ( file . exists ( ) ) { \n - if ( ! file . delete ( ) ) { \n - throw new MessageException ( String . format ( \n - STRING0 , file ) ) ; \n - } \n + if ( file . exists ( ) && ! file . delete ( ) ) { \n + throw new MessageException ( String . format ( \n + STRING0 , file ) ) ; \n } \n } \n }", "msg_token": "Fix quality flaw"} {"diff": " public final class Crouton { \n RelativeLayout . LayoutParams . WRAP_CONTENT ) ; \n imageParams . addRule ( RelativeLayout . ALIGN_PARENT_LEFT , RelativeLayout . TRUE ) ; \n imageParams . addRule ( RelativeLayout . CENTER_VERTICAL , RelativeLayout . TRUE ) ; \n + \n + image . setLayoutParams ( imageParams ) ; \n + \n return image ; \n }", "msg_token": "set LayoutParams on ImageView to avoid crash when adding a Drawable or ImageResource via Style Builder"} {"diff": " public class SynchronizeFileOperation extends RemoteOperation { \n \n } catch ( Exception e ) { \n result = new RemoteOperationResult ( e ) ; \n - Log . e ( TAG , STRING0 + mAccount . name + STRING1 + mLocalFile . getRemotePath ( ) + STRING2 + result . getLogMessage ( ) , result . getException ( ) ) ; \n + Log . e ( TAG , STRING0 + mAccount . name + STRING1 + ( mLocalFile != null ? mLocalFile . getRemotePath ( ) : STRING3 ) + STRING2 + result . getLogMessage ( ) , result . getException ( ) ) ; \n \n } finally { \n if ( propfind != null )", "msg_token": "Avoid null pointer in logs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Mismatching arrow length"} {"diff": " public interface GenericTypeDescription extends NamedElement , Iterable < GenericTy \n @ override \n public < T > T accept ( Visitor < T > visitor ) { \n return getSort ( ) . isNonGeneric ( ) \n - ? visitor . onNonGenericType ( asRawType ( ) ) \n + ? visitor . onNonGenericType ( this ) \n : visitor . onGenericArray ( this ) ; \n }", "msg_token": "Removed raw type resolution that was not required"} {"diff": " public class ConcurrentMapManager extends BaseManager { \n } \n } \n } \n + if ( ! request . local ) { \n + request . value = null ; \n + } \n request . response = ( pairs . size ( ) > NUMBER0 ) ? ( ( request . local ) ? pairs : toData ( pairs ) ) : null ; \n } \n }", "msg_token": "Predicate from client cauesed an exception"} {"diff": " public class ActFmSyncThread { \n continue ; \n } \n \n - payload . put ( NUMBER0 , getClientVersion ( ) ) ; \n + payload . put ( getClientVersion ( ) ) ; \n \n try { \n JSONObject response = actFmInvoker . postSync ( payload , entity , token ) ;", "msg_token": "Fixed a stupid bug where messages wouldn t be sent because of ClientVersion"} {"diff": " public final class ExecutionVertex { \n if ( this . cancelRequested . compareAndSet ( true , false ) ) { \n final TaskCancelResult tsr = cancelTask ( ) ; \n if ( tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . SUCCESS \n - || tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . TASK_NOT_FOUND ) { \n + && tsr . getReturnCode ( ) != AbstractTaskResult . ReturnCode . TASK_NOT_FOUND ) { \n LOG . error ( STRING0 + this + STRING1 + tsr . getReturnCode ( ) . toString ( ) \n + ( ( tsr . getDescription ( ) != null ) ? ( STRING2 + tsr . getDescription ( ) + STRING3 ) : STRING4 ) ) ; \n }", "msg_token": "Fixed bug in method checkCancelRequestFlag of class ExecutionVertex"} {"diff": " public class SystemUtils { \n SINGLE \n SINGLE \n \n + public static boolean isGoogleTV ( final Context pContext ) { \n + return SystemUtils . hasSystemFeature ( pContext , STRING0 ) ; \n + } \n + \n public static int getPackageVersionCode ( final Context pContext ) { \n return SystemUtils . getPackageInfo ( pContext ) . versionCode ; \n }", "msg_token": "Added method in SystemUtils to check if the device is a GoogleTV"} {"diff": " public final class WindowInsets { \n int right , int bottom ) { \n final WindowInsets result = new WindowInsets ( this ) ; \n result . mSystemWindowInsets = new Rect ( left , top , right , bottom ) ; \n - result . mSystemWindowInsetsConsumed = ! hasSystemWindowInsets ( ) ; \n return result ; \n }", "msg_token": "Preserve explicit consumed state in replaceSystemWindowInsets DO NOT MERGE"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class JoinConfig { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public JoinConfig setMulticastConfig ( final MulticastConfig multicastConfig ) { \n - this . multicastConfig = multicastConfig ; \n + this . multicastConfig = isNotNull ( multicastConfig , STRING0 ) ; \n return this ; \n } \n \n public class JoinConfig { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public JoinConfig setTcpIpConfig ( final TcpIpConfig tcpIpConfig ) { \n - this . tcpIpConfig = tcpIpConfig ; \n + this . tcpIpConfig = isNotNull ( tcpIpConfig , STRING1 ) ; \n return this ; \n } \n \n public class JoinConfig { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public JoinConfig setAwsConfig ( final AwsConfig awsConfig ) { \n - this . awsConfig = awsConfig ; \n + this . awsConfig = isNotNull ( awsConfig , STRING2 ) ; \n return this ; \n }", "msg_token": "improved javadoc validation"} {"diff": " public class JSONObject extends HashMap implements Map , JSONAware , JSONStreamAwa \n super ( map ) ; \n } \n \n - public boolean put ( String key , Object value ) { \n - return this . put ( key , value ) ; \n + public JSONObject put ( String key , Object value ) { \n + this . put ( key , value ) ; \n + return this ; \n } \n \n - public Object put ( Object key , Object value ) { \n - return this . put ( key , value ) ; \n + public JSONObject put ( Object key , Object value ) { \n + this . put ( key , value ) ; \n + return this ; \n } \n \n public Object get ( String key ) throws JSONException {", "msg_token": "modify add return param"} {"diff": " public class SecondaryReadTest extends TestCase { \n } \n \n String stateStr = member . getString ( STRING0 ) ; \n + if ( stateStr . equalsIgnoreCase ( STRING1 ) ) { \n + continue ; \n + } \n pHosts . add ( new TestHost ( hostnameAndPort , stateStr ) ) ; \n } \n \n public class SecondaryReadTest extends TestCase { \n private static void loadQueryCount ( final List < TestHost > pHosts , final boolean pBefore ) throws Exception { \n for ( TestHost testHost : pHosts ) { \n Mongo mongoHost ; \n - if ( getMongoClientURI ( ) . getCredentials ( ) == null || testHost . stateStr . equals ( STRING2 ) ) { \n + if ( getMongoClientURI ( ) . getCredentials ( ) == null ) { \n mongoHost = new MongoClient ( testHost . hostnameAndPort ) ; \n } else { \n mongoHost = new MongoClient ( new ServerAddress ( testHost . hostnameAndPort ) , asList ( getMongoClientURI ( ) . getCredentials ( ) ) ) ;", "msg_token": "Ignore arbiters entirely in SecondaryReadTest"} {"diff": " public class LoginTestSuite { \n } \n \n @ test \n - @ category ( { NoIgnoreTestCategory . class } ) \n + @ category ( { NoIgnoreTestCategory . class , SmokeTestCategory . class } ) \n public void testLoginAndShowFiles ( ) throws Exception { \n driver . rotate ( ScreenOrientation . PORTRAIT ) ;", "msg_token": "add the test to smoke test"} {"diff": " public class WordCompletionContributor extends CompletionContributor implements \n return true ; \n } \n \n - final CompletionProcess completion = CompletionService . getCompletionService ( ) . getCurrentCompletion ( ) ; \n - if ( completion == null || ! completion . isAutopopupCompletion ( ) ) { \n + if ( parameters . getInvocationCount ( ) > NUMBER0 ) { \n return true ; \n }", "msg_token": "use more orthodox API"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \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 public class BatchNode extends Node implements Savable {", "msg_token": "Fix spelling grammer errors in BatchNode javadoc"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n } \n \n void createBuffer ( PGL pgl ) { \n - SINGLE \n buf = new VertexBuffer ( pg , PGL . ARRAY_BUFFER , size , elementSize , false ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n \n void deleteBuffer ( PGL pgl ) { \n if ( buf . glId != NUMBER0 ) { \n - SINGLE \n intBuffer . put ( NUMBER0 , buf . glId ) ; \n if ( pgl . threadIsCurrent ( ) ) pgl . deleteBuffers ( NUMBER1 , intBuffer ) ; \n - SINGLE \n } \n }", "msg_token": "remove some obsolete code"} {"diff": " public class RecentsPanelView extends FrameLayout implements OnItemClickListener \n if ( mPopup != null ) { \n mPopup . dismiss ( ) ; \n } \n + ( ( RecentsActivity ) mContext ) . moveTaskToBack ( true ) ; \n } \n }", "msg_token": "Move Recents task to back when hiding view"} {"diff": " public abstract class AbstractWeatherParser implements WeatherParser { \n } \n \n Wind wind = weather . getWind ( ) ; \n - if ( wind . getSpeed ( ) == null || wind . getSpeed ( ) == FLOAT0 ) { \n - wind . setSpeed ( null ) ; \n - wind . setDegree ( null ) ; \n - } \n - \n if ( wind . getDirection ( ) == null && wind . getDegree ( ) != null ) { \n String direction = UnitUtils . getWindDirection ( wind . getDegree ( ) ) ; \n wind . setDirection ( direction ) ;", "msg_token": "Removed wind post processing not necessary"} {"diff": " import NAMESPACE ; \n COMMENT \n final class AtomFeedCheckerCmd { \n \n + private AtomFeedCheckerCmd ( ) { \n + } \n + \n public static void main ( String [ ] args ) throws IOException , InterruptedException { \n if ( args . length != NUMBER0 && args . length != NUMBER1 ) { \n System . out . println ( STRING0 + AtomFeedCheckerCmd . class . getSimpleName ( ) + STRING1 ) ;", "msg_token": "add private constructor this class has only the main method"} {"diff": " public class Dialog extends Window { \n \n public Dialog ( String title , Skin skin , String windowStyleName ) { \n super ( title , skin . get ( windowStyleName , WindowStyle . class ) ) ; \n + setSkin ( skin ) ; \n this . skin = skin ; \n initialize ( ) ; \n }", "msg_token": "Set skin on dialog table"} {"diff": " public final class PropertiesExpander \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public PropertiesExpander ( Properties properties ) { \n if ( properties == null ) {", "msg_token": "Remove additional context from IDEA suppression"} {"diff": " public class SMWorldEditListener extends PluginListener { \n WorldEditPlayer player = new SMWorldEditPlayer ( modPlayer ) ; \n \n if ( itemInHand != NUMBER0 ) { return false ; } \n - if ( ! canUseCommand ( modPlayer , STRING0 ) ) { return false ; } \n + if ( ! canUseCommand ( modPlayer , STRING1 ) ) { return false ; } \n \n WorldEditSession session = worldEdit . getSession ( player ) ; \n \n public class SMWorldEditListener extends PluginListener { \n COMMENT \n @ override \n public boolean onBlockDestroy ( Player modPlayer , Block blockClicked ) { \n - if ( ! canUseCommand ( modPlayer , STRING2 ) \n + if ( ! canUseCommand ( modPlayer , STRING3 ) \n && ! canUseCommand ( modPlayer , STRING4 ) ) { return false ; } \n \n WorldEdit worldEdit = WorldEdit . getInstance ( ) ;", "msg_token": "Fixed permission issues regarding the edit wand"} {"diff": " import static NAMESPACE ; \n public class ShadowLooper { \n private static ThreadLocal < Looper > looperForThread = makeThreadLocalLoopers ( ) ; \n private Scheduler scheduler = new Scheduler ( ) ; \n + private Thread myThread = Thread . currentThread ( ) ; \n \n boolean quit ; \n \n public class ShadowLooper { \n } \n } \n \n + @ implementation \n + public Thread getThread ( ) { \n + return myThread ; \n + } \n + \n public boolean hasQuit ( ) { \n return quit ; \n } \n public class LooperTest { \n assertTrue ( shadowOf ( looper ) . hasQuit ( ) ) ; \n assertFalse ( shadowOf ( looper ) . getScheduler ( ) . areAnyRunnable ( ) ) ; \n } \n + \n + @ test \n + public void testLoopThread ( ) { \n + assertTrue ( shadowOf ( Looper . getMainLooper ( ) ) . getThread ( ) == Thread . currentThread ( ) ) ; \n + } \n }", "msg_token": "Add implementation of Looper getThread"} {"diff": " public class AccessTokenProcessingFilter extends OAuthProviderProcessingFilter { \n } \n \n @ override \n - protected void validateOAuthParams ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) throws InvalidOAuthParametersException { \n - super . validateOAuthParams ( consumerDetails , oauthParams ) ; \n + protected void validateAdditionalParameters ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) { \n + super . validateAdditionalParameters ( consumerDetails , oauthParams ) ; \n \n String token = oauthParams . get ( OAuthConsumerParameter . oauth_token . toString ( ) ) ; \n if ( token == null ) { \n public class UnauthenticatedRequestTokenProcessingFilter extends OAuthProviderPr \n } \n \n @ override \n - protected void validateOAuthParams ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) throws InvalidOAuthParametersException { \n - super . validateOAuthParams ( consumerDetails , oauthParams ) ; \n + protected void validateAdditionalParameters ( ConsumerDetails consumerDetails , Map < String , String > oauthParams ) { \n + super . validateAdditionalParameters ( consumerDetails , oauthParams ) ; \n \n if ( isRequire10a ( ) ) { \n String token = oauthParams . get ( OAuthConsumerParameter . oauth_callback . toString ( ) ) ;", "msg_token": "moving additional validation checks to validateAdditionalParams method"} {"diff": " public class Server implements Service < Server > { \n } \n \n public int lookupSecurePort ( final int unsecurePort ) { \n - \n return securePortMappings . get ( unsecurePort ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UndertowDeploymentInfoService implements Service < DeploymentInfo > { \n \n @ override \n public int getConfidentialPort ( HttpServerExchange exchange ) { \n - int port = exchange . getDestinationAddress ( ) . getPort ( ) ; \n + int port = exchange . getConnection ( ) . getLocalAddress ( InetSocketAddress . class ) . getPort ( ) ; \n return host . getValue ( ) . getServer ( ) . getValue ( ) . lookupSecurePort ( port ) ; \n } \n } ;", "msg_token": "Fix NPE in securePortLookup for AJP requests"} {"diff": " public class MemoryGraphSource implements GraphSource { \n private GraphUpdaterConfigurator decorator = new GraphUpdaterConfigurator ( ) ; \n \n public MemoryGraphSource ( String routerId , Graph graph ) { \n + this ( routerId , graph , new PropertiesPreferences ( new Properties ( ) ) ) ; \n + } \n + \n + public MemoryGraphSource ( String routerId , Graph graph , Preferences config ) { \n this . graph = graph ; \n this . graph . routerId = routerId ; \n - SINGLE \n - Preferences config = new PropertiesPreferences ( new Properties ( ) ) ; \n decorator . setupGraph ( graph , config ) ; \n }", "msg_token": "Add MemoryGraphSource constructor with config"} {"diff": " public class RosterItem implements Cacheable { \n protected Set < String > invisibleSharedGroups = new HashSet < String > ( ) ; \n protected SubType subStatus ; \n protected AskType askStatus ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private long rosterID ; \n \n public RosterItem ( long id , \n public class RosterItem implements Cacheable { \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 public class RosterItem implements Cacheable { \n return rosterID ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setID ( long rosterID ) { \n this . rosterID = rosterID ; \n }", "msg_token": "Added javadoc comments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class AbstractConvertContext extends ConvertContext { \n return getInvocationElement ( ) . getXmlTag ( ) ; \n } \n \n + @ nullable \n + public XmlElement getXmlElement ( ) { \n + return getInvocationElement ( ) . getXmlElement ( ) ; \n + } \n + \n @ notnull \n public final XmlFile getFile ( ) { \n return getInvocationElement ( ) . getRoot ( ) . getFile ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ConvertContext { \n @ nullable \n public abstract XmlTag getTag ( ) ; \n \n + @ nullable \n + public abstract XmlElement getXmlElement ( ) ; \n + \n @ notnull \n public abstract XmlFile getFile ( ) ;", "msg_token": "struts multi module web paths"} {"diff": " public class ArrayIndices implements IntrinsicMethod { \n ) { \n receiver . put ( AsmTypeConstants . OBJECT_TYPE , v ) ; \n v . arraylength ( ) ; \n - v . invokestatic ( STRING0 , STRING1 , STRING2 ) ; \n + v . invokestatic ( AsmTypeConstants . JET_INT_RANGE_TYPE . getInternalName ( ) , STRING1 , STRING2 ) ; \n return StackValue . onStack ( AsmTypeConstants . JET_INT_RANGE_TYPE ) ; \n } \n }", "msg_token": "Relace a literal with a constant access"} {"diff": " public class SugarApp extends android . app . Application { \n this . database = new Database ( this ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void onTerminate ( ) { \n if ( this . database != null ) { \n this . database . getDB ( ) . close ( ) ;", "msg_token": "Add documentation on onTerminate to clarify usage scenarios"} {"diff": " public class ConnectivityManager { \n COMMENT \n COMMENT \n COMMENT \n - public void requestNetwork ( NetworkCapabilities nc , NetworkCallback networkCallback , \n + public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback , \n int timeoutMs , int legacyType ) { \n - sendRequestForNetwork ( nc , networkCallback , timeoutMs , REQUEST , legacyType ) ; \n + sendRequestForNetwork ( request . networkCapabilities , networkCallback , timeoutMs , REQUEST , \n + legacyType ) ; \n } \n \n COMMENT \n public class ConnectivityManager { \n COMMENT \n COMMENT \n public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback ) { \n - requestNetwork ( request . networkCapabilities , networkCallback , NUMBER0 , \n + requestNetwork ( request , networkCallback , NUMBER0 , \n inferLegacyTypeForNetworkCapabilities ( request . networkCapabilities ) ) ; \n } \n \n public class ConnectivityManager { \n COMMENT \n public void requestNetwork ( NetworkRequest request , NetworkCallback networkCallback , \n int timeoutMs ) { \n - requestNetwork ( request . networkCapabilities , networkCallback , timeoutMs , \n + requestNetwork ( request , networkCallback , timeoutMs , \n inferLegacyTypeForNetworkCapabilities ( request . networkCapabilities ) ) ; \n }", "msg_token": "Make the new NetworkRequest flavour consistent with the others"} {"diff": " public class BatteryProperty implements Parcelable { \n COMMENT \n public static final int BATTERY_PROP_CHARGE_COUNTER = NUMBER0 ; \n public static final int BATTERY_PROP_CURRENT_NOW = NUMBER1 ; \n + public static final int BATTERY_PROP_CURRENT_AVG = NUMBER2 ; \n \n public int valueInt ;", "msg_token": "Add average current property"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n \n stack . setVisibleBehindActivity ( visible ? r : null ) ; \n if ( ! visible ) { \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n final ActivityRecord next = stack . findNextTranslucentActivity ( r ) ; \n - if ( next != null ) { \n + if ( next != null && next . isHomeActivity ( ) ) { \n mService . convertFromTranslucent ( next . appToken ) ; \n } \n }", "msg_token": "Only make home opaque when requesting visible behind false"} {"diff": " public class RangeTombstone extends Interval < ByteBuffer , DeletionTime > implement \n toWrite . add ( tombstone ) ; \n } \n \n - TypeSizes typeSizes = TypeSizes . NATIVE ; \n for ( RangeTombstone tombstone : toWrite ) \n { \n - size += tombstone . serializedSize ( typeSizes ) ; \n + size += tombstone . serializedSizeForSSTable ( ) ; \n atomCount ++ ; \n if ( out != null ) \n atomSerializer . serializeForSSTable ( tombstone , out ) ;", "msg_token": "Fix incorrect call of serializedSize"} {"diff": " public class MessagingController implements Runnable \n } \n } \n \n + \n + public void sendPendingMessages ( MessagingListener listener ) \n + { \n + final Preferences prefs = Preferences . getPreferences ( mApplication . getApplicationContext ( ) ) ; \n + Account [ ] accounts = prefs . getAccounts ( ) ; \n + for ( Account account : accounts ) \n + { \n + sendPendingMessages ( account , listener ) ; \n + } \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add a variant of sendPendingMessages that will send pending messages in all accounts"} {"diff": " public class PatchResponse { \n @ xmlelementwrapper \n @ xmlelements ( { \n @ xmlelement ( name = STRING0 , type = StopNotePatch . class ) , \n - @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) , \n + @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) \n } ) \n public List < Patch > patches ; \n \n import NAMESPACE ; \n public class PatchSet { \n @ xmlelements ( { \n @ xmlelement ( name = STRING0 , type = StopNotePatch . class ) , \n - @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) , \n + @ xmlelement ( name = STRING1 , type = RouteNotePatch . class ) \n } ) \n public List < Patch > patches ;", "msg_token": "remove trailing commas which do not work in earlier versions of java"} {"diff": " public class SequenceFilesFromDirectory extends AbstractJob { \n Configuration jobConfig = job . getConfiguration ( ) ; \n jobConfig . set ( STRING0 , keyPrefix ) ; \n FileSystem fs = FileSystem . get ( jobConfig ) ; \n - FileStatus fsFileStatus = HadoopUtil . listStatus ( fs , input ) [ NUMBER0 ] ; \n + FileStatus fsFileStatus = fs . getFileStatus ( input ) ; \n String inputDirList = HadoopUtil . buildDirList ( fs , fsFileStatus ) ; \n jobConfig . set ( STRING1 , input . toString ( ) ) ; \n \n public final class SequenceFilesFromMailArchives extends AbstractJob { \n } \n \n FileSystem fs = FileSystem . get ( jobConfig ) ; \n - FileStatus fsFileStatus = HadoopUtil . listStatus ( fs , inputPath ) [ NUMBER0 ] ; \n + FileStatus fsFileStatus = fs . getFileStatus ( inputPath ) ; \n \n jobConfig . set ( STRING1 , inputPath . toString ( ) ) ; \n String inputDirList = HadoopUtil . buildDirList ( fs , fsFileStatus ) ;", "msg_token": "Make conversion to sequence files map reduce fixed issue with not reading a directory list"} {"diff": " public class NowBriefed < TYPE extends RemoteModel > extends ServerToClientMessage \n pushedAtKey = NameMaps . PUSHED_AT_USERS ; \n else if ( NameMaps . TABLE_ID_TASK_LIST_METADATA . equals ( table ) ) \n pushedAtKey = NameMaps . PUSHED_AT_TASK_LIST_METADATA ; \n + else if ( NameMaps . TABLE_ID_WAITING_ON_ME . equals ( table ) ) \n + pushedAtKey = NameMaps . PUSHED_AT_WAITING_ON_ME ; \n \n if ( pushedAtKey != null ) \n Preferences . setLong ( pushedAtKey , pushedAt ) ;", "msg_token": "Record waiting on mes pushed at in NowBriefed"} {"diff": " public abstract class FrameRecorder { \n public static FrameRecorder create ( Class < ? extends FrameRecorder > c , Class p , Object o , int w , int h ) throws Exception { \n Throwable cause = null ; \n try { \n - return c . getConstructor ( p , int . class , int . class ) . newInstance ( o , w , h ) ; \n + return ( FrameRecoder ) c . getConstructor ( p , int . class , int . class ) . newInstance ( o , w , h ) ; \n } catch ( InstantiationException ex ) { \n cause = ex ; \n } catch ( IllegalAccessException ex ) {", "msg_token": "convert Object to FrameRecorder at return statement public static FrameRecorder create"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MUCUserImpl implements MUCUser { \n roles . remove ( group . toLowerCase ( ) ) ; \n role . getChatRoom ( ) . leaveRoom ( role . getNickname ( ) ) ; \n } \n + catch ( UserNotFoundException e ) { \n + SINGLE \n + } \n catch ( Exception e ) { \n Log . error ( e ) ; \n }", "msg_token": "Don t log an error if a user already left the room while processing a leaveRoom request"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class HawtDBAggregateDiscardOnTimeoutTest extends CamelTestSupport { \n - \n - private static AtomicInteger counter = new AtomicInteger ( NUMBER0 ) ; \n + \n private HawtDBAggregationRepository repo ; \n \n @ override", "msg_token": "Removed the unused couter of HawtDBAggregateDiscardOnTimeoutTest"} {"diff": " public abstract class CustomTransactionSigner extends StatelessTransactionSigner \n log . warn ( STRING0 ) ; \n return false ; \n } \n - Script inputScript = txIn . getScriptSig ( ) ; \n - checkNotNull ( inputScript ) ; \n + \n + Script inputScript = checkNotNull ( txIn . getScriptSig ( ) ) ; \n + \n + try { \n + SINGLE \n + SINGLE \n + SINGLE \n + txIn . getScriptSig ( ) . correctlySpends ( tx , i , txIn . getConnectedOutput ( ) . getScriptPubKey ( ) , true ) ; \n + log . warn ( STRING1 , i ) ; \n + continue ; \n + } catch ( ScriptException e ) { \n + SINGLE \n + } \n + \n RedeemData redeemData = txIn . getConnectedRedeemData ( keyBag ) ; \n if ( redeemData == null ) { \n log . warn ( STRING2 , i ) ;", "msg_token": "skip signing if input is fully signed already"} {"diff": " public class MetaContactImpl \n return ( ( PresenceStatus . MAX_STATUS_VALUE - totalStatus ) \n - ( PresenceStatus . MAX_STATUS_VALUE - target . totalStatus ) ) \n COMMENT \n - + getDisplayName ( ) . compareTo ( target . getDisplayName ( ) ) * NUMBER0 \n - + getMetaUID ( ) . compareToIgnoreCase ( target . getMetaUID ( ) ) ; \n + + getDisplayName ( ) . compareToIgnoreCase ( target . getDisplayName ( ) ) \n + COMMENT \n + + getMetaUID ( ) . compareTo ( target . getMetaUID ( ) ) ; \n } \n \n COMMENT", "msg_token": "Ignore case when ordering contacts"} {"diff": " public class HeatmapsDemoActivity extends BaseDemoActivity { \n \n @ override \n protected void startDemo ( ) { \n - getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( new LatLng ( - NUMBER0 , NUMBER1 ) , NUMBER2 ) ) ; \n + getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( new LatLng ( - NUMBER0 , NUMBER3 ) , NUMBER2 ) ) ; \n \n SINGLE \n Spinner spinner = ( Spinner ) findViewById ( R . id . spinner ) ;", "msg_token": "slightly changed initial longitude"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class LightDaemonAnalyzerTestCase extends LightCodeInsightTestCa \n \n @ override \n protected void tearDown ( ) throws Exception { \n + DaemonCodeAnalyzerSettings . getInstance ( ) . setImportHintEnabled ( true ) ; SINGLE \n ( ( DaemonCodeAnalyzerImpl ) DaemonCodeAnalyzer . getInstance ( getProject ( ) ) ) . cleanupAfterTest ( ) ; \n super . tearDown ( ) ; \n }", "msg_token": "avoid unnecessary save in tests"} {"diff": " public class GremlinPluginFunctionalTest implements GraphHolder \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ test \n @ documented \n - public void testGremlinImportGraph ( ) throws UnsupportedEncodingException \n + public void testGremlinImportGraphAndSortResults ( ) throws UnsupportedEncodingException \n { \n String response = gen . get ( ) \n . expectedStatus ( Status . OK . getStatusCode ( ) ) \n - . payload ( STRING0 ) \n + . payload ( STRING1 + \n + STRING2 + \n + STRING3 ) \n . payloadType ( MediaType . APPLICATION_JSON_TYPE ) \n . post ( ENDPOINT ) \n . entity ( ) ; \n assertTrue ( response . contains ( STRING4 ) ) ; \n + assertTrue ( response . contains ( STRING5 ) ) ; \n + assertTrue ( response . indexOf ( STRING4 ) > response . indexOf ( STRING5 ) ) ; \n } \n COMMENT \n COMMENT", "msg_token": "adding sorting to the graph import example"} {"diff": " public abstract class AbstractIOSelector extends Thread implements IOSelector { \n } catch ( Throwable e ) { \n logger . warning ( STRING0 + getName ( ) , e ) ; \n } finally { \n - try { \n - if ( logger . isFinestEnabled ( ) ) { \n - logger . finest ( STRING1 + getName ( ) ) ; \n - } \n - selector . close ( ) ; \n - } catch ( final Exception e ) { \n - logger . finest ( STRING2 , e ) ; \n - } \n + closeSelector ( ) ; \n + } \n + } \n + \n + private void closeSelector ( ) { \n + if ( logger . isFinestEnabled ( ) ) { \n + logger . finest ( STRING1 + getName ( ) ) ; \n + } \n + \n + try { \n + selector . close ( ) ; \n + } catch ( Exception e ) { \n + logger . finest ( STRING2 , e ) ; \n } \n }", "msg_token": "AbstractIOSelector pulled out close selector method"} {"diff": " import NAMESPACE ; \n public interface RegisteredService extends Cloneable , Serializable { \n \n COMMENT \n - long INITIAL_IDENTIFIER_VALUE = Long . MAX_VALUE ; \n + long INITIAL_IDENTIFIER_VALUE = - Long . MAX_VALUE ; \n \n COMMENT \n COMMENT", "msg_token": "negate the initial svc id"} {"diff": " public class LeftCurlyCheck \n switch ( aAST . getType ( ) ) { \n case TokenTypes . CTOR_DEF : \n case TokenTypes . METHOD_DEF : \n - SINGLE \n - SINGLE \n - SINGLE \n startToken = skipAnnotationOnlyLines ( aAST ) ; \n - SINGLE \n brace = aAST . findFirstToken ( TokenTypes . SLIST ) ; \n break ;", "msg_token": "remove old code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class AppCompatDelegateImplV9 extends AppCompatDelegateImplBase \n } \n } \n \n + SINGLE \n + AppCompatDrawableManager . get ( ) . onConfigurationChanged ( mContext ) ; \n + \n SINGLE \n applyDayNight ( ) ; \n } \n public final class AppCompatDrawableManager { \n return drawable ; \n } \n \n + public void onConfigurationChanged ( @ nonnull Context context ) { \n + synchronized ( mDrawableCacheLock ) { \n + LongSparseArray < WeakReference < ConstantState > > cache = mDrawableCaches . get ( context ) ; \n + if ( cache != null ) { \n + SINGLE \n + cache . clear ( ) ; \n + } \n + } \n + } \n + \n private static long createCacheKey ( TypedValue tv ) { \n return ( ( ( long ) tv . assetCookie ) < < NUMBER0 ) | tv . data ; \n }", "msg_token": "Notify AppCompatDrawableManager on config changes"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class Literals { \n \n public static String quoteStringLiteral ( String literal ) { \n - return String . format ( Locale . ENGLISH , STRING0 , escapeStringLiteral ( literal ) ) ; \n + return STRING1 + escapeStringLiteral ( literal ) + STRING1 ; \n } \n \n - public static String escapeStringLiteral ( String literal ) { \n + @ visiblefortesting \n + static String escapeStringLiteral ( String literal ) { \n return literal . replace ( STRING1 , STRING2 ) ; \n } \n }", "msg_token": "Remove expensive format call in Literals quoteStringLiteral"} {"diff": " public class OpenSSLContext implements org . apache . tomcat . util . net . SSLContext { \n private final long aprPool ; \n protected final long ctx ; \n \n - @ suppresswarnings ( STRING0 ) \n - private volatile int aprPoolDestroyed ; \n private static final AtomicIntegerFieldUpdater < OpenSSLContext > DESTROY_UPDATER \n = AtomicIntegerFieldUpdater . newUpdater ( OpenSSLContext . class , STRING1 ) ; \n static final CertificateFactory X509_CERT_FACTORY ;", "msg_token": "Remove unused code"} {"diff": " public class InstrumentClass extends ClassVisitor { \n final SuspendableType markedSuspendable = SuspendableClassifierService . isSuspendable ( className , classEntry , name , desc , signature , exceptions ) ; \n final SuspendableType setSuspendable = classEntry . check ( name , desc ) ; \n \n - if ( markedSuspendable != null && setSuspendable == null ) \n - classEntry . set ( name , desc , markedSuspendable ) ; \n + if ( setSuspendable == null ) \n + classEntry . set ( name , desc , markedSuspendable != null ? markedSuspendable : SuspendableType . NON_SUSPENDABLE ) ; \n \n final boolean suspendable = markedSuspendable == SuspendableType . SUSPENDABLE | setSuspendable == SuspendableType . SUSPENDABLE ;", "msg_token": "Fix instrumentation bug"} {"diff": " public abstract class StandardFieldsDialog extends AbstractFrame { \n } \n \n public void addComboField ( int tabIndex , String fieldLabel , String [ ] choices , String value ) { \n - this . addComboField ( fieldLabel , choices , value , false ) ; \n + this . addComboField ( tabIndex , fieldLabel , choices , value , false ) ; \n } \n \n public void addComboField ( int tabIndex , String fieldLabel , String [ ] choices , String value , boolean editable ) {", "msg_token": "Fixed bug where addComboField called wrong method"} {"diff": " public class Package { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix grammar in documentation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class VoldemortNativeRequestHandler extends AbstractRequestHandler implem \n requestHandler . parseRequest ( inputStream ) ; \n requestHandler . processRequest ( ) ; \n } catch ( VoldemortException e ) { \n + SINGLE \n + SINGLE \n + if ( ! ( e instanceof ObsoleteVersionException ) ) { \n + logger . error ( STRING0 + storeName + STRING1 + e . getMessage ( ) ) ; \n + } \n clearBuffer ( outputContainer ) ; \n - logger . error ( e . getMessage ( ) ) ; \n writeException ( outputStream , e ) ; \n return null ; \n }", "msg_token": "Suppress obsoleteVersionException on logs"} {"diff": " public abstract class PackageManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Elaborate a little on the documentation for PackageManager s resolveActivity"} {"diff": " public class ForgeHooks \n return null ; \n } \n \n - if ( player . isServerWorld ( ) ) \n + if ( ! player . worldObj . isRemote ) \n { \n player . getEntityWorld ( ) . spawnEntityInWorld ( event . entityItem ) ; \n }", "msg_token": "Actually fix dupe drop"} {"diff": " import NAMESPACE ; \n \n public class CubocDesktop { \n public static void main ( String [ ] argv ) { \n - SINGLE \n - Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ; \n new LwjglApplication ( new Cubocy ( ) , STRING0 , NUMBER0 , NUMBER1 , true ) ; \n + \n + SINGLE \n + SINGLE \n + Gdx . app . setLogLevel ( Application . LOG_DEBUG ) ; \n } \n }", "msg_token": "fixed set the log level after creating the Application"} {"diff": " public class WebSocketClientHandshaker13 extends WebSocketClientHandshaker { \n } \n \n SINGLE \n + int wsPort = wsURL . getPort ( ) ; \n FullHttpRequest request = new DefaultFullHttpRequest ( HttpVersion . HTTP_1_1 , HttpMethod . GET , path ) ; \n HttpHeaders headers = request . headers ( ) ; \n \n headers . add ( Names . UPGRADE , Values . WEBSOCKET . toLowerCase ( ) ) \n . add ( Names . CONNECTION , Values . UPGRADE ) \n . add ( Names . SEC_WEBSOCKET_KEY , key ) \n - . add ( Names . HOST , wsURL . getHost ( ) ) ; \n + . add ( Names . HOST , wsURL . getHost ( ) + STRING0 + wsPort ) ; \n \n - int wsPort = wsURL . getPort ( ) ; \n String originValue = STRING1 + wsURL . getHost ( ) ; \n if ( wsPort != NUMBER0 && wsPort != NUMBER1 ) { \n SINGLE", "msg_token": "Adds port to the host header value"} {"diff": " public class RocksDBAsyncSnapshotTest { \n try { \n delayCheckpointLatch . await ( ) ; \n } catch ( InterruptedException e ) { \n - e . printStackTrace ( ) ; \n + throw new RuntimeException ( e ) ; \n } \n \n SINGLE", "msg_token": "hotfix Don t Swallow Exception in RocksDBAsyncSnapshotTest"} {"diff": " public class ItemDescriptionFragment extends Fragment implements AudioplayerCont \n Bundle savedInstanceState ) { \n Log . d ( TAG , STRING0 ) ; \n webvDescription = new WebView ( getActivity ( ) ) ; \n + if ( Build . VERSION . SDK_INT >= NUMBER0 ) { \n + webvDescription . setLayerType ( View . LAYER_TYPE_SOFTWARE , null ) ; \n + } \n if ( UserPreferences . getTheme ( ) == R . style . Theme_AntennaPod_Dark ) { \n - if ( Build . VERSION . SDK_INT >= NUMBER0 \n - && Build . VERSION . SDK_INT <= Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) { \n - webvDescription . setLayerType ( View . LAYER_TYPE_SOFTWARE , null ) ; \n - } \n webvDescription . setBackgroundColor ( getResources ( ) . getColor ( R . color . black ) ) ; \n } \n webvDescription . getSettings ( ) . setUseWideViewPort ( false ) ;", "msg_token": "Prevent WebView segfault"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class TestWebSocket extends TomcatBaseTest { \n \n public class TestWebSocket extends TomcatBaseTest { \n return cc . toString ( ) ; \n } \n \n - private class WebSocketCLient \n + private class WebSocketCLient \n { \n SINGLE \n final String encoding = STRING0 ;", "msg_token": "Fix checkstyle complaints"} {"diff": " public class Bundle extends ConventionTask { \n archiveTask . conventionMapping ( type . getConventionMapping ( ) ) ; \n archiveTask . setBaseName ( getProject ( ) . getArchivesBaseName ( ) + ( args . get ( APPENDIX_KEY ) != null ? STRING0 + args . get ( APPENDIX_KEY ) : STRING1 ) ) ; \n archiveTask . setClassifier ( GUtil . isTrue ( classifier ) ? classifier . substring ( NUMBER0 ) : STRING1 ) ; \n + archiveTask . setExtension ( type . getDefaultExtension ( ) ) ; \n setTaskDependsOn ( archiveTask , getChildrenDependOn ( ) ) ; \n setArchiveConfigurations ( archiveTask , args ) ; \n this . dependsOn ( taskName ) ;", "msg_token": "Fixed bug that the extension was not properly set for the selcted archive method"} {"diff": " public class GroupRestrictionsManager { \n \n for ( String group : groups ) { \n int changeLimit = getChangeLimit ( group ) ; \n - System . out . println ( STRING0 + group + STRING1 + changeLimit ) ; \n if ( changeLimit == - NUMBER0 ) { \n return - NUMBER0 ; \n } else if ( changeLimit > highestLimit ) {", "msg_token": "Removed debug message in GroupRestrictionsManager java"} {"diff": " public class InferenceSession { \n } \n \n private PsiType acceptBoundsWithRecursiveDependencies ( PsiTypeParameter typeParameter , PsiType bound ) { \n - if ( PsiPolyExpressionUtil . mentionsTypeParameters ( bound , Collections . singleton ( typeParameter ) ) ) { \n + if ( ! isProperType ( bound ) ) { \n return mySiteSubstitutor . put ( typeParameter , null ) . substitute ( bound ) ; \n } \n return bound ;", "msg_token": "extend usage of already inferred variables"} {"diff": " public class HintedHandOffManager implements HintedHandOffManagerMBean \n { \n Token < ? > token = StorageService . getPartitioner ( ) . getTokenFactory ( ) . fromByteArray ( row . key . key ) ; \n InetAddress target = StorageService . instance . getTokenMetadata ( ) . getEndpoint ( token ) ; \n - scheduleHintDelivery ( target ) ; \n + SINGLE \n + if ( target != null ) \n + scheduleHintDelivery ( target ) ; \n } \n \n if ( logger_ . isDebugEnabled ( ) )", "msg_token": "Fix NPE during HH when target has been removed from the cluster"} {"diff": " public class Structure implements Cloneable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n return PRIMARY_TYPES . keySet ( ) ; \n } \n }", "msg_token": "added a method that returns the known blender primary types names"} {"diff": " public class SmackIntegrationTestFramework { \n Set < Method > allBeforeClassMethods = getAllMethods ( testClass , withAnnotation ( BeforeClass . class ) ) ; \n allBeforeClassMethods . removeAll ( beforeClassMethods ) ; \n if ( ! allBeforeClassMethods . isEmpty ( ) ) { \n - LOGGER . warning ( STRING0 ) ; \n + throw new IllegalArgumentException ( STRING0 ) ; \n } \n \n if ( beforeClassMethods . size ( ) == NUMBER0 ) { \n public class SmackIntegrationTestFramework { \n Set < Method > allAfterClassMethods = getAllMethods ( testClass , withAnnotation ( AfterClass . class ) ) ; \n allAfterClassMethods . removeAll ( afterClassMethods ) ; \n if ( ! allAfterClassMethods . isEmpty ( ) ) { \n - LOGGER . warning ( STRING1 ) ; \n + throw new IllegalArgumentException ( STRING1 ) ; \n } \n \n if ( afterClassMethods . size ( ) == NUMBER0 ) {", "msg_token": "Throw IAE on wrong signature after before Class methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add DateTime import back"} {"diff": " public class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n if ( childType . isFunctionType ( ) ) { \n FunctionType functionType = childType . toMaybeFunctionType ( ) ; \n \n - boolean isExtern = false ; \n - JSDocInfo functionJSDocInfo = functionType . getJSDocInfo ( ) ; \n - if ( functionJSDocInfo != null && \n - functionJSDocInfo . getAssociatedNode ( ) != null ) { \n - isExtern = functionJSDocInfo . getAssociatedNode ( ) . isFromExterns ( ) ; \n - } \n - \n SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n if ( functionType . isConstructor ( ) && \n ! functionType . isNativeObjectType ( ) && \n ( functionType . getReturnType ( ) . isUnknownType ( ) ||", "msg_token": "Remove a little dead code"} {"diff": " public class JavaGenerator implements CodeGenerator \n return STRING0 + index + byteOrder + STRING1 ; \n \n case UINT16 : \n - return STRING0 + index + byteOrder + STRING2 ; \n + return STRING3 + index + byteOrder + STRING4 ; \n \n case INT32 : \n return STRING5 + index + byteOrder + STRING1 ; \n \n case UINT32 : \n - return STRING5 + index + byteOrder + STRING6 ; \n + return STRING7 + index + byteOrder + STRING8 ; \n \n case FLOAT : \n return STRING9 + index + byteOrder + STRING1 ;", "msg_token": "Java Add parenthesis to ensure precedence"} {"diff": " public class TreeTest extends TestCase { \n wrapped . close ( ) ; \n String answer = writer . toString ( ) ; \n \n + SINGLE \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Add a comment"} {"diff": " public class InternalGeoBounds extends InternalMetricsAggregation implements Geo \n if ( Double . isInfinite ( top ) ) { \n return null ; \n } else if ( Double . isInfinite ( posLeft ) ) { \n - return new BoundingBox ( new GeoPoint ( top , negLeft ) , new GeoPoint ( bottom , posRight ) ) ; \n + return new BoundingBox ( new GeoPoint ( top , negLeft ) , new GeoPoint ( bottom , negRight ) ) ; \n } else if ( Double . isInfinite ( negLeft ) ) { \n - return new BoundingBox ( new GeoPoint ( top , posLeft ) , new GeoPoint ( bottom , negRight ) ) ; \n + return new BoundingBox ( new GeoPoint ( top , posLeft ) , new GeoPoint ( bottom , posRight ) ) ; \n } else if ( wrapLongitude ) { \n double unwrappedWidth = posRight - negLeft ; \n double wrappedWidth = ( NUMBER0 - posLeft ) - ( - NUMBER0 - negRight ) ;", "msg_token": "Fixed failures when geo points are all either positive or negative"} {"diff": " public abstract class PopupMenuHistoryReference extends ExtensionPopupMenuItem { \n this . setEnabled ( isEnabledForHistoryReferences ( getSelectedHistoryReferences ( ) ) ) ; \n display = true ; \n } else { \n + SINGLE \n + COMMENT \n log . debug ( STRING0 + this . getName ( ) + \n STRING1 + invoker . getName ( ) + \n STRING2 + invoker . getClass ( ) . getName ( ) ) ; \n + COMMENT \n } \n \n if ( display ) {", "msg_token": "Commented out excessive debug message"} {"diff": " public class RulesWsTest { \n assertThat ( list . since ( ) ) . isEqualTo ( STRING0 ) ; \n assertThat ( list . isPost ( ) ) . isFalse ( ) ; \n assertThat ( list . isInternal ( ) ) . isFalse ( ) ; \n - assertThat ( list . params ( ) ) . hasSize ( NUMBER0 ) ; \n + assertThat ( list . params ( ) ) . hasSize ( NUMBER1 ) ; \n \n WebService . Action show = controller . action ( STRING1 ) ; \n assertThat ( show ) . isNotNull ( ) ;", "msg_token": "Fix unit test"} {"diff": " public abstract class StringLogger \n @ override \n public void close ( ) \n { \n - createLogger ( ) ; \n - logger . close ( ) ; \n + if ( logger != null ) \n + { \n + logger . close ( ) ; \n + } \n } \n \n @ override \n public class ConsistencyCheckService \n } \n finally \n { \n + report . close ( ) ; \n neoStore . close ( ) ; \n }", "msg_token": "Consistency checker closes the report file"} {"diff": " public abstract class AbstractExecutionThreadService implements Service { \n SINGLE \n logger . log ( \n Level . WARNING , \n - STRING0 + STRING1 , \n + STRING2 , \n ignored ) ; \n } \n notifyFailed ( t ) ;", "msg_token": "Remove unnecessary string concatenation"} {"diff": " public class PythonSdkType extends SdkType { \n static final int MINUTE = NUMBER0 * NUMBER1 ; SINGLE \n @ nonnls public static final String SKELETONS_TOPIC = STRING0 ; \n private static final String [ ] DIRS_WITH_BINARY = new String [ ] { STRING1 , STRING2 , STRING3 } ; \n - private static final String [ ] UNIX_BINARY_NAMES = new String [ ] { STRING4 , STRING5 , STRING6 } ; \n - private static final String [ ] WIN_BINARY_NAMES = new String [ ] { STRING7 , STRING8 , STRING9 , STRING10 } ; \n + private static final String [ ] UNIX_BINARY_NAMES = new String [ ] { STRING5 , STRING6 , STRING4 } ; \n + private static final String [ ] WIN_BINARY_NAMES = new String [ ] { STRING8 , STRING9 , STRING10 , STRING7 } ; \n \n public static PythonSdkType getInstance ( ) { \n return SdkType . findInstance ( PythonSdkType . class ) ;", "msg_token": "Try PyPy and Jython executables first fall back to CPython"} {"diff": " public class PropsParser implements Cloneable { \n fullKey = fullKey . substring ( NUMBER0 , ndx ) + right ; \n } \n \n + if ( fullKey . startsWith ( StringPool . DOT ) ) { \n + SINGLE \n + fullKey = fullKey . substring ( NUMBER1 ) ; \n + } \n + \n SINGLE \n justAdd ( fullKey , value , keyProfiles , operator ) ; \n }", "msg_token": "Fix the case when section is empty after removing filters from it"} {"diff": " public class EventLogger SINGLE \n } \n } \n \n - public static void log ( final EventCode code , final byte [ ] buffer , int offset , int length ) \n - { \n - if ( ON ) \n - { \n - final AtomicBuffer encodedBuffer = encodingBuffer . get ( ) ; \n - final int encodingLength = EventCodec . encode ( encodedBuffer , buffer , offset , length ) ; \n - \n - ringBuffer . write ( code . id ( ) , encodedBuffer , NUMBER0 , encodingLength ) ; \n - } \n - } \n - \n + SINGLE \n + SINGLE \n public static void log ( final EventCode code , final String value ) \n { \n if ( ON ) \n public class EventLogger SINGLE \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public static void logInvocation ( ) \n { \n if ( ON )", "msg_token": "remove unused log method and document why the other two are still static"} {"diff": " public final class Roster extends Manager { \n } \n } \n if ( ! isLoaded ( ) && rosterLoadedAtLogin ) { \n - LOGGER . warning ( STRING0 ) ; \n + LOGGER . warning ( STRING1 + packet ) ; \n } \n Presence presence = ( Presence ) packet ; \n Jid from = presence . getFrom ( ) ;", "msg_token": "Log stanza in Roster PresencePacketListener"} {"diff": " public class JavaPlugin implements Plugin { \n return WrapUtil . toList ( new FileSet ( javaConvention . getClassesDir ( ) ) ) ; \n } \n } ) ) ; \n + jar . configurations ( new String [ ] { Dependency . MASTER_CONFIGURATION } ) ; \n } \n \n private void configureDists ( Project project , JavaPluginConvention javaPluginConvention ) {", "msg_token": "Add default artifact to master configuration"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unnecessary imports"} {"diff": " public class CypherPluginFunctionalTest implements GraphHolder \n \n @ before \n public void startServer ( ) { \n + graphdb . cleanContent ( ) ; \n server = new WrappingNeoServerBootstrapper ( \n graphdb ) ; \n server . start ( ) ;", "msg_token": "cleaning all content"} {"diff": " public class FilterQuery \n return ; \n \n SINGLE \n - setSucceeded ( ! isSucceeded ( ) && ! query . getQueryResults ( ) . isEmpty ( ) ) ; \n + if ( ! isSucceeded ( ) && ! query . getQueryResults ( ) . isEmpty ( ) ) \n + setSucceeded ( true ) ; \n \n SINGLE \n filterQueries . remove ( query ) ; \n public class TreeContactList \n tempTreeModel , \n filterSource ) ; \n \n - filterQuery . setSucceeded ( \n - ! filterQuery . isSucceeded ( ) && isSucceeded ) ; \n + if ( ! filterQuery . isSucceeded ( ) && isSucceeded ) \n + filterQuery . setSucceeded ( true ) ; \n } \n } . start ( ) ; \n }", "msg_token": "Fix appearing add contact and call contact buttons before the search is completed"} {"diff": " public class FavouritesDbHelper { \n } \n } \n } \n - if ( index . length ( ) > NUMBER0 || emoticons ) { \n - AlertDialog . Builder builder = new AlertDialog . Builder ( context ) ; \n + if ( ( index . length ( ) > NUMBER0 || emoticons ) && \n + context . getMapActivity ( ) != null ) { \n + AlertDialog . Builder builder = new AlertDialog . Builder ( context . getMapActivity ( ) ) ; \n builder . setTitle ( R . string . fav_point_dublicate ) ; \n if ( emoticons ) { \n builder . setMessage ( context . getString ( R . string . fav_point_emoticons_message , name ) ) ;", "msg_token": "Fixed issue with wrong context for dialog"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "fixed checkstyle issues"} {"diff": " public class Nashorn8 { \n NashornScriptEngine engine = ( NashornScriptEngine ) new ScriptEngineManager ( ) . getEngineByName ( STRING0 ) ; \n engine . eval ( STRING1 ) ; \n \n - engine . invokeFunction ( STRING2 ) ; \n - engine . invokeFunction ( STRING3 ) ; \n - engine . invokeFunction ( STRING4 , STRING5 ) ; \n - engine . invokeFunction ( STRING4 , new Person ( STRING6 , STRING7 ) ) ; \n + engine . invokeFunction ( STRING2 ) ; SINGLE \n + engine . invokeFunction ( STRING3 ) ; SINGLE \n + engine . invokeFunction ( STRING4 , STRING5 ) ; SINGLE \n + engine . invokeFunction ( STRING4 , new Person ( STRING6 , STRING7 ) ) ; SINGLE \n } \n \n }", "msg_token": "Add output as comments"} {"diff": " public abstract class UsefulTestCase extends TestCase { \n public static void assertEmpty ( final Collection collection ) { \n assertOrderedEquals ( collection ) ; \n } \n + \n + protected < T extends Disposable > T disposeOnTearDown ( final T disposable ) { \n + Disposer . register ( myTestRootDisposable , disposable ) ; \n + return disposable ; \n + } \n }", "msg_token": "DOM attribute value change didn t send events sometimes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed missing import"} {"diff": " public class NewlineAtEndOfFileCheckTest \n check . configure ( checkConfig ) ; \n File impossibleFile = new File ( STRING0 ) ; \n Set < LocalizedMessage > messages = check . process ( impossibleFile , Lists . newArrayList ( STRING1 ) ) ; \n - assertTrue ( messages . size ( ) == NUMBER0 ) ; \n + assertEquals ( NUMBER0 , messages . size ( ) ) ; \n Iterator < LocalizedMessage > iter = messages . iterator ( ) ; \n assertEquals ( STRING2 , iter . next ( ) . getMessage ( ) ) ; \n } \n package NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n public class AbstractTypeAwareCheckTest extends BaseCheckTestSupport { \n \n Method getClazz = regularClass . getClass ( ) . getDeclaredMethod ( STRING3 ) ; \n getClazz . setAccessible ( true ) ; \n - assertTrue ( getClazz . invoke ( regularClass ) == null ) ; \n + assertNull ( getClazz . invoke ( regularClass ) ) ; \n } \n \n @ test", "msg_token": "Simplify JUnit assertions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CanvasView extends FrameLayout { \n @ subscribe \n public void onBeginBubbleDrag ( MainController . BeginBubbleDragEvent e ) { \n fadeIn ( ) ; \n + mBottomMaskView . setVisibility ( VISIBLE ) ; \n mContentViewY = Config . mScreenHeight - Config . mContentOffset ; \n hideContentView ( ) ; \n MainController . get ( ) . showBadge ( false ) ; \n public class CanvasView extends FrameLayout { \n mContentView . setTranslationY ( mContentViewY ) ; \n if ( mAnimTime < mAnimPeriod ) { \n MainController . get ( ) . scheduleUpdate ( ) ; \n + } else if ( mTargetY == FLOAT0 ) { \n + mBottomMaskView . setVisibility ( GONE ) ; \n } \n mAnimTime += dt ; \n }", "msg_token": "Hide mBottomMaskView where not needed"} {"diff": " public class PreferencesFrame { \n SINGLE \n \n deletePreviousBox = \n - new JCheckBox ( Language . text ( STRING0 ) ) ; \n + new JCheckBox ( Language . text ( STRING0 ) ) ; \n SINGLE \n SINGLE \n SINGLE \n public class PreferencesFrame { \n \n SINGLE \n \n - checkUpdatesBox = new JCheckBox ( Language . text ( STRING1 ) ) ; \n + checkUpdatesBox = \n + new JCheckBox ( Language . text ( STRING1 ) ) ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "only formatting changes"} {"diff": " public class AsyncHttpClientConfigBean extends AsyncHttpClientConfig { \n return this ; \n } \n \n + public AsyncHttpClientConfigBean setStrict302Handling ( boolean strict302Handling ) { \n + this . strict302Handling = strict302Handling ; \n + return this ; \n + } \n + \n public AsyncHttpClientConfigBean setCompressionEnabled ( boolean compressionEnabled ) { \n this . compressionEnabled = compressionEnabled ; \n return this ;", "msg_token": "enable customization of strict302Handling in AsyncHttpClientConfigBean"} {"diff": " public class AggregationStrategyWithPreservationTest extends CamelTestSupport { \n public void configure ( ) throws Exception { \n SINGLE \n from ( STRING0 ) \n - . aggregate ( new ZipAggregationStrategy ( true ) ) \n + . aggregate ( new ZipAggregationStrategy ( true , true ) ) \n . constant ( true ) \n . completionFromBatchConsumer ( ) \n . eagerCheckCompletion ( )", "msg_token": "Fix Camel zipfile AggregationStrategyWithPreservationTest currently failing locally and on the CI Server"} {"diff": " public class ModelChartImpl extends JScrollPane implements ModelChart { \n setShowTotalMemoryLine ( preferences . getGcLineProperty ( GCPreferences . TOTAL_MEMORY ) ) ; \n setShowUsedMemoryLine ( preferences . getGcLineProperty ( GCPreferences . USED_MEMORY ) ) ; \n setShowInitialMarkLevel ( preferences . getGcLineProperty ( GCPreferences . INITIAL_MARK_LEVEL ) ) ; \n + setShowConcurrentCollectionBeginEnd ( preferences . getGcLineProperty ( GCPreferences . CONCURRENT_COLLECTION_BEGIN_END ) ) ; \n } \n \n public GCModel getModel ( ) {", "msg_token": "add showConcurrentCollectionBeginEnd to applyPreferences"} {"diff": " public final class LeaderInquireClient { \n CommonUtils . sleepMs ( LOG , Constants . SECOND_MS ) ; \n } \n } catch ( Exception e ) { \n - LOG . error ( STRING0 , mZookeeperAddress , e . getMessage ( ) ) ; \n + LOG . error ( STRING1 , \n + mZookeeperAddress , e . getMessage ( ) ) ; \n } \n \n return null ;", "msg_token": "Improve error message"} {"diff": " public class CreateSegmentCommand extends AbstractBaseAdminCommand implements Co \n \n FileFormat configFormat = segmentGeneratorConfig . getFormat ( ) ; \n if ( _format == null ) { \n + if ( configFormat == null ) { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n _format = configFormat ; \n } else { \n - if ( configFormat != _format ) { \n + if ( configFormat != _format && configFormat != FileFormat . AVRO ) { \n LOGGER . warn ( STRING1 , _format ) ; \n } \n }", "msg_token": "In CreateSegmentCommand enhance the check for format to avoid null"} {"diff": " class ResizingTextView extends TextView { \n } \n \n public ResizingTextView ( Context ctx , AttributeSet attrs ) { \n - this ( ctx , attrs , NUMBER0 ) ; \n + SINGLE \n + SINGLE \n + this ( ctx , attrs , android . R . attr . textViewStyle ) ; \n } \n \n public ResizingTextView ( Context ctx ) {", "msg_token": "Pass an appropriate default style up the constructor chain"} {"diff": " public class DroidGap extends Activity implements CordovaInterface { \n this . appView . loadUrl ( STRING0 ) ; \n \n SINGLE \n - this . pluginManager . onDestroy ( ) ; \n + if ( this . pluginManager != null ) { \n + this . pluginManager . onDestroy ( ) ; \n + } \n } \n else { \n this . endActivity ( ) ; \n public class DroidGap extends Activity implements CordovaInterface { \n public void postMessage ( String id , Object data ) { \n \n SINGLE \n - this . pluginManager . postMessage ( id , data ) ; \n + if ( this . pluginManager != null ) { \n + this . pluginManager . postMessage ( id , data ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fixing app crash when clicking Menu or Back buttons while splashscreen is being shown"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n canvas . saveLayerAlpha ( NUMBER0 , NUMBER0 , canvas . getWidth ( ) , canvas . getHeight ( ) , ( int ) ( NUMBER1 * ( float ) mHeaderBottomPosition / headerHeight ) , Canvas . HAS_ALPHA_LAYER_SAVE_FLAG ) ; \n mStickiedHeader . draw ( canvas ) ; \n canvas . restore ( ) ; \n + canvas . restore ( ) ; \n } \n }", "msg_token": "Fix missing scroll indicator"} {"diff": " public class SpiderHtmlParser extends SpiderParser { \n else \n baseURL = message . getRequestHeader ( ) . getURI ( ) . toString ( ) ; \n \n + SINGLE \n + Element base = source . getFirstElement ( HTMLElementName . BASE ) ; \n + if ( base != null ) { \n + if ( log . isDebugEnabled ( ) ) \n + log . debug ( STRING0 + base . getDebugInfo ( ) ) ; \n + if ( base . getAttributeValue ( STRING1 ) != null ) \n + baseURL = base . getAttributeValue ( STRING1 ) ; \n + } \n + \n SINGLE \n parseSource ( message , source , depth , baseURL ) ;", "msg_token": "Add support for HTML base tag in Spider"} {"diff": " import NAMESPACE ; \n @ target ( ElementType . TYPE ) \n public @ interface MappedJdbcTypes { \n public JdbcType [ ] value ( ) ; \n + boolean includeNullJdbcType ( ) default false ; \n } \n public final class TypeHandlerRegistry { \n for ( JdbcType handledJdbcType : mappedJdbcTypes . value ( ) ) { \n register ( javaType , handledJdbcType , typeHandler ) ; \n } \n + if ( mappedJdbcTypes . includeNullJdbcType ( ) ) { \n + register ( javaType , null , typeHandler ) ; \n + } \n } else { \n register ( javaType , null , typeHandler ) ; \n }", "msg_token": "Allow a type handler to handle JDBC subtypes as well as the base Java type"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class GenericError extends DomainError { \n + public class GenericError extends DomainError { \n private Exception cause ; \n private String description ; \n \n public class FakePresenter extends RosiePresenter { \n } \n \n @ override protected boolean onGlobalError ( DomainError domainError ) { \n - if ( fakeUi != null ) { \n + if ( fakeUi != null ) { \n fakeUi . showFakeError ( ) ; \n return true ; \n } else {", "msg_token": "Fix pending check style error"} {"diff": " public class ByteEncoder extends Bytes { \n protected void putBinary ( String name , byte [ ] data ) { \n \n _put ( BINARY , name ) ; \n + _buf . putInt ( NUMBER0 + data . length ) ; \n + \n + _buf . put ( B_BINARY ) ; \n _buf . putInt ( data . length ) ; \n int before = _buf . position ( ) ; \n _buf . put ( data ) ;", "msg_token": "ByteEncoder reverting change format was incorrectly documented"} {"diff": " class AnonymousToInnerDialog extends DialogWrapper { \n if ( psiType instanceof PsiClassType ) { \n type = TypeConversionUtil . erasure ( psiType ) ; \n } \n + if ( type == null || type . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ) return STRING0 ; \n if ( type instanceof PsiArrayType ) { \n type = type . getDeepComponentType ( ) ; \n } \n - return type . getPresentableText ( ) ; \n + return StringUtil . getShortName ( type . getPresentableText ( ) ) ; \n } \n } , STRING0 ) + name , STRING1 + name } ; \n } else {", "msg_token": "trim containing class name skip Object in new name suggestions"} {"diff": " public interface IMap < K , V > \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 COMMENT \n COMMENT \n @ override", "msg_token": "Call this evcitAll"} {"diff": " public abstract class HttpContentDecoder extends MessageToMessageDecoder < HttpObj \n \n SINGLE \n CharSequence targetContentEncoding = getTargetContentEncoding ( contentEncoding ) ; \n - if ( HttpHeaderValues . IDENTITY . equals ( targetContentEncoding ) ) { \n + if ( HttpHeaderValues . IDENTITY . contentEquals ( targetContentEncoding ) ) { \n SINGLE \n SINGLE \n headers . remove ( HttpHeaderNames . CONTENT_ENCODING ) ;", "msg_token": "Fix HttpHeaderValues IDENTITY equals usage"} {"diff": " public class RaftDiscoveryServiceConnector extends LifecycleAdapter implements C \n } \n \n @ override \n - public void onCoreTopologyChange ( ) \n + public synchronized void onCoreTopologyChange ( ) \n { \n - raftMachine . setTargetMembershipSet ( discoveryService . currentTopology ( ) . coreMembers ( ) ) ; \n + Set < MemberId > targetMembers = discoveryService . currentTopology ( ) . coreMembers ( ) ; \n + raftMachine . setTargetMembershipSet ( targetMembers ) ; \n } \n }", "msg_token": "Fix a race condition in onCoreTopologyChange"} {"diff": " public class ASCIIReader \n } \n int count = fInputStream . read ( fBuffer , NUMBER0 , length ) ; \n for ( int i = NUMBER0 ; i < count ; i ++ ) { \n - int b0 = fBuffer [ i ] ; \n + int b0 = ( NUMBER1 & fBuffer [ i ] ) ; SINGLE \n if ( b0 > NUMBER2 ) { \n throw new IOException ( Localizer . getMessage ( STRING0 , \n Integer . toString ( b0 ) ) ) ;", "msg_token": "Fix signed unsigned conversion reported by Find Bugs"} {"diff": " public final class ChannelUpgradeHandler implements HttpHandler { \n COMMENT \n COMMENT \n COMMENT \n - private synchronized void addProtocol ( String productString , HttpUpgradeListener openListener , final HttpUpgradeHandshake handshake ) { \n + public synchronized void addProtocol ( String productString , HttpUpgradeListener openListener , final HttpUpgradeHandshake handshake ) { \n addProtocol ( productString , openListener , null , handshake ) ; \n }", "msg_token": "flag addProtocol String HttpUpgradeListener HttpUpgradeHandshake method public again"} {"diff": " public abstract class SocketReader implements Runnable { \n SINGLE \n packet . setShow ( null ) ; \n } \n + if ( session . getStatus ( ) == Session . STATUS_CLOSED && packet . isAvailable ( ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + Log . warn ( STRING0 + packet ) ; \n + continue ; \n + } \n processPresence ( packet ) ; \n } \n else if ( STRING1 . equals ( tag ) ) {", "msg_token": "Ignore available presences of closed sessions"} {"diff": " public class QTestUtil { \n SessionState . get ( ) . getConf ( ) . setBoolean ( STRING0 , true ) ; \n int result = cliDriver . processLine ( cleanupCommands ) ; \n if ( result != NUMBER0 ) { \n - Assert . fail ( STRING1 + result ) ; \n + LOG . error ( STRING2 , result ) ; \n + SINGLE \n } \n SessionState . get ( ) . getConf ( ) . setBoolean ( STRING0 , false ) ; \n } else {", "msg_token": "Remove AssertionError for non zero return codes in QTestUtil cleanup Siddharth Seth reviewed by Hari Subramaniyan"} {"diff": " public class DomUtils \n \n return ( nativeEvt . getButton ( ) == NativeEvent . BUTTON_LEFT ) && commandKey ; \n } \n + \n + public static final native void setStyle ( Element element , \n + String name , \n + String value ) COMMENT \n + COMMENT \n + COMMENT ; \n } \n public class PDFViewerPanel extends Composite \n div . getStyle ( ) . setHeight ( h , Unit . PX ) ; \n div . getStyle ( ) . setBackgroundColor ( STRING0 ) ; \n div . getStyle ( ) . setProperty ( STRING1 , STRING2 ) ; \n - div . getStyle ( ) . setProperty ( STRING3 , STRING2 ) ; \n - div . getStyle ( ) . setProperty ( STRING4 , STRING2 ) ; \n + SINGLE \n + SINGLE \n + DomUtils . setStyle ( div , STRING3 , STRING2 ) ; \n + DomUtils . setStyle ( div , STRING4 , STRING2 ) ; \n \n pageContainer . appendChild ( div ) ;", "msg_token": "use native assessor to set non camelCase style names work around gwt hosted mode assertion"} {"diff": " public class SubtypingConstraint implements ConstraintFormula { \n public boolean reduce ( InferenceSession session , List < ConstraintFormula > constraints ) { \n if ( myIsRefTypes ) { \n if ( session . isProperType ( myS ) && session . isProperType ( myT ) ) { \n - if ( myT == null || myS == null ) return myS == myT ; \n + if ( myT == null ) return myS == null || myS . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ; \n + if ( myS == null ) return myT . equalsToText ( CommonClassNames . JAVA_LANG_OBJECT ) ; \n return TypeConversionUtil . isAssignable ( myT , myS ) ; \n } \n InferenceVariable inferenceVariable = session . getInferenceVariable ( myS ) ;", "msg_token": "accept Object null type argument equivalence"} {"diff": " public class ToolbarActionBar extends ActionBar { \n \n @ override \n public void setCustomView ( View view , LayoutParams layoutParams ) { \n - view . setLayoutParams ( layoutParams ) ; \n + if ( view != null ) { \n + view . setLayoutParams ( layoutParams ) ; \n + } \n mDecorToolbar . setCustomView ( view ) ; \n }", "msg_token": "Fix crash in ToolbarActionBar when setting null custom view"} {"diff": " public class ClipboardManager extends android . text . ClipboardManager { \n COMMENT \n public boolean hasText ( ) { \n try { \n - return getService ( ) . hasPrimaryClip ( ) ; \n + return getService ( ) . hasClipboardText ( ) ; \n } catch ( RemoteException e ) { \n return false ; \n }", "msg_token": "Fix ClipboardManager hasText"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class NioEndpoint { \n } \n \n SINGLE \n - log . info ( STRING0 + pollerThreadCount ) ; \n pollers = new Poller [ pollerThreadCount ] ; \n for ( int i = NUMBER0 ; i < pollerThreadCount ; i ++ ) { \n pollers [ i ] = new Poller ( ) ;", "msg_token": "fixed imports and removed not needed log message"} {"diff": " public class RendererRegistry { \n internalRenderers . put ( DEFAULT_RENDER , STRING0 ) ; \n internalRenderers . put ( STRING1 , STRING1 + STRING2 ) ; \n internalRenderers . put ( STRING3 , STRING3 + STRING2 ) ; \n + internalRenderers . put ( STRING4 , STRING4 + STRING2 ) ; \n internalRenderers . put ( STRING5 , STRING5 + STRING2 ) ; \n internalRenderers . put ( STRING6 , STRING6 + STRING2 ) ; \n }", "msg_token": "publish cycle map renderer"} {"diff": " public class DistributedMergeTask implements Task < Object [ ] [ ] > { \n if ( t instanceof RemoteTransportException ) { \n t = t . getCause ( ) ; \n } \n - countDownLatch . countDown ( ) ; \n for ( ListenableFuture < Object [ ] [ ] > result : results ) { \n ( ( SettableFuture < Object [ ] [ ] > ) result ) . setException ( t ) ; \n } \n + countDownLatch . countDown ( ) ; \n logger . error ( STRING0 , t ) ; \n } \n } ) ;", "msg_token": "improve UnkownUpstreamFailure handling in a distributed merge task"} {"diff": " public class UniquePropertiesCheck extends AbstractFileSetCheck { \n COMMENT \n COMMENT \n public UniquePropertiesCheck ( ) { \n - super . setFileExtensions ( STRING0 ) ; \n + setFileExtensions ( STRING0 ) ; \n } \n \n @ override \n public class IndentationCheck extends Check { \n COMMENT \n COMMENT \n public void indentationLog ( int line , String key , Object . . . args ) { \n - super . log ( line , key , args ) ; \n + log ( line , key , args ) ; \n } \n \n COMMENT \n public class JTreeTable extends JTable { \n tree = new TreeTableCellRenderer ( treeTableModel ) ; \n \n SINGLE \n - super . setModel ( new TreeTableModelAdapter ( treeTableModel , tree ) ) ; \n + setModel ( new TreeTableModelAdapter ( treeTableModel , tree ) ) ; \n \n SINGLE \n final ListToTreeSelectionModelWrapper selectionWrapper = new", "msg_token": "Remove unnecessary uses of the super qualifier"} {"diff": " public class EncapsulateFieldsTest extends MultiFileTestCase { \n } \n \n public void testDiffWithReturnTypeOnly ( ) throws Exception { \n - doTest ( STRING0 , STRING1 ) ; \n + doTest ( STRING0 , STRING2 ) ; \n } \n \n public void testDiffWithReturnTypeOnlyInHierarchy ( ) throws Exception { \n - doTest ( STRING0 , STRING3 ) ; \n + doTest ( STRING0 , STRING4 ) ; \n } \n \n public void testHideOverriderMethod ( ) throws Exception {", "msg_token": "update test data"} {"diff": " public class IdeaApplication { \n UIManager . put ( STRING0 , Boolean . TRUE ) ; \n } \n \n - if ( SystemInfo . isWindows ) { \n - UIManager . installLookAndFeel ( STRING1 , STRING2 ) ; \n - } \n + try { \n + Class . forName ( STRING3 ) ; \n \n - UIManager . installLookAndFeel ( STRING4 , STRING3 ) ; \n - UIManager . installLookAndFeel ( STRING5 , STRING6 ) ; \n - UIManager . installLookAndFeel ( STRING7 , STRING8 ) ; \n + if ( SystemInfo . isWindows ) { \n + UIManager . installLookAndFeel ( STRING1 , STRING2 ) ; \n + } \n + \n + UIManager . installLookAndFeel ( STRING4 , STRING3 ) ; \n + UIManager . installLookAndFeel ( STRING5 , STRING6 ) ; \n + UIManager . installLookAndFeel ( STRING7 , STRING8 ) ; \n + } \n + catch ( ClassNotFoundException ignored ) { } \n } \n \n protected class IdeStarter implements ApplicationStarter {", "msg_token": "Remove Plastic L Fs from small IDEs"} {"diff": " public class ScrollPane extends WidgetGroup { \n } \n \n public void drawDebug ( ShapeRenderer shapes ) { \n - drawDebugBounds ( shapes ) ; \n + shapes . flush ( ) ; \n applyTransform ( shapes , computeTransform ( ) ) ; \n if ( ScissorStack . pushScissors ( scissorBounds ) ) { \n drawDebugChildren ( shapes ) ;", "msg_token": "Fixed debug lines for ScrollPane"} {"diff": " public class SourceSatellite extends SatelliteApplication \n } \n \n @ inject \n - public void initialize ( ChunkSatelliteView view , \n + public void initialize ( SourceSatelliteView view , \n Satellite satellite , \n Provider < AceThemes > pAceThemes , \n ApplicationUncaughtExceptionHandler exHandler )", "msg_token": "revert incorrect mapping in source window introduced by satellite chunks"} {"diff": " public class DefaultServlet extends HttpServlet implements ResourceFactory \n } \n \n String pathInContext = URIUtil . addPaths ( servletPath , pathInfo ) ; \n - boolean endsWithSlash = request . getRequestURI ( ) . endsWith ( URIUtil . SLASH ) ; \n + boolean endsWithSlash = ( pathInfo == null ? request . getServletPath ( ) : pathInfo ) . endsWith ( URIUtil . SLASH ) ; \n \n SINGLE \n String pathInContextGz = null ;", "msg_token": "fixed endswithslash test"} {"diff": " public class ViewPropertyAnimator { \n @ override \n public void onAnimationEnd ( Animator animation ) { \n mView . setHasTransientState ( false ) ; \n + if ( mAnimatorCleanupMap != null ) { \n + Runnable r = mAnimatorCleanupMap . get ( animation ) ; \n + if ( r != null ) { \n + r . run ( ) ; \n + } \n + mAnimatorCleanupMap . remove ( animation ) ; \n + } \n if ( mListener != null ) { \n mListener . onAnimationEnd ( animation ) ; \n } \n public class ViewPropertyAnimator { \n } \n mAnimatorOnEndMap . remove ( animation ) ; \n } \n - if ( mAnimatorCleanupMap != null ) { \n - Runnable r = mAnimatorCleanupMap . get ( animation ) ; \n - if ( r != null ) { \n - r . run ( ) ; \n - } \n - mAnimatorCleanupMap . remove ( animation ) ; \n - } \n mAnimatorMap . remove ( animation ) ; \n }", "msg_token": "Revert Revert Run cleanup before end actions of ViewPropertyAnimator"} {"diff": " public class AndroidWiFiADBAction extends AnAction implements View { \n } \n \n @ override public void showNoConnectedDevicesNotification ( ) { \n - showNotification ( ANDROID_WIFI_ADB_TITLE , STRING0 , \n + showNotification ( ANDROID_WIFI_ADB_TITLE , \n + STRING1 , \n NotificationType . INFORMATION ) ; \n } \n \n public class ADBParser { \n private static final String END_DEVICE_IP_INDICATOR = STRING2 ; \n private static final String START_DEVICE_IP_INDICATOR = STRING3 ; \n private static final String ERROR_PARSING_DEVICE_IP_KEY = STRING4 ; \n + public static final String DAEMON_INDICATOR = STRING5 ; \n \n public List < Device > parseGetDevicesOutput ( String adbDevicesOutput ) { \n List < Device > devices = new LinkedList < Device > ( ) ; \n + if ( adbDevicesOutput . contains ( DAEMON_INDICATOR ) ) { \n + return devices ; \n + } \n String [ ] splittedOutput = adbDevicesOutput . split ( STRING6 ) ; \n if ( splittedOutput . length == NUMBER0 ) { \n return devices ;", "msg_token": "Fix bug discovered during the adb startup process"} {"diff": " public class SlidingLayer extends FrameLayout { \n completeScroll ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface OnInteractListener { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void onOpen ( ) ; \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void onClose ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void onOpened ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void onClosed ( ) ; \n \n }", "msg_token": "added documentation to OnInteractListener"} {"diff": " public class PatternBoard extends PatternEdge implements OnBoardForwardEdge { \n COMMENT \n long current_time = state0 . getTime ( ) ; \n int bestWait = - NUMBER0 ; \n - ServiceDay bestServiceDay = null ; \n TripTimes bestTripTimes = null ; \n int serviceId = getPattern ( ) . getServiceId ( ) ; \n SINGLE \n public class PatternBoard extends PatternEdge implements OnBoardForwardEdge { \n SINGLE \n bestWait = wait ; \n bestTripTimes = tripTimes ; \n - bestServiceDay = sd ; \n } \n } \n }", "msg_token": "Remove unneeded bestServiceDay"} {"diff": " public class MUCRoleImpl implements MUCRole { \n } \n \n public void send ( Packet packet ) { \n + if ( packet == null ) { \n + return ; \n + } \n packet . setTo ( user . getAddress ( ) ) ; \n router . route ( packet ) ; \n }", "msg_token": "Added sanity check"} {"diff": " class FloatingAnimatorLollipopImpl extends FloatingAnimator { \n public void hide ( ) { \n super . hide ( ) ; \n \n - SINGLE \n - if ( getAppBar ( ) != null ) { \n - getFab ( ) . setTranslationY ( getFloatingToolbar ( ) . getTranslationY ( ) ) ; \n - } \n + getFab ( ) . setY ( getFloatingToolbar ( ) . getY ( ) ) ; \n \n ObjectAnimator anim = ObjectAnimator . ofFloat ( getFab ( ) , View . X , View . Y , createPath ( false ) ) ; \n anim . setInterpolator ( new AccelerateDecelerateInterpolator ( ) ) ; \n public class MainActivity extends AppCompatActivity implements FloatingToolbar . I \n @ override \n public boolean onMenuItemClick ( MenuItem item ) { \n if ( item . getItemId ( ) == R . id . action_snackbar ) { \n - Snackbar . make ( mToolbar , STRING0 , Snackbar . LENGTH_LONG ) . show ( ) ; \n + Snackbar . make ( mToolbar , STRING0 , Snackbar . LENGTH_INDEFINITE ) . show ( ) ; \n return true ; \n } \n return false ;", "msg_token": "Fix fab position on hide"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub \n mTestMode = SystemProperties . get ( STRING0 ) . equals ( STRING1 ) \n && SystemProperties . get ( STRING2 ) . equals ( STRING3 ) ; \n \n - mTethering = new Tethering ( mContext , mNetd , statsService , mHandler . getLooper ( ) ) ; \n + mTethering = new Tethering ( mContext , mNetd , statsService ) ; \n \n mPermissionMonitor = new PermissionMonitor ( mContext , mNetd ) ; \n \n public class Tethering extends BaseNetworkObserver { \n SINGLE \n \n public Tethering ( Context context , INetworkManagementService nmService , \n - INetworkStatsService statsService , Looper looper ) { \n + INetworkStatsService statsService ) { \n mContext = context ; \n mNMService = nmService ; \n mStatsService = statsService ; \n - mLooper = looper ; \n \n mPublicSync = new Object ( ) ;", "msg_token": "Remove the unused Looper param from Tethering constructor"} {"diff": " public class ElevationUtils { \n lastX = c . x ; \n lastY = c . y ; \n } \n + if ( flatLength == NUMBER0 ) { \n + return NUMBER0 ; \n + } \n return trueLength / flatLength ; \n } \n \n public class ElevationUtils { \n for ( int i = NUMBER0 ; i < coordinates . length - NUMBER1 ; ++ i ) { \n double run = coordinates [ i + NUMBER1 ] . x - coordinates [ i ] . x ; \n double rise = coordinates [ i + NUMBER1 ] . y - coordinates [ i ] . y ; \n + if ( run == NUMBER0 ) { \n + continue ; \n + } \n double slope = rise / run ; \n if ( slope > FLOAT0 || slope < - FLOAT0 ) { \n slope = NUMBER0 ; SINGLE", "msg_token": "zero length streets were causing NaN errors"} {"diff": " class ActivityUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed javadoc for getString in Solo and ActivityUtils"} {"diff": " public class InternalAprInputBuffer extends AbstractInputBuffer < Long > { \n lastValid = pos + nRead ; \n } else { \n if ( ( - nRead ) == Status . ETIMEDOUT || ( - nRead ) == Status . TIMEUP ) { \n - throw new SocketTimeoutException ( sm . getString ( STRING0 ) ) ; \n + if ( block ) { \n + throw new SocketTimeoutException ( \n + sm . getString ( STRING0 ) ) ; \n + } else { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return false ; \n + } \n } else if ( nRead == NUMBER0 ) { \n SINGLE \n return false ;", "msg_token": "Handle non standard OSX behaviour on non blocking reads that return no data in fill as well as nbRead"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - \n public class CellCardInflater implements IAdapterViewInflater < CardItemData > { \n \n @ override", "msg_token": "remove unused comment"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + \n package NAMESPACE ; \n \n COMMENT", "msg_token": "add space between license and header"} {"diff": " public class ServiceTaskDelegateExpressionActivityBehavior extends TaskActivityB \n public void signal ( ActivityExecution execution , String signalName , Object signalData ) throws Exception { \n Object delegate = expression . getValue ( execution ) ; \n if ( delegate instanceof SignallableActivityBehavior ) { \n + ClassDelegate . applyFieldDeclaration ( fieldDeclarations , delegate ) ; \n ( ( SignallableActivityBehavior ) delegate ) . signal ( execution , signalName , signalData ) ; \n } \n }", "msg_token": "Added fields injection for the delegate instance loaded when handling signals"} {"diff": " class EclipseHack { \n final ImmutableList < String > order ; \n try { \n order = propertyOrderer . determinePropertyOrder ( ) ; \n - } catch ( IOException e ) { \n + } catch ( Exception e ) { \n processingEnv . getMessager ( ) . printMessage ( Diagnostic . Kind . NOTE , e . toString ( ) ) ; \n return ; \n }", "msg_token": "In EclipseHack catch any exception from propertyOrderer determinePropertyOrder and not just IOException"} {"diff": " public class PrivacyService { \n \n if ( ! cached ) { \n PRestriction cresult = new PRestriction ( restriction ) ; \n - cresult . methodName = null ; \n boolean methodFound = false ; \n \n SINGLE \n public class PrivacyService { \n \n SINGLE \n if ( mUseCache ) { \n - CRestriction ckey = new CRestriction ( cresult ) ; \n + SINGLE \n + CRestriction ckey = new CRestriction ( cresult . uid , cresult . restrictionName , null , null ) ; \n CRestriction mkey = new CRestriction ( mresult ) ; \n synchronized ( mRestrictionCache ) { \n if ( mRestrictionCache . containsKey ( ckey ) )", "msg_token": "Do not cache extra for category"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add warning to Ticker"} {"diff": " public class OrmLiteConfigUtil { \n classList . add ( clazz ) ; \n } \n SINGLE \n - for ( Class < ? > innerClazz : clazz . getDeclaredClasses ( ) ) { \n - if ( classHasAnnotations ( innerClazz ) ) { \n - classList . add ( innerClazz ) ; \n + try { \n + for ( Class < ? > innerClazz : clazz . getDeclaredClasses ( ) ) { \n + if ( classHasAnnotations ( innerClazz ) ) { \n + classList . add ( innerClazz ) ; \n + } \n } \n + } catch ( Throwable t ) { \n + SINGLE \n + System . err . println ( STRING0 + clazz ) ; \n + System . err . println ( STRING1 + t ) ; \n + continue ; \n } \n } \n return classList ;", "msg_token": "Added better exception handling around inner classes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public final class ShadowIndexShard extends IndexShard { \n public boolean allowsPrimaryPromotion ( ) { \n return false ; \n } \n + \n + @ override \n + public TranslogStats translogStats ( ) { \n + return null ; SINGLE \n + } \n }", "msg_token": "Don t pull translog from shadow engine"} {"diff": " public class TaskListFragment extends ListFragment implements OnScrollListener , \n upgradeService . showChangeLog ( getActivity ( ) , \n Preferences . getInt ( AstridPreferences . P_UPGRADE_FROM , - NUMBER0 ) ) ; \n \n - getActivity ( ) . runOnUiThread ( new Runnable ( ) { \n - public void run ( ) { \n - Thread . currentThread ( ) . setPriority ( Thread . MAX_PRIORITY ) ; \n - } \n - } ) ; \n - \n getListView ( ) . setOnItemClickListener ( new OnItemClickListener ( ) { \n @ override \n public void onItemClick ( AdapterView < ? > parent , View view ,", "msg_token": "We don t need this crazy thread priority hack anymore"} {"diff": " public class RepackagerTests { \n public void mainClassFromManifest ( ) throws Exception { \n this . testJarFile . addClass ( STRING0 , ClassWithoutMainMethod . class ) ; \n Manifest manifest = new Manifest ( ) ; \n - manifest = new Manifest ( ) ; \n manifest . getMainAttributes ( ) . putValue ( STRING1 , STRING2 ) ; \n manifest . getMainAttributes ( ) . putValue ( STRING3 , STRING4 ) ; \n this . testJarFile . addManifest ( manifest ) ;", "msg_token": "Remove double instantiation of Manifest"} {"diff": " public class MockSubscription implements ISubscription \n { \n return null ; \n } \n + \n + @ override \n + public DateTime getEndDate ( ) { \n + return null ; \n + } \n } \n public interface ISubscription extends IPrivateFields { \n \n public DateTime getStartDate ( ) ; \n \n + public DateTime getEndDate ( ) ; \n + \n public IPlan getCurrentPlan ( ) ; \n \n public String getCurrentPriceList ( ) ; \n public class Subscription extends PrivateFields implements ISubscription { \n \n \n @ override \n + public DateTime getEndDate ( ) { \n + ISubscriptionTransition latestTransition = getLatestTranstion ( ) ; \n + if ( latestTransition . getNextState ( ) == SubscriptionState . CANCELLED ) { \n + return latestTransition . getEffectiveTransitionTime ( ) ; \n + } \n + return null ; \n + } \n + \n + \n + @ override \n public void cancel ( DateTime requestedDate , boolean eot ) throws EntitlementUserApiException { \n \n SubscriptionState currentState = getState ( ) ;", "msg_token": "Add endDate to subscription for when it has been cancelled"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HotelDAO extends BasicDAO < Hotel , String > { \n \n public HotelDAO ( final Morphia morphia , final Mongo mongo ) { \n - super ( mongo , morphia , STRING0 ) ; \n + super ( mongo , morphia , TestBase . DEFAULT_DB_NAME ) ; \n } \n }", "msg_token": "Replaced hard coded db name with reference to constant"} {"diff": " public class ClassDataItem extends Item < ClassDataItem > { \n if ( encodedMethodIndex == methodIdItemIndex ) { \n return encodedMethod ; \n } else if ( encodedMethodIndex < methodIdItemIndex ) { \n + if ( min == index ) { \n + break ; \n + } \n min = index ; \n } else { \n + if ( max == index ) { \n + break ; \n + } \n max = index ; \n } \n }", "msg_token": "Fix an infinite loop in findMethodByMethodIdInternal"} {"diff": " public class RequiredArrayRuleTest { \n jclass . field ( JMod . PRIVATE , jclass . owner ( ) . ref ( String . class ) , STRING0 ) ; \n \n ObjectMapper mapper = new ObjectMapper ( ) ; \n - ArrayNode requiredNode = mapper . createArrayNode ( ) . add ( STRING1 ) ; \n + ArrayNode requiredNode = mapper . createArrayNode ( ) . add ( STRING2 ) ; \n \n rule . apply ( STRING3 , requiredNode , jclass , null ) ; \n \n public class RequiredArrayRuleTest { \n \n private void setupRuleFactoryToIncludeJsr303 ( ) { \n GenerationConfig config = mock ( GenerationConfig . class ) ; \n + when ( config . getPropertyWordDelimiters ( ) ) . thenReturn ( new char [ ] { STRING4 , STRING5 , STRING6 } ) ; \n RuleFactory ruleFactory = new RuleFactory ( ) ; \n ruleFactory . setGenerationConfig ( config ) ; \n rule = new RequiredArrayRule ( ruleFactory ) ;", "msg_token": "added unit test for fix"} {"diff": " public class SchemaResolver implements EntityResolver { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - protected String publicId = null ; \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n protected String schemaExtension = STRING0 ; \n public class SchemaResolver implements EntityResolver { \n throws SAXException { \n \n if ( publicId != null ) { \n - this . publicId = publicId ; \n digester . setPublicId ( publicId ) ; \n }", "msg_token": "Remove publicId field from SchemaResolver class"} {"diff": " public class VariableInIncompleteCodeSearcher extends QueryExecutorBase < PsiRefer \n \n SearchScope scope = p . getEffectiveSearchScope ( ) ; \n if ( ! ( scope instanceof LocalSearchScope ) ) { \n + final PsiFile file = refElement . getContainingFile ( ) ; \n + if ( file == null ) return ; \n SINGLE \n - scope = new LocalSearchScope ( refElement . getContainingFile ( ) ) ; \n + scope = new LocalSearchScope ( file ) ; \n } \n \n PsiElement [ ] elements = ( ( LocalSearchScope ) scope ) . getScope ( ) ;", "msg_token": "disable incomplete rename on non physical elements"} {"diff": " public final class MUCRoomHistory { \n } \n \n SINGLE \n - Element delayInformation = message . addChildElement ( STRING0 , STRING1 ) ; \n + Element delayInformation = message . addChildElement ( STRING0 , STRING2 ) ; \n delayInformation . addAttribute ( STRING3 , UTC_FORMAT . format ( sentDate ) ) ; \n if ( room . canAnyoneDiscoverJID ( ) ) { \n SINGLE", "msg_token": "Fixed incorrect namespace when adding old messages to history"} {"diff": " public class JsonData { \n return optArrayOrNew ( ) . optBoolean ( index ) ; \n } \n \n + public double optDouble ( String name ) { \n + return optMapOrNew ( ) . optDouble ( name ) ; \n + } \n + \n + public double optDouble ( int index ) { \n + return optArrayOrNew ( ) . optDouble ( index ) ; \n + } \n + \n public boolean has ( String name ) { \n return optMapOrNew ( ) . has ( name ) ; \n }", "msg_token": "add optDouble for JsonData"} {"diff": " public class CatchDefinition extends ProcessorDefinition < CatchDefinition > { \n this . handledPolicy = handledPolicy ; \n } \n \n + public ExpressionSubElementDefinition getHandled ( ) { \n + return handled ; \n + } \n + \n + public void setHandled ( ExpressionSubElementDefinition handled ) { \n + this . handled = handled ; \n + } \n + \n protected List < Class > createExceptionClasses ( ) { \n List < String > list = getExceptions ( ) ; \n List < Class > answer = new ArrayList < Class > ( list . size ( ) ) ;", "msg_token": "Added getter settet for handled to allow manipulation from tooling"} {"diff": " public class DatabaseDescriptor \n { \n throw new ConfigurationException ( STRING0 ) ; \n } \n + if ( cfName . contains ( STRING1 ) ) \n + { \n + throw new ConfigurationException ( STRING2 ) ; \n + } \n String xqlCF = xqlTable + STRING3 + cfName + STRING4 ; \n \n SINGLE", "msg_token": "don t allow hyphens in column family names"} {"diff": " public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt \n channelFuture . addListener ( c ) ; \n } \n \n - openChannels . add ( channelFuture . getChannel ( ) ) ; \n + if ( ! c . future ( ) . isCancelled ( ) ) { \n + openChannels . add ( channelFuture . getChannel ( ) ) ; \n + } \n return c . future ( ) ; \n }", "msg_token": "Do not add an invalid channel"} {"diff": " public class PdePreprocessor { \n COMMENT \n COMMENT \n public static final String SIZE_REGEX = \n - STRING0 ; \n + STRING1 ; \n SINGLE", "msg_token": "Preprocessor now accepts whitespace after height"} {"diff": " public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { \n storageKey , myVcs . getProject ( ) ) ; \n myDualView . switchToTheFlatMode ( ) ; \n } \n + new TableSpeedSearch ( myDualView . getFlatView ( ) ) . setComparator ( new SpeedSearchComparator ( false ) ) ; \n final TableLinkMouseListener listener = new TableLinkMouseListener ( ) ; \n listener . install ( myDualView . getFlatView ( ) ) ; \n listener . install ( myDualView . getTreeView ( ) ) ;", "msg_token": "gimme some speedsearching"} {"diff": " public final class GroupLensDataModel extends FileDataModel { \n private static File convertGLFile ( File originalFile , boolean ratings ) throws IOException { \n SINGLE \n File resultFile = new File ( new File ( System . getProperty ( STRING0 ) ) , \n - STRING1 + ( ratings ? STRING2 : STRING3 ) + STRING4 ) ; \n + ( ratings ? STRING2 : STRING3 ) + STRING4 ) ; \n if ( ! resultFile . exists ( ) ) { \n PrintWriter writer = null ; \n try {", "msg_token": "Fixed the example s file naming convention since some files were being incorrectly read as update data files"} {"diff": " public class DanmakuUtils { \n return NUMBER0 ; \n } \n \n - int r = ( String . valueOf ( obj1 . text ) ) . compareTo ( ( String ) obj2 . text ) ; \n + int r = obj1 . text . toString ( ) . compareTo ( obj2 . text . toString ( ) ) ; \n if ( r != NUMBER1 ) { \n return r ; \n }", "msg_token": "fix cast exception caused by some CharSequence text"} {"diff": " public class SybaseDatabase extends AbstractJdbcDatabase { \n COMMENT \n @ override \n public int getDatabaseMajorVersion ( ) throws DatabaseException { \n + if ( getConnection ( ) == null ) { \n + return - NUMBER0 ; \n + } \n try { \n return getConnection ( ) . getDatabaseMajorVersion ( ) ; \n } catch ( UnsupportedOperationException e ) { \n public class SybaseDatabase extends AbstractJdbcDatabase { \n COMMENT \n @ override \n public int getDatabaseMinorVersion ( ) throws DatabaseException { \n + if ( getConnection ( ) == null ) { \n + return - NUMBER0 ; \n + } \n + \n try { \n return getConnection ( ) . getDatabaseMinorVersion ( ) ; \n } catch ( UnsupportedOperationException e ) {", "msg_token": "Check for null connection in metadata check"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AndroidSdkTest { \n constructAndroidSdkWith ( new File ( ENV_ANDROID_SDK_15 ) , STRING0 ) . getPathForTool ( STRING1 ) ; \n } \n \n + @ test ( expected = InvalidSdkException . class ) \n + public void givenInvalidAndroidSdkPathThenException ( ) throws IOException { \n + constructAndroidSdkWith ( File . createTempFile ( STRING2 , STRING3 ) , null ) . getLayout ( ) ; \n + } \n + \n + @ test \n + public void givenAndroidSdk11PathThenLayoutIs11 ( ) { \n + Assert . assertEquals ( constructAndroidSdkWith ( new File ( ENV_ANDROID_SDK_11 ) , null ) . getLayout ( ) , AndroidSdk . Layout . LAYOUT_1_1 ) ; \n + } \n + \n + @ test \n + public void givenAndroidSdk15PathThenLayoutIs15 ( ) { \n + Assert . assertEquals ( constructAndroidSdkWith ( new File ( ENV_ANDROID_SDK_15 ) , null ) . getLayout ( ) , AndroidSdk . Layout . LAYOUT_1_5 ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added tests for AndroidSdk layout detection"} {"diff": " public class StatsActivity extends WPDrawerActivity implements ScrollViewExt . Scr \n } \n } \n } , NUMBER0 ) ; \n - \n - \n } \n }", "msg_token": "Remove blank lines"} {"diff": " public class SpanishXMLTreeReader implements TreeReader { \n } \n \n private boolean isWordNode ( Element node ) { \n - return node . hasAttribute ( ATTR_WORD ) ; \n + return node . hasAttribute ( ATTR_WORD ) && ! node . hasChildNodes ( ) ; \n } \n \n private boolean isEllipticNode ( Element node ) {", "msg_token": "don t fall prey to some constituents which have wd labels"} {"diff": " public class DeadLetterChannel extends ErrorHandlerSupport implements Processor \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE", "msg_token": "Fixed a typo in the DeadLetterChannel"} {"diff": " public class SieveCoreferenceSystem { \n private int additionalCorrectLinksCount ; \n private int additionalLinksCount ; \n \n - private String typesToResolve = null ; \n + public String typesToResolve = null ; \n \n public SieveCoreferenceSystem ( Properties props ) throws Exception { \n SINGLE \n public class SieveCoreferenceSystem { \n if ( useSingletonPredictor ) { \n singletonPredictor = getSingletonPredictorFromSerializedFile ( DefaultPaths . DEFAULT_DCOREF_SINGLETON_MODEL ) ; \n } \n - \n - if ( props . containsKey ( STRING0 ) ) { \n - this . typesToResolve = props . getProperty ( STRING0 ) ; \n - } \n } \n \n public static String signature ( Properties props ) {", "msg_token": "added some new features for pronoun resolver"} {"diff": " public class NativeServices extends DefaultServiceRegistry implements ServiceReg \n nativeDir = new File ( overrideProperty ) ; \n } \n if ( useNativePlatform ) { \n - try { \n + SINGLE \n net . rubygrapefruit . platform . Native . init ( nativeDir ) ; \n - } catch ( NativeIntegrationUnavailableException ex ) { \n - LOGGER . debug ( STRING0 ) ; \n - useNativePlatform = false ; \n - } catch ( NativeException ex ) { \n - LOGGER . debug ( STRING1 , format ( ex ) ) ; \n - useNativePlatform = false ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n if ( OperatingSystem . current ( ) . isWindows ( ) && initializeJNA ) { \n SINGLE", "msg_token": "Temporarily propogate exceptions thrown during native services initialization"} {"diff": " public class GroovyScriptClass extends LightElement implements PsiClass , Synthet \n return RecursionManager . doPreventingRecursion ( this , false , new Computable < PsiClassType > ( ) { \n @ override \n public PsiClassType compute ( ) { \n - return CachedValuesManager . getCachedValue ( myFile , new CachedValueProvider < PsiClassType > ( ) { \n + return CachedValuesManager . getCachedValue ( GroovyScriptClass . this , new CachedValueProvider < PsiClassType > ( ) { \n @ nullable \n @ override \n public Result < PsiClassType > compute ( ) {", "msg_token": "correct misused cached value in GroovyScriptClass"} {"diff": " public class BasicSSLContextFactory implements SSLContextFactory { \n String trustStore = getProperty ( properties , STRING0 , keyStore ) ; \n String trustStorePassword = getProperty ( properties , STRING1 , keyStorePassword ) ; \n \n - String keyManagerAlgorithm = properties . getProperty ( STRING2 , TrustManagerFactory . getDefaultAlgorithm ( ) ) ; \n + String keyManagerAlgorithm = properties . getProperty ( STRING2 , KeyManagerFactory . getDefaultAlgorithm ( ) ) ; \n String trustManagerAlgorithm = properties . getProperty ( STRING3 , TrustManagerFactory . getDefaultAlgorithm ( ) ) ; \n String protocol = properties . getProperty ( STRING4 , STRING5 ) ;", "msg_token": "Fixed wrong StoreFactory"} {"diff": " public class PApplet extends Applet \n String ext = checkExtension ( filename ) ; \n if ( ext != null ) { \n if ( ext . equals ( STRING0 ) || ext . equals ( STRING1 ) ) { \n - options = ext + STRING2 ; \n + if ( options == null ) { \n + options = ext ; \n + } else { \n + options = ext + STRING2 + options ; \n + } \n } \n } \n return new Table ( createInput ( filename ) , options ) ;", "msg_token": "fix another options bug in loadTable"} {"diff": " public final class SequencedSkyframeExecutor extends SkyframeExecutor { \n ExternalFilesHelper tmpExternalFilesHelper = \n externalFilesHelper . cloneWithFreshExternalFilesKnowledge ( ) ; \n SINGLE \n - EnumSet fileTypesToCheck = checkOutputFiles \n + EnumSet < FileType > fileTypesToCheck = checkOutputFiles \n ? EnumSet . of ( FileType . EXTERNAL_MUTABLE , FileType . EXTERNAL_REPO , FileType . OUTPUT ) \n : EnumSet . of ( FileType . EXTERNAL_MUTABLE , FileType . EXTERNAL_REPO ) ; \n Differencer . Diff diff =", "msg_token": "Fix compiler warning due to lack of generic parameter"} {"diff": " public class DialogBuilder { \n myDialogWrapper . init ( ) ; \n myDialogWrapper . setModal ( isModal ) ; \n myDialogWrapper . show ( ) ; \n + if ( isModal ) { \n + myDialogWrapper . dispose ( ) ; \n + } \n return myDialogWrapper ; \n } \n \n public class DialogBuilder { \n protected JComponent createCenterPanel ( ) { return myCenterPanel ; } \n \n public void dispose ( ) { \n + myPreferedFocusComponent = null ; \n for ( Disposable disposable : myDisposables ) { \n disposable . dispose ( ) ; \n }", "msg_token": "fix improper dispose of non modal diff dialogs"} {"diff": " public class RangeSliceVerbHandler implements IVerbHandler \n throw new RuntimeException ( STRING0 ) ; \n } \n RangeSliceCommand command = RangeSliceCommand . read ( message ) ; \n - ColumnFamilyStore cfs = Table . open ( command . keyspace ) . getColumnFamilyStore ( command . column_family ) ; \n RangeSliceReply reply = new RangeSliceReply ( executeLocally ( command ) ) ; \n Message response = reply . getReply ( message ) ; \n if ( logger . isDebugEnabled ( ) )", "msg_token": "Remove duplicate code"} {"diff": " public class ObjectTreeBinarySerializer implements Serializer < List < Key > , URI > { \n @ override \n public void save ( List < Key > objectTree , URI outputDir ) throws IOException { \n assert outputDir . getQuery ( ) == null : STRING0 ; \n + if ( outputDir . toString ( ) . contains ( STRING1 ) ) { \n + throw new IllegalArgumentException ( STRING2 + outputDir + STRING3 ) ; \n + } \n SINGLE \n Persist persist = H2O . getPM ( ) . getPersistForURI ( outputDir ) ; \n SINGLE", "msg_token": "Disallow in path for saveModel"} {"diff": " \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": "Adding license header"} {"diff": " public class MessageSourceContact \n MessageSourceContact ( EventObject source , \n MessageSourceService service ) \n { \n + this . service = service ; \n + \n update ( source ) ; \n \n if ( source instanceof MessageDeliveredEvent ) \n public class MessageSourceContact \n { \n initDetails ( true , null ) ; \n } \n - \n - this . service = service ; \n } \n \n COMMENT \n public class MessageSourceContact \n SINGLE \n if ( opset . equals ( OperationSetPresence . class ) \n || opset . equals ( OperationSetPersistentPresence . class ) \n - || ( isChatRoom \n + || ( ( isChatRoom || service . isSMSEnabled ( ) ) \n && opset . equals ( \n OperationSetBasicInstantMessaging . class ) ) ) \n { \n public class MessageSourceService \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isSMSEnabled ( ) \n + { \n + return isSMSEnabled ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adds some restrictions for message source contacts and their supported opsets"} {"diff": " public class TaskStackView extends FrameLayout implements TaskStack . TaskStackCal \n mViewPool . returnViewToPool ( tv ) ; \n } \n \n - SINGLE \n - mCb . onTaskViewDismissed ( removedTask ) ; \n - \n SINGLE \n SINGLE \n Task anchorTask = null ; \n public class TaskStackView extends FrameLayout implements TaskStack . TaskStackCal \n SINGLE \n showDismissAllButton ( ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + mCb . onTaskViewDismissed ( removedTask ) ; \n } \n \n @ override", "msg_token": "Pushing the startActivity before the calls to remove task"} {"diff": " public final class Constants { \n COMMENT \n COMMENT \n COMMENT \n - public static final boolean DEBUG = true ; \n + public static final boolean DEBUG = false ; \n \n COMMENT \n COMMENT", "msg_token": "Turn off debug flag"} {"diff": " public class UserServiceTest { \n foo . addNotificationFilter ( new NotificationFilter ( GoConstants . ANY_PIPELINE , GoConstants . ANY_STAGE , StageEvent . Passes , true ) ) ; \n User bar = new User ( STRING0 , Arrays . asList ( STRING1 , STRING2 ) , STRING3 , true ) ; \n bar . addNotificationFilter ( new NotificationFilter ( GoConstants . ANY_PIPELINE , GoConstants . ANY_STAGE , StageEvent . Passes , true ) ) ; \n - User quux = new User ( STRING4 , Arrays . asList ( STRING5 , STRING6 ) , STRING7 , false ) ; \n - quux . addNotificationFilter ( new NotificationFilter ( STRING8 , STRING9 , StageEvent . Passes , true ) ) ; \n \n when ( userDao . findNotificationSubscribingUsers ( ) ) . thenReturn ( new Users ( Arrays . asList ( foo , bar ) ) ) ; \n when ( securityService . hasViewPermissionForPipeline ( foo . getName ( ) , STRING10 ) ) . thenReturn ( true ) ;", "msg_token": "Removing dead code from test"} {"diff": " public class EddaEBSVolumeJanitorCrawler implements JanitorCrawler { \n \n private static final int BATCH_SIZE = NUMBER0 ; \n \n + SINGLE \n + SINGLE \n + private static final int LOOKBACK_DAYS = NUMBER1 ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class EddaEBSVolumeJanitorCrawler implements JanitorCrawler { \n private void updateInstanceToOwner ( String region ) { \n LOGGER . info ( String . format ( STRING0 , region ) ) ; \n \n - String url = eddaClient . getBaseUrl ( region ) + STRING1 \n - + STRING2 ; \n + long startTime = DateTime . now ( ) . minusDays ( LOOKBACK_DAYS ) . getMillis ( ) ; \n + String url = String . format ( STRING3 \n + + STRING2 , \n + eddaClient . getBaseUrl ( region ) , startTime ) ; \n JsonNode jsonNode = null ; \n try { \n jsonNode = eddaClient . getJsonNodeFromUrl ( url ) ;", "msg_token": "Add a date range for the Edda query to get instance owners"} {"diff": " public class ZLTTFInfoDetector { \n final int nameId = getInt16 ( buffer , NUMBER0 * i + NUMBER0 ) ; \n final int length = getInt16 ( buffer , NUMBER0 * i + NUMBER1 ) ; \n final int offset = getInt16 ( buffer , NUMBER0 * i + NUMBER2 ) ; \n - System . err . println ( nameId + STRING0 + new String ( \n - buffer , stringOffset + offset , length , \n - platformId == NUMBER3 ? STRING1 : STRING2 \n - ) ) ; \n switch ( nameId ) { \n case NUMBER3 : \n if ( ( family == null || languageId == NUMBER4 ) &&", "msg_token": "removed debug printing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ClojureTransformer implements ResourceTransformer { \n \n public class ClojureTransformer implements ResourceTransformer { \n } \n \n @ override \n + public boolean hasTransformedResource ( ) { \n + return ! entries . isEmpty ( ) ; \n + } \n + \n + @ override \n public void modifyOutputStream ( JarOutputStream jarOut ) throws IOException { \n for ( String key : this . entries . keySet ( ) ) { \n jarOut . putNextEntry ( new JarEntry ( key ) ) ; \n public interface ResourceTransformer \n void processResource ( String resource , InputStream is , List < Relocator > relocators ) \n throws IOException ; \n \n - public void modifyOutputStream ( JarOutputStream jarOut ) throws IOException ; \n + boolean hasTransformedResource ( ) ; \n + \n + void modifyOutputStream ( JarOutputStream jarOut ) throws IOException ; \n }", "msg_token": "Missed some more code"} {"diff": " public class GdxTestActivity extends AndroidApplication { \n GdxTest test = GdxTests . newTest ( testName ) ; \n AndroidApplicationConfiguration config = new AndroidApplicationConfiguration ( ) ; \n config . useGL20 = test . needsGL20 ( ) ; \n - config . numSamples = NUMBER0 ; \n initialize ( test , config ) ; \n } \n } \n public class GwtTestStarter extends GwtApplication { \n \n @ override \n public ApplicationListener getApplicationListener ( ) { \n - return new UITest ( ) ; \n + return new GwtTestWrapper ( ) ; \n } \n }", "msg_token": "fixed GdxTestActivity to not use AA"} {"diff": " public class BlockChainTest { \n BlockChain prod = new BlockChain ( params , new MemoryBlockStore ( params ) ) ; \n Date d = prod . estimateBlockTime ( NUMBER0 ) ; \n SINGLE \n - assertEquals ( new SimpleDateFormat ( STRING0 ) . parse ( STRING1 ) , d ) ; \n + assertEquals ( new SimpleDateFormat ( STRING2 ) . parse ( STRING3 ) , d ) ; \n } \n }", "msg_token": "Specify time zone in block chain unit test"} {"diff": " public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp \n logger . debug ( STRING0 + ex ) ; \n } \n } \n + else if ( mbd . isLazyInit ( ) ) { \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING1 + ex ) ; \n + } \n + } \n else { \n if ( logger . isWarnEnabled ( ) ) { \n - logger . warn ( STRING2 + ex ) ; \n + logger . warn ( STRING3 + ex ) ; \n } \n } \n onSuppressedException ( ex ) ;", "msg_token": "Avoid getTypeForFactoryBean warn logging for lazy init beans"} {"diff": " public final class CaptureActivity extends Activity implements SurfaceHolder . Cal \n } \n \n private void initCamera ( SurfaceHolder surfaceHolder ) { \n + if ( surfaceHolder == null ) { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n try { \n cameraManager . openDriver ( surfaceHolder ) ; \n SINGLE", "msg_token": "Add a double check for null SurfaceHolder"} {"diff": " public class TestOpenSSLCipherConfigurationParser { \n \n TesterOpenSSL . removeUnimplementedCiphersJsse ( jsseCipherListFromParser ) ; \n \n - SINGLE \n - Assert . assertEquals ( jsseCipherListFromOpenSSL . size ( ) , jsseCipherListFromParser . size ( ) ) ; \n - Assert . assertTrue ( jsseCipherListFromOpenSSL . containsAll ( jsseCipherListFromParser ) ) ; \n + SINGLE \n + Assert . assertEquals ( jsseCipherListFromOpenSSL . toString ( ) , \n + jsseCipherListFromParser . toString ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Simplify the check and make failures easier to debug"} {"diff": " public class Invoker { \n \n public static Object invokeMethod ( Method method , Object objectToInvoke , Object decodedObject ) { \n Object objectToEncode = null ; \n - boolean hasMatch = true ; \n + boolean hasMatch = false ; \n try { \n objectToEncode = method . invoke ( objectToInvoke , new Object [ ] { decodedObject } ) ; \n hasMatch = true ;", "msg_token": "Fix wrong value"} {"diff": " public class Schema \n \n private volatile UUID version ; \n \n + SINGLE \n public static final UUID emptyVersion ; \n \n static", "msg_token": "add emptyVersion comment"} {"diff": " public class DefaultServlet extends HttpServlet { \n resp . setHeader ( Headers . ETAG_STRING , etag . toString ( ) ) ; \n } \n Long contentLength = resource . getContentLength ( ) ; \n - if ( contentLength != null ) { \n - resp . setContentLengthLong ( contentLength ) ; \n + try { \n + SINGLE \n + SINGLE \n + resp . getOutputStream ( ) ; \n + if ( contentLength != null ) { \n + resp . setContentLengthLong ( contentLength ) ; \n + } \n + } catch ( IllegalStateException e ) { \n + \n } \n if ( ! req . getMethod ( ) . equals ( Methods . HEAD_STRING ) ) { \n resource . serve ( ServletRequestContext . requireCurrent ( ) . getOriginalRequest ( ) . getExchange ( ) ) ;", "msg_token": "Don t set content length when using a writer as we don t know the final"} {"diff": " public class RestRequest extends Request < JSONObject > { \n mParams = params ; \n mListener = listener ; \n } \n - \n + \n + public void removeAccessToken ( ) { \n + setAccessToken ( null ) ; \n + } \n + \n public void setAccessToken ( String token ) { \n if ( token == null ) { \n mHeaders . remove ( REST_AUTHORIZATION_HEADER ) ;", "msg_token": "Adding convenience method for clearing the access token"} {"diff": " public class PostgreSQLWriteInterface extends AbstractWriteInterface { \n Reader reader = new StringBuilderReader ( sb ) ; \n \n copyManager . copyIn ( copyStatement , reader ) ; \n + sb . setLength ( NUMBER0 ) ; \n } \n \n private static class StringBuilderReader extends Reader {", "msg_token": "Fix copy process cleaning stringbuffer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PythonScriptEngineService extends AbstractComponent implements Scri \n interp . cleanup ( ) ; \n } \n \n + @ override \n + public void scriptRemoved ( @ nullable CompiledScript compiledScript ) { \n + SINGLE \n + } \n + \n public class PythonExecutableScript implements ExecutableScript { \n \n private final PyCode code ;", "msg_token": "Implement new method scriptRemoved CompiledScript in ScriptEngineService"} {"diff": " public class OrionDocument extends AbstractEmbeddedDocument { \n int startOffset = param . start ( ) ; \n int addedCharCount = param . addedCharCount ( ) ; \n int removedCharCount = param . removedCharCount ( ) ; \n - int length = NUMBER0 ; \n - \n - if ( addedCharCount != NUMBER0 ) { \n - SINGLE \n - length = addedCharCount ; \n - } else if ( removedCharCount != NUMBER0 ) { \n - SINGLE \n - SINGLE \n - length = removedCharCount ; \n - startOffset = startOffset - length ; \n - } \n - String text = editorOverlay . getModel ( ) . getText ( startOffset , startOffset + length ) ; \n + \n + \n + String text = editorOverlay . getModel ( ) . getText ( startOffset , startOffset + addedCharCount ) ; \n \n final DocumentChangeEvent event = new DocumentChangeEvent ( this , \n startOffset , \n - length , \n + addedCharCount , \n text , \n - removedCharCount ) ; SINGLE \n + removedCharCount ) ; \n SINGLE \n getDocEventBus ( ) . fireEvent ( event ) ; \n }", "msg_token": "Fix DocuementChange event for Orion editor"} {"diff": " public class TextureView extends android . view . TextureView implements ISurface { \n if ( mRendererDelegate != null ) { \n mRendererDelegate . mRenderer . onPause ( ) ; \n } \n - mGLThread . onPause ( ) ; \n + if ( mGLThread != null ) { \n + mGLThread . onPause ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "Resolves a NPE caused by unexpected lifecycle events in a third party app"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractInlineTest extends LightCodeInsightFixtureTestCase \n \n assertTrue ( afterFileExists ) ; \n assertEmpty ( expectedErrors ) ; \n - myFixture . checkResult ( FileUtil . loadFile ( afterFile ) ) ; \n + myFixture . checkResult ( FileUtil . loadFile ( afterFile , true ) ) ; \n } catch ( CommonRefactoringUtil . RefactoringErrorHintException e ) { \n assertFalse ( afterFileExists ) ; \n assertEquals ( NUMBER0 , expectedErrors . size ( ) ) ;", "msg_token": "Convert line separators when checking test results"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n + import NAMESPACE ; \n \n \n public final class ThreadContext {", "msg_token": "added collection package"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unnecessary imports"} {"diff": " public class WarPackagingTests { \n checkWebInfLibProvidedEntries ( war , expectedLibProvidedEntries ) ; \n \n checkWebInfLibEntries ( war , expectedLibProvidedEntries ) ; \n + \n + try { \n + war . close ( ) ; \n + } \n + catch ( IOException ex ) { \n + SINGLE \n + } \n } \n \n private void checkWebInfLibProvidedEntries ( JarFile war , Set < String > expectedEntries )", "msg_token": "Ignore failures when closing war files in tests"} {"diff": " public interface Sink { \n COMMENT \n COMMENT \n COMMENT \n - public void start ( ) ; \n + void start ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - public void stop ( ) ; \n + void stop ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - public void report ( ) ; \n + void report ( ) ; \n }", "msg_token": "SMALLFIX Removed public modifier in Sink interface"} {"diff": " public class JspCompilationContext { \n protected String servletJavaFileName ; \n protected String javaPath ; \n protected String classFileName ; \n - protected String contentType ; \n protected ServletWriter writer ; \n protected Options options ; \n protected JspServletWrapper jsw ; \n public class JspCompilationContext { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public String getContentType ( ) { \n - return contentType ; \n - } \n - \n - public void setContentType ( String contentType ) { \n - this . contentType = contentType ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n public ServletWriter getWriter ( ) {", "msg_token": "Remove unused attribute"} {"diff": " public class CustomScanDialog extends StandardFieldsDialog { \n private ScanPolicy scanPolicy = null ; \n private PolicyAllCategoryPanel policyAllCategoryPanel = null ; \n private OptionsVariantPanel variantPanel = null ; \n - private final List < PolicyCategoryPanel > categoryPanels = new ArrayList < > ( ) ; \n + private List < PolicyCategoryPanel > categoryPanels = Collections . emptyList ( ) ; \n private boolean showingAdvTabs = true ; \n \n public CustomScanDialog ( ExtensionActiveScan ext , Frame owner , Dimension dim ) { \n public class CustomScanDialog extends StandardFieldsDialog { \n \n policyPanel . addParamPanel ( null , getPolicyAllCategoryPanel ( ) , false ) ; \n \n + categoryPanels = new ArrayList < > ( Category . getAllNames ( ) . length ) ; \n for ( int i = NUMBER0 ; i < Category . getAllNames ( ) . length ; i ++ ) { \n PolicyCategoryPanel panel \n = new PolicyCategoryPanel ( i , this . scanPolicy . getPluginFactory ( ) ,", "msg_token": "Fix a memory leak in CustomScanDialog"} {"diff": " public final class AnnotationSpec { \n if ( value instanceof Float ) { \n return addMember ( memberName , STRING0 , value ) ; \n } \n + if ( value instanceof Character ) { \n + return addMember ( memberName , STRING1 , value ) ; \n + } \n return addMember ( memberName , STRING2 , value ) ; \n } \n \n public final class AnnotationSpecTest { \n + STRING3 \n + STRING4 \n + STRING5 \n - + STRING6 \n + + STRING7 \n + STRING8 \n + STRING9 \n + STRING10", "msg_token": "Added char Character to AnnotationSpec Builder addValue logic"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n final class ConnectionServiceAdapter implements DeathRecipient { \n COMMENT \n @ override \n public void binderDied ( ) { \n - for ( IConnectionServiceAdapter adapter : mAdapters ) { \n + Iterator < IConnectionServiceAdapter > it = mAdapters . iterator ( ) ; \n + while ( it . hasNext ( ) ) { \n + IConnectionServiceAdapter adapter = it . next ( ) ; \n if ( ! adapter . asBinder ( ) . isBinderAlive ( ) ) { \n - removeAdapter ( adapter ) ; \n + it . remove ( ) ; \n + adapter . asBinder ( ) . unlinkToDeath ( this , NUMBER0 ) ; \n } \n } \n }", "msg_token": "Fix exception in ConnectionServiceAdapter binderDied"} {"diff": " public class CassandraEmbeddedStoreManager extends AbstractCassandraStoreManager \n try { \n CompressionParameters cp = new CompressionParameters ( new SnappyCompressor ( ) , NUMBER0 * NUMBER1 , ImmutableMap . < String , String > of ( ) ) ; \n cfm . compressionParameters ( cp ) ; \n - log . warn ( STRING0 , cp ) ; \n + log . debug ( STRING0 , cp ) ; \n } catch ( ConfigurationException e ) { \n throw new PermanentStorageException ( STRING1 + keyspaceName + STRING2 + columnfamilyName , e ) ; \n }", "msg_token": "Log statement change"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class UpdateMappingOnClusterTests extends ElasticsearchIntegrationTest { \n } \n \n @ test \n - @ seed ( value = STRING0 ) \n public void testUpdateTimestamp ( ) throws Exception { \n boolean enabled = randomBoolean ( ) ; \n XContentBuilder mapping = XContentFactory . jsonBuilder ( ) . startObject ( ) . startObject ( STRING1 )", "msg_token": "Removed hardcoded seed from test"} {"diff": " \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class SelectBox < T > extends Widget implements Disableable { \n this . disabled = disabled ; \n } \n \n + public boolean isDisabled ( ) { \n + return disabled ; \n + } \n + \n public float getPrefWidth ( ) { \n validate ( ) ; \n return prefWidth ; \n package NAMESPACE ; \n \n public interface Disableable { \n public void setDisabled ( boolean isDisabled ) ; \n + \n + public boolean isDisabled ( ) ; \n }", "msg_token": "Added isDisabled to Disableable"} {"diff": " public class PyConsoleParser extends PyParser { \n private PythonConsoleData myPythonConsoleData ; \n private boolean myIPythonStartSymbol ; \n \n - public PyConsoleParser ( PythonConsoleData pythonConsoleData ) { \n + public PyConsoleParser ( PythonConsoleData pythonConsoleData , LanguageLevel languageLevel ) { \n myPythonConsoleData = pythonConsoleData ; \n - myLanguageLevel = LanguageLevel . getDefault ( ) ; \n + myLanguageLevel = languageLevel ; \n } \n \n @ notnull \n public class PyFileElementType extends IStubFileElementType < PyFileStub > { \n final Project project = psi . getProject ( ) ; \n final PsiBuilderFactory factory = PsiBuilderFactory . getInstance ( ) ; \n final PsiBuilder builder = factory . createBuilder ( project , node , lexer , getLanguage ( ) , node . getChars ( ) ) ; \n - final PyParser parser = new PyConsoleParser ( consoleData ) ; \n + final PyParser parser = new PyConsoleParser ( consoleData , getLanguageLevel ( psi ) ) ; \n \n return parser . parse ( this , builder ) . getFirstChildNode ( ) ; \n }", "msg_token": "consider language level in console parser to currectly provide parameters for print"} {"diff": " public interface Server { \n public World createWorld ( String name , World . Environment environment ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public World createWorld ( String name , World . Environment environment , long seed ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Can now create worlds with specific seeds"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Receiver extends Agent \n \n if ( null == frameHandler ) \n { \n - System . err . println ( STRING0 ) ; \n + final String destination = e . destination ( ) . toString ( ) ; \n + LOGGER . log ( EventCode . COULD_NOT_FIND_FRAME_HANDLER_FOR_NEW_CONNECTED_SUBSCRIPTION , destination ) ; \n return ; \n } \n \n public enum EventCode \n UNKNOWN_HEADER_TYPE ( NUMBER0 , EventCodec : : dissectAsCommand ) , \n \n COMMENT \n - COULD_NOT_FIND_INTERFACE ( NUMBER1 , EventCodec : : dissectAsString ) ; \n + COULD_NOT_FIND_INTERFACE ( NUMBER1 , EventCodec : : dissectAsString ) , \n + COULD_NOT_FIND_FRAME_HANDLER_FOR_NEW_CONNECTED_SUBSCRIPTION ( NUMBER2 , EventCodec : : dissectAsString ) ; \n \n private final static Int2ObjectHashMap < EventCode > mapOfIdToEventCode = new Int2ObjectHashMap < > ( ) ;", "msg_token": "remove System err prints from Receiver"} {"diff": " public class AtmosphereFilter implements ResourceFilterFactory { \n \n String transport = servletReq . getHeader ( X_ATMOSPHERE_TRANSPORT ) ; \n if ( transport == null ) { \n - logger . debug ( STRING0 + X_ATMOSPHERE_TRANSPORT ) ; \n + logger . warn ( STRING0 + X_ATMOSPHERE_TRANSPORT ) ; \n response . setStatus ( NUMBER0 ) ; \n return response ; \n }", "msg_token": "Use a warning instead debug"} {"diff": " public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon \n public Void call ( ) throws Exception { \n builder . addRoutesToCamelContext ( DefaultCamelContext . this ) ; \n return null ; \n - } } ) ; \n + } \n + } ) ; \n } \n \n public synchronized RoutesDefinition loadRoutesDefinition ( InputStream is ) throws Exception {", "msg_token": "fixed CS error"} {"diff": " public final class Dispatcher { \n synchronized void finished ( Call call ) { \n if ( ! executedCalls . remove ( call ) ) throw new AssertionError ( STRING0 ) ; \n } \n + \n + public synchronized int getRunningCallCount ( ) { \n + return runningCalls . size ( ) ; \n + } \n + \n + public synchronized int getQueuedCallCount ( ) { \n + return readyCalls . size ( ) ; \n + } \n }", "msg_token": "Expose running and queued call counts for monitoring"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UpcomingEpisodeSettingsActivity extends PreferenceActivity { \n return super . onOptionsItemSelected ( item ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n private void setupSimplePreferencesScreen ( ) { \n SINGLE \n SINGLE \n public class UpcomingEpisodeSettingsActivity extends PreferenceActivity { \n SINGLE \n SINGLE \n sBindPreferenceSummaryToValueListener . onPreferenceChange ( preference , \n - PreferenceManager \n - . getDefaultSharedPreferences ( preference . getContext ( ) ) \n + preference . getContext ( ) . getSharedPreferences ( DashClockSettings . SETTINGS_FILE , NUMBER0 ) \n . getString ( preference . getKey ( ) , STRING1 ) ) ; \n } \n }", "msg_token": "Suppress deprecation warning read correct settings file"} {"diff": " public class StudyUtils { \n public static void updateAction ( AnActionEvent e ) { \n Presentation presentation = e . getPresentation ( ) ; \n presentation . setEnabled ( false ) ; \n + presentation . setVisible ( false ) ; \n Project project = e . getProject ( ) ; \n if ( project != null ) { \n FileEditor [ ] editors = FileEditorManager . getInstance ( project ) . getAllEditors ( ) ; \n for ( FileEditor editor : editors ) { \n if ( editor instanceof StudyEditor ) { \n presentation . setEnabled ( true ) ; \n + presentation . setVisible ( true ) ; \n } \n } \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class StudyShowHintAction extends DumbAwareAction { \n } \n \n @ override \n - public void update ( AnActionEvent e ) { \n + public void update ( @ notnull AnActionEvent e ) { \n StudyUtils . updateAction ( e ) ; \n } \n }", "msg_token": "don t show learn python plugin actions while course creation"} {"diff": " public class ClusterCommandsTest extends JedisTestBase { \n public static void removeSlots ( ) throws InterruptedException { \n SINGLE \n waitForEqualClusterSize ( ) ; \n - System . out . println ( node1 . clusterInfo ( ) ) ; \n - System . out . println ( node2 . clusterInfo ( ) ) ; \n String [ ] nodes = node1 . clusterNodes ( ) . split ( STRING0 ) ; \n String node1Id = nodes [ NUMBER0 ] . split ( STRING1 ) [ NUMBER0 ] ; \n node1 . clusterDelSlots ( NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 ) ; \n public class ClusterCommandsTest extends JedisTestBase { \n node1 . clusterDelSlots ( NUMBER7 , NUMBER8 ) ; \n node1 . clusterDelSlots ( NUMBER9 ) ; \n node2 . clusterDelSlots ( NUMBER9 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 ) ; \n - System . out . println ( node1 . clusterNodes ( ) ) ; \n - System . out . println ( node2 . clusterNodes ( ) ) ; \n } \n \n private static void waitForEqualClusterSize ( ) throws InterruptedException {", "msg_token": "Remove sysout prints from test"} {"diff": " public class SemaphoreDaoTest extends AbstractDaoTestCase { \n SemaphoreDto semaphore = selectSemaphore ( STRING0 ) ; \n assertThat ( semaphore . getCreatedAt ( ) . getTime ( ) ) . isEqualTo ( semaphore . getUpdatedAt ( ) . getTime ( ) ) ; \n \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n \n dao . update ( lock ) ; \n \n public class SemaphoreDaoTest extends AbstractDaoTestCase { \n } \n \n @ test \n - public void acquire_locked_semaphore_when_timeout_is_zeo ( ) throws Exception { \n + public void acquire_locked_semaphore_when_timeout_is_zero ( ) throws Exception { \n setupData ( STRING1 ) ; \n Semaphores . Semaphore lock = dao . acquire ( STRING0 , NUMBER2 ) ; \n assertThat ( lock . isLocked ( ) ) . isTrue ( ) ;", "msg_token": "Fix test on mysql where TIMESTAMP precision is only second"} {"diff": " public class ManagedAtmosphereHandler implements AtmosphereHandler { \n Object m = invoke ( onMessageMethod , event . getMessage ( ) . toString ( ) ) ; \n if ( m != null ) { \n event . getResource ( ) . getResponse ( ) . write ( m . toString ( ) ) ; \n + } else if ( onMessageMethod == null ) { \n + event . getResource ( ) . getResponse ( ) . write ( ( String ) event . getMessage ( ) ) ; \n } \n }", "msg_token": "By default write the message if Message is missing"} {"diff": " public class Wallet extends BaseTaggableObject implements Serializable , BlockCha \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private boolean checkForDoubleSpendAgainstPending ( Transaction tx , boolean takeAction ) { \n checkState ( lock . isHeldByCurrentThread ( ) ) ;", "msg_token": "Fix Wallet checkForDoubleSpendAgainstPending JavaDoc"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fixed issue with recent change"} {"diff": " public class GLRenderer implements Renderer { \n \n public void setMainFrameBufferSrgb ( boolean enableSrgb ) { \n SINGLE \n - if ( ! caps . contains ( Caps . Srgb ) ) { \n + if ( ! caps . contains ( Caps . Srgb ) && enableSrgb ) { \n SINGLE \n logger . warning ( STRING0 + \n STRING1 ) ;", "msg_token": "fix srgb warning logging"} {"diff": " public class KotlinHighlightingColors { \n \n SINGLE \n public static final TextAttributesKey CLASS = createTextAttributesKey ( STRING0 , DefaultLanguageHighlighterColors . CLASS_NAME ) ; \n - public static final TextAttributesKey TYPE_PARAMETER = createTextAttributesKey ( STRING1 , DefaultLanguageHighlighterColors . PARAMETER ) ; \n + public static final TextAttributesKey TYPE_PARAMETER = createTextAttributesKey ( STRING1 , JavaHighlightingColors . TYPE_PARAMETER_NAME_ATTRIBUTES ) ; \n public static final TextAttributesKey ABSTRACT_CLASS = createTextAttributesKey ( STRING2 , DefaultLanguageHighlighterColors . CLASS_NAME ) ; \n public static final TextAttributesKey TRAIT = createTextAttributesKey ( STRING3 , DefaultLanguageHighlighterColors . INTERFACE_NAME ) ; \n public static final TextAttributesKey ANNOTATION = createTextAttributesKey ( STRING4 , JavaHighlightingColors . ANNOTATION_NAME_ATTRIBUTES ) ;", "msg_token": "inherit Kotlin TYPE_PARAMETER from Java TYPE_PARAMETER"} {"diff": " public class IOSSocket implements Socket { \n client = new TcpClient ( host , port ) ; \n setupConnection ( hints ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n if ( false ) throw new cli . System . Net . Sockets . SocketException ( ) ; \n } catch ( cli . System . Net . Sockets . SocketException e ) { \n throw new GdxRuntimeException ( STRING0 + host + STRING1 + port , e ) ;", "msg_token": "Cleaning up comment"} {"diff": " public final class ObjCClass extends ObjCObject { \n c = ObjCObject . getPeerObject ( classPtr ) ; \n if ( c == null ) { \n c = getByNameNotLoaded ( VM . newStringUTF ( ObjCRuntime . class_getName ( classPtr ) ) ) ; \n + if ( c == null ) { \n + for ( String protocol : getProtocols ( classPtr , false ) ) { \n + Class < ? extends ObjCObject > cls = allNativeProtocolProxies . get ( protocol ) ; \n + if ( cls != null ) { \n + c = getByType ( cls ) ; \n + break ; \n + } \n + } \n + } \n } \n } \n if ( c == null ) {", "msg_token": "Also search protocols of superclasses when looking for NativeProtocolProxy"} {"diff": " public class ODatabaseRecordTx extends ODatabaseRecordAbstract { \n \n @ override \n public void close ( ) { \n + if ( isClosed ( ) ) \n + return ; \n try { \n commit ( true ) ; \n } catch ( Exception e ) {", "msg_token": "close operation fix not run the commit if the db is already closed"} {"diff": " public class JmsComponent extends DefaultComponent implements ApplicationContext \n } \n \n public ReplyToType getReplyToType ( ) { \n - return configuration . getReplyToType ( ) ; \n + return getConfiguration ( ) . getReplyToType ( ) ; \n } \n \n public void setReplyToType ( ReplyToType replyToType ) { \n - configuration . setReplyToType ( replyToType ) ; \n + getConfiguration ( ) . setReplyToType ( replyToType ) ; \n + } \n + \n + public boolean isPreserveMessageQos ( ) { \n + return getConfiguration ( ) . isPreserveMessageQos ( ) ; \n + } \n + \n + public void setPreserveMessageQos ( boolean preserveMessageQos ) { \n + getConfiguration ( ) . setPreserveMessageQos ( preserveMessageQos ) ; \n } \n \n public void setApplicationContext ( ApplicationContext applicationContext ) throws BeansException {", "msg_token": "Added missing setter getter for preserveMessageQos on JmsComponent"} {"diff": " public class NotifyMyAndroidActionService implements ActionService , ManagedServi \n private static final Logger logger = \n LoggerFactory . getLogger ( NotifyMyAndroidActionService . class ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_DEV_API_KEY = STRING0 ; \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_APP_NAME = STRING1 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_TIMEOUT = STRING2 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_API_KEY = STRING3 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_DEFAULT_PRIORITY = STRING4 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private final static String PARAM_KEY_DEFAULT_URL = STRING5 ; \n \n private final static String REASON_CANT_PARSE_NUMBER = STRING6 ; \n public class NotifyMyAndroidActionService implements ActionService , ManagedServi \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ override \n public void updated ( Dictionary < String , ? > config ) throws ConfigurationException {", "msg_token": "Added documentation for NMA action config parameters"} {"diff": " public class ShadowView { \n public Point scrollToCoordinates = new Point ( ) ; \n private boolean didRequestLayout ; \n private MotionEvent lastTouchEvent ; \n - private TouchDelegate touchDelegate ; \n private boolean attachedToWindow ; \n private float scaleX = FLOAT0 ; \n private float scaleY = FLOAT0 ; \n public class ShadowView { \n } \n } \n \n - @ implementation \n - public void setTouchDelegate ( TouchDelegate delegate ) { \n - this . touchDelegate = delegate ; \n - } \n - \n - @ implementation \n - public TouchDelegate getTouchDelegate ( ) { \n - return touchDelegate ; \n - } \n - \n public boolean isAttachedToWindow ( ) { \n try { \n Field mAttachInfo = View . class . getDeclaredField ( STRING0 ) ;", "msg_token": "Delete get set touch delegate methods"} {"diff": " public class GeoDistanceComparator extends FieldComparator < Double > { \n } else { \n distance1 = fixedSourceDistance . calculate ( geoPoint . lat ( ) , geoPoint . lon ( ) ) ; \n } \n - return ( int ) ( distance1 - distance2 ) ; \n + if ( distance1 < distance2 ) { \n + return - NUMBER0 ; \n + } else if ( distance1 == distance2 ) { \n + return NUMBER1 ; \n + } else { \n + return NUMBER0 ; \n + } \n } \n \n @ override", "msg_token": "don t use substraction for comparison if datatypes can overflow"} {"diff": " public class NettyTransport extends AbstractLifecycleComponent < Transport > implem \n this . connectionsPerNodeLow = componentSettings . getAsInt ( STRING0 , settings . getAsInt ( STRING1 , NUMBER0 ) ) ; \n this . connectionsPerNodeMed = componentSettings . getAsInt ( STRING2 , settings . getAsInt ( STRING3 , NUMBER1 ) ) ; \n this . connectionsPerNodeHigh = componentSettings . getAsInt ( STRING4 , settings . getAsInt ( STRING5 , NUMBER2 ) ) ; \n + \n + logger . debug ( STRING6 , \n + workerCount , port , bindHost , publishHost , compress , connectTimeout , connectionsPerNodeLow , connectionsPerNodeMed , connectionsPerNodeHigh ) ; \n } \n \n public Settings settings ( ) {", "msg_token": "add debug logging to netty transport tcp config"} {"diff": " public class SearchBar extends RelativeLayout { \n @ override \n public void onReadyForSpeech ( Bundle bundle ) { \n if ( DEBUG ) Log . v ( TAG , STRING0 ) ; \n + mSpeechOrbView . showListening ( ) ; \n + playSearchOpen ( ) ; \n } \n \n @ override \n public class SearchBar extends RelativeLayout { \n } ) ; \n \n mListening = true ; \n - mSpeechOrbView . showListening ( ) ; \n - playSearchOpen ( ) ; \n mSpeechRecognizer . startListening ( recognizerIntent ) ; \n }", "msg_token": "Play sound and update orb during onReadyForSpeech"} {"diff": " public final class FileSystemMaster extends MasterBase { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Incorporated PR comment"} {"diff": " public class Packages \n @ override \n public void execute ( Void input ) \n { \n - packratUtil_ . executePackratFunction ( packratFunction ) ; \n + packratUtil_ . executePackratFunction ( packratFunction , \n + STRING0 ) ; \n } \n } ) . showModal ( ) ; \n } \n public class Packages \n { \n if ( input == PackratConflictResolution . Library ) \n { \n - packratUtil_ . executePackratFunction ( STRING1 ) ; \n + packratUtil_ . executePackratFunction ( STRING1 , \n + STRING0 ) ; \n } \n else if ( input == PackratConflictResolution . Snapshot ) \n { \n - packratUtil_ . executePackratFunction ( STRING2 ) ; \n + packratUtil_ . executePackratFunction ( STRING2 , \n + STRING0 ) ; \n } \n } \n } ) . showModal ( ) ;", "msg_token": "don t prompt user in console for changes already prompted in dialog"} {"diff": " public interface Iterator < T > extends java . util . Iterator < T > , Traversable < T > { \n \n @ override \n default < U > List < U > scanLeft ( U zero , BiFunction < ? super U , ? super T , ? extends U > operation ) { \n - Objects . requireNonNull ( zero , STRING0 ) ; \n Objects . requireNonNull ( operation , STRING1 ) ; \n List < U > builder = List . empty ( ) ; \n U acc = zero ; \n public interface Iterator < T > extends java . util . Iterator < T > , Traversable < T > { \n \n @ override \n default < U > List < U > scanRight ( U zero , BiFunction < ? super T , ? super U , ? extends U > operation ) { \n - Objects . requireNonNull ( zero , STRING0 ) ; \n Objects . requireNonNull ( operation , STRING1 ) ; \n List < U > scanned = List . of ( zero ) ; \n U acc = zero ;", "msg_token": "removed null check on zero"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n abstract class BroadcasterFactoryInjector extends BaseInjectableProvider { \n } \n \n @ override \n + public void removeAllAtmosphereResource ( AtmosphereResource < ? , ? > r ) { \n + _get ( ) . removeAllAtmosphereResource ( r ) ; \n + } \n + \n + @ override \n public Collection < Broadcaster > lookupAll ( ) { \n return _get ( ) . lookupAll ( ) ; \n }", "msg_token": "Fix compilation issue"} {"diff": " public class AsyncSSLSocketMiddleware extends AsyncSocketMiddleware { \n super ( client , STRING0 , NUMBER0 ) ; \n } \n \n - SSLContext sslContext ; \n + protected SSLContext sslContext ; \n \n public void setSSLContext ( SSLContext sslContext ) { \n this . sslContext = sslContext ; \n public class AsyncSSLSocketMiddleware extends AsyncSocketMiddleware { \n return sslContext != null ? sslContext : AsyncSSLSocketWrapper . getDefaultSSLContext ( ) ; \n } \n \n - TrustManager [ ] trustManagers ; \n + protected TrustManager [ ] trustManagers ; \n \n public void setTrustManagers ( TrustManager [ ] trustManagers ) { \n this . trustManagers = trustManagers ; \n } \n \n - HostnameVerifier hostnameVerifier ; \n + protected HostnameVerifier hostnameVerifier ; \n \n public void setHostnameVerifier ( HostnameVerifier hostnameVerifier ) { \n this . hostnameVerifier = hostnameVerifier ; \n public class AsyncSocketMiddleware extends SimpleMiddleware { \n this ( client , STRING1 , NUMBER1 ) ; \n } \n \n - AsyncHttpClient mClient ; \n + protected AsyncHttpClient mClient ; \n \n protected ConnectCallback wrapCallback ( ConnectCallback callback , Uri uri , int port , boolean proxied ) { \n return callback ;", "msg_token": "removed package protected on some fields so that subclasses could access the fields"} {"diff": " public class Precipitation { \n } ) \n private Integer probability ; \n \n + @ providermappings ( { \n + @ provider ( name = ProviderName . WUNDERGROUND , property = STRING0 ) \n + } ) \n + private Double total ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class Precipitation { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public Double getTotal ( ) { \n + return total ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n @ override \n public String toString ( ) { \n return new ToStringBuilder ( this , ToStringStyle . SHORT_PREFIX_STYLE ) . append ( STRING1 , rain ) . append ( STRING2 , snow ) \n - . append ( STRING3 , probability ) . toString ( ) ; \n + . append ( STRING3 , probability ) . append ( STRING4 , total ) . toString ( ) ; \n } \n }", "msg_token": "Added Wunderground total precipitation"} {"diff": " public class AnswerHelper { \n return false ; \n } \n } \n - return true ; \n + return checkedItems . size ( ) == answerIds . length ; \n } \n \n }", "msg_token": "Fix isAnswerCorrect code"} {"diff": " public class ColoredProcessHandler extends OSProcessHandler implements AnsiEscap \n @ override \n public void coloredTextAvailable ( String text , Key attributes ) { \n textAvailable ( text , attributes ) ; \n + notifyColoredListeners ( text , attributes ) ; \n + } \n + \n + protected void notifyColoredListeners ( String text , Key attributes ) { SINGLE \n for ( AnsiEscapeDecoder . ColoredTextAcceptor listener : myColoredTextListeners ) { \n listener . coloredTextAvailable ( text , attributes ) ; \n } \n public class PyConsoleProcessHandler extends PythonProcessHandler { \n \n myConsoleView . print ( string , attributes ) ; \n \n - super . coloredTextAvailable ( text , attributes ) ; \n + notifyColoredListeners ( text , attributes ) ; \n } \n \n @ override", "msg_token": "Fix output handling"} {"diff": " public abstract class GroovyElementVisitor { \n } \n \n public void visitThisExpression ( GrThisReferenceExpression thisExpression ) { \n - visitExpression ( thisExpression ) ; \n + visitThisSuperReferenceExpression ( thisExpression ) ; \n } \n \n public void visitSuperExpression ( GrSuperReferenceExpression superExpression ) { \n - visitExpression ( superExpression ) ; \n + visitThisSuperReferenceExpression ( superExpression ) ; \n + } \n + \n + public void visitThisSuperReferenceExpression ( GrThisSuperReferenceExpression expression ) { \n + visitExpression ( expression ) ; \n } \n \n public void visitCastExpression ( GrTypeCastExpression typeCastExpression ) {", "msg_token": "add visitThisSuperReferenceExpression to GroovyElementVisitor"} {"diff": " public class RunningModeControl { \n return reloaded ; \n } \n \n - @ deprecated \n - public void setReloaded ( boolean reloaded ) { \n - setReloaded ( ) ; \n - } \n - \n public void setReloaded ( ) { \n this . reloaded = true ; \n }", "msg_token": "Remove RunningModeControl setReloaded boolean"} {"diff": " public class FloatingActionsMenu extends ViewGroup { \n int addButtonLeft = r - l - mMaxButtonWidth + ( mMaxButtonWidth - mAddButton . getMeasuredWidth ( ) ) / NUMBER0 ; \n mAddButton . layout ( addButtonLeft , addButtonY , addButtonLeft + mAddButton . getMeasuredWidth ( ) , addButtonY + mAddButton . getMeasuredHeight ( ) ) ; \n \n - int labelsRight = addButtonLeft - mLabelsMargin ; \n + int labelsRight = r - l - mMaxButtonWidth - mLabelsMargin ; \n \n int nextY = expandUp ? \n addButtonY - mButtonSpacing :", "msg_token": "Fixed horizontal labels position for FAM with mini add button and normal FABs inside"} {"diff": " public class AsyncSocketMiddleware extends SimpleMiddleware { \n @ override \n public void onDataAvailable ( DataEmitter emitter , ByteBufferList bb ) { \n super . onDataAvailable ( emitter , bb ) ; \n + bb . clear ( ) ; \n socket . close ( ) ; \n } \n } ) ;", "msg_token": "consume the data"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShadowDateUtilsTest { \n assertThat ( actual ) . isEqualTo ( STRING0 ) ; \n } \n \n - @ test \n + @ ignore ( STRING1 ) \n @ config ( sdk = { Build . VERSION_CODES . M } ) \n public void formatDateTime_withCurrentYear_worksSinceM ( ) { \n Calendar calendar = Calendar . getInstance ( ) ;", "msg_token": "Disable failing test timebomb"} {"diff": " public class PSurfaceLWJGL implements PSurface { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + PApplet . hideMenuBar ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "add hideMenuBar call"} {"diff": " class DelayedCloseMongoAsyncConnection extends DelayedCloseMongoConnection imple \n @ override \n public void sendMessage ( final ChannelAwareOutputBuffer buffer , final SingleResultCallback < ResponseBuffers > callback ) { \n isTrue ( STRING0 , ! isClosed ( ) ) ; \n - wrapped . sendAndReceiveMessage ( buffer , callback ) ; \n + wrapped . sendMessage ( buffer , callback ) ; \n } \n \n @ override", "msg_token": "Calling the wrong method"} {"diff": " public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi \n SINGLE \n for ( Transaction tx : pending . values ( ) ) { \n checkState ( tx . getConfidence ( ) . getConfidenceType ( ) == ConfidenceType . PENDING ) ; \n - if ( tx . getConfidence ( ) . numBroadcastPeers ( ) == NUMBER0 ) { \n - log . info ( STRING0 , tx . getHash ( ) ) ; \n - broadcaster . broadcastTransaction ( tx ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + log . info ( STRING0 , tx . getHash ( ) ) ; \n + broadcaster . broadcastTransaction ( tx ) ; \n } \n } finally { \n lock . unlock ( ) ;", "msg_token": "always broadcast all pending txns not only those that are unmarked"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix HTML formatting in android os AsyncTask"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fix compile error"} {"diff": " public class PeerGroup { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in PeerGroup c tor javadoc"} {"diff": " public final class BluetoothDeviceProfileState extends HierarchicalStateMachine \n } \n break ; \n case DISCONNECT_A2DP_OUTGOING : \n - processCommand ( DISCONNECT_A2DP_OUTGOING ) ; \n + deferMessage ( message ) ; \n break ; \n case DISCONNECT_A2DP_INCOMING : \n SINGLE", "msg_token": "Bluez doesn t handle disconnect while connecting well"} {"diff": " public final class Coin implements Monetary , Comparable < Coin > , Serializable { \n return new Coin ( LongMath . checkedAdd ( this . value , value . value ) ) ; \n } \n \n + COMMENT \n + public Coin plus ( final Coin value ) { \n + return add ( value ) ; \n + } \n + \n public Coin subtract ( final Coin value ) { \n return new Coin ( LongMath . checkedSubtract ( this . value , value . value ) ) ; \n } \n \n + COMMENT \n + public Coin minus ( final Coin value ) { \n + return subtract ( value ) ; \n + } \n + \n public Coin multiply ( final long factor ) { \n return new Coin ( LongMath . checkedMultiply ( this . value , factor ) ) ; \n }", "msg_token": "add plus minus aliases for add subtract"} {"diff": " public class ActFmInvoker { \n String value = entry . getRight ( ) . toString ( ) ; \n String encoded = URLEncoder . encode ( value , STRING0 ) ; \n \n - if ( ! syncMethod || STRING1 . equals ( key ) ) ; \n + if ( ! syncMethod || STRING1 . equals ( key ) ) \n requestBuilder . append ( key ) . append ( STRING2 ) . append ( encoded ) . append ( STRING3 ) ; \n \n sigBuilder . append ( key ) . append ( value ) ;", "msg_token": "Fixed a bug when creating urls"} {"diff": " public class ContextConfig \n jarFile = urlConn . getJarFile ( ) ; \n JarEntry fragmentEntry = \n jarFile . getJarEntry ( FRAGMENT_LOCATION ) ; \n - if ( fragmentEntry != null ) { \n + if ( fragmentEntry == null ) { \n + SINGLE \n + SINGLE \n + fragment . setDistributable ( true ) ; \n + } else { \n stream = jarFile . getInputStream ( fragmentEntry ) ; \n InputSource source = new InputSource ( \n urlConn . getJarFileURL ( ) . toString ( ) +", "msg_token": "JARs without any web xml fragments should not impact the status of distributable"} {"diff": " public class WebSocket00FrameDecoder extends ReplayingDecoder < VoidEnum > { \n COMMENT \n COMMENT \n COMMENT \n - public WebSocket00FrameDecoder ( int maxFrameSize ) { \n - this . maxFrameSize = maxFrameSize ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public WebSocket00FrameDecoder ( long maxFrameSize ) { \n this . maxFrameSize = maxFrameSize ; \n }", "msg_token": "Remove deprecated constructor"} {"diff": " public class CandyJar { \n COMMENT \n COMMENT \n public int getCandies ( PokemonFamilyId family ) { \n - return this . candies . get ( family ) ; \n + if ( candies . containsKey ( family ) ) { \n + return this . candies . get ( family ) ; \n + } \n + else { \n + return NUMBER0 ; \n + } \n + \n } \n }", "msg_token": "take care that the candies actually are in the map"} {"diff": " public class TimelineDrawer extends JPanel implements MouseListener , MouseMotion \n } \n \n public void setMinMax ( double min , double max ) { \n + repaint ( ) ; \n } \n \n public void setCustomBounds ( double min , double max ) { \n public class TimelineDrawer extends JPanel implements MouseListener , MouseMotion \n int innerWidth = width - NUMBER0 ; \n int innerHeight = height - settings . tmMarginBottom - NUMBER1 ; \n int innerY = settings . tmMarginTop + NUMBER0 ; \n + if ( settings . background . top != null ) { \n + g2d . setColor ( settings . background . top ) ; \n + g2d . fillRect ( NUMBER2 , innerY , innerWidth , innerHeight ) ; \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix timeline background"} {"diff": " public class PlayerStartingInventorySystem extends BaseComponentSystem { \n inventoryManager . giveItem ( chest , EntityRef . NULL , blockFactory . newInstance ( blockManager . getBlockFamily ( STRING0 ) , NUMBER0 ) ) ; \n inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING1 ) ) ; \n inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING2 ) ) ; \n - inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING3 ) ) ; \n + inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING4 ) ) ; \n inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING5 ) ) ; \n \n inventoryManager . giveItem ( chest , EntityRef . NULL , entityManager . create ( STRING6 ) ) ;", "msg_token": "Fix a missed spot for the rename of the short to shallow railgun"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class IndexItemCategory implements Comparable < IndexItemCategory > { \n public final String name ; \n public class IndexItemCategory implements Comparable < IndexItemCategory > { \n } \n \n public static List < IndexItemCategory > categorizeIndexItems ( ClientContext ctx , Collection < IndexItem > indexItems ) { \n + boolean skipWiki = Version . isFreeVersion ( ctx ) ; \n final Map < String , IndexItemCategory > cats = new TreeMap < String , IndexItemCategory > ( ) ; \n for ( IndexItem i : indexItems ) { \n int nameId = R . string . index_name_other ; \n public class IndexItemCategory implements Comparable < IndexItemCategory > { \n nameId = R . string . index_name_oceania ; \n order = NUMBER0 ; \n } else if ( lc . contains ( STRING0 ) ) { \n + if ( skipWiki ) { \n + continue ; \n + } \n nameId = R . string . index_name_wiki ; \n order = NUMBER1 ; \n }", "msg_token": "Don t show wiki in free version"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n if ( ! delegateToNativeResponse ) { \n return charSet ; \n } else { \n - return _r ( ) . getCharacterEncoding ( ) ; \n + return _r ( ) . getCharacterEncoding ( ) == null ? charSet : _r ( ) . getCharacterEncoding ( ) ; \n } \n }", "msg_token": "Never return null"} {"diff": " public abstract class AbstractSlideExpandableListAdapter extends WrapperListAdap \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractSlideExpandableListAdapter extends WrapperListAdap \n anim . setDuration ( getAnimationDuration ( ) ) ; \n target . startAnimation ( anim ) ; \n } \n + \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void animateCollapse ( ) { \n + if ( lastOpen != null ) { \n + animateView ( lastOpen , ExpandCollapseAnimation . COLLAPSE ) ; \n + lastOpenPosition = - NUMBER0 ; \n + } \n + } \n } \n class SlideExpandableListView extends ListView { \n super ( context , attrs , defStyle ) ; \n } \n \n + public void collapse ( ) { \n + final SlideExpandableListAdapter adapter = ( SlideExpandableListAdapter ) getAdapter ( ) ; \n + adapter . animateCollapse ( ) ; \n + } \n \n public void setAdapter ( ListAdapter adapter ) { \n super . setAdapter ( new SlideExpandableListAdapter ( adapter ) ) ;", "msg_token": "added close functionality in listview"} {"diff": " abstract class InputCovariant5 \n interface InputCovariant6 \n { \n public boolean equals ( InputCovariant5 aInputCovariant5 ) ; \n + } \n + \n + class InputGenericCovariant7 \n + { \n + public < A > boolean equals ( InputGenericCovariant7 aInputCovariant7 ) \n + { \n + return true ; \n + } \n + \n + public < A > boolean equals ( Object aObject ) \n + { \n + return false ; \n + } \n + } \n + \n + class InputGenericCovariant8 \n + { \n + public < A > boolean equals ( InputGenericCovariant8 aInputCovariant8 ) \n + { \n + return true ; \n + } \n + \n + public boolean equals ( Object aObject ) \n + { \n + return false ; \n + } \n }", "msg_token": "Added generic covariant test input"} {"diff": " public class FileObserverService extends Service { \n } else { \n Log_OC . d ( TAG , STRING0 + downloadedFile . getAbsolutePath ( ) ) ; \n } \n + parentPath = new File ( parentPath ) . getParent ( ) ; \n } \n }", "msg_token": "Fixed infinite loop in FileObserverService"} {"diff": " public class DependencyGraphBuilder { \n if ( artifacts . isEmpty ( ) ) { \n artifacts = childConfiguration . getArtifacts ( ) ; \n } \n + SINGLE \n result . addParentSpecificArtifacts ( child , parent , artifacts ) ; \n \n if ( parent == resolveState . root . getResult ( ) ) {", "msg_token": "Added a TODO"} {"diff": " class QuickSettingsModel implements BluetoothStateChangeCallback , \n void addRemoteDisplayTile ( QuickSettingsTileView view , RefreshCallback cb ) { \n mRemoteDisplayTile = view ; \n mRemoteDisplayCallback = cb ; \n - final int [ ] count = new int [ NUMBER0 ] ; \n mRemoteDisplayTile . setOnPrepareListener ( new QuickSettingsTileView . OnPrepareListener ( ) { \n @ override \n public void onPrepare ( ) {", "msg_token": "Remove unused output array in QuickSettingsModel"} {"diff": " final class BeanDelegate < T > implements Bean < T > { \n public void destroy ( T instance , CreationalContext < T > creationalContext ) { \n delegate . destroy ( instance , creationalContext ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return delegate . toString ( ) ; \n + } \n }", "msg_token": "Add missing toString delegation"} {"diff": " public class OracleDataSource extends JDBCDataSource \n { \n StringBuilder schemasQuery = new StringBuilder ( ) ; \n boolean manyObjects = STRING0 . equals ( owner . getContainer ( ) . getConnectionConfiguration ( ) . getProperty ( OracleConstants . PROP_CHECK_SCHEMA_CONTENT ) ) ; \n - schemasQuery . append ( STRING1 ) ; \n + schemasQuery . append ( STRING2 ) ; \n \n SINGLE \n SINGLE", "msg_token": "Oracle schema metadata read fix"} {"diff": " public class ViewWebStats extends Activity { \n titleBar . startRotatingRefreshIcon ( ) ; \n Blog blog = WordPress . currentBlog ; \n \n - int blogid = blog . getBlogId ( ) ; \n - \n - if ( blogid == NUMBER0 && blog . getApi_blogid ( ) == null ) { \n + if ( ! blog . isDotcomFlag ( ) && blog . getApi_blogid ( ) == null ) { \n SINGLE \n this . checkAPIBlogInfo ( ) ; \n } else if ( ! blog . isDotcomFlag ( ) && blog . getDotcom_username ( ) == null ) {", "msg_token": "Fixes an issue where multi user blogs that set a blogId would point to the wrong"} {"diff": " public class MUCItem implements NamedElement { \n xml . optAttribute ( STRING0 , getAffiliation ( ) ) ; \n xml . optAttribute ( STRING1 , getJid ( ) ) ; \n xml . optAttribute ( STRING2 , getNick ( ) ) ; \n - if ( role != MUCRole . none ) { \n + if ( role != null && role != MUCRole . none ) { \n xml . attribute ( STRING3 , getRole ( ) ) ; \n } \n xml . rightAngleBracket ( ) ;", "msg_token": "Fix NPE in MUCItem if role is null"} {"diff": " public class ContactsSdk3_4 extends com . fsck . k9 . helper . Contacts \n String name = null ; \n final Cursor c = mContentResolver . query ( \n Uri . withAppendedPath ( Contacts . People . CONTENT_URI , STRING0 ) , \n - PROJECTION , \n + new String [ ] { Contacts . ContactMethods . DISPLAY_NAME } , \n null , \n null , \n null ) ; \n public class ContactsSdk3_4 extends com . fsck . k9 . helper . Contacts \n if ( c . getCount ( ) > NUMBER0 ) \n { \n c . moveToFirst ( ) ; \n - name = getName ( c ) ; \n + name = c . getString ( NUMBER0 ) ; SINGLE \n } \n c . close ( ) ; \n }", "msg_token": "Avoid IllegalArgumentException Only fetch display name in getOwnerName"} {"diff": " public class TheTVDB { \n } \n } \n } ) ; \n - final String url = xmlMirror + STRING0 + previousUpdateTime ; \n + final String url = xmlMirror + STRING1 + previousUpdateTime ; \n HttpUriRequest request = new HttpGet ( url ) ; \n HttpClient httpClient = getHttpClient ( context ) ; \n execute ( request , httpClient , root . getContentHandler ( ) , false ) ;", "msg_token": "Actually set return type of update api call to all so we actually get"} {"diff": " public class BasePortletExportImportTestCase extends BaseExportImportTestCase { \n \n exportParameterMap . put ( \n PortletDataHandlerKeys . DELETIONS , \n - new String [ ] { String . valueOf ( true ) } ) ; \n + new String [ ] { String . valueOf ( true ) } ) ; \n \n exportImportPortlet ( \n getPortletId ( ) , exportParameterMap , getImportParameterMap ( ) ) ; \n public class BasePortletExportImportTestCase extends BaseExportImportTestCase { \n \n importParameterMap . put ( \n PortletDataHandlerKeys . DELETIONS , \n - new String [ ] { String . valueOf ( true ) } ) ; \n + new String [ ] { String . valueOf ( true ) } ) ; \n \n exportImportPortlet ( \n getPortletId ( ) , exportParameterMap , importParameterMap ) ;", "msg_token": "Source formatting forgot a space"} {"diff": " public class AndroidUtils { \n Manifest manifest = depFacet . getManifest ( ) ; \n if ( manifest != null ) { \n String aPackage = manifest . getPackage ( ) . getValue ( ) ; \n - result . add ( aPackage ) ; \n + if ( aPackage != null ) { \n + result . add ( aPackage ) ; \n + } \n } \n } \n }", "msg_token": "do not add null values"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n public class App \n { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void main ( String [ ] args ) { \n \n Node root = new NodeImpl ( STRING0 , \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class AppTest { \n \n @ test", "msg_token": "Improve JavaDoc for Null Object example"} {"diff": " final class ClosureRewriteModule implements NodeTraversal . Callback , HotSwapCompi \n return ; \n } \n \n - new NodeTraversal ( compiler , new AbstractPostOrderCallback ( ) { \n + NodeTraversal . traverseEs6 ( compiler , s . getRootNode ( ) , new AbstractPostOrderCallback ( ) { \n @ override \n public void visit ( NodeTraversal t , Node n , Node parent ) { \n if ( n . isName ( ) ) { \n final class ClosureRewriteModule implements NodeTraversal . Callback , HotSwapCompi \n } \n } \n } \n - } ) . traverseAtScope ( s ) ; \n + } ) ; \n } \n \n private Node getModuleScopeRootForLoadModuleCall ( Node n ) {", "msg_token": "Removed use of traverseAtScope in ClosureRewriteModule"} {"diff": " public class ColQueryTest extends AbstractQueryTest { \n @ test \n public void testAlias11 ( ) { \n QCat cat = new QCat ( STRING0 ) ; \n + \n + SINGLE \n Cat c = alias ( Cat . class , cat ) ; \n assertEquals ( cat . name , $ ( c . getName ( ) ) ) ; \n + \n + SINGLE \n + assertEquals ( cat . name , $ ( alias ( cat ) . getName ( ) ) ) ; \n } \n \n @ test \n public class ColQueryTest extends AbstractQueryTest { \n Cat c = alias ( Cat . class , STRING0 ) ; \n \n from ( c , cats ) \n - . where ( $ ( c . getName ( ) ) . toUpperCase ( ) . eq ( STRING1 ) ) \n + . where ( $ ( c . getName ( ) ) . upper ( ) . eq ( STRING1 ) ) \n . list ( c ) . iterator ( ) ; \n }", "msg_token": "reformatted Expr EString code"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class HelloLoop extends SimpleApplication { \n @ override \n public void simpleInitApp ( ) { \n COMMENT \n - Box b = new Box ( Vector3f . ZERO , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n + Box b = new Box ( NUMBER0 , NUMBER0 , NUMBER0 ) ; \n player = new Geometry ( STRING0 , b ) ; \n Material mat = new Material ( assetManager , \n STRING1 ) ;", "msg_token": "Removes the use of the deprecated Box contructor with the mesh origin in HelloLoop"} {"diff": " public class DLFileEntryTrashHandler extends BaseTrashHandler { \n } \n \n @ override \n - public String getDeleteMessage ( ) { \n - return STRING0 ; \n - } \n - \n - @ override \n public String getRestoreLink ( PortletRequest portletRequest , long classPK ) \n throws PortalException , SystemException { \n \n public class DLFileShortcutTrashHandler extends BaseTrashHandler { \n } \n \n @ override \n - public String getDeleteMessage ( ) { \n - return STRING1 ; \n - } \n - \n - @ override \n public String getRestoreLink ( PortletRequest portletRequest , long classPK ) \n throws PortalException , SystemException {", "msg_token": "Remove unnecessary method implementations"} {"diff": " public class Imports { \n imports . add ( STRING0 ) ; \n imports . add ( STRING1 ) ; \n imports . add ( STRING2 ) ; \n + imports . add ( STRING3 ) ; \n imports . add ( STRING4 ) ; \n imports . add ( STRING5 ) ; \n imports . add ( STRING6 ) ;", "msg_token": "Adding InfiniteGraph implementation to the imports"} {"diff": " public final class DefBootstrap { \n \n PIC ( Lookup lookup , String name , MethodType type , int flavor , Object [ ] args ) { \n super ( type ) ; \n + if ( type . parameterType ( NUMBER0 ) != Object . class ) { \n + throw new BootstrapMethodError ( STRING0 ) ; \n + } \n this . lookup = lookup ; \n this . name = name ; \n this . flavor = flavor ; \n public final class DefBootstrap { \n final MethodHandle target = lookup ( flavor , name , receiver , callArgs ) . asType ( type ) ; \n \n MethodHandle test = CHECK_CLASS . bindTo ( receiver ) ; \n - test = test . asType ( test . type ( ) . changeParameterType ( NUMBER0 , type . parameterType ( NUMBER0 ) ) ) ; \n - \n MethodHandle guard = MethodHandles . guardWithTest ( test , target , getTarget ( ) ) ; \n \n depth ++ ;", "msg_token": "Remove unneeded type adaption and add error message on violation"} {"diff": " public class RingtoneManager { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public static final String EXTRA_RINGTONE_INCLUDE_DRM = \n public class RingtoneManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public boolean getIncludeDrm ( ) { \n public class RingtoneManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public void setIncludeDrm ( boolean includeDrm ) {", "msg_token": "Fix javadoc errors for deprecated tags with no explanatory comment"} {"diff": " public class CodaHaleModule extends AbstractModule implements HandlerDecoratingM \n private boolean metricsEnabled ; \n \n private boolean isMetricsEnabled ( ) { \n - return metricsEnabled || reportMetricsToJmx || csvReportDirectory != null ; \n + return metricsEnabled || reportMetricsToConsole || reportMetricsToJmx || csvReportDirectory != null ; \n } \n \n @ override", "msg_token": "Add console reporterto metrics enabled check"} {"diff": " public class RemoteLogBuckConfig { \n private static final long DEFAULT_REQUEST_TIMEOUT_MILLIS = NUMBER0 ; \n private static final String REQUEST_MAX_THREADS = STRING0 ; \n private static final int DEFAULT_REQUEST_MAX_THREADS = NUMBER1 ; \n - private static final String REQUEST_THRIFT_ENABLED = STRING1 ; \n \n private final SlbBuckConfig frontendConfig ; \n private final BuckConfig buckConfig ; \n public class RemoteLogBuckConfig { \n return buckConfig . getInteger ( LOG_SECTION_NAME , REQUEST_MAX_THREADS ) \n . or ( DEFAULT_REQUEST_MAX_THREADS ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean isThriftEnabled ( ) { \n - return buckConfig . getBooleanValue ( LOG_SECTION_NAME , REQUEST_THRIFT_ENABLED , false ) ; \n - } \n }", "msg_token": "Remove option to not use ThriftScribeLogger"} {"diff": " public class CallHistoryServiceImpl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void eraseLocallyStoredHistory ( ) \n + throws IOException \n + { \n + HistoryID historyId = HistoryID . createFromRawID ( \n + new String [ ] { STRING0 } ) ; \n + historyService . purgeLocallyStoredHistory ( historyId ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public interface CallHistoryService \n COMMENT \n public void removeCallHistoryRecordListener ( \n CallHistoryPeerRecordListener listener ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void eraseLocallyStoredHistory ( ) throws IOException ; \n }", "msg_token": "Add API to erase the call history"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PhotoUploadService extends Service implements Handler . Callback { \n \n private void onFinishedUpload ( PhotoUpload completedUpload ) { \n completedUpload . setUploadState ( PhotoUpload . STATE_UPLOAD_COMPLETED ) ; \n + PhotoUploadDatabaseHelper . saveToDatabase ( getApplicationContext ( ) , completedUpload ) ; \n + \n mNumberUploaded ++ ; \n startNextUploadOrFinish ( ) ; \n } \n \n private void onFailedUpload ( PhotoUpload failedUpload ) { \n failedUpload . setUploadState ( PhotoUpload . STATE_UPLOAD_ERROR ) ; \n + PhotoUploadDatabaseHelper . saveToDatabase ( getApplicationContext ( ) , failedUpload ) ; \n + \n mNumberUploaded ++ ; \n startNextUploadOrFinish ( ) ; \n }", "msg_token": "Save State from Service too"} {"diff": " public class Main { \n System . out . println ( STRING0 ) ; \n } else if ( main . command . startsWith ( STRING1 ) && ! main . command . endsWith ( STRING2 ) ) { \n System . out . println ( STRING3 ) ; \n - } else { \n + } else if ( ! main . command . endsWith ( STRING2 ) ) { \n System . out . println ( STRING4 + main . command + STRING5 ) ; \n } \n } catch ( Throwable e ) {", "msg_token": "Do not print out Liquibase updateSQL successful to console"} {"diff": " class GlobalActions implements DialogInterface . OnDismissListener , DialogInterfac \n COMMENT \n public void onDismiss ( DialogInterface dialog ) { \n if ( SHOW_SILENT_TOGGLE ) { \n - mContext . unregisterReceiver ( mRingerModeReceiver ) ; \n + try { \n + mContext . unregisterReceiver ( mRingerModeReceiver ) ; \n + } catch ( IllegalArgumentException ie ) { \n + SINGLE \n + Log . w ( TAG , ie ) ; \n + } \n } \n }", "msg_token": "avoid crashing system serer process"} {"diff": " public class DefaultInvoiceDao extends EntityDaoBase < InvoiceModelDao , Invoice , I \n . onResultOf ( new Function < InvoiceModelDao , Comparable > ( ) { \n @ override \n public Comparable apply ( final InvoiceModelDao invoice ) { \n - return invoice . getTargetDate ( ) == null ? invoice . getCreatedDate ( ) : invoice . getTargetDate ( ) ; \n + return invoice . getTargetDate ( ) == null ? invoice . getCreatedDate ( ) . toLocalDate ( ) : invoice . getTargetDate ( ) ; \n } \n } ) ;", "msg_token": "ordering date fix"} {"diff": " public class ContentView extends LinearLayout { \n mEventHandler . onSharedLink ( ) ; \n break ; \n } \n + \n + case R . id . item_settings : { \n + Intent intent = new Intent ( mContext , SettingsActivity . class ) ; \n + intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_CLEAR_TOP | Intent . FLAG_ACTIVITY_SINGLE_TOP ) ; \n + mContext . startActivity ( intent ) ; \n + mEventHandler . onSharedLink ( ) ; \n + break ; \n + } \n } \n return false ; \n }", "msg_token": "Wire up Settings action from the overflow menu"} {"diff": " public abstract class IgnitedAsyncTask < ContextT extends Context , ParameterT , Pro \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 - protected ReturnT run ( ParameterT . . . params ) throws Exception { \n + public ReturnT run ( ParameterT . . . params ) throws Exception { \n return run ( params . length > NUMBER0 ? params [ NUMBER0 ] : null ) ; \n } \n \n public abstract class IgnitedAsyncTask < ContextT extends Context , ParameterT , Pro \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 - protected ReturnT run ( ParameterT arg ) throws Exception { \n + public ReturnT run ( ParameterT arg ) throws Exception { \n return null ; \n }", "msg_token": "Make run method public so that is can be invoked directly to run a task on a custom thread"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class CreateLineageCommand extends AbstractTfsShellCommand { \n \n import NAMESPACE ; \n public final class FileInfoCommand extends WithWildCardPathCommand { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Incorporated PR comments"} {"diff": " public class AnnotationUtilsTests { \n assertNull ( m . getAnnotation ( Order . class ) ) ; \n assertNull ( getAnnotation ( m , Order . class ) ) ; \n assertNotNull ( findAnnotation ( m , Order . class ) ) ; \n - assertNull ( m . getAnnotation ( Transactional . class ) ) ; \n + SINGLE \n + SINGLE \n assertNotNull ( getAnnotation ( m , Transactional . class ) ) ; \n assertNotNull ( findAnnotation ( m , Transactional . class ) ) ; \n }", "msg_token": "Fix broken test in AnnotationUtilsTests"} {"diff": " public abstract class DefaultEndpoint extends ServiceSupport implements Endpoint \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected void setProperties ( Object bean , Map < String , Object > parameters ) throws Exception { \n + SINGLE \n + EndpointHelper . setReferenceProperties ( getCamelContext ( ) , bean , parameters ) ; \n + EndpointHelper . setProperties ( getCamelContext ( ) , bean , parameters ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n protected String createEndpointUri ( ) {", "msg_token": "Added setProperties method to DefaultEndpoint just like we have in DefaultComponent that comes handy for component developers"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ entity \n - @ table ( name = STRING0 ) \n + @ table ( name = STRING1 ) \n @ namedqueries ( { \n @ namedquery ( name = STRING2 , query = STRING3 ) \n } )", "msg_token": "Fixed the table name"} {"diff": " class MethodInvocationMessageHandler extends EJBIdentifierBasedMessageHandler { \n try { \n methodParams [ i ] = unmarshaller . readObject ( ) ; \n } catch ( ClassNotFoundException cnfe ) { \n - SINGLE \n - throw new RuntimeException ( cnfe ) ; \n + SINGLE \n + MethodInvocationMessageHandler . this . writeException ( channel , MethodInvocationMessageHandler . this . marshallerFactory , invocationId , cnfe , null ) ; \n + return ; \n } \n } \n } \n class MethodInvocationMessageHandler extends EJBIdentifierBasedMessageHandler { \n try { \n attachments = this . readAttachments ( unmarshaller ) ; \n } catch ( ClassNotFoundException cnfe ) { \n - SINGLE \n - throw new RuntimeException ( cnfe ) ; \n + SINGLE \n + MethodInvocationMessageHandler . this . writeException ( channel , MethodInvocationMessageHandler . this . marshallerFactory , invocationId , cnfe , null ) ; \n + return ; \n } \n SINGLE \n unmarshaller . finish ( ) ;", "msg_token": "Implement the TODOs and write back the CNFE failure during remote method invocation back to the channel"} {"diff": " public class HttpAsyncCallbackTest extends CamelTestSupport { \n private List < String > data = new ArrayList < String > ( ) ; \n \n @ override \n - public void onDone ( Exchange exchange ) { \n + public void onComplete ( Exchange exchange ) { \n SINGLE \n String body = exchange . getOut ( ) . getBody ( String . class ) ; \n data . add ( body ) ;", "msg_token": "Added asyncCallback methods to ProducerTemplate to do async messaging with callbacks being invoked when the message is done"} {"diff": " public class EvaluateTreebank { \n factDA = new UnlabeledAttachmentEval ( STRING0 , runningAverages , null ) ; \n } \n if ( Boolean . parseBoolean ( op . testOptions . evals . getProperty ( STRING1 ) ) ) { \n - if ( op . doPCFG ) { \n - factTA = new TaggingEval ( STRING2 , runningAverages , lex ) ; \n - } else { \n - SINGLE \n - factTA = new TaggingEval ( STRING2 , runningAverages , lex ) ; \n - } \n + factTA = new TaggingEval ( STRING2 , runningAverages , lex ) ; \n } \n if ( Boolean . parseBoolean ( op . testOptions . evals . getProperty ( STRING3 ) ) ) { \n pcfgRUO = new AbstractEval . RuleErrorEval ( STRING4 ) ;", "msg_token": "Remove an if statement that had no effect"} {"diff": " public class P2 < E > extends T2 < E , E > { \n super ( first , second ) ; \n } \n \n + public P2 ( E [ ] entries ) { \n + super ( entries [ NUMBER0 ] , entries [ NUMBER1 ] ) ; \n + if ( entries . length != NUMBER2 ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + } \n + \n public String toString ( ) { \n return STRING1 + getFirst ( ) + STRING2 + getSecond ( ) + STRING3 ; \n }", "msg_token": "you can never have too many ways to create a pair"} {"diff": " public abstract class BaseItemAnimator extends SimpleItemAnimator { \n setSupportsChangeAnimations ( false ) ; \n } \n \n + public void setInterpolator ( Interpolator mInterpolator ) { \n + this . mInterpolator = mInterpolator ; \n + } \n + \n @ override public void runPendingAnimations ( ) { \n boolean removalsPending = ! mPendingRemovals . isEmpty ( ) ; \n boolean movesPending = ! mPendingMoves . isEmpty ( ) ;", "msg_token": "Added BaseItemAnimator setInterpolator"} {"diff": " public abstract class AbstractLoadBalancingProxyTestCase { \n SINGLE \n SINGLE \n SINGLE \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n } catch ( InterruptedException e ) { \n throw new RuntimeException ( e ) ; \n }", "msg_token": "Increase load balancing test timeout"} {"diff": " public class EipAnnotationProcessor extends AbstractAnnotationProcessor { \n SINGLE \n private static final String ONE_OF_TYPE_NAME = STRING0 ; \n private static final String [ ] ONE_OF_LANGUAGES = new String [ ] { \n - STRING1 , \n - STRING2 \n + STRING1 , \n + STRING2 \n } ; \n SINGLE \n private static final String [ ] ONE_OF_INPUTS = new String [ ] {", "msg_token": "Fix Checkstyle errors"} {"diff": " \n + COMMENT \n + $Id$ \n + \n + Copyright NUMBER0 ( C ) James Strachan and Bob Mcwhirter . All Rights Reserved . \n + \n + Licensed under the Apache License , Version FLOAT0 ( the STRING0 ) ; you may not use this file except in \n + compliance with the License . You may obtain a copy of the License at \n + \n + http: SINGLE \n + \n + Unless required by applicable law or agreed to in writing , software distributed under the License is \n + distributed on an STRING1 BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or \n + implied . See the License for the specific language governing permissions and limitations under the License . \n + \n + This work is copyright by the author ( s ) and is part of a greater work collectively copyright by the \n + Groovy community . See the NOTICE . txt file distributed with this work for additional information . \n + \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "restore license cut and paste issue"} {"diff": " public class QuickActionFactory { \n TextView dscrHint = ( TextView ) view . findViewById ( R . id . textDscrHint ) ; \n Button addBtn = ( Button ) view . findViewById ( R . id . btnAdd ) ; \n \n - dscrTitle . setText ( getDiscrTitle ( ) + STRING0 ) ; \n + dscrTitle . setText ( getDiscrTitle ( ) ) ; \n dscrHint . setText ( getDiscrHint ( ) ) ; \n addBtn . setText ( getAddBtnText ( ) ) ; \n addBtn . setOnClickListener ( getOnAddBtnClickListener ( activity , adapter ) ) ;", "msg_token": "fix headline display"} {"diff": " import NAMESPACE ; \n public final class AttributeAccess { \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static enum AccessType { \n + COMMENT \n READ_ONLY ( STRING0 ) , \n + COMMENT \n READ_WRITE ( STRING1 ) , \n + COMMENT \n METRIC ( STRING2 ) ; \n \n private final String label ; \n public final class AttributeAccess { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static enum Storage { \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n CONFIGURATION ( STRING3 ) , \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n RUNTIME ( STRING4 ) ; \n \n private final String label ;", "msg_token": "Improve AttributeAccess javadoc"} {"diff": " import NAMESPACE ; \n \n public class DataSourceException extends PersistenceException { \n \n + private static final long serialVersionUID = - NUMBER0 ; \n + \n public DataSourceException ( ) { \n super ( ) ; \n } \n package NAMESPACE ; \n @ deprecated \n public class IbatisException extends RuntimeException { \n \n + private static final long serialVersionUID = NUMBER1 ; \n + \n public IbatisException ( ) { \n super ( ) ; \n } \n \n COMMENT \n package NAMESPACE ; \n \n + @ suppresswarnings ( STRING0 ) \n public class PersistenceException extends IbatisException { \n \n + private static final long serialVersionUID = - NUMBER2 ; \n + \n public PersistenceException ( ) { \n super ( ) ; \n } \n package NAMESPACE ; \n \n public class TooManyResultsException extends PersistenceException { \n \n + private static final long serialVersionUID = NUMBER3 ; \n + \n public TooManyResultsException ( ) { \n super ( ) ; \n }", "msg_token": "mybatis removed warnings"} {"diff": " package NAMESPACE ; \n \n \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n \n public class HashMap < K , V > extends AbstractMap < K , V > implements Map < K , V > { \n \n \n \n - public V put ( final K key , final V value ) { \n + public V put ( final K key , final @ notnull V value ) { \n \n final Entry < K , V > [ ] table = this . table ; \n \n package NAMESPACE ; \n \n \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n \n public class LinkedHashMap < K , V > extends AbstractMap < K , V > implements Map < K , V > \n \n \n \n - public V put ( final K key , final V value ) { \n + public V put ( final K key , @ notnull final V value ) { \n \n final Entry < K , V > [ ] table = this . table ;", "msg_token": "r maxim don t allow null values in Slava s hash maps for containsKey won t work properly"} {"diff": " public class NeoStoreDataSource implements NeoStoreProvider , Lifecycle , IndexPro \n kernelModule ) ; \n } \n catch ( Throwable e ) \n - { SINGLE \n + { \n + SINGLE \n + msgLog . logMessage ( STRING0 , \n + e , true ) ; \n try \n { SINGLE \n neoStoreModule . neoStore ( ) . close ( ) ; \n public class NeoStoreDataSource implements NeoStoreProvider , Lifecycle , IndexPro \n life . start ( ) ; \n } \n catch ( Throwable e ) \n - { SINGLE \n - \n + { \n + SINGLE \n + msgLog . logMessage ( STRING1 , \n + e , true ) ; \n try \n { SINGLE \n neoStoreModule . neoStore ( ) . close ( ) ;", "msg_token": "Adds logging of exceptions during NeoStoreDataSource startup"} {"diff": " public final class OAuth2AuthorizationServerConfigurer extends \n return this ; \n } \n \n + public OAuth2AuthorizationServerConfigurer authorizationCodeServices ( AuthorizationCodeServices authorizationCodeServices ) { \n + this . authorizationCodeServices = authorizationCodeServices ; \n + return this ; \n + } \n + \n @ override \n public void init ( HttpSecurity http ) throws Exception { \n registerDefaultAuthenticationEntryPoint ( http ) ;", "msg_token": "Add support for authorization code services in Configuration"} {"diff": " public class TweetMarkerHelper extends APIHelper { \n . setTitle ( STRING0 ) \n . setMessage ( STRING1 + \n STRING2 + \n - STRING3 + ( responseTime / NUMBER0 ) ) \n + STRING4 + ( responseTime / NUMBER0 ) + STRING5 ) \n . setPositiveButton ( STRING6 , new DialogInterface . OnClickListener ( ) { \n @ override \n public void onClick ( DialogInterface dialog , int which ) {", "msg_token": "Improve Add a little more info to tweetmarker time out dialog"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "removed unused import"} {"diff": " public class WebMvcAutoConfiguration { \n \n @ override \n public void addResourceHandlers ( ResourceHandlerRegistry registry ) { \n - SINGLE \n - registry . addResourceHandler ( STRING0 ) . addResourceLocations ( \n - STRING1 ) ; \n - SINGLE \n - SINGLE \n - registry . addResourceHandler ( STRING2 ) . addResourceLocations ( RESOURCE_LOCATIONS ) ; \n - SINGLE \n + if ( ! registry . hasMappingForPattern ( STRING0 ) ) { \n + registry . addResourceHandler ( STRING0 ) . addResourceLocations ( \n + STRING1 ) ; \n + } \n + if ( ! registry . hasMappingForPattern ( STRING2 ) ) { \n + registry . addResourceHandler ( STRING2 ) . addResourceLocations ( \n + RESOURCE_LOCATIONS ) ; \n + } \n } \n \n @ override \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ ignore \n public class WebMvcAutoConfigurationTests { \n \n private static final MockEmbeddedServletContainerFactory containerFactory = new MockEmbeddedServletContainerFactory ( ) ;", "msg_token": "Reinstate use of hasMappingForPattern"} {"diff": " public class TestJavaTestDocsGenerator implements GraphHolder \n public @ rule \n TestData < JavaTestDocsGenerator > gen = TestData . producedThrough ( JavaTestDocsGenerator . PRODUCER ) ; \n \n - String directory = STRING0 ; \n + String directory = STRING1 + System . getProperty ( STRING2 ) + STRING3 ; \n String sectionName = STRING4 ; \n \n @ documented ( value = STRING5 ) \n public abstract class DocsGenerator \n } catch ( Exception e ) \n { \n e . printStackTrace ( ) ; \n + throw new RuntimeException ( e ) ; \n } \n - throw new RuntimeException ( ) ; \n } \n \n } \n public class JavaTestDocsGenerator extends DocsGenerator \n \n public void document ( String directory , String sectionName ) \n { \n - FileWriter fw = getFW ( directory + STRING6 + sectionName , title ) ; \n + FileWriter fw = getFW ( directory + System . getProperty ( STRING2 ) + sectionName , title ) ; \n String name = title . replace ( STRING7 , STRING8 ) . toLowerCase ( ) ; \n description = replaceSnippets ( description ) ; \n try", "msg_token": "fixing Windows path problem"} {"diff": " public class FloatingActionButton extends ImageButton { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected int getListViewScrollY ( ) { \n - View topChild = mListView . getChildAt ( NUMBER0 ) ; \n - return topChild == null ? NUMBER0 : mListView . getFirstVisiblePosition ( ) * topChild . getHeight ( ) - \n - topChild . getTop ( ) ; \n - } \n - \n private int getMarginBottom ( ) { \n int marginBottom = NUMBER0 ; \n final ViewGroup . LayoutParams layoutParams = getLayoutParams ( ) ;", "msg_token": "Delete deprecated getListViewScrollY"} {"diff": " public class RealtimePlumberSchool implements PlumberSchool \n \n log . info ( STRING0 ) ; \n \n - long minTimestamp = segmentGranularity . truncate ( rejectionPolicy . getCurrMaxTime ( ) ) . getMillis ( ) \n - - windowMillis ; \n + long minTimestamp = segmentGranularity . truncate ( \n + rejectionPolicy . getCurrMaxTime ( ) . minus ( windowMillis ) \n + ) . getMillis ( ) ; \n \n List < Map . Entry < Long , Sink > > sinksToPush = Lists . newArrayList ( ) ; \n for ( Map . Entry < Long , Sink > entry : sinks . entrySet ( ) ) {", "msg_token": "Fix truncation math when figuring out what Segments to persist for realtime plumber"} {"diff": " final class ManagedProcess { \n } \n } catch ( IllegalArgumentException e ) { \n SINGLE \n - log . error ( STRING0 , e ) ; \n + log . error ( STRING1 + b . toString ( ) ) ; \n } \n if ( status == Status . MORE ) StreamUtils . readToEol ( inputStream ) ;", "msg_token": "Improve formatting of ERROR msg when unknown input received"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class MainActivity extends AppCompatActivity { \n Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; \n startActivity ( intent ) ; \n } \n + \n + @ override \n + protected void onDestroy ( ) { \n + super . onDestroy ( ) ; \n + SINGLE \n + FileDownloader . getImpl ( ) . unBindServiceIfIdle ( ) ; \n + } \n }", "msg_token": "unbind and stop service manually if idle when MainActivity onDestoryed"} {"diff": " public class ResourceReferenceProcessor extends AbstractDeploymentDescriptorBind \n final BindingConfiguration bindingConfiguration ; \n if ( ! isEmpty ( resourceRef . getLookupName ( ) ) ) { \n bindingConfiguration = new BindingConfiguration ( name , new LookupInjectionSource ( resourceRef . getLookupName ( ) ) ) ; \n + } else if ( ! isEmpty ( resourceRef . getResUrl ( ) ) ) { \n + bindingConfiguration = new BindingConfiguration ( name , new EnvEntryInjectionSource ( resourceRef . getResUrl ( ) ) ) ; \n } else { \n classType = processInjectionTargets ( moduleDescription , componentDescription , applicationClasses , injectionSource , classLoader , deploymentReflectionIndex , resourceRef , classType ) ; \n if ( classType == null ) {", "msg_token": "bind url resources"} {"diff": " public class PipeTransportItems extends PipeTransport { \n \n item . setSpeed ( packet . getSpeed ( ) ) ; \n \n + item . toCenter = true ; \n item . input = packet . getInputOrientation ( ) ; \n item . output = packet . getOutputOrientation ( ) ; \n item . color = packet . getColor ( ) ;", "msg_token": "Fix full inv item bounce client animation"} {"diff": " public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n } \n \n @ override \n - public boolean onCreateOptionsMenu ( Menu menu ) { \n - MenuInflater inflater = getMenuInflater ( ) ; \n - inflater . inflate ( R . menu . theme , menu ) ; \n - return super . onCreateOptionsMenu ( menu ) ; \n - } \n - \n - @ override \n public boolean onOptionsItemSelected ( MenuItem item ) { \n int i = item . getItemId ( ) ; \n if ( i == android . R . id . home ) {", "msg_token": "Removing theme search in ToolBar"} {"diff": " public class MethodSignatureVisitor extends TraceSignatureVisitor implements Met \n } \n returnOpcodeType . value = type ; \n \n - returnTypeName . setLength ( NUMBER0 ) ; \n + if ( returnTypeName . length ( ) == NUMBER0 ) { \n + SINGLE \n + SINGLE \n + SINGLE \n \n - if ( typeName != null ) { \n - returnTypeName . append ( typeName ) ; \n + SINGLE \n + \n + if ( typeName != null ) { \n + returnTypeName . append ( typeName ) ; \n + } \n } \n } \n }", "msg_token": "store only the first return type in method signature visitor"} {"diff": " public class SenderTest \n private static final int INITIAL_TERM_ID = NUMBER0 ; \n private static final byte [ ] PAYLOAD = STRING0 . getBytes ( ) ; \n \n - private static final UnsafeBuffer HEADER = \n - DataHeaderFlyweight . createDefaultHeader ( SESSION_ID , STREAM_ID , INITIAL_TERM_ID ) ; \n - public static final int FRAME_LENGTH = HEADER . capacity ( ) + PAYLOAD . length ; \n + private static final UnsafeBuffer HEADER = DataHeaderFlyweight . createDefaultHeader ( SESSION_ID , STREAM_ID , INITIAL_TERM_ID ) ; \n + private static final int FRAME_LENGTH = HEADER . capacity ( ) + PAYLOAD . length ; \n private static final int ALIGNED_FRAME_LENGTH = align ( FRAME_LENGTH , FRAME_ALIGNMENT ) ; \n \n private final ControlTransportPoller mockTransportPoller = mock ( ControlTransportPoller . class ) ;", "msg_token": "Java Fix code style warning"} {"diff": " public class AceEditor implements DocDisplay , \n @ override \n public void run ( ) \n { \n - widget_ . getEditor ( ) . retokenizeDocument ( row_ ) ; \n + widget_ . getEditor ( ) . tokenizeUpToRow ( row_ ) ; \n } \n } ; \n } \n public class AceEditorNative extends JavaScriptObject { \n \n public final void retokenizeDocument ( ) \n { \n - retokenizeDocument ( NUMBER0 ) ; \n + tokenizeUpToRow ( getSession ( ) . getLength ( ) - NUMBER1 ) ; \n } \n \n - public final native void retokenizeDocument ( int fromRow ) 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 \n public final native void setCommandManager ( AceCommandManager commands )", "msg_token": "re work bg tokenizer call"} {"diff": " public class ContentResolverTest { \n } \n \n @ test \n - public void delete_bla ( ) { \n + public void delete_shouldTrackDeletedStatements ( ) { \n assertThat ( shadowContentResolver . getDeleteStatements ( ) . size ( ) , equalTo ( NUMBER0 ) ) ; \n \n assertThat ( contentResolver . delete ( uri21 , STRING0 , new String [ ] { STRING1 } ) , equalTo ( NUMBER1 ) ) ;", "msg_token": "Renamed test method in ContentResolverTest"} {"diff": " public abstract class Model extends Iced { \n for ( int i = NUMBER0 ; i < p . _len ; i ++ ) { \n float [ ] out = score0 ( chks , i , tmp , preds ) ; \n if ( nclasses ( ) > NUMBER1 ) { \n - p . set0 ( i , Utils . maxIndex ( out ) ) ; \n + if ( Float . isNaN ( out [ NUMBER0 ] ) ) p . setNA0 ( i ) ; \n + else p . set0 ( i , Utils . maxIndex ( out ) ) ; \n for ( int c = NUMBER0 ; c < nclasses ( ) ; c ++ ) \n chks [ _names . length + c ] . set0 ( i , out [ c ] ) ; \n } else {", "msg_token": "Model predict handles NA s"} {"diff": " public class InternalEngine extends Engine { \n long translogId = translogIdGenerator . incrementAndGet ( ) ; \n translog . newTransientTranslog ( translogId ) ; \n indexWriter . setCommitData ( Collections . singletonMap ( Translog . TRANSLOG_ID_KEY , Long . toString ( translogId ) ) ) ; \n - logger . trace ( STRING0 ) ; \n + logger . trace ( STRING1 ) ; \n commitIndexWriter ( indexWriter ) ; \n logger . trace ( STRING2 ) ; \n SINGLE \n public class InternalEngine extends Engine { \n try { \n long translogId = translog . currentId ( ) ; \n indexWriter . setCommitData ( Collections . singletonMap ( Translog . TRANSLOG_ID_KEY , Long . toString ( translogId ) ) ) ; \n + logger . trace ( STRING3 ) ; \n commitIndexWriter ( indexWriter ) ; \n + logger . trace ( STRING2 ) ; \n } catch ( Throwable e ) { \n throw new FlushFailedEngineException ( shardId , e ) ; \n }", "msg_token": "add trace logging for the commitTranslog false case in InternalEngine flush"} {"diff": " public class GitCheckoutProvider implements CheckoutProvider { \n clone ( project , sourceRepositoryURL , new File ( dialog . getParentDirectory ( ) ) , dialog . getDirectoryName ( ) , dialog . getOriginName ( ) ) ; \n int code = GitHandlerUtil . doSynchronously ( handler , GitBundle . message ( STRING0 , sourceRepositoryURL ) , STRING1 ) ; \n \n - final VcsDirtyScopeManager mgr = VcsDirtyScopeManager . getInstance ( project ) ; \n destinationParent . refresh ( true , true , new Runnable ( ) { \n public void run ( ) { \n - mgr . fileDirty ( destinationParent ) ; \n + if ( ! project . isDefault ( ) ) { \n + final VcsDirtyScopeManager mgr = VcsDirtyScopeManager . getInstance ( project ) ; \n + mgr . fileDirty ( destinationParent ) ; \n + } \n } \n } ) ;", "msg_token": "fixed logged assertion"} {"diff": " public class SlidingLayer extends FrameLayout { \n private static final int HORIZONTAL = NUMBER0 ; \n private static final int VERTICAL = NUMBER1 ; \n \n - private static final int HIGH_VELOCITY = NUMBER2 ; \n + private static final int HIGH_VELOCITY = NUMBER3 ; \n private static final int MAX_SCROLLING_DURATION = NUMBER4 ; SINGLE \n private static final int MIN_DISTANCE_FOR_FLING = NUMBER5 ; SINGLE \n private static final Interpolator sMenuInterpolator = new Interpolator ( ) {", "msg_token": "Adjusted high velocity"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class PgpSignatoryFactory { \n + public class PgpSignatoryFactory extends GroovyObjectSupport { \n \n private static final String [ ] PROPERTIES = new String [ ] { STRING0 , STRING1 , STRING2 } ;", "msg_token": "Add missing GroovyObjectSupport to PgpSignatoryFactory"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n class ASERoutineDefinition extends AbstractRoutineDefinition { \n \n public ASERoutineDefinition ( SchemaDefinition schema , String name , String dataType , Number length , Number precision , Number scale ) {", "msg_token": "Fixed some warnings"} {"diff": " public class Config \n @ documented \n public static final String RELATIONSHIP_AUTO_INDEXING = STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ documented \n public static final String LUCENE_SEARCHER_CACHE_SIZE = STRING1 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ documented \n public static final String LUCENE_WRITER_CACHE_SIZE = STRING2 ; \n \n static final String LOAD_EXTENSIONS = STRING3 ;", "msg_token": "Added documentation for the two lucene cache parameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OStorageRemote extends OStorageAbstract implements OStorageProxy { \n \n protected final List < String > serverURLs = new ArrayList < String > ( ) ; \n private OCluster [ ] clusters = new OCluster [ NUMBER0 ] ; \n - protected final Map < String , OCluster > clusterMap = new HashMap < String , OCluster > ( ) ; \n + protected final Map < String , OCluster > clusterMap = new ConcurrentHashMap < String , OCluster > ( ) ; \n private int defaultClusterId ; \n private int minPool ; \n private int maxPool ;", "msg_token": "Fixed concurrency problem in OStorageRemote"} {"diff": " public class EmitterShapePropertyEditor implements PropertyEditor { \n + STRING0 \n + ( shape . getMin ( ) . x + shape . getLen ( ) . x ) \n + STRING0 \n - + ( shape . getMin ( ) . x + shape . getLen ( ) . y ) \n + + ( shape . getMin ( ) . y + shape . getLen ( ) . y ) \n + STRING0 \n - + ( shape . getMin ( ) . x + shape . getLen ( ) . z ) \n + + ( shape . getMin ( ) . z + shape . getLen ( ) . z ) \n + STRING1 ; \n } else if ( emitter instanceof EmitterPointShape ) { \n EmitterPointShape shape = ( EmitterPointShape ) emitter ;", "msg_token": "fixed another issue in EmitterBoxShapeEditor"} {"diff": " public class SpriteHelper \n \n public static int getFreeSlot ( BitSet slots ) \n { \n - return slots . nextSetBit ( NUMBER0 ) ; \n + int next = slots . nextSetBit ( NUMBER0 ) ; \n + slots . clear ( next ) ; \n + return next ; \n } \n \n }", "msg_token": "Actually mark the sprite as used when you allocate it"} {"diff": " public final class ModelManagerListener < K , M , U > implements ServletContextListener \n \n modelManager = loadManagerInstance ( ) ; \n new Thread ( LoggingCallable . log ( ( ) - > { \n + SINGLE \n + if ( modelManager == null ) { \n + return ; \n + } \n SINGLE \n try { \n modelManager . consume ( transformed , new Configuration ( ) ) ;", "msg_token": "Fix possible harmless NPE when serving layer shuts down immediately"} {"diff": " public class PyModuleType implements PyType { SINGLE \n if ( namesAlready != null ) { \n namesAlready . add ( name ) ; \n } \n + if ( PyUtil . isClassPrivateName ( name ) ) { \n + continue ; \n + } \n result . add ( LookupElementBuilder . create ( name ) . withIcon ( member . getIcon ( ) ) . withTypeText ( member . getShortType ( ) ) ) ; \n } \n }", "msg_token": "Don t complete class private names from module members providers"} {"diff": " class PackageManagerShellCommand extends ShellCommand { \n pw . println ( STRING0 ) ; \n pw . println ( STRING1 ) ; \n pw . println ( STRING2 ) ; \n + pw . println ( STRING3 ) ; \n + pw . println ( STRING4 ) ; \n + pw . println ( STRING5 ) ; \n pw . println ( STRING6 ) ; \n pw . println ( STRING7 ) ; \n pw . println ( STRING8 ) ;", "msg_token": "Add usage line for dump profiles"} {"diff": " public class ReaderPostDetailActivity extends WPActionBarActivity { \n private boolean mIsMoving ; \n private float mLastMotionY ; \n \n - private static final int MOVE_MIN_DIFF = NUMBER0 ; \n + private static final int MOVE_MIN_DIFF = NUMBER1 ; \n private static final long WEBVIEW_DELAY_MS = NUMBER2 ; \n \n COMMENT \n public class ReaderPostDetailActivity extends WPActionBarActivity { \n case MotionEvent . ACTION_MOVE : \n if ( mIsMoving ) { \n if ( yDiff < - MOVE_MIN_DIFF && ! mIsFullScreen && canScrollDown ( mListView ) ) { \n + SINGLE \n setIsFullScreen ( true ) ; \n return true ; \n } else if ( mIsFullScreen && ! canScrollUp ( mListView ) ) { \n + SINGLE \n + setIsFullScreen ( false ) ; \n + } else if ( mIsFullScreen && ! canScrollDown ( mListView ) ) { \n + SINGLE \n setIsFullScreen ( false ) ; \n } else if ( yDiff > MOVE_MIN_DIFF && mIsFullScreen ) { \n + SINGLE \n setIsFullScreen ( false ) ; \n return true ; \n }", "msg_token": "ActionBar now automatically appears once user scrolls to the bottom of reader post detail"} {"diff": " public class Texture implements PConstants { \n \n \n public void disposeSourceBuffer ( ) { \n - System . out . println ( STRING0 ) ; \n if ( usedBuffers == null ) return ; \n \n while ( NUMBER0 < usedBuffers . size ( ) ) { \n BufferData data = null ; \n try { \n data = usedBuffers . remove ( NUMBER0 ) ; \n - System . out . println ( STRING1 + data + STRING0 ) ; \n } catch ( NoSuchElementException ex ) { \n PGraphics . showWarning ( STRING2 ) ; \n } \n public class Capture extends PImage implements PConstants { \n SINGLE \n SINGLE \n SINGLE \n - System . out . println ( STRING3 ) ; \n natBuffer . dispose ( ) ; \n } \n natBuffer = buffer ; \n public class Movie extends PImage implements PConstants { \n SINGLE \n SINGLE \n SINGLE \n - System . out . println ( STRING3 ) ; \n natBuffer . dispose ( ) ; \n } \n natBuffer = buffer ;", "msg_token": "removed some debug messages"} {"diff": " public class CameraDevice implements android . hardware . camera2 . CameraDevice { \n @ override \n public void captureBurst ( List < CaptureRequest > requests , CaptureListener listener ) \n throws CameraAccessException { \n + if ( requests . isEmpty ( ) ) { \n + Log . w ( TAG , STRING0 ) ; \n + return ; \n + } \n SINGLE \n throw new UnsupportedOperationException ( STRING1 ) ; \n \n public class CameraDevice implements android . hardware . camera2 . CameraDevice { \n @ override \n public void setRepeatingBurst ( List < CaptureRequest > requests , CaptureListener listener ) \n throws CameraAccessException { \n + if ( requests . isEmpty ( ) ) { \n + Log . w ( TAG , STRING2 ) ; \n + return ; \n + } \n SINGLE \n throw new UnsupportedOperationException ( STRING1 ) ; \n }", "msg_token": "Send warning when burst request list is empty"} {"diff": " public abstract class Lockable < T extends Lockable < T > > extends Iced { \n _lockers = Arrays . copyOf ( lks , lks . length - NUMBER0 ) ; \n int j = NUMBER0 ; SINGLE \n for ( int i = NUMBER0 ; i < lks . length ; i ++ ) \n - if ( job_key == lks [ i ] || ( job_key != null && ! job_key . equals ( lks [ i ] ) ) ) \n - _lockers [ j ++ ] = lks [ i ] ; \n + if ( job_key != null && ! job_key . equals ( lks [ i ] ) || ( job_key == null && lks [ i ] != null ) ) { \n + _lockers [ j ++ ] = lks [ i ] ; \n + } \n assert j == lks . length - NUMBER0 ; SINGLE \n } \n assert ! is_locked ( job_key ) ;", "msg_token": "Fixed bug in Lockables when unlocking with a null key"} {"diff": " \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": "added missing license header"} {"diff": " public class MinecraftForge \n COMMENT \n public static ItemStack getItemForCart ( EntityMinecart cart ) \n { \n - if ( cart . getClass ( ) == EntityMinecart . class ) \n - { \n - return getItemForCart ( cart . getClass ( ) , cart . getMinecartType ( ) ) ; \n - } \n - return getItemForCart ( cart . getClass ( ) , NUMBER0 ) ; \n + return getItemForCart ( cart . getClass ( ) , cart . getMinecartType ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fixed a minor bug with the Minecart Dictionary"} {"diff": " public class HdfsFetcher implements FileFetcher { \n COMMENT \n COMMENT \n public static void main ( String [ ] args ) throws Exception { \n - if ( args . length != NUMBER0 ) \n + if ( args . length < NUMBER0 ) \n Utils . croak ( STRING0 + HdfsFetcher . class . getName ( ) \n + STRING1 ) ; \n String url = args [ NUMBER1 ] ; \n - String keytabLocation = args [ NUMBER0 ] ; \n - String proxyUser = args [ NUMBER2 ] ; \n + \n + String keytabLocation = STRING2 ; \n + String proxyUser = STRING2 ; \n + if ( args . length >= NUMBER3 ) { \n + keytabLocation = args [ NUMBER0 ] ; \n + proxyUser = args [ NUMBER2 ] ; \n + } \n + \n long maxBytesPerSec = NUMBER4 * NUMBER4 * NUMBER4 ; \n Path p = new Path ( url ) ;", "msg_token": "Fixed the main method params in HdfsFetcher"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n COMMENT \n COMMENT \n COMMENT \n - double calcOutlierThreshold ( Vec mse , double quantile ) { \n + public double calcOutlierThreshold ( Vec mse , double quantile ) { \n Frame mse_frame = new Frame ( Key . make ( ) , new String [ ] { STRING0 } , new Vec [ ] { mse } ) ; \n DKV . put ( mse_frame . _key , mse_frame ) ;", "msg_token": "Make calcOutlierThreshold public"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface EntityModel { \n COMMENT \n COMMENT \n COMMENT \n - Collection < Type < ? > > allTypes ( ) ; \n + Set < Type < ? > > allTypes ( ) ; \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n final class ImmutableEntityModel implements EntityModel { \n } \n \n @ override \n - public Collection < Type < ? > > allTypes ( ) { \n - return map . values ( ) ; \n + public Set < Type < ? > > allTypes ( ) { \n + return new LinkedHashSet < > ( map . values ( ) ) ; \n } \n \n @ override", "msg_token": "Fix duplicate types returned in EntityModel allTypes"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ConvertContextFactory { \n public static ConvertContext createConvertContext ( final DomElement element ) { \n return new ConvertContextImpl ( DomManagerImpl . getDomInvocationHandler ( element ) ) { \n + @ notnull \n @ override \n public DomElement getInvocationElement ( ) { \n return element ;", "msg_token": "add missing NotNull"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class SpanishVerbStripper { \n + public final class SpanishVerbStripper implements Serializable { \n \n SINGLE \n SINGLE \n public final class SpanishVerbStripper { \n return null ; \n } \n \n + private static final long serialVersionUID = - NUMBER0 ; \n }", "msg_token": "Make SpanishVerbStripper serializable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AndroidModuleBuilder extends JavaModuleBuilder { \n entry . setScope ( DependencyScope . PROVIDED ) ; \n } \n \n - StartupManager . getInstance ( project ) . runWhenProjectIsInitialized ( new Runnable ( ) { \n + StartupManager . getInstance ( project ) . runWhenProjectIsInitialized ( new DumbAwareRunnable ( ) { \n public void run ( ) { \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n public void run ( ) {", "msg_token": "use DumbAwareRunnable to create initial android structure"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \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", "msg_token": "Changed javadoc example to add an extension using the class generator backed way and to show nested extensions"} {"diff": " public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n private void requestAccessibilityFocusFromHover ( ) { \n if ( includeForAccessibility ( ) && isActionableForAccessibility ( ) ) { \n requestAccessibilityFocus ( ) ; \n - requestFocusNoSearch ( View . FOCUS_DOWN , null ) ; \n } else { \n if ( mParent != null ) { \n View nextFocus = mParent . findViewToTakeAccessibilityFocusFromHover ( this , this ) ; \n if ( nextFocus != null ) { \n nextFocus . requestAccessibilityFocus ( ) ; \n - nextFocus . requestFocusNoSearch ( View . FOCUS_DOWN , null ) ; \n } \n } \n }", "msg_token": "Removing leftover code to sync accessibility and input focus"} {"diff": " public class MissingTests extends ElasticsearchIntegrationTest { \n \n @ test \n public void unmapped ( ) throws Exception { \n + client ( ) . admin ( ) . cluster ( ) . prepareHealth ( STRING0 ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ; \n + \n SearchResponse response = client ( ) . prepareSearch ( STRING0 ) \n . addAggregation ( missing ( STRING1 ) . field ( STRING2 ) ) \n . execute ( ) . actionGet ( ) ; \n public class MissingTests extends ElasticsearchIntegrationTest { \n \n @ test \n public void partiallyUnmapped ( ) throws Exception { \n + client ( ) . admin ( ) . cluster ( ) . prepareHealth ( STRING0 ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ; \n + \n SearchResponse response = client ( ) . prepareSearch ( STRING3 , STRING0 ) \n . addAggregation ( missing ( STRING1 ) . field ( STRING2 ) ) \n . execute ( ) . actionGet ( ) ;", "msg_token": "added a waitForGreen condition for the unmapped tests on missing agg"} {"diff": " public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp \n } \n catch ( BeanCreationException ex ) { \n SINGLE \n - if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( STRING0 + ex ) ; \n + if ( logger . isWarnEnabled ( ) ) { \n + logger . warn ( STRING1 + ex ) ; \n } \n onSuppressedException ( ex ) ; \n return null ;", "msg_token": "AbstractBeanFactory logs bean creation exception on FactoryBean type check at warn level"} {"diff": " public final class ZXingMIDlet extends MIDlet { \n showOpenURL ( STRING0 , smsResult . getNumbers ( ) [ NUMBER0 ] , smsResult . getSMSURI ( ) ) ; \n } else if ( type . equals ( ParsedResultType . PRODUCT ) ) { \n ProductParsedResult productResult = ( ProductParsedResult ) result ; \n - String uri = STRING1 + productResult . getNormalizedProductID ( ) ; \n + String uri = STRING2 + \n + productResult . getNormalizedProductID ( ) + STRING3 ; \n showOpenURL ( STRING4 , productResult . getProductID ( ) , uri ) ; \n } else if ( type . equals ( ParsedResultType . TEL ) ) { \n TelParsedResult telResult = ( TelParsedResult ) result ;", "msg_token": "For consistency with android search Google"} {"diff": " public class AudioNode extends Node implements AudioSource { \n protected transient AudioData data = null ; \n protected transient volatile AudioSource . Status status = AudioSource . Status . Stopped ; \n protected transient volatile int channel = - NUMBER0 ; \n - protected Vector3f previousWorldTranslation = Vector3f . NAN ; \n + protected Vector3f previousWorldTranslation = Vector3f . NAN . clone ( ) ; \n protected Vector3f velocity = new Vector3f ( ) ; \n protected boolean reverbEnabled = false ; \n protected float maxDistance = NUMBER1 ; SINGLE", "msg_token": "Fixed an issue where Vector3f NAN constant reference was assigned to an attribute instead of being cloned in AudioNode"} {"diff": " public class AetherGrapeEngine implements GrapeEngine { \n . getManagedDependencies ( ) ) ; \n \n DependencyRequest dependencyRequest = new DependencyRequest ( collectRequest , \n - DependencyFilterUtils . classpathFilter ( JavaScopes . COMPILE ) ) ; \n + DependencyFilterUtils . classpathFilter ( JavaScopes . COMPILE , \n + JavaScopes . RUNTIME ) ) ; \n \n DependencyResult dependencyResult = this . repositorySystem \n . resolveDependencies ( this . session , dependencyRequest ) ;", "msg_token": "Add RUNTME scope to transitive dependencies in CLI"} {"diff": " public class PolygonRegion { \n this . triangles = triangles ; \n \n float [ ] textureCoords = this . textureCoords = new float [ vertices . length ] ; \n - float u = region . u , v = region . u ; \n + float u = region . u , v = region . v ; \n float uvWidth = region . u2 - u ; \n float uvHeight = region . v2 - v ; \n int width = region . regionWidth ;", "msg_token": "fix a typo in PolygonRegion"} {"diff": " public class ServerImpl implements Server { \n \n @ override \n public void messageRead ( final InputStream message ) { \n - if ( cancelled ) { \n - return ; \n - } \n - \n try { \n + if ( cancelled ) { \n + return ; \n + } \n + \n listener . onPayload ( methodDef . parseRequest ( message ) ) ; \n } finally { \n try {", "msg_token": "Make sure to close InputStream even if cancelled"} {"diff": " package NAMESPACE ; \n public enum Backend { \n POSTGRES , \n GREENPLUM ; \n - \n - private final Backend baseBackend ; \n - \n - private Backend ( ) { \n - this . baseBackend = this ; \n - } \n - \n - private Backend ( Backend baseBackend ) { \n - this . baseBackend = baseBackend ; \n - } \n - \n - public Backend baseBackend ( ) { \n - return baseBackend ; \n - } \n } \n package NAMESPACE ; \n \n public enum Protocol { \n MONGO , \n - MONGO_REPL_SET ( MONGO ) ; \n - \n - private final Protocol baseProtocol ; \n - \n - private Protocol ( ) { \n - this . baseProtocol = this ; \n - } \n - \n - private Protocol ( Protocol baseProtocol ) { \n - this . baseProtocol = baseProtocol ; \n - } \n - \n - public Protocol baseProtocol ( ) { \n - return baseProtocol ; \n - } \n + MONGO_REPL_SET ; \n }", "msg_token": "Removed some unused code on Backend and Protocol integration test enums"} {"diff": " public class NonUniqueLuceneIndexSampler extends LuceneIndexSampler \n throw new RuntimeException ( e ) ; \n } \n } \n - Thread . dumpStack ( ) ; \n \n return sampler . result ( indexReader . numDocs ( ) ) ; \n }", "msg_token": "Removed debug code"} {"diff": " public class SSTableWriter extends SSTable \n while ( rowPosition < dfile . length ( ) ) \n { \n key = SSTableReader . decodeKey ( StorageService . getPartitioner ( ) , desc , ByteBufferUtil . readWithShortLength ( dfile ) ) ; \n + \n + SINGLE \n + SINGLE \n + cfs . invalidateCachedRow ( key ) ; \n + \n iwriter . afterAppend ( key , rowPosition ) ; \n \n long dataSize = SSTableReader . readRowSize ( dfile , desc ) ;", "msg_token": "Invalidate cache for streamed rows"} {"diff": " public class PrivacyService { \n } \n } ; \n mHandler . postDelayed ( rProgress , NUMBER0 ) ; \n + } catch ( NameNotFoundException ex ) { \n + latch . countDown ( ) ; \n } catch ( Throwable ex ) { \n Util . bug ( null , ex ) ; \n latch . countDown ( ) ;", "msg_token": "Catch NameNotFoundException support info"} {"diff": " import NAMESPACE ; \n public abstract class Joint { \n World world ; \n org . jbox2d . dynamics . joints . Joint joint ; \n + Object userData ; \n JointEdge jointEdgeA ; \n JointEdge jointEdgeB ; \n \n public abstract class Joint { \n return joint . getReactionTorque ( inv_dt ) ; \n } \n \n + COMMENT \n + public Object getUserData ( ) { \n + return userData ; \n + } \n + \n + COMMENT \n + public void setUserData ( Object userData ) { \n + this . userData = userData ; \n + } \n + \n COMMENT \n public boolean isActive ( ) { \n return joint . IsActive ( ) ; \n public final class World implements Disposable { \n COMMENT \n COMMENT \n public void destroyJoint ( Joint joint ) { \n + joint . setUserData ( null ) ; \n world . destroyJoint ( joint . joint ) ; \n joints . remove ( joint . joint ) ; \n }", "msg_token": "Updated gwt backend emulation with Joint user data capability"} {"diff": " public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider { \n secure . add ( clientFilter ) ; \n secure . add ( new WebSocketClientFilter ( ) ) ; \n \n - \n + clientTransport . getAsyncQueueIO ( ) . getWriter ( ) \n + . setMaxPendingBytesPerConnection ( AUTO_SIZE ) ; \n if ( providerConfig != null ) { \n final TransportCustomizer customizer = ( TransportCustomizer ) \n providerConfig . getProperty ( Property . TRANSPORT_CUSTOMIZER ) ; \n public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider { \n . setClientSideNegotiator ( clientTransport , pn ) ; \n } \n \n - SINGLE \n - clientTransport . getAsyncQueueIO ( ) . getWriter ( ) \n - . setMaxPendingBytesPerConnection ( AUTO_SIZE ) ; \n - \n SINGLE \n SINGLE \n FilterChainBuilder nonSecure = FilterChainBuilder . stateless ( ) ;", "msg_token": "Call setMaxPendingBytesPerConnection at the right time"} {"diff": " public class DexBackedMethodImplementation implements MethodImplementation { \n SINGLE \n int offset = reader . getOffset ( ) ; \n if ( offset > endOffset || offset < NUMBER0 ) { \n - throw new ExceptionWithContext ( STRING0 ) ; \n + throw new ExceptionWithContext ( STRING1 , method ) ; \n } \n return instruction ; \n }", "msg_token": "Improve the error message for a truncated last instruction"} {"diff": " public class PackageNamesLoader \n { \n if ( aQName . equals ( STRING0 ) ) { \n SINGLE \n - final String name = ( String ) aAtts . getValue ( STRING1 ) ; \n + final String name = aAtts . getValue ( STRING1 ) ; \n if ( name == null ) { \n throw new SAXException ( STRING2 ) ; \n }", "msg_token": "removed redundant type cast the magic of InelliJ IDEA"} {"diff": " public class TaskServlet extends HttpServlet { \n } \n \n public void executeTask ( ImmutableMultimap < String , String > params , PrintWriter output ) throws Exception { \n - try { \n - task . execute ( params , output ) ; \n - } catch ( Exception e ) { \n - throw e ; \n - } \n + task . execute ( params , output ) ; \n } \n }", "msg_token": "Remove redundant try catch"} {"diff": " public class SherlockFragmentActivity extends Watson implements OnActionModeStar \n \n @ override \n public final boolean onMenuItemSelected ( int featureId , android . view . MenuItem item ) { \n - if ( BuildConfig . DEBUG ) Log . d ( TAG , STRING0 + featureId + STRING1 + item ) ; \n + if ( BuildConfig . DEBUG ) Log . d ( TAG , STRING0 + featureId + STRING1 + item . getTitle ( ) ) ; \n \n if ( featureId == Window . FEATURE_OPTIONS_PANEL && ! mIgnoreNativeSelected ) { \n mIgnoreNativeSelected = true ;", "msg_token": "Fixed MenuItem NPE"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class PageCacheTest < T extends RunnablePageCache > \n } \n } \n \n - @ ignore ( STRING0 ) \n @ test ( timeout = NUMBER0 ) \n public void pageCacheMustRemainInternallyConsistentWhenGettingRandomFailures ( ) throws Exception \n {", "msg_token": "Reenable the advesarial FSA based page cache test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class XML implements Serializable {", "msg_token": "XML object now cross references loadXML ref docs"} {"diff": " public class SearchingClassLoader extends ClassLoader { \n SINGLE \n addIfNewElement ( loaders , currentThread ( ) . getContextClassLoader ( ) ) ; \n \n - addIfNewElement ( loaders , ClassLoader . getSystemClassLoader ( ) ) ; \n + SINGLE \n + SINGLE \n \n return combine ( loaders ) ; \n }", "msg_token": "fixed the code for Spring in container tests"} {"diff": " public final class ActivityThread { \n } \n \n VMRuntime . registerAppInfo ( profileFile . getAbsolutePath ( ) , appInfo . dataDir , \n - codePaths . toArray ( new String [ codePaths . size ( ) ] ) ) ; \n + codePaths . toArray ( new String [ codePaths . size ( ) ] ) , null ) ; \n } \n \n COMMENT", "msg_token": "Fix VMRuntime registerAppInfo usage"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class InternalEngineTests extends ElasticsearchLuceneTestCase { \n public void testIndexWriterIFDInfoStream ( ) { \n MockAppender mockAppender = new MockAppender ( ) ; \n \n - Logger iwIFDLogger = Logger . getLogger ( STRING0 ) ; \n + SINGLE \n + Logger iwIFDLogger = LogManager . exists ( STRING1 ) ; \n + if ( iwIFDLogger == null ) { \n + SINGLE \n + iwIFDLogger = LogManager . exists ( STRING0 ) ; \n + assertNotNull ( iwIFDLogger ) ; \n + } \n + \n Level savedLevel = iwIFDLogger . getLevel ( ) ; \n iwIFDLogger . addAppender ( mockAppender ) ; \n iwIFDLogger . setLevel ( Level . DEBUG ) ;", "msg_token": "fix this test to work in IntelliJ"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MultiUserChatServiceImpl implements Component , MultiUserChatService \n \n private void removeChatRoom ( String roomName , boolean notify ) { \n MUCRoom room = rooms . remove ( roomName ) ; \n + Log . info ( STRING0 + roomName + STRING1 + room . getClass ( ) . getName ( ) ) ; \n + if ( room instanceof LocalMUCRoom ) \n + GroupEventDispatcher . removeListener ( ( LocalMUCRoom ) room ) ; \n if ( room != null ) { \n totalChatTime += room . getChatLength ( ) ; \n if ( notify ) {", "msg_token": "solve the memory leak problems which is caused by add LocalMUCRoom objects to GroupEventDispatcher but never remove it"} {"diff": " public class ProjectManagerImpl extends ProjectManagerEx implements Disposable { \n project = loadProjectWithProgress ( filePath ) ; \n if ( project == null ) return null ; \n } \n + catch ( ProcessCanceledException e ) { \n + return null ; \n + } \n catch ( Throwable t ) { \n LOG . info ( t ) ; \n throw new IOException ( t ) ;", "msg_token": "cancel project loading"} {"diff": " public class CudaLoader { \n m_libCudas = new ArrayList < String > ( ) ; \n m_rootbeers = new ArrayList < String > ( ) ; \n \n - if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) { \n + if ( STRING0 . equals ( System . getProperty ( STRING1 ) ) ) { \n m_libCudas . add ( STRING2 ) ; \n m_rootbeers . add ( STRING3 ) ; \n extract ( STRING3 ) ;", "msg_token": "Fix missing quote"} {"diff": " public class DirectoryIndexImpl extends DirectoryIndex implements ProjectCompone \n if ( info == null ) { \n info = new DirectoryInfo ( ) ; \n myDirToInfoMap . put ( dir , info ) ; \n - putInfoById ( ( ( NewVirtualFile ) dir ) . getId ( ) , info ) ; \n + if ( dir instanceof NewVirtualFile ) { \n + SINGLE \n + putInfoById ( ( ( NewVirtualFile ) dir ) . getId ( ) , info ) ; \n + } \n } \n return info ; \n }", "msg_token": "do not track deprecated implementations of VirtualFile"} {"diff": " public class HttpServerManager { \n COMMENT \n public static class JettyLog implements Logger { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean debugEnabled = JiveGlobals . getBooleanProperty ( STRING0 ) ; \n + \n public boolean isDebugEnabled ( ) { \n - return Log . isDebugEnabled ( ) ; \n + return debugEnabled && Log . isDebugEnabled ( ) ; \n } \n \n public void setDebugEnabled ( boolean b ) {", "msg_token": "Don t enable Jetty debug logging by default"} {"diff": " ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener { \n SINGLE \n \n public static final int REQUEST_LOG_IN = NUMBER0 ; \n - private static final int REQUEST_VOICE_RECOG = NUMBER1 ; \n + private static final int REQUEST_VOICE_RECOG = NUMBER2 ; \n \n SINGLE \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class QuickAddBar extends LinearLayout { \n int prompt = R . string . voice_edit_title_prompt ; \n if ( Preferences . getBoolean ( R . string . p_voiceInputCreatesTask , false ) ) \n prompt = R . string . voice_create_prompt ; \n - voiceInputAssistant = new VoiceInputAssistant ( activity , \n + voiceInputAssistant = new VoiceInputAssistant ( fragment , \n voiceAddButton , quickAddBox ) ; \n voiceInputAssistant . configureMicrophoneButton ( prompt ) ;", "msg_token": "Fixed voice add bugs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NoPriorityByteDistributionBenchmark extends AbstractMicrobenchmark \n } \n \n @ override \n - public ChannelHandlerInvoker invoker ( ) { \n - throw new UnsupportedOperationException ( ) ; \n - } \n - \n - @ override \n public String name ( ) { \n throw new UnsupportedOperationException ( ) ; \n }", "msg_token": "Backport of benchmark broke build"} {"diff": " public class AudioManager { \n } \n if ( listener != null ) { \n Log . d ( TAG , STRING0 \n - + msg . what + STRING1 + msg . obj ) ; \n + + msg . arg1 + STRING1 + msg . obj ) ; \n listener . onAudioFocusChange ( msg . arg1 ) ; \n } \n break ;", "msg_token": "Fix audio focus logging"} {"diff": " Symbol . create ( STRING0 ) , STRING1 , \n Symbol . create ( STRING2 ) , STRING3 , \n Symbol . create ( STRING4 ) , STRING5 , \n Symbol . create ( STRING6 ) , STRING7 , \n + Symbol . create ( STRING8 ) , STRING9 , \n Symbol . create ( STRING10 ) , STRING11 , \n Symbol . create ( STRING12 ) , STRING13 , \n Symbol . create ( STRING14 ) , STRING15 ,", "msg_token": "added Comparable to default imports"} {"diff": " public class WPMainActivity extends AppCompatActivity { \n } \n \n private void moderateCommentOnActivityResult ( Intent data ) { \n + \n Note note = NotificationsTable . getNoteById ( StringUtils . notNullStr ( data . getStringExtra \n ( NotificationsListFragment . NOTE_MODERATE_ID_EXTRA ) ) ) ; \n + \n + if ( note == null ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return ; \n + } \n + \n CommentStatus status = CommentStatus . fromString ( data . getStringExtra ( \n NotificationsListFragment . NOTE_MODERATE_STATUS_EXTRA ) ) ; \n + \n NotificationsUtils . moderateCommentForNote ( note , status , findViewById ( R . id . root_view_main ) ) ; \n }", "msg_token": "added null check to prevent NPE"} {"diff": " public class InternalEngine extends AbstractIndexShardComponent implements Engin \n return ; \n } \n try { \n - logger . warn ( STRING0 , reason , failure ) ; \n + logger . warn ( STRING0 , failure , reason ) ; \n SINGLE \n failedEngine = failure ; \n for ( FailedEngineListener listener : failedEngineListeners ) {", "msg_token": "Fix failed engine exception logging"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class JedisPoolConfig implements Serializable { \n - public static final String DEFAULT_HOST = STRING0 ; \n \n private String host ; \n private int port ; \n public class JedisPoolConfig implements Serializable { \n COMMENT \n COMMENT \n public static class Builder { \n - private String host = DEFAULT_HOST ; \n + private String host = Protocol . DEFAULT_HOST ; \n private int port = Protocol . DEFAULT_PORT ; \n private int timeout = Protocol . DEFAULT_TIMEOUT ; \n private int database = Protocol . DEFAULT_DATABASE ;", "msg_token": "using Jedis Protocol DEFAULT_HOST to replace DEFAULT_HOST"} {"diff": " public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData \n if ( className == null ) \n className = ancestorClassName ; \n \n - final OClass cls = db . getMetadata ( ) . getSchema ( ) . getOrCreateClass ( className , schema . getClass ( ancestorClassName ) ) ; \n + final OClass cls = schema . getOrCreateClass ( className , schema . getClass ( ancestorClassName ) ) ; \n final OProperty property = cls . getProperty ( key ) ; \n if ( property != null ) \n keyType = property . getType ( ) ;", "msg_token": "use the schema that was looked up previously"} {"diff": " public class TaskListActivity extends AstridActivity implements MainMenuListener \n if ( newList != null ) { \n onFilterItemClicked ( newList ) ; SINGLE \n FilterListFragment fla = getFilterListFragment ( ) ; \n - if ( fla != null ) \n + if ( fla != null && getFragmentLayout ( ) != LAYOUT_SINGLE ) \n fla . clear ( ) ; \n } \n } else if ( requestCode == TaskListFragment . ACTIVITY_EDIT_TASK && resultCode != Activity . RESULT_CANCELED ) {", "msg_token": "Fixed bug with activity shown for new lists"} {"diff": " public class EnglishGrammaticalRelations { \n SINGLE \n STRING0 , \n STRING1 , SINGLE \n - STRING2 , SINGLE \n + STRING3 , SINGLE \n SINGLE \n STRING4 , \n SINGLE \n public class EnglishGrammaticalStructureTest extends TestCase { \n STRING5 , \n STRING6 , \n STRING7 , \n + STRING8 , \n SINGLE \n SINGLE \n } ; \n public class EnglishGrammaticalStructureTest extends TestCase { \n STRING9 + \n STRING10 + \n STRING11 , \n + STRING12 + \n + STRING13 + \n + STRING14 + \n + STRING15 + \n + STRING16 + \n + STRING17 + \n + STRING18 + \n + STRING19 + \n + STRING20 + \n + STRING21 + \n + STRING22 + \n + STRING23 , \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Restore ccomp for comparative standard in ADJP"} {"diff": " class ClientConnection extends ConnectionBase { \n } \n \n @ override \n + public void channelInactive ( ChannelHandlerContext ctx ) throws Exception { \n + super . channelInactive ( ctx ) ; \n + context . execute ( ctx . channel ( ) . eventLoop ( ) , new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + if ( ! handshaking ) { \n + client . handleException ( new WebSocketHandshakeException ( STRING0 ) ) ; \n + } \n + } \n + } ) ; \n + } \n + \n + @ override \n public void channelRead ( final ChannelHandlerContext ctx , final Object msg ) throws Exception { \n context . execute ( ctx . channel ( ) . eventLoop ( ) , new Runnable ( ) { \n public void run ( ) { \n class ClientConnection extends ConnectionBase { \n } \n } ) ; \n \n + \n } \n \n private void handshakeComplete ( ChannelHandlerContext ctx , FullHttpResponse response ) {", "msg_token": "Correctly notify exceptionHandler if a channel is closed during the websocket handshake"} {"diff": " public abstract class TomcatBaseTest extends TestCase { \n STRING0 ) ; \n \n tempDir = new File ( System . getProperty ( STRING1 , STRING2 ) ) ; \n - if ( ! tempDir . mkdir ( ) ) { \n + if ( ! tempDir . exists ( ) && ! tempDir . mkdir ( ) ) { \n fail ( STRING3 ) ; \n } \n \n File appBase = new File ( tempDir , STRING4 ) ; \n - if ( ! appBase . mkdir ( ) ) { \n + if ( ! appBase . exists ( ) && ! appBase . mkdir ( ) ) { \n fail ( STRING5 ) ; \n }", "msg_token": "Stop the tests failing"} {"diff": " public final class Runtime { \n paths . add ( STRING0 ) ; \n \n if ( Bro . IS_DARWIN ) { \n + paths . add ( STRING1 ) ; \n String dyLdRootPath = System . getenv ( STRING2 ) ; \n if ( dyLdRootPath != null ) { \n List < String > oldSearchPaths = new ArrayList < String > ( paths ) ;", "msg_token": "Added usr lib system to library search paths on Darwin"} {"diff": " public class MaterialEditText extends EditText { \n } else { \n getLabelFocusAnimator ( ) . reverse ( ) ; \n } \n - if ( outerFocusChangeListener != null ) { \n - outerFocusChangeListener . onFocusChange ( v , hasFocus ) ; \n - } \n } \n - } \n + if ( outerFocusChangeListener != null ) { \n + outerFocusChangeListener . onFocusChange ( v , hasFocus ) ; \n + } \n + } \n } ; \n super . setOnFocusChangeListener ( innerFocusChangeListener ) ; \n }", "msg_token": "Moved outerFocusChangeListener check outside the floatingLabelEnabled check so a focus listener can be added without having to set a label"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SQLCompletionProposal implements ICompletionProposal , ICompletionPr \n @ override \n public void apply ( IDocument document ) { \n try { \n + boolean insertTrailingSpace = true ; \n + if ( object instanceof DBSObjectContainer ) { \n + SINGLE \n + } else { \n + int docLen = document . getLength ( ) ; \n + if ( docLen <= replacementOffset + NUMBER0 ) { \n + insertTrailingSpace = false ; \n + } else { \n + insertTrailingSpace = document . getChar ( replacementOffset + NUMBER1 ) != STRING0 ; \n + } \n + if ( insertTrailingSpace ) { \n + replacementString += STRING1 ; \n + } \n + cursorPosition ++ ; \n + } \n document . replace ( replacementOffset , replacementLength , replacementString ) ; \n } catch ( BadLocationException e ) { \n SINGLE", "msg_token": "add trailing space but not after schemas catalogs"} {"diff": " public class Compiler extends AbstractCompiler { \n CheckLevel . OFF ) ; \n } \n \n - if ( options . checkGlobalThisLevel . isOn ( ) ) { \n + if ( options . checkGlobalThisLevel . isOn ( ) && \n + ! options . disables ( DiagnosticGroups . GLOBAL_THIS ) ) { \n options . setWarningLevel ( \n DiagnosticGroups . GLOBAL_THIS , \n options . checkGlobalThisLevel ) ; \n public class CommandLineRunnerTest extends TestCase { \n test ( STRING0 , CheckGlobalThis . GLOBAL_THIS ) ; \n } \n \n + public void testCheckGlobalThisOff ( ) { \n + args . add ( STRING1 ) ; \n + args . add ( STRING2 ) ; \n + testSame ( STRING0 ) ; \n + } \n + \n public void testTypeCheckingOffByDefault ( ) { \n test ( STRING3 , \n STRING4 ) ;", "msg_token": "Fix order of operations of GLOBAL_THIS options"} {"diff": " public class PeerEurekaNode { \n for ( ReplicationTask task : tasks ) { \n boolean done = true ; \n do { \n - try { \n + done = true ; \n + try { \n Object [ ] args = { \n task . getAppName ( ) , \n task . getId ( ) , \n public class PeerEurekaNode { \n logger . warn ( \n STRING0 , \n args ) ; \n + \n continue ; \n } \n task . execute ( ) ;", "msg_token": "Fix a run away loop"} {"diff": " public class TestCassandraDistributed \n } \n \n @ override \n + public void testCreateTableAsSelect ( ) \n + throws Exception \n + { \n + SINGLE \n + } \n + \n + @ override \n public void testDelete ( ) \n throws Exception \n {", "msg_token": "Disable testCreateTableAsSelect for Cassandra"} {"diff": " public class MysqlStorageEngine extends AbstractStorageEngine < ByteArray , byte [ ] , \n \n @ override \n public void truncate ( ) { \n - Connection conn = null ; \n - PreparedStatement stmt = null ; \n - String select = STRING0 + getName ( ) ; \n - try { \n - conn = datasource . getConnection ( ) ; \n - stmt = conn . prepareStatement ( select ) ; \n - stmt . executeUpdate ( ) ; \n - } catch ( SQLException e ) { \n - throw new PersistenceFailureException ( STRING1 , e ) ; \n - } finally { \n - tryClose ( stmt ) ; \n - tryClose ( conn ) ; \n - } \n + execute ( STRING0 + getName ( ) ) ; \n } \n \n @ override", "msg_token": "Remove duplicated code"} {"diff": " public class ConcurrencyWithSchedulersDemoFragment \n @ override \n public void onActivityCreated ( @ nullable Bundle savedInstanceState ) { \n super . onActivityCreated ( savedInstanceState ) ; \n - _setupLogAdapter ( ) ; \n + _setupLogger ( ) ; \n } \n \n @ override \n public class ConcurrencyWithSchedulersDemoFragment \n return layout ; \n } \n \n - private void _setupLogAdapter ( ) { \n + private void _setupLogger ( ) { \n _logs = new ArrayList < String > ( ) ; \n _adapter = new LogAdapter ( getActivity ( ) , new ArrayList < String > ( ) ) ; \n _logsList . setAdapter ( _adapter ) ;", "msg_token": "rename setuplogadapter to just setuplogger"} {"diff": " public class NettyAsyncHttpProviderConfig implements AsyncHttpProviderConfig < Cha \n this . nettyTimer = nettyTimer ; \n } \n \n - public long getHandshakeTimeoutInMillis ( ) { \n + public long getHandshakeTimeout ( ) { \n return handshakeTimeoutInMillis ; \n } \n \n public class ChannelManager { \n private final Bootstrap webSocketBootstrap ; \n private final Bootstrap secureWebSocketBootstrap ; \n \n - private final long handshakeTimeoutInMillis ; \n + private final long handshakeTimeout ; \n \n private final ChannelPool channelPool ; \n private final boolean maxConnectionsEnabled ; \n public class ChannelManager { \n channel2KeyPool = null ; \n } \n \n - handshakeTimeoutInMillis = nettyConfig . getHandshakeTimeoutInMillis ( ) ; \n + handshakeTimeout = nettyConfig . getHandshakeTimeout ( ) ; \n \n SINGLE \n allowReleaseEventLoopGroup = nettyConfig . getEventLoopGroup ( ) == null ; \n public class ChannelManager { \n } \n \n SslHandler sslHandler = new SslHandler ( sslEngine ) ; \n - if ( handshakeTimeoutInMillis > NUMBER0 ) \n - sslHandler . setHandshakeTimeoutMillis ( handshakeTimeoutInMillis ) ; \n + if ( handshakeTimeout > NUMBER0 ) \n + sslHandler . setHandshakeTimeoutMillis ( handshakeTimeout ) ; \n \n return sslHandler ; \n }", "msg_token": "Rename handshakeTimeoutInMillis into handshakeTimeout"} {"diff": " public abstract class ClientCall < ReqT , RespT > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ServerCall < RespT > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ServerCall < RespT > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract void close ( Status status , Metadata trailers ) ;", "msg_token": "Make thread safety ownership of Metadata explicit"} {"diff": " public class SimpleWebServer extends NanoHTTPD { \n } \n \n SINGLE \n - if ( uri . startsWith ( STRING0 ) || uri . endsWith ( STRING0 ) || uri . contains ( STRING1 ) ) { \n + if ( uri . contains ( STRING1 ) ) { \n return getForbiddenResponse ( STRING2 ) ; \n }", "msg_token": "Removed non generic hard coded path test"} {"diff": " public class LuceneQuery implements SimpleQuery < LuceneQuery > , SimpleProjectable < \n \n @ override \n public long countDistinct ( ) { \n - queryMixin . getMetadata ( ) . setDistinct ( true ) ; \n return count ( ) ; \n } \n \n public class LuceneQuery implements SimpleQuery < LuceneQuery > , SimpleProjectable < \n \n @ override \n public List < Document > listDistinct ( ) { \n - queryMixin . getMetadata ( ) . setDistinct ( true ) ; \n return list ( ) ; \n } \n \n @ override \n public SearchResults < Document > listDistinctResults ( ) { \n - queryMixin . getMetadata ( ) . setDistinct ( true ) ; \n return listResults ( ) ; \n } \n \n @ override \n public SearchResults < Document > listResults ( ) { \n - SINGLE \n - return null ; \n + SINGLE \n + throw new UnsupportedOperationException ( ) ; \n } \n \n @ override", "msg_token": "fixed null return"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class GroovyModelDsl implements ModelDsl { \n + public class GroovyModelDsl extends GroovyObjectSupport implements ModelDsl { \n \n private final ModelPath modelPath ; \n private final ModelRules modelRules ;", "msg_token": "GroovyModelDsl must implement GroovyObject in order to get correct dynamic dispatch during nested closures"} {"diff": " public class CatalogResource extends JaxRsResourceBase { \n \n @ timed \n @ post \n - @ produces ( APPLICATION_XML ) \n @ consumes ( APPLICATION_XML ) \n @ apioperation ( value = STRING0 ) \n @ apiresponses ( value = { } ) \n public class OverdueResource extends JaxRsResourceBase { \n \n @ timed \n @ post \n - @ produces ( APPLICATION_XML ) \n @ consumes ( APPLICATION_XML ) \n - @ apioperation ( value = STRING0 ) \n + @ apioperation ( value = STRING1 ) \n @ apiresponses ( value = { } ) \n public Response uploadOverdueConfigXml ( final String overdueXML , \n @ headerparam ( HDR_CREATED_BY ) final String createdBy ,", "msg_token": "remove unnecessary Produces annotations"} {"diff": " public abstract class AbstractAdapter < Item extends IItem > extends RecyclerView . A \n COMMENT \n COMMENT \n COMMENT \n - public AbstractAdapter < Item > wrap ( FastAdapter < Item > fastAdapter ) { \n + public AbstractAdapter wrap ( FastAdapter fastAdapter ) { \n SINGLE \n this . mFastAdapter = fastAdapter ; \n this . mFastAdapter . registerAdapter ( this ) ; \n public abstract class AbstractAdapter < Item extends IItem > extends RecyclerView . A \n COMMENT \n COMMENT \n COMMENT \n - public AbstractAdapter < Item > wrap ( IAdapter < Item > abstractAdapter ) { \n + public AbstractAdapter wrap ( IAdapter abstractAdapter ) { \n SINGLE \n this . mFastAdapter = abstractAdapter . getFastAdapter ( ) ; \n this . mFastAdapter . registerAdapter ( this ) ;", "msg_token": "remove the type from the wrap method as it should be possible to have different adapters with different types"} {"diff": " public class MetricsUtils { \n public static File getCsvLogDir ( Map stormConf ) { \n String csvMetricsLogDirectory = Utils . getString ( stormConf . get ( Config . STORM_DAEMON_METRICS_REPORTER_CSV_LOG_DIR ) , null ) ; \n if ( csvMetricsLogDirectory == null ) { \n - csvMetricsLogDirectory = ConfigUtils . absoluteHealthCheckDir ( stormConf ) ; \n + csvMetricsLogDirectory = ConfigUtils . absoluteStormLocalDir ( stormConf ) ; \n csvMetricsLogDirectory = csvMetricsLogDirectory + ConfigUtils . FILE_SEPARATOR + STRING0 ; \n } \n File csvMetricsDir = new File ( csvMetricsLogDirectory ) ;", "msg_token": "Fixing MetricsUtils csv directory location"} {"diff": " public abstract class FailureDetectorPerformanceTest { \n + failureDetectorConfig . getThresholdInterval ( ) ) \n . withRequiredArg ( ) \n . ofType ( Long . class ) ; \n + parser . accepts ( STRING0 , STRING1 ) ; \n \n OptionSet options = parser . parse ( args ) ;", "msg_token": "Added a help option for the tests"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UndertowJSRWebSocketDeploymentProcessor implements DeploymentUnitPr \n if ( filters == null ) { \n metaData . getMergedJBossWebMetaData ( ) . setFilters ( filters = new FiltersMetaData ( ) ) ; \n } \n - FilterMetaData filterMetaData = new FilterMetaData ( ) ; \n - filterMetaData . setAsyncSupported ( true ) ; \n - filterMetaData . setFilterClass ( JsrWebSocketFilter . class . getName ( ) ) ; \n - filterMetaData . setName ( FILTER_NAME ) ; \n - filters . add ( filterMetaData ) ; \n - \n List < FilterMappingMetaData > mappings = metaData . getMergedJBossWebMetaData ( ) . getFilterMappings ( ) ; \n if ( mappings == null ) { \n metaData . getMergedJBossWebMetaData ( ) . setFilterMappings ( mappings = new ArrayList < > ( ) ) ;", "msg_token": "Don t register websocket filter twice"} {"diff": " public class PodDBAdapter { \n + KEY_FLATTR_STATUS + STRING0 \n + KEY_USERNAME + STRING1 \n + KEY_PASSWORD + STRING1 \n - + KEY_INCLUDE_FILTER + STRING1 \n - + KEY_EXCLUDE_FILTER + STRING1 \n + + KEY_INCLUDE_FILTER + STRING2 \n + + KEY_EXCLUDE_FILTER + STRING2 \n + KEY_IS_PAGED + STRING3 \n + KEY_NEXT_PAGE_LINK + STRING1 \n + KEY_HIDE + STRING1", "msg_token": "provide default filter value"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestMapper extends TestBase { \n String text ; \n } \n \n - @ test \n + @ test @ ignore ( STRING0 ) \n public void SingleLookup ( ) throws Exception { \n final A a = new A ( ) ; \n HoldsMultipleA holder = new HoldsMultipleA ( ) ;", "msg_token": "disable this test for now"} {"diff": " public class RelationSplitter { \n } \n } \n \n - \n - private static class FieldReplacingCtx { \n - Map < Symbol , Field > fieldMap ; \n - \n - public FieldReplacingCtx ( Map < Symbol , Field > fieldMap ) { \n - this . fieldMap = fieldMap ; \n - } \n - \n - public Field get ( Symbol symbol ) { \n - return fieldMap . get ( symbol ) ; \n - } \n - } \n - \n public static class SplitContext { \n final AnalyzedRelation relation ; \n final List < Symbol > directSplit = new ArrayList < > ( ) ;", "msg_token": "remove unused FieldReplacingCtx"} {"diff": " public class FolderMessageList extends ExpandableListActivity \n } \n } \n \n - @ override \n public int compareTo ( MessageInfoHolder o ) \n { \n int ascender = ( sortAscending ? NUMBER0 : - NUMBER0 ) ;", "msg_token": "Removed Override flag from compareTo method since it isn t in the superclass"} {"diff": " public class Client implements IConnection { \n } \n \n } \n - } ) ; \n + } , STRING0 ) ; \n \n flushChecker . setDaemon ( true ) ; \n flushChecker . start ( ) ;", "msg_token": "add thread name for flush checker"} {"diff": " class EmbeddedEventLoop extends AbstractExecutorService implements \n } \n \n @ override \n - public EventLoop parent ( ) { \n - return null ; \n - } \n - \n - @ override \n public Unsafe unsafe ( ) { \n return this ; \n }", "msg_token": "Fix a compilation error"} {"diff": " public class ContextConfig \n } \n \n if ( sci == null ) { \n - break ; \n + continue ; \n } \n \n initializerClassMap . put ( sci , new HashSet < Class < ? > > ( ) ) ;", "msg_token": "Fix SCI when there is more than one JAR on the classpath"} {"diff": " public class ImageHelper { \n BitmapFactory . Options optBounds = new BitmapFactory . Options ( ) ; \n optBounds . inJustDecodeBounds = true ; \n \n - BitmapFactory . decodeFile ( filePath , optBounds ) ; \n + try { \n + BitmapFactory . decodeFile ( filePath , optBounds ) ; \n + } catch ( OutOfMemoryError e ) { \n + WPMobileStatsUtil . trackEventForSelfHostedAndWPCom ( WPMobileStatsUtil . StatsEventMediaOutOfMemory ) ; \n + return null ; \n + } \n \n SINGLE \n SINGLE \n public class ImageHelper { \n optActual . inSampleSize = scale ; \n \n SINGLE \n - Bitmap bmpResized = BitmapFactory . decodeFile ( filePath , optActual ) ; \n + Bitmap bmpResized ; \n + try { \n + bmpResized = BitmapFactory . decodeFile ( filePath , optActual ) ; \n + } catch ( OutOfMemoryError e ) { \n + WPMobileStatsUtil . trackEventForSelfHostedAndWPCom ( WPMobileStatsUtil . StatsEventMediaOutOfMemory ) ; \n + return null ; \n + } \n + \n if ( bmpResized == null ) \n return null ;", "msg_token": "Catch a few more OutOfMemoryErrors in createThumbnailFromUri wherever we are creating a Bitmap"} {"diff": " public class WebView extends AbsoluteLayout \n @ override \n protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { \n super . onScrollChanged ( l , t , oldl , oldt ) ; \n - sendOurVisibleRect ( ) ; \n + if ( ! mInOverScrollMode ) { \n + sendOurVisibleRect ( ) ; \n + SINGLE \n + SINGLE \n + int titleHeight = getTitleHeight ( ) ; \n + if ( Math . max ( titleHeight - t , NUMBER0 ) != Math . max ( titleHeight - oldt , NUMBER0 ) ) { \n + sendViewSizeZoom ( ) ; \n + } \n + } \n } \n \n @ override", "msg_token": "only send new visiblerect and size on onscrollchanged if we re not in overscroll mode"} {"diff": " public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n actionBar . setElevation ( FLOAT0 ) ; \n actionBar . setDisplayShowTitleEnabled ( true ) ; \n actionBar . setDisplayHomeAsUpEnabled ( true ) ; \n - actionBar . setTitle ( STRING0 ) ; \n + actionBar . setTitle ( R . string . themes ) ; \n \n mThemeBrowserFragment = ( ThemeBrowserFragment ) getFragmentManager ( ) . findFragmentById ( R . id . theme_tab_fragment ) ; \n }", "msg_token": "Setting Themes as title"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class Preferences { \n SINGLE \n \n \n - SINGLE \n + SINGLE \n \n deletePreviousBox = \n - new JCheckBox ( STRING0 ) ; \n + new JCheckBox ( STRING1 ) ; \n pain . add ( deletePreviousBox ) ; \n d = deletePreviousBox . getPreferredSize ( ) ; \n deletePreviousBox . setBounds ( left , top , d . width + NUMBER0 , d . height ) ;", "msg_token": "let s be more specific"} {"diff": " public class CxfRsComponentConfigurationAndDocumentationTest extends CamelTestSu \n String json = compConf . createParameterJsonSchema ( ) ; \n assertNotNull ( json ) ; \n \n - assertTrue ( json . contains ( STRING0 ) ) ; \n + assertTrue ( json . contains ( STRING1 ) ) ; \n assertTrue ( json . contains ( STRING2 ) ) ; \n }", "msg_token": "Fixed Test failure of CxfRsComponentConfigurationAndDocumentationTest"} {"diff": " public class DrawableCompat { \n @ override \n public int getLayoutDirection ( Drawable drawable ) { \n final int dir = DrawableCompatJellybeanMr1 . getLayoutDirection ( drawable ) ; \n - return dir < NUMBER0 ? dir : ViewCompat . LAYOUT_DIRECTION_LTR ; \n + return dir >= NUMBER0 ? dir : ViewCompat . LAYOUT_DIRECTION_LTR ; \n } \n }", "msg_token": "Fix DrawableCompat getLayoutDirection shim pre M"} {"diff": " public interface Try < T > extends CheckedMonad < T , Try < ? > > , ValueObject , Bivalent < T \n @ suppresswarnings ( STRING0 ) \n @ override \n default < U > Try < U > flatten ( ) { \n - try { \n - return ( ( Try < ? extends Try < U > > ) this ) . flatten ( CheckedFunction . identity ( ) ) ; \n - } catch ( Throwable x ) { \n - SINGLE \n - return ( Try < U > ) new Failure < > ( x ) ; \n - } \n + return ( ( Try < ? extends Try < U > > ) this ) . flatten ( CheckedFunction . identity ( ) ) ; \n } \n \n COMMENT", "msg_token": "removed dead code"} {"diff": " public class KafkaStarterUtils { \n SINGLE \n configureTopicDeletion ( configuration , true ) ; \n \n + SINGLE \n + configuration . put ( STRING0 , STRING1 ) ; \n + \n return configuration ; \n }", "msg_token": "Fix integration tests requiring Kafka when connected to VPN"} {"diff": " public final class Aggregations { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - public static < Key > Aggregation < Key , Object , Long > count ( ) { \n - return new AggregationAdapter ( new CountAggregation < Object , Object > ( ) ) ; \n + public static < Key , Value > Aggregation < Key , Value , Long > count ( ) { \n + return new AggregationAdapter ( new CountAggregation < Key , Value > ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fixed Types in Count Aggregations"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n \n + import NAMESPACE ; \n + \n import static NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Move WalletTransaction into the wallet package"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NotificationActivity extends TaskListFragment implements OnTimeSetListener { \n + public class NotificationFragment extends TaskListFragment implements OnTimeSetListener { \n \n SINGLE \n \n public class NotificationActivity extends TaskListFragment implements OnTimeSetL \n LinearLayout snoozePicker ; \n NumberPicker snoozeValue ; \n Spinner snoozeUnits ; \n - NotificationActivity parent ; \n + NotificationFragment parent ; \n \n - public SnoozeDialog ( NotificationActivity parent ) { \n + public SnoozeDialog ( NotificationFragment parent ) { \n super ( parent . getActivity ( ) ) ; \n this . parent = parent ; \n \n public class Notifications extends BroadcastReceiver { \n \n Intent notifyIntent = new Intent ( context , NotificationWrapperActivity . class ) ; \n notifyIntent . setAction ( STRING0 + id ) ; SINGLE \n - notifyIntent . putExtra ( NotificationActivity . TOKEN_ID , id ) ; \n + notifyIntent . putExtra ( NotificationFragment . TOKEN_ID , id ) ; \n notifyIntent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_MULTIPLE_TASK ) ; \n notifyIntent . putExtra ( TaskListFragment . TOKEN_SOURCE , Constants . SOURCE_NOTIFICATION ) ;", "msg_token": "Renamed another activity to fragment"} {"diff": " public abstract class AbstractInvocationFuture < V > implements InternalCompletable \n for ( ; ; ) { \n final Object oldState = state ; \n if ( isDone ( oldState ) ) { \n - SINGLE \n - SINGLE \n - logger . warning ( STRING0 + invocationToString ( ) \n - + STRING1 + getState ( ) + STRING2 + value ) ; \n - \n + if ( oldState != value ) { \n + SINGLE \n + SINGLE \n + logger . warning ( STRING3 + invocationToString ( ) \n + + STRING4 + oldState + STRING5 + value ) ; \n + } \n return false ; \n }", "msg_token": "supress logging in case racy completion"} {"diff": " public class DefaultCxfBinding implements CxfBinding , HeaderFilterStrategyAware \n if ( dataFormat == DataFormat . POJO ) { \n answer = out . getBody ( ) ; \n } else if ( dataFormat == DataFormat . PAYLOAD ) { \n - answer = out . getBody ( ) ; \n + answer = out . getBody ( CxfPayload . class ) ; \n } else if ( dataFormat == DataFormat . MESSAGE ) { \n answer = out . getBody ( InputStream . class ) ; \n }", "msg_token": "call getBody CxfPayload class to trigger converter on the response message body"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding marble diagrams"} {"diff": " public class JarHandler implements FileSystemInterface { \n } \n \n public long getCRC ( final VirtualFile file ) { \n + if ( file . getParent ( ) == null ) return - NUMBER0 ; SINGLE \n lock . lock ( ) ; \n try { \n final ZipEntry entry = convertToEntry ( file ) ; \n public class JarHandler implements FileSystemInterface { \n } \n \n public long getTimeStamp ( final VirtualFile file ) { \n + if ( file . getParent ( ) == null ) return - NUMBER0 ; SINGLE \n lock . lock ( ) ; \n try { \n final ZipEntry entry = convertToEntry ( file ) ; \n public class JarHandler implements FileSystemInterface { \n } \n \n public boolean isDirectory ( final VirtualFile file ) { \n + if ( file . getParent ( ) == null ) return true ; SINGLE \n + \n lock . lock ( ) ; \n try { \n String path = getRelativePath ( file ) ;", "msg_token": "Even more jar root handling optimization"} {"diff": " public class TemporaryPlacesInjector implements MultiHostInjector { \n \n public void getLanguagesToInject ( @ notnull final MultiHostRegistrar registrar , @ notnull final PsiElement context ) { \n final PsiLanguageInjectionHost host = ( PsiLanguageInjectionHost ) context ; \n - final PsiLanguageInjectionHost originalHost = PsiUtilBase . getOriginalElement ( host , host . getClass ( ) ) ; \n final ElementManipulator < PsiLanguageInjectionHost > manipulator = ElementManipulators . getManipulator ( host ) ; \n - LOG . assertTrue ( manipulator != null , STRING0 + host ) ; \n + if ( manipulator == null ) return ; SINGLE \n + SINGLE \n + final PsiLanguageInjectionHost originalHost = PsiUtilBase . getOriginalElement ( host , host . getClass ( ) ) ; \n final List < TemporaryPlacesRegistry . TemporaryPlace > list = TemporaryPlacesRegistry . getInstance ( context . getProject ( ) ) . getTempInjectionsSafe ( originalHost ) ; \n for ( final TemporaryPlacesRegistry . TemporaryPlace place : list ) { \n LOG . assertTrue ( place . language != null , STRING1 ) ;", "msg_token": "no need to stop the world iff there is no manipulator no manipulator no injection"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n && ! mWallpaperTarget . mWinAnimator . isDummyAnimation ( ) \n ? null : mWallpaperTarget ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + final AppWindowToken wallpaperTargetAppToken = \n + mWallpaperTarget != null ? mWallpaperTarget . mAppToken : null ; \n + if ( wallpaperTargetAppToken != null \n + && ! mClosingApps . contains ( wallpaperTargetAppToken ) \n + && ! mOpeningApps . contains ( wallpaperTargetAppToken ) \n + && ( transit & AppTransition . TRANSIT_EXIT_MASK ) != NUMBER0 ) { \n + mOpeningApps . add ( wallpaperTargetAppToken ) ; \n + NN ++ ; \n + } \n mInnerFields . mWallpaperMayChange = false ; \n \n SINGLE", "msg_token": "Fix jank for translucent window transitions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileIncludeContextHectorProvider implements HectorComponentPanelsPr \n \n @ nullable \n public HectorComponentPanel createConfigurable ( @ notnull final PsiFile file ) { \n + if ( DumbService . getInstance ( file . getProject ( ) ) . isDumb ( ) ) { \n + return null ; \n + } \n if ( myIncludeManager . getIncludingFiles ( file . getVirtualFile ( ) , false ) . length > NUMBER0 ) { \n return new FileIncludeContextHectorPanel ( file , myIncludeManager ) ; \n }", "msg_token": "Do not show includes in dumb mode"} {"diff": " public class PApplet extends Applet \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public int screenWidth ; \n \n public class PApplet extends Applet \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public int screenHeight ;", "msg_token": "added webref tags to screenWidth and screenHeight"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ contextconfiguration ( locations = { STRING0 } ) \n @ runwith ( SpringJUnit4ClassRunner . class ) \n public class SEC936ApplicationContextTests {", "msg_token": "Added version information"} {"diff": " public final class Main implements ActionListener { \n buttonCons . gridy = NUMBER0 ; \n panel . add ( insidePanel ) ; \n \n - autoDetectBox = new JCheckBox ( STRING0 ) ; \n + autoDetectBox = new JCheckBox ( messages . getString ( STRING1 ) ) ; \n autoDetectBox . addActionListener ( new ActionListener ( ) { \n @ override \n public void actionPerformed ( ActionEvent e ) {", "msg_token": "and add the key here"} {"diff": " public class MediaScanner \n long lastModifiedSeconds = file . lastModified ( ) / NUMBER0 ; \n \n if ( ! MediaFile . isAudioFileType ( fileType ) && ! MediaFile . isVideoFileType ( fileType ) && \n - ! MediaFile . isImageFileType ( fileType ) && ! MediaFile . isPlayListFileType ( fileType ) ) { \n + ! MediaFile . isImageFileType ( fileType ) && ! MediaFile . isPlayListFileType ( fileType ) && \n + ! MediaFile . isDrmFileType ( fileType ) ) { \n \n SINGLE \n ContentValues values = new ContentValues ( ) ;", "msg_token": "Musicplayer application can not display DRM files of internal storage"} {"diff": " final class WebSocketSessionRemoteEndpoint implements RemoteEndpoint { \n throw new EncodeException ( o , STRING0 ) ; \n } \n } catch ( Exception e ) { \n - callback . onError ( webSocketChannel , o , e ) ; \n + callback . onError ( webSocketChannel , null , e ) ; \n } \n }", "msg_token": "Fix issue with exception handling"} {"diff": " public class TestPageGenerator extends HtmlPageGenerator < PerformanceTestHistory > \n + STRING0 \n + STRING1 + history . getDisplayName ( ) + STRING1 \n + STRING2 \n - + ( BaselineVersion . isStrict ( ) ? STRING3 : STRING4 ) ; \n + + STRING3 ; \n } \n \n private static class Link {", "msg_token": "Fix showing parameters in reproducing instructions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ThreadStarvationTest \n } ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n try \n { \n List < Future < String > > responses = clientExecutors . invokeAll ( clientTasks , NUMBER0 , TimeUnit . SECONDS ) ;", "msg_token": "Removing commented out debug code"} {"diff": " public class HttpRestClient implements RestClient { \n public HttpRestClient ( ) { \n DependencyInjectionService . getInstance ( ) . inject ( this ) ; \n \n - System . err . println ( STRING0 ) ; \n - \n SchemeRegistry schemeRegistry = new SchemeRegistry ( ) ; \n schemeRegistry . register ( new Scheme ( STRING1 , PlainSocketFactory . getSocketFactory ( ) , NUMBER0 ) ) ; \n schemeRegistry . register ( new Scheme ( STRING2 , SSLSocketFactory . getSocketFactory ( ) , NUMBER1 ) ) ; \n public class HttpRestClient implements RestClient { \n private HttpParams params ; \n private ThreadSafeClientConnManager cm ; \n \n - @ suppresswarnings ( STRING3 ) \n private synchronized HttpClient getClient ( ) { \n if ( httpClient == null || httpClient . get ( ) == null ) { \n DefaultHttpClient client = new DefaultHttpClient ( cm , params ) ;", "msg_token": "Removd printline and unneeded suppress warning"} {"diff": " public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb \n } \n \n public String getNodeId ( final Member iMember ) { \n - return iMember . getInetSocketAddress ( ) . toString ( ) . substring ( NUMBER0 ) ; \n + final Object ipAddress = iMember . getInetSocketAddress ( ) ; \n + if ( ipAddress != null ) \n + SINGLE \n + return ipAddress . toString ( ) . substring ( NUMBER0 ) ; \n + \n + SINGLE \n + return iMember . getUuid ( ) ; \n } \n \n public Set < String > getRemoteNodeIds ( ) {", "msg_token": "Fixed bug on Hazelcast members where the IP address can t be retrieved using hostnames"} {"diff": " public abstract class UdpChannelTransport implements AutoCloseable \n if ( NUMBER0 != Configuration . SOCKET_SNDBUF_LENGTH ) \n { \n datagramChannel . setOption ( StandardSocketOptions . SO_SNDBUF , Configuration . SOCKET_SNDBUF_LENGTH ) ; \n - final int soSndbuf = datagramChannel . getOption ( StandardSocketOptions . SO_SNDBUF ) ; \n - \n - if ( soSndbuf != Configuration . SOCKET_SNDBUF_LENGTH ) \n - { \n - throw new IllegalStateException ( String . format ( \n - STRING0 , Configuration . SOCKET_SNDBUF_LENGTH , soSndbuf ) ) ; \n - } \n } \n \n if ( NUMBER0 != Configuration . SOCKET_RCVBUF_LENGTH ) \n { \n datagramChannel . setOption ( StandardSocketOptions . SO_RCVBUF , Configuration . SOCKET_RCVBUF_LENGTH ) ; \n - final int soRcvbuf = datagramChannel . getOption ( StandardSocketOptions . SO_RCVBUF ) ; \n - \n - if ( soRcvbuf != Configuration . SOCKET_RCVBUF_LENGTH ) \n - { \n - throw new IllegalStateException ( String . format ( \n - STRING1 , Configuration . SOCKET_RCVBUF_LENGTH , soRcvbuf ) ) ; \n - } \n } \n \n datagramChannel . configureBlocking ( false ) ;", "msg_token": "Removed checks for not getting enough socket buffer space during creation of UdpChannelTransport"} {"diff": " import NAMESPACE ; \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some formatting in Closer javadoc"} {"diff": " public class SignInFragment extends AbstractFragment implements TextWatcher , Con \n @ override \n public void onDestroyView ( ) { \n super . onDestroyView ( ) ; \n - disconnectCredentialsClient ( ) ; \n } \n \n @ override \n public class SignInFragment extends AbstractFragment implements TextWatcher , Con \n } ) ; \n } \n \n - private void disconnectCredentialsClient ( ) { \n - if ( mCredentialsClient != null && mCredentialsClient . isConnected ( ) ) { \n - mCredentialsClient . stopAutoManage ( getActivity ( ) ) ; \n - mCredentialsClient . disconnect ( ) ; \n - } \n - } \n - \n private boolean isGooglePlayServicesAvailable ( ) { \n return GoogleApiAvailability . getInstance ( ) . isGooglePlayServicesAvailable ( getActivity ( ) ) == ConnectionResult . SUCCESS ; \n } \n public class MagicLinkSignInFragment extends SignInFragment { \n mSignInButton . setText ( getString ( R . string . button_next ) ) ; \n } \n \n - \n - \n private void showPasswordFieldAndFocus ( ) { \n showPasswordField ( ) ; \n mPasswordEditText . requestFocus ( ) ;", "msg_token": "Removing disconnection of credentials client"} {"diff": " public class ShadowSQLiteDatabase extends ShadowSQLiteClosable { \n } \n \n @ implementation \n + public boolean isReadOnly ( ) { \n + return false ; \n + } \n + \n + @ implementation \n public void beginTransaction ( ) { \n try { \n getConnection ( ) . setAutoCommit ( false ) ;", "msg_token": "Added an implementation for isReadOnly that just returns false"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n @ runwith ( Parameterized . class ) \n + @ category ( QuickTest . class ) \n public class WebFilterTest extends AbstractWebFilterTest { \n \n @ parameters ( name = STRING0 )", "msg_token": "added missing category"} {"diff": " public class ConversationFragment extends Fragment implements EditMessage . Keyboa \n if ( actionId == EditorInfo . IME_ACTION_SEND ) { \n InputMethodManager imm = ( InputMethodManager ) v . getContext ( ) \n . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n - imm . hideSoftInputFromWindow ( v . getWindowToken ( ) , NUMBER0 ) ; \n + if ( imm . isFullscreenMode ( ) ) { \n + imm . hideSoftInputFromWindow ( v . getWindowToken ( ) , NUMBER0 ) ; \n + } \n sendMessage ( ) ; \n return true ; \n } else {", "msg_token": "minimize softkeyboard only if it has been in fullscreen mode"} {"diff": " public class CatalogUpdater { \n } \n \n private Product getExistingProduct ( final String productName ) { \n - for ( final Product input : catalog . getCurrentProducts ( ) ) { \n - if ( input . getName ( ) . equals ( productName ) ) { \n - return input ; \n - } \n + try { \n + return catalog . findCurrentProduct ( productName ) ; \n + } catch ( final CatalogApiException e ) { \n + return null ; \n } \n - return null ; \n } \n \n private Plan getExistingPlan ( final String planName ) { \n - for ( final Plan input : catalog . getCurrentPlans ( ) ) { \n - if ( input . getName ( ) . equals ( planName ) ) { \n - return input ; \n - } \n + try { \n + return catalog . findCurrentPlan ( planName ) ; \n + } catch ( CatalogApiException e ) { \n + return null ; \n } \n - return null ; \n } \n \n private DefaultPlanRules getSaneDefaultPlanRules ( final DefaultPriceList defaultPriceList ) {", "msg_token": "Add perf improvement for CatalogUpdater"} {"diff": " public class IterableSerializer \n @ override \n public boolean isEmpty ( Iterable < ? > value ) { \n SINGLE \n - return ( value == null ) || value . iterator ( ) . hasNext ( ) ; \n + return ( value == null ) || ! value . iterator ( ) . hasNext ( ) ; \n } \n \n @ override", "msg_token": "Fixing the logic in the isEmpty method"} {"diff": " public class IndexBatchCreator { \n System . err . println ( STRING0 + f . getName ( ) + STRING1 ) ; \n return false ; SINGLE \n } \n - double originalLength = original . length ( ) / MB ; \n + double originalLength = ( double ) original . length ( ) / MB ; \n if ( ! uploadToOsmandDownloads ) { \n try { \n DownloaderIndexFromGoogleCode . deleteFileFromGoogleDownloads ( f . getName ( ) , token , pagegen , cookieHSID , cookieSID ) ;", "msg_token": "Fix formatting for new files"} {"diff": " public class ProgressWindow extends BlockingProgressIndicator { \n setCancelButtonText ( text ) ; \n } \n \n - protected boolean isProgressDialog ( ) { \n - return true ; \n - } \n - \n public void doCancelAction ( ) { \n if ( myShouldShowCancel ) { \n ProgressWindow . this . cancel ( ) ; \n public class ProgressWindow extends BlockingProgressIndicator { \n } \n } \n \n + protected boolean isProgressDialog ( ) { \n + return true ; \n + } \n + \n protected JComponent createCenterPanel ( ) { \n return myPanel ; \n }", "msg_token": "Deadlock running laters with modality states of progress indicator"} {"diff": " public class NoSuchBufferException extends ChannelPipelineException { \n private static final String DEFAULT_MESSAGE = \n STRING0 + \n STRING1 ; \n - public static final NoSuchBufferException INSTANCE = new NoSuchBufferException ( ) ; \n - \n - static { \n - INSTANCE . setStackTrace ( new StackTraceElement [ NUMBER0 ] ) ; \n - } \n \n private static final long serialVersionUID = - NUMBER1 ;", "msg_token": "Remove an unused field"} {"diff": " public class RouteResultPreparation { \n } else if ( target . isActiveTurnMostRight ( ) ) { \n SINGLE \n SINGLE \n - if ( target . activeLen < active . activeLen ) { \n + if ( target . activeLen < active . activeLen ) { \n active . activeStartIndex += ( active . activeLen - target . activeLen ) ; \n changed = true ; \n } \n public class RouteResultPreparation { \n } \n if ( singleTurn == NUMBER0 ) { \n singleTurn = currentTurn . getValue ( ) ; \n + if ( singleTurn == TurnType . KL || singleTurn == TurnType . KR ) { \n + return ; \n + } \n } \n for ( int i = NUMBER0 ; i < lanes . length ; i ++ ) { \n if ( lanes [ i ] % NUMBER1 == NUMBER2 && TurnType . getPrimaryTurn ( lanes [ i ] ) != singleTurn ) {", "msg_token": "Fix route preparation for highway split"} {"diff": " public class CoverageOptionsConfigurable implements SearchableConfigurable , Conf \n } \n \n @ override \n - public Icon getIcon ( ) { \n - return null ; \n - } \n - \n - @ override \n public String getHelpTopic ( ) { \n return STRING0 ; \n }", "msg_token": "Configurables no longer have icons"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface BinaryTasksCollection extends DomainObjectSet < Task > { \n COMMENT", "msg_token": "add some meaningful javadoc to BinaryTasksCollection"} {"diff": " public class PyContentEntriesEditor extends CommonContentEntriesEditor { \n } \n VirtualFilePointer root = getRoot ( provider , folder ) ; \n if ( root != null ) { \n - provider . removeRoot ( contentEntry , root ) ; \n + provider . removeRoot ( contentEntry , root , getModel ( ) ) ; \n fireUpdate ( ) ; \n } \n } \n public abstract class PyRootTypeProvider { \n \n public abstract boolean isMine ( ContentFolder folder ) ; \n \n - public void removeRoot ( ContentEntry contentEntry , @ notnull final VirtualFilePointer root ) { \n + public void removeRoot ( ContentEntry contentEntry , @ notnull final VirtualFilePointer root , ModifiableRootModel model ) { \n getRoots ( ) . remove ( contentEntry , root ) ; \n } \n public abstract MultiMap < ContentEntry , VirtualFilePointer > getRoots ( ) ;", "msg_token": "fixed resource roots deletion from project structure in plugin"} {"diff": " public abstract class GraphAlgoFactory \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated a javadoc to be correct with the behaviour"} {"diff": " public class RandomForest implements Regression < double [ ] > { \n try { \n trees = MulticoreExecutor . run ( tasks ) ; \n } catch ( Exception ex ) { \n - System . err . println ( ex ) ; \n + ex . printStackTrace ( ) ; \n \n trees = new ArrayList < RegressionTree > ( T ) ; \n for ( int i = NUMBER0 ; i < T ; i ++ ) { \n public class RegressionTree implements Regression < double [ ] > { \n SINGLE \n SINGLE \n if ( M < p ) { \n - Math . permutate ( variables ) ; \n + SINGLE \n + SINGLE \n + synchronized ( RegressionTree . class ) { \n + Math . permutate ( variables ) ; \n + } \n + \n SINGLE \n for ( int j = NUMBER0 ; j < M ; j ++ ) { \n Node split = findBestSplit ( n , sum , variables [ j ] ) ;", "msg_token": "Fix the race condition of random number generation"} {"diff": " import NAMESPACE ; \n \n final class DeepLinkEntry { \n \n - private static final String PARAM_VALUE = STRING0 ; \n + private static final String PARAM_VALUE = STRING1 ; \n private static final String PARAM = STRING2 ; \n private static final String PARAM_REGEX = STRING3 + PARAM + STRING4 ; \n \n public class DeepLinkEntryTest { \n assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING6 ) ; \n assertThat ( parameters . get ( STRING7 ) ) . isEqualTo ( STRING8 ) ; \n } \n + \n + @ test public void testParamWithSpecialCharacters ( ) throws Exception { \n + DeepLinkEntry entry = new DeepLinkEntry ( \n + STRING9 , DeepLinkEntry . Type . CLASS , String . class , null ) ; \n + \n + Map < String , String > parameters = entry . getParameters ( STRING10 ) ; \n + assertThat ( parameters . get ( STRING11 ) ) . isEqualTo ( STRING12 ) ; \n + } \n }", "msg_token": "Add support for hyphens and underscores as values for deeplink parameters"} {"diff": " public class GitHistoryUtils { \n return rc ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n + @ suppresswarnings ( STRING0 ) \n + public static List < Pair < SHAHash , Date > > onlyHashesHistory ( Project project , FilePath path , final String . . . parameters ) \n + throws VcsException { \n + final VirtualFile root = GitUtil . getGitRoot ( path ) ; \n + return onlyHashesHistory ( project , path , root , parameters ) ; \n + } \n + \n public static List < Pair < SHAHash , Date > > onlyHashesHistory ( Project project , FilePath path , final VirtualFile root , final String . . . parameters ) \n throws VcsException { \n SINGLE", "msg_token": "Restore some obsolete method in GitHistoryUtils for TeamCity plugin compatibility"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 ) \n + @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 , numClientNodes = NUMBER0 , transportClientRatio = NUMBER0 ) \n public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest { \n \n @ override", "msg_token": "TEST Only use the clients from the node"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReplicatedMapTest \n final ReplicatedMap < String , String > map1 = instance1 . getReplicatedMap ( STRING0 ) ; \n final ReplicatedMap < String , String > map2 = instance2 . getReplicatedMap ( STRING0 ) ; \n \n - SimpleEntryListener listener = new SimpleEntryListener ( NUMBER0 , NUMBER1 ) ; \n + SimpleEntryListener listener = new SimpleEntryListener ( NUMBER0 , NUMBER2 ) ; \n map2 . addEntryListener ( listener ) ; \n \n SimpleEntryListener listenerKey = new SimpleEntryListener ( NUMBER0 , NUMBER3 ) ; \n public class ReplicatedMapTest \n } \n \n @ override \n - public void mapEvicted ( MapEvent event ) { \n + public void entryEvicted ( EntryEvent event ) { \n evictLatch . countDown ( ) ; \n } \n }", "msg_token": "fix failed test"} {"diff": " public class JetControlFlowTest extends JetLiteFixture { \n private static String formatInstruction ( Instruction instruction , int maxLength , Set < Instruction > remainedAfterPostProcessInstructions ) { \n String [ ] parts = instruction . toString ( ) . split ( STRING0 ) ; \n boolean isRemovedThroughPostProcess = ! remainedAfterPostProcessInstructions . contains ( instruction ) ; \n - String prefix = isRemovedThroughPostProcess ? STRING1 : ( ( InstructionImpl ) instruction ) . isDead ( ) ? STRING2 : STRING3 ; \n + assert isRemovedThroughPostProcess == ( ( InstructionImpl ) instruction ) . isDead ( ) ; \n + String prefix = isRemovedThroughPostProcess ? STRING1 : STRING3 ; \n if ( parts . length == NUMBER0 ) { \n return prefix + String . format ( STRING4 + maxLength + STRING5 , instruction ) ; \n }", "msg_token": "add assert to ControlFlowTest"} {"diff": " public @ interface TableModelSpec { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n boolean noRowIdAlias ( ) default false ;", "msg_token": "Update a doc in TableModelSpec annotation"} {"diff": " public class SvnConfigurationState { \n \n @ attribute ( STRING0 ) \n public SvnConfiguration . SSLProtocols sslProtocols = \n - SystemInfo . JAVA_RUNTIME_VERSION . startsWith ( STRING1 ) || SystemInfo . JAVA_RUNTIME_VERSION . startsWith ( STRING2 ) \n - ? SvnConfiguration . SSLProtocols . all \n - : SvnConfiguration . SSLProtocols . sslv3 ; \n + SystemInfo . isJavaVersionAtLeast ( STRING1 ) ? SvnConfiguration . SSLProtocols . all : SvnConfiguration . SSLProtocols . sslv3 ; \n \n @ optiontag ( STRING3 ) \n public long sshConnectionTimeout = NUMBER0 * NUMBER1 ;", "msg_token": "Refactored SvnConfigurationState simplify java version checks"} {"diff": " public class PieChartRenderer extends DataRenderer { \n c . translate ( boundingRect . left , boundingRect . top + ( boundingRect . height ( ) - layoutHeight ) / FLOAT0 ) ; \n mCenterTextLayout . draw ( c ) ; \n c . restore ( ) ; \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n }", "msg_token": "Cleaned up this residue"} {"diff": " public class EntropyService extends Binder { \n out . println ( SystemProperties . get ( STRING0 ) ) ; \n out . println ( SystemProperties . get ( STRING1 ) ) ; \n out . println ( SystemProperties . get ( STRING2 ) ) ; \n + out . println ( new Object ( ) . hashCode ( ) ) ; \n out . println ( System . currentTimeMillis ( ) ) ; \n out . println ( System . nanoTime ( ) ) ; \n } catch ( IOException e ) {", "msg_token": "squeeze a few more bits of randomness into dev random"} {"diff": " public class SyncManager implements OnAccountsUpdateListener { \n } \n } ; \n \n + private BroadcastReceiver mAccountsUpdatedReceiver = new BroadcastReceiver ( ) { \n + public void onReceive ( Context context , Intent intent ) { \n + onAccountsUpdated ( null ) ; \n + } \n + } ; \n + \n private final PowerManager mPowerManager ; \n \n SINGLE \n public class SyncManager implements OnAccountsUpdateListener { \n } ) ; \n \n if ( ! factoryTest ) { \n - AccountManager . get ( mContext ) . addOnAccountsUpdatedListener ( SyncManager . this , \n - mSyncHandler , false COMMENT ) ; \n + SINGLE \n + mContext . registerReceiverAsUser ( mAccountsUpdatedReceiver , \n + UserHandle . ALL , \n + new IntentFilter ( AccountManager . LOGIN_ACCOUNTS_CHANGED_ACTION ) , \n + null , null ) ; \n SINGLE \n onAccountsUpdated ( null ) ; \n }", "msg_token": "Fix sync problems when setting up a new user and account"} {"diff": " public class DefaultManagementAgent extends ServiceSupport implements Management \n } \n \n public < T > T newProxyClient ( ObjectName name , Class < T > mbean ) { \n - if ( server != null && server . isRegistered ( name ) ) { \n - return MBeanServerInvocationHandler . newProxyInstance ( server , name , mbean , false ) ; \n + if ( isRegistered ( name ) ) { \n + ObjectName on = mbeansRegistered . get ( name ) ; \n + return MBeanServerInvocationHandler . newProxyInstance ( server , on != null ? on : name , mbean , false ) ; \n } else { \n return null ; \n }", "msg_token": "Fix potential NPE"} {"diff": " public class TimerHandler implements IUpdateHandler { \n } \n \n public TimerHandler ( final float pTimerSeconds , final boolean pAutoReset , final ITimerCallback pTimerCallback ) { \n - if ( pTimerSeconds < NUMBER0 ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + if ( pTimerSeconds <= NUMBER0 ) { \n + throw new IllegalStateException ( STRING1 ) ; \n } \n \n this . mTimerSeconds = pTimerSeconds ; \n public class TimerHandler implements IUpdateHandler { \n } \n \n public void setTimerSeconds ( final float pTimerSeconds ) { \n - if ( pTimerSeconds < NUMBER0 ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + if ( pTimerSeconds <= NUMBER0 ) { \n + throw new IllegalStateException ( STRING1 ) ; \n } \n \n this . mTimerSeconds = pTimerSeconds ;", "msg_token": "prevent eternal waiting"} {"diff": " public class TodoCheckinHandlerWorker { \n private static ArrayList < LineFragment > getLineFragments ( String beforeContent , String afterContent ) { \n DiffFragment [ ] woFormattingBlocks = DiffPolicy . LINES_WO_FORMATTING . buildFragments ( beforeContent , afterContent ) ; \n DiffFragment [ ] step1lineFragments = \n - new DiffCorrection . TrueLineBlocks ( ComparisonPolicy . DEFAULT ) . correctAndNormalize ( woFormattingBlocks ) ; \n + new DiffCorrection . TrueLineBlocks ( ComparisonPolicy . IGNORE_SPACE ) . correctAndNormalize ( woFormattingBlocks ) ; \n return new DiffFragmentsProcessor ( ) . process ( step1lineFragments ) ; \n }", "msg_token": "ignore spaces when doing fragments with todo comparison"} {"diff": " public class DuplicatesIndex extends FileBasedIndexExtension < Integer , TIntArrayL \n private static boolean ourEnabledOldProfiles = false ; \n \n @ nonnls public static final ID < Integer , TIntArrayList > NAME = ID . create ( STRING0 ) ; \n - private static final int myBaseVersion = NUMBER0 ; \n + private static final int myBaseVersion = NUMBER1 ; \n \n private final FileBasedIndex . InputFilter myInputFilter = new FileBasedIndex . InputFilter ( ) { \n @ override", "msg_token": "Duplicate hash for method call to include number of arguments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove import breaking compilation"} {"diff": " public abstract class Equivalence < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Equivalence wrap documentation to match the appropriate usage of the method and the javadoc on the Wrapper class"} {"diff": " public @ interface TableModelSpec { \n COMMENT \n String virtualModule ( ) default STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean noRowIdAlias ( ) default false ; \n + \n }", "msg_token": "Add a flag to TableModelSpec for disabling the automatic integer primary key rowid alias"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ state ( name = STRING0 , storages = { @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) } ) \n + @ state ( name = STRING0 , roamingType = RoamingType . DISABLED , storages = { @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) } ) \n public class UsageTrigger implements PersistentStateComponent < UsageTrigger . State > { \n \n public static class State { \n import NAMESPACE ; \n \n @ state ( \n name = STRING2 , \n + roamingType = RoamingType . DISABLED , \n storages = { \n @ storage ( \n file = StoragePathMacros . APP_CONFIG + STRING1", "msg_token": "Serega Vasiliev don t share statistics application usages xml"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed checkstyle issues"} {"diff": " class ParquetHiveRecordCursor \n requireNonNull ( partitionKeys , STRING0 ) ; \n requireNonNull ( columns , STRING1 ) ; \n \n - \n this . totalBytes = length ; \n \n int size = columns . size ( ) ;", "msg_token": "Fix checkstyle issue"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n abstract public class BaseJob implements Serializable { \n public static final int DEFAULT_RETRY_LIMIT = NUMBER0 ; \n - private final boolean requiresNetwork ; \n - private final String groupId ; \n + private boolean requiresNetwork ; \n + private String groupId ; \n private transient int currentRunCount ; \n \n protected BaseJob ( boolean requiresNetwork ) { \n abstract public class BaseJob implements Serializable { \n this . groupId = groupId ; \n } \n \n + private void writeObject ( ObjectOutputStream oos ) throws IOException { \n + oos . writeBoolean ( requiresNetwork ) ; \n + oos . writeObject ( groupId ) ; \n + } \n + \n + \n + private void readObject ( ObjectInputStream ois ) throws ClassNotFoundException , IOException { \n + requiresNetwork = ois . readBoolean ( ) ; \n + groupId = ( String ) ois . readObject ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add custom serialization code to base job"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ incubating \n + @ hasinternalprotocol \n public interface TypeBuilder < C > { \n \n COMMENT", "msg_token": "This guy has an internal protocol"} {"diff": " public class SQLiteDatabase extends SQLiteClosable { \n } \n int i = mConnectionPool . getMaxPoolSize ( ) ; \n if ( size < i ) { \n - throw new IllegalStateException ( \n + throw new IllegalArgumentException ( \n STRING0 + \n i + STRING1 ) ; \n }", "msg_token": "throw correct exception"} {"diff": " public class WifiEnterpriseConfig implements Parcelable { \n StringBuffer sb = new StringBuffer ( ) ; \n for ( String key : mFields . keySet ( ) ) { \n SINGLE \n - String value = ( key == PASSWORD_KEY ) ? STRING0 : mFields . get ( key ) ; \n + String value = PASSWORD_KEY . equals ( key ) ? STRING0 : mFields . get ( key ) ; \n sb . append ( key ) . append ( STRING1 ) . append ( value ) . append ( STRING2 ) ; \n } \n return sb . toString ( ) ;", "msg_token": "Fix string equality comparison"} {"diff": " public class SummaryJavadocTest extends BaseCheckTestSupport { \n @ test \n public void testIncorrect ( ) throws Exception { \n \n - String msg_first_sentence = getCheckMessage ( SummaryJavadocCheck . class , STRING0 ) ; \n - String msg_forbidden_fragment = getCheckMessage ( SummaryJavadocCheck . class , STRING1 ) ; \n + String msgFirstSentence = getCheckMessage ( SummaryJavadocCheck . class , STRING0 ) ; \n + String msgForbiddenFragment = getCheckMessage ( SummaryJavadocCheck . class , STRING1 ) ; \n \n final String [ ] expected = { \n - STRING2 + msg_first_sentence , \n - STRING3 + msg_first_sentence , \n - STRING4 + msg_forbidden_fragment , \n - STRING5 + msg_forbidden_fragment , \n - STRING6 + msg_first_sentence , \n - STRING7 + msg_forbidden_fragment , \n - STRING8 + msg_first_sentence , \n + STRING2 + msgFirstSentence , \n + STRING3 + msgFirstSentence , \n + STRING4 + msgForbiddenFragment , \n + STRING5 + msgForbiddenFragment , \n + STRING6 + msgFirstSentence , \n + STRING7 + msgForbiddenFragment , \n + STRING8 + msgFirstSentence , \n } ; \n \n Configuration checkConfig = builder . getCheckConfig ( STRING9 ) ;", "msg_token": "Rename local variables according to convention"} {"diff": " public class VirtualWebappLoader extends WebappLoader { \n COMMENT \n COMMENT \n COMMENT \n - private String virtualClasspath ; \n + private String virtualClasspath = STRING0 ; \n \n COMMENT \n COMMENT", "msg_token": "Fix NPE in unconfigured VirtualWebappLoader"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix XMPPConnection javadoc"} {"diff": " public final class DashMediaSource implements MediaSource { \n private void processManifest ( ) { \n SINGLE \n for ( int i = NUMBER0 ; i < periodsById . size ( ) ; i ++ ) { \n - periodsById . valueAt ( i ) . updateManifest ( manifest , firstPeriodId + periodsById . keyAt ( i ) ) ; \n + periodsById . valueAt ( i ) . updateManifest ( manifest , periodsById . keyAt ( i ) - firstPeriodId ) ; \n } \n SINGLE \n handler . removeCallbacks ( simulateManifestRefreshRunnable ) ;", "msg_token": "Fix DASH period index calculation"} {"diff": " \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 + 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 \n package NAMESPACE ;", "msg_token": "Replace wrong copyright header"} {"diff": " public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin { \n } \n } \n \n + private static final String TIKTOK_COMPONENT_PROCESSOR_NAME = \n + STRING0 ; \n + \n + private static final String DAGGER_PROCESSOR_PREFIX = STRING1 ; \n + \n public static boolean generatedByDagger ( JCTree . JCClassDecl tree ) { \n if ( tree . sym == null ) { \n return false ; \n public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin { \n return false ; \n } \n for ( String value : generated . value ( ) ) { \n - if ( value . startsWith ( STRING1 ) ) { \n + if ( value . startsWith ( DAGGER_PROCESSOR_PREFIX ) ) { \n + return true ; \n + } \n + SINGLE \n + if ( value . equals ( TIKTOK_COMPONENT_PROCESSOR_NAME ) ) { \n return true ; \n } \n }", "msg_token": "Relax strict java deps for tiktok s component processor"} {"diff": " public class HystrixObservableCollapserTest { \n } \n \n @ test \n + public void stressTestRequestCollapser ( ) throws Exception { \n + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + init ( ) ; \n + testTwoRequests ( ) ; \n + cleanup ( ) ; \n + } \n + } \n + \n + @ test \n public void testTwoRequestsWhichShouldEachEmitTwice ( ) throws Exception { \n SINGLE \n CollapserTimer timer = new RealCollapserTimer ( ) ;", "msg_token": "Reinstate the HystrixObservableCollapserTest stress test after some runs showed there might still be a bug"} {"diff": " public class OpenALAudio implements Audio { \n if ( state != AL_STOPPED ) alSourceStop ( streamID ) ; \n alDeleteSources ( streamID ) ; \n } \n + \n + AL . destroy ( ) ; \n } \n \n public AudioDevice newAudioDevice ( boolean isMono ) { \n public class OpenALAudio implements Audio { \n \n public AudioRecorder newAudioRecoder ( int samplingRate , boolean isMono ) { \n return new JavaSoundAudioRecorder ( samplingRate , isMono ) ; \n - } \n + } \n }", "msg_token": "fixed missing AL destroy in OpenALAudio dispose"} {"diff": " public class AlpnOpenListener implements ChannelListener < StreamConnection > , Open \n this ( bufferPool , undertowOptions , STRING0 , httpListener ) ; \n } \n \n + public AlpnOpenListener ( ByteBufferPool bufferPool ) { \n + this ( bufferPool , OptionMap . EMPTY , null , null ) ; \n + } \n public AlpnOpenListener ( ByteBufferPool bufferPool , OptionMap undertowOptions ) { \n this ( bufferPool , undertowOptions , null , null ) ; \n }", "msg_token": "Add back missing constructor"} {"diff": " public class HttpStreamCacheFileTest extends CamelTestSupport { \n String out = template . requestBody ( STRING0 , STRING1 , String . class ) ; \n assertEquals ( STRING2 , out ) ; \n \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + \n SINGLE \n File file = new File ( STRING3 ) ; \n String [ ] files = file . list ( ) ; \n public class HttpStreamCacheFileTest extends CamelTestSupport { \n assertEquals ( STRING4 , body , s ) ; \n } \n \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + \n SINGLE \n File file = new File ( STRING3 ) ; \n String [ ] files = file . list ( ) ;", "msg_token": "Give some time on slow boxes"} {"diff": " class LogbackModule extends Module { \n } \n } \n \n - private static class Log4jDeserializers extends Deserializers . Base { \n + private static class LogbackDeserializers extends Deserializers . Base { \n @ override \n public JsonDeserializer < ? > findBeanDeserializer ( JavaType type , \n DeserializationConfig config , \n class LogbackModule extends Module { \n \n @ override \n public void setupModule ( SetupContext context ) { \n - context . addDeserializers ( new Log4jDeserializers ( ) ) ; \n + context . addDeserializers ( new LogbackDeserializers ( ) ) ; \n } \n }", "msg_token": "Fix name of LogbackDeserializers"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NDArray extends DoubleMatrix { \n + public class NDArray extends DoubleMatrix { \n \n private int [ ] shape ; \n private int [ ] stride ;", "msg_token": "take out whitespace"} {"diff": " \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 \n package NAMESPACE ; \n \n public interface SharedLibraryFinder { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n String getSharedLibraryNameLinux ( String sharedLibName , boolean is64Bit , boolean isArm , ZipFile nativesJar ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated docs and added missing license"} {"diff": " public class DefaultProjectsPluginContainer extends DefaultPluginCollection < Plug \n return getPlugin ( id ) ; \n } \n \n + public < T extends Plugin > T getAt ( Class < T > type ) throws UnknownPluginException { \n + return getPlugin ( type ) ; \n + } \n + \n public < T extends Plugin > T getPlugin ( Class < T > type ) throws UnknownPluginException { \n Plugin plugin = findPlugin ( type ) ; \n if ( plugin == null ) { \n public interface PluginContainer extends PluginCollection < Plugin > { \n COMMENT \n COMMENT \n Plugin getAt ( String id ) throws UnknownPluginException ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + < T extends Plugin > T getAt ( Class < T > type ) throws UnknownPluginException ; \n }", "msg_token": "Added PluginContainer getAt pluginClass"} {"diff": " public enum Material { \n DIAMOND ( NUMBER0 ) , \n IRON_INGOT ( NUMBER1 ) , \n GOLD_INGOT ( NUMBER2 ) , \n - IRON_SWORD ( NUMBER3 , NUMBER4 , NUMBER5 ) , \n + IRON_SWORD ( NUMBER3 , NUMBER4 , NUMBER6 ) , \n WOOD_SWORD ( NUMBER7 , NUMBER4 , NUMBER5 ) , \n WOOD_SPADE ( NUMBER8 , NUMBER4 , NUMBER5 ) , \n WOOD_PICKAXE ( NUMBER9 , NUMBER4 , NUMBER5 ) , \n public enum Material { \n POWERED_MINECART ( NUMBER10 , NUMBER4 ) , \n EGG ( NUMBER11 , NUMBER12 ) , \n COMPASS ( NUMBER13 ) , \n - FISHING_ROD ( NUMBER14 , NUMBER4 , NUMBER15 ) , \n + FISHING_ROD ( NUMBER14 , NUMBER4 , NUMBER16 ) , \n WATCH ( NUMBER17 ) , \n GLOWSTONE_DUST ( NUMBER18 ) , \n RAW_FISH ( NUMBER19 ) ,", "msg_token": "Fixed some item durability values"} {"diff": " public class ODistributedServerManager extends OServerHandlerAbstract { \n \n public List < ODistributedServerNodeRemote > getNodeList ( ) { \n lock . acquireSharedLock ( ) ; \n + if ( nodes . isEmpty ( ) ) \n + return null ; \n + \n try { \n return new ArrayList < ODistributedServerNodeRemote > ( nodes . values ( ) ) ; \n } finally {", "msg_token": "Optimized clustering node checking when no nodes exists at all"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class TrackableResource < T extends Trackable > { \n \n + private static final Logger logger = LoggerFactory . getLogger ( TrackableResource . class ) ; \n public static final String TRACKING_HEADER = STRING0 ; \n \n private final Class < T > type ; \n public class TrackableResource < T extends Trackable > { \n try { \n latch . await ( NUMBER0 , TimeUnit . SECONDS ) ; \n } catch ( InterruptedException e ) { \n - e . printStackTrace ( ) ; SINGLE \n + logger . trace ( STRING1 , e ) ; \n } \n return resource ; \n }", "msg_token": "Log the exception properly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TagSettingsActivity extends Activity { \n Toast . makeText ( this , R . string . tag_list_saved , Toast . LENGTH_LONG ) . show ( ) ; \n \n tagDataService . save ( tagData ) ; \n + InputMethodManager imm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n + imm . hideSoftInputFromWindow ( tagName . getWindowToken ( ) , NUMBER0 ) ; \n \n if ( isNewTag ) { \n Intent intent = new Intent ( this , TagViewActivity . class ) ;", "msg_token": "Fixed a bug where keyboard would stay up after editing tag settings"} {"diff": " public class ReaderWebView extends WebView { \n this . setWebChromeClient ( mReaderChromeClient ) ; \n this . setWebViewClient ( new ReaderWebViewClient ( this ) ) ; \n this . getSettings ( ) . setUserAgentString ( WordPress . getUserAgent ( ) ) ; \n + this . getSettings ( ) . setDefaultFontSize ( \n + ( int ) ( this . getSettings ( ) . getDefaultFontSize ( ) * getResources ( ) . getConfiguration ( ) . fontScale ) ) ; \n + this . getSettings ( ) . setDefaultFixedFontSize ( \n + ( int ) ( this . getSettings ( ) . getDefaultFixedFontSize ( ) * getResources ( ) . getConfiguration ( ) . fontScale ) ) ; \n SINGLE \n SINGLE \n if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) {", "msg_token": "Follow system font size in Reader post detail"} {"diff": " public abstract class AbstractService < S extends ServiceManager > implements Servi \n \n @ override \n public String toString ( ) { \n - return getClass ( ) . getName ( ) + STRING0 + serviceManager + STRING1 ; \n + return getClass ( ) . getName ( ) + STRING2 + serviceManager . getClass ( ) + STRING1 ; \n } \n }", "msg_token": "Fixed a stack overflow exception if one println ed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n \n public class ViolationMigrationTest { \n public class ViolationMigrationTest { \n \n private void assertMigrationEnded ( ) { \n assertThat ( db . count ( STRING0 ) ) . isEqualTo ( NUMBER0 ) ; \n - \n - SINGLE \n - Set < Thread > threads = Thread . getAllStackTraces ( ) . keySet ( ) ; \n - for ( Thread thread : threads ) { \n - assertThat ( thread . getName ( ) ) . isNotEqualTo ( Progress . THREAD_NAME ) ; \n - } \n } \n }", "msg_token": "Remove test that has too many false positives"} {"diff": " public abstract class PageCacheTest < T extends PageCache > extends PageCacheTestSu \n { \n assertTrue ( cursor . next ( ) ) ; \n } \n + int offset = cursor . getOffset ( ) ; \n byte b ; \n do \n { \n + cursor . setOffset ( offset ) ; \n b = cursor . getByte ( ) ; \n } \n while ( cursor . shouldRetry ( ) ) ;", "msg_token": "Fix flaky page cache test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class EditorExampleActivity extends ActionBarActivity implements EditorFragmentListener { \n @ override \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class EditorFragment extends EditorFragmentInterface { \n + public class EditorFragment extends EditorFragmentAbstract { \n private static final String ARG_PARAM_TITLE = STRING0 ; \n private static final String ARG_PARAM_CONTENT = STRING1 ; \n \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public abstract class EditorFragmentInterface extends Fragment { \n + public abstract class EditorFragmentAbstract extends Fragment { \n public abstract void setTitle ( CharSequence text ) ; \n public abstract void setContent ( CharSequence text ) ; \n protected EditorFragmentListener mEditorFragmentListener ;", "msg_token": "rename EditorFragmentInterface to EditorFragmentAbstract"} {"diff": " public class AdjustDwellTime extends TimetableFilter { \n \n for ( int i = NUMBER0 ; i < tt . getNumStops ( ) ; i ++ ) { \n SINGLE \n - if ( stopId . contains ( tp . getStop ( i ) . getId ( ) . getId ( ) ) ) \n + if ( stopId == null || stopId . contains ( tp . getStop ( i ) . getId ( ) . getId ( ) ) ) \n dwellTimes [ i ] = dwellTime ; \n else \n dwellTimes [ i ] = tt . getScheduledDepartureTime ( i ) - tt . getScheduledArrivalTime ( i ) ;", "msg_token": "allow null wildcard stop ID"} {"diff": " public class ClientSplitBrainTest extends HazelcastTestSupport { \n public void run ( ) throws Exception { \n assertEquals ( STRING0 + id , NUMBER0 , atomicIntegers [ id ] . get ( ) ) ; \n } \n - } , NUMBER1 ) ; \n + } ) ; \n } \n }", "msg_token": "increase the timeout of eventually in ClientSplitBraintTest"} {"diff": " public class WebSettingsTest { \n \n @ test \n public void testPluginState ( ) { \n - WebSettings . PluginState [ ] states = { \n - WebSettings . PluginState . OFF , \n - WebSettings . PluginState . ON , \n - WebSettings . PluginState . ON_DEMAND \n - } ; \n \n - for ( WebSettings . PluginState state : states ) { \n + for ( WebSettings . PluginState state : WebSettings . PluginState . values ( ) ) { \n webSettings . setPluginState ( state ) ; \n assertThat ( webSettings . getPluginState ( ) ) . isEqualTo ( state ) ; \n }", "msg_token": "Java enums have a"} {"diff": " \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "adjust copyright notice"} {"diff": " public class MailServiceTestUtil { \n return _smtpServer . getMessage ( _smtpServer . getEmailCount ( ) - NUMBER0 ) ; \n } \n \n - return null ; \n + throw new IndexOutOfBoundsException ( \n + STRING0 ) ; \n } \n \n public static List < MailMessage > getMailMessages (", "msg_token": "throw exception instead of returning null"} {"diff": " public class ResultSetViewer extends Viewer \n } \n \n void updatePresentation ( final DBCResultSet resultSet ) { \n + if ( getControl ( ) . isDisposed ( ) ) { \n + return ; \n + } \n boolean changed = false ; \n try { \n if ( resultSet instanceof StatResultSet ) {", "msg_token": "RSV event handle fix"} {"diff": " public class VariableInplaceRenamer { \n } ) ; \n } \n } , RENAME_TITLE , null ) ; \n + PsiDocumentManager . getInstance ( myProject ) . commitDocument ( myEditor . getDocument ( ) ) ; \n } \n \n private static VirtualFile getTopLevelVirtualFile ( final FileViewProvider fileViewProvider ) {", "msg_token": "commit document after modifications in a command"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RenderSessionImpl extends FrameworkResourceIdProvider { \n throws PostInflateException { \n if ( view instanceof TabHost ) { \n setupTabHost ( ( TabHost ) view , projectCallback ) ; \n + } else if ( view instanceof QuickContactBadge ) { \n + QuickContactBadge badge = ( QuickContactBadge ) view ; \n + badge . setImageToDefault ( ) ; \n } else if ( view instanceof ViewGroup ) { \n ViewGroup group = ( ViewGroup ) view ; \n final int count = group . getChildCount ( ) ;", "msg_token": "put a default image on the quickcontactbadge"} {"diff": " package NAMESPACE ; \n COMMENT \n public class Version { \n SINGLE \n - private static final String VERSION = STRING0 ; \n + private static final String VERSION = STRING1 ; \n \n private Version ( ) { \n SINGLE", "msg_token": "Building a beta for deployment"} {"diff": " public class ResolveImportUtil { \n if ( parent instanceof PyFileImpl ) { \n PsiElement possibleResult = null ; \n if ( PyNames . INIT_DOT_PY . equals ( ( ( PyFile ) parent ) . getName ( ) ) ) { \n - SINGLE \n - SINGLE \n dir = ( ( PyFile ) parent ) . getContainingDirectory ( ) ; \n possibleResult = resolveInDirectory ( referencedName , containingFile , dir , fileOnly , checkForPackage ) ; \n } \n \n - SINGLE \n - SINGLE \n final PyModuleType moduleType = new PyModuleType ( ( PyFile ) parent ) ; \n final List < ? extends RatedResolveResult > results = moduleType . resolveMember ( referencedName , null , AccessDirection . READ , \n resolveContext ) ; \n public class ResolveImportUtil { \n } \n if ( dir != null ) { \n final PsiElement result = resolveInDirectory ( referencedName , containingFile , dir , fileOnly , checkForPackage ) ; \n - SINGLE \n if ( result != null ) { \n return result ; \n }", "msg_token": "Removed unnecessary comments"} {"diff": " public class Response { \n COMMENT \n COMMENT \n public void cookie ( String name , String value , int maxAge , boolean secured ) { \n - cookie ( STRING0 , name , value , maxAge , secured ) ; \n + cookie ( name , value , maxAge , secured , false ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void cookie ( String name , String value , int maxAge , boolean secured , boolean httpOnly ) { \n + cookie ( STRING0 , name , value , maxAge , secured , httpOnly ) ; \n } \n \n COMMENT", "msg_token": "Add httpOnly cookie method without path"} {"diff": " public class CoNLLOutputterTest extends TestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 ; \n + STRING4 ; \n assertEquals ( expected , actual ) ; \n } \n + \n }", "msg_token": "Fix test CoNLL files should have final blank line"} {"diff": " public class AssertionTest { \n assertEquals ( Double . NaN , Double . NaN , Double . POSITIVE_INFINITY ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test \n public void nullNullmessage ( ) { \n try { \n public class AssertionTest { \n } \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test \n public void nullWithMessage ( ) { \n try {", "msg_token": "Fix dead code warnings in recent Eclipse IDEs"} {"diff": " public class ParseTreeMatch { \n return mismatchedNode ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public String getText ( ) { \n - return tree . getText ( ) ; \n - } \n - \n - COMMENT \n - public boolean failed ( ) { \n - return mismatchedNode != null ; \n - } \n - \n COMMENT \n public boolean succeeded ( ) { \n return mismatchedNode == null ; \n public class TestParseTreeMatcher extends BaseTest { \n assertEquals ( STRING0 , m . getAll ( STRING1 ) . toString ( ) ) ; \n assertEquals ( STRING2 , m . getAll ( STRING3 ) . toString ( ) ) ; SINGLE \n \n - assertEquals ( STRING4 , m . getText ( ) ) ; SINGLE \n + assertEquals ( STRING4 , m . getTree ( ) . getText ( ) ) ; SINGLE \n \n assertNull ( m . get ( STRING5 ) ) ; \n assertEquals ( STRING6 , m . getAll ( STRING5 ) . toString ( ) ) ;", "msg_token": "Remove unnecessary methods ParseTreeMatch getText and failed use getTree"} {"diff": " public final class Debug \n case NUMBER0 : return STRING0 ; \n case NUMBER1 : return STRING1 ; \n case NUMBER2 : return STRING2 ; \n - case NUMBER3 : return STRING3 ; \n + case NUMBER3 : return STRING4 ; \n case NUMBER4 : return STRING5 ; \n case NUMBER5 : return STRING6 ; \n case NUMBER6 : return STRING7 ; \n public final class Debug \n case NUMBER7 : return STRING8 ; \n case NUMBER8 : return STRING9 ; \n case NUMBER9 : return STRING10 ; \n - case NUMBER10 : return STRING11 ; \n - case NUMBER11 : return STRING12 ; \n - case NUMBER12 : return STRING13 ; \n + case NUMBER10 : return STRING14 ; \n + case NUMBER11 : return STRING15 ; \n + case NUMBER12 : return STRING16 ; \n case NUMBER13 : return STRING17 ; \n case NUMBER14 : return STRING18 ; \n case NUMBER15 : return STRING19 ;", "msg_token": "Improve label names of memory types"} {"diff": " public interface IdeaModule extends BuildableElement , HierarchicalElement { \n COMMENT \n COMMENT \n COMMENT \n - boolean getInheritOutputDirs ( ) ; \n + boolean getInheritOutputDirs ( ) ; SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Added a TODO"} {"diff": " public class ActivityController < T extends Activity > \n invokeWhilePaused ( STRING0 ) ; \n return this ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public ActivityController < T > launch ( ) { \n + return create ( ) . start ( ) . postCreate ( null ) . resume ( ) . postResume ( ) . visible ( ) ; \n + } \n } \n public class ActivityControllerTest { \n transcript . assertEventsInclude ( STRING1 , STRING2 ) ; \n } \n \n + @ test \n + public void launch ( ) { \n + controller . launch ( ) ; \n + transcript . assertEventsInclude ( STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ) ; \n + assertEquals ( controller . get ( ) . getWindow ( ) . getDecorView ( ) . getParent ( ) . getClass ( ) . getName ( ) , STRING8 ) ; \n + } \n + \n public static class MyActivity extends Activity { \n @ override \n protected void onRestoreInstanceState ( Bundle savedInstanceState ) {", "msg_token": "Add ActivityController launch which calls all the lifecycle methods that Android calls when launching an Activity and making it visible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class TFSRenameIntegrationTest { \n } \n \n @ test \n - @ ignore \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n public void basicRenameTest7 ( ) throws Exception { \n SINGLE", "msg_token": "Re enabling an ignored test in TFSRenameIntegrationTest"} {"diff": " public abstract class ActionBarSherlock { \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 @ target ( ElementType . TYPE ) \n @ retention ( RetentionPolicy . RUNTIME )", "msg_token": "Remove old information from JavaDocs"} {"diff": " public class ApplicationPluginConvention { \n return applicationName ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setApplicationName ( String applicationName ) { \n this . applicationName = applicationName ; \n } \n public class ApplicationPluginConvention { \n return mainClassName ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setMainClassName ( String mainClassName ) { \n this . mainClassName = mainClassName ; \n } \n public class ApplicationPluginConvention { \n return applicationDefaultJvmArgs ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setApplicationDefaultJvmArgs ( Iterable < String > applicationDefaultJvmArgs ) { \n this . applicationDefaultJvmArgs = applicationDefaultJvmArgs ; \n }", "msg_token": "Add missing javadocs to ApplicationPluginConvention"} {"diff": " public class SearchUICore { \n int k = NUMBER0 ; \n boolean same = false ; \n while ( searchResults . size ( ) > k && k < DEPTH_TO_CHECK_SAME_SEARCH_RESULTS ) { \n - if ( sameSearchResult ( addedResult , searchResults . get ( searchResults . size ( ) - k ) ) ) { \n + if ( sameSearchResult ( addedResult , searchResults . get ( searchResults . size ( ) - k - NUMBER1 ) ) ) { \n same = true ; \n break ; \n }", "msg_token": "Fix search crash"} {"diff": " public class InputMethodSubtypeSwitchingController { \n } \n } ) ; \n \n - public List < ImeSubtypeListItem > getSortedInputMethodAndSubtypeList ( ) { \n - return getSortedInputMethodAndSubtypeList ( false , false ) ; \n - } \n - \n public List < ImeSubtypeListItem > getSortedInputMethodAndSubtypeList ( \n boolean includeAuxiliarySubtypes , boolean isScreenLocked ) { \n final ArrayList < ImeSubtypeListItem > imList = \n public class InputMethodSubtypeSwitchingController { \n public void resetCircularListLocked ( Context context ) { \n mSubtypeList = new InputMethodAndSubtypeList ( context , mSettings ) ; \n mController = ControllerImpl . createFrom ( mController , \n - mSubtypeList . getSortedInputMethodAndSubtypeList ( ) ) ; \n + mSubtypeList . getSortedInputMethodAndSubtypeList ( \n + false COMMENT , false COMMENT ) ) ; \n } \n \n public ImeSubtypeListItem getNextInputMethodLocked ( boolean onlyCurrentIme , InputMethodInfo imi ,", "msg_token": "Remove a redundant method overload"} {"diff": " public class AtmosphereResourceImpl implements \n injectCacheHeaders = nocache != null ? false : true ; \n \n String ac = config . getInitParameter ( ApplicationConfig . DROP_ACCESS_CONTROL_ALLOW_ORIGIN_HEADER ) ; \n - enableAccessControl = ac != null ? Boolean . parseBoolean ( ac ) : true ; \n + enableAccessControl = ac != null ? ! Boolean . parseBoolean ( ac ) : true ; \n \n String wh = config . getInitParameter ( FrameworkConfig . WRITE_HEADERS ) ; \n writeHeaders = wh != null ? Boolean . parseBoolean ( wh ) : true ;", "msg_token": "Fix wrong logic based on the attribute name"} {"diff": " public class ContractionSpellingRule extends AbstractSimpleReplaceRule { \n \n @ override \n public boolean isSpellingRule ( ) { \n - return true ; \n + return false ; SINGLE \n } \n \n @ override", "msg_token": "en change ContractionSpellingRule isSpellingRule just for one day"} {"diff": " public class ResFileDecoder { \n outFileName = outResName + ext ; \n } \n } \n - if ( ! ext . equals ( STRING0 ) ) { \n + if ( ! STRING0 . equals ( ext ) ) { \n decode ( inDir , inFileName , outDir , outFileName , STRING1 ) ; \n return ; \n }", "msg_token": "Fixed NPE in ResFileDecoder decode"} {"diff": " public class PodDBAdapter { \n public final Cursor getSimpleChaptersOfFeedItemCursor ( final FeedItem item ) { \n open ( ) ; \n Cursor c = db \n - . query ( CREATE_TABLE_SIMPLECHAPTERS , null , KEY_ID + STRING0 , \n + . query ( TABLE_NAME_SIMPLECHAPTERS , null , KEY_ID + STRING0 , \n new String [ ] { String . valueOf ( item . getId ( ) ) } , null , \n null , null ) ; \n return c ;", "msg_token": "Method in DB was using the wrong constant"} {"diff": " public class DiagnosticSupport { \n static { \n int apiLevel = - NUMBER0 ; \n try { \n - apiLevel = Build . VERSION . class . getField ( STRING0 ) . getInt ( null ) ; \n + apiLevel = Build . VERSION . SDK_INT ; \n } catch ( Exception e ) { \n apiLevel = Integer . parseInt ( Build . VERSION . SDK ) ; \n } \n public class DisplaySupport { \n if ( screenDensity == - NUMBER0 ) { \n DisplayMetrics displayMetrics = context . getResources ( ) . getDisplayMetrics ( ) ; \n try { \n - screenDensity = DisplayMetrics . class . getField ( STRING1 ) . getFloat ( displayMetrics ) ; \n + screenDensity = displayMetrics . densityDpi ; \n } catch ( Exception e ) { \n screenDensity = SCREEN_DENSITY_MEDIUM ; \n }", "msg_token": "don t use reflection anymore to access fields we re compiling against the latest SDK"} {"diff": " public class CheckpointManager { \n time -= NUMBER0 * NUMBER1 ; \n \n checkArgument ( time > NUMBER2 ) ; \n - log . info ( STRING0 , time ) ; \n + log . info ( STRING1 , time , Utils . dateTimeFormat ( time * NUMBER3 ) ) ; \n \n BufferedInputStream stream = new BufferedInputStream ( checkpoints ) ; \n CheckpointManager manager = new CheckpointManager ( params , stream ) ;", "msg_token": "Print human readable time when initializing a new block store with a checkpoint"} {"diff": " public class WifiMonitor { \n if ( space != - NUMBER0 ) { \n String iface = eventStr . substring ( NUMBER1 , space ) ; \n m = mWifiMonitorSingleton . getMonitor ( iface ) ; \n + if ( m == null && iface . startsWith ( STRING0 ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + m = mWifiMonitorSingleton . getMonitor ( STRING1 ) ; \n + } \n if ( m != null ) { \n if ( m . mMonitoring ) { \n mStateMachine = m . mWifiStateMachine ;", "msg_token": "Fix a bug in single socket connection to Wifi Supplicant"} {"diff": " public class SystemInfo extends SystemInfoRt { \n public static final boolean isMacOSMountainLion = isMac && isOsVersionAtLeast ( STRING0 ) ; \n public static final boolean isMacOSMavericks = isMac && isOsVersionAtLeast ( STRING1 ) ; \n public static final boolean isMacOSYosemite = isMac && isOsVersionAtLeast ( STRING2 ) ; \n + public static final boolean isMacOSElCapitan = isMac && isOsVersionAtLeast ( STRING3 ) ; \n \n @ notnull \n public static String getMacOSMajorVersion ( ) {", "msg_token": "add El Capitan to SystemInfo"} {"diff": " class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse \n \n paintAnnotations ( g , clip ) ; \n paintLineMarkers ( g , firstVisibleOffset , lastVisibleOffset ) ; \n - paintFoldingLines ( ( Graphics2D ) g , clip ) ; \n + paintFoldingLines ( g , clip ) ; \n paintFoldingTree ( g , clip , firstVisibleOffset , lastVisibleOffset ) ; \n paintLineNumbers ( g , clip ) ; \n }", "msg_token": "remove redundant cast"} {"diff": " public class Subscriber implements AutoCloseable \n COMMENT \n COMMENT \n COMMENT \n - void handleNewSource ( final long channelId , final long sessionId ) ; \n + void onNewSource ( final long channelId , final long sessionId ) ; \n } \n \n COMMENT \n public class Subscriber implements AutoCloseable \n COMMENT \n COMMENT \n COMMENT \n - void handleInactiveSource ( final long channelId , final long sessionId ) ; \n + void onInactiveSource ( final long channelId , final long sessionId ) ; \n } \n \n private final Destination destination ;", "msg_token": "Rename event handler callback methods"} {"diff": " public class SelectBox extends Widget implements Disableable { \n @ override \n public void draw ( Batch batch , float parentAlpha ) { \n Drawable background ; \n - if ( disabled ) \n + if ( disabled && style . backgroundDisabled != null ) \n background = style . backgroundDisabled ; \n else if ( list != null && list . getParent ( ) != null && style . backgroundOpen != null ) \n background = style . backgroundOpen ; \n public class SelectBox extends Widget implements Disableable { \n COMMENT \n COMMENT \n public void setSelection ( int selection ) { \n + if ( selection < NUMBER0 ) throw new IllegalArgumentException ( STRING0 ) ; \n this . selectedIndex = selection ; \n }", "msg_token": "Don t use disabled background if there is none"} {"diff": " import NAMESPACE ; \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 import NAMESPACE ; \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 import NAMESPACE ; \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 import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class Timeout { \n COMMENT", "msg_token": "Fix some lexical errors in Sink Source javadocs"} {"diff": " public class ModelBuilderHandler < B extends ModelBuilder , S extends ModelBuilderS \n schema . parameters . fillImpl ( builder . _parms ) ; SINGLE \n builder . init ( false ) ; SINGLE \n \n - _t_start = System . currentTimeMillis ( ) ; \n - if ( doTrain ) builder . trainModel ( ) ; \n - _t_stop = System . currentTimeMillis ( ) ; \n - \n schema . fillFromImpl ( builder ) ; SINGLE \n PojoUtils . copyProperties ( schema . parameters , builder . _parms , PojoUtils . FieldNaming . ORIGIN_HAS_UNDERSCORES , null , new String [ ] { STRING0 , STRING1 } ) ; \n schema . setHttpStatus ( HttpResponseStatus . OK . getCode ( ) ) ; \n + \n + _t_start = System . currentTimeMillis ( ) ; \n + if ( doTrain ) builder . trainModel ( ) ; \n + _t_stop = System . currentTimeMillis ( ) ; \n return schema ; \n }", "msg_token": "fixed race in model builder causing lost warnings about ignored columns"} {"diff": " public class WPActivityUtils { \n String locale = sharedPreferences . getString ( AppSettingsFragment . LANGUAGE_PREF_KEY , STRING0 ) ; \n \n if ( ! TextUtils . isEmpty ( contextCountry ) ) { \n - contextLanguage += STRING1 + contextCountry ; \n + contextLanguage += STRING2 + contextCountry ; \n } \n \n if ( ! locale . equals ( contextLanguage ) ) {", "msg_token": "Use notation consistent with OS reported locales"} {"diff": " public class CompletionPanel { \n scrollPane . setViewportView ( completionList = createSuggestionList ( position , items ) ) ; \n popupMenu . add ( scrollPane , BorderLayout . CENTER ) ; \n popupMenu . setPopupSize ( calcWidth ( ) , calcHeight ( items . getSize ( ) ) ) ; SINGLE \n - textarea . requestFocusInWindow ( ) ; \n + popupMenu . setFocusable ( false ) ; \n ASTGenerator astGenerator = editor . getErrorChecker ( ) . getASTGenerator ( ) ; \n synchronized ( astGenerator ) { \n astGenerator . updateJavaDoc ( completionList . getSelectedValue ( ) ) ;", "msg_token": "Prevent completion panel getting focus"} {"diff": " class WindowStateAnimator { \n final TaskStack stack = task . mStack ; \n if ( stack != null && ! stack . isFullscreen ( ) ) { \n stack . getDimBounds ( mTmpStackBounds ) ; \n - clipRect . intersect ( mTmpStackBounds ) ; \n + finalClipRect . set ( mTmpStackBounds ) ; \n } \n } \n }", "msg_token": "Set final crop on wallpaper instead of intersect clip with stack bounds"} {"diff": " public class ScalaCompileOptions extends AbstractOptions { \n return fieldName . equals ( STRING0 ) \n || fieldName . equals ( STRING1 ) \n || fieldName . equals ( STRING2 ) \n - || fieldName . equals ( STRING3 ) \n + || fieldName . equals ( STRING4 ) \n || fieldName . equals ( STRING5 ) SINGLE \n || fieldName . equals ( STRING6 ) && ! optimize ; \n }", "msg_token": "fixed mapping to Ant properties"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EnvironmentPresenter extends BasePresenter \n \n @ inject \n public EnvironmentPresenter ( Display view , \n - EnvironmentServerOperations server ) \n + EnvironmentServerOperations server , \n + GlobalDisplay globalDisplay ) \n { \n super ( view ) ; \n \n view_ = view ; \n server_ = server ; \n + globalDisplay_ = globalDisplay ; \n \n } \n \n private final Display view_ ; \n private final EnvironmentServerOperations server_ ; \n + private final GlobalDisplay globalDisplay_ ; \n }", "msg_token": "add global display accessor"} {"diff": " public class LookupImpl extends LightweightHint implements Lookup , Disposable { \n } \n myElementHint = null ; \n } \n + if ( ! isFocused ( ) ) { \n + return ; \n + } \n + \n final Collection < LookupElementAction > actions = myModel . getActionsFor ( item ) ; \n if ( ! actions . isEmpty ( ) ) { \n myHintAlarm . addRequest ( new Runnable ( ) {", "msg_token": "don t show bulb in a non focused lookup"} {"diff": " final class DisplayPowerController implements AutomaticBrightnessController . Call \n SINGLE \n SINGLE \n SINGLE \n - setScreenState ( mPowerRequest . screenState == DisplayPowerRequest . SCREEN_STATE_DOZE \n - ? Display . STATE_DOZING : Display . STATE_ON ) ; \n + \n + if ( mPowerRequest . screenState == DisplayPowerRequest . SCREEN_STATE_DOZE ) { \n + if ( ! mScreenBrightnessRampAnimator . isAnimating ( ) ) { \n + setScreenState ( Display . STATE_DOZING ) ; \n + } \n + } else { \n + setScreenState ( Display . STATE_ON ) ; \n + } \n \n if ( mPowerRequest . blockScreenOn \n && mPowerState . getElectronBeamLevel ( ) == FLOAT0 ) {", "msg_token": "Change display state modification during dozing"} {"diff": " public class RecordWriter < T extends Record > implements Writer < T > { \n \n } \n \n - public RecordWriter ( AbstractInputTask inputBase , Class < T > outputClass ) { \n + public RecordWriter ( AbstractInputTask < ? > inputBase , Class < T > outputClass ) { \n \n this . environment = inputBase . getEnvironment ( ) ; \n connectOutputGate ( outputClass , null ) ; \n } \n \n - public RecordWriter ( AbstractInputTask inputBase , Class < T > outputClass , ChannelSelector < T > selector ) { \n + public RecordWriter ( AbstractInputTask < ? > inputBase , Class < T > outputClass , ChannelSelector < T > selector ) { \n this . environment = inputBase . getEnvironment ( ) ; \n connectOutputGate ( outputClass , selector ) ; \n }", "msg_token": "Fixed two warnings in nephele common"} {"diff": " public class OnBoardDepartServiceImpl implements OnBoardDepartService { \n GeometryUtils . splitGeometryAtFraction ( geometry , fractionCovered ) ; \n geomRemaining = geomPair . getSecond ( ) ; \n \n - if ( geomRemaining . isEmpty ( ) ) { \n + if ( geometry . isEmpty ( ) ) { \n lon = Double . NaN ; \n lat = Double . NaN ; \n } else { \n - Coordinate start = geomRemaining . getCoordinateN ( NUMBER0 ) ; \n + Coordinate start ; \n + if ( geomRemaining . isEmpty ( ) ) { \n + start = geometry . getCoordinateN ( geometry . getNumPoints ( ) - NUMBER1 ) ; \n + } else { \n + start = geomRemaining . getCoordinateN ( NUMBER0 ) ; \n + } \n lon = start . x ; \n lat = start . y ; \n }", "msg_token": "Fix NaN bug in OnBoardDepartServiceImpl"} {"diff": " public final class Constants { \n public static final class Urls { \n public static final String ZHIHU_DAILY_BEFORE = STRING0 ; \n public static final String ZHIHU_DAILY_OFFLINE_NEWS = STRING1 ; \n - public static final String ZHIHU_DAILY_PURIFY_BEFORE = STRING2 ; \n - public static final String SEARCH = STRING3 ; \n + public static final String ZHIHU_DAILY_PURIFY_BEFORE = STRING4 ; \n + public static final String SEARCH = STRING5 ; \n } \n \n public static final class Dates {", "msg_token": "Update accelerate server url"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class ParseTreeVisitor < T > { \n - public T visit ( ParseTree . RuleNode node ) { \n - return node . accept ( this ) ; \n + public T visit ( ParseTree tree ) { \n + return tree . accept ( this ) ; \n } \n \n COMMENT", "msg_token": "ParseTreeVisitor visit takes a ParseTree only visitChildren takes a RuleNode"} {"diff": " public final class BarcodeCaptureActivity extends AppCompatActivity { \n } \n } ; \n \n + findViewById ( R . id . topLayout ) . setOnClickListener ( listener ) ; \n Snackbar . make ( mGraphicOverlay , R . string . permission_camera_rationale , \n Snackbar . LENGTH_INDEFINITE ) \n . setAction ( R . string . ok , listener )", "msg_token": "Fix zoom gesture crash request camera permission upon tap if not granted"} {"diff": " public class MocksSerializationTest extends TestBase implements Serializable { \n try { \n SINGLE \n SimpleSerializationUtil . serializeAndBack ( mockWithPrivateConstructor ) ; \n + fail ( STRING0 ) ; \n } catch ( ObjectStreamException e ) { \n SINGLE \n Assertions . assertThat ( e . toString ( ) ) . contains ( STRING1 ) ;", "msg_token": "fixes missing fail after the failing statement"} {"diff": " public class SuperKoalio extends GdxTest { \n \n private void updateKoala ( float deltaTime ) { \n if ( deltaTime == NUMBER0 ) return ; \n + \n + if ( deltaTime > FLOAT0 ) \n + deltaTime = FLOAT0 ; \n + \n koala . stateTime += deltaTime ; \n \n SINGLE", "msg_token": "Clamp delta time to prevent Koalio from falling through walls when game window is moved"} {"diff": " public class TribeIT extends ESIntegTestCase { \n Settings . Builder tribe1Defaults = Settings . builder ( ) ; \n Settings . Builder tribe2Defaults = Settings . builder ( ) ; \n for ( Map . Entry < String , String > entry : asMap . entrySet ( ) ) { \n + if ( entry . getKey ( ) . startsWith ( STRING0 ) ) { \n + continue ; \n + } \n tribe1Defaults . put ( STRING1 + entry . getKey ( ) , entry . getValue ( ) ) ; \n tribe2Defaults . put ( STRING2 + entry . getKey ( ) , entry . getValue ( ) ) ; \n }", "msg_token": "Fix tribe integ test to not try to pass through path settings"} {"diff": " public class DozerProducer extends DefaultProducer { \n } \n \n SINGLE \n - Class < ? > targetModel = endpoint . getCamelContext ( ) . getClassResolver ( ) . resolveClass ( \n + Class < ? > targetModel = endpoint . getCamelContext ( ) . getClassResolver ( ) . resolveMandatoryClass ( \n endpoint . getConfiguration ( ) . getTargetModel ( ) ) ; \n \n SINGLE", "msg_token": "Fix potential NPE as target model is mandatory when using producer"} {"diff": " public class StickyListHeadersListView extends FrameLayout { \n mList . setOnItemLongClickListener ( listener ) ; \n } \n \n + public void addHeaderView ( View v , Object data , boolean isSelectable ) { \n + mList . addHeaderView ( v , data , isSelectable ) ; \n + } \n + \n public void addHeaderView ( View v ) { \n mList . addHeaderView ( v ) ; \n }", "msg_token": "Add method for addHeaderView View Object boolean"} {"diff": " final class OpenFileEntry implements Closeable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n final class OpenFileEntry implements Closeable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RemoteBlockInStreamIntegrationTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ test \n public void remoteReadLockTest ( ) throws Exception {", "msg_token": "Incorporated PR comments"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove an import no longer in use was sourced from a wrong dependency in the past"} {"diff": " import NAMESPACE ; \n COMMENT \n public void draw ( Cue cue , CaptionStyleCompat style , float fontScale , Canvas canvas , \n int cueBoxLeft , int cueBoxTop , int cueBoxRight , int cueBoxBottom ) { \n + if ( TextUtils . isEmpty ( cue . text ) ) { \n + SINGLE \n + return ; \n + } \n + \n if ( TextUtils . equals ( cueText , cue . text ) \n && cuePosition == cue . position \n && Util . areEqual ( cueAlignment , cue . alignment )", "msg_token": "Don t render empty cues"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VolumePanel extends Handler { \n if ( mCallback != null ) { \n mCallback . onVisible ( true ) ; \n } \n + announceDialogShown ( ) ; \n } \n \n SINGLE \n public class VolumePanel extends Handler { \n } \n } \n \n + private void announceDialogShown ( ) { \n + mView . sendAccessibilityEvent ( AccessibilityEvent . TYPE_WINDOW_STATE_CHANGED ) ; \n + } \n + \n private boolean isShowing ( ) { \n return mDialog . isShowing ( ) ; \n }", "msg_token": "Announcing the stream type when the volume panel comes up"} {"diff": " public class DiffPreviewPanel implements PreviewPanel { \n myPanel . add ( myMergePanelComponent , BorderLayout . CENTER ) ; \n myMergePanelComponent . setToolbarEnabled ( false ) ; \n MergePanel2 mergePanel = getMergePanel ( ) ; \n - mergePanel . setShowLineNumbers ( false ) ; \n - mergePanel . setAdditionalLinesAndColumns ( NUMBER0 , NUMBER0 ) ; \n - mergePanel . setScrollToFirstDiff ( false ) ; \n \n for ( int i = NUMBER1 ; i < MergePanel2 . EDITORS_COUNT ; i ++ ) { \n final EditorMouseListener motionListener = new EditorMouseListener ( i ) ;", "msg_token": "remove unnecessary calls to editor settings"} {"diff": " public class ExecuteShellCommandChange extends AbstractChange { \n \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 + getExecutable ( ) + STRING1 + getArgs ( ) ; \n + } \n }", "msg_token": "improve deebug output"} {"diff": " public class CommandLineParameters { \n \n @ parameter ( names = { STRING0 } , \n description = STRING1 ) \n - \n boolean preFlight ; \n + \n @ parameter ( names = { STRING2 } , \n description = STRING3 ) \n boolean noTransit ; \n public class CommandLineParameters { \n server |= ( inMemory || preFlight || port != null ) ; \n if ( graphDirectory == null ) graphDirectory = DEFAULT_GRAPH_DIRECTORY ; \n if ( routerIds == null ) { \n - if ( autoScan ) \n + if ( autoScan || inMemory || preFlight ) \n routerIds = Collections . emptyList ( ) ; \n else \n routerIds = Arrays . asList ( DEFAULT_ROUTER_ID ) ;", "msg_token": "Do not add default autoRegister in preFlight mode"} {"diff": " public abstract class HardwareRenderer { \n DisplayList displayList = view . getDisplayList ( ) ; \n if ( displayList != null ) { \n if ( canvas . drawDisplayList ( displayList , mRedrawClip ) ) { \n - if ( mRedrawClip . isEmpty ( ) ) { \n + if ( mRedrawClip . isEmpty ( ) || view . getParent ( ) == null ) { \n view . invalidate ( ) ; \n } else { \n view . getParent ( ) . invalidateChild ( view , mRedrawClip ) ;", "msg_token": "Prevents NPE when a View was detached"} {"diff": " public class AbstractPopup implements JBPopup { \n @ override \n public void run ( ) { \n SINGLE \n + SwingUtilities . invokeLater ( myFinalRunnable ) ; \n + SINGLE \n SwingUtilities . invokeLater ( typeAheadDone . createSetDoneRunnable ( ) ) ; \n - myFinalRunnable . run ( ) ; \n myFinalRunnable = null ; \n } \n } ;", "msg_token": "defer final runnable execution"} {"diff": " public abstract class FileUpload { \n return fileTooBig ; \n } \n \n + SINGLE \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public abstract boolean isInMemory ( ) ; \n + \n SINGLE \n \n COMMENT \n public class AdaptiveFileUpload extends FileUpload { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public boolean isInMemory ( ) { \n return data != null ; \n } \n public class DiskFileUpload extends FileUpload { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public boolean isInMemory ( ) { \n + return false ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public File getDestinationFolder ( ) { \n return destFolder ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class MemoryFileUpload extends FileUpload { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public boolean isInMemory ( ) { \n + return true ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n @ override", "msg_token": "added isInMemory to fileupload"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StateIngame implements GameState { \n } \n SINGLE \n final boolean hudHidden = CoreRegistry . get ( Config . class ) . getRendering ( ) . getDebug ( ) . isHudHidden ( ) ; \n - for ( UIDisplayElement element : CoreRegistry . get ( GUIManager . class ) . getWindowById ( STRING0 ) . getDisplayElements ( ) ) { \n - element . setVisible ( ! hudHidden ) ; \n + UIWindow hudWindow = CoreRegistry . get ( GUIManager . class ) . getWindowById ( STRING0 ) ; \n + if ( null != hudWindow ) { \n + for ( UIDisplayElement element : hudWindow . getDisplayElements ( ) ) { \n + element . setVisible ( ! hudHidden ) ; \n + } \n } \n }", "msg_token": "Handle case where there are no GUI hud elements"} {"diff": " public class Executors { \n this . task = task ; \n this . result = result ; \n } \n - @ autoreleasepool \n public T call ( ) { \n - task . run ( ) ; \n + callInternal ( ) ; \n return result ; \n } \n + @ autoreleasepool \n + private void callInternal ( ) { task . run ( ) ; } \n } \n \n COMMENT \n public abstract class ForkJoinTask < V > implements Future < V > , Serializable { \n throw new RuntimeException ( ex ) ; \n } \n } \n + @ autoreleasepool \n public void run ( ) { invoke ( ) ; } \n private static final long serialVersionUID = NUMBER0 ; \n }", "msg_token": "Ignoring AutoreleasePool annotation on method with non void return type"} {"diff": " public class Account extends AbstractEntity { \n } \n \n public boolean hasBookmarkFor ( final Jid conferenceJid ) { \n - for ( Bookmark bmark : this . bookmarks ) { \n - if ( bmark . getJid ( ) . equals ( conferenceJid . toBareJid ( ) ) ) { \n + for ( Bookmark bookmark : this . bookmarks ) { \n + final Jid jid = bookmark . getJid ( ) ; \n + if ( jid != null && jid . equals ( conferenceJid . toBareJid ( ) ) ) { \n return true ; \n } \n }", "msg_token": "fixed another npe in hasBookmark"} {"diff": " public class ServerConfigBuilder { \n builderActions . put ( STRING0 , new BuilderAction < > ( ServerConfigBuilder : : split , ServerConfigBuilder . this : : compressionWhiteListMimeTypes ) ) ; \n builderActions . put ( STRING1 , new BuilderAction < > ( ServerConfigBuilder : : split , ServerConfigBuilder . this : : compressionBlackListMimeTypes ) ) ; \n builderActions . put ( STRING2 , new BuilderAction < > ( ServerConfigBuilder : : split , ServerConfigBuilder . this : : indexFiles ) ) ; \n + SINGLE \n } \n \n private ServerConfigBuilder ( Path baseDir ) {", "msg_token": "Add TODO about supporting SSLContext in sysProps"} {"diff": " public class GroupedLogMessage extends AbstractMessage { \n return myMessages . get ( NUMBER0 ) . getMessage ( ) ; \n } \n \n + @ override \n + public void setAssigneeId ( Integer assigneeId ) { \n + for ( AbstractMessage message : myMessages ) { \n + message . setAssigneeId ( assigneeId ) ; \n + } \n + super . setAssigneeId ( assigneeId ) ; \n + } \n }", "msg_token": "set assignee ID in nested messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fix small error in javadoc"} {"diff": " public class RegionAddressRepositoryBinary implements RegionAddressRepository { \n \n @ override \n public synchronized void preloadStreets ( City o , ResultMatcher < Street > resultMatcher ) { \n - SINGLE \n - if ( o != null ) { \n - Collection < Street > streets = o . getStreets ( ) ; \n - if ( ! streets . isEmpty ( ) ) { \n - return ; \n - } \n - try { \n - file . preloadStreets ( o , BinaryMapIndexReader . buildAddressRequest ( resultMatcher ) ) ; \n - } catch ( IOException e ) { \n - log . error ( STRING0 , e ) ; SINGLE \n - } \n + SINGLE \n + Collection < Street > streets = o . getStreets ( ) ; \n + if ( ! streets . isEmpty ( ) ) { \n + return ; \n + } \n + try { \n + file . preloadStreets ( o , BinaryMapIndexReader . buildAddressRequest ( resultMatcher ) ) ; \n + } catch ( IOException e ) { \n + log . error ( STRING0 , e ) ; SINGLE \n } \n }", "msg_token": "This NPE needs better fix"} {"diff": " public abstract class Selector { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n handle = META_PROPERTY_GETTER . bindTo ( res ) ; \n } \n } catch ( IllegalAccessException iae ) {", "msg_token": "adding comment for possible solution for static properties with ensuring static initialization of the host class"} {"diff": " public class GoPerformanceTest extends GoCodeInsightFixtureTestCase { \n \n private void doInspectionTest ( @ notnull InspectionProfileEntry tool , int expected ) { \n if ( ! new File ( myFixture . getTestDataPath ( ) , STRING0 ) . exists ( ) ) { \n - System . err . println ( STRING1 ) ; \n + System . err . println ( STRING2 + getBasePath ( ) + STRING3 ) ; \n return ; \n }", "msg_token": "clarify error message"} {"diff": " public class TestClose extends TomcatBaseTest { \n \n @ onerror \n public void onError ( Throwable t ) { \n - log . info ( STRING0 + t . getMessage ( ) ) ; \n + log . info ( STRING1 , t ) ; \n events . onErrorThrowable = t ; \n events . onErrorCalled . countDown ( ) ; \n }", "msg_token": "Make debugging easier"} {"diff": " public class GraphHopperStorage implements GraphStorage \n protected final int nextNodeEntryIndex ( int sizeInBytes ) \n { \n int tmp = nodeEntryIndex ; \n - nodeEntryIndex += NUMBER0 ; \n + nodeEntryIndex += sizeInBytes ; \n return tmp ; \n }", "msg_token": "apply method parameter"} {"diff": " public class SitePluginTests extends AbstractNodesTests { \n assertThat ( response . errorCode ( ) , equalTo ( RestStatus . OK . getStatus ( ) ) ) ; \n assertThat ( response . response ( ) , containsString ( STRING0 ) ) ; \n } \n - \n - @ test \n - public void testListSitePlugin ( ) throws Exception { \n - SINGLE \n - HttpClientResponse response = httpClient ( STRING1 ) . request ( STRING2 ) ; \n - assertThat ( response . errorCode ( ) , equalTo ( RestStatus . OK . getStatus ( ) ) ) ; \n - assertThat ( response . response ( ) , containsString ( STRING3 ) ) ; \n - assertThat ( response . response ( ) , containsString ( STRING4 ) ) ; \n - } \n }", "msg_token": "Remove obsolete test"} {"diff": " class RollupStats extends Iced { \n Roll ( H2OCountedCompleter cmp , Key rskey ) { super ( cmp ) ; _rskey = rskey ; } \n @ override public void map ( Chunk c ) { _rs = new RollupStats ( NUMBER0 ) . map ( c ) ; } \n @ override public void reduce ( Roll roll ) { _rs . reduce ( roll . _rs ) ; } \n - @ override public void postGlobal ( ) { _rs . _sigma = Math . sqrt ( _rs . _sigma / ( _rs . _rows - NUMBER1 ) ) ; } \n + @ override public void postGlobal ( ) { if ( _rs == null ) _rs = new RollupStats ( NUMBER0 ) ; else _rs . _sigma = Math . sqrt ( _rs . _sigma / ( _rs . _rows - NUMBER1 ) ) ; } \n SINGLE \n @ override public boolean logVerbose ( ) { return false ; } \n }", "msg_token": "Handle case of no rows making any RollupStats"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CordovaWebView extends WebView { \n COMMENT \n COMMENT \n COMMENT \n - public CordovaWebView ( Context context , AttributeSet attrs , int defStyle , boolean privateBrowsing ) { \n + @ targetapi ( NUMBER0 ) \n + public CordovaWebView ( Context context , AttributeSet attrs , int defStyle , boolean privateBrowsing ) { \n super ( context , attrs , defStyle , privateBrowsing ) ; \n if ( CordovaInterface . class . isInstance ( context ) ) \n { \n public class CordovaWebView extends WebView { \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n + @ suppresslint ( STRING1 ) \n private void setup ( ) { \n \n this . setInitialScale ( NUMBER1 ) ;", "msg_token": "Fix API Level linter errors in CordovaWebView java"} {"diff": " public class HistoryWindow \n \n private SearchPanel searchPanel ; \n \n - private JMenuBar historyMenuBar = new JMenuBar ( ) ; \n - \n private HistoryMenu historyMenu ; \n \n private TransparentPanel northPanel \n public class HistoryWindow \n COMMENT \n private void initPanels ( ) \n { \n - this . historyMenuBar . add ( historyMenu ) ; \n - \n - this . northPanel . add ( historyMenuBar , BorderLayout . NORTH ) ; \n - \n this . northPanel . add ( searchPanel , BorderLayout . CENTER ) ; \n \n this . mainPanel . setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ;", "msg_token": "Remove unused menu from History window"} {"diff": " public class SplitDocument { \n return new SplitDocument ( \n id , \n root , \n - ImmutableTable . copyOf ( subDocuments ) , \n - ImmutableMultimap . copyOf ( structures ) \n + subDocuments , \n + structures \n ) ; \n }", "msg_token": "Improved SplitDocument Builder efficiency"} {"diff": " public class AndroidConfiguration extends BuildConfiguration . Fragment { \n \n private ConfigurationDistinguisher ( String suffix ) { \n this . suffix = suffix ; \n - } ; \n + } \n } \n \n COMMENT", "msg_token": "Remove an unnecessary semicolon"} {"diff": " public class PyPep8NamingInspection extends PyInspection { \n return true ; \n } \n for ( PyClassLikeType ancestor : pyClass . getAncestorTypes ( myTypeEvalContext ) ) { \n - if ( blackList . contains ( ancestor . getClassQName ( ) ) ) { \n + if ( ancestor != null && blackList . contains ( ancestor . getClassQName ( ) ) ) { \n return true ; \n } \n }", "msg_token": "Fix NPE when one of class ancestors is unresolved in PyPep8NamingInspection"} {"diff": " public abstract class InplaceRefactoring { \n } \n \n protected SearchScope getReferencesSearchScope ( VirtualFile file ) { \n - return file == null \n - ? ProjectScope . getProjectScope ( myElementToRename . getProject ( ) ) \n - : new LocalSearchScope ( myElementToRename . getContainingFile ( ) ) ; \n + if ( file == null ) { \n + return ProjectScope . getProjectScope ( myElementToRename . getProject ( ) ) ; \n + } \n + else { \n + final PsiFile containingFile = myElementToRename . getContainingFile ( ) ; \n + if ( ! file . equals ( containingFile . getVirtualFile ( ) ) ) { \n + final PsiFile topLevelFile = PsiManager . getInstance ( myProject ) . findFile ( file ) ; \n + return topLevelFile == null ? ProjectScope . getProjectScope ( myElementToRename . getProject ( ) ) \n + : new LocalSearchScope ( topLevelFile ) ; \n + } \n + return new LocalSearchScope ( containingFile ) ; \n + } \n } \n \n @ nullable", "msg_token": "include top level file in scope if refactoring was started inside injected element"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class DetailListPreference extends ListPreference \n ListView listView = mDialog . getListView ( ) ; \n Button positive = mDialog . getButton ( DialogInterface . BUTTON_POSITIVE ) ; \n Button negative = mDialog . getButton ( DialogInterface . BUTTON_NEGATIVE ) ; \n - Typeface typeface = TypefaceCache . getTypeface ( getContext ( ) , \n - TypefaceCache . FAMILY_DEFAULT_LIGHT , \n - Typeface . BOLD ) ; \n + Typeface typeface = WPPrefUtils . getSemiboldTypeface ( getContext ( ) ) ; \n \n if ( listView != null ) { \n listView . setDividerHeight ( NUMBER0 ) ;", "msg_token": "Updated DetailListPreference to use WPPrefUtils to get typeface"} {"diff": " public abstract class InspectionToolsConfigurable extends BaseConfigurable imple \n } \n \n public void apply ( ) throws ConfigurationException { \n - for ( String name : myPanels . keySet ( ) ) { \n - if ( myDeletedProfiles . contains ( name ) ) { \n + for ( final Iterator < String > it = myPanels . keySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { \n + final String name = it . next ( ) ; \n + if ( myDeletedProfiles . remove ( name ) ) { \n deleteProfile ( name ) ; \n + it . remove ( ) ; \n } else { \n myPanels . get ( name ) . apply ( ) ; \n }", "msg_token": "remove deleted profiles from every cache on apply"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Printing { \n if ( ! secret . metadata ( ) . isEmpty ( ) ) { \n System . out . println ( INDENT + secret . metadata ( ) . toString ( ) ) ; \n } \n + if ( secret . expiry ( ) > NUMBER0 ) { \n + System . out . println ( STRING0 ) ; \n + Date d = new Date ( secret . expiry ( ) * NUMBER1 ) ; \n + System . out . println ( INDENT + DateFormat . getDateTimeInstance ( ) . format ( d ) ) ; \n + } \n } \n }", "msg_token": "Display expiry in the cli"} {"diff": " public abstract class NanoHTTPD { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class NanoHTTPD { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix outdated javadoc comment"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n try { \n AlluxioURI alluxioUriToDel = mInodeTree . getPath ( delInode ) ; \n SINGLE \n + SINGLE \n if ( mMountTable . isMountPoint ( alluxioUriToDel ) ) { \n unmountInternal ( alluxioUriToDel ) ; \n } else {", "msg_token": "Add a todo for validation"} {"diff": " public class PageBuilder \n \n public PageBuilder ( List < TupleInfo > tupleInfos , DataSize maxSize ) \n { \n - int bytesPerColumn = ( int ) ( maxSize . toBytes ( ) / tupleInfos . size ( ) ) ; \n + int bytesPerColumn = NUMBER0 ; \n + if ( ! tupleInfos . isEmpty ( ) ) { \n + bytesPerColumn = ( int ) ( maxSize . toBytes ( ) / tupleInfos . size ( ) ) ; \n + } \n \n blockBuilders = new BlockBuilder [ tupleInfos . size ( ) ] ; \n for ( int i = NUMBER0 ; i < blockBuilders . length ; i ++ ) {", "msg_token": "Fix divide by zero bug"} {"diff": " public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem \n private String mHttpPassword = STRING0 ; \n private EmailChecker mEmailChecker ; \n private boolean mEmailAutoCorrected ; \n - private boolean mForceSelfHosted ; \n \n public WelcomeFragmentSignIn ( ) { \n mEmailChecker = new EmailChecker ( ) ; \n public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem \n } \n } \n } ) ; \n - if ( mForceSelfHosted ) { \n - forceSelfHostedMode ( ) ; \n - } \n return rootView ; \n } \n \n - public void setForceSelfHostedMode ( boolean force ) { \n - mForceSelfHosted = force ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove unused function"} {"diff": " import NAMESPACE ; \n SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO \n COMMENT \n COMMENT \n public ObjectId getObjectId ( final String field ) { \n - Object obj = get ( field ) ; \n - return ( obj != null ) ? ( ObjectId ) obj : null ; \n + return ( ObjectId ) get ( field ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Date getDate ( final String field ) { \n + return ( Date ) get ( field ) ; \n } \n \n COMMENT", "msg_token": "simplified getObjectId code and added getDate method"} {"diff": " public abstract class ContentProvider implements ComponentCallbacks2 { \n Cursor cursor = ContentProvider . this . query ( uri , projection , selection , \n selectionArgs , sortOrder , CancellationSignal . fromTransport ( \n cancellationSignal ) ) ; \n - \n - SINGLE \n - final int columnCount = cursor . getCount ( ) ; \n - String [ ] allColumns = new String [ columnCount ] ; \n - for ( int i = NUMBER0 ; i < columnCount ; i ++ ) { \n - allColumns [ i ] = cursor . getColumnName ( i ) ; \n + if ( cursor == null ) { \n + return null ; \n } \n \n SINGLE \n - return new MatrixCursor ( allColumns , NUMBER0 ) ; \n + return new MatrixCursor ( cursor . getColumnNames ( ) , NUMBER0 ) ; \n } \n final String original = setCallingPackage ( callingPkg ) ; \n try {", "msg_token": "Fix ArrayIndexOutOfBoundsException in Transport query"} {"diff": " public final class MediaBrowser { \n Log . d ( TAG , STRING0 + mMediaSessionToken ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public static class MediaItem implements Parcelable { \n private final int mFlags ; \n private final MediaDescription mDescription ; \n public abstract class MediaBrowserService extends Service { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public Bundle getExtras ( ) { \n return mExtras ;", "msg_token": "Add a class Javadoc for MediaBrowser MediaItem"} {"diff": " public ISeq rest ( ) { \n \n public int count ( ) { \n if ( oa != null ) \n - return oa . length ; \n + return oa . length - i ; \n return Array . getLength ( array ) - i ; \n }", "msg_token": "fixed ArraySeq count"} {"diff": " public class FormAuthenticator \n String requestURI = request . getRequestURI ( ) ; \n if ( requestURI == null ) \n return ( false ) ; \n - return ( requestURI . equals ( request . getRequestURI ( ) ) ) ; \n + return ( requestURI . equals ( sreq . getRequestURI ( ) ) ) ; \n \n }", "msg_token": "Fix minor glitch submitted by Anil Saldhana"} {"diff": " public class LocalInstanceManagerTest { \n assertEquals ( NUMBER0 , tms . length ) ; \n for ( TaskManager tm : tms ) { \n assertEquals ( ExecutionMode . CLUSTER , tm . getExecutionMode ( ) ) ; \n - assertTrue ( tm . getConnectionInfo ( ) . address ( ) . isLoopbackAddress ( ) ) ; \n } \n } \n finally {", "msg_token": "Runtime Tests Remove flaky check in LocalInstanceManagerTest"} {"diff": " public class BodyResolver { \n @ nullable \n private ConstructorDescriptor getDelegatedConstructor ( @ notnull ConstructorDescriptor constructor ) { \n ResolvedCall < ConstructorDescriptor > call = trace . get ( CONSTRUCTOR_RESOLVED_DELEGATION_CALL , constructor ) ; \n - return call == null ? null : call . getResultingDescriptor ( ) ; \n + return call == null ? null : call . getResultingDescriptor ( ) . getOriginal ( ) ; \n } \n \n public void resolveBodies ( @ notnull BodiesResolveContext c ) {", "msg_token": "Use original constructor descriptor when searching cycles"} {"diff": " public class RNTN implements Layer { \n \n \n final List < Tree > forwardPropTrees = new CopyOnWriteArrayList < > ( ) ; \n - if ( ! forwardPropTrees . isEmpty ( ) ) \n Parallelization . iterateInParallel ( trainingTrees , new Parallelization . RunnableWithParams < Tree > ( ) { \n \n public void run ( Tree currentItem , Object [ ] args ) {", "msg_token": "remove bad if statement"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HighlyAvailableGraphDatabase implements GraphDatabaseService , Respo \n new ZooKeeperLastCommittedTxIdSetter ( broker ) ) ; \n } \n } \n - this . localGraph . addShellApp ( Pullupdates . class ) ; \n } \n finally \n {", "msg_token": "Removed code for old shell ha branch not used anymore"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExpandableDrawerItem extends BasePrimaryDrawerItem < ExpandableDrawer \n \n private Drawer . OnDrawerItemClickListener mOnDrawerItemClickListener ; \n \n + @ colorint \n + private Integer mArrowColor ; \n + \n + public ExpandableDrawerItem withArrowColor ( @ colorint int color ) { \n + mArrowColor = color ; \n + return this ; \n + } \n + \n @ override \n public int getType ( ) { \n return R . id . material_drawer_item_expandable ; \n public class ExpandableDrawerItem extends BasePrimaryDrawerItem < ExpandableDrawer \n bindViewHelper ( viewHolder ) ; \n \n SINGLE \n - viewHolder . arrow . setColor ( getIconColor ( ctx ) ) ; \n + viewHolder . arrow . setColor ( mArrowColor != null ? mArrowColor : getIconColor ( ctx ) ) ; \n viewHolder . arrow . clearAnimation ( ) ; \n if ( ! isExpanded ( ) ) { \n ViewCompat . setRotation ( viewHolder . arrow , NUMBER0 ) ;", "msg_token": "Add method to set ExpandableDrawerItem arrow color"} {"diff": " public final class CheckpointUtils { \n \n public static boolean createDistributedCheckpoint ( ) { \n \n - return GlobalConfiguration . getBoolean ( STRING0 , true ) ; \n + return GlobalConfiguration . getBoolean ( STRING0 , false ) ; \n } \n \n public static String getSummary ( ) {", "msg_token": "Made local checkpoints the default again"} {"diff": " public class ProcessDefinitionImpl extends ScopeImpl implements PvmProcessDefini \n } \n \n public PvmProcessInstance createProcessInstance ( ) { \n + if ( initial == null ) { \n + throw new ActivitiException ( STRING0 + name + STRING1 ) ; \n + } \n return createProcessInstanceForInitial ( initial ) ; \n } \n \n public class ProcessDefinitionImpl extends ScopeImpl implements PvmProcessDefini \n public PvmProcessInstance createProcessInstanceForInitial ( ActivityImpl initial ) { \n \n if ( initial == null ) { \n - throw new ActivitiException ( STRING2 ) ; \n + throw new ActivitiException ( STRING3 ) ; \n } \n \n InterpretableExecution processInstance = newProcessInstance ( initial ) ;", "msg_token": "Improved error message when using wrong startProcessInstanceBy method and process has only message start events"} {"diff": " public class RemoteImService extends Service implements OtrEngineListener , ImSer \n } \n \n @ override \n - public IOtrKeyManager getOtrKeyManager ( ) \n + public IOtrKeyManager getOtrKeyManager ( ) \n { \n - try { \n - return OtrAndroidKeyManagerImpl . getInstance ( RemoteImService . this ) ; \n - } catch ( IOException e ) { \n - \n - OtrDebugLogger . log ( STRING0 , e ) ; \n - \n - return null ; \n + \n + try \n + { \n + OtrAndroidKeyManagerImpl keyMgr = OtrAndroidKeyManagerImpl . getInstance ( RemoteImService . this ) ; \n + \n + return keyMgr ; \n } \n - \n + catch ( IOException re ) \n + { \n + throw new RuntimeException ( STRING1 ) ; \n + } \n + \n }", "msg_token": "if a problem getting OTR key store throw runtime"} {"diff": " public class ChunkSummary extends MRTask < ChunkSummary > { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n - STRING4 , \n - STRING5 , \n - STRING6 , \n + STRING3 , SINGLE \n + STRING7 , SINGLE \n + STRING6 , SINGLE \n + STRING4 , SINGLE \n + STRING5 , SINGLE \n STRING8 , SINGLE \n } ;", "msg_token": "Add CStr to ChunkSummary"} {"diff": " final class EditorTabbedContainer implements Disposable { \n myTabs . getComponent ( ) . setBorder ( new EmptyBorder ( NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ) ; \n final List < String > rightIds = \n ( ( ToolWindowManagerEx ) ToolWindowManager . getInstance ( myProject ) ) . getIdsOn ( ToolWindowAnchor . RIGHT ) ; \n - myTabs . getPresentation ( ) . setPaintBorder ( NUMBER1 , - NUMBER0 , rightIds . size ( ) > NUMBER1 ? NUMBER0 : NUMBER1 , - NUMBER0 ) ; \n + myTabs . getPresentation ( ) . setPaintBorder ( NUMBER0 , - NUMBER0 , rightIds . size ( ) > NUMBER1 ? NUMBER0 : NUMBER1 , - NUMBER0 ) ; \n } \n \n public Component getComponent ( ) {", "msg_token": "borders fix oops"} {"diff": " public class AnnotatedEndpointFactory implements InstanceFactory < Endpoint > { \n break ; \n } \n } \n - if ( ! messageHandled && booleanLocation > NUMBER0 ) { \n + if ( ! messageHandled && booleanLocation != - NUMBER1 ) { \n SINGLE \n if ( textMessage != null ) { \n throw JsrWebSocketMessages . MESSAGES . moreThanOneAnnotation ( OnMessage . class ) ;", "msg_token": "Fix boolean parameter handlign"} {"diff": " class LoaderController { \n float margin_height = canvas . getHeight ( ) * ( NUMBER0 - heightWeight ) / NUMBER1 ; \n rectPaint . setAlpha ( ( int ) ( progress * MAX_COLOR_CONSTANT_VALUE ) ) ; \n if ( linearGradient == null ) { \n - linearGradient = new LinearGradient ( NUMBER2 , NUMBER2 , canvas . getWidth ( ) , NUMBER2 , rectPaint . getColor ( ) , LoaderConstant . COLOR_DEFAULT_GRADIENT , Shader . TileMode . MIRROR ) ; \n + linearGradient = new LinearGradient ( NUMBER2 , NUMBER2 , canvas . getWidth ( ) * widthWeight , NUMBER2 , rectPaint . getColor ( ) , LoaderConstant . COLOR_DEFAULT_GRADIENT , Shader . TileMode . MIRROR ) ; \n } \n rectPaint . setShader ( linearGradient ) ; \n canvas . drawRect ( NUMBER2 , margin_height , canvas . getWidth ( ) * widthWeight , canvas . getHeight ( ) - margin_height , rectPaint ) ;", "msg_token": "Fix gradient width"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class CharacterComponent implements Component { \n COMMENT \n public float interactionRange = FLOAT0 ; \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ replicate ( FieldReplicateType . SERVER_TO_CLIENT ) \n public EntityRef interactionTarget = EntityRef . NULL ; \n + \n public float pitch ; \n public float yaw ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some forgotten CharacterUtil InteractionsUtil renames"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class DeleteSiteDialogFragment extends DialogFragment implements TextWatc \n private AlertDialog mDeleteSiteDialog ; \n private EditText mUrlConfirmation ; \n private Button mDeleteButton ; \n - private String mSiteDomain ; \n + private String mSiteDomain = STRING0 ; \n \n @ override \n public Dialog onCreateDialog ( Bundle savedInstanceState ) {", "msg_token": "Removing import and setting mSiteDomain to empty string for null safety"} {"diff": " public class CallPeerMediaHandlerSipImpl \n SINGLE \n else if ( srtpControlType == SrtpControlType . ZRTP ) \n { \n - if ( updateMediaDescriptionForZrtp ( mediaType , localMd ) ) ; \n + if ( updateMediaDescriptionForZrtp ( mediaType , localMd ) ) \n { \n SINGLE \n return ;", "msg_token": "stop encryption processing if added to SDP"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstract { \n private static final long serialVersionUID = NUMBER0 ; \n public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra \n } \n \n if ( type == null ) \n - if ( fieldValue instanceof Set < ? > ) \n + if ( fieldValue instanceof OMVRBTreeRIDSet ) \n + type = OType . LINKSET ; \n + else if ( fieldValue instanceof Set < ? > ) \n type = OType . EMBEDDEDSET ; \n else \n type = OType . EMBEDDEDLIST ;", "msg_token": "fixed bug on serialization in case of OMVRBTreeRIDSet type"} {"diff": " import NAMESPACE ; \n \n public class MapClearRequest extends MapAllPartitionsClientRequest implements Portable , RetryableRequest , SecureRequest { \n \n - \n public MapClearRequest ( ) { \n } \n \n import NAMESPACE ; \n COMMENT \n public class MapLoadGivenKeysRequest extends MapAllPartitionsClientRequest implements Portable , RetryableRequest , SecureRequest { \n \n - private String name ; \n - \n private List < Data > keys ; \n \n private boolean replaceExistingValues ;", "msg_token": "Removed shadow name since it is already defined in MapAllPartitionsClientRequest"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a link to the newly available docs"} {"diff": " public class JPADependencyProcessor implements DeploymentUnitProcessor { \n SINGLE \n if ( defaultProviderCount > NUMBER0 ) { \n moduleDependencies . add ( Configuration . PROVIDER_MODULE_DEFAULT ) ; \n - ROOT_LOGGER . debugf ( STRING0 , \n + ROOT_LOGGER . debugf ( STRING1 , \n Configuration . PROVIDER_MODULE_DEFAULT , defaultProviderCount , Configuration . PROVIDER_MODULE + STRING2 ) ; \n SINGLE \n addDependency ( moduleSpecification , moduleLoader , HIBERNATE_ENVERS_ID ) ;", "msg_token": "also fix TRACE log error in JPADependencyProcessor"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n class CachePoolImpl implements UrlClassLoader . CachePool { \n - private final Map < URL , ClasspathCache . LoaderData > myLoaderIndexCache = ContainerUtil . newConcurrentMap ( ) ; \n + private final Map < URL , ClasspathCache . LoaderData > myLoaderIndexCache = new ConcurrentHashMap < URL , ClasspathCache . LoaderData > ( ) ; \n \n void cacheData ( @ notnull URL url , @ notnull ClasspathCache . LoaderData data ) { \n myLoaderIndexCache . put ( url , data ) ;", "msg_token": "avoid ContainerUtil dependency"} {"diff": " public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( STRING0 ) \n public static void initialize ( Class < ? > type ) throws Exception { \n Object typeInitializer = TYPE_INITIALIZERS . remove ( new Nexus ( type ) ) ; \n if ( typeInitializer != null ) { \n public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( STRING0 ) \n public static void register ( String name , ClassLoader classLoader , Object typeInitializer ) { \n TYPE_INITIALIZERS . put ( new Nexus ( name , classLoader ) , typeInitializer ) ; \n }", "msg_token": "Fixed typo in javadoc and removed unused unused annotation"} {"diff": " public class Jaxrs2Test { \n \n @ beforemethod ( alwaysRun = true ) \n public void setUpGlobal ( ) throws Exception { \n - port = NUMBER0 ; \n + port = findFreePort ( ) ; \n urlTarget = getUrlTarget ( port ) ; \n atmoServlet = new AtmosphereServlet ( ) ; \n atmoServlet . framework ( ) . addInitParameter ( STRING0 , this . getClass ( ) . getPackage ( ) . getName ( ) ) ;", "msg_token": "Fix hardcoded port"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DatagramMulticastTest extends AbstractDatagramTest { \n cb . localAddress ( addr . getPort ( ) ) ; \n \n Channel sc = sb . bind ( ) . sync ( ) . channel ( ) ; \n + if ( sc instanceof OioDatagramChannel ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + sc . close ( ) . awaitUninterruptibly ( ) ; \n + return ; \n + } \n DatagramChannel cc = ( DatagramChannel ) cb . bind ( ) . sync ( ) . channel ( ) ; \n \n String group = STRING0 ;", "msg_token": "Skip Multicast test for OIO as it seems to fail because of a JDK bug on OSX"} {"diff": " \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n public enum Prefix { \n SEARCH_O ( STRING0 ) , \n COMMENT \n NOT_FOUND ( STRING1 ) , \n - COMMENT \n + COMMENT \n ERROR ( STRING2 ) \n ; \n private String prefix ; \n public enum Prefix { \n return UNKNOWN ; \n } \n int idx = servletPath . indexOf ( STRING3 , NUMBER0 ) ; \n - if ( idx > NUMBER1 ) { \n - servletPath = servletPath . substring ( NUMBER1 , idx ) ; \n - } \n - Prefix p = lookupTable . get ( servletPath ) ; \n + String pathPrefix = ( idx == - NUMBER0 ) ? \n + servletPath : servletPath . substring ( NUMBER1 , idx ) ; \n + Prefix p = lookupTable . get ( pathPrefix ) ; \n return p == null ? UNKNOWN : p ; \n } \n }", "msg_token": "Fixed PMD warning in Prefix get AvoidReassigningParameters"} {"diff": " public class TemplateEngineJsonPTest { \n String jsonp = new String ( outputStream . toByteArray ( ) , STRING0 ) ; \n assertEquals ( TemplateEngineJsonP . DEFAULT_CALLBACK_PARAMETER_VALUE + STRING1 , jsonp ) ; \n } \n + \n + @ test \n + public void testBadCallbackNameFlow ( ) throws IOException { \n + when ( context . getParameter ( STRING2 , TemplateEngineJsonP . DEFAULT_CALLBACK_PARAMETER_VALUE ) ) . thenReturn ( STRING3 ) ; \n + \n + TemplateEngineJsonP jsonpEngine = new TemplateEngineJsonP ( logger , objectMapper , properties ) ; \n + jsonpEngine . invoke ( context , result ) ; \n + \n + String jsonp = new String ( outputStream . toByteArray ( ) , STRING0 ) ; \n + assertEquals ( TemplateEngineJsonP . DEFAULT_CALLBACK_PARAMETER_VALUE + STRING1 , jsonp ) ; \n + } \n }", "msg_token": "Adding junit and integration tests for JSONP"} {"diff": " public abstract class TomcatBaseTest extends TestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING7 + \n public abstract class TomcatBaseTest extends TestCase { \n STRING8 + \n STRING9 + \n STRING10 + \n - STRING11 ) ; \n + STRING12 + \n + STRING13 ) ; \n \n File appBase = new File ( tempDir , STRING14 ) ; \n if ( ! appBase . exists ( ) && ! appBase . mkdir ( ) ) {", "msg_token": "Move the unit test JARs to the end"} {"diff": " public class InferredAnnotationsManagerImpl extends InferredAnnotationsManager { \n \n @ nullable \n private PsiAnnotation getInferredContractAnnotation ( PsiMethod method ) { \n + if ( method . getModifierList ( ) . findAnnotation ( ORG_JETBRAINS_ANNOTATIONS_CONTRACT ) != null ) { \n + return null ; \n + } \n + \n return createContractAnnotation ( ContractInference . inferContracts ( method ) , PurityInference . inferPurity ( method ) ) ; \n }", "msg_token": "don t infer method contracts when there is already an explicit Contract annotation"} {"diff": " public abstract class PluginPassiveScanner extends Enableable implements Passive \n private Configuration config = null ; \n private AddOn . Status status = AddOn . Status . unknown ; \n \n + public PluginPassiveScanner ( ) { \n + super ( true ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class PluginPassiveScannerUnitTest { \n } \n \n @ test \n - public void shouldBeDisabledByDefault ( ) { \n - assertThat ( scanner . isEnabled ( ) , is ( equalTo ( false ) ) ) ; \n + public void shouldBeEnabledByDefault ( ) { \n + assertThat ( scanner . isEnabled ( ) , is ( equalTo ( true ) ) ) ; \n } \n \n @ test", "msg_token": "Restore the enabled state of passive scanners"} {"diff": " public abstract class TransportShardReplicationOperationAction < Request extends S \n } \n } \n shardIt = shards ( clusterState , request ) ; \n - shardIt = shards ( clusterState , request ) ; \n } catch ( Exception e ) { \n listener . onFailure ( e ) ; \n return true ;", "msg_token": "remove double call to shards meaningless but still"} {"diff": " public class ClientSession \n SINGLE \n CharsetEncoder charsetEncoder = US_ASCII . newEncoder ( ) ; \n for ( Entry < String , String > entry : properties . entrySet ( ) ) { \n - checkArgument ( entry . getKey ( ) . isEmpty ( ) , STRING0 ) ; \n + checkArgument ( ! entry . getKey ( ) . isEmpty ( ) , STRING0 ) ; \n checkArgument ( entry . getKey ( ) . indexOf ( STRING1 ) < NUMBER0 , STRING2 , entry . getKey ( ) ) ; \n checkArgument ( charsetEncoder . canEncode ( entry . getKey ( ) ) , STRING3 , entry . getKey ( ) ) ; \n checkArgument ( charsetEncoder . canEncode ( entry . getValue ( ) ) , STRING4 , entry . getValue ( ) ) ;", "msg_token": "Fix precondition in ClientSession"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "missing copyright notice"} {"diff": " public class XMLLoggerTest { \n assertEquals ( STRING0 , STRING1 , lines [ lines . length - NUMBER0 ] ) ; \n } \n \n - private static class TestException extends Exception { \n + private static class TestException extends RuntimeException { \n \n private static final long serialVersionUID = NUMBER1 ;", "msg_token": "Use unchecked exception"} {"diff": " public class FMLModContainer implements ModContainer \n \n if ( clientSideOnly && side != Side . CLIENT ) \n { \n - FMLLog . info ( STRING0 , getModId ( ) ) ; \n + FMLLog . info ( STRING1 , getModId ( ) ) ; \n return false ; \n } \n \n if ( serverSideOnly && side != Side . SERVER ) \n { \n - FMLLog . info ( STRING2 , getModId ( ) ) ; \n + FMLLog . info ( STRING3 , getModId ( ) ) ; \n return false ; \n }", "msg_token": "Stop IllegalFormatConversionException thrown if Mod has flagged client only or server only"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n Object newMsg = filter ( msg ) ; \n if ( newMsg == null ) return ( new BroadcasterFuture < Object > ( msg , broadcasterListeners , this ) ) . done ( ) ; \n \n - BroadcasterFuture < Object > f = new BroadcasterFuture < Object > ( newMsg , resources . size ( ) , broadcasterListeners , this ) ; \n + BroadcasterFuture < Object > f = new BroadcasterFuture < Object > ( newMsg , NUMBER0 , broadcasterListeners , this ) ; \n messages . offer ( new Entry ( newMsg , r , f , msg ) ) ; \n return f ; \n }", "msg_token": "Fix trivial typo"} {"diff": " public class Find extends Query { \n return result ; \n } \n \n - public class Hint < T > { \n + public static class Hint < T > { \n \n private T value ;", "msg_token": "fix driver make Find Hint a static class"} {"diff": " import NAMESPACE ; \n public class ConsoleExecuteActionHandler { \n private final ProcessHandler myProcessHandler ; \n private final boolean myPreserveMarkup ; \n + private boolean myAddCurrentToHistory ; \n \n public ConsoleExecuteActionHandler ( ProcessHandler processHandler , boolean preserveMarkup ) { \n myProcessHandler = processHandler ; \n public class ConsoleExecuteActionHandler { \n final TextRange range = new TextRange ( NUMBER0 , document . getTextLength ( ) ) ; \n \n languageConsole . getCurrentEditor ( ) . getSelectionModel ( ) . setSelection ( range . getStartOffset ( ) , range . getEndOffset ( ) ) ; \n - languageConsole . addCurrentToHistory ( range , false , myPreserveMarkup ) ; \n + if ( myAddCurrentToHistory ) { \n + languageConsole . addCurrentToHistory ( range , false , myPreserveMarkup ) ; \n + } \n languageConsole . setInputText ( STRING0 ) ; \n if ( ! StringUtil . isEmptyOrSpaces ( text ) ) { \n consoleHistoryModel . addToHistory ( text ) ; \n public class ConsoleExecuteActionHandler { \n SINGLE \n } \n } \n + \n + public void setAddCurrentToHistory ( boolean addCurrentToHistory ) { \n + myAddCurrentToHistory = addCurrentToHistory ; \n + } \n }", "msg_token": "do not copy it to history document"} {"diff": " public class DefaultInvoiceDao extends EntityDaoBase < InvoiceModelDao , Invoice , I \n useExistingCBAFromTransaction ( accountId , entitySqlDaoWrapperFactory , context ) ; \n \n SINGLE \n + SINGLE \n notifyBusOfInvoiceAdjustment ( entitySqlDaoWrapperFactory , invoiceId , accountId , context . getUserToken ( ) , context ) ; \n \n return externalCharge ;", "msg_token": "add TODO for later"} {"diff": " public abstract class GitHandler { \n } \n \n public void runInCurrentThread ( @ nullable Runnable postStartAction ) { \n + LOG . assertTrue ( ! ApplicationManager . getApplication ( ) . isDispatchThread ( ) , STRING0 ) ; \n + \n final GitVcs vcs = GitVcs . getInstance ( myProject ) ; \n if ( vcs == null ) { return ; }", "msg_token": "don t execute git commands in AWT"} {"diff": " public final class SingleRequest < R > implements Request , \n stateVerifier . throwIfRecycled ( ) ; \n startTime = LogTime . getLogTime ( ) ; \n if ( model == null ) { \n + if ( Util . isValidDimensions ( overrideWidth , overrideHeight ) ) { \n + width = overrideWidth ; \n + height = overrideHeight ; \n + } \n onLoadFailed ( new GlideException ( STRING0 ) ) ; \n return ; \n }", "msg_token": "Log the width height of requests that fail of null models"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n final TaskRecord topTask = targetStack . topTask ( ) ; \n if ( topTask != sourceTask ) { \n targetStack . moveTaskToFrontLocked ( sourceTask , r , options ) ; \n - Slog . w ( TAG , STRING0 ) ; \n } else { \n mWindowManager . moveTaskToTop ( topTask . taskId ) ; \n }", "msg_token": "Remove unnecessary logging"} {"diff": " public class Checkstyle extends SourceTask implements VerificationTask , Reportin \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n @ pathsensitive ( PathSensitivity . RELATIVE ) \n public class FindBugs extends SourceTask implements VerificationTask , Reporting < \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n @ pathsensitive ( PathSensitivity . RELATIVE ) \n public class FindBugs extends SourceTask implements VerificationTask , Reporting < \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ skipwhenempty \n @ pathsensitive ( PathSensitivity . RELATIVE ) \n public class JDepend extends DefaultTask implements Reporting < JDependReports > { \n \n private final JDependReports reports ; \n \n - \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify not completely relative paths for code quality tasks"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added PriorityQueue complexities to package info"} {"diff": " public class ExtendedURLClassLoader extends URLClassLoader { \n if ( excludeJrePackagesFromLoader ) { \n String [ ] corePackages = SystemUtil . getJrePackages ( ) ; \n \n - for ( int i = NUMBER0 ; i < corePackages . length ; i ++ ) { \n - String pck = corePackages [ i ] ; \n - \n - if ( pck . equals ( STRING0 ) ) { \n + for ( String corePackage : corePackages ) { \n + if ( corePackage . equals ( STRING0 ) ) { \n SINGLE \n continue ; \n } \n \n - corePackages [ i ] = pck + STRING1 ; \n + addParentOnlyRules ( corePackage + STRING1 ) ; \n } \n - \n - addParentOnlyRules ( corePackages ) ; \n } \n }", "msg_token": "Fixed removal of javax package"} {"diff": " public class ActorClassFinder implements IActorClassFinder \n { \n private static final ClassPathSearch search = new ClassPathSearch ( IActor . class ) ; \n \n - private ConcurrentHashMap < Class < ? > , Class < ? > > cache = new ConcurrentHashMap < > ( ) ; \n - \n @ suppresswarnings ( STRING0 ) \n @ override \n public < T extends IActor > Class < ? extends T > findActorImplementation ( Class < T > iActorInterface ) \n { \n - Class < ? > r = cache . get ( iActorInterface ) ; \n - \n - if ( r == null ) \n - { \n - r = search . findImplementation ( iActorInterface ) ; \n - if ( r != null ) \n - { \n - cache . put ( iActorInterface , r ) ; \n - } \n - } \n - return ( Class < ? extends T > ) r ; \n + return search . findImplementation ( iActorInterface ) ; \n } \n }", "msg_token": "Remove redundant caching of concrete implementations"} {"diff": " public final class BlockData { \n \n case BlockID . LEVER : \n case BlockID . STONE_BUTTON : \n + case BlockID . WOODEN_BUTTON : \n int thrown = data & NUMBER0 ; \n int withoutThrown = data & ~ NUMBER0 ; \n switch ( withoutThrown ) { \n public final class BlockData { \n \n case BlockID . LEVER : \n case BlockID . STONE_BUTTON : \n + case BlockID . WOODEN_BUTTON : \n int thrown = data & NUMBER0 ; \n int withoutThrown = data & ~ NUMBER0 ; \n switch ( withoutThrown ) { \n public final class BlockData { \n \n case BlockID . LEVER : \n case BlockID . STONE_BUTTON : \n + case BlockID . WOODEN_BUTTON : \n switch ( data & ~ NUMBER0 ) { \n case NUMBER1 : return data + flipX ; \n case NUMBER2 : return data - flipX ;", "msg_token": "Add wooden buttons to BlockData"} {"diff": " public final class Settings { \n DOCK_SOUNDS_ENABLED , SINGLE \n LOCKSCREEN_SOUNDS_ENABLED , \n SHOW_WEB_SUGGESTIONS , \n - NOTIFICATION_LIGHT_PULSE , \n SIP_CALL_OPTIONS , \n SIP_RECEIVE_CALLS , \n POINTER_SPEED ,", "msg_token": "Do not back up restore the pulse LED for notifications setting"} {"diff": " public final class Predicates { \n public void writeData ( ObjectDataOutput out ) throws IOException { \n super . writeData ( out ) ; \n out . writeObject ( to ) ; \n + out . writeObject ( from ) ; \n } \n \n public void readData ( ObjectDataInput in ) throws IOException { \n super . readData ( in ) ; \n to = in . readObject ( ) ; \n + from = in . readObject ( ) ; \n } \n \n @ override", "msg_token": "predicates bug fix"} {"diff": " public class Diagnostics { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static String getThreadDump ( Enumeration < Locale > requestedLocales ) { \n public class Diagnostics { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static String getThreadDump ( StringManager requestedSm ) { \n public class Diagnostics { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static String getVMInfo ( Enumeration < Locale > requestedLocales ) { \n public class Diagnostics { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static String getVMInfo ( StringManager requestedSm ) {", "msg_token": "Fix Javadoc fixes"} {"diff": " class ServerTrustManager implements X509TrustManager { \n public void checkServerTrusted ( X509Certificate [ ] x509Certificates , String arg1 ) \n throws CertificateException { \n \n - android . os . Debug . waitForDebugger ( ) ; \n + SINGLE \n \n int nSize = x509Certificates . length ;", "msg_token": "removed debug code"} {"diff": " public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V > { \n public boolean setUncancellable ( ) { \n Object result = this . result ; \n if ( isDone0 ( result ) ) { \n - return isCancelled0 ( result ) ; \n + return ! isCancelled0 ( result ) ; \n } \n \n synchronized ( this ) { \n SINGLE \n result = this . result ; \n if ( isDone0 ( result ) ) { \n - return isCancelled0 ( result ) ; \n + return ! isCancelled0 ( result ) ; \n } \n \n this . result = UNCANCELLABLE ;", "msg_token": "Fix a bug where DefaultPromise setUncancellable returns a wrong value"} {"diff": " public abstract class SquidCursorAdapter < T extends AbstractModel > extends BaseAd \n TableModel . DEFAULT_ID_COLUMN , null ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public SquidCursorAdapter ( Context context , T model ) { \n this ( context , model , model instanceof TableModel ? ( ( TableModel ) model ) . getIdProperty ( ) : ID_PROPERTY ) ;", "msg_token": "Correct some documentation in SquidCursorAdapter"} {"diff": " public class PackageFunction implements SkyFunction { \n preprocessCache . put ( packageId , preprocessingResult ) ; \n } \n \n - SkylarkImportResult importResult = \n - discoverSkylarkImports ( \n - buildFilePath , \n - buildFileFragment , \n - packageId , \n - env , \n - preprocessingResult . result , \n - preludeStatements ) ; \n + SkylarkImportResult importResult ; \n + try { \n + importResult = discoverSkylarkImports ( \n + buildFilePath , \n + buildFileFragment , \n + packageId , \n + env , \n + preprocessingResult . result , \n + preludeStatements ) ; \n + } catch ( PackageFunctionException | InterruptedException e ) { \n + preprocessCache . invalidate ( packageId ) ; \n + throw e ; \n + } \n if ( importResult == null ) { \n return null ; \n }", "msg_token": "Fix PackageFunction loadPackage preprocessing result cache memory leak on error from SkylarkImportResult dep"} {"diff": " public class TodoTxtTouch extends SherlockListActivity implements \n } \n } else { \n m_app . m_filters . remove ( getString ( R . string . filter_tab_contexts ) ) ; \n + m_app . m_contexts = new ArrayList < String > ( ) ; \n } \n \n if ( haveProjects ) { \n public class TodoTxtTouch extends SherlockListActivity implements \n } \n } else { \n m_app . m_filters . remove ( getString ( R . string . filter_tab_projects ) ) ; \n + m_app . m_projects = new ArrayList < String > ( ) ; \n } \n \n ArrayAdapter < ? > adapter = ( ArrayAdapter < ? > ) m_drawerList . getAdapter ( ) ;", "msg_token": "Remove filter terms if they no longer exist in the data"} {"diff": " public class RestPermissions { \n \n public static Set < String > adminPermissions = Sets . newHashSet ( STRING0 ) ; \n \n + SINGLE \n public static Set < String > readerBasePermissions = Sets . newHashSet ( \n BUFFERS_READ , \n FIELDNAMES_READ , \n public class RestPermissions { \n MESSAGECOUNT_READ , \n MESSAGES_READ , \n METRICS_READ , \n - SOURCES_READ , \n SYSTEM_READ , \n THROUGHPUT_READ \n ) ;", "msg_token": "permission permission yolo"} {"diff": " class ParquetHiveRecordCursor \n checkNotNull ( splitSchema , STRING0 ) ; \n checkNotNull ( partitionKeys , STRING1 ) ; \n checkNotNull ( columns , STRING2 ) ; \n - checkArgument ( ! columns . isEmpty ( ) , STRING3 ) ; \n \n this . recordReader = createParquetRecordReader ( configuration , path , start , length , columns ) ; \n \n class ParquetHiveRecordCursor \n } \n \n ParquetInputSplit split ; \n - if ( splitGroup . isEmpty ( ) ) { \n - SINGLE \n - return null ; \n - } \n \n split = new ParquetInputSplit ( path , \n splitStart ,", "msg_token": "Allow empty column list in ParquetHiveRecordCursor"} {"diff": " public class FolderList extends K9ListActivity { \n return - NUMBER0 ; \n } else if ( Email . INBOX . equalsIgnoreCase ( s2 ) ) { \n return NUMBER0 ; \n - } else \n - return s1 . compareTo ( s2 ) ; \n + } else { \n + int ret = s1 . compareToIgnoreCase ( s2 ) ; \n + if ( ret != NUMBER1 ) { \n + return ret ; \n + } \n + else { \n + return s1 . compareTo ( s2 ) ; \n + } \n + } \n + \n } \n \n SINGLE", "msg_token": "Restore case insensitive sort but fall back on case sensitive just"} {"diff": " public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase \n highest = max ( highest , getHistoryLogVersion ( file ) ) ; \n } \n } \n - System . out . println ( STRING0 + highest ) ; \n return highest ; \n }", "msg_token": "Removed system out"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class DaoHibernate extends HibernateDaoSupport implements Dao , \n public class DaoHibernate extends HibernateDaoSupport implements Dao , \n \n public PersistableEntity createOrUpdate ( PersistableEntity value ) { \n Assert . notNull ( value ) ; \n + getHibernateTemplate ( ) . saveOrUpdate ( value ) ; \n \n - if ( value . getInternalId ( ) == null ) { \n - return create ( value ) ; \n - } else { \n - return update ( value ) ; \n - } \n + return readId ( value . getInternalId ( ) ) ; \n } \n \n public void delete ( PersistableEntity value ) {", "msg_token": "Change createOrUpdate to use Hibernate session saveOrUpdate"} {"diff": " public final class FragmentedMp4Extractor implements Extractor { \n parseSenc ( senc . data , out ) ; \n } \n \n - LeafAtom uuid = traf . getLeafAtomOfType ( Atom . TYPE_uuid ) ; \n - if ( uuid != null ) { \n - parseUuid ( uuid . data , out , extendedTypeScratch ) ; \n + int childrenSize = traf . children . size ( ) ; \n + for ( int i = NUMBER0 ; i < childrenSize ; i ++ ) { \n + Atom atom = traf . children . get ( i ) ; \n + if ( atom . type == Atom . TYPE_uuid ) { \n + parseUuid ( ( ( LeafAtom ) atom ) . data , out , extendedTypeScratch ) ; \n + } \n } \n }", "msg_token": "Parse all UUID boxes not just the first one"} {"diff": " final class CameraManager { \n \n setCameraParameters ( ) ; \n SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; \n - if ( prefs . getBoolean ( PreferencesActivity . KEY_FRONT_LIGHT , true ) ) { \n + if ( prefs . getBoolean ( PreferencesActivity . KEY_FRONT_LIGHT , false ) ) { \n FlashlightManager . enableFlashlight ( ) ; \n } \n }", "msg_token": "Make light off by default"} {"diff": " public class TypeDefinition implements GroovyElementTypes { \n \n while ( ! builder . eof ( ) && builder . getTokenType ( ) != mRCURLY ) { \n if ( ! parseAnnotationMember ( builder , parser ) ) builder . advanceLexer ( ) ; \n - Separators . parse ( builder ) ; \n + if ( builder . getTokenType ( ) == mRCURLY ) break ; \n + if ( ! Separators . parse ( builder ) ) { \n + builder . error ( GroovyBundle . message ( STRING0 ) ) ; \n + } \n } \n \n ParserUtils . getToken ( builder , mRCURLY , GroovyBundle . message ( STRING1 ) ) ;", "msg_token": "don t skip unexpected symbols after method of annotation types"} {"diff": " public final class Graphs { \n COMMENT \n COMMENT \n public static < N > void copyNodes ( Graph < N > src , MutableGraph < N > dest ) { \n - copyNodesInteral ( src , dest , Predicates . alwaysTrue ( ) ) ; \n + copyNodesInternal ( src , dest , Predicates . alwaysTrue ( ) ) ; \n } \n \n - private static < N , E > void copyNodesInteral ( \n + private static < N , E > void copyNodesInternal ( \n Graph < N > src , MutableGraph < N > dest , Predicate < ? super N > nodePredicate ) { \n checkNotNull ( src , STRING0 ) ; \n checkNotNull ( dest , STRING1 ) ;", "msg_token": "Fix typo in private method in Graphs"} {"diff": " public class PrivacyService { \n if ( restriction . restrictionName == null ) { \n Util . log ( null , Log . ERROR , STRING0 + restriction ) ; \n Util . logStack ( null , Log . ERROR ) ; \n - return ; \n + throw new RemoteException ( STRING1 ) ; \n } \n \n SQLiteDatabase db = getDb ( ) ;", "msg_token": "Throw exception for invalid restriction support info"} {"diff": " public class DebuggerSession implements AbstractDebuggerSession { \n } \n \n private void notifyThreadsRefresh ( ) { \n - myUpdateAlarm . cancelAllRequests ( ) ; \n - myUpdateAlarm . addRequest ( new Runnable ( ) { \n - public void run ( ) { \n - final DebuggerStateManager contextManager = getContextManager ( ) ; \n - contextManager . fireStateChanged ( contextManager . getContext ( ) , EVENT_THREADS_REFRESH ) ; \n - } \n - } , NUMBER0 , ModalityState . NON_MODAL ) ; \n + if ( ! myUpdateAlarm . isDisposed ( ) ) { \n + myUpdateAlarm . cancelAllRequests ( ) ; \n + myUpdateAlarm . addRequest ( new Runnable ( ) { \n + public void run ( ) { \n + final DebuggerStateManager contextManager = getContextManager ( ) ; \n + contextManager . fireStateChanged ( contextManager . getContext ( ) , EVENT_THREADS_REFRESH ) ; \n + } \n + } , NUMBER0 , ModalityState . NON_MODAL ) ; \n + } \n } \n }", "msg_token": "do not use disposed alarm"} {"diff": " public class EnterpriseDeploymentTestCase { \n if ( file . exists ( ) ) \n return file ; \n \n - String testResourcesDir = STRING0 ; \n + String testResourcesDir = System . getProperty ( STRING1 ) + STRING2 ; \n file = new File ( testResourcesDir + STRING3 + resource ) ; \n if ( file . exists ( ) ) \n return file ;", "msg_token": "Fix EnterpriseDeploymentTestCase to use dir prop corectly"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JDOAnnotationProcessor extends AbstractQuerydslProcessor { \n Class < ? extends Annotation > entity = PersistenceCapable . class ; \n Class < ? extends Annotation > superType = QuerySupertype . class ; \n Class < ? extends Annotation > embeddable = EmbeddedOnly . class ; \n - Class < ? extends Annotation > embedded = Embedded . class ; \n + Class < ? extends Annotation > embedded = QueryEmbedded . class ; \n Class < ? extends Annotation > skip = NotPersistent . class ; \n return new DefaultConfiguration ( roundEnv , processingEnv . getOptions ( ) , Keywords . JDO , \n entities , entity , superType , embeddable , embedded , skip ) ;", "msg_token": "Remove JPA dependencies"} {"diff": " public class StatsActivity extends ActionBarActivity \n break ; \n } \n } \n - scrollToTop ( ) ; \n + \n + mSpinner . postDelayed ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + scrollToTop ( ) ; \n + } \n + } , NUMBER0 ) ; \n } \n } ) ; \n } \n public class StatsActivity extends ActionBarActivity \n break ; \n } \n } \n - scrollToTop ( ) ; \n + \n + mSpinner . postDelayed ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + scrollToTop ( ) ; \n + } \n + } , NUMBER0 ) ; \n + \n } \n \n SINGLE", "msg_token": "Delay the call to ScrollTop and enqueue it on the UI thread"} {"diff": " public class TypeMigrationLabeler { \n \n if ( ! userDefinedType ) { \n final Set < PsiTypeParameter > collector ; \n - if ( type instanceof PsiClassReferenceType ) { \n + if ( type instanceof PsiClassType ) { \n collector = type . accept ( new PsiExtendedTypeVisitor < Set < PsiTypeParameter > > ( ) { \n private final Set < PsiTypeParameter > myResult = new HashSet < PsiTypeParameter > ( ) ;", "msg_token": "consider any PsiClassType not only PsiClassReferenceType while collecting type parameters from migration type"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class Node { \n + public class Node implements java . io . Serializable { \n \n private Node parent ; \n private Object name ;", "msg_token": "Added possiblity to serialize the Node objects of a nodebuilder"} {"diff": " public abstract class AbstractTestQueries \n . scalar ( CreateHll . class ) \n . getFunctions ( ) ; \n \n - public AbstractTestQueries ( QueryRunner queryRunner ) \n + protected AbstractTestQueries ( QueryRunner queryRunner ) \n { \n super ( queryRunner ) ; \n }", "msg_token": "Make constructor protected for abstract class"} {"diff": " \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface CommandExecutor \n if ( ( failsOnErrorOutput && stdErr . hasError ( ) ) || result != NUMBER0 ) \n { \n throw new ExecutionException ( STRING0 + \n - commandline . toString ( ) + STRING1 + result ) ; \n + commandline . toString ( ) + STRING1 + result ) ; \n } \n } \n catch ( CommandLineException e ) \n { \n throw new ExecutionException ( \n - STRING2 + commandline . toString ( ) ) ; \n + STRING2 + commandline . toString ( ) + STRING3 + e . getMessage ( ) ) ; \n } \n }", "msg_token": "Added error message to exception"} {"diff": " final class DisplayPowerController implements AutomaticBrightnessController . Call \n private static final int SCREEN_DIM_MINIMUM_REDUCTION = NUMBER0 ; \n \n private static final int COLOR_FADE_ON_ANIMATION_DURATION_MILLIS = NUMBER1 ; \n - private static final int COLOR_FADE_OFF_ANIMATION_DURATION_MILLIS = NUMBER2 ; \n + private static final int COLOR_FADE_OFF_ANIMATION_DURATION_MILLIS = NUMBER3 ; \n \n private static final int MSG_UPDATE_POWER_STATE = NUMBER4 ; \n private static final int MSG_PROXIMITY_SENSOR_DEBOUNCED = NUMBER5 ;", "msg_token": "Reduce shutdown animation duration"} {"diff": " public abstract class DebuggerTestCase extends ExecutionWithDebuggerToolsTestCas \n getDebugProcess ( ) . getExecutionResult ( ) . getProcessHandler ( ) . startNotify ( ) ; \n waitProcess ( getDebugProcess ( ) . getExecutionResult ( ) . getProcessHandler ( ) ) ; \n waitForCompleted ( ) ; \n - disposeSession ( myDebuggerSession ) ; \n + SINGLE \n assertNull ( DebuggerManagerEx . getInstanceEx ( myProject ) . getDebugProcess ( getDebugProcess ( ) . getExecutionResult ( ) . getProcessHandler ( ) ) ) ; \n myDebuggerSession = null ; \n }", "msg_token": "fixing debugger tests"} {"diff": " public class StubUpdatingIndex extends CustomImplementationFileBasedIndexExtensi \n if ( ( ( IStubFileElementType ) elementType ) . shouldBuildStubFor ( file ) ) { \n return true ; \n } \n - FileBasedIndexImpl fileBasedIndex = ( FileBasedIndexImpl ) FileBasedIndex . getInstance ( ) ; \n + FileBasedIndex fileBasedIndex = FileBasedIndex . getInstance ( ) ; \n if ( file instanceof NewVirtualFile && \n - fileBasedIndex . getIndex ( INDEX_ID ) . isIndexedStateForFile ( ( ( NewVirtualFile ) file ) . getId ( ) , file ) ) { \n + fileBasedIndex instanceof FileBasedIndexImpl && \n + ( ( FileBasedIndexImpl ) fileBasedIndex ) . getIndex ( INDEX_ID ) . isIndexedStateForFile ( ( ( NewVirtualFile ) file ) . getId ( ) , file ) ) { \n return true ; \n } \n }", "msg_token": "avoid CCE in code running in Upsource"} {"diff": " public final class ManageRegisteredServicesMultiActionController { \n \n if ( ! this . servicesManager . matchesExistingService ( defaultService ) ) { \n final RegexRegisteredService svc = new RegexRegisteredService ( ) ; \n - svc . setServiceId ( STRING0 + defaultService . getId ( ) ) ; \n + svc . setServiceId ( STRING1 + defaultService . getId ( ) ) ; \n svc . setName ( STRING2 ) ; \n svc . setDescription ( svc . getName ( ) ) ; \n this . servicesManager . save ( svc ) ;", "msg_token": "fixed findbugs issue"} {"diff": " public abstract class ModelType < T > { \n } \n } \n \n - private static final Type [ ] EMPTY_TYPE_ARRAY = new Type [ NUMBER0 ] ; \n private static final TypeWrapper [ ] EMPTY_TYPE_WRAPPER_ARRAY = new TypeWrapper [ NUMBER0 ] ; \n \n @ nullable", "msg_token": "Removed unused field"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class CastUtils { \n return ( Queue < T > ) p ; \n } \n \n + public static < T > Deque < T > cast ( Deque < ? > p ) { \n + return ( Deque < T > ) p ; \n + } \n + \n + public static < T > Deque < T > cast ( Deque < ? > p , Class < T > cls ) { \n + return ( Deque < T > ) p ; \n + } \n + \n public static < T , U > Hashtable < T , U > cast ( Hashtable < ? , ? > p ) { \n return ( Hashtable < T , U > ) p ; \n }", "msg_token": "Added more methods to CastUtils for Deque as well"} {"diff": " public class EnglishWordTokenizer extends WordTokenizer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "en update javadoc"} {"diff": " public class SimpleDraweeView extends GenericDraweeView { \n } \n \n private void init ( ) { \n + if ( isInEditMode ( ) ) { \n + return ; \n + } \n Preconditions . checkNotNull ( \n sDraweeControllerBuilderSupplier , \n STRING0 ) ;", "msg_token": "Fix SimpleDraweeView when in edit mode"} {"diff": " import NAMESPACE ; \n @ suppresswarnings ( STRING0 ) \n public class Feed extends AbstractModel { \n \n - @ column ( length = NUMBER0 , nullable = false , unique = true ) \n + @ column ( length = NUMBER0 , nullable = false ) \n private String url ; \n \n @ transient \n import NAMESPACE ; \n @ suppresswarnings ( STRING0 ) \n public class FeedEntry extends AbstractModel { \n \n - @ column ( length = NUMBER0 , nullable = false , unique = true ) \n + @ column ( length = NUMBER0 , nullable = false ) \n private String guid ; \n \n @ manytoone", "msg_token": "don t index blobs"} {"diff": " class NonUndoableAction implements UndoableAction { \n protected NonUndoableAction ( DocumentReference ref , boolean isGlobal ) { \n myGlobal = isGlobal ; \n myRefs = new DocumentReference [ ] { ref } ; \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( new Throwable ( ) ) ; \n + } \n } \n \n public final void undo ( ) {", "msg_token": "add debug logging to see who is guilty of Cannot undo messages"} {"diff": " public class NotificationBuilderWithProgressBar extends NotificationCompat . Build \n if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { \n return new NotificationBuilderWithProgressBar ( context ) ; \n } else { \n - return new NotificationCompat . Builder ( context ) ; \n + return new NotificationCompat . Builder ( context ) . \n + setColor ( context . getResources ( ) . getColor ( R . color . primary ) ) ; \n } \n } \n \n public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { \n private NotificationCompat . Builder createNotificationBuilder ( ) { \n NotificationCompat . Builder notificationBuilder = new NotificationCompat . Builder ( getContext ( ) ) ; \n notificationBuilder . setSmallIcon ( R . drawable . notification_icon ) . setAutoCancel ( true ) ; \n + notificationBuilder . setColor ( getContext ( ) . getResources ( ) . getColor ( R . color . primary ) ) ; \n return notificationBuilder ; \n }", "msg_token": "Add ownCloud color to notifications only works on lollipop and up for progress bar and icon background"} {"diff": " public class PythonAPIGenerator { \n } \n out . write ( STRING0 + createFunctionName ( element . getName ( ) ) + STRING1 ) ; \n \n - if ( type . equals ( STRING2 ) || type . equals ( STRING3 ) ) { \n - SINGLE \n - out . write ( STRING4 + API . API_KEY_PARAM ) ; \n - } \n - \n if ( element . getMandatoryParamNames ( ) != null ) { \n for ( String param : element . getMandatoryParamNames ( ) ) { \n out . write ( STRING4 + param . toLowerCase ( ) ) ; \n public class PythonAPIGenerator { \n out . write ( STRING4 + param . toLowerCase ( ) + STRING5 ) ; \n } \n } \n + \n + if ( type . equals ( STRING2 ) || type . equals ( STRING3 ) ) { \n + SINGLE \n + out . write ( STRING4 + API . API_KEY_PARAM + STRING5 ) ; \n + } \n + \n out . write ( STRING6 ) ; \n \n SINGLE", "msg_token": "Adding apikey as last parameter and with default null value"} {"diff": " public class TestQueueSharder extends BaseClassForTests \n for ( int i = NUMBER0 ; i < ( factor * threshold ) ; ++ i ) \n { \n sharder . getQueue ( ) . put ( Integer . toString ( i ) ) ; \n - Thread . sleep ( NUMBER1 ) ; \n + Thread . sleep ( NUMBER2 ) ; \n } \n timing . forWaiting ( ) . sleepABit ( ) ;", "msg_token": "increase sleep a bit for more reliable tests"} {"diff": " public abstract class PlatformTestCase extends UsefulTestCase implements DataPro \n \n private static void setTmpDir ( String path ) { \n System . setProperty ( STRING0 , path ) ; \n + FileUtil . resetCanonicalTempPathCache ( ) ; \n + \n try { \n Class < File > ioFile = File . class ; \n Field field = ioFile . getDeclaredField ( STRING1 ) ; \n - \n field . setAccessible ( true ) ; \n field . set ( ioFile , null ) ; \n - FileUtil . resetCanonicalTempPathCache ( ) ; \n } \n catch ( NoSuchFieldException ignore ) { \n SINGLE", "msg_token": "Temp dir cache reset came back to PlatformTestCase"} {"diff": " public class RaptorPageSink \n { \n return storageManager . createStoragePageSink ( storageOutputHandle ) ; \n } \n - \n - SINGLE \n - public static int decodeSliceIndex ( long sliceAddress ) \n - { \n - return ( ( int ) ( sliceAddress > > NUMBER0 ) ) ; \n - } \n - \n - public static int decodePosition ( long sliceAddress ) \n - { \n - SINGLE \n - return ( int ) sliceAddress ; \n - } \n }", "msg_token": "Remove unused synthetic address methods"} {"diff": " public class ActionMenuItemView extends AppCompatTextView \n return false ; \n } \n \n - @ override \n - protected boolean onForwardingStopped ( ) { \n - final ListPopupWindow popup = getPopup ( ) ; \n - if ( popup != null ) { \n - popup . dismiss ( ) ; \n - return true ; \n - } \n - return false ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n public static abstract class PopupCallback {", "msg_token": "Fix subsequent drag to open SubMenus"} {"diff": " public abstract class AbstractClientAction implements Executable { \n } \n } ) ; \n } \n + \n + protected File pickReadableAndWritableFile ( int prndNum ) throws Exception { \n + return pickFileOrFolder ( prndNum , new FileFilter ( ) { \n + @ override \n + public boolean accept ( File file ) { \n + return file . isFile ( ) && ! FileUtil . isSymlink ( file ) && file . canRead ( ) && file . canWrite ( ) ; \n + } \n + } ) ; \n + } \n \n protected File pickFolder ( int prndNum ) throws Exception { \n return pickFileOrFolder ( prndNum , new FileFilter ( ) { \n import NAMESPACE ; \n public class ChangeFileSize extends AbstractClientAction { \n @ override \n public void execute ( ) throws Exception { \n - File file = pickFile ( NUMBER0 ) ; \n + File file = pickReadableAndWritableFile ( NUMBER0 ) ; \n \n log ( this , file . getAbsolutePath ( ) ) ;", "msg_token": "Fix ChangeFileSize action to select a readable writable file"} {"diff": " public class TStructDescriptor { \n SINGLE \n SINGLE \n isBuffer_ = \n - ByteBuffer . class == ThriftUtils . getFieldType ( enclosingClass , fieldName ) ; \n + ThriftUtils . getFieldType ( enclosingClass , fieldName ) != String . class ; \n } else { \n isBuffer_ = false ; \n }", "msg_token": "update the check to determine if a field is String or a buffer"} {"diff": " public class SoundFactory { \n SINGLE \n SINGLE \n \n + public static Sound createSoundFromPath ( final SoundManager pSoundManager , final Context pContext , final String pPath ) throws IOException { \n + final int soundID = pSoundManager . getSoundPool ( ) . load ( pPath , NUMBER0 ) ; \n + final Sound sound = new Sound ( pSoundManager , soundID ) ; \n + pSoundManager . add ( sound ) ; \n + return sound ; \n + } \n + \n public static Sound createSoundFromAsset ( final SoundManager pSoundManager , final Context pContext , final String pAssetPath ) throws IOException { \n final int soundID = pSoundManager . getSoundPool ( ) . load ( pContext . getAssets ( ) . openFd ( SoundFactory . sAssetBasePath + pAssetPath ) , NUMBER0 ) ; \n final Sound sound = new Sound ( pSoundManager , soundID ) ;", "msg_token": "Added createSoundFromPath to SoundFactory Thx to cpasjuste"} {"diff": " public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n } \n \n final ProgressWindow progress = new ProgressWindow ( canBeCanceled , false , project , parentComponent , cancelText ) ; \n + SINGLE \n + SINGLE \n + Disposer . register ( this , progress ) ; \n + \n progress . setTitle ( progressTitle ) ; \n \n try {", "msg_token": "dispose progress if application exits unexpectedly"} {"diff": " import NAMESPACE ; \n COMMENT \n public class LocalNotification extends CordovaPlugin { \n \n - private static CordovaWebView webView = null ; \n - private static Boolean deviceready = false ; \n + SINGLE \n + private static CordovaWebView webView = null ; \n + \n + SINGLE \n + private static Boolean deviceready = false ; \n + \n + SINGLE \n protected static Boolean isInBackground = true ; \n - private static ArrayList < String > eventQueue = new ArrayList < String > ( ) ; \n + \n + SINGLE \n + private static ArrayList < String > eventQueue = new ArrayList < String > ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Add some docs"} {"diff": " public class BaseGradleProjectResolverExtension implements GradleProjectResolver \n final String [ ] lines = { \n STRING0 , \n STRING1 , \n - STRING2 + debuggerSetup . trim ( ) + STRING3 , \n + STRING4 , \n + STRING5 + debuggerSetup . trim ( ) + STRING3 , \n + STRING6 , \n STRING7 + \n STRING8 , \n } ;", "msg_token": "preserve existing Java Fork Options jvmArgs for running gradle debug configuration"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ArrayEqualsNegativeCases { \n + public class ArrayToStringNegativeCases { \n public void objectEquals ( ) { \n Object a = new Object ( ) ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ArrayEqualsPositiveCases { \n + public class ArrayToStringPositiveCases { \n \n public void intArray ( ) { \n int [ ] a = { NUMBER0 , NUMBER1 , NUMBER2 } ;", "msg_token": "Fixed incorrectly named test case classes"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class VerificationException extends RuntimeException { \n + public class VerificationException extends AssertionError { \n \n private static final long serialVersionUID = NUMBER0 ;", "msg_token": "Made VerificationException a subclass of AssertionError for better JUnit reporting"} {"diff": " public class StateCompiler \n \n SINGLE \n List < StateField > fields = enumerateFields ( clazz ) ; \n - checkInterface ( clazz , fields ) ; \n for ( StateField field : fields ) { \n generateField ( definition , constructor , field ) ; \n } \n public class StateCompiler \n type ( GroupedAccumulator . class ) ) ; \n \n List < StateField > fields = enumerateFields ( clazz ) ; \n - checkInterface ( clazz , fields ) ; \n \n SINGLE \n Block constructor = definition . declareConstructor ( new CompilerContext ( null ) , a ( PUBLIC ) ) \n public class StateCompiler \n } \n } \n \n - return builder . build ( ) ; \n + ImmutableList < StateField > fields = builder . build ( ) ; \n + checkInterface ( clazz , fields ) ; \n + \n + return fields ; \n } \n \n private static Object getInitialValue ( Method method )", "msg_token": "Move checkInterface call into enumerateFields"} {"diff": " import NAMESPACE ; \n \n \n public class DiffSplitter extends Splitter { \n - private boolean myQueued = false ; \n @ nullable private Painter myPainter ; \n \n public DiffSplitter ( ) { \n public class DiffSplitter extends Splitter { \n } \n \n public void repaintDivider ( ) { \n - if ( myQueued ) return ; \n - \n - final JPanel divider = getDivider ( ) ; \n - divider . repaint ( ) ; \n - myQueued = true ; \n - ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - SINGLE \n - divider . paintImmediately ( NUMBER0 , NUMBER0 , divider . getWidth ( ) , divider . getHeight ( ) ) ; \n - myQueued = false ; \n - } \n - } ) ; \n + getDivider ( ) . repaint ( ) ; \n } \n \n public interface Painter {", "msg_token": "remove repainting hack"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestRequest extends TestCase { \n planner = new Planner ( ) ; \n pathService = new ContractionPathServiceImpl ( ) ; \n graph = new Graph ( ) ; \n + pathService . setRemainingWeightHeuristicFactory ( \n + new DefaultRemainingWeightHeuristicFactoryImpl ( ) ) ; \n ShapefileStreetGraphBuilderImpl builder = new ShapefileStreetGraphBuilderImpl ( ) ; \n FeatureSourceFactory factory = new ShapefileFeatureSourceFactoryImpl ( new File ( STRING0 ) ) ; \n builder . setFeatureSourceFactory ( factory ) ;", "msg_token": "Unbreak api webapp test supply a RemainingWeightHeuristicFactory"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class DeadEvent { \n return event ; \n } \n \n + @ override \n + public String toString ( ) { \n + return MoreObjects . toStringHelper ( this ) \n + . add ( STRING0 , source ) \n + . add ( STRING1 , event ) \n + . toString ( ) ; \n + } \n }", "msg_token": "Add toString to DeadEvent"} {"diff": " public class RemoteClientSession extends RemoteSession implements ClientSession \n \n public int incrementConflictCount ( ) { \n ClusterTask task = getRemoteSessionTask ( RemoteSessionTask . Operation . incrementConflictCount ) ; \n - return ( Integer ) doSynchronousClusterTask ( task ) ; \n + Object result = doSynchronousClusterTask ( task ) ; \n + return result == null ? NUMBER0 : ( Integer ) result ; \n } \n \n RemoteSessionTask getRemoteSessionTask ( RemoteSessionTask . Operation operation ) {", "msg_token": "Fix intermittent NPE caused by session cleanup after a member leaves cluster"} {"diff": " public class RegistrationProblemsInspection extends DevKitInspectionBase { \n ProblemHighlightType . LIKE_UNKNOWN_SYMBOL ) ; \n } else { \n final PsiClass componentClass = myPsiManager . findClass ( type . myClassName , myScope ) ; \n - if ( componentClass != null && ! implClass . isInheritor ( componentClass , true ) ) { \n + if ( componentClass != null && ! implClass . isInheritor ( componentClass , true ) && type != ComponentType . APPLICATION ) { \n addProblem ( impl , \n DevKitBundle . message ( STRING0 , type . myClassName ) , \n ProblemHighlightType . GENERIC_ERROR_OR_WARNING ,", "msg_token": "application components shouldn t implement ApplicationComponent"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n \n @ managedresource ( description = STRING0 ) \n - public class BadInherited extends TestBean { \n + public class BadInherited extends TestMbean { \n \n }", "msg_token": "fix wrong import"} {"diff": " public class RefInvalidTest extends ContextTestSupport { \n template . sendBody ( STRING0 , STRING1 ) ; \n fail ( STRING2 ) ; \n } catch ( ResolveEndpointFailedException e ) { \n - assertEquals ( STRING3 , e . getMessage ( ) ) ; \n + assertEquals ( STRING4 , e . getMessage ( ) ) ; \n NoSuchBeanException cause = assertIsInstanceOf ( NoSuchBeanException . class , e . getCause ( ) ) ; \n assertEquals ( STRING5 , cause . getName ( ) ) ; \n } \n public class CamelPostProcessorHelperTest extends ContextTestSupport { \n helper . getInjectionValue ( type , endpointInject . uri ( ) , endpointInject . ref ( ) , propertyName , bean , STRING6 ) ; \n fail ( STRING7 ) ; \n } catch ( ResolveEndpointFailedException e ) { \n - assertEquals ( STRING8 , e . getMessage ( ) ) ; \n + assertEquals ( STRING9 , e . getMessage ( ) ) ; \n } \n }", "msg_token": "Fixed test after polish"} {"diff": " public class OperationSetAdHocMultiUserChatIcqImpl \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 public class OperationSetAdHocMultiUserChatIcqImpl \n throws OperationFailedException , \n OperationNotSupportedException \n { \n + SINGLE \n AdHocChatRoom adHocChatRoom = createAdHocChatRoom ( \n - adHocRoomName , new Hashtable < String , Object > ( ) ) ; \n + STRING0 + new Date ( ) . getTime ( ) , new Hashtable < String , Object > ( ) ) ; \n \n if ( adHocChatRoom != null && contacts != null ) \n {", "msg_token": "Fix ICQ ad hoc chat room creation"} {"diff": " public class IndexRelationshipFunctionalTest \n JaxRsResponse response = httpPostIndexRelationshipRoot ( JsonHelper . createJsonFrom ( indexSpecification ) ) ; \n assertEquals ( NUMBER0 , response . getStatus ( ) ) ; \n assertNotNull ( response . getHeaders ( ) . get ( STRING0 ) . get ( NUMBER1 ) ) ; \n - assertEquals ( helper . getRelationshipIndexes ( ) . length , NUMBER2 ) ; \n + assertEquals ( NUMBER2 , helper . getRelationshipIndexes ( ) . length ) ; \n assertNotNull ( helper . getRelationshipIndex ( indexName ) ) ; \n }", "msg_token": "Correcting the order of expected and equals in an assertion that s"} {"diff": " public class AIMSICDDbAdapter { \n public boolean checkLAC ( Cell cell ) { \n Cursor cursor = mDb . query ( CELL_TABLE , new String [ ] { STRING0 } , STRING1 + cell . getCID ( ) , \n null , null , null , null ) ; \n - Log . d ( STRING2 , STRING3 + cursor . getCount ( ) ) ; \n + \n while ( cursor . moveToNext ( ) ) { \n - Log . d ( STRING2 , STRING4 + cell . getLAC ( ) + STRING5 + cursor . getInt ( NUMBER0 ) ) ; \n if ( cell . getLAC ( ) != cursor . getInt ( NUMBER0 ) ) { \n Log . i ( TAG , STRING6 + cell . getLAC ( ) + \n STRING7 + cursor . getInt ( NUMBER0 ) ) ;", "msg_token": "removed debug log"} {"diff": " public class RngXmlHighlightingTest extends HighlightingTestBase { \n final ExternalResourceManagerEx m = ExternalResourceManagerEx . getInstanceEx ( ) ; \n m . addResource ( STRING0 , toAbsolutePath ( STRING1 ) ) ; \n m . addResource ( STRING2 , toAbsolutePath ( STRING3 ) ) ; \n - m . addResource ( STRING4 , toAbsolutePath ( STRING5 ) ) ; \n + SINGLE \n m . addResource ( STRING6 , toAbsolutePath ( STRING7 ) ) ; \n m . addResource ( STRING8 , toAbsolutePath ( STRING9 ) ) ; \n m . addResource ( STRING10 , toAbsolutePath ( STRING11 ) ) ;", "msg_token": "don t register resource for XSLT in Relax NG test"} {"diff": " public abstract class BTreeKeySerializer < K > { \n \n @ override \n public Object [ ] deserialize ( DataInput in , int start , int end , int size ) throws IOException { \n - Object [ ] ret = new Long [ size ] ; \n + Object [ ] ret = new Integer [ size ] ; \n int prev = NUMBER0 ; \n for ( int i = start ; i < end ; i ++ ) { \n ret [ i ] = prev = prev + Utils . unpackInt ( in ) ;", "msg_token": "Fix delta int packer"} {"diff": " public class ConfusionSetLoader { \n } \n String [ ] parts = line . replaceFirst ( STRING0 , STRING1 ) . split ( STRING2 ) ; \n if ( parts . length != NUMBER0 ) { \n - throw new RuntimeException ( STRING3 + line ) ; \n + throw new RuntimeException ( STRING4 + line + STRING5 ) ; \n } \n List < ConfusionString > confusionStrings = new ArrayList < > ( ) ; \n for ( String part : Arrays . asList ( parts ) . subList ( NUMBER1 , parts . length - NUMBER2 ) ) {", "msg_token": "improve exception message"} {"diff": " class FileHistoryCache implements HistoryCache { \n } \n } \n \n - private void storeFile ( History history , File file , Repository repository ) \n - throws HistoryException { \n + private void storeFile ( History history , File file ) throws HistoryException { \n \n File cache = getCachedFile ( file ) ; \n \n class FileHistoryCache implements HistoryCache { \n hist . setHistoryEntries ( e . getValue ( ) ) ; \n File file = new File ( root , e . getKey ( ) ) ; \n if ( ! file . isDirectory ( ) ) { \n - storeFile ( hist , file , repository ) ; \n + storeFile ( hist , file ) ; \n } \n } \n } \n class FileHistoryCache implements HistoryCache { \n ( cache . exists ( ) || \n ( time > env . getHistoryReaderTimeLimit ( ) ) ) ) { \n SINGLE \n - storeFile ( history , file , repository ) ; \n + storeFile ( history , file ) ; \n } \n } \n return history ;", "msg_token": "Removed unused parameter"} {"diff": " public class ClientConductor extends Agent implements DriverListener \n final int sessionId = publication . sessionId ( ) ; \n \n activeCorrelationId = driverProxy . removePublication ( channel , streamId , sessionId ) ; \n + publicationMap . remove ( channel , sessionId , streamId ) ; \n \n awaitOperationSucceeded ( ) ; \n - \n - publicationMap . remove ( channel , sessionId , streamId ) ; \n } \n \n public synchronized Subscription addSubscription ( final String channel , final int streamId , final DataHandler handler ) \n public class ClientConductor extends Agent implements DriverListener \n if ( null == subscription ) \n { \n activeCorrelationId = driverProxy . addSubscription ( channel , streamId ) ; \n - \n subscription = new Subscription ( this , handler , channel , streamId , activeCorrelationId ) ; \n - \n subscriptionMap . put ( channel , streamId , subscription ) ; \n \n awaitOperationSucceeded ( ) ;", "msg_token": "Java Remove publication from client map while waiting on the driver"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "adding missing header"} {"diff": " public class AtmosphereRequest extends HttpServletRequestWrapper { \n return b . request . getLocale ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public AtmosphereResource resource ( ) { \n + return ( AtmosphereResource ) getAttribute ( FrameworkConfig . ATMOSPHERE_RESOURCE ) ; \n + } \n \n COMMENT \n COMMENT \n public class AtmosphereResponse extends HttpServletResponseWrapper { \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public AtmosphereResource resource ( ) { \n + if ( atmosphereRequest != null ) { \n + return ( AtmosphereResource ) atmosphereRequest . getAttribute ( FrameworkConfig . ATMOSPHERE_RESOURCE ) ; \n + } else { \n + return null ; \n + } \n + } \n + \n public void setResponse ( ServletResponse response ) { \n super . setResponse ( response ) ; \n if ( HttpServletResponse . class . isAssignableFrom ( response . getClass ( ) ) ) {", "msg_token": "add a useful resource method to get the associated AtmosphereResource"} {"diff": " public class WPRestClient { \n private static final String APP_SECRET_PROPERTY = STRING0 ; \n private static final String APP_REDIRECT_PROPERTY = STRING1 ; \n \n + private static final String NOTIFICATION_FIELDS = STRING2 ; \n + \n private Oauth mOauth ; \n private RestClient mRestClient ; \n private SharedPreferences mPrefs ; \n public class WPRestClient { \n COMMENT \n COMMENT \n COMMENT \n - public void getNotifications ( AsyncHttpResponseHandler handler ) { \n - RequestParams params = new RequestParams ( ) ; \n + public void getNotifications ( RequestParams params , AsyncHttpResponseHandler handler ) { \n params . put ( STRING3 , STRING4 ) ; \n + params . put ( STRING5 , NOTIFICATION_FIELDS ) ; \n get ( STRING6 , params , handler ) ; \n } \n + public void getNotifications ( AsyncHttpResponseHandler handler ) { \n + getNotifications ( new RequestParams ( ) , handler ) ; \n + } \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding notifications request methods"} {"diff": " public final class Cookies { \n while ( pos >= NUMBER0 ) { \n MessageBytes cookieValue = headers . getValue ( pos ) ; \n \n - if ( cookieValue != null && cookieValue . isNull ( ) ) { \n + if ( cookieValue != null && ! cookieValue . isNull ( ) ) { \n if ( cookieValue . getType ( ) != MessageBytes . T_BYTES ) { \n Exception e = new Exception ( ) ; \n log . warn ( STRING0 , e ) ; \n public final class Cookies { \n COMMENT \n COMMENT \n COMMENT \n - protected final void processCookieHeader ( byte bytes [ ] , int off , int len ) { \n + final void processCookieHeader ( byte bytes [ ] , int off , int len ) { \n if ( len <= NUMBER0 || bytes == null ) { \n return ; \n }", "msg_token": "Fix refactoring snafu"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CommentListAdapter extends AbstractAppListAdapter < CommentBean > { \n getActivity ( ) . startActivity ( intent ) ; \n } \n } ) ; \n + holder . content . setMovementMethod ( LinkMovementMethod . getInstance ( ) ) ; \n } \n }", "msg_token": "click imageview to reply comment"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n List < ZWaveDbAssociationGroup > groupList = database . getProductAssociationGroups ( ) ; \n \n if ( groupList != null ) { \n - SINGLE \n + SINGLE \n SINGLE \n for ( ZWaveDbAssociationGroup group : groupList ) { \n - SINGLE \n + SINGLE \n record = new OpenHABConfigurationRecord ( domain , STRING0 + group . Index + STRING1 , \n database . getLabel ( group . Label ) , group . SetToController ) ; \n \n SINGLE \n record . description = database . getLabel ( group . Help ) ; \n + \n + SINGLE \n + ZWaveAssociationCommandClass associationCommandClass = ( ZWaveAssociationCommandClass ) node \n + . getCommandClass ( CommandClass . ASSOCIATION ) ; \n + int memberCnt = NUMBER0 ; \n + List < Integer > members = associationCommandClass . getGroupMembers ( group . Index ) ; \n + if ( members != null ) \n + memberCnt = members . size ( ) ; \n + record . value = memberCnt + STRING2 + group . Maximum + STRING3 ; \n \n SINGLE \n record . addAction ( STRING4 , STRING4 ) ;", "msg_token": "Add group member count to config data"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n getSpellChecker ( ) . addSpellCheckSpan ( ( SpellCheckSpan ) what ) ; \n } \n } \n - \n - if ( what instanceof SuggestionSpan ) { \n - if ( newStart < NUMBER0 ) { \n - Log . d ( STRING0 , STRING1 + mText . subSequence ( oldStart , oldEnd ) ) ; \n - } \n - } \n } \n \n COMMENT", "msg_token": "Remove spell log that exposes typed text in the logs"} {"diff": " public class TemplatesCompletionTest extends CompletionAutoPopupTestCase { \n doAutoPopupTest ( STRING0 , null ) ; \n } \n \n - public void testDoNotAutoCompleteCompletionElementIfTemplateUnique ( ) { \n + public void testDoNotAutoCompleteCompletionElementIfTemplateUnique ( ) { \n LiveTemplateCompletionContributor . ourShowTemplatesInTests = true ; \n configureByFile ( ) ; \n myFixture . completeBasic ( ) ;", "msg_token": "Remove redundant spaces"} {"diff": " import NAMESPACE ; \n public final class Count extends MongoCommand { \n public Count ( final MongoFind find , final String collectionName ) { \n super ( asCommandDocument ( find , collectionName ) ) ; \n + readPreference ( find . getReadPreference ( ) ) ; \n } \n \n private static CommandDocument asCommandDocument ( final MongoFind find , final String collectionName ) {", "msg_token": "Setting readPreference property for count command"} {"diff": " public class GitBlit implements ServletContextListener { \n UserModel model = HttpUtils . getUserModelFromCertificate ( httpRequest , checkValidity , oids ) ; \n if ( model != null ) { \n UserModel user = GitBlit . self ( ) . getUserModel ( model . username ) ; \n - logger . info ( STRING0 , user . username , httpRequest . getRemoteAddr ( ) ) ; \n + logger . info ( MessageFormat . format ( STRING0 , \n + user . username , httpRequest . getRemoteAddr ( ) ) ) ; \n return user ; \n } \n return null ;", "msg_token": "Fixed missing format call for certificate authentication logging"} {"diff": " \n \n package NAMESPACE ; \n \n + @ suppresswarnings ( STRING0 ) \n public interface DraggableItemConstants { \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n class SwipeReactionUtils { \n + @ suppresswarnings ( STRING0 ) \n public static int extractLeftReaction ( int type ) { \n return ( ( type > > > InternalConstants . BIT_SHIFT_AMOUNT_LEFT ) & InternalConstants . REACTION_CAPABILITY_MASK ) ; \n } \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + @ suppresswarnings ( STRING0 ) \n public interface SwipeableItemConstants { \n COMMENT \n COMMENT", "msg_token": "Lint Suppress some PointlessBitwiseExpression warnings"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n final class FMLLogFormatter extends Formatter \n String name = lvl . getLocalizedName ( ) ; \n if ( name == null ) \n { \n - name = lvl . getName ( ) ; \n + name = lvl . getName ( ) ; \n } \n \n if ( ( name != null ) && ( name . length ( ) > NUMBER0 ) ) \n final class FMLLogFormatter extends Formatter \n { \n msg . append ( STRING0 ) ; \n } \n - msg . append ( record . getMessage ( ) ) ; \n + msg . append ( formatMessage ( record ) ) ; \n msg . append ( LINE_SEPARATOR ) ; \n Throwable thr = record . getThrown ( ) ;", "msg_token": "Format the log messages through MessageFormat"} {"diff": " public final class RegExpLanguageHosts extends ClassExtension < RegExpLanguageHost \n return true ; \n } \n final RegExpLanguageHost host = findRegExpHost ( regExpChar ) ; \n - return host != null && host . supportsExtendedHexCharacter ( regExpChar ) ; \n + try { \n + return host != null && host . supportsExtendedHexCharacter ( regExpChar ) ; \n + } catch ( AbstractMethodError e ) { \n + SINGLE \n + return false ; \n + } \n } \n \n public boolean supportsNamedGroupSyntax ( @ nullable final RegExpGroup group ) {", "msg_token": "catch AbstractMethodError for old api clients"} {"diff": " public class RouteSpec implements Cloneable { \n return agency . hashCode ( ) ^ routeName . hashCode ( ) ; \n } \n \n + @ override \n + public String toString ( ) { \n + return String . format ( STRING0 , agency , routeName ) ; \n + } \n + \n public RouteSpec clone ( ) { \n try { \n return ( RouteSpec ) super . clone ( ) ;", "msg_token": "Added toString method to RouteSpec"} {"diff": " public class WireMock { \n return new RequestPatternBuilder ( RequestMethod . TRACE , urlPattern ) ; \n } \n \n + public static RequestPatternBuilder anyRequestedFor ( UrlPattern urlPattern ) { \n + return new RequestPatternBuilder ( RequestMethod . ANY , urlPattern ) ; \n + } \n + \n public static RequestPatternBuilder requestMadeFor ( String customMatcherName , Parameters parameters ) { \n return RequestPatternBuilder . forCustomMatcher ( customMatcherName , parameters ) ; \n } \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class VerificationAcceptanceTest { \n verify ( getRequestedFor ( urlEqualTo ( STRING0 ) ) ) ; \n } \n \n + @ test \n + public void anyRequestedForMatchesAnyHttpMethod ( ) { \n + testClient . get ( STRING0 ) ; \n + verify ( anyRequestedFor ( urlEqualTo ( STRING0 ) ) ) ; \n + } \n + \n @ test ( expected = VerificationException . class ) \n public void throwsVerificationExceptionOnUrlEqualsWhenQueryMissing ( ) { \n testClient . get ( STRING0 ) ;", "msg_token": "Adding verification method for any HTTP method"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n + \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class PreconditionFactoryTest { \n \n } \n \n + @ after \n + public void after ( ) { \n + PreconditionFactory . reset ( ) ; \n + \n + } \n + \n @ test \n public void getInstance ( ) { \n assertNotNull ( PreconditionFactory . getInstance ( ) ) ;", "msg_token": "Preconditions factory not cleaning itself up"} {"diff": " public abstract class ListenerDiffViewerBase extends DiffViewerBase { \n super ( context , request ) ; \n myDocumentListener = createDocumentListener ( ) ; \n myFileListener = createFileListener ( request ) ; \n + } \n \n + @ override \n + protected void onInit ( ) { \n + super . onInit ( ) ; \n if ( myFileListener != null ) VirtualFileManager . getInstance ( ) . addVirtualFileListener ( myFileListener ) ; \n \n for ( Document document : getDocuments ( ) ) {", "msg_token": "install listeners in onInit"} {"diff": " public class ContentExchange extends CachedExchange \n public String getResponseContent ( ) throws UnsupportedEncodingException \n { \n if ( _responseContent != null ) \n - { \n return _responseContent . toString ( _encoding ) ; \n - } \n + return null ; \n + } \n + \n + public byte [ ] getResponseContentBytes ( ) \n + { \n + if ( _responseContent != null ) \n + return _responseContent . toByteArray ( ) ; \n return null ; \n }", "msg_token": "Added byte getter for the response content"} {"diff": " public class CassandraArtifactCache implements ArtifactCache { \n \n private void reportConnectionFailure ( String context , ConnectionException exception ) { \n if ( numConnectionExceptionReports . incrementAndGet ( ) < MAX_CONNECTION_FAILURE_REPORTS ) { \n - buckEventBus . post ( ThrowableLogEvent . create ( exception , \n - STRING0 , \n - context , \n - exception . getMessage ( ) ) ) ; \n + buckEventBus . post ( new CassandraConnectionExceptionEvent ( \n + exception , \n + String . format ( \n + STRING0 , \n + context , \n + exception . getMessage ( ) ) ) ) ; \n + } \n + } \n + \n + public static class CassandraConnectionExceptionEvent extends ThrowableLogEvent { \n + \n + public CassandraConnectionExceptionEvent ( Throwable throwable , String message ) { \n + super ( throwable , message ) ; \n } \n } \n }", "msg_token": "Log cassandra connection failures to scuba"} {"diff": " public final class PrimitiveCodecs implements Codec < Object > { \n . otherEncoder ( new ShortCodec ( ) ) \n . otherEncoder ( new ByteCodec ( ) ) \n . otherEncoder ( new ByteArrayCodec ( ) ) \n + . otherEncoder ( new UUIDCodec ( ) ) \n . build ( ) ; \n }", "msg_token": "Added UUID Codec to PrimitiveCodecs"} {"diff": " public class GitCheckoutProcessor extends VcsCheckoutProcessor { \n Project project = frame == null || frame . getProject ( ) == null ? ProjectManager . getInstance ( ) . getDefaultProject ( ) : frame . getProject ( ) ; \n return GitCheckoutProvider . doClone ( project , \n ServiceManager . getService ( Git . class ) , \n - directoryName , parentDirectory . getPath ( ) , parameters ) ; \n + directoryName , parentDirectory . getPath ( ) , parameters . get ( STRING0 ) ) ; \n } \n }", "msg_token": "passing objects to VcsCheckoutProcessor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class ForgeMinecraftCommandWrapper extends MinecraftCommandWrapper { \n } \n return super . throwEvent ( sender , args ) ; \n } \n + \n + @ override \n + public boolean suppressDuplicateAlias ( String alias ) { \n + SpongeImpl . getLogger ( ) . warn ( STRING0 , this . getOwner ( ) . getId ( ) , alias ) ; \n + return true ; \n + } \n }", "msg_token": "Allow mods to register duplicate command aliases"} {"diff": " public abstract class DateTimeZone implements Serializable { \n try { \n try { \n cDefault = getInstance ( System . getProperty ( STRING0 ) ) ; \n - } catch ( RuntimeException e ) { \n + } catch ( RuntimeException ignored ) { \n } \n - cDefault = getInstance ( java . util . TimeZone . getDefault ( ) ) ; \n - } catch ( IllegalArgumentException e ) { \n + if ( cDefault == null ) { \n + cDefault = getInstance ( java . util . TimeZone . getDefault ( ) ) ; \n + } \n + } catch ( IllegalArgumentException ignored ) { \n } \n \n if ( cDefault == null ) {", "msg_token": "Fix a bug in timezone obtaining"} {"diff": " public final class HeaderValues extends AbstractCollection < String > implements De \n public void clear ( ) { \n final byte size = this . size ; \n if ( size == NUMBER0 ) return ; \n - clearInternal ( size ) ; \n + clearInternal ( ) ; \n } \n \n - private void clearInternal ( byte size ) { \n + private void clearInternal ( ) { \n final Object value = this . value ; \n if ( value instanceof String [ ] ) { \n final String [ ] strings = ( String [ ] ) value ;", "msg_token": "Removed unused parameter in HeaderValues clearInternal"} {"diff": " public class PrivacyService { \n } \n } \n \n - if ( db . needUpgrade ( NUMBER0 ) ) { \n + if ( db . needUpgrade ( NUMBER1 ) ) { \n mLock . writeLock ( ) . lock ( ) ; \n db . beginTransaction ( ) ; \n try {", "msg_token": "Fix database upgrade"} {"diff": " public class StandardJarScanFilter implements JarScanFilter { \n private Set < String [ ] > pluggabilityScanSet = new HashSet < > ( ) ; \n private boolean defaultPluggabilityScan = true ; \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public StandardJarScanFilter ( ) { \n SINGLE \n defaultSkip = System . getProperty ( Constants . SKIP_JARS_PROPERTY ) ;", "msg_token": "Add some Javadoc"} {"diff": " public class MailConsumer extends ScheduledPollConsumer implements BatchConsumer \n \n SINGLE \n if ( maxMessagesPerPoll > NUMBER0 && total > maxMessagesPerPoll ) { \n - LOG . debug ( STRING0 + maxMessagesPerPoll + STRING1 + total + STRING2 ) ; \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( STRING0 + maxMessagesPerPoll + STRING1 + total + STRING2 ) ; \n + } \n total = maxMessagesPerPoll ; \n } \n \n public class MailConsumer extends ScheduledPollConsumer implements BatchConsumer \n COMMENT \n COMMENT \n protected void processRollback ( Exchange exchange ) throws MessagingException { \n - LOG . warn ( STRING3 + exchange ) ; \n + Exception cause = exchange . getException ( ) ; \n + if ( cause != null ) { \n + LOG . warn ( STRING3 + exchange , cause ) ; \n + } else { \n + LOG . warn ( STRING3 + exchange ) ; \n + } \n } \n \n private void ensureIsConnected ( ) throws MessagingException {", "msg_token": "Log caused exception in case of rollback"} {"diff": " public class URLReference implements PsiReference , QuickFixProvider , EmptyResolv \n return null ; \n } \n \n - if ( tag == rootTag && tag . getNamespace ( ) . equals ( XmlUtil . XML_SCHEMA_URI ) ) { \n + if ( tag == rootTag && ( tag . getNamespace ( ) . equals ( XmlUtil . XML_SCHEMA_URI ) || tag . getNamespace ( ) . equals ( XmlUtil . WSDL_SCHEMA_URI ) ) ) { \n for ( XmlTag t : tag . getSubTags ( ) ) { \n final String name = t . getLocalName ( ) ; \n if ( STRING0 . equals ( name ) ) { \n public class XmlUtil { \n @ nonnls public static final String VALUE_ATTR_NAME = STRING1 ; \n @ nonnls public static final String ENUMERATION_TAG_NAME = STRING2 ; \n public static final String HTML4_LOOSE_URI = STRING3 ; \n + public static final String WSDL_SCHEMA_URI = STRING4 ; \n \n \n private XmlUtil ( ) {", "msg_token": "find imports in wsdl files too"} {"diff": " public class DTree extends Iced { \n int treesInForest = NUMBER0 ; \n SB forest = new SB ( ) ; \n SINGLE \n - COMMENT \n + COMMENT \n bodySb . i ( ) . p ( STRING0 ) . nl ( ) ; \n for ( int c = NUMBER0 ; c < nclasses ( ) ; c ++ ) { \n toJavaForestBegin ( bodySb , forest , c , fidx ++ , maxfsize ) ;", "msg_token": "Removed accidently commented line from generated code"} {"diff": " public class AndroidCallableTest { \n } \n } \n \n + @ test \n + public void shouldCrashAppForExceptionInOnPreExecuteOrOnSuccessOrOnFinally ( ) { \n + throw new UnsupportedOperationException ( ) ; \n + } \n + \n + \n + @ test \n + public void shouldCallOnExceptionForExceptionInOnPreExecute ( ) { \n + throw new UnsupportedOperationException ( ) ; \n + } \n + \n + \n private static class StringAndroidCallable extends AndroidCallable < String > { \n Thread [ ] answers ; \n boolean shouldThrowException ;", "msg_token": "Add testcases not yet implemented"} {"diff": " public abstract class AsyncHttpResponseHandler implements ResponseHandlerInterfa \n Message msg ; \n if ( handler == null ) { \n msg = Message . obtain ( ) ; \n - msg . what = responseMessageId ; \n - msg . obj = responseMessageData ; \n + if ( msg != null ) { \n + msg . what = responseMessageId ; \n + msg . obj = responseMessageData ; \n + } \n } else { \n msg = Message . obtain ( handler , responseMessageId , responseMessageData ) ; \n }", "msg_token": "Fixed possible NPE on Message dereference"} {"diff": " static class LocalBinding { \n } \n \n public boolean hasJavaClass ( ) throws Exception { \n + if ( init != null && init . hasJavaClass ( ) && init . getJavaClass ( ) . isPrimitive ( ) \n + && ! ( init instanceof MaybePrimitiveExpr ) ) \n + return false ; \n return tag != null \n || ( init != null && init . hasJavaClass ( ) ) ; \n }", "msg_token": "fixed local binding of non primitive emitting exprs of primitive flow through type"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class NestedQueryParser implements QueryParser { \n \n Filter childFilter = parseContext . cacheFilter ( objectMapper . nestedTypeFilter ( ) , null ) ; \n usAsParentFilter . filter = childFilter ; \n - if ( usAsParentFilter . filter == null ) { \n - System . out . println ( STRING0 ) ; \n - } \n SINGLE \n query = new FilteredQuery ( query , childFilter ) ;", "msg_token": "remove test sysout"} {"diff": " public abstract class OutputBuffer { \n COMMENT \n COMMENT \n public abstract int size ( ) ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract int pipe ( OutputStream out ) \n throws IOException ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n - public byte [ ] toByteArray ( ) { \n + public byte [ ] toByteArray ( ) { \n try { \n - ByteArrayOutputStream bout = new ByteArrayOutputStream ( size ( ) ) ; \n + final ByteArrayOutputStream bout = new ByteArrayOutputStream ( size ( ) ) ; \n pipe ( bout ) ; \n return bout . toByteArray ( ) ; \n }", "msg_token": "made outputstream final"} {"diff": " public class AntProjectImpl extends AntStructuredElementImpl implements AntProje \n try { \n for ( final AntFile imported : project . getImportedFiles ( ) ) { \n final AntProject importedProject = imported . getAntProject ( ) ; \n - if ( importedProject != null ) { \n + if ( importedProject != null && ! elementsDepthStack . contains ( importedProject ) ) { \n for ( final AntTarget target : importedProject . getTargets ( ) ) { \n targets . add ( target ) ; \n }", "msg_token": "getImportedTargets doesn t return duplicates in case of importing graph of any complexity"} {"diff": " public class CoreProgressManager extends ProgressManager implements Disposable { \n finishTask ( task , finalCanceled , finalException ) ; \n } \n else { \n - ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n + ApplicationManager . getApplication ( ) . invokeAndWait ( new Runnable ( ) { \n @ override \n public void run ( ) { \n finishTask ( task , finalCanceled , finalException ) ;", "msg_token": "call callbacks synchronously when running headless tasks from non EDT thread"} {"diff": " public class ConnectionsPresenter extends BasePresenter \n { \n exploreConnection ( event . getConnection ( ) ) ; \n } \n + activate ( ) ; \n } \n \n public void onConnectionUpdated ( ConnectionUpdatedEvent event )", "msg_token": "activate connections tab when new connection is opened"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class AbstractHeaderCheck extends AbstractFileSetCheck { \n + COMMENT \n + private static final Pattern ESCAPED_LINE_FEED_PATTERN = Pattern . compile ( STRING0 ) ; \n COMMENT \n private String filename ; \n \n public abstract class AbstractHeaderCheck extends AbstractFileSetCheck { \n \n checkHeaderNotInitialized ( ) ; \n \n - final String headerExpandedNewLines = header . replaceAll ( STRING0 , STRING1 ) ; \n + final String headerExpandedNewLines = ESCAPED_LINE_FEED_PATTERN \n + . matcher ( header ) . replaceAll ( STRING1 ) ; \n \n final Reader headerReader = new StringReader ( headerExpandedNewLines ) ; \n try {", "msg_token": "Use compiled pattern instead of dynamic regexp"} {"diff": " public class GCDocument extends JInternalFrame { \n final ModelChartImpl modelChart = ( ModelChartImpl ) chartPanelView . getModelChart ( ) ; \n final ModelPanel modelPanel = chartPanelView . getModelPanel ( ) ; \n final JTabbedPane modelChartAndDetails = chartPanelView . getModelChartAndDetails ( ) ; \n + modelChart . resetPolygonCache ( ) ; \n modelChart . invalidate ( ) ; \n GridBagConstraints constraints = new GridBagConstraints ( ) ; \n constraints . fill = GridBagConstraints . HORIZONTAL ; \n public class ModelChartImpl extends JScrollPane implements ModelChart { \n chart . invalidate ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void resetPolygonCache ( ) { \n + chart . resetPolygons ( ) ; \n + } \n + \n public double getScaleFactor ( ) { \n return scaleFactor ; \n }", "msg_token": "reset polygon cache when timer is running"} {"diff": " public class ContextScope implements Scope { \n public < T > Provider < T > scope ( final Key < T > key , final Provider < T > unscoped ) { \n return new Provider < T > ( ) { \n public T get ( ) { \n - Map < Key < ? > , WeakReference < Object > > scopedObjects = getScopedObjectMap ( key ) ; \n + final Map < Key < ? > , WeakReference < Object > > scopedObjects = getScopedObjectMap ( key ) ; \n \n - T current = ( T ) scopedObjects . get ( key ) . get ( ) ; \n + final WeakReference < Object > ref = scopedObjects . get ( key ) ; \n + T current = ( T ) ( ref != null ? ref . get ( ) : null ) ; \n if ( current == null && ! scopedObjects . containsKey ( key ) ) { \n current = unscoped . get ( ) ; \n scopedObjects . put ( key , new WeakReference < Object > ( current ) ) ;", "msg_token": "fix potential npe in weakref"} {"diff": " public class RealtimePlumber implements Plumber \n @ override \n public QueryRunner < T > apply ( FireHydrant input ) \n { \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( input == null || input . getSegment ( ) == null ) { \n - return new ReportTimelineMissingSegmentQueryRunner < T > ( descriptor ) ; \n - } \n - \n if ( skipIncrementalSegment && ! input . hasSwapped ( ) ) { \n return new NoopQueryRunner < T > ( ) ; \n }", "msg_token": "remove wrong checks"} {"diff": " public abstract class AbstractDomainExporter { \n Set < Supertype > additions = Sets . newHashSet ( ) ; \n for ( Map . Entry < Class < ? > , EntityType > entry : allTypes . entrySet ( ) ) { \n EntityType entityType = entry . getValue ( ) ; \n - if ( entityType . getSuperType ( ) != null && ! allTypes . containsKey ( entityType . getSuperType ( ) . getType ( ) ) ) { \n + if ( entityType . getSuperType ( ) != null && ! allTypes . containsKey ( entityType . getSuperType ( ) . getType ( ) . getJavaClass ( ) ) ) { \n additions . add ( entityType . getSuperType ( ) ) ; \n } \n }", "msg_token": "Fix map usage"} {"diff": " public class Wallet implements Serializable { \n boolean isDead = false ; \n SINGLE \n SINGLE \n - Set < Transaction > connectedTransactions = new TreeSet < Transaction > ( ) ; \n + Set < Transaction > connectedTransactions = new HashSet < Transaction > ( ) ; \n for ( TransactionInput input : tx . getInputs ( ) ) { \n TransactionInput . ConnectionResult result = input . connect ( pool , TransactionInput . ConnectMode . ABORT_ON_CONFLICT ) ; \n if ( result == TransactionInput . ConnectionResult . SUCCESS ) {", "msg_token": "Use a HashSet instead of a TreeSet"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class KeyguardTouchDelegate { \n \n private static KeyguardTouchDelegate sInstance ; \n private static final List < OnKeyguardConnectionListener > sConnectionListeners = \n - Lists . newArrayList ( ) ; \n + new ArrayList < OnKeyguardConnectionListener > ( ) ; \n \n private volatile IKeyguardService mService ;", "msg_token": "Remove only com google reference from SystemUI"} {"diff": " public class ArrayMath { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static void pairwiseDivideInPlace ( double [ ] a , double [ ] b ) { \n public class ArrayMath { \n shuffle ( a , rand ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void shuffle ( int [ ] a , Random rand ) { \n - for ( int i = a . length - NUMBER0 ; i >= NUMBER0 ; i -- ) { \n + for ( int i = a . length - NUMBER0 ; i > NUMBER1 ; i -- ) { \n int j = rand . nextInt ( i + NUMBER0 ) ; SINGLE \n int tmp = a [ i ] ; \n a [ i ] = a [ j ] ;", "msg_token": "Add method javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GroovyFindUsagesProvider implements FindUsagesProvider { \n if ( element instanceof PsiVariable || element instanceof GrReferenceExpression ) return STRING0 ; \n if ( element instanceof GrLabeledStatement ) return STRING1 ; \n if ( element instanceof PropertyForRename ) return STRING2 ; \n + if ( element instanceof GrClosableBlock ) return STRING3 ; \n return STRING4 ; \n } \n \n public class GroovyFindUsagesProvider implements FindUsagesProvider { \n return ( ( GrLabeledStatement ) element ) . getLabelName ( ) ; \n } else if ( element instanceof PropertyForRename ) { \n return ( ( PropertyForRename ) element ) . getPropertyName ( ) ; \n + } else if ( element instanceof GrClosableBlock ) { \n + return STRING3 ; \n } \n \n return STRING4 ;", "msg_token": "Undo Introduce Closure Parameter shows confusing message"} {"diff": " public class AprEndpoint extends AbstractEndpoint < Long > implements SNICallBack { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n public void run ( ) {", "msg_token": "Correct the description"} {"diff": " public final class Util { \n return Uri . parse ( stringUri ) ; \n } \n if ( stringUri . startsWith ( STRING0 ) ) { \n + stringUri = stringUri . substring ( NUMBER0 ) ; \n return new Uri . Builder ( ) \n . scheme ( baseUri . getScheme ( ) ) \n . authority ( baseUri . getAuthority ( ) )", "msg_token": "Remove additional from merged URLs"} {"diff": " public interface ListenableFuture < V > extends Future < V > { \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", "msg_token": "Clarify statement in addListener documentation"} {"diff": " public class OStorageLocal extends OStorageEmbedded { \n OMMapManagerLocator . getInstance ( ) . flush ( ) ; \n \n super . close ( iForce ) ; \n + uninstallProfilerHooks ( ) ; \n \n Orient . instance ( ) . unregisterStorage ( this ) ; \n status = STATUS . CLOSED ; \n public class OStorageLocal extends OStorageEmbedded { \n } ) ; \n } \n \n + private void uninstallProfilerHooks ( ) { \n + Orient . instance ( ) . getProfiler ( ) . unregisterHookValue ( STRING0 + name + STRING1 ) ; \n + Orient . instance ( ) . getProfiler ( ) . unregisterHookValue ( STRING0 + name + STRING2 ) ; \n + } \n + \n private void formatMessage ( final boolean iVerbose , final OCommandOutputListener iListener , final String iMessage , \n final Object . . . iArgs ) { \n if ( iVerbose )", "msg_token": "Fixed memory leak on unregistering hooks"} {"diff": " public class LocaleUtils { \n } \n } \n catch ( java . util . MissingResourceException mre ) { \n - Log . error ( STRING0 + key \n + Log . warn ( STRING0 + key \n + STRING1 + locale . toString ( ) ) ; \n value = STRING2 ; \n }", "msg_token": "Modified level of logging to warn when a resource bundle is missing"} {"diff": " public class DataLiberationFragment extends Fragment implements OnTaskFinishedLi \n private static final int REQUEST_CODE_IMPORT_AUTOBACKUP = NUMBER0 ; \n private static final int REQUEST_CODE_SHOWS_EXPORT_URI = NUMBER1 ; \n private static final int REQUEST_CODE_SHOWS_IMPORT_URI = NUMBER2 ; \n - public static final String APPLICATION_OCTET_STREAM = STRING0 ; \n \n @ bind ( R . id . containerDataLibExportFiles ) View containerCustomExportFiles ; \n @ bind ( R . id . textViewDataLibShowsExportFile ) TextView textShowsExportFile ; \n public class DataLiberationFragment extends Fragment implements OnTaskFinishedLi \n intent . addCategory ( Intent . CATEGORY_OPENABLE ) ; \n \n SINGLE \n - intent . setType ( APPLICATION_OCTET_STREAM ) ; \n + intent . setType ( STRING1 ) ; \n intent . putExtra ( Intent . EXTRA_TITLE , JsonExportTask . EXPORT_JSON_FILE_SHOWS ) ; \n \n startActivityForResult ( intent , REQUEST_CODE_SHOWS_EXPORT_URI ) ; \n public class DataLiberationFragment extends Fragment implements OnTaskFinishedLi \n intent . addCategory ( Intent . CATEGORY_OPENABLE ) ; \n SINGLE \n SINGLE \n - SINGLE \n - intent . setType ( APPLICATION_OCTET_STREAM ) ; \n + SINGLE \n + intent . setType ( STRING2 ) ; \n \n startActivityForResult ( intent , REQUEST_CODE_SHOWS_IMPORT_URI ) ; \n }", "msg_token": "Open any application file for import store as json mime type"} {"diff": " public abstract class DiffWindowBase { \n public void actionPerformed ( final AnActionEvent e ) { \n myWrapper . close ( ) ; \n } \n - } . registerCustomShortcutSet ( CommonShortcuts . getCloseActiveWindow ( ) , myProcessor . getComponent ( ) ) ; \n + } . registerCustomShortcutSet ( CommonShortcuts . getCloseActiveWindow ( ) , myProcessor . getComponent ( ) , myWrapper ) ; \n } \n \n public void show ( ) {", "msg_token": "Remove shortcut set on closing window"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SSTableReader extends SSTable \n assert components . contains ( Component . DATA ) : STRING0 + descriptor ; \n assert components . contains ( Component . PRIMARY_INDEX ) : STRING1 + descriptor ; \n \n - long start = System . nanoTime ( ) ; \n logger . info ( STRING2 , descriptor , new File ( descriptor . filenameFor ( COMPONENT_DATA ) ) . length ( ) ) ; \n \n SSTableMetadata sstableMetadata = SSTableMetadata . serializer . deserialize ( descriptor ) . left ;", "msg_token": "remove dead assignment"} {"diff": " public class SerializableORB extends ORB implements Serializable { \n return delegate . create_operation_list ( oper ) ; \n } \n \n - @ override \n + SINGLE \n public NVList create_operation_list ( OperationDef operationDef ) { \n return delegate . create_operation_list ( operationDef ) ; \n }", "msg_token": "Intellij keeps JDK ORB class in front"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VcsLogDataHolder implements Disposable , VcsLogDataProvider { \n myDataPackUpdateHandler , new Consumer < Exception > ( ) { \n @ override \n public void consume ( Exception e ) { \n - LOG . error ( e ) ; \n + if ( ! ( e instanceof ProcessCanceledException ) ) { \n + LOG . error ( e ) ; \n + } \n } \n } , mySettings . getRecentCommitsCount ( ) ) ; \n }", "msg_token": "log Don t log PCE"} {"diff": " class TagFileProcessor { \n new JspUtil . ValidAttribute ( STRING0 ) , \n new JspUtil . ValidAttribute ( STRING1 ) , \n new JspUtil . ValidAttribute ( STRING2 ) , \n + new JspUtil . ValidAttribute ( STRING3 ) , SINGLE \n + new JspUtil . ValidAttribute ( STRING4 ) , SINGLE \n new JspUtil . ValidAttribute ( STRING5 ) } ; \n \n private static final JspUtil . ValidAttribute [ ] attributeDirectiveAttrs = {", "msg_token": "Add two allowed directives"} {"diff": " import NAMESPACE ; \n \n public class NinjaBootup { \n \n - private final String APPLICATION_GUICE_MODULE_CONVENTION_LOCATION = STRING0 ; \n + private final String APPLICATION_GUICE_MODULE_CONVENTION_LOCATION = STRING1 ; \n private final String ROUTES_CONVENTION_LOCATION = STRING2 ; \n \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class Configuration extends AbstractModule { \n + public class Module extends AbstractModule { \n \n protected void configure ( ) {", "msg_token": "renamed configuration to module as it is a guice module"} {"diff": " import NAMESPACE ; \n COMMENT \n public class XHTMLText { \n \n + private static final String NAMESPACE = STRING0 ; \n + \n private StringBuilder text = new StringBuilder ( NUMBER0 ) ; \n \n COMMENT \n public class XHTMLText { \n COMMENT \n COMMENT \n private void appendOpenBodyTag ( String style , String lang ) { \n - StringBuilder sb = new StringBuilder ( STRING1 ) ; \n + StringBuilder sb = new StringBuilder ( STRING2 + NAMESPACE + STRING3 ) ; \n if ( style != null ) { \n sb . append ( STRING4 ) ; \n sb . append ( style ) ;", "msg_token": "Add namespace attribute to XHTML IM body tags"} {"diff": " public class ShowUsagesAction extends AnAction implements PopupAction { \n private static FindUsagesOptions getDefaultOptions ( @ notnull FindUsagesHandler handler ) { \n FindUsagesOptions options = handler . getFindUsagesOptions ( DataManager . getInstance ( ) . getDataContext ( ) ) ; \n SINGLE \n - options . searchScope = FindUsagesManager . getMaximalScope ( handler ) ; \n + SINGLE \n return options ; \n }", "msg_token": "make show usages consistent with Find usages"} {"diff": " public class StreamCharBuffer implements Writable , CharSequence , Externalizable , \n addChunk ( new StringChunk ( str , NUMBER0 , str . length ( ) ) ) . setEncodingState ( encodingState ) ; \n } \n } \n - if ( encodingState != null && encodingState . getEncoders ( ) . size ( ) > NUMBER0 ) { \n + if ( encodingState != null && encodingState . getEncoders ( ) != null && encodingState . getEncoders ( ) . size ( ) > NUMBER0 ) { \n Encoder encoder = encodingState . getEncoders ( ) . iterator ( ) . next ( ) ; \n if ( encoder != null ) \n encoder . markEncoded ( str ) ;", "msg_token": "Fix NPE in SCB"} {"diff": " import NAMESPACE ; \n public class TitleComparator implements Comparator < Title > { \n @ override \n public int compare ( Title title0 , Title title1 ) { \n - return title0 . getKeySort ( ) . compareTo ( title1 . getKeySort ( ) ) ; \n + return title0 . getSortKey ( ) . compareTo ( title1 . getSortKey ( ) ) ; \n } \n }", "msg_token": "Added TitleComparator java"} {"diff": " public class JGitUtils { \n String target = null ; \n try { \n target = repository . getFullBranch ( ) ; \n - if ( ! target . startsWith ( Constants . R_HEADS ) ) { \n - SINGLE \n - SINGLE \n - List < RefModel > tagModels = getTags ( repository , true , - NUMBER0 ) ; \n - if ( tagModels . size ( ) > NUMBER1 ) { \n - RefModel tag = null ; \n - Date lastDate = new Date ( NUMBER1 ) ; \n - for ( RefModel tagModel : tagModels ) { \n - if ( tagModel . getReferencedObjectId ( ) . getName ( ) . equals ( target ) && \n - tagModel . getDate ( ) . after ( lastDate ) ) { \n - tag = tagModel ; \n - lastDate = tag . getDate ( ) ; \n - } \n - } \n - target = tag . getName ( ) ; \n - } \n - } \n } catch ( Throwable t ) { \n error ( t , repository , STRING0 ) ; \n }", "msg_token": "Remove elaborate HEAD determination"} {"diff": " public class TaskController extends AbstractController { \n \n SINGLE \n RepeatInfo repeatInfo = model . getRepeat ( ) ; \n - if ( repeatInfo != null ) \n + if ( repeatInfo != null ) { \n model . repeatTaskBy ( context , this , repeatInfo ) ; \n + database . update ( TASK_TABLE_NAME , values , KEY_ROWID + STRING0 + \n + task . getTaskIdentifier ( ) . getId ( ) , null ) ; \n + } \n \n SINGLE \n if ( ( model . getFlags ( ) & TaskModelForHandlers . FLAG_SYNC_ON_COMPLETE ) > NUMBER0 ) {", "msg_token": "Fixed bug with repeating tasks"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NodeCmd \n { \n throw new RuntimeException ( e ) ; \n } \n + \n + if ( DatabaseDescriptor . getNumTokens ( ) > NUMBER0 ) \n + { \n + outs . println ( STRING0 ) ; \n + outs . println ( STRING1 ) ; \n + } \n } \n \n private void printDc ( PrintStream outs , String format , String dc , LinkedHashMultimap < String , String > endpointsToTokens ,", "msg_token": "Print a warning when using nodetool ring with vnodes"} {"diff": " public class ChangeJVMFrame \n + STRING0 ; \n \n private String macLink \n - = STRING1 + \n - STRING2 ; \n + = STRING3 + \n + STRING4 ; \n \n private String defaultLink \n = STRING5 +", "msg_token": "Fix broken download link for Apple JRE"} {"diff": " public class EditPeopleControlSet extends PopupControlSet { \n int taskRabbitIndex = addUnassigned ? NUMBER0 : NUMBER1 ; \n if ( ! addContactPicker ) \n taskRabbitIndex -- ; \n - coreUsers . add ( taskRabbitIndex , taskRabbitUser ) ; \n if ( l . didPostToTaskRabbit ( ) ) { \n + coreUsers . add ( taskRabbitIndex , taskRabbitUser ) ; \n assignedIndex = taskRabbitIndex ; \n } \n } \n public class AstridOrderedListFragmentHelper < LIST > implements OrderedListFragmen \n updater . onCreateTask ( list , getFilter ( ) , task . getId ( ) ) ; \n fragment . reconstructCursor ( ) ; \n fragment . loadTaskListContent ( true ) ; \n + fragment . selectCustomId ( task . getId ( ) ) ; \n } \n \n public void onDeleteTask ( Task task ) {", "msg_token": "Remove task rabbit from the who picker"} {"diff": " public final class CameraManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static abstract class AvailabilityCallback {", "msg_token": "Fix javadoc for CameraManager AvailabilityCallback"} {"diff": " public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n private final int mPhotonHeight ; \n private final int mAvatarSzMedium ; \n private final int mAvatarSzSmall ; \n - private final int mAvatarSzTiny ; \n private final int mMarginLarge ; \n \n private boolean mCanRequestMorePosts ; \n public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n mPostListType = postListType ; \n mAvatarSzMedium = context . getResources ( ) . getDimensionPixelSize ( R . dimen . avatar_sz_medium ) ; \n mAvatarSzSmall = context . getResources ( ) . getDimensionPixelSize ( R . dimen . avatar_sz_small ) ; \n - mAvatarSzTiny = context . getResources ( ) . getDimensionPixelSize ( R . dimen . avatar_sz_tiny ) ; \n mMarginLarge = context . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_large ) ; \n mIsLoggedOutReader = ReaderUtils . isLoggedOutReader ( ) ;", "msg_token": "Removed unused resource variable"} {"diff": " public class Animation3D { \n setHasStarted ( true ) ; \n \n applyTransformation ( interpolatedTime > NUMBER0 ? NUMBER0 : interpolatedTime < NUMBER1 ? NUMBER1 : interpolatedTime ) ; \n + \n + for ( Animation3DListener listener : mAnimationListeners ) { \n + listener . onAnimationUpdate ( mInstance , interpolatedTime ) ; \n + } \n } \n } \n } \n public interface Animation3DListener { \n public void onAnimationEnd ( Animation3D animation ) ; \n public void onAnimationRepeat ( Animation3D animation ) ; \n public void onAnimationStart ( Animation3D animation ) ; \n + public void onAnimationUpdate ( Animation3D animation , float interpolatedTime ) ; \n } \n public class Animation3DQueue implements Animation3DListener { \n \n } \n \n + public void onAnimationUpdate ( Animation3D animation , float interpolatedTime ) { \n + \n + } \n + \n public void start ( ) { \n if ( mAnimations . size ( ) == NUMBER1 ) return ; \n Animation3D animation = mAnimations . get ( NUMBER1 ) ;", "msg_token": "Added onAnimationUpdate to Animation3DListener"} {"diff": " public class GrailsParameterMap implements Map { \n \n private Map parameterMap ; \n private Map controllerParamsMap = new HashMap ( ) ; \n - private HttpServletRequest request ; \n - \n - \n + \n public GrailsParameterMap ( HttpServletRequest request ) { \n super ( ) ; \n - this . request = request ; \n + \n this . parameterMap = request . getParameterMap ( ) ; \n } \n \n public class GrailsParameterMap implements Map { \n if ( valueArray == null ) \n return null ; \n \n - if ( valueArray . length == NUMBER0 ) \n - return request . getParameter ( ( String ) key ) ; \n + if ( valueArray . length == NUMBER0 ) { \n + return valueArray [ NUMBER1 ] ; \n + } \n \n return parameterMap . get ( key ) ; \n }", "msg_token": "changed to use array index to look up parameter instead of unecessary additional method call"} {"diff": " final class SampleMediaRouteProvider extends MediaRouteProvider { \n && intent . getData ( ) != null ) { \n mPlaybackCount += NUMBER0 ; \n \n + SINGLE \n Uri uri = intent . getData ( ) ; \n - double contentPosition = intent . getDoubleExtra ( \n + long contentPositionMillis = intent . getLongExtra ( \n MediaControlIntent . EXTRA_ITEM_CONTENT_POSITION , NUMBER1 ) ; \n Bundle metadata = intent . getBundleExtra ( MediaControlIntent . EXTRA_ITEM_METADATA ) ; \n Bundle headers = intent . getBundleExtra ( \n MediaControlIntent . EXTRA_ITEM_HTTP_HEADERS ) ; \n \n Log . d ( TAG , mRouteId + STRING0 + uri \n - + STRING1 + contentPosition \n + + STRING2 + contentPositionMillis \n + STRING3 + metadata \n + STRING4 + headers ) ; \n \n final class SampleMediaRouteProvider extends MediaRouteProvider { \n if ( callback != null ) { \n MediaItemStatus status = new MediaItemStatus . Builder ( \n MediaItemStatus . PLAYBACK_STATE_PLAYING ) \n - . setContentPosition ( contentPosition ) \n + . setContentPosition ( contentPositionMillis ) \n . build ( ) ; \n \n Bundle result = new Bundle ( ) ;", "msg_token": "Redefine content position in milliseconds instead of seconds"} {"diff": " public class AvoidSpecificRoads { \n } \n \n } ) ; \n + bld . setPositiveButton ( R . string . default_buttons_ok , null ) ; \n bld . show ( ) ; \n }", "msg_token": "Add ok button"} {"diff": " public @ interface DefaultCall { \n \n @ override \n public String toString ( ) { \n - return STRING0 + typeDescription + STRING1 ; \n + return STRING2 + typeDescription + STRING1 ; \n } \n } \n }", "msg_token": "Fixed toString method"} {"diff": " public class AllField extends AbstractField { \n \n @ override public TokenStream tokenStreamValue ( ) { \n try { \n + allEntries . reset ( ) ; SINGLE \n return AllTokenStream . allTokenStream ( name , allEntries , analyzer ) ; \n } catch ( IOException e ) { \n throw new ElasticSearchException ( STRING0 ) ;", "msg_token": "reset stream when getting all stream so it can be reused"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated protobuf example in javadoc"} {"diff": " public class AssetManager implements Disposable { \n return ; \n } \n \n - SINGLE \n + SINGLE \n + SINGLE \n if ( tasks . size ( ) > NUMBER0 ) { \n AssetLoadingTask currAsset = tasks . firstElement ( ) ; \n if ( currAsset . assetDesc . fileName . equals ( fileName ) ) {", "msg_token": "fixed improved code comments of asset manager"} {"diff": " public class MotionGroup extends AbstractActionGroup \n { \n case NUMBER0 : \n int offset = editor . getCaretModel ( ) . getOffset ( ) ; \n - int clean = EditorHelper . normalizeOffset ( editor , offset , false ) ; \n + int clean = EditorHelper . normalizeOffset ( editor , offset , \n + CommandState . getInstance ( ) . getMode ( ) == CommandState . MODE_INSERT || \n + CommandState . getInstance ( ) . getMode ( ) == CommandState . MODE_REPLACE ) ; \n if ( offset != clean ) \n { \n editor . getCaretModel ( ) . moveToOffset ( clean ) ;", "msg_token": "Allow mouse click to move cursor to end of line while in Insert or Replace modes"} {"diff": " public class GraphDatabaseShellServer extends SimpleAppServer \n { \n this . graphDb . shutdown ( ) ; \n } \n + super . shutdown ( ) ; \n } \n }", "msg_token": "Added a super shutdown so that it unexports the RMI object as well"} {"diff": " public class HibernateAnnotationScanner implements Scanner { \n } \n Index index = getJarFileIndex ( jartoScan , pu ) ; \n if ( index == null ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 + \n + jartoScan . getPath ( ) + STRING2 + pu . getAnnotationIndex ( ) . keySet ( ) + STRING3 ) ; \n } \n if ( jartoScan == null ) { \n throw new IllegalArgumentException ( STRING4 ) ; \n public class HibernateAnnotationScanner implements Scanner { \n } \n Index index = getJarFileIndex ( jartoScan , pu ) ; \n if ( index == null ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 + \n + jartoScan . getPath ( ) + STRING2 + pu . getAnnotationIndex ( ) . keySet ( ) + STRING3 ) ; \n } \n if ( jartoScan == null ) { \n throw new IllegalArgumentException ( STRING4 ) ;", "msg_token": "give more information in error message"} {"diff": " public class Delombok { \n try { \n result . print ( writer ) ; \n } finally { \n - writer . close ( ) ; \n + if ( output != null ) { \n + writer . close ( ) ; \n + } else { \n + writer . flush ( ) ; \n + } \n } \n } \n delegate . close ( ) ;", "msg_token": "print option with multiple input files would only print one file"} {"diff": " public class DraggableView extends RelativeLayout { \n COMMENT \n private boolean smoothSlideTo ( float slideOffset ) { \n final int topBound = getPaddingTop ( ) ; \n - int y = ( int ) ( topBound + slideOffset * getVerticalDragRange ( ) ) ; \n int x = ( int ) ( slideOffset * ( getWidth ( ) - transformer . getMinWidth ( ) ) ) ; \n + int y = ( int ) ( topBound + slideOffset * getVerticalDragRange ( ) ) ; \n if ( viewDragHelper . smoothSlideViewTo ( dragView , x , y ) ) { \n ViewCompat . postInvalidateOnAnimation ( this ) ; \n return true ; \n class ScaleTransformer extends Transformer { \n public int getMinWidth ( ) { \n return ( int ) getOriginalWidth ( ) ; \n } \n + \n + @ override \n + public int getLastLeftPosition ( ) { \n + return NUMBER0 ; \n + } \n + \n } \n public abstract class Transformer { \n public abstract int getWidthPlusMarginRight ( ) ; \n \n public abstract int getMinWidth ( ) ; \n + \n }", "msg_token": "Fix bug related to ScaleTransformer"} {"diff": " public class RCompletionManager implements CompletionManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RCompletionManager implements CompletionManager \n if ( value != null ) \n { \n if ( value . type == RCompletionType . DIRECTORY ) \n - { \n context_ . suggestOnAccept_ = true ; \n \n - context_ . onSelection ( value ) ; \n - return true ; \n - } \n - else \n - { \n - return false ; \n - } \n + context_ . onSelection ( value ) ; \n + return true ; \n } \n } \n \n public class CppCompletionManager implements CompletionManager \n return false ; \n } \n \n + SINGLE \n + else if ( event . getKeyCode ( ) == KeyCodes . KEY_TAB ) \n + { \n + popup . acceptSelected ( ) ; \n + return true ; \n + } \n + \n SINGLE \n else if ( ! CppCompletionUtils . isCppIdentifierKey ( event ) ) \n {", "msg_token": "restore tab for accepting completions"} {"diff": " public abstract class BaseComponentSpec implements ComponentSpecInternal { \n this . identifier = info . componentIdentifier ; \n this . typeName = info . typeName ; \n this . mainSourceSet = info . sourceSets ; \n - source = new DefaultDomainObjectSet < LanguageSourceSet > ( LanguageSourceSet . class , mainSourceSet ) ; \n + this . source = new DefaultDomainObjectSet < LanguageSourceSet > ( LanguageSourceSet . class , mainSourceSet ) ; \n } \n \n public String getName ( ) {", "msg_token": "Assign fields in constructor in a consistent way"} {"diff": " public class GwtMusic implements Music , SMSoundCallback { \n \n @ override \n public boolean isPlaying ( ) { \n - isPlaying &= sound . getPlayState ( ) == NUMBER0 ; \n + isPlaying = ! sound . getPaused ( ) && sound . getPlayState ( ) == NUMBER0 ; \n return isPlaying ; \n }", "msg_token": "Fix Music isPlaying on GWT backend"} {"diff": " public class GroovyManager { \n player . getInventory ( ) . addItem ( new ItemBlock ( group ) , quantity ) ; \n } \n } \n + \n + public void fullHealth ( ) { \n + Player player = Terasology . getInstance ( ) . getActiveWorldRenderer ( ) . getPlayer ( ) ; \n + player . heal ( player . getMaxHealthPoints ( ) - player . getHealthPoints ( ) ) ; \n + } \n + \n + public void teleport ( double x , double y , double z ) { \n + Player player = Terasology . getInstance ( ) . getActiveWorldRenderer ( ) . getPlayer ( ) ; \n + player . setPosition ( x , y , z ) ; \n + } \n + \n } \n }", "msg_token": "Added fullHealth and teleport console commands although teleport is is a bit iffy when going to an unloaded chunk"} {"diff": " public class ChatConversationPanel \n COMMENT \n public static String getDateString ( long date ) \n { \n - if ( GuiUtils . compareDates ( date , System . currentTimeMillis ( ) ) < NUMBER0 ) \n + if ( GuiUtils . compareDatesOnly ( date , System . currentTimeMillis ( ) ) < NUMBER0 ) \n { \n StringBuffer dateStrBuf = new StringBuffer ( ) ;", "msg_token": "Messages on the current date should only show the hour when the messages was sent received"} {"diff": " public class PSqlConnection extends BaseObject { \n \n @ signature \n public PSqlStatement query ( Environment env , String sql , @ nullable ArrayMemory args ) throws Throwable { \n - PreparedStatement statement = connection . prepareStatement ( sql , Statement . RETURN_GENERATED_KEYS ) ; \n + PreparedStatement statement = connection . prepareStatement ( sql , Statement . NO_GENERATED_KEYS ) ; \n PSqlStatement sqlStatement = new PSqlStatement ( env , statement ) ; \n \n if ( args != null ) {", "msg_token": "Fix pgsql query errors"} {"diff": " public class ActFmSyncThread { \n } ; \n \n private void incrementProgress ( ) { \n - if ( activity != null ) { \n - activity . runOnUiThread ( incrementProgressRunnable ) ; \n + synchronized ( progressBarLock ) { \n + if ( activity != null ) { \n + activity . runOnUiThread ( incrementProgressRunnable ) ; \n + } \n } \n }", "msg_token": "Fixed a potential concurrency bug"} {"diff": " public class Exec2 { \n SINGLE \n global . add ( new ASTId ( Type . DBL , STRING0 , NUMBER0 , global . size ( ) ) ) ; env . push ( FLOAT0 ) ; \n global . add ( new ASTId ( Type . DBL , STRING1 , NUMBER0 , global . size ( ) ) ) ; env . push ( FLOAT1 ) ; \n + global . add ( new ASTId ( Type . DBL , STRING2 , NUMBER0 , global . size ( ) ) ) ; env . push ( Double . NaN ) ; \n \n SINGLE \n int argcnt = global . size ( ) ;", "msg_token": "Add NA to Exec2"} {"diff": " public class ThreadWithAttributes extends Thread { \n } \n \n public final Object [ ] getThreadData ( Object control ) { \n + if ( this . control != control ) return null ; \n return thData ; \n } \n \n public final void setThreadData ( Object control , Object thData [ ] ) { \n + if ( this . control != control ) return ; \n this . thData = thData ; \n }", "msg_token": "Add some missing control checks"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract class ViewGroup extends View implements ViewParent , ViewManager { \n private static final String TAG = STRING0 ; \n public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setMotionEventSplittingEnabled ( boolean split ) { \n SINGLE \n public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setLayoutMode ( int layoutMode ) { \n if ( mLayoutMode != layoutMode ) {", "msg_token": "add attributes reference for splimotionevents and layoutmode"} {"diff": " public class RecyclerViewPager extends RecyclerView { \n } \n } \n } \n + mPositionBeforeScroll = mSmoothScrollTargetPosition ; \n } \n SINGLE \n mMaxLeftWhenDragging = Integer . MIN_VALUE ;", "msg_token": "Set mPositionBeforeScroll to page we notify switched to"} {"diff": " public class OnlineBackupKernelExtension implements Lifecycle \n try \n { \n ClusterMemberAvailability ha = graphDatabaseAPI . getDependencyResolver ( ) . resolveDependency ( ClusterMemberAvailability . class ) ; \n - backupUri = URI . create ( STRING0 + server . getSocketAddress ( ) . getHostName ( ) + STRING1 + server . getSocketAddress ( ) . getPort ( ) ) ; \n + backupUri = URI . create ( STRING0 + server . getSocketAddress ( ) . getHostString ( ) + STRING1 + server . getSocketAddress ( ) . getPort ( ) ) ; \n ha . memberIsAvailable ( BACKUP , backupUri ) ; \n } \n catch ( NoClassDefFoundError e )", "msg_token": "Uses getHostString so that the host name instead of IP gets published"} {"diff": " public class IgnoredWhenDetachedHandler extends BaseAnnotationHandler < EComponent \n \n @ override \n public void validate ( Element element , AnnotationElements validatedElements , IsValid valid ) { \n + validatorHelper . isNotPrivate ( element , valid ) ; \n + validatorHelper . isNotFinal ( element , valid ) ; \n + validatorHelper . returnTypeIsVoid ( ( ExecutableElement ) element , valid ) ; \n validatorHelper . enclosingElementHasEFragment ( element , validatedElements , valid ) ; \n }", "msg_token": "Adding additional validation to IgnoredWhenDetachedHandler as suggested by yDelouis"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \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", "msg_token": "update graphservice comment"} {"diff": " public final class CookieManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void flushCookieStore ( ) { \n + if ( useChromiumHttpStack ( ) ) { \n + nativeFlushCookieStore ( ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class CookieManager { \n private static native void nativeRemoveSessionCookie ( ) ; \n private static native void nativeSetAcceptCookie ( boolean accept ) ; \n private static native void nativeSetCookie ( String url , String value ) ; \n + private static native void nativeFlushCookieStore ( ) ; \n }", "msg_token": "Add FlushCookieStore method to CookieManager Java side"} {"diff": " abstract class AbstractEvictableRecordStore extends AbstractRecordStore { \n return null ; \n } \n \n - long idlenessStartTime = getIdlenessStartTime ( record ) ; \n long maxIdleMillis = calculateMaxIdleMillis ( mapContainer . getMapConfig ( ) ) ; \n + if ( maxIdleMillis == Long . MAX_VALUE ) { \n + return record ; \n + } \n + long idlenessStartTime = getIdlenessStartTime ( record ) ; \n long idleMillis = calculateExpirationWithDelay ( maxIdleMillis , expiryDelayMillis , backup ) ; \n long elapsedMillis = now - idlenessStartTime ; \n return elapsedMillis >= idleMillis ? null : record ; \n abstract class AbstractEvictableRecordStore extends AbstractRecordStore { \n return null ; \n } \n long ttl = record . getTtl ( ) ; \n - SINGLE \n - if ( ttl < NUMBER0 ) { \n + SINGLE \n + if ( ttl < NUMBER0 || ttl == Long . MAX_VALUE ) { \n return record ; \n } \n long ttlStartTime = getLifeStartTime ( record ) ;", "msg_token": "Add shortcuts to ttl and idle checks for HD"} {"diff": " public class DynamicMemberUtils { \n return true ; \n } \n \n - public static boolean checkVersion ( PsiMethod method , String grailsVersion ) { \n - String since = getCommentValue ( method , STRING0 ) ; \n + public static boolean checkVersion ( PsiMethod method , String version ) { \n + String since = getCommentValue ( method , STRING1 ) ; \n if ( since == null ) return true ; \n \n - return grailsVersion . compareTo ( since ) >= NUMBER0 ; \n + return version . compareTo ( since ) >= NUMBER0 ; \n } \n - \n + \n @ nullable \n public static String getCommentValue ( PsiMethod method , String commentTagName ) { \n Map < String , String > commentMap = method . getUserData ( COMMENT_KEY ) ;", "msg_token": "Fix Grails tests"} {"diff": " public class AccountManagerService \n File systemDir = Environment . getSystemSecureDirectory ( ) ; \n File databaseFile = new File ( systemDir , STRING0 + userId + STRING1 + DATABASE_NAME ) ; \n if ( userId == NUMBER0 ) { \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n File oldFile = new File ( systemDir , DATABASE_NAME ) ; \n - if ( oldFile . exists ( ) ) { \n + if ( oldFile . exists ( ) && ! databaseFile . exists ( ) ) { \n SINGLE \n File userDir = new File ( systemDir , STRING0 + userId ) ; \n if ( ! userDir . exists ( ) ) {", "msg_token": "Don t migrate accounts db if already migrated"} {"diff": " public final class ContactsContract { \n public static final String DEFERRED_SNIPPETING_QUERY = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String REMOVE_DUPLICATE_ENTRIES = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow ContactsProvider to remove dulicates"} {"diff": " public class TransportMultiPercolateAction extends TransportAction < MultiPercolat \n @ override \n @ suppresswarnings ( STRING0 ) \n public void onFailure ( Throwable e ) { \n + logger . debug ( STRING1 , e ) ; \n try { \n TIntArrayList slots = shardToSlots . get ( shardId ) ; \n for ( int i = NUMBER0 ; i < slots . size ( ) ; i ++ ) {", "msg_token": "Added extra logging"} {"diff": " public class ImageWallpaper extends WallpaperService { \n updateWallpaperLocked ( ) ; \n } \n \n - if ( mBackground == null ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - updateWallpaperLocked ( ) ; \n - } \n - \n SurfaceHolder sh = getSurfaceHolder ( ) ; \n final Rect frame = sh . getSurfaceFrame ( ) ; \n final int dw = frame . width ( ) ;", "msg_token": "Remove duplicate code to update wallpaper"} {"diff": " public class AdvancedEditPoiFragment extends Fragment \n HashSet < String > valueKeys = new HashSet < > ( ) ; \n for ( AbstractPoiType abstractPoiType : result . values ( ) ) { \n if ( abstractPoiType instanceof PoiType && \n - ( ( PoiType ) abstractPoiType ) . isNotEditableOsm ( ) ) continue ; \n + ( ( PoiType ) abstractPoiType ) . isNotEditableOsm ( ) ) { \n + continue ; \n + } \n addPoiToStringSet ( abstractPoiType , tagKeys , valueKeys ) ; \n } \n addPoiToStringSet ( mapPoiTypes . getOtherMapCategory ( ) , tagKeys , valueKeys ) ;", "msg_token": "Skipping artificial POI types"} {"diff": " public final class Trace { \n public static final long TRACE_TAG_GRAPHICS = NUMBER0 < < NUMBER1 ; \n public static final long TRACE_TAG_INPUT = NUMBER0 < < NUMBER2 ; \n public static final long TRACE_TAG_VIEW = NUMBER0 < < NUMBER3 ; \n + public static final long TRACE_TAG_WEBVIEW = NUMBER0 < < NUMBER4 ; \n \n private static final long sEnabledTags = nativeGetEnabledTags ( ) ;", "msg_token": "Add webview tracing bit"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added licence header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public final class AliasConfiguredTarget implements ConfiguredTarget , ClassObjec \n private final ImmutableMap < Class < ? extends TransitiveInfoProvider > , TransitiveInfoProvider > \n overrides ; \n \n - public AliasConfiguredTarget ( BuildConfiguration configuration , ConfiguredTarget actual , \n + public AliasConfiguredTarget ( \n + BuildConfiguration configuration , \n + @ nullable ConfiguredTarget actual , \n ImmutableMap < Class < ? extends TransitiveInfoProvider > , TransitiveInfoProvider > overrides ) { \n this . configuration = Preconditions . checkNotNull ( configuration ) ; \n - this . actual = Preconditions . checkNotNull ( actual ) ; \n + this . actual = actual ; \n this . overrides = Preconditions . checkNotNull ( overrides ) ; \n }", "msg_token": "Make actual less bind rules work again"} {"diff": " public class TestNGTestClassProcessor implements TestClassProcessor { \n testNg . setSourcePath ( CollectionUtils . join ( File . pathSeparator , options . getTestResources ( ) ) ) ; \n } \n \n + SINGLE \n SINGLE \n SINGLE \n + SINGLE \n testNg . setUseDefaultListeners ( ! testReportOn && options . getUseDefaultListeners ( ) ) ; \n \n testNg . addListener ( ( Object ) adaptListener ( testResultProcessor ) ) ;", "msg_token": "Added a TODO"} {"diff": " public class StringUtils { \n SINGLE \n } \n } \n - value = new String ( content , Charset . forName ( STRING0 ) ) ; \n if ( value . startsWith ( STRING1 ) ) { \n SINGLE \n return value . substring ( NUMBER0 ) ;", "msg_token": "Fixed string encoding regression introduced with fix for BOM"} {"diff": " public class ParsedModuleStringNotation { \n private void assignValuesFromModuleNotation ( String moduleNotation ) { \n String [ ] moduleNotationParts = moduleNotation . split ( STRING0 ) ; \n if ( moduleNotationParts . length < NUMBER0 || moduleNotationParts . length > NUMBER1 ) { \n - throw new IllegalDependencyNotation ( STRING1 + moduleNotation + STRING2 ) ; \n + throw new IllegalDependencyNotation ( STRING3 + moduleNotation + STRING4 ) ; \n } \n group = GUtil . elvis ( moduleNotationParts [ NUMBER2 ] , null ) ; \n name = moduleNotationParts [ NUMBER3 ] ;", "msg_token": "Improved the exception message after being bit"} {"diff": " final class ConcreteResourceRegistration extends AbstractResourceRegistration { \n return subregistry . getOperationDescription ( iterator , next . getValue ( ) , operationName , inheritance ) ; \n } else { \n final OperationEntry entry = operationsUpdater . get ( this , operationName ) ; \n - return entry == null ? null : entry . getDescriptionProvider ( ) ; \n + return entry == null ? inherited : entry . getDescriptionProvider ( ) ; \n } \n }", "msg_token": "Return inherited DescriptionProviders"} {"diff": " public class MvpNullObjectBasePresenterTest { \n \n @ test public void pickingCorrectViewInterface ( ) { \n \n - ViewWithMulitpleInterfaces view = new ViewWithMulitpleInterfaces ( ) ; \n + TestView view = new ViewWithMulitpleInterfaces ( ) ; \n TestNullObjectPresenter presenter = new TestNullObjectPresenter ( ) ; \n \n presenter . attachView ( view ) ; \n public class MvpNullObjectBasePresenterTest { \n \n presenter . detachView ( false ) ; \n Assert . assertNotNull ( presenter . getView ( ) ) ; \n - Assert . assertTrue ( presenter . getView ( ) instanceof TestView ) ; \n Assert . assertFalse ( presenter . getView ( ) == view ) ; \n } \n }", "msg_token": "Removed senseless instanceof check"} {"diff": " public class DumpCommand implements AdminCommand \n @ override \n public Optional < String > arguments ( ) \n { \n - return Optional . of ( STRING0 ) ; \n + return Optional . of ( STRING1 ) ; \n } \n \n @ override \n public String description ( ) \n { \n - return STRING0 ; \n + return STRING2 + \n + STRING3 + \n + STRING4 ; \n } \n \n @ override \n public class LoadCommand implements AdminCommand \n @ override \n public Optional < String > arguments ( ) \n { \n - return Optional . of ( STRING0 ) ; \n + return Optional . of ( STRING5 ) ; \n } \n \n @ override \n public String description ( ) \n { \n - return STRING0 ; \n + return STRING6 + \n + STRING7 + \n + STRING8 + \n + STRING9 ; \n } \n \n @ override", "msg_token": "Provide usage details for dump and load"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class BinHeap < T > implements OTPPriorityQueue < T > { \n \n public static OTPPriorityQueueFactory FACTORY = new BinHeapFactory ( ) ; \n - SINGLE \n - public static List < double [ ] > prioPool ; \n - public static List < Object [ ] > elemPool ; \n private static final double GROW_FACTOR = FLOAT0 ; \n \n private double [ ] prio ; \n private T [ ] elem ; \n private int size ; \n private int capacity ; \n - private int [ ] dir ; SINGLE \n \n public BinHeap ( ) { \n this ( NUMBER0 ) ;", "msg_token": "remove decrease key and pooling cruft from binheap"} {"diff": " public class ConversationFragment extends Fragment { \n \n @ override \n public void onClick ( View v ) { \n - activity . hideConversationsOverview ( ) ; \n + if ( activity != null ) { \n + activity . hideConversationsOverview ( ) ; \n + } \n } \n } ) ; \n mEditMessage . setOnEditorActionListener ( mEditorActionListener ) ;", "msg_token": "avoid weird npe"} {"diff": " public class AssetManager implements Disposable { \n \n COMMENT \n public synchronized void clear ( ) { \n - if ( loadQueue . size > NUMBER0 || tasks . size ( ) != NUMBER0 ) { \n - try { \n - while ( ! updateTask ( ) ) \n - ; \n - } catch ( Throwable t ) { \n - handleTaskError ( t ) ; \n - } \n - } \n + loadQueue . clear ( ) ; \n + while ( ! update ( ) ) ; \n \n Array < String > assets = assetTypes . keys ( ) . toArray ( ) ; \n for ( String asset : assets ) {", "msg_token": "fixed AssetManager clear"} {"diff": " public class PluginOptionSpec { \n private String defaultValue ; \n \n public PluginOptionSpec ( String id , String description , ValueType type , boolean mandatory , boolean sensitive , String defaultValue ) { \n + if ( ! mandatory && sensitive ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + if ( ! mandatory && defaultValue == null ) { \n + throw new IllegalArgumentException ( STRING1 ) ; \n + } \n + \n this . id = id ; \n this . description = description ; \n this . type = type ;", "msg_token": "Forbidding certain options of answers"} {"diff": " public class AdHocCommandHandler extends IQHandler \n addCommand ( new AddGroup ( ) ) ; \n addCommand ( new UpdateGroup ( ) ) ; \n addCommand ( new DeleteGroup ( ) ) ; \n + addCommand ( new ChangeUserPassword ( ) ) ; \n } \n \n private void startCommand ( AdHocCommand command ) {", "msg_token": "Added change user password"} {"diff": " public class TestingModelBasePlugin implements Plugin < Project > { \n } \n } \n } \n - } \n \n - @ mutate \n - void attachBinariesToCheckLifecycle ( @ path ( STRING0 ) Task checkTask , ModelMap < TestSuiteBinarySpec > binaries ) { \n - for ( TestSuiteBinarySpec testBinary : binaries ) { \n - checkTask . dependsOn ( ( ( TestSuiteTaskCollection ) testBinary . getTasks ( ) ) . getRun ( ) ) ; \n + @ mutate \n + void attachBinariesToCheckLifecycle ( @ path ( STRING0 ) Task checkTask , ModelMap < TestSuiteBinarySpec > binaries ) { \n + for ( TestSuiteBinarySpec testBinary : binaries ) { \n + checkTask . dependsOn ( ( ( TestSuiteTaskCollection ) testBinary . getTasks ( ) ) . getRun ( ) ) ; \n + } \n } \n } \n }", "msg_token": "Move rule method to the right location"} {"diff": " \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 \n package NAMESPACE ; \n \n public class TriangleRaycastTest extends BaseBulletTest { \n tmpSetTo . setValue ( value . x , value . y , value . z ) ; \n super . setTo ( tmpSetTo ) ; \n } \n + \n + @ override \n + public void dispose ( ) { \n + tmpSetFrom . dispose ( ) ; \n + tmpSetTo . dispose ( ) ; \n + super . dispose ( ) ; \n + } \n } \n \n private Model model ;", "msg_token": "Properly dispose things that need to be disposed"} {"diff": " public class ViewPropertyAnimatorCompat { \n \n @ override \n public void run ( ) { \n - startAnimation ( mVpa , mViewRef . get ( ) ) ; \n + final View view = mViewRef . get ( ) ; \n + if ( view != null ) { \n + startAnimation ( mVpa , view ) ; \n + } \n } \n } ;", "msg_token": "Avoid NPE when an animated View disappears before animation starts"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n winAnimator . mEnterAnimationPending = true ; \n } \n if ( toBeDisplayed ) { \n + if ( ( win . mAttrs . softInputMode & SOFT_INPUT_MASK_ADJUST ) \n + == SOFT_INPUT_ADJUST_RESIZE ) { \n + win . mLayoutNeeded = true ; \n + } \n if ( win . isDrawnLw ( ) && okToDisplay ( ) ) { \n winAnimator . applyEnterAnimationLocked ( ) ; \n }", "msg_token": "Layout the window to be displayed if it would be resized"} {"diff": " public class Wallet implements Serializable , BlockChainListener { \n } \n \n List < Sha256Hash > oldBlockHashes = new ArrayList < Sha256Hash > ( oldBlocks . size ( ) ) ; \n - List < Sha256Hash > newBlockHashes = new ArrayList < Sha256Hash > ( newBlocks . size ( ) ) ; \n log . info ( STRING0 ) ; \n for ( StoredBlock b : oldBlocks ) { \n log . info ( STRING1 , b . getHeader ( ) . getHashAsString ( ) ) ; \n public class Wallet implements Serializable , BlockChainListener { \n log . info ( STRING2 ) ; \n for ( StoredBlock b : newBlocks ) { \n log . info ( STRING1 , b . getHeader ( ) . getHashAsString ( ) ) ; \n - newBlockHashes . add ( b . getHeader ( ) . getHash ( ) ) ; \n } \n \n SINGLE", "msg_token": "remove an unused variable from reorganize"} {"diff": " public class ContextConfig implements LifecycleListener { \n } \n FragmentJarScannerCallback callback = \n new FragmentJarScannerCallback ( webXmlParser , delegate ) ; \n - if ( ! callback . isOk ( ) ) { \n - ok = false ; \n - } \n \n jarScanner . scan ( JarScanType . PLUGGABILITY , \n context . getServletContext ( ) , callback ) ; \n \n + if ( ! callback . isOk ( ) ) { \n + ok = false ; \n + } \n return callback . getFragments ( ) ; \n }", "msg_token": "Check needs to happen after call to scan"} {"diff": " public class XMLScriptBuilder extends BaseBuilder { \n || child . getNode ( ) . getNodeType ( ) == Node . TEXT_NODE ) { \n String data = child . getStringBody ( STRING0 ) ; \n contents . add ( new TextSqlNode ( data ) ) ; \n - } else if ( ! STRING1 . equals ( nodeName ) ) { \n + } else if ( child . getNode ( ) . getNodeType ( ) == Node . ELEMENT_NODE && ! STRING1 . equals ( nodeName ) ) { SINGLE \n NodeHandler handler = nodeHandlers . get ( nodeName ) ; \n if ( handler == null ) { \n throw new BuilderException ( STRING2 + nodeName + STRING3 ) ;", "msg_token": "Parsing SQL Mapper Configuration failes for some XML Parsers due to comment nodes"} {"diff": " public class RemoteSiteTest extends AbstractBasicTest { \n } \n } \n \n - @ test ( groups = STRING0 ) \n - public void testMailGoogleCom ( ) throws Exception { \n - try ( AsyncHttpClient c = asyncHttpClient ( config ( ) . setRequestTimeout ( NUMBER0 ) ) ) { \n - Response response = c . prepareGet ( STRING1 ) . execute ( ) . get ( NUMBER1 , TimeUnit . SECONDS ) ; \n - assertNotNull ( response ) ; \n - assertEquals ( response . getStatusCode ( ) , NUMBER2 ) ; \n - } \n - } \n - \n @ test ( groups = STRING0 , enabled = false ) \n SINGLE \n public void testMicrosoftCom ( ) throws Exception {", "msg_token": "Remove useless broken test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class MockUtil {", "msg_token": "In order to put additional reflection classes in consistent folder I did some package rename job"} {"diff": " public final class GraphvizPrinter \n SORT , \n SAMPLE , \n MARK_DISTINCT , \n - MATERIALIZE_SAMPLE , \n INDEX_SOURCE , \n UNNEST \n } \n public final class GraphvizPrinter \n . put ( NodeType . WINDOW , STRING0 ) \n . put ( NodeType . UNION , STRING1 ) \n . put ( NodeType . MARK_DISTINCT , STRING2 ) \n - . put ( NodeType . MATERIALIZE_SAMPLE , STRING3 ) \n . put ( NodeType . INDEX_SOURCE , STRING4 ) \n . put ( NodeType . UNNEST , STRING5 ) \n . put ( NodeType . SAMPLE , STRING6 )", "msg_token": "Remove dead code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TextureView extends View { \n synchronized ( mLock ) { \n mUpdateLayer = true ; \n } \n - postInvalidate ( ) ; \n + \n + if ( Looper . myLooper ( ) == Looper . getMainLooper ( ) ) { \n + invalidate ( ) ; \n + } else { \n + postInvalidate ( ) ; \n + } \n } \n } ; \n mSurface . setOnFrameAvailableListener ( mUpdateListener ) ;", "msg_token": "Call invalidate immediately when a frame is available"} {"diff": " public class PojoMethodMapping { \n m . getName ( ) , m . getDeclaringClass ( ) . getName ( ) ) ) ; \n } \n } else { \n - if ( decoderMatch != null || decoderMatch . hasMatches ( ) ) { \n + if ( decoderMatch != null && decoderMatch . hasMatches ( ) ) { \n throw new IllegalArgumentException ( sm . getString ( \n STRING0 , \n m . getName ( ) , m . getDeclaringClass ( ) . getName ( ) ) ) ;", "msg_token": "Fix logic error that triggered an NPE and associated test failures"} {"diff": " public class TableParam extends AbstractTable { \n SINGLE \n DbUtils . executeAndClose ( \n conn . prepareStatement ( STRING0 + \n - STRING1 ) ) ; \n + STRING2 ) ) ; \n } \n \n psRead = conn . prepareStatement ( STRING3 + PARAMID + STRING4 ) ;", "msg_token": "Increased the size of the field vals of the table PARAM"} {"diff": " public class RoundRobinConnectionPoolImplTest extends BaseConnectionPoolTest { \n } \n \n @ test \n + @ ignore \n public void testAddingNewHost ( ) { \n CountingConnectionPoolMonitor monitor = new CountingConnectionPoolMonitor ( ) ;", "msg_token": "Ignore bad unit test"} {"diff": " public class XSON extends DefaultHandler { \n \n public class NullHandler extends Handler { \n public void endElement ( String uri , String localName , String qName ) throws SAXException { \n - _currentDoc . put ( cleanName ( ) , ( Object ) null ) ; \n + _currentDoc . put ( cleanName ( ) , null ) ; \n super . endElement ( uri , localName , qName ) ; \n } \n }", "msg_token": "remove pointless cast"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class ZLAndroidPaintContext extends ZLPaintContext { \n myCanvas . drawText ( string , offset , offset + length , x , y , myPaint ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n + public int imageWidth ( ZLImage image ) { \n + SINGLE \n + return NUMBER0 ; \n + } \n + \n + public int imageHeight ( ZLImage image ) { \n + SINGLE \n + return NUMBER0 ; \n + } \n + \n + public void drawImage ( int x , int y , ZLImage image ) { \n + SINGLE \n + } \n \n public void drawLine ( int x0 , int y0 , int x1 , int y1 ) { \n myCanvas . drawLine ( x0 , y0 , x1 , y1 , myPaint ) ;", "msg_token": "added dummy implementation for ZLImage related methods"} {"diff": " public class EditAuthorsDialogActivity extends EditListDialogActivity { \n } \n \n private void addAuthor ( String author , int position ) { \n - if ( author . length ( ) != NUMBER0 && author . matches ( STRING0 ) ) { \n + if ( author . length ( ) != NUMBER0 && author . matches ( STRING1 ) ) { \n if ( position < NUMBER0 ) { \n if ( ! myEditList . contains ( author ) ) { \n myEditList . add ( author ) ;", "msg_token": "Fixed an author addition deletion"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract class BaseCacheResolver implements CacheResolver , InitializingBean { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract class CacheOperation implements BasicCacheOperation { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n public class NameMatchCacheOperationSource implements CacheOperationSource , Serializable { \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class NamedCacheResolver extends BaseCacheResolver {", "msg_token": "Add missing since tag"} {"diff": " public final class ReilInstruction implements IInstruction , Comparable < ReilInstr \n stringBuilder . append ( thirdOperand . getSize ( ) ) ; \n stringBuilder . append ( STRING0 ) ; \n stringBuilder . append ( thirdOperand ) ; \n - stringBuilder . append ( STRING1 ) ; \n + stringBuilder . append ( STRING1 ) ; \n return stringBuilder . toString ( ) ; \n }", "msg_token": "Fix formatting mistake"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class Viterbi implements Persistable { \n \n public class Viterbi implements Persistable { \n private double logOfDiangnalTProb ; \n private double logStates ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n \n public Viterbi ( DoubleMatrix possibleLabels ) { \n this . possibleLabels = possibleLabels ; \n public class Viterbi implements Persistable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public Pair < Double , DoubleMatrix > decode ( DoubleMatrix labels ) { \n return decode ( labels , true ) ;", "msg_token": "added a few more details to viterbi"} {"diff": " public class ContentView extends FrameLayout { \n \n SINGLE \n metUrl . requestFocus ( ) ; \n + metUrl . selectAll ( ) ; \n SINGLE \n InputMethodManager imm = ( InputMethodManager ) getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n imm . showSoftInput ( metUrl , InputMethodManager . SHOW_IMPLICIT ) ;", "msg_token": "Select the whole URL"} {"diff": " import NAMESPACE ; \n COMMENT \n public class TruePredicate implements DataSerializable , Predicate { \n \n + COMMENT \n + COMMENT \n + COMMENT \n public static final TruePredicate INSTANCE = new TruePredicate ( ) ; \n \n @ override", "msg_token": "Added javadoc on field"} {"diff": " public abstract class GoReferenceBase extends PsiReferenceBase < PsiElement > { \n \n @ nullable \n protected PsiDirectory resolvePackage ( @ notnull String str ) { \n + if ( str . startsWith ( STRING0 ) ) return null ; \n for ( VirtualFile file : getPathsToLookup ( ) ) { \n VirtualFile child = file != null ? file . findFileByRelativePath ( str ) : null ; \n if ( child != null ) return PsiManager . getInstance ( myElement . getProject ( ) ) . findDirectory ( child ) ; \n public abstract class GoReferenceBase extends PsiReferenceBase < PsiElement > { \n return null ; \n } \n \n - \n @ notnull \n @ override \n public Object [ ] getVariants ( ) {", "msg_token": "don t resolve absolute paths"} {"diff": " public class SmaliMethodReference extends SmaliCompositeElement implements PsiRe \n @ nullable \n public SmaliTypeElement getReturnType ( ) { \n SmaliTypeElement [ ] types = findChildrenByClass ( SmaliTypeElement . class ) ; \n - assert types . length == NUMBER0 ; \n + if ( types . length < NUMBER0 ) { \n + return null ; \n + } \n return types [ NUMBER1 ] ; \n }", "msg_token": "Fix SmaliMethodReference getReturnType on missing return type"} {"diff": " class ShowcaseViewBuilder { \n return this ; \n } \n \n - public ShowcaseView build ( ) { \n + public ShowcaseView build ( ) { \n return showcaseView ; \n } \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ActionBarReflector extends BaseReflector { \n + class ActionBarReflector extends BaseReflector { \n \n private Activity mActivity ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class AppCompatReflector extends BaseReflector { \n + class AppCompatReflector extends BaseReflector { \n \n private Activity mActivity ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class SherlockReflector extends BaseReflector { \n + class SherlockReflector extends BaseReflector { \n \n private Activity mActivity ;", "msg_token": "Reduce visibility of reflectors"} {"diff": " public final class ConfigValidator { \n public static void checkNearCacheConfig ( NearCacheConfig nearCacheConfig , boolean isClient ) { \n checkNotNative ( nearCacheConfig . getInMemoryFormat ( ) ) ; \n \n - checkNoCacheLocalEntriesOnClients ( nearCacheConfig , isClient ) ; \n + if ( isClient && nearCacheConfig . isCacheLocalEntries ( ) ) { \n + throw new IllegalArgumentException ( \n + STRING0 ) ; \n + } \n } \n \n COMMENT \n public final class ConfigValidator { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static void checkNoCacheLocalEntriesOnClients ( NearCacheConfig nearCacheConfig , boolean isClient ) { \n - if ( isClient && nearCacheConfig . isCacheLocalEntries ( ) ) { \n - throw new IllegalArgumentException ( \n - STRING0 ) ; \n - } \n - } \n - \n @ suppresswarnings ( STRING1 ) \n private static void logIgnoredConfig ( MapConfig mapConfig ) { \n if ( mapConfig . getMinEvictionCheckMillis ( ) != DEFAULT_MIN_EVICTION_CHECK_MILLIS", "msg_token": "Inlined method in ConfigValidator"} {"diff": " public class CRFLabel implements Serializable { \n private static final long serialVersionUID = NUMBER0 ; \n \n private final int [ ] label ; \n - int hashCode = - NUMBER1 ; \n + private int hashCode = - NUMBER1 ; \n \n SINGLE \n private static final int maxNumClasses = NUMBER2 ;", "msg_token": "Make hashCode field private"} {"diff": " public class ScriptExtensionClassNameProvider extends ExtensionClassNameProvider \n result . put ( String . class , StringUtils . class ) ; \n result . put ( String . class , URLEncoder . class ) ; \n result . put ( Item . class , PersistenceExtensions . class ) ; \n + result . put ( Item . class , BusEvent . class ) ; \n return result ; \n } \n }", "msg_token": "allow bus event actions to be used as item extensions as well"} {"diff": " public class WorldEdit { \n private final static Integer [ ] DEFAULT_ALLOWED_BLOCKS = { \n NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 , NUMBER13 , NUMBER14 , NUMBER15 , NUMBER16 , NUMBER17 , NUMBER18 , \n NUMBER19 , NUMBER20 , NUMBER21 , NUMBER22 , NUMBER23 , NUMBER24 , NUMBER25 , NUMBER26 , NUMBER27 , NUMBER28 , NUMBER29 , NUMBER30 , NUMBER31 , NUMBER32 , NUMBER33 , NUMBER34 , NUMBER35 , \n - NUMBER36 , NUMBER37 , NUMBER38 , NUMBER39 , NUMBER40 , NUMBER41 , NUMBER42 , NUMBER43 , NUMBER44 , NUMBER45 \n + NUMBER36 , NUMBER37 , NUMBER38 , NUMBER39 , NUMBER40 , NUMBER41 , NUMBER42 , NUMBER44 , NUMBER45 \n } ; \n \n COMMENT", "msg_token": "Removed cactus from the default list of allowed blocks"} {"diff": " public class Tomcat7CometSupport extends AsynchronousProcessor { \n try { \n Class . forName ( CometEvent . class . getName ( ) ) ; \n } catch ( Throwable e ) { \n + logger . error ( STRING0 , e ) ; \n throw new IllegalStateException ( unableToDetectComet ( ) ) ; \n } \n } \n public class TomcatCometSupport extends AsynchronousProcessor { \n try { \n Class . forName ( CometEvent . class . getName ( ) ) ; \n } catch ( Throwable e ) { \n + logger . error ( STRING0 , e ) ; \n throw new IllegalStateException ( unableToDetectComet ( ) ) ; \n } \n }", "msg_token": "Improve error report"} {"diff": " public class CallHistoryServiceImpl \n private static List < String > getCSVs ( String str ) \n { \n List < String > result = new LinkedList < String > ( ) ; \n + \n + if ( str == null ) \n + return result ; \n + \n StringTokenizer toks = new StringTokenizer ( str , DELIM ) ; \n while ( toks . hasMoreTokens ( ) ) \n { \n public class HistoryReaderImpl \n SINGLE \n Node nodeValue = propertyNode . getFirstChild ( ) ; \n \n + if ( nodeValue == null ) \n + continue ; \n + \n nameVals . add ( propertyNode . getNodeName ( ) ) ; \n - nameVals . add ( nodeValue == null ? \n - null : nodeValue . getNodeValue ( ) ) ; \n + nameVals . add ( nodeValue . getNodeValue ( ) ) ; \n } \n }", "msg_token": "Fixes a NPE in history reading"} {"diff": " public class ClientConfig { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify javadoc on routing tier"} {"diff": " public class TemporaryQueueReplyHandler implements ReplyHandler { \n } \n \n public void onReply ( String correlationId , Message reply ) { \n - SINGLE \n - SINGLE \n + SINGLE \n ReplyHolder holder = new ReplyHolder ( exchange , callback , originalCorrelationId , reply ) ; \n - SINGLE \n + SINGLE \n replyManager . processReply ( holder ) ; \n }", "msg_token": "JmsProducer supports non blocking async routing engine for InOut Exchanges request reply over JMS"} {"diff": " public final class Settings { \n public static final String DEVICE_PROVISIONED = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DEVICE_PROVISIONING_MOBILE_DATA_ENABLED = \n + STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DctConstants { \n public static final int CMD_NET_STAT_POLL = BASE + NUMBER0 ; \n public static final int EVENT_DATA_RAT_CHANGED = BASE + NUMBER1 ; \n public static final int CMD_CLEAR_PROVISIONING_SPINNER = BASE + NUMBER2 ; \n + public static final int EVENT_DEVICE_PROVISIONED_CHANGE = BASE + NUMBER3 ; \n \n COMMENT", "msg_token": "Add settings for SUW data control"} {"diff": " public interface ChannelHandlerContext extends AttributeMap { \n void connect ( SocketAddress remoteAddress , ChannelFuture future ) ; \n void connect ( SocketAddress remoteAddress , SocketAddress localAddress , ChannelFuture future ) ; \n void disconnect ( ChannelFuture future ) ; \n - void closeInbound ( ChannelFuture future ) ; \n - void closeOutbound ( ChannelFuture future ) ; \n void close ( ChannelFuture future ) ; \n void deregister ( ChannelFuture future ) ; \n ChannelBufferHolder < Object > out ( ) ;", "msg_token": "Remove the methods related with half close"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class BSONLoader extends LoadFunc { \n \n public class BSONLoader extends LoadFunc { \n return ( ( Date ) o ) . getTime ( ) ; \n } else if ( o instanceof ObjectId ) { \n return o . toString ( ) ; \n + } else if ( o instanceof UUID ) { \n + return o . toString ( ) ; \n } else if ( o instanceof BasicBSONList ) { \n BasicBSONList bl = ( BasicBSONList ) o ; \n Tuple t = tupleFactory . newTuple ( bl . size ( ) ) ;", "msg_token": "Add capability of BSONLoader java to parse UUID"} {"diff": " public class DefaultHttp2Connection implements Http2Connection { \n COMMENT \n COMMENT \n final class DefaultPropertyKey implements PropertyKey { \n - private final int index ; \n + final int index ; \n \n DefaultPropertyKey ( int index ) { \n this . index = index ;", "msg_token": "DefaultPropertyKey private member variable accessed outside scope"} {"diff": " public class ThemeableActivity extends SherlockActivity { \n options . inSampleSize = NUMBER0 ; \n \n Bitmap b = BitmapFactory . decodeFile ( themebg , options ) ; \n - \n - b = Bitmap . createBitmap ( b , NUMBER1 , NUMBER1 , Math . min ( b . getWidth ( ) , width ) , Math . min ( b . getHeight ( ) , height ) ) ; \n + \n + float ratio = ( ( float ) width ) / ( ( float ) height ) ; \n + int bgHeight = b . getHeight ( ) ; \n + int bgWidth = ( int ) ( ( ( float ) b . getHeight ( ) ) * ratio ) ; \n + \n + b = Bitmap . createBitmap ( b , NUMBER1 , NUMBER1 , Math . min ( b . getWidth ( ) , bgWidth ) , bgHeight ) ; \n \n mThemeDrawable = new BitmapDrawable ( b ) ; \n \n } \n \n - SINGLE \n - SINGLE \n + \n activity . getWindow ( ) . setBackgroundDrawable ( mThemeDrawable ) ; \n }", "msg_token": "renders background at proper aspect ratio"} {"diff": " public abstract class DictionaryUtil { \n \n intent . addFlags ( Intent . FLAG_ACTIVITY_NO_HISTORY ) ; \n intent . addFlags ( Intent . FLAG_ACTIVITY_NO_ANIMATION ) ; \n - SINGLE \n + intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n \n final String key = get ( STRING0 ) ; \n if ( key != null ) {", "msg_token": "restored missing flag"} {"diff": " abstract class ContextLoaderUtils { \n throw new IllegalStateException ( msg , e ) ; \n } \n \n - if ( resolver != null ) { \n - profiles = resolver . resolve ( declaringClass ) ; \n - if ( profiles == null ) { \n - String msg = String . format ( \n - STRING0 , \n - resolverClass . getName ( ) ) ; \n - logger . error ( msg ) ; \n - throw new IllegalStateException ( msg ) ; \n - } \n + profiles = resolver . resolve ( declaringClass ) ; \n + if ( profiles == null ) { \n + String msg = String . format ( \n + STRING0 , \n + resolverClass . getName ( ) ) ; \n + logger . error ( msg ) ; \n + throw new IllegalStateException ( msg ) ; \n } \n } \n else if ( valueDeclared ) {", "msg_token": "Remove superfluous not null check in ContextLoaderUtils"} {"diff": " public abstract class BaseStubbing < T > implements OngoingStubbing < T > , DeprecatedO \n public OngoingStubbing < T > thenReturn ( T value , T . . . values ) { \n OngoingStubbing < T > stubbing = thenReturn ( value ) ; \n if ( values == null ) { \n + SINGLE \n return stubbing . thenReturn ( null ) ; \n } \n for ( T v : values ) {", "msg_token": "Added a TODO"} {"diff": " public class ImageManager { \n } \n \n if ( result != null ) { \n + if ( ! isInDiskCache && useDiskCache ) { \n + putInDiskCache ( key , result ) ; \n + } \n + \n final Bitmap finalResult = result ; \n mainHandler . post ( new Runnable ( ) { \n @ override \n public class ImageManager { \n putInMemoryCache ( key , finalResult ) ; \n cb . onLoadCompleted ( finalResult ) ; \n } \n + \n } ) ; \n - SINGLE \n - if ( ! isInDiskCache && useDiskCache ) { \n - putInDiskCache ( key , result ) ; \n - } \n } \n }", "msg_token": "Fix a bitmap recycling issue"} {"diff": " public final class PersistNFS extends Persist { \n @ override \n public void importFiles ( String path , ArrayList < String > files , ArrayList < String > keys , ArrayList < String > fails , ArrayList < String > dels ) { \n File f = new File ( path ) ; \n - if ( ! f . exists ( ) ) throw new H2ONotFoundArgumentException ( STRING0 + path + STRING1 ) ; \n + if ( ! f . exists ( ) ) throw new H2ONotFoundArgumentException ( STRING2 + path + STRING1 ) ; \n FileIntegrityChecker . check ( f ) . syncDirectory ( files , keys , fails , dels ) ; \n } \n }", "msg_token": "Add space to error message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MySiteFragment extends Fragment \n \n private void showSitePicker ( ) { \n if ( isAdded ( ) ) { \n + ReaderAnim . showFab ( mFabView , false ) ; \n int localBlogId = ( mBlog != null ? mBlog . getLocalTableBlogId ( ) : NUMBER0 ) ; \n ActivityLauncher . showSitePickerForResult ( getActivity ( ) , localBlogId ) ; \n } \n public class MySiteFragment extends Fragment \n if ( resultCode == Activity . RESULT_OK ) { \n setBlog ( WordPress . getCurrentBlog ( ) ) ; \n } \n + SINGLE \n + long delayMs = getResources ( ) . getInteger ( android . R . integer . config_shortAnimTime ) ; \n + ReaderAnim . showFabDelayed ( mFabView , true , delayMs ) ; \n break ; \n default : \n break ;", "msg_token": "FAB on My Site animates in out with site picker"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class AudioVideoNotesPlugin extends OsmandPlugin { \n String additional = STRING0 ; \n if ( duration > NUMBER0 ) { \n int d = ( int ) ( duration / NUMBER1 ) ; \n - \n - String min ; \n - if ( d % NUMBER2 < NUMBER3 ) { \n - min = STRING1 + ( d % NUMBER2 ) ; \n - } else { \n - min = ( d % NUMBER2 ) + STRING0 ; \n - } \n - additional += ( d / NUMBER2 ) + STRING2 + min ; \n + additional += Algorithms . formatDuration ( d ) ; \n } \n if ( ! available ) { \n additional += STRING3 + ctx . getString ( R . string . recording_unavailable ) + STRING4 ; \n } \n return additional ; \n } \n - \n + \n \n }", "msg_token": "Add routing time to message"} {"diff": " public abstract class Chunk extends Iced implements Cloneable { \n private void setWrite ( ) { \n if ( _chk2 != null ) return ; SINGLE \n assert ! ( this instanceof NewChunk ) : STRING0 ; \n - if ( _vec == null ) \n - System . out . println ( STRING1 ) ; \n _vec . preWriting ( ) ; SINGLE \n _chk2 = clone ( ) ; SINGLE \n assert _chk2 . _chk2 == null ; SINGLE \n public class Vec extends Iced { \n transient Chunk _cache ; \n private Chunk c ( long i ) { \n Chunk c = _cache ; \n - if ( c != null && c . _start == - NUMBER0 ) \n - System . out . println ( STRING1 ) ; \n return ( c != null && c . _chk2 == null && c . _start <= i && i < c . _start + c . _len ) ? c : ( _cache = chunkForRow ( i ) ) ; \n } \n COMMENT", "msg_token": "Remove debug prints"} {"diff": " OF THE POSSIBILITY OF SUCH DAMAGE . \n COMMENT \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BaseMarkupBuilder extends Builder { \n return new Document ( root , this . namespaceMethodMap ) ; \n } \n \n - private static class Document extends Built { \n + private static class Document extends Built implements GroovyInterceptable { \n private Object out ; \n private final Map pendingNamespaces = new HashMap ( ) ; \n private final Map namespaces = new HashMap ( ) ;", "msg_token": "Add GroovyInterceptable so that the builder catches all the calls and works properly again"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n private NSDictionary < NSString , NSObject > data ; \n \n + public UIPageViewControllerOptions ( ) { \n + this . data = new NSMutableDictionary < > ( ) ; \n + } \n protected UIPageViewControllerOptions ( NSDictionary < NSString , NSObject > data ) { \n this . data = data ; \n }", "msg_token": "Added public constructor UIPageViewController"} {"diff": " public class TwoWayView extends AdapterView < ListAdapter > implements \n private static final int NO_POSITION = - NUMBER0 ; \n private static final int INVALID_POINTER = - NUMBER0 ; \n \n + public static final int [ ] STATE_NOTHING = new int [ ] { NUMBER1 } ; \n + \n private static final int TOUCH_MODE_REST = - NUMBER0 ; \n private static final int TOUCH_MODE_DOWN = NUMBER1 ; \n private static final int TOUCH_MODE_TAP = NUMBER0 ; \n public class TwoWayView extends AdapterView < ListAdapter > implements \n if ( shouldShowSelector ( ) ) { \n mSelector . setState ( getDrawableState ( ) ) ; \n } else { \n - mSelector . setState ( new int [ ] { NUMBER1 } ) ; \n + mSelector . setState ( STATE_NOTHING ) ; \n } \n } \n }", "msg_token": "library Define a private STATE_NOTHING constant for selector"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n - import NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - < < < < < < < . mine \n - \n - \n - \n - == == == = \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - > > > > > > > . theirs \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class XMLChangeLogParserTest { \n \n @ test", "msg_token": "Fixed a test that had accidentally been checked in with the conflict tags still in place in the imports"} {"diff": " public class CommandFailureException extends MongoException { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public CommandResult getCommandResult ( ) { \n return commandResult ; \n }", "msg_token": "Deprecate CommandFailureException getCommandResult"} {"diff": " public class EncodedImage implements Closeable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public static boolean isJpegMetaDataAvailable ( EncodedImage encodedImage ) { \n - Preconditions . checkArgument ( encodedImage . getImageFormat ( ) == ImageFormat . JPEG ) ; \n + public static boolean isMetaDataAvailable ( EncodedImage encodedImage ) { \n return encodedImage . mRotationAngle >= NUMBER0 \n && encodedImage . mWidth >= NUMBER0 \n && encodedImage . mHeight >= NUMBER0 ;", "msg_token": "Removed precondition in isJpegMetaDataAvailable in EncodedImage"} {"diff": " public enum CreatureType { \n COW ( STRING0 ) , \n CREEPER ( STRING1 ) , \n GHAST ( STRING2 ) , \n + GIANT ( STRING3 ) , \n PIG ( STRING4 ) , \n PIG_ZOMBIE ( STRING5 ) , \n SHEEP ( STRING6 ) ,", "msg_token": "Add CreatureType GIANT"} {"diff": " public class SwipeHelper implements Gefingerpoken { \n public void removeLongPressCallback ( ) { \n if ( mWatchLongPress != null ) { \n mHandler . removeCallbacks ( mWatchLongPress ) ; \n + mWatchLongPress = null ; \n } \n } \n \n public class SwipeHelper implements Gefingerpoken { \n mCurrView = null ; \n mCurrAnimView = null ; \n mLongPressSent = false ; \n + removeLongPressCallback ( ) ; \n break ; \n } \n return mDragging ;", "msg_token": "Fix longpress handler in notifications"} {"diff": " import NAMESPACE ; \n public class RebalanceController { \n \n private static final int MAX_TRIES = NUMBER0 ; \n - \n + private static final long SEED = NUMBER1 ; \n private static Logger logger = Logger . getLogger ( RebalanceController . class ) ; \n \n private final AdminClient adminClient ; \n + private final Random random = new Random ( SEED ) ; \n RebalanceClientConfig rebalanceConfig ; \n \n public RebalanceController ( String bootstrapUrl , RebalanceClientConfig rebalanceConfig ) { \n public class RebalanceController { \n \n ExecutorService executor = createExecutors ( rebalanceConfig . getMaxParallelRebalancing ( ) ) ; \n \n - SINGLE \n - final Random random = new Random ( ) ; \n - \n SINGLE \n for ( int nThreads = NUMBER2 ; nThreads < this . rebalanceConfig . getMaxParallelRebalancing ( ) ; nThreads ++ ) { \n executor . execute ( new Runnable ( ) {", "msg_token": "Using a deterministic Random"} {"diff": " public class CxfEndpointBeanWithBusTest extends CxfEndpointBeanTest { \n public void testBusInjectedBySpring ( ) throws Exception { \n CamelContext camelContext = ( CamelContext ) ctx . getBean ( STRING0 ) ; \n CxfEndpoint endpoint = ( CxfEndpoint ) camelContext . getEndpoint ( STRING1 ) ; \n - \n + \n SINGLE \n - assertTrue ( endpoint . getBus ( ) . getInInterceptors ( ) . size ( ) == NUMBER0 ) ; \n + SINGLE \n + SINGLE \n + assertTrue ( endpoint . getBus ( ) . getInInterceptors ( ) . size ( ) >= NUMBER0 ) ; \n assertEquals ( LoggingInInterceptor . class , endpoint . getBus ( ) . getInInterceptors ( ) . get ( NUMBER1 ) . getClass ( ) ) ; \n }", "msg_token": "Fixed the CxfEndpointBeanWithBusTest error"} {"diff": " public class OperationSerializationTest extends HazelcastTestSupport { \n op . setServiceName ( DUMMY_SERVICE_NAME ) ; \n assertSame ( DUMMY_SERVICE_NAME , op . getRawServiceName ( ) ) ; \n assertSame ( DUMMY_SERVICE_NAME , op . getServiceName ( ) ) ; \n - assertTrue ( STRING0 , op . isFlagSet ( Operation . BITMASK_SERVICE_NAME_SET ) ) ; \n + assertTrue ( STRING1 , op . isFlagSet ( Operation . BITMASK_SERVICE_NAME_SET ) ) ; \n \n Operation copy = copy ( op ) ; \n assertCopy ( DUMMY_SERVICE_NAME , copy . getServiceName ( ) ) ; \n assertCopy ( DUMMY_SERVICE_NAME , copy . getRawServiceName ( ) ) ; \n - assertTrue ( STRING0 , copy . isFlagSet ( Operation . BITMASK_SERVICE_NAME_SET ) ) ; \n + assertTrue ( STRING1 , copy . isFlagSet ( Operation . BITMASK_SERVICE_NAME_SET ) ) ; \n } \n \n public void assertCopy ( String expected , String actual ) {", "msg_token": "Fixed test assert messages thanks David"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class RemoteImageLoaderHandler extends Handler { \n this . imageView = imageView ; \n this . imageUrl = imageUrl ; \n this . errorDrawable = errorDrawable ; \n + init ( imageView , imageUrl , errorDrawable ) ; \n + } \n + \n + public RemoteImageLoaderHandler ( Looper looper , ImageView imageView , String imageUrl , \n + Drawable errorDrawable ) { \n + super ( looper ) ; \n + init ( imageView , imageUrl , errorDrawable ) ; \n + } \n + \n + private void init ( ImageView imageView , String imageUrl , Drawable errorDrawable ) { \n + this . imageView = imageView ; \n + this . imageUrl = imageUrl ; \n + this . errorDrawable = errorDrawable ; \n } \n \n @ override", "msg_token": "Provide a constructor in RemoteImageLoaderHandler that accepts a custom looper"} {"diff": " public class SessionState { \n Utilities . createDirsWithPermission ( conf , rootHDFSDirPath , writableHDFSDirPermission , true ) ; \n } \n FsPermission currentHDFSDirPermission = fs . getFileStatus ( rootHDFSDirPath ) . getPermission ( ) ; \n - LOG . debug ( STRING0 + rootHDFSDirPath + STRING1 \n - + currentHDFSDirPermission ) ; \n + if ( rootHDFSDirPath != null && rootHDFSDirPath . toUri ( ) != null ) { \n + String schema = rootHDFSDirPath . toUri ( ) . getScheme ( ) ; \n + LOG . debug ( \n + STRING0 + rootHDFSDirPath + STRING2 + schema + STRING1 + \n + currentHDFSDirPermission ) ; \n + } else { \n + LOG . debug ( \n + STRING0 + rootHDFSDirPath + STRING1 + currentHDFSDirPermission ) ; \n + } \n SINGLE \n if ( ! ( ( currentHDFSDirPermission . toShort ( ) & writableHDFSDirPermission \n . toShort ( ) ) == writableHDFSDirPermission . toShort ( ) ) ) {", "msg_token": "Refine debug log with schema information for the method of creating session directories Ferdinand Xu via Szehon"} {"diff": " public class URLITest extends WithJetty { \n } \n } \n \n - @ ignore ( STRING0 ) \n @ test \n public void whenBaseURIEndsWithSlashAndPathBeginsWithSlashThenOneSlashIsRemoved ( ) throws Exception { \n RestAssured . baseURI = STRING1 ;", "msg_token": "Unignored a test that is now working"} {"diff": " public class AttributeEqualBuilder implements CategoryBuilder { \n } \n Object [ ] valuesArray = vals . toArray ( ) ; \n min = AttributeUtils . getDefault ( ) . getMin ( column , valuesArray ) ; \n - max = AttributeUtils . getDefault ( ) . getMin ( column , valuesArray ) ; \n + max = AttributeUtils . getDefault ( ) . getMax ( column , valuesArray ) ; \n } \n \n public String getName ( ) {", "msg_token": "Fix AttributeEqualFilter min max computing"} {"diff": " public class WebView extends AbsoluteLayout \n COMMENT \n COMMENT \n public void selectAll ( ) { \n - SINGLE \n - SINGLE \n + mWebViewCore . sendMessage ( EventHub . SELECT_ALL ) ; \n } \n \n COMMENT \n public final class WebViewCore { \n static final int INSERT_TEXT = NUMBER0 ; \n static final int SELECT_TEXT = NUMBER1 ; \n static final int SELECT_WORD_AT = NUMBER2 ; \n + static final int SELECT_ALL = NUMBER3 ; \n \n SINGLE \n private Handler mHandler ; \n public final class WebViewCore { \n nativeSelectWordAt ( mNativeClass , x , y ) ; \n break ; \n } \n + case SELECT_ALL : \n + nativeSelectAll ( mNativeClass ) ; \n + break ; \n } \n } \n } ; \n public final class WebViewCore { \n int startX , int startY , int endX , int endY ) ; \n private native void nativeClearTextSelection ( int nativeClass ) ; \n private native void nativeSelectWordAt ( int nativeClass , int x , int y ) ; \n + private native void nativeSelectAll ( int nativeClass ) ; \n }", "msg_token": "Support select all"} {"diff": " public class PImage implements PConstants , Cloneable { \n loadPixels ( ) ; \n if ( src == this ) { \n if ( intersect ( sx , sy , sx2 , sy2 , dx , dy , dx2 , dy2 ) ) { \n - blit_resize ( get ( sx , sy , sx2 - sx , sy2 - sy ) , \n - NUMBER0 , NUMBER0 , sx2 - sx - NUMBER1 , sy2 - sy - NUMBER1 , \n + blit_resize ( get ( sx , sy , sw , sh ) , \n + NUMBER0 , NUMBER0 , sw , sh , \n pixels , pixelWidth , pixelHeight , dx , dy , dx2 , dy2 , mode ) ; \n } else { \n SINGLE", "msg_token": "Fix off by one error when blending onto itself"} {"diff": " public class XbmcConnector { \n @ override \n public void onError ( Throwable e ) { \n if ( e instanceof ConnectException ) { \n - logger . debug ( STRING0 , xbmc . getHostname ( ) ) ; \n + logger . debug ( STRING1 , xbmc . getHostname ( ) , e . getMessage ( ) ) ; \n } else if ( e instanceof TimeoutException ) { \n logger . debug ( STRING2 , xbmc . getHostname ( ) ) ; \n } else {", "msg_token": "Added cause of connect exception to the log call"} {"diff": " public class MetaContactGroupImpl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public MetaContactGroupImpl getMetaContactSubgroupByUID ( String groupUID ) \n + { \n + Iterator groupsIter = getSubgroups ( ) ; \n + \n + while ( groupsIter . hasNext ( ) ) \n + { \n + MetaContactGroupImpl mcGroup \n + = ( MetaContactGroupImpl ) groupsIter . next ( ) ; \n + \n + if ( mcGroup . getGroupName ( ) . equals ( groupUID ) ) \n + return mcGroup ; \n + } \n + \n + return null ; \n + } \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a get meta contact group method with a meta uid param"} {"diff": " public class Platform extends processing . app . Platform { \n } \n COMMENT \n } \n + SINGLE \n com . apple . eio . FileManager . openURL ( url ) ; \n }", "msg_token": "adding a TODO note"} {"diff": " public class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n return false ; \n } \n \n + SINGLE \n + if ( NodeUtil . isForIn ( parent ) && parent . getFirstChild ( ) == n ) { \n + return false ; \n + } \n + \n JSType type = n . getJSType ( ) ; \n if ( type == null ) { \n type = getNativeType ( UNKNOWN_TYPE ) ; \n public class TypeCheckTest extends CompilerTypeTestCase { \n STRING0 ) ; \n } \n \n + public void testUnknownForIn ( ) throws Exception { \n + compiler . getOptions ( ) . setWarningLevel ( DiagnosticGroups . REPORT_UNKNOWN_TYPES , \n + CheckLevel . WARNING ) ; \n + testTypes ( STRING1 ) ; \n + } \n + \n public void testUnknownTypeDisabledByDefault ( ) throws Exception { \n testTypes ( STRING2 ) ; \n }", "msg_token": "Make key in for in not typable"} {"diff": " public class PatternMatcher \n return matcher ; \n } \n \n + public Iterable < PatternMatch > match ( PatternNode start , \n + Node startNode ) \n + { \n + return match ( start , startNode , null ) ; \n + } \n + \n public Iterable < PatternMatch > match ( PatternNode start , \n Node startNode , Map < String , PatternNode > objectVariables ) \n {", "msg_token": "Added a method for backwards compatibility"} {"diff": " public class AggregatorTest extends ContextTestSupport { \n protected RouteBuilder createRouteBuilder ( ) { \n return new RouteBuilder ( ) { \n public void configure ( ) { \n + SINGLE \n + SINGLE \n + \n SINGLE \n + SINGLE \n from ( STRING0 ) . aggregator ( header ( STRING1 ) ) . to ( STRING2 ) ; \n \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n from ( STRING3 ) . setHeader ( STRING4 , constant ( true ) ) . to ( STRING5 ) ; \n - \n + SINGLE \n from ( STRING5 ) . aggregator ( header ( STRING1 ) ) . to ( STRING2 ) ; \n \n + SINGLE \n + SINGLE \n from ( STRING6 ) . aggregator ( header ( STRING1 ) , new MyAggregationStrategy ( ) ) . \n completedPredicate ( header ( STRING7 ) . isEqualTo ( NUMBER0 ) ) . to ( STRING2 ) ; \n SINGLE", "msg_token": "Added better wiki documentation for aggregator"} {"diff": " public class LayoutManager extends RecyclerView . LayoutManager { \n } \n \n private void attachHeaderForStart ( View header , SectionData sd , LayoutState state ) { \n - if ( state . getCachedView ( sd . firstPosition ) != null ) { \n + if ( state . getCachedView ( sd . firstPosition ) != null && getDecoratedBottom ( header ) > NUMBER0 ) { \n addView ( header , findLastIndexForSection ( sd . firstPosition ) + NUMBER1 ) ; \n state . decacheView ( sd . firstPosition ) ; \n SINGLE", "msg_token": "Don t add offscreen header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - SINGLE \n - SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed one remaining comment in the imports"} {"diff": " public class KernelUidCpuTimeReader { \n powerMaUs = NUMBER0 ; \n } \n \n - if ( callback != null ) { \n + SINGLE \n + if ( callback != null && mLastTimeReadUs != NUMBER0 ) { \n long userTimeDeltaUs = userTimeUs ; \n long systemTimeDeltaUs = systemTimeUs ; \n long powerDeltaMaUs = powerMaUs ;", "msg_token": "Consume the first sample of KernelUidCpuTimeReader"} {"diff": " public class BackupDelete extends BaseActivity { \n . putBoolean ( SeriesGuidePreferences . KEY_DATABASEIMPORTED , true ) . commit ( ) ; \n getContentResolver ( ) . notifyChange ( Shows . CONTENT_URI , null ) ; \n \n + SINGLE \n + try { \n + Thread . sleep ( NUMBER0 ) ; \n + } catch ( InterruptedException e ) { \n + e . printStackTrace ( ) ; \n + } \n + \n SINGLE \n SINGLE \n final Cursor shows = getContentResolver ( ) . query ( Shows . CONTENT_URI , new String [ ] {", "msg_token": "Wait a little after the database was imported before we check if the"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n } \n } \n \n - @ override \n - public void onPause ( ) { \n - super . onPause ( ) ; \n - \n - SINGLE \n - SINGLE \n - pauseWebView ( ) ; \n - } \n - \n - @ override \n - public void onResume ( ) { \n - super . onResume ( ) ; \n - \n - SINGLE \n - resumeWebViewIfPaused ( ) ; \n - } \n - \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n private void togglePostLike ( ) { \n if ( ! isAdded ( ) || ! hasPost ( ) || ! NetworkUtils . checkConnection ( getActivity ( ) ) ) { \n return ;", "msg_token": "Removed pausing resuming of webView from the fragment no longer necessary"} {"diff": " \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added a license header"} {"diff": " public class SettingsFragment extends PreferenceFragment { \n \n SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; \n if ( prefs . getBoolean ( STRING0 , true ) ) { \n - MainApplication . openLink ( getActivity ( ) , STRING1 , false ) ; \n + MainApplication . openLink ( getActivity ( ) , STRING1 , false ) ; \n + SINGLE \n } \n }", "msg_token": "Commented out url to load"} {"diff": " public class Node implements Serializable { \n child . parent = null ; \n } \n \n + COMMENT \n + public void replaceFirstOrChildAfter ( @ nullable Node prev , Node newChild ) { \n + if ( prev == null ) { \n + replaceChild ( getFirstChild ( ) , newChild ) ; \n + } else { \n + replaceChildAfter ( prev , newChild ) ; \n + } \n + } \n + \n @ visiblefortesting \n PropListItem lookupProperty ( int propType ) { \n PropListItem x = propListHead ;", "msg_token": "Add replaceFirstOrChildAfter to Node"} {"diff": " class ZooKeeperHiveClientHelper { \n SINGLE \n if ( ( matcher . group ( NUMBER0 ) . equals ( STRING0 ) ) \n && ! ( connParams . getSessionVars ( ) . containsKey ( JdbcConnectionParams . HTTP_PATH ) ) ) { \n - connParams . getSessionVars ( ) . put ( JdbcConnectionParams . HTTP_PATH , STRING1 + matcher . group ( NUMBER1 ) ) ; \n + connParams . getSessionVars ( ) . put ( JdbcConnectionParams . HTTP_PATH , matcher . group ( NUMBER1 ) ) ; \n } \n SINGLE \n if ( ( matcher . group ( NUMBER0 ) != null ) && ( matcher . group ( NUMBER0 ) . equals ( STRING2 ) )", "msg_token": "JDBC Driver appends an extra when configuring connection by reading httpPath from ZooKeeper Vaibhav Gumashta reviewed by Thejas Nair"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface IItemAdapter { \n + public interface IItemAdapter extends IAdapter { \n \n COMMENT \n COMMENT", "msg_token": "the IItemAdapter implements the IAdapter interface"} {"diff": " public class ViewPager extends ViewGroup { \n } \n completeScroll ( false ) ; \n scrollTo ( destX , NUMBER0 ) ; \n + pageScrolled ( destX ) ; \n } \n }", "msg_token": "ViewPager was not repositioning the PagerTitleStrip properly"} {"diff": " class MyClass { \n return super . clone ( ) ; \n } \n \n + @ notnull \n @ override \n public String toString ( ) { \n return super . toString ( ) ; \n class A { \n return super . clone ( ) ; \n } \n \n + @ notnull \n @ override \n public String toString ( ) { \n return super . toString ( ) ; \n class Test { \n return s ; \n } \n \n + @ notnull \n String foo4 ( @ notnull String s ) { \n return s . substring ( NUMBER0 ) ; \n } \n class MyClass < T > implements A < T > { \n return super . clone ( ) ; \n } \n \n + @ notnull \n @ override \n public String toString ( ) { \n return super . toString ( ) ;", "msg_token": "adapt testdata to inferred jdk annotations"} {"diff": " public class Word2Vec implements Persistable { \n } \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void resetWeightsOnSetup ( ) { \n + this . shouldReset = true ; \n + } \n + \n \n \n public int getLayerSize ( ) {", "msg_token": "allow to reset weights for new sentence iterator"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "HivePairFlatMapFunction java missing license header Spark Branch Chao via Xuefu"} {"diff": " public class Upload extends ConventionTask { \n COMMENT \n COMMENT \n COMMENT \n - @ optional @ outputfile \n + @ internal \n public File getDescriptorDestination ( ) { \n return descriptorDestination ; \n }", "msg_token": "Make Upload descriptorDestination internal"} {"diff": " import NAMESPACE ; \n public class LwjglApplicationConfiguration { \n COMMENT \n COMMENT \n - static public final boolean disableAudio = true ; \n + static public boolean disableAudio ; \n \n COMMENT \n public boolean useGL20 = false ;", "msg_token": "Fix previous commit"} {"diff": " public class BuildDataManager implements StorageOwner { \n } \n } \n } \n + saveVersion ( ) ; \n } \n \n public void flush ( boolean memoryCachesOnly ) {", "msg_token": "save storage format version after successful cleanup"} {"diff": " public class MBeanInfoAssemblerTest { \n ModelMBeanInfo beanInfo = mbeanInfoAssembler . getMBeanInfo ( new BadInherited ( ) , null , STRING0 ) ; \n assertNotNull ( beanInfo ) ; \n assertNotNull ( beanInfo . getAttributes ( ) ) ; \n - assertEquals ( NUMBER0 , beanInfo . getAttributes ( ) . length ) ; \n + assertEquals ( NUMBER1 , beanInfo . getAttributes ( ) . length ) ; \n assertNotNull ( beanInfo . getOperations ( ) ) ; \n - assertEquals ( NUMBER0 , beanInfo . getOperations ( ) . length ) ; \n + assertEquals ( NUMBER2 , beanInfo . getOperations ( ) . length ) ; \n \n }", "msg_token": "fix one jmx test"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class Duration { \n \n @ override public int hashCode ( ) \n { \n - return Objects . hash ( toNanos ( ) , TimeUnit . NANOSECONDS ) ; \n + return Arrays . hashCode ( new Object [ ] { toNanos ( ) , NANOSECONDS } ) ; \n } \n - \n + \n @ override public String toString ( ) \n { \n return STRING0 + STRING1 + length + STRING2 + timeUnit + STRING3 ;", "msg_token": "Add Duration equals toString hashCode some simple tests for same"} {"diff": " public class ConstantConditionalExpressionInspection \n assert thenExpression != null ; \n assert elseExpression != null ; \n \n - if ( isFalse ( condition ) && isTrue ( elseExpression ) ) { \n + if ( isTrue ( condition ) ) { \n return thenExpression . getText ( ) ; \n } else { \n return elseExpression . getText ( ) ;", "msg_token": "Fix for constant conditional quick fix"} {"diff": " class SmartPsiElementPointerImpl < E extends PsiElement > implements SmartPointerEx \n if ( myElement instanceof PsiImportList ) { \n return new ImportListInfo ( ( PsiJavaFile ) myElement . getContainingFile ( ) ) ; \n } \n - LOG . assertTrue ( myElement . isPhysical ( ) , STRING0 + myElement ) ; \n + \n + if ( ! myElement . isPhysical ( ) ) return null ; \n + \n PsiElement anchor = getAnchor ( myElement ) ; \n if ( anchor != null ) { \n return new AnchorElementInfo ( anchor ) ;", "msg_token": "Replace assertion with reasonable fallback"} {"diff": " public class TextEditingTarget implements \n SINGLE \n docDisplay_ . getScopeTree ( ) ; \n \n - executeSweaveChunk ( scopeHelper_ . getNextSweaveChunk ( ) , true ) ; \n + Scope nextChunk = scopeHelper_ . getNextSweaveChunk ( ) ; \n + executeSweaveChunk ( nextChunk , true ) ; \n + docDisplay_ . setCursorPosition ( nextChunk . getBodyStart ( ) ) ; \n + docDisplay_ . ensureCursorVisible ( ) ; \n } \n \n @ handler", "msg_token": "executeNextChunk moves cursor to start of next chunk"} {"diff": " public COMMENT class LogFactory { \n COMMENT \n COMMENT \n public String [ ] getAttributeNames ( ) { \n - return ( String [ ] ) logConfig . keySet ( ) . toArray ( ) ; \n + String result [ ] = new String [ logConfig . size ( ) ] ; \n + return logConfig . keySet ( ) . toArray ( result ) ; \n } \n \n COMMENT", "msg_token": "Fix cast error reported by Find Bugs"} {"diff": " public class OsgiTypeConverter extends ServiceSupport implements TypeConverter , \n return getDelegate ( ) . getInjector ( ) ; \n } \n \n + public Statistics getStatistics ( ) { \n + return getDelegate ( ) . getStatistics ( ) ; \n + } \n + \n public synchronized DefaultTypeConverter getDelegate ( ) { \n if ( delegate == null ) { \n delegate = createRegistry ( ) ; \n public class MockTypeConverterRegistry implements TypeConverterRegistry { \n return null ; \n } \n \n + public Statistics getStatistics ( ) { \n + return null ; \n + } \n + \n + public void start ( ) throws Exception { \n + SINGLE \n + } \n + \n + public void stop ( ) throws Exception { \n + SINGLE \n + } \n }", "msg_token": "Added utilization stats to type converter registry which is also accessible from JMX"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AvailablePluginsManagerMain extends PluginManagerMain { \n installed . modifyPluginsList ( list ) ; SINGLE \n } \n \n + @ override \n + protected DefaultActionGroup createSortersGroup ( ) { \n + final DefaultActionGroup group = super . createSortersGroup ( ) ; \n + group . addAction ( new SortByDownloadsAction ( pluginTable , pluginsModel ) ) ; \n + group . addAction ( new SortByRatingAction ( pluginTable , pluginsModel ) ) ; \n + group . addAction ( new SortByUpdatedAction ( pluginTable , pluginsModel ) ) ; \n + return group ; \n + } \n + \n private class MyFilterCategoryAction extends ComboBoxAction implements DumbAware { \n @ override \n public void update ( AnActionEvent e ) {", "msg_token": "register all sorters for available plugins table"} {"diff": " public class VoldemortConfig implements Serializable { \n this . socketBufferSize = ( int ) props . getBytes ( STRING0 , NUMBER0 * NUMBER1 ) ; \n this . socketKeepAlive = props . getBoolean ( STRING1 , false ) ; \n \n - this . useNioConnector = props . getBoolean ( STRING2 , false ) ; \n + this . useNioConnector = props . getBoolean ( STRING2 , true ) ; \n this . nioConnectorSelectors = props . getInt ( STRING3 , \n Math . max ( NUMBER2 , Runtime . getRuntime ( ) \n . availableProcessors ( ) ) ) ;", "msg_token": "Changing the enable nio connector to true by default"} {"diff": " public class UDFJson extends UDF { \n COMMENT \n public Text evaluate ( String jsonString , String pathString ) { \n \n - if ( jsonString == null || jsonString == STRING0 || pathString == null \n - || pathString == STRING0 ) { \n + if ( jsonString == null || jsonString . isEmpty ( ) || pathString == null \n + || pathString . isEmpty ( ) ) { \n return null ; \n }", "msg_token": "UDFJson uses the operator to compare Strings Alexander Pivavorov via Jason Dere"} {"diff": " public class WriteConcern implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public void setWObject ( Object w ) { \n if ( ! ( w instanceof Integer ) && ! ( w instanceof String ) ) \n throw new IllegalArgumentException ( STRING0 ) ;", "msg_token": "Added Deprecated annotation to method with deprecated Javadoc tag"} {"diff": " public class SmartTabLayout extends HorizontalScrollView { \n super . onSizeChanged ( w , h , oldw , oldh ) ; \n if ( tabStrip . isIndicatorAlwaysInCenter ( ) && tabStrip . getChildCount ( ) > NUMBER0 ) { \n View firstTab = tabStrip . getChildAt ( NUMBER0 ) ; \n - View lastTab = tabStrip . getChildAt ( getChildCount ( ) - NUMBER1 ) ; \n + View lastTab = tabStrip . getChildAt ( tabStrip . getChildCount ( ) - NUMBER1 ) ; \n int start = ( w - Utils . getMeasuredWidth ( firstTab ) ) / NUMBER2 - Utils . getMarginStart ( firstTab ) ; \n int end = ( w - Utils . getMeasuredWidth ( lastTab ) ) / NUMBER2 - Utils . getMarginEnd ( lastTab ) ; \n tabStrip . setMinimumWidth ( tabStrip . getMeasuredWidth ( ) ) ;", "msg_token": "Fixed issue with center last item in always in center tablayout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpBinding extends AbstractActiveBinding < HttpBindingProvider > impl \n return OnOffType . valueOf ( transformedResponse ) ; \n } else if ( itemType . isAssignableFrom ( RollershutterItem . class ) ) { \n return PercentType . valueOf ( transformedResponse ) ; \n + } else if ( itemType . isAssignableFrom ( DateTimeItem . class ) ) { \n + return DateTimeType . valueOf ( transformedResponse ) ; \n } else { \n return StringType . valueOf ( transformedResponse ) ; \n }", "msg_token": "Added DateTime item support"} {"diff": " public class TestServlet extends HttpServlet { \n . request ( ) \n . post ( Entity . text ( STRING0 ) , String . class ) ; \n out . println ( STRING1 + fruit ) ; \n - \n - out . println ( STRING2 ) ; \n out . println ( STRING3 ) ; \n out . println ( STRING4 ) ; \n }", "msg_token": "Removing redundant statements"} {"diff": " public class WPOptimizelyEventListener implements OptimizelyEventListener { \n HashMap < String , String > abTestProperties = new HashMap < > ( ) ; \n abTestProperties . put ( ABTEST_NAME , experiment . experimentName ) ; \n abTestProperties . put ( ABTEST_VARIATION , experiment . variationName ) ; \n - AnalyticsTracker . track ( AnalyticsTracker . Stat . ABTEST_START ) ; \n + AnalyticsTracker . track ( AnalyticsTracker . Stat . ABTEST_START , abTestProperties ) ; \n } \n }", "msg_token": "Adding properties to analytics"} {"diff": " public class JavaFileStructureFilteringTest extends JavaFileStructureTestCase { \n public void testSelectLeafFirst3 ( ) throws Exception { checkTree ( STRING0 ) ; } \n public void testSelectLeafFirst4 ( ) throws Exception { checkTree ( STRING0 ) ; } \n \n - @ bombed ( user = STRING1 , month = Calendar . JULY , day = NUMBER0 ) \n public void testMatcher ( ) throws Exception { checkTree ( STRING2 ) ; } \n + \n @ bombed ( user = STRING1 , month = Calendar . AUGUST , day = NUMBER1 ) \n public void testMatcher1 ( ) throws Exception { checkTree ( STRING3 ) ; } \n @ bombed ( user = STRING1 , month = Calendar . AUGUST , day = NUMBER1 ) \n public class SpeedSearchComparator { \n } \n \n public int matchingDegree ( String pattern , String text ) { \n - return obtainMatcher ( pattern ) . matchingDegree ( text ) ; \n + MinusculeMatcher matcher = obtainMatcher ( pattern ) ; \n + return matcher . matchingDegree ( text ) + ( matcher . isStartMatch ( text ) ? NUMBER2 : NUMBER3 ) ; \n } \n \n @ nullable", "msg_token": "prefer start matches in speed search"} {"diff": " public class DashUpdatesFragment extends DashBaseFragment { \n SINGLE \n if ( ! updateOnlyProgress ) { \n getProgressIfPossible ( basicProgressAsyncTask . getDescription ( ) ) ; \n - if ( currentProgress == null ) { \n - return ; \n - } \n + } \n + \n + if ( currentProgress == null ) { \n + return ; \n } \n \n if ( updateOnlyProgress ) {", "msg_token": "Fixed NPE in DashUpdatesFragment"} {"diff": " public class RemoteImService extends Service implements OtrEngineListener , ImSer \n private void startForegroundCompat ( ) { \n Notification notification = new Notification ( R . drawable . notify_chatsecure , getString ( R . string . app_name ) , \n System . currentTimeMillis ( ) ) ; \n - Intent notificationIntent = new Intent ( this , NewChatActivity . class ) ; \n - notificationIntent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n + Intent notificationIntent = new Intent ( this , NewChatActivity . class ) ; \n PendingIntent launchIntent = PendingIntent . getActivity ( getApplicationContext ( ) , NUMBER0 , notificationIntent , NUMBER0 ) ; \n notification . setLatestEventInfo ( getApplicationContext ( ) , \n getString ( R . string . app_name ) , \n getString ( R . string . app_unlocked ) , \n launchIntent ) ; \n \n - SINGLE \n startForeground ( NUMBER1 , notification ) ; \n }", "msg_token": "don t cleartop when notification is tapped to launch app"} {"diff": " public class Preferences extends PreferenceActivity { \n public void onClick ( DialogInterface arg0 , int arg1 ) { \n Intent i = new Intent ( Intent . ACTION_VIEW ) ; \n i . setData ( Uri \n - . parse ( STRING0 ) ) ; \n + . parse ( STRING1 ) ) ; \n startActivity ( i ) ; \n } \n } ) ;", "msg_token": "Don t force twitter com redirect"} {"diff": " public class RobotiumUtils { \n } catch ( PatternSyntaxException e ) { \n pattern = Pattern . compile ( regex , Pattern . LITERAL ) ; \n } \n - Matcher matcher = pattern . matcher ( view . getText ( ) . toString ( ) ) ; \n + String viewText = view . getText ( ) . toString ( ) ; \n + viewText = viewText . replaceAll ( STRING0 , STRING1 ) ; \n + Matcher matcher = pattern . matcher ( viewText ) ; \n + \n if ( matcher . find ( ) ) { \n uniqueTextViews . add ( view ) ; \n }", "msg_token": "Replace new lines in getNumberOfMatches"} {"diff": " public class DefaultTypeConverter implements TypeConverter , TypeConverterRegistr \n } \n } \n \n - if ( LOG . isDebugEnabled ( ) ) { \n - LOG . debug ( STRING0 \n - + ( value == null ? STRING1 : value . getClass ( ) . getCanonicalName ( ) ) \n - + STRING2 + type . getCanonicalName ( ) + STRING3 + value ) ; \n + boolean camelType = type . getCanonicalName ( ) . startsWith ( STRING4 ) ; \n + if ( ! camelType && value != null ) { \n + SINGLE \n + LOG . warn ( STRING0 \n + + value . getClass ( ) . getCanonicalName ( ) + STRING2 \n + + type . getCanonicalName ( ) + STRING3 + value ) ; \n } \n return null ; \n }", "msg_token": "Changed to WARN log for non internal camel convertions"} {"diff": " public class LazyTagLibraryLookup extends TagLibraryLookup { \n bd . setAutowireMode ( AbstractBeanDefinition . AUTOWIRE_BY_NAME ) ; \n ( ( GenericApplicationContext ) applicationContext ) . getDefaultListableBeanFactory ( ) . registerBeanDefinition ( tagLibraryClassName , bd ) ; \n resolveTagLibraries . put ( tagKey , tagLib . getFullName ( ) ) ; \n - return ( GroovyObject ) applicationContext . getBean ( tagLibraryClassName ) ; \n + return applicationContext . getBean ( tagLibraryClassName , GroovyObject . class ) ; \n } \n + } else { \n + resolveTagLibraries . put ( tagKey , tagLib . getFullName ( ) ) ; \n + return applicationContext . getBean ( tagLibraryClassName , GroovyObject . class ) ; \n } \n } \n }", "msg_token": "fix bug in LazyTagLibraryLookup when taglib bean already exists in context"} {"diff": " public class ContextMenuLayer extends OsmandMapLayer { \n \n } else if ( showUnknownLocation ) { \n hideVisibleMenues ( ) ; \n + selectedObjectContextMenuProvider = null ; \n LatLon latLon = getLatLon ( point , tileBox ) ; \n activity . getMapViewTrackingUtilities ( ) . setMapLinkedToLocation ( false ) ; \n menu . show ( latLon , null , null ) ;", "msg_token": "Fix apply new position bug"} {"diff": " public class JpsGantProjectBuilder { \n \n private void runBuild ( final Set < String > modulesSet , final boolean allModules , boolean includeTests ) { \n if ( ! myDryRun ) { \n - info ( STRING0 ) \n + info ( STRING0 ) ; \n final AntMessageHandler messageHandler = new AntMessageHandler ( ) ; \n SINGLE \n AntLoggerFactory . ourMessageHandler = new AntMessageHandler ( ) ; \n public class JpsGantProjectBuilder { \n myBuildInfoPrinter . printStatisticsMessage ( this , STRING1 , String . valueOf ( System . currentTimeMillis ( ) - compilationStart ) ) ; \n myStatisticsReported = true ; \n } \n - info ( STRING2 ) \n + info ( STRING2 ) ; \n } \n else { \n info ( STRING3 ) ;", "msg_token": "group compile messages in TC cleanup"} {"diff": " public class MessageParser extends AbstractParser implements \n Conversation conversation = mXmppConnectionService . findOrCreateConversation ( account , counterpart . toBareJid ( ) , isTypeGroupChat ) ; \n if ( isTypeGroupChat ) { \n if ( counterpart . getResourcepart ( ) . equals ( conversation . getMucOptions ( ) . getActualNick ( ) ) ) { \n - status = Message . STATUS_SEND ; \n - if ( mXmppConnectionService . markMessage ( conversation , remoteMsgId , Message . STATUS_SEND_RECEIVED ) ) { \n + status = Message . STATUS_SEND_RECEIVED ; \n + if ( mXmppConnectionService . markMessage ( conversation , remoteMsgId , status ) ) { \n return ; \n } else { \n Message message = conversation . findSentMessageWithBody ( body ) ; \n if ( message != null ) { \n message . setRemoteMsgId ( remoteMsgId ) ; \n - mXmppConnectionService . markMessage ( message , Message . STATUS_SEND_RECEIVED ) ; \n + mXmppConnectionService . markMessage ( message , status ) ; \n return ; \n } \n }", "msg_token": "fixed more edge cases in muc message parser"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - public class ScopeFunction extends JavaScriptObject \n + public class ScopeFunction extends Scope \n { \n protected ScopeFunction ( ) \n { }", "msg_token": "ScopeFunction extends Scope"} {"diff": " public class ResponseConsumerDelegate extends AbstractAsyncResponseConsumer < Http \n \n @ override \n protected void releaseResources ( ) { \n - consumer . _releaseResources ( ) ; \n + if ( consumer != null ) { \n + consumer . _releaseResources ( ) ; \n + } \n } \n \n }", "msg_token": "Fixed NullPointerException that may happen on timeout"} {"diff": " import NAMESPACE ; \n COMMENT \n public final class YarnUtils { \n private static final NodeState [ ] USABLE_NODE_STATES ; \n + \n static { \n List < NodeState > usableStates = Lists . newArrayList ( ) ; \n for ( NodeState nodeState : NodeState . values ( ) ) { \n public class ApplicationMasterTest { \n private ArgumentMatcher < ContainerRequest > getMasterContainerMatcher ( ) { \n return new ArgumentMatcher < ContainerRequest > ( ) { \n public boolean matches ( Object arg ) { \n - boolean require_locality = MASTER_ADDRESS . equals ( STRING0 ) ; \n + boolean requireLocality = MASTER_ADDRESS . equals ( STRING0 ) ; \n ContainerRequest expectedWorkerContainerRequest = \n new ContainerRequest ( Resource . newInstance ( MASTER_MEM_MB , MASTER_CPU ) , \n - new String [ ] { MASTER_ADDRESS } , null , Priority . newInstance ( NUMBER0 ) , require_locality ) ; \n + new String [ ] { MASTER_ADDRESS } , null , Priority . newInstance ( NUMBER0 ) , requireLocality ) ; \n return EqualsBuilder . reflectionEquals ( arg , expectedWorkerContainerRequest ) ; \n } \n } ;", "msg_token": "Fix style in yarn project"} {"diff": " public class IndexingService extends LifecycleAdapter \n public void activateIndex ( long indexId ) throws \n IndexNotFoundKernelException , IndexActivationFailedKernelException , IndexPopulationFailedKernelException \n { \n - IndexProxy index = getProxyForRule ( indexId ) ; \n try \n { \n if ( state == State . RUNNING ) SINGLE \n { \n + IndexProxy index = getProxyForRule ( indexId ) ; \n index . awaitStoreScanCompleted ( ) ; \n index . activate ( ) ; \n } \n public class IndexingServiceTest \n assertThat ( asCollection ( files ) , equalTo ( asCollection ( iterator ( theFile ) ) ) ) ; \n } \n \n + @ test \n + public void shouldIgnoreActivateCallDuringRecovery ( ) throws Exception \n + { \n + SINGLE \n + IndexingService indexingService = newIndexingServiceWithMockedDependencies ( populator , accessor , withData ( ) ) ; \n + \n + life . start ( ) ; \n + \n + SINGLE \n + indexingService . activateIndex ( NUMBER0 ) ; \n + \n + SINGLE \n + } \n + \n private Answer waitForLatch ( final CountDownLatch latch ) { \n return new Answer ( ) { \n @ override", "msg_token": "During recovery don t activate indexes"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class InvalidateEntryProcessor implements EntryProcessor < String , Object > , DataSerializable { \n + public class InvalidateEntryProcessor extends AbstractEntryProcessor < String , Object > implements DataSerializable { \n private String sessionId ; \n \n SINGLE \n public InvalidateEntryProcessor ( ) { \n + super ( true ) ; \n } \n \n public InvalidateEntryProcessor ( String sessionId ) { \n public class InvalidateEntryProcessor implements EntryProcessor < String , Object > , \n } \n \n @ override \n - public EntryBackupProcessor < String , Object > getBackupProcessor ( ) { \n - return null ; \n - } \n - \n - @ override \n public void writeData ( ObjectDataOutput out ) throws IOException { \n out . writeUTF ( sessionId ) ; \n }", "msg_token": "Fixed invalidation processor"} {"diff": " public class GoApplicationRunningState extends GoRunningState { \n commandLine . setExePath ( executable ) ; \n commandLine . addParameter ( STRING0 ) ; \n commandLine . addParameter ( myConfiguration . getFilePath ( ) ) ; \n + commandLine . addParameter ( myConfiguration . getParams ( ) ) ; \n commandLine . setWorkDirectory ( myModule . getProject ( ) . getBasePath ( ) ) ; \n TextConsoleBuilder consoleBuilder = TextConsoleBuilderFactory . getInstance ( ) . createBuilder ( myModule . getProject ( ) ) ; \n setConsoleBuilder ( consoleBuilder ) ;", "msg_token": "Use selected params"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface VerificationWithTimeout extends VerificationMode { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed method name to verifyNoMoreInteractions"} {"diff": " public class PrepRequestProcessor extends Thread implements RequestProcessor { \n nextProcessor . processRequest ( request ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private boolean fixupACL ( ArrayList < Id > authInfo , ArrayList < ACL > acl ) { \n if ( skipACL ) { \n return true ;", "msg_token": "Added a comment"} {"diff": " public class AQUtility { \n } \n \n public static Context getContext ( ) { \n + if ( context == null ) { \n + AQUtility . warn ( STRING0 , STRING1 ) ; \n + } \n return context ; \n } \n }", "msg_token": "Add warning when getContext is null"} {"diff": " class StudyBrowserWindow extends JFrame { \n template = template . replace ( STRING0 , getClass ( ) . getResource ( STRING1 ) . toExternalForm ( ) ) ; \n } \n template = template . replace ( STRING2 , configurator . getDefaultHighlightingMode ( ) ) ; \n - template = template . replace ( STRING3 , STRING4 + \n - STRING5 + \n - STRING6 + \n - STRING7 + \n - STRING8 + \n - STRING9 + \n - STRING10 + \n - STRING11 + \n - STRING12 + \n - STRING13 + \n - STRING11 + \n - STRING14 + \n - STRING15 + \n - STRING11 + \n - STRING16 + \n - STRING17 + \n - STRING18 ) ; \n + template = template . replace ( STRING3 , content ) ; \n \n return template ; \n }", "msg_token": "Remove debug artifacts in study code highlighting"} {"diff": " public class MongoClientURI { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public MongoCredential getCredentials ( ) { \n + if ( proxied . getCredentialList ( ) . isEmpty ( ) ) { \n + return null ; \n + } \n + else { \n + return new MongoCredential ( proxied . getCredentialList ( ) . get ( NUMBER0 ) ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added MongoClientURI getCredentials in driver compat"} {"diff": " public class WebXml { \n SINGLE \n SINGLE \n SINGLE \n - wrapper . setJspFile ( servlet . getJspFile ( ) ) ; \n + SINGLE \n + SINGLE \n + String jspFile = servlet . getJspFile ( ) ; \n + if ( jspFile != null ) { \n + wrapper . setJspFile ( jspFile ) ; \n + } \n if ( servlet . getLoadOnStartup ( ) != null ) { \n wrapper . setLoadOnStartup ( servlet . getLoadOnStartup ( ) . intValue ( ) ) ; \n }", "msg_token": "Don t mark every servlet as the JSP Servlet"} {"diff": " public class RibbonConfig { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in Javadoc"} {"diff": " public class MaterialAutoCompleteTextView extends AutoCompleteTextView { \n invalidate ( ) ; \n } \n \n - public boolean getHelperTextAlwaysShown ( ) { \n + public boolean isHelperTextAlwaysShown ( ) { \n return helperTextAlwaysShown ; \n } \n \n public class MaterialEditText extends EditText { \n invalidate ( ) ; \n } \n \n - public boolean getHelperTextAlwaysShown ( ) { \n + public boolean isHelperTextAlwaysShown ( ) { \n return helperTextAlwaysShown ; \n } \n \n public class MaterialMultiAutoCompleteTextView extends MultiAutoCompleteTextView \n invalidate ( ) ; \n } \n \n - public boolean getHelperTextAlwaysShown ( ) { \n + public boolean isHelperTextAlwaysShown ( ) { \n return helperTextAlwaysShown ; \n }", "msg_token": "Rename getHelperTextAlwaysShown to isHelperTextAlwaysShown"} {"diff": " public class C0DChunk extends Chunk { \n @ override public int nextNZ ( int rid ) { \n return _con == NUMBER0 ? _len : rid + NUMBER1 ; \n } \n + @ override public boolean isSparse ( ) { return _con == NUMBER0 ; } \n } \n public class C0LChunk extends Chunk { \n @ override public int nextNZ ( int rid ) { \n return _con == NUMBER0 ? _len : rid + NUMBER1 ; \n } \n + @ override public boolean isSparse ( ) { return _con == NUMBER0 ; } \n }", "msg_token": "Fixed isSparse call for constant chunks"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n == PackageManager . SIGNATURE_MATCH ) ; \n if ( ! allowed && ( bp . protectionLevel \n & PermissionInfo . PROTECTION_FLAG_SYSTEM ) != NUMBER0 ) { \n - if ( isPrivilegedApp ( pkg ) ) { \n + if ( isSystemApp ( pkg ) ) { \n SINGLE \n SINGLE \n if ( isUpdatedSystemApp ( pkg ) ) { \n public class PackageManagerService extends IPackageManager . Stub { \n . getDisabledSystemPkgLPr ( pkg . packageName ) ; \n final GrantedPermissions origGp = sysPs . sharedUser != null \n ? sysPs . sharedUser : sysPs ; \n + \n if ( origGp . grantedPermissions . contains ( perm ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n allowed = true ; \n } else { \n SINGLE \n public class PackageManagerService extends IPackageManager . Stub { \n } \n } \n } else { \n - allowed = true ; \n + allowed = isPrivilegedApp ( pkg ) ; \n } \n } \n }", "msg_token": "Fix permission privilege w r t updated system apps"} {"diff": " public class DisUnityProcessor implements Runnable { \n break ; \n } \n \n + SINGLE \n + File backupFile = new File ( sourceFile . getPath ( ) + STRING0 ) ; \n + FileUtils . copyFile ( sourceFile , backupFile ) ; \n + \n String fixedPath = sourceFile . getParent ( ) . replace ( STRING1 , STRING2 ) . toLowerCase ( ) ; \n \n for ( AssetRef ref : asset . getReferences ( ) ) { \n - if ( isAsset ( ref . filePath ) ) { \n + if ( isAsset ( ref . filePath ) && ref . filePath . endsWith ( STRING3 ) ) { \n String pathOld = ref . filePath ; \n ref . filePath = fixedPath + STRING2 + FilenameUtils . getName ( ref . filePath ) ; \n L . log ( Level . FINE , STRING4 , new Object [ ] { pathOld , ref . filePath } ) ;", "msg_token": "create backup first and fix only files with the"} {"diff": " public class AtmosphereFramework { \n try { \n Class < ? > c = Class . forName ( b ) ; \n return ( AtmosphereObjectFactory ) c . newInstance ( ) ; \n + } catch ( ClassNotFoundException e ) { \n + logger . trace ( e . getMessage ( ) + STRING0 ) ; \n } catch ( Exception e ) { \n logger . trace ( STRING1 , e ) ; \n }", "msg_token": "Don t print stack trace when ObjectFactory isn t found"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static List transpose ( List self ) {", "msg_token": "revert accidental javadoc change"} {"diff": " public class EnglishGrammaticalRelations { \n PrepositionalObjectGRAnnotation . class , OBJECT , STRING0 , tregexCompiler , \n new String [ ] { \n SINGLE \n - STRING1 , \n + STRING2 , \n SINGLE \n - STRING3 , \n + STRING4 , \n SINGLE \n SINGLE \n STRING5 , \n public class EnglishGrammaticalRelations { \n \n STRING6 , SINGLE \n SINGLE \n - STRING7 , SINGLE \n + STRING8 , SINGLE \n SINGLE \n STRING9 , \n SINGLE", "msg_token": "When given is used as a preposition it should have a pobj"} {"diff": " package NAMESPACE ; \n public interface MemoryAccessor { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isBigEndian ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public final class StandardMemoryAccessor extends UnsafeBasedMemoryAccessor { \n } \n } \n \n + @ override \n + public boolean isBigEndian ( ) { \n + return IS_PLATFORM_BIG_ENDIAN ; \n + } \n \n SINGLE \n \n public class HeapMemoryManager implements MemoryManager { \n } \n \n @ override \n + public boolean isBigEndian ( ) { \n + return false ; \n + } \n + \n + @ override \n public boolean getBoolean ( long address ) { \n throw new UnsupportedOperationException ( ) ; \n }", "msg_token": "Add isBigEndian to MemoryAccessor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n public class ExtensionScanner extends ExtensionAdaptor implements ScannerListene \n } \n return popupMenuScanHistory ; \n } \n + \n + @ override \n + public void notifyNewMessage ( HttpMessage msg ) { \n + SINGLE \n + } \n \n }", "msg_token": "Added pause and resume and notification of new messages"} {"diff": " public interface JavaCodeFragment extends PsiImportHolder , PsiCodeFragment { \n public Visibility isDeclarationVisible ( PsiElement declaration , PsiElement place ) { \n return Visibility . VISIBLE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 ; \n + } \n } ; \n \n VisibilityChecker PROJECT_SCOPE_VISIBLE = new VisibilityChecker ( ) { \n public interface JavaCodeFragment extends PsiImportHolder , PsiCodeFragment { \n public Visibility isDeclarationVisible ( PsiElement declaration , PsiElement place ) { \n return declaration . getManager ( ) . isInProject ( declaration ) ? Visibility . VISIBLE : Visibility . NOT_VISIBLE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING1 ; \n + } \n } ; \n }", "msg_token": "toString impls for builtin visibility checkers"} {"diff": " public class PsiTreeUtil { \n return result ; \n } \n \n - private static boolean instanceOf ( final PsiElement child , final Class < ? > . . . classes ) { \n + public static boolean instanceOf ( final Object object , final Class < ? > . . . classes ) { \n if ( classes != null ) { \n - for ( final Class < ? > each : classes ) { \n - if ( each . isInstance ( child ) ) return true ; \n + for ( final Class < ? > c : classes ) { \n + if ( c . isInstance ( object ) ) return true ; \n } \n } \n return false ;", "msg_token": "Made instanceOf public"} {"diff": " public abstract class SmartPointerManager { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ notnull public abstract < E extends PsiElement > SmartPsiElementPointer < E > createSmartPsiElementPointer ( @ notnull E element ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ notnull public abstract < E extends PsiElement > SmartPsiElementPointer < E > createSmartPsiElementPointer ( @ notnull E element , PsiFile containingFile ) ; \n \n COMMENT", "msg_token": "add javadoc for smart pointer creation with containing file"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GenericFile < T > implements Serializable { \n COMMENT \n COMMENT \n protected String normalizePathToProtocol ( String path ) { \n + if ( ObjectHelper . isEmpty ( path ) ) { \n + return path ; \n + } \n return path . replaceAll ( STRING0 , getFileSeparator ( ) ) ; \n }", "msg_token": "Fixed minor issue with setting endpoint path"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class TestRCFileStorage { \n + public class TestRCFileProtobufStorage { \n \n private PigServer pigServer ; \n private final String testDir = \n - System . getProperty ( STRING0 ) + STRING1 ; \n + System . getProperty ( STRING0 ) + STRING2 ; \n private final File inputDir = new File ( testDir , STRING3 ) ; \n private final File rcfile_in = new File ( testDir , STRING4 ) ;", "msg_token": "rename TestRCFileStorage java"} {"diff": " public class RealmResultsTest extends AndroidTestCase { \n RealmResults < AllTypes > result = testRealm . allObjects ( AllTypes . class ) ; \n RealmResults < AllTypes > sortedResult = result . sort ( FIELD_STRING ) ; \n } catch ( IllegalArgumentException e ) { \n - fail ( STRING0 ) ; \n + fail ( STRING1 ) ; \n } \n } \n \n public class RealmResultsTest extends AndroidTestCase { \n try { \n RealmResults < AllTypes > sortResult = testRealm . where ( AllTypes . class ) . findAll ( ) . sort ( FIELD_STRING ) ; \n } catch ( IllegalArgumentException e ) { \n - fail ( STRING2 ) ; \n + fail ( STRING3 ) ; \n } \n }", "msg_token": "Changed fail messages"} {"diff": " public class DefaultServlet \n \n String name = cacheEntry . name ; \n \n - SINGLE \n - int trim = name . length ( ) ; \n - if ( ! name . endsWith ( STRING0 ) ) \n - trim += NUMBER0 ; \n - if ( name . equals ( STRING0 ) ) \n - trim = NUMBER0 ; \n - \n SINGLE \n ByteArrayOutputStream stream = new ByteArrayOutputStream ( ) ; \n OutputStreamWriter osWriter = new OutputStreamWriter ( stream , STRING1 ) ;", "msg_token": "Remove unused code"} {"diff": " abstract public class TreeImportingParserBase implements ImportingParser { \n } \n } \n \n + rootColumnGroup . tabulate ( ) ; \n XmlImportUtilities . createColumnsFromImport ( project , rootColumnGroup ) ; \n project . columnModel . update ( ) ; \n }", "msg_token": "Make sure out counts our current before attempting to use them for sorting"} {"diff": " public class Description implements Serializable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "reformatted a comment as per code review"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ ignore \n - public class AgentInfoSenderIT { \n + public class AgentInfoSenderTest { \n \n private final Logger logger = LoggerFactory . getLogger ( this . getClass ( ) ) ;", "msg_token": "Rename AgentInfoSenderIT to AgentInfoSenderTest"} {"diff": " public class Spider implements Runnable , Task { \n } \n \n private void waitNewUrl ( ) { \n + newUrlLock . lock ( ) ; \n try { \n - newUrlLock . lock ( ) ; \n SINGLE \n if ( threadAlive . get ( ) == NUMBER0 && exitWhenComplete ) { \n return ; \n } \n - try { \n - newUrlCondition . await ( ) ; \n - } catch ( InterruptedException e ) { \n - } \n - } finally { \n + newUrlCondition . await ( ) ; \n + } catch ( InterruptedException e ) { \n + logger . warn ( STRING0 , e ) ; \n + } \n + finally { \n newUrlLock . unlock ( ) ; \n } \n }", "msg_token": "combine two try catch block into one make it cleaner"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class SpdyOrHttpChooser extends ChannelDuplexHandler implements \n } \n } \n \n + @ override \n + public void flush ( ChannelHandlerContext ctx , ChannelPromise promise ) throws Exception { \n + ctx . flush ( promise ) ; \n + } \n + \n private boolean initPipeline ( ChannelHandlerContext ctx ) { \n SINGLE \n SslHandler handler = ctx . pipeline ( ) . get ( SslHandler . class ) ;", "msg_token": "Also provide implementation for flush out of the box"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added back license header lost in conversion"} {"diff": " public class ForeignKeyContainer < ModelClass extends Model > extends SimpleModelCo \n return model ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public ModelClass reload ( ) { \n + model = null ; \n + return load ( ) ; \n + } \n + \n @ override \n public boolean exists ( ) { \n ModelClass model = toModel ( ) ;", "msg_token": "added reload method"} {"diff": " class ContextImpl extends Context { \n return getDropBoxManager ( ) ; \n } else if ( DEVICE_POLICY_SERVICE . equals ( name ) ) { \n return getDevicePolicyManager ( ) ; \n - } else if ( UIMODE_SERVICE . equals ( name ) ) { \n + } else if ( UI_MODE_SERVICE . equals ( name ) ) { \n return getUiModeManager ( ) ; \n }", "msg_token": "Fix missing UI_MODE_SERVICE rename"} {"diff": " public class Record { \n ( q . getName ( ) . equals ( name ) ) ; \n } \n \n + public String getName ( ) { \n + return name ; \n + } \n + \n public Data getPayload ( ) { \n return payloadData ; \n }", "msg_token": "Export the record name"} {"diff": " public class CamelContextFactoryBean extends IdentifiedType implements RouteCont \n SINGLE \n getContext ( ) ; \n \n - log . info ( STRING0 + getRoutes ( ) ) ; \n + log . debug ( STRING0 + getRoutes ( ) ) ; \n \n findRouteBuiders ( ) ; \n installRoutes ( ) ; \n public class CamelContextFactoryBean extends IdentifiedType implements RouteCont \n if ( event instanceof ContextRefreshedEvent ) { \n SINGLE \n try { \n - log . info ( STRING1 ) ; \n + log . debug ( STRING1 ) ; \n getContext ( ) . start ( ) ; \n } \n catch ( Exception e ) {", "msg_token": "removed some debug logging"} {"diff": " public class WordPress extends Application { \n } \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 + COMMENT \n + COMMENT \n + COMMENT \n private void startActivityTransitionTimer ( ) { \n this . mActivityTransitionTimer = new Timer ( ) ; \n this . mActivityTransitionTimerTask = new TimerTask ( ) {", "msg_token": "Added some comments that describe how we re detecting the onBackground state"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class InitialFlowSetupActionTests { \n assertNotNull ( WebUtils . getRegisteredService ( context ) ) ; \n assertEquals ( STRING0 , event . getId ( ) ) ; \n } \n + \n + @ test ( expected = NoSuchFlowExecutionException . class ) \n + public void disableFlowIfNoService ( ) throws Exception { \n + this . action . setEnableFlowOnAbsentServiceRequest ( false ) ; \n + final MockRequestContext context = new MockRequestContext ( ) ; \n + final MockHttpServletRequest request = new MockHttpServletRequest ( ) ; \n + context . setExternalContext ( new ServletExternalContext ( new MockServletContext ( ) , request , new MockHttpServletResponse ( ) ) ) ; \n + \n + this . action . execute ( context ) ; \n + } \n }", "msg_token": "added test case"} {"diff": " public class RegisteredInvocations implements Serializable { \n } \n \n public void removeLast ( ) { \n - int last = invocations . size ( ) - NUMBER0 ; \n - invocations . remove ( last ) ; \n + SINGLE \n + synchronized ( invocations ) { \n + int last = invocations . size ( ) - NUMBER0 ; \n + invocations . remove ( last ) ; \n + } \n } \n \n public List < Invocation > getAll ( ) {", "msg_token": "Added some synchronization code to make Mockito behave slightly better when stubbing occurs in multiple threads on shared mock"} {"diff": " public abstract class FilteredTraverserBase < T , Self extends FilteredTraverserBas \n \n \n protected static class Meta < T > { \n - public final Iterable < ? extends T > roots ; \n - public final TreeTraversal traversal ; \n - public final Condition < ? super T > expandFilter ; \n - public final Condition < ? super T > childFilter ; \n - public final Condition < ? super T > resultFilter ; \n - \n - public final Condition < ? super T > forceExclude ; \n - public final Condition < ? super T > forceExpandAndSkip ; \n + final Iterable < ? extends T > roots ; \n + final TreeTraversal traversal ; \n + final Condition < ? super T > expandFilter ; \n + final Condition < ? super T > childFilter ; \n + final Condition < ? super T > resultFilter ; \n + \n + final Condition < ? super T > forceExclude ; \n + final Condition < ? super T > forceExpandAndSkip ; \n \n public Meta ( @ notnull Iterable < ? extends T > roots , \n @ notnull TreeTraversal traversal ,", "msg_token": "hide some fields"} {"diff": " public class AdminRoutes { \n router . add ( GET , STRING0 , GetAllStubMappingsTask . class ) ; \n router . add ( POST , STRING0 , CreateStubMappingTask . class ) ; \n \n - router . add ( POST , STRING1 , StubMappingTask . class ) ; SINGLE \n + router . add ( POST , STRING1 , OldCreateStubMappingTask . class ) ; SINGLE \n router . add ( POST , STRING2 , OldRemoveStubMappingTask . class ) ; SINGLE \n router . add ( POST , STRING3 , OldEditStubMappingTask . class ) ; SINGLE \n router . add ( POST , STRING4 , SaveMappingsTask . class ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class StubMappingTask implements AdminTask { \n + public class OldCreateStubMappingTask implements AdminTask { \n \n @ override \n public ResponseDefinition execute ( Admin admin , Request request , PathParams pathParams ) {", "msg_token": "Renamed deprecated task with Old prefix"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ configuration \n - @ conditionalonclass ( EhCacheCacheManager . class ) \n + @ conditionalonclass ( { Cache . class , EhCacheCacheManager . class } ) \n @ conditionalonmissingbean ( CacheManager . class ) \n @ conditional ( { CacheCondition . class , \n EhCacheCacheConfiguration . ConfigAvailableCondition . class } )", "msg_token": "Add missing type check on EhCacheCacheConfiguration"} {"diff": " public class EduStepicConnector { \n } \n } \n \n - final HttpPost attemptRequest = new HttpPost ( stepicApiUrl + STRING0 ) ; \n + final HttpPost attemptRequest = new HttpPost ( stepicApiUrl + STRING1 ) ; \n setHeaders ( attemptRequest , STRING2 ) ; \n String attemptRequestBody = new Gson ( ) . toJson ( new StepicWrappers . AttemptWrapper ( task . getStepicId ( ) ) ) ; \n attemptRequest . setEntity ( new StringEntity ( attemptRequestBody , ContentType . APPLICATION_JSON ) ) ; \n public class EduStepicConnector { \n } \n \n private static void postSubmission ( boolean passed , StepicWrappers . AttemptWrapper . Attempt attempt , ArrayList < StepicWrappers . SolutionFile > files ) throws IOException { \n - final HttpPost request = new HttpPost ( stepicApiUrl + STRING3 ) ; \n + final HttpPost request = new HttpPost ( stepicApiUrl + STRING4 ) ; \n setHeaders ( request , STRING2 ) ; \n \n String requestBody = new Gson ( ) . toJson ( new StepicWrappers . SubmissionWrapper ( attempt . id , passed ? STRING5 : STRING6 , files ) ) ;", "msg_token": "Fix typo in stepic api url"} {"diff": " public class Transaction extends ChildMessage { \n s . append ( String . format ( Locale . US , STRING0 , time ) ) ; \n } \n if ( isOptInFullRBF ( ) ) { \n - s . append ( STRING1 ) ; \n + s . append ( STRING2 ) ; \n } \n if ( inputs . size ( ) == NUMBER0 ) { \n s . append ( String . format ( Locale . US , STRING3 ) ) ;", "msg_token": "Fix wrong line ending in toString"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n \n } \n \n - H createHandler ( ) { \n + protected H createHandler ( ) { \n return new H ( ) ; \n } \n \n public class PhoneStatusBar extends BaseStatusBar { \n } \n \n @ override \n - BaseStatusBar . H createHandler ( ) { \n + protected BaseStatusBar . H createHandler ( ) { \n return new PhoneStatusBar . H ( ) ; \n } \n \n public class TabletStatusBar extends BaseStatusBar implements \n } \n \n @ override \n - BaseStatusBar . H createHandler ( ) { \n + protected BaseStatusBar . H createHandler ( ) { \n return new TabletStatusBar . H ( ) ; \n }", "msg_token": "Fix the build"} {"diff": " public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe \n } \n \n SINGLE \n - SINGLE \n + SINGLE \n } \n invokeAtmosphereHandler ( impl ) ;", "msg_token": "Fix the build"} {"diff": " public abstract class SessionPage extends WebPage { \n . getAttribute ( Constants . AUTHENTICATION_TYPE ) ; \n \n SINGLE \n - session . replaceSession ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( AuthenticationType . CONTAINER != authenticationType ) { \n + session . replaceSession ( ) ; \n + } \n session . setUser ( user ) ; \n \n request . getSession ( ) . setAttribute ( Constants . AUTHENTICATION_TYPE , authenticationType ) ;", "msg_token": "Create web rewriteSession key for use with tomcat and CAS"} {"diff": " public interface Ordered { \n COMMENT \n int LOWEST_PRECEDENCE = Integer . MAX_VALUE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int NOT_ORDERED = ( Integer . MIN_VALUE + NUMBER0 ) / NUMBER1 ; SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Introduce Ordered NOT_ORDERED"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IOBalancerMemoryLeakTest extends HazelcastTestSupport { \n \n @ test \n public void testEachConnectionUseDifferentSelectorEventually ( ) throws IOException { \n - HazelcastInstance instance = Hazelcast . newHazelcastInstance ( ) ; \n + Config config = new Config ( ) ; \n + config . getGroupConfig ( ) . setName ( randomName ( ) ) ; \n + HazelcastInstance instance = Hazelcast . newHazelcastInstance ( config ) ; \n HTTPCommunicator communicator = new HTTPCommunicator ( instance ) ; \n TcpIpConnectionManager connectionManager = ( TcpIpConnectionManager ) getConnectionManager ( instance ) ; \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {", "msg_token": "randomize group name to make this test prone to unintentional joins from multicast"} {"diff": " public class CloudNotifier { \n showMessage ( message , messageType , null ) ; \n } \n \n - public void showMessage ( String message , MessageType messageType , @ nullable NotificationListener listener ) { \n + public Notification showMessage ( String message , MessageType messageType , @ nullable NotificationListener listener ) { \n NotificationGroup notificationGroup = NotificationGroup . balloonGroup ( myNotificationDisplayId ) ; \n Notification notification = notificationGroup . createNotification ( STRING0 , message , messageType . toNotificationType ( ) , listener ) ; \n notification . notify ( null ) ; \n + return notification ; \n } \n } \n public class CloudGitChooseAccountStep < DC extends CloudDeploymentNameConfigurati \n return super . validate ( ) ; \n } \n \n - private void createRunConfiguration ( Module module , String applicationName ) { \n + public void createRunConfiguration ( Module module , String applicationName ) { \n DC deploymentConfiguration = myDetector . createDeploymentConfiguration ( ) ; \n \n boolean defaultName = module . getName ( ) . equals ( applicationName ) ;", "msg_token": "detect Git remotes"} {"diff": " public class PipeliningTest extends Assert { \n \n @ before \n public void setUp ( ) throws Exception { \n - jedis = new Jedis ( hnp . getHost ( ) , hnp . getPort ( ) , NUMBER0 ) ; \n + jedis = new Jedis ( hnp . getHost ( ) , hnp . getPort ( ) , NUMBER1 ) ; \n jedis . connect ( ) ; \n jedis . auth ( STRING0 ) ; \n jedis . flushAll ( ) ;", "msg_token": "Set Jedis timeout longer while PipeliningTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n You should have received a copy of the GNU General Public License \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n You should have received a copy of the GNU General Public License \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n \n \n You should have received a copy of the GNU General Public License \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix imports and package names"} {"diff": " public interface IncludedBuild { \n File getProjectDir ( ) ; \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 COMMENT \n COMMENT", "msg_token": "Fix javadoc for IncludedBuild"} {"diff": " public class UndertowJSRWebSocketDeploymentProcessor implements DeploymentUnitPr \n \n SINGLE \n SINGLE \n - final ServiceName moduleContextServiceName = ContextNames . contextServiceNameOfModule ( moduleDescription . getApplicationName ( ) , moduleDescription . getModuleName ( ) ) ; \n - bindJndiServices ( deploymentUnit , phaseContext . getServiceTarget ( ) , moduleContextServiceName , webSocketDeploymentInfo ) ; \n + if ( moduleDescription != null ) { \n + final ServiceName moduleContextServiceName = ContextNames . contextServiceNameOfModule ( moduleDescription . getApplicationName ( ) , moduleDescription . getModuleName ( ) ) ; \n + bindJndiServices ( deploymentUnit , phaseContext . getServiceTarget ( ) , moduleContextServiceName , webSocketDeploymentInfo ) ; \n + } \n } \n \n private void bindJndiServices ( final DeploymentUnit deploymentUnit , final ServiceTarget serviceTarget , final ServiceName contextServiceName , final WebSocketDeploymentInfo webSocketInfo ) {", "msg_token": "Prevent NPE in websocket processor if EE module is not present"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class NetworkAddressUtils { \n COMMENT \n COMMENT \n COMMENT \n - public static final boolean WINDOWS = System . getProperty ( STRING0 ) . startsWith ( STRING1 ) ; \n + public static final boolean WINDOWS = SystemUtils . IS_OS_WINDOWS ; \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n \n private static String sLocalHost ;", "msg_token": "fix the WINDOWS OS checking"} {"diff": " public class AMQPConsumer implements Runnable { \n LOG . info ( msg ) ; \n server . getActivityWriter ( ) . write ( new Activity ( msg , AMQPConsumer . class ) ) ; \n } catch ( IOException e ) { \n - LOG . error ( STRING0 + queueConfig + STRING1 , e ) ; \n + String msg = STRING0 + queueConfig + STRING2 + e . getMessage ( ) + STRING3 ; \n + LOG . error ( msg , e ) ; \n + server . getActivityWriter ( ) . write ( new Activity ( msg , AMQPConsumer . class ) ) ; \n + \n disconnect ( ) ; \n } \n }", "msg_token": "write server activity if AMQP connections breaks"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class NonClasspathClassFinder extends PsiElementFinder { \n if ( scope . contains ( classRoot ) ) { \n final VirtualFile dir = classRoot . findFileByRelativePath ( qname . replace ( STRING0 , STRING1 ) ) ; \n if ( dir != null && dir . isDirectory ( ) ) { \n - final PsiDirectory psiDirectory = psiManager . findDirectory ( dir ) ; \n + final PsiDirectory psiDirectory = ApplicationManager . getApplication ( ) . runReadAction ( new Computable < PsiDirectory > ( ) { \n + public PsiDirectory compute ( ) { \n + return psiManager . findDirectory ( dir ) ; \n + } \n + } ) ; \n assert psiDirectory != null ; \n if ( ! consumer . process ( psiDirectory ) ) { \n return false ;", "msg_token": "a better read action fix"} {"diff": " public class LwjglRenderer implements Renderer { \n case ThreeDimensional : \n case CubeMap : SINGLE \n glTexParameteri ( target , GL_TEXTURE_WRAP_R , convertWrapMode ( tex . getWrap ( WrapAxis . R ) ) ) ; \n + SINGLE \n case TwoDimensional : \n case TwoDimensionalArray : \n glTexParameteri ( target , GL_TEXTURE_WRAP_T , convertWrapMode ( tex . getWrap ( WrapAxis . T ) ) ) ;", "msg_token": "Added a comment setupTextureParams in LwjglRenderer about the switch with missing breaks"} {"diff": " public abstract class ExtendableListView extends AbsListView { \n } \n \n mDataChanged = true ; \n - mItemCount = adapter != null ? adapter . getCount ( ) : NUMBER0 ; \n + mItemCount = mAdapter != null ? mAdapter . getCount ( ) : NUMBER0 ; \n \n if ( adapter != null ) { \n adapter . registerDataSetObserver ( mObserver ) ;", "msg_token": "Fixed setAdapter bug"} {"diff": " public class UkrainianMyspellTagger implements Tagger { \n if ( wordsToPos == null ) { \n wordsToPos = new HashMap < String , String [ ] > ( ) ; \n File resourceFile = JLanguageTool . getAbsoluteFile ( RESOURCE_FILENAME ) ; \n - System . err . println ( STRING0 + resourceFile ) ; \n + SINGLE \n \n BufferedReader input = new BufferedReader ( new InputStreamReader ( new FileInputStream ( resourceFile ) , Charset . forName ( STRING1 ) ) ) ; \n \n public class UkrainianMyspellTagger implements Tagger { \n wordsToPos . put ( wrd [ NUMBER0 ] , posTags . toArray ( new String [ NUMBER0 ] ) ) ; \n } \n } \n - System . err . println ( STRING2 + wordsToPos . size ( ) ) ; \n + SINGLE \n } \n \n for ( Iterator < String > iter = sentenceTokens . iterator ( ) ; iter . hasNext ( ) ; ) {", "msg_token": "comment out printing to STDERR"} {"diff": " public class SharedBlockingCallback \n { \n while ( _blocker . _state != IDLE ) \n { \n - if ( idle > NUMBER0 ) \n + if ( idle > NUMBER0 && ( idle < Long . MAX_VALUE / NUMBER1 ) ) \n { \n SINGLE \n if ( ! _idle . await ( idle * NUMBER1 , TimeUnit . MILLISECONDS ) ) \n public class SharedBlockingCallback \n { \n while ( _state == null ) \n { \n - if ( idle > NUMBER0 ) \n + if ( idle > NUMBER0 && ( idle < Long . MAX_VALUE / NUMBER1 ) ) \n { \n SINGLE \n if ( ! _complete . await ( idle + idle / NUMBER1 , TimeUnit . MILLISECONDS ) ) \n public class SharedBlockingCallback \n } \n } \n \n - private class BlockerTimeoutException extends TimeoutException \n + private static class BlockerTimeoutException extends TimeoutException \n { \n } \n }", "msg_token": "SharedBlockingCallback does not handle connector max idle time of Long MAX_VALUE BlockerTimeoutException not serializable"} {"diff": " public class AccountUtils \n \n return protocolProviderFactory ; \n } \n + \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static Collection < ProtocolProviderService > getRegisteredProviders ( ) \n + { \n + List < ProtocolProviderService > registeredProviders \n + = new LinkedList < ProtocolProviderService > ( ) ; \n + \n + for ( ProtocolProviderFactory providerFactory : UtilActivator \n + . getProtocolProviderFactories ( ) . values ( ) ) \n + { \n + ServiceReference serRef ; \n + ProtocolProviderService protocolProvider ; \n + \n + for ( AccountID accountID : providerFactory . getRegisteredAccounts ( ) ) \n + { \n + serRef = providerFactory . getProviderForAccount ( accountID ) ; \n + \n + protocolProvider \n + = ( ProtocolProviderService ) UtilActivator . bundleContext \n + . getService ( serRef ) ; \n + \n + registeredProviders . add ( protocolProvider ) ; \n + } \n + } \n + return registeredProviders ; \n + } \n }", "msg_token": "Adds a getRegisteredProviders method in the AccountUtils"} {"diff": " public class PackageSetChooserCombo extends ComboboxWithBrowseButton { \n \n public PackageSetChooserCombo ( final Project project , String preselect ) { \n final JComboBox combo = getComboBox ( ) ; \n + combo . setBorder ( null ) ; \n myProject = project ; \n addActionListener ( new ActionListener ( ) { \n public void actionPerformed ( ActionEvent e ) {", "msg_token": "remove useless border"} {"diff": " extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , I , IPK , T658 , \n SINGLE \n switch ( getDialect ( ) ) { \n case SQLITE : \n + case INGRES : SINGLE \n log . info ( STRING0 , STRING1 ) ; \n break ;", "msg_token": "Circumvent funny internal errors in INGRES when using ALL"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class XPathLanguage extends Language { \n } \n \n public boolean canFindUsagesFor ( @ notnull PsiElement psiElement ) { \n - return psiElement instanceof XPathFunction ; \n + return psiElement instanceof XPathFunction || psiElement instanceof XPathVariable ; \n } \n \n @ nullable \n public final class XPathLanguage extends Language { \n \n @ notnull \n public String getType ( @ notnull PsiElement element ) { \n - return element instanceof XPathFunction ? STRING0 : STRING1 ; \n + if ( element instanceof XPathFunction ) { \n + return STRING0 ; \n + } else if ( element instanceof XPathVariable ) { \n + return STRING2 ; \n + } else { \n + return STRING1 ; \n + } \n } \n \n @ notnull", "msg_token": "Refactor Rename dialog calls it unknown"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderActivityLauncher { \n SINGLE \n ReaderSearchTable . addOrUpdateQueryString ( query ) ; \n \n - SINGLE \n - ReaderPostTable . deletePostsWithTag ( ReaderSearchService . getTagForSearchQuery ( query ) ) ; \n - \n SINGLE \n SINGLE", "msg_token": "No longer removing previous search results"} {"diff": " public class ActionMenuPresenter extends BaseMenuPresenter \n @ override \n public void onDismiss ( ) { \n super . onDismiss ( ) ; \n - mMenu . close ( ) ; \n + if ( mMenu != null ) { \n + mMenu . close ( ) ; \n + } \n mOverflowPopup = null ; \n } \n }", "msg_token": "Fix NPE in OverflowPopup dismiss"} {"diff": " public final class ProcessEs6Modules extends AbstractPostOrderCallback { \n static final DiagnosticType USELESS_USE_STRICT_DIRECTIVE = \n DiagnosticType . warning ( \n STRING0 , \n - STRING1 ) ; \n + STRING2 ) ; \n \n static final DiagnosticType NAMESPACE_IMPORT_CANNOT_USE_STAR = \n DiagnosticType . error (", "msg_token": "Rewrite misleading error message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n @ eactivity ( R . layout . my_activity ) \n public class MyActivity extends Activity { \n public class MyActivity extends Activity { \n @ systemservice \n WindowManager windowManager ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public void onBackPressed ( ) { \n - Toast . makeText ( this , STRING0 , Toast . LENGTH_SHORT ) . show ( ) ; \n - } \n - \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ;", "msg_token": "Remove Eclair back press example"} {"diff": " public class EditSession { \n pos = pos . subtract ( NUMBER0 , height , NUMBER0 ) ; \n } \n \n - if ( pos . getBlockY ( ) - height - NUMBER1 < NUMBER0 ) { \n + SINGLE \n + if ( height < NUMBER0 && pos . getBlockY ( ) - height - NUMBER1 < NUMBER0 ) { \n height = pos . getBlockY ( ) + NUMBER1 ; \n } else if ( pos . getBlockY ( ) + height - NUMBER1 > NUMBER2 ) { \n height = NUMBER2 - pos . getBlockY ( ) + NUMBER1 ;", "msg_token": "Fix hcyl height checks"} {"diff": " public class TrustManagerService extends SystemService { \n private void removeListener ( ITrustListener listener ) { \n for ( int i = NUMBER0 ; i < mTrustListeners . size ( ) ; i ++ ) { \n if ( mTrustListeners . get ( i ) . asBinder ( ) == listener . asBinder ( ) ) { \n - mTrustListeners . get ( i ) ; \n + mTrustListeners . remove ( i ) ; \n return ; \n } \n }", "msg_token": "Fix removeListener in TrustManagerService"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class CcToolchainSuiteRule implements RuleDefinition {", "msg_token": "Fix a typo"} {"diff": " public class JSONObject { \n } \n \n \n - public JSONObject setJSONObject ( String key , String value ) { \n + public JSONObject setJSONObject ( String key , JSONObject value ) { \n return put ( key , value ) ; \n } \n \n \n - public JSONObject setJSONArray ( String key , String value ) { \n + public JSONObject setJSONArray ( String key , JSONArray value ) { \n return put ( key , value ) ; \n }", "msg_token": "fixing setJSONObject setJSONArray"} {"diff": " import NAMESPACE ; \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 public class SquidbJacksonSupport { \n @ suppresswarnings ( STRING0 ) \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static < T > T getObjectValue ( AbstractModel model , StringProperty property , JavaType type ) { \n if ( ! model . hasTransitory ( property . getName ( ) ) ) { \n public class SquidbJacksonSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public static boolean setObjectProperty ( AbstractModel model , StringProperty property , Object data ) { \n try {", "msg_token": "Fix weird javadoc issues that were causing compile errors"} {"diff": " public class SipRegistrarConnection \n unregister ( false ) ; \n return ; \n } \n - \n + \n + SINGLE \n + SINGLE \n + updateRegisterSequenceNumber ( retryTran ) ; \n + \n retryTran . sendRequest ( ) ; \n return ; \n } \n public class SipRegistrarConnection \n return className + STRING0 + sipProvider . getOurDisplayName ( ) \n + STRING1 + sipProvider . getOurSipAddress ( ) + STRING2 ; \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 + private void updateRegisterSequenceNumber ( ClientTransaction lastClientTran ) \n + { \n + Request req = lastClientTran . getRequest ( ) ; \n + \n + CSeqHeader cSeqHeader = ( CSeqHeader ) req . getHeader ( CSeqHeader . NAME ) ; \n + long sequenceNumber = cSeqHeader . getSeqNumber ( ) ; \n + \n + SINGLE \n + SINGLE \n + this . nextCSeqValue = sequenceNumber + NUMBER0 ; \n + } \n }", "msg_token": "Fix CSeq numbering in REGISTERs"} {"diff": " public class EditAccountActivity extends XmppActivity implements OnAccountUpdate \n if ( avatar != null ) { \n intent = new Intent ( getApplicationContext ( ) , \n StartConversationActivity . class ) ; \n - intent . putExtra ( STRING0 , true ) ; \n + if ( xmppConnectionService != null && xmppConnectionService . getAccounts ( ) . size ( ) == NUMBER0 ) { \n + intent . putExtra ( STRING0 , true ) ; \n + } \n } else { \n intent = new Intent ( getApplicationContext ( ) , \n PublishProfilePictureActivity . class ) ; \n public class PublishProfilePictureActivity extends XmppActivity { \n if ( mInitialAccountSetup ) { \n Intent intent = new Intent ( getApplicationContext ( ) , \n StartConversationActivity . class ) ; \n - intent . putExtra ( STRING0 , true ) ; \n + if ( xmppConnectionService != null && xmppConnectionService . getAccounts ( ) . size ( ) == NUMBER0 ) { \n + intent . putExtra ( STRING0 , true ) ; \n + } \n startActivity ( intent ) ; \n } \n finish ( ) ;", "msg_token": "call StartConversationActivity in init mode only after adding the first account"} {"diff": " public class VcsDirtyScopeImpl extends VcsModifiableDirtyScope { \n } \n } \n if ( ! myDirtyDirectoriesRecursively . isEmpty ( ) ) { \n - result . append ( STRING0 ) ; \n + result . append ( STRING1 ) ; \n for ( THashSet < FilePath > dirsByRoot : myDirtyDirectoriesRecursively . values ( ) ) { \n for ( FilePath file : dirsByRoot ) { \n result . append ( file ) . append ( STRING2 ) ;", "msg_token": "remove unnecessary space"} {"diff": " public class MessagingController implements Runnable { \n \n if ( modeMismatch ( aDisplayMode , fDisplayClass ) ) { \n SINGLE \n - COMMENT \n - if ( K9 . DEBUG ) \n - Log . v ( K9 . LOG_TAG , STRING0 + localFolder . getName ( ) + \n - STRING1 + fDisplayClass + STRING2 + aDisplayMode ) ; \n - COMMENT \n return false ; \n } \n \n if ( modeMismatch ( aNotifyMode , fNotifyClass ) ) { \n SINGLE \n - COMMENT \n - if ( K9 . DEBUG ) \n - Log . v ( K9 . LOG_TAG , STRING0 + localFolder . getName ( ) + \n - STRING3 + fNotifyClass + STRING4 + aNotifyMode ) ; \n - COMMENT \n return false ; \n }", "msg_token": "Remove commented out code"} {"diff": " public class ActivitiExtension implements Extension { \n private static Logger logger = Logger . getLogger ( ActivitiExtension . class . getName ( ) ) ; \n \n private static ProcessEngine processEngine ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean skipProcessEngineSetup = false ; \n \n public static ProcessEngine getProcessEngine ( ) { \n return processEngine ; \n public class ActivitiExtension implements Extension { \n \n public void afterDeploymentValidation ( @ observes AfterDeploymentValidation event ) { \n try { \n + if ( skipProcessEngineSetup ) { \n + return ; \n + } \n logger . info ( STRING0 ) ; \n - \n - SINGLE \n - initializeProcessEngine ( ) ; \n \n - SINGLE \n - deployProcesses ( ) ; \n - \n + SINGLE \n + initializeProcessEngine ( ) ; \n + SINGLE \n + deployProcesses ( ) ; \n } catch ( Exception e ) { \n SINGLE \n SINGLE \n event . addDeploymentProblem ( e ) ; \n - return ; \n } \n }", "msg_token": "added important fix to be able to work with cdi in cycle test environment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public abstract class AbstractGenericBindingProvider implements BindingConfigReader , BindingProvider { \n \n + private static final Logger logger = LoggerFactory . getLogger ( AbstractGenericBindingProvider . class ) ; \n + \n private Set < BindingChangeListener > listeners = Collections . synchronizedSet ( new HashSet < BindingChangeListener > ( ) ) ; \n \n COMMENT \n public abstract class AbstractGenericBindingProvider implements BindingConfigRea \n \n private void notifyListeners ( Item item ) { \n for ( BindingChangeListener listener : listeners ) { \n - listener . bindingChanged ( this , item . getName ( ) ) ; \n + try { \n + listener . bindingChanged ( this , item . getName ( ) ) ; \n + } catch ( Exception e ) { \n + logger . error ( STRING0 + listener . getClass ( ) . getName ( ) + STRING1 , e ) ; \n + } \n } \n }", "msg_token": "Harden up Bindings Framework Code"} {"diff": " public class BlogsEntryLocalServiceImpl extends BlogsEntryLocalServiceBaseImpl { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public BlogsEntry moveEntryToTrash ( long userId , BlogsEntry entry ) \n throws PortalException , SystemException { \n \n public class BlogsEntryLocalServiceImpl extends BlogsEntryLocalServiceBaseImpl { \n return entry ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public BlogsEntry moveEntryToTrash ( long userId , long entryId ) \n throws PortalException , SystemException { \n \n public class BlogsEntryLocalServiceImpl extends BlogsEntryLocalServiceBaseImpl { \n return moveEntryToTrash ( userId , entry ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public void restoreEntryFromTrash ( long userId , long entryId ) \n throws PortalException , SystemException {", "msg_token": "Revert Partial javadoc for BlogsEntryLocalServiceImpl"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public final class DefaultIntro2 extends AppIntro2 { \n } \n \n @ override \n + public void onSkipPressed ( Fragment currentFragment ) { \n + super . onSkipPressed ( currentFragment ) ; \n + loadMainActivity ( ) ; \n + Toast . makeText ( getApplicationContext ( ) , getString ( R . string . skip ) , Toast . LENGTH_SHORT ) . show ( ) ; \n + } \n + \n + @ override \n public void onDonePressed ( Fragment currentFragment ) { \n super . onDonePressed ( currentFragment ) ;", "msg_token": "Skip button action for DefaultIntro2"} {"diff": " public class AsyncContextImpl implements AsyncContext { \n implements PrivilegedAction < ClassLoader > { \n \n public ClassLoader run ( ) { \n - Thread . currentThread ( ) . getContextClassLoader ( ) ; \n - return null ; \n + return Thread . currentThread ( ) . getContextClassLoader ( ) ; \n } \n }", "msg_token": "Fix copy paste error"} {"diff": " public class InMemoryPaginatedDataSource < T extends Cacheable > extends InMemoryDa \n paginatedCollection . setOffset ( offset ) ; \n paginatedCollection . setLimit ( limit ) ; \n paginatedCollection . setHasMore ( hasMore ) ; \n + updateLastItemsUpdateTime ( ) ; \n return paginatedCollection ; \n }", "msg_token": "Fix bug related with the in memory paginated data source and the ttl policy"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public final class WebViewFactory { \n - public static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ; \n + private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_OFF = STRING0 ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_ON = STRING1 ; \n \n SINGLE \n SINGLE \n - public static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ? \n + private static final String WEBVIEW_EXPERIMENTAL_PROPERTY = DEFAULT_TO_EXPERIMENTAL_WEBVIEW ? \n EXPERIMENTAL_PROPERTY_DEFAULT_ON : EXPERIMENTAL_PROPERTY_DEFAULT_OFF ; \n \n private static final String FORCE_PROVIDER_PROPERTY = STRING2 ; \n public final class ProcessTracker { \n mRuntime = runtime ; \n } \n } \n - String webview = SystemProperties . getBoolean ( \n - WebViewFactory . WEBVIEW_EXPERIMENTAL_PROPERTY , false ) ? STRING3 : STRING4 ; \n + String webview = WebViewFactory . useExperimentalWebView ( ) ? STRING3 : STRING4 ; \n if ( ! Objects . equals ( webview , mWebView ) ) { \n changed = true ; \n if ( update ) {", "msg_token": "Make WebViewProvider constants private"} {"diff": " public class PushSynInfo extends SynInfo \n private int associatedStreamId ; \n \n public PushSynInfo ( int associatedStreamId , PushInfo pushInfo ) { \n - super ( pushInfo . getHeaders ( ) , pushInfo . isClose ( ) ) ; \n + super ( pushInfo . getTimeout ( ) , pushInfo . getUnit ( ) , pushInfo . getHeaders ( ) , pushInfo . isClose ( ) , ( byte ) NUMBER0 ) ; \n this . associatedStreamId = associatedStreamId ; \n } \n \n public class HttpTransportOverSPDY implements HttpTransport \n Fields pushHeaders = createPushHeaders ( scheme , host , pushResource ) ; \n final Fields pushRequestHeaders = createRequestHeaders ( scheme , host , uri , pushResource ) ; \n \n - SINGLE \n - stream . push ( new PushInfo ( NUMBER0 , TimeUnit . MILLISECONDS , pushHeaders , false ) , new Promise . Adapter < Stream > ( ) \n + stream . push ( new PushInfo ( pushHeaders , false ) , \n + new Promise . Adapter < Stream > ( ) \n { \n @ override \n public void succeeded ( Stream pushStream )", "msg_token": "fix constructor for PushSynInfo ignores timeout remove timeout for creating push streams in HttpTransportOverSPDY"} {"diff": " public class TextureManager { \n internalformat = GLES11Ext . GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD ; \n break ; \n } \n - return addTexture ( buffer , null , width , height , textureType , null , false , false , isExistingTexture , wrapType , filterType , CompressionType . PVRTC , internalformat ) ; \n + return addTexture ( buffer , null , width , height , textureType , null , false , false , isExistingTexture , wrapType , filterType , CompressionType . ATC , internalformat ) ; \n } \n \n public TextureInfo addDxt1Texture ( ByteBuffer buffer , int width , int height , TextureType textureType , Dxt1Format format ) {", "msg_token": "Fixed CompressionType in addAtcTexture"} {"diff": " public class MessageWindowMenuBar \n { \n pluginContainer . dispose ( ) ; \n helpMenu . dispose ( ) ; \n + optionsMenu . dispose ( ) ; \n } \n \n COMMENT \n public class ToolsMenu \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void dispose ( ) \n + { \n + GuiActivator . bundleContext . removeServiceListener ( this ) ; \n + \n + GuiActivator . getUIService ( ) . removePluginComponentListener ( this ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + removeAll ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n private class InitVideoBridgeMenuWorkerMacOSX", "msg_token": "Fixes a memory leak of the chat window which may also cause disappearing ot some plugins from the toolbar"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public final class XContentBuilder implements BytesStream , Releasable { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public XContentBuilder ( XContent xContent , OutputStream bos , String [ ] filters , boolean inclusive ) throws IOException { \n this . bos = bos ;", "msg_token": "Fixed typo in javadoc"} {"diff": " public class ZoomPanLayout extends ViewGroup implements \n } \n } \n calculateMinimumScaleToFit ( ) ; \n + constrainScrollToLimits ( ) ; \n } \n \n COMMENT \n public class ZoomPanLayout extends ViewGroup implements \n float recalculatedMinScale = Math . max ( minimumScaleX , minimumScaleY ) ; \n if ( recalculatedMinScale != mEffectiveMinScale ) { \n mEffectiveMinScale = recalculatedMinScale ; \n - setScale ( mScale ) ; \n + if ( mScale < mEffectiveMinScale ) { \n + setScale ( mEffectiveMinScale ) ; \n + } \n } \n } \n }", "msg_token": "fixing incorrectly computed scroll position during minimum scale layout changes"} {"diff": " public abstract class AbstractStream < K > { \n protected final String name ; \n protected final Set < String > sourceNodes ; \n \n + public AbstractStream ( AbstractStream < K > stream ) { \n + this . topology = stream . topology ; \n + this . name = stream . name ; \n + this . sourceNodes = stream . sourceNodes ; \n + } \n + \n public AbstractStream ( KStreamBuilder topology , String name , Set < String > sourceNodes ) { \n if ( sourceNodes == null || sourceNodes . isEmpty ( ) ) { \n throw new IllegalArgumentException ( STRING0 ) ;", "msg_token": "add constructor to AbstractStream class"} {"diff": " public class StorageService implements IEndpointStateChangeSubscriber , StorageSe \n Token parsedBeginToken = getPartitioner ( ) . getTokenFactory ( ) . fromString ( beginToken ) ; \n Token parsedEndToken = getPartitioner ( ) . getTokenFactory ( ) . fromString ( endToken ) ; \n \n - logger_ . info ( STRING0 , \n + logger . info ( STRING0 , \n new Object [ ] { parsedBeginToken , parsedEndToken , tableName , columnFamilies } ) ; \n AntiEntropyService . RepairFuture future = forceTableRepair ( new Range < Token > ( parsedBeginToken , parsedEndToken ) , tableName , isSequential , columnFamilies ) ; \n if ( future == null ) \n public class StorageService implements IEndpointStateChangeSubscriber , StorageSe \n } \n catch ( Exception e ) \n { \n - logger_ . error ( STRING1 + future . session . getName ( ) + STRING2 , e ) ; \n + logger . error ( STRING1 + future . session . getName ( ) + STRING2 , e ) ; \n } \n }", "msg_token": "Fix underscode after merge"} {"diff": " public class ASTGenerator { \n \n log ( getNodeAsString ( decl ) ) ; \n \n + COMMENT \n SINGLE \n \n ASTNode nearestNode = findClosestNode ( lineNumber , \n public class ASTGenerator { \n log ( STRING0 + cmem ) ; \n } else \n log ( STRING1 ) ; \n + COMMENT \n } \n }", "msg_token": "Removed unnecessary stuff"} {"diff": " public abstract class AbstractLongRunningOperation < T extends AbstractLongRunning \n } \n \n public T withCancellationToken ( CancellationToken cancellationToken ) { \n - operationParamsBuilder . setCancellationToken ( Preconditions . checkNotNull ( cancellationToken ) ) ; \n + operationParamsBuilder . setCancellationToken ( cancellationToken ) ; \n return getThis ( ) ; \n } \n }", "msg_token": "Allow to null out cancellation token"} {"diff": " public class UrlShortener { \n String shortUrl = null ; \n try { \n shortUrl = ( String ) new ShortenUrlTask ( ) . execute ( longUrl ) . get ( ) ; \n - } catch ( InterruptedException e ) { \n - e . printStackTrace ( ) ; \n - } catch ( ExecutionException e ) { \n + } catch ( InterruptedException | ExecutionException e ) { \n e . printStackTrace ( ) ; \n } \n return shortUrl ; \n public class UrlShortener { \n String longUrl = null ; \n try { \n longUrl = ( String ) new LengthenShortUrlTask ( ) . execute ( shortUrl ) . get ( ) ; \n - } catch ( InterruptedException e ) { \n - e . printStackTrace ( ) ; \n - } catch ( ExecutionException e ) { \n + } catch ( InterruptedException | ExecutionException e ) { \n e . printStackTrace ( ) ; \n } \n return longUrl ;", "msg_token": "Collapsed catch blocks"} {"diff": " class RelationshipTypeHolder \n tx . success ( ) ; \n tx . finish ( ) ; \n success = true ; \n - System . out . println ( STRING0 + name ) ; \n } \n finally \n {", "msg_token": "Removed system out"} {"diff": " public class StdLibTestToJSTest extends StdLibTestBase { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n + STRING4 , \n STRING5 ) ; \n } \n }", "msg_token": "Add platform independent part of Range tests to JS stdlib test run"} {"diff": " public abstract class ColumnSubselection implements Comparable < ColumnSubselectio \n Element eltSelection = ( Element ) subSel ; \n column . cellPathSerializer ( ) . serialize ( eltSelection . element , out ) ; \n break ; \n + default : \n + throw new AssertionError ( ) ; \n } \n - throw new AssertionError ( ) ; \n } \n \n public ColumnSubselection deserialize ( DataInputPlus in , int version , CFMetaData metadata ) throws IOException \n public abstract class CollectionType < T > extends AbstractType < T > \n public void validateCellValue ( ByteBuffer cellValue ) throws MarshalException \n { \n if ( isMultiCell ( ) ) \n - valueComparator ( ) . validate ( cellValue ) ; \n + valueComparator ( ) . validateCellValue ( cellValue ) ; \n else \n super . validateCellValue ( cellValue ) ; \n }", "msg_token": "Fix bug in counter mutation serialization"} {"diff": " public class WebView extends AbsoluteLayout \n public void onVisibilityChanged ( boolean visible ) { \n if ( visible ) { \n switchOutDrawHistory ( ) ; \n + SINGLE \n + mZoomButtonsController . getZoomControls ( ) . setVisibility ( \n + View . VISIBLE ) ; \n updateZoomButtonsEnabled ( ) ; \n } \n } \n public class WebView extends AbsoluteLayout \n SINGLE \n mZoomButtonsController . getZoomControls ( ) . setVisibility ( View . GONE ) ; \n } else { \n - SINGLE \n - mZoomButtonsController . getZoomControls ( ) \n - . setVisibility ( View . VISIBLE ) ; \n SINGLE \n SINGLE \n mZoomButtonsController . setZoomInEnabled ( canZoomIn ) ; \n public class WebView extends AbsoluteLayout \n SINGLE \n SINGLE \n clearTextEntry ( ) ; \n + SINGLE \n + if ( getSettings ( ) . getBuiltInZoomControls ( ) ) { \n + updateZoomButtonsEnabled ( ) ; \n + } \n } \n SINGLE \n SINGLE", "msg_token": "Update the zoom buttons after moving to a new page"} {"diff": " public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs \n public void onCacheWordLocked ( ) { \n if ( mDoLock ) { \n Log . d ( ImApp . LOG_TAG , STRING0 ) ; \n - finish ( ) ; \n \n } else { \n showLockScreen ( ) ; \n } \n + \n + finish ( ) ; \n } \n \n @ override", "msg_token": "moved finish back to proper place for launching lock screen"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n \n private boolean canAddToLastInputMethod ( InputMethodSubtype subtype ) { \n if ( subtype == null ) return true ; \n - return subtype . containsExtraValueKey ( SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME ) ; \n + return ! subtype . containsExtraValueKey ( SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME ) ; \n } \n \n private void saveCurrentInputMethodAndSubtypeToHistory ( ) {", "msg_token": "Fix a bug in canAddToLastInputMethod"} {"diff": " public class RecordingPageCacheMonitor implements PageCacheMonitor \n return trapLatch ; \n } \n \n - private synchronized void trip ( Event event ) \n + private void trip ( Event event ) \n { \n + Matcher < ? extends Event > theTrap ; \n + CountDownLatch theTrapLatch ; \n \n - if ( trap != null && trap . matches ( event ) ) \n + SINGLE \n + SINGLE \n + synchronized ( this ) \n + { \n + theTrap = trap ; \n + theTrapLatch = trapLatch ; \n + } \n + \n + if ( theTrap != null && theTrap . matches ( event ) ) \n { \n try \n { \n - trapLatch . await ( ) ; \n + theTrapLatch . await ( ) ; \n } \n catch ( InterruptedException e ) \n {", "msg_token": "Fix a potential deadlock in OutOfDiskSpaceTest"} {"diff": " public class DefaultContextLoadTimeWeaver implements LoadTimeWeaver , BeanClassLo \n private LoadTimeWeaver loadTimeWeaver ; \n \n \n + public DefaultContextLoadTimeWeaver ( ) { \n + } \n + \n public DefaultContextLoadTimeWeaver ( ClassLoader beanClassLoader ) { \n setBeanClassLoader ( beanClassLoader ) ; \n }", "msg_token": "Preserve DefaultContextLoadTimeWeaver no arg ctor"} {"diff": " class DetailsPanel extends JPanel implements ListSelectionListener { \n \n VcsFullCommitDetails commitData = tableModel . getFullDetails ( row ) ; \n commitPanel . setCommit ( commitData ) ; \n - if ( ! ( commitData instanceof LoadingDetails ) ) { \n + if ( commitData instanceof LoadingDetails ) { \n + myLoadingPanel . startLoading ( ) ; \n + } else { \n newCommitDetails . add ( commitData ) ; \n } \n } \n class DetailsPanel extends JPanel implements ListSelectionListener { \n public void setCommit ( @ notnull VcsFullCommitDetails commitData ) { \n if ( ! Comparing . equal ( myCommit , commitData ) ) { \n if ( commitData instanceof LoadingDetails ) { \n - myLoadingPanel . startLoading ( ) ; \n myDataPanel . setData ( null ) ; \n myReferencesPanel . setReferences ( Collections . emptyList ( ) ) ; \n updateBorder ( null ) ;", "msg_token": "vcs log move startLoading out of CommitPanel"} {"diff": " public class FeedMedia extends FeedFile implements Playable { \n @ override \n public InputStream reopenImageInputStream ( InputStream input ) { \n if ( input instanceof FileInputStream ) { \n - return item . getImage ( ) . reopenImageInputStream ( input ) ; \n + if ( item . hasItemImageDownloaded ( ) ) { \n + return item . getImage ( ) . reopenImageInputStream ( input ) ; \n + } else { \n + return item . getFeed ( ) . getImage ( ) . reopenImageInputStream ( input ) ; \n + } \n } else { \n return new Playable . DefaultPlayableImageLoader ( this ) \n . reopenImageInputStream ( input ) ;", "msg_token": "Fixed potential image loading issue of FeedMedia"} {"diff": " public class SessionsResource extends RestResource { \n ( ( DefaultSecurityManager ) SecurityUtils . getSecurityManager ( ) ) . getSubjectDAO ( ) . save ( subject ) ; \n \n } catch ( AuthenticationException e ) { \n - LOG . warn ( STRING0 + createRequest . username ( ) , e ) ; \n + LOG . info ( STRING1 , createRequest . username ( ) ) ; \n } catch ( UnknownSessionException e ) { \n subject . logout ( ) ; \n }", "msg_token": "Make log message for invalid credentials less verbose"} {"diff": " public class ComplexCommand extends DefaultCommand { \n out . println ( STRING0 + option2 ) ; \n out . println ( STRING1 + arg1 ) ; \n out . println ( STRING2 + arg2 ) ; \n - if ( executionContext . commandLine ( ) . getAllArguments ( ) . size ( ) > NUMBER0 ) { \n - out . println ( STRING3 + executionContext . commandLine ( ) . getAllArguments ( ) ) ; \n + if ( executionContext . commandLine ( ) . allArguments ( ) . size ( ) > NUMBER0 ) { \n + out . println ( STRING3 + executionContext . commandLine ( ) . allArguments ( ) ) ; \n } \n } \n }", "msg_token": "Fix method called after upstream refactoring"} {"diff": " public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PendingIntent implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix documentation of requestCode parameter"} {"diff": " public class GroovyMain { \n StackTraceElement [ ] stackTrace = e . getStackTrace ( ) ; \n for ( int i = NUMBER0 ; i < stackTrace . length ; i ++ ) { \n StackTraceElement element = stackTrace [ i ] ; \n - if ( ! element . getFileName ( ) . endsWith ( STRING0 ) ) { \n + String fileName = element . getFileName ( ) ; \n + if ( fileName != null && ! fileName . endsWith ( STRING0 ) ) { \n System . err . println ( STRING1 + element ) ; \n } \n }", "msg_token": "avoid NPE when a stack element has no file name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n @ config ( emulateSdk = NUMBER0 ) \n @ runwith ( RobolectricTestRunner . class )", "msg_token": "Qualified Utils static imports in UtilsTest"} {"diff": " public abstract class TransportNodesOperationAction < Request extends NodesOperati \n private void onFailure ( String nodeId , Throwable t ) { \n int idx = index . getAndIncrement ( ) ; \n if ( accumulateExceptions ( ) ) { \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING0 , t , nodeId ) ; \n + } \n responses . set ( idx , new FailedNodeException ( nodeId , STRING1 + nodeId + STRING2 , t ) ) ; \n } \n if ( counter . incrementAndGet ( ) == responses . length ( ) ) {", "msg_token": "add logging if failing to execute on a node"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n final class ReadBufferPool { \n super ( ) ; \n } \n \n - final ByteBuffer acquire ( ChannelBuffer src ) { \n - ByteBuffer dst = acquire ( src . readableBytes ( ) ) ; \n - src . getBytes ( src . readerIndex ( ) , dst ) ; \n - dst . rewind ( ) ; \n - return dst ; \n - } \n - \n final ByteBuffer acquire ( int size ) { \n final SoftReference < ByteBuffer > [ ] pool = this . pool ; \n for ( int i = NUMBER0 ; i < POOL_SIZE ; i ++ ) {", "msg_token": "Removed an unused method in ReadBufferPool"} {"diff": " import NAMESPACE ; \n public class RoomInfo { \n \n COMMENT \n + COMMENT \n + COMMENT \n + private String room ; \n + COMMENT \n COMMENT \n COMMENT \n private String description = STRING0 ; \n public class RoomInfo { \n \n RoomInfo ( DiscoverInfo info ) { \n super ( ) ; \n + this . room = info . getFrom ( ) ; \n SINGLE \n this . membersOnly = info . containsFeature ( STRING1 ) ; \n this . moderated = info . containsFeature ( STRING2 ) ; \n public class RoomInfo { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getRoom ( ) { \n + return room ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added JID of the room whose information was discovered"} {"diff": " public abstract class AbstractBlockChain { \n SINGLE \n SINGLE \n SINGLE \n - if ( walletHeight < chainHeight && walletHeight > - NUMBER0 ) { \n + if ( walletHeight < chainHeight && walletHeight > NUMBER1 ) { \n try { \n rollbackBlockStore ( walletHeight ) ; \n log . info ( STRING0 , walletHeight ) ; \n } catch ( BlockStoreException x ) { \n - log . warn ( STRING1 , x ) ; \n + log . warn ( STRING2 ) ; \n } \n } \n }", "msg_token": "Better warning messages for the block store rollback code"} {"diff": " class LiveVariablesAnalysis extends \n SINGLE \n lhs = lhs . getLastChild ( ) ; \n } \n - addToSetIfLocal ( lhs , kill ) ; \n - addToSetIfLocal ( lhs , gen ) ; \n + if ( NodeUtil . isName ( lhs ) ) { \n + addToSetIfLocal ( lhs , kill ) ; \n + addToSetIfLocal ( lhs , gen ) ; \n + } else { \n + computeGenKill ( lhs , gen , kill , conditional ) ; \n + } \n computeGenKill ( rhs , gen , kill , conditional ) ; \n } \n return ; \n public class LiveVariableAnalysisTest extends TestCase { \n assertNotLiveAfterX ( STRING0 , STRING1 ) ; \n } \n \n + public void testExpressionInForIn ( ) { \n + assertLiveBeforeX ( STRING2 , STRING3 ) ; \n + } \n + \n public void testArgumentsArray ( ) { \n SINGLE \n SINGLE", "msg_token": "Allow expressions on LHS of for in loops"} {"diff": " public final class NativeLibraryLoader { \n if ( isRequired ) { \n throw new UnsatisfiedLinkError ( \n STRING0 + name + STRING1 \n - + STRING2 + pathInJar + STRING1 ) ; \n + + STRING2 + pathInJar \n + + STRING3 + e . getMessage ( ) ) ; \n } else { \n logger . log ( Level . FINE , STRING4 + \n - STRING5 , \n - new Object [ ] { name , pathInJar } ) ; \n + STRING5 + \n + STRING6 , \n + new Object [ ] { name , pathInJar , e . getMessage ( ) } ) ; \n } \n }", "msg_token": "Don t gobble the exception message when loading via System loadLibrary"} {"diff": " public class ReaderPostService extends Service { \n action = UpdateAction . REQUEST_NEWER ; \n } \n \n + EventBus . getDefault ( ) . post ( new ReaderEvents . UpdatePostsStarted ( action ) ) ; \n + \n if ( intent . hasExtra ( ARG_TAG ) ) { \n ReaderTag tag = ( ReaderTag ) intent . getSerializableExtra ( ARG_TAG ) ; \n updatePostsWithTag ( tag , action ) ; \n public class ReaderPostService extends Service { \n stopSelf ( ) ; \n } \n } ) ; \n - EventBus . getDefault ( ) . post ( new ReaderEvents . UpdatePostsStarted ( action ) ) ; \n } \n \n void updatePostsInBlog ( long blogId , final UpdateAction action ) {", "msg_token": "Fixed handling of UpdatePostsStarted"} {"diff": " public class LibraryActivity extends TreeActivity < LibraryTree > implements MenuIt \n } \n } \n tryToDeleteBooks ( books ) ; \n + return true ; \n } \n case OptionsItemId . ExternalView : \n runOrInstallExternalView ( ) ;", "msg_token": "missing break in switch"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ThroughputCounter extends GlobalTrafficShapingHandler { \n return gauges ; \n } \n \n + @ override \n + public void channelConnected ( ChannelHandlerContext ctx , ChannelStateEvent e ) \n + throws Exception { \n + super . channelConnected ( ctx , e ) ; \n + SINGLE \n + ctx . sendUpstream ( e ) ; \n + } \n }", "msg_token": "Ensure event propagation in ThroughputCounter"} {"diff": " \n package NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class UpCommandTest { \n assertTrue ( cliOut [ NUMBER0 ] . contains ( STRING0 ) ) ; \n \n TestCliUtil . deleteTestLocalConfigAndData ( clientA ) ; \n + TestCliUtil . deleteTestLocalConfigAndData ( clientB ) ; \n } \n \n @ test", "msg_token": "Fix extraneous imports Add missing cleanup"} {"diff": " public class WarClassloadingDependencyProcessor implements DeploymentUnitProcess \n SINGLE \n \n if ( jsfVersion . equals ( JsfVersionMarker . JSF_1_2 ) ) { \n - ModuleDependency jsf = new ModuleDependency ( moduleLoader , JSF_1_2_IMPL , false , false , false ) ; \n + ModuleDependency jsf = new ModuleDependency ( moduleLoader , JSF_1_2_IMPL , false , false , true ) ; \n jsf . addImportFilter ( PathFilters . getMetaInfFilter ( ) , true ) ; \n moduleSpecification . addSystemDependency ( jsf ) ; \n } else { \n if ( ! jsfVersion . equals ( JsfVersionMarker . JSF_2_0 ) ) { \n logger . warn ( STRING0 + jsfVersion + STRING1 + JsfVersionMarker . JSF_2_0 + STRING2 ) ; \n } \n - ModuleDependency jsf = new ModuleDependency ( moduleLoader , JSF_IMPL , false , false , false ) ; \n + ModuleDependency jsf = new ModuleDependency ( moduleLoader , JSF_IMPL , false , false , true ) ; \n jsf . addImportFilter ( PathFilters . getMetaInfFilter ( ) , true ) ; \n moduleSpecification . addSystemDependency ( jsf ) ; \n }", "msg_token": "Add services import to jJSF impl module dependency"} {"diff": " public class AuthCheckFilter implements Filter { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n - \n - if ( url . contains ( STRING0 ) ) { \n - url = url . substring ( url . indexOf ( STRING0 ) ) ; \n - } \n \n if ( exclude . endsWith ( STRING1 ) ) { \n if ( url . startsWith ( exclude . substring ( NUMBER0 , exclude . length ( ) - NUMBER1 ) ) ) { \n public class AuthCheckFilterTest { \n \n assertTrue ( AuthCheckFilter . testURLPassesExclude ( STRING2 , STRING3 ) ) ; \n \n - SINGLE \n - assertFalse ( AuthCheckFilter . testURLPassesExclude ( STRING4 , STRING5 ) ) ; \n assertFalse ( AuthCheckFilter . testURLPassesExclude ( STRING6 , STRING5 ) ) ; \n } \n }", "msg_token": "Removed chopping by character in the URL to get MUC Plugin running"} {"diff": " public class ComponentContainer implements ContainerPopulator . Container { \n addSingleton ( this ) ; \n } \n \n + protected void setParent ( ComponentContainer parent ) { \n + this . parent = parent ; \n + } \n + \n public void execute ( ) { \n boolean threw = true ; \n try {", "msg_token": "add protected setParent method to ComponentContainer"} {"diff": " public class ChunkOptionsPopupPanel extends ThemedPopupPanel \n int firstSpaceIdx = extractedChunkHeader . indexOf ( STRING0 ) ; \n int firstCommaIdx = extractedChunkHeader . indexOf ( STRING1 ) ; \n \n + if ( firstCommaIdx == - NUMBER0 ) \n + firstCommaIdx = extractedChunkHeader . length ( ) ; \n + \n return firstCommaIdx <= firstSpaceIdx ? \n STRING2 : \n extractedChunkHeader . substring ( firstSpaceIdx + NUMBER0 , firstCommaIdx ) . trim ( ) ; \n public class ChunkOptionsPopupPanel extends ThemedPopupPanel \n String newLine = \n chunkHeaderBounds . first + \n chunkPreamble_ + \n - ( label . isEmpty ( ) ? STRING2 : STRING3 + label ) + \n + ( label . isEmpty ( ) ? STRING2 : STRING3 + label ) ; \n + \n + if ( ! chunkOptions_ . isEmpty ( ) ) \n + { \n + newLine += \n STRING4 + \n - StringUtil . collapse ( chunkOptions_ , STRING5 , STRING4 ) + \n + StringUtil . collapse ( chunkOptions_ , STRING5 , STRING4 ) ; \n + } \n + \n + newLine += \n chunkHeaderBounds . second + \n STRING6 ;", "msg_token": "handle chunk headers with no options"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n return NUMBER0 ; \n } \n enforceCrossUserPermission ( userHandle ) ; \n - enforceNotManagedProfile ( userHandle , STRING0 ) ; \n synchronized ( this ) { \n if ( who != null ) { \n ActiveAdmin admin = getActiveAdminUncheckedLocked ( who , userHandle ) ; \n public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n \n private void enforceNotManagedProfile ( int userHandle , String message ) { \n if ( isManagedProfile ( userHandle ) ) { \n - throw new SecurityException ( STRING1 + message + STRING2 ) ; \n + throw new SecurityException ( STRING1 + message + STRING3 ) ; \n } \n }", "msg_token": "Remove enforceManagedProfile for listing keyguard features"} {"diff": " public class Autoboxer extends ErrorReportingASTVisitor { \n private Expression box ( Expression expr ) { \n ITypeBinding wrapperBinding = Types . getWrapperType ( Types . getTypeBinding ( expr ) ) ; \n if ( wrapperBinding != null ) { \n - return boxWithType ( expr , wrapperBinding ) ; \n + return newBoxExpression ( expr , wrapperBinding ) ; \n } else { \n return NodeCopier . copySubtree ( ast , expr ) ; \n } \n } \n \n private Expression boxWithType ( Expression expr , ITypeBinding wrapperType ) { \n + if ( Types . isBoxedPrimitive ( wrapperType ) ) { \n + return newBoxExpression ( expr , wrapperType ) ; \n + } \n + return box ( expr ) ; \n + } \n + \n + private Expression newBoxExpression ( Expression expr , ITypeBinding wrapperType ) { \n ITypeBinding primitiveType = Types . getPrimitiveType ( wrapperType ) ; \n assert primitiveType != null ; \n IMethodBinding wrapperMethod = BindingUtil . findDeclaredMethod (", "msg_token": "Fixes the tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ReliableTopicBasicTest extends HazelcastTestSupport { \n } ) ; \n } \n \n - @ repeat ( NUMBER0 ) \n @ test \n public void publishMultiple ( ) throws InterruptedException { \n final ReliableMessageListenerMock listener = new ReliableMessageListenerMock ( ) ;", "msg_token": "removed Repeat leftover"} {"diff": " public class BuckConfig { \n COMMENT \n COMMENT \n public String getPythonInterpreter ( ) { \n - Preconditions . checkState ( environment . containsKey ( STRING0 ) , STRING1 ) ; \n Optional < String > configPath = getValue ( STRING2 , STRING3 ) ; \n if ( configPath . isPresent ( ) ) { \n SINGLE", "msg_token": "Removing unnecessary Precondition check"} {"diff": " public class SimpleDrawerActivity extends ActionBarActivity { \n \n headerResult = new AccountHeader ( ) \n . withActivity ( this ) \n + SINGLE \n . withHeaderBackground ( R . drawable . header ) \n . addProfiles ( \n profile ,", "msg_token": "add comment how to use the compactStyle"} {"diff": " public class CarBenchmark \n fuelFigures . speed ( NUMBER0 ) ; \n \n final Car . PerformanceFigures performanceFigures = state . car . performanceFigures ( ) ; \n - performanceFigures . accelerationSize ( NUMBER1 ) ; \n + performanceFigures . accelerationCount ( NUMBER1 ) ; \n performanceFigures . octaneRating ( ( short ) NUMBER2 ) ; \n \n state . car . putMake ( AUDI , NUMBER3 , AUDI . length ) ;", "msg_token": "Updated CarBenchmark to use updated code generation pattern"} {"diff": " public final class HazelcastThreadGroup { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public void interrupt ( ) { \n - internalThreadGroup . interrupt ( ) ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void destroy ( ) { \n int numThreads = internalThreadGroup . activeCount ( ) ; \n public final class OutOfMemoryHandlerHelper { \n \n HazelcastInstanceImpl factory = ( HazelcastInstanceImpl ) hazelcastInstance ; \n try { \n - factory . node . getHazelcastThreadGroup ( ) . interrupt ( ) ; \n + factory . node . getHazelcastThreadGroup ( ) . destroy ( ) ; \n } catch ( Throwable ignored ) { \n EmptyStatement . ignore ( ignored ) ; \n }", "msg_token": "Removed the HazelcastThreadGroup interrupt and replaced it by"} {"diff": " public class ARSCDecoder { \n mPkg . addResSpec ( spec ) ; \n mType . addResSpec ( spec ) ; \n \n + if ( mConfig == null ) { \n + mConfig = mPkg . getOrCreateConfig ( new ResConfigFlags ( ) ) ; \n + } \n + \n ResValue value = new ResBoolValue ( false , null ) ; \n - ResResource res = new ResResource ( \n - mPkg . getOrCreateConfig ( new ResConfigFlags ( ) ) , spec , value ) ; \n + ResResource res = new ResResource ( mConfig , spec , value ) ; \n + \n mPkg . addResource ( res ) ; \n mConfig . addResource ( res ) ; \n spec . addResource ( res ) ;", "msg_token": "Fix null mConfig in addMissingResSpecs"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BaseAdapterHelper { \n return this ; \n } \n \n - COMMENT \n + COMMENT \n public BaseAdapterHelper setTypeface ( int viewId , Typeface typeface ) { \n TextView view = retrieveView ( viewId ) ; \n view . setTypeface ( typeface ) ; \n + view . setPaintFlags ( view . getPaintFlags ( ) | Paint . SUBPIXEL_TEXT_FLAG ) ; \n return this ; \n } \n \n - COMMENT \n + COMMENT \n public BaseAdapterHelper setTypeface ( Typeface typeface , int . . . viewIds ) { \n for ( int viewId : viewIds ) { \n TextView view = retrieveView ( viewId ) ; \n view . setTypeface ( typeface ) ; \n + view . setPaintFlags ( view . getPaintFlags ( ) | Paint . SUBPIXEL_TEXT_FLAG ) ; \n } \n return this ; \n }", "msg_token": "Enabled subpixel rendering when setting typefaces"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n mAreHeadersSticky = a . getBoolean ( attr , true ) ; \n } \n } \n + a . recycle ( ) ; \n \n ViewConfiguration vc = ViewConfiguration . get ( context ) ; \n mTouchSlop = vc . getScaledTouchSlop ( ) ;", "msg_token": "Recycle style attributes typed array"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n \n boolean killed = false ; \n synchronized ( mPidsSelfLocked ) { \n - int [ ] types = new int [ pids . length ] ; \n int worstType = NUMBER0 ; \n for ( int i = NUMBER0 ; i < pids . length ; i ++ ) { \n ProcessRecord proc = mPidsSelfLocked . get ( pids [ i ] ) ; \n if ( proc != null ) { \n int type = proc . setAdj ; \n - types [ i ] = type ; \n if ( type > worstType ) { \n worstType = type ; \n }", "msg_token": "Avoid useless array allocation"} {"diff": " public class EncodingManagerTest \n assertTrue ( false ) ; \n } catch ( Exception ex ) \n { \n - assertEquals ( STRING0 , \n - ex . getMessage ( ) ) ; \n + assertTrue ( ex . getMessage ( ) , ex . getMessage ( ) . startsWith ( STRING1 ) ) ; \n } \n }", "msg_token": "fixing unit test"} {"diff": " public class Cache < K , V > { \n final K key ; \n final V value ; \n long writeTime ; \n - long accessTime ; \n + volatile long accessTime ; \n Entry < K , V > before ; \n Entry < K , V > after ; \n State state = State . NEW ;", "msg_token": "Enforce strict eviction semantics"} {"diff": " public class NewPostActivity extends BaseActivity { \n private static final String TAG = STRING0 ; \n private static final String REQUIRED = STRING1 ; \n \n + SINGLE \n private DatabaseReference mDatabase ; \n + SINGLE \n \n private EditText mTitleField ; \n private EditText mBodyField ; \n public class NewPostActivity extends BaseActivity { \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . activity_new_post ) ; \n \n + SINGLE \n mDatabase = FirebaseDatabase . getInstance ( ) . getReference ( ) ; \n + SINGLE \n \n mTitleField = ( EditText ) findViewById ( R . id . field_title ) ; \n mBodyField = ( EditText ) findViewById ( R . id . field_body ) ;", "msg_token": "Add region tags for DatabaseReference"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class ActivityThread { \n } \n } \n \n + private static class EventLoggingReporter implements EventLogger . Reporter { \n + @ override \n + public void report ( int code , Object . . . list ) { \n + EventLog . writeEvent ( code , list ) ; \n + } \n + } \n + \n public static void main ( String [ ] args ) { \n SamplingProfilerIntegration . start ( ) ; \n \n public final class ActivityThread { \n SINGLE \n CloseGuard . setEnabled ( false ) ; \n \n + SINGLE \n + EventLogger . setReporter ( new EventLoggingReporter ( ) ) ; \n + \n Security . addProvider ( new AndroidKeyStoreProvider ( ) ) ; \n \n Process . setArgV0 ( STRING0 ) ;", "msg_token": "Push event logging down into libcore EventLogger"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n final class SplashScreenImpl implements SplashScreenCore { \n \n @ override \n public void close ( ) { \n - SplashScreen splashScreen = SplashScreen . getSplashScreen ( ) ; \n + SwingUtilities . invokeLater ( new Runnable ( ) { \n \n - if ( splashScreen != null && splashScreen . isVisible ( ) ) { \n - splashScreen . close ( ) ; \n - } \n + @ override \n + public void run ( ) { \n + SplashScreen splashScreen = SplashScreen . getSplashScreen ( ) ; \n + \n + if ( splashScreen != null ) { \n + splashScreen . close ( ) ; \n + } \n + } \n + } ) ; \n } \n \n private void update ( SplashScreen splashScreen ) {", "msg_token": "Fix SplashScreen race condition on close"} {"diff": " public class DigestAuthTest extends AbstractBasicTest { \n root . addAppender ( new ConsoleAppender ( \n new PatternLayout ( PatternLayout . TTCC_CONVERSION_PATTERN ) ) ) ; \n \n - port1 = NUMBER0 ; \n + port1 = findFreePort ( ) ; \n Connector listener = new SelectChannelConnector ( ) ; \n \n listener . setHost ( STRING0 ) ;", "msg_token": "Fix hardcoded port value"} {"diff": " public class PrivacyManager { \n \n SINGLE \n mMethods . get ( cAccounts ) . add ( STRING0 ) ; \n - mMethods . get ( cAccounts ) . add ( STRING1 ) ; \n + mMethods . get ( cAccounts ) . add ( STRING2 ) ; \n \n SINGLE \n String [ ] addrs = new String [ ] { STRING3 , STRING4 , STRING5 } ;", "msg_token": "Fix method name"} {"diff": " public class LoggingEvents { \n public static final String EXTRA_N_BEST_CHOOSE_INDEX = STRING0 ; SINGLE \n \n public static final int TEXT_MODIFIED = NUMBER0 ; \n + public static final String EXTRA_TEXT_MODIFIED_LENGTH = STRING1 ; SINGLE \n + public static final String EXTRA_TEXT_MODIFIED_TYPE = STRING2 ; SINGLE \n + public static final int TEXT_MODIFIED_TYPE_CHOOSE_SUGGESTION = NUMBER1 ; \n + public static final int TEXT_MODIFIED_TYPE_TYPING_DELETION = NUMBER2 ; \n + public static final int TEXT_MODIFIED_TYPE_TYPING_INSERTION = NUMBER3 ; \n + public static final int TEXT_MODIFIED_TYPE_TYPING_INSERTION_PUNCTUATION = NUMBER4 ; \n \n public static final int INPUT_ENDED = NUMBER5 ;", "msg_token": "Add new LoggingEvents for more detailed text modification actions for voice input"} {"diff": " public final class Key extends Iced implements Comparable { \n @ override public final AutoBuffer write ( AutoBuffer bb ) { return bb . putA1 ( _kb ) ; } \n @ override public final AutoBuffer writeJSON ( AutoBuffer bb ) { \n String s = toString ( ) ; \n - try { s = URLEncoder . encode ( s , STRING0 ) ; } \n - catch ( UnsupportedEncodingException e ) { } \n return bb . putJSONStr ( s ) ; \n }", "msg_token": "Don t URLEncode autobuffer writeJSON"} {"diff": " public class OperationSetBasicInstantMessagingJabberImpl \n COMMENT \n COMMENT \n COMMENT \n - private static synchronized String nextThreadID ( ) { \n + public static synchronized String nextThreadID ( ) { \n return prefix + Long . toString ( id ++ ) ; \n }", "msg_token": "Changes the visibility modifier of the method that generates thread IDs for XMPP"} {"diff": " public abstract class ImmutableSortedSet < E > extends ImmutableSortedSetFauxveride \n COMMENT \n public static < E > ImmutableSortedSet < E > copyOfSorted ( SortedSet < E > sortedSet ) { \n Comparator < ? super E > comparator = SortedIterables . comparator ( sortedSet ) ; \n - E [ ] elements = ( E [ ] ) sortedSet . toArray ( ) ; \n + Object [ ] elements = sortedSet . toArray ( ) ; \n if ( elements . length == NUMBER0 ) { \n return emptySet ( comparator ) ; \n } else {", "msg_token": "Eliminate an unchecked cast from ImmutableSortedSet that previously generated unsuppressed warnings"} {"diff": " public class MetaClass { \n COMMENT \n COMMENT \n private static String [ ] decodeArray ( String encoded ) { \n + if ( encoded . length ( ) == NUMBER0 ) return new String [ ] { } ; \n char [ ] chars = encoded . trim ( ) . toCharArray ( ) ; \n \n SINGLE \n public class MetaClassTest { \n assertArrayEquals ( new Integer [ ] { NUMBER1 , NUMBER2 , NUMBER3 } , ints4 ) ; \n Integer [ ] ints5 = MetaClass . cast ( STRING0 , Integer [ ] . class ) ; \n assertArrayEquals ( new Integer [ ] { NUMBER1 , NUMBER2 , NUMBER3 } , ints5 ) ; \n + \n + Integer [ ] intsEmpty = MetaClass . cast ( STRING1 , Integer [ ] . class ) ; \n + assertArrayEquals ( new Integer [ ] { } , intsEmpty ) ; \n } \n \n private static enum Fruits {", "msg_token": "Beginning modularizing of code"} {"diff": " public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess , Pr \n XBreakpoint < ? > breakpoint = null ; \n if ( threadInfo . isStopOnBreakpoint ( ) ) { \n final PySourcePosition position = frames . get ( NUMBER0 ) . getPosition ( ) ; \n - \n breakpoint = myRegisteredBreakpoints . get ( position ) ; \n if ( breakpoint == null ) { \n - System . out . println ( STRING0 + position . getFile ( ) + STRING1 + position . getLine ( ) ) ; \n - System . out . println ( STRING2 ) ; \n - for ( PySourcePosition s : myRegisteredBreakpoints . keySet ( ) ) { \n - System . out . println ( s . getFile ( ) + STRING1 + s . getLine ( ) ) ; \n - } \n - \n myDebugger . removeTempBreakpoint ( position . getFile ( ) , position . getLine ( ) ) ; \n } \n }", "msg_token": "Removed debug prints"} {"diff": " public class XsltRefactoringSupport implements ApplicationComponent { \n final ActionManagerEx amgr = ActionManagerEx . getInstanceEx ( ) ; \n \n final AnAction action = amgr . getAction ( actionName ) ; \n - newAction . setHookedAction ( action ) ; \n + if ( action != null ) { \n + newAction . setHookedAction ( action ) ; \n \n - if ( full ) { \n - fullInstall ( action , newAction , amgr ) ; \n - } \n + if ( full ) { \n + fullInstall ( action , newAction , amgr ) ; \n + } \n \n - amgr . unregisterAction ( actionName ) ; \n + amgr . unregisterAction ( actionName ) ; \n + } \n amgr . registerAction ( actionName , newAction ) ; \n myActions . put ( actionName , newAction ) ; \n }", "msg_token": "correctly handling nall actions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n public class ItemviewActivity extends SherlockActivity { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class FeedItemlistFragment extends SherlockListFragment { \n @ override \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Moved FeedItemMenuHandler into the right package"} {"diff": " public class JavaGenerator implements CodeGenerator \n indent + STRING0 + \n indent + STRING1 + \n indent + STRING2 + \n - indent + STRING3 + \n indent + STRING4 + \n indent + STRING5 , \n parentMessageClassName , \n public class JavaGenerator implements CodeGenerator \n indent + STRING6 + \n indent + STRING7 + \n indent + STRING8 + \n - indent + STRING9 + \n + indent + STRING10 + \n indent + STRING11 + \n indent + STRING12 + \n indent + STRING13 , \n public class JavaGenerator implements CodeGenerator \n indent + STRING14 + \n indent + STRING15 + \n indent + STRING16 + \n - indent + STRING17 + \n indent + STRING18 + \n indent + STRING19 + \n indent + STRING20 ,", "msg_token": "Java Remove the need for blockLength field in group encoders"} {"diff": " public class EcobeeBinding extends AbstractActiveBinding < EcobeeBindingProvider > \n logger . error ( status . getMessage ( ) ) ; \n } \n \n + logger . error ( STRING0 ) ; \n + \n return ; SINGLE \n } \n \n + logger . debug ( STRING1 , response . getRevisionList ( ) . size ( ) ) ; \n + \n SINGLE \n \n Map < String , Revision > newRevisionMap = new HashMap < String , Revision > ( ) ; \n public class EcobeeBinding extends AbstractActiveBinding < EcobeeBindingProvider > \n try { \n final Thermostat thermostat = new Thermostat ( null ) ; \n \n + logger . debug ( STRING2 , property , newState ) ; \n + \n thermostat . setProperty ( property , newState ) ; \n \n logger . debug ( STRING3 , thermostat ) ;", "msg_token": "Added more debug"} {"diff": " public abstract class DefaultModuleResolutionFilter implements ModuleResolutionF \n merged . add ( moduleSpec1 ) ; \n } \n } else { \n - throw new UnsupportedOperationException ( ) ; \n + throw new UnsupportedOperationException ( String . format ( STRING0 , spec1 , spec2 ) ) ; \n } \n } \n \n public abstract class DefaultModuleResolutionFilter implements ModuleResolutionF \n merged . add ( spec2 ) ; \n } \n } else { \n - throw new UnsupportedOperationException ( ) ; \n - } \n + throw new UnsupportedOperationException ( String . format ( STRING0 , spec1 , spec2 ) ) ; \n + } \n } \n \n private void intersect ( ModuleNameSpec spec1 , DefaultModuleResolutionFilter spec2 , List < DefaultModuleResolutionFilter > merged ) { \n public abstract class DefaultModuleResolutionFilter implements ModuleResolutionF \n merged . add ( spec2 ) ; \n } \n } else { \n - throw new UnsupportedOperationException ( ) ; \n + throw new UnsupportedOperationException ( String . format ( STRING0 , spec1 , spec2 ) ) ; \n } \n } \n }", "msg_token": "Added some additional context to UnsupportedOperationException"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyTraitFieldsFileIndex \n DataExternalizer < Collection < TraitFieldDescriptor > > { \n \n public static final ID < Integer , Collection < TraitFieldDescriptor > > INDEX_ID = ID . create ( STRING0 ) ; \n - public static final InputFilter INPUT_FILTER = new InputFilter ( ) { \n + public static final InputFilter INPUT_FILTER = new DefaultFileTypeSpecificInputFilter ( JavaClassFileType . INSTANCE ) { \n @ override \n public boolean acceptInput ( @ notnull VirtualFile file ) { \n - return file . getName ( ) . endsWith ( STRING1 ) ; \n + return StringUtil . endsWith ( file . getNameSequence ( ) , STRING1 ) ; \n } \n } ;", "msg_token": "save some CPU cycles"} {"diff": " public abstract class GraphDatabaseSetting \n public static final String ANY = STRING0 ; \n \n SINGLE \n - public static final String SIZE = STRING1 ; \n + public static final String SIZE = STRING2 ; \n \n SINGLE \n - public static final String DURATION = STRING3 ; \n + public static final String DURATION = STRING4 ; \n \n public interface DefaultValue \n {", "msg_token": "Improved regexp for sizes and durations"} {"diff": " public class SourceWindow implements LastSourceDocClosedHandler , \n { \n SINGLE \n SINGLE \n + markReadyToClose ( ) ; \n WindowEx . get ( ) . close ( ) ; \n } \n \n public class SourceWindow implements LastSourceDocClosedHandler , \n \n private void closeSourceWindow ( ) \n { \n - \n ApplicationQuit . QuitContext quitContext = \n new ApplicationQuit . QuitContext ( ) \n {", "msg_token": "closing last tab doesn t close source window on Qt"} {"diff": " public class NotificationsDetailActivity extends AppCompatActivity implements \n getSupportActionBar ( ) . setTitle ( StringUtils . notNullStr ( savedInstanceState . getString ( ARG_TITLE ) ) ) ; \n } \n \n + SINGLE \n + if ( ! getIntent ( ) . getBooleanExtra ( NotificationsListFragment . NOTE_INSTANT_REPLY_EXTRA , false ) ) { \n + getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_HIDDEN ) ; \n + } \n } \n \n @ override", "msg_token": "Bring the code that hides the keyboard back since we re calling performClick programatically when needed"} {"diff": " public class WifiStateTracker extends NetworkStateTracker { \n break ; \n \n case EVENT_DEFERRED_RECONNECT : \n - String BSSID = msg . obj . toString ( ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + String BSSID = ( msg . obj != null ) ? msg . obj . toString ( ) : null ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix null pointer exception"} {"diff": " class ReaderBlogInfoView extends FrameLayout { \n new Handler ( ) . postDelayed ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - ReaderAnim . scaleIn ( layoutInner , ReaderAnim . Duration . MEDIUM ) ; \n + ReaderAnim . scaleIn ( layoutInner , ReaderAnim . Duration . SHORT ) ; \n } \n } , NUMBER0 ) ; \n }", "msg_token": "Decreased duration of blog preview animation"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZoneShrinkageCLITest { \n AdminClient adminClient = new AdminClient ( bsURL , new AdminClientConfig ( ) , new ClientConfig ( ) ) ; \n assertEquals ( NUMBER0 , adminClient . getAdminClientCluster ( ) . getZoneIds ( ) . size ( ) ) ; \n } \n + \n + @ after \n + public void shutdown ( ) { \n + for ( VoldemortServer vserver : vservers . values ( ) ) { \n + vserver . stop ( ) ; \n + } \n + for ( SocketStoreFactory ssf : socketStoreFactories . values ( ) ) { \n + ssf . close ( ) ; \n + } \n + } \n }", "msg_token": "Small addition to ZoneShrinkageCLITest to solve bind exception"} {"diff": " public class AtomicBroadcastMap < K , V > \n \n private synchronized void checkUpToDate ( ) \n { \n - while ( lastCommand != null ) \n + int tries = NUMBER0 ; \n + while ( lastCommand != null && tries > NUMBER1 ) \n { \n try \n { \n public class AtomicBroadcastMap < K , V > \n { \n e . printStackTrace ( ) ; \n } \n + tries -- ; \n } \n + \n + if ( tries == NUMBER1 ) \n + throw new IllegalStateException ( STRING0 ) ; \n } \n \n public interface MapCommand \n public class NetworkMock \n } \n } \n \n + SINGLE \n + Thread . yield ( ) ; \n + \n return messageDeliveries . size ( ) ; \n }", "msg_token": "Let main thread yield after a tick to allow executor threads to process"} {"diff": " class DefaultBlurController implements BlurController { \n int scaledWidth = roundSize ( nonRoundedScaledWidth ) ; \n int scaledHeight = roundSize ( nonRoundedScaledHeight ) ; \n \n - roundingHeightScaleFactor = ( float ) scaledHeight / nonRoundedScaledHeight ; \n - roundingWidthScaleFactor = ( float ) scaledWidth / nonRoundedScaledWidth ; \n + roundingHeightScaleFactor = ( float ) nonRoundedScaledHeight / scaledHeight ; \n + roundingWidthScaleFactor = ( float ) nonRoundedScaledWidth / scaledWidth ; \n \n internalBitmap = Bitmap . createBitmap ( scaledWidth , scaledHeight , blurAlgorithm . getSupportedBitmapConfig ( ) ) ; \n }", "msg_token": "Fix unblurred edges glitch"} {"diff": " public class SnakeTimer { \n \n public static void broadcast ( String message ) throws Exception { \n for ( Snake snake : SnakeTimer . getSnakes ( ) ) { \n - snake . sendMessage ( message ) ; \n - } \n + try { \n + snake . sendMessage ( message ) ; \n + } \n + catch ( Throwable ex ) { \n + SINGLE \n + } \n + } \n }", "msg_token": "Added simple error hangling to SnakeTimer broadcast"} {"diff": " public class PeerTest extends TestWithNetworkConnections { \n peerDisconnected . set ( null ) ; \n } \n } ) ; \n - final NetworkParameters params = TestNet3Params . testNet ( ) ; \n + final NetworkParameters params = TestNet3Params . get ( ) ; \n BitcoinSerializer serializer = new BitcoinSerializer ( params ) ; \n SINGLE \n ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ;", "msg_token": "Remove usage of deprecated method in PeerTest"} {"diff": " class SelectStatementPlanner { \n if ( querySpec . where ( ) . noMatch ( ) || ( querySpec . limit ( ) . isPresent ( ) && limits . finalLimit ( ) == NUMBER0 ) ) { \n return new NoopPlan ( context . jobId ( ) ) ; \n } \n - table . tableRelation ( ) . validateOrderBy ( querySpec . orderBy ( ) ) ; \n \n FetchPushDown fetchPushDown = new FetchPushDown ( querySpec , table . tableRelation ( ) ) ; \n QueriedDocTable subRelation = fetchPushDown . pushDown ( ) ; \n public class QueryAndFetchConsumer implements Consumer { \n List < Symbol > qsOutputs = querySpec . outputs ( ) ; \n List < Symbol > toCollect ; \n Optional < OrderBy > optOrderBy = querySpec . orderBy ( ) ; \n + table . tableRelation ( ) . validateOrderBy ( optOrderBy ) ; \n if ( optOrderBy . isPresent ( ) ) { \n toCollect = Lists2 . concatUnique ( qsOutputs , optOrderBy . get ( ) . orderBySymbols ( ) ) ; \n } else {", "msg_token": "Move order by validation to QueryAndFetchConsumer"} {"diff": " final class TargetRequest extends Request < Target > { \n String key ) { \n super ( picasso , uri , resourceId , null , bitmapOptions , transformations , skipCache , false , NUMBER0 , null , \n key ) ; \n - this . weakTarget = new WeakReference < Target > ( target , picasso . referenceQueue ) ; \n + this . weakTarget = new RequestWeakReference < Target > ( this , target , picasso . referenceQueue ) ; \n } \n \n @ override Target getTarget ( ) {", "msg_token": "Changed WeakReference to RequestWeakReference to avoid a Class Cast Exception"} {"diff": " public class OSGiIntegrationTestSupport extends CamelTestSupport { \n \n equinox ( ) , \n felix ( ) ) ; \n - \n + \n + SINGLE \n + SINGLE \n + \n return options ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( JUnit4TestRunner . class ) \n + @ ignore ( STRING0 ) \n public class AwsS3IntegrationTest extends OSGiIntegrationSpringTestSupport { \n \n @ endpointinject ( uri = STRING1 ) \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( JUnit4TestRunner . class ) \n + @ ignore ( STRING0 ) \n public class AwsS3Test extends OSGiIntegrationSpringTestSupport { \n \n @ endpointinject ( uri = STRING1 )", "msg_token": "Skipping test which dont work"} {"diff": " public class SearchDialog extends DialogWrapper implements ConfigurationCreator \n JPanel searchOptions = new JPanel ( ) ; \n searchOptions . setLayout ( new GridLayout ( getRowsCount ( ) , NUMBER0 , NUMBER1 , NUMBER1 ) ) ; \n searchOptions . setBorder ( IdeBorderFactory . createTitledBorder ( SSRBundle . message ( STRING0 ) , false , \n - true ) ) ; \n + true , true ) ) ; \n \n myScopeChooserCombo = new ScopeChooserCombo ( \n searchContext . getProject ( ) ,", "msg_token": "added possibility setting large and small font for titled borders and separators"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProcessBootstrap { \n + COMMENT \n + COMMENT \n + COMMENT \n public void run ( String mainClassName , String [ ] args ) { \n try { \n runNoExit ( mainClassName , args ) ; \n public class ProcessBootstrap { \n ClassLoader runtimeClassLoader = new MutableURLClassLoader ( antClassLoader , runtimeClasspath ) ; \n Thread . currentThread ( ) . setContextClassLoader ( runtimeClassLoader ) ; \n Class < ? > mainClass = runtimeClassLoader . loadClass ( mainClassName ) ; \n - Method mainMethod = mainClass . getMethod ( STRING0 , String [ ] . class ) ; \n - mainMethod . invoke ( null , new Object [ ] { args } ) ; \n + Object entryPoint = mainClass . newInstance ( ) ; \n + Method mainMethod = mainClass . getMethod ( STRING1 , String [ ] . class ) ; \n + mainMethod . invoke ( entryPoint , new Object [ ] { args } ) ; \n } \n }", "msg_token": "Changed ProcessBootstrap to assume the main class is a EntryPoint"} {"diff": " \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n - \n - import NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed test package to match directory it s in Eclipse marked error"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface PluginRequest { \n \n String getId ( ) ; \n \n + @ nullable \n String getVersion ( ) ; \n \n }", "msg_token": "Plugin request might not have a version"} {"diff": " public class DashboardWidget implements EmbeddedPersistable { \n DashboardWidget that = ( DashboardWidget ) o ; \n \n if ( cacheTime != that . cacheTime ) return false ; \n - if ( type != that . type ) return false ; \n + if ( ! type . equals ( that . type ) ) return false ; \n if ( ! id . equals ( that . id ) ) return false ; \n if ( ! timeRange . equals ( that . timeRange ) ) return false ; \n if ( ! config . equals ( that . config ) ) return false ;", "msg_token": "Fix DashboardWidget equals method"} {"diff": " public final class WebInterfaceDownloadLocalServlet extends HttpServlet { \n } \n \n SINGLE \n - String baseDir = mTachyonConf . get ( Constants . TACHYON_HOME ) ; \n - File logsDir = new File ( baseDir , STRING0 ) ; \n + File logsDir = new File ( mTachyonConf . get ( Constants . LOGS_DIR ) ) ; \n \n SINGLE \n requestPath = new File ( requestPath ) . getName ( ) ;", "msg_token": "SMALLFIX Fix possible wrong assumption to derive logs dir"} {"diff": " public class ResourceManagementServiceImpl \n resourceString = firstPart . concat ( secondPart ) ; \n } \n \n + if ( resourceString . indexOf ( STRING0 ) > - NUMBER0 ) \n + { \n + resourceString = resourceString . replaceAll ( STRING1 , STRING2 ) ; \n + } \n + \n if ( params != null ) \n resourceString \n = MessageFormat . format ( resourceString , ( Object [ ] ) params ) ;", "msg_token": "Remove special escape characters"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClassProto implements TypeProto { \n throw new UnresolvedClassException ( STRING0 , getType ( ) ) ; \n } \n \n - return FluentIterable . from ( getInterfaces ( ) . values ( ) ) . filter ( ClassDef . class ) ; \n + return FluentIterable . from ( getInterfaces ( ) . values ( ) ) . filter ( Predicates . notNull ( ) ) ; \n } \n \n COMMENT", "msg_token": "Using Predicates notNull to filter for direct interfaces"} {"diff": " public class TranslogTests extends ElasticsearchTestCase { \n translog . add ( op ) ; \n } \n \n - \n public void testIdParsingFromFile ( ) { \n long id = randomIntBetween ( NUMBER0 , Integer . MAX_VALUE ) ; \n Path file = translogDir . resolve ( Translog . TRANSLOG_FILE_PREFIX + id ) ; \n public class TranslogTests extends ElasticsearchTestCase { \n } \n \n private String randomNonTranslogPatternString ( int min , int max ) { \n - String string ; \n - boolean validPathString = false ; \n + String string ; \n + boolean validPathString ; \n do { \n validPathString = false ; \n string = randomRealisticUnicodeOfCodepointLength ( randomIntBetween ( min , max ) ) ; \n public class TranslogTests extends ElasticsearchTestCase { \n } catch ( InvalidPathException ex ) { \n SINGLE \n } \n - } while ( Translog . PARSE_ID_PATTERN . matcher ( string ) . matches ( ) && validPathString ) ; \n + } while ( Translog . PARSE_ID_PATTERN . matcher ( string ) . matches ( ) || validPathString == false ) ; \n return string ; \n }", "msg_token": "TEST Draw a new path if the random file name contains an illegal character"} {"diff": " public class TestNameTestDirectoryProvider implements MethodRule , TestRule , Test \n methodName = getClass ( ) . getSimpleName ( ) ; \n } \n if ( prefix == null ) { \n - String safeMethodName = methodName . replaceAll ( STRING0 , STRING1 ) . replace ( File . pathSeparator , STRING1 ) . replace ( STRING2 , STRING1 ) ; \n + String safeMethodName = methodName . replaceAll ( STRING0 , STRING1 ) . replace ( File . pathSeparator , STRING1 ) . replace ( STRING2 , STRING1 ) . replace ( STRING3 , STRING4 ) ; \n if ( safeMethodName . length ( ) > NUMBER0 ) { \n safeMethodName = safeMethodName . substring ( NUMBER1 , NUMBER2 ) + STRING5 + safeMethodName . substring ( safeMethodName . length ( ) - NUMBER2 ) ; \n }", "msg_token": "Translate double quotes in test method names into underscores when naming the test directory"} {"diff": " public class ForkLaunchMain { \n final List < URL > urls = new ArrayList < URL > ( ) ; \n for ( final File path : paths ) { \n try { \n - urls . add ( path . toURL ( ) ) ; \n + urls . add ( path . toURI ( ) . toURL ( ) ) ; \n } catch ( MalformedURLException e ) { \n throw new RuntimeException ( configSection + STRING0 + path . getAbsolutePath ( ) + STRING1 , e ) ; \n }", "msg_token": "Get rid of deprecation warning"} {"diff": " public abstract class VcsState \n return ; \n } \n \n - if ( status_ != null ) \n + if ( status_ != null && status != null ) \n { \n for ( int i = NUMBER0 ; i < status_ . size ( ) ; i ++ ) \n {", "msg_token": "Fix null ref"} {"diff": " public class Spr7839Tests { \n } \n \n @ test \n + @ ignore \n public void arrayOfLists ( ) throws Exception { \n SINGLE \n request . setRequestURI ( STRING0 ) ;", "msg_token": "failing test case"} {"diff": " class Angle implements Comparable < Angle > , Cloneable { \n } \n \n public Angle ( double rise_temp , double run_temp ) { \n - if ( rise_temp == NUMBER0 && run_temp == NUMBER0 ) \n - angle_radians = NUMBER0 ; \n SINGLE \n angle_radians = Math . atan2 ( rise_temp , run_temp ) ; \n SINGLE", "msg_token": "remove useless special case this is actually a bug in the original code I think"} {"diff": " public abstract class AbstractZipalignMojo extends AbstractAndroidMojo { \n COMMENT \n private File alignedApkFile ; \n \n - private static final List < String > SUPPORTED_PACKAGING_TYPES = new ArrayList < String > ( ) ; \n - \n - static { \n - SUPPORTED_PACKAGING_TYPES . add ( STRING0 ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove the SUPPORTED_PACKAGING_TYPES as it s now inherited from AndroidAbstractMojo"} {"diff": " public class Utility { \n \n private static final long MILISECONDS_IN_18_HOURS = NUMBER0 * NUMBER1 * NUMBER1 * NUMBER2 ; \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public static boolean isDateToday ( Date date ) { \n - Date now = new Date ( ) ; \n + public static boolean isDateToday ( final Date date ) { \n + if ( date == null ) { \n + return false ; \n + } \n + final Date now = new Date ( ) ; \n if ( now . getTime ( ) - MILISECONDS_IN_18_HOURS > date . getTime ( ) || now . getTime ( ) + MILISECONDS_IN_18_HOURS < date . getTime ( ) ) { \n return false ; \n } else {", "msg_token": "Add null check before attempting to do math on the date"} {"diff": " public class Wallet implements Serializable { \n FileOutputStream stream = null ; \n File temp = null ; \n try { \n - File directory = f . getParentFile ( ) ; \n + File directory = f . getAbsoluteFile ( ) . getParentFile ( ) ; \n temp = File . createTempFile ( STRING0 , null , directory ) ; \n stream = new FileOutputStream ( temp ) ; \n saveToFileStream ( stream ) ;", "msg_token": "Take the directory of the wallets absolute path name to avoid creating temporary wallets in the system default directory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LdapConnector { \n return connection ; \n } \n \n + @ nullable \n public LdapEntry search ( LdapNetworkConnection connection , \n String searchBase , \n String searchPattern ,", "msg_token": "add nullable annotation"} {"diff": " public class JUnitRuleTest { \n fail ( ) ; \n } catch ( AssertionError e ) { \n assertEquals ( STRING0 , e . getMessage ( ) ) ; \n - assertTrue ( logger . getLoggedInfo ( ) . startsWith ( STRING1 ) ) ; \n + assertTrue ( logger . getLoggedInfo ( ) . contains ( STRING1 ) ) ; \n } \n }", "msg_token": "Fixed broken test"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Remove unused imports"} {"diff": " import NAMESPACE ; \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 \n + + STRING4 \n + STRING5 \n + STRING6 \n + STRING7", "msg_token": "Fix documentation of set"} {"diff": " public class WXPerformance { \n + STRING0 + JSLibSize + STRING1 + templateUrl \n + STRING2 + JSTemplateSize + STRING3 + communicateTime \n + STRING4 + screenRenderTime \n + + STRING5 + WXEnvironment . sSDKInitInvokeTime + STRING6 + WXEnvironment . sSDKInitExecuteTime \n + STRING7 + totalTime + STRING8 + JSLibVersion + STRING9 + WXSDKVersion \n + STRING10 + errCode + STRING11 + renderFailedDetail \n + STRING12 + errMsg ;", "msg_token": "android print sdk init performance time"} {"diff": " public final class NetworkUtils { \n public static String getLocalIpAddress ( ) { \n try { \n InetAddress address = InetAddress . getLocalHost ( ) ; \n - System . out . println ( STRING0 + address . toString ( ) + STRING1 + address . isLoopbackAddress ( ) + STRING1 \n + LOG . debug ( STRING0 + address . toString ( ) + STRING1 + address . isLoopbackAddress ( ) + STRING1 \n + address . getHostAddress ( ) + STRING1 + address . getHostName ( ) ) ; \n if ( address . isLoopbackAddress ( ) ) { \n Enumeration < NetworkInterface > networkInterfaces = NetworkInterface . getNetworkInterfaces ( ) ;", "msg_token": "change system out println to LOG debug because println will affect TfsShellTest"} {"diff": " public class DeflatingStreamSinkConduit implements StreamSinkConduit { \n @ override \n public boolean flush ( ) throws IOException { \n if ( currentBuffer == null ) { \n - return true ; \n + if ( anyAreSet ( state , NEXT_SHUTDOWN ) ) { \n + return next . flush ( ) ; \n + } else { \n + return true ; \n + } \n } \n try { \n boolean nextCreated = false ;", "msg_token": "Fix bug in deflating stream sink conduit"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Modified some comments to reflect that these objects are thread safe but not reentrant"} {"diff": " public class OauthAuthenticationFilter extends SpringSecurityFilter { \n String header = request . getHeader ( AUTHORIZATION ) ; SINGLE \n \n if ( header != null ) { \n - logger . debug ( STRING0 + header ) ; \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING0 + header ) ; \n + } \n Matcher matcher = OAUTH_TOKEN_PATTERN . matcher ( header ) ; \n if ( matcher . matches ( ) ) { \n String token = matcher . group ( NUMBER0 ) ; \n public class OauthAuthenticationFilter extends SpringSecurityFilter { \n Authentication authResult = authenticationManager . authenticate ( authenticationToken ) ; \n SecurityContextHolder . getContext ( ) . setAuthentication ( authResult ) ; \n } catch ( AuthenticationException e ) { \n - logger . debug ( STRING1 + token + STRING2 + e . toString ( ) ) ; \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING1 + token , e ) ; \n + } \n SecurityContextHolder . getContext ( ) . setAuthentication ( null ) ; \n } \n }", "msg_token": "Enclosing debug logs with isDebugEnabled to prevent String object construction when unnecessary"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RuleDaoTest extends AbstractDaoTestCase { \n @ test \n public void testSelectNonManual ( ) throws Exception { \n setupData ( STRING0 ) ; \n - List < RuleDto > ruleDtos = dao . selectNonManual ( getMyBatis ( ) . openSession ( ) ) ; \n + SqlSession session = getMyBatis ( ) . openSession ( ) ; \n + List < RuleDto > ruleDtos = dao . selectNonManual ( session ) ; \n + session . commit ( ) ; \n + session . close ( ) ; \n \n assertThat ( ruleDtos . size ( ) ) . isEqualTo ( NUMBER0 ) ; \n RuleDto ruleDto = ruleDtos . get ( NUMBER1 ) ;", "msg_token": "Fix test on Postgres"} {"diff": " public class Core implements GraylogServer , InputHost { \n deflector . setUp ( ) ; \n \n scheduler = Executors . newScheduledThreadPool ( SCHEDULED_THREADS_POOL_SIZE , \n - new ThreadFactoryBuilder ( ) . setNameFormat ( STRING0 ) . build ( ) \n + new ThreadFactoryBuilder ( ) \n + . setNameFormat ( STRING0 ) \n + . setDaemon ( true ) \n + . build ( ) \n ) ; \n \n SINGLE", "msg_token": "define main scheduler as daemon"} {"diff": " public class ApplicationSqlDao extends AbstractSqlDao { \n COMMENT \n COMMENT \n public void writeKnownRemoteDatabases ( List < DatabaseRemoteFile > remoteDatabases ) throws SQLException { \n + if ( remoteDatabases . size ( ) == NUMBER0 ) { \n + SINGLE \n + return ; \n + } \n PreparedStatement preparedStatement = getStatement ( STRING0 ) ; \n \n for ( DatabaseRemoteFile databaseRemoteFile : remoteDatabases ) {", "msg_token": "Fix unexpected bug"} {"diff": " public abstract class Camera { \n COMMENT \n COMMENT \n public void rotate ( final Quaternion quat ) { \n - direction . mul ( quat ) ; \n - up . mul ( quat ) ; \n + quat . transform ( direction ) ; \n + quat . transform ( up ) ; \n } \n \n COMMENT", "msg_token": "Change camera rotate to work without another pull request"} {"diff": " class StringDeserialization implements Deserialization < String > \n else if ( value . getClass ( ) . isArray ( ) ) \n { \n int length = Array . getLength ( value ) ; \n - builder . append ( STRING0 ) ; \n for ( int i = NUMBER0 ; i < length ; i ++ ) \n { \n Object item = Array . get ( value , i ) ; \n class StringDeserialization implements Deserialization < String > \n } \n stringify ( entry , item ) ; \n } \n - builder . append ( STRING1 ) ; \n } \n else if ( value instanceof Number ) \n {", "msg_token": "Removes invalid brackets around arrays"} {"diff": " public abstract class MultilanguageCodeStyleAbstractPanel extends CodeStyleAbstr \n \n public void setLanguageSelector ( LanguageSelector langSelector ) { \n myLanguageSelector = langSelector ; \n + setPanelLanguage ( langSelector . getLanguage ( ) ) ; \n } \n \n public void setPanelLanguage ( Language language ) {", "msg_token": "Code style settings code refactoring clean up"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n intent . getBooleanExtra ( Intent . EXTRA_REPLACING , false ) ; \n mCompatModePackages . handlePackageAddedLocked ( ssp , replacing ) ; \n \n - if ( replacing ) { \n - removeTasksByRemovedPackageComponentsLocked ( ssp , userId ) ; \n - } \n try { \n ApplicationInfo ai = AppGlobals . getPackageManager ( ) . \n getApplicationInfo ( ssp , NUMBER0 , NUMBER0 ) ;", "msg_token": "Fixing build breakage"} {"diff": " public class ScrollingModelImpl implements ScrollingModel { \n private Point calcOffsetsToScroll ( LogicalPosition pos , ScrollType scrollType , Rectangle viewRect ) { \n Point targetLocation = myEditor . logicalPositionToXY ( pos ) ; \n \n - if ( myEditor . getSettings ( ) . isRefrainFromScrolling ( ) ) { \n + if ( myEditor . getSettings ( ) . isRefrainFromScrolling ( ) && viewRect . contains ( targetLocation ) ) { \n if ( scrollType == ScrollType . CENTER || \n scrollType == ScrollType . CENTER_DOWN || \n scrollType == ScrollType . CENTER_UP ) {", "msg_token": "Scrolling usability in precense of scroll as little as possible option"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ModuleAwareProjectConfigurable < T extends UnnamedConfigurab \n for ( Module module : modules ) { \n final T configurable = createModuleConfigurable ( module ) ; \n myModuleConfigurables . put ( module , configurable ) ; \n - final JComponent component = new JBScrollPane ( configurable . createComponent ( ) ) ; \n - component . setBorder ( new EmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n + final JComponent component = configurable . createComponent ( ) ; \n cardPanel . add ( component , module . getName ( ) ) ; \n } \n moduleList . addListSelectionListener ( new ListSelectionListener ( ) {", "msg_token": "we should not wrap configurables in scroll pane"} {"diff": " public class NearestNeighborsResource extends FileResource { \n \n } \n else if ( path . getAbsolutePath ( ) . contains ( STRING0 ) ) { \n - WordVectors vectors = WordVectorSerializer . loadGoogleModel ( path , true , true ) ; \n + WordVectors vectors = WordVectorSerializer . loadGoogleModel ( path , true ) ; \n this . wordVectors = vectors ; \n }", "msg_token": "bump local threads"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class HazelcastClientCacheManager extends AbstractHazelcastCacheMan \n @ override \n protected void onShuttingDown ( ) { \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public NearCacheManager getNearCacheManager ( ) { \n - return client . getNearCacheManager ( ) ; \n - } \n }", "msg_token": "Removed unused method getNearCacheManager in HazelcastClientCacheManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class DeepLearningAutoEncoderTest extends TestUtil { \n static final String PATH = STRING0 ; \n public class DeepLearningAutoEncoderTest extends TestUtil { \n p . autoencoder = true ; \n p . response = frame . lastVec ( ) ; \n \n - SINGLE \n p . seed = seed ; \n p . hidden = new int [ ] { NUMBER0 } ; \n p . adaptive_rate = true ;", "msg_token": "Remove unneeded import"} {"diff": " public class SqlDataSourceRefTest extends ContextTestSupport { \n } \n \n public void testSimpleBody ( ) throws Exception { \n - SINGLE \n + SINGLE \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ;", "msg_token": "Added dataSourceRef option to lookup DS in registry"} {"diff": " public class SnapshotRepository { \n COMMENT \n COMMENT \n public boolean isValidSnapshot ( File f ) { \n - if ( ! f . getName ( ) . matches ( STRING0 ) ) { \n + if ( ! f . getName ( ) . matches ( STRING1 ) ) { \n return false ; \n }", "msg_token": "Expanded the filename filter for snapshot paths"} {"diff": " public class StackScrollAlgorithm { \n float newYTranslation = state . yTranslation ; \n float newHeight = state . height ; \n float newNotificationEnd = newYTranslation + newHeight ; \n - \n - if ( newYTranslation < previousNotificationEnd ) { \n + boolean isHeadsUp = ( child instanceof ExpandableNotificationRow ) \n + && ( ( ExpandableNotificationRow ) child ) . isPinned ( ) ; \n + if ( newYTranslation < previousNotificationEnd && ambientState . isShadeExpanded ( ) \n + && ! isHeadsUp ) { \n SINGLE \n float overlapAmount = previousNotificationEnd - newYTranslation ; \n state . clipTopAmount = ( int ) overlapAmount ;", "msg_token": "Don t show the shade background for heads up notifications"} {"diff": " public class KafkaUtils { \n } \n long latestTimeOffset = getOffset ( consumer , _topic , partition . partition , kafka . api . OffsetRequest . LatestTime ( ) ) ; \n long earliestTimeOffset = getOffset ( consumer , _topic , partition . partition , kafka . api . OffsetRequest . EarliestTime ( ) ) ; \n - if ( latestTimeOffset == NUMBER0 ) { \n + if ( latestTimeOffset == KafkaUtils . NO_OFFSET ) { \n LOG . warn ( STRING0 + partition . getId ( ) ) ; \n return null ; \n }", "msg_token": "Fix wrong getOffset return value"} {"diff": " public class JavaCompletionData extends CompletionData { \n new TextFilter ( STRING0 ) ) ) ) ) ) ; \n variant . includeScopeClass ( PsiAnnotationParameterList . class ) ; \n variant . includeScopeClass ( PsiVariable . class ) ; \n + variant . excludeScopeClass ( PsiJavaCodeReferenceCodeFragment . class ) ; \n variant . addCompletion ( PsiKeyword . CLASS , TailType . NONE ) ; \n registerVariant ( variant ) ; \n } \n public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme \n superParent = superParent . getParent ( ) ; \n } \n } \n - if ( ! smartCompletion ) { \n + if ( ! smartCompletion && getTreeParent ( ) . getElementType ( ) != CODE_FRAGMENT ) { \n COMMENT \n COMMENT \n filter . addFilter ( new AndFilter ( new ClassFilter ( PsiMethod . class ) , new NotFilter ( new ConstructorFilter ( ) ) ) ) ;", "msg_token": "completion in target class field suggests class token and some registerNatives method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed missing import"} {"diff": " public abstract class NativeDepsHelper { \n SINGLE \n SINGLE \n for ( final Artifact runtimeInput : toolchain . getDynamicRuntimeLinkInputs ( ) ) { \n - final Artifact runtimeSymlink = ruleContext . getAnalysisEnvironment ( ) . getDerivedArtifact ( \n + final Artifact runtimeSymlink = ruleContext . getPackageRelativeArtifact ( \n getRuntimeLibraryPath ( ruleContext , runtimeInput ) , bindirIfShared ) ; \n SINGLE \n SINGLE \n public abstract class NativeDepsHelper { \n COMMENT \n COMMENT \n private static PathFragment getRuntimeLibraryPath ( RuleContext ruleContext , Artifact lib ) { \n - PathFragment relativePath = Util . getWorkspaceRelativePath ( ruleContext . getRule ( ) ) ; \n + PathFragment relativePath = new PathFragment ( ruleContext . getLabel ( ) . getName ( ) ) ; \n PathFragment libParentDir = \n relativePath . replaceName ( lib . getExecPath ( ) . getParentDirectory ( ) . getBaseName ( ) ) ; \n String libName = lib . getExecPath ( ) . getBaseName ( ) ;", "msg_token": "Remove an AnalysisEnvironment getDerivedArtifact call from nativedeps"} {"diff": " public class IndexingServiceTest \n \n SINGLE \n logger . assertExactly ( \n - info ( STRING0 ) , \n - info ( STRING1 ) , \n - info ( STRING2 ) \n + info ( STRING3 ) , \n + info ( STRING4 ) , \n + info ( STRING5 ) \n ) ; \n } \n \n public class IndexingServiceTest \n SINGLE \n verify ( provider ) . getPopulationFailure ( NUMBER0 ) ; \n logger . assertAtLeastOnce ( \n - info ( STRING6 ) ) ; \n + info ( STRING7 ) ) ; \n logger . assertAtLeastOnce ( \n - info ( STRING8 ) ) ; \n + info ( STRING9 ) ) ; \n logger . assertAtLeastOnce ( \n - info ( STRING10 ) ) ; \n + info ( STRING11 ) ) ; \n } \n \n @ test", "msg_token": "Fixes a test relying on recently changed index logging"} {"diff": " public abstract class BaseBpmnXMLConverter implements BpmnXMLConstants { \n } \n \n writeAdditionalAttributes ( flowElement , xtw ) ; \n + if ( StringUtils . isNotEmpty ( flowElement . getDocumentation ( ) ) ) { \n + \n + xtw . writeStartElement ( ELEMENT_DOCUMENTATION ) ; \n + xtw . writeCharacters ( flowElement . getDocumentation ( ) ) ; \n + xtw . writeEndElement ( ) ; \n + } \n writeAdditionalChildElements ( flowElement , xtw ) ; \n \n writeListeners ( flowElement , xtw ) ; \n public class BpmnXMLConverter implements BpmnXMLConstants { \n xtw . writeAttribute ( ATTRIBUTE_NAME , STRING0 ) ; \n } \n \n + if ( StringUtils . isNotEmpty ( subProcess . getDocumentation ( ) ) ) { \n + \n + xtw . writeStartElement ( ELEMENT_DOCUMENTATION ) ; \n + xtw . writeCharacters ( subProcess . getDocumentation ( ) ) ; \n + xtw . writeEndElement ( ) ; \n + } \n + \n for ( FlowElement subElement : subProcess . getFlowElements ( ) ) { \n createXML ( subElement , xtw ) ; \n }", "msg_token": "Updated documentation element export"} {"diff": " public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb \n if ( ! e . getMessage ( ) . endsWith ( STRING0 ) ) \n throw e ; \n } catch ( Exception e ) { \n - ODistributedServerLog . error ( this , nodeName , null , DIRECTION . NONE , STRING1 , \n - newClusterName , iClass ) ; \n - throw new ODistributedException ( STRING2 + newClusterName + STRING3 + iClass + STRING4 ) ; \n + ODistributedServerLog . error ( this , nodeName , null , DIRECTION . NONE , STRING5 , \n + newClusterName , iClass , e ) ; \n + throw new ODistributedException ( STRING2 + newClusterName + STRING3 + iClass + STRING4 , e ) ; \n } finally { \n \n if ( currentDistributedMode != OScenarioThreadLocal . RUN_MODE . DEFAULT )", "msg_token": "improved error management in distributed scenario"} {"diff": " public class VectorizedRCFileRecordReader implements RecordReader < NullWritable , \n \n @ override \n public VectorizedRowBatch createValue ( ) { \n - VectorizedRowBatch result = null ; \n + VectorizedRowBatch result ; \n try { \n result = rbCtx . createVectorizedRowBatch ( ) ; \n } catch ( HiveException e ) { \n - new RuntimeException ( STRING0 , e ) ; \n + throw new RuntimeException ( STRING0 , e ) ; \n } \n return result ; \n } \n public class VectorizedRCFileRecordReader implements RecordReader < NullWritable , \n } \n } \n } catch ( Exception e ) { \n - new RuntimeException ( STRING1 , e ) ; \n + throw new RuntimeException ( STRING1 , e ) ; \n } \n value . size = i ; \n return more ;", "msg_token": "VectorizedRCFileRecordReader creates Exception but does not throw it Alexander Pivovarov reviewed by Sergey Shelukhin"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultGraphWalker implements GraphWalker { \n \n protected Stack < Node > opStack ; \n protected final List < Node > toWalk = new ArrayList < Node > ( ) ; \n - protected final HashMap < Node , Object > retMap = new HashMap < Node , Object > ( ) ; \n + protected final IdentityHashMap < Node , Object > retMap = new IdentityHashMap < Node , Object > ( ) ; \n protected final Dispatcher dispatcher ; \n \n COMMENT", "msg_token": "Use object identity to prevent recursion instead of equality in the optimizer visitor pattern Gopal V reviewed by Sergey Shelukhin"} {"diff": " public class Vec extends Keyed < Vec > { \n COMMENT \n COMMENT \n public static Vec makeCon ( double x , long len , int log_rows_per_chunk , boolean redistribute ) { \n - int nchunks = redistribute ? ( int ) Math . min ( NUMBER0 * H2O . NUMCPUS * H2O . CLOUD . size ( ) , len ) : ( int ) Math . max ( NUMBER1 , len > > log_rows_per_chunk ) ; \n + int chunks0 = ( int ) Math . max ( NUMBER1 , len > > log_rows_per_chunk ) ; SINGLE \n + int chunks1 = ( int ) Math . min ( NUMBER0 * H2O . NUMCPUS * H2O . CLOUD . size ( ) , len ) ; SINGLE \n + int nchunks = ( redistribute && chunks0 < chunks1 && len > NUMBER2 * chunks1 ) ? chunks1 : chunks0 ; \n long [ ] espc = new long [ nchunks + NUMBER1 ] ; \n espc [ NUMBER3 ] = NUMBER3 ; \n for ( int i = NUMBER1 ; i < nchunks ; i ++ )", "msg_token": "Fix the makeCon logic for when to create more chunks broke after fix of memory leak"} {"diff": " public class TachyonFS implements Closeable , TachyonFSCore { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setPin ( TachyonFile file , boolean pinned ) throws IOException { \n + FileSystemMasterClient masterClient = mContext . acquireMasterClient ( ) ; \n + try { \n + masterClient . setPinned ( file . getFileId ( ) , pinned ) ; \n + } finally { \n + mContext . releaseMasterClient ( masterClient ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add set pin method in TachyonFS"} {"diff": " public class LockScreenActivity extends ActionBarActivity implements ICacheWordS \n return ; \n SINGLE \n try { \n - mCacheWord . setPassphrase ( mEnterPassphrase . getText ( ) . toString ( ) . toCharArray ( ) ) ; \n + char [ ] passphrase = mEnterPassphrase . getText ( ) . toString ( ) . toCharArray ( ) ; \n + \n + mCacheWord . setPassphrase ( passphrase ) ; \n ImApp . mUsingCacheword = true ; \n - } catch ( GeneralSecurityException e ) { \n + } catch ( Exception e ) { \n mEnterPassphrase . setText ( STRING0 ) ; \n SINGLE \n Log . e ( TAG , STRING1 + e . getMessage ( ) ) ;", "msg_token": "improve code for handling cacheword unlock exceptions"} {"diff": " public final class Constants { \n COMMENT \n COMMENT \n public static final String POST = STRING0 ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static final boolean IS_SECURITY_ENABLED = \n - ( System . getSecurityManager ( ) != null ) ; \n }", "msg_token": "Remove unused code"} {"diff": " public class GitblitReceivePack extends ReceivePack implements PreReceiveHook , P \n text = MessageFormat . format ( msg , objects ) ; \n super . sendMessage ( prefix + text ) ; \n } \n - LOGGER . info ( text + STRING0 + user . username + STRING1 ) ; \n + if ( ! StringUtils . isEmpty ( msg ) ) { \n + LOGGER . info ( text + STRING0 + user . username + STRING1 ) ; \n + } \n } \n \n protected void sendError ( String msg , Object . . . objects ) { \n public class GitblitReceivePack extends ReceivePack implements PreReceiveHook , P \n text = MessageFormat . format ( msg , objects ) ; \n super . sendError ( text ) ; \n } \n - LOGGER . error ( text + STRING0 + user . username + STRING1 ) ; \n + if ( ! StringUtils . isEmpty ( msg ) ) { \n + LOGGER . error ( text + STRING0 + user . username + STRING1 ) ; \n + } \n } \n \n COMMENT", "msg_token": "Do not log empty messages in the receive pack"} {"diff": " public final class Multimaps { \n \n SINGLE \n } \n -", "msg_token": "Make the Maps Multimaps Iterator Iterable accepting overloads package private MOE public"} {"diff": " public class LineStatusTrackerManager implements ProjectComponent { \n \n private class MyEditorFactoryListener extends EditorFactoryAdapter { \n public void editorCreated ( EditorFactoryEvent event ) { \n - trackAwtThread ( ) ; \n + SINGLE \n + SINGLE \n Editor editor = event . getEditor ( ) ; \n if ( editor . getProject ( ) != null && editor . getProject ( ) != myProject ) return ; \n Document document = editor . getDocument ( ) ;", "msg_token": "remove incorrect EDT check"} {"diff": " public class C2Chunk extends Chunk { \n return this ; \n } \n @ override NewChunk inflate_impl ( NewChunk nc ) { \n + if ( nc == null ) { System . err . println ( STRING0 ) ; System . err . flush ( ) ; } SINGLE \n + \n for ( int i = NUMBER0 ; i < _len ; i ++ ) { \n long res = at8_impl ( i ) ; \n if ( _vec . valueIsNA ( res ) ) nc . setInvalid ( i ) ;", "msg_token": "debugging null ptr"} {"diff": " public abstract class AbstractThreadedSyncAdapter { \n if ( mAutoInitialize \n && extras != null \n && extras . getBoolean ( ContentResolver . SYNC_EXTRAS_INITIALIZE , false ) ) { \n - if ( ContentResolver . getIsSyncable ( account , authority ) < NUMBER0 ) { \n - ContentResolver . setIsSyncable ( account , authority , NUMBER1 ) ; \n + try { \n + if ( ContentResolver . getIsSyncable ( account , authority ) < NUMBER0 ) { \n + ContentResolver . setIsSyncable ( account , authority , NUMBER1 ) ; \n + } \n + } finally { \n + syncContextClient . onFinished ( new SyncResult ( ) ) ; \n } \n - syncContextClient . onFinished ( new SyncResult ( ) ) ; \n return ; \n } \n SyncThread syncThread = new SyncThread (", "msg_token": "Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter"} {"diff": " public class Realm { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public String getDomain ( ) { \n return domain ; \n public class JDKAsyncHttpProvider implements AsyncHttpProvider < HttpURLConnection \n } \n } \n \n - if ( realm != null && realm . getDomain ( ) != null ) { \n + if ( realm != null && realm . getDomain ( ) != null && realm . getScheme ( ) == Realm . AuthScheme . NTLM ) { \n System . setProperty ( STRING0 , realm . getDomain ( ) ) ; \n }", "msg_token": "Fix warning use enum"} {"diff": " public class SvnConcurrentChangeListManagerTest extends SvnTestCase { \n SINGLE \n runSvn ( STRING0 , targetName , file . getPath ( ) ) ; \n \n + VcsDirtyScopeManager . getInstance ( myProject ) . markEverythingDirty ( ) ; \n changeListManager . ensureUpToDate ( false ) ; \n checkFilesAreInList ( new VirtualFile [ ] { file } , targetName , changeListManager ) ; \n }", "msg_token": "test fixed mark dirty"} {"diff": " public final class MtpCursor extends AbstractWindowedCursor { \n \n public MtpCursor ( MtpClient client , int queryType , int deviceID , long storageID , long objectID , \n String [ ] projection ) { \n + if ( client == null ) { \n + throw new NullPointerException ( STRING0 ) ; \n + } \n mColumns = projection ; \n \n HashMap < String , Integer > map ;", "msg_token": "Throw a NullPointerException if client is null in MtpCursor constructor"} {"diff": " public class GpsLocationProvider implements LocationProviderInterface { \n private void reportAGpsStatus ( int type , int status ) { \n switch ( status ) { \n case GPS_REQUEST_AGPS_DATA_CONN : \n - int result = mConnMgr . startUsingNetworkFeature ( \n + SINGLE \n + SINGLE \n + mAGpsDataConnectionState = AGPS_DATA_CONNECTION_OPENING ; \n + int result = mConnMgr . startUsingNetworkFeature ( \n ConnectivityManager . TYPE_MOBILE , Phone . FEATURE_ENABLE_SUPL ) ; \n if ( result == Phone . APN_ALREADY_ACTIVE ) { \n if ( mAGpsApn != null ) { \n public class GpsLocationProvider implements LocationProviderInterface { \n mAGpsDataConnectionState = AGPS_DATA_CONNECTION_OPEN ; \n } else { \n Log . e ( TAG , STRING0 ) ; \n + mAGpsDataConnectionState = AGPS_DATA_CONNECTION_CLOSED ; \n native_agps_data_conn_failed ( ) ; \n } \n } else if ( result == Phone . APN_REQUEST_STARTED ) { \n - mAGpsDataConnectionState = AGPS_DATA_CONNECTION_OPENING ; \n + SINGLE \n } else { \n + mAGpsDataConnectionState = AGPS_DATA_CONNECTION_CLOSED ; \n native_agps_data_conn_failed ( ) ; \n } \n break ;", "msg_token": "Fix race condition while bringing up APN for SUPL"} {"diff": " public class LocationTracker { \n lastKnownLocation ( ) ; \n lm . requestLocationUpdates ( LocationManager . GPS_PROVIDER , GPS_MIN_UPDATE_TIME , \n GPS_MIN_UPDATE_DISTANCE , mLocationListener ) ; \n + lm . requestLocationUpdates ( LocationManager . PASSIVE_PROVIDER , GPS_MIN_UPDATE_TIME , \n + GPS_MIN_UPDATE_DISTANCE , mLocationListener ) ; \n + lm . requestLocationUpdates ( LocationManager . NETWORK_PROVIDER , GPS_MIN_UPDATE_TIME , \n + GPS_MIN_UPDATE_DISTANCE , mLocationListener ) ; \n } \n \n public void stop ( ) {", "msg_token": "added more location providers to improve location acquire time"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class PlatformTestCase extends UsefulTestCase implements DataProvider { \n private static IdeaTestApplication ourApplication ; \n + private static boolean ourReportedLeakedProjects ; \n protected ProjectManagerEx myProjectManager ; \n protected Project myProject ; \n protected Module myModule ; \n public abstract class PlatformTestCase extends UsefulTestCase implements DataPro \n return project ; \n } \n catch ( TooManyProjectLeakedException e ) { \n + if ( ourReportedLeakedProjects ) { \n + fail ( STRING0 ) ; \n + return null ; \n + } \n + ourReportedLeakedProjects = true ; \n + \n StringBuilder leakers = new StringBuilder ( ) ; \n leakers . append ( STRING1 ) ; \n for ( Project project : e . getLeakedProjects ( ) ) {", "msg_token": "create only one memory snapshot after too many projects have been leaked"} {"diff": " public class AsyncHttpServerResponseImpl implements AsyncHttpServerResponse { \n onEnd ( ) ; \n } \n else if ( ! mHasWritten ) { \n - send ( STRING0 , STRING1 ) ; \n + if ( ! mRequest . getMethod ( ) . equalsIgnoreCase ( AsyncHttpHead . METHOD ) ) \n + send ( STRING0 , STRING1 ) ; \n + else \n + onEnd ( ) ; \n } \n }", "msg_token": "Handle HEAD requests"} {"diff": " public class FacebookProvider implements IdpProvider , FacebookCallback < LoginResu \n \n @ override \n public void onActivityResult ( int requestCode , int resultCode , Intent data ) { \n - sCallbackManager . onActivityResult ( requestCode , resultCode , data ) ; \n + if ( sCallbackManager != null ) { \n + sCallbackManager . onActivityResult ( requestCode , resultCode , data ) ; \n + } \n } \n \n @ override", "msg_token": "Fix NPE in FacebookProvider java"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class JacksonifiedConnectionFactory extends ConnectionFactory \n { \n package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n COMMENT \n public class RabbitMQFirehoseConfig \n {", "msg_token": "Adding minor class level JavaDoc"} {"diff": " public class Rewriter extends ErrorReportingASTVisitor { \n IMethodBinding binding = Types . getMethodBinding ( node ) ; \n \n if ( BindingUtil . hasAnnotation ( binding , AutoreleasePool . class ) ) { \n - if ( ! Types . isVoidType ( binding . getReturnType ( ) ) ) { \n + if ( ! binding . getReturnType ( ) . isPrimitive ( ) ) { \n J2ObjC . warning ( \n - STRING0 ) ; \n + STRING1 ) ; \n } else if ( node . getBody ( ) != null ) { \n Types . addAutoreleasePool ( node . getBody ( ) ) ; \n }", "msg_token": "Allow AutoreleasePool annotations on methods with primitive return types"} {"diff": " public class CliCoordinator extends ServerRunnable \n JsonConfigProvider . bind ( binder , STRING0 , DatabaseSegmentManagerConfig . class ) ; \n JsonConfigProvider . bind ( binder , STRING1 , DatabaseRuleManagerConfig . class ) ; \n \n - SINGLE \n - SINGLE \n + binder . bind ( RedirectFilter . class ) . in ( LazySingleton . class ) ; \n + binder . bind ( RedirectInfo . class ) . to ( CoordinatorRedirectInfo . class ) . in ( LazySingleton . class ) ; \n \n binder . bind ( DatabaseSegmentManager . class ) \n . toProvider ( DatabaseSegmentManagerProvider . class ) \n class CoordinatorJettyServerInitializer implements JettyServerInitializer \n \n root . addServlet ( holderPwd , STRING2 ) ; \n root . setResourceBase ( DruidCoordinator . class . getClassLoader ( ) . getResource ( STRING3 ) . toExternalForm ( ) ) ; \n - SINGLE \n + root . addFilter ( new FilterHolder ( injector . getInstance ( RedirectFilter . class ) ) , STRING4 , null ) ; \n root . addFilter ( GzipFilter . class , STRING4 , null ) ; \n \n SINGLE", "msg_token": "fix commented out filters"} {"diff": " public interface ProtocolProviderService \n public void shutdown ( ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public int hashCode ( ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove superfluous method definition"} {"diff": " public abstract class AbstractTestResourceSet { \n SINGLE \n optional . add ( getMount ( ) + STRING0 ) ; \n optional . add ( STRING1 ) ; \n + SINGLE \n + optional . add ( STRING2 ) ; \n \n for ( String result : results ) { \n Assert . assertTrue ( result ,", "msg_token": "Fix false failure when running tests in parallel"} {"diff": " public class NullObject extends GroovyObjectSupport { \n return Collections . EMPTY_LIST . iterator ( ) ; \n } \n \n + public Object plus ( String s ) { \n + return STRING0 + s ; \n + } \n + \n }", "msg_token": "correct null String to not throw an NPE"} {"diff": " public interface AgentBuilder { \n } \n \n @ override \n + @ suppressfbwarnings ( value = STRING0 , justification = STRING1 ) \n public void onError ( String typeName , ClassLoader classLoader , JavaModule module , boolean loaded , Throwable throwable ) { \n if ( ! loaded && matcher . matches ( throwable ) ) { \n Set < String > types = this . types . get ( new LookupKey ( classLoader ) ) ;", "msg_token": "Added hint for findbugs"} {"diff": " class UniqueLuceneIndexAccessor extends LuceneIndexAccessor implements UniquePro \n } \n } \n \n + @ override \n public Long currentlyIndexedNode ( Object value ) throws IOException \n { \n IndexSearcher searcher = searcherManager . acquire ( ) ; \n class UniqueLuceneIndexAccessor extends LuceneIndexAccessor implements UniquePro \n for ( NodePropertyUpdate update : updates ) \n { \n delegate . process ( update ) ; \n - delegate . close ( ) ; \n } \n + delegate . close ( ) ; \n } \n \n @ override", "msg_token": "Flushes the index updater after all updates have been applied"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class JavaValue extends XNamedValue implements NodeDescriptorProvider , XV \n @ override \n public Priority getPriority ( ) { \n if ( navigatable instanceof XInlineSourcePosition ) { \n - return Priority . LOW ; \n + return Priority . LOWEST ; \n } \n return Priority . NORMAL ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n public interface PrioritizedTask { \n enum Priority { \n - HIGH , NORMAL , LOW \n + HIGH , NORMAL , LOW , LOWEST \n } \n \n Priority getPriority ( ) ;", "msg_token": "perform inline debugger calculations with lowest priority"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SingletonSecurityTestCase { \n JavaArchive jar = ShrinkWrap . create ( JavaArchive . class , STRING0 ) ; \n jar . addPackage ( SingletonSecurityTestCase . class . getPackage ( ) ) ; \n jar . addPackage ( CommonCriteria . class . getPackage ( ) ) ; \n + jar . addAsResource ( new StringAsset ( STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING1 ) , STRING10 ) ; \n log . info ( jar . toString ( true ) ) ; \n return jar ; \n }", "msg_token": "Add permission for singleton security test case"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DerbyJdbcExpert extends MysqlJdbcExpert { \n return STRING0 ; \n case BOOLEAN : \n return STRING1 ; \n + case BINARY : \n + return STRING2 ; \n default : \n break ; \n } \n public class DerbyJdbcExpert extends MysqlJdbcExpert { \n protected String createResultSetMetaSql ( Entity < ? > en ) { \n return STRING3 + en . getViewName ( ) + STRING4 ; \n } \n + \n + public Pojo fetchPojoId ( Entity < ? > en , MappingField idField ) { \n + String autoSql = STRING5 + en . getTableName ( ) ; \n + Pojo autoInfo = new SqlFieldMacro ( idField , autoSql ) ; \n + autoInfo . setEntity ( en ) ; \n + return autoInfo ; \n + } \n }", "msg_token": "derby don t support INDENTIFY"} {"diff": " public final class ViewRoot extends Handler implements ViewParent , \n mWindowAttributes . copyFrom ( attrs ) ; \n attrs = mWindowAttributes ; \n \n - enableHardwareAcceleration ( attrs ) ; \n - \n if ( view instanceof RootViewSurfaceTaker ) { \n mSurfaceHolderCallback = \n ( ( RootViewSurfaceTaker ) view ) . willYouTakeTheSurface ( ) ; \n public final class ViewRoot extends Handler implements ViewParent , \n mSurfaceHolder . setFormat ( PixelFormat . UNKNOWN ) ; \n } \n } \n + \n + SINGLE \n + if ( mSurfaceHolder == null ) { \n + enableHardwareAcceleration ( attrs ) ; \n + } \n + \n Resources resources = mView . getContext ( ) . getResources ( ) ; \n CompatibilityInfo compatibilityInfo = resources . getCompatibilityInfo ( ) ; \n mTranslator = compatibilityInfo . getTranslator ( ) ;", "msg_token": "Don t enable hardware acceleration when the app owns the surface"} {"diff": " public class PythonAllTestsSuite { \n PythonInspectionsTest . class , \n PythonDemorganLawIntentionTest . class , \n PyQuickFixTest . class , \n + PyIntentionTest . class , \n PySelectWordTest . class , \n PyEditingTest . class , \n PySurroundWithTest . class ,", "msg_token": "add intention test to all tests suite"} {"diff": " class DefaultPomDependenciesConverter implements PomDependenciesConverter { \n for ( PublishArtifact artifactToPublish : dependencyConfig . getAllArtifacts ( ) ) { \n Dependency mavenDependency = new Dependency ( ) ; \n mavenDependency . setArtifactId ( artifactId ) ; \n - mavenDependency . setClassifier ( artifactToPublish . getClassifier ( ) ) ; \n + if ( artifactToPublish . getClassifier ( ) != null && artifactToPublish . getClassifier ( ) != STRING0 ) { \n + mavenDependency . setClassifier ( artifactToPublish . getClassifier ( ) ) ; \n + } \n mavenDependencies . add ( mavenDependency ) ; \n } \n } else {", "msg_token": "Add a check for an empty or null classifier"} {"diff": " public class GithubCheckoutProvider implements CheckoutProvider { \n \n final GitCloneDialog dialog = new GitCloneDialog ( project ) ; \n SINGLE \n + dialog . prependToHistory ( STRING0 ) ; \n for ( int i = availableRepos . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n dialog . prependToHistory ( availableRepos . get ( i ) . getCloneUrl ( ) ) ; \n }", "msg_token": "add separator between predefined items and history items"} {"diff": " public class AsyncHttpClient { \n COMMENT \n COMMENT \n COMMENT \n - public void setBasicAuth ( String user , String pass ) { \n + public void setBasicAuth ( String username , String password ) { \n AuthScope scope = AuthScope . ANY ; \n - setBasicAuth ( user , pass , scope ) ; \n + setBasicAuth ( username , password , scope ) ; \n } \n \n COMMENT \n public class AsyncHttpClient { \n COMMENT \n COMMENT \n COMMENT \n - public void setBasicAuth ( String user , String pass , AuthScope scope ) { \n - UsernamePasswordCredentials credentials = new UsernamePasswordCredentials ( user , pass ) ; \n + public void setBasicAuth ( String username , String password , AuthScope scope ) { \n + UsernamePasswordCredentials credentials = new UsernamePasswordCredentials ( username , password ) ; \n this . httpClient . getCredentialsProvider ( ) . setCredentials ( scope , credentials ) ; \n }", "msg_token": "Javadoc fixed references"} {"diff": " public class OverrideImplementUtil { \n } \n \n public static boolean canInsertOverride ( PsiMethod superMethod , PsiClass targetClass ) { \n - if ( superMethod . isConstructor ( ) ) { \n + if ( superMethod . isConstructor ( ) || superMethod . hasModifierProperty ( PsiModifier . STATIC ) ) { \n return false ; \n } \n if ( ! PsiUtil . isLanguageLevel5OrHigher ( targetClass ) ) {", "msg_token": "do not insert Override for static methods"} {"diff": " public class Memtable implements Comparable < Memtable > , IFlushable \n } \n if ( newRatio > MAX_SANE_LIVE_RATIO ) \n { \n - logger . warn ( STRING0 ) ; \n + logger . warn ( STRING1 , newRatio ) ; \n newRatio = MAX_SANE_LIVE_RATIO ; \n } \n cfs . liveRatio = Math . max ( cfs . liveRatio , newRatio ) ;", "msg_token": "Fix typo in logging"} {"diff": " public class _LastInSuiteTest extends TestCase { \n LeakHunter . checkProjectLeak ( ) ; \n Disposer . assertIsEmpty ( true ) ; \n } \n + catch ( AssertionError e ) { \n + captureMemorySnapshot ( ) ; \n + throw e ; \n + } \n catch ( Exception e ) { \n captureMemorySnapshot ( ) ; \n throw e ;", "msg_token": "build memory snaphost if a leak found"} {"diff": " public class BroadcastLayout extends LinearLayout { \n @ bindview ( R . id . text ) \n TextView mTextText ; \n @ bindview ( R . id . like ) \n - public CardIconButton mLikeButton ; \n + CardIconButton mLikeButton ; \n @ bindview ( R . id . comment ) \n public CardIconButton mCommentButton ; \n @ bindview ( R . id . rebroadcast ) \n - public CardIconButton mRebroadcastButton ; \n + CardIconButton mRebroadcastButton ; \n \n private HorizontalImageAdapter mImageListAdapter ;", "msg_token": "Fix field access"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NotificationChildrenContainer extends ViewGroup { \n mChildren . remove ( row ) ; \n removeView ( row ) ; \n \n - View divider = mDividers . remove ( childIndex ) ; \n + final View divider = mDividers . remove ( childIndex ) ; \n removeView ( divider ) ; \n + getOverlay ( ) . add ( divider ) ; \n + CrossFadeHelper . fadeOut ( divider , new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + getOverlay ( ) . remove ( divider ) ; \n + } \n + } ) ; \n \n row . setSystemChildExpanded ( false ) ; \n updateGroupOverflow ( ) ;", "msg_token": "Fading out the divider now when removing children"} {"diff": " public class SearchView extends LinearLayout implements CollapsibleActionView { \n inputType &= ~ InputType . TYPE_TEXT_FLAG_AUTO_COMPLETE ; \n if ( mSearchable . getSuggestAuthority ( ) != null ) { \n inputType |= InputType . TYPE_TEXT_FLAG_AUTO_COMPLETE ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + inputType |= InputType . TYPE_TEXT_FLAG_NO_SUGGESTIONS ; \n } \n } \n mQueryTextView . setInputType ( inputType ) ;", "msg_token": "Do not run the spell checker in SearchView"} {"diff": " public class ContextualUndoAdapter extends BaseAdapterDecorator implements Conte \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void removePendingItem ( boolean animate ) { \n + if ( animate ) { \n + removePreviousContextualUndoIfPresent ( ) ; \n + } \n + else if ( mCurrentRemovedView != null ) { \n + new RemoveViewAnimatorListenerAdapter ( mCurrentRemovedView ) . onAnimationEnd ( null ) ; \n + clearCurrentRemovedView ( ) ; \n + } \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow users of ContextualUndoAdapters to forcefully remove any pending item"} {"diff": " public class WorkerModule extends BlazeModule { \n \n @ subscribe \n public void buildComplete ( BuildCompleteEvent event ) { \n - if ( workers != null && buildRequest . getOptions ( WorkerOptions . class ) . workerQuitAfterBuild ) { \n + if ( workers != null && buildRequest != null \n + && buildRequest . getOptions ( WorkerOptions . class ) != null \n + && buildRequest . getOptions ( WorkerOptions . class ) . workerQuitAfterBuild ) { \n if ( verbose ) { \n env \n . getReporter ( )", "msg_token": "Make worker more defensive about NPEs"} {"diff": " public class Spider implements Runnable , Task { \n if ( threadNum <= NUMBER0 ) { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n - if ( threadNum == NUMBER1 ) { \n - return this ; \n - } \n return this ; \n }", "msg_token": "remove useless code"} {"diff": " public final class VectorExpressionWriterFactory { \n @ override \n public Object writeValue ( byte [ ] value , int start , int length ) throws HiveException { \n this . text . set ( value , start , length ) ; \n - ( ( SettableStringObjectInspector ) this . objectInspector ) . set ( this . obj , this . text . toString ( ) ) ; \n + ( ( SettableStringObjectInspector ) this . objectInspector ) . set ( this . obj , this . text ) ; \n return this . obj ; \n } \n \n public final class VectorExpressionWriterFactory { \n field = initValue ( null ) ; \n } \n this . text . set ( value , start , length ) ; \n - ( ( SettableStringObjectInspector ) this . objectInspector ) . set ( field , this . text . toString ( ) ) ; \n + ( ( SettableStringObjectInspector ) this . objectInspector ) . set ( field , this . text ) ; \n return field ; \n }", "msg_token": "Optimize writeValue setValue in VectorExpressionWriterFactory Rajesh Balamohan via Gopal V"} {"diff": " public class DuplicatesFinder { \n \n @ nullable \n private Match isDuplicateFragment ( PsiElement candidate ) { \n - if ( candidate == myPattern [ NUMBER0 ] ) return null ; \n + if ( PsiTreeUtil . isAncestor ( myPattern [ NUMBER0 ] , candidate , false ) ) return null ; \n PsiElement sibling = candidate ; \n ArrayList < PsiElement > candidates = new ArrayList < PsiElement > ( ) ; \n for ( final PsiElement element : myPattern ) {", "msg_token": "skip recursive duplicates"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing unneeded imports"} {"diff": " public class CommittedChangesCache implements PersistentStateComponent < Committed \n try { \n if ( cache . isEmpty ( ) ) { \n pendingUpdateProcessed ( ) ; \n - return ; \n + continue ; \n } \n debug ( STRING0 + cache . getLocation ( ) ) ; \n boolean needRefresh = cache . processUpdatedFiles ( updatedFiles , myNewIncomingChanges ) ;", "msg_token": "when updating committed changes from updated files check all caches"} {"diff": " public class ErrorReporter \n \n if ( column > NUMBER0 ) \n { \n - sample = STRING0 + line . substring ( column - NUMBER1 , column + NUMBER2 ) + eol ( ) + STRING0 + marker . substring ( column - NUMBER1 , column + NUMBER2 ) ; \n + int start = column - NUMBER1 - NUMBER3 ; \n + int end = ( column + NUMBER2 > line . length ( ) ? line . length ( ) : column + NUMBER2 - NUMBER3 ) ; \n + sample = STRING0 + line . substring ( start , end ) + eol ( ) + STRING0 + marker . substring ( start , marker . length ( ) ) ; \n } \n else \n {", "msg_token": "Fixed a bug producing samples of long lines"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ targetapi ( NUMBER0 ) \n public class PhotoView extends ImageView { \n \n private final PhotoViewAttacher mAttacher ;", "msg_token": "Remove unnecessary Lint Marker"} {"diff": " public class GitVcsApplicationSettings implements PersistentStateComponent < GitVc \n COMMENT \n COMMENT \n public String getPathToGit ( ) { \n - return myPathToGit ; \n + return myPathToGit == null ? defaultGit ( ) : myPathToGit ; \n } \n \n COMMENT", "msg_token": "fixed getGitExecutable according to ConfigurableModifiedTest"} {"diff": " public abstract class AbstractSlideExpandableListAdapter extends WrapperListAdap \n \n private SavedState ( Parcel in ) { \n super ( in ) ; \n - in . writeInt ( lastOpenPosition ) ; \n - writeBitSet ( in , openItems ) ; \n + lastOpenPosition = in . readInt ( ) ; \n + openItems = readBitSet ( in ) ; \n } \n \n @ override \n public void writeToParcel ( Parcel out , int flags ) { \n super . writeToParcel ( out , flags ) ; \n - lastOpenPosition = out . readInt ( ) ; \n - openItems = readBitSet ( out ) ; \n + out . writeInt ( lastOpenPosition ) ; \n + writeBitSet ( out , openItems ) ; \n + \n } \n \n SINGLE", "msg_token": "Fix RuntimeException when unmarshalling data"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public @ interface ImportResource { \n \n String [ ] value ( ) ; \n - \n + \n Class < ? extends BeanDefinitionReader > reader ( ) default XmlBeanDefinitionReader . class ; \n \n }", "msg_token": "Deleting unused imports"} {"diff": " public final class H2O { \n STATIC_H2OS . add ( SELF ) ; \n } \n \n + Log . info ( STRING0 + NAME + STRING1 ) ; \n + \n Log . info ( STRING2 + VERSION + STRING3 + NAME + STRING4 + SELF + ( OPT_ARGS . flatfile == null \n ? ( STRING5 + CLOUD_MULTICAST_GROUP + STRING6 + CLOUD_MULTICAST_PORT ) \n : STRING7 + OPT_ARGS . flatfile ) ) ;", "msg_token": "Log cloud name"} {"diff": " public class CxfRsProducer extends DefaultProducer { \n } \n \n public void start ( ) throws Exception { \n - SINGLE \n + cache . resetStatistics ( ) ; \n } \n \n public void stop ( ) throws Exception {", "msg_token": "reset the cache when the CxfRsProducer is started"} {"diff": " public abstract class GridSearchHandler < G extends Grid < MP > , \n throw new IllegalArgumentException ( STRING0 + name + STRING1 , e ) ; \n } catch ( IllegalAccessException e ) { \n throw new IllegalArgumentException ( STRING2 + name + STRING1 , e ) ; \n + } catch ( RuntimeException e ) { \n + throw new IllegalArgumentException ( STRING2 + name + STRING1 , e ) ; \n } \n return this ; \n }", "msg_token": "Fix error causing fail of grid if wrond hidden was specified"} {"diff": " public final class MockRetrofit { \n COMMENT \n COMMENT \n public int calculateDelayForError ( ) { \n + if ( delayMs == NUMBER0 ) return NUMBER0 ; \n + \n return random . nextInt ( delayMs * ERROR_DELAY_FACTOR ) ; \n }", "msg_token": "setDelay can set a value that would cause IllegalArgException to be thrown by random nextInt"} {"diff": " public class CircuitBreakerServiceIT extends ESIntegTestCase { \n COMMENT \n COMMENT \n COMMENT \n + @ awaitsfix ( bugUrl = STRING0 ) \n public void testParentChecking ( ) throws Exception { \n if ( noopBreakerUsed ( ) ) { \n logger . info ( STRING1 ) ;", "msg_token": "TEST mute test for now we have an issue for it"} {"diff": " public class ActivityTest { \n assertThat ( shadow . getManagedCursors ( ) . size ( ) ) . isEqualTo ( NUMBER0 ) ; \n } \n \n + @ org.junit.test \n + public void should ( ) throws Exception { \n + new Activity ( ) . checkCallingPermission ( STRING0 ) ; \n + } \n + \n private static class TestActivity extends Activity { \n Transcript transcript = new Transcript ( ) ;", "msg_token": "reproducing NPE exception with checkCallingPermission"} {"diff": " public class DefaultSecurityApi implements SecurityApi { \n } \n \n @ override \n + public void logout ( ) { \n + final Subject currentUser = SecurityUtils . getSubject ( ) ; \n + currentUser . logout ( ) ; \n + } \n + \n + @ override \n public Set < Permission > getCurrentUserPermissions ( final TenantContext context ) { \n final Permission [ ] killbillPermissions = Permission . values ( ) ; \n final String [ ] killbillPermissionsString = getAllPermissionsAsStrings ( ) ;", "msg_token": "implement DefaultSecurityApi logout"} {"diff": " public class TestHCatClient { \n public static void startMetaStoreServer ( ) throws Exception { \n \n hcatConf = new HiveConf ( TestHCatClient . class ) ; \n - String metastoreUri = System . getProperty ( HiveConf . ConfVars . METASTOREURIS . varname ) ; \n + String metastoreUri = System . getProperty ( STRING0 + HiveConf . ConfVars . METASTOREURIS . varname ) ; \n if ( metastoreUri != null ) { \n hcatConf . setVar ( HiveConf . ConfVars . METASTOREURIS , metastoreUri ) ; \n useExternalMS = true ;", "msg_token": "TestHCatClient should not accept external metastore param from Dhive metastore uris Sushanth Sowmyan reviewed by Thejas Nair"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AzureSnapshotRestoreITest extends AbstractAzureTest { \n COMMENT \n COMMENT \n COMMENT \n - @ test @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) \n + @ test \n public void testForbiddenContainerName ( ) { \n checkContainerName ( STRING1 , false ) ; \n checkContainerName ( STRING2 , false ) ;", "msg_token": "Activate tests for forbidden names"} {"diff": " public class PreviewTableCache \n { \n return queryRows ( buildQueryWithLimit ( key , previewLimit ) ) ; \n } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } ; \n \n this . previewTableCache = CacheBuilder . newBuilder ( )", "msg_token": "review Remove comment"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class DefaultProjectLocator implements ProjectLocator { \n private final String projectPath ; \n public class DefaultProjectLocator implements ProjectLocator { \n ProjectInternal referencedProject = delegate . getProject ( path ) ; \n SINGLE \n referencedProject . evaluate ( ) ; \n + referencedProject . getModelRegistry ( ) . atStateOrLater ( TaskContainerInternal . MODEL_PATH , ModelNode . State . SelfClosed ) ; \n return referencedProject ; \n } \n }", "msg_token": "Effectively realise the project model when resolving a cross project native library dependency"} {"diff": " public class ConstantExpressionEvaluator extends PsiElementVisitor { \n private static final Key < CachedValue < Map < PsiElement , Object > > > CONSTANT_VALUE_MAP_KEY = new Key < CachedValue < Map < PsiElement , Object > > > ( STRING0 ) ; \n private static final Object NO_VALUE = new Object ( ) ; \n \n - private ConstantExpressionEvaluator ( Set < PsiVariable > visitedVars , boolean throwExceptionOnOverflow ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + protected ConstantExpressionEvaluator ( Set < PsiVariable > visitedVars , boolean throwExceptionOnOverflow ) { \n myVisitedVars = visitedVars ; \n myThrowExceptionOnOverflow = throwExceptionOnOverflow ; \n } \n public class ConstantExpressionEvaluator extends PsiElementVisitor { \n return _compute ( evaluator , expression ) ; \n } \n \n - private static Object _compute ( ConstantExpressionEvaluator evaluator , PsiExpression expression ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + protected static Object _compute ( ConstantExpressionEvaluator evaluator , PsiExpression expression ) { \n return evaluator . accept ( expression ) ; \n }", "msg_token": "restored protected methods used in Fabrique"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n \n \n @ override \n + public void setParent ( PApplet parent ) { \n + super . setParent ( parent ) ; \n + if ( pgl != null ) { \n + pgl . sketch = parent ; \n + } \n + } \n + \n + \n + @ override \n public void setPrimary ( boolean primary ) { \n super . setPrimary ( primary ) ; \n pgl . setPrimary ( primary ) ;", "msg_token": "Fix NPE in PGL"} {"diff": " public class DaemonBuildActionExecuter implements BuildActionExecuter < ProviderOp \n Throwable t = e . getCause ( ) ; \n while ( t != null ) { \n if ( t instanceof BuildCancelledException ) { \n - throw new InternalBuildCancelledException ( t ) ; \n + throw new InternalBuildCancelledException ( e . getCause ( ) ) ; \n } \n t = t . getCause ( ) ; \n }", "msg_token": "Don t discard the exception chain when adapting to an internal build cancelled exception"} {"diff": " public class DBCollection { \n return new WriteResult ( result , writeConcernToUse ) ; \n } \n \n + public DBCursor find ( final DBObject filter ) { \n + return find ( filter , null ) ; \n + } \n + \n public DBCursor find ( final DBObject filter , final DBObject fields ) { \n return new DBCursor ( collection , new MongoFind ( ) . \n where ( DBObjects . toQueryFilterDocument ( filter ) ) .", "msg_token": "Implemented another find method in DBCollection"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n public interface Kernel32 extends StdCallLibrary { \n \n public interface Kernel32 extends StdCallLibrary { \n COMMENT \n COMMENT \n int GetProcessVersion ( int processId ) ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public interface Kernel32 extends StdCallLibrary { \n HANDLE CreateFile ( String lpFileName , int dwDesiredAccess , int dwShareMode , \n WinBase . SECURITY_ATTRIBUTES lpSecurityAttributes , int dwCreationDisposition , \n int dwFlagsAndAttributes , HANDLE hTemplateFile ) ; \n - \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Restore original imports"} {"diff": " public class PluginsService extends AbstractComponent { \n try ( DirectoryStream < Path > stream = Files . newDirectoryStream ( pluginsDirectory ) ) { \n for ( Path plugin : stream ) { \n try { \n + if ( Files . isHidden ( plugin ) ) { \n + logger . trace ( STRING0 , plugin . toAbsolutePath ( ) ) ; \n + continue ; \n + } \n logger . trace ( STRING1 , plugin . toAbsolutePath ( ) ) ; \n PluginInfo info = PluginInfo . readFromProperties ( plugin ) ; \n List < URL > urls = new ArrayList < > ( ) ;", "msg_token": "skip hidden files"} {"diff": " public class SvnBranchPointsCalculator { \n } \n } \n \n - public static class BranchCopyData implements Invertor < BranchCopyData > { \n + public static class BranchCopyData { \n private final String mySource ; \n private final String myTarget ; \n private final long mySourceRevision ; \n public class SvnBranchPointsCalculator { \n } \n } \n \n - private interface Invertor < T > { \n - T invertSelf ( ) ; \n - } \n - \n public TaskDescriptor getFirstCopyPointTask ( final String repoUID , final String sourceUrl , final String targetUrl , \n final Consumer < TransparentlyFailedValueI < WrapperInvertor , SVNException > > consumer ) { \n return myCalculator . getTask ( new KeyData ( repoUID , sourceUrl , targetUrl ) , consumer , SVNException . class ) ;", "msg_token": "Removed unnecessary SvnBranchPointsCalculator Invertor interface"} {"diff": " public interface TypeDescription extends TypeDefinition , TypeVariableSource { \n \n @ override \n public Generic get ( int index ) { \n - return Sort . describe ( bound [ index ] , annotationReader . ofParameter ( index ) ) ; \n + return Sort . describe ( bound [ index ] , annotationReader . ofTypeVariableBound ( index ) ) ; \n } \n \n @ override", "msg_token": "Fixed broken type annotation resolution"} {"diff": " public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme \n final boolean initialConnectionKeepAlive = future . getKeepAlive ( ) ; \n future . setURI ( uri ) ; \n String newUrl = uri . toString ( ) ; \n - if ( future . getNettyRequest ( ) . getUri ( ) . startsWith ( WEBSOCKET ) ) { \n + if ( request . getUrl ( ) . startsWith ( WEBSOCKET ) ) { \n newUrl = newUrl . replace ( HTTP , WEBSOCKET ) ; \n }", "msg_token": "Fix wrong logic for redirecting websocket"} {"diff": " public class PythonCompletionTest extends PyTestCase { \n } \n \n public void testEpydocParamTag ( ) { \n - doTest ( ) ; \n + final PyDocumentationSettings settings = PyDocumentationSettings . getInstance ( myFixture . getModule ( ) ) ; \n + settings . setFormat ( DocStringFormat . EPYTEXT ) ; \n + try { \n + doTest ( ) ; \n + } \n + finally { \n + settings . setFormat ( DocStringFormat . PLAIN ) ; \n + } \n } \n \n public void testEpydocTags ( ) {", "msg_token": "set docstring type for tests"} {"diff": " public class UserPhotosFragment extends SherlockFragment implements LoaderManage \n \n @ override \n public void onActivityResult ( int requestCode , int resultCode , Intent data ) { \n - if ( requestCode == Activity . RESULT_OK ) { \n - switch ( requestCode ) { \n - case RESULT_CAMERA : \n + switch ( requestCode ) { \n + case RESULT_CAMERA : \n + if ( resultCode == Activity . RESULT_OK ) { \n Utils . sendMediaStoreBroadcast ( getActivity ( ) , mPhotoFile ) ; \n - mPhotoFile = null ; \n - return ; \n - } \n + } else { \n + if ( Constants . DEBUG ) { \n + Log . d ( STRING0 , STRING1 ) ; \n + } \n + mPhotoFile . delete ( ) ; \n + } \n + mPhotoFile = null ; \n + return ; \n } \n \n super . onActivityResult ( requestCode , resultCode , data ) ;", "msg_token": "Delete Photo File if Camera doesn t result OK"} {"diff": " public class AutomaticBean \n this . useDefault = false ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public StrArrayConverter ( Object aDefaultValue ) \n - { \n - this . defaultValue = aDefaultValue ; \n - this . useDefault = true ; \n - } \n - \n @ suppresswarnings ( STRING0 ) \n @ override \n public Object convert ( Class aType , Object aValue )", "msg_token": "remove dead code"} {"diff": " public class GoogleToken extends Token { \n super ( token , secret , rawResponse ) ; \n this . openIdToken = openIdToken ; \n } \n + \n + public String getOpenIdToken ( ) { \n + return openIdToken ; \n + } \n \n @ override \n public String toString ( ) {", "msg_token": "add a getter for GoogleToken openIdToken"} {"diff": " public class StopwatchBenchmark extends SimpleBenchmark { \n for ( int i = NUMBER0 ; i < reps ; i ++ ) { \n Stopwatch s = new Stopwatch ( ) . start ( ) ; \n SINGLE \n - total += s . elapsedTime ( TimeUnit . NANOSECONDS ) ; \n + total += s . elapsed ( TimeUnit . NANOSECONDS ) ; \n } \n return total ; \n }", "msg_token": "Fix calls to deprecated Stopwatch elapsedTime TimeUnit by inlining that method s implementation elapsed TimeUnit"} {"diff": " public class OTokenHandlerImplTest { \n try { \n OSecurityUser original = db . getUser ( ) ; \n OTokenHandlerImpl handler = new OTokenHandlerImpl ( STRING0 . getBytes ( ) , NUMBER0 , STRING1 ) ; \n + byte [ ] token = handler . getSignedWebToken ( db , original ) ; \n + \n try { \n SINGLE \n Thread . sleep ( NUMBER1 ) ; \n } catch ( InterruptedException e ) { \n } \n - byte [ ] token = handler . getSignedWebToken ( db , original ) ; \n \n OToken tok = handler . parseWebToken ( token ) ;", "msg_token": "Fixed test case"} {"diff": " public class HiveConf extends Configuration { \n STRING0 + \n STRING1 ) , \n LLAP_CACHE_ENABLE_ORC_GAP_CACHE ( STRING2 , true , \n - STRING3 + \n - STRING4 + \n - STRING5 ) , \n + STRING6 + \n + STRING7 + \n + STRING8 ) , \n LLAP_IO_USE_FILEID_PATH ( STRING9 , true , \n STRING10 + \n STRING11 ) ,", "msg_token": "Incremental Caching marks some small chunks as incomplete CB Sergey Shelukhin reviewed by Prasanth Jayachandran ADDENDUM"} {"diff": " public class PropertiesConfigurationFactoryTests { \n @ test \n public void propertyWithAllUpperCaseSuffixCanBeBound ( ) throws Exception { \n Foo foo = createFoo ( STRING0 ) ; \n - assertEquals ( STRING1 , foo . fooBarURI ) ; \n + assertThat ( foo . fooBarURI ) . isEqualTo ( STRING1 ) ; \n } \n \n private Foo createFoo ( final String values ) throws Exception {", "msg_token": "Fix assertion to use AssertJ"} {"diff": " public class AppCompatSpinner extends Spinner implements TintableBackgroundView \n \n @ override \n public boolean performClick ( ) { \n - if ( mPopup != null && ! mPopup . isShowing ( ) ) { \n - mPopup . show ( ) ; \n + if ( mPopup != null ) { \n + SINGLE \n + if ( ! mPopup . isShowing ( ) ) { \n + mPopup . show ( ) ; \n + } \n return true ; \n } \n + \n + SINGLE \n return super . performClick ( ) ; \n }", "msg_token": "Fix Spinner showing multiple popups"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OAuth2RestOperationsConfiguration { \n \n @ bean \n public FilterRegistrationBean oauth2ClientFilterRegistration ( \n - OAuth2ClientContextFilter filter ) { \n + OAuth2ClientContextFilter filter , SecurityProperties security ) { \n FilterRegistrationBean registration = new FilterRegistrationBean ( ) ; \n registration . setFilter ( filter ) ; \n - registration . setOrder ( - NUMBER0 ) ; \n + registration . setOrder ( security . getFilterOrder ( ) - NUMBER1 ) ; \n return registration ; \n }", "msg_token": "Move OAuth2ClientContextFilter back before the main security filter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public abstract class AbstractTransferOperation extends Operation { \n } \n \n private TransactionAwareTransferManager createReliableTransferManager ( Config config ) { \n - return new TransactionAwareTransferManager ( new RetriableTransferManager ( config . getTransferPlugin ( ) . createTransferManager ( \n - config . getConnection ( ) , config ) ) , config ) ; \n + return new TransactionAwareTransferManager ( createRetriableTransferManager ( config ) , config ) ; \n + } \n + \n + private TransferManager createRetriableTransferManager ( Config config ) { \n + return new RetriableTransferManager ( config . getTransferPlugin ( ) . createTransferManager ( \n + config . getConnection ( ) , config ) ) ; \n } \n \n protected void startOperation ( ) throws Exception {", "msg_token": "Making actionFileHandler tx unaware"} {"diff": " public class FirstWizardPage \n ProtocolProviderFactory . FORCE_P2P_MODE , false ) ; \n \n boolean enabledDefaultEncryption = accountID . getAccountPropertyBoolean ( \n - ProtocolProviderFactory . DEFAULT_ENCRYPTION , false ) ; \n + ProtocolProviderFactory . DEFAULT_ENCRYPTION , true ) ; \n \n String pollingPeriod = accountID . getAccountPropertyString ( \n ProtocolProviderFactory . POLLING_PERIOD ) ;", "msg_token": "When loading an already stored SIP account we set the encryption property to true if there s no stored value"} {"diff": " public class Http11OutputBuffer implements OutputBuffer { \n } \n \n \n + public void registerWriteInterest ( ) { \n + socketWrapper . registerWriteInterest ( ) ; \n + } \n + \n + \n SINGLE \n \n COMMENT \n public class Http11Processor extends AbstractProcessor { \n \n if ( outputBuffer . hasDataToWrite ( ) ) { \n if ( outputBuffer . flushBuffer ( false ) ) { \n - SINGLE \n - SINGLE \n - response . checkRegisterForWrite ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + outputBuffer . registerWriteInterest ( ) ; \n return SocketState . LONG ; \n } \n }", "msg_token": "Fix broken non blocking unit test on Linux"} {"diff": " class WindowSurfaceController { \n } \n } \n \n + @ override \n + public void setTransparentRegionHint ( Region region ) { \n + if ( LOG_SURFACE_TRACE ) Slog . v ( SURFACE_TAG , STRING0 + region \n + + STRING1 + this + STRING2 + Debug . getCallers ( NUMBER0 ) ) ; \n + super . setTransparentRegionHint ( region ) ; \n + } \n + \n static void dumpAllSurfaces ( PrintWriter pw , String header ) { \n synchronized ( sSurfaces ) { \n final int N = sSurfaces . size ( ) ;", "msg_token": "Include more methods in SurfaceTrace"} {"diff": " public class TestNGCucumberRunner { \n RuntimeOptionsFactory runtimeOptionsFactory = new RuntimeOptionsFactory ( clazz , new Class [ ] { CucumberOptions . class } ) ; \n RuntimeOptions runtimeOptions = runtimeOptionsFactory . create ( ) ; \n \n - SINGLE \n - List < String > uniqueGlue = new ArrayList < String > ( new HashSet < String > ( runtimeOptions . getGlue ( ) ) ) ; \n - runtimeOptions . getGlue ( ) . clear ( ) ; \n - runtimeOptions . getGlue ( ) . addAll ( uniqueGlue ) ; \n - \n TestNgReporter reporter = new TestNgReporter ( System . out ) ; \n runtimeOptions . getFormatters ( ) . add ( reporter ) ; \n ClassFinder classFinder = new ResourceLoaderClassFinder ( resourceLoader , classLoader ) ;", "msg_token": "Remove the unique glue work around from TestNGCucumberRunner"} {"diff": " public class CreateFrame extends Job < Frame > { \n if ( value != NUMBER0 ) \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n - if ( _dest == null ) throw new IllegalArgumentException ( STRING1 ) ; \n + if ( _dest == null ) throw new IllegalArgumentException ( STRING2 ) ; \n \n FrameCreator fc = new FrameCreator ( this , this . _key ) ; \n start ( fc , fc . nChunks ( ) * NUMBER1 , true ) ;", "msg_token": "Fix error message when frame id is null"} {"diff": " public class FMLDeobfTweaker implements ITweaker { \n @ override \n public String getLaunchTarget ( ) \n { \n - return null ; \n + throw new RuntimeException ( STRING0 ) ; \n } \n \n @ override \n public String [ ] getLaunchArguments ( ) \n { \n - return null ; \n + return new String [ NUMBER0 ] ; \n } \n \n }", "msg_token": "Fix deobf tweaker"} {"diff": " public class SegmentGeneratorConfig { \n } \n \n public void setIndexOutputDir ( String dir ) { \n - if ( new File ( dir ) . exists ( ) ) { \n - \n + final File outputDirectory = new File ( dir ) ; \n + if ( ! outputDirectory . exists ( ) ) { \n + outputDirectory . mkdirs ( ) ; \n } \n indexOutputDir = dir ; \n } \n public class SegmentGeneratorConfig { \n } \n \n public void setInputFilePath ( String path ) { \n - inputDataFilePath = new File ( path ) ; \n - if ( ! inputDataFilePath . exists ( ) ) { \n - throw new RuntimeException ( STRING0 ) ; \n + if ( path != null ) { \n + inputDataFilePath = new File ( path ) ; \n + if ( ! inputDataFilePath . exists ( ) ) { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n } \n }", "msg_token": "Fixed RealtimeFileBasedReaderTest that was broken"} {"diff": " public class Testing { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n \n public class Testing { \n public static void test ( ) { \n - mockLib . foo . FooPackage . < caret > \n + mockLib . foo . MainKt . < caret > \n } \n } \n \n SINGLE \n SINGLE \n SINGLE \n - SINGLE", "msg_token": "Fix test data for completion in java of source compiled kotlin"} {"diff": " public class HttpFields implements Iterable < HttpField > \n } \n return false ; \n } \n - \n + \n + @ deprecated \n + public String getStringField ( HttpHeader header ) \n + { \n + return get ( header ) ; \n + } \n \n public String get ( HttpHeader header ) \n { \n public class HttpFields implements Iterable < HttpField > \n return null ; \n } \n \n + @ deprecated \n + public String getStringField ( String name ) \n + { \n + return get ( name ) ; \n + } \n + \n public String get ( String header ) \n { \n for ( int i = NUMBER0 ; i < _size ; i ++ ) \n public class HttpFields implements Iterable < HttpField > \n } \n return null ; \n } \n - \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "reverted and deprecated getStringField methods"} {"diff": " public class LayerDrawable extends Drawable implements Drawable . Callback { \n final Drawable clone ; \n if ( dr != null ) { \n final ConstantState cs = dr . getConstantState ( ) ; \n - if ( res != null ) { \n + if ( cs == null ) { \n + clone = dr ; \n + } else if ( res != null ) { \n clone = cs . newDrawable ( res ) ; \n } else { \n clone = cs . newDrawable ( ) ;", "msg_token": "If LayerDrawable child doesn t have constant state use shallow copy"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed cs issue"} {"diff": " public class NotificationManagerService extends SystemService { \n } \n checkCallerIsSystemOrSameApp ( pkg ) ; \n final boolean isSystemNotification = isUidSystem ( callingUid ) || ( STRING0 . equals ( pkg ) ) ; \n + final boolean isNotificationFromListener = mEnabledListenerPackageNames . contains ( pkg ) ; \n \n final int userId = ActivityManager . handleIncomingUser ( callingPid , \n callingUid , incomingUserId , true , false , STRING1 , pkg ) ; \n final UserHandle user = new UserHandle ( userId ) ; \n \n SINGLE \n - SINGLE \n - if ( ! isSystemNotification ) { \n + SINGLE \n + if ( ! isSystemNotification && ! isNotificationFromListener ) { \n synchronized ( mNotificationList ) { \n int count = NUMBER0 ; \n final int N = mNotificationList . size ( ) ;", "msg_token": "DO NOT MERGE Readd removal of notification listener limit on posting"} {"diff": " import NAMESPACE ; \n COMMENT \n public class DefaultServerSocketFactory implements ServerSocketFactory { \n \n - private AbstractEndpoint endpoint ; \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public DefaultServerSocketFactory ( AbstractEndpoint endpoint ) { \n - this . endpoint = endpoint ; \n } \n \n @ override", "msg_token": "Remove unused code"} {"diff": " public class JobExecutionContext implements CompletionListenable { \n } \n \n public void start ( ) throws Throwable { \n - assert failure == null ; \n for ( Integer id : orderedContextIds ) { \n ExecutionSubContext subContext = subContexts . get ( id ) ; \n if ( subContext == null || closed . get ( ) ) {", "msg_token": "removes invalid assertion which was thrown by a valid race condition"} {"diff": " public class TestQueries \n @ test \n public void testCountWithAndPredicate ( ) \n { \n - List < Tuple > expected = computeExpected ( STRING0 , FIXED_INT_64 ) ; \n + List < Tuple > expected = computeExpected ( STRING1 , FIXED_INT_64 ) ; \n \n TupleStream discount = createTupleStream ( lineitemData , Column . LINEITEM_DISCOUNT , DOUBLE ) ; \n TupleStream filteredDiscount = new ApplyPredicateOperator ( discount , new Predicate < Cursor > ( ) \n public class TestQueries \n @ override \n public boolean apply ( Cursor input ) \n { \n - return input . getDouble ( NUMBER0 ) < FLOAT0 ; \n + return input . getDouble ( NUMBER0 ) < FLOAT1 ; \n } \n } ) ;", "msg_token": "Fix query so that all predicates affect the output"} {"diff": " public class InputDevice { \n while ( start != end ) { \n int soff = poff + ( start * MotionEvent . NUM_SAMPLE_DATA ) ; \n int pressure = mHistoryData [ soff + MotionEvent . SAMPLE_PRESSURE ] ; \n + if ( pressure <= NUMBER0 ) pressure = NUMBER1 ; \n x += mHistoryData [ soff + MotionEvent . SAMPLE_X ] * pressure ; \n y += mHistoryData [ soff + MotionEvent . SAMPLE_Y ] * pressure ; \n totalPressure += pressure ; \n public class InputDevice { \n } \n int eoff = poff + ( end * MotionEvent . NUM_SAMPLE_DATA ) ; \n int pressure = mHistoryData [ eoff + MotionEvent . SAMPLE_PRESSURE ] ; \n + if ( pressure <= NUMBER0 ) pressure = NUMBER1 ; \n x += mHistoryData [ eoff + MotionEvent . SAMPLE_X ] * pressure ; \n y += mHistoryData [ eoff + MotionEvent . SAMPLE_Y ] * pressure ; \n totalPressure += pressure ;", "msg_token": "Can t unlock the device for a while"} {"diff": " public interface VcsLogUi { \n @ notnull \n VcsLogDataPack getDataPack ( ) ; \n \n - void addHighlighter ( @ notnull VcsLogHighlighter highlighter ) ; \n - \n - void removeHighlighter ( @ notnull VcsLogHighlighter highlighter ) ; \n - \n void addLogListener ( @ notnull VcsLogListener listener ) ; \n \n void removeLogListener ( @ notnull VcsLogListener listener ) ; \n public class VcsLogUiImpl implements VcsLogUi , Disposable { \n } \n \n @ override \n - public void addHighlighter ( @ notnull VcsLogHighlighter highlighter ) { \n - getTable ( ) . addHighlighter ( highlighter ) ; \n - repaintUI ( ) ; \n - } \n - \n - @ override \n - public void removeHighlighter ( @ notnull VcsLogHighlighter highlighter ) { \n - getTable ( ) . removeHighlighter ( highlighter ) ; \n - repaintUI ( ) ; \n - } \n - \n - @ override \n public void addLogListener ( @ notnull VcsLogListener listener ) { \n ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ; \n myLogListeners . add ( listener ) ;", "msg_token": "vcs log remove add remove Highlighter methods from VcsLogUi"} {"diff": " public class TcpHiccupMain { \n heading . append ( STRING0 ) . append ( perc ) . append ( STRING1 ) ; \n long value = findPercentile ( histograms , perc ) ; \n values . append ( STRING0 ) . append ( inNanos ( value ) ) ; \n - if ( RUNS >= oneIn * oneIn - NUMBER0 ) \n + if ( RUNS <= oneIn * oneIn ) \n break ; \n } \n heading . append ( STRING2 ) ;", "msg_token": "Add hiccup testing module"} {"diff": " public abstract class ModelAdapter < ModelClass extends Model > extends InstanceAda \n COMMENT \n COMMENT \n public DatabaseStatement getCompiledStatement ( ) { \n - if ( insertStatement == null ) { \n - insertStatement = getCompiledStatement ( \n + if ( compiledStatement == null ) { \n + compiledStatement = getCompiledStatement ( \n FlowManager . getDatabaseForTable ( getModelClass ( ) ) . getWritableDatabase ( ) ) ; \n } \n \n - return insertStatement ; \n + return compiledStatement ; \n } \n \n COMMENT", "msg_token": "fix get compiled statement"} {"diff": " public class PayloadSerializer { \n } \n \n public Object deserialize ( SerializedPayload payload ) { \n + SINGLE \n final DeserializeMap map = classLoaderRegistry . newDeserializeSession ( ) ; \n try { \n final ClassLoader systemClassLoader = SYSTEM_CLASS_LOADER ; \n public class PayloadSerializer { \n return objectStream . readObject ( ) ; \n } catch ( Exception e ) { \n throw UncheckedException . throwAsUncheckedException ( e ) ; \n - } finally { \n - map . close ( ) ; \n } \n } \n }", "msg_token": "Don t close classloaders following deserialize just yet we have unit tests that expect these to persist"} {"diff": " class OkHttpClientStream extends Http2ClientStream { \n \n @ guardedby ( STRING0 ) \n public void start ( int id ) { \n - checkNotNull ( id , STRING1 ) ; \n checkState ( this . id == ABSENT_ID , STRING2 , this . id ) ; \n this . id = id ;", "msg_token": "Remove nonsense checkNotNull"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n public class DefaultResourceAwareStrategy implements IStrategy { \n private static final Logger LOG = LoggerFactory . getLogger ( DefaultResourceAwareStrategy . class ) ; \n private Cluster _cluster ;", "msg_token": "cleaning up spaces"} {"diff": " import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class ModelBackedDocumentsAdapter extends DocumentsAdapter { \n return hiddenItems ; \n } \n \n + @ visiblefortesting \n @ override \n public void unhide ( SparseArray < String > ids ) { \n if ( DEBUG ) Log . d ( TAG , STRING0 + ids ) ;", "msg_token": "Fix broken ModelBackedDocumentsAdapterTest"} {"diff": " public class PhotoViewAttacher implements IPhotoView , View . OnTouchListener , Vers \n COMMENT \n COMMENT \n private static void setImageViewScaleTypeMatrix ( ImageView imageView ) { \n - if ( null != imageView ) { \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + if ( null != imageView && ! ( imageView instanceof PhotoView ) ) { \n if ( ! ScaleType . MATRIX . equals ( imageView . getScaleType ( ) ) ) { \n imageView . setScaleType ( ScaleType . MATRIX ) ; \n }", "msg_token": "added check back fixing ViewPager example"} {"diff": " public class MediaActionSound { \n } ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void release ( ) { \n - mSoundPool . release ( ) ; \n - mSoundPool = null ; \n + if ( mSoundPool != null ) { \n + mSoundPool . release ( ) ; \n + mSoundPool = null ; \n + } \n } \n }", "msg_token": "Allow multiple releases to be called on MediaActionSound"} {"diff": " public class OperationToObservableFuture { \n @ override \n public Subscription call ( Observer < ? super T > observer ) { \n try { \n - T value = ( time == null ) ? that . get ( ) : that . get ( time , unit ) ; \n + T value = ( time == null ) ? ( T ) that . get ( ) : ( T ) that . get ( time , unit ) ; \n \n if ( ! that . isCancelled ( ) ) { \n observer . onNext ( value ) ;", "msg_token": "added an unnecessary explicit cast because the Jenkins java compiler is unhappy otherwise"} {"diff": " public class TieredBlockStore implements BlockStore { \n private final BlockLockManager mLockManager ; \n private final Allocator mAllocator ; \n private final Evictor mEvictor ; \n - private List < BlockStoreEventListener > mBlockStoreEventListeners = \n + private final List < BlockStoreEventListener > mBlockStoreEventListeners = \n new ArrayList < BlockStoreEventListener > ( ) ; \n COMMENT \n private final Set < Integer > mPinnedInodes = new HashSet < Integer > ( ) ;", "msg_token": "Made mBlockStoreEventListeners final"} {"diff": " public class TileSourceManager { \n } \n \n public static TileSourceTemplate getMapnikSource ( ) { \n - return new TileSourceTemplate ( STRING0 , STRING1 , STRING2 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ; SINGLE \n + return new TileSourceTemplate ( STRING3 , STRING4 , STRING2 , NUMBER0 , NUMBER1 , NUMBER5 , NUMBER3 , NUMBER4 ) ; SINGLE \n } \n \n public static TileSourceTemplate getCycleMapSource ( ) {", "msg_token": "Make osmandonline tiles hd"} {"diff": " public abstract class BaseRefactoringAction extends AnAction { \n PsiFile file = e . getData ( LangDataKeys . PSI_FILE ) ; \n if ( file != null ) { \n if ( file instanceof PsiCompiledElement || ! isAvailableForFile ( file ) ) { \n - disableAction ( e ) ; \n + hideAction ( e ) ; \n return ; \n } \n } \n public abstract class BaseRefactoringAction extends AnAction { \n \n private static void disableAction ( final AnActionEvent e ) { \n e . getPresentation ( ) . setEnabled ( false ) ; \n - if ( ActionPlaces . isPopupPlace ( e . getPlace ( ) ) && e . getPresentation ( ) . isVisible ( ) ) { \n - hideAction ( e ) ; \n - } \n } \n \n protected boolean isAvailableForLanguage ( Language language ) {", "msg_token": "do not show not available in current file and do not hide disabled in popups"} {"diff": " public class ForsetiClient implements Locks . Client \n } \n else if ( existingLock instanceof SharedLock ) \n { \n + SINGLE \n + SINGLE \n + SINGLE \n if ( ( ( SharedLock ) existingLock ) . acquire ( this ) ) \n { \n SINGLE \n break ; \n } \n - else \n + else if ( ( ( SharedLock ) existingLock ) . isUpdateLock ( ) ) \n { \n return false ; \n }", "msg_token": "Improve Forsetis try shared lock"} {"diff": " public class NeuralUtilsTest { \n assertEquals ( FLOAT0 , NeuralUtils . cosine ( vector1 , vector2 ) , FLOAT1 ) ; \n } \n \n + public void testIsZero ( ) { \n + double [ ] [ ] values = new double [ ] [ ] { { FLOAT2 , FLOAT3 , FLOAT4 , FLOAT5 , FLOAT6 } , { FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 } } ; \n + SimpleMatrix vector1 = new SimpleMatrix ( values ) ; \n + assertFalse ( NeuralUtils . isZero ( vector1 ) ) ; \n + \n + values = new double [ ] [ ] { { FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 } , { FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 , FLOAT7 } } ; \n + vector1 = new SimpleMatrix ( values ) ; \n + assertTrue ( NeuralUtils . isZero ( vector1 ) ) ; \n + } \n + \n }", "msg_token": "Add a test for isZero"} {"diff": " public class PlaybackControlsRow extends Row { \n COMMENT \n COMMENT \n public ClosedCaptioningAction ( Context context , int highlightColor ) { \n - super ( R . id . lb_control_high_quality ) ; \n + super ( R . id . lb_control_closed_captioning ) ; \n BitmapDrawable uncoloredDrawable = ( BitmapDrawable ) getStyledDrawable ( context , \n R . styleable . lbPlaybackControlsActionIcons_closed_captioning ) ; \n Drawable [ ] drawables = new Drawable [ NUMBER0 ] ;", "msg_token": "Fix wrong ClosedCaptioningAction id"} {"diff": " public final class NearestNUserNeighborhood extends AbstractUserNeighborhood { \n public NearestNUserNeighborhood ( int n , \n UserSimilarity userSimilarity , \n DataModel dataModel ) { \n - this ( n , FLOAT0 , userSimilarity , dataModel , FLOAT1 ) ; \n + this ( n , Double . NEGATIVE_INFINITY , userSimilarity , dataModel , FLOAT1 ) ; \n } \n \n COMMENT \n public final class NearestNUserNeighborhood extends AbstractUserNeighborhood { \n private final User theUser ; \n private final double minSim ; \n \n - private Estimator ( UserSimilarity userSimilarityImpl , User theUser ) { \n - this . userSimilarityImpl = userSimilarityImpl ; \n - this . theUser = theUser ; \n - this . minSim = Double . NEGATIVE_INFINITY ; \n - } \n - \n private Estimator ( UserSimilarity userSimilarityImpl , User theUser , double minSim ) { \n this . userSimilarityImpl = userSimilarityImpl ; \n this . theUser = theUser ;", "msg_token": "Oops minSimilarity should default to Double NEGATIVE_INFINITY"} {"diff": " public class GrailsDomainClassPersistentEntity implements PersistentEntity , Init \n public void setExternal ( boolean external ) { \n SINGLE \n } \n + \n + public PersistentProperty getVersion ( ) { \n + SINGLE \n + throw new UnsupportedOperationException ( ) ; \n + } \n \n + public boolean isVersioned ( ) { \n + SINGLE \n + throw new UnsupportedOperationException ( ) ; \n + } \n }", "msg_token": "implement getVersion and isVersioned to satisfy the new methods defined in the PersistentEntity interface"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class PrimaryKey implements DatabaseObject , Comparable < PrimaryKey > { \n private String name ;", "msg_token": "Removing the VersionString reference which appears to be completely redundent and breaking the build"} {"diff": " public interface BeanFactory { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a missing throws in Javadoc"} {"diff": " public class DynamicRegexReplaceableByCompiledPatternInspection \n STRING0 + \n STRING1 ) ; \n final int expressionsLength = expressions . length ; \n - System . out . println ( STRING2 + expressionsLength ) ; \n if ( expressionsLength > NUMBER0 ) { \n fieldText . append ( expressions [ NUMBER0 ] . getText ( ) ) ; \n }", "msg_token": "removed debug println statement"} {"diff": " public abstract class BaseTest < \n . fetchOne ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + protected final Result < B > getBooks ( ) { \n + return create ( ) . selectFrom ( TBook ( ) ) \n + . orderBy ( TBook_ID ( ) ) \n + . fetch ( ) ; \n + } \n + \n protected final String zeroDate ( ) { \n return new Date ( NUMBER0 ) . toString ( ) ; \n }", "msg_token": "Added test utility method"} {"diff": " public class ConcurrencyUtil { \n } ) ; \n } \n public static ScheduledExecutorService newSingleScheduledThreadExecutor ( @ nonnls final String threadFactoryName ) { \n - ScheduledThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor ( NUMBER0 ) ; \n - threadPoolExecutor . setThreadFactory ( new ThreadFactory ( ) { \n + return new ScheduledThreadPoolExecutor ( NUMBER0 , new ThreadFactory ( ) { \n public Thread newThread ( final Runnable r ) { \n return new Thread ( r , threadFactoryName ) ; \n } \n } ) ; \n - return threadPoolExecutor ; \n } \n }", "msg_token": "avoid anonymous thread"} {"diff": " public class DirectoryIndexTest extends IdeaTestCase { \n \n checkInfo ( myResDir , myModule , true , false , STRING0 , JavaResourceRootType . RESOURCE , myModule ) ; \n \n - SINGLE \n - SINGLE \n + checkInfo ( myExcludedLibSrcDir , null , true , false , STRING1 , null , myModule3 , myModule ) ; \n + checkInfo ( myExcludedLibClsDir , null , true , false , STRING2 , null , myModule3 ) ; \n } \n \n \n public class DirectoryIndexTest extends IdeaTestCase { \n assertEquals ( packageName , fileIndex . getPackageNameByDirectory ( dir ) ) ; \n } \n \n - assertEquals ( modulesOfOrderEntries . length , info . getOrderEntries ( ) . length ) ; \n + assertEquals ( Arrays . toString ( info . getOrderEntries ( ) ) , modulesOfOrderEntries . length , info . getOrderEntries ( ) . length ) ; \n for ( Module aModule : modulesOfOrderEntries ) { \n OrderEntry found = info . findOrderEntryWithOwnerModule ( aModule ) ; \n - assertNotNull ( found ) ; \n + assertNotNull ( STRING3 + aModule , found ) ; \n } \n }", "msg_token": "DirectoryIndexTest reflecting current state of excluded lib dirs under module content"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class DateFormatterTest extends AndroidTestCase { \n protected void setUp ( ) throws Exception { \n public class DateFormatterTest extends AndroidTestCase { \n } \n \n public void test24Hours ( ) { \n - SharedPreferences prefs = MainActivity . getPrefs ( getContext ( ) ) ; \n + SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( getContext ( ) ) ; \n prefs . edit ( ) . putBoolean ( SettingsFragment . TIMESTAMPS_24H , true ) . commit ( ) ; \n assertTrue ( DateFormatter . accountFor24HourTime ( getContext ( ) , new SimpleDateFormat ( STRING0 ) ) . equals ( new SimpleDateFormat ( STRING1 ) ) ) ; \n prefs . edit ( ) . putBoolean ( SettingsFragment . TIMESTAMPS_24H , false ) . commit ( ) ;", "msg_token": "Fix test case"} {"diff": " import static NAMESPACE ; \n COMMENT \n public class MBeanServerConnectionFactoryBeanTests extends AbstractMBeanServerTests { \n \n - private static final String SERVICE_URL = STRING0 ; \n + private static final String SERVICE_URL = STRING1 ; \n \n private JMXServiceURL getServiceUrl ( ) throws MalformedURLException { \n return new JMXServiceURL ( SERVICE_URL ) ;", "msg_token": "Try a different mbean port"} {"diff": " public class QueryThenFetchConsumer implements Consumer { \n collectSymbols , \n ImmutableList . < Projection > of ( ) , \n orderBy , \n - table . querySpec ( ) . limit ( ) + table . querySpec ( ) . offset ( ) \n + MoreObjects . firstNonNull ( table . querySpec ( ) . limit ( ) , Constants . DEFAULT_SELECT_LIMIT ) + table . querySpec ( ) . offset ( ) \n ) ; \n collectNode . keepContextForFetcher ( true ) ;", "msg_token": "fixed NPE when applying limit on CollectNode"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ThreeStateCheckBox extends JCheckBox { \n if ( icon == null ) { \n icon = UIManager . getIcon ( STRING0 ) ; \n } \n - \n + if ( UIUtil . isUnderDarcula ( ) || UIUtil . isUnderIntelliJLaF ( ) ) { \n + icon = EmptyIcon . create ( NUMBER0 , NUMBER1 ) ; \n + } \n if ( icon != null ) { \n final Insets i = getInsets ( ) ; \n final Rectangle r = getBounds ( ) ;", "msg_token": "fix three state check box under intellij and darcula lafs"} {"diff": " import NAMESPACE ; \n \n public class DefaultFunctionalSourceSet extends AddOnlyRuleAwarePolymorphicDomainObjectContainer < LanguageSourceSet > implements FunctionalSourceSet { \n private final String name ; \n - private final ProjectSourceSet projectSourceSet ; \n \n public DefaultFunctionalSourceSet ( String name , Instantiator instantiator , final ProjectSourceSet projectSourceSet ) { \n super ( LanguageSourceSet . class , instantiator ) ; \n this . name = name ; \n - this . projectSourceSet = projectSourceSet ; \n whenObjectAdded ( new Action < LanguageSourceSet > ( ) { \n public void execute ( LanguageSourceSet languageSourceSet ) { \n projectSourceSet . add ( languageSourceSet ) ;", "msg_token": "Removed redundant field"} {"diff": " public class MetricsServlet extends HttpServlet { \n json . writeStartObject ( ) ; \n { \n \n + json . writeFieldName ( STRING0 ) ; \n + json . writeStartObject ( ) ; \n + { \n + json . writeStringField ( STRING1 , vmName ( ) ) ; \n + json . writeStringField ( STRING2 , vmVersion ( ) ) ; \n + } \n + json . writeEndObject ( ) ; \n json . writeFieldName ( STRING3 ) ; \n json . writeStartObject ( ) ; \n {", "msg_token": "Added vm name and version to metrics json"} {"diff": " public class PublisherInterceptor extends AbstractLifecycleInterceptor { \n try { \n HttpService httpService = getHttpService ( context , false ) ; \n if ( httpService != null ) \n - httpService . unregister ( STRING0 ) ; \n + httpService . unregister ( STRING1 ) ; \n } finally { \n SINGLE \n Thread . currentThread ( ) . setContextClassLoader ( ctxLoader ) ;", "msg_token": "Fix interceptor unregisters not the same context that it registered"} {"diff": " public class AudioService extends IAudioService . Stub { \n AudioSystem . setDeviceConnectionState ( \n spec . mDeviceType , \n AudioSystem . DEVICE_STATE_AVAILABLE , \n - ( String ) device . getValue ( ) , \n - STRING0 ) ; \n + spec . mDeviceAddress , \n + spec . mDeviceName ) ; \n } \n } \n SINGLE", "msg_token": "fix String cast crash when mediaserver killed"} {"diff": " public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter { \n if ( groupPosition == NUMBER0 ) { \n headerString = context . getString ( R . string . queue_label ) ; \n if ( ! queueItems . isEmpty ( ) ) { \n - headerString += STRING0 + queueItems . size ( ) + STRING1 ; \n + headerString += STRING0 + getChildrenCount ( GROUP_POS_QUEUE ) + STRING1 ; \n } \n } else { \n headerString = context . getString ( R . string . new_label ) ; \n if ( ! unreadItems . isEmpty ( ) ) { \n - headerString += STRING0 + unreadItems . size ( ) + STRING1 ; \n + headerString += STRING0 + getChildrenCount ( GROUP_POS_UNREAD ) + STRING1 ; \n } \n } \n headerTitle . setText ( headerString ) ;", "msg_token": "Headers displayed wrong number of episodes in some cases"} {"diff": " public class DraggableView extends RelativeLayout { \n return false ; \n } \n \n + private boolean isMinimized ( ) { \n + return dragView . getTop ( ) == ( getHeight ( ) - dragView . getHeight ( ) ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add method to know if dragView is minimized based on dragView top position and view height"} {"diff": " public abstract class Plugin { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void onIndexService ( IndexService indexService ) { } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PluginsService extends AbstractComponent { \n for ( Tuple < PluginInfo , Plugin > plugin : plugins ) { \n plugin . v2 ( ) . onIndexModule ( indexModule ) ; \n } \n - indexModule . addIndexEventListener ( new IndexEventListener ( ) { \n - @ override \n - public void afterIndexCreated ( IndexService indexService ) { \n - for ( Tuple < PluginInfo , Plugin > plugin : plugins ) { \n - plugin . v2 ( ) . onIndexService ( indexService ) ; \n - } \n - } \n - } ) ; \n } \n COMMENT \n COMMENT", "msg_token": "Remove Plugin onIndexService"} {"diff": " public class GitCheckinEnvironment implements CheckinEnvironment { \n myPanel = new JPanel ( new GridBagLayout ( ) ) ; \n myPanel . add ( authorLabel , gb . nextLine ( ) . next ( ) ) ; \n myPanel . add ( myAuthorField , gb . next ( ) . fillCellHorizontally ( ) . weightx ( NUMBER0 ) ) ; \n - myPanel . add ( mySignOffCheckbox , gb . nextLine ( ) . next ( ) . coverLine ( ) ) ; \n myPanel . add ( myAmendComponent . getComponent ( ) , gb . nextLine ( ) . next ( ) . coverLine ( ) ) ; \n + myPanel . add ( mySignOffCheckbox , gb . nextLine ( ) . next ( ) . coverLine ( ) ) ; \n } \n \n @ notnull", "msg_token": "move sign off checkbox below amend"} {"diff": " public final class IOConverter { \n } \n return toInputStream ( text . getBytes ( ) ) ; \n } \n + \n + @ converter \n + public static InputStream toInputStream ( BufferedReader buffer ) throws IOException { \n + return toInputStream ( toString ( buffer ) , null ) ; \n + } \n \n @ converter \n public static InputStream toInputStream ( BufferedReader buffer , Exchange exchange ) throws IOException {", "msg_token": "Fixed the build error of FixConverter"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n abstract class VirtualFileImpl extends VirtualFile implements VirtualFileWithId {", "msg_token": "moved off the testFramework made thread safe"} {"diff": " public class ShutdownTimeout \n COMMENT \n COMMENT \n COMMENT \n - public static final long SHUTDOWN_TIMEOUT_DEFAULT = NUMBER0 ; SINGLE \n + public static final long SHUTDOWN_TIMEOUT_DEFAULT = NUMBER1 ; SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Increase hard shutdown timeout as discussed with Emil"} {"diff": " public class UltimateRecyclerView extends FrameLayout implements Scrollable { \n mEmpty . setVisibility ( View . GONE ) ; \n \n \n + } \n + \n + public void setEmptyView ( int emptyResourceId ) { \n + mEmptyId = emptyResourceId ; \n + \n + mEmpty . setLayoutResource ( mEmptyId ) ; \n + if ( mEmptyId != NUMBER0 ) \n + mEmptyView = mEmpty . inflate ( ) ; \n + mEmpty . setVisibility ( View . GONE ) ; \n + } \n \n + public void showEmptyView ( ) { \n + if ( mEmptyId != NUMBER0 ) \n + mEmpty . setVisibility ( View . VISIBLE ) ; \n + } \n \n + public void hideEmptyView ( ) { \n + if ( mEmptyId != NUMBER0 ) \n + mEmpty . setVisibility ( View . GONE ) ; \n } \n \n - public void showFloatingButtonView ( ) { \n + public void showFloatingButtonView ( ) { \n if ( mFloatingButtonId != NUMBER0 ) { \n mFloatingButtonView = mFloatingButtonViewStub . inflate ( ) ; \n mFloatingButtonView . setVisibility ( View . VISIBLE ) ;", "msg_token": "add setEmptyView showEmptyView hideEmptyView in URV"} {"diff": " public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo \n } \n myFilters . setForceUseAllFilters ( true ) ; \n myHeavyUpdateTicket = NUMBER0 ; \n - myHeavyAlarm = myFilters . isAnyHeavy ( ) ? new Alarm ( Alarm . ThreadToUse . SHARED_THREAD , this ) : null ; \n + myHeavyAlarm = myFilters . isAnyHeavy ( ) ? new Alarm ( Alarm . ThreadToUse . POOLED_THREAD , this ) : null ; \n \n \n ConsoleInputFilterProvider [ ] inputFilters = Extensions . getExtensions ( ConsoleInputFilterProvider . INPUT_FILTER_PROVIDERS ) ;", "msg_token": "apply heavy filters on a non shared thread"} {"diff": " public class Http11AprProtocol implements ProtocolHandler , MBeanRegistration { \n if ( log . isInfoEnabled ( ) ) \n log . info ( sm . getString ( STRING0 , getName ( ) ) ) ; \n endpoint . destroy ( ) ; \n + cHandler . recycledProcessors . clear ( ) ; \n if ( tpOname != null ) \n Registry . getRegistry ( null , null ) . unregisterComponent ( tpOname ) ; \n if ( rgOname != null )", "msg_token": "Fix unit test failure with APR connector"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler { \n } \n \n mConfig . setCustomSSLContext ( sslContext ) ; \n - mConfig . setEnabledCipherSuites ( XMPPCertPins . SSL_IDEAL_CIPHER_SUITES ) ; \n + \n + int currentapiVersion = android . os . Build . VERSION . SDK_INT ; \n + if ( currentapiVersion >= android . os . Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { \n + mConfig . setEnabledCipherSuites ( XMPPCertPins . SSL_IDEAL_CIPHER_SUITES ) ; \n + } \n mConfig . setCallbackHandler ( this ) ; \n \n } else {", "msg_token": "don t use custom cipher suites on older devices may not support them"} {"diff": " public class ChatWindow \n \n if ( getExtendedState ( ) != JFrame . ICONIFIED ) \n { \n - if ( ConfigurationManager . isAutoPopupNewMessage ( ) || setSelected ) \n + if ( ConfigurationManager . isAutoPopupNewMessage ( ) || setSelected ) \n { \n if ( ! isVisible ( ) ) \n setVisible ( true ) ; \n \n toFront ( ) ; \n } \n - else \n + else if ( ! isWindowVisible ) \n { \n setFocusableWindowState ( false ) ; \n setVisible ( true ) ;", "msg_token": "Fixes lost focus in chat window when receiving messages while typing"} {"diff": " public final class PrintManager { \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", "msg_token": "Updated print docs"} {"diff": " public class SelectBox extends Widget { \n \n public void hideList ( ) { \n if ( list . getParent ( ) == null ) return ; \n - \n - getStage ( ) . removeCaptureListener ( list . stageListener ) \n + \n + getStage ( ) . removeCaptureListener ( list . stageListener ) ; \n list . addAction ( sequence ( fadeOut ( FLOAT0 , Interpolation . fade ) , removeActor ( ) ) ) ; \n }", "msg_token": "Missing semicolon bad PR"} {"diff": " public class AbstractSObjectBase extends AbstractDTOBase { \n private String LastActivityDate ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final void clearBaseFields ( ) { \n attributes = null ; \n Id = null ; \n OwnerId = null ; \n IsDeleted = null ; \n - Name = null ; \n CreatedDate = null ; \n CreatedById = null ; \n LastModifiedDate = null ;", "msg_token": "Allow clearing of field Name for upserts in Salesforce component"} {"diff": " public class AnalysisScope { \n myModule = null ; \n myScope = null ; \n myElement = psiDirectory ; \n - if ( psiDirectory . getPackage ( ) != null ) { \n - myType = DIRECTORY ; \n - } \n - else { \n - myType = INVALID ; \n - } \n + myType = DIRECTORY ; \n } \n \n public AnalysisScope ( PsiPackage psiPackage ) {", "msg_token": "enable analyzing dirs not only packages integrate"} {"diff": " final class ObjectType implements TypeWithProperties { \n if ( ! hasNonPrototypeProperties ( ) ) { \n if ( fn != null ) { \n return fn . appendTo ( builder ) ; \n - } else if ( nominalType != null ) { \n - return nominalType . appendTo ( builder ) ; \n + } else if ( getNominalType ( ) != null ) { \n + return getNominalType ( ) . appendTo ( builder ) ; \n } \n } \n if ( nominalType != null && ! nominalType . getName ( ) . equals ( STRING0 ) ) {", "msg_token": "NTI Print Object as Object rather than"} {"diff": " public class NetworkService extends AbstractComponent { \n COMMENT \n COMMENT \n COMMENT \n - InetAddress resolveDefault ( ) ; \n + InetAddress resolveDefault ( ) throws IOException ; \n \n COMMENT \n COMMENT \n COMMENT \n - InetAddress resolveIfPossible ( String value ) ; \n + InetAddress resolveIfPossible ( String value ) throws IOException ; \n } \n \n private final List < CustomNameResolver > customNameResolvers = new CopyOnWriteArrayList < CustomNameResolver > ( ) ;", "msg_token": "add throws IOException to CustomNameResolver interface"} {"diff": " public class WindowLayersController { \n } \n \n layer = assignAndIncreaseLayerIfNeeded ( mDockDivider , layer ) ; \n - \n - SINGLE \n - if ( mDockDivider != null && mService . mInputMethodWindow != null ) { \n - layer = assignAndIncreaseLayerIfNeeded ( mService . mInputMethodWindow , layer ) ; \n - } \n - \n SINGLE \n SINGLE \n SINGLE \n public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n if ( fl == NUMBER0 || fl == ( FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM ) \n - || type == TYPE_APPLICATION_STARTING ) { \n + || type == TYPE_APPLICATION_STARTING || type == TYPE_DOCK_DIVIDER ) { \n if ( DEBUG_INPUT_METHOD ) { \n Slog . i ( TAG_WM , STRING0 + w + STRING1 + w . isVisibleOrAdding ( ) ) ; \n if ( ! w . isVisibleOrAdding ( ) ) {", "msg_token": "Revert Do not set docked divider as IME target"} {"diff": " public interface FrameworkConfig { \n COMMENT \n COMMENT \n COMMENT \n - String TRANSPORT_IN_USE = AtmosphereConfig . class . getName ( ) + STRING0 ; \n + String TRANSPORT_IN_USE = FrameworkConfig . class . getName ( ) + STRING0 ; \n COMMENT \n COMMENT \n COMMENT \n public interface FrameworkConfig { \n COMMENT \n COMMENT \n String CDI_INJECTOR = STRING1 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + String MAPPED_PATH = AtmosphereHandler . class . getName ( ) + STRING2 ; \n + \n \n } \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultEndpointMapper < U > implements EndpointMapper < U > { \n } \n } \n } \n + req . setAttribute ( FrameworkConfig . MAPPED_PATH , path ) ; \n return handler ; \n }", "msg_token": "Allow framework to discover which path mapped them"} {"diff": " public interface GraphService { \n COMMENT \n COMMENT \n public int evictAll ( ) ; \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public GraphSourceFactory getGraphSourceFactory ( ) ; \n }", "msg_token": "Add some javadoc comment to GraphService interface"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ runwith ( HazelcastParallelClassRunner . class ) \n + @ category ( { QuickTest . class , ParallelTest . class } ) \n public class ProxySplitBrainTest extends SplitBrainTestSupport { \n \n @ override \n public class ProxySplitBrainTest extends SplitBrainTestSupport { \n } \n } ) ; \n } \n - } \n + }", "msg_token": "Add missing Category to ProxySplitBrainTest"} {"diff": " public class PinnedSectionListView extends ListView { \n SINGLE \n post ( new Runnable ( ) { \n @ override public void run ( ) { \n + ListAdapter adapter = getAdapter ( ) ; \n + if ( adapter == null ) return ; SINGLE \n \n SINGLE \n int firstVisiblePosition = getFirstVisiblePosition ( ) ;", "msg_token": "restore state checks for not set adapter"} {"diff": " public class BooksIntegrationTest { \n } \n } \n \n - @ test \n - public void wontFindBook ( ) { \n - try { \n - getResponse ( STRING0 , STRING1 + bookId , null ) ; \n - } catch ( Exception e ) { \n - if ( e instanceof FileNotFoundException ) { \n - assertTrue ( true ) ; \n - } else { \n - e . printStackTrace ( ) ; \n - throw new RuntimeException ( e ) ; \n - } \n - } \n + @ test ( expected = FileNotFoundException . class ) \n + public void wontFindBook ( ) throws IOException { \n + getResponse ( STRING0 , STRING1 + bookId , null ) ; \n } \n \n private static UrlResponse doMethod ( String requestMethod , String path , String body ) {", "msg_token": "use JUnit syntax to expect an exception in wontFindBook"} {"diff": " public class LruCache < K , V > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void resize ( int maxSize ) { \n + if ( maxSize <= NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + \n + synchronized ( this ) { \n + this . maxSize = maxSize ; \n + } \n + trimToSize ( maxSize ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class LruCache < K , V > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public synchronized final int hitCount ( ) { \n return hitCount ;", "msg_token": "Add LruCache resize to the support library"} {"diff": " public class WalletTest extends TestWithWallet { \n assertArrayEquals ( address . getHash160 ( ) , tx . getOutput ( NUMBER0 ) . getScriptPubKey ( ) . getPubKeyHash ( ) ) ; \n } \n \n - @ test \n + SINGLE \n public void fragmentedReKeying ( ) throws Exception { \n SINGLE \n ECKey key = new ECKey ( ) ;", "msg_token": "Disable fragmentedRekeying test for now as bouncy castle is so slow at signature generation"} {"diff": " public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha \n SINGLE \n MUCRoom room = getChatRoom ( name ) ; \n if ( room != null && room . isPublicRoom ( ) ) { \n - MUCRole role ; \n Element item ; \n - for ( Iterator < MUCRole > members = room . getOccupants ( ) ; members . hasNext ( ) ; ) { \n + for ( MUCRole role : room . getOccupants ( ) ) { \n SINGLE \n - role = members . next ( ) ; \n item = DocumentHelper . createElement ( STRING0 ) ; \n item . addAttribute ( STRING1 , role . getRoleAddress ( ) . toStringPrep ( ) ) ;", "msg_token": "Modified methods that were receiveing an Iterator to receive a Collection"} {"diff": " abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param \n if ( isSupervised ( ) ) \n error ( STRING0 , STRING1 + _parms . _response_column + STRING2 ) ; \n } else { \n + if ( _response == _offset ) \n + error ( STRING3 , STRING4 ) ; \n + if ( _response == _weights ) \n + error ( STRING3 , STRING5 ) ; \n + if ( _response == _fold ) \n + error ( STRING3 , STRING6 ) ; \n _train . add ( _parms . _response_column , _response ) ; \n ++ res ; \n }", "msg_token": "Disallow the response to be the same as fold offset weights"} {"diff": " public class TextureUtil { \n internalFormat = ARBTextureFloat . GL_LUMINANCE_ALPHA16F_ARB ; \n format = GL_LUMINANCE_ALPHA ; \n dataType = GL_UNSIGNED_BYTE ; \n + break ; \n case Intensity8 : \n internalFormat = GL_INTENSITY8 ; \n format = GL_INTENSITY ; \n public class TextureUtil { \n internalFormat = GL_LUMINANCE8_ALPHA8 ; \n format = GL_LUMINANCE_ALPHA ; \n dataType = GL_UNSIGNED_BYTE ; \n + break ; \n case Luminance16Alpha16 : \n internalFormat = GL_LUMINANCE16_ALPHA16 ; \n format = GL_LUMINANCE_ALPHA ; \n dataType = GL_UNSIGNED_BYTE ; \n + break ; \n case Luminance16 : \n internalFormat = GL_LUMINANCE16 ; \n format = GL_LUMINANCE ;", "msg_token": "Fixed some luminance alpha formats failing due to missing break statement under switch"} {"diff": " public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters , \n COMMENT \n COMMENT \n COMMENT \n - public int _stopping_rounds = NUMBER0 ; \n + public int _stopping_rounds = NUMBER1 ; \n \n COMMENT \n COMMENT", "msg_token": "Disable convergence based early stopping for GBM DRF by default for now"} {"diff": " public class WorldEditCommands { \n min = NUMBER0 , \n max = - NUMBER1 \n ) \n + @ commandpermissions ( STRING0 ) \n @ console \n public void help ( CommandContext args , LocalSession session , LocalPlayer player , \n EditSession editSession ) throws WorldEditException {", "msg_token": "Add permissions node for help command"} {"diff": " public class PyTestRunConfiguration extends AbstractPythonRunConfiguration { \n SINGLE \n File runner = null ; \n File bin_dir = bin_path . getParentFile ( ) ; \n + if ( bin_dir == null ) return null ; \n runner = new File ( bin_dir , PY_TEST ) ; \n if ( runner . exists ( ) ) return runner . getPath ( ) ; \n runner = new File ( new File ( bin_dir , STRING0 ) , PY_TEST ) ;", "msg_token": "avoiding exceptions when running WebIDE from IDEA"} {"diff": " public class SortParseElement implements SearchParseElement { \n addSortField ( context , sortFields , parser . text ( ) , false , false , null , null , null , null ) ; \n } \n } \n - } else { \n + } else if ( token == XContentParser . Token . VALUE_STRING ) { \n + addSortField ( context , sortFields , parser . text ( ) , false , false , null , null , null , null ) ; \n + } else if ( token == XContentParser . Token . START_OBJECT ) { \n addCompoundSortField ( parser , context , sortFields ) ; \n + } else { \n + throw new ElasticSearchIllegalArgumentException ( STRING0 ) ; \n } \n if ( ! sortFields . isEmpty ( ) ) { \n SINGLE", "msg_token": "field throws misleading errors"} {"diff": " public class GraphHopper implements GraphHopperAPI \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public GraphHopper forServer ( ) \n { \n - SINGLE \n setSimplifyResponse ( true ) ; \n return setInMemory ( ) ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public GraphHopper forDesktop ( ) \n { \n public class GraphHopper implements GraphHopperAPI \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public GraphHopper forMobile ( ) \n {", "msg_token": "improved docs for GraphHopper forXY"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class DisposableTaskListFragment extends TaskListFragment { \n @ override \n public void onDetach ( ) { \n Activity activity = getActivity ( ) ; \n - if ( activity instanceof TaskListActivity ) { \n + if ( activity instanceof TaskListActivity && \n + Preferences . getIntegerFromString ( R . string . p_swipe_lists_performance_key , NUMBER0 ) > NUMBER0 ) { \n TaskListActivity tla = ( TaskListActivity ) activity ; \n if ( tla . getFragmentLayout ( ) == AstridActivity . LAYOUT_SINGLE ) \n tla . getFragmentPagerAdapter ( ) . remove ( filter ) ;", "msg_token": "Fixed a bug in the DisposableTaskListFragment"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OgreXMLDataObject extends SpatialAssetDataObject { \n super ( pf , loader ) ; \n } \n \n + @ override \n + public ModelKey getAssetKey ( ) { \n + if ( super . getAssetKey ( ) instanceof OgreMeshKey ) { \n + return ( OgreMeshKey ) assetKey ; \n + } \n + assetKey = new OgreMeshKey ( super . getAssetKey ( ) . getName ( ) ) ; \n + return ( OgreMeshKey ) assetKey ; \n + } \n + \n }", "msg_token": "add OgreMeshKey support to OgreXMLDataObject"} {"diff": " public class JmeLightProbe extends JmeLight { \n } \n \n set . put ( makeProperty ( obj , Vector3f . class , STRING0 , STRING1 , STRING2 ) ) ; \n - SINGLE \n + set . put ( makeEmbedProperty ( obj . getBounds ( ) , obj . getBounds ( ) . getClass ( ) , float . class , STRING3 , STRING4 , STRING5 ) ) ; \n + \n sheet . put ( set ) ; \n return sheet ;", "msg_token": "Added a way to change the lightProbe radius in the property panel"} {"diff": " public final class Response { \n this . body = body ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ deprecated \n public Response ( int status , String reason , List < Header > headers , TypedInput body ) { \n if ( status < NUMBER0 ) {", "msg_token": "Add comment for now deprecated Response constructor"} {"diff": " public class AssistManager { \n } \n \n final boolean isService = isAssistantService ( ) ; \n - if ( isService || ! isVoiceSessionRunning ( ) ) { \n + if ( ! isService || ! isVoiceSessionRunning ( ) ) { \n showOrb ( ) ; \n mView . postDelayed ( mHideRunnable , isService \n ? TIMEOUT_SERVICE \n public class AssistManager { \n mAssistUtils . launchVoiceAssistFromKeyguard ( ) ; \n } \n \n - private boolean getVoiceInteractorSupportsAssistGesture ( ) { \n - return mAssistUtils . activeServiceSupportsAssistGesture ( ) ; \n - } \n - \n public boolean canVoiceAssistBeLaunchedFromKeyguard ( ) { \n return mAssistUtils . activeServiceSupportsLaunchFromKeyguard ( ) ; \n }", "msg_token": "Don t show orb when voice session is already running"} {"diff": " public @ interface JSONType { \n \n Class < ? > builder ( ) default Void . class ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n String typeName ( ) default STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n Class < ? > [ ] seeAlso ( ) default { } ; \n }", "msg_token": "add java doc since"} {"diff": " public class RandomUtils { \n } \n return str . toString ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static int getRandom ( int max ) { \n + return getRandom ( NUMBER0 , max ) ; \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 + public static int getRandom ( int min , int max ) { \n + if ( min > max ) { \n + return NUMBER0 ; \n + } \n + if ( min == max ) { \n + return min ; \n + } \n + \n + Random random = new Random ( ) ; \n + return min + random . nextInt ( max - min ) ; \n + } \n }", "msg_token": "add getRandom int max"} {"diff": " public class MyFragmentActivityTest { \n assertThat ( activity . myFragment2 ) . isNotNull ( ) ; \n } \n \n + @ test \n + public void can_inject_native_fragment_with_with_default_tag ( ) { \n + assertThat ( activity . myFragmentTag ) . isNotNull ( ) ; \n + } \n + \n + @ test \n + public void can_inject_native_fragment_with_with_tag ( ) { \n + assertThat ( activity . myFragmentTag2 ) . isNotNull ( ) ; \n + } \n + \n }", "msg_token": "Add tests for FragmentByTag"} {"diff": " public class LengthFieldBasedFrameDecoder extends ByteToMessageDecoder { \n COMMENT \n COMMENT \n protected ByteBuf extractFrame ( ChannelHandlerContext ctx , ByteBuf buffer , int index , int length ) { \n - ByteBuf frame = ctx . alloc ( ) . buffer ( length ) ; \n - frame . writeBytes ( buffer , index , length ) ; \n - return frame ; \n + return buffer . slice ( index , length ) . retain ( ) ; \n } \n \n private void fail ( long frameLength ) {", "msg_token": "Remove memory copy when extract frame in LengthFieldBasedFrameDecoder"} {"diff": " public class BubbleDraggable extends BubbleView implements Draggable { \n \n @ override \n public void onOrientationChanged ( ) { \n - switchToBubbleView ( ) ; \n + if ( mMode == Mode . BubbleView ) { \n + switchToBubbleView ( ) ; \n + } else { \n + switchToExpandedView ( ) ; \n + } \n } \n \n public void clearTargetPos ( ) { \n public class CanvasView extends FrameLayout { \n @ suppresswarnings ( STRING0 ) \n @ subscribe \n public void onOrientationChanged ( MainController . OrientationChangedEvent e ) { \n - fadeOut ( ) ; \n for ( int i = NUMBER0 ; i < mTargets . size ( ) ; ++ i ) { \n BubbleTargetView bt = mTargets . get ( i ) ; \n bt . OnOrientationChanged ( ) ;", "msg_token": "During orientation change consider current mode"} {"diff": " public class InputTypeUtil { \n } \n \n int hOut = ( inHeight - kH + NUMBER0 * padH ) / sH + NUMBER1 ; \n - int wOut = ( inWidth - kW + NUMBER0 * padW ) / sH + NUMBER1 ; \n + int wOut = ( inWidth - kW + NUMBER0 * padW ) / sW + NUMBER1 ; \n return InputType . convolutional ( hOut , wOut , outputDepth ) ; \n }", "msg_token": "Fix width calculation in InputTypeUtil"} {"diff": " public class SidePanel extends JPanel { \n \n @ override \n public String getCaptionAboveOf ( final Object value ) { \n - String text = myIndex2Separator . get ( myPlaces . indexOf ( value ) ) ; \n - return text != null && Registry . is ( STRING0 ) ? text . toUpperCase ( ) : text ; \n + return myIndex2Separator . get ( myPlaces . indexOf ( value ) ) ; \n } \n } ;", "msg_token": "do not capitalize titles"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class MagicLinkSignInActivity extends SignInActivity implements WPComMagicLinkFragment . OnMagicLinkFragmentInteraction , MagicLinkSignInFragment . OnMagicLinkRequestListener { \n - private String mEmail = STRING0 ; \n - \n @ override \n protected void onResume ( ) { \n super . onResume ( ) ;", "msg_token": "Removing unused member variable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebDavStore extends Store \n response . getStatusLine ( ) . toString ( ) ) ; \n } \n } \n + catch ( SSLException e ) \n + { \n + throw new CertificateValidationException ( e . getMessage ( ) , e ) ; \n + } \n catch ( IOException ioe ) \n { \n Log . e ( K9 . LOG_TAG , STRING0 + ioe + STRING1 + processException ( ioe ) ) ;", "msg_token": "Fix the ability to accept invalid SSL certificates for exchange support"} {"diff": " public class TourViewActivity extends SherlockFragmentActivity { \n FragmentManager fragmentManager = getSupportFragmentManager ( ) ; \n Fragment fragment = fragments . get ( item ) ; \n if ( new Integer ( R . string . sherpafy_tours ) . equals ( item ) ) { \n - if ( fragment == null ) { \n + if ( fragment == null || fragment . getActivity ( ) == null ) { \n fragment = new SherpafySelectToursFragment ( ) ; \n fragments . put ( item , fragment ) ; \n } else {", "msg_token": "Fixed null reference on backPressed in Sherpafy"} {"diff": " public class SimpleMapTest { \n System . out . println ( STRING0 + VALUE_SIZE ) ; \n System . out . println ( STRING1 + GET_PERCENTAGE ) ; \n System . out . println ( STRING2 + PUT_PERCENTAGE ) ; \n + System . out . println ( STRING3 + ( NUMBER0 - ( PUT_PERCENTAGE + GET_PERCENTAGE ) ) ) ; \n ExecutorService es = Executors . newFixedThreadPool ( THREAD_COUNT ) ; \n for ( int i = NUMBER1 ; i < THREAD_COUNT ; i ++ ) { \n es . submit ( new Runnable ( ) {", "msg_token": "Desplay remove percentage"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class PullToRefreshHelper implements OnRefreshListener { \n - private static String NEED_PTR_TIP = STRING0 ; \n + private static final String NEED_PTR_TIP = STRING0 ; \n private PullToRefreshHeaderTransformer mHeaderTransformer ; \n private PullToRefreshLayout mPullToRefreshLayout ; \n private RefreshListener mRefreshListener ; \n public class PullToRefreshHelper implements OnRefreshListener { \n createTipView ( activity ) ; \n } \n \n - public void setTipViewTopMargin ( int topMargin ) { \n - if ( mShowTip && mOnTopMessage != null ) { \n - mOnTopMessage . setTopMargin ( topMargin ) ; \n - } \n - } \n - \n public void setRefreshing ( boolean refreshing ) { \n mHeaderTransformer . setShowProgressBarOnly ( refreshing ) ; \n mPullToRefreshLayout . setRefreshing ( refreshing ) ;", "msg_token": "remove unused code and set a constant String final"} {"diff": " \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public interface EpisodeFlags { \n \n int UNWATCHED = NUMBER0 ; \n public class SeriesGuideContract { \n String FIRSTAIREDMS = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n String WATCHED = STRING1 ;", "msg_token": "Add better docs for watched flag"} {"diff": " public class HiveSplitManager \n recursiveDfsWalkerEnabled ) . get ( ) ; \n } \n \n - private Iterable < HivePartitionMetadata > getPartitionMetadata ( final Table table , final SchemaTableName tableName , List < HivePartition > partitions ) \n + private Iterable < HivePartitionMetadata > getPartitionMetadata ( Table table , SchemaTableName tableName , List < HivePartition > partitions ) \n throws NoSuchObjectException \n { \n if ( partitions . isEmpty ( ) ) { \n public class HiveSplitManager \n COMMENT \n COMMENT \n COMMENT \n - private static < T > Iterable < List < T > > partitionExponentially ( final List < T > values , final int minBatchSize , final int maxBatchSize ) \n + private static < T > Iterable < List < T > > partitionExponentially ( List < T > values , int minBatchSize , int maxBatchSize ) \n { \n return ( ) - > new AbstractIterator < List < T > > ( ) \n {", "msg_token": "Remove unnecessary final usage"} {"diff": " public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa \n SINGLE \n SINGLE \n double existingDirectWeight = v_u_weight + prepareWeighting . calcWeight ( outgoingEdges ) ; \n + if ( existingDirectWeight >= Double . MAX_VALUE ) \n + continue ; \n double existingDistSum = v_u_dist + outgoingEdges . getDistance ( ) ; \n algo . setLimitWeight ( existingDirectWeight ) \n . setLimitVisitedNodes ( ( int ) meanDegree * NUMBER0 )", "msg_token": "skip too high weights in preparation"} {"diff": " public class DeepWaterTest extends TestUtil { \n names [ i ] = STRING0 + i ; \n double [ ] vals = new double [ batch_size ] ; \n for ( int j = NUMBER0 ; j < batch_size ; ++ j ) { \n - int idx = i * batch_size + j ; SINGLE \n + int idx = j * classes + i ; SINGLE \n vals [ j ] = pred [ idx ] ; \n } \n classprobs [ i ] = Vec . makeVec ( vals , Vec . newKey ( ) ) ;", "msg_token": "Fix bug in indexing"} {"diff": " public class TestOpenSSLCipherConfigurationParser { \n \n TesterOpenSSL . removeUnimplementedCiphersJsse ( jsseCipherListFromParser ) ; \n \n - SINGLE \n - Assert . assertEquals ( jsseCipherListFromOpenSSL . toString ( ) , \n - jsseCipherListFromParser . toString ( ) ) ; \n + SINGLE \n + Assert . assertEquals ( jsseCipherListFromOpenSSL , jsseCipherListFromParser ) ; \n \n SINGLE \n SINGLE", "msg_token": "Remove incorrect ordering check"} {"diff": " public class MapInfoLayer extends OsmandMapLayer { \n registerSideWidget ( alt , R . drawable . ic_action_altitude , R . string . map_widget_altitude , STRING0 , false , NUMBER0 ) ; \n TextInfoWidget gpsInfo = mic . createGPSInfoControl ( map ) ; \n \n - registerSideWidget ( gpsInfo , R . drawable . ic_action_gps_info , R . string . map_widget_gps_info , STRING1 , false , NUMBER1 ) ; \n + registerSideWidget ( gpsInfo , R . drawable . ic_action_gps_info , R . string . map_widget_gps_info , STRING1 , false , NUMBER2 ) ; \n TextInfoWidget plainTime = ric . createPlainTimeControl ( map ) ; \n registerSideWidget ( plainTime , R . drawable . ic_action_time , R . string . map_widget_plain_time , STRING2 , false , NUMBER3 ) ; \n TextInfoWidget battery = ric . createBatteryControl ( map ) ;", "msg_token": "Move gps widget to bottom of position related group"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class StateTransitionLogger \n line . append ( STRING0 + transition . getMessage ( ) . getHeader ( FROM ) ) ; \n } \n \n + if ( transition . getMessage ( ) . hasHeader ( INSTANCE ) ) \n + { \n + line . append ( STRING1 + transition . getMessage ( ) . getHeader ( INSTANCE ) ) ; \n + } \n + \n if ( transition . getMessage ( ) . hasHeader ( CONVERSATION_ID ) ) \n { \n line . append ( STRING2 + transition . getMessage ( ) . getHeader ( CONVERSATION_ID ) ) ;", "msg_token": "Adds output of Paxos instance in StateTransitionLogger"} {"diff": " public class Utility { \n public static boolean domainFieldValid ( EditText view ) { \n if ( view . getText ( ) != null ) { \n String s = view . getText ( ) . toString ( ) ; \n - if ( s . matches ( STRING0 ) ) { \n + if ( s . matches ( STRING1 ) ) { \n return true ; \n } \n if ( s . matches ( STRING2 ) ) {", "msg_token": "Removed ability to add slashes url type parameters onto the server"} {"diff": " public class TemplateTest extends TestCase { \n Map binding = new HashMap ( ) ; \n binding . put ( STRING0 , STRING1 ) ; \n Template template = new SimpleTemplateEngine ( ) . createTemplate ( STRING2 ) ; \n - template . setBinding ( binding . getVariables ( ) ) ; \n + template . setBinding ( binding ) ; \n assertEquals ( STRING1 , template . toString ( ) ) ; \n } \n }", "msg_token": "fix the fix"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface ProtocolNegotiator { \n COMMENT \n COMMENT \n COMMENT \n - interface Handler extends ChannelInboundHandler { \n + interface Handler extends ChannelHandler { \n COMMENT \n COMMENT \n COMMENT \n public final class ProtocolNegotiators { \n return new ProtocolNegotiator ( ) { \n @ override \n public Handler newHandler ( final Http2ConnectionHandler handler ) { \n - class PlaintextHandler extends ChannelDuplexHandler implements Handler { \n + class PlaintextHandler extends ChannelHandlerAdapter implements Handler { \n @ override \n public void handlerAdded ( ChannelHandlerContext ctx ) throws Exception { \n SINGLE", "msg_token": "Negotiation Handlers should implement ChannelHandler"} {"diff": " public class MediaSessionService extends SystemService implements Monitor { \n final int pid = Binder . getCallingPid ( ) ; \n final int uid = Binder . getCallingUid ( ) ; \n final long token = Binder . clearCallingIdentity ( ) ; \n + if ( DEBUG ) { \n + Log . d ( TAG , STRING0 + pid + STRING1 + uid + STRING2 \n + + keyEvent ) ; \n + } \n \n try { \n synchronized ( mLock ) {", "msg_token": "Add extra logging for media button events"} {"diff": " public abstract class AbstractProtocol < S > implements ProtocolHandler , \n if ( upgradeProtocol != null ) { \n processor = upgradeProtocol . getProcessor ( \n wrapper , getProtocol ( ) . getAdapter ( ) ) ; \n - connections . put ( socket , processor ) ; \n } else if ( negotiatedProtocol . equals ( STRING0 ) ) { \n SINGLE \n SINGLE", "msg_token": "Remove unnecessary code"} {"diff": " public class SQLServer2005Dialect extends SQLServerDialect { \n return false ; \n } \n \n + @ override \n public boolean supportsVariableLimit ( ) { \n return false ; \n }", "msg_token": "Added Override to the supportsVariableLimit method"} {"diff": " enum Cipher { \n Protocol protocol , boolean export , EncryptionLevel level , boolean fipsCompatible , int strength_bits , \n int alg_bits , String . . . jsseAltNames ) { \n this . openSSLAlias = openSSLAlias ; \n - Set < String > names = new HashSet < String > ( ) ; \n + Set < String > names = new HashSet < > ( ) ; \n if ( jsseAltNames != null ) { \n names . addAll ( Arrays . asList ( jsseAltNames ) ) ; \n }", "msg_token": "Fix IDE warning"} {"diff": " public class DnsTestClient extends TestClientBase { \n } \n } ) ; \n \n - dns . lookup ( STRING0 , new Handler < AsyncResult < InetAddress > > ( ) { \n + dns . lookup4 ( STRING0 , new Handler < AsyncResult < Inet4Address > > ( ) { \n @ override \n - public void handle ( AsyncResult < InetAddress > event ) { \n + public void handle ( AsyncResult < Inet4Address > event ) { \n InetAddress result = event . result ( ) ; \n tu . azzert ( result != null ) ; \n tu . azzert ( STRING1 . equals ( result . getHostAddress ( ) ) ) ;", "msg_token": "Fix up a test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ weblistener \n public class GitblitContext extends GuiceServletContextListener { \n \n private static GitblitContext gitblit ;", "msg_token": "Dropped WebListener annotation"} {"diff": " public class GeoBroker extends Plugin { \n COMMENT \n COMMENT \n public void onDestroy ( ) { \n - this . networkListener . destroy ( ) ; \n - this . gpsListener . destroy ( ) ; \n - this . networkListener = null ; \n - this . gpsListener = null ; \n + if ( this . networkListener != null ) { \n + this . networkListener . destroy ( ) ; \n + this . networkListener = null ; \n + } \n + if ( this . gpsListener != null ) { \n + this . gpsListener . destroy ( ) ; \n + this . gpsListener = null ; \n + } \n } \n \n COMMENT", "msg_token": "Fix NPE on reset with undefined NetworkListener"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class BeanSerializer { \n } \n \n if ( propertyName != null ) { \n + FieldDescriptor fieldDescriptor = propertyDescriptor . getFieldDescriptor ( ) ; \n + \n + if ( fieldDescriptor != null ) { \n + if ( Modifier . isTransient ( fieldDescriptor . getField ( ) . getModifiers ( ) ) ) { \n + SINGLE \n + continue ; \n + } \n + } \n + \n onProperty ( propertyName , propertyType , propertyDescriptor ) ; \n } \n }", "msg_token": "Ignore properties with transient fields from serialization"} {"diff": " public class IndexService extends AbstractIndexComponent implements IndexCompone \n Injector shardInjector = null ; \n try { \n lock = nodeEnv . shardLock ( shardId , TimeUnit . SECONDS . toMillis ( NUMBER0 ) ) ; \n + indicesLifecycle . beforeIndexShardCreated ( shardId , indexSettings ) ; \n ShardPath path ; \n try { \n path = ShardPath . loadShardPath ( logger , nodeEnv , shardId , indexSettings ) ; \n public class IndexService extends AbstractIndexComponent implements IndexCompone \n throw new IndexShardAlreadyExistsException ( shardId + STRING0 ) ; \n } \n \n - indicesLifecycle . beforeIndexShardCreated ( shardId , indexSettings ) ; \n logger . debug ( STRING1 , shardId ) ; \n SINGLE \n final boolean canDeleteShardContent = IndexMetaData . isOnSharedFilesystem ( indexSettings ) == false ||", "msg_token": "Call beforeIndexShardCreated listener earlier in createShard"} {"diff": " public class PathManager { \n return ourSystemPath ; \n } \n \n - public static void ensureConfigFolderExists ( boolean userInteractionAllowed ) { \n + public static void ensureConfigFolderExists ( boolean userInteractionAllowed , final boolean createIfNotExists ) { \n getConfigPathWithoutDialog ( ) ; \n \n File file = new File ( ourConfigPath ) ; \n - if ( ! file . exists ( ) ) { \n + if ( createIfNotExists && ! file . exists ( ) ) { \n file . mkdirs ( ) ; \n if ( userInteractionAllowed ) { \n ConfigImportHelper . importConfigsTo ( ourConfigPath ) ; \n public class PathManager { \n } \n \n public static String getConfigPath ( boolean createIfNotExists ) { \n - if ( createIfNotExists ) { \n - ensureConfigFolderExists ( false ) ; \n - } \n + ensureConfigFolderExists ( false , createIfNotExists ) ; \n return ourConfigPath ; \n }", "msg_token": "Just broken path locking fixed"} {"diff": " public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { \n COMMENT \n COMMENT \n COMMENT \n + @ awaitsfix ( bugUrl = STRING0 ) \n public void testIndicesDeleted ( ) throws Exception { \n configureUnicastCluster ( NUMBER0 , null , NUMBER1 ) ; \n InternalTestCluster . Async < List < String > > masterNodes = internalCluster ( ) . startMasterOnlyNodesAsync ( NUMBER1 ) ;", "msg_token": "Add AwaitsFix annotation to the sporadically failing test"} {"diff": " public class CursorToMessage { \n values . put ( CallLog . Calls . DATE , getHeader ( message , Headers . DATE ) ) ; \n values . put ( CallLog . Calls . DURATION , Long . valueOf ( getHeader ( message , Headers . DURATION ) ) ) ; \n values . put ( CallLog . Calls . NEW , Integer . valueOf ( NUMBER0 ) ) ; \n + \n + PersonRecord record = lookupPerson ( getHeader ( message , Headers . ADDRESS ) ) ; \n + if ( ! record . unknown ) { \n + values . put ( CallLog . Calls . CACHED_NAME , record . name ) ; \n + } \n + \n break ; \n default : throw new MessagingException ( STRING0 + getDataType ( message ) ) ; \n }", "msg_token": "Do a name lookup on call restore"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ListenersNotifyingIntegrationTests extends AndroidTestCase { \n \n + private static final long ASYNC_TEST_TIMEOUT = NUMBER0 ; \n + \n private static class StubListener implements IBambooStorageListener { \n \n private AtomicBoolean mAddCalled = new AtomicBoolean ( false ) ; \n public class ListenersNotifyingIntegrationTests extends AndroidTestCase { \n private static void shouldBeTrueInNearFuture ( AtomicBoolean atomicBoolean ) { \n final long startTime = System . currentTimeMillis ( ) ; \n \n - while ( System . currentTimeMillis ( ) - startTime < NUMBER1 ) { \n + while ( System . currentTimeMillis ( ) - startTime < ASYNC_TEST_TIMEOUT ) { \n + try { \n + Thread . sleep ( NUMBER2 ) ; SINGLE \n + } catch ( InterruptedException e ) { \n + fail ( STRING0 + e ) ; \n + } \n + \n if ( atomicBoolean . get ( ) ) { \n return ; \n } \n } \n \n - fail ( STRING1 ) ; \n + fail ( STRING2 + ASYNC_TEST_TIMEOUT + STRING3 ) ; \n } \n \n public void testNotifyAboutAdd ( ) {", "msg_token": "test improved async tests in ListenersNotifyingIntegrationTests"} {"diff": " public class StreetlessStopLinker implements GraphBuilder { \n Coordinate c = ts . getCoordinate ( ) ; \n LOG . trace ( STRING0 , ts ) ; \n int n = NUMBER0 ; \n - for ( TransitStop other : index . getNearbyTransitStops ( c , NUMBER1 ) ) { \n + for ( TransitStop other : index . getNearbyTransitStops ( c , radius ) ) { \n int distance = ( int ) distanceLibrary . distance ( c , other . getCoordinate ( ) ) ; \n LOG . trace ( STRING1 , other , distance ) ; \n new SimpleTransfer ( ts , other , distance ) ;", "msg_token": "remove hard coded linking radius"} {"diff": " public class QueryRunner \n Optional < String > kerberosRemoteServiceName , \n boolean authenticationEnabled ) \n { \n - HttpClientConfig httpClientConfig = new HttpClientConfig ( ) . setConnectTimeout ( new Duration ( NUMBER0 , TimeUnit . SECONDS ) ) ; \n + HttpClientConfig httpClientConfig = new HttpClientConfig ( ) \n + . setConnectTimeout ( new Duration ( NUMBER1 , TimeUnit . SECONDS ) ) \n + . setRequestTimeout ( new Duration ( NUMBER1 , TimeUnit . SECONDS ) ) ; \n \n socksProxy . ifPresent ( httpClientConfig : : setSocksProxy ) ;", "msg_token": "Use shorter HTTP client timeout for CLI"} {"diff": " public class JZlibEncoder extends ZlibEncoder { \n \n SINGLE \n int maxOutputLength = ( int ) Math . ceil ( inputLength * FLOAT0 ) + NUMBER0 ; \n + out . ensureWritable ( maxOutputLength ) ; \n z . avail_out = maxOutputLength ; \n z . next_out = out . array ( ) ; \n z . next_out_index = out . arrayOffset ( ) + out . writerIndex ( ) ;", "msg_token": "Fix IndexOutOfBoundsException raised by JZlibEncoder encode"} {"diff": " public class UltimateRecyclerView extends FrameLayout implements Scrollable { \n COMMENT \n COMMENT \n if ( mAdapter . getAdapterItemCount ( ) == NUMBER0 ) { \n - mEmpty . setVisibility ( mEmptyId == NUMBER0 ? View . VISIBLE : View . GONE ) ; \n + mEmpty . setVisibility ( mEmptyId != NUMBER0 ? View . VISIBLE : View . GONE ) ; \n } \n if ( mAdapter . getCustomLoadMoreView ( ) == null ) return ; \n if ( mAdapter . getAdapterItemCount ( ) >= showLoadMoreItemNum && mAdapter . getCustomLoadMoreView ( ) . getVisibility ( ) == View . GONE ) {", "msg_token": "fix the empty view problem in UltimateRecyclerview"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SkipUpToDateTaskExecuter implements TaskExecuter { \n \n public void execute ( TaskInternal task , TaskStateInternal state , TaskExecutionContext context ) { \n LOGGER . debug ( STRING0 , task ) ; \n + Clock clock = new Clock ( ) ; \n TaskArtifactState taskArtifactState = repository . getStateFor ( task ) ; \n try { \n List < String > messages = new ArrayList < String > ( ) ; \n if ( taskArtifactState . isUpToDate ( messages ) ) { \n - LOGGER . info ( STRING1 , task ) ; \n + LOGGER . info ( STRING2 , task , clock . getTime ( ) ) ; \n state . upToDate ( ) ; \n return ; \n }", "msg_token": "Added a little info in an existing log message that shows how long the up to date check took"} {"diff": " public abstract class AbstractMemoryHttpData extends AbstractHttpData { \n int written = NUMBER0 ; \n while ( written < length ) { \n written += fileChannel . write ( byteBuffer ) ; \n - fileChannel . force ( false ) ; \n } \n + fileChannel . force ( false ) ; \n fileChannel . close ( ) ; \n isRenamed = true ; \n return written == length ;", "msg_token": "Move force after multiple writes not at every steps"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed uneeded clases in GremlinFluentUtilityTest"} {"diff": " public class DesktopImportControllerUI implements ImportControllerUI { \n ImporterUI ui = controller . getUI ( importer ) ; \n if ( ui != null ) { \n ui . setup ( importer ) ; \n - String title = NbBundle . getMessage ( DesktopImportControllerUI . class , STRING0 ) ; \n + String title = NbBundle . getMessage ( DesktopImportControllerUI . class , STRING0 , ui . getDisplayName ( ) ) ; \n JPanel panel = ui . getPanel ( ) ; \n final DialogDescriptor dd = new DialogDescriptor ( panel , title ) ; \n if ( panel instanceof ValidationPanel ) {", "msg_token": "Fix spigot settings title"} {"diff": " public final class InodeTree implements JournalCheckpointStreamable { \n COMMENT \n COMMENT \n COMMENT \n - public CreatePathResult createPath ( AlluxioURI path , CreatePathOptions options ) \n + public CreatePathResult createPath ( AlluxioURI path , CreatePathOptions < ? > options ) \n throws FileAlreadyExistsException , BlockInfoException , InvalidPathException , IOException { \n if ( path . isRoot ( ) ) { \n LOG . info ( ExceptionMessage . FILE_ALREADY_EXISTS . getMessage ( path ) ) ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ notthreadsafe", "msg_token": "Add generic to raw CreatePathOptions usage"} {"diff": " public abstract class ParseTime { \n if ( t0 != Long . MIN_VALUE ) return t0 ; \n long t2 = attemptTimeParse_2 ( str ) ; SINGLE \n if ( t2 != Long . MIN_VALUE ) return t2 ; \n - } catch ( org . joda . time . IllegalFieldValueException ie ) { } \n + } catch ( org . joda . time . IllegalFieldValueException | SINGLE \n + org . joda . time . IllegalInstantException SINGLE \n + ie ) { } \n return Long . MIN_VALUE ; \n } \n SINGLE", "msg_token": "Handle another JODA time parse exception"} {"diff": " public class PackagedProgram { \n Throwable exceptionInMethod = e . getTargetException ( ) ; \n if ( exceptionInMethod instanceof Error ) { \n throw ( Error ) exceptionInMethod ; \n + } else if ( exceptionInMethod instanceof ProgramInvocationException ) { \n + throw ( ProgramInvocationException ) exceptionInMethod ; \n } else { \n throw new ProgramInvocationException ( STRING0 , exceptionInMethod ) ; \n }", "msg_token": "Avoid unnecessary exception wrapping in PackagedProgram invokation"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SentenceTokenizerTest extends TestCase { \n \n + private SentenceTokenizer stokenizer = new SentenceTokenizer ( ) ; \n + \n public void testTokenize ( ) { \n SINGLE \n SINGLE \n public class SentenceTokenizerTest extends TestCase { \n String s = ( String ) iter . next ( ) ; \n inputString . append ( s ) ; \n } \n - SentenceTokenizer stokenizer = new SentenceTokenizer ( ) ; \n assertEquals ( input , stokenizer . tokenize ( inputString . toString ( ) ) ) ; \n }", "msg_token": "initialize SentenceTokenizer only once"} {"diff": " public class PluginManager { \n COMMENT \n COMMENT \n public boolean installPlugin ( InputStream in , String pluginFilename ) { \n + if ( in == null || pluginFilename == null || pluginFilename . length ( ) < NUMBER0 ) { \n + Log . error ( STRING0 ) ; \n + return false ; \n + } \n try { \n byte [ ] b = new byte [ NUMBER1 ] ; \n int len ; \n + SINGLE \n + int index = pluginFilename . lastIndexOf ( File . separator ) ; \n + if ( index != - NUMBER0 ) { \n + pluginFilename = pluginFilename . substring ( index + NUMBER0 ) ; \n + } \n SINGLE \n String absolutePath = pluginDirectory + File . separator + pluginFilename ; \n SINGLE", "msg_token": "Added a little more robustness to installPlugin routine"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > { \n COMMENT \n COMMENT \n public DBCursor addOption ( int option ) { \n + if ( option == Bytes . QUERYOPTION_EXHAUST ) \n + throw new IllegalArgumentException ( STRING0 ) ; \n + \n _options |= option ; \n return this ; \n } \n public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > { \n public List < DBObject > toArray ( int max ) \n throws MongoException { \n _checkType ( CursorType . ARRAY ) ; \n - _fill ( max ) ; \n + _fill ( max - NUMBER0 ) ; \n return _all ; \n }", "msg_token": "do not allow exhaust option"} {"diff": " public class OStorageRemote extends OStorageAbstract implements OStorageProxy { \n \n final List < ODocument > members = clusterConfiguration . field ( STRING0 ) ; \n if ( members != null ) { \n - SINGLE \n + serverURLs . clear ( ) ; \n \n for ( ODocument m : members ) \n if ( m != null && ! serverURLs . contains ( ( String ) m . field ( STRING1 ) ) ) {", "msg_token": "clients rebuild from scratch the list of available nodes on"} {"diff": " public class DummyProxySession implements Session { \n public void setValid ( boolean isValid ) { \n SINGLE \n } \n + \n + @ override \n + public void tellChangedSessionId ( String newId , String oldId , \n + boolean notifySessionListeners , boolean notifyContainerListeners ) { \n + SINGLE \n + } \n }", "msg_token": "Implement missing method"} {"diff": " public class OAuth10aServiceImpl implements OAuthService \n config . log ( STRING0 + requestToken + STRING1 + verifier ) ; \n addOAuthParams ( request , requestToken ) ; \n appendSignature ( request ) ; \n + \n + config . log ( STRING2 ) ; \n Response response = request . send ( tuner ) ; \n - return api . getAccessTokenExtractor ( ) . extract ( response . getBody ( ) ) ; \n + String body = response . getBody ( ) ; \n + \n + config . log ( STRING3 + response . getCode ( ) ) ; \n + config . log ( STRING4 + body ) ; \n + return api . getAccessTokenExtractor ( ) . extract ( body ) ; \n } \n \n COMMENT", "msg_token": "Added request logging to OAuth10aServiceImpl getAccessToken"} {"diff": " public class FailureDetector implements IFailureDetector , FailureDetectorMBean \n private static final long DEFAULT_MAX_PAUSE = NUMBER0 * NUMBER1 ; SINGLE \n private static final long MAX_LOCAL_PAUSE_IN_NANOS = getMaxLocalPause ( ) ; \n private long lastInterpret = System . nanoTime ( ) ; \n - private boolean wasPaused = false ; \n + private long lastPause = NUMBER2 L ; \n \n private static long getMaxLocalPause ( ) \n { \n public class FailureDetector implements IFailureDetector , FailureDetectorMBean \n if ( diff > MAX_LOCAL_PAUSE_IN_NANOS ) \n { \n logger . warn ( STRING0 , diff , MAX_LOCAL_PAUSE_IN_NANOS ) ; \n - wasPaused = true ; \n + lastPause = now ; \n return ; \n } \n - if ( wasPaused ) \n + if ( System . nanoTime ( ) - lastPause < MAX_LOCAL_PAUSE_IN_NANOS ) \n { \n - wasPaused = false ; \n + logger . debug ( STRING1 ) ; \n return ; \n } \n double phi = hbWnd . phi ( now ) ;", "msg_token": "Don t mark nodes down before the max local pause interval once paused"} {"diff": " public class NotificationManagerService extends INotificationManager . Stub \n if ( ( ( mDisabledNotifications & StatusBarManager . DISABLE_NOTIFICATION_ALERTS ) == NUMBER0 ) \n && ( ! ( old != null \n && ( notification . flags & Notification . FLAG_ONLY_ALERT_ONCE ) != NUMBER0 ) ) \n - && ( r . userId == UserHandle . USER_ALL || r . userId == userId ) \n + && ( r . userId == UserHandle . USER_ALL || \n + ( r . userId == userId && r . userId == ActivityManager . getCurrentUser ( ) ) ) \n && mSystemReady ) { \n \n final AudioManager audioManager = ( AudioManager ) mContext", "msg_token": "Only play notification sounds for active user"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class CommonsPoolTargetSourceTests { \n \n COMMENT", "msg_token": "Remove deprecated warnings"} {"diff": " public class ReactiveLocationProvider { \n COMMENT \n COMMENT \n COMMENT \n - public Observable < PlacePhotoMetadataResult > getPhotoMetadataById ( @ nullable final String placeId ) { \n + public Observable < PlacePhotoMetadataResult > getPhotoMetadataById ( final String placeId ) { \n return getGoogleApiClientObservable ( Places . PLACE_DETECTION_API , Places . GEO_DATA_API ) \n . flatMap ( new Func1 < GoogleApiClient , Observable < PlacePhotoMetadataResult > > ( ) { \n @ override \n public class ReactiveLocationProvider { \n COMMENT \n COMMENT \n COMMENT \n - public Observable < PlacePhotoResult > getPhotoForMetadata ( @ nullable final PlacePhotoMetadata placePhotoMetadata ) { \n + public Observable < PlacePhotoResult > getPhotoForMetadata ( final PlacePhotoMetadata placePhotoMetadata ) { \n return getGoogleApiClientObservable ( Places . PLACE_DETECTION_API , Places . GEO_DATA_API ) \n . flatMap ( new Func1 < GoogleApiClient , Observable < PlacePhotoResult > > ( ) { \n @ override", "msg_token": "Removed wrong nullable annotations on method params"} {"diff": " public class PostgreSQLSqlScriptSmallTest { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING0 + \n STRING7 + \n STRING8 + \n - STRING9 + \n + STRING10 + \n STRING8 + \n STRING11 ; \n final PostgreSQLSqlScript script = new PostgreSQLSqlScript ( sqlScriptSource , PlaceholderReplacer . NO_PLACEHOLDERS ) ;", "msg_token": "body changed to BODY in unit test"} {"diff": " public class ConferenceDetailsActivity extends XmppActivity implements OnConvers \n this . uuid = getIntent ( ) . getExtras ( ) . getString ( STRING0 ) ; \n } \n if ( uuid != null ) { \n - this . mConversation = xmppConnectionService \n - . findConversationByUuid ( uuid ) ; \n + this . mConversation = xmppConnectionService . findConversationByUuid ( uuid ) ; \n if ( this . mConversation != null ) { \n updateView ( ) ; \n } \n public class ConferenceDetailsActivity extends XmppActivity implements OnConvers \n } \n \n private void updateView ( ) { \n + invalidateOptionsMenu ( ) ; \n final MucOptions mucOptions = mConversation . getMucOptions ( ) ; \n final User self = mucOptions . getSelf ( ) ; \n String account ;", "msg_token": "redraw options menu after rotation in muc details"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ColumnIdentifier implements RawSelector , Comparable < ColumnIdentifier > \n + public class ColumnIdentifier implements RawSelector \n { \n public final ByteBuffer key ; \n private final String text ; \n public class ColumnIdentifier implements RawSelector , Comparable < ColumnIdentifie \n this . key = ByteBufferUtil . bytes ( this . text ) ; \n } \n \n - public ColumnIdentifier ( ByteBuffer key , AbstractType type ) \n + public ColumnIdentifier ( ByteBuffer key , AbstractType < ? > type ) \n { \n this . key = key ; \n this . text = type . getString ( key ) ; \n public class ColumnIdentifier implements RawSelector , Comparable < ColumnIdentifie \n { \n return text ; \n } \n - \n - public int compareTo ( ColumnIdentifier other ) \n - { \n - return key . compareTo ( other . key ) ; \n - } \n }", "msg_token": "Remove unused and slightly broken ColumnIdentifier compareTo"} {"diff": " public class IpnbMarkdownPanel extends IpnbEditablePanel < JPanel , IpnbMarkdownCel \n @ override \n public void updateCellView ( ) { \n final String text = myEditablePanel . getText ( ) ; \n - myCell . setSource ( text == null ? new String [ ] { } : StringUtil . splitByLines ( text ) ) ; \n + myCell . setSource ( text == null ? new String [ ] { } : StringUtil . splitByLinesKeepSeparators ( text ) ) ; \n updatePanel ( myViewPanel ) ; \n }", "msg_token": "keep separators in markdown cell on cell run"} {"diff": " public final class TestNodeRegistry { \n public String toString ( ) { \n return STRING0 + \n STRING1 + localEndpoint + \n - STRING2 + localConnection + \n STRING3 + remoteEndpoint + \n STRING4 ; \n }", "msg_token": "remove connection from MockConnection class because it was causing recursive endless call when local connection MockConnection localConnection MockConnection this"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add groovy position manager todo utilize qName caches"} {"diff": " public class ViewPager extends ViewGroup { \n mItems . clear ( ) ; \n removeAllViews ( ) ; \n mCurItem = NUMBER0 ; \n + scrollTo ( NUMBER0 , NUMBER0 ) ; \n } \n \n mAdapter = adapter ;", "msg_token": "Reset scroll position when clear state"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class PlanPostPurchaseFragment extends Fragment { \n TextView txtDescription = ( TextView ) rootView . findViewById ( R . id . text_description ) ; \n Button button = ( Button ) rootView . findViewById ( R . id . button ) ; \n \n + SINGLE \n + if ( DisplayUtils . isLandscape ( getActivity ( ) ) ) { \n + PercentRelativeLayout . LayoutParams params = ( PercentRelativeLayout . LayoutParams ) image . getLayoutParams ( ) ; \n + PercentLayoutHelper . PercentLayoutInfo info = params . getPercentLayoutInfo ( ) ; \n + if ( info != null ) { \n + info . heightPercent = FLOAT0 ; \n + } \n + } \n + \n int titleResId ; \n int textResId ; \n int buttonResId ;", "msg_token": "Reduce image size in landscape"} {"diff": " public class DruidDataSourceTest_notEmptyWait extends TestCase { \n \n endLatch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ; \n \n + Thread . sleep ( NUMBER1 ) ; \n Assert . assertEquals ( NUMBER2 , dataSource . getNotEmptyWaitThreadCount ( ) ) ; \n Assert . assertEquals ( NUMBER1 , dataSource . getNotEmptyWaitThreadPeak ( ) ) ; \n }", "msg_token": "add testcase bug fixed"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ immutable \n public class LazyDBObject extends LazyBSONObject implements DBObject { \n \n private boolean isPartial = false ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class LazyBSONObject implements BSONObject { \n private final byte [ ] bytes ; \n public class LazyBSONObject implements BSONObject { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public LazyBSONObject ( final byte [ ] bytes , final int offset , final LazyBSONCallback callback ) { \n public class LazyBSONObject implements BSONObject { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Javadoc for all the lazy BSON object types"} {"diff": " import NAMESPACE ; \n JUnit4MethodProvider . class \n } ) \n @ listeners ( { \n - ReproduceInfoPrinter . class \n + ReproduceInfoPrinter . class , \n + FailureMarker . class \n } ) \n @ runwith ( value = com . carrotsearch . randomizedtesting . RandomizedRunner . class ) \n @ suppresscodecs ( value = STRING0 )", "msg_token": "TEST Add FailureMarker to test listeners so Dtests failfast works"} {"diff": " public class TransactionPropagator implements Lifecycle \n { \n try \n { \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n + pusher . queuePush ( slave , txId ) ; \n \n - slave . pullUpdates ( txId ) ; \n return null ; \n } \n finally", "msg_token": "Re enable the CommitPusher"} {"diff": " public class InsertIntoIntegrationTest extends SQLTransportIntegrationTest { \n STRING0 + \n STRING1 ) ; \n ensureYellow ( ) ; \n - int bulkSize = randomIntBetween ( NUMBER0 , NUMBER1 ) ; \n + int bulkSize = randomIntBetween ( NUMBER0 , NUMBER2 ) ; \n Object [ ] [ ] bulkArgs = new Object [ bulkSize ] [ ] ; \n for ( int i = NUMBER3 ; i < bulkSize ; i ++ ) { \n bulkArgs [ i ] = new Object [ ] { System . currentTimeMillis ( ) + i , new String [ ] { randomAsciiOfLength ( NUMBER4 ) , randomAsciiOfLength ( NUMBER5 ) } , ( short ) i } ;", "msg_token": "reduce max bulkSize in testBulkInsert"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n public class Stream { \n private final StreamService streamService ;", "msg_token": "Removing unused import"} {"diff": " public class TemporaryFolder extends ExternalResource { \n File file = getRoot ( ) ; \n for ( String folderName : folderNames ) { \n file = new File ( file , folderName ) ; \n - file . mkdir ( ) ; \n + if ( ! file . mkdir ( ) ) \n + throw new IllegalStateException ( \n + STRING0 + folderName + STRING1 ) ; \n } \n return file ; \n } \n public class TemporaryFolderUsageTest { \n \n @ test ( expected = IllegalStateException . class ) \n public void newFolderWithGivenPathThrowsIllegalStateExceptionIfCreateWasNotInvoked ( ) { \n - new TemporaryFolder ( ) . newFolder ( STRING2 , STRING3 , STRING4 ) ; \n + new TemporaryFolder ( ) . newFolder ( STRING2 , STRING5 , STRING6 ) ; \n + } \n + \n + @ test ( expected = IllegalStateException . class ) \n + public void newFolderWithGivenPathThrowsIllegalStateExceptionIfPathExists ( ) throws IOException { \n + tempFolder . create ( ) ; \n + tempFolder . newFolder ( STRING2 , STRING5 , STRING6 ) ; \n + tempFolder . newFolder ( STRING2 , STRING5 , STRING6 ) ; \n } \n \n @ test", "msg_token": "Throw an IllegalStateException when the folder already exists"} {"diff": " public class DataLanguageBlockWrapper implements ASTBlock , BlockEx , BlockWithPar \n if ( node != null ) { \n final PsiElement psi = node . getPsi ( ) ; \n if ( psi != null ) { \n - language = psi . getLanguage ( ) ; \n + language = psi . getContainingFile ( ) . getLanguage ( ) ; \n } \n } \n myLanguage = language ;", "msg_token": "Correctly derive the language from root file type a case of XML HTML elements mix"} {"diff": " public class IQ extends Packet { \n buf . append ( queryXML ) ; \n } \n buf . append ( STRING0 ) ; \n - SINGLE \n - String propertiesXML = getPropertiesXML ( ) ; \n - if ( propertiesXML != null ) { \n - buf . append ( propertiesXML ) ; \n - } \n SINGLE \n XMPPError error = getError ( ) ; \n if ( error != null ) {", "msg_token": "IQ packets should never include properties since doing so violates the XMPP spec"} {"diff": " public final class BlackPointEstimator { \n \n SINGLE \n int bestValley = secondPeak - NUMBER0 ; \n - int bestValleyScore = Integer . MAX_VALUE ; \n + int bestValleyScore = - NUMBER0 ; \n for ( int i = secondPeak - NUMBER0 ; i > firstPeak ; i -- ) { \n - int distance = secondPeak - i + NUMBER1 ; \n - int score = distance * histogram [ i ] ; \n - if ( score < bestValleyScore ) { \n + int fromFirst = i - firstPeak ; \n + SINGLE \n + SINGLE \n + int score = fromFirst * fromFirst * ( secondPeak - i ) * ( NUMBER2 - histogram [ i ] ) ; \n + if ( score > bestValleyScore ) { \n bestValley = i ; \n bestValleyScore = score ; \n } \n public final class QRCodeReaderTestCase extends TestCase { \n STRING0 ) ; \n doTestURI ( STRING1 , \n STRING2 ) ; \n + doTestURI ( STRING3 , \n + STRING4 ) ; \n } \n \n private static void doTestURI ( final String uriString , final String expected )", "msg_token": "Improved black point estimation favor a point not white so close the white peak"} {"diff": " public abstract class AbstractGenruleStep extends ShellStep { \n ExecutionArgsAndCommand original = getCommandAndExecutionArgs ( platform , target ) ; \n String expandedCommand = original . command ; \n for ( Map . Entry < String , String > variable : environmentVariablesToExpand . entrySet ( ) ) { \n - expandedCommand = original . command \n + expandedCommand = expandedCommand \n . replace ( STRING0 + variable . getKey ( ) , variable . getValue ( ) ) \n . replace ( STRING1 + variable . getKey ( ) + STRING2 , variable . getValue ( ) ) ; \n }", "msg_token": "Fix variable expansion on Windows"} {"diff": " public class ExpectedTypesProvider { \n LOG . error ( STRING0 + parameter . getClass ( ) + STRING1 + parameter . getType ( ) ) ; \n } \n } \n - PsiType parameterType = GenericsUtil . getVariableTypeByExpressionType ( substitutor . substitute ( type ) ) ; \n + PsiType parameterType = substitutor . substitute ( type ) ; \n if ( parameterType instanceof PsiCapturedWildcardType ) { \n parameterType = ( ( PsiCapturedWildcardType ) parameterType ) . getWildcard ( ) ; \n }", "msg_token": "fix expected wildcard types"} {"diff": " public class VolumeNavigationDelegate { \n } \n switch ( direction ) { \n case DIRECTION_UP : \n - if ( mAppBarEnabled && ! mScrollable . scrollToPrevious ( ) && mAppBarLayout != null ) { \n + if ( ! mScrollable . scrollToPrevious ( ) && mAppBarEnabled && mAppBarLayout != null ) { \n mAppBarLayout . setExpanded ( true , true ) ; \n } \n break ;", "msg_token": "Fix volume up navigation in fullscreen"} {"diff": " public abstract class GraphDatabaseSettings \n public static final Setting < String > pagecache_swapper = \n setting ( STRING0 , STRING , ( String ) null ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ description ( STRING1 + \n STRING2 + \n STRING3 + \n public abstract class GraphDatabaseSettings \n { \n return new BoltConnector ( key ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static int dynamicRecordDataSizeForAligningWith ( int recordSize ) \n - { \n - return recordSize - DynamicRecordFormat . RECORD_HEADER_SIZE ; \n - } \n }", "msg_token": "Add additional comment on data block sizes properties evaluation lifecycle"} {"diff": " public class Uploader extends FileActivity \n \n SINGLE \n int index = displayName . lastIndexOf ( STRING0 ) ; \n - if ( index != - NUMBER0 || MimeTypeMap . getSingleton ( ) . \n - getMimeTypeFromExtension ( displayName . substring ( index ) ) == null ) { \n - displayName += STRING0 + MimeTypeMap . getSingleton ( ) . getExtensionFromMimeType ( mimeType ) ; \n + if ( index == - NUMBER0 || MimeTypeMap . getSingleton ( ) . \n + getMimeTypeFromExtension ( displayName . substring ( index ) ) == null ) { \n + String extension = MimeTypeMap . getSingleton ( ) . getExtensionFromMimeType ( mimeType ) ; \n + displayName += ( extension != null ) ? STRING0 + extension : STRING1 ; \n } \n \n } else if ( uri . getScheme ( ) . equals ( STRING2 ) ) {", "msg_token": "Fix index condition and handle null mimetype extensions"} {"diff": " public class PhotoWatcherReceiver extends BroadcastReceiver { \n PhotoUploadController controller = PhotoUploadController . getFromContext ( context ) ; \n \n if ( controller . addUpload ( upload ) ) { \n - if ( Flags . DEBUG ) { \n - Log . d ( LOG_TAG , STRING0 + uri . toString ( ) ) ; \n + if ( ConnectivityReceiver . isConnected ( context ) ) { \n + if ( Flags . DEBUG ) { \n + Log . d ( LOG_TAG , STRING1 + uri . toString ( ) ) ; \n + } \n + context . startService ( Utils . getUploadAllIntent ( context ) ) ; \n } \n - context . startService ( Utils . getUploadAllIntent ( context ) ) ; \n } \n \n }", "msg_token": "Don t start service from Instant Upload unless we re connected"} {"diff": " class BrowserFrame extends Handler { \n COMMENT \n private void downloadStart ( String url , String userAgent , \n String contentDisposition , String mimeType , long contentLength ) { \n + SINGLE \n + if ( mimeType . isEmpty ( ) ) { \n + try { \n + String extension = url . substring ( url . lastIndexOf ( STRING0 ) + NUMBER0 ) ; \n + mimeType = libcore . net . MimeUtils . guessMimeTypeFromExtension ( extension ) ; \n + SINGLE \n + if ( mimeType == null ) \n + mimeType = STRING1 ; \n + } catch ( IndexOutOfBoundsException exception ) { \n + SINGLE \n + } \n + } \n mimeType = MimeTypeMap . getSingleton ( ) . remapGenericMimeType ( \n mimeType , url , contentDisposition ) ; \n mCallbackProxy . onDownloadStart ( url , userAgent ,", "msg_token": "Find mime from file extension if the mime is empty"} {"diff": " public class JavaPsiFacadeImpl extends JavaPsiFacadeEx { \n return result . values ( ) . toArray ( new PsiPackage [ result . size ( ) ] ) ; \n } \n \n - public PsiClass [ ] findClassByShortName ( String name , PsiPackage psiPackage , GlobalSearchScope scope ) { \n - List < PsiClass > result = null ; \n - for ( PsiElementFinder finder : filteredFinders ( ) ) { \n - PsiClass [ ] classes = finder . getClasses ( name , psiPackage , scope ) ; \n - if ( classes . length == NUMBER0 ) continue ; \n - if ( result == null ) result = new ArrayList < PsiClass > ( ) ; \n - ContainerUtil . addAll ( result , classes ) ; \n - } \n - \n - return result == null ? PsiClass . EMPTY_ARRAY : result . toArray ( new PsiClass [ result . size ( ) ] ) ; \n - } \n - \n private class PsiElementFinderImpl extends PsiElementFinder implements DumbAware { \n @ override \n public PsiClass findClass ( @ notnull String qualifiedName , @ notnull GlobalSearchScope scope ) {", "msg_token": "remove unused method"} {"diff": " public final class MockSpdyPeer implements Closeable { \n private final List < OutFrame > outFrames = new ArrayList < OutFrame > ( ) ; \n private final BlockingQueue < InFrame > inFrames = new LinkedBlockingQueue < InFrame > ( ) ; \n private int port ; \n - private final ExecutorService executor = Executors . newCachedThreadPool ( \n + private final ExecutorService executor = Executors . newSingleThreadExecutor ( \n Util . threadFactory ( STRING0 , false ) ) ; \n private ServerSocket serverSocket ; \n private Socket socket ;", "msg_token": "Only use one thread for MockSpdyPeer"} {"diff": " public class TestingPrestoServer \n . put ( STRING0 , String . valueOf ( coordinator ) ) \n . put ( STRING1 , STRING2 ) \n . put ( STRING3 , STRING4 ) \n + . put ( STRING5 , STRING4 ) \n . put ( STRING6 , STRING7 ) ; \n \n if ( ! properties . containsKey ( STRING8 ) ) {", "msg_token": "Cap the number of worker threads for tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProjectSettingsStepBase extends AbstractActionWithPanel implements \n bottomPanel . add ( myErrorLabel , BorderLayout . NORTH ) ; \n bottomPanel . add ( myCreateButton , BorderLayout . EAST ) ; \n mainPanel . add ( bottomPanel , BorderLayout . SOUTH ) ; \n - UIUtil . setBackgroundRecursively ( mainPanel , FlatWelcomeFrame . getMainBackground ( ) ) ; \n return mainPanel ; \n }", "msg_token": "Revert use same background for dialog"} {"diff": " public class PrivacyService { \n \n SINGLE \n mRegistered = true ; \n - Util . log ( null , Log . WARN , STRING0 + cServiceName ) ; \n + Util . log ( null , Log . WARN , STRING0 + cServiceName + STRING1 + cCurrentVersion ) ; \n \n SINGLE \n XActivityManagerService . setSemaphore ( mOndemandSemaphore ) ;", "msg_token": "Log XPrivacy service version"} {"diff": " public final class HikariPool implements HikariPoolMBean \n \n closeIdleConnections ( ) ; \n \n - HikariMBeanElf . unregisterMBeans ( configuration , this ) ; \n + if ( isRegisteredMbeans ) \n + { \n + HikariMBeanElf . unregisterMBeans ( configuration , this ) ; \n + } \n } \n \n SINGLE", "msg_token": "Avoid error message on shutdown when MBeans are not registered"} {"diff": " public class BroadcasterConfig { \n asyncWriteService . shutdownNow ( ) ; \n } \n \n - if ( scheduler != null ) { \n + if ( ( force || ! shared ) && scheduler != null ) { \n scheduler . shutdownNow ( ) ; \n }", "msg_token": "Don t shutdown the executor when shared"} {"diff": " public class AsyncQueryForwardingServlet extends HttpServlet \n emitter . emit ( \n new ServiceMetricEvent . Builder ( ) \n . setUser2 ( DataSourceUtil . getMetricName ( query . getDataSource ( ) ) ) \n + . setUser3 ( String . valueOf ( query . getContextPriority ( NUMBER0 ) ) ) \n . setUser4 ( query . getType ( ) ) \n . setUser5 ( COMMA_JOIN . join ( query . getIntervals ( ) ) ) \n . setUser6 ( String . valueOf ( query . hasFilters ( ) ) ) \n public class QueryResource \n emitter . emit ( \n new ServiceMetricEvent . Builder ( ) \n . setUser2 ( DataSourceUtil . getMetricName ( query . getDataSource ( ) ) ) \n + . setUser3 ( String . valueOf ( query . getContextPriority ( NUMBER0 ) ) ) \n . setUser4 ( query . getType ( ) ) \n . setUser5 ( COMMA_JOIN . join ( query . getIntervals ( ) ) ) \n . setUser6 ( String . valueOf ( query . hasFilters ( ) ) )", "msg_token": "add query priorities to metric emission"} {"diff": " public class DruidDataSource extends DruidAbstractDataSource implements DruidDat \n throw new IllegalArgumentException ( STRING0 + maxActive ) ; \n } \n \n - if ( maxIdle <= NUMBER0 || maxIdle < minIdle ) { \n - throw new IllegalArgumentException ( STRING1 ) ; \n - } \n - \n if ( getInitialSize ( ) > maxActive ) { \n throw new IllegalArgumentException ( STRING2 + this . initialSize + STRING3 \n + maxActive ) ; \n public class ParamTest extends TestCase { \n \n Assert . assertEquals ( NUMBER1 , dataSource . getProxyFilters ( ) . size ( ) ) ; \n \n - error = null ; \n - try { \n - dataSource . getConnection ( ) ; \n - } catch ( Exception ex ) { \n - error = ex ; \n - } \n - Assert . assertNotNull ( error ) ; \n + dataSource . getConnection ( ) ; \n \n dataSource . close ( ) ; \n }", "msg_token": "DruidDataSource init remove maxIdle check"} {"diff": " public final class InventoryUtils { \n return true ; \n } \n \n - if ( ! isSameStackId ( itemFrom , itemTo ) ) { \n + return isSameItem ( from , to ) && itemFrom . stackCount + itemTo . stackCount <= itemFrom . maxStackSize ; \n + } \n + \n + public static boolean isSameItem ( EntityRef item1 , EntityRef item2 ) { \n + ItemComponent itemComp1 = item1 . getComponent ( ItemComponent . class ) ; \n + ItemComponent itemComp2 = item2 . getComponent ( ItemComponent . class ) ; \n + \n + if ( ! isSameStackId ( itemComp1 , itemComp2 ) ) { \n return false ; \n } \n \n - if ( ! hasSameAttributes ( from , to ) ) { \n + if ( ! hasSameAttributes ( item1 , item2 ) ) { \n return false ; \n } \n \n - return itemFrom . stackCount + itemTo . stackCount <= itemFrom . maxStackSize ; \n + return true ; \n } \n \n private static boolean hasSameAttributes ( EntityRef from , EntityRef to ) {", "msg_token": "Adding method that allows to easily compare two items"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class CallServiceDescriptor implements Parcelable { \n mNetworkType == descriptor . mNetworkType ; \n } \n \n + @ override \n + public String toString ( ) { \n + return String . format ( Locale . US , STRING0 , \n + CallServiceDescriptor . class . getSimpleName ( ) , \n + mComponentName == null ? STRING1 : mComponentName . flattenToShortString ( ) ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add toString to CallServiceDescriptor"} {"diff": " public class PyNamedParameterImpl extends PyPresentableElementImpl < PyNamedParame \n \n @ nullable \n public PyExpression getDefaultValue ( ) { \n + final PyNamedParameterStub stub = getStub ( ) ; \n + if ( stub != null && ! stub . hasDefaultValue ( ) ) { \n + return null ; \n + } \n ASTNode [ ] nodes = getNode ( ) . getChildren ( PythonDialectsTokenSetProvider . INSTANCE . getExpressionTokens ( ) ) ; \n if ( nodes . length > NUMBER0 ) { \n return ( PyExpression ) nodes [ NUMBER0 ] . getPsi ( ) ;", "msg_token": "avoid stub to AST switch if we don t have a default parameter value"} {"diff": " public class MessageView extends K9Activity implements OnClickListener { \n } ) ; \n \n mMessageView . initialize ( this ) ; \n - \n + mMessageView . downloadRemainderButton ( ) . setOnClickListener ( this ) ; \n initializeActionBar ( ) ; \n \n setTitle ( STRING0 ) ;", "msg_token": "fixed download complete message button"} {"diff": " public final class Main implements ActionListener { \n private JLanguageTool getCurrentLanguageTool ( Language currentLanguage ) { \n final JLanguageTool langTool ; \n try { \n + config = new Configuration ( new File ( System . getProperty ( STRING0 ) ) , CONFIG_FILE , currentLanguage ) ; \n final ConfigurationDialog configDialog = getCurrentConfigDialog ( currentLanguage ) ; \n langTool = new JLanguageTool ( currentLanguage , configDialog . getMotherTongue ( ) ) ; \n - config = new Configuration ( new File ( System . getProperty ( STRING0 ) ) , CONFIG_FILE , currentLanguage ) ; \n langTool . activateDefaultPatternRules ( ) ; \n langTool . activateDefaultFalseFriendRules ( ) ; \n final Set < String > disabledRules = configDialog . getDisabledRuleIds ( ) ;", "msg_token": "initialize config before we open the config dialog fixes loss of configuration"} {"diff": " extends ParagraphStyle \n boolean first , Layout layout ) ; \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface LeadingMarginSpan2 extends LeadingMarginSpan , WrapTogetherSpan { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public int getLeadingMarginLineCount ( ) ; \n } ;", "msg_token": "Add documentation for LeadingMarginSpan2"} {"diff": " public class CordovaChromeClient extends WebChromeClient { \n result . confirm ( r == null ? STRING0 : r ) ; \n } catch ( JSONException e ) { \n e . printStackTrace ( ) ; \n + return false ; \n } \n }", "msg_token": "Throwing this one over the fence but this change appears sane"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BuildArtifactsBeforeRunTaskProvider extends BeforeRunTaskProvider < B \n pointers . addAll ( task . getArtifactPointers ( ) ) ; \n ArtifactChooser chooser = new ArtifactChooser ( new ArrayList < ArtifactPointer > ( pointers ) ) ; \n chooser . markElements ( task . getArtifactPointers ( ) ) ; \n + chooser . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ; \n \n DialogBuilder builder = new DialogBuilder ( myProject ) ; \n builder . setTitle ( STRING0 ) ; \n + builder . setDimensionServiceKey ( STRING1 ) ; \n builder . addOkAction ( ) ; \n builder . addCancelAction ( ) ; \n builder . setCenterPanel ( chooser ) ;", "msg_token": "remember size of Build artifacts chooser in run configuration"} {"diff": " public class DroidGap extends PhonegapActivity { \n \n SINGLE \n String loading = null ; \n - if ( me . urls . size ( ) == NUMBER0 ) { \n + if ( me . urls . size ( ) == NUMBER1 ) { \n loading = me . getStringProperty ( STRING0 , null ) ; \n } \n else {", "msg_token": "Fix bug with showing loadingDialog property"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Inject documentation as method injection happens after field injection"} {"diff": " class ImagePresenceProvider extends PresenceInfoProvider { \n private void writeImageContent ( HttpServletRequest request , HttpServletResponse response , \n String presenceType , byte [ ] defaultImage ) throws IOException { \n String images = request . getParameter ( STRING0 ) ; \n - if ( images != null ) { \n - writeImageContent ( images . replace ( STRING1 , presenceType ) , defaultImage , response ) ; \n - } \n - else if ( request . getParameter ( presenceType ) != null ) { \n + if ( request . getParameter ( presenceType ) != null ) { \n writeImageContent ( request . getParameter ( presenceType ) , defaultImage , response ) ; \n } \n + else if ( images != null ) { \n + writeImageContent ( images . replace ( STRING1 , presenceType ) , defaultImage , response ) ; \n + } \n else { \n writeImageContent ( null , defaultImage , response ) ; \n }", "msg_token": "Specific images override generic images"} {"diff": " public class SubsamplingScaleImageView extends View { \n COMMENT \n @ override \n protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { \n - if ( readySent ) { \n - setScaleAndCenter ( getScale ( ) , getCenter ( ) ) ; \n + PointF sCenter = getCenter ( ) ; \n + if ( readySent && sCenter != null ) { \n + this . anim = null ; \n + this . pendingScale = scale ; \n + this . sPendingCenter = sCenter ; \n } \n }", "msg_token": "Fixed an issue with requested centre point after size change"} {"diff": " public final class FileInputSplitAssigner implements InputSplitAssigner { \n for ( int i = NUMBER0 ; i < inputSplits . length ; ++ i ) { \n SINGLE \n final InputSplit inputSplit = inputSplits [ i ] ; \n - if ( inputSplit instanceof FileInputSplit ) { \n + if ( ! ( inputSplit instanceof FileInputSplit ) ) { \n LOG . error ( STRING0 + i + STRING1 + groupVertex . getName ( ) + STRING2 \n + inputSplit . getClass ( ) + STRING3 ) ; \n + continue ; \n } \n splitStore . addSplit ( ( FileInputSplit ) inputSplit ) ; \n }", "msg_token": "Fixed misleading log statement in FileInputSplitAssigner"} {"diff": " public class Document extends JavaScriptObject \n public native final int getLength ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public native final Position indexToPosition ( int index , int startRow ) COMMENT \n + COMMENT \n + COMMENT ; \n \n public final String getDocumentDump ( ) \n {", "msg_token": "expose Ace document index to position via JSNI"} {"diff": " public class ApnsConnectionImpl implements ApnsConnection { \n byte [ ] bytes = new byte [ expectedSize ] ; \n while ( in . read ( bytes ) == expectedSize ) { \n int command = bytes [ NUMBER0 ] & NUMBER1 ; \n - assert command == NUMBER2 ; \n + if ( command != NUMBER2 ) { \n + throw new IOException ( STRING0 + command ) ; \n + } \n int statusCode = bytes [ NUMBER3 ] & NUMBER1 ; \n DeliveryError e = DeliveryError . ofCode ( statusCode ) ;", "msg_token": "Replace assert when parsing error response packet"} {"diff": " public class ServerMainModule \n \n private static String detectPrestoVersion ( ) \n { \n - String title = PrestoServer . class . getPackage ( ) . getImplementationTitle ( ) ; \n - String version = PrestoServer . class . getPackage ( ) . getImplementationVersion ( ) ; \n - return ( ( title == null ) || ( version == null ) ) ? null : ( title + STRING0 + version ) ; \n + return PrestoServer . class . getPackage ( ) . getImplementationVersion ( ) ; \n } \n \n private static void bindFailureDetector ( Binder binder , boolean coordinator )", "msg_token": "Remove title from detected Presto server version"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ test ( enabled = false ) \n public class TestStarTreeSegmentCreator { \n private String testName ; \n private File indexDir ; \n public class TestStarTreeSegmentCreator { \n } \n } \n \n - SINGLE \n - @ test ( enabled = true ) \n + @ test ( enabled = false ) \n + SINGLE \n public void testCreation ( ) throws Exception { \n BasicConfigurator . configure ( ) ;", "msg_token": "Disabling test TestStarTreeSegmentCreator"} {"diff": " public class SimpleDispatcherCommand extends SimpleDispatcher implements Command \n \n @ override \n public void call ( CommandContext context ) throws CommandException { \n - if ( context . argsLength ( ) >= NUMBER0 ) { \n - super . call ( context . getRemainingString ( NUMBER1 ) , context . getLocals ( ) ) ; \n - } else { \n + boolean success = context . argsLength ( ) >= NUMBER0 && super . call ( context . getRemainingString ( NUMBER1 ) , context . getLocals ( ) ) != null ; \n + \n + if ( ! success ) { \n Set < String > aliases = getPrimaryAliases ( ) ; \n \n if ( aliases . size ( ) == NUMBER1 ) {", "msg_token": "Fixed issue where the use of non existent subcommands had no response"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ api \n public interface BlockMeshGenerator { \n \n COMMENT", "msg_token": "Add BlockMeshGenerator to API"} {"diff": " public class KeyguardUpdateMonitor { \n COMMENT \n COMMENT \n public void reportSimUnlocked ( ) { \n - mSimState = IccCard . State . READY ; \n - handleSimStateChange ( new SimArgs ( mSimState ) ) ; \n + handleSimStateChange ( new SimArgs ( IccCard . State . READY ) ) ; \n } \n \n public boolean isKeyguardBypassEnabled ( ) {", "msg_token": "don t show pattern screen after SIM PUK unlock"} {"diff": " public final class JmxMonitorRegistry implements MonitorRegistry { \n for ( MonitorMBean bean : beans ) { \n try { \n mBeanServer . unregisterMBean ( bean . getObjectName ( ) ) ; \n + locks . remove ( bean . getObjectName ( ) ) ; \n } catch ( InstanceNotFoundException ignored ) { \n SINGLE \n SINGLE", "msg_token": "Remove lock when bean is unregistered"} {"diff": " public class ConnectivityManager { \n COMMENT \n public final static int REQUEST_ID_UNSET = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int NETID_UNSET = NUMBER0 ; \n + \n private final IConnectivityManager mService ; \n \n private final String mPackageName ; \n public class ConnectivityManager { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final int NETID_UNSET = NUMBER0 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Readjust location of NETID_UNSET definition"} {"diff": " public interface NameSuggestionProvider { \n ExtensionPointName < NameSuggestionProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n \n @ nullable \n - SuggestedNameInfo getSuggestedNames ( PsiElement element , PsiElement nameSuggestionContext , Set < String > result ) ; \n + SuggestedNameInfo getSuggestedNames ( PsiElement element , @ nullable PsiElement nameSuggestionContext , Set < String > result ) ; \n \n @ nullable \n - Collection < LookupElement > completeName ( PsiElement element , final PsiElement nameSuggestionContext , final String prefix ) ; \n + Collection < LookupElement > completeName ( PsiElement element , @ nullable final PsiElement nameSuggestionContext , final String prefix ) ; \n }", "msg_token": "Fix NPE in GroovyNameSuggestionProvider"} {"diff": " public class RESTApplication extends Application { \n private Dictionary < String , String > getJerseyServletParams ( ) { \n Dictionary < String , String > jerseyServletParams = new Hashtable < String , String > ( ) ; \n jerseyServletParams . put ( STRING0 , RESTApplication . class . getName ( ) ) ; \n - SINGLE \n + jerseyServletParams . put ( STRING1 , RESTApplication . REST_SERVLET_ALIAS + STRING2 ) ; \n jerseyServletParams . put ( STRING3 , STRING4 ) ; \n jerseyServletParams . put ( STRING5 , STRING4 ) ; \n jerseyServletParams . put ( STRING6 , STRING7 ) ;", "msg_token": "re enabled servlet mapping"} {"diff": " public class Tool { \n public boolean undefined = false ; \n @ override \n public void tokenRef ( TerminalAST ref ) { \n + if ( STRING0 . equals ( ref . getText ( ) ) ) { \n + SINGLE \n + return ; \n + } \n + \n if ( g . isLexer ( ) ) ruleRef ( ref , null ) ; \n }", "msg_token": "Fix support for the special token reference EOF"} {"diff": " public abstract class CompoundButton extends Button implements Checkable { \n unscheduleDrawable ( mButtonDrawable ) ; \n } \n d . setCallback ( this ) ; \n - d . setState ( getDrawableState ( ) ) ; \n d . setVisible ( getVisibility ( ) == VISIBLE , false ) ; \n mButtonDrawable = d ; \n - mButtonDrawable . setState ( null ) ; \n setMinHeight ( mButtonDrawable . getIntrinsicHeight ( ) ) ; \n }", "msg_token": "Remove unnecessary drawable code in CompoundButton"} {"diff": " public class TypeUtils { \n return false ; \n } \n \n + public static boolean equalsOrContainsAsArgument ( @ nullable JetType type , @ notnull JetType . . . possibleArgumentTypes ) { \n + return equalsOrContainsAsArgument ( type , Sets . newHashSet ( possibleArgumentTypes ) ) ; \n + } \n + \n + private static boolean equalsOrContainsAsArgument ( @ nullable JetType type , @ notnull Set < JetType > possibleArgumentTypes ) { \n + if ( type == null ) return false ; \n + if ( possibleArgumentTypes . contains ( type ) ) return true ; \n + if ( type instanceof NamespaceType ) return false ; \n + for ( TypeProjection projection : type . getArguments ( ) ) { \n + if ( equalsOrContainsAsArgument ( projection . getType ( ) , possibleArgumentTypes ) ) return true ; \n + } \n + return false ; \n + } \n + \n @ notnull \n public static String getTypeNameAndStarProjectionsString ( @ notnull String name , int size ) { \n StringBuilder builder = new StringBuilder ( name ) ;", "msg_token": "returned method equalsOrContainsAsArgument"} {"diff": " public class D2Config \n } \n \n Map < String , String > clusterProperties = new HashMap < > ( ) ; \n - if ( coloVariants != null && coloVariants . size ( ) > NUMBER0 ) \n + if ( coloVariants != null && coloVariants . size ( ) > NUMBER0 && ! ( coloVariants . size ( ) == NUMBER1 && coloVariants . contains ( STRING0 ) ) ) \n { \n clusterProperties . put ( PropertyKeys . COLO_VARIANTS , String . join ( LIST_SEPARATOR , coloVariants ) ) ; \n }", "msg_token": "Fix a bug in D2Config where empty coloVariant is added to cluster"} {"diff": " public class OperationSetTelephonyConferencingJabberImpl \n if ( callPeer != null ) \n { \n if ( logger . isDebugEnabled ( ) ) \n - logger . debug ( STRING0 + coinIQ . getFrom ( ) \n - + STRING1 + coinIQ . getVersion ( ) + STRING2 ) ; \n + logger . debug ( STRING3 + coinIQ . getFrom ( ) \n + + STRING4 + coinIQ . getVersion ( ) + STRING2 ) ; \n handleCoin ( callPeer , coinIQ ) ; \n } \n }", "msg_token": "Fix log message"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CharUsedInArithmeticContextInspection extends BaseInspection { \n if ( type == null || type . equalsToText ( STRING0 ) ) { \n return ; \n } \n + final IElementType tokenType = expression . getOperationTokenType ( ) ; \n + if ( JavaTokenType . EQEQ . equals ( tokenType ) || \n + JavaTokenType . NE . equals ( tokenType ) ) { \n + return ; \n + } \n final PsiExpression lhs = expression . getLOperand ( ) ; \n final PsiType lhsType = lhs . getType ( ) ; \n if ( PsiType . CHAR . equals ( lhsType ) ) { \n public class CharUsedInArithmeticContext { \n System . out . println ( i2 + STRING1 + i1 + STRING2 + ( i2 - i1 ) ) ; \n } \n \n + boolean compare ( char c1 , char c2 ) { \n + return c1 != c2 ; \n + } \n }", "msg_token": "ignore simple comparisons"} {"diff": " public class MessageList \n } \n \n @ override \n - public void listLocalMessages ( Account account , String folder , Message [ ] messages ) \n - { \n - if ( ! account . equals ( mAccount ) ) \n - { \n - return ; \n - } \n - \n - if ( folder != mFolderName ) \n - { \n - return ; \n - } \n - \n - SINGLE \n - } \n - @ override \n public void listLocalMessagesRemoveMessage ( Account account , String folder , Message message ) \n { \n if ( account . equals ( mAccount ) && folder . equals ( mFolderName ) )", "msg_token": "Remove an overridden subroutine that s now a noop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyToJavaGenerator implements SourceGeneratingCompiler , Compilat \n GenerationItem item ; \n for ( VirtualFile file : getGroovyFilesToGenerate ( context ) ) { \n if ( CompilerManager . getInstance ( myProject ) . isExcludedFromCompilation ( file ) ) continue ; \n + if ( CompilerConfiguration . getInstance ( myProject ) . isResourceFile ( file . getName ( ) ) ) continue ; \n \n final GroovyFileBase psiFile = findPsiFile ( file ) ; \n boolean isInTestSources = ModuleRootManager . getInstance ( getModuleByFile ( context , file ) ) . getFileIndex ( ) . isInTestSourceContent ( file ) ; \n public class GroovyToJavaGenerator implements SourceGeneratingCompiler , Compilat \n } \n \n public boolean validateConfiguration ( CompileScope scope ) { \n - SINGLE \n return true ; \n }", "msg_token": "don t generate groovy stubs for groovy resource files"} {"diff": " public class BukkitWorld extends LocalWorld { \n if ( ! ( state instanceof org . bukkit . block . NoteBlock ) ) return false ; \n org . bukkit . block . NoteBlock bukkit = ( org . bukkit . block . NoteBlock ) state ; \n NoteBlock we = ( NoteBlock ) block ; \n - bukkit . setNote ( we . getNote ( ) ) ; \n + bukkit . setRawNote ( we . getNote ( ) ) ; \n return true ; \n } \n \n public class BukkitWorld extends LocalWorld { \n if ( ! ( state instanceof org . bukkit . block . NoteBlock ) ) return false ; \n org . bukkit . block . NoteBlock bukkit = ( org . bukkit . block . NoteBlock ) state ; \n NoteBlock we = ( NoteBlock ) block ; \n - we . setNote ( bukkit . getNote ( ) ) ; \n + we . setNote ( bukkit . getRawNote ( ) ) ; \n } \n \n return false ;", "msg_token": "Fix for bukkit note block changes"} {"diff": " public class UrlTypeVFS implements UrlType { \n URL adaptedUrl = adaptURL ( url ) ; \n return new ZipDir ( new JarFile ( adaptedUrl . getFile ( ) ) ) ; \n } catch ( Exception e ) { \n - if ( Reflections . log != null ) { \n - Reflections . log . warn ( STRING0 , e ) ; \n - } \n try { \n return new ZipDir ( new JarFile ( url . getFile ( ) ) ) ; \n } catch ( IOException e1 ) { \n if ( Reflections . log != null ) { \n + Reflections . log . warn ( STRING0 , e ) ; \n Reflections . log . warn ( STRING0 , e1 ) ; \n } \n } \n public class UrlTypeVFS implements UrlType { \n return new URL ( prefix + STRING1 + zipFile + STRING2 + zipPath ) ; \n } \n } \n - } \n + }", "msg_token": "Update UrlTypeVFS java avoid warning altogether"} {"diff": " public class SimUtilsTest extends TestCase { \n public void testBasic ( ) throws Exception { \n byte [ ] data , data2 ; \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n public class SimUtilsTest extends TestCase { \n assertEquals ( STRING0 , IccUtils . bcdToString ( data , NUMBER0 , data . length - NUMBER1 ) ) ; \n \n SINGLE \n - data = IccUtils . hexStringToBytes ( STRING1 ) ; \n + data = IccUtils . hexStringToBytes ( STRING2 ) ; \n assertEquals ( STRING3 , IccUtils . bcdToString ( data , NUMBER2 , data . length ) ) ; \n \n + SINGLE \n + data = IccUtils . hexStringToBytes ( STRING1 ) ; \n + assertEquals ( STRING4 , IccUtils . bcdToString ( data , NUMBER2 , data . length ) ) ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix SimUtilsTest after changing in bcdToString"} {"diff": " public class FireBirdTrigger extends GenericTrigger { \n this . sequence = sequence ; \n } \n \n + @ property ( hidden = true , order = NUMBER0 ) \n public DBSActionTiming getActionTiming ( ) \n { \n return super . getActionTiming ( ) ; \n } \n \n - @ property ( viewable = true , order = NUMBER0 ) \n + @ property ( hidden = true , order = NUMBER0 ) \n public DBSManipulationType getManipulationType ( ) \n { \n return super . getManipulationType ( ) ;", "msg_token": "Triggers model FB"} {"diff": " public abstract class FrameTask < T extends FrameTask < T > > extends MRTask < T > { \n int [ ] cats = MemoryManager . malloc4 ( n ) ; \n int nnums = NUMBER0 , ncats = NUMBER0 ; \n for ( int i = NUMBER0 ; i < n ; ++ i ) \n - if ( tvecs [ i ] . isEnum ( ) ) cats [ ncats ++ ] = i ; \n - else nums [ nnums ++ ] = i ; \n + if ( tvecs [ i ] . isEnum ( ) && ( tvecs [ i ] . domain ( ) != null ) ) { \n + cats [ ncats ++ ] = i ; \n + } \n + else { \n + if ( tvecs [ i ] . isEnum ( ) ) { \n + Log . debug ( STRING0 + i ) ; \n + } \n + nums [ nnums ++ ] = i ; \n + } \n _nums = nnums ; \n _cats = ncats ; \n SINGLE", "msg_token": "Added confused isEnum debug message"} {"diff": " public final class GsmDataConnectionTracker extends DataConnectionTracker { \n \n protected void onVoiceCallEnded ( ) { \n if ( state == State . CONNECTED ) { \n - if ( mGsmPhone . mSST . isConcurrentVoiceAndData ( ) ) { \n + if ( ! mGsmPhone . mSST . isConcurrentVoiceAndData ( ) ) { \n startNetStatPoll ( ) ; \n phone . notifyDataConnection ( Phone . REASON_VOICE_CALL_ENDED ) ; \n } else {", "msg_token": "Fix typo introduced during variable cleanup"} {"diff": " final class FilesDelta { \n } \n \n private boolean _addToRecompiled ( BuildRootDescriptor root , File file ) { \n + if ( Utils . IS_TEST_MODE ) { \n + LOG . info ( STRING0 + file . getPath ( ) ) ; \n + } \n return _addToRecompiled ( root , Collections . singleton ( file ) ) ; \n } \n \n private boolean _addToRecompiled ( BuildRootDescriptor root , Collection < File > filesToAdd ) { \n - if ( Utils . IS_TEST_MODE ) { \n - for ( File file : filesToAdd ) { \n - LOG . info ( STRING0 + file . getPath ( ) ) ; \n - } \n - } \n - \n Set < File > files ; \n synchronized ( myFilesToRecompile ) { \n files = myFilesToRecompile . get ( root ) ;", "msg_token": "do not log paths when cloning FilesDelta"} {"diff": " public class LwjglApplication implements Application { \n @ override public void exit ( ) { \n postRunnable ( new Runnable ( ) { \n @ override public void run ( ) { \n - LwjglApplication . this . listener . pause ( ) ; \n - LwjglApplication . this . listener . dispose ( ) ; \n - Display . destroy ( ) ; \n - audio . dispose ( ) ; \n - System . exit ( - NUMBER0 ) ; \n + running = false ; \n } \n } ) ; \n }", "msg_token": "fixed LwjglApplication exit will set running false in the future with a Runnable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class XActivityThread extends XHook { \n if ( intent != null ) { \n SINGLE \n String action = intent . getAction ( ) ; \n + if ( action != null ) \n + Util . log ( this , Log . INFO , STRING0 + action + STRING1 + Process . myUid ( ) ) ; \n if ( mActionName . equals ( action ) ) { \n if ( action . equals ( Intent . ACTION_NEW_OUTGOING_CALL ) ) { \n SINGLE", "msg_token": "Log intent actions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OpenFileDescriptor implements Navigatable { \n } \n \n private static void scrollToCaret ( final Editor e ) { \n - final Project project = e . getProject ( ) ; \n - if ( project != null ) { \n - IdeFocusManager . getInstance ( project ) . doWhenFocusSettlesDown ( new Runnable ( ) { \n - public void run ( ) { \n - e . getScrollingModel ( ) . scrollToCaret ( ScrollType . CENTER ) ; \n - } \n - } ) ; \n - } else { \n - e . getScrollingModel ( ) . scrollToCaret ( ScrollType . CENTER ) ; \n - } \n + e . getScrollingModel ( ) . scrollToCaret ( ScrollType . CENTER ) ; \n } \n \n public boolean canNavigate ( ) {", "msg_token": "Don t do animated scrolling when opening NEW editor tab"} {"diff": " public class JacORBExtension implements Extension { \n \n @ override \n public void initialize ( ExtensionContext context ) { \n - final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER1 ) ; \n + final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER0 ) ; \n final ManagementResourceRegistration subsystemRegistration = subsystem . registerSubsystemModel ( JacORBSubsystemResource . INSTANCE ) ; \n subsystemRegistration . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , OperationEntry . EntryType . PRIVATE ) ; \n subsystem . registerXMLElementWriter ( PARSER ) ; \n public class SecurityExtension implements Extension { \n \n final boolean registerRuntimeOnly = context . isRuntimeOnlyRegistrationValid ( ) ; \n \n - final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER1 ) ; \n + final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER0 ) ; \n final ManagementResourceRegistration registration = subsystem . registerSubsystemModel ( SecuritySubsystemRootResourceDefinition . INSTANCE ) ; \n registration . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , OperationEntry . EntryType . PRIVATE ) ;", "msg_token": "Bump management api version for security and jacorb following Stefan s fixes"} {"diff": " public class MulticastParallelTimeout3Test extends ContextTestSupport { \n \n from ( STRING0 ) . to ( STRING1 ) . setBody ( constant ( STRING2 ) ) ; \n \n - from ( STRING3 ) . delay ( NUMBER0 ) . to ( STRING4 ) . setBody ( constant ( STRING5 ) ) ; \n + from ( STRING3 ) . delay ( NUMBER1 ) . to ( STRING4 ) . setBody ( constant ( STRING5 ) ) ; \n SINGLE \n } \n } ; \n public class MulticastParallelTimeoutTest extends ContextTestSupport { \n . end ( ) \n . to ( STRING6 ) ; \n \n - from ( STRING7 ) . delay ( NUMBER0 ) . to ( STRING8 ) . setBody ( constant ( STRING9 ) ) ; \n + from ( STRING7 ) . delay ( NUMBER1 ) . to ( STRING8 ) . setBody ( constant ( STRING9 ) ) ; \n \n from ( STRING0 ) . to ( STRING1 ) . setBody ( constant ( STRING2 ) ) ;", "msg_token": "Fixed tests that may fail on CI servers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "remove useless import"} {"diff": " public final class DashMediaSource implements MediaPeriod , MediaSource , \n manifestUri = manifest . location ; \n } \n if ( ! prepared ) { \n - durationUs = manifest . dynamic ? C . UNSET_TIME_US : manifest . duration * NUMBER0 ; \n + durationUs = manifest . dynamic ? C . UNSET_TIME_US : manifest . getPeriodDuration ( NUMBER1 ) * NUMBER0 ; \n buildTrackGroups ( manifest ) ; \n if ( manifest . utcTiming != null ) { \n resolveUtcTimingElement ( manifest . utcTiming ) ;", "msg_token": "Fix DASH duration"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed missing word in CDDL header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class DynamicDialog extends DialogWrapper { \n } \n } ) ; \n \n - final PsiClassType objectType = TypesUtil . getJavaLangObject ( myReferenceExpression ) ; \n - myTypeComboBox . getEditor ( ) . setItem ( createDocument ( objectType . getPresentableText ( ) ) ) ; \n + final TypeConstraint [ ] constrants = GroovyExpectedTypesUtil . calculateTypeConstraints ( myReferenceExpression ) ; \n + PsiType type = constrants . length == NUMBER0 ? constrants [ NUMBER1 ] . getType ( ) : TypesUtil . getJavaLangObject ( myReferenceExpression ) ; \n + myTypeComboBox . getEditor ( ) . setItem ( createDocument ( type . getPresentableText ( ) ) ) ; \n } \n \n protected void addDataChangeListener ( ) {", "msg_token": "use expected types"} {"diff": " public class SchemaResolver implements EntityResolver { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public InputSource resolveEntity ( String publicId , String systemId ) \n throws SAXException {", "msg_token": "Add Override annotation"} {"diff": " public final class Blockmania { \n private int _activeViewingDistance = NUMBER0 ; \n \n COMMENT \n - private final ThreadPoolExecutor _threadPool = ( ThreadPoolExecutor ) Executors . newFixedThreadPool ( NUMBER1 ) ; \n + private final ThreadPoolExecutor _threadPool = ( ThreadPoolExecutor ) Executors . newCachedThreadPool ( ) ; \n \n COMMENT \n private static final int FRAME_SKIP_MAX_FRAMES = NUMBER2 ;", "msg_token": "Replaces fixed thread pool with a cached alternative"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PsiFileNode extends BasePsiNode < PsiFile > { \n } \n \n protected void updateImpl ( PresentationData data ) { \n - data . setPresentableText ( getValue ( ) . getName ( ) ) ; \n - data . setIcons ( IconUtilEx . getIcon ( getValue ( ) , Iconable . ICON_FLAG_READ_STATUS , getProject ( ) ) ) ; \n + final PsiFile value = getValue ( ) ; \n + data . setPresentableText ( value . getName ( ) ) ; \n + data . setIcons ( value . getIcon ( Iconable . ICON_FLAG_READ_STATUS ) ) ; \n } \n \n public VirtualFile getVirtualFile ( ) {", "msg_token": "remove unnecessary use of IconUtilEx"} {"diff": " public class SslTransportLayer implements TransportLayer { \n try { \n return sslEngine . getSession ( ) . getPeerPrincipal ( ) ; \n } catch ( SSLPeerUnverifiedException se ) { \n - log . warn ( STRING0 ) ; \n + log . debug ( STRING0 ) ; \n return KafkaPrincipal . ANONYMOUS ; \n } \n }", "msg_token": "Reduce the log level when the peer isn t authenticated but is using SSL"} {"diff": " import NAMESPACE ; \n public class SwipeDismissLayout extends FrameLayout { \n private static final String TAG = STRING0 ; \n \n - private static final float DISMISS_MIN_DRAG_WIDTH_RATIO = FLOAT0 ; \n + private static final float DISMISS_MIN_DRAG_WIDTH_RATIO = FLOAT1 ; \n \n public interface OnDismissedListener { \n void onDismissed ( SwipeDismissLayout layout ) ;", "msg_token": "Make a smaller cliff for dismissing cards"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class WebStartTest extends TestCase { \n f . setLocation ( NUMBER0 , NUMBER0 ) ; \n f . setVisible ( true ) ; \n f . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; \n - if ( timeout ) { \n + if ( timeout != NUMBER1 ) { \n try { Thread . sleep ( timeout ) ; } catch ( Exception e ) { } \n } \n } \n \n public static void main ( String [ ] args ) { \n try { \n - if ( args . length == NUMBER2 && STRING0 . equals ( args [ NUMBER3 ] ) ) { \n + if ( args . length == NUMBER2 \n + && STRING0 . equals ( args [ NUMBER3 ] ) \n + && ! runningWebStart ( ) ) { \n System . setProperty ( STRING1 , STRING2 ) ; \n } \n if ( runningWebStart ( ) ) {", "msg_token": "only set javawebstart version if not already set"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CacheSizes { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public static int sizeOfList ( List list ) { \n + public static int sizeOfCollection ( Collection list ) { \n if ( list == null ) { \n return NUMBER0 ; \n }", "msg_token": "Renamed sizeOfList to sizeOfCollection to accept Collections and not only Lists"} {"diff": " public abstract class AbstractCommandViewAttributeTest < ViewType extends View , Co \n @ suppresswarnings ( STRING0 ) \n protected void bindViewListenersAwareAttribute ( ViewListeners viewListeners ) \n { \n + assertThat ( attribute , instanceOf ( ViewListenersAware . class ) ) ; \n ( ( ViewListenersAware < ViewListeners > ) attribute ) . setViewListeners ( viewListeners ) ; \n bindAttribute ( ) ; \n }", "msg_token": "Added a minor improvement to AbstractCommandViewAttributeTest"} {"diff": " public class Utils { \n } \n return ret ; \n } \n + \n + public static byte [ ] toByteArray ( ByteBuffer buffer ) { \n + byte [ ] ret = new byte [ buffer . remaining ( ) ] ; \n + buffer . get ( ret , NUMBER0 , ret . length ) ; \n + return ret ; \n + } \n }", "msg_token": "add ByteBuffer byte array function"} {"diff": " public class RuleMeasure extends Measure { \n COMMENT \n @ deprecated \n public RuleMeasure ( Metric metric , @ nullable Rule rule , @ nullable RulePriority rulePriority , @ nullable Integer ruleCategory ) { \n - this ( metric , rule . ruleKey ( ) , rulePriority , ruleCategory ) ; \n + this ( metric , rule != null ? rule . ruleKey ( ) : null , rulePriority , ruleCategory ) ; \n } \n \n public RuleMeasure ( Metric metric , @ nullable RuleKey ruleKey , @ nullable RulePriority rulePriority , @ nullable Integer ruleCategory ) {", "msg_token": "Fix potential NPE"} {"diff": " public class Rapids { \n if ( val . isFrame ( ) ) { \n Frame fr = val . getFrame ( ) ; \n assert fr . _key != null ; SINGLE \n - if ( ses . FRAMES . containsKey ( fr ) ) { \n + if ( ses . FRAMES . containsKey ( fr . _key ) ) { \n throw water . H2O . unimpl ( ) ; \n } else { \n ses . addRefCnt ( fr , - NUMBER0 ) ;", "msg_token": "Fix a bug with incorrect access to Session FRAMES"} {"diff": " public class EntityBeanEjbSelectCheck \n log ( nameAST . getLineNo ( ) , nameAST . getColumnNo ( ) , \n STRING0 , STRING1 + name ) ; \n } \n + if ( ! Utils . hasThrows ( aAST , STRING2 ) ) { \n + log ( nameAST . getLineNo ( ) , nameAST . getColumnNo ( ) , \n + STRING3 , \n + new Object [ ] { name , STRING2 } ) ; \n + } \n } \n } \n } \n public class EntityBeanEjbSelectCheckTest extends BaseCheckTestCase \n STRING4 , \n STRING5 , \n STRING6 , \n + STRING7 , \n } ; \n verify ( checkConfig , getPath ( STRING8 ) , expected ) ; \n }", "msg_token": "added check for FinderException throws clause to ejbSelect check"} {"diff": " public class KryoSerializer extends Kryo implements Serializer { \n else if ( type . isArray ( ) ) { \n return isValidClass ( type . getComponentType ( ) ) ; \n } else { \n - for ( Constructor c : type . getConstructors ( ) ) { \n + for ( Constructor c : type . getDeclaredConstructors ( ) ) { \n if ( c . getParameterTypes ( ) . length == NUMBER0 ) return true ; \n } \n return false ;", "msg_token": "changed constructor discovery"} {"diff": " final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond \n COMMENT \n COMMENT \n private int processWrite ( int state , final Object userData , int pos , int length ) throws IOException { \n - if ( done ) { \n + if ( done || exchange == null ) { \n throw new ClosedChannelException ( ) ; \n } \n try { \n final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond \n } \n \n private void bufferDone ( ) { \n + if ( exchange == null ) { \n + return ; \n + } \n HttpServerConnection connection = ( HttpServerConnection ) exchange . getConnection ( ) ; \n if ( connection . getExtraBytes ( ) != null && connection . isOpen ( ) && exchange . isRequestComplete ( ) ) { \n SINGLE \n final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond \n \n pooledBuffer . close ( ) ; \n pooledBuffer = null ; \n + this . exchange = null ; \n } \n }", "msg_token": "Don t hold a reference to the exchange"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public final class CryptoHelper { \n } else if ( fingerprint . length ( ) < NUMBER0 ) { \n return fingerprint ; \n } \n - StringBuilder builder = new StringBuilder ( fingerprint . replaceAll ( STRING0 , STRING1 ) ) ; \n + StringBuilder builder = new StringBuilder ( fingerprint . toLowerCase ( Locale . US ) . replaceAll ( STRING0 , STRING1 ) ) ; \n for ( int i = NUMBER1 ; i < builder . length ( ) ; i += NUMBER2 ) { \n builder . insert ( i , STRING2 ) ; \n }", "msg_token": "lower case all fingerprints"} {"diff": " public class RequestHint { \n \n private boolean myIgnoreFilters = false ; \n private boolean myRestoreBreakpoints = false ; \n - private final boolean mySkipThisMethod = false ; \n \n public RequestHint ( final ThreadReferenceProxyImpl stepThread , final SuspendContextImpl suspendContext , @ notnull MethodFilter methodFilter ) { \n this ( stepThread , suspendContext , StepRequest . STEP_INTO , methodFilter ) ; \n public class RequestHint { \n } \n \n public int getDepth ( ) { \n - return mySkipThisMethod ? StepRequest . STEP_OUT : myDepth ; \n + return myDepth ; \n } \n \n @ nullable", "msg_token": "remove unused field"} {"diff": " public abstract class FolderPermissionBase { \n ret = driver . run ( STRING0 + tableName ) ; \n Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ; \n \n + assertExistence ( warehouseDir + STRING1 + tableName ) ; \n + verifyPermission ( warehouseDir + STRING1 + tableName ) ; \n + \n ret = driver . run ( STRING2 + tableName + STRING3 ) ; \n Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ; \n \n public abstract class FolderPermissionBase { \n \n assertExistence ( partition ) ; \n verifyPermission ( partition ) ; \n + \n + SINGLE \n + ret = driver . run ( STRING0 + tableName + STRING4 ) ; \n + Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ; \n + \n + assertExistence ( partition ) ; \n + verifyPermission ( partition ) ; \n } \n \n private void setSinglePartition ( String tableLoc , int index ) throws Exception {", "msg_token": "Add test case to check permissions when truncating partition"} {"diff": " public class SysOperationsTest extends SQLTransportIntegrationTest { \n public void testQueryNameFromSysOperations ( ) throws Exception { \n SQLResponse resp = execute ( STRING0 ) ; \n \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n \n - assertThat ( resp . rowCount ( ) , Matchers . greaterThanOrEqualTo ( NUMBER0 ) ) ; \n + assertThat ( resp . rowCount ( ) , Matchers . greaterThanOrEqualTo ( ( long ) internalCluster ( ) . numDataNodes ( ) ) ) ; \n List < String > names = new ArrayList < > ( ) ; \n for ( Object [ ] objects : resp . rows ( ) ) { \n names . add ( ( String ) objects [ NUMBER1 ] ) ;", "msg_token": "Fix flaky testQueryNameFromSysOperations"} {"diff": " public class ValueBuilder implements Expression , Predicate { \n SINGLE \n SINGLE \n \n - public Predicate matches ( Predicate predicate ) { \n - return onNewPredicate ( predicate ) ; \n - } \n - \n public Predicate matches ( Expression expression ) { \n return onNewPredicate ( ExpressionToPredicateAdapter . toPredicate ( expression ) ) ; \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class ValueBuilderTest extends ContextTestSupport { \n return type . cast ( answer ) ; \n } \n } ) ; \n - mock . message ( NUMBER0 ) . body ( ) . matches ( new Predicate ( ) { \n - public boolean matches ( Exchange exchange ) { \n - String body = exchange . getIn ( ) . getBody ( String . class ) ; \n - return body . contains ( STRING0 ) ; \n - } \n - } ) ; \n \n template . sendBody ( STRING1 , STRING2 ) ; \n mock . assertIsSatisfied ( ) ;", "msg_token": "Reverted Add missing matches predicate method to ValueBuilder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpClientImpl extends twitter4j . internal . http . HttpClientImpl imple \n SINGLE \n SINGLE \n client . setConnectionPool ( new ConnectionPool ( MAX_IDLE_CONNECTIONS , KEEP_ALIVE_DURATION_MS ) ) ; \n - \n - SINGLE \n - SINGLE \n - SSLContext sslContext ; \n - try { \n - sslContext = SSLContext . getInstance ( STRING0 ) ; \n - sslContext . init ( null , null , null ) ; \n - } catch ( GeneralSecurityException e ) { \n - throw new AssertionError ( ) ; SINGLE \n - } \n - client . setSslSocketFactory ( sslContext . getSocketFactory ( ) ) ; \n } \n } \n }", "msg_token": "erase the trick for SSLContext it have done by OkHttpClient itself"} {"diff": " class ApiClientImpl implements ApiClient { \n || ( response . getStatusCode ( ) >= NUMBER0 && response . getStatusCode ( ) < NUMBER1 ) ) { \n T result ; \n try { \n + if ( response . getResponseBody ( ) . isEmpty ( ) ) { \n + return null ; \n + } \n + \n if ( responseContentType . is ( MediaType . JSON_UTF_8 . withoutParameters ( ) ) ) { \n result = deserializeJson ( response , responseClass ) ; \n } else { \n class ApiClientImpl implements ApiClient { \n throw new APIException ( request , response ) ; \n } \n \n + if ( result == null ) { \n + throw new APIException ( request , response ) ; \n + } \n + \n return result ; \n } catch ( Exception e ) { \n log . error ( STRING0 + e ) ;", "msg_token": "fix two bugs in APIClient"} {"diff": " public abstract class RosieFragment extends Fragment implements ErrorView , Rosie \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ override public void onViewCreated ( View view , Bundle savedInstanceState ) { \n super . onViewCreated ( view , savedInstanceState ) ;", "msg_token": "Fix javadoc typo"} {"diff": " public class BinaryRoutePlanner { \n rlist . add ( rr ) ; \n } \n } \n + runRecalculation = rlist . size ( ) > NUMBER0 ; \n if ( rlist . size ( ) > NUMBER0 ) { \n for ( RouteSegmentResult rr : rlist ) { \n RouteSegment segment = new RouteSegment ( rr . getObject ( ) , rr . getEndPointIndex ( ) ) ; \n public class BinaryRoutePlanner { \n visitedOppositeSegments . put ( t , segment ) ; \n } \n previous = segment ; \n - \n } \n end = previous ; \n }", "msg_token": "Fix critical issue empty route recalculation"} {"diff": " import NAMESPACE ; \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 public class SerialMessage {", "msg_token": "Updated comments to provide information on the frame format"} {"diff": " public abstract class ActionBarSherlock { \n HashMap < Implementation , Class < ? extends ActionBarSherlock > > impls = \n new HashMap < Implementation , Class < ? extends ActionBarSherlock > > ( IMPLEMENTATIONS ) ; \n boolean hasQualfier ; \n - final boolean isTvDpi = activity . getResources ( ) . getDisplayMetrics ( ) . densityDpi == DisplayMetrics . DENSITY_TV ; \n \n COMMENT \n hasQualfier = false ; \n public abstract class ActionBarSherlock { \n } \n } \n if ( hasQualfier ) { \n - SINGLE \n + final boolean isTvDpi = activity . getResources ( ) . getDisplayMetrics ( ) . densityDpi == DisplayMetrics . DENSITY_TV ; \n for ( Iterator < Implementation > keys = impls . keySet ( ) . iterator ( ) ; keys . hasNext ( ) ; ) { \n int keyDpi = keys . next ( ) . dpi ( ) ; \n if ( ( isTvDpi && keyDpi != DisplayMetrics . DENSITY_TV )", "msg_token": "Fix crash if resources are unavailable"} {"diff": " public enum BlockType { \n COMMENT \n public static BlockType lookup ( String name , boolean fuzzy ) { \n String testName = name . replace ( STRING0 , STRING1 ) . toLowerCase ( ) ; \n + \n + if ( testName . length ( ) == NUMBER0 ) { \n + return null ; \n + } \n \n BlockType type = lookup . get ( testName ) ; \n \n public enum ItemType { \n COMMENT \n public static ItemType lookup ( String name , boolean fuzzy ) { \n String testName = name . replace ( STRING0 , STRING1 ) . toLowerCase ( ) ; \n + \n + if ( testName . length ( ) == NUMBER0 ) { \n + return null ; \n + } \n \n ItemType type = lookup . get ( testName ) ;", "msg_token": "Fix handling of empty strings passed to Block ItemType"} {"diff": " public class ProjectWorkspace { \n \n MoreFiles . copyRecursively ( templatePath , destPath , BUILD_FILE_RENAME ) ; \n \n - SINGLE \n + SINGLE \n Path localProperties = FileSystems . getDefault ( ) . getPath ( STRING0 ) ; \n - try { \n - java . nio . file . Files . copy ( localProperties , destPath . resolve ( localProperties . getFileName ( ) ) ) ; \n - } catch ( SecurityException | IOException e ) { \n - SINGLE \n - System . err . println ( STRING1 + e ) ; \n + Path destLocalProperties = destPath . resolve ( localProperties . getFileName ( ) ) ; \n + \n + if ( localProperties . toFile ( ) . exists ( ) && ! destLocalProperties . toFile ( ) . exists ( ) ) { \n + java . nio . file . Files . copy ( localProperties , destLocalProperties ) ; \n } \n \n if ( Platform . detect ( ) == Platform . WINDOWS ) {", "msg_token": "Handle errors with less noise on STDERR"} {"diff": " public class KeyStoreTest extends ActivityUnitTestCase < Activity > { \n assertEquals ( STRING0 , KeyStore . NO_ERROR , rc ) ; \n OperationResult result = mKeyStore . begin ( name , KeymasterDefs . KM_PURPOSE_ENCRYPT , \n true , args , null , out ) ; \n - assertEquals ( STRING1 , KeyStore . NO_ERROR , result . resultCode ) ; \n + assertEquals ( STRING2 , KeyStore . OP_AUTH_NEEDED , \n + result . resultCode ) ; \n IBinder token = result . token ; \n result = mKeyStore . update ( token , null , new byte [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 } ) ; \n assertEquals ( STRING3 ,", "msg_token": "Fix testAuthNeeded test"} {"diff": " catch ( Throwable t ) \n { \n \n } \n + else if ( action == JingleAction . SESSION_INFO ) \n + { \n + SessionInfoPacketExtension info = ( SessionInfoPacketExtension ) \n + jingleIQ . getExtension ( SessionInfoPacketExtension . NAMESPACE ) ; \n + \n + if ( info == null ) \n + return ; \n + \n + if ( info . getType ( ) == SessionInfoType . ringing ) \n + { \n + CallPeerJabberImpl callPeer = \n + activeCallsRepository . findCallPeer ( jingleIQ . getSID ( ) ) ; \n + \n + if ( callPeer == null ) \n + { \n + if ( logger . isDebugEnabled ( ) ) \n + logger . debug ( STRING0 ) ; \n + return ; \n + } \n + \n + SINGLE \n + callPeer . setState ( CallPeerState . ALERTING_REMOTE_SIDE ) ; \n + } \n + } \n } \n \n COMMENT", "msg_token": "Adds support for Ringing responses to Jabber"} {"diff": " public class TextToSpeech { \n \n try { \n mService . setCallback ( getCallerIdentity ( ) , mCallback ) ; \n - String [ ] defaultLanguage = mService . getClientDefaultLanguage ( ) ; \n \n - mParams . putString ( Engine . KEY_PARAM_LANGUAGE , defaultLanguage [ NUMBER0 ] ) ; \n - mParams . putString ( Engine . KEY_PARAM_COUNTRY , defaultLanguage [ NUMBER1 ] ) ; \n - mParams . putString ( Engine . KEY_PARAM_VARIANT , defaultLanguage [ NUMBER2 ] ) ; \n + if ( mParams . getString ( Engine . KEY_PARAM_LANGUAGE ) == null ) { \n + String [ ] defaultLanguage = mService . getClientDefaultLanguage ( ) ; \n + mParams . putString ( Engine . KEY_PARAM_LANGUAGE , defaultLanguage [ NUMBER0 ] ) ; \n + mParams . putString ( Engine . KEY_PARAM_COUNTRY , defaultLanguage [ NUMBER1 ] ) ; \n + mParams . putString ( Engine . KEY_PARAM_VARIANT , defaultLanguage [ NUMBER2 ] ) ; \n + } \n \n Log . i ( TAG , STRING0 + mName ) ; \n return SUCCESS ;", "msg_token": "Do not reset language in case of the TTS service reconnect"} {"diff": " public class KotlinExtractFunctionDialog extends DialogWrapper { \n boolean enableVisibility = isVisibilitySectionAvailable ( ) ; \n visibilityBox . setEnabled ( enableVisibility ) ; \n if ( enableVisibility ) { \n - String visibility = originalDescriptor . getDescriptor ( ) . getVisibility ( ) ; \n - visibilityBox . setSelectedItem ( visibility . isEmpty ( ) ? STRING0 : visibility ) ; \n + visibilityBox . setSelectedItem ( STRING1 ) ; \n } \n visibilityBox . addItemListener ( \n new ItemListener ( ) {", "msg_token": "Make member top level function private by default"} {"diff": " class ImapFolderPusher extends ImapFolder { \n } catch ( Exception me ) { \n Log . e ( LOG_TAG , STRING0 + getLogId ( ) , me ) ; \n } \n + \n + connection = null ; \n } \n \n private long getNewUidNext ( ) throws MessagingException {", "msg_token": "Don t reuse connection after exception in ImapFolderPusher"} {"diff": " public class WifiConfiguration implements Parcelable { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + public String lastFailure ; \n + \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WifiConfiguration implements Parcelable { \n if ( source . visibility != null ) { \n visibility = new Visibility ( source . visibility ) ; \n } \n + \n + lastFailure = source . lastFailure ; \n } \n }", "msg_token": "remember last supplicant failure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class ActionBarImplICS extends ActionBar { \n mActionBar . removeOnMenuVisibilityListener ( l ) ; \n } \n \n + @ override \n + public void setHomeButtonEnabled ( boolean enabled ) { \n + mActionBar . setHomeButtonEnabled ( enabled ) ; \n + } \n + \n static class OnNavigationListenerWrapper implements android . app . ActionBar . OnNavigationListener { \n \n private final OnNavigationListener mWrappedListener ;", "msg_token": "Fix setHomeButtonEnabled on ICS"} {"diff": " public class FileBasedIndex implements ApplicationComponent { \n if ( file instanceof VirtualFileWithId ) { \n boolean oldStuff = true ; \n if ( ! isTooLarge ( file ) ) { \n - for ( ID < ? , ? > indexId : myIndices . keySet ( ) ) { \n + final Set < ID < ? , ? > > ids = new HashSet < ID < ? , ? > > ( myIndices . keySet ( ) ) ; \n + ids . removeAll ( myNotRequiringContentIndices ) ; \n + \n + for ( ID < ? , ? > indexId : ids ) { \n try { \n if ( shouldIndexFile ( file , indexId ) ) { \n myFiles . add ( file ) ;", "msg_token": "Do not push content of the files to the queue if we only need to index its name"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DesktopApplicationHeader implements ApplicationHeader \n return selection . isEmpty ( ) ; \n } \n \n - String selectionText = DomUtils . getSelectionText ( Document . get ( ) ) ; \n - return StringUtil . isNullOrEmpty ( selectionText ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return false ; \n } \n \n private static boolean isFocusInAceInstance ( )", "msg_token": "fix copy paste in non Ace text fields"} {"diff": " public class FunctionRefTests extends ScriptTestCase { \n public void testOwnStaticMethodReference ( ) { \n SINGLE \n SINGLE \n - assertEquals ( NUMBER0 , exec ( STRING0 + \n + assertEquals ( NUMBER0 , exec ( STRING1 + \n STRING2 ) ) ; \n } \n \n @ awaitsfix ( bugUrl = STRING3 ) \n public void testOwnStaticMethodReferenceDef ( ) { \n - assertEquals ( NUMBER0 , exec ( STRING0 + \n + assertEquals ( NUMBER0 , exec ( STRING1 + \n STRING4 ) ) ; \n }", "msg_token": "remove unnecessary semicolon and return"} {"diff": " public class CheckerTest \n public void testPackageNames ( ) throws CheckstyleException \n { \n final Checker c = new Checker ( ) ; \n + assertNotNull ( c ) ; \n \n SINGLE \n SINGLE", "msg_token": "should this test still exist"} {"diff": " public abstract class BaseLayoutManager extends TwoWayLayoutManager { \n } \n \n final int itemCount = state . getItemCount ( ) ; \n - mItemEntries . setAdapterSize ( itemCount ) ; \n + \n + if ( mItemEntries != null ) { \n + mItemEntries . setAdapterSize ( itemCount ) ; \n + } \n \n final int anchorItemPosition = getAnchorItemPosition ( state ) ;", "msg_token": "layouts Fix NPE when restoring ListLayoutManager state"} {"diff": " public class PokeBank { \n this . instance = instance ; \n } \n \n - public void addPokemon ( Pokemon pokemon ) { \n + public void addPokemon ( final Pokemon pokemon ) { \n pokemon . setPgo ( instance ) ; \n - pokemons . add ( pokemon ) ; \n + List < Pokemon > alreadyAdded = StreamSupport . stream ( pokemons ) . filter ( new Predicate < Pokemon > ( ) { \n + @ override \n + public boolean test ( Pokemon p ) { \n + return pokemon . getId ( ) == p . getId ( ) ; \n + } \n + } ) . collect ( Collectors . < Pokemon > toList ( ) ) ; \n + if ( alreadyAdded . size ( ) < NUMBER0 ) { \n + pokemons . add ( pokemon ) ; \n + } \n }", "msg_token": "Added check to see if pokemon was already in the inventory"} {"diff": " public final class ContactsContract { \n public static final String LIMIT_PARAM_KEY = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String PRIMARY_ACCOUNT_NAME = STRING1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String PRIMARY_ACCOUNT_TYPE = STRING2 ; \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final class Preferences {", "msg_token": "Add params for primary account to ContactsContract"} {"diff": " public final class FuncallExpression extends Expression { \n obj = value ; \n objClass = value . getClass ( ) ; \n } \n - MethodDescriptor methodDescriptor = call . findJavaMethod ( objClass , method , positionalArgs ) ; \n if ( ! keyWordArgs . isEmpty ( ) ) { \n throw new EvalException ( \n call . func . getLocation ( ) , \n public final class FuncallExpression extends Expression { \n method , \n EvalUtils . getDataTypeNameFromClass ( objClass ) ) ) ; \n } \n + MethodDescriptor methodDescriptor = call . findJavaMethod ( objClass , method , positionalArgs ) ; \n return callMethod ( methodDescriptor , method , obj , positionalArgs . toArray ( ) , location , env ) ; \n } \n } \n public class SkylarkEvaluationTest extends EvaluationTest { \n new SkylarkTest ( ) \n . update ( STRING0 , new Mock ( ) ) \n . testIfExactError ( STRING1 \n - + STRING2 , \n - STRING3 ) ; \n + + STRING4 , \n + STRING5 ) ; \n } \n \n @ test", "msg_token": "Prioritize kwarg presence error in invokeObjectMethod"} {"diff": " public class ModuleWithDependenciesScope extends GlobalSearchScope { \n \n if ( myModules != null ) { \n final Module module = myProjectFileIndex . getModuleForFile ( file ) ; \n - if ( module != null ) return myModules . contains ( module ) && myFileIndex . getOrderEntryForFile ( file ) != null ; \n + if ( module != null ) return myModules . contains ( module ) && \n + myFileIndex . getOrderEntryForFile ( file ) != null && \n + ( myIncludeTests || ! myProjectFileIndex . isInTestSourceContent ( file ) ) ; \n } \n \n final List < OrderEntry > entries = myFileIndex . getOrderEntriesForFile ( file ) ;", "msg_token": "Editor allows production code in module A to reference test code in module B when A depends on B"} {"diff": " public class MongoOptions { \n socketFactory = SocketFactory . getDefault ( ) ; \n } \n \n + public MongoOptions copy ( ) { \n + MongoOptions m = new MongoOptions ( ) ; \n + m . connectionsPerHost = connectionsPerHost ; \n + m . threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier ; \n + m . maxWaitTime = maxWaitTime ; \n + m . connectTimeout = connectTimeout ; \n + m . socketTimeout = socketTimeout ; \n + m . socketKeepAlive = socketKeepAlive ; \n + m . autoConnectRetry = autoConnectRetry ; \n + m . maxAutoConnectRetryTime = maxAutoConnectRetryTime ; \n + m . slaveOk = slaveOk ; \n + m . safe = safe ; \n + m . w = w ; \n + m . wtimeout = wtimeout ; \n + m . fsync = fsync ; \n + m . j = j ; \n + m . dbDecoderFactory = dbDecoderFactory ; \n + m . dbEncoderFactory = dbEncoderFactory ; \n + m . socketFactory = socketFactory ; \n + return m ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added MongoOptions copy"} {"diff": " public class HttpAsyncCallbackTest extends CamelTestSupport { \n assertMockEndpointsSatisfied ( ) ; \n \n SINGLE \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n \n SINGLE \n assertEquals ( NUMBER2 , callback . getData ( ) . size ( ) ) ; \n public class HttpAsyncCallbackTest extends CamelTestSupport { \n SINGLE \n SINGLE \n from ( STRING0 ) \n - . delay ( NUMBER1 ) \n + . delay ( NUMBER3 ) \n . transform ( body ( ) . prepend ( STRING1 ) ) \n . to ( STRING2 ) ; \n SINGLE \n } \n } ; \n } \n - \n }", "msg_token": "Fix timing issue in integration test"} {"diff": " import NAMESPACE ; \n } ) \n public class Person { \n @ id \n - @ generatedvalue ( strategy = GenerationType . AUTO ) \n + @ generatedvalue ( strategy = GenerationType . IDENTITY ) \n private long id ; \n \n @ column ( name = STRING0 , nullable = false )", "msg_token": "Fix Person ID generation for example"} {"diff": " class DumbModeIndicator extends StatusBarCustomComponentFactory < DumbModeIndicato \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n - STRING5 + DumbServiceImpl . FILE_INDEX_BACKGROUND + STRING6 + \n - STRING7 + \n STRING8 , STRING9 , DUMB_MODE_ICON ) ; \n } \n } ) ;", "msg_token": "don t mention registry in dumb mode disclaimer"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public class EvalExpressionDialog extends InputExpressionDialog < EvalFormPanel > { \n public EvalExpressionDialog ( Project project , Config settings , HistoryElement [ ] history ) { \n super ( project , settings , history , new EvalFormPanel ( ) ) ; \n setTitle ( STRING0 ) ; \n + setOKButtonText ( STRING1 ) ; \n } \n \n protected void init ( ) {", "msg_token": "Evaluate XPath Expression OK button text"} {"diff": " public class NotificationManagerService extends INotificationManager . Stub \n pw . println ( prefix + STRING0 + notification . deleteIntent ) ; \n pw . println ( prefix + STRING1 + notification . tickerText ) ; \n pw . println ( prefix + STRING2 + notification . contentView ) ; \n + pw . println ( prefix + STRING3 + uid ) ; \n pw . println ( prefix + STRING4 + Integer . toHexString ( notification . defaults ) ) ; \n pw . println ( prefix + STRING5 + Integer . toHexString ( notification . flags ) ) ; \n pw . println ( prefix + STRING6 + notification . sound ) ;", "msg_token": "Dump the uid of a notification for debugging"} {"diff": " public class MailComponent extends DefaultComponent implements HeaderFilterStrat \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static MailComponent mailComponent ( ) { \n return new MailComponent ( ) ; \n public class MailComponent extends DefaultComponent implements HeaderFilterStrat \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static MailComponent mailComponent ( MailConfiguration configuration ) { \n return new MailComponent ( configuration ) ; \n public class MailComponent extends DefaultComponent implements HeaderFilterStrat \n \n @ override \n protected Endpoint createEndpoint ( String uri , String remaining , Map parameters ) throws Exception { \n - \n URI url = new URI ( uri ) ; \n if ( STRING0 . equalsIgnoreCase ( url . getScheme ( ) ) ) { \n throw new UnsupportedOperationException ( STRING1 ) ; \n public class MailComponent extends DefaultComponent implements HeaderFilterStrat \n \n public void setHeaderFilterStrategy ( HeaderFilterStrategy strategy ) { \n headerFilterStrategy = strategy ; \n - \n } \n }", "msg_token": "polished code and marked methods for deprecation"} {"diff": " public class VideoItemDetailFragment extends Fragment { \n } \n @ override \n public void run ( ) { \n - boolean show_age_restricted_content = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) \n - . getBoolean ( activity . getString ( R . string . show_age_restricted_content ) , false ) ; \n - if ( streamInfo . age_limit == NUMBER0 || show_age_restricted_content ) { \n - updateInfo ( streamInfo ) ; \n - } else { \n - onNotSpecifiedContentErrorWithMessage ( R . string . video_is_age_restricted ) ; \n + Activity a = getActivity ( ) ; \n + if ( a != null ) { \n + boolean show_age_restricted_content = PreferenceManager . getDefaultSharedPreferences ( a ) \n + . getBoolean ( activity . getString ( R . string . show_age_restricted_content ) , false ) ; \n + if ( streamInfo . age_limit == NUMBER0 || show_age_restricted_content ) { \n + updateInfo ( streamInfo ) ; \n + } else { \n + onNotSpecifiedContentErrorWithMessage ( R . string . video_is_age_restricted ) ; \n + } \n } \n } \n }", "msg_token": "fixed yet another bug"} {"diff": " public class RenderQueue { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RenderQueue { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public GeometryComparator getGeometryComparator ( Bucket bucket ) { \n + switch ( bucket ) { \n + case Gui : \n + return guiList . getComparator ( ) ; \n + case Opaque : \n + return opaqueList . getComparator ( ) ; \n + case Sky : \n + return skyList . getComparator ( ) ; \n + case Transparent : \n + return transparentList . getComparator ( ) ; \n + case Translucent : \n + return translucentList . getComparator ( ) ; \n + default : \n + throw new UnsupportedOperationException ( STRING0 + bucket ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added an accessor for accessing the current GeometryComparator"} {"diff": " public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n private boolean mSelectable = false ; \n SINGLE \n private boolean mOnlyOneExpandedItem = false ; \n - SINGLE \n + SINGLE \n private boolean mPositionBasedStateManagement = false ; \n \n SINGLE \n public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FastAdapter < Item > withPositionBasedStateManagement ( boolean mPositionBasedStateManagement ) { \n + this . mPositionBasedStateManagement = mPositionBasedStateManagement ; \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public boolean isSelectable ( ) {", "msg_token": "add setter for to configure the new StateManagment or use the previous variant"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class LwjglContext implements JmeContext { \n \n if ( settings . getRenderer ( ) . equals ( AppSettings . LWJGL_OPENGL2 ) \n || settings . getRenderer ( ) . equals ( AppSettings . LWJGL_OPENGL3 ) ) { \n - renderer = new LwjglRenderer ( ) ; \n - ( ( LwjglRenderer ) renderer ) . initialize ( ) ; \n + LwjglGL gl = new LwjglGL ( ) ; \n + LwjglGLExt glext = new LwjglGLExt ( ) ; \n + renderer = new GLRenderer ( gl , glext ) ; \n + renderer . initialize ( ) ; \n } else { \n throw new UnsupportedOperationException ( STRING0 + settings . getRenderer ( ) ) ; \n }", "msg_token": "Use unified renderer architecture for LWJGL by default other backends pending"} {"diff": " public class OsmandSettings { \n return customBooleanRoutingProps . get ( attrName ) ; \n } \n \n + public final OsmandPreference < Boolean > USE_OSM_LIVE_FOR_ROUTING = new BooleanPreference ( STRING0 , false ) . makeGlobal ( ) ; \n + \n public final OsmandPreference < Boolean > VOICE_MUTE = new BooleanPreference ( STRING1 , false ) . makeGlobal ( ) ; \n \n SINGLE \n public class ResourceManager { \n warnings . add ( MessageFormat . format ( context . getString ( R . string . version_index_is_not_supported ) , f . getName ( ) ) ) ; SINGLE \n } \n } \n - if ( mapReader . containsRouteData ( ) ) { \n + SINGLE \n + if ( mapReader . containsRouteData ( ) && ( ! f . getParentFile ( ) . equals ( liveDir ) || \n + context . getSettings ( ) . USE_OSM_LIVE_FOR_ROUTING . get ( ) ) ) { \n try { \n RandomAccessFile raf = new RandomAccessFile ( f , STRING2 ) ; SINGLE \n routingMapFiles . put ( f . getName ( ) , new BinaryMapIndexReader ( raf , mapReader ) ) ;", "msg_token": "Disable osmc routing"} {"diff": " public final class CrossLanguageRegexpHeaderCheck extends AbstractFileSetCheck \n private final RegexpHeaderInfo mHeaderInfo = new RegexpHeaderInfo ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed typo in javadoc"} {"diff": " public class SpringApplicationJsonEnvironmentPostProcessor \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private Map < String , Object > flatten ( Map < String , Object > map ) { \n Map < String , Object > result = new LinkedHashMap < String , Object > ( ) ;", "msg_token": "Fix the javadoc in SpringApplicationJsonEnvironmentPostProcessor"} {"diff": " public interface Block { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - void setTypeID ( int type ) ; \n + boolean setTypeID ( int type ) ; \n \n COMMENT \n COMMENT", "msg_token": "Changed Block setTypeID to return a boolean indicating whether the block was changed as provided by Minecraft"} {"diff": " public class MediaRouteControllerDialog extends AlertDialog { \n if ( pi != null ) { \n try { \n pi . send ( ) ; \n + dismiss ( ) ; \n } catch ( PendingIntent . CanceledException e ) { \n Log . e ( TAG , pi + STRING0 ) ; \n } \n } \n } \n - dismiss ( ) ; \n } \n } ; \n mArtView = ( ImageView ) findViewById ( R . id . mr_art ) ;", "msg_token": "Dismiss the controller dialog only when a pending intent is set"} {"diff": " public class Response \n outputBuffer . setResponse ( coyoteResponse ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public org . apache . coyote . Response getCoyoteResponse ( ) { \n return this . coyoteResponse ; \n }", "msg_token": "Restore Javadoc to the getCoyoteResponse method"} {"diff": " public abstract class AbstractProtocol implements ProtocolHandler , \n this . handler = handler ; \n } \n \n + @ suppresswarnings ( STRING0 ) SINGLE \n @ override \n public boolean push ( Processor < S > processor ) { \n int cacheSize = handler . getProtocol ( ) . getProcessorCache ( ) ; \n public abstract class AbstractProtocol implements ProtocolHandler , \n return result ; \n } \n \n + @ suppresswarnings ( STRING0 ) SINGLE \n @ override \n public Processor < S > pop ( ) { \n Processor < S > result = super . pop ( ) ;", "msg_token": "Suppress some warnings"} {"diff": " import NAMESPACE ; \n COMMENT \n class DomainApiHandler implements ManagementHttpHandler { \n \n - private static final String DOMAIN_API_CONTEXT = STRING0 ; \n + private static final String DOMAIN_API_CONTEXT = STRING1 ; \n private static final String UPLOAD_REQUEST = DOMAIN_API_CONTEXT + STRING2 ; \n \n private static Pattern MULTIPART_FD_BOUNDARY = Pattern . compile ( STRING3 ) ;", "msg_token": "Rename domain api context to management"} {"diff": " public final class SourceMapDecoder { \n } \n \n List < String > sources = readSources ( sourcesReader , sourceRoot ) ; \n + if ( sources . isEmpty ( ) ) { \n + SINGLE \n + return null ; \n + } \n \n @ suppresswarnings ( STRING0 ) \n List < MappingEntry > [ ] reverseMappingsBySourceUrl = new List [ sources . size ( ) ] ;", "msg_token": "skip empty map"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Metrics { \n HEALTH_CHECKS . putIfAbsent ( name , healthCheck ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static Map < MetricName , Metric > allMetrics ( ) { \n + return Collections . unmodifiableMap ( METRICS ) ; \n + } \n + \n @ suppresswarnings ( STRING0 ) \n private static < T extends Metric > T getOrAdd ( MetricName name , T metric ) { \n final Metric existingMetric = METRICS . get ( name ) ;", "msg_token": "Added an unmodifiable view into all metrics"} {"diff": " import static NAMESPACE ; \n @ suppresswarnings ( STRING0 ) \n public abstract class HttpBase < T > { \n \n + public static final String HEADER_ACCEPT = STRING1 ; \n public static final String HEADER_ACCEPT_ENCODING = STRING2 ; \n public static final String HEADER_CONTENT_TYPE = STRING3 ; \n public static final String HEADER_CONTENT_LENGTH = STRING4 ; \n public abstract class HttpBase < T > { \n return header ( HEADER_CONTENT_ENCODING ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public String accept ( ) { \n + return header ( HEADER_ACCEPT ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public T accept ( String encodings ) { \n + header ( HEADER_ACCEPT , encodings , true ) ; \n + return ( T ) this ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added getter setter for Accept header"} {"diff": " public class Viewport { \n COMMENT \n protected RectD mCurrentViewport = new RectD ( ) ; \n \n - protected long mMaxXAxisViewportSize = NUMBER0 ; \n + protected double mMaxXAxisViewportSize = NUMBER0 ; \n \n COMMENT \n COMMENT \n public class Viewport { \n COMMENT \n COMMENT \n COMMENT \n - public void setMaxXAxisViewportSize ( long mMaxXAxisViewportSize ) { \n + public void setMaxXAxisViewportSize ( double mMaxXAxisViewportSize ) { \n this . mMaxXAxisViewportSize = mMaxXAxisViewportSize ; \n } \n }", "msg_token": "Changed mMaxXAxisViewportSize from long to double"} {"diff": " public final class UpgradeService { \n StringBuilder changeLog = new StringBuilder ( ) ; \n \n if ( from <= V2_14_4 ) \n - newVersionString ( changeLog , STRING0 , new String [ ] { \n + newVersionString ( changeLog , STRING1 , new String [ ] { \n STRING2 + \n STRING3 + \n STRING4 + \n public final class UpgradeService { \n STRING5 , \n } ) ; \n if ( from >= V3_0_0 && from < V3_3_0 ) \n - newVersionString ( changeLog , STRING6 , new String [ ] { \n - STRING7 , \n + newVersionString ( changeLog , STRING1 , new String [ ] { \n + STRING8 , \n + STRING9 , \n + STRING10 , \n + STRING11 , \n + STRING12 , \n } ) ; \n if ( from >= V3_0_0 && from < V3_2_0 ) \n newVersionString ( changeLog , STRING13 , new String [ ] {", "msg_token": "Updated changelog information"} {"diff": " public enum DyeColor { \n COMMENT \n public static DyeColor getByWoolData ( final byte data ) { \n int i = NUMBER0 & data ; \n - if ( i > BY_WOOL_DATA . length ) { \n + if ( i >= BY_WOOL_DATA . length ) { \n return null ; \n } \n return BY_WOOL_DATA [ i ] ; \n public enum DyeColor { \n COMMENT \n public static DyeColor getByDyeData ( final byte data ) { \n int i = NUMBER0 & data ; \n - if ( i > BY_DYE_DATA . length ) { \n + if ( i >= BY_DYE_DATA . length ) { \n return null ; \n } \n return BY_DYE_DATA [ i ] ;", "msg_token": "Fix off by one error in DyeColor"} {"diff": " public class TestStringFunctions \n } \n \n @ test \n + public void testVarcharToVarcharX ( ) \n + { \n + assertFunction ( STRING0 , createVarcharType ( Integer . MAX_VALUE ) , STRING1 ) ; \n + } \n + \n + @ test \n public void testLower ( ) \n { \n assertFunction ( STRING2 , createVarcharType ( NUMBER0 ) , STRING3 ) ;", "msg_token": "Add test for calling varchar x function with varchar"} {"diff": " public class RecentsConfiguration { \n SINGLE \n SINGLE \n boolean isLandscape = windowRect . width ( ) > windowRect . height ( ) ; \n - hasTransposedNavBar = isLandscape && isLargeScreen && ! isXLargeScreen ; \n - hasTransposedSearchBar = isLandscape && isLargeScreen && ! isXLargeScreen ; \n + hasTransposedNavBar = isLandscape && ! isXLargeScreen ; \n + hasTransposedSearchBar = isLandscape && ! isXLargeScreen ; \n } \n \n COMMENT \n class FilteredTaskList { \n \n COMMENT \n int indexOf ( Task t ) { \n - if ( mTaskIndices . containsKey ( t . key ) ) { \n + if ( t != null && mTaskIndices . containsKey ( t . key ) ) { \n return mTaskIndices . get ( t . key ) ; \n } \n return - NUMBER0 ;", "msg_token": "Fixing landscape transition into Recents"} {"diff": " public class ViewPager extends ViewGroup { \n setCurrentItemInternal ( item , true , false ) ; \n } \n \n + public int getCurrentItem ( ) { \n + return mCurItem ; \n + } \n + \n void setCurrentItemInternal ( int item , boolean smoothScroll , boolean always ) { \n if ( mAdapter == null || mAdapter . getCount ( ) <= NUMBER0 ) { \n setScrollingCacheEnabled ( false ) ;", "msg_token": "Add ViewaPager getCurrentItem"} {"diff": " public class OpenSSLContext implements org . apache . tomcat . util . net . SSLContext { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n @ override \n public synchronized void init ( KeyManager [ ] kms , TrustManager [ ] tms , SecureRandom sr ) { \n import NAMESPACE ; \n \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class OpenSSLServerSessionContext extends OpenSSLSessionContext { \n OpenSSLServerSessionContext ( long context ) {", "msg_token": "Fix Javadoc nags"} {"diff": " public class ThemeWebActivity extends WPWebViewActivity { \n public static final String THEME_NAME = STRING0 ; \n private static final String THEME_DOMAIN_PUBLIC = STRING1 ; \n private static final String THEME_DOMAIN_PREMIUM = STRING2 ; \n - private static final String THEME_URL_PREVIEW = STRING3 ; \n + private static final String THEME_URL_PREVIEW = STRING4 ; \n private static final String THEME_URL_SUPPORT = STRING5 ; \n private static final String THEME_URL_DETAILS = STRING6 ; \n private static final String THEME_URL_DEMO_PARAMETER = STRING7 ;", "msg_token": "Hiding close button on preview"} {"diff": " public class ScorePhrasesLearnFeatWt < E extends Pattern > extends PhraseScorer < E > \n \n public ScorePhrasesLearnFeatWt ( ConstantsAndVariables constvar ) { \n super ( constvar ) ; \n - if ( constvar . useWordVectorsToComputeSim && ( constvar . subsampleUnkAsNegUsingSim || constvar . expandPositivesWhenSampling ) && wordVectors == null ) { \n + if ( constvar . useWordVectorsToComputeSim && ( constvar . subsampleUnkAsNegUsingSim || constvar . expandPositivesWhenSampling || constvar . expandNegativesWhenSampling || constVars . usePhraseEvalWordVector ) && wordVectors == null ) { \n if ( Data . rawFreq == null ) { \n Data . rawFreq = new ClassicCounter < CandidatePhrase > ( ) ; \n Data . computeRawFreqIfNull ( PatternFactory . numWordsCompound , constvar . batchProcessSents ) ;", "msg_token": "Read word vectors"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class LookupDimensionSpec implements DimensionSpec \n final LookupExtractor lookupExtractor = Strings . isNullOrEmpty ( name ) \n ? this . lookup \n : Preconditions . checkNotNull ( \n - this . lookupReferencesManager . get ( name ) . get ( ) , \n - STRING0 , \n + lookupReferencesManager . get ( name ) , \n + STRING1 , \n name \n - ) ; \n + ) . get ( ) ; \n + \n return new LookupExtractionFn ( \n lookupExtractor , \n retainMissingValue , \n public class LookupDimensionSpec implements DimensionSpec \n lookupExtractor . isOneToOne ( ) , \n optimize \n ) ; \n - \n } \n \n @ override", "msg_token": "Improve NPE message in LookupDimensionSpec when lookup does not exist"} {"diff": " public class AdbHelper { \n SINGLE \n if ( successCount > NUMBER0 ) { \n console . printSuccess ( \n - String . format ( STRING0 , adbCallable , successCount ) ) ; \n + String . format ( STRING1 , adbCallable , successCount ) ) ; \n } \n if ( failureCount > NUMBER0 ) { \n console . printBuildFailure (", "msg_token": "Fix a typo in a log message"} {"diff": " public class Activity extends ContextThemeWrapper \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setActionBar ( @ nullable Toolbar toolbar ) { \n final ActionBar ab = getActionBar ( ) ; \n public class Activity extends ContextThemeWrapper \n ab . onDestroy ( ) ; \n } \n \n - ToolbarActionBar tbab = new ToolbarActionBar ( toolbar , getTitle ( ) , this ) ; \n - mActionBar = tbab ; \n - mWindow . setCallback ( tbab . getWrappedWindowCallback ( ) ) ; \n - mActionBar . invalidateOptionsMenu ( ) ; \n + if ( toolbar != null ) { \n + final ToolbarActionBar tbab = new ToolbarActionBar ( toolbar , getTitle ( ) , this ) ; \n + mActionBar = tbab ; \n + mWindow . setCallback ( tbab . getWrappedWindowCallback ( ) ) ; \n + } else { \n + mActionBar = null ; \n + SINGLE \n + mWindow . setCallback ( this ) ; \n + } \n + \n + invalidateOptionsMenu ( ) ; \n } \n \n COMMENT", "msg_token": "Allow setActionBar to take a null param"} {"diff": " public class JmsMessage extends DefaultMessage { \n @ override \n public void copyFrom ( org . apache . camel . Message that ) { \n SINGLE \n - SINGLE \n + SINGLE \n getHeaders ( ) . clear ( ) ; \n \n boolean copyMessageId = true ; \n public class JmsRouteEndpointTest extends CamelTestSupport { \n \n template . sendBody ( jms , STRING0 ) ; \n \n + assertEndpointUri ( jms , STRING1 ) ; \n + \n result . assertIsSatisfied ( ) ; \n }", "msg_token": "add simple assertion for endpoint uri"} {"diff": " public abstract class HotwordRecognitionService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void onHotwordEvent ( int eventType , Bundle eventBundle ) throws RemoteException { \n public abstract class HotwordRecognitionService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void onHotwordRecognized ( Intent activityIntent ) throws RemoteException { \n mListener . onHotwordRecognized ( activityIntent ) ; \n public abstract class HotwordRecognitionService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public void onError ( int errorCode ) throws RemoteException { \n mListener . onHotwordError ( errorCode ) ;", "msg_token": "Fixing build break"} {"diff": " public class RegionCommands { \n \n @ command ( \n aliases = { STRING0 } , \n - usage = STRING1 , \n + usage = STRING2 , \n desc = STRING3 , \n min = NUMBER0 , \n max = NUMBER1 \n public class RegionCommands { \n \n @ command ( \n aliases = { STRING4 } , \n - usage = STRING5 , \n + usage = STRING6 , \n + flags = STRING7 , \n desc = STRING8 , \n min = NUMBER0 , \n max = NUMBER2 \n public class RegionCommands { \n args . argsLength ( ) > NUMBER3 ? args . getString ( NUMBER3 ) . toLowerCase ( ) : STRING9 ) ; \n \n int affected = editSession . stackCuboidRegion ( session . getRegion ( ) , \n - dir , count , true ) ; \n + dir , count , ! args . hasFlag ( STRING10 ) ) ; \n player . print ( affected + STRING11 ) ; \n } \n }", "msg_token": "Added support for stack a to not stack air"} {"diff": " public final class AlluxioWorker { \n COMMENT \n COMMENT \n public String getDataBindHost ( ) { \n - return mBlockWorker . getDataBindHost ( ) ; \n + return mDataServer . getBindHost ( ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n public int getDataLocalPort ( ) { \n - return mBlockWorker . getDataLocalPort ( ) ; \n + return mDataServer . getPort ( ) ; \n } \n \n COMMENT \n public final class BlockWorker extends AbstractWorker { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public String getDataBindHost ( ) { \n - return mDataServer . getBindHost ( ) ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - public int getDataLocalPort ( ) { \n - return mDataServer . getPort ( ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Move port host info to Alluxio worker"} {"diff": " public class Presence extends Packet { \n return buf . toString ( ) ; \n } \n \n + public String toString ( ) { \n + StringBuffer buf = new StringBuffer ( ) ; \n + buf . append ( type ) ; \n + if ( mode != null ) { \n + buf . append ( STRING0 ) . append ( mode ) ; \n + } \n + if ( status != null ) { \n + buf . append ( STRING1 ) . append ( status ) . append ( STRING2 ) ; \n + } \n + return buf . toString ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added toString method"} {"diff": " public class Requirements { \n String ourVersion = Util . getSelfVersionName ( context ) ; \n StringBuilder sb = new StringBuilder ( text ) ; \n sb . insert ( NUMBER0 , STRING0 ) ; \n + sb . insert ( NUMBER0 , String . format ( STRING1 , Build . DISPLAY ) ) ; \n + sb . insert ( NUMBER0 , String . format ( STRING2 , Build . HOST ) ) ; \n sb . insert ( NUMBER0 , String . format ( STRING3 , Build . MODEL , Build . PRODUCT ) ) ; \n sb . insert ( NUMBER0 , String . format ( STRING4 , Build . VERSION . RELEASE , \n Build . VERSION . SDK_INT ) ) ;", "msg_token": "Add build host and display to support info"} {"diff": " public final class DriverProcessor implements DeploymentUnitProcessor { \n DriverService driverService = new DriverService ( driverMetadata , driver ) ; \n phaseContext \n . getServiceTarget ( ) \n - . addService ( ServiceName . JBOSS . append ( STRING0 , driverName . replaceAll ( STRING1 , STRING2 ) ) , driverService ) \n + . addService ( ServiceName . JBOSS . append ( STRING0 , driverName . replaceAll ( STRING3 , STRING2 ) ) , driverService ) \n . addDependency ( ConnectorServices . JDBC_DRIVER_REGISTRY_SERVICE , DriverRegistry . class , \n driverService . getDriverRegistryServiceInjector ( ) ) . setInitialMode ( Mode . ACTIVE ) . install ( ) ;", "msg_token": "Fix bug in jdbc driver processor"} {"diff": " public class NotationParserBuilder < T > { \n } \n composites . addAll ( this . notationParsers ) ; \n \n - return new NotationConverterToNotationParserAdapter < Object , T > ( new CompositeNotationConverter < Object , T > ( composites ) ) ; \n + return new NotationConverterToNotationParserAdapter < Object , T > ( composites . size ( ) == NUMBER0 ? composites . get ( NUMBER1 ) : new CompositeNotationConverter < Object , T > ( composites ) ) ; \n } \n }", "msg_token": "Don t wrap notation converters in a composite when there is only one converter"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public class ExampleSimpleWriteReadMain { \n public static void main ( String . . . args ) throws IOException { \n - final int runs = NUMBER0 * NUMBER1 ; \n + final long runs = NUMBER2 * NUMBER3 ; \n + final int batchSize = NUMBER4 ; \n + System . out . printf ( STRING0 , runs , batchSize ) ; \n long start = System . nanoTime ( ) ; \n final String basePath = System . getProperty ( STRING1 ) + STRING2 ; \n ChronicleTools . deleteOnExit ( basePath ) ;", "msg_token": "Add an example for keyed lookup"} {"diff": " public final class RIL extends BaseCommands implements CommandsInterface { \n case RIL_REQUEST_GET_SMSC_ADDRESS : ret = responseString ( p ) ; break ; \n case RIL_REQUEST_SET_SMSC_ADDRESS : ret = responseVoid ( p ) ; break ; \n case RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE : ret = responseVoid ( p ) ; break ; \n + case RIL_REQUEST_REPORT_SMS_MEMORY_STATUS : ret = responseVoid ( p ) ; break ; \n default : \n throw new RuntimeException ( STRING0 + rr . mRequest ) ; \n SINGLE", "msg_token": "Process the response of RIL_REQUEST_REPORT_SMS_MEMORY_STATUS"} {"diff": " public class DoWhileLoop \n @ override \n public void accept ( MethodVisitor visitor , MethodGenerationContext generationContext ) \n { \n - checkState ( condition . isEmpty ( ) , STRING0 ) ; \n + checkState ( ! condition . isEmpty ( ) , STRING0 ) ; \n \n Block block = new Block ( ) \n . visitLabel ( beginLabel ) \n public class WhileLoop \n @ override \n public void accept ( MethodVisitor visitor , MethodGenerationContext generationContext ) \n { \n - checkState ( condition . isEmpty ( ) , STRING1 ) ; \n + checkState ( ! condition . isEmpty ( ) , STRING1 ) ; \n \n Block block = new Block ( ) \n . visitLabel ( continueLabel )", "msg_token": "Fix compilation of While and DoWhile loops"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "removed unneeded imports"} {"diff": " public class DefaultConnection implements ConnectionVersion4 { \n File gradleUserHomeDir = GUtil . elvis ( operationParameters . getGradleUserHomeDir ( ) , StartParameter . DEFAULT_GRADLE_USER_HOME ) ; \n \n DaemonParameters parameters = new DaemonParameters ( ) ; \n - parameters . configureFromBuildDir ( operationParameters . getProjectDir ( ) , operationParameters . isSearchUpwards ( ) ) ; \n + boolean searchUpwards = operationParameters . isSearchUpwards ( ) != null ? operationParameters . isSearchUpwards ( ) : true ; \n + parameters . configureFromBuildDir ( operationParameters . getProjectDir ( ) , searchUpwards ) ; \n parameters . configureFromGradleUserHome ( gradleUserHomeDir ) ; \n parameters . configureFromSystemProperties ( System . getProperties ( ) ) ; \n if ( operationParameters . getDaemonMaxIdleTimeValue ( ) != null && operationParameters . getDaemonMaxIdleTimeUnits ( ) != null ) {", "msg_token": "Fixed NPE when search upwards is not specified"} {"diff": " public class OsmandMapTileView implements IMapDownloaderCallback { \n final LatLon r = calc . getLatLonFromPixel ( cp . x + dx , cp . y + dy ) ; \n setLatLon ( r . getLatitude ( ) , r . getLongitude ( ) ) ; \n int baseZoom = initialViewport . getZoom ( ) ; \n - LOG . debug ( STRING0 + baseZoom ) ; \n while ( initialViewport . getZoomFloatPart ( ) + dz > NUMBER0 ) { \n dz -- ; \n if ( baseZoom < mainLayer . getMaximumShownMapZoom ( ) ) { \n public class OsmandMapTileView implements IMapDownloaderCallback { \n baseZoom -- ; \n } \n } \n - LOG . debug ( STRING0 + baseZoom ) ; \n zoomToAnimate ( baseZoom , dz , true ) ; \n rotateToAnimate ( calcRotate ) ; \n }", "msg_token": "Removed unnecessary logs"} {"diff": " public class RedisDispatcher implements Recorder { \n this . host = host ; \n this . port = port ; \n \n - jedis = new Jedis ( host , port ) ; \n + SINGLE \n SINGLE \n SINGLE \n } \n \n @ override \n public void record ( String session , RecordEvent message ) { \n - SINGLE \n + Jedis jedis = new Jedis ( host , port ) ; \n Long msgid = jedis . incr ( STRING0 ) ; \n jedis . hmset ( STRING1 + COLON + session + COLON + msgid , message . toMap ( ) ) ; \n jedis . rpush ( STRING2 + COLON + session + COLON + STRING3 , msgid . toString ( ) ) ;", "msg_token": "can t get redis pool working connect each time for now"} {"diff": " import NAMESPACE ; \n public interface DateTimeField { \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n public interface DurationField extends Comparable { \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated getName docs"} {"diff": " public class PackageParser { \n } \n } \n \n + addSharedLibrariesForBackwardCompatibility ( owner ) ; \n + \n return true ; \n } \n \n + private static void addSharedLibrariesForBackwardCompatibility ( Package owner ) { \n + if ( owner . applicationInfo . targetSdkVersion <= Build . VERSION_CODES . LOLLIPOP_MR1 ) { \n + owner . usesLibraries = ArrayUtils . add ( owner . usesLibraries , STRING0 ) ; \n + } \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Conditionally include org apache http legacy in app classpaths"} {"diff": " public class DirDiffSettings { \n public boolean showNewOnTarget = true ; \n public boolean showCompareModes = true ; \n public CompareMode compareMode = CompareMode . CONTENT ; \n + public double compareTimestampAccuracy = NUMBER0 ; \n \n public boolean showInFrame = true ; SINGLE \n \n public class DTree { \n dtype = isEqual ( src , trg ) ? DType . EQUAL : DType . CHANGED ; \n break ; \n case TIMESTAMP : \n - dtype = src . getTimeStamp ( ) == trg . getTimeStamp ( ) ? DType . EQUAL : DType . CHANGED ; \n + dtype = Math . abs ( src . getTimeStamp ( ) - trg . getTimeStamp ( ) ) <= settings . compareTimestampAccuracy ? DType . EQUAL : DType . CHANGED ; \n break ; \n } \n }", "msg_token": "Compare by Timestamp reports files uploaded from project to server as different"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class CamelContextConfig { \n - private final List < Bean < ? > > routeBuilderBeans = new ArrayList < Bean < ? > > ( ) ; \n - private final List < ProcessAnnotatedType < ? > > patRouteBuilders = new ArrayList < ProcessAnnotatedType < ? > > ( ) ; \n + SINGLE \n + private final Set < Bean < ? > > routeBuilderBeans = new LinkedHashSet < Bean < ? > > ( ) ; \n + private final Set < ProcessAnnotatedType < ? > > patRouteBuilders = new LinkedHashSet < ProcessAnnotatedType < ? > > ( ) ; \n \n public void addRouteBuilderBean ( Bean < ? > bean ) { \n routeBuilderBeans . add ( bean ) ;", "msg_token": "Fixed camel cdi adding duplicate RouteBuilder in internal list of discovered RouteBuilders"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class TestConvertingSerializer357 \n + public class ConvertingSerializer357Test \n extends com . fasterxml . jackson . databind . BaseMapTest \n { \n SINGLE", "msg_token": "fix a problem introduced by IDE via refactoring"} {"diff": " public class CarrierConfigManager { \n COMMENT \n public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS = \n STRING0 ; \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS = \n + STRING1 ; \n COMMENT \n COMMENT \n COMMENT \n public class CarrierConfigManager { \n sDefaults . putInt ( KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT , NUMBER0 ) ; \n sDefaults . putStringArray ( KEY_CARRIER_METERED_APN_TYPES_STRINGS , \n new String [ ] { STRING2 , STRING3 , STRING4 , STRING5 } ) ; \n + sDefaults . putStringArray ( KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS , \n + new String [ ] { STRING2 , STRING3 , STRING4 , STRING5 } ) ; \n \n sDefaults . putStringArray ( KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY , null ) ; \n sDefaults . putStringArray ( KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY , null ) ;", "msg_token": "Add CarrierConfig for metered roaming"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove extra whitespace from license"} {"diff": " \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Replace JUnitMatchers with CoreMatchers"} {"diff": " public class PVector implements Serializable { \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n static public PVector div ( PVector v1 , PVector v2 ) {", "msg_token": "fixing up some reference things in PVector"} {"diff": " public class WikiTests extends BaseTests { \n public WikiTests ( ) { \n addTestSuite ( AddPageTest . class ) ; \n addTestSuite ( AddPortletTest . class ) ; \n - addTestSuite ( AddArticleTest . class ) ; \n - addTestSuite ( AddCommentTest . class ) ; \n - addTestSuite ( SearchTest . class ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n }", "msg_token": "Commented out certain tests until stable version"} {"diff": " public class XMLRPCUtils { \n \n private static String verifyXmlrpcUrl ( final String siteUrl , final String httpUsername , final String httpPassword ) \n throws XMLRPCUtilsException { \n - final String sanitizedSiteUrl = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , true ) ; \n + final String sanitizedSiteUrlHttps = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , true ) ; \n + final String sanitizedSiteUrlHttp = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , false ) ; \n \n SINGLE \n final Set < String > urlsToTry = new LinkedHashSet < > ( ) ; \n \n - SINGLE \n - urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrl ) ) ; \n + SINGLE \n + urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrlHttps ) ) ; \n + urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrlHttp ) ) ; \n \n - SINGLE \n - urlsToTry . add ( sanitizedSiteUrl ) ; \n + SINGLE \n + urlsToTry . add ( sanitizedSiteUrlHttps ) ; \n + urlsToTry . add ( sanitizedSiteUrlHttp ) ; \n \n SINGLE \n urlsToTry . add ( siteUrl ) ;", "msg_token": "Verify the http URL for XMLRPC as well"} {"diff": " public final class Futures { \n if ( super . cancel ( mayInterruptIfRunning ) ) { \n ListenableFuture < ? extends I > localInputFuture = inputFuture ; \n if ( localInputFuture != null ) { \n - inputFuture . cancel ( mayInterruptIfRunning ) ; \n + localInputFuture . cancel ( mayInterruptIfRunning ) ; \n } \n return true ; \n }", "msg_token": "fix potential npe in ChainingListenableFuture cancel"} {"diff": " public class DiscreteSeekBar extends View { \n } \n \n if ( mValue != value ) { \n - notifyProgress ( value , fromUser ) ; \n mValue = value ; \n + notifyProgress ( value , fromUser ) ; \n updateProgressMessage ( value ) ; \n updateThumbPosFromCurrentProgress ( ) ; \n }", "msg_token": "Don t notify listeners before updating our internal value"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class AppPoller { \n SINGLE \n private static final String [ ] IGNORE_ACTIVITIES = { STRING0 , \n STRING1 , \n - BuildConfig . PACKAGE_NAME + STRING2 + HideAllBubblesActivity . class . getName ( ) } ; \n + BuildConfig . PACKAGE_NAME + STRING2 + HideAllBubblesActivity . class . getName ( ) , \n + BuildConfig . PACKAGE_NAME + STRING2 + EntryActivity . class . getName ( ) } ; \n private boolean shouldIgnoreActivity ( String flatComponentName ) { \n for ( String string : IGNORE_ACTIVITIES ) { \n if ( string . equals ( flatComponentName ) ) {", "msg_token": "AppPoller ignores EntryActivity"} {"diff": " public class ManagedServlet implements Lifecycle { \n \n @ override \n public void release ( ) { \n - instance . destroy ( ) ; \n + \n } \n } ; \n }", "msg_token": "Revert Make sure"} {"diff": " public class SystemUtils { \n \n public void setWiFiData ( Boolean turnedOn ) { \n WifiManager wifiManager = ( WifiManager ) instrumentation . getTargetContext ( ) . getSystemService ( Context . WIFI_SERVICE ) ; \n - wifiManager . setWifiEnabled ( turnedOn ) ; \n - \n + try { \n + wifiManager . setWifiEnabled ( turnedOn ) ; \n + } catch ( Exception e ) { \n + e . printStackTrace ( ) ; \n + } \n } \n - \n - \n - \n }", "msg_token": "Catch exception in setWiFiData"} {"diff": " public class DynamicServerListLoadBalancer < T extends Server > extends \n } \n \n @ visiblefortesting \n - void updateListOfServers ( ) { \n + public void updateListOfServers ( ) { \n List < T > servers = new ArrayList < T > ( ) ; \n if ( serverListImpl != null ) { \n servers = serverListImpl . getUpdatedListOfServers ( ) ;", "msg_token": "Make DynamicServerListLoadBalancer updateListOfServers public to provide alternative way to update servers at runtime instead of relying on scheduler"} {"diff": " public abstract class StringLogger \n { \n public static final String DEFAULT_NAME = STRING0 ; \n public static final StringLogger SYSTEM = \n - new ActualStringLogger ( new PrintWriter ( System . out ) ) \n + new ActualStringLogger ( new PrintWriter ( System . out , true ) ) \n { \n @ override \n public void close ( )", "msg_token": "StringLogger SYSTEM has automatic line flushing just like the file based StringLogger has"} {"diff": " public final class CharSeq implements Kind1 < CharSeq , Character > , CharSequence , I \n \n @ override \n public IndexedSeq < Character > scan ( Character zero , BiFunction < ? super Character , ? super Character , ? extends Character > operation ) { \n - return scanLeft ( zero , operation ) ; \n + return Collections . scanLeft ( this , zero , operation , Iterator : : toCharSeq ) ; \n } \n \n @ override \n public final class PriorityQueue < T > extends AbstractsQueue < T , PriorityQueue < T > > \n @ override \n public < U > PriorityQueue < U > scanLeft ( U zero , BiFunction < ? super U , ? super T , ? extends U > operation ) { \n Objects . requireNonNull ( operation , STRING0 ) ; \n - \n return Collections . scanLeft ( this , zero , operation , it - > ofAll ( naturalComparator ( ) , it ) ) ; \n }", "msg_token": "refactored CharSeq scan to return CharSeq"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n case CLEAR_ALL_CACHES : \n evictAll ( ) ; \n reset ( ) ; \n - mCacheTimer . update ( mTimer . currMillisecond ) ; \n mSeekedFlag = true ; \n clearFlag = NUMBER0 ; \n break ;", "msg_token": "Improve cache miss after config updated"} {"diff": " public class LaunchConfigBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class LaunchConfigBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class Groovy { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some Javadoc errors"} {"diff": " public class MongoDbClient extends DB { \n System . err . println ( STRING0 + startkey ) ; \n return NUMBER0 ; \n } \n + \n + result . ensureCapacity ( recordcount ) ; \n + \n while ( cursor . hasNext ( ) ) { \n HashMap < String , ByteIterator > resultMap = new HashMap < String , ByteIterator > ( ) ;", "msg_token": "Ensure capacity in results for MongoDBClient scan"} {"diff": " public class ExcludeEjbSubsystemTestCase { \n return jar ; \n } \n \n - @ test ( expected = NameNotFoundException . class ) \n + @ test \n public void testEjbNotInstalled ( ) throws NamingException { \n - Object result = initialContext . lookup ( STRING0 + SimpleEjb . class . getSimpleName ( ) ) ; \n - Assert . fail ( STRING1 + result + STRING2 ) ; \n + try { \n + Object result = initialContext . lookup ( STRING0 + SimpleEjb . class . getSimpleName ( ) ) ; \n + Assert . fail ( STRING1 + result + STRING2 ) ; \n + } catch ( NameNotFoundException expected ) { } \n }", "msg_token": "Improve error message from test"} {"diff": " public class TextToSpeech { \n mCachedParams [ Engine . TTS_PARAM_POSITION_LANGUAGE + NUMBER0 ] = loc . getISO3Language ( ) ; \n mCachedParams [ Engine . TTS_PARAM_POSITION_COUNTRY + NUMBER0 ] = loc . getISO3Country ( ) ; \n mCachedParams [ Engine . TTS_PARAM_POSITION_VARIANT + NUMBER0 ] = loc . getVariant ( ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - result = mITts . isLanguageAvailable ( \n + \n + result = mITts . setLanguage ( mPackageName , \n mCachedParams [ Engine . TTS_PARAM_POSITION_LANGUAGE + NUMBER0 ] , \n mCachedParams [ Engine . TTS_PARAM_POSITION_COUNTRY + NUMBER0 ] , \n mCachedParams [ Engine . TTS_PARAM_POSITION_VARIANT + NUMBER0 ] ) ;", "msg_token": "Revert the setLanguage call to its previous implementation as"} {"diff": " public class NetworkPublication implements RetransmitSender , AutoCloseable \n private final int mtuLength ; \n private final int termWindowLength ; \n \n - private long timeOfLastSendOrHeartbeat ; \n private long timeOfFlush = NUMBER0 ; \n + private long timeOfLastSendOrHeartbeat ; \n + private long senderPositionLimit ; \n private int statusMessagesReceivedCount = NUMBER0 ; \n - private int refCount = NUMBER0 ; \n \n - private volatile long senderPositionLimit ; \n + private int refCount = NUMBER0 ; \n private boolean trackSenderLimits = true ; \n + private boolean shouldSendSetupFrame = true ; \n private volatile boolean isActive = true ; \n - private volatile boolean shouldSendSetupFrame = true ; \n \n public NetworkPublication ( \n final SendChannelEndpoint channelEndpoint ,", "msg_token": "Remove volatile from NetworkPublication fields that are now only referenced by the Sender"} {"diff": " public abstract class TregexPattern implements Serializable { \n return patternString ; \n } \n \n - public void setPatternString ( String patternString ) { \n + COMMENT \n + void setPatternString ( String patternString ) { \n this . patternString = patternString ; \n }", "msg_token": "Make method non public"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class DescriptorBasedEJBClientContextService implements Service < EJBClient \n SINGLE \n this . clientContext . unregisterReconnectHandler ( this ) ; \n SINGLE \n - this . clientContext . registerConnection ( connection ) ; \n + final EJBReceiver receiver = new RemotingConnectionEJBReceiver ( connection , this , OptionMap . EMPTY ) ; \n + this . clientContext . registerEJBReceiver ( receiver ) ; \n } catch ( Exception e ) { \n logger . debug ( STRING0 + this . reconnectAttemptCount + STRING1 + this . outboundConnectionServiceName , e ) ; \n }", "msg_token": "Minor fix use the correct constructor now that jboss ejb client is upgraded"} {"diff": " public class LinkedInApi extends DefaultApi10a \n \n public LinkedInApi ( ) \n { \n - scopes = Collections . EMPTY_SET ; \n + scopes = Collections . emptySet ( ) ; \n } \n \n public LinkedInApi ( Set < String > scopes )", "msg_token": "remove generic warning"} {"diff": " public abstract class AbstractDetailsDescriptionPresenter extends Presenter { \n public final void onBindViewHolder ( Presenter . ViewHolder viewHolder , Object item ) { \n ViewHolder vh = ( ViewHolder ) viewHolder ; \n DetailsOverviewRow row = ( DetailsOverviewRow ) item ; \n - onBindDescription ( vh , row ) ; \n + onBindDescription ( vh , row . getItem ( ) ) ; \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 - protected abstract void onBindDescription ( ViewHolder vh , DetailsOverviewRow row ) ; \n + protected abstract void onBindDescription ( ViewHolder vh , Object item ) ; \n \n public void onUnbindViewHolder ( Presenter . ViewHolder viewHolder ) { } \n }", "msg_token": "Pass the details overview row item to the presenter"} {"diff": " public class Activity extends ContextThemeWrapper \n COMMENT \n public boolean onMenuOpened ( int featureId , Menu menu ) { \n if ( featureId == Window . FEATURE_ACTION_BAR ) { \n + initActionBar ( ) ; \n if ( mActionBar != null ) { \n mActionBar . dispatchMenuVisibilityChanged ( true ) ; \n } else {", "msg_token": "Fix a bug where the lazy initialized ActionBar object was being too lazy"} {"diff": " public class ReceiveChannelEndpoint implements AutoCloseable \n private final StatusMessageFlyweight smHeader = new StatusMessageFlyweight ( ) ; \n private final NakFlyweight nakHeader = new NakFlyweight ( ) ; \n \n - private final DataFrameHandler onDataFrameFunc ; \n - private final SetupFrameHandler onSetupFrameFunc ; \n - \n private volatile boolean closed = false ; \n \n public ReceiveChannelEndpoint ( \n public class ReceiveChannelEndpoint implements AutoCloseable \n { \n smHeader . wrap ( smBuffer , NUMBER0 ) ; \n nakHeader . wrap ( nakBuffer , NUMBER0 ) ; \n - onDataFrameFunc = this : : onDataFrame ; \n - onSetupFrameFunc = this : : onSetupFrame ; \n \n this . logger = logger ; \n - this . transport = new ReceiverUdpChannelTransport ( udpChannel , onDataFrameFunc , onSetupFrameFunc , logger , lossGenerator ) ; \n this . dispatcher = new DataFrameDispatcher ( conductorProxy , this ) ; \n + this . transport = new ReceiverUdpChannelTransport ( \n + udpChannel , dispatcher : : onDataFrame , dispatcher : : onSetupFrame , logger , lossGenerator ) ; \n } \n \n public UdpChannelTransport transport ( )", "msg_token": "Java Remove a level of indirection on dispatch"} {"diff": " public abstract class Layout { \n \n mText = text ; \n mPaint = paint ; \n - mWorkPaint = new TextPaint ( ) ; \n mWidth = width ; \n mAlignment = align ; \n mSpacingMult = spacingMult ; \n public abstract class Layout { \n \n private CharSequence mText ; \n private TextPaint mPaint ; \n - COMMENT \n private int mWidth ; \n private Alignment mAlignment = Alignment . ALIGN_NORMAL ; \n private float mSpacingMult ;", "msg_token": "Delete dead code"} {"diff": " public abstract class AbstractInstanceRegistry implements InstanceRegistry { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public List < Pair < Long , String > > getLastNCanceledInstances ( ) { \n List < Pair < Long , String > > list = new ArrayList < Pair < Long , String > > ( ) ; \n synchronized ( recentCanceledQueue ) { \n public interface InstanceRegistry extends LeaseManager < InstanceInfo > , LookupServ \n \n List < Pair < Long , String > > getLastNRegisteredInstances ( ) ; \n \n + List < Pair < Long , String > > getLastNCanceledInstances ( ) ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding additional api methods required by resources"} {"diff": " public class Deserializer { \n switch ( field . type ) { \n case STRING0 : \n return in . readString ( ) ; \n - \n + \n + case STRING1 : \n + case STRING2 : \n + case STRING3 : \n + case STRING4 : \n + return readArray ( field . get ( NUMBER0 ) ) ; \n + \n case STRING5 : \n case STRING6 : \n return readArray ( field ) ;", "msg_token": "Reading collections now by reading just the array field in them"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - \n public abstract class AbstractAtomicReferenceOperation extends Operation \n implements PartitionAwareOperation , IdentifiedDataSerializable {", "msg_token": "Fixed added whitespace in AbstractAtomicReferenceOperation"} {"diff": " public final class BluetoothInputDevice implements BluetoothProfile { \n public static final String ACTION_PROTOCOL_MODE_CHANGED = \n STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION ) \n + public static final String ACTION_REPORT = \n + STRING1 ; \n \n COMMENT \n COMMENT", "msg_token": "Add broadcast action REPORT"} {"diff": " public abstract class AbstractNioByteChannel extends AbstractNioChannel { \n byteBuf = allocHandle . allocate ( allocator ) ; \n int localReadAmount = doReadBytes ( byteBuf ) ; \n if ( localReadAmount <= NUMBER0 ) { \n + SINGLE \n + byteBuf . release ( ) ; \n close = localReadAmount < NUMBER0 ; \n break ; \n }", "msg_token": "Fix regression which lead to leak buffers when nothing could be read from the Channel"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n @ entity \n import NAMESPACE ; \n public class Feed extends AbstractModel { \n \n @ column ( length = NUMBER0 , nullable = false , unique = true ) \n - @ index ( name = STRING0 ) \n private String url ; \n \n @ transient \n import NAMESPACE ; \n public class FeedEntry extends AbstractModel { \n \n @ column ( length = NUMBER0 , nullable = false , unique = true ) \n - @ index ( name = STRING1 ) \n private String guid ; \n \n @ manytoone \n public class SubscriptionsREST extends AbstractREST { \n @ get \n @ path ( STRING2 ) \n public Response deleteCategory ( @ queryparam ( STRING3 ) Long id ) { \n + feedCategoryService . deleteById ( id ) ; \n return Response . ok ( ) . build ( ) ; \n }", "msg_token": "don t index blobs"} {"diff": " public class SourceFormatter { \n } \n \n if ( line . startsWith ( STRING0 ) ) { \n + if ( line . endsWith ( STRING1 ) ) { \n + _sourceFormatterHelper . printError ( \n + fileName , STRING2 + fileName + STRING3 + lineCount ) ; \n + } \n + \n int pos = line . lastIndexOf ( StringPool . PERIOD ) ; \n \n if ( pos != - NUMBER0 ) {", "msg_token": "SourceFormatter don t use import blah"} {"diff": " \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class ComponentCaller extends JComponent { \n public class ComponentCaller extends JComponent { \n \n private void buildUI ( ) { \n setLayout ( new BorderLayout ( ) ) ; \n - add ( ScrollPaneFactory . createScrollPane ( ( Component ) component1 ) ) ; \n + add ( new JScrollPane ( component1 ) ) ; \n } \n \n public void doSomething ( ) { \n \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class ComponentCaller extends JComponent { \n public class ComponentCaller extends JComponent { \n \n private void buildUI ( ) { \n setLayout ( new BorderLayout ( ) ) ; \n - add ( ScrollPaneFactory . createScrollPane ( ( Component ) component1 ) ) ; \n + add ( new JScrollPane ( component1 ) ) ; \n } \n \n public void doSomething ( ) {", "msg_token": "Fix testdata accidentially modified during scrollpane refactoring"} {"diff": " class JDBCHistoryCache implements HistoryCache { \n for ( ListIterator < HistoryEntry > it = \n entries . listIterator ( entries . size ( ) ) ; \n it . hasPrevious ( ) ; ) { \n + HistoryEntry entry = it . previous ( ) ; \n retry: \n for ( int i = NUMBER0 ; ; i ++ ) { \n try { \n - HistoryEntry entry = it . previous ( ) ; \n addChangeset . setString ( NUMBER1 , entry . getRevision ( ) ) ; \n addChangeset . setInt ( NUMBER2 , authors . get ( entry . getAuthor ( ) ) ) ; \n addChangeset . setTimestamp ( NUMBER3 ,", "msg_token": "Fixed NoSuchElementException after timeout in JDBCHistoryCache"} {"diff": " public class TachyonFileIntegrationTest { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n + COMMENT \n @ test \n public void isInMemoryTest2 ( ) throws IOException { \n for ( int k = NUMBER0 ; k < MAX_FILES ; k ++ ) { \n public class TachyonFileIntegrationTest { \n Assert . assertTrue ( file . isInMemory ( ) ) ; \n } \n } \n + COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n + COMMENT \n @ test \n public void isInMemoryTest3 ( ) throws IOException { \n TachyonURI pin = new TachyonURI ( STRING0 ) ; \n public class TachyonFileIntegrationTest { \n Assert . assertTrue ( file . isInMemory ( ) ) ; \n } \n } \n - \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Disable LRU eviction reliant tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpSnoopClient { \n Channel ch = b . connect ( host , port ) . sync ( ) . channel ( ) ; \n \n SINGLE \n - HttpRequest request = new DefaultHttpRequest ( \n + HttpRequest request = new DefaultFullHttpRequest ( \n HttpVersion . HTTP_1_1 , HttpMethod . GET , uri . getRawPath ( ) ) ; \n request . headers ( ) . set ( HttpHeaders . Names . HOST , host ) ; \n request . headers ( ) . set ( HttpHeaders . Names . CONNECTION , HttpHeaders . Values . CLOSE ) ;", "msg_token": "Tweak snoop example to send a full HTTP request"} {"diff": " public class CodeItem { \n } else if ( instruction instanceof OffsetInstruction ) { \n int offset = ( ( OffsetInstruction ) instruction ) . getCodeOffset ( ) ; \n String sign = offset >= NUMBER0 ? STRING0 : STRING1 ; \n - args . add ( String . format ( STRING2 , sign , offset ) ) ; \n + args . add ( String . format ( STRING2 , sign , Math . abs ( offset ) ) ) ; \n } else if ( instruction instanceof NarrowLiteralInstruction ) { \n int value = ( ( NarrowLiteralInstruction ) instruction ) . getNarrowLiteral ( ) ; \n if ( NumberUtils . isLikelyFloat ( value ) ) {", "msg_token": "Fix formatting issue with negative jump offsets in dump output"} {"diff": " public class DefaultOSGIService implements OSGIService { \n } \n } \n \n - private void installAndStartBundles ( final Framework framework ) throws BundleException { \n + private void installAndStartBundles ( final Framework framework ) { \n try { \n final BundleContext context = framework . getBundleContext ( ) ; \n \n public class DefaultOSGIService implements OSGIService { \n SINGLE \n for ( final Bundle bundle : installedBundles ) { \n logger . info ( STRING0 , bundle . getLocation ( ) ) ; \n - bundle . start ( ) ; \n + try { \n + bundle . start ( ) ; \n + } catch ( BundleException e ) { \n + logger . warn ( STRING1 , e ) ; \n + } \n } \n } catch ( PluginConfigException e ) { \n logger . error ( STRING2 , e ) ; \n + } catch ( BundleException e ) { \n + logger . error ( STRING2 , e ) ; \n } \n }", "msg_token": "improve robustness on startup"} {"diff": " public class TvView extends ViewGroup { \n if ( this != mSessionCallback ) { \n return ; \n } \n + mOverlayViewCreated = false ; \n + mOverlayViewFrame = null ; \n mSessionCallback = null ; \n mSession = null ; \n if ( mListener != null ) {", "msg_token": "Recreate overlay view after the TIS crashes"} {"diff": " public class SSTableLoader implements StreamEventHandler \n private final List < SSTableReader > sstables = new ArrayList < > ( ) ; \n private final Multimap < InetAddress , StreamSession . SSTableStreamingSections > streamingDetails = HashMultimap . create ( ) ; \n \n - static \n - { \n - } \n - \n public SSTableLoader ( File directory , Client client , OutputHandler outputHandler ) \n { \n this ( directory , client , outputHandler , NUMBER0 ) ;", "msg_token": "remove empty static constructor"} {"diff": " public abstract class HelpStrategy \n { \n String selectedItem = qname . name ; \n \n - if ( selectedItem . endsWith ( STRING0 ) ) \n + if ( selectedItem . endsWith ( STRING1 ) ) \n { \n assert StringUtil . isNullOrEmpty ( qname . pkgName ) \n : STRING2 + \n qname . pkgName + STRING3 + qname . name ; \n - selectedItem = selectedItem . substring ( NUMBER0 , selectedItem . length ( ) - NUMBER1 ) ; \n + selectedItem = selectedItem . substring ( NUMBER0 , selectedItem . length ( ) - NUMBER2 ) ; \n \n parameter_ = selectedItem ; \n if ( helpInfo_ != null )", "msg_token": "correctly match suffix for completion parameter help"} {"diff": " public class EmulatorView extends View implements GestureDetector . OnGestureListe \n } \n return isHandled ; \n } \n - \n + \n + public boolean onKeyPreIme ( int keycode , KeyEvent event ) { \n + SINGLE \n + int preImeMetastate = event . getMetaState ( ) ; \n + if ( mAltSendsEsc && ( ( preImeMetastate & KeyEvent . META_ALT_ON ) != NUMBER0 ) ) { \n + if ( event . getAction ( ) == KeyEvent . ACTION_DOWN ) { \n + return onKeyDown ( keycode , event ) ; \n + } else { \n + return onKeyUp ( keycode , event ) ; \n + } \n + } else { \n + return false ; \n + } \n + } \n + \n COMMENT \n private boolean isInterceptedSystemKey ( int keyCode ) { \n return keyCode == KeyEvent . KEYCODE_BACK && mBackKeySendsCharacter ;", "msg_token": "handle the alt key in IME mode too"} {"diff": " public class IdeaJdk extends SdkType implements ApplicationComponent { \n } \n \n private boolean addOrderEntries ( OrderRootType orderRootType , ProjectRootType projectRootType , Sdk sdk , SdkModificator toModificator ) { \n + boolean wasSmthAdded = false ; \n final String [ ] docs = sdk . getRootProvider ( ) . getUrls ( orderRootType ) ; \n for ( int i = NUMBER0 ; i < docs . length ; i ++ ) { \n VirtualFile virtualFile = VirtualFileManager . getInstance ( ) . findFileByUrl ( docs [ i ] ) ; \n toModificator . addRoot ( virtualFile , projectRootType ) ; \n - return true ; \n + wasSmthAdded = true ; \n } \n - return false ; \n + return wasSmthAdded ; \n } \n \n public AdditionalDataConfigurable createAdditionalDataConfigurable ( final SdkModel sdkModel , SdkModificator sdkModificator ) {", "msg_token": "configure initial roots"} {"diff": " public class MapRenderingTypes { \n if ( t != null ) { \n if ( amenityNameToType . containsKey ( t ) ) { \n System . err . println ( STRING0 + t + STRING1 + amenityNameToType . get ( t ) + STRING2 + e . getKey ( ) ) ; \n - } \n - amenityNameToType . put ( t , e . getKey ( ) ) ; \n + } else { \n + amenityNameToType . put ( t , e . getKey ( ) ) ; \n + } \n + \n } \n } \n }", "msg_token": "Keep order don t overwrite conflict in map rendering types"} {"diff": " public class ElementCompletionTest extends HighlightingTestBase { \n } \n \n public void testElementCompletionRoot ( ) throws Throwable { \n - doTestCompletion ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ; \n + doTestCompletion ( STRING0 , STRING5 , STRING6 , STRING1 , STRING2 , STRING3 , STRING7 , STRING4 ) ; \n } \n \n public void testElementCompletion1 ( ) throws Throwable {", "msg_token": "now we complete all possible tags as roots"} {"diff": " public class TagNameReference implements PsiReference { \n final XmlExtension extension = XmlExtension . getExtensionByElement ( element ) ; \n return extension == null ? null : extension . createTagNameReference ( nameElement , startTagFlag ) ; \n } \n + \n + public boolean isStartTagFlag ( ) { \n + return myStartTagFlag ; \n + } \n }", "msg_token": "jsp tag name completion converted to completion contributor"} {"diff": " public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen \n } \n } \n if ( targetHandlerMethods . size ( ) == NUMBER0 ) { \n - extractHandlerMethodUriTemplates ( targetPathMatches . values ( ) . iterator ( ) . next ( ) , lookupPath , request ) ; \n + if ( targetPathMatches . size ( ) == NUMBER0 ) { \n + extractHandlerMethodUriTemplates ( targetPathMatches . values ( ) . iterator ( ) . next ( ) , lookupPath , request ) ; \n + } \n return targetHandlerMethods . values ( ) . iterator ( ) . next ( ) ; \n } \n else if ( ! targetHandlerMethods . isEmpty ( ) ) { \n public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen \n } \n } \n } \n - extractHandlerMethodUriTemplates ( bestPathMatch , lookupPath , request ) ; \n + if ( bestPathMatch != null ) { \n + extractHandlerMethodUriTemplates ( bestPathMatch , lookupPath , request ) ; \n + } \n return targetHandlerMethods . get ( bestMappingMatch ) ; \n } \n else {", "msg_token": "URI Templates support relative RequestMappings on class level with more specific mapping on method level"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix a checkstyle issue"} {"diff": " public class ResConfigFlags { \n public final static byte SDK_ICE_CREAM_SANDWICH_MR1 = NUMBER0 ; \n public final static byte SDK_JELLY_BEAN = NUMBER1 ; \n public final static byte SDK_JELLY_BEAN_MR1 = NUMBER2 ; \n + public final static byte SDK_JELLY_BEAN_MR2 = NUMBER3 ; \n + public final static byte KITKAT = NUMBER4 ; \n \n public final static byte ORIENTATION_ANY = NUMBER5 ; \n public final static byte ORIENTATION_PORT = NUMBER6 ;", "msg_token": "add newer release api versions"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo \n protected String device ; \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", "msg_token": "Add javadoc to the brand new devices parameter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ClassUtils { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ClassUtils { \n Method specificMethod = null ; \n if ( method != null && isOverridable ( method , targetClass ) && \n targetClass != null && ! targetClass . equals ( method . getDeclaringClass ( ) ) ) { \n - specificMethod = ReflectionUtils . findMethod ( targetClass , method . getName ( ) , method . getParameterTypes ( ) ) ; \n + try { \n + specificMethod = ReflectionUtils . findMethod ( targetClass , method . getName ( ) , method . getParameterTypes ( ) ) ; \n + } catch ( AccessControlException ex ) { \n + SINGLE \n + SINGLE \n + } \n } \n return ( specificMethod != null ? specificMethod : method ) ; \n }", "msg_token": "Consider security in ClassUtils getMostSpecificMethod"} {"diff": " \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 \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", "msg_token": "Change license header in two tomcat lite java source files"} {"diff": " public abstract class AbstractOneDReader implements OneDReader { \n return totalVariance / ( float ) patternLength ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n + public abstract Result decodeRow ( int rowNumber , BitArray row , Hashtable hints ) throws ReaderException ; \n + \n }", "msg_token": "Added workaround for NoSuchMethodError on some Nokia JVMs with a superfluous abstract method thanks Marnix"} {"diff": " public final class CdmaCallTracker extends CallTracker { \n SINGLE \n SINGLE \n conn . onLocalDisconnect ( ) ; \n - phone . notifyPreciseCallStateChanged ( ) ; \n updatePhoneState ( ) ; \n + phone . notifyPreciseCallStateChanged ( ) ; \n return ; \n } else { \n try {", "msg_token": "Refix the MT call screen stuck issue"} {"diff": " public class FileInStream extends InputStream implements BoundedStream , Seekable \n return ; \n } \n \n - SINGLE \n byte [ ] buffer = new byte [ Math . min ( ( int ) mSeekBufferSizeBytes , ( int ) len ) ] ; \n do { \n SINGLE", "msg_token": "update the comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HighlighterFactory { \n } \n \n public static LexerEditorHighlighter createJSPHighlighter ( EditorColorsScheme settings , Project project ) { \n - final LanguageLevel languageLevel = project != null ? PsiManager . getInstance ( project ) . getEffectiveLanguageLevel ( ) : LanguageLevel . HIGHEST ; \n - return createHighlighter ( new JspFileHighlighter ( languageLevel ) , settings ) ; \n - } \n - \n - public static LexerEditorHighlighter createJSPHighlighter ( EditorColorsScheme settings , LanguageLevel languageLevel ) { \n - return createHighlighter ( new JspFileHighlighter ( languageLevel ) , settings ) ; \n + return createHighlighter ( StdFileTypes . JSP . getHighlighter ( project ) , settings ) ; \n } \n \n public static LexerEditorHighlighter createCustomHighlighter ( SyntaxTable syntaxTable , EditorColorsScheme settings ) {", "msg_token": "fixed NPEs due to usage of old highlighter for the jsp"} {"diff": " import NAMESPACE ; \n COMMENT \n @ implements ( SQLiteOpenHelper . class ) \n public class ShadowSQLiteOpenHelper { \n - \n @ realobject private SQLiteOpenHelper realHelper ; \n private static SQLiteDatabase database ; \n + private String name ; \n \n public void __constructor__ ( Context context , String name , CursorFactory factory , int version ) { \n + this . name = name ; \n if ( database != null ) { \n database . close ( ) ; \n } \n public class ShadowSQLiteOpenHelper { \n realHelper . onOpen ( database ) ; \n return database ; \n } \n + \n + @ implementation \n + public String getDatabaseName ( ) { \n + return name ; \n + } \n }", "msg_token": "ShadowSQLiteOpenHelper remembers its name"} {"diff": " public class AVLoadingIndicatorView extends View { \n \n public AVLoadingIndicatorView ( Context context , AttributeSet attrs ) { \n super ( context , attrs ) ; \n - init ( context , attrs , NUMBER0 , NUMBER0 ) ; \n + init ( context , attrs , NUMBER0 , R . style . AVLoadingIndicatorView ) ; \n } \n \n public AVLoadingIndicatorView ( Context context , AttributeSet attrs , int defStyleAttr ) {", "msg_token": "Fix default style"} {"diff": " public class ElasticsearchClient extends DB { \n . put ( STRING0 , STRING1 ) \n . put ( STRING2 , System . getProperty ( STRING3 ) + STRING4 ) \n . put ( STRING5 , STRING1 ) \n - . put ( STRING6 , STRING7 ) \n . put ( STRING8 , STRING9 ) \n . put ( STRING10 , STRING11 ) \n . put ( STRING12 , System . getProperty ( STRING3 ) ) ;", "msg_token": "elasticsearch Remove useless setting"} {"diff": " public class SourceFormatter { \n x = NUMBER0 ; \n } \n else { \n - x = x + NUMBER1 ; \n + x = x + NUMBER2 ; \n } \n } \n else if ( fileName . endsWith ( STRING0 ) ) {", "msg_token": "SourceFormatter wrong value of x results in wrong projectname"} {"diff": " public class WaypointHelper { \n } \n \n public void clearAllVisiblePoints ( ) { \n - this . locationPointsStates . clear ( ) ; \n + SINGLE \n this . locationPoints = new ArrayList < List < LocationPointWrapper > > ( ) ; \n } \n \n public class WaypointHelper { \n \n protected synchronized void setLocationPoints ( List < List < LocationPointWrapper > > locationPoints , RouteCalculationResult route ) { \n this . locationPoints = locationPoints ; \n - this . locationPointsStates . clear ( ) ; \n + SINGLE \n TIntArrayList list = new TIntArrayList ( locationPoints . size ( ) ) ; \n list . fill ( NUMBER0 , locationPoints . size ( ) , NUMBER0 ) ; \n this . pointsProgress = list ;", "msg_token": "Updated fix to waypoint annonced many times"} {"diff": " public class TangentBinormalGenerator { \n } \n } \n \n + public static void generate ( Mesh mesh , boolean approxTangents ) { \n + generate ( mesh , approxTangents , false ) ; \n + } \n + \n private static List < VertexData > processTriangles ( Mesh mesh , \n int [ ] index , Vector3f [ ] v , Vector2f [ ] t , boolean splitMirrored ) { \n IndexBuffer indexBuffer = mesh . getIndexBuffer ( ) ;", "msg_token": "put back previous API for TangentBinormalGenerator generate method"} {"diff": " public class ArrayExpression extends Expression { \n COMMENT \n public ArrayExpression ( String type , Expression sizeExpression ) { \n if ( ! type . endsWith ( STRING0 ) ) type += STRING0 ; \n + setSuperType ( type ) ; \n this . elementType = type ; \n this . sizeExpression = sizeExpression ; \n this . expressions = Collections . EMPTY_LIST ;", "msg_token": "sets the type of the array"} {"diff": " public final class HttpClient implements Runnable { \n if ( engine == null ) { \n engine = DEFAULT_CONTEXT . createSSLEngine ( ) ; \n } \n - engine . setUseClientMode ( true ) ; \n + if ( ! engine . getUseClientMode ( ) ) \n + engine . setUseClientMode ( true ) ; \n + \n pending . offer ( new HttpsRequest ( addr , request , cb , requests , cfg , engine ) ) ; \n } else { \n pending . offer ( new Request ( addr , request , cb , requests , cfg ) ) ;", "msg_token": "Do not set client mode on SSLEngine if already set"} {"diff": " public class DefaultUrlMappingInfo implements UrlMappingInfo { \n if ( disableMultipart instanceof Boolean ) { \n disabled = ( ( Boolean ) disableMultipart ) . booleanValue ( ) ; \n } else if ( disableMultipart instanceof String ) { \n - disabled = Boolean . valueOf ( ( String ) disableMultipart ) ; \n + disabled = Boolean . valueOf ( ( String ) disableMultipart ) . booleanValue ( ) ; \n } \n return disabled ; \n }", "msg_token": "Lets try that again"} {"diff": " public class PythonCompletionTest extends PyTestCase { \n } \n \n public void testRelativeImportExcludeToplevel ( ) { SINGLE \n - setLanguageLevel ( LanguageLevel . PYTHON27 ) ; \n - try { \n - myFixture . copyDirectoryToProject ( STRING0 , STRING1 ) ; \n - myFixture . configureByFile ( STRING2 ) ; \n - myFixture . completeBasic ( ) ; \n - final List < String > lookupElementStrings = myFixture . getLookupElementStrings ( ) ; \n - assertNotNull ( lookupElementStrings ) ; \n - assertFalse ( lookupElementStrings . contains ( STRING3 ) ) ; \n - } \n - finally { \n - setLanguageLevel ( null ) ; \n - } \n + runWithLanguageLevel ( LanguageLevel . PYTHON27 , new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + myFixture . copyDirectoryToProject ( STRING0 , STRING1 ) ; \n + myFixture . configureByFile ( STRING2 ) ; \n + myFixture . completeBasic ( ) ; \n + assertNull ( myFixture . getLookupElementStrings ( ) ) ; \n + myFixture . checkResult ( STRING4 ) ; \n + } \n + } ) ; \n } \n \n SINGLE", "msg_token": "Fix broken test in PythonCompletionTest"} {"diff": " public class GrailsClassUtils { \n for ( int i = NUMBER0 ; i < descriptors . length ; i ++ ) { \n descriptor = descriptors [ i ] ; \n Class < ? > currentPropertyType = descriptor . getPropertyType ( ) ; \n - if ( isTypeInstanceOfPropertyType ( propertyType , currentPropertyType ) ) { \n + if ( propertySuperType . isAssignableFrom ( descriptor . getPropertyType ( ) ) ) { \n properties . add ( descriptor ) ; \n } \n }", "msg_token": "fixing derpy copy paste error"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ target ( { ElementType . METHOD } ) \n @ retention ( RetentionPolicy . RUNTIME ) \n @ documented \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ target ( { ElementType . METHOD } ) \n @ retention ( RetentionPolicy . RUNTIME ) \n @ documented \n public @ interface Subscribe { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n String value ( ) ; \n \n COMMENT", "msg_token": "Add annotation description"} {"diff": " public interface JvmTestSuiteSpec extends TestSuiteSpec , JvmComponentSpec { \n COMMENT \n DependencySpecContainer getDependencies ( ) ; \n \n + @ override \n JvmComponentSpec getTestedComponent ( ) ; \n }", "msg_token": "Add missing Override"} {"diff": " public class AccountHeaderBuilder { \n \n SINGLE \n if ( mCloseDrawerOnProfileListClick != null ) { \n - return ! mCloseDrawerOnProfileListClick ; \n - } else { \n - return consumed ; \n + consumed = consumed && ! mCloseDrawerOnProfileListClick ; \n + } \n + \n + SINGLE \n + if ( mDrawer != null && ! consumed ) { \n + SINGLE \n + mDrawer . mDrawerBuilder . closeDrawerDelayed ( ) ; \n } \n + \n + SINGLE \n + return true ; \n } \n } ;", "msg_token": "custom handling of the drawer listener consume the event as we do not want it to select the item"} {"diff": " public class Sprite extends TextureRegion { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public Rectangle getBoundingRectangle ( ) {", "msg_token": "fixed minor issue in docs of Sprite"} {"diff": " import NAMESPACE ; \n @ applicationscoped \n public class MyRoutes extends RouteBuilder { \n \n - public MyRoutes ( ) { } ; \n - \n @ inject \n SINGLE \n @ uri ( STRING0 )", "msg_token": "Remove constructor which is not required for MyRoutes and solve checkstyle"} {"diff": " public class DeadlineTest { \n latch . countDown ( ) ; \n } \n } , Executors . newSingleThreadScheduledExecutor ( ) ) ; \n - if ( ! latch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ) { \n + if ( ! latch . await ( NUMBER1 , TimeUnit . MILLISECONDS ) ) { \n fail ( STRING0 ) ; \n } \n }", "msg_token": "Fix flaky DeadlineTest runOnEventualExpirationIsExecuted"} {"diff": " public class OServerCommandPostBatch extends OServerCommandDocumentAbstract { \n if ( tx ) \n db . commit ( ) ; \n \n + iResponse . writeResult ( lastResult ) ; \n + iResponse . send ( OHttpUtils . STATUS_OK_CODE , OHttpUtils . STATUS_OK_DESCRIPTION , OHttpUtils . CONTENT_TEXT_PLAIN , null , null , true ) ; \n + \n } finally { \n if ( db != null ) \n db . close ( ) ; \n } \n - \n - iResponse . send ( OHttpUtils . STATUS_OK_CODE , OHttpUtils . STATUS_OK_DESCRIPTION , OHttpUtils . CONTENT_TEXT_PLAIN , lastResult , null , \n - true ) ; \n return false ; \n }", "msg_token": "Fixed issue with batch command"} {"diff": " public class AbstractSourceImporterTest { \n } \n \n @ test \n - @ ignore \n - public void canBeDisabled ( ) { \n - Project pom = new Project ( STRING0 ) ; \n - Configuration config = mock ( Configuration . class ) ; \n - when ( pom . getConfiguration ( ) ) . thenReturn ( config ) ; \n - when ( config . getBoolean ( CoreProperties . CORE_IMPORT_SOURCES_PROPERTY , CoreProperties . CORE_IMPORT_SOURCES_DEFAULT_VALUE ) ) . thenReturn ( \n - Boolean . FALSE ) ; \n - \n - assertFalse ( importer . isEnabled ( pom ) ) ; \n - assertFalse ( importer . shouldExecuteOnProject ( pom ) ) ; \n - } \n - \n - @ test \n public void doNotSaveSourceIfNullResource ( ) throws IOException { \n AbstractSourceImporter nullImporter = new AbstractSourceImporter ( Java . INSTANCE ) {", "msg_token": "Remove ignored test"} {"diff": " \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import static NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class IsCollectionContainingTest extends AbstractMatcherTest {", "msg_token": "removed unused import"} {"diff": " public class AgreementRule extends GermanRule { \n new PatternTokenBuilder ( ) . tokenRegex ( STRING0 ) . build ( ) , \n new PatternTokenBuilder ( ) . token ( STRING1 ) . build ( ) , \n new PatternTokenBuilder ( ) . token ( STRING2 ) . build ( ) \n + ) , \n + Arrays . asList ( \n + new PatternTokenBuilder ( ) . token ( STRING3 ) . build ( ) , \n + new PatternTokenBuilder ( ) . tokenRegex ( STRING4 ) . build ( ) , \n + new PatternTokenBuilder ( ) . posRegex ( STRING5 ) . build ( ) SINGLE \n ) \n ) ;", "msg_token": "de avoid false alarm in e g ein von vielen bewundertes Haus"} {"diff": " public class BatchOperationsTest { \n assertEquals ( STRING0 , ops . replaceLocationPlaceholders ( STRING1 , map ) ) ; \n assertEquals ( STRING2 , ops . replaceLocationPlaceholders ( STRING3 , map ) ) ; \n } \n - \n - @ test ( timeout = NUMBER0 ) \n - public void testPerformance ( ) throws Exception { \n - Map < Integer , String > map = new HashMap < Integer , String > ( ) ; \n - for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) { \n - map . put ( i , STRING4 + i ) ; \n - } \n - assertEquals ( STRING5 , ops . replaceLocationPlaceholders ( STRING6 , map ) ) ; \n - } \n }", "msg_token": "Removed performance test from unit tests"} {"diff": " public class StringMutableDictionary extends MutableDictionaryReader { \n @ override \n public Object get ( int dictionaryId ) { \n if ( dictionaryId == NUMBER0 || dictionaryId > length ( ) ) { \n - return STRING0 ; \n + return null ; \n } \n return getRawValueFromBiMap ( dictionaryId ) ; \n }", "msg_token": "Fixed TestDimensionsAndMetricsSerDe which was expecting null not the string null"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Tool { \n if ( ! outputDir . exists ( ) ) { \n outputDir . mkdirs ( ) ; \n } \n - FileWriter fw = new FileWriter ( outputFile ) ; \n - return new BufferedWriter ( fw ) ; \n + FileOutputStream fos = new FileOutputStream ( outputFile ) ; \n + OutputStreamWriter osw ; \n + if ( grammarEncoding != null ) { \n + osw = new OutputStreamWriter ( fos , grammarEncoding ) ; \n + } \n + else { \n + osw = new OutputStreamWriter ( fos ) ; \n + } \n + return new BufferedWriter ( osw ) ; \n } \n \n public File getImportedGrammarFile ( Grammar g , String fileName ) {", "msg_token": "was not paying attention to the encoding from the command line when generating output files"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n switch ( result ) { \n case INJECT_NO_PERMISSION : \n throw new SecurityException ( \n - STRING0 ) ; \n + STRING1 ) ; \n case INJECT_SUCCEEDED : \n return true ; \n } \n public class WindowManagerService extends IWindowManager . Stub \n switch ( result ) { \n case INJECT_NO_PERMISSION : \n throw new SecurityException ( \n - STRING0 ) ; \n + STRING1 ) ; \n case INJECT_SUCCEEDED : \n return true ; \n } \n public class WindowManagerService extends IWindowManager . Stub \n switch ( result ) { \n case INJECT_NO_PERMISSION : \n throw new SecurityException ( \n - STRING0 ) ; \n + STRING1 ) ; \n case INJECT_SUCCEEDED : \n return true ; \n }", "msg_token": "Fixs the incorrect message for SecurityException"} {"diff": " public class ReplicatedMapService implements ManagedService , RemoteService , \n case REMOVED : \n entryListener . entryRemoved ( entryEvent ) ; \n break ; \n + default : \n + throw new IllegalArgumentException ( STRING0 + entryEvent . getEventType ( ) + STRING1 ) ; \n } \n String mapName = ( ( EntryEvent ) event ) . getName ( ) ; \n if ( config . findReplicatedMapConfig ( mapName ) . isStatisticsEnabled ( ) ) {", "msg_token": "Added default case on ReplicatedMapService"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n COMMENT \n - class TmxMapHelper { \n + public final class TmxMapHelper { \n static final int FLAG_FLIP_HORIZONTALLY = NUMBER0 ; \n static final int FLAG_FLIP_VERTICALLY = NUMBER1 ; \n static final int FLAG_FLIP_DIAGONALLY = NUMBER2 ; \n class TmxMapHelper { \n \n } \n \n - static int [ ] getTileIds ( Element element , int width , int height ) { \n + static public int [ ] getTileIds ( Element element , int width , int height ) { \n Element data = element . getChildByName ( STRING0 ) ; \n String encoding = data . getAttribute ( STRING1 , null ) ; \n if ( encoding == null ) { SINGLE \n class TmxMapHelper { \n return ids ; \n } \n \n - static int unsignedByteToInt ( byte b ) { \n + static public int unsignedByteToInt ( byte b ) { \n return ( int ) b & NUMBER3 ; \n } \n }", "msg_token": "Make TmxMapHelper public"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class MuninnPageCacheHarnessWithRealFileSystemIT extends MunninPageCacheHarnessTest \n {", "msg_token": "Fix import after merge"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ManagementServerPropertiesAutoConfiguration { \n SINGLE \n @ bean ( name = STRING0 ) \n @ conditionalonmissingbean \n - @ conditionalonclass ( EnableWebSecurity . class ) \n + @ conditionalonclass ( name = STRING1 ) \n public SecurityProperties securityProperties ( ) { \n return new SecurityProperties ( ) ; \n }", "msg_token": "Prevent type not present exception when no security on classpath"} {"diff": " public class BackupManagerService extends IBackupManager . Stub { \n FileOutputStream outstream = new FileOutputStream ( manifestFile ) ; \n outstream . write ( builder . toString ( ) . getBytes ( ) ) ; \n outstream . close ( ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + manifestFile . setLastModified ( NUMBER0 ) ; \n } \n \n SINGLE \n public class BackupManagerService extends IBackupManager . Stub { \n } \n bout . flush ( ) ; \n out . close ( ) ; \n + \n + SINGLE \n + SINGLE \n + destination . setLastModified ( NUMBER0 ) ; \n } \n \n private void tearDown ( PackageInfo pkg ) {", "msg_token": "Make archive metadata idempotent"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public class Compiler extends AbstractCompiler { \n DiagnosticType . error ( STRING0 , \n STRING1 ) ; \n \n - private static final CompilerExecutor compilerExecutor = new CompilerExecutor ( ) ; \n + private final CompilerExecutor compilerExecutor = new CompilerExecutor ( ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private static final Logger logger = \n Logger . getLogger ( STRING2 ) ; \n public class Compiler extends AbstractCompiler { \n compilerExecutor . setTimeout ( timeout ) ; \n } \n \n - < T > T runInCompilerThread ( final Callable < T > callable ) { \n + < T > T runInCompilerThread ( Callable < T > callable ) { \n return compilerExecutor . runInCompilerThread ( callable , options != null && options . tracer . isOn ( ) ) ; \n }", "msg_token": "Make CompilerExecutor non static"} {"diff": " public class ShareUtils { \n manager . setApiKey ( Constants . TRAKT_API_KEY ) ; \n \n if ( isCancelled ( ) ) { \n - return STRING0 ; \n + return null ; \n } \n \n final int season = mTraktData . getInt ( ShareItems . SEASON ) ;", "msg_token": "Remove unnecessary return value"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReactModalHostView extends ViewGroup { \n mHostView . removeView ( child ) ; \n } \n \n + @ override \n + public void addChildrenForAccessibility ( ArrayList < View > outChildren ) { \n + SINGLE \n + SINGLE \n + } \n + \n public void dismiss ( ) { \n if ( mDialog != null ) { \n mDialog . dismiss ( ) ;", "msg_token": "Fix crash caused by accessibility being turned on and using a Modal"} {"diff": " public class OpenTSDBWriter extends OpenTSDBGenericWriter { \n @ override \n protected void sendOutput ( String metricLine ) throws IOException { \n try { \n - if ( isDebugEnabled ( ) || log . isDebugEnabled ( ) ) { \n - log . debug ( STRING0 , host , port , metricLine ) ; \n + \n + if ( isDebugEnabled ( ) || log . isDebugEnabled ( ) ) { \n + log . debug ( STRING0 , host , port , metricLine ) ; \n } \n + \n this . out . writeBytes ( STRING1 + metricLine + STRING2 ) ; \n } catch ( IOException e ) { \n log . error ( STRING3 , e ) ;", "msg_token": "Fix the formating"} {"diff": " public interface PlayPlatform extends Platform { \n COMMENT \n COMMENT \n COMMENT \n - public String getPlayVersion ( ) ; \n + String getPlayVersion ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public ScalaPlatform getScalaPlatform ( ) ; \n + ScalaPlatform getScalaPlatform ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public JavaPlatform getJavaPlatform ( ) ; \n + JavaPlatform getJavaPlatform ( ) ; \n }", "msg_token": "Remove redundant public modifiers"} {"diff": " public class Spark { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public synchronized static void setIpAddress ( String ipAddress ) { \n if ( initialized ) { \n public interface SparkServer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n + COMMENT \n COMMENT \n void ignite ( String host , int port ) ;", "msg_token": "fixed minor javadoc errors"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SimplifyExpressions \n public PlanNode rewriteFilter ( FilterNode node , Void context , PlanRewriter < Void > planRewriter ) \n { \n PlanNode source = planRewriter . rewrite ( node . getSource ( ) , context ) ; \n - return new FilterNode ( node . getId ( ) , source , simplifyExpression ( node . getPredicate ( ) ) ) ; \n + Expression simplified = simplifyExpression ( node . getPredicate ( ) ) ; \n + if ( simplified . equals ( BooleanLiteral . TRUE_LITERAL ) ) { \n + return source ; \n + } \n + return new FilterNode ( node . getId ( ) , source , simplified ) ; \n } \n \n @ override", "msg_token": "SimplifyExpressions drop filter if the predicate is just TRUE"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FromFtpToFileNoFileNameHeaderTest extends FtpServerTestSupport { \n } \n \n public void testCorrectFilename ( ) throws Exception { \n - MockEndpoint resultEndpoint = getMockEndpoint ( STRING0 ) ; \n - resultEndpoint . expectedMinimumMessageCount ( NUMBER0 ) ; \n - resultEndpoint . expectedBodiesReceived ( STRING1 ) ; \n - resultEndpoint . assertIsSatisfied ( ) ; \n + MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n + mock . expectedMinimumMessageCount ( NUMBER0 ) ; \n + mock . expectedBodiesReceived ( STRING1 ) ; \n + mock . expectedFileExists ( STRING2 , STRING1 ) ; \n \n - SINGLE \n - File file = new File ( STRING2 ) ; \n - assertTrue ( STRING3 , file . exists ( ) ) ; \n - assertTrue ( STRING4 , file . length ( ) > NUMBER1 ) ; \n + mock . assertIsSatisfied ( ) ; \n } \n \n private void prepareFtpServer ( ) throws Exception {", "msg_token": "Fixed unit test failure on AIX reported by TC"} {"diff": " public class PrefPageResultSetMain extends TargetPrefPage \n serverSideOrderingCheck = UIUtils . createLabelCheckbox ( queriesGroup , CoreMessages . pref_page_database_resultsets_label_server_side_order , false ) ; \n useFetchSize = UIUtils . createLabelCheckbox ( queriesGroup , CoreMessages . pref_page_database_resultsets_label_fetch_size , false ) ; \n queryCancelTimeout = UIUtils . createLabelSpinner ( queriesGroup , CoreMessages . pref_page_database_general_label_result_set_cancel_timeout , CoreMessages . pref_page_database_general_label_result_set_cancel_timeout_tip , NUMBER0 , NUMBER0 , Integer . MAX_VALUE ) ; \n + queryCancelTimeout . setEnabled ( false ) ; \n } \n \n SINGLE", "msg_token": "Query cancel timeout pref disabled"} {"diff": " public class HeuristicReconConfig extends ReconConfig { \n this . typeID = typeID ; \n this . typeName = typeName ; \n this . autoMatch = autoMatch ; \n - this . columnDetails = new ArrayList < ColumnDetail > ( ) ; \n + this . columnDetails = columnDetails ; \n } \n \n public void write ( JSONWriter writer , Properties options )", "msg_token": "Fixed minor bug that prevented column details from getting passed on to recon service"} {"diff": " public class MetaContactImpl \n { \n synchronized ( parentGroupModLock ) \n { \n - int totalStatus = NUMBER0 ; \n + this . totalStatus = NUMBER0 ; \n \n SINGLE \n SINGLE", "msg_token": "accessing wrong var"} {"diff": " public class CustomImportOrderCheckTest extends BaseCheckTestSupport { \n actual = method . invoke ( t , ( DetailAST ) null ) ; \n } \n catch ( Exception e ) { \n - e . printStackTrace ( ) ; \n actual = null ; \n }", "msg_token": "Remove call to printStackTrace in test code"} {"diff": " public final class UrlImpl implements Url { \n return scheme ; \n } \n \n + @ override \n @ nullable \n public String getAuthority ( ) { \n return authority ;", "msg_token": "firefox opens a new tab every time"} {"diff": " public class VcsLogManager implements Disposable { \n myToolWindow = ( ToolWindowImpl ) myToolWindowManager . getToolWindow ( TOOLWINDOW_ID ) ; \n myTabName = contentTabName ; \n \n - Disposer . register ( myToolWindow . getContentManager ( ) , this ) ; \n + Disposer . register ( dataHolder , this ) ; \n \n myPostponedEventsListener = new MyRefreshPostponedEventsListener ( ) ; \n myToolWindow . getContentManager ( ) . addContentManagerListener ( myPostponedEventsListener ) ;", "msg_token": "vcs log properly dispose PostponeableLogRefresher"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import static NAMESPACE ; \n \n @ runwith ( SpringRunner . class ) \n @ datajpatest ( includeFilters = @ componentscan.filter ( Service . class ) ) \n - public class ClinicServiceSpringDataJpaTests { \n + public class ClinicServiceTests { \n \n @ autowired \n protected ClinicService clinicService ;", "msg_token": "Move util class to test code"} {"diff": " public class PlanGenerator { \n SINGLE \n distance = edgeNarrative . getDistance ( ) ; \n } else if ( step . streetName != streetName \n - && ( step . streetName != null && ! step . streetName . equals ( streetName ) ) ) { \n + && ( step . streetName != null && ! step . streetName . equals ( streetName ) ) \n + && ( ! step . bogusName || ! edgeNarrative . hasBogusName ( ) ) ) { \n COMMENT \n if ( roundaboutExit > NUMBER0 ) { \n SINGLE", "msg_token": "Reduce extra bogus steps in narrative reported by Grant Humphries"} {"diff": " public class BatchNode extends GeometryGroupNode { \n } \n } \n Geometry geometry ; \n + \n + public final Geometry getGeometry ( ) { \n + return geometry ; \n + } \n } \n \n protected void setNeedsFullRebatch ( boolean needsFullRebatch ) {", "msg_token": "Added public method getGeometry on Batch class"} {"diff": " public final class ColorBlindnessTest extends TestCase { \n compareFilters ( DaltonizationFilter . forTritanopia ( FLOAT0 ) , DaltonizationFilter . tritanopia ) ; \n } \n \n - public void testProtanopiaSimulation ( ) { \n - testZeroFilter ( SimulationFilter . forProtanopia ( FLOAT1 ) ) ; \n - compareFilters ( SimulationFilter . forProtanopia ( FLOAT0 ) , SimulationFilter . protanopia ) ; \n - } \n - \n - public void testDeuteranopiaSimulation ( ) { \n - testZeroFilter ( SimulationFilter . forDeuteranopia ( FLOAT1 ) ) ; \n - compareFilters ( SimulationFilter . forDeuteranopia ( FLOAT0 ) , SimulationFilter . deuteranopia ) ; \n - } \n - \n - public void testTritanopiaSimulation ( ) { \n - testZeroFilter ( SimulationFilter . forTritanopia ( FLOAT1 ) ) ; \n - compareFilters ( SimulationFilter . forTritanopia ( FLOAT0 ) , SimulationFilter . tritanopia ) ; \n - } \n - \n public void testAchromatopsiaSimulation ( ) { \n testZeroFilter ( SimulationFilter . forAchromatopsia ( FLOAT1 ) ) ; \n compareFilters ( SimulationFilter . forAchromatopsia ( FLOAT0 ) , SimulationFilter . achromatopsia ) ;", "msg_token": "remove old color blindness tests"} {"diff": " public class SessionManager extends BasicModule { \n public void removeSession ( ClientSession session ) { \n SINGLE \n SINGLE \n - if ( session == null ) { \n + SINGLE \n + SINGLE \n + if ( session == null || serverName == null ) { \n return ; \n } \n SessionMap sessionMap = null ;", "msg_token": "Fixed problem when removing a session while the server is shutting down"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Hide Utility Class Check compilable UT inputs"} {"diff": " public class EditPostContentFragment extends Fragment implements TextWatcher , \n COMMENT \n COMMENT \n private void queueFileForUpload ( String path ) { \n - if ( path == null || path . equals ( STRING0 ) ) { \n + if ( TextUtils . isEmpty ( path ) ) { \n Toast . makeText ( getActivity ( ) , STRING1 , Toast . LENGTH_SHORT ) . show ( ) ; \n return ; \n }", "msg_token": "Using provided convenience method to check for empty path"} {"diff": " public class QuoteOfTheMomentClient { \n b . setOption ( STRING0 , STRING1 ) ; \n \n SINGLE \n + SINGLE \n + SINGLE \n b . setOption ( \n STRING2 , \n new FixedReceiveBufferSizePredictorFactory ( NUMBER0 ) ) ; \n public class QuoteOfTheMomentServer { \n b . setOption ( STRING0 , STRING3 ) ; \n \n SINGLE \n + SINGLE \n + SINGLE \n b . setOption ( \n STRING2 , \n new FixedReceiveBufferSizePredictorFactory ( NUMBER0 ) ) ;", "msg_token": "Updated the QOTM example so that people do not ask questions about truncated packets"} {"diff": " final class ExternExportsPass extends NodeTraversal . AbstractPostOrderCallback \n . setOutputTypes ( true ) \n . setTypeRegistry ( compiler . getTypeIRegistry ( ) ) ; \n \n - return builder . build ( ) ; \n + return STRING0 \n + + STRING1 \n + + STRING2 \n + + STRING3 \n + + STRING4 \n + + builder . build ( ) ; \n } \n \n @ override \n public final class ExternExportsPassTest extends TestCase { \n private void compileAndCheck ( String js , String expected ) { \n Result result = compileAndExportExterns ( js ) ; \n \n - assertEquals ( expected , result . externExport ) ; \n + String fileoverview = Joiner . on ( STRING4 ) . join ( \n + STRING0 , \n + STRING5 , \n + STRING6 , \n + STRING7 , \n + STRING8 ) ; \n + \n + assertEquals ( fileoverview + expected , result . externExport ) ; \n } \n \n public void testDontWarnOnExportFunctionWithUnknownParameterTypes ( ) {", "msg_token": "Add an externs annotation to generated externs files"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class JmxReporter extends AbstractReporter implements MetricsRegistryList \n COMMENT \n public JmxReporter ( MetricsRegistry registry ) { \n super ( registry ) ; \n - this . registeredBeans = new HashMap < MetricName , ObjectName > ( ) ; \n + this . registeredBeans = new ConcurrentHashMap < MetricName , ObjectName > ( NUMBER0 ) ; \n this . server = ManagementFactory . getPlatformMBeanServer ( ) ; \n }", "msg_token": "Use a ConcurrentHashMap in JmxReporter"} {"diff": " public class FMLModContainer implements ModContainer \n return candidate . getContainedPackages ( ) ; \n } \n \n + private boolean isTrue ( Boolean value ) \n + { \n + if ( value == null ) return false ; \n + return value . booleanValue ( ) ; \n + } \n + \n @ override \n public boolean shouldLoadInEnvironment ( ) \n { \n - boolean clientSideOnly = ( Boolean ) this . descriptor . get ( STRING0 ) ; \n - boolean serverSideOnly = ( Boolean ) this . descriptor . get ( STRING1 ) ; \n + boolean clientSideOnly = isTrue ( ( Boolean ) descriptor . get ( STRING0 ) ) ; \n + boolean serverSideOnly = isTrue ( ( Boolean ) descriptor . get ( STRING1 ) ) ; \n \n if ( clientSideOnly && serverSideOnly ) \n throw new RuntimeException ( STRING2 ) ;", "msg_token": "Fix NPEs in mlast commit"} {"diff": " public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen \n TestUtils . getCredentialsWithSameUsernameAndPassword ( ) ) ; \n final ServiceTicket serviceTicketId = getCentralAuthenticationService ( ) \n . grantServiceTicket ( ticketId . getId ( ) , mockService ) ; \n + assertNotNull ( serviceTicketId ) ; \n } \n \n @ test", "msg_token": "added check to unit test"} {"diff": " public class PDFRenderTargetBuilder implements RenderTargetBuilder { \n } \n \n @ override \n + public PdfContentByte getContentByte ( ) { \n + return this . cb ; \n + } \n + \n + @ override \n public void setMargins ( float leftMargin , float rightMargin , float top , float bottom ) { \n this . marginTop = top ; \n this . marginBottom = bottom ; \n along with Gephi . If not , see < http : SINGLE \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface PDFTarget extends RenderTarget { \n public static final String TOP_EDGES = STRING0 ; \n public static final String TOP_NODE_LABELS = STRING1 ; \n public static final String TOP_EDGE_LABELS = STRING2 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public PdfContentByte getContentByte ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "add getPdfContentByte to PDFTarget and PDFRenderTargetBuilder"} {"diff": " public class FindUsagesManager implements JDOMExternalizable { \n myHandlers . add ( new Function < PsiElement , Factory < FindUsagesHandler > > ( ) { \n @ nullable \n public Factory < FindUsagesHandler > fun ( final PsiElement element ) { \n - if ( element instanceof PsiFile && ( ( PsiFile ) element ) . getVirtualFile ( ) == null ) return null ; \n - if ( ! element . getLanguage ( ) . getFindUsagesProvider ( ) . canFindUsagesFor ( element ) ) return null ; \n + if ( element instanceof PsiFile ) { \n + if ( ( ( PsiFile ) element ) . getVirtualFile ( ) == null ) return null ; \n + } else if ( ! element . getLanguage ( ) . getFindUsagesProvider ( ) . canFindUsagesFor ( element ) ) { \n + return null ; \n + } \n + \n if ( element instanceof PsiDirectory ) { \n final PsiPackage psiPackage = ( ( PsiDirectory ) element ) . getPackage ( ) ; \n return psiPackage == null ? null : new Factory < FindUsagesHandler > ( ) {", "msg_token": "fixed inability to find usages of psifile"} {"diff": " public class IdAnnotationHelper extends TargetAnnotationHelper { \n } \n \n public String extractAnnotationQualifiedId ( Element element ) { \n - int idValue = extractAnnotationValue ( element ) ; \n + int idValue = this . < Integer > extractAnnotationValue ( element ) ; \n IRInnerClass rInnerClass = rClass . get ( Res . ID ) ; \n String clickQualifiedId ;", "msg_token": "correcting generic bug"} {"diff": " public class FootFlagEncoder extends AbstractFlagEncoder { \n add ( STRING0 ) ; \n add ( STRING1 ) ; \n add ( STRING2 ) ; \n - add ( STRING3 ) ; \n + add ( STRING3 ) ; \n add ( STRING4 ) ; \n } \n } ; \n public class FootFlagEncoder extends AbstractFlagEncoder { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean isAllowedHighway ( String highwayValue ) { \n return allowedHighwayTags . contains ( highwayValue ) ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean isSaveHighway ( String highwayValue ) { \n return saveHighwayTags . contains ( highwayValue ) ;", "msg_token": "fixed mixed javadocs"} {"diff": " public class Sprite extends RectangularShape < Mesh > { \n super . preDraw ( pCamera ) ; \n \n GLState . enableTextures ( ) ; \n - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ; \n this . mTextureRegion . getTexture ( ) . bind ( ) ; \n \n this . mMesh . preDraw ( this . mShaderProgram ) ; \n public class UncoloredSprite extends RectangularShape < Mesh > { \n super . preDraw ( pCamera ) ; \n \n GLState . enableTextures ( ) ; \n - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ; \n this . mTextureRegion . getTexture ( ) . bind ( ) ; \n \n this . mMesh . preDraw ( this . mShaderProgram ) ; \n public class SpriteBatch extends Shape < SpriteBatchMesh > { \n } \n \n GLState . enableTextures ( ) ; \n - GLES20 . glActiveTexture ( GLES20 . GL_TEXTURE0 ) ; \n this . mTexture . bind ( ) ; \n \n final ShaderProgram shaderProgram = ( this . mShaderProgram == null ) ? PositionColorTextureCoordinatesShaderProgram . getInstance ( ) : this . mShaderProgram ; SINGLE", "msg_token": "Removed unnecessary glActiveTexture calls"} {"diff": " public class JdbcDriverTest \n } \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test \n public void driverTest1 ( ) throws SQLException \n { \n public class ShutdownTest \n Assert . assertSame ( STRING1 , NUMBER0 , pool . getTotalConnections ( ) ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test \n public void testAfterShutdown ( ) throws Exception \n { \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class TestValidation \n { \n @ test", "msg_token": "Suppress IDE deprecation warnings"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NewViolationsDecorator implements Decorator { \n ListMultimap < Rule , Measure > childMeasuresPerRule = ArrayListMultimap . create ( ) ; \n ListMultimap < Rule , Violation > violationsPerRule = ArrayListMultimap . create ( ) ; \n Set < Rule > rules = Sets . newHashSet ( ) ; \n - \n + \n Collection < Measure > children = context . getChildrenMeasures ( MeasuresFilters . rules ( metric ) ) ; \n for ( Measure child : children ) { \n RuleMeasure childRuleMeasure = ( RuleMeasure ) child ;", "msg_token": "Remove unused and incorrect import"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class XMLLightweightParser { \n byteBuffer . position ( byteBuffer . position ( ) - NUMBER0 ) ; \n SINGLE \n readByte -- ; \n + SINGLE \n + if ( readByte == NUMBER1 ) { \n + return ; \n + } \n } \n \n buffer . append ( buf , NUMBER1 , readByte ) ;", "msg_token": "Fixed double byte char fix to accept t heart beats and ignore empty strings"} {"diff": " public final class DefaultCasCookieValueManager implements CookieValueManager { \n COMMENT \n COMMENT \n @ autowired \n - public DefaultCasCookieValueManager ( @ qualifier ( STRING0 ) \n + public DefaultCasCookieValueManager ( @ qualifier ( STRING1 ) \n final CipherExecutor < String , String > cipherExecutor ) { \n this . cipherExecutor = cipherExecutor ; \n LOGGER . debug ( STRING2 ,", "msg_token": "Revert fix failing travis test"} {"diff": " public @ interface Property { \n COMMENT \n String key ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n String defaultValue ( ) default STRING0 ; \n \n String name ( ) ;", "msg_token": "Add a javadoc to org sonar api Property defaultValue"} {"diff": " public class MetaContactListServiceImpl \n COMMENT \n COMMENT \n COMMENT \n - private void synchronizeOpSetWithServerContactList ( \n + private void synchronizeOpSetWithLocalContactList ( \n ProtocolProviderService provider , \n OperationSetPersistentPresence presenceOpSet ) \n { \n public class MetaContactListServiceImpl \n SINGLE \n SINGLE \n if ( opSetPersPresence != null ) { \n - synchronizeOpSetWithServerContactList ( provider , opSetPersPresence ) ; \n + synchronizeOpSetWithLocalContactList ( provider , opSetPersPresence ) ; \n } \n else \n logger . debug ( STRING0 ) ;", "msg_token": "Renamed a method"} {"diff": " public interface DebugEventListener extends EventListener { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n void resumed ( ) ; \n \n public interface SuspendContextManager < CALL_FRAME extends CallFrame > { \n void setOverlayMessage ( @ nullable String message ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "we should use dismissContext instead of just set null"} {"diff": " public class Context { \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 public void detach ( Context toAttach ) { \n checkNotNull ( toAttach , STRING0 ) ;", "msg_token": "clarify requirements of detach"} {"diff": " public class StudyUtils { \n throws IOException { \n final StudyTaskManager taskManager = StudyTaskManager . getInstance ( project ) ; \n final Course course = taskManager . getCourse ( ) ; \n - int taskNum = task . getIndex ( ) + NUMBER0 ; \n + int taskNum = task . getIndex ( ) ; \n int lessonNum = task . getLesson ( ) . getIndex ( ) ; \n assert course != null ; \n final String pathToResource = FileUtil . join ( course . getCourseDirectory ( ) , EduNames . LESSON + lessonNum , EduNames . TASK + taskNum ) ;", "msg_token": "fixed broken smart check"} {"diff": " public class AeronTest \n } \n \n @ test \n - public void registeringReceiverNotifiesMediaDriver ( ) \n + public void registeringReceiverNotifiesMediaDriver ( ) throws Exception \n { \n final RingBuffer toMediaDriver = adminBuffers . toMediaDriver ( ) ; \n final Aeron aeron = newAeron ( ) ; \n public class AeronTest \n . channel ( CHANNEL_ID , emptyDataHandler ( ) ) \n . channel ( CHANNEL_ID_2 , emptyDataHandler ( ) ) ; \n \n - aeron . newReceiver ( builder ) ; \n + final Receiver receiver = aeron . newReceiver ( builder ) ; \n \n aeron . adminThread ( ) . process ( ) ; \n \n assertEventRead ( toMediaDriver , assertReceiverMessageOfType ( ADD_RECEIVER ) ) ; \n + \n + assertThat ( receiver . process ( ) , is ( NUMBER0 ) ) ; \n } \n \n @ test", "msg_token": "strengthen test post condition"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public interface PaymentApi { \n Either < PaymentError , PaymentMethodInfo > getPaymentMethod ( @ nullable String accountKey , String paymentMethodId ) ; \n \n Either < PaymentError , List < PaymentMethodInfo > > getPaymentMethods ( String accountKey ) ; \n \n Either < PaymentError , Void > updatePaymentGateway ( String accountKey ) ; \n + \n + Either < PaymentError , PaymentProviderPlugin > getPaymentProviderAccount ( String screenName ) ; \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added license header"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class HybridSourceDataBinding extends JAXBDataBinding { \n private static final Logger LOG = LogUtils . getL7dLogger ( SourceDataBinding . class ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class ConfigureDocLitWrapperInterceptor extends AbstractInDatabindingInterceptor { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class CXFWsdlOnlyPayloadModeMultiPartNoSpringTest extends CamelTestSupport { \n protected static int port1 = CXFTestSupport . getPort1 ( ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class CxfConsumerPayloadFaultTest extends CamelTestSupport { \n protected static final String PORT_NAME_PROP = STRING0 ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class AddQueryTest extends Assert {", "msg_token": "Removing in source files"} {"diff": " public class ParserRuntimeException extends RuntimeException { \n } \n \n public ParserRuntimeException ( Throwable cause , String message , Object . . . messageArgs ) { \n - super ( String . format ( message , messageArgs ) , cause ) ; \n + super ( messageArgs . length > NUMBER0 ? String . format ( message , messageArgs ) : message , cause ) ; \n } \n \n public ParserRuntimeException ( Throwable cause ) {", "msg_token": "Fix MissingFormatArgumentException in ParseRuntimeException when args array is empty"} {"diff": " public class GitBlit implements ServletContextListener { \n } \n \n SINGLE \n - List < String > list = new ArrayList < String > ( repositoryListCache . keySet ( ) ) ; \n + List < String > list = new ArrayList < String > ( ) ; \n + for ( RepositoryModel model : repositoryListCache . values ( ) ) { \n + list . add ( model . name ) ; \n + } \n StringUtils . sortRepositorynames ( list ) ; \n return list ; \n }", "msg_token": "Fixed case sensitivity bug in repository name enumeration"} {"diff": " public class NeoServerFunctionalTest { \n @ after \n public void stopServer ( ) { \n if ( server != null ) { \n - server . stop ( ) ; \n + server . stop ( ) ; \n } \n } \n \n public class NeoServerFunctionalTest { \n server = null ; SINGLE \n assertThat ( \n appender . toString ( ) , \n - containsString ( STRING0 ) ) ; \n + containsString ( STRING1 ) ) ; \n } \n \n @ test", "msg_token": "adjusting expected log output"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE $ ; \n import static NAMESPACE ; \n \n @ usejdbc \n public class KillIntegrationTest extends SQLTransportIntegrationTest { \n assertBusy ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - SQLResponse logResponse = execute ( STRING0 , new Object [ ] { statement } ) ; \n + SQLResponse logResponse = execute ( STRING0 , $ ( statement ) ) ; \n + if ( logResponse . rowCount ( ) == NUMBER0 ) { \n + logResponse = execute ( STRING1 , $ ( statement ) ) ; \n + if ( logResponse . rowCount ( ) > NUMBER0 L ) { \n + SINGLE \n + SINGLE \n + return ; \n + } \n + } \n assertThat ( logResponse . rowCount ( ) , greaterThan ( NUMBER0 L ) ) ; \n String jobId = logResponse . rows ( ) [ NUMBER0 ] [ NUMBER0 ] . toString ( ) ; \n execute ( STRING2 , new Object [ ] { jobId } ) ;", "msg_token": "Fix flaky testKillSelectSysTableJobById"} {"diff": " public class JavaCreateFieldFromUsageHelper extends CreateFieldFromUsageHelper { \n PsiSubstitutor substitutor ) { \n PsiElementFactory factory = JavaPsiFacade . getElementFactory ( field . getProject ( ) ) ; \n \n - TemplateBuilderImpl builder = new TemplateBuilderImpl ( field . getParent ( ) ) ; \n + TemplateBuilderImpl builder = new TemplateBuilderImpl ( field ) ; \n if ( ! ( expectedTypes instanceof ExpectedTypeInfo [ ] ) ) { \n expectedTypes = ExpectedTypeInfo . EMPTY_ARRAY ; \n }", "msg_token": "create Groovy field from usage in java code"} {"diff": " public class TestStateStorage implements Disposable { \n \n private void thingsWentWrongLetsReinitialize ( IOException e ) { \n try { \n + if ( myMap != null ) { \n + try { \n + myMap . close ( ) ; \n + } \n + catch ( IOException ignore ) { \n + } \n + } \n myMap = initializeMap ( ) ; \n LOG . error ( STRING0 , e ) ; \n }", "msg_token": "closing map before repair"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class DNSUtil { \n \n + private static final Logger LOGGER = Logger . getLogger ( DNSUtil . class . getName ( ) ) ; \n private static DNSResolver dnsResolver = null ; \n \n COMMENT \n public class DNSUtil { \n srvDomain = domain ; \n } \n List < SRVRecord > srvRecords = dnsResolver . lookupSRVRecords ( srvDomain ) ; \n + if ( LOGGER . isLoggable ( Level . FINE ) ) { \n + String logMessage = STRING0 + srvDomain + STRING1 ; \n + for ( SRVRecord r : srvRecords ) \n + logMessage += STRING2 + r ; \n + LOGGER . fine ( logMessage ) ; \n + } \n List < HostAddress > sortedRecords = sortSRVRecords ( srvRecords ) ; \n addresses . addAll ( sortedRecords ) ;", "msg_token": "Add log to DNSUtil"} {"diff": " public class Instruction35s extends InstructionWithReference { \n } \n \n public Format getFormat ( ) { \n - return Format . Format35c ; \n + return Format . Format35s ; \n } \n \n public byte getRegisterA ( ) {", "msg_token": "return the correct format for Instruction35s"} {"diff": " public interface MenuItem { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs for MenuItem setShowAsAction"} {"diff": " public class HttpRequest { \n throw new HttpRequestException ( e ) ; \n } \n \n - String protocol = parsed . getProtocol ( ) ; \n String host = parsed . getHost ( ) ; \n int port = parsed . getPort ( ) ; \n if ( port != - NUMBER0 ) \n host = host + STRING0 + Integer . toString ( port ) ; \n - String path = parsed . getPath ( ) ; \n - String query = parsed . getQuery ( ) ; \n \n URI uri ; \n try { \n - uri = new URI ( protocol , host , path , query , null ) ; \n + uri = new URI ( parsed . getProtocol ( ) , host , parsed . getPath ( ) , \n + parsed . getQuery ( ) , null ) ; \n } catch ( URISyntaxException e ) { \n IOException io = new IOException ( STRING1 ) ; \n io . initCause ( e ) ;", "msg_token": "Remove unneeded variables"} {"diff": " public final class LocalBlockInStream extends BufferedBlockInStream { \n mCloser = Closer . create ( ) ; \n mWorkerClient = \n mContext . acquireWorkerClient ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ; \n - FileChannel localFileChannel = null ; \n + FileChannel localFileChannel ; \n \n try { \n LockBlockResult result = mWorkerClient . lockBlock ( blockId ) ;", "msg_token": "SMALLFIX Removed redundant null"} {"diff": " public class GPIO { \n COMMENT \n COMMENT \n COMMENT \n - protected static void delay ( int ms ) { \n + public static void delay ( int ms ) { \n try { \n Thread . sleep ( ms ) ; \n } catch ( InterruptedException e ) { \n public class GPIO { \n COMMENT \n COMMENT \n COMMENT \n - protected static void delayMicroseconds ( int us ) { \n + public static void delayMicroseconds ( int us ) { \n int ms = ( int ) ( us / NUMBER0 ) ; \n int ns = ( us - ( ms * NUMBER0 ) ) * NUMBER0 ; \n try {", "msg_token": "Make delay delayMicroseconds public"} {"diff": " public class RealmProcessor extends AbstractProcessor { \n } \n \n for ( ExecutableElement executableElement : methods ) { \n + if ( executableElement . getModifiers ( ) . contains ( Modifier . STATIC ) ) { \n + continue ; SINGLE \n + } \n + \n if ( ! executableElement . getModifiers ( ) . contains ( Modifier . PUBLIC ) ) { \n error ( STRING0 , executableElement ) ; \n }", "msg_token": "Allow static methods in model classes"} {"diff": " public class InferenceSession { \n SINGLE \n return false ; \n } \n - } while ( myConstraintIdx < myConstraints . size ( ) ) ; \n \n - do { \n - if ( ! reduceConstraints ( ) ) { \n - SINGLE \n - return false ; \n - } \n if ( incorporate ) { \n if ( ! myIncorporationPhase . incorporate ( ) ) { \n return false ;", "msg_token": "perform reduction and incorporation in one step"} {"diff": " public class SQLInsertClause extends AbstractSQLClause < SQLInsertClause > implemen \n \n listeners . preExecute ( context ) ; \n stmt . executeUpdate ( ) ; \n - listeners . preExecute ( context ) ; \n + listeners . executed ( context ) ; \n } else { \n Collection < PreparedStatement > stmts = createStatements ( true ) ; \n if ( stmts != null && stmts . size ( ) > NUMBER0 ) {", "msg_token": "Fix listener execution"} {"diff": " public class MigratePartitions { \n try { \n VoldemortConfig voldemortConfig = createTempVoldemortConfig ( ) ; \n Cluster currentCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( currentClusterFile ) ) ) ; \n + Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ; \n adminClient = RebalanceUtils . createTempAdminClient ( voldemortConfig , \n currentCluster , \n - NUMBER0 , \n + targetCluster . getNumberOfNodes ( ) , \n NUMBER0 ) ; \n - Cluster targetCluster = new ClusterMapper ( ) . readCluster ( new BufferedReader ( new FileReader ( targetClusterFile ) ) ) ; \n + \n List < StoreDefinition > currentStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( currentStoresFile ) ) ) ; \n List < StoreDefinition > targetStoreDefs = new StoreDefinitionsMapper ( ) . readStoreList ( new BufferedReader ( new FileReader ( targetStoresFile ) ) ) ;", "msg_token": "Increase the number of threads in migrate partitions tool"} {"diff": " public interface Player extends HumanEntity , Conversable , CommandSender , Offline \n COMMENT \n COMMENT \n public void setFlying ( boolean value ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setFlySpeed ( float value ) throws IllegalArgumentException ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setWalkSpeed ( float value ) throws IllegalArgumentException ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public float getFlySpeed ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public float getWalkSpeed ( ) ; \n }", "msg_token": "Add API to set and get movement modifiers"} {"diff": " final class PoolThreadCache { \n } \n if ( freeSweepAllocationThreshold < NUMBER0 ) { \n throw new IllegalArgumentException ( STRING0 \n - + maxCachedBufferCapacity + STRING1 ) ; \n + + freeSweepAllocationThreshold + STRING1 ) ; \n } \n this . freeSweepAllocationThreshold = freeSweepAllocationThreshold ; \n this . heapArena = heapArena ;", "msg_token": "PoolThreadCache uses wrong variable in IllegalArgumentException"} {"diff": " public class RunBugsTest extends TestSupport { \n object . invokeMethod ( STRING0 , null ) ; \n } \n \n - public void testStaticMarkupBug ( ) throws Exception { \n - GroovyObject object = compile ( STRING1 ) ; \n - object . invokeMethod ( STRING2 , null ) ; \n - } \n - \n public void testOverloadInvokeMethodBug ( ) throws Exception { \n GroovyObject object = compile ( STRING3 ) ; \n object . invokeMethod ( STRING2 , null ) ;", "msg_token": "Removed unnecessary reference to bug class"} {"diff": " public interface TransferManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface TransferManager { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updating TransferManager javadoc to reflect new situation"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n if ( fromSource != null ) { \n packageNames = fromSource . get ( targetUserId ) ; \n } \n - if ( packageNames . contains ( intent . getPackage ( ) ) ) { \n + if ( packageNames != null && packageNames . contains ( intent . getPackage ( ) ) ) { \n return true ; \n } \n SINGLE", "msg_token": "adds extra null check"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n myVerticalScrollBar = new MyScrollBar ( Adjustable . VERTICAL ) ; \n myGutterComponent = new EditorGutterComponentImpl ( this ) ; \n initComponent ( ) ; \n - \n myScrollingModel = new ScrollingModelImpl ( this ) ; \n + if ( UISettings . getInstance ( ) . PRESENTATION_MODE ) { \n + setFontSize ( UISettings . getInstance ( ) . PRESENTATION_MODE_FONT_SIZE ) ; \n + } \n \n myGutterComponent . updateSize ( ) ; \n Dimension preferredSize = getPreferredSize ( ) ;", "msg_token": "don t use global font map for presentation mode"} {"diff": " public final class DomainServerMain { \n unmarshaller . start ( Marshalling . createByteInput ( initialInput ) ) ; \n final ServerTask task = unmarshaller . readObject ( ServerTask . class ) ; \n unmarshaller . finish ( ) ; \n - unmarshaller . close ( ) ; \n - initialInput . close ( ) ; \n task . run ( Collections . < ServiceActivator > emptyList ( ) ) ; \n } catch ( Exception e ) { \n e . printStackTrace ( initialError ) ;", "msg_token": "Server shouldn t close its own stdin"} {"diff": " public final class Main { \n projectFilesystem , \n config . getNdkVersion ( ) , \n propertyFinder ) ; \n - SINGLE \n + SINGLE \n JavaBuckConfig javaConfig = new JavaBuckConfig ( config ) ; \n JavaCompilerEnvironment javacEnv = javaConfig . getJavaCompilerEnvironment ( processExecutor ) ;", "msg_token": "Fix a lint error"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Adding missing license header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Remove unnecessary import in DisplayUtils"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class SubselectFetch { \n + private static final CoreMessageLogger LOG = Logger . getMessageLogger ( \n + CoreMessageLogger . class , \n + SubselectFetch . class . getName ( ) \n + ) ; \n + \n private static final String FROM_STRING = STRING0 ; \n \n private final Set resultingEntityKeys ; \n public class SubselectFetch { \n this . queryString = orderByIndex > NUMBER0 \n ? queryString . substring ( fromIndex , orderByIndex ) \n : queryString . substring ( fromIndex ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . tracef ( STRING1 , queryString ) ; \n + } \n } \n \n private static int getFromIndex ( String queryString ) {", "msg_token": "Add trace logging of generated SubselectFetch query string"} {"diff": " public class ListView extends AbsListView { \n if ( mItemsCanFocus && ( focusResult == null ) \n && selectedView != null && selectedView . hasFocus ( ) ) { \n final View focused = selectedView . findFocus ( ) ; \n - if ( distanceToView ( focused ) > NUMBER0 ) { \n + if ( ! isViewAncestorOf ( focused , this ) || distanceToView ( focused ) > NUMBER0 ) { \n focused . clearFocus ( ) ; \n } \n }", "msg_token": "Fix exception when a focused item is detached"} {"diff": " public class MainActivity extends ReactActivity { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n protected List < ReactPackage > getPackages ( ) { \n return Arrays . < ReactPackage > asList (", "msg_token": "Fix comment in open source MainActivity"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n } \n final AttachInfo ai = mAttachInfo ; \n final ViewParent p = mParent ; \n - if ( p != null && ai != null && ai . mHardwareAccelerated ) { \n - SINGLE \n - SINGLE \n - p . invalidateChild ( this , null ) ; \n - return ; \n - } \n + \n if ( p != null && ai != null ) { \n final Rect r = ai . mTmpInvalRect ; \n r . set ( NUMBER0 , NUMBER0 , mRight - mLeft , mBottom - mTop ) ;", "msg_token": "Fix issue where Launcher was not getting redrawn"} {"diff": " public class SetLiteral extends Literal < Set < ? > , SetLiteral > { \n COMMENT \n public SetLiteral intersection ( SetLiteral other ) { \n Preconditions . checkArgument ( itemType == other . itemType ) ; \n - if ( values . containsAll ( other . values ) ) { \n + if ( values . size ( ) == NUMBER0 || other . values . size ( ) == NUMBER0 || values . equals ( other . values ) ) { \n return this ; \n - } else if ( other . values . containsAll ( values ) ) { \n - return other ; \n } \n return new SetLiteral ( itemType , Sets . intersection ( values , other . values ) ) ; \n }", "msg_token": "fixed intersection shortcuts in setliteral"} {"diff": " public class RpcChannel implements ChannelListener { \n public final RpcCollectorKey key ; \n public final int options ; \n public int destcnt ; \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public final long timeout ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public RpcCollector ( RpcCollectorKey key , int options , int destcnt , \n - long timeout ) { \n + \n + public RpcCollector ( RpcCollectorKey key , int options , int destcnt ) { \n this . key = key ; \n this . options = options ; \n this . destcnt = destcnt ; \n - this . timeout = timeout ; \n - } \n - \n - public RpcCollector ( RpcCollectorKey key , int options , int destcnt ) { \n - this ( key , options , destcnt , NUMBER0 ) ; \n } \n \n public void addResponse ( Serializable message , Member sender ) {", "msg_token": "Remove deprecated code"} {"diff": " public class FileLockingWriter implements LuceneWriter { \n @ nullable \n protected final ReleaseListener releaseListener ; \n \n - private volatile boolean leased = false ; \n - \n public FileLockingWriter ( Directory directory , boolean createNew , long defaultLockTimeout , \n ReleaseListener releaseListener ) { \n IndexWriter . setDefaultWriteLockTimeout ( defaultLockTimeout ) ; \n public class FileLockingWriter implements LuceneWriter { \n public IndexWriter getIndexWriter ( ) { \n return writer ; \n } \n - \n - public void lease ( ) { \n - leased = true ; \n - } \n - \n - public void release ( ) { \n - leased = false ; \n - } \n - \n - public boolean isLeased ( ) { \n - return leased ; \n - } \n - \n - \n - \n + \n }", "msg_token": "Removed unnecessary code"} {"diff": " public class XaLogicalLog \n COMMENT \n public synchronized long rotate ( ) throws IOException \n { \n - if ( writeBuffer . getFileChannelPosition ( ) == LogIoUtils . LOG_HEADER_SIZE ) return xaTf . getLastCommittedTx ( ) ; \n + SINGLE \n xaTf . flushAll ( ) ; \n String newLogFile = getLog2FileName ( ) ; \n String currentLogFile = getLog1FileName ( ) ;", "msg_token": "Removed the optimization where logs aren t rotated if nothing has been written"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileListListAdapter extends BaseAdapter implements ListAdapter { \n task . execute ( file ) ; \n } \n } \n + \n + if ( file . getMimetype ( ) . equalsIgnoreCase ( STRING0 ) ) { \n + Drawable backrepeat = mContext . getResources ( ) . \n + getDrawable ( R . drawable . backrepeat ) ; \n + fileIcon . setBackground ( backrepeat ) ; \n + } \n + \n } else { \n fileIcon . setImageResource ( DisplayUtils . getFileTypeIconId ( file . getMimetype ( ) , \n file . getFileName ( ) ) ) ;", "msg_token": "add checker pattern for FileList"} {"diff": " public class ActionToolbarImpl extends JPanel implements ActionToolbar { \n public void updateActionsImmediately ( ) { \n ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ; \n myPresentationFactory . reset ( ) ; \n - updateActions ( true , false , false ) ; \n + updateActions ( true , false , true ) ; \n } \n \n private void updateActions ( boolean now , final boolean transparentOnly , final boolean forced ) {", "msg_token": "force update actions on toolbar refresh"} {"diff": " public final class Es6ToEs3ClassSideInheritance implements HotSwapCompilerPass { \n JSDocInfoBuilder info = JSDocInfoBuilder . maybeCopyFrom ( staticMember . getJSDocInfo ( ) ) ; \n \n Node function = staticMember . getLastChild ( ) ; \n + Node sourceInfoNode = function ; \n if ( function . isFunction ( ) ) { \n + sourceInfoNode = function . getFirstChild ( ) ; \n Node params = NodeUtil . getFunctionParameters ( function ) ; \n Preconditions . checkState ( params . isParamList ( ) , params ) ; \n for ( Node param : params . children ( ) ) { \n public final class Es6ToEs3ClassSideInheritance implements HotSwapCompilerPass { \n info . addSuppression ( STRING0 ) ; \n assign . setJSDocInfo ( info . build ( ) ) ; \n Node exprResult = IR . exprResult ( assign ) ; \n - exprResult . useSourceInfoIfMissingFromForTree ( superclassNameNode ) ; \n + exprResult . useSourceInfoIfMissingFromForTree ( sourceInfoNode ) ; \n insertionPoint . getParent ( ) . addChildAfter ( exprResult , insertionPoint ) ; \n subclassMethods . add ( assign ) ; \n compiler . reportCodeChange ( ) ;", "msg_token": "Fix node positions for inherited static methods"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n class Mapping implements MappingConfiguration { \n \n class Mapping implements MappingConfiguration { \n return STRING0 + getSourceExpressionString ( ) + STRING1 + getTargetExpressionString ( ) + STRING2 ; \n } \n \n + @ override \n + public void setExclude ( ) { \n + SINGLE \n + } \n + \n }", "msg_token": "Added an empty implementation of the missing setExclude method so that the class compiles"} {"diff": " final class NodeAndNPMInstaller { \n try { \n log . info ( STRING0 + nodeVersion ) ; \n final String osName = getOsCodeName ( ) ; \n - final String architecture = this . architecture . toString ( ) ; \n - final String longNodeFilename = STRING1 + nodeVersion + STRING2 + osName + STRING2 + architecture ; \n + final String longNodeFilename = STRING1 + nodeVersion + STRING2 + osName + STRING2 + architecture . toString ( ) ; \n downloadUrl = DOWNLOAD_ROOT + nodeVersion + STRING3 + longNodeFilename + STRING4 ; \n \n final File tmpDirectory = new File ( workingDirectory + File . separator + STRING5 ) ;", "msg_token": "Fixed warning Local variable hides field"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DefaultConfigurationTest { \n public void getAsPath ( ) { \n File file1 = new File ( STRING0 ) ; \n File file2 = new File ( STRING1 ) ; \n - final Set < File > fileSet = WrapUtil . toSet ( file1 , file2 ) ; \n + final Set < File > fileSet = WrapUtil . toLinkedSet ( file1 , file2 ) ; \n makeResolveReturnFileSet ( fileSet ) ; \n assertThat ( configuration . getAsPath ( ) , equalTo ( file1 . getAbsolutePath ( ) + STRING2 + file2 . getAbsolutePath ( ) ) ) ; \n assertThat ( configuration . getState ( ) , equalTo ( Configuration . State . RESOLVED ) ) ;", "msg_token": "Fixed unit test"} {"diff": " public class Debug { \n } \n \n public static String whereIs ( Class < ? > clazz ) { \n - return clazz != null ? clazz . getClassLoader ( ) . getResource ( clazz . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ) . toString ( ) : null ; \n + if ( clazz == null ) \n + return null ; \n + final String resource = clazz . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ; \n + URL url = clazz . getResource ( resource ) ; \n + if ( url == null ) \n + url = ( clazz . getClassLoader ( ) != null ? clazz . getClassLoader ( ) : ClassLoader . getSystemClassLoader ( ) ) . getResource ( resource ) ; \n + return url != null ? url . toString ( ) : null ; \n } \n \n private static Class findClass ( String className ) {", "msg_token": "Improve Debug whereIs"} {"diff": " public class HtmlExporterTests extends RefineTest { \n } \n \n Assert . assertEquals ( writer . toString ( ) , STRING0 + \n - STRING1 + TEST_PROJECT_NAME + STRING2 + \n + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 + \n STRING6 + \n STRING7 + \n STRING8 + \n public class HtmlExporterTests extends RefineTest { \n } \n \n Assert . assertEquals ( writer . toString ( ) , STRING0 + \n - STRING1 + TEST_PROJECT_NAME + STRING2 + \n + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 + \n STRING6 + \n STRING7 + \n STRING8 + \n public class HtmlExporterTests extends RefineTest { \n } \n \n Assert . assertEquals ( writer . toString ( ) , STRING0 + \n - STRING1 + TEST_PROJECT_NAME + STRING9 + \n + STRING3 + STRING4 + TEST_PROJECT_NAME + STRING5 + \n + STRING6 + \n + STRING7 + \n STRING8 + \n STRING10 + \n STRING11 +", "msg_token": "fix the junit issue"} {"diff": " public class OrderedMemoryAwareThreadPoolExecutor extends \n \n @ override \n public void execute ( Runnable command ) { \n + SINGLE \n tasks . add ( command ) ;", "msg_token": "Add some TODO"} {"diff": " class BaseTransport { \n SINGLE \n SINGLE \n static MultiMap removeCookieHeaders ( MultiMap headers ) { \n - return headers . remove ( STRING0 ) ; \n + SINGLE \n + String jsessionid = null ; \n + for ( String cookie : headers . getAll ( STRING0 ) ) { \n + if ( cookie . startsWith ( STRING1 ) ) { \n + jsessionid = cookie ; \n + } \n + } \n + headers . remove ( STRING0 ) ; \n + \n + SINGLE \n + if ( jsessionid != null ) { \n + headers . add ( STRING0 , jsessionid ) ; \n + } \n + \n + return headers ; \n } \n }", "msg_token": "Retain the JSESSIONID cookie for sockjs requests"} {"diff": " public abstract class ComboBoxAction extends AnAction implements CustomComponent \n \n @ override \n public void paint ( Graphics g ) { \n - UIUtil . paintWithRetina ( getSize ( ) , g , UIUtil . isUnderDarcula ( ) , new Consumer < Graphics2D > ( ) { \n - @ override \n - public void consume ( Graphics2D graphics ) { \n - doPaint ( graphics ) ; \n - } \n - } ) ; \n - } \n - \n - private void doPaint ( Graphics g ) { \n GraphicsUtil . setupAntialiasing ( g ) ; \n \n final boolean isEmpty = getIcon ( ) == null && StringUtil . isEmpty ( getText ( ) ) ;", "msg_token": "do not paint run configurations combobox with retina fix no xor mode anymore"} {"diff": " public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \n List < ? extends TypeDescription > requiredTypes , \n List < ? extends TypeDescription > yieldedTypes , \n int writerFlags ) { \n - return ( writerFlags & ClassWriter . COMPUTE_MAXS ) != NUMBER0 SINGLE \n + return ( writerFlags & ( ClassWriter . COMPUTE_MAXS | ClassWriter . COMPUTE_FRAMES ) ) != NUMBER0 \n ? NoOp . INSTANCE \n : new Default ( instrumentedMethod , new TypeList . Explicit ( requiredTypes ) , new TypeList . Explicit ( yieldedTypes ) ) ; \n }", "msg_token": "Extended applicability of no op stack frame computer"} {"diff": " public class HandlerController implements Handler . Callback { \n SINGLE \n if ( weakListener == listener ) { \n addListener = false ; \n - break ; \n } \n } \n if ( toRemoveList != null ) {", "msg_token": "Check all weak references"} {"diff": " public final class Resources { \n return null ; \n SINGLE \n SINGLE \n - if ( file . isDirectory ( ) ) \n + try { \n + if ( file . isDirectory ( ) ) \n return file ; \n + } catch ( SecurityException e ) { \n + SINGLE \n + } \n return file . getParentFile ( ) ; \n } catch ( IOException e ) { } \n return null ;", "msg_token": "Fix error when run in GAE"} {"diff": " public class TestPaymentApi extends PaymentTestSuiteWithEmbeddedDB { \n \n @ test ( groups = STRING0 ) \n public void testCreatePurchaseWithControlPluginException ( ) throws Exception { \n + mockPaymentControlProviderPlugin . throwsException ( new PaymentControlApiException ( ) ) ; \n + \n + final BigDecimal requestedAmount = BigDecimal . TEN ; \n + final String paymentExternalKey = STRING1 ; ; \n + final String transactionExternalKey = STRING2 ; \n + try { \n + paymentApi . createPurchaseWithPaymentControl ( \n + account , account . getPaymentMethodId ( ) , null , requestedAmount , Currency . AED , \n + paymentExternalKey , transactionExternalKey , ImmutableList . < PluginProperty > of ( ) , CONTROL_PLUGIN_OPTIONS , callContext ) ; \n + fail ( ) ; \n + } catch ( PaymentApiException e ) { \n + assertTrue ( e . getCause ( ) instanceof PaymentControlApiException ) ; \n + } \n + } \n + \n + @ test ( groups = STRING0 ) \n + public void testCreatePurchaseWithControlPluginRuntimeException ( ) throws Exception { \n mockPaymentControlProviderPlugin . throwsException ( new IllegalStateException ( ) ) ; \n \n final BigDecimal requestedAmount = BigDecimal . TEN ;", "msg_token": "Adds a test case for a control plugin raising a PaymentControlApiException"} {"diff": " public class SipAccountIDImpl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getSystemProtocolName ( ) \n + { \n + return ProtocolNames . SIP ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Moves generic ICE methods from Jabber to service protocol so that they can be reused by SIP"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TaskReportTask extends AbstractReportTask { \n this . detail = detail ; \n } \n \n - @ input \n + @ console \n public boolean isDetail ( ) { \n return detail ; \n }", "msg_token": "Make TaskReportTask detail a Console property"} {"diff": " public class IgnitedGingerbreadLastLocationFinder extends IgnitedAbstractLastLoc \n public void cancel ( ) { \n Log . d ( LOG_TAG , STRING0 ) ; \n locationManager . removeUpdates ( singleUpatePI ) ; \n - if ( singleUpdateReceiverRegistered ) { \n - unregisterSingleUpdateReceiver ( ) ; \n - } \n + unregisterSingleUpdateReceiver ( ) ; \n } \n \n private void unregisterSingleUpdateReceiver ( ) { \n - context . unregisterReceiver ( singleUpdateReceiver ) ; \n - singleUpdateReceiverRegistered = false ; \n + if ( singleUpdateReceiverRegistered ) { \n + context . unregisterReceiver ( singleUpdateReceiver ) ; \n + singleUpdateReceiverRegistered = false ; \n + } \n } \n }", "msg_token": "Before registering the single update receiver check if it has been previously registered"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n boolean applyWindow = attrs . type >= FIRST_APPLICATION_WINDOW \n && attrs . type <= LAST_APPLICATION_WINDOW ; \n if ( attrs . type == TYPE_DREAM ) { \n - mShowingDream = true ; \n - if ( ! mDreamingLockscreen ) { \n - applyWindow = true ; \n - } else if ( win . isVisibleLw ( ) && win . hasDrawnLw ( ) ) { \n + SINGLE \n + SINGLE \n + if ( ! mDreamingLockscreen \n + || ( win . isVisibleLw ( ) && win . hasDrawnLw ( ) ) ) { \n + mShowingDream = true ; \n applyWindow = true ; \n } \n } \n public class PhoneWindowManager implements WindowManagerPolicy { \n ? mTopFullscreenOpaqueWindowState . getAttrs ( ) \n : null ; \n \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n if ( ! mShowingDream ) { \n mDreamingLockscreen = mShowingLockscreen ; \n }", "msg_token": "Fix dream keyguard infinite layout loop"} {"diff": " public class BackDropperEffect extends FilterGraphEffect { \n if ( parameterKey . equals ( STRING0 ) ) { \n Filter background = mGraph . getFilter ( STRING1 ) ; \n background . setInputValue ( STRING2 , value ) ; \n + } else if ( parameterKey . equals ( STRING3 ) ) { \n + Filter background = mGraph . getFilter ( STRING1 ) ; \n + background . setInputValue ( STRING3 , value ) ; \n } \n }", "msg_token": "Add context support to backdropper filter"} {"diff": " public class GoCacheTest { \n goCache . put ( parentKey , STRING0 , STRING1 ) ; \n assertThat ( goCache . get ( parentKey ) , is ( not ( nullValue ( ) ) ) ) ; \n assertThat ( goCache . get ( parentKey + GoCache . SUB_KEY_DELIMITER + STRING0 ) , is ( not ( nullValue ( ) ) ) ) ; \n - Thread . sleep ( NUMBER0 ) ; SINGLE \n + Thread . sleep ( NUMBER1 ) ; SINGLE \n \n goCache . put ( parentKey , STRING2 , STRING1 ) ; \n assertThat ( goCache . get ( parentKey ) , is ( not ( nullValue ( ) ) ) ) ;", "msg_token": "Fix build cache related tests"} {"diff": " public class RxPermissions { \n return mCtx . getPackageManager ( ) . isPermissionRevokedByPolicy ( permission , mCtx . getPackageName ( ) ) ; \n } \n \n - void onDestroy ( ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onDestroy ( ) { \n log ( STRING0 ) ; \n - SINGLE \n - SINGLE \n for ( Subject subject : mSubjects . values ( ) ) { \n subject . onCompleted ( ) ; \n }", "msg_token": "Make onDestroy public"} {"diff": " public class PatternRuleTest extends TestCase { \n RuleMatch [ ] matches = getMatches ( rule , badSentence , languageTool ) ; \n if ( ! rule . isWithComplexPhrase ( ) ) { \n assertTrue ( lang + STRING0 + badSentence + STRING1 + rule \n - + STRING2 + matches . length , matches . length == NUMBER0 ) ; \n + + STRING2 + matches . length + STRING3 + rule . getMessage ( ) , matches . length == NUMBER0 ) ; \n assertEquals ( lang + STRING4 + rule , \n expectedMatchStart , matches [ NUMBER1 ] . getFromPos ( ) ) ; \n assertEquals ( lang + STRING5 + rule , \n public class PatternRuleTest extends TestCase { \n final PatternRule badRule = complexRules . get ( iter . next ( ) ) ; \n if ( badRule != null ) { \n badRule . notComplexPhrase ( ) ; \n + badRule . setMessage ( STRING6 ) ; \n badRules . add ( badRule ) ; \n } \n }", "msg_token": "add more informative error msg in case of complex phrase based rules"} {"diff": " import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ aggregationfunction ( value = STRING0 , alias = STRING1 ) \n + @ aggregationfunction ( value = STRING0 , alias = { STRING1 , STRING2 } ) \n public final class BooleanAndAggregation \n { \n private BooleanAndAggregation ( ) { } \n import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ aggregationfunction ( STRING3 ) \n + @ aggregationfunction ( value = STRING3 , alias = STRING4 ) \n public final class BooleanOrAggregation \n { \n private BooleanOrAggregation ( ) { }", "msg_token": "Restore min max aggregations for booleans"} {"diff": " public class JavaCompletionData extends JavaAwareCompletionData { \n } \n \n { \n - final CompletionVariant variant = new CompletionVariant ( psiElement ( ) . afterLeaf ( \n + final CompletionVariant variant = new CompletionVariant ( PsiElement . class , psiElement ( ) . afterLeaf ( \n psiElement ( PsiIdentifier . class ) . afterLeaf ( \n psiElement ( ) . withText ( string ( ) . oneOf ( STRING0 , STRING1 ) ) . withParent ( PsiTypeParameterList . class ) ) ) ) ; \n - variant . includeScopeClass ( PsiClass . class , true ) ; \n + SINGLE \n variant . addCompletion ( PsiKeyword . EXTENDS , TailType . SPACE ) ; \n registerVariant ( variant ) ; \n }", "msg_token": "fix extends completion in method type parameters"} {"diff": " public abstract class DisplayListFragment < T extends BserObject & ListEngineItem , \n \n public void setOnScrollListener ( RecyclerView . OnScrollListener onScrollListener ) { \n this . onScrollListener = onScrollListener ; \n + if ( collection != null ) { \n + collection . addOnScrollListener ( onScrollListener ) ; \n + } \n } \n \n @ override", "msg_token": "force set display list fragment scroll listener"} {"diff": " public class BikeCommonFlagEncoder extends AbstractFlagEncoder \n } \n \n SINGLE \n - private PriorityCode convertCallValueToPriority ( String tagvalue ) \n + private PriorityCode convertClassValueToPriority ( String tagvalue ) \n { \n int classvalue ; \n try \n public class BikeCommonFlagEncoder extends AbstractFlagEncoder \n if ( classBicycleSpecific != null ) \n { \n SINGLE \n - weightToPrioMap . put ( NUMBER0 d , convertCallValueToPriority ( classBicycleSpecific ) . getValue ( ) ) ; \n + weightToPrioMap . put ( NUMBER0 d , convertClassValueToPriority ( classBicycleSpecific ) . getValue ( ) ) ; \n } else \n { \n String classBicycle = way . getTag ( STRING0 ) ; \n if ( classBicycle != null ) \n - weightToPrioMap . put ( NUMBER0 d , convertCallValueToPriority ( classBicycle ) . getValue ( ) ) ; \n + weightToPrioMap . put ( NUMBER0 d , convertClassValueToPriority ( classBicycle ) . getValue ( ) ) ; \n } \n }", "msg_token": "Fix typo convertCallValueToPriority into convertClassValueToPriority"} {"diff": " public class MimeTypesTransformer implements GrailsArtefactClassInjector , Annota \n final ArgumentListExpression args = new ArgumentListExpression ( ) ; \n args . addExpression ( new VariableExpression ( STRING0 ) ) \n . addExpression ( new VariableExpression ( STRING1 ) ) ; \n - MethodCallExpression methodCall = new MethodCallExpression ( new VariableExpression ( FIELD_MIME_TYPES_API ) , WITH_FORMAT_METHOD , args ) ; \n - methodCall . setMethodTarget ( mimeTypesApiClass . getMethods ( WITH_FORMAT_METHOD ) . get ( NUMBER0 ) ) ; \n - methodBody . addStatement ( new ExpressionStatement ( methodCall ) ) ; \n + methodBody . addStatement ( new ExpressionStatement ( new MethodCallExpression ( new VariableExpression ( FIELD_MIME_TYPES_API ) , WITH_FORMAT_METHOD , args ) ) ) ; \n MethodNode methodNode = new MethodNode ( WITH_FORMAT_METHOD , Modifier . PUBLIC , new ClassNode ( Object . class ) , CLOSURE_PARAMETER , null , methodBody ) ; \n methodNode . addAnnotation ( getMarkerAnnotation ( ) ) ; \n classNode . addMethod ( methodNode ) ;", "msg_token": "makes MimeTypesTransformer compatible with CompileStatic"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n @ api ( value = STRING0 , description = STRING1 ) \n @ path ( STRING2 ) \n @ consumes ( MediaType . APPLICATION_JSON )", "msg_token": "Removing unused imports"} {"diff": " public final class DependencyResolver \n && found . getArtifactId ( ) . equals ( artifact . getArtifactId ( ) ) \n && found . getVersion ( ) . equals ( artifact . getVersion ( ) ) \n && found . getType ( ) . equals ( artifact . getType ( ) ) \n + && found . getClassifier ( ) . equals ( artifact . getClassifier ( ) ) \n ; \n } \n } ;", "msg_token": "Adding classifier to dep resolution"} {"diff": " public class TestPublicBus extends TestIntegrationBase { \n \n } \n \n - @ test ( groups = STRING0 ) \n + @ test ( groups = STRING1 ) \n public void testSimple ( ) throws Exception { \n \n final DateTime initialDate = new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER3 , testTimeZone ) ; \n public class TestPublicBus extends TestIntegrationBase { \n } ) ; \n } \n \n - @ test ( groups = STRING0 ) \n + @ test ( groups = STRING1 ) \n public void testTenantKVChange ( ) throws Exception { \n \n final TenantData tenantData = new DefaultTenant ( null , clock . getUTCNow ( ) , clock . getUTCNow ( ) , STRING2 , STRING3 , STRING4 ) ; \n public class TestPublicBus extends TestIntegrationBase { \n } \n \n \n - @ test ( groups = STRING0 ) \n + @ test ( groups = STRING1 ) \n public void testBroadcastEvent ( ) throws Exception {", "msg_token": "Fix typo in test group"} {"diff": " public class TitanGraphConfiguration implements GraphConfiguration { \n jointConfig . addConfiguration ( titanConfig ) ; \n return jointConfig ; \n } catch ( Exception e ) { \n - throw new GraphConfigurationException ( e ) ; \n + SINGLE \n + Throwable cause = e ; \n + while ( cause . getCause ( ) != null ) { \n + cause = cause . getCause ( ) ; \n + } \n + throw new GraphConfigurationException ( cause ) ; \n } \n } \n }", "msg_token": "Unroll exceptions for Rexster to have the cause printed to the console"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AgentInfoServiceImpl implements AgentInfoService { \n if ( unfilteredAgentInfos == null || unfilteredAgentInfos . isEmpty ( ) ) { \n return Collections . emptySet ( ) ; \n } \n + CollectionUtils . filter ( unfilteredAgentInfos , PredicateUtils . notNullPredicate ( ) ) ; \n this . agentLifeCycleDao . populateAgentStatuses ( unfilteredAgentInfos , timestamp ) ; \n Set < AgentInfo > filteredAgentInfos = new HashSet < > ( ) ; \n for ( AgentInfo agentInfo : unfilteredAgentInfos ) {", "msg_token": "add null check for querying deleted agent infos"} {"diff": " public class SimpleParserPredicateTest extends ExchangeTestSupport { \n parser = new SimplePredicateParser ( STRING0 , true ) ; \n pre = parser . parsePredicate ( ) ; \n assertTrue ( STRING1 , pre . matches ( exchange ) ) ; \n + \n + SINGLE \n + parser = new SimplePredicateParser ( STRING2 , true ) ; \n + pre = parser . parsePredicate ( ) ; \n + assertFalse ( STRING3 , pre . matches ( exchange ) ) ; \n } \n \n protected JndiRegistry createRegistry ( ) throws Exception {", "msg_token": "Add test on user forum"} {"diff": " public class EventManager { \n COMMENT \n COMMENT \n COMMENT \n - protected void fire ( Context context , Object event ) { \n + public void fire ( Context context , Object event ) { \n if ( ! isEnabled ( ) ) return ; \n \n COMMENT", "msg_token": "make fire Context Object public"} {"diff": " public class UsageInfo2UsageAdapter implements UsageInModule , \n \n @ override \n public boolean isReadOnly ( ) { \n - return isValid ( ) && ! getElement ( ) . isWritable ( ) ; \n + PsiFile psiFile = getPsiFile ( ) ; \n + return psiFile == null || psiFile . isValid ( ) && ! psiFile . isWritable ( ) ; \n } \n \n @ override \n public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra \n myTransferToEDTQueue . offer ( runnable ) ; \n } \n } ) ; \n + if ( node != null ) { \n + SINGLE \n + node . update ( this ) ; \n + } \n myUsageNodes . put ( usage , node == null ? NULL_NODE : node ) ; \n return node ; \n }", "msg_token": "do not load document to check for isReadOnly"} {"diff": " public final class CheckpointDecisionCoordinator { \n final List < CheckpointDecision > checkpointDecisionList = new SerializableArrayList < CheckpointDecision > ( ) ; \n \n synchronized ( graph ) { \n - checkpointDecisionList . add ( new CheckpointDecision ( vertex . getID ( ) , false ) ) ; SINGLE \n + checkpointDecisionList . add ( new CheckpointDecision ( vertex . getID ( ) , true ) ) ; SINGLE \n checkpointDecisions . put ( vertex . getAllocatedResource ( ) . getInstance ( ) , checkpointDecisionList ) ; \n }", "msg_token": "Enabled checkpoints by default"} {"diff": " public class MinecraftForge \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , \n STRING6 , \n STRING7 , \n STRING8 ,", "msg_token": "Add missing classes to CrashReport preloading"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpringBatchEndpoint extends DefaultEndpoint { \n COMMENT \n COMMENT \n COMMENT \n - public void setJobFromHeader ( Boolean jobFromHeader ) { this . jobFromHeader = jobFromHeader ; } \n + public void setJobFromHeader ( Boolean jobFromHeader ) { \n + this . jobFromHeader = jobFromHeader ; \n + } \n \n \n - public Boolean getJobFromHeader ( ) { return jobFromHeader ; } \n + public Boolean getJobFromHeader ( ) { \n + return jobFromHeader ; \n + } \n \n \n }", "msg_token": "missed file in commit"} {"diff": " class FileNormaliser { \n + STRING0 ) ; \n \n private final FileSystem fileSystem ; \n + private final boolean isWindowsOs ; \n \n FileNormaliser ( FileSystem fileSystem ) { \n + this ( fileSystem , OperatingSystem . current ( ) ) ; \n + } \n + \n + FileNormaliser ( FileSystem fileSystem , OperatingSystem operatingSystem ) { \n this . fileSystem = fileSystem ; \n + this . isWindowsOs = operatingSystem . isWindows ( ) ; \n } \n \n SINGLE \n class FileNormaliser { \n try { \n assert file . isAbsolute ( ) : String . format ( STRING1 , file ) ; \n \n - if ( OperatingSystem . current ( ) . isWindows ( ) ) { \n + if ( isWindowsOs ) { \n SINGLE \n return file . getCanonicalFile ( ) ; \n }", "msg_token": "Eliminate OperatingSystem current calls in FileNormaliser normalise"} {"diff": " public class DDLRecordLocalServiceImpl extends DDLRecordLocalServiceBaseImpl { \n assetEntryLocalService . deleteEntry ( \n DDLRecord . class . getName ( ) , record . getRecordId ( ) ) ; \n \n + SINGLE \n + \n + ratingsStatsLocalService . deleteStats ( \n + DDLRecord . class . getName ( ) , record . getRecordId ( ) ) ; \n + \n return record ; \n }", "msg_token": "Now DDLRecord delete the ratingstats"} {"diff": " public class OfflineChangeLogHistoryService extends AbstractChangeLogHistoryServ \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 \n + STRING3 , \n + STRING4 , \n + STRING5 \n } ) ; \n } finally { \n if ( writer != null ) { \n public class OfflineChangeLogHistoryService extends AbstractChangeLogHistoryServ \n csvWriter . writeNext ( line ) ; \n } \n \n - String [ ] newLine = new String [ NUMBER0 ] ; \n + String [ ] newLine = new String [ NUMBER1 ] ; \n newLine [ COLUMN_ID ] = changeSet . getId ( ) ; \n newLine [ COLUMN_AUTHOR ] = changeSet . getAuthor ( ) ; \n newLine [ COLUMN_FILENAME ] = changeSet . getFilePath ( ) ;", "msg_token": "Fix CSV header and String array size"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class HikariConnectionProvider implements ConnectionProvider , Configurable , Stoppable \n { \n - \n private static final long serialVersionUID = - NUMBER0 ; \n \n private static final Logger LOGGER = LoggerFactory . getLogger ( HikariConnectionProvider . class ) ;", "msg_token": "Add attribution to Luca Burgazzoli"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class HeadersBodyParser extends BodyParser \n { \n public class HeadersBodyParser extends BodyParser \n } \n \n @ override \n + protected boolean emptyBody ( ) \n + { \n + MetaData metaData = headerBlockParser . parse ( BufferUtil . EMPTY_BUFFER , NUMBER0 ) ; \n + boolean result = onHeaders ( NUMBER0 , NUMBER0 , false , metaData ) ; \n + reset ( ) ; \n + return result ; \n + } \n + \n + @ override \n public Result parse ( ByteBuffer buffer ) \n { \n boolean loop = false ;", "msg_token": "Fixed handling of zero length body that must be HPACK decoded"} {"diff": " public class CppGenerator implements CodeGenerator \n ) ) ; \n \n sb . append ( String . format ( \n - indent + STRING0 + \n + indent + STRING1 + \n indent + STRING2 + \n indent + STRING3 + \n indent + STRING4 + \n public class CppGenerator implements CodeGenerator \n ) ) ; \n \n sb . append ( String . format ( \n - indent + STRING0 + \n + indent + STRING1 + \n indent + STRING2 + \n indent + STRING5 + \n - indent + STRING6 + \n + indent + STRING7 + \n indent + STRING8 + \n indent + STRING9 + \n indent + STRING10 ,", "msg_token": "remove some int lengths"} {"diff": " public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp \n @ notnull final Project project , \n @ nullable final Runnable postRunnable , \n @ nullable final String commandName ) { \n + setCurrentScope ( scope ) ; \n final int fileCount = scope . getFileCount ( ) ; \n final ProgressIndicator progressIndicator = ProgressManager . getInstance ( ) . getProgressIndicator ( ) ; \n final List < LocalInspectionToolWrapper > lTools = new ArrayList < LocalInspectionToolWrapper > ( ) ;", "msg_token": "restored scope setter"} {"diff": " abstract class AbstractResultQuery < R extends Record > extends AbstractQuery imple \n try { \n ResultSet rs = statement . executeQuery ( ) ; \n \n + SINGLE \n if ( ! many ) { \n FieldList fields = new FieldList ( getFields ( rs . getMetaData ( ) ) ) ; \n cursor = new CursorImpl < R > ( configuration , fields , rs , statement , getRecordType ( ) ) ; \n abstract class AbstractResultQuery < R extends Record > extends AbstractQuery imple \n cursor = null ; \n } \n } \n + \n + SINGLE \n else { \n results = new ArrayList < Result < Record > > ( ) ;", "msg_token": "Added some comments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JivePropertiesExtension implements ExtensionElement { \n return xml ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static JivePropertiesExtension from ( Message message ) { \n + return message . getExtension ( ELEMENT , NAMESPACE ) ; \n + } \n } \n public class JivePropertiesExtensionTest extends InitExtensions { \n SINGLE \n \n Message message = ( Message ) PacketParserUtils . parseStanza ( properties ) ; \n - JivePropertiesExtension jpe = ( JivePropertiesExtension ) message . getExtension ( JivePropertiesExtension . NAMESPACE ) ; \n + JivePropertiesExtension jpe = JivePropertiesExtension . from ( message ) ; \n assertNotNull ( jpe ) ; \n \n Integer integer = ( Integer ) jpe . getProperty ( STRING0 ) ;", "msg_token": "Add JivePropertiesExtension from Message"} {"diff": " public class AnalystWorker implements Runnable { \n router . includeTimes = clusterRequest . includeTimes ; \n envelope = router . route ( ) ; \n envelope . id = clusterRequest . id ; \n - envelope . destinationPointsetId = clusterRequest . destinationPointsetId ; \n ts . success = true ; \n } catch ( Exception ex ) { \n SINGLE \n public class AnalystWorker implements Runnable { \n SINGLE \n SINGLE \n SINGLE \n + envelope . id = clusterRequest . id ; \n + envelope . jobId = clusterRequest . jobId ; \n + envelope . destinationPointsetId = clusterRequest . destinationPointsetId ; \n if ( clusterRequest . outputLocation != null ) { \n SINGLE \n SINGLE", "msg_token": "set some more fields in the response"} {"diff": " public class MaterialCalendarView extends ViewGroup { \n currentMonth = c ; \n int position = adapter . getIndexForDay ( c ) ; \n pager . setCurrentItem ( position , false ) ; \n + updateUi ( ) ; \n } \n \n public static class SavedState extends BaseSavedState {", "msg_token": "Fix issue with arrow not enable when setting maxDate"} {"diff": " public class SignInFragment extends AbstractFragment implements TextWatcher { \n } \n \n private void requestWPComEmailCheck ( ) { \n - WordPress . getRestClientUtilsV0 ( ) . isAvailable ( mUsername , new RestRequest . Listener ( ) { \n + WordPress . getRestClientUtilsV0 ( ) . isAvailable ( UrlUtils . urlEncode ( mUsername ) , new RestRequest . Listener ( ) { \n @ override \n public void onResponse ( JSONObject response ) { \n try {", "msg_token": "URL encode the query email before check"} {"diff": " public class ProtoLiteUtils { \n throw new RuntimeException ( STRING0 + buf . length + STRING1 + position ) ; \n } \n cis = CodedInputStream . newInstance ( buf ) ; \n + } else if ( size == NUMBER0 ) { \n + return defaultInstance ; \n } \n } \n } catch ( IOException e ) {", "msg_token": "fast path zero sized messages"} {"diff": " public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL \n } \n model . write_lock ( self ( ) ) ; \n final DeepLearningModel . DeepLearningParameters mp = model . _parms ; \n - Frame tra_fr = _train ; \n - Frame val_fr = _valid ; \n + Frame tra_fr = new Frame ( mp . train ( ) . _key , _train . names ( ) , _train . vecs ( ) ) ; \n + Frame val_fr = _valid != null ? new Frame ( mp . valid ( ) . _key , _valid . names ( ) , _valid . vecs ( ) ) : null ; \n \n final long model_size = model . model_info ( ) . size ( ) ; \n if ( ! _parms . _quiet_mode ) Log . info ( STRING0 + String . format ( STRING1 , model_size ) ) ;", "msg_token": "Keep train valid frame key names to be used by ModelMetrics"} {"diff": " public class CompletionProgressIndicator extends ProgressIndicatorBase implement \n } \n \n private void trackModifiers ( ) { \n + if ( isAutopopupCompletion ( ) ) { \n + return ; \n + } \n + \n final JComponent contentComponent = myEditor . getContentComponent ( ) ; \n contentComponent . addKeyListener ( new KeyAdapter ( ) { \n public void keyPressed ( KeyEvent e ) {", "msg_token": "autopopup completion doesn t need a fine grained modifier key tracking"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n - public class WireMockClassRule implements MethodRule , TestRule { \n + public class WireMockClassRule implements MethodRule , TestRule , Stubbing { \n \n private final Options options ; \n private final WireMockServer wireMockServer ; \n public class WireMockClassRule implements MethodRule , TestRule { \n } ; \n } \n \n + @ override \n + public void givenThat ( MappingBuilder mappingBuilder ) { \n + wireMock . register ( mappingBuilder ) ; \n + } \n + \n + @ override \n + public void stubFor ( MappingBuilder mappingBuilder ) { \n + givenThat ( mappingBuilder ) ; \n + } \n }", "msg_token": "handle stubbings in WireMockClassRule"} {"diff": " public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer \n if ( JCVideoPlayerManager . getFirst ( ) != null ) { \n JCVideoPlayerManager . getFirst ( ) . autoFullscreenLeft ( ) ; \n } \n - } else if ( y > FLOAT0 ) { \n - if ( JCVideoPlayerManager . getFirst ( ) != null ) { \n - JCVideoPlayerManager . getFirst ( ) . autoQuitFullscreen ( ) ; \n - } \n } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n }", "msg_token": "if you want to quit fullscreen you should press back button or click quit fullscreen button"} {"diff": " public class PeepholeCollectPropertyAssignmentsTest extends CompilerTestCase { \n testSame ( STRING0 ) ; \n } \n \n + public final void testCompoundAssignment ( ) { \n + testSame ( STRING1 ) ; \n + } \n + \n public final void testNegativeArrayIndex1 ( ) { \n testSame ( STRING2 ) ; \n }", "msg_token": "Add requested unit test"} {"diff": " public class MaterialCalendarView extends ViewGroup { \n setWeekDayTextAppearance ( ss . weekDayTextAppearance ) ; \n setShowOtherDates ( ss . showOtherDates ) ; \n setAllowClickDaysOutsideCurrentMonth ( ss . allowClickDaysOutsideCurrentMonth ) ; \n + minDate = ss . minDate ; \n + maxDate = ss . maxDate ; \n setRangeDates ( ss . minDate , ss . maxDate ) ; \n clearSelection ( ) ; \n for ( CalendarDay calendarDay : ss . selectedDates ) {", "msg_token": "Fix issue with min maxDate not respected on rotation"} {"diff": " public class IceUdpTransportPacketExtension \n else if ( childExtension instanceof CandidatePacketExtension ) \n addCandidate ( ( CandidatePacketExtension ) childExtension ) ; \n \n - else if ( childExtension instanceof DtlsFingerprintPacketExtension ) \n + else \n super . addChildExtension ( childExtension ) ; \n } \n }", "msg_token": "Allows PacketExtensions other than DTLS FP to be added to an IceUdpTransportPacketExtension"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface ApplicationComponent { \n Context context ( ) ; \n ThreadExecutor threadExecutor ( ) ; \n PostExecutionThread postExecutionThread ( ) ; \n - UserCache userCache ( ) ; \n UserRepository userRepository ( ) ; \n }", "msg_token": "Remove unused exposed dependency"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LanguageIdentifierTools { \n \n try { \n LanguageProfile profile = new LanguageProfile ( ) ; \n - String languageFilePath = STRING0 + JLanguageTool . getDataBroker ( ) . getResourceDir ( ) + \n + final String languageFilePath = JLanguageTool . getDataBroker ( ) . getResourceDir ( ) + \n STRING1 + language + STRING1 + language + PROFILE_SUFFIX ; \n - InputStream stream = new FileInputStream ( languageFilePath ) ; \n + \n + InputStream stream = JLanguageTool . class . getResourceAsStream ( languageFilePath ) ; \n \n try { \n BufferedReader reader =", "msg_token": "Actually fixed the path problem for LanguageIdentifierTools"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public interface RepeatedPostprocessor extends Postprocessor {", "msg_token": "Fix comment in Gingerbread"} {"diff": " public class KStreamWindowReduce < K , V , W extends Window > implements KStreamAggPr \n return new KTableValueGetterSupplier < Windowed < K > , V > ( ) { \n \n public KTableValueGetter < Windowed < K > , V > get ( ) { \n - return new KStreamAggregateValueGetter ( ) ; \n + return new KStreamWindowReduceValueGetter ( ) ; \n } \n \n } ; \n } \n \n - private class KStreamAggregateValueGetter implements KTableValueGetter < Windowed < K > , V > { \n + private class KStreamWindowReduceValueGetter implements KTableValueGetter < Windowed < K > , V > { \n \n private WindowStore < K , V > windowStore ; \n \n public class KStreamWindowReduce < K , V , W extends Window > implements KStreamAggPr \n \n SINGLE \n try ( WindowStoreIterator < V > iter = windowStore . fetch ( key , window . start ( ) , window . start ( ) ) ) { \n - return iter . next ( ) . value ; \n + return iter . hasNext ( ) ? iter . next ( ) . value : null ; \n } \n } \n }", "msg_token": "Check hasNext in KStreamWindowReduce"} {"diff": " public class AppBarLayout extends LinearLayout { \n @ override \n public WindowInsetsCompat onApplyWindowInsets ( View v , \n WindowInsetsCompat insets ) { \n - return setWindowInsets ( insets ) ; \n + return onWindowInsetChanged ( insets ) ; \n } \n } ) ; \n } \n public class AppBarLayout extends LinearLayout { \n return mLastInsets != null ? mLastInsets . getSystemWindowInsetTop ( ) : NUMBER0 ; \n } \n \n - private WindowInsetsCompat setWindowInsets ( WindowInsetsCompat insets ) { \n - SINGLE \n - mTotalScrollRange = INVALID_SCROLL_RANGE ; \n - mLastInsets = insets ; \n + private WindowInsetsCompat onWindowInsetChanged ( final WindowInsetsCompat insets ) { \n + WindowInsetsCompat newInsets = null ; \n + \n + if ( ViewCompat . getFitsSystemWindows ( this ) ) { \n + SINGLE \n + newInsets = insets ; \n + } \n + \n + SINGLE \n + if ( newInsets != mLastInsets ) { \n + mLastInsets = newInsets ; \n + invalidateScrollRanges ( ) ; \n + } \n + \n return insets ; \n }", "msg_token": "Don t always use window insets in AppBarLayout"} {"diff": " public class DragSortListView extends ListView { \n if ( child != oldChild ) { \n SINGLE \n SINGLE \n - v . removeViewAt ( NUMBER0 ) ; \n + if ( oldChild != null ) { \n + v . removeViewAt ( NUMBER0 ) ; \n + } \n v . addView ( child ) ; \n } \n } else {", "msg_token": "Only remove oldChild if it s not null"} {"diff": " public class ResValueFactory { \n public ResScalarValue factory ( int type , int value , String rawValue ) \n throws AndrolibException { \n switch ( type ) { \n + case TypedValue . TYPE_NULL : \n + return new ResReferenceValue ( mPackage , NUMBER0 , null ) ; \n case TypedValue . TYPE_REFERENCE : \n return newReference ( value , rawValue ) ; \n case TypedValue . TYPE_ATTRIBUTE :", "msg_token": "add support for TYPE_NULL"} {"diff": " public class StackStateAnimator { \n } \n \n SINGLE \n - child . setDimmed ( viewState . dimmed , mAnimationFilter . animateDimmed ) ; \n + child . setDimmed ( viewState . dimmed , mAnimationFilter . animateDimmed && ! wasAdded ) ; \n \n SINGLE \n child . setDark ( viewState . dark , mAnimationFilter . animateDark ) ;", "msg_token": "Fixed a bug on the notification appear animation"} {"diff": " public class Show { \n @ serializedname ( STRING0 ) \n public String imdbId ; \n \n + @ serializedname ( STRING1 ) \n + public Integer traktId ; \n + \n @ serializedname ( STRING2 ) \n public String firstAired ;", "msg_token": "Add trakt id to Shows model"} {"diff": " public class MemcachedCache implements Cache \n for ( Map . Entry < String , AtomicLong > entry : counters . entrySet ( ) ) { \n builder . put ( entry . getKey ( ) , entry . getValue ( ) . get ( ) ) ; \n } \n + for ( Map . Entry < String , AtomicLong > entry : meters . entrySet ( ) ) { \n + builder . put ( entry . getKey ( ) , entry . getValue ( ) . get ( ) ) ; \n + } \n return builder . build ( ) ; \n } \n } ;", "msg_token": "Add meter metrics for memcached"} {"diff": " public class MaterialDialog extends DialogBase implements \n } \n \n public Builder inputRange ( @ intrange ( from = NUMBER0 , to = Integer . MAX_VALUE ) int minLength , \n - @ intrange ( from = NUMBER1 , to = Integer . MAX_VALUE ) int maxLength ) { \n + @ intrange ( from = - NUMBER1 , to = Integer . MAX_VALUE ) int maxLength ) { \n return inputRange ( minLength , maxLength , NUMBER0 ) ; \n }", "msg_token": "Fixed annotations in inputRange int int"} {"diff": " public class KotlinCallHierarchyBrowser extends CallHierarchyBrowserBase { \n } \n \n @ override \n - protected PsiElement getOpenFileElementFromDescriptor ( @ notnull HierarchyNodeDescriptor descriptor ) { \n - return getTargetElement ( descriptor ) ; \n - } \n - \n - @ override \n protected boolean isApplicableElement ( @ notnull PsiElement element ) { \n return element instanceof JetNamedDeclaration || element instanceof PsiMethod ; \n }", "msg_token": "Remove unnecessary overriding method"} {"diff": " public abstract class DBCollection { \n \n _checkObject ( jo , false , false ) ; \n \n - SINGLE \n - \n Object id = jo . get ( STRING0 ) ; \n if ( DEBUG ) System . out . println ( STRING1 + id ) ;", "msg_token": "removed comment about old method"} {"diff": " public class TestSubscriber < T > extends Subscriber < T > { \n if ( err . size ( ) > NUMBER0 ) { \n throw new AssertionError ( STRING0 + err . size ( ) , new CompositeException ( err ) ) ; \n } else \n - if ( throwable . equals ( err . get ( NUMBER1 ) ) ) { \n + if ( ! throwable . equals ( err . get ( NUMBER1 ) ) ) { \n throw new AssertionError ( STRING1 + throwable + STRING2 + err . get ( NUMBER1 ) , err . get ( NUMBER1 ) ) ; \n } \n } \n public class TestSubscriberTest { \n inOrder . verifyNoMoreInteractions ( ) ; \n } \n \n + @ test \n + public void testAssertError ( ) { \n + RuntimeException e = new RuntimeException ( STRING3 ) ; \n + TestSubscriber subscriber = new TestSubscriber ( ) ; \n + Observable . error ( e ) . subscribe ( subscriber ) ; \n + subscriber . assertError ( e ) ; \n + } \n }", "msg_token": "Fix a wrong assertion in assertError"} {"diff": " public abstract class ProcessorType < Type extends ProcessorType > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Type processRef ( String ref ) { \n + ProcessorRef answer = new ProcessorRef ( ) ; \n + answer . setRef ( ref ) ; \n + addOutput ( answer ) ; \n + return ( Type ) this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add processRef String to the DSL"} {"diff": " class ImapFolderPusher extends ImapFolder { \n delayTime = MAX_DELAY_TIME ; \n } \n \n - if ( ++ idleFailureCount > IDLE_FAILURE_COUNT_LIMIT ) { \n + idleFailureCount ++ ; \n + if ( idleFailureCount > IDLE_FAILURE_COUNT_LIMIT ) { \n Log . e ( LOG_TAG , STRING0 + getLogId ( ) + STRING1 + idleFailureCount + \n STRING2 ) ; \n pushReceiver . pushError ( STRING3 + getName ( ) + STRING1 + idleFailureCount +", "msg_token": "Avoid incrementing field inside expression"} {"diff": " public class ForgeWorld extends AbstractWorld { \n IInventory inv = ( IInventory ) tile ; \n int size = inv . getSizeInventory ( ) ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n - inv . setInventorySlotContents ( i , null ) ; \n + inv . setInventorySlotContents ( i , ItemStack . EMPTY ) ; \n } \n return true ; \n }", "msg_token": "Forge Fix clearing inventories"} {"diff": " final class GridLayoutManager extends RecyclerView . LayoutManager { \n mFocusPositionOffset = NUMBER0 ; \n } \n saveContext ( recycler , state ) ; \n + \n SINGLE \n SINGLE \n SINGLE \n final class GridLayoutManager extends RecyclerView . LayoutManager { \n if ( DEBUG ) Log . v ( getTag ( ) , STRING0 + savedFocusPos + \n STRING1 + mFocusPosition ) ; \n } \n + if ( mFocusPosition == NO_POSITION ) { \n + mBaseGridView . clearFocus ( ) ; \n + } \n \n mWindowAlignment . mainAxis ( ) . invalidateScrollMin ( ) ; \n mWindowAlignment . mainAxis ( ) . invalidateScrollMax ( ) ; \n final class GridLayoutManager extends RecyclerView . LayoutManager { \n if ( mFocusSearchDisabled ) { \n return true ; \n } \n + if ( getPositionByView ( child ) == NO_POSITION ) { \n + SINGLE \n + SINGLE \n + return true ; \n + } \n if ( ! mInLayout && ! mInSelection ) { \n scrollToView ( child , true ) ; \n }", "msg_token": "DO NOT MERGE Fix crash when focus requested on a child that was removed"} {"diff": " \n class GetFoo { \n private int foo ; \n + @ java.lang.suppresswarnings ( STRING0 ) \n public int getFoo ( ) { \n - return foo ; \n + return this . foo ; \n } \n }", "msg_token": "With the new features some of the delombok based unit tests no longer work"} {"diff": " public class PsiVFSListener extends VirtualFileAdapter { \n public void propertyChanged ( final VirtualFilePropertyEvent event ) { \n final String propertyName = event . getPropertyName ( ) ; \n final VirtualFile vFile = event . getFile ( ) ; \n - if ( vFile . isDirectory ( ) ) return ; \n \n final FileViewProvider oldFileViewProvider = myFileManager . findCachedViewProvider ( vFile ) ; \n final PsiFile oldPsiFile ;", "msg_token": "don t ignore propertyChanged for directories"} {"diff": " public class XAccountManager extends XHook { \n synchronized ( mListener ) { \n OnAccountsUpdateListener listener = ( OnAccountsUpdateListener ) param . args [ NUMBER0 ] ; \n XOnAccountsUpdateListener xlistener = mListener . get ( listener ) ; \n - if ( xlistener != null ) { \n + if ( xlistener == null ) \n param . args [ NUMBER0 ] = xlistener ; \n + else \n XUtil . log ( this , Log . INFO , STRING0 + mListener . size ( ) ) ; \n - } else \n - XUtil . log ( this , Log . WARN , STRING1 + mListener . size ( ) ) ; \n } \n } \n }", "msg_token": "Remove obsolete logging"} {"diff": " public class AudioEffect { \n COMMENT \n public static boolean isEffectTypeAvailable ( UUID type ) { \n AudioEffect . Descriptor [ ] desc = AudioEffect . queryEffects ( ) ; \n + if ( desc == null ) { \n + return false ; \n + } \n + \n for ( int i = NUMBER0 ; i < desc . length ; i ++ ) { \n if ( desc [ i ] . type . equals ( type ) ) { \n return true ;", "msg_token": "Fix NPE for CTS"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CassandraDaemon \n } \n COMMENT \n logger . info ( STRING0 , Runtime . getRuntime ( ) . totalMemory ( ) , Runtime . getRuntime ( ) . maxMemory ( ) ) ; \n + for ( MemoryPoolMXBean pool : ManagementFactory . getMemoryPoolMXBeans ( ) ) \n + logger . info ( STRING1 , pool . getName ( ) , pool . getType ( ) , pool . getPeakUsage ( ) ) ; \n logger . info ( STRING2 , System . getProperty ( STRING3 ) ) ; \n CLibrary . tryMlockall ( ) ;", "msg_token": "Log heap pool sizes at startup"} {"diff": " public class PhoneStateListener { \n \n private final Handler mHandler ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public PhoneStateListener ( ) { \n this ( SubscriptionManager . DEFAULT_SUB_ID , Looper . myLooper ( ) ) ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public PhoneStateListener ( Looper looper ) { \n + this ( SubscriptionManager . DEFAULT_SUB_ID , looper ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public PhoneStateListener ( long subId ) { \n this ( subId , Looper . myLooper ( ) ) ; \n } \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public PhoneStateListener ( long subId , Looper looper ) { \n if ( DBG ) log ( STRING0 + subId + STRING1 + looper ) ; \n mSubId = subId ;", "msg_token": "Add PhoneStateListener Looper looper and some documentation"} {"diff": " public class ReaderAnim { \n animator . addListener ( new AnimatorListenerAdapter ( ) { \n @ override \n public void onAnimationStart ( Animator animation ) { \n - super . onAnimationStart ( animation ) ; \n target . setVisibility ( View . VISIBLE ) ; \n } \n } ) ; \n public class ReaderAnim { \n animator . addListener ( new AnimatorListenerAdapter ( ) { \n @ override \n public void onAnimationEnd ( Animator animation ) { \n - super . onAnimationStart ( animation ) ; \n target . setVisibility ( endVisibility ) ; \n } \n } ) ; \n public class ReaderAnim { \n set . addListener ( new AnimatorListenerAdapter ( ) { \n @ override \n public void onAnimationStart ( Animator animation ) { \n - super . onAnimationStart ( animation ) ; \n target . setVisibility ( View . VISIBLE ) ; \n } \n @ override \n public void onAnimationEnd ( Animator animation ) { \n - super . onAnimationEnd ( animation ) ; \n target . setVisibility ( View . GONE ) ; \n } \n } ) ;", "msg_token": "Cleaned up ReaderAnim unnecessary super calls"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n \n isReleased = true ; \n clearSettingsCache ( ) ; \n + mySizeAdjustmentStrategy . cancelAllRequests ( ) ; \n \n myFoldingModel . dispose ( ) ; \n mySoftWrapModel . release ( ) ; \n class EditorSizeAdjustmentStrategy { \n scheduleSizeUpdate ( editor ) ; \n return result ; \n } \n + \n + void cancelAllRequests ( ) { \n + myAlarm . cancelAllRequests ( ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "avoid spurious project leak detection in tests related to editor"} {"diff": " public class PhantomJSDriverService extends DriverService { \n COMMENT \n public static final String PHANTOMJS_GHOSTDRIVER_PATH_PROPERTY = STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final String PHANTOMJS_CLI_ARGS_CAPABILITY = STRING1 ; \n COMMENT \n COMMENT \n public class PhantomJSDriverService extends DriverService { \n SINGLE \n File ghostDriverfile = findGhostDriver ( desiredCapabilities , GHOSTDRIVER_DOC_LINK , GHOSTDRIVER_DOWNLOAD_LINK ) ; \n \n + SINGLE \n + String [ ] commandLineArguments = findCommandLineArguments ( desiredCapabilities ) ; \n + \n SINGLE \n return new Builder ( ) . usingPhantomJSExecutable ( phantomjsfile ) \n . usingGhostDriver ( ghostDriverfile ) \n . usingAnyFreePort ( ) \n . withProxy ( proxy ) \n - . usingCommandLineArguments ( findCommandLineArguments ( desiredCapabilities ) ) \n + . usingCommandLineArguments ( commandLineArguments ) \n . build ( ) ; \n } \n \n public class PhantomJSDriverService extends DriverService { \n } \n } \n \n + SINGLE \n + SINGLE \n if ( this . commandLineArguments != null ) { \n argsBuilder . add ( this . commandLineArguments ) ; \n }", "msg_token": "add code documentation and refactor for consistency"} {"diff": " public class MockEnvironment implements Environment { \n @ override \n public void registerOutputGate ( final OutputGate < ? extends Record > outputGate ) { \n \n - throw new IllegalStateException ( STRING0 ) ; \n + SINGLE \n } \n \n COMMENT \n public class MockEnvironment implements Environment { \n @ override \n public void registerInputGate ( final InputGate < ? extends Record > inputGate ) { \n \n - throw new IllegalStateException ( STRING1 ) ; \n + SINGLE \n } \n \n COMMENT", "msg_token": "Fixed problem in MockEnvironment"} {"diff": " public class FinalizerService \n if ( executor . isShutdown ( ) ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n - finalizerTask = executor . submit ( ( Runnable ) this : : processFinalizerQueue ) ; \n + finalizerTask = executor . submit ( this : : processFinalizerQueue ) ; \n } \n \n @ predestroy", "msg_token": "Remove redundant cast in FinalizerService"} {"diff": " public class DragSortListView extends ListView { \n \n divider . setBounds ( l , t , r , b ) ; \n divider . draw ( canvas ) ; \n - Log . d ( STRING0 , STRING1 ) ; \n } \n } \n }", "msg_token": "Remove debug logging in divider draw"} {"diff": " public class BroadcasterTest { \n \n broadcaster . broadcast ( STRING0 , set ) . get ( ) ; \n \n - assertEquals ( atmosphereHandler . value . get ( ) , new HashSet ( ) ) ; \n + assertEquals ( atmosphereHandler . value . get ( ) , set ) ; \n } \n \n public final static class AR implements AtmosphereHandler {", "msg_token": "Fix the test"} {"diff": " public abstract class SharedTreeModelBuilder < TM extends DTree . TreeModel > extends \n } finally { \n model . unlock ( self ( ) ) ; SINGLE \n cleanUp ( fr , bm_timer ) ; SINGLE \n - Log . info ( STRING0 + model ) ; \n - SINGLE \n model . start_training ( before ) ; \n model . stop_training ( ) ; \n }", "msg_token": "Remove debug printout"} {"diff": " public class NumberPicker extends LinearLayout { \n , STRING0 , \n SINGLE \n STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 \n - , STRING10 \n + , STRING10 , \n + SINGLE \n + STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 \n + , STRING20 , \n + SINGLE \n + STRING21 , STRING22 , STRING23 , STRING24 , STRING25 , STRING26 , STRING27 , STRING28 , STRING29 \n + , STRING30 , \n + SINGLE \n + STRING31 , STRING32 , STRING33 , STRING34 , STRING35 , STRING36 , STRING37 , STRING38 , STRING39 \n + , STRING40 \n } ; \n \n COMMENT", "msg_token": "Add additional languages to be accepted by the NumberPicker input filter"} {"diff": " public class PythonSdkDetailsDialog extends DialogWrapper { \n catch ( ConfigurationException ignored ) { \n } \n \n - final Sdk addedSdk = SdkConfigurationUtil . createAndAddSDK ( sdk . getName ( ) , PythonSdkType . getInstance ( ) ) ; \n + final Sdk addedSdk = SdkConfigurationUtil . setupSdk ( myProjectSdksModel . getSdks ( ) , sdk . getHomeDirectory ( ) , \n + PythonSdkType . getInstance ( ) , true , \n + null , null ) ; \n myProjectSdksModel . addSdk ( addedSdk ) ; \n myProjectSdksModel . removeSdk ( sdk ) ; \n refreshSdkList ( ) ;", "msg_token": "used setup sdk properly"} {"diff": " public enum Command { \n MCONTAINSKEY ( ) , MCONTAINSVALUE ( ) , ADDLISTENER ( ) , MEVENT ( ) , REMOVELISTENER ( ) , KEYSET ( ) , MENTRYSET ( ) , MGETENTRY ( ) , \n MLOCK ( ) , MISLOCKED ( ) , MUNLOCK ( ) , MTRYLOCK ( ) , MLOCKMAP ( ) , MUNLOCKMAP ( ) , MFORCEUNLOCK ( ) , MPUTALL ( ) , MPUTIFABSENT ( ) , \n MREMOVEIFSAME ( ) , MREPLACEIFNOTNULL ( ) , MREPLACEIFSAME ( ) , MTRYLOCKANDGET ( ) , MTRYREMOVE ( ) , MFLUSH ( ) , MEVICT ( ) , \n - MADDLISTENER ( ) , MREMOVELISTENER ( ) , MSIZE ( ) , MADDINDEX ( ) , \n + MADDLISTENER ( ) , MREMOVELISTENER ( ) , MSIZE ( ) , MADDINDEX ( ) , MISKEYLOCKED ( ) , \n \n QOFFER ( ) , QPUT ( ) , QPOLL ( ) , QTAKE ( ) , QSIZE ( ) , QPEEK ( ) , QREMOVE ( ) , QREMCAPACITY ( ) , QENTRIES ( ) , QADDLISTENER ( ) , \n QREMOVELISTENER ( ) , QEVENT ( ) ,", "msg_token": "Fixed command enum"} {"diff": " public class Gdx2DPixmap implements Disposable { \n \n private static native ByteBuffer load ( long [ ] nativeData , byte [ ] buffer , int offset , int len , int requestedFormat ) ; / * MANUAL \n const unsigned char * p_buffer = ( const unsigned char * ) env - > GetPrimitiveArrayCritical ( buffer , NUMBER0 ) ; \n - gdx2d_pixmap * pixmap = gdx2d_load ( p_buffer , len , requestedFormat ) ; \n + gdx2d_pixmap * pixmap = gdx2d_load ( p_buffer + offset , len , requestedFormat ) ; \n env - > ReleasePrimitiveArrayCritical ( buffer , ( char * ) p_buffer , NUMBER0 ) ; \n \n if ( pixmap == NUMBER0 )", "msg_token": "fixed Gdx2DPixmap load byte bytes int offset int len had a pretty sever bug"} {"diff": " public class MuzeiWallpaperService extends GLWallpaperService { \n mMainThreadHandler . postDelayed ( mDoubleTapTimeout , timeout ) ; \n } \n \n + private final GestureDetector . OnGestureListener mGestureListener = new GestureDetector . SimpleOnGestureListener ( ) { \n @ override \n public boolean onDown ( MotionEvent e ) { \n return true ;", "msg_token": "Add missing line"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Configuration java contains import org hamcrest Factory GitHub Issue"} {"diff": " public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark \n if ( myDirtyYPositions == null ) myDirtyYPositions = docRange ; \n repaint ( imageGraphics , componentBounds . width , myDirtyYPositions ) ; \n myDirtyYPositions = null ; \n + c . repaint ( ) ; SINGLE \n } \n finally { \n ( ( ApplicationImpl ) ApplicationManager . getApplication ( ) ) . editorPaintFinish ( ) ;", "msg_token": "reschedule repaint for editor scrollbar with the right clip"} {"diff": " public abstract class TransportMasterNodeAction < Request extends MasterNodeReques \n listener . onFailure ( blockException ) ; \n return ; \n } \n - logger . trace ( STRING0 , blockException ) ; \n + logger . trace ( STRING1 , blockException ) ; \n observer . waitForNextChange ( \n new ClusterStateObserver . Listener ( ) { \n @ override", "msg_token": "Fix logging statement in o e a s m TransportMasterNodeAction"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ResAttrDecoder { \n type , value , rawValue ) ; \n \n String decoded = null ; \n - if ( attrResId != NUMBER0 ) { \n - ResAttr attr = ( ResAttr ) getCurrentPackage ( ) . getResTable ( ) \n - . getResSpec ( attrResId ) . getDefaultResource ( ) . getValue ( ) ; \n - decoded = attr . convertToResXmlFormat ( resValue ) ; \n + if ( attrResId > NUMBER0 ) { \n + try { \n + ResAttr attr = ( ResAttr ) getCurrentPackage ( ) . getResTable ( ) \n + . getResSpec ( attrResId ) . getDefaultResource ( ) . getValue ( ) ; \n + \n + decoded = attr . convertToResXmlFormat ( resValue ) ; \n + } catch ( UndefinedResObject ex ) { \n + SINGLE \n + } \n } \n \n return decoded != null ? decoded : resValue . encodeAsResXmlAttr ( ) ;", "msg_token": "Catch attr lookup on internal attributes"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n pkg . applicationInfo . publicSourceDir = ps . resourcePathString ; \n pkg . applicationInfo . sourceDir = ps . codePathString ; \n pkg . applicationInfo . dataDir = \n - getDataPathForPackage ( ps . pkg . packageName , NUMBER0 ) . getPath ( ) ; \n + getDataPathForPackage ( packageName , NUMBER0 ) . getPath ( ) ; \n pkg . applicationInfo . nativeLibraryDir = ps . nativeLibraryPathString ; \n } \n SINGLE", "msg_token": "Fix an NPE in PackageManager when getting the AppInfo for an app"} {"diff": " public class CorbaORBService implements Service < ORB > { \n try { \n SecurityActions . setThreadContextClassLoader ( SecurityActions . getClassLoader ( this . getClass ( ) ) ) ; \n this . orb = ORB . init ( new String [ NUMBER0 ] , properties ) ; \n + SINGLE \n + ORB . init ( ) ; \n } finally { \n SINGLE \n SecurityActions . setThreadContextClassLoader ( loader ) ;", "msg_token": "Added a call to ORB init in CorbaORBService to initialize the ORBSingleton implementation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class Actor < Message , V > implements SuspendableCallable < V > , Joina \n return ref ( ) ; \n } \n \n + public ActorRef < Message > spawnThread ( ) { \n + new Thread ( Strand . toRunnable ( this ) , getName ( ) ) . start ( ) ; \n + return ref ( ) ; \n + } \n + \n public static < T extends Actor < Message , V > , Message , V > T newActor ( Class < T > clazz , Object . . . params ) { \n return newActor ( ActorSpec . of ( clazz , params ) ) ; \n }", "msg_token": "Added Actor spawnThread"} {"diff": " public class HashSessionManager extends AbstractSessionManager \n __log . debug ( error ) ; \n } \n } \n - else \n + else if ( _savePeriodMs == NUMBER0 ) \n { \n - SINGLE \n + SINGLE \n file . delete ( ) ; \n } \n }", "msg_token": "keep restored file if saving periodically"} {"diff": " public class CheckerTest { \n assertEquals ( counter , NUMBER0 ) ; SINGLE \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test \n public void testSetters ( ) throws Exception { \n SINGLE \n public class ConfigurationLoaderTest { \n @ test \n public void testLoadConfiguration_Deprecated ( ) throws CheckstyleException { \n try { \n + @ suppresswarnings ( STRING0 ) \n final DefaultConfiguration config = \n ( DefaultConfiguration ) ConfigurationLoader . loadConfiguration ( \n new FileInputStream ( \n import NAMESPACE ; \n public class FileContentsTest { \n \n @ test \n + @ suppresswarnings ( STRING0 ) \n public void testDeprecatedCtor ( ) { \n SINGLE \n FileContents o = new FileContents ( STRING1 , new String [ ] { STRING2 , STRING3 } ) ;", "msg_token": "Suppress warnings for UTs testing deprecated code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class ProblematicWhitespaceInspectionTest extends LightInspectionTestCase { \n \n public void testHtml ( ) { \n public class ProblematicWhitespaceInspectionTest extends LightInspectionTestCase \n final CommonCodeStyleSettings . IndentOptions options = settings . getIndentOptions ( JavaFileType . INSTANCE ) ; \n options . USE_TAB_CHARACTER = true ; \n options . SMART_TABS = true ; \n - doTest ( STRING1 + \n + doTest ( STRING2 + \n STRING3 + \n STRING4 + \n STRING5 ) ;", "msg_token": "suppress inspection for testdata"} {"diff": " public class GradleContentRoot extends AbstractGradleEntity { \n COMMENT \n COMMENT \n public void storePath ( @ notnull SourceType type , @ notnull String path ) throws IllegalArgumentException { \n - if ( ! FileUtil . isAncestor ( new File ( getRootPath ( ) ) , new File ( path ) , false ) ) { \n + if ( FileUtil . isAncestor ( new File ( getRootPath ( ) ) , new File ( path ) , false ) ) { \n + myData . get ( type ) . add ( GradleUtil . toCanonicalPath ( path ) ) ; \n + return ; \n + } \n + if ( type != SourceType . EXCLUDED ) { SINGLE \n + SINGLE \n throw new IllegalArgumentException ( String . format ( \n STRING0 , \n type , getRootPath ( ) , new File ( path ) . getAbsolutePath ( ) \n ) ) ; \n } \n - myData . get ( type ) . add ( GradleUtil . toCanonicalPath ( path ) ) ; \n } \n \n @ notnull", "msg_token": "Can t import a project which uses external build dir"} {"diff": " public class DeterminePartitionsJob implements Jobby \n log . info ( STRING0 , HadoopDruidIndexerConfig . jsonMapper . writeValueAsString ( shardSpec ) ) ; \n } \n \n - System . out . println ( HadoopDruidIndexerConfig . jsonMapper . writeValueAsString ( chosenShardSpecs ) ) ; \n - \n try { \n HadoopDruidIndexerConfig . jsonMapper \n . writerWithType (", "msg_token": "remove extra println"} {"diff": " public class DownloadFileHelper { \n while ( ( entry = zipIn . getNextEntry ( ) ) != null ) { \n int size = ( int ) entry . getSize ( ) ; \n progress . startTask ( ctx . getString ( R . string . unzipping_file ) , size ) ; \n - if ( entry . isDirectory ( ) || entry . getName ( ) . endsWith ( IndexConstants . GEN_LOG_INDEX_EXT ) ) { \n + if ( entry . isDirectory ( ) || entry . getName ( ) . endsWith ( IndexConstants . GEN_LOG_EXT ) ) { \n continue ; \n } \n File fs ;", "msg_token": "Fix modified date"} {"diff": " public class Notification implements Parcelable \n sb . append ( this . vibrate [ i ] ) ; \n sb . append ( STRING0 ) ; \n } \n - sb . append ( this . vibrate [ N ] ) ; \n + if ( N != - NUMBER0 ) { \n + sb . append ( this . vibrate [ N ] ) ; \n + } \n sb . append ( STRING1 ) ; \n } else if ( ( this . defaults & DEFAULT_VIBRATE ) != NUMBER1 ) { \n sb . append ( STRING2 ) ;", "msg_token": "Prevent IndexOutOfBoundsException on toString if vibrate array is empty non null"} {"diff": " public class ViewUtils { \n } \n } ; \n \n - SINGLE \n - a . setDuration ( ( int ) ( ( newRowsCount > oldRowsCount ? targetHeight : initialHeight / Screen . dp ( NUMBER0 ) ) ) ) ; \n + a . setDuration ( ( int ) ( newRowsCount > oldRowsCount ? targetHeight : initialHeight / Screen . dp ( NUMBER0 ) ) * NUMBER1 ) ; \n a . setInterpolator ( MaterialInterpolator . getInstance ( ) ) ; \n a . setFillAfter ( true ) ; \n v . startAnimation ( a ) ;", "msg_token": "mentions fix animation targetHeight"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class VirtualDomParentStrategy implements DomParentStrategy { \n private final DomInvocationHandler myParentHandler ; \n private long myModCount ; \n - private final PsiModificationTracker myModificationTracker ; \n + private final PsiFile myModificationTracker ; \n \n public VirtualDomParentStrategy ( @ notnull final DomInvocationHandler parentHandler ) { \n myParentHandler = parentHandler ; \n - myModificationTracker = PsiManager . getInstance ( myParentHandler . getManager ( ) . getProject ( ) ) . getModificationTracker ( ) ; \n + myModificationTracker = parentHandler . getFile ( ) ; \n myModCount = getModCount ( ) ; \n } \n \n private long getModCount ( ) { \n - return myModificationTracker . getOutOfCodeBlockModificationCount ( ) ; \n + return myModificationTracker . getModificationStamp ( ) ; \n } \n \n @ notnull", "msg_token": "Fix Dom update"} {"diff": " public final class Response { \n } \n m . appendTail ( sb ) ; \n if ( hasNonPrintable ) { \n - LOG . warn ( STRING0 ) ; \n + LOG . warn ( STRING1 + url ) ; \n } \n return sb . toString ( ) ; \n }", "msg_token": "Log the unsanitized redirect URL to facilitate abuse investigations"} {"diff": " public class ArtifactBuildTargetScopeProvider extends BuildTargetScopeProvider { \n if ( ! artifacts . isEmpty ( ) ) { \n TargetTypeBuildScope . Builder builder = TargetTypeBuildScope . newBuilder ( ) \n . setTypeId ( ArtifactBuildTargetType . INSTANCE . getTypeId ( ) ) \n - . setForceBuild ( ArtifactCompileScope . isArtifactRebuildForced ( baseScope ) ) ; \n + . setForceBuild ( forceBuild || ArtifactCompileScope . isArtifactRebuildForced ( baseScope ) ) ; \n for ( Artifact artifact : artifacts ) { \n builder . addTargetId ( artifact . getName ( ) ) ; \n }", "msg_token": "rebuild artifact with build on make option on project rebuild"} {"diff": " final class HttpReadListener implements ChannelListener < StreamSourceChannel > , Ex \n responseChannel . resumeWrites ( ) ; \n } \n } catch ( IOException e ) { \n - UndertowLogger . REQUEST_IO_LOGGER . ioException ( e ) ; \n + UndertowLogger . REQUEST_IO_LOGGER . debug ( STRING0 , e ) ; \n SINGLE \n IoUtils . safeClose ( channel ) ; \n return ;", "msg_token": "Log parser error at debug"} {"diff": " public class GetImportingConfigurationCommand extends Command { \n throws ServletException , IOException { \n \n Writer w = response . getWriter ( ) ; \n + response . setContentType ( STRING0 ) ; \n JSONWriter writer = new JSONWriter ( w ) ; \n try { \n writer . object ( ) ;", "msg_token": "Set ContentType to application json"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public abstract class FindUsagesHandler { \n TextOccurrencesUtil . processTextOccurences ( element , stringToSearch , searchScope , processor , factory ) ; \n } \n \n + @ nullable \n protected String getStringToSearch ( final PsiElement element ) { \n if ( element instanceof PsiNamedElement ) { \n return ( ( PsiNamedElement ) element ) . getName ( ) ;", "msg_token": "mvc view rename support"} {"diff": " public class NumberUtils { \n \n public static short decodeShort ( byte lsb , byte msb ) { \n return ( short ) \n - ( lsb | \n + ( ( lsb & NUMBER0 ) | \n ( msb < < NUMBER1 ) \n ) ; \n } \n public class NumberUtils { \n } \n \n public static int decodeInt ( byte lsb , byte mlsb , byte mmsb , byte msb ) { \n - return lsb | \n - ( mlsb < < NUMBER1 ) | \n - ( mmsb < < NUMBER2 ) | \n + return ( lsb & NUMBER0 ) | \n + ( ( mlsb & NUMBER0 ) < < NUMBER1 ) | \n + ( ( mmsb & NUMBER0 ) < < NUMBER2 ) | \n ( msb < < NUMBER3 ) ; \n }", "msg_token": "Fixed issue decoding signed ints and shorts"} {"diff": " public class PyQualifiedReference extends PyReferenceImpl { \n @ notnull \n @ override \n public Object [ ] getVariants ( ) { \n - PyExpression qualifier = CompletionUtil . getOriginalOrSelf ( myElement . getQualifier ( ) ) ; \n - assert qualifier != null ; \n + PyExpression qualifier = myElement . getQualifier ( ) ; \n + if ( qualifier != null ) { \n + qualifier = CompletionUtil . getOriginalOrSelf ( qualifier ) ; \n + } \n + if ( qualifier == null ) { \n + return EMPTY_ARRAY ; \n + } \n final PyQualifiedExpression element = CompletionUtil . getOriginalOrSelf ( myElement ) ; \n \n PyType qualifierType = TypeEvalContext . slow ( ) . getType ( qualifier ) ;", "msg_token": "Fixed NPE in PyQualifiedReference getVariants"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ConnectionWizard extends Wizard implements INewWizard { \n session . close ( ) ; \n } \n } \n - try { \n - monitor . subTask ( CoreMessages . dialog_connection_wizard_start_connection_monitor_close ) ; \n - container . disconnect ( monitor , false ) ; \n - } catch ( DBException e ) { \n - SINGLE \n - log . error ( e ) ; \n - } finally { \n - monitor . done ( ) ; \n - } \n + new DisconnectJob ( container ) . schedule ( ) ; \n monitor . subTask ( CoreMessages . dialog_connection_wizard_start_connection_monitor_success ) ; \n } catch ( DBException ex ) { \n connectError = ex ; \n } \n + monitor . done ( ) ; \n return Status . OK_STATUS ; \n } \n }", "msg_token": "Connection test cancel implemented"} {"diff": " abstract class OptimizingSearchHelperBase implements OptimizingSearchHelper { \n javaLexer = LanguageParserDefinitions . INSTANCE . forLanguage ( JavaLanguage . INSTANCE ) . createLexer ( context . getProject ( ) ) ; \n } \n javaLexer . start ( refname ) ; \n - isJavaReservedWord = ElementType . KEYWORD_BIT_SET . contains ( javaLexer . getTokenType ( ) ) ; \n + isJavaReservedWord = ElementType . KEYWORD_BIT_SET . contains ( javaLexer . getTokenType ( ) ) || \n + ElementType . LITERAL_BIT_SET . contains ( javaLexer . getTokenType ( ) ) ; \n } \n \n if ( isJavaReservedWord ) { \n abstract class OptimizingSearchHelperBase implements OptimizingSearchHelper { \n public boolean isScannedSomething ( ) { \n return scanned . size ( ) > NUMBER0 || scannedComments . size ( ) > NUMBER0 || scannedLiterals . size ( ) > NUMBER0 ; \n } \n - \n }", "msg_token": "Fix literal keywords highlighting cleanup"} {"diff": " public class WifiEnterpriseConfig implements Parcelable { \n for ( String key : source . mFields . keySet ( ) ) { \n mFields . put ( key , source . mFields . get ( key ) ) ; \n } \n + mCaCerts = source . mCaCerts ; \n + mClientPrivateKey = source . mClientPrivateKey ; \n + mClientCertificate = source . mClientCertificate ; \n mEapMethod = source . mEapMethod ; \n mPhase2Method = source . mPhase2Method ; \n }", "msg_token": "Fix copy constructor"} {"diff": " public interface XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n @ deprecated \n public void sendPacket ( Stanza packet ) throws NotConnectedException , InterruptedException ; \n \n public interface XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n @ deprecated \n public void addPacketListener ( StanzaListener packetListener , StanzaFilter packetFilter ) ; \n \n public interface XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n @ deprecated \n public boolean removePacketListener ( StanzaListener packetListener ) ;", "msg_token": "Add TODOs about when to remove deprecated methods"} {"diff": " public class WifiService extends IWifiManager . Stub { \n String value = field . value ( ) ; \n if ( value != null ) { \n if ( field != config . eap ) { \n - value = convertToQuotedString ( value ) ; \n + value = ( value . length ( ) == NUMBER0 ) ? STRING0 : convertToQuotedString ( value ) ; \n } \n if ( ! WifiNative . setNetworkVariableCommand ( \n netId ,", "msg_token": "allow EAP variables to be unset using empty strings"} {"diff": " public class Mongo { \n @ deprecated \n public static final int MINOR_VERSION = NUMBER0 ; \n \n - < < < < < < < HEAD \n private static final String FULL_VERSION = STRING0 ; \n - == == == = \n - private static final String FULL_VERSION = STRING1 ; \n - > > > > > > > JAVA - NUMBER1 \n \n static int cleanerIntervalMS ; \n static {", "msg_token": "fixed branch merge issue"} {"diff": " public class SnapshotDaoTest extends AbstractDaoTestCase { \n session . commit ( ) ; \n \n assertThat ( dto . getId ( ) ) . isNotNull ( ) ; \n - checkTables ( STRING0 , STRING1 ) ; \n + checkTables ( STRING0 , new String [ ] { STRING2 } , STRING1 ) ; \n } \n \n @ test", "msg_token": "Fix query on MySQL"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PullToRefreshHeaderTransformer extends AbsDefaultHeaderTransformer \n } \n } \n \n + @ targetapi ( Build . VERSION_CODES . HONEYCOMB ) \n private boolean showHeaderViewICSAndPostICS ( ) { \n boolean changeVis = mHeaderView . getVisibility ( ) != View . VISIBLE ; \n mContentLayout . setVisibility ( View . VISIBLE ) ;", "msg_token": "add an annotation to prevent a lint error"} {"diff": " public class StatementResource \n exchangeClient . close ( ) ; \n \n SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n columns = ImmutableList . of ( new Column ( STRING0 , STRING1 ) ) ; \n data = ImmutableSet . < List < Object > > of ( ImmutableList . < Object > of ( STRING2 ) ) ; \n }", "msg_token": "add code review feedback"} {"diff": " public class \n \n case OVERDUE_CHANGE : \n OverdueChangeInternalEvent realEventOC = ( OverdueChangeInternalEvent ) event ; \n - SINGLE \n - objectType = ObjectType . BUNDLE ; \n + objectType = ObjectType . ACCOUNT ; \n objectId = realEventOC . getOverdueObjectId ( ) ; \n eventBusType = ExtBusEventType . OVERDUE_CHANGE ; \n break ;", "msg_token": "Fix bug in external event for overdue"} {"diff": " public class CarrierConfigManager { \n COMMENT \n public static final String KEY_EDITABLE_WFC_MODE_BOOL = STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String \n + KEY_CONFIG_WIFI_DISABLE_IN_ECBM = STRING1 ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class CarrierConfigManager { \n sDefaults . putStringArray ( KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY , null ) ; \n sDefaults . putInt ( KEY_WFC_SPN_FORMAT_IDX_INT , NUMBER0 ) ; \n sDefaults . putInt ( KEY_WFC_DATA_SPN_FORMAT_IDX_INT , NUMBER0 ) ; \n + sDefaults . putBoolean ( KEY_CONFIG_WIFI_DISABLE_IN_ECBM , false ) ; \n \n SINGLE \n sDefaults . putBoolean ( KEY_MMS_ALIAS_ENABLED_BOOL , false ) ;", "msg_token": "Introduce a configuration parameter to disable WiFi in ECBM"} {"diff": " public class IndexLookupTests extends ElasticsearchIntegrationTest { \n STRING0 + e . getDetailedMessage ( ) , \n e . getDetailedMessage ( ) \n . indexOf ( \n - STRING1 ) , \n + STRING2 ) , \n Matchers . greaterThan ( - NUMBER0 ) ) ; \n }", "msg_token": "TEST Fix IndexLookupTests testCallWithDifferentFlagsFails"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultAnnotationProcessor implements AnnotationProcessor { \n } \n \n framework . addAtmosphereHandler ( a . path ( ) , handler , l ) ; \n - framework . setBroadcasterCacheClassName ( EventCacheBroadcasterCache . class . getName ( ) ) ; \n + framework . setBroadcasterCacheClassName ( UUIDBroadcasterCache . class . getName ( ) ) ; \n } catch ( Throwable e ) { \n logger . warn ( STRING0 , e ) ; \n }", "msg_token": "Fix merge issue"} {"diff": " public class MaterialDialog { \n mAlertDialog . show ( ) ; \n \n mAlertDialog . getWindow ( ) . clearFlags ( WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE | WindowManager . LayoutParams . FLAG_ALT_FOCUSABLE_IM ) ; \n - mAlertDialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_VISIBLE ) ; \n + mAlertDialog . getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_MASK_STATE ) ; \n \n mAlertDialogWindow = mAlertDialog . getWindow ( ) ; \n View contv = LayoutInflater . from ( mContext ) . inflate ( R . layout . layout_materialdialog , null ) ;", "msg_token": "fixed the problem of soft keyboard repeat display"} {"diff": " class RecentTasks extends ArrayList < TaskRecord > { \n final boolean sameActivity = task . realActivity != null \n && tr . realActivity != null \n && task . realActivity . equals ( tr . realActivity ) ; \n - if ( ! sameActivity ) { \n + SINGLE \n + SINGLE \n + if ( ! sameActivity || ! sameIntent ) { \n continue ; \n - } \n - if ( maxRecents > NUMBER0 && ! doTrim ) { \n + SINGLE \n + } else if ( maxRecents > NUMBER0 && ! doTrim ) { \n -- maxRecents ; \n continue ; \n }", "msg_token": "Prevent early recent trimming of distinct documents"} {"diff": " public class SignInActivity extends FragmentActivity { \n setContentView ( R . layout . welcome_activity ) ; \n \n mSignInFragment = getSignInFragment ( ) ; \n - FragmentManager fragmentManager = getSupportFragmentManager ( ) ; \n - FragmentTransaction fragmentTransaction = fragmentManager . beginTransaction ( ) ; \n + FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ; \n fragmentTransaction . replace ( R . id . fragment_container , mSignInFragment ) ; \n - fragmentTransaction . addToBackStack ( STRING0 ) ; \n + fragmentTransaction . addToBackStack ( null ) ; \n fragmentTransaction . commit ( ) ; \n \n actionMode ( getIntent ( ) . getExtras ( ) ) ;", "msg_token": "Cleaning up fragment addition"} {"diff": " public class OpenJDKRule implements MethodRule { \n \n public OpenJDKRule ( ) { \n System . out . println ( System . getProperty ( JAVA_VM_NAME_PROPERTY ) ) ; \n - System . out . println ( new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . isFile ( ) ) ; \n + System . out . println ( new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . canRead ( ) ) ; \n openJDK = System . getProperty ( JAVA_VM_NAME_PROPERTY ) . contains ( HOT_SPOT ) \n && new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING0 , STRING1 ) + TOOLS_JAR_LOCATION ) . isFile ( ) ; \n }", "msg_token": "Refined OpenJDK specific test"} {"diff": " public class IndicesStats extends BroadcastOperationResponse implements ToXConte \n builder . endObject ( ) ; \n \n builder . startObject ( STRING0 ) ; \n - primaries ( ) . toXContent ( builder , params ) ; \n + total ( ) . toXContent ( builder , params ) ; \n builder . endObject ( ) ; \n \n builder . startObject ( Fields . INDICES ) ;", "msg_token": "Fix reporting of total indexing stats"} {"diff": " public class Process { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Process { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class ZygoteConnection { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class ZygoteConnection { \n if ( ! ( peerUid == NUMBER0 || peerUid == Process . SYSTEM_UID ) ) { \n SINGLE \n throw new ZygoteSecurityException ( \n - STRING0 ) ; \n + STRING1 ) ; \n } \n \n boolean allowed = SELinux . checkSELinuxAccess ( peerSecurityContext , \n class ZygoteConnection { \n STRING2 ) ; \n if ( ! allowed ) { \n throw new ZygoteSecurityException ( \n - STRING3 ) ; \n + STRING4 ) ; \n } \n \n return ;", "msg_token": "Replace SEAndroid with SELinux"} {"diff": " public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class TextEnterer { \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed mention of NoteField in enterText javadoc because there is no NoteField class in Android"} {"diff": " public abstract class ImmutableBiMap < K , V > extends ImmutableMap < K , V > \n } \n } \n \n - private static final Entry < ? , ? > [ ] EMPTY_ENTRY_ARRAY = new Entry < ? , ? > [ NUMBER0 ] ; \n - \n ImmutableBiMap ( ) { } \n \n COMMENT \n public abstract class ImmutableSortedMap < K , V > \n SINGLE \n SINGLE \n @ suppresswarnings ( STRING0 ) \n - Entry < K , V > [ ] entryArray = ( Entry [ ] ) entries . toArray ( ImmutableMap . EMPTY_ENTRY_ARRAY ) ; \n + Entry < K , V > [ ] entryArray = ( Entry [ ] ) entries . toArray ( EMPTY_ENTRY_ARRAY ) ; \n return fromEntries ( comparator , sameComparator , entryArray , entryArray . length ) ; \n }", "msg_token": "Reuse ImmutableMap EMPTY_ENTRY_ARRAY in other ImmutableMap types"} {"diff": " public class DBMaker < DBMakerT extends DBMaker < DBMakerT > > { \n return getThis ( ) ; \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 - 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 \n \n COMMENT", "msg_token": "Remove unused comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n @ storabletype ( idFieldName = User . COLUMN_ID , tableName = User . TABLE_NAME ) \n public class User implements BambooStorableType { \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Moved StorableType to bamboostorage annotation package"} {"diff": " public abstract class DocDecompressor { \n loop: \n while ( ( sourceIndex < compressedSize ) && ( targetIndex < maxUncompressedSize ) ) { \n token = sourceBuffer [ sourceIndex ++ ] ; \n - switch ( TOKEN_CODE [ token ] ) { \n + switch ( TOKEN_CODE [ token & NUMBER0 ] ) { \n case NUMBER1 : \n targetBuffer [ targetIndex ++ ] = token ; \n break ;", "msg_token": "fixed byte int convertion"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Application { \n . roles ( STRING0 ) ; \n SINGLE \n } \n + \n + SINGLE \n + @ bean \n + @ lazy \n + @ scope ( proxyMode = ScopedProxyMode . TARGET_CLASS ) \n + public AuthenticationManager authenticationManager ( AuthenticationManagerBuilder auth ) { \n + return auth . getOrBuild ( ) ; \n + } \n \n }", "msg_token": "Switch off Boot default authentication manager"} {"diff": " import NAMESPACE ; \n \n @ path ( STRING0 ) \n public class ApiListingResource { \n - static boolean initialized = false ; \n + boolean initialized = false ; \n Logger LOGGER = LoggerFactory . getLogger ( ApiListingResource . class ) ; \n @ context \n ServletContext context ;", "msg_token": "Removed static modifier from initialized field in ApiListingResource"} {"diff": " public class SvnVcs extends AbstractVcs < CommittedChangeList > { \n } \n \n static { \n - SVNJNAUtil . setJNAEnabled ( true ) ; \n - SvnHttpAuthMethodsDefaultChecker . check ( ) ; \n - \n SINGLE \n final JavaSVNDebugLogger logger = new JavaSVNDebugLogger ( Boolean . getBoolean ( LOG_PARAMETER_NAME ) , LOG ) ; \n SVNDebugLog . setDefaultLog ( logger ) ; \n + \n + SVNJNAUtil . setJNAEnabled ( true ) ; \n + SvnHttpAuthMethodsDefaultChecker . check ( ) ; \n + \n SVNAdminAreaFactory . setSelector ( new SvnFormatSelector ( ) ) ; \n \n DAVRepositoryFactory . setup ( ) ;", "msg_token": "prepare for JNA tracing"} {"diff": " public class ThriftToPig < M extends TBase < ? , ? > > { \n + STRING0 ) ; \n } \n } else if ( fs . type == DataType . MAP ) { \n - sb . append ( DataType . findTypeName ( fs . type ) + STRING1 ) ; \n + sb . append ( DataType . findTypeName ( fs . type ) + STRING2 ) ; \n + if ( fs . schema != null ) \n + stringifySchema ( sb , fs . schema , fs . type , prefix ) ; \n + sb . append ( STRING3 ) ; \n } else { \n sb . append ( DataType . findTypeName ( fs . type ) ) ; \n }", "msg_token": "update stringifySchema to print types for maps"} {"diff": " public class DenseVector extends AbstractVector { \n \n @ override \n public double getLengthSquared ( ) { \n - if ( lengthSquared < FLOAT0 ) { \n + if ( lengthSquared >= FLOAT0 ) { \n return lengthSquared ; \n } \n \n public class SparseVector extends AbstractVector { \n \n @ override \n public double getLengthSquared ( ) { \n - if ( lengthSquared < FLOAT0 ) { \n + if ( lengthSquared >= FLOAT0 ) { \n return lengthSquared ; \n } \n double result = FLOAT0 ; \n public class TestDenseVector extends TestCase { \n \n public void testAsFormatString ( ) { \n String formatString = test . asFormatString ( ) ; \n - assertEquals ( \n - STRING0 , \n - STRING1 , \n - formatString ) ; \n + Vector vec = AbstractVector . decodeVector ( formatString ) ; \n + assertEquals ( vec , test ) ; \n } \n \n public void testCardinality ( ) {", "msg_token": "fix lengthSquared calcs"} {"diff": " public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa \n COMMENT \n public BufferedRandomAccessFile ( String name , String mode ) throws IOException \n { \n - this ( new File ( name ) , mode , NUMBER0 ) ; \n + this ( new File ( name ) , mode , DEFAULT_BUFFER_SIZE ) ; \n } \n \n public BufferedRandomAccessFile ( String name , String mode , int bufferSize ) throws IOException \n public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa \n COMMENT \n public BufferedRandomAccessFile ( File file , String mode ) throws IOException \n { \n - this ( file , mode , NUMBER0 ) ; \n + this ( file , mode , DEFAULT_BUFFER_SIZE ) ; \n } \n \n public BufferedRandomAccessFile ( File file , String mode , int bufferSize ) throws IOException \n public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa \n filePath = file . getAbsolutePath ( ) ; \n \n SINGLE \n + if ( bufferSize <= NUMBER0 ) \n + throw new IllegalArgumentException ( STRING0 ) ; \n buffer = ByteBuffer . allocate ( bufferSize ) ; \n \n SINGLE", "msg_token": "avoid non positive BufferSize"} {"diff": " public final class LeaderSelectorClient implements Closeable , LeaderSelectorList \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public String getName ( ) { \n return mName ; \n } \n public final class LeaderSelectorClient implements Closeable , LeaderSelectorList \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class LeaderSelectorClient implements Closeable , LeaderSelectorList \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void start ( ) throws IOException { \n mLeaderSelector . start ( ) ;", "msg_token": "addressed aaudiber s comments"} {"diff": " public class TransportSQLAction extends TransportAction < SQLRequest , SQLResponse > \n return new DuplicateKeyException ( \n STRING0 , e ) ; \n } else if ( e instanceof RemoteTransportException && e . getCause ( ) instanceof IndexAlreadyExistsException ) { \n - return new TableAlreadyExistsException ( \n - STRING1 , e . getCause ( ) ) ; \n + return new TableAlreadyExistsException ( e . getCause ( ) ) ; \n } else if ( e instanceof ReduceSearchPhaseException && e . getCause ( ) instanceof VersionConflictException ) { \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n public class TableAlreadyExistsException extends CrateException { \n \n - public TableAlreadyExistsException ( String msg , Throwable e ) { \n - super ( msg , e ) ; \n + public TableAlreadyExistsException ( Throwable e ) { \n + super ( STRING1 , e ) ; \n } \n \n @ override", "msg_token": "fixup exception should define message"} {"diff": " public abstract class DragSortCursorAdapter extends CursorAdapter implements Dra \n resetMappings ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void reset ( ) { \n + resetMappings ( ) ; \n + notifyDataSetChanged ( ) ; \n + } \n + \n private void resetMappings ( ) { \n mListMapping . clear ( ) ; \n mRemovedCursorPositions . clear ( ) ;", "msg_token": "Add method to reset cursor mapping"} {"diff": " public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > { \n if ( log . isDebugEnabled ( ) ) { \n log . debug ( STRING0 + this + STRING1 + nRead + STRING2 ) ; \n } \n - return nRead ; \n + return ( nRead > len ) ? len : nRead ; \n } \n }", "msg_token": "Fix incorrect return value although it doesn t seem to have any real consequences"} {"diff": " public class TrackableSession { \n COMMENT \n COMMENT \n public void track ( TrackableResource < ? extends Trackable > trackableResource ) { \n - logger . info ( STRING0 , trackableResource . trackingID ( ) ) ; \n + logger . debug ( STRING0 , trackableResource . trackingID ( ) ) ; \n factoryCache . put ( trackableResource . trackingID ( ) , trackableResource ) ; \n CountDownLatch latch = pendingLock . remove ( trackableResource . trackingID ( ) ) ; \n if ( latch != null ) { \n public class TrackableSession { \n COMMENT \n COMMENT \n public TrackableResource < ? extends Trackable > lookupAndWait ( String trackingID ) { \n - logger . info ( STRING1 , trackingID ) ; \n + logger . debug ( STRING1 , trackingID ) ; \n \n TrackableResource < ? extends Trackable > r = factoryCache . get ( trackingID ) ; \n if ( r == null ) {", "msg_token": "Turn up the log level"} {"diff": " public class Contacts { \n ContactsContract . Intents . EXTRA_CREATE_DESCRIPTION ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String EXTRA_TARGET_RECT = ContactsContract . Intents . EXTRA_TARGET_RECT ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final class UI { \n public final class ContactsContract { \n STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String EXTRA_TARGET_RECT = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final class UI {", "msg_token": "Added an extra for sharing a target rectangle extra"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n Add other win32 interface mappings as needed . \n COMMENT", "msg_token": "add wince basic mapping to platform jar"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - public interface TokenStream extends ObjectStream { \n + public interface TokenStream extends ObjectStream < Token > { \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public Token LT ( int k ) ; \n \n COMMENT \n public interface TokenStream extends ObjectStream { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public Token get ( int i ) ; \n \n COMMENT", "msg_token": "TokenStream extends ObjectStream Token specified Token as the type parameter"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public abstract class Closure extends GroovyObjectSupport implements Cloneable { \n + public abstract class Closure extends GroovyObjectSupport implements Cloneable , Runnable { \n \n private static final Object noParameters [ ] = new Object [ ] { null } ; \n \n public abstract class Closure extends GroovyObjectSupport implements Cloneable { \n return new WritableClosure ( this ) ; \n } \n \n + public void run ( ) { \n + call ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "made closures implement Runnable"} {"diff": " public class VolleyStreamFetcher implements ResourceFetcher < InputStream > { \n VolleyRequestFuture < InputStream > localFuture = requestFuture ; \n if ( localFuture != null ) { \n localFuture . cancel ( true ) ; \n - requestFuture = null ; \n } \n }", "msg_token": "Fix NPE in volley stream fetcher"} {"diff": " public class HdfsFetcher implements FileFetcher { \n \n public static final String FS_DEFAULT_NAME = STRING0 ; \n \n + private static Boolean allowFetchOfFiles = false ; \n + \n COMMENT \n public HdfsFetcher ( VoldemortConfig config ) { \n this ( config , null ) ; \n public class HdfsFetcher implements FileFetcher { \n return true ; \n } \n } \n - } \n + } else if ( allowFetchOfFiles ) { \n + Utils . mkdirs ( dest ) ; \n + File copyLocation = new File ( dest , source . getName ( ) ) ; \n + copyFileWithCheckSum ( fs , source , copyLocation , stats , CheckSumType . NONE ) ; \n + return true ; \n + } \n logger . error ( STRING1 + source . toString ( ) + STRING2 ) ; \n return false ; \n \n public class HdfsFetcher implements FileFetcher { \n hadoopPath = args [ NUMBER0 ] ; \n } \n \n + SINGLE \n + allowFetchOfFiles = true ; \n + \n long maxBytesPerSec = NUMBER1 * NUMBER1 * NUMBER1 ; \n Path p = new Path ( url ) ;", "msg_token": "Allow HdfsFetcher to fetch individual files"} {"diff": " public class TabBitextReader implements BitextReader { \n return null ; \n } \n final String [ ] fields = line . split ( STRING0 ) ; \n + if ( fields . length < NUMBER0 ) { \n + throw new RuntimeException ( STRING1 + line ) ; \n + } \n return new StringPair ( fields [ NUMBER1 ] , fields [ NUMBER2 ] ) ; \n }", "msg_token": "improve exception on invalid input"} {"diff": " public class AppCompiler { \n COMMENT \n COMMENT \n private static final String [ ] ROOT_CLASS_PATTERNS = { \n - STRING0 , \n - STRING1 \n + STRING0 \n } ; \n COMMENT \n COMMENT \n public class AppCompiler { \n COMMENT \n COMMENT \n private static final String [ ] ROOT_CLASSES = { \n + STRING2 , \n STRING3 , \n STRING4 , \n STRING5 ,", "msg_token": "Remove org robovm rt"} {"diff": " public class ExtensionManager { \n COMMENT \n public void setDefaultEnabledExtensions ( ) { \n List < ComponentName > defaultExtensions = new ArrayList < > ( ) ; \n - defaultExtensions . add ( new ComponentName ( mContext , AmazonExtension . class ) ) ; \n + defaultExtensions . add ( new ComponentName ( mContext , YouTubeExtension . class ) ) ; \n setEnabledExtensions ( defaultExtensions ) ; \n }", "msg_token": "Make YouTube extension the default enabled one"} {"diff": " public class JsonObject extends JsonElement { \n return map . remove ( fieldName ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean containsField ( String fieldName ) { \n + return map . containsKey ( fieldName ) ; \n + } \n + \n public int size ( ) { \n return map . size ( ) ; \n } \n public class JavaJsonTest extends TestBase { \n fail ( e . getMessage ( ) ) ; \n } \n } \n + \n + @ test \n + public void testContainsField ( ) { \n + JsonObject obj = new JsonObject ( ) . putString ( STRING0 , STRING1 ) ; \n + assertTrue ( obj . containsField ( STRING0 ) ) ; \n + assertFalse ( obj . containsField ( STRING2 ) ) ; \n + } \n }", "msg_token": "Added containsField method to JsonObject"} {"diff": " public class GridSearchSchema < G extends Grid < MP > , \n search_criteria = new HyperSpaceSearchCriteriaV99 . CartesianSearchCriteriaV99 ( ) ; \n } else if ( STRING0 . equals ( strategy ) ) { \n search_criteria = new HyperSpaceSearchCriteriaV99 . RandomDiscreteValueSearchCriteriaV99 ( ) ; \n + if ( p . containsKey ( STRING1 ) && Integer . parseInt ( ( String ) p . get ( STRING1 ) ) < NUMBER0 ) { \n + throw new H2OIllegalArgumentException ( STRING2 , strategy ) ; \n + } \n + if ( p . containsKey ( STRING3 ) && Integer . parseInt ( ( String ) p . get ( STRING3 ) ) <= NUMBER0 ) { \n + throw new H2OIllegalArgumentException ( STRING4 , strategy ) ; \n + } \n } else { \n throw new H2OIllegalArgumentException ( STRING5 , strategy ) ; \n }", "msg_token": "Check sanity of random grid search parameters"} {"diff": " class SelectTemplateDialog extends DialogWrapper { \n \n protected void dispose ( ) { \n EditorFactory . getInstance ( ) . releaseEditor ( searchPatternEditor ) ; \n + if ( replacePatternEditor != null ) EditorFactory . getInstance ( ) . releaseEditor ( replacePatternEditor ) ; \n removeListeners ( ) ; \n super . dispose ( ) ; \n }", "msg_token": "fixed undisposed editor problem"} {"diff": " public class ReaderPostActions { \n SINGLE \n if ( serverPost . feedId == NUMBER0 && localPost . feedId != NUMBER0 ) { \n serverPost . feedId = localPost . feedId ; \n + } \n + \n + if ( serverPost . feedItemId == NUMBER0 && localPost . feedItemId != NUMBER0 ) { \n serverPost . feedItemId = localPost . feedItemId ; \n }", "msg_token": "Added check for missing feed item id to handleUpdatePostResponse"} {"diff": " public final class BannerTopComponent extends TopComponent { \n tpg . close ( ) ; \n } \n } \n + \n + SINGLE \n + TopComponentGroup tpg = WindowManager . getDefault ( ) . findTopComponentGroup ( perspective . getName ( ) ) ; \n + tpg . open ( ) ; \n \n SINGLE \n Perspective closingPerspective = getPerspective ( selectedPerspective ) ; \n public final class BannerTopComponent extends TopComponent { \n } \n } \n \n - SINGLE \n - TopComponentGroup tpg = WindowManager . getDefault ( ) . findTopComponentGroup ( perspective . getName ( ) ) ; \n - tpg . open ( ) ; \n - \n SINGLE \n for ( PerspectiveMember member : members ) { \n if ( member . open ( perspective ) ) {", "msg_token": "Fix open close procedure with perspectives"} {"diff": " public class HttpException extends BaseException { \n \n @ override \n public String toString ( ) { \n - return STRING0 + code + STRING1 + getMessage ( ) + STRING2 + result ; \n + return STRING3 + getErrorCode ( ) + STRING1 + getMessage ( ) + STRING2 + result ; \n } \n }", "msg_token": "update HttpException toString"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AllTests { \n SINGLE \n suite . addTest ( new TestSuite ( DetailASTTest . class ) ) ; \n suite . addTest ( new TestSuite ( AbstractViolationReporterTest . class ) ) ; \n + suite . addTest ( new TestSuite ( AnonInnerLengthCheckTest . class ) ) ; \n suite . addTest ( new TestSuite ( ArrayTypeStyleCheckTest . class ) ) ; \n suite . addTest ( new TestSuite ( AvoidInlineConditionalsCheckTest . class ) ) ; \n suite . addTest ( new TestSuite ( AvoidNestedBlocksCheckTest . class ) ) ;", "msg_token": "added tests for AnonInnerLength and ArrayTypeStyle"} {"diff": " public class ODocumentHelper { \n \n final String indexAsString = index != null ? index . toString ( ) : null ; \n \n + if ( value instanceof OCommandContext ) \n + value = ( ( OCommandContext ) value ) . getVariables ( ) ; \n + \n if ( value instanceof OIdentifiable ) { \n final ORecord < ? > record = currentRecord != null && currentRecord instanceof OIdentifiable ? ( ( OIdentifiable ) currentRecord ) \n . getRecord ( ) : null ;", "msg_token": "Fixed retrieval of context variables in document fields"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n COMMENT \n COMMENT \n public String getHeader ( String name ) { \n + if ( name . equalsIgnoreCase ( STRING0 ) ) { \n + String s = headers . get ( STRING1 ) ; \n + return s == null ? contentType : s ; \n + } \n return headers . get ( name ) ; \n } \n \n public class AtmosphereResponse extends HttpServletResponseWrapper { \n COMMENT \n public Collection < String > getHeaders ( String name ) { \n ArrayList < String > s = new ArrayList < String > ( ) ; \n - s . add ( headers . get ( name ) ) ; \n + String h ; \n + if ( name . equalsIgnoreCase ( STRING0 ) ) { \n + h = headers . get ( STRING1 ) ; \n + } else { \n + h = headers . get ( name ) ; \n + } \n + s . add ( h ) ; \n return Collections . unmodifiableList ( s ) ; \n }", "msg_token": "Re add the proper fix"} {"diff": " public class PersistenceExceptionTranslationAutoConfiguration { \n @ bean \n @ conditionalonmissingbean ( PersistenceExceptionTranslationPostProcessor . class ) \n @ conditionalonproperty ( prefix = STRING0 , name = STRING1 , matchIfMissing = true ) \n - public PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor ( ) { \n + public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor ( ) { \n PersistenceExceptionTranslationPostProcessor postProcessor = new PersistenceExceptionTranslationPostProcessor ( ) ; \n postProcessor . setProxyTargetClass ( true ) ; \n return postProcessor ;", "msg_token": "Fix PersistenceExceptionTranslation INFO message"} {"diff": " public final class UniqueId implements UniqueIdInterface { \n private final ConcurrentHashMap < String , String > id_cache = \n new ConcurrentHashMap < String , String > ( ) ; \n COMMENT \n - private final ConcurrentHashMap < String , Deferred < byte [ ] > > pending_assignments = \n - new ConcurrentHashMap < String , Deferred < byte [ ] > > ( ) ; \n + private final HashMap < String , Deferred < byte [ ] > > pending_assignments = \n + new HashMap < String , Deferred < byte [ ] > > ( ) ; \n \n COMMENT \n private volatile int cache_hits ;", "msg_token": "Change UniqueId pending_assignments to a regular HashMap since we are syncing"} {"diff": " public class Channel implements AutoCloseable \n this . mediaDriver = mediaDriver ; \n this . bufferNotifier = bufferNotifier ; \n this . channelId = channelId ; \n - SINGLE \n - currentTermId = NUMBER0 L ; \n + currentTermId = - NUMBER1 ; \n requestTerm ( NUMBER0 L ) ; \n - requestTerm ( NUMBER1 ) ; \n - startTerm ( ) ; \n + rollTerm ( ) ; \n } \n \n public long channelId ( )", "msg_token": "tidy up initial case"} {"diff": " public class RemoteViews implements Parcelable , Filter { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setRelativeScrollPosition ( int viewId , int offset ) { \n setInt ( viewId , STRING0 , offset ) ;", "msg_token": "Fixing build breakage due to misnamed javadoc variable"} {"diff": " public class DanmakuUtils { \n return true ; \n } \n \n - if ( d1 . isOutside ( ) ) { \n + if ( d1 . isTimeOut ( ) ) { \n return false ; \n }", "msg_token": "Fix Collision Detection of Danmaku"} {"diff": " public interface SecurityContext { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AuthenticationCallHandler implements HttpHandler { \n } \n SecurityContext context = exchange . getAttachment ( SecurityContext . ATTACHMENT_KEY ) ; \n if ( context . authenticate ( ) ) { \n - HttpHandlers . executeHandler ( next , exchange ) ; \n + if ( ! exchange . isComplete ( ) ) { \n + next . handleRequest ( exchange ) ; \n + } \n } else { \n exchange . endExchange ( ) ; \n }", "msg_token": "If the exchange is ended by the authenticate call don t continue processing"} {"diff": " public class SwipeFlingAdapterView extends BaseFlingAdapterView implements CardE \n \n @ override \n public View getSelectedView ( ) { \n + if ( topView == null ) { \n + return null ; \n + } \n return topView . get ( ) ; \n }", "msg_token": "Fix null top view crash"} {"diff": " import NAMESPACE ; \n COMMENT \n @ beta \n @ gwtincompatible \n - public class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { \n + public final class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { \n \n COMMENT \n COMMENT", "msg_token": "Make LittleEndianDataOutputStream final like LittleEndianDataInputStream"} {"diff": " public final class BluetoothDevice implements Parcelable { \n \n COMMENT \n public boolean cancelPairingUserInput ( ) { \n - SINGLE \n - COMMENT \n try { \n - return sService . cancelPairingUserInput ( this ) ; \n - COMMENT \n + return sService . setPairingConfirmation ( this , false ) ; \n + } catch ( RemoteException e ) { Log . e ( TAG , STRING0 , e ) ; } \n return false ; \n }", "msg_token": "Added support to cancel pairing from UI while doing SSP"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CMTTxInterceptor implements Interceptor { \n Throwable cause = t ; \n t = new EJBTransactionRolledbackException ( STRING0 ) ; \n t . initCause ( cause ) ; \n - } \n - SINGLE \n - else if ( t instanceof RuntimeException ) { \n + } else if ( t instanceof NoSuchEJBException ) { \n + SINGLE \n + \n + } else if ( t instanceof RuntimeException ) { \n t = new EJBTransactionRolledbackException ( t . getMessage ( ) , ( Exception ) t ) ; \n } else { SINGLE \n throw ( Exception ) t ;", "msg_token": "Pass NoSuchEjbException back through the interceptor"} {"diff": " public class TmxMapLoader extends SynchronousAssetLoader < TiledMap , TmxMapLoader . \n \n public static class Parameters extends AssetLoaderParameters < TiledMap > { \n COMMENT \n - boolean yUp = true ; \n + public boolean yUp = true ; \n } \n \n protected static final int FLAG_FLIP_HORIZONTALLY = NUMBER0 ;", "msg_token": "added public access modifier to Parameter member"} {"diff": " public class StreamsForwarder implements StreamsHandler { \n } \n \n public void connectStreams ( Process process , String processName ) { \n + COMMENT \n + There ' s a potential problem here in that DisconnectableInputStream reads from input in the background . \n + This won ' t automatically stop when the process is over . Therefore , if input is not closed then this thread \n + will run forever . It would be better to ensure that this thread stops when the process does . \n + COMMENT \n InputStream instr = new DisconnectableInputStream ( input ) ; \n \n standardOutputRunner = new ExecOutputHandleRunner ( STRING0 + processName ,", "msg_token": "Add a comment about the potential problem of the input forwarding thread living forever for spawned processes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class StatementAnalyzer \n } \n \n SINGLE \n - rows . add ( row ( new NullLiteral ( ) , new NullLiteral ( ) , FALSE_LITERAL ) ) ; \n + rows . add ( row ( new StringLiteral ( STRING0 ) , new StringLiteral ( STRING0 ) , FALSE_LITERAL ) ) ; \n \n Query query = simpleQuery ( \n selectList (", "msg_token": "Fix query building for SHOW SESSION"} {"diff": " public class Vpn extends INetworkManagementEventObserver . Stub { \n . setContentTitle ( title ) \n . setContentText ( text ) \n . setContentIntent ( VpnConfig . getIntentForStatusPanel ( mContext , config ) ) \n - . setDefaults ( Notification . DEFAULT_ALL ) \n + . setDefaults ( NUMBER0 ) \n . setOngoing ( true ) \n . getNotification ( ) ; \n nm . notify ( R . drawable . vpn_connected , notification ) ;", "msg_token": "silence VPN notifications"} {"diff": " public class MapActivity extends AccessibleActivity { \n @ override \n public boolean processResult ( GPXFile result ) \n { \n + getMyApplication ( ) . setGpxFileToDisplay ( result , true ) ; \n getMapActions ( ) . setGPXRouteParams ( result ) ; \n getMyApplication ( ) . getTargetPointsHelper ( ) . updateRoutingHelper ( ) ; \n getRoutingHelper ( ) . recalculateRouteDueToSettingsChange ( ) ;", "msg_token": "show imported gpx file"} {"diff": " public class GenerateSourcesMojo extends AbstractAndroidMojo { \n + STRING0 + e . getLocalizedMessage ( ) , e ) ; \n } \n \n - projectHelper . addResource ( project , apklibDirectory . getAbsolutePath ( ) + STRING1 , null , null ) ; \n + projectHelper . addResource ( project , apklibDirectory . getAbsolutePath ( ) + STRING1 , null , Arrays . asList ( STRING2 , STRING3 ) ) ; \n project . addCompileSourceRoot ( apklibDirectory . getAbsolutePath ( ) + STRING1 ) ; \n \n }", "msg_token": "Exclude java and aidl file in java resources"} {"diff": " public class TimingTest extends TestCase { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void testTiming ( ) { \n Timing t = new Timing ( ) ; \n sleepTen ( ) ; \n long val2 = t . reportNano ( ) ; \n - assertEquals ( STRING0 , NUMBER0 , val2 , NUMBER0 ) ; \n + assertEquals ( STRING0 , NUMBER1 , val2 , NUMBER1 ) ; \n SINGLE \n sleepTen ( ) ; \n long val = t . report ( ) ; \n SINGLE \n - assertEquals ( STRING1 , NUMBER2 , val , NUMBER3 ) ; \n + assertEquals ( STRING1 , NUMBER2 , val , NUMBER4 ) ; \n for ( int i = NUMBER5 ; i < NUMBER3 ; i ++ ) { \n sleepTen ( ) ; \n }", "msg_token": "Make bounds even looser"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CreateVirtualEnvDialog extends IdeaDialog { \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - PackagesNotificationPanel . showError ( STRING0 , \n - PackageManagementService . ErrorDescription . fromMessage ( e . toString ( ) ) ) ; \n + final PackageManagementService . ErrorDescription description = \n + PyPackageManagementService . toErrorDescription ( Collections . singletonList ( e ) , basicSdk ) ; \n + if ( description != null ) { \n + PackagesNotificationPanel . showError ( STRING0 , description ) ; \n + } \n } \n } , ModalityState . any ( ) ) ; \n }", "msg_token": "Use extended error description for exceptions during installation of framework packages"} {"diff": " public class RCompletionManager implements CompletionManager \n fileTypeRegistry_ . editFile ( loc . getFile ( ) , \n loc . getPosition ( ) ) ; \n } \n - \n - SINGLE \n - else \n - { \n - String function = loc . getFunctionName ( ) ; \n - server_ . getHelpAtCursor ( \n - function , \n - function . length ( ) , \n - new SimpleRequestCallback < Void > ( STRING0 ) ) ; \n - } \n } \n }", "msg_token": "don t show help when unable to navigate to function"} {"diff": " public class WebSettings { \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 public void setBuiltInZoomControls ( boolean enabled ) {", "msg_token": "Fix javadoc breakage by not linking to now hidden WebView getZoomControls method"} {"diff": " public class VcsDirtyScopeImpl extends VcsDirtyScope { \n else { \n parent = FilePathImpl . create ( path . getIOFile ( ) . getParentFile ( ) ) ; \n } \n - for ( FilePath filePath : myDirtyFiles ) { \n - if ( filePath . equals ( parent ) || filePath . equals ( path ) ) return Boolean . TRUE ; \n - } \n + if ( myDirtyFiles . contains ( parent ) || myDirtyFiles . contains ( path ) ) return Boolean . TRUE ; \n } \n \n return Boolean . FALSE ;", "msg_token": "max fix stupid perf issue in VcsDirtyScope"} {"diff": " public class BasicUtils { \n context . startActivity ( intent ) ; \n } \n \n + public static void sendIntent ( Context context , Class classes , String key , ArrayList < ? extends Parcelable > value , String anotherKey , String anotherValue ) { \n + Intent intent = new Intent ( ) ; \n + intent . setClass ( context , classes ) ; \n + intent . putParcelableArrayListExtra ( key , value ) ; \n + intent . putExtra ( anotherKey , anotherValue ) ; \n + context . startActivity ( intent ) ; \n + } \n + \n public static String getSharedPreferences ( Context context , String fileName , String parameterName ) { \n SharedPreferences sp = context . getSharedPreferences ( fileName , NUMBER0 ) ; \n String parameter = sp . getString ( parameterName , STRING0 ) ;", "msg_token": "add sendintent coll string of basicutils"} {"diff": " public final class ChatManager extends Manager { \n interceptor . getKey ( ) . processMessage ( message ) ; \n } \n } \n - SINGLE \n - if ( message . getFrom ( ) == null ) { \n - message . setFrom ( connection ( ) . getUser ( ) ) ; \n - } \n connection ( ) . sendStanza ( message ) ; \n }", "msg_token": "Don t stamp outgoing stanza in ChatManager"} {"diff": " public class VelocityBodyAsDomainObjectTest extends ContextTestSupport { \n public void testWithObject ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . expectedBodiesReceived ( STRING1 \n - + STRING2 ) ; \n + mock . expectedBodiesReceived ( STRING3 ) ; \n \n MyPerson person = new MyPerson ( ) ; \n person . setFamilyName ( STRING4 ) ; \n public class VelocityBodyAsDomainObjectTest extends ContextTestSupport { \n } \n \n public String toString ( ) { \n - return STRING5 + \n - STRING6 + givenName + STRING7 + \n - STRING8 + familyName + STRING7 + \n - STRING9 ; \n + return STRING5 \n + + STRING6 \n + + givenName + STRING7 \n + + STRING8 \n + + familyName + STRING7 \n + + STRING9 ; \n } \n }", "msg_token": "Fixed the VelocityBodyAsDomainObjectTest test failure in Windows box"} {"diff": " class DefaultBootstrapContext implements BootstrapContext { \n @ override \n public String toString ( ) { \n return new ToStringCreator ( this ) SINGLE \n - . append ( STRING0 , testClass ) SINGLE \n - . append ( STRING1 , nullSafeToString ( cacheAwareContextLoaderDelegate ) ) SINGLE \n + . append ( STRING0 , testClass . getName ( ) ) SINGLE \n + . append ( STRING1 , cacheAwareContextLoaderDelegate . getClass ( ) . getName ( ) ) SINGLE \n . toString ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static String nullSafeToString ( CacheAwareContextLoaderDelegate delegate ) { \n - return delegate == null ? STRING2 : delegate . getClass ( ) . getName ( ) ; \n - } \n - \n }", "msg_token": "Simplify DefaultBootstrapContext toString"} {"diff": " public abstract class Trainer { \n while ( true ) { \n input . fprop ( new Random ( ) . nextLong ( ) , true ) ; \n for ( int i = NUMBER0 ; i < input . _a . length ; i ++ ) \n - a [ NUMBER0 ] . getBuffer ( ) . put ( i , ( float ) input . _a [ i ] ) ; \n + a [ NUMBER0 ] . getBuffer ( ) . put ( i , input . _a [ i ] ) ; \n queue . putWriteBuffer ( a [ NUMBER0 ] , false ) ; \n for ( int y = NUMBER1 ; y < fprops . length ; y ++ ) \n queue . put1DRangeKernel ( fprops [ y ] , NUMBER0 , _ls [ y ] . _a . length , group ) ;", "msg_token": "Fix redundant cast"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n class UseCaseWrapperJob extends Job { \n \n } \n \n - @ override protected boolean shouldReRunOnThrowable ( Throwable throwable ) { \n - return false ; \n + @ override protected RetryConstraint shouldReRunOnThrowable ( Throwable throwable , int runCount , int maxRunCount ) { \n + return RetryConstraint . CANCEL ; \n } \n }", "msg_token": "Replaced deprecated shouldReTunOnThrowable"} {"diff": " public abstract class AbstractAnnotationTest { \n assertSame ( r1 , service . name ( key ) ) ; \n Cache < Object , Object > cache = cm . getCache ( STRING0 ) ; \n SINGLE \n - assertTrue ( cache . containsKey ( keyName ) ) ; \n + assertNotNull ( cache . get ( keyName ) ) ; \n } \n \n public void testRootVars ( CacheableService service ) { \n public abstract class AbstractAnnotationTest { \n Cache < Object , Object > cache = cm . getCache ( STRING0 ) ; \n SINGLE \n String expectedKey = STRING1 + AopProxyUtils . ultimateTargetClass ( service ) + service ; \n - assertTrue ( cache . containsKey ( expectedKey ) ) ; \n + assertNotNull ( cache . get ( expectedKey ) ) ; \n } \n \n public void testNullArg ( CacheableService service ) {", "msg_token": "revise cache API"} {"diff": " public class RCompletionManager implements CompletionManager \n if ( isLineInComment ( firstLine ) && ! isLineInRoxygenComment ( firstLine ) ) \n return false ; \n \n - SINGLE \n - if ( ! StringUtil . stripRComment ( firstLine ) . equals ( firstLine ) ) \n - { \n - canAutoInsert = false ; \n - } \n - \n SINGLE \n SINGLE \n if ( ! uiPrefs_ . allowTabMultilineCompletion ( ) . getValue ( ) )", "msg_token": "remove old unused code"} {"diff": " public class ListCommandsTest extends JedisCommandTestBase { \n } ) . start ( ) ; \n \n result = jedis . blpop ( NUMBER0 , STRING0 ) ; \n + System . out . println ( STRING1 ) ; \n + \n assertNotNull ( result ) ; \n assertEquals ( NUMBER1 , result . size ( ) ) ; \n assertEquals ( STRING0 , result . get ( NUMBER2 ) ) ; \n public class ListCommandsTest extends JedisCommandTestBase { \n ( new Thread ( new Runnable ( ) { \n public void run ( ) { \n try { \n - Thread . sleep ( NUMBER3 ) ; \n + Thread . sleep ( NUMBER4 ) ; \n Jedis j = createJedis ( ) ; \n j . lpush ( STRING0 , STRING2 ) ; \n } catch ( InterruptedException e ) {", "msg_token": "make list command tests fast"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class TestSqlParser \n private static void assertStatement ( String query , Statement expected ) \n { \n assertParsed ( query , expected , SQL_PARSER . createStatement ( query ) ) ; \n + assertFormattedSql ( SQL_PARSER , expected ) ; \n } \n \n private static void assertExpression ( String expression , Expression expected )", "msg_token": "Assert SQL formatting in TestSqlParser"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class OLazyRecordMap extends LinkedHashMap < String , Object > { \n return super . put ( iKey , iValue ) ; \n } \n \n - public void convertAll ( ) { \n + @ override \n + public Collection < Object > values ( ) { \n + convertAll ( ) ; \n + return super . values ( ) ; \n + } \n + \n + private void convertAll ( ) { \n if ( converted ) \n return ;", "msg_token": "Fixed issue on LINKMAP"} {"diff": " public class ButtonFlat extends Button { \n return textButton ; \n } \n \n + public String getText ( ) { \n + return textButton . getText ( ) . toString ( ) ; \n + } \n + \n } \n public class ButtonRectangle extends Button { \n return textButton ; \n } \n \n + public String getText ( ) { \n + return textButton . getText ( ) . toString ( ) ; \n + } \n + \n }", "msg_token": "Implement getText function in Buttons"} {"diff": " public abstract class TransferSettings { \n Objects . ToStringHelper toStringHelper = Objects . toStringHelper ( this ) ; \n \n for ( Field field : ReflectionUtil . getAllFieldsWithAnnotation ( this . getClass ( ) , Element . class ) ) { \n + field . setAccessible ( true ) ; \n + \n try { \n toStringHelper . add ( field . getName ( ) , field . get ( this ) ) ; \n }", "msg_token": "Fix exception in toString method"} {"diff": " public class BasicKeyChain implements EncryptableKeyChain { \n \n @ override \n public BloomFilter getFilter ( int size , double falsePositiveRate , long tweak ) { \n - BloomFilter filter = new BloomFilter ( size , falsePositiveRate , tweak ) ; \n - for ( ECKey key : hashToKeys . values ( ) ) { \n - filter . insert ( key . getPubKey ( ) ) ; \n - filter . insert ( key . getPubKeyHash ( ) ) ; \n + lock . lock ( ) ; \n + try { \n + BloomFilter filter = new BloomFilter ( size , falsePositiveRate , tweak ) ; \n + for ( ECKey key : hashToKeys . values ( ) ) { \n + filter . insert ( key . getPubKey ( ) ) ; \n + filter . insert ( key . getPubKeyHash ( ) ) ; \n + } \n + return filter ; \n + } finally { \n + lock . unlock ( ) ; \n } \n - return filter ; \n } \n \n @ override", "msg_token": "Add a missing lock on BasicKeyChain getBloomFilter"} {"diff": " public class ExecUtil { \n } , STRING0 ) ; \n final String escapedScript = STRING1 + \n STRING2 + \n - STRING3 + escapedCommandLine + STRING4 + \n + STRING3 + escapedCommandLine + STRING5 + \n STRING6 ; \n return new GeneralCommandLine ( getOsascriptPath ( ) , STRING7 , escapedScript ) \n . withWorkDirectory ( workDir )", "msg_token": "osascript gets a full output the option without altering line endings is added"} {"diff": " public class FindInProjectUtil { \n } \n } \n \n + if ( directoryName == null && psiElement instanceof PsiPackage ) { \n + final PsiDirectory [ ] directories = ( ( PsiPackage ) psiElement ) . getDirectories ( ) ; \n + directoryName = directories . length > NUMBER0 ? directories [ NUMBER0 ] . getVirtualFile ( ) . getPresentableUrl ( ) : null ; \n + } \n + \n Module module = ( Module ) dataContext . getData ( DataConstantsEx . MODULE_CONTEXT ) ; \n if ( module != null ) { \n model . setModuleName ( module . getName ( ) ) ;", "msg_token": "when user selects package the search suggest its first directory as directory"} {"diff": " public class TestStatusLine extends JPanel { \n } \n \n private static class MyProgressBar extends JProgressBar { \n + private static final int NATIVE_LAF_HEIGHT = NUMBER0 ; \n + \n @ override \n public void setUI ( ProgressBarUI ui ) { \n - if ( UIUtil . isUnderWindowsLookAndFeel ( ) || UIUtil . isUnderGTKLookAndFeel ( ) ) { \n + boolean nativeLaf = UIUtil . isUnderWindowsLookAndFeel ( ) || UIUtil . isUnderAquaLookAndFeel ( ) || UIUtil . isUnderGTKLookAndFeel ( ) ; \n + if ( nativeLaf ) { \n ui = new DarculaProgressBarUI ( ) ; \n } \n super . setUI ( ui ) ; \n + if ( nativeLaf ) { \n + setPreferredSize ( new Dimension ( getPreferredSize ( ) . width , NATIVE_LAF_HEIGHT ) ) ; \n + } \n } \n } \n }", "msg_token": "colored test progress bar on native LAFs"} {"diff": " public class IOSApplicationConfiguration { \n COMMENT \n public float accelerometerUpdate = FLOAT0 ; \n \n - COMMENT \n - public boolean useMonotouchOpenTK = false ; \n + COMMENT \n + public boolean useMonotouchOpenTK = true ; \n \n COMMENT \n - public boolean useObjectAL = false ; \n + public boolean useObjectAL = true ; \n }", "msg_token": "made objectal and opentk defaults in ios backend"} {"diff": " public class Weaver { \n } \n \n private static boolean inPackages ( String pack ) { \n + if ( pack == null ) return false ; \n String [ ] p = _packages ; \n for ( int i = NUMBER0 ; i < p . length ; i ++ ) \n if ( pack . startsWith ( p [ i ] ) )", "msg_token": "Survive a no package class"} {"diff": " public class ResizeGripper extends Composite \n lastX_ = DOM . eventGetClientX ( event ) ; \n lastY_ = DOM . eventGetClientY ( event ) ; \n DOM . setCapture ( getElement ( ) ) ; \n - DOM . eventPreventDefault ( event ) ; \n + event . preventDefault ( ) ; \n + event . stopPropagation ( ) ; \n break ; \n } \n \n public class ResizeGripper extends Composite \n \n observer_ . onResizing ( xDelta , yDelta ) ; \n \n - DOM . eventPreventDefault ( event ) ; \n + event . preventDefault ( ) ; \n + event . stopPropagation ( ) ; \n } \n break ; \n } \n public class ResizeGripper extends Composite \n { \n stopResizing ( ) ; \n DOM . releaseCapture ( getElement ( ) ) ; \n + event . preventDefault ( ) ; \n + event . stopPropagation ( ) ; \n } \n break ; \n } \n public class ResizeGripper extends Composite \n break ; \n } \n } \n - \n - super . onBrowserEvent ( event ) ; \n } \n \n private boolean isResizing ( )", "msg_token": "change the way we prevent default event handling in resize gripper"} {"diff": " public class SecurityResource extends JaxRsResourceBase { \n return Response . status ( Status . OK ) . build ( ) ; \n } \n \n + @ timedresource \n + @ get \n + @ produces ( APPLICATION_JSON ) \n + @ path ( STRING0 + ANYTHING_PATTERN + STRING1 ) \n + @ apioperation ( value = STRING2 ) \n + public Response getUserRoles ( @ pathparam ( STRING3 ) final String username , \n + @ javax.ws.rs.core.context final HttpServletRequest request , \n + @ javax.ws.rs.core.context final UriInfo uriInfo ) throws SecurityApiException { \n + final List < String > roles = securityApi . getUserRoles ( username , context . createContext ( request ) ) ; \n + final UserRolesJson userRolesJson = new UserRolesJson ( username , null , roles ) ; \n + return Response . status ( Status . OK ) . entity ( userRolesJson ) . build ( ) ; \n + } \n \n @ timedresource \n @ put", "msg_token": "add endpoint to return user s roles"} {"diff": " public class ByteBuddy { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed reference error in javadoc"} {"diff": " public class WebMvcAutoConfiguration { \n return new HiddenHttpMethodFilter ( ) ; \n } \n \n - SINGLE \n + SINGLE \n SINGLE \n @ configuration \n @ enablewebmvc", "msg_token": "Fix typo in comment"} {"diff": " public class ProcessWrapper extends Thread implements Terminable { \n private ProcessMXBean waitForJMX ( ) { \n String loopbackAddress = localAddress ( ) ; \n String path = STRING0 + loopbackAddress + STRING1 + jmxPort + STRING2 ; \n - JMXServiceURL jmxUrl = null ; \n + JMXServiceURL jmxUrl ; \n try { \n jmxUrl = new JMXServiceURL ( STRING3 , loopbackAddress , jmxPort , path ) ; \n } catch ( MalformedURLException e ) { \n public class ProcessWrapper extends Thread implements Terminable { \n } \n } , null , null ) ; \n MBeanServerConnection mBeanServer = jmxConnector . getMBeanServerConnection ( ) ; \n - ProcessMXBean bean = JMX . newMBeanProxy ( mBeanServer , JmxUtils . objectName ( processName ) , ProcessMXBean . class ) ; \n - return bean ; \n + return JMX . newMBeanProxy ( mBeanServer , JmxUtils . objectName ( processName ) , ProcessMXBean . class ) ; \n } catch ( Exception ignored ) { \n LOGGER . trace ( STRING4 , ignored ) ; \n }", "msg_token": "Fix quality flaw"} {"diff": " static public ISeq seq ( Object coll ) { \n return StringSeq . create ( ( String ) coll ) ; \n else if ( coll instanceof Map ) \n return seq ( ( ( Map ) coll ) . entrySet ( ) ) ; \n + else if ( coll instanceof Iterator ) \n + return IteratorSeq . create ( ( Iterator ) coll ) ; \n else if ( coll instanceof Enumeration ) \n return EnumerationSeq . create ( ( ( Enumeration ) coll ) ) ; \n else", "msg_token": "added seq support for Iterators"} {"diff": " public class PythonSpaceHandler extends TypedHandlerDelegate { \n Module module = ModuleUtilCore . findModuleForPsiElement ( element ) ; \n if ( module == null ) return Result . CONTINUE ; \n PyDocumentationSettings documentationSettings = PyDocumentationSettings . getInstance ( module ) ; \n - if ( documentationSettings . myDocStringFormat != DocStringFormat . PLAIN ) \n + if ( ! documentationSettings . myDocStringFormat . equals ( DocStringFormat . PLAIN ) ) \n editor . getCaretModel ( ) . moveCaretRelatively ( NUMBER0 , NUMBER1 , false , false , false ) ; \n return Result . STOP ; \n }", "msg_token": "fixed stupid mistake comparing strings"} {"diff": " public final class ClasspathModifierLifecycleParticipant extends AbstractMavenLi \n } \n catch ( MojoExecutionException e ) \n { \n - throw new MavenExecutionException ( STRING0 + project , e ) ; \n + log . warn ( STRING1 + project ) ; \n + continue ; \n } \n \n log . debug ( STRING2 + artifacts ) ;", "msg_token": "Allowing multi project builds with internal deps that have never been built to at least start to build"} {"diff": " public class InputMethodService extends AbstractInputMethodService { \n \n void showWindowInner ( boolean showInput ) { \n boolean doShowInput = false ; \n - boolean wasVisible = mWindowVisible ; \n + final int previousImeWindowStatus = \n + ( mWindowVisible ? IME_ACTIVE : NUMBER0 ) | ( isInputViewShown ( ) ? IME_VISIBLE : NUMBER0 ) ; \n mWindowVisible = true ; \n if ( ! mShowInputRequested ) { \n if ( mInputStarted ) { \n public class InputMethodService extends AbstractInputMethodService { \n startExtractingText ( false ) ; \n } \n \n - if ( ! wasVisible ) { \n + final int nextImeWindowStatus = IME_ACTIVE | ( isInputViewShown ( ) ? IME_VISIBLE : NUMBER0 ) ; \n + if ( previousImeWindowStatus != nextImeWindowStatus ) { \n + mImm . setImeWindowStatus ( mToken , nextImeWindowStatus , mBackDisposition ) ; \n + } \n + if ( ( previousImeWindowStatus & IME_ACTIVE ) == NUMBER0 ) { \n if ( DEBUG ) Log . v ( TAG , STRING0 ) ; \n - mImm . setImeWindowStatus ( mToken , IME_ACTIVE , mBackDisposition ) ; \n onWindowShown ( ) ; \n mWindow . show ( ) ; \n }", "msg_token": "Notify IME visibility when showWindow is called"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class QueryImpl < T > extends CriteriaContainerImpl implements Query < T > { \n private static final Logger LOG = MorphiaLoggerFactory . get ( QueryImpl . class ) ; \n private final DatastoreImpl ds ;", "msg_token": "suppress deprecation warning at the class level"} {"diff": " public class EventTest { \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void event_widget ( ) { \n SINGLE \n executeAnalysis ( STRING1 , STRING2 ) ;", "msg_token": "Disable EventTest event_widget because of false positives"} {"diff": " public class ReaderIconCountView extends LinearLayout { \n } \n } \n \n + SINGLE \n + if ( mIconType == ICON_COMMENT ) { \n + LinearLayout . LayoutParams params = ( LinearLayout . LayoutParams ) mImageView . getLayoutParams ( ) ; \n + int margin = context . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_extra_small ) ; \n + params . topMargin = margin ; \n + } \n + \n ReaderUtils . setBackgroundToRoundRipple ( mImageView ) ; \n }", "msg_token": "Adjust comment button baseline"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class SecurityHandler extends HandlerWrapper implements Authenti \n } \n \n public void sessionCreated ( HttpSessionEvent se ) \n - { \n + { \n SINGLE \n - AbstractHttpConnection connection = AbstractHttpConnection . getCurrentConnection ( ) ; \n - if ( connection == null ) \n + HttpChannel channel = HttpChannel . getCurrentHttpChannel ( ) ; \n + \n + if ( channel == null ) \n return ; \n - Request request = connection . getRequest ( ) ; \n + Request request = channel . getRequest ( ) ; \n if ( request == null ) \n return ;", "msg_token": "replace old AbstractHttpConnection with HttpChannel to get request for session listener"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestTxEntries \n { \n @ test \n - @ ignore \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Enabled test case for fixed bug"} {"diff": " public class SecurityPathMatches { \n setupPathSecurityInformation ( defaultPathSecurityInformation , securityInformation , webResources ) ; \n } \n for ( String pattern : webResources . getUrlPatterns ( ) ) { \n - if ( pattern . endsWith ( STRING0 ) ) { \n - String part = pattern . substring ( NUMBER0 , pattern . length ( ) - NUMBER1 ) ; \n + if ( pattern . endsWith ( STRING0 ) || pattern . endsWith ( STRING1 ) ) { \n + String part = pattern . substring ( NUMBER0 , pattern . lastIndexOf ( STRING2 ) ) ; \n PathSecurityInformation info = prefixPathRoleInformation . get ( part ) ; \n if ( info == null ) { \n prefixPathRoleInformation . put ( part , info = new PathSecurityInformation ( ) ) ;", "msg_token": "Also treat the trailing matches as wildcard matches"} {"diff": " public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O \n \n checkEmbedded ( getDatabase ( ) . getStorage ( ) ) ; \n \n - deleteDefaultCluster ( cls ) ; \n \n for ( OClass superClass : cls . getSuperClasses ( ) ) { \n SINGLE \n ( ( OClassImpl ) superClass ) . removeBaseClassInternal ( cls ) ; \n } \n + deleteDefaultCluster ( cls ) ; \n \n dropClassIndexes ( cls ) ;", "msg_token": "Fix index consistency when dropping a class in a hierarchy"} {"diff": " public class SessionFailureTest extends AbstractTest \n Assert . assertTrue ( writeLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ; \n Assert . assertTrue ( serverFailureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ; \n Assert . assertTrue ( clientFailureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ; \n - Assert . assertFalse ( ( ( HTTP2Session ) session ) . getEndPoint ( ) . isOpen ( ) ) ; \n + long start = System . nanoTime ( ) ; \n + long now = System . nanoTime ( ) ; \n + while ( ( ( HTTP2Session ) session ) . getEndPoint ( ) . isOpen ( ) ) \n + { \n + if ( TimeUnit . NANOSECONDS . toSeconds ( now - start ) > NUMBER0 ) \n + Assert . fail ( ) ; \n + Thread . sleep ( NUMBER1 ) ; \n + now = System . nanoTime ( ) ; \n + } \n } \n }", "msg_token": "fixed race in test"} {"diff": " public class TrainParser { \n for ( Transition transition : transitions ) { \n int transitionNum = transitionIndex . indexOf ( transition ) ; \n Set < String > features = featureFactory . featurize ( state ) ; \n - int predictedNum = parser . findHighestScoringTransition ( state , features , false ) ; \n + int predictedNum = parser . findHighestScoringTransition ( state , features , false ) . object ( ) ; \n Transition predicted = transitionIndex . get ( predictedNum ) ; \n if ( transitionNum == predictedNum ) { \n numCorrect ++ ;", "msg_token": "Fix the SRParser training now using the ScoredObject"} {"diff": " public class TypeMap { \n water . api . TutorialsV1 . class . getName ( ) , \n water . api . TypeaheadV2 . class . getName ( ) , SINGLE \n water . Key . class . getName ( ) , \n + \n + water . api . AboutHandler . AboutV3 . class . getName ( ) , \n + water . api . AboutHandler . AboutEntryV3 . class . getName ( ) , \n + water . api . NodePersistentStorageV1 . class . getName ( ) , \n + water . api . NodePersistentStorageV1 . NodePersistentStorageEntryV1 . class . getName ( ) , \n + water . api . DocsV1 . class . getName ( ) , \n + water . api . DocsBase . class . getName ( ) , \n + water . api . RouteV1 . class . getName ( ) , \n + water . api . RouteBase . class . getName ( ) , \n } ; \n SINGLE \n static private final NonBlockingHashMap < String , Integer > MAP = new NonBlockingHashMap < > ( ) ;", "msg_token": "Add more things to gold typemap that happen when flow first comes up"} {"diff": " abstract class IntegrationTestCase extends TestCase { \n String [ ] original , String [ ] compiled ) { \n Compiler compiler = compile ( options , original ) ; \n assertEquals ( STRING0 + \n - STRING1 + Joiner . on ( STRING2 ) . join ( compiler . getErrors ( ) ) + \n + STRING1 + Joiner . on ( STRING2 ) . join ( compiler . getErrors ( ) ) + STRING2 + \n STRING3 + Joiner . on ( STRING2 ) . join ( compiler . getWarnings ( ) ) , \n NUMBER0 , compiler . getErrors ( ) . length + compiler . getWarnings ( ) . length ) ;", "msg_token": "Fix formatting of unexpected warnings errors in the IntegrationTestCase"} {"diff": " public class OServer { \n \n final OServerConfiguration configuration = serverCfg . getConfiguration ( ) ; \n \n + tokenHandler = new OTokenHandlerImpl ( this ) ; \n + \n if ( configuration . network != null ) { \n SINGLE \n if ( configuration . network . sockets != null ) { \n public class OServer { \n throw OException . wrapException ( new OConfigurationException ( message ) , e ) ; \n } \n \n - tokenHandler = new OTokenHandlerImpl ( this ) ; \n - \n registerPlugins ( ) ; \n \n for ( OServerLifecycleListener l : lifecycleListeners )", "msg_token": "moved token handler creation before listener open to avoid request with missing token handler"} {"diff": " public final class ResXmlEncoders { \n } \n \n boolean isInStyleTag = false ; \n + int startPos = NUMBER0 ; \n boolean enclose = false ; \n boolean wasSpace = true ; \n for ( char c : chars ) { \n if ( isInStyleTag ) { \n if ( c == STRING0 ) { \n isInStyleTag = false ; \n + startPos = out . length ( ) + NUMBER1 ; \n + enclose = false ; \n + wasSpace = true ; \n } \n } else if ( c == STRING1 ) { \n if ( wasSpace ) { \n public final class ResXmlEncoders { \n break ; \n case STRING2 : \n isInStyleTag = true ; \n + if ( enclose || wasSpace ) { \n + out . insert ( startPos , STRING3 ) . append ( STRING3 ) ; \n + } \n break ; \n default : \n if ( ! isPrintableChar ( c ) ) {", "msg_token": "properly encode strings with styles and new lines"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NonProjectFileWritingAccessProvider extends WritingAccessProvider { \n } \n \n private boolean isProjectFile ( @ notnull VirtualFile file ) { \n - if ( ProjectFileIndex . SERVICE . getInstance ( myProject ) . isInContent ( file ) ) return true ; \n + ProjectFileIndex fileIndex = ProjectFileIndex . SERVICE . getInstance ( myProject ) ; \n + if ( fileIndex . isInContent ( file ) ) return true ; \n + if ( ! Registry . is ( STRING0 ) && fileIndex . isExcluded ( file ) && ! fileIndex . isUnderIgnored ( file ) ) return true ; \n \n if ( myProject instanceof ProjectEx ) { \n IProjectStore store = ( ( ProjectEx ) myProject ) . getStateStore ( ) ;", "msg_token": "don t show warning when excluded files are edited"} {"diff": " public abstract class AppIntro extends AppCompatActivity { \n } \n } \n \n + public ViewPager getPager ( ) { \n + return pager ; \n + } \n + \n private void initController ( ) { \n if ( mController == null ) \n mController = new DefaultIndicatorController ( ) ; \n public abstract class AppIntro2 extends AppCompatActivity { \n } \n } \n \n + public ViewPager getPager ( ) { \n + return pager ; \n + } \n + \n private void initController ( ) { \n if ( mController == null ) \n mController = new DefaultIndicatorController ( ) ;", "msg_token": "Need a way to get the pager to suppport using CircleIndicator library"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class RemoveOrphanConstraintIndexesOnStartup \n this . log = logging . getMessagesLog ( getClass ( ) ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n public void perform ( ) \n { \n try", "msg_token": "Removed unnecessary deprecation annotation"} {"diff": " public class StreetVertexIndexServiceImpl implements StreetVertexIndexService { \n } \n \n @ suppresswarnings ( STRING0 ) \n - private List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) { \n + @ override \n + public List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) { \n List < TransitStop > transitStops = transitStopTree . query ( envelope ) ; \n for ( Iterator < TransitStop > its = transitStops . iterator ( ) ; its . hasNext ( ) ; ) { \n TransitStop ts = its . next ( ) ; \n public interface StreetVertexIndexService { \n public List < TransitStop > getNearbyTransitStops ( Coordinate coordinate , double radiusMeters ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public List < TransitStop > getTransitStopForEnvelope ( Envelope envelope ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add getTransitStopForEnvelope in spatial index"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MessagingController implements Runnable \n return ; \n } \n \n - ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; \n - PrintStream ps = new PrintStream ( baos ) ; \n + CharArrayWriter baos = new CharArrayWriter ( t . getStackTrace ( ) . length * NUMBER0 ) ; \n + PrintWriter ps = new PrintWriter ( baos ) ; \n t . printStackTrace ( ps ) ; \n ps . close ( ) ;", "msg_token": "don t use bytes and related byte char conversion when we re actually working on string only"} {"diff": " public class PeerGroup extends AbstractIdleService implements TransactionBroadca \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void clearEventListeners ( ) { \n + peerEventListeners . clear ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add PeerGroup clearListeners"} {"diff": " public final class UiFileInfo { \n \n public String getBlockSizeBytes ( ) { \n if ( mIsDirectory ) { \n - return STRING0 ; \n + return STRING1 ; \n } else { \n return CommonUtils . getSizeFromBytes ( mBlockSizeBytes ) ; \n } \n public final class UiFileInfo { \n \n public String getCreationTime ( ) { \n if ( mCreationTimeMs == LocalFileInfo . EMPTY_CREATION_TIME ) { \n - return STRING0 ; \n + return STRING1 ; \n } else { \n return CommonUtils . convertMsToDate ( mCreationTimeMs ) ; \n } \n public final class UiFileInfo { \n \n public String getSize ( ) { \n if ( mIsDirectory ) { \n - return STRING0 ; \n + return STRING1 ; \n } else { \n return CommonUtils . getSizeFromBytes ( mSize ) ; \n }", "msg_token": "remove extraneous space"} {"diff": " public static Object eval ( Object form ) throws Exception { \n } \n try \n { \n - Expr expr = analyze ( C . EVAL , form ) ; \n - return expr . eval ( ) ; \n + if ( form instanceof IPersistentCollection ) \n + { \n + FnExpr fexpr = ( FnExpr ) analyze ( C . EXPRESSION , RT . list ( FN , PersistentVector . EMPTY , form ) , STRING0 ) ; \n + IFn fn = ( IFn ) fexpr . eval ( ) ; \n + return fn . invoke ( ) ; \n + } \n + else \n + { \n + Expr expr = analyze ( C . EVAL , form ) ; \n + return expr . eval ( ) ; \n + } \n } \n finally \n {", "msg_token": "wrapped all non atomic evals in fn"} {"diff": " import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DownloadIndexActivity extends OsmandExpandableListActivity { \n parent . mkdirs ( ) ; \n SINGLE \n if ( preventMediaIndexing ) { \n - new File ( parent , STRING0 ) . createNewFile ( ) ; SINGLE \n + try { \n + new File ( parent , STRING0 ) . createNewFile ( ) ; SINGLE \n + } catch ( IOException e ) { \n + SINGLE \n + } \n } \n } \n final DownloadEntry entry ;", "msg_token": "Fix compilation error"} {"diff": " public class WorkerTaskMonitor \n return ; \n } \n \n + log . info ( STRING0 , task . getId ( ) ) ; \n + \n exec . submit ( \n new Runnable ( ) \n {", "msg_token": "Add log message"} {"diff": " public class MasterImpl implements Master \n } \n else \n { \n - throw new IllegalStateException ( STRING0 + txId + STRING1 ) ; \n + throw new IllegalStateException ( STRING0 + txId + \n + STRING2 + \n + STRING3 + \n + STRING4 ) ; \n } \n } \n else", "msg_token": "Improved exception message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ActionBarView extends ViewGroup { \n Context context = getContext ( ) ; \n if ( context instanceof Activity ) { \n Activity activity = ( Activity ) context ; \n - activity . onOptionsItemSelected ( mLogoNavItem ) ; \n + activity . onMenuItemSelected ( Window . FEATURE_OPTIONS_PANEL , mLogoNavItem ) ; \n } \n } \n } ) ; \n public class PhoneWindow extends Window implements MenuBuilder . Callback { \n public final void openPanel ( int featureId , KeyEvent event ) { \n if ( featureId == FEATURE_OPTIONS_PANEL && mActionBar != null && \n mActionBar . isOverflowReserved ( ) ) { \n + SINGLE \n + invalidatePanelMenu ( FEATURE_OPTIONS_PANEL ) ; \n mActionBar . showOverflowMenu ( ) ; \n } else { \n openPanel ( getPanelState ( featureId , true ) , event ) ;", "msg_token": "Fix a couple interactions between action bar and options menus"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public enum DataSourceType { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n GAUGE , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COUNTER , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n INFORMATIONAL \n }", "msg_token": "add some comments"} {"diff": " public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \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 public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \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 public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \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", "msg_token": "Improved the javadoc documentation by adding more fileTree samples"} {"diff": " public class ScriptContext extends FieldOwnerContext < ClassDescriptor > { \n } \n return STRING0 + ( index + NUMBER0 ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING1 + getContextDescriptor ( ) . getName ( ) . asString ( ) ; \n + } \n }", "msg_token": "Minor add ScriptContext toString"} {"diff": " public class AudioManager { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - private void adjustMasterVolume ( int direction , int flags ) { \n + public void adjustMasterVolume ( int direction , int flags ) { \n IAudioService service = getService ( ) ; \n try { \n service . adjustMasterVolume ( direction , flags ) ;", "msg_token": "Make AudioManager adjustMasterVolume public and hidden"} {"diff": " public class DashboardServiceImplTest { \n \n @ before \n public void setUpService ( ) throws Exception { \n - this . dashboardService = new DashboardServiceImpl ( mongoRule . getMongoConnection ( ) , metricRegistry , searches , dashboardWidgetCreator ) ; \n + this . dashboardService = new DashboardServiceImpl ( mongoRule . getMongoConnection ( ) , dashboardWidgetCreator ) ; \n } \n \n @ test", "msg_token": "Fix test initialization"} {"diff": " public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class QueuedKeyedResourcePool < K , V > extends KeyedResourcePool < K , V > { \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 COMMENT \n COMMENT \n COMMENT \n public class ExceededQuotaSlopTest { \n SINGLE \n setGetPutQuotasForEachServer ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Adding comments to illustrate a problem"} {"diff": " public final class ContactsContract { \n Uri . withAppendedPath ( AUTHORITY_URI , STRING0 ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final Uri CORP_CONTENT_URI = \n + Uri . withAppendedPath ( AUTHORITY_URI , STRING1 ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final Uri PROFILE_CONTENT_URI =", "msg_token": "Add RawContactsEntity CORP_CONTENT_URI"} {"diff": " class NetworkManagementService extends INetworkManagementService . Stub { \n } \n \n private String convertQuotedString ( String s ) { \n - COMMENT \n - return STRING0 + s . replaceAll ( STRING1 , STRING2 ) . replaceAll ( STRING3 , STRING4 ) + STRING0 ; \n + if ( s == null ) { \n + return s ; \n + } \n + COMMENT \n + return STRING0 + s . replaceAll ( STRING1 , STRING2 ) . replaceAll ( STRING3 , STRING4 ) + STRING0 ; \n } \n \n public void stopAccessPoint ( ) throws IllegalStateException {", "msg_token": "Fix null pointer exception"} {"diff": " public class LauncherServices implements PluginServiceRegistry { \n } \n \n public void registerBuildSessionServices ( ServiceRegistration registration ) { \n + registration . addProvider ( new ToolingBuildSessionScopeServices ( ) ) ; \n } \n \n public void registerBuildServices ( ServiceRegistration registration ) { \n - registration . addProvider ( new ToolingBuildScopeServices ( ) ) ; \n + \n } \n \n public void registerGradleServices ( ServiceRegistration registration ) { \n public class LauncherServices implements PluginServiceRegistry { \n \n } \n \n - static class ToolingBuildScopeServices { \n + static class ToolingBuildSessionScopeServices { \n PayloadClassLoaderFactory createClassLoaderFactory ( ClassLoaderFactory classLoaderFactory , JarCache jarCache , CacheRepository cacheRepository ) { \n return new DaemonSidePayloadClassLoaderFactory ( \n new ModelClassLoaderFactory (", "msg_token": "Move PayloadSerializer from build scope to build session scope"} {"diff": " public final class SkylarkRuleContext { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 ) \n + + STRING4 \n + + STRING5 \n + + STRING6 ) \n public SkylarkClassObject getFile ( ) { \n return fileObject ; \n } \n public final class SkylarkRuleContext { \n doc = STRING7 \n + STRING8 \n + STRING9 \n - + STRING10 ) \n + + STRING10 \n + + STRING5 \n + + STRING11 ) \n public SkylarkClassObject getFiles ( ) { \n return filesObject ; \n }", "msg_token": "Clarify Skylark doc for ctx files and ctx file"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove Override that chokes Doclava"} {"diff": " public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n if ( mFocusedNode . mHasFocus && ! mWebView . isInTouchMode ( ) ) { \n return ! mFocusedNode . mEditable ; \n } \n - if ( mInitialHitTestResult . getType ( ) == HitTestResult . UNKNOWN_TYPE ) { \n + if ( mFocusedNode . mHasFocus && mFocusedNode . mEditable ) { \n return false ; \n } \n long delay = System . currentTimeMillis ( ) - mTouchHighlightRequested ;", "msg_token": "Fix focus rings for buttons"} {"diff": " public class Reporter { \n \n public void missingMethodInvocation ( ) { \n throw new MissingMethodInvocationException ( join ( \n - STRING0 , \n + STRING1 , \n STRING2 , \n STRING3 , \n STRING4 , \n - STRING5 , \n - STRING6 , \n - STRING4 \n + STRING7 , \n + STRING8 , \n + STRING9 , \n + STRING10 \n ) ) ; \n } \n \n public class Reporter { \n \n public void nullPassedToVerify ( ) { \n throw new NullInsteadOfMockException ( join ( \n - STRING11 , \n + STRING12 , \n STRING13 , \n STRING14 , \n STRING15 , \n public class ModellingDescriptiveMessagesTest extends TestBase { \n \n @ test \n public void shouldMentionFinalAndObjectMethodsWhenMissingMockCall ( ) { \n - when ( mock . equals ( null ) ) . thenReturn ( false ) ; \n + when ( STRING4 . equals ( null ) ) . thenReturn ( false ) ; \n } \n \n @ test", "msg_token": "Tuned the error messages slightly"} {"diff": " public class DevicePolicyManager { \n } \n \n COMMENT \n + @ systemapi \n public String getDeviceOwner ( ) { \n if ( mService != null ) { \n try { \n public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public ComponentName getProfileOwner ( ) throws IllegalArgumentException { \n return getProfileOwnerAsUser ( Process . myUserHandle ( ) . getIdentifier ( ) ) ; \n }", "msg_token": "Marking the methods to get Profile Device Owner with SystemApi"} {"diff": " public class EditorConfigNotifierProvider extends EditorNotifications . Provider < E \n } \n } . text ( STRING0 ) . \n icon ( EditorconfigIcons . Editorconfig ) ; \n - panel . createActionLabel ( STRING1 , new Runnable ( ) { \n + panel . createActionLabel ( STRING2 , new Runnable ( ) { \n @ override \n public void run ( ) { \n - settings . getCustomSettings ( EditorConfigSettings . class ) . ENABLED = false ; \n + PropertiesComponent . getInstance ( project ) . setValue ( EDITOR_CONFIG_ACCEPTED , STRING3 ) ; \n EditorNotifications . getInstance ( project ) . updateAllNotifications ( ) ; \n } \n } ) ; \n - panel . createActionLabel ( STRING4 , new Runnable ( ) { \n + panel . createActionLabel ( STRING1 , new Runnable ( ) { \n @ override \n public void run ( ) { \n - PropertiesComponent . getInstance ( project ) . setValue ( EDITOR_CONFIG_ACCEPTED , STRING3 ) ; \n + settings . getCustomSettings ( EditorConfigSettings . class ) . ENABLED = false ; \n EditorNotifications . getInstance ( project ) . updateAllNotifications ( ) ; \n } \n } ) ;", "msg_token": "make labels more consistent with other formatter notifications"} {"diff": " public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public int getUnderlineColor ( ) { \n SINGLE", "msg_token": "Hide method to fix the build"} {"diff": " \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class BlockFluidClassic extends BlockFluidBase \n return false ; \n } \n \n - if ( this . density > getDensity ( world , x , y , z ) ) \n + int density = getDensity ( world , x , y , z ) ; \n + if ( density == Integer . MAX_VALUE ) \n + { \n + return true ; \n + } \n + \n + if ( this . density > density ) \n { \n - return true ; \n + return true ; \n } \n else \n {", "msg_token": "Fixed Classic Checking"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class GitMergeOperation extends GitBranchOperation { \n switch ( myDeleteOnMerge ) { \n case DELETE : \n super . notifySuccess ( message ) ; \n - GitBrancher brancher = ServiceManager . getService ( myProject , GitBrancher . class ) ; \n - brancher . deleteBranch ( myBranchToMerge , new ArrayList < GitRepository > ( getRepositories ( ) ) ) ; \n + ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { SINGLE \n + @ override \n + public void run ( ) { \n + GitBrancher brancher = ServiceManager . getService ( myProject , GitBrancher . class ) ; \n + brancher . deleteBranch ( myBranchToMerge , new ArrayList < GitRepository > ( getRepositories ( ) ) ) ; \n + } \n + } ) ; \n break ; \n case PROPOSE : \n String description = message + STRING0 + myBranchToMerge + STRING1 ;", "msg_token": "git Start the background task from the EDT"} {"diff": " public class RebuildIndexRangesJob extends SystemJob { \n \n try { \n ranges . add ( calculateRange ( index ) ) ; \n - Thread . sleep ( NUMBER0 ) ; \n } catch ( EmptyIndexException e ) { \n LOG . info ( STRING0 , index ) ; \n continue ;", "msg_token": "remove debug sleep statement"} {"diff": " public final class RingBuffer < E > implements Cursored , DataProvider < E > \n { \n sequencer . publish ( sequence ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public long remainingCapacity ( ) \n + { \n + return sequencer . remainingCapacity ( ) ; \n + } \n + \n \n private void translateAndPublish ( EventTranslator < E > translator , long sequence ) \n {", "msg_token": "Add remainingCapacity to RingBuffer"} {"diff": " public class BlobPage extends RepositoryPage { \n } \n } \n \n - SINGLE \n - RevCommit commit = JGitUtils . getCommit ( r , objectId ) ; \n + RevCommit commit = getCommit ( ) ; \n \n SINGLE \n add ( new BookmarkablePageLink < Void > ( STRING0 , BlamePage . class ,", "msg_token": "Redirect to log page is the blobpage references a commit we can t find"} {"diff": " import NAMESPACE ; \n public class InputFilesTaskStateChanges extends AbstractNamedFileSnapshotTaskStateChanges { \n public InputFilesTaskStateChanges ( TaskExecution previous , TaskExecution current , TaskInternal task , FileCollectionSnapshotter snapshotter ) { \n super ( task . getName ( ) , previous , current , snapshotter , true , STRING0 , task . getInputs ( ) . getFileProperties ( ) ) ; \n + SINGLE \n + current . setInputFilesSnapshot ( getCurrent ( ) ) ; \n } \n \n @ override \n public class InputFilesTaskStateChanges extends AbstractNamedFileSnapshotTaskSta \n \n @ override \n public void saveCurrent ( ) { \n - SINGLE \n - current . setInputFilesSnapshot ( getCurrent ( ) ) ; \n + SINGLE \n } \n \n @ override", "msg_token": "Save input files state upon construction"} {"diff": " public class ActionButton extends JComponent implements ActionButtonComponent { \n protected void processMouseEvent ( MouseEvent e ) { \n super . processMouseEvent ( e ) ; \n if ( e . isConsumed ( ) ) return ; \n - boolean flag = e . isMetaDown ( ) ; \n + boolean skipPress = e . isMetaDown ( ) || e . getButton ( ) != MouseEvent . BUTTON1 ; \n switch ( e . getID ( ) ) { \n case MouseEvent . MOUSE_PRESSED : \n - if ( flag || ! isButtonEnabled ( ) ) return ; \n + if ( skipPress || ! isButtonEnabled ( ) ) return ; \n myMouseDown = true ; \n ourGlobalMouseDown = true ; \n repaint ( ) ; \n break ; \n \n case MouseEvent . MOUSE_RELEASED : \n - if ( flag || ! isButtonEnabled ( ) ) return ; \n + if ( skipPress || ! isButtonEnabled ( ) ) return ; \n myMouseDown = false ; \n ourGlobalMouseDown = false ; \n if ( myRollover ) {", "msg_token": "ignore middle button clicks"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove wildcard from import statements in FileAppenderFactory"} {"diff": " public class WebSocketRedeployTest \n { \n server = new Server ( ) ; \n SelectChannelConnector connector = new SelectChannelConnector ( ) ; \n - connector . setPort ( NUMBER0 ) ; \n + SINGLE \n server . addConnector ( connector ) ; \n \n HandlerCollection handlers = new HandlerCollection ( ) ;", "msg_token": "Using a random port for the tests"} {"diff": " public class PsiElementFactoryImpl extends PsiJavaParserFacadeImpl implements Ps \n final Project project = myManager . getProject ( ) ; \n final Lexer lexer = parserDefinition . createLexer ( project ) ; \n final PsiBuilder builder = PsiBuilderFactory . getInstance ( ) . createBuilder ( project , holder , lexer , language , text ) ; \n - parserDefinition . createParser ( project ) . parse ( type , builder ) ; \n - final ASTNode node = builder . getTreeBuilt ( ) ; \n + final ASTNode node = parserDefinition . createParser ( project ) . parse ( type , builder ) ; \n holder . rawAddChildren ( ( TreeElement ) node ) ; \n return node . getPsi ( ) ; \n }", "msg_token": "don t call getTreeBuilt twice"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ; \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "WebHCatJTShim implementations are missing Apache license headers Jarek Jarcec Cecho via Brock Noland Thejas Nair"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class TwoWayLayoutManager extends LayoutManager { \n - private static final String LOGTAG = STRING0 ; \n + private static final String LOGTAG = STRING1 ; \n \n public static enum Orientation { \n HORIZONTAL ,", "msg_token": "core Fix TwoWayLayoutManager s LOGTAG"} {"diff": " public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto \n \n @ override \n public void preInstantiateSingletons ( ) throws BeansException { \n - if ( this . logger . isInfoEnabled ( ) ) { \n - this . logger . info ( STRING0 + this ) ; \n + if ( this . logger . isDebugEnabled ( ) ) { \n + this . logger . debug ( STRING0 + this ) ; \n } \n List < String > beanNames ; \n synchronized ( this . beanDefinitionMap ) {", "msg_token": "Turn down logging in DefaultListableBeanFactory"} {"diff": " public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > imple \n } \n \n private void installHooks ( ) { \n + hooks . clear ( ) ; \n registerHook ( new OClassTrigger ( this ) , ORecordHook . HOOK_POSITION . FIRST ) ; \n registerHook ( new ORestrictedAccessHook ( this ) , ORecordHook . HOOK_POSITION . FIRST ) ; \n registerHook ( new OUserTrigger ( this ) , ORecordHook . HOOK_POSITION . EARLY ) ;", "msg_token": "Fixed issue of where hooks were duplicated"} {"diff": " public class ConfigurationTest { \n \n long longBytesValue = \n sDefaultConfiguration . getBytes ( Constants . USER_BLOCK_REMOTE_READ_BUFFER_SIZE_BYTES ) ; \n - Assert . assertEquals ( Constants . KB * NUMBER0 , longBytesValue ) ; \n + Assert . assertEquals ( Constants . MB * NUMBER1 , longBytesValue ) ; \n \n longBytesValue = sDefaultConfiguration . getBytes ( Constants . NETWORK_THRIFT_FRAME_SIZE_BYTES_MAX ) ; \n Assert . assertEquals ( Constants . MB * NUMBER2 , longBytesValue ) ; \n public class ConfigurationTest { \n Assert . assertEquals ( Constants . MB , longValue ) ; \n \n longValue = sDefaultConfiguration . getBytes ( Constants . USER_BLOCK_REMOTE_READ_BUFFER_SIZE_BYTES ) ; \n - Assert . assertEquals ( NUMBER0 * Constants . KB , longValue ) ; \n + Assert . assertEquals ( NUMBER1 * Constants . MB , longValue ) ; \n } \n \n COMMENT", "msg_token": "Revert SMALLFIX Fix configuration test due to a default value change"} {"diff": " public class JGroupsExtension implements Extension { \n stacks . registerOperationHandler ( ModelKeys . REMOVE_PROTOCOL , StackConfigOperationHandlers . PROTOCOL_REMOVE , JGroupsSubsystemProviders . PROTOCOL_REMOVE ) ; \n SINGLE \n if ( context . isRuntimeOnlyRegistrationValid ( ) ) { \n - final EnumSet < OperationEntry . Flag > readOnly = EnumSet . of ( OperationEntry . Flag . READ_ONLY ) ; \n + final EnumSet < OperationEntry . Flag > readOnly = EnumSet . of ( OperationEntry . Flag . READ_ONLY , OperationEntry . Flag . RUNTIME_ONLY ) ; \n stacks . registerOperationHandler ( ModelKeys . EXPORT_NATIVE_CONFIGURATION , StackConfigOperationHandlers . EXPORT_NATIVE_CONFIGURATION , JGroupsSubsystemProviders . EXPORT_NATIVE_CONFIGURATION , readOnly ) ; \n }", "msg_token": "Add RUNTIME_ONLY flag to export native configuration op"} {"diff": " public class ExecutionGraph { \n int nextPos = nextVertexToFinish ; \n if ( nextPos >= verticesInCreationOrder . size ( ) ) { \n SINGLE \n - LOG . error ( STRING0 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n return ; \n }", "msg_token": "Remove error message in execution graph for concurrent state changes that are fully acceptable"} {"diff": " public class BreakpointMasterDetailPopupBuilder { \n private Set < XBreakpointGroupingRule > myRulesEnabled = new TreeSet < XBreakpointGroupingRule > ( new Comparator < XBreakpointGroupingRule > ( ) { \n @ override \n public int compare ( XBreakpointGroupingRule o1 , XBreakpointGroupingRule o2 ) { \n - return o2 . getPriority ( ) - o1 . getPriority ( ) ; \n + final int res = o2 . getPriority ( ) - o1 . getPriority ( ) ; \n + return res != NUMBER0 ? res : ( o1 . getId ( ) . compareTo ( o2 . getId ( ) ) ) ; \n } \n } ) ;", "msg_token": "TreeSet collapses different breakpoint groups with equal priorities"} {"diff": " public abstract class BaseSprite extends BaseRectangle { \n return this . mTextureRegion ; \n } \n \n - public void setTextureRegionFlippedHorizontal ( final boolean pFlippedHorizontal ) { \n + public void setFlippedHorizontal ( final boolean pFlippedHorizontal ) { \n this . mTextureRegion . setFlippedHorizontal ( pFlippedHorizontal ) ; \n } \n \n - public void setTextureRegionFlippedVertical ( final boolean pFlippedVertical ) { \n + public void setFlippedVertical ( final boolean pFlippedVertical ) { \n this . mTextureRegion . setFlippedVertical ( pFlippedVertical ) ; \n }", "msg_token": "Simplified methodnaming of previous commit"} {"diff": " public class ClasspathPanel extends JPanel { \n upButton . setEnabled ( minRow > NUMBER0 && minRow < myEntryTable . getRowCount ( ) ) ; \n downButton . setEnabled ( maxRow >= NUMBER0 && maxRow < myEntryTable . getRowCount ( ) - NUMBER1 ) ; \n removeButton . setEnabled ( removeButtonEnabled ) ; \n - myEditButton . setEnabled ( selectedRows . length == NUMBER1 && myModel . getItemAt ( selectedRows [ NUMBER0 ] ) instanceof LibItem ) ; \n + TableItem selectedItem = selectedRows . length == NUMBER1 ? myModel . getItemAt ( selectedRows [ NUMBER0 ] ) : null ; \n + myEditButton . setEnabled ( selectedItem instanceof LibItem && selectedItem . isEditable ( ) ) ; \n } \n } ) ;", "msg_token": "disable editing of non editable entries"} {"diff": " public class Element { \n } else { \n match = posToken . equals ( token . getPOSTag ( ) ) ; \n } \n + if ( ! match && UNKNOWN_TAG . equals ( posToken ) ) { SINGLE \n + match = JLanguageTool . SENTENCE_END_TAGNAME . equals ( token . getPOSTag ( ) ) \n + || JLanguageTool . PARAGRAPH_END_TAGNAME . equals ( token . getPOSTag ( ) ) ; \n + } \n return match ; \n }", "msg_token": "fix a small bug"} {"diff": " public class JavaSourceProcessor extends BaseSourceProcessor { \n STRING0 , STRING1 , STRING2 , \n STRING3 , STRING4 , STRING5 , \n STRING6 , STRING7 , STRING8 , \n - STRING9 , STRING10 \n + STRING11 , STRING9 , \n + STRING10 \n } ) ; \n \n immutableFieldTypes . addAll ( getPropertyList ( STRING12 ) ) ;", "msg_token": "SourceFormatter auto capitalizes static java lang reflect Field and Method"} {"diff": " public class WorkflowEngine implements ServerComponent { \n \n Preconditions . checkState ( verifyConditions ( review , context , workflow . getConditions ( commandKey ) ) , STRING0 ) ; \n \n - ImmutableMap < String , String > immutableParameters = ImmutableMap . copyOf ( parameters ) ; \n + Map < String , String > immutableParameters = ImmutableMap . copyOf ( parameters ) ; \n \n SINGLE \n Review initialReview = ( ( DefaultReview ) review ) . cloneImmutable ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public final class HasProjectPropertyCondition extends ProjectPropertyCondition \n @ override \n public boolean doVerify ( Review review , WorkflowContext context ) { \n Settings settings = context . getProjectSettings ( ) ; \n - return settings . hasKey ( getPropertyKey ( ) ) || settings . getDefaultValue ( getPropertyKey ( ) ) != null ; \n + return settings . hasKey ( getPropertyKey ( ) ) || settings . getDefaultValue ( getPropertyKey ( ) ) != null ; \n } \n }", "msg_token": "Fix minor quality flaws"} {"diff": " public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > > \n \n if ( videoStream != null ) \n { \n - videoStream . setDirection ( direction ) ; \n - videoStream . setMute ( true ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + videoStream . setDirection ( MediaDirection . INACTIVE ) ; \n + SINGLE \n + SINGLE \n } \n } \n COMMENT", "msg_token": "Set video direction to INACTIVE when using local hold because currently we cannot mute video streams"} {"diff": " public class JvmMonitorService extends AbstractLifecycleComponent < JvmMonitorServ \n } \n \n @ override public void run ( ) { \n - monitorDeadlock ( ) ; \n + SINGLE \n monitorLongGc ( ) ; \n }", "msg_token": "remove monitoring dead locks"} {"diff": " public class GraphDatabaseConfiguration { \n COMMENT \n COMMENT \n public static final String PORT_KEY = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String AUTH_USERNAME_KEY = STRING1 ; \n + public static final String AUHT_PASSWORD_KEY = STRING2 ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added username password config options"} {"diff": " public final class JSDocInfoPrinter { \n if ( info . isConstant ( ) ) { \n sb . append ( STRING0 ) ; \n } \n + if ( info . isExport ( ) ) { \n + sb . append ( STRING1 ) ; \n + } \n if ( info . isDeprecated ( ) ) { \n sb . append ( STRING2 ) ; \n sb . append ( info . getDeprecationReason ( ) + STRING3 ) ;", "msg_token": "Print export annotations in the JSDocInfoPrinter"} {"diff": " public class WPWebViewActivity extends WebViewActivity { \n SINGLE \n SINGLE \n if ( ! TextUtils . isEmpty ( addressToLoad ) && addressToLoad . endsWith ( STRING0 ) ) { \n - int indexOf = addressToLoad . lastIndexOf ( STRING0 ) ; \n - SINGLE \n + SINGLE \n allowedURL . add ( addressToLoad . substring ( NUMBER0 , addressToLoad . length ( ) - NUMBER1 ) ) ; \n } \n }", "msg_token": "Remove unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LineChartActivity extends ActionBarActivity { \n if ( id == R . id . action_toggle_bezier ) { \n toggleBezier ( ) ; \n chart . setLineChartData ( data ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + Viewport v = chart . getMaxViewport ( ) ; \n + float dy = v . height ( ) * FLOAT0 ; SINGLE \n + v . inset ( NUMBER0 , - dy ) ; \n + chart . setMaxViewport ( v ) ; \n + chart . setViewport ( v , true ) ; \n return true ; \n } \n if ( id == R . id . action_toggle_area ) {", "msg_token": "Setting bigger viewport for cubic lines"} {"diff": " public final class LoggerInfoStream extends InfoStream { \n } \n \n public void message ( String component , String message ) { \n - logger . trace ( STRING0 , component , message ) ; \n + logger . trace ( STRING1 , Thread . currentThread ( ) . getName ( ) , component , message ) ; \n } \n \n public boolean isEnabled ( String component ) {", "msg_token": "include thread name when logging IndexWriter s infoStream messages"} {"diff": " public class DispatchCommand extends BaseCommand { \n } \n CommandMetaData meta = cmd . getAnnotation ( CommandMetaData . class ) ; \n if ( meta . admin ( ) && user . canAdmin ( ) ) { \n - log . debug ( MessageFormat . format ( STRING0 , meta . name ( ) , user . username ) ) ; \n + log . debug ( MessageFormat . format ( STRING1 , meta . name ( ) , user . username ) ) ; \n return ; \n } \n commands . add ( cmd ) ;", "msg_token": "Fix message formatting"} {"diff": " public class SkylarkRuleImplementationFunctions { \n Boolean collectData , Boolean collectDefault , \n Location loc ) throws EvalException , ConversionException { \n Runfiles . Builder builder = new Runfiles . Builder ( ) ; \n + builder . setSuffix ( ctx . getWorkspaceName ( ) ) ; \n if ( EvalUtils . toBoolean ( collectData ) ) { \n builder . addRunfiles ( ctx . getRuleContext ( ) , RunfilesProvider . DATA_RUNFILES ) ; \n }", "msg_token": "Always set Runfiles suffix in runfiles Skylark function"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class TransferTable { \n + public class TransferTable implements Serializable { \n + \n + private static final long serialVersionUID = NUMBER0 ; \n + \n public static final int UNKNOWN_TRANSFER = - NUMBER1 ; \n \n public static final int PREFERRED_TRANSFER = - NUMBER2 ;", "msg_token": "make transfers serializable oops"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SimpleDialogFragment extends BaseDialogFragment { \n \n - protected static String ARG_MESSAGE = STRING0 ; \n - protected static String ARG_TITLE = STRING1 ; \n - protected static String ARG_POSITIVE_BUTTON = STRING2 ; \n - protected static String ARG_NEGATIVE_BUTTON = STRING3 ; \n - protected static String ARG_NEUTRAL_BUTTON = STRING4 ; \n + protected final static String ARG_MESSAGE = STRING0 ; \n + protected final static String ARG_TITLE = STRING1 ; \n + protected final static String ARG_POSITIVE_BUTTON = STRING2 ; \n + protected final static String ARG_NEGATIVE_BUTTON = STRING3 ; \n + protected final static String ARG_NEUTRAL_BUTTON = STRING4 ; \n \n protected int mRequestCode ;", "msg_token": "Making field final"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBaseIntentionAction implements Iconable { \n + public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBaseIntentionAction implements Iconable , LowPriorityAction { \n public static final Icon REFACTORING_BULB = IconLoader . getIcon ( STRING0 ) ; \n @ override \n public boolean isAvailable ( @ notnull Project project , Editor editor , @ notnull PsiElement element ) { \n final PsiParameter parameter = PsiTreeUtil . getParentOfType ( element , PsiParameter . class ) ; \n if ( parameter != null ) { \n + if ( ! parameter . getLanguage ( ) . isKindOf ( StdLanguages . JAVA ) ) return false ; \n final PsiElement declarationScope = parameter . getDeclarationScope ( ) ; \n if ( declarationScope instanceof PsiMethod ) { \n final PsiMethod method = ( PsiMethod ) declarationScope ;", "msg_token": "disable intention in scala low priority"} {"diff": " public final class H2O { \n startupFinalize ( ) ; SINGLE \n Log . POST ( NUMBER0 , STRING0 ) ; \n \n - postStartupGAEvents ( ) ; \n + if ( SELF == H2O . CLOUD . _memary [ NUMBER1 ] ) SINGLE \n + postStartupGAEvents ( ) ; \n } \n \n COMMENT \n public class GoogleAnalytics { \n config . getRequestParameterDiscoverer ( ) . discoverParameters ( config , defaultRequest ) ; \n } \n \n - Log . info ( STRING1 + config + STRING2 + defaultRequest ) ; \n + Log . debug ( STRING1 + config + STRING2 + defaultRequest ) ; \n \n this . config = config ; \n this . defaultRequest = defaultRequest ;", "msg_token": "Only one node reports the cloud size and hadoop version now"} {"diff": " public class DefaultCacheAccess implements CacheAccess { \n this ( cacheDisplayName , lockFile , lockManager , new CacheAccessOperationsStack ( ) ) ; \n } \n \n - public DefaultCacheAccess ( String cacheDisplayName , File lockFile , FileLockManager lockManager , CacheAccessOperationsStack operations ) { \n + DefaultCacheAccess ( String cacheDisplayName , File lockFile , FileLockManager lockManager , CacheAccessOperationsStack operations ) { \n this . cacheDiplayName = cacheDisplayName ; \n this . lockFile = lockFile ; \n this . lockManager = lockManager ;", "msg_token": "Reduced visibility of the constructor"} {"diff": " public final class Settings { \n public static final String ENHANCED_4G_MODE_ENABLED = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String LTE_SERVICE_FORCED = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DatabaseHelper extends SQLiteOpenHelper { \n SINGLE \n SINGLE \n int type ; \n - type = SystemProperties . getInt ( STRING2 , \n - RILConstants . PREFERRED_NETWORK_MODE ) ; \n + type = RILConstants . PREFERRED_NETWORK_MODE ; \n loadSetting ( stmt , Settings . Global . PREFERRED_NETWORK_MODE , type ) ; \n \n SINGLE \n package NAMESPACE ; \n COMMENT \n COMMENT \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public interface RILConstants { \n COMMENT \n COMMENT \n COMMENT \n - int PREFERRED_NETWORK_MODE = NETWORK_MODE_WCDMA_PREF ; \n + int PREFERRED_NETWORK_MODE = SystemProperties . getInt ( STRING2 , \n + NETWORK_MODE_WCDMA_PREF ) ; \n \n int CDMA_CELL_BROADCAST_SMS_DISABLED = NUMBER0 ; \n int CDMA_CELL_BROADCAST_SMS_ENABLED = NUMBER1 ;", "msg_token": "Adding new setting LTE_SERVICE_FORCED"} {"diff": " public class CypherDocIT extends AbstractRestFunctionalTestBase { \n assertThat ( ( ( String ) responseMap . get ( STRING0 ) ) , containsString ( STRING1 ) ) ; \n } \n \n - private String cypherRestCall ( String script , Status status , Pair < String , String > . . . params ) \n + @ safevarargs \n + private final String cypherRestCall ( String script , Status status , Pair < String , String > . . . params ) \n { \n return doCypherRestCall ( cypherUri ( ) , script , status , params ) ; \n }", "msg_token": "Add SafeVarargs in CypherDocIT to get rid of some warnings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unnecessary javascript import in CgRuleConverter"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed cs issues"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + @ runwith ( HazelcastParallelClassRunner . class ) \n + @ category ( { QuickTest . class , ParallelTest . class } ) \n @ suppresswarnings ( STRING0 ) \n public class MapKeyLoaderUtilTest {", "msg_token": "Added missing annotations to MapKeyLoaderUtilTest"} {"diff": " public final class SkyKey implements Serializable { \n return false ; \n } \n SkyKey other = ( SkyKey ) obj ; \n + if ( hashCode ( ) != other . hashCode ( ) ) { \n + return false ; \n + } \n return functionName . equals ( other . functionName ) && argument . equals ( other . argument ) ; \n }", "msg_token": "Use the precomputed skykey hash to short circuit equality comparison"} {"diff": " public class AsyncHttpClient { \n ConnManagerParams . setMaxTotalConnections ( httpParams , DEFAULT_MAX_CONNECTIONS ) ; \n \n HttpConnectionParams . setSoTimeout ( httpParams , socketTimeout ) ; \n + HttpConnectionParams . setConnectionTimeout ( httpParams , socketTimout ) ; \n HttpConnectionParams . setTcpNoDelay ( httpParams , true ) ; \n HttpConnectionParams . setSocketBufferSize ( httpParams , DEFAULT_SOCKET_BUFFER_SIZE ) ;", "msg_token": "Add http timeout as well as socket timeout"} {"diff": " public class QueryResource \n \n requestLogger . log ( \n new RequestLogLine ( \n - new DateTime ( ) , \n + new DateTime ( start ) , \n req . getRemoteAddr ( ) , \n theQuery , \n new QueryStats ( \n public class QueryResource \n ) ; \n requestLogger . log ( \n new RequestLogLine ( \n - new DateTime ( ) , \n + new DateTime ( start ) , \n req . getRemoteAddr ( ) , \n query , \n new QueryStats ( \n public class QueryResource \n ) ; \n requestLogger . log ( \n new RequestLogLine ( \n - new DateTime ( ) , \n + new DateTime ( start ) , \n req . getRemoteAddr ( ) , \n query , \n new QueryStats ( ImmutableMap . < String , Object > of (", "msg_token": "request log should reflect time the query was received as opposed to processed"} {"diff": " public class GpxSelectionHelper { \n name += STRING0 ; \n name += GpxUiHelper . getColorValue ( speedClr , OsmAndFormatter . getFormattedSpeed ( analysis . avgSpeed , app ) ) ; \n } \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + if ( analysis . isElevationSpecified ( ) ) { \n + if ( name . length ( ) != NUMBER0 ) \n + name += STRING0 ; \n + name += GpxUiHelper . getColorValue ( descClr , OsmAndFormatter . getFormattedAlt ( analysis . minElevation , app ) ) ; \n + name += STRING1 ; \n + name += GpxUiHelper . getColorValue ( ascClr , OsmAndFormatter . getFormattedAlt ( analysis . maxElevation , app ) ) ; \n + } \n if ( analysis . isElevationSpecified ( ) && ( analysis . diffElevationUp > eleThreshold || \n analysis . diffElevationDown > eleThreshold ) ) { \n if ( name . length ( ) != NUMBER0 )", "msg_token": "add min max elevation data to split track analysis to facilitate easier track segment identification"} {"diff": " public class CVSRepositoryTest { \n COMMENT \n @ test \n public void getDirectoryHistoryParser ( ) { \n - Class < ? extends HistoryParser > expResult = CVSHistoryParser . class ; \n - SINGLE \n - Class result = null ; \n - assertEquals ( expResult , result ) ; \n + Class < ? extends HistoryParser > result = instance . getDirectoryHistoryParser ( ) ; \n + assertNull ( result ) ; \n } \n \n COMMENT", "msg_token": "Fix test failure"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface CometFilter { \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface CometFilterChain {", "msg_token": "Completed author tags"} {"diff": " public class PrimitiveTypeUtils \n { \n return Integer . class . isAssignableFrom ( type ) || int . class . isAssignableFrom ( type ) ; \n } \n + private PrimitiveTypeUtils ( ) \n + { \n + } \n }", "msg_token": "fixed BackgroundAttribute bug"} {"diff": " public class BroadcasterLifeCyclePolicy { \n public enum ATMOSPHERE_RESOURCE_POLICY { \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n IDLE , \n public class BroadcasterLifeCyclePolicy { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n IDLE_DESTROY , \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + IDLE_RESUME , \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a new Policy that also resume all suspended AtmosphereResource"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public interface LoadingCache < K , V > extends Cache < K , V > , Function < K , V > { \n COMMENT \n COMMENT \n void refresh ( K key ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + ConcurrentMap < K , V > asMap ( ) ; \n }", "msg_token": "specify that asMap never auto loads entries"} {"diff": " public class PatchFixes { \n } \n \n public static byte [ ] runPostCompiler ( byte [ ] bytes , String fileName ) { \n + if ( System . getProperty ( STRING0 , null ) != null ) return bytes ; \n byte [ ] transformed = PostCompiler . applyTransformations ( bytes , fileName , DiagnosticsReceiver . CONSOLE ) ; \n return transformed == null ? bytes : transformed ; \n } \n \n public static OutputStream runPostCompiler ( OutputStream out ) throws IOException { \n + if ( System . getProperty ( STRING0 , null ) != null ) return out ; \n return PostCompiler . wrapOutputStream ( out , STRING1 , DiagnosticsReceiver . CONSOLE ) ; \n } \n \n public static BufferedOutputStream runPostCompiler ( BufferedOutputStream out , String path , String name ) throws IOException { \n + if ( System . getProperty ( STRING0 , null ) != null ) return out ; \n String fileName = path + STRING2 + name ; \n return new BufferedOutputStream ( PostCompiler . wrapOutputStream ( out , fileName , DiagnosticsReceiver . CONSOLE ) ) ; \n }", "msg_token": "added support for lombok disablePostCompiler"} {"diff": " \n + package NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eclipse hates it when there s no package info btw a license would be nice"} {"diff": " public class PSurfaceAWT extends PSurfaceNone { \n SINGLE \n Component canvas ; \n \n - PGraphics graphics ; \n + SINGLE \n \n int sketchWidth ; \n int sketchHeight ;", "msg_token": "remove local that was masking the superclass field"} {"diff": " public class ShadowCameraParameters { \n @ implementation \n public List < int [ ] > getSupportedPreviewFpsRange ( ) { \n List < int [ ] > supportedRanges = new ArrayList < int [ ] > ( ) ; \n - addRange ( supportedRanges , NUMBER0 , NUMBER0 ) ; \n - addRange ( supportedRanges , NUMBER1 , NUMBER2 ) ; \n + addRange ( supportedRanges , NUMBER3 , NUMBER3 ) ; \n + addRange ( supportedRanges , NUMBER4 , NUMBER5 ) ; \n return supportedRanges ; \n }", "msg_token": "Fix bug in getSupprortedPreviewFPSRange"} {"diff": " public class SocketConnector extends AbstractConnector \n throws IOException \n { \n Connection connection = ( Connection ) endpoint ; \n - if ( connection . _sotimeout != _maxIdleTime ) \n + int lrmit = isLowResources ( ) ? _lowResourceMaxIdleTime : _maxIdleTime ; \n + if ( connection . _sotimeout != lrmit ) \n { \n - connection . _sotimeout = _maxIdleTime ; \n - ( ( Socket ) endpoint . getTransport ( ) ) . setSoTimeout ( _maxIdleTime ) ; \n + connection . _sotimeout = lrmit ; \n + ( ( Socket ) endpoint . getTransport ( ) ) . setSoTimeout ( lrmit ) ; \n } \n \n super . customize ( endpoint , request ) ; \n public class SocketConnector extends AbstractConnector \n { \n if ( _connection . isIdle ( ) ) \n { \n - if ( getServer ( ) . getThreadPool ( ) . isLowOnThreads ( ) ) \n + if ( isLowResources ( ) ) \n { \n int lrmit = getLowResourceMaxIdleTime ( ) ; \n if ( lrmit >= NUMBER0 && _sotimeout != lrmit )", "msg_token": "improved low resource handling"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class UrlImpl implements Url { \n \n @ override \n public boolean isInLocalFileSystem ( ) { \n - return StandardFileSystems . FILE_PROTOCOL . equals ( scheme ) ; \n + return URLUtil . FILE_PROTOCOL . equals ( scheme ) ; \n } \n \n @ nullable", "msg_token": "electron render process debug"} {"diff": " public class EventLog implements Notifications { \n myHyperlinkSupport = new EditorHyperlinkSupport ( myLogEditor , project ) ; \n } \n \n - private static DefaultActionGroup createPopupActions ( ActionManager actionManager ) { \n + private DefaultActionGroup createPopupActions ( ActionManager actionManager ) { \n DefaultActionGroup group = new DefaultActionGroup ( ) ; \n group . add ( new DumbAwareAction ( STRING0 ) { \n @ override \n public class EventLog implements Notifications { \n if ( editor != null ) { \n editor . getDocument ( ) . deleteString ( NUMBER0 , editor . getDocument ( ) . getTextLength ( ) ) ; \n } \n + for ( Notification notification : myProjectModel . getNotifications ( ) ) { \n + myProjectModel . removeNotification ( notification ) ; \n + } \n } \n } ) ; \n group . add ( new EditorCopyAction ( ) ) ;", "msg_token": "clear the log model on clearing the console"} {"diff": " public class LinearLayoutManagerTest extends BaseRecyclerViewInstrumentationTest \n \n @ override \n String describe ( ) { \n - return STRING0 ; \n + return STRING1 + position ; \n } \n \n @ override \n void onAfterReLayout ( Config config ) { \n if ( mTestAdapter . getItemCount ( ) > NUMBER0 ) { \n - assertEquals ( STRING2 , \n + assertEquals ( config + STRING3 , \n position , \n - mLayoutManager . findLastCompletelyVisibleItemPosition ( ) ) ; \n + config . mStackFromEnd ? \n + mLayoutManager . findLastCompletelyVisibleItemPosition ( ) \n + : mLayoutManager . findFirstCompletelyVisibleItemPosition ( ) ) ; \n } \n } \n } \n public class LinearLayoutManagerTest extends BaseRecyclerViewInstrumentationTest \n savedStateTest ( ( Config ) config . clone ( ) , waitForLayout , postLayoutRunnable , \n postRestoreRunnable ) ; \n removeRecyclerView ( ) ; \n - return ; \n } \n \n }", "msg_token": "Fixed LinearLayoutManager unit tests which end prematurely"} {"diff": " public class GuiIngameForge extends GuiIngame \n \n protected void renderPlayerList ( int width , int height ) \n { \n - if ( pre ( PLAYER_LIST ) ) return ; \n ScoreObjective scoreobjective = this . mc . theWorld . getScoreboard ( ) . func_96539_a ( NUMBER0 ) ; \n NetClientHandler handler = mc . thePlayer . sendQueue ; \n \n if ( mc . gameSettings . keyBindPlayerList . pressed && ( ! mc . isIntegratedServerRunning ( ) || handler . playerInfoList . size ( ) > NUMBER1 || scoreobjective != null ) ) \n { \n + if ( pre ( PLAYER_LIST ) ) return ; \n this . mc . mcProfiler . startSection ( STRING0 ) ; \n List players = handler . playerInfoList ; \n int maxPlayers = handler . currentServerMaxPlayers ; \n public class GuiIngameForge extends GuiIngame \n zLevel -= FLOAT0 ; \n } \n } \n + post ( PLAYER_LIST ) ; \n } \n - post ( PLAYER_LIST ) ; \n } \n \n protected void renderHealthMount ( int width , int height )", "msg_token": "Moved PLAYER_LIST event inside display check"} {"diff": " public class DataTableCustomSerDe extends DataTableJavaSerDe { \n if ( _brokerMetrics != null ) { \n _brokerMetrics . addMeteredGlobalValue ( BrokerMeter . DATA_TABLE_OBJECT_DESERIALIZATION , NUMBER0 ) ; \n } \n - LOGGER . warn ( STRING0 , object . getClass ( ) . getName ( ) ) ; \n } \n return object ; \n }", "msg_token": "Remove log message that warns on Java ser de"} {"diff": " public class XmlDocumentFragment extends XmlNode { \n \n private static Pattern qname_pattern = Pattern . compile ( STRING0 ) ; \n private static Pattern starttag_pattern = Pattern . compile ( STRING1 ) ; \n - private static Pattern wellformed_pattern = Pattern . compile ( STRING2 ) ; \n + private static Pattern wellformed_pattern = Pattern . compile ( STRING3 ) ; \n \n private static String addRootTagIfNeeded ( ThreadContext context , XmlDocument doc , String tags ) { \n IRubyObject isHtml = RuntimeHelpers . invoke ( context , doc , STRING4 ) ;", "msg_token": "Fix well formed regex pattern"} {"diff": " public class AggregratedJmsRouteTest extends ContextTestSupport { \n private String multicastEndpointUri = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void testJmsBatchTimeoutExpiryWithAggregrationDelay ( ) throws Exception { \n MockEndpoint resultEndpoint = resolveMandatoryEndpoint ( STRING1 , MockEndpoint . class ) ; \n public class AggregratedJmsRouteTest extends ContextTestSupport { \n MockEndpoint resultEndpoint = resolveMandatoryEndpoint ( STRING2 , MockEndpoint . class ) ; \n \n resultEndpoint . expectedMessageCount ( NUMBER0 ) ; \n - for ( int i = NUMBER1 ; i <= NUMBER2 ; i ++ ) { \n + for ( int i = NUMBER1 ; i <= NUMBER0 ; i ++ ) { \n String body = STRING3 + i ; \n - sendExchange ( STRING4 , body ) ; \n + sendExchange ( multicastEndpointUri , body ) ; \n } \n \n resultEndpoint . assertIsSatisfied ( ) ;", "msg_token": "Just found some typo in the AggregratedJmsRouteTest"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class GrIntentionTestCase extends LightCodeInsightFixtureTestCase { \n + public abstract class GrIntentionTestCase extends LightCodeInsightFixtureTestCase { \n COMMENT \n @ override \n protected LightProjectDescriptor getProjectDescriptor ( ) {", "msg_token": "make utility test class abstract"} {"diff": " public abstract class ModalDialogBase extends DialogBox \n \n protected void onDialogShown ( ) \n { \n + if ( okButton_ != null ) \n + FocusHelper . setFocusDeferred ( okButton_ ) ; \n } \n \n protected void addOkButton ( ThemedButton okButton )", "msg_token": "always focus ok button in message dialog"} {"diff": " public class CyclicBarrier { \n final ReentrantLock lock = this . lock ; \n lock . lock ( ) ; \n try { \n + SINGLE \n + SINGLE \n + SINGLE \n @ retainedlocalref \n final Generation g = generation ;", "msg_token": "Adds a comment explaining the need for RetainedLocalRef"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class FirebirdTemplates extends SQLTemplates { \n \n - protected static final Set < String > FIREBIRD_RESERVED_WORDS \n - = ImmutableSet . of ( ) ; \n private String limitOffsetTemplate = STRING0 ; \n \n private String limitTemplate = STRING1 ;", "msg_token": "Remove unused FIREBIRD_RESERVED_WORDS"} {"diff": " public class RequestServer extends NanoHTTPD { \n registerRequest ( new TypeaheadFileRequest ( ) ) ; \n registerRequest ( new TypeaheadS3BucketRequest ( ) ) ; \n registerRequest ( new TypeaheadHdfsPathRequest ( ) ) ; \n + registerRequest ( new TypeaheadRFModelKeyRequest ( ) ) ; \n + registerRequest ( new TypeaheadGLMModelKeyRequest ( ) ) ; \n \n SINGLE \n registerRequest ( new TestPoll ( ) ) ;", "msg_token": "Fixed missing typeahed requests for models"} {"diff": " public final class AgentIndexRunner implements AgentIndexRunnerMBean , Notificati \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n public static synchronized AgentIndexRunner getInstance ( boolean enabledParam ) {", "msg_token": "Fixed javadoc for getInstance"} {"diff": " public class DiscreteSeekBar extends View { \n } \n \n } \n + \n private void notifyProgress ( int value , boolean fromUser ) { \n if ( mPublicChangeListener != null ) { \n mPublicChangeListener . onProgressChanged ( DiscreteSeekBar . this , value , fromUser ) ; \n public class DiscreteSeekBar extends View { \n } \n break ; \n case MotionEvent . ACTION_UP : \n + if ( ! isDragging ( ) && mAllowTrackClick ) { \n + startDragging ( event , false ) ; \n + updateDragging ( event ) ; \n + } \n + stopDragging ( ) ; \n + break ; \n case MotionEvent . ACTION_CANCEL : \n stopDragging ( ) ; \n break ;", "msg_token": "Improve touch to seek code using as base model the code from AbsSeekBar from AOSP"} {"diff": " public class MainTransform implements ASTTransformation { \n SourceLookup lookup = null ; \n \n try { \n - Assert . that ( nodes . length >= NUMBER0 ) ; \n - Assert . that ( nodes [ NUMBER1 ] instanceof ModuleNode ) ; \n ModuleNode module = ( ModuleNode ) nodes [ NUMBER1 ] ; \n \n lookup = new SourceLookup ( sourceUnit , new Janitor ( ) ) ;", "msg_token": "moved JUnitIgnoreTest java from src test groovy to src test java"} {"diff": " public class PublisherLimit \n COMMENT \n COMMENT \n COMMENT \n - public static final String NAME = STRING0 ; \n + public static final String NAME = STRING1 ; \n \n public static Position allocate ( \n final CountersManager countersManager , \n public class ReceiverHwm \n COMMENT \n COMMENT \n COMMENT \n - public static final String NAME = STRING2 ; \n + public static final String NAME = STRING3 ; \n \n public static Position allocate ( \n final CountersManager countersManager , \n public class SenderPos \n COMMENT \n COMMENT \n COMMENT \n - public static final String NAME = STRING4 ; \n + public static final String NAME = STRING5 ; \n \n public static Position allocate ( \n final CountersManager countersManager , \n public class SubscriberPos \n COMMENT \n COMMENT \n COMMENT \n - public static final String NAME = STRING6 ; \n + public static final String NAME = STRING7 ; \n \n public static Position allocate ( \n final CountersManager countersManager ,", "msg_token": "Java Name stream counters the same length for alignment"} {"diff": " public final class InodeFileTest extends AbstractInodeTest { \n mThrown . expect ( InvalidFileSizeException . class ) ; \n mThrown . expectMessage ( STRING0 ) ; \n InodeFile inodeFile = createInodeFile ( NUMBER0 ) ; \n - inodeFile . complete ( - NUMBER0 ) ; \n + inodeFile . complete ( - NUMBER1 ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ test \n + public void setUnknownLengthTest ( ) throws Exception { \n + InodeFile inodeFile = createInodeFile ( NUMBER0 ) ; \n + inodeFile . complete ( Constants . UNKNOWN_SIZE ) ; \n } \n \n COMMENT \n public final class InodeFileTest extends AbstractInodeTest { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + @ test \n + public void completeUnknownTest ( ) throws Exception { \n + InodeFile inodeFile = createInodeFile ( NUMBER0 ) ; \n + inodeFile . complete ( Constants . UNKNOWN_SIZE ) ; \n + inodeFile . complete ( LENGTH ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n @ test", "msg_token": "Fix tests for unknown file sizes"} {"diff": " public class Install { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 + \n + + STRING3 \n + distDir . getAbsolutePath ( ) \n + STRING4 ) ; \n }", "msg_token": "Fix string concat"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + SINGLE \n COMMENT \n COMMENT \n COMMENT \n public class SampleCamelApplication { \n } \n \n } \n + SINGLE", "msg_token": "Ignore Checkstyle warnings"} {"diff": " public class RequestParams { \n result . append ( STRING0 ) ; \n \n ArrayList < String > values = entry . getValue ( ) ; \n - for ( String value : values ) { \n - if ( values . indexOf ( value ) != NUMBER0 ) \n + for ( int i = NUMBER0 ; i < values . size ( ) ; i ++ ) { \n + if ( i != NUMBER0 ) \n result . append ( STRING0 ) ; \n result . append ( entry . getKey ( ) ) ; \n result . append ( STRING1 ) ; \n - result . append ( value ) ; \n + result . append ( values . get ( i ) ) ; \n } \n }", "msg_token": "fixed bug for same name parameter"} {"diff": " public class Indicator extends PointSet { \n TimeSurface surface ; SINGLE \n \n public Indicator ( PointSet targets , TimeSurface surface ) { \n + super ( NUMBER0 ) ; SINGLE \n this . targets = targets ; \n this . surface = surface ; \n - this . capacity = NUMBER0 ; \n - this . lons = new double [ NUMBER0 ] ; \n - this . lats = new double [ NUMBER0 ] ; \n SINGLE \n for ( Category cat : targets . categories . values ( ) ) { \n this . categories . put ( cat . id , new Category ( cat ) ) ; \n public class PointSet { \n return new PointSet ( NUMBER1 ) ; \n } \n \n - public PointSet ( ) { \n - \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove nullary PointSet constructor"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ClientDetailsUserDetailsServiceTests { \n \n + @ suppresswarnings ( STRING0 ) \n @ test ( expected = UsernameNotFoundException . class ) \n public void shouldThrowUsernameNotFoundExceptionWhenNoSuchClient ( ) throws Exception { \n \n public class ClientDetailsUserDetailsServiceTests { \n testee . loadUserByUsername ( STRING1 ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ test ( expected = ClientRegistrationException . class ) \n public void shouldConductOriginalException ( ) throws Exception {", "msg_token": "Suppress compiler warnings"} {"diff": " interface ChannelOutboundInvoker { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n ChannelFuture write ( Object msg ) ; \n ChannelFuture write ( MessageList < ? > msgs ) ; \n interface ChannelOutboundInvoker { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n ChannelFuture write ( Object msg , ChannelPromise promise ) ; \n ChannelFuture write ( MessageList < ? > msgs , ChannelPromise promise ) ; \n \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public class IncompleteFlushException extends ChannelException { \n \n private static final long serialVersionUID = - NUMBER0 ;", "msg_token": "Deprecate IncompleteFlushException as its not used anymore"} {"diff": " public class ServletContextImpl implements ServletContext { \n if ( file != null ) { \n File base = res . getResourceManagerRoot ( ) ; \n String filePath = file . getAbsolutePath ( ) . substring ( base . getAbsolutePath ( ) . length ( ) ) ; \n - filePath . replace ( STRING0 , STRING1 ) ; SINGLE \n + filePath = filePath . replace ( STRING0 , STRING1 ) ; SINGLE \n if ( file . isDirectory ( ) ) { \n filePath = filePath + STRING2 ; \n }", "msg_token": "Fix getResourcePaths for windows"} {"diff": " public class UserProfileActivity extends BaseActivity implements RevealBackgroun \n } \n } ) ; \n } else { \n - userPhotosAdapter . setLockedAnimations ( true ) ; \n vRevealBackground . setToFinishedFrame ( ) ; \n + userPhotosAdapter . setLockedAnimations ( true ) ; \n } \n }", "msg_token": "Fixed NPE for restoring user profile state"} {"diff": " public final class ConcurrentHashMap < K , V > extends AbstractMap < K , V > \n currentTable = null ; \n nextEntry = null ; \n lastReturned = null ; \n + currentKey = null ; \n advance ( ) ; \n } \n \n public final class ConcurrentIdentityHashMap < K , V > extends AbstractMap < K , V > \n currentTable = null ; \n nextEntry = null ; \n lastReturned = null ; \n + currentKey = null ; \n advance ( ) ; \n } \n \n public final class ConcurrentIdentityWeakHashMap < K , V > extends AbstractMap < K , V > \n currentTable = null ; \n nextEntry = null ; \n lastReturned = null ; \n + currentKey = null ; \n advance ( ) ; \n }", "msg_token": "Added missing initialization statement"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class BaseModelQueriable < ModelClass extends Model > implements Mo \n } \n \n @ override \n + public DatabaseStatement compileStatement ( ) { \n + return FlowManager . getDatabaseForTable ( table ) . getWritableDatabase ( ) . compileStatement ( getQuery ( ) ) ; \n + } \n + \n + @ override \n public String toString ( ) { \n return getQuery ( ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public interface ModelQueriable < ModelClass extends Model > extends Queriable { \n AsyncQuery < ModelClass > async ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + DatabaseStatement compileStatement ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "new compile statement method from ModelQueriableObject"} {"diff": " import static NAMESPACE ; \n COMMENT \n public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir { \n \n - public void doTest ( @ notnull String javaFileName ) throws Exception { \n + protected void doTest ( @ notnull String javaFileName ) throws Exception { \n Assert . assertTrue ( STRING0 + javaFileName , javaFileName . endsWith ( STRING1 ) ) ; \n File javaFile = new File ( javaFileName ) ; \n File ktFile = new File ( javaFile . getPath ( ) . replaceFirst ( STRING2 , STRING3 ) ) ; \n public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir { \n } \n } \n \n - public static void checkLoadedNamespaces ( \n + private static void checkLoadedNamespaces ( \n final File txtFile , \n final NamespaceDescriptor kotlinNamespace , \n final Pair < NamespaceDescriptor , BindingContext > javaNamespaceAndContext \n public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir { \n } ) ; \n } \n \n - public static void checkJavaNamespace ( \n + private static void checkJavaNamespace ( \n final File txtFile , \n final Pair < NamespaceDescriptor , BindingContext > javaNamespaceAndContext \n ) {", "msg_token": "Reduced visibility of methods"} {"diff": " public class PsiClassImplUtil { \n \n private static final Function < ClassIconRequest , Icon > FULL_ICON_EVALUATOR = new Function < ClassIconRequest , Icon > ( ) { \n public Icon fun ( ClassIconRequest r ) { \n - if ( ! r . psiClass . isValid ( ) && r . psiClass . getProject ( ) . isDisposed ( ) ) return null ; \n + if ( ! r . psiClass . isValid ( ) || r . psiClass . getProject ( ) . isDisposed ( ) ) return null ; \n \n final boolean isLocked = ( r . flags & Iconable . ICON_FLAG_READ_STATUS ) != NUMBER0 && ! r . psiClass . isWritable ( ) ; \n Icon symbolIcon = ElementPresentationUtil . getClassIconOfKind ( r . psiClass , ElementPresentationUtil . getClassKind ( r . psiClass ) ) ;", "msg_token": "having problems with logic"} {"diff": " public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n setContentView ( R . layout . theme_browser_activity ) ; \n configureToolbar ( ) ; \n addBrowserFragment ( ) ; \n - mThemeSearchFragment = new ThemeSearchFragment ( ) ; \n } \n \n @ override \n public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow \n protected void onResume ( ) { \n super . onResume ( ) ; \n mIsRunning = true ; \n + mThemeSearchFragment = new ThemeSearchFragment ( ) ; \n ActivityId . trackLastActivity ( ActivityId . THEMES ) ; \n \n fetchThemesIfNoneAvailable ( ) ;", "msg_token": "Moving initialization to onResume to handle context better"} {"diff": " public class TaskMasterLifecycle \n leaderLifecycle . addManagedInstance ( taskRunner ) ; \n Initialization . makeServiceDiscoveryClient ( curator , serviceDiscoveryConfig , leaderLifecycle ) ; \n leaderLifecycle . addManagedInstance ( taskConsumer ) ; \n - leaderLifecycle . start ( ) ; \n \n leading = true ; \n \n try { \n + leaderLifecycle . start ( ) ; \n + \n while ( leading ) { \n mayBeStopped . await ( ) ; \n }", "msg_token": "Stop leaderLifecycle if it dies while starting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate unused import warning"} {"diff": " public class TestNonBlockingAPI extends TomcatBaseTest { \n SINGLE \n SINGLE \n int count = NUMBER0 ; \n - while ( count < NUMBER1 || \n - ! ( servlet . wlistener . onErrorInvoked || servlet . rlistener . onErrorInvoked ) || \n + while ( count < NUMBER1 && \n + ! ( servlet . wlistener . onErrorInvoked || servlet . rlistener . onErrorInvoked ) && \n alv . getEntryCount ( ) < NUMBER2 ) { \n Thread . sleep ( NUMBER3 ) ; \n count ++ ;", "msg_token": "Fix infinite loop breaking Gump test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class OHttpResponse { \n - public static final String JSON_FORMAT = STRING0 ; \n + public static final String JSON_FORMAT = STRING1 ; \n public static final char [ ] URL_SEPARATOR = { STRING2 } ; \n \n private final OutputStream out ;", "msg_token": "Fixed problem on fetch types in JSON called from Http requests"} {"diff": " public class RegTestParams extends TestNet2Params { \n \n public RegTestParams ( ) { \n super ( ) ; \n - interval = NUMBER0 ; \n + SINGLE \n + SINGLE \n + interval = Integer . MAX_VALUE ; \n maxTarget = MAX_TARGET ; \n subsidyDecreaseBlockCount = NUMBER1 ; \n port = NUMBER2 ;", "msg_token": "Disable retargeting for regtest"} {"diff": " public class UserSwitcherController { \n switchToUserId ( id ) ; \n } \n \n + public void switchTo ( int userId ) { \n + final int count = mUsers . size ( ) ; \n + for ( int i = NUMBER0 ; i < count ; ++ i ) { \n + UserRecord record = mUsers . get ( i ) ; \n + if ( record . info != null && record . info . id == userId ) { \n + switchTo ( record ) ; \n + return ; \n + } \n + } \n + \n + Log . e ( TAG , STRING0 + userId ) ; \n + } \n + \n private void switchToUserId ( int id ) { \n try { \n pauseRefreshUsers ( ) ;", "msg_token": "Restored switchTo method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class AbstractService < T extends Configuration > { \n static { \n + SINGLE \n LoggingFactory . bootstrap ( ) ; \n } \n \n public abstract class AbstractService < T extends Configuration > { \n addCommand ( new ServerCommand < T > ( getConfigurationClass ( ) ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ suppresswarnings ( STRING0 ) \n protected abstract void subclassServiceInsteadOfThis ( ) ; \n \n - public String getName ( ) { \n + public final String getName ( ) { \n return name ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ suppresswarnings ( STRING1 ) \n public final Class < T > getConfigurationClass ( ) { \n return ( Class < T > ) ( ( ParameterizedType ) getClass ( ) . getGenericSuperclass ( ) ) . getActualTypeArguments ( ) [ NUMBER0 ] ;", "msg_token": "Added some docs"} {"diff": " public class ParameterDeclarationList implements GroovyElementTypes { \n GroovyElementType result = ParameterDeclaration . parse ( builder , ending ) ; \n \n if ( ! PARAMETER . equals ( result ) ) { \n - pdlMarker . rollbackTo ( ) ; \n + SINGLE \n + pdlMarker . done ( PARAMETERS_LIST ) ; \n return WRONGWAY ; \n } \n \n public class ParameterDeclarationList implements GroovyElementTypes { \n pdlMarker . done ( PARAMETERS_LIST ) ; \n return PARAMETERS_LIST ; \n } else { \n - pdlMarker . rollbackTo ( ) ; \n + SINGLE \n + pdlMarker . done ( PARAMETERS_LIST ) ; \n return WRONGWAY ; \n }", "msg_token": "method always has parameter list even if it s incorrect"} {"diff": " class Connection implements ManagedResource \n final int termOffset = ( int ) position & termLengthMask ; \n \n final TermReader termReader = termReaders [ activeIndex ] ; \n - final int messagesRead = termReader . read ( termOffset , fragmentHandler , fragmentCountLimit ) ; \n - \n - final long newPosition = position + ( termReader . offset ( ) - termOffset ) ; \n - if ( newPosition > position ) \n + int messagesRead = NUMBER0 ; \n + try \n + { \n + messagesRead = termReader . read ( termOffset , fragmentHandler , fragmentCountLimit ) ; \n + } \n + finally \n { \n - subscriberPosition . setOrdered ( newPosition ) ; \n + final long newPosition = position + ( termReader . offset ( ) - termOffset ) ; \n + if ( newPosition > position ) \n + { \n + subscriberPosition . setOrdered ( newPosition ) ; \n + } \n } \n \n return messagesRead ;", "msg_token": "Handle case of progressing past poison message resulting in exception on connection poll"} {"diff": " public class LanguageTokenSeparatorGenerators extends LanguageExtension < TokenSep \n @ override \n public ASTNode generateWhitespaceBetweenTokens ( ASTNode left , ASTNode right ) { \n Language l = PsiUtilCore . getNotAnyLanguage ( left ) ; \n + Language rightLang = PsiUtilCore . getNotAnyLanguage ( right ) ; \n + if ( rightLang . isKindOf ( l ) ) { \n + l = rightLang ; SINGLE \n + } \n final ParserDefinition parserDefinition = LanguageParserDefinitions . INSTANCE . forLanguage ( l ) ; \n if ( parserDefinition != null ) { \n PsiManager manager = right . getTreeParent ( ) . getPsi ( ) . getManager ( ) ;", "msg_token": "on renaming property used in SPEL expression the extra space is inserted into SPEL after property name"} {"diff": " public class ORecordIteratorClassDescendentOrder < REC extends ORecord > extends OR \n String iClassName , boolean iPolymorphic , boolean iUseCache , boolean iterateThroughTombstones , \n OStorage . LOCKING_STRATEGY iLockingStrategy ) { \n super ( iDatabase , iLowLevelDatabase , iClassName , iPolymorphic , iUseCache , iterateThroughTombstones , iLockingStrategy ) ; \n + \n + currentClusterIdx = clusterIds . length - NUMBER0 ; SINGLE \n } \n \n @ override", "msg_token": "Allow DESC iterator to safely override initial cluster position"} {"diff": " public class FVecParseReader implements ParseReader { \n @ override public long getGlobalByteOffset ( ) { \n return _goffset ; \n } \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Chunk getChunk ( ) { return _chk ; } \n }", "msg_token": "Added JavaDoc to a new method on FVecParseReader"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class JavaPlugin implements Plugin { \n } \n } \n \n - public void onLoad ( ) { } SINGLE \n + public void onLoad ( ) { } \n + \n + public void onDisable ( ) { } \n + \n + public void onEnable ( ) { } \n \n public ChunkGenerator getDefaultWorldGenerator ( String worldName , String id ) { \n getServer ( ) . getLogger ( ) . severe ( STRING0 + getDescription ( ) . getFullName ( ) + STRING1 ) ;", "msg_token": "onEnable and onDisable are no longer required implementations for JavaPlugins"} {"diff": " public final class SQLiteDatabase extends SQLiteClosable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public long insertWithOnConflict ( String table , String nullColumnHack , \n ContentValues initialValues , int conflictAlgorithm ) {", "msg_token": "Fix documentation bug in SQLiteDatabase"} {"diff": " public class BiomeManager \n public static ImmutableList < BiomeEntry > getBiomes ( BiomeType type ) \n { \n int idx = type . ordinal ( ) ; \n - List < BiomeEntry > list = idx > biomes . length ? null : biomes [ idx ] ; \n + List < BiomeEntry > list = idx >= biomes . length ? null : biomes [ idx ] ; \n \n return list != null ? ImmutableList . copyOf ( list ) : null ; \n } \n public class BiomeManager \n \n if ( ret . ordinal ( ) >= biomes . length ) \n { \n - biomes = Arrays . copyOf ( biomes , ret . ordinal ( ) ) ; \n + biomes = Arrays . copyOf ( biomes , ret . ordinal ( ) + NUMBER0 ) ; \n } \n \n return ret ;", "msg_token": "Fix off by one errors"} {"diff": " public class Chronometer extends TextView { \n @ android.view.remotableviewmethod \n public void setCountDown ( boolean countDown ) { \n mCountDown = countDown ; \n + updateText ( SystemClock . elapsedRealtime ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fixed a bug where the chronometer wasn t updating the time"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter \n \n FilterHolder fholder = new FilterHolder ( filter ) ; \n fholder . setName ( name ) ; \n + fholder . setAsyncSupported ( true ) ; \n fholder . setInitParameter ( CONTEXT_ATTRIBUTE_KEY , WebSocketUpgradeFilter . class . getName ( ) ) ; \n context . addFilter ( fholder , pathSpec , dispatcherTypes ) ; \n \n public class WebSocketUpgradeFilter extends ContainerLifeCycle implements Filter \n String urlPatterns [ ] = { pathSpec } ; \n \n FilterRegistration . Dynamic dyn = context . addFilter ( name , filter ) ; \n + dyn . setAsyncSupported ( true ) ; \n dyn . setInitParameter ( CONTEXT_ATTRIBUTE_KEY , WebSocketUpgradeFilter . class . getName ( ) ) ; \n dyn . addMappingForUrlPatterns ( dispatcherTypes , isMatchAfter , urlPatterns ) ;", "msg_token": "WebSocketUpgradeFilter must support async"} {"diff": " public class RestPutRepositoryAction extends BaseRestHandler { \n putRepositoryRequest . source ( request . content ( ) . toUtf8 ( ) ) ; \n putRepositoryRequest . masterNodeTimeout ( request . paramAsTime ( STRING0 , putRepositoryRequest . masterNodeTimeout ( ) ) ) ; \n putRepositoryRequest . timeout ( request . paramAsTime ( STRING1 , putRepositoryRequest . timeout ( ) ) ) ; \n - putRepositoryRequest . masterNodeTimeout ( request . paramAsTime ( STRING0 , putRepositoryRequest . masterNodeTimeout ( ) ) ) ; \n client . admin ( ) . cluster ( ) . putRepository ( putRepositoryRequest , new AcknowledgedRestResponseActionListener < PutRepositoryResponse > ( request , channel , logger ) ) ; \n } \n }", "msg_token": "Removed double masterNodeTimeout set in RestPutRepositoryAction"} {"diff": " public interface Player extends HumanEntity , Conversable , CommandSender , Offline \n COMMENT \n public boolean canSee ( Player player ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isFlying ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setFlying ( boolean value ) ; \n }", "msg_token": "Added player isFlying setFlying to check if a player is flying or make them fly not"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MainActivity extends AppCompatActivity { \n deviceDataMap . put ( STRING0 , easyAppMod . getActivityName ( ) ) ; \n deviceDataMap . put ( STRING1 , easyAppMod . getAppVersion ( ) ) ; \n deviceDataMap . put ( STRING2 , easyAppMod . getAppVersionCode ( ) ) ; \n + deviceDataMap . put ( STRING3 , \n + String . valueOf ( easyAppMod . isPermissionGranted ( Manifest . permission . CAMERA ) ) ) ; \n \n SINGLE \n EasyNetworkMod easyNetworkMod = new EasyNetworkMod ( this ) ; \n public class EasyAppMod { \n } \n return CheckValidityUtil . checkValidData ( result ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isPermissionGranted ( String permission ) { \n + return context . checkCallingPermission ( permission ) == PackageManager . PERMISSION_GRANTED ; \n + } \n }", "msg_token": "added isPermissionGranted function to EasyAppMod and sample app"} {"diff": " public class LocalMUCRoom implements MUCRoom , GroupEventListener { \n \n @ override \n public void sendInvitationRejection ( JID to , String reason , JID sender ) { \n + if ( ( ( MultiUserChatServiceImpl ) mucService ) . getMUCDelegate ( ) != null ) { \n + switch ( ( ( MultiUserChatServiceImpl ) mucService ) . getMUCDelegate ( ) . sendingInvitationRejection ( this , to , sender , reason ) ) { \n + case HANDLED_BY_DELEGATE : \n + SINGLE \n + return ; \n + case HANDLED_BY_OPENFIRE : \n + SINGLE \n + break ; \n + } \n + } \n + \n Message message = new Message ( ) ; \n message . setFrom ( role . getRoleAddress ( ) ) ; \n message . setTo ( to ) ;", "msg_token": "add call of sendingInvitationRejection"} {"diff": " import static NAMESPACE ; \n public class HookSteps extends SuperSteps { \n private String b4WithoutArgs ; \n private static String myStatic = STRING0 ; \n + private static int beforeHookCount ; \n + \n + public HookSteps ( ) { \n + beforeHookCount = NUMBER0 ; \n + } \n \n @ before ( STRING1 ) \n public void cryWolf ( ) { \n public class HookSteps extends SuperSteps { \n \n @ before \n public void setB4WithoutArgs ( ) { \n + beforeHookCount ++ ; \n b4WithoutArgs = STRING2 ; \n } \n \n public class HookSteps extends SuperSteps { \n public void setAfter ( Object scenario ) { \n myStatic = STRING0 ; \n assertEquals ( STRING2 , b4WithoutArgs ) ; \n + assertEquals ( NUMBER1 , beforeHookCount ) ; \n } \n }", "msg_token": "add assertion that shows hooks not being cleared for each scenario"} {"diff": " public class Nat464Xlat extends BaseNetworkObserver { \n mIsStarted = false ; \n mIsRunning = false ; \n mLP = new LinkProperties ( ) ; \n + \n + SINGLE \n + SINGLE \n + try { \n + if ( mNMService . isClatdStarted ( ) ) { \n + mNMService . stopClatd ( ) ; \n + } \n + } catch ( RemoteException e ) { } SINGLE \n } \n \n COMMENT \n public class Nat464Xlat extends BaseNetworkObserver { \n NetworkUtils . resetConnections ( \n CLAT_INTERFACE_NAME , \n NetworkUtils . RESET_IPV4_ADDRESSES ) ; \n + mBaseLP . removeStackedLink ( mLP ) ; \n + updateConnectivityService ( ) ; \n } \n Slog . i ( TAG , STRING0 + CLAT_INTERFACE_NAME + \n STRING1 + mIsRunning + STRING2 ) ; \n mIsRunning = false ; \n - mBaseLP . removeStackedLink ( mLP ) ; \n mLP . clear ( ) ; \n - updateConnectivityService ( ) ; \n Slog . i ( TAG , STRING3 + mLP ) ; \n } \n }", "msg_token": "Stop clatd when starting the Nat464Xlat service"} {"diff": " public class LocalSocket { \n if ( ! implCreated ) { \n synchronized ( this ) { \n if ( ! implCreated ) { \n - implCreated = true ; \n - impl . create ( true ) ; \n + try { \n + impl . create ( true ) ; \n + } finally { \n + implCreated = true ; \n + } \n } \n } \n }", "msg_token": "Fix double checked locking bug in LocalSocket"} {"diff": " public class ActionToolbarImpl extends JPanel implements ActionToolbar { \n if ( inside ) { \n if ( eachComp == mySecondaryActionsButton ) { \n assert isLast ; \n - eachBound . x = sizeToFit . width - eachBound . width ; \n - eachX = ( int ) eachBound . getMaxX ( ) ; \n + if ( sizeToFit . width != Integer . MAX_VALUE ) { \n + eachBound . x = sizeToFit . width - eachBound . width ; \n + eachX = ( int ) eachBound . getMaxX ( ) ; \n + } \n + else { \n + eachBound . x = eachX ; \n + } \n } else { \n eachBound . x = eachX ; \n eachX += eachBound . width ;", "msg_token": "fix preferred size calculation for toolbar with secondary buttons"} {"diff": " public final class AudioTrack { \n @ override \n public void run ( ) { \n try { \n + toRelease . flush ( ) ; \n toRelease . release ( ) ; \n } finally { \n releasingConditionVariable . open ( ) ;", "msg_token": "Call AudioTrack flush before AudioTrack release"} {"diff": " public abstract class ResizeToolWindowAction extends AnAction implements DumbAwa \n return ; \n } \n \n + Component owner = KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) . getFocusOwner ( ) ; \n + if ( owner == null || ! ( SwingUtilities . getWindowAncestor ( owner ) instanceof IdeFrame ) ) { \n + setDisabled ( e ) ; \n + return ; \n + } \n + \n + \n ToolWindowManager mgr = ToolWindowManager . getInstance ( project ) ; \n \n ToolWindow window = myToolWindow ;", "msg_token": "toolwindow resized by keybaord only when focused a fix"} {"diff": " public class CRF implements SequenceLabeler < double [ ] > { \n COMMENT \n COMMENT \n COMMENT \n - public Trainer setMaximumLeafNodes ( int maxLeaves ) { \n + public Trainer setMaxNodes ( int maxLeaves ) { \n if ( maxLeaves < NUMBER0 ) { \n throw new IllegalArgumentException ( STRING0 + maxLeaves ) ; \n } \n public class CRF implements SequenceLabeler < double [ ] > { \n return this ; \n } \n \n - public Trainer setNumIterations ( int iters ) { \n + public Trainer setNumTrees ( int iters ) { \n if ( iters < NUMBER1 ) { \n throw new IllegalArgumentException ( STRING1 + iters ) ; \n }", "msg_token": "rename parameters consistent with GBT"} {"diff": " public class AnalyzingCompletionLookupProvider extends CompletionLookupProvider \n output . writeVInt ( XAnalyzingSuggester . SEP_LABEL ) ; \n output . writeVInt ( XAnalyzingSuggester . END_BYTE ) ; \n output . writeVInt ( XAnalyzingSuggester . PAYLOAD_SEP ) ; \n + output . writeVInt ( XAnalyzingSuggester . HOLE_CHARACTER ) ; \n } \n } \n } ;", "msg_token": "Write hole character"} {"diff": " public class Table \n ByteBuffer name = iter . next ( ) ; \n IColumn newColumn = cf . getColumn ( name ) ; SINGLE \n if ( newColumn != null && cf . isMarkedForDelete ( ) ) \n - { \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( newColumn . timestamp ( ) <= cf . getMarkedForDeleteAt ( ) ) \n - { \n - SINGLE \n - newColumn = null ; \n - } \n - } \n + throw new UnsupportedOperationException ( STRING0 ) ; \n IColumn oldColumn = oldIndexedColumns . getColumn ( name ) ; \n \n SINGLE", "msg_token": "revert unreviewed code"} {"diff": " public class AdaptiveLogisticRegression implements OnlineLearner { \n private int poolSize = NUMBER0 ; \n private State < Wrapper > seed ; \n private int numFeatures ; \n + private double averagingWindow ; \n \n SINGLE \n private AdaptiveLogisticRegression ( ) { \n public class AdaptiveLogisticRegression implements OnlineLearner { \n this . numFeatures = numFeatures ; \n } \n \n + public void setAveragingWindow ( int averagingWindow ) { \n + seed . getPayload ( ) . getLearner ( ) . setWindowSize ( averagingWindow ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added window setting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebAppClassLoader extends URLClassLoader \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void addClassFileTransformer ( ClassFileTransformer transformer ) \n { \n _transformers . add ( transformer ) ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean removeClassFileTransformer ( ClassFileTransformer transformer ) \n { \n return _transformers . remove ( transformer ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void addTransformer ( ClassFileTransformer transformer ) \n + { \n + _transformers . add ( transformer ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean removeTransformer ( ClassFileTransformer transformer ) \n + { \n + return _transformers . remove ( transformer ) ; \n + } \n + \n \n COMMENT \n @ override", "msg_token": "renamed class transformer methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexShardTests extends ESSingleNodeTestCase { \n assertEquals ( NUMBER0 , indexShard . getOperationsCount ( ) ) ; \n } \n \n + @ testlogging ( STRING0 ) \n public void testMarkAsInactiveTriggersSyncedFlush ( ) throws Exception { \n assertAcked ( client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING1 ) \n . setSettings ( SETTING_NUMBER_OF_SHARDS , NUMBER1 , SETTING_NUMBER_OF_REPLICAS , NUMBER0 , IndexShard . INDEX_SHARD_INACTIVE_TIME_SETTING , STRING2 ) ) ;", "msg_token": "TEST use TRACE Logging for syncFlush tests"} {"diff": " public class ModelProcessor { \n COMMENT \n if ( ! isAbstractClass ( enclosingElement ) ) { \n GeneratedClassHolder holder = processHolder . getGeneratedClassHolder ( enclosingElement ) ; \n - processThrowing ( annotationHandler , annotatedElement , holder ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + if ( holder != null ) { \n + processThrowing ( annotationHandler , annotatedElement , holder ) ; \n + } \n } else { \n LOGGER . trace ( STRING0 , annotatedElement , enclosingElement ) ; \n }", "msg_token": "Skip processing annotation when holder is null"} {"diff": " public abstract class BaseBarChart extends BaseChart { \n onDataChanged ( ) ; \n } \n \n + public boolean isScrollEnabled ( ) { \n + return mScrollEnabled ; \n + } \n + \n + public void setScrollEnabled ( boolean _scrollEnabled ) { \n + mScrollEnabled = _scrollEnabled ; \n + onDataChanged ( ) ; \n + } \n + \n + public int getVisibleBars ( ) { \n + return mVisibleBars ; \n + } \n + \n + public void setVisibleBars ( int _visibleBars ) { \n + mVisibleBars = _visibleBars ; \n + onDataChanged ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added missing getter and setter for bar chart ScrollEnabled and VisibleBars"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class VideoDumpView extends GLSurfaceView implements MediaPlayerControl { \n mSurface = new SurfaceTexture ( mTextureID ) ; \n mSurface . setOnFrameAvailableListener ( this ) ; \n \n - mMediaPlayer . setTexture ( mSurface ) ; \n + Surface surface = new Surface ( mSurface ) ; \n + mMediaPlayer . setSurface ( surface ) ; \n + surface . release ( ) ; \n \n try { \n mMediaPlayer . prepare ( ) ;", "msg_token": "use the MediaPlayer setSurface method"} {"diff": " public class JavaTextAreaPainter extends TextAreaPainter \n \n public JavaTextAreaPainter ( JavaTextArea textArea , TextAreaDefaults defaults ) { \n super ( textArea , defaults ) ; \n - new Exception ( ) . printStackTrace ( System . out ) ; \n \n addMouseListener ( new MouseAdapter ( ) { \n public void mouseClicked ( MouseEvent evt ) {", "msg_token": "remove debug info"} {"diff": " public class PercolatorService extends AbstractIndexComponent { \n throw new PercolatorException ( index , STRING0 ) ; \n } finally { \n searcher . release ( ) ; \n + indexService . cache ( ) . clear ( searcher . reader ( ) ) ; \n } \n }", "msg_token": "clear the percolator reader from the cache explicitly"} {"diff": " public abstract class JSType implements Serializable { \n return true ; \n } \n FunctionType ctor = objType . getConstructor ( ) ; \n - return ctor != null && ctor . makesDicts ( ) ; \n + SINGLE \n + if ( ctor == null ) { \n + JSDocInfo info = objType . getJSDocInfo ( ) ; \n + return info != null && info . makesDicts ( ) ; \n + } else { \n + return ctor . makesDicts ( ) ; \n + } \n } \n return false ; \n } \n public class TypeCheckTest extends CompilerTypeTestCase { \n STRING0 ) ; \n } \n \n + public void testGetpropDict7 ( ) throws Exception { \n + testTypes ( STRING1 , \n + STRING0 ) ; \n + } \n + \n public void testGetelemStruct1 ( ) throws Exception { \n testTypes ( STRING2 + \n STRING3 +", "msg_token": "Do type checks for obj lits annotated with dict"} {"diff": " public class UnindexedFilesUpdater implements CacheUpdater { \n @ override \n public void updatingDone ( ) { \n if ( myFinishedUpdate . compareAndSet ( false , true ) ) { \n - IndexingStamp . flushCache ( null ) ; \n myIndex . filesUpdateFinished ( ) ; \n LOG . info ( STRING0 + ( System . currentTimeMillis ( ) - myStarted ) + STRING1 ) ; \n }", "msg_token": "revert flush remaining indexing stamps once we finished indexed files updating as we need to also flush indices data"} {"diff": " public class Connection { \n \n public void setTimeoutInfinite ( ) { \n try { \n + socket . setKeepAlive ( true ) ; \n socket . setSoTimeout ( NUMBER0 ) ; \n } catch ( SocketException ex ) { \n throw new JedisException ( ex ) ; \n public class Connection { \n public void rollbackTimeout ( ) { \n try { \n socket . setSoTimeout ( timeout ) ; \n + socket . setKeepAlive ( false ) ; \n } catch ( SocketException ex ) { \n throw new JedisException ( ex ) ; \n }", "msg_token": "set keepAlive on pub sub sockets infinite timeout in case we don t see the connection close"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject , DBPNamedObject2 , DBDPseudoAttributeContainer , ExasolSourceObject { \n + public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject , DBPNamedObject2 , ExasolSourceObject { \n \n private Boolean hasDistKey ; \n private Timestamp lastCommit ; \n public class ExasolTable extends ExasolTableBase implements DBPRefreshableObject \n return DBSObjectState . NORMAL ; \n } \n \n - @ override \n - public DBDPseudoAttribute [ ] getPseudoAttributes ( ) throws DBException { \n - return new DBDPseudoAttribute [ ] { ExasolConstants . PSEUDO_ATTR_RID_BIT } ; \n - } \n - \n }", "msg_token": "Removed PseudoAttributes not supported in Exasol"} {"diff": " public class MainActivityTest extends ActivityInstrumentationTestCase2 < MainActiv \n openNavDrawer ( ) ; \n solo . clickOnText ( solo . getString ( R . string . add_feed_label ) ) ; \n solo . enterText ( NUMBER0 , feed . getDownload_url ( ) ) ; \n - solo . clickOnButton ( NUMBER0 ) ; \n + solo . clickOnButton ( solo . getString ( R . string . confirm_label ) ) ; \n solo . waitForActivity ( DefaultOnlineFeedViewActivity . class ) ; \n solo . waitForView ( R . id . butSubscribe ) ; \n assertEquals ( solo . getString ( R . string . subscribe_label ) , solo . getButton ( NUMBER0 ) . getText ( ) . toString ( ) ) ;", "msg_token": "fixed test that was broken in prior PR wasn t getting the right button for adding a feed"} {"diff": " public class IOUtils { \n COMMENT \n public static String slurpFile ( String filename , String encoding ) \n throws IOException { \n - Reader r = readerFromString ( filename , encoding ) ; \n + Reader r = getBufferedReaderFromClasspathOrFileSystem ( filename , encoding ) ; \n return IOUtils . slurpReader ( r ) ; \n }", "msg_token": "Slurp gzip files"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n IShortcutService shortcutService = mShortcutKeyServices . get ( shortcutCode ) ; \n if ( shortcutService != null ) { \n try { \n - shortcutService . notifyShortcutKeyPressed ( shortcutCode ) ; \n + if ( isUserSetupComplete ( ) ) { \n + shortcutService . notifyShortcutKeyPressed ( shortcutCode ) ; \n + } \n } catch ( RemoteException e ) { \n mShortcutKeyServices . delete ( shortcutCode ) ; \n }", "msg_token": "Fixes a bug in shortcut key"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NUIEditorScreen extends CoreScreenLayer { \n return false ; \n } \n \n + @ override \n + public boolean onKeyEvent ( NUIKeyEvent event ) { \n + if ( event . isDown ( ) && event . getKey ( ) == Keyboard . Key . ESCAPE ) { \n + getAnimationSystem ( ) . stop ( ) ; \n + nuiEditorSystem . toggleEditor ( ) ; \n + return true ; \n + } \n + return false ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Close the editor via ESC"} {"diff": " public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl \n } \n \n void forkAndInstallIngestIndexTemplate ( ) { \n - threadPool . executor ( ThreadPool . Names . GENERIC ) . execute ( ( ) - > { \n - try { \n - installIngestIndexTemplate ( ) ; \n - } catch ( IOException e ) { \n - logger . debug ( STRING0 , e ) ; \n - } \n - } ) ; \n + try { \n + threadPool . executor ( ThreadPool . Names . GENERIC ) . execute ( ( ) - > { \n + try { \n + installIngestIndexTemplate ( ) ; \n + } catch ( IOException e ) { \n + logger . debug ( STRING0 , e ) ; \n + } \n + } ) ; \n + } catch ( RejectedExecutionException e ) { \n + logger . debug ( STRING1 , e ) ; \n + } \n } \n \n void installIngestIndexTemplate ( ) throws IOException {", "msg_token": "Also ignore rejected execution exception when installing index template"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import in o e p PluginManagerIT"} {"diff": " public class StickyListHeadersListView extends FrameLayout { \n SINGLE \n SINGLE \n SINGLE \n - final boolean isFirstViewBelowTop = mList . getFirstVisiblePosition ( ) == NUMBER0 \n + final boolean doesListHaveChildren = mList . getChildCount ( ) != NUMBER0 ; \n + final boolean isFirstViewBelowTop = doesListHaveChildren && mList . getFirstVisiblePosition ( ) == NUMBER0 \n && mList . getChildAt ( NUMBER0 ) . getTop ( ) > NUMBER0 ; \n final boolean isFirstVisibleItemOutsideAdapterRange = realFirstVisibleItem > adapterCount - NUMBER1 \n || realFirstVisibleItem < NUMBER0 ; \n - final boolean doesListHaveChildren = mList . getChildCount ( ) != NUMBER0 ; \n if ( ! doesListHaveChildren || isFirstVisibleItemOutsideAdapterRange \n || isFirstViewBelowTop ) { \n clearHeader ( ) ;", "msg_token": "Fixed crash if list is empty"} {"diff": " public class EntityRegainHealthEvent extends EntityEvent implements Cancellable \n public enum RegainReason { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n REGEN , \n COMMENT", "msg_token": "Changed documentation for RegainReason REGEN ENUM to reflect latest code"} {"diff": " public class ParseTests extends TestCase { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 \n - + STRING4 + \n + + STRING5 \n + + STRING6 + \n STRING7 ; \n \n protected String makeImports ( ) {", "msg_token": "Fix failing tests"} {"diff": " public abstract class TWAbsLayoutManager extends LayoutManager { \n } \n } \n \n - private int getStartWithPadding ( ) { \n + protected int getStartWithPadding ( ) { \n return ( mIsVertical ? getPaddingTop ( ) : getPaddingLeft ( ) ) ; \n } \n \n - private int getEndWithPadding ( ) { \n + protected int getEndWithPadding ( ) { \n if ( mIsVertical ) { \n return ( getHeight ( ) - getPaddingBottom ( ) ) ; \n } else {", "msg_token": "core Make getEndWithPadding and getStartWithPadding public"} {"diff": " public class LockPatternKeyguardView extends KeyguardViewBase { \n COMMENT \n static private class FastBitmapDrawable extends Drawable { \n private Bitmap mBitmap ; \n + private int mOpacity ; \n \n private FastBitmapDrawable ( Bitmap bitmap ) { \n mBitmap = bitmap ; \n + mOpacity = mBitmap . hasAlpha ( ) ? PixelFormat . TRANSLUCENT : PixelFormat . OPAQUE ; \n } \n \n @ override \n public class LockPatternKeyguardView extends KeyguardViewBase { \n \n @ override \n public int getOpacity ( ) { \n - return PixelFormat . TRANSLUCENT ; \n + return mOpacity ; \n } \n \n @ override", "msg_token": "Improve the rendering speed of the lock screen by reporting the appropriate opacity for the background wallpaper"} {"diff": " public class PutAllOperation extends AbstractMapOperation implements PartitionAw \n mapServiceContext . interceptAfterPut ( name , dataValue ) ; \n EntryEventType eventType = dataOldValue == null ? EntryEventType . ADDED : EntryEventType . UPDATED ; \n final MapEventPublisher mapEventPublisher = mapServiceContext . getMapEventPublisher ( ) ; \n - dataValue = getPostProcessedValueIfAvailable ( mapServiceContext , recordStore , dataKey , dataValue ) ; \n + dataValue = getValueOrPostProcessedValue ( mapServiceContext , recordStore , dataKey , dataValue ) ; \n mapEventPublisher . publishEvent ( getCallerAddress ( ) , name , eventType , dataKey , dataOldValue , dataValue ) ; \n keysToInvalidate . add ( dataKey ) ; \n \n public class PutAllOperation extends AbstractMapOperation implements PartitionAw \n evict ( false ) ; \n } \n \n - private Data getPostProcessedValueIfAvailable ( MapServiceContext mapServiceContext , RecordStore recordStore , \n - Data dataKey , Data dataValue ) { \n + private Data getValueOrPostProcessedValue ( MapServiceContext mapServiceContext , RecordStore recordStore , \n + Data dataKey , Data dataValue ) { \n if ( ! recordStore . getMapDataStore ( ) . isPostProcessingMapStore ( ) ) { \n return dataValue ; \n }", "msg_token": "rename getPostProcessedValueIfAvailable to getValueOrPostProcessedValue"} {"diff": " public class ControlFlowAnalyzer extends JavaElementVisitor { \n myAssertionError = createClassType ( manager , scope , JAVA_LANG_ASSERTION_ERROR ) ; \n myString = myFactory . createTypeValue ( createClassType ( manager , scope , JAVA_LANG_STRING ) , Nullness . NOT_NULL ) ; \n \n - PsiParameter mockVar = JavaPsiFacade . getElementFactory ( manager . getProject ( ) ) . createParameter ( STRING0 , createClassType ( manager , scope , JAVA_LANG_OBJECT ) ) ; \n + PsiParameter mockVar = JavaPsiFacade . getElementFactory ( manager . getProject ( ) ) . createParameterFromText ( STRING1 , null ) ; \n myExceptionHolder = myFactory . getVarFactory ( ) . createVariableValue ( mockVar , false ) ; \n \n myFields = new HashSet < DfaVariableValue > ( ) ;", "msg_token": "don t reformat mock variable during control flow building"} {"diff": " public class JobCollectContext implements ExecutionSubContext , RowUpstream , Exec \n LOGGER . trace ( STRING0 , jobSearchContextId , numActive ) ; \n \n shardQueryContext . addCallback ( new RemoveQueryContextCallback ( jobSearchContextId ) ) ; \n - EngineSearcherDelegate searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ; \n + EngineSearcherDelegate searcherDelegate ; \n try { \n + searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ; \n shardQueryContext . searcher ( searcherDelegate ) ; \n } catch ( Exception e ) { \n SINGLE", "msg_token": "handle exception while acquiring a searcher"} {"diff": " public class JsonArray extends JsonElement implements Iterable < Object > { \n return Json . encode ( this . list ) ; \n } \n \n + public String encodePrettily ( ) throws EncodeException { \n + return Json . encodePrettily ( this . list ) ; \n + } \n + \n public JsonArray copy ( ) { \n return new JsonArray ( encode ( ) ) ; \n } \n public class JsonObject extends JsonElement { \n return Json . encode ( this . map ) ; \n } \n \n + public String encodePrettily ( ) { \n + return Json . encodePrettily ( this . map ) ; \n + } \n + \n public JsonObject copy ( ) { \n return new JsonObject ( encode ( ) ) ; \n }", "msg_token": "Expose encodePrettily on JsonObject and JsonArray"} {"diff": " public class ProxyServletTest \n { \n final String target = STRING0 ; \n final String query = STRING1 ; \n - prepareServer ( new HttpServlet ( ) \n + startServer ( new HttpServlet ( ) \n { \n @ override \n protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException", "msg_token": "Fixed merge conflict"} {"diff": " public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen \n if ( mediaPlayer != null ) { \n mediaPlayer . stop ( ) ; \n } \n - SINGLE \n - SINGLE \n - mediaPlayer . release ( ) ; \n - mediaPlayer = null ; \n - SINGLE \n + SINGLE \n if ( ctx != null ) { \n abandonAudioFocus ( ) ; \n } \n public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { \n if ( mTts != null ) { \n mTts . stop ( ) ; \n } \n - SINGLE \n - SINGLE \n - mTts = null ; \n - SINGLE \n + SINGLE \n if ( ctx != null ) { \n abandonAudioFocus ( ) ; \n }", "msg_token": "remove test code again"} {"diff": " public class ConfiguringDefaultReturnValuesTest extends TestBase { \n @ after \n public void resetDefaultReturnValues ( ) { \n MockitoConfiguration . instance ( ) . resetReturnValues ( ) ; \n - \n } \n \n private final class MyDefaultReturnValues implements ReturnValues {", "msg_token": "extracted InvocationOnMock interface"} {"diff": " public class Function extends Pointer { \n return false ; \n } \n \n + COMMENT \n + equivalent . \n + COMMENT \n + public int hashCode ( ) { \n + return callFlags + options . hashCode ( ) + peer . hashCode ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fulfill hashCode contract for Function"} {"diff": " public class PidFileTests extends ElasticsearchTestCase { \n if ( randomBoolean ( ) ) { \n try { \n Path link = dir . resolve ( STRING0 ) ; \n - Files . createSymbolicLink ( link , parent ) ; \n + Files . createSymbolicLink ( link , parent . getFileName ( ) ) ; \n parent = link ; \n } catch ( UnsupportedOperationException ex ) { \n SINGLE", "msg_token": "TEST produce valid symlinks in tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class GenerateEqualsWizard extends AbstractWizard { \n myNonNullPanel = new MemberSelectionPanel ( CodeInsightBundle . message ( STRING0 ) , \n new MemberInfo [ NUMBER0 ] , null ) ; \n myFieldsToNonNull = createFieldToMemberInfoMap ( false ) ; \n + for ( final Map . Entry < PsiElement , MemberInfo > entry : myFieldsToNonNull . entrySet ( ) ) { \n + entry . getValue ( ) . setChecked ( ( ( PsiField ) entry . getKey ( ) ) . getModifierList ( ) . findAnnotation ( NotNull . class . getName ( ) ) != null ) ; \n + } \n \n final MyTableModelListener listener = new MyTableModelListener ( ) ; \n if ( myEqualsPanel != null ) {", "msg_token": "take NotNull into account on hashCode generation"} {"diff": " public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators { \n DIAGONAL , SCALAR \n } \n \n - eLineSearch lsOpt = eLineSearch . MINPACK ; SINGLE \n - eScaling scaleOpt = eScaling . DIAGONAL ; SINGLE \n - eState state = eState . CONTINUE ; \n + private eLineSearch lsOpt = eLineSearch . MINPACK ; \n + private eScaling scaleOpt = eScaling . DIAGONAL ; \n + private eState state = eState . CONTINUE ; \n \n \n public QNMinimizer ( ) { \n public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators { \n } \n \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators { \n return dfunc . valueAt ( x ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void useOWLQN ( boolean use , double lambda ) { \n this . useOWLQN = use ; \n this . lambdaOWL = lambda ;", "msg_token": "Add javadoc make a few more things private"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; ; \n + import static NAMESPACE ; \n \n \n COMMENT", "msg_token": "Fixed import statement"} {"diff": " public class PyCondaPackageService implements PersistentStateComponent < PyCondaPa \n @ nullable \n private static String findExecutable ( String condaName , VirtualFile condaFolder ) { \n if ( condaFolder != null ) { \n - final VirtualFile bin = condaFolder . findChild ( STRING0 ) ; \n + final VirtualFile bin = condaFolder . findChild ( SystemInfo . isWindows ? STRING1 : STRING0 ) ; \n if ( bin != null ) { \n final VirtualFile [ ] children = bin . getChildren ( ) ; \n if ( children . length == NUMBER0 ) return null ;", "msg_token": "find conda on windows"} {"diff": " public class Util { \n mHasLBEDetermined = true ; \n try { \n File apps = new File ( Environment . getDataDirectory ( ) + File . separator + STRING0 ) ; \n - if ( apps != null ) \n - for ( File file : apps . listFiles ( ) ) \n + File [ ] files = ( apps == null ? null : apps . listFiles ( ) ) ; \n + if ( files != null ) \n + for ( File file : files ) \n if ( file . getName ( ) . startsWith ( STRING1 ) ) \n mHasLBE = true ; \n } catch ( Throwable ex ) {", "msg_token": "Really fix null pointer exception"} {"diff": " public class Options \n private void createDefaultOptions ( ) \n { \n addOption ( new ToggleOption ( STRING0 , STRING1 , false ) ) ; \n - addOption ( new ToggleOption ( STRING2 , STRING3 , false ) ) ; \n + SINGLE \n addOption ( new ToggleOption ( STRING4 , STRING5 , false ) ) ; \n - addOption ( new ToggleOption ( STRING6 , STRING7 , false ) ) ; \n + SINGLE \n addOption ( new ListOption ( STRING8 , STRING9 , new String [ ] { STRING10 , STRING11 , STRING12 } , STRING13 ) ) ; \n addOption ( new ToggleOption ( STRING14 , STRING14 , true ) ) ; \n addOption ( new NumberOption ( STRING15 , STRING16 , NUMBER0 ) ) ;", "msg_token": "Commented out unused options"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \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 public final class Functions { \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 public static Function < Object , String > toStringFunction ( ) { \n return ToStringFunction . INSTANCE ;", "msg_token": "Explain relationship with juf Function"} {"diff": " public class ModelSchemaCache { \n } \n \n public < T > void set ( ModelType < T > type , ModelSchema < T > schema ) { \n - Map < ModelType < ? > , ModelSchema < ? > > typeCache = cache . get ( WeakClassSet . of ( type ) ) ; \n + WeakClassSet cacheKey = WeakClassSet . of ( type ) ; \n + Map < ModelType < ? > , ModelSchema < ? > > typeCache = cache . get ( cacheKey ) ; \n if ( typeCache == null ) { \n typeCache = Maps . newHashMap ( ) ; \n - cache . put ( WeakClassSet . of ( type ) , typeCache ) ; \n + cache . put ( cacheKey , typeCache ) ; \n } \n typeCache . put ( type , schema ) ; \n }", "msg_token": "Calculate cache key only once"} {"diff": " public abstract class AbsLayoutContainer extends ViewGroup { \n \n protected void dispatchAnimationsStarted ( ) { \n for ( FreeFlowEventListener listener : listeners ) { \n - listener . animationsStarted ( ) ; \n + listener . layoutChangeAnimationsStarted ( ) ; \n } \n } \n \n import NAMESPACE ; \n COMMENT \n public interface FreeFlowEventListener { \n \n - public void animationsStarted ( ) ; \n + public void layoutChangeAnimationsStarted ( ) ; \n \n public void layoutChangeAnimationsComplete ( ) ;", "msg_token": "Renamed FFListener s animationstarted method to layoutChangeAnimationsStarted"} {"diff": " public class LastUnchangedContentTracker { \n } \n \n private static void saveContentReference ( VirtualFile file , int contentId ) { \n - SINGLE \n + if ( contentId == NUMBER0 ) { \n + return ; SINGLE \n + } \n + \n + LOG . assertTrue ( contentId > NUMBER0 , contentId ) ; \n if ( ChangeListManagerImpl . DEBUG ) { \n System . out . println ( STRING0 ) ; \n try {", "msg_token": "don t save references to null contents"} {"diff": " public class MainActivity extends AppCompatActivity \n \n bindActivity ( ) ; \n \n - mToolbar . setTitle ( STRING0 ) ; \n mAppBarLayout . addOnOffsetChangedListener ( this ) ; \n \n - setSupportActionBar ( mToolbar ) ; \n + mToolbar . inflateMenu ( R . menu . menu_main ) ; \n startAlphaAnimation ( mTitle , NUMBER0 , View . INVISIBLE ) ; \n }", "msg_token": "Improved menu inflation"} {"diff": " public abstract class WsRemoteEndpointImplBase implements RemoteEndpoint { \n sm . getString ( STRING0 ) ) ; \n } \n \n + used = true ; \n if ( buffer . remaining ( ) == NUMBER0 ) { \n flush ( ) ; \n }", "msg_token": "Add missing used flag for write int"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class SessionAttributesCacheKey { \n } \n \n @ override \n - @ group \n public String toString ( ) { \n return this . id ; \n } \n public class SessionAttributeCacheKey { \n \n @ override \n public int hashCode ( ) { \n - return this . id . hashCode ( ) ; \n + return this . id . hashCode ( ) ^ this . attribute . hashCode ( ) ; \n } \n \n @ override", "msg_token": "Fix usage of Infinispan grouping API"} {"diff": " public class PluginManager { \n } \n \n SINGLE \n + ClassLoader oldLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; \n + Thread . currentThread ( ) . setContextClassLoader ( pluginLoader ) ; \n plugin . initializePlugin ( this , pluginDir ) ; \n + Thread . currentThread ( ) . setContextClassLoader ( oldLoader ) ; \n \n SINGLE \n Element adminElement = ( Element ) pluginXML . selectSingleNode ( STRING0 ) ;", "msg_token": "Set context class loader to be plugin class loader when initializing plugin"} {"diff": " public class SqlQueryManager \n QueryExecution execution = new FailedQueryExecution ( queryId , query , session , self , queryExecutor , e ) ; \n \n queries . put ( queryId , execution ) ; \n - stats . queryStarted ( ) ; \n queryMonitor . createdEvent ( execution . getQueryInfo ( ) ) ; \n queryMonitor . completionEvent ( execution . getQueryInfo ( ) ) ; \n stats . queryFinished ( execution . getQueryInfo ( ) ) ; \n - stats . queryStopped ( ) ; \n expirationQueue . add ( execution ) ; \n \n return execution . getQueryInfo ( ) ;", "msg_token": "Don t count queries that failed to parse as started"} {"diff": " public class RippleDrawable extends LayerDrawable { \n if ( mAnimatingRipplesCount >= MAX_RIPPLES ) { \n SINGLE \n SINGLE \n - Log . d ( LOG_TAG , STRING0 , new RuntimeException ( ) ) ; \n return ; \n }", "msg_token": "Remove the max ripple count exceeded warning"} {"diff": " public class ScopeChooserConfigurable extends MasterDetailsComponent implements \n loadScopes ( mySharedScopesManager ) ; \n loadScopes ( myLocalScopesManager ) ; \n \n - loadStateOrder ( ) ; \n + if ( isModified ( ) ) { \n + loadStateOrder ( ) ; \n + } \n + \n \n TreeUtil . sort ( myRoot , new Comparator < DefaultMutableTreeNode > ( ) { \n public int compare ( final DefaultMutableTreeNode o1 , final DefaultMutableTreeNode o2 ) {", "msg_token": "already modified when open scopes configurable fixed small improvement"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class SerialBitmapReferenceCounter implements BitmapReferenceCounter { \n \n public class SerialBitmapReferenceCounter implements BitmapReferenceCounter { \n } \n } \n \n - private final Map < Bitmap , InnerTracker > counter = new HashMap < Bitmap , InnerTracker > ( ) ; \n + private final Map < Bitmap , InnerTracker > counter = new WeakHashMap < Bitmap , InnerTracker > ( ) ; \n private final BitmapPool target ; \n private final InnerTrackerPool pool = new InnerTrackerPool ( ) ;", "msg_token": "Fix a memory leak when bitmaps not released"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ModuleProjectStructureElement extends ProjectStructureElement { \n public void check ( ProjectStructureProblemsHolder problemsHolder ) { \n final ModifiableModuleModel moduleModel = myContext . getModulesConfigurator ( ) . getModuleModel ( ) ; \n final Module [ ] all = moduleModel . getModules ( ) ; \n + if ( ! ArrayUtil . contains ( myModule , all ) ) { \n + return ; SINGLE \n + } \n + \n for ( Module each : all ) { \n if ( each != myModule && myContext . getRealName ( each ) . equals ( myContext . getRealName ( myModule ) ) ) { \n problemsHolder . registerError ( ProjectBundle . message ( STRING0 ) ) ;", "msg_token": "Could not remove modules from project"} {"diff": " public class CommandExecutor { \n return exitCode ; \n \n } catch ( java . util . concurrent . TimeoutException te ) { \n - process . destroy ( ) ; \n throw new TimeoutException ( command , STRING0 + timeoutMilliseconds + STRING1 , te ) ; \n \n } catch ( CommandException e ) { \n public class CommandExecutor { \n throw new CommandException ( command , e ) ; \n \n } finally { \n + if ( process != null ) { \n + process . destroy ( ) ; \n + } \n waitUntilFinish ( outputGobbler ) ; \n waitUntilFinish ( errorGobbler ) ; \n closeStreams ( process ) ;", "msg_token": "Fix quality flaw"} {"diff": " public class WriteResult { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public synchronized CommandResult getLastError ( WriteConcern concern ) { \n if ( _lastErrorResult != null ) { \n SINGLE", "msg_token": "deprecate c m WriteResult getLastError WriteConcern"} {"diff": " public class MongoAsynchronousSocketChannelGateway { \n callback . onResult ( new ResponseBuffers ( replyHeader , null , System . nanoTime ( ) - start ) , null ) ; \n } \n else { \n - fillAndFlipBuffer ( pool . get ( replyHeader . getMessageLength ( ) - REPLY_HEADER_LENGTH ) , new ResponseBodyCallback ( replyHeader ) ) ; \n + fillAndFlipBuffer ( \n + pool . get ( replyHeader . getMessageLength ( ) - REPLY_HEADER_LENGTH ) , \n + new ResponseBodyCallback ( replyHeader ) \n + ) ; \n } \n } \n }", "msg_token": "Fixing Checkstyle issue"} {"diff": " public class HistoryEntry { \n if ( date != null ) { \n this . date = ( Date ) date . clone ( ) ; \n } else { \n - date = null ; \n + this . date = null ; \n } \n }", "msg_token": "Fixed bogus assignment assigned parameter instead of member"} {"diff": " public class FileHistorySessionPartner implements VcsAppendableHistorySessionPar \n } \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n public void run ( ) { \n - String actionName = VcsBundle . message ( myPath . isDirectory ( ) ? STRING0 : STRING1 , \n - myPath . getName ( ) ) ; \n - ContentManager contentManager = ProjectLevelVcsManagerEx . getInstanceEx ( myVcs . getProject ( ) ) . getContentManager ( ) ; \n - \n myFileHistoryPanel = resetHistoryPanel ( ) ; \n ToolWindow toolWindow = ToolWindowManager . getInstance ( myVcs . getProject ( ) ) . getToolWindow ( ToolWindowId . VCS ) ; \n assert toolWindow != null : STRING2 ;", "msg_token": "remove unused variables"} {"diff": " public class ImageView extends View { \n protected boolean verifyDrawable ( Drawable dr ) { \n return mDrawable == dr || super . verifyDrawable ( dr ) ; \n } \n - \n + \n @ override \n public void jumpDrawablesToCurrentState ( ) { \n super . jumpDrawablesToCurrentState ( ) ; \n public class ImageView extends View { \n @ override \n public void invalidateDrawable ( Drawable dr ) { \n if ( dr == mDrawable ) { \n + if ( dr != null ) { \n + SINGLE \n + final int w = dr . getIntrinsicWidth ( ) ; \n + final int h = dr . getIntrinsicHeight ( ) ; \n + if ( w != mDrawableWidth || h != mDrawableHeight ) { \n + mDrawableWidth = w ; \n + mDrawableHeight = h ; \n + } \n + } \n COMMENT \n COMMENT \n COMMENT", "msg_token": "ImageView updates cached drawable dimensions when drawable updates"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n final Map . Entry < String , Object > entry = projections . entrySet ( ) . iterator ( ) . next ( ) ; \n \n if ( entry . getValue ( ) instanceof OSQLFunctionRuntime ) { \n - if ( ( ( OSQLFunctionRuntime ) entry . getValue ( ) ) . function instanceof OSQLFunctionCount ) { \n + final OSQLFunctionRuntime rf = ( OSQLFunctionRuntime ) entry . getValue ( ) ; \n + if ( rf . function instanceof OSQLFunctionCount && rf . configuredParameters . length == NUMBER0 \n + && STRING0 . equals ( rf . configuredParameters [ NUMBER1 ] ) ) { \n long count = NUMBER1 ; \n \n if ( compiledFilter . getTargetClasses ( ) != null ) {", "msg_token": "select count from X"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n class EntityGraphValidator { \n if ( ! referencedElement . isPresent ( ) ) { \n attributeValidator . warning ( STRING0 + \n attribute . referencedColumn ( ) + STRING1 + attribute ) ; \n + } else { \n + SINGLE \n + referenced . get ( ) . attributes ( ) . values ( ) . stream ( ) \n + . filter ( AttributeDescriptor : : isForeignKey ) \n + . map ( graph : : referencingEntity ) \n + . filter ( Optional : : isPresent ) \n + . map ( Optional : : get ) \n + . filter ( entity : : equals ) \n + . findAny ( ) \n + . ifPresent ( other - > attributeValidator . error ( \n + STRING2 + \n + entity . typeName ( ) + STRING3 + other . typeName ( ) , \n + ForeignKey . class ) ) ; \n } \n } else { \n attributeValidator . error ( STRING4 +", "msg_token": "Detect circular foreign key references at compile time"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MyResourceTest { \n \n private static WebTarget target ; \n \n - @ beforeclass \n - public static void setUpClass ( ) { \n + @ before \n + public void setUpClass ( ) { \n Client client = ClientBuilder . newClient ( ) ; \n target = client . target ( STRING0 ) ; \n }", "msg_token": "Initializing the client before each test"} {"diff": " public class OpenPgpApi { \n SINGLE \n public static final String EXTRA_PASSPHRASE = STRING0 ; \n \n - SINGLE \n - public static final String EXTRA_NFC_DATA = STRING1 ; \n + SINGLE \n + public static final String EXTRA_NFC_SIGNED_HASH = STRING2 ; \n + public static final String EXTRA_NFC_SIG_CREATION_TIMESTAMP = STRING3 ; \n \n SINGLE \n public static final String EXTRA_KEY_ID = STRING4 ;", "msg_token": "Add values for NFC support"} {"diff": " public class NewProject { \n params = new HashMap < String , Object > ( ) ; \n } \n \n - public static final NewProject create ( ) { \n + public static NewProject create ( ) { \n return new NewProject ( ) ; \n }", "msg_token": "Fix minor quality flaw"} {"diff": " public class JacksonModule implements Module \n @ provides @ lazysingleton @ smile \n public ObjectMapper smileMapper ( ) \n { \n - ObjectMapper retVal = new DefaultObjectMapper ( new SmileFactory ( ) ) ; \n + final SmileFactory smileFactory = new SmileFactory ( ) ; \n + smileFactory . delegateToTextual ( true ) ; \n + final ObjectMapper retVal = new DefaultObjectMapper ( smileFactory ) ; \n retVal . getFactory ( ) . setCodec ( retVal ) ; \n return retVal ; \n }", "msg_token": "Allow Smile to fall back to text"} {"diff": " public class Point implements Function { \n public void smooth ( double tolerance ) { \n \n } \n + \n + @ override \n + public Function clone ( ) throws CloneNotSupportedException { \n + return new Point ( weight ) ; \n + } \n }", "msg_token": "Implement Clone for Point function"} {"diff": " public class DeskShareApplet extends Applet implements ClientListener { \n . captureHeight ( cHeightValue ) . scaleWidth ( sWidthValue ) . scaleHeight ( sHeightValue ) \n . quality ( qualityValue ) . aspectRatio ( aspectRatioValue ) \n . x ( xValue ) . y ( yValue ) \n - . httpTunnel ( tunnelValue ) . trayIcon ( icon ) . enableTrayIconActions ( true ) . build ( ) ; \n + . httpTunnel ( tunnelValue ) . trayIcon ( icon ) . enableTrayIconActions ( false ) . build ( ) ; \n client . start ( ) ; \n }", "msg_token": "applet shouldn t display menus in systray icon"} {"diff": " public class KeyguardHostView extends KeyguardViewBase { \n mAppWidgetContainer . setCallbacks ( mWidgetCallbacks ) ; \n mAppWidgetContainer . setMinScale ( FLOAT0 ) ; \n \n - mViewStateManager = new KeyguardViewStateManager ( ) ; \n - \n addDefaultWidgets ( ) ; \n addWidgetsFromSettings ( ) ; \n mSwitchPageRunnable . run ( ) ;", "msg_token": "Remove extra KeyguardViewStateManager construction"} {"diff": " public class MagicLinkSignInActivity extends SignInActivity implements WPComMagi \n String action = getIntent ( ) . getAction ( ) ; \n Uri uri = getIntent ( ) . getData ( ) ; \n \n - if ( Intent . ACTION_VIEW . equals ( action ) && uri != null ) { \n - if ( uri . getHost ( ) . contains ( STRING0 ) ) { \n - attemptLoginWithToken ( uri ) ; \n - } else { \n - SINGLE \n - } \n + if ( Intent . ACTION_VIEW . equals ( action ) && uri != null && uri . getHost ( ) . contains ( STRING0 ) ) { \n + attemptLoginWithToken ( uri ) ; \n } \n }", "msg_token": "Only handle magic link URI case"} {"diff": " public interface AddNullabilityJavaSubtype { \n } \n \n public interface Sub extends Super { \n - @ expectloaderror ( STRING0 ) \n - @ kotlinsignature ( STRING1 ) \n + @ expectloaderror ( STRING2 ) \n + @ kotlinsignature ( STRING3 ) \n String foo ( ) ; \n } \n }", "msg_token": "Fixed syntax error in KotlinSignature"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n + @ ignore \n public class GenericConversionServiceTests extends TestCase { \n \n private GenericConversionService service = new GenericConversionService ( ) ;", "msg_token": "Ignoring broken tests"} {"diff": " public class MasterClient { \n \n private boolean mUseZookeeper ; \n private MasterService . Client mClient = null ; \n - SINGLE \n - private InetSocketAddress mZookeeperAddress = null ; \n private InetSocketAddress mMasterAddress = null ; \n private TProtocol mProtocol = null ; \n private volatile boolean mIsConnected ; \n public class MasterClient { \n \n public MasterClient ( InetSocketAddress masterAddress , boolean useZookeeper ) { \n mUseZookeeper = useZookeeper ; \n - if ( mUseZookeeper ) { \n - try { \n - mZookeeperAddress = CommonUtils . parseInetSocketAddress ( CommonConf . get ( ) . ZOOKEEPER_ADDRESS ) ; \n - } catch ( IOException e ) { \n - LOG . error ( e . getMessage ( ) , e ) ; \n - CommonUtils . runtimeException ( e ) ; \n - } \n - } else { \n + if ( ! mUseZookeeper ) { \n mMasterAddress = masterAddress ; \n } \n mIsConnected = false ;", "msg_token": "remove unused variable in MasterClient"} {"diff": " public class AioEventLoop extends MultithreadEventLoop { \n if ( l . isShutdown ( ) ) { \n command . run ( ) ; \n } else { \n - ch . eventLoop ( ) . execute ( command ) ; \n + l . execute ( command ) ; \n } \n } \n \n public class AioSocketChannel extends AbstractAioChannel implements SocketChanne \n @ override \n protected void doFlushByteBuffer ( ByteBuf buf ) throws Exception { \n if ( ! buf . readable ( ) ) { \n + notifyFlushFutures ( ) ; \n return ; \n }", "msg_token": "Fix potential NPE in AioEventLoop Always notify flush futures"} {"diff": " public class PostUploadService extends Service { \n String postOrPage = ( String ) ( post . isPage ( ) ? context . getResources ( ) . getText ( R . string . page_id ) : context . getResources ( ) \n . getText ( R . string . post_id ) ) ; \n Intent notificationIntent = new Intent ( context , ( post . isPage ( ) ) ? PagesActivity . class : PostsActivity . class ) ; \n + notificationIntent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP | Intent . FLAG_ACTIVITY_NEW_TASK \n + | IntentCompat . FLAG_ACTIVITY_CLEAR_TASK ) ; \n + notificationIntent . setAction ( STRING0 ) ; \n + notificationIntent . addCategory ( STRING1 ) ; \n notificationIntent . setData ( ( Uri . parse ( STRING2 + post . getBlogID ( ) ) ) ) ; \n notificationIntent . putExtra ( STRING3 , true ) ; \n notificationIntent . putExtra ( STRING4 , error ) ;", "msg_token": "Set same activity flags when post upload notification is updated with the error message"} {"diff": " public class MapperService extends AbstractIndexComponent { \n STRING0 , STRING1 , STRING2 \n ) ; \n \n - public static final String FIELD_MAPPERS_COLLECTION_SWITCH = STRING3 ; \n - public static final int DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH = NUMBER0 ; \n - \n private final AnalysisService analysisService ; \n private final IndexFieldDataService fieldDataService ; \n \n public final class InternalTestCluster extends TestCluster { \n if ( random . nextBoolean ( ) ) { \n builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , RandomInts . randomIntBetween ( random , NUMBER1 , NUMBER2 ) COMMENT ) ; \n } \n - if ( random . nextBoolean ( ) ) { \n - builder . put ( MapperService . DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH , RandomInts . randomIntBetween ( random , NUMBER1 , NUMBER3 ) ) ; \n - } \n \n return builder . build ( ) ; \n }", "msg_token": "CORE Remove leftover unused constants"} {"diff": " \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 ;", "msg_token": "Added the missing ASF license header on JmsToCxfInOutTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpPageBufferClient \n @ guardedby ( STRING0 ) \n private boolean closed ; \n @ guardedby ( STRING0 ) \n - private AsyncHttpResponseFuture < PagesResponse > future ; \n + private HttpResponseFuture < PagesResponse > future ; \n @ guardedby ( STRING0 ) \n private DateTime lastUpdate = DateTime . now ( ) ; \n @ guardedby ( STRING0 )", "msg_token": "Fix build failure"} {"diff": " public class FetchBlogListWPOrg extends FetchBlogListAbstract { \n for ( Object currentAvailableMethod : availableMethods ) { \n if ( ( currentAvailableMethod ) . equals ( currentRequiredMethod ) ) { \n match = true ; \n - continue ; \n + break ; \n } \n }", "msg_token": "Correctly use break instead of continue to exit a loop immediately"} {"diff": " public class QuickAction extends CustomPopupWindow { \n } else if ( arrowPos > screenWidth / NUMBER0 && arrowPos < NUMBER1 * ( screenWidth / NUMBER0 ) ) { \n window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopUpMenu_Center : R . style . Animations_PopDownMenu_Center ) ; \n } else { \n - window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopDownMenu_Right : R . style . Animations_PopDownMenu_Right ) ; \n + window . setAnimationStyle ( ( onTop ) ? R . style . Animations_PopUpMenu_Right : R . style . Animations_PopDownMenu_Right ) ; \n } \n \n break ;", "msg_token": "Fix duplicated branch"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n public final class Promised < T > implements Downstream < T > { \n \n private final AtomicReference < ExecResult < ? extends T > > ref = new AtomicReference < > ( ) ; \n - private final Queue < Downstream < ? super T > > listeners = PlatformDependent . newMpscQueue ( ) ; \n + private final Queue < Downstream < ? super T > > listeners = new ConcurrentLinkedDeque < > ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Use a mpmc queue in Promised as we can t guarantee a single consumer"} {"diff": " public class EntityEditor extends MultiPageDatabaseEditor \n @ override \n public void refreshPart ( final Object source , boolean force ) \n { \n - SINGLE \n if ( force && getDatabaseObject ( ) . isPersisted ( ) ) { \n SINGLE \n SINGLE \n DBECommandContext commandContext = getCommandContext ( ) ; \n if ( commandContext != null ) { \n SINGLE \n + SINGLE \n commandContext . resetChanges ( ) ; \n } \n }", "msg_token": "Columns pack action"} {"diff": " public class DrawerFragment extends Fragment { \n @ override \n public void run ( ) { \n final Intent intent = new Intent ( getActivity ( ) , activityClass ) ; \n + intent . setFlags ( Intent . FLAG_ACTIVITY_REORDER_TO_FRONT ) ; \n getActivity ( ) . startActivity ( intent ) ; \n } \n } , DRAWER_SLIDE_DURATION_MS ) ;", "msg_token": "Bring opened activity to front"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class Java8LanguageFeatureBindingTest extends TestCase { \n - \n + \n SINGLE \n SINGLE", "msg_token": "Add missing imports to make Java8LanguageFeatureBindingTest actually compile"} {"diff": " public class TaskListActivity extends ListActivity implements OnScrollListener , \n \n private void showHelpPopover ( ) { \n if ( ! Preferences . getBoolean ( R . string . p_showed_tap_task_help , false ) ) { \n + Preferences . setBoolean ( R . string . p_showed_tap_task_help , true ) ; \n InputMethodManager imm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n imm . hideSoftInputFromWindow ( quickAddBox . getWindowToken ( ) , NUMBER0 ) ; \n getListView ( ) . postDelayed ( new Runnable ( ) { \n public void run ( ) { \n final View view = getListView ( ) . getChildAt ( getListView ( ) . getChildCount ( ) - NUMBER1 ) ; \n - HelpInfoPopover popover = HelpInfoPopover . showPopover ( TaskListActivity . this , view , R . string . help_popover_tap_task ) ; \n + HelpInfoPopover . showPopover ( TaskListActivity . this , view , R . string . help_popover_tap_task ) ; \n } \n } , NUMBER2 ) ;", "msg_token": "don t show the popover every single time"} {"diff": " public class DbConnectionManager { \n ensureConnectionProvider ( ) ; \n \n Integer currentRetryCount = NUMBER0 ; \n - Integer maxRetries = JiveGlobals . getIntProperty ( SETTING_DATABASE_MAX_RETRIES , NUMBER1 ) ; \n - Integer retryWait = JiveGlobals . getIntProperty ( SETTING_DATABASE_RETRY_DELAY , NUMBER2 ) ; SINGLE \n + Integer maxRetries = JiveGlobals . getXMLProperty ( SETTING_DATABASE_MAX_RETRIES , NUMBER1 ) ; \n + Integer retryWait = JiveGlobals . getXMLProperty ( SETTING_DATABASE_RETRY_DELAY , NUMBER2 ) ; SINGLE \n SQLException lastException = null ; \n do { \n try {", "msg_token": "Avoiding DB properties when reading DB connection configuration"} {"diff": " public final class RemoteConnection { \n COMMENT \n COMMENT \n COMMENT \n - public List < RemoteConnection > getChildren ( ) { return null ; } \n + public List < RemoteConnection > getChildren ( ) { return new ArrayList < > ( ) ; } \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class TelecommManager { \n } catch ( RemoteException e ) { \n Log . e ( TAG , STRING0 , e ) ; \n } \n - return null ; \n + return new ArrayList < > ( ) ; \n } \n \n COMMENT", "msg_token": "Fix NPE when have no phone accounts"} {"diff": " public abstract class AbstractFileResolvingResource extends AbstractResource { \n } \n \n @ override \n + public boolean isReadable ( ) { \n + try { \n + URL url = getURL ( ) ; \n + if ( ResourceUtils . isFileURL ( url ) ) { \n + SINGLE \n + File file = getFile ( ) ; \n + return ( file . canRead ( ) && ! file . isDirectory ( ) ) ; \n + } \n + else { \n + return true ; \n + } \n + } \n + catch ( IOException ex ) { \n + return false ; \n + } \n + } \n + \n + @ override \n public int contentLength ( ) throws IOException { \n URL url = getURL ( ) ; \n if ( ResourceUtils . isFileURL ( url ) ) {", "msg_token": "implement file resolution for isReadable as well"} {"diff": " public class MetaClassRegistry { \n } \n \n public MetaClass getMetaClass ( Class theClass ) { \n - COMMENT \n - \n MetaClass answer = ( MetaClass ) metaClasses . get ( theClass ) ; \n if ( answer == null ) { \n try {", "msg_token": "removed dead comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ExpirationWithLimitedConnectionsTest \n { \n - @ test \n + @ ignore \n public void testExpirationWithMaxConnectionPerAddressReached ( ) throws Exception \n { \n final Logger logger = Log . getLogger ( STRING0 ) ;", "msg_token": "Ignoring incomplete incorrect test for now"} {"diff": " public class StatsUtil { \n public static List extractDataFromHb ( Map executor2hostPort , Map task2component , Map beats , \n boolean includeSys , StormTopology topology , String compId ) { \n List ret = new ArrayList ( ) ; \n + if ( executor2hostPort == null ) { \n + return ret ; \n + } \n for ( Object o : executor2hostPort . entrySet ( ) ) { \n Map . Entry entry = ( Map . Entry ) o ; \n List key = ( List ) entry . getKey ( ) ;", "msg_token": "fixed a potential NPE"} {"diff": " public class BasicJsonParser implements JsonParser { \n } \n \n private static String trimTrailingCharacter ( String string , char c ) { \n - if ( string . length ( ) >= NUMBER0 && string . charAt ( string . length ( ) - NUMBER1 ) == c ) { \n + if ( string . length ( ) > NUMBER0 && string . charAt ( string . length ( ) - NUMBER1 ) == c ) { \n return string . substring ( NUMBER0 , string . length ( ) - NUMBER1 ) ; \n } \n return string ; \n } \n \n private static String trimLeadingCharacter ( String string , char c ) { \n - if ( string . length ( ) >= NUMBER0 && string . charAt ( NUMBER0 ) == c ) { \n + if ( string . length ( ) > NUMBER0 && string . charAt ( NUMBER0 ) == c ) { \n return string . substring ( NUMBER1 ) ; \n } \n return string ;", "msg_token": "Fix potential offset errors in BasicJsonParser"} {"diff": " public class SpellCheckerSession { \n if ( DBG ) { \n Log . w ( TAG , STRING0 ) ; \n } \n - if ( scp . mTextInfos . length != NUMBER0 ) { \n - throw new IllegalArgumentException ( ) ; \n - } \n try { \n session . onGetSentenceSuggestionsMultiple ( \n scp . mTextInfos , scp . mSuggestionsLimit ) ; \n public class SpellChecker implements SpellCheckerSessionListener { \n wordStart = regionEnd ; \n SINGLE \n SINGLE \n - final int spellCheckStart = Math . min ( \n - start , Math . max ( wordStart , regionEnd - WORD_ITERATOR_INTERVAL ) ) ; \n + final int spellCheckStart = Math . max ( \n + NUMBER1 , Math . min ( wordStart , regionEnd - WORD_ITERATOR_INTERVAL ) ) ; \n if ( regionEnd <= spellCheckStart ) { \n return ; \n }", "msg_token": "Fix spell checker framework"} {"diff": " public class LocalMiniDFSCluster extends UnderFileSystemCluster { \n mNamenodePort = mDfsCluster . getNameNodePort ( ) ; \n } \n \n - mDfsClient = mDfsCluster . getFileSystem ( ) ; \n + mDfsClient = ( DistributedFileSystem ) mDfsCluster . getFileSystem ( ) ; \n mIsStarted = true ; \n } \n }", "msg_token": "Cast filesystem to distributed filesystem to support older version of hadoop"} {"diff": " public class OConcurrentModificationException extends ONeedRetryException implem \n \n final OConcurrentModificationException other = ( OConcurrentModificationException ) obj ; \n \n - if ( recordOperation == other . recordOperation && rid . equals ( other . rid ) ) \n - return databaseVersion == recordVersion ; \n + if ( recordOperation == other . recordOperation && rid . equals ( other . rid ) ) { \n + if ( databaseVersion == other . databaseVersion ) \n + return recordOperation == other . recordVersion ; \n + } \n \n return false ; \n }", "msg_token": "fixed equals on concurrent modification exception"} {"diff": " public class PolygonShape extends Shape { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setAsBox ( float hx , float hy , Vector2 center , float angle ) { \n jniSetAsBox ( addr , hx , hy , center . x , center . y , angle ) ;", "msg_token": "fixed docs for PolygonShape Thanks tescott"} {"diff": " public class ParserTest extends EvaluationTestCase { \n assertContainsEvent ( STRING0 ) ; \n } \n \n + private static final String DOUBLE_SLASH_LOAD = STRING1 ; \n + private static final String DOUBLE_SLASH_ERROR = \n + STRING2 \n + + STRING3 ; \n + \n + @ test \n + public void testLoadDoubleSlashBuild ( ) throws Exception { \n + setFailFast ( false ) ; \n + parseFile ( DOUBLE_SLASH_LOAD ) ; \n + assertContainsEvent ( DOUBLE_SLASH_ERROR ) ; \n + } \n + \n + @ test \n + public void testLoadDoubleSlashSkylark ( ) throws Exception { \n + setFailFast ( false ) ; \n + parseFileForSkylark ( DOUBLE_SLASH_LOAD ) ; \n + assertContainsEvent ( DOUBLE_SLASH_ERROR ) ; \n + } \n + \n @ test \n public void testLoadNoSymbol ( ) throws Exception { \n setFailFast ( false ) ;", "msg_token": "Added tests for invalid double slashes in load statements"} {"diff": " public class MotionTrack extends AbstractCinematicEvent implements Control { \n \n @ override \n public void onStop ( ) { \n + setCurrentWayPoint ( path . getNbWayPoints ( ) - NUMBER0 ) ; \n currentWayPoint = NUMBER1 ; \n }", "msg_token": "Fixed issue when the last waypoint of a motion path was not triggering listeners"} {"diff": " public class CamelContextFactoryBean extends IdentifiedType implements RouteCont \n getContext ( ) . addRoutes ( routeBuilder ) ; \n } \n \n - System . out . println ( STRING0 + getId ( ) + STRING1 + STRING2 + builderRefs ) ; \n + SINGLE \n \n SINGLE \n if ( builderRefs != null ) {", "msg_token": "removed system printing that shouldn t have been there whoops"} {"diff": " public class ModCompatibilityClient \n return ; \n } \n audioModSoundPoolCave = new SoundPool ( ) ; \n - audioModLoadModAudio ( STRING0 , mngr . getSoundsPool ( ) ) ; \n - audioModLoadModAudio ( STRING1 , mngr . getStreamingPool ( ) ) ; \n - audioModLoadModAudio ( STRING2 , mngr . getMusicPool ( ) ) ; \n - audioModLoadModAudio ( STRING3 , audioModSoundPoolCave ) ; \n + audioModLoadModAudio ( STRING4 , mngr . getSoundsPool ( ) ) ; \n + audioModLoadModAudio ( STRING5 , mngr . getStreamingPool ( ) ) ; \n + audioModLoadModAudio ( STRING6 , mngr . getMusicPool ( ) ) ; \n + audioModLoadModAudio ( STRING7 , audioModSoundPoolCave ) ; \n \n if ( mngr . MUSIC_INTERVAL == NUMBER0 ) \n { \n public class ModCompatibilityClient \n COMMENT \n private static void audioModLoadModAudio ( String path , SoundPool pool ) \n { \n - File folder = Minecraft . getAppDir ( path ) ; \n + File folder = new File ( Minecraft . getMinecraftDir ( ) , path ) ; \n \n try \n {", "msg_token": "Fixed AudioMod compatibility with MultiMC style launchers"} {"diff": " public class RecipientAdapter extends BaseAdapter implements Filterable { \n } \n \n public static void setContactPhotoOrPlaceholder ( Context context , ImageView imageView , Recipient recipient ) { \n - imageView . setImageDrawable ( null ) ; \n - \n SINGLE \n if ( recipient . photoThumbnailUri != null ) { \n - Glide . with ( context ) . load ( recipient . photoThumbnailUri ) . into ( imageView ) ; \n + Glide . with ( context ) . load ( recipient . photoThumbnailUri ) \n + SINGLE \n + . placeholder ( null ) \n + . dontAnimate ( ) \n + . into ( imageView ) ; \n } else { \n ContactPicture . getContactPictureLoader ( context ) . loadContactPicture ( recipient . address , imageView ) ; \n }", "msg_token": "add workaround for glide sometimes not loading contact pictures"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class TachyonBlockStore implements Closeable { \n } \n SINGLE \n if ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) . equals ( location ) ) { \n - Preconditions . checkState ( mContext . hasLocalWorker ( ) , STRING0 ) ; \n return new LocalBlockOutStream ( blockId , blockSize ) ; \n } \n SINGLE", "msg_token": "Remove precondition check as it throws unchecked exception"} {"diff": " public class ActFmInvoker { \n \n COMMENT \n private static final String URL = STRING0 ; \n - private static final String APP_ID = STRING1 ; \n + private static final String APP_ID = STRING2 ; \n private static final String APP_SECRET = STRING3 ; \n \n public static final String PROVIDER_FACEBOOK = STRING4 ;", "msg_token": "Updated app id for development not to be the same as release"} {"diff": " public class VoicemailContract { \n Uri statusUri = buildSourceUri ( context . getPackageName ( ) ) ; \n ContentValues values = new ContentValues ( ) ; \n values . put ( Status . PHONE_ACCOUNT_COMPONENT_NAME , \n - accountHandle . getComponentName ( ) . toString ( ) ) ; \n + accountHandle . getComponentName ( ) . flattenToString ( ) ) ; \n values . put ( Status . PHONE_ACCOUNT_ID , accountHandle . getId ( ) ) ; \n values . put ( Status . CONFIGURATION_STATE , configurationState ) ; \n values . put ( Status . DATA_CHANNEL_STATE , dataChannelState ) ;", "msg_token": "Fix phone account component name for voicemail status entries"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class TextRange implements Segment , Serializable { \n + private static final long serialVersionUID = - NUMBER0 ; \n public static final TextRange EMPTY_RANGE = new TextRange ( NUMBER1 , NUMBER1 ) ; \n private final int myStartOffset ; \n private final int myEndOffset ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MostlySingularMultiMap < K , V > implements Serializable { \n + private static final long serialVersionUID = NUMBER2 ; \n + \n private final Map < K , Object > myMap = new THashMap < K , Object > ( ) ; \n \n public void add ( K key , V value ) {", "msg_token": "added missing serialVersionIDs"} {"diff": " public class BasicReservationService extends Poller implements ReservationServic \n return reservationPeriod ; \n } \n \n + public Ec2InstanceReservationPrice . ReservationUtilization getReservationUtilization ( ) { \n + return reservationUtilization ; \n + } \n + \n public double getLatestHourlyTotalPrice ( \n long time , \n Region region , \n public class BillingFileProcessor extends Poller { \n usage . put ( lentTagGroup , borrowedUsage - getValue ( usage , reservedTagGroup ) ) ; \n cost . put ( lentTagGroup , borrowedCost - getValue ( cost , reservedTagGroup ) ) ; \n usage . put ( unusedTagGroup , unusedUsage ) ; \n + if ( config . reservationService . getReservationUtilization ( ) != Ec2InstanceReservationPrice . ReservationUtilization . HEAVY ) { \n + unusedCost = NUMBER0 ; \n + } \n cost . put ( unusedTagGroup , unusedCost ) ; \n } \n \n public interface ReservationService { \n Ec2InstanceReservationPrice . ReservationPeriod getReservationPeriod ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Ec2InstanceReservationPrice . ReservationUtilization getReservationUtilization ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "set un used cost to be zero for non HEAVY reserved instances"} {"diff": " public final class ClusterSampleData { \n \n public static final long REPLICATION_EXPIRY_TIME_MS = NUMBER0 ; \n \n - public static final long MAX_PROCESSING_DELAY_MS = NUMBER1 ; \n + public static final long MAX_PROCESSING_DELAY_MS = NUMBER2 ; \n \n public static final long RETRY_SLEEP_TIME_MS = NUMBER3 ;", "msg_token": "Upping timing a bit in a test"} {"diff": " public class UpcomingFragment extends ListFragment implements LoaderManager . Load \n } else { \n menu . add ( NUMBER0 , CONTEXT_FLAG_WATCHED_ID , NUMBER0 , R . string . mark_episode ) ; \n } \n - menu . add ( NUMBER1 , CONTEXT_CHECKIN_ID , NUMBER0 , R . string . checkin ) ; \n + menu . add ( NUMBER0 , CONTEXT_CHECKIN_ID , NUMBER2 , R . string . checkin ) ; \n } \n \n @ override", "msg_token": "Always show check in item last"} {"diff": " public final class PreconditionMessage { \n public static final String ERR_PUT_NULL_KEY = STRING0 ; \n public static final String ERR_PUT_NULL_VALUE = STRING1 ; \n \n - \n private PreconditionMessage ( ) { } SINGLE \n }", "msg_token": "Remove an extra new line"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Replace uses of junit framework Assert with org junit Assert"} {"diff": " public class GenerateSourcesMojo extends AbstractAndroidMojo \n COMMENT \n COMMENT \n COMMENT \n - @ parameter ( property = STRING0 , readonly = true ) \n + @ parameter ( property = STRING0 ) \n protected BuildConfigConstant [ ] buildConfigConstants ; \n \n COMMENT", "msg_token": "Fix buildConfigConstants parameter"} {"diff": " public class RecentApplicationsActivity extends Activity { \n mCarouselView . setStartAngle ( ( float ) - ( FLOAT0 * Math . PI * NUMBER0 / CARD_SLOTS ) ) ; \n mCarouselView . setDefaultBitmap ( mLoadingBitmap ) ; \n mCarouselView . setLoadingBitmap ( mLoadingBitmap ) ; \n + mCarouselView . setRezInCardCount ( FLOAT1 ) ; \n mCarouselView . getHolder ( ) . setFormat ( PixelFormat . TRANSLUCENT ) ; \n \n mNoRecentsView = ( View ) findViewById ( R . id . no_applications_message ) ;", "msg_token": "Add new rezzing in effect of Carousel to Recents"} {"diff": " public class RenderScript { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RenderScriptGL extends RenderScript { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public RenderScriptGL ( Context ctx , SurfaceConfig sc ) { \n super ( ctx ) ;", "msg_token": "Fix typos in RenderScript docs"} {"diff": " public class WebSettings { \n if ( mBlockNetworkLoads != flag ) { \n mBlockNetworkLoads = flag ; \n verifyNetworkAccess ( ) ; \n + postSync ( ) ; \n } \n }", "msg_token": "Add postSync so that the chrome stack has access"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class PythonDialectsTokenSetProvider { \n - public static final PythonDialectsTokenSetProvider INSTANCE = new PythonDialectsTokenSetProvider ( ) ; \n + public static PythonDialectsTokenSetProvider INSTANCE = new PythonDialectsTokenSetProvider ( ) ; \n \n private final TokenSet myStatementTokens ; \n private final TokenSet myExpressionTokens ; \n public class PythonDialectsTokenSetProvider { \n public TokenSet getReferenceExpressionTokens ( ) { \n return myReferenceExpressionTokens ; \n } \n + \n + public static void reset ( ) { \n + INSTANCE = new PythonDialectsTokenSetProvider ( ) ; \n + } \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public abstract class PyLexerTestCase extends PlatformLiteFixture { \n PyTestCase . initPlatformPrefix ( ) ; \n registerExtensionPoint ( PythonDialectsTokenSetContributor . EP_NAME , PythonDialectsTokenSetContributor . class ) ; \n registerExtension ( PythonDialectsTokenSetContributor . EP_NAME , new PythonTokenSetContributor ( ) ) ; \n + PythonDialectsTokenSetProvider . reset ( ) ; \n } \n \n public static void doLexerTest ( String text , Lexer lexer , String . . . expectedTokens ) {", "msg_token": "Reset PythonDialectsTokenSetProvider properly in tests"} {"diff": " public class RecentsPanelView extends RelativeLayout \n if ( mActivityDescriptions . size ( ) > NUMBER0 ) { \n if ( DEBUG ) Log . v ( TAG , STRING0 + mActivityDescriptions . size ( ) + STRING1 ) ; \n updateUiElements ( getResources ( ) . getConfiguration ( ) ) ; \n - final ArrayList < ActivityDescription > descriptions = mActivityDescriptions ; \n + final ArrayList < ActivityDescription > descriptions = \n + new ArrayList < ActivityDescription > ( mActivityDescriptions ) ; \n loadActivityDescription ( descriptions . get ( NUMBER0 ) , NUMBER0 ) ; \n applyActivityDescription ( descriptions . get ( NUMBER0 ) , NUMBER0 , false ) ; \n if ( descriptions . size ( ) > NUMBER1 ) {", "msg_token": "Fix crash in recent apps"} {"diff": " public class ZWaveConverterHandler { \n public void receiveCommand ( ZWaveBindingProvider provider , String itemName , Command command ) { \n ZWaveBindingConfig bindingConfiguration = provider . getZwaveBindingConfig ( itemName ) ; \n ZWaveNode node = this . controller . getNode ( bindingConfiguration . getNodeId ( ) ) ; \n + if ( node == null ) { \n + logger . error ( STRING0 , itemName , bindingConfiguration . getNodeId ( ) ) ; \n + return ; \n + } \n ZWaveCommandClass commandClass ; \n String commandClassName = bindingConfiguration . getArguments ( ) . get ( STRING1 ) ; \n \n SINGLE \n - if ( node . getNodeStage ( ) != NodeStage . DONE ) \n + if ( node . getNodeStage ( ) != NodeStage . DONE ) { \n + logger . trace ( STRING2 , node . getNodeId ( ) , node . getNodeStage ( ) ) ; \n return ; \n + } \n \n if ( commandClassName != null ) { \n commandClass = node . resolveCommandClass ( CommandClass . getCommandClass ( commandClassName ) , bindingConfiguration . getEndpoint ( ) ) ;", "msg_token": "Add error checking and debug when sending a command if node is not DONE"} {"diff": " public class BuildCraftBuilders extends BuildCraftMod { \n e . printStackTrace ( ) ; \n } \n } \n + \n + SINGLE \n + serverDB . refresh ( ) ; \n + clientDB . refresh ( ) ; \n } \n \n @ mod.eventhandler", "msg_token": "fix builders databases loading empty"} {"diff": " public class HystrixCommandTimeoutConcurrencyTesting { \n \n @ test \n public void testTimeoutRace ( ) throws InterruptedException { \n - final int NUM_TRIALS = NUMBER0 ; \n + final int NUM_TRIALS = NUMBER1 ; \n \n for ( int i = NUMBER2 ; i < NUM_TRIALS ; i ++ ) { \n List < Observable < String > > observables = new ArrayList < Observable < String > > ( ) ; \n public class HystrixObservableCollapserTest { \n \n @ test \n public void testConcurrencyInTightLoop ( ) throws InterruptedException { \n - for ( int i = NUMBER2 ; i < NUMBER0 ; i ++ ) { \n + for ( int i = NUMBER2 ; i < NUMBER1 ; i ++ ) { \n System . out . println ( STRING0 + i ) ; \n testCollapserUnderConcurrency ( ) ; \n }", "msg_token": "Reduce number of trails of long unit tests to help CI turnaround time"} {"diff": " public interface Buffer extends ClusterSerializable { \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 + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add some comment to buffer ByteBuf method of Buffer class because previous comment was confusing"} {"diff": " public class EntityBinding { \n return optimisticLockMode ; \n } \n \n - public Class getEntityPersisterClass ( ) { \n + public Class < EntityPersister > getEntityPersisterClass ( ) { \n return entityPersisterClass ; \n } \n \n + public Class < EntityTuplizer > getEntityTuplizerClass ( ) { \n + return entityTuplizerClass ; \n + } \n + \n public Boolean isAbstract ( ) { \n return isAbstract ; \n }", "msg_token": "Add EntityBinding entityTuplizerClass change getEntityPersisterClass to return Class EntityPersister"} {"diff": " public class ExternalJavaDocAction extends AnAction { \n boolean enabled = provider instanceof ExtensibleDocumentationProvider && ( ( ExtensibleDocumentationProvider ) provider ) . isExternalDocumentationEnabled ( element , originalElement ) ; \n if ( editor != null ) { \n presentation . setEnabled ( enabled ) ; \n - presentation . setVisible ( enabled ) ; \n + if ( event . getPlace ( ) . equals ( ActionPlaces . MAIN_MENU ) ) { \n + presentation . setVisible ( true ) ; \n + } \n + else { \n + presentation . setVisible ( enabled ) ; \n + } \n } \n else { \n presentation . setEnabled ( enabled ) ;", "msg_token": "don t hide action in main menu"} {"diff": " public abstract class ResponseBase implements Response \n \n protected String calculateCharset ( String charset ) { \n \n - if ( charset == null ) { \n - String contentType = getContentType ( ) ; \n - if ( contentType != null ) { \n - charset = AsyncHttpProviderUtils . parseCharset ( contentType ) ; \n - } else { \n - charset = DEFAULT_CHARSET ; \n - } \n - } \n - \n - return charset ; \n + if ( charset == null ) { \n + String contentType = getContentType ( ) ; \n + if ( contentType != null ) \n + charset = AsyncHttpProviderUtils . parseCharset ( contentType ) ; SINGLE \n + } \n + return charset != null ? charset : DEFAULT_CHARSET ; \n } \n \n public boolean hasResponseStatus ( ) {", "msg_token": "Fix charset computation when it s not specified in contentType"} {"diff": " public enum StandardErrorCode \n OPERATOR_NOT_FOUND ( NUMBER0 ) , \n INVALID_VIEW ( NUMBER1 ) , \n ALREADY_EXISTS ( NUMBER2 ) , \n + NOT_SUPPORTED ( NUMBER3 ) , \n \n INTERNAL ( NUMBER4 ) , \n TOO_MANY_REQUESTS_FAILED ( NUMBER5 ) ,", "msg_token": "Add NOT_SUPPORTED error code"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative implemen \n String [ ] pkgs = intent . getStringArrayExtra ( Intent . EXTRA_PACKAGES ) ; \n if ( pkgs != null ) { \n for ( String pkg : pkgs ) { \n - if ( forceStopPackageLocked ( pkg , - NUMBER0 , false , false , false ) ) { \n - setResultCode ( Activity . RESULT_OK ) ; \n - return ; \n - } \n + synchronized ( ActivityManagerService . this ) { \n + if ( forceStopPackageLocked ( pkg , - NUMBER0 , false , false , false ) ) { \n + setResultCode ( Activity . RESULT_OK ) ; \n + return ; \n + } \n + } \n } \n } \n }", "msg_token": "Implement Mutual exclusion in BroadcastReceiver"} {"diff": " public class GameRegistry \n final UniqueIdentifier other = ( UniqueIdentifier ) obj ; \n return Objects . equal ( modId , other . modId ) && Objects . equal ( name , other . name ) ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return String . format ( STRING0 , modId , name ) ; \n + } \n } \n \n COMMENT", "msg_token": "added override toString method for getting full name"} {"diff": " public class BootReceiver extends BroadcastReceiver { \n } \n \n if ( SystemProperties . getLong ( STRING0 , NUMBER0 ) == NUMBER0 ) { \n - String now = Long . toString ( System . currentTimeMillis ( ) ) ; \n - SystemProperties . set ( STRING0 , now ) ; \n + if ( STRING1 . equals ( SystemProperties . get ( STRING2 ) ) \n + && STRING3 . equals ( SystemProperties . get ( STRING4 ) ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + } else { \n + String now = Long . toString ( System . currentTimeMillis ( ) ) ; \n + SystemProperties . set ( STRING0 , now ) ; \n + } \n if ( db != null ) db . addText ( STRING5 , headers ) ; \n \n SINGLE", "msg_token": "Create correct files in dropbox on encrypted boot"} {"diff": " public class DialogWrapperPeerImpl extends DialogWrapperPeer { \n \n moveMousePointerOnButton ( getRootPane ( ) . getDefaultButton ( ) ) ; \n setupSelectionOnPreferredComponent ( toFocus ) ; \n - \n + \n if ( toFocus != null ) { \n - toFocus . requestFocus ( ) ; \n + toFocus . requestFocusInWindow ( ) ; \n } \n } \n } ) ; \n public class RenameDialog extends RefactoringDialog { \n } \n \n public JComponent getPreferredFocusedComponent ( ) { \n - return myNameSuggestionsField . getComponent ( ) ; \n + return myNameSuggestionsField . getEditor ( ) . getComponent ( ) ; \n } \n \n protected JComponent createCenterPanel ( ) {", "msg_token": "RenameDialog retruns correct preferred focused component"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix the build"} {"diff": " public class SingleNodeBenchmark \n SINGLE \n . build ( ) ; \n \n + SINGLE \n + stage . setExecutionPoolSize ( Math . max ( NUMBER0 , Runtime . getRuntime ( ) . availableProcessors ( ) / NUMBER1 ) ) ; \n + \n dr . addSingleton ( Stage . class , stage ) ; \n \n stage . start ( ) . join ( ) ;", "msg_token": "Optimizing the thread pool size for the benchmark"} {"diff": " public class XDebugSessionImpl implements XDebugSession { \n breakpointManager . getDependentBreakpointManager ( ) . removeListener ( myDependentBreakpointListener ) ; \n } \n } \n - myValueMarkers . clear ( ) ; \n + if ( myValueMarkers != null ) { \n + myValueMarkers . clear ( ) ; \n + } \n myStopped = true ; \n myDebuggerManager . removeSession ( this ) ; \n myDispatcher . getMulticaster ( ) . sessionStopped ( ) ;", "msg_token": "fixed NPE in debuggers that do not use value markers"} {"diff": " import NAMESPACE ; \n \n public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runnable { \n \n - private Runnable task ; \n + private final Runnable task ; \n \n public ChannelRunnableWrapper ( Channel channel , Runnable task ) { \n super ( channel , true ) ;", "msg_token": "Add final keyword"} {"diff": " public abstract class AbstractProcessFailureRecoveryTest { \n \n Configuration jmConfig = new Configuration ( ) ; \n jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_INTERVAL , STRING0 ) ; \n - jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_PAUSE , STRING1 ) ; \n - jmConfig . setInteger ( ConfigConstants . AKKA_WATCH_THRESHOLD , NUMBER0 ) ; \n + jmConfig . setString ( ConfigConstants . AKKA_WATCH_HEARTBEAT_PAUSE , STRING2 ) ; \n + jmConfig . setInteger ( ConfigConstants . AKKA_WATCH_THRESHOLD , NUMBER1 ) ; \n jmConfig . setString ( ConfigConstants . DEFAULT_EXECUTION_RETRY_DELAY_KEY , STRING3 ) ; \n \n jmActorSystem = AkkaUtils . createActorSystem ( jmConfig , new Some < Tuple2 < String , Object > > ( localAddress ) ) ;", "msg_token": "hotfix Raise Akka test timeouts some more"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n + import static NAMESPACE ; \n + \n public class TimeZoneNotSupportedException \n - extends RuntimeException \n + extends PrestoException \n { \n private final String zoneId ; \n \n public TimeZoneNotSupportedException ( String zoneId ) \n { \n - super ( STRING0 + zoneId + STRING1 ) ; \n + super ( NOT_SUPPORTED , STRING2 + zoneId ) ; \n this . zoneId = zoneId ; \n }", "msg_token": "Make TimeZoneNotSupportedException extend PrestoException"} {"diff": " public abstract class K9WebViewClient extends WebViewClient { \n Intent intent = new Intent ( Intent . ACTION_VIEW , uri ) ; \n intent . addCategory ( Intent . CATEGORY_BROWSABLE ) ; \n intent . putExtra ( Browser . EXTRA_APPLICATION_ID , context . getPackageName ( ) ) ; \n + intent . putExtra ( Browser . EXTRA_CREATE_NEW_TAB , true ) ; \n return intent ; \n }", "msg_token": "Set EXTRA_CREATE_NEW_TAB to true in browser view intent"} {"diff": " public interface TaskQuery extends Query < TaskQuery , Task > { \n \n COMMENT \n TaskQuery taskUnassigned ( ) ; \n + \n + COMMENT \n + @ deprecated \n + TaskQuery taskUnnassigned ( ) ; \n \n COMMENT \n TaskQuery taskDelegationState ( DelegationState delegationState ) ;", "msg_token": "Added the deprecated method back"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProviderMethod < T > implements ProviderWithDependencies < T > { \n return false ; \n } \n } \n + \n + @ override \n + public int hashCode ( ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return Objects . hashCode ( method ) ; \n + } \n }", "msg_token": "implement hashcode when implementing equals"} {"diff": " public class TwoWayView extends AdapterView < ListAdapter > implements \n child . offsetLeftAndRight ( childLeft - child . getLeft ( ) ) ; \n child . offsetTopAndBottom ( childTop - child . getTop ( ) ) ; \n } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n \n void fillGap ( boolean down ) {", "msg_token": "library Remove commented code"} {"diff": " public final class JPAProvider { \n private static void addMapping ( String className , JPQLTemplates templates ) { \n try { \n mappings . put ( Class . forName ( className ) , templates ) ; \n - } catch ( ClassNotFoundException e ) { } \n + } catch ( Exception e ) { } \n } \n \n static {", "msg_token": "added catch Exception"} {"diff": " public abstract class Game implements ApplicationListener { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setScreen ( Screen screen ) { \n if ( this . screen != null ) this . screen . hide ( ) ; \n this . screen = screen ; \n - screen . show ( ) ; \n - screen . resize ( Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ; \n + if ( this . screen != null ) { \n + screen . show ( ) ; \n + screen . resize ( Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ; \n + } \n } \n \n COMMENT", "msg_token": "Make Game setScreen accept null"} {"diff": " public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra \n } \n \n public void addButtonToLowerPane ( Runnable runnable , String text ) { \n - addButtonToLowerPane ( runnable , text , ( char ) - NUMBER0 ) ; \n - } \n - \n - public void addButtonToLowerPane ( final Runnable runnable , String text , char mnemonic ) { \n int index = myButtonPanel . getComponentCount ( ) ; \n \n if ( index > NUMBER1 && myPresentation . isShowCancelButton ( ) ) index -- ; \n \n - JButton button = myButtonPanel . add ( index , runnable , text ) ; \n - if ( mnemonic != - NUMBER0 ) { \n - button . setMnemonic ( mnemonic ) ; \n - } \n + myButtonPanel . add ( index , runnable , text ) ; \n + } \n + \n + public void addButtonToLowerPane ( final Runnable runnable , String text , char mnemonic ) { \n + SINGLE \n + addButtonToLowerPane ( runnable , text ) ; \n } \n \n public void addPerformOperationAction ( final Runnable processRunnable ,", "msg_token": "restore button mnemonics"} {"diff": " public class HotThreads { \n continue ; \n } \n ThreadInfo info = threadBean . getThreadInfo ( threadId , NUMBER0 ) ; \n - System . out . println ( info . getThreadName ( ) ) ; \n if ( info == null ) { \n continue ; \n }", "msg_token": "remove rouge sout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in AndroidHttpClient JavaDoc"} {"diff": " public class StateEditor { \n COMMENT \n COMMENT \n public void incrementTimeInSeconds ( int seconds ) { \n - incrementTimeInMilliseconds ( seconds * NUMBER0 ) ; \n + incrementTimeInMilliseconds ( seconds * NUMBER1 ) ; \n } \n \n - public void incrementTimeInMilliseconds ( int milliseconds ) { \n + public void incrementTimeInMilliseconds ( long milliseconds ) { \n if ( milliseconds < NUMBER2 ) { \n LOG . warn ( STRING0 \n + child . getBackEdge ( ) ) ;", "msg_token": "Fix integer overflow in StateEditor"} {"diff": " public class OrientEdgeIterator extends OLazyWrapperIterator < OrientEdge > { \n final OIdentifiable rec = ( OIdentifiable ) iObject ; \n final ODocument value = rec . getRecord ( ) ; \n \n - if ( value == null ) \n + if ( value == null || value . getSchemaClass ( ) == null ) \n return null ; \n \n final OrientEdge edge ;", "msg_token": "Fixed case when dirty documents are attached"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AuditorImpl implements Auditor { \n SINGLE \n packet . setFrom ( ( String ) null ) ; \n break ; \n - case Session . STATUS_STREAMING : \n - element . addAttribute ( STRING0 , STRING1 ) ; \n - break ; \n default : \n element . addAttribute ( STRING0 , STRING2 ) ; \n break ;", "msg_token": "Removed unused code"} {"diff": " public class ECKey implements EncryptableItem , Serializable { \n private String toString ( boolean includePrivate ) { \n final ToStringHelper helper = Objects . toStringHelper ( this ) . omitNullValues ( ) ; \n helper . add ( STRING0 , Utils . HEX . encode ( pub . getEncoded ( ) ) ) ; \n - if ( includePrivate ) \n + if ( includePrivate && priv != null ) \n helper . add ( STRING1 , Utils . HEX . encode ( priv . toByteArray ( ) ) ) ; \n if ( creationTimeSeconds > NUMBER0 ) \n helper . add ( STRING2 , creationTimeSeconds ) ;", "msg_token": "Clear an NPE in wallet printing that could occur when printing a wallet with private keys included"} {"diff": " public class AnnotationUtilsTest { \n assertThat ( annotation . value ( ) , is ( STRING0 ) ) ; \n } \n \n - \n @ test \n public void searchClassAnnotationInSuperClass ( ) { \n FakeAnnotation annotation = AnnotationUtils . getClassAnnotation ( new ChildClass ( ) , FakeAnnotation . class ) ; \n public class AnnotationUtilsTest { \n assertThat ( annotation , nullValue ( ) ) ; \n } \n \n + @ test \n + public void shouldAcceptClasses ( ) { \n + FakeAnnotation annotation = AnnotationUtils . getClassAnnotation ( SuperClass . class , FakeAnnotation . class ) ; \n + assertThat ( annotation . value ( ) , is ( STRING0 ) ) ; \n + \n + annotation = AnnotationUtils . getClassAnnotation ( ChildClass . class , FakeAnnotation . class ) ; \n + assertThat ( annotation . value ( ) , is ( STRING0 ) ) ; \n + } \n + \n } \n \n @ retention ( RetentionPolicy . RUNTIME )", "msg_token": "add unit test to AnnotationUtilsTest"} {"diff": " public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen \n COMMENT \n COMMENT \n COMMENT \n - private static final int MIN_CLUSTER_SIZE = NUMBER0 ; \n + private int mMinClusterSize = NUMBER0 ; \n \n COMMENT \n COMMENT \n public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen \n return BUCKETS [ BUCKETS . length - NUMBER1 ] ; \n } \n \n - COMMENT \n + public int getMinClusterSize ( ) { \n + return mMinClusterSize ; \n + } \n + \n + public void setMinClusterSize ( int minClusterSize ) { \n + mMinClusterSize = minClusterSize ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen \n COMMENT \n COMMENT \n COMMENT \n - protected boolean shouldRenderAsCluster ( Cluster cluster ) { \n - return cluster . getSize ( ) > MIN_CLUSTER_SIZE ; \n + protected boolean shouldRenderAsCluster ( Cluster < T > cluster ) { \n + return cluster . getSize ( ) > mMinClusterSize ; \n } \n \n COMMENT", "msg_token": "Made minimum cluster size configurable"} {"diff": " public class LinearLayoutManager extends RecyclerView . LayoutManager implements \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public int getOrientation ( ) { \n public class LinearLayoutManager extends RecyclerView . LayoutManager implements \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean getReverseLayout ( ) { \n return mReverseLayout ;", "msg_token": "Fixed bad links in LinearLayoutManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SeriesGuideApplication extends Application { \n GoogleAnalytics . getInstance ( this ) . setAppOptOut ( AppSettings . isGaAppOptOut ( this ) ) ; \n if ( BuildConfig . DEBUG ) { \n GoogleAnalytics . getInstance ( this ) . setDryRun ( true ) ; \n - GoogleAnalytics . getInstance ( this ) . getLogger ( ) . setLogLevel ( Logger . LogLevel . VERBOSE ) ; \n } \n SINGLE \n Analytics . getTracker ( this ) ;", "msg_token": "Remove useless log level setter for analytics"} {"diff": " public abstract class CharMatcher implements Predicate < Character > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n + @ gwtincompatible \n + public static CharMatcher fromBitSet ( BitSet bitset ) { \n + return new BitSetMatcher ( ( BitSet ) bitset . clone ( ) , STRING0 ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Temporarily allow creation of a CharMatcher from a BitSet for internal purposes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ProjectConfigurableContext extends FacetEditorContextBase \n } \n \n @ notnull \n + @ override \n + public ModuleRootModel getRootModel ( ) { \n + return myModuleConfigurationState . getModulesProvider ( ) . getRootModel ( myModule ) ; \n + } \n + \n + @ notnull \n public ModifiableRootModel getModifiableRootModel ( ) { \n return myModuleConfigurationState . getRootModel ( ) ; \n }", "msg_token": "avoided unnecessary ModifiableRootModel in facet editors"} {"diff": " public class SQLInsertTest extends DocumentDBBaseTest { \n \n SINGLE \n final String sql2 = STRING0 \n - + STRING1 + STRING2 + STRING3 ; \n + + STRING1 + STRING4 ; \n List < ? > res_sql2 = database . command ( new OCommandScript ( STRING5 , sql2 ) ) . execute ( ) ; \n Assert . assertEquals ( res_sql2 . size ( ) , NUMBER0 ) ; \n Assert . assertTrue ( ( ( List ) res_sql2 ) . get ( NUMBER1 ) instanceof ORecordId ) ; \n \n SINGLE \n final String sql3 = STRING6 \n - + STRING7 + STRING2 + STRING3 ; \n + + STRING7 + STRING4 ; \n List < ? > res_sql3 = database . command ( new OCommandScript ( STRING5 , sql3 ) ) . execute ( ) ; \n Assert . assertEquals ( res_sql3 . size ( ) , NUMBER0 ) ; \n Assert . assertTrue ( ( ( List ) res_sql3 ) . get ( NUMBER1 ) instanceof ODocument ) ;", "msg_token": "Fixed test case"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "added necessary import"} {"diff": " public class PhoneStatusBar extends BaseStatusBar implements DemoMode , \n } \n } ; \n \n - private void resetUserExpandedStates ( ) { \n + public void resetUserExpandedStates ( ) { \n ArrayList < Entry > activeNotifications = mNotificationData . getActiveNotifications ( ) ; \n final int notificationCount = activeNotifications . size ( ) ; \n for ( int i = NUMBER0 ; i < notificationCount ; i ++ ) { \n public class NotificationStackScrollLayout extends ViewGroup \n mIsExpansionChanging = false ; \n if ( ! mIsExpanded ) { \n mOwnScrollY = NUMBER0 ; \n + mPhoneStatusBar . resetUserExpandedStates ( ) ; \n \n SINGLE \n getOverlay ( ) . clear ( ) ;", "msg_token": "Reseting user expansions when the shade is collapsed"} {"diff": " public class SourceFormatter { \n \n readAttributes = false ; \n } \n + else if ( trimmedLine . endsWith ( StringPool . APOSTROPHE ) && \n + ! trimmedLine . contains ( StringPool . QUOTE ) ) { \n + \n + line = StringUtil . replace ( \n + line , StringPool . APOSTROPHE , StringPool . QUOTE ) ; \n + \n + readAttributes = false ; \n + } \n else if ( Validator . isNotNull ( previousAttribute ) ) { \n if ( ! _isJSPAttributName ( attribute ) ) { \n _processErrorMessage (", "msg_token": "SourceFormatter use quotes as delimeter when possible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ContentView extends FrameLayout { \n private static final String TAG = STRING0 ; \n private static final String HTTP_PREFIX = STRING1 ; \n private static final String HTTPS_PREFIX = STRING2 ; \n + private static final String DUCK_DUCK_SEARCH_ENGINE = STRING3 ; \n \n private static int sNextArticleNotificationId = NUMBER0 ; \n \n public class ContentView extends FrameLayout { \n if ( Patterns . WEB_URL . matcher ( strUrlWithPrefix ) . matches ( ) ) { \n LoadWebPage ( strUrlWithPrefix ) ; \n } else { \n - SINGLE \n + SINGLE \n + try { \n + String strQuery = DUCK_DUCK_SEARCH_ENGINE + STRING4 + URLEncoder . encode ( strUrl , STRING5 ) ; \n + LoadWebPage ( strQuery ) ; \n + } catch ( IOException ioe ) { \n + SINGLE \n + } \n } \n \n mToolbarLayout . bringToFront ( ) ;", "msg_token": "Added search engine"} {"diff": " public final class SloppyMath { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Implement Bayes Net interface basic Gibbs though broken"} {"diff": " public class CreateClassFromUsageFix extends CreateClassFromUsageBaseFix { \n assert element != null ; \n if ( ! CodeInsightUtilBase . preparePsiElementForWrite ( element ) ) return ; \n final String superClassName = getSuperClassName ( element ) ; \n + final PsiClass aClass = CreateFromUsageUtils . createClass ( element , myKind , superClassName ) ; \n + if ( aClass == null ) return ; \n + \n ApplicationManager . getApplication ( ) . runWriteAction ( \n new Runnable ( ) { \n public void run ( ) { \n PsiJavaCodeReferenceElement refElement = element ; \n - final PsiClass aClass = CreateFromUsageUtils . createClass ( refElement , myKind , superClassName ) ; \n - if ( aClass == null ) return ; \n try { \n refElement = ( PsiJavaCodeReferenceElement ) refElement . bindToElement ( aClass ) ; \n }", "msg_token": "show dialog outside write action"} {"diff": " public final class NioEventLoop extends SingleThreadEventLoop { \n SINGLE \n SINGLE \n logger . warn ( \n - STRING0 , \n - selectCnt ) ; \n + STRING1 , \n + selectCnt , selector ) ; \n \n rebuildSelector ( ) ; \n selector = this . selector ; \n public final class NioEventLoop extends SingleThreadEventLoop { \n \n if ( selectCnt > MIN_PREMATURE_SELECTOR_RETURNS ) { \n if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( STRING2 , selectCnt - NUMBER0 ) ; \n + logger . debug ( STRING3 , \n + selectCnt - NUMBER0 , selector ) ; \n } \n } \n } catch ( CancelledKeyException e ) { \n if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( CancelledKeyException . class . getSimpleName ( ) + STRING4 , e ) ; \n + logger . debug ( CancelledKeyException . class . getSimpleName ( ) + STRING5 , \n + selector , e ) ; \n } \n SINGLE \n }", "msg_token": "Log Selector instance when Selector needs to be rebuild"} {"diff": " public class ODatabaseGraphTx extends ODatabasePojoAbstract < ODocument , OGraphEle \n throw new OGraphException ( \n STRING0 ) ; \n \n - if ( doc . getClassName ( ) . equals ( OGraphVertex . class . getSimpleName ( ) ) ) \n - return new OGraphVertex ( this , doc ) ; \n - else if ( doc . getClassName ( ) . equals ( OGraphEdge . class . getSimpleName ( ) ) ) \n - return new OGraphEdge ( this , doc ) ; \n - else \n - throw new IllegalArgumentException ( STRING1 + doc . getClassName ( ) ) ; \n + return newInstance ( doc . getClassName ( ) ) . setDocument ( doc ) ; \n } \n \n public ODatabaseComplex < OGraphElement > save ( final OGraphElement iObject ) { \n public abstract class OGraphElement extends ODocumentWrapper implements ORecordL \n return document . fieldNames ( ) ; \n } \n \n - public void setDocument ( final ODocument iDocument ) { \n + public OGraphElement setDocument ( final ODocument iDocument ) { \n document = iDocument ; \n + return this ; \n } \n \n public ODatabaseGraphTx getDatabase ( ) {", "msg_token": "it didn t load sub classes of vertex and edge"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FrontChannelLogoutActionTests { \n \n @ before \n public void onSetUp ( ) throws Exception { \n - final LogoutManager logoutManager = new LogoutManagerImpl ( mock ( ServicesManager . class ) , new SimpleHttpClient ( ) ) ; \n + final LogoutManager logoutManager = new LogoutManagerImpl ( mock ( ServicesManager . class ) , \n + new SimpleHttpClient ( ) , new SamlCompliantLogoutMessageBuilder ( ) ) ; \n this . frontChannelLogoutAction = new FrontChannelLogoutAction ( logoutManager ) ; \n \n this . request = new MockHttpServletRequest ( ) ; \n public class FrontChannelLogoutActionTests { \n assertEquals ( FrontChannelLogoutAction . FINISH_EVENT , event . getId ( ) ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n @ test \n public void testLogoutOneLogoutRequestNotAttempted ( ) throws Exception { \n final String FAKE_URL = STRING1 ;", "msg_token": "Fixed test cases"} {"diff": " public class MediaDeviceSession \n return captureDevice ; \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 + COMMENT \n + COMMENT \n + COMMENT \n private Processor createPlayer ( \n ReceiveStream receiveStream , \n DataSource receiveStreamDataSource )", "msg_token": "Adds a javadoc"} {"diff": " public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer \n vp . removeView ( this ) ; \n JCMediaManager . instance ( ) . lastState = currentState ; SINGLE \n JCVideoPlayerManager . popListener ( ) ; \n - JCVideoPlayerManager . getFirst ( ) . goBackThisListener ( ) ; \n - CLICK_QUIT_FULLSCREEN_TIME = System . currentTimeMillis ( ) ; \n - \n - refreshCache ( ) ; \n + if ( JCVideoPlayerManager . getFirst ( ) != null ) { \n + JCVideoPlayerManager . getFirst ( ) . goBackThisListener ( ) ; \n + CLICK_QUIT_FULLSCREEN_TIME = System . currentTimeMillis ( ) ; \n \n + refreshCache ( ) ; \n + } else { \n + JCVideoPlayerManager . completeAll ( ) ; \n + } \n return true ; \n }", "msg_token": "fix weakrefrence is null bug"} {"diff": " public class EduDocumentListener extends DocumentAdapter { \n answerPlaceholder . setLine ( line ) ; \n answerPlaceholder . setStart ( start ) ; \n if ( usePossibleAnswerLength ) { \n - answerPlaceholder . setPossibleAnswer ( document . getText ( TextRange . create ( start , start + length ) ) ) ; \n + answerPlaceholder . setPossibleAnswer ( document . getText ( TextRange . create ( twStart , twStart + length ) ) ) ; \n } \n else if ( myTrackLength ) { \n answerPlaceholder . setLength ( length ) ;", "msg_token": "fixed possible answer detection on document changed event"} {"diff": " public class ExtensionElementsParser implements BpmnXMLConstants { \n if ( xtr . isStartElement ( ) ) { \n if ( ELEMENT_EXECUTION_LISTENER . equals ( xtr . getLocalName ( ) ) ) { \n new ExecutionListenerParser ( ) . parseChildElement ( xtr , parentElement , model ) ; \n - } else if ( ELEMENT_EVENT_LISTENER . equals ( xtr . getLocalName ( ) ) ) { \n + } else if ( ELEMENT_EVENT_LISTENER . equals ( xtr . getLocalName ( ) ) ) { \n new ActivitiEventListenerParser ( ) . parseChildElement ( xtr , parentElement , model ) ; \n + } else if ( ELEMENT_POTENTIAL_STARTER . equals ( xtr . getLocalName ( ) ) ) { \n + new PotentialStarterParser ( ) . parse ( xtr , activeProcess ) ; \n } else { \n ExtensionElement extensionElement = BpmnXMLUtil . parseExtensionElement ( xtr ) ; \n parentElement . addExtensionElement ( extensionElement ) ;", "msg_token": "Fixed potentialStarter parse issue"} {"diff": " public class QueryLoggerKernelExtension extends KernelExtensionFactory < QueryLogg \n long time = clock . currentTimeMillis ( ) - startTime ; \n if ( time >= thresholdMillis ) \n { \n - log . info ( STRING0 , time , session , \n + log . info ( STRING0 , time , session . toString ( ) , \n query == null ? STRING1 : query ) ; \n } \n }", "msg_token": "Fix merge issues"} {"diff": " public class CallManager \n if ( mainFrame . getState ( ) == JFrame . ICONIFIED ) \n mainFrame . setState ( JFrame . NORMAL ) ; \n \n + if ( ! mainFrame . isVisible ( ) ) \n + mainFrame . setVisible ( true ) ; \n + \n mainFrame . toFront ( ) ; \n \n this . callButton . setEnabled ( true ) ;", "msg_token": "show the main window if hidden when a new call is received"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n break ; \n case CLEAR_ALL_CACHES : \n evictAll ( ) ; \n + mCacheTimer . update ( mTimer . currMillisecond ) ; \n mSeekedFlag = true ; \n break ; \n case CLEAR_OUTSIDE_CACHES :", "msg_token": "Fix possible forever cache miss after ScaleTextSize updated"} {"diff": " public class CassandraThriftStoreManager extends AbstractCassandraStoreManager { \n public static final ConfigOption < Integer > CPOOL_MAX_TOTAL = \n new ConfigOption < Integer > ( CPOOL_NS , STRING0 , \n STRING1 , \n - ConfigOption . Type . MASKABLE , NUMBER0 ) ; \n + ConfigOption . Type . MASKABLE , - NUMBER1 ) ; \n \n public static final ConfigOption < Integer > CPOOL_MAX_ACTIVE = \n new ConfigOption < Integer > ( CPOOL_NS , STRING2 , \n STRING3 , \n - ConfigOption . Type . MASKABLE , - NUMBER1 ) ; \n + ConfigOption . Type . MASKABLE , NUMBER2 ) ; \n \n public static final ConfigOption < Integer > CPOOL_MAX_IDLE = \n new ConfigOption < Integer > ( CPOOL_NS , STRING4 , \n STRING5 , \n - ConfigOption . Type . MASKABLE , - NUMBER1 ) ; \n + ConfigOption . Type . MASKABLE , NUMBER3 ) ; \n \n public static final ConfigOption < Integer > CPOOL_MIN_IDLE = \n new ConfigOption < Integer > ( CPOOL_NS , STRING6 ,", "msg_token": "Tweak default cassandrathrift connection pool settings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class GitFetch extends GitRepositoryAction { \n @ override \n @ notnull", "msg_token": "git remove trivial javadoc"} {"diff": " public class ClassNode extends AnnotatedNode implements Opcodes { \n } \n \n public void setModifiers ( int modifiers ) { \n - this . modifiers = modifiers ; \n + redirect ( ) . modifiers = modifiers ; \n } \n \n public List < PropertyNode > getProperties ( ) {", "msg_token": "Deprecated does not have effect in Groovy"} {"diff": " public interface WebViewFactoryProvider { \n String findAddress ( String addr ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - void setPlatformNotificationsEnabled ( boolean enable ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused function from the WebView statics"} {"diff": " public class K9PreferenceActivity extends SherlockPreferenceActivity { \n public void onCreate ( Bundle icicle ) { \n K9Activity . setLanguage ( this , K9 . getK9Language ( ) ) ; \n \n - if ( Build . VERSION . SDK_INT >= NUMBER0 && Build . VERSION . SDK_INT < NUMBER1 ) { \n - SINGLE \n - SINGLE \n + if ( Build . VERSION . SDK_INT >= NUMBER0 && Build . VERSION . SDK_INT < NUMBER2 ) { \n + SINGLE \n + SINGLE \n SINGLE \n setTheme ( K9 . getK9ThemeResourceId ( K9 . THEME_DARK ) ) ; \n } else {", "msg_token": "Use workaround for PreferenceScreen display bug on Honeycomb too"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class MediaRemoteControlReceiver extends BroadcastReceiver { \n \n @ override \n public void onReceive ( Context context , Intent intent ) { \n - Toast . makeText ( context , STRING0 , Toast . LENGTH_LONG ) . show ( ) ; \n if ( Intent . ACTION_MEDIA_BUTTON . equals ( intent . getAction ( ) ) ) { \n AudioVideoNotesPlugin plugin = OsmandPlugin . getEnabledPlugin ( AudioVideoNotesPlugin . class ) ; \n if ( plugin != null && intent . getParcelableExtra ( Intent . EXTRA_KEY_EVENT ) != null ) { \n - System . out . println ( STRING1 + intent . getIntExtra ( Intent . EXTRA_KEY_EVENT , NUMBER0 ) ) ; \n + SINGLE \n SINGLE \n } \n }", "msg_token": "Remove annoying message"} {"diff": " public class JoglInput implements Input , MouseMotionListener , MouseListener , Mou \n deltaY = e . getLocationOnScreen ( ) . y - y ; \n if ( e . getX ( ) < NUMBER0 || e . getX ( ) >= canvas . getWidth ( ) || e . getY ( ) < NUMBER0 || e . getY ( ) >= canvas . getHeight ( ) ) { \n robot . mouseMove ( x - deltaX , y - deltaY ) ; \n - } \n - System . out . println ( STRING0 + e . getX ( ) + STRING1 + e . getY ( ) + STRING2 + ( x - canvas . getLocationOnScreen ( ) . x ) + STRING1 + ( y - canvas . getLocationOnScreen ( ) . y ) ) ; \n + } \n } \n }", "msg_token": "fixed removed sysout in JoglInput"} {"diff": " public class MongodbReplBundle extends AbstractBundle { \n } \n return decision ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 ; \n + } \n } \n } \n public class StampedeService extends AbstractIdleService implements Supervisor { \n \n @ override \n public SupervisorDecision onError ( Object supervised , Throwable error ) { \n - LOGGER . error ( STRING1 + supervised + STRING2 , error ) ; \n + LOGGER . error ( STRING3 + supervised + STRING2 , error ) ; \n this . stopAsync ( ) ; \n return SupervisorDecision . IGNORE ; \n }", "msg_token": "Changed the message printed by StampedeService when a supervised object fails"} {"diff": " public class OperatorContext \n public void recordAddInput ( Page page ) \n { \n addInputCalls . incrementAndGet ( ) ; \n - addInputWallNanos . getAndAdd ( nanosBetween ( intervalWallStart . get ( ) , System . nanoTime ( ) ) ) ; \n + recordInputWallNanos ( nanosBetween ( intervalWallStart . get ( ) , System . nanoTime ( ) ) ) ; \n addInputCpuNanos . getAndAdd ( nanosBetween ( intervalCpuStart . get ( ) , currentThreadCpuTime ( ) ) ) ; \n addInputUserNanos . getAndAdd ( nanosBetween ( intervalUserStart . get ( ) , currentThreadUserTime ( ) ) ) ; \n \n public class OperatorContext \n { \n inputDataSize . update ( sizeInBytes ) ; \n inputPositions . update ( positions ) ; \n - addInputWallNanos . getAndAdd ( readNanos ) ; \n + recordInputWallNanos ( readNanos ) ; \n + } \n + \n + public long recordInputWallNanos ( long readNanos ) \n + { \n + return addInputWallNanos . getAndAdd ( readNanos ) ; \n } \n \n public void recordGetOutput ( Page page )", "msg_token": "Add OperatorContext recordInputWallNanos long"} {"diff": " public class SlidingUpPanelLayout extends ViewGroup { \n } \n \n private void onPanelDragged ( int newTop ) { \n - mLastNotDraggingSlideState = mSlideState ; \n + if ( mSlideState != PanelState . DRAGGING ) { \n + mLastNotDraggingSlideState = mSlideState ; \n + } \n setPanelStateInternal ( PanelState . DRAGGING ) ; \n SINGLE \n mSlideOffset = computeSlideOffset ( newTop ) ;", "msg_token": "Fix wrong state saved while dragging or in drag motion"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PSurfaceJOGL implements PSurface { \n SINGLE \n } \n \n + \n + COMMENT \n public Canvas initComponent ( PApplet sketch ) { \n this . sketch = sketch ; \n \n public class PSurfaceJOGL implements PSurface { \n \n return null ; \n } \n + COMMENT \n + \n \n - public void initFrame ( PApplet sketch , Color backgroundColor , \n - int deviceIndex , boolean fullScreen , \n - boolean spanDisplays ) { \n + public void initFrame ( PApplet sketch , int backgroundColor , \n + int deviceIndex , boolean fullScreen , \n + boolean spanDisplays ) { \n this . sketch = sketch ; \n \n Display display = NewtFactory . createDisplay ( null ) ; \n public class PSurfaceJOGL implements PSurface { \n \n } \n \n - public void placePresent ( Color stopColor ) { \n + public void placePresent ( int stopColor ) { \n SINGLE \n \n }", "msg_token": "get this guy too"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \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 + \n package NAMESPACE ; \n \n public class AsyncStandardStreamsListener extends AsyncRunListener implements IStandardStreamsListener {", "msg_token": "added license header"} {"diff": " public class CSSLayout { \n STRING0 + left + STRING1 + \n STRING2 + top + STRING1 + \n STRING3 + width + STRING1 + \n - STRING4 + height + \n + STRING4 + height + STRING1 + \n STRING5 + direction + \n STRING6 ; \n }", "msg_token": "Fix a typo in CSSLayout toString"} {"diff": " public class AntiEntropyService \n completed . await ( ) ; \n if ( exception == null ) \n { \n - logger . info ( String . format ( STRING0 , getName ( ) ) , cfnames , range ) ; \n + logger . info ( String . format ( STRING0 , getName ( ) , cfnames , range ) ) ; \n } \n else \n {", "msg_token": "Fix typo misplaced parenthesis"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix checkstyle problem"} {"diff": " public class SpecifyTypeInPy3AnnotationsIntention implements IntentionAction { \n parameter = ( PyParameter ) problemElement ; \n else if ( reference != null && reference . resolve ( ) instanceof PyParameter ) \n parameter = ( PyParameter ) reference . resolve ( ) ; \n - if ( parameter instanceof PyNamedParameter && ( ( PyNamedParameter ) parameter ) . getAnnotation ( ) != null ) return false ; \n + if ( parameter instanceof PyNamedParameter && ( ( ( PyNamedParameter ) parameter ) . getAnnotation ( ) != null || \n + parameter . getDefaultValue ( ) != null ) ) return false ; \n return true ; \n } \n }", "msg_token": "removes default parameter value"} {"diff": " public abstract class ChannelInitializer < C extends Channel > extends ChannelState \n initChannel ( ( C ) ctx . channel ( ) ) ; \n ctx . pipeline ( ) . remove ( this ) ; \n removed = true ; \n - SINGLE \n - SINGLE \n - ctx . pipeline ( ) . fireChannelRegistered ( ) ; \n + ctx . fireChannelRegistered ( ) ; \n success = true ; \n } catch ( Throwable t ) { \n logger . warn ( STRING0 + ctx . channel ( ) , t ) ;", "msg_token": "Fixed a bug where ChannelInitializer can trigger the same event twice"} {"diff": " import NAMESPACE ; \n COMMENT \n public class LocalFileBlockWriter implements BlockWriter { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n - private final BlockMeta mBlockMeta ; \n private final String mFilePath ; \n private final RandomAccessFile mLocalFile ; \n private final FileChannel mLocalFileChannel ; \n private final Closer mCloser = Closer . create ( ) ; \n \n public LocalFileBlockWriter ( BlockMeta blockMeta ) throws IOException { \n - mBlockMeta = Preconditions . checkNotNull ( blockMeta ) ; \n - mFilePath = mBlockMeta . getPath ( ) ; \n + this ( Preconditions . checkNotNull ( blockMeta ) . getPath ( ) ) ; \n + } \n + \n + public LocalFileBlockWriter ( String path ) throws IOException { \n + mFilePath = Preconditions . checkNotNull ( path ) ; \n mLocalFile = mCloser . register ( new RandomAccessFile ( mFilePath , STRING0 ) ) ; \n mLocalFileChannel = mCloser . register ( mLocalFile . getChannel ( ) ) ; \n }", "msg_token": "Add another constructor of BlockWriter to take filepath as input parameter rather than BlockMeta"} {"diff": " public class AppTransition implements Dump { \n + STRING0 + a + STRING1 \n + STRING2 + transit + STRING3 + Debug . getCallers ( NUMBER0 ) ) ; \n } else if ( mNextAppTransitionType == NEXT_TRANSIT_TYPE_CLIP_REVEAL ) { \n - a = createClipRevealAnimationLocked ( transit , enter , appWidth , appHeight ) ; \n + a = createClipRevealAnimationLocked ( transit , enter , \n + containingFrame . right - containingFrame . left , \n + containingFrame . bottom - containingFrame . top ) ; \n if ( DEBUG_APP_TRANSITIONS || DEBUG_ANIM ) Slog . v ( TAG , \n STRING4 \n + STRING0 + a + STRING5 \n class WindowStateAnimator { \n mShownAlpha *= appTransformation . getAlpha ( ) ; \n if ( appTransformation . hasClipRect ( ) ) { \n mClipRect . set ( appTransformation . getClipRect ( ) ) ; \n + SINGLE \n + mClipRect . offset ( frame . left , frame . top ) ; \n if ( mWin . mHScale > NUMBER1 ) { \n mClipRect . left /= mWin . mHScale ; \n mClipRect . right /= mWin . mHScale ;", "msg_token": "Fix artifacts in clip reveal animations"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n } \n \n if ( lineNumber >= totalLines ) { \n - moveCaretToScreenPos ( x , logicalLineToY ( totalLines - NUMBER0 ) ) ; \n + moveCaretToScreenPos ( x , visibleLineNumberToYPosition ( getVisibleLineCount ( ) - NUMBER0 ) ) ; \n return ; \n }", "msg_token": "Fix text selection processing when cursor moved to the bottom of editor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MongoDBRiver extends AbstractRiverComponent implements River { \n \n private boolean isMongos ( ) { \n DB adminDb = getAdminDb ( ) ; \n - if ( adminDb == null ) { \n - return false ; \n - } \n CommandResult cr = adminDb . command ( new BasicDBObject ( STRING0 , NUMBER0 ) ) ; \n \n logger . info ( STRING1 , cr . get ( STRING2 ) ) ; \n public class MongoDBRiver extends AbstractRiverComponent implements River { \n } \n } \n } \n + if ( adminDb == null ) { \n + throw new ElasticSearchException ( String . format ( STRING3 , MONGODB_ADMIN_DATABASE ) ) ; \n + } \n return adminDb ; \n }", "msg_token": "River throws exception if it cannot find admin db"} {"diff": " \n COMMENT \n \n package NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "remove unused imports"} {"diff": " class ParallelTaskPlanExecutor extends DefaultTaskPlanExecutor { \n throw new IllegalArgumentException ( STRING0 + numberOfParallelExecutors ) ; \n } \n \n - LOGGER . info ( STRING1 , numberOfParallelExecutors ) ; \n - \n this . stateCacheAccess = cacheAccess ; \n this . executorCount = numberOfParallelExecutors ; \n } \n class ParallelTaskPlanExecutor extends DefaultTaskPlanExecutor { \n int numExecutors = Math . min ( executorCount , projects . size ( ) ) ; \n numExecutors = Math . min ( numExecutors , NUMBER0 ) ; \n \n + LOGGER . info ( STRING1 , numExecutors ) ; \n + \n for ( int i = NUMBER1 ; i < numExecutors ; i ++ ) { \n TaskExecutorWorker worker = new TaskExecutorWorker ( taskExecutionPlan , taskListener ) ; \n executorThreads . add ( new Thread ( worker ) ) ;", "msg_token": "Moved the log message so that it shows correct number of executors"} {"diff": " public abstract class ProjectManager { \n return _projects . get ( id ) ; \n } else { \n Project project = loadProject ( id ) ; \n - \n - _projects . put ( id , project ) ; \n - \n + if ( project != null ) { \n + _projects . put ( id , project ) ; \n + } \n return project ; \n } \n }", "msg_token": "Don t save null project if load failed"} {"diff": " public final class AndroidGraphics implements Graphics , Renderer { \n this . width = width ; \n this . height = height ; \n updatePpi ( ) ; \n + gl . glViewport ( NUMBER0 , NUMBER0 , this . width , this . height ) ; \n app . listener . resize ( width , height ) ; \n }", "msg_token": "Fixed gl glViewport not being called in onSurfaceChanged"} {"diff": " public abstract class GoStubbedElementImpl < T extends StubBase < ? > > extends StubBa \n \n @ override \n public String toString ( ) { \n - return getNode ( ) . getElementType ( ) . toString ( ) ; \n + return getElementType ( ) . toString ( ) ; \n } \n \n @ nullable", "msg_token": "Don t load AST in toString"} {"diff": " public class ItemFacade extends ItemBuildCraft { \n } \n } \n } catch ( Throwable t ) { \n - System . out . println ( STRING0 + block . toString ( ) + STRING1 ) ; \n t . printStackTrace ( ) ; \n } \n } \n public class ItemFacade extends ItemBuildCraft { \n { \n if ( block . getRenderType ( ) != NUMBER0 && block . getRenderType ( ) != NUMBER1 ) \n { \n - System . out . println ( block . toString ( ) + STRING2 + block . getRenderType ( ) + STRING3 ) ; \n return false ; \n }", "msg_token": "Remove extra logging"} {"diff": " public class GreedyEvictor implements Evictor { \n } \n \n private StorageDirView selectDestDir ( BlockMeta block , List < StorageTierView > toTiers , \n - Map < StorageDirView , Long > pendingBytesInDir ) { \n + Map < StorageDirView , Long > pendingBytesInDir ) { \n for ( StorageTierView toTier : toTiers ) { \n for ( StorageDirView toDir : toTier . getDirViews ( ) ) { \n long pendingBytes = NUMBER0 ;", "msg_token": "Fix style issue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public interface JetClassOrObject extends PsiElement , PsiNameIdentifierOwner , Je \n boolean hasPrimaryConstructor ( ) ; \n \n @ nullable \n - @ override \n - String getName ( ) ; \n + Name getNameAsName ( ) ; \n \n @ nullable \n JetModifierList getModifierList ( ) ;", "msg_token": "JetClassOrObject now has a type safe Name"} {"diff": " public class ParsedStatement { \n SINGLE \n request . routing ( ( String ) getPlannerResult ( QueryPlanner . ROUTING_VALUE ) ) ; \n \n + SINGLE \n + if ( statementNode . getNodeType ( ) == NodeTypes . UPDATE_NODE ) { \n + request . preference ( STRING0 ) ; \n + } \n + \n return request ; \n }", "msg_token": "execute UpdateByQuery Search using SQLFacet only on primary shards now"} {"diff": " public class Node < T > extends AbstractTreeLikeStructure < T , Node < T > > implements Se \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ safevarargs \n public static < T > Node < T > node ( T value , Node < T > . . . children ) {", "msg_token": "Again calmed down doclint"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added explicit note on thread safety to JdbcTemplate variants"} {"diff": " public abstract class XmppActivity extends Activity { \n return this . mPrimaryColor ; \n } \n \n + public int getOnlineColor ( ) { \n + return this . mColorGreen ; \n + } \n + \n public int getSecondaryBackgroundColor ( ) { \n return this . mSecondaryBackgroundColor ; \n } \n public class AccountAdapter extends ArrayAdapter < Account > { \n statusView . setText ( getContext ( ) . getString ( account . getStatus ( ) . getReadableId ( ) ) ) ; \n switch ( account . getStatus ( ) ) { \n case ONLINE : \n - statusView . setTextColor ( activity . getPrimaryColor ( ) ) ; \n + statusView . setTextColor ( activity . getOnlineColor ( ) ) ; \n break ; \n case DISABLED : \n case CONNECTING :", "msg_token": "Changed online color to green instead of primary"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class InternalEngineTests extends ESTestCase { \n codecName = STRING0 ; \n } \n defaultSettings = IndexSettingsModule . newIndexSettings ( STRING1 , Settings . builder ( ) \n - . put ( IndexSettings . INDEX_GC_DELETES_SETTING , STRING2 ) SINGLE \n + . put ( IndexSettings . INDEX_GC_DELETES_SETTING . getKey ( ) , STRING2 ) SINGLE \n . put ( EngineConfig . INDEX_CODEC_SETTING . getKey ( ) , codecName ) \n . put ( IndexMetaData . SETTING_VERSION_CREATED , Version . CURRENT ) \n - . put ( IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD , \n + . put ( IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD . getKey ( ) , \n between ( NUMBER0 , NUMBER0 * IndexSettings . MAX_REFRESH_LISTENERS_PER_SHARD . get ( Settings . EMPTY ) ) ) \n . build ( ) ) ; SINGLE \n threadPool = new TestThreadPool ( getClass ( ) . getName ( ) ) ;", "msg_token": "TEST Fix settings keys to be the actual keys rather than the toString of the Setting"} {"diff": " public abstract class BaseAndroidConnectionSource implements ConnectionSource { \n } \n \n public void releaseConnection ( DatabaseConnection connection ) throws SQLException { \n + SINGLE \n + } \n + \n + public void saveTransactionConnection ( DatabaseConnection connection ) throws SQLException { \n + SINGLE \n + } \n + \n + public void clearTransactionConnection ( DatabaseConnection connection ) throws SQLException { \n + SINGLE \n } \n \n public void close ( ) throws SQLException {", "msg_token": "Added a save and clearTransactionConnection so the TransactionManager could properly work with multiple connection DataSources"} {"diff": " package NAMESPACE ; \n \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroupChannel extends ChannelInterceptorBase implements ManagedChann \n COMMENT \n COMMENT \n COMMENT \n - protected final ArrayList < Object > membershipListeners = new ArrayList < > ( ) ; \n + protected final List < Object > membershipListeners = new CopyOnWriteArrayList < > ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - protected final ArrayList < Object > channelListeners = new ArrayList < > ( ) ; \n + protected final List < Object > channelListeners = new CopyOnWriteArrayList < > ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Avoid ConcurrentModificationException when sending a heartbeat"} {"diff": " public class LwjglGraphics implements Graphics { \n \n Display . setDisplayMode ( targetDisplayMode ) ; \n Display . setFullscreen ( fullscreen ) ; \n + Display . setResizable ( ! fullscreen && config . resizable ) ; \n + \n if ( Gdx . gl != null ) Gdx . gl . glViewport ( NUMBER0 , NUMBER0 , targetDisplayMode . getWidth ( ) , targetDisplayMode . getHeight ( ) ) ; \n config . width = targetDisplayMode . getWidth ( ) ; \n config . height = targetDisplayMode . getHeight ( ) ;", "msg_token": "Reset resizable on change of DisplayMode change"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n COMMENT \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Jitsi license header"} {"diff": " \n package NAMESPACE ; \n \n - class Chunk { \n - public Chunk ( ) { \n - } \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + abstract class Chunk { \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ParseTreePatternMatcher { \n List < ? extends Token > tokenList = tokenize ( pattern ) ; \n ListTokenSource tokenSrc = new ListTokenSource ( tokenList ) ; \n CommonTokenStream tokens = new CommonTokenStream ( tokenSrc ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + \n parser . setTokenStream ( tokens ) ; \n parser . setErrorHandler ( new ParseTreePatternErrorStrategy ( ) ) ; \n ParseTree tree = null ;", "msg_token": "add comments to Chunk"} {"diff": " public class ImageBlurrer { \n return null ; \n } \n \n - Bitmap dest = Bitmap . createBitmap ( src ) ; \n + Bitmap dest = src . copy ( src . getConfig ( ) , false ) ; \n if ( radius == FLOAT0 && desaturateAmount == FLOAT0 ) { \n return dest ; \n }", "msg_token": "Ensure ImageBlurrer makes a copy for the destination"} {"diff": " public class PyFileImpl extends PsiFileBase implements PyFile , PyExpression { \n VariantsProcessor processor = new VariantsProcessor ( this ) { \n @ override \n protected void addElement ( String name , PsiElement element ) { \n - result . add ( ( PyElement ) element ) ; \n - if ( remainingDunderAll != null ) { \n - remainingDunderAll . remove ( name ) ; \n + element = PyUtil . turnDirIntoInit ( element ) ; \n + if ( element instanceof PyElement ) { \n + result . add ( ( PyElement ) element ) ; \n + if ( remainingDunderAll != null ) { \n + remainingDunderAll . remove ( name ) ; \n + } \n } \n } \n } ;", "msg_token": "avoid CCE when collecting variants in from import"} {"diff": " final class FinderPatternFinder { \n FinderPattern pattern = ( FinderPattern ) possibleCenters . elementAt ( i ) ; \n totalDeviation += Math . abs ( pattern . getEstimatedModuleSize ( ) - average ) ; \n } \n - return totalDeviation <= FLOAT0 * totalModuleSize ; \n + return totalDeviation <= FLOAT1 * totalModuleSize ; \n } \n \n COMMENT \n public final class QRCodeBlackBox4TestCase extends AbstractBlackBoxTestCase { \n \n public QRCodeBlackBox4TestCase ( ) { \n super ( STRING0 , new MultiFormatReader ( ) , BarcodeFormat . QR_CODE ) ; \n - addTest ( NUMBER0 , NUMBER0 , FLOAT2 ) ; \n + addTest ( NUMBER1 , NUMBER1 , FLOAT2 ) ; \n addTest ( NUMBER1 , NUMBER1 , FLOAT3 ) ; \n addTest ( NUMBER0 , NUMBER0 , FLOAT4 ) ; \n addTest ( NUMBER0 , NUMBER0 , FLOAT5 ) ;", "msg_token": "Tightened a condition to reduce accidentally detecting the alignment pattern as a finder pattern"} {"diff": " public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon \n SINGLE \n suspendedRouteServices . clear ( ) ; \n \n + SINGLE \n + SINGLE \n + for ( Service service : servicesToClose ) { \n + if ( service instanceof Consumer ) { \n + shutdownServices ( service ) ; \n + } \n + } \n + \n SINGLE \n \n SINGLE", "msg_token": "When stopping Camel then shutdown pojo Consume eager"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public class DnsDiscovery implements PeerDiscovery { \n private static final Logger log = LoggerFactory . getLogger ( DnsDiscovery . class ) ; \n \n - private String [ ] hostNames ; \n - private NetworkParameters netParams ; \n + private final String [ ] hostNames ; \n + private final NetworkParameters netParams ; \n \n COMMENT \n COMMENT", "msg_token": "Fix DnsDiscovery javadocs and make a couple of fields final"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n interface CustomChange { \n \n public class CommandLineMigrator { \n stream . println ( STRING0 ) ; \n stream . println ( STRING1 ) ; \n stream . println ( STRING2 ) ; \n - stream . println ( STRING3 ) ; \n + stream . println ( STRING4 ) ; \n stream . println ( STRING1 ) ; \n }", "msg_token": "changing link to moved documentation"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add import class"} {"diff": " public class RecyclerViewPager extends RecyclerView { \n \n @ override \n public boolean fling ( int velocityX , int velocityY ) { \n - boolean flinging = super . fling ( velocityX , velocityY ) ; \n + boolean flinging = super . fling ( ( int ) ( velocityX * mFlingFactor ) , ( int ) ( velocityY * mFlingFactor ) ) ; \n if ( flinging ) { \n if ( getLayoutManager ( ) . canScrollHorizontally ( ) ) { \n adjustPositionX ( velocityX ) ;", "msg_token": "improve fling action handling"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class XmlSyncTagCommunityTest extends XmlSyncTagTest { \n public void testEndTagEnd ( ) { \n doTest ( STRING0 , STRING1 , STRING2 ) ; \n } \n + \n + @ bombed ( user = STRING3 , day = NUMBER0 , month = Calendar . AUGUST , year = NUMBER1 ) \n + public void testMultipleEditors ( ) { \n + myFixture . configureByText ( XmlFileType . INSTANCE , STRING4 ) ; \n + final Editor editor = EditorFactory . getInstance ( ) . createEditor ( myFixture . getEditor ( ) . getDocument ( ) ) ; \n + EditorFactory . getInstance ( ) . releaseEditor ( editor ) ; \n + type ( STRING5 ) ; \n + myFixture . checkResult ( STRING6 ) ; \n + } \n }", "msg_token": "failing test for multiple editors for one document"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n SINGLE \n final NotificationGuts guts = ( NotificationGuts ) v . findViewById ( \n R . id . notification_guts ) ; \n + if ( guts == null ) { \n + SINGLE \n + return false ; \n + } \n \n SINGLE \n if ( guts . getVisibility ( ) == View . VISIBLE ) {", "msg_token": "Fixed a crash when the more card or the dismissview was longpressed"} {"diff": " public class SimpleMesh extends BaseObj { \n mVtxData [ mVtxCount ++ ] = mB ; \n mVtxData [ mVtxCount ++ ] = mA ; \n } \n + if ( ( mFlags & TEXTURE_0 ) != NUMBER0 ) { \n + makeSpace ( NUMBER1 ) ; \n + mVtxData [ mVtxCount ++ ] = mS0 ; \n + mVtxData [ mVtxCount ++ ] = mT0 ; \n + } \n if ( ( mFlags & NORMAL ) != NUMBER0 ) { \n makeSpace ( NUMBER2 ) ; \n mVtxData [ mVtxCount ++ ] = mNX ; \n mVtxData [ mVtxCount ++ ] = mNY ; \n mVtxData [ mVtxCount ++ ] = mNZ ; \n } \n - if ( ( mFlags & TEXTURE_0 ) != NUMBER0 ) { \n - makeSpace ( NUMBER1 ) ; \n - mVtxData [ mVtxCount ++ ] = mS0 ; \n - mVtxData [ mVtxCount ++ ] = mT0 ; \n - } \n } \n \n public void addVertex ( float x , float y ) {", "msg_token": "Fix bug exposed by filmstrip"} {"diff": " public class MySQLSqlStatementBuilder extends SqlStatementBuilder { \n \n @ override \n protected String removeEscapedQuotes ( String token ) { \n - String noBackslashEscapes = StringUtils . replaceAll ( StringUtils . replaceAll ( token , STRING0 , STRING1 ) , STRING2 , STRING1 ) ; \n + String noEscapedBackslashes = StringUtils . replaceAll ( token , STRING3 , STRING1 ) ; \n + String noBackslashEscapes = StringUtils . replaceAll ( StringUtils . replaceAll ( noEscapedBackslashes , STRING0 , STRING1 ) , STRING2 , STRING1 ) ; \n return StringUtils . replaceAll ( noBackslashEscapes , STRING4 , STRING1 ) ; \n } \n \n public class MySQLSqlStatementBuilderSmallTest { \n \n assertTrue ( builder . isTerminated ( ) ) ; \n } \n + \n + @ test \n + public void trailingEscapedBackSlash ( ) throws Exception { \n + builder . addLine ( STRING5 ) ; \n + \n + assertTrue ( builder . isTerminated ( ) ) ; \n + } \n }", "msg_token": "fixed improper handling of escaped backslaches"} {"diff": " public class WebView extends AbsoluteLayout \n } \n int x = viewToContentX ( ( int ) event . getX ( ) + mWebTextView . getLeft ( ) ) ; \n int y = viewToContentY ( ( int ) event . getY ( ) + mWebTextView . getTop ( ) ) ; \n - SINGLE \n - InputMethodManager . getInstance ( getContext ( ) ) . showSoftInput ( mWebTextView , \n - NUMBER0 ) ; \n if ( nativeFocusNodePointer ( ) != nativeCursorNodePointer ( ) ) { \n nativeMotionUp ( x , y , mNavSlop ) ; \n }", "msg_token": "Do not show soft keyboard for readonly textfields"} {"diff": " public abstract class PojoMessageHandlerBase < T > \n int indexSession , long maxMessageSize ) { \n this . pojo = pojo ; \n this . method = method ; \n + try { \n + this . method . setAccessible ( true ) ; \n + } catch ( Exception e ) { \n + SINGLE \n + SINGLE \n + } \n this . session = session ; \n this . params = params ; \n this . indexPayload = indexPayload ;", "msg_token": "Fix some arcane introspection errors"} {"diff": " public class GoSdkUtil { \n \n @ notnull \n public static Collection < Object > getSdkAndLibrariesCacheDependencies ( @ notnull Project project , @ nullable Module module , Object . . . extra ) { \n - Collection < Object > dependencies = ContainerUtil . < Object > newArrayList ( GoLibrariesService . getModificationTrackers ( project , module ) ) ; \n + Collection < Object > dependencies = ContainerUtil . newArrayList ( ( Object [ ] ) GoLibrariesService . getModificationTrackers ( project , module ) ) ; \n ContainerUtil . addAllNotNull ( dependencies , GoSdkService . getInstance ( project ) ) ; \n ContainerUtil . addAllNotNull ( dependencies , extra ) ; \n return dependencies ;", "msg_token": "Fix compilation warning"} {"diff": " public abstract class AbstractDaoTestCase { \n if ( settings . hasKey ( STRING0 ) ) { \n loadOrchestratorSettings ( settings ) ; \n } \n + for ( String key : settings . getKeysStartingWith ( STRING1 ) ) { \n + LOG . info ( key + STRING2 + settings . getString ( key ) ) ; \n + } \n boolean hasDialect = settings . hasKey ( STRING3 ) ; \n if ( hasDialect ) { \n database = new DefaultDatabase ( settings ) ;", "msg_token": "Add logs to DB tests"} {"diff": " public class FancyButton extends LinearLayout { \n drawable2 . setColor ( mFocusBackgroundColor ) ; \n } \n if ( mBorderColor != NUMBER0 ) { \n - drawable2 . setStroke ( mBorderWidth , mBorderColor ) ; \n + if ( mGhost ) { \n + drawable2 . setStroke ( mBorderWidth , mFocusBackgroundColor ) ; SINGLE \n + } \n + else { \n + drawable2 . setStroke ( mBorderWidth , mBorderColor ) ; \n + } \n } \n \n StateListDrawable states = new StateListDrawable ( ) ; \n public class FancyButton extends LinearLayout { \n COMMENT \n public void setGhost ( boolean ghost ) { \n this . mGhost = ghost ; \n + \n + if ( mIconView != null || mFontIconView != null || mTextView != null ) { \n + this . setupBackground ( ) ; \n + } \n + \n } \n \n }", "msg_token": "Changing border with focus color when clicked ghost fixing ghost setter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PutAllBackupOperation extends AbstractMapOperation implements Parti \n final Map . Entry < Data , Data > entry = entries . get ( i ) ; \n final Record record = recordStore . putBackup ( entry . getKey ( ) , entry . getValue ( ) ) ; \n Records . applyRecordInfo ( record , recordInfo ) ; \n + evict ( true ) ; \n } \n } \n \n public class PutAllBackupOperation extends AbstractMapOperation implements Parti \n recordInfos . add ( recordInfo ) ; \n } \n } \n + \n + protected void evict ( boolean backup ) { \n + final long now = Clock . currentTimeMillis ( ) ; \n + recordStore . evictEntries ( now , backup ) ; \n + } \n }", "msg_token": "Fixed leftover PutAllBackupOperation operation should also call evict method like PutAllOperation"} {"diff": " public abstract class AbstractModelConverter implements ModelConverter { \n protected String _findDefaultValue ( Annotated a ) { \n XmlElement elem = a . getAnnotation ( XmlElement . class ) ; \n if ( elem != null ) { \n - if ( ! elem . defaultValue ( ) . isEmpty ( ) ) { \n + if ( ! elem . defaultValue ( ) . isEmpty ( ) && ! STRING0 . equals ( elem . defaultValue ( ) ) ) { \n return elem . defaultValue ( ) ; \n } \n }", "msg_token": "added check for unwanted default value"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AtmosphereRequestTest { \n } ) ; \n } \n \n + @ aftermethod \n + public void stop ( ) { \n + framework . destroy ( ) ; \n + } \n + \n @ test \n public void testQueryStringAsRequest ( ) throws IOException , ServletException { \n framework . addAtmosphereHandler ( STRING0 , new AbstractReflectorAtmosphereHandler ( ) {", "msg_token": "Add a destroy method for the test"} {"diff": " public class EditSession extends JavaScriptObject \n \n public native final void setEditorMode ( String parserName , \n boolean suppressHighlighting ) COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT ;", "msg_token": "don t recreate editor modes on save unless mode has changed"} {"diff": " public class AuthTimeoutTest \n public void handle ( String s , Request r , HttpServletRequest request , HttpServletResponse response ) \n throws IOException , ServletException { \n \n + SINGLE \n + \n OutputStream out = response . getOutputStream ( ) ; \n if ( request . getHeader ( STRING0 ) != null ) { \n String content = request . getHeader ( STRING0 ) ;", "msg_token": "o Add explanation to handler"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ServerPropertiesTests { \n . getProtocolHeader ( ) ) ; \n } \n \n - SINGLE \n + @ test \n + public void testCustomizeTomcat ( ) throws Exception { \n + ConfigurableEmbeddedServletContainerFactory factory = mock ( ConfigurableEmbeddedServletContainerFactory . class ) ; \n + this . properties . customize ( factory ) ; \n + verify ( factory ) . setContextPath ( STRING0 ) ; \n + } \n + \n + @ test \n + public void testCustomizeTomcatPort ( ) throws Exception { \n + ConfigurableEmbeddedServletContainerFactory factory = mock ( ConfigurableEmbeddedServletContainerFactory . class ) ; \n + this . properties . setPort ( NUMBER0 ) ; \n + this . properties . customize ( factory ) ; \n + verify ( factory ) . setPort ( NUMBER0 ) ; \n + } \n \n }", "msg_token": "Add test for customize container factory"} {"diff": " public class FilterDataObject extends AssetDataObject { \n super ( pf , loader ) ; \n getLookupContents ( ) . add ( new FilterPostProcessorNode ( this ) ) ; \n saveExtension = STRING0 ; \n - getLookup ( ) . lookup ( AssetData . class ) . setExtension ( STRING0 ) ; \n } \n \n @ override", "msg_token": "remove false AssetData setExtension from FilterDataObject"} {"diff": " public class ProgressFrame extends JFrame implements PropertyChangeListener { \n SINGLE \n SINGLE \n \n - editor . statusNotice ( STRING0 ) ; \n + editor . statusNotice ( Language . text ( STRING1 ) ) ; \n ProgressFrame . this . closeProgressBar ( ) ; \n }", "msg_token": "added translation of notice after saving as"} {"diff": " public class DynamicDoubleProperty extends PropertyWrapper < Double > { \n public Double getValue ( ) { \n return get ( ) ; \n } \n - } \n + } \n public class DynamicFloatProperty extends PropertyWrapper < Float > { \n SINGLE \n return get ( ) ; \n } \n - } \n + } \n public class DynamicIntProperty extends PropertyWrapper < Integer > { \n public Integer getValue ( ) { \n return get ( ) ; \n } \n - } \n + } \n public class DynamicLongProperty extends PropertyWrapper < Long > { \n SINGLE \n return get ( ) ; \n } \n - } \n + } \n public abstract class PropertyWrapper < V > implements Property < V > { \n return STRING0 + prop . getName ( ) + STRING1 \n + prop . getString ( String . valueOf ( defaultValue ) ) + STRING2 ; \n } \n - } \n + }", "msg_token": "Revert the whitespace formatting changes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused import from moco"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n class GrassRS { \n private final int mHeight ; \n \n @ suppresswarnings ( { STRING0 } ) \n - private Script mScript ; \n + private ScriptC mScript ; \n @ suppresswarnings ( { STRING0 } ) \n private RenderScript . Sampler mSampler ; \n @ suppresswarnings ( { STRING0 } )", "msg_token": "Use the new ScriptC Builder API"} {"diff": " public class AbstractRestFunctionalTestBase implements GraphHolder \n \n protected String startGraph ( String name ) \n { \n - return AsciidocHelper . createGraphViz ( STRING0 , graphdb ( ) , name ) ; \n + return AsciidocHelper . createGraphViz ( STRING1 , graphdb ( ) , name ) ; \n } \n \n \n public class RESTDocsGenerator extends AsciiDocGenerator \n line ( fw , STRING2 ) ; \n } \n if ( graph != null ) { \n - fw . append ( AsciidocHelper . createGraphViz ( STRING3 , graph , title ) ) ; \n + fw . append ( AsciidocHelper . createGraphViz ( STRING4 , graph , title ) ) ; \n line ( fw , STRING2 ) ; \n } \n line ( fw , STRING5 ) ;", "msg_token": "Removed special characters from graphviz file names hoping this will fix windows unzipping issues"} {"diff": " public class GLMProgressPage2 extends Progress2 { \n } \n @ override protected Response jobDone ( final Job job , final Key dst ) { \n _isDone = true ; \n - return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0 , null ) ; \n + return new Response ( Response . Status . done , this , NUMBER0 , NUMBER0 , null , null ) ; \n } \n } \n }", "msg_token": "Remove varargs warning"} {"diff": " public class InferenceSessionContainer { \n \n @ nullable \n private static PsiCall treeWalkUp ( PsiElement context ) { \n + if ( context instanceof PsiExpression && ! PsiPolyExpressionUtil . isPolyExpression ( ( PsiExpression ) context ) ) { \n + return null ; \n + } \n PsiCall top = null ; \n PsiElement parent = PsiTreeUtil . getParentOfType ( context , \n PsiExpressionList . class ,", "msg_token": "don t process hierarchy up for standalone expressions"} {"diff": " public enum WarningLevel { \n options . checkSuspiciousCode = true ; \n options . checkGlobalThisLevel = CheckLevel . WARNING ; \n options . checkSymbols = true ; \n + options . checkMissingReturn = CheckLevel . WARNING ; \n \n SINGLE \n SINGLE \n public class CommandLineRunnerTest extends TestCase { \n test ( STRING0 , STRING1 ) ; \n } \n \n + public void testMissingReturnCheckOnWithVerbose ( ) { \n + args . add ( STRING2 ) ; \n + test ( STRING3 , \n + CheckMissingReturn . MISSING_RETURN_STATEMENT ) ; \n + } \n + \n COMMENT \n \n private void testSame ( String original ) {", "msg_token": "Enable check missing returns at the VERBOSE warning level by default"} {"diff": " public final class CallTest { \n call . enqueue ( callback ) ; \n assertEquals ( STRING0 , server . takeRequest ( ) . getPath ( ) ) ; \n \n - callback . await ( requestA . url ( ) ) . assertFailure ( STRING1 ) ; \n + callback . await ( requestA . url ( ) ) . assertFailure ( \n + STRING1 , STRING2 , STRING3 ) ; \n } \n \n @ test public void canceledBeforeResponseReadSignalsOnFailure_HTTP_2 ( ) throws Exception { \n public class RecordedResponse { \n return new RecordedResponse ( cacheResponse . request ( ) , cacheResponse , null , null ) ; \n } \n \n - public void assertFailure ( String message ) { \n + public void assertFailure ( String . . . messages ) { \n assertNotNull ( failure ) ; \n - assertEquals ( message , failure . getMessage ( ) ) ; \n + assertTrue ( failure . getMessage ( ) , Arrays . asList ( messages ) . contains ( failure . getMessage ( ) ) ) ; \n } \n }", "msg_token": "Accept other messages when testing canceled requests"} {"diff": " public abstract class AbstractJDBCItemSimilarity extends AbstractJDBCComponent i \n \n @ override \n public double itemSimilarity ( Item item1 , Item item2 ) throws TasteException { \n + \n + int compare = item1 . compareTo ( item2 ) ; \n + if ( compare == NUMBER0 ) { \n + return FLOAT0 ; \n + } \n + SINGLE \n + if ( compare > NUMBER0 ) { \n + Item temp = item1 ; \n + item1 = item2 ; \n + item2 = temp ; \n + } \n + \n Connection conn = null ; \n PreparedStatement stmt = null ; \n ResultSet rs = null ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Oops add note about key ordering"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Optimize java util"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class MessageLengthInterceptor extends AtmosphereInterceptorAdapter {", "msg_token": "Deprecate this Interceptor"} {"diff": " public class MimeUtility \n COMMENT \n COMMENT \n COMMENT \n - charset = Charset . forName ( originalCharset ) . name ( ) ; \n + \n + charset = Charset . forName ( fixupCharset ( originalCharset ) ) . name ( ) ; \n \n if ( charset == null ) \n { \n public class MimeUtility \n } \n return DEFAULT_ATTACHMENT_MIME_TYPE ; \n } \n + \n + \n + private static String fixupCharset ( String charset ) \n + { \n + charset = charset . toLowerCase ( ) ; \n + if ( charset . equals ( STRING0 ) ) \n + return STRING1 ; \n + else if ( charset . equals ( STRING2 ) ) \n + return STRING3 ; \n + \n + return charset ; \n + \n + } \n + \n + \n }", "msg_token": "Add a hook for hinting charset conversions to Java since Android s java"} {"diff": " public class GrailsPageResponseWrapper extends HttpServletResponseWrapper { \n private GrailsBuffer buffer ; \n private boolean parseablePage = false ; \n private GSPSitemeshPage gspSitemeshPage ; \n + private String wrapperContentType = null ; \n \n public GrailsPageResponseWrapper ( final HttpServletRequest request , final HttpServletResponse response , \n PageParserSelector parserSelector ) { \n public class GrailsPageResponseWrapper extends HttpServletResponseWrapper { \n COMMENT \n @ override \n public void setContentType ( String type ) { \n + this . wrapperContentType = type ; \n super . setContentType ( type ) ; \n \n if ( type == null ) { \n public class GrailsPageResponseWrapper extends HttpServletResponseWrapper { \n deactivateSiteMesh ( ) ; \n } \n } \n + \n + @ override \n + public String getContentType ( ) { \n + return this . wrapperContentType ; \n + } \n \n public void activateSiteMesh ( String contentType , String encoding ) { \n if ( parseablePage ) { \n public class GrailsPageResponseWrapper extends HttpServletResponseWrapper { \n return byteBuffer != null ; \n } \n } \n + \n }", "msg_token": "make GrailsPageResponseWrapper getContentType return only the contentType that has been set to the wrapper instance"} {"diff": " public class IOSTarget extends AbstractTarget { \n env = Collections . emptyMap ( ) ; \n } \n \n - AppLauncher launcher = new AppLauncher ( device , getAppDir ( ) ) \n + AppLauncher launcher = new AppLauncher ( device , getAppDir ( ) ) { \n + protected void log ( String s , Object . . . args ) { \n + config . getLogger ( ) . debug ( s , args ) ; \n + } \n + } \n . stdout ( out ) \n . closeOutOnExit ( true ) \n . args ( launchParameters . getArguments ( ) . toArray ( new String [ NUMBER0 ] ) ) \n . env ( env ) \n + . xcodePath ( ToolchainUtil . findXcodePath ( ) ) \n . uploadProgressCallback ( new UploadProgressCallback ( ) { \n boolean first = true ; \n public void success ( ) {", "msg_token": "Improved logging when launching on device"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class EndpointMvcIntegrationTests { \n \n protected static class TestInterceptor extends HandlerInterceptorAdapter { \n \n - private int count = NUMBER0 ; \n + private final AtomicInteger count = new AtomicInteger ( NUMBER0 ) ; \n \n @ override \n public void postHandle ( HttpServletRequest request , HttpServletResponse response , \n Object handler , ModelAndView modelAndView ) throws Exception { \n - this . count ++ ; \n + this . count . incrementAndGet ( ) ; \n } \n \n public int getCount ( ) { \n - return this . count ; \n + return this . count . get ( ) ; \n } \n \n }", "msg_token": "Make TestInterceptor thread safe"} {"diff": " public final class TachyonConf { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private void checkUserFileBufferBytes ( ) {", "msg_token": "SMALLFIX Fixed documentation links for checkUserFileBufferBytes in TachyonConf"} {"diff": " public class StringTermsTests extends ElasticsearchIntegrationTest { \n @ test \n public void singleValuedField_OrderedByMultiValuedSubAggregation_WithUknownMetric ( ) throws Exception { \n try { \n - client ( ) . prepareSearch ( STRING0 ) . setTypes ( STRING1 ) \n + SearchResponse response = client ( ) . prepareSearch ( STRING0 ) . setTypes ( STRING1 ) \n . addAggregation ( terms ( STRING2 ) \n . executionHint ( randomExecutionHint ( ) ) \n . field ( SINGLE_VALUED_FIELD_NAME ) \n public class StringTermsTests extends ElasticsearchIntegrationTest { \n . order ( Terms . Order . aggregation ( STRING3 , true ) ) \n . subAggregation ( stats ( STRING4 ) . field ( STRING5 ) ) \n ) . execute ( ) . actionGet ( ) ; \n - \n fail ( STRING6 + \n - STRING7 ) ; \n + STRING8 + response . getFailedShards ( ) + STRING9 ) ; \n \n } catch ( ElasticsearchException e ) { \n SINGLE", "msg_token": "TEST added more information to fail message for a test to debug test failure"} {"diff": " public class WebSocketProcessor implements Serializable { \n if ( resource != null && resource . isInScope ( ) ) { \n AsynchronousProcessor . AsynchronousProcessorHook h = ( AsynchronousProcessor . AsynchronousProcessorHook ) \n resource . getRequest ( ) . getAttribute ( ASYNCHRONOUS_HOOK ) ; \n - if ( closeCode == NUMBER0 ) { \n - h . timedOut ( ) ; \n + if ( h != null ) { \n + if ( closeCode == NUMBER0 ) { \n + h . timedOut ( ) ; \n + } else { \n + h . closed ( ) ; \n + } \n } else { \n - h . closed ( ) ; \n + logger . warn ( STRING0 ) ; \n } \n } \n } finally {", "msg_token": "Log trace when something bad occurs"} {"diff": " public final class CachedBluetoothDevice implements Comparable < CachedBluetoothDe \n COMMENT \n COMMENT \n if ( ! mProfiles . isEmpty ( ) \n - && ( ( mConnectAttempted + timeout ) > SystemClock . elapsedRealtime ( ) \n - || ( mConnectAttempted == NUMBER0 ) ) ) { \n + && ( ( mConnectAttempted + timeout ) > SystemClock . elapsedRealtime ( ) ) ) { \n connectWithoutResettingTimer ( false ) ; \n } \n + \n dispatchAttributesChanged ( ) ; \n }", "msg_token": "Fix profile auto connect logic"} {"diff": " public final class QueryId \n if ( obj == null || getClass ( ) != obj . getClass ( ) ) { \n return false ; \n } \n - final QueryId other = ( QueryId ) obj ; \n + QueryId other = ( QueryId ) obj ; \n return Objects . equals ( this . id , other . id ) ; \n }", "msg_token": "Remove unnecessary final in QueryId"} {"diff": " public class ChooseTargetContributor implements ChooseByNameContributor { \n } \n SINGLE \n if ( file . getName ( ) . equals ( STRING0 ) ) { \n - String target = STRING1 + currentText . substring ( NUMBER0 , currentText . length ( ) - NUMBER1 ) + STRING2 ; \n + int end = currentText . length ( ) - NUMBER1 ; \n + SINGLE \n + if ( currentText . isEmpty ( ) ) { \n + end = NUMBER0 ; \n + } \n + String target = STRING1 + currentText . substring ( NUMBER0 , end ) + STRING2 ; \n \n if ( otherTargets . containsKey ( target ) ) { \n names . addAll ( otherTargets . get ( target ) ) ;", "msg_token": "Minor fix of Buck plugin choose target"} {"diff": " public class ConnectionPool { \n if ( member == null ) { \n member = router . next ( ) ; \n if ( member == null ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 + router + STRING2 ) ; \n } \n } \n ObjectPool < Connection > pool = mPool . get ( member . getInetSocketAddress ( ) ) ;", "msg_token": "Improved exception when a router doesn t return a member to route to"} {"diff": " public class GroovyScriptTests extends ElasticsearchIntegrationTest { \n assertSearchHits ( resp , STRING0 , STRING1 ) ; \n \n SINGLE \n + SINGLE \n + SINGLE \n resp = client ( ) . prepareSearch ( STRING2 ) . setQuery ( functionScoreQuery ( matchQuery ( STRING3 , STRING4 ) ) \n - . add ( scriptFunction ( STRING5 , STRING6 ) ) \n + . add ( scriptFunction ( STRING7 , STRING6 ) ) \n . boostMode ( CombineFunction . REPLACE ) ) . get ( ) ; \n assertNoFailures ( resp ) ; \n assertSearchHits ( resp , STRING0 , STRING1 ) ;", "msg_token": "TEST Fix GroovyScriptTests failures"} {"diff": " public class PluginManagerCore { \n ourPlugins = pluginDescriptors ; \n } \n \n - private static void registerExtensionPointsAndExtensions ( ExtensionsArea area , List < IdeaPluginDescriptorImpl > result ) { \n - for ( IdeaPluginDescriptorImpl descriptor : result ) { \n - if ( shouldSkipPlugin ( descriptor ) ) continue ; \n + private static void registerExtensionPointsAndExtensions ( ExtensionsArea area , List < IdeaPluginDescriptorImpl > loadedPlugins ) { \n + for ( IdeaPluginDescriptorImpl descriptor : loadedPlugins ) { \n descriptor . registerExtensionPoints ( area ) ; \n } \n \n public class PluginManagerCore { \n epNames . add ( point . getName ( ) ) ; \n } \n \n - for ( IdeaPluginDescriptorImpl descriptor : result ) { \n - if ( shouldSkipPlugin ( descriptor ) ) continue ; \n + for ( IdeaPluginDescriptorImpl descriptor : loadedPlugins ) { \n for ( String epName : epNames ) { \n descriptor . registerExtensions ( area , epName ) ; \n }", "msg_token": "remove useless skipped plugin check"} {"diff": " public class CapturingProcessHandler extends OSProcessHandler { \n return myOutput ; \n } \n \n - @ notnull \n - public ProcessOutput runProcessCheckingCanceled ( ) throws ProcessCanceledException { \n - startNotify ( ) ; \n - while ( ! waitFor ( NUMBER0 ) ) { \n - try { \n - ProgressManager . checkCanceled ( ) ; \n - } \n - catch ( ProcessCanceledException e ) { \n - if ( ! isProcessTerminating ( ) && ! isProcessTerminated ( ) ) { \n - destroyProcess ( ) ; \n - } \n - throw e ; \n - } \n - } \n - if ( waitFor ( ) ) { \n - myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ; \n - } \n - else { \n - LOG . info ( STRING0 ) ; \n - } \n - return myOutput ; \n - } \n - \n }", "msg_token": "read module text asynchronously"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class OutputSchemaV4 < I extends Iced , S extends OutputSchemaV4 < I , S > > extends Schema < I , S > { \n \n @ api ( help = STRING0 ) \n - public String _schema ; \n + public String __schema ; \n \n \n public OutputSchemaV4 ( ) { \n - _schema = STRING1 + this . getSchemaName ( ) ; \n + __schema = STRING1 + this . getSchemaName ( ) ; \n } \n }", "msg_token": "Rename _schema __schema"} {"diff": " public class XmlFileImpl extends PsiFileImpl implements XmlFile { \n } \n \n public XmlDocument getDocument ( ) { \n - return findChildByClass ( XmlDocument . class ) ; \n + PsiElement child = getFirstChild ( ) ; \n + while ( child != null ) { \n + if ( child instanceof XmlDocument ) return ( XmlDocument ) child ; \n + child = child . getNextSibling ( ) ; \n + } \n + \n + return null ; \n } \n \n public boolean processElements ( PsiElementProcessor processor , PsiElement place ) {", "msg_token": "Specialize frequently used methods"} {"diff": " public class MovieDetailsFragment extends SherlockFragment { \n shareItem . setEnabled ( isEnableShare ) ; \n shareItem . setVisible ( isEnableShare && ! isDrawerOpen ) ; \n \n + MenuItem playStoreItem = menu . findItem ( R . id . menu_open_google_play ) ; \n + playStoreItem . setEnabled ( isEnableShare ) ; \n + playStoreItem . setVisible ( isEnableShare ) ; \n + \n boolean isEnableImdb = mMovieDetails . tmdbMovie ( ) != null \n && ! TextUtils . isEmpty ( mMovieDetails . tmdbMovie ( ) . imdb_id ) ; \n MenuItem imdbItem = menu . findItem ( R . id . menu_open_imdb ) ; \n public class MovieDetailsFragment extends SherlockFragment { \n return true ; \n } \n if ( itemId == R . id . menu_open_trakt ) { \n - ServiceUtils . openTraktMovie ( getActivity ( ) , mMovieDetails . tmdbMovie ( ) . id , TAG ) ; \n + ServiceUtils . openTraktMovie ( getActivity ( ) , mTmdbId , TAG ) ; \n return true ; \n } \n return super . onOptionsItemSelected ( item ) ;", "msg_token": "Only show Play link if usable fix crash for trakt link"} {"diff": " public class ConsistencyCheck { \n SINGLE \n if ( lastFetchedKey . containsKey ( nodeEntries ) ) { \n ByteArray lastKey = lastFetchedKey . get ( nodeEntries ) ; \n - if ( key != lastKey ) { \n + if ( ! key . equals ( lastKey ) ) { \n if ( ! fullyFetchedKeys . containsKey ( lastKey ) ) { \n fullyFetchedKeys . put ( lastKey , \n new HashSet < Iterator < Pair < ByteArray , Versioned < byte [ ] > > > > ( ) ) ; \n } \n Set < Iterator < Pair < ByteArray , Versioned < byte [ ] > > > > lastKeyIterSet = fullyFetchedKeys . get ( lastKey ) ; \n lastKeyIterSet . add ( nodeEntries ) ; \n + \n SINGLE \n if ( lastKeyIterSet . size ( ) == nodeIdList . size ( ) ) { \n SINGLE", "msg_token": "fixed a bug where the program does not sweep latest version consistent keys correctly"} {"diff": " public class HttpRequest { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void maxConnections ( final int maxConnections ) { \n + final String maxConnectionsValue = Integer . toString ( maxConnections ) ; \n + setProperty ( STRING0 , maxConnectionsValue ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added maxConnections property"} {"diff": " public class GetState implements VagrantCommand < VirtualMachineState > { \n private static final String STATUS = STRING0 ; \n \n public enum VirtualMachineState { \n - POWEROFF , RUNNING , NOT_CREATED \n + POWEROFF , RUNNING , NOT_CREATED , SAVED \n } \n \n @ override \n public class GetState implements VagrantCommand < VirtualMachineState > { \n } else if ( output . contains ( STRING1 ) ) \n { \n return VirtualMachineState . NOT_CREATED ; \n + } else if ( output . contains ( STRING2 ) ) \n + { \n + return VirtualMachineState . SAVED ; \n } \n \n throw new VagrantCommandException ( getClass ( ) . getName ( ) , statusResult ,", "msg_token": "Added understanding of VM state saved"} {"diff": " public class BigTextNotificationService extends NotificationServiceHelper { \n . putExtra ( BundleArgsConstants . OPEN_NAVIGATION_INDEX_EXTRA , \n unreadTabIndex ) ; \n PendingIntent pendingIntent = PendingIntent \n - . getActivity ( getBaseContext ( ) , NUMBER0 , clickToOpenAppPendingIntentInner , \n + . getActivity ( getBaseContext ( ) , getMentionsWeiboNotificationId ( accountBean ) , \n + clickToOpenAppPendingIntentInner , \n PendingIntent . FLAG_UPDATE_CURRENT ) ; \n return pendingIntent ; \n }", "msg_token": "fix notification click event issue"} {"diff": " public class OnCompletionDefinition extends ProcessorDefinition < ProcessorDefinit \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added onWhen to the onCompletion"} {"diff": " public class NotificationStackScrollLayout extends ViewGroup \n } \n \n private void updateHideSensitiveForChild ( View child ) { \n - if ( mAmbientState . isHideSensitive ( ) && child instanceof ExpandableView ) { \n + if ( child instanceof ExpandableView ) { \n ExpandableView expandableView = ( ExpandableView ) child ; \n - expandableView . setHideSensitiveForIntrinsicHeight ( true ) ; \n + expandableView . setHideSensitiveForIntrinsicHeight ( mAmbientState . isHideSensitive ( ) ) ; \n } \n }", "msg_token": "Fixed a bug where Notifications could overlap"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n break ; \n case ADD_DANMAKKU : \n synchronized ( danmakuList ) { \n - danmakuList . addItem ( ( BaseDanmaku ) msg . obj ) ; \n + CacheManagingDrawTask . super . addDanmaku ( ( BaseDanmaku ) msg . obj ) ; \n } \n break ; \n }", "msg_token": "Fix sync problem in CacheMana"} {"diff": " public class VClientImpl extends IVClient . Stub { \n private final Map < String , LoadedApk > strongRefPackages = new HashMap < > ( ) ; \n \n private void handleBindApplication ( AppBindData data ) { \n + Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { \n + @ override \n + public synchronized void start ( ) { \n + new Exception ( ) . printStackTrace ( ) ; \n + super . start ( ) ; \n + } \n + } ) ; \n ContextFixer . fixCamera ( ) ; \n mBoundApplication = data ; \n VirtualCore core = VirtualCore . getCore ( ) ; \n public class VClientImpl extends IVClient . Stub { \n AppBindDataCompat compat = new AppBindDataCompat ( hostBindData ) ; \n compat . setAppInfo ( data . appInfo ) ; \n compat . setProcessName ( data . processName ) ; \n + compat . setInfo ( data . info ) ; \n } \n \n private void installContentProviders ( Context context , List < ProviderInfo > providers ) {", "msg_token": "add the shutdown Hook"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface PlatformConfigurableToolChain extends ToolChain { \n public void target ( List < String > platformNames ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void target ( String . . . platformNames ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public void target ( Iterable < ? extends Platform > platform , Action < ? super ConfigurableToolChain > action ) ; \n public abstract class AbstractGccCompatibleToolChain extends ExtendableToolChain \n target ( platformNames , Actions . < ConfigurableToolChain > doNothing ( ) ) ; \n } \n \n + public void target ( String . . . platformNames ) { \n + target ( Arrays . asList ( platformNames ) , Actions . < ConfigurableToolChain > doNothing ( ) ) ; \n + } \n + \n public void target ( Platform platform , Action < ? super ConfigurableToolChain > action ) { \n target ( platform . getName ( ) , action ) ; \n }", "msg_token": "add target String overload to PlatformConfigurableToolChain"} {"diff": " import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ElTest extends CdiActivitiTestCase { \n assertEquals ( STRING0 , messageBean . getMessage ( ) ) ; \n } \n \n + @ test \n + @ deployment ( resources = STRING1 ) \n + public void testInvalidExpressions ( ) throws Exception { \n + ProcessInstance pi = runtimeService . startProcessInstanceByKey ( STRING2 ) ; \n + \n + assertEquals ( STRING3 , runtimeService . getVariable ( pi . getId ( ) , STRING4 ) ) ; \n + \n + SINGLE \n + \n + } \n } \n package NAMESPACE ; \n COMMENT \n public interface VariableType { \n \n + COMMENT \n + COMMENT \n + COMMENT \n String getTypeName ( ) ; \n boolean isCachable ( ) ; \n boolean isAbleToStore ( Object value ) ;", "msg_token": "added hint to limitation of variable type length to support index correctly"} {"diff": " package NAMESPACE ; \n \n public class AndroidConstants { \n \n - public static final String YOUTUBE_API_KEY = STRING0 ; \n + public static final String GOOGLE_CLIENT_KEY = STRING1 ; \n + \n } \n public class MovieDetailFragment extends BasePhilmMovieFragment \n case YOUTUBE : \n Intent intent = YouTubeStandalonePlayer . createVideoIntent ( \n getActivity ( ) , \n - AndroidConstants . YOUTUBE_API_KEY , \n + AndroidConstants . GOOGLE_CLIENT_KEY , \n trailer . getId ( ) , \n NUMBER0 , SINGLE \n true , SINGLE \n - true SINGLE \n + false SINGLE \n ) ; \n getActivity ( ) . startActivity ( intent ) ; \n break ; \n public class MovieDetailFragment extends BasePhilmMovieFragment \n view . findViewById ( R . id . imageview_youtube_thumbnail ) ; \n \n youtubeView . initialize ( \n - AndroidConstants . YOUTUBE_API_KEY , \n + AndroidConstants . GOOGLE_CLIENT_KEY , \n new YouTubeThumbnailView . OnInitializedListener ( ) { \n @ override \n public void onInitializationSuccess (", "msg_token": "Make Youtube API work"} {"diff": " public class CallPanel extends JPanel implements ActionListener { \n this . phoneNumberCombo . setEditable ( true ) ; \n \n this . comboPanel . add ( phoneNumberCombo , BorderLayout . CENTER ) ; \n - this . add ( comboPanel , BorderLayout . NORTH ) ; \n + SINGLE \n \n this . callButton . setName ( STRING0 ) ; \n this . hangupButton . setName ( STRING1 ) ; \n public class CallPanel extends JPanel implements ActionListener { \n this . buttonsPanel . add ( callButton ) ; \n this . buttonsPanel . add ( hangupButton ) ; \n \n - this . add ( buttonsPanel , BorderLayout . CENTER ) ; \n + SINGLE \n \n - this . minimizeButtonPanel . add ( minimizeButton ) ; \n + this . minimizeButtonPanel . add ( restoreButton ) ; \n \n this . add ( minimizeButtonPanel , BorderLayout . SOUTH ) ; \n }", "msg_token": "hide call panel by default"} {"diff": " public class ContactListTreeAdapter extends BaseExpandableListAdapter \n } \n \n private int getChildAdapterPosition ( int groupPosition ) { \n + \n if ( getSubscriptionCount ( ) > NUMBER0 ) { \n - return groupPosition ; \n + return groupPosition - NUMBER1 ; \n } else { \n return groupPosition ; \n }", "msg_token": "fixed related FC to handling friend requests proper cursor offset"} {"diff": " public abstract class Invocation implements OperationResponseHandler , Runnable { \n } \n \n return STRING0 \n - + STRING1 + op \n + + STRING2 + op \n + STRING3 + tryCount \n + STRING4 + tryPauseMillis \n + STRING5 + invokeCount", "msg_token": "Fixed small toString issue in Invocation unwanted comma"} {"diff": " public class SpanishXMLTreeReader implements TreeReader { \n \n SINGLE \n private static final String ATTR_COORDINATING = STRING0 ; \n + private static final String ATTR_CLAUSE_TYPE = STRING1 ; \n \n private NodeList sentences ; \n private int sentIdx ; \n public class SpanishXMLTreeReader implements TreeReader { \n String label = eRoot . getNodeName ( ) . trim ( ) ; \n \n if ( detailedAnnotations ) { \n - if ( eRoot . getAttribute ( ATTR_COORDINATING ) . equals ( STRING2 ) ) \n + if ( eRoot . getAttribute ( ATTR_COORDINATING ) . equals ( STRING2 ) ) { \n label += STRING3 ; \n + } else if ( eRoot . hasAttribute ( ATTR_CLAUSE_TYPE ) ) { \n + label += STRING4 + eRoot . getAttribute ( ATTR_CLAUSE_TYPE ) ; \n + } \n } \n \n return treeFactory . newTreeNode ( treeNormalizer . normalizeNonterminal ( label ) , children ) ;", "msg_token": "Add constituent clause type annotation from AnCora"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ViewerAction extends AnAction implements DumbAware { \n public void actionPerformed ( AnActionEvent e ) { \n public class ViewerAction extends AnAction implements DumbAware { \n PsiViewerDialog dialog = new PsiViewerDialog ( project , false ) ; \n dialog . show ( ) ; \n } \n + \n + @ override \n + public void update ( AnActionEvent e ) { \n + Project project = PlatformDataKeys . PROJECT . getData ( e . getDataContext ( ) ) ; \n + e . getPresentation ( ) . setEnabled ( project != null ) ; \n + } \n }", "msg_token": "disable action when no open project"} {"diff": " class MutableEntity implements Entity , Entity . Builder < MutableEntity > { \n @ override \n public void bufferEntity ( ) throws MessageProcessingException { \n try { \n - if ( isEmpty ( ) || contentStream . getType ( ) == ContentStream . Type . BUFFERED \n + if ( contentStream . getType ( ) == ContentStream . Type . BUFFERED \n || contentStream . getType ( ) == ContentStream . Type . EXTERNAL_BUFFERED ) { \n return ; \n }", "msg_token": "Removed check for isEmpty"} {"diff": " public class OpenCloseIndexTests extends AbstractSharedClusterTest { \n SINGLE \n closeIndexResponse = client ( ) . admin ( ) . indices ( ) . prepareClose ( STRING0 ) . setTimeout ( TimeValue . timeValueMillis ( NUMBER0 ) ) . execute ( ) . actionGet ( ) ; \n assertThat ( closeIndexResponse . isAcknowledged ( ) , equalTo ( false ) ) ; \n - SINGLE \n - assertIndexIsClosed ( STRING0 ) ; \n } \n \n private void assertIndexIsOpened ( String . . . indices ) {", "msg_token": "Removed wrong assertion from OpenCloseIndexTests"} {"diff": " public class AprLifecycleListener \n } \n } \n } \n - } else if ( Lifecycle . AFTER_STOP_EVENT . equals ( event . getType ( ) ) ) { \n + } else if ( Lifecycle . DESTROY_EVENT . equals ( event . getType ( ) ) ) { \n synchronized ( lock ) { \n if ( ! aprAvailable ) { \n return ;", "msg_token": "Prevent JVM crashes caused by shutting down the APR library too early"} {"diff": " public class BinaryRoutePlanner { \n || highway . endsWith ( STRING0 ) ) { \n return MAX_SPEAK_PRIORITY ; \n } \n - if ( highway . endsWith ( STRING1 ) || highway . endsWith ( STRING2 ) || highway . endsWith ( STRING3 ) ) { \n + if ( highway . endsWith ( STRING1 ) || highway . endsWith ( STRING2 ) || highway . endsWith ( STRING3 ) \n + || highway . endsWith ( STRING4 ) || highway . endsWith ( STRING5 ) ) { \n return NUMBER0 ; \n } \n return NUMBER1 ;", "msg_token": "Adjust keep left voice"} {"diff": " public final class ResourcesCompat { \n COMMENT \n COMMENT \n public static boolean getResources_getBoolean ( Context context , int id ) { \n - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB_MR2 ) { \n + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { \n return context . getResources ( ) . getBoolean ( id ) ; \n }", "msg_token": "Use sw and w qualifiers on ICS only"} {"diff": " public class AmbrosePigProgressNotificationListener implements PigProgressNotifi \n \n Properties jobConfProperties = getJobConfFromFile ( runningJob ) ; \n \n - JobID jobID = runningJob . getID ( ) ; \n + try { \n + JobID jobID = runningJob . getID ( ) ; \n + } catch ( NullPointerException npe ) { \n + log . warn ( STRING0 ) ; \n + } \n \n TaskReport [ ] mapTaskReport = jobClientLocal . getMapTaskReports ( jobID ) ; \n TaskReport [ ] reduceTaskReport = jobClientLocal . getReduceTaskReports ( jobID ) ;", "msg_token": "add back NPE check for runningJob getID"} {"diff": " public abstract class ATNSimulator { \n atn . grammarType = toInt ( data [ p ++ ] ) ; \n atn . maxTokenType = toInt ( data [ p ++ ] ) ; \n \n - SINGLE \n - ATNState eofTarget = new ATNState ( ) ; \n - \n SINGLE \n SINGLE \n SINGLE \n public abstract class ATNSimulator { \n } \n } \n \n - SINGLE \n - for ( RuleStopState ruleStopState : atn . ruleToStopState ) { \n - if ( ruleStopState . getNumberOfTransitions ( ) == NUMBER0 ) { \n - Transition t = new AtomTransition ( eofTarget , Token . EOF ) ; \n - ruleStopState . addTransition ( t ) ; \n - } \n - } \n - \n for ( ATNState state : atn . states ) { \n if ( state instanceof BlockStartState ) { \n SINGLE", "msg_token": "Remove code to explicitly add EOF transitions to rule stop states with no outgoing edges"} {"diff": " class RollupStats extends Iced { \n SINGLE \n SINGLE \n int nbins = MAX_SIZE ; \n - if ( rs . _isInt && ( int ) span == span ) { \n + if ( rs . _isInt && span < Integer . MAX_VALUE ) { \n nbins = ( int ) span + NUMBER0 ; SINGLE \n int lim = vec . isEnum ( ) ? Categorical . MAX_ENUM_SIZE : MAX_SIZE ; \n nbins = Math . min ( lim , nbins ) ; SINGLE", "msg_token": "Fixes a bad cast overflow test"} {"diff": " public final class MediaStore { \n public static final String MIME_TYPE = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String MTP_OBJECT_ID = STRING1 ; \n + \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public static final String MTP_OBJECT_HANDLE = STRING2 ; \n + public static final String MEDIA_SCANNER_NEW_OBJECT_ID = STRING3 ; \n } \n \n - \n - \n COMMENT \n COMMENT \n COMMENT \n public class MediaScanner \n map . put ( MediaStore . MediaColumns . SIZE , mFileSize ) ; \n map . put ( MediaStore . MediaColumns . MIME_TYPE , mMimeType ) ; \n if ( mMtpObjectHandle != NUMBER0 ) { \n - map . put ( MediaStore . MediaColumns . MTP_OBJECT_HANDLE , mMtpObjectHandle ) ; \n + map . put ( MediaStore . MediaColumns . MEDIA_SCANNER_NEW_OBJECT_ID , mMtpObjectHandle ) ; \n } \n \n if ( MediaFile . isVideoFileType ( mFileType ) ) {", "msg_token": "Add MTP_OBJECT_ID column name to MediaStore MediaColumns"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n COMMENT \n public class Dialects { \n \n public static final SqlOps HSQLDB = new SqlOps ( ) ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n COMMENT \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added javadoc headers"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public class LinkObject { \n \n private final ChannelMessage msg ;", "msg_token": "Deprecate now unused class"} {"diff": " public class Es6ToEs3Converter implements NodeTraversal . Callback , HotSwapCompile \n \n nodeToDetach . getParent ( ) . addChildBefore ( newNode , nodeToDetach ) ; \n SINGLE \n - visit ( t , child , newNode ) ; \n + visit ( t , child , child . getParent ( ) ) ; \n } \n nodeToDetach . detachFromParent ( ) ; \n compiler . reportCodeChange ( ) ;", "msg_token": "Fix a silly bug in which we were passing the wrong parent node to visit"} {"diff": " public class RestAssured { \n COMMENT \n COMMENT \n public static AuthenticationScheme certificate ( String certURL , String password , String certType , int port ) { \n - return certificate ( certURL , password , certType , port ) ; \n + return certificate ( certURL , password , certType , port , new NoKeystoreSpecImpl ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fix StackOverFlow on certificate method"} {"diff": " public class CalendarPickerView extends ListView { \n R . drawable . calendar_bg_selector ) ; \n dayTextColorResId = a . getResourceId ( R . styleable . CalendarPickerView_dayTextColor , \n R . color . calendar_text_selector ) ; \n - titleTextColor = \n - a . getColor ( R . styleable . CalendarPickerView_titleTextColor , R . color . calendar_text_active ) ; \n + titleTextColor = a . getColor ( R . styleable . CalendarPickerView_titleTextColor , \n + res . getColor ( R . color . calendar_text_active ) ) ; \n displayHeader = a . getBoolean ( R . styleable . CalendarPickerView_displayHeader , true ) ; \n - headerTextColor = \n - a . getColor ( R . styleable . CalendarPickerView_headerTextColor , R . color . calendar_text_active ) ; \n + headerTextColor = a . getColor ( R . styleable . CalendarPickerView_headerTextColor , \n + res . getColor ( R . color . calendar_text_active ) ) ; \n a . recycle ( ) ; \n \n adapter = new MonthAdapter ( ) ;", "msg_token": "Added a fix to get the correct default title and header text colors when they are not set in XML"} {"diff": " class PatternFinder implements Iterable < PatternMatch > , Iterator < PatternMatch > \n { \n uncompletedPositions . pop ( ) ; \n } \n - System . out . println ( STRING0 ) ; \n callStack . pop ( ) ; \n foundElements . pop ( ) ; \n return false ; \n class PatternFinder implements Iterable < PatternMatch > , Iterator < PatternMatch > \n { \n return true ; \n } \n - System . out . println ( STRING0 ) ; \n callStack . pop ( ) ; \n visitedRels . remove ( rel ) ; \n } \n class PatternFinder implements Iterable < PatternMatch > , Iterator < PatternMatch > \n if ( ! uncompletedPositions . isEmpty ( ) ) \n { \n PatternPosition digPos = uncompletedPositions . pop ( ) ; \n - System . out . println ( STRING1 + digPos ) ; \n digPos . reset ( ) ; \n matchFound = traverse ( digPos , false ) ; \n uncompletedPositions . push ( digPos ) ;", "msg_token": "Removed system outs"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class JpsJsModuleUtils { \n Set < JpsLibrary > libraries = JpsUtils . getAllDependencies ( target ) . getLibraries ( ) ; \n for ( JpsLibrary library : libraries ) { \n for ( JpsLibraryRoot root : library . getRoots ( JpsOrderRootType . COMPILED ) ) { \n - String path = JpsPathUtil . urlToPath ( root . getUrl ( ) ) ; \n - SINGLE \n - if ( LibraryUtils . isJsRuntimeLibrary ( new File ( path ) ) ) { \n - result . add ( path ) ; \n - } \n + result . add ( JpsPathUtil . urlToPath ( root . getUrl ( ) ) ) ; \n } \n } \n }", "msg_token": "remove filtering for Kotlin Javascript libraries"} {"diff": " public class MediaDriverAdminThread extends ClosableThread implements LibraryFac \n @ override \n public void process ( ) \n { \n - SINGLE \n + try \n + { \n + nioSelector . processKeys ( MediaDriver . SELECT_TIMEOUT ) ; \n + } \n + catch ( Exception e ) \n + { \n + SINGLE \n + e . printStackTrace ( ) ; \n + } \n + \n adminReceiveBuffer . read ( ( eventTypeId , buffer , index , length ) - > \n { \n SINGLE", "msg_token": "actually use the selector"} {"diff": " public class DefaultUnitOfWork implements UnitOfWork , Service { \n if ( exchange . getIn ( ) . getClass ( ) . getSimpleName ( ) . equals ( STRING0 ) ) { \n this . originalInMessage = new DefaultMessage ( ) ; \n this . originalInMessage . setBody ( exchange . getIn ( ) . getBody ( ) ) ; \n - this . originalInMessage . setHeaders ( exchange . getIn ( ) . getHeaders ( ) ) ; \n + this . originalInMessage . getHeaders ( ) . putAll ( exchange . getIn ( ) . getHeaders ( ) ) ; \n } else { \n this . originalInMessage = exchange . getIn ( ) . copy ( ) ; \n }", "msg_token": "Fixed copy original JMS message in UoW"} {"diff": " public class ArrayTrie < V > extends AbstractTrie < V > \n } \n \n \n - private < V > void toString ( Appendable out , int t ) \n + private void toString ( Appendable out , int t ) \n { \n if ( _value [ t ] != null ) \n {", "msg_token": "FindBugs Remove unnecessary template specialization"} {"diff": " public class HtmlUnitRequestBuilderTests { \n } \n \n @ test \n + @ suppresswarnings ( STRING0 ) \n public void buildRequestInputStream ( ) throws Exception { \n String content = STRING1 ; \n webRequest . setHttpMethod ( HttpMethod . POST ) ;", "msg_token": "Suppress deprecation warning in spring test"} {"diff": " public class GenerateTests { \n \n generateTest ( \n STRING0 , \n - STRING1 , \n - AbstractCodegenTest . class , \n - testModel ( STRING2 ) \n - ) ; \n - \n - generateTest ( \n - STRING0 , \n STRING3 , \n AbstractDefaultConstructorCodegenTest . class , \n testModel ( STRING4 ) \n public class GenerateTests { \n testModel ( STRING5 ) \n ) ; \n } \n - \n + \n private static SimpleTestClassModel testModel ( @ notnull String rootPath ) { \n return testModel ( rootPath , true , STRING6 , STRING7 ) ; \n }", "msg_token": "Remove duplicate in GenerateTests"} {"diff": " public interface ProjectsServerOperations extends PrefsServerOperations , \n { \n void getNewProjectContext ( ServerRequestCallback < NewProjectContext > callback ) ; \n \n - void createProject ( String projectDirectory , \n + void createProject ( String projectFile , \n NewPackageOptions newPackageOptions , \n ServerRequestCallback < Void > callback ) ; \n \n public class RemoteServer implements Server \n sendRequest ( RPC_SCOPE , GET_NEW_PROJECT_CONTEXT , callback ) ; \n } \n \n - public void createProject ( String projectDirectory , \n + public void createProject ( String projectFile , \n NewPackageOptions newPackageOptions , \n ServerRequestCallback < Void > requestCallback ) \n { \n JSONArray params = new JSONArray ( ) ; \n - params . set ( NUMBER0 , new JSONString ( projectDirectory ) ) ; \n + params . set ( NUMBER0 , new JSONString ( projectFile ) ) ; \n params . set ( NUMBER1 , newPackageOptions != null ? \n new JSONObject ( newPackageOptions ) : JSONNull . getInstance ( ) ) ; \n sendRequest ( RPC_SCOPE , CREATE_PROJECT , params , requestCallback ) ;", "msg_token": "clarify parameter name in createProject call"} {"diff": " public class CoreProjectScopeBuilder extends ProjectScopeBuilder { \n \n @ override \n public GlobalSearchScope buildContentScope ( ) { \n - return new ContentSearchScope ( myFileIndexFacade ) ; \n + return new ContentSearchScope ( myProject , myFileIndexFacade ) ; \n } \n \n private class CoreLibrariesScope extends GlobalSearchScope { \n public class CoreProjectScopeBuilder extends ProjectScopeBuilder { \n \n private final FileIndexFacade myFileIndexFacade ; \n \n - public ContentSearchScope ( FileIndexFacade fileIndexFacade ) { \n + public ContentSearchScope ( Project project , FileIndexFacade fileIndexFacade ) { \n + super ( project ) ; \n myFileIndexFacade = fileIndexFacade ; \n } \n \n public class ProjectScopeBuilderImpl extends ProjectScopeBuilder { \n \n @ override \n public GlobalSearchScope buildContentScope ( ) { \n - return new CoreProjectScopeBuilder . ContentSearchScope ( FileIndexFacade . getInstance ( myProject ) ) ; \n + return new CoreProjectScopeBuilder . ContentSearchScope ( myProject , FileIndexFacade . getInstance ( myProject ) ) ; \n } \n }", "msg_token": "fix NodeTests tests by proper javascript symbols resolve scope"} {"diff": " public class QSAnimator implements Callback , PageListener , Listener , OnLayoutCha \n \n private void getRelativePositionInt ( int [ ] loc1 , View view , View parent ) { \n if ( view == parent || view == null ) return ; \n - loc1 [ NUMBER0 ] += view . getX ( ) ; \n - loc1 [ NUMBER1 ] += view . getTop ( ) ; \n + SINGLE \n + SINGLE \n + if ( ! ( view instanceof PagedTileLayout . TilePage ) ) { \n + loc1 [ NUMBER0 ] += view . getLeft ( ) ; \n + loc1 [ NUMBER1 ] += view . getTop ( ) ; \n + } \n getRelativePositionInt ( loc1 , ( View ) view . getParent ( ) , parent ) ; \n }", "msg_token": "Fix RTL animation"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VerificationCollectorImplTest { \n assertThat ( result . getFailures ( ) . get ( NUMBER0 ) . getMessage ( ) ) . contains ( STRING0 ) ; \n } \n \n + @ ignore ( STRING1 ) \n public static class VerificationCollectorRuleInner { \n \n @ rule", "msg_token": "Ignore test case that is only supposed to be run from another test"} {"diff": " public final class Constants { \n public static final String HOME = STRING0 ; \n public static final String DEBUG = STRING1 ; \n public static final String LOGGER_TYPE = STRING2 ; \n - public static final String ACCESS_LOGGER_TYPE = STRING3 ; \n public static final String VERSION = STRING4 ; \n public static final String WEB_RESOURCES = STRING5 ; \n public static final String WEB_THREAD_COUNT = STRING6 ;", "msg_token": "SMALLFIX Remove reference of access logger in constant java"} {"diff": " public class MiscImportingTest extends MavenImportingTestCase { \n MavenProject mavenProject = projects . get ( NUMBER0 ) ; \n assertEquals ( STRING0 , mavenProject . getFinalName ( ) ) ; \n \n - assertEquals ( myProjectPom . getPath ( ) , mavenProject . getProperties ( ) . getProperty ( STRING1 ) ) ; \n + assertEquals ( myProjectPom . getPath ( ) . replace ( STRING2 , STRING3 ) , mavenProject . getProperties ( ) . getProperty ( STRING1 ) ) ; \n } \n \n public void testExceptionsFromMavenExtensionsAreReportedAsProblems ( ) throws Exception {", "msg_token": "Fix maven test"} {"diff": " public final class LocalDate \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class LocalDateTime \n \n SINGLE \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public int size ( ) { \n return NUMBER0 ;", "msg_token": "fixed counts in comments"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaValue extends XNamedValue implements NodeDescriptorProvider , XV \n \n @ override \n public void contextAction ( ) throws Exception { \n - final String valueAsString = myValueDescriptor . getValueText ( ) ; \n - DebuggerInvocationUtil . invokeLater ( getProject ( ) , new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - callback . evaluated ( valueAsString ) ; \n - } \n - } ) ; \n + callback . evaluated ( myValueDescriptor . getValueText ( ) ) ; \n } \n } ) ; \n }", "msg_token": "removed redundant invokeLater"} {"diff": " public class WebSocketProcessor implements Serializable { \n \n AtmosphereResource resource = ( AtmosphereResource ) request . getAttribute ( FrameworkConfig . ATMOSPHERE_RESOURCE ) ; \n \n - if ( webSocket . resource ( ) == null && WebSocketAdapter . class . isAssignableFrom ( webSocket . getClass ( ) ) ) { \n - WebSocketAdapter . class . cast ( webSocket ) . setAtmosphereResource ( resource ) ; \n - } \n - \n if ( r . getStatus ( ) >= NUMBER0 ) { \n webSocketProtocol . onError ( webSocket , new WebSocketException ( STRING0 , r ) ) ; \n } \n + \n + if ( webSocket . resource ( ) == null && WebSocketAdapter . class . isAssignableFrom ( webSocket . getClass ( ) ) ) { \n + WebSocketAdapter . class . cast ( webSocket ) . setAtmosphereResource ( resource ) ; \n + } \n } \n \n public WebSocket webSocket ( ) {", "msg_token": "Throw an error before trying to cast"} {"diff": " public class NodeChild extends GPathResult { \n COMMENT \n COMMENT \n public GPathResult find ( final Closure closure ) { \n - if ( InvokerHelper . asBool ( closure . call ( new Object [ ] { this } ) ) ) { \n + if ( InvokerHelper . asBool ( closure . call ( new Object [ ] { this . node } ) ) ) { \n return this ; \n } else { \n return new NoChildren ( this , STRING0 , this . namespaceTagHints ) ;", "msg_token": "Supply the right parameter to findAll"} {"diff": " public class MainActivity extends Activity { \n @ override \n protected void onSaveInstanceState ( Bundle outState ) { \n super . onSaveInstanceState ( outState ) ; \n + outState . putBoolean ( STATE_IN_PERMISSION , isInPermission ) ; \n \n if ( breadcrust . getVisibility ( ) == View . VISIBLE ) { \n - outState . putBoolean ( STATE_IN_PERMISSION , isInPermission ) ; \n outState . putCharSequence ( STATE_BREADCRUST , \n breadcrust . getText ( ) ) ; \n }", "msg_token": "update state only if needed"} {"diff": " public class ExpressionAnalyzer \n throw new SemanticException ( NOT_SUPPORTED , node , STRING0 + node . getClass ( ) . getName ( ) ) ; \n } \n \n + @ override \n + protected Type visitNode ( Node node , StackableAstVisitorContext < AnalysisContext > context ) \n + { \n + throw new SemanticException ( NOT_SUPPORTED , node , STRING0 + node . getClass ( ) . getName ( ) ) ; \n + } \n + \n private Type getOperator ( StackableAstVisitorContext < AnalysisContext > context , Expression node , OperatorType operatorType , Expression . . . arguments ) \n { \n ImmutableList . Builder < Type > argumentTypes = ImmutableList . builder ( ) ;", "msg_token": "Throw error when visiting non Expression node in ExpressionAnalyzer"} {"diff": " public class HeatMapViewHandler implements ViewHandler < HeatMapViewRequest , HeatM \n Utils . getDimensionsToGroupBy ( queryCache , collection , filters ) ; \n \n List < MetricExpression > metricExpressions = request . getMetricExpressions ( ) ; \n - List < MetricFunction > metricFunctions = \n - Utils . computeMetricFunctionsFromExpressions ( metricExpressions ) ; \n comparisonRequest . setCollectionName ( collection ) ; \n comparisonRequest . setBaselineStart ( baselineStart ) ; \n comparisonRequest . setBaselineEnd ( baselineEnd ) ; \n comparisonRequest . setCurrentStart ( currentStart ) ; \n comparisonRequest . setCurrentEnd ( currentEnd ) ; \n comparisonRequest . setGroupByDimensions ( dimensionsToGroupBy ) ; \n - \n + comparisonRequest . setFilterSet ( filters ) ; \n comparisonRequest . setMetricExpressions ( metricExpressions ) ; \n comparisonRequest . setAggregationTimeGranularity ( null ) ; \n return comparisonRequest ;", "msg_token": "Passing filter set from heatmaprequest to timeontimerequest"} {"diff": " public class JDBCConnectionImpl extends AbstractSession implements JDBCSession , \n scrollable ? ResultSet . TYPE_SCROLL_INSENSITIVE : ResultSet . TYPE_FORWARD_ONLY , \n updatable ? ResultSet . CONCUR_UPDATABLE : ResultSet . CONCUR_READ_ONLY ) ; \n } \n - catch ( UnsupportedOperationException | LinkageError e ) { \n + catch ( UnsupportedOperationException | LinkageError | SQLFeatureNotSupportedException e ) { \n statement = createStatement ( ) ; \n } \n if ( statement instanceof JDBCStatementImpl ) { \n ( ( JDBCStatementImpl ) statement ) . setQueryString ( sqlQuery ) ; \n } \n - } catch ( IllegalArgumentException e ) { \n + } catch ( IllegalArgumentException | SQLFeatureNotSupportedException e ) { \n log . warn ( e ) ; \n try { \n statement = prepareStatement (", "msg_token": "SQL statement prepare error handling"} {"diff": " class MCMPHandler implements HttpHandler { \n final InetSocketAddress addr = exchange . getDestinationAddress ( ) ; \n SINGLE \n if ( addr . getPort ( ) != config . getManagementPort ( ) || ( ! addr . getHostString ( ) . equals ( config . getManagementHost ( ) ) && ! addr . getHostString ( ) . equals ( config . getManagementHostIp ( ) ) ) ) { \n - SINGLE \n - UndertowLogger . REQUEST_LOGGER . error ( STRING0 + addr . getPort ( ) + STRING1 + config . getManagementPort ( ) + STRING2 + addr . getHostString ( ) + STRING1 + config . getManagementHost ( ) + STRING3 + config . getManagementHostIp ( ) ) ; \n next . handleRequest ( exchange ) ; \n return ; \n }", "msg_token": "Remove temporary logging"} {"diff": " public class PyMultiFileResolveTest extends CodeInsightTestCase { \n assertTrue ( element instanceof PyFunction ) ; \n } \n \n + COMMENT \n + SINGLE \n + public void testCircularImport ( ) throws Exception { \n + PsiElement element = doResolve ( ) ; \n + assertTrue ( element instanceof PyTargetExpression ) ; \n + } \n + COMMENT \n + \n + \n private PsiElement doResolve ( ) throws Exception { \n String testName = getTestName ( true ) ; \n String fileName = getTestName ( false ) + STRING0 ;", "msg_token": "Added a commented out test case that fails currently due to inadequate stubs"} {"diff": " public class MainActivity extends Activity { \n . withTitleColor ( STRING0 ) SINGLE \n . withDividerColor ( STRING1 ) SINGLE \n . withMessage ( STRING2 ) SINGLE \n - . withMessageColor ( STRING0 ) SINGLE \n + . withMessageColor ( STRING3 ) SINGLE \n + . withDialogColor ( STRING4 ) SINGLE \n . withIcon ( getResources ( ) . getDrawable ( R . drawable . icon ) ) \n . isCancelableOnTouchOutside ( true ) SINGLE \n . withDuration ( NUMBER0 ) SINGLE", "msg_token": "update the sample scottagarman"} {"diff": " public class DB2AuthVariable extends DB2AuthBase { \n super ( monitor , db2Grantee , db2Variable , resultSet ) ; \n \n this . read = CommonUtils . valueOf ( DB2AuthHeldType . class , JDBCUtils . safeGetString ( resultSet , STRING0 ) ) ; \n - this . write = CommonUtils . valueOf ( DB2AuthHeldType . class , JDBCUtils . safeGetString ( resultSet , STRING1 ) ) ; \n + this . write = CommonUtils . valueOf ( DB2AuthHeldType . class , JDBCUtils . safeGetString ( resultSet , STRING2 ) ) ; \n } \n \n SINGLE", "msg_token": "Fixed variable privileges"} {"diff": " public class Deflector { SINGLE \n \n public String [ ] getAllDeflectorIndexNames ( final Indexer indexer ) { \n final Indices indices = indexer . indices ( ) ; \n - final List < String > result = Lists . newArrayListWithExpectedSize ( indices . getAll ( ) . size ( ) ) ; \n \n + if ( null == indices ) { \n + return new String [ NUMBER0 ] ; \n + } \n + \n + final List < String > result = Lists . newArrayListWithExpectedSize ( indices . getAll ( ) . size ( ) ) ; \n for ( String indexName : indices . getAll ( ) . keySet ( ) ) { \n if ( isGraylog2Index ( indexName ) ) { \n result . add ( indexName ) ;", "msg_token": "Fix newly introduced NPE Deflector getAllDeflectorIndexNames duh"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n sp . removeSpan ( cw ) ; \n } \n \n + SINGLE \n + sp . removeSpan ( mSuggestionRangeSpan ) ; \n + \n ss . text = sp ; \n } else { \n ss . text = mText . toString ( ) ;", "msg_token": "Remove suggestion span underline on device rotation"} {"diff": " public class FileResourceTest { \n FileResource toTest = new FileResource ( new File ( STRING0 ) , new File ( STRING0 ) ) ; \n \n SINGLE \n - assertEquals ( STRING1 , toTest . getPath ( ) ) ; \n + assertEquals ( STRING2 + File . separator + STRING3 , toTest . getPath ( ) ) ; \n } \n \n @ test \n public void get_path_should_return_truncated_path_when_absolute_file_paths_are_input ( ) { \n SINGLE \n - FileResource toTest = new FileResource ( new File ( STRING4 ) , new File ( STRING5 ) ) ; \n + FileResource toTest = new FileResource ( new File ( STRING6 ) , new File ( STRING7 ) ) ; \n \n SINGLE \n - assertEquals ( STRING1 , toTest . getPath ( ) ) ; \n + assertEquals ( STRING3 , toTest . getPath ( ) ) ; \n } \n }", "msg_token": "fixing up tests and removing windows assumption"} {"diff": " import NAMESPACE ; \n COMMENT \n class StyleApplier { \n \n - SINGLE \n - private static final int SOURCE_BUF_MULTIPLIER = NUMBER0 ; \n - \n @ notnull \n private SortedSet < Tag > tags = new TreeSet < Tag > ( ) ; \n \n class StyleApplier { \n COMMENT \n @ notnull \n public String apply ( ) { \n - buffer = new StringBuilder ( source . length ( ) * SOURCE_BUF_MULTIPLIER ) ; \n + buffer = new StringBuilder ( ) ; \n \n for ( Tag tag : tags ) { \n tag . insert ( ) ; \n public class StyleRun implements Comparable < StyleRun > { \n @ notnull \n @ override \n public String toString ( ) { \n - return STRING0 + type + STRING1 + offset + STRING2 + length + STRING3 ; \n + return STRING0 + type + STRING4 + offset + STRING2 + length + STRING3 ; \n } \n }", "msg_token": "remove premature optimization and beg"} {"diff": " public class GoApplicationRunningState extends GoRunningState < GoApplicationConfi \n @ override \n protected GoExecutor patchExecutor ( @ notnull GoExecutor executor ) throws ExecutionException { \n if ( isDebug ( ) ) { \n - File dlv = new File ( GoUtil . getPlugin ( ) . getPath ( ) , STRING0 + ( SystemInfo . isMac ? STRING1 : STRING2 ) + STRING3 + GoConstants . DELVE_EXECUTABLE_NAME ) ; \n + String dlvPath = System . getProperty ( STRING4 ) ; \n + File dlv = dlvPath != null ? \n + new File ( dlvPath ) : \n + new File ( GoUtil . getPlugin ( ) . getPath ( ) , STRING0 + ( SystemInfo . isMac ? STRING1 : STRING2 ) + STRING3 + GoConstants . DELVE_EXECUTABLE_NAME ) ; \n if ( dlv . exists ( ) && ! dlv . canExecute ( ) ) { \n SINGLE \n dlv . setExecutable ( true , false ) ;", "msg_token": "introduce a dlv path property for easier debugging"} {"diff": " public class OperationSetBasicTelephonyJabberImpl \n { \n throw new OperationFailedException ( \n STRING0 \n - + STRING1 + calleeAddress + STRING2 \n + + STRING3 + calleeAddress + STRING4 \n , OperationFailedException . INTERNAL_ERROR ) ; \n } \n \n public class OperationSetBasicTelephonyJabberImpl \n } \n catch ( XMPPException ex ) \n { \n - logger . warn ( STRING5 + fullCalleeURI , ex ) ; \n + logger . warn ( STRING6 + fullCalleeURI , ex ) ; \n } \n \n try \n public class OperationSetBasicTelephonyJabberImpl \n } \n catch ( XMPPException ex ) \n { \n - logger . error ( STRING7 + ex ) ; \n + logger . error ( STRING8 + ex ) ; \n return ; \n }", "msg_token": "Fixes a few spelling mistakes because at least one of them gets displayed in the UI"} {"diff": " public final class MethodSpec { \n return this ; \n } \n \n + public Builder addComment ( String format , Object . . . args ) { \n + code . add ( STRING0 + format + STRING1 , args ) ; \n + return this ; \n + } \n + \n public Builder defaultValue ( String format , Object . . . args ) { \n return defaultValue ( CodeBlock . of ( format , args ) ) ; \n }", "msg_token": "Add convenience method builder addComment"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class ServerBootstrap extends AbstractBootstrap < ServerBootstrap , ServerChannel > { \n + public final class ServerBootstrap extends AbstractBootstrap < ServerBootstrap , Channel > { \n \n private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ServerBootstrap . class ) ;", "msg_token": "Relax ServerBootstrap type constraint to support UDT properly"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n private final Runnable mUpdateRotationRunnable = new Runnable ( ) { \n @ override \n public void run ( ) { \n + SINGLE \n + mPowerManagerInternal . powerHint ( PowerManagerInternal . POWER_HINT_INTERACTION , NUMBER0 ) ; \n updateRotation ( false ) ; \n } \n } ;", "msg_token": "Send POWER_HINT_INTERACTION on rotate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n public class DSLContexts { \n SQLDialect dialect ; \n try ( Connection conn = dataSource . getConnection ( ) ) { \n dialect = dialect ( conn ) ; \n + \n + SINGLE \n + if ( conn . getMetaData ( ) . getURL ( ) . startsWith ( STRING0 ) ) { \n + dialect = POSTGRES ; \n + } \n } \n return DSL . using ( dataSource , dialect , \n new Settings ( )", "msg_token": "Fix DSLContext setup for new postgres driver"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " public final class BluetoothDevice implements Parcelable { \n COMMENT \n public boolean cancelPairingUserInput ( ) { \n try { \n - return sService . setPairingConfirmation ( this , false ) ; \n + return sService . cancelBondProcess ( this ) ; \n } catch ( RemoteException e ) { Log . e ( TAG , STRING0 , e ) ; } \n return false ; \n }", "msg_token": "Handle cancel bond for both legacy and ssp pairing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TraceState \n public void runMayThrow ( ) \n { \n CFMetaData cfMeta = CFMetaData . TraceEventsCf ; \n - ColumnFamily cf = ArrayBackedSortedColumns . factory . create ( cfMeta ) ; \n + ColumnFamily cf = TreeMapBackedSortedColumns . factory . create ( cfMeta ) ; \n Tracing . addColumn ( cf , Tracing . buildName ( cfMeta , eventId , ByteBufferUtil . bytes ( STRING0 ) ) , message ) ; \n Tracing . addColumn ( cf , Tracing . buildName ( cfMeta , eventId , ByteBufferUtil . bytes ( STRING1 ) ) , FBUtilities . getBroadcastAddress ( ) ) ; \n if ( elapsed >= NUMBER0 )", "msg_token": "Replace fragile ish ABSC w TMBSC in TraceState"} {"diff": " public class TestHttp2Section_6_8 extends Http2TestBase { \n sendSimpleGetRequest ( NUMBER0 ) ; \n \n parser . readFrame ( true ) ; \n + SINGLE \n + System . err . println ( output . getTrace ( ) ) ; \n parser . readFrame ( true ) ; \n + SINGLE \n + System . err . println ( output . getTrace ( ) ) ; \n \n Assert . assertEquals ( getSimpleResponseTrace ( NUMBER1 ) , output . getTrace ( ) ) ; \n output . clearTrace ( ) ;", "msg_token": "Add some debugging to try and understand current Gump failure"} {"diff": " public class ExpandableNotificationRow extends ActivatableNotificationView { \n target . animate ( ) . cancel ( ) ; \n source . animate ( ) \n . alpha ( FLOAT0 ) \n - . withLayer ( ) \n . setStartDelay ( delay ) \n . setDuration ( duration ) \n . withEndAction ( new Runnable ( ) { \n public class ExpandableNotificationRow extends ActivatableNotificationView { \n } ) ; \n target . animate ( ) \n . alpha ( FLOAT1 ) \n - . withLayer ( ) \n . setStartDelay ( delay ) \n . setDuration ( duration ) ; \n } \n public class NotificationContentView extends FrameLayout { \n } \n } \n \n + @ override \n + public boolean hasOverlappingRendering ( ) { \n + \n + SINGLE \n + SINGLE \n + return false ; \n + } \n + \n private static Paint createInvertPaint ( ) { \n final Paint p = new Paint ( ) ; \n final float [ ] invert = {", "msg_token": "Don t use layers when fading between public private layout"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n public static final String IM_ISPRIMARY = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DATA = STRING1 ; \n } \n } \n }", "msg_token": "Adding Insert DATA extra for new edit contact intents"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class DribbbleDataAdapter implements SectionedAdapter { \n \n private Context context ;", "msg_token": "Formatted some imports"} {"diff": " You may obtain a copy of the License at \n \n http: SINGLE \n \n - Unless required by applicable law or agreed to in writing , softwareF \n + Unless required by applicable law or agreed to in writing , software \n distributed under the License is distributed on an STRING0 BASIS , \n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied . \n See the License for the specific language governing permissions and", "msg_token": "Fix my own typo"} {"diff": " public final class AttachmentProcessor extends AbstractProcessor { \n \n CONTENT , \n TITLE , \n - NAME , \n AUTHOR , \n KEYWORDS , \n DATE ,", "msg_token": "remove unused NAME enum"} {"diff": " public class MainActivity extends AppCompatActivity { \n \n SINGLE \n EasyMemoryMod easyMemoryMod = new EasyMemoryMod ( this ) ; \n - deviceDataMap . put ( STRING0 , String . valueOf ( easyMemoryMod . getTotalRAM ( ) ) + STRING1 ) ; \n + deviceDataMap . put ( STRING2 , String . valueOf ( easyMemoryMod . getTotalRAM ( ) ) + STRING1 ) ; \n deviceDataMap . put ( STRING3 , \n String . valueOf ( easyMemoryMod . getAvailableInternalMemorySize ( ) ) + STRING1 ) ; \n deviceDataMap . put ( STRING4 ,", "msg_token": "fixed typo in title"} {"diff": " final class ActivityStack { \n if ( mLastPausedActivity != null && mLastPausedActivity . app == app ) { \n mLastPausedActivity = null ; \n } \n + final ActivityRecord top = topRunningActivityLocked ( null ) ; \n + final boolean launchHomeTaskNext = \n + top != null && top . app == app && top . mLaunchHomeTaskNext ; \n \n SINGLE \n boolean hasVisibleActivities = removeHistoryRecordsForAppLocked ( app ) ; \n \n if ( ! restarting ) { \n ActivityStack stack = mStackSupervisor . getFocusedStack ( ) ; \n - if ( stack == null ) { \n + if ( stack == null || launchHomeTaskNext ) { \n mStackSupervisor . resumeHomeActivity ( null ) ; \n } else if ( ! mStackSupervisor . resumeTopActivitiesLocked ( stack , null , null ) ) { \n SINGLE", "msg_token": "When an app dies launch home conditionally"} {"diff": " public class PhotoViewAttacher implements View . OnTouchListener , VersionedGesture \n COMMENT \n COMMENT \n COMMENT \n - public boolean canZoom ( ) { \n + public final boolean canZoom ( ) { \n return mZoomEnabled ; \n } \n \n public class PhotoViewAttacher implements View . OnTouchListener , VersionedGesture \n COMMENT \n COMMENT \n COMMENT \n - public void zoomTo ( float scale , float focalX , float focalY ) { \n + public final void zoomTo ( float scale , float focalX , float focalY ) { \n mImageView . post ( new AnimatedZoomRunnable ( getScale ( ) , scale , focalX , focalY ) ) ; \n }", "msg_token": "Make the remaining public methods final"} {"diff": " public abstract class FileDifferenceModel { \n protected abstract Entry getRightEntry ( ) ; \n \n public DiffContent getLeftDiffContent ( RevisionProcessingProgress p ) { \n - if ( ! hasLeftEntry ( ) ) return DiffContentFactory . getInstance ( ) . create ( STRING0 ) ; \n + if ( ! hasLeftEntry ( ) ) return DiffContentFactory . getInstance ( ) . createEmpty ( ) ; \n if ( ! isLeftContentAvailable ( p ) ) return DiffContentFactory . getInstance ( ) . create ( STRING1 ) ; \n return doGetLeftDiffContent ( p ) ; \n } \n \n public DiffContent getRightDiffContent ( RevisionProcessingProgress p ) { \n - if ( ! hasRightEntry ( ) ) return DiffContentFactory . getInstance ( ) . create ( STRING0 ) ; \n + if ( ! hasRightEntry ( ) ) return DiffContentFactory . getInstance ( ) . createEmpty ( ) ; \n if ( ! isRightContentAvailable ( p ) ) return DiffContentFactory . getInstance ( ) . create ( STRING1 ) ; \n if ( isRightContentCurrent ) return getEditableRightDiffContent ( p ) ; \n return getReadOnlyRightDiffContent ( p ) ;", "msg_token": "do not treat non existent files as empty ones"} {"diff": " public final class CachedBluetoothDevice implements Comparable < CachedBluetoothDe \n SINGLE \n SINGLE \n if ( getPhonebookPermissionChoice ( ) == CachedBluetoothDevice . ACCESS_UNKNOWN ) { \n - setPhonebookPermissionChoice ( CachedBluetoothDevice . ACCESS_REJECTED ) ; \n + setPhonebookPermissionChoice ( CachedBluetoothDevice . ACCESS_ALLOWED ) ; \n } \n } \n }", "msg_token": "Make default selection for contact sharing to Checked"} {"diff": " public class NettyTransport extends AbstractLifecycleComponent < Transport > implem \n return ; \n } \n \n - serverOpenChannels = new OpenChannelsHandler ( logger ) ; \n + final OpenChannelsHandler openChannels = new OpenChannelsHandler ( logger ) ; \n + this . serverOpenChannels = openChannels ; \n if ( blockingServer ) { \n serverBootstrap = new ServerBootstrap ( new OioServerSocketChannelFactory ( \n Executors . newCachedThreadPool ( daemonThreadFactory ( settings , STRING0 ) ) , \n public class NettyTransport extends AbstractLifecycleComponent < Transport > implem \n @ override \n public ChannelPipeline getPipeline ( ) throws Exception { \n ChannelPipeline pipeline = Channels . pipeline ( ) ; \n - pipeline . addLast ( STRING1 , serverOpenChannels ) ; \n + pipeline . addLast ( STRING1 , openChannels ) ; \n SizeHeaderFrameDecoder sizeHeader = new SizeHeaderFrameDecoder ( ) ; \n if ( maxCumulationBufferCapacity != null ) { \n if ( maxCumulationBufferCapacity . bytes ( ) > Integer . MAX_VALUE ) {", "msg_token": "Fix NPE when initializing an accepted socket in NettyTransport"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class TypeNameEP extends AbstractExtensionPointBean { \n - public static ExtensionPointName < TypeNameEP > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n + public static final ExtensionPointName < TypeNameEP > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n \n @ attribute ( STRING1 ) \n public String className ;", "msg_token": "add final to EP_NAME"} {"diff": " public abstract class AbstractDbConnection implements \n insert = dsl . insertInto ( table ) . set ( record ) ; \n } \n else { \n - insert = insert . set ( record ) ; \n + insert = insert . newRecord ( ) . set ( record ) ; \n } \n }", "msg_token": "Fixed a bug the code that insert subdocument on an abstract sql db"} {"diff": " public class RequestThreadManager { \n } \n \n mIntermediateBufferSize = bestPreviewDimen ; \n + mParams . setPreviewSize ( mIntermediateBufferSize . getWidth ( ) , \n + mIntermediateBufferSize . getHeight ( ) ) ; \n + \n if ( DEBUG ) { \n Log . d ( TAG , STRING0 + \n bestPreviewDimen . toString ( ) ) ;", "msg_token": "Fix preview stretching in LEGACY mode"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n public long getNewBlockIdForFile ( AlluxioURI path ) \n throws FileDoesNotExistException , InvalidPathException , AccessControlException { \n MasterContext . getMasterSource ( ) . incGetNewBlockOps ( NUMBER0 ) ; \n - Inode < ? > inode ; \n + InodeFile inode ; \n synchronized ( mInodeTree ) { \n mPermissionChecker . checkPermission ( FileSystemAction . WRITE , path ) ; \n inode = mInodeTree . getInodeFileByPath ( path ) ; \n } \n MasterContext . getMasterSource ( ) . incNewBlocksGot ( NUMBER0 ) ; \n - return ( ( InodeFile ) inode ) . getNewBlockId ( ) ; \n + return inode . getNewBlockId ( ) ; \n } \n \n COMMENT", "msg_token": "Remove unnecessary type cast"} {"diff": " public class WorkerStorage { \n LOG . info ( STRING0 ) ; \n if ( ! mLocalDataFolder . exists ( ) ) { \n LOG . info ( STRING1 + mLocalDataFolder + STRING2 ) ; \n - mLocalDataFolder . mkdir ( ) ; \n - mLocalUserFolder . mkdir ( ) ; \n + mLocalDataFolder . mkdirs ( ) ; \n + mLocalUserFolder . mkdirs ( ) ; \n \n CommonUtils . changeLocalFilePermission ( mLocalDataFolder . getPath ( ) , STRING3 ) ; \n CommonUtils . changeLocalFilePermission ( mLocalUserFolder . getPath ( ) , STRING3 ) ;", "msg_token": "create full path"} {"diff": " public class ReactImageManager extends SimpleViewManager < ReactImageView > { \n mCallerContext = null ; \n } \n \n - @ override \n - public ReactImageView createViewInstance ( ThemedReactContext context ) { \n + public AbstractDraweeControllerBuilder getDraweeControllerBuilder ( ) { \n if ( mDraweeControllerBuilder == null ) { \n mDraweeControllerBuilder = Fresco . newDraweeControllerBuilder ( ) ; \n } \n + return mDraweeControllerBuilder ; \n + } \n \n + public Object getCallerContext ( ) { \n + return mCallerContext ; \n + } \n + \n + @ override \n + public ReactImageView createViewInstance ( ThemedReactContext context ) { \n return new ReactImageView ( \n context , \n - mDraweeControllerBuilder , \n - mCallerContext ) ; \n + getDraweeControllerBuilder ( ) , \n + getCallerContext ( ) ) ; \n } \n \n SINGLE", "msg_token": "Provide getters for CallerContext and DraweeControllerBuilder in ReactViewManager"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n @ noconventionmapping \n public class DefaultTask extends AbstractTask { \n - public DefaultTask ( ) { \n - if ( this instanceof GroovyObject ) { \n - GroovyObject groovyObject = ( GroovyObject ) this ; \n - if ( groovyObject . getMetaClass ( ) == null ) { \n - groovyObject . setMetaClass ( InvokerHelper . getMetaClass ( getClass ( ) ) ) ; \n - } \n - } \n - } \n }", "msg_token": "Removed the meta class stuff from DefaultTask"} {"diff": " public class OStressTesterCommandLineParserTest { \n \n String tmpDir = System . getProperty ( STRING0 ) ; \n if ( tmpDir . endsWith ( File . separator ) ) { \n - tmpDir = tmpDir . substring ( NUMBER0 , File . separator . length ( ) ) ; \n + tmpDir = tmpDir . substring ( NUMBER0 , tmpDir . length ( ) - File . separator . length ( ) ) ; \n } \n \n stressTester = OStressTesterCommandLineParser", "msg_token": "Fix stress test case"} {"diff": " public class TypesMap \n map . put ( STRING0 , JdbcDouble . instance ) ; \n map . put ( STRING1 , JdbcFloat . instance ) ; \n map . put ( STRING2 , JdbcInt32 . instance ) ; \n + map . put ( STRING3 , JdbcInetAddress . instance ) ; \n map . put ( STRING4 , JdbcInteger . instance ) ; \n map . put ( STRING5 , JdbcLexicalUUID . instance ) ; \n map . put ( STRING6 , JdbcLong . instance ) ;", "msg_token": "add inet to TypesMap"} {"diff": " public class HttpConnection implements Connection { \n private static final String CONTENT_TYPE = STRING0 ; \n private static final String MULTIPART_FORM_DATA = STRING1 ; \n private static final String FORM_URL_ENCODED = STRING2 ; \n + private static final int HTTP_TEMP_REDIR = NUMBER0 ; SINGLE \n \n public static Connection connect ( String url ) { \n Connection con = new HttpConnection ( ) ; \n public class HttpConnection implements Connection { \n \n SINGLE \n if ( res . hasHeader ( LOCATION ) && req . followRedirects ( ) ) { \n - req . method ( Method . GET ) ; SINGLE \n - req . data ( ) . clear ( ) ; \n + if ( status != HTTP_TEMP_REDIR ) { \n + req . method ( Method . GET ) ; SINGLE \n + req . data ( ) . clear ( ) ; \n + } \n \n String location = res . header ( LOCATION ) ; \n if ( location != null && location . startsWith ( STRING3 ) && location . charAt ( NUMBER1 ) != STRING4 ) SINGLE", "msg_token": "redirect should keep original method data"} {"diff": " public class HashingTest extends TestCase { \n } \n } \n \n + @ androidincompatible SINGLE \n SINGLE \n public void testGoodFastHash32 ( ) { \n HashTestUtils . check2BitAvalanche ( Hashing . goodFastHash ( NUMBER0 ) , NUMBER1 , FLOAT0 ) ;", "msg_token": "Suppress testGoodFastHash32 under Android as it is flaky there"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class NestedForDepthCheckTest extends BaseCheckTestSupport {", "msg_token": "Replace code tags with code constructs in test code"} {"diff": " public class XmlReader { \n } \n } \n \n - } catch ( Exception e ) { \n - throw new IOException ( STRING0 + e . getClass ( ) . getName ( ) , e ) ; \n + } catch ( Throwable throwable ) { \n + throw new IOException ( STRING0 + throwable . getClass ( ) . getName ( ) , throwable ) ; \n } finally { \n if ( wakeLock . isHeld ( ) ) { \n try {", "msg_token": "catch all throwables when parsing xml"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n street . setId ( id ) ; \n \n String highway = way . getTag ( STRING0 ) ; \n - if ( STRING1 . equals ( highway ) && way . isTag ( STRING1 , STRING2 ) && ! way . isTag ( STRING3 , STRING4 ) ) { \n + if ( STRING2 . equals ( highway ) && ! way . isTag ( STRING3 , STRING4 ) ) { \n + street . setStreetClass ( StreetEdge . CLASS_CROSSING ) ; \n + } else if ( STRING1 . equals ( highway ) && way . isTag ( STRING1 , STRING2 ) && ! way . isTag ( STRING3 , STRING4 ) ) { \n street . setStreetClass ( StreetEdge . CLASS_CROSSING ) ; \n } else if ( STRING5 . equals ( highway ) || STRING6 . equals ( highway ) \n || STRING7 . equals ( highway ) || STRING8 . equals ( highway )", "msg_token": "handle highway crossing as a crossing"} {"diff": " public class SpongeGameRegistry implements GameRegistry { \n public void setBlockTypes ( ) { \n for ( Field f : BlockTypes . class . getDeclaredFields ( ) ) { \n try { \n - f . set ( null , getBlock ( f . getName ( ) . toLowerCase ( ) ) ) ; \n + f . set ( null , ( BlockType ) GameData . getBlockRegistry ( ) . getObject ( f . getName ( ) . toLowerCase ( ) ) ) ; \n } catch ( Exception e ) { \n SINGLE \n } \n public class SpongeGameRegistry implements GameRegistry { \n public void setItemTypes ( ) { \n for ( Field f : ItemTypes . class . getDeclaredFields ( ) ) { \n try { \n - f . set ( null , getItem ( f . getName ( ) . toLowerCase ( ) ) ) ; \n + f . set ( null , ( ItemType ) GameData . getItemRegistry ( ) . getObject ( f . getName ( ) . toLowerCase ( ) ) ) ; \n } catch ( Exception e ) { \n SINGLE \n }", "msg_token": "Fixed wrong type being set during setItemTypes and setBlockTypes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Driver implements CommandProcessor { \n \n cxt . launching ( tskRun ) ; \n SINGLE \n - if ( HiveConf . getBoolVar ( conf , HiveConf . ConfVars . EXECPARALLEL ) \n - && ( tsk . isMapRedTask ( ) || ( tsk instanceof MoveTask ) ) ) { \n + if ( HiveConf . getBoolVar ( conf , HiveConf . ConfVars . EXECPARALLEL ) && tsk . isMapRedTask ( ) ) { \n SINGLE \n if ( LOG . isInfoEnabled ( ) ) { \n LOG . info ( STRING0 + tsk + STRING1 ) ;", "msg_token": "Parallel move task optimization causes race condition Gunther Hagleitner reviewed by Thejas M Nair"} {"diff": " public class WebImageView extends ViewSwitcher { \n return wasUpdated ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getImageUrl ( ) { \n + return imageUrl ; \n + } \n }", "msg_token": "Added a function to return the URL of the image to load"} {"diff": " public class StringContainsInOrder extends TypeSafeMatcher < String > { \n } \n \n @ factory \n - public static Matcher < String > stringContainsInAnyOrder ( Iterable < String > substrings ) { \n + public static Matcher < String > stringContainsInOrder ( Iterable < String > substrings ) { \n return new StringContainsInOrder ( substrings ) ; \n } \n }", "msg_token": "corrected name of factory method to stringContainsInOrder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UriBeaconDiscoveryService extends Service implements MetadataResolv \n mDeviceAddressToUrl = new HashMap < > ( ) ; \n mMdnsUrlDiscoverer = new MdnsUrlDiscoverer ( this , UriBeaconDiscoveryService . this ) ; \n initializeScreenStateBroadcastReceiver ( ) ; \n - startSearchingForUriBeacons ( ) ; \n - mMdnsUrlDiscoverer . startScanning ( ) ; \n + tryToStartScanning ( ) ; \n + } \n + \n + private void tryToStartScanning ( ) { \n + PowerManager powerManager = ( PowerManager ) getSystemService ( Context . POWER_SERVICE ) ; \n + boolean isScreenOn = powerManager . isScreenOn ( ) ; \n + if ( isScreenOn ) { \n + startSearchingForUriBeacons ( ) ; \n + mMdnsUrlDiscoverer . startScanning ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "mdns on resume fix"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ParseVersusCacheBenchmarkTest \n { \n + @ ignore \n @ test \n public void testParseVersusCache ( ) throws Exception \n {", "msg_token": "Ignoring benchmark test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unneeded imports"} {"diff": " public class Presence extends Packet { \n \n buf . append ( this . getExtensionsXML ( ) ) ; \n \n + SINGLE \n + XMPPError error = getError ( ) ; \n + if ( error != null ) { \n + buf . append ( error . toXML ( ) ) ; \n + } \n + \n buf . append ( STRING0 ) ; \n \n return buf . toString ( ) ;", "msg_token": "Include error element in toXML"} {"diff": " public class RajawaliRenderer implements GLSurfaceView . Renderer , INode { \n sb . append ( STRING0 ) . append ( mGL10 . glGetString ( GL10 . GL_RENDERER ) ) . append ( STRING1 ) ; \n sb . append ( STRING2 ) . append ( mGL10 . glGetString ( GL10 . GL_VERSION ) ) . append ( STRING1 ) ; \n \n + int [ ] maxTextureImageUnits = new int [ NUMBER0 ] ; \n + mGL10 . glGetIntegerv ( GL10 . GL_MAX_TEXTURE_UNITS , maxTextureImageUnits , NUMBER1 ) ; \n + sb . append ( STRING3 ) . append ( maxTextureImageUnits [ NUMBER1 ] ) ; \n + GLES20 . glGetIntegerv ( GLES20 . GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS , maxTextureImageUnits , NUMBER1 ) ; \n + sb . append ( STRING4 ) . append ( maxTextureImageUnits [ NUMBER1 ] ) ; \n + \n String extensions = mGL10 . glGetString ( GL10 . GL_EXTENSIONS ) ; \n String [ ] ext = extensions . split ( STRING5 ) ; \n int extLength = ext . length ;", "msg_token": "Added maximum texture image unit information to logSystemInformation"} {"diff": " public class GitHistoryProvider implements VcsHistoryProvider { \n COMMENT \n @ nullable \n public HistoryAsTreeProvider getTreeHistoryProvider ( ) { \n - return new GitHistoryTreeProvider ( ) ; \n + return null ; \n } \n \n COMMENT", "msg_token": "removed non functional history tree provider"} {"diff": " public class OperationSetBasicTelephonyJabberImpl \n } \n COMMENT \n \n - if ( di != null ) \n - { \n - if ( logger . isInfoEnabled ( ) ) \n - logger . info ( fullCalleeURI + STRING0 ) ; \n - } \n - else if ( isGingle ) \n + if ( isGingle ) \n { \n if ( logger . isInfoEnabled ( ) ) \n { \n public class OperationSetBasicTelephonyJabberImpl \n } \n fullCalleeURI = gingleURI ; \n } \n + else if ( di != null ) \n + { \n + if ( logger . isInfoEnabled ( ) ) \n + logger . info ( fullCalleeURI + STRING0 ) ; \n + } \n else \n { \n if ( logger . isInfoEnabled ( ) )", "msg_token": "If an XMPP logged peer supports Google s Jingle ICE dialect choose it by default for a call"} {"diff": " public class DbCreationTest { \n public void testDbCreation ( ) throws IOException { \n if ( url . startsWith ( OEngineRemote . NAME ) ) { \n \n - System . out . println ( STRING0 + OSystemVariableResolver . resolveSystemVariables ( STRING1 ) ) ; \n - \n SINGLE \n File file = new File ( OSystemVariableResolver . resolveSystemVariables ( STRING2 ) ) ; \n if ( ! file . exists ( ) )", "msg_token": "Fixed issue in the execution of remote tests"} {"diff": " public final class RestClient implements Closeable { \n listener . onSuccess ( response ) ; \n } else { \n ResponseException responseException = new ResponseException ( response ) ; \n - if ( mayRetry ( statusCode ) ) { \n + if ( isRetryStatus ( statusCode ) ) { \n SINGLE \n onFailure ( host ) ; \n retryIfPossible ( responseException , hosts , request ) ; \n public final class RestClient implements Closeable { \n return statusCode < NUMBER0 || ( HttpHead . METHOD_NAME . equals ( method ) && statusCode == NUMBER1 ) ; \n } \n \n - private static boolean mayRetry ( int statusCode ) { \n + private static boolean isRetryStatus ( int statusCode ) { \n switch ( statusCode ) { \n case NUMBER2 : \n case NUMBER3 :", "msg_token": "rename mayRetry to isRetryStatus"} {"diff": " public class IOGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static Appendable leftShift ( Appendable self , Object value ) throws IOException { \n InvokerHelper . append ( self , value ) ; \n public class IOGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static Appendable withFormatter ( Appendable self , Closure closure ) { \n Formatter formatter = new Formatter ( self ) ; \n public class IOGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static Appendable withFormatter ( Appendable self , Locale locale , Closure closure ) { \n Formatter formatter = new Formatter ( self , locale ) ;", "msg_token": "Add leftShift and withFormatter DGM methods for java lang Appendable fix since version"} {"diff": " public class CopyToVRFrameBuffersNode extends AbstractNode { \n } \n switch ( renderingStage ) { \n case LEFT_EYE : \n - glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) ; \n vrProvider . updateState ( ) ; \n org . lwjgl . opengl . EXTFramebufferObject . glBindFramebufferEXT ( \n org . lwjgl . opengl . EXTFramebufferObject . GL_FRAMEBUFFER_EXT , vrRenderer . getTextureHandleForEyeFramebuffer ( NUMBER0 ) ) ; \n public class CopyToVRFrameBuffersNode extends AbstractNode { \n vrProvider . submitFrame ( ) ; \n GL11 . glFinish ( ) ; \n break ; \n - case MONO : \n - break ; \n } \n } \n }", "msg_token": "Removed redundant glClear unreachable case"} {"diff": " public class AgreementRule extends GermanRule { \n isRelevantPronomen = false ; \n else if ( tokens [ i ] . getToken ( ) . equalsIgnoreCase ( STRING0 ) ) SINGLE \n isRelevantPronomen = false ; \n - if ( analyzedToken . hasReadingOfType ( POSType . DETERMINER ) || isRelevantPronomen ) { \n + SINGLE \n + boolean ignore = tokens [ i - NUMBER0 ] . getToken ( ) . equals ( STRING1 ) && tokens [ i ] . getToken ( ) . equalsIgnoreCase ( STRING2 ) ; \n + if ( ( analyzedToken . hasReadingOfType ( POSType . DETERMINER ) || isRelevantPronomen ) && ! ignore ) { \n int tokenPos = i + NUMBER0 ; \n if ( tokenPos >= tokens . length ) \n break ;", "msg_token": "avoid false alarm"} {"diff": " public class DualWindowLayoutPanel extends SimplePanel \n WindowState topWindowDefaultState , \n int defaultSplitterPos ) \n { \n - super ( STRING0 , \n + super ( STRING1 , \n clientStateKeyName , \n - ClientState . PERSISTENT , \n + ClientState . PROJECT_PERSISTENT , \n clientState , \n true ) ; \n topWindowDefaultState_ = topWindowDefaultState ; \n public class PaneManager \n SelectedTabStateValue ( String name , \n WorkbenchTabPanel tabPanel ) \n { \n - super ( STRING2 , name , ClientState . PERSISTENT , \n + super ( STRING3 , name , ClientState . PROJECT_PERSISTENT , \n session_ . getSessionInfo ( ) . getClientState ( ) , true ) ; \n tabPanel_ = tabPanel ; \n finishInit ( session_ . getSessionInfo ( ) . getClientState ( ) ) ;", "msg_token": "make selected tab and splitter positions project persistent"} {"diff": " public class ImapStore extends Store { \n pathPrefix = cleanPath . substring ( NUMBER0 ) ; \n } \n } else { \n - pathPrefix = cleanPath ; \n - if ( pathPrefix . length ( ) > NUMBER1 ) { \n + if ( cleanPath . length ( ) > NUMBER1 ) { \n + pathPrefix = cleanPath ; \n autoDetectNamespace = false ; \n } \n } \n public class ImapStore extends Store { \n mUsername = settings . username ; \n mPassword = settings . password ; \n \n - mPathPrefix = settings . pathPrefix ; \n + SINGLE \n + mPathPrefix = ( settings . autoDetectNamespace ) ? null : settings . pathPrefix ; \n \n mModifiedUtf7Charset = new CharsetProvider ( ) . charsetForName ( STRING0 ) ; \n }", "msg_token": "Add support for new auto detect namespace setting to ImapStore"} {"diff": " public interface ObservableScrollViewCallbacks { \n COMMENT \n COMMENT \n COMMENT \n - public void onScrollChanged ( int scrollY , boolean firstScroll , boolean dragging ) ; \n + void onScrollChanged ( int scrollY , boolean firstScroll , boolean dragging ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - public void onDownMotionEvent ( ) ; \n + void onDownMotionEvent ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public void onUpOrCancelMotionEvent ( ScrollState scrollState ) ; \n + void onUpOrCancelMotionEvent ( ScrollState scrollState ) ; \n }", "msg_token": "Removed redundant modifiers"} {"diff": " public final class AutoBuffer { \n public AutoBuffer putA8 ( long [ ] ary ) { \n _arys ++ ; \n if ( ary == null ) return putInt ( - NUMBER0 ) ; \n - if ( ary . length == NUMBER1 ) System . out . print ( STRING0 ) ; \n \n SINGLE \n SINGLE \n public class Vec extends Iced { \n COMMENT \n Vec rollupStats ( ) { \n if ( _naCnt >= NUMBER2 ) return this ; \n - if ( _naCnt == - NUMBER3 ) throw new IllegalArgumentException ( STRING1 ) ; \n + Vec vthis = DKV . get ( _key ) . get ( ) ; \n + if ( vthis . _naCnt == - NUMBER3 ) throw new IllegalArgumentException ( STRING1 ) ; \n + if ( vthis . _naCnt >= NUMBER2 ) return vthis ; \n + \n final RollupStats rs = new RollupStats ( ) . doAll ( this ) ; \n setRollupStats ( rs ) ; \n SINGLE", "msg_token": "Remove narrow race in getting new rollup stats"} {"diff": " public class MultiProfileStateStore implements ProfileStateStore { \n if ( ps . lowerBound < minUpperBounds . get ( ps . stop ) ) { \n states . put ( ps . stop , ps ) ; \n \n - SINGLE \n - SINGLE \n if ( ps . upperBound < minUpperBounds . get ( ps . stop ) ) { \n minUpperBounds . put ( ps . stop , ps . upperBound ) ; \n \n SINGLE \n for ( Iterator < ProfileState > it = states . get ( ps . stop ) . iterator ( ) ; it . hasNext ( ) ; ) { \n - if ( it . next ( ) . lowerBound >= ps . upperBound ) { \n + SINGLE \n + if ( it . next ( ) . lowerBound > ps . upperBound ) { \n it . remove ( ) ; \n } \n } \n public class MultiProfileStateStore implements ProfileStateStore { \n \n @ override \n public Collection < ProfileState > getAll ( ) { \n - SINGLE \n return states . values ( ) ; \n }", "msg_token": "don t allow states to dominate themselves"} {"diff": " public class QueryProcessor implements QueryHandler \n { \n if ( columnsDidChange ) \n { \n - logger . info ( STRING0 , ksName , cfName ) ; \n + logger . debug ( STRING0 , ksName , cfName ) ; \n removeInvalidPreparedStatements ( ksName , cfName ) ; \n } \n } \n \n public void onDropKeyspace ( String ksName ) \n { \n - logger . info ( STRING1 , ksName ) ; \n + logger . debug ( STRING1 , ksName ) ; \n removeInvalidPreparedStatements ( ksName , null ) ; \n } \n \n public void onDropColumnFamily ( String ksName , String cfName ) \n { \n - logger . info ( STRING2 , ksName , cfName ) ; \n + logger . debug ( STRING2 , ksName , cfName ) ; \n removeInvalidPreparedStatements ( ksName , cfName ) ; \n } \n }", "msg_token": "Move prepared statement invalidation message to DEBUG"} {"diff": " public class MainActivity extends BaseActivity { \n case R . id . action_logout : \n FirebaseAuth . getInstance ( ) . signOut ( ) ; \n startActivity ( new Intent ( this , SignInActivity . class ) ) ; \n + finish ( ) ; \n return true ; \n default : \n return super . onOptionsItemSelected ( item ) ;", "msg_token": "Finish activity after sign in sign out"} {"diff": " public class TenantFilter implements Filter { \n \n if ( request instanceof HttpServletRequest ) { \n final HttpServletRequest httpServletRequest = ( HttpServletRequest ) request ; \n - SINGLE \n - final String path = httpServletRequest . getRequestURI ( ) ; \n + final String path = httpServletRequest . getPathInfo ( ) ; \n final String httpMethod = httpServletRequest . getMethod ( ) ; \n if ( SINGLE \n isTenantCreationRequest ( path , httpMethod ) ||", "msg_token": "Allow deployments as non root resources"} {"diff": " public interface MongoOperations { \n < T > QueryResult < T > query ( final MongoNamespace namespace , MongoFind find , Serializer < Document > baseSerializer , \n Serializer < T > serializer ) ; \n \n - SINGLE \n < T > GetMoreResult < T > getMore ( final MongoNamespace namespace , GetMore getMore , Serializer < T > serializer ) ; \n \n - SINGLE \n void killCursors ( MongoKillCursor killCursor ) ; \n \n < T > WriteResult insert ( MongoNamespace namespace , MongoInsert < T > insert , Serializer < T > serializer ,", "msg_token": "Removed outdated TODOs"} {"diff": " public class DriverConnection implements AutoCloseable \n private final int termWindowSize ; \n private final long statusMessageTimeout ; \n \n - private long lastSmSubscriberPosition ; \n + private long lastSmSubscriberPosition ; SINGLE \n private long lastSmTimestamp ; \n private int lastSmTermId ; \n private int currentWindowSize ;", "msg_token": "Java Add TODO on subscriber position"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class ItemBag { \n \n return items . get ( type ) ; \n } \n + \n + \n + public Collection < Item > getItems ( ) { \n + return items . values ( ) ; \n + } \n }", "msg_token": "Add getItems to ItemBag"} {"diff": " public class Application implements SystemListener { \n } \n \n private void initAudio ( ) { \n - if ( settings . getAudioRenderer ( ) != null ) { \n + if ( settings . getAudioRenderer ( ) != null && context . getType ( ) != Type . Headless ) { \n audioRenderer = JmeSystem . newAudioRenderer ( settings ) ; \n audioRenderer . initialize ( ) ; \n AudioContext . setAudioRenderer ( audioRenderer ) ;", "msg_token": "Headless context will no longer initialize audio renderer"} {"diff": " public class FileBasedIndexImpl extends FileBasedIndex { \n String message = STRING0 + indexId ; \n Application app = ApplicationManager . getApplication ( ) ; \n if ( app . isUnitTestMode ( ) && app . isReadAccessAllowed ( ) && ! app . isDispatchThread ( ) ) { \n + SINGLE \n + SINGLE \n LOG . error ( message , throwable ) ; \n } else { \n LOG . info ( message , throwable ) ;", "msg_token": "add an explanatory comment about test mode to FileBasedIndexImpl requestRebuild"} {"diff": " public class ProjectRootManagerImpl extends ProjectRootManagerEx implements Proj \n } \n \n private void addRootsToWatch ( ) { \n + if ( myProject . isDefault ( ) ) { \n + return ; \n + } \n Module [ ] modules = ModuleManager . getInstance ( myProject ) . getModules ( ) ; \n Set < String > rootPaths = new HashSet < String > ( ) ; \n for ( Module module : modules ) {", "msg_token": "don t update roots to watch for default project partial"} {"diff": " public class ExpectedTypesProvider { \n \n private ExpectedTypeInfo [ ] findClassesWithDeclaredMethod ( final PsiMethodCallExpression methodCallExpr , final boolean forCompletion ) { \n final PsiReferenceExpression reference = methodCallExpr . getMethodExpression ( ) ; \n + if ( reference . getQualifierExpression ( ) instanceof PsiClassObjectAccessExpression ) { \n + return ExpectedTypeInfo . EMPTY_ARRAY ; \n + } \n final PsiManager manager = methodCallExpr . getManager ( ) ; \n final JavaPsiFacade facade = JavaPsiFacade . getInstance ( manager . getProject ( ) ) ; \n final PsiMethod [ ] methods = myClassProvider . findDeclaredMethods ( reference . getManager ( ) , reference . getReferenceName ( ) ) ;", "msg_token": "skip processing of class object methods"} {"diff": " public final class ModelLoader extends ModelBakery \n \n public IModel loadModel ( ResourceLocation modelLocation ) throws Exception \n { \n + if ( modelLocation . equals ( MODEL_MISSING ) ) \n + { \n + return loader . getMissingModel ( ) ; \n + } \n String modelPath = modelLocation . getResourcePath ( ) ; \n if ( modelLocation . getResourcePath ( ) . startsWith ( STRING0 ) ) \n {", "msg_token": "Prevent missing model from loading multiple times"} {"diff": " public class Notification implements Parcelable \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs to refer to the correct class"} {"diff": " public class XMLChangeLogSerializer implements ChangeLogSerializer { \n for ( Change change : changeSet . getChanges ( ) ) { \n node . appendChild ( createNode ( change ) ) ; \n } \n - if ( changeSet . getRollBackChanges ( ) != null ) { \n + if ( changeSet . getRollBackChanges ( ) != null && changeSet . getRollBackChanges ( ) . length > NUMBER0 ) { \n Element rollback = currentChangeLogFileDOM . createElement ( STRING0 ) ; \n for ( Change change : changeSet . getRollBackChanges ( ) ) { \n rollback . appendChild ( createNode ( change ) ) ;", "msg_token": "don t generate empty rollback nodes"} {"diff": " public abstract class Language { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static List < Language > getExternalLanguages ( ) { \n return externalLanguages ;", "msg_token": "add javadoc comment"} {"diff": " public class MapControlsLayer extends OsmandMapLayer { \n lastZoom = System . currentTimeMillis ( ) ; \n } \n mapAppModeShadow . setVisibility ( View . VISIBLE ) ; \n + mapAppModeShadow . setContentDescription ( settings . getApplicationMode ( ) . toHumanString ( app ) ) ; \n SINGLE \n if ( ( System . currentTimeMillis ( ) - lastZoom > NUMBER0 ) || ! OsmandPlugin . isDevelopment ( ) ) { \n zoomText . setVisibility ( View . GONE ) ;", "msg_token": "Improved application mode switch map widget by proper filling its"} {"diff": " public class Utils { \n public static int maxIndex ( int [ ] from , Random rand ) { \n assert rand != null ; \n int result = NUMBER0 ; \n + boolean tie = false ; \n + for ( int i = NUMBER1 ; i < from . length ; ++ i ) { \n + if ( from [ i ] > from [ result ] ) { result = i ; tie = false ; } \n + else if ( from [ i ] == from [ result ] ) { tie = true ; } \n + } \n + if ( ! tie ) return result ; \n + \n + SINGLE \n + result = NUMBER0 ; \n int maxCount = NUMBER0 ; SINGLE \n for ( int i = NUMBER1 ; i < from . length ; ++ i ) { \n if ( from [ i ] > from [ result ] ) {", "msg_token": "maxIndex does not call random unless needed"} {"diff": " public final class VariableView extends VariableViewBase implements VariableCont \n \n @ notnull \n public static String getClassName ( @ notnull ObjectValue value ) { \n - return StringUtil . notNullize ( value . getClassName ( ) , STRING0 ) ; \n + String className = value . getClassName ( ) ; \n + return StringUtil . isEmpty ( className ) ? STRING0 : className ; \n } \n \n public static void setObjectPresentation ( @ notnull ObjectValue value , @ notnull Icon icon , @ notnull XValueNode node ) {", "msg_token": "don t return empty string as class name"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapBackedSet < E > extends AbstractSet < E > implements Serializable { \n this . map = map ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public MapBackedSet ( Map < E , Boolean > map , Collection < E > c ) { \n - this . map = map ; \n - addAll ( c ) ; \n - } \n - \n @ override \n public int size ( ) { \n return map . size ( ) ;", "msg_token": "Removed unused constructor in MapBackedSet"} {"diff": " class XMLChangeLogHandler extends DefaultHandler { \n Enumeration < URL > resources = fileOpener . getResources ( pathName ) ; \n while ( resources . hasMoreElements ( ) ) { \n URL dirUrl = resources . nextElement ( ) ; \n + if ( dirUrl . getAuthority ( ) != null ) { \n + continue ; \n + } \n File dir = new File ( new URI ( dirUrl . toExternalForm ( ) ) ) ; \n if ( ! dir . exists ( ) ) { \n throw new SAXException ( STRING0 + pathName + STRING1 + dir . toString ( ) ) ;", "msg_token": "ignore urls with an authority component"} {"diff": " public class BaseViewHolder extends RecyclerView . ViewHolder { \n return this ; \n } \n \n + public BaseViewHolder setImageUrl ( int viewId , String imageUrl , int defResourceId ) { \n + ImageView view = getView ( viewId ) ; \n + Glide . with ( context ) . load ( imageUrl ) . crossFade ( ) . placeholder ( defResourceId ) . into ( view ) ; \n + return this ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "add setImageUrl int viewId String imageUrl int defResourceId"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class BuildTargetIndexImpl implements BuildTargetIndex { \n \n @ override \n public boolean isDummy ( @ notnull BuildTarget < ? > target ) { \n - return ( target instanceof ModuleBuildTarget ) SINGLE \n + return ( target instanceof ModuleBuildTarget || target instanceof ResourcesTarget ) SINGLE \n && myBuildRootIndex . getTargetRoots ( target , null ) . isEmpty ( ) ; \n }", "msg_token": "don t create resource targets for modules without source and resource roots"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class WorldRendererImpl implements WorldRenderer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed another reference to Oculus Rift in comments"} {"diff": " public final class HttpServerExchange extends AbstractAttachable { \n private static final int FLAG_RESPONSE_SENT = NUMBER0 < < NUMBER1 ; \n private static final int FLAG_RESPONSE_TERMINATED = NUMBER0 < < NUMBER2 ; \n private static final int FLAG_REQUEST_TERMINATED = NUMBER0 < < NUMBER3 ; \n - private static final int FLAG_CLEANUP = NUMBER0 < < NUMBER4 ; \n private static final int FLAG_PERSISTENT = NUMBER0 < < NUMBER5 ; \n \n public HttpServerExchange ( final HttpServerConnection connection , final StreamSourceChannel requestChannel , final StreamSinkChannel responseChannel ) { \n public final class HttpServerExchange extends AbstractAttachable { \n COMMENT \n COMMENT \n public boolean isComplete ( ) { \n - return ( state & FLAG_CLEANUP ) != NUMBER6 ; \n + return allAreSet ( state , FLAG_REQUEST_TERMINATED | FLAG_RESPONSE_TERMINATED ) ; \n } \n \n COMMENT", "msg_token": "Fix isComplete method"} {"diff": " public class SipStackProperties \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + private static final String NSPNAME_LOG_MESSAGE_CONTENT \n + = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String NSPVALUE_LOG_MESSAGE_CONTENT = STRING1 ; \n + \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private static final String NSPNAME_DEBUG_LOG_OVERWRITE \n public class SipStackProperties \n SINGLE \n this . setProperty ( NSPNAME_DEBUG_LOG , NSPVALUE_DEBUG_LOG ) ; \n \n - this . setProperty ( NSPNAME_SERVER_LOG , NSPVALUE_SERVER_LOG ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n this . setProperty ( NSPNAME_DEBUG_LOG_OVERWRITE , \n NSPVALUE_DEBUG_LOG_OVERWRITE ) ;", "msg_token": "disable JAIN SIP server log and content logging by default"} {"diff": " public final class MotionEvent extends InputEvent implements Parcelable { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo Return the pointer identifier associated with a particular in"} {"diff": " public class SimpleDiffViewer extends TwosideTextDiffViewer { \n } \n \n boolean isEqualContents = ( lineFragments == null || lineFragments . isEmpty ( ) ) && \n - StringUtil . equals ( document1 . getCharsSequence ( ) , document2 . getCharsSequence ( ) ) ; \n + StringUtil . equals ( texts [ NUMBER0 ] , texts [ NUMBER1 ] ) ; \n \n return apply ( new CompareData ( lineFragments , isEqualContents ) ) ; \n }", "msg_token": "do not access Document getCharsSequence without readlock"} {"diff": " public class GeoBroker extends Plugin { \n int maximumAge = args . getInt ( NUMBER0 ) ; \n Location last = this . locationManager . getLastKnownLocation ( ( enableHighAccuracy ? LocationManager . GPS_PROVIDER : LocationManager . NETWORK_PROVIDER ) ) ; \n SINGLE \n - if ( ( System . currentTimeMillis ( ) - last . getTime ( ) ) <= maximumAge ) { \n + if ( last != null && ( System . currentTimeMillis ( ) - last . getTime ( ) ) <= maximumAge ) { \n result = new PluginResult ( PluginResult . Status . OK , this . returnLocationJSON ( last ) ) ; \n } else { \n this . getCurrentLocation ( callbackId , enableHighAccuracy ) ;", "msg_token": "Fix a NPE in GeoBroker when there is no previous location"} {"diff": " public class ClusterRule extends ExternalResource \n @ override \n protected void before ( ) throws Throwable \n { \n - this . storeDirectory = TargetDirectory . forTest ( testClass ) . directoryForDescription ( description ) ; \n + this . storeDirectory = TargetDirectory . forTest ( testClass ) . cleanDirectory ( description . getMethodName ( ) ) ; \n } \n \n @ override", "msg_token": "ClusterRule uses method names as names for test directories"} {"diff": " class InputHiddenField \n int hidden = NUMBER0 ; \n } \n } \n + \n + interface NothingHidden \n + { \n + public static int notHidden = NUMBER0 ; \n + \n + SINGLE \n + public void noShadow ( int notHidden ) ; \n + }", "msg_token": "added coverage to test interfaces"} {"diff": " public class RosieUseCase { \n if ( onSuccessCallback == null ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n - \n + \n Method [ ] methodsArray = onSuccessCallback . getClass ( ) . getMethods ( ) ; \n if ( methodsArray . length != NUMBER0 ) { \n Method methodToInvoke = \n public class RosieUseCase { \n invokeMethodInTheCallbackScheduler ( methodToInvoke , values ) ; \n } else { \n throw new IllegalStateException ( \n - STRING1 ) ; \n + STRING2 \n + + STRING3 ) ; \n } \n }", "msg_token": "Fix checkstyle issue"} {"diff": " public class HashedWheelTimer implements Timer { \n List < HashedWheelTimeout > expiredTimeouts , \n ReusableIterator < HashedWheelTimeout > i ) { \n \n - long currentTime = System . currentTimeMillis ( ) ; \n + long currentDeadline = System . currentTimeMillis ( ) + tickDuration ; \n i . rewind ( ) ; \n while ( i . hasNext ( ) ) { \n HashedWheelTimeout timeout = i . next ( ) ; \n if ( timeout . remainingRounds <= NUMBER0 ) { \n - if ( timeout . deadline <= currentTime ) { \n + if ( timeout . deadline < currentDeadline ) { \n i . remove ( ) ; \n expiredTimeouts . add ( timeout ) ; \n } else {", "msg_token": "Fixed a case where HashedWheelTimer notifies a timeout one round later"} {"diff": " public abstract class SvnTestCase extends AbstractJunitVcsTestCase { \n \n @ override \n protected void projectCreated ( ) { \n - if ( isUseNativeAcceleration ( ) ) { \n - SvnConfiguration . getInstance ( myProject ) . setUseAcceleration ( SvnConfiguration . UseAcceleration . commandLine ) ; \n + SvnConfiguration . getInstance ( myProject ) . setUseAcceleration ( \n + isUseNativeAcceleration ( ) ? SvnConfiguration . UseAcceleration . commandLine : SvnConfiguration . UseAcceleration . nothing ) ; \n SvnApplicationSettings . getInstance ( ) . setCommandLinePath ( myClientBinaryPath + File . separator + STRING0 ) ; \n - } \n } \n \n @ after", "msg_token": "Fixed svn settings initialization in tests"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n @ configuration \n @ conditionalonproperty ( name = STRING0 , matchIfMissing = true ) \n + @ conditionalonbean ( type = STRING1 ) \n + @ autoconfigureafter ( name = STRING1 ) \n @ conditionalonwebapplication \n @ enableconfigurationproperties ( ServletMappingConfiguration . class ) \n public class ServletMappingAutoConfiguration {", "msg_token": "adding condition on servlet"} {"diff": " public class RoutingHelper { \n turnImminent = - NUMBER0 ; \n } \n \n - SINGLE \n + SINGLE \n if ( lastFixedLocation != null && lastFixedLocation . hasSpeed ( ) ) { \n - if ( ( dist < ( lastFixedLocation . getSpeed ( ) * FLOAT0 ) ) && ( dist < NUMBER1 ) ) { \n + if ( ( dist < ( lastFixedLocation . getSpeed ( ) * FLOAT1 ) ) && ( dist < NUMBER1 ) ) { \n turnImminent = NUMBER0 ; \n } \n }", "msg_token": "add another second to turnImminent status to try compensate device delay"} {"diff": " public class ImpsProvider extends ContentProvider { \n @ override \n public void onCreate ( SQLiteDatabase db ) { \n \n - SINGLE \n \n if ( DBG ) log ( STRING0 ) ; \n \n public class ImpsProvider extends ContentProvider { \n String groupBy = null ; \n String limit = null ; \n \n - SINGLE \n \n try \n {", "msg_token": "cleaned up debug statements"} {"diff": " public class MessageParser extends AbstractParser implements \n if ( displayed != null ) { \n if ( packet . fromAccount ( account ) ) { \n Conversation conversation = mXmppConnectionService . find ( account , counterpart . toBareJid ( ) ) ; \n - mXmppConnectionService . markRead ( conversation ) ; \n + if ( conversation != null ) { \n + mXmppConnectionService . markRead ( conversation ) ; \n + } \n } else { \n updateLastseen ( packet , account , true ) ; \n final Message displayedMessage = mXmppConnectionService . markMessage ( account , from . toBareJid ( ) , displayed . getAttribute ( STRING0 ) , Message . STATUS_SEND_DISPLAYED ) ;", "msg_token": "fixed npe in new message parser"} {"diff": " public class JSPSourceProcessor extends BaseSourceProcessor { \n new String [ ] { \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , \n STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , \n - STRING11 , STRING12 \n + STRING11 , STRING12 , STRING13 \n } , \n new String [ ] { \n STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , \n STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , \n - STRING25 , STRING26 \n + STRING25 , STRING26 , STRING27 \n } ) ; \n \n newContent = fixCompatClassImports ( fileName , newContent ) ;", "msg_token": "Source formatter remove empty lines"} {"diff": " public class IpRangeIT extends ESIntegTestCase { \n } \n } \n \n - public static void main ( String [ ] args ) { \n - AggregatorBuilder < ? > aggregation = \n - AggregationBuilders \n - . ipRange ( STRING0 ) \n - . field ( STRING1 ) \n - . addUnboundedTo ( STRING2 ) SINGLE \n - . addRange ( STRING2 , STRING3 ) SINGLE \n - . addUnboundedFrom ( STRING3 ) ; SINGLE \n - } \n }", "msg_token": "Remove dead code"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Don t test code snippet for now"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class GradleParticipantBuild { \n return build . toProjectIdentity ( projectPath ) ; \n } \n \n - public BuildIdentity toBuildIdentity ( ) { \n - return build . toBuildIdentity ( ) ; \n - } \n - \n public ProjectConnection connect ( ) { \n return connector ( ) . forProjectDirectory ( projectDirectory ) . connect ( ) ; \n }", "msg_token": "Removed unused method"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class JsonInputTest \n {", "msg_token": "Removing unused imports"} {"diff": " public class CircleImageView extends ImageView { \n setup ( ) ; \n } \n \n + public void setBorderColor ( int borderColor ) { \n + if ( borderColor == mBorderColor . getDefaultColor ( ) ) { \n + return ; \n + } \n + \n + mBorderColor = ColorStateList . valueOf ( borderColor ) ; \n + mBorderPaint . setColor ( mBorderColor . getDefaultColor ( ) ) ; \n + invalidate ( ) ; \n + } \n + \n + public void setBorderWidth ( int borderWidth ) { \n + if ( borderWidth == mBorderWidth ) { \n + return ; \n + } \n + \n + mBorderWidth = borderWidth ; \n + setup ( ) ; \n + } \n + \n @ override \n public void setImageBitmap ( Bitmap bm ) { \n super . setImageBitmap ( bm ) ;", "msg_token": "Add setters for border color and border width"} {"diff": " public class DeviceFragment extends Fragment { \n content . setText ( String . valueOf ( mAimsicdService . getSID ( ) ) ) ; \n content = ( TextView ) mView . findViewById ( R . id . network_baseid ) ; \n content . setText ( String . valueOf ( mAimsicdService . getCellId ( ) ) ) ; \n - mAimsicdService . updateCdmaLocation ( ) ; \n double [ ] location = mAimsicdService . getLastLocation ( ) ; \n content = ( TextView ) mView . findViewById ( R . id . network_cmda_lat ) ; \n content . setText ( String . valueOf ( location [ NUMBER0 ] ) ) ;", "msg_token": "Fix CDMA NPE"} {"diff": " public class PublishClusterStateAction extends AbstractComponent { \n } \n transportService . sendRequest ( node , PublishClusterStateRequestHandler . ACTION , new PublishClusterStateRequest ( clusterState ) , new VoidTransportResponseHandler ( false ) { \n @ override public void handleException ( RemoteTransportException exp ) { \n - logger . warn ( STRING0 , exp , node ) ; \n + logger . debug ( STRING0 , exp , node ) ; \n } \n } ) ; \n }", "msg_token": "change logging level nodes FD will detect it as well"} {"diff": " public class BubbleDraggable extends BubbleView implements Draggable { \n } \n } \n \n + animate ( ) . alpha ( Constant . BUBBLE_MODE_ALPHA ) . setDuration ( Constant . BUBBLE_ANIM_TIME ) ; \n + mBadgeView . animate ( ) . alpha ( Constant . BUBBLE_MODE_ALPHA ) . setDuration ( Constant . BUBBLE_ANIM_TIME ) ; \n + \n setTargetPos ( targetX , targetY , flickAnimPeriod , animType , new DraggableHelper . AnimationEventListener ( ) { \n @ override \n public void onAnimationComplete ( ) { \n public class BubbleDraggable extends BubbleView implements Draggable { \n mTouchInitialX = e . posX ; \n mTouchInitialY = e . posY ; \n \n + animate ( ) . alpha ( FLOAT0 ) . setDuration ( Constant . BUBBLE_ANIM_TIME ) ; \n + mBadgeView . animate ( ) . alpha ( FLOAT0 ) . setDuration ( Constant . BUBBLE_ANIM_TIME ) ; \n + \n MainController mainController = MainController . get ( ) ; \n mainController . scheduleUpdate ( ) ;", "msg_token": "Make bubble solid during touch down"} {"diff": " public class WindowWrapperBuilder { \n \n @ nullable \n @ override \n + protected JComponent createSouthPanel ( ) { \n + return null ; \n + } \n + \n + @ nullable \n + @ override \n protected String getDimensionServiceKey ( ) { \n return myDimensionServiceKey ; \n }", "msg_token": "remove additional bottom border in modal windows"} {"diff": " public class CoreJavaFileManager implements JavaFileManager { \n final VirtualFile file = dir . getVirtualFile ( ) ; \n for ( VirtualFile root : myClasspath ) { \n if ( VfsUtilCore . isAncestor ( root , file , false ) ) { \n - final String relativePath = FileUtil . getRelativePath ( root . getPath ( ) , file . getPath ( ) , STRING0 ) ; \n - return new PsiPackageImpl ( myPsiManager , relativePath ) ; \n + String relativePath = FileUtil . getRelativePath ( root . getPath ( ) , file . getPath ( ) , STRING1 ) ; \n + if ( relativePath == null ) continue ; \n + return new PsiPackageImpl ( myPsiManager , relativePath . replace ( STRING1 , STRING0 ) ) ; \n } \n } \n return null ;", "msg_token": "correctly calculate relative path for packages"} {"diff": " public class GzipFilter implements Filter { \n if ( urlExtensions != null ) { \n extensions = StringUtil . splitc ( urlExtensions , STRING0 ) ; \n } else { \n - extensions = new String [ ] { STRING1 , STRING1 , STRING2 , STRING3 } ; \n + extensions = new String [ ] { STRING1 , STRING4 , STRING2 , STRING3 } ; \n } \n \n }", "msg_token": "fixed gzip default extensions"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n public interface SearchTopHitProvider { \n ExtensionPointName < SearchTopHitProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n \n - void consumeTopHits ( String pattern , Consumer < Object > collector ) ; \n + void consumeTopHits ( String pattern , Consumer < Object > collector , Project project ) ; \n }", "msg_token": "change API to pass project"} {"diff": " public class ColumnFamilyStore implements ColumnFamilyStoreMBean \n \n public ColumnFamily getTopLevelColumns ( QueryFilter filter , int gcBefore , boolean forCache ) \n { \n - logger . debug ( STRING0 ) ; \n + logger . debug ( STRING1 , columnFamily ) ; \n CollationController controller = new CollationController ( this , forCache , filter , gcBefore ) ; \n ColumnFamily columns = controller . getTopLevelColumns ( ) ; \n metric . updateSSTableIterated ( controller . getSstablesIterated ( ) ) ;", "msg_token": "clarify what CFS is being queried in trace messages for the benefit of index lookups"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class ResettableByteArrayOutputStream extends ByteArrayOutputStream { \n public class ResettableByteArrayOutputStream extends ByteArrayOutputStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a copy paste error in a comment"} {"diff": " public class BlockServiceHandlerIntegrationTest { \n \n @ before \n public final void before ( ) throws Exception { \n + TachyonConf tachyonConf = new TachyonConf ( ) ; \n + tachyonConf . set ( Constants . USER_FILE_BUFFER_BYTES , String . valueOf ( NUMBER0 ) ) ; \n \n mLocalTachyonCluster = \n new LocalTachyonCluster ( WORKER_CAPACITY_BYTES , USER_QUOTA_UNIT_BYTES , Constants . GB ) ; \n - mLocalTachyonCluster . start ( ) ; \n + mLocalTachyonCluster . start ( tachyonConf ) ; \n mWorkerServiceHandler = mLocalTachyonCluster . getWorker ( ) . getWorkerServiceHandler ( ) ; \n mTfs = mLocalTachyonCluster . getClient ( ) ; \n mMasterTachyonConf = mLocalTachyonCluster . getMasterTachyonConf ( ) ;", "msg_token": "Set file buffer bytes for test"} {"diff": " public abstract class Mode { \n JMenuItem item = new JMenuItem ( library . getName ( ) ) ; \n item . addActionListener ( listener ) ; \n \n - SINGLE \n + SINGLE \n item . setActionCommand ( library . getName ( ) ) ; \n \n importMenu . add ( item ) ;", "msg_token": "added support for specifying packages to import in library properties"} {"diff": " public class NinePatch { \n vertices [ idx ] = color ; \n } \n \n - public void draw ( final SpriteBatch batch , final float x , final float y , final float width , final float height ) { \n + public void draw ( SpriteBatch batch , float x , float y , float width , float height ) { \n final float centerColumnX = x + leftWidth ; \n final float rightColumnX = x + width - rightWidth ; \n final float middleRowY = y + bottomHeight ;", "msg_token": "Remove really gratuitous final usage on draw method"} {"diff": " public class PropertyNamer { \n } \n \n if ( name . length ( ) == NUMBER0 || ( name . length ( ) > NUMBER0 && ! Character . isUpperCase ( name . charAt ( NUMBER0 ) ) ) ) { \n - name = name . substring ( NUMBER1 , NUMBER0 ) . toLowerCase ( Locale . US ) + name . substring ( NUMBER0 ) ; \n + name = name . substring ( NUMBER1 , NUMBER0 ) . toLowerCase ( Locale . ENGLISH ) + name . substring ( NUMBER0 ) ; \n } \n \n return name ;", "msg_token": "Locale use consistence"} {"diff": " public final class ProxyHandler implements HttpHandler { \n final XnioExecutor . Key key = exchange . getIoThread ( ) . executeAfter ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - UndertowLogger . REQUEST_LOGGER . proxyRequestTimedOut ( exchange . getRequestURI ( ) ) ; \n - IoUtils . safeClose ( exchange . getConnection ( ) ) ; \n + if ( exchange . getConnection ( ) . isOpen ( ) ) { \n + UndertowLogger . REQUEST_LOGGER . proxyRequestTimedOut ( exchange . getRequestURI ( ) ) ; \n + IoUtils . safeClose ( exchange . getConnection ( ) ) ; \n + } \n ClientConnection clientConnection = exchange . getAttachment ( CONNECTION ) . getConnection ( ) ; \n IoUtils . safeClose ( clientConnection ) ; \n }", "msg_token": "Don t log a message if the connection is already closed"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add Apache Licence to EsStateFactoryTest"} {"diff": " public class ZooKeeperMasterModel implements MasterModel { \n private boolean isRolloutTimedOut ( final ZooKeeperClient client , \n final DeploymentGroup deploymentGroup ) { \n try { \n - final String statusPath = Paths . statusDeploymentGroup ( deploymentGroup . getName ( ) ) ; \n + final String statusPath = Paths . statusDeploymentGroupTasks ( deploymentGroup . getName ( ) ) ; \n final long secondsSinceDeploy = MILLISECONDS . toSeconds ( \n System . currentTimeMillis ( ) - client . getNode ( statusPath ) . getStat ( ) . getMtime ( ) ) ; \n return secondsSinceDeploy > deploymentGroup . getRolloutOptions ( ) . getTimeout ( ) ;", "msg_token": "Fix bug in the logic for determining if a rolling update is timed out"} {"diff": " public class CommandLineParameters implements Cloneable { \n description = STRING0 ) \n boolean verbose ; \n \n - @ parameter ( names = { STRING1 } , \n - description = STRING2 ) \n - boolean report = false ; \n + @ parameter ( names = { STRING3 } , \n + description = STRING4 ) \n + boolean htmlAnnotations = false ; \n \n \n @ parameter ( names = { STRING5 } , validateWith = ReadWriteDirectory . class , \n public class OTPMain { \n configurator . makeGraphService ( graphBuilder . getGraph ( ) ) ; \n } \n \n - if ( params . report ) { \n + if ( params . htmlAnnotations ) { \n AnnotationsToHTML annotationsToHTML = new AnnotationsToHTML ( graphBuilder . getGraph ( ) , new File ( params . build . get ( NUMBER0 ) , STRING6 ) ) ; \n annotationsToHTML . run ( ) ; \n }", "msg_token": "Changed CLI paramater from report to htmlAnnotations"} {"diff": " public class Main extends WeakBase implements XJobExecutor , \n msg += Tools . getFullStackTrace ( e ) ; \n final String metaInfo = STRING0 + System . getProperty ( STRING1 ) + STRING2 \n + System . getProperty ( STRING3 ) + STRING4 \n - + System . getProperty ( STRING5 ) + STRING6 \n + + System . getProperty ( STRING7 ) + STRING6 \n + System . getProperty ( STRING8 ) ; \n msg += metaInfo ; \n final DialogThread dt = new DialogThread ( msg ) ;", "msg_token": "use a better property to get the proper Java version number"} {"diff": " public class ComponentWithBrowseButton < Comp extends JComponent > extends JPanel i \n @ nullable \n protected VirtualFile getInitialFile ( ) { \n String directoryName = getComponentText ( ) ; \n + if ( directoryName . length ( ) == NUMBER0 ) return null ; \n return LocalFileSystem . getInstance ( ) . findFileByPath ( directoryName . replace ( File . separatorChar , STRING0 ) ) ; \n }", "msg_token": "integrate FileChooser usability fix"} {"diff": " public class ShadowLooper { \n private static ThreadLocal < Looper > looperForThread = makeThreadLocalLoopers ( ) ; \n private Scheduler scheduler = new Scheduler ( ) ; \n \n - private static ThreadLocal < Looper > makeThreadLocalLoopers ( ) { \n + private static synchronized ThreadLocal < Looper > makeThreadLocalLoopers ( ) { \n return new ThreadLocal < Looper > ( ) { \n @ override \n protected Looper initialValue ( ) { \n public class ShadowLooper { \n } \n \n @ implementation \n - public static Looper myLooper ( ) { \n + public static synchronized Looper myLooper ( ) { \n return looperForThread . get ( ) ; \n }", "msg_token": "Synchronize creation and use of thread local looper to avoid null pointer exceptions"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClientDiscoverySpiTest extends HazelcastTestSupport { \n Address privateAddress = new Address ( STRING0 , NUMBER0 ) ; \n Address publicAddress = new Address ( STRING0 , NUMBER1 ) ; \n discoveryNodes . add ( new SimpleDiscoveryNode ( privateAddress , publicAddress ) ) ; \n + privateAddress = new Address ( STRING0 , NUMBER2 ) ; \n publicAddress = new Address ( STRING0 , NUMBER3 ) ; \n discoveryNodes . add ( new SimpleDiscoveryNode ( privateAddress , publicAddress ) ) ; \n + privateAddress = new Address ( STRING0 , NUMBER4 ) ; \n publicAddress = new Address ( STRING0 , NUMBER5 ) ; \n discoveryNodes . add ( new SimpleDiscoveryNode ( privateAddress , publicAddress ) ) ; \n + privateAddress = new Address ( STRING0 , NUMBER6 ) ; \n publicAddress = new Address ( STRING0 , NUMBER7 ) ; \n discoveryNodes . add ( new SimpleDiscoveryNode ( privateAddress , publicAddress ) ) ;", "msg_token": "fixed discovery spi test"} {"diff": " public class WavefrontObject implements IModelCustom \n private static Pattern face_V_VT_Pattern = Pattern . compile ( STRING0 ) ; \n private static Pattern face_V_VN_Pattern = Pattern . compile ( STRING1 ) ; \n private static Pattern face_V_Pattern = Pattern . compile ( STRING2 ) ; \n - private static Pattern groupObjectPattern = Pattern . compile ( STRING3 ) ; \n + private static Pattern groupObjectPattern = Pattern . compile ( STRING4 ) ; \n \n private static Matcher vertexMatcher , vertexNormalMatcher , textureCoordinateMatcher ; \n private static Matcher face_V_VT_VN_Matcher , face_V_VT_Matcher , face_V_VN_Matcher , face_V_Matcher ;", "msg_token": "Modify WavefrontObject to allow"} {"diff": " public class PhotupApplication extends Application implements FriendsResultListe \n listener . onFriendsLoaded ( mFriends ) ; \n } \n } \n + \n + public Account getMainAccount ( ) { \n + for ( Account account : mAccounts ) { \n + if ( account . isMainAccount ( ) ) { \n + return account ; \n + } \n + } \n + return null ; \n + } \n \n public void getAccounts ( AccountsResultListener listener , boolean forceRefresh ) { \n if ( forceRefresh || mAccounts . isEmpty ( ) ) { \n public class SettingsActivity extends SherlockPreferenceActivity implements Albu \n super . onCreate ( savedInstanceState ) ; \n addPreferencesFromResource ( R . xml . main_prefs ) ; \n \n - SINGLE \n - Account . getAccountFromSession ( getApplicationContext ( ) ) . getAlbums ( this , false ) ; \n + Account mainAccount = PhotupApplication . getApplication ( this ) . getMainAccount ( ) ; \n + if ( null != mainAccount ) { \n + mainAccount . getAlbums ( this , false ) ; \n + } \n \n populateFiltersPref ( ) ; \n }", "msg_token": "Don t reload Account from Prefs"} {"diff": " public final class MessagingService implements MessagingServiceMBean \n COMMENT \n public void listen ( InetAddress localEp ) throws IOException , ConfigurationException \n { \n + callbacks . reset ( ) ; SINGLE \n for ( ServerSocket ss : getServerSocket ( localEp ) ) \n { \n SocketThread th = new SocketThread ( ss , STRING0 + localEp ) ; \n public final class MessagingService implements MessagingServiceMBean \n \n public void clearCallbacksUnsafe ( ) \n { \n - callbacks . clear ( ) ; \n + callbacks . reset ( ) ; \n } \n \n COMMENT \n public final class MessagingService implements MessagingServiceMBean \n { \n throw new IOError ( e ) ; \n } \n - \n } \n \n public void receive ( Message message , String id ) \n public class ExpiringMap < K , V > \n timer . cancel ( ) ; \n } \n \n - public void clear ( ) \n + public void reset ( ) \n { \n + shutdown = false ; \n cache . clear ( ) ; \n }", "msg_token": "reset callbacks map in MS listen to allow RemoveTest to restart it"} {"diff": " public class OServer { \n if ( user != null && user . password != null ) { \n \n final String passwordToMatch ; \n - if ( user . password . startsWith ( OSecurityManager . ALGORITHM_PREFIX ) ) \n + if ( user . password . startsWith ( OSecurityManager . ALGORITHM_PREFIX ) && ! iPassword . startsWith ( OSecurityManager . ALGORITHM_PREFIX ) ) \n SINGLE \n passwordToMatch = OSecurityManager . instance ( ) . digest2String ( iPassword , true ) ; \n else", "msg_token": "enabled authentication check for hashed password for replicator support"} {"diff": " public class FloatingActionButton extends VisibilityAwareImageButton { \n public void onDependentViewRemoved ( CoordinatorLayout parent , FloatingActionButton child , \n View dependency ) { \n if ( dependency instanceof Snackbar . SnackbarLayout ) { \n - updateFabTranslationForSnackbar ( parent , child , dependency ) ; \n + updateFabTranslationForSnackbar ( parent , child , true ) ; \n } \n }", "msg_token": "Fix build for FloatingActionButton"} {"diff": " public class AndroidSdkImpl extends AndroidSdk { \n } \n \n public int getPlatformToolsRevision ( ) { \n - SINGLE \n - return NUMBER0 ; \n + return myPlatformToolsRevision ; \n } \n \n private static class MyTargetWrapper implements IAndroidTarget {", "msg_token": "enable new building model"} {"diff": " public class RequestQueries extends RequestArguments { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 \n + + STRING4 \n + STRING5 \n + STRING6 \n + STRING7", "msg_token": "missing Javascript code in refresh"} {"diff": " public class IndexBufferObject implements IndexData { \n } \n } \n \n + @ override \n + public void updateIndices ( int targetOffset , short [ ] indices , int offset , int count ) { \n + isDirty = true ; \n + final int pos = buffer . position ( ) ; \n + buffer . position ( targetOffset ) ; \n + BufferUtils . copy ( indices , offset , buffer , count ) ; \n + buffer . position ( pos ) ; \n + \n + if ( isBound ) { \n + Gdx . gl20 . glBufferData ( GL20 . GL_ELEMENT_ARRAY_BUFFER , buffer . limit ( ) , buffer , usage ) ; \n + isDirty = false ; \n + } \n + } \n \n COMMENT \n COMMENT", "msg_token": "Add updateIndices in Gwt emulation"} {"diff": " public final class Files { \n } else if ( ! rooted ) { \n COMMENT \n if ( name [ q ] != name [ NUMBER0 ] || \n - ( name . length >= q + NUMBER1 && name [ NUMBER0 ] == STRING0 && name [ name . length - NUMBER2 ] != STRING1 ) ) { \n + ( q != NUMBER0 && name . length >= q + NUMBER1 && name [ NUMBER0 ] == STRING0 && name [ name . length - NUMBER2 ] != STRING1 ) ) { \n name [ q ++ ] = STRING1 ; \n } \n name [ q ++ ] = STRING0 ;", "msg_token": "Handle multipart paths that begin with"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixing the SDK build"} {"diff": " public class MethodDefinition { \n } \n SINGLE \n if ( index == instructions . size ( ) ) { \n - index -- ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( instructions . get ( instructions . size ( ) - NUMBER0 ) . getOffset ( ) == endAddress ) { \n + SINGLE \n + index -= NUMBER1 ; \n + } else { \n + SINGLE \n + index -- ; \n + } \n } else { \n index -= NUMBER1 ; \n }", "msg_token": "Fixed an issue when generating try items at the very end of a method"} {"diff": " public class ResourceManager { \n changesManager . indexMainMap ( f , dateCreated ) ; \n indexFileNames . put ( f . getName ( ) , dateFormat . format ( dateCreated ) ) ; SINGLE \n } \n - if ( ! mapReader . getRegionNames ( ) . isEmpty ( ) || mapReader . isBasemap ( ) ) { \n + if ( ! mapReader . getRegionNames ( ) . isEmpty ( ) || mapReader . containsPoiData ( ) ) { \n try { \n RandomAccessFile raf = new RandomAccessFile ( f , STRING0 ) ; SINGLE \n RegionAddressRepositoryBinary rarb = new RegionAddressRepositoryBinary ( this ,", "msg_token": "Fix base search"} {"diff": " public class DefaultIssueClient implements IssueClient { \n @ override \n public Issue assign ( String issueKey , @ nullable String assignee ) { \n Map < String , Object > params = EncodingUtils . toMap ( STRING0 , issueKey , STRING1 , assignee ) ; \n - String json = requestFactory . post ( STRING2 , params ) ; \n + String json = requestFactory . post ( ASSIGN_URL , params ) ; \n return jsonToIssue ( json ) ; \n }", "msg_token": "Fix quality flaw"} {"diff": " public class ZWaveMultiInstanceCommandClass extends ZWaveCommandClass { \n case NUMBER0 : \n SINGLE \n for ( ZWaveCommandClass commandClass : this . getNode ( ) . getCommandClasses ( ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n if ( commandClass . getCommandClass ( ) == CommandClass . NO_OPERATION ) { \n continue ; \n }", "msg_token": "Add todo comment"} {"diff": " public abstract class BaseShowsAdapter extends CursorAdapter { \n \n public void setFavoriteState ( ImageView view , boolean isFavorite ) { \n view . setImageResource ( isFavorite ? resIdStar : resIdStarZero ) ; \n + view . setContentDescription ( view . getContext ( ) \n + . getString ( isFavorite ? R . string . context_unfavorite : R . string . context_favorite ) ) ; \n } \n \n COMMENT", "msg_token": "Add content description to show card favorite button"} {"diff": " public class StatefulComponentDescription extends SessionBeanComponentDescriptio \n } \n \n private void addTransactionManagementInterceptor ( final ViewDescription view ) { \n - SINGLE \n - if ( TransactionManagementType . CONTAINER . equals ( this . getTransactionManagementType ( ) ) ) { \n - view . getConfigurators ( ) . add ( new ViewConfigurator ( ) { \n - @ override \n - public void configure ( DeploymentPhaseContext context , ComponentConfiguration componentConfiguration , ViewDescription description , ViewConfiguration configuration ) throws DeploymentUnitProcessingException { \n - \n - logger . warn ( STRING0 + \n - STRING1 ) ; \n - } \n - } ) ; \n - } else { SINGLE \n + SINGLE \n + if ( TransactionManagementType . BEAN . equals ( this . getTransactionManagementType ( ) ) ) { \n view . getConfigurators ( ) . add ( new ViewConfigurator ( ) { \n @ override \n public void configure ( DeploymentPhaseContext context , ComponentConfiguration componentConfiguration , ViewDescription description , ViewConfiguration configuration ) throws DeploymentUnitProcessingException {", "msg_token": "Remove the dubious warning about SessionSynchronization interceptor for stateful beans"} {"diff": " public class TransportNetworkCache { \n cacheLocation . delete ( ) ; \n } \n \n - return currentNetwork ; \n + return network ; \n } \n }", "msg_token": "don t return null network"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NioSocketChannelTest { \n \n ServerBootstrap sb = new ServerBootstrap ( ) ; \n sb . group ( group ) . channel ( NioServerSocketChannel . class ) ; \n + sb . childOption ( ChannelOption . SO_SNDBUF , NUMBER0 ) ; \n sb . childHandler ( new ChannelInboundHandlerAdapter ( ) { \n @ override \n public void channelActive ( ChannelHandlerContext ctx ) throws Exception {", "msg_token": "Make NioSocketChannelTest more bullet proof"} {"diff": " public class CrawlerSessionManagerValve extends ValveBase { \n \n SINGLE \n Enumeration < String > uaHeaders = request . getHeaders ( STRING0 ) ; \n - String uaHeader = uaHeaders . nextElement ( ) ; \n + String uaHeader = null ; \n + if ( uaHeaders . hasMoreElements ( ) ) { \n + uaHeader = uaHeaders . nextElement ( ) ; \n + } \n \n SINGLE \n - if ( ! uaHeaders . hasMoreElements ( ) ) { \n + if ( uaHeader != null && ! uaHeaders . hasMoreElements ( ) ) { \n \n if ( log . isDebugEnabled ( ) ) { \n log . debug ( request . hashCode ( ) + STRING1 + uaHeader ) ;", "msg_token": "Avoid NPE if no u a header"} {"diff": " public class CameraTargetSystem extends BaseComponentSystem { \n return new Vector3i ( hitPosition , FLOAT0 ) ; \n } \n \n - COMMENT \n - This is the distance between the camera and the target object . \n - It is used for out - of - focus effects : the target object remain \n - sharp while further away and potentially also nearer objects \n - are rendered out - of - focus ( blurred ) . \n + COMMENT \n + Returns the distance between the camera and the target object . \n + One usage of this is to generate out - of - focus effects : the \n + target object remains sharp while further away objects ( and \n + potentially also nearer ones ) are rendered out - of - focus ( blurred ) . \n + \n + @ return Returns the distance between the camera and the target object . \n COMMENT \n public float getFocalDistance ( ) { \n return focalDistance ;", "msg_token": "Changed comment in CameraTargetSystem to javadoc style"} {"diff": " public class IncrementalIndexAdapter implements IndexableAdapter \n if ( bitmapIndexes [ dimIdx ] == null ) { \n bitmapIndexes [ dimIdx ] = bitmapFactory . makeEmptyMutableBitmap ( ) ; \n } \n - try { \n - bitmapIndexes [ dimIdx ] . add ( rowNum ) ; \n - } \n - catch ( Exception e ) { \n - log . info ( e . toString ( ) ) ; \n - } \n + bitmapIndexes [ dimIdx ] . add ( rowNum ) ; \n } \n }", "msg_token": "Remove error suppression code from IncrementalIndexAdapter"} {"diff": " public class HamleDTCorrector { \n String depRel = correctDepRel ( hamledtWord , ancoraWord ) ; \n hamledtWord . set ( CoreAnnotations . CoNLLDepTypeAnnotation . class , depRel ) ; \n \n + SINGLE \n + int hParent = hamledtWord . get ( CoreAnnotations . CoNLLDepParentIndexAnnotation . class ) ; \n + int aParent = ancoraWord . get ( CoreAnnotations . CoNLLDepParentIndexAnnotation . class ) ; \n + if ( hParent == NUMBER0 && aParent != NUMBER0 ) \n + hamledtWord . set ( CoreAnnotations . CoNLLDepParentIndexAnnotation . class , aParent ) ; \n + \n return hamledtWord ; \n }", "msg_token": "Fix double rooted dependency parse weirdness"} {"diff": " public class PeopleInviteFragment extends Fragment implements \n \n if ( usernamesToCheck . size ( ) > NUMBER0 ) { \n \n - if ( ! NetworkUtils . checkConnection ( getActivity ( ) ) ) { \n - enableSendButton ( true ) ; \n - return ; \n - } \n - \n String dotComBlogId = getArguments ( ) . getString ( ARG_BLOGID ) ; \n PeopleUtils . validateUsernames ( usernamesToCheck , dotComBlogId , new PeopleUtils . ValidateUsernameCallback ( ) { \n @ override \n public class PeopleInviteFragment extends Fragment implements \n return ; \n } \n \n + if ( ! NetworkUtils . checkConnection ( getActivity ( ) ) ) { \n + enableSendButton ( true ) ; \n + return ; \n + } \n + \n enableSendButton ( false ) ; \n \n if ( mUsernameEditText . getText ( ) . toString ( ) . length ( ) > NUMBER0 ) {", "msg_token": "moved network connection check to only be made when the user hits SEND as suggested by hypest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n COMMENT \n COMMENT \n @ runwith ( JMock . class ) \n - @ ignore \n abstract public class AbstractModuleDependencyTest { \n \n protected abstract AbstractModuleDependency getDependency ( ) ;", "msg_token": "Removed Ignore from one of the tests"} {"diff": " public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo \n SINGLE \n void self_cancel2 ( ) { if ( ! isDone ( ) ) { cancel ( true ) ; self_cancel1 ( ) ; } } \n private void self_cancel1 ( ) { \n - if ( _left != null ) { _left . self_cancel2 ( ) ; } \n - if ( _rite != null ) { _rite . self_cancel2 ( ) ; } \n + T l = _left ; if ( l != null ) { l . self_cancel2 ( ) ; } \n + T r = _rite ; if ( r != null ) { r . self_cancel2 ( ) ; } \n } \n \n COMMENT", "msg_token": "Fix potential NPE race conditon in MRTask cancellation"} {"diff": " public class RemoteSiteTest { \n } \n \n @ test ( groups = STRING0 ) \n - public void testPlanetromeoCom ( ) throws IOException , BrokenBarrierException , InterruptedException { \n - c . prepareGet ( STRING1 ) . execute ( h ) ; \n - b . await ( ) ; \n - } \n - \n - @ test ( groups = STRING0 ) \n - public void testMiniPlanetromeoCom ( ) throws IOException , BrokenBarrierException , InterruptedException { \n - c . prepareGet ( STRING2 ) . execute ( h ) ; \n - b . await ( ) ; \n - } \n - \n - @ test ( groups = STRING0 ) \n public void testMicrosoftCom ( ) throws IOException , BrokenBarrierException , InterruptedException { \n SINGLE \n c . prepareGet ( STRING3 ) . execute ( h ) ;", "msg_token": "Remove those two tests as they seems to point to an adult site"} {"diff": " public interface GradleProject extends HierarchicalElement , BuildableElement { \n COMMENT \n COMMENT \n COMMENT \n - @ incubating \n File getProjectDirectory ( ) ; \n \n }", "msg_token": "Remove Incubating from getProjectDirectory since this is not an experimental API"} {"diff": " public class Jaxrs2Test { \n \n @ beforemethod ( alwaysRun = true ) \n public void setUpGlobal ( ) throws Exception { \n - port = NUMBER0 ; \n + port = findFreePort ( ) ; \n urlTarget = getUrlTarget ( port ) ; \n atmoServlet = new AtmosphereServlet ( ) ; \n atmoServlet . framework ( ) . addInitParameter ( STRING0 , this . getClass ( ) . getPackage ( ) . getName ( ) ) ;", "msg_token": "Do not hardcode port"} {"diff": " public class SecureNioChannel extends NioChannel { \n ApplicationBufferHandler bufHandler , NioSelectorPool pool ) throws IOException { \n super ( channel , bufHandler ) ; \n this . sslEngine = engine ; \n - int appBufSize = sslEngine . getSession ( ) . getApplicationBufferSize ( ) ; \n int netBufSize = sslEngine . getSession ( ) . getPacketBufferSize ( ) ; \n SINGLE \n if ( netInBuffer == null ) netInBuffer = ByteBuffer . allocateDirect ( netBufSize ) ;", "msg_token": "Remove unused code"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GameScreen implements Screen { \n return ; \n } \n } \n - \n - if ( Gdx . app . getType ( ) == Application . ApplicationType . Android ) { \n + \n + ApplicationType appType = Gdx . app . getType ( ) ; \n + \n + SINGLE \n + if ( appType == ApplicationType . Android || appType == ApplicationType . iOS ) { \n world . update ( deltaTime , Gdx . input . getAccelerometerX ( ) ) ; \n } else { \n float accel = NUMBER0 ;", "msg_token": "fixed superjumper to use accelerometer in iOS version too"} {"diff": " public class TimerImpl implements Timer { \n } else { \n this . nextExpiration = builder . nextDate ; \n } \n - this . previousRun = null ; \n + this . previousRun = builder . previousRun ; \n this . primaryKey = builder . primaryKey ; \n \n this . timerState = builder . timerState ;", "msg_token": "Set previousRun correct from persistence to reflect the last run in memory and persistence if a shared persistence is used"} {"diff": " public final class ContactsContract { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static Uri lookupContact ( ContentResolver resolver , Uri lookupUri ) { \n + if ( lookupUri == null ) { \n + return null ; \n + } \n + \n + Cursor c = resolver . query ( lookupUri , new String [ ] { Contacts . _ID } , null , null , null ) ; \n + if ( c == null ) { \n + return null ; \n + } \n + \n + try { \n + if ( c . moveToFirst ( ) ) { \n + long contactId = c . getLong ( NUMBER0 ) ; \n + return ContentUris . withAppendedId ( Contacts . CONTENT_URI , contactId ) ; \n + } \n + } finally { \n + c . close ( ) ; \n + } \n + return null ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding a convenience method to resolve contact lookup URI to a regular content URI"} {"diff": " public class PrivacyManager { \n if ( ip != null ) \n try { \n return InetAddress . getByName ( ip ) ; \n - } catch ( Throwable ex ) { \n - Util . bug ( null , ex ) ; \n + } catch ( Throwable ignored ) { \n } \n \n SINGLE", "msg_token": "Ignore resolving errors support info"} {"diff": " final class DefaultChannelHandlerContext extends DefaultAttributeMap implements \n private void invokeFlush0 ( ChannelPromise promise ) { \n Channel channel = channel ( ) ; \n if ( ! channel . isRegistered ( ) && ! channel . isActive ( ) ) { \n - promise . setFailure ( new ClosedChannelException ( ) ) ; \n + promise . tryFailure ( new ClosedChannelException ( ) ) ; \n return ; \n }", "msg_token": "Fix a problem where flush future is set more than once"} {"diff": " public class Messenger { \n COMMENT \n COMMENT \n COMMENT \n - @ objectivecname ( STRING0 ) \n + @ objectivecname ( STRING1 ) \n public void onPushReceived ( int seq , long authId ) { \n if ( modules . getUpdatesModule ( ) != null ) { \n modules . getUpdatesModule ( ) . onPushReceived ( seq , authId ) ;", "msg_token": "add new arguments to onPushReceived ObjectiveCName"} {"diff": " public class Capsule implements Runnable { \n return null ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + protected final Capsule sup ( String ClassName ) { \n + for ( Capsule c = this ; c != null ; c = c . sup ) { \n + for ( Class cls = c . getClass ( ) ; cls != null ; cls = cls . getSuperclass ( ) ) { \n + if ( ClassName . equals ( cls . getName ( ) ) ) \n + return c ; \n + } \n + } \n + return null ; \n + } \n + \n protected final < T extends Capsule > T getCallTarget ( Class < T > clazz ) { \n COMMENT \n COMMENT", "msg_token": "add sup String"} {"diff": " public class PlatformProjectOpenProcessor extends ProjectOpenProcessor { \n } \n \n if ( project == null ) return null ; \n + ProjectBaseDirectory . getInstance ( project ) . setBaseDir ( baseDir ) ; \n final Module module = runConfigurators ? runDirectoryProjectConfigurators ( baseDir , project ) : null ; \n \n openFileFromCommandLine ( project , virtualFile , line ) ; \n public class PlatformProjectOpenProcessor extends ProjectOpenProcessor { \n } \n \n public static Module runDirectoryProjectConfigurators ( VirtualFile baseDir , Project project ) { \n - ProjectBaseDirectory . getInstance ( project ) . setBaseDir ( baseDir ) ; \n final Ref < Module > moduleRef = new Ref < Module > ( ) ; \n for ( DirectoryProjectConfigurator configurator : Extensions . getExtensions ( DirectoryProjectConfigurator . EP_NAME ) ) { \n try {", "msg_token": "set basedir when opening existing project"} {"diff": " public class JetLineMarkerProvider implements LineMarkerProvider { \n } \n \n @ override \n - public void collectSlowLineMarkers ( List < PsiElement > elements , Collection < LineMarkerInfo > result ) { \n + public void collectSlowLineMarkers ( @ notnull List < PsiElement > elements , @ notnull Collection < LineMarkerInfo > result ) { \n + SINGLE \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return ; \n + \n if ( elements . isEmpty ( ) || DumbService . getInstance ( elements . get ( NUMBER0 ) . getProject ( ) ) . isDumb ( ) ) { \n return ; \n }", "msg_token": "Added another workaround for CME in IDEA code in tests to be removed after updating to new IDEA"} {"diff": " public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid \n \n reply = IQ . createResultIQ ( packet ) ; \n session . process ( reply ) ; \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n SINGLE \n session . getConnection ( ) . close ( ) ; \n SINGLE", "msg_token": "Added a very small delay before closing the connection once an account was removed"} {"diff": " public class ModelCache extends AbstractCache < String , CachedModel > { \n \n public void readFromParcel ( Parcel source ) throws IOException { \n String className = source . readString ( ) ; \n + SINGLE \n + if ( className == null ) { \n + return ; \n + } \n Class < ? > clazz ; \n try { \n clazz = Class . forName ( className ) ;", "msg_token": "Added check to class name because sometimes for unknown reasons it s null"} {"diff": " public class TfsShellTest { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ test \n public void setPinTest ( ) throws Exception {", "msg_token": "Fix comment formatting"} {"diff": " public class EditorNotificationPanel extends JPanel { \n JPanel panel = new NonOpaquePanel ( new BorderLayout ( ) ) ; \n panel . add ( BorderLayout . CENTER , myLabel ) ; \n panel . add ( BorderLayout . EAST , myLinksPanel ) ; \n - panel . setBorder ( JBUI . Borders . empty ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 ) ) ; \n + panel . setBorder ( JBUI . Borders . empty ( NUMBER2 , NUMBER0 , NUMBER2 , NUMBER1 ) ) ; \n panel . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER0 ) ) ; \n \n add ( BorderLayout . CENTER , panel ) ;", "msg_token": "added some space for editor notifications"} {"diff": " public class ErrorOutputStream extends LoggerOutputStream { \n } \n @ override \n protected void log ( byte [ ] message , int off , int length ) { \n - logger . error ( new String ( message , off , length ) . replace ( STRING0 , STRING1 ) ) ; \n + String msg = new String ( message , off , length ) . replace ( STRING0 , STRING1 ) ; \n + String msgToLower = msg . toLowerCase ( ) ; \n + if ( msgToLower . contains ( STRING2 ) ) { \n + logger . warn ( msg ) ; \n + } else { \n + logger . error ( msg ) ; \n + } \n } \n }", "msg_token": "Log messages printed on stderr by command ine tools containing warning on"} {"diff": " public class Renderer extends JavaScriptObject \n public native final void updateFontSize ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public native final void updateFull ( boolean force ) COMMENT \n + COMMENT \n + COMMENT ; \n \n public native final void onResize ( boolean force ) / * - { \n this . onResize ( force ) ;", "msg_token": "add updateFull method"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MachineExtension { \n final EventBus eventBus , \n final WorkspaceAgent workspaceAgent , \n final ConsolesPanelPresenter consolesPanelPresenter , \n - final ServerPortProvider machinePortProvider , \n + final Provider < ServerPortProvider > machinePortProvider , \n final OutputsContainerPresenter outputsContainerPresenter , \n final PerspectiveManager perspectiveManager , \n IconRegistry iconRegistry , \n public class MachineExtension { \n eventBus . addHandler ( WsAgentStateEvent . TYPE , new WsAgentStateHandler ( ) { \n @ override \n public void onWsAgentStarted ( WsAgentStateEvent event ) { \n + machinePortProvider . get ( ) ; \n + \n perspectiveManager . setPerspectiveId ( PROJECT_PERSPECTIVE_ID ) ; \n workspaceAgent . openPart ( outputsContainerPresenter , PartStackType . INFORMATION ) ; \n workspaceAgent . openPart ( consolesPanelPresenter , PartStackType . INFORMATION ) ;", "msg_token": "Fix wrong preview URL"} {"diff": " class PowerManagerService extends IPowerManager . Stub \n } \n \n private void forceUserActivityLocked ( ) { \n + SINGLE \n + mScreenBrightness . animating = false ; \n boolean savedActivityAllowed = mUserActivityAllowed ; \n mUserActivityAllowed = true ; \n userActivity ( SystemClock . uptimeMillis ( ) , false ) ;", "msg_token": "Fix problem with proximity sensor not reawaking screen if the values change too quickly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class LocalBlockInStream extends BlockInStream { \n mBlockId = blockId ; \n mClosed = false ; \n mContext = BSContext . INSTANCE ; \n - mWorkerClient = mContext . acquireWorkerClient ( ) ; \n + mWorkerClient = \n + mContext . acquireWorkerClient ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ; \n String blockPath = mWorkerClient . lockBlock ( blockId ) ; \n \n if ( null == blockPath ) {", "msg_token": "Only get local client in local block in stream"} {"diff": " public class LambdaClassesTest { \n \n @ test \n public void lambda_bodies_contain_no_unnecessary_methods ( ) throws ClassNotFoundException { \n - assertThat ( getDeclaredMethodNames ( HasLambdaBody . class ) , is ( ImmutableSet . of ( STRING0 , STRING1 ) ) ) ; \n + assertThat ( getDeclaredMethodNames ( HasLambdaBody . class ) , containsInAnyOrder ( startsWith ( STRING2 ) , equalTo ( STRING1 ) ) ) ; \n } \n \n @ suppresswarnings ( STRING3 )", "msg_token": "Fix fragile test"} {"diff": " public class BoundedStatsDeque implements Iterable < Long > \n \n public double mean ( ) \n { \n - return size ( ) > NUMBER0 ? sum ( ) / size ( ) : NUMBER0 ; \n + return size ( ) > NUMBER0 ? ( ( double ) sum ( ) ) / size ( ) : NUMBER0 ; \n } \n }", "msg_token": "convert sum to double before dividing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class GoProjectModelConverterProvider extends ConverterProvider { \n - \n public static final String PROJECT_ROOT_MANAGER = STRING0 ; \n \n protected GoProjectModelConverterProvider ( ) { \n public class GoProjectModelConverterProvider extends ConverterProvider { \n settings . setModuleType ( GoConstants . MODULE_TYPE_ID ) ; \n for ( Element element : settings . getOrderEntries ( ) ) { \n if ( isGoSdkType ( element . getAttributeValue ( STRING1 ) ) ) { \n - element . setAttribute ( STRING2 , GoConstants . SDK_TYPE_ID ) ; \n + element . setAttribute ( STRING1 , GoConstants . SDK_TYPE_ID ) ; \n } \n } \n convertSdks ( ) ;", "msg_token": "Fix module convertion"} {"diff": " public abstract class NullableNotNullManager implements PersistentStateComponent \n return findNullabilityDefaultInHierarchy ( owner , nullable ) ; \n } \n \n - protected abstract boolean hasHardcodedContracts ( PsiElement element ) ; \n + protected boolean hasHardcodedContracts ( PsiElement element ) { \n + return false ; \n + } \n \n @ nullable \n private static PsiType getOwnerType ( PsiModifierListOwner owner ) {", "msg_token": "added default implementation to new method to avoid breaking API fixed compatibility with Kotlin plugin"} {"diff": " public class RoboSpiceDatabaseHelper extends OrmLiteSqliteOpenHelper { \n } \n \n @ override \n - public void onUpgrade ( SQLiteDatabase arg0 , ConnectionSource arg1 , int arg2 , int arg3 ) { \n + public void onUpgrade ( SQLiteDatabase database , ConnectionSource connectionSource , int oldVersion , int newVersion ) { \n SINGLE \n }", "msg_token": "fix argument names in RoboSpiceDatabaseHelper onUpdate"} {"diff": " public class RPC < V extends DTask > implements Future < V > , Delayed , ForkJoinPool . Ma \n SINGLE \n private void handleCompleter ( CountedCompleter cc ) { \n assert cc instanceof H2OCountedCompleter ; \n - if ( _fjtasks != null && ! _fjtasks . contains ( cc ) ) \n + if ( _fjtasks == null || ! _fjtasks . contains ( cc ) ) \n addCompleter ( ( H2OCountedCompleter ) cc ) ; \n _dt . setCompleter ( null ) ; \n }", "msg_token": "test reversed fix"} {"diff": " public class StringManager { \n String str = null ; \n \n try { \n - str = bundle . getString ( key ) ; \n + SINGLE \n + if ( bundle != null ) { \n + str = bundle . getString ( key ) ; \n + } \n } catch ( MissingResourceException mre ) { \n SINGLE \n SINGLE", "msg_token": "Avoid NPE if bundle is missing"} {"diff": " public class BulkIteration extends SingleInputContract < AbstractStub > implements \n \n private Contract iterationResult ; \n \n - private final Contract inputPlaceHolder = new PartialSolutionPlaceHolder ( this ) ; \n + private Contract inputPlaceHolder = new PartialSolutionPlaceHolder ( this ) ; \n \n private final AggregatorRegistry aggregators = new AggregatorRegistry ( ) ; \n \n public class BulkIteration extends SingleInputContract < AbstractStub > implements \n COMMENT \n COMMENT \n COMMENT \n - public static final class PartialSolutionPlaceHolder extends Contract { \n + SINGLE \n + public static class PartialSolutionPlaceHolder extends Contract { \n \n private final BulkIteration containingIteration ; \n \n - private PartialSolutionPlaceHolder ( BulkIteration container ) { \n + public PartialSolutionPlaceHolder ( BulkIteration container ) { \n super ( STRING0 ) ; \n this . containingIteration = container ; \n }", "msg_token": "Make PartialSolutionHolder non final in BulkIteration"} {"diff": " \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": "Add license headers"} {"diff": " class WindowStateAnimator { \n final WindowState wallpaperTarget = mWallpaperControllerLocked . getWallpaperTarget ( ) ; \n if ( wallpaperTarget != null ) { \n final Task task = wallpaperTarget . getTask ( ) ; \n - if ( task != null && ! task . isFullscreen ( ) ) { \n + final WindowStateAnimator winAnimator = wallpaperTarget . mWinAnimator ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + final boolean useFinalCropOnWallpaper = ! winAnimator . isAnimationSet ( ) \n + || winAnimator . resolveStackClip ( ) == STACK_CLIP_AFTER_ANIM ; \n + if ( task != null && ! task . isFullscreen ( ) \n + && task . cropWindowsToStackBounds ( ) \n + && useFinalCropOnWallpaper ) { \n final TaskStack stack = task . mStack ; \n if ( stack != null && ! stack . isFullscreen ( ) ) { \n stack . getDimBounds ( mTmpStackBounds ) ; \n class WindowStateAnimator { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n mForceScaleUntilResize = true ; \n } else {", "msg_token": "Fix wallpaper crop during unlock animation"} {"diff": " import static NAMESPACE ; \n \n public class StyledTextOutputBackedRenderer implements OutputEventListener { \n private final OutputEventTextOutputImpl textOutput ; \n + private final SimpleDateFormat dateFormat = new SimpleDateFormat ( STRING0 ) ; \n private boolean debugOutput ; \n private RenderableOutputEvent lastEvent ; \n \n public class StyledTextOutputBackedRenderer implements OutputEventListener { \n if ( ! textOutput . atEndOfLine ) { \n textOutput . println ( ) ; \n } \n - textOutput . text ( new SimpleDateFormat ( STRING0 ) . format ( new Date ( outputEvent . getTimestamp ( ) ) ) ) ; \n + textOutput . text ( dateFormat . format ( new Date ( outputEvent . getTimestamp ( ) ) ) ) ; \n textOutput . text ( STRING1 ) ; \n textOutput . text ( outputEvent . getLogLevel ( ) ) ; \n textOutput . text ( STRING2 ) ;", "msg_token": "Don t create a SimpleDataFormat instance for every debug log message"} {"diff": " public class PeerTest extends TestWithNetworkConnections { \n inbound ( peer , new Pong ( pingMsg . getNonce ( ) ) ) ; \n elapsed = future . get ( ) ; \n assertEquals ( elapsed , peer . getLastPingTime ( ) ) ; \n - assertEquals ( NUMBER0 , peer . getPingTime ( ) ) ; \n + assertEquals ( NUMBER1 , peer . getPingTime ( ) ) ; \n } \n \n private Message outbound ( ) {", "msg_token": "Fix unit test bug"} {"diff": " public class Theme { \n String demoURI = object . getString ( DEMO_URI ) ; \n String name = object . getString ( NAME ) ; \n String stylesheet = object . getString ( STYLESHEET ) ; \n - String price = object . getString ( PRICE ) ; \n + String price ; \n + try { \n + price = object . getString ( PRICE ) ; \n + } catch ( JSONException e ) { \n + price = STRING0 ; \n + } \n \n return new Theme ( id , author , screenshot , authorURI , demoURI , name , stylesheet , price ) ; \n }", "msg_token": "Some themes don t have a price so doing try catch"} {"diff": " public class LayoutManager extends RecyclerView . LayoutManager { \n break ; \n } \n } \n + \n + SINGLE \n + if ( sli == - NUMBER0 && sd . headerParams . isHeaderInline ( ) && ! sd . headerParams . isHeaderOverlay ( ) ) { \n + markerLine = sectionBottom ; \n + } \n + \n int offset = NUMBER1 ; \n if ( ! sd . headerParams . isHeaderInline ( ) || sd . headerParams . isHeaderOverlay ( ) ) { \n View firstVisibleView = slm . getFirstVisibleView ( sd . firstPosition , true ) ;", "msg_token": "Fix header for empty section on scroll to start"} {"diff": " public class Requirements { \n for ( String service : XBinder . cListService ) \n if ( ! mapService . containsKey ( service ) ) \n listMissing . add ( service ) ; \n + if ( PrivacyManager . cTestVersion ) \n + for ( String serviceName : XBinder . cListServiceName ) \n + if ( ! mapService . containsValue ( serviceName ) ) \n + listMissing . add ( serviceName ) ; \n \n SINGLE \n if ( listMissing . size ( ) > NUMBER0 ) {", "msg_token": "Check service names in test version"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n @ override \n public final void activityIdle ( IBinder token , Configuration config , boolean stopProfiling ) { \n final long origId = Binder . clearCallingIdentity ( ) ; \n - if ( stopProfiling ) { \n - synchronized ( this ) { \n - ActivityStack stack = ActivityRecord . getStackLocked ( token ) ; \n - if ( stack != null ) { \n - ActivityRecord r = stack . activityIdleInternalLocked ( token , false , config ) ; \n + synchronized ( this ) { \n + ActivityStack stack = ActivityRecord . getStackLocked ( token ) ; \n + if ( stack != null ) { \n + ActivityRecord r = stack . activityIdleInternalLocked ( token , false , config ) ; \n + if ( stopProfiling ) { \n if ( ( mProfileProc == r . app ) && ( mProfileFd != null ) ) { \n try { \n mProfileFd . close ( ) ;", "msg_token": "Perform activityIdleInternal in correct order"} {"diff": " public class SQLiteDatabase extends SQLiteClosable { \n mSlowQueryThreshold = - NUMBER0 ; SINGLE \n mStackTrace = new DatabaseObjectNotClosedException ( ) . fillInStackTrace ( ) ; \n mFactory = factory ; \n + mPrograms = new WeakHashMap < SQLiteClosable , Object > ( ) ; \n dbopen ( mPath , mFlags ) ; \n \n if ( databaseHook != null ) { \n public class SQLiteDatabase extends SQLiteClosable { \n if ( SQLiteDebug . DEBUG_SQL_CACHE ) { \n mTimeOpened = getTime ( ) ; \n } \n - mPrograms = new WeakHashMap < SQLiteClosable , Object > ( ) ; \n try { \n setLocale ( Locale . getDefault ( ) ) ; \n } catch ( RuntimeException e ) {", "msg_token": "Move map of SQLiteCloseable to allow preKey postKey operations"} {"diff": " public class ContactGroupIcqImpl \n COMMENT \n void removeContact ( ContactIcqImpl contact ) \n { \n - for ( Iterator < Map . Entry < String , Contact > > buddyIter \n - = buddies . entrySet ( ) . iterator ( ) ; \n - buddyIter . hasNext ( ) ; ) \n - { \n - if ( buddyIter . next ( ) . getValue ( ) . equals ( contact ) ) \n - { \n - buddyIter . remove ( ) ; \n - break ; \n - } \n - } \n + if ( contact == null ) \n + return ; \n + \n + buddies . remove ( contact . getUIN ( ) . toLowerCase ( ) ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixes the fix of the previous fix"} {"diff": " public class MethodSorterTest { \n \n @ test public void getDeclaredMethods ( ) throws Exception { \n assertEquals ( STRING0 , declaredMethods ( Dummy . class ) ) ; \n - class Super { \n - void testOne ( ) { } \n - } \n - class Sub extends Super { \n - void testTwo ( ) { } \n - } \n assertEquals ( STRING1 , declaredMethods ( Super . class ) ) ; \n assertEquals ( STRING2 , declaredMethods ( Sub . class ) ) ; \n } \n public class MethodSorterTest { \n void delta ( ) { } \n void epsilon ( ) { } \n } \n + private static class Super { \n + void testOne ( ) { } \n + } \n + private static class Sub extends Super { \n + void testTwo ( ) { } \n + } \n \n }", "msg_token": "Making Super and Sub member classes as suggested"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class InvokeTemplateAction extends AnAction { \n \n \n public void actionPerformed ( AnActionEvent e ) { \n + final Document document = myEditor . getDocument ( ) ; \n + final VirtualFile file = FileDocumentManager . getInstance ( ) . getFile ( document ) ; \n + if ( file != null ) { \n + ReadonlyStatusHandler . getInstance ( myProject ) . ensureFilesWritable ( file ) ; \n + } \n + \n String selectionString = myEditor . getSelectionModel ( ) . getSelectedText ( ) ; \n \n if ( selectionString != null ) {", "msg_token": "surround with template should checkout the file from VCS"} {"diff": " public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte \n SINGLE \n channel . initChannel ( this , routeContext ) ; \n \n + SINGLE \n + ProcessorDefinition defn = ( ProcessorDefinition ) this ; \n SINGLE \n - if ( this instanceof TryDefinition || this instanceof CatchDefinition || this instanceof FinallyDefinition ) { \n + if ( defn instanceof TryDefinition || defn instanceof CatchDefinition || defn instanceof FinallyDefinition ) { \n SINGLE \n return channel ; \n } else {", "msg_token": "Fixed compiler error on HP UX"} {"diff": " public class FreeFlowContainer extends AbsLayoutContainer { \n } \n \n for ( FreeFlowItem freeflowItem : changeSet . removed ) { \n - freeflowItem . view . setAlpha ( FLOAT0 ) ; \n removeViewInLayout ( freeflowItem . view ) ; \n returnItemToPoolIfNeeded ( freeflowItem ) ; \n } \n public class FreeFlowContainer extends AbsLayoutContainer { \n v . setScaleX ( FLOAT1 ) ; \n v . setScaleY ( FLOAT1 ) ; \n \n - v . setAlpha ( NUMBER0 ) ; \n viewpool . returnViewToPool ( v ) ; \n }", "msg_token": "Removed setAlpha calls which can be potentially expensive during scrolling"} {"diff": " final class CdiSpiHelper { \n \n return Stream . of ( methods ) \n . sorted ( comparing ( Method : : getName ) ) \n - . collect ( ( ) - > new StringJoiner ( STRING0 , STRING1 , STRING2 ) , \n + . collect ( ( ) - > new StringJoiner ( STRING0 , STRING3 + annotation . annotationType ( ) . getCanonicalName ( ) + STRING4 , STRING2 ) , \n ( joiner , method ) - > { \n try { \n - joiner \n - . add ( method . getName ( ) ) . add ( STRING5 ) \n - . add ( method . invoke ( annotation ) . toString ( ) ) ; \n + joiner . add ( method . getName ( ) + STRING5 + method . invoke ( annotation ) . toString ( ) ) ; \n } catch ( NullPointerException | IllegalArgumentException | IllegalAccessException | InvocationTargetException cause ) { \n throw new RuntimeException ( \n STRING6 + method . getName ( ) + STRING7", "msg_token": "Fix missing type and redundant delimiters in annotation id"} {"diff": " public class Http11InputBuffer implements InputBuffer { \n \n lastValid = NUMBER0 ; \n pos = NUMBER0 ; \n - \n lastActiveFilter = - NUMBER1 ; \n parsingHeader = true ; \n swallowInput = true ; \n public class Http11InputBuffer implements InputBuffer { \n if ( swallowInput && ( lastActiveFilter != - NUMBER1 ) ) { \n int extraBytes = ( int ) activeFilters [ lastActiveFilter ] . end ( ) ; \n pos = pos - extraBytes ; \n - ( new Exception ( ) ) . printStackTrace ( ) ; \n } \n }", "msg_token": "Really remove all the debug"} {"diff": " public class ControllerDynamicMethods extends \n public static final String MODEL_AND_VIEW_PROPERTY = STRING0 ; \n public static final String ACTION_URI_PROPERTY = STRING1 ; \n public static final String CONTROLLER_URI_PROPERTY = STRING2 ; \n - private static final String GET_VIEW_URI = null ; \n - private static final String GET_TEMPLATE_URI = null ; \n + public static final String GET_VIEW_URI = STRING3 ; \n + public static final String GET_TEMPLATE_URI = STRING4 ; \n \n \n protected GrailsControllerClass controllerClass ;", "msg_token": "corrected constants made public"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DexMojo extends AbstractAndroidMojo { \n try { \n final OutputStream out = new FileOutputStream ( entryFile ) ; \n try { \n - IOUtil . copy ( in , out ) ; \n + IOUtil . copy ( in , out ) ; \n } finally { \n - closeQuietly ( out ) ; \n + IOUtils . closeQuietly ( out ) ; \n } \n } finally { \n - closeQuietly ( in ) ; \n + IOUtils . closeQuietly ( in ) ; \n } \n } \n } \n } \n \n - private void closeQuietly ( final Closeable c ) { \n - try { \n - c . close ( ) ; \n - } catch ( Exception ex ) { \n - getLog ( ) . warn ( STRING0 + c , ex ) ; \n - } \n - } \n }", "msg_token": "Use Apache commons io s IOUtils closeQuitely instead of our own code"} {"diff": " public class SourceUIContact \n { \n byte [ ] image = sourceContact . getImage ( ) ; \n \n - if ( image != null ) \n + if ( ( image != null ) && ( image . length > NUMBER0 ) ) \n { \n - ImageIcon icon = new ImageIcon ( ) ; \n + ImageIcon icon = new ImageIcon ( image ) ; \n \n if ( icon . getIconWidth ( ) > width || icon . getIconHeight ( ) > height ) \n {", "msg_token": "I don t get the images in the contact list and only see them in the tool tip"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class StopWatcherTest { \n - \n - @ rule \n - public Timeout timeout = new Timeout ( NUMBER0 , TimeUnit . MILLISECONDS ) ; \n - \n - @ test \n + @ test ( timeout = NUMBER0 ) \n public void stop_if_receive_command ( ) throws InterruptedException { \n ProcessCommands commands = mock ( ProcessCommands . class ) ; \n when ( commands . askedForStop ( ) ) . thenReturn ( false , true ) ; \n public class StopWatcherTest { \n verify ( stoppable ) . stopAsync ( ) ; \n } \n \n - @ test \n + @ test ( timeout = NUMBER1 ) \n public void stop_watching_on_interruption ( ) throws InterruptedException { \n ProcessCommands commands = mock ( ProcessCommands . class ) ; \n when ( commands . askedForStop ( ) ) . thenReturn ( false ) ;", "msg_token": "Fix Flaky test"} {"diff": " public abstract class AbstractEdge implements Edge { \n \n private void detachTo ( ) { \n if ( tov != null ) { \n - tov . removeOutgoing ( this ) ; \n + tov . removeIncoming ( this ) ; \n tov = null ; \n } \n }", "msg_token": "bug remove edge from incoming not outgoing edge list of tov"} {"diff": " public class WorldEdit { \n \n SINGLE \n if ( split . length > NUMBER0 ) { \n - if ( split [ NUMBER0 ] . equalsIgnoreCase ( STRING0 ) ) { \n - replace = null ; SINGLE \n - } else { \n - replace = getBlock ( split [ NUMBER0 ] ) ; \n - } \n + replace = getBlock ( split [ NUMBER0 ] ) ; \n } else { \n replace = new BaseBlock ( NUMBER1 ) ; \n }", "msg_token": "Removed displacement argument from move and moveair not yet implemented"} {"diff": " public abstract class AbstractChannel extends DefaultAttributeMap implements Cha \n } \n \n boolean setClosed ( ) { \n - boolean set = super . setSuccess ( ) ; \n - assert set ; \n - return set ; \n + return super . setSuccess ( ) ; \n } \n } \n }", "msg_token": "Remove a bad assertion"} {"diff": " public class DTree extends Iced { \n if ( MathUtils . equalsWithinOneSmallUlp ( min , maxEx ) ) continue ; SINGLE \n if ( Float . isInfinite ( adj_nbins / ( maxEx - min ) ) ) continue ; \n if ( h . _isInt > NUMBER0 && ! ( min + NUMBER1 < maxEx ) ) continue ; SINGLE \n - assert min < maxEx && n > NUMBER1 : STRING0 + min + STRING1 + maxEx + STRING2 + n ; \n + assert min < maxEx && adj_nbins > NUMBER1 : STRING0 + min + STRING1 + maxEx + STRING3 + adj_nbins ; \n nhists [ j ] = DHistogram . make ( h . _name , adj_nbins , h . _isInt , min , maxEx , n , h . isBinom ( ) ) ; \n cnt ++ ; SINGLE \n }", "msg_token": "Fix assertion was checking the wrong thing"} {"diff": " public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme \n PsiExpression expression = PsiTreeUtil . getParentOfType ( elementAtCaret , PsiExpression . class ) ; \n while ( expression != null ) { \n if ( ! expressions . contains ( expression ) && ! ( expression instanceof PsiParenthesizedExpression ) && ! ( expression instanceof PsiSuperExpression ) && expression . getType ( ) != PsiType . VOID ) { \n - if ( ! ( expression instanceof PsiReferenceExpression && expression . getParent ( ) instanceof PsiMethodCallExpression ) ) { \n + if ( ! ( expression instanceof PsiReferenceExpression && ( expression . getParent ( ) instanceof PsiMethodCallExpression || \n + ( ( PsiReferenceExpression ) expression ) . resolve ( ) instanceof PsiClass ) ) ) { \n expressions . add ( expression ) ; \n } \n }", "msg_token": "exclude class refrences from expressions list"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n SearchableInfo searchable = mSearchable ; \n try { \n if ( searchable . getVoiceSearchLaunchWebSearch ( ) ) { \n - getContext ( ) . startActivity ( mVoiceWebSearchIntent ) ; \n + Intent webSearchIntent = createVoiceWebSearchIntent ( mVoiceWebSearchIntent , \n + searchable ) ; \n + getContext ( ) . startActivity ( webSearchIntent ) ; \n } else if ( searchable . getVoiceSearchLaunchRecognizer ( ) ) { \n Intent appSearchIntent = createVoiceAppSearchIntent ( mVoiceAppSearchIntent , \n searchable ) ; \n public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n } ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + private Intent createVoiceWebSearchIntent ( Intent baseIntent , SearchableInfo searchable ) { \n + Intent voiceIntent = new Intent ( baseIntent ) ; \n + ComponentName searchActivity = searchable . getSearchActivity ( ) ; \n + voiceIntent . putExtra ( RecognizerIntent . EXTRA_CALLING_PACKAGE , \n + searchActivity == null ? null : searchActivity . toShortString ( ) ) ; \n + return voiceIntent ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Also send EXTRA_CALLING_PACKAGE for voice search intents that do web"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } ) \n + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } ) \n public class MapPutParameters { \n \n public byte [ ] key ; \n public class MapMessageEncodeDecodeTest { \n @ test \n public void shouldEncodeDecodeWithHeaderCorrectly_PUT ( ) { \n byteBuffer = ByteBuffer \n - . allocate ( MapPutParameters . encodeSizeCost ( NAME , BYTES_DATA , BYTES_DATA , THE_LONG , THE_LONG , THE_BOOLEAN ) ) ; \n + . allocate ( MapPutParameters . encodeSizeCost ( NAME , BYTES_DATA , BYTES_DATA ) ) ; \n ClientMessage cmEncode = new ClientMessage ( ) ; \n cmEncode . wrapForEncode ( byteBuffer , NUMBER0 ) ;", "msg_token": "map put parameters fix"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface NbtValued { \n COMMENT \n COMMENT \n COMMENT \n + @ nullable \n CompoundTag getNbtData ( ) ; \n \n COMMENT \n public interface NbtValued { \n COMMENT \n COMMENT \n COMMENT \n - void setNbtData ( CompoundTag nbtData ) throws DataException ; \n + void setNbtData ( @ nullable CompoundTag nbtData ) throws DataException ; \n \n }", "msg_token": "Add Nullable to NbtValued methods"} {"diff": " public class PersistenceWindowPool implements WindowPool \n brick . setWindow ( window ) ; \n break ; \n } \n - else \n - { \n - try \n - { \n - Thread . sleep ( NUMBER0 ) ; \n - } \n - catch ( InterruptedException e ) \n - { \n - Thread . interrupted ( ) ; \n - continue ; \n - } \n - } \n } \n } \n memUsed += brickSize ;", "msg_token": "Remove sleep in busy wait in refreshBricks"} {"diff": " public class BuiltInCheckerSuppliers { \n PreconditionsCheckNotNull . class , \n PreconditionsCheckNotNullPrimitive . class , \n ProtoFieldNullComparison . class , \n + ProvidesNull . class , \n RectIntersectReturnValueIgnored . class , \n ReturnValueIgnored . class , \n SelfAssignment . class , \n public class BuiltInCheckerSuppliers { \n PrimitiveArrayPassedToVarargsMethod . class , \n ProtoFieldPreconditionsCheckNotNull . class , \n ProtoStringFieldReferenceEquality . class , \n - ProvidesNull . class , \n ScopeAnnotationOnInterfaceOrAbstractClass . class , \n ScopeOrQualifierAnnotationRetention . class , \n SelfEquality . class ,", "msg_token": "Make Dagger ProvidesNull check an error"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class SafeAsyncTask < ResultT > implements Callable < ResultT > { \n - public static final int DEFAULT_POOL_SIZE = NUMBER0 ; \n + public static final int DEFAULT_POOL_SIZE = NUMBER1 ; \n \n protected Handler handler ; \n protected Executor executor ;", "msg_token": "update pool size to decrease likelihood of deadlock"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MUCOwnerProvider implements IQProvider { \n item . setActor ( parser . getAttributeValue ( STRING0 , STRING1 ) ) ; \n } \n if ( parser . getName ( ) . equals ( STRING2 ) ) { \n - item . setReason ( parser . getText ( ) ) ; \n + item . setReason ( parser . nextText ( ) ) ; \n } \n } \n else if ( eventType == XmlPullParser . END_TAG ) { \n public class MUCOwnerProvider implements IQProvider { \n int eventType = parser . next ( ) ; \n if ( eventType == XmlPullParser . START_TAG ) { \n if ( parser . getName ( ) . equals ( STRING2 ) ) { \n - destroy . setReason ( parser . getText ( ) ) ; \n + destroy . setReason ( parser . nextText ( ) ) ; \n } \n } \n else if ( eventType == XmlPullParser . END_TAG ) {", "msg_token": "Adds class and methods comments"} {"diff": " public class AntDomExtender extends DomExtender < AntDomElement > { \n final String nestedElementName = nested . next ( ) ; \n final DomExtension extension = registerChild ( registrar , genericInfo , nestedElementName ) ; \n if ( extension != null ) { \n - final AntDomNamedElement childDeclaration = CustomAntElementsRegistry . getInstance ( antProject ) . getDeclaringElement ( new XmlName ( nestedElementName , antDomElement . getXmlElementNamespace ( ) ) ) ; \n - if ( childDeclaration != null ) { \n - extension . setDeclaringElement ( childDeclaration ) ; \n - } \n final Class type = parentIntrospector . getNestedElementType ( nestedElementName ) ; \n if ( type != null ) { \n extension . putUserData ( ELEMENT_IMPL_CLASS_KEY , type ) ;", "msg_token": "fix stack overflow"} {"diff": " public class SvnFileUrlMappingImpl implements SvnFileUrlMapping , PersistentState \n private boolean updateMappings ( ) { \n boolean mappingsChanged ; \n synchronized ( myMonitor ) { \n - mappingsChanged = ! myMapping . equals ( myNewMapping ) ; \n - if ( mappingsChanged ) { \n - mappingsChanged = ! myMoreRealMapping . equals ( myNewFilteredMapping ) ; \n - } \n + mappingsChanged = ! myMoreRealMapping . equals ( myNewFilteredMapping ) ; \n + mappingsChanged |= ! myErrorRoots . equals ( myResult . getErrorRoots ( ) ) ; \n + \n myMapping . copyFrom ( myNewMapping ) ; \n myMoreRealMapping . copyFrom ( myNewFilteredMapping ) ; \n myErrorRoots . clear ( ) ;", "msg_token": "Updated detection if svn roots were changed added error roots tracking"} {"diff": " public class InspectionToolRegistrar implements ApplicationComponent , JDOMExtern \n public InspectionToolRegistrar ( InspectionToolProvider [ ] providers ) { \n myInspectionTools = new ArrayList < Class > ( ) ; \n myLocalInspectionTools = new ArrayList < Class > ( ) ; \n - SINGLE \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n for ( int i = NUMBER0 ; i < providers . length ; i ++ ) { \n InspectionToolProvider provider = providers [ i ] ; \n Class [ ] classes = provider . getInspectionClasses ( ) ; \n public class InspectionToolRegistrar implements ApplicationComponent , JDOMExtern \n } \n } \n } \n - SINGLE \n + } \n } \n \n public static InspectionToolRegistrar getInstance ( ) {", "msg_token": "speed up tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class FacebookProvider implements IDPProvider , FacebookCallback < LoginResu \n loginManager . registerCallback ( mCallbackManager , this ) ; \n \n String [ ] permissions = activity . getResources ( ) . getStringArray ( R . array . facebook_permissions ) ; \n - List < String > permissionsList = Arrays . asList ( permissions ) ; \n + List < String > permissionsList = new ArrayList < > ( Arrays . asList ( permissions ) ) ; \n \n SINGLE \n if ( ! permissionsList . contains ( EMAIL ) ) {", "msg_token": "Fix facebook permissions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderRecyclerView extends RecyclerView { \n \n private void initialize ( Context context ) { \n if ( ! isInEditMode ( ) ) { \n - ItemAnimator animator = new DefaultItemAnimator ( ) ; \n - animator . setSupportsChangeAnimations ( true ) ; \n - setItemAnimator ( animator ) ; \n setLayoutManager ( new LinearLayoutManager ( context ) ) ; \n } \n }", "msg_token": "Removed change animation from recycler"} {"diff": " public class OperationRequestCompleter implements Completor { \n if ( handler . hasOperationName ( ) || handler . endsOnAddressOperationNameSeparator ( ) ) { \n \n OperationCandidatesProvider provider = ctx . getOperationCandidatesProvider ( ) ; \n - final List < String > names = provider . getOperationNames ( ctx . getPrefix ( ) ) ; \n + final List < String > names = provider . getOperationNames ( handler . getAddress ( ) ) ; \n if ( names . isEmpty ( ) ) { \n return - NUMBER0 ; \n }", "msg_token": "pass the full address instead of just the prefix to the candidates provider"} {"diff": " public class GuidanceStylist implements FragmentAnimationProvider { \n . toString ( ) ) ; \n } \n \n - container . getViewTreeObserver ( ) . addOnPreDrawListener ( mParentPreDrawListener ) ; \n + mGuidanceContainer . getViewTreeObserver ( ) . addOnPreDrawListener ( mParentPreDrawListener ) ; \n } \n \n return guidanceView ; \n public class GuidanceStylist implements FragmentAnimationProvider { \n mDescriptionView = null ; \n mIconView = null ; \n mTitleView = null ; \n - mGuidanceContainer . getViewTreeObserver ( ) . removeOnPreDrawListener ( mParentPreDrawListener ) ; \n + if ( mGuidanceContainer != null ) { \n + mGuidanceContainer . getViewTreeObserver ( ) . removeOnPreDrawListener ( \n + mParentPreDrawListener ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fixing NPE issue with GuidanceStylist"} {"diff": " public class RemoteImService extends Service implements OtrEngineListener , ImSer \n Intent notificationIntent = new Intent ( this , NewChatActivity . class ) ; \n PendingIntent launchIntent = PendingIntent . getActivity ( getApplicationContext ( ) , NUMBER0 , notificationIntent , NUMBER0 ) ; \n \n + mNotifyBuilder . setContentIntent ( launchIntent ) ; \n + \n mNotifyBuilder . setContentText ( getString ( R . string . app_unlocked ) ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n startForeground ( notifyId , mNotifyBuilder . build ( ) ) ; \n }", "msg_token": "update notificaiton with proper intent"} {"diff": " public class CassandraStorageSetup { \n private static ModifiableConfiguration getGenericConfiguration ( String ks , String backend ) { \n ModifiableConfiguration config = buildConfiguration ( ) ; \n config . set ( CASSANDRA_KEYSPACE , cleanKeyspaceName ( ks ) ) ; \n + log . debug ( STRING0 , config . get ( CASSANDRA_KEYSPACE ) ) ; \n config . set ( PAGE_SIZE , NUMBER0 ) ; \n config . set ( CONNECTION_TIMEOUT , new StandardDuration ( NUMBER1 , TimeUnit . SECONDS ) ) ; \n config . set ( STORAGE_BACKEND , backend ) ;", "msg_token": "Log Cassandra keyspace name used in tests"} {"diff": " public class EipAnnotationProcessor extends AbstractAnnotationProcessor { \n private static final String ONE_OF_LANGUAGES = STRING0 ; \n SINGLE \n private static final String [ ] ONE_OF_INPUTS = new String [ ] { \n - STRING1 , \n - STRING2 \n + STRING1 , \n + STRING2 \n } ; \n SINGLE \n private static final String [ ] ONE_OF_OUTPUTS = new String [ ] { \n public class EipAnnotationProcessor extends AbstractAnnotationProcessor { \n } \n } \n \n - private static class EipOptionComparator implements Comparator < EipOption > { \n + private static final class EipOptionComparator implements Comparator < EipOption > { \n \n private final EipModel model ;", "msg_token": "Fixed the CS error of apt"} {"diff": " public class ImapStore extends Store { \n do { \n response = mConnection . readResponse ( ) ; \n handleUntaggedResponse ( response ) ; \n - if ( response . mCommandContinuationRequested ) { \n - EOLConvertingOutputStream eolOut = new EOLConvertingOutputStream ( mConnection . mOut ) ; \n - eolOut . write ( STRING0 ) ; \n - eolOut . write ( STRING1 ) ; \n - eolOut . flush ( ) ; \n - } \n while ( response . more ( ) ) ; \n } while ( response . mTag == null ) ; \n \n public class ImapStore extends Store { \n return executeSimpleCommand ( command , sensitive , null ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n public List < ImapResponse > executeSimpleCommand ( String command , boolean sensitive , UntaggedHandler untaggedHandler ) \n throws IOException , ImapException , MessagingException { \n String commandToLog = command ;", "msg_token": "Removed an unnecessary portion of code that attempted to handle command continuation requests after a UID COPY command"} {"diff": " public class InvokerHelper { \n Object [ ] ia = ( Object [ ] ) a ; \n ans = new byte [ ia . length ] ; \n for ( int i = NUMBER0 ; i < ia . length ; i ++ ) { \n - ans [ i ] = ( ( Number ) ia [ i ] ) . byteValue ( ) ; \n + if ( ia [ i ] != null ) \n + ans [ i ] = ( ( Number ) ia [ i ] ) . byteValue ( ) ; \n } \n } \n return ans ;", "msg_token": "added a null check when converting to a byte array"} {"diff": " public class AndroidManifest { \n List < FsFile > libraryBaseDirs = new ArrayList < FsFile > ( ) ; \n \n Properties properties = getProperties ( baseDir . join ( STRING0 ) ) ; \n + SINGLE \n + Properties overrideProperties = getProperties ( baseDir . join ( STRING1 ) ) ; \n + if ( overrideProperties != null ) properties . putAll ( overrideProperties ) ; \n if ( properties != null ) { \n int libRef = NUMBER0 ; \n String lib ;", "msg_token": "Override project properies with those from robo project"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class IndexRangesCleanupPeriodical extends Periodical { \n final Set < String > indexNames = ImmutableSet . copyOf ( deflector . getAllDeflectorIndexNames ( ) ) ; \n final SortedSet < IndexRange > indexRanges = indexRangeService . findAll ( ) ; \n \n - final List < String > removedIndices = new ArrayList < > ( ) ; \n + final Set < String > removedIndices = new HashSet < > ( ) ; \n for ( IndexRange indexRange : indexRanges ) { \n if ( ! indexNames . contains ( indexRange . indexName ( ) ) ) { \n removedIndices . add ( indexRange . indexName ( ) ) ;", "msg_token": "Fix compilation error in IndexRangesCleanupPeriodical"} {"diff": " public class CommandFailureException extends MongoException { \n this . commandResult = commandResult ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public CommandFailureException ( final CommandResult commandResult ) { \n + super ( ServerError . getCode ( commandResult ) , commandResult . toString ( ) ) ; \n + this . commandResult = commandResult ; \n + } \n + \n CommandFailureException ( final MongoCommandFailureException e ) { \n this ( new CommandResult ( e . getCommandResult ( ) ) , e . getMessage ( ) ) ; \n }", "msg_token": "Added back constructor to CommandFailureException that was removed in error"} {"diff": " public class TangentBinormalGenerator { \n } \n } \n \n + SINGLE \n + mesh . clearBuffer ( Type . Tangent ) ; \n mesh . setBuffer ( Type . Tangent , NUMBER0 , tangents ) ; \n SINGLE \n }", "msg_token": "TangentBinormalGenerator will replace the tangent buffer if it already exists on the mesh instead of crashing"} {"diff": " public class ContextHandlerCollection extends HandlerCollection \n @ override \n public void setHandlers ( Handler [ ] handlers ) \n { \n - _contexts = null ; \n super . setHandlers ( handlers ) ; \n if ( isStarted ( ) ) \n mapContexts ( ) ;", "msg_token": "Do not null context Trie during dynamic deploy"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class Lists { \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n public static < T > List < T > reverse ( List < T > list ) { \n if ( list instanceof ImmutableList ) { \n return ( ( ImmutableList < T > ) list ) . reverse ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class Lists { \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n public static < T > List < T > reverse ( List < T > list ) { \n if ( list instanceof ImmutableList ) { \n return ( ( ImmutableList < T > ) list ) . reverse ( ) ;", "msg_token": "Add CheckReturnValue to Lists reverse"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n else { \n socket = config . getSocketFactory ( ) . createSocket ( ) ; \n } \n + LOGGER . finer ( STRING0 + host + STRING1 + port ) ; \n try { \n socket . connect ( new InetSocketAddress ( host , port ) , config . getConnectTimeout ( ) ) ; \n } catch ( Exception e ) { \n exception = e ; \n } \n if ( exception == null ) { \n + LOGGER . finer ( STRING2 + host + STRING1 + port ) ; \n SINGLE \n this . host = host ; \n this . port = port ;", "msg_token": "Add log statements around socket connect of XMPPTCPConnection"} {"diff": " package NAMESPACE ; \n final class CompilerOptionsValidator { \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n static void validate ( CompilerOptions options ) { \n if ( options . checkMissingGetCssNameLevel . isOn ( ) &&", "msg_token": "Add author tag to CompilerOptionsValidator"} {"diff": " public class ProfilerEditingTargetWidget extends Composite \n private Toolbar createToolbar ( Commands commands ) \n { \n Toolbar toolbar = new EditingTargetToolbar ( commands ) ; \n - toolbar . addLeftSeparator ( ) ; \n - toolbar . addLeftWidget ( commands . startProfiler ( ) . createToolbarButton ( ) ) ; \n - toolbar . addLeftWidget ( commands . stopProfiler ( ) . createToolbarButton ( ) ) ; \n return toolbar ; \n }", "msg_token": "remove profiler buttons from toolbar"} {"diff": " public class MessageList \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private String mFolderName ;", "msg_token": "Remove a lie from a comment"} {"diff": " public abstract class AbstractByteBufferedInputChannel < T extends Record > extends \n COMMENT \n COMMENT \n COMMENT \n - if ( getType ( ) == ChannelType . NETWORK ) { \n + final ChannelType type = getType ( ) ; \n + if ( type == ChannelType . NETWORK || type == ChannelType . INMEMORY ) { \n transferEvent ( new ByteBufferedChannelCloseEvent ( ) ) ; \n } \n }", "msg_token": "Fixed bug concerning missing close ack for in memory channels"} {"diff": " public class BundleExporter { \n } \n \n final Stream streamDescription = new Stream ( ) ; \n + streamDescription . setId ( stream . getId ( ) ) ; \n streamDescription . setTitle ( stream . getTitle ( ) ) ; \n streamDescription . setDescription ( stream . getDescription ( ) ) ; \n streamDescription . setDisabled ( stream . getDisabled ( ) ) ;", "msg_token": "Include stream id on exported bundles"} {"diff": " public final class BlockId { \n \n private static final int CONTAINER_ID_BITS = NUMBER0 ; \n private static final int SEQUENCE_NUMBER_BITS = NUMBER1 - CONTAINER_ID_BITS ; \n - private static final long CONTAINER_ID_MASK = ( NUMBER2 < < CONTAINER_ID_BITS ) - NUMBER2 ; \n - private static final long SEQUENCE_NUMBER_MASK = ( NUMBER2 < < SEQUENCE_NUMBER_BITS ) - NUMBER2 ; \n + private static final long CONTAINER_ID_MASK = ( NUMBER3 < < CONTAINER_ID_BITS ) - NUMBER2 ; \n + private static final long SEQUENCE_NUMBER_MASK = ( NUMBER3 < < SEQUENCE_NUMBER_BITS ) - NUMBER2 ; \n \n private BlockId ( ) { \n SINGLE", "msg_token": "Fix blockID mask calculation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class WriteAheadLog {", "msg_token": "fix missing reference"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class ExceptionHandler implements HttpHandler { \n + public static final AttachmentKey < Throwable > THROWABLE = AttachmentKey . create ( Throwable . class ) ; \n + \n private final HttpHandler handler ; \n private final List < ExceptionHandlerHolder < ? > > exceptionHandlers = new CopyOnWriteArrayList < > ( ) ; \n \n public class ExceptionHandler implements HttpHandler { \n } catch ( Throwable throwable ) { \n for ( ExceptionHandlerHolder < ? > holder : exceptionHandlers ) { \n if ( holder . getClazz ( ) . isInstance ( throwable ) ) { \n + exchange . putAttachment ( THROWABLE , throwable ) ; \n holder . getHandler ( ) . handleRequest ( exchange ) ; \n return ; \n }", "msg_token": "Exception handler now adds the exception as an attachment to the exchange"} {"diff": " public class UriLoaderTest { \n \n verify ( urlLoader ) . getResourceFetcher ( eq ( new GlideUrl ( httpsUri . toString ( ) ) ) , eq ( IMAGE_SIDE ) , eq ( IMAGE_SIDE ) ) ; \n } \n + \n + SINGLE \n + @ test \n + public void testHandlesMostlyInvalidHttpUris ( ) { \n + Uri mostlyInvalidHttpUri = \n + Uri . parse ( STRING0 ) ; \n + \n + loader . getResourceFetcher ( mostlyInvalidHttpUri , IMAGE_SIDE , IMAGE_SIDE ) ; \n + verify ( urlLoader ) . getResourceFetcher ( eq ( new GlideUrl ( mostlyInvalidHttpUri . toString ( ) ) ) , eq ( IMAGE_SIDE ) , \n + eq ( IMAGE_SIDE ) ) ; \n + } \n }", "msg_token": "Add a test for a particular type of invalid uris"} {"diff": " public final class FileUtil { \n } \n \n Stack < String > stack = new Stack < String > ( ) ; \n - String [ ] parts = path . split ( File . separator ) ; \n + \n + String separatorRegex = File . separator ; \n + if ( FileUtil . isWindows ( ) ) { \n + separatorRegex = STRING0 ; \n + } \n + String [ ] parts = path . split ( separatorRegex ) ; \n for ( String part : parts ) { \n if ( part . equals ( STRING1 ) && ! stack . isEmpty ( ) ) { \n SINGLE", "msg_token": "Fixed the test error of FileUtilTest on Windows"} {"diff": " public abstract class AWSEmailNotifier implements MonkeyEmailNotifier { \n COMMENT \n private static final Logger LOGGER = LoggerFactory . getLogger ( AWSEmailNotifier . class ) ; \n private static final String EMAIL_PATTERN = \n - STRING0 \n + STRING1 \n + STRING2 ; \n \n private final Pattern emailPattern ;", "msg_token": "Email regex fix"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class RestSqlAction extends BaseRestHandler { \n \n @ inject", "msg_token": "Removed some unnecessary imports"} {"diff": " public final class LoginUser { \n } \n return userSet . iterator ( ) . next ( ) ; \n } catch ( LoginException e ) { \n - throw new IOException ( STRING0 + e ) ; \n + throw new IOException ( STRING0 + e . getMessage ( ) , e ) ; \n } \n }", "msg_token": "Also include e as the cause"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class StreamAlertService { \n private final ApiClient api ; \n public class StreamAlertService { \n public StreamAlertService ( ApiClient api ) { \n this . api = api ; \n } \n + \n + public AlertListSummary listPaginated ( String streamId , int skip , int limit ) throws APIException , IOException { \n + return api . path ( routes . StreamAlertResource ( ) . listPaginated ( streamId ) , AlertListSummary . class ) \n + . queryParam ( STRING0 , skip ) \n + . queryParam ( STRING1 , limit ) \n + . execute ( ) ; \n + } \n }", "msg_token": "Adding StreamAlertService which retrieves alerts for streams"} {"diff": " public class WebSocketServletRFCTest \n \n Assert . assertThat ( STRING0 , respHeader , startsWith ( STRING1 ) ) ; \n Assert . assertThat ( STRING2 , respHeader , containsString ( STRING3 ) ) ; \n - SINGLE \n + Assert . assertThat ( STRING4 , respHeader , containsString ( STRING5 ) ) ; \n \n SINGLE \n TextFrame txt = new TextFrame ( STRING6 ) ; \n public class WebSocketServletRFCTest \n BufferUtil . writeTo ( txtbuf , out ) ; \n \n SINGLE \n - ByteBuffer closeFrame = ByteBuffer . allocate ( NUMBER0 ) ; \n - System . out . println ( STRING7 ) ; \n - read ( in , closeFrame ) ; \n + ByteBuffer rbuf = ByteBuffer . allocate ( NUMBER0 ) ; \n + read ( in , rbuf ) ; \n \n SINGLE \n - parser . parse ( closeFrame ) ; \n + rbuf . flip ( ) ; \n + parser . parse ( rbuf ) ; \n \n + SINGLE \n capture . assertNoErrors ( ) ; \n capture . assertHasFrame ( CloseFrame . class , NUMBER1 ) ;", "msg_token": "Upgrade response header does its thing re enabling test for it in websocket"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n try { \n sc . getServletContext ( ) . addListener ( SessionSupport . class ) ; \n } catch ( Throwable t ) { \n - logger . error ( STRING0 , t ) ; \n - logger . debug ( STRING1 , SessionSupport . class . getName ( ) ) ; \n + logger . warn ( STRING2 , SessionSupport . class . getName ( ) , t ) ; \n } \n } else { \n logger . debug ( STRING1 , SessionSupport . class . getName ( ) ) ;", "msg_token": "Improve error message"} {"diff": " public class DescriptiveMessagesWhenVerificationFailsTest extends TestBase { \n \n @ test \n public void shouldPrintNullArguments ( ) throws Exception { \n - mock . simpleMethod ( null , null ) ; \n + mock . simpleMethod ( null , ( Integer ) null ) ; \n try { \n verify ( mock ) . simpleMethod ( STRING0 ) ; \n fail ( ) ;", "msg_token": "added a unit test to complete a functional test fixing build"} {"diff": " public class MovieDetailsFragment extends SherlockFragment { \n mMovieTitle . setText ( tmdbMovie . title ) ; \n mMovieDescription . setText ( tmdbMovie . overview ) ; \n \n - SINGLE \n + SINGLE \n + StringBuilder releaseAndRuntime = new StringBuilder ( ) ; \n if ( traktMovie . released != null && traktMovie . released . getTime ( ) != NUMBER0 ) { \n - mMovieReleaseDate . setText ( \n - DateUtils . formatDateTime ( getActivity ( ) , traktMovie . released . getTime ( ) , \n - DateUtils . FORMAT_SHOW_DATE ) ) ; \n - } else { \n - mMovieReleaseDate . setText ( STRING0 ) ; \n + releaseAndRuntime . append ( DateUtils . formatDateTime ( getActivity ( ) , \n + traktMovie . released . getTime ( ) , DateUtils . FORMAT_SHOW_DATE ) ) ; \n + releaseAndRuntime . append ( STRING1 ) ; \n } \n + releaseAndRuntime . append ( getString ( R . string . runtime_minutes , tmdbMovie . runtime ) ) ; \n + mMovieReleaseDate . setText ( releaseAndRuntime . toString ( ) ) ; \n \n SINGLE \n CheatSheet . setup ( mCheckinButton ) ;", "msg_token": "Display movie runtime"} {"diff": " \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 \n package NAMESPACE ;", "msg_token": "Remove license duplicate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AssetKey < T > implements Savable , Cloneable { \n if ( list . size ( ) > NUMBER0 ) { \n list . removeLast ( ) ; \n } else { \n - throw new IllegalStateException ( STRING0 ) ; \n + Logger . getLogger ( AssetKey . class . getName ( ) ) . log ( Level . SEVERE , STRING1 ) ; \n } \n } else { \n list . add ( string ) ;", "msg_token": "make AssetKey log SEVERE on relative path outside root"} {"diff": " public class TransformFactory { \n result = new DeleteFloatFeatureTransform ( ) ; \n break ; \n } \n + case STRING0 : { \n + result = new DeleteFloatFeatureFamilyTransform ( ) ; \n + break ; \n + } \n case STRING1 : { \n result = new DeleteStringFeatureTransform ( ) ; \n break ; \n public class TransformFactory { \n result = new DeleteStringFeatureColumnTransform ( ) ; \n break ; \n } \n - case STRING0 : { \n - result = new DeleteFloatFeatureFamilyTransform ( ) ; \n - break ; \n - } \n case STRING2 : { \n result = new NormalizeFloatFeatureTransform ( ) ; \n break ; \n package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "remove unused line"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProfileInputDialogFragment extends DialogFragment { \n return alertDialogBuilder . create ( ) ; \n } \n \n + @ override \n + public void onStart ( ) { \n + super . onStart ( ) ; \n + AlertDialog dialog = ( AlertDialog ) getDialog ( ) ; \n + Button positive = dialog . getButton ( DialogInterface . BUTTON_POSITIVE ) ; \n + Button negative = dialog . getButton ( DialogInterface . BUTTON_NEGATIVE ) ; \n + if ( positive != null ) WPPrefUtils . layoutAsFlatButton ( positive ) ; \n + if ( negative != null ) WPPrefUtils . layoutAsFlatButton ( negative ) ; \n + } \n + \n public interface Callback { \n void onSuccessfulInput ( String input , int callbackId ) ; \n }", "msg_token": "Change the button style for my profile dialogs"} {"diff": " public class OJSONWriter { \n this . prettyPrint = prettyPrint ; \n return this ; \n } \n + \n + public void write ( final String iText ) throws IOException { \n + out . append ( iText ) ; \n + } \n }", "msg_token": "New write api to write dirty values in JSON"} {"diff": " public class TaskListActivity extends AstridActivity implements MainMenuListener \n public static final String OPEN_TASK = STRING0 ; SINGLE \n \n private static final String FILTER_MODE = STRING1 ; SINGLE \n + \n private static final int FILTER_MODE_NORMAL = NUMBER0 ; \n private static final int FILTER_MODE_PEOPLE = NUMBER1 ; \n private static final int FILTER_MODE_FEATURED = NUMBER2 ; \n public class TaskListActivity extends AstridActivity implements MainMenuListener \n } \n } \n \n + @ override \n + protected Bundle configureIntentAndExtrasWithFilter ( Intent intent , \n + Filter filter ) { \n + Bundle extras = super . configureIntentAndExtrasWithFilter ( intent , filter ) ; \n + getIntent ( ) . putExtra ( FILTER_MODE , filterMode ) ; \n + return extras ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a bug with saving filterMode between rotations"} {"diff": " public class Attribute < T > { \n public static < T > Attribute < T > named ( String name ) { \n return new Attribute < > ( name ) ; \n } \n + \n + public static < T > Attribute < T > of ( Map . Entry < String , T > attr ) { \n + return new Attribute < > ( attr . getKey ( ) ) ; \n + } \n \n private final String name ;", "msg_token": "Add capsule util Attribute of Entry"} {"diff": " public class RewritePolyfills implements HotSwapCompilerPass { \n SINGLE \n SINGLE \n \n - SINGLE \n - . addClasses ( ES6_IMPL , ES6_IMPL , STRING0 , STRING1 , STRING2 ) \n + SINGLE \n + . addClasses ( ES6_IMPL , ES3 , STRING3 , STRING1 , STRING2 ) \n SINGLE \n . addStatics ( ES6_IMPL , ES6_IMPL , STRING0 , STRING4 , \n STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 ,", "msg_token": "Add polyfills for Map and Set"} {"diff": " public class WebSocketProcessor implements Serializable { \n \n webSocketProtocol . onOpen ( webSocket ) ; \n \n - if ( webSocket . resource ( ) . getAtmosphereResourceEvent ( ) . isSuspended ( ) ) { \n + if ( ! webSocket . resource ( ) . getAtmosphereResourceEvent ( ) . isSuspended ( ) ) { \n webSocketProtocol . onError ( webSocket , new WebSocketException ( STRING0 , wsr ) ) ; \n } \n }", "msg_token": "Fix stupid typo"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class CodeMirrorEditor extends Composite \n for ( Command c : deferredCommands_ ) \n c . execute ( ) ; \n deferredCommands_ . clear ( ) ; \n + \n + Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) \n + { \n + public void execute ( ) \n + { \n + updateBodyMinHeight ( ) ; \n + } \n + } ) ; \n } \n \n public HandlerRegistration addEditorFocusedHandler ( EditorFocusedHandler h )", "msg_token": "Improve robustness of code mirror min body height updating code"} {"diff": " public class ClassLoaderObjectInputStream extends ObjectInputStream { \n @ override \n protected Class < ? > resolveClass ( ObjectStreamClass desc ) throws IOException , ClassNotFoundException { \n try { \n - return Class . forName ( desc . getName ( ) , true , loader ) ; \n + return Class . forName ( desc . getName ( ) , false , loader ) ; \n } catch ( ClassNotFoundException e ) { \n return super . resolveClass ( desc ) ; \n }", "msg_token": "change initialize false for Class forName call"} {"diff": " static public int nextID ( ) { \n return id . getAndIncrement ( ) ; \n } \n \n + SINGLE \n + public static void loadLibrary ( String libname ) { \n + System . loadLibrary ( libname ) ; \n + } \n + \n \n SINGLE", "msg_token": "Add a static method loadLibrary to clojure lang RT to load a library using the System ClassLoader"} {"diff": " public class AccountActivity extends BasePhilmActivity { \n COMMENT \n protected void onCreate ( Bundle icicle ) { \n super . onCreate ( icicle ) ; \n + setContentView ( R . layout . activity_main ) ; \n \n mAccountAuthenticatorResponse = \n getIntent ( ) . getParcelableExtra ( AccountManager . KEY_ACCOUNT_AUTHENTICATOR_RESPONSE ) ;", "msg_token": "Fix crash in login activity"} {"diff": " public class SchemaGenerator { \n List < Class > domainClasses = getDomainClasses ( ) ; \n for ( Class domain : domainClasses ) { \n createTable ( domain , sqLiteDatabase ) ; \n + afterTableCreated ( domain , sqLiteDatabase ) ; \n } \n + \n + } \n + \n + public void afterTableCreated ( Class < ? > table , SQLiteDatabase sqLiteDatabase ) { \n + executeScript ( sqLiteDatabase , table . getSimpleName ( ) + STRING0 ) ; \n } \n \n public void doUpgrade ( SQLiteDatabase sqLiteDatabase , int oldVersion , int newVersion ) {", "msg_token": "add method afterTableCreated that executes a sql file with the name of the domain class"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n public final class ErrorCode \n { \n private final int code ; \n public final class ErrorCode \n @ jsoncreator \n public ErrorCode ( @ jsonproperty ( STRING0 ) int code , @ jsonproperty ( STRING1 ) String name ) \n { \n + if ( code < NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING2 ) ; \n + } \n this . code = code ; \n - this . name = name ; \n + this . name = requireNonNull ( name , STRING3 ) ; \n } \n \n @ jsonproperty \n public final class ErrorCode \n { \n return name ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return name + STRING4 + code ; \n + } \n }", "msg_token": "Add validation to ErrorCode"} {"diff": " public class TripleLoaderTransposedNodeFactory implements TransposedNodeFactory \n String subject , Project project , \n int subjectRowIndex , int subjectCellIndex , Cell subjectCell ) { \n \n - Recon recon = subjectCell . recon != null && \n + Recon recon = subjectCell != null && subjectCell . recon != null && \n ( subjectCell . recon . judgment == Judgment . Matched || subjectCell . recon . judgment == Judgment . New ) \n ? subjectCell . recon : null ;", "msg_token": "Fixed minor bug introduced by recent check in for asserting types in triple loader payload"} {"diff": " public class CythonParsingTest extends ParsingTestCase { \n doTest ( ) ; \n } \n \n + public void testEnums ( ) { \n + doTest ( ) ; \n + } \n + \n public void doTest ( ) { \n doTest ( true ) ; \n }", "msg_token": "Added parsing of Cython enums"} {"diff": " public class ShadowApplication extends ShadowContextWrapper { \n this . context = context ; \n exception = new Throwable ( ) ; \n } \n + \n + public BroadcastReceiver getBroadcastReceiver ( ) { \n + return broadcastReceiver ; \n + } \n + \n + public IntentFilter getIntentFilter ( ) { \n + return intentFilter ; \n + } \n + \n + public Context getContext ( ) { \n + return context ; \n + } \n } \n }", "msg_token": "Add accessors for Wrapper"} {"diff": " public class OneWireRefreshService extends Thread implements ManagedService { \n private static long refreshInterval = NUMBER0 ; \n \n \n + public OneWireRefreshService ( ) { \n + super ( STRING0 ) ; \n + } \n + \n + \n public void activate ( ) { \n }", "msg_token": "onewire refresh service got a name now"} {"diff": " class TwitterRestClientUsage { \n JSONArray timeline = ( JSONArray ) response ; \n \n try { \n - JSONObject firstEvent = timeline . get ( NUMBER0 ) ; \n + JSONObject firstEvent = ( JSONObject ) timeline . get ( NUMBER0 ) ; \n String tweetText = firstEvent . getString ( STRING0 ) ; \n \n SINGLE", "msg_token": "Fix example usage"} {"diff": " public class AgentInfoSenderTest { \n public static final int PORT = SocketUtils . findAvailableTcpPort ( NUMBER0 ) ; \n public static final String HOST = STRING0 ; \n \n - private final TestAwaitUtils awaitUtils = new TestAwaitUtils ( NUMBER1 , NUMBER2 ) ; \n + private final int testAwaitTimeMs = NUMBER3 ; \n + \n + private final TestAwaitUtils awaitUtils = new TestAwaitUtils ( this . testAwaitTimeMs , NUMBER2 ) ; \n \n @ test \n public void agentInfoShouldBeSent ( ) throws InterruptedException { \n public class AgentInfoSenderTest { \n @ override \n public boolean checkCompleted ( ) { \n return requestCount . get ( ) == expectedRequestCount ; \n - } ; \n + } \n } ) ; \n \n Assert . assertTrue ( pass ) ;", "msg_token": "Fix test for cases where multiple requests may be counted per check"} {"diff": " public class GroovyAnnotator implements Annotator { \n GrExpression lValue = assignment . getLValue ( ) ; \n GrExpression rValue = assignment . getRValue ( ) ; \n if ( rValue != null ) { \n - PsiType lType = lValue . getType ( ) ; \n + PsiType lType = lValue . getNominalType ( ) ; \n PsiType rType = rValue . getType ( ) ; \n if ( lType != null && rType != null ) { \n checkAssignability ( holder , lType , rType , rValue ) ;", "msg_token": "should use nominal type in assignability check"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ResourceDatabasePopulator implements DatabasePopulator { \n COMMENT \n COMMENT \n COMMENT \n - public void setScripts ( Resource [ ] scripts ) { \n + public void setScripts ( Resource . . . scripts ) { \n this . scripts = Arrays . asList ( scripts ) ; \n }", "msg_token": "ResourceDatabasePopulator s setScripts takes varargs"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class GitTestRunEnv { \n } \n } \n \n + log ( STRING0 ) ; \n + final Map < String , String > env = System . getenv ( ) ; \n + for ( Map . Entry < String , String > entry : env . entrySet ( ) ) { \n + log ( entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n + } \n + log ( STRING2 ) ; \n + log ( STRING3 ) ; \n + Properties properties = System . getProperties ( ) ; \n + for ( Map . Entry < Object , Object > entry : properties . entrySet ( ) ) { \n + log ( entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n + } \n + \n throw new IllegalStateException ( STRING4 + \n STRING5 ) ; \n }", "msg_token": "Inspect test environment on fucking Mac agent"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class CvsConfigurationsListEditor extends DialogWrapper implements DataPr \n return null ; \n } \n \n + protected void doHelpAction ( ) { \n + HelpManager . getInstance ( ) . invokeHelp ( STRING0 ) ; \n + } \n + \n protected Action [ ] createActions ( ) { \n return new Action [ ] { getOKAction ( ) , getCancelAction ( ) , getHelpAction ( ) } ; \n }", "msg_token": "Configure CVS Roots help button"} {"diff": " public enum CommonClientConfigKey implements IClientConfigKey { \n Version ( STRING0 ) , \n Port ( STRING1 ) , \n SecurePort ( STRING2 ) , \n + ForcePortConfig ( STRING3 ) , SINGLE \n VipAddress ( STRING4 ) , \n DeploymentContextBasedVipAddresses ( STRING5 ) , \n MaxAutoRetries ( STRING6 ) ,", "msg_token": "Add parameter to force client config of port"} {"diff": " public class AHBottomNavigation extends FrameLayout { \n setClipToPadding ( false ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setUseElevation ( boolean useElevation , float elevation ) { \n + ViewCompat . setElevation ( this , useElevation ? elevation : NUMBER0 ) ; \n + setClipToPadding ( false ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added a custom elevation method"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class TrayModulePreferences extends TrayPreference { \n \n - private final Context mContext ; \n - \n public TrayModulePreferences ( final Context context , final String module , final int version ) { \n super ( new TrayStorage ( context , module ) , version ) ; \n - mContext = context . getApplicationContext ( ) ; \n } \n \n protected Context getContext ( ) { \n - return mContext ; \n + return ( ( TrayStorage ) getStorage ( ) ) . getContext ( ) ; \n } \n } \n public class TrayStorage extends ModularizedStorage < TrayItem > { \n mProviderHelper = new TrayProviderHelper ( mContext ) ; \n } \n \n + public Context getContext ( ) { \n + return mContext ; \n + } \n + \n @ override \n public void clear ( ) { \n final Uri uri = mProviderHelper . getUri ( ) . buildUpon ( ) . appendPath ( getModuleName ( ) )", "msg_token": "changed getContext to return a context when onCreate is called"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class JBTextField extends JTextField implements ComponentWithEmptyText { \n private StatusText myEmptyText ; \n public class JBTextField extends JTextField implements ComponentWithEmptyText { \n } \n } ; \n myEmptyText . clear ( ) ; \n + addFocusListener ( new FocusListener ( ) { \n + @ override \n + public void focusGained ( FocusEvent e ) { \n + repaint ( ) ; \n + } \n + \n + @ override \n + public void focusLost ( FocusEvent e ) { \n + repaint ( ) ; \n + } \n + } ) ; \n } \n \n @ notnull", "msg_token": "Empty text rendering fix"} {"diff": " public class DatePicker extends FrameLayout { \n mMonthPicker . setFormatter ( NumberPicker . TWO_DIGIT_FORMATTER ) ; \n DateFormatSymbols dfs = new DateFormatSymbols ( ) ; \n String [ ] months = dfs . getShortMonths ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + if ( months [ NUMBER0 ] . startsWith ( STRING0 ) ) { \n + for ( int i = NUMBER0 ; i < months . length ; i ++ ) { \n + months [ i ] = String . valueOf ( i + NUMBER1 ) ; \n + } \n + } \n + \n mMonthPicker . setRange ( NUMBER1 , NUMBER2 , months ) ; \n mMonthPicker . setSpeed ( NUMBER3 ) ; \n mMonthPicker . setOnChangeListener ( new OnChangedListener ( ) {", "msg_token": "Make the Date Picker fields more consistent in locales with numeric months"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix rebase problems"} {"diff": " public class BitcoinSerializer { \n \n SINGLE \n SINGLE \n - int mark = cursor ; \n - for ( ; header [ cursor ] != NUMBER0 && cursor - mark < COMMAND_LEN ; cursor ++ ) ; \n - byte [ ] commandBytes = new byte [ cursor - mark ] ; \n - System . arraycopy ( header , mark , commandBytes , NUMBER0 , cursor - mark ) ; \n + for ( ; header [ cursor ] != NUMBER0 && cursor < COMMAND_LEN ; cursor ++ ) ; \n + byte [ ] commandBytes = new byte [ cursor ] ; \n + System . arraycopy ( header , NUMBER0 , commandBytes , NUMBER0 , cursor ) ; \n try { \n command = new String ( commandBytes , STRING0 ) ; \n } catch ( UnsupportedEncodingException e ) { \n throw new RuntimeException ( e ) ; SINGLE \n } \n - cursor = mark + COMMAND_LEN ; \n + cursor = COMMAND_LEN ; \n \n size = ( int ) readUint32 ( header , cursor ) ; \n cursor += NUMBER1 ;", "msg_token": "mark didn t really make a mark"} {"diff": " class ImapFolderPusher extends ImapFolder implements UntaggedHandler { \n } else { \n if ( response . getTag ( ) == null ) { \n if ( response . size ( ) > NUMBER0 ) { \n - boolean started = false ; \n - \n Object responseType = response . get ( NUMBER0 ) ; \n if ( equalsIgnoreCase ( responseType , STRING0 ) || equalsIgnoreCase ( responseType , STRING1 ) || \n equalsIgnoreCase ( responseType , STRING2 ) ) { \n \n - if ( ! started ) { \n - wakeLock . acquire ( PUSH_WAKE_LOCK_TIMEOUT ) ; \n - started = true ; \n - } \n + wakeLock . acquire ( PUSH_WAKE_LOCK_TIMEOUT ) ; \n \n if ( K9MailLib . isDebug ( ) ) { \n Log . d ( LOG_TAG , STRING3 + response + STRING4 + getLogId ( ) ) ;", "msg_token": "Remove unnecessary local variable"} {"diff": " public final class NetworkImage extends ZLSingleImage { \n ext = path . substring ( j ) ; \n path . delete ( j , path . length ( ) ) ; \n } else { \n - return null ; \n + ext = STRING0 ; \n } \n } else if ( path . length ( ) > ext . length ( ) && path . substring ( path . length ( ) - ext . length ( ) ) . equals ( ext ) ) { \n path . delete ( path . length ( ) - ext . length ( ) , path . length ( ) ) ;", "msg_token": "smashwords covers fix"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ImageBasedHeightMap extends AbstractHeightMap implements ImageHeigh \n } \n \n protected ImageRaster getImageRaster ( ) { \n - return new DefaultImageRaster ( colorImage , NUMBER0 ) ; \n + return JmeSystem . createImageRaster ( colorImage , NUMBER0 ) ; \n } \n \n public boolean load ( boolean flipX , boolean flipY ) {", "msg_token": "changed ImageBasedHeightMap to use JmeSystem to get ImageRaster"} {"diff": " public class ReaderCommentListActivity extends AppCompatActivity { \n mCommentId = NUMBER0 ; \n break ; \n case COMMENT_REPLY : \n - setReplyToCommentId ( mCommentId , true ) ; \n + setReplyToCommentId ( mCommentId , ! ReaderUtils . isLoggedOutReader ( ) ) ; \n \n SINGLE \n mDirectOperation = null ;", "msg_token": "Don t pull up keyboard to repond if logged out"} {"diff": " public abstract class ZWaveCommandClass { \n ZIP_SERVER ( NUMBER0 , STRING0 , null ) , \n SWITCH_BINARY ( NUMBER1 , STRING1 , ZWaveBinarySwitchCommandClass . class ) , \n SWITCH_MULTILEVEL ( NUMBER2 , STRING2 , ZWaveMultiLevelSwitchCommandClass . class ) , \n - SWITCH_ALL ( NUMBER3 , STRING3 , null ) , \n + SWITCH_ALL ( NUMBER3 , STRING3 , ZWaveSwithcAllCommandClass . class ) , \n SWITCH_TOGGLE_BINARY ( NUMBER4 , STRING4 , null ) , \n SWITCH_TOGGLE_MULTILEVEL ( NUMBER5 , STRING5 , null ) , \n CHIMNEY_FAN ( NUMBER6 , STRING6 , null ) ,", "msg_token": "Add mapping to the SwithAllCommandClass"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Licensed source files"} {"diff": " public class SinglePageItemRecyclerViewAdapter \n } \n \n private void toggleKids ( ToggleItemViewHolder holder , final ItemManager . Item item ) { \n + holder . mToggle . setVisibility ( item . getKidCount ( ) > NUMBER0 ? View . VISIBLE : View . GONE ) ; \n if ( item . getKidCount ( ) == NUMBER0 ) { \n return ; \n } \n - holder . mToggle . setVisibility ( View . VISIBLE ) ; \n if ( ! item . isCollapsed ( ) && mAutoExpand ) { \n expand ( item ) ; \n }", "msg_token": "Hide toggle if no kids"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public interface ByteBufferPool \n public ByteBuffer acquire ( int capacity , boolean direct ) \n { \n ByteBuffer buffer = byteBufferPool . acquire ( capacity , direct ) ; \n + BufferUtil . clearToFill ( buffer ) ; \n append ( buffer , true ) ; \n return buffer ; \n }", "msg_token": "Clearing the buffer before returning it"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class TablePipe < S > extends AbstractPipe < S , S > implements SideEffectPipe < S , S , Table > { \n + public class TablePipe < S > extends AbstractPipe < S , S > implements SideEffectPipe < S , Table > { \n \n private Table table ; \n private final Closure [ ] closures ;", "msg_token": "updated TablePipe to be respective of SideEffectPipe interface generic change in Pipes"} {"diff": " public class ProjectBuildFileParser implements AutoCloseable { \n LOG . verbose ( STRING0 , values ) ; \n LOG . debug ( STRING1 , values . size ( ) ) ; \n profile = resultObject . getProfile ( ) ; \n + if ( profile != null ) { \n + LOG . debug ( STRING2 , profile ) ; \n + } \n return values ; \n } finally { \n buckEventBus . post ( ParseBuckFileEvent . finished ( parseBuckFileStarted , values , profile ) ) ;", "msg_token": "Log result of buck py profile"} {"diff": " public final class ClipboardHelpers { \n \n try { \n return ( String ) contents . getTransferData ( DataFlavor . stringFlavor ) ; \n - } catch ( final UnsupportedFlavorException | IOException ex ) { \n + } catch ( UnsupportedFlavorException | IOException ex ) { \n SINGLE \n }", "msg_token": "Exclude unnecessary final key word"} {"diff": " public class GrizzlyServer { \n httpServer . getServerConfiguration ( ) . addHttpHandler ( new StaticHttpHandler ( STRING0 ) , STRING1 ) ; \n \n try { \n - httpServer . start ( ) ; \n + SINGLE \n System . out . println ( STRING2 + base_uri ) ; \n System . out . println ( STRING3 + base_uri + STRING4 ) ; \n System . out . println ( STRING5 + base_uri + STRING6 ) ;", "msg_token": "comment out redundant server startup"} {"diff": " public class WikipediaQuickCheck { \n final URL url = new URL ( urlString ) ; \n final String mediaWikiContent = check . getMediaWikiContent ( url ) ; \n final String plainText = check . getPlainText ( mediaWikiContent ) ; \n - final WikipediaQuickCheckResult checkResult = check . checkPage ( plainText , new German ( ) ) ; \n + final Language lang = check . getLanguage ( url ) ; \n + final WikipediaQuickCheckResult checkResult = check . checkPage ( plainText , lang ) ; \n final ContextTools contextTools = new ContextTools ( ) ; \n contextTools . setContextSize ( CONTEXT_SIZE ) ; \n for ( RuleMatch ruleMatch : checkResult . getRuleMatches ( ) ) {", "msg_token": "use the language from the URL not German"} {"diff": " public class ReaderVideoViewerActivity extends AppCompatActivity { \n } \n \n @ override \n + protected void onDestroy ( ) { \n + mWebView . onPause ( ) ; \n + super . onDestroy ( ) ; \n + } \n + \n + @ override \n public void onSaveInstanceState ( @ nonnull Bundle outState ) { \n outState . putString ( ReaderConstants . ARG_VIDEO_URL , mVideoUrl ) ; \n mWebView . saveState ( outState ) ;", "msg_token": "Stop video when activity destroyed"} {"diff": " public final class SqaleRatingDecorator implements Decorator { \n } \n \n protected double computeDensity ( double debt , double developmentCost ) { \n - if ( developmentCost != FLOAT0 ) { \n + if ( Double . doubleToRawLongBits ( developmentCost ) != NUMBER0 L ) { \n return debt / developmentCost ; \n } \n return FLOAT0 ;", "msg_token": "Fix quality flaw"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove remove import"} {"diff": " public class ContainerUtil extends ContainerUtilRt { \n \n @ notnull \n public static < T > Collection < T > subtract ( @ notnull Collection < T > from , @ notnull Collection < T > what ) { \n - final Set < T > set = newHashSet ( ) ; \n + final Set < T > set = newHashSet ( from ) ; \n set . removeAll ( what ) ; \n return set ; \n }", "msg_token": "Fix the typo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SecurityFilterAutoConfiguration { \n @ bean \n @ conditionalonbean ( name = DEFAULT_FILTER_NAME ) \n public DelegatingFilterProxyRegistrationBean securityFilterChainRegistration ( \n - ApplicationContext applicationContext , \n SecurityProperties securityProperties ) { \n DelegatingFilterProxyRegistrationBean registration = new DelegatingFilterProxyRegistrationBean ( \n DEFAULT_FILTER_NAME ) ;", "msg_token": "Remove unused parameter in Security configuration"} {"diff": " public class GBMTest extends TestUtil { \n } \n } \n \n + @ ignore \n @ test \n public void testStochasticGBM ( ) { \n Frame tfr = null , vfr = null ;", "msg_token": "Ignore stochastic GBM JUnit for now"} {"diff": " import NAMESPACE ; \n public class StatefulComponentInstanceInterceptor extends AbstractEJBInterceptor { \n private static final Logger log = Logger . getLogger ( StatefulComponentInstanceInterceptor . class ) ; \n \n - private AtomicReference < Serializable > sessionIdReference ; \n + private final AtomicReference < Serializable > sessionIdReference ; \n \n public StatefulComponentInstanceInterceptor ( AtomicReference < Serializable > sessionIdReference ) { \n this . sessionIdReference = sessionIdReference ; \n public class StatefulComponentSessionIdGeneratingInterceptorFactory implements I \n \n private class StatefulComponentSessionIdGeneratingInterceptor implements Interceptor { \n \n - private AtomicReference < Serializable > sessionIdReference ; \n + final private AtomicReference < Serializable > sessionIdReference ; \n \n StatefulComponentSessionIdGeneratingInterceptor ( AtomicReference < Serializable > sessionIdReference ) { \n this . sessionIdReference = sessionIdReference ;", "msg_token": "Make the AtomicReference s final"} {"diff": " public class NetworkManagementService extends INetworkManagementService . Stub \n mContext . enforceCallingOrSelfPermission ( CONNECTIVITY_INTERNAL , TAG ) ; \n try { \n wifiFirmwareReload ( wlanIface , STRING0 ) ; \n - mConnector . execute ( STRING1 , STRING2 , wlanIface ) ; \n if ( wifiConfig == null ) { \n mConnector . execute ( STRING1 , STRING3 , wlanIface , softapIface ) ; \n } else {", "msg_token": "Fix softap start"} {"diff": " public class ChooserActivity extends ResolverActivity { \n \n final ChooserTargetServiceConnection conn = \n new ChooserTargetServiceConnection ( this , dri ) ; \n - if ( bindServiceAsUser ( serviceIntent , conn , BIND_AUTO_CREATE | BIND_NOT_FOREGROUND , \n - UserHandle . CURRENT ) ) { \n + if ( bindService ( serviceIntent , conn , BIND_AUTO_CREATE | BIND_NOT_FOREGROUND ) ) { \n if ( DEBUG ) { \n Log . d ( TAG , STRING0 + dri \n + STRING1 + serviceIntent ) ;", "msg_token": "Don t bind ChooserTargetServices as user CURRENT"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SlidingMenuFragment extends ListFragment { \n SINGLE \n if ( getActivity ( ) instanceof BaseActivity ) { \n final BaseActivity activity = ( BaseActivity ) getActivity ( ) ; \n - activity . getMenu ( ) . closeMenu ( false ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + Handler h = new Handler ( ) ; \n + h . postDelayed ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + activity . getMenu ( ) . closeMenu ( ) ; \n + } \n + } , NUMBER0 ) ; \n } \n \n int itemId = ( ( MenuItem ) mAdapter . getItem ( position ) ) . mId ;", "msg_token": "Animate closing menu again"} {"diff": " public abstract class AbstractTestQueries \n computeActual ( STRING0 ) ; \n } \n \n - @ test ( expectedExceptions = RuntimeException . class , expectedExceptionsMessageRegExp = STRING1 ) \n + @ test ( expectedExceptions = RuntimeException . class , expectedExceptionsMessageRegExp = STRING2 ) \n public void testInvalidTypeInfixOperator ( ) \n { \n SINGLE \n public class TestProcedureCall \n assertCallFails ( STRING3 , STRING4 ) ; \n assertCallFails ( STRING5 , STRING6 ) ; \n assertCallFails ( STRING7 , STRING8 ) ; \n - assertCallFails ( STRING9 , STRING10 ) ; \n + assertCallFails ( STRING9 , STRING11 ) ; \n } \n \n private void assertCall ( @ language ( STRING12 ) String sql , String name , Object . . . arguments )", "msg_token": "Fix varchar type in test error messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PhoneStatusBar extends BaseStatusBar implements DemoMode , \n } \n \n private void runPostCollapseRunnables ( ) { \n - int size = mPostCollapseRunnables . size ( ) ; \n + ArrayList < Runnable > clonedList = new ArrayList < > ( mPostCollapseRunnables ) ; \n + mPostCollapseRunnables . clear ( ) ; \n + int size = clonedList . size ( ) ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n - mPostCollapseRunnables . get ( i ) . run ( ) ; \n + clonedList . get ( i ) . run ( ) ; \n } \n - mPostCollapseRunnables . clear ( ) ; \n + \n } \n \n Animator mScrollViewAnim , mClearButtonAnim ;", "msg_token": "Fixed a bug where collapserunnables where dropped"} {"diff": " OnSslUntrustedCertListener , OnEnforceableRefreshListener { \n cursor . getColumnIndex ( OpenableColumns . DISPLAY_NAME ) ) ; \n Log . i ( TAG , STRING0 + displayName + STRING1 + mimeType ) ; \n \n + displayName . replace ( File . separatorChar , STRING2 ) ; \n + displayName . replace ( File . pathSeparatorChar , STRING2 ) ; \n remotepath += displayName + DisplayUtils . getComposedFileExtension ( filepath ) ; \n \n }", "msg_token": "Fix failed uploads when display name of file brough from external apps includes separator or path separator characters"} {"diff": " public class ReaderWebView extends WebView { \n \n mCustomView = null ; \n mCustomViewCallback = null ; \n - \n - mReaderWebView . onPause ( ) ; \n } \n \n boolean isCustomViewShowing ( ) {", "msg_token": "Remove redundant onPause from ReaderWebView when hiding view"} {"diff": " public class MutableInt extends Number implements Comparable < Number > { \n public int v ; \n \n public MutableInt ( int v ) { this . v = v ; } \n + \n + @ override \n + public boolean equals ( Object o ) { \n + if ( o instanceof Number ) return v == ( ( Number ) o ) . intValue ( ) ; \n + return false ; \n + } \n + \n + @ override public int hashCode ( ) { return v ; } \n + \n @ override public int compareTo ( Number o ) { return v - o . intValue ( ) ; } \n @ override public int intValue ( ) { return v ; } \n @ override public long longValue ( ) { return v ; }", "msg_token": "defined compareTo but not equals hash Coverity"} {"diff": " public class ExasolScript extends ExasolObject < DBSObject > implements DBSProcedur \n } \n \n @ notnull \n - @ property ( viewable = false , order = NUMBER0 ) \n + @ property ( hidden = true ) \n public String getSql ( ) { \n return this . scriptSQL ; \n }", "msg_token": "Hide SQL Text Field is show in DDL"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n @ notthreadsafe \n public interface AnimatedFactory { \n public interface AnimatedFactory { \n AnimatedDrawableFactory getAnimatedDrawableFactory ( Context context ) ; \n \n AnimatedImageFactory getAnimatedImageFactory ( ) ; \n - \n }", "msg_token": "Removed unused imports for AnimatedFactory"} {"diff": " public class PyPackageManagementService extends PackageManagementService { \n @ override \n public List < RepoPackage > getAllPackages ( ) throws IOException { \n List < RepoPackage > packages = new ArrayList < RepoPackage > ( ) ; \n - final Collection < String > packageNames = PyPIPackageUtil . INSTANCE . getPackageNames ( ) ; \n + final Collection < String > packageNames ; \n + try { \n + packageNames = PyPIPackageUtil . INSTANCE . getPackageNames ( ) ; \n + } \n + catch ( IOException e ) { \n + throw new IOException ( STRING0 + e . getMessage ( ) + STRING1 ) ; \n + } \n final boolean customRepoConfigured = ! PyPackageService . getInstance ( ) . additionalRepositories . isEmpty ( ) ; \n String url = customRepoConfigured ? PyPIPackageUtil . PYPI_URL : STRING2 ; \n for ( String name : packageNames ) {", "msg_token": "remove python specific diagnostics from general manage packages dialog"} {"diff": " public class LocalExecutionPlanner \n Iterables . getOnlyElement ( getChannelsForSymbols ( groupBySymbols , source . getLayout ( ) ) ) , \n node . getStep ( ) , \n functionDefinitions , \n - NUMBER0 , \n + NUMBER1 , \n maxOperatorMemoryUsage ) ; \n \n return new PhysicalOperation ( aggregationOperator , outputMappings . build ( ) ) ;", "msg_token": "Reduce the number of expected groups"} {"diff": " public class ExtractMethodProcessor implements MatchProvider { \n private boolean applyChosenClassAndExtract ( List < PsiVariable > inputVariables , @ nullable Pass < ExtractMethodProcessor > extractPass ) \n throws PrepareFailedException { \n myStatic = shouldBeStatic ( ) ; \n - if ( myTargetClass . getContainingClass ( ) == null || myTargetClass . hasModifierProperty ( PsiModifier . STATIC ) ) { \n + if ( ! PsiUtil . isLocalOrAnonymousClass ( myTargetClass ) && ( myTargetClass . getContainingClass ( ) == null || myTargetClass . hasModifierProperty ( PsiModifier . STATIC ) ) ) { \n ElementNeedsThis needsThis = new ElementNeedsThis ( myTargetClass ) ; \n for ( int i = NUMBER0 ; i < myElements . length && ! needsThis . usesMembers ( ) ; i ++ ) { \n PsiElement element = myElements [ i ] ;", "msg_token": "do not suggest static method for anonymous local romka"} {"diff": " public class CachingClusteredClient < T > implements QueryRunner < T > \n } \n \n descriptors . add ( segment . rhs ) ; \n - System . out . println ( \n - String . format ( \n - STRING0 , \n - server . getHost ( ) , \n - segment . rhs . getInterval ( ) , \n - segment . rhs . getPartitionNumber ( ) , \n - segment . rhs . getVersion ( ) \n - ) \n - ) ; \n } \n }", "msg_token": "remove debug println"} {"diff": " public class Portuguese extends Language { \n SINGLE \n new PostReformPortugueseCompoundRule ( messages ) , \n new PortugueseReplaceRule ( messages ) , \n + new PortugueseReplaceRule2 ( messages ) , \n + new PortugueseClicheRule ( messages ) , \n new PortugueseWordRepeatRule ( messages , this ) \n SINGLE \n ) ;", "msg_token": "pt activate multiword replacers"} {"diff": " public class GoCompletionTest extends GoCompletionTestBase { \n } \n \n @ suppresswarnings ( STRING0 ) \n - public void testPackageNamesInEmptyDirectory ( ) throws IOException { \n + public void _testPackageNamesInEmptyDirectory ( ) throws IOException { \n VirtualFile dir = myFixture . getTempDirFixture ( ) . findOrCreateDir ( STRING1 ) ; \n VirtualFile file = dir . createChildData ( this , STRING2 ) ; \n VfsUtil . saveText ( file , STRING3 ) ;", "msg_token": "disable test temporarly"} {"diff": " public class EngineIron extends Engine { \n if ( burnTime > NUMBER0 ) { \n burnTime -- ; \n } else { \n - fuel . amount -- ; \n + if ( -- fuel . amount <= NUMBER0 ) fuelTank . setLiquid ( null ) ; \n burnTime = currentFuel . totalBurningTime / LiquidContainerRegistry . BUCKET_VOLUME ; \n } \n \n public class EngineIron extends Engine { \n heat = COOLANT_THRESHOLD ; \n } else { \n heat -= coolant . amount * currentCoolant . coolingPerUnit ; \n - coolant . amount = NUMBER0 ; \n + coolantTank . setLiquid ( null ) ; \n } \n } \n }", "msg_token": "Fixed EngineIron fuel acceptance problem"} {"diff": " public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe \n } \n } \n \n - logger . debug ( STRING0 , r . uuid ( ) ) ; \n - \n r = ( AtmosphereResourceImpl ) req . resource ( ) ; \n if ( r != null ) { \n + logger . debug ( STRING0 , r . uuid ( ) ) ; \n \n if ( r . isCancelled ( ) ) { \n logger . trace ( STRING1 , r . uuid ( ) ) ;", "msg_token": "Fix possible NPE"} {"diff": " public class VariableInspector extends JDialog { \n \n public VariableInspector ( final JavaEditor editor ) { \n SINGLE \n - super ( editor , STRING0 ) ; \n + super ( editor , STRING1 ) ; \n this . editor = editor ; \n \n SINGLE", "msg_token": "remove inspector name"} {"diff": " public class QueryableStateIntegrationTest { \n public boolean conditionMet ( ) { \n try { \n final StreamsMetadata metadata = streams . metadataForKey ( storeName , key , new StringSerializer ( ) ) ; \n - if ( metadata == null ) { \n + if ( metadata == null || metadata . equals ( StreamsMetadata . NOT_AVAILABLE ) ) { \n return false ; \n } \n final int index = metadata . hostInfo ( ) . port ( ) ; \n public class QueryableStateIntegrationTest { \n public boolean conditionMet ( ) { \n try { \n final StreamsMetadata metadata = streams . metadataForKey ( storeName , key , new StringSerializer ( ) ) ; \n - if ( metadata == null ) { \n + if ( metadata == null || metadata . equals ( StreamsMetadata . NOT_AVAILABLE ) ) { \n return false ; \n } \n final int index = metadata . hostInfo ( ) . port ( ) ;", "msg_token": "Added check for metadata unavailable"} {"diff": " public class CorruptSSTableException extends RuntimeException \n \n public CorruptSSTableException ( Exception cause , File path ) \n { \n - super ( cause ) ; \n + super ( STRING0 + path , cause ) ; \n this . path = path ; \n }", "msg_token": "Add file path to CorruptSSTableException message"} {"diff": " import NAMESPACE ; \n public class SalesforceApi extends DefaultApi20 { \n \n SINGLE \n - private static final String BASE_URL = STRING0 ; \n - private static final String ACCESS_URL = BASE_URL + STRING1 ; \n - private static final String AUTHORIZE_URL = BASE_URL + STRING2 ; \n + private static final String BASE_URL = STRING0 ; \n + private static final String ACCESS_URL = BASE_URL + STRING1 ; \n + private static final String AUTHORIZE_URL = BASE_URL + STRING2 ; \n \n protected SalesforceApi ( ) { \n SSLContext sc ; \n public class SalesforceApi extends DefaultApi20 { \n sc . init ( null , null , null ) ; \n HttpsURLConnection . setDefaultSSLSocketFactory ( sc . getSocketFactory ( ) ) ; \n } \n - } catch ( NoSuchAlgorithmException e ) { \n - e . printStackTrace ( ) ; \n + } catch ( Exception e ) { \n + throw new IllegalStateException ( STRING3 , e ) ; \n } \n - catch ( KeyManagementException e ) { \n - e . printStackTrace ( ) ; \n - } \n } \n \n private static class InstanceHolder {", "msg_token": "Throws new exception removed tabs"} {"diff": " public class BinaryMapPoiReaderAdapter { \n break ; \n } \n } \n - Map < String , String > lt = am . getAdditionalInfo ( ) ; \n - for ( Entry < String , String > e : lt . entrySet ( ) ) { \n - matches = matcher . matches ( e . getValue ( ) ) ; \n - if ( matches ) { \n - break ; \n + if ( ! matches ) { \n + Map < String , String > lt = am . getAdditionalInfo ( ) ; \n + for ( Entry < String , String > e : lt . entrySet ( ) ) { \n + matches = matcher . matches ( e . getValue ( ) ) ; \n + if ( matches ) { \n + break ; \n + } \n } \n } \n } \n import NAMESPACE ; \n \n \n public class SearchCoreFactory { \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n \n \n SINGLE", "msg_token": "Fix search bug"} {"diff": " public abstract class SshCommand extends BaseCommand { \n } \n } \n \n - protected abstract void run ( ) throws UnloggedFailure , Failure , Exception ; \n + protected abstract void run ( ) throws Failure , Exception ; \n }", "msg_token": "findbugs Fix throws signature"} {"diff": " public class EjbResourceInjectionAnnotationProcessor implements DeploymentUnitPr \n final InjectionTarget targetDescription = new MethodInjectionTarget ( methodInfo . declaringClass ( ) . name ( ) . toString ( ) , methodName , injectionType ) ; \n \n final String localContextName = isEmpty ( annotation . name ( ) ) ? methodInfo . declaringClass ( ) . name ( ) . toString ( ) + STRING0 + methodName . substring ( NUMBER0 , NUMBER1 ) . toLowerCase ( ) + methodName . substring ( NUMBER1 ) : annotation . name ( ) ; \n - process ( eeModuleDescription , targetDescription . getClassName ( ) , annotation . beanName ( ) , annotation . lookup ( ) , methodInfo . declaringClass ( ) , targetDescription , localContextName ) ; \n + process ( eeModuleDescription , targetDescription . getDeclaredValueClassName ( ) , annotation . beanName ( ) , annotation . lookup ( ) , methodInfo . declaringClass ( ) , targetDescription , localContextName ) ; \n } \n \n private void processClass ( final EEModuleDescription eeModuleDescription , final EJBResourceWrapper annotation , final ClassInfo classInfo ) throws DeploymentUnitProcessingException {", "msg_token": "Fix EJB injection on methods Pass the correct type of the target method param"} {"diff": " public class CodeStyleHtmlPanel extends CodeStyleAbstractPanel { \n } \n \n protected String getPreviewText ( ) { \n - return readFromFile ( STRING0 ) ; \n + return readFromFile ( STRING1 ) ; \n \n } \n \n public class CodeStyleXmlPanel extends CodeStyleAbstractPanel { \n } \n \n protected String getPreviewText ( ) { \n - return readFromFile ( STRING2 ) ; \n + return readFromFile ( STRING3 ) ; \n } \n \n protected FileType getFileType ( ) {", "msg_token": "Renaming preview files"} {"diff": " public class TestOperationSetPresence \n logger . trace ( STRING0 + fixture . userID2 + STRING1 ) ; \n PresenceStatus actualReturn \n = operationSetPresence1 . queryContactStatus ( fixture . userID2 ) ; \n + \n + SINGLE \n + SINGLE \n + if ( ! actualReturn . equals ( expectedReturn ) ) \n + { \n + logger . info ( STRING2 + status + \n + STRING3 ) ; \n + \n + PresenceStatus tempStatus ; \n + if ( status . equals ( MsnStatusEnum . ONLINE ) ) \n + tempStatus = MsnStatusEnum . AWAY ; \n + else \n + tempStatus = MsnStatusEnum . ONLINE ; \n + \n + SINGLE \n + operationSetPresence2 . publishPresenceStatus ( status , STRING4 ) ; \n + \n + pauseAfterStateChanges ( ) ; \n + \n + SINGLE \n + operationSetPresence2 . publishPresenceStatus ( status , STRING4 ) ; \n + \n + pauseAfterStateChanges ( ) ; \n + \n + actualReturn \n + = operationSetPresence1 . queryContactStatus ( fixture . userID2 ) ; \n + } \n + \n assertEquals ( STRING5 \n + expectedReturn . getStatusName ( ) \n + STRING6", "msg_token": "Retry QueryContactStatus on fail"} {"diff": " public class PagesServlet extends HttpServlet { \n if ( StringUtils . isEmpty ( resource ) ) { \n SINGLE \n List < String > markdownExtensions = GitBlit . getStrings ( Keys . web . markdownExtensions ) ; \n - List < String > extensions = new ArrayList < String > ( markdownExtensions . size ( ) + NUMBER0 ) ; \n + List < String > extensions = new ArrayList < String > ( markdownExtensions . size ( ) + NUMBER1 ) ; \n extensions . add ( STRING0 ) ; \n + extensions . add ( STRING1 ) ; \n extensions . addAll ( markdownExtensions ) ; \n for ( String ext : extensions ) { \n String file = STRING2 + ext ;", "msg_token": "Added htm extension as default index page"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler { \n SINGLE \n public void setProxy ( String type , String host , int port ) { \n \n - android . os . Debug . waitForDebugger ( ) ; \n + SINGLE \n \n if ( type == null ) { \n mProxyInfo = ProxyInfo . forNoProxy ( ) ;", "msg_token": "commenting out debug statement"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class FlickrApi extends DefaultApi10a \n return STRING0 ; \n } \n \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public String getRequestTokenEndpoint ( String callbackUrl ) \n - { \n - \n - return String . format ( STRING1 , getRequestTokenEndpoint ( ) , OAuthEncoder . encode ( callbackUrl ) ) ; \n - } \n }", "msg_token": "Removed unused callback method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultExecCommandExecutor implements ExecCommandExecutor { \n } catch ( IOException ioe ) { \n SINGLE \n String msg = ioe . getMessage ( ) ; \n - if ( STRING0 . equals ( msg ) ) { \n + if ( msg != null && STRING1 . equals ( msg . toLowerCase ( Locale . ENGLISH ) ) ) { \n LOG . debug ( STRING2 , ioe ) ; \n SINGLE \n SINGLE", "msg_token": "Better stream closed check to ignore case"} {"diff": " public class DatabaseFactory { \n return database ; \n } \n \n - private DataSource buildDataSource ( DatabaseConnectionConfiguration connectionConfig , GenericObjectPool pool ) { \n + private static DataSource buildDataSource ( DatabaseConnectionConfiguration connectionConfig , GenericObjectPool pool ) { \n final Properties properties = new Properties ( ) ; \n for ( Map . Entry < String , String > property : connectionConfig . getProperties ( ) . entrySet ( ) ) { \n properties . setProperty ( property . getKey ( ) , property . getValue ( ) ) ; \n public class DatabaseFactory { \n return new PoolingDataSource ( pool ) ; \n } \n \n - private GenericObjectPool buildPool ( DatabaseConnectionConfiguration connectionConfig ) { \n + private static GenericObjectPool buildPool ( DatabaseConnectionConfiguration connectionConfig ) { \n final GenericObjectPool pool = new GenericObjectPool ( null ) ; \n pool . setMaxWait ( connectionConfig . getMaxWaitForConnection ( ) . toMilliseconds ( ) ) ; \n pool . setMinIdle ( connectionConfig . getMinSize ( ) ) ;", "msg_token": "Make a few methods in DatabaseFactory static"} {"diff": " public class ImmutableChecker extends BugChecker implements BugChecker . ClassTree \n } \n String message ; \n if ( immutableTyParams . isEmpty ( ) ) { \n - message = \n - String . format ( \n - STRING0 , tyvar . getSimpleName ( ) , immutableTyParams ) ; \n + message = String . format ( STRING0 , tyvar . getSimpleName ( ) ) ; \n } else { \n message = \n String . format (", "msg_token": "Remove unused argument to String format"} {"diff": " public abstract class CharMatcher implements Predicate < Character > { \n SINGLE \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 public static final CharMatcher WHITESPACE = whitespace ( ) ;", "msg_token": "Remove CharMatcher WHITESPACE internally"} {"diff": " public class Mesh implements Savable , Cloneable { \n } \n \n clone . vertexArrayID = - NUMBER0 ; \n - clone . vertCount = - NUMBER0 ; \n - clone . elementCount = - NUMBER0 ; \n + clone . vertCount = vertCount ; \n + clone . elementCount = elementCount ; \n \n SINGLE \n SINGLE", "msg_token": "Mesh deepClone sets wrong elementCount and vertCount in trunk"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \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 + 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 - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract class AbstractBlockChain { \n private static final Logger log = LoggerFactory . getLogger ( AbstractBlockChain . class ) ;", "msg_token": "Update the AbstractBlockChain javadoc"} {"diff": " public final class SystemClock { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove misleading documentation from SystemClock"} {"diff": " public class DefaultCamelCatalog implements CamelCatalog { \n SINGLE \n sb . append ( hasQuestionmark ? ampersand : STRING0 ) ; \n String query = createQueryString ( copy , ampersand , encode ) ; \n - SINGLE \n - query = query . replaceAll ( STRING1 , STRING2 ) ; \n sb . append ( query ) ; \n } \n \n public class CamelCatalogTest { \n map . put ( STRING3 , STRING4 ) ; \n \n String uri = catalog . asEndpointUri ( STRING5 , map , true ) ; \n + assertEquals ( STRING6 , uri ) ; \n + \n + uri = catalog . asEndpointUri ( STRING5 , map , false ) ; \n assertEquals ( STRING7 , uri ) ; \n }", "msg_token": "Camel catalog recent commits no need for this anymore"} {"diff": " public class AccountExpiredException extends AccountStatusException { \n super ( msg , t ) ; \n } \n \n + @ deprecated \n public AccountExpiredException ( String msg , Object extraInformation ) { \n super ( msg , extraInformation ) ; \n } \n public class CredentialsExpiredException extends AccountStatusException { \n super ( msg , t ) ; \n } \n \n + @ deprecated \n public CredentialsExpiredException ( String msg , Object extraInformation ) { \n super ( msg , extraInformation ) ; \n } \n public class DisabledException extends AccountStatusException { \n super ( msg , t ) ; \n } \n \n + @ deprecated \n public DisabledException ( String msg , Object extraInformation ) { \n super ( msg , extraInformation ) ; \n } \n public class LockedException extends AccountStatusException { \n super ( msg , t ) ; \n } \n \n + @ deprecated \n public LockedException ( String msg , Object extraInformation ) { \n super ( msg , extraInformation ) ; \n }", "msg_token": "Mark overriding extraInformation methods in account status exceptions as deprecated"} {"diff": " public class StreamExecutionCallback implements TransportCallback < StreamResponse \n @ override \n public void run ( ) \n { \n - Runnable r = _taskQueue . poll ( ) ; \n try \n { \n + Runnable r = _taskQueue . poll ( ) ; \n r . run ( ) ; \n } \n catch ( Throwable t )", "msg_token": "Move _taskQueue poll into try block"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Solo { \n COMMENT \n \n public void clickOnView ( View view ) { \n + waiter . waitForView ( view , SMALLTIMEOUT ) ; \n clicker . clickOnScreen ( view ) ; \n } \n \n public class Solo { \n COMMENT \n \n public void clickLongOnView ( View view ) { \n + waiter . waitForView ( view , SMALLTIMEOUT ) ; \n clicker . clickOnScreen ( view , true , NUMBER0 ) ; \n \n } \n public class Solo { \n setter . setTimePicker ( timePicker , hour , minute ) ; \n } \n \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated clickOnView and clickLongOnView to wait for the view before clicking it"} {"diff": " public interface Datastore { \n Mongo getMongo ( ) ; \n \n DBCollection getCollection ( Class < ? > c ) ; \n + \n + WriteConcern getDefaultWriteConcern ( ) ; \n + void setDefaultWriteConcern ( WriteConcern wc ) ; \n + \n } \n public class DatastoreImpl implements Datastore , AdvancedDatastore { \n Mapper mapper = morphia . getMapper ( ) ; \n return mapper . createEntityCache ( ) ; \n } \n + \n + public WriteConcern getDefaultWriteConcern ( ) { return defConcern ; } \n + public void setDefaultWriteConcern ( WriteConcern wc ) { defConcern = wc ; } \n + \n }", "msg_token": "Added datastore WriteConcern property for defaults for methods without explicit WriteConcern option"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n - public interface PigZombie extends Zombie { } \n + public interface PigZombie extends Zombie { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int getAnger ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void setAnger ( int level ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void setAngry ( boolean angry ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isAngry ( ) ; \n + }", "msg_token": "Added interface for setting and getting a pig zombie s anger level"} {"diff": " import NAMESPACE ; \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", "msg_token": "Add EBean interceptor injection to Rest JavaDoc"} {"diff": " public class TwoDataSources extends DefaultTestCase { \n org . apache . tomcat . jdbc . pool . DataSource d1 = this . createDefaultDataSource ( ) ; \n org . apache . tomcat . jdbc . pool . DataSource d2 = this . createDefaultDataSource ( ) ; \n d1 . setRemoveAbandoned ( true ) ; \n - d1 . setRemoveAbandonedTimeout ( NUMBER0 ) ; \n + d1 . setRemoveAbandonedTimeout ( NUMBER1 ) ; \n d1 . setTimeBetweenEvictionRunsMillis ( NUMBER2 ) ; \n d2 . setRemoveAbandoned ( false ) ; \n Connection c1 = d1 . getConnection ( ) ;", "msg_token": "Fix broken test it has been broken for a long time"} {"diff": " public class AudioManager { \n STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typos in AudioManager javadoc"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n String id = pair . first ; \n ArrayList < String > subtypes = pair . second ; \n builder . append ( id ) ; \n - if ( subtypes . size ( ) > NUMBER0 ) { \n - builder . append ( subtypes . get ( NUMBER0 ) ) ; \n - for ( int i = NUMBER1 ; i < subtypes . size ( ) ; ++ i ) { \n - builder . append ( INPUT_METHOD_SUBTYPE_SEPARATER ) . append ( subtypes . get ( i ) ) ; \n - } \n + SINGLE \n + SINGLE \n + for ( String subtypeId : subtypes ) { \n + builder . append ( INPUT_METHOD_SUBTYPE_SEPARATER ) . append ( subtypeId ) ; \n } \n }", "msg_token": "Fix a bug that enabled Subtype ID can t be saved propery"} {"diff": " public class IOHook { \n String dexOrJarPath = params [ NUMBER0 ] ; \n String outputPath = params [ NUMBER1 ] ; \n VLog . d ( TAG , STRING0 , dexOrJarPath , outputPath ) ; \n - AppSetting info = sDexOverrideMap . get ( dexOrJarPath ) ; \n + String canonical = null ; \n + try { \n + canonical = new File ( dexOrJarPath ) . getCanonicalPath ( ) ; \n + } catch ( IOException e ) { \n + e . printStackTrace ( ) ; \n + } \n + AppSetting info = sDexOverrideMap . get ( canonical ) ; \n if ( info != null && ! info . dependSystem ) { \n outputPath = info . getOdexFile ( ) . getPath ( ) ; \n params [ NUMBER1 ] = outputPath ;", "msg_token": "openDexFileNative s sDexOverrideMap uses canonical path"} {"diff": " public class ScriptBuilder { \n return createMultiSigInputScriptBytes ( sigs ) ; \n } \n \n + COMMENT \n + public static Script createMultiSigInputScript ( TransactionSignature . . . signatures ) { \n + return createMultiSigInputScript ( Arrays . asList ( signatures ) ) ; \n + } \n + \n COMMENT \n public static Script createMultiSigInputScriptBytes ( List < byte [ ] > signatures ) { \n checkArgument ( signatures . size ( ) <= NUMBER0 ) ;", "msg_token": "Add a varargs utility"} {"diff": " class OnesideDiffViewer extends TextDiffViewerBase { \n change . destroyHighlighter ( ) ; \n } \n myChangedBlockData = null ; \n + \n + myFoldingModel . destroy ( ) ; \n + \n myStatusPanel . update ( ) ; \n }", "msg_token": "destroy folding model with other highlighters"} {"diff": " public class ViewControllerRegistration { \n COMMENT \n COMMENT \n COMMENT \n - public ViewControllerRegistration setViewName ( String viewName ) { \n + public void setViewName ( String viewName ) { \n this . controller . setViewName ( viewName ) ; \n - return this ; \n }", "msg_token": "Restore method signature in ViewControllerRegistration"} {"diff": " public class XMLUtils { \n SINGLE \n Node prevNode = nodeList . item ( i ) . getPreviousSibling ( ) ; \n String prev = STRING0 ; \n - if ( prevNode . getPreviousSibling ( ) != null ) { \n - prev += prevNode . getPreviousSibling ( ) . getTextContent ( ) ; \n + if ( prevNode != null ) { \n + if ( prevNode . getPreviousSibling ( ) != null ) { \n + prev += prevNode . getPreviousSibling ( ) . getTextContent ( ) ; \n + } \n + prev += prevNode . getTextContent ( ) ; \n } \n - prev += prevNode . getTextContent ( ) ; \n \n Node nextNode = nodeList . item ( i ) . getNextSibling ( ) ; \n String next = STRING0 ;", "msg_token": "fix xml utils add per sentence scoring produce quote xml for annotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unneeded import"} {"diff": " public class Wallet implements Serializable { \n COMMENT \n COMMENT \n public static Wallet loadFromFile ( File f ) throws IOException { \n - return loadFromFileStream ( new FileInputStream ( f ) ) ; \n + FileInputStream stream = new FileInputStream ( f ) ; \n + try { \n + return loadFromFileStream ( stream ) ; \n + } finally { \n + stream . close ( ) ; \n + } \n } \n \n public boolean isConsistent ( ) {", "msg_token": "Close the FileInputStream created in Wallet loadFromFile"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ModelResultMatchers { \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class ModelResultMatchers { \n \n return new ResultMatcher ( ) { \n @ override \n - @ suppresswarnings ( STRING0 ) \n public void match ( MvcResult mvcResult ) throws Exception { \n ModelAndView mav = getModelAndView ( mvcResult ) ; \n BindingResult result = getBindingResult ( mav , name ) ;", "msg_token": "Remove unnecessary warning suppression in ModelResultMatchers"} {"diff": " public class Main { \n LOG . info ( STRING0 ) ; \n LOG . info ( STRING1 ) ; \n LOG . info ( STRING2 ) ; \n - LOG . info ( STRING3 ) ; \n + LOG . info ( STRING4 ) ; \n } \n \n COMMENT", "msg_token": "Changed link to https"} {"diff": " public class GestureImageView extends ImageView implements GestureView , ClipView \n @ override \n public void setImageDrawable ( Drawable dr ) { \n super . setImageDrawable ( dr ) ; \n + \n Settings settings = mController . getSettings ( ) ; \n + int oldW = settings . getImageW ( ) , oldH = settings . getImageH ( ) ; \n + \n if ( dr == null ) { \n settings . setImage ( NUMBER0 , NUMBER0 ) ; \n } else if ( dr . getIntrinsicWidth ( ) == - NUMBER1 || dr . getIntrinsicHeight ( ) == - NUMBER1 ) { \n public class GestureImageView extends ImageView implements GestureView , ClipView \n } else { \n settings . setImage ( dr . getIntrinsicWidth ( ) , dr . getIntrinsicHeight ( ) ) ; \n } \n - mController . resetState ( ) ; \n + \n + if ( oldW != settings . getImageW ( ) || oldH != settings . getImageH ( ) ) mController . resetState ( ) ; \n } \n \n protected void applyState ( State state ) {", "msg_token": "Do not reset state if image size was not changed"} {"diff": " public abstract class SemgrexPattern implements Serializable { \n treebank . loadPath ( treeFile ) ; \n for ( Tree tree : treebank ) { \n SINGLE \n - SemanticGraph graph = SemanticGraphFactory . makeFromTree ( tree , mode , useExtras ? GrammaticalStructure . Extras . MAXIMAL : GrammaticalStructure . Extras . NONE , true , null ) ; \n + SemanticGraph graph = SemanticGraphFactory . makeFromTree ( tree , mode , useExtras ? GrammaticalStructure . Extras . MAXIMAL : GrammaticalStructure . Extras . NONE , true ) ; \n graphs . add ( graph ) ; \n } \n }", "msg_token": "fixed class to SemanticGraphFactory makeFromTree"} {"diff": " public class MediaDriver implements AutoCloseable \n \n ensureDirectoriesAreRecreated ( ) ; \n \n - eventReader = new EventReader ( \n - new EventReader . Context ( ) \n - . idleStrategy ( Configuration . eventReaderIdleStrategy ( ) ) \n - . deleteOnExit ( ctx . dirsDeleteOnExit ( ) ) \n - . eventHandler ( ctx . eventConsumer ) ) ; \n - \n ctx . unicastSenderFlowControl ( UnicastSenderControlStrategy : : new ) \n . multicastSenderFlowControl ( UnicastSenderControlStrategy : : new ) \n . publications ( new AtomicArray < > ( ) ) \n public class MediaDriver implements AutoCloseable \n . senderCommandQueue ( new OneToOneConcurrentArrayQueue < > ( Configuration . CMD_QUEUE_CAPACITY ) ) \n . conclude ( ) ; \n \n + eventReader = new EventReader ( \n + new EventReader . Context ( ) \n + . idleStrategy ( Configuration . eventReaderIdleStrategy ( ) ) \n + . deleteOnExit ( ctx . dirsDeleteOnExit ( ) ) \n + . eventHandler ( ctx . eventConsumer ) ) ; \n + \n receiver = new Receiver ( ctx ) ; \n sender = new Sender ( ctx ) ; \n conductor = new DriverConductor ( ctx ) ;", "msg_token": "Java Provide more logical ordering to MediaDriver Constructor flow"} {"diff": " public final class AstValue extends SimpleNode { \n SINGLE \n if ( suffix == null ) { \n return null ; \n - } else { \n - ctx . setPropertyResolved ( false ) ; \n - base = resolver . getValue ( ctx , base , suffix ) ; \n } \n + \n + ctx . setPropertyResolved ( false ) ; \n + base = resolver . getValue ( ctx , base , suffix ) ; \n i ++ ; \n } \n }", "msg_token": "Fix an Eclipse warning"} {"diff": " import NAMESPACE ; \n \n interface BlurController { \n float DEFAULT_SCALE_FACTOR = FLOAT0 ; \n - float DEFAULT_BLUR_RADIUS = FLOAT0 ; \n + float DEFAULT_BLUR_RADIUS = NUMBER0 f ; \n \n COMMENT \n COMMENT", "msg_token": "Change default blur radius"} {"diff": " class ContextImpl extends Context { \n public Resources . Theme getTheme ( ) { \n if ( mTheme == null ) { \n if ( mThemeResource == NUMBER0 ) { \n - mThemeResource = com . android . internal . R . style . Theme ; \n + final Context outerContext = getOuterContext ( ) ; \n + mThemeResource = ( outerContext . getApplicationInfo ( ) . targetSdkVersion \n + >= Build . VERSION_CODES . HONEYCOMB ) \n + ? com . android . internal . R . style . Theme_Holo \n + : com . android . internal . R . style . Theme ; \n } \n mTheme = mResources . newTheme ( ) ; \n mTheme . applyStyle ( mThemeResource , true ) ;", "msg_token": "use the holo theme in more places for honeycomb apps"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public final class EditorImpl extends UserDataHolderBase implements EditorEx , HighlighterClient , Queryable , Dumpable { \n - private static final boolean isOracleRetina = UIUtil . isRetina ( ) && SystemInfo . isOracleJvm ; \n + private static final boolean isOracleRetina = UIUtil . isRetina ( ) COMMENT ; \n private static final int MIN_FONT_SIZE = NUMBER0 ; \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n private static final Key DND_COMMAND_KEY = Key . create ( STRING1 ) ; \n public class UIUtil { \n return ourRetina . get ( ) ; \n } \n } \n - else if ( SystemInfo . isJavaVersionAtLeast ( STRING2 ) && SystemInfo . isOracleJvm ) { \n + else if ( SystemInfo . isJavaVersionAtLeast ( STRING2 ) COMMENT ) { \n try { \n GraphicsEnvironment env = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; \n final GraphicsDevice device = env . getDefaultScreenDevice ( ) ;", "msg_token": "make isRetina method work on Zulu and other JREs"} {"diff": " public class BounceRecyclerView extends BaseBounceView < WXRecyclerView > { \n headComponentStack . push ( headComponent ) ; \n FrameLayout headerView = ( FrameLayout ) headComponent . getView ( ) . getChildAt ( NUMBER0 ) ; \n headerViewStack . push ( headerView ) ; \n - int headerViewOffsetX = getLeft ( ) ; \n + int [ ] location = new int [ NUMBER1 ] ; \n + int [ ] parentLocation = new int [ NUMBER1 ] ; \n + headComponent . getView ( ) . getLocationOnScreen ( location ) ; \n + headComponent . getParentScroller ( ) . getView ( ) . getLocationOnScreen ( parentLocation ) ; \n + int headerViewOffsetX = location [ NUMBER0 ] - parentLocation [ NUMBER0 ] ; \n int headerViewOffsetY = getTop ( ) ; \n headComponent . getView ( ) . removeView ( headerView ) ; \n FrameLayout tempView = new FrameLayout ( getContext ( ) ) ;", "msg_token": "android fix sticky offsetX"} {"diff": " class GitCheckoutOperation extends GitBranchOperation { \n \n private static void refresh ( GitRepository . . . repositories ) { \n for ( GitRepository repository : repositories ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + sleepABit ( ) ; \n refreshRoot ( repository ) ; \n SINGLE \n } \n } \n + \n + private static void sleepABit ( ) { \n + try { \n + Thread . sleep ( NUMBER0 ) ; \n + } \n + catch ( InterruptedException e ) { \n + throw new RuntimeException ( e ) ; \n + } \n + } \n }", "msg_token": "sleep a bit to let file watcher report all changes for small repositories where refresh is too fast"} {"diff": " import NAMESPACE ; \n @ suppresswarnings ( STRING0 ) \n public class SessionDump extends HttpServlet \n { \n + COMMENT \n + COMMENT \n + COMMENT \n + public class ObjectAttributeValue implements java . io . Serializable \n + { \n + long l ; \n + \n + public ObjectAttributeValue ( long l ) \n + { \n + this . l = l ; \n + } \n + \n + public long getValue ( ) \n + { \n + return l ; \n + } \n + } \n \n int redirectCount = NUMBER0 ; \n COMMENT \n public class SessionDump extends HttpServlet \n { \n session = request . getSession ( true ) ; \n session . setAttribute ( STRING1 , STRING2 ) ; \n + session . setAttribute ( STRING3 , new ObjectAttributeValue ( System . currentTimeMillis ( ) ) ) ; \n } \n else if ( session != null ) \n {", "msg_token": "Add object as session attribute for SessionDump test servlet"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ModClassLoader extends URLClassLoader \n { \n - private static final List < String > STANDARD_LIBRARIES = ImmutableList . of ( STRING0 , STRING1 , STRING2 ) ; \n + private static final List < String > STANDARD_LIBRARIES = ImmutableList . of ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n private LaunchClassLoader mainClassLoader ; \n \n public ModClassLoader ( ClassLoader parent ) {", "msg_token": "Finally fix stupid NPE error caused by FML trying to parse the super of Object in IDEA envs"} {"diff": " public final class ContactsContract { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs breakage"} {"diff": " import NAMESPACE ; \n COMMENT \n @ configuration \n @ conditionalonclass ( { EnableWebSecurity . class } ) \n - SINGLE \n - @ enablewebsecurity \n + @ conditionalonmissingbean ( annotation = EnableWebSecurity . class ) \n @ enableconfigurationproperties \n public class SecurityAutoConfiguration { \n \n public class SecurityAutoConfiguration { \n \n SINGLE \n @ order ( Ordered . HIGHEST_PRECEDENCE ) \n + @ enablewebsecurity \n private static class IgnoredPathsWebSecurityConfigurerAdapter implements \n SecurityConfigurer < Filter , WebSecurity > { \n \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ ignore ( STRING0 ) \n public class SpringApplicationHierarchyTests { \n \n private ConfigurableApplicationContext context ;", "msg_token": "Nest the EnableWebSecurity so it can be added to a condition"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed broken checkStyle"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n public void requestTransitionStart ( LayoutTransition transition ) { \n ViewRootImpl viewAncestor = getViewRootImpl ( ) ; \n - viewAncestor . requestTransitionStart ( transition ) ; \n + if ( viewAncestor != null ) { \n + viewAncestor . requestTransitionStart ( transition ) ; \n + } \n } \n \n @ override", "msg_token": "Fix potential null deref in ViewGroup when running transition"} {"diff": " public class HistoryReferencesTable extends ZapTable { \n return ; \n } \n \n + boolean focusOwner = isFocusOwner ( ) ; \n try { \n displayMessage ( hRef . getHttpMessage ( ) ) ; \n } catch ( HttpMalformedHeaderException | DatabaseException e ) { \n LOGGER . error ( e . getMessage ( ) , e ) ; \n + } finally { \n + if ( focusOwner ) { \n + requestFocusInWindow ( ) ; \n + } \n } \n } \n }", "msg_token": "Set focus back to table after displaying a message"} {"diff": " public abstract class JDBCTable < DATASOURCE extends DBPDataSource , CONTAINER exte \n { \n static final Log log = Log . getLog ( JDBCTable . class ) ; \n public static final String DEFAULT_TABLE_ALIAS = STRING0 ; \n - public static final int DEFAULT_READ_FETCH_SIZE = NUMBER0 ; \n + SINGLE \n \n private boolean persisted ; \n \n class ResultSetDataPumpJob extends DataSourceJob { \n private String progressMessage ; \n \n protected ResultSetDataPumpJob ( DBSDataContainer dataContainer , DBDDataFilter dataFilter , DBDDataReceiver dataReceiver , Composite progressControl ) { \n - super ( CoreMessages . controls_rs_pump_job_name , DBIcon . SQL_EXECUTE . getImageDescriptor ( ) , dataContainer . getDataSource ( ) ) ; \n + super ( CoreMessages . controls_rs_pump_job_name + STRING1 + dataContainer . getName ( ) + STRING2 , DBIcon . SQL_EXECUTE . getImageDescriptor ( ) , dataContainer . getDataSource ( ) ) ; \n progressMessage = CoreMessages . controls_rs_pump_job_name ; \n this . dataContainer = dataContainer ; \n this . dataFilter = dataFilter ;", "msg_token": "Data pump UI fix"} {"diff": " final class GJMonthOfYearDateTimeField extends ImpreciseDateTimeField { \n ( subtrahendInstant , subtrahendYear , subtrahendMonth ) ; \n if ( subtrahendDom > minuendDom ) { \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n subtrahendInstant = iChronology . dayOfMonth ( ) . set ( subtrahendInstant , minuendDom ) ; \n } \n } \n final class GJWeekyearDateTimeField extends ImpreciseDateTimeField { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n workInstant = iChronology . dayOfWeek ( ) . set ( workInstant , thisDow ) ; \n SINGLE \n SINGLE \n final class GJWeekyearDateTimeField extends ImpreciseDateTimeField { \n } \n \n public long roundFloor ( long instant ) { \n - SINGLE \n + SINGLE \n + SINGLE \n instant = iChronology . weekOfWeekyear ( ) . roundFloor ( instant ) ; \n int wow = iChronology . getWeekOfWeekyear ( instant ) ; \n if ( wow > NUMBER0 ) {", "msg_token": "Remove TODO comments"} {"diff": " public class AimsicdService extends Service { \n mLocationTracker . stop ( ) ; \n mAccelerometerMonitor . stop ( ) ; \n mRilExecutor . stop ( ) ; \n - try { \n - if ( smsdetector . getSmsDetectionState ( ) ) { \n - smsdetector . stopSmsDetection ( ) ; \n - } \n - } catch ( Exception ee ) { Log . e ( TAG , STRING0 + ee . toString ( ) ) ; } \n + if ( smsdetector . getSmsDetectionState ( ) ) \n + { \n + smsdetector . stopSmsDetection ( ) ; \n + } \n + \n Log . i ( TAG , STRING1 ) ; \n }", "msg_token": "Removed try as not needed"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BaseContactFragment extends DisplayListFragment < Contact , C \n addFooterAction ( R . drawable . ic_share_white_24dp , STRING0 , false , new Runnable ( ) { \n @ override \n public void run ( ) { \n - \n + String inviteMessage = getResources ( ) . getString ( R . string . invite_message ) ; \n + Intent sendIntent = new Intent ( Intent . ACTION_SEND ) ; \n + sendIntent . putExtra ( Intent . EXTRA_TEXT , inviteMessage ) ; \n + sendIntent . setType ( STRING1 ) ; \n + startActivity ( sendIntent ) ; \n } \n } ) ; \n \n addFooterAction ( R . drawable . ic_person_add_white_24dp , STRING2 , true , new Runnable ( ) { \n @ override \n public void run ( ) { \n - \n + startActivity ( new Intent ( getActivity ( ) , AddContactActivity . class ) ) ; \n } \n } ) ;", "msg_token": "Implemented invite add to contacts list"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ApiHelper { \n SINGLE \n int startPosition = NUMBER0 ; \n if ( loadMore && result . length > PostsListFragment . POSTS_REQUEST_COUNT ) { \n - startPosition = ( result . length - PostsListFragment . POSTS_REQUEST_COUNT ) ; \n + startPosition = result . length - PostsListFragment . POSTS_REQUEST_COUNT ; \n } \n \n for ( int ctr = startPosition ; ctr < result . length ; ctr ++ ) {", "msg_token": "Removed some unneeded parenthesis and an unused import"} {"diff": " public class DbSession { \n log . debug ( STRING0 ) ; \n \n List < SQLException > allsexs = null ; \n - for ( DbQueryBase query : queries ) { \n - List < SQLException > sexs = query . closeQuery ( ) ; \n - if ( sexs != null ) { \n - if ( allsexs == null ) { \n - allsexs = new ArrayList < SQLException > ( ) ; \n + if ( queries != null ) { \n + for ( DbQueryBase query : queries ) { \n + List < SQLException > sexs = query . closeQuery ( ) ; \n + if ( sexs != null ) { \n + if ( allsexs == null ) { \n + allsexs = new ArrayList < SQLException > ( ) ; \n + } \n + allsexs . addAll ( sexs ) ; \n } \n - allsexs . addAll ( sexs ) ; \n } \n } \n if ( connection != null ) {", "msg_token": "prevent NPE on closing already closed sessions"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class JksOptions implements KeyCertOptions , TrustOptions , Cloneable { \n JksOptionsConverter . fromJson ( json , this ) ; \n } \n \n + public JsonObject toJson ( ) { \n + JsonObject json = new JsonObject ( ) ; \n + JksOptionsConverter . toJson ( this , json ) ; \n + return json ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add the toJson method to JKSOptions"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "zomg missing license statement"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n long ident = Binder . clearCallingIdentity ( ) ; \n try { \n if ( ( flags & WIPE_RESET_PROTECTION_DATA ) != NUMBER0 ) { \n + boolean ownsInitialization = isDeviceInitializer ( admin . info . getPackageName ( ) ) \n + && ! hasUserSetupCompleted ( userHandle ) ; \n if ( userHandle != UserHandle . USER_OWNER \n - || ! isDeviceOwner ( admin . info . getPackageName ( ) ) ) { \n + || ! ( isDeviceOwner ( admin . info . getPackageName ( ) ) \n + || ownsInitialization ) ) { \n throw new SecurityException ( \n STRING0 ) ; \n }", "msg_token": "Allow initializers to clear reset protection data during device setup"} {"diff": " public class DraggableListView extends ListView { \n \n mWindowParams . y = y - mDragPoint . y + mCoordOffset . y ; \n \n - if ( x > mTouchStartX + SWIPE_THRESHOLD ) \n + if ( mDragPos == mFirstDragPos && x > mTouchStartX + SWIPE_THRESHOLD ) \n mDragView . setPadding ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER1 ) ; \n - else if ( x < mTouchStartX - SWIPE_THRESHOLD ) \n + else if ( mDragPos == mFirstDragPos && x < mTouchStartX - SWIPE_THRESHOLD ) \n mDragView . setPadding ( - NUMBER0 , NUMBER3 , NUMBER2 , NUMBER3 ) ; \n else \n mDragView . setPadding ( NUMBER2 , NUMBER2 , NUMBER2 , NUMBER2 ) ;", "msg_token": "Don t show padding when dragging a row and it s going a long distance"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n public static final String GROUP_VISIBLE = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DELETED = STRING1 ; \n } \n \n COMMENT \n public final class ContactsContract { \n COMMENT \n COMMENT \n public static final String CONTENT_ITEM_TYPE = STRING2 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DELETE_PERMANENTLY = STRING3 ; \n } \n \n COMMENT", "msg_token": "add the deleted flag to the Groups table"} {"diff": " final class NotificationController { \n removedPrintJobs . remove ( printJobId ) ; \n mNotifications . add ( printJobId ) ; \n \n - Log . i ( STRING0 , STRING1 + printJobId . flattenToString ( ) ) ; \n - \n createSimpleNotification ( printJob ) ; \n } \n \n final class NotificationController { \n for ( int i = NUMBER0 ; i < numRemovedPrintJobs ; i ++ ) { \n PrintJobId removedPrintJob = removedPrintJobs . valueAt ( i ) ; \n \n - Log . i ( STRING0 , STRING2 + removedPrintJob . flattenToString ( ) ) ; \n - \n mNotificationManager . cancel ( removedPrintJob . flattenToString ( ) , NUMBER0 ) ; \n mNotifications . remove ( removedPrintJob ) ; \n }", "msg_token": "Remove debugging from print notification code"} {"diff": " public class PeopleTable { \n \n try { \n while ( c . moveToNext ( ) ) { \n - Person comment = getPersonFromCursor ( c , localTableBlogId ) ; \n - people . add ( comment ) ; \n + Person person = getPersonFromCursor ( c , localTableBlogId ) ; \n + people . add ( person ) ; \n } \n \n return people ;", "msg_token": "Fixed a variable name in PeopleTable"} {"diff": " public class TitanFactory { \n private static final Logger log = \n LoggerFactory . getLogger ( TitanFactory . class ) ; \n \n - private static boolean preloadedConfigOptions = false ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused field"} {"diff": " public class TextEditingTarget implements EditingTarget \n withChooseEncoding ( \n StringUtil . firstNotNullOrEmpty ( new String [ ] { \n docUpdateSentinel_ . getEncoding ( ) , \n + prefs_ . defaultEncoding ( ) . getValue ( ) , \n session_ . getSessionInfo ( ) . getSystemEncoding ( ) \n } ) , \n new CommandWithArg < String > ( )", "msg_token": "Save with Encoding wasn t respecting preference"} {"diff": " public class AceEditor implements DocDisplay , InputEditorDisplay \n @ override \n public void reindent ( ) \n { \n + boolean emptySelection = getSelection ( ) . isEmpty ( ) ; \n getSession ( ) . reindent ( ) ; \n + if ( emptySelection ) \n + moveSelectionToNextLine ( false ) ; \n } \n \n public ChangeTracker getChangeTracker ( )", "msg_token": "Move cursor down on reindent of line"} {"diff": " \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 package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WeldJaxwsInjectionServices implements JaxwsInjectionServices { \n @ override \n public < T > ResourceReferenceFactory < T > registerWebServiceRefInjectionPoint ( final InjectionPoint injectionPoint ) { \n \n - WebServiceRef annotation = injectionPoint . getAnnotated ( ) . getAnnotation ( WebServiceRef . class ) ; \n + WebServiceRef annotation = getResourceAnnotated ( injectionPoint ) . getAnnotation ( WebServiceRef . class ) ; \n if ( annotation == null ) { \n return null ; \n }", "msg_token": "WeldJaxwsInjectionServices add support for EE component resource"} {"diff": " public class DbImportTest implements OCommandListener { \n OProfiler . getInstance ( ) . startRecording ( ) ; \n } \n \n - @ test ( dependsOnMethods = { STRING0 } ) \n public void testDbImport ( ) throws IOException { \n File importDir = new File ( STRING1 ) ;", "msg_token": "Fixed test dependency"} {"diff": " public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > { \n } \n \n if ( _cursorType == CursorType . ARRAY ) { \n - _nums . add ( String . valueOf ( _all . size ( ) ) ) ; \n _all . add ( _cur ) ; \n } \n \n public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > { \n private int _num = NUMBER0 ; \n \n private final ArrayList < DBObject > _all = new ArrayList < DBObject > ( ) ; \n - private final List < String > _nums = new ArrayList < String > ( ) ; \n - \n }", "msg_token": "remove unused but allocated and populated _nums collection"} {"diff": " public class DirectoriesTest \n for ( final String cf : CFS ) \n { \n final Directories directories = Directories . create ( KS , cf ) ; \n - Assert . assertEquals ( cfDir ( cf ) , directories . getDirectoryForNewSSTables ( NUMBER0 ) ) ; \n + Assert . assertEquals ( cfDir ( cf ) , directories . getDirectoryForNewSSTables ( ) ) ; \n final String n = Long . toString ( System . nanoTime ( ) ) ; \n Callable < File > directoryGetter = new Callable < File > ( ) { \n public File call ( ) throws Exception {", "msg_token": "Fix test build"} {"diff": " public final class TSMeta { \n SINGLE \n final TSMeta meta = new TSMeta ( tsuid , \n System . currentTimeMillis ( ) / NUMBER0 ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + final class TreeCB implements Callback < Deferred < Long > , Boolean > { \n \n + @ override \n + public Deferred < Long > call ( Boolean success ) throws Exception { \n + return Deferred . fromResult ( incremented_value ) ; \n + } \n + \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public final class TSMeta { \n tsdb . indexTSMeta ( stored_meta ) ; \n \n SINGLE \n - return Deferred . fromResult ( incremented_value ) ; \n + return tsdb . processTSMetaThroughTrees ( stored_meta ) \n + . addCallbackDeferring ( new TreeCB ( ) ) ; \n } \n \n }", "msg_token": "Modify TSMeta incrementAndGetCounter to pass new TSMetas through tree builders"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ZenDiscoveryTests extends ElasticsearchIntegrationTest { \n } \n \n @ test \n + @ testlogging ( value = STRING0 ) \n public void testNodeFailuresAreProcessedOnce ( ) throws ExecutionException , InterruptedException , IOException { \n Settings defaultSettings = ImmutableSettings . builder ( ) \n . put ( FaultDetection . SETTING_PING_TIMEOUT , STRING1 )", "msg_token": "add trace logging to testNodeFailuresAreProcessedOnce"} {"diff": " public class JBossAsManagedConfiguration extends CommonContainerConfiguration { \n Validate . configurationDirectoryExists ( javaHome , STRING0 + javaHome ) ; \n } \n if ( controllerJavaHome != null ) { \n - Validate . configurationDirectoryExists ( javaHome , STRING1 + controllerJavaHome ) ; \n + Validate . configurationDirectoryExists ( controllerJavaHome , STRING1 + controllerJavaHome ) ; \n } \n }", "msg_token": "JBossAsManagedConfiguration controllerJavaHome check fix"} {"diff": " public class BufferSynchronizerService extends AbstractIdleService { \n } \n \n private ExecutorService executorService ( MetricRegistry metricRegistry ) { \n - final ThreadFactory threadFactory = new ThreadFactoryBuilder ( ) . setNameFormat ( STRING0 ) . build ( ) ; \n + final ThreadFactory threadFactory = new ThreadFactoryBuilder ( ) . setNameFormat ( STRING1 ) . build ( ) ; \n return new InstrumentedExecutorService ( \n Executors . newFixedThreadPool ( NUMBER0 , threadFactory ) , \n metricRegistry ,", "msg_token": "Fix thread names for BufferSynchronizerService"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix compile conflict"} {"diff": " public class OObjectEntitySerializer { \n reloadSchema = true ; \n } else { \n oSuperClass = oSchema . getClass ( currentClass . getSimpleName ( ) ) ; \n - reloadSchema = true ; \n } \n \n if ( ! currentOClass . getSuperClasses ( ) . contains ( oSuperClass ) ) {", "msg_token": "removing pointless schema reload action"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrChangeSignatureDialog extends RefactoringDialog { \n public GrChangeSignatureDialog ( @ notnull Project project , GrMethod method ) { \n super ( project , true ) ; \n myMethod = method ; \n + setTitle ( ChangeSignatureHandler . REFACTORING_NAME ) ; \n init ( ) ; \n updateSignature ( ) ; \n ActionListener listener = new ActionListener ( ) {", "msg_token": "groovy change signature dialog misses title"} {"diff": " public final class BloomFilter < T > implements Predicate < T > , Serializable { \n COMMENT \n public static < T > BloomFilter < T > create ( \n Funnel < T > funnel , int expectedInsertions COMMENT , double fpp ) { \n - return create ( funnel , expectedInsertions , fpp , BloomFilterStrategies . MURMUR128_MITZ_32 ) ; \n + return create ( funnel , expectedInsertions , fpp , BloomFilterStrategies . MURMUR128_MITZ_64 ) ; \n } \n \n @ visiblefortesting", "msg_token": "Switch default BloomFilter strategy from the broken MURMUR128_MITZ_32 to the"} {"diff": " public final class GitHttpAdapter { \n private static boolean smartHttpPushNotSupported ( JGitInternalException e ) { \n if ( e . getCause ( ) instanceof NotSupportedException ) { \n NotSupportedException nse = ( NotSupportedException ) e . getCause ( ) ; \n - return nse . getMessage ( ) . toLowerCase ( ) . contains ( STRING0 ) ; \n + String message = nse . getMessage ( ) ; \n + return message != null && message . toLowerCase ( ) . contains ( STRING0 ) ; \n } \n return false ; \n }", "msg_token": "Fix possible NPE in GitHttpAdapter"} {"diff": " public class LocalStore extends Store implements Serializable \n HEADERS_TO_SAVE . add ( STRING0 ) ; \n HEADERS_TO_SAVE . add ( STRING1 ) ; \n } \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + static private String GET_MESSAGES_COLS = \n + STRING2 \n + + STRING3 ; \n + \n \n COMMENT \n COMMENT \n public class LocalStore extends Store implements Serializable \n private String prefId = null ; \n private String mPushState = null ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private String GET_MESSAGES_COLS = \n - \n - STRING2 \n - + STRING4 ; \n - \n \n public LocalFolder ( String name ) \n {", "msg_token": "Lift our column list for load messages out to the LocalStore as the"} {"diff": " public class MaterialShowcaseView extends FrameLayout implements View . OnTouchLis \n return this ; \n } \n \n + public Builder setListener ( IShowcaseListener listener ) { \n + showcaseView . addShowcaseListener ( listener ) ; \n + return this ; \n + } \n + \n public Builder singleUse ( String showcaseID ) { \n showcaseView . singleUse ( showcaseID ) ; \n return this ;", "msg_token": "added listener setter to builder"} {"diff": " public class MessagingController implements Runnable \n if ( K9 . DEBUG ) \n { \n Log . i ( K9 . LOG_TAG , STRING0 \n - + STRING1 + Utility . combine ( accountUuids , STRING2 ) \n - + STRING3 + Utility . combine ( folderNames , STRING2 ) \n + + STRING4 + Utility . combine ( accountUuids , STRING2 ) \n + + STRING5 + Utility . combine ( folderNames , STRING2 ) \n + STRING6 + ( messages != null ? messages . length : null ) \n + STRING7 + query \n + STRING8 + integrate \n public class MessagingController implements Runnable \n tmpFoldersToSearch . add ( localFolder ) ; \n } \n } \n + if ( tmpFoldersToSearch . size ( ) < NUMBER0 ) \n + { \n + continue ; \n + } \n foldersToSearch = tmpFoldersToSearch ; \n } \n catch ( MessagingException me )", "msg_token": "If we re doing a folder involved search and an account has no folders"} {"diff": " public class Constant { \n \n public static final int DESIRED_FAVICON_SIZE = NUMBER0 ; \n \n - public static final String WELCOME_MESSAGE_URL = STRING0 ; \n - public static final String WELCOME_MESSAGE_DISPLAY_URL = STRING1 ; \n + public static final String WELCOME_MESSAGE_URL = STRING2 ; \n + public static final String WELCOME_MESSAGE_DISPLAY_URL = STRING3 ; \n \n SINGLE \n SINGLE", "msg_token": "Changed welcome url"} {"diff": " public class ModuleNode extends ASTNode implements Constants { \n private List classes = new ArrayList ( ) ; \n private List methods = new ArrayList ( ) ; \n private List imports = new ArrayList ( ) ; \n + private List importPackages = new ArrayList ( ) ; \n private Map importIndex = new HashMap ( ) ; \n private CompileUnit unit ; \n private String packageName ; \n public class ModuleNode extends ASTNode implements Constants { \n return imports ; \n } \n \n + public List getImportPackages ( ) { \n + return importPackages ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class ModuleNode extends ASTNode implements Constants { \n importIndex . put ( alias , className ) ; \n } \n \n + public void addImportPackage ( String packageName ) { \n + importPackages . add ( packageName ) ; \n + } \n + \n public void addStatement ( Statement node ) { \n statementBlock . addStatement ( node ) ; \n }", "msg_token": "added support for packages to be added as import statements"} {"diff": " import NAMESPACE ; \n public class EcIesParameterSpec implements AlgorithmParameterSpec { \n \n @ retention ( RetentionPolicy . SOURCE ) \n - @ intdef ( value = { PointFormat . UNCOMPRESSED , PointFormat . COMPRESSED } ) \n + @ intdef ( { \n + PointFormat . UNSPECIFIED , \n + PointFormat . UNCOMPRESSED , \n + PointFormat . COMPRESSED , \n + } ) \n public @ interface PointFormatEnum { } \n \n COMMENT", "msg_token": "Add missing value for EcIesParameterSpec PointFormatEnum"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ configuration \n - @ conditionalonclass ( AuthenticationManager . class ) \n + @ conditionalonclass ( { AuthenticationManager . class , \n + GlobalAuthenticationConfigurerAdapter . class } ) \n @ enableconfigurationproperties \n @ import ( { SpringBootWebSecurityConfiguration . class , \n AuthenticationManagerConfiguration . class } )", "msg_token": "Make Security auto config conditional on spring security config"} {"diff": " public class PSurfaceLWJGL implements PSurface { \n fullScreenRequested = true ; \n } \n \n + if ( graphics . is2X ( ) ) { \n + SINGLE \n + System . setProperty ( STRING0 , STRING1 ) ; \n + SINGLE \n + } \n + \n SINGLE \n SINGLE", "msg_token": "enable retina in lwjgl"} {"diff": " public class AndroidServiceProxy extends ProcessProxy { \n @ override \n protected void performTask ( ) throws IOException { \n String svc = mServiceName ; \n + Log . d ( mTag , STRING0 + mServiceName ) ; \n + SystemProperties . set ( SVC_STOP_CMD , mServiceName ) ; \n + if ( ! blockUntil ( SVC_STATE_STOPPED , NUMBER0 ) ) { \n + throw new IOException ( STRING1 + svc \n + + STRING2 ) ; \n + } \n + \n Log . d ( mTag , STRING3 + svc ) ; \n SystemProperties . set ( SVC_START_CMD , svc ) ; \n \n public class VpnServiceBinder extends Service { \n public void onStart ( Intent intent , int startId ) { \n super . onStart ( intent , startId ) ; \n setForeground ( true ) ; \n + android . util . Log . d ( STRING4 , STRING5 ) ; \n } \n \n public IBinder onBind ( Intent intent ) {", "msg_token": "Stop a daemon before starting it"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class ServerStarter { \n \n - private static final Logger Log = LoggerFactory . getLogger ( ServerStarter . class ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Prevent NoClassDefFoundError during Openfire start"} {"diff": " public class MiroGuideChannelViewActivity extends SherlockActivity { \n if ( exception == null ) { \n txtvTitle . setText ( channel . getName ( ) ) ; \n txtVDescription . setText ( channel . getDescription ( ) ) ; \n - String [ ] entryNames = new String [ channel . getItems ( ) . size ( ) ] ; \n - for ( int i = NUMBER0 ; i < channel . getItems ( ) . size ( ) ; i ++ ) { \n - entryNames [ i ] = channel . getItems ( ) . get ( i ) . getName ( ) ; \n - } \n + \n MiroGuideItemlistAdapter listAdapter = new MiroGuideItemlistAdapter ( \n MiroGuideChannelViewActivity . this , NUMBER0 , \n channel . getItems ( ) ) ;", "msg_token": "Removed unused variable"} {"diff": " final class ActionBarHandlerWatson extends ActionBar { \n @ override \n void onMenuInflated ( Menu menu ) { \n int maxItems = MAX_ACTION_BAR_ITEMS_PORTRAIT ; \n - int orientation = getActivity ( ) . getWindowManager ( ) . getDefaultDisplay ( ) . getOrientation ( ) ; \n - if ( orientation == Configuration . ORIENTATION_LANDSCAPE ) { \n + if ( getActivity ( ) . getResources ( ) . getConfiguration ( ) . orientation == Configuration . ORIENTATION_LANDSCAPE ) { \n maxItems = MAX_ACTION_BAR_ITEMS_LANDSCAPE ; \n }", "msg_token": "Fix orientation check"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n mTethering . getTetherableBluetoothRegexs ( ) . length != NUMBER0 ) && \n mTethering . getUpstreamIfaceRegexs ( ) . length != NUMBER0 ) ; \n \n + try { \n + nmService . registerObserver ( mTethering ) ; \n + } catch ( RemoteException e ) { \n + loge ( STRING0 + e ) ; \n + } \n + \n if ( DBG ) { \n mInetLog = new ArrayList ( ) ; \n } \n public class Tethering extends INetworkManagementEventObserver . Stub { \n mNMService = nmService ; \n mLooper = looper ; \n \n - SINGLE \n - try { \n - mNMService . registerObserver ( this ) ; \n - } catch ( RemoteException e ) { \n - Log . e ( TAG , STRING0 + e ) ; \n - } \n - \n mIfaces = new HashMap < String , TetherInterfaceSM > ( ) ; \n \n SINGLE", "msg_token": "Do not register the callbacks in the constructor"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n } else if ( arg . equals ( STRING0 ) ) { \n SINGLE \n record = new OpenHABConfigurationRecord ( domain , STRING1 , STRING2 , true ) ; \n + record . type = OpenHABConfigurationRecord . TYPE . LIST ; \n record . value = zController . getControllerType ( ) . getLabel ( ) ; \n record . addValue ( ZWaveDeviceType . PRIMARY . toString ( ) , ZWaveDeviceType . PRIMARY . toString ( ) ) ; \n record . addValue ( ZWaveDeviceType . SECONDARY . toString ( ) , ZWaveDeviceType . SECONDARY . toString ( ) ) ;", "msg_token": "Set record type to LIST"} {"diff": " public final class Configuration { \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n public < T > void set ( PreparedStatement stmt , Path < ? > path , int i , T value ) throws SQLException { \n if ( Null . class . isInstance ( value ) ) { \n - Integer sqlType = path != null ? ColumnMetadata . getColumnMetadata ( path ) . getJdbcType ( ) : null ; \n + Integer sqlType = null ; \n + if ( path != null ) { \n + ColumnMetadata columnMetadata = ColumnMetadata . getColumnMetadata ( path ) ; \n + if ( columnMetadata . hasJdbcType ( ) ) { \n + sqlType = columnMetadata . getJdbcType ( ) ; \n + } \n + } \n if ( sqlType != null ) { \n stmt . setNull ( i , sqlType ) ; \n } else {", "msg_token": "Fix setting root path to null"} {"diff": " public class LibraryTopLevelActivity extends LibraryBaseActivity { \n ) ; \n myItems . add ( NUMBER0 , mySearchResultsItem ) ; \n getListView ( ) . invalidateViews ( ) ; \n + ( ( LibraryAdapter ) getListAdapter ( ) ) . notifyDataSetChanged ( ) ; \n mySearchResultsItem . run ( ) ; \n }", "msg_token": "fixed possible IllegalStateException"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ConfiguredCommand < T extends Configuration > implements Comm \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some docs"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DefaultIdeaLanguageLevel implements IdeaLanguageLevel , Serializable \n return STRING0 + level + STRING1 ; \n } \n \n + public JavaVersion toJavaVersion ( ) { \n + if ( level != null ) { \n + String javaVersionString = level . replaceFirst ( STRING2 , STRING3 ) ; \n + try { \n + return JavaVersion . valueOf ( javaVersionString ) ; \n + } catch ( IllegalArgumentException e ) { \n + SINGLE \n + } \n + } \n + return null ; \n + } \n + \n @ override \n public boolean equals ( Object o ) { \n if ( this == o ) { \n public class DefaultIdeaLanguageLevel implements IdeaLanguageLevel , Serializable \n public int hashCode ( ) { \n return level != null ? level . hashCode ( ) : NUMBER0 ; \n } \n - } \n + }", "msg_token": "Add function to convert DefaultIdeaLanguageLevel to JavaVersion"} {"diff": " public class ContentView extends FrameLayout { \n } \n } \n \n + boolean fetchPageHtml = Settings . get ( ) . getArticleModeEnabled ( ) && ArticleContent . tryForArticleContent ( currentUrl ) ; \n + Log . d ( STRING0 , STRING1 + fetchPageHtml ) ; \n SINGLE \n - mWebRenderer . runPageInspector ( ArticleContent . tryForArticleContent ( currentUrl ) ) ; \n + mWebRenderer . runPageInspector ( fetchPageHtml ) ; \n \n if ( equalUrl ) { \n updateAppsForUrl ( currentUrl ) ;", "msg_token": "Don t fetch ArticleMode content if setting is disable"} {"diff": " public class CamelContextFactoryBean extends IdentifiedType implements RouteCont \n SINGLE \n public SpringCamelContext getContext ( ) throws Exception { \n if ( context == null ) { \n - context = new SpringCamelContext ( getApplicationContext ( ) ) ; \n + context = createContext ( ) ; \n } \n return context ; \n } \n public class CamelContextFactoryBean extends IdentifiedType implements RouteCont \n SINGLE \n \n COMMENT \n + COMMENT \n + COMMENT \n + protected SpringCamelContext createContext ( ) { \n + return new SpringCamelContext ( getApplicationContext ( ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n protected void installRoutes ( ) throws Exception {", "msg_token": "Allow context customization at creation time"} {"diff": " public class DirectComponent extends DefaultComponent { \n \n @ override \n protected void doStop ( ) throws Exception { \n - ServiceHelper . stopService ( consumers . values ( ) ) ; \n + ServiceHelper . stopServices ( consumers ) ; \n consumers . clear ( ) ; \n super . doStop ( ) ; \n }", "msg_token": "Fixed exception during stopping about concurrent access to hash map"} {"diff": " public class DiagnosticGroups { \n \n static { \n DiagnosticGroups . registerGroup ( STRING0 , \n - JSTypeCreatorFromJSDoc . INVALID_GENERICS_INSTANTIATION , \n NewTypeInference . NULLABLE_DEREFERENCE ) ; \n \n SINGLE", "msg_token": "Remove invalid generics from warningsOverload group"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MavenServerFunction extends RepositoryFunction { \n try { \n for ( Map . Entry < String , FileValue > entry : settingsFiles . entrySet ( ) ) { \n fingerprint . addString ( entry . getKey ( ) ) ; \n - fingerprint . addBytes ( entry . getValue ( ) . realRootedPath ( ) . asPath ( ) . getMD5Digest ( ) ) ; \n + Path path = entry . getValue ( ) . realRootedPath ( ) . asPath ( ) ; \n + if ( path . exists ( ) ) { \n + fingerprint . addBoolean ( true ) ; \n + fingerprint . addBytes ( path . getMD5Digest ( ) ) ; \n + } else { \n + fingerprint . addBoolean ( false ) ; \n + } \n } \n } catch ( IOException e ) { \n throw new RepositoryFunctionException ( e , Transience . TRANSIENT ) ;", "msg_token": "Fix fingerprinting of Maven settings file"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n . append ( STRING0 ) . append ( greyExtraLight ) . append ( STRING1 ) \n . append ( STRING2 ) . append ( marginSmall ) . append ( STRING3 ) ; \n \n + SINGLE \n + sbHtml . append ( STRING4 ) . append ( marginSmall ) . append ( STRING5 ) \n + . append ( STRING6 ) . append ( marginSmall ) . append ( STRING5 ) \n + . append ( STRING7 ) . append ( greyLight ) . append ( STRING8 ) ; \n + \n SINGLE \n sbHtml . append ( STRING9 ) . append ( linkColor ) . append ( STRING8 ) ;", "msg_token": "Added blockquote styling to ReaderPostDetailFragment"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { \n final View view = inflater . inflate ( R . layout . reader_fragment_post_detail , container , false ) ; \n - final Context context = container . getContext ( ) ; \n \n SINGLE \n mListView = ( WPListView ) view . findViewById ( android . R . id . list ) ;", "msg_token": "Removed unused context from previous merge"} {"diff": " public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo \n SVDModel . SVDParameters parms = new SVDModel . SVDParameters ( ) ; \n parms . _train = _parms . _train ; \n parms . _ignored_columns = _parms . _ignored_columns ; \n - parms . _drop_const_cols = _parms . _drop_const_cols ; \n + parms . _ignore_const_cols = _parms . _ignore_const_cols ; \n parms . _drop_na20_cols = _parms . _drop_na20_cols ; \n parms . _score_each_iteration = _parms . _score_each_iteration ; \n parms . _useAllFactorLevels = true ; SINGLE", "msg_token": "Rename constant col parameter"} {"diff": " public class UsageInfo { \n if ( startOffset < NUMBER0 ) { \n throw new IllegalArgumentException ( STRING0 + element + STRING1 + startOffset ) ; \n } \n - if ( startOffset >= endOffset ) { \n + if ( startOffset > endOffset ) { \n throw new IllegalArgumentException ( STRING0 + element + STRING2 + ( endOffset - startOffset ) ) ; \n }", "msg_token": "allow empty usage infos"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface Configurable \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface Configuration extends Serializable \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface Contextualizable", "msg_token": "fixed avalon links patch by Peter Dobratz"} {"diff": " public class TfsShellTest { \n Assert . assertEquals ( true , mTfs . getInfo ( file ) . isPinned ) ; \n } \n \n - COMMENT \n - COMMENT \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix comment formatting"} {"diff": " public class EclipseImportBuilder extends ProjectImportBuilder < String > implement \n } \n final Element classpathElement = JDOMUtil . loadDocument ( new File ( path , EclipseXml . DOT_CLASSPATH_EXT ) ) . getRootElement ( ) ; \n final Module module = moduleModel . newModule ( modulesDirectory + STRING0 + EclipseProjectFinder . findProjectName ( path ) + IdeaXml . IML_EXT , StdModuleTypes . JAVA ) ; \n + result . add ( module ) ; \n final ModifiableRootModel rootModel = ModuleRootManager . getInstance ( module ) . getModifiableModel ( ) ; \n rootModels [ idx ++ ] = rootModel ;", "msg_token": "add module to project structure on import"} {"diff": " public class OverloadResolutionResultsImpl < D extends CallableDescriptor > impleme \n } \n \n public static < D extends CallableDescriptor > OverloadResolutionResultsImpl < D > nameNotFound ( ) { \n - return new OverloadResolutionResultsImpl < D > ( Code . NAME_NOT_FOUND , Collections . < ResolvedCallWithTrace < D > > emptyList ( ) ) ; \n + OverloadResolutionResultsImpl < D > results = new OverloadResolutionResultsImpl < D > ( \n + Code . NAME_NOT_FOUND , Collections . < ResolvedCallWithTrace < D > > emptyList ( ) ) ; \n + results . setAllCandidates ( Collections . < ResolvedCall < D > > emptyList ( ) ) ; \n + return results ; \n } \n \n public static < D extends CallableDescriptor > OverloadResolutionResultsImpl < D > singleFailedCandidate ( ResolvedCallWithTrace < D > candidate ) {", "msg_token": "Set all candidates empty collection if no candidates found"} {"diff": " public abstract class Persist { \n \n private static StringBuilder escapeBytes ( byte [ ] bytes , int i , StringBuilder sb ) { \n for ( ; i < bytes . length ; i ++ ) { \n - byte b = bytes [ i ] ; \n - char c = NUMBER0 ; \n + char b = ( char ) bytes [ i ] , c = NUMBER0 ; \n switch ( b ) { \n case STRING0 : c = STRING0 ; break ; \n case STRING1 : c = STRING2 ; break ;", "msg_token": "Missed a char cast"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface Promise < T > { \n } \n \n @ notnull \n - static < T > Promise < T > wrap ( @ notnull AsyncResult < T > asyncResult ) { \n - final AsyncPromise < T > promise = new AsyncPromise < > ( ) ; \n - asyncResult . doWhenDone ( ( Consumer < T > ) result - > promise . setResult ( result ) ) . doWhenRejected ( promise : : setError ) ; \n - return promise ; \n - } \n - \n - @ notnull \n Promise < T > done ( @ notnull Consumer < ? super T > done ) ; \n \n @ notnull", "msg_token": "remove Promise wrap"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class FavouritesDbHelper extends SQLiteOpenHelper { \n \n private void checkFavoritePoints ( ) { \n if ( favoriteGroups == null ) { \n - favoriteGroups = new LinkedHashMap < String , List < FavouritePoint > > ( ) ; \n + favoriteGroups = new TreeMap < String , List < FavouritePoint > > ( Collator . getInstance ( ) ) ; \n SQLiteDatabase db = getWritableDatabase ( ) ; \n if ( db != null ) { \n Cursor query = db . rawQuery ( STRING0 + FAVOURITE_COL_NAME + STRING1 + FAVOURITE_COL_CATEGORY + STRING1 + FAVOURITE_COL_LAT + STRING2 + FAVOURITE_COL_LON + STRING3 + SINGLE", "msg_token": "Add collator instance"} {"diff": " public class PropertyFileConfiguratorTest \n . build ( ) ; \n \n InMemoryAppender appender = new InMemoryAppender ( PropertyFileConfigurator . log ) ; \n - PropertyFileConfigurator configurator = new PropertyFileConfigurator ( emptyPropertyFile ) ; \n + new PropertyFileConfigurator ( emptyPropertyFile ) ; \n \n assertThat ( appender . toString ( ) , containsString ( String . format ( \n STRING0 ,", "msg_token": "Removed unused variable keeping side effect in log"} {"diff": " public class XBooleanFilterTests extends ElasticsearchLuceneTestCase { \n rightResult . or ( rightIter ) ; \n } \n \n - assertThat ( leftResult . cardinality ( ) , equalTo ( leftResult . cardinality ( ) ) ) ; \n + assertThat ( leftResult . cardinality ( ) , equalTo ( rightResult . cardinality ( ) ) ) ; \n for ( int i = NUMBER0 ; i < reader . maxDoc ( ) ; i ++ ) { \n assertThat ( errorMsg ( clauses , topLevel ) + STRING0 + i , leftResult . get ( i ) , equalTo ( rightResult . get ( i ) ) ) ; \n }", "msg_token": "Fixed small test bug"} {"diff": " public class MetricsServiceImpl implements MetricsService { \n NinjaProperties ninjaProps ) { \n \n this . ninjaProps = ninjaProps ; \n - this . metricRegistry = new MetricRegistry ( ) ; \n + this . metricRegistry = appMetrics ; \n \n }", "msg_token": "Use injected MetricRegistry"} {"diff": " public class JSFSubsystemTestCase extends AbstractSubsystemBaseTest { \n protected String getSubsystemXml ( ) throws IOException { \n return STRING0 ; \n } \n + \n + @ override \n + protected String getSubsystemXsdPath ( ) throws Exception { \n + return STRING1 ; \n + } \n + \n + @ override \n + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { \n + return new String [ ] { \n + STRING2 \n + } ; \n + } \n }", "msg_token": "add XML validation for jsf subsystem"} {"diff": " public class BinaryFrame extends DataFrame \n @ override \n public Type getType ( ) \n { \n + if ( getOpCode ( ) == OpCode . CONTINUATION ) \n + return Type . CONTINUATION ; \n return Type . BINARY ; \n } \n } \n public class TextFrame extends DataFrame \n @ override \n public Type getType ( ) \n { \n + if ( getOpCode ( ) == OpCode . CONTINUATION ) \n + return Type . CONTINUATION ; \n return Type . TEXT ; \n }", "msg_token": "permessage deflate extension causes protocol error in Firefox Chrome"} {"diff": " public enum BlockStoreContext { \n COMMENT \n private void initializeLocalBlockWorkerClientPool ( ) { \n if ( ! mLocalBlockWorkerClientPoolInitialized . getAndSet ( true ) ) { \n - synchronized ( mLocalBlockWorkerClientPool ) { \n + synchronized ( mLocalBlockWorkerClientPoolInitialized ) { \n NetAddress localWorkerAddress = \n getWorkerAddress ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ; \n SINGLE \n public enum BlockStoreContext { \n } else { \n mLocalBlockWorkerClientPool = new BlockWorkerClientPool ( localWorkerAddress ) ; \n } \n - \n } \n } \n }", "msg_token": "fix the lock"} {"diff": " public abstract class AbstractAuthenticationToken implements Authentication { \n public String toString ( ) { \n StringBuffer sb = new StringBuffer ( ) ; \n sb . append ( super . toString ( ) ) . append ( STRING0 ) ; \n - sb . append ( STRING1 ) . append ( this . getPrincipal ( ) ) . append ( STRING2 ) ; \n + sb . append ( STRING3 ) . append ( this . getPrincipal ( ) ) . append ( STRING2 ) ; \n sb . append ( STRING4 ) ; \n sb . append ( STRING5 ) . append ( this . isAuthenticated ( ) ) . append ( STRING2 ) ; \n sb . append ( STRING6 ) . append ( this . getDetails ( ) ) . append ( STRING2 ) ;", "msg_token": "Corrected toString output using username instead of principal"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n public class TitanGraphConfiguration implements GraphConfiguration {", "msg_token": "Added Rexster Titan configuration"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShowInfoFragment extends SherlockFragment implements LoaderCallback \n } \n \n private void onRateOnTrakt ( ) { \n - Activity activity = getActivity ( ) ; \n - if ( ServiceUtils . isTraktCredentialsValid ( activity ) ) { \n + if ( ServiceUtils . isTraktCredentialsValid ( getActivity ( ) ) ) { \n TraktRateDialogFragment rateShow = TraktRateDialogFragment . newInstance ( getShowTvdbId ( ) ) ; \n rateShow . show ( getFragmentManager ( ) , STRING0 ) ; \n fireTrackerEvent ( STRING1 ) ; \n } else { \n - startActivity ( new Intent ( activity , ConnectTraktActivity . class ) ) ; \n + startActivity ( new Intent ( getActivity ( ) , ConnectTraktActivity . class ) ) ; \n } \n }", "msg_token": "Improve code readability avoid import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class OCSVTransformer extends OAbstractTransformer { \n private boolean unicode = true ; \n \n public static boolean isFinite ( final float value ) { \n - return Math . abs ( value ) <= FloatConsts . MAX_VALUE ; \n + return Math . abs ( value ) <= Float . MAX_VALUE ; \n } \n \n @ override \n public class OCSVTransformer extends OAbstractTransformer { \n COMMENT \n COMMENT \n protected boolean isFinite ( Float f ) { \n - return Math . abs ( f ) <= FloatConsts . MAX_VALUE ; \n + return Math . abs ( f ) <= Float . MAX_VALUE ; \n } \n \n SINGLE", "msg_token": "fixup avoid internale imports"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class IncrementingFakeClock implements Clock {", "msg_token": "Fix malformed Javadoc"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ListAccounts implements Controller { \n public ModelAndView handleRequest ( HttpServletRequest request , HttpServletResponse response ) throws Exception { \n SINGLE \n SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n \n SINGLE \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PostAccounts implements Controller { \n \n public ModelAndView handleRequest ( HttpServletRequest request , HttpServletResponse response ) throws Exception { \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n \n SINGLE", "msg_token": "Throw an exception instead of sending back a HTTP error code"} {"diff": " class WebSocketClientProtocolHandshakeHandler extends ChannelInboundHandlerAdapt \n return ; \n } \n \n - if ( ! handshaker . isHandshakeComplete ( ) ) { \n - handshaker . finishHandshake ( ctx . channel ( ) , ( FullHttpResponse ) msg ) ; \n - ctx . fireUserEventTriggered ( \n - WebSocketClientProtocolHandler . ClientHandshakeStateEvent . HANDSHAKE_COMPLETE ) ; \n - ctx . pipeline ( ) . remove ( this ) ; \n - return ; \n + FullHttpResponse response = ( FullHttpResponse ) msg ; \n + try { \n + if ( ! handshaker . isHandshakeComplete ( ) ) { \n + handshaker . finishHandshake ( ctx . channel ( ) , response ) ; \n + ctx . fireUserEventTriggered ( \n + WebSocketClientProtocolHandler . ClientHandshakeStateEvent . HANDSHAKE_COMPLETE ) ; \n + ctx . pipeline ( ) . remove ( this ) ; \n + return ; \n + } \n + throw new IllegalStateException ( STRING0 ) ; \n + } finally { \n + response . release ( ) ; \n } \n - throw new IllegalStateException ( STRING0 ) ; \n } \n }", "msg_token": "Fix the leak in the WebSocketClientProtocolHandshakeHandler"} {"diff": " public class Ping \n \n private static CountDownLatch pongConnectionLatch = new CountDownLatch ( NUMBER0 ) ; \n \n - private static long numPongsReceived = NUMBER1 ; \n + private static long numPongsReceived ; \n \n public static void main ( final String [ ] args ) throws Exception \n { \n public class Ping \n \n warmup . get ( ) ; \n histogram . reset ( ) ; \n - numPongsReceived = NUMBER1 ; \n \n System . out . println ( STRING0 + NUMBER_OF_MESSAGES + STRING1 ) ; \n \n public class Ping \n { \n final IdleStrategy idleStrategy = new BusySpinIdleStrategy ( ) ; \n \n + numPongsReceived = NUMBER1 ; SINGLE \n do \n { \n final int fragmentsRead = pongSubscription . poll ( FRAGMENT_COUNT_LIMIT ) ;", "msg_token": "cleaned up reset strategy for numPongsReceived for clarity and thread usage"} {"diff": " public class ASTHelpers { \n COMMENT \n COMMENT \n public static Type getType ( Tree tree ) { \n - if ( tree instanceof JCFieldAccess ) { \n - return ( ( JCFieldAccess ) tree ) . sym . type ; \n - } else if ( tree instanceof JCTree ) { \n + if ( tree instanceof JCTree ) { \n return ( ( JCTree ) tree ) . type ; \n - } else { \n - return null ; \n } \n + return null ; \n } \n \n public static String getAnnotationName ( AnnotationTree tree ) {", "msg_token": "Remove questionable handling of JCFieldAccess from ASTHelpers"} {"diff": " public class NotificationStackScrollLayout extends ViewGroup \n } \n } \n } \n - \n - mActivePointerId = INVALID_POINTER ; \n - endDrag ( ) ; \n } \n + \n + mActivePointerId = INVALID_POINTER ; \n + endDrag ( ) ; \n } \n + \n break ; \n case MotionEvent . ACTION_CANCEL : \n if ( mIsBeingDragged && getChildCount ( ) > NUMBER0 ) {", "msg_token": "Fixed a bug in the scrolling logic"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class FromDataTableTest { \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class TableDifferTest {", "msg_token": "Don t use deprecated methods"} {"diff": " public class SmackException extends Exception { \n sb . append ( STRING0 ) ; \n } \n SINGLE \n - sb . deleteCharAt ( sb . length ( ) ) ; \n + sb . deleteCharAt ( sb . length ( ) - NUMBER0 ) ; \n return new ConnectionException ( sb . toString ( ) , failedAddresses ) ; \n }", "msg_token": "Fix StringIndexOutOfBoundsException in ConnectionException"} {"diff": " public class RefParser { \n String [ ] longRefPaths = refPaths . split ( STRING0 ) ; \n List < Ref > refs = new ArrayList < Ref > ( ) ; \n for ( String longRefPatch : longRefPaths ) { \n - refs . add ( createRef ( hash , longRefPatch ) ) ; \n + Ref ref = createRef ( hash , longRefPatch ) ; \n + if ( ref . getType ( ) != Ref . RefType . STASH ) { \n + refs . add ( ref ) ; \n + } \n } \n return refs ; \n }", "msg_token": "remove stash tag"} {"diff": " public class SessionSetting { \n } \n \n public void bindTo ( SocketServer server ) { \n + if ( isAnyResponse ( ) ) { \n + server . response ( getResponseHandler ( ) ) ; \n + return ; \n + } \n + \n server . request ( getRequestMatcher ( ) ) . response ( getResponseHandler ( ) ) ; \n }", "msg_token": "added any response to socket json config"} {"diff": " public class ShortcutManager implements NativePreviewHandler , \n \n return filtered ; \n } \n - \n + \n private boolean handleKeyDown ( NativeEvent event ) \n { \n SINGLE \n public class ShortcutManager implements NativePreviewHandler , \n { \n NativeEvent event = ( NativeEvent ) object ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! keyBuffer_ . isEmpty ( ) ) \n + { \n + for ( Map . Entry < KeyMapType , KeyMap > entry : keyMaps_ . entrySet ( ) ) \n + { \n + if ( entry . getValue ( ) . isPrefix ( keyBuffer_ ) ) \n + { \n + event . stopPropagation ( ) ; \n + event . preventDefault ( ) ; \n + return ; \n + } \n + } \n + } \n + \n SINGLE \n KeyCombination keys = new KeyCombination ( event ) ; \n int keyCode = keys . getKeyCode ( ) ;", "msg_token": "ensure prefix keys don t cause beeps"} {"diff": " public class WeldApplication extends ForwardingApplication { \n synchronized ( this ) { \n if ( beanManager == null ) { \n try { \n + SINGLE \n beanManager = ( BeanManager ) new InitialContext ( ) . lookup ( STRING0 ) ; \n - } catch ( NamingException e ) { \n + } catch ( NamingException | IllegalArgumentException e ) { \n return null ; \n } \n }", "msg_token": "Fix minor shutdown bug"} {"diff": " public class ElasticSearchIndex implements IndexProvider { \n return value ; \n } else if ( value instanceof UUID ) { \n return value . toString ( ) ; \n - } else throw new IllegalArgumentException ( STRING0 + value ) ; \n + } else throw new IllegalArgumentException ( STRING0 + value . getClass ( ) + STRING1 + value + STRING2 ) ; \n } \n \n @ override", "msg_token": "Add classname to ES s Unsupported type exception"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract class IncrementalTestCase extends TestCase { \n private static class RootStripper { \n public abstract class IncrementalTestCase extends TestCase { \n } \n } \n \n - static { \n - Logger . setFactory ( new MyFactory ( ) ) ; \n - } \n - \n private static RootStripper stripper = new RootStripper ( ) ; \n \n private final String groupName ; \n public abstract class IncrementalTestCase extends TestCase { \n private String baseDir ; \n private String workDir ; \n \n + @ suppresswarnings ( STRING0 ) \n protected IncrementalTestCase ( final String name ) throws Exception { \n super ( name ) ; \n groupName = name ;", "msg_token": "Restore log factory after JPS tests cleanup"} {"diff": " class JBTerminalSystemSettingsProvider extends DefaultTabbedSettingsProvider imp \n \n @ override \n public boolean useAntialiasing ( ) { \n - return UISettings . getInstance ( ) . ANTIALIASING_IN_EDITOR ; \n + return true ; SINGLE \n } \n \n @ override", "msg_token": "Behave the same as EditorImpl"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ChunkOutputUi \n @ override \n public void onOutputHeightChanged ( int outputHeight , boolean ensureVisible ) \n { \n + SINGLE \n + if ( ensureVisible ) \n + { \n + Scope scope = getScope ( ) ; \n + if ( scope != null ) \n + { \n + display_ . unfold ( Range . fromPoints ( scope . getPreamble ( ) , \n + scope . getEnd ( ) ) ) ; \n + } \n + } \n + \n int height = \n outputWidget_ . getExpansionState ( ) == ChunkOutputWidget . COLLAPSED ? \n CHUNK_COLLAPSED_HEIGHT :", "msg_token": "unfold chunk code region when output completes for correct layout"} {"diff": " abstract class AbstractBuildConfigFields implements Iterable < Field > { \n } \n \n private static final Pattern VARIABLE_DEFINITION_PATTERN = Pattern . compile ( \n - STRING0 + \n + STRING1 + Pattern . quote ( STRING2 ) + STRING3 + \n STRING4 + \n STRING5 + \n STRING6 +", "msg_token": "Add support for arrays in AbstractBuildConfigFields"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class MockMvcWebConnection implements WebConnection { \n \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unnecessary imports"} {"diff": " public abstract class NineViewGroup extends ViewGroup { \n SINGLE \n SINGLE \n SINGLE \n - if ( visibility == GONE ) { \n - clearAnimation ( ) ; \n - } else if ( visibility == VISIBLE && mProxy != null ) { \n - setAnimation ( mProxy ) ; \n + if ( mProxy != null ) { \n + if ( visibility == GONE ) { \n + clearAnimation ( ) ; \n + } else if ( visibility == VISIBLE ) { \n + setAnimation ( mProxy ) ; \n + } \n } \n super . setVisibility ( visibility ) ; \n }", "msg_token": "Save a method class if we are native"} {"diff": " public final class ElementMatchers { \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 COMMENT \n public final class ElementMatchers { \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 COMMENT", "msg_token": "Added clarification to javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChangeSignatureGestureTest extends LightCodeInsightFixtureTestCase \n \n \n myFixture . doHighlighting ( ) ; \n - final String hint = STRING0 ; \n + final String hint = ChangeSignatureDetectorAction . CHANGE_SIGNATURE ; \n if ( shouldShow ) { \n final IntentionAction intention = myFixture . findSingleIntention ( hint ) ; \n myFixture . launchAction ( intention ) ;", "msg_token": "keep tests in sync"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MeterMetric implements Metric { \n COMMENT \n public static MeterMetric newMeter ( long interval , TimeUnit intervalUnit , TimeUnit unit ) { \n final MeterMetric meter = new MeterMetric ( unit ) ; \n - final Runnable ticker = new Runnable ( ) { \n + final SoftReference < MeterMetric > reference = new SoftReference < MeterMetric > ( meter ) ; \n + final Runnable job = new Runnable ( ) { \n @ override \n public void run ( ) { \n - meter . tick ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + reference . get ( ) . tick ( ) ; \n } \n } ; \n - TICK_THREAD . scheduleAtFixedRate ( ticker , interval , interval , intervalUnit ) ; \n + TICK_THREAD . scheduleAtFixedRate ( job , interval , interval , intervalUnit ) ; \n return meter ; \n }", "msg_token": "Fix a potential resource leak by letting MeterMetric instances get GC d"} {"diff": " public class DisUnityWindow extends javax . swing . JFrame { \n \n try { \n AssetBundleUtils . extract ( bundlePath , outputPath , progress ) ; \n - } catch ( IOException ex ) { \n + } catch ( Exception ex ) { \n new DialogBuilder ( parent ) \n . exception ( ex ) \n . withMessage ( STRING0 + bundleFile )", "msg_token": "Catch all asset bundle exceptions"} {"diff": " public abstract class GwtApplication implements EntryPoint , Application { \n try { \n graphics = new GwtGraphics ( root , config ) ; \n } catch ( Throwable e ) { \n + root . clear ( ) ; \n root . add ( new Label ( STRING0 ) ) ; \n return ; \n }", "msg_token": "fixed one more gwt fix for today"} {"diff": " public abstract class ParserBase extends ParserMinimalBase \n \n SINGLE \n @ override public Object getEmbeddedObject ( ) throws IOException { return null ; } \n - \n + \n + @ suppresswarnings ( STRING0 ) \n + @ override SINGLE \n + public byte [ ] getBinaryValue ( Base64Variant variant ) throws IOException \n + { \n + if ( _binaryValue == null ) { \n + if ( _currToken != JsonToken . VALUE_STRING ) { \n + _reportError ( STRING1 + _currToken + STRING2 ) ; \n + } \n + ByteArrayBuilder builder = _getByteArrayBuilder ( ) ; \n + _decodeBase64 ( getText ( ) , builder , variant ) ; \n + _binaryValue = builder . toByteArray ( ) ; \n + } \n + return _binaryValue ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add base impl of getBinaryValue Base64Variant"} {"diff": " public abstract class ORecordAbstract < T > implements ORecord < T > , ORecordInternal < \n public ORecordAbstract < T > reset ( ) { \n _status = ORecordElement . STATUS . LOADED ; \n _version = NUMBER0 ; \n + _size = NUMBER0 ; \n \n setDirty ( ) ; \n if ( _recordId != null )", "msg_token": "Fixed issue with non english characters reported by Krisztian"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed missing import"} {"diff": " public abstract class Vertex implements Serializable , Cloneable { \n for ( int i = NUMBER0 , j = NUMBER0 ; i < existing . length ; i ++ ) { \n if ( existing [ i ] == e ) continue ; \n copy [ j ++ ] = existing [ i ] ; \n - if ( j == existing . length ) { \n + if ( j == copy . length ) { \n SINGLE \n LOG . error ( STRING0 ) ; \n return existing ; \n } \n - } \n + } \n SINGLE \n for ( Edge edge : copy ) { \n if ( edge == e ) {", "msg_token": "Check against length of copy not length of original"} {"diff": " public interface HyperSpaceWalker < MP extends Model . Parameters , C extends HyperSp \n defaults = ( MP ) params . getClass ( ) . newInstance ( ) ; \n } \n catch ( Exception e ) { \n - throw new H2OIllegalArgumentException ( STRING0 ) ; \n + throw new H2OIllegalArgumentException ( STRING1 ) ; \n } \n \n SINGLE", "msg_token": "fixed typo in error message in HyperSpaceWalker java"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AsynchronousMergingProcessor extends AbstractMergingProcessor < Sessi \n final AsyncMethodsMetaData asyn = sessionBeanData . getAsyncMethods ( ) ; \n if ( asyn != null ) { \n for ( AsyncMethodMetaData method : asyn ) { \n - final Method m = MethodResolutionUtils . resolveMethod ( method . getMethodName ( ) , method . getMethodParams ( ) , componentClass , deploymentReflectionIndex ) ; \n - description . addAsynchronousMethod ( MethodIdentifier . getIdentifierForMethod ( m ) ) ; \n + final Collection < Method > methods = MethodResolutionUtils . resolveMethods ( method . getMethodName ( ) , method . getMethodParams ( ) , componentClass , deploymentReflectionIndex ) ; \n + for ( final Method m : methods ) { \n + description . addAsynchronousMethod ( MethodIdentifier . getIdentifierForMethod ( m ) ) ; \n + } \n } \n } \n }", "msg_token": "Fix async merging"} {"diff": " public abstract class CamelServletContextListener < R extends Registry > implements \n COMMENT \n public static ServletCamelContext instance ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String CAMEL_CONTEXT_KEY = STRING0 ; \n + \n protected static final Logger LOG = LoggerFactory . getLogger ( CamelServletContextListener . class ) ; \n protected ServletCamelContext camelContext ; \n protected CamelContextLifecycle < R > camelContextLifecycle ; \n public abstract class CamelServletContextListener < R extends Registry > implements \n instance = camelContext ; \n } \n \n + SINGLE \n + sce . getServletContext ( ) . setAttribute ( CAMEL_CONTEXT_KEY , camelContext ) ; \n + \n LOG . info ( STRING1 ) ; \n } \n \n public abstract class CamelServletContextListener < R extends Registry > implements \n camelContext = null ; \n registry = null ; \n instance = null ; \n + \n + SINGLE \n + sce . getServletContext ( ) . removeAttribute ( CAMEL_CONTEXT_KEY ) ; \n + \n LOG . info ( STRING2 ) ; \n }", "msg_token": "camel servletlistener Store created CamelContext on ServletContext attribute"} {"diff": " import NAMESPACE ; \n public class CraftingHandler { \n \n @ subscribeevent \n - public void onCrafing ( PlayerEvent . ItemCraftedEvent event ) { \n + public void onCrafting ( PlayerEvent . ItemCraftedEvent event ) { \n Item item = event . crafting . getItem ( ) ; \n \n if ( item . equals ( BuildCraftCore . woodenGearItem ) ) {", "msg_token": "Fix a typ"} {"diff": " public class Picasso { \n \n private static final String FILE_SCHEME = STRING0 ; \n private static final String CONTENT_SCHEME = STRING1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private static final Object DECODE_LOCK = new Object ( ) ; \n \n SINGLE", "msg_token": "Add a comment for the decoding lock"} {"diff": " public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \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 protected abstract ForAdvice bind ( MethodDescription . InDefinedShape adviceMethod , \n public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \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", "msg_token": "Added additional information to new origin patterns"} {"diff": " public abstract class JCVideoPlayer extends FrameLayout implements JCMediaPlayer \n if ( ( System . currentTimeMillis ( ) - lastAutoFullscreenTime ) > NUMBER0 \n && isCurrentMediaListener ( ) \n && currentState == CURRENT_STATE_PLAYING \n - && currentScreen != SCREEN_WINDOW_FULLSCREEN ) { \n + && currentScreen != SCREEN_WINDOW_FULLSCREEN \n + && currentScreen != SCREEN_WINDOW_TINY ) { \n lastAutoFullscreenTime = System . currentTimeMillis ( ) ; \n startWindowFullscreen ( ) ; \n }", "msg_token": "tiny can not start fullscreen"} {"diff": " public class TankBucketHandler implements IBucketHandler { \n \n int qty = tank . empty ( BuildCraftAPI . BUCKET_VOLUME , false ) ; \n \n - ItemStack filledBucket = BuildCraftAPI . getFilledItemForLiquid ( tank . getLiquidId ( ) ) ; \n + ItemStack filledBucket = BuildCraftAPI . fillLiquidContainer ( tank . getLiquidId ( ) , new ItemStack ( Item . bucketEmpty ) ) ; \n \n if ( qty >= BuildCraftAPI . BUCKET_VOLUME && filledBucket != null ) { \n tank . empty ( BuildCraftAPI . BUCKET_VOLUME , true ) ;", "msg_token": "Changed fill code to safer BuildcraftAPI fillLiquidContainer"} {"diff": " public class StandardRoot extends LifecycleMBeanBase implements WebResourceRoot \n return result ; \n } \n \n + SINGLE \n + SINGLE \n \n @ override \n public void createWebResourceSet ( ResourceSetType type , String webAppMount ,", "msg_token": "Add a TODO for future reference"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class SampleActivity extends ActionBarActivity implements ActionBar . TabListener { \n + public class SampleActivity extends ActionBarActivity { \n private SectionsPagerAdapter mSectionsPagerAdapter ; \n private ViewPager mViewPager ; \n \n public class SampleActivity extends ActionBarActivity implements ActionBar . TabLi \n tabLayout . setViewPager ( mViewPager ) ; \n } \n \n - @ override \n - public void onTabSelected ( ActionBar . Tab tab , FragmentTransaction fragmentTransaction ) { \n - mViewPager . setCurrentItem ( tab . getPosition ( ) ) ; \n - } \n - \n - @ override \n - public void onTabUnselected ( ActionBar . Tab tab , FragmentTransaction fragmentTransaction ) { \n - } \n - \n - @ override \n - public void onTabReselected ( ActionBar . Tab tab , FragmentTransaction fragmentTransaction ) { \n - } \n - \n - \n public class SectionsPagerAdapter extends FragmentPagerAdapter { \n \n public SectionsPagerAdapter ( FragmentManager fm ) {", "msg_token": "Remove unnecessay TabListener"} {"diff": " public class AndroidDatabaseResults implements DatabaseResults { \n \n public boolean getBoolean ( int columnIndex ) throws SQLException { \n int col = jdbcColumnIndexToAndroid ( columnIndex ) ; \n - if ( cursor . isNull ( col ) ) \n + if ( cursor . isNull ( col ) || cursor . getShort ( col ) == NUMBER0 ) { \n return false ; \n - return cursor . getShort ( col ) != NUMBER0 ; \n + } else { \n + return true ; \n + } \n } \n \n public byte getByte ( int columnIndex ) throws SQLException {", "msg_token": "Tweaked some code to make a Gray ism"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SimpleTypesTest extends AbstractTest { \n \n long llong2 ; \n \n + BigInteger bigInteger ; \n + \n String sstring ; \n List < String > sstringList ; \n \n public class SimpleTypesTest extends AbstractTest { \n cl = QSimpleTypesTest_SimpleTypes . class ; \n match ( PNumber . class , STRING0 ) ; \n match ( PNumber . class , STRING1 ) ; \n + match ( PNumber . class , STRING2 ) ; \n match ( PNumber . class , STRING3 ) ; \n match ( PNumber . class , STRING4 ) ; \n match ( PNumber . class , STRING5 ) ;", "msg_token": "added test for BigInteger"} {"diff": " public final class Settings { \n STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static final String GTALK_SERVICE_WIFI_MAX_HEARTBEAT_INTERVAL_MS = \n STRING1 ; \n public final class Settings { \n COMMENT \n public static final String PUSH_MESSAGING_REGISTRATION_URL = \n STRING2 ; \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String GTALK_PICASA_ALBUM_URL = \n + STRING3 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String GTALK_FLICKR_PHOTO_INFO_URL = \n + STRING4 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String GTALK_FLICKR_PHOTO_URL = \n + STRING5 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String GTALK_YOUTUBE_VIDEO_URL = \n + STRING6 ; \n + \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String DATA_MESSAGE_GET_APP_TOKEN_URL = \n + STRING7 ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add new gtalk values"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " public class MessageList \n } \n } \n \n + private void onAccounts ( ) \n + { \n + Accounts . listAccounts ( this ) ; \n + finish ( ) ; \n + } \n + \n private void onShowFolderList ( ) \n { \n FolderList . actionHandleAccount ( this , mAccount , false ) ; \n public class MessageList \n \n } \n \n - private void onAccounts ( ) \n - { \n - Accounts . listAccounts ( this ) ; \n - finish ( ) ; \n - } \n \n private void onCycleSort ( ) \n {", "msg_token": "Reorder methods for better logical grouping"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChunkIconsManager \n editor . getRenderer ( ) . screenToTextCoordinates ( pageX , pageY ) ; \n \n String line = editor . getSession ( ) . getLine ( position . getRow ( ) ) ; \n - Debug . logObject ( line ) ; \n \n return line . contains ( STRING0 ) ; \n }", "msg_token": "remove leftover debug line"} {"diff": " public final class ModelImporterVisualPanel1 extends JPanel implements AssetEven \n if ( data != null ) { \n ( ( AssetDataObject ) obj ) . getLookupContents ( ) . add ( manager ) ; \n mainKey = data . getAssetKey ( ) ; \n + currentModel = ( Spatial ) data . loadAsset ( ) ; \n } \n } catch ( DataObjectNotFoundException ex ) { \n Exceptions . printStackTrace ( ex ) ; \n mainKey = new ModelKey ( path . getName ( ) ) ; \n } \n } \n - currentModel = ( Spatial ) manager . loadAsset ( mainKey ) ; \n + SINGLE \n if ( currentModel != null ) { \n offPanel . attach ( currentModel ) ; \n updateProperties ( mainKey ) ;", "msg_token": "use only SDK api for model loading in model import tool"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public final class FileContentImpl extends UserDataHolderBase implements FileContent { \n - private final VirtualFile myFile ; \n - private final String myFileName ; \n - private final FileType myFileType ; \n - private final Charset myCharset ; \n - private byte [ ] myContent ; \n - private CharSequence myContentAsText ; \n - private final long myStamp ; \n - private byte [ ] myHash ; \n + public class FileContentImpl extends UserDataHolderBase implements FileContent { \n + protected final VirtualFile myFile ; \n + protected final String myFileName ; \n + protected final FileType myFileType ; \n + protected final Charset myCharset ; \n + protected byte [ ] myContent ; \n + protected CharSequence myContentAsText ; \n + protected final long myStamp ; \n + protected byte [ ] myHash ; \n \n @ override \n public Project getProject ( ) {", "msg_token": "make FileContentImpl non final to be overridden in Upsource"} {"diff": " public class TestEventLogger extends AbstractTestLogger implements TestOutputLis \n } \n \n private boolean shouldLogEvent ( TestDescriptor descriptor , TestLogEvent event ) { \n - return ( isLoggedGranularity ( descriptor ) && isLoggedEventType ( event ) ) ; \n + return isLoggedGranularity ( descriptor ) && isLoggedEventType ( event ) ; \n } \n \n private boolean shouldLogExceptions ( TestResult result ) {", "msg_token": "removed redundant parens"} {"diff": " public class AvatarView extends ImageView implements View . OnClickListener , LiveV \n } \n \n private void setImageWhenReady ( ) { \n + if ( isInEditMode ( ) ) { \n + return ; \n + } \n + \n if ( getWidth ( ) > NUMBER0 && getHeight ( ) > NUMBER0 ) { \n SINGLE \n if ( mOriginalDrawable != null ) { \n public class AvatarView extends ImageView implements View . OnClickListener , LiveV \n protected void onDraw ( Canvas canvas ) { \n super . onDraw ( canvas ) ; \n \n - if ( getDrawable ( ) == null ) { \n + if ( getDrawable ( ) == null && ! isInEditMode ( ) ) { \n int xPos = ( getWidth ( ) / NUMBER1 ) ; \n int yPos = ( int ) ( ( getHeight ( ) / NUMBER1 ) - ( ( mPaint . descent ( ) + mPaint . ascent ( ) ) / NUMBER1 ) ) ; \n canvas . drawText ( STRING0 + mInitial , xPos , yPos , mPaint ) ;", "msg_token": "Make AvatarView compatible with layout editor preview"} {"diff": " public class StringLiteralLexer extends LexerBase { \n SINGLE \n SINGLE \n if ( myState == AFTER_FIRST_QUOTE && myBuffer . charAt ( i ) == myQuoteChar ) { \n - myState = AFTER_LAST_QUOTE ; \n + if ( i + NUMBER0 == myBufferEnd ) myState = AFTER_LAST_QUOTE ; \n return i + NUMBER0 ; \n } \n i ++ ;", "msg_token": "avoid StringLiteralLexer to skip content after quote if the quote is not the last one"} {"diff": " public class FilteredRecyclerView extends RelativeLayout { \n } \n } \n \n - public RecyclerView getInternalRecyclerView ( ) { \n - return mRecyclerView ; \n - } \n - \n public void hideToolbar ( ) { \n mAppBarLayout . setExpanded ( false , true ) ; \n } \n public class ReaderPostListFragment extends Fragment \n if ( mWasPaused ) { \n AppLog . d ( T . READER , STRING0 ) ; \n mWasPaused = false ; \n - if ( getPostListType ( ) . equals ( ReaderPostListType . TAG_FOLLOWED ) ) { \n + if ( getPostListType ( ) == ReaderPostListType . TAG_FOLLOWED ) { \n resumeFollowedTag ( ) ; \n } else { \n refreshPosts ( ) ; \n } \n + \n + SINGLE \n + SINGLE \n + if ( getPostListType ( ) == ReaderPostListType . SEARCH_RESULTS ) { \n + mRecyclerView . showToolbar ( ) ; \n + } \n } \n }", "msg_token": "Make sure toolbar showing search keyword is showing when returning to list view"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExternalSystemStartupActivity implements StartupActivity { \n \n @ override \n public void runActivity ( @ notnull final Project project ) { \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + return ; \n + } \n Runnable task = new Runnable ( ) { \n @ suppresswarnings ( STRING0 ) \n @ override", "msg_token": "don t execute startup activities at unit test mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ suppresswarnings ( { STRING0 } ) \n public class FileUtil { \n private static final Logger LOG = Logger . getInstance ( STRING1 ) ; \n private static final byte [ ] BUFFER = new byte [ NUMBER0 * NUMBER1 ] ; \n \n - private FileUtil ( ) { \n - } \n - \n public static String getRelativePath ( File base , File file ) { \n if ( base == null || file == null ) return null ;", "msg_token": "revert private constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConfigureProviderManager { \n \n SINGLE \n pm . addExtensionProvider ( STRING0 , STRING1 , new AttentionExtension . Provider ( ) ) ; \n + \n + SINGLE \n + pm . addExtensionProvider ( STRING2 , STRING3 , new Forwarded . Provider ( ) ) ; \n + \n + SINGLE \n + pm . addExtensionProvider ( STRING4 , STRING5 , new Carbon . Provider ( ) ) ; \n + pm . addExtensionProvider ( STRING6 , STRING5 , new Carbon . Provider ( ) ) ; \n + \n + SINGLE \n + pm . addIQProvider ( STRING7 , STRING8 , new PingProvider ( ) ) ; \n } \n }", "msg_token": "Updated ConfigureProviderManager to support lastest smack development"} {"diff": " public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt \n if ( config . getMaxTotalConnections ( ) != - NUMBER0 ) { \n maxConnections . decrementAndGet ( ) ; \n } \n + \n + if ( log . isDebugEnabled ( ) ) { \n + log . debug ( String . format ( currentThread ( ) + STRING0 , future ) ) ; \n + log . debug ( t ) ; \n + } \n + \n future . abort ( t ) ; \n }", "msg_token": "Improve logging when a Future gets aborded"} {"diff": " public class NativeServices extends DefaultServiceRegistry implements ServiceReg \n COMMENT \n COMMENT \n COMMENT \n - public static void initialize ( File userHomeDir ) { \n + public static synchronized void initialize ( File userHomeDir ) { \n File nativeDir = new File ( userHomeDir , STRING0 ) ; \n if ( useNativePlatform ) { \n try { \n public class NativeServices extends DefaultServiceRegistry implements ServiceReg \n initialized = true ; \n } \n \n - public static NativeServices getInstance ( ) { \n + public static synchronized NativeServices getInstance ( ) { \n if ( ! initialized ) { \n SINGLE \n SINGLE", "msg_token": "Added some thread safety"} {"diff": " public final class Jid { \n return resourcepart . isEmpty ( ) ? this : fromParts ( localpart , domainpart , STRING0 ) ; \n } catch ( final InvalidJidException e ) { \n SINGLE \n - return null ; \n + throw new AssertionError ( STRING1 + this . toString ( ) + STRING2 ) ; \n } \n } \n \n public final class Jid { \n return resourcepart . isEmpty ( ) && localpart . isEmpty ( ) ? this : fromString ( getDomainpart ( ) ) ; \n } catch ( final InvalidJidException e ) { \n SINGLE \n - return null ; \n + throw new AssertionError ( STRING1 + this . toString ( ) + STRING2 ) ; \n } \n }", "msg_token": "Improve InvalidJidException handling in Jid class"} {"diff": " public final class Indexer { \n getopt . reset ( ) ; \n while ( ( cmd = getopt . getOpt ( ) ) != - NUMBER0 ) { \n switch ( cmd ) { \n - case STRING0 : \n - createDict = true ; \n - runIndex = false ; \n - break ; \n - \n case STRING1 : \n cfg . setVerbose ( false ) ; \n OpenGrokLogger . setOGConsoleLogLevel ( Level . WARNING ) ;", "msg_token": "remove ghost option x handling"} {"diff": " public class KeyboardUtil { \n \n SINGLE \n final View actionBarOverlayLayout = ( View ) contentView . getParent ( ) ; \n - final int actionBarOverlayLayoutHeight = actionBarOverlayLayout . getHeight ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + final int actionBarOverlayLayoutHeight = actionBarOverlayLayout . getHeight ( ) - \n + actionBarOverlayLayout . getPaddingTop ( ) ; \n \n if ( isFullScreen ) { \n if ( actionBarOverlayLayoutHeight - displayHeight == this . statusBarHeight ) { \n public class KeyboardUtil { \n } else { \n \n final int phoneDisplayHeight = contentView . getResources ( ) . getDisplayMetrics ( ) . heightPixels ; \n - if ( phoneDisplayHeight == actionBarOverlayLayoutHeight && \n - actionBarOverlayLayout . getPaddingTop ( ) == NUMBER0 ) { \n + if ( phoneDisplayHeight == actionBarOverlayLayoutHeight ) { \n SINGLE \n SINGLE \n Log . w ( TAG , String . format ( STRING0 +", "msg_token": "cover the case of the page is extends Activity or FragmentActivity not AppCompatActivity"} {"diff": " public class VoldemortBuildAndPushJob extends AbstractJob { \n if ( ! build ) { \n buildOutputDir = dataDirs . get ( index ) ; \n } \n + SINGLE \n + SINGLE \n + if ( buildOutputDir == null ) { \n + continue ; \n + } \n runPushStore ( props , url , buildOutputDir ) ; \n informedResults . add ( this . informedExecutor . submit ( new InformedClient ( this . props , \n STRING0 , \n public class VoldemortBuildAndPushJob extends AbstractJob { \n } \n } \n } \n - if ( build && push && ! props . getBoolean ( STRING1 , false ) ) { \n + if ( build && push && buildOutputDir != null && ! props . getBoolean ( STRING1 , false ) ) { \n JobConf jobConf = new JobConf ( ) ; \n if ( props . containsKey ( STRING2 ) ) { \n jobConf . set ( STRING2 , props . getString ( STRING2 ) ) ;", "msg_token": "Add null checks to make sure push doesn t get a null dir"} {"diff": " public class RomanianTagger extends BaseTagger { \n \n @ override \n public final String getFileName ( ) { \n - return DEFAULT_BINARY_DICT ; \n + return binaryDictPath ; \n } \n \n @ override", "msg_token": "getFileName should return the provided filename instead of a constant one"} {"diff": " public class ScoSocket { \n COMMENT \n COMMENT \n public synchronized boolean connect ( String address ) { \n - if ( VDBG ) log ( STRING0 + this ) ; \n + if ( DBG ) log ( STRING0 + this ) ; \n if ( mState != STATE_READY ) { \n if ( DBG ) log ( STRING1 ) ; \n return false ;", "msg_token": "Add one line of logging when SCO SOCKET connect starts"} {"diff": " public class Editor { \n mSuggestionsPopupWindow . onParentLostFocus ( ) ; \n } \n \n - SINGLE \n - mTextView . onEndBatchEdit ( ) ; \n + SINGLE \n + ensureEndedBatchEdit ( ) ; \n } \n }", "msg_token": "Ensure batch edit mode is ended on window focus loss"} {"diff": " public class MappingUtil { \n continue ; \n } \n if ( cacheEntry . startOffset > offset ) { \n - if ( start == end ) { \n - return start - NUMBER0 ; \n - } \n end = i - NUMBER0 ; \n continue ; \n }", "msg_token": "Improve soft wraps performance"} {"diff": " final class Primes { \n return sieve ( Stream . gen ( NUMBER0 ) ) ; \n } \n \n - SINGLE \n + SINGLE \n private static Stream < Integer > sieve ( Stream < Integer > numbers ) { \n return new Stream . Cons < > ( \n numbers . head ( ) ,", "msg_token": "TODO has nothing to to with refactoring"} {"diff": " public class XmppConnectionService extends Service { \n for ( Conversation conversation : getConversations ( ) ) { \n if ( conversation . getAccount ( ) == account ) { \n for ( Message message : conversation . getMessages ( ) ) { \n - if ( message . getStatus ( ) == Message . STATUS_UNSEND ) { \n + if ( message . getType ( ) != Message . TYPE_IMAGE \n + && message . getStatus ( ) == Message . STATUS_UNSEND ) { \n markMessage ( message , Message . STATUS_WAITING ) ; \n } \n }", "msg_token": "don t reset images from sending to waiting"} {"diff": " public class InputFileUtilsTest { \n \n static void write ( String content , File file ) throws IOException { \n file . getParentFile ( ) . mkdirs ( ) ; \n - Files . write ( STRING0 , file , Charsets . UTF_8 ) ; \n + Files . write ( content , file , Charsets . UTF_8 ) ; \n } \n \n static String read ( InputStream input ) throws IOException {", "msg_token": "FIX unused parameter"} {"diff": " public class StackScrollAlgorithm { \n mTopStackIndentationFunctor = new PiecewiseLinearIndentationFunctor ( \n MAX_ITEMS_IN_TOP_STACK , \n mTopStackPeekSize , \n - mTopStackTotalSize , \n + mTopStackTotalSize - mTopStackPeekSize , \n FLOAT0 ) ; \n mBottomStackIndentationFunctor = new PiecewiseLinearIndentationFunctor ( \n MAX_ITEMS_IN_BOTTOM_STACK ,", "msg_token": "Corrected top stack logic of notifications again"} {"diff": " public class FieldTypeDatabase { \n } \n \n public void load ( ) { \n - L . info ( STRING0 ) ; \n + L . fine ( STRING0 ) ; \n \n SINGLE \n InputStream is = null ; \n public class FieldTypeDatabase { \n } \n \n public void save ( ) { \n - L . info ( STRING1 ) ; \n + L . fine ( STRING1 ) ; \n \n try ( \n OutputStream os = Files . newOutputStream ( dbFile , WRITE , CREATE , TRUNCATE_EXISTING )", "msg_token": "Reduced log level for loading saving logs"} {"diff": " final public class AndrolibResources { \n } \n value = value . replace ( STRING0 , STRING1 ) ; \n value = value . replace ( STRING2 , STRING3 ) ; \n - value = value . replace ( STRING4 , STRING5 ) ; \n + value = value . replace ( STRING4 , STRING6 ) ; \n char c = value . charAt ( NUMBER0 ) ; \n if ( c == STRING7 || c == STRING8 || c == STRING9 ) { \n return STRING10 + value ;", "msg_token": "don t insert new line char to XML output"} {"diff": " public class InternalIndexShard extends AbstractIndexShardComponent implements I \n throw new IndexQueryParserMissingException ( queryParserName ) ; \n } \n } \n - Query query = queryParser . parse ( querySource ) . query ( ) ; \n + Query query = queryParser . parse ( querySource , querySourceOffset , querySourceLength ) . query ( ) ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "parse query with offset"} {"diff": " public class PrincipalAttributeRegisteredServiceUsernameProvider implements Regi \n @ override \n public String resolveUsername ( final Principal principal , final Service service ) { \n String principalId = principal . getId ( ) ; \n + final Map < String , Object > originalPrincipalAttributes = principal . getAttributes ( ) ; \n final Map < String , Object > attributes = getPrincipalAttributes ( principal , service ) ; \n \n logger . debug ( STRING0 , \n public class PrincipalAttributeRegisteredServiceUsernameProvider implements Regi \n \n if ( attributes . containsKey ( this . usernameAttribute ) ) { \n principalId = attributes . get ( this . usernameAttribute ) . toString ( ) ; \n + } else if ( originalPrincipalAttributes . containsKey ( this . usernameAttribute ) ) { \n + logger . warn ( STRING1 \n + + STRING2 \n + + STRING3 \n + + STRING4 , \n + this . usernameAttribute , service , this . usernameAttribute ) ; \n + principalId = originalPrincipalAttributes . get ( this . usernameAttribute ) . toString ( ) ; \n } else { \n logger . warn ( STRING5 \n + STRING6", "msg_token": "Allow the service username attribute to be retrieved as a principal attribute"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BasicErrorControllerSpecialIntegrationTests { \n } \n \n @ configuration \n - SINGLE \n - @ enableautoconfiguration ( exclude = ServerPropertiesAutoConfiguration . class ) \n + @ enableautoconfiguration \n protected static class ParentConfiguration { \n \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n @ configuration \n @ enableconfigurationproperties \n + @ conditionalonwebapplication \n public class ServerPropertiesAutoConfiguration implements ApplicationContextAware , \n EmbeddedServletContainerCustomizer { \n \n private ApplicationContext applicationContext ; \n \n @ bean ( name = STRING0 ) \n - @ conditionalonmissingbean \n + @ conditionalonmissingbean ( search = SearchStrategy . CURRENT ) \n public ServerProperties serverProperties ( ) { \n return new ServerProperties ( ) ; \n }", "msg_token": "Prevent failure of web app with parent context"} {"diff": " public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract { \n if ( connection != null ) { \n if ( ! Boolean . TRUE . equals ( tokenBased ) ) { \n if ( connection . database != null ) \n - if ( ! connection . database . isClosed ( ) ) \n + if ( ! connection . database . isClosed ( ) && connection . database . getLocalCache ( ) != null ) \n connection . database . getLocalCache ( ) . clear ( ) ; \n } else { \n if ( connection . database != null && ! connection . database . isClosed ( ) )", "msg_token": "fix null pointer on server response send end"} {"diff": " public abstract class PullToRefreshBase < T extends View > extends LinearLayout { \n COMMENT \n COMMENT \n COMMENT \n - public void setDisableScrollingWhileRefreshing ( boolean disableScrollingWhileRefreshing ) { \n + public final void setDisableScrollingWhileRefreshing ( boolean disableScrollingWhileRefreshing ) { \n this . disableScrollingWhileRefreshing = disableScrollingWhileRefreshing ; \n } \n \n public abstract class PullToRefreshBase < T extends View > extends LinearLayout { \n } \n } \n \n - public void setRefreshing ( ) { \n + public final void setRefreshing ( ) { \n this . setRefreshing ( true ) ; \n } \n \n public abstract class PullToRefreshBase < T extends View > extends LinearLayout { \n COMMENT \n COMMENT \n COMMENT \n - public void setRefreshing ( boolean doScroll ) { \n + public final void setRefreshing ( boolean doScroll ) { \n if ( state == REFRESHING ) \n return ;", "msg_token": "Set the rest of the public methods to final"} {"diff": " public abstract class AbstractDynamicMethodInvocation implements \n \n private String methodName = null ; \n \n - public AbstractDynamicMethodInvocation ( ) { \n + public AbstractDynamicMethodInvocation ( String methodName ) { \n super ( ) ; \n + this . methodName = methodName ; \n } \n \n public void setMethodName ( String methodName ) { \n public abstract class AbstractDynamicMethodInvocation implements \n public String getMethodName ( ) { \n return this . methodName ; \n } \n - \n + \n + public boolean isMethodMatch ( String methodName ) { \n + return getMethodName ( ) . equals ( methodName ) ; \n + } \n + \n public abstract Object invoke ( Object target , Object [ ] arguments ) ; \n } \n package NAMESPACE ; \n public interface DynamicMethodInvocation { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isMethodMatch ( String methodName ) ; \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a isMethodMethod method to be consistent with StaticMethodInvocation interface"} {"diff": " public class MessageView extends K9Activity implements OnClickListener \n { \n mHandler . networkError ( ) ; \n } \n - if ( ! MessageView . this . mMessage . isSet ( Flag . X_DOWNLOADED_PARTIAL ) ) \n + if ( ( MessageView . this . mMessage == null ) || \n + ! MessageView . this . mMessage . isSet ( Flag . X_DOWNLOADED_PARTIAL ) ) \n { \n mMessageContentView . loadUrl ( STRING0 ) ; \n }", "msg_token": "Fix market reported NullPointerException"} {"diff": " public interface GlobalOptions { \n String USE_MEMORY_TEMP_CACHE_OPTION = STRING0 ; \n String USE_EXTERNAL_JAVAC_OPTION = STRING1 ; \n String HOSTNAME_OPTION = STRING2 ; \n - String PING_INTERVAL_MS_OPTION = STRING3 ; \n String GENERATE_CLASSPATH_INDEX_OPTION = STRING4 ; \n - String MAX_SIMULTANEOUS_BUILDS_OPTION = STRING5 ; \n String COMPILE_PARALLEL_OPTION = STRING6 ; \n String COMPILE_PARALLEL_MAX_THREADS_OPTION = STRING7 ; \n }", "msg_token": "remove unused options"} {"diff": " public class SpringExpressionManager extends ExpressionManager { \n \n if ( beans != null ) { \n SINGLE \n - compositeElResolver . add ( new ReadonlyMapELResolver ( beans ) ) ; \n + compositeElResolver . add ( new ReadOnlyMapELResolver ( beans ) ) ; \n } else { \n SINGLE \n compositeElResolver . add ( new ApplicationContextElResolver ( applicationContext ) ) ;", "msg_token": "Fixed upper lowercase classname issue"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class OperatorAll < T > implements Operator < Boolean , T > { \n \n @ override \n public Subscriber < ? super T > call ( final Subscriber < ? super Boolean > child ) { \n - Subscriber s = new Subscriber < T > ( ) { \n + return new Subscriber < T > ( child ) { \n boolean done ; \n + \n @ override \n public void onNext ( T t ) { \n boolean result = predicate . call ( t ) ; \n public final class OperatorAll < T > implements Operator < Boolean , T > { \n } \n } \n } ; \n - child . add ( s ) ; \n - return s ; \n } \n }", "msg_token": "Simplify Subscription Chain"} {"diff": " public interface MixinModContainer extends ModContainer { \n ModMetadata meta = getMetadata ( ) ; \n if ( meta != null ) { \n String path = ( ( IMixinModMetadata ) meta ) . getAssetDirectory ( ) ; \n - return ! path . isEmpty ( ) ? Optional . of ( Paths . get ( path ) ) : Optional . empty ( ) ; \n + return path != null && ! path . isEmpty ( ) ? Optional . of ( Paths . get ( path ) ) : Optional . empty ( ) ; \n } \n return Optional . empty ( ) ; \n }", "msg_token": "Fix asset dir NPE"} {"diff": " public abstract class XBreakpointType < B extends XBreakpoint < P > , P extends XBreak \n } \n \n @ nullable \n + public XBreakpointCustomPropertiesPanel < B > createCustomPropertiesPanel ( @ notnull Project project ) { \n + return null ; \n + } \n + \n + @ nullable \n + @ deprecated \n public XBreakpointCustomPropertiesPanel < B > createCustomPropertiesPanel ( ) { \n return null ; \n } \n public class XLightBreakpointPropertiesPanel < B extends XBreakpointBase < ? , ? , ? > > i \n } \n } \n \n - XBreakpointCustomPropertiesPanel < B > customPropertiesPanel = breakpointType . createCustomPropertiesPanel ( ) ; \n + XBreakpointCustomPropertiesPanel < B > customPropertiesPanel = breakpointType . createCustomPropertiesPanel ( project ) ; \n + if ( customPropertiesPanel == null ) customPropertiesPanel = breakpointType . createCustomPropertiesPanel ( ) ; \n if ( customPropertiesPanel != null ) { \n myCustomPropertiesPanelWrapper . add ( customPropertiesPanel . getComponent ( ) , BorderLayout . CENTER ) ; \n myCustomPanels . add ( customPropertiesPanel ) ;", "msg_token": "Introduced XBreakpointType createCustomPropertiesPanel Project method old variant deprecated"} {"diff": " public class CheckinActivity extends BaseActivity implements LoaderCallbacks < Cur \n mCursor . getString ( CheckinQuery . AIRSDAYOFWEEK ) , mContext ) ; \n viewHolder . airsTime . setText ( values [ NUMBER0 ] + STRING0 + values [ NUMBER1 ] ) ; \n \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n final String path = mCursor . getString ( CheckinQuery . POSTER ) ; \n - SINGLE \n - SINGLE \n Utils . setPosterBitmap ( viewHolder . poster , path , false , null ) ; \n - \n SINGLE \n viewHolder . poster . setTag ( null ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n \n return convertView ; \n }", "msg_token": "Remove unused code"} {"diff": " public class OperationSetBasicTelephonyJabberImpl \n \n if ( error != null ) \n { \n + message += STRING0 + error . getCode ( ) \n + + STRING1 + error . getMessage ( ) ; \n logger . error ( STRING2 + error . getCode ( ) \n + STRING1 + error . getMessage ( ) ) ; \n - \n - if ( error . getMessage ( ) != null ) \n - message = error . getMessage ( ) ; \n } \n \n if ( callPeer != null )", "msg_token": "Provides error code and message to the GUI when a XMPP call failed"} {"diff": " public class IrcStack \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private IRCApi irc ;", "msg_token": "Add marker for code improvement w r t IRCApi instance"} {"diff": " public class GrailsWebRequest extends DispatcherServletWebRequest implements Par \n \n private GrailsApplicationAttributes attributes ; \n private GrailsParameterMap params ; \n - private final HttpServletResponse response ; \n private GrailsHttpSession session ; \n private boolean renderView = true ; \n public static final String ID_PARAMETER = STRING0 ; \n public class GrailsWebRequest extends DispatcherServletWebRequest implements Par \n private String baseUrl ; \n \n public GrailsWebRequest ( HttpServletRequest request , HttpServletResponse response , ServletContext servletContext ) { \n - super ( request ) ; \n + super ( request , response ) ; \n attributes = new DefaultGrailsApplicationAttributes ( servletContext ) ; \n - this . response = response ; \n } \n \n public GrailsWebRequest ( HttpServletRequest request , HttpServletResponse response , ServletContext servletContext , ApplicationContext applicationContext ) { \n public class GrailsWebRequest extends DispatcherServletWebRequest implements Par \n } \n \n public HttpServletResponse getCurrentResponse ( ) { \n - return response ; \n + return getResponse ( ) ; \n } \n \n COMMENT", "msg_token": "fix failing test"} {"diff": " public class ComponentBinariesRuleDefinitionHandler extends AbstractAnnotationDr \n \n } \n \n - \n - @ suppresswarnings ( STRING0 ) \n private class ComponentBinariesRule < R , S extends BinarySpec > implements ModelMutator < CollectionBuilder < S > > { \n \n private final Class < ? extends ComponentSpec < S > > componentType ;", "msg_token": "remove unchecked cast in ComponentBinariesRule"} {"diff": " public class SecretManager extends ZKDelegationTokenSecretManager < LlapTokenIdent \n public SecretManager ( Configuration conf , String clusterId ) { \n super ( conf ) ; \n this . clusterId = clusterId ; \n - checkForZKDTSMBug ( ) ; \n this . conf = conf ; \n checkForZKDTSMBug ( ) ; \n }", "msg_token": "Duplicate line in LLAP SecretManager Sergey Shelukhin reviewed by Siddharth Seth"} {"diff": " public class LocalChunkProvider implements ChunkProvider { \n public LocalChunkProvider ( ChunkStore farStore , ChunkGeneratorManager generator ) { \n this . farStore = farStore ; \n this . generator = generator ; \n + \n + logger . info ( STRING0 , CACHE_SIZE ) ; \n \n reviewChunkQueue = new PriorityBlockingQueue < ChunkRequest > ( NUMBER0 ) ; \n reviewThreads = Executors . newFixedThreadPool ( REQUEST_CHUNK_THREADS ) ;", "msg_token": "added a log message to LocalChunkProvider about the size of the cache for nearby chunks"} {"diff": " public class ComparisonUtilAutoTest extends AutoTestCase { \n } \n \n public void testWord ( ) throws Exception { \n - doTestWord ( System . currentTimeMillis ( ) , NUMBER0 , NUMBER1 ) ; \n + doTestWord ( System . currentTimeMillis ( ) , NUMBER2 , NUMBER1 ) ; \n } \n \n public void testLine ( ) throws Exception {", "msg_token": "sanitize test size"} {"diff": " public class SimpleJodaTests { \n } catch ( IllegalArgumentException e ) { \n SINGLE \n } \n + \n + SINGLE \n + millis = formatter . parseMillis ( STRING0 ) ; \n + assertThat ( millis , equalTo ( TimeValue . timeValueHours ( NUMBER0 ) . millis ( ) ) ) ; \n } \n \n @ test public void testIsoVsCustom ( ) {", "msg_token": "add some sanity tests with joda for date time manipulation"} {"diff": " public class JavacInMemoryStep extends JavacStep { \n } catch ( IOException e ) { \n SINGLE \n LOG . warn ( STRING0 ) ; \n + } finally { \n + SINGLE \n + classLoader = null ; \n } \n } \n }", "msg_token": "Allow the classloader used by annotation processors to be garbage collected early"} {"diff": " public class ProtocolProviderServiceSipImpl \n { \n return ; \n } \n + logger . trace ( STRING0 ) ; \n + SINGLE \n + OperationSetBasicTelephonySipImpl telephony \n + = ( OperationSetBasicTelephonySipImpl ) getOperationSet ( \n + OperationSetBasicTelephony . class ) ; \n + telephony . shutdown ( ) ; \n \n if ( isRegistered ( ) ) \n { \n public class ProtocolProviderServiceSipImpl \n + registrarAddress . getHostAddress ( ) + STRING1 \n + ex . getMessage ( ) ) ; \n } \n + \n + SINGLE \n + ClientCapabilities capabilities = new ClientCapabilities ( this ) ; \n } \n \n COMMENT \n public class ProtocolProviderServiceSipImpl \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public List getSupportedMethods ( ) \n + { \n + return new ArrayList ( methodProcessors . keySet ( ) ) ; \n + } \n }", "msg_token": "Handle OPTIONS requests"} {"diff": " public class Analytics extends BaseModule { \n } \n \n public void trackAuthPhoneType ( String newValue ) { \n - track ( STRING0 + newValue ) ; \n + track ( STRING1 , STRING2 , newValue ) ; \n } \n \n public void trackAuthPhoneInfoOpen ( ) {", "msg_token": "Fixed analytics events on phone typing"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class WebViewFactory { \n \n private static Class < WebViewFactoryProvider > getFactoryClass ( ) throws ClassNotFoundException { \n try { \n - return ( Class < WebViewFactoryProvider > ) Class . forName ( CHROMIUM_WEBVIEW_FACTORY ) ; \n - } catch ( ClassNotFoundException e ) { \n - Log . e ( LOGTAG , STRING0 ) ; \n + Context webViewContext = AppGlobals . getInitialApplication ( ) . createPackageContext ( \n + getWebViewPackageName ( ) , \n + Context . CONTEXT_INCLUDE_CODE | Context . CONTEXT_IGNORE_SECURITY ) ; \n + ClassLoader clazzLoader = webViewContext . getClassLoader ( ) ; \n + return ( Class < WebViewFactoryProvider > ) Class . forName ( CHROMIUM_WEBVIEW_FACTORY , true , \n + clazzLoader ) ; \n + } catch ( PackageManager . NameNotFoundException e ) { \n + Log . e ( LOGTAG , STRING1 ) ; \n return ( Class < WebViewFactoryProvider > ) Class . forName ( NULL_WEBVIEW_FACTORY ) ; \n } \n }", "msg_token": "Load the WebView Java code from an APK"} {"diff": " public class DomPerformanceTest extends DomHardCoreTestCase { \n child . addChildElement ( ) . addBarComposite ( ) . setValue ( STRING0 ) ; \n child . addBarChild ( ) . getChild2 ( ) . getAttr ( ) . setValue ( STRING1 ) ; \n \n - PlatformTestUtil . startPerformanceTest ( getTestName ( false ) , NUMBER0 , new ThrowableRunnable ( ) { \n + PlatformTestUtil . startPerformanceTest ( getTestName ( false ) , NUMBER1 , new ThrowableRunnable ( ) { \n @ override \n public void run ( ) throws Exception { \n for ( int i = NUMBER2 ; i < NUMBER3 ; i ++ ) {", "msg_token": "adjust dom test expected performance"} {"diff": " public abstract class PsiAnchor { \n STRING0 + myProject + \n STRING1 + myIndex + \n STRING2 + myLanguage + \n - STRING3 + myElementType + \n + STRING4 + myElementType + \n STRING5 ; \n }", "msg_token": "revert unwanted change"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MasterClientTest \n TransactionCommitProcess commitProcess = mock ( TransactionCommitProcess . class ) ; \n when ( deps . commitProcess ( ) ) . thenReturn ( commitProcess ) ; \n when ( deps . logService ( ) ) . thenReturn ( NullLogService . getInstance ( ) ) ; \n + when ( deps . kernelTransactions ( ) ) . thenReturn ( mock ( KernelTransactions . class ) ) ; \n \n ResponseUnpacker unpacker = life . add ( \n new TransactionCommittingResponseUnpacker ( deps , DEFAULT_BATCH_SIZE , NUMBER0 ) ) ;", "msg_token": "Fix mocking in MasterClientTest"} {"diff": " public class SwiftUnderFileSystem extends UnderFileSystem { \n return false ; \n } \n final String parentPath = getParentPath ( path ) ; \n + SINGLE \n SINGLE \n if ( ! mkdirs ( parentPath , true ) ) { \n LOG . error ( STRING0 , path ) ;", "msg_token": "Add performance TODO"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JpaOwnerRepositoryImpl implements OwnerRepository { \n private EntityManager em ; \n \n \n - @ override \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ suppresswarnings ( STRING0 ) \n public Collection < Owner > findByLastName ( String lastName ) { \n SINGLE", "msg_token": "added comments about OSIV"} {"diff": " public class DbConnectionManager { \n SINGLE \n SINGLE \n if ( line . startsWith ( STRING0 ) || line . startsWith ( STRING1 ) || line . startsWith ( STRING2 ) || \n - line . startsWith ( STRING3 ) || line . startsWith ( STRING4 ) ) \n + line . startsWith ( STRING3 ) || line . startsWith ( STRING4 ) || line . startsWith ( STRING5 ) ) \n { \n return false ; \n }", "msg_token": "Fix oracle sql bug"} {"diff": " public class TrustAgentService extends Service { \n STRING0 + getClass ( ) . getSimpleName ( ) + STRING1 ; \n private static final boolean DEBUG = false ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - private static final boolean SET_MANAGED_FOR_LEGACY_AGENTS = true ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class TrustAgentService extends Service { \n \n @ override \n public void onCreate ( ) { \n - SINGLE \n - if ( SET_MANAGED_FOR_LEGACY_AGENTS ) { \n - setManagingTrust ( true ) ; \n - } \n - \n super . onCreate ( ) ; \n ComponentName component = new ComponentName ( this , getClass ( ) ) ; \n try { \n public class TrustAgentService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean onSetTrustAgentFeaturesEnabled ( Bundle options ) { \n return false ;", "msg_token": "Remove setManagingTrust workaround"} {"diff": " public class ShapefileStreetGraphBuilderImpl implements GraphBuilder { \n HashMap < Coordinate , TreeSet < String > > coordinateToStreetNames = getCoordinatesToStreetNames ( featureList ) ; \n \n for ( SimpleFeature feature : featureList ) { \n + if ( feature . getDefaultGeometry ( ) == null ) { \n + log . warn ( STRING0 + feature . getIdentifier ( ) ) ; \n + continue ; \n + } \n LineString geom = toLineString ( ( Geometry ) feature . getDefaultGeometry ( ) ) ; \n \n Object o = streetIdConverter . convert ( feature ) ; \n public class ShapefileStreetGraphBuilderImpl implements GraphBuilder { \n if ( featureSelector != null && ! featureSelector . convert ( feature ) ) { \n continue ; \n } \n + if ( feature . getDefaultGeometry ( ) == null ) { \n + log . warn ( STRING0 + feature . getIdentifier ( ) ) ; \n + continue ; \n + } \n LineString geom = toLineString ( ( Geometry ) feature . getDefaultGeometry ( ) ) ; \n \n for ( Coordinate coord : geom . getCoordinates ( ) ) {", "msg_token": "allow missing geometry with warning"} {"diff": " public class TextEditingTarget implements \n \n SINGLE \n if ( isNotebook ) \n + { \n + SINGLE \n + String outputType = docUpdateSentinel_ . getProperty ( \n + TextEditingTargetNotebook . CHUNK_OUTPUT_TYPE ) ; \n + if ( outputType != TextEditingTargetNotebook . CHUNK_OUTPUT_INLINE ) \n + { \n + docUpdateSentinel_ . setProperty ( \n + TextEditingTargetNotebook . CHUNK_OUTPUT_TYPE , \n + TextEditingTargetNotebook . CHUNK_OUTPUT_INLINE ) ; \n + } \n view_ . setIsNotebookFormat ( ) ; \n + } \n } \n }", "msg_token": "ensure chunk output mode set to inline when switching to notebook"} {"diff": " public class Intent implements Parcelable , Cloneable { \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 public static final int FLAG_ACTIVITY_RETAIN_IN_RECENTS = NUMBER0 ;", "msg_token": "Fix javadoc attr reference"} {"diff": " public class TestIntegration { \n log . info ( STRING0 ) ; \n } \n \n - @ test ( enabled = true ) \n + @ test ( groups = STRING1 ) \n public void testHappyPath ( ) throws AccountApiException , EntitlementUserApiException { \n Account account = accountUserApi . createAccount ( getAccountData ( NUMBER0 ) , null , null ) ; \n assertNotNull ( account ) ; \n public class TestIntegration { \n \n } \n \n - @ test \n + @ test ( groups = STRING1 ) \n public void testForMultipleRecurringPhases ( ) throws AccountApiException , EntitlementUserApiException , InterruptedException { \n clock . setDeltaFromReality ( new DateTime ( ) . getMillis ( ) - clock . getUTCNow ( ) . getMillis ( ) ) ;", "msg_token": "added groups to beatrix tests"} {"diff": " public class WordPress extends Application { \n SINGLE \n UserPrefs . reset ( ) ; \n ReaderDatabase . reset ( ) ; \n - \n - SINGLE \n - SINGLE \n - sendLocalBroadcast ( context , BROADCAST_ACTION_SIGNOUT ) ; \n } \n \n public static boolean sendLocalBroadcast ( Context context , String action ) { \n public class WPComLoginActivity extends Activity implements TextWatcher { \n SINGLE \n SINGLE \n WordPress . removeWpComUserRelatedData ( WPComLoginActivity . this ) ; \n + WordPress . sendLocalBroadcast ( WPComLoginActivity . this , WordPress . BROADCAST_ACTION_SIGNOUT ) ; \n \n Editor settings = PreferenceManager . getDefaultSharedPreferences ( WPComLoginActivity . this ) . edit ( ) ; \n settings . putString ( WordPress . WPCOM_USERNAME_PREFERENCE , mUsername ) ;", "msg_token": "Removed dup BROADCAST_ACTION_SIGNOUT broadcast from removeWpComUserRelatedData"} {"diff": " public class AlertDialogWrapper { \n return this ; \n } \n \n + public Builder alwaysCallMultiChoiceCallback ( ) { \n + builder . alwaysCallMultiChoiceCallback ( ) ; \n + return this ; \n + } \n + \n private void setUpMultiChoiceCallback ( @ nullable final boolean [ ] checkedItems , final DialogInterface . OnMultiChoiceClickListener listener ) { \n Integer selectedIndicesArr [ ] = null ; \n COMMENT \n public class AlertDialogWrapper { \n selectedIndicesArr = selectedIndices . toArray ( new Integer [ selectedIndices . size ( ) ] ) ; \n } \n \n - builder . alwaysCallMultiChoiceCallback ( ) ; \n builder . itemsCallbackMultiChoice ( selectedIndicesArr , new MaterialDialog . ListCallbackMulti ( ) { \n @ override \n public void onSelection ( MaterialDialog dialog , Integer [ ] which , CharSequence [ ] text ) {", "msg_token": "Setting alwaysCallMultiChoiceCallback would alter behaviour of the AlertDialogWrapper Builder for existing users"} {"diff": " public class GroovyDocToolTest extends GroovyTestCase { \n \n xmlToolForTests = new GroovyDocTool ( \n new FileSystemResourceManager ( STRING0 ) , SINGLE \n - new Path ( new Project ( ) , STRING1 ) , SINGLE \n + new Path ( new Project ( ) , STRING2 ) , SINGLE \n new String [ ] { TEMPLATES_DIR + STRING3 } , \n new String [ ] { TEMPLATES_DIR + STRING4 } , \n new String [ ] { TEMPLATES_DIR + STRING5 } ,", "msg_token": "Fix the build I ve broken with my change to GroovyDoc"} {"diff": " class SocketIOConnection { \n } \n } \n \n - if ( needsEndpointDisconnect && transport != null ) \n - transport . send ( String . format ( Locale . ENGLISH , STRING0 , client . endpoint ) ) ; \n + final SocketIOTransport ts = transport ; \n + \n + if ( needsEndpointDisconnect && ts != null ) \n + ts . send ( String . format ( Locale . ENGLISH , STRING0 , client . endpoint ) ) ; \n \n SINGLE \n - if ( clients . size ( ) > NUMBER0 || transport == null ) \n + if ( clients . size ( ) > NUMBER0 || ts == null ) \n return ; \n \n - transport . setStringCallback ( null ) ; \n - transport . setClosedCallback ( null ) ; \n - transport . disconnect ( ) ; \n + ts . setStringCallback ( null ) ; \n + ts . setClosedCallback ( null ) ; \n + ts . disconnect ( ) ; \n transport = null ; \n }", "msg_token": "Avoid npe in SocketIOConnection"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public class EmptyProgressIndicator implements ProgressIndicator { \n private boolean myIsRunning = false ; \n private volatile boolean myIsCanceled = false ; \n - private boolean myFinished ; \n \n public void start ( ) { \n myIsRunning = true ; \n myIsCanceled = false ; \n - myFinished = false ; \n } \n \n public void stop ( ) { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "clean up EmptyProgressIndicator move it to core api"} {"diff": " public class Matchers { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added missing javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ datatypeinfo ( name = STRING0 , aliases = { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 } , minParameters = NUMBER0 , maxParameters = NUMBER0 , priority = LiquibaseDataType . PRIORITY_DEFAULT ) \n + @ datatypeinfo ( name = STRING0 , aliases = { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING8 , STRING7 } , minParameters = NUMBER0 , maxParameters = NUMBER0 , priority = LiquibaseDataType . PRIORITY_DEFAULT ) \n public class BlobType extends LiquibaseDataType { \n private String originalDefinition ;", "msg_token": "Could java sql Types BINARY as a blob type"} {"diff": " public class ColumnSnapshotGenerator extends JdbcSnapshotGenerator { \n STRING0 + \n STRING1 + database . escapeStringForDatabase ( database . escapeObjectName ( column . getRelation ( ) . getName ( ) , Table . class ) ) + STRING2 + \n STRING3 + \n - STRING4 + column . getName ( ) + STRING5 ) , String . class ) ; \n + STRING4 + database . escapeStringForDatabase ( column . getName ( ) ) + STRING5 ) , String . class ) ; \n \n if ( remarks != null && remarks . size ( ) > NUMBER0 ) { \n column . setRemarks ( StringUtils . trimToNull ( remarks . iterator ( ) . next ( ) ) ) ;", "msg_token": "Correctly escape column names when fetching remarks"} {"diff": " public class ProfileRouter { \n } \n if ( newRide . durationLowerBound ( ) > MAX_DURATION ) return false ; \n SINGLE \n - for ( Ride oldRide : retainedRides . get ( cluster ) ) { \n + for ( Iterator < Ride > it = retainedRides . get ( cluster ) . iterator ( ) ; it . hasNext ( ) ; ) { \n + Ride oldRide = it . next ( ) ; \n + \n if ( oldRide . to == null ) oldRide = oldRide . previous ; SINGLE \n SINGLE \n SINGLE \n public class ProfileRouter { \n if ( newRide . durationLowerBound ( ) > oldRide . durationUpperBound ( ) + request . suboptimalMinutes ) { \n return false ; \n } \n + \n + if ( oldRide . durationLowerBound ( ) > newRide . durationUpperBound ( ) + request . suboptimalMinutes ) { \n + SINGLE \n + SINGLE \n + it . remove ( ) ; \n + } \n } \n retainedRides . put ( cluster , newRide ) ; \n return true ; SINGLE", "msg_token": "dominate existing rides"} {"diff": " public class TestVoiceActivity extends OsmandActionBarActivity { \n gl . setPadding ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n \n TextView tv = new TextView ( this ) ; \n - tv . setText ( STRING0 ) ; \n + tv . setText ( STRING1 ) ; \n tv . setPadding ( NUMBER1 , NUMBER2 , NUMBER1 , NUMBER3 ) ; \n \n ScrollView sv = new ScrollView ( this ) ; \n public class TestVoiceActivity extends OsmandActionBarActivity { \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n final OsmandApplication app = ( OsmandApplication ) getApplication ( ) ; \n + getSupportActionBar ( ) . setTitle ( app . getString ( R . string . test_voice_prompts ) + STRING2 + entrieValues [ which ] + STRING3 ) ; \n app . getSettings ( ) . VOICE_PROVIDER . set ( entrieValues [ which ] ) ; \n app . showDialogInitializingCommandPlayer ( TestVoiceActivity . this , true , new Runnable ( ) {", "msg_token": "Add langauge indication to TestVoicePrompts"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n SINGLE \n boolean b = forceAsyncIOWriter ; \n forceAsyncIOWriter = false ; \n - asyncIOWriter . write ( AtmosphereResponse . this , new String ( s ) ) ; \n + asyncIOWriter . write ( AtmosphereResponse . this , s ) ; \n forceAsyncIOWriter = b ; \n \n } catch ( IOException e ) {", "msg_token": "Fix this Non sense"} {"diff": " public class IndicesTTLService extends AbstractLifecycleComponent < IndicesTTLServ \n for ( IndexService indexService : indicesService ) { \n SINGLE \n FieldMappers ttlFieldMappers = indexService . mapperService ( ) . name ( TTLFieldMapper . NAME ) ; \n + if ( ttlFieldMappers == null ) { \n + continue ; \n + } \n SINGLE \n boolean hasTTLEnabled = false ; \n for ( FieldMapper ttlFieldMapper : ttlFieldMappers ) {", "msg_token": "if ttl field mappers don t exists yet ignore it for that shard"} {"diff": " public class JBTabsPaneImpl implements TabbedPane , SwingConstants { \n public JBTabsPaneImpl ( @ nullable Project project , int tabPlacement , @ notnull Disposable parent ) { \n myTabs = new JBEditorTabs ( project , ActionManager . getInstance ( ) , project == null ? null : IdeFocusManager . getInstance ( project ) , parent ) { \n @ override \n + public boolean isAlphabeticalMode ( ) { \n + return false ; \n + } \n + \n + @ override \n protected void doPaintBackground ( Graphics2D g2d , Rectangle clip ) { \n super . doPaintBackground ( g2d , clip ) ; \n if ( getTabsPosition ( ) == JBTabsPosition . top && isSingleRow ( ) ) {", "msg_token": "turn off alphabetical mode for JBTabsPane"} {"diff": " public class SettingsNavigationActivity extends SettingsBaseActivity { \n if ( MORE_VALUE . equals ( newValue ) ) { \n SINGLE \n final Intent intent = new Intent ( this , DownloadIndexActivity . class ) ; \n - intent . putExtra ( DownloadIndexActivity . FILTER_KEY , STRING0 ) ; \n + intent . putExtra ( DownloadIndexActivity . FILTER_KEY , getString ( R . string . voice ) ) ; \n startActivity ( intent ) ; \n } else { \n super . onPreferenceChange ( preference , newValue ) ;", "msg_token": "Fix voice issue"} {"diff": " public class h2odriver extends Configured implements Tool { \n COMMENT \n COMMENT \n static void usage ( ) { \n - String prog = h2odriver . class . getSimpleName ( ) ; \n - \n System . err . printf ( \n STRING0 + \n - STRING1 + prog + STRING0 + \n + STRING2 + \n STRING3 + \n STRING4 + \n STRING5 + \n public class h2odriver extends Configured implements Tool { \n STRING6 + \n STRING0 + \n STRING7 + \n - STRING8 + prog + STRING9 + \n + STRING10 + \n + STRING11 + \n STRING0 + \n STRING12 + \n STRING13 + \n STRING14 + \n + STRING15 + \n + STRING16 + \n + STRING17 + \n + STRING18 + \n STRING0 \n ) ;", "msg_token": "Incrementally improve help"} {"diff": " class XmlList extends GroovyObjectSupport implements Buildable { \n \n if ( child instanceof String ) { \n buff . append ( child ) ; \n + } else { \n + buff . append ( ( ( XmlList ) child ) . text ( ) ) ; \n } \n }", "msg_token": "Make text work with mixed content"} {"diff": " public class RecoveringParseRunner < V > extends AbstractParseRunner < V > { \n for ( int i = children . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n if ( children . get ( i ) . accept ( this ) != null ) return actions ; \n } \n - throw new IllegalStateException ( ) ; SINGLE \n + SINGLE \n + SINGLE \n + return null ; \n } \n \n @ override", "msg_token": "Fix IllegalStateException in RecoveringParseRunner"} {"diff": " public class PinotByteBuffer extends PinotDataBuffer { \n @ override \n protected void readFrom ( File file , long startPosition , long length ) \n throws IOException { \n - RandomAccessFile raf = new RandomAccessFile ( file , STRING0 ) ; \n - raf . getChannel ( ) . position ( startPosition ) ; \n - ByteBuffer dup = buffer . duplicate ( ) ; \n - dup . position ( NUMBER0 ) ; \n - dup . limit ( ( int ) length ) ; \n - raf . getChannel ( ) . read ( dup , startPosition ) ; \n + try ( RandomAccessFile raf = new RandomAccessFile ( file , STRING0 ) ) { \n + raf . getChannel ( ) . position ( startPosition ) ; \n + ByteBuffer dup = buffer . duplicate ( ) ; \n + dup . position ( NUMBER0 ) ; \n + dup . limit ( ( int ) length ) ; \n + raf . getChannel ( ) . read ( dup , startPosition ) ; \n + } \n } \n \n @ override", "msg_token": "Close the file after loading the data from file to memory in PinotDataBuffer"} {"diff": " public class GetProcessorUnitTest extends BaseProcessorUnitTest { \n } \n } ) ; \n this . commandProcessor . setConsumerFilterManager ( this . consumerFilterManager ) ; \n - this . conn . response ( new DataCommand ( new byte [ NUMBER0 ] , opaque , true ) ) ; \n + this . conn . response ( new BooleanCommand ( HttpStatus . Moved , String . valueOf ( offset + msgBuf . capacity ( ) ) , opaque ) ) ; \n EasyMock . expectLastCall ( ) ; \n this . mocksControl . replay ( ) ;", "msg_token": "Fixed test failures"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class RemoteImageLoaderTextViewAdapter extends RemoteImageLoaderViewAdapt \n \n private void setCompoundDrawable ( Drawable drawable ) { \n DisplayMetrics metrics = new DisplayMetrics ( ) ; \n - ( ( WindowManager ) view . getContext ( ) . getSystemService ( Context . WINDOW_SERVICE ) ) \n - . getDefaultDisplay ( ) . getMetrics ( metrics ) ; \n + metrics = view . getContext ( ) . getResources ( ) . getDisplayMetrics ( ) ; \n if ( drawable instanceof BitmapDrawable ) { \n SINGLE \n SINGLE", "msg_token": "Simplified unnecessary complex method call"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class App { \n \n public static void main ( String [ ] args ) { \n \n + SINGLE \n System . out . println ( STRING0 ) ; \n Hostile troll = new Troll ( ) ; \n troll . attack ( ) ; \n troll . fleeBattle ( ) ; \n \n + SINGLE \n System . out . println ( STRING1 ) ; \n - Hostile smart = new SmartTroll ( new Troll ( ) ) ; \n + Hostile smart = new SmartTroll ( troll ) ; \n smart . attack ( ) ; \n smart . fleeBattle ( ) ; \n }", "msg_token": "Improved decorator example"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed the CS errors of CamelNamespaceHandler"} {"diff": " public class ShellProperties { \n private static Log logger = LogFactory . getLog ( ShellProperties . class ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private String auth = STRING0 ; \n \n public class JpaProperties { \n private Class < ? > namingStrategy ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private String ddlAuto ;", "msg_token": "Remove hard coded list of values in description"} {"diff": " public abstract class FragmentPagerAdapter extends PagerAdapter { \n if ( mCurTransaction == null ) { \n mCurTransaction = mFragmentManager . beginTransaction ( ) ; \n } \n - if ( DEBUG ) Log . v ( TAG , STRING0 + position + STRING1 + object \n - + STRING2 + ( ( Fragment ) object ) . getView ( ) ) ; \n Fragment fragment = ( Fragment ) object ; \n + if ( DEBUG ) Log . v ( TAG , STRING0 + position + STRING1 + fragment \n + + STRING2 + fragment . getView ( ) ) ; \n fragment . mViewPagerParticipant = false ; \n mCurTransaction . detach ( fragment ) ; \n }", "msg_token": "Skip a duplicate object cast"} {"diff": " public final class WebSecurity extends \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Typo in Javadoc"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class JavaCompletionUtil { \n final PsiDocumentManager manager = PsiDocumentManager . getInstance ( file . getProject ( ) ) ; \n manager . commitDocument ( manager . getDocument ( file ) ) ; \n final PsiReference ref = file . findReferenceAt ( offset ) ; \n - if ( ref instanceof PsiJavaCodeReferenceElement ) { \n - JavaCodeStyleManager . getInstance ( file . getProject ( ) ) . shortenClassReferences ( ( PsiJavaCodeReferenceElement ) ref ) ; \n + if ( ref != null ) { \n + PsiElement element = ref . getElement ( ) ; \n + if ( element != null ) { \n + JavaCodeStyleManager . getInstance ( file . getProject ( ) ) . shortenClassReferences ( element ) ; \n + } \n } \n }", "msg_token": "shorten references in completed type elements in groovy files"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n STRING0 ) ; \n if ( ! teardown ( otherNet ) ) { \n Slog . e ( TAG , STRING1 ) ; \n + teardown ( thisNet ) ; \n return ; \n } \n if ( isFailover ) {", "msg_token": "Only leave one default network up at a time"} {"diff": " public final class BlazeRuntime { \n private final ProjectFile . Provider projectFileProvider ; \n @ nullable \n private final InvocationPolicy invocationPolicy ; \n + private final QueryEnvironmentFactory queryEnvironmentFactory ; \n \n SINGLE \n private final BlazeDirectories directories ; \n private final SkyframeExecutor skyframeExecutor ; \n - private final QueryEnvironmentFactory queryEnvironmentFactory ; \n COMMENT \n private ActionCache actionCache ; \n COMMENT", "msg_token": "Move a field around to clarify that it s not part of the workspace state"} {"diff": " public class ProjectJdkImpl extends UserDataHolderBase implements JDOMExternaliz \n \n @ override \n public void rootsChanged ( ) { \n + resetVersionString ( ) ; \n if ( myListeners . isEmpty ( ) ) { \n return ; \n }", "msg_token": "reset version string in SdkModificator only if real changes in roots were detected"} {"diff": " public class TheTVDB { \n show . firstAired = TimeTools . parseShowFirstRelease ( traktShow . first_aired ) ; \n show . rating = traktShow . rating == null ? FLOAT0 : traktShow . rating ; \n } else { \n + SINGLE \n + show . traktId = ShowTools . getShowTraktId ( context , showTvdbId ) ; \n SINGLE \n show . release_time = - NUMBER0 ; \n show . release_weekday = - NUMBER0 ;", "msg_token": "Keep an existing show trakt id when updating"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - public interface RequestCallback < T > extends ResultCallback < AsyncHttpResponse , T > { \n + public interface RequestCallback < T > extends ResultCallback < T > { \n public void onConnect ( AsyncHttpResponse response ) ; \n public void onProgress ( AsyncHttpResponse response , int downloaded , int total ) ; \n } \n \n package NAMESPACE ; \n \n - public interface ResultCallback < S , T > { \n + public interface ResultCallback < T > { \n public void onCompleted ( Exception e , T result ) ; \n }", "msg_token": "remove extraneous arg"} {"diff": " public class AddColumnGenerator extends AbstractSqlGenerator < AddColumnStatement > \n \n String alterTable = STRING0 + database . escapeTableName ( statement . getSchemaName ( ) , statement . getTableName ( ) ) + STRING1 + database . escapeColumnName ( statement . getSchemaName ( ) , statement . getTableName ( ) , statement . getColumnName ( ) ) + STRING2 + TypeConverterFactory . getInstance ( ) . findTypeConverter ( database ) . getDataType ( statement . getColumnType ( ) , statement . isAutoIncrement ( ) ) ; \n \n - if ( statement . isAutoIncrement ( ) ) { \n + if ( statement . isAutoIncrement ( ) && database . supportsAutoIncrement ( ) ) { \n alterTable += STRING2 + database . getAutoIncrementClause ( ) ; \n }", "msg_token": "only add auto increment for databases that support it"} {"diff": " public class BenchmarkRunner extends MediaItemBenchmark \n \n SINGLE \n JacksonJsonManual . register ( groups ) ; \n - JacksonJsonTree . register ( groups ) ; \n - JacksonJsonTreeWithStrings . register ( groups ) ; \n JacksonJsonDatabind . register ( groups ) ; \n JacksonJsonDatabindWithStrings . register ( groups ) ; \n JacksonJsonAfterburner . register ( groups ) ; SINGLE \n + JacksonJsonTree . register ( groups ) ; \n + JacksonJsonTreeWithStrings . register ( groups ) ; \n JsonTwoLattes . register ( groups ) ; \n ProtostuffJson . register ( groups ) ; \n SINGLE", "msg_token": "reorder more tests to get better result layout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JCheckBoxTree extends JTree { \n checkBox . setEnabled ( false ) ; \n } \n altLabel . setText ( textRepresentation ) ; \n + altLabel . setForeground ( UIManager . getColor ( selected ? STRING0 : STRING1 ) ) ; \n \n return this ; \n }", "msg_token": "Set correct foreground colour on checkboxtree node"} {"diff": " public final class AddressBookResultHandler extends ResultHandler { \n String [ ] numbers = result . getPhoneNumbers ( ) ; \n if ( numbers != null ) { \n for ( String number : numbers ) { \n - ParsedResult . maybeAppend ( PhoneNumberUtils . formatNumber ( number ) , contents ) ; \n + if ( number != null ) { \n + ParsedResult . maybeAppend ( PhoneNumberUtils . formatNumber ( number ) , contents ) ; \n + } \n } \n } \n ParsedResult . maybeAppend ( result . getEmails ( ) , contents ) ;", "msg_token": "Avoid NPE on null phone number"} {"diff": " public class BeanELResolver extends ELResolver { \n return null ; \n } \n \n - ExpressionFactory factory = Util . getExpressionFactory ( ) ; \n + ExpressionFactory factory = ELManager . getExpressionFactory ( ) ; \n \n String methodName = ( String ) factory . coerceToType ( method , String . class ) ; \n \n public abstract class ELContext { \n setPropertyResolved ( originalResolved ) ; \n } \n \n - return Util . getExpressionFactory ( ) . coerceToType ( obj , type ) ; \n + return ELManager . getExpressionFactory ( ) . coerceToType ( obj , type ) ; \n } \n }", "msg_token": "Use new API"} {"diff": " public class ContactPresenceActivity extends Activity { \n } \n } ) . show ( ) ; \n } \n - catch ( Exception e ) \n + catch ( RemoteException e ) \n { \n LogCleaner . error ( ImApp . LOG_TAG , STRING0 , e ) ; \n }", "msg_token": "changed Exception into RemoteException"} {"diff": " public class PyCallExpressionImpl extends PyElementImpl implements PyCallExpress \n } \n final PyType providedType = PyReferenceExpressionImpl . getReferenceTypeFromProviders ( target , context , this ) ; \n if ( providedType != null ) { \n + if ( providedType instanceof PyClassType ) { \n + return ( ( PyClassType ) providedType ) . toInstance ( ) ; \n + } \n return providedType ; \n } \n if ( target instanceof Callable ) {", "msg_token": "Return an instance type provided by reference type provider for callees"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class FormatUtils { \n public static String parametersToString ( Object . . . objs ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class BufferUtils { \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class PathUtils { \n COMMENT \n COMMENT", "msg_token": "add more clear javadoc"} {"diff": " public class PhoneWindow extends Window implements MenuBuilder . Callback { \n } \n \n public void clearContentView ( ) { \n - if ( mNonClientDecorView != null && mNonClientDecorView . getChildCount ( ) > NUMBER0 ) { \n - mNonClientDecorView . removeViewAt ( NUMBER0 ) ; \n + if ( mNonClientDecorView != null ) { \n + if ( mNonClientDecorView . getChildCount ( ) > NUMBER0 ) { \n + mNonClientDecorView . removeViewAt ( NUMBER0 ) ; \n + } \n + } else { \n + SINGLE \n + SINGLE \n + mDecor . removeAllViews ( ) ; \n } \n }", "msg_token": "Fix leak of decor view children"} {"diff": " public class StatsAggregator extends NumericMetricsAggregator . MultiValue { \n @ override \n protected ValuesSourceAggregatorFactory < Numeric > innerReadFrom ( String name , ValuesSourceType valuesSourceType , \n ValueType targetValueType , StreamInput in ) { \n - return new StatsAggegator . Factory ( name ) ; \n + return new StatsAggregator . Factory ( name ) ; \n } \n \n @ override \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n - public class StatsTests extends AbstractNumericMetricTestCase < StatsAggegator . Factory > { \n + public class StatsTests extends AbstractNumericMetricTestCase < StatsAggregator . Factory > { \n \n @ override \n - protected StatsAggegator . Factory doCreateTestAggregatorFactory ( ) { \n - return new StatsAggegator . Factory ( STRING0 ) ; \n + protected StatsAggregator . Factory doCreateTestAggregatorFactory ( ) { \n + return new StatsAggregator . Factory ( STRING0 ) ; \n } \n \n }", "msg_token": "fixed merge errors"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class BlockDataManager { \n + COMMENT \n + private final BlockHeartbeatReporter mHeartbeatReporter ; \n COMMENT \n private final BlockStore mBlockStore ; \n \n public class BlockDataManager { \n COMMENT \n COMMENT \n public BlockDataManager ( TachyonConf tachyonConf ) { \n + mHeartbeatReporter = new BlockHeartbeatReporter ( ) ; \n mBlockStore = new TieredBlockStore ( tachyonConf ) ; \n + \n + SINGLE \n + mBlockStore . registerMetaListener ( mHeartbeatReporter ) ; \n } \n \n COMMENT \n public class BlockDataManager { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n SINGLE \n public BlockHeartbeatReport getReport ( ) { \n - return null ; \n + return mHeartbeatReporter . generateReport ( ) ; \n } \n \n COMMENT", "msg_token": "Implement the heartbeat reporter logic in block data manager"} {"diff": " public class C2DMReceiver extends C2DMBaseReceiver { \n } \n \n @ override \n - public void onRegistrered ( Context context , String registrationId ) { \n + public void onRegistered ( Context context , String registrationId ) { \n Log . w ( STRING0 , registrationId ) ; \n } \n \n public abstract class C2DMBaseReceiver extends IntentService { \n COMMENT \n COMMENT \n COMMENT \n - public void onRegistrered ( Context context , String registrationId ) throws IOException { \n + public void onRegistered ( Context context , String registrationId ) throws IOException { \n SINGLE \n } \n \n public abstract class C2DMBaseReceiver extends IntentService { \n } \n } else { \n try { \n - onRegistrered ( context , registrationId ) ; \n + onRegistered ( context , registrationId ) ; \n C2DMessaging . setRegistrationId ( context , registrationId ) ; \n } catch ( IOException ex ) { \n Log . e ( TAG , STRING1 + ex . getMessage ( ) ) ;", "msg_token": "fixed typo in Google class"} {"diff": " public class PShape implements PConstants { \n \n \n public PVector getTop ( PVector top ) { \n + if ( top == null ) { \n + top = new PVector ( ) ; \n + } \n return top ; \n } \n \n public class PShape implements PConstants { \n \n \n public PVector getBottom ( PVector bottom ) { \n + if ( bottom == null ) { \n + bottom = new PVector ( ) ; \n + } \n return bottom ; \n }", "msg_token": "creates top and bottom vectors if null"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Make properties with predefined values editable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ReaderActivityLauncher { \n Intent intent = new Intent ( activity , ReaderPostPagerActivity . class ) ; \n intent . putExtra ( ReaderConstants . ARG_BLOG_ID , blogId ) ; \n intent . putExtra ( ReaderConstants . ARG_POST_ID , postId ) ; \n - intent . putExtra ( ReaderConstants . ARG_TITLE , activity . getTitle ( ) ) ; \n + \n + SINGLE \n + CharSequence title ; \n + if ( activity instanceof ActionBarActivity && ( ( ActionBarActivity ) activity ) . getSupportActionBar ( ) != null ) { \n + title = ( ( ActionBarActivity ) activity ) . getSupportActionBar ( ) . getTitle ( ) ; \n + } else { \n + title = activity . getTitle ( ) ; \n + } \n + \n + intent . putExtra ( ReaderConstants . ARG_TITLE , title ) ; \n intent . putExtra ( ReaderConstants . ARG_IS_SINGLE_POST , true ) ; \n showReaderPostPager ( activity , intent ) ; \n }", "msg_token": "Pull the activity title from the supportActionBar"} {"diff": " public class LabeledComponent < Comp extends JComponent > extends JPanel implements \n } \n \n public void setText ( String textWithMnemonic ) { \n - if ( ! StringUtil . endsWithChar ( textWithMnemonic , STRING0 ) ) textWithMnemonic += STRING1 ; \n + if ( ! StringUtil . isEmpty ( textWithMnemonic ) && ! StringUtil . endsWithChar ( textWithMnemonic , STRING0 ) ) textWithMnemonic += STRING1 ; \n TextWithMnemonic withMnemonic = TextWithMnemonic . fromTextWithMnemonic ( textWithMnemonic ) ; \n withMnemonic . setToLabel ( myLabel ) ; \n }", "msg_token": "Do not add semicolon if label is empty needed for DartGeneratorPeer WebProjectSettingsStepWrapper"} {"diff": " public abstract class FluentIterable < E > implements Iterable < E > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class FluentIterable < E > implements Iterable < E > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class FluentIterable < E > implements Iterable < E > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class FluentIterable < E > implements Iterable < E > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Emphasize the differences between of E and from E"} {"diff": " public class TwoWayView extends AdapterView < ListAdapter > implements \n } \n \n private void updateEmptyStatus ( ) { \n - final boolean isEmpty = mAdapter == null || mAdapter . isEmpty ( ) ; \n + final boolean isEmpty = ( mAdapter == null || mAdapter . isEmpty ( ) ) ; \n if ( isEmpty ) { \n if ( mEmptyView != null ) { \n mEmptyView . setVisibility ( View . VISIBLE ) ;", "msg_token": "library Enclose boolean expression with parens"} {"diff": " public class ConversationActivity extends XmppActivity \n listView . enableSwipeToDismiss ( ) ; \n listView . setSwipingLayout ( R . id . swipeable_item ) ; \n listView . setUndoStyle ( EnhancedListView . UndoStyle . SINGLE_POPUP ) ; \n - listView . setUndoHideDelay ( NUMBER0 ) ; \n + listView . setUndoHideDelay ( NUMBER1 ) ; \n listView . setRequireTouchBeforeDismiss ( false ) ; \n \n mContentView = findViewById ( R . id . content_view_spl ) ;", "msg_token": "increased undo delay"} {"diff": " public class TravelModeWrapper { \n return TraverseMode . WALK ; \n case CAR : \n return TraverseMode . CAR ; \n + case CUSTOM_MOTOR_VEHICLE : \n + return TraverseMode . CUSTOM_MOTOR_VEHICLE ; \n case TRAM : \n return TraverseMode . TRAM ; \n case SUBWAY : \n public class TravelModeWrapperTest { \n Map < TravelMode , TraverseMode > modeMap = new HashMap < TravelMode , TraverseMode > ( ) ; \n modeMap . put ( TravelMode . BICYCLE , TraverseMode . BICYCLE ) ; \n modeMap . put ( TravelMode . CAR , TraverseMode . CAR ) ; \n + modeMap . put ( TravelMode . CUSTOM_MOTOR_VEHICLE , TraverseMode . CUSTOM_MOTOR_VEHICLE ) ; \n modeMap . put ( TravelMode . WALK , TraverseMode . WALK ) ; \n modeMap . put ( TravelMode . ANY_TRAIN , TraverseMode . TRAINISH ) ; \n modeMap . put ( TravelMode . ANY_TRANSIT , TraverseMode . TRANSIT ) ;", "msg_token": "add CUSTOM_MOTOR_VEHICLE to thrift API"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n checks . add ( closureRewriteModule ) ; \n } \n \n + SINGLE \n + \n + if ( ! options . transpileOnly ) { \n + if ( options . declaredGlobalExternsOnWindow ) { \n + checks . add ( declaredGlobalExternsOnWindow ) ; \n + } \n + } \n + \n + SINGLE \n + \n if ( options . lowerFromEs6 ( ) || options . aggressiveVarCheck . isOn ( ) ) { \n checks . add ( checkVariableReferences ) ; \n } \n public final class DefaultPassConfig extends PassConfig { \n \n checks . add ( convertStaticInheritance ) ; \n \n - if ( options . declaredGlobalExternsOnWindow ) { \n - checks . add ( declaredGlobalExternsOnWindow ) ; \n - } \n + SINGLE \n \n if ( options . closurePass ) { \n checks . add ( closureGoogScopeAliases ) ;", "msg_token": "Move DeclaredGlobalExternsOnWindow before transpilation"} {"diff": " import NAMESPACE ; \n public class LogFormatter extends PatternLayout { \n public LogFormatter ( LoggerContext context , TimeZone timeZone ) { \n super ( ) ; \n + setOutputPatternAsHeader ( false ) ; \n getDefaultConverterMap ( ) . put ( STRING0 , PrefixedThrowableProxyConverter . class . getName ( ) ) ; \n setPattern ( STRING1 + timeZone . getID ( ) + STRING2 ) ; \n setContext ( context ) ; \n public class LogbackFactory { \n LoggerContext context , \n String name ) { \n final SyslogFormatter layout = new SyslogFormatter ( context , syslog . getTimeZone ( ) , name ) ; \n + layout . setOutputPatternAsHeader ( false ) ; \n layout . setContext ( context ) ; \n layout . start ( ) ;", "msg_token": "Fix the damnable pattern header crap"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClientInvocationFuture extends AbstractInvocationFuture < ClientMessa \n if ( response instanceof InterruptedException ) { \n throw ( InterruptedException ) response ; \n } \n + if ( response instanceof CancellationException ) { \n + throw ( CancellationException ) response ; \n + } \n throw new ExecutionException ( ( Throwable ) response ) ; \n } \n return ( ClientMessage ) response ;", "msg_token": "Do not wrap CancellationException in ClientInvocationFuture"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n abstract class BaseUiController < U extends BaseUiController . Ui < UC > , UC > \n private final Set < U > mUis ; \n private final Set < U > mUnmodifiableUis ; \n \n - private boolean mIsPopulatingUis ; \n - \n public BaseUiController ( ) { \n - mUis = new HashSet < U > ( ) ; \n + mUis = new CopyOnWriteArraySet < U > ( ) ; \n mUnmodifiableUis = Collections . unmodifiableSet ( mUis ) ; \n }", "msg_token": "Fix populates bug"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JpaEventsConfiguration { \n } \n \n public String [ ] jpaEventPackagesToScan ( ) { \n - return new String [ ] { JpaCasEventRepository . class . getPackage ( ) . getName ( ) } ; \n + return new String [ ] { CasEvent . class . getPackage ( ) . getName ( ) } ; \n } \n \n @ lazy", "msg_token": "Fixed test cases"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PsiElementFactoryImpl implements PsiElementFactory { \n final Project project = manager . getProject ( ) ; \n final CharArrayCharSequence text = new CharArrayCharSequence ( chars , startOffset , endOffset ) ; \n if ( fileType instanceof LanguageFileType ) { \n - return ( ( LanguageFileType ) fileType ) . getLanguage ( ) . getParserDefinition ( ) . createFile ( project , name , text ) ; \n + final ParserDefinition parserDefinition = ( ( LanguageFileType ) fileType ) . getLanguage ( ) . getParserDefinition ( ) ; \n + if ( parserDefinition != null ) { \n + return parserDefinition . createFile ( project , name , text ) ; \n + } \n } \n return new PsiPlainTextFileImpl ( project , name , fileType , text ) ; \n }", "msg_token": "create plain text file if LanguageFileType returns null from getParserDefinition"} {"diff": " public class CompositeDescriptor extends RngElementDescriptor { \n } \n \n protected XmlAttributeDescriptor [ ] collectAttributeDescriptors ( @ nullable XmlTag context ) { \n - \n - final QName qName = context == null ? \n - null : \n - new QName ( context . getNamespace ( ) , context . getLocalName ( ) ) ; \n - \n + final QName qName = null ; \n final DPattern [ ] patterns ; \n if ( qName == null ) { \n patterns = myPatterns ;", "msg_token": "do not filter list of attributes by context because passed tag may have other namespace ex"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AssetDumper { \n printIndent ( ) ; \n printValue ( value2 ) ; \n } \n - } else if ( value instanceof String ) { \n - ps . printf ( STRING0 , value ) ; \n - } else if ( value instanceof ByteBuffer ) { \n - ByteBuffer bb = ( ByteBuffer ) value ; \n + } else if ( value instanceof UnityBuffer ) { \n + ByteBuffer bb = ( ( UnityBuffer ) value ) . getBuffer ( ) ; \n ps . printf ( STRING1 , bb . capacity ( ) ) ; \n printBytes ( bb ) ; \n + } else if ( value instanceof String ) { \n + ps . printf ( STRING0 , value ) ; \n } else { \n ps . println ( value ) ; \n }", "msg_token": "Fixed incorrect handling of byte buffers"} {"diff": " public class NewDirectoryProjectDialog extends DialogWrapper { \n File suggestedProjectDirectory = FileUtil . findSequentNonexistentFile ( new File ( myBaseDir ) , STRING0 , STRING1 ) ; \n \n myLocationField . setText ( suggestedProjectDirectory . toString ( ) ) ; \n + \n + myProjectNameTextField . setDocument ( new NameFieldDocument ( ) ) ; \n + \n myProjectNameTextField . setText ( suggestedProjectDirectory . getName ( ) ) ; \n \n + myProjectNameTextField . selectAll ( ) ; \n + \n FileChooserDescriptor descriptor = FileChooserDescriptorFactory . createSingleFolderDescriptor ( ) ; \n ComponentWithBrowseButton . BrowseFolderActionListener < JTextField > listener = \n new ComponentWithBrowseButton . BrowseFolderActionListener < JTextField > ( STRING2 , STRING1 , myLocationField , \n public class NewDirectoryProjectDialog extends DialogWrapper { \n } \n } ) ; \n \n - myProjectNameTextField . setDocument ( new NameFieldDocument ( ) ) ; \n - \n - myProjectNameTextField . selectAll ( ) ; \n \n final DirectoryProjectGenerator [ ] generators = Extensions . getExtensions ( DirectoryProjectGenerator . EP_NAME ) ; \n if ( generators . length == NUMBER0 ) {", "msg_token": "Restore default name"} {"diff": " public abstract class KeyguardViewBase extends FrameLayout { \n public KeyguardViewBase ( Context context ) { \n super ( context ) ; \n \n + setSystemUiVisibility ( STATUS_BAR_DISABLE_BACK ) ; \n + \n SINGLE \n setBackgroundDrawable ( new Drawable ( ) { \n @ override \n public abstract class KeyguardViewBase extends FrameLayout { \n return false ; \n } \n \n + @ override \n + public void dispatchSystemUiVisibilityChanged ( int visibility ) { \n + super . dispatchSystemUiVisibilityChanged ( visibility ) ; \n + setSystemUiVisibility ( STATUS_BAR_DISABLE_BACK ) ; \n + } \n }", "msg_token": "Make keyguard also ask to turn the back button off now that it is controlled separately"} {"diff": " public class ProjectWorkspace { \n public String getStderr ( ) { \n return stderr ; \n } \n + \n + public void assertExitCode ( int exitCode ) { \n + if ( exitCode == getExitCode ( ) ) { \n + return ; \n + } \n + \n + String failureMessage = String . format ( STRING0 , exitCode , getExitCode ( ) ) ; \n + System . err . println ( STRING1 + failureMessage + STRING2 ) ; \n + System . err . println ( STRING3 ) ; \n + System . err . println ( getStderr ( ) ) ; \n + System . err . println ( STRING4 ) ; \n + System . err . println ( getStdout ( ) ) ; \n + fail ( failureMessage ) ; \n + } \n } \n \n COMMENT", "msg_token": "Add assertExitCode to ProjectWorkspace"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public final class RequestConfig { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public final class RequestConfigHelper { \n private RequestConfigHelper ( ) { } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class TextToSpeechClient { \n private static final String TAG = STRING0 ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class VoiceInfo { \n COMMENT \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n class TTSImplementationV1 implements ITextToSpeechClient { \n private static final String TAG = STRING1 ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class TextToSpeechClientCompat { \n COMMENT", "msg_token": "Hide new TTS API for the lmp preview"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpecifyTypeExplicitlyAction extends PsiElementBaseIntentionAction { \n \n editor . getCaretModel ( ) . moveToOffset ( newTypeRef . getNode ( ) . getStartOffset ( ) ) ; \n \n - TemplateManagerImpl manager = new TemplateManagerImpl ( project ) ; \n - manager . startTemplate ( editor , builder . buildInlineTemplate ( ) , createTypeReferencePostprocessor ( declaration ) ) ; \n + TemplateManager . getInstance ( project ) \n + . startTemplate ( editor , builder . buildInlineTemplate ( ) , createTypeReferencePostprocessor ( declaration ) ) ; \n } \n \n private static JetTypeReference anyTypeRef ( @ notnull Project project ) {", "msg_token": "Reuse injected instance of TemplateManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class LibsFragment extends Fragment { \n private Boolean aboutShowVersion = null ; \n private Spanned aboutDescription = null ; \n \n + private Comparator < Library > comparator ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class LibsFragment extends Fragment { \n public LibsFragment ( ) { \n } \n \n + public void setLibraryComparator ( final Comparator < Library > comparator ) { \n + this . comparator = comparator ; \n + } \n + \n @ override \n public void onAttach ( Activity activity ) { \n super . onAttach ( activity ) ; \n public class LibsFragment extends Fragment { \n } \n \n aboutDescription = Html . fromHtml ( libs . getStringResourceByName ( STRING0 ) ) ; \n + \n + if ( comparator != null ) { \n + Collections . sort ( libraries , comparator ) ; \n + } \n } \n \n @ override", "msg_token": "Added Comparator to sort libraries"} {"diff": " public class DeepLinkProcessor extends AbstractProcessor { \n jw . endControlFlow ( ) ; \n jw . emitEmptyLine ( ) ; \n \n - jw . emitStatement ( STRING0 ) ; \n + jw . emitStatement ( STRING1 ) ; \n + jw . beginControlFlow ( STRING2 ) ; \n + jw . emitStatement ( STRING3 ) ; \n + jw . nextControlFlow ( STRING4 ) ; \n + jw . emitStatement ( STRING5 ) ; \n + jw . endControlFlow ( ) ; \n + jw . emitEmptyLine ( ) ; \n + \n jw . beginControlFlow ( STRING6 ) ; \n jw . emitStatement ( STRING7 ) ; \n jw . endControlFlow ( ) ;", "msg_token": "Fix passing extras"} {"diff": " public class SelectTool extends SceneEditTool { \n moving . sceneUndo ( ) ; \n moving = null ; \n clearState ( ) ; \n + } else if ( scaling != null ) { \n + scaling . sceneUndo ( ) ; \n + scaling = null ; \n + clearState ( ) ; \n + } else if ( rotating != null ) { \n + rotating . sceneUndo ( ) ; \n + rotating = null ; \n + clearState ( ) ; \n } \n else if ( ! wasDraggingR && ! wasDownR ) { SINGLE \n SINGLE", "msg_token": "updated SDK manipulation to escape a transformation when right click"} {"diff": " public abstract class BaseOrmLiteLoader < T , ID > extends AsyncTaskLoader < List < T > > \n cachedResults . clear ( ) ; \n cachedResults = null ; \n } \n - \n + \n SINGLE \n dao . unregisterObserver ( this ) ; \n } \n \n + public void onChange ( ) { \n + onContentChanged ( ) ; \n + } \n + \n public void setDao ( Dao < T , ID > dao ) { \n this . dao = dao ; \n }", "msg_token": "Added missing method"} {"diff": " public class JglfwGraphics implements Graphics { \n undecorated = config . undecorated ; \n x = config . x ; \n y = config . y ; \n + vSync = config . vSync ; \n initialBackgroundColor = config . initialBackgroundColor ; \n if ( config . fullscreenMonitorIndex != - NUMBER0 ) { SINGLE \n long [ ] monitors = glfwGetMonitors ( ) ; \n public class JglfwGraphics implements Graphics { \n Gdx . gl20 = gl20 ; \n \n if ( ! config . hidden ) show ( ) ; \n - \n - setVSync ( config . vSync ) ; \n } \n \n void frameStart ( ) { \n public class JglfwGraphics implements Graphics { \n if ( ! mouseCaptured ) glfwSetInputMode ( window , GLFW_CURSOR_MODE , GLFW_CURSOR_NORMAL ) ; SINGLE \n \n glfwMakeContextCurrent ( newWindow ) ; \n + setVSync ( vSync ) ; \n if ( visible ) glfwShowWindow ( window ) ; \n \n return true ;", "msg_token": "Fixed vsync in fullscreen"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoEnvironmentUtil { \n \n @ nullable \n public static String retrieveGoPathFromEnvironment ( ) { \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return null ; \n + \n String path = EnvironmentUtil . getValue ( GoConstants . GO_PATH ) ; \n return path != null ? path : PathMacros . getInstance ( ) . getValue ( GoConstants . GO_PATH ) ; \n }", "msg_token": "do not use environment GOPATH in test mode"} {"diff": " public class ReloadAwareAutowireCapableBeanFactory extends DefaultListableBeanFa \n return resolveAutowireablePropertyDescriptorsForClass ( existingBean . getClass ( ) , new Callable < BeanWrapper > ( ) { \n public BeanWrapper call ( ) throws Exception { \n BeanWrapperImpl bw = new BeanWrapperImpl ( false ) ; \n - bw . setWrappedInstance ( existingBean ) ; \n + Class userClass = ClassUtils . getUserClass ( existingBean . getClass ( ) ) ; \n + if ( userClass != existingBean . getClass ( ) ) { \n + bw . setWrappedInstance ( BeanUtils . instantiate ( userClass ) ) ; \n + } else { \n + bw . setWrappedInstance ( existingBean ) ; \n + } \n bw . setConversionService ( getConversionService ( ) ) ; \n return bw ; \n }", "msg_token": "Never use PropertyDescriptors of a proxy class"} {"diff": " OnSslUntrustedCertListener , EditNameDialogListener { \n Toast . LENGTH_LONG ) ; \n msg . show ( ) ; \n } \n - ( ( FileDetailFragment ) details ) . updateFileDetails ( false , false ) ; \n + if ( uploadWasFine || getFile ( ) . fileExists ( ) ) { \n + ( ( FileDetailFragment ) details ) . updateFileDetails ( false , true ) ; \n + } else { \n + cleanSecondFragment ( ) ; \n + } \n \n SINGLE \n if ( uploadWasFine && PreviewImageFragment . canBePreviewed ( getFile ( ) ) ) {", "msg_token": "Fixed refresh of details fragment in landscape tablet when upload finishes"} {"diff": " import NAMESPACE ; \n \n public class UnnecessarilyQualifiedStaticallyImportedElementInspection \n extends BaseInspection { \n + \n @ nls \n @ notnull \n @ override \n public class UnnecessarilyQualifiedStaticallyImportedElementInspection \n PsiJavaCodeReferenceElement reference ) { \n super . visitReferenceElement ( reference ) ; \n final PsiElement qualifier = reference . getQualifier ( ) ; \n - if ( qualifier == null ) { \n + if ( ! ( qualifier instanceof PsiReferenceExpression ) ) { \n return ; \n } \n final PsiElement parent = reference . getParent ( ) ; \n public class UnnecessarilyQualifiedStaticallyImportedElementInspection \n return ; \n } \n final PsiMember member = ( PsiMember ) target ; \n + final PsiReferenceExpression referenceExpression = \n + ( PsiReferenceExpression ) qualifier ; \n + final PsiElement qualifierTarget = referenceExpression . resolve ( ) ; \n + if ( ! ( qualifier instanceof PsiClass ) ) { \n + return ; \n + } \n if ( ImportUtils . isStaticallyImported ( member , reference ) ) { \n registerError ( qualifier , member ) ; \n }", "msg_token": "reduce false positives of Unnecessarily qualified statically imported element"} {"diff": " public class GelfOutput implements MessageOutput { \n protected GelfTransport buildTransport ( final Configuration configuration ) throws MessageOutputConfigurationException { \n final String protocol = configuration . getString ( CK_PROTOCOL ) . toUpperCase ( ) ; \n final String hostname = configuration . getString ( CK_HOSTNAME ) ; \n - final int port = Integer . parseInt ( configuration . getString ( CK_PORT ) ) ; \n + final int port = configuration . getInt ( CK_PORT ) ; \n \n final GelfConfiguration gelfConfiguration = new GelfConfiguration ( new InetSocketAddress ( hostname , port ) ) \n . transport ( GelfTransports . valueOf ( protocol ) ) ;", "msg_token": "Fix port configuration of GelfOutput"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileProcessingCompilerAdapterTask implements CompileTask { \n if ( isMake && cache . getTimestamp ( url ) == file . getTimeStamp ( ) ) { \n final ValidityState state = cache . getExtState ( url ) ; \n final ValidityState itemState = item . getValidityState ( ) ; \n - if ( Comparing . equal ( state , itemState ) ) { \n + if ( state != null ? state . equalsTo ( itemState ) : itemState == null ) { \n continue ; \n } \n }", "msg_token": "FileProcessingCompilerAdapterTask ignores value of ValidityState"} {"diff": " public class HtmlToPdfMojo extends AbstractMojo { \n } \n } ; \n \n + getLog ( ) . info ( STRING0 ) ; \n + String [ ] lines = cl . getCommandline ( ) ; \n + for ( String line : lines ) { \n + getLog ( ) . info ( line ) ; \n + } \n + \n int rc = CommandLineUtils . executeCommandLine ( cl , out , out ) ; \n if ( rc == NUMBER0 ) { \n getLog ( ) . info ( STRING1 + getPDFFileName ( ) ) ;", "msg_token": "added more logging to the calling of princexml"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ReaderAnim { \n set . play ( animX ) . with ( animY ) . with ( animRotate ) ; \n SINGLE \n SINGLE \n - target . setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; \n + if ( Build . VERSION . SDK_INT == Build . VERSION_CODES . KITKAT ) { \n + target . setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; \n + } \n break ; \n default : \n set . play ( animX ) . with ( animY ) ;", "msg_token": "Only set the layer type for the like animation on kitkat"} {"diff": " public class PathBuilderTest { \n assertEquals ( User . class , entity . get ( pathName , User . class ) . getType ( ) ) ; \n } \n \n + @ test \n + public void calling_get_with_the_same_name_and_different_types_returns_specific_type_when_validating ( ) { \n + PathBuilder < User > entity = new PathBuilder < User > ( User . class , STRING0 , PathBuilderValidator . FIELDS ) ; \n + String pathName = STRING1 ; \n + assertEquals ( String . class , entity . get ( pathName ) . getType ( ) ) ; \n + assertEquals ( String . class , entity . get ( pathName , Comparable . class ) . getType ( ) ) ; \n + assertEquals ( String . class , entity . get ( pathName , Object . class ) . getType ( ) ) ; \n + } \n + \n }", "msg_token": "Add test case for pathbuilder with validator"} {"diff": " public class OperationTakeWhileTest { \n public Boolean call ( String s ) { \n return false ; \n } \n - } ) ) . toBlockingObservable ( ) . last ( ) ; \n + } ) ) . toBlockingObservable ( ) . lastOrDefault ( STRING0 ) ; \n } \n \n @ test", "msg_token": "Fix unit test after last changed behavior"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ suppresswarnings ( STRING0 ) \n public class FileDescriptorRatioGaugeTest { \n } \n \n @ test \n - public void autoDetectsTheOperationSystemBean ( ) throws Exception { \n + public void validateFileDescriptorRatioPresenceOnNixPlatforms ( ) throws Exception { \n + OperatingSystemMXBean osBean = ManagementFactory . getOperatingSystemMXBean ( ) ; \n + assumeTrue ( osBean instanceof com . sun . management . UnixOperatingSystemMXBean ) ; \n + \n assertThat ( new FileDescriptorRatioGauge ( ) . getValue ( ) ) \n . isGreaterThanOrEqualTo ( FLOAT0 ) \n . isLessThanOrEqualTo ( FLOAT1 ) ;", "msg_token": "Expect valid file descriptors ratio for nix platforms"} {"diff": " public class FormField { \n private List values = new ArrayList ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FormField ( String variable ) { \n + this . variable = variable ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class FormField { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setVariable ( String variable ) { \n - this . variable = variable ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adds new constructor that makes the variable attribute required"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UserExpressionDescriptorImpl extends EvaluationDescriptor implement \n if ( psiClassAndType . first == null ) { \n throw EvaluateExceptionUtil . createEvaluateException ( DebuggerBundle . message ( STRING0 , myTypeName ) ) ; \n } \n - return createCodeFragment ( psiClassAndType . first ) ; \n + PsiCodeFragment fragment = createCodeFragment ( psiClassAndType . first ) ; \n + if ( fragment instanceof JavaCodeFragment ) { \n + ( ( JavaCodeFragment ) fragment ) . setThisType ( psiClassAndType . second ) ; \n + } \n + return fragment ; \n } \n \n public ValueDescriptorImpl getParentDescriptor ( ) {", "msg_token": "correctly resolve this type in user expressions"} {"diff": " public class SingleInspectionProfilePanel extends JPanel { \n \n Splitter splitter = new Splitter ( false ) ; \n \n + splitter . setShowDividerControls ( true ) ; \n splitter . setFirstComponent ( treePanel ) ; \n splitter . setSecondComponent ( rightPanel ) ; \n splitter . setProportion ( ( float ) treePanel . getPreferredSize ( ) . width / getPreferredSize ( ) . width ) ;", "msg_token": "make splitter visible"} {"diff": " public class JUnitRunner { \n nodes . add ( master ) ; \n \n File out = null , err = null , sandbox = new File ( STRING0 ) ; \n + sandbox . mkdirs ( ) ; \n for ( int i = NUMBER0 ; i < nodes . size ( ) ; i ++ ) { \n out = File . createTempFile ( STRING1 + i + STRING2 , null , sandbox ) ; \n err = File . createTempFile ( STRING1 + i + STRING3 , null , sandbox ) ;", "msg_token": "Fixed sandbox creation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed check style error removed unused imports"} {"diff": " public interface AsmVisitorWrapper { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n ClassVisitor wrap ( TypeDescription instrumentedType , ClassVisitor classVisitor ) ; \n public interface AsmVisitorWrapper { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n class ForDeclaredMethods extends AbstractBase {", "msg_token": "Added documentation and tests for the ASM visitor wrapper"} {"diff": " public class CropImageView extends TransformImageView { \n float cropRectWidth = mCropRect . width ( ) ; \n float cropRectHeight = mCropRect . height ( ) ; \n \n - float tw = ( cropRectWidth - drawableWidth * mMinScale ) / FLOAT0 + mCropRect . left ; \n - float th = ( cropRectHeight - drawableHeight * mMinScale ) / FLOAT0 + mCropRect . top ; \n + float widthScale = mCropRect . width ( ) / drawableWidth ; \n + float heightScale = mCropRect . height ( ) / drawableHeight ; \n + \n + float initialMinScale = Math . max ( widthScale , heightScale ) ; \n + \n + float tw = ( cropRectWidth - drawableWidth * initialMinScale ) / FLOAT0 + mCropRect . left ; \n + float th = ( cropRectHeight - drawableHeight * initialMinScale ) / FLOAT0 + mCropRect . top ; \n \n mCurrentImageMatrix . reset ( ) ; \n - mCurrentImageMatrix . postScale ( mMinScale , mMinScale ) ; \n + mCurrentImageMatrix . postScale ( initialMinScale , initialMinScale ) ; \n mCurrentImageMatrix . postTranslate ( tw , th ) ; \n setImageMatrix ( mCurrentImageMatrix ) ; \n }", "msg_token": "fixed initial min scale"} {"diff": " public class ParticleEmitter { \n } \n \n public ParticleEmitter ( ParticleEmitter emitter ) { \n + name = emitter . name ; \n sprite = emitter . sprite ; \n setMaxParticleCount ( emitter . maxParticleCount ) ; \n minParticleCount = emitter . minParticleCount ;", "msg_token": "Created lucid logo for main menu"} {"diff": " public class SFSBXPCMap { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private ConcurrentHashMap < EntityManager , List < SFSBContextHandle > > XPCToContextMap = \n new ConcurrentHashMap < EntityManager , List < SFSBContextHandle > > ( ) ; \n public class TransactionScopedEntityManager extends AbstractEntityManager { \n result = EntityManagerUtil . createEntityManager ( emf , properties ) ; \n } \n } \n - SINGLE \n return result ; \n }", "msg_token": "add remove some comments"} {"diff": " class MongoDatabaseImpl implements MongoDatabase { \n \n @ override \n public CommandResult executeCommand ( final MongoCommand commandOperation ) { \n + commandOperation . readPreferenceIfAbsent ( options . getReadPreference ( ) ) ; \n final PrimitiveSerializers primitiveSerializers = options . getPrimitiveSerializers ( ) ; \n return new CommandResult ( client . getOperations ( ) . executeCommand ( getName ( ) , \n commandOperation ,", "msg_token": "Added default database read preference to MongoDatabase executeCommand"} {"diff": " public class CommandInfo { \n } \n \n public String getUsageMessage ( ) { \n - StringBuilder builder = new StringBuilder ( FontColor . getColored ( name , ConsoleColors . COMMAND ) ) ; \n + StringBuilder builder = new StringBuilder ( name ) ; \n for ( int i = NUMBER0 ; i < parameterNames . size ( ) ; i ++ ) { \n builder . append ( STRING0 ) ; \n builder . append ( parameterTypes . get ( i ) ) ;", "msg_token": "Fix duplicate command name coloring"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConsoleScreen extends CoreScreenLayer { \n \n @ override \n public void initialise ( ) { \n + \n + setAnimationSystem ( new SwipeMenuAnimationSystem ( FLOAT0 , Direction . TOP_TO_BOTTOM ) ) ; \n + \n final ScrollableArea scrollArea = find ( STRING0 , ScrollableArea . class ) ; \n scrollArea . moveToBottom ( ) ; \n \n public class SwipeMenuAnimationSystem implements MenuAnimationSystem { \n public enum Direction { \n LEFT_TO_RIGHT ( NUMBER0 , NUMBER1 ) , \n RIGHT_TO_LEFT ( - NUMBER0 , NUMBER1 ) , \n - TOP_TO_BOTTOM ( NUMBER1 , NUMBER0 ) , \n - BOTTOM_TO_TOP ( NUMBER1 , - NUMBER0 ) ; \n + TOP_TO_BOTTOM ( NUMBER1 , - NUMBER0 ) , \n + BOTTOM_TO_TOP ( NUMBER1 , NUMBER0 ) ; \n \n private final float horzScale ; \n private final float vertScale ;", "msg_token": "Add animation to ConsoleScreen"} {"diff": " public class ActionMatcher extends AbstractMatcher { \n public MatcherContext getSubContext ( MatcherContext context ) { \n MatcherContext subContext = context . getBasicSubContext ( ) ; \n subContext . setMatcher ( this ) ; \n - if ( ( context . getMatcher ( ) instanceof SequenceMatcher ) & context . getIntTag ( ) > NUMBER0 ) { \n - SINGLE \n - SINGLE \n + if ( context . getCurrentIndex ( ) > context . getStartIndex ( ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n return subContext ; \n } else { \n return context . getSubContext ( this ) ;", "msg_token": "Fix another potential problem ActionMatcher subcontext initialization"} {"diff": " public class KuromojiTokenizerFactory extends AbstractTokenizerFactory { \n return null ; \n } else { \n try { \n - return new UserDictionary ( reader ) ; \n + return UserDictionary . open ( reader ) ; \n } finally { \n reader . close ( ) ; \n }", "msg_token": "Fix compilation use the new UserDictionary open"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n class GoStructLiteralCompletion { \n - enum Variants { FIELD_NAME_ONLY , VALUE_ONLY , BOTH , NONE } \n + COMMENT \n + COMMENT \n + COMMENT \n + enum Variants { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + FIELD_NAME_ONLY , \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + VALUE_ONLY , \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + BOTH , \n + COMMENT \n + COMMENT \n + COMMENT \n + NONE \n + } \n \n @ notnull \n static Variants allowedVariants ( @ nullable GoReferenceExpression structFieldReference ) {", "msg_token": "Add docs to struct literal completion variants enum"} {"diff": " public final class ClassName extends TypeName implements Comparable < ClassName > { \n for ( Class < ? > c = clazz ; c != null ; c = c . getEnclosingClass ( ) ) { \n names . add ( c . getSimpleName ( ) ) ; \n } \n - names . add ( clazz . getPackage ( ) . getName ( ) ) ; \n + if ( clazz . getPackage ( ) != null ) \n + names . add ( clazz . getPackage ( ) . getName ( ) ) ; \n Collections . reverse ( names ) ; \n return new ClassName ( names ) ; \n }", "msg_token": "Prevent potential NPE when getting package reference"} {"diff": " public class NodesResource extends RestResource { \n \n Map < String , Object > result = Maps . newHashMap ( ) ; \n result . put ( STRING0 , node . getNodeId ( ) ) ; \n + result . put ( STRING1 , Tools . getLocalCanonicalHostname ( ) ) ; \n result . put ( STRING2 , node . getTransportAddress ( ) ) ; \n result . put ( STRING3 , Tools . getISO8601String ( node . getLastSeen ( ) ) ) ;", "msg_token": "include hostname in nodes API"} {"diff": " public class UndertowDeploymentInfoService implements Service < DeploymentInfo > { \n \n private DeploymentInfo createServletConfig ( ) throws StartException { \n try { \n - mergedMetaData . resolveAnnotations ( ) ; \n + if ( ! mergedMetaData . isMetadataComplete ( ) ) { \n + mergedMetaData . resolveAnnotations ( ) ; \n + } \n final DeploymentInfo d = new DeploymentInfo ( ) ; \n d . setContextPath ( contextPath ) ; \n if ( mergedMetaData . getDescriptionGroup ( ) != null ) {", "msg_token": "Don t call resolveAnnotations if the deployment is metadata complete"} {"diff": " public class PsiElementModuleRenderer extends DefaultListCellRenderer { \n setText ( myText ) ; \n setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , UIUtil . getListCellHPadding ( ) ) ) ; \n setHorizontalTextPosition ( SwingConstants . LEFT ) ; \n + setHorizontalAlignment ( SwingConstants . RIGHT ) ; SINGLE \n setBackground ( selected ? UIUtil . getListSelectionBackground ( ) : UIUtil . getListBackground ( ) ) ; \n setForeground ( selected ? UIUtil . getListSelectionForeground ( ) : UIUtil . getInactiveTextColor ( ) ) ;", "msg_token": "Align module renderer to the right edge"} {"diff": " public final class Crouton { \n COMMENT \n COMMENT \n public static void hide ( Crouton crouton ) { \n - Manager . getInstance ( ) . removeCrouton ( crouton ) ; \n + crouton . hide ( ) ; \n } \n \n COMMENT \n public final class Crouton { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void hide ( ) { \n + Manager . getInstance ( ) . removeCrouton ( this ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "adds non static hide method"} {"diff": " public interface WebSocketListener { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add missing quote"} {"diff": " public final class MidiManager { \n SINGLE \n MidiDeviceInfo deviceInfo = server . getDeviceInfo ( ) ; \n device = new MidiDevice ( deviceInfo , server , mService , mToken , deviceToken ) ; \n - sendOpenDeviceResponse ( device , listenerF , handlerF ) ; \n } catch ( RemoteException e ) { \n Log . e ( TAG , STRING0 ) ; \n }", "msg_token": "fix double BTLE callback"} {"diff": " public abstract class AbstractJDOQLQuery < Q extends AbstractJDOQLQuery < Q > > extend \n \n @ override \n @ suppresswarnings ( STRING0 ) \n + @ nullable \n public < RT > RT uniqueResult ( Expression < RT > expr ) { \n queryMixin . addToProjection ( expr ) ; \n Query query = createQuery ( false ) ;", "msg_token": "added Nullable annotation to uniqueResult"} {"diff": " public final class BatteryStatsImpl extends BatteryStats { \n private static final int MAGIC = NUMBER0 ; SINGLE \n \n SINGLE \n - private static final int VERSION = NUMBER1 + ( USE_OLD_HISTORY ? NUMBER2 : NUMBER3 ) ; \n + private static final int VERSION = NUMBER4 + ( USE_OLD_HISTORY ? NUMBER2 : NUMBER3 ) ; \n \n SINGLE \n private static final int MAX_HISTORY_ITEMS = NUMBER5 ;", "msg_token": "Bump the BatteryStats parcel VERSION"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ScriptConsole { \n pageProcessor . getSite ( ) . setSleepTime ( params . getSleepTime ( ) ) ; \n pageProcessor . getSite ( ) . setAcceptStatCode ( Sets . < Integer > newHashSet ( NUMBER0 , NUMBER1 , NUMBER2 ) ) ; \n Spider spider = Spider . create ( pageProcessor ) . thread ( params . getThread ( ) ) ; \n + spider . clearPipeline ( ) . addPipeline ( new Pipeline ( ) { \n + @ override \n + public void process ( ResultItems resultItems , Task task ) { \n + \n + } \n + } ) ; \n if ( params . getUrls ( ) == null || params . getUrls ( ) . size ( ) == NUMBER3 ) { \n System . err . println ( STRING0 ) ; \n System . out . println ( STRING1 ) ;", "msg_token": "remove console pipeling"} {"diff": " public class WifiTracker { \n mScanId ++ ; \n final List < ScanResult > newResults = mWifiManager . getScanResults ( ) ; \n for ( ScanResult newResult : newResults ) { \n + if ( newResult . SSID == null || newResult . SSID . isEmpty ( ) ) { \n + continue ; \n + } \n mScanResultCache . put ( newResult . BSSID , newResult ) ; \n mSeenBssids . put ( newResult . BSSID , mScanId ) ; \n }", "msg_token": "Don t cache ScanResults in WifiTracker if there is no SSID"} {"diff": " public final class ExpressionBuilder { \n public static Expression routeIdExpression ( ) { \n return new ExpressionAdapter ( ) { \n public Object evaluate ( Exchange exchange ) { \n + String answer = null ; \n UnitOfWork uow = exchange . getUnitOfWork ( ) ; \n RouteContext rc = uow != null ? uow . getRouteContext ( ) : null ; \n if ( rc != null ) { \n - return rc . getRoute ( ) . getId ( ) ; \n + answer = rc . getRoute ( ) . getId ( ) ; \n } \n - return null ; \n + if ( answer == null ) { \n + SINGLE \n + answer = exchange . getFromRouteId ( ) ; \n + } \n + return answer ; \n } \n \n @ override", "msg_token": "Fixed simple language routeId function to return the id of the current route and not the originated route"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class PythonModuleTypeBase < T extends ModuleBuilder > extends Modu \n \n @ notnull \n public String getDescription ( ) { \n - return STRING0 ; \n + String basicDescription = STRING1 ; \n + FacetType [ ] facetTypes = Extensions . getExtensions ( FacetType . EP_NAME ) ; \n + for ( FacetType type : facetTypes ) { \n + if ( type . getId ( ) . toString ( ) . equalsIgnoreCase ( STRING2 ) ) { \n + return basicDescription + STRING3 ; \n + } \n + } \n + return basicDescription ; \n } \n \n public Icon getBigIcon ( ) {", "msg_token": "don t advertise technologies we don t support in community edition"} {"diff": " public class UpdateCheckActivator \n catch ( Exception e ) \n { \n logger . error ( STRING0 , e ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + return true ; \n } \n - \n - return false ; \n } \n }", "msg_token": "on exception does not open info dialog about new version"} {"diff": " public abstract class SquidDatabase { \n \n private void initializeHelper ( ) { \n if ( helper == null ) { \n - helper = getDatabaseOpenHelper ( new DatabaseOpenHelperDelegate ( ) ) ; \n + helper = getDatabaseOpenHelper ( context , getName ( ) , new DatabaseOpenHelperDelegate ( ) , getVersion ( ) ) ; \n } \n } \n \n - protected DatabaseOpenHelper getDatabaseOpenHelper ( DatabaseOpenHelperDelegate delegate ) { \n - return new DefaultDatabaseOpenHelper ( context , getName ( ) , delegate , getVersion ( ) ) ; \n + protected DatabaseOpenHelper getDatabaseOpenHelper ( Context context , String databaseName , \n + DatabaseOpenHelperDelegate delegate , int version ) { \n + return new DefaultDatabaseOpenHelper ( context , databaseName , delegate , version ) ; \n } \n \n COMMENT", "msg_token": "Pass all required parameters to getDatabaseOpenHelper"} {"diff": " class MultipleBackupDeletionPolicy extends SnapshotDeletionPolicy \n if ( snapshotUsers == NUMBER0 ) \n { \n snapshot = super . snapshot ( id ) ; \n - SINGLE \n - SINGLE \n - snapshotUsers ++ ; \n } \n - else snapshotUsers ++ ; \n + SINGLE \n + SINGLE \n + snapshotUsers ++ ; \n return snapshot ; \n }", "msg_token": "Changed the implementation of the snapshot of empty index fix slightly to read better"} {"diff": " public final class NullPointerTester { \n @ suppresswarnings ( STRING0 ) SINGLE \n Invokable < Object , ? > unsafe = ( Invokable < Object , ? > ) invokable ; \n unsafe . invoke ( instance , params ) ; \n - Assert . fail ( STRING1 + invokable + \n - Arrays . toString ( params ) + STRING2 + testedClass ) ; \n + Assert . fail ( STRING3 + paramIndex \n + + STRING4 + invokable + Arrays . toString ( params ) + STRING2 + testedClass ) ; \n } catch ( InvocationTargetException e ) { \n Throwable cause = e . getCause ( ) ; \n if ( policy . isExpectedType ( cause ) ) {", "msg_token": "Include failing parameter index in exception useful for inherited classes where it s"} {"diff": " public class NetworkController extends BroadcastReceiver { \n mWifiActivityIconId = R . drawable . stat_sys_wifi_inout ; \n break ; \n case WifiManager . DATA_ACTIVITY_NONE : \n + mWifiActivityIconId = NUMBER0 ; \n break ; \n } \n }", "msg_token": "Fix wifi data activity icons"} {"diff": " public class FunctionCodegen extends GenerationStateAware { \n else { \n FrameMap frameMap = context . prepareFrame ( typeMapper ) ; \n \n - int add = NUMBER0 ; \n - if ( kind == OwnerKind . TRAIT_IMPL ) { \n - add ++ ; \n - } \n - \n - if ( functionDescriptor . getReceiverParameter ( ) != null ) { \n - add ++ ; \n - } \n - \n - Type [ ] argTypes = asmMethod . getArgumentTypes ( ) ; \n - List < ValueParameterDescriptor > parameters = functionDescriptor . getValueParameters ( ) ; \n - for ( int i = NUMBER0 ; i < parameters . size ( ) ; i ++ ) { \n - frameMap . enter ( parameters . get ( i ) , argTypes [ i + add ] ) ; \n + for ( ValueParameterDescriptor parameter : functionDescriptor . getValueParameters ( ) ) { \n + frameMap . enter ( parameter , typeMapper . mapType ( parameter ) ) ; \n } \n \n labelsForSharedVars . putAll ( createSharedVarsForParameters ( mv , functionDescriptor , frameMap ) ) ;", "msg_token": "Simplify FrameMap construction in FunctionCodegen"} {"diff": " public final class URL implements Serializable { \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 - COMMENT \n - COMMENT \n - @ deprecated \n - public URL ( String protocol , String host , String file ) \n - throws MalformedURLException { \n - \n - this ( protocol , host , - NUMBER0 , file ) ; \n - \n - } \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class AtmosphereRequest extends HttpServletRequestWrapper { \n } \n \n public AtmosphereRequest body ( String body ) { \n - byte [ ] b = body . getBytes ( ) ; \n - configureStream ( b , NUMBER0 , b . length , STRING0 ) ; \n + br = new BufferedReader ( new StringReader ( body ) ) ; \n return this ; \n }", "msg_token": "Fix encoding issue and unnessary byte conversion"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class RemotePrintSpooler { \n \n private static final boolean DEBUG = false ; \n \n - private static final long BIND_SPOOLER_SERVICE_TIMEOUT = NUMBER0 ; \n + private static final long BIND_SPOOLER_SERVICE_TIMEOUT = \n + ( STRING0 . equals ( Build . TYPE ) ) ? NUMBER1 : NUMBER0 ; \n \n private final Object mLock = new Object ( ) ;", "msg_token": "Increase bind remote print spooler timeout for eng builds"} {"diff": " public class VcsLogQuickSettingsActions extends DumbAwareAction { \n public void update ( AnActionEvent e ) { \n super . update ( e ) ; \n \n - boolean visible = myUi . isMultipleRoots ( ) ; \n - e . getPresentation ( ) . setVisible ( visible ) ; \n - e . getPresentation ( ) . setEnabled ( visible ) ; \n + e . getPresentation ( ) . setEnabledAndVisible ( myUi . isMultipleRoots ( ) ) ; \n } \n \n @ override", "msg_token": "discover setEnabledAndVisible method existence"} {"diff": " public class PluginManager { \n \n private static void addUrl ( List < URL > urls , String url ) { \n try { \n - URL _url = new URL ( url ) ; \n urls . add ( new URL ( url ) ) ; \n } catch ( MalformedURLException e ) { \n SINGLE", "msg_token": "Remove useless URL instanciation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class SimpleTensor implements Serializable { \n - private SimpleMatrix [ ] slices ; \n + private final SimpleMatrix [ ] slices ; \n \n final int numRows ; \n final int numCols ;", "msg_token": "Make another member final"} {"diff": " public class ConversationActivity extends XmppActivity \n upKey = KeyEvent . KEYCODE_DPAD_UP ; \n downKey = KeyEvent . KEYCODE_DPAD_DOWN ; \n } \n - final boolean modifier = event . isCtrlPressed ( ) || event . isAltPressed ( ) ; \n + final boolean modifier = event . isCtrlPressed ( ) || ( event . getMetaState ( ) & KeyEvent . META_ALT_LEFT_ON ) != NUMBER0 ; \n if ( modifier && key == KeyEvent . KEYCODE_TAB && isConversationsOverviewHideable ( ) ) { \n toggleConversationsOverview ( ) ; \n return true ;", "msg_token": "Do not treat right alt key as a modifier for key combos"} {"diff": " public interface PlayerInventory extends Inventory { \n public ItemStack getBoots ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setArmorContents ( ItemStack [ ] items ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface PlayerInventory extends Inventory { \n COMMENT \n COMMENT \n public int getHeldItemSlot ( ) ; \n - } \n + }", "msg_token": "Added setArmorContents as a method for PlayerInventory"} {"diff": " public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL \n } \n catch ( Throwable ex ) { \n model = DKV . get ( dest ( ) ) . get ( ) ; \n - _state = JobState . CANCELLED ; SINGLE \n Log . info ( STRING0 ) ; \n throw new RuntimeException ( ex ) ; \n }", "msg_token": "Don t set the _state after cancellation should be done already"} {"diff": " public class WebView extends AbsoluteLayout \n SINGLE \n centerKeyPressOnTextField ( ) ; \n rebuildWebTextView ( ) ; \n + } else { \n + clearTextEntry ( true ) ; \n } \n if ( inEditingMode ( ) ) { \n return mWebTextView . performLongClick ( ) ;", "msg_token": "Remove text options when longpressing off a textfield"} {"diff": " public class StringBlock { \n if ( styleCount != NUMBER0 ) { \n block . m_styleOffsets = reader . readIntArray ( styleCount ) ; \n } \n - { \n - int size = ( ( stylesOffset == NUMBER0 ) ? chunkSize : stylesOffset ) - stringsOffset ; \n - block . m_strings = new byte [ size ] ; \n - reader . readFully ( block . m_strings ) ; \n - } \n + \n + int size = ( ( stylesOffset == NUMBER0 ) ? chunkSize : stylesOffset ) - stringsOffset ; \n + block . m_strings = new byte [ size ] ; \n + reader . readFully ( block . m_strings ) ; \n + \n if ( stylesOffset != NUMBER0 ) { \n - int size = ( chunkSize - stylesOffset ) ; \n + size = ( chunkSize - stylesOffset ) ; \n block . m_styles = reader . readIntArray ( size / NUMBER1 ) ; \n \n SINGLE", "msg_token": "skip remove confusing logic"} {"diff": " public class SessionManager extends BasicModule { \n public void onConnectionClose ( Object handback ) { \n ComponentSession session = ( ComponentSession ) handback ; \n try { \n - SINGLE \n - String domain = session . getAddress ( ) . getDomain ( ) ; \n - String subdomain = domain . substring ( NUMBER0 , domain . indexOf ( serverName ) - NUMBER1 ) ; \n - InternalComponentManager . getInstance ( ) . removeComponent ( subdomain ) ; \n + SINGLE \n + for ( String domain : session . getExternalComponent ( ) . getSubdomains ( ) ) { \n + String subdomain = domain . substring ( NUMBER0 , domain . indexOf ( serverName ) - NUMBER1 ) ; \n + InternalComponentManager . getInstance ( ) . removeComponent ( subdomain ) ; \n + } \n } \n catch ( Exception e ) { \n SINGLE", "msg_token": "Remove all registered domains for the component being removed"} {"diff": " public class AndroidApplication extends Activity implements Application { \n } \n } \n \n - protected void useImmersiveMode ( AndroidApplicationConfiguraion config ) { \n - if ( ! conifg . useImmersiveMode || getVersion ( ) < NUMBER0 ) return ; \n + protected void useImmersiveMode ( AndroidApplicationConfiguration config ) { \n + if ( ! config . useImmersiveMode || getVersion ( ) < NUMBER0 ) return ; \n \n View view = getWindow ( ) . getDecorView ( ) ; \n try {", "msg_token": "Fixed accidental typos sorry"} {"diff": " public class SslRenegotiateTest extends TestCase \n } \n public void testRenegBIO ( ) throws Exception \n { \n + COMMENT \n doRequests ( new SslSocketConnector ( ) , true ) ; \n + COMMENT \n } \n \n public void testNoRenegBIO ( ) throws Exception \n { \n - COMMENT \n + COMMENT \n doRequests ( new SslSocketConnector ( ) , false ) ; \n COMMENT \n }", "msg_token": "test too non deterministic"} {"diff": " public class AssignReturnRouteMessageClass extends ZWaveCommandProcessor { \n \n logger . debug ( STRING0 , nodeId ) ; \n if ( incomingMessage . getMessagePayloadByte ( NUMBER0 ) != NUMBER1 ) { \n - logger . error ( STRING1 , nodeId , Integer . toHexString ( incomingMessage . getMessagePayloadByte ( NUMBER2 ) ) ) ; \n + logger . error ( STRING1 , nodeId , Integer . toHexString ( incomingMessage . getMessagePayloadByte ( NUMBER0 ) ) ) ; \n zController . notifyEventListeners ( new ZWaveNetworkEvent ( ZWaveNetworkEvent . Type . AssignReturnRoute , nodeId , \n ZWaveNetworkEvent . State . Failure ) ) ; \n }", "msg_token": "Fix logging error in assign return route"} {"diff": " public class MainFrame \n \n String isToolbarExtendedString \n = GuiActivator . getConfigurationService ( ) . getString ( \n - STRING0 ) ; \n + STRING1 ) ; \n \n boolean isToolBarExtended \n = new Boolean ( isToolbarExtendedString ) . booleanValue ( ) ; \n public class MainFrame \n \n String applicationName \n = GuiActivator . getConfigurationService ( ) . getString ( \n - STRING2 ) ; \n + STRING3 ) ; \n \n this . setTitle ( applicationName ) ;", "msg_token": "Fix main window title"} {"diff": " public class BitmapText extends Node { \n SINGLE \n SINGLE \n SINGLE \n - this . letters = new Letters ( font , block , letters . getQuad ( ) . isRightToLeft ( ) ) ; \n + this . letters = new Letters ( font , this . block , letters . getQuad ( ) . isRightToLeft ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fixed the cloned Letters to use the cloned StringBlock instead of the"} {"diff": " public class TestWebSocketFrameClient extends TomcatBaseTest { \n SINGLE \n System . out . println ( STRING0 ) ; \n count = NUMBER0 ; \n - limit = NUMBER1 ; \n + limit = NUMBER2 ; \n while ( TesterFirehoseServer . Endpoint . getOpenConnectionCount ( ) != NUMBER0 && count < limit ) { \n Thread . sleep ( NUMBER2 ) ; \n count ++ ;", "msg_token": "Fix order of magnitude error in the wait time"} {"diff": " public final class FBReader extends ZLAndroidActivity { \n addMenuItem ( menu , ActionCode . DECREASE_FONT ) ; \n addMenuItem ( menu , ActionCode . SHOW_NAVIGATION ) ; \n \n + final ZLAndroidApplication application = ( ZLAndroidApplication ) getApplication ( ) ; \n + application . myMainWindow . refreshMenu ( ) ; \n + \n return true ; \n } \n } \n public final class ZLAndroidApplicationWindow extends ZLApplicationWindow { \n } \n \n @ override \n - protected void refreshMenu ( ) { \n + public void refreshMenu ( ) { \n for ( Map . Entry < MenuItem , String > entry : myMenuItemMap . entrySet ( ) ) { \n final String actionId = entry . getValue ( ) ; \n final ZLApplication application = getApplication ( ) ;", "msg_token": "fixed day night menu item"} {"diff": " public class EditAccountActivity extends XmppActivity implements OnAccountUpdate \n \n private void updateAccountInformation ( boolean init ) { \n if ( init ) { \n + this . mAccountJid . getEditableText ( ) . clear ( ) ; \n if ( Config . DOMAIN_LOCK != null ) { \n - this . mAccountJid . setText ( this . mAccount . getJid ( ) . getLocalpart ( ) ) ; \n + this . mAccountJid . getEditableText ( ) . append ( this . mAccount . getJid ( ) . getLocalpart ( ) ) ; \n } else { \n - this . mAccountJid . setText ( this . mAccount . getJid ( ) . toBareJid ( ) . toString ( ) ) ; \n + this . mAccountJid . getEditableText ( ) . append ( this . mAccount . getJid ( ) . toBareJid ( ) . toString ( ) ) ; \n } \n this . mPassword . setText ( this . mAccount . getPassword ( ) ) ; \n }", "msg_token": "set cursor to end of jid in edit account"} {"diff": " public class DatabaseConnectionFactory { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static Connection createConnection ( File databaseFile , boolean readOnly ) {", "msg_token": "Updating javadoc to reflect changes"} {"diff": " public class TestSchema { \n \n StarTreeIndexSpec indexSpec = new StarTreeIndexSpec ( ) ; \n indexSpec . setSplitOrder ( Arrays . asList ( STRING0 , STRING1 , STRING2 ) ) ; \n - indexSpec . setMaxLeafRecords ( NUMBER0 ) ; SINGLE \n + indexSpec . setMaxLeafRecords ( NUMBER1 ) ; SINGLE \n \n Assert . assertEquals ( schema . getStarTreeIndexSpecs ( ) . get ( NUMBER2 ) , indexSpec ) ; \n }", "msg_token": "Fixed TestSchema changed default max leaf records"} {"diff": " public class HexagonSettings { \n . getBoolean ( KEY_SETUP_COMPLETED , true ) ; \n } \n \n + public static void setSetupCompleted ( Context context ) { \n + PreferenceManager . getDefaultSharedPreferences ( context ) \n + . edit ( ) . putBoolean ( HexagonSettings . KEY_SETUP_COMPLETED , true ) . commit ( ) ; \n + } \n + \n + public static void setSetupIncomplete ( Context context ) { \n + PreferenceManager . getDefaultSharedPreferences ( context ) \n + . edit ( ) . putBoolean ( HexagonSettings . KEY_SETUP_COMPLETED , false ) . commit ( ) ; \n + } \n }", "msg_token": "Add setupCompleted setters to HexagonSettings"} {"diff": " public class S3DataSegmentPuller implements DataSegmentPuller \n return null ; \n } \n catch ( IOException e ) { \n - FileUtils . deleteDirectory ( outDir ) ; \n throw new IOException ( String . format ( STRING0 , s3Obj ) , e ) ; \n } \n finally { \n public class S3DataSegmentPuller implements DataSegmentPuller \n ) ; \n } \n catch ( Exception e ) { \n + try { \n + FileUtils . deleteDirectory ( outDir ) ; \n + } catch ( IOException ioe ) { \n + log . warn ( \n + ioe , \n + STRING1 , \n + segment . getIdentifier ( ) , \n + outDir \n + ) ; \n + } \n throw new SegmentLoadingException ( e , e . getMessage ( ) ) ; \n } \n }", "msg_token": "Fix S3DataSegmentPuller retry bug"} {"diff": " public class ActivityInjectionTest { \n @ before \n public void setup ( ) { \n RoboGuice . setBaseApplicationInjector ( Robolectric . application , Stage . DEVELOPMENT , RoboGuice . newDefaultRoboModule ( Robolectric . application ) , new ModuleA ( ) ) ; \n - activity = new DummyActivity ( ) ; \n - activity . setIntent ( new Intent ( Robolectric . application , DummyActivity . class ) . putExtra ( STRING0 , STRING1 ) ) ; \n - activity . onCreate ( null ) ; \n + activity = Robolectric . buildActivity ( DummyActivity . class ) . withIntent ( new Intent ( Robolectric . application , DummyActivity . class ) . putExtra ( STRING0 , STRING1 ) ) . create ( ) . get ( ) ; \n } \n \n @ test", "msg_token": "Fix ActivityInjectTest in IntelliJ if I manually reorder the module dependencies"} {"diff": " import NAMESPACE ; \n public interface ArchiveOutputStreamFactory { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Zip extends AbstractArchiveTask { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected class ZipCopyActionImpl extends CopyActionImpl implements ZipCopyAction { \n public ZipCopyActionImpl ( FileResolver fileResolver ) {", "msg_token": "fix some accidently changed javadoc when using idea refactoring feature"} {"diff": " public final class MediaCodecInfo { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static CodecCapabilities createFromProfileLevel ( \n String mime , int profile , int level ) { \n final public class MediaCodecList { \n } \n \n COMMENT \n + synchronized ( sInitLock ) { \n + if ( sGlobalSettings == null ) { \n + sGlobalSettings = native_getGlobalSettings ( ) ; \n + } \n + } \n return sGlobalSettings ; \n } \n \n final public class MediaCodecList { \n private static final void initCodecList ( ) { \n synchronized ( sInitLock ) { \n if ( sRegularCodecInfos == null ) { \n - sGlobalSettings = native_getGlobalSettings ( ) ; \n int count = native_getCodecCount ( ) ; \n ArrayList < MediaCodecInfo > regulars = new ArrayList < MediaCodecInfo > ( ) ; \n ArrayList < MediaCodecInfo > all = new ArrayList < MediaCodecInfo > ( ) ;", "msg_token": "avoid NPE in CodecCapabilities createFromProfileLevel"} {"diff": " public class DaemonInfo implements Serializable , DaemonInstanceDetails { \n this . context = Preconditions . checkNotNull ( context ) ; \n this . password = Preconditions . checkNotNull ( password ) ; \n this . timeProvider = Preconditions . checkNotNull ( busyClock ) ; \n - this . lastBusy = - NUMBER0 ; SINGLE \n + this . lastBusy = - NUMBER0 ; SINGLE \n setIdle ( idle ) ; \n }", "msg_token": "Fix comment in DaemonInfo"} {"diff": " public class PhoneStatusBar extends BaseStatusBar { \n mNotificationPanelIsFullScreenWidth = \n ( mNotificationPanel . getLayoutParams ( ) . width == ViewGroup . LayoutParams . MATCH_PARENT ) ; \n mNotificationPanel . setSystemUiVisibility ( \n - View . STATUS_BAR_DISABLE_NOTIFICATION_TICKER | View . STATUS_BAR_DISABLE_NOTIFICATION_ICONS ) ; \n + View . STATUS_BAR_DISABLE_NOTIFICATION_TICKER | \n + View . STATUS_BAR_DISABLE_NOTIFICATION_ICONS | \n + View . STATUS_BAR_DISABLE_CLOCK ) ; \n \n if ( ! ActivityManager . isHighEndGfx ( ) ) { \n mStatusBarWindow . setBackground ( null ) ;", "msg_token": "hide the redundant clock when the notification shade is open"} {"diff": " public class ChatActivity extends ActorEditTextActivity { \n bindGlobalCounter ( new ValueChangedListener < Integer > ( ) { \n @ override \n public void onChanged ( Integer val , Value < Integer > valueModel ) { \n - if ( val > NUMBER0 ) { \n + if ( val != null && val > NUMBER0 ) { \n counter . setText ( Integer . toString ( val ) ) ; \n showView ( counter ) ; \n } else {", "msg_token": "handle null global counter"} {"diff": " public class MbeansDescriptorsDigesterSource extends ModelerSource \n { \n private static final Log log = \n LogFactory . getLog ( MbeansDescriptorsDigesterSource . class ) ; \n + private static final Object dLock = new Object ( ) ; \n \n private Registry registry ; \n private final List < ObjectName > mbeans = new ArrayList < > ( ) ; \n - private static volatile Digester digester = null ; \n + private static Digester digester = null ; \n \n private static Digester createDigester ( ) { \n \n public class MbeansDescriptorsDigesterSource extends ModelerSource \n \n InputStream stream = ( InputStream ) source ; \n \n - if ( digester == null ) { \n - digester = createDigester ( ) ; \n - } \n ArrayList < ManagedBean > loadedMbeans = new ArrayList < > ( ) ; \n - \n - synchronized ( digester ) { \n + synchronized ( dLock ) { \n + if ( digester == null ) { \n + digester = createDigester ( ) ; \n + } \n \n SINGLE \n try {", "msg_token": "Guard the digester with its own lock object"} {"diff": " public class WelcomeScreenHelper { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - public void show ( ) { \n - show ( DEFAULT_WELCOME_SCREEN_REQUEST ) ; \n + public boolean show ( ) { \n + return show ( DEFAULT_WELCOME_SCREEN_REQUEST ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - public void show ( int requestCode ) { \n - if ( shouldShow ( ) ) \n + public boolean show ( int requestCode ) { \n + boolean shouldShow = shouldShow ( ) ; \n + if ( shouldShow ) { \n startActivity ( requestCode ) ; \n + } \n + return shouldShow ; \n } \n \n COMMENT", "msg_token": "Make show return a boolean"} {"diff": " final class NamingSubsystemElement extends AbstractSubsystemElement < NamingSubsys \n SINGLE \n System . setProperty ( Context . URL_PKG_PREFIXES , PACKAGE_PREFIXES ) ; \n try { \n - SINGLE \n - if ( ! NamingManager . hasInitialContextFactoryBuilder ( ) ) \n - NamingManager . setInitialContextFactoryBuilder ( new InitialContextFactoryBuilder ( ) ) ; \n + SINGLE \n + if ( ! NamingManager . hasInitialContextFactoryBuilder ( ) ) \n + NamingManager . setInitialContextFactoryBuilder ( new InitialContextFactoryBuilder ( ) ) ; \n } catch ( NamingException e ) { \n log . warn ( STRING0 , e ) ; \n - } \n + } \n \n SINGLE \n final BatchBuilder builder = context . getBatchBuilder ( ) ;", "msg_token": "Fix tabs whitespace"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class HiDPIScaledGraphics extends Graphics2D { \n } \n \n @ override \n - public void finalize ( ) { \n - myPeer . finalize ( ) ; \n - } \n - \n - @ override \n public String toString ( ) { \n return myPeer . toString ( ) ; \n }", "msg_token": "makes no sense to delegate finalize"} {"diff": " public class PostsActivity extends WPActionBarActivity implements OnPostSelected \n @ override \n public void onRefresh ( boolean start ) { \n if ( start ) { \n + attemptToSelectPost ( ) ; \n startAnimatingRefreshButton ( refreshMenuItem ) ; \n isRefreshing = true ; \n } else {", "msg_token": "Select the first post after refreshing if using the two pane view"} {"diff": " public abstract class Volume implements Closeable { \n public RandomAccessFileVol ( File file , boolean readOnly , boolean fileLockDisable , long initSize ) { \n this . file = file ; \n try { \n - this . raf = new RandomAccessFile ( file , readOnly ? STRING0 : STRING1 ) ; \n + this . raf = new RandomAccessFile ( file , readOnly ? STRING0 : STRING1 ) ; SINGLE \n this . fileLock = Volume . lockFile ( file , raf , readOnly , fileLockDisable ) ; \n \n SINGLE", "msg_token": "add TODO flag"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Parameterized extends Suite { \n private String nameFor ( String namePattern , int index , Object [ ] parameters ) { \n String finalPattern = namePattern . replaceAll ( STRING0 , \n Integer . toString ( index ) ) ; \n - return format ( finalPattern , parameters ) ; \n + return MessageFormat . format ( finalPattern , parameters ) ; \n } \n \n private Exception parametersMethodReturnedWrongType ( ) throws Exception { \n String className = getTestClass ( ) . getName ( ) ; \n String methodName = getParametersMethod ( ) . getName ( ) ; \n - String message = format ( STRING1 , \n + String message = MessageFormat . format ( \n + STRING1 , \n className , methodName ) ; \n return new Exception ( message ) ; \n }", "msg_token": "Don t use static import for MessageFormat format"} {"diff": " public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed extra parameter tag in JavaDocs"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed JavaDoc again"} {"diff": " public final class Settings { \n public static final String TTY_MODE_ENABLED = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String USE_LOCATION_FOR_SERVICES = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Settings { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static final String USE_LOCATION_FOR_SERVICES = STRING1 ;", "msg_token": "Move USE_LOCATION_FOR_SERVICES to Secure"} {"diff": " public class DownloadFileHelper { \n while ( ( read = zipIn . read ( buffer ) ) != - NUMBER0 ) { \n out . write ( buffer , NUMBER1 , read ) ; \n remaining -= fin . lastReadCount ( ) ; \n - progress . progress ( remaining / NUMBER2 ) ; \n + progress . remaining ( remaining / NUMBER2 ) ; \n } \n out . close ( ) ; \n \n public class MapActivityLayers { \n \n } ) ; \n AlertDialog dlg = builder . show ( ) ; \n - dlg . getListView ( ) . setFastScrollEnabled ( true ) ; \n + try { \n + dlg . getListView ( ) . setFastScrollEnabled ( true ) ; \n + } catch ( Exception e ) { \n + SINGLE \n + SINGLE \n + } \n } \n }", "msg_token": "Fix weird issue with progress"} {"diff": " public class PShapeOpenGL extends PShape { \n \n @ override \n public int getVertexCount ( ) { \n - return inGeo . vertexCount ; \n + updateTessellation ( ) ; \n + return family == GROUP ? NUMBER0 : inGeo . vertexCount ; \n } \n \n \n public class PShapeOpenGL extends PShape { \n \n @ override \n public int getVertexCount ( ) { \n - return inGeo . vertexCount ; \n + updateTessellation ( ) ; \n + return family == GROUP ? NUMBER0 : inGeo . vertexCount ; \n }", "msg_token": "getVertexCount updates tessellation if needed"} {"diff": " public class ProviderManager extends AbstractAuthenticationManager implements Me \n COMMENT \n COMMENT \n COMMENT \n - public ConcurrentSessionController getSessionController ( ) { \n + ConcurrentSessionController getSessionController ( ) { \n return sessionController ; \n }", "msg_token": "Removed public modifier from getSessionController method on ProviderManager"} {"diff": " public class SynchronizationPoint < E extends Exception > { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public void reportFailure ( ) { \n reportFailure ( null ) ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void reportFailure ( E failureException ) { \n + assert failureException != null ; \n connectionLock . lock ( ) ; \n try { \n state = State . Failure ;", "msg_token": "Deprecate SynchronizationPoint reportFailure"} {"diff": " public class JoinGameScreen extends CoreScreenLayer { \n public boolean onKeyEvent ( NUIKeyEvent event ) { \n if ( event . isDown ( ) && event . getKey ( ) == Keyboard . Key . R ) { \n logger . info ( STRING0 ) ; \n + ServerInfo i = visibleList . getSelection ( ) ; \n visibleList . setSelection ( null ) ; \n extInfo . clear ( ) ; \n + visibleList . setSelection ( i ) ; \n } \n return false ; \n }", "msg_token": "Automatically reselecting server"} {"diff": " public class IrcStack \n SINGLE \n this . provider \n . setCurrentRegistrationState ( \n - RegistrationState . UNREGISTERED ) ; \n + RegistrationState . CONNECTION_FAILED ) ; \n Exception e = result . getException ( ) ; \n if ( e != null ) \n throw e ; \n public class IrcStack \n } \n catch ( IOException e ) \n { \n + SINGLE \n this . provider \n . setCurrentRegistrationState ( \n - RegistrationState . UNREGISTERED ) ; \n + RegistrationState . CONNECTION_FAILED ) ; \n throw e ; \n } \n catch ( InterruptedException e )", "msg_token": "Setting more appropriate RegistrationState on error"} {"diff": " public class HistoricProcessInstanceAndVariablesQueryTest extends PluggableActiv \n \n instanceList = historyService . createHistoricProcessInstanceQuery ( ) . includeProcessVariables ( ) . listPage ( NUMBER0 , NUMBER1 ) ; \n assertEquals ( NUMBER2 , instanceList . size ( ) ) ; \n + \n + instanceList = historyService . createHistoricProcessInstanceQuery ( ) \n + . variableValueEquals ( STRING0 , STRING0 ) \n + . includeProcessVariables ( ) \n + . listPage ( NUMBER0 , NUMBER1 ) ; \n + assertEquals ( NUMBER3 , instanceList . size ( ) ) ; \n } \n } \n }", "msg_token": "Added another query test with variables and paging"} {"diff": " public class MuninnPageCache implements PageCache \n this . printExceptionsOnClose = true ; \n \n long alignment = swapperFactory . getRequiredBufferAlignment ( ) ; \n - MemoryManager memoryManager = new MemoryManager ( maxPages * cachePageSize , alignment ) ; \n + long expectedMaxMemory = ( ( long ) maxPages ) * cachePageSize ; SINGLE \n + MemoryManager memoryManager = new MemoryManager ( expectedMaxMemory , alignment ) ; \n Object pageList = null ; \n int pageIndex = maxPages ; \n while ( pageIndex -- > NUMBER0 )", "msg_token": "Fix an integer overflow bug in the expected max memory allocation"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove invalid OWASP link in TextEscapeUtils"} {"diff": " public class ServerStartupListener extends AbstractServiceListener < Object > { \n } else { \n countUpdater . incrementAndGet ( this ) ; \n } \n - log . infof ( STRING0 , serviceController . getName ( ) , totalServices , onDemandServices , count ) ; \n } \n \n COMMENT \n public class ServerStartupListener extends AbstractServiceListener < Object > { \n batchComplete ( ) ; \n } \n serviceController . removeListener ( this ) ; \n - log . infof ( STRING1 , serviceController . getName ( ) , startedServices , count ) ; \n } \n \n COMMENT \n public class ServerStartupListener extends AbstractServiceListener < Object > { \n batchComplete ( ) ; \n } \n serviceController . removeListener ( this ) ; \n - log . infof ( STRING2 , serviceController . getName ( ) , count ) ; \n - } \n + } \n \n COMMENT \n COMMENT", "msg_token": "Remove debug logging"} {"diff": " public class ReassignVariableUtil { \n } ; \n PsiElement scope = declaration ; \n while ( scope != null ) { \n - if ( scope instanceof PsiFile || scope instanceof PsiMethod || scope instanceof PsiClassInitializer ) break ; \n + if ( scope instanceof PsiFile || \n + scope instanceof PsiMethod || \n + scope instanceof PsiLambdaExpression || \n + scope instanceof PsiClassInitializer ) break ; \n scope = scope . getParent ( ) ; \n } \n if ( scope == null ) return proc ;", "msg_token": "do not reassign variable outside lambda body"} {"diff": " public final class BlockStoreMeta { \n COMMENT \n private final Map < String , Long > mUsedBytesOnTiers = new HashMap < String , Long > ( ) ; \n \n - COMMENT \n + COMMENT \n private final Map < String , List < Long > > mBlockIdsOnTiers = new HashMap < String , List < Long > > ( ) ; \n \n COMMENT", "msg_token": "Fix a typo in the blockstoremeta javadoc"} {"diff": " public class MemcacheTest extends HazelcastTestSupport { \n String value = STRING0 ; \n for ( String key : keys ) { \n OperationFuture < Boolean > future = client . set ( key , NUMBER0 , value ) ; \n + future . get ( ) ; \n } \n \n result = client . getBulk ( keys ) ;", "msg_token": "Forgotten future get"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class QueryIndexMigrationTest extends HazelcastTestSupport { \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n - @ ignore \n @ test ( timeout = MINUTE ) \n public void testIndexCleanupOnMigration ( ) throws Exception { \n int nodeCount = NUMBER0 ;", "msg_token": "Enable ignored test in QueryIndexMigrationTest"} {"diff": " public abstract class AbstractCasView extends AbstractView { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed javadoc issue"} {"diff": " public class SubsamplingLayerTest { \n . build ( ) ) \n . layer ( NUMBER0 , new SubsamplingLayer . Builder ( ) \n . poolingType ( SubsamplingLayer . PoolingType . MAX ) \n - . kernelSize ( imageHeight - kernelHeight + NUMBER0 , NUMBER0 ) \n + . kernelSize ( imageHeight - kernelHeight + NUMBER1 , NUMBER0 ) SINGLE \n . stride ( NUMBER0 , NUMBER0 ) \n . build ( ) ) \n . layer ( NUMBER1 , new OutputLayer . Builder ( )", "msg_token": "Fix configuration for subsampling layer test"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClick \n case KeyEvent . KEYCODE_BACK : \n return true ; \n } \n - break ; \n } \n return false ; \n }", "msg_token": "fixed compilation issues"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class CombiningFirehoseFactoryTest \n } \n \n @ override \n + public DateTime getTimestamp ( ) \n + { \n + return new DateTime ( timestamp ) ; \n + } \n + \n + @ override \n + public int compareTo ( Row o ) \n + { \n + return NUMBER0 ; \n + } \n + \n + @ override \n public List < String > getDimension ( String dimension ) \n { \n return Lists . newArrayList ( ) ;", "msg_token": "fix broken UT"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TransportValidateQueryAction extends TransportBroadcastOperationAct \n \n @ override \n protected GroupShardsIterator shards ( ValidateQueryRequest request , String [ ] concreteIndices , ClusterState clusterState ) { \n - SINGLE \n - Map < String , Set < String > > routingMap = clusterState . metaData ( ) . resolveSearchRouting ( STRING0 , request . indices ( ) ) ; \n + SINGLE \n + Map < String , Set < String > > routingMap = clusterState . metaData ( ) . resolveSearchRouting ( Integer . toString ( ThreadLocalRandom . current ( ) . nextInt ( NUMBER0 ) ) , request . indices ( ) ) ; \n return clusterService . operationRouting ( ) . searchShards ( clusterState , request . indices ( ) , concreteIndices , null , routingMap , STRING1 ) ; \n }", "msg_token": "randomize routing value when validating query"} {"diff": " public class CPrecisionValueTransformerTests { \n assertThat ( transformed ) . isNull ( ) ; \n } \n \n + @ test \n + public void nanIsReturnedNull ( ) { \n + ValueTransformer transformer = new CPrecisionValueTransformer ( ) ; \n + Object transformed = transformer . apply ( Double . NaN ) ; \n + \n + assertThat ( transformed ) . isNull ( ) ; \n + } \n + \n }", "msg_token": "Verify test failure"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ColorAndFontOptions extends SearchableConfigurable . Parent . Abstract \n final ScopeChooserConfigurable configurable = ScopeChooserConfigurable . getInstance ( project ) ; \n final boolean isOk = ShowSettingsUtil . getInstance ( ) . editConfigurable ( project , configurable ) ; \n if ( isOk ) { \n - SINGLE \n + myResetCompleted = false ; \n reset ( ) ; \n } \n }", "msg_token": "update scopes after change scope list dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class Extensions { \n private static LogProvider ourLogger = new SimpleLogProvider ( ) ; \n public class Extensions { \n private Extensions ( ) { \n } \n \n + public static void setSynchronized ( ) { \n + assert ourAreaInstance2area . isEmpty ( ) ; \n + assert ourAreaClass2Configuration . isEmpty ( ) ; \n + \n + ourAreaInstance2area = new ConcurrentHashMap < AreaInstance , ExtensionsAreaImpl > ( ) ; \n + ourAreaClass2Configuration = new ConcurrentHashMap < String , AreaClassConfiguration > ( ) ; \n + } \n + \n @ notnull \n public static ExtensionsArea getRootArea ( ) { \n return ourRootArea ;", "msg_token": "restore setSynchronized method"} {"diff": " public class FloatingActionButton extends ImageButton { \n if ( mListView . getAdapter ( ) != null && mListView . getAdapter ( ) . getCount ( ) > NUMBER0 ) { \n int height = NUMBER0 ; \n int itemCount = mListView . getAdapter ( ) . getCount ( ) ; \n - if ( mListViewItemOffsetY == null ) { \n - mListViewItemOffsetY = new int [ itemCount ] ; \n - } \n + mListViewItemOffsetY = new int [ itemCount ] ; \n for ( int i = NUMBER0 ; i < itemCount ; ++ i ) { \n View view = mListView . getAdapter ( ) . getView ( i , null , mListView ) ; \n view . measure (", "msg_token": "Force offset array recreation on each calculation"} {"diff": " public class MeshLoader extends DefaultHandler implements AssetLoader { \n \n int texCoords = parseInt ( attribs . getValue ( STRING0 ) , NUMBER0 ) ; \n for ( int i = NUMBER0 ; i < texCoords ; i ++ ) { \n - int dims = parseInt ( attribs . getValue ( STRING1 + i ) . replaceAll ( STRING2 , STRING3 ) , NUMBER1 ) ; \n + String dimsStr = attribs . getValue ( STRING1 + i ) ; \n + if ( dimsStr . startsWith ( STRING4 ) ) { \n + dimsStr = dimsStr . substring ( STRING4 . length ( ) ) ; \n + } \n + int dims = parseInt ( dimsStr , NUMBER1 ) ; \n if ( dims < NUMBER2 || dims > NUMBER3 ) { \n throw new SAXException ( STRING5 ) ; \n }", "msg_token": "Correct the previous PR a bit"} {"diff": " public class BuckConfig { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public Optional < Long > getSkipLocalBuildChainDepth ( ) { \n - return getLong ( STRING0 , STRING1 ) ; \n - } \n - \n @ nullable \n public Path resolvePathThatMayBeOutsideTheProjectFilesystem ( @ nullable Path path ) { \n if ( path == null ) {", "msg_token": "Remove unused method"} {"diff": " public class BigEndianUnsafeNoCleanerDirectByteBufTest extends BigEndianDirectBy \n \n @ before \n public void checkHasUnsafe ( ) { \n - Assume . assumeTrue ( STRING0 , PlatformDependent . hasUnsafe ( ) ) ; \n + Assume . assumeTrue ( STRING1 , \n + PlatformDependent . useDirectBufferNoCleaner ( ) ) ; \n } \n \n @ override \n public class LittleEndianUnsafeNoCleanerDirectByteBufTest extends LittleEndianDi \n \n @ before \n public void checkHasUnsafe ( ) { \n - Assume . assumeTrue ( STRING0 , PlatformDependent . hasUnsafe ( ) ) ; \n + Assume . assumeTrue ( STRING1 , \n + PlatformDependent . useDirectBufferNoCleaner ( ) ) ; \n } \n \n @ override", "msg_token": "Fix Assume assumeTrue checks in UnssafeNoCleanerDirectByteBufTest"} {"diff": " public class AlertDialog extends Dialog implements DialogInterface { \n COMMENT \n COMMENT \n public AlertDialog create ( ) { \n - final AlertDialog dialog = new AlertDialog ( P . mContext ) ; \n + SINGLE \n + final AlertDialog dialog = new AlertDialog ( P . mContext , NUMBER0 , false ) ; \n P . apply ( dialog . mAlert ) ; \n dialog . setCancelable ( P . mCancelable ) ; \n if ( P . mCancelable ) {", "msg_token": "Don t re wrap alert dialog context"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class UpgradeService { \n COMMENT \n @ suppresswarnings ( STRING0 ) \n public void showChangeLog ( int from ) { \n + if ( ! ( ContextManager . getContext ( ) instanceof Activity ) ) \n + return ; \n + \n StringBuilder changeLog = new StringBuilder ( ) ; \n \n if ( from <= NUMBER0 )", "msg_token": "Don t show upgrade service if we re not an activity"} {"diff": " public class GroovyPointlessArithmeticInspection extends BaseInspection { \n STRING0 . equals ( text ) || \n STRING1 . equals ( text ) || \n STRING2 . equals ( text ) || \n - STRING3 . equals ( text ) ; \n + STRING3 . equals ( text ) || \n + STRING4 . equals ( text ) || \n + STRING5 . equals ( text ) ; \n } \n \n COMMENT \n public class GroovyPointlessArithmeticInspection extends BaseInspection { \n STRING6 . equals ( text ) || \n STRING7 . equals ( text ) || \n STRING8 . equals ( text ) || \n - STRING9 . equals ( text ) ; \n + STRING9 . equals ( text ) || \n + STRING4 . equals ( text ) || \n + STRING5 . equals ( text ) ; \n } \n }", "msg_token": "pointless arithmetic detects binary numbers"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n checks . add ( checkRequires ) ; \n } \n \n + checks . add ( checkSideEffects ) ; \n + \n if ( options . getLanguageIn ( ) == LanguageMode . ECMASCRIPT6_TYPED \n && options . getLanguageOut ( ) != LanguageMode . ECMASCRIPT6_TYPED ) { \n checks . add ( convertEs6TypedToEs6 ) ; \n public final class DefaultPassConfig extends PassConfig { \n checks . add ( es6RewriteDestructuring ) ; \n } \n \n - checks . add ( checkSideEffects ) ; \n - \n if ( options . checkProvides . isOn ( ) || options . enables ( DiagnosticGroups . MISSING_PROVIDE ) ) { \n checks . add ( checkProvides ) ; \n }", "msg_token": "Moving checkSideEffects before the early transpilation"} {"diff": " public interface Server { \n public Player [ ] getOnlinePlayers ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getMaxPlayers ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add Server getMaxPlayers"} {"diff": " public class Integers { \n \n public static final String toBinaryUsingDivideAndModulus ( int integer ) { \n StringBuilder builder = new StringBuilder ( ) ; \n + int temp = NUMBER0 ; \n while ( integer > NUMBER0 ) { \n - int temp = integer ; \n + temp = integer ; \n integer = temp / NUMBER1 ; \n builder . append ( temp % NUMBER1 ) ; \n } \n public class Integers { \n \n public static final String toBinaryUsingShiftsAndModulus ( int integer ) { \n StringBuilder builder = new StringBuilder ( ) ; \n + int temp = NUMBER0 ; \n while ( integer > NUMBER0 ) { \n - int temp = integer ; \n + temp = integer ; \n integer = ( temp > > NUMBER2 ) ; \n builder . append ( temp % NUMBER1 ) ; \n }", "msg_token": "Added divide and doble version to the integer binary functions"} {"diff": " public class RecyclerViewSwipeManager implements SwipeableItemConstants { \n } \n \n private void handleActionUpOrCancelWhileNotSwiping ( ) { \n - mHandler . cancelLongPressDetection ( ) ; \n + if ( mHandler != null ) { \n + mHandler . cancelLongPressDetection ( ) ; \n + } \n \n mCheckingTouchSlop = RecyclerView . NO_ID ; \n mSwipingItemReactionType = NUMBER0 ;", "msg_token": "Add null check to make the cancelSwipe method safe before attaching RecyclerView"} {"diff": " public class PlacesSampleActivity extends DIFragmentActivity { \n \n mapFragment . getMap ( ) . clear ( ) ; \n LatLng latitudeLongitude = new LatLng ( placeViewModel . getLatitude ( ) , placeViewModel . getLongitude ( ) ) ; \n - mapFragment . getMap ( ) . addMarker ( new MarkerOptions ( ) . position ( latitudeLongitude ) ) ; \n + MarkerOptions marker = new MarkerOptions ( ) . position ( latitudeLongitude ) ; \n + marker . title ( placeViewModel . getName ( ) ) ; \n + marker . snippet ( placeViewModel . getLatitude ( ) + STRING0 + placeViewModel . getLongitude ( ) ) ; \n + mapFragment . getMap ( ) . addMarker ( marker ) ; \n mapFragment . getMap ( ) . moveCamera ( CameraUpdateFactory . newLatLngZoom ( latitudeLongitude , NUMBER0 f ) ) ; \n } \n } ) ;", "msg_token": "Add title and snippet to map marker"} {"diff": " public class JavaGenerator implements CodeGenerator \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n - STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 + \n STRING9 + \n - STRING10 + \n - STRING11 + \n + STRING12 + \n + STRING13 + \n STRING14 + \n STRING15 , \n propertyName , \n public class JavaGenerator implements CodeGenerator \n STRING16 + \n STRING0 + \n STRING2 + \n - STRING3 + \n - STRING17 + \n - STRING4 + \n - STRING18 + \n - STRING19 + \n + STRING6 + \n + STRING20 + \n + STRING21 + \n + STRING22 + \n STRING23 + \n STRING24 , \n propertyName ,", "msg_token": "Corrected position check location for var data and optimised the writes to the position in parent message"} {"diff": " public class WebView extends AbsoluteLayout \n setUpSelect ( ) ; \n if ( mNativeClass != NUMBER0 && nativeWordSelection ( x , y ) ) { \n nativeSetExtendSelection ( ) ; \n + mDrawSelectionPointer = false ; \n return true ; \n } \n selectionDone ( ) ;", "msg_token": "Don t draw the selection pointer on long press"} {"diff": " public class FMLCommonHandler \n Builder brd = ImmutableList . < String > builder ( ) ; \n brd . add ( Loader . instance ( ) . getMCVersionString ( ) ) ; \n brd . add ( Loader . instance ( ) . getFMLVersionString ( ) ) ; \n - String forgeBranding = ( String ) callForgeMethod ( STRING0 ) ; \n + String forgeBranding = ( String ) callForgeMethod ( STRING1 ) ; \n if ( ! Strings . isNullOrEmpty ( forgeBranding ) ) \n { \n brd . add ( forgeBranding ) ;", "msg_token": "Fix Forge branding string call"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n public final class Config { \n public final class Config { \n public static final boolean DISABLE_PROXY_LOOKUP = false ; SINGLE \n public static final boolean DISABLE_HTTP_UPLOAD = false ; \n public static final boolean DISABLE_STRING_PREP = false ; SINGLE \n - public static final boolean EXTENDED_SM_LOGGING = true ; SINGLE \n + public static final boolean EXTENDED_SM_LOGGING = false ; SINGLE \n public static final boolean RESET_ATTEMPT_COUNT_ON_NETWORK_CHANGE = true ; SINGLE \n \n public static final boolean ENCRYPT_ON_HTTP_UPLOADED = false ;", "msg_token": "disable sm logging"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class EditPreferences extends SherlockPreferenceActivity { \n + @ suppresswarnings ( STRING0 ) \n @ override \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ;", "msg_token": "added deprecation suppression"} {"diff": " import NAMESPACE ; \n break ; \n case NUMBER : \n SINGLE \n - inputType = InputType . TYPE_CLASS_NUMBER | InputType . TYPE_NUMBER_VARIATION_NORMAL ; \n + inputType = InputType . TYPE_CLASS_NUMBER | InputType . TYPE_NUMBER_VARIATION_NORMAL \n + | InputType . TYPE_NUMBER_FLAG_SIGNED | InputType . TYPE_NUMBER_FLAG_DECIMAL ; \n SINGLE \n SINGLE \n imeOptions |= EditorInfo . IME_ACTION_NEXT ;", "msg_token": "Allow fractional and signed input for number fields"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SkylarkRuleClassFunctions { \n FuncallExpression ast , Environment funcallEnv ) \n throws EvalException , ConversionException { \n \n + Preconditions . checkState ( funcallEnv instanceof SkylarkEnvironment ) ; \n RuleClassType type = test ? RuleClassType . TEST : RuleClassType . NORMAL ; \n \n SINGLE \n public class SkylarkRuleClassFunctions { \n builder . setOutputsDefaultExecutable ( ) ; \n } \n \n - if ( ! ( funcallEnv instanceof SkylarkEnvironment ) ) { \n - System . out . println ( STRING0 ) ; \n - SINGLE \n - } \n - \n if ( implicitOutputs != Environment . NONE ) { \n if ( implicitOutputs instanceof BaseFunction ) { \n BaseFunction func = ( BaseFunction ) implicitOutputs ;", "msg_token": "Remove left over code"} {"diff": " class StatementAnalyzer extends DefaultTraversalVisitor < Symbol , Analysis > { \n \n @ override \n protected Symbol visitNegativeExpression ( NegativeExpression node , Analysis context ) { \n + SINGLE \n + SINGLE \n + SINGLE \n return negativeLiteralVisitor . process ( process ( node . getValue ( ) , context ) , null ) ; \n } \n \n public class AnalyzerTest { \n } \n \n @ test \n + public void testNegativeLiteral ( ) throws Exception { \n + Analysis analyze = analyze ( STRING0 ) ; \n + Function whereClause = analyze . whereClause ( ) ; \n + Symbol symbol = whereClause . arguments ( ) . get ( NUMBER0 ) ; \n + assertThat ( ( ( IntegerLiteral ) symbol ) . value ( ) , is ( - NUMBER1 ) ) ; \n + } \n + \n + @ test \n public void testGroupedSelect ( ) throws Exception { \n Statement statement = SqlParser . createStatement ( STRING1 ) ; \n Analysis analysis = analyzer . analyze ( statement ) ;", "msg_token": "clarify NegativeExpression handling and add an additional test"} {"diff": " import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SchedulerIsolatedTasksTest { \n final int NUM_TASKS_TO_SCHEDULE = NUMBER0 ; \n \n try { \n - Scheduler scheduler = new Scheduler ( ) ; \n + SINGLE \n + SINGLE \n + Scheduler scheduler = new Scheduler ( Executors . newFixedThreadPool ( NUMBER1 , ExecutorThreadFactory . INSTANCE ) ) ; \n \n for ( int i = NUMBER2 ; i < NUM_INSTANCES ; i ++ ) { \n scheduler . newInstanceAvailable ( getRandomInstance ( ( int ) ( Math . random ( ) * NUM_SLOTS_PER_INSTANCE ) + NUMBER3 ) ) ;", "msg_token": "Fix incorrect scheduler test that sometimes produces a deadlock"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed generated docs"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PhysicsSpace { \n \n - private static final Logger logger = logger ; \n + private static final Logger logger = Logger . getLogger ( PhysicsSpace . class . getName ( ) ) ; \n public static final int AXIS_X = NUMBER0 ; \n public static final int AXIS_Y = NUMBER1 ; \n public static final int AXIS_Z = NUMBER2 ; \n import NAMESPACE ; \n COMMENT \n public class PhysicsSpace { \n \n - private static final Logger logger = logger ; \n + private static final Logger logger = Logger . getLogger ( PhysicsSpace . class . getName ( ) ) ; \n public static final int AXIS_X = NUMBER0 ; \n public static final int AXIS_Y = NUMBER1 ; \n public static final int AXIS_Z = NUMBER2 ;", "msg_token": "fix replace mistake"} {"diff": " public class CardView extends FrameLayout { \n COMMENT \n COMMENT \n COMMENT \n - private int mUserSetMinWidth , mUserSetMinHeight ; \n + int mUserSetMinWidth , mUserSetMinHeight ; \n \n - private final Rect mContentPadding = new Rect ( ) ; \n + final Rect mContentPadding = new Rect ( ) ; \n \n - private final Rect mShadowBounds = new Rect ( ) ; \n + final Rect mShadowBounds = new Rect ( ) ; \n \n public CardView ( Context context ) { \n super ( context ) ;", "msg_token": "Remove all the extra accessor methods added by javac in support cardview"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class InternalClusterService extends AbstractLifecycleComponent < ClusterSe \n if ( updateTask instanceof ProcessedClusterStateUpdateTask ) { \n ( ( ProcessedClusterStateUpdateTask ) updateTask ) . clusterStateProcessed ( source , previousClusterState , newClusterState ) ; \n } \n + if ( updateTask instanceof AckedClusterStateUpdateTask ) { \n + SINGLE \n + ( ( AckedClusterStateUpdateTask ) updateTask ) . onAllNodesAcked ( null ) ; \n + } \n return ; \n }", "msg_token": "Added ack call when the cluster state has not changed"} {"diff": " public class FocusTrackback { \n } \n \n private boolean wrongOS ( ) { \n - return SystemInfo . isWindows ; \n + return ! SystemInfo . isMac ; \n } \n \n private void register ( final Window parent ) {", "msg_token": "Integrating removal of FocusTrackback for Linux since it brings more troubles than fixes"} {"diff": " public class ResourceBundleEditor extends UserDataHolderBase implements Document \n @ override \n public void valueChanged ( TreeSelectionEvent e ) { \n SINGLE \n + if ( getSelectedElementIfOnlyOne ( ) instanceof ResourceBundleFileStructureViewElement ) { \n + ( ( CardLayout ) myValuesPanel . getLayout ( ) ) . show ( myValuesPanel , NO_PROPERTY_SELECTED ) ; \n + selectedPropertiesFile = null ; \n + selectedProperty = null ; \n + return ; \n + } \n + \n if ( Comparing . equal ( e . getNewLeadSelectionPath ( ) , e . getOldLeadSelectionPath ( ) ) || getSelectedProperty ( ) == null ) return ; \n if ( ! arePropertiesEquivalent ( selectedProperty , getSelectedProperty ( ) ) || \n ! Comparing . equal ( selectedPropertiesFile , getSelectedPropertiesFile ( ) ) ) {", "msg_token": "restore no selected property panel"} {"diff": " public class CallManager \n \n selectDialog . setVisible ( true ) ; \n \n - createDesktopSharing ( protocolProvider , \n - contact , \n - selectDialog . getSelectedDevice ( ) ) ; \n + if ( selectDialog . getSelectedDevice ( ) != null ) \n + createDesktopSharing ( protocolProvider , \n + contact , \n + selectDialog . getSelectedDevice ( ) ) ; \n } \n } \n \n public class CallManager \n \n selectDialog . setVisible ( true ) ; \n \n - enableDesktopSharing ( \n - call , selectDialog . getSelectedDevice ( ) , enable ) ; \n + if ( selectDialog . getSelectedDevice ( ) != null ) \n + enableDesktopSharing ( \n + call , selectDialog . getSelectedDevice ( ) , enable ) ; \n } \n } \n \n public class SelectScreenDialog \n { \n public void actionPerformed ( ActionEvent e ) \n { \n + selectedDevice = null ; \n dispose ( ) ; \n } \n } ) ;", "msg_token": "Fixes cancel operation on select screen dialog while initiating desktop sharing"} {"diff": " public class PlayApplicationPlugin { \n scalaCompile . setTargetCompatibility ( targetCompatibility ) ; \n \n IncrementalCompileOptions incrementalOptions = scalaCompile . getScalaCompileOptions ( ) . getIncrementalOptions ( ) ; \n - incrementalOptions . setAnalysisFile ( new File ( buildDir , String . format ( STRING0 , scalaCompileTaskName ) ) ) ; \n + incrementalOptions . setAnalysisFile ( new File ( scalaCompile . getTemporaryDir ( ) , STRING1 ) ) ; \n \n for ( LanguageSourceSet appSources : binary . getSource ( ) . withType ( ScalaLanguageSourceSet . class ) ) { \n scalaCompile . source ( appSources . getSource ( ) ) ;", "msg_token": "Use compile task s temporary directory for cache file for scala compilation"} {"diff": " public class BufferUtils { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static void cleanDirectBuffer ( ByteBuffer buffer ) {", "msg_token": "Put more comments about why this function is used"} {"diff": " public class PlainStreetEdge extends StreetEdge implements Cloneable { \n private State doTraverse ( State s0 , RoutingRequest options ) { \n TraverseMode traverseMode = s0 . getNonTransitMode ( options ) ; \n Edge backEdge = s0 . getBackEdge ( ) ; \n - if ( backEdge != null && backEdge . getFromVertex ( ) == tov ) { \n + if ( backEdge != null && \n + ( options . arriveBy ? ( backEdge . getToVertex ( ) == fromv ) : ( backEdge . getFromVertex ( ) == tov ) ) ) { \n SINGLE \n return null ; \n } \n public class PlainStreetEdge extends StreetEdge implements Cloneable { \n \n public boolean canTurnOnto ( Edge e , State state , TraverseMode mode ) { \n for ( TurnRestriction restriction : turnRestrictions ) { \n + COMMENT \n + COMMENT \n + \n if ( restriction . to == e && restriction . modes . contains ( mode ) ) { \n return restriction . type == TurnRestrictionType . ONLY_TURN ; \n }", "msg_token": "fix arrive by nontransit routing"} {"diff": " public class PyClassImpl extends PyBaseElementImpl < PyClassStub > implements PyCla \n return false ; \n } \n \n - public boolean isSubclass ( PyClass parent ) { \n - return isSubclass ( parent , null ) ; \n - } \n - \n @ override \n public boolean isSubclass ( @ notnull String superClassQName , @ nullable TypeEvalContext context ) { \n if ( context == null ) {", "msg_token": "Drop unused PyClassImpl isSubclass PyClass"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add missing license file"} {"diff": " import NAMESPACE ; \n public class LuceneService implements Runnable { \n \n \n - private static final int INDEX_VERSION = NUMBER0 ; \n + private static final int INDEX_VERSION = NUMBER1 ; \n \n private static final String FIELD_OBJECT_TYPE = STRING0 ; \n private static final String FIELD_PATH = STRING1 ; \n public class LuceneService implements Runnable { \n private static final String CONF_ALIAS = STRING2 ; \n private static final String CONF_BRANCH = STRING3 ; \n \n - private static final Version LUCENE_VERSION = Version . LUCENE_46 ; \n + private static final Version LUCENE_VERSION = Version . LUCENE_4_10_0 ; \n \n private final Logger logger = LoggerFactory . getLogger ( LuceneService . class ) ;", "msg_token": "Bump the index version and update the LuceneVersion"} {"diff": " public abstract class Launcher { \n launch ( args , getMainClass ( ) , classLoader ) ; \n } \n catch ( Exception ex ) { \n - ex . printStackTrace ( ) ; \n System . exit ( NUMBER0 ) ; \n } \n }", "msg_token": "Remove unwanted printing of stack trace from the Launcher"} {"diff": " public class ACRAConfiguration implements ReportsCrashes { \n private String [ ] mExcludeMatchingSharedPreferencesKeys = null ; \n private String mApplicationLogFile = null ; \n private Integer mApplicationLogFileLines = null ; \n - \n + \n private String mGoogleFormUrlFormat = null ; \n - \n + \n private Boolean mDisableSSLCertValidation = null ; \n \n COMMENT \n public class ACRAConfiguration implements ReportsCrashes { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDisableSSLCertValidation ( boolean disableSSLCertValidation ) { \n + mDisableSSLCertValidation = disableSSLCertValidation ; \n + } \n + \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public ACRAConfiguration ( ReportsCrashes defaults ) { \n public class HttpRequestTest { \n public void setUp ( ) throws Exception { \n final NonAndroidLog log = new NonAndroidLog ( ) ; \n ACRA . setLog ( log ) ; \n + ACRA . getConfig ( ) . setDisableSSLCertValidation ( true ) ; \n }", "msg_token": "Add dynamic setter for disableSSLCertValidation"} {"diff": " import NAMESPACE ; \n class UidReverseComparator implements Comparator < Message > { \n @ override \n public int compare ( Message messageLeft , Message messageRight ) { \n - Integer uidLeft = getUidForMessage ( messageLeft ) ; \n - Integer uidRight = getUidForMessage ( messageRight ) ; \n + Long uidLeft = getUidForMessage ( messageLeft ) ; \n + Long uidRight = getUidForMessage ( messageRight ) ; \n \n if ( uidLeft == null && uidRight == null ) { \n return NUMBER0 ; \n class UidReverseComparator implements Comparator < Message > { \n return uidRight . compareTo ( uidLeft ) ; \n } \n \n - private Integer getUidForMessage ( Message message ) { \n + private Long getUidForMessage ( Message message ) { \n try { \n - return Integer . parseInt ( message . getUid ( ) ) ; \n + return Long . parseLong ( message . getUid ( ) ) ; \n } catch ( NullPointerException | NumberFormatException e ) { \n return null ; \n }", "msg_token": "Parse UIDs as Long in UidReverseComparator"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class KeyboardModifierListener { \n + public class KeyboardModifierListener implements Disposable { \n private boolean myShiftPressed ; \n private boolean myCtrlPressed ; \n private boolean myAltPressed ; \n public class KeyboardModifierListener { \n public void init ( @ notnull JComponent component , @ notnull Disposable disposable ) { \n assert myWindow == null ; \n \n - Disposer . register ( disposable , new Disposable ( ) { \n - @ override \n - public void dispose ( ) { \n - destroy ( ) ; \n - } \n - } ) ; \n + Disposer . register ( disposable , this ) ; \n \n SINGLE \n SINGLE \n public class KeyboardModifierListener { \n } \n } \n \n - public void destroy ( ) { \n + @ override \n + public void dispose ( ) { \n if ( myWindow != null ) { \n myWindow . removeWindowFocusListener ( myWindowFocusListener ) ; \n myWindow = null ;", "msg_token": "make KeyboardModifierListener Disposable"} {"diff": " public final class LTOBackendArtifacts { \n PathFragment compiler = cppConfiguration . getCppExecutable ( ) ; \n \n builder . setShellCommand ( beCommandline . getExecPathString ( ) ) ; \n - builder . setEnvironment ( \n - ImmutableMap . of ( STRING0 , compiler . replaceName ( STRING1 ) . getPathString ( ) ) ) ; \n + builder . setEnvironment ( ImmutableMap . of ( STRING2 , compiler . replaceName ( STRING3 ) . getPathString ( ) ) ) ; \n \n ruleContext . registerAction ( builder . build ( ruleContext ) ) ; \n }", "msg_token": "Set CLANG for invoking the LTO backend"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PanelWithText extends JPanel { \n \n public PanelWithText ( String text ) { \n super ( new GridBagLayout ( ) ) ; \n - setBorder ( BorderFactory . createEtchedBorder ( ) ) ; \n + SINGLE \n myLabel . setText ( XmlStringUtil . wrapInHtml ( text ) ) ; \n add ( myLabel , new GridBagConstraints ( NUMBER0 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 , NUMBER1 , GridBagConstraints . NORTH , GridBagConstraints . HORIZONTAL , new Insets ( NUMBER2 , NUMBER2 , NUMBER2 , NUMBER2 ) , NUMBER0 , NUMBER0 ) ) ; \n }", "msg_token": "remove etched border"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class MCMPAdvertiseTask implements Runnable { \n . append ( STRING0 ) . append ( host ) . append ( CRLF ) ; \n \n final String payload = builder . toString ( ) ; \n - final ByteBuffer byteBuffer = ByteBuffer . wrap ( payload . getBytes ( ) ) ; \n + final ByteBuffer byteBuffer = ByteBuffer . wrap ( payload . getBytes ( StandardCharsets . US_ASCII ) ) ; \n UndertowLogger . ROOT_LOGGER . proxyAdvertiseMessagePayload ( payload ) ; \n channel . sendTo ( address , byteBuffer ) ; \n } catch ( Exception e ) {", "msg_token": "Fix getBytes call"} {"diff": " \n \n SINGLE \n package NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n @ entity \n public class Mail { \n @ id private Long id ; \n + @ column ( name = STRING0 ) \n private String from ; \n \n public String getFrom ( ) {", "msg_token": "Fixed mapping problem with field named from"} {"diff": " public class Touch { \n \n switch ( event . getAction ( ) ) { \n case MotionEvent . ACTION_DOWN : \n + ds = buffer . getSpans ( NUMBER0 , buffer . length ( ) , DragState . class ) ; \n + \n + for ( int i = NUMBER0 ; i < ds . length ; i ++ ) { \n + buffer . removeSpan ( ds [ i ] ) ; \n + } \n + \n buffer . setSpan ( new DragState ( event . getX ( ) , event . getY ( ) , \n widget . getScrollX ( ) , widget . getScrollY ( ) ) , \n NUMBER0 , NUMBER0 , Spannable . SPAN_MARK_MARK ) ;", "msg_token": "Always clear the TextView drag state whenever a touch begins"} {"diff": " public class MainActivity extends Activity implements Flow . Dispatcher { \n super . onPause ( ) ; \n } \n \n - \n - \n @ override public Object getSystemService ( String name ) { \n - Object service = flowSupport . getSystemService ( name ) ; \n + Object service = null ; \n + if ( flowSupport != null ) { \n + service = flowSupport . getSystemService ( name ) ; \n + } \n return service != null ? service : super . getSystemService ( name ) ; \n }", "msg_token": "Fix NPE in getSystemService override"} {"diff": " public class ScheduledSwapActivity extends Activity implements OnItemSelectedLis \n throw new RuntimeException ( STRING0 ) ; \n } \n \n - if ( updated ) { \n + if ( mRenderThread == null ) { \n + SINGLE \n + Log . d ( TAG , STRING1 ) ; \n + } else if ( updated ) { \n RenderHandler rh = mRenderThread . getHandler ( ) ; \n if ( rh != null ) { \n rh . sendSetParameters ( mUpdatePatternIndex , mFramesAheadIndex ) ;", "msg_token": "Fix scheduled swap crash"} {"diff": " public final class Ray implements Savable , Cloneable , Collidable , java . io . Serial \n COMMENT \n COMMENT \n public Ray ( Vector3f origin , Vector3f direction ) { \n - setOrigin ( origin ) \n + setOrigin ( origin ) ; \n setDirection ( direction ) ; \n }", "msg_token": "Fixed semicolon conceptual disappearance"} {"diff": " public abstract class JdbcUtils { \n className = obj . getClass ( ) . getName ( ) ; \n } \n if ( obj instanceof Blob ) { \n - obj = rs . getBytes ( index ) ; \n + Blob blob = ( Blob ) obj ; \n + obj = blob . getBytes ( NUMBER0 , ( int ) blob . length ( ) ) ; \n } \n else if ( obj instanceof Clob ) { \n - obj = rs . getString ( index ) ; \n + Clob clob = ( Clob ) obj ; \n + obj = clob . getSubString ( NUMBER0 , ( int ) clob . length ( ) ) ; \n } \n else if ( STRING0 . equals ( className ) || STRING1 . equals ( className ) ) { \n obj = rs . getTimestamp ( index ) ;", "msg_token": "JdbcUtils getResultSetValue avoids re retrieval from ResultSet for Blob Clob content for Derby compatibility"} {"diff": " public abstract class ResScalarValue extends ResValue \n \n public void serializeToXml ( XmlSerializer serializer , ResResource res ) \n throws IOException , AndrolibException { \n - String tagName = res . getResSpec ( ) . getType ( ) . getName ( ) ; \n + String type = res . getResSpec ( ) . getType ( ) . getName ( ) ; \n + boolean item = ! type . equals ( mType ) ; \n + String tagName = item ? STRING0 : type ; \n + \n serializer . startTag ( null , tagName ) ; \n + if ( item ) { \n + serializer . attribute ( null , STRING1 , type ) ; \n + } \n serializer . attribute ( null , STRING2 , res . getResSpec ( ) . getName ( ) ) ; \n serializer . text ( toResXmlFormat ( ) ) ; \n serializer . endTag ( null , tagName ) ;", "msg_token": "Added support for serializing scalar values to item tag"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BreakpointManager implements JDOMExternalizable { \n offset = editor . getDocument ( ) . getLineStartOffset ( line ) ; \n } \n \n + ExpandRegionHandler . expandRegionAtCaret ( myProject , editor ) ; \n + \n Breakpoint breakpoint = findBreakpoint ( document , offset , null ) ; \n if ( breakpoint == null ) { \n if ( mostSuitingBreakpoint || isInsideCompiledClass ) {", "msg_token": "expand folded regions on mouse driven breakpoint toggle"} {"diff": " public class Main { \n private final PermissionCollection permissions = new Permissions ( ) ; \n \n { \n - permissions . add ( new SocketPermission ( STRING0 , STRING1 ) ) ; \n + permissions . add ( new SocketPermission ( STRING0 , STRING2 ) ) ; \n permissions . add ( new RuntimePermission ( STRING3 ) ) ; \n permissions . add ( new RuntimePermission ( STRING4 ) ) ; \n permissions . add ( new RuntimePermission ( STRING5 ) ) ;", "msg_token": "accept connections only in sandboxed mode"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class LongVarianceAggregation \n extends AbstractVarianceAggregation \n public class LongVarianceAggregation \n super ( population ) ; \n } \n \n - protected static long value = NUMBER0 ; \n - \n @ override \n public void addInput ( int positionCount , Block block , int field , Slice valueSlice , int valueOffset ) \n {", "msg_token": "Remove unneeded line in LongVarianceAggregation"} {"diff": " public class TemplateState implements Disposable { \n CodeStyleManager codeStyleManager = CodeStyleManager . getInstance ( myProject ) ; \n if ( myTemplate . isToShortenLongNames ( ) ) { \n try { \n + IntArrayList indices = initEmptyVariables ( ) ; \n + mySegments . setSegmentsGreedy ( false ) ; \n + \n PsiDocumentManager . getInstance ( myProject ) . commitDocument ( myDocument ) ; \n codeStyleManager . shortenClassReferences ( file , myTemplateRange . getStartOffset ( ) , myTemplateRange . getEndOffset ( ) ) ; \n PsiDocumentManager . getInstance ( myProject ) . doPostponedOperationsAndUnblockDocument ( myDocument ) ; \n + \n + mySegments . setSegmentsGreedy ( true ) ; \n + restoreEmptyVariables ( indices ) ; \n } \n catch ( IncorrectOperationException e ) { \n LOG . error ( e ) ;", "msg_token": "Fix stalling tests broken live templates"} {"diff": " public abstract class AbstractCollectionPersister \n SINGLE \n Column col = ( ( Column ) iter . next ( ) ) ; \n keyColumnNames [ k ] = col . getQuotedName ( dialect ) ; \n - keyColumnAliases [ k ] = col . getAlias ( dialect , collectionBinding . getOwner ( ) . getRootTable ( ) ) ; \n + keyColumnAliases [ k ] = col . getAlias ( dialect , table ) ; \n k ++ ; \n }", "msg_token": "column ambiguously defined exception on Oracle for Criteria"} {"diff": " public class AndroidDisplayer implements IDisplayer { \n applyPaintConfig ( danmaku , paint , false ) ; \n canvas . drawText ( lines [ NUMBER0 ] , left , top - paint . ascent ( ) , paint ) ; \n } else { \n + applyPaintConfig ( danmaku , paint , false ) ; \n Float textHeight = getTextHeight ( paint ) ; \n for ( int t = NUMBER0 ; t < lines . length ; t ++ ) { \n if ( lines [ t ] . length ( ) > NUMBER0 ) {", "msg_token": "Fix paint bug of multiline danmaku"} {"diff": " public class TextEditingTarget implements \n { \n event . preventDefault ( ) ; \n event . stopPropagation ( ) ; \n - commands_ . interruptR ( ) . execute ( ) ; \n + if ( commands_ . interruptR ( ) . isEnabled ( ) ) \n + commands_ . interruptR ( ) . execute ( ) ; \n } \n else if ( ne . getKeyCode ( ) == KeyCodes . KEY_M && ( \n ( BrowseCap . hasMetaKey ( ) &&", "msg_token": "don t execute interruptR unless it s enabled"} {"diff": " public final class CaptureActivity extends Activity implements SurfaceHolder . Cal \n DEFAULT_INTENT_RESULT_DURATION_MS ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n if ( resultDurationMS > NUMBER0 ) { \n - statusView . setText ( getString ( resultHandler . getDisplayTitle ( ) ) ) ; \n + String rawResultString = String . valueOf ( rawResult ) ; \n + if ( rawResultString . length ( ) > NUMBER1 ) { \n + rawResultString = rawResultString . substring ( NUMBER0 , NUMBER1 ) + STRING0 ; \n + } \n + statusView . setText ( getString ( resultHandler . getDisplayTitle ( ) ) + STRING1 + rawResultString ) ; \n } \n \n if ( copyToClipboard && ! resultHandler . areContentsSecure ( ) ) {", "msg_token": "By request let s show a bit of the scanned string when scanning by Intent in the Toast popup"} {"diff": " public class AdviceWithTest extends ContextTestSupport { \n assertMockEndpointsSatisfied ( ) ; \n } \n \n + SINGLE \n public void testAdvised ( ) throws Exception { \n + SINGLE \n context . getRouteDefinitions ( ) . get ( NUMBER0 ) . adviceWith ( new RouteBuilder ( ) { \n @ override \n public void configure ( ) throws Exception { \n + SINGLE \n interceptSendToEndpoint ( STRING0 ) \n . skipSendToOriginalEndpoint ( ) \n . to ( STRING1 ) \n public class AdviceWithTest extends ContextTestSupport { \n \n assertMockEndpointsSatisfied ( ) ; \n } \n + SINGLE \n \n public void testAdvisedNoNewRoutesAllowed ( ) throws Exception { \n try {", "msg_token": "Added snippet for wiki docu"} {"diff": " public class PsiManagerImpl extends PsiManagerEx implements ProjectComponent { \n projectRootManagerEx ) ; \n mySearchHelper = new PsiSearchHelperImpl ( this ) ; \n final CompositeCacheManager cacheManager = new CompositeCacheManager ( ) ; \n - if ( psiManagerConfiguration . REPOSITORY_ENABLED && ! isProjectDefault ) { \n - SINGLE \n + if ( ! isProjectDefault ) { \n cacheManager . addCacheManager ( new IndexCacheManagerImpl ( this ) ) ; \n } \n else {", "msg_token": "register real index based CacheManager in platform"} {"diff": " class AcknowledgedBulkWriteResult extends BulkWriteResult { \n @ override \n public int getModifiedCount ( ) { \n if ( modifiedCount == null ) { \n - throw new UnsupportedOperationException ( STRING0 \n - + STRING1 \n - + STRING2 ) ; \n + throw new UnsupportedOperationException ( STRING3 \n + + STRING4 ) ; \n } \n return modifiedCount ; \n }", "msg_token": "Clarify exception message for getModifiedCount"} {"diff": " public abstract class DomInvocationHandler < T extends AbstractDomChildDescription \n \n @ notnull \n protected final Converter getScalarConverter ( final JavaMethod method ) { \n + final Converter converter ; \n synchronized ( myScalarConverters ) { \n - return myScalarConverters . get ( method ) ; \n + converter = myScalarConverters . get ( method ) ; \n } \n + assert converter != null ; \n + return converter ; \n } \n \n public final T getChildDescription ( ) {", "msg_token": "reorder instructions maybe it ll fix strange IMSE"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileSystemUtil { \n \n @ override \n public String resolveSymLink ( @ notnull final String path ) throws Exception { \n - return new File ( path ) . getCanonicalPath ( ) ; \n + try { \n + return new File ( path ) . getCanonicalPath ( ) ; \n + } \n + catch ( IOException e ) { \n + final String message = e . getMessage ( ) ; \n + if ( message != null && message . toLowerCase ( ) . contains ( STRING0 ) ) { \n + LOG . debug ( e ) ; \n + return null ; \n + } \n + throw e ; \n + } \n } \n \n @ override", "msg_token": "Catch over nested symlinks exception"} {"diff": " public class ClassRemappingTransform { \n if ( m_classRemapping . containsKey ( soot_class . getName ( ) ) ) { \n return ; \n } \n + if ( method . isConcrete ( ) == false ) { \n + return ; \n + } \n Body body = method . retrieveActiveBody ( ) ; \n if ( body == null ) \n return ;", "msg_token": "fixing bug in ClassRemappingTransform"} {"diff": " public class WsSession implements Session { \n msg . put ( reason . getBytes ( UTF8 ) ) ; \n } \n msg . flip ( ) ; \n - wsRemoteEndpoint . sendMessageBlocking ( Constants . OPCODE_CLOSE , msg , true ) ; \n + try { \n + wsRemoteEndpoint . sendMessageBlocking ( \n + Constants . OPCODE_CLOSE , msg , true ) ; \n + } catch ( IOException ioe ) { \n + SINGLE \n + SINGLE \n + } \n \n SINGLE \n Thread t = Thread . currentThread ( ) ;", "msg_token": "Failure to send the close message should not stop the rest of the close processing"} {"diff": " public class IndicesStore extends AbstractComponent implements ClusterStateListe \n \n ShardActiveResponseHandler responseHandler = new ShardActiveResponseHandler ( indexShardRoutingTable . shardId ( ) , state , requests . size ( ) ) ; \n for ( Tuple < DiscoveryNode , ShardActiveRequest > request : requests ) { \n + logger . trace ( STRING0 , request . v2 ( ) . shardId , request . v1 ( ) ) ; \n transportService . sendRequest ( request . v1 ( ) , ACTION_SHARD_EXISTS , request . v2 ( ) , responseHandler ) ; \n } \n } \n public class IndicesStore extends AbstractComponent implements ClusterStateListe \n \n @ override \n public void handleResponse ( ShardActiveResponse response ) { \n + logger . trace ( STRING1 , shardId , response . shardActive ? STRING2 : STRING3 , response . node ) ; \n if ( response . shardActive ) { \n - logger . trace ( STRING4 , shardId , response . node ) ; \n activeCopies . incrementAndGet ( ) ; \n }", "msg_token": "improved trace logging for shard active requests"} {"diff": " public class FileCopyInstructionImpl extends BuildInstructionBase implements Fil \n } \n } \n \n - public void addFilesToRefresh ( File outputDir , Set < File > filesToRefresh ) { \n - if ( myChangedSet == null ) { \n - final File to = MakeUtil . canonicalRelativePath ( outputDir , getOutputRelativePath ( ) ) ; \n - filesToRefresh . add ( to ) ; \n - } \n - else { \n - for ( FileCopyInstructionImpl singleFileCopyInstruction : myChangedSet ) { \n - singleFileCopyInstruction . addFilesToRefresh ( outputDir , filesToRefresh ) ; \n - } \n - } \n - } \n - \n public boolean accept ( BuildInstructionVisitor visitor ) throws Exception { \n return visitor . visitFileCopyInstruction ( this ) ; \n }", "msg_token": "remove unused method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalFirehoseFactory implements FirehoseFactory < StringInputRowParse \n @ override \n public Firehose connect ( StringInputRowParser firehoseParser ) throws IOException \n { \n + if ( baseDir == null ) { \n + throw new IAE ( STRING0 ) ; \n + } \n log . info ( STRING1 , filter , baseDir . getAbsoluteFile ( ) ) ; \n \n Collection < File > foundFiles = FileUtils . listFiles (", "msg_token": "throw IAE when baseDir is null in LocalFireHose"} {"diff": " public final class RemoteAddrFilter \n @ override \n public void doFilterEvent ( CometEvent event , CometFilterChain chain ) \n throws IOException , ServletException { \n - processCometEvent ( event . getHttpServletRequest ( ) . getRemoteHost ( ) , \n + processCometEvent ( event . getHttpServletRequest ( ) . getRemoteAddr ( ) , \n event , chain ) ; \n } \n \n public final class RemoteAddrFilter \n protected Log getLogger ( ) { \n return log ; \n } \n - \n }", "msg_token": "RemoteAddrFilter uses remote host not address in doFilterEvent"} {"diff": " public abstract class AbstractPager implements Pager { \n \n public Pager setRecordCount ( int recordCount ) { \n this . recordCount = recordCount > NUMBER0 ? recordCount : NUMBER0 ; \n - return resetPageCount ( ) ; \n + this . pageCount = ( int ) Math . ceil ( ( double ) recordCount / pageSize ) ; \n + return this ; \n } \n \n public int getOffset ( ) {", "msg_token": "update pageCount when set recordCount"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BeanSerializer implements Serializer { \n } \n \n protected void addToString ( EntityType model , CodeWriter writer ) throws IOException { \n + writer . line ( STRING0 ) ; \n writer . beginPublicMethod ( Types . STRING , STRING1 ) ; \n StringBuilder builder = new StringBuilder ( ) ; \n for ( Property property : model . getProperties ( ) ) {", "msg_token": "Add Override annotation"} {"diff": " public class ProgressManagerImpl extends ProgressManager implements ApplicationC \n final ProgressIndicator progress = getInstance ( ) . getProgressIndicator ( ) ; \n if ( progress != null ) { \n try { \n - SINGLE \n + progress . checkCanceled ( ) ; \n } \n catch ( ProcessCanceledException e ) { \n if ( ! Thread . holdsLock ( PsiLock . LOCK ) ) {", "msg_token": "process canceled exception re enabled"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SimpleGrailsControllerHelper implements GrailsControllerHelper { \n \n private static final Log LOG = LogFactory . getLog ( SimpleGrailsControllerHelper . class ) ; \n private static final String PROPERTY_CHAIN_MODEL = STRING0 ; \n + private static final String FORWARD_CALLED = STRING1 ; \n + \n private String id ; \n private String controllerName ; \n private String actionName ; \n public class SimpleGrailsControllerHelper implements GrailsControllerHelper { \n throw new ControllerExecutionException ( STRING2 + uri , e ) ; \n } \n } \n - else if ( request . getAttribute ( ForwardMethod . CALLED ) == null ) { \n + else if ( request . getAttribute ( FORWARD_CALLED ) == null ) { \n if ( LOG . isDebugEnabled ( ) ) { \n LOG . debug ( STRING3 + actionName + STRING4 + returnValue + STRING5 + viewName + STRING6 ) ; \n }", "msg_token": "removed dependency on ForwardMethod from core web jar"} {"diff": " class StatusPanel extends JPanel { \n final Alarm alarm = getAlarm ( ) ; \n myLogMode = logAllowed && StringUtil . isEmpty ( nonLogText ) && statusMessage != null && alarm != null ; \n \n - if ( myLogMode ) { \n + if ( alarm != null ) { \n alarm . cancelAllRequests ( ) ; \n + } \n \n + if ( myLogMode ) { \n myTextPanel . setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; \n new Runnable ( ) { \n @ override", "msg_token": "don t show expired notifications in status bar"} {"diff": " public final class DefaultServicesManagerImpl implements ReloadableServicesManag \n final RegisteredService r = this . services . get ( id ) ; \n \n try { \n - return r == null ? null : ( RegisteredService ) r . clone ( ) ; \n + return r == null ? null : r . clone ( ) ; \n } catch ( final CloneNotSupportedException e ) { \n return r ; \n }", "msg_token": "Removed the unneeded cast"} {"diff": " public abstract class AlluxioException extends Exception { \n SINGLE \n throwClass = AlluxioExceptionType . getAlluxioExceptionClass ( e . getType ( ) ) ; \n } \n + if ( throwClass == null ) { \n + throwClass = AlluxioException . class ; \n + } \n return throwClass . getConstructor ( String . class ) . newInstance ( e . getMessage ( ) ) ; \n } catch ( ReflectiveOperationException reflectException ) { \n String errorMessage = STRING0 + e . getType ( ) + STRING1", "msg_token": "Addressing review comment"} {"diff": " public class NodeGetUniqueFromIndexLookupIT extends KernelIntegrationTest \n public void run ( ) \n { \n latch . awaitStart ( ) ; \n - Statement statement = statementContextProvider . statement ( ) ; \n try ( Transaction tx = db . beginTx ( ) ) \n { \n + Statement statement = statementContextProvider . statement ( ) ; \n statement . readOperations ( ) . nodeGetUniqueFromIndexLookup ( index , value ) ; \n statement . close ( ) ; \n tx . success ( ) ;", "msg_token": "Acquire statement inside transaction"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ExternalDiffTool { \n public class ExternalDiffTool { \n UserDataHolderBase context = new UserDataHolderBase ( ) ; \n List < String > errorRequests = new ArrayList < String > ( ) ; \n \n - for ( DiffRequestPresentable presentable : chain . getRequests ( ) ) { \n + SINGLE \n + List < ? extends DiffRequestPresentable > presentables = Collections . singletonList ( chain . getRequests ( ) . get ( chain . getIndex ( ) ) ) ; \n + \n + for ( DiffRequestPresentable presentable : presentables ) { \n try { \n requests . add ( presentable . process ( context , indicator ) ) ; \n }", "msg_token": "do not show all files in commit in external diff tool"} {"diff": " private ExternalProcessFixedLengthInputFormat < ExternalProcessInputSplit > format ; \n Assert . assertTrue ( invalidExitCode ) ; \n \n invalidExitCode = false ; \n - config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING0 ) ; \n + config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING1 ) ; \n format . configure ( config ) ; \n try { \n format . open ( split ) ; \n public class ExternalProcessInputFormatTest { \n Assert . assertTrue ( invalidExitCode ) ; \n \n invalidExitCode = false ; \n - config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING0 ) ; \n + config . setString ( ExternalProcessInputFormat . ALLOWEDEXITCODES_PARAMETER_KEY , STRING1 ) ; \n format . configure ( config ) ; \n try { \n format . open ( split ) ;", "msg_token": "Fixed testCheckExitCode to work on MacOS too"} {"diff": " public class StatsCommentsFragment extends StatsAbstractListFragment { \n return ; \n } \n \n - if ( ! isErrorResponse ( NUMBER0 ) ) { SINGLE \n + if ( mDatamodels [ NUMBER0 ] != null && ! isErrorResponse ( NUMBER0 ) ) { SINGLE \n mTotalsLabel . setVisibility ( View . VISIBLE ) ; \n int totalNumberOfFollowers = ( ( CommentFollowersModel ) mDatamodels [ NUMBER0 ] ) . getTotal ( ) ; \n mTotalsLabel . setText (", "msg_token": "re added the null check that was erroneously removed"} {"diff": " public class SharedPsiElementImplUtil { \n PsiElement [ ] children = parent . getChildren ( ) ; \n for ( int i = NUMBER0 ; i < children . length ; i ++ ) { \n PsiElement child = children [ i ] ; \n - if ( child . equals ( element ) ) { \n + if ( child == element ) { SINGLE \n return i > NUMBER0 ? children [ i - NUMBER1 ] : null ; \n } \n }", "msg_token": "do not use equals"} {"diff": " public class NotificationPanelView extends PanelView implements \n ExpandableView . OnHeightChangedListener , ObservableScrollView . Listener , \n View . OnClickListener , KeyguardPageSwipeHelper . Callback { \n \n + private static float EXPANSION_RUBBER_BAND_EXTRA_FACTOR = FLOAT0 ; \n + \n private KeyguardPageSwipeHelper mPageSwiper ; \n PhoneStatusBar mStatusBar ; \n private StatusBarHeaderView mHeader ; \n public class NotificationPanelView extends PanelView implements \n @ override \n protected void onOverExpansionChanged ( float overExpansion ) { \n float currentOverScroll = mNotificationStackScroller . getCurrentOverScrolledPixels ( true ) ; \n - mNotificationStackScroller . setOverScrolledPixels ( currentOverScroll + overExpansion \n - - mOverExpansion , true COMMENT , false COMMENT ) ; \n + float expansionChange = overExpansion - mOverExpansion ; \n + expansionChange *= EXPANSION_RUBBER_BAND_EXTRA_FACTOR ; \n + mNotificationStackScroller . setOverScrolledPixels ( currentOverScroll + expansionChange , \n + true COMMENT , \n + false COMMENT ) ; \n super . onOverExpansionChanged ( overExpansion ) ; \n }", "msg_token": "Reduced overexpansion when expanding the panel"} {"diff": " public class ResourceManager { \n } \n } \n } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + int left = NUMBER0 ; \n + int top = NUMBER0 ; \n + int right = Integer . MAX_VALUE ; \n + int bottom = Integer . MAX_VALUE ; \n for ( AmenityIndexRepositoryBinary index : list ) { \n if ( matcher != null && matcher . isCancelled ( ) ) { \n break ; \n } \n List < Amenity > result = index . searchAmenitiesByName ( MapUtils . get31TileNumberX ( lon ) , MapUtils . get31TileNumberY ( lat ) , \n - MapUtils . get31TileNumberX ( leftLongitude ) , MapUtils . get31TileNumberY ( topLatitude ) , \n - MapUtils . get31TileNumberX ( rightLongitude ) , MapUtils . get31TileNumberY ( bottomLatitude ) , \n + left , top , right , bottom , \n searchQuery , matcher ) ; \n amenities . addAll ( result ) ; \n }", "msg_token": "Don t use boundaries when search by name inside the file"} {"diff": " public class KafkaMetadata \n { \n KafkaTopicDescription table = getDefinedTables ( ) . get ( schemaTableName ) ; \n if ( table == null ) { \n - throw new TableNotFoundException ( schemaTableName ) ; \n + return null ; \n } \n \n return new KafkaTableHandle ( connectorId ,", "msg_token": "Change KafkaMetadata getTableHandle to not throw exceptions"} {"diff": " public abstract class AbsListView extends AdapterView < ListAdapter > implements Te \n ( ( TransitionDrawable ) d ) . resetTransition ( ) ; \n } \n } \n - d . setHotspot ( x , y ) ; \n + mSelector . setHotspot ( x , y ) ; \n } \n \n if ( longClickable ) {", "msg_token": "Fix NPE in AbsListView hotspot management"} {"diff": " public class SmackException extends Exception { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static class ConnectionException extends SmackException { \n \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class HostAddress { \n private final String fqdn ; \n private final int port ; \n public class HostAddress { \n this . exception = e ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Exception getException ( ) { \n return this . exception ; \n }", "msg_token": "Add javadoc to SmackException ConnectionException"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BaseActivity extends SherlockFragmentActivity implements \n super . onStart ( ) ; \n SINGLE \n if ( ! onAutoBackup ( ) ) { \n - SgSyncAdapter . requestSync ( this ) ; \n + SINGLE \n + final Context context = getApplicationContext ( ) ; \n + Handler handler = new Handler ( ) ; \n + handler . postDelayed ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + SgSyncAdapter . requestSync ( context ) ; \n + } \n + } , NUMBER0 ) ; \n + \n } \n }", "msg_token": "Delay sync on resuming to speed up resuming"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ suppresswarnings ( STRING0 ) \n public class ProjectTemplateIconImageResource implements ImageResource \n { \n public ProjectTemplateIconImageResource ( String name , String data )", "msg_token": "suppress deprecation warnings from ImageResource"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BalloonImpl implements Disposable , Balloon , LightweightWindow , Posi \n Toolkit . getDefaultToolkit ( ) . addAWTEventListener ( myAwtActivityListener , MouseEvent . MOUSE_EVENT_MASK | \n MouseEvent . MOUSE_MOTION_EVENT_MASK | \n KeyEvent . KEY_EVENT_MASK ) ; \n + ActionManager . getInstance ( ) . addAnActionListener ( new AnActionListener . Adapter ( ) { \n + @ override \n + public void beforeActionPerformed ( AnAction action , DataContext dataContext , AnActionEvent event ) { \n + hide ( ) ; \n + } \n + } , this ) ; \n } \n \n private Rectangle getRecForPosition ( Position position , boolean adjust ) {", "msg_token": "hide Balloons when some action performs"} {"diff": " public class ConnectionSSLSessionInfo implements SSLSessionInfo { \n channel . setOption ( Options . SSL_CLIENT_AUTH_MODE , newAuthMode ) ; \n channel . getSslSession ( ) . invalidate ( ) ; \n channel . startHandshake ( ) ; \n + serverConnection . getOriginalSinkConduit ( ) . flush ( ) ; \n ByteBuffer buff = ByteBuffer . wrap ( new byte [ NUMBER0 ] ) ; \n while ( ! waiter . isDone ( ) && serverConnection . isOpen ( ) ) { \n int read = serverConnection . getSourceChannel ( ) . read ( buff ) ;", "msg_token": "Perform a flush when renegotiating"} {"diff": " public class Capsule implements Runnable { \n } \n \n private void validateManifest ( Manifest manifest ) { \n - if ( ! Capsule . class . getName ( ) . equals ( manifest . getMainAttributes ( ) . getValue ( ATTR_PREMAIN_CLASS ) ) ) \n - throw new IllegalStateException ( STRING0 + Capsule . class . getName ( ) \n - + STRING1 + ATTR_PREMAIN_CLASS + STRING2 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n if ( manifest . getMainAttributes ( ) . getValue ( ATTR_CLASS_PATH ) != null ) \n throw new IllegalStateException ( STRING3 + ATTR_CLASS_PATH + STRING2", "msg_token": "Temporarily revert manifest s Premain Class validation"} {"diff": " public class EmulatorView extends View implements GestureDetector . OnGestureListe \n } else { \n SINGLE \n mScrollRemainder = FLOAT0 ; \n - onScroll ( e1 , e2 , NUMBER0 * velocityX , - NUMBER0 * velocityY ) ; \n + onScroll ( e1 , e2 , FLOAT1 * velocityX , - FLOAT1 * velocityY ) ; \n } \n return true ; \n }", "msg_token": "Slow down scrolling by vertical fling"} {"diff": " public class SnackbarManager { \n private SnackbarManager ( ) { \n } \n \n - public void show ( Snackbar snackbar , Activity target ) { \n + public void show ( Snackbar snackbar ) { \n if ( currentSnackbar != null ) { \n currentSnackbar . dismiss ( ) ; \n } \n currentSnackbar = snackbar ; \n - currentSnackbar . show ( target ) ; \n + currentSnackbar . show ( ( Activity ) currentSnackbar . getContext ( ) ) ; \n } \n }", "msg_token": "Simplify sample project"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ConfigurationClassWebApplicationContext extends AbstractRefreshable \n for ( String configLocation : getConfigLocations ( ) ) { \n try { \n Class < ? > configClass = ClassUtils . getDefaultClassLoader ( ) . loadClass ( configLocation ) ; \n - if ( AnnotationUtils . findAnnotation ( configClass , Configuration . class ) == null ) { \n - throw new IllegalArgumentException ( STRING0 + configClass . getName ( ) + STRING1 ) ; \n - } \n this . delegate . addConfigurationClass ( configClass ) ; \n } catch ( ClassNotFoundException ex ) { \n throw new IOException ( STRING2 + configLocation + STRING3 , ex ) ;", "msg_token": "removed remaining duplicate check for Configuration"} {"diff": " \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 ; \n \n - \n public class EchoWebSocketProcessor extends WebSocketProcessor { \n \n public EchoWebSocketProcessor ( AtmosphereServlet atmosphereServlet , WebSocketSupport webSocketSupport ) {", "msg_token": "Add missing header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UpdateLayoutAction extends Action { \n WebKeys . THEME_DISPLAY ) ; \n \n long userId = themeDisplay . getUserId ( ) ; \n - \n Layout layout = themeDisplay . getLayout ( ) ; \n - \n - SINGLE \n - SINGLE \n - \n - layout = LayoutLocalServiceUtil . getLayout ( layout . getPlid ( ) ) ; \n - \n LayoutTypePortlet layoutTypePortlet = \n - ( LayoutTypePortlet ) layout . getLayoutType ( ) ; \n - \n + themeDisplay . getLayoutTypePortlet ( ) ; \n PermissionChecker permissionChecker = \n themeDisplay . getPermissionChecker ( ) ;", "msg_token": "Revert bad checkin"} {"diff": " public class EngineIron extends Engine { \n LiquidStack liquid = LiquidManager . getLiquidForFilledItem ( itemInInventory ) ; \n \n if ( liquid != null ) { \n - if ( fill ( Orientations . Unknown , liquid , false ) == BuildCraftAPI . BUCKET_VOLUME ) { \n + if ( fill ( Orientations . Unknown , liquid , false ) == liquid . amount ) { \n fill ( Orientations . Unknown , liquid , true ) ; \n tile . setInventorySlotContents ( NUMBER0 , Utils . consumeItem ( itemInInventory ) ) ; \n }", "msg_token": "Added support for non standard liquid containers"} {"diff": " public class ApklibMojo extends AbstractAndroidMojo \n { \n if ( apkLibraryArtifact . getType ( ) . equals ( APKLIB ) ) \n { \n - commands . add ( STRING0 ) ; \n - commands . add ( getLibraryUnpackDirectory ( apkLibraryArtifact ) + STRING1 ) ; \n + String apklibResDirectory = getLibraryUnpackDirectory ( apkLibraryArtifact ) + STRING1 ; \n + if ( new File ( apklibResDirectory ) . exists ( ) ) \n + { \n + commands . add ( STRING0 ) ; \n + commands . add ( apklibResDirectory ) ; \n + } \n } \n } \n commands . add ( STRING2 ) ;", "msg_token": "Added existence check for the res directory for APKLIBs"} {"diff": " public class TransportSQLActionTest extends SQLTransportIntegrationTest { \n execute ( STRING0 ) ; \n assertThat ( response . rowCount ( ) , is ( NUMBER0 ) ) ; \n assertThat ( ( Double ) response . rows ( ) [ NUMBER1 ] [ NUMBER1 ] , is ( FLOAT0 ) ) ; \n + \n + execute ( STRING1 ) ; \n + assertThat ( response . rowCount ( ) , is ( NUMBER2 ) ) ; \n + assertThat ( ( Long ) response . rows ( ) [ NUMBER1 ] [ NUMBER1 ] , is ( NUMBER0 ) ) ; \n + assertThat ( ( Long ) response . rows ( ) [ NUMBER1 ] [ NUMBER3 ] , is ( NUMBER0 ) ) ; \n + assertThat ( ( Long ) response . rows ( ) [ NUMBER3 ] [ NUMBER1 ] , is ( NUMBER2 ) ) ; \n + assertThat ( ( Long ) response . rows ( ) [ NUMBER3 ] [ NUMBER3 ] , is ( NUMBER2 ) ) ; \n } \n \n @ test", "msg_token": "added grouped where scalar test"} {"diff": " \n \n package NAMESPACE ; \n \n - public abstract class VersionDetails { \n + import NAMESPACE ; \n + \n + public abstract class VersionDetails implements Serializable { \n private final String providerVersion ; \n \n public VersionDetails ( String version ) { \n public abstract class VersionDetails { \n public boolean supportsCancellation ( ) { \n return false ; \n } \n - } \n + }", "msg_token": "Make VersionDetail Serializable"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class Base { \n return editor ; \n \n } catch ( EditorException ee ) { \n - if ( ! ee . getMessage ( ) . equals ( STRING0 ) ) { SINGLE \n + if ( ee . getMessage ( ) != null ) { SINGLE \n Messages . showWarning ( STRING1 , ee . getMessage ( ) , ee ) ; \n } \n } catch ( NoSuchMethodError nsme ) {", "msg_token": "Fix NPE in Base"} {"diff": " public class GCMMessageService extends GcmListenerService { \n SINGLE \n for ( Iterator < Map . Entry < Integer , Bundle > > it = sActiveNotificationsMap . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { \n Map . Entry < Integer , Bundle > row = it . next ( ) ; \n - Integer pushId = row . getKey ( ) ; \n Bundle noteBundle = row . getValue ( ) ; \n if ( noteBundle . getString ( PUSH_ARG_NOTE_ID , STRING0 ) . equals ( noteId ) ) { \n sNotificationHelpers . rebuildAndUpdateNotificationsOnSystemBar ( noteBundle ) ;", "msg_token": "removed unused var"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( QuickTest . class ) \n + @ ignore SINGLE \n public class MigrationAwareServiceTest extends HazelcastTestSupport { \n \n private static final String BACKUP_COUNT_PROP = STRING0 ;", "msg_token": "Ignoring MigrationAwareTest because it is a known issue"} {"diff": " class TableToolkit extends Toolkit < Actor , Table , TableLayout > { \n \n public void addChild ( Actor parent , Actor child ) { \n child . remove ( ) ; \n - try { \n - parent . getClass ( ) . getMethod ( STRING0 , Actor . class ) . invoke ( parent , child ) ; \n - return ; \n - } catch ( InvocationTargetException ex ) { \n - throw new RuntimeException ( STRING1 , ex ) ; \n - } catch ( Exception ignored ) { \n - } \n ( ( Group ) parent ) . addActor ( child ) ; \n }", "msg_token": "Remove obsolete setWidget call"} {"diff": " public class DefaultProjectAccessListener implements ProjectAccessListener { \n \n public void beforeRequestingTaskByPath ( ProjectInternal targetProject ) { \n targetProject . evaluate ( ) ; \n + SINGLE \n } \n \n public void beforeResolvingProjectDependency ( ProjectInternal dependencyProject ) { \n dependencyProject . evaluate ( ) ; \n + dependencyProject . realizeTasksAndValidateModel ( ) ; \n } \n }", "msg_token": "Close the task container of the depended upon project when resolving project dependencies"} {"diff": " public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie \n protected int mModelLayout ; \n Class < VH > mViewHolderClass ; \n FirebaseArray mSnapshots ; \n - protected RecyclerViewClickListener clickListener ; \n - \n \n COMMENT \n COMMENT \n public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie \n return mSnapshots . getItem ( position ) . getKey ( ) . hashCode ( ) ; \n } \n \n - public void setClickListener ( RecyclerViewClickListener clickListener ) { \n - this . clickListener = clickListener ; \n - } \n - \n @ override \n public VH onCreateViewHolder ( ViewGroup parent , int viewType ) { \n ViewGroup view = ( ViewGroup ) LayoutInflater . from ( parent . getContext ( ) ) . inflate ( mModelLayout , parent , false ) ; \n public abstract class FirebaseRecyclerViewAdapter < T , VH extends RecyclerView . Vie \n \n abstract public void populateViewHolder ( VH viewHolder , T model ) ; \n \n - public interface RecyclerViewClickListener { \n - public void onItemClicked ( int position ) ; \n - } \n }", "msg_token": "Removed custom ClickListener"} {"diff": " public class DownloadManager { \n values . put ( Downloads . Impl . COLUMN_TOTAL_BYTES , - NUMBER0 ) ; \n values . putNull ( Downloads . Impl . _DATA ) ; \n values . put ( Downloads . Impl . COLUMN_STATUS , Downloads . Impl . STATUS_PENDING ) ; \n + values . put ( Downloads . Impl . COLUMN_FAILED_CONNECTIONS , NUMBER1 ) ; \n mResolver . update ( mBaseUri , values , getWhereClauseForIds ( ids ) , getWhereArgsForIds ( ids ) ) ; \n } \n \n public final class Downloads { \n COMMENT \n public static final String COLUMN_LAST_UPDATESRC = STRING0 ; \n \n + COMMENT \n + public static final String COLUMN_FAILED_CONNECTIONS = STRING1 ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Define failed connections column and reset"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class TypeSignature \n return typeName ; \n } \n \n - @ jsonproperty \n public String getBase ( ) \n { \n return base ; \n } \n \n - @ jsonproperty \n public List < TypeSignature > getParameters ( ) \n { \n return parameters ;", "msg_token": "Remove unnessary annotations"} {"diff": " public abstract class SearchIndexableData { \n public int rank ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String key ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add support for key value for SearchIndexableData"} {"diff": " public abstract class AbstractNameStore < T extends AbstractNameRecord > extends Ab \n { \n throw new InvalidRecordException ( STRING0 + id + STRING1 ) ; \n } \n - if ( inUseByte != Record . IN_USE . byteValue ( ) ) \n + if ( inUseByte != Record . IN_USE . byteValue ( ) && inUseByte != Record . NOT_IN_USE . byteValue ( ) ) \n { \n throw new InvalidRecordException ( STRING0 + id + STRING2 + inUse + STRING3 ) ; \n }", "msg_token": "Fixed an invalid condition regarding inUse"} {"diff": " public class OldIndexBackwardsCompatibilityTests extends StaticIndexBackwardComp \n SINGLE \n \n List < String > indexes = Arrays . asList ( \n - COMMENT \n STRING0 , \n STRING1 , \n STRING2 ,", "msg_token": "Remove irrelevant bwc comment"} {"diff": " public @ interface Parcel { \n COMMENT \n COMMENT \n FIELD , \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n + METHOD , \n + COMMENT \n + COMMENT \n + COMMENT \n BEAN , \n + COMMENT \n + COMMENT \n + COMMENT \n VALUE \n } \n } \n public class ParcelableAnalysis { \n HashMultimap < String , ASTReference < ASTMethod > > defaultReadMethods = HashMultimap . create ( ) ; \n HashMultimap < String , ASTReference < ASTField > > defaultFields = HashMultimap . create ( ) ; \n \n - if ( Parcel . Serialization . BEAN . equals ( serialization ) ) { \n + if ( Parcel . Serialization . BEAN . equals ( serialization ) || Parcel . Serialization . METHOD . equals ( serialization ) ) { \n defaultWriteMethods . putAll ( findJavaBeanWriteMethods ( hierarchyLoop , definedMethods , false ) ) ; \n defaultReadMethods . putAll ( findJavaBeanReadMethods ( hierarchyLoop , definedMethods , false ) ) ; \n }", "msg_token": "Reverted METHOD removal"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class HeaderFlyweight \n int length = buffer . getInt ( offset ) ; \n byte [ ] stringInBytes = new byte [ length ] ; \n buffer . getBytes ( offset + SIZE_OF_INT , stringInBytes ) ; \n - return new String ( stringInBytes ) ; \n + return new String ( stringInBytes , StandardCharsets . UTF_8 ) ; \n } \n \n public static void stringPut ( AtomicBuffer buffer , final int offset , String value , ByteOrder byteOrder ) \n { \n - byte [ ] bytes = value . getBytes ( ) ; \n + byte [ ] bytes = value . getBytes ( StandardCharsets . UTF_8 ) ; \n buffer . putInt ( offset , bytes . length ) ; \n buffer . putBytes ( offset + SIZE_OF_INT , bytes ) ; \n }", "msg_token": "explicitly set the charset"} {"diff": " public class ChatRoomConfigParam \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - protected static final String _CHAT_ROOM_NOT_VISIBLE = STRING0 ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final ChatRoomConfigParam CHAT_ROOM_NOT_VISIBLE \n - = new ChatRoomConfigParam ( _CHAT_ROOM_NOT_VISIBLE ) ; \n - \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ChatRoomPropertyChangeEvent \n COMMENT \n COMMENT \n COMMENT \n - public static final String PROPERTY_STATE_CHANGED = STRING1 ; \n + public static final String PROPERTY_CONFIG_CHANGED = STRING2 ; \n \n COMMENT \n COMMENT", "msg_token": "applied Multi user chat services fixes proposed from Stephane"} {"diff": " public class IllegalInstantiationCheck \n TokenTypes . PACKAGE_DEF \n } ; \n } \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int [ ] getAcceptableTokens ( ) \n + { \n + return new int [ ] { } ; \n + } \n + \n + COMMENT \n + public int [ ] getRequiredTokens ( ) \n + { \n + return new int [ ] { \n + TokenTypes . IMPORT , \n + TokenTypes . LITERAL_NEW , \n + TokenTypes . PACKAGE_DEF \n + } ; \n + } \n + \n COMMENT \n public void beginTree ( ) \n {", "msg_token": "Prevent user from changing tokens in the configuration"} {"diff": " public class GuiMode { \n } ) ; \n } \n \n - private static void setParamsForOtherPlatforms ( ) throws Exception { \n - UIManager . setLookAndFeel ( STRING0 ) ; \n - UIManager . setLookAndFeel ( STRING1 ) ; \n - } \n - \n private static void buildAndShowClassyShark ( List < String > cmdLineArgs ) { \n try { \n UIManager . setLookAndFeel ( UIManager . getSystemLookAndFeelClassName ( ) ) ; \n } catch ( UnsupportedLookAndFeelException | IllegalAccessException | ClassNotFoundException \n - | InstantiationException ex ) { \n + | InstantiationException | SecurityException ex ) { \n ex . printStackTrace ( ) ; \n }", "msg_token": "Removes unused methods"} {"diff": " final class ClosureRewriteModule implements HotSwapCompilerPass { \n return ; \n } \n } \n - \n - if ( aliasName != null \n - && isTopLevel ( t , NodeUtil . getEnclosingStatement ( call ) , ScopeType . EXEC_CONTEXT ) ) { \n - SINGLE \n - recordImportAlias ( aliasName , legacyNamespace ) ; \n - } \n } \n \n private void recordTopLevelClassOrFunctionName ( Node classOrFunctionNode ) {", "msg_token": "Remove a case that should never happen from module rewriting"} {"diff": " public class PluginResolutionServiceClient { \n try { \n return new URI ( url ) ; \n } catch ( URISyntaxException e ) { \n - throw new GradleException ( String . format ( STRING0 , kind , url , e ) ) ; \n + throw new GradleException ( String . format ( STRING0 , kind , url ) , e ) ; \n } \n }", "msg_token": "Fix varargs problem"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n @ path ( STRING0 ) \n public class ChatHandlerResource \n { \n - private final ObjectMapper jsonMapper ; \n - private final EventReceivingChatHandlerProvider handlers ; \n + private final ChatHandlerProvider handlers ; \n \n @ inject \n - public ChatHandlerResource ( ObjectMapper jsonMapper , EventReceivingChatHandlerProvider handlers ) \n + public ChatHandlerResource ( ChatHandlerProvider handlers ) \n { \n - this . jsonMapper = jsonMapper ; \n this . handlers = handlers ; \n }", "msg_token": "Fix Guice type errors"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public abstract class AbstractSQLQuery < Q extends AbstractSQLQuery < Q > > extends \n } \n \n @ suppresswarnings ( STRING0 ) \n + @ nullable \n private < T > T get ( ResultSet rs , int i , Class < T > type ) { \n try { \n Object value = rs . getObject ( i ) ;", "msg_token": "fixed Method may return null but is declared NonNull"} {"diff": " public class DexFileReader { \n } \n \n SINGLE \n - SINGLE \n if ( NUMBER0 == ( method_access_flags & DexOpcodes . ACC_CONSTRUCTOR ) \n && ( method . getName ( ) . equals ( STRING0 ) || method . getName ( ) \n . equals ( STRING1 ) ) ) { \n System . err . println ( STRING2 + method . toString ( ) \n + STRING3 ) ; \n - if ( ( config & KEEP_ALL_METHODS ) == NUMBER0 ) { \n - System . out . printf ( STRING4 , method . toString ( ) ) ; \n - return method_id ; \n - } \n } \n \n try {", "msg_token": "not skip bad init"} {"diff": " public abstract class Modification implements Serializable { \n COMMENT \n public abstract String getType ( ) ; \n \n + COMMENT \n + public final void setType ( String type ) { \n + COMMENT \n + } \n + \n public final Set < String > warnings = new HashSet < String > ( ) ; \n }", "msg_token": "add do nothing setter to modification to avoid Jackson confusion"} {"diff": " public class SettingsChooseSourceFragment extends Fragment implements LoaderMana \n mCurrentScroller = null ; \n } \n } \n - \n - @ override \n - public void onUpOrCancelMotionEvent ( ) { \n - } \n } ) ; \n mSourceContainerView = ( ViewGroup ) mRootView . findViewById ( R . id . source_container ) ; \n \n public class ObservableHorizontalScrollView extends HorizontalScrollView { \n case MotionEvent . ACTION_DOWN : \n mCallbacks . onDownMotionEvent ( ) ; \n break ; \n - case MotionEvent . ACTION_UP : \n - case MotionEvent . ACTION_CANCEL : \n - mCallbacks . onUpOrCancelMotionEvent ( ) ; \n - break ; \n } \n } \n return super . onTouchEvent ( ev ) ; \n public class ObservableHorizontalScrollView extends HorizontalScrollView { \n public interface Callbacks { \n void onScrollChanged ( int scrollX ) ; \n void onDownMotionEvent ( ) ; \n - void onUpOrCancelMotionEvent ( ) ; \n } \n }", "msg_token": "Remove always empty ObservableHorizontalScrollView Callback method"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DisruptorQueue { \n \n public DisruptorQueue ( Number bufferSize ) { \n _executor = Executors . newSingleThreadExecutor ( ) ; \n - _disruptor = new Disruptor ( new ObjectEventFactory ( ) , _executor , new MultiThreadedClaimStrategy ( bufferSize . intValue ( ) ) , new YieldingWaitStrategy ( ) ) ; \n + _disruptor = new Disruptor ( new ObjectEventFactory ( ) , _executor , new MultiThreadedClaimStrategy ( bufferSize . intValue ( ) ) , new BlockingWaitStrategy ( ) ) ; \n _handler = new WaiterEventHandler ( ) ; \n _disruptor . handleEventsWith ( _handler ) ; \n _buffer = _disruptor . start ( ) ;", "msg_token": "try different waiting strategy"} {"diff": " public class WinPythonSdkFlavor extends CPythonSdkFlavor { \n public Collection < String > suggestHomePaths ( ) { \n Set < String > candidates = new TreeSet < String > ( ) ; \n findInCandidatePaths ( candidates , STRING0 , STRING1 , STRING2 ) ; \n - candidates . add ( PythonHelpersLocator . getHelpersRoot ( ) . getParent ( ) ) ; \n + findInstallations ( candidates , STRING0 , PythonHelpersLocator . getHelpersRoot ( ) . getParent ( ) ) ; \n return candidates ; \n }", "msg_token": "added application root to the SDK search path on window Education Edition attempt"} {"diff": " public class Main extends Application { \n private Pane mainUI ; \n public MainController controller ; \n public NotificationBarPane notificationBar ; \n + public Stage mainWindow ; \n \n @ override \n public void start ( Stage mainWindow ) throws Exception { \n public class Main extends Application { \n } \n \n private void realStart ( Stage mainWindow ) throws IOException { \n + this . mainWindow = mainWindow ; \n instance = this ; \n SINGLE \n GuiUtils . handleCrashesOnThisThread ( ) ;", "msg_token": "expose MainWindow in Main"} {"diff": " public class MaterialEditText extends AppCompatEditText { \n } \n \n private void init ( Context context , AttributeSet attrs ) { \n + if ( isInEditMode ( ) ) { \n + return ; \n + } \n + \n iconSize = getPixel ( NUMBER0 ) ; \n iconOuterWidth = getPixel ( NUMBER1 ) ; \n iconOuterHeight = getPixel ( NUMBER0 ) ;", "msg_token": "Prevented initialisation in Developer Previews"} {"diff": " public class AddFragment extends SherlockFragment { \n if ( emptyView != null ) { \n mGrid . setEmptyView ( emptyView ) ; \n } \n + \n + SINGLE \n + if ( mAdapter != null ) { \n + mGrid . setAdapter ( mAdapter ) ; \n + } \n } \n \n @ targetapi ( NUMBER0 )", "msg_token": "Restore existing adapter fixes config change empty list"} {"diff": " public enum SocketPolicy { \n SHUTDOWN_OUTPUT_AT_END , \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n NO_RESPONSE", "msg_token": "Correct the Javadoc description"} {"diff": " public class TextEditingTarget implements EditingTarget \n \n executeRange ( selectionRange ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( ! selectionRange . isEmpty ( ) && \n - ( selectionRange . getEnd ( ) . getColumn ( ) == NUMBER0 ) ) \n - { \n - docDisplay_ . collapseSelection ( false ) ; \n - \n - SINGLE \n - if ( docDisplay_ . getLength ( selectionRange . getEnd ( ) . getRow ( ) ) == NUMBER0 ) \n - docDisplay_ . moveSelectionToNextLine ( true ) ; \n - } \n - else \n + SINGLE \n + if ( selectionRange . isEmpty ( ) ) \n { \n if ( ! docDisplay_ . moveSelectionToNextLine ( true ) ) \n docDisplay_ . moveSelectionToBlankLine ( ) ;", "msg_token": "don t advance cursor after execute code if there is a selection"} {"diff": " \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 package NAMESPACE ; \n \n import NAMESPACE ; \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 - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Adding MIT license to headers"} {"diff": " class TermKeyListener { \n SINGLE \n return ; \n \n + case KEYCODE_FUNCTION : \n + SINGLE \n + return ; \n + \n case KeyEvent . KEYCODE_BACK : \n result = mBackKeyCode ; \n break ;", "msg_token": "Treat hardware keyboard Fn key as a modifier key"} {"diff": " public class ErrorResponse { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public ErrorResponse ( String title , String message ) { \n this . title = title ; \n public class ErrorResponse { \n public String getMessage ( ) { \n return message ; \n } \n + \n + @ override public String toString ( ) { \n + return getClass ( ) . getSimpleName ( ) + STRING0 \n + + STRING1 + title \n + + STRING2 + message + STRING3 ; \n + } \n }", "msg_token": "added toString to ErrorResponse java"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix import spacing"} {"diff": " import NAMESPACE ; \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 public class CleanupOperation extends AbstractTransferOperation { \n public class CleanupOperation extends AbstractTransferOperation { \n this . localDatabase = new SqlDatabase ( config ) ; \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 - COMMENT \n - COMMENT \n @ override \n public CleanupOperationResult execute ( ) throws Exception { \n logger . log ( Level . INFO , STRING0 ) ;", "msg_token": "Move some comments"} {"diff": " public class ExportToHTMLDialog extends DialogWrapper { \n \n protected JComponent createCenterPanel ( ) { \n if ( ! myCanBeOpenInBrowser ) return null ; \n - OptionGroup optionGroup = new OptionGroup ( InspectionsBundle . message ( STRING0 ) ) ; \n + OptionGroup optionGroup = new OptionGroup ( ) ; \n \n addOptions ( optionGroup ) ;", "msg_token": "skip Options title in one case option"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public enum OpenCloseType implements PrimitiveType , State , Command { \n - OPEN , CLOSE , AJAR ; \n + OPEN , CLOSE ; \n \n public String toString ( ) { \n switch ( this ) {", "msg_token": "removed ajar state"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "update CompletionContributor javadoc"} {"diff": " public abstract class AbstractGradleExecuter implements GradleExecuter { \n noDefaultJvmArgs = false ; \n deprecationChecksOn = true ; \n stackTraceChecksOn = true ; \n - allowExtraLogging = true ; \n return this ; \n }", "msg_token": "Don t reset allowExtraLogging across executions"} {"diff": " public class GenerateDelegateHandler implements LanguageCodeInsightActionHandler \n final PsiClass targetClass = ( ( PsiMember ) target ) . getContainingClass ( ) ; \n LOG . assertTrue ( targetClass != null ) ; \n PsiMethod overridden = targetClass . findMethodBySignature ( method , true ) ; \n - if ( overridden != null ) { \n + if ( overridden != null && overridden . getContainingClass ( ) != targetClass ) { \n OverrideImplementUtil . annotateOnOverrideImplement ( method , targetClass , overridden ) ; \n }", "msg_token": "do not insert override annotation when class already contains method"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Version { \n public static final String VERSION ; \n \n - private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n - \n static { \n TachyonConf tachyonConf = new TachyonConf ( ) ; \n VERSION = tachyonConf . get ( Constants . TACHYON_VERSION , null ) ;", "msg_token": "delete dead code"} {"diff": " public class PApplet extends Applet \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void draw ( ) { \n SINGLE", "msg_token": "Added background as related method in reference to draw"} {"diff": " public abstract class MappedLoginService extends AbstractLifeCycle implements Lo \n COMMENT \n public UserIdentity login ( String username , Object credentials ) \n { \n + if ( username == null ) \n + return null ; \n + \n UserIdentity user = _users . get ( username ) ; \n \n if ( user == null ) \n public class DeferredAuthentication implements Authentication . Deferred \n @ override \n public Authentication login ( String username , Object password , ServletRequest request ) \n { \n + if ( username == null ) \n + return null ; \n + \n UserIdentity identity = _authenticator . login ( username , password , request ) ; \n if ( identity != null ) \n {", "msg_token": "Request login throws NPE if username is null"} {"diff": " class EditorSettingsStatisticsCollector extends UsagesCollector { \n addIfDiffers ( set , es . isWhitespacesShown ( ) && es . isTrailingWhitespacesShown ( ) , false , STRING0 ) ; \n addIfDiffers ( set , es . isIndentGuidesShown ( ) , true , STRING1 ) ; \n addIfDiffers ( set , es . isSmoothScrolling ( ) , true , STRING2 ) ; \n - addIfDiffers ( set , es . isDndEnabled ( ) , false , STRING3 ) ; \n + addIfDiffers ( set , es . isDndEnabled ( ) , true , STRING4 ) ; \n addIfDiffers ( set , es . isWheelFontChangeEnabled ( ) , false , STRING5 ) ; \n addIfDiffers ( set , es . isMouseClickSelectionHonorsCamelWords ( ) , true , STRING6 ) ; \n addIfDiffers ( set , es . isVariableInplaceRenameEnabled ( ) , true , STRING7 ) ;", "msg_token": "don t send statistics about default setting value"} {"diff": " public class IndexPoiCreator extends AbstractIndexPartCreator { \n Algoritms . removeAllFiles ( poiIndexFile ) ; \n } \n \n - private void checkEntity ( Entity e ) { \n + public void checkEntity ( Entity e ) { \n String name = e . getTag ( OSMTagKey . NAME ) ; \n if ( name == null ) { \n String msg = STRING0 ; \n public class IndexPoiCreator extends AbstractIndexPartCreator { \n } \n } else { \n int sum = NUMBER0 ; \n - for ( Tree < T > t : subtrees ) { \n - sum += t . getSubTreesOnLevel ( level - NUMBER1 ) ; \n + if ( subtrees != null ) { \n + for ( Tree < T > t : subtrees ) { \n + sum += t . getSubTreesOnLevel ( level - NUMBER1 ) ; \n + } \n } \n return sum ; \n }", "msg_token": "Fix NPE of POI empty creation"} {"diff": " public final class LoadedApk { \n String libraryPermittedPath = mDataDir ; \n boolean isBundledApp = false ; \n \n - if ( mApplicationInfo . isSystemApp ( ) ) { \n + if ( mApplicationInfo . isSystemApp ( ) && ! mApplicationInfo . isUpdatedSystemApp ( ) ) { \n isBundledApp = true ; \n SINGLE \n SINGLE", "msg_token": "Explicitly check for updated system apps"} {"diff": " public class AdminREST { \n Map < Long , UserModel > users = Maps . newHashMap ( ) ; \n for ( UserRole role : userRoleDAO . findAll ( ) ) { \n User u = role . getUser ( ) ; \n - Long key = user . getId ( ) ; \n + Long key = u . getId ( ) ; \n UserModel userModel = users . get ( key ) ; \n if ( userModel == null ) { \n userModel = new UserModel ( ) ;", "msg_token": "use the right user"} {"diff": " public class ShowRouteInfoActivity extends OsmandListActivity { \n String description = routeDirectionInfo \n . getDescriptionRoutePart ( ) ; \n html . append ( STRING0 ) ; \n - html . append ( description ) ; \n + html . append ( String . valueOf ( i + NUMBER0 ) + STRING1 + description ) ; \n html . append ( STRING2 ) ; \n RouteInfoAdapter . CumulativeInfo cumulativeInfo = routeInfo \n . getRouteDirectionCumulativeInfo ( i ) ;", "msg_token": "add turn number to route info display"} {"diff": " public class VcsFileStatusProvider implements FileStatusProvider , VcsBaseContent \n if ( cachedStatus == null || cachedStatus == FileStatus . NOT_CHANGED || ! isDocumentModified ( file ) ) { \n final AbstractVcs vcs = myVcsManager . getVcsFor ( file ) ; \n if ( vcs == null ) return ; \n + if ( cachedStatus == FileStatus . MODIFIED && ! isDocumentModified ( file ) ) { \n + if ( ! ( ( ReadonlyStatusHandlerImpl ) ReadonlyStatusHandlerImpl . getInstance ( myProject ) ) . getState ( ) . SHOW_DIALOG ) { \n + RollbackEnvironment rollbackEnvironment = vcs . getRollbackEnvironment ( ) ; \n + if ( rollbackEnvironment != null ) { \n + rollbackEnvironment . rollbackIfUnchanged ( file ) ; \n + } \n + } \n + } \n myFileStatusManager . fileStatusChanged ( file ) ; \n ChangeProvider cp = vcs . getChangeProvider ( ) ; \n if ( cp != null && cp . isModifiedDocumentTrackingRequired ( ) ) {", "msg_token": "do NOT attempt to revert explicitly checked out files when their contents get unchanged for performance reasons"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - protected File extractedApkLibsDirectory ; \n + protected File unpackedApkLibsDirectory ; \n \n COMMENT \n COMMENT \n public abstract class AbstractAndroidMojo extends AbstractMojo { \n } \n \n protected String getLibraryUnpackDirectory ( Artifact apkLibraryArtifact ) { \n - return extractedApkLibsDirectory . getAbsolutePath ( ) + STRING0 + apkLibraryArtifact . getId ( ) . replace ( STRING1 , STRING2 ) ; \n + return unpackedApkLibsDirectory . getAbsolutePath ( ) + STRING0 + apkLibraryArtifact . getId ( ) . replace ( STRING1 , STRING2 ) ; \n } \n }", "msg_token": "Unpack apklibs in unpack directory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class RegexBackedIncludesParser implements IncludesParser { \n + private final Pattern includePattern = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ; \n + \n public Includes parseIncludes ( File sourceFile ) { \n DefaultIncludes includes = new DefaultIncludes ( ) ; \n parseFile ( sourceFile , includes ) ; \n public class RegexBackedIncludesParser implements IncludesParser { \n } \n \n private void parseFile ( File file , DefaultIncludes includes ) { \n - Pattern includePattern = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ; \n try { \n BufferedReader bf = new BufferedReader ( new FileReader ( file ) ) ;", "msg_token": "Compile the regex once rather than once per file"} {"diff": " public abstract class ChartData < T extends DataSet < ? extends Entry > > { \n T dataSet = mDataSets . get ( dataSetIndex ) ; \n Entry e = dataSet . getEntryForXIndex ( xIndex ) ; \n \n + if ( e == null || e . getXIndex ( ) != xIndex ) \n + return false ; \n + \n return removeEntry ( e , dataSetIndex ) ; \n }", "msg_token": "Fixed a case where removeEntry xIndex removes the wrong entry"} {"diff": " \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Move first test to new test package"} {"diff": " public class ElasticsearchClient extends DB { \n Builder settings = Settings . settingsBuilder ( ) \n . put ( STRING0 , STRING1 ) \n . put ( STRING2 , System . getProperty ( STRING3 ) + STRING4 ) \n - . put ( STRING5 , STRING6 ) \n . put ( STRING7 , STRING1 ) \n . put ( STRING8 , STRING9 ) \n . put ( STRING10 , STRING11 )", "msg_token": "elasticsearch Remove unneeded multicast setting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class FrameworkMethod extends FrameworkMember < FrameworkMethod > { \n public boolean isPublic ( ) { \n return Modifier . isPublic ( fMethod . getModifiers ( ) ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isIgnored ( ) { \n + for ( Annotation annotation : getAnnotations ( ) ) { \n + if ( annotation instanceof Ignore ) { \n + return true ; \n + } \n + } \n + return false ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added isIgnored to FrameworkMethod"} {"diff": " public class JcrRouteTest extends ContextTestSupport { \n } \n \n private void clean ( ) throws IOException { \n - File [ ] files = { new File ( STRING0 ) , new File ( STRING1 ) , new File ( STRING2 ) } ; \n + File [ ] files = { new File ( STRING3 ) , new File ( STRING4 ) , new File ( STRING2 ) } ; \n for ( File file : files ) { \n if ( file . exists ( ) ) { \n FileUtil . delete ( file ) ; \n public class JcrRouteTest extends ContextTestSupport { \n @ override \n protected Context createJndiContext ( ) throws Exception { \n Context context = super . createJndiContext ( ) ; \n - repository = new TransientRepository ( ) ; \n + repository = new TransientRepository ( STRING4 , STRING3 ) ; \n context . bind ( STRING0 , repository ) ; \n return context ; \n }", "msg_token": "Moved the JCR transient repository below the target directory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class CheckboxTreeManager implements ICheckStateListener { \n \n + static final Log log = Log . getLog ( CheckboxTreeManager . class ) ; \n + \n private final CheckboxTreeViewer viewer ; \n private final Class < ? > [ ] targetTypes ; \n private Object [ ] checkedElements ; \n public class CheckboxTreeManager implements ICheckStateListener { \n } \n } ) ; \n } catch ( InvocationTargetException e ) { \n - UIUtils . showErrorDialog ( viewer . getControl ( ) . getShell ( ) , STRING0 , STRING1 , e . getTargetException ( ) ) ; \n + log . error ( STRING2 , e ) ; \n + SINGLE \n } catch ( InterruptedException e ) { \n SINGLE \n }", "msg_token": "Checkbox tree update fix"} {"diff": " public class IllegalInstantiationCheck \n case TokenTypes . IMPORT : \n processImport ( aAST ) ; \n break ; \n + default : \n + throw new IllegalArgumentException ( STRING0 + aAST ) ; \n } \n }", "msg_token": "Fix errors found by the new check"} {"diff": " public class VirtualMachineMetrics { \n \n final long [ ] allThreadIds = getThreadMXBean ( ) . getAllThreadIds ( ) ; \n final ThreadInfo [ ] allThreads = getThreadMXBean ( ) . getThreadInfo ( allThreadIds ) ; \n + int liveCount = NUMBER0 ; \n for ( ThreadInfo info : allThreads ) { \n - final State state = info . getThreadState ( ) ; \n - conditions . put ( state , conditions . get ( state ) + NUMBER1 ) ; \n + if ( info != null ) { \n + final State state = info . getThreadState ( ) ; \n + conditions . put ( state , conditions . get ( state ) + NUMBER1 ) ; \n + liveCount ++ ; \n + } \n } \n for ( State state : new ArrayList < State > ( conditions . keySet ( ) ) ) { \n - conditions . put ( state , conditions . get ( state ) / allThreads . length ) ; \n + conditions . put ( state , conditions . get ( state ) / liveCount ) ; \n } \n \n return conditions ;", "msg_token": "Fix a NullPointerException caused by a thread becoming inactive after fetching its ID but prior to fetching its info"} {"diff": " public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc \n for ( String className : possibleAtmosphereHandlersCandidate ) { \n try { \n className = className . replace ( STRING0 , STRING1 ) ; \n - className = className . replaceFirst ( STRING2 , STRING3 ) ; \n + className = className . replaceFirst ( STRING2 , STRING3 ) . replace ( STRING4 , STRING5 ) ; \n Class < ? > clazz = classloader . loadClass ( className ) ; \n \n if ( AtmosphereHandler . class . isAssignableFrom ( clazz ) ) {", "msg_token": "Fix regression introduced when detecting AtmosphereHandler"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n \n COMMENT \n COMMENT", "msg_token": "Remove unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebUtils extends org . springframework . web . util . WebUtils { \n COMMENT \n COMMENT \n public static ApplicationContext findApplicationContext ( ServletContext servletContext ) { \n + if ( servletContext == null ) { \n + return ContextLoader . getCurrentWebApplicationContext ( ) ; \n + } \n return WebApplicationContextUtils . getWebApplicationContext ( servletContext ) ; \n }", "msg_token": "if servletContext is null use ContextLoader currentApplicationContext"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n public class MuninnPageCacheSlowIT extends PageCacheSlowTest < MuninnPageCache > \n { \n + @ before \n + public void doNotRunOnWindows ( ) \n + { \n + assumeFalse ( SystemUtils . IS_OS_WINDOWS ) ; \n + } \n + \n @ override \n protected Fixture < MuninnPageCache > createFixture ( ) \n {", "msg_token": "Temporarily disable test on Windows"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TextUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static CharSequence join ( Iterable < CharSequence > list ) { \n - final ICUResourceBundle icuBundle = ( ICUResourceBundle ) UResourceBundle . \n - getBundleInstance ( ICUResourceBundle . ICU_BASE_NAME ) ; \n - final String listMiddlePattern = \n - icuBundle . getStringWithFallback ( STRING0 ) ; \n - SINGLE \n - SINGLE \n - final int firstClosingBrace = listMiddlePattern . indexOf ( STRING1 ) ; \n - final int lastOpeningBrace = listMiddlePattern . lastIndexOf ( STRING2 ) ; \n - final CharSequence delimiter = listMiddlePattern . substring ( \n - firstClosingBrace + NUMBER0 , lastOpeningBrace ) ; \n - \n - return join ( delimiter , list ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove TextUtils join Iterable CharSequence"} {"diff": " public class CropImageView extends ImageView { \n l = hx - hw ; \n r = hx + hw ; \n } \n - mFrameRect = new RectF ( l , t , r , b ) ; \n + float w = r - l ; \n + float h = b - t ; \n + mFrameRect = new RectF ( l + w / NUMBER0 , t + h / NUMBER0 , r - w / NUMBER0 , b - h / NUMBER0 ) ; \n invalidate ( ) ; \n }", "msg_token": "Fix crop frame initial position"} {"diff": " public class Paint { \n int contextLen = contextEnd - contextStart ; \n char [ ] buf = TemporaryBuffer . obtain ( contextLen ) ; \n TextUtils . getChars ( text , contextStart , contextEnd , buf , NUMBER0 ) ; \n - int result = getTextRunCursor ( buf , NUMBER0 , contextLen , dir , offset - contextStart , cursorOpt ) ; \n + int relPos = getTextRunCursor ( buf , NUMBER0 , contextLen , dir , offset - contextStart , cursorOpt ) ; \n TemporaryBuffer . recycle ( buf ) ; \n - return result ; \n + return ( relPos == - NUMBER1 ) ? - NUMBER1 : relPos + contextStart ; \n } \n \n COMMENT", "msg_token": "Fix cursor position calculation"} {"diff": " public class PluginOperation extends Operation { \n } \n \n SINGLE \n - PluginResultCode installResultCode ; \n if ( EnvironmentUtil . isWindows ( ) ) { \n logger . log ( Level . FINE , STRING0 ) ; \n File updatefilePath = new File ( UserConfig . getUserConfigDir ( ) , UPDATE_FILENAME ) ; \n public class PluginOperation extends Operation { \n } \n catch ( IOException e ) { \n logger . log ( Level . SEVERE , STRING1 + updatefilePath , e ) ; \n - installResultCode = PluginResultCode . NOK ; \n + erroneousPlugins . add ( pluginId ) ; \n } \n } \n else { \n - installResultCode = executeInstallFromApiHost ( pluginId ) . getResultCode ( ) ; \n + PluginOperationResult installResult = executeInstallFromApiHost ( pluginId ) ; \n \n - if ( installResultCode == PluginResultCode . NOK ) { \n + if ( installResult . getResultCode ( ) == PluginResultCode . NOK ) { \n logger . log ( Level . SEVERE , STRING2 + pluginId + STRING3 ) ; \n erroneousPlugins . add ( pluginId ) ; \n }", "msg_token": "Removed unnecessary variable declaration"} {"diff": " public class ActionMenuItemView extends TextView \n updateTextButtonVisibility ( ) ; \n } \n \n - @ override \n - public boolean dispatchPopulateAccessibilityEvent ( AccessibilityEvent event ) { \n - onPopulateAccessibilityEvent ( event ) ; \n - return true ; \n - } \n - \n - @ override \n - public void onPopulateAccessibilityEvent ( AccessibilityEvent event ) { \n - super . onPopulateAccessibilityEvent ( event ) ; \n - final CharSequence cdesc = getContentDescription ( ) ; \n - if ( ! TextUtils . isEmpty ( cdesc ) ) { \n - event . getText ( ) . add ( cdesc ) ; \n - } \n - } \n - \n - @ override \n - public boolean dispatchHoverEvent ( MotionEvent event ) { \n - SINGLE \n - return onHoverEvent ( event ) ; \n - } \n - \n public boolean showsIcon ( ) { \n return true ; \n }", "msg_token": "Remove non implemented API calls"} {"diff": " public final class LongMath { \n long bLo = b & NUMBER0 ; SINGLE \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a tiny mathematical typo in LongMath"} {"diff": " public class ErrorReporter implements Thread . UncaughtExceptionHandler { \n if ( pi != null ) { \n SINGLE \n mCrashProperties . put ( VERSION_NAME_KEY , pi . versionName ) ; \n - SINGLE \n - mCrashProperties . put ( PACKAGE_NAME_KEY , pi . packageName ) ; \n } else { \n SINGLE \n - mCrashProperties . put ( VERSION_NAME_KEY , STRING0 ) ; \n - mCrashProperties . put ( PACKAGE_NAME_KEY , STRING0 ) ; \n + mCrashProperties . put ( PACKAGE_NAME_KEY , STRING1 ) ; \n } \n + SINGLE \n + mCrashProperties . put ( PACKAGE_NAME_KEY , context . getPackageName ( ) ) ; \n SINGLE \n mCrashProperties . put ( PHONE_MODEL_KEY , android . os . Build . MODEL ) ; \n SINGLE", "msg_token": "Get application package name from Context getPackageName instead of PackageInfo"} {"diff": " public class LocalPaginatedStorageSmallCacheBigRecordsCrashRestoreIT { \n } \n \n } finally { \n + baseDB . activateOnCurrentThread ( ) ; \n + \n baseDB . close ( ) ; \n + testDB . activateOnCurrentThread ( ) ; \n + \n testDB . close ( ) ; \n } \n }", "msg_token": "adds activation of db instances on current thread on finally block to be able to close instances"} {"diff": " public class Realm { \n return where ( clazz ) . findAll ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public < E extends RealmObject > RealmResults < E > distinct ( Class < E > clazz , String fieldName ) { \n - Table table = getTable ( clazz ) ; \n - long columnIndex = table . getColumnIndex ( fieldName ) ; \n - if ( columnIndex == - NUMBER0 ) { \n - throw new IllegalArgumentException ( String . format ( STRING0 , fieldName ) ) ; \n - } \n - return new RealmResults ( this , table . getDistinctView ( columnIndex ) , clazz ) ; \n - } \n - \n SINGLE \n \n COMMENT", "msg_token": "Removed distinct method"} {"diff": " public class MainActivity extends Activity { \n \n private void loginToFacebook ( ) { \n mFacebook = new Facebook ( Constants . FACEBOOK_APP_ID ) ; \n - mFacebook . authorize ( this , Constants . FACEBOOK_PERMISSIONS , RESULT_FACEBOOK_AUTH , new DialogListener ( ) { \n + mFacebook . authorize ( this , Constants . FACEBOOK_PERMISSIONS , BuildConfig . DEBUG ? Facebook . FORCE_DIALOG_AUTH \n + : RESULT_FACEBOOK_AUTH , new DialogListener ( ) { \n \n public void onFacebookError ( FacebookError e ) { \n e . printStackTrace ( ) ; \n public class MainActivity extends Activity { \n \n Session session = new Session ( mFacebook , id , name ) ; \n session . save ( getApplicationContext ( ) ) ; \n - \n + \n launchSelectionActivity ( ) ; \n } catch ( JSONException e ) { \n e . printStackTrace ( ) ;", "msg_token": "Don t force SSO on DEBUG builds"} {"diff": " public class DefaultErrorMessages { \n MAP . put ( USAGE_IS_NOT_INLINABLE , STRING0 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ; \n MAP . put ( NULLABLE_INLINE_PARAMETER , STRING1 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ; \n MAP . put ( RECURSION_IN_INLINE , STRING2 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ; \n - MAP . put ( INLINE_PROPERTY_WITH_BACKING_FIELD , STRING3 ) ; \n + MAP . put ( INLINE_PROPERTY_WITH_BACKING_FIELD , STRING4 ) ; \n SINGLE \n MAP . put ( NON_LOCAL_RETURN_NOT_ALLOWED , STRING5 , ELEMENT_TEXT ) ; \n MAP . put ( INLINE_CALL_CYCLE , STRING6 , NAME ) ;", "msg_token": "Fix typo in inline property diagnostic message"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class MergeBase extends AbstractBaseTest { \n } \n \n @ test \n - @ excludein ( CUBRID ) \n + @ excludein ( { CUBRID , POSTGRES } ) \n public void Merge_With_Keys_Null_Id ( ) throws SQLException { \n ResultSet rs = merge ( survey ) . keys ( survey . id ) \n . setNull ( survey . id )", "msg_token": "Add test exclusion"} {"diff": " public class CompilerOptions { \n COMMENT \n public boolean removeDeadCode ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setCheckMissingReturn ( CheckLevel level ) { \n - } \n - \n public enum ExtractPrototypeMemberDeclarationsMode { \n OFF , \n USE_GLOBAL_TEMP ,", "msg_token": "Remove the CompilerOptions setCheckMissingReturn method in favor of the missingReturn diagnostic group"} {"diff": " public class OutputGate < T extends Record > extends AbstractGate < T > { \n \n if ( this . isBroadcast ) { \n \n - SINGLE \n - this . outputChannels . get ( NUMBER0 ) . writeRecord ( record ) ; \n + if ( getChannelType ( ) == ChannelType . INMEMORY ) { \n + \n + final int numberOfOutputChannels = this . outputChannels . size ( ) ; \n + for ( int i = NUMBER0 ; i < numberOfOutputChannels ; ++ i ) { \n + this . outputChannels . get ( i ) . writeRecord ( record ) ; \n + } \n + \n + } else { \n + \n + SINGLE \n + this . outputChannels . get ( NUMBER0 ) . writeRecord ( record ) ; \n + } \n \n } else {", "msg_token": "Finished implementation of optimized broadcast in output gate"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class ConferenceChatSession \n implements ChatSession , \n public class ConferenceChatSession \n \n if ( eventType . equals ( ChatRoomMemberPresenceChangeEvent . MEMBER_JOINED ) ) \n { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n ConferenceChatContact chatContact \n = new ConferenceChatContact ( chatRoomMember ) ; \n - \n - chatParticipants . add ( chatContact ) ; \n - \n - sessionRenderer . addChatContact ( chatContact ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + for ( ChatContact cc : chatParticipants ) \n + if ( ! cc . getUID ( ) . equals ( chatContact . getUID ( ) ) ) \n + chatParticipants . add ( chatContact ) ; \n + sessionRenderer . addChatContact ( chatContact ) ; \n \n COMMENT \n COMMENT", "msg_token": "Fix a bug which makes conference contacts appearing twice in the ChatContactListModel"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyCharmEduInitialConfigurator { \n } \n } \n \n + for ( AbstractProjectViewPane pane : Extensions . getExtensions ( AbstractProjectViewPane . EP_NAME , project ) ) { \n + if ( pane . getId ( ) . equals ( ScopeViewPane . ID ) ) { \n + projectArea . getExtensionPoint ( AbstractProjectViewPane . EP_NAME ) . unregisterExtension ( pane ) ; \n + } \n + } \n + \n for ( SelectInTarget target : Extensions . getExtensions ( SelectInTarget . EP_NAME , project ) ) { \n if ( ToolWindowId . STRUCTURE_VIEW . equals ( target . getToolWindowId ( ) ) ) { \n projectArea . getExtensionPoint ( SelectInTarget . EP_NAME ) . unregisterExtension ( target ) ;", "msg_token": "do not show scopes pane in project panel"} {"diff": " public interface RLiveObjectService { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a typo in java docs"} {"diff": " public class CqlRecordReader extends RecordReader < Long , Row > \n } \n \n if ( cluster != null ) \n - session = cluster . connect ( keyspace ) ; \n + session = cluster . connect ( quote ( keyspace ) ) ; \n \n if ( session == null ) \n throw new RuntimeException ( STRING0 ) ;", "msg_token": "Fix CRR test"} {"diff": " public class InterfaceStaticMethodsTest { \n assumeThat ( SystemUtils . JAVA_VERSION_FLOAT , is ( lessThan ( FLOAT0 ) ) ) ; \n \n thrown . expect ( NoClassDefFoundError . class ) ; \n - thrown . expectMessage ( STRING0 ) ; \n + thrown . expectMessage ( STRING1 ) ; \n SINGLE \n SINGLE \n Stream . of ( NUMBER0 , NUMBER1 , NUMBER2 ) ; \n public class InterfaceStaticMethodsTest { \n public void calling_static_methods_of_library_interfaces__new_method_on_old_interface ( ) { \n assumeThat ( SystemUtils . JAVA_VERSION_FLOAT , is ( lessThan ( FLOAT0 ) ) ) ; \n \n - thrown . expect ( NoSuchMethodError . class ) ; \n - thrown . expectMessage ( STRING2 ) ; \n + thrown . expect ( IncompatibleClassChangeError . class ) ; \n + thrown . expectMessage ( STRING3 ) ; \n SINGLE \n SINGLE \n Comparator . naturalOrder ( ) ;", "msg_token": "Fixed assertions to expect the correct errors"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "android update WXPageActivity java"} {"diff": " public class InAppHelper { \n } else { \n complain ( STRING0 \n + obj . getString ( STRING1 ) \n - + STRING2 + userId + STRING3 + token + STRING4 ) ; \n + + STRING2 + userId + STRING3 + token + STRING5 + result + STRING4 ) ; \n } \n } catch ( JSONException e ) { \n logError ( STRING6 , e ) ; \n complain ( STRING0 \n + ( e . getMessage ( ) != null ? e . getMessage ( ) : STRING7 ) \n - + STRING2 + userId + STRING3 + token + STRING4 ) ; \n + + STRING2 + userId + STRING3 + token + STRING5 + result + STRING4 ) ; \n } \n } \n if ( listener != null ) {", "msg_token": "Added errorneous response of InApp to toast"} {"diff": " public abstract class AbstractJetFormatterTest extends LightIdeaTestCase { \n configurator . configureSettings ( ) ; \n doTextTest ( originalFileText , new File ( testFileName + STRING0 ) ) ; \n \n - String afterInvertedFileName = testFileName + STRING1 ; \n + String afterInvertedFileName = testFileName + STRING2 ; \n if ( new File ( afterInvertedFileName ) . exists ( ) ) { \n configurator . configureInvertedSettings ( ) ; \n doTextTest ( originalFileText , new File ( afterInvertedFileName ) ) ;", "msg_token": "Fix wrong test file extension prevented a bunch of formatter tests from running"} {"diff": " public class DarculaTextBorder implements Border , UIResource { \n @ override \n public Insets getBorderInsets ( Component c ) { \n int off = DarculaTextFieldUI . isSearchField ( c ) ? NUMBER0 : NUMBER1 ; \n - return new InsetsUIResource ( NUMBER2 , NUMBER3 + off , NUMBER2 , NUMBER3 + off ) ; \n + return new InsetsUIResource ( NUMBER2 , NUMBER3 + off + ( off == NUMBER1 ? NUMBER1 : NUMBER4 ) , NUMBER2 , NUMBER3 + off ) ; \n } \n \n @ override", "msg_token": "avoid text on icon"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractAopProxyTests { \n COMMENT \n @ test \n public void testManyProxies ( ) { \n + Assume . group ( TestGroup . PERFORMANCE ) ; \n int howMany = NUMBER0 ; \n StopWatch sw = new StopWatch ( ) ; \n sw . start ( STRING0 + howMany + STRING1 ) ;", "msg_token": "Add testMany test to TestGroup PERFORMANCE"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class FileSystemMasterTest { \n COMMENT \n COMMENT \n @ test \n + @ ignore ( STRING0 ) \n public void setTtlForFileWithNoTtlTest ( ) throws Exception { \n CreateFileOptions options = \n CreateFileOptions . defaults ( ) . setBlockSizeBytes ( Constants . KB ) . setRecursive ( true ) ;", "msg_token": "Ignore flaky test"} {"diff": " public class MeshMultitextureTest implements GdxTest { \n \n @ override public void render ( ) { \n GL10 gl = Gdx . graphics . getGL10 ( ) ; \n + gl . glViewport ( NUMBER0 , NUMBER0 , Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) ) ; \n + gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ; \n gl . glEnable ( GL10 . GL_TEXTURE_2D ) ; \n gl . glActiveTexture ( GL10 . GL_TEXTURE0 ) ; \n tex1 . bind ( ) ;", "msg_token": "changed Multitexture test now actually sets the viewport and clears the screen"} {"diff": " public abstract class ScheduledPollConsumer extends DefaultConsumer implements R \n COMMENT \n COMMENT \n public void run ( ) { \n - if ( LOG . isDebugEnabled ( ) ) { \n - LOG . debug ( STRING0 + this . getEndpoint ( ) ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . trace ( STRING0 + this . getEndpoint ( ) ) ; \n } \n try { \n if ( isRunAllowed ( ) ) {", "msg_token": "make scheduler more quiet in DEBUG mode as its default polls twice per sec"} {"diff": " public class PluginManager { \n COMMENT \n COMMENT \n public void addPlugin ( Class < ? extends Plugin > plugin , PluginPriority priority ) { \n - utils . getMessager ( ) . printMessage ( Diagnostic . Kind . ERROR , \n - STRING0 + plugin . toString ( ) + STRING1 + priority ) ; \n switch ( priority ) { \n case LOW : \n lowPriorityPlugins . add ( plugin ) ;", "msg_token": "Remove a debug log that was causing an error"} {"diff": " public abstract class AbstractSlideExpandableListAdapter extends WrapperListAdap \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public void setAnimationDuration ( int duration ) { \n - if ( duration > NUMBER0 ) animationDuration = duration ; \n + if ( duration < NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + \n + animationDuration = duration ; \n } \n COMMENT \n COMMENT", "msg_token": "Added IllegalArgumentException to setAnimationDuration"} {"diff": " public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di \n HttpResponse res = new DefaultHttpResponse ( HTTP_1_1 , HttpResponseStatus . UNAUTHORIZED ) ; \n channel . writeAndFlush ( res ) \n . addListener ( ChannelFutureListener . CLOSE ) ; \n - log . debug ( STRING0 ) ; \n + log . debug ( STRING1 , params , headers ) ; \n return false ; \n } \n \n public class AuthorizeHandler extends ChannelInboundHandlerAdapter implements Di \n client . send ( packet ) ; \n \n client . schedulePingTimeout ( ) ; \n - log . debug ( STRING2 , sessionId ) ; \n + log . debug ( STRING3 , sessionId , params , headers ) ; \n return true ; \n }", "msg_token": "authorize logging added"} {"diff": " public class OverloadedMethodsWithSameNumberOfParametersInspectionTest \n \n private void doTest ( BaseInspection inspection ) throws Exception { \n doTest ( STRING0 + \n - getTestName ( true ) , inspection ) ; \n + getTestName ( false ) , inspection ) ; \n } \n }", "msg_token": "Tests fixed hate case insensitive FS"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class AVD { \n + static final int DEFAULT_WIDTH = NUMBER0 ; \n + static final int DEFAULT_HEIGHT = NUMBER1 ; \n \n COMMENT \n public final String name ; \n class Build { \n } \n \n protected int [ ] getSketchSize ( ) { \n - int wide = Device . DEFAULT_WIDTH ; \n - int high = Device . DEFAULT_HEIGHT ; \n + int wide = AVD . DEFAULT_WIDTH ; \n + int high = AVD . DEFAULT_HEIGHT ; \n SINGLE \n \n SINGLE", "msg_token": "Undo reliance on otherwise dead class"} {"diff": " public class QuickTour { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static void main ( final String [ ] args ) throws InterruptedException { \n MongoClient mongoClient ; \n public class QuickTourAdmin { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static void main ( final String [ ] args ) throws InterruptedException { \n MongoClient mongoClient ;", "msg_token": "Add throws params to the async quick tour examples"} {"diff": " public class ClassesRequest extends Request { \n List < Runner > runners = new ArrayList < Runner > ( ) ; \n for ( Class < ? > each : fClasses ) { \n Runner childRunner = Request . aClass ( each ) . getRunner ( ) ; \n - if ( childRunner != null ) SINGLE \n - runners . add ( childRunner ) ; \n + runners . add ( childRunner ) ; SINGLE \n } \n CompositeRunner runner = new CompositeRunner ( fName , runners ) ; \n return runner ;", "msg_token": "Removed unnecessary null check"} {"diff": " public class LocalTransportThreadModelTest { \n } \n } \n \n - @ test ( timeout = NUMBER0 ) \n + @ test ( timeout = NUMBER1 ) \n public void testConcurrentMessageBufferAccess ( ) throws Throwable { \n EventLoopGroup l = new LocalEventLoopGroup ( NUMBER2 , new PrefixThreadFactory ( STRING0 ) ) ; \n EventExecutorGroup e1 = new DefaultEventExecutorGroup ( NUMBER2 , new PrefixThreadFactory ( STRING1 ) ) ;", "msg_token": "Double the timeout of LocalTransportThreadModelTest"} {"diff": " import NAMESPACE ; \n public class WebDataSerializerHook implements DataSerializerHook { \n \n \n - public static final int F_ID = FactoryIdHelper . getFactoryId ( FactoryIdHelper . WEB_DS_FACTORY , - NUMBER0 ) ; \n - public static final int SESSION_ATTRIBUTE_ID = NUMBER1 ; \n + public static final int F_ID = FactoryIdHelper . getFactoryId ( FactoryIdHelper . WEB_DS_FACTORY , F_ID_OFFSET_WEBMODULE ) ; \n \n \n @ override \n public class WebDataSerializerHook implements DataSerializerHook { \n return new DataSerializableFactory ( ) { \n @ override \n public IdentifiedDataSerializable create ( int typeId ) { \n - if ( typeId == WebDataSerializerHook . SESSION_ATTRIBUTE_ID ) { \n + if ( typeId == SESSION_ATTRIBUTE_ID ) { \n return new SessionAttributePredicate ( ) ; \n } \n throw new IllegalArgumentException ( ) ; \n package NAMESPACE ; \n \n public interface DataSerializerHook { \n \n + public static int F_ID_OFFSET_WEBMODULE = - NUMBER0 ; \n + public static final int SESSION_ATTRIBUTE_ID = NUMBER1 ; \n + \n int getFactoryId ( ) ; \n \n DataSerializableFactory createFactory ( ) ;", "msg_token": "moved up all constants to DataSerializerHook"} {"diff": " public class Capsule implements Runnable { \n throw new IllegalArgumentException ( STRING0 + p + STRING1 + getAppCache ( ) ) ; \n } \n \n - private static String expandCommandLinePath ( String str ) { \n - if ( str == null ) \n - return null ; \n - SINGLE \n - SINGLE \n - SINGLE \n - return str . startsWith ( STRING2 ) ? str . replace ( STRING3 , getProperty ( PROP_USER_HOME ) ) : str ; \n - } \n - \n private static Path toFriendlyPath ( Path p ) { \n if ( p . isAbsolute ( ) ) { \n Path rel = p . getFileSystem ( ) . getPath ( STRING4 ) . toAbsolutePath ( ) . relativize ( p ) ;", "msg_token": "remove unused expandCommandLinePath"} {"diff": " public class MediaConductor extends Agent \n \n heartbeatTimer = newTimeout ( HEARTBEAT_TIMEOUT_MS , TimeUnit . MILLISECONDS , this : : onHeartbeatCheck ) ; \n \n - try \n - { \n - conductorByteBuffers = ctx . conductorByteBuffers ( ) ; \n - final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ; \n - final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ; \n - toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ; \n - toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ; \n - } \n - catch ( final Exception ex ) \n - { \n - throw new IllegalStateException ( STRING0 , ex ) ; \n - } \n + conductorByteBuffers = ctx . conductorByteBuffers ( ) ; \n + final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ; \n + final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ; \n + toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ; \n + toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ; \n } \n \n public ControlFrameHandler frameHandler ( final UdpDestination destination )", "msg_token": "Remove try catch that is no longer valid"} {"diff": " public class BtsMeasureCardInflater implements IAdapterViewInflater < BtsMeasureIt \n gpsd_accu = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_gpsd_accu ) ; \n SINGLE \n SINGLE \n - bb_power = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_bb_power ) ; \n + SINGLE \n SINGLE \n SINGLE \n rx_signal = ( TextView ) mRootView . findViewById ( R . id . tv_bts_measure_rx_signal ) ;", "msg_token": "fix build error"} {"diff": " public class AtmosphereResourceImpl implements AtmosphereResource { \n padding = config . getInitParameter ( ApplicationConfig . STREAMING_PADDING_MODE ) ; \n req . setAttribute ( ApplicationConfig . STREAMING_PADDING_MODE , padding ) ; \n \n - uuid = response . getHeader ( HeaderConfig . X_ATMOSPHERE_TRACKING_ID ) ; \n + String s = response . getHeader ( HeaderConfig . X_ATMOSPHERE_TRACKING_ID ) ; \n + uuid = s == null ? UUID . randomUUID ( ) . toString ( ) : s ; \n \n if ( config . isSupportSession ( ) ) { \n SINGLE", "msg_token": "Always assign a default value"} {"diff": " public abstract class AbstractClockTest extends HazelcastTestSupport { \n Method method = instanceClass . getMethod ( STRING0 ) ; \n method . invoke ( isolatedNode ) ; \n isolatedNode = null ; \n + System . gc ( ) ; \n } catch ( Exception e ) { \n throw new RuntimeException ( STRING1 , e ) ; \n }", "msg_token": "Added forced GC to AbstractClockTest to counterfeit PermGen OOME"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class TestVersionedCatalogLoader extends CatalogTestSuiteNoDB { \n public class TestVersionedCatalogLoader extends CatalogTestSuiteNoDB { \n \n @ test ( groups = STRING0 ) \n public void testLoadCatalogFromExternalFile ( ) throws CatalogApiException , IOException , URISyntaxException { \n - URL originURL = Resources . getResource ( STRING1 ) ; \n - File originFile = new File ( originURL . toURI ( ) ) ; \n - File destinationFile = new File ( STRING2 ) ; \n + File originFile = new File ( Resources . getResource ( STRING1 ) . toURI ( ) ) ; \n + File destinationFile = new File ( Files . createTempDir ( ) . toString ( ) + STRING3 ) ; \n destinationFile . deleteOnExit ( ) ; \n Files . copy ( originFile , destinationFile ) ; \n final VersionedCatalog c = loader . loadDefaultCatalog ( destinationFile . toURI ( ) . toString ( ) ) ;", "msg_token": "Fix Unit Tests based on comments during Pull Request"} {"diff": " public abstract class TransactionBlock extends Transaction { \n public void setClient ( Client client ) { \n super . setClient ( client ) ; \n } \n - \n - public String discard ( ) { \n - return super . discard ( ) ; \n - } \n }", "msg_token": "Remove unused discard method"} {"diff": " public class RestClientUtils { \n SINGLE \n String deviceLanguageCode = context != null ? context . getResources ( ) . getConfiguration ( ) . locale . toString ( ) : Locale . getDefault ( ) . getLanguage ( ) ; \n if ( ! TextUtils . isEmpty ( deviceLanguageCode ) ) { \n + SINGLE \n + COMMENT \n + < p > Note that Java uses several deprecated two - letter codes . The Hebrew ( STRING0 ) language \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + if ( deviceLanguageCode . startsWith ( STRING1 ) ) \n + deviceLanguageCode = deviceLanguageCode . replace ( STRING1 , STRING0 ) ; \n + else if ( deviceLanguageCode . startsWith ( STRING2 ) ) \n + deviceLanguageCode = deviceLanguageCode . replace ( STRING2 , STRING3 ) ; \n + else if ( deviceLanguageCode . startsWith ( STRING4 ) ) \n + deviceLanguageCode = deviceLanguageCode . replace ( STRING4 , STRING5 ) ; \n + \n params . put ( STRING6 , deviceLanguageCode ) ; \n } \n return params ;", "msg_token": "patched deprecated locale codes for Hebrew iw Indonesian in and Yiddish ji"} {"diff": " \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 ; \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 package NAMESPACE ; \n \n import NAMESPACE ; \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 package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add missing copyright"} {"diff": " public class BaseProcessInstanceResource extends SecuredResource { \n \n case GREATER_THAN : \n processInstanceQuery . variableValueGreaterThan ( variable . getName ( ) , actualValue ) ; \n + break ; \n \n case GREATER_THAN_OR_EQUALS : \n processInstanceQuery . variableValueGreaterThanOrEqual ( variable . getName ( ) , actualValue ) ; \n + break ; \n \n case LESS_THAN : \n processInstanceQuery . variableValueLessThan ( variable . getName ( ) , actualValue ) ; \n + break ; \n \n case LESS_THAN_OR_EQUALS : \n processInstanceQuery . variableValueLessThanOrEqual ( variable . getName ( ) , actualValue ) ; \n + break ; \n \n default: \n throw new ActivitiIllegalArgumentException ( STRING0 + variable . getVariableOperation ( ) ) ;", "msg_token": "Fixed issue in Process instance query break"} {"diff": " public class DefaultAndroidDirectoryResolver implements AndroidDirectoryResolver \n public Path findAndroidSdkDir ( ) { \n Optional < Path > androidSdkDir = findAndroidSdkDirSafe ( ) ; \n Preconditions . checkState ( androidSdkDir . isPresent ( ) , \n - STRING0 + \n + STRING1 + \n STRING2 ) ; \n return androidSdkDir . get ( ) ; \n }", "msg_token": "Fix a minor typo in a message"} {"diff": " import NAMESPACE ; \n COMMENT \n public class RepositoriesViewModel { \n private static final String TAG = RepositoriesViewModel . class . getSimpleName ( ) ; \n - final private CompositeSubscription compositeSubscription = new CompositeSubscription ( ) ; \n + private CompositeSubscription compositeSubscription ; \n \n @ inject \n DataLayer dataLayer ; \n public class RepositoriesViewModel { \n public void subscribeToDataStore ( ) { \n Log . v ( TAG , STRING0 ) ; \n \n + if ( compositeSubscription == null ) { \n + compositeSubscription = new CompositeSubscription ( ) ; \n + } \n + \n compositeSubscription . add ( \n Observable . switchOnNext ( \n Observable . switchOnNext ( searchString ) \n public class RepositoriesViewModel { \n public void unsubscribeFromDataStore ( ) { \n Log . v ( TAG , STRING1 ) ; \n compositeSubscription . clear ( ) ; \n + compositeSubscription = null ; \n } \n \n public void setSearchStringObservable ( Observable < String > searchStringObservable ) {", "msg_token": "Fix problem with CompositeSubscription reusability"} {"diff": " public class Match { \n } \n \n } else { \n - SINGLE \n if ( synthesizer == null ) { \n formattedString [ NUMBER0 ] = formattedToken . getToken ( ) ; \n } else if ( postagRegexp ) {", "msg_token": "removing outdated TODO"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public enum FileFormat \n } \n } \n \n - @ notnull \n private static Properties createSchema ( HiveStorageFormat format , List < String > columnNames , List < Type > columnTypes ) \n { \n Properties schema = new Properties ( ) ;", "msg_token": "Remove banned NotNull annotation"} {"diff": " public class IQAuthHandler extends IQHandler implements IQAuthInfo { \n private IQ login ( String username , Element iq , IQ packet , String password , LocalClientSession session , String digest ) \n throws UnauthorizedException , UserNotFoundException , ConnectionException , InternalUnauthenticatedException { \n SINGLE \n + if ( username == null || username . trim ( ) . length ( ) == NUMBER0 ) { \n + throw new UnauthorizedException ( STRING0 ) ; \n + } \n try { \n Stringprep . nodeprep ( username ) ; \n } catch ( StringprepException e ) {", "msg_token": "Prevents a nasty indexoutofbounds when illegal input occurs"} {"diff": " public final class Configuration implements Parcelable , Comparable < Configuration \n case NUMBER0 : \n parts . add ( STRING0 ) ; \n break ; \n + case NUMBER1 : \n + parts . add ( STRING1 ) ; \n + break ; \n + case NUMBER2 : \n + parts . add ( STRING2 ) ; \n + break ; \n default : \n parts . add ( config . densityDpi + STRING3 ) ; \n break ; \n public final class Configuration implements Parcelable , Comparable < Configuration \n break ; \n } \n \n - parts . add ( STRING4 + Build . VERSION . SDK_INT ) ; \n + parts . add ( STRING4 + Build . VERSION . RESOURCES_SDK_INT ) ; \n return TextUtils . join ( STRING5 , parts ) ; \n } \n }", "msg_token": "Report the right resource version in am get config"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add missing import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ActivityThread { \n \n setCoreSettings ( coreSettings ) ; \n \n + SINGLE \n + VMRuntime . registerAppInfo ( appInfo . dataDir , appInfo . processName ) ; \n + \n AppBindData data = new AppBindData ( ) ; \n data . processName = processName ; \n data . appInfo = appInfo ;", "msg_token": "Add a call to registerAppInfo for the VMRuntime"} {"diff": " public class LocalMUCRoom implements MUCRoom { \n COMMENT \n private void kickPresence ( Presence kickPresence , JID actorJID ) { \n SINGLE \n - List < MUCRole > occupants = occupantsByNickname . get ( kickPresence . getFrom ( ) . getResource ( ) . toLowerCase ( ) ) ; \n + List < MUCRole > occupants = new ArrayList < MUCRole > ( occupantsByNickname . get ( kickPresence . getFrom ( ) . getResource ( ) . toLowerCase ( ) ) ) ; \n for ( MUCRole kickedRole : occupants ) { \n kickPresence = kickPresence . createCopy ( ) ; \n SINGLE", "msg_token": "Fix ConcurrentModificationException in kickPresence"} {"diff": " public enum BlockStoreContext { \n private BlockMasterClientPool mBlockMasterClientPool ; \n private BlockWorkerClientPool mLocalBlockWorkerClientPool ; \n \n - private static boolean sLocalBlockWorkerClientPoolInitialized = false ; \n + private boolean mLocalBlockWorkerClientPoolInitialized = false ; \n \n COMMENT \n COMMENT \n public enum BlockStoreContext { \n COMMENT \n COMMENT \n private synchronized void initializeLocalBlockWorkerClientPool ( ) { \n - if ( ! sLocalBlockWorkerClientPoolInitialized ) { \n + if ( ! mLocalBlockWorkerClientPoolInitialized ) { \n NetAddress localWorkerAddress = \n getWorkerAddress ( NetworkAddressUtils . getLocalHostName ( ClientContext . getConf ( ) ) ) ; \n SINGLE \n public enum BlockStoreContext { \n } else { \n mLocalBlockWorkerClientPool = new BlockWorkerClientPool ( localWorkerAddress ) ; \n } \n - sLocalBlockWorkerClientPoolInitialized = true ; \n + mLocalBlockWorkerClientPoolInitialized = true ; \n } \n } \n \n public enum BlockStoreContext { \n mLocalBlockWorkerClientPool . close ( ) ; \n } \n mBlockMasterClientPool = new BlockMasterClientPool ( ClientContext . getMasterAddress ( ) ) ; \n - BlockStoreContext . sLocalBlockWorkerClientPoolInitialized = false ; \n + mLocalBlockWorkerClientPoolInitialized = false ; \n } \n }", "msg_token": "Changed the variable to be instance variable"} {"diff": " public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport { \n private static final String ROUTER_ADDRESS = STRING0 ; \n \n @ test \n - SINGLE \n - SINGLE \n public void testClientInvocation ( ) throws MalformedURLException { \n Client client = new Client ( ROUTER_ADDRESS + STRING1 ) ; \n Greeter proxy = client . getProxy ( ) ; \n - \n + \n String resp ; \n resp = proxy . sayHi ( ) ; \n assertEquals ( STRING2 , STRING3 , resp ) ; \n - \n + \n resp = proxy . greetMe ( STRING4 ) ; \n assertEquals ( STRING2 , STRING5 , resp ) ; \n - \n + \n proxy . greetMeOneWay ( System . getProperty ( STRING6 ) ) ; \n \n try { \n public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport { \n } \n \n @ override \n - protected AbstractXmlApplicationContext createApplicationContext ( ) { \n - return new ClassPathXmlApplicationContext ( new String [ ] { STRING7 } ) ; \n + protected AbstractXmlApplicationContext createApplicationContext ( ) { \n + return new ClassPathXmlApplicationContext ( new String [ ] { STRING7 } ) ; \n } \n \n }", "msg_token": "Removed the comments of Ignore"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n final DisplayContent displayContent = getDisplayContentLocked ( displayId ) ; \n mDisplayContents . delete ( displayId ) ; \n WindowList windows = displayContent . getWindowList ( ) ; \n - for ( int i = windows . size ( ) - NUMBER0 ; i >= NUMBER1 ; -- i ) { \n - final WindowState win = windows . get ( i ) ; \n + while ( ! windows . isEmpty ( ) ) { \n + final WindowState win = windows . get ( windows . size ( ) - NUMBER0 ) ; \n removeWindowLocked ( win . mSession , win ) ; \n } \n mAnimator . removeDisplayLocked ( displayId ) ;", "msg_token": "Fix bug removing all windows that belong to a display"} {"diff": " public class DnsServiceCallServerListStrategiesTest { \n \n for ( ServiceCallServer server : servers ) { \n assertFalse ( server . getMetadata ( ) . isEmpty ( ) ) ; \n - assertNotNull ( server . getMetadata ( ) . get ( STRING0 ) ) ; \n - assertNotNull ( server . getMetadata ( ) . get ( STRING1 ) ) ; \n + assertNotNull ( server . getMetadata ( ) . get ( STRING2 ) ) ; \n + assertNotNull ( server . getMetadata ( ) . get ( STRING3 ) ) ; \n } \n } \n }", "msg_token": "Fix wrong test case assertion"} {"diff": " public class XmlEmmetConfigurable implements SearchableConfigurable , Disposable , \n public void actionPerformed ( ActionEvent e ) { \n boolean selected = myEnableEmmetJBCheckBox . isSelected ( ) ; \n myEnablePreviewJBCheckBox . setEnabled ( selected ) ; \n + myAddEditPointAtTheEndOfTemplateJBCheckBox . setEnabled ( selected ) ; \n myFiltersListPanel . setEnabled ( selected ) ; \n myEnableHrefAutodetectJBCheckBox . setEnabled ( selected ) ; \n for ( JBCheckBox checkBox : myFilterCheckboxes . values ( ) ) { \n public class XmlEmmetConfigurable implements SearchableConfigurable , Disposable , \n myEnablePreviewJBCheckBox . setSelected ( emmetOptions . isPreviewEnabled ( ) ) ; \n myEnableHrefAutodetectJBCheckBox . setEnabled ( emmetOptions . isEmmetEnabled ( ) ) ; \n myEnableHrefAutodetectJBCheckBox . setSelected ( emmetOptions . isHrefAutoDetectEnabled ( ) ) ; \n + myAddEditPointAtTheEndOfTemplateJBCheckBox . setEnabled ( emmetOptions . isEmmetEnabled ( ) ) ; \n myAddEditPointAtTheEndOfTemplateJBCheckBox . setSelected ( emmetOptions . isAddEditPointAtTheEndOfTemplate ( ) ) ; \n \n Set < String > enabledByDefault = emmetOptions . getFiltersEnabledByDefault ( ) ;", "msg_token": "disable edit point checkbox on disabling emmet support"} {"diff": " public class UnknownType extends LiquibaseDataType { \n || getName ( ) . equalsIgnoreCase ( STRING0 ) \n || getName ( ) . equalsIgnoreCase ( STRING1 ) \n || getName ( ) . equalsIgnoreCase ( STRING2 ) \n - || getName ( ) . equalsIgnoreCase ( STRING3 ) \n + || getName ( ) . equalsIgnoreCase ( STRING4 ) \n + || getName ( ) . equalsIgnoreCase ( STRING3 ) \n ) ) { \n parameters = new Object [ NUMBER0 ] ; \n }", "msg_token": "NTEXT takes no parameters"} {"diff": " public class ChangesListView extends Tree implements TypeSafeDataProvider , Advan \n SmartExpander . installOn ( this ) ; \n myCopyProvider = new TreeCopyProvider ( this ) ; \n new TreeLinkMouseListener ( new ChangesBrowserNodeRenderer ( myProject , false , false ) ) . install ( this ) ; \n - setCellRenderer ( new ChangesBrowserNodeRenderer ( myProject , isShowFlatten ( ) , true ) ) ; \n } \n \n public DefaultTreeModel getModel ( ) { \n public class ChangesListView extends Tree implements TypeSafeDataProvider , Advan \n \n storeState ( ) ; \n setModel ( model ) ; \n + setCellRenderer ( new ChangesBrowserNodeRenderer ( myProject , isShowFlatten ( ) , true ) ) ; \n expandPath ( new TreePath ( ( ( ChangesBrowserNode ) model . getRoot ( ) ) . getPath ( ) ) ) ; \n restoreState ( ) ; \n }", "msg_token": "revert incorrect part of changes view cosmetics"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SlidingTab extends ViewGroup { \n SINGLE \n @ override \n protected void dispatchDraw ( Canvas canvas ) { \n + int orientation = getResources ( ) . getConfiguration ( ) . orientation ; \n + if ( mOrientation == HORIZONTAL && orientation != Configuration . ORIENTATION_PORTRAIT \n + || mOrientation == VERTICAL && orientation != Configuration . ORIENTATION_LANDSCAPE ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return ; \n + } \n super . dispatchDraw ( canvas ) ; \n }", "msg_token": "Don t draw tabs if view is not in the correct orientation for the layout"} {"diff": " public class ChatView extends LinearLayout { \n \n @ override \n protected void onQueryComplete ( int token , Object cookie , Cursor c ) { \n + mExpectingDelivery = false ; \n + setDeliveryIcon ( ) ; \n Cursor cursor = new DeltaCursor ( c ) ; \n \n if ( Log . isLoggable ( ImApp . LOG_TAG , Log . DEBUG ) ) { \n public class ChatView extends LinearLayout { \n if ( mChatId != oldChatId ) { \n startQuery ( ) ; \n mComposeMessage . setText ( STRING0 ) ; \n - mExpectingDelivery = false ; \n mOtrChatSession = null ; \n }", "msg_token": "Fix delivery confirmation display"} {"diff": " public class WPPrefUtils { \n \n String [ ] entryStrings = new String [ languageCodes . length ] ; \n for ( int i = NUMBER0 ; i < languageCodes . length ; ++ i ) { \n + SINGLE \n entryStrings [ i ] = StringUtils . capitalize ( \n getLanguageString ( languageCodes [ i ] . toString ( ) , locale ) ) + STRING0 + languageCodes [ i ] ; \n } \n public class WPPrefUtils { \n String [ ] sortedValues = new String [ languageCodes . length ] ; \n \n for ( int i = NUMBER0 ; i < entryStrings . length ; ++ i ) { \n + SINGLE \n String [ ] split = entryStrings [ i ] . split ( STRING0 ) ; \n sortedEntries [ i ] = split [ NUMBER0 ] ; \n sortedValues [ i ] = split [ NUMBER1 ] ;", "msg_token": "Added comments to createSortedLanguageDisplayStrings method"} {"diff": " public class ServerTestUtils { \n \n public static StoreDefinition getStoreDef ( String storeName , \n int replicationFactor , \n - int rreads , \n int preads , \n - int rwrites , \n + int rreads , \n int pwrites , \n + int rwrites , \n String strategyType ) { \n SerializerDefinition serDef = new SerializerDefinition ( STRING0 ) ; \n return new StoreDefinition ( storeName , \n public class ServerTestUtils { \n RoutingTier . SERVER , \n strategyType , \n replicationFactor , \n - rreads , \n preads , \n - rwrites , \n + rreads , \n pwrites , \n + rwrites , \n NUMBER0 ) ; \n }", "msg_token": "Fix bug where getStoreDef was passing required preferred reads writes in the wrong order"} {"diff": " public class HTreeMap2Test { \n . make ( ) ; \n long time = System . currentTimeMillis ( ) ; \n long counter = NUMBER0 ; \n - try { \n while ( time + NUMBER1 > System . currentTimeMillis ( ) ) { \n m . put ( counter ++ , counter ++ ) ; \n } \n - } catch ( Throwable e ) { \n - Set others = new TreeSet ( ) ; \n - for ( Object key : m . keySet ( ) ) { \n - if ( others . contains ( key ) ) throw new InternalError ( STRING0 ) ; \n - others . add ( key ) ; \n - } \n - \n - } \n m . clear ( ) ; \n }", "msg_token": "Revert HTreeMap tests"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class EncryptionUtils { \n \n private static void isValidKey ( String key ) { \n Assert . hasText ( key , STRING0 ) ; \n - Validate . isTrue ( key . length ( ) >= NUMBER0 , STRING1 ) ; \n + Assert . isTrue ( key . length ( ) >= NUMBER0 , STRING1 ) ; \n } \n \n public static class EncryptionException extends AcegiSecurityException {", "msg_token": "Remove Commons Lang dependency"} {"diff": " public final class AuthenticationUtils { \n AuthType authType = conf . getEnum ( Constants . SECURITY_AUTHENTICATION_TYPE , AuthType . class ) ; \n switch ( authType ) { \n case NOSASL : \n - return new TFramedTransport . Factory ( ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ; \n + return new TFramedTransport . Factory ( ( int ) \n + conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ; \n case SIMPLE : SINGLE \n case CUSTOM : \n return PlainSaslUtils . getPlainServerTransportFactory ( authType , conf ) ; \n public final class AuthenticationUtils { \n conf . getInt ( Constants . SECURITY_AUTHENTICATION_SOCKET_TIMEOUT_MS ) ) ; \n switch ( authType ) { \n case NOSASL : \n - return new TFramedTransport ( tTransport , ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ; \n + return new TFramedTransport ( tTransport , \n + ( int ) conf . getBytes ( Constants . THRIFT_FRAME_SIZE_BYTES_MAX ) ) ; \n case SIMPLE : SINGLE \n case CUSTOM : \n String username = LoginUser . get ( conf ) . getName ( ) ;", "msg_token": "Fix code style"} {"diff": " public class ImplementationSymbolVisitor extends SymbolVisitor < ImplementationSym \n } \n return new FunctionExpression < > ( ( Scalar < ? > ) functionImplementation , argumentInputs ) ; \n } else { \n - throw new CrateException ( STRING0 ) ; \n + throw new IllegalArgumentException ( \n + String . format ( STRING1 , function ) ) ; \n } \n }", "msg_token": "throw more accurate exception if function implmentation is not found"} {"diff": " \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 package NAMESPACE ;", "msg_token": "adding license text"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n \n COMMENT \n COMMENT", "msg_token": "Cleand up imports"} {"diff": " public abstract class JCVideoPlayer extends FrameLayout implements View . OnClickL \n \n @ override \n public void onProgressChanged ( SeekBar seekBar , int progress , boolean fromUser ) { \n + if ( mCurrentState != CURRENT_STATE_PLAYING && \n + mCurrentState != CURRENT_STATE_PAUSE ) return ; \n if ( fromUser ) { \n int time = progress * getDuration ( ) / NUMBER0 ; \n JCMediaManager . instance ( ) . mediaPlayer . seekTo ( time ) ;", "msg_token": "can not seek progress when the state is not right"} {"diff": " public class IncrementalCompilerFactory { \n File privateCacheDir = new File ( cacheDir , cacheKey ) ; \n PersistentCache cache = cacheFactory . open ( privateCacheDir , STRING0 , CacheUsage . ON , null , Collections . < String , Object > emptyMap ( ) , FileLockManager . LockMode . Exclusive , null ) ; \n \n - PersistentIndexedCache < File , FileState > stateCache = createCache ( cache , STRING1 , File . class , new DefaultSerializer < FileState > ( ) ) ; \n + PersistentIndexedCache < File , FileState > stateCache = createCache ( cache , STRING1 , File . class , new DefaultSerializer < FileState > ( FileState . class . getClassLoader ( ) ) ) ; \n \n SINGLE \n PersistentIndexedCache < String , List < File > > listCache = createCache ( cache , STRING2 , String . class , new DefaultSerializer < List < File > > ( ) ) ;", "msg_token": "Provide classloader when constructing Serializer for custom class"} {"diff": " public final class BlockData { \n case BlockID . WOODEN_DOOR : \n case BlockID . IRON_DOOR : \n case BlockID . COCOA_PLANT : \n + case BlockID . TRIPWIRE_HOOK : \n int extra = data & ~ NUMBER0 ; \n int withoutFlags = data & NUMBER0 ; \n switch ( withoutFlags ) { \n public final class BlockData { \n case BlockID . WOODEN_DOOR : \n case BlockID . IRON_DOOR : \n case BlockID . COCOA_PLANT : \n + case BlockID . TRIPWIRE_HOOK : \n int extra = data & ~ NUMBER0 ; \n int withoutFlags = data & NUMBER0 ; \n switch ( withoutFlags ) { \n public final class BlockData { \n case BlockID . REDSTONE_REPEATER_OFF : \n case BlockID . REDSTONE_REPEATER_ON : \n case BlockID . COCOA_PLANT : \n + case BlockID . TRIPWIRE_HOOK : \n switch ( data & NUMBER0 ) { \n case NUMBER1 : \n case NUMBER2 :", "msg_token": "Added tripwire hook to flip rotate"} {"diff": " import NAMESPACE ; \n \n public class Requirements { \n \n + @ suppresswarnings ( STRING0 ) \n public static void check ( final Context context ) { \n SINGLE \n if ( Build . VERSION . SDK_INT != Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 \n public class Requirements { \n SINGLE \n try { \n if ( PrivacyService . getClient ( ) != null ) { \n - @ suppresswarnings ( STRING0 ) \n List < String > listError = ( List < String > ) PrivacyService . getClient ( ) . check ( ) ; \n if ( listError . size ( ) > NUMBER0 ) \n - sendSupportInfo ( TextUtils . join ( STRING1 , listError ) , context ) ; \n + sendSupportInfo ( TextUtils . join ( STRING2 , listError ) , context ) ; \n } \n } catch ( Throwable ex ) { \n sendSupportInfo ( ex . toString ( ) , context ) ;", "msg_token": "Formatting support info"} {"diff": " public abstract class RenderLivingEvent extends Event \n this . entity = entity ; \n this . renderer = renderer ; \n } \n + \n + @ cancelable \n + public static class Pre extends RenderLivingEvent \n + { \n + public Pre ( EntityLivingBase entity , RendererLivingEntity renderer ) { super ( entity , renderer ) ; } \n + } \n + public static class Post extends RenderLivingEvent \n + { \n + public Post ( EntityLivingBase entity , RendererLivingEntity renderer ) { super ( entity , renderer ) ; } \n + } \n \n public abstract static class Specials extends RenderLivingEvent \n {", "msg_token": "Add Pre and Post events for RenderLivingEvent"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n public class ShardStateActionTests extends ESTestCase { \n private static ThreadPool THREAD_POOL ;", "msg_token": "Remove unused imports in o e c a s ShardStateActionTests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PeopleFilterExposer extends BroadcastReceiver { \n User user = new User ( ) ; \n for ( users . moveToFirst ( ) ; ! users . isAfterLast ( ) ; users . moveToNext ( ) ) { \n user . readFromCursor ( users ) ; \n + if ( user . getValue ( User . REMOTE_ID ) == ActFmPreferenceService . userId ( ) ) \n + continue ; \n Filter currFilter = filterFromUserData ( user ) ; \n if ( currFilter != null ) \n items . add ( currFilter ) ;", "msg_token": "Don t show the currently logged in user in the peopel view"} {"diff": " public class ODatabaseRaw implements ODatabase { \n \n @ override \n public String toString ( ) { \n - return STRING0 + ( getStorage ( ) != null ? getStorage ( ) . getURL ( ) : STRING1 ) + STRING2 ; \n + final StringBuilder buffer = new StringBuilder ( ) ; \n + buffer . append ( STRING0 ) ; \n + buffer . append ( url != null ? url : STRING1 ) ; \n + buffer . append ( STRING3 ) ; \n + if ( getStorage ( ) != null ) { \n + buffer . append ( STRING4 ) ; \n + buffer . append ( getStorage ( ) . getUsers ( ) ) ; \n + buffer . append ( STRING5 ) ; \n + } \n + return buffer . toString ( ) ; \n } \n \n public Object get ( final ATTRIBUTES iAttribute ) {", "msg_token": "Improved database toString showing also the active users"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class AudioplayerActivity extends MediaplayerActivity { \n \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n + requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ; \n super . onCreate ( savedInstanceState ) ; \n detachedFragments = new Fragment [ NUM_CONTENT_FRAGMENTS ] ; \n } \n public class AudioplayerActivity extends MediaplayerActivity { \n \n @ override \n protected void postStatusMsg ( int resId ) { \n - \n + setSupportProgressBarIndeterminateVisibility ( resId == R . string . player_preparing_msg \n + || resId == R . string . player_seeking_msg \n + || resId == R . string . player_buffering_msg ) ; \n } \n \n @ override \n protected void clearStatusMsg ( ) { \n - \n + setSupportProgressBarIndeterminateVisibility ( false ) ; \n } \n \n COMMENT", "msg_token": "Added status indicator to audioplayer"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class SimpleTest extends LanguageTestSupport { \n \n assertExpression ( STRING0 , NUMBER0 ) ; \n assertExpression ( STRING1 , STRING2 ) ; \n + \n + assertExpression ( STRING3 , NUMBER1 ) ; \n } \n \n public void testBodyOGNLList ( ) throws Exception {", "msg_token": "Add a new assertion condition to test size of the array"} {"diff": " public class DownloadManager { \n Downloads . COLUMN_LAST_MODIFICATION , \n Downloads . COLUMN_DESTINATION , \n Downloads . Impl . COLUMN_FILE_NAME_HINT , \n + Downloads . Impl . _DATA , \n } ; \n \n private static final Set < String > LONG_COLUMNS = new HashSet < String > ( \n public class DownloadManager { \n return getUnderlyingString ( Downloads . Impl . COLUMN_FILE_NAME_HINT ) ; \n } \n \n + if ( destinationType == Downloads . Impl . DESTINATION_EXTERNAL ) { \n + SINGLE \n + return Uri . fromFile ( new File ( getUnderlyingString ( Downloads . Impl . _DATA ) ) ) . toString ( ) ; \n + } \n + \n SINGLE \n long downloadId = getUnderlyingLong ( Downloads . Impl . _ID ) ; \n return ContentUris . withAppendedId ( mBaseUri , downloadId ) . toString ( ) ;", "msg_token": "Have DownloadManager pass file URIs for legacy external downloads"} {"diff": " public class DynamicView { \n for ( int i = NUMBER0 ; i < count ; i ++ ) { \n COMMENT \n View dynamicChildView = DynamicView . createViewInternal ( context , jViews . getJSONObject ( i ) , parent , ids ) ; \n - views . add ( dynamicChildView ) ; \n - viewGroup . addView ( dynamicChildView ) ; \n + if ( dynamicChildView != null ) { \n + views . add ( dynamicChildView ) ; \n + viewGroup . addView ( dynamicChildView ) ; \n + } \n } \n } \n COMMENT", "msg_token": "fix potential null exception"} {"diff": " public class HazelcastParametersRunnerFactory implements ParametersRunnerFactory \n return false ; \n } \n \n - private HazelcastSerialClassRunner getSerialClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName ) \n + SINGLE \n + protected HazelcastSerialClassRunner getSerialClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName ) \n throws InitializationError { \n return new HazelcastSerialClassRunner ( testClass , parameters , testName ) ; \n } \n \n - private HazelcastParallelClassRunner getParallelClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName ) \n + SINGLE \n + protected HazelcastParallelClassRunner getParallelClassRunner ( Class < ? > testClass , Object [ ] parameters , String testName ) \n throws InitializationError { \n return new HazelcastParallelClassRunner ( testClass , parameters , testName ) ; \n }", "msg_token": "Fixed HazelcastParametersRunnerFactory for Hazelcast Enterprise"} {"diff": " public class ChannelManager \n SINGLE \n SINGLE \n LOGGER . trace ( STRING0 \n - + channelName ) ; \n + + channelName + STRING1 ) ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added closing apostrophe to trace log message"} {"diff": " public class LwjglGraphics extends BaseLwjglSubsystem { \n lwjglDisplay . setFullscreen ( config . isFullscreen ( ) , false ) ; \n \n Display . setLocation ( config . getWindowPosX ( ) , config . getWindowPosY ( ) ) ; \n - Display . setTitle ( STRING0 + STRING1 + STRING2 ) ; \n + Display . setTitle ( STRING0 + STRING1 + STRING3 ) ; \n try { \n \n String root = STRING4 ; \n public final class MainWindow extends JFrame implements ActionListener , WindowLi \n verticalSplitPane . setResizeWeight ( FLOAT0 ) ; \n getContentPane ( ) . add ( verticalSplitPane , BorderLayout . CENTER ) ; \n \n - setTitle ( STRING5 + STRING1 + STRING2 ) ; \n + setTitle ( STRING5 + STRING1 + STRING3 ) ; \n \n mainMenuBar = new JMenuBar ( ) ; \n setJMenuBar ( mainMenuBar ) ;", "msg_token": "Adjust more Pre Alpha Alpha"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ReflectionFactoryImpl extends ReflectionFactory { \n \n @ override \n public KFunction function ( FunctionReference f ) { \n - return new KFunctionFromReferenceImpl ( f ) ; \n + try { \n + return new KFunctionFromReferenceImpl ( f ) ; \n + } \n + catch ( KotlinReflectionNotSupportedError e ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return f ; \n + } \n } \n \n SINGLE", "msg_token": "Make function references compiled with old compiler work with new runtime"} {"diff": " public class MavenModuleNameMapper { \n \n for ( NameItem name : names ) { \n if ( name . module != null ) { \n - existingNames . add ( name . getResultName ( ) ) ; \n + boolean wasAdded = existingNames . add ( name . getResultName ( ) ) ; \n + assert wasAdded : name . getResultName ( ) ; \n } \n }", "msg_token": "Add additional diagnostic"} {"diff": " public class AceEditor implements DocDisplay , \n \n private void syncWrapLimit ( ) \n { \n + SINGLE \n + if ( fileType_ == null ) \n + return ; \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "fix view file pane null ref"} {"diff": " public class Conversation extends AbstractEntity implements Blockable { \n builder . insert ( NUMBER0 , STRING0 ) ; \n builder . insert ( NUMBER1 , STRING0 ) ; \n this . otrFingerprint = builder . toString ( ) ; \n - } catch ( final OtrCryptoException ignored ) { \n + } catch ( final OtrCryptoException | UnsupportedOperationException ignored ) { \n \n } \n }", "msg_token": "catch another exception in fingerprint generation"} {"diff": " public class ORecordLazyList extends ORecordTrackedList { \n if ( converted || ! convertToRecord ) \n return ; \n \n - if ( sourceRecord == null || sourceRecord . getDatabase ( ) == null ) \n + if ( database == null ) \n return ; \n \n final Object o = super . get ( iIndex ) ; \n public class ORecordLazySet extends ORecordTrackedSet { \n if ( converted || ! convertToRecord ) \n return iElement ; \n \n + if ( database == null ) \n + return iElement ; \n + \n if ( iElement != null && iElement instanceof ORecordId ) { \n final ORecordInternal < ? > record = ORecordFactory . newInstance ( recordType ) ; \n final ORecordId rid = ( ORecordId ) iElement ;", "msg_token": "Fixed issue with lazy list and graphs"} {"diff": " public class EntityRobot extends EntityRobotBase implements \n laser . isVisible = false ; \n entityCollisionReduction = FLOAT0 ; \n \n - width = FLOAT1 ; \n - height = FLOAT1 ; \n + width = FLOAT2 ; \n + height = FLOAT2 ; \n } \n \n @ override \n public class EntityRobot extends EntityRobotBase implements \n \n super . setDead ( ) ; \n } \n + \n + @ override \n + public boolean canBePushed ( ) { \n + return false ; \n + } \n + \n + @ override \n + protected void collideWithEntity ( Entity par1Entity ) { \n + \n + } \n + \n + @ override \n + public void applyEntityCollision ( Entity par1Entity ) { \n + \n + } \n }", "msg_token": "fixed robot size deactivate robot collisions"} {"diff": " public final class BridgeContext extends Context { \n new IdentityHashMap < Object , Map < String , String > > ( ) ; \n \n SINGLE \n + @ nullable \n private Map < Integer , StyleResourceValue > mDynamicIdToStyleMap ; \n private Map < StyleResourceValue , Integer > mStyleToDynamicIdMap ; \n private int mDynamicIdGenerator = NUMBER0 ; SINGLE \n public final class BridgeContext extends Context { \n } \n } \n } else if ( defStyleRes != NUMBER1 ) { \n - StyleResourceValue item = mDynamicIdToStyleMap . get ( defStyleRes ) ; \n + StyleResourceValue item = getStyleByDynamicId ( defStyleRes ) ; \n if ( item != null ) { \n defStyleValues = item ; \n } else {", "msg_token": "Fix NPE in BridgeContext obtainStyledAttributes DO NOT MERGE"} {"diff": " public class JingleConnection { \n this . cancel ( ) ; \n return ; \n } else { \n - this . file . setKey ( conversation . getSymmetricKey ( ) ) ; \n + this . file . setKey ( key ) ; \n } \n } \n this . file . setExpectedSize ( size ) ;", "msg_token": "avoid race condition for otr key in jingle"} {"diff": " public class CouchdbRiver extends AbstractRiverComponent implements River { \n } \n } \n \n - String file = STRING0 + couchDb + STRING1 ; \n + String file = STRING0 + couchDb + STRING2 ; \n if ( couchFilter != null ) { \n file = file + STRING3 + couchFilter ; \n }", "msg_token": "remove double in the url though seems like couchdb does not mind"} {"diff": " public abstract class ContentResolver { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setIsSyncable ( Account account , String authority , int syncable ) { \n try {", "msg_token": "fix build breakage"} {"diff": " public class PeerGroup extends AbstractIdleService { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix s connectionTimeoutMillis connectTimeoutMillis in a javadoc"} {"diff": " public class PShader { \n parent = null ; \n pgMain = null ; \n pgl = null ; \n - context = pgl . createEmptyContext ( ) ; \n + context = - NUMBER0 ; \n \n this . vertexURL = null ; \n this . fragmentURL = null ;", "msg_token": "fixed null pointer exception in PShader"} {"diff": " public class TransitBoardAlight extends PatternEdge implements OnBoardForwardEdg \n \n if ( options . isReverseOptimizeOnTheFly ( ) ) { \n int thisDeparture = state0 . getTripTimes ( ) . getDepartureTime ( stopIndex ) ; \n - int numTrips = getPattern ( ) . getNumTrips ( ) ; \n + int numTrips = getPattern ( ) . getNumScheduledTrips ( ) ; \n int nextDeparture ; \n \n s1 . setLastNextArrivalDelta ( Integer . MAX_VALUE ) ;", "msg_token": "rename method for clarity"} {"diff": " public class CompileContext extends UserDataHolderBase implements MessageHandler \n myDelegateMessageHandler . processMessage ( msg ) ; \n } \n \n + public boolean errorsDetected ( ) { \n + return myErrorsFound ; \n + } \n + \n public void processFilesToRecompile ( ModuleChunk chunk , FileProcessor processor ) throws IOException { \n for ( Module module : chunk . getModules ( ) ) { \n myFsState . processFilesToRecompile ( this , module , processor ) ; \n public abstract class ModuleLevelBuilder extends Builder { \n COMMENT \n COMMENT \n public final boolean updateMappings ( CompileContext context , final Mappings delta , ModuleChunk chunk , Collection < File > filesToCompile , Collection < File > successfullyCompiled ) throws IOException { \n + if ( context . errorsDetected ( ) ) { \n + return false ; \n + } \n try { \n boolean additionalPassRequired = false ;", "msg_token": "do not differentiate integrate files for the chunk where compilation errors occurred"} {"diff": " public class MapAggregation \n if ( state . get ( ) != null && otherState . get ( ) != null ) { \n Block keys = otherState . get ( ) . getKeys ( ) ; \n Block values = otherState . get ( ) . getValues ( ) ; \n + KeyValuePairs pairs = state . get ( ) ; \n + long startSize = pairs . estimatedInMemorySize ( ) ; \n for ( int i = NUMBER0 ; i < keys . getPositionCount ( ) ; i ++ ) { \n - state . get ( ) . add ( keys , values , i ) ; \n + pairs . add ( keys , values , i ) ; \n } \n + state . addMemoryUsage ( pairs . estimatedInMemorySize ( ) - startSize ) ; \n } \n else if ( state . get ( ) == null ) { \n state . set ( otherState . get ( ) ) ;", "msg_token": "Fix memory usage accounting in MapAggregation"} {"diff": " public class ValueBuilder < E extends Exchange > implements Expression < E > { \n return expression ; \n } \n \n + @ override \n + public String toString ( ) { \n + return expression . toString ( ) ; \n + } \n + \n SINGLE \n SINGLE", "msg_token": "fixed a failing test case that I broke bad James for breaking it in the first place"} {"diff": " public class BeeLine implements Closeable { \n \n int code = NUMBER0 ; \n if ( ! commands . isEmpty ( ) ) { \n - SINGLE \n - getOpts ( ) . setColor ( false ) ; \n - getOpts ( ) . setHeaderInterval ( - NUMBER1 ) ; \n - \n for ( Iterator < String > i = commands . iterator ( ) ; i . hasNext ( ) ; ) { \n String command = i . next ( ) . toString ( ) ; \n debug ( loc ( STRING0 , command ) ) ;", "msg_token": "Beeline does not honor headerInterval and color when executing with e Naveen via Xuefu"} {"diff": " import NAMESPACE ; \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 COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix comment to make it clear that target cancel has to be called when exception is thrown"} {"diff": " public class KeyguardUpdateMonitor implements TrustManager . TrustListener { \n } \n \n private boolean isTrustDisabled ( int userId ) { \n - final DevicePolicyManager dpm = \n - ( DevicePolicyManager ) mContext . getSystemService ( Context . DEVICE_POLICY_SERVICE ) ; \n - if ( dpm != null ) { \n - SINGLE \n - final boolean disabledByGlobalActions = false ; \n - final boolean disabledBySettings = false ; \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - final boolean disabledBySimPin = isSimPinSecure ( ) ; \n - \n - final boolean disabledByDpm = ( dpm . getKeyguardDisabledFeatures ( null , userId ) \n - & DevicePolicyManager . KEYGUARD_DISABLE_TRUST_AGENTS ) != NUMBER0 ; \n - return disabledByDpm || disabledByGlobalActions || disabledBySettings \n - || disabledBySimPin ; \n - } \n - return false ; \n + SINGLE \n + SINGLE \n + SINGLE \n + final boolean disabledBySimPin = isSimPinSecure ( ) ; \n + return disabledBySimPin ; \n } \n \n private boolean isFingerprintDisabled ( int userId ) {", "msg_token": "Remove leftover code causing trust agent issues"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class CommitPanel extends JBPanel { \n } \n \n private void customizeLinks ( ) { \n - EditorKit editorKit = getEditorKit ( ) ; \n - if ( editorKit instanceof HTMLEditorKit ) { \n - StyleSheet styleSheet = ( ( HTMLEditorKit ) editorKit ) . getStyleSheet ( ) ; \n + Document document = getDocument ( ) ; \n + if ( document instanceof HTMLDocument ) { \n + StyleSheet styleSheet = ( ( HTMLDocument ) document ) . getStyleSheet ( ) ; \n String linkColor = STRING0 + ColorUtil . toHex ( UI . getColor ( STRING1 ) ) ; \n styleSheet . addRule ( STRING2 + linkColor + STRING3 ) ; \n }", "msg_token": "Don t apply the stylesheet to the whole IDE just to the commit details"} {"diff": " public class RenameJavaMethodProcessor extends RenameJavaMemberProcessor { \n else { \n ref = element . getReference ( ) ; \n } \n + if ( ref instanceof PsiImportStaticReferenceElement && ( ( PsiImportStaticReferenceElement ) ref ) . multiResolve ( false ) . length > NUMBER0 ) { \n + continue ; \n + } \n if ( ref != null ) { \n PsiElement e = processRef ( ref , newName ) ; \n if ( e != null ) {", "msg_token": "leave static imports on overloaded methods untouched"} {"diff": " public class TachyonFile implements Comparable < TachyonFile > { \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public TachyonByteBuffer readByteBuffer ( int blockIndex ) throws IOException { \n if ( ! isComplete ( ) ) { \n return null ;", "msg_token": "Deprecate readByteBuffer in TachyonFile"} {"diff": " public class MvcModuleStructureUtil { \n return LocalFileSystem . getInstance ( ) . findFileByIoFile ( file ) ; \n } \n } \n + \n + public static boolean isEnabledStructureUpdate ( ) { \n + return ! Boolean . parseBoolean ( System . getProperty ( STRING0 ) ) ; \n + } \n }", "msg_token": "manual mvc structure update switch community"} {"diff": " public abstract class Editor extends JFrame implements RunnerListener { \n SINGLE \n SINGLE \n \n - System . out . println ( e . context ( ) ) ; \n + SINGLE \n boolean openedFile = false ; \n if ( ( ( Path ) e . context ( ) ) . getFileName ( ) . toString ( ) . startsWith ( STRING0 ) ) { \n openedFile = true ; \n } \n if ( ! openedFile ) { \n for ( SketchCode sc : sketch . getCode ( ) ) { \n - System . err . println ( STRING1 + sc . getFileName ( ) + STRING2 + e . context ( ) + STRING3 ) ; \n + SINGLE \n SINGLE \n if ( sc . getFileName ( ) . equals ( ( ( Path ) e . context ( ) ) . getFileName ( ) . toString ( ) ) ) { \n openedFile = true ;", "msg_token": "Removed print statements"} {"diff": " public class VirtualFilePointerContainerImpl extends TraceableDisposable impleme \n assert ! myDisposed ; \n dropCaches ( ) ; \n \n - List < VirtualFilePointer > thatList = ( ( VirtualFilePointerContainerImpl ) that ) . myList ; \n - for ( final VirtualFilePointer pointer : thatList ) { \n + for ( final VirtualFilePointer pointer : that . getList ( ) ) { \n myList . add ( duplicate ( pointer ) ) ; \n } \n }", "msg_token": "allow other VFPC implementations requested by UpSource"} {"diff": " public class ParticleEmitter { \n } \n \n public void update ( float delta ) { \n - accumulator += Math . min ( delta * NUMBER0 , NUMBER1 ) ; \n + accumulator += delta * NUMBER0 ; \n if ( accumulator < NUMBER2 ) return ; \n int deltaMillis = ( int ) accumulator ; \n accumulator -= deltaMillis ; \n public class ParticleEmitter { \n COMMENT \n COMMENT \n public void draw ( Batch batch , float delta ) { \n - accumulator += Math . min ( delta * NUMBER0 , NUMBER1 ) ; \n + accumulator += delta * NUMBER0 ; \n if ( accumulator < NUMBER2 ) { \n draw ( batch ) ; \n return ;", "msg_token": "Adding flexibility to ParticleEffects"} {"diff": " public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n SINGLE \n Set < Integer > selections = getSelections ( ) ; \n while ( selections . size ( ) > NUMBER0 ) { \n - RelativeInfo relativeInfo = getRelativePosition ( selections . iterator ( ) . next ( ) ) ; \n + Iterator < Integer > iterator = selections . iterator ( ) ; \n + RelativeInfo relativeInfo = getRelativePosition ( iterator . next ( ) ) ; \n if ( relativeInfo . adapter instanceof IItemAdapter ) { \n deletedItems . add ( ( Item ) relativeInfo . adapter . getAdapterItem ( relativeInfo . relativePosition ) ) ; \n ( ( IItemAdapter ) relativeInfo . adapter ) . remove ( relativeInfo . relativePosition ) ; \n + } else { \n + SINGLE \n + iterator . remove ( ) ; \n } \n selections = getSelections ( ) ; \n }", "msg_token": "make sure we don t run into an endless loop if an item can t be found anymore"} {"diff": " class FileDownloadMgr { \n break ; \n } \n \n - if ( checkReuse ( downloadId , model ) ) { \n - break ; \n - } \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n needStart = true ; \n \n } while ( false ) ;", "msg_token": "In the case of BaseDownloadTask setForceReDownload true and the task has already downloaded will trigger warn callback"} {"diff": " LazilyPersistentVector ( IPersistentMap meta , Object [ ] array , PersistentVector v ) { \n } \n \n public Object [ ] toArray ( ) { \n - return array ; \n + return array . clone ( ) ; \n } \n \n public Object nth ( int i ) {", "msg_token": "fixed lpv toArray patch from Chouser"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class CompoundProcessor implements Processor { \n + public class CompoundProcessor implements Processor { \n static final String ON_FAILURE_MESSAGE_FIELD = STRING0 ; \n static final String ON_FAILURE_PROCESSOR_FIELD = STRING1 ;", "msg_token": "remove final keyword"} {"diff": " public class FileUtils \n } \n catch ( Exception e1 ) \n { \n - logger . debug ( STRING0 , e ) ; \n + logger . debug ( STRING0 , e1 ) ; \n } \n }", "msg_token": "Fixes a misused variable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ClassLanguage extends AbstractProgrammingLanguage { \n public class ClassLanguage extends AbstractProgrammingLanguage { \n \n protected void prepareScenario ( ) throws Throwable { \n clearHooksAndStepDefinitions ( ) ; \n + \n + objectFactory . addClass ( DefaultJavaTransforms . class ) ; \n objectFactory . createObjects ( ) ; \n + \n for ( ClassAnalyzer analyzer : analyzers ) { \n - analyzer . addDefaultTransforms ( objectFactory , this ) ; \n + analyzer . addDefaultTransforms ( this , objectFactory ) ; \n for ( Class < ? > clazz : classes ) { \n analyzer . populateStepDefinitionsAndHooksFor ( clazz , objectFactory , this ) ; \n }", "msg_token": "Added a hack to add DefaultJavaTransforms to PicoContainer"} {"diff": " public class StorageService extends NotificationBroadcasterSupport implements IE \n \n public boolean isRPCServerRunning ( ) \n { \n - if ( daemon == null ) \n + if ( ( daemon == null ) || ( daemon . thriftServer == null ) ) \n { \n return false ; \n } \n public class StorageService extends NotificationBroadcasterSupport implements IE \n \n public boolean isNativeTransportRunning ( ) \n { \n - if ( daemon == null ) \n + if ( ( daemon == null ) || ( daemon . nativeServer == null ) ) \n { \n return false ; \n }", "msg_token": "Fix NPE in nodetool on booting instances"} {"diff": " public final class InputMethodManager { \n final boolean isImmediate = ( mCursorAnchorInfoMonitorMode & \n CursorAnchorInfoRequest . FLAG_CURSOR_ANCHOR_INFO_IMMEDIATE ) != NUMBER0 ; \n if ( ! isImmediate && Objects . equals ( mCursorAnchorInfo , cursorAnchorInfo ) ) { \n - Log . w ( TAG , STRING0 + cursorAnchorInfo ) ; \n + SINGLE \n + SINGLE \n + if ( DEBUG ) { \n + Log . w ( TAG , STRING0 \n + + cursorAnchorInfo ) ; \n + } \n return ; \n } \n if ( DEBUG ) Log . v ( TAG , STRING1 + cursorAnchorInfo ) ;", "msg_token": "Suppress warnings of redundant calls of updateCursorAnchorInfo"} {"diff": " public class LwjglRenderingProcess { \n \n takeScreenshot = false ; \n overwriteRtWidth = NUMBER0 ; \n - overwriteRtWidth = NUMBER0 ; \n + overwriteRtHeight = NUMBER0 ; \n \n createOrUpdateFullscreenFbos ( ) ; \n } \n public class LwjglRenderingProcess { \n fboLookup . put ( title , fbo2 ) ; \n fboLookup . put ( title + STRING0 , fbo1 ) ; \n } \n - \n } \n +", "msg_token": "to take a screenshot the game video resolution is temporarily lowered or increased to match screenshot size"} {"diff": " public class HiveQueryTest extends HiveTest { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 ) ; \n + + STRING4 ) ; \n Results results = query ( STRING5 ) ; \n assertEquals ( NUMBER0 , results . size ( ) ) ;", "msg_token": "Don t use eq operator in tests since it s not available in older server versions"} {"diff": " public class ApnsConnectionTest { \n \n assertArrayEquals ( msg1 . marshall ( ) , server . received . toByteArray ( ) ) ; \n } \n - \n - @ test ( timeout = NUMBER0 ) \n - @ ignore \n - public void sendOneMina ( ) throws InterruptedException { \n - server . stopAt ( msg1 . length ( ) ) ; \n - \n - @ suppresswarnings ( STRING0 ) \n - ApnsService service = \n - APNS . newService ( ) . withCert ( clientCertPath ( ) , CLIENT_PASSWD ) \n - . withGatewayDestination ( TEST_HOST , TEST_GATEWAY_PORT ) \n - . asNonBlocking ( ) \n - . build ( ) ; \n - \n - service . push ( msg1 ) ; \n - server . messages . acquire ( ) ; \n - \n - assertArrayEquals ( msg1 . marshall ( ) , server . received . toByteArray ( ) ) ; \n - } \n }", "msg_token": "remove nonblocking test"} {"diff": " public abstract class PluginComponentFactory \n if ( p == null ) \n { \n p = getPluginInstance ( ) ; \n + pluginInstances . put ( parent , p ) ; \n } \n \n return p ;", "msg_token": "Fixes caching plugin components reported by Marin Dzhigarov"} {"diff": " public final class AudioTrack { \n SINGLE \n SINGLE \n long bufferStartTime = presentationTimeUs - framesToDurationUs ( bytesToFrames ( size ) ) ; \n - if ( startMediaTimeUs == START_NOT_SET ) { \n + if ( startMediaTimeState == START_NOT_SET ) { \n startMediaTimeUs = Math . max ( NUMBER0 , bufferStartTime ) ; \n startMediaTimeState = START_IN_SYNC ; \n } else { \n public final class AudioTrack { \n if ( isInitialized ( ) ) { \n submittedBytes = NUMBER0 ; \n temporaryBufferSize = NUMBER0 ; \n - startMediaTimeUs = START_NOT_SET ; \n + startMediaTimeState = START_NOT_SET ; \n latencyUs = NUMBER0 ; \n resetSyncParams ( ) ; \n int playState = audioTrack . getPlayState ( ) ; \n public final class AudioTrack { \n \n COMMENT \n private boolean hasCurrentPositionUs ( ) { \n - return isInitialized ( ) && startMediaTimeUs != START_NOT_SET ; \n + return isInitialized ( ) && startMediaTimeState != START_NOT_SET ; \n } \n \n COMMENT", "msg_token": "Fix AudioTrack typos"} {"diff": " public class RoundBasedProfileRouter { \n SINGLE \n SINGLE \n \n + SINGLE \n + SINGLE \n Multimap < TransitStop , ProfileState > touchedStops ; \n Map < TransitStop , ProfileState > singleTouchedStops ; \n \n public class RoundBasedProfileRouter { \n } \n \n DESTSTOPS: for ( int j = i + NUMBER0 ; j < pattern . stopVertices . length ; j ++ ) { \n - SINGLE \n + SINGLE \n int minRideTime = Integer . MAX_VALUE ; \n int maxRideTime = Integer . MIN_VALUE ; \n \n public class RoundBasedProfileRouter { \n SINGLE \n continue DESTSTOPS ; \n \n + if ( minRideTime < NUMBER1 || maxRideTime < NUMBER1 ) { \n + LOG . error ( STRING0 , \n + pattern , pattern . stopVertices [ i ] . getStop ( ) , pattern . stopVertices [ j ] . getStop ( ) ) ; \n + continue DESTSTOPS ; \n + } \n + \n SINGLE \n SINGLE", "msg_token": "add check for trips that run backwards in round based profile router"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MessageParser { \n String body = packet . getBody ( ) ; \n if ( ! conversation . hasValidOtrSession ( ) ) { \n conversation . startOtrSession ( service . getApplicationContext ( ) , fromParts [ NUMBER0 ] ) ; \n + } else { \n + if ( body . startsWith ( STRING0 ) ) { \n + Log . d ( STRING1 , STRING2 ) ; \n + try { \n + conversation . getOtrSession ( ) . endSession ( ) ; \n + } catch ( OtrException e ) { \n + Log . d ( STRING1 , STRING3 ) ; \n + } \n + Log . d ( STRING1 , STRING4 + fromParts [ NUMBER0 ] ) ; \n + conversation . startOtrSession ( service . getApplicationContext ( ) , fromParts [ NUMBER0 ] ) ; \n + } \n } \n try { \n Session otrSession = conversation . getOtrSession ( ) ;", "msg_token": "fixed otr bug"} {"diff": " public class ProjectFileIndexImpl extends FileIndexBase implements ProjectFileIn \n \n @ override \n public boolean isInLibrarySource ( @ notnull VirtualFile fileOrDir ) { \n - return getInfoForFileOrDirectory ( fileOrDir ) . isInLibrarySource ( ) ; \n + DirectoryInfo info = getInfoForFileOrDirectory ( fileOrDir ) ; \n + return info . isInProject ( ) && info . isInLibrarySource ( ) ; \n } \n \n SINGLE \n public boolean isInLibrary ( @ notnull VirtualFile fileOrDir ) { \n DirectoryInfo info = getInfoForFileOrDirectory ( fileOrDir ) ; \n - return info . isInProject ( ) && info . hasLibraryClassRoot ( ) || info . isInLibrarySource ( ) ; \n + return info . isInProject ( ) && ( info . hasLibraryClassRoot ( ) || info . isInLibrarySource ( ) ) ; \n } \n \n @ override", "msg_token": "added isInProject check to isInLibrarySource method for consistency currently it shouldn t change behavior"} {"diff": " public class PrivacyService { \n alertDialog . show ( ) ; \n holder . dialog = alertDialog ; \n \n - SINGLE \n - SINGLE \n - if ( Build . VERSION . SDK_INT >= NUMBER0 ) \n - alertDialog . getWindow ( ) . getDecorView ( ) \n - . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_FULLSCREEN ) ; \n - \n SINGLE \n final ProgressBar mProgress = ( ProgressBar ) alertDialog \n . findViewById ( R . id . pbProgress ) ;", "msg_token": "Let status bar alone"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import"} {"diff": " public abstract class Box2DTest implements RenderListener , InputListener \n public void render ( Application app ) \n { \n SINGLE \n - world . step ( NUMBER0 / FLOAT0 , NUMBER1 , NUMBER2 ) ; \n + world . step ( app . getGraphics ( ) . getDeltaTime ( ) , NUMBER1 , NUMBER2 ) ; \n \n SINGLE \n GL10 gl = app . getGraphics ( ) . getGL10 ( ) ;", "msg_token": "fixed bug in Box2DTest used fixed time step stupid me"} {"diff": " public class StreetVertexIndexServiceImpl implements StreetVertexIndexService { \n } \n List < String > uniqueNames = new ArrayList < String > ( uniqueNameSet ) ; \n \n - ResourceBundle resources = ResourceBundle . getBundle ( STRING0 , locale ) ; \n - \n - ResourceBundle resources_names = ResourceBundle . getBundle ( STRING1 , locale ) ; \n String fmt = ResourceBundleSingleton . INSTANCE . localize ( STRING2 , locale ) ; \n if ( uniqueNames . size ( ) > NUMBER0 ) { \n calculatedName = String . format ( fmt , uniqueNames . get ( NUMBER1 ) ,", "msg_token": "Removed unused resources from StreetVertexIndexServiceImpl"} {"diff": " public class HttpRequest { \n COMMENT \n public HttpRequest useProxy ( final String proxyHost , final int proxyPort ) { \n if ( connection != null ) \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n + \n this . httpProxyHost = proxyHost ; \n this . httpProxyPort = proxyPort ; \n return this ;", "msg_token": "Tweak exception message text"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - class IOHelper { \n + final class IOHelper { \n \n private IOHelper ( ) { \n }", "msg_token": "Fixed a CS error of camel apt"} {"diff": " public class AuthenticationManagerBeanDefinitionParserTests { \n setContext ( CONTEXT , STRING0 ) ; \n AuthListener listener = new AuthListener ( ) ; \n appContext . addApplicationListener ( listener ) ; \n - appContext . refresh ( ) ; \n \n ProviderManager pm = ( ProviderManager ) appContext . getBeansOfType ( ProviderManager . class ) . values ( ) . toArray ( ) [ NUMBER0 ] ; \n Object eventPublisher = FieldUtils . getFieldValue ( pm , STRING1 ) ;", "msg_token": "authentication manager does not register default event handler DefaultAuthenticationEventPublisher"} {"diff": " public class ForgeModContainer extends DummyModContainer implements WorldAccessC \n MinecraftForge . EVENT_BUS . register ( MinecraftForge . INTERNAL_HANDLER ) ; \n ForgeChunkManager . captureConfig ( evt . getModConfigurationDirectory ( ) ) ; \n FMLCommonHandler . instance ( ) . bus ( ) . register ( this ) ; \n + \n + if ( ! ForgeModContainer . disableVersionCheck ) \n + { \n + ForgeVersion . startVersionCheck ( ) ; \n + } \n } \n \n @ subscribe \n public class MinecraftForge \n \n OreDictionary . getOreName ( NUMBER0 ) ; \n \n - if ( ! ForgeModContainer . disableVersionCheck ) \n - { \n - ForgeVersion . startVersionCheck ( ) ; \n - } \n - \n SINGLE \n new CrashReport ( STRING0 , new Exception ( STRING1 ) ) ;", "msg_token": "Moving the start of the update thread to the pre init of the forge mod container"} {"diff": " public class BeanELResolver extends ELResolver { \n } \n } \n } \n + Object result = null ; \n try { \n - return matchingMethod . invoke ( base , parameters ) ; \n + result = matchingMethod . invoke ( base , parameters ) ; \n } catch ( IllegalArgumentException e ) { \n throw new ELException ( e ) ; \n } catch ( IllegalAccessException e ) { \n public class BeanELResolver extends ELResolver { \n throw new ELException ( e . getCause ( ) ) ; \n } \n \n + context . setPropertyResolved ( true ) ; \n + return result ; \n } \n \n }", "msg_token": "If the method is found mark the property as resolved"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - public class DefaultIdeaLibraryDependency implements IdeaLibraryDependency { \n + public class DefaultIdeaLibraryDependency implements IdeaLibraryDependency , Serializable { \n \n private File file ; \n private File source ; \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n - public class DefaultIdeaModuleDependency implements IdeaModuleDependency { \n + public class DefaultIdeaModuleDependency implements IdeaModuleDependency , Serializable { \n \n private String scope ; \n private String dependencyModuleName ;", "msg_token": "ToolingAPI for IDEA Fixed issue with some implementation classes not being serializable exposed by the idea sample test"} {"diff": " public abstract class AbstractReplicatedMap < K , V > \n if ( this . rpcChannel != null ) { \n this . rpcChannel . breakdown ( ) ; \n } \n - try { broadcast ( MapMessage . MSG_STOP , false ) ; } catch ( Exception ignore ) { } \n - SINGLE \n if ( this . channel != null ) { \n + try { broadcast ( MapMessage . MSG_STOP , false ) ; } catch ( Exception ignore ) { } \n + SINGLE \n this . channel . removeChannelListener ( this ) ; \n this . channel . removeMembershipListener ( this ) ; \n }", "msg_token": "Fix potential NPE in AbstractReplicatedMap breakdown"} {"diff": " import NAMESPACE ; \n \n public class ConvertContextFactory { \n public static ConvertContext createConvertContext ( final DomElement element ) { \n - return createConvertContext ( DomManagerImpl . getDomInvocationHandler ( element ) ) ; \n + return new ConvertContextImpl ( DomManagerImpl . getDomInvocationHandler ( element ) ) { \n + public DomElement getInvocationElement ( ) { \n + return element ; \n + } \n + } ; \n } \n \n public static ConvertContext createConvertContext ( final DomInvocationHandler element ) { \n public class ConvertContextImpl extends AbstractConvertContext { \n } \n \n @ notnull \n - public final DomElement getInvocationElement ( ) { \n + public DomElement getInvocationElement ( ) { \n return myHandler . getProxy ( ) ; \n }", "msg_token": "fixed struts test"} {"diff": " public class CommaFeedApplication extends AuthenticatedWebApplication { \n public String renderUrl ( Url url ) { \n String publicUrl = applicationSettingsService . get ( ) . getPublicUrl ( ) ; \n if ( StringUtils . isNotBlank ( publicUrl ) ) { \n - url . setProtocol ( Url . parse ( publicUrl ) . getProtocol ( ) ) ; \n + Url parsed = Url . parse ( publicUrl ) ; \n + \n + String protocol = parsed . getProtocol ( ) ; \n + url . setProtocol ( protocol ) ; \n + \n + Integer port = parsed . getPort ( ) ; \n + url . setPort ( port != null ? port : StringUtils . equalsIgnoreCase ( protocol , STRING0 ) ? NUMBER0 : NUMBER1 ) ; \n } \n return super . renderUrl ( url ) ; \n }", "msg_token": "set port too"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class DetailASTTest extends TestCase {", "msg_token": "wrote class javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class WebmExtractor implements Extractor { \n int seconds = ( int ) ( timeUs / NUMBER0 ) ; \n timeUs -= ( seconds * NUMBER0 ) ; \n int milliseconds = ( int ) ( timeUs / NUMBER1 ) ; \n - timeCodeData = String . format ( STRING0 , hours , minutes , seconds , milliseconds ) \n - . getBytes ( ) ; \n + timeCodeData = String . format ( Locale . US , STRING0 , \n + hours , minutes , seconds , milliseconds ) . getBytes ( ) ; \n } \n System . arraycopy ( timeCodeData , NUMBER2 , subripSampleData , SUBRIP_PREFIX_END_TIMECODE_OFFSET , \n SUBRIP_TIMECODE_LENGTH ) ;", "msg_token": "Specify locale when using String format"} {"diff": " public class MavenIndicesConfigurable extends BaseConfigurable { \n } \n \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING0 ; \n } \n \n public JComponent createComponent ( ) { \n public abstract class MavenGeneralConfigurable implements Configurable { \n @ nullable \n @ nonnls \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING1 ; \n } \n } \n public class MavenIgnoreConfigurable implements Configurable { \n @ nullable \n @ nonnls \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING2 ; \n } \n \n public JComponent createComponent ( ) { \n public class MavenImportingConfigurable implements Configurable { \n @ nullable \n @ nonnls \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING3 ; \n } \n \n public JComponent createComponent ( ) { \n public abstract class MavenRunnerConfigurable implements Configurable { \n @ nullable \n @ nonnls \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING4 ; \n } \n \n public void disposeUIResources ( ) {", "msg_token": "help IDs in configurables"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ hasinternalprotocol \n @ nonextensible", "msg_token": "Added a note to the class header that using getFile with filters are not supported"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestDataLineMarkerProvider implements LineMarkerProvider { \n if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n return null ; \n } \n + final VirtualFile file = PsiUtilCore . getVirtualFile ( element ) ; \n + if ( file == null || ! ProjectFileIndex . SERVICE . getInstance ( element . getProject ( ) ) . isInTestSourceContent ( file ) ) { \n + return null ; \n + } \n if ( element instanceof PsiMethod ) { \n final PsiMethod method = ( PsiMethod ) element ; \n if ( isTestMethod ( method ) ) {", "msg_token": "disable test navigation outside test roots"} {"diff": " public class CpdSensor implements Sensor { \n \n for ( String language : fs . languages ( ) ) { \n if ( settings . hasKey ( STRING0 + language + STRING1 ) ) { \n - LOG . warn ( STRING2 + language + STRING3 ) ; \n + LOG \n + . warn ( STRING2 + language + STRING3 ) ; \n } \n \n if ( isSkipped ( language ) ) { \n public class ComponentDto extends Dto < String > implements Component { \n return this ; \n } \n \n + @ override \n public String key ( ) { \n return kee ; \n } \n public class ComponentDto extends Dto < String > implements Component { \n return this ; \n } \n \n + @ override \n public String qualifier ( ) { \n return qualifier ; \n }", "msg_token": "Fix quality flaw"} {"diff": " public class RealmTest extends AndroidTestCase { \n \n public void testRealmQueryContainsAndCaseSensitive ( ) { \n RealmResults < AllTypes > resultList = testRealm . where ( AllTypes . class ) . beginGroup ( ) . contains ( STRING0 , STRING1 , false ) . or ( ) . contains ( STRING0 , STRING2 ) . endGroup ( ) . findAll ( ) ; \n + assertEquals ( NUMBER0 , resultList . size ( ) ) ; \n + \n + resultList = testRealm . where ( AllTypes . class ) . contains ( STRING0 , STRING3 ) . findAll ( ) ; \n + assertEquals ( NUMBER1 , resultList . size ( ) ) ; \n + \n + resultList = testRealm . where ( AllTypes . class ) . contains ( STRING0 , STRING4 , false ) . findAll ( ) ; \n assertEquals ( TEST_DATA_SIZE , resultList . size ( ) ) ; \n }", "msg_token": "added extra checks and corrected a error"} {"diff": " public class MathJax \n SINGLE \n if ( BrowseCap . isWindowsDesktop ( ) ) \n { \n - style . setProperty ( STRING0 , STRING1 ) ; \n + style . setFontSize ( NUMBER0 , Unit . PCT ) ; \n style . setProperty ( STRING2 , STRING3 ) ; \n }", "msg_token": "use GWT API for setting font size"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class Parse extends Request { \n PSetup setup = _source . value ( ) ; \n if ( setup == null ) return null ; \n String n = setup . _keys . get ( NUMBER0 ) . toString ( ) ; \n + int sep = n . lastIndexOf ( File . separatorChar ) ; \n + if ( sep > NUMBER0 ) n = n . substring ( sep + NUMBER1 ) ; \n int dot = n . lastIndexOf ( STRING0 ) ; \n if ( dot > NUMBER0 ) n = n . substring ( NUMBER0 , dot ) ; \n int i = NUMBER0 ;", "msg_token": "Shorten default parsed filenames to just the trailing filename parts"} {"diff": " public class BiomeDictionary \n MAGICAL ; \n } \n \n - private static final int BIOME_LIST_SIZE = NUMBER0 ; \n + private static final int BIOME_LIST_SIZE = BiomeGenBase . getBiomeGenArray ( ) . length ; \n private static BiomeInfo [ ] biomeList = new BiomeInfo [ BIOME_LIST_SIZE ] ; \n @ suppresswarnings ( STRING0 ) \n private static ArrayList < BiomeGenBase > [ ] typeInfoList = new ArrayList [ Type . values ( ) . length ] ;", "msg_token": "Use BiomeGenBase s array size instead of hardcoding it in BiomeDictionary"} {"diff": " public class IQAuthHandler extends IQHandler implements IQAuthInfo { \n throw new IllegalArgumentException ( STRING0 + resource ) ; \n } \n } \n + else { \n + SINGLE \n + response = IQ . createResultIQ ( packet ) ; \n + response . setChildElement ( packet . getChildElement ( ) . createCopy ( ) ) ; \n + response . setError ( PacketError . Condition . not_acceptable ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Answer a not_acceptable error if no resource was not supplied during login"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class NewPostActivity extends BaseActivity { \n User user = dataSnapshot . getValue ( User . class ) ; \n \n SINGLE \n - SINGLE \n - writeNewPost ( userId , user . username , title , body ) ; \n + if ( user == null ) { \n + SINGLE \n + Log . e ( TAG , STRING0 + userId + STRING1 ) ; \n + Toast . makeText ( NewPostActivity . this , \n + STRING2 , \n + Toast . LENGTH_SHORT ) . show ( ) ; \n + } else { \n + SINGLE \n + writeNewPost ( userId , user . username , title , body ) ; \n + } \n \n SINGLE \n finish ( ) ;", "msg_token": "Fix potential NPE in user fetch"} {"diff": " public interface MapMergePolicy extends DataSerializable { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "edit java doc"} {"diff": " public class GitUtil { \n \n GitSimpleHandler h = new GitSimpleHandler ( project , root , GitHandler . LOG ) ; \n h . setNoSSH ( true ) ; \n - h . addParameters ( STRING0 + GitChangeUtils . COMMITTED_CHANGELIST_FORMAT ) ; \n + h . addParameters ( STRING0 + GitChangeUtils . COMMITTED_CHANGELIST_FORMAT , STRING1 ) ; \n parametersSpecifier . consume ( h ) ; \n \n String output = h . run ( ) ;", "msg_token": "when ask committed change lists ask changes too"} {"diff": " public class LuceneLanguageModel implements LanguageModel { \n RegexpQuery query = new RegexpQuery ( new Term ( STRING0 , STRING1 ) ) ; \n TopDocs docs = luceneSearcher . searcher . search ( query , NUMBER0 ) ; SINGLE \n if ( docs . totalHits == NUMBER1 ) { \n - throw new RuntimeException ( STRING2 ) ; \n + throw new RuntimeException ( STRING3 + luceneSearcher . directory ) ; \n } else if ( docs . totalHits > NUMBER0 ) { \n - throw new RuntimeException ( STRING4 + docs . totalHits ) ; \n + throw new RuntimeException ( STRING4 + docs . totalHits + STRING5 + luceneSearcher . directory ) ; \n } else { \n long result = NUMBER1 ; \n for ( ScoreDoc scoreDoc : docs . scoreDocs ) {", "msg_token": "improve error message"} {"diff": " public class AnimatedGifEncoder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setQuality ( int quality ) { \n if ( quality < NUMBER0 )", "msg_token": "Fix javadoc warning in AnimatedGifEncoder"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n int j = NUMBER0 ; \n for ( String dns : dnsList ) { \n if ( dns != null && ! TextUtils . equals ( dns , STRING0 ) ) { \n + if ( DBG ) Log . d ( TAG , STRING1 + dns ) ; \n SystemProperties . set ( STRING2 + j ++ , dns ) ; \n } \n } \n for ( int k = j ; k < mNumDnsEntries ; k ++ ) { \n - SystemProperties . set ( STRING2 + j , STRING3 ) ; \n + if ( DBG ) Log . d ( TAG , STRING4 + k ) ; \n + SystemProperties . set ( STRING2 + k , STRING3 ) ; \n } \n mNumDnsEntries = j ; \n } else {", "msg_token": "Fix the removal of dns entries"} {"diff": " public class JavaScriptBuild \n SINGLE \n String scriptFiles = STRING0 ; \n \n - scriptFiles += STRING1 + \n - STRING2 + sketchID + STRING3 ; \n + scriptFiles += STRING4 + \n + STRING5 + sketchID + STRING3 ; \n \n SINGLE \n SINGLE", "msg_token": "missing forum images and tiny js fix for js mode"} {"diff": " public abstract class CrashReportingApplication extends Application implements \n errorReporter . setCrashResources ( getCrashResources ( ) ) ; \n \n SINGLE \n - errorReporter . init ( this ) ; \n + errorReporter . init ( getApplicationContext ( ) ) ; \n \n SINGLE", "msg_token": "Give ErrorReporter a reference to the application Context instead of Application object"} {"diff": " public class GenerateSQLContributor extends CompoundContributionItem { \n } \n IEditorPart activeEditor = DBeaverUI . getActiveWorkbenchWindow ( ) . getActivePage ( ) . getActiveEditor ( ) ; \n boolean showDialog = true ; \n + COMMENT \n if ( activeEditor instanceof AbstractTextEditor ) { \n AbstractTextEditor textEditor = ( AbstractTextEditor ) activeEditor ; \n ITextSelection selection = ( ITextSelection ) textEditor . getSelectionProvider ( ) . getSelection ( ) ; \n public class GenerateSQLContributor extends CompoundContributionItem { \n activeEditor . setFocus ( ) ; \n showDialog = false ; \n } \n + COMMENT \n if ( showDialog ) { \n DBPDataSource dataSource = null ; \n if ( runnable . getObject ( ) instanceof DBSObject ) {", "msg_token": "Generate SQL always show dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n public class AudioManager { \n \n private final Context mContext ; \n - private final Handler mHandler ; \n private long mVolumeKeyUpTime ; \n private int mVolumeControlStream = - NUMBER0 ; \n private static String TAG = STRING0 ; \n - private static boolean localLOGV = false ; \n \n COMMENT \n COMMENT \n public class AudioManager { \n COMMENT \n public AudioManager ( Context context ) { \n mContext = context ; \n - mHandler = new Handler ( context . getMainLooper ( ) ) ; \n } \n \n private static IAudioService getService ( )", "msg_token": "Remove unused variable and imports in AudioManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CypherAdapterStreamTest \n when ( result . getQueryStatistics ( ) ) . thenReturn ( queryStatistics ) ; \n when ( result . getQueryExecutionType ( ) ) . thenReturn ( query ( READ_WRITE ) ) ; \n \n - when ( result . getNotifications ( ) ) . thenReturn ( Arrays . asList ( \n + when ( result . getNotifications ( ) ) . thenReturn ( Arrays . < Notification > asList ( \n NotificationCode . INDEX_HINT_UNFULFILLABLE . notification ( InputPosition . empty ) , \n NotificationCode . PLANNER_UNSUPPORTED . notification ( new InputPosition ( NUMBER0 , NUMBER1 , NUMBER2 ) ) \n ) ) ;", "msg_token": "Adds an explicit generic in a test"} {"diff": " public class IdClassGeneratedValueTest extends TestCase { \n s . close ( ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n protected Class [ ] getAnnotatedClasses ( ) { \n return new Class [ ] { \n - SINGLE \n - SINGLE \n - SINGLE \n Simple . class , \n Simple2 . class , \n Multiple . class", "msg_token": "removed commented out code"} {"diff": " public class TestHyperLogLogPlus \n b . offer ( in ) ; \n } \n \n - SINGLE \n - SINGLE \n - System . out . println ( STRING0 ) ; \n - \n assertEquals ( NUMBER0 , testSet . size ( ) ) ; \n assertEquals ( NUMBER1 , a . cardinality ( ) ) ; \n assertEquals ( NUMBER2 , b . cardinality ( ) ) ;", "msg_token": "remove debugging print statement"} {"diff": " public abstract class DataBuffer { \n COMMENT \n public abstract long getLength ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract ByteBuffer getReadOnlyByteBuffer ( ) ; \n }", "msg_token": "add javadoc comments"} {"diff": " public final class Call { \n builder . append ( STRING0 ) ; \n } \n if ( hasProperty ( properties , PROPERTY_EMERGENCY_CALLBACK_MODE ) ) { \n - builder . append ( STRING1 ) ; \n + builder . append ( STRING2 ) ; \n } \n builder . append ( STRING3 ) ; \n return builder . toString ( ) ;", "msg_token": "Fix typo in Call Details propertiesToString"} {"diff": " public class RetryQueryRunner < T > implements QueryRunner < T > \n } \n \n final List < SegmentDescriptor > finalMissingSegs = getMissingSegments ( context ) ; \n - if ( ! config . returnPartialResults ( ) && ! finalMissingSegs . isEmpty ( ) ) { \n + if ( ! finalMissingSegs . isEmpty ( ) ) { \n throw new SegmentMissingException ( STRING0 , finalMissingSegs ) ; \n } \n } \n public class RetryQueryRunnerConfig \n @ jsonproperty \n private int numTries = NUMBER0 ; \n \n - @ jsonproperty \n - private boolean returnPartialResults = false ; \n - \n public int numTries ( ) \n { \n return numTries ; \n } \n - \n - public boolean returnPartialResults ( ) \n - { \n - return returnPartialResults ; \n - } \n }", "msg_token": "remove useless config"} {"diff": " public class NavigationView extends ScrimInsetsFrameLayout { \n COMMENT \n COMMENT \n public void inflateMenu ( int resId ) { \n - mPresenter . setUpdateSuspended ( true ) ; \n + if ( mPresenter != null ) { \n + mPresenter . setUpdateSuspended ( true ) ; \n + } \n getMenuInflater ( ) . inflate ( resId , mMenu ) ; \n - mPresenter . setUpdateSuspended ( false ) ; \n - mPresenter . updateMenuView ( false ) ; \n + if ( mPresenter != null ) { \n + mPresenter . setUpdateSuspended ( false ) ; \n + mPresenter . updateMenuView ( false ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fix NPE in NavigationView"} {"diff": " public class PGraphicsOpenGL2 extends PGraphics { \n noTexture ( ) ; \n } \n \n - public void mergeRecord ( ) { \n + public void mergeShapes ( boolean val ) { \n SINGLE \n SINGLE \n SINGLE \n SINGLE \n SINGLE \n - mergeRecShapes = true ; \n + mergeRecShapes = val ; \n } \n \n - public void noMergeRecord ( ) { \n - mergeRecShapes = false ; \n - } \n - \n public void shapeName ( String name ) { \n recShapeName = name ; \n }", "msg_token": "Updated shape merge API"} {"diff": " public class SearchSourceBuilderTests extends ESTestCase { \n } \n if ( randomBoolean ( ) ) { \n String field = randomBoolean ( ) ? null : randomAsciiOfLengthBetween ( NUMBER0 , NUMBER1 ) ; \n - int max = randomInt ( NUMBER2 ) ; \n + int max = between ( NUMBER3 , NUMBER2 ) ; \n int id = randomInt ( max - NUMBER4 ) ; \n if ( field == null ) { \n builder . slice ( new SliceBuilder ( id , max ) ) ;", "msg_token": "Build valid slices in SearchSourceBuilderTests"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \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 + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean isEmpty ( Iterable self ) { \n + return ! self . iterator ( ) . hasNext ( ) ; \n + } \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add org codehaus groovy runtime DefaultGroovyMethods isEmpty Iterable"} {"diff": " public class Immutable2DSumRangeQuery { \n } \n } \n \n - public int sumRegion ( int row1 , int col1 , int row2 , int col2 ) { \n + public int sumQuery ( int row1 , int col1 , int row2 , int col2 ) { \n row1 ++ ; \n col1 ++ ; \n row2 ++ ; \n public class Immutable2DSumRangeQuery { \n \n int [ ] [ ] input1 = { { NUMBER0 , NUMBER1 , - NUMBER2 , NUMBER3 } , { NUMBER4 , NUMBER2 , NUMBER0 , - NUMBER5 } , { NUMBER6 , NUMBER3 , NUMBER7 , NUMBER2 } , { NUMBER0 , - NUMBER4 , NUMBER8 , NUMBER5 } } ; \n Immutable2DSumRangeQuery isr = new Immutable2DSumRangeQuery ( input1 ) ; \n - System . out . println ( isr . sumRegion ( NUMBER5 , NUMBER5 , NUMBER0 , NUMBER0 ) ) ; \n + System . out . println ( isr . sumQuery ( NUMBER5 , NUMBER5 , NUMBER0 , NUMBER0 ) ) ; \n } \n }", "msg_token": "update method name"} {"diff": " public class HttpSession extends LocalClientSession { \n int pauseDuration = HttpBindServlet . getIntAttribute ( rootNode . attributeValue ( STRING0 ) , - NUMBER0 ) ; \n \n if ( STRING1 . equals ( type ) ) { \n - close ( ) ; \n connection . deliverBody ( createEmptyBody ( true ) ) ; \n + close ( ) ; \n lastRequestID = connection . getRequestId ( ) ; \n } \n else if ( STRING2 . equals ( restartStream ) && rootNode . elements ( ) . size ( ) == NUMBER1 ) {", "msg_token": "First send data then close connection"} {"diff": " public class CurrentBranchDialog extends DialogWrapper { \n protected JComponent createCenterPanel ( ) { \n return myPanel ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + protected String getHelpId ( ) { \n + return STRING0 ; \n + } \n }", "msg_token": "added help identifier for CurrentBranch dialog"} {"diff": " import NAMESPACE ; \n COMMENT \n public class AppLog { \n SINGLE \n - public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING , SIMPERIUM } \n + public enum T { READER , EDITOR , MEDIA , NUX , API , STATS , UTILS , NOTIFS , DB , POSTS , COMMENTS , THEMES , TESTS , PROFILING , SIMPERIUM , SUGGESTION } \n public static final String TAG = STRING0 ; \n public static final int HEADER_LINE_COUNT = NUMBER0 ;", "msg_token": "Initial commit adding mentions to notification comments"} {"diff": " public class DimensionManager \n \n public static void loadDimensionDataMap ( NBTTagCompound compoundTag ) \n { \n + dimensionMap . clear ( ) ; \n if ( compoundTag == null ) \n { \n - dimensionMap . clear ( ) ; \n for ( Integer id : dimensions . keySet ( ) ) \n { \n if ( id >= NUMBER0 ) \n public class ForgeModContainer extends DummyModContainer implements WorldAccessC \n @ override \n public void readData ( SaveHandler handler , WorldInfo info , Map < String , NBTBase > propertyMap , NBTTagCompound tag ) \n { \n - if ( tag . hasKey ( STRING0 ) ) \n - { \n - DimensionManager . loadDimensionDataMap ( tag . hasKey ( STRING0 ) ? tag . getCompoundTag ( STRING0 ) : null ) ; \n - } \n + DimensionManager . loadDimensionDataMap ( tag . hasKey ( STRING0 ) ? tag . getCompoundTag ( STRING0 ) : null ) ; \n } \n \n @ subscribe", "msg_token": "Fully clear DimensionManager s DimensionID bitset when world is loaded"} {"diff": " public class BaseLiquibaseTask extends Task { \n \n URLClassLoader loader = AccessController . doPrivileged ( new PrivilegedAction < URLClassLoader > ( ) { \n public URLClassLoader run ( ) { \n - return new URLClassLoader ( taskClassPath . toArray ( new URL [ taskClassPath . size ( ) ] ) ) ; \n + return new URLClassLoader ( taskClassPath . toArray ( new URL [ taskClassPath . size ( ) ] ) , Database . class . getClassLoader ( ) ) ; \n } \n } ) ;", "msg_token": "use database classloader to work better with extensions"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fix wrong import"} {"diff": " class LanguageToolSupport { \n try { \n h . addHighlight ( span . start , span . end , bluePainter ) ; \n } catch ( BadLocationException ex ) { \n - SINGLE \n + ex . printStackTrace ( ) ; \n } \n } \n for ( Span span : spellErrors ) { \n try { \n h . addHighlight ( span . start , span . end , redPainter ) ; \n } catch ( BadLocationException ex ) { \n - SINGLE \n + ex . printStackTrace ( ) ; \n } \n } \n } \n class LanguageToolSupport { \n try { \n _check ( caller ) ; \n } catch ( IOException ex ) { \n + ex . printStackTrace ( ) ; \n } \n } \n }", "msg_token": "do not completely ignore exceptions"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PresenceUpdateHandler extends BasicModule implements ChannelHandler , ClusterEventListener { \n \n - private static final String PRESENCE_CACHE_NAME = STRING0 ; \n + public static final String PRESENCE_CACHE_NAME = STRING0 ; \n \n COMMENT \n COMMENT \n public class PresenceUpdateHandler extends BasicModule implements ChannelHandler \n \n if ( affectedDirectedPresence == null ) { \n affectedDirectedPresence = new DirectedPresence ( handlerJID ) ; \n + directedPresences . add ( affectedDirectedPresence ) ; \n } \n affectedDirectedPresence . addReceiver ( jid ) ;", "msg_token": "Fixed directed presences it now works"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n float [ ] vertices = tessGeo . polyVertices ; \n int [ ] color = tessGeo . polyColors ; \n float [ ] uv = tessGeo . polyTexCoords ; \n - short [ ] indices = tessGeo . polyIndices ; \n + SINGLE \n \n \n sortTriangles ( ) ;", "msg_token": "remove unused var to prevent warning"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class NonClientDecorView extends LinearLayout implements View . OnClickListener { \n + public class NonClientDecorView extends LinearLayout \n + implements View . OnClickListener , View . OnTouchListener { \n private final static String TAG = STRING0 ; \n SINGLE \n private final int DECOR_SHADOW_FOCUSED_HEIGHT_IN_DIP = NUMBER0 ; \n public class NonClientDecorView extends LinearLayout implements View . OnClickList \n } \n \n @ override \n - public boolean onTouchEvent ( MotionEvent e ) { \n + public boolean onTouch ( View v , MotionEvent e ) { \n SINGLE \n SINGLE \n SINGLE \n public class NonClientDecorView extends LinearLayout implements View . OnClickList \n boolean invisible = isFillingScreen ( ) || ! mShowDecor ; \n View caption = getChildAt ( NUMBER1 ) ; \n caption . setVisibility ( invisible ? GONE : VISIBLE ) ; \n + caption . setOnTouchListener ( this ) ; \n mVisible = ! invisible ; \n }", "msg_token": "Only send touch event in NonClientDecorView to caption bar"} {"diff": " public class PsiDocumentManagerImpl extends PsiDocumentManager implements Projec \n } \n SINGLE \n if ( FileDocumentManagerImpl . areTooManyDocumentsInTheQueue ( myUncommittedDocuments ) ) { \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + try { \n + LOG . error ( STRING0 + myProject + STRING1 + myUncommittedDocuments ) ; \n + } \n + finally { \n + clearUncommitedDocuments ( ) ; \n + } \n + } \n commitAllDocuments ( ) ; \n } \n }", "msg_token": "cdr an assertion for too many uncommitted documents hanging in tests"} {"diff": " public class UdcKernelExtensionFactory extends KernelExtensionFactory < UdcKernelE \n public Lifecycle newKernelExtension ( UdcKernelExtensionFactory . Dependencies dependencies ) throws Throwable \n { \n return new UdcKernelExtension ( loadConfig ( dependencies . getConfig ( ) ) , dependencies . getXaDataSourceManager ( ) , \n - dependencies . getKernelData ( ) , new Timer ( STRING0 , COMMENT true ) ) ; \n + dependencies . getKernelData ( ) , new Timer ( STRING0 , isAlwaysDaemon ( ) ) ) ; \n + } \n + \n + private boolean isAlwaysDaemon ( ) \n + { \n + return true ; \n } \n \n private Config loadConfig ( Config config )", "msg_token": "Replace a comment with a method"} {"diff": " public class MiniAapt implements Step { \n Collection < Path > contents = filesystem . getDirectoryContents ( resDirectory ) ; \n for ( Path dir : contents ) { \n if ( ! filesystem . isDirectory ( dir ) && ! filesystem . isIgnored ( dir ) ) { \n - eventBus . post ( ConsoleEvent . warning ( STRING0 , dir ) ) ; \n + if ( ! shouldIgnoreFile ( dir , filesystem ) ) { \n + eventBus . post ( ConsoleEvent . warning ( STRING0 , dir ) ) ; \n + } \n continue ; \n }", "msg_token": "mini aapt Do not warn about ignored files immediately under the res dir"} {"diff": " public class YoutubeVideoUrlIdHandler implements VideoUrlIdHandler { \n } \n } \n else if ( url . contains ( STRING0 ) ) { \n - id = Parser . matchGroup1 ( STRING1 , url ) ; \n + if ( url . contains ( STRING2 ) ) { \n + id = Parser . matchGroup1 ( STRING3 , url ) ; \n + } else { \n + id = Parser . matchGroup1 ( STRING1 , url ) ; \n + } \n } \n else { \n throw new ParsingException ( STRING4 + url ) ; \n public class YoutubeVideoUrlIdHandler implements VideoUrlIdHandler { \n \n \n if ( ! id . isEmpty ( ) ) { \n - SINGLE \n return id ; \n } else { \n throw new ParsingException ( STRING5 + url ) ;", "msg_token": "fixed another pattern problem"} {"diff": " public class PatternRule extends AbstractPatternRule { \n } \n \n if ( allElementsMatch && matchingTokens == patternSize ) { \n - final RuleMatch rM = createRuleMatch ( tokenPositions , tokens , \n + final RuleMatch ruleMatch = createRuleMatch ( tokenPositions , tokens , \n firstMatchToken , lastMatchToken , matchingTokens ) ; \n - if ( rM != null ) { \n - ruleMatches . add ( rM ) ; \n + if ( ruleMatch != null ) { \n + ruleMatches . add ( ruleMatch ) ; \n } \n } \n i ++ ;", "msg_token": "use more verbose variable name"} {"diff": " public class DBMaker { \n protected boolean _asyncWriteEnabled = true ; \n protected boolean _asyncSerializationEnabled = true ; \n protected int _asyncFlushDelay = NUMBER0 ; \n - protected boolean _asyncThreadDeamon = false ; \n + protected boolean _asyncThreadDaemon = false ; \n \n protected boolean _deleteFilesAfterClose = false ; \n protected boolean _readOnly = false ; \n public class DBMaker { \n COMMENT \n COMMENT \n COMMENT \n - public DBMaker asyncThreadSetDeamon ( ) { \n - this . _asyncThreadDeamon = true ; \n + public DBMaker asyncThreadSetDaemon ( ) { \n + this . _asyncThreadDaemon = true ; \n return this ; \n } \n \n public class DBMaker { \n new StorageDirect ( _file , _asyncWriteEnabled , _deleteFilesAfterClose , _readOnly , _appendOnlyEnabled , _ifInMemoryUseDirectBuffer ) ; \n \n if ( _asyncWriteEnabled && ! _readOnly ) \n - engine = new AsyncWriteEngine ( engine , _asyncSerializationEnabled , _asyncFlushDelay , _asyncThreadDeamon ) ; \n + engine = new AsyncWriteEngine ( engine , _asyncSerializationEnabled , _asyncFlushDelay , _asyncThreadDaemon ) ; \n \n if ( _checksumEnabled ) { \n engine = new ByteTransformEngine ( engine , new ChecksumCRC32Serializer ( ) ) ;", "msg_token": "rename deamon to daemon"} {"diff": " public class TestReplicatedContext extends TomcatBaseTest { \n } \n \n File root = new File ( STRING0 ) ; \n - Context context = tomcat . addWebapp ( host , STRING1 , STRING1 , root . getAbsolutePath ( ) ) ; \n + Context context = tomcat . addWebapp ( host , STRING1 , root . getAbsolutePath ( ) ) ; \n \n Tomcat . addServlet ( context , STRING2 , new AccessContextServlet ( ) ) ; \n context . addServletMapping ( STRING3 , STRING2 ) ;", "msg_token": "Don t use deprecated and now removed method"} {"diff": " public final class LocalBlockInStreamIntegrationTest { \n } \n \n private static List < CreateFileOptions > getOptionSet ( ) { \n - List < CreateFileOptions > ret = new ArrayList < CreateFileOptions > ( NUMBER0 ) ; \n + List < CreateFileOptions > ret = new ArrayList < > ( NUMBER0 ) ; \n ret . add ( sWriteBoth ) ; \n ret . add ( sWriteAlluxio ) ; \n return ret ;", "msg_token": "SMALLFIX Removed explicit argument type in LocalBlockInStreamIntegrationTest"} {"diff": " public final class Iterators { \n COMMENT \n COMMENT \n COMMENT \n - @ beta \n public static int advance ( Iterator < ? > iterator , int numberToAdvance ) { \n checkNotNull ( iterator ) ; \n checkArgument ( numberToAdvance >= NUMBER0 , STRING0 ) ; \n public final class Iterators { \n COMMENT \n COMMENT \n COMMENT \n - @ beta \n public static int advance ( Iterator < ? > iterator , int numberToAdvance ) { \n checkNotNull ( iterator ) ; \n checkArgument ( numberToAdvance >= NUMBER0 , STRING0 ) ;", "msg_token": "Take Iterators advance out of Beta"} {"diff": " import NAMESPACE ; \n \n public class ResolveReferenceQuickFixProvider implements UnresolvedReferenceQuickFixProvider { \n public void registerFixes ( PsiJavaCodeReferenceElement ref , QuickFixActionRegistrar registrar ) { \n - registrar . register ( new DependencyQuickFix ( ref ) ) ; \n + registrar . register ( new AddMavenDependencyQuickFix ( ref ) ) ; \n } \n }", "msg_token": "Add Dependency QuickFix improvement"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class AsyncMetadataVersionManager implements Runnable { \n private Long currentClusterVersion ; \n private final Callable < Void > storeClientThunk ; \n private final SystemStoreRepository sysRepository ; \n - \n - SINGLE \n - private final int DELTA_MAX = NUMBER0 ; \n - private final Random randomGenerator = new Random ( System . currentTimeMillis ( ) ) ; \n - \n public boolean isActive = false ; \n \n public AsyncMetadataVersionManager ( SystemStoreRepository sysRepository ,", "msg_token": "Removed unnecessary variables from AsyncMetadataVersionManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class JournalFormatterTestBase { \n . setCompleteStore ( CompleteStoreEntry . newBuilder ( ) \n . setStoreId ( TEST_FILE_ID ) ) \n . build ( ) ) \n + . add ( \n + JournalEntry . newBuilder ( ) \n + . setDeleteStore ( DeleteStoreEntry . newBuilder ( ) \n + . setStoreId ( TEST_FILE_ID ) ) \n + . build ( ) ) \n . build ( ) ; \n SINGLE \n ENTRIES_LIST = Lists . transform ( entries , new Function < JournalEntry , JournalEntry > ( ) {", "msg_token": "Add DeleteStoreEntry to journal tests"} {"diff": " public class CmdUtils { \n \n @ suppresswarnings ( STRING0 ) \n public static < T > T valueOf ( OptionSet options , String opt , T defaultValue ) { \n - if ( options . has ( opt ) ) \n + if ( options . has ( opt ) && options . valueOf ( opt ) != null ) \n return ( T ) options . valueOf ( opt ) ; \n else \n return defaultValue ; \n } \n \n public static < T > T valueOf ( OptionSet options , OptionSpec < T > opt , T defaultValue ) { \n - if ( options . has ( opt ) ) \n + if ( options . has ( opt ) && options . valueOf ( opt ) != null ) \n return options . valueOf ( opt ) ; \n else \n return defaultValue ;", "msg_token": "fixed valueof method to handle null value"} {"diff": " public class TopologyMetricsRunnable extends Thread { \n private void syncMetaFromRemote ( String topologyId , TopologyMetricContext context ) { \n try { \n int memSize = context . getMemMeta ( ) . size ( ) ; \n - int zkSize = ( Integer ) stormClusterState . get_topology_metric ( topologyId ) ; \n + Integer zkSize = ( Integer ) stormClusterState . get_topology_metric ( topologyId ) ; \n \n - if ( memSize != zkSize ) { \n + if ( zkSize != null && memSize != zkSize . intValue ( ) ) { \n ConcurrentMap < String , Long > memMeta = context . getMemMeta ( ) ; \n for ( MetaType metaType : MetaType . values ( ) ) { \n List < MetricMeta > metaList = metricQueryClient . getMetricMeta ( clusterName , topologyId , metaType ) ; \n public class TopologyMetricsRunnable extends Thread { \n public Assignment newAssignment ; \n public Map < Integer , String > task2Component ; \n } \n - } \n + }", "msg_token": "fixed a potential NPE when getting meta size from zk"} {"diff": " public class IhcBinding extends AbstractActiveBinding < IhcBindingProvider > \n } \n } \n } else { \n - logger . warn ( STRING0 ) ; \n + logger . debug ( STRING0 ) ; \n } \n \n }", "msg_token": "changed logging level"} {"diff": " public class RecentsTvActivity extends Activity implements OnPreDrawListener { \n } \n \n @ override \n - protected void onStart ( ) { \n - super . onStart ( ) ; \n - updatePipUI ( ) ; \n - } \n - \n - @ override \n public void onEnterAnimationComplete ( ) { \n super . onEnterAnimationComplete ( ) ; \n if ( mLaunchedFromHome ) { \n public class RecentsTvActivity extends Activity implements OnPreDrawListener { \n } else { \n mTaskStackHorizontalGridView . setSelectedPosition ( NUMBER0 ) ; \n } \n + \n + updatePipUI ( ) ; \n } \n \n @ override", "msg_token": "Fix NPE when enters Recents with PIP"} {"diff": " public class RadioTransportProvider implements Provider < RadioTransport > { \n public RadioTransport get ( ) { \n switch ( configuration . getTransportType ( ) ) { \n case AMQP : \n - return new AMQPProducer ( configuration , metricRegistry ) ; \n + return new AMQPProducer ( metricRegistry , configuration , serverStatus ) ; \n case KAFKA : \n return new KafkaProducer ( serverStatus , configuration , metricRegistry ) ; \n default :", "msg_token": "Fixing instantiation parameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Commit cleanup in AbstractCassandraKCVSTest"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ManageDialog extends AlertActivity implements \n private Handler mHandler ; \n \n @ override \n - protected void onResume ( ) { \n - super . onResume ( ) ; \n + protected void onCreate ( Bundle savedInstanceState ) { \n + super . onCreate ( savedInstanceState ) ; \n \n if ( getCallingPackage ( ) != null ) { \n Log . e ( TAG , getCallingPackage ( ) + STRING0 ) ; \n public class ManageDialog extends AlertActivity implements \n } \n \n @ override \n - protected void onPause ( ) { \n - super . onPause ( ) ; \n + protected void onDestroy ( ) { \n if ( ! isFinishing ( ) ) { \n finish ( ) ; \n } \n + super . onDestroy ( ) ; \n } \n \n @ override", "msg_token": "Create Vpn ManageDialog in onCreate not onResume"} {"diff": " public class Main { \n Config config = new Config ( System . getProperties ( ) ) ; \n Path inputDir = config . getInputDir ( ) ; \n Path outputDir = config . getOutputDir ( ) ; \n + System . out . println ( STRING0 + inputDir ) ; \n + System . out . println ( STRING1 + outputDir ) ; \n \n if ( ! Files . isDirectory ( inputDir ) ) { \n System . out . println ( STRING2 + inputDir ) ;", "msg_token": "Print configuration on startup"} {"diff": " public interface Playable extends Parcelable , \n case ExternalMedia . PLAYABLE_TYPE_EXTERNAL_MEDIA : \n result = createExternalMediaInstance ( pref ) ; \n break ; \n - SINGLE \n - SINGLE \n - SINGLE \n } \n if ( result == null ) { \n Log . e ( TAG , STRING0 ) ; \n public interface Playable extends Parcelable , \n } \n return result ; \n } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n \n class PlayableException extends Exception {", "msg_token": "delete commented code on Playable interface related to RemoteMedia"} {"diff": " public class SvnSimpleCommand extends SvnCommand { \n if ( code == NUMBER0 ) { \n return myStdout . toString ( ) ; \n } else { \n + boolean stdErr = true ; \n String msg = myStderr . toString ( ) ; \n if ( msg . length ( ) == NUMBER0 ) { \n + stdErr = false ; \n msg = getStdout ( ) . toString ( ) ; \n } \n - if ( msg . length ( ) == NUMBER0 ) { \n - msg = STRING0 + code ; \n - } \n + msg = new StringBuilder ( STRING0 ) . append ( code ) . append ( STRING1 ) \n + . append ( stdErr ? STRING2 : STRING3 ) . append ( msg ) . append ( STRING4 ) . append ( myCommandLine . getCommandLineString ( ) ) . toString ( ) ; \n throw new VcsException ( msg ) ; \n } \n }", "msg_token": "Put more information into exception message when svn command line execution fails"} {"diff": " public class NativeScanner implements Scanner { \n for ( String pattern : filePatterns ) { \n sb . append ( STRING0 ) . append ( pattern ) . append ( STRING1 ) ; \n } \n - System . err . println ( sb . toString ( ) ) ; \n JarVisitor jarVisitor = getVisitor ( jarToScan ) ; \n \n SINGLE", "msg_token": "Remove System err println oops"} {"diff": " public class OpenCloseIndexTests extends AbstractSharedClusterTest { \n assertIndexIsOpened ( STRING0 ) ; \n } \n \n - @ test @ testlogging ( STRING1 ) \n + @ test @ testlogging ( STRING2 ) \n public void testCloseOpenAliasMultipleIndices ( ) { \n Client client = client ( ) ; \n createIndex ( STRING0 , STRING3 ) ; \n public class RecoveryWhileUnderLoadTests extends AbstractSharedClusterTest { \n \n private final ESLogger logger = Loggers . getLogger ( RecoveryWhileUnderLoadTests . class ) ; \n \n - @ test @ testlogging ( STRING4 ) \n + @ test @ testlogging ( STRING5 ) \n @ slow \n public void recoverWhileUnderLoadAllocateBackupsTest ( ) throws Exception { \n logger . info ( STRING6 ) ;", "msg_token": "Removed logger prefixes when using TestLogging annotation"} {"diff": " public class CompileDriver { \n generatedTypes . addAll ( compilerManager . getRegisteredOutputTypes ( compiler ) ) ; \n } \n \n - if ( _context . getMessageCount ( CompilerMessageCategory . ERROR ) > NUMBER0 ) { \n - throw new ExitException ( ExitStatus . ERRORS ) ; \n - } \n - \n didSomething |= compiledSomething ; \n compiledSomethingForThisChunk |= didSomething ; \n + \n + if ( _context . getMessageCount ( CompilerMessageCategory . ERROR ) > NUMBER0 ) { \n + break ; SINGLE \n + } \n } \n \n final boolean hasUnprocessedTraverseRoots = context . getDependencyCache ( ) . hasUnprocessedTraverseRoots ( ) ;", "msg_token": "if there were compile errors find dependencies of actually compiled and mark them for compilation for the next time"} {"diff": " public static void main ( String [ ] args ) throws Exception { \n catch ( Throwable e ) \n { \n while ( rdr . ready ( ) ) \n - rdr . read ( ) ; \n + rdr . readLine ( ) ; \n Throwable c = e ; \n while ( c . getCause ( ) != null ) \n c = c . getCause ( ) ;", "msg_token": "switched to readLine on input purge in Repl exception handler"} {"diff": " public class LockSettingsService extends ILockSettings . Stub { \n Secure . LOCK_SCREEN_OWNER_INFO_ENABLED , \n Secure . LOCK_SCREEN_OWNER_INFO \n } ; \n - \n - SINGLE \n - private static final String [ ] READ_PROFILE_PROTECTED_SETTINGS = MIGRATE_SETTINGS_PER_USER ; \n }", "msg_token": "Fix the build"} {"diff": " public class AuditClasspathCommand extends AbstractCommandRunner < AuditCommandOpt \n } \n \n @ visiblefortesting \n - int printDotOutput ( TargetGraph actionGraph ) { \n + int printDotOutput ( TargetGraph targetGraph ) { \n Dot < TargetNode < ? > > dot = new Dot < > ( \n - actionGraph , \n - STRING0 , \n + targetGraph , \n + STRING1 , \n new Function < TargetNode < ? > , String > ( ) { \n @ override \n public String apply ( TargetNode < ? > targetNode ) {", "msg_token": "Rename some incorrect references to action graph"} {"diff": " public class WhitelistWarningsGuard extends WarningsGuard { \n out . append ( \n STRING0 ) ; \n \n - if ( productName != null && ! productName . isEmpty ( ) ) { \n + if ( productName != null && ! productName . isEmpty ( ) && ! warnings . isEmpty ( ) ) { \n out . append ( STRING1 \n + STRING2 + productName + STRING3 ) ; \n }", "msg_token": "Skip some text in the whitelist if the whitelist doesn t contain any warnings"} {"diff": " public class Intents { \n COMMENT \n public static Intent buildViewEpisodeIntent ( int episodeTvdbId ) { \n return new Intent ( ACTION_VIEW_EPISODE ) \n - . putExtra ( EXTRA_TVDBID , episodeTvdbId ) ; \n + . putExtra ( EXTRA_TVDBID , episodeTvdbId ) \n + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; \n } \n \n COMMENT \n public class Intents { \n COMMENT \n public static Intent buildViewShowIntent ( int showTvdbId ) { \n return new Intent ( ACTION_VIEW_SHOW ) \n - . putExtra ( EXTRA_TVDBID , showTvdbId ) ; \n + . putExtra ( EXTRA_TVDBID , showTvdbId ) \n + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET ) ; \n } \n }", "msg_token": "Add Intent FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET to API view intents"} {"diff": " public class HeliosSoloDeploymentTest { \n assertThat ( testResult ( HeliosSoloDeploymentTestImpl . class ) , isSuccessful ( ) ) ; \n } \n \n - \n public static class HeliosSoloDeploymentTestImpl { \n \n public static final String IMAGE_NAME = STRING0 ; \n public class HeliosSoloDeploymentTest { \n @ test \n public void testDeployToSolo ( ) throws Exception { \n temporaryJobs . job ( ) \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + . hostFilter ( STRING1 ) \n . command ( asList ( STRING2 , STRING3 , STRING4 ) ) \n . image ( IMAGE_NAME ) \n . port ( STRING5 , NUMBER0 )", "msg_token": "explicitly specify hostFilter for HeliosSoloDeploymentTest"} {"diff": " class TiffUtil { \n public static int getAutoRotateAngleFromOrientation ( int orientation ) { \n switch ( orientation ) { \n case ExifInterface . ORIENTATION_NORMAL : \n + case ExifInterface . ORIENTATION_UNDEFINED : \n return NUMBER0 ; \n case ExifInterface . ORIENTATION_ROTATE_180 : \n return NUMBER1 ;", "msg_token": "Don t log message for undefined EXIF rotation"} {"diff": " public class OServer { \n \n for ( OStorage storage : Orient . instance ( ) . getStorages ( ) ) { \n final String storageName = storage . getName ( ) ; \n - if ( ! storages . containsKey ( storageName ) ) \n + if ( storage . exists ( ) && ! storages . containsKey ( storageName ) ) \n storages . put ( storageName , storage . getURL ( ) ) ; \n } \n \n public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract { \n \n protected void existsDatabase ( ) throws IOException { \n setDataCommandInfo ( STRING0 ) ; \n - String dbName = channel . readString ( ) ; \n + final String dbName = channel . readString ( ) ; \n \n checkServerAccess ( STRING1 ) ;", "msg_token": "Fixed issue reported by Thomas about listDatabases that show not existent databases"} {"diff": " public class AdventureWorks { \n Executor create = new Executor ( connection , SQLDialect . SQLSERVER ) ; \n \n System . out . println ( create \n - . select ( Employee . getFields ( ) ) \n + . select ( Employee . fields ( ) ) \n . select ( val ( STRING0 ) ) \n - . select ( Department . getFields ( ) ) \n + . select ( Department . fields ( ) ) \n . select ( val ( STRING0 ) ) \n - . select ( Contact . getFields ( ) ) \n + . select ( Contact . fields ( ) ) \n . from ( Employee ) \n . join ( EmployeeAddress ) . using ( Employee . EmployeeID ) \n . join ( EmployeeDepartmentHistory ) . using ( Employee . EmployeeID )", "msg_token": "Renamed methods from example"} {"diff": " public class HighLevelFilter extends Filter { \n if ( loggingEvent . getMarker ( ) == Logging . LIFECYCLE ) { \n return FilterReply . ACCEPT ; \n } else { \n - return FilterReply . DENY ; \n + return FilterReply . NEUTRAL ; \n } \n } \n }", "msg_token": "Fixed problem with wrong log configuration"} {"diff": " public class FilterLibraryImpl implements FilterLibrary { \n } \n \n content . add ( new HierarchicalGraphMask ( ) ) ; \n - \n - SINGLE \n - buildBuildersMap ( ) ; \n } \n \n private void buildBuildersMap ( ) { \n public class FilterLibraryImpl implements FilterLibrary { \n } \n \n public FilterBuilder getBuilder ( Filter filter ) { \n + if ( buildersMap == null ) { \n + buildBuildersMap ( ) ; \n + } \n if ( buildersMap . get ( filter . getClass ( ) ) != null ) { \n return buildersMap . get ( filter . getClass ( ) ) ; \n }", "msg_token": "Fix init issue with last fix on filters builders"} {"diff": " public class UploadsFragment extends SherlockListFragment implements OnPhotoSele \n } \n \n public boolean canDismiss ( ListView listView , int position ) { \n - return ( ( PhotoUpload ) listView . getItemAtPosition ( position ) ) . getState ( ) == PhotoUpload . STATE_UPLOAD_COMPLETED ; \n + PhotoUpload upload = ( PhotoUpload ) listView . getItemAtPosition ( position ) ; \n + switch ( upload . getState ( ) ) { \n + case PhotoUpload . STATE_UPLOAD_COMPLETED : \n + case PhotoUpload . STATE_UPLOAD_ERROR : \n + return true ; \n + } \n + return false ; \n } \n \n public void onUploadsCleared ( ) {", "msg_token": "Allow Swipe to dismiss on error"} {"diff": " public class SimpleTcpCluster extends LifecycleMBeanBase \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SimpleTcpCluster extends LifecycleMBeanBase \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Javadoc errors"} {"diff": " import static NAMESPACE ; \n public class MllpTcpClientProducerAcknowledgementTest extends CamelTestSupport { \n \n @ rule \n - public MllpServerResource mllpServer = new MllpServerResource ( mllpHost , AvailablePortFinder . getNextAvailable ( ) ) ; \n - \n - String mllpHost = STRING0 ; \n + public MllpServerResource mllpServer = new MllpServerResource ( STRING0 , AvailablePortFinder . getNextAvailable ( ) ) ; \n \n @ endpointinject ( uri = STRING1 ) \n ProducerTemplate source ;", "msg_token": "Fixed compile error"} {"diff": " public interface DependencyManager extends DependencyContainer { \n \n DualResolver addMavenStyleRepo ( String name , String root , String . . . jarRepoUrls ) ; \n \n - void publish ( List configurations , ResolverContainer resolvers , boolean uploadModuleDescriptor ) ; \n + void publish ( List < String > configurations , ResolverContainer resolvers , boolean uploadModuleDescriptor ) ; \n \n ModuleRevisionId createModuleRevisionId ( ) ; \n }", "msg_token": "Added type information to method arg"} {"diff": " public class VersionPrinter { \n COMMENT \n COMMENT \n COMMENT \n - public static void printVersion ( ClassLoader classLoader ) { \n + public static void printVersion ( ) { \n if ( printed ) { \n return ; \n } \n printed = true ; \n - String version = new ClassPathResource ( STRING0 , classLoader ) . loadAsString ( STRING1 ) ; \n + String version = new ClassPathResource ( STRING0 , VersionPrinter . class . getClassLoader ( ) ) . loadAsString ( STRING1 ) ; \n LOG . info ( STRING2 + version + STRING3 ) ; \n } \n }", "msg_token": "Flyway should not expect org flywaydb core internal version"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix the CS error of CxfConverter"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MavenEnvironmentRegistrar implements ApplicationComponent { \n } \n \n private void registerFileTypes ( ) { \n + SINGLE \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return ; \n FileTypeManager . getInstance ( ) . associateExtension ( XmlFileType . INSTANCE , MavenConstants . POM_EXTENSION ) ; \n }", "msg_token": "do not change file types in the unit test mode"} {"diff": " public class StorageManager { \n COMMENT \n public String getDefaultProviderId ( ) { \n SINGLE \n - return mProviders . entrySet ( ) . iterator ( ) . next ( ) . getKey ( ) ; \n + return mProviders . keySet ( ) . iterator ( ) . next ( ) ; \n } \n \n COMMENT", "msg_token": "replaced entrySet getKey with keySet"} {"diff": " public class WindowLayersController { \n } \n \n private int assignAndIncreaseLayerIfNeeded ( WindowState win , int layer ) { \n - if ( win != null && layer > win . mLayer ) { \n + if ( win != null ) { \n assignAnimLayer ( win , layer ) ; \n SINGLE \n layer += WINDOW_LAYER_MULTIPLIER ;", "msg_token": "Always assign layer when restacking special windows"} {"diff": " public class Element extends Node { \n void outerHtmlTail ( StringBuilder accum , int depth , Document . OutputSettings out ) { \n if ( ! ( childNodes . isEmpty ( ) && tag . isSelfClosing ( ) ) ) { \n if ( out . prettyPrint ( ) && ( ! childNodes . isEmpty ( ) && ( \n - tag . formatAsBlock ( ) || ( out . outline ( ) && childNodes . size ( ) > NUMBER0 || ( childNodes . size ( ) == NUMBER0 && ! ( childNodes . get ( NUMBER1 ) instanceof TextNode ) ) ) \n + tag . formatAsBlock ( ) || ( out . outline ( ) && ( childNodes . size ( ) > NUMBER0 || ( childNodes . size ( ) == NUMBER0 && ! ( childNodes . get ( NUMBER1 ) instanceof TextNode ) ) ) ) \n ) ) ) \n indent ( accum , depth , out ) ; \n accum . append ( STRING0 ) . append ( tagName ( ) ) . append ( STRING1 ) ;", "msg_token": "Fixed overzealous indenting in outerHtmlTail"} {"diff": " public class Notification implements Parcelable \n if ( onMs != NUMBER0 || offMs != NUMBER0 ) { \n mN . flags |= FLAG_SHOW_LIGHTS ; \n } \n - if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) { \n - mN . flags |= FLAG_SHOW_LIGHTS ; \n - } \n return this ; \n } \n \n public class Notification implements Parcelable \n mStyle . buildStyled ( mN ) ; \n } \n \n + if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) { \n + mN . flags |= FLAG_SHOW_LIGHTS ; \n + } \n + \n return mN ; \n }", "msg_token": "Don t require apps to call showLights to use default lights"} {"diff": " public class DeskshareMain implements ClientListener , LifeLineListener { \n System . out . println ( STRING0 ) ; \n ExitCode reason = dsMain . exitReasonQ . take ( ) ; \n System . out . println ( STRING1 ) ; \n - dsMain . displayJavaWarning ( reason . name ( ) ) ; \n client . stop ( ) ; \n System . exit ( reason . getExitCode ( ) ) ; \n } catch ( InterruptedException e ) {", "msg_token": "remove dialog when jws stops"} {"diff": " public class CarrierConfigManager { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ systemapi \n public static Bundle getDefaultConfig ( ) { \n - return sDefaults ; \n + return new Bundle ( sDefaults ) ; \n } \n \n COMMENT", "msg_token": "Never return a reference to sDefaults"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract class AbstractDisambiguator implements Disambiguator { \n \n public interface Disambiguator { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n AnalyzedSentence preDisambiguate ( AnalyzedSentence input ) ;", "msg_token": "Add since into documentation for new method and class"} {"diff": " \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 static NAMESPACE ;", "msg_token": "added a missing license header"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n class DefaultJavaObjectFactory implements ObjectFactory { \n - private final Set < Class < ? > > classes = new HashSet < Class < ? > > ( ) ; \n private final Map < Class < ? > , Object > instances = new HashMap < Class < ? > , Object > ( ) ; \n \n public void start ( ) { \n class DefaultJavaObjectFactory implements ObjectFactory { \n } \n \n public void addClass ( Class < ? > clazz ) { \n - classes . add ( clazz ) ; \n } \n \n public < T > T getInstance ( Class < T > type ) {", "msg_token": "Remove dead code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n \n public class PyLocalPositionConverter implements PyPositionConverter { \n \n public class PyLocalPositionConverter implements PyPositionConverter { \n } \n \n @ notnull \n - final public PySourcePosition create ( @ notnull final String file , final int line ) { \n - final VirtualFile vFile = LocalFileSystem . getInstance ( ) . findFileByPath ( file ) ; \n - if ( vFile != null ) { \n - return new PyLocalSourcePosition ( vFile . getPath ( ) , line ) ; \n + final public PySourcePosition create ( @ notnull final String filePath , final int line ) { \n + File file = new File ( filePath ) ; \n + \n + if ( file . exists ( ) ) { \n + return new PyLocalSourcePosition ( file . getPath ( ) , line ) ; \n } \n else { \n - return new PyRemoteSourcePosition ( file , line ) ; \n + return new PyRemoteSourcePosition ( filePath , line ) ; \n } \n }", "msg_token": "Remove vfs access here"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class Realm implements Closeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public < E extends RealmObject > List < E > copyToRealm ( List < E > objects ) { \n + public < E extends RealmObject > Collection < E > copyToRealm ( Iterable < E > objects ) { \n if ( objects == null ) new ArrayList < E > ( ) ; \n \n - ArrayList < E > realmObjects = new ArrayList < E > ( objects . size ( ) ) ; \n + ArrayList < E > realmObjects = new ArrayList < E > ( ) ; \n for ( E object : objects ) { \n realmObjects . add ( copyToRealm ( object ) ) ; \n }", "msg_token": "Allow iterable collection types when using copyToRealm for lists"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class KotlinSignatureInJavaMarkerProvider implements LineMarkerProvider { \n } \n } \n catch ( AssertionError error ) { \n - LOG . error ( LogMessageEx . createEvent ( \n - STRING0 , \n - ExceptionUtil . getThrowableText ( error ) , \n - AttachmentPackage . attachmentByPsiFileAsArray ( psiFile ) \n - ) ) ; \n + LOG . warn ( STRING1 + ExceptionUtil . getThrowableText ( error ) ) ; \n } \n }", "msg_token": "do not report errors on exceptions"} {"diff": " public abstract class ESTestCase extends LuceneTestCase { \n } \n \n public static long randomPositiveLong ( ) { \n - long positiveLong = randomLong ( ) ; \n - while ( positiveLong == Long . MIN_VALUE ) { \n - positiveLong = randomLong ( ) ; \n - } \n - return Math . abs ( positiveLong ) ; \n + long randomLong ; \n + do { \n + randomLong = randomLong ( ) ; \n + } while ( randomLong == Long . MIN_VALUE ) ; \n + return Math . abs ( randomLong ) ; \n } \n \n public static float randomFloat ( ) {", "msg_token": "TEST adjusted EsTestCase randomPositiveLong"} {"diff": " public final class ClientMapProxy < K , V > extends ClientProxy implements IMap < K , V \n } \n \n @ override \n + public Map < K , Object > executeOnKeys ( Set < K > keys , EntryProcessor entryProcessor ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n + \n + @ override \n public boolean containsKey ( Object key ) { \n Data keyData = toData ( key ) ; \n MapContainsKeyRequest request = new MapContainsKeyRequest ( name , keyData ) ;", "msg_token": "Fixed a compiletime issue on the ClientMapProxy"} {"diff": " public abstract class OIndexTxAware < T > extends OIndexAbstractDelegate < T > { \n \n @ override \n public int remove ( final OIdentifiable iRID ) { \n - database . getTransaction ( ) . addIndexEntry ( delegate , super . getName ( ) , OPERATION . REMOVE , null , iRID ) ; \n + database . getTransaction ( ) . addIndexEntry ( delegate , super . getName ( ) , OPERATION . REMOVE , STRING0 , iRID ) ; \n return NUMBER0 ; \n } \n \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed issue on transactional remove of entry"} {"diff": " public class FileUtilsTest { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ test \n public void deletePathRecursivelyTest ( ) throws IOException {", "msg_token": "remove a period"} {"diff": " public class StandaloneScriptBacking implements Action < Closure < ? > > { \n CAPTURE_ACTION . set ( action ) ; \n } \n \n - SINGLE \n public void execute ( final Closure < ? > closure ) throws Exception { \n GroovyVersionCheck . ensureRequiredVersionUsed ( GroovySystem . getVersion ( ) ) ; \n Path scriptFile = ClosureUtil . findScript ( closure ) ;", "msg_token": "Remove lingering TODO that was for LaunchConfig"} {"diff": " class VisualCppStaticLibraryLinker extends CommandLineCppCompiler < LinkerSpec > { \n \n private static class VisualCppLinkerSpecArguments implements CompileSpecToArguments < LinkerSpec > { \n public void collectArguments ( LinkerSpec spec , ArgCollector collector ) { \n + collector . args ( spec . getArgs ( ) ) ; \n collector . args ( STRING0 + spec . getOutputFile ( ) . getAbsolutePath ( ) ) ; \n collector . args ( STRING1 ) ; \n for ( File file : spec . getSource ( ) ) { \n collector . args ( file . getAbsolutePath ( ) ) ; \n } \n - for ( File file : spec . getLibs ( ) ) { \n - collector . args ( file . getAbsolutePath ( ) . replaceFirst ( STRING2 , STRING3 ) ) ; \n - } \n - SINGLE \n - collector . args ( spec . getArgs ( ) ) ; \n } \n } \n }", "msg_token": "Tweak command line arguments for assembling static library with lib exe"} {"diff": " final class CameraConfigurationManager { \n \n parameters . setPreviewSize ( cameraResolution . x , cameraResolution . y ) ; \n camera . setParameters ( parameters ) ; \n + \n + Camera . Parameters afterParameters = camera . getParameters ( ) ; \n + Camera . Size afterSize = afterParameters . getPreviewSize ( ) ; \n + if ( afterSize != null && ( cameraResolution . x != afterSize . width || cameraResolution . y != afterSize . height ) ) { \n + Log . w ( TAG , STRING0 + cameraResolution . x + STRING1 + cameraResolution . y + \n + STRING2 + afterSize . width + STRING1 + afterSize . height ) ; \n + cameraResolution . x = afterSize . width ; \n + cameraResolution . y = afterSize . height ; \n + } \n } \n \n Point getCameraResolution ( ) {", "msg_token": "If camera fails to support its supported and chosen preview mode use its actual setting"} {"diff": " public class IncrementalIndexStorageAdapter implements StorageAdapter \n } \n \n while ( baseIter . hasNext ( ) ) { \n + if ( Thread . interrupted ( ) ) { \n + throw new QueryInterruptedException ( ) ; \n + } \n + \n currEntry . set ( baseIter . next ( ) ) ; \n \n if ( filterMatcher . matches ( ) ) {", "msg_token": "interrupt queries on incremental indexer"} {"diff": " public final class UpgradeService { \n finish ( ) ; \n } \n } \n + \n + @ override \n + public void onBackPressed ( ) { \n + SINGLE \n + } \n } \n \n COMMENT", "msg_token": "Don t allow the upgrade activity to be backed out of"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public abstract class WriteAction < T > extends BaseActionRunnable < T > { \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n public abstract class WriteAction < T > extends BaseActionRunnable < T > { \n } \n } \n catch ( Exception e ) { \n + if ( e instanceof InvocationTargetException ) { \n + Throwable cause = e . getCause ( ) ; \n + e = cause instanceof Exception ? ( Exception ) cause : new RuntimeException ( e ) ; \n + } \n if ( isSilentExecution ( ) ) { \n result . setThrowable ( e ) ; \n }", "msg_token": "platform improves trace readability by unwrapping InvocationTargetException in WriteAction"} {"diff": " public class ServiceBuilder { \n \n File sqlFile = new File ( sqlPath + STRING0 ) ; \n \n + if ( ! sqlFile . exists ( ) ) { \n + FileUtil . write ( sqlFile , StringPool . BLANK ) ; \n + } \n + \n String content = FileUtil . read ( sqlFile ) ; \n \n for ( int i = NUMBER0 ; i < _ejbList . size ( ) ; i ++ ) { \n public class ServiceBuilder { \n sb . append ( line ) . append ( STRING1 ) ; \n } \n \n + if ( appendNewTable ) { \n + sb . append ( STRING2 + newCreateTableString ) ; \n + } \n + \n br . close ( ) ; \n \n FileUtil . write ( sqlFile , sb . toString ( ) , true ) ;", "msg_token": "Didn t add table to empty sql"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SystemProperties { \n public static String getJavaVendor ( ) { \n return System . getProperty ( STRING0 ) ; \n } \n + \n + public static boolean is ( String key ) { \n + return getBooleanProperty ( key , false ) ; \n + } \n + \n + public static boolean has ( String key ) { \n + return System . getProperty ( key ) != null ; \n + } \n }", "msg_token": "is has methods"} {"diff": " public class DummyHolder extends PsiFileImpl implements PsiImportHolder { \n } \n \n public FileElement getTreeElement ( ) { \n + if ( myFileElement != null ) return myFileElement ; \n + \n synchronized ( PsiLock . LOCK ) { \n return getTreeElementNoLock ( ) ; \n } \n public abstract class PsiFileImpl extends NonSlaveRepositoryPsiElement implement \n } \n \n public FileElement getTreeElement ( ) { \n + final FileElement noLockAttempt = ( FileElement ) _getTreeElement ( ) ; \n + if ( noLockAttempt != null ) return noLockAttempt ; \n + \n synchronized ( PsiLock . LOCK ) { \n return getTreeElementNoLock ( ) ; \n }", "msg_token": "Reduce probability of taking lock in file s getTreeElement"} {"diff": " public class AjpProcessor extends AbstractAjpProcessor { \n COMMENT \n @ override \n protected void flush ( boolean explicit ) throws IOException { \n - if ( ! finished ) { \n + if ( explicit && ! finished ) { \n SINGLE \n output . write ( flushMessageArray ) ; \n }", "msg_token": "Do not send flush packet if explicit is false"} {"diff": " public class Drawer { \n this . mHeaderDivider = headerDivider ; \n return this ; \n } \n + SINGLE \n + protected View mFooterView ; \n + protected boolean mFooterDivider = true ; \n + \n + public Drawer withFooter ( View footerView ) { \n + this . mFooterView = footerView ; \n + return this ; \n + } \n + \n + public Drawer withFooter ( int footerViewRes ) { \n + if ( mActivity == null ) { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n + \n + if ( footerViewRes != - NUMBER0 ) { \n + SINGLE \n + this . mFooterView = mActivity . getLayoutInflater ( ) . inflate ( footerViewRes , null , false ) ; \n + } \n + \n + return this ; \n + } \n + \n + public Drawer withFooterDivider ( boolean footerDivider ) { \n + this . mFooterDivider = footerDivider ; \n + return this ; \n + } \n SINGLE \n protected int mSelectedItem = NUMBER1 ;", "msg_token": "add option to add and set a footerView"} {"diff": " public class WorldEditListener extends PluginListener { \n blockType = BlockType . fromID ( Integer . parseInt ( testID ) ) ; \n } catch ( NumberFormatException e ) { \n blockType = BlockType . lookup ( testID ) ; \n + if ( blockType == null ) { \n + int t = etc . getDataSource ( ) . getItem ( testID ) ; \n + if ( t > NUMBER0 && t < NUMBER1 ) { \n + blockType = BlockType . fromID ( t ) ; \n + } \n + } \n } \n \n if ( blockType == null ) {", "msg_token": "Commands now also use hMod to resolve block names into block IDs"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unncesssary import"} {"diff": " public class Peer { \n } \n \n if ( pingAfterGetData ) \n - sendMessage ( new Ping ( ( long ) Math . random ( ) * Long . MAX_VALUE ) ) ; \n + sendMessage ( new Ping ( ( long ) ( Math . random ( ) * Long . MAX_VALUE ) ) ) ; \n } \n \n COMMENT \n public class Peer { \n COMMENT \n COMMENT \n public ListenableFuture < Long > ping ( ) throws IOException , ProtocolException { \n - return ping ( ( long ) Math . random ( ) * Long . MAX_VALUE ) ; \n + return ping ( ( long ) ( Math . random ( ) * Long . MAX_VALUE ) ) ; \n } \n \n protected ListenableFuture < Long > ping ( long nonce ) throws IOException , ProtocolException {", "msg_token": "Fix a bug that would cause ping nonces to always be set to zero thus screwing up perceived ping times"} {"diff": " public class JobGraphGenerator implements Visitor < OptimizerNode > { \n inConnOfInput = new LinkedList < PactConnection > ( ) ; \n SINGLE \n SINGLE \n - for ( PactConnection inConn : ( ( UnionNode ) input ) . getUnionedIncommingConnections ( ) ) { \n + for ( PactConnection inConn : input . getIncomingConnections ( ) ) { \n inConnOfInput . add ( new PactConnection ( connection , inConn . getSourcePact ( ) , connection . getTargetPact ( ) ) ) ; \n } \n } \n public class UnionNode extends OptimizerNode { \n return true ; \n } \n \n - public List < PactConnection > getUnionedIncommingConnections ( ) { \n - return inConns ; \n - } \n - \n }", "msg_token": "Removed unnecessary method from Unionnode"} {"diff": " public abstract class AbstractTestQueryFramework \n } \n \n @ afterclass ( alwaysRun = true ) \n - private void close ( ) \n + public void close ( ) \n throws Exception \n { \n try {", "msg_token": "Make close in AbstractTestQueryFramework callable by TestNG"} {"diff": " public class StructuralSearchTest extends StructuralSearchTestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING2 + \n STRING3 + \n STRING4 + \n STRING5 +", "msg_token": "fix duplicate line mistake"} {"diff": " public abstract class MixinWorld implements World , IMixinWorld { \n } \n \n @ override \n + public Location getSpawnLocation ( ) { \n + return new Location ( this , this . worldInfo . getSpawnX ( ) , this . worldInfo . getSpawnY ( ) , this . worldInfo . getSpawnZ ( ) ) ; \n + } \n + \n + @ override \n public Context getContext ( ) { \n if ( this . worldContext == null ) { \n this . worldContext = new Context ( Context . WORLD_KEY , getName ( ) ) ;", "msg_token": "Implement World getSpawnLocation"} {"diff": " public class Script { \n } catch ( Exception e1 ) { \n SINGLE \n SINGLE \n - log . warn ( STRING0 , e1 . toString ( ) ) ; \n - SINGLE \n - SINGLE \n + \n + SINGLE \n + SINGLE \n + if ( ! e1 . getMessage ( ) . contains ( STRING1 ) ) \n + log . warn ( STRING0 , e1 . toString ( ) ) ; \n } \n \n if ( opcode == OP_CHECKSIG )", "msg_token": "Suppress noisy log line during signing"} {"diff": " public class RestClusterHealthAction extends BaseRestHandler { \n XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) ; \n builder . startObject ( ) ; \n \n + builder . field ( STRING0 , response . clusterName ( ) ) ; \n builder . field ( STRING1 , response . status ( ) . name ( ) . toLowerCase ( ) ) ; \n builder . field ( STRING2 , response . timedOut ( ) ) ; \n builder . field ( STRING3 , response . numberOfNodes ( ) ) ;", "msg_token": "add cluster name to cluster health response"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CoreJarVirtualFile extends VirtualFile { \n \n @ override \n public VirtualFile [ ] getChildren ( ) { \n - throw new UnsupportedOperationException ( STRING0 ) ; \n + List < VirtualFile > result = new ArrayList < VirtualFile > ( ) ; \n + final String [ ] children = myHandler . list ( this ) ; \n + for ( String child : children ) { \n + final VirtualFile childFile = myHandler . findFileByPath ( myPathInJar + STRING1 + child ) ; \n + result . add ( childFile ) ; \n + } \n + return result . toArray ( new VirtualFile [ result . size ( ) ] ) ; \n } \n \n @ notnull", "msg_token": "implement CoreJarVirtualFile getChildren"} {"diff": " public class SCCSRepository extends Repository { \n private static ScmChecker sccsBinary = new ScmChecker ( new String [ ] { \n System . getProperty ( STRING0 , STRING1 ) , \n STRING2 , STRING2 } ) ; \n + private static ScmChecker csscBinary = new ScmChecker ( new String [ ] { \n + System . getProperty ( STRING0 , STRING1 ) , \n + STRING3 } ) ; \n \n private Map < String , String > authors_cache ; \n \n public class SCCSRepository extends Repository { \n \n @ override \n public boolean isWorking ( ) { \n - return sccsBinary . available ; \n + return sccsBinary . available || csscBinary . available ; \n } \n \n @ override", "msg_token": "Detect GNU CSSC in addition to SCCS"} {"diff": " public class TimeTextView extends TextView { \n } \n } \n \n + @ override \n + protected void onAttachedToWindow ( ) { \n + super . onAttachedToWindow ( ) ; \n + \n + if ( mTime != null ) { \n + updateTimeText ( ) ; \n + } \n + } \n + \n + @ override \n + protected void onDetachedFromWindow ( ) { \n + super . onDetachedFromWindow ( ) ; \n + \n + removeCallbacks ( mUpdateTimeTextRunnable ) ; \n + } \n + \n protected String formatTime ( ZonedDateTime time ) { \n return TimeUtils . formatDateTime ( time , getContext ( ) ) ; \n }", "msg_token": "Fix activity leak due to periodic runnable in TimeTextView"} {"diff": " class ServerDialback { \n return valid ; \n } \n catch ( Exception e ) { \n - Log . warn ( STRING0 , e ) ; \n + Log . warn ( STRING1 + hostname , e ) ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added hostname information to warn log when failing to connect to AS"} {"diff": " public class HomematicGenericBindingProvider extends AbstractGenericBindingProvi \n \n @ override \n protected void addBindingConfig ( Item item , BindingConfig config ) { \n - super . addBindingConfig ( item , config ) ; \n items . put ( item . getName ( ) , item ) ; \n + super . addBindingConfig ( item , config ) ; \n } \n \n @ override", "msg_token": "Fixed wrong restored HomematicGenericItemProvider fix"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class SPDYServerConnector extends SelectChannelConnector \n { \n + private static final Logger logger = LoggerFactory . getLogger ( SPDYServerConnector . class ) ; \n + \n SINGLE \n private final Map < String , AsyncConnectionFactory > factories = new LinkedHashMap < > ( ) ; \n private final Queue < Session > sessions = new ConcurrentLinkedQueue < > ( ) ; \n public class SPDYServerConnector extends SelectChannelConnector \n super . doStart ( ) ; \n defaultConnectionFactory = new ServerSPDYAsyncConnectionFactory ( SPDY . V2 , getByteBufferPool ( ) , getExecutor ( ) , scheduler , listener ) ; \n putAsyncConnectionFactory ( STRING0 , defaultConnectionFactory ) ; \n + logger . info ( STRING1 ) ; \n } \n \n @ override", "msg_token": "Added log statement that SPDY is experimental"} {"diff": " public class Tool { \n COMMENT \n public static GrammarAST findOptionValueAST ( GrammarRootAST root , String option ) { \n GrammarAST options = ( GrammarAST ) root . getFirstChildWithType ( ANTLRParser . OPTIONS ) ; \n - if ( options != null ) { \n + if ( options != null && options . getChildCount ( ) > NUMBER0 ) { \n for ( Object o : options . getChildren ( ) ) { \n GrammarAST c = ( GrammarAST ) o ; \n if ( c . getType ( ) == ANTLRParser . ASSIGN &&", "msg_token": "Fix NPE revealed by updated testing method"} {"diff": " import NAMESPACE ; \n public class FromFtpToMockTest extends FtpServerTestSupport { \n protected MockEndpoint resultEndpoint ; \n protected String expectedBody = STRING0 ; \n - protected String port = STRING1 ; \n - protected String ftpUrl = STRING2 + port + STRING3 ; \n + protected String port = STRING4 ; \n + protected String ftpUrl = STRING2 + port + STRING5 ; \n \n public void testFtpRoute ( ) throws Exception { \n MockEndpoint resultEndpoint = getMockEndpoint ( STRING6 ) ; \n public class FromFtpToMockTest extends FtpServerTestSupport { \n SINGLE \n \n template . sendBodyAndHeader ( ftpUrl , expectedBody , STRING7 , NUMBER0 ) ; \n + SINGLE \n + Thread . sleep ( NUMBER1 ) ; \n + \n resultEndpoint . assertIsSatisfied ( ) ; \n \n - SINGLE \n Thread . sleep ( NUMBER1 ) ; \n + \n + \n } \n \n protected RouteBuilder createRouteBuilder ( ) throws Exception {", "msg_token": "Fixed the test error of FromFtpToMockTest"} {"diff": " public class NioEndpoint { \n SINGLE \n reg ( sk , attachment , NUMBER0 ) ; \n SINGLE \n - if ( sk . isReadable ( ) ) \n - if ( ! processSocket ( channel , SocketStatus . OPEN_READ ) ) processSocket ( channel , SocketStatus . DISCONNECT ) ; \n - else \n - if ( ! processSocket ( channel , SocketStatus . OPEN_WRITE ) ) processSocket ( channel , SocketStatus . DISCONNECT ) ; \n + if ( sk . isReadable ( ) ) { \n + if ( ! processSocket ( channel , SocketStatus . OPEN_READ ) ) \n + processSocket ( channel , SocketStatus . DISCONNECT ) ; \n + } else { \n + if ( ! processSocket ( channel , SocketStatus . OPEN_WRITE ) ) \n + processSocket ( channel , SocketStatus . DISCONNECT ) ; \n + } \n } else { \n result = false ; \n }", "msg_token": "add brackets to clarify what were trying to do"} {"diff": " public class NotificationsListFragment extends Fragment \n public void onEventMainThread ( NotificationEvents . NoteModerationFailed event ) { \n if ( isAdded ( ) ) { \n ToastUtils . showToast ( getActivity ( ) , R . string . error_moderate_comment , Duration . LONG ) ; \n - \n - EventBus . getDefault ( ) . removeStickyEvent ( NotificationEvents . NoteModerationFailed . class ) ; \n } \n + \n + EventBus . getDefault ( ) . removeStickyEvent ( NotificationEvents . NoteModerationFailed . class ) ; \n } \n }", "msg_token": "Move the sticky event removal outside of isAdded call"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n public class ProcessWaitForTest { \n @ test ( timeout = NUMBER0 ) \n public void notification ( ) throws IOException , InterruptedException { \n - File jvm = new File ( System . getProperty ( STRING0 ) , STRING1 ) ; \n + File jvm = new File ( System . getProperty ( STRING0 ) + ( SystemInfo . isWindows ? STRING2 : STRING3 ) ) ; \n assertTrue ( jvm . canExecute ( ) ) ; \n \n final Semaphore semaphore = new Semaphore ( ) ;", "msg_token": "fixed test for windows"} {"diff": " import NAMESPACE ; \n COMMENT \n public class EditPreferences extends TodorooPreferenceActivity { \n \n - private static final String SUPPORT_URL = STRING0 ; SINGLE \n + private static final String SUPPORT_URL = STRING1 ; SINGLE \n \n private static final int APPEARANCE_PREFERENCE = NUMBER0 ;", "msg_token": "Updated FAQ to point to helpshift"} {"diff": " public class MainService extends Service { \n unregisterReceiver ( mDialogReceiver ) ; \n unregisterReceiver ( mBroadcastReceiver ) ; \n MainController . destroy ( ) ; \n + super . onDestroy ( ) ; \n } \n \n private void cancelCurrentNotification ( ) {", "msg_token": "Call super onDestroy"} {"diff": " public class SlowQueryReportJmx extends SlowQueryReport implements NotificationE \n \n \n public ObjectName getObjectName ( Class < ? > clazz , String poolName ) throws MalformedObjectNameException { \n - ObjectName oname = null ; \n - if ( getProperties ( ) . containsKey ( objectNameAttribute ) ) { \n - oname = new ObjectName ( getProperties ( ) . get ( objectNameAttribute ) . getValue ( ) ) ; \n + ObjectName oname ; \n + Map < String , InterceptorProperty > properties = getProperties ( ) ; \n + if ( properties != null && properties . containsKey ( objectNameAttribute ) ) { \n + oname = new ObjectName ( properties . get ( objectNameAttribute ) . getValue ( ) ) ; \n } else { \n oname = new ObjectName ( ConnectionPool . POOL_JMX_TYPE_PREFIX + clazz . getName ( ) + STRING0 + poolName ) ; \n }", "msg_token": "Fix NPE in TestSlowQueryReport test"} {"diff": " public class IndexRemoveJob extends IndexUpdateJob implements ScanJob { \n public Predicate < StaticBuffer > getKeyFilter ( ) { \n if ( isGlobalGraphIndex ( ) ) { \n assert graphIndexId > NUMBER0 ; \n - return ( k - > indexSerializer . getIndexIdFromKey ( k ) == graphIndexId ) ; \n + return ( k - > { \n + try { \n + return indexSerializer . getIndexIdFromKey ( k ) == graphIndexId ; \n + } catch ( RuntimeException e ) { \n + log . debug ( STRING0 , k , e ) ; \n + return false ; \n + } \n + } ) ; \n } else { \n return buffer - > { \n long vertexId = idManager . getKeyID ( buffer ) ;", "msg_token": "Allow empty relation type name in IndexRemoveJob"} {"diff": " public class LiveTemplateSettingsEditor extends JPanel { \n } \n \n private void updateHighlighter ( ) { \n - TemplateContext templateContext = new TemplateContext ( ) ; \n - TemplateEditorUtil . setHighlighter ( myTemplateEditor , templateContext ) ; \n + for ( TemplateContextType contextType : myContext . keySet ( ) ) { \n + final Boolean enabled = myContext . get ( contextType ) ; \n + if ( enabled != null && enabled . booleanValue ( ) ) { \n + TemplateContext contextByType = new TemplateContext ( ) ; \n + contextByType . setEnabled ( contextType , true ) ; \n + TemplateEditorUtil . setHighlighter ( myTemplateEditor , contextByType ) ; \n + break ; \n + } \n + } \n ( ( EditorEx ) myTemplateEditor ) . repaint ( NUMBER0 , myTemplateEditor . getDocument ( ) . getTextLength ( ) ) ; \n }", "msg_token": "restore syntax highlighting in live templates"} {"diff": " public abstract class AbstractWebSocketConnection extends AbstractConnection imp \n public AbstractWebSocketConnection ( EndPoint endp , Executor executor , Scheduler scheduler , WebSocketPolicy policy , ByteBufferPool bufferPool ) \n { \n super ( endp , executor , EXECUTE_ONFILLABLE ) ; SINGLE \n + endp . setIdleTimeout ( policy . getIdleTimeout ( ) ) ; \n this . policy = policy ; \n this . bufferPool = bufferPool ; \n this . generator = new Generator ( policy , bufferPool ) ;", "msg_token": "Websocket Server Connection needs session idle timeouts"} {"diff": " class ASTCbind extends ASTOp { \n new Type [ ] { Type . ARY , Type . varargs ( Type . dblary ( ) ) } , \n OPF_PREFIX , \n OPP_PREFIX , OPA_RIGHT ) ; } \n - @ override ASTOp make ( ) { return this ; } \n + @ override ASTOp make ( ) { return ( ASTOp ) clone ( ) ; } \n @ override void apply ( Env env , int argcnt , ASTApply apply ) { \n Vec vmax = null ; \n for ( int i = NUMBER0 ; i < argcnt - NUMBER1 ; i ++ ) {", "msg_token": "Fix bug in cbind"} {"diff": " public final class InodeDirectoryTests { \n } \n \n @ test \n - public void reverseIdTest ( ) { \n + public void deleteInodeTest ( ) { \n InodeDirectory inode1 = createInodeDirectory ( ) ; \n - inode1 . reverseId ( ) ; \n - Assert . assertEquals ( - NUMBER0 , inode1 . getId ( ) ) ; \n + Assert . assertEquals ( false , inode1 . isDeleted ( ) ) ; \n + inode1 . delete ( ) ; \n + Assert . assertEquals ( true , inode1 . isDeleted ( ) ) ; \n } \n \n @ test", "msg_token": "Remove usage of reverseId in test"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Removed incorrect import"} {"diff": " public interface Constr { \n } \n \n static void use ( ) { \n - ImRev rev = new ImRev ( NUMBER0 , NUMBER1 ) ; \n - \n - ImBuild build = new ImBuild ( STRING0 , STRING1 ) ; \n + new ImRev ( NUMBER0 , NUMBER1 ) ; \n + new ImBuild ( STRING0 , STRING1 ) ; \n } \n }", "msg_token": "removed unused vars"} {"diff": " import NAMESPACE ; \n \n Excluded INSTANCE = new ExcludedLiteral ( ) ; \n \n - final class ExcludedLiteral extends AnnotationLiteral < Excluded > implements Excluded { \n + @ vetoed \n + final class ExcludedLiteral extends AnnotationLiteral < Excluded > implements Excluded { \n } \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ vetoed \n public final class RoutesXml { \n - \n + \n private RoutesXml ( ) { \n SINGLE \n }", "msg_token": "Add missing non bean classes vetoing"} {"diff": " public class PermissionsResolverManager implements PermissionsResolver { \n } \n \n public void findResolver ( ) { \n + if ( tryDinnerPerms ( ) ) return ; \n if ( tryPluginPermissionsResolver ( ) ) return ; \n if ( tryNijiPermissions ( ) ) return ; \n if ( tryFlatFilePermissions ( ) ) return ; \n - if ( tryDinnerPerms ( ) ) return ; \n \n perms = new ConfigurationPermissionsResolver ( config ) ; \n logger . info ( name + STRING0 ) ;", "msg_token": "Changed the DinnerPerms priority to not be overridden by permissions bridges"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AsyncSenderImpl implements Sender { \n new ChannelListener < StreamSinkChannel > ( ) { \n @ override \n public void handleEvent ( final StreamSinkChannel channel ) { \n - callback . onComplete ( exchange , AsyncSenderImpl . this ) ; \n + if ( callback != null ) { \n + callback . onComplete ( exchange , AsyncSenderImpl . this ) ; \n + } \n } \n } , new ChannelExceptionHandler < StreamSinkChannel > ( ) { \n @ override \n public void handleException ( final StreamSinkChannel channel , final IOException exception ) { \n - invokeOnException ( callback , exception ) ; \n + try { \n + if ( callback != null ) { \n + invokeOnException ( callback , exception ) ; \n + } \n + } finally { \n + IoUtils . safeClose ( channel ) ; \n + } \n } \n } \n ) ) ;", "msg_token": "Fix potential NPE"} {"diff": " public class ProgressPanel \n this . validate ( ) ; \n } \n \n - @ override \n public void actionPerformed ( ActionEvent arg0 ) \n { \n this . searchThread . cancel ( ) ; \n public class StrategiesList \n COMMENT \n COMMENT \n COMMENT \n - @ override \n public Object getElementAt ( int row ) \n { \n return this . data . get ( row ) ; \n public class StrategiesList \n COMMENT \n COMMENT \n COMMENT \n - @ override \n public int getSize ( ) \n { \n return this . data . size ( ) ; \n public class StrategiesList \n extends JLabel \n implements ListCellRenderer \n { \n - @ override \n COMMENT \n COMMENT \n COMMENT \n public class StrategiesList \n return this ; \n } \n } \n - } \n + } \n +", "msg_token": "Remove override lines in the dictaccregwizz plugin"} {"diff": " public class MessageParserHook implements MessagePreReceiveHookIF { \n COMMENT \n COMMENT \n COMMENT \n - Main . drools . evaluate ( message ) ; \n + if ( Main . drools != null ) \n + { \n + Main . drools . evaluate ( message ) ; \n + } \n } \n }", "msg_token": "Do nothing if drools not enabled"} {"diff": " public abstract class Optional < T > implements BaseHolder < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n SINGLE \n @ deprecated @ nullable public abstract T get ( @ nullable T defaultValue ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Javadoc error in Optional resulting from reference to not visible BaseHolder methods"} {"diff": " public class PresenceGenerator extends AbstractGenerator { \n Element cap = packet . addChild ( STRING0 , \n STRING1 ) ; \n cap . setAttribute ( STRING2 , STRING3 ) ; \n - cap . setAttribute ( STRING4 , STRING5 ) ; \n + cap . setAttribute ( STRING4 , STRING6 ) ; \n cap . setAttribute ( STRING7 , capHash ) ; \n } \n return packet ; \n public class PresenceGenerator extends AbstractGenerator { \n packet . setAttribute ( STRING8 , STRING9 ) ; \n return packet ; \n } \n - } \n + }", "msg_token": "Fix typos in URL to the project"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - @ requestscoped \n + @ singleton \n public class MySingletonScopedBean { \n public String getID ( ) { \n return this + STRING0 ;", "msg_token": "Fixed scope of MySingletonScopedBean to really be Singelton"} {"diff": " public class HtmlToPdfMojo extends AbstractMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private String page ; \n public class HtmlToPdfMojo extends AbstractMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private String pdf ; \n public class HtmlToPdfMojo extends AbstractMojo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed deprecation warning when building the maven tooling"} {"diff": " public class JettyWebSocketUtil { \n WebSocketFactory webSocketFactory = new WebSocketFactory ( new WebSocketFactory . Acceptor ( ) { \n public boolean checkOrigin ( HttpServletRequest request , String origin ) { \n SINGLE \n - logger . debug ( STRING0 , request . getRequestURI ( ) , origin ) ; \n + logger . trace ( STRING0 , request . getRequestURI ( ) , origin ) ; \n return true ; \n } \n \n public org . eclipse . jetty . websocket . WebSocket doWebSocketConnect ( HttpServletRequest request , String protocol ) { \n - logger . debug ( STRING1 , request . getRequestURI ( ) , protocol ) ; \n + logger . trace ( STRING1 , request . getRequestURI ( ) , protocol ) ; \n return new JettyWebSocketHandler ( AtmosphereRequest . loadInMemory ( request , false ) , config . framework ( ) , config . framework ( ) . getWebSocketProtocol ( ) ) ; \n } \n } ) ;", "msg_token": "Increase the log since Jetty API is table enough"} {"diff": " public class Directories \n COMMENT \n public static final String DATA_DIR_PROPERTY_NAME = STRING0 ; \n COMMENT \n - public static final String DATA_DIR_PROPERTY_NAME_DEFAULT = STRING1 ; \n + public static final String DATA_DIR_PROPERTY_NAME_DEFAULT = System . getProperty ( STRING2 ) + STRING3 ; \n \n COMMENT \n public static final String ADMIN_DIR_PROPERTY_NAME = STRING4 ; \n COMMENT \n - public static final String ADMIN_DIR_PROPERTY_NAME_DEFAULT = STRING5 ; \n + public static final String ADMIN_DIR_PROPERTY_NAME_DEFAULT = System . getProperty ( STRING2 ) + STRING6 ; \n \n public static final String DATA_DIR = System . getProperty ( DATA_DIR_PROPERTY_NAME , DATA_DIR_PROPERTY_NAME_DEFAULT ) ; \n public static final String ADMIN_DIR = System . getProperty ( ADMIN_DIR_PROPERTY_NAME , ADMIN_DIR_PROPERTY_NAME_DEFAULT ) ;", "msg_token": "changed default data and admin dir to use java io tmpdir"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class LocalePicker extends ListFragment { \n @ override \n public void onActivityCreated ( final Bundle savedInstanceState ) { \n super . onActivityCreated ( savedInstanceState ) ; \n + \n + final int [ ] attrs = { android . R . attr . colorBackground } ; \n + final TypedArray a = getActivity ( ) . getTheme ( ) . obtainStyledAttributes ( attrs ) ; \n + getListView ( ) . setBackgroundColor ( a . getColor ( NUMBER0 , android . R . color . transparent ) ) ; \n + a . recycle ( ) ; \n + \n final ArrayAdapter < LocaleInfo > adapter = constructAdapter ( getActivity ( ) , \n isInDeveloperMode ( ) ) ; \n setListAdapter ( adapter ) ;", "msg_token": "Fix LocalePicker background"} {"diff": " public abstract class AbstractGroupProvider implements GroupProvider { \n COMMENT \n COMMENT \n @ override \n - public Group createGroup ( String name ) { \n + public Group createGroup ( String name ) throws GroupAlreadyExistsException { \n throw new UnsupportedOperationException ( STRING0 ) ; \n }", "msg_token": "Abstract implemenation should not change signature"} {"diff": " public class GTFSPatternHopFactory { \n private Geometry getHopGeometry ( AgencyAndId shapeId , StopTime st0 , StopTime st1 , \n Vertex startJourney , Vertex endJourney ) { \n \n - if ( shapeId == null || shapeId . getId ( ) == null ) \n + if ( shapeId == null || shapeId . getId ( ) == null || shapeId . getId ( ) . equals ( STRING0 ) ) \n return null ; \n \n double startDistance = st0 . getShapeDistTraveled ( ) ; \n public class GTFSPatternHopFactory { \n LinearLocation endCoord = lol . indexOf ( endJourney . getCoordinate ( ) ) ; \n \n double distanceFrom = startCoord . getSegmentLength ( line ) ; \n - double distanceTo = startCoord . getSegmentLength ( line ) ; \n + double distanceTo = endCoord . getSegmentLength ( line ) ; \n \n return getSegmentGeometry ( shapeId , lol , startCoord , endCoord , distanceFrom , distanceTo ) ; \n }", "msg_token": "fix bug in cases of trips without shapes fix thinko"} {"diff": " public class TabsTag extends BodyTagSupport { \n currentTab = ( Element ) AdminConsole . getModel ( ) . selectSingleNode ( \n STRING0 + pageID + STRING1 ) ; \n } \n - Log . debug ( STRING2 + pageID + STRING3 + subPageID + STRING4 + currentTab + STRING5 ) ; \n for ( int i = NUMBER0 ; i < tabs . size ( ) ; i ++ ) { \n Element tab = ( Element ) tabs . get ( i ) ; \n String value = body ;", "msg_token": "Removed leftover debug statement"} {"diff": " public class NameTable { \n DeclarationDescriptor containingDeclaration = classDescriptor . getContainingDeclaration ( ) ; \n if ( containingDeclaration instanceof NamespaceDescriptor ) { \n NamespaceDescriptor namespaceDescriptor = ( NamespaceDescriptor ) containingDeclaration ; \n - builder . setParentQualifiedName ( getFqNameIndex ( namespaceDescriptor ) ) ; \n + if ( DescriptorUtils . isRootNamespace ( namespaceDescriptor ) ) { \n + builder . clearParentQualifiedName ( ) ; \n + } \n + else { \n + builder . setParentQualifiedName ( getFqNameIndex ( namespaceDescriptor ) ) ; \n + } \n } \n else if ( containingDeclaration instanceof ClassDescriptor ) { \n ClassDescriptor outerClass = ( ClassDescriptor ) containingDeclaration ; \n public class NameTable { \n \n return qualifiedNames . intern ( builder ) ; \n } \n - \n }", "msg_token": "Fix serialization of root namespace"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "removed unused import"} {"diff": " class LookupCellRenderer implements ListCellRenderer { \n } \n else { \n Object o = item . getObject ( ) ; \n + if ( o instanceof LookupValueWithPsiElement ) { \n + o = ( ( LookupValueWithPsiElement ) o ) . getElement ( ) ; \n + } \n if ( o instanceof PsiElement ) { \n final PsiElement element = ( PsiElement ) o ; \n if ( element . isValid ( ) ) {", "msg_token": "deprecated attr shows when lookup item value contains psi element"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase \n { \n public class GremlinPluginFunctionalTest extends AbstractRestFunctionalTestBase \n assertTrue ( response . contains ( STRING0 ) ) ; \n } \n \n - SINGLE \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ test \n @ documented \n @ graph ( { STRING1 , STRING2 , STRING3 } ) \n public void modify_the_graph_while_traversing ( ) throws UnsupportedEncodingException , Exception \n { \n + data . get ( ) ; \n + gen ( ) . addSnippet ( STRING4 , AsciidocHelper . createGraphViz ( STRING5 , graphdb ( ) , STRING6 + gen . get ( ) . getTitle ( ) ) ) ; \n assertTrue ( getNode ( STRING7 ) . hasRelationship ( ) ) ; \n String script = STRING8 ; \n String response = doRestCall ( script , Status . OK ) ;", "msg_token": "better starting graph"} {"diff": " public abstract class TodoTreeBuilder extends AbstractTreeBuilder { \n } \n else if ( child instanceof PsiFile ) { \n files . add ( ( PsiFile ) child ) ; \n + return ; \n } \n else { \n collectFilesForElement ( child , files ) ;", "msg_token": "speed up todo"} {"diff": " class JavacFileManager extends ForwardingJavaFileManager < StandardJavaFileManager \n \n @ override \n public String inferBinaryName ( Location location , JavaFileObject file ) { \n - return super . inferBinaryName ( \n - location , \n - file instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) file ) . getOriginal ( ) : file \n - ) ; \n + return super . inferBinaryName ( location , unwrapFileObject ( file ) ) ; \n } \n \n public void setLocation ( Location location , Iterable < ? extends File > path ) throws IOException { \n class JavacFileManager extends ForwardingJavaFileManager < StandardJavaFileManager \n return a instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) a ) . getOriginal ( ) : a ; \n } \n \n + private static JavaFileObject unwrapFileObject ( JavaFileObject a ) { \n + return a instanceof TransformableJavaFileObject ? ( ( TransformableJavaFileObject ) a ) . getOriginal ( ) : a ; \n + } \n + \n @ override \n public FileObject getFileForInput ( Location location , String packageName , String relativeName ) throws IOException { \n checkCanceled ( ) ;", "msg_token": "encapsulate unwrap file object operation in dedicated methods"} {"diff": " public interface ParameterParser { \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 COMMENT \n COMMENT \n String getAncestorPath ( URI uri , int depth ) throws URIException ;", "msg_token": "Address some JavaDoc errors in ParameterParser"} {"diff": " public class ReadCallback < TMessage , TResolved > implements IAsyncCallback < TMessag \n if ( ! await ( command . getTimeout ( ) , TimeUnit . MILLISECONDS ) ) \n { \n SINGLE \n - int acks = received . get ( ) ; \n - if ( resolver . isDataPresent ( ) && acks >= blockfor ) \n - acks = blockfor - NUMBER0 ; \n ReadTimeoutException ex = new ReadTimeoutException ( consistencyLevel , received . get ( ) , blockfor , resolver . isDataPresent ( ) ) ; \n if ( logger . isDebugEnabled ( ) ) \n logger . debug ( STRING0 , ex . toString ( ) ) ;", "msg_token": "remove dead code"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public enum MacroBuilder { \n return macro ( compilePhase , false , source , context , resultClass ) ; \n } \n \n + private final static AtomicInteger COUNTER = new AtomicInteger ( ) ; \n + \n @ suppresswarnings ( STRING0 ) \n public < T > T macro ( CompilePhase compilePhase , boolean asIs , String source , final Map < MacroSubstitutionKey , Closure < Expression > > context , Class < T > resultClass ) { \n boolean isClosure = source . startsWith ( STRING1 ) ; \n - final String label = isClosure ? STRING2 + System . currentTimeMillis ( ) + STRING3 : STRING4 ; \n + final String label = isClosure ? STRING2 + COUNTER . incrementAndGet ( ) + STRING3 : STRING4 ; \n final String labelledSource = label + source ; \n final int linesOffset = NUMBER0 ; \n final int columnsOffset = label . length ( ) + ( isClosure ? NUMBER0 : NUMBER1 ) ; SINGLE", "msg_token": "Avoid usage of System currentTimeMillis which is both slow and not stable across various OSes"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public class StringDataFormatTest extends SpringTestSupport { \n \n protected AbstractXmlApplicationContext createApplicationContext ( ) { \n - return new ClassPathXmlApplicationContext ( STRING0 ) ; \n + return new ClassPathXmlApplicationContext ( STRING1 ) ; \n } \n \n public void testMarshalString ( ) throws Exception {", "msg_token": "Fixed failing unit test and fixed spelling"} {"diff": " public class SSTableReader extends SSTable \n String partitionerName = partitioner . getClass ( ) . getCanonicalName ( ) ; \n if ( sstableMetadata . partitioner != null && ! partitionerName . equals ( sstableMetadata . partitioner ) ) \n { \n - logger . error ( String . format ( STRING0 , \n + logger . error ( String . format ( STRING1 , \n descriptor , sstableMetadata . partitioner , partitionerName ) ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "improve error message on partitioner mismatch"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n final long now = SystemClock . uptimeMillis ( ) ; \n event = MotionEvent . obtain ( now , now , \n MotionEvent . ACTION_CANCEL , FLOAT0 , FLOAT0 , NUMBER0 ) ; \n + event . setSource ( InputDevice . SOURCE_TOUCHSCREEN ) ; \n syntheticEvent = true ; \n }", "msg_token": "Synthetic cancel event should have touchscreen source"} {"diff": " public class CppCompileAction extends AbstractAction implements IncludeScannable \n public String computeKey ( ) { \n Fingerprint f = new Fingerprint ( ) ; \n f . addUUID ( actionClassId ) ; \n + f . addStringMap ( getEnvironment ( ) ) ; \n f . addStrings ( getArgv ( ) ) ; \n \n COMMENT", "msg_token": "Add CppCompileAction s environment variables to its computeKey method"} {"diff": " public class HadoopStoreJobRunner extends Configured implements Tool { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 ) ; \n + STRING3 , \n + STRING4 ) ; \n if ( missing . size ( ) > NUMBER0 ) { \n System . err . println ( STRING5 + Joiner . on ( STRING6 ) . join ( missing ) \n + STRING7 ) ; \n public class HadoopStoreJobRunner extends Configured implements Tool { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 ) ; \n + STRING3 , \n + STRING4 ) ; \n if ( missing . size ( ) > NUMBER0 ) { \n System . err . println ( STRING5 + Joiner . on ( STRING6 ) . join ( missing ) \n + STRING7 ) ;", "msg_token": "Added temp directory parameter to list of compulsory params for the hadoop builder jobs"} {"diff": " public class NUIEditorScreen extends CoreScreenLayer { \n public boolean isEscapeToCloseAllowed ( ) { \n return false ; \n } \n - \n + \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n @ registersystem \n + @ share ( NUIEditorSystem . class ) \n public class NUIEditorSystem extends BaseComponentSystem { \n private static final String NUI_EDITOR_URN = STRING0 ;", "msg_token": "Make editor usable in game"} {"diff": " import NAMESPACE ; \n @ component \n public class CacheManagerCheck implements CommandLineRunner { \n \n - private static final Logger logger = LoggerFactory \n - . getLogger ( SampleCacheApplication . class ) ; \n + private static final Logger logger = LoggerFactory . getLogger ( CacheManagerCheck . class ) ; \n \n private final CacheManager cacheManager ;", "msg_token": "Fix logger classname"} {"diff": " import NAMESPACE ; \n \n public class AbstractComponentSpec implements ComponentSpec { \n private final ComponentSpecIdentifier identifier ; \n - private final String typeName ; \n + private final Class < ? > publicType ; \n \n public AbstractComponentSpec ( ComponentSpecIdentifier identifier , Class < ? > publicType ) { \n - this . typeName = publicType . getSimpleName ( ) ; \n + this . publicType = publicType ; \n this . identifier = identifier ; \n } \n \n public class AbstractComponentSpec implements ComponentSpec { \n } \n \n protected String getTypeName ( ) { \n - return typeName ; \n + return publicType . getSimpleName ( ) ; \n } \n \n public String getDisplayName ( ) {", "msg_token": "Don t calculate component type name until required"} {"diff": " public class DirectoryFragment extends Fragment { \n @ override \n public boolean onCreateActionMode ( ActionMode mode , Menu menu ) { \n mode . getMenuInflater ( ) . inflate ( R . menu . mode_directory , menu ) ; \n + mode . setTitle ( getResources ( ) \n + . getString ( R . string . mode_selected_count , mCurrentView . getCheckedItemCount ( ) ) ) ; \n return true ; \n }", "msg_token": "Set ActionMode title to the number of selected files"} {"diff": " public final class PDF417 { \n SINGLE \n if ( sourceCodeWords + errorCorrectionCodeWords + NUMBER0 > NUMBER1 ) { SINGLE \n throw new WriterException ( \n - STRING0 + msg . length ( ) + STRING1 ) ; \n + STRING2 + msg . length ( ) + STRING1 ) ; \n } \n int n = sourceCodeWords + pad + NUMBER0 ; \n StringBuilder sb = new StringBuilder ( n ) ;", "msg_token": "Fix spelling mistake in error message"} {"diff": " public class BlueprintContainerRegistry implements Registry { \n \n @ override \n public Object lookupByName ( String name ) { \n - return blueprintContainer . getComponentInstance ( name ) ; \n + try { \n + return blueprintContainer . getComponentInstance ( name ) ; \n + } catch ( NoSuchComponentException e ) { \n + return null ; \n + } \n } \n \n @ override", "msg_token": "Fixed camel blueprint registry to return null when not found in registry"} {"diff": " public class EditorTextField extends NonOpaquePanel implements DocumentListener , \n @ override \n public void removeNotify ( ) { \n super . removeNotify ( ) ; \n - Disposer . dispose ( myDisposable ) ; \n + if ( myDisposable != null ) { \n + Disposer . dispose ( myDisposable ) ; \n + } \n } \n \n private void releaseEditor ( Editor editor ) {", "msg_token": "support ugly hackers who create ETF but don t add it anewhere"} {"diff": " public class ImageProcessingActivity extends Activity \n \n \n void changeTest ( int testID ) { \n + if ( mTest != null ) { \n + mTest . destroy ( ) ; \n + } \n switch ( testID ) { \n case NUMBER0 : \n mTest = new LevelsV4 ( false , false ) ; \n public class TestBase { \n mRS . finish ( ) ; \n } \n \n + public void destroy ( ) { \n + mRS . destroy ( ) ; \n + } \n + \n public void updateBitmap ( Bitmap b ) { \n mOutPixelsAllocation . copyTo ( b ) ; \n }", "msg_token": "Force destroy scripts in imageProcessing"} {"diff": " public class RemoveArrangementRuleAction extends AnAction implements DumbAware { \n @ override \n public void update ( AnActionEvent e ) { \n ArrangementMatchingRulesControl control = ArrangementMatchingRulesControl . KEY . getData ( e . getDataContext ( ) ) ; \n - e . getPresentation ( ) . setEnabled ( control != null && ! control . getSelectedModelRows ( ) . isEmpty ( ) ) ; \n + e . getPresentation ( ) . setEnabled ( control != null && ! control . getSelectedModelRows ( ) . isEmpty ( ) && control . getEditingRow ( ) == - NUMBER0 ) ; \n e . getPresentation ( ) . setIcon ( SystemInfoRt . isMac ? AllIcons . ToolbarDecorator . Mac . Remove : AllIcons . ToolbarDecorator . Remove ) ; \n }", "msg_token": "when editing text components of rules delete button should not delete rules"} {"diff": " public class GitblitAuthority extends JFrame implements X509Log { \n \n X509Metadata metadata = new X509Metadata ( STRING0 , caKeystorePassword ) ; \n setMetadataDefaults ( metadata ) ; \n + metadata . notAfter = new Date ( System . currentTimeMillis ( ) + NUMBER0 * TimeUtils . ONEYEAR ) ; \n X509Utils . prepareX509Infrastructure ( metadata , folder , this ) ; \n return true ; \n }", "msg_token": "Fixed regression on expiration date of CA and SSL certs"} {"diff": " public class JsonDataFormat extends DataFormatDefinition { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public void setLibrary ( JsonLibrary library ) { \n this . library = library ; \n public class GsonDataFormatConfiguration { \n COMMENT \n private Boolean prettyPrint = false ; \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private JsonLibrary library = JsonLibrary . Gson ; \n COMMENT \n public class JacksonDataFormatConfiguration { \n COMMENT \n private Boolean prettyPrint = false ; \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private JsonLibrary library = JsonLibrary . Jackson ; \n COMMENT \n public class JsonDataFormatConfiguration { \n COMMENT \n private Boolean prettyPrint = false ; \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private JsonLibrary library = JsonLibrary . XStream ; \n COMMENT", "msg_token": "camel spring boot Add default values to auto configuration"} {"diff": " public class LocalStore extends Store implements Serializable \n { \n return getMessages ( \n listener , \n - STRING0 \n - + STRING1 \n - + GET_MESSAGES_COLS \n - + STRING2 \n + STRING0 + GET_MESSAGES_COLS \n + + STRING3 \n + ( includeDeleted ? STRING4 : STRING5 ) \n + STRING6 \n , new String [ ]", "msg_token": "Fix SQL statmeent"} {"diff": " public class ConnectionPool { \n return null ; \n } \n \n - protected PooledConnection borrowConnection ( long now , PooledConnection con ) { \n + protected PooledConnection borrowConnection ( long now , PooledConnection con ) throws SQLException { \n SINGLE \n boolean setToNull = false ; \n try { \n public class ConnectionPool { \n } catch ( Exception x ) { \n release ( con ) ; \n setToNull = true ; \n + if ( x instanceof SQLException ) { \n + throw ( SQLException ) x ; \n + } else { \n + throw new SQLException ( x ) ; \n + } \n } \n } finally { \n con . unlock ( ) ;", "msg_token": "throw an exception instead of timeout when we fail to reconnect"} {"diff": " public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener \n } \n IMemberValuePairBinding valueBinding = valueBindings [ i ] ; \n print ( i == NUMBER0 ? STRING0 : STRING1 ) ; \n - printf ( STRING2 , NameTable . capitalize ( valueBinding . getName ( ) ) ) ; \n + printf ( STRING2 , NameTable . capitalize ( \n + NameTable . getAnnotationPropertyName ( valueBinding . getMethodBinding ( ) ) ) ) ; \n Object value = valueBinding . getValue ( ) ; \n printAnnotationValue ( value ) ; \n } \n public class ObjectiveCImplementationGeneratorTest extends GenerationTest { \n STRING3 ) ; \n assertTranslation ( translation , STRING4 ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + public void testReservedWordAsAnnotationConstructorParameter ( ) throws IOException { \n + String translation = translateSourceFile ( \n + STRING5 \n + + STRING6 \n + + STRING7 , \n + STRING8 , STRING9 ) ; \n + assertTranslatedLines ( translation , STRING10 , \n + STRING11 \n + + STRING12 \n + + STRING13 ) ; \n + } \n }", "msg_token": "Fixed annotation support for annotation properties that are reserved names"} {"diff": " public class Tag implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public int [ ] getTechnologyList ( ) { \n return Arrays . copyOf ( mTechList , mTechList . length ) ;", "msg_token": "Update the docs to clarify the ordering constraints"} {"diff": " public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > impl \n \n @ override \n public void close ( ) { \n + localCache . shutdown ( ) ; \n + \n if ( isClosed ( ) ) \n return ; \n \n public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > impl \n \n hooks . clear ( ) ; \n \n - localCache . shutdown ( ) ; \n - \n close ( ) ; \n \n initialized = false ;", "msg_token": "Fixed cleaning of cache when database is closed not only when is recycled"} {"diff": " willPerformHTTPRedirection : ( NSHTTPURLResponse * ) response \n \n private void setHeader ( String k , String v ) { \n for ( HeaderEntry entry : headers ) { \n - if ( entry . key == k ) { \n + if ( entry . key == k || ( entry . key != null && k != null && k . equalsIgnoreCase ( entry . key ) ) ) { \n headers . remove ( entry ) ; \n break ; \n }", "msg_token": "Fix setRequestProperty key comparison"} {"diff": " final class Inflate { \n r = f ; \n z . avail_in -- ; \n z . total_in ++ ; \n - gzipXLen = gzipXLen < < NUMBER0 | z . next_in [ z . next_in_index ++ ] & NUMBER1 ; \n + gzipXLen |= ( z . next_in [ z . next_in_index ++ ] & NUMBER1 ) < < ( NUMBER2 - gzipBytesToRead ) * NUMBER0 ; \n gzipBytesToRead -- ; \n } \n gzipBytesToRead = gzipXLen ;", "msg_token": "Fixed wrong byte order in the gzip xlen field"} {"diff": " public class PlansUtils { \n \n public static boolean downloadAvailablePlansForSite ( int localTableBlogID , final AvailablePlansListener listener ) { \n final Blog blog = WordPress . getBlog ( localTableBlogID ) ; \n - if ( blog == null || ! isPlanFeatureAvailableForBlog ( blog ) ) { \n + if ( blog == null || blog . getPlanID ( ) == NUMBER0 ) { \n return false ; \n } \n \n public class PlansUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static boolean isPlanFeatureAvailableForBlog ( Blog blog ) { \n - return ! TextUtils . isEmpty ( AppPrefs . getGlobalPlans ( ) ) && \n - blog != null && blog . getPlanID ( ) != NUMBER0 ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n public static final int LESSER_PRODUCT = - NUMBER1 ;", "msg_token": "Don t require existing plan data before retrieving available plans"} {"diff": " public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara \n SINGLE \n annotations . put ( STRING0 , new Pair ( STRING1 , new MarkConjTypeFunction ( ) ) ) ; \n \n - SINGLE \n - annotations . put ( STRING2 , new Pair ( STRING3 , \n + SINGLE \n + annotations . put ( STRING2 , new Pair ( STRING4 , \n new SimpleStringFunction ( STRING5 ) ) ) ; \n \n SINGLE \n public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara \n STRING6 , STRING7 , STRING8 , \n \n SINGLE \n - COMMENT \n + STRING9 , STRING10 , STRING2 , \n \n SINGLE \n SINGLE", "msg_token": "Make another stab at markPronounNPs"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BlockWorkerTest { \n Configuration conf = WorkerContext . getConf ( ) ; \n conf . set ( STRING0 , \n mFolder . newFolder ( ) . getAbsolutePath ( ) ) ; \n + conf . set ( Constants . WORKER_DATA_PORT , STRING1 ) ; \n + \n mBlockWorker = new BlockWorker ( ) ; \n \n Whitebox . setInternalState ( mBlockWorker , STRING2 , mBlockMasterClient ) ; \n public class BlockWorkerTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class BlockWorkerTest { \n ( ( DataServer ) Whitebox . getInternalState ( mBlockWorker , STRING3 ) ) . close ( ) ; \n WorkerContext . reset ( ) ; \n } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Select a free port for the data server in tests"} {"diff": " public class PyResolveUtil { \n COMMENT \n @ nullable \n public static PsiElement getConcealingParent ( PsiElement elt ) { \n - return PsiTreeUtil . getParentOfType ( elt , PyClass . class , PyFunction . class ) ; \n + if ( elt == null ) { \n + return null ; \n + } \n + PsiElement parent = elt . getParent ( ) ; \n + while ( parent != null ) { \n + if ( parent instanceof PyClass || parent instanceof PyFunction ) { \n + return parent ; \n + } \n + if ( parent instanceof PsiFile ) { \n + break ; \n + } \n + parent = parent . getParent ( ) ; \n + } \n + return null ; \n } \n \n COMMENT", "msg_token": "don t use PsiTreeUtil getParentOfType in hotspots"} {"diff": " public class ParsedStatement { \n SQLResponse response = new SQLResponse ( ) ; \n response . cols ( cols ( ) ) ; \n response . rows ( rows ) ; \n + response . rowCount ( rows . length ) ; \n return response ; \n }", "msg_token": "add rowcount to SearchResponse"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class SystemKeyStore { \n \n public byte [ ] retrieveKey ( String keyName ) throws IOException { \n File keyFile = getKeyFile ( keyName ) ; \n - \n if ( ! keyFile . exists ( ) ) { \n return null ; \n } \n - \n - FileInputStream fis = new FileInputStream ( keyFile ) ; \n - return InputStreamHelper . readFullyAndClose ( fis ) ; \n + return IoUtils . readFileAsByteArray ( keyFile . toString ( ) ) ; \n } \n \n public void deleteKey ( String keyName ) {", "msg_token": "Use deliberately public API rather than org apache cruft"} {"diff": " public class JNIQueryTest { \n assertEquals ( NUMBER0 , table . size ( ) ) ; \n } \n \n - @ test ( expectedExceptions = RuntimeException . class ) \n - public void shouldThrowOnQueryOnSortedView ( ) { \n + public void shouldQueryOnSortedView ( ) { \n \n init ( ) ; \n \n TableView sortedView = table . getSortedView ( NUMBER1 , TableView . Order . descending ) ; \n \n TableView result = sortedView . where ( ) . findAll ( ) ; \n + \n + assertEquals ( result . size ( ) , table . size ( ) ) ; \n + \n } \n \n @ test", "msg_token": "Changed sorted view query test to match newest master"} {"diff": " public class UnderfsUtilTest { \n } \n \n UnderfsUtil . loadUnderFs ( mTfs , Constants . PATH_SEPARATOR , mUnderfsAddress \n - + Constants . PATH_SEPARATOR , new PrefixList ( Arrays . asList ( exclusions ) ) ) ; \n + + Constants . PATH_SEPARATOR , new PrefixList ( STRING0 , STRING1 ) ) ; \n \n List < String > paths = null ; \n for ( String exclusion : exclusions ) {", "msg_token": "fix a bug in UnderfsUtilTest in excluding prefixes"} {"diff": " public class AbstractConnectorTest \n public void handle ( String target , Request baseRequest , HttpServletRequest request , HttpServletResponse response ) \n throws IOException , ServletException \n { \n + try { Thread . sleep ( NUMBER0 ) ; } catch ( Exception e ) { } \n baseRequest . setHandled ( true ) ; \n - \n PrintWriter out = response . getWriter ( ) ; \n out . write ( STRING0 ) ; \n out . close ( ) ;", "msg_token": "improved test timing"} {"diff": " public class WebSocketMinVersionTest \n } \n catch ( IllegalStateException e ) { \n String respHeader = e . getMessage ( ) ; \n - Assert . assertThat ( STRING0 , respHeader , allOf ( \n - containsString ( STRING1 ) , \n - containsString ( STRING2 ) , \n - containsString ( STRING3 ) ) ) ; \n + Assert . assertThat ( STRING0 , respHeader , containsString ( STRING4 ) ) ; \n } \n finally \n {", "msg_token": "Fixing websocket testcase"} {"diff": " public abstract class ConnectionProxy implements IHikariConnectionProxy \n private StackTraceElement [ ] leakTrace ; \n private TimerTask leakTask ; \n \n + private final int hashCode ; \n + \n SINGLE \n static \n { \n public abstract class ConnectionProxy implements IHikariConnectionProxy \n \n creationTime = lastAccess = System . currentTimeMillis ( ) ; \n openStatements = new FastStatementList ( ) ; \n + hashCode = System . identityHashCode ( this ) ; \n } \n \n public final void untrackStatement ( Object statement ) \n public abstract class ConnectionProxy implements IHikariConnectionProxy \n } \n } \n \n + @ override \n + public boolean equals ( Object other ) \n + { \n + return this == other ; \n + } \n + \n + @ override \n + public int hashCode ( ) \n + { \n + return hashCode ; \n + } \n + \n protected final void checkClosed ( ) throws SQLException \n { \n if ( isClosed )", "msg_token": "Cache the hashCode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class AUC extends Func { \n if ( ca . isNA0 ( i ) ) \n throw new UnsupportedOperationException ( STRING0 ) ; \n final int a = ( int ) ca . at80 ( i ) ; SINGLE \n - if ( a != NUMBER0 && a != NUMBER1 ) \n - Log . info ( STRING1 ) ; \n assert ( a == NUMBER0 || a == NUMBER1 ) : STRING2 ; \n if ( cp . isNA0 ( i ) ) { \n SINGLE", "msg_token": "Remove debug info"} {"diff": " public class ThresholdAccumulator implements Accumulator { \n private static final Logger LOG = LoggerFactory . getLogger ( ThresholdAccumulator . class ) ; \n \n @ setter \n - int threshold = NUMBER0 * NUMBER1 ; SINGLE \n + int thresholdSeconds = NUMBER0 * NUMBER1 ; SINGLE \n \n + public void setThresholdMinutes ( int minutes ) { \n + this . thresholdSeconds = minutes * NUMBER0 ; \n + } \n + \n @ override \n public void accumulate ( double amount , ResultSet current , ResultSet accumulated ) { \n if ( current . population != accumulated . population ) { \n public class ThresholdAccumulator implements Accumulator { \n int n = accumulated . population . size ( ) ; \n for ( int i = NUMBER2 ; i < n ; i ++ ) { \n double t = current . results [ i ] ; \n - if ( t > NUMBER2 && t < threshold ) { \n + if ( t > NUMBER2 && t < thresholdSeconds ) { \n accumulated . results [ i ] += amount ; \n } \n }", "msg_token": "add threshold setters that take minutes and seconds"} {"diff": " public class NotificationsActivity extends WPActionBarActivity \n COMMENT \n COMMENT \n private void openNote ( final Note note ) { \n - mSelectedNoteId = StringUtils . stringToInt ( note . getId ( ) ) ; \n - mNotesList . setNoteSelected ( note ) ; \n if ( note == null || isFinishing ( ) ) { \n return ; \n } \n + mSelectedNoteId = StringUtils . stringToInt ( note . getId ( ) ) ; \n + mNotesList . setNoteSelected ( note ) ; \n \n SINGLE \n if ( note . isUnread ( ) ) {", "msg_token": "fix a dumb npe"} {"diff": " public class GroovyBuilder extends Builder { \n String encoding = STRING0 ; SINGLE \n List < String > patchers = Collections . emptyList ( ) ; SINGLE \n GroovycOSProcessHandler . fillFileWithGroovycParameters ( \n - tempFile , FileUtil . toCanonicalPath ( dir . getPath ( ) ) , toCompilePaths , moduleOutputPath , class2Src , encoding , patchers \n + tempFile , FileUtil . toCanonicalPath ( dir . getPath ( ) ) , toCompilePaths , FileUtil . toSystemDependentName ( moduleOutputPath ) , class2Src , encoding , patchers \n ) ; \n \n if ( myForStubs ) {", "msg_token": "fix groovy transform compilation test on windows"} {"diff": " public class DatabaseSegmentManager \n final Duration delay = config . get ( ) . getPollDuration ( ) . toStandardDuration ( ) ; \n ScheduledExecutors . scheduleWithFixedDelay ( \n exec , \n - delay , \n + new Duration ( NUMBER0 ) , \n delay , \n new Runnable ( ) \n { \n public class DatabaseSegmentManagerTest \n public void testPoll ( ) \n { \n EasyMock . expect ( dbi . withHandle ( EasyMock . < HandleCallback > anyObject ( ) ) ) . andReturn ( testRows ) ; \n + EasyMock . expect ( dbi . withHandle ( EasyMock . < HandleCallback > anyObject ( ) ) ) . andReturn ( testRows ) ; \n EasyMock . replay ( dbi ) ; \n \n manager . start ( ) ;", "msg_token": "remove initial delay from polling"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n asyncWriteFuture = new Future < ? > [ threads ] ; \n for ( int i = NUMBER0 ; i < threads ; i ++ ) { \n notifierFuture [ i ] = bc . getExecutorService ( ) . submit ( getBroadcastHandler ( ) ) ; \n - asyncWriteFuture [ i ] = bc . getExecutorService ( ) . submit ( getAsyncWriteHandler ( uniqueWriteQueue ) ) ; \n + asyncWriteFuture [ i ] = bc . getAsyncWriteService ( ) . submit ( getAsyncWriteHandler ( uniqueWriteQueue ) ) ; \n } \n } else { \n notifierFuture [ NUMBER0 ] = bc . getExecutorService ( ) . submit ( getBroadcastHandler ( ) ) ;", "msg_token": "Fix embarassing typo"} {"diff": " public class AccountHeader { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void clear ( ) { \n + mAccountHeader . mProfiles = null ; \n + \n + SINGLE \n + mAccountHeader . calculateProfiles ( ) ; \n + \n + SINGLE \n + mAccountHeader . buildProfiles ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add new api method to clear the header"} {"diff": " public class TicketPage extends TicketBasePage { \n String displayPath = entry . path ; \n String path = entry . path ; \n if ( entry . isSymlink ( ) ) { \n - RevCommit commit = JGitUtils . getCommit ( getRepository ( ) , Constants . R_TICKETS_PATCHSETS + ticket . number ) ; \n + RevCommit commit = JGitUtils . getCommit ( getRepository ( ) , PatchsetCommand . getTicketBranch ( ticket . number ) ) ; \n path = JGitUtils . getStringContent ( getRepository ( ) , commit . getTree ( ) , path ) ; \n displayPath = entry . path + STRING0 + path ; \n }", "msg_token": "Fix incorrect ticket branch ref in ticket page changed paths list"} {"diff": " final class GrpcHttp2Headers extends AbstractHttp2Headers { \n throw new UnsupportedOperationException ( ) ; \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + StringBuilder builder = new StringBuilder ( getClass ( ) . getSimpleName ( ) ) . append ( STRING0 ) ; \n + String separator = STRING1 ; \n + for ( Entry < CharSequence , CharSequence > e : this ) { \n + CharSequence name = e . getKey ( ) ; \n + CharSequence value = e . getValue ( ) ; \n + builder . append ( separator ) ; \n + builder . append ( name ) . append ( STRING2 ) . append ( value ) ; \n + separator = STRING3 ; \n + } \n + builder . append ( STRING4 ) ; \n + return builder . toString ( ) ; \n + } \n }", "msg_token": "add toString to GrpcHttp2Headers"} {"diff": " public class BridgePowerManager implements IPowerManager { \n } \n \n @ override \n - public boolean isScreenBrightnessBoosted ( ) { \n + public boolean isScreenBrightnessBoosted ( ) throws RemoteException { \n return false ; \n } \n }", "msg_token": "add correct exception throw declaration to isScreenBrightnessBoosted"} {"diff": " import NAMESPACE ; \n public final class JSModule implements DependencyInfo , Serializable { \n private static final long serialVersionUID = NUMBER0 ; \n \n - static final DiagnosticType CIRCULAR_DEPENDENCY_ERROR = \n - DiagnosticType . error ( STRING0 , \n - STRING1 ) ; \n - \n COMMENT \n private final String name ;", "msg_token": "Remove some unused code"} {"diff": " public final class Request { \n public final float rotationPivotY ; \n COMMENT \n public final boolean hasRotationPivot ; \n + COMMENT \n public final boolean purgeable ; \n COMMENT \n public final Bitmap . Config config ; \n public final class Request { \n } \n sb . append ( STRING0 ) ; \n } \n + if ( purgeable ) { \n + sb . append ( STRING1 ) ; \n + } \n if ( config != null ) { \n sb . append ( STRING2 ) . append ( config ) ; \n } \n public final class Request { \n rotationPivotX = request . rotationPivotX ; \n rotationPivotY = request . rotationPivotY ; \n hasRotationPivot = request . hasRotationPivot ; \n + purgeable = request . purgeable ; \n onlyScaleDown = request . onlyScaleDown ; \n if ( request . transformations != null ) { \n transformations = new ArrayList < Transformation > ( request . transformations ) ;", "msg_token": "Fix Request Builder copy constructor add another comment update Request toString"} {"diff": " class ComputingConcurrentHashMap < K , V > extends MapMakerInternalMap < K , V > { \n ReferenceEntry < K , V > e , \n ComputingValueReference < K , V > computingValueReference ) throws ExecutionException { \n V value = null ; \n - long start = System . nanoTime ( ) ; \n - long end = NUMBER0 ; \n try { \n SINGLE \n SINGLE \n SINGLE \n synchronized ( e ) { \n value = computingValueReference . compute ( key , hash ) ; \n - end = System . nanoTime ( ) ; \n } \n if ( value != null ) { \n SINGLE \n class ComputingConcurrentHashMap < K , V > extends MapMakerInternalMap < K , V > { \n } \n return value ; \n } finally { \n - if ( end == NUMBER0 ) { \n - end = System . nanoTime ( ) ; \n - } \n if ( value == null ) { \n clearValue ( key , hash , computingValueReference ) ; \n }", "msg_token": "Remove unused variables"} {"diff": " public class Transaction extends ChildMessage implements Serializable { \n \n try { \n s . append ( in . getScriptSig ( ) . getFromAddress ( ) . toString ( ) ) ; \n + s . append ( STRING0 ) ; \n + s . append ( in . getOutpoint ( ) . toString ( ) ) ; \n } catch ( Exception e ) { \n s . append ( STRING1 ) . append ( e . getMessage ( ) ) . append ( STRING2 ) ; \n }", "msg_token": "Print outpoint data in Transaction toString output"} {"diff": " public class VectorDrawable extends Drawable { \n SINGLE \n private final Path mPath ; \n private final Path mRenderPath ; \n - private static final Matrix IDENTITY_MATRIX = new Matrix ( ) ; \n private final Matrix mFinalPathMatrix = new Matrix ( ) ; \n \n private Paint mStrokePaint ; \n public class VectorDrawable extends Drawable { \n \n public void draw ( Canvas canvas , int w , int h , ColorFilter filter ) { \n SINGLE \n - drawGroupTree ( mRootGroup , IDENTITY_MATRIX , canvas , w , h , filter ) ; \n + drawGroupTree ( mRootGroup , Matrix . IDENTITY_MATRIX , canvas , w , h , filter ) ; \n } \n \n private void drawPath ( VGroup vGroup , VPath vPath , Canvas canvas , int w , int h ,", "msg_token": "Don t allocate another identity matrix"} {"diff": " public class RemoveAnnotationQuickFix implements LocalQuickFix { \n private final PsiAnnotation myAnnotation ; \n private final PsiModifierListOwner myListOwner ; \n \n - public RemoveAnnotationQuickFix ( @ notnull PsiAnnotation annotation , @ notnull final PsiModifierListOwner listOwner ) { \n + public RemoveAnnotationQuickFix ( @ notnull PsiAnnotation annotation , final PsiModifierListOwner listOwner ) { \n myAnnotation = annotation ; \n myListOwner = listOwner ; \n }", "msg_token": "remove fault NotNull annotation"} {"diff": " public final class SimpleCommandMap implements CommandMap { \n COMMENT \n public boolean dispatch ( CommandSender sender , String commandLine ) { \n String [ ] args = commandLine . split ( STRING0 ) ; \n + \n + if ( args . length == NUMBER0 ) { \n + return false ; \n + } \n + \n String sentCommandLabel = args [ NUMBER0 ] . toLowerCase ( ) ; \n \n args = Arrays_copyOfRange ( args , NUMBER1 , args . length ) ;", "msg_token": "Fixed AIOOBE when entering a space into console and hitting enter"} {"diff": " public class PostfixTemplatesListPanel { \n } ; \n \n myPanelWithTableView = ToolbarDecorator . createDecorator ( myTemplatesTableView ) \n + . setAsUsualTopToolbar ( ) \n . disableAddAction ( ) \n . disableRemoveAction ( ) \n . disableUpDownActions ( ) . createPanel ( ) ;", "msg_token": "Fix bottom border in templates lists"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class MetaImpl implements Meta { \n \n private final void init ( ) { \n try { \n - Result < Record > columns = executor . fetch ( meta ( ) . getColumns ( null , getSchema ( ) . getName ( ) , getName ( ) , STRING0 ) ) ; \n + SINGLE \n + SINGLE \n + String searchName = executor . getDialect ( ) == ORACLE \n + ? getName ( ) . replace ( STRING1 , STRING2 ) \n + : getName ( ) ; \n + \n + Result < Record > columns = executor . fetch ( meta ( ) . getColumns ( null , getSchema ( ) . getName ( ) , searchName , STRING0 ) ) ; \n \n for ( Record column : columns ) { \n String columnName = column . getValue ( STRING3 , String . class ) ;", "msg_token": "Fix issue with Oracle JDBC s internal LIKE"} {"diff": " public final class SlowOperationLog implements JsonSerializable { \n return invocations . values ( ) ; \n } \n \n + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 , justification = \n + STRING1 ) \n Invocation getOrCreateInvocation ( int operationHashCode , long lastDurationNanos , long nowNanos , long nowMillis ) { \n totalInvocations ++ ; \n \n public final class SlowOperationLog implements JsonSerializable { \n public String toString ( ) { \n SINGLE \n if ( lastAccessNanos < NUMBER0 ) { \n - return null ; \n + assert true ; \n } \n \n return STRING2 + STRING3 + id + STRING4 + startedAt + STRING5 + durationNanos + STRING6 ; \n public final class SlowOperationLog implements JsonSerializable { \n public JsonObject toJson ( ) { \n SINGLE \n if ( lastAccessNanos < NUMBER0 ) { \n - return null ; \n + assert true ; \n } \n \n JsonObject root = new JsonObject ( ) ;", "msg_token": "Fixed checkstyle findbugs issues"} {"diff": " public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n protected abstract boolean handleIncompleteRequestLineRead ( ) ; \n \n public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract boolean breakKeepAliveLoop ( \n SocketWrapper < S > socketWrapper ) ;", "msg_token": "Fix javadoc and comment typo"} {"diff": " public class SendDataMessageClass extends ZWaveCommandProcessor { \n ZWaveNode node = zController . getNode ( originalMessage . getMessageNode ( ) ) ; \n if ( node == null ) \n break ; \n + \n + SINGLE \n + node . incrementReceiveCount ( ) ; \n \n SINGLE \n if ( node . isDead ( ) ) {", "msg_token": "Treat a SendDataMessage ACK as a received message"} {"diff": " public class FlatWelcomeFrame extends JFrame implements WelcomeFrameProvider , Id \n final JRootPane rootPane = getRootPane ( ) ; \n myScreen = new FlatWelcomeScreen ( ) ; \n \n - final IdeGlassPaneImpl glassPane = new IdeGlassPaneImpl ( rootPane ) ; \n + final IdeGlassPaneImpl glassPane = new IdeGlassPaneImpl ( rootPane ) { \n + @ override \n + public void addNotify ( ) { \n + super . addNotify ( ) ; \n + rootPane . remove ( getProxyComponent ( ) ) ; \n + } \n + } ; \n + \n setGlassPane ( glassPane ) ; \n glassPane . setVisible ( false ) ; \n SINGLE", "msg_token": "remove FocusProxy from welcome screen"} {"diff": " public class MinusculeMatcher implements Matcher { \n } \n finally { \n state . releaseState ( ) ; \n - if ( System . currentTimeMillis ( ) - start > NUMBER0 ) { \n + if ( System . currentTimeMillis ( ) - start > NUMBER0 && \n + SINGLE \n + Runtime . getRuntime ( ) . freeMemory ( ) > Runtime . getRuntime ( ) . totalMemory ( ) * NUMBER1 / NUMBER2 ) { \n LOG . error ( STRING0 + name + STRING1 + new String ( myPattern ) ) ; \n } \n }", "msg_token": "don t report long name matching when there s not much memory gc could slow things down"} {"diff": " public class HttpFields implements Iterable < HttpField > \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n - public void add ( String name , String value ) throws IllegalArgumentException \n + public void add ( String name , String value ) \n { \n if ( value == null ) \n return ; \n public class HttpFields implements Iterable < HttpField > \n add ( field ) ; \n } \n \n - public void add ( HttpHeader header , HttpHeaderValue value ) throws IllegalArgumentException \n + public void add ( HttpHeader header , HttpHeaderValue value ) \n { \n add ( header , value . toString ( ) ) ; \n } \n public class HttpFields implements Iterable < HttpField > \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - public void add ( HttpHeader header , String value ) throws IllegalArgumentException \n + public void add ( HttpHeader header , String value ) \n { \n if ( value == null ) throw new IllegalArgumentException ( STRING0 ) ;", "msg_token": "HttpFields declares IllegalArgumentException as checked exception"} {"diff": " public class MapJoinOperator extends AbstractMapJoinOperator < MapJoinDesc > implem \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ override \n public void endGroup ( ) throws HiveException { \n public class MapJoinOperator extends AbstractMapJoinOperator < MapJoinDesc > implem \n \n int tagLen = conf . getTagLength ( ) ; \n \n + SINGLE \n + SINGLE \n tableKey = STRING0 + this . getOperatorId ( ) + STRING1 ; \n serdeKey = STRING0 + this . getOperatorId ( ) + STRING2 ; \n \n public class HiveInputFormat < K extends WritableComparable , V extends Writable > \n pathToPartitionInfo = mrwork . getPathToPartitionInfo ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private void addSplitsForGroup ( List < Path > dirs , TableScanOperator tableScan , JobConf conf , \n InputFormat inputFormat , Class < ? extends InputFormat > inputFormatClass , int splits , \n TableDesc table , List < InputSplit > result ) throws IOException {", "msg_token": "Add some additional comments to clarify intent Gunther Hagleitner"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MainFrame extends javax . swing . JFrame { \n \n private void indexDatabaseComboItemStateChanged ( java . awt . event . ItemEvent evt ) { SINGLE \n IndexDatabase db = ( IndexDatabase ) evt . getItem ( ) ; \n + RuntimeEnvironment env = RuntimeEnvironment . getInstance ( ) ; \n + env . setDataRoot ( db . getDatabase ( ) ) ; \n + env . setSourceRoot ( db . getSource ( ) ) ; \n if ( db . getSource ( ) == null ) { \n searchButton . setEnabled ( false ) ; \n } else {", "msg_token": "Fixed NullPointerException when searching history in Swing GUI"} {"diff": " public class GLMModelV2 extends ModelSchema < GLMModel , GLMModelV2 , GLMModel . GLMPa \n \n SINGLE \n \n - @ api ( help = STRING0 ) \n + @ api ( help = STRING1 ) \n int best_lambda_idx ; \n \n - @ api ( help = STRING0 ) \n + @ api ( help = STRING2 ) \n float threshold ; \n \n SINGLE \n public class GLMModelV2 extends ModelSchema < GLMModel , GLMModelV2 , GLMModel . GLMPa \n SINGLE \n SINGLE \n \n - @ api ( help = STRING0 ) \n + @ api ( help = STRING3 ) \n TwoDimTableV1 coefficients_table ; \n \n - @ api ( help = STRING0 ) \n + @ api ( help = STRING4 ) \n TwoDimTableV1 coefficients_magnitude ; \n \n @ api ( help = STRING5 )", "msg_token": "Filled some help strings in glm output"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class FileContainer extends TextContainer { \n } \n \n @ override \n + public String toString ( ) { \n + return MoreObjects . toStringHelper ( this ) \n + . omitNullValues ( ) \n + . add ( STRING0 , name ) \n + . add ( STRING1 , charset ) \n + . toString ( ) ; \n + } \n + \n + @ override \n public boolean isFileContainer ( ) { \n return name != null ; \n }", "msg_token": "added toString to file container"} {"diff": " public class NetworkParameters implements Serializable { \n NetworkParameters n = new NetworkParameters ( ) ; \n n = createTestNet ( n ) ; \n n . proofOfWorkLimit = new BigInteger ( STRING0 , NUMBER0 ) ; \n + n . genesisBlock . setNonce ( NUMBER1 ) ; SINGLE \n n . genesisBlock . setDifficultyTarget ( Block . EASIEST_DIFFICULTY_TARGET ) ; \n n . interval = NUMBER2 ; \n n . targetTimespan = NUMBER3 ; SINGLE", "msg_token": "Make unit test genesis block pass verification"} {"diff": " public class EditPostActivity extends AppCompatActivity implements EditorFragmen \n } \n } \n \n + public void onEventMainThread ( MediaUploadEvents . MediaUploadFailed event ) { \n + if ( mEditorMediaUploadListener != null ) { \n + mEditorMediaUploadListener . onMediaUploadFailed ( event . mLocalId ) ; \n + } \n + } \n + \n public void onEventMainThread ( MediaUploadEvents . MediaUploadProgress event ) { \n if ( mEditorMediaUploadListener != null ) { \n mEditorMediaUploadListener . onMediaUploadProgress ( event . mLocalId , event . mProgress ) ;", "msg_token": "Propagated callbacks for failed media uploads to the visual editor"} {"diff": " public final class Xmlns { \n public static final String ROSTER = STRING0 ; \n public static final String REGISTER = STRING1 ; \n public static final String BYTE_STREAMS = STRING2 ; \n - public static final String HTTP_UPLOAD = STRING3 ; \n + public static final String HTTP_UPLOAD = STRING4 ; \n }", "msg_token": "changed http upload namespace to reflect the one in the XEP"} {"diff": " public final class TvInputManagerService extends SystemService { \n SINGLE \n serviceState = new ServiceState ( component , userId ) ; \n userState . serviceStateMap . put ( component , serviceState ) ; \n + updateServiceConnectionLocked ( component , userId ) ; \n } else { \n inputList . addAll ( serviceState . inputList ) ; \n }", "msg_token": "Bind hardware TIS at startup"} {"diff": " public class SocketConnection < T > implements Connection < T > { \n if ( e instanceof EOFException ) { \n return true ; \n } \n - if ( e instanceof IOException && e . getMessage ( ) . equals ( STRING0 ) ) { \n + if ( e instanceof IOException && e . getMessage ( ) != null && e . getMessage ( ) . equals ( STRING0 ) ) { \n return true ; \n } \n return false ;", "msg_token": "Fixed potential NPE"} {"diff": " public class MaterialViewPagerAnimator { \n \n private static final String TAG = MaterialViewPagerAnimator . class . getSimpleName ( ) ; \n \n - private static final Boolean ENABLE_LOG = true ; \n + public static Boolean ENABLE_LOG = true ; \n \n private Context context ;", "msg_token": "allow app developers to enable disable logging"} {"diff": " public class CubeMapWrapper { \n sizes = new int [ NUMBER0 ] ; \n sizes [ NUMBER1 ] = image . getWidth ( ) ; \n } \n - raster = new DefaultImageRaster ( image , NUMBER1 ) ; \n + raster = new DefaultImageRaster ( image , NUMBER1 , NUMBER1 , false ) ; \n } \n \n COMMENT", "msg_token": "fixed CubeMapWrapper after the changes to DefaultImageRaster"} {"diff": " public class Resources \n { \n private static Logger log = Logger . getLogger ( Resources . class ) ; \n \n - private static final String RESOUCRE_LOCATION \n + private static final String RESOURCE_LOCATION \n = STRING0 ; \n \n private static final ResourceBundle resourceBundle \n - = ResourceBundle . getBundle ( RESOUCRE_LOCATION ) ; \n + = ResourceBundle . getBundle ( RESOURCE_LOCATION ) ; \n \n private static final String COLOR_BUNDLE_NAME \n = STRING1 ;", "msg_token": "Typing error fixed RESOUCRE RESOURCE"} {"diff": " public class ExecutionGraph implements Serializable { \n } \n \n SINGLE \n + restartStrategy = null ; \n scheduler = null ; \n checkpointCoordinator = null ; \n executionContext = null ;", "msg_token": "hotfix execution graph Null restart strategy field in ExecutionGraph when archiving"} {"diff": " final class BufferedSinkJsonWriter extends JsonWriter { \n COMMENT \n COMMENT \n COMMENT \n - public void flush ( ) throws IOException { \n + @ override public void flush ( ) throws IOException { \n if ( stackSize == NUMBER0 ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n final class BufferedSinkJsonWriter extends JsonWriter { \n COMMENT \n COMMENT \n COMMENT \n - public void close ( ) throws IOException { \n + @ override public void close ( ) throws IOException { \n sink . close ( ) ; \n \n int size = stackSize ;", "msg_token": "Missing Override annotations"} {"diff": " public final class AgentIndexRunner implements AgentIndexRunnerMBean , Notificati \n private long lastIndexFinish = NUMBER0 ; \n private long lastIndexUsedTime = NUMBER0 ; \n private Exception lastException = null ; \n - private Set notifListeners = new HashSet ( ) ; \n + private Set < NotificationHolder > notifListeners = new HashSet < NotificationHolder > ( ) ; \n private static long sequenceNo = NUMBER0 ; \n private StringBuilder notifications = new StringBuilder ( ) ; \n private final static int MAXMESSAGELENGTH = NUMBER1 ;", "msg_token": "Remove compiler warning"} {"diff": " public class RoundedDrawable extends Drawable { \n mBorderPaint . setAntiAlias ( true ) ; \n mBorderPaint . setColor ( mBorderColor . getColorForState ( getState ( ) , DEFAULT_BORDER_COLOR ) ) ; \n mBorderPaint . setStrokeWidth ( border ) ; \n + \n + mOval = oval ; \n } \n \n @ override \n public class RoundedDrawable extends Drawable { \n public void setOval ( boolean oval ) { \n mOval = oval ; \n } \n - } \n + }", "msg_token": "Persist the mOval param in RoundedImageDrawable to draw oval shapes"} {"diff": " public class ObserverManager < T extends IActorObserver > implements Serializable \n COMMENT \n public Task < ? > cleanup ( ) \n { \n + SINGLE \n + SINGLE \n final Stream < Task < ? > > stream = observers . stream ( ) \n . map ( o - > \n ( ( Task < ? > ) ( o ) . ping ( ) ) . whenComplete ( ( final Object pr , final Throwable pe ) - >", "msg_token": "Adding a TODO to ObserverManager cleanup"} {"diff": " public class SgSyncAdapter extends AbstractThreadedSyncAdapter { \n args . putInt ( UPDATE_TYPE , NUMBER0 ) ; \n } \n \n - final Account account = new Account ( SgAccountAuthenticator . ACCOUNT_NAME , \n - context . getPackageName ( ) ) ; \n + final Account account = SgAccountAuthenticator . getSyncAccount ( context ) ; \n ContentResolver . requestSync ( account , \n SeriesGuideApplication . CONTENT_AUTHORITY , args ) ; \n \n } \n \n + public static void setSyncAutomatically ( Context context , boolean sync ) { \n + final Account account = SgAccountAuthenticator . getSyncAccount ( context ) ; \n + ContentResolver . setSyncAutomatically ( account , SeriesGuideApplication . CONTENT_AUTHORITY , \n + sync ) ; \n + } \n + \n public SgSyncAdapter ( Context context , boolean autoInitialize ) { \n super ( context , autoInitialize ) ; \n Log . d ( TAG , STRING0 ) ;", "msg_token": "Add setSyncAutomatically helper to SgSyncAdapter"} {"diff": " public final class ProcessStats implements Parcelable { \n + pkgList . keyAt ( index ) + STRING0 + proc . mUid \n + STRING1 + proc . mName + STRING2 + proc . mVersion ) ; \n } \n + String savedName = proc . mName ; \n proc = pkg . mProcesses . get ( proc . mName ) ; \n if ( proc == null ) { \n throw new IllegalStateException ( STRING3 \n - + proc . mName + STRING4 + pkg . mPackageName + STRING0 + pkg . mUid ) ; \n + + savedName + STRING4 + pkg . mPackageName + STRING0 + pkg . mUid ) ; \n } \n holder . state = proc ; \n }", "msg_token": "Fix null pointer access"} {"diff": " public class PyQualifiedReferenceImpl extends PyReferenceImpl { \n } \n } \n if ( resolveResult instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) resolveResult ) && \n - element instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) element ) ) { \n + element instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) element ) && Comparing . equal ( \n + ( ( PyTargetExpression ) resolveResult ) . getReferencedName ( ) , \n + ( ( PyTargetExpression ) element ) . getReferencedName ( ) ) ) { \n PyClass aClass = PsiTreeUtil . getParentOfType ( resolveResult , PyClass . class ) ; \n PyClass bClass = PsiTreeUtil . getParentOfType ( element , PyClass . class ) ;", "msg_token": "Added check for reference names equality"} {"diff": " public class CollapsingToolbarLayout extends FrameLayout { \n SINGLE \n final ViewParent parent = getParent ( ) ; \n if ( parent instanceof AppBarLayout ) { \n + SINGLE \n + ViewCompat . setFitsSystemWindows ( this , ViewCompat . getFitsSystemWindows ( ( View ) parent ) ) ; \n + \n if ( mOnOffsetChangedListener == null ) { \n mOnOffsetChangedListener = new OffsetUpdateListener ( ) ; \n } \n ( ( AppBarLayout ) parent ) . addOnOffsetChangedListener ( mOnOffsetChangedListener ) ; \n - } \n \n - SINGLE \n - ViewCompat . requestApplyInsets ( this ) ; \n + SINGLE \n + ViewCompat . requestApplyInsets ( this ) ; \n + } \n } \n \n @ override", "msg_token": "Fix CollapsingToolbarLayout pinned views with insets"} {"diff": " public class RenameJavaVariableProcessor extends RenamePsiElementProcessor { \n return ; \n } \n \n - if ( elem instanceof PsiLocalVariable || elem instanceof PsiParameter ) { \n + if ( elem instanceof PsiLocalVariable || elem instanceof PsiParameter || elem instanceof PsiField ) { \n qualifyField ( field , replacedOccurence , newName ) ; \n } \n } \n public class RenameFieldTest extends CodeInsightTestCase { \n doTest ( STRING0 , STRING1 ) ; \n } \n \n + public void testOuterHidesInner ( ) throws Exception { SINGLE \n + doTest ( STRING2 , STRING1 ) ; \n + } \n + \n protected void perform ( String newName ) { \n PsiElement element = TargetElementUtilBase . findTargetElement ( myEditor , TargetElementUtilBase \n . ELEMENT_NAME_ACCEPTED | TargetElementUtilBase . REFERENCED_ELEMENT_ACCEPTED ) ;", "msg_token": "correctly qualify references to renamed outer class field when they hide an inner class field"} {"diff": " public class FileStatusManagerImpl extends FileStatusManager implements ProjectC \n \n public void initComponent ( ) { } \n \n - public void addFileStatusListener ( FileStatusListener listener ) { \n + public void addFileStatusListener ( @ notnull FileStatusListener listener ) { \n myListeners . add ( listener ) ; \n }", "msg_token": "FileStatusManagerImpl add NotNull annotation for added listener"} {"diff": " public class WorldEditListener extends PluginListener { \n WorldEditSession . SuperPickaxeMode . SINGLE ) { \n Vector pos = new Vector ( blockClicked . getX ( ) , \n blockClicked . getY ( ) , blockClicked . getZ ( ) ) ; \n - if ( ServerInterface . getBlockType ( pos ) == NUMBER0 && canBedrock ) { \n + if ( ServerInterface . getBlockType ( pos ) == NUMBER0 && ! canBedrock ) { \n return true ; \n } else if ( ServerInterface . getBlockType ( pos ) == NUMBER1 ) { \n return false ; \n public class WorldEditListener extends PluginListener { \n \n if ( ServerInterface . getBlockType ( pos ) == initialType ) { \n ServerInterface . setBlockType ( pos , NUMBER2 ) ; \n + } else { \n + return ; \n } \n \n recursiveSuperPickaxe ( pos . add ( NUMBER3 , NUMBER2 , NUMBER2 ) . toBlockVector ( ) , origin , size ,", "msg_token": "Fixed the super pickaxe not working with bedrock and the recursive super pickaxe not working properly"} {"diff": " public class RecordFormatSelector \n { \n if ( StringUtils . isNotEmpty ( recordFormat ) ) \n { \n + if ( LowLimitV3_0 . NAME . equals ( recordFormat ) ) \n + { \n + return LowLimitV3_0 . RECORD_FORMATS ; \n + } \n RecordFormats . Factory formatFactory = Service . loadSilently ( RecordFormats . Factory . class , recordFormat ) ; \n if ( formatFactory != null ) \n { \n public class RecordFormatSelectorTest \n } \n \n @ test \n + public void autoselectCommunityFormat ( ) \n + { \n + Config config = new Config ( MapUtil . stringMap ( record_format . name ( ) , LowLimitV3_0 . NAME ) ) ; \n + RecordFormats recordFormats = RecordFormatSelector . autoSelectFormat ( config , NullLogService . getInstance ( ) ) ; \n + assertEquals ( STRING0 , recordFormats , LowLimitV3_0 . RECORD_FORMATS ) ; \n + } \n + \n + @ test \n public void overrideWithNonExistingFormatFailure ( ) \n { \n Config config = new Config ( MapUtil . stringMap ( record_format . name ( ) , STRING1 ) ) ;", "msg_token": "Add possibility to force community format from any edition"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Do not use Lucene SuppressForbidden"} {"diff": " public class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n \n static final DiagnosticType ENUM_NOT_CONSTANT = \n DiagnosticType . warning ( STRING0 , \n - STRING1 ) ; \n + STRING2 ) ; \n \n static final DiagnosticType INVALID_INTERFACE_MEMBER_DECLARATION = \n DiagnosticType . warning ( \n public class TypeCheckTest extends CompilerTypeTestCase { \n \n public void testEnum2 ( ) throws Exception { \n testTypes ( STRING3 , \n - STRING4 ) ; \n + STRING5 ) ; \n } \n \n public void testEnum3 ( ) throws Exception {", "msg_token": "Clarify error message for enum values"} {"diff": " public class RegisterNewProfiles { \n session = sessionFactory . getSession ( ) ; \n \n SINGLE \n - session . getEntityManager ( ) . clear ( ) ; \n + session . commit ( ) ; \n \n ListMultimap < String , RulesProfile > profilesByLanguage = loadDefinitions ( ) ; \n for ( String language : profilesByLanguage . keySet ( ) ) {", "msg_token": "Fix loading of Hibernate rules on MyBatis"} {"diff": " public class DocumentationManager extends DockablePopupManager < DocumentationComp \n @ override \n public boolean process ( JBPopup popup ) { \n createToolWindow ( element , originalElement ) ; \n + myToolWindow . setAutoHide ( false ) ; \n popup . cancel ( ) ; \n return false ; \n }", "msg_token": "pin a toolwindow on pin button click in quick doc view"} {"diff": " import NAMESPACE ; \n COMMENT \n public interface GrAssignmentExpression extends GrExpression , PsiPolyVariantReference { \n \n - boolean isTupleAssignment ( ) ; \n - \n @ notnull \n GrExpression getLValue ( ) ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrAssignmentExpressionImpl extends GrExpressionImpl implements GrAs \n return STRING0 ; \n } \n \n - public boolean isTupleAssignment ( ) { \n - return getFirstChild ( ) instanceof GrTupleDeclaration ; \n - } \n - \n @ notnull \n public GrExpression getLValue ( ) { \n return findExpressionChild ( this ) ;", "msg_token": "remove incorrect unused api"} {"diff": " public final class LongTaskExecutor { \n private Timer cancelTimer ; \n private LongTaskListener listener ; \n private LongTaskErrorHandler errorHandler ; \n + private LongTaskErrorHandler defaultErrorHandler ; \n \n COMMENT \n COMMENT \n public final class LongTaskExecutor { \n COMMENT \n public void setDefaultErrorHandler ( LongTaskErrorHandler errorHandler ) { \n if ( errorHandler != null ) { \n - this . errorHandler = errorHandler ; \n + this . defaultErrorHandler = errorHandler ; \n } \n } \n \n public final class LongTaskExecutor { \n } \n if ( err != null ) { \n err . fatalError ( e ) ; \n + } else if ( defaultErrorHandler != null ) { \n + defaultErrorHandler . fatalError ( e ) ; \n } else { \n Logger . getLogger ( STRING0 ) . log ( Level . SEVERE , STRING0 , e ) ; \n }", "msg_token": "Fix default error handler bug in LongTask"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - @ target ( { ElementType . PARAMETER , ElementType . METHOD } ) \n + @ target ( ElementType . PARAMETER ) \n @ retention ( RetentionPolicy . SOURCE ) \n public @ interface Matches { \n Class < ? extends Matcher < ? super ExpressionTree > > value ( ) ;", "msg_token": "Revert changes to Matches for internal reasons"} {"diff": " public class HeapTest extends TestCase { \n } \n } \n \n - @ mediumtest \n + SINGLE \n + SINGLE \n public void testOomeLarge ( ) throws Exception { \n COMMENT \n COMMENT", "msg_token": "Suppress flaky test HeapTest testOomeLarge"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class SystemKeyspace \n for ( UntypedResultSet . Row row : rs ) \n { \n InetAddress peer = row . getInetAddress ( STRING0 ) ; \n - Set < ByteBuffer > rawRanges = rawRanges = row . getSet ( STRING1 , BytesType . instance ) ; \n - Set < Range < Token > > ranges = new HashSet < > ( ) ; \n + Set < ByteBuffer > rawRanges = row . getSet ( STRING1 , BytesType . instance ) ; \n + Set < Range < Token > > ranges = Sets . newHashSetWithExpectedSize ( rawRanges . size ( ) ) ; \n for ( ByteBuffer rawRange : rawRanges ) \n { \n ranges . add ( byteBufferToRange ( rawRange , partitioner ) ) ;", "msg_token": "presize collection and fix duplicate assignment typo"} {"diff": " import NAMESPACE ; \n COMMENT \n public class StringUtil { \n \n - public static String add ( String s , String add ) { \n + public static boolean isEmpty ( final String s ) { \n + return ( s == null ) || s . length ( ) == NUMBER0 || s . equals ( STRING0 ) ; \n + } \n + \n + public static String add ( String s , String add ) { \n return add ( s , add , StringPool . COMMA ) ; \n }", "msg_token": "adding method for checking isEmpty check for string"} {"diff": " public class GsonMarshalExclusionTest extends CamelTestSupport { \n \n SINGLE \n GsonDataFormat ageExclusionFormat = new GsonDataFormat ( TestPojoExclusion . class , new AgeExclusionStrategy ( ) ) ; \n - SINGLE \n from ( STRING0 ) . marshal ( ageExclusionFormat ) ; \n + SINGLE \n from ( STRING1 ) . unmarshal ( ageExclusionFormat ) . to ( STRING2 ) ; \n } \n } ; \n public class JacksonMarshalViewTest extends CamelTestSupport { \n \n SINGLE \n JacksonDataFormat ageViewFormat = new JacksonDataFormat ( TestPojoView . class , Views . Age . class ) ; \n - SINGLE \n - \n from ( STRING3 ) . marshal ( ageViewFormat ) ; \n + SINGLE \n from ( STRING4 ) . unmarshal ( ageViewFormat ) . to ( STRING5 ) ; \n \n JacksonDataFormat weightViewFormat = new JacksonDataFormat ( TestPojoView . class , Views . Weight . class ) ; \n - \n from ( STRING6 ) . marshal ( weightViewFormat ) ; \n from ( STRING7 ) . unmarshal ( weightViewFormat ) . to ( STRING8 ) ; \n }", "msg_token": "extended snippet tags for documentation"} {"diff": " public class FtpReconnectAttemptServerStoppedTest extends FtpServerTestSupport { \n SINGLE \n ftpServer . resume ( ) ; \n \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + \n assertMockEndpointsSatisfied ( ) ; \n }", "msg_token": "Fix the test failing occasionally on the slow CI server"} {"diff": " public final class ResourceLeakDetector < T > { \n \n private static final boolean DISABLED = SystemPropertyUtil . getBoolean ( STRING0 , false ) ; \n \n + public static final boolean ENABLED = ! DISABLED ; \n + \n private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ResourceLeakDetector . class ) ; \n \n static {", "msg_token": "Add ResourceLeakDetector ENABLED"} {"diff": " public class PlainStreetEdge extends AbstractEdge implements StreetEdge { \n COMMENT \n COMMENT \n COMMENT \n - double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ; \n + double safety = bicycleSafetyEffectiveLength ; SINGLE \n double slope = slopeWorkCost ; \n weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ; \n weight /= options . speed ; \n public class StreetVertex extends GenericVertex { \n case TRIANGLE : \n double quick = slopeSpeedEffectiveLength ; \n SINGLE \n - double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ; \n + double safety = bicycleSafetyEffectiveLength ; SINGLE \n double slope = slopeWorkCost ; \n weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ; \n weight /= options . speed ;", "msg_token": "use full safety for the safety corner of the bike triangle"} {"diff": " public final class ScriptIntrinsicBlur extends ScriptIntrinsic { \n COMMENT \n public void setInput ( Allocation ain ) { \n mInput = ain ; \n - bindAllocation ( ain , NUMBER0 ) ; \n + setVar ( NUMBER0 , ain ) ; \n } \n \n COMMENT \n public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { \n COMMENT \n public void setInput ( Allocation ain ) { \n mInput = ain ; \n - bindAllocation ( ain , NUMBER0 ) ; \n + setVar ( NUMBER0 , ain ) ; \n } \n \n COMMENT \n public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { \n COMMENT \n public void setInput ( Allocation ain ) { \n mInput = ain ; \n - bindAllocation ( ain , NUMBER0 ) ; \n + setVar ( NUMBER0 , ain ) ; \n } \n \n COMMENT \n public final class ScriptIntrinsicYuvToRGB extends ScriptIntrinsic { \n COMMENT \n public void setInput ( Allocation ain ) { \n mInput = ain ; \n - bindAllocation ( ain , NUMBER1 ) ; \n + setVar ( NUMBER1 , ain ) ; \n } \n \n COMMENT", "msg_token": "Fix bugs in scriptGroup"} {"diff": " public class RecoverySourceHandlerTests extends ESTestCase { \n @ override \n public void close ( ) throws IOException { \n super . close ( ) ; \n - store . directory ( ) . sync ( Collections . singleton ( md . name ( ) ) ) ; SINGLE \n + targetStore . directory ( ) . sync ( Collections . singleton ( md . name ( ) ) ) ; SINGLE \n } \n } ; \n } catch ( IOException e ) {", "msg_token": "TEST Use actual target directory to fsync copied files in test"} {"diff": " public class ZoneInfoProvider implements Provider { \n return null ; \n } \n \n - if ( id . equals ( obj ) ) { \n - SINGLE \n - return loadZoneData ( id ) ; \n - } \n - \n if ( obj instanceof SoftReference < ? > ) { \n @ suppresswarnings ( STRING0 ) \n SoftReference < DateTimeZone > ref = ( SoftReference < DateTimeZone > ) obj ; \n public class ZoneInfoProvider implements Provider { \n } \n SINGLE \n return loadZoneData ( id ) ; \n + } else if ( id . equals ( obj ) ) { \n + SINGLE \n + return loadZoneData ( id ) ; \n } \n \n SINGLE", "msg_token": "ZoneInfoProvider getZone String throws a ClassCastException in some Android implementations of the String class"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MockConnectionManager implements ConnectionManager { \n this . registry = registry ; \n this . node = node ; \n this . logger = ioService . getLoggingService ( ) . getLogger ( MockConnectionManager . class ) ; \n - SINGLE \n - node . getNodeEngine ( ) . getHazelcastInstance ( ) . getLifecycleService ( ) . addLifecycleListener ( new LifecycleListener ( ) { \n - @ override \n - public void stateChanged ( LifecycleEvent event ) { \n - if ( LifecycleEvent . LifecycleState . SHUTTING_DOWN == event . getState ( ) ) { \n - for ( Connection connection : mapConnections . values ( ) ) { \n - if ( connection . isClient ( ) ) { \n - destroyConnection ( connection ) ; \n - } \n - } \n - } \n - } \n - } ) ; \n } \n \n @ override", "msg_token": "Removing a code piece that is not needed"} {"diff": " public class CordovaWebView extends WebView { \n SINGLE \n LOG . d ( TAG , STRING0 , oldl , l ) ; \n LOG . d ( TAG , STRING1 , oldt , t ) ; \n + ScrollEvent myEvent = new ScrollEvent ( l , t , oldl , oldt , this ) ; \n + this . postMessage ( STRING2 , myEvent ) ; \n } \n \n COMMENT", "msg_token": "Adding onScrollChanged and the ScrollEvent object"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultStompSessionTests { \n this . sessionHandler = mock ( StompSessionHandler . class ) ; \n this . connectHeaders = new StompHeaders ( ) ; \n this . session = new DefaultStompSession ( this . sessionHandler , this . connectHeaders ) ; \n + this . session . setMessageConverter ( new StringMessageConverter ( ) ) ; \n \n SettableListenableFuture < Void > future = new SettableListenableFuture < > ( ) ; \n future . set ( null ) ;", "msg_token": "Fix failing tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface ResultTransformer < T > { \n \n public T transform ( Projectable projectable ) ;", "msg_token": "Added javadocs to ResultTransformer"} {"diff": " public class SimpleErrorPageHandler implements HttpHandler { \n if ( codes == null ? exchange . getResponseCode ( ) >= NUMBER0 : codes . contains ( Integer . valueOf ( exchange . getResponseCode ( ) ) ) ) { \n final ChannelFactory < StreamSinkChannel > factory = exchange . getResponseChannelFactory ( ) ; \n if ( factory != null ) { \n - final StreamSinkChannel response = factory . create ( ) ; \n final String errorPage = STRING0 + exchange . getResponseCode ( ) + STRING1 + StatusCodes . getReason ( exchange . getResponseCode ( ) ) + STRING2 ; \n SINGLE \n exchange . getResponseHeaders ( ) . clear ( ) ; \n exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_LENGTH , STRING3 + errorPage . length ( ) ) ; \n + \n + final StreamSinkChannel response = factory . create ( ) ; \n StringWriteChannelListener listener = new StringWriteChannelListener ( errorPage ) { \n @ override \n protected void writeDone ( final StreamSinkChannel channel ) {", "msg_token": "Fix error page headers"} {"diff": " public class H2OLauncher extends JPanel implements ActionListener { \n \n try { \n ProcessBuilder pb = \n - new ProcessBuilder ( STRING0 , \n + new ProcessBuilder ( STRING1 , \n STRING2 + xmxField . getText ( ) . trim ( ) , \n - STRING3 , STRING4 , \n + STRING3 , STRING5 , \n STRING6 , cloudField . getText ( ) . trim ( ) , \n STRING7 , portField . getText ( ) . trim ( ) \n ) ;", "msg_token": "Tweak hacked hardccoded paths to run again"} {"diff": " public interface Extensions { \n COMMENT \n static final int TASKLISTITEMS = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n + static final int ALL_OPTIONALS = ( ATXHEADERSPACE | RELAXEDHRULES | TASKLISTITEMS ) ; \n + static final int ALL_WITH_OPTIONALS = ALL | ( ATXHEADERSPACE | RELAXEDHRULES | TASKLISTITEMS ) ; \n }", "msg_token": "add ALL_OPTIONALS and ALL_WITH_OPTIONALS extension set"} {"diff": " public final class Configuration { \n setIndexVersionedFilesOnly ( false ) ; \n setHitsPerPage ( NUMBER0 ) ; \n setCachePages ( NUMBER1 ) ; \n - setDatabaseDriver ( STRING0 ) ; \n + setDatabaseDriver ( STRING1 ) ; \n } \n \n public String getCtags ( ) { \n public final class Configuration { \n \n public String getDatabaseUrl ( ) { \n if ( databaseUrl == null ) { \n - return STRING2 + getDataRoot ( ) + \n - File . separator + STRING3 ; \n + return STRING4 ; \n } \n return databaseUrl ; \n }", "msg_token": "We should use the Derby client driver by default"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class ColorPicker extends View { \n COMMENT \n COMMENT", "msg_token": "Add JavaDoc for the class"} {"diff": " public class ActFmLoginActivity extends Activity implements AuthListener { \n char last = STRING0 ; \n for ( int i = NUMBER0 ; i < chars . length ; i ++ ) { \n char r = acceptable . charAt ( rand . nextInt ( acceptable . length ( ) ) ) ; \n - while ( checkSimilar ( last , r ) ) \n + while ( ! checkSimilar ( last , r ) ) \n r = acceptable . charAt ( rand . nextInt ( acceptable . length ( ) ) ) ; \n last = r ; \n chars [ i ] = r ;", "msg_token": "Fixed an infinite loop causing an anr"} {"diff": " class DependencyManagementBuildScopeServices { \n SINGLE \n BuildIdentity createBuildIdentity ( ProjectRegistry < ProjectInternal > projectRegistry ) { \n ProjectInternal rootProject = projectRegistry . getProject ( STRING0 ) ; \n - if ( rootProject . getGradle ( ) . getParent ( ) == null ) { \n + if ( rootProject == null || rootProject . getGradle ( ) . getParent ( ) == null ) { \n SINGLE \n return new DefaultBuildIdentity ( new DefaultBuildIdentifier ( STRING0 , true ) ) ; \n }", "msg_token": "Use default build identity when no root project available"} {"diff": " public abstract class AbstractIntertechnoParser implements \n for ( int i = length - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n int currentBitValue = ( int ) Math . pow ( NUMBER2 , i ) ; \n char bit = char0 ; \n - if ( currentBitValue >= value ) { \n + if ( value >= currentBitValue ) { \n bit = char1 ; \n value = value - currentBitValue ; \n }", "msg_token": "Fix String Encoding for Intertechno Addresses"} {"diff": " public abstract class JavaTestFrameworkRunnableState < T extends ModuleBasedConfig \n \n @ nullable \n public ServerSocket getForkSocket ( ) { \n - if ( myForkSocket == null && ( ! Comparing . strEqual ( getForkMode ( ) , STRING0 ) || forkPerModule ( ) ) ) { \n + if ( myForkSocket == null && ( ! Comparing . strEqual ( getForkMode ( ) , STRING0 ) || forkPerModule ( ) ) && getRunnerSettings ( ) != null ) { \n try { \n myForkSocket = new ServerSocket ( NUMBER0 , NUMBER0 , InetAddress . getByName ( STRING1 ) ) ; \n }", "msg_token": "disable socket for run"} {"diff": " public class URLUtils \n { \n Preconditions . checkNotNull ( url , STRING0 ) ; \n String queryString = URLUtils . formURLEncodeMap ( params ) ; \n - if ( queryString . isEmpty ( ) ) return url ; \n + if ( queryString . length ( ) == NUMBER0 ) return url ; \n \n SINGLE \n url += url . indexOf ( QUERY_STRING_SEPARATOR ) != - NUMBER1 ? PARAM_SEPARATOR : QUERY_STRING_SEPARATOR ;", "msg_token": "Removed isEmpty for old VM compatibility"} {"diff": " public class PythonFindUsagesProvider implements FindUsagesProvider { \n return STRING0 ; \n } \n if ( element instanceof PyClass ) return STRING1 ; \n - if ( element instanceof PyReferenceExpression || element instanceof PyTargetExpression ) return STRING2 ; \n + if ( element instanceof PyReferenceExpression ) return STRING2 ; \n + if ( element instanceof PyTargetExpression ) { \n + final PyImportElement importElement = PsiTreeUtil . getParentOfType ( element , PyImportElement . class ) ; \n + if ( importElement != null && importElement . getAsNameElement ( ) == element ) { \n + return STRING3 ; \n + } \n + return STRING2 ; \n + } \n return STRING4 ; \n }", "msg_token": "show more descriptive name in rename dialog when renaming module as name"} {"diff": " public enum PropertyRenamingPolicy { \n COMMENT \n COMMENT \n COMMENT \n - ALL_UNQUOTED , \n - \n - SINGLE \n - UNSPECIFIED \n + ALL_UNQUOTED \n } \n public enum VariableRenamingPolicy { \n COMMENT \n COMMENT \n COMMENT \n - ALL , \n - \n - SINGLE \n - UNSPECIFIED \n + ALL \n }", "msg_token": "Remove unneeded legacy renaming policies"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Move test to the correct package"} {"diff": " public class SparkleActivator \n { \n private static Logger logger = Logger . getLogger ( SparkleActivator . class ) ; \n \n - SINGLE \n - public native static void initSparkle ( String pathToSparkleFramework ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + public native static void initSparkle ( String pathToSparkleFramework , \n + boolean updateAtStartup , \n + int checkInterval ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private boolean updateAtStartup = true ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private int checkInterval = NUMBER0 ; SINGLE \n \n COMMENT \n COMMENT \n public class SparkleActivator \n public void start ( BundleContext bundleContext ) throws Exception \n { \n SINGLE \n - initSparkle ( System . getProperty ( STRING0 ) + STRING1 ) ; \n + initSparkle ( System . getProperty ( STRING0 ) \n + + STRING1 , \n + updateAtStartup , checkInterval ) ; \n logger . info ( STRING2 ) ; \n }", "msg_token": "Updated the Sparkle activator which now can set whether"} {"diff": " public class NotificationsListFragment extends Fragment \n public static final String NOTE_PREFILLED_REPLY_EXTRA = STRING0 ; \n public static final String NOTE_MODERATE_ID_EXTRA = STRING1 ; \n public static final String NOTE_MODERATE_STATUS_EXTRA = STRING2 ; \n - public static final String NOTE_ALLOW_NAVIGATE_LIST_EXTRA = STRING3 ; \n public static final String NOTE_CURRENT_LIST_FILTER_EXTRA = STRING4 ; \n \n private static final String KEY_LIST_SCROLL_POSITION = STRING5 ;", "msg_token": "dropped unsued constant"} {"diff": " import NAMESPACE ; \n public class FakeToast { \n public static List < CharSequence > toastMessages = new ArrayList < CharSequence > ( ) ; \n \n + public static Toast makeText ( Context context , int resId , int duration ) { \n + toastMessages . add ( context . getResources ( ) . getString ( resId ) ) ; \n + return new Toast ( null ) ; \n + } \n + \n public static Toast makeText ( Context context , CharSequence text , int duration ) { \n toastMessages . add ( text ) ; \n return new Toast ( null ) ;", "msg_token": "add support to FakeToast for resource id messages"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public abstract class ItemEngine { \n public void resetItem ( View itemView ) { \n public abstract class ItemEngine { \n return loadItem ( itemParams ) ; \n } \n \n + public Object getPreloadItemParams ( Adapter adapter , int position ) { \n + return null ; \n + } \n + \n public abstract Object loadItem ( Object itemParams ) ; \n \n public abstract void displayItem ( View itemView , Object item , boolean fromMemory ) ;", "msg_token": "library Add ItemEngine API to get preload item params"} {"diff": " public class CursorColumnsTest extends AbstractTest { \n employee . setExtra ( new Mixed ( arr ) ) ; \n SINGLE \n assertEquals ( Mixed . BINARY_TYPE_BYTE_BUFFER , employee . getExtra ( ) . getBinaryType ( ) ) ; \n - SINGLE \n + assertEquals ( ByteBuffer . wrap ( arr ) , employee . getExtra ( ) . getBinaryValue ( ) ) ; \n assertEquals ( ColumnType . BINARY , employee . getExtra ( ) . getType ( ) ) ;", "msg_token": "removed comment to reenable test"} {"diff": " public class JspFactoryImpl extends JspFactory { \n } \n } \n \n - private final static String APP_CONTEXT_VARIABLE = JspApplicationContextImpl . class . getName ( ) ; \n - \n public JspApplicationContext getJspApplicationContext ( ServletContext context ) { \n - JspApplicationContext appContext = ( JspApplicationContext ) context . getAttribute ( APP_CONTEXT_VARIABLE ) ; \n - if ( appContext == null ) { \n - appContext = new JspApplicationContextImpl ( ) ; \n - context . setAttribute ( APP_CONTEXT_VARIABLE , appContext ) ; \n - } \n - return appContext ; \n + return JspApplicationContextImpl . getInstance ( context ) ; \n } \n }", "msg_token": "Use getInstance rather than create something with a different key"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed import linked in javadoc"} {"diff": " public abstract class AbstractTitanGraphProvider extends AbstractGraphProvider { \n add ( CacheVertexProperty . class ) ; \n add ( FulgoraVertexProperty . class ) ; \n \n - add ( TitanIoRegistry . class ) ; \n add ( TitanGraphVariables . class ) ; \n \n add ( FulgoraElementTraversal . class ) ; \n - add ( TitanFeatures . class ) ; \n } } ; \n \n @ override", "msg_token": "Drop two unneeded registrations from the titan GraphProvider implementation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed JavaDoc of HistogramLogReader"} {"diff": " public class SessionSetting { \n \n @ override \n public String toString ( ) { \n - return MoreObjects . toStringHelper ( this ) . omitNullValues ( ) . add ( STRING0 , request ) . add ( STRING1 , response ) . toString ( ) ; \n + return MoreObjects . toStringHelper ( this ) . omitNullValues ( ) \n + . add ( STRING0 , request ) \n + . add ( STRING1 , response ) \n + . add ( STRING2 , redirectTo ) \n + . add ( STRING3 , mount ) \n + . add ( STRING4 , proxy ) \n + . add ( STRING5 , on ) \n + . toString ( ) ; \n } \n \n private boolean isRedirectResponse ( ) {", "msg_token": "added more fields to session setting"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class NimbusInfo implements Serializable { \n + private static final Logger LOG = LoggerFactory . getLogger ( NimbusInfo . class ) ; \n private static final String DELIM = STRING0 ; \n \n private String host ; \n public class NimbusInfo implements Serializable { \n public static NimbusInfo fromConf ( Map conf ) { \n try { \n String host = InetAddress . getLocalHost ( ) . getCanonicalHostName ( ) ; \n + if ( conf . containsKey ( Config . STORM_LOCAL_HOSTNAME ) ) { \n + host = conf . get ( Config . STORM_LOCAL_HOSTNAME ) . toString ( ) ; \n + LOG . info ( STRING1 , host ) ; \n + } \n + \n int port = Integer . parseInt ( conf . get ( Config . NIMBUS_THRIFT_PORT ) . toString ( ) ) ; \n return new NimbusInfo ( host , port , false ) ;", "msg_token": "nimbus host should support Config STORM_LOCAL_HOSTNAME"} {"diff": " public class PGraphicsOpenGL2 extends PGraphics { \n if ( raw != null ) { \n SINGLE \n } \n - faceCount = NUMBER0 ; \n + \n vertexCount = NUMBER0 ; \n triangleCount = NUMBER0 ; \n }", "msg_token": "Initializing one less var"} {"diff": " public class FileBasedIndexImpl extends FileBasedIndex { \n } \n catch ( ProcessCanceledException e ) { \n cleanFileContent ( fc , psiFile ) ; \n + myChangedFilesCollector . invalidateIndicesForFile ( file , true ) ; \n throw e ; \n } \n catch ( StorageException e ) {", "msg_token": "invalidate indices on PCE"} {"diff": " public class FacetErrorPanel { \n public void actionPerformed ( final ActionEvent e ) { \n if ( myCurrentQuickFix != null ) { \n myCurrentQuickFix . run ( myQuickFixButton ) ; \n + myValidatorsManager . validate ( ) ; \n } \n } \n } ) ;", "msg_token": "added quickfix to include gwt servlet jar to artifact"} {"diff": " public class TestReportDataCollector implements TestListener , TestOutputListener \n if ( className == null ) { \n SINGLE \n SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n return ; \n } \n TestClassResult classResult = results . get ( className ) ;", "msg_token": "Added more documentation regarding TestNG"} {"diff": " public class KeepAliveTimersTest extends CrateUnitTest { \n final KeepAliveTimers . ResettableTimer timer = futureAndTimer . v2 ( ) ; \n SettableFuture < Void > future = futureAndTimer . v1 ( ) ; \n \n - timer . start ( ) ; \n scheduledExecutorService . scheduleWithFixedDelay ( new Runnable ( ) { \n @ override \n public void run ( ) { \n timer . reset ( ) ; \n } \n } , NUMBER0 , NUMBER1 , TimeUnit . MILLISECONDS ) ; \n + timer . start ( ) ; \n expectedException . expect ( TimeoutException . class ) ; \n future . get ( NUMBER2 , TimeUnit . MILLISECONDS ) ; \n }", "msg_token": "fixed flaky testKeepAliveRunnableNotCalledWithManyResets"} {"diff": " final class ActivityStack { \n ActivityOptions . abort ( options ) ; \n if ( DEBUG_STATES ) Slog . d ( TAG , STRING0 + next ) ; \n if ( DEBUG_STACK ) mStackSupervisor . validateTopActivitiesLocked ( ) ; \n + \n + SINGLE \n + mStackSupervisor . notifyActivityDrawnForKeyguard ( ) ; \n return false ; \n }", "msg_token": "Fix that Keyguard didn t always get onActivityDrawn call"} {"diff": " import NAMESPACE ; \n \n public interface ProfilerImplProtocol extends RPCProtocol { \n \n - void reportProfilingData ( List < InternalProfilingData > profilingData ) throws IOException ; \n + void reportProfilingData ( List < InternalProfilingData > profilingData ) throws IOException , InterruptedException ; \n } \n public class TaskManagerProfilerImpl extends TimerTask implements TaskManagerPro \n this . profilingDataContainer . clear ( ) ; \n } catch ( IOException e ) { \n LOG . error ( StringUtils . stringifyException ( e ) ) ; \n + } catch ( InterruptedException ie ) { \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( StringUtils . stringifyException ( ie ) ) ; \n + } \n } \n } \n }", "msg_token": "Changed ProfilerImplProtocol interface to throw an InterruptedException"} {"diff": " public class EReceiverHolder extends EComponentHolder { \n @ override \n protected void setInit ( ) { \n init = generatedClass . method ( PRIVATE , codeModel ( ) . VOID , STRING0 ) ; \n - createOnReceive ( ) ; \n + if ( onReceiveMethod == null ) { \n + createOnReceive ( ) ; \n + } \n } \n \n private void createOnReceive ( ) {", "msg_token": "call only createOnReceive only if onReceiveMethod has not yet been created"} {"diff": " public class MultiShortestPathTree extends AbstractShortestPathTree { \n return stateSets . keySet ( ) . size ( ) ; \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 + COMMENT \n + COMMENT \n @ override \n public boolean visit ( State state ) { \n boolean ret = false ;", "msg_token": "add comment explaining multi SPT visit method"} {"diff": " public class DBCollectionTest extends DatabaseTestCase { \n } \n \n @ test \n - @ ignore ( STRING0 ) \n + @ ignore ( STRING1 \n + + STRING2 ) \n public void testCreateIndexAsText ( ) { \n assumeTrue ( serverVersionAtLeast ( asList ( NUMBER0 , NUMBER1 , NUMBER2 ) ) ) ; \n DBObject index = new BasicDBObject ( STRING3 , STRING4 ) ;", "msg_token": "wrap the line"} {"diff": " public class XmlRefCountHolder { \n @ override \n public void visitXmlTag ( XmlTag tag ) { \n myHolder . addUsedPrefix ( tag . getNamespacePrefix ( ) ) ; \n + String text = tag . getValue ( ) . getTrimmedText ( ) ; \n + detectPrefix ( text ) ; \n super . visitXmlTag ( tag ) ; \n } \n \n public class XmlRefCountHolder { \n } \n \n String s = value . getValue ( ) ; \n + detectPrefix ( s ) ; \n + super . visitXmlAttributeValue ( value ) ; \n + } \n + \n + private void detectPrefix ( String s ) { \n if ( s != null ) { \n int pos = s . indexOf ( STRING0 ) ; \n if ( pos > NUMBER0 ) { \n myHolder . addUsedPrefix ( s . substring ( NUMBER0 , pos ) ) ; \n } \n } \n - super . visitXmlAttributeValue ( value ) ; \n } \n \n private void updateMap ( @ notnull final XmlAttribute attribute , @ notnull final XmlAttributeValue value , final boolean soft ) {", "msg_token": "Optimize Imports auto removes XML namespace declarations used only in element values"} {"diff": " public class SearchView extends LinearLayoutCompat implements CollapsibleActionV \n } \n \n public SearchAutoComplete ( Context context , AttributeSet attrs ) { \n - this ( context , attrs , android . R . attr . autoCompleteTextViewStyle ) ; \n + this ( context , attrs , R . attr . autoCompleteTextViewStyle ) ; \n } \n \n public SearchAutoComplete ( Context context , AttributeSet attrs , int defStyle ) {", "msg_token": "Fix SearchView s AutoCompleteTextView default style"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SortActivity extends AppCompatActivity { \n \n - public static final int SORT_ASCENDING = NUMBER0 ; \n - public static final int SORT_DESCENDING = NUMBER1 ; \n + private static final int SORT_ASCENDING = NUMBER0 ; \n + private static final int SORT_DESCENDING = NUMBER1 ; \n private static final int SORT_NONE = - NUMBER1 ; \n + \n private static final String [ ] ALPHABET = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , \n STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , \n STRING25 } ;", "msg_token": "make all constants private"} {"diff": " public class MimeMap implements FileNameMap { \n new Hashtable < String , String > ( NUMBER0 ) ; \n static { \n defaultMap . put ( STRING0 , STRING1 ) ; \n + defaultMap . put ( STRING2 , STRING3 ) ; \n defaultMap . put ( STRING4 , STRING5 ) ; \n defaultMap . put ( STRING6 , STRING5 ) ; \n defaultMap . put ( STRING7 , STRING8 ) ; \n public class MimeMap implements FileNameMap { \n return map . keys ( ) ; \n } \n \n + public String getMimeType ( String ext ) { \n + return getContentTypeFor ( ext ) ; \n + } \n + \n public String getContentType ( String extn ) { \n String type = map . get ( extn . toLowerCase ( ) ) ; \n if ( type == null ) type = defaultMap . get ( extn ) ;", "msg_token": "Added a getter and the css mapping"} {"diff": " public interface CommandSender { \n public boolean isPlayer ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Corrected description of CommandSender getServer"} {"diff": " public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . \n return ; \n } \n \n - if ( attributeDescriptor . hasIdType ( ) ) { \n + if ( myRefCountHolder != null && attributeDescriptor . hasIdType ( ) ) { \n String unquotedValue = getUnquotedValue ( value , tag ) ; \n final XmlTag xmlTag = myRefCountHolder . getTagById ( unquotedValue ) ; \n \n public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . \n } \n \n public static HighlightInfo checkIdRefAttrValue ( XmlAttributeValue value , RefCountHolder holder ) { \n - if ( ! ( value . getParent ( ) instanceof XmlAttribute ) ) return null ; \n + if ( ! ( value . getParent ( ) instanceof XmlAttribute ) || holder == null ) return null ; \n XmlAttribute attribute = ( XmlAttribute ) value . getParent ( ) ; \n \n XmlTag tag = attribute . getParent ( ) ;", "msg_token": "fixed NPE with null refcountholder"} {"diff": " public class TestNGRunnableState extends JavaCommandLineState { \n LOGGER . info ( STRING0 + is15 ) ; \n \n SINGLE \n - javaParameters . getClassPath ( ) . add ( new File ( PathManager . getPreinstalledPluginsPath ( ) , STRING1 ) . getPath ( ) ) ; \n javaParameters . getClassPath ( ) . add ( is15 ? PathUtil . getJarPathForClass ( AfterClass . class ) : SINGLE \n new File ( PathManager . getPreinstalledPluginsPath ( ) , STRING2 ) . getPath ( ) ) ; SINGLE", "msg_token": "remove testng integration from classpath"} {"diff": " public class CassandraDatastore implements Datastore \n private LongDataPointFactory m_longDataPointFactory = new LongDataPointFactoryImpl ( ) ; \n \n @ inject \n - private List < RowKeyListener > m_rowKeyListeners ; \n + private List < RowKeyListener > m_rowKeyListeners = Collections . EMPTY_LIST ; \n \n \n @ inject", "msg_token": "Fixed unit tests for empty row key listeners"} {"diff": " public class SunriseSunset \n SINGLE \n SINGLE \n SINGLE \n - double dfTimeZoneIn = - FLOAT0 * tzIn . getOffset ( dateInputIn ) / NUMBER0 ; \n + double dfTimeZoneIn = - FLOAT0 * tzIn . getOffset ( dateInputIn . getTime ( ) ) / NUMBER0 ; \n \n SINGLE \n dfLat = dfLatIn ;", "msg_token": "Fix TimeZone getOffset call"} {"diff": " public class TestMediaType { \n m . getParameterValue ( STRING0 ) ) ; \n \n String expected = STRING1 + \n - STRING2 + \n - STRING3 ; \n + STRING4 + \n + STRING5 ; \n assertEquals ( expected , m . toString ( ) ) ; \n assertEquals ( expected , m . toStringNoCharset ( ) ) ; \n assertNull ( m . getCharset ( ) ) ;", "msg_token": "Fix unit test failures after case insensitivity changes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StreetUtils { \n COMMENT \n for ( HashSet < Vertex > island : islands ) { \n if ( island . size ( ) < NUMBER0 ) { \n - _log . warn ( STRING0 \n - + island . iterator ( ) . next ( ) ) ; \n + _log . warn ( GraphBuilderAnnotation . register ( graph , Variety . GRAPH_CONNECTIVITY , \n + island . iterator ( ) . next ( ) , island ) ) ; \n for ( Vertex vertex : island ) { \n depedestrianizeOrRemove ( graph , vertex ) ; \n }", "msg_token": "register a graphbuilder annotation when an island is pruned"} {"diff": " public class CrshAutoConfigurationTests { \n this . context . register ( SecurityConfiguration . class ) ; \n this . context . register ( CrshAutoConfiguration . class ) ; \n this . context . refresh ( ) ; \n - \n + \n PluginLifeCycle lifeCycle = this . context . getBean ( PluginLifeCycle . class ) ; \n assertEquals ( lifeCycle . getConfig ( ) . get ( STRING0 ) , STRING1 ) ; \n }", "msg_token": "Strip trailing whitespace"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalTransferManager extends AbstractTransferManager { \n throw new StorageException ( STRING0 + repoPath ) ; \n } \n \n - Set < RemoteFile > filesToIgnore = getFilesInTransactions ( ) ; \n + Set < RemoteFile > filesToIgnore ; \n + if ( remoteFileClass . equals ( TransactionRemoteFile . class ) ) { \n + SINGLE \n + filesToIgnore = new HashSet < RemoteFile > ( ) ; \n + } \n + else { \n + filesToIgnore = getFilesInTransactions ( ) ; \n + \n + } \n + \n SINGLE \n Map < String , T > remoteFiles = new HashMap < String , T > ( ) ;", "msg_token": "Don t ignore transaction files to prevent stackoverflow"} {"diff": " public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb \n } \n } \n else { \n + ProcessHandler processHandler = getProcessHandler ( ) ; \n + boolean terminated = \n + processHandler != null && ( processHandler . isProcessTerminating ( ) || processHandler . isProcessTerminated ( ) ) ; \n + \n fail ( ) ; \n DebuggerInvocationUtil . swingInvokeLater ( myProject , ( ) - > { \n SINGLE \n SINGLE \n SINGLE \n - if ( myExecutionResult != null || ! connectorIsReady . get ( ) ) { \n + if ( ( myExecutionResult != null && ! terminated ) || ! connectorIsReady . get ( ) ) { \n ExecutionUtil . handleExecutionError ( myProject , ToolWindowId . DEBUG , sessionName , e ) ; \n } \n } ) ;", "msg_token": "do not show failed debugger start notification if the process died before attach"} {"diff": " public class WebSocketAsyncConnection extends AbstractAsyncConnection implements \n } \n finally \n { \n - SINGLE \n - SINGLE \n + fillInterested ( ) ; \n setCurrentConnection ( null ) ; \n bufferPool . release ( buffer ) ; \n }", "msg_token": "Fixing fill interested"} {"diff": " public class MobileSignalController extends SignalController < \n \n mapIconSets ( ) ; \n \n - mLastState . networkName = mCurrentState . networkName = mNetworkNameDefault ; \n - mLastState . networkNameData = mCurrentState . networkNameData = mNetworkNameDefault ; \n + String networkName = info . getCarrierName ( ) != null ? info . getCarrierName ( ) . toString ( ) \n + : mNetworkNameDefault ; \n + mLastState . networkName = mCurrentState . networkName = networkName ; \n + mLastState . networkNameData = mCurrentState . networkNameData = networkName ; \n mLastState . enabled = mCurrentState . enabled = hasMobileData ; \n mLastState . iconGroup = mCurrentState . iconGroup = mDefaultIcons ; \n SINGLE", "msg_token": "Initialize network name better in NetworkController"} {"diff": " public abstract class JdbcInterceptor implements InvocationHandler { \n } \n \n public boolean compare ( String name1 , String name2 ) { \n - if ( useEquals ( ) ) { \n + if ( isUseEquals ( ) ) { \n return name1 . equals ( name2 ) ; \n } else { \n return name1 == name2 ; \n public abstract class JdbcInterceptor implements InvocationHandler { \n this . properties = properties ; \n } \n \n - public boolean getUseEquals ( ) { \n - return useEquals ( ) ; \n - } \n - \n - public boolean useEquals ( ) { \n + public boolean isUseEquals ( ) { \n return useEquals ; \n }", "msg_token": "use same method names everywhere"} {"diff": " public class JsonPathHelloWorld { \n . read ( STRING0 , List . class ) ; \n \n System . out . println ( expensiveBooks ) ; SINGLE \n + \n + System . out . println ( ) ; \n + String jsonHiWorld = STRING1 ; \n + String message = JsonPath . read ( jsonHiWorld , STRING2 ) ; \n + String place = JsonPath . read ( jsonHiWorld , STRING3 ) ; \n + System . out . println ( message + STRING4 + place ) ; SINGLE \n + \n } \n \n private final static String json = STRING5 +", "msg_token": "Add new examples in JsonPath"} {"diff": " public class TranslateAnimation3D extends Animation3D { \n super . setDuration ( duration ) ; \n mLookatDelta = FLOAT0 / duration ; \n } \n + \n + @ override \n + public void reset ( ) { \n + super . reset ( ) ; \n + SINGLE \n + mDiffPosition = null ; \n + } \n }", "msg_token": "Resolved bug in TranslateAnimation3D that caused unexpected translations when reusing animation"} {"diff": " public class InputRegistry extends HashSet < IOState < MessageInput > > { \n if ( inputState != null ) \n inputState . setState ( IOState . Type . TERMINATED ) ; \n \n - return super . remove ( input ) ; \n + return super . remove ( inputState ) ; \n } \n \n public boolean remove ( IOState < MessageInput > inputState ) {", "msg_token": "Fixing removal from InputRegistry"} {"diff": " public class HttpRequest { \n public static final String HEADER_EXPIRES = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - public static final String HEADER_HOST = STRING1 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n public static final String HEADER_LAST_MODIFIED = STRING2 ; \n public class HttpRequest { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public HttpRequest host ( final String value ) { \n - return header ( HEADER_HOST , value ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove helper for Host request header"} {"diff": " public class ModulesConfigurator implements ModulesProvider , ModuleEditor . Change \n for ( ModuleEditor . ChangeListener listener : myAllModulesChangeListeners ) { \n listener . moduleStateChanged ( moduleRootModel ) ; \n } \n + myContext . getDaemonAnalyzer ( ) . queueUpdate ( new ModuleProjectStructureElement ( myContext , moduleRootModel . getModule ( ) ) ) ; \n } \n \n public void addAllModuleChangeListener ( ModuleEditor . ChangeListener listener ) {", "msg_token": "recheck module element when its root model is changed via api"} {"diff": " public class TestProxy extends AbstractTestProxy { \n if ( parentLocation != null ) { \n final PsiElement parentElement = parentLocation . getPsiElement ( ) ; \n if ( parentElement instanceof PsiClass ) { \n - final PsiAnnotation annotation = AnnotationUtil . findAnnotation ( ( PsiClass ) parentElement , JUnitUtil . RUN_WITH ) ; \n + final PsiAnnotation annotation = AnnotationUtil . findAnnotationInHierarchy ( ( PsiClass ) parentElement , Collections . singleton ( JUnitUtil . RUN_WITH ) ) ; \n if ( annotation != null ) { \n final PsiAnnotationMemberValue attributeValue = annotation . findAttributeValue ( STRING0 ) ; \n if ( attributeValue instanceof PsiClassObjectAccessExpression ) {", "msg_token": "accept RunWith on supers"} {"diff": " public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn \n clearSessionCookie ( cr ) ; \n SINGLE \n SINGLE \n - if ( mContactListManager != null ) { \n - mContactListManager . clearOnLogout ( ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n \n mConnectionState = state ; \n } else if ( state == ImConnection . SUSPENDED && error != null ) {", "msg_token": "Don t clear list contacts data from memory on logout"} {"diff": " public class ProjectViewImpl extends ProjectView implements PersistentStateCompo \n private final SplitterProportionsData splitterProportions = new SplitterProportionsDataImpl ( ) ; \n private final MessageBusConnection myConnection ; \n private final Map < String , Element > myUninitializedPaneState = new HashMap < String , Element > ( ) ; \n - private final Map < String , SelectInTarget > mySelectInTargets = new HashMap < String , SelectInTarget > ( ) ; \n + private final Map < String , SelectInTarget > mySelectInTargets = new LinkedHashMap < String , SelectInTarget > ( ) ; \n private ContentManager myContentManager ; \n private boolean myFoldersAlwaysOnTop = true ;", "msg_token": "preserve registration order to prevent select in Packages by default"} {"diff": " public class AvroExternalJarProgramITCase { \n private static final String TEST_DATA_FILE = STRING0 ; \n \n static { \n - LogUtils . initializeDefaultConsoleLogger ( ) ; \n + LogUtils . initializeDefaultTestConsoleLogger ( ) ; \n } \n \n @ test", "msg_token": "Fixed logging in avro tets case"} {"diff": " public class PlansActivity extends AppCompatActivity { \n \n hideProgress ( ) ; \n \n - mViewPager . setOffscreenPageLimit ( mAvailablePlans . length - NUMBER0 ) ; \n mViewPager . setAdapter ( getPageAdapter ( ) ) ; \n \n mTabLayout . setTabMode ( TabLayout . MODE_FIXED ) ;", "msg_token": "Remove the offscreen page limit"} {"diff": " public class TestDiscoveryIndex implements ProjectComponent { \n ApplicationManager . getApplication ( ) . executeOnPooledThread ( new Runnable ( ) { \n @ override \n public void run ( ) { \n + String path = TestDiscoveryExtension . baseTestDiscoveryPathForProject ( myProject ) ; \n + if ( ! new File ( path ) . exists ( ) ) return ; \n + \n getHolder ( ) ; SINGLE \n } \n } ) ;", "msg_token": "skip index data initialization if the directory doesn t exist"} {"diff": " public class KeyguardBouncer { \n } \n \n public void show ( boolean resetSecuritySelection ) { \n + final int keyguardUserId = KeyguardUpdateMonitor . getCurrentUser ( ) ; \n + if ( keyguardUserId == UserHandle . USER_SYSTEM && UserManager . isSplitSystemUser ( ) ) { \n + SINGLE \n + return ; \n + } \n mFalsingManager . onBouncerShown ( ) ; \n ensureView ( ) ; \n if ( resetSecuritySelection ) { \n public class KeyguardBouncer { \n } \n \n final int activeUserId = ActivityManager . getCurrentUser ( ) ; \n - final int keyguardUserId = KeyguardUpdateMonitor . getCurrentUser ( ) ; \n final boolean allowDismissKeyguard = \n ! ( UserManager . isSplitSystemUser ( ) && activeUserId == UserHandle . USER_SYSTEM ) \n && activeUserId == keyguardUserId ;", "msg_token": "Don t show UNLOCK button when there are no users"} {"diff": " public class IdEdge extends IdElement implements Edge { \n public Edge setProperty ( final String key , final Object value ) { \n return ( Edge ) super . setProperty ( key , value ) ; \n } \n + \n + public String toString ( ) { \n + return STRING0 + getId ( ) + STRING1 + baseElement + STRING2 ; \n + } \n } \n public class IdVertex extends IdElement implements Vertex { \n public Vertex setProperty ( final String key , final Object value ) { \n return ( Vertex ) super . setProperty ( key , value ) ; \n } \n + \n + public String toString ( ) { \n + return STRING3 + getId ( ) + STRING1 + baseElement + STRING2 ; \n + } \n }", "msg_token": "Added toString methods for IdVertex and IdEdge"} {"diff": " public abstract class PlaybackController { \n if ( AppConfig . DEBUG ) \n Log . d ( TAG , \n STRING0 ) ; \n - bound = activity . bindService ( new Intent ( activity , PlaybackService . class ) , mConnection , NUMBER0 ) ; \n + bound = activity . bindService ( new Intent ( activity , \n + PlaybackService . class ) , mConnection , NUMBER0 ) ; \n } \n if ( AppConfig . DEBUG ) \n Log . d ( TAG , STRING1 + bound ) ; \n public abstract class PlaybackController { \n \n setupGUI ( ) ; \n handleStatus ( ) ; \n + SINGLE \n + mediaInfoLoaded = false ; \n \n } else { \n Log . e ( TAG ,", "msg_token": "Reload media info later if playbackservice has no media object when it s"} {"diff": " public final class RenderTaskListGenerator { \n intermediateList . add ( node ) ; \n SINGLE \n for ( StateChange stateChange : node . getDesiredStateChanges ( ) ) { \n - SINGLE \n StateChange defaultInstance = stateChange . getDefaultInstance ( ) ; \n - if ( defaultInstance != null ) { \n - intermediateList . add ( defaultInstance ) ; \n - } \n + intermediateList . add ( defaultInstance ) ; \n } \n - \n } \n logList ( STRING0 , intermediateList ) ; SINGLE \n }", "msg_token": "Remove null check of defaultInstance in RenderTaskListGenerator"} {"diff": " public class NativeViewHierarchyManager { \n tagsToDelete ) ) ; \n } \n \n - View viewToRemove = viewToManage . getChildAt ( indexToRemove ) ; \n + View viewToRemove = viewManager . getChildAt ( viewToManage , indexToRemove ) ; \n \n if ( mLayoutAnimator . shouldAnimateLayout ( viewToRemove ) && \n arrayContains ( tagsToDelete , viewToRemove . getId ( ) ) ) {", "msg_token": "Fix deletion layout animations to work with custom view managers"} {"diff": " public interface Code { \n \n Object clone ( Set < Code > seen ) ; \n \n + String getName ( ) ; \n \n COMMENT \n COMMENT \n public class DefaultCode implements Code , Cloneable { \n return newScopes ; \n } \n } \n + \n + @ override \n + public String getName ( ) { \n + return name ; \n + } \n + \n }", "msg_token": "Allow access to the name of a code for template analysis"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI { \n g . setColor ( parent . getBackground ( ) ) ; \n g . fillRect ( NUMBER0 , NUMBER0 , c . getWidth ( ) , c . getHeight ( ) ) ; \n } \n - final GraphicsConfig config = new GraphicsConfig ( g ) ; \n - g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; \n - g . setRenderingHint ( RenderingHints . KEY_STROKE_CONTROL , RenderingHints . VALUE_STROKE_NORMALIZE ) ; \n \n if ( isSearchField ( c ) ) { \n paintSearchField ( g , c , r ) ; \n public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI { \n super . paintBackground ( g ) ; \n } \n } \n - config . restore ( ) ; \n } \n \n @ notnull", "msg_token": "remove unnecessary AA options for text fields to reduce blurred lines"} {"diff": " import NAMESPACE ; \n @ implements ( Display . class ) \n public class ShadowDisplay { \n private int displayId ; \n - private int width = NUMBER0 ; \n - private int height = NUMBER1 ; \n + private int width = NUMBER1 ; \n + private int height = NUMBER0 ; \n private float density = FLOAT0 ; \n private int densityDpi = DisplayMetrics . DENSITY_HIGH ; \n private float xdpi = FLOAT1 ;", "msg_token": "Fixed ShadowDisplay s default width and height"} {"diff": " public class ImagePresenter < T > { \n handler . removeCallbacksAndMessages ( PENDING_SIZE_CHANGE_TOKEN ) ; \n this . cb = null ; \n ViewGroup . LayoutParams layoutParams = view . getLayoutParams ( ) ; \n - if ( layoutParams . width > NUMBER0 && layoutParams . height > NUMBER0 ) { \n + if ( layoutParams != null && layoutParams . width > NUMBER0 && layoutParams . height > NUMBER0 ) { \n cb . onSizeReady ( layoutParams . width , layoutParams . height ) ; \n } else if ( valid ) { \n cb . onSizeReady ( width , height ) ;", "msg_token": "Fix an NPE if layout params not yet set in view"} {"diff": " public class Imports { \n imports . add ( STRING0 ) ; \n imports . add ( STRING1 ) ; \n imports . add ( STRING2 ) ; \n + imports . add ( STRING3 ) ; \n imports . add ( STRING4 ) ; \n imports . add ( STRING5 ) ; \n imports . add ( STRING6 ) ;", "msg_token": "added automatic import support for ReadOnlyGraph"} {"diff": " public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge \n myProgressIcon . setBorder ( StatusBarWidget . WidgetBorder . INSTANCE ) ; \n myProgressIcon . setToolTipText ( ActionsBundle . message ( STRING0 ) ) ; \n \n - myUpdateQueue = new MergingUpdateQueue ( STRING1 , NUMBER0 , true , MergingUpdateQueue . ANY_COMPONENT ) ; \n + myUpdateQueue = new MergingUpdateQueue ( STRING1 , NUMBER1 , true , MergingUpdateQueue . ANY_COMPONENT ) ; \n myPopup = new ProcessPopup ( this ) ; \n \n setRefreshVisible ( false ) ;", "msg_token": "returned old update rate"} {"diff": " public abstract class ProjectWizardTestCase < T extends AbstractProjectWizard > ext \n } \n } ) ; \n SelectTemplateSettings . getInstance ( ) . setLastTemplate ( null , null ) ; \n - UIUtil . dispatchAllInvocationEvents ( ) ; \n - Thread . sleep ( NUMBER0 ) ; SINGLE \n - UIUtil . dispatchAllInvocationEvents ( ) ; \n - super . tearDown ( ) ; \n + try { \n + UIUtil . dispatchAllInvocationEvents ( ) ; \n + Thread . sleep ( NUMBER0 ) ; SINGLE \n + UIUtil . dispatchAllInvocationEvents ( ) ; \n + } \n + finally { \n + super . tearDown ( ) ; \n + } \n } \n \n protected Module importModuleFrom ( ProjectImportProvider provider , String path ) {", "msg_token": "call tearDown even when some invokeLater throws exceptions"} {"diff": " public class BasicCacheLiteMemberTest \n testCacheCreation ( liteCachingProvider , instanceCachingProvider ) ; \n } \n \n - public void testPutFromLiteMember ( ) { \n - \n - } \n - \n private void testCacheCreation ( final HazelcastServerCachingProvider providerToCreate , \n final HazelcastServerCachingProvider providerToValidate ) { \n - \n CacheManager cacheManager = providerToCreate . getCacheManager ( ) ; \n assertNotNull ( cacheManager ) ;", "msg_token": "Remove empty left over method in BasicCacheLiteMemberTest"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo { \n protected MavenProjectHelper projectHelper ; \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 private Sdk sdk ;", "msg_token": "Improved Javadoc for config parameter sdk"} {"diff": " public class EpisodeDetailsFragment extends Fragment implements ActionsFragmentC \n \n @ override \n public void onLoadFinished ( Loader < Cursor > loader , Cursor data ) { \n + if ( ! isAdded ( ) ) { \n + return ; \n + } \n populateEpisodeData ( data ) ; \n }", "msg_token": "Do not populate episode views if fragment is not added"} {"diff": " public interface UnresolvedDependencyResult extends DependencyResult { \n COMMENT \n COMMENT \n COMMENT \n - Exception getFailure ( ) ; \n + Throwable getFailure ( ) ; \n }", "msg_token": "Changed the return type of UnresolvedDependencyResult getFailure"} {"diff": " public class AlertPatch implements Serializable { \n } \n \n public void apply ( Graph graph ) { \n - \n + COMMENT \n if ( route != null || trip != null || agency != null ) { \n List < RouteVariant > variants ; \n \n public class AlertPatch implements Serializable { \n edge = index . getPreAlightEdge ( stop ) ; \n graph . addAlertPatch ( edge , this ) ; \n } \n + COMMENT \n } \n \n public void remove ( Graph graph ) { \n - TransitIndexService index = graph . getService ( TransitIndexService . class ) ; \n - \n + COMMENT \n if ( route != null || trip != null || agency != null ) { \n List < RouteVariant > variants ; \n \n public class AlertPatch implements Serializable { \n edge = index . getPreAlightEdge ( stop ) ; \n graph . removeAlertPatch ( edge , this ) ; \n } \n + COMMENT \n } \n \n public void setAlert ( Alert alert ) {", "msg_token": "disable adding removing alerts"} {"diff": " public class XbmcConnector { \n private enum State { \n Play , \n Pause , \n + End , \n Stop \n } \n \n public class XbmcConnector { \n } \n \n if ( STRING0 . equals ( method ) ) { \n + SINGLE \n + Map < String , Object > params = RpcCall . getMap ( json , STRING1 ) ; \n + Map < String , Object > data = RpcCall . getMap ( params , STRING2 ) ; \n + Boolean end = ( Boolean ) data . get ( STRING3 ) ; \n + if ( end ) { \n + updateState ( State . End ) ; \n + } \n updateState ( State . Stop ) ; \n } \n }", "msg_token": "Add End state when playback stops without input from user"} {"diff": " public class Tethering extends INetworkManagementEventObserver . Stub { \n return ; \n } \n \n + if ( mTetheredNotification != null ) { \n + if ( mTetheredNotification . icon == icon ) { \n + return ; \n + } \n + notificationManager . cancel ( mTetheredNotification . icon ) ; \n + } \n + \n Intent intent = new Intent ( ) ; \n intent . setClassName ( STRING0 , STRING1 ) ; \n intent . setFlags ( Intent . FLAG_ACTIVITY_NO_HISTORY ) ;", "msg_token": "Fix Tethering Notifications for multiple ifaces"} {"diff": " public class FeedRefreshTaskGiver { \n } \n \n public void giveBack ( Feed feed ) { \n - metricsBean . feedUpdated ( ) ; \n giveBackQueue . add ( feed ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FeedRefreshUpdater { \n \n @ inject \n ApplicationSettingsService applicationSettingsService ; \n + \n + @ inject \n + MetricsBean metricsBean ; \n \n @ inject \n FeedSubscriptionDAO feedSubscriptionDAO ; \n public class FeedRefreshUpdater { \n if ( applicationSettingsService . get ( ) . isPubsubhubbub ( ) ) { \n handlePubSub ( feed ) ; \n } \n + metricsBean . feedUpdated ( ) ; \n taskGiver . giveBack ( feed ) ; \n }", "msg_token": "increment feed update metric only when we actually update the feed"} {"diff": " public class AllEpisodesFragment extends Fragment { \n @ override \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n - SINGLE \n setHasOptionsMenu ( true ) ; \n } \n \n public class EpisodesFragment extends Fragment { \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , \n Bundle savedInstanceState ) { \n super . onCreateView ( inflater , container , savedInstanceState ) ; \n + setHasOptionsMenu ( true ) ; \n ( ( MainActivity ) getActivity ( ) ) . getSupportActionBar ( ) . setTitle ( R . string . episodes_label ) ; \n \n View rootView = inflater . inflate ( R . layout . episodes_fragment , container , false ) ;", "msg_token": "fix messed up ItemFragment toolbar"} {"diff": " public class ReachableNodes { \n walk ( headIds , true , consumer ) ; \n } \n \n - public void walk ( @ notnull Collection < Integer > startNodes , final boolean goDown , @ notnull final Consumer < Integer > consumer ) { \n + private void walk ( @ notnull Collection < Integer > startNodes , final boolean goDown , @ notnull final Consumer < Integer > consumer ) { \n synchronized ( myTempFlags ) { \n \n myTempFlags . setAll ( false ) ;", "msg_token": "make method private"} {"diff": " public class ManagementClient { \n } \n \n public boolean isServerInRunningState ( ) { \n - try { \n - ModelNode op = Util . getEmptyOperation ( READ_ATTRIBUTE_OPERATION , PathAddress . EMPTY_ADDRESS . toModelNode ( ) ) ; \n + try { ModelNode op = Util . getEmptyOperation ( READ_ATTRIBUTE_OPERATION , PathAddress . EMPTY_ADDRESS . toModelNode ( ) ) ; \n op . get ( NAME ) . set ( STRING0 ) ; \n \n ModelNode rsp = client . execute ( op ) ;", "msg_token": "Add a http client that ignores cookie origin for use in the clustering tests"} {"diff": " public class EasyDeviceMod { \n case Build . VERSION_CODES . M : \n codename = STRING0 ; \n break ; \n + case Build . VERSION_CODES . N : \n + codename = STRING1 ; \n + break ; \n default : \n codename = STRING2 ; \n break ;", "msg_token": "added android N to getOSCodename"} {"diff": " public class RuntimeEnvironmentTest { \n String path = f . getCanonicalPath ( ) ; \n assertTrue ( f . delete ( ) ) ; \n instance . setDataRoot ( path ) ; \n + assertTrue ( f . delete ( ) ) ; \n assertEquals ( path , instance . getDataRootPath ( ) ) ; \n assertEquals ( path , instance . getDataRootFile ( ) . getCanonicalPath ( ) ) ; \n }", "msg_token": "Fix test to remove temprorary dataroot"} {"diff": " public class MainActivity extends AppCompatActivity { \n try { \n throw new NullPointerException ( ) ; \n } catch ( NullPointerException ex ) { \n + SINGLE \n Crash . log ( Level . INFO . intValue ( ) , TAG , STRING0 ) ; \n Crash . report ( ex ) ; \n + SINGLE \n } \n } else { \n throw new NullPointerException ( ) ; \n public class MainActivity extends AppCompatActivity { \n \n SINGLE \n SINGLE \n + SINGLE \n Crash . log ( STRING1 ) ; \n + SINGLE \n } \n }", "msg_token": "Add snippet tags"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n @ suppresswarnings ( { STRING0 } ) \n public class FakeTextView extends FakeView { \n private CharSequence text ; \n Rectangle rectangle ; \n public Directions compoundDrawablesWithIntrinsicBounds ; \n + public int textResourceId = - NUMBER0 ; \n \n public FakeTextView ( TextView view ) { \n super ( view ) ; \n } \n \n public final void setText ( CharSequence text ) { \n + this . textResourceId = - NUMBER0 ; \n this . text = text ; \n } \n \n - public final void setText ( int titleRes ) { \n + public final void setText ( int textResourceId ) { \n + this . textResourceId = textResourceId ; \n this . text = STRING1 ; SINGLE \n }", "msg_token": "Added ability to check what resource a TextView had it s text set from"} {"diff": " public abstract class UsefulTestCase extends TestCase { \n myTempDir = ORIGINAL_TEMP_DIR + STRING0 + testName + STRING1 + PRNG . nextInt ( NUMBER0 ) ; \n FileUtil . resetCanonicalTempPathCache ( myTempDir ) ; \n } \n + Timings . getStatistics ( ) ; SINGLE \n } \n \n @ override", "msg_token": "do not count CPU warm up towards test elapsed time"} {"diff": " public abstract class AbstractLogHandlerAssignmentHandler extends AbstractModelU \n COMMENT \n COMMENT \n protected OperationFailedException createFailureMessage ( final String description ) { \n - ModelNode failure = new ModelNode ( ) ; \n - failure . get ( FAILURE_DESCRIPTION , description ) ; \n + ModelNode failure = new ModelNode ( ) . set ( description ) ; \n return new OperationFailedException ( failure ) ; \n }", "msg_token": "Fix OFE construction"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileChooserDescriptor implements Cloneable { \n } \n \n SINGLE \n - if ( myHideIgnored && FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) ) ) { \n + if ( isHideIgnored ( ) && ! showHiddenFiles && FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) ) ) { \n return false ; \n }", "msg_token": "Show hidden files now shows those in General Ignore list"} {"diff": " public class ModelSchemaUtils { \n @ override \n public void visitType ( Class < ? > type ) { \n for ( Method method : type . getDeclaredMethods ( ) ) { \n - SINGLE \n int modifiers = method . getModifiers ( ) ; \n if ( method . isSynthetic ( ) || Modifier . isStatic ( modifiers ) || ! Modifier . isPublic ( modifiers ) ) { \n continue ;", "msg_token": "Remove irrelevant comment"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PrimitiveRenderer extends NodeRendererImpl { \n StringBuilder buf = new StringBuilder ( NUMBER0 ) ; \n if ( value instanceof CharValue ) { \n buf . append ( STRING0 ) ; \n - buf . append ( value . toString ( ) ) ; \n + buf . append ( DebuggerUtils . translateStringValue ( value . toString ( ) ) ) ; \n buf . append ( STRING1 ) ; \n long longValue = ( ( PrimitiveValue ) value ) . longValue ( ) ; \n buf . append ( Long . toString ( longValue ) ) ;", "msg_token": "added quotation of special chars"} {"diff": " import static NAMESPACE ; \n public class CassandraRecordSetProvider \n implements ConnectorRecordSetProvider \n { \n - private static final Logger log = Logger . get ( ConnectorRecordSetProvider . class ) ; \n + private static final Logger log = Logger . get ( CassandraRecordSetProvider . class ) ; \n \n private final String connectorId ; \n private final CassandraSession cassandraSession ;", "msg_token": "Fix initializing logger with wrong class"} {"diff": " public final class ProcessorConfigProfileImpl implements ProcessorConfigProfile \n \n @ override \n public void setGeneratedSourcesDirectoryName ( @ nullable String name , boolean forTests ) { \n - if ( name == null || name . trim ( ) . isEmpty ( ) ) { \n - name = STRING0 ; \n - } \n if ( forTests ) { \n - myGeneratedTestsDirectoryName = name ; \n + myGeneratedTestsDirectoryName = name != null ? name . trim ( ) : DEFAULT_TESTS_DIR_NAME ; \n } \n else { \n - myGeneratedProductionDirectoryName = name ; \n + myGeneratedProductionDirectoryName = name != null ? name . trim ( ) : DEFAULT_PRODUCTION_DIR_NAME ; \n } \n }", "msg_token": "do not override default values if corresponding attributes is missing from the xml"} {"diff": " public class Sketch { \n \n SINGLE \n if ( destFile . exists ( ) ) { \n - Object [ ] options = { Language . text ( STRING0 ) , Language . text ( STRING1 ) } ; \n + Object [ ] options = { Language . text ( STRING2 ) , Language . text ( STRING1 ) } ; \n String prompt = STRING3 + filename + STRING4 ; \n int result = JOptionPane . showOptionDialog ( editor , \n prompt ,", "msg_token": "Change prompt okay to prompt ok"} {"diff": " public class Capsule implements Runnable { \n if ( ATTR_JAVA_AGENTS == attr ) { \n final Map < Object , String > agents = new LinkedHashMap < > ( cast ( ATTR_JAVA_AGENTS , value ) ) ; \n assert isWrapperCapsule ( ) ^ findOwnJarFile ( ) . equals ( getJarFile ( ) ) ; \n - agents . put ( findOwnJarFile ( ) . toString ( ) , isWrapperCapsule ( ) ? getJarFile ( ) . toString ( ) : STRING0 ) ; \n + agents . put ( processOutgoingPath ( findOwnJarFile ( ) ) , isWrapperCapsule ( ) ? processOutgoingPath ( getJarFile ( ) ) : STRING0 ) ; \n return ( T ) agents ; \n } \n \n public class Capsule implements Runnable { \n private Path setJavaHomeEnv ( ProcessBuilder pb , Path javaHome ) { \n if ( javaHome == null ) \n return null ; \n - pb . environment ( ) . put ( VAR_JAVA_HOME , javaHome . toString ( ) ) ; \n + pb . environment ( ) . put ( VAR_JAVA_HOME , processOutgoingPath ( javaHome ) ) ; \n return javaHome ; \n } \n SINGLE", "msg_token": "add missing processOutgoingPath"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public final class StreamConfigurationMap { \n COMMENT \n COMMENT \n public Size [ ] getHighSpeedVideoSizes ( ) { \n - return ( Size [ ] ) mHighSpeedVideoSizeMap . keySet ( ) . toArray ( ) ; \n + Set < Size > keySet = mHighSpeedVideoSizeMap . keySet ( ) ; \n + return keySet . toArray ( new Size [ keySet . size ( ) ] ) ; \n } \n \n COMMENT \n public final class StreamConfigurationMap { \n COMMENT \n @ suppresswarnings ( STRING0 ) \n public Range < Integer > [ ] getHighSpeedVideoFpsRanges ( ) { \n - return ( Range < Integer > [ ] ) mHighSpeedVideoFpsRangeMap . keySet ( ) . toArray ( ) ; \n + Set < Range < Integer > > keySet = mHighSpeedVideoFpsRangeMap . keySet ( ) ; \n + return keySet . toArray ( new Range [ keySet . size ( ) ] ) ; \n } \n \n COMMENT", "msg_token": "Fix wrong usage of toArray"} {"diff": " public class BreakpointsConfigurationDialogFactory { \n reset ( ) ; \n } \n \n + @ nonnls \n + protected String getDimensionServiceKey ( ) { \n + return STRING0 ; \n + } \n + \n protected Action [ ] createActions ( ) { \n return new Action [ ] { getOKAction ( ) , getHelpAction ( ) } ; \n }", "msg_token": "remember size of Breakpoints dialog"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class App {", "msg_token": "Improve Servant Javadoc"} {"diff": " import NAMESPACE \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MongoRepositoriesAutoConfiguration { \n } \n \n public String database ( ) { \n - return this . database == null ? new MongoURI ( this . uri ) . getDatabase ( ) \n + return this . database == null ? new MongoClientURI ( this . uri ) . getDatabase ( ) \n : this . database ; \n } \n \n public Mongo mongo ( ) throws UnknownHostException { \n - return this . host != null ? new Mongo ( this . host , this . port ) : new Mongo ( \n - new MongoURI ( this . uri ) ) ; \n + return this . host != null ? new MongoClient ( this . host , this . port ) \n + : new MongoClient ( new MongoClientURI ( this . uri ) ) ; \n } \n \n public void setHost ( String host ) {", "msg_token": "Use non deprecated API to create Mongo client"} {"diff": " public class GBM extends SharedTreeModelBuilder < GBM . GBMModel > { \n for ( int n = NUMBER0 ; n < t . len ( ) - t . leaves ; n ++ ) \n if ( t . node ( n ) instanceof DecidedNode ) { SINGLE \n Split split = t . decided ( n ) . _split ; \n - _improvPerVar [ split . _col ] += split . improvement ( ) ; SINGLE \n + if ( split . _col != - NUMBER1 ) SINGLE \n + _improvPerVar [ split . _col ] += split . improvement ( ) ; SINGLE \n } \n } \n }", "msg_token": "Skip decided nodes with impossible splits"} {"diff": " public class SplitPane extends WidgetGroup { \n } \n \n public void setMaxSplitAmount ( float maxAmount ) { \n - if ( maxAmount > NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ; \n + if ( maxAmount > NUMBER0 ) throw new GdxRuntimeException ( STRING1 ) ; \n if ( maxAmount <= minAmount ) throw new GdxRuntimeException ( STRING2 ) ; \n this . maxAmount = maxAmount ; \n }", "msg_token": "Fix error message in split pane"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ beta \n - public class ListenableFutureTask < V > extends FutureTask < V > \n + public final class ListenableFutureTask < V > extends FutureTask < V > \n implements ListenableFuture < V > { \n \n SINGLE \n private final ExecutionList executionList = new ExecutionList ( ) ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public class ListenableFutureTask < V > extends FutureTask < V > \n public void addListener ( Runnable listener , Executor exec ) { \n executionList . add ( listener , exec ) ; \n } \n - \n + \n @ override \n protected void done ( ) { \n executionList . run ( ) ;", "msg_token": "Make ListenableFutureTask final"} {"diff": " public class ContentProvider extends android . content . ContentProvider { \n \n @ override \n public int delete ( Uri uri , String selection , String [ ] selectionArgs ) { \n - int count = Cache . openDatabase ( ) . delete ( uri . getPath ( ) , selection , selectionArgs ) ; \n + Class < ? extends Model > type = getModelType ( uri ) ; \n + int count = Cache . openDatabase ( ) . delete ( Cache . getTableName ( type ) , selection , selectionArgs ) ; \n notifyChange ( uri ) ; \n \n return count ;", "msg_token": "Fix bad method"} {"diff": " public class SqlTextArea extends RSyntaxTextArea { \n switch ( e . getKeyCode ( ) ) { \n case KeyEvent . VK_P : \n if ( isControlDown && isShiftDown ) { \n - SINGLE \n - int position = RSyntaxUtilities . getMatchingBracketPosition ( SqlTextArea . this ) ; \n + int position = RSyntaxUtilities . getMatchingBracketPosition ( SqlTextArea . this , null ) . y ; \n if ( position >= NUMBER0 ) { \n setCaretPosition ( position + NUMBER1 ) ; \n }", "msg_token": "Fixed compilation error due to broken RSyntaxTextarea API evolution"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ contentview ( R . layout . main ) \n public class AstroboyMasterConsole extends RoboActivity { \n \n SINGLE \n public class AstroboyMasterConsole extends RoboActivity { \n @ override \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; SINGLE \n + setContentView ( R . layout . main ) ; \n \n sayText . setOnEditorActionListener ( new OnEditorActionListener ( ) { \n public boolean onEditorAction ( TextView textView , int i , KeyEvent keyEvent ) {", "msg_token": "temporarily remove ContentView from demo it s causing problems with annotation processing not sure why yet"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class TaskEditWrapperActivity extends AstridWrapperActivity { \n } \n \n @ override \n + public void setTitle ( CharSequence title ) { \n + Fragment frag = ( Fragment ) getSupportFragmentManager ( ) \n + . findFragmentById ( R . id . tasklist_fragment ) ; \n + if ( frag != null && frag . isInLayout ( ) ) \n + ( ( TextView ) frag . getView ( ) . findViewById ( R . id . listLabel ) ) . setText ( title ) ; \n + SINGLE \n + getSupportActionBar ( ) . setTitle ( title ) ; \n + } \n + \n + @ override \n public void finish ( ) { \n super . finish ( ) ; \n AndroidUtilities . callOverridePendingTransition ( this , R . anim . slide_right_in , R . anim . slide_right_out ) ;", "msg_token": "Fixed a bug with missing list title in task edit wrapper activity"} {"diff": " public class ResourceLoaderTest { \n assertThat ( textView . getText ( ) . toString ( ) , equalTo ( STRING0 ) ) ; \n resourceLoader . setLayoutQualifierSearchPath ( STRING1 ) ; SINGLE \n } \n + \n + @ test \n + public void shouldIdentifyNinePatchDrawables ( ) { \n + ResourceLoader resourceLoader = Robolectric . getShadowApplication ( ) . getResourceLoader ( ) ; \n + \n + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . nine_patch_drawable ) , equalTo ( true ) ) ; \n + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . l2_yellow ) , equalTo ( false ) ) ; \n + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . state_drawable ) , equalTo ( false ) ) ; \n + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . animation_list ) , equalTo ( false ) ) ; \n + } \n }", "msg_token": "Add NinePatchDrawable tests"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class IgnitedStrings { \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 + COMMENT \n + public static String underscore ( String camelCaseString , Locale locale ) { \n + String [ ] words = splitByCharacterTypeCamelCase ( camelCaseString ) ; \n + return TextUtils . join ( STRING0 , words ) . toLowerCase ( locale ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a variation of the underscore helper that takes a locale"} {"diff": " public class MocoHandler extends SimpleChannelInboundHandler < FullHttpRequest > { \n setContentLength ( response , response . content ( ) . writerIndex ( ) ) ; \n } \n } \n - \n - private FullHttpResponse defaultResponse ( HttpRequest request , HttpResponseStatus status ) { \n - return new DefaultFullHttpResponse ( HttpVersion . valueOf ( request . getVersion ( ) . text ( ) ) , status ) ; \n - } \n }", "msg_token": "removed unused method"} {"diff": " public class MultiLayerTest { \n network . setLabels ( trainTest . getTrain ( ) . getLabels ( ) ) ; \n network . computeGradientAndScore ( ) ; \n INDArray grad = network . gradient ( ) . gradient ( ) ; \n + \n + assertTrue ( STRING0 , ! Nd4j . hasInvalidNumber ( grad ) ) ; \n + \n int numParams = network . numParams ( ) ; \n network . fit ( trainTest . getTrain ( ) ) ;", "msg_token": "Modified BatchNormalization test to fail"} {"diff": " public class Table extends JTable { \n add ( editorComp ) ; \n editorComp . validate ( ) ; \n \n + editorComp . requestFocusInWindow ( ) ; \n + \n setCellEditor ( editor ) ; \n setEditingRow ( row ) ; \n setEditingColumn ( column ) ;", "msg_token": "keyboard shortcuts support"} {"diff": " public class Requirements { \n } \n \n SINGLE \n - \n checkService ( context , Context . ACCOUNT_SERVICE , new String [ ] { STRING0 } ) ; \n checkService ( context , Context . ACTIVITY_SERVICE , new String [ ] { STRING1 } ) ; \n - checkService ( context , Context . CLIPBOARD_SERVICE , new String [ ] { STRING2 , \n - STRING3 } ) ; \n + checkService ( context , Context . CLIPBOARD_SERVICE , new String [ ] { STRING3 } ) ; \n checkService ( context , Context . CONNECTIVITY_SERVICE , new String [ ] { STRING4 } ) ; \n checkService ( context , Context . LOCATION_SERVICE , new String [ ] { STRING5 } ) ; \n Class < ? > serviceClass = context . getPackageManager ( ) . getClass ( ) ; \n public class XBinder extends XHook { \n public static List < String > cServiceClassName = Arrays . asList ( new String [ ] { \n STRING0 , \n STRING1 , \n - STRING6 , \n + STRING3 , \n STRING4 , \n STRING7 , \n STRING5 ,", "msg_token": "Remove legacy clipboard manager reference"} {"diff": " public class KeyIndexableGraphTestSuite extends TestSuite { \n assertEquals ( count ( graph . getEdges ( STRING0 , NUMBER0 ) ) , NUMBER1 ) ; \n assertEquals ( graph . getEdges ( STRING0 , NUMBER0 ) . iterator ( ) . next ( ) , edge ) ; \n } \n + graph . shutdown ( ) ; \n } \n \n public void testNoConcurrentModificationException ( ) {", "msg_token": "Missing graph shutdown in test case"} {"diff": " public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n } else { \n mJobs . add ( job ) ; \n } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CombinedData extends BarLineScatterCandleData < BarLineScatterCandleD \n mScatterData . notifyDataChanged ( ) ; \n if ( mBubbleData != null ) \n mBubbleData . notifyDataChanged ( ) ; \n + \n + init ( ) ; SINGLE \n } \n }", "msg_token": "Added more documentation"} {"diff": " public class Plugins { \n \n String camelCaseCandidatePluginId = pluginClass . getSimpleName ( ) . replace ( Plugin . class . getSimpleName ( ) , STRING0 ) ; \n String candidatePluginId = StringUtil . toSnakeCase ( camelCaseCandidatePluginId ) ; \n - System . out . println ( candidatePluginId + STRING1 + pluginId ) ; \n + \n if ( canInstantiate && candidatePluginId . equals ( pluginId ) ) { \n try { \n Plugin plugin = ( Plugin ) pluginClass . newInstance ( ) ;", "msg_token": "Remove unnecessary sysout"} {"diff": " public class WaypointDialogHelper { \n move . setVisibility ( View . VISIBLE ) ; \n more . setVisibility ( View . GONE ) ; \n ( ( ImageView ) move ) . setImageDrawable ( app . getIconsCache ( ) . getContentIcon ( \n - R . drawable . ic_flat_list_dark , ! nightMode ) ) ; \n + R . drawable . ic_action_reorder , ! nightMode ) ) ; \n move . setTag ( new DragIcon ( ) { \n @ override \n public void onClick ( ) {", "msg_token": "Fix drag icon"} {"diff": " public class WebAppContext extends ServletContextHandler implements WebAppClassL \n STRING0 , SINGLE \n STRING1 , SINGLE \n STRING2 , SINGLE \n - STRING3 , SINGLE \n STRING4 , SINGLE \n STRING5 , SINGLE \n STRING6 SINGLE \n public class WebAppContext extends ServletContextHandler implements WebAppClassL \n STRING7 , SINGLE \n STRING8 , SINGLE \n STRING9 , SINGLE \n - STRING10 , SINGLE \n STRING11 , SINGLE \n STRING12 , SINGLE \n STRING13 SINGLE", "msg_token": "Remove unneeded server and system class defs for cdi"} {"diff": " public class UsbPreferenceActivity extends Activity implements View . OnClickListe \n private String mCurrentFunction ; \n private String [ ] mFunctions ; \n private String mInstallerImagePath ; \n + private AlertDialog mDialog ; \n private Button mMtpPtpButton ; \n private Button mInstallerCdButton ; \n private boolean mPtpActive ; \n public class UsbPreferenceActivity extends Activity implements View . OnClickListe \n mInstallerCdButton . setVisibility ( View . GONE ) ; \n } \n \n - dialogBuilder . show ( ) ; \n + mDialog = dialogBuilder . show ( ) ; \n } \n \n public void onClick ( View v ) { \n public class UsbPreferenceActivity extends Activity implements View . OnClickListe \n mUsbManager . setMassStorageBackingFile ( mInstallerImagePath ) ; \n } \n \n + if ( mDialog != null ) { \n + mDialog . dismiss ( ) ; \n + } \n finish ( ) ; \n } \n }", "msg_token": "Fix window leak in UsbPreferenceActivity"} {"diff": " public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > { \n } \n \n private void checkIfBodyAllowed ( ) { \n - if ( STRING0 . equals ( request . method ) || STRING1 . equals ( request . method ) ) { \n - throw new IllegalArgumentException ( STRING2 ) ; \n + if ( STRING1 . equals ( request . method ) ) { \n + throw new IllegalArgumentException ( STRING3 ) ; \n } \n }", "msg_token": "Following RFC Spec GET can contain a BODY"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public final class InternalTestCluster extends TestCluster { \n } \n \n if ( random . nextBoolean ( ) ) { \n - builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , randomIntBetween ( NUMBER0 , NUMBER1 ) COMMENT ) ; \n + builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , RandomInts . randomIntBetween ( random , NUMBER0 , NUMBER1 ) COMMENT ) ; \n } \n \n return builder . build ( ) ;", "msg_token": "TEST Improve reproducibility of mappings propagation delays related issues"} {"diff": " public class SchematicEngine extends SchematicTile { \n } \n } \n \n + @ override \n + public BuildingStage getBuildStage ( ) { \n + return BuildingStage . STANDALONE ; \n + } \n + \n }", "msg_token": "engines are standalone blocks"} {"diff": " public class SaveTransaction extends AbstractTask { \n if ( entityId >= privateEntityManager . getNextId ( ) ) { \n privateEntityManager . setNextId ( entityId + NUMBER0 ) ; \n } \n + return true ; \n + } \n + } ) ; \n + deltaToSave . getEntityDeltas ( ) . forEachEntry ( new TLongObjectProcedure < EntityDelta > ( ) { \n + @ override \n + public boolean execute ( long entityId , EntityDelta delta ) { \n + if ( entityId >= privateEntityManager . getNextId ( ) ) { \n + privateEntityManager . setNextId ( entityId + NUMBER0 ) ; \n + } \n if ( privateEntityManager . isActiveEntity ( entityId ) ) { \n EntityRef entity = privateEntityManager . getEntity ( entityId ) ; \n for ( Component changedComponent : delta . getChangedComponents ( ) . values ( ) ) {", "msg_token": "Determine nextEntityId before creating entities"} {"diff": " public class SopremoServer implements SopremoExecutionProtocol , Closeable { \n LOG . info ( STRING0 + jobId ) ; \n final SopremoJobInfo info = new SopremoJobInfo ( jobId , request , this . configuration ) ; \n this . meteorInfo . put ( jobId , info ) ; \n - this . executorService . submit ( new SopremoExecutionThread ( info , getJobManagerAddress ( ) ) ) ; \n + if ( request . getQuery ( ) == null ) \n + info . setStatusAndDetail ( ExecutionState . ERROR , STRING1 ) ; \n + else if ( request . getMode ( ) == null ) \n + info . setStatusAndDetail ( ExecutionState . ERROR , STRING2 ) ; \n + else \n + this . executorService . submit ( new SopremoExecutionThread ( info , getJobManagerAddress ( ) ) ) ; \n return this . getState ( jobId ) ; \n }", "msg_token": "SopremoServer checks request for formal validity"} {"diff": " public class CountAggregation \n return SINGLE_LONG ; \n } \n \n + @ override \n public void addInput ( GroupByIdBlock groupIdsBlock , Page page ) \n { \n counts . ensureCapacity ( groupIdsBlock . getGroupCount ( ) ) ; \n public class CountAggregation \n evaluateFinal ( groupId , output ) ; \n } \n \n + @ override \n public void evaluateFinal ( int groupId , BlockBuilder output ) \n { \n long value = counts . get ( ( long ) groupId ) ; \n public class CountAggregation \n return SINGLE_LONG ; \n } \n \n + @ override \n public void addInput ( Page page ) \n { \n if ( ! maskChannel . isPresent ( ) && ! sampleWeightChannel . isPresent ( ) ) {", "msg_token": "Add missing Override annotations"} {"diff": " public class BuildInfo { \n Matcher matcher = VERSION_PATTERN . matcher ( version ) ; \n if ( matcher . matches ( ) ) { \n try { \n - int calculatedVersion = MAJOR_VERSION_MULTIPLIER * Integer . valueOf ( matcher . group ( NUMBER0 ) ) \n - + MINOR_VERSION_MULTIPLIER * Integer . valueOf ( matcher . group ( NUMBER1 ) ) ; \n + int calculatedVersion = MAJOR_VERSION_MULTIPLIER * Integer . parseInt ( matcher . group ( NUMBER0 ) ) \n + + MINOR_VERSION_MULTIPLIER * Integer . parseInt ( matcher . group ( NUMBER1 ) ) ; \n \n int groupCount = matcher . groupCount ( ) ; \n if ( groupCount >= PATCH_GROUP_COUNT ) { \n String patchVersionString = matcher . group ( PATCH_GROUP_COUNT ) ; \n if ( null != patchVersionString && ! patchVersionString . startsWith ( STRING0 ) ) { \n - calculatedVersion += Integer . valueOf ( patchVersionString ) ; \n + calculatedVersion += Integer . parseInt ( patchVersionString ) ; \n } \n } \n return calculatedVersion ;", "msg_token": "Eliminate boxing unboxing"} {"diff": " public interface Library { \n private Map functions = new WeakHashMap ( ) ; \n public Handler ( String libname , Class interfaceClass , Map options ) { \n \n - if ( libname == null || libname . trim ( ) . length ( ) == NUMBER0 ) { \n + if ( libname == null || STRING0 . equals ( libname . trim ( ) ) ) { \n throw new IllegalArgumentException ( STRING1 \n + libname + STRING2 ) ; \n } \n \n - if ( ! Library . class . isAssignableFrom ( interfaceClass ) ) { \n - throw new IllegalArgumentException ( STRING3 \n - + interfaceClass + STRING2 ) ; \n - } \n - \n this . nativeLibrary = NativeLibrary . getInstance ( libname ) ; \n this . interfaceClass = interfaceClass ; \n this . options = options ;", "msg_token": "Remove check for Library interface in Library Handler"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ cacheabletask \n public class ShadedJar extends DefaultTask { \n private FileCollection sourceFiles ; \n private File classesDir ; \n public class ShadedJar extends DefaultTask { \n COMMENT \n COMMENT \n COMMENT \n + @ pathsensitive ( PathSensitivity . RELATIVE ) \n @ inputfiles \n public FileCollection getSourceFiles ( ) { \n return sourceFiles ;", "msg_token": "Make ShadedJar cacheable"} {"diff": " public final class SessionManagementConfigurer < H extends HttpSecurityBuilder < H > > \n COMMENT \n public SessionManagementConfigurer < H > sessionAuthenticationStrategy ( \n SessionAuthenticationStrategy sessionAuthenticationStrategy ) { \n - this . sessionFixationAuthenticationStrategy = sessionAuthenticationStrategy ; \n + this . sessionAuthenticationStrategy = sessionAuthenticationStrategy ; \n return this ; \n }", "msg_token": "Fix sessionAuthenticationStrategy setter"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n case GRANT_RUNTIME : { \n SINGLE \n for ( int userId : UserManagerService . getInstance ( ) . getUserIds ( ) ) { \n - SINGLE \n if ( origPermissions . hasRuntimePermission ( bp . name , userId ) ) { \n if ( permissionsState . grantRuntimePermission ( bp , userId ) != \n PermissionsState . PERMISSION_OPERATION_FAILURE ) { \n public class PackageManagerService extends IPackageManager . Stub { \n SINGLE \n permissionsState . revokeInstallPermission ( bp ) ; \n for ( int userId : UserManagerService . getInstance ( ) . getUserIds ( ) ) { \n - SINGLE \n if ( permissionsState . grantRuntimePermission ( bp , userId ) != \n PermissionsState . PERMISSION_OPERATION_FAILURE ) { \n changedPermission = true ;", "msg_token": "Remove obsolete comments"} {"diff": " public class PeopleTable { \n return people ; \n } \n \n + public static Person getPerson ( long personId , int localTableBlogId , Person . PersonType personType ) { \n + String table = null ; \n + switch ( personType ) { \n + case USER : \n + table = TEAM_TABLE ; \n + break ; \n + case FOLLOWER : \n + table = FOLLOWERS_TABLE ; \n + break ; \n + case EMAIL_FOLLOWER : \n + table = EMAIL_FOLLOWERS_TABLE ; \n + break ; \n + } \n + return getPerson ( table , personId , localTableBlogId ) ; \n + } \n + \n public static Person getUser ( long personId , int localTableBlogId ) { \n return getPerson ( TEAM_TABLE , personId , localTableBlogId ) ; \n }", "msg_token": "Adds generic getPerson method with personType parameter"} {"diff": " public class HttpArgs extends StartArgs { \n } \n \n public static class Builder { \n - private ServerType type ; \n private Integer port ; \n private Integer shutdownPort ; \n private String configurationFile ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n - public class StartArgs extends ShutdownPortOption { \n + public abstract class StartArgs extends ShutdownPortOption { \n private final ServerType type ; \n private final Optional < Integer > port ; \n private final Optional < String > configurationFile ;", "msg_token": "added missing abstract"} {"diff": " public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements \n \n if ( exopackage ) { \n Preconditions . checkArgument ( computeExopackageDepsAbi . isPresent ( ) , \n - STRING0 ) ; \n + STRING1 ) ; \n } \n }", "msg_token": "Add a period to an exception message"} {"diff": " public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple \n protected void doStart ( ) throws Exception { \n SINGLE \n if ( ! STRING0 . equals ( readLock ) && ! STRING1 . equals ( readLock ) ) { \n - if ( readLockTimeout > NUMBER0 && readLockMinAge > NUMBER0 && readLockTimeout <= readLockCheckInterval + readLockMinAge ) { \n - throw new IllegalArgumentException ( STRING2 \n - + STRING3 + readLockTimeout + STRING4 + ( readLockCheckInterval + readLockMinAge ) \n - + STRING5 \n - + STRING6 ) ; \n - } \n if ( readLockTimeout > NUMBER0 && readLockTimeout <= readLockCheckInterval ) { \n throw new IllegalArgumentException ( STRING7 \n + STRING3 + readLockTimeout + STRING8 + readLockCheckInterval \n public class FileChangedReadLockMinAgeTest extends ContextTestSupport { \n return new RouteBuilder ( ) { \n @ override \n public void configure ( ) throws Exception { \n - from ( STRING9 ) \n + from ( STRING10 ) \n . to ( STRING11 , STRING12 ) ; \n } \n } ;", "msg_token": "Remove readLockTimeout check from readLockMinAge"} {"diff": " public class AnnotationDirectoryItem extends Item < AnnotationDirectoryItem > { \n } \n \n out . writeInt ( classAnnotations == null ? NUMBER0 : classAnnotations . getOffset ( ) ) ; \n + out . writeInt ( fieldAnnotations . length ) ; \n + out . writeInt ( methodAnnotations . length ) ; \n + out . writeInt ( parameterAnnotations . length ) ; \n \n for ( int i = NUMBER0 ; i < fieldAnnotations . length ; i ++ ) { \n out . writeInt ( fieldAnnotationFields [ i ] . getIndex ( ) ) ;", "msg_token": "Missed writing some fields"} {"diff": " public class Editor extends JFrame implements RunnerListener { \n class DefaultStopHandler implements Runnable { \n public void run ( ) { \n try { \n - \n + if ( runtime != null ) { \n + runtime . close ( ) ; SINGLE \n + runtime = null ; SINGLE \n + } \n } catch ( Exception e ) { \n statusError ( e ) ; \n } \n public class Editor extends JFrame implements RunnerListener { \n public void internalCloseRunner ( ) { \n running = false ; \n \n + if ( stopHandler != null ) \n try { \n - if ( runtime != null ) { \n - runtime . close ( ) ; SINGLE \n - runtime = null ; SINGLE \n - } \n + stopHandler . run ( ) ; \n } catch ( Exception e ) { } \n \n sketch . cleanup ( ) ;", "msg_token": "The editor wasn t calling the StopHandler"} {"diff": " public abstract class EventListenerInvoker < E > { \n synchronized ( l ) { \n invoker . invoke ( l ) ; \n } \n - if ( listeners . get ( i ) != l ) { \n - i -- ; SINGLE \n + if ( i == listeners . size ( ) ) { \n + break ; SINGLE \n + } else if ( listeners . get ( i ) != l ) { \n + i -- ; SINGLE \n } \n } \n }", "msg_token": "Fix a bug in EventListenerInvoker that would crash if the last event listener removed itself"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class Model extends Lockable < Model > { \n String [ ] names = Arrays . copyOf ( _names , n ) ; \n Frame [ ] subVfr ; \n SINGLE \n - subVfr = vfr . subframe ( names , ( this instanceof DeepLearningModel && ( ( DeepLearningModel ) this ) . get_params ( ) . sparse ) ? NUMBER0 : Double . NaN ) ; \n + SINGLE \n + subVfr = vfr . subframe ( names , Double . NaN ) ; \n vfr = subVfr [ NUMBER0 ] ; SINGLE \n Vec [ ] frvecs = vfr . vecs ( ) ; \n boolean [ ] toEnum = new boolean [ frvecs . length ] ;", "msg_token": "Remove deep learning dependency from Model by commenting it out and breaking the"} {"diff": " public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal \n DrawHelper . clearCanvas ( canvas ) ; \n surfaceHolder . unlockCanvasAndPost ( canvas ) ; \n } \n - \n - \n } \n \n @ override \n public void surfaceChanged ( SurfaceHolder surfaceHolder , int i , int i2 , int i3 ) { \n - \n + isSurfaceCreated = true ; \n } \n \n @ override \n public void surfaceDestroyed ( SurfaceHolder surfaceHolder ) { \n - \n + isSurfaceCreated = false ; \n } \n \n public void release ( ) {", "msg_token": "Fix lockcanvas exception"} {"diff": " public interface TypeDescription extends ByteCodeElement , DeclaredInType , Modifi \n \n @ override \n public boolean isSealed ( ) { \n - return type . getPackage ( ) . isSealed ( ) ; \n + return type . getPackage ( ) != null && type . getPackage ( ) . isSealed ( ) ; \n } \n \n @ override", "msg_token": "Added null check for checking if package is sealed"} {"diff": " public final class FileContentImpl extends UserDataHolderBase implements FileCon \n if ( myContentAsText == null ) { \n if ( myContent != null ) { \n myContentAsText = LoadTextUtil . getTextByBinaryPresentation ( myContent , myCharset ) ; \n + myContent = null ; SINGLE \n } \n } \n return myContentAsText ;", "msg_token": "nullify bytes if client requested chars since we have exclusive char or byte clients"} {"diff": " public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n try { \n Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) , \n Settings . Secure . ACCESSIBILITY_ENABLED , \n - userState . isHandlingAccessibilityEvents ( ) ? NUMBER0 : NUMBER1 , \n + userState . isHandlingAccessibilityEvents ( ) ? NUMBER1 : NUMBER0 , \n userState . mUserId ) ; \n } finally { \n Binder . restoreCallingIdentity ( identity ) ;", "msg_token": "Fix ACCESSIBILITY_ENABLED settings"} {"diff": " class TransactionalMultiKeyHashMap < UniqueKeyType , MultiKeyType , ValueType > { \n COMMENT \n COMMENT \n COMMENT \n - public class MemoryFullPrunedBlockStore implements FullPrunedBlockStore , UTXOProvider { \n + public class MemoryFullPrunedBlockStore implements FullPrunedBlockStore { \n protected static class StoredBlockAndWasUndoableFlag { \n public StoredBlock block ; \n public boolean wasUndoable ;", "msg_token": "Make MemoryFullPrunedBlockStore just implement FullPrunedBlockStore"} {"diff": " public class AudioPlayer implements OnCompletionListener , OnPreparedListener , On \n private static final String LOG_TAG = STRING0 ; \n \n SINGLE \n - public static int MEDIA_NONE = NUMBER0 ; \n - public static int MEDIA_STARTING = NUMBER1 ; \n - public static int MEDIA_RUNNING = NUMBER2 ; \n - public static int MEDIA_PAUSED = NUMBER3 ; \n - public static int MEDIA_STOPPED = NUMBER4 ; \n + public static final int MEDIA_NONE = NUMBER0 ; \n + public static final int MEDIA_STARTING = NUMBER1 ; \n + public static final int MEDIA_RUNNING = NUMBER2 ; \n + public static final int MEDIA_PAUSED = NUMBER3 ; \n + public static final int MEDIA_STOPPED = NUMBER4 ; \n \n SINGLE \n private static int MEDIA_STATE = NUMBER1 ;", "msg_token": "made internal status static variables final as well specifically so that they can be used in switch statements"} {"diff": " public class MessageList \n menu . findItem ( R . id . archive ) . setVisible ( false ) ; \n } \n \n - if ( ! mAccount . hasSpamFolder ( ) ) { \n + if ( ! account . hasSpamFolder ( ) ) { \n menu . findItem ( R . id . spam ) . setVisible ( false ) ; \n }", "msg_token": "Fixed a NullPointerException for the context menu in the Unified Inbox"} {"diff": " public final class Scene { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - @ deprecated \n public Scene ( ViewGroup sceneRoot , ViewGroup layout ) { \n mSceneRoot = sceneRoot ; \n mLayout = layout ;", "msg_token": "remove deprecated mark for Scene constructor with ViewGroup"} {"diff": " import NAMESPACE ; \n class MeasureFilterSort { \n public static enum Field { \n KEY , NAME , VERSION , LANGUAGE , METRIC , SHORT_NAME , DESCRIPTION , \n - DATE , SINGLE \n - PROJECT_CREATION_DATE SINGLE \n + SINGLE \n + DATE , \n + SINGLE \n + PROJECT_CREATION_DATE \n } \n \n private Field field = Field . NAME ;", "msg_token": "Fix quality flaws"} {"diff": " public abstract class OAbstractPaginatedStorage extends OStorageAbstract impleme \n stateLock . releaseReadLock ( ) ; \n } \n } \n - \n - public OIndexEngine get ( int indexId ) { \n + \n + \n + public OIndexEngine getIndexEngine ( int indexId ) { \n return indexEngines . get ( indexId ) ; \n }", "msg_token": "changed method name for getting the index engine"} {"diff": " public class ProcessUtils { \n process . destroy ( ) ; \n sentSignal = true ; \n } catch ( Exception e ) { \n - LoggerFactory . getLogger ( ProcessUtils . class ) . error ( STRING0 + process ) ; \n + LoggerFactory . getLogger ( ProcessUtils . class ) . error ( STRING0 + process , e ) ; \n } \n } \n return sentSignal ; \n import NAMESPACE ; \n @ retention ( RetentionPolicy . RUNTIME ) \n @ target ( ElementType . TYPE ) \n public @ interface Description { \n - String value ( ) ; \n + String value ( ) ; \n }", "msg_token": "Fix quality flaws"} {"diff": " public class TestWithNetworkConnections { \n } \n \n protected Object outbound ( FakeChannel p1 ) { \n - MessageEvent nextEvent = ( MessageEvent ) p1 . nextEvent ( ) ; \n + ChannelEvent channelEvent = p1 . nextEvent ( ) ; \n + if ( channelEvent != null && ! ( channelEvent instanceof MessageEvent ) ) \n + throw new IllegalStateException ( STRING0 + channelEvent ) ; \n + MessageEvent nextEvent = ( MessageEvent ) channelEvent ; \n if ( nextEvent == null ) \n return null ; \n return nextEvent . getMessage ( ) ;", "msg_token": "Bit more debugging code in TestWithNetworkConnections"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix the build by removing Override within javadoc comments"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n \n COMMENT \n @ suppresswarnings ( STRING0 ) \n \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n @ suppresswarnings ( STRING0 )", "msg_token": "Reverted import optimization in generated files"} {"diff": " public abstract class BaseRequest { \n this . httpRequest = httpRequest ; \n } \n \n + public HttpRequest getHttpRequest ( ) { \n + return this . httpRequest ; \n + } \n + \n protected BaseRequest ( ) { \n super ( ) ; \n }", "msg_token": "retrieve request object"} {"diff": " public class GtasksPreferences extends SyncProviderPreferences { \n } \n \n private void startBlockingImport ( ) { \n - SINGLE \n final ProgressDialog pd = DialogUtilities . progressDialog ( this , getString ( R . string . gtasks_import_progress ) ) ; \n pd . setCancelable ( false ) ; \n - pd . show ( ) ; \n \n GtasksImportCallback callback = new GtasksImportCallback ( new SyncResultCallbackAdapter ( ) { COMMENT } ) { \n @ override", "msg_token": "Killed dead code"} {"diff": " public class GoTestRunningState extends GoRunningState { \n } \n String pattern = myConfiguration . getPattern ( ) ; \n if ( StringUtil . isNotEmpty ( pattern ) ) { \n - commandLine . addParameter ( STRING0 + pattern + STRING1 ) ; \n + commandLine . addParameter ( STRING2 ) ; \n + commandLine . addParameter ( pattern ) ; \n } \n } \n }", "msg_token": "Fix single test running"} {"diff": " public class BufferedString extends Iced implements Comparable < BufferedString > { \n \n public final AutoBuffer write_impl ( AutoBuffer ab ) { \n if ( _buf == null ) return ab . putInt ( - NUMBER0 ) ; \n - ab . putInt ( _buf . length ) ; \n - return ab . putA1 ( _buf , _off , _len ) ; \n + ab . putInt ( _len ) ; \n + return ab . putA1 ( _buf , _off , _off + _len ) ; \n } \n \n public final BufferedString read_impl ( AutoBuffer ab ) {", "msg_token": "Fix bug in BufferedString write_impl only worked for _buf length _len"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PlatformFileTypeFactory extends FileTypeFactory { \n public void createFileTypes ( @ notnull final FileTypeConsumer consumer ) { \n - consumer . consume ( new ArchiveFileType ( ) , STRING0 ) ; \n + consumer . consume ( new ArchiveFileType ( ) , STRING1 ) ; \n consumer . consume ( PlainTextFileType . INSTANCE , STRING2 ) ; \n consumer . consume ( NativeFileType . INSTANCE , STRING3 ) ; \n consumer . consume ( UnknownFileType . INSTANCE ) ;", "msg_token": "ane AIR native extension files have archive file type"} {"diff": " public class SessionFixationProtectionFilter extends SpringSecurityFilter { \n startNewSession ( ) ; \n super . sendRedirect ( location ) ; \n } \n + \n + public void flushBuffer ( ) throws IOException { \n + startNewSession ( ) ; \n + super . flushBuffer ( ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added override for flushBuffer in response wrapper"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove typecasts from generics"} {"diff": " public class Backend { \n put ( STRING0 , STRING1 ) ; \n put ( STRING2 , STRING3 ) ; \n put ( STRING4 , STRING3 ) ; \n + put ( STRING5 , STRING6 ) ; \n put ( STRING7 , STRING8 ) ; \n put ( STRING9 , STRING10 ) ; \n put ( STRING11 , STRING8 ) ;", "msg_token": "Recognize infinispan as a storage backend value"} {"diff": " public abstract class ModelAdapter < ModelClass extends Model > extends InstanceAda \n implements InternalAdapter < ModelClass , ModelClass > { \n \n private DatabaseStatement insertStatement ; \n + private DatabaseStatement compiledStatement ; \n private String [ ] cachingColumns ; \n private ModelCache < ModelClass , ? > modelCache ; \n \n public abstract class ModelAdapter < ModelClass extends Model > extends InstanceAda \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public DatabaseStatement getCompiledStatement ( ) { \n + if ( insertStatement == null ) { \n + insertStatement = getCompiledStatement ( \n + FlowManager . getDatabaseForTable ( getModelClass ( ) ) . getWritableDatabase ( ) ) ; \n + } \n + \n + return insertStatement ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public DatabaseStatement getCompiledStatement ( DatabaseWrapper databaseWrapper ) { \n + return databaseWrapper . compileStatement ( getCompiledStatementQuery ( ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added get compiled statement method and var to modeladapter"} {"diff": " public class StandardWrapper extends ContainerBase \n } \n \n if ( singleThreadModel ) { \n - SINGLE \n - SINGLE \n - synchronized ( instancePool ) { \n - instancePool . push ( instance ) ; \n - nInstances ++ ; \n + if ( newInstance ) { \n + SINGLE \n + SINGLE \n + synchronized ( instancePool ) { \n + instancePool . push ( instance ) ; \n + nInstances ++ ; \n + } \n } \n } else { \n if ( log . isTraceEnabled ( ) )", "msg_token": "Only add instance if it has just been created"} {"diff": " public class XmlPath { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class XmlPath { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public String prettyPrint ( ) {", "msg_token": "Improved javadoc for XmlPath"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ActivityThread { \n private static final boolean DEBUG_MEMORY_TRIM = false ; \n private static final boolean DEBUG_PROVIDER = false ; \n private static final long MIN_TIME_BETWEEN_GCS = NUMBER0 * NUMBER1 ; \n - private static final Pattern PATTERN_SEMICOLON = Pattern . compile ( STRING0 ) ; \n private static final int SQLITE_MEM_RELEASED_EVENT_LOG_TAG = NUMBER2 ; \n private static final int LOG_ON_PAUSE_CALLED = NUMBER3 ; \n private static final int LOG_ON_RESUME_CALLED = NUMBER4 ; \n public final class ActivityThread { \n \n private ProviderClientRecord installProviderAuthoritiesLocked ( IContentProvider provider , \n ContentProvider localProvider , IActivityManager . ContentProviderHolder holder ) { \n - final String auths [ ] = PATTERN_SEMICOLON . split ( holder . info . authority ) ; \n + final String auths [ ] = holder . info . authority . split ( STRING0 ) ; \n final int userId = UserHandle . getUserId ( holder . info . applicationInfo . uid ) ; \n \n final ProviderClientRecord pcr = new ProviderClientRecord (", "msg_token": "Remove unnecessary Pattern instance"} {"diff": " public class Code { \n Code c = ( Code ) o ; \n return _code . equals ( c . _code ) ; \n } \n + \n + public int hashCode ( ) { \n + return _code . hashCode ( ) ; \n + } \n \n final String _code ; \n \n public class CodeWScope extends Code { \n return _code . equals ( c . _code ) && _scope . equals ( c . _scope ) ; \n } \n \n + public int hashCode ( ) { \n + return _code . hashCode ( ) ^ _scope . hashCode ( ) ; \n + } \n \n final BSONObject _scope ; \n }", "msg_token": "add hashCode to Code CodeWScope"} {"diff": " public final class GitRepositoryManager extends AbstractProjectComponent impleme \n } \n } \n \n - public void updateAllRepositories ( GitRepository . TrackedTopic trackedTopic ) { \n + public void updateAllRepositories ( GitRepository . TrackedTopic . . . topics ) { \n for ( VirtualFile root : myRepositories . keySet ( ) ) { \n - updateRepository ( root , trackedTopic ) ; \n + updateRepository ( root , topics ) ; \n } \n }", "msg_token": "accept several topics"} {"diff": " public class LocalStore extends Store implements Serializable \n { \n private long mId ; \n private int mAttachmentCount ; \n + private String mSubject ; \n + \n + @ override \n + public String getSubject ( ) throws MessagingException \n + { \n + if ( mSubject != null ) \n + { \n + return mSubject ; \n + } \n + else \n + { \n + return super . getSubject ( ) ; \n + } \n + } \n + \n + @ override \n + public void setSubject ( String subject ) throws MessagingException \n + { \n + mSubject = subject ; \n + super . setSubject ( subject ) ; \n + } \n + \n + \n + \n \n public LocalMessage ( ) \n {", "msg_token": "Cache the message subject in a localMessage rather than roundtripping through a MIME message"} {"diff": " public class RealmAdapterTest extends AndroidTestCase { \n RealmResults < AllTypes > resultList = testRealm . where ( AllTypes . class ) . findAll ( ) ; \n try { \n RealmAdapter realmAdapter = new RealmAdapter ( null , resultList , automaticUpdate ) ; \n + fail ( STRING0 ) ; \n } catch ( IllegalArgumentException e ) { \n \n } \n try { \n RealmAdapter realmAdapter = new RealmAdapter ( getContext ( ) , null , automaticUpdate ) ; \n + fail ( STRING1 ) ; \n } catch ( IllegalArgumentException e ) { \n \n } \n public class RealmAdapterTest extends AndroidTestCase { \n \n RealmResults < AllTypes > emptyResultList = testRealm . where ( AllTypes . class ) \n . equalTo ( FIELD_STRING , STRING2 ) . findAll ( ) ; \n - \n realmAdapter . updateRealmResults ( emptyResultList ) ; \n assertEquals ( emptyResultList . size ( ) , realmAdapter . getRealmResults ( ) . size ( ) ) ; \n }", "msg_token": "added fail in exception test"} {"diff": " public class EsIndexRangeService implements IndexRangeService { \n . setIndex ( indexName ) \n . setType ( IndexMapping . TYPE_INDEX_RANGE ) \n . setId ( indexName ) \n - . setRefresh ( true ) \n . setSource ( source ) \n . request ( ) ; \n final IndexResponse response = client . index ( request ) . actionGet ( ) ;", "msg_token": "Do not refresh index after storing index range"} {"diff": " public class MultiPhrasePrefixQuery extends Query { \n } else { \n break ; \n } \n - if ( terms . size ( ) > maxExpansions ) { \n + if ( terms . size ( ) >= maxExpansions ) { \n break ; \n } \n } while ( enumerator . next ( ) ) ;", "msg_token": "fix the maxExpansion of a prefix query"} {"diff": " public abstract class DefaultProjectProfileManager extends ProjectProfileManager \n \n private String myProjectProfile ; \n COMMENT \n - @ optiontag \n - private boolean USE_PROJECT_PROFILE = true ; \n + @ optiontag ( STRING0 ) \n + private boolean useProjectProfile = true ; \n \n private final ApplicationProfileManager myApplicationProfileManager ; \n \n public abstract class DefaultProjectProfileManager extends ProjectProfileManager \n \n String oldProfile = myProjectProfile ; \n myProjectProfile = newProfile ; \n - USE_PROJECT_PROFILE = newProfile != null ; \n + useProjectProfile = newProfile != null ; \n if ( oldProfile != null ) { \n for ( ProfileChangeAdapter adapter : myProfilesListener ) { \n adapter . profileActivated ( getProfile ( oldProfile ) , newProfile != null ? getProfile ( newProfile ) : null ) ; \n public abstract class DefaultProjectProfileManager extends ProjectProfileManager \n \n @ notnull \n public synchronized Profile getProjectProfileImpl ( ) { \n - if ( ! USE_PROJECT_PROFILE ) { \n + if ( ! useProjectProfile ) { \n return myApplicationProfileManager . getRootProfile ( ) ; \n } \n if ( myProjectProfile == null || myProfiles . isEmpty ( ) ) {", "msg_token": "avoid possible scrambling issues"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class DeepLearningParameters extends Model . Parameters { \n if ( _class_sampling_factors != null && ! _balance_classes ) { \n dl . error ( STRING0 , STRING1 ) ; \n } \n - if ( _replicate_training_data && null != train ( ) && train ( ) . byteSize ( ) > FLOAT0 ) { \n + if ( _replicate_training_data && null != train ( ) && train ( ) . byteSize ( ) > FLOAT0 && H2O . CLOUD . size ( ) > NUMBER0 ) { \n dl . error ( STRING2 , STRING3 ) ; \n } \n }", "msg_token": "Relax DL validation check for size of training data"} {"diff": " class PackageManagerService extends IPackageManager . Stub { \n final File externalMediaDir = Environment \n . getExternalStorageAppMediaDirectory ( mStats . packageName ) ; \n mStats . externalMediaSize = mContainerService \n - . calculateDirectorySize ( externalCacheDir . getPath ( ) ) ; \n + . calculateDirectorySize ( externalMediaDir . getPath ( ) ) ; \n \n final File externalObbDir = Environment \n . getExternalStorageAppObbDirectory ( mStats . packageName ) ;", "msg_token": "Fix measurement of external media dir"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JdbcDriverTest extends EmbeddedServiceBase \n con . close ( ) ; \n con = null ; \n } \n + \n + SINGLE \n + for ( String fname : new File ( STRING0 ) . list ( ) ) \n + new File ( STRING0 + File . separator + fname ) . delete ( ) ; \n } \n \n SINGLE", "msg_token": "remove incremental backups between runs"} {"diff": " public class Mapper { \n Object newEntity = createInstance ( mf . getSubType ( ) , ( BasicDBObject ) entry . getValue ( ) ) ; \n \n newEntity = mapDBObjectToEntity ( ( BasicDBObject ) entry . getValue ( ) , newEntity ) ; \n - SINGLE \n Object objKey = objectFromValue ( mf . getMapKeyType ( ) , entry . getKey ( ) ) ; \n map . put ( objKey , newEntity ) ; \n } \n public class Mapper { \n for ( BasicDBObject dbObj : dbVals ) { \n Object newEntity = createInstance ( newEntityType , dbObj ) ; \n newEntity = mapDBObjectToEntity ( dbObj , newEntity ) ; \n - SINGLE \n values . add ( newEntity ) ; \n } \n }", "msg_token": "Removed TODO comments Lifecycle methods seems stable now"} {"diff": " import NAMESPACE ; \n \n public interface CacheStore extends KeyValueStore { \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void insert ( StaticBuffer key , StaticBuffer value , StoreTransaction tx ) throws StorageException ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove redundant CacheStore insert method"} {"diff": " public class JUnit4TestListener extends RunListener { \n } \n \n if ( methodName == null && description . getChildren ( ) . isEmpty ( ) ) { \n - methodName = description . getDisplayName ( ) ; \n + methodName = getShortName ( description . getDisplayName ( ) ) ; \n } \n \n myMethodNames . put ( description , methodName ) ;", "msg_token": "remove fqn from method name got from display name"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AssignmentToNullInspection extends ExpressionInspection { \n final PsiAssignmentExpression assignmentExpression = \n ( PsiAssignmentExpression ) parent ; \n final PsiExpression lhs = assignmentExpression . getLExpression ( ) ; \n + if ( lhs instanceof PsiReferenceExpression ) { \n + final PsiReferenceExpression referenceExpression = \n + ( PsiReferenceExpression ) lhs ; \n + final PsiElement element = referenceExpression . resolve ( ) ; \n + if ( element instanceof PsiVariable ) { \n + final PsiVariable variable = ( PsiVariable ) element ; \n + if ( AnnotationUtil . isNullable ( variable ) ) { \n + return ; \n + } \n + } \n + } \n registerError ( lhs ) ; \n } \n }", "msg_token": "ignore nullable variables"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n private boolean mNotificationShown ; \n private final boolean mImeSelectedOnBoot ; \n \n - class SessionState { \n + static class SessionState { \n final ClientState client ; \n final IInputMethod method ;", "msg_token": "Fix unnecessarily non static inner class to static inner"} {"diff": " public class ExecutionJobVertex implements Serializable { \n SINGLE \n for ( IntermediateResult ir : this . producedDataSets ) { \n if ( ir . getNumberOfAssignedPartitions ( ) != parallelism ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 ) ; \n } \n }", "msg_token": "Fix typo in exception message from assiged to assigned in ExecutionJobVertex"} {"diff": " public class ImageManager { \n private static final String DISK_CACHE_DIR = STRING0 ; \n private static final int MAX_DISK_CACHE_SIZE = NUMBER0 * NUMBER1 * NUMBER1 ; \n private final BitmapReferenceCounter bitmapReferenceCounter ; \n + private boolean shutdown = false ; \n \n COMMENT \n COMMENT \n public class ImageManager { \n } \n \n public void shutdown ( ) { \n + shutdown = true ; \n executor . shutdown ( ) ; \n bgHandler . getLooper ( ) . quit ( ) ; \n } \n public class ImageManager { \n } \n \n private Object runJob ( int key , LoadedCallback cb , boolean useDiskCache , ImageManagerJob job ) { \n + if ( shutdown ) return null ; \n + \n if ( ! returnFromCache ( key , cb ) ) { \n job . execute ( key , cb , useDiskCache ) ; \n }", "msg_token": "Don t post jobs to threads after IM shuts down"} {"diff": " public abstract class ObjCObject extends NativeObject { \n } \n \n if ( ! forceType ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n ObjCClass objCClass = ObjCClass . getFromObject ( handle ) ; \n - forceType = ! cls . isAssignableFrom ( objCClass . getType ( ) ) && ! ObjCClass . isObjCProxy ( cls ) ; \n + forceType = ! cls . isAssignableFrom ( objCClass . getType ( ) ) ; \n } \n \n synchronized ( objcBridgeLock ) {", "msg_token": "Added a comment to clarify why we need to force the type returned by"} {"diff": " public class MockitoAfterTestNGMethod { \n Mockito . reset ( instanceMocksOf ( instance ) . toArray ( ) ) ; \n } \n \n + @ suppresswarnings ( { STRING0 , STRING1 } ) \n private Collection < Object > instanceMocksOf ( Object instance ) { \n return Fields . allDeclaredFieldsOf ( instance ) \n . filter ( annotatedBy ( Mock . class ,", "msg_token": "Ignoring some warnings"} {"diff": " public class RestDeleteByQueryAction extends BaseRestHandler { \n deleteByQueryRequest . types ( splitTypes ( request . param ( STRING0 ) ) ) ; \n deleteByQueryRequest . timeout ( request . paramAsTime ( STRING1 , ShardDeleteByQueryRequest . DEFAULT_TIMEOUT ) ) ; \n \n + deleteByQueryRequest . routing ( request . param ( STRING2 ) ) ; \n String replicationType = request . param ( STRING3 ) ; \n if ( replicationType != null ) { \n deleteByQueryRequest . replicationType ( ReplicationType . fromString ( replicationType ) ) ;", "msg_token": "add routing to delete by query rest endpoint"} {"diff": " public class NotificationService extends IntentService { \n COMMENT \n COMMENT \n public static boolean handleDeleteIntent ( Context context , Intent intent ) { \n + if ( intent == null ) { \n + return false ; \n + } \n + \n long clearedTime = intent . getLongExtra ( KEY_EPISODE_CLEARED_TIME , NUMBER0 ) ; \n if ( clearedTime != NUMBER0 ) { \n SINGLE", "msg_token": "Guard notification delete intent handling against NP"} {"diff": " public class DataFlowRunner { \n memoryStates . add ( ( DfaMemoryStateImpl ) queue . poll ( ) . getMemoryState ( ) ) ; \n } \n \n - if ( joinInstructions . contains ( instruction ) ) { \n + if ( memoryStates . size ( ) > NUMBER0 && joinInstructions . contains ( instruction ) ) { \n while ( true ) { \n Set < DfaMemoryStateImpl > nextStates = new StateMerger ( memoryStates ) . merge ( ) ; \n if ( nextStates == null ) break ;", "msg_token": "don t merge states when there s only one"} {"diff": " \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": "add license header to FileDownloadTaskAtom"} {"diff": " public final class MediaCodecInfo { \n return MediaCodecList . getSupportedTypes ( mIndex ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final class CodecCapabilities { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n public CodecProfileLevel [ ] profileLevels ; \n \n SINGLE \n public final class MediaCodecInfo { \n public int level ; \n } ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final CodecCapabilities getCapabilitiesForType ( \n String type ) { \n return MediaCodecList . getCodecCapabilities ( mIndex , type ) ;", "msg_token": "Add some documentation to MediaCodecInfo"} {"diff": " public class Flyway { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Flyway { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Flyway { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Flyway { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Flyway { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Flyway { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added missing alt attributes"} {"diff": " public final class JavaFile { \n codeWriter . popPackage ( ) ; \n } \n \n - public String toString ( ) { \n + @ override public String toString ( ) { \n try { \n StringBuilder result = new StringBuilder ( ) ; \n writeTo ( result ) ;", "msg_token": "Add missing Override annotation"} {"diff": " public class NdkCxxPlatforms { \n SINGLE \n private NdkCxxPlatforms ( ) { } \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String ANDROID_NDK_ROOT = STRING0 ; \n \n private static final ImmutableMap < Platform , Host > BUILD_PLATFORMS = \n ImmutableMap . of ( \n public class NdkCxxPlatforms { \n File . separatorChar , \n Paths . get ( STRING1 ) , \n ImmutableBiMap . of ( \n - getNdkToolRoot ( ndkRoot , targetConfiguration , host ) , \n - Paths . get ( STRING2 ) , \n ndkRoot , \n - Paths . get ( STRING3 ) ) ) ) \n + Paths . get ( ANDROID_NDK_ROOT ) ) ) ) \n . setSharedLibraryExtension ( STRING4 ) ; \n \n if ( cxxRuntime != CxxRuntime . SYSTEM ) {", "msg_token": "Use ANDROID_NDK_ROOT as the magic substitution for representing Android NDK in debug paths"} {"diff": " public class ActiveChatListView extends LinearLayout { \n UserPresenceView mPresenceView ; \n ListView mChatList ; \n \n - private SavedState mSavedState ; \n + SINGLE \n private ChatListAdapter mAdapter ; SINGLE \n private boolean mAutoRefresh = true ; \n \n public class ActiveChatListView extends LinearLayout { \n \n @ override \n public void onRestoreInstanceState ( Parcelable state ) { \n - SavedState ss = ( SavedState ) state ; \n + SINGLE \n \n - super . onRestoreInstanceState ( ss . getSuperState ( ) ) ; \n + super . onRestoreInstanceState ( state ) ; SINGLE \n \n - mSavedState = ss ; \n + SINGLE \n } \n \n protected void setAutoRefreshContacts ( boolean isRefresh ) {", "msg_token": "comment out half implemented SavedState to fix ClassCastException"} {"diff": " public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDefaultPersistenceUnitRootLocation ( String defaultPersistenceUnitRootLocation ) { \n + this . internalPersistenceUnitManager . setDefaultPersistenceUnitRootLocation ( defaultPersistenceUnitRootLocation ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add setter for defaultPersistenceUnitRootLocation"} {"diff": " public class TaskListAdapter extends ArrayAdapter < TaskModelForList > { \n hooks . setSelectedItem ( null ) ; \n } \n \n - if ( view != null && state == true ) { \n + if ( view != null ) { \n setFieldContentsAndVisibility ( view , task ) ; \n ( ( ListView ) view . getParent ( ) ) . setSelection ( objects . indexOf ( task ) ) ; \n }", "msg_token": "Couldn t close the thing"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler { \n { \n Debug . onConnectionStart ( ) ; SINGLE \n \n + initConnection ( providerSettings , userName ) ; \n + \n String userResource = providerSettings . getXmppResource ( ) ; \n if ( userResource . equals ( ImApp . DEFAULT_XMPP_RESOURCE ) ) \n { \n public class XmppConnection extends ImConnection implements CallbackHandler { \n userResource += UUID . randomUUID ( ) . toString ( ) . substring ( NUMBER0 , NUMBER1 ) ; \n providerSettings . setXmppResource ( userResource ) ; \n } \n - \n - initConnection ( providerSettings , userName ) ; \n - \n + \n SINGLE \n mConfig . setCompressionEnabled ( false ) ;", "msg_token": "Revert set unique resource before initConnection"} {"diff": " public abstract class AbstractCacheMessageTask < P > \n if ( BuildInfo . UNKNOWN_HAZELCAST_VERSION == getClientVersion ( ) ) { \n boolean compatibilityEnabled = nodeEngine . getProperties ( ) . getBoolean ( GroupProperty . COMPATIBILITY_3_6_CLIENT_ENABLED ) ; \n if ( compatibilityEnabled ) { \n - responseData = nodeEngine . toData ( new LegacyCacheConfig ( ( CacheConfig ) response ) ) ; \n + responseData = nodeEngine . toData ( response == null ? null : new LegacyCacheConfig ( ( CacheConfig ) response ) ) ; \n } \n }", "msg_token": "Fix potential NPE when client cache manager gets cache config not found on member"} {"diff": " public final class IDEVirtualFileFinder extends VirtualFileKotlinClassFinder imp \n public IDEVirtualFileFinder ( @ notnull Project project , @ notnull GlobalSearchScope scope ) { \n this . project = project ; \n this . scope = scope ; \n + \n + if ( scope != GlobalSearchScope . EMPTY_SCOPE && scope . getProject ( ) == null ) { \n + LOG . warn ( STRING0 + scope ) ; \n + } \n } \n \n @ nullable", "msg_token": "Add warning when non empty scope without project is used for IDEVirtualFileFinder"} {"diff": " public abstract class StartTask implements BootstrapTask { \n final Stopwatch stopwatch = Stopwatch . createStarted ( ) ; \n runner . run ( ) ; \n \n - Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { \n + Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( new Runnable ( ) { \n @ override \n public void run ( ) { \n runner . stop ( ) ; \n stopwatch . stop ( ) ; \n logger . info ( STRING0 + stopwatch ) ; \n } \n - } ) ; \n + } ) ) ; \n } \n \n protected Runner createRunner ( final String [ ] args ) {", "msg_token": "used runnable for thread as shutdown hook"} {"diff": " public class ContextMenuAdapter { \n } else { \n if ( item . getIcon ( ) != ContextMenuItem . INVALID_ID ) { \n int colorRes = item . getColorRes ( ) ; \n - if ( colorRes == ContextMenuItem . INVALID_ID && ! item . shouldSkipPainting ( ) ) { \n - colorRes = lightTheme ? R . color . icon_color : R . color . color_white ; \n + if ( colorRes == ContextMenuItem . INVALID_ID ) { \n + if ( ! item . shouldSkipPainting ( ) ) { \n + colorRes = lightTheme ? R . color . icon_color : R . color . color_white ; \n + } else { \n + colorRes = NUMBER0 ; \n + } \n } \n final Drawable drawable = mIconsCache . getIcon ( item . getIcon ( ) , colorRes ) ; \n ( ( AppCompatImageView ) convertView . findViewById ( R . id . icon ) ) . setImageDrawable ( drawable ) ;", "msg_token": "Fix ContextMenuAdapter crash"} {"diff": " import NAMESPACE ; \n COMMENT \n public class DeletePersistentMethod extends AbstractDynamicPersistentMethod { \n \n - private static final String METHOD_SIGNATURE = STRING0 ; \n + public static final String METHOD_SIGNATURE = STRING0 ; \n \n public DeletePersistentMethod ( SessionFactory sessionFactory , ClassLoader classLoader ) { \n super ( METHOD_SIGNATURE , sessionFactory , classLoader ) ; \n import NAMESPACE ; \n public class GetPersistentMethod extends AbstractStaticPersistentMethod { \n \n private static final Pattern METHOD_PATTERN = Pattern . compile ( STRING1 ) ; \n - private static final String METHOD_SIGNATURE = STRING2 ; \n + public static final String METHOD_SIGNATURE = STRING2 ; \n private GrailsApplication application ; \n private Map context = Ognl . createDefaultContext ( this ) ; \n private DefaultTypeConverter typeConverter = new DefaultTypeConverter ( ) ; \n import NAMESPACE ; \n COMMENT \n public class SavePersistentMethod extends AbstractDynamicPersistentMethod { \n \n - private static final String METHOD_SIGNATURE = STRING3 ; \n + public static final String METHOD_SIGNATURE = STRING3 ; \n private GrailsApplication application ; \n \n public SavePersistentMethod ( SessionFactory sessionFactory , ClassLoader classLoader , GrailsApplication application ) {", "msg_token": "made method signature constant public"} {"diff": " public abstract class SplitterWithSecondHideable { \n mySplitter . setDoubleBuffered ( true ) ; \n mySplitter . setFirstComponent ( firstComponent ) ; \n mySplitter . setSecondComponent ( myFictivePanel ) ; \n - mySplitter . setShowDividerIcon ( false ) ; \n + SINGLE \n mySplitter . setProportion ( FLOAT0 ) ; \n }", "msg_token": "better for commit dialog resizing to be fixed"} {"diff": " public class ChangesViewManager implements ChangesViewI , JDOMExternalizable , Pro \n } \n } ) ; \n if ( ApplicationManager . getApplication ( ) . isHeadlessEnvironment ( ) ) return ; \n - myContent = ContentFactory . SERVICE . getInstance ( ) . createContent ( createChangeViewComponent ( ) , STRING0 , false ) ; \n + myContent = ContentFactory . SERVICE . getInstance ( ) . createContent ( createChangeViewComponent ( ) , ChangesViewContentManager . LOCAL_CHANGES , false ) ; \n myContent . setCloseable ( false ) ; \n myContentManager . addContent ( myContent ) ;", "msg_token": "remove hardcoded literal"} {"diff": " public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase \n final boolean staticProblem , \n final boolean accessible ) { \n final PsiExpressionList argumentList = getArgumentList ( ) ; \n + final PsiType [ ] typeParameters = PsiMethodReferenceExpressionImpl . this . getTypeParameters ( ) ; \n return new MethodCandidateInfo ( method , substitutor , ! accessible , staticProblem , argumentList , myCurrentFileContext , \n - argumentList != null ? argumentList . getExpressionTypes ( ) : null , getTypeArguments ( ) , \n + argumentList != null ? argumentList . getExpressionTypes ( ) : null , typeParameters . length > NUMBER0 ? typeParameters : null , \n getLanguageLevel ( ) ) { \n @ override \n public PsiSubstitutor inferTypeArguments ( @ notnull ParameterTypeInferencePolicy policy , boolean includeReturnConstraint ) {", "msg_token": "take ref type arguments into account"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PipeFluidsIron extends Pipe < PipeTransportFluids > { \n } \n \n @ override \n + public boolean blockActivated ( EntityPlayer entityplayer ) { \n + return logic . blockActivated ( entityplayer ) ; \n + } \n + \n + @ override \n public void onNeighborBlockChange ( int blockId ) { \n logic . switchOnRedstone ( ) ; \n super . onNeighborBlockChange ( blockId ) ;", "msg_token": "Fix Iron Fluid Pipe rotation"} {"diff": " public class ShadowAudioManager { \n } \n \n @ implementation \n - int getStreamVolume ( int streamType ) { \n + public int getStreamVolume ( int streamType ) { \n return streamVolume ; \n } \n \n @ implementation \n - void setStreamVolume ( int streamType , int index , int flags ) { \n + public void setStreamVolume ( int streamType , int index , int flags ) { \n this . streamVolume = index ; \n this . flags = flags ; \n }", "msg_token": "Fix missing public decls that were breaking tests"} {"diff": " public class CxfConsumerTest extends ContextTestSupport { \n public void configure ( ) { \n from ( SIMPLE_ENDPOINT_URI ) . choice ( ) . when ( header ( CxfConstants . OPERATION_NAME ) . isEqualTo ( ECHO_OPERATION ) ) . process ( new Processor ( ) { \n public void process ( final Exchange exchange ) { \n + assertEquals ( DataFormat . POJO , exchange . getProperty ( CxfConstants . DATA_FORMAT_PROPERTY , DataFormat . class ) ) ; \n Message in = exchange . getIn ( ) ; \n SINGLE \n List < ? > parameter = in . getBody ( List . class ) ;", "msg_token": "Add a test to check Data Format property in the exchange"} {"diff": " public class UnnecessaryModuleDependencyInspection extends GlobalInspectionTool \n List < CommonProblemDescriptor > descriptors = new ArrayList < CommonProblemDescriptor > ( ) ; \n final Set < Module > modules = refModule . getUserData ( UnnecessaryModuleDependencyAnnotator . DEPENDENCIES ) ; \n for ( Module dependency : declaredDependencies ) { \n - if ( modules == null || ! modules . contains ( dependency ) ) { \n - descriptors . add ( manager . createProblemDescriptor ( InspectionsBundle . message ( STRING0 , module . getName ( ) , dependency . getName ( ) ) ) ) ; \n + if ( scope . contains ( dependency . getModuleFile ( ) ) ) { SINGLE \n + if ( modules == null || ! modules . contains ( dependency ) ) { \n + descriptors . add ( manager . createProblemDescriptor ( InspectionsBundle . message ( STRING0 , module . getName ( ) , dependency . getName ( ) ) ) ) ; \n + } \n } \n } \n return descriptors . isEmpty ( ) ? null : descriptors . toArray ( new CommonProblemDescriptor [ descriptors . size ( ) ] ) ;", "msg_token": "inspections engine rejects external references global inspections shouldn t rely on them"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setLockTaskPackages ( ComponentName admin , String [ ] packages )", "msg_token": "Fix javadoc for setLockTaskPackages"} {"diff": " public class DisruptorQueue implements IStatefulObject { \n \n public FlusherPool ( ) { \n _exec = new ThreadPoolExecutor ( NUMBER0 , NUMBER1 , NUMBER2 , TimeUnit . SECONDS , new ArrayBlockingQueue < Runnable > ( NUMBER3 ) , new ThreadPoolExecutor . DiscardPolicy ( ) ) ; \n - ThreadFactory threadFactory = new ThreadFactoryBuilder ( ) \n - . setDaemon ( true ) \n - . setNameFormat ( THREAD_PREFIX + STRING0 ) \n - . build ( ) ; \n + ThreadFactory threadFactory = new ThreadFactoryBuilder ( ) . setDaemon ( true ) . setNameFormat ( THREAD_PREFIX + STRING0 ) . build ( ) ; \n _exec . setThreadFactory ( threadFactory ) ; \n }", "msg_token": "Remove indentation as per request"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Renamed package name corresponding to the directory"} {"diff": " public class DefaultResolvedArtifact implements ResolvedArtifact { \n } \n \n public ResolvedDependency getResolvedDependency ( ) { \n - DeprecationLogger . nagUserOfDiscontinuedMethod ( STRING0 ) ; \n + DeprecationLogger . nagUserWith ( STRING1 ) ; \n return resolvedDependency ; \n }", "msg_token": "Improve the ResolvedArtifact getResolvedDependency deprecation message to instruct the user what the alternatives are"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConnectOperation extends AbstractInitOperation { \n \n this . options = options ; \n this . result = new ConnectOperationResult ( ) ; \n - this . listener = listener ; \n - this . eventBus = LocalEventBus . getInstance ( ) ; \n } \n \n @ override", "msg_token": "Remove obsolete double initialization"} {"diff": " public class GremlinPathContext extends JXPathContextReferenceImpl { \n try { \n return this . getVariables ( ) . getVariable ( GremlinPathContext . removeVariableDollarSign ( variable ) ) ; \n } catch ( Exception e ) { \n - System . out . println ( e ) ; \n return null ; \n } \n } \n public class GraphFunctionHelper { \n } \n return FunctionHelper . getGraph ( context ) ; \n } \n - \n - public static boolean graphProvided ( Object [ ] parameters ) { \n - if ( null != parameters && parameters . length > NUMBER0 ) { \n - Object object = FunctionHelper . nodeSetConversion ( parameters [ NUMBER0 ] ) ; \n - if ( object instanceof Graph ) { \n - return true ; \n - } \n - } \n - return false ; \n - } \n - \n }", "msg_token": "had a system out println that in the code from a long time ago"} {"diff": " public final class Es6ToEs3ConverterTest extends CompilerTestCase { \n COMMENT \n COMMENT \n public void testClassExpressionInAssignment ( ) { \n - SINGLE \n test ( STRING0 , \n STRING1 ) ;", "msg_token": "Remove an obsolete TODO"} {"diff": " public class RemoteServer implements Server \n params . set ( NUMBER0 , new JSONString ( source . getDeployDir ( ) ) ) ; \n params . set ( NUMBER1 , JSONUtils . toJSONStringArray ( settings . getDeployFiles ( ) ) ) ; \n params . set ( NUMBER2 , new JSONString ( source . isDocument ( ) ? source . getDeployFileName ( ) : STRING0 ) ) ; \n - params . set ( NUMBER3 , new JSONString ( source . isDocument ( ) ? source . getSourceFile ( ) : STRING0 ) ) ; \n + params . set ( NUMBER3 , new JSONString ( source . isDocument ( ) && source . getSourceFile ( ) != null ? \n + source . getSourceFile ( ) : STRING0 ) ) ; \n params . set ( NUMBER4 , new JSONString ( account ) ) ; \n params . set ( NUMBER5 , new JSONString ( server ) ) ; \n params . set ( NUMBER6 , new JSONString ( appName ) ) ;", "msg_token": "handle missing source doc can happen for e g plots when publishing"} {"diff": " public class FilenameGeneratorTest extends AndroidTestCase { \n \n private static final String VALID1 = STRING0 ; \n private static final String INVALID1 = STRING1 ; \n + private static final String INVALID2 = STRING2 ; \n \n public void testGenerateFileName ( ) throws IOException { \n String result = FileNameGenerator . generateFileName ( VALID1 ) ; \n public class FilenameGeneratorTest extends AndroidTestCase { \n assertEquals ( result , VALID1 ) ; \n createFiles ( result ) ; \n } \n + \n + public void testGenerateFileName2 ( ) throws IOException { \n + String result = FileNameGenerator . generateFileName ( INVALID2 ) ; \n + assertEquals ( result , VALID1 ) ; \n + createFiles ( result ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added tests to FilenameGenerator"} {"diff": " public class ShowsFragment extends SherlockFragment implements \n SINGLE \n int showfilter = prefs . getInt ( SeriesGuidePreferences . KEY_SHOWFILTER , NUMBER0 ) ; \n SINGLE \n - mIsPreventLoaderRestart = true ; \n + SINGLE \n actionBar . setSelectedNavigationItem ( showfilter ) ; \n return showfilter ; \n }", "msg_token": "Remember selected show list tab again"} {"diff": " public class ModelMetrics extends Keyed < ModelMetrics > { \n final Key _frameKey ; \n final ModelCategory _model_category ; \n final long _model_checksum ; \n - final long _frame_checksum ; \n + long _frame_checksum ; \n public final long _scoring_time ; \n \n SINGLE \n public class ModelMetrics extends Keyed < ModelMetrics > { \n _frameKey = frame . _key ; \n _model_category = model . _output . getModelCategory ( ) ; \n _model_checksum = model . checksum ( ) ; \n - _frame_checksum = frame . checksum ( ) ; \n + try { _frame_checksum = frame . checksum ( ) ; } catch ( Throwable t ) { } \n _MSE = MSE ; \n _scoring_time = System . currentTimeMillis ( ) ; \n }", "msg_token": "Add exception handling around stale frames for model metrics constructor"} {"diff": " public class HttpRequestTest extends ServerTestCase { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ test \n + public void refererHeader ( ) throws Exception { \n + final AtomicReference < String > referer = new AtomicReference < String > ( ) ; \n + handler = new RequestHandler ( ) { \n + \n + @ override \n + public void handle ( Request request , HttpServletResponse response ) { \n + referer . set ( request . getHeader ( STRING0 ) ) ; \n + response . setStatus ( HTTP_OK ) ; \n + } \n + } ; \n + assertTrue ( post ( url ) . referer ( STRING1 ) . ok ( ) ) ; \n + assertEquals ( STRING1 , referer . get ( ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add unit test for setting Referer header"} {"diff": " public final class H2O { \n public static volatile AbstractEmbeddedH2OConfig embeddedH2OConfig ; \n public static volatile ApiIpPortWatchdogThread apiIpPortWatchdog ; \n \n - static boolean _hdfsActive = false ; \n - \n public static String VERSION = STRING0 ; \n \n SINGLE", "msg_token": "Remove dead variable _hdfsActive"} {"diff": " public class ElasticsearchEndpoint extends DefaultEndpoint { \n if ( configuration . getIp ( ) != null ) { \n LOG . info ( STRING0 , configuration . getIp ( ) ) ; \n Settings settings = ImmutableSettings . settingsBuilder ( ) \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + . classLoader ( Settings . class . getClassLoader ( ) ) \n . put ( STRING1 , configuration . getClusterName ( ) ) \n . put ( STRING2 , false ) \n . put ( STRING3 , true )", "msg_token": "Allow camel elasticsearch to work in an OSGi environment"} {"diff": " public class AgreementRule extends GermanRule { \n this . language = language ; \n super . setCategory ( new Category ( CategoryIds . GRAMMAR , messages . getString ( STRING0 ) ) ) ; \n addExamplePair ( Example . wrong ( STRING1 ) , \n - Example . fixed ( STRING2 ) ) ; \n + Example . fixed ( STRING3 ) ) ; \n } \n \n @ override", "msg_token": "fix tiny typo in example"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ComponentInstallProcessor implements DeploymentUnitProcessor \n SINGLE \n startBuilder . addDependency ( createServiceName , BasicComponent . class , startService . getComponentInjector ( ) ) ; \n \n + SINGLE \n + if ( configuration . getComponentDescription ( ) . getNamingMode ( ) == ComponentNamingMode . CREATE ) { \n + final RootContextService contextService = new RootContextService ( ) ; \n + final ServiceName contextServiceName = ContextNames . contextServiceNameOfComponent ( configuration . getApplicationName ( ) , configuration . getModuleName ( ) , configuration . getComponentName ( ) ) ; \n + serviceTarget . addService ( contextServiceName , contextService ) . install ( ) ; \n + } \n + \n InjectionSource . ResolutionContext resolutionContext = new InjectionSource . ResolutionContext ( \n configuration . getComponentDescription ( ) . getNamingMode ( ) == ComponentNamingMode . USE_MODULE , \n configuration . getComponentName ( ) ,", "msg_token": "Create context service for components that need it"} {"diff": " public class NinePatch { \n mBitmap = patch . mBitmap ; \n mChunk = patch . mChunk ; \n mSrcName = patch . mSrcName ; \n - mPaint = new Paint ( patch . mPaint ) ; \n + if ( patch . mPaint != null ) { \n + mPaint = new Paint ( patch . mPaint ) ; \n + } \n validateNinePatchChunk ( mBitmap . ni ( ) , mChunk ) ; \n } \n \n public class NinePatch { \n \n public native static boolean isNinePatchChunk ( byte [ ] chunk ) ; \n \n - private final Rect mRect = new Rect ( ) ; \n private final Bitmap mBitmap ; \n private final byte [ ] mChunk ; \n private Paint mPaint ;", "msg_token": "Fix NullPointerException in NinePatch constructor"} {"diff": " public class Path { \n this . options = options ; \n } \n \n + @ jsonignore \n + public List < Operation > getOperations ( ) { \n + List < Operation > allOperations = new ArrayList < Operation > ( ) ; \n + if ( get != null ) \n + allOperations . add ( get ) ; \n + if ( put != null ) \n + allOperations . add ( put ) ; \n + if ( post != null ) \n + allOperations . add ( post ) ; \n + if ( delete != null ) \n + allOperations . add ( delete ) ; \n + if ( patch != null ) \n + allOperations . add ( patch ) ; \n + if ( options != null ) \n + allOperations . add ( options ) ; \n + \n + return allOperations ; \n + } \n + \n public List < Parameter > getParameters ( ) { \n return parameters ; \n }", "msg_token": "added getOperations method for convenience"} {"diff": " public class PortUnificationServerHandler extends FrameDecoder { \n } else if ( isFactorial ( magic1 ) ) { \n switchToFactorial ( ctx ) ; \n } else { \n - SINGLE \n + SINGLE \n + buffer . skipBytes ( buffer . readableBytes ( ) ) ; \n ctx . getChannel ( ) . close ( ) ; \n return null ; \n }", "msg_token": "Discard the buffer if the protocol is unknown"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BaseBundle { \n } \n \n if ( sShouldDefuse && ( mFlags & FLAG_DEFUSABLE ) == NUMBER0 ) { \n - Log . wtf ( TAG , STRING0 \n + Slog . wtf ( TAG , STRING0 \n + STRING1 , new Throwable ( ) ) ; \n } \n \n public class UserManagerService extends IUserManager . Stub { \n if ( restrictions == null || restrictions . isEmpty ( ) ) { \n cleanAppRestrictionsForPackage ( packageName , userId ) ; \n } else { \n + restrictions . setDefusable ( true ) ; \n SINGLE \n writeApplicationRestrictionsLP ( packageName , restrictions , userId ) ; \n }", "msg_token": "Fix a deadlock due to wtf in BaseBundle"} {"diff": " public class StorageManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract static class FixedStorageProviderBase implements StorageProvider \n public class StorageManager \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class StorageManager \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class StorageManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n final List < StorageProvider > allProviders = Arrays . asList ( new InternalStorageProvider ( ) , \n new ExternalStorageProvider ( ) ) ;", "msg_token": "Improved some comments"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n final int flags = View . SYSTEM_UI_FLAG_IMMERSIVE | View . SYSTEM_UI_FLAG_IMMERSIVE_STICKY ; \n return mNavigationBar != null \n && ( vis & View . SYSTEM_UI_FLAG_HIDE_NAVIGATION ) != NUMBER0 \n - && ( vis & flags ) != NUMBER0 ; \n + && ( vis & flags ) != NUMBER0 \n + && canHideNavigationBar ( ) ; \n } \n \n COMMENT", "msg_token": "Do not show immersive mode help in touch exploration mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Indexer { \n return indices ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isConnectedAndHealthy ( ) { \n + try { \n + return ! node . isClosed ( ) \n + && cluster ( ) != null \n + && cluster ( ) . getHealth ( ) != ClusterHealthStatus . RED ; \n + } catch ( ElasticSearchException e ) { \n + LOG . trace ( STRING0 , e ) ; \n + return false ; \n + } \n + } \n + \n public LinkedBlockingQueue < List < DeadLetter > > getDeadLetterQueue ( ) { \n return deadLetterQueue ; \n }", "msg_token": "Add Indexer isConnectedAndHealthy method"} {"diff": " public abstract class MenuDrawer extends ViewGroup { \n } \n \n public enum Type { \n + COMMENT \n + COMMENT \n + COMMENT \n BEHIND , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n STATIC , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n OVERLAY , \n } \n \n public abstract class MenuDrawer extends ViewGroup { \n COMMENT \n protected boolean mDropShadowEnabled ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n protected int mDropShadowColor ; \n \n COMMENT \n public abstract class MenuDrawer extends ViewGroup { \n COMMENT \n public abstract boolean getOffsetMenuEnabled ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public int getDrawerState ( ) { \n return mDrawerState ; \n }", "msg_token": "Add a few java docs"} {"diff": " final class HazelcastInstanceLoader { \n } \n \n if ( useClient ) { \n - logger . info ( \n + logger . warning ( \n STRING0 ) ; \n ClientConfig clientConfig ; \n if ( configUrl == null ) { \n final class HazelcastInstanceLoader { \n \n if ( ! isEmpty ( instanceName ) ) { \n if ( logger . isLoggable ( Level . INFO ) ) { \n - logger . info ( format ( STRING1 , instanceName ) ) ; \n + logger . info ( format ( STRING2 , instanceName ) ) ; \n } \n config . setInstanceName ( instanceName ) ; \n return Hazelcast . getOrCreateHazelcastInstance ( config ) ;", "msg_token": "Changed loglevel for client hz instance creation to warning"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix example in CookieDecoder Javadoc"} {"diff": " public class JpaLockingStrategy implements LockingStrategy { \n \n @ override \n public boolean acquire ( ) { \n - Lock lock ; \n + final Lock lock ; \n try { \n lock = entityManager . find ( Lock . class , applicationId , LockModeType . PESSIMISTIC_WRITE ) ; \n } catch ( final PersistenceException e ) {", "msg_token": "fixed check style"} {"diff": " public class YahooAccountRegistration { \n \n private String password ; \n \n - private boolean rememberPassword ; \n + private boolean rememberPassword = true ; \n \n COMMENT \n COMMENT", "msg_token": "Make the save password selected by default"} {"diff": " public interface ReadableDuration extends Comparable < ReadableDuration > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n boolean isLongerThan ( ReadableDuration duration ) ; \n \n public interface ReadableDuration extends Comparable < ReadableDuration > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n boolean isShorterThan ( ReadableDuration duration ) ;", "msg_token": "Removing incorrect equal to"} {"diff": " public class SearchOrbView extends FrameLayout implements View . OnClickListener { \n return mColors ; \n } \n \n - private void enableOrbColorAnimation ( boolean enable ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void enableOrbColorAnimation ( boolean enable ) { \n if ( mColorAnimator != null ) { \n mColorAnimator . end ( ) ; \n mColorAnimator = null ;", "msg_token": "Expose SearchOrbView enableOrbColorAnimation"} {"diff": " public class DefaultSubscriptionInternalApi extends SubscriptionApiBase implemen \n List < SubscriptionBaseEvent > dryRunEvents = null ; \n try { \n final PlanPhaseSpecifier inputSpec = dryRunArguments . getPlanPhaseSpecifier ( ) ; \n + final boolean isInputSpecNullOrEmpty = inputSpec == null || \n + ( inputSpec . getPlanName ( ) == null && inputSpec . getProductName ( ) == null && inputSpec . getBillingPeriod ( ) == null ) ; \n final Catalog catalog = catalogService . getFullCatalog ( true , true , context ) ; \n \n SINGLE \n final PlanPhasePriceOverridesWithCallContext overridesWithContext = new DefaultPlanPhasePriceOverridesWithCallContext ( dryRunArguments . getPlanPhasePriceOverrides ( ) , null ) ; \n - final Plan plan = inputSpec != null ? \n - catalog . createOrFindPlan ( inputSpec , overridesWithContext , utcNow ) : null ; \n + final Plan plan = isInputSpecNullOrEmpty ? \n + null : \n + catalog . createOrFindPlan ( inputSpec , overridesWithContext , utcNow ) ; \n final TenantContext tenantContext = internalCallContextFactory . createTenantContext ( context ) ;", "msg_token": "Fix issue when doing a dryRun cancellation and spefifying an empty PlanPhaseSpecifier"} {"diff": " public class FullPrunedBlockChain extends AbstractBlockChain { \n in . getOutpoint ( ) . getIndex ( ) ) ; \n if ( prevOut == null ) \n throw new VerificationException ( STRING0 ) ; \n + SINGLE \n SINGLE \n blockStore . removeUnspentTransactionOutput ( prevOut ) ; \n txOutsSpent . add ( prevOut ) ;", "msg_token": "Add a note that spending the genesis transaction should be impossible"} {"diff": " public class TileMarker extends TileBuildCraft implements ITileAreaProvider { \n private EntityLaser [ ] lasers ; \n private EntityLaser [ ] signals ; \n \n + private ByteBuf stream = null ; \n + \n public void updateSignals ( ) { \n if ( ! worldObj . isRemote ) { \n showSignals = worldObj . isBlockIndirectlyGettingPowered ( pos ) > NUMBER0 ; \n public class TileMarker extends TileBuildCraft implements ITileAreaProvider { \n } \n } \n } \n + \n + @ override \n + public void update ( ) { \n + super . update ( ) ; \n + readDataDelayed ( ) ; \n + } \n \n @ override \n public void initialize ( ) { \n public class TileMarker extends TileBuildCraft implements ITileAreaProvider { \n \n @ override \n public void readData ( ByteBuf stream ) { \n + this . stream = stream ; \n + } \n + \n + public void readDataDelayed ( ) { \n + if ( stream == null ) { \n + return ; \n + } \n origin . readData ( stream ) ; \n showSignals = stream . readBoolean ( ) ;", "msg_token": "Fix ConcurrentModificationException caused by trying to edit the world in a different thread from the main one"} {"diff": " public class AppBarLayout extends LinearLayout { \n } \n \n int range = NUMBER0 ; \n - for ( int i = getChildCount ( ) - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n + for ( int i = NUMBER0 , z = getChildCount ( ) ; i < z ; i ++ ) { \n final View child = getChildAt ( i ) ; \n final LayoutParams lp = ( LayoutParams ) child . getLayoutParams ( ) ; \n final int childHeight = ViewCompat . isLaidOut ( child )", "msg_token": "Fix non enterAlways scrolling"} {"diff": " public class DeploymentManagerImpl implements DeploymentManager { \n } \n \n SecurityConstraint newConstraint = new SecurityConstraint ( ) \n + . setEmptyRoleSemantic ( securityInfo . getEmptyRoleSemantic ( ) ) \n . addRolesAllowed ( securityInfo . getRolesAllowed ( ) ) \n . setTransportGuaranteeType ( securityInfo . getTransportGuaranteeType ( ) ) \n . addWebResourceCollection ( new WebResourceCollection ( ) . addUrlPatterns ( mappings )", "msg_token": "Set empty roles semantic properly"} {"diff": " public class FormattedLog extends AbstractLog \n COMMENT \n public static class Builder \n { \n - private TimeZone timezone = TimeZone . getDefault ( ) ; \n + private TimeZone timezone = UTC ; \n private Object lock = this ; \n private String category = null ; \n private Level level = Level . INFO ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class FormattedLogProvider extends AbstractLogProvider < FormattedLog > \n public static class Builder \n { \n private boolean renderContext = true ; \n - private TimeZone timezone = TimeZone . getDefault ( ) ; \n + private TimeZone timezone = UTC ; \n private Map < String , Level > levels = new HashMap < > ( ) ; \n private Level defaultLevel = Level . INFO ; \n private boolean autoFlush = true ;", "msg_token": "All logs should use UTC timezone"} {"diff": " public class HttpTransportMiddleware extends SimpleMiddleware { \n } \n else { \n String [ ] parts = statusLine . split ( STRING0 , NUMBER0 ) ; \n - if ( parts . length != NUMBER0 ) \n + if ( parts . length < NUMBER1 ) \n throw new Exception ( new IOException ( STRING1 ) ) ; \n \n data . response . headers ( mRawHeaders ) ; \n String protocol = parts [ NUMBER2 ] ; \n data . response . protocol ( protocol ) ; \n data . response . code ( Integer . parseInt ( parts [ NUMBER3 ] ) ) ; \n - data . response . message ( parts [ NUMBER1 ] ) ; \n + data . response . message ( parts . length == NUMBER0 ? parts [ NUMBER1 ] : STRING2 ) ; \n data . receiveHeadersCallback . onCompleted ( null ) ; \n \n SINGLE", "msg_token": "tolerate no response message"} {"diff": " public class ActivityMain extends ActivityBase implements OnItemSelectedListener \n \n SINGLE \n if ( mProgressDialog . isShowing ( ) ) \n - mProgressDialog . dismiss ( ) ; \n + try { \n + mProgressDialog . dismiss ( ) ; \n + } catch ( IllegalArgumentException ignored ) { \n + } \n \n SINGLE \n ActivityMain . this . selectRestriction ( spRestriction . getSelectedItemPosition ( ) ) ; \n public class ActivityShare extends ActivityBase { \n \n SINGLE \n if ( mProgressDialog . isShowing ( ) ) \n - mProgressDialog . dismiss ( ) ; \n + try { \n + mProgressDialog . dismiss ( ) ; \n + } catch ( IllegalArgumentException ignored ) { \n + } \n \n SINGLE \n if ( ! mInteractive && mActionId == R . string . menu_export ) {", "msg_token": "Suppress illegal argument exception support info"} {"diff": " public class RemoteViews implements Parcelable , Filter { \n ViewGroup . LayoutParams layoutParams = target . getLayoutParams ( ) ; \n if ( layoutParams instanceof ViewGroup . MarginLayoutParams ) { \n ( ( ViewGroup . MarginLayoutParams ) layoutParams ) . setMarginEnd ( end ) ; \n + target . setLayoutParams ( layoutParams ) ; \n } \n }", "msg_token": "Fixed a bug where the margins where not updated correctly"} {"diff": " public class FixedCertificates { \n public static SSLContext serverContext ( ) { \n try { \n SINGLE \n - InputStream stream = ClassLoader . getSystemResourceAsStream ( SERVER_STORE ) ; \n - \n + InputStream stream = FixedCertificates . class . getResourceAsStream ( STRING0 + SERVER_STORE ) ; \n + assert stream != null ; \n return Utilities . newSSLContext ( stream , SERVER_PASSWORD , STRING1 , STRING2 ) ; \n } catch ( Exception e ) { \n throw new RuntimeException ( e ) ; \n public class FixedCertificates { \n \n public static SSLContext clientContext ( ) { \n try { \n - InputStream stream = ClassLoader . getSystemResourceAsStream ( CLIENT_STORE ) ; \n + InputStream stream = FixedCertificates . class . getResourceAsStream ( STRING0 + CLIENT_STORE ) ; \n + assert stream != null ; \n SSLContext context = Utilities . newSSLContext ( stream , CLIENT_PASSWORD , STRING1 , STRING2 ) ; \n context . init ( null , new TrustManager [ ] { new X509TrustManagerTrustAll ( ) } , new SecureRandom ( ) ) ; \n return context ;", "msg_token": "Classloading change for FixedCertificates"} {"diff": " public class RemoteBlockInStream extends BlockInStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - SINGLE \n public static RemoteBlockInStream getDummyStream ( ) { \n return new RemoteBlockInStream ( new TachyonFile ( null , - NUMBER0 , null ) , \n ReadType . NO_CACHE , - NUMBER0 , null , null , true ) ;", "msg_token": "Move comment into javadoc for format consistency"} {"diff": " class ActivityStarter { \n SINGLE \n SINGLE \n resumeTargetStackIfNeeded ( ) ; \n - mSupervisor . showNonResizeableDockToastIfNeeded ( mStartActivity . task , \n - preferredLaunchStackId , mTargetStack . mStackId ) ; \n return START_TASK_TO_FRONT ; \n } \n } \n class ActivityStarter { \n top . deliverNewIntentLocked ( \n mCallingUid , mStartActivity . intent , mStartActivity . launchedFromPackage ) ; \n mSupervisor . showNonResizeableDockToastIfNeeded ( mStartActivity . task , \n - preferredLaunchStackId , mTargetStack . mStackId ) ; \n + preferredLaunchStackId , topStack . mStackId ) ; \n return START_DELIVERED_TO_TOP ; \n }", "msg_token": "Fix null pointer exception"} {"diff": " public class EdgeAddresses \n { \n return boltAddress ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return String . format ( STRING0 , boltAddress ) ; \n + } \n }", "msg_token": "Print edge addresses for easier debugging"} {"diff": " \n package NAMESPACE ; \n \n public class FirstIsLargerThanSecondDoubleComparator { \n - public static bool FirstIsLargerThanSecond ( double dbFirstDoubleToCompare , double dbSecondDoubleToCompare ) { \n + public static boolean FirstIsLargerThanSecond ( double dbFirstDoubleToCompare , double dbSecondDoubleToCompare ) { \n if ( dbFirstDoubleToCompare > dbSecondDoubleToCompare ) { \n return true ; \n } else { \n \n package NAMESPACE ; \n \n public class FirstIsSmallerThanSecondDoubleComparator { \n - public static bool FirstIsSmallerThanSecond ( double dbFirstDoubleToCompare , double dbSecondDoubleToCompare ) { \n + public static boolean FirstIsSmallerThanSecond ( double dbFirstDoubleToCompare , double dbSecondDoubleToCompare ) { \n if ( dbFirstDoubleToCompare < dbSecondDoubleToCompare ) { \n return true ; \n } else {", "msg_token": "Previous change broke compilation"} {"diff": " public class Base { \n sketchbookFolder . mkdirs ( ) ; \n } \n } \n + \n + getSketchbookLibrariesFolder ( ) . mkdir ( ) ; \n + getSketchbookToolsFolder ( ) . mkdir ( ) ; \n + getSketchbookModesFolder ( ) . mkdir ( ) ; \n SINGLE \n }", "msg_token": "Create libraries modes and tools folders in the sketchbook if they don t already exist when determining the sketchbook location"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CxfWSDLImporter implements XMLImporter { \n \n String fieldName = entry . getKey ( ) ; \n if ( fieldName . startsWith ( STRING0 ) ) { \n - if ( reservedKeywords . contains ( fieldName . substring ( NUMBER0 ) ) ) \n + if ( ! JJavaName . isJavaIdentifier ( fieldName . substring ( NUMBER0 ) ) ) \n fieldName = fieldName . substring ( NUMBER0 ) ; SINGLE \n }", "msg_token": "reverted the keyword test"} {"diff": " public class Message extends AbstractEntity { \n this . getCounterpart ( ) . equals ( message . getCounterpart ( ) ) && \n this . edited ( ) == message . edited ( ) && \n ( message . getTimeSent ( ) - this . getTimeSent ( ) ) <= ( Config . MESSAGE_MERGE_WINDOW * NUMBER0 ) && \n + this . getBody ( ) . length ( ) + message . getBody ( ) . length ( ) <= Config . MAX_DISPLAY_MESSAGE_CHARS && \n ! GeoHelper . isGeoUri ( message . getBody ( ) ) && \n ! GeoHelper . isGeoUri ( this . body ) && \n message . treatAsDownloadable ( ) == Decision . NEVER &&", "msg_token": "don t merge messages over the char limit"} {"diff": " public class EmbeddedDrawerActivity extends AppCompatActivity { \n if ( drawerItem instanceof Nameable ) { \n Toast . makeText ( EmbeddedDrawerActivity . this , ( ( Nameable ) drawerItem ) . getName ( ) . getText ( EmbeddedDrawerActivity . this ) , Toast . LENGTH_SHORT ) . show ( ) ; \n } \n - \n - return true ; \n + return false ; \n } \n } ) \n . withSavedInstance ( savedInstanceState )", "msg_token": "don t consume the event"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class ReflectionUtil { \n + public final class ReflectionUtil { \n + private ReflectionUtil ( ) { } \n + \n public static Class < ? > [ ] getTypes ( Object . . . vals ) { \n Class < ? > [ ] types = new Class [ vals . length ] ; \n for ( int i = NUMBER0 ; i < vals . length ; i ++ )", "msg_token": "Moved ReflectionUtil actors common reflection"} {"diff": " public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n } \n userState . mSoftKeyboardShowMode = NUMBER0 ; \n userState . mServiceChangingSoftKeyboardMode = null ; \n + notifySoftKeyboardShowModeChangedLocked ( userState . mSoftKeyboardShowMode ) ; \n } \n - \n - notifySoftKeyboardShowModeChangedLocked ( userState . mSoftKeyboardShowMode ) ; \n } \n } \n \n public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n } \n } else if ( mAccessibilitySoftKeyboardModeUri . equals ( uri ) ) { \n if ( readSoftKeyboardShowModeChangedLocked ( userState ) ) { \n + notifySoftKeyboardShowModeChangedLocked ( userState . mSoftKeyboardShowMode ) ; \n onUserStateChangedLocked ( userState ) ; \n } \n }", "msg_token": "Fix issue where accessibility keyboard mode callbacks were not always called"} {"diff": " public class FieldNode extends MetadataNode implements Constants { \n public boolean isStatic ( ) { \n return ( modifiers & Constants . ACC_STATIC ) != NUMBER0 ; \n } \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setOwner ( String owner ) { \n + this . owner = owner ; \n + } \n }", "msg_token": "added a public method to set the owner of the field"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix package name of DebugComponentOwnershipModule"} {"diff": " public class SoundLevelIndicatorEffect \n public static int calculateCurrentSignalPower ( \n byte [ ] buff , int offset , int len , double levelRatio ) \n { \n - System . out . println ( STRING0 + System . currentTimeMillis ( ) ) ; \n if ( len == NUMBER0 ) \n return NUMBER0 ;", "msg_token": "Removes debug printing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VolleyDraweeControllerBuilder extends AbstractDraweeControllerBuild \n } \n \n @ override \n + public VolleyDraweeControllerBuilder setUri ( String uriString ) { \n + Preconditions . checkNotNull ( uriString ) ; \n + return setImageRequest ( Uri . parse ( uriString ) ) ; \n + } \n + \n + @ override \n protected VolleyDraweeControllerBuilder getThis ( ) { \n return this ; \n }", "msg_token": "fix the broken comparison app due to change in SimpleControllerBuilder"} {"diff": " public class MoveKotlinNestedClassesToUpperLevelDialog extends MoveDialogBase { \n final FqName targetPackageFqName = getTargetPackageFqName ( ) ; \n if ( targetPackageFqName == null ) return ; \n \n + String innerClassName = innerClass . getName ( ) ; \n + if ( innerClassName == null ) return ; \n final String targetFileName = KotlinNameSuggester . INSTANCE . suggestNameByName ( \n - innerClass . getName ( ) + STRING0 + KotlinFileType . EXTENSION , \n + innerClassName , \n new Function1 < String , Boolean > ( ) { \n @ override \n public Boolean invoke ( String s ) { \n - return targetDir . findFile ( s ) == null ; \n + return targetDir . findFile ( s + STRING0 + KotlinFileType . EXTENSION ) == null ; \n } \n } \n - ) ; \n + ) + STRING0 + KotlinFileType . EXTENSION ; \n moveTarget = new KotlinMoveTargetForDeferredFile ( \n targetPackageFqName , \n targetDir ,", "msg_token": "Fix file name validation"} {"diff": " public class EpisodesActivity extends BaseActivity implements OnSharedPreference \n ? MenuDrawer . TOUCH_MODE_FULLSCREEN \n : MenuDrawer . TOUCH_MODE_BEZEL ) ; \n } else { \n - SINGLE \n + SINGLE \n SINGLE \n for ( Fragment fragment : getActiveFragments ( ) ) { \n if ( fragment . getTag ( ) == null ) {", "msg_token": "Remove fixme is already fixed fine"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class PluginManagerMain implements Disposable { \n } \n \n public void filter ( ) { \n + getPluginTable ( ) . putClientProperty ( SpeedSearchSupply . SEARCH_QUERY_KEY , getFilter ( ) ) ; \n pluginsModel . filter ( getFilter ( ) . toLowerCase ( ) ) ; \n TableUtil . ensureSelectionExists ( getPluginTable ( ) ) ; \n }", "msg_token": "save search query as a client property"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public interface ConflictHandler { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n PotentialConflict registerModule ( CandidateModule newModule ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n boolean hasConflicts ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n void resolveNextConflict ( Action < ConflictResolutionResult > resolutionAction ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n void registerResolver ( ModuleConflictResolver conflictResolver ) ; \n }", "msg_token": "Documented public interfaces exposed in this package"} {"diff": " public interface AgentBuilder { \n interface Matchable < T extends Matchable < T > > { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface AgentBuilder { \n T and ( ElementMatcher < ? super TypeDescription > typeMatcher ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface AgentBuilder { \n T and ( ElementMatcher < ? super TypeDescription > typeMatcher , ElementMatcher < ? super ClassLoader > classLoaderMatcher ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Further clarified javadoc"} {"diff": " public abstract class LSMSolver extends Iced { \n public double _rho = FLOAT0 ; \n public double [ ] _wgiven ; \n public double _proximalPenalty ; \n - \n + private static final double GLM1_RHO = FLOAT1 ; \n \n public boolean normalize ( ) { return _lambda != NUMBER0 ; } \n \n public ADMMSolver ( double lambda , double alpha ) { \n - this ( lambda , alpha , lambda * alpha * FLOAT2 ) ; \n + this ( lambda , \n + alpha , \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + GLM1_RHO \n + ) ; \n } \n public ADMMSolver ( double lambda , double alpha , double rho ) { \n super ( lambda , alpha ) ;", "msg_token": "Added GLM1_RHO as the default temporarily"} {"diff": " public class IndexingService extends LifecycleAdapter \n } \n else \n { \n - logger . debug ( STRING0 + state + STRING1 + updates . changedNodeIds ( ) ) ; \n if ( state == State . NOT_STARTED ) \n { \n recoveredNodeIds . addAll ( updates . changedNodeIds ( ) ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n \n public class SslSocketConnectorFactory extends HttpConnectorFactory \n { \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n package NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Removes an unnecessary debug log statement"} {"diff": " public class CommandLineParameters { \n description = STRING0 ) \n boolean skipVisibility ; \n \n - @ parameter ( names = { STRING1 } , \n - description = STRING2 ) \n - boolean graphStatistics ; \n - \n COMMENT \n \n @ parameter ( names = { STRING3 , STRING4 } , \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OTPConfigurator { \n GraphBuilder elevationBuilder = new ElevationGraphBuilderImpl ( gcf ) ; \n graphBuilder . addGraphBuilder ( elevationBuilder ) ; \n } \n - if ( params . graphStatistics ) { \n - graphBuilder . addGraphBuilder ( new GraphStatisticsGraphBuilderImpl ( ) ) ; \n - } \n graphBuilder . serializeGraph = ( ! params . inMemory ) || params . preFlight ; \n return graphBuilder ; \n }", "msg_token": "Remove graphStatistics option not really useful"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class InlineMethodDialog extends RefactoringDialog implements InlineOptio \n settings . INLINE_METHOD_THIS = isInlineThisOnly ( ) ; \n } \n } \n + \n + protected void doHelpAction ( ) { \n + HelpManager . getInstance ( ) . invokeHelp ( HelpID . INLINE_METHOD ) ; \n + } \n }", "msg_token": "Corrected Help button work"} {"diff": " public class DefaultFileHashCache implements FileHashCache { \n public HashCode get ( Path path ) { \n HashCode sha1 ; \n try { \n - sha1 = loadingCache . get ( path ) ; \n + sha1 = loadingCache . get ( path . normalize ( ) ) ; \n } catch ( ExecutionException e ) { \n throw new RuntimeException ( e ) ; \n } \n public class DefaultFileHashCache implements FileHashCache { \n if ( projectFilesystem . isPathChangeEvent ( event ) ) { \n SINGLE \n Path path = ( Path ) event . context ( ) ; \n - loadingCache . invalidate ( path ) ; \n + loadingCache . invalidate ( path . normalize ( ) ) ; \n } else { \n SINGLE \n loadingCache . invalidateAll ( ) ;", "msg_token": "Normalize All The Path Cache Keys"} {"diff": " public interface ProjectsServerOperations extends PrefsServerOperations , \n \n void getProjectUser ( String sessionId , \n ServerRequestCallback < ProjectUser > callback ) ; \n + \n + void setFollowingUser ( String sessionId , \n + ServerRequestCallback < Void > callback ) ; \n } \n public class RemoteServer implements Server \n sendRequest ( RPC_SCOPE , STRING0 , params , callback ) ; \n } \n \n + @ override \n + public void setFollowingUser ( String sessionId , \n + ServerRequestCallback < Void > callback ) \n + { \n + JSONArray params = new JSONArray ( ) ; \n + params . set ( NUMBER0 , new JSONString ( sessionId ) ) ; \n + sendRequest ( RPC_SCOPE , STRING1 , params , callback ) ; \n + } \n + \n private String clientId_ ; \n private double clientVersion_ = NUMBER0 ; \n private boolean listeningForEvents_ ;", "msg_token": "add RPC for notifying server of following user"} {"diff": " public class SelectStatement implements CQLStatement , MeasurableForPreparedCache \n SINGLE \n SINGLE \n SINGLE \n - boolean hasTuple = false ; \n - boolean hasRestrictedNotTuple = false ; \n if ( ! ( previousIsSlice && restriction . isSlice ( ) && ( ( Restriction . Slice ) restriction ) . isPartOfTuple ( ) ) ) \n { \n if ( hasQueriableIndex )", "msg_token": "remove dead local vars"} {"diff": " public class RollingCountBolt extends BaseRichBolt { \n @ override \n public void execute ( Tuple tuple ) { \n if ( TupleHelpers . isTickTuple ( tuple ) ) { \n - LOG . info ( STRING0 ) ; \n + LOG . debug ( STRING0 ) ; \n emitCurrentWindowCounts ( ) ; \n } \n else {", "msg_token": "use log level DEBUG to tell that a tick tuple was received"} {"diff": " public final class MultiFormatReader implements Reader { \n if ( readers . isEmpty ( ) ) { \n readers . addElement ( new MultiFormatOneDReader ( ) ) ; \n readers . addElement ( new QRCodeReader ( ) ) ; \n - readers . addElement ( new DataMatrixReader ( ) ) ; \n + SINGLE \n + SINGLE \n } \n \n for ( int i = NUMBER0 ; i < readers . size ( ) ; i ++ ) { \n import NAMESPACE ; \n public final class DataMatrixBlackBox1TestCase extends AbstractBlackBoxTestCase { \n \n public DataMatrixBlackBox1TestCase ( ) { \n + SINGLE \n super ( new File ( STRING0 ) , new DataMatrixReader ( ) , FLOAT0 , BarcodeFormat . DATAMATRIX ) ; \n }", "msg_token": "Temporarily turning off Data Matrix in MultiFormatReader until it s done"} {"diff": " public class ChunkOutputWidget extends Composite \n presenter_ instanceof ChunkOutputStream && \n ( type == RmdChunkOutputUnit . TYPE_HTML || \n type == RmdChunkOutputUnit . TYPE_PLOT || \n - type == RmdChunkOutputUnit . TYPE_DATA ) ) \n + type == RmdChunkOutputUnit . TYPE_DATA || \n + chunkOutputSize_ == ChunkOutputSize . Full ) ) \n { \n SINGLE \n SINGLE", "msg_token": "allow console output to be constructed into a gallery for satellite chunks"} {"diff": " public class MessagingController implements Runnable \n COMMENT \n private boolean notifyAccount ( Context context , Account account , Message message , int previousUnreadMessageCount , AtomicInteger newMessageCount ) \n { \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( account . getName ( ) == null ) { \n + return false ; \n + } \n + \n SINGLE \n StringBuilder messageNotice = new StringBuilder ( ) ; \n final KeyguardManager keyguardService = ( KeyguardManager ) context . getSystemService ( Context . KEYGUARD_SERVICE ) ;", "msg_token": "Never show an undismissable new email notification for a null account like used to happen during setup"} {"diff": " public class IgnitedLastKnownLocationAsyncTask extends AsyncTask < Void , Void , Loc \n Bundle extras = lastKnownLocation . getExtras ( ) ; \n if ( extras == null ) { \n extras = new Bundle ( ) ; \n + lastKnownLocation . setExtras ( extras ) ; \n } \n extras . putBoolean ( IgnitedLocationConstants . IGNITED_LAST_LOCATION_EXTRA , true ) ; \n } \n public abstract class IgnitedAbstractLastLocationFinder implements ILastLocation \n Bundle extras = bestResult . getExtras ( ) ; \n if ( extras == null ) { \n extras = new Bundle ( ) ; \n + bestResult . setExtras ( extras ) ; \n } \n extras . putBoolean ( LAST_LOCATION_TOO_OLD_OR_INACCURATE_EXTRA , true ) ; \n }", "msg_token": "Set Location extra after instantiating if null"} {"diff": " import NAMESPACE ; \n public class SpanNearQueryParser implements QueryParser < SpanNearQueryBuilder > { \n \n public static final ParseField SLOP_FIELD = new ParseField ( STRING0 ) ; \n - public static final ParseField COLLECT_PAYLOADS_FIELD = new ParseField ( STRING1 ) ; \n + public static final ParseField COLLECT_PAYLOADS_FIELD = new ParseField ( STRING1 ) . withAllDeprecated ( STRING2 ) ; \n public static final ParseField CLAUSES_FIELD = new ParseField ( STRING3 ) ; \n public static final ParseField IN_ORDER_FIELD = new ParseField ( STRING4 ) ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpanNearQueryBuilderTests extends AbstractQueryTestCase < SpanNearQue \n STRING5 + \n STRING6 ; \n \n - parseQuery ( json ) ; SINGLE \n + parseQuery ( json , ParseFieldMatcher . EMPTY ) ; SINGLE \n } \n }", "msg_token": "Properly deprecate the field"} {"diff": " public abstract class ForwardingListener implements View . OnTouchListener { \n return forwarding || wasForwarding ; \n } \n \n + public void onDetachedFromWindow ( ) { \n + clearCallbacks ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract class ForwardingListener implements View . OnTouchListener { \n @ override \n public void run ( ) { \n final ViewParent parent = mSrc . getParent ( ) ; \n - parent . requestDisallowInterceptTouchEvent ( true ) ; \n + if ( parent != null ) { \n + parent . requestDisallowInterceptTouchEvent ( true ) ; \n + } \n } \n }", "msg_token": "Fix NPE in ForwardingListener"} {"diff": " class RemoveUnusedClassProperties \n @ override \n public void visit ( NodeTraversal t , Node n , Node parent ) { \n switch ( n . getType ( ) ) { \n - case Token . GETPROP : \n - if ( inExterns || isPinningPropertyUse ( n ) ) { \n - used . add ( n . getLastChild ( ) . getString ( ) ) ; \n + case Token . GETPROP : { \n + String propName = n . getLastChild ( ) . getString ( ) ; \n + if ( inExterns || isPinningPropertyUse ( n ) || \n + compiler . getCodingConvention ( ) . isExported ( propName ) ) { \n + used . add ( propName ) ; \n } else { \n SINGLE \n SINGLE \n class RemoveUnusedClassProperties \n } \n } \n break ; \n + } \n \n case Token . CALL : \n SINGLE", "msg_token": "Don t remove exported class properties"} {"diff": " public class ScriptStatusServer implements Runnable { \n server . setConnectors ( new Connector [ ] { connector } ) ; \n \n SINGLE \n - URL workflowResourcesUrl = checkNotNull ( \n + URL resourcesUrl = checkNotNull ( \n APIHandler . class . getClassLoader ( ) . getResource ( STRING0 ) , STRING1 ) ; \n - ResourceHandler workflowResourceHandler = new ResourceHandler ( ) ; \n - workflowResourceHandler . setWelcomeFiles ( new String [ ] { STRING2 } ) ; \n - workflowResourceHandler . setResourceBase ( workflowResourcesUrl . toExternalForm ( ) ) ; \n + ResourceHandler resourceHandler = new ResourceHandler ( ) ; \n + resourceHandler . setWelcomeFiles ( new String [ ] { STRING2 } ) ; \n + resourceHandler . setResourceBase ( resourcesUrl . toExternalForm ( ) ) ; \n HandlerList handler = new HandlerList ( ) ; \n handler . setHandlers ( new Handler [ ] { \n - workflowResourceHandler , \n + resourceHandler , \n new APIHandler ( workflowIndexReadService , statsReadService ) , \n new DefaultHandler ( ) \n } ) ;", "msg_token": "Simplifies var names"} {"diff": " public class TemplateQueryBuilder extends AbstractQueryBuilder < TemplateQueryBuil \n private final Script template ; \n \n public TemplateQueryBuilder ( String template , ScriptService . ScriptType scriptType , Map < String , Object > params ) { \n - this . template = new Script ( template , scriptType , STRING0 , params ) ; \n + this ( new Script ( template , scriptType , STRING0 , params ) ) ; \n } \n \n public TemplateQueryBuilder ( String template , ScriptService . ScriptType scriptType , Map < String , Object > params , XContentType ct ) { \n - this . template = new Script ( template , scriptType , STRING0 , params , ct ) ; \n + this ( new Script ( template , scriptType , STRING0 , params , ct ) ) ; \n } \n \n - SINGLE \n TemplateQueryBuilder ( Script template ) { \n DEPRECATION_LOGGER . deprecated ( STRING1 , NAME ) ; \n if ( template == null ) {", "msg_token": "removed useless comment and make sure all public constructors delegate to the package protected constructor"} {"diff": " public class ImmutableAnalysis { \n } \n String nameStr = type . tsym . flatName ( ) . toString ( ) ; \n if ( WellKnownMutability . KNOWN_UNSAFE . contains ( nameStr ) ) { \n - return Violation . of ( \n - String . format ( STRING0 , type . tsym . getSimpleName ( ) ) ) ; \n + return Violation . of ( String . format ( STRING1 , type . tsym . getSimpleName ( ) ) ) ; \n } \n if ( WellKnownMutability . isProto2MessageClass ( state , type ) ) { \n if ( WellKnownMutability . isProto2MutableMessageClass ( state , type ) ) { \n public class ImmutableCheckerTest { \n STRING2 , \n STRING3 , \n STRING4 , \n - STRING5 , \n + STRING6 , \n STRING7 , \n STRING8 ) \n . addSourceLines (", "msg_token": "Tweak immutable diagnostics"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class HttpRequestResponseHolder { \n - HttpServletRequest request ; \n - HttpServletResponse response ; \n + public final class HttpRequestResponseHolder { \n + private HttpServletRequest request ; \n + private HttpServletResponse response ; \n \n public HttpRequestResponseHolder ( HttpServletRequest request , HttpServletResponse response ) { \n this . request = request ; \n this . response = response ; \n } \n \n - HttpServletRequest getRequest ( ) { \n + public HttpServletRequest getRequest ( ) { \n return request ; \n } \n \n - void setRequest ( HttpServletRequest request ) { \n + public void setRequest ( HttpServletRequest request ) { \n this . request = request ; \n } \n \n - HttpServletResponse getResponse ( ) { \n + public HttpServletResponse getResponse ( ) { \n return response ; \n } \n \n - void setResponse ( HttpServletResponse response ) { \n + public void setResponse ( HttpServletResponse response ) { \n this . response = response ; \n } \n }", "msg_token": "Make getters and setters public on HttpRequestResponseHolder"} {"diff": " public enum RuleFieldValidator { \n addError ( errors , member , STRING0 ) ; \n } \n if ( ! fStaticMembers && member . isStatic ( ) ) { \n - addError ( errors , member , STRING1 ) ; \n + addError ( errors , member , STRING2 ) ; \n } \n } \n \n public class RuleFieldValidatorTest { \n public void rejectStaticTestRule ( ) { \n TestClass target = new TestClass ( TestWithStaticTestRule . class ) ; \n RULE_VALIDATOR . validate ( target , errors ) ; \n - assertOneErrorWithMessage ( STRING3 ) ; \n + assertOneErrorWithMessage ( STRING4 ) ; \n } \n \n public static class TestWithStaticTestRule { \n public class RuleFieldValidatorTest { \n public void rejectMethodStaticTestRule ( ) { \n TestClass target = new TestClass ( TestMethodWithStaticTestRule . class ) ; \n RULE_METHOD_VALIDATOR . validate ( target , errors ) ; \n - assertOneErrorWithMessage ( STRING5 ) ; \n + assertOneErrorWithMessage ( STRING6 ) ; \n } \n \n public static class TestMethodWithStaticTestRule {", "msg_token": "Added new error message relative to static Rule and ClassRule"} {"diff": " public class RemoteConnectionCredentialsWrapper { \n \n @ override \n public void vagrant ( @ notnull VagrantBasedCredentialsHolder cred ) { \n - result . set ( VAGRANT_PREFIX + cred . getVagrantFolder ( ) ) ; \n + result . set ( VAGRANT_PREFIX + cred . getVagrantFolder ( ) \n + + ( StringUtil . isNotEmpty ( cred . getMachineName ( ) ) ? \n + STRING0 + cred . getMachineName ( ) : STRING1 ) ) ; \n } \n \n @ override", "msg_token": "Differentiate ids for remote interpreters based on vagrant with multiple vms configuration"} {"diff": " public class InplaceIntroduceParameterPopup extends AbstractJavaInplaceIntroduce \n buf . append ( STRING0 ) ; \n } \n int startOffset = buf . length ( ) ; \n + if ( myMustBeFinal || myPanel . isGenerateFinal ( ) ) { \n + buf . append ( STRING1 ) ; \n + } \n buf . append ( parameter . getType ( ) . getPresentableText ( ) ) . append ( STRING2 ) . append ( variable == parameter ? value : parameter . getName ( ) ) ; \n int endOffset = buf . length ( ) ; \n if ( variable == parameter ) {", "msg_token": "include final in introduce parameter preview"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n public class StandardMessengerTest { \n public StandardMessenger getMessenger ( ) {", "msg_token": "Fix unambiguous import"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class PyUtil { \n - \n - public static final String PY_EXTENSION = STRING0 ; \n - \n private PyUtil ( ) { \n } \n \n public class PyUtil { \n } \n \n public static void deletePycFiles ( String pyFilePath ) { \n - if ( pyFilePath . endsWith ( PY_EXTENSION ) ) { \n + if ( pyFilePath . endsWith ( PyNames . DOT_PY ) ) { \n List < File > filesToDelete = new ArrayList < File > ( ) ; \n File pyc = new File ( pyFilePath + STRING1 ) ; \n if ( pyc . exists ( ) ) {", "msg_token": "Reused PyNames DOT_PY"} {"diff": " public class AnalysisTest { \n className . substring ( NUMBER0 , className . length ( ) - NUMBER0 ) ) ; \n String smaliContents = readResource ( smaliPath ) ; \n \n - Assert . assertEquals ( TextUtils . normalizeNewlines ( smaliContents ) , \n - TextUtils . normalizeNewlines ( stringWriter . toString ( ) ) ) ; \n + Assert . assertEquals ( TextUtils . normalizeWhitespace ( smaliContents ) , \n + TextUtils . normalizeWhitespace ( ( stringWriter . toString ( ) ) ) ) ; \n } \n }", "msg_token": "Improve whitespace normalization in baksmali s AnalysisTest"} {"diff": " public class IdeaApplication { \n final Method getWMName = netProtocol . getClass ( ) . getDeclaredMethod ( STRING0 ) ; \n getWMName . setAccessible ( true ) ; \n final String wmName = ( String ) getWMName . invoke ( netProtocol ) ; \n - if ( wmName == null ) return ; \n LOG . info ( STRING1 + wmName ) ; \n + if ( wmName == null ) return ; \n \n if ( STRING2 . equals ( wmName ) ) { \n try {", "msg_token": "Log detected WM anyway"} {"diff": " public class GtasksListService { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ suppresswarnings ( STRING0 ) \n public synchronized void updateLists ( TaskLists remoteLists ) { \n readLists ( ) ; \n public final class GtasksSyncService { \n if ( ! checkValuesForProperties ( setValues , TASK_PROPERTIES ) ) SINGLE \n return ; \n \n - operationQueue . offer ( new TaskPushOp ( ( Task ) model . clone ( ) ) ) ; \n + Task toPush = taskDao . fetch ( model . getId ( ) , TASK_PROPERTIES ) ; \n + operationQueue . offer ( new TaskPushOp ( toPush ) ) ; \n } \n } ) ; \n }", "msg_token": "Gtasks sync on save should push a re fetched model"} {"diff": " public final class Constants { \n public static final byte LC_OFFSET = A - a ; \n \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final int DEFAULT_HTTP_HEADER_BUFFER_SIZE = NUMBER0 * NUMBER1 ; \n - \n - \n COMMENT \n public static final String CONNECTION = STRING0 ; \n public static final String CLOSE = STRING1 ; \n public class TestGzipOutputFilter extends TestCase { \n public void testFlushingWithGzip ( ) throws Exception { \n SINGLE \n Response res = new Response ( ) ; \n - InternalOutputBuffer iob = new InternalOutputBuffer ( res , \n - Constants . DEFAULT_HTTP_HEADER_BUFFER_SIZE ) ; \n + InternalOutputBuffer iob = new InternalOutputBuffer ( res , NUMBER2 * NUMBER1 ) ; \n ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; \n iob . setOutputStream ( bos ) ; \n res . setOutputBuffer ( iob ) ;", "msg_token": "Remove constant only used by tests"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class ReplicatedMapClearOperation \n extends AbstractOperation \n implements IdentifiedDataSerializable {", "msg_token": "Added missing javadoc comment"} {"diff": " public class TableTripPattern implements TripPattern , Serializable { \n return Arrays . asList ( stops ) ; \n } \n \n + COMMENT \n SINGLE \n public boolean getWheelchairAccessible ( int stopIndex , int trip ) { \n SINGLE \n public class TableTripPattern implements TripPattern , Serializable { \n SINGLE \n return true ; \n } \n - \n + COMMENT \n + \n COMMENT \n public Trip getTrip ( int tripIndex ) { \n return trips . get ( tripIndex ) ;", "msg_token": "comment out apparently unused code"} {"diff": " public class PipePowerWood extends Pipe implements IPowerReceptor { \n \n @ override \n public void setPowerProvider ( IPowerProvider provider ) { \n - provider = powerProvider ; \n + powerProvider = provider ; \n } \n \n @ override", "msg_token": "Fix power provider"} {"diff": " public class Vector { \n Math . max ( v1 . z , v2 . z ) \n ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static Vector getMidpoint ( Vector v1 , Vector v2 ) { \n + return new Vector ( \n + ( v1 . x + v2 . x ) / NUMBER0 , \n + ( v1 . y + v2 . y ) / NUMBER0 , \n + ( v1 . z + v2 . z ) / NUMBER0 \n + ) ; \n + } \n }", "msg_token": "Added Vector getMidpoint"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n abstract public class ShadowContext { \n set , attrs , defStyleAttr , defStyleRes ) ; \n } \n \n - @ implementation \n - public int checkCallingPermission ( String permission ) { \n - return PackageManager . PERMISSION_GRANTED ; \n - } \n - \n public RoboAttributeSet createAttributeSet ( List < Attribute > attributes , Class < ? extends View > viewClass ) { \n RoboAttributeSet attributeSet = new RoboAttributeSet ( attributes , getResourceLoader ( ) , viewClass ) ; \n if ( isStrictI18n ( ) ) {", "msg_token": "Revert Added support for checkCallingPermission to ShadowContext"} {"diff": " public class GridLayoutManager extends LinearLayoutManager { \n if ( state . getItemCount ( ) < NUMBER0 ) { \n return NUMBER1 ; \n } \n - return getSpanGroupIndex ( recycler , state , state . getItemCount ( ) - NUMBER0 ) ; \n + \n + SINGLE \n + return getSpanGroupIndex ( recycler , state , state . getItemCount ( ) - NUMBER0 ) + NUMBER0 ; \n } \n \n @ override \n public class GridLayoutManager extends LinearLayoutManager { \n if ( state . getItemCount ( ) < NUMBER0 ) { \n return NUMBER1 ; \n } \n - return getSpanGroupIndex ( recycler , state , state . getItemCount ( ) - NUMBER0 ) ; \n + \n + SINGLE \n + return getSpanGroupIndex ( recycler , state , state . getItemCount ( ) - NUMBER0 ) + NUMBER0 ; \n } \n \n @ override", "msg_token": "Fix GLM AccessibilityNodeInfo row column count"} {"diff": " public abstract class Language { \n COMMENT \n COMMENT \n @ experimental \n - List < PatternRule > getPatternRules ( ) throws IOException { \n + synchronized List < PatternRule > getPatternRules ( ) throws IOException { \n if ( patternRules == null ) { \n patternRules = new ArrayList < > ( ) ; \n PatternRuleLoader ruleLoader = new PatternRuleLoader ( ) ;", "msg_token": "make getPatternRules synchronized needed due to its lazy init"} {"diff": " public class AddImageTransformMetaDataProducer \n @ override \n protected void onNewResultImpl ( \n CloseableReference < PooledByteBuffer > newResult , boolean isLast ) { \n + mMetaDataBuilder . reset ( ) ; \n + if ( newResult == null ) { \n + getConsumer ( ) . onNewResult ( Pair . create ( newResult , mMetaDataBuilder . build ( ) ) , isLast ) ; \n + return ; \n + } \n + \n final ImageFormat imageFormat = ImageFormatChecker . getImageFormat_WrapIOException ( \n new PooledByteBufferInputStream ( newResult . get ( ) ) ) ; \n - mMetaDataBuilder . reset ( ) ; \n mMetaDataBuilder . setImageFormat ( imageFormat ) ; \n if ( imageFormat == ImageFormat . JPEG && isLast ) { \n mMetaDataBuilder . setRotationAngle ( getRotationAngle ( newResult ) ) ;", "msg_token": "Fix NPE in AddImageTransformMetaDataConsumer"} {"diff": " public class LibraryManager { \n \n String prompt = STRING0 + libFile . getName ( ) + STRING1 ; \n \n - int result = JOptionPane . showConfirmDialog ( this . editor , prompt , STRING2 , \n + int result = JOptionPane . showConfirmDialog ( this . editor , prompt , STRING3 , \n JOptionPane . YES_NO_OPTION , \n JOptionPane . QUESTION_MESSAGE ) ;", "msg_token": "Corrected mistitled dialog"} {"diff": " public class PacketCollector { \n \n private static final Logger LOGGER = Logger . getLogger ( PacketCollector . class . getName ( ) ) ; \n \n - private PacketFilter packetFilter ; \n - private ArrayBlockingQueue < Packet > resultQueue ; \n - private XMPPConnection connection ; \n + private final PacketFilter packetFilter ; \n + private final ArrayBlockingQueue < Packet > resultQueue ; \n + private final XMPPConnection connection ; \n + \n private boolean cancelled = false ; \n \n COMMENT", "msg_token": "Make PacketCollector fields final where possible"} {"diff": " public abstract class AbstractDynamicMethods implements DynamicMethods { \n \n private static final Log LOG = LogFactory . getLog ( AbstractDynamicMethods . class ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public AbstractDynamicMethods ( Class theClass ) \n throws IntrospectionException { \n this ( theClass , true ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public AbstractDynamicMethods ( Class theClass , boolean inRegistry ) \n throws IntrospectionException { \n super ( ) ; \n public abstract class AbstractDynamicMethods implements DynamicMethods { \n this . staticMethodInvocations = new ArrayList ( ) ; \n this . dynamicProperties = new HashMap ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public AbstractDynamicMethods ( ) { \n + this . dynamicMethodInvocations = new ArrayList ( ) ; \n + this . staticMethodInvocations = new ArrayList ( ) ; \n + this . dynamicProperties = new HashMap ( ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added no arguments constructor that doesn t register a MetaClass"} {"diff": " public class Change { \n return Type . DELETED ; \n } \n \n - if ( ! Comparing . equal ( myBeforeRevision . getFile ( ) . getPath ( ) , myAfterRevision . getFile ( ) . getPath ( ) ) ) { \n + if ( ! Comparing . equal ( myBeforeRevision . getFile ( ) , myAfterRevision . getFile ( ) ) ) { \n return Type . MOVED ; \n }", "msg_token": "correctly detect moved changes"} {"diff": " public class Main { \n } \n \n if ( isChangeLogRequired ( command ) && changeLogFile == null ) { \n - messages . add ( STRING0 ) ; \n + messages . add ( STRING1 ) ; \n } \n \n if ( isNoArgCommand ( command ) && ! commandParams . isEmpty ( ) ) {", "msg_token": "Fix command line error message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DomImplUtil { \n } \n \n private static boolean isNameSuitable ( final EvaluatedXmlName evaluatedXmlName , final XmlTag tag , final XmlFile file ) { \n - if ( ! tag . isValid ( ) ) { \n - TreeElement parent = ( ( TreeElement ) tag ) . getTreeParent ( ) ; \n - throw new AssertionError ( STRING0 + ( parent == null ? null : parent . getPsi ( ) . isValid ( ) ) ) ; \n - } \n return isNameSuitable ( evaluatedXmlName , tag . getLocalName ( ) , tag . getName ( ) , tag . getNamespace ( ) , file ) ; \n }", "msg_token": "remove obsolete assertion"} {"diff": " class ActivityUtils { \n while ( ! getCurrentActivity ( ) . getClass ( ) . getSimpleName ( ) . equals ( name ) ) \n { \n try { \n - inst . sendKeyDownUpSync ( KeyEvent . KEYCODE_BACK ) ; \n + goBack ( ) ; \n } catch ( SecurityException ignored ) { } \n } \n }", "msg_token": "Modified goBackToActivity to call goBack"} {"diff": " public class FindUsagesManager implements JDOMExternalizable { \n . processRequests ( options . fastTrack , new ReadActionProcessor < PsiReference > ( ) { \n @ override \n public boolean processInReadAction ( final PsiReference ref ) { \n - return usageInfoProcessor . process ( new UsageInfo ( ref ) ) ; \n + return ! ref . getElement ( ) . isValid ( ) || usageInfoProcessor . process ( new UsageInfo ( ref ) ) ; \n } \n } ) ; \n }", "msg_token": "only report valid references"} {"diff": " public abstract class DefaultCluster implements Cluster { \n ClusterDescription curDescription = description ; \n long endTime = System . nanoTime ( ) + TimeUnit . NANOSECONDS . convert ( NUMBER0 , TimeUnit . SECONDS ) ; SINGLE \n while ( curDescription . getType ( ) == ClusterType . Unknown ) { \n + \n + if ( ! curDescription . isConnecting ( ) ) { \n + throw new MongoServerSelectionFailureException ( String . format ( STRING0 ) ) ; \n + } \n + \n final long timeout = endTime - System . nanoTime ( ) ; \n \n LOGGER . log ( Level . FINE , String . format ( STRING1 ,", "msg_token": "Changed DefaultCluster getDescription to fail early if not in connecting state"} {"diff": " public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe \n } \n return true ; \n } else { \n - logger . debug ( STRING0 , r != null ? r . uuid ( ) : STRING1 ) ; \n + logger . trace ( STRING0 , r != null ? r . uuid ( ) : STRING1 ) ; \n return false ; \n } \n } \n public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe \n return cancelledAction ; \n } \n \n - protected void endRequest ( AtmosphereResourceImpl r , boolean cancel ) { \n + public void endRequest ( AtmosphereResourceImpl r , boolean cancel ) { \n if ( completeLifecycle ( r , cancel ) ) { \n config . framework ( ) . notify ( Action . TYPE . CANCELLED , r . getRequest ( false ) , r . getResponse ( false ) ) ; \n }", "msg_token": "Improve Logging make method public"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Do not launch jython with u option"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n COMMENT \n http: SINGLE", "msg_token": "Updating package name"} {"diff": " public class DomainSlaveHandler implements NewStepHandler { \n \n for ( Map . Entry < String , NewProxyController > entry : hostProxies . entrySet ( ) ) { \n String host = entry . getKey ( ) ; \n - ProxyTask task = new ProxyTask ( host , operation , context , entry . getValue ( ) ) ; \n + ProxyTask task = new ProxyTask ( host , operation . clone ( ) , context , entry . getValue ( ) ) ; \n tasks . put ( host , task ) ; \n futures . put ( host , executorService . submit ( task ) ) ; \n } \n public class OperationCoordinatorStepHandler { \n String localHostName = localHostControllerInfo . getLocalHostName ( ) ; \n if ( routing . isLocalCallNeeded ( localHostName ) ) { \n ModelNode localResponse = overallContext . getCoordinatorResult ( ) ; \n - localSlaveHandler . addSteps ( context , slaveOp , localResponse , false ) ; \n + localSlaveHandler . addSteps ( context , slaveOp . clone ( ) , localResponse , false ) ; \n } \n \n if ( localHostControllerInfo . isMasterDomainController ( ) ) {", "msg_token": "Don t pass a protected op into handlers"} {"diff": " public class TestHttp2Section_4_3 extends Http2TestBase { \n \n sendPing ( ) ; \n \n - SINGLE \n - headersPayload . clear ( ) ; \n - buildSimpleRequestPart2 ( frameHeader , headersPayload , NUMBER0 ) ; \n - writeFrame ( frameHeader , headersPayload ) ; \n - \n SINGLE \n parser . readFrame ( true ) ;", "msg_token": "Remove unnecessary write"} {"diff": " public class DependencyManager implements InstallShinyEvent . Handler \n Dependency . cranPackage ( STRING0 , STRING1 ) , \n Dependency . cranPackage ( STRING2 , STRING3 ) , \n Dependency . cranPackage ( STRING4 , STRING5 ) , \n - Dependency . cranPackage ( STRING6 , STRING7 ) , \n + Dependency . embeddedPackage ( STRING6 ) , \n Dependency . embeddedPackage ( STRING8 ) \n } , \n false ,", "msg_token": "use embedded packrat for now"} {"diff": " public class IllegalInstantiationCheck \n return new int [ ] { \n TokenTypes . IMPORT , \n TokenTypes . LITERAL_NEW , \n - TokenTypes . PACKAGE_DEF \n + TokenTypes . PACKAGE_DEF , \n } ; \n } \n \n public class IllegalInstantiationCheck \n return new int [ ] { \n TokenTypes . IMPORT , \n TokenTypes . LITERAL_NEW , \n - TokenTypes . PACKAGE_DEF \n + TokenTypes . PACKAGE_DEF , \n } ; \n }", "msg_token": "Fix the GUMP failures"} {"diff": " public final class ShutdownThread extends Thread { \n } \n \n SINGLE \n - if ( mRebootReason . equals ( PowerManager . REBOOT_RECOVERY ) ) { \n + if ( PowerManager . REBOOT_RECOVERY . equals ( mRebootReason ) ) { \n uncrypt ( ) ; \n }", "msg_token": "Fix the NPE when checking mRebootReason"} {"diff": " public class TraktShoutsActivity extends SherlockFragmentActivity { \n int episode = args . getInt ( ShareItems . EPISODE ) ; \n \n final ActionBar actionBar = getSupportActionBar ( ) ; \n - setTitle ( getString ( R . string . shouts_for , title ) ) ; \n - actionBar . setTitle ( getString ( R . string . shouts_for , title ) ) ; \n + setTitle ( getString ( R . string . shouts_for , STRING0 ) ) ; \n + actionBar . setTitle ( getString ( R . string . shouts_for , STRING0 ) ) ; \n + actionBar . setSubtitle ( title ) ; \n \n SINGLE \n SherlockDialogFragment newFragment ;", "msg_token": "If shouts are displayed embedded display the episode show title in the"} {"diff": " public class PSurfaceFX implements PSurface { \n \n COMMENT \n @ override \n - public void setVisible ( boolean visible ) { \n + public void setVisible ( final boolean visible ) { \n Platform . runLater ( new Runnable ( ) { \n public void run ( ) { \n - stage . show ( ) ; \n - canvas . requestFocus ( ) ; \n + if ( visible ) { \n + stage . show ( ) ; \n + canvas . requestFocus ( ) ; \n + } else { \n + stage . hide ( ) ; \n + } \n } \n } ) ; \n }", "msg_token": "Have PSurfaceFX pay attention to the setVisible argument"} {"diff": " public class PyTestRunnerTest extends LightPlatformTestCase { \n Collections . addAll ( allArgs , args ) ; \n final Output output = runJython ( workDir , helpersDir . getPath ( ) , allArgs . toArray ( new String [ allArgs . size ( ) ] ) ) ; \n assertEquals ( STRING0 , output . stderr ) ; \n - return output . stdout . split ( STRING1 ) ; \n + List < String > result = new ArrayList < String > ( ) ; \n + final String [ ] lines = output . stdout . split ( STRING1 ) ; \n + for ( String line : lines ) { \n + if ( ! line . contains ( STRING2 ) ) { \n + result . add ( line ) ; \n + } \n + } \n + return result . toArray ( new String [ result . size ( ) ] ) ; \n } \n \n private static Output runJython ( String workDir , String pythonPath , String . . . args ) throws ExecutionException {", "msg_token": "ignore Jython s garbage in stdout"} {"diff": " public class TextEditingTargetRenameHelper \n \n editor_ . setCursorPosition ( position ) ; \n \n - SINGLE \n + SINGLE \n String targetValue = cursor . currentValue ( ) ; \n String targetType = cursor . currentType ( ) ; \n \n public class TextEditingTargetRenameHelper \n } \n \n SINGLE \n - SINGLE \n return renameVariablesInScope ( \n editor_ . getCurrentScope ( ) , \n targetValue ,", "msg_token": "eliminate some TODOs"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyStructureViewModel extends TextEditorBasedStructureViewModel \n } \n \n @ notnull \n - public Grouper [ ] getGroupers ( ) { \n - return Grouper . EMPTY_ARRAY ; \n - } \n - \n - @ notnull \n public Sorter [ ] getSorters ( ) { \n return new Sorter [ ] { Sorter . ALPHA_SORTER } ; \n }", "msg_token": "simplified TextEditorBasedStructureViewModel API"} {"diff": " public class RaptorWorkerTimetable implements Serializable { \n break ; \n case RANDOM : \n time += random . nextInt ( headwaySecs [ trip ] ) ; \n + break ; \n case HALF_HEADWAY : \n default : \n time += headwaySecs [ trip ] / NUMBER0 ;", "msg_token": "add break statement so we don t fall through to adding too much to boarding time"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectFromSourcesBuilderImpl extends ProjectBuilder implements Pro \n \n AccessToken token = WriteAction . start ( ) ; \n try { \n + ModulesProvider updatedModulesProvider = fromProjectStructure ? modulesProvider : new DefaultModulesProvider ( project ) ; \n for ( ProjectConfigurationUpdater updater : myUpdaters ) { \n - updater . updateProject ( project , modelsProvider , modulesProvider ) ; \n + updater . updateProject ( project , modelsProvider , updatedModulesProvider ) ; \n } \n } \n finally {", "msg_token": "fixed framework detection in new project wizard"} {"diff": " class DefaultTransform implements Transform { \n float postHeight = b . getHeight ( ) * ratio ; \n float transx = ( resizeWidth - postWidth ) / NUMBER0 ; \n float transy = ( resizeHeight - postHeight ) / NUMBER0 ; \n - destination . set ( transx , transy , transx + postWidth , transy + postHeight ) ; \n + destination . set ( transx , transy , resizeWidth - transx , resizeHeight - transy ) ; \n } \n \n canvas . drawBitmap ( b , null , destination , null ) ;", "msg_token": "Fix translation cropping"} {"diff": " public final class InodeFileTests extends AbstractInodeTests { \n inode1 . setLength ( LENGTH ) ; \n Assert . assertFalse ( inode1 . isFullyInMemory ( ) ) ; \n } \n + \n + @ test \n + public void setCompleteTest ( ) { \n + InodeFile inode1 = createInodeFile ( NUMBER0 ) ; \n + Assert . assertFalse ( inode1 . isComplete ( ) ) ; \n + \n + inode1 . setComplete ( LENGTH ) ; \n + Assert . assertTrue ( inode1 . isComplete ( ) ) ; \n + } \n }", "msg_token": "Added test for setComplete isComplete"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public class ExtensionLoader { \n \n hookOptions ( extHook ) ; \n ext . optionsLoaded ( ) ; \n + ext . postInit ( ) ; \n } catch ( Exception e ) { \n logger . error ( e . getMessage ( ) , e ) ; \n }", "msg_token": "Call postInit when starting an extension"} {"diff": " public class ProjectFileIndexImpl extends FileIndexBase implements ProjectFileIn \n \n @ override \n public String getPackageNameByDirectory ( @ notnull VirtualFile dir ) { \n - LOG . assertTrue ( dir . isDirectory ( ) , dir . getPresentableUrl ( ) ) ; \n + if ( ! dir . isDirectory ( ) ) LOG . error ( dir . getPresentableUrl ( ) ) ; \n return myDirectoryIndex . getPackageName ( dir ) ; \n }", "msg_token": "performance avoid calling VirtualFile getPresentableUrl in normal control flow"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix checkstyle error"} {"diff": " public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh \n \n final PsiClass containingClass = PsiTreeUtil . getParentOfType ( ref , PsiClass . class ) ; \n if ( containingClass instanceof PsiAnonymousClass && ! PsiTreeUtil . isAncestor ( containingClass , variable , false ) && ! ( variable instanceof PsiField ) ) { \n - final PsiExpressionList list = PsiTreeUtil . getParentOfType ( ref , PsiExpressionList . class ) ; \n - if ( list == null || list . getParent ( ) != containingClass ) { \n + if ( ! PsiTreeUtil . isAncestor ( ( ( PsiAnonymousClass ) containingClass ) . getArgumentList ( ) , ref , false ) ) { \n myHolder . add ( HighlightInfo . createHighlightInfo ( HighlightInfoType . IMPLICIT_ANONYMOUS_CLASS_PARAMETER , ref , null ) ) ; \n } \n }", "msg_token": "don t highlight implicit anonymous class parameters when they are inside constructor call"} {"diff": " public class RegionMaker { \n stack . push ( sw ) ; \n if ( out != null ) { \n stack . addExit ( out ) ; \n + } else { \n + LOG . warn ( STRING0 , \n + block . toString ( ) , mth . toString ( ) ) ; \n } \n \n if ( ! stack . containsExit ( defCase ) ) {", "msg_token": "show warning when failed to detect out node in non trivial switch"} {"diff": " public class SIPCommTextButton extends JButton \n = Color . DARK_GRAY . getRGBComponents ( null ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public SIPCommTextButton ( ) \n + { \n + this ( null ) ; \n + } \n + \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public SIPCommTextButton ( String text ) \n {", "msg_token": "Add an empty constructor to the SIPCommTextButton in order to allow to set the text after creating the button"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n final class YUVMonochromeBitmapSource implements MonochromeBitmapSource { \n \n private final Bitmap image ;", "msg_token": "Deprecated YUV version"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Replaced import of org hamcrest text StringContains with org hamcrest Matchers"} {"diff": " public final class EditorUtil { \n COMMENT \n COMMENT \n COMMENT \n - public static boolean isRealFileEditor ( @ notnull Editor editor ) { \n - return TextEditorProvider . getInstance ( ) . getTextEditor ( editor ) instanceof TextEditorImpl ; \n + public static boolean isRealFileEditor ( @ nullable Editor editor ) { \n + return editor != null && TextEditorProvider . getInstance ( ) . getTextEditor ( editor ) instanceof TextEditorImpl ; \n } \n \n public static int getLastVisualLineColumnNumber ( @ notnull Editor editor , final int line ) {", "msg_token": "make null friendly"} {"diff": " public class NotificationPanelView extends PanelView implements \n } else { \n setQsExpansion ( mQsMinExpansionHeight + mLastOverscroll ) ; \n mNotificationStackScroller . setStackHeight ( getExpandedHeight ( ) ) ; \n - updateHeader ( ) ; \n } \n + updateHeader ( ) ; \n mNotificationStackScroller . updateIsSmallScreen ( \n mHeader . getCollapsedHeight ( ) + mQsPeekHeight ) ; \n }", "msg_token": "Always update quick settings header translation in onLayout"} {"diff": " public class RequestNodeInfoMessageClass extends ZWaveCommandProcessor { \n @ override \n public boolean handleResponse ( ZWaveController zController , SerialMessage lastSentMessage , SerialMessage incomingMessage ) { \n logger . trace ( STRING0 ) ; \n - if ( incomingMessage . getMessageBuffer ( ) [ NUMBER0 ] != NUMBER1 ) \n + if ( incomingMessage . getMessagePayloadByte ( NUMBER2 ) != NUMBER1 ) \n logger . debug ( STRING1 ) ; \n else \n logger . error ( STRING2 ) ; \n public class SendDataMessageClass extends ZWaveCommandProcessor { \n public boolean handleResponse ( ZWaveController zController , SerialMessage lastSentMessage , \n SerialMessage incomingMessage ) { \n logger . trace ( STRING3 ) ; \n - if ( incomingMessage . getMessageBuffer ( ) [ NUMBER0 ] != NUMBER1 ) \n + if ( incomingMessage . getMessagePayloadByte ( NUMBER2 ) != NUMBER1 ) \n logger . debug ( STRING4 ) ; \n else \n - logger . error ( STRING5 , incomingMessage . getMessageBuffer ( ) [ NUMBER0 ] ) ; \n + logger . error ( STRING5 , incomingMessage . getMessagePayloadByte ( NUMBER2 ) ) ; \n \n return true ; \n }", "msg_token": "Fix handling of SendData responses"} {"diff": " public abstract class TvInputService extends Service { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class TvInputService extends Service { \n notifyTimeShiftStartPositionChanged ( startPositionMs ) ; \n } \n long currentPositionMs = onTimeShiftGetCurrentPosition ( ) ; \n + if ( currentPositionMs < mStartPositionMs ) { \n + Log . w ( TAG , STRING0 + currentPositionMs + STRING1 \n + + STRING2 + mStartPositionMs + STRING3 \n + + STRING4 ) ; \n + currentPositionMs = mStartPositionMs ; \n + } \n if ( mCurrentPositionMs != currentPositionMs ) { \n mCurrentPositionMs = currentPositionMs ; \n notifyTimeShiftCurrentPositionChanged ( currentPositionMs ) ;", "msg_token": "Add sanitization code for the current position"} {"diff": " public abstract class SafeAsyncTask < ArgumentT , ResultT > { \n return rtrn ; \n \n } catch ( final Exception e ) { \n - Log . d ( STRING0 , STRING1 , e ) ; \n try { \n postToUiThreadAndWait ( new Callable < Object > ( ) { \n public Object call ( ) throws Exception { \n public abstract class SafeAsyncTask < ArgumentT , ResultT > { \n protected void onSuccess ( ResultT t ) throws Exception { } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - protected void onException ( Exception e ) { } \n + protected void onException ( Exception e ) { \n + Log . e ( STRING0 , STRING1 , e ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "make logging of exceptions optional"} {"diff": " public class InstalledPluginsManagerMain extends PluginManagerMain { \n } \n \n IdeaPluginDescriptor installedPlugin = PluginManager . getPlugin ( pluginDescriptor . getPluginId ( ) ) ; \n - if ( installedPlugin != null ) { \n + if ( installedPlugin != null && ! installedPlugin . isBundled ( ) ) { \n File oldFile = installedPlugin . getPath ( ) ; \n if ( oldFile != null ) { \n StartupActionScriptManager . addActionCommand ( new StartupActionScriptManager . DeleteCommand ( oldFile ) ) ;", "msg_token": "don t delete bundled plugins when installing an updated plugin with the same ID from the plugin repo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "update doc comments"} {"diff": " public class ContainerUtil extends ContainerUtilRt { \n } \n @ notnull \n @ contract ( pure = true ) \n + public static < K , V > ConcurrentMap < K , V > createConcurrentSoftMap ( int initialCapacity , \n + float loadFactor , \n + int concurrencyLevel , \n + @ notnull TObjectHashingStrategy < K > hashingStrategy ) { \n + SINGLE \n + return new ConcurrentSoftHashMap < K , V > ( initialCapacity , loadFactor , concurrencyLevel , hashingStrategy ) ; \n + } \n + @ notnull \n + @ contract ( pure = true ) \n public static < K , V > ConcurrentMap < K , V > createConcurrentWeakMap ( int initialCapacity , \n float loadFactor , \n int concurrencyLevel ,", "msg_token": "add createConcurrentSoftMap method"} {"diff": " public class Cancel extends Command { \n public Cancel ( Object identifier ) { \n super ( identifier ) ; \n } \n - \n - @ override \n - public String toString ( ) { \n - return getClass ( ) . getSimpleName ( ) + STRING0 \n - + STRING1 + getIdentifier ( ) \n - + STRING2 ; \n - } \n } \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class HandleCancel implements DaemonCommandAction { \n } \n } ) ; \n try { \n - try { \n - execution . proceed ( ) ; \n - } finally { \n - execution . getConnection ( ) . onCancel ( null ) ; \n - } \n - } catch ( Exception e ) { \n - throw UncheckedException . throwAsUncheckedException ( e ) ; \n + execution . proceed ( ) ; \n + } finally { \n + execution . getConnection ( ) . onCancel ( null ) ; \n } \n } \n }", "msg_token": "Removed some unnecessary code"} {"diff": " public class TestResource extends JaxRsResourceBase { \n areAllNotificationsProcessed = areAllNotificationsProcessed && areAllBusEventsProcessed ( tenantRecordId ) ; \n SINGLE \n areAllNotificationsProcessed = areAllNotificationsProcessed && areAllNotificationsProcessed ( tenantRecordId ) ; \n + areAllNotificationsProcessed = areAllNotificationsProcessed && areAllBusEventsProcessed ( tenantRecordId ) ; \n if ( ! areAllNotificationsProcessed ) { \n Thread . sleep ( MILLIS_IN_SEC ) ; \n nbTryLeft -- ;", "msg_token": "add workaround for race conditions in TestResource"} {"diff": " public class ExpressionTypingVisitorDispatcher extends JetVisitor < JetType , Expre \n result = null ; \n } \n \n - if ( ! context . trace . get ( BindingContext . PROCESSED , expression ) ) { \n + if ( ! context . trace . get ( BindingContext . PROCESSED , expression ) && ! ( expression instanceof JetReferenceExpression ) ) { \n context . trace . record ( BindingContext . RESOLUTION_SCOPE , expression , context . scope ) ; \n } \n context . trace . record ( BindingContext . PROCESSED , expression ) ;", "msg_token": "not to rewrite RESOLUTION_SCOPE for references"} {"diff": " public class InMemoryMetricsTest { \n verifyMetrics ( STRING0 , ImmutableMap . of ( M_GET_SLICE , NUMBER0 , M_MUTATE , NUMBER1 , M_ACQUIRE_LOCK , NUMBER0 ) ) ; \n assertEquals ( NUMBER2 , CachedKeyColumnValueStore . getGlobalCacheMisses ( ) ) ; \n assertEquals ( NUMBER3 , CachedKeyColumnValueStore . getGlobalCacheHits ( ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n \n tx = graph . buildTransaction ( ) . setMetricsPrefix ( METRICS ) . start ( ) ; \n Iterable < TitanRelation > relations = ( ( TitanVertexQuery ) tx . getVertex ( parentVertex ) . query ( ) ) . relations ( ) ;", "msg_token": "Added additional counting test case"} {"diff": " public class DataSchema \n final Set < String > dimensionExclusions = Sets . newHashSet ( ) ; \n for ( AggregatorFactory aggregator : aggregators ) { \n dimensionExclusions . addAll ( aggregator . requiredFields ( ) ) ; \n + dimensionExclusions . add ( aggregator . getName ( ) ) ; \n } \n \n if ( inputRowParser . getParseSpec ( ) != null ) { \n public class DataSchemaTest \n ) ; \n \n Assert . assertEquals ( \n - ImmutableSet . of ( STRING0 , STRING1 , STRING2 ) , \n + ImmutableSet . of ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) , \n schema . getParser ( ) . getParseSpec ( ) . getDimensionsSpec ( ) . getDimensionExclusions ( ) \n ) ; \n } \n public class DataSchemaTest \n ) ; \n \n Assert . assertEquals ( \n - ImmutableSet . of ( STRING5 , STRING1 ) , \n + ImmutableSet . of ( STRING5 , STRING1 , STRING3 , STRING4 ) , \n schema . getParser ( ) . getParseSpec ( ) . getDimensionsSpec ( ) . getDimensionExclusions ( ) \n ) ; \n }", "msg_token": "Exclude metric names from dimension list"} {"diff": " public final class CameraManager { \n if ( DEBUG ) { \n Log . v ( TAG , \n String . format ( \n - STRING0 + \n - STRING1 + \n + STRING2 + \n + STRING3 + \n STRING4 , \n - isAvailable ( status ) , isAvailable ( status ) ) ) ; \n + isAvailable ( oldStatus ) , isAvailable ( status ) ) ) ; \n } \n return ; \n }", "msg_token": "Fix format string in Camera"} {"diff": " public class IWindowManagerImpl implements IWindowManager { \n SINGLE \n return null ; \n } \n + \n + @ override \n + public void cancelTaskWindowTransition ( int taskId ) { \n + } \n }", "msg_token": "Fixing build breakage"} {"diff": " public class ImageProcessor { \n private final HashMap < String , Rect > crcs = new HashMap ( ) ; \n private final Array < Rect > rects = new Array ( ) ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public ImageProcessor ( File rootDir , Settings settings ) { \n this . settings = settings ; \n \n public class TexturePacker2 { \n private final MaxRectsPacker maxRectsPacker ; \n private final ImageProcessor imageProcessor ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public TexturePacker2 ( File rootDir , Settings settings ) { \n this . settings = settings ;", "msg_token": "Perform automatic formatting"} {"diff": " public class ResourceManagementServiceImpl \n public ImageIcon getImage ( String imageID ) \n { \n URL imageURL = getImageURL ( imageID ) ; \n - \n + if ( imageURL == null ) \n + { \n + return null ; \n + } \n return new ImageIcon ( imageURL ) ; \n } \n }", "msg_token": "Fix NPE when trying to get an image from an imageID that is missing in the resources"} {"diff": " public abstract class Editor extends JFrame implements RunnerListener { \n if ( formattedText . equals ( source ) ) { \n statusNotice ( Language . text ( STRING0 ) ) ; \n } else { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + endTextEditHistory ( ) ; \n startCompoundEdit ( ) ; \n + \n SINGLE \n SINGLE \n int scrollPos = textarea . getVerticalScrollPosition ( ) ; \n - setText ( formattedText ) ; \n + textarea . setText ( formattedText ) ; \n setSelection ( selectionEnd , selectionEnd ) ; \n \n SINGLE", "msg_token": "Fix hopefully issues with undoing auto format again"} {"diff": " public class ManagementCenterService { \n return ; \n } \n \n - managementCenterUrl = newUrl ; \n if ( newUrl . equals ( managementCenterUrl ) ) { \n return ; \n } \n + managementCenterUrl = newUrl ; \n \n if ( ! isRunning ( ) ) { \n start ( ) ;", "msg_token": "fix management center url update problem"} {"diff": " final class DefaultChannelHandlerContext extends DefaultAttributeMap implements \n pipeline . childExecutors . put ( executor , childExecutor ) ; \n } \n this . executor = childExecutor ; \n + } else if ( channel . isRegistered ( ) ) { \n + this . executor = channel . eventLoop ( ) ; \n } else { \n this . executor = null ; \n }", "msg_token": "Get the executor of the context earlier if possible"} {"diff": " public class CommandContext { \n SINGLE \n log . debug ( STRING0 + exception ) ; \n } else { \n - log . debug ( STRING1 , exception ) ; \n + log . error ( STRING1 , exception ) ; \n } \n \n transactionContext . rollback ( ) ;", "msg_token": "Change exception log level to error"} {"diff": " public class MethodInvoker { \n this . method = method ; \n } \n \n - public void invoke ( Object target , Object [ ] javaArgs ) throws Throwable { \n + public Object invoke ( Object target , Object [ ] javaArgs ) throws Throwable { \n try { \n if ( method . isAnnotationPresent ( Pending . class ) ) { \n throw JRuby . cucumberPending ( method . getAnnotation ( Pending . class ) . value ( ) ) ; \n } else { \n - method . invoke ( target , javaArgs ) ; \n + return method . invoke ( target , javaArgs ) ; \n } \n } catch ( IllegalArgumentException e ) { \n String m = STRING0 + method . toGenericString ( ) + STRING1 + cuke4duke . internal . Utils . join ( javaArgs , STRING2 ) ;", "msg_token": "Wanted a return type from the methodinvoker"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class TitanGraphTest extends TitanGraphBaseTest { \n assertEquals ( NUMBER0 , mgmt . getTTL ( label1 ) . getLength ( TimeUnit . SECONDS ) ) ; \n mgmt . commit ( ) ; \n \n - Vertex v1 = tx . addVertex ( STRING0 , STRING1 , STRING2 , STRING3 , System . currentTimeMillis ( ) ) ; \n + Vertex v1 = tx . addVertex ( T . label , STRING0 , STRING1 , STRING2 , STRING3 , System . currentTimeMillis ( ) ) ; \n tx . commit ( ) ; \n Object id = v1 . id ( ) ;", "msg_token": "Fix bug in testVertexTTLWithCompositeIndex"} {"diff": " public class DnsEventListenerService extends IDnsEventListener . Stub { \n return ; \n } \n \n + SINGLE \n + byte [ ] eventTypes = Arrays . copyOf ( mEventTypes , mEventCount ) ; \n byte [ ] returnCodes = Arrays . copyOf ( mReturnCodes , mEventCount ) ; \n int [ ] latenciesMs = Arrays . copyOf ( mLatenciesMs , mEventCount ) ; \n - DnsEvent . logEvent ( mNetId , mEventTypes , mReturnCodes , mLatenciesMs ) ; \n + DnsEvent . logEvent ( mNetId , eventTypes , returnCodes , latenciesMs ) ; \n maybeLog ( String . format ( STRING0 , mEventCount , mNetId ) ) ; \n mEventCount = NUMBER0 ; \n }", "msg_token": "Only actually log the DNS events we have"} {"diff": " class AlignmentImpl extends Alignment { \n } \n return false ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 + System . identityHashCode ( this ) ; \n + } \n } \n public class FormattingModelDumper { \n if ( indent != null ) { \n blockData . append ( STRING1 ) . append ( indent ) ; \n } \n + final Alignment alignment = block . getAlignment ( ) ; \n + if ( alignment != null ) { \n + blockData . append ( STRING1 ) . append ( alignment ) ; \n + } \n } \n \n private static void dumpSpacing ( final Spacing spacing , final int indent , final StringBuilder out ) {", "msg_token": "include alignment in formatting model dump"} {"diff": " public class FromFileDoNotDeleteFileIfProcessFailsTest extends ContextTestSuppor \n template . sendBodyAndHeader ( STRING0 , body , Exchange . FILE_NAME , STRING1 ) ; \n \n MockEndpoint mock = getMockEndpoint ( STRING2 ) ; \n - mock . expectedBodiesReceived ( body ) ; \n + SINGLE \n + SINGLE \n + mock . expectedMinimumMessageCount ( NUMBER0 ) ; \n \n mock . assertIsSatisfied ( ) ;", "msg_token": "Fixed unit test"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GsonConverter < T > implements FileObjectQueue . Converter < T > { \n gson . toJson ( object , writer ) ; \n writer . close ( ) ; \n } \n - } \n + } \n import static NAMESPACE ; \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", "msg_token": "Fix Javadoc formatting"} {"diff": " public class TemplateCompiler { \n parser . parse ( templateSource , scriptSource ) ; \n \n String scriptSourceString = scriptSource . toString ( CharsetUtil . UTF_8 ) ; \n + scriptSource . release ( ) ; \n \n if ( verbose && logger . isLoggable ( Level . INFO ) ) { \n logger . info ( STRING0 + scriptSourceString + STRING1 ) ;", "msg_token": "Fix buffer leak"} {"diff": " public class CodeStyleSettingsCodeFragmentFilter { \n private class FilterFieldsTask implements SequentialTaskWithFixedIterationsNumber { \n private final Iterator < String > myIterator ; \n private final int myTotalFieldsNumber ; \n + private final Collection < String > myAllFields ; \n \n private List < String > myAffectingFields = ContainerUtil . newArrayList ( ) ; \n \n public FilterFieldsTask ( @ notnull Collection < String > fields ) { \n + myAllFields = fields ; \n myIterator = fields . iterator ( ) ; \n myTotalFieldsNumber = fields . size ( ) ; \n } \n public class CodeStyleSettingsCodeFragmentFilter { \n \n @ override \n public void stop ( ) { \n + if ( ! isDone ( ) ) myAffectingFields = ContainerUtil . newArrayList ( myAllFields ) ; \n } \n \n @ override \n class CompositeSequentialTask implements SequentialTask { \n \n @ override \n public void stop ( ) { \n + if ( myCurrentTask != null ) myCurrentTask . stop ( ) ; \n + for ( SequentialTaskWithFixedIterationsNumber task : myUnfinishedTasks ) { \n + task . stop ( ) ; \n + } \n } \n \n public void setProgressText2 ( String progressText2 ) {", "msg_token": "Showing all settings on skip"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface StreetVertexIndexService { \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public Vertex getClosestVertex ( final Coordinate location , String name , RoutingRequest request ) ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public Vertex getClosestVertex ( final Coordinate location , String name , RoutingRequest request , \n - List < Edge > extraEdges ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Delete old methods from the StreetVertexIndexService interface"} {"diff": " class StripCode implements CompilerPass { \n \n @ override \n public void process ( Node externs , Node root ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + for ( String type : stripTypes ) { \n + stripTypePrefixes . add ( type + STRING0 ) ; \n + } \n + \n NodeTraversal . traverse ( compiler , root , new Strip ( ) ) ; \n } \n \n class StripCode implements CompilerPass { \n boolean qualifiedNameBeginsWithStripType ( String name ) { \n if ( name != null ) { \n for ( String type : stripTypes ) { \n - if ( name . equals ( type ) || name . startsWith ( type + STRING0 ) ) { \n + if ( name . equals ( type ) ) { \n return true ; \n } \n }", "msg_token": "Avoid excessive string building when running StripCode"} {"diff": " public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void collapse ( ) { \n + for ( int expandedItem : getExpandedItems ( ) ) { \n + collapse ( expandedItem ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add new method which will collapse all items"} {"diff": " public class CollabEditStartParams extends JavaScriptObject \n public final native boolean isMaster ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public final native boolean isRejoining ( ) COMMENT \n + COMMENT \n + COMMENT ; \n }", "msg_token": "add rejoining flag to collab params"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class FilterStreamInput extends StreamInput { \n + public abstract class FilterStreamInput extends StreamInput { \n \n private final StreamInput delegate ;", "msg_token": "Make FilterInputStream abstract"} {"diff": " public class TestlibTest extends UsefulTestCase { \n \n configuration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , JetParsingTest . getTestDataDir ( ) + STRING0 ) ; \n configuration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , JetParsingTest . getTestDataDir ( ) + STRING1 ) ; \n - configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , MessageCollectorPlainTextToStream . PLAIN_TEXT_TO_SYSTEM_ERR ) ; \n + configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , \n + new MessageCollectorPlainTextToStream ( System . out , MessageCollectorPlainTextToStream . NON_VERBOSE ) ) ; \n \n myEnvironment = new JetCoreEnvironment ( getTestRootDisposable ( ) , configuration ) ; \n \n public class ForTestCompileRuntime { \n } \n \n private static void compileStdlib ( File destdir ) throws IOException { \n - ExitCode exitCode = new K2JVMCompiler ( ) . exec ( System . err , \n + ExitCode exitCode = new K2JVMCompiler ( ) . exec ( System . out , \n STRING2 , destdir . getPath ( ) , \n STRING3 , STRING4 , \n STRING5 ,", "msg_token": "Replaced sout with serr in some test to reduce noise"} {"diff": " public class CSVResultRestExecutor implements RestExecutor { \n } \n boolean includeScore = getBooleanOrDefault ( params , STRING0 , false ) ; \n boolean includeType = getBooleanOrDefault ( params , STRING1 , false ) ; \n - CSVResult result = new CSVResultsExtractor ( includeScore , includeType ) . extractResults ( queryResult , flat , separator ) ; \n + boolean includeId = getBooleanOrDefault ( params , STRING2 , false ) ; \n + CSVResult result = new CSVResultsExtractor ( includeScore , includeType , includeId ) . extractResults ( queryResult , flat , separator ) ; \n String newLine = STRING3 ; \n if ( params . containsKey ( STRING4 ) ) { \n newLine = params . get ( STRING4 ) ;", "msg_token": "csv add includeId parameter"} {"diff": " public abstract class Animation implements Cloneable { \n COMMENT \n public void detach ( ) { \n if ( mStarted && ! mEnded ) { \n - if ( mListener != null ) mListener . onAnimationEnd ( this ) ; \n mEnded = true ; \n + if ( mListener != null ) mListener . onAnimationEnd ( this ) ; \n } \n } \n \n public abstract class Animation implements Cloneable { \n if ( expired ) { \n if ( mRepeatCount == mRepeated ) { \n if ( ! mEnded ) { \n + mEnded = true ; \n if ( mListener != null ) { \n mListener . onAnimationEnd ( this ) ; \n } \n - mEnded = true ; \n } \n } else { \n if ( mRepeatCount > NUMBER0 ) {", "msg_token": "Prevent infinite loop in the Phone UI"} {"diff": " public class DeprecationLogger { \n \n private final Logger logger ; \n \n - public Logger getLogger ( ) { \n - return logger ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove logger getter from DeprecationLogger"} {"diff": " public class SinaWeibo2Example \n public static void main ( String [ ] args ) \n { \n SINGLE \n - String apiKey = STRING0 ; \n - String apiSecret = STRING1 ; \n + String apiKey = STRING2 ; \n + String apiSecret = STRING3 ; \n OAuthService service = new ServiceBuilder ( ) \n . provider ( SinaWeiboApi20 . class ) \n . apiKey ( apiKey )", "msg_token": "removed key and secret from sina weibo example"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WPWebChromeClient extends WebChromeClient { \n } \n \n public void onProgressChanged ( WebView webView , int progress ) { \n - if ( mActivity != null && ! mActivity . isFinishing ( ) && mAutoUpdateActivityTitle ) { \n + if ( mActivity != null \n + && ! mActivity . isFinishing ( ) \n + && mAutoUpdateActivityTitle \n + && ! TextUtils . isEmpty ( webView . getTitle ( ) ) ) { \n mActivity . setTitle ( webView . getTitle ( ) ) ; \n } \n if ( mProgressBar != null ) {", "msg_token": "Updated ViewSiteActivity and WebViewActivity to use support toolbar w o drawer"} {"diff": " public class DefaultStructBindingsStore implements StructBindingsStore { \n } \n } \n \n - private < T , D > ImmutableSortedMap < String , ManagedProperty < ? > > collectManagedProperties ( StructBindingExtractionContext < T > extractionContext , Map < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyBindings ) { \n + private < T > ImmutableSortedMap < String , ManagedProperty < ? > > collectManagedProperties ( StructBindingExtractionContext < T > extractionContext , Map < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyBindings ) { \n ImmutableSortedMap . Builder < String , ManagedProperty < ? > > managedPropertiesBuilder = ImmutableSortedMap . naturalOrder ( ) ; \n - ModelType < T > publicType = extractionContext . getPublicSchema ( ) . getType ( ) ; \n for ( Map . Entry < String , Multimap < PropertyAccessorType , StructMethodBinding > > propertyEntry : propertyBindings . entrySet ( ) ) { \n String propertyName = propertyEntry . getKey ( ) ; \n Multimap < PropertyAccessorType , StructMethodBinding > accessorBindings = propertyEntry . getValue ( ) ;", "msg_token": "Removed some unnecessary code"} {"diff": " public final class HttpBindManager { \n initializers . add ( new ContainerInitializer ( new JasperInitializer ( ) , null ) ) ; \n context . setAttribute ( STRING0 , initializers ) ; \n context . setAttribute ( InstanceManager . class . getName ( ) , new SimpleInstanceManager ( ) ) ; \n + context . setAllowNullPathInfo ( true ) ; \n context . addServlet ( new ServletHolder ( new HttpBindServlet ( ) ) , STRING1 ) ; \n if ( isHttpCompressionEnabled ( ) ) { \n Filter gzipFilter = new AsyncGzipFilter ( ) { \n public final class HttpBindManager { \n initializers . add ( new ContainerInitializer ( new JasperInitializer ( ) , null ) ) ; \n context . setAttribute ( STRING0 , initializers ) ; \n context . setAttribute ( InstanceManager . class . getName ( ) , new SimpleInstanceManager ( ) ) ; \n + context . setAllowNullPathInfo ( true ) ; \n context . addServlet ( new ServletHolder ( new FlashCrossDomainServlet ( ) ) , STRING2 ) ; \n }", "msg_token": "BOSH endpoints redirect all the requests with the trailing slash"} {"diff": " public class FindingRedundantInvocationsInOrderTest extends TestBase { \n } \n \n @ test \n + public void shouldSayNoInteractionsWanted ( ) throws Exception { \n + SINGLE \n + mock . simpleMethod ( ) ; \n + \n + SINGLE \n + InOrder inOrder = inOrder ( mock ) ; \n + try { \n + inOrder . verifyNoMoreInteractions ( ) ; \n + fail ( ) ; \n + } catch ( VerificationInOrderFailure e ) { \n + assertContains ( STRING0 , e . getMessage ( ) ) ; \n + } \n + } \n + \n + @ test \n public void shouldVerifyNoMoreInteractionsInOrder ( ) throws Exception { \n SINGLE \n mock . simpleMethod ( ) ;", "msg_token": "Added missing test for my sanity"} {"diff": " public class BitmapFactoryTest { \n } \n \n @ test \n + public void decodeResource_canTakeOptions ( ) throws Exception { \n + BitmapFactory . Options options = new BitmapFactory . Options ( ) ; \n + options . inSampleSize = NUMBER0 ; \n + Bitmap bitmap = BitmapFactory . decodeResource ( Robolectric . application . getResources ( ) , R . drawable . an_image , options ) ; \n + assertEquals ( true , shadowOf ( bitmap ) . getDescription ( ) . contains ( STRING0 ) ) ; \n + } \n + \n + @ test \n public void decodeFile_shouldGetWidthAndHeightFromHints ( ) throws Exception { \n ShadowBitmapFactory . provideWidthAndHeightHints ( STRING1 , NUMBER1 , NUMBER2 ) ;", "msg_token": "Added unit test for decodeResource with Options in ShadowBitmapFactory"} {"diff": " class StringConverter extends AbstractConverter \n throw new IllegalArgumentException ( STRING0 + str ) ; \n } \n \n - DateTimeParser dateTimeParser = ISODateTimeFormat . getInstance ( ) . dateTimeParser ( ) ; \n + DateTimeParser dateTimeParser = ISODateTimeFormat . getInstance ( chrono ) . dateTimeParser ( ) ; \n PeriodFormatter periodParser = ISOPeriodFormat . getInstance ( ) . standard ( ) ; \n long startInstant = NUMBER0 , endInstant = NUMBER0 ; \n Period period = null ;", "msg_token": "Ensure chronology used in parse"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "removed swing imports from cross platform code"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FunctionalInterfaceSuggester { \n @ override \n public boolean process ( PsiMember member ) { \n if ( member instanceof PsiClass && ! Java15APIUsageInspectionBase . isForbiddenApiUsage ( member , PsiUtil . getLanguageLevel ( element ) ) ) { \n + if ( ! JavaResolveUtil . isAccessible ( member , null , member . getModifierList ( ) , element , null , null ) ) { \n + return true ; \n + } \n ContainerUtil . addIfNotNull ( types , acceptanceChecker . fun ( ( PsiClass ) member ) ) ; \n } \n return true ;", "msg_token": "accept only accessible members"} {"diff": " public class PresenceFilter \n COMMENT \n public boolean isMatching ( SourceContact contact ) \n { \n + SINGLE \n return \n isShowOffline \n || contact . getPresenceStatus ( ) . isOnline ( ) \n - || GuiActivator . getMUCService ( ) . isMUCSourceContact ( contact ) ; \n + || GuiActivator . getMUCService ( ) . isMUCSourceContact ( contact ) \n + || contact . getContactSource ( ) . getType ( ) \n + == ContactSourceService . RECENT_MESSAGES_TYPE ; \n } \n \n COMMENT", "msg_token": "Always show recent messages contacts even when offline and using presence filter"} {"diff": " public class AxisReportIncidentServiceTest extends TestCase { \n SINGLE \n Connector connector = new SelectChannelConnector ( ) ; \n connector . setPort ( NUMBER0 ) ; \n - connector . setHost ( STRING0 ) ; \n + connector . setHost ( STRING1 ) ; \n server . addConnector ( connector ) ; \n \n SINGLE", "msg_token": "Fixed the camel example axis unit test error on OSX"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class SentenceWhitespaceRule extends Rule {", "msg_token": "add missing since annotation"} {"diff": " public class DrawHandler extends Handler { \n } \n \n public void quit ( ) { \n - removeCallbacksAndMessages ( null ) ; \n + removeMessages ( QUIT ) ; \n sendEmptyMessage ( QUIT ) ; \n }", "msg_token": "fix hide quit issue"} {"diff": " public class VirtualFileWindowImpl extends LightVirtualFile implements VirtualFi \n } \n \n @ override \n - public boolean isWritable ( ) { \n - return getDelegate ( ) . isWritable ( ) ; \n - } \n - \n - @ override \n public String toString ( ) { \n return STRING0 + myDelegate . getPresentableUrl ( ) ; \n } \n public class MultiHostRegistrarImpl implements MultiHostRegistrar , ModificationT \n } \n \n virtualFile . setContent ( null , documentWindow . getText ( ) , false ) ; \n + virtualFile . setWritable ( virtualFile . getDelegate ( ) . isWritable ( ) ) ; \n \n cacheEverything ( place , documentWindow , viewProvider , psiFile , pointer ) ;", "msg_token": "file is not writable exception fixed"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestClass extends TestElement { \n return results ; \n } \n \n - public Constructor < ? > getConstructor ( ) throws SecurityException , \n - NoSuchMethodException { \n - return fClass . getConstructor ( ) ; \n + public Constructor < ? > getConstructor ( ) throws SecurityException { \n + SINGLE \n + \n + return fClass . getConstructors ( ) [ NUMBER0 ] ; \n } \n \n public Class < ? > getJavaClass ( ) { \n public class TestClass extends TestElement { \n validateStaticMethods ( errors ) ; \n validateInstanceMethods ( errors ) ; \n } \n + \n + public Constructor < ? > getOnlyConstructor ( ) { \n + Constructor < ? > [ ] constructors = fClass . getConstructors ( ) ; \n + Assert . assertEquals ( NUMBER1 , constructors . length ) ; \n + return constructors [ NUMBER0 ] ; \n + } \n }", "msg_token": "Added getOnlyConstructor API"} {"diff": " public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi \n } \n \n FileType fileType = file . getFileType ( ) ; \n - if ( fileType == UnknownFileType . INSTANCE ) { \n - fileType = FileTypeRegistry . getInstance ( ) . detectFileTypeFromContent ( file ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n if ( fileType . isBinary ( ) ) return Language . ANY ; \n if ( isTooLarge ( file ) ) return PlainTextLanguage . INSTANCE ;", "msg_token": "do not load content of arbitrary files"} {"diff": " package NAMESPACE ; \n public abstract class ScriptIntrinsic extends Script { \n ScriptIntrinsic ( long id , RenderScript rs ) { \n super ( id , rs ) ; \n + if ( id == NUMBER0 ) { \n + throw new RSRuntimeException ( STRING0 ) ; \n + } \n } \n }", "msg_token": "Add check and throw for failed Intrinsic init"} {"diff": " public final class FirebaseMessage { \n return databaseError ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING0 \n + + STRING1 + operation \n + + STRING2 + dataSnapshot \n + + STRING3 + previousChildName + STRING4 \n + + STRING5 + databaseError + STRING6 ; \n + } \n + \n public static class Builder { \n private final Operation operation ;", "msg_token": "Revert Removed toString method"} {"diff": " public class RoutingHelper { \n Thread job = currentRunningJob ; \n if ( job instanceof RouteRecalculationThread ) { \n RouteRecalculationThread thread = ( RouteRecalculationThread ) job ; \n - if ( thread . isParamsChanged ( ) ) { \n + if ( ! thread . isParamsChanged ( ) ) { \n thread . stopCalculation ( ) ; \n } \n }", "msg_token": "Fix recalculate issue"} {"diff": " public class SurroundWithHandler implements CodeInsightActionHandler { \n final PsiElement [ ] elements = descriptor . getElementsToSurround ( file , startOffset , endOffset ) ; \n if ( elements . length > NUMBER0 ) { \n doSurround ( project , editor , surrounder , elements ) ; \n + return ; \n } \n } \n }", "msg_token": "fix surround test"} {"diff": " public class ClassicStyleFragment extends Fragment implements OnRefreshListener , \n @ override \n public void onActivityCreated ( Bundle savedInstanceState ) { \n super . onActivityCreated ( savedInstanceState ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + swipeToLoadLayout . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + swipeToLoadLayout . setRefreshing ( true ) ; \n + } \n + } ) ; \n } \n \n @ override \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class Characoters { \n + public class Characters { \n private List < Hero > heroes ; \n \n private List < Section > sections ;", "msg_token": "rename some files and unblock the comment"} {"diff": " public class StoreDefinitionsMapper { \n } \n } \n \n - @ suppresswarnings ( STRING0 ) \n public List < StoreDefinition > readStoreList ( Reader input ) { \n try { \n \n public class StoreDefinitionsMapper { \n throw new MappingException ( STRING1 \n + doc . getRootElement ( ) . getName ( ) ) ; \n List < StoreDefinition > stores = new ArrayList < StoreDefinition > ( ) ; \n - for ( Element store : ( List < Element > ) root . getChildren ( STORE_ELMT ) ) \n - stores . add ( readStore ( store ) ) ; \n + for ( Object store : root . getChildren ( STORE_ELMT ) ) \n + stores . add ( readStore ( ( Element ) store ) ) ; \n return stores ; \n } catch ( JDOMException e ) { \n throw new MappingException ( e ) ;", "msg_token": "Replace unchecked cast with checked one and remove now unnecessary SuppressWarnings"} {"diff": " public class RestAssuredMockMvc { \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 + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void standaloneSetup ( DefaultMockMvcBuilder builder ) { \n + mockMvc = builder . build ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a RestAssuredMockMvc standaloneSetup DefaultMockMvcBuilder method in order to allow more flexible customization of the spring context"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ManualRangeMarker { \n return Pair . create ( range , linesCols ) ; \n } \n \n - public boolean applyEvents ( List < DocumentEvent > events ) { \n - if ( ! myValid ) return false ; \n + public void applyEvents ( List < DocumentEvent > events ) { \n + if ( ! myValid ) return ; \n \n Pair < ProperTextRange , PersistentRangeMarker . LinesCols > pair = getUpdatedState ( events ) ; \n if ( pair != null ) { \n public class ManualRangeMarker { \n } else { \n myValid = false ; \n } \n - return myValid ; \n } \n \n @ nullable \n public ProperTextRange getRange ( ) { \n return myValid ? myRange : null ; \n } \n + \n + public boolean isValid ( ) { \n + return myValid ; \n + } \n }", "msg_token": "add ManualRangeMarker isValid"} {"diff": " public class ChatConversationPanel \n extends JEditorPane \n { \n COMMENT \n - COMMENT \n - COMMENT \n - public JToolTip createToolTip ( ) \n - { \n - JToolTip tip = new JToolTip ( ) ; \n - tip . setComponent ( this ) ; \n - \n - return tip ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ChatConversationPanel \n if ( currentHref != null && currentHref . length ( ) != NUMBER0 ) \n return currentHref ; \n else \n - return STRING0 ; \n + return null ; \n } \n } \n }", "msg_token": "Remove empty tooltip that shows in conversation panel"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ImageGalleryActivity extends BaseActivity { \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n \n - requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; \n - getWindow ( ) . setFlags ( WindowManager . LayoutParams . FLAG_FULLSCREEN , WindowManager . LayoutParams . FLAG_FULLSCREEN ) ; \n - \n setContentView ( R . layout . ac_image_gallery ) ; \n Bundle bundle = getIntent ( ) . getExtras ( ) ; \n String [ ] imageUrls = bundle . getStringArray ( Extra . IMAGES ) ;", "msg_token": "Removed full screen mode of gallery activity"} {"diff": " public class PyClassicStyleClassInspection extends LocalInspectionTool { \n return new Visitor ( holder ) ; \n } \n \n - @ override \n - public boolean isEnabledByDefault ( ) { \n - return true ; \n - } \n - \n private static class Visitor extends PyInspectionVisitor { \n \n public Visitor ( final ProblemsHolder holder ) {", "msg_token": "disable PyClassicStyleClassInspection by default"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "apt compiler should sort eip properties in order that feels more natural"} {"diff": " import NAMESPACE ; \n public class XmppConnection extends ImConnection implements CallbackHandler { \n \n final static String TAG = STRING0 ; \n - private final static boolean DEBUG_ENABLED = true ; \n + private final static boolean DEBUG_ENABLED = false ; \n \n private XmppContactList mContactListManager ; \n private Contact mUser ;", "msg_token": "turned XMPP debug off"} {"diff": " public class GdxSetupUI extends JFrame { \n JTextField destinationText = new JTextField ( new File ( STRING0 ) . getAbsolutePath ( ) ) ; \n SetupButton destinationButton = new SetupButton ( STRING1 ) ; \n JLabel sdkLocationLabel = new JLabel ( STRING2 ) ; \n - JTextField sdkLocationText = new JTextField ( STRING3 ) ; \n + JTextField sdkLocationText = new JTextField ( \n + System . getProperty ( STRING4 ) . contains ( STRING5 ) \n + ? STRING3 \n + : STRING6 \n + ) ; \n SetupButton sdkLocationButton = new SetupButton ( STRING1 ) ; \n \n JPanel subProjectsPanel = new JPanel ( new GridLayout ( ) ) ;", "msg_token": "sdkLocationText uses correct directory structure based on OS name"} {"diff": " public class TextField extends Widget implements Disableable { \n int maxIndex = Math . max ( cursor , selectionStart ) ; \n float minX = Math . max ( glyphPositions [ minIndex ] , - renderOffset ) ; \n float maxX = Math . min ( glyphPositions [ maxIndex ] , visibleWidth - renderOffset ) ; \n - selectionX = minX ; \n + selectionX = minX + textOffset ; \n selectionWidth = maxX - minX - style . font . getData ( ) . cursorX ; \n } \n }", "msg_token": "Fixed selections when text doesn t fit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix TachyonFile java"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class NodeRelationshipCache implements MemoryStatsVisitor . Visitable \n private static final int INDEX_LOOP = NUMBER0 ; \n \n private LongArray array ; \n - private final AtomicInteger nextFreeId = new AtomicInteger ( ) ; \n + private final AtomicLong nextFreeId = new AtomicLong ( ) ; \n \n RelGroupCache ( NumberArrayFactory arrayFactory , long chunkSize ) \n { \n public class NodeRelationshipCache implements MemoryStatsVisitor . Visitable \n array . set ( index , IdFieldManipulator . cleanId ( array . get ( index ) ) ) ; \n } \n \n - private int nextFreeId ( ) \n + private long nextFreeId ( ) \n { \n return nextFreeId . getAndIncrement ( ) ; \n }", "msg_token": "Change AtomicInteger to AtomicLong"} {"diff": " public class LwjglCanvas implements Application { \n } catch ( Exception ex ) { \n stopped ( ) ; \n exception ( ex ) ; \n - throw new GdxRuntimeException ( ex ) ; \n + return ; \n } \n \n EventQueue . invokeLater ( new Runnable ( ) {", "msg_token": "Allow exception method to decide if it is thrown"} {"diff": " public class FileAnalyzerFactory { \n COMMENT \n COMMENT \n COMMENT \n - public final List < String > getSuffixes ( ) { \n + final List < String > getSuffixes ( ) { \n return suffixes ; \n } \n \n public class FileAnalyzerFactory { \n COMMENT \n COMMENT \n COMMENT \n - public final List < String > getMagicStrings ( ) { \n + final List < String > getMagicStrings ( ) { \n return magics ; \n } \n \n public class FileAnalyzerFactory { \n COMMENT \n COMMENT \n COMMENT \n - public final List < Matcher > getMatchers ( ) { \n + final List < Matcher > getMatchers ( ) { \n return matchers ; \n } \n \n public class FileAnalyzerFactory { \n COMMENT \n COMMENT \n COMMENT \n - public final String getContentType ( ) { \n + final String getContentType ( ) { \n return contentType ; \n }", "msg_token": "Use more restrictive access modifiers on some methods"} {"diff": " public class AbstractBreadthFirstTraversalTest { \n return deps ; \n } \n \n + @ override \n public int compareTo ( FakeNode other ) { \n return this . name . compareTo ( other . name ) ; \n }", "msg_token": "Fix ant build break"} {"diff": " public class GradientDrawable extends Drawable { \n mPositions = state . mPositions . clone ( ) ; \n } \n mHasSolidColor = state . mHasSolidColor ; \n + mSolidColor = state . mSolidColor ; \n mStrokeWidth = state . mStrokeWidth ; \n mStrokeColor = state . mStrokeColor ; \n mStrokeDashWidth = state . mStrokeDashWidth ;", "msg_token": "Copy the solid color when mutating a gradient drawable"} {"diff": " public class MeshLoader extends DefaultHandler implements AssetLoader { \n if ( materialList == null && materialName != null ) { \n materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + materialName + STRING0 ) ) ; \n } \n + else { \n + materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + meshName + STRING0 ) ) ; \n + } \n } else { \n try { \n materialList = ( MaterialList ) assetManager . loadAsset ( new OgreMaterialKey ( folderName + meshName + STRING0 ) ) ;", "msg_token": "add fallback to default material name also when using OgreMeshKey"} {"diff": " public abstract class AbstractBytesReferenceTestCase extends ESTestCase { \n public void testSliceArrayOffset ( ) throws IOException { \n int length = randomInt ( PAGE_SIZE * randomIntBetween ( NUMBER0 , NUMBER1 ) ) ; \n BytesReference pbr = newBytesReference ( length ) ; \n - int sliceOffset = randomIntBetween ( NUMBER2 , pbr . length ( ) - NUMBER3 ) ; \n + int sliceOffset = randomIntBetween ( NUMBER2 , pbr . length ( ) - NUMBER3 ) ; SINGLE \n int sliceLength = randomIntBetween ( pbr . length ( ) - sliceOffset , pbr . length ( ) - sliceOffset ) ; \n BytesReference slice = pbr . slice ( sliceOffset , sliceLength ) ; \n if ( slice . hasArray ( ) ) {", "msg_token": "Add comment explaining bytes reference edge case"} {"diff": " public class TextEditingTarget implements \n if ( lineCount < NUMBER0 ) \n return ; \n \n - if ( prefs_ . stripTrailingWhitespace ( ) . getValue ( ) ) \n + if ( prefs_ . stripTrailingWhitespace ( ) . getValue ( ) && \n + ! fileType_ . isMarkdown ( ) ) \n { \n String code = docDisplay_ . getCode ( ) ; \n Pattern pattern = Pattern . create ( STRING0 ) ;", "msg_token": "never strip trailing whitespaces in markdown documents"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware , \n \n private Set < CacheEventListener > cacheEventListeners ; \n \n + private boolean disabled = false ; \n + \n private String beanName ; \n \n private Ehcache cache ; \n public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware , \n this . cacheEventListeners = cacheEventListeners ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDisabled ( boolean disabled ) { \n + this . disabled = disabled ; \n + } \n + \n public void setBeanName ( String name ) { \n this . beanName = name ; \n } \n public class EhCacheFactoryBean implements FactoryBean < Ehcache > , BeanNameAware , \n cache . getCacheEventNotificationService ( ) . registerListener ( listener ) ; \n } \n } \n - \n + if ( this . disabled ) { \n + cache . setDisabled ( true ) ; \n + } \n return cache ; \n }", "msg_token": "added disabled property to EhCacheFactoryBean"} {"diff": " public class DumbServiceImpl extends DumbService implements Disposable , Modifica \n LOG . info ( STRING0 , trace ) ; \n } \n else if ( permission == DumbModePermission . MAY_START_MODAL ) { \n - LOG . info ( STRING1 , trace ) ; \n + LOG . debug ( STRING1 , trace ) ; \n } \n \n SINGLE", "msg_token": "don t pollute logs with expected modal indexing start traces"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - abstract class NavigationAction extends AnAction { \n + abstract class NavigationAction extends AnAction implements DumbAware { \n \n private final ShadowAction myShadow ;", "msg_token": "make project structure navigation actions dumb aware"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class NewUserPageFragment extends NewAccountAbstractPageFragment implemen \n . inflate ( R . layout . new_account_user_fragment_screen , container , false ) ; \n \n WPTextView termsOfServiceTextView = ( WPTextView ) rootView . findViewById ( R . id . l_agree_terms_of_service ) ; \n - termsOfServiceTextView . setText ( Html . fromHtml ( String . format ( getString ( R . string . agree_terms_of_service , STRING0 , STRING1 ) ) ) ) ; \n + termsOfServiceTextView . setText ( Html . fromHtml ( String . format ( getString ( R . string . agree_terms_of_service ) , STRING0 , STRING1 ) ) ) ; \n termsOfServiceTextView . setOnClickListener ( \n new OnClickListener ( ) { \n @ override", "msg_token": "fix a String format error"} {"diff": " public final class CharSeq implements CharSequence , IndexedSeq < Character > , Seria \n COMMENT \n COMMENT \n COMMENT \n - public static CharSeq tabulate ( int n , Function < ? super Integer , Character > f ) { \n + public static CharSeq tabulate ( int n , Function < ? super Integer , ? extends Character > f ) { \n Objects . requireNonNull ( f , STRING0 ) ; \n StringBuilder sb = new StringBuilder ( ) ; \n for ( int i = NUMBER0 ; i < n ; i ++ ) { \n public final class CharSeq implements CharSequence , IndexedSeq < Character > , Seria \n COMMENT \n COMMENT \n COMMENT \n - public static CharSeq fill ( int n , Supplier < Character > s ) { \n + public static CharSeq fill ( int n , Supplier < ? extends Character > s ) { \n return tabulate ( n , anything - > s . get ( ) ) ; \n }", "msg_token": "Change f and s output type in CharSeq to"} {"diff": " public Object [ ] toArray ( Object [ ] a ) { \n { \n a [ i ] = s . first ( ) ; \n } \n - if ( a . length >= count ( ) ) \n + if ( a . length > count ( ) ) \n a [ count ( ) ] = null ; \n return a ; \n }", "msg_token": "fixed bug in ASeq toArray Object"} {"diff": " public class Sender implements Agent \n roundRobinIndex = NUMBER0 ; \n } \n \n + final int roundRobinIndex = this . roundRobinIndex ; \n if ( length > NUMBER0 ) \n { \n int i = roundRobinIndex ;", "msg_token": "Register allocate the roundRobinIndex"} {"diff": " public abstract class FieldAccessor implements Instrumentation { \n \n @ override \n public int hashCode ( ) { \n - return NUMBER0 * ( NUMBER0 * super . hashCode ( ) + fieldLocatorFactory . hashCode ( ) ) + fieldNameExtractor . hashCode ( ) ; \n + return NUMBER0 * ( NUMBER0 * super . hashCode ( ) + fieldLocatorFactory . hashCode ( ) ) + fieldNameExtractor . hashCode ( ) ; \n } \n \n @ override \n public abstract class FieldAccessor implements Instrumentation { \n public Size apply ( MethodVisitor methodVisitor , \n Instrumentation . Context instrumentationContext , \n MethodDescription instrumentedMethod ) { \n - if ( isConstructor ( ) . matches ( instrumentedMethod ) ) { \n + if ( isConstructor ( ) . matches ( instrumentedMethod ) ) { \n throw new IllegalArgumentException ( STRING0 + instrumentedMethod ) ; \n } \n if ( takesArguments ( NUMBER1 ) . and ( not ( returns ( void . class ) ) ) . matches ( instrumentedMethod ) ) {", "msg_token": "Fixed formatting issue"} {"diff": " public class RetryTests extends ESTestCase { \n \n private static class AssertingListener implements ActionListener < BulkResponse > { \n private final CountDownLatch latch ; \n - private int countOnResponseCalled = NUMBER0 ; \n - private Throwable lastFailure ; \n - private BulkResponse response ; \n + private volatile int countOnResponseCalled = NUMBER0 ; \n + private volatile Throwable lastFailure ; \n + private volatile BulkResponse response ; \n \n private AssertingListener ( ) { \n latch = new CountDownLatch ( NUMBER1 ) ;", "msg_token": "Fix visibility issue in RetryTests"} {"diff": " public class XMPP { \n is = url . openStream ( ) ; \n OutgoingFileTransfer . setResponseTimeout ( NUMBER0 ) ; \n transfer . sendStream ( is , url . getFile ( ) , is . available ( ) , message ) ; \n - logger . debug ( STRING0 , new String [ ] { message , attachmentUrl , to } ) ; \n + logger . debug ( STRING0 , ( Object [ ] ) new String [ ] { message , attachmentUrl , to } ) ; \n success = true ; \n } catch ( IOException e ) { \n logger . error ( STRING1 , attachmentUrl , e ) ;", "msg_token": "Fix compiler warning in XMPP action"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove extra imports in blockservice handler integration test"} {"diff": " public class Tethering extends INetworkManagementEventObserver . Stub { \n if ( mTetheredNotification . icon == icon ) { \n return ; \n } \n - notificationManager . cancel ( mTetheredNotification . icon ) ; \n + notificationManager . cancelAsUser ( null , mTetheredNotification . icon , \n + UserHandle . ALL ) ; \n } \n \n Intent intent = new Intent ( ) ;", "msg_token": "Properly cancel Tether notification"} {"diff": " public class DruidDataSource extends DruidAbstractDataSource implements DruidDat \n empty . signal ( ) ; SINGLE \n \n if ( estimate <= NUMBER0 ) { \n - throw new GetConnectionTimeoutException ( ) ; \n + if ( this . createError == null ) { \n + throw new GetConnectionTimeoutException ( createError ) ; \n + } else { \n + throw new GetConnectionTimeoutException ( ) ; \n + } \n } \n \n notEmptyWaitThreadCount ++ ;", "msg_token": "add more error info"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "bug fixed error import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class MockWebServer implements TestRule { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public URL getUrl ( String path ) { \n - return url ( path ) . url ( ) ; \n - } \n - \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated MWS method"} {"diff": " public class WebChromeClient { \n COMMENT \n COMMENT \n COMMENT \n - public void onSelectionStart ( ) { \n + public void onSelectionStart ( WebView view ) { \n + SINGLE \n + SINGLE \n + view . notifySelectDialogDismissed ( ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public void onSelectionDone ( ) { \n + public void onSelectionDone ( WebView view ) { \n } \n \n COMMENT \n public class WebView extends AbsoluteLayout \n setUpSelect ( ) ; \n if ( mNativeClass != NUMBER0 && nativeWordSelection ( x , y ) ) { \n nativeSetExtendSelection ( ) ; \n - getWebChromeClient ( ) . onSelectionStart ( ) ; \n + getWebChromeClient ( ) . onSelectionStart ( this ) ; \n return true ; \n } \n notifySelectDialogDismissed ( ) ; \n public class WebView extends AbsoluteLayout \n COMMENT \n public void selectionDone ( ) { \n if ( mSelectingText ) { \n - getWebChromeClient ( ) . onSelectionDone ( ) ; \n + getWebChromeClient ( ) . onSelectionDone ( this ) ; \n invalidate ( ) ; SINGLE \n notifySelectDialogDismissed ( ) ; \n }", "msg_token": "Cancel test selections when they start if the client hasn t overridden the"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Delete obsolete import"} {"diff": " public class ScrollPaneScrollBarsTest extends GdxTest { \n horizOnlyBottom . add ( horizOnlyBottomScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ; \n vertOnlyLeft . add ( vertOnlyLeftScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ; \n vertOnlyRight . add ( vertOnlyRightScroll ) . expand ( ) . fill ( ) . colspan ( NUMBER0 ) ; \n + \n + for ( ScrollPane pane : scrollPanes ) { \n + pane . setFadeScrollBars ( doFade ) ; \n + pane . setScrollbarsOnTop ( doOnTop ) ; \n + } \n } \n \n public void render ( ) {", "msg_token": "Fix initial scrollpane flag in ScrollbarTest scroll bar are not ontop"} {"diff": " public class SpringSecurityCoreVersion { \n SINGLE \n logger . info ( STRING0 + version ) ; \n if ( ! springVersion . startsWith ( STRING1 ) ) { \n - logger . error ( STRING2 + springVersion ) ; \n + logger . error ( STRING2 \n + + springVersion + STRING3 ) ; \n } \n \n if ( springVersion . compareTo ( STRING4 ) < NUMBER0 ) {", "msg_token": "Expand message on incorrect Spring version to suggest checking the classpath for unwanted jars"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n } \n } \n \n + @ remotableviewmethod \n @ override \n public void setEnabled ( boolean enabled ) { \n if ( enabled == isEnabled ( ) ) {", "msg_token": "add RemotableViewMethod to TextView setEnabled"} {"diff": " public class PGPDataFormatTest extends AbstractPGPDataFormatTest { \n . to ( STRING0 ) ; \n SINGLE \n \n + SINGLE \n PGPDataFormat pgpSignAndEncrypt = new PGPDataFormat ( ) ; \n pgpSignAndEncrypt . setKeyFileName ( keyFileName ) ; \n pgpSignAndEncrypt . setKeyUserid ( keyUserid ) ; \n public class PGPDataFormatTest extends AbstractPGPDataFormatTest { \n . to ( STRING1 ) \n . unmarshal ( pgpVerifyAndDecrypt ) \n . to ( STRING0 ) ; \n + SINGLE \n } \n } ; \n }", "msg_token": "Applied the second patch intended for the documentation with thanks to Daniel Gredler"} {"diff": " \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 package NAMESPACE ; \n \n COMMENT", "msg_token": "Add missing header"} {"diff": " public class BlockLockManager { \n SINGLE \n boolean success ; \n try { \n - success = lock . tryLock ( Constants . SECOND_MS , TimeUnit . MILLISECONDS ) ; \n + success = lock . tryLock ( NUMBER0 , TimeUnit . SECONDS ) ; \n } catch ( InterruptedException ie ) { \n SINGLE \n LOG . error ( STRING0 ) ; \n throw new IOException ( ie . getMessage ( ) , ie . getCause ( ) ) ; \n } \n if ( ! success ) { \n + LOG . error ( STRING1 + blockId + STRING2 + userId + STRING3 ) ; \n throw new IOException ( STRING1 + blockId + STRING2 + userId + STRING3 ) ; \n } \n - lock . lock ( ) ; \n if ( ! mMetaManager . hasBlockMeta ( blockId ) ) { \n lock . unlock ( ) ; \n throw new IOException ( STRING4 + blockId + STRING5 ) ;", "msg_token": "Fix the lock and the log errors"} {"diff": " class CommandResultCallback < T > extends CommandResultBaseCallback < BsonDocument > { \n if ( ! ProtocolHelper . isCommandOk ( response ) ) { \n callback . onResult ( null , ProtocolHelper . getCommandFailureException ( response , getServerAddress ( ) ) ) ; \n } else { \n - callback . onResult ( decoder . decode ( new BsonDocumentReader ( response ) , DecoderContext . builder ( ) . build ( ) ) , null ) ; \n + try { \n + callback . onResult ( decoder . decode ( new BsonDocumentReader ( response ) , DecoderContext . builder ( ) . build ( ) ) , null ) ; \n + } catch ( Throwable t1 ) { \n + callback . onResult ( null , t1 ) ; \n + } \n } \n } \n }", "msg_token": "Catch decoding errors in CommandResultCallback"} {"diff": " public class Constant { \n \n public static final int DESIRED_FAVICON_SIZE = NUMBER0 ; \n \n - public static final String WELCOME_MESSAGE_URL = STRING0 ; \n + public static final String WELCOME_MESSAGE_URL = STRING1 ; \n public static final String WELCOME_MESSAGE_DISPLAY_URL = STRING2 ; \n \n SINGLE", "msg_token": "Corrected a welcome url"} {"diff": " public abstract class Service < T extends Configuration > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public abstract void initialize ( Bootstrap < T > bootstrap ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class Service < T extends Configuration > { \n public abstract void run ( T configuration , Environment environment ) throws Exception ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ suppresswarnings ( STRING0 ) \n - public void initialize ( Bootstrap < T > bootstrap ) { \n - SINGLE \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make Service initialize abstract"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface Fish extends Projectile { } \n + public interface Fish extends Projectile { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public double getBiteChance ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setBiteChance ( double chance ) throws IllegalArgumentException ; \n + }", "msg_token": "Allow fishing success rate to be adjustable"} {"diff": " public class ReaderTagTable { \n return getTagsOfType ( ReaderTagType . FOLLOWED ) ; \n } \n \n + public static ReaderTagList getCustomListTags ( ) { \n + return getTagsOfType ( ReaderTagType . CUSTOM_LIST ) ; \n + } \n + \n private static ReaderTagList getTagsOfType ( ReaderTagType tagType ) { \n String [ ] args = { Integer . toString ( tagType . toInt ( ) ) } ; \n Cursor c = ReaderDatabase . getReadableDb ( ) . rawQuery ( STRING0 , args ) ; \n public class ReaderUpdateService extends Service { \n ReaderTagList localTopics = new ReaderTagList ( ) ; \n localTopics . addAll ( ReaderTagTable . getDefaultTags ( ) ) ; \n localTopics . addAll ( ReaderTagTable . getFollowedTags ( ) ) ; \n + localTopics . addAll ( ReaderTagTable . getCustomListTags ( ) ) ; \n \n if ( ! localTopics . isSameList ( serverTopics ) ) { \n AppLog . d ( AppLog . T . READER , STRING1 ) ;", "msg_token": "Added method to retrieve CUSTOM_LIST tags now included in comparison after parsing read menu"} {"diff": " public class MongoFind extends MongoQuery { \n return this ; \n } \n \n - SINGLE \n public MongoFind order ( MongoSortCriteria sortCriteria ) { \n this . sortCriteria = sortCriteria ; \n return this ; \n public class MongoFind extends MongoQuery { \n return this ; \n } \n \n - public MongoFind hintIndex ( final String idxName ) { \n - throw new UnsupportedOperationException ( ) ; \n + public MongoFind hintIndex ( final String indexName ) { \n + throw new UnsupportedOperationException ( ) ; SINGLE \n } \n \n public MongoFind snapshot ( ) {", "msg_token": "Fixed some TODO comments"} {"diff": " public class AceEditorIdleMonitor \n { \n IdleState state = new IdleState ( type , mouseX_ , mouseY_ , modifiers_ ) ; \n Map < HandlerRegistration , IdleCommand > commandMap = COMMAND_MAP . get ( editor ) ; \n + if ( commandMap == null ) \n + return ; \n + \n for ( Map . Entry < HandlerRegistration , IdleCommand > entry : commandMap . entrySet ( ) ) \n { \n IdleCommand command = entry . getValue ( ) ;", "msg_token": "protect against NULL command map entries"} {"diff": " public class Daemon implements Runnable , Stoppable { \n COMMENT \n COMMENT \n public void start ( ) { \n + LOGGER . lifecycle ( STRING0 ) ; \n lifecycleLock . lock ( ) ; \n try { \n if ( stateCoordinator != null ) { \n public class Daemon implements Runnable , Stoppable { \n COMMENT \n COMMENT \n public void stop ( ) { \n + LOGGER . lifecycle ( STRING1 ) ; \n lifecycleLock . lock ( ) ; \n try { \n stateCoordinator . stop ( ) ; \n public class Daemon implements Runnable , Stoppable { \n COMMENT \n COMMENT \n public void awaitStop ( ) { \n + LOGGER . lifecycle ( STRING2 ) ; \n stateCoordinator . awaitStop ( ) ; \n } \n \n public class Daemon implements Runnable , Stoppable { \n COMMENT \n COMMENT \n public boolean awaitStopOrIdleTimeout ( int idleTimeout ) { \n + LOGGER . lifecycle ( STRING3 , idleTimeout ) ; \n return stateCoordinator . awaitStopOrIdleTimeout ( idleTimeout ) ; \n }", "msg_token": "Add some lifecycle logging to the daemon"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public class View implements ViewDelegate { \n SINGLE \n public void init ( ) { \n mainFrame = new MainFrame ( displayOption ) ; \n - ExtensionHelp . enableHelpKey ( getOutputPanel ( ) , STRING0 ) ; \n \n getWorkbench ( ) . getTabbedWork ( ) . setAlternativeParent ( mainFrame . getPaneDisplay ( ) ) ; \n getWorkbench ( ) . getTabbedStatus ( ) . setAlternativeParent ( mainFrame . getPaneDisplay ( ) ) ; \n public class View implements ViewDelegate { \n public OutputPanel getOutputPanel ( ) { \n if ( outputPanel == null ) { \n outputPanel = new OutputPanel ( ) ; \n + ExtensionHelp . enableHelpKey ( outputPanel , STRING0 ) ; \n } \n return outputPanel ; \n }", "msg_token": "Move output panel help key registration to prevent NPE"} {"diff": " public class TaskViewServiceTest { \n List < PluggableViewModel > viewModels = taskViewService . getTaskViewModels ( ) ; \n \n assertThat ( viewModels . size ( ) , is ( NUMBER0 ) ) ; \n + assertThat ( viewModels . get ( NUMBER1 ) . getModel ( ) , instanceOf ( ExecTask . class ) ) ; \n assertThat ( viewModels . get ( NUMBER2 ) . getModel ( ) , instanceOf ( PluggableTask . class ) ) ; \n assertThat ( viewModels . get ( NUMBER3 ) . getModel ( ) , instanceOf ( PluggableTask . class ) ) ;", "msg_token": "NA fixed build failures"} {"diff": " public class MulticastManager implements ChannelLookupProtocol { \n } else { \n \n if ( targetVertex . getExecutionState ( ) != ExecutionState . RUNNING \n - && targetVertex . getExecutionState ( ) != ExecutionState . FINISHING \n - && targetVertex . getExecutionState ( ) != ExecutionState . READY \n - && targetVertex . getExecutionState ( ) != ExecutionState . STARTING ) { \n + && targetVertex . getExecutionState ( ) != ExecutionState . FINISHING ) { \n return false ; \n } \n } \n } \n } \n \n - if ( verticesToDeploy != null ) { \n + if ( verticesToDeploy != null ) { \n this . scheduler . deployAssignedVertices ( verticesToDeploy ) ; \n return false ; \n } \n - \n + \n return true ; \n }", "msg_token": "Fixed bug in multicast manager"} {"diff": " public abstract class MixinWorld implements World , IMixinWorld { \n \n SINGLE \n DataContainer generatorSettings = this . getProperties ( ) . getGeneratorSettings ( ) ; \n + if ( generatorSettings . contains ( IMixinWorldType . STRING_VALUE ) ) { \n + String options = generatorSettings . getString ( IMixinWorldType . STRING_VALUE ) . get ( ) ; \n + if ( options . equals ( STRING0 ) ) { \n + return ; \n + } \n + } \n SpongeWorldGenerator newGenerator = worldType . createGenerator ( this , generatorSettings ) ; \n \n SINGLE \n public abstract class MixinWorld implements World , IMixinWorld { \n return new SpongeWorldGenerator ( \n SpongeBiomeGenerator . of ( getWorldChunkManager ( ) ) , \n SpongeGeneratorPopulator . of ( world , serverChunkProvider . serverChunkGenerator ) , \n - generatorPopulators , \n - populators ) ; \n + this . generatorPopulators , \n + this . populators ) ; \n } \n \n @ override", "msg_token": "Don t modify generator if there are no options"} {"diff": " public class GhostView extends View { \n mView . mGhostView = this ; \n final ViewGroup parent = ( ViewGroup ) mView . getParent ( ) ; \n setGhostedVisibility ( View . INVISIBLE ) ; \n - parent . mRecreateDisplayList = true ; \n - parent . updateDisplayListIfDirty ( ) ; \n + parent . invalidate ( ) ; \n } \n \n @ override", "msg_token": "Fix crash during Activity Transition with TextureView"} {"diff": " public class WXScrollView extends ScrollView implements Callback , IWXScroller , \n \n getLocationOnScreen ( stickyScrollerP ) ; \n stickyData . getView ( ) . getLocationOnScreen ( stickyViewP ) ; \n - int parentH = stickyData . getParent ( ) . getRealView ( ) . getHeight ( ) ; \n + int parentH = NUMBER0 ; \n + if ( stickyData . getParent ( ) != null && stickyData . getParent ( ) . getRealView ( ) != null ) { \n + stickyData . getParent ( ) . getRealView ( ) . getHeight ( ) ; \n + } \n int stickyViewH = stickyData . getView ( ) . getHeight ( ) ; \n int stickyShowPos = stickyScrollerP [ NUMBER1 ] ; \n int stickyStartHidePos = - parentH + stickyScrollerP [ NUMBER1 ] + stickyViewH ;", "msg_token": "android update np"} {"diff": " public class EarlyCloseServlet extends HttpServlet { \n HttpServletRequestImpl request = ServletRequestContext . requireCurrent ( ) . getOriginalRequest ( ) ; \n if ( connection == null ) { \n connection = request . getExchange ( ) . getConnection ( ) ; \n - } else { \n - if ( connection != request . getExchange ( ) . getConnection ( ) ) { \n - throw new RuntimeException ( STRING0 ) ; \n - } \n + } else if ( ! DefaultServer . isAjp ( ) && ! DefaultServer . isProxy ( ) && connection != request . getExchange ( ) . getConnection ( ) ) { \n + throw new RuntimeException ( STRING0 ) ; \n } \n } \n }", "msg_token": "Fix test when running under proxy"} {"diff": " public class IQBindHandler extends IQHandler { \n Element child = reply . setChildElement ( STRING0 , STRING1 ) ; \n SINGLE \n String resource = packet . getChildElement ( ) . elementTextTrim ( STRING2 ) ; \n - if ( resource == null && resource . length ( ) == NUMBER0 ) { \n + if ( resource == null || resource . length ( ) == NUMBER0 ) { \n SINGLE \n resource = session . getAddress ( ) . getResource ( ) ; \n }", "msg_token": "Fixed NPE when doing anonymous login"} {"diff": " public class UIDropdown < T > extends CoreWidget { \n private static final String LIST = STRING0 ; \n private static final String LIST_ITEM = STRING1 ; \n \n + private UIScrollbar verticalBar = new UIScrollbar ( true ) ; \n + \n private Binding < List < T > > options = new DefaultBinding < > ( new ArrayList < > ( ) ) ; \n private Binding < T > selection = new DefaultBinding < > ( ) ; \n private InteractionListener mainListener = new BaseInteractionListener ( ) { \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class UIDropdownScroll < T > extends UIDropdown { \n - private final int MAX_ITEM_NOSCROLL_COUNT = NUMBER0 ; \n - \n private static final String LIST = STRING0 ; \n private static final String LIST_ITEM = STRING1 ;", "msg_token": "Working version of language selector"} {"diff": " public class AnalyzeStacktraceUtil { \n toolbarActions . add ( new CloseAction ( executor , descriptor , project ) ) ; \n ExecutionManager . getInstance ( project ) . getContentManager ( ) . showRunContent ( executor , descriptor ) ; \n consoleView . allowHeavyFilters ( ) ; \n + if ( consoleFactory == null ) { \n + printStacktrace ( consoleView , text ) ; \n + } \n return descriptor ; \n }", "msg_token": "restore analyze stacktrace"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class Image \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FileChannel fileChannel ( ) \n + { \n + return logBuffers . fileChannel ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Provide access to the FileChannel under an Image"} {"diff": " public class SimpleCameraHost implements CameraHost { \n @ override \n public void configureRecorderProfile ( int cameraId , \n MediaRecorder recorder ) { \n - recorder . setProfile ( CamcorderProfile . get ( cameraId , \n - CamcorderProfile . QUALITY_HIGH ) ) ; \n + if ( CamcorderProfile . hasProfile ( cameraId , \n + CamcorderProfile . QUALITY_HIGH ) ) { \n + recorder . setProfile ( CamcorderProfile . get ( cameraId , \n + CamcorderProfile . QUALITY_HIGH ) ) ; \n + } \n + else if ( CamcorderProfile . hasProfile ( cameraId , \n + CamcorderProfile . QUALITY_LOW ) ) { \n + recorder . setProfile ( CamcorderProfile . get ( cameraId , \n + CamcorderProfile . QUALITY_LOW ) ) ; \n + } \n + else { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n } \n \n @ override", "msg_token": "test the CamcorderProfile before trying it"} {"diff": " public class Job extends Request2 { \n Log . info ( STRING0 ) ; \n } \n else { \n - Log . info ( STRING1 + cols . length + STRING2 ) ; \n + Log . info ( STRING1 + ignored_cols . length + STRING2 ) ; \n } \n }", "msg_token": "Fix cut and paste error in logging of ignored columns"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class XHRTransport extends AbstractTransport { \n AtmosphereResourceImpl resource = session . getAtmosphereResourceImpl ( ) ; \n SINGLE \n if ( resource != null && DefaultBroadcaster . class . isAssignableFrom ( resource . getBroadcaster ( ) . getClass ( ) ) ) { \n - DefaultBroadcaster . class . cast ( resource . getBroadcaster ( ) ) . broadcasterCache . addToCache ( resource . getBroadcaster ( ) . getID ( ) , resource , msg ) ; \n + DefaultBroadcaster . class . cast ( resource . getBroadcaster ( ) ) . \n + broadcasterCache . addToCache ( resource . getBroadcaster ( ) . getID ( ) , resource , \n + new BroadcasterCache . Message ( msg ) ) ; \n } \n } \n break ;", "msg_token": "Fix the build"} {"diff": " public class FrameUtils { \n _wsum += w ; \n } \n } \n - @ override public void reduce ( WeightedMean mrt ) { _wresponse += mrt . _wresponse ; } \n + @ override public void reduce ( WeightedMean mrt ) { \n + _wresponse += mrt . _wresponse ; \n + _wsum += mrt . _wsum ; \n + } \n } \n }", "msg_token": "Fix weighted mean wasn t reducing the sum of weights"} {"diff": " public class GroovyPropertyUtils { \n public static boolean isSimplePropertyGetter ( PsiMethod method , String propertyName ) { \n if ( method == null || method . isConstructor ( ) ) return false ; \n if ( method . getParameterList ( ) . getParametersCount ( ) != NUMBER0 ) return false ; \n - final PsiType type = method . getReturnType ( ) ; \n - if ( type != null && type == PsiType . VOID ) return false ; \n if ( ! isGetterName ( method . getName ( ) ) ) return false ; \n - return propertyName == null || propertyName . equals ( getPropertyNameByGetter ( method ) ) ; \n + return ( propertyName == null || propertyName . equals ( getPropertyNameByGetter ( method ) ) ) && method . getReturnType ( ) != PsiType . VOID ; \n } \n \n public static boolean isSimplePropertySetter ( PsiMethod method ) {", "msg_token": "Changing preconditions order may have significant performance implications"} {"diff": " public class Toolkit { \n SINGLE \n SINGLE \n if ( hasNonAsciiChars ( Base . getJavaHome ( ) . getAbsolutePath ( ) ) ) { \n - msg += STRING0 ; \n + msg += STRING1 + \n + STRING2 ; \n } else { \n msg += STRING3 ; \n }", "msg_token": "how bout a line break"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class ProxyInfoTest { \n @ test \n public void testProxyInfo_createNotRightAfterTheMethod ( ) { \n ProxyProxetta proxetta = ProxyProxetta . withAspects ( aspects ( ) ) ; \n - proxetta . setDebugFolder ( SystemUtil . userHome ( ) ) ; \n + SINGLE \n \n DateDao dateDateProxy = ( DateDao ) proxetta . builder ( DateDao . class ) . newInstance ( ) ;", "msg_token": "Remove bytecode storing from tests"} {"diff": " public class HiveSessionImpl implements HiveSession { \n \n private volatile long lastAccessTime ; \n private volatile long lastIdleTime ; \n - private volatile int pendingCount = NUMBER0 ; \n + private volatile int activeCalls = NUMBER0 ; \n private final Semaphore operationLock ; \n \n \n public class HiveSessionImpl implements HiveSession { \n SINGLE \n sessionState . updateThreadName ( ) ; \n Hive . set ( sessionHive ) ; \n - pendingCount ++ ; \n + activeCalls ++ ; \n lastIdleTime = NUMBER0 ; \n } \n \n public class HiveSessionImpl implements HiveSession { \n if ( userAccess ) { \n lastAccessTime = System . currentTimeMillis ( ) ; \n } \n - pendingCount -- ; \n + activeCalls -- ; \n SINGLE \n SINGLE \n - if ( pendingCount == NUMBER0 && opHandleSet . isEmpty ( ) ) { \n + if ( activeCalls == NUMBER0 && opHandleSet . isEmpty ( ) ) { \n lastIdleTime = System . currentTimeMillis ( ) ; \n } \n }", "msg_token": "Rename pendingCount to activeCalls in HiveSessionImpl for easier understanding"} {"diff": " public class DependencyManager implements InstallShinyEvent . Handler \n Dependency . cranPackage ( STRING0 , STRING1 ) , \n Dependency . cranPackage ( STRING2 , STRING3 ) , \n Dependency . cranPackage ( STRING4 , STRING5 ) , \n + Dependency . cranPackage ( STRING6 , STRING7 ) , \n Dependency . embeddedPackage ( STRING8 ) \n } , \n true , SINGLE", "msg_token": "add yaml as dependency for rsconnect"} {"diff": " public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab \n \n try { \n if ( webSocketHandler == null ) { \n - if ( ! WebSocketProtocolStream . class . isAssignableFrom ( webSocketProtocol . getClass ( ) ) ) { \n + if ( WebSocketProtocolStream . class . isAssignableFrom ( webSocketProtocol . getClass ( ) ) ) { \n List < AtmosphereRequest > list = WebSocketProtocolStream . class . cast ( webSocketProtocol ) . onTextStream ( webSocket , reader ) ; \n dispatch ( webSocket , list ) ; \n } else {", "msg_token": "Class cast exception"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - SINGLE \n + @ ignore ( STRING0 ) \n public class ProxyITest extends WithJetty { \n \n @ test public void", "msg_token": "Ignoring proxy tests"} {"diff": " public class NavigationBarInflaterView extends FrameLayout implements TunerServi \n \n private void inflateButtons ( String [ ] buttons , ViewGroup parent , boolean landscape ) { \n for ( int i = NUMBER0 ; i < buttons . length ; i ++ ) { \n - inflateButton ( buttons [ i ] , parent , landscape ) ; \n + inflateButton ( buttons [ i ] , parent , landscape , i ) ; \n } \n } \n \n public class NavigationBarInflaterView extends FrameLayout implements TunerServi \n } \n \n @ nullable \n - protected View inflateButton ( String buttonSpec , ViewGroup parent , boolean landscape ) { \n + protected View inflateButton ( String buttonSpec , ViewGroup parent , boolean landscape , \n + int indexInParent ) { \n LayoutInflater inflater = landscape ? mLandscapeInflater : mLayoutInflater ; \n float size = extractSize ( buttonSpec ) ; \n String button = extractButton ( buttonSpec ) ;", "msg_token": "Pass button index into inflateButton"} {"diff": " public class GarbageCollectionWarningThread extends Periodical { \n @ override \n public void doRun ( ) { \n for ( final GarbageCollectorMXBean gc : garbageCollectors ) { \n + switch ( gc . getName ( ) ) { \n + case STRING0 : \n + case STRING1 : \n + LOG . debug ( STRING2 , gc . getName ( ) ) ; \n + continue ; \n + } \n + LOG . debug ( STRING3 , gc . getName ( ) , gcWarningThreshold ) ; \n + \n final NotificationEmitter emitter = ( NotificationEmitter ) gc ; \n final NotificationListener listener = new NotificationListener ( ) { \n @ override", "msg_token": "skip gc collection notifications for collectors that run mostly in parallel to the application"} {"diff": " public class SpoutPlayer extends LocalPlayer { \n entity . setPosition ( SpoutUtil . toPoint ( entity . getWorld ( ) , pos ) ) ; \n entity . setPitch ( pitch ) ; \n entity . setYaw ( yaw ) ; \n + player . getNetworkSynchronizer ( ) . setPositionDirty ( ) ; \n } \n \n @ override", "msg_token": "Poke the Spout telporter so the correct packets are sent"} {"diff": " public class CordovaPlugin { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PluginManager { \n COMMENT \n COMMENT \n public boolean onOverrideUrlLoading ( String url ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n for ( PluginEntry entry : this . entryMap . values ( ) ) { \n CordovaPlugin plugin = pluginMap . get ( entry . service ) ; \n if ( plugin != null && plugin . onOverrideUrlLoading ( url ) ) {", "msg_token": "Delete no longer relevant comments about url filter"} {"diff": " public abstract class AbstractGithubTagDownloadedProjectGenerator extends WebPro \n protected abstract String getDisplayName ( ) ; \n \n @ notnull \n - protected abstract String getGithubUserName ( ) ; \n + public abstract String getGithubUserName ( ) ; \n \n @ notnull \n - protected abstract String getGithubRepositoryName ( ) ; \n + public abstract String getGithubRepositoryName ( ) ; \n \n @ override \n @ nullable", "msg_token": "add title for GitHub based projects in WebStorm"} {"diff": " public class TestClusterNames \n } \n \n @ test \n - @ ignore ( STRING0 ) \n + SINGLE \n public void makeSureStoreIdInStoreMatchesZKData ( ) throws Exception \n { \n HighlyAvailableGraphDatabase db0 = db ( NUMBER0 , HaConfig . CONFIG_DEFAULT_HA_CLUSTER_NAME , HaConfig . CONFIG_DEFAULT_PORT ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestStoreCopy \n COMMENT \n COMMENT \n @ test \n + @ ignore ( STRING0 ) \n public void sandboxIsOverwritten ( ) throws Exception \n { \n slave . shutdown ( ) ;", "msg_token": "Try a different combination of ignored tests"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n \n @ override \n public void startLockTaskModeOnCurrent ( ) throws RemoteException { \n - checkCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ) ; \n + enforceCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS , \n + STRING0 ) ; \n ActivityRecord r = null ; \n synchronized ( this ) { \n r = mStackSupervisor . topRunningActivityLocked ( ) ; \n public final class ActivityManagerService extends ActivityManagerNative \n \n @ override \n public void stopLockTaskModeOnCurrent ( ) throws RemoteException { \n - checkCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS ) ; \n + enforceCallingPermission ( android . Manifest . permission . MANAGE_ACTIVITY_STACKS , \n + STRING1 ) ; \n long ident = Binder . clearCallingIdentity ( ) ; \n try { \n stopLockTaskMode ( ) ;", "msg_token": "Enforce permissions on start stopLockTaskModeOnCurrent"} {"diff": " public class OpenExternalDirectoryActivity extends Activity { \n break ; \n } \n } \n + if ( internalRoot == null ) { \n + SINGLE \n + SINGLE \n + Log . e ( TAG , STRING0 + storageVolume . dump ( ) + STRING1 + volumes ) ; \n + return false ; \n + } \n \n SINGLE \n final Intent intent = getIntentForExistingPermission ( activity , isRoot , internalRoot , file ) ;", "msg_token": "Added extra validation for invalid paths"} {"diff": " public abstract class FluidRegistry \n { \n if ( fluidBlocks == null ) \n { \n - fluidBlocks = HashBiMap . create ( ) ; \n + BiMap < Block , Fluid > tmp = HashBiMap . create ( ) ; \n for ( Fluid fluid : fluids . values ( ) ) \n { \n if ( fluid . canBePlacedInWorld ( ) && fluid . getBlock ( ) != null ) \n { \n - fluidBlocks . put ( fluid . getBlock ( ) , fluid ) ; \n + tmp . put ( fluid . getBlock ( ) , fluid ) ; \n } \n } \n + fluidBlocks = tmp ; \n } \n return fluidBlocks . get ( block ) ; \n }", "msg_token": "Fix potential threading issue if FluidRegistry loopupFluidForBlock is called from two threads at the same time before being setup"} {"diff": " public class ExpressionClauseSupport < T > { \n COMMENT \n COMMENT \n COMMENT \n - public T body ( Class < ? > expectedType ) { \n + public T body ( Class expectedType ) { \n return expression ( ExpressionBuilder . bodyExpression ( expectedType ) ) ; \n }", "msg_token": "Fixed the eclipse warning of the AssertionClause"} {"diff": " public class UpgradeTest extends ElasticsearchBackwardsCompatIntegrationTest { \n indexRandom ( true , builder ) ; \n ensureGreen ( indexName ) ; \n } \n + logger . debug ( STRING0 ) ; \n + logClusterState ( ) ; \n + logSegmentsState ( null ) ; \n backwardsCluster ( ) . allowOnAllNodes ( indexNames ) ; \n backwardsCluster ( ) . upgradeAllNodes ( ) ; \n ensureGreen ( ) ; \n + logger . debug ( STRING1 ) ; \n + logClusterState ( ) ; \n + logSegmentsState ( null ) ; \n \n final HttpRequestBuilder httpClient = httpClient ( ) ;", "msg_token": "Adding additional debug info to upgrade test"} {"diff": " import static NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MixedBulkWriteOperation < T > implements AsyncWriteOperation < BulkWrite \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public MixedBulkWriteOperation ( final MongoNamespace namespace , final List < WriteRequest > writeRequests , final boolean ordered , \n public class RemoveRequest extends WriteRequest { \n return filter ; \n } \n \n - SINGLE \n public RemoveRequest multi ( final boolean isMulti ) { \n this . isMulti = isMulti ; \n return this ; \n } \n - SINGLE \n \n public boolean isMulti ( ) { \n return isMulti ;", "msg_token": "removed checkstyle suppression add javadoc"} {"diff": " public class LookupImpl extends LightweightHint implements LookupEx , Disposable \n updateListHeight ( listModel ) ; \n \n myList . setSelectedIndex ( toSelect ) ; \n - return Arrays . equals ( oldModel , items . toArray ( ) ) ; \n + return ! Arrays . equals ( oldModel , items . toArray ( ) ) ; \n } \n \n } \n public class LookupImpl extends LightweightHint implements LookupEx , Disposable \n } \n Rectangle rectangle = calculatePosition ( ) ; \n myMaximumHeight = rectangle . height ; \n - \n + \n if ( myResizePending || itemsChanged ) { \n myResizePending = false ; \n pack ( ) ;", "msg_token": "resize lookup if new items are added slowly"} {"diff": " public class TextAreaPainter extends JComponent implements TabExpander { \n \n SINGLE \n fm = super . getFontMetrics ( plainFont ) ; \n + tabSize = fm . charWidth ( STRING0 ) * Preferences . getInteger ( STRING1 ) ; \n textArea . recalculateVisibleLines ( ) ; \n \n SINGLE \n public class TextAreaPainter extends JComponent implements TabExpander { \n SINGLE \n SINGLE \n \n - tabSize = fm . charWidth ( STRING0 ) * ( ( Integer ) textArea . getDocument ( ) . getProperty ( PlainDocument . tabSizeAttribute ) ) . intValue ( ) ; \n - \n Rectangle clipRect = gfx . getClipBounds ( ) ; \n \n gfx . setColor ( getBackground ( ) ) ;", "msg_token": "Make TextAreaPainter load tab size from Preferences"} {"diff": " public class EditPoiDialogFragment extends DialogFragment { \n Node original = editPoiData . getEntity ( ) ; \n final boolean offlineEdit = mOpenstreetmapUtil instanceof OpenstreetmapLocalUtil ; \n Node node = new Node ( original . getLatitude ( ) , original . getLongitude ( ) , original . getId ( ) ) ; \n - OsmPoint . Action action = node . getId ( ) == - NUMBER0 ? OsmPoint . Action . CREATE : OsmPoint . Action . MODIFY ; \n + OsmPoint . Action action = node . getId ( ) < NUMBER1 ? OsmPoint . Action . CREATE : OsmPoint . Action . MODIFY ; \n for ( Map . Entry < String , String > tag : editPoiData . getTagValues ( ) . entrySet ( ) ) { \n if ( tag . getKey ( ) . equals ( EditPoiData . POI_TYPE_TAG ) ) { \n final PoiType poiType = editPoiData . getAllTranslatedSubTypes ( ) . get ( tag . getValue ( ) . trim ( ) . toLowerCase ( ) ) ;", "msg_token": "Fix poi not found"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class PluginsAdvertiserDialog extends DialogWrapper { \n PluginsAdvertiserDialog ( @ nullable Project project , PluginDownloader [ ] plugins , List < IdeaPluginDescriptor > allPlugins ) { \n super ( project ) ; \n myProject = project ; \n + Arrays . sort ( plugins , new Comparator < PluginDownloader > ( ) { \n + @ override \n + public int compare ( PluginDownloader o1 , PluginDownloader o2 ) { \n + return o1 . getPluginName ( ) . compareToIgnoreCase ( o2 . getPluginName ( ) ) ; \n + } \n + } ) ; \n myUploadedPlugins = plugins ; \n myAllPlugins = allPlugins ; \n setTitle ( STRING0 ) ;", "msg_token": "sort suggested plugins by name"} {"diff": " public class ItemActivity extends BaseActivity { \n return ; \n } \n \n - ( ( TextView ) findViewById ( android . R . id . text2 ) ) . setText ( story . getTitle ( ) ) ; \n + final TextView titleTextView = ( TextView ) findViewById ( android . R . id . text2 ) ; \n + titleTextView . setMaxLines ( Integer . MAX_VALUE ) ; \n + titleTextView . setText ( story . getTitle ( ) ) ; \n ( ( TextView ) findViewById ( R . id . posted ) ) . setText ( story . getDisplayedTime ( this ) ) ; \n if ( story . getKidCount ( ) > NUMBER0 ) { \n Button commentButton = ( Button ) findViewById ( R . id . comment ) ;", "msg_token": "Display full title in item screen"} {"diff": " import static NAMESPACE ; \n public abstract class AbstractCamelEndpointFactoryBean extends AbstractCamelFactoryBean < Endpoint > { \n @ xmlattribute ( required = false ) \n @ deprecated \n - private Boolean singleton = Boolean . FALSE ; \n + private Boolean singleton ; \n @ xmlattribute \n private String uri ; \n @ xmltransient", "msg_token": "avoid outputting a deprecated attribute when marshalling the XML"} {"diff": " public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo \n SVDModel . SVDParameters parms = new SVDModel . SVDParameters ( ) ; \n parms . _train = _parms . _train ; \n parms . _ignored_columns = _parms . _ignored_columns ; \n - parms . _dropConsCols = _parms . _dropConsCols ; \n + parms . _drop_const_cols = _parms . _drop_const_cols ; \n parms . _drop_na20_cols = _parms . _drop_na20_cols ; \n parms . _score_each_iteration = _parms . _score_each_iteration ; \n parms . _useAllFactorLevels = true ; SINGLE \n public class GLRMModel extends Model < GLRMModel , GLRMModel . GLRMParameters , GLRMMode \n double ureg = NUMBER0 ; \n for ( int i = NUMBER0 ; i < u . length ; i ++ ) { \n for ( int j = NUMBER0 ; j < u [ NUMBER0 ] . length ; j ++ ) \n - ureg = regularize ( u [ i ] [ j ] , regularization ) ; \n + ureg += regularize ( u [ i ] [ j ] , regularization ) ; \n } \n return ureg ; \n }", "msg_token": "Fix a few typos"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class CollectingMatchResultSink implements MatchResultSink { \n - private final List < MatchResult > matches = new LinkedList < MatchResult > ( ) ; \n + private final List < MatchResult > matches = new ArrayList < MatchResult > ( ) ; \n \n public void newMatch ( MatchResult result ) { \n matches . add ( result ) ;", "msg_token": "use ArrayList instead of LinkedList"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Added missing import"} {"diff": " public class Peer { \n } \n \n private void processPong ( Pong m ) { \n - log . info ( STRING0 , this , m . getNonce ( ) ) ; \n SINGLE \n for ( PendingPing ping : pendingPings ) { \n if ( m . getNonce ( ) == ping . nonce ) {", "msg_token": "Delete unneeded pong logging"} {"diff": " public class Http11NioProcessor extends AbstractHttp11Processor { \n } \n \n try { \n - Object sslO = sslSupport . getPeerCertificateChain ( true ) ; \n + SINGLE \n + SINGLE \n + Object sslO = sslSupport . getPeerCertificateChain ( false ) ; \n if ( sslO != null ) { \n request . setAttribute \n ( SSLSupport . CERTIFICATE_KEY , sslO ) ;", "msg_token": "Save a few cycles"} {"diff": " public abstract class IdeaTestCase extends TestCase implements DataProvider { \n myAssertionsInTestDetected = false ; \n } \n finally { \n - tearDown ( ) ; \n + try { \n + tearDown ( ) ; \n + } catch ( Throwable th ) { th . printStackTrace ( ) ; } \n } \n } \n catch ( Throwable throwable ) {", "msg_token": "fixed issue with nested exception during tear down causing initial exception to be forgotten"} {"diff": " import NAMESPACE ; \n @ state ( \n name = STRING0 , \n storages = { \n + SINGLE \n @ storage ( file = StoragePathMacros . APP_CONFIG + STRING1 ) , \n @ storage ( file = StoragePathMacros . APP_CONFIG + STRING2 ) \n } ,", "msg_token": "add note about HttpConfigurable config storages"} {"diff": " public class TraktTask extends AsyncTask < Void , Void , Response > { \n return r ; \n } \n case WATCHED_MOVIE : { \n - return manager . movieService ( ) \n + Response r = manager . movieService ( ) \n . seen ( new MovieService . Movies ( new MovieService . SeenMovie ( tmdbId ) ) ) ; \n + r . message = mContext . getString ( R . string . action_watched ) ; \n + return r ; \n } \n case UNWATCHED_MOVIE : { \n - return manager . movieService ( ) \n + Response r = manager . movieService ( ) \n . unseen ( new MovieService . Movies ( new MovieService . SeenMovie ( tmdbId ) ) ) ; \n + r . message = mContext . getString ( R . string . action_unwatched ) ; \n + return r ; \n } \n case WATCHLIST_MOVIE : { \n Response r = manager . movieService ( ) . watchlist ( new MovieService . Movies (", "msg_token": "Display localized message when flagging movie seen unseen on trakt"} {"diff": " public abstract class ProtocolProviderFactory \n COMMENT \n public boolean loadAccount ( AccountID accountID ) \n { \n - String userID = accountID . getUserID ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + String userID = accountID \n + . getAccountPropertyString ( ProtocolProviderFactory . USER_ID ) ; \n \n ProtocolProviderService service = createService ( userID , accountID ) ; \n \n public class TestAccountInstallation \n sipAccount2Properties . get ( ProtocolProviderFactory . USER_ID ) \n , sipAccount2Properties ) ; \n \n - \n SINGLE \n SINGLE \n try { \n public class TestAccountInstallation \n \n SINGLE \n SINGLE \n - \n osgiFilter = \n STRING0 + ProtocolProviderFactory . PROTOCOL + STRING1 + ProtocolNames . SIP + STRING2 \n + STRING3 + ProtocolProviderFactory . USER_ID \n public class TestAccountInstallation \n fail ( osgiFilter + STRING4 ) ; \n } \n \n - assertTrue ( STRING5 \n + assertTrue ( STRING6 \n + STRING7 \n , serRefs != null && serRefs . length > NUMBER0 ) ;", "msg_token": "Fix sip tests"} {"diff": " public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder < Ex \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public ExplainRequestBuilder setFetchSource ( boolean fetch ) { \n FetchSourceContext context = request . fetchSourceContext ( ) ; \n public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder < Ex \n return this ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public ExplainRequestBuilder operationThreaded ( boolean threadedOperation ) { \n - request ( ) . operationThreaded ( threadedOperation ) ; \n - return this ; \n - } \n - \n protected void doExecute ( ActionListener < ExplainResponse > listener ) { \n if ( sourceBuilder != null ) { \n request . source ( sourceBuilder ) ;", "msg_token": "remove operationThreaded setter from ExplainRequestBuilder already available in base class SingleShardOperationRequestBuilder"} {"diff": " public class DTDModelLoader implements ModelLoader { \n if ( ! visitedElements . contains ( nel ) ) { \n elements [ ptr ++ ] = nel ; \n } \n - } else if ( hasTextContents ) { \n - fd1 . clType = FieldDesc . STR ; \n - fd1 . type = STRING0 ; \n - fd1 . def = STRING1 ; \n } else { \n fd1 . clType = FieldDesc . BOOL ; \n fd1 . type = STRING2 ;", "msg_token": "removed identical branch"} {"diff": " public class GLM extends ModelBuilder < GLMModel , GLMParameters , GLMOutput > { \n if ( _betaLB != null && _betaUB != null ) \n for ( int i = NUMBER0 ; i < _betaLB . length ; ++ i ) \n if ( ! ( _betaLB [ i ] <= _betaUB [ i ] ) ) \n - throw new IllegalArgumentException ( STRING0 + _betaLB [ i ] + STRING1 + _betaUB [ i ] ) ; \n + throw new IllegalArgumentException ( STRING2 + _betaLB [ i ] + STRING1 + _betaUB [ i ] ) ; \n } \n \n public BetaConstraint filterExpandedColumns ( int [ ] activeCols ) {", "msg_token": "Fixed typo in error message"} {"diff": " public class Sprite extends TextureRegion { \n this . rotation = degrees ; \n dirty = true ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public float getRotation ( ) { \n + return rotation ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "who killed Sprite getRotation"} {"diff": " public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo \n } \n \n private boolean isTheAmountOfTextTooBig ( final int textLength ) { \n - return textLength > myBuffer . getCyclicBufferSize ( ) / consoleTooMuchTextBufferRatio ; \n + return myBuffer . isUseCyclicBuffer ( ) && textLength > myBuffer . getCyclicBufferSize ( ) / consoleTooMuchTextBufferRatio ; \n } \n \n private void clearHyperlinkAndFoldings ( ) {", "msg_token": "don t show too much output when console cyclic buffer is disabled"} {"diff": " public interface RILConstants { \n SINGLE \n int RIL_ERRNO_INVALID_RESPONSE = - NUMBER0 ; \n \n - int MAX_INT = NUMBER1 ; \n - \n SINGLE \n int SUCCESS = NUMBER2 ; \n COMMENT", "msg_token": "Removed the unused RIL constant"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface ConfigurationManager extends ExportedDialog { \n + public interface ConfigurationManager extends ApplicationWindow { \n \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface PopupDialog extends ExportedDialog { \n + public interface PopupDialog extends ApplicationWindow { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "implement now ApplicationWindow interface"} {"diff": " final class ServerControllerService implements Service < ServerController > { \n COMMENT \n public synchronized void start ( final StartContext context ) throws StartException { \n final ServiceContainer container = context . getController ( ) . getServiceContainer ( ) ; \n - final TrackingServiceTarget serviceTarget = new TrackingServiceTarget ( container ) ; \n + final TrackingServiceTarget serviceTarget = new TrackingServiceTarget ( container . subTarget ( ) ) ; \n serviceTarget . addDependency ( context . getController ( ) . getName ( ) ) ; \n final DelegatingServiceRegistry serviceRegistry = new DelegatingServiceRegistry ( container ) ; \n final Bootstrap . Configuration configuration = this . configuration ;", "msg_token": "Use a subtarget to avoid contaminating the container"} {"diff": " public enum OGlobalConfiguration { \n } \n } ) , \n \n - PROFILER_AUTODUMP_INTERVAL ( STRING0 , STRING1 , \n + PROFILER_AUTODUMP_INTERVAL ( STRING0 , STRING2 , \n Integer . class , NUMBER0 , new OConfigurationChangeCallback ( ) { \n public void change ( final Object iCurrentValue , final Object iNewValue ) { \n OProfiler . getInstance ( ) . setAutoDump ( ( Integer ) iNewValue ) ;", "msg_token": "Fixed documentation of parameter"} {"diff": " public class Mongo { \n \n DefaultConnectionProviderSettings connectionProviderSettings = DefaultConnectionProviderSettings . builder ( ) \n . maxSize ( options . getConnectionsPerHost ( ) ) \n - . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) - \n - options . getConnectionsPerHost ( ) ) \n + . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) ) \n . maxWaitTime ( options . getMaxWaitTime ( ) , TimeUnit . MILLISECONDS ) \n . build ( ) ; \n DefaultConnectionSettings connectionSettings = DefaultConnectionSettings . builder ( ) \n public final class MongoClients { \n \n DefaultConnectionProviderSettings connectionProviderSettings = DefaultConnectionProviderSettings . builder ( ) \n . maxSize ( options . getConnectionsPerHost ( ) ) \n - . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) \n - - options . getConnectionsPerHost ( ) ) \n + . maxWaitQueueSize ( options . getConnectionsPerHost ( ) * options . getThreadsAllowedToBlockForConnectionMultiplier ( ) ) \n . maxWaitTime ( options . getMaxWaitTime ( ) , TimeUnit . MILLISECONDS ) \n . build ( ) ; \n DefaultConnectionSettings connectionSettings = DefaultConnectionSettings . builder ( )", "msg_token": "Fixed bug in setting maxWaitQueueSize"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class DanmakuFilters { \n \n public class DanmakuFilters { \n } \n \n if ( totalSizeInScreen < mMaximumSize || danmaku . isShown ( ) \n - || ( mLastSkipped != null && ( danmaku . time - mLastSkipped . time > NUMBER0 ) ) ) { \n + || ( mLastSkipped != null && ( danmaku . time - mLastSkipped . time > DanmakuFactory . MAX_DANMAKU_DURATION / NUMBER1 ) ) ) { \n mLastSkipped = danmaku ; \n return false ; \n }", "msg_token": "avoid magic number"} {"diff": " public class NotificationsListFragment extends Fragment \n mFilterRadioGroup . setVisibility ( View . GONE ) ; \n mSwipeRefreshLayout . setVisibility ( View . GONE ) ; \n } else { \n - mNotesAdapter . reloadNotesFromDBAsync ( ) ; \n + getNotesAdapter ( ) . reloadNotesFromDBAsync ( ) ; \n } \n }", "msg_token": "avoid potential NPE"} {"diff": " public class Call extends Node { \n @ override \n public Type transform ( State s ) { \n \n - SINGLE \n - if ( func instanceof Attribute ) { \n - Attribute afun = ( Attribute ) func ; \n - if ( afun . attr . id . equals ( STRING0 ) ) { \n - func = afun . target ; \n - } \n - } \n - \n Type fun = transformExpr ( func , s ) ; \n List < Type > pos = resolveList ( args , s ) ; \n Map < String , Type > hash = new HashMap < > ( ) ;", "msg_token": "remove ruby residual"} {"diff": " public class Tools { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public static String getOOoLabel ( final String label ) { \n return label . replaceAll ( STRING0 , STRING1 ) . replaceAll ( STRING2 , STRING3 ) ; \n }", "msg_token": "deprecate a method not used anymore"} {"diff": " public class BottomSheetLayout extends FrameLayout { \n private OnLayoutChangeListener sheetViewOnLayoutChangeListener ; \n private View dimView ; \n private boolean interceptContentTouch = true ; \n + private int currentSheetViewHeight ; \n \n COMMENT \n private float downY ; \n public class BottomSheetLayout extends FrameLayout { \n } ) ; \n \n SINGLE \n + currentSheetViewHeight = sheetView . getMeasuredHeight ( ) ; \n sheetViewOnLayoutChangeListener = new OnLayoutChangeListener ( ) { \n @ override \n public void onLayoutChange ( View sheetView , int left , int top , int right , int bottom , int oldLeft , int oldTop , int oldRight , int oldBottom ) { \n + int newSheetViewHeight = sheetView . getMeasuredHeight ( ) ; \n if ( state != State . HIDDEN ) { \n - if ( bottom < oldBottom ) { \n + if ( newSheetViewHeight < currentSheetViewHeight ) { \n setSheetTranslation ( sheetView . getMeasuredHeight ( ) ) ; \n } \n } \n + currentSheetViewHeight = newSheetViewHeight ; \n } \n } ; \n sheetView . addOnLayoutChangeListener ( sheetViewOnLayoutChangeListener ) ;", "msg_token": "Keep track of sheetView s height"} {"diff": " public class GroupLocalServiceImpl implements GroupLocalService { \n \n Layout layout = LayoutLocalServiceUtil . addLayout ( \n group . getGroupId ( ) , userId , false , Layout . DEFAULT_PARENT_LAYOUT_ID , \n - name , Layout . TYPE_PORTLET , false , null ) ; \n + name , Layout . TYPE_PORTLET , false , StringPool . BLANK ) ; \n \n LayoutTypePortlet layoutTypePortlet = \n ( LayoutTypePortlet ) layout . getLayoutType ( ) ;", "msg_token": "Fix null pointer"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n if ( ! cancelCurrent ) { \n if ( updateCurrent ) { \n if ( rec . key . requestIntent != null ) { \n - rec . key . requestIntent . replaceExtras ( intents != null ? intents [ NUMBER0 ] : null ) ; \n + rec . key . requestIntent . replaceExtras ( intents != null ? \n + intents [ intents . length - NUMBER1 ] : null ) ; \n } \n if ( intents != null ) { \n intents [ intents . length - NUMBER1 ] = rec . key . requestIntent ;", "msg_token": "Fix a bug with updating extras in a PendingIntent with an intent stack"} {"diff": " public class ConfigImportHelper { \n } \n \n public static boolean isInstallationHome ( String installationHome ) { \n + String mainJarName = StringUtil . toLowerCase ( ApplicationNamesInfo . getInstance ( ) . getProductName ( ) ) + STRING0 ; \n SINGLE \n - boolean quickTest = new File ( new File ( installationHome , STRING1 ) , STRING2 ) . exists ( ) && \n + boolean quickTest = new File ( new File ( installationHome , STRING1 ) , mainJarName ) . exists ( ) && \n new File ( installationHome , BIN_FOLDER ) . exists ( ) ; \n if ( ! quickTest ) return false ;", "msg_token": "accept RubyMine installation home"} {"diff": " public interface MetaObjectProtocol { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n MetaMethod getMetaMethod ( String name , Object [ ] args ) ;", "msg_token": "improved javadoc for MetaObjectProtocol getMetaMethod"} {"diff": " public final class GsmDataConnectionTracker extends DataConnectionTracker { \n SINGLE \n SINGLE \n String apnStr = STRING0 ; \n - if ( apnContext . getWaitngApns ( ) != null \n - && ! apnContext . getWatingApns ( ) . isEmpty ( ) ) { \n + if ( apnContext . getWaitingApns ( ) != null \n + && ! apnContext . getWaitingApns ( ) . isEmpty ( ) ) { \n apnStr = apnContext . getWaitingApns ( ) . get ( NUMBER0 ) . apn ; \n } \n log ( STRING1 + apnStr ) ;", "msg_token": "Fix a build break"} {"diff": " public class HistogramLogWriter { \n COMMENT \n public void outputStartTime ( final long startTimeMsec ) { \n log . format ( Locale . US , STRING0 , \n - startTimeMsec / FLOAT0 , \n + startTimeMsec / FLOAT0 , \n ( new Date ( startTimeMsec ) ) . toString ( ) ) ; \n } \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void outputBaseTime ( final long baseTimeMsec ) { \n + log . format ( Locale . US , STRING1 , \n + baseTimeMsec / FLOAT0 ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add optional outputBaseTime for log writers that wish to explicitly specify a base time"} {"diff": " public class BlockChain { \n } \n } \n \n - private void setChainHead ( StoredBlock chainHead ) { \n + private void setChainHead ( StoredBlock chainHead ) throws BlockStoreException { \n + blockStore . setChainHead ( chainHead ) ; \n this . chainHead = chainHead ; \n - try { \n - blockStore . setChainHead ( chainHead ) ; \n - } catch ( BlockStoreException e ) { \n - throw new RuntimeException ( e ) ; \n - } \n } \n \n COMMENT", "msg_token": "Propagate BlockStoreException in BlockChain setChainHead"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class BeanPath < T > extends SimpleExpression < T > implements Path < T > { \n \n private static final long serialVersionUID = - NUMBER0 ; \n \n - private final Map < Class < ? > , Object > casts = new HashMap < Class < ? > , Object > ( ) ; \n + private final Map < Class < ? > , Object > casts = new ConcurrentHashMap < Class < ? > , Object > ( ) ; \n \n @ nullable \n private final PathInits inits ;", "msg_token": "Make BeanPath casts threadsafe"} {"diff": " public final class ProtoCompileAction { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void registerAction ( Optional < ProtoCompileAction > protoCompileActionOptional ) { \n + if ( protoCompileActionOptional . isPresent ( ) ) { \n + protoCompileActionOptional . get ( ) . registerAction ( ) ; \n + } \n + } \n + \n public ProtoCompileAction ( \n RuleContext ruleContext , \n SupportData supportData , \n public final class ProtoCompileAction { \n this . compilerTarget = compilerTarget ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void registerAction ( ) { \n + SpawnAction . Builder action = createAction ( protoCompileCommandLine ( ) . build ( ) ) ; \n + ruleContext . registerAction ( action . build ( ruleContext ) ) ; \n + } \n + \n public SpawnAction . Builder createAction ( CommandLine commandLine ) { \n SpawnAction . Builder builder = \n new SpawnAction . Builder ( ) . addTransitiveInputs ( supportData . getTransitiveImports ( ) ) ;", "msg_token": "Add convenience methods to register a proto compile action"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class BatchEndpointIT \n . withConfig ( GraphDatabaseSettings . auth_enabled , STRING0 ) ; \n \n @ test \n + @ ignore ( STRING1 ) \n public void requestsShouldNotFailWhenHttpLoggingIsOn ( ) \n { \n SINGLE", "msg_token": "Mute this test which is wrong and aggravated by the logging change"} {"diff": " public class CommandException extends RuntimeException { \n OP_NOT_ALLOWED_DURING_VOICE_CALL , \n OP_NOT_ALLOWED_BEFORE_REG_NW , \n SMS_FAIL_RETRY , \n + ILLEGAL_SIM_OR_ME , \n } \n \n public CommandException ( Error e ) { \n public class CommandException extends RuntimeException { \n return new CommandException ( Error . OP_NOT_ALLOWED_BEFORE_REG_NW ) ; \n case RILConstants . SMS_SEND_FAIL_RETRY : \n return new CommandException ( Error . SMS_FAIL_RETRY ) ; \n + case RILConstants . ILLEGAL_SIM_OR_ME : \n + return new CommandException ( Error . ILLEGAL_SIM_OR_ME ) ; \n default : \n Log . e ( STRING0 , STRING1 + ril_errno ) ; \n return new CommandException ( Error . INVALID_RESPONSE ) ; \n public interface RILConstants { \n int OP_NOT_ALLOWED_BEFORE_REG_NW = NUMBER0 ; / * request is not allowed before device registers to \n COMMENT \n COMMENT \n + int ILLEGAL_SIM_OR_ME = NUMBER1 ; / * network selection failure due \n + to wrong SIM / ME and no \n + COMMENT \n \n COMMENT \n COMMENT", "msg_token": "Add ILLEGAL_SIM_OR_ME error code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class MatcherContext < V > implements Context < V > { \n } \n \n public boolean inPredicate ( ) { \n - return matcher instanceof TestMatcher || parent != null && parent . inPredicate ( ) ; \n + return matcher instanceof TestMatcher || matcher instanceof TestNotMatcher || \n + parent != null && parent . inPredicate ( ) ; \n } \n \n public boolean isNodeSuppressed ( ) {", "msg_token": "Fixed Context inPredicate not working underneath TestNotMatchers"} {"diff": " public class MapActivity extends AccessibleActivity implements \n SINGLE \n final int newZoom = mapView . getZoom ( ) + stp ; \n if ( newZoom > NUMBER0 ) { \n - AccessibleToast . makeText ( this , STRING0 , Toast . LENGTH_SHORT ) . show ( ) ; SINGLE \n + AccessibleToast . makeText ( this , R . string . edit_tilesource_maxzoom , Toast . LENGTH_SHORT ) . show ( ) ; SINGLE \n return ; \n } \n mapView . getAnimatedDraggingThread ( ) . startZooming ( newZoom , changeLocation ) ;", "msg_token": "Used string from resouces"} {"diff": " import static NAMESPACE \n \n public class CherryPicker { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String CHERRY_PICK_HEAD_FILE = STRING0 ; \n + \n private static final Logger LOG = Logger . getInstance ( CherryPicker . class ) ; \n \n @ notnull private final Project myProject ; \n public class CherryPicker { \n } \n \n private void removeCherryPickHead ( @ notnull GitRepository repository ) { \n - File cherryPickHeadFile = new File ( repository . getGitDir ( ) . getPath ( ) , STRING0 ) ; \n + File cherryPickHeadFile = new File ( repository . getGitDir ( ) . getPath ( ) , CHERRY_PICK_HEAD_FILE ) ; \n final VirtualFile cherryPickHead = myPlatformFacade . getLocalFileSystem ( ) . refreshAndFindFileByIoFile ( cherryPickHeadFile ) ; \n \n if ( cherryPickHead != null && cherryPickHead . exists ( ) ) {", "msg_token": "introduce constant add javadoc"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "remove android imports"} {"diff": " public class NearCacheTest extends HazelcastTestSupport { \n } \n \n @ test \n + COMMENT \n + COMMENT \n + COMMENT \n public void testCacheLocalEntries ( ) { \n int n = NUMBER0 ; \n String mapName = STRING0 ;", "msg_token": "add note to NearCacheTest testCacheLocalEntries"} {"diff": " public class CallLog { \n public static final String NUMBER = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String COUNTRY_ISO = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ContactsContract { \n COMMENT \n COMMENT \n public static final String LABEL = STRING2 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String NORMALIZED_NUMBER = STRING3 ; \n } \n \n COMMENT \n public final class ContactsContract { \n public static final String NUMBER = DATA ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String NORMALIZED_NUMBER = DATA4 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Store the current country in call log"} {"diff": " public class PrettyCommentsPrinter extends JCTree . Visitor { \n printDocComment ( tree ) ; \n printExpr ( tree . mods ) ; \n printTypeParameters ( tree . typarams ) ; \n + if ( tree . typarams != null && tree . typarams . length ( ) > NUMBER0 ) print ( STRING0 ) ; \n if ( tree . name == tree . name . table . fromChars ( STRING1 . toCharArray ( ) , NUMBER0 , NUMBER1 ) ) { \n print ( enclClassName != null ? enclClassName : tree . name ) ; \n } else { \n public class ValWeirdTypes < Z > { \n } \n } ; \n } \n - public < T extends Number > void testTypeParams ( List < T > param ) { \n + public < T extends Number > void testTypeParams ( List < T > param ) { \n final T t = param . get ( NUMBER0 ) ; \n final Z z = fieldList . get ( NUMBER0 ) ; \n final java . util . List < T > k = param ;", "msg_token": "delombok now prints a space in between method type args and return type"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ runwith ( DefaultServer . class ) \n + @ ajpignore \n public class PreChunkedResponseTransferCodingTestCase { \n \n private static final String MESSAGE = STRING0 ;", "msg_token": "Fix AJP test issue"} {"diff": " public class GitStashUtils { \n consumer . consume ( new StashInfo ( s . boundedToken ( STRING0 ) , s . boundedToken ( STRING0 ) , s . line ( ) . trim ( ) ) ) ; \n } \n } \n - \n - SINGLE \n - public static void dropStash ( Project project , VirtualFile root ) { \n - final GitSimpleHandler handler = new GitSimpleHandler ( project , root , GitCommand . STASH ) ; \n - handler . setNoSSH ( true ) ; \n - handler . addParameters ( STRING1 ) ; \n - String output = null ; \n - try { \n - output = handler . run ( ) ; \n - } catch ( VcsException e ) { \n - LOG . info ( STRING2 + output , e ) ; \n - GitUIUtil . notifyMessage ( project , STRING3 , \n - STRING4 , \n - WARNING , false , handler . errors ( ) ) ; \n - } \n - } \n - \n }", "msg_token": "remove unused code"} {"diff": " public class AHBottomNavigation extends FrameLayout { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public boolean isTranslucentNavigationEnabled ( ) { \n + return translucentNavigationEnabled ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setTranslucentNavigationEnabled ( boolean translucentNavigationEnabled ) { \n + this . translucentNavigationEnabled = translucentNavigationEnabled ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added translucentNavigationEnabled getter setter"} {"diff": " public class OperatorPivotTest { \n ts . awaitTerminalEvent ( ) ; \n \n System . out . println ( STRING0 + ts . getOnNextEvents ( ) . size ( ) + STRING1 + ts . getOnNextEvents ( ) ) ; \n - System . out . println ( STRING2 + maxOuterConcurrency . get ( ) ) ; \n - assertTrue ( maxOuterConcurrency . get ( ) > NUMBER0 ) ; SINGLE \n + if ( Runtime . getRuntime ( ) . availableProcessors ( ) >= NUMBER1 ) { \n + System . out . println ( STRING2 + maxOuterConcurrency . get ( ) ) ; \n + assertTrue ( maxOuterConcurrency . get ( ) > NUMBER2 ) ; SINGLE \n + } \n System . out . println ( STRING3 + maxGroupConcurrency . get ( ) ) ; \n assertTrue ( maxGroupConcurrency . get ( ) == NUMBER2 ) ; SINGLE", "msg_token": "Fix Non Deterministic Pivot Test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n public class HeaderXssProtectionScanner extends PluginPassiveScanner {", "msg_token": "removed unused packages"} {"diff": " public class CreateAliasExecution \n QualifiedTableName remoteTableName = createQualifiedTableName ( stateMachine . getSession ( ) , statement . getRemote ( ) ) ; \n \n Optional < TableHandle > remoteTableHandle = metadataManager . getTableHandle ( remoteTableName ) ; \n - checkState ( ! remoteTableHandle . isPresent ( ) , STRING0 , remoteTableName ) ; \n + checkState ( remoteTableHandle . isPresent ( ) , STRING0 , remoteTableName ) ; \n Optional < String > remoteConnectorId = metadataManager . getConnectorId ( remoteTableHandle . get ( ) ) ; \n Preconditions . checkArgument ( remoteConnectorId . isPresent ( ) , STRING1 , remoteTableName ) ;", "msg_token": "Fix reversed precondition that broke aliases"} {"diff": " public class MaterialDialog extends DialogBase implements View . OnClickListener , \n public MaterialDialog build ( ) { \n return new MaterialDialog ( this ) ; \n } \n + \n + public MaterialDialog show ( ) { \n + MaterialDialog dialog = new MaterialDialog ( this ) ; \n + dialog . show ( ) ; \n + return dialog ; \n + } \n } \n \n \n public class MaterialDialog extends DialogBase implements View . OnClickListener , \n public static interface FullCallback extends Callback { \n void onNeutral ( MaterialDialog dialog ) ; \n } \n - } \n + }", "msg_token": "Added a convenience method"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class OFunction { \n Map < Object , Object > args = null ; \n \n if ( iArgs . length > NUMBER0 ) { \n - args = new HashMap < Object , Object > ( ) ; \n + args = new LinkedHashMap < Object , Object > ( ) ; \n for ( int i = NUMBER0 ; i < iArgs . length ; ++ i ) { \n final Object argValue = ORecordSerializerStringAbstract . getTypeValue ( iArgs [ i ] . toString ( ) ) ;", "msg_token": "fixed bug on passed parameters"} {"diff": " public class MainActivity extends AppCompatActivity implements GoogleApiClient . C \n \n public void onConnected ( Bundle connectionHint ) { \n Log . i ( TAG , STRING0 ) ; \n - \n + SINGLE \n ConfigApi . FetchConfigRequest request = new ConfigApi . FetchConfigRequest . Builder ( ) \n . addCustomVariable ( STRING1 , STRING2 ) \n . build ( ) ; \n + SINGLE \n + SINGLE \n Config . ConfigApi . fetchConfig ( mClient , request ) \n . setResultCallback ( new ResultCallback < ConfigApi . FetchConfigResult > ( ) { \n @ override \n public void onResult ( ConfigApi . FetchConfigResult fetchConfigResult ) { \n Log . i ( TAG , STRING3 ) ; \n - int statusCode = fetchConfigResult . getStatus ( ) . getStatusCode ( ) ; \n if ( fetchConfigResult . getStatus ( ) . isSuccess ( ) ) { \n long price = NUMBER0 ; \n boolean isPromo = \n public class MainActivity extends AppCompatActivity implements GoogleApiClient . C \n } \n } \n } ) ; \n + SINGLE \n } \n \n @ override", "msg_token": "Add regions for include code"} {"diff": " public class MediaDriver implements AutoCloseable \n return this ; \n } \n \n - public Context eventCodes ( final long eventCodes ) \n - { \n - this . eventCodes = eventCodes ; \n - return this ; \n - } \n - \n public Context eventBufferSize ( final int size ) \n { \n this . eventBufferSize = size ;", "msg_token": "delete dead code"} {"diff": " class PreferredProperties \n . map ( Optional : : get ) \n . collect ( toImmutableSet ( ) ) ; \n \n - SINGLE \n - if ( newPartitioningColumns . isEmpty ( ) ) { \n + SINGLE \n + if ( ! partitioningColumns . isEmpty ( ) && newPartitioningColumns . isEmpty ( ) ) { \n return Optional . empty ( ) ; \n } \n \n public abstract class AbstractTestQueries \n } \n \n @ test \n + public void testRollupOverUnion ( ) \n + throws Exception \n + { \n + assertQuery ( STRING0 + \n + STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 , \n + STRING8 + \n + STRING9 + \n + STRING10 + \n + STRING11 ) ; \n + } \n + \n + @ test \n public void testIntersect ( ) \n throws Exception \n {", "msg_token": "Fix PreferredProperties translation when partitioning on empty set"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class StatusResultMatchers { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public ResultMatcher isMovedTemporarily ( ) { \n return matcher ( HttpStatus . MOVED_TEMPORARILY ) ; \n }", "msg_token": "Suppress deprecation warning in StatusResultMatchers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n public class PathCompiler { \n \n - private static final Logger logger = LoggerFactory . getLogger ( PathCompiler . class ) ; \n - \n private static final char DOC_CONTEXT = STRING0 ; \n private static final char EVAL_CONTEXT = STRING1 ; \n private static final char OPEN_SQUARE_BRACKET = STRING2 ; \n public class PathCompiler { \n } \n } \n } \n - \n - \n -", "msg_token": "removed unused logger"} {"diff": " import NAMESPACE ; \n try { \n SwingUtilities . invokeAndWait ( new Runnable ( ) { \n public void run ( ) { \n - ProjectUtil . closeProject ( ourProject ) ; \n + if ( ourProject != null ) { \n + ProjectUtil . closeProject ( ourProject ) ; \n + } \n } \n } ) ; \n }", "msg_token": "do not dispose LightTest project if light test was not run"} {"diff": " public abstract class BaseCppTest { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 \n + + STRING4 \n + STRING5 \n + STRING6 \n + STRING7", "msg_token": "properly escape templates"} {"diff": " public class ShardCompactionManager \n compactionDiscoveryService . scheduleWithFixedDelay ( ( ) - > { \n try { \n SINGLE \n - SECONDS . sleep ( ThreadLocalRandom . current ( ) . nextInt ( NUMBER0 , NUMBER1 ) ) ; \n + long interval = ( long ) compactionDiscoveryInterval . convertTo ( SECONDS ) . getValue ( ) ; \n + SECONDS . sleep ( ThreadLocalRandom . current ( ) . nextLong ( NUMBER0 , interval ) ) ; \n discoverShards ( ) ; \n } \n catch ( InterruptedException e ) {", "msg_token": "Fix jitter for shard compaction discovery"} {"diff": " public class RootbeerCompiler { \n writeJimpleFile ( app_class ) ; \n } \n \n + COMMENT \n for ( SootClass soot_class : kernel_classes ) { \n SootMethod kernel_method = soot_class . getMethod ( STRING0 ) ; \n DfsInfo dfs_info = FastWholeProgram . v ( ) . getDfsInfo ( kernel_method ) ; \n public class RootbeerCompiler { \n writeJimpleFile ( cls . getClassName ( ) ) ; \n } \n } \n + COMMENT \n \n List < String > added_classes = RootbeerScene . v ( ) . getAddedClasses ( ) ; \n for ( String cls : added_classes ) {", "msg_token": "trimming classes output"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "CrossOriginFilter javadoc says exposeHeaders but should be exposedHeaders"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n if ( iDatabaseURL . startsWith ( OEngineRemote . NAME ) ) { \n SINGLE \n final String dbURL = iDatabaseURL . substring ( OEngineRemote . NAME . length ( ) + NUMBER0 ) ; \n - new OServerAdmin ( dbURL ) . connect ( iUserName , iUserPassword ) . deleteDatabase ( ) ; \n + serverAdmin = new OServerAdmin ( dbURL ) . connect ( iUserName , iUserPassword ) ; \n + serverAdmin . deleteDatabase ( ) ; \n disconnect ( ) ; \n } else { \n SINGLE", "msg_token": "Fixed bug on drop database for remote connections"} {"diff": " class ActivityUtils { \n \n private final Instrumentation inst ; \n private ActivityMonitor activityMonitor ; \n - private Activity activity , storedActivity ; ; \n + private Activity activity ; \n private final Sleeper sleeper ; \n private ArrayList < Activity > activityList = new ArrayList < Activity > ( ) ; \n \n class ActivityUtils { \n if ( activityMonitor . getLastActivity ( ) != null ) \n activity = activityMonitor . getLastActivity ( ) ; \n } \n - \n + Activity storedActivity ; \n for ( int i = NUMBER0 ; i < activityList . size ( ) ; i ++ ) { \n storedActivity = activityList . get ( i ) ; \n if ( storedActivity . getClass ( ) . getName ( ) . equals (", "msg_token": "Changed member variable to local variable"} {"diff": " import static NAMESPACE ; \n \n public class TestCase { \n \n - public static final String DEFAULT_URI = STRING0 ; \n + public static final String DEFAULT_URI = STRING1 ; \n public static final String MONGODB_URI_SYSTEM_PROPERTY_NAME = STRING2 ; \n private static MongoClientURI mongoClientURI ;", "msg_token": "Backing out an errant change"} {"diff": " \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 + \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n @ api ( value = STRING0 , description = STRING1 ) \n @ path ( STRING2 ) \n public class StreamRuleResource extends RestResource { \n - private static final Logger LOG = LoggerFactory . getLogger ( StreamResource . class ) ; \n + private static final Logger LOG = LoggerFactory . getLogger ( StreamRuleResource . class ) ; \n \n @ post \n @ timed", "msg_token": "Just correcting wrong logger class"} {"diff": " public abstract class LightInspectionTestCase extends LightCodeInsightFixtureTes \n \n @ override \n protected void setUp ( ) throws Exception { \n - System . out . println ( STRING0 ) ; \n super . setUp ( ) ; \n \n for ( String environmentClass : getEnvironmentClasses ( ) ) { \n - System . out . println ( STRING1 + environmentClass ) ; \n myFixture . addClass ( environmentClass ) ; \n } \n myFixture . enableInspections ( getInspection ( ) ) ;", "msg_token": "remove debugging statements"} {"diff": " public interface CentralAuthenticationService { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added since to the getTicketGrantingTicket"} {"diff": " public class WebView extends AbsoluteLayout \n mWebViewCore . sendMessage ( EventHub . SET_SCROLL_OFFSET , \n nativeMoveGeneration ( ) , mUserScroll ? NUMBER0 : NUMBER1 , pos ) ; \n mLastVisibleRectSent = rect ; \n + mPrivateHandler . removeMessages ( SWITCH_TO_LONGPRESS ) ; \n } \n Rect globalRect = new Rect ( ) ; \n if ( getGlobalVisibleRect ( globalRect ) \n public class WebView extends AbsoluteLayout \n if ( mNativeClass == NUMBER1 ) { \n return false ; \n } \n + mInitialHitTestResult = null ; \n mLastCursorTime = time ; \n mLastCursorBounds = nativeGetCursorRingBounds ( ) ; \n boolean keyHandled", "msg_token": "abandon long press on scroll clear hit on keydown"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Checkstyle fix Added file header"} {"diff": " public class FileInfo implements org . apache . thrift . TBase < FileInfo , FileInfo . _Fie \n private boolean isCacheable ; SINGLE \n private boolean isPersisted ; SINGLE \n private List < Long > blockIds ; SINGLE \n - public int inMemoryPercentage ; SINGLE \n + private int inMemoryPercentage ; SINGLE \n private long lastModificationTimeMs ; SINGLE \n private long ttl ; SINGLE \n private String userName ; SINGLE \n public class PinCommandTest extends AbstractTfsShellTest { \n Assert . assertTrue ( fileExist ( new TachyonURI ( filePathC ) ) ) ; \n \n SINGLE \n - int fileAInMemoryPercentage = mTfs . getInfo ( fileA ) . inMemoryPercentage ; \n - int fileBInMemoryPercentage = mTfs . getInfo ( fileB ) . inMemoryPercentage ; \n + int fileAInMemoryPercentage = mTfs . getInfo ( fileA ) . getInMemoryPercentage ( ) ; \n + int fileBInMemoryPercentage = mTfs . getInfo ( fileB ) . getInMemoryPercentage ( ) ; \n Assert . assertEquals ( NUMBER0 , fileAInMemoryPercentage ) ; \n Assert . assertTrue ( STRING0 + fileBSize + STRING1 , \n fileBInMemoryPercentage < NUMBER0 ) ;", "msg_token": "Modify the member of FileInfo from public to private"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ publicevolving \n public interface StoppableFunction { \n COMMENT \n COMMENT", "msg_token": "hotfix Annotate StoppableFunction as PublicEvolving"} {"diff": " public final class UseHandler { \n int length = schema . length ( ) ; \n if ( length > NUMBER0 ) { \n if ( schema . charAt ( NUMBER0 ) == STRING0 && schema . charAt ( length - NUMBER1 ) == STRING0 ) { \n - schema = schema . substring ( NUMBER1 , length - NUMBER2 ) ; \n + schema = schema . substring ( NUMBER1 , length - NUMBER1 ) ; \n } \n }", "msg_token": "fix bug Unknown database"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaExternalDocumentationTest extends PlatformTestCase { \n return documentationComponent . getText ( ) ; \n } \n finally { \n + JBPopup hint = documentationComponent . getHint ( ) ; \n + if ( hint != null ) Disposer . dispose ( hint ) ; \n Disposer . dispose ( documentationComponent ) ; \n } \n } \n public class DocumentationComponent extends JPanel implements Disposable , DataPr \n myHint = hint ; \n } \n \n + public JBPopup getHint ( ) { \n + return myHint ; \n + } \n + \n public JComponent getComponent ( ) { \n return myEditorPane ; \n }", "msg_token": "do not leak project from JavaExternalDocumentationTest"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove unused imports"} {"diff": " public abstract class ButterKnifeController extends RxController { \n protected void onDestroyView ( View view ) { \n super . onDestroyView ( view ) ; \n unbinder . unbind ( ) ; \n + unbinder = null ; \n } \n \n }", "msg_token": "Fixed leak in demo app"} {"diff": " public abstract class DomInvocationHandler < T extends AbstractDomChildDescription \n } \n \n protected final void detach ( ) { \n - final XmlElement element = getXmlElement ( ) ; \n setXmlElement ( null ) ; \n - \n - if ( element != null ) { \n - myManager . cacheHandler ( getCacheKey ( ) , element , null ) ; \n - } \n } \n \n final SemKey getCacheKey ( ) {", "msg_token": "don t clear sem cache manually"} {"diff": " public class StrokeFont extends Font { \n SINGLE \n SINGLE \n \n + @ override \n protected void updateTextBounds ( final String pCharacterAsString ) { \n this . mStrokePaint . getTextBounds ( pCharacterAsString , NUMBER0 , NUMBER1 , this . mTextBounds ) ; \n final int inset = - ( int ) FloatMath . floor ( this . mStrokeWidth * FLOAT0 ) ; \n this . mTextBounds . inset ( inset , inset ) ; \n } \n \n - protected void drawLetter ( final String pCharacterAsString , final int pLeft , final int pTop ) { \n + @ override \n + protected void drawLetter ( final String pCharacterAsString , final float pLeft , final float pTop ) { \n if ( ! this . mStrokeOnly ) { \n super . drawLetter ( pCharacterAsString , pLeft , pTop ) ; \n }", "msg_token": "Fixed bug in StrokeFont"} {"diff": " public class XIoBridge extends XHook { \n return ; \n \n SINGLE \n - if ( isRestricted ( param ) ) \n + if ( isRestricted ( param , mFileName ) ) \n param . setResult ( new FileNotFoundException ( ) ) ; \n } \n }", "msg_token": "check restricted for file name instead of method name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove incorrect import"} {"diff": " public class CursorToMessage { \n case NAME : \n mAddress = new Address ( email , name ) ; \n break ; \n + default : \n + mAddress = new Address ( email ) ; \n } \n } \n return mAddress ;", "msg_token": "Adding default case"} {"diff": " public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n SINGLE \n networkHealNextTime = System . currentTimeMillis ( ) + HEAL_TIMEOUT_PERIOD ; \n \n + SINGLE \n + ZWaveNode node = zController . getNode ( healing . nodeId ) ; \n + if ( node != null ) { \n + ZWaveWakeUpCommandClass wakeupCommandClass = ( ZWaveWakeUpCommandClass ) node \n + . getCommandClass ( CommandClass . WAKE_UP ) ; \n + \n + if ( wakeupCommandClass != null && wakeupCommandClass . isAwake ( ) == false ) { \n + SINGLE \n + logger . debug ( STRING0 , healing . nodeId ) ; \n + return ; \n + } \n + } \n + \n SINGLE \n healing . retryCnt ++ ; \n if ( healing . retryCnt >= HEAL_MAX_RETRIES ) {", "msg_token": "Defer heal when device goes back to sleep"} {"diff": " public class XPath { \n throw new IllegalArgumentException ( STRING0 + path , ioe ) ; \n } \n XPathLexer lexer = new XPathLexer ( in ) { \n + @ override \n public void recover ( LexerNoViableAltException e ) { throw e ; } \n } ; \n lexer . removeErrorListeners ( ) ; \n public class JavaScriptTarget extends Target { \n \n } \n \n + @ override \n public boolean wantsBaseListener ( ) { \n return false ; \n } \n \n + @ override \n public boolean wantsBaseVisitor ( ) { \n return false ; \n } \n \n + @ override \n public boolean supportsOverloadedMethods ( ) { \n return false ; \n } \n public class TreeViewer extends JComponent { \n \n SINGLE \n WindowListener exitListener = new WindowAdapter ( ) { \n + @ override \n public void windowClosing ( WindowEvent e ) { \n prefs . putInt ( DIALOG_WIDTH_PREFS_KEY , ( int ) dialog . getSize ( ) . getWidth ( ) ) ; \n prefs . putInt ( DIALOG_HEIGHT_PREFS_KEY , ( int ) dialog . getSize ( ) . getHeight ( ) ) ;", "msg_token": "add Override to hush warnings"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZooKeeperConfigurationSource implements WatchedConfigurationSource , \n } \n \n public void close ( ) { \n - Closeables . closeQuietly ( pathChildrenCache ) ; \n + try { \n + Closeables . close ( pathChildrenCache , true ) ; \n + } catch ( IOException exc ) { \n + logger . warn ( STRING0 , exc ) ; \n + } \n } \n }", "msg_token": "Remove usage of Guava method removed in future versions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class MoreExecutors { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - static < T > T invokeAnyImpl ( ListeningExecutorService executorService , \n + COMMENT \n Collection < ? extends Callable < T > > tasks , boolean timed , long nanos ) \n throws InterruptedException , ExecutionException , TimeoutException { \n int ntasks = tasks . size ( ) ;", "msg_token": "Add an executor service that automatically retries tasks on failure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public final class NpmMojo extends AbstractMojo { \n throw new MojoFailureException ( e . getMessage ( ) ) ; \n } \n } \n - \n - public static void main ( String [ ] args ) throws TaskRunnerException { \n - final Logger logger = NOPLogger . NOP_LOGGER ; \n - new NpmRunner ( logger , Platform . guess ( ) , new File ( STRING0 ) ) . execute ( STRING1 ) ; \n - } \n }", "msg_token": "Remove accidental main method"} {"diff": " public class ConnectPlugin extends CordovaPlugin { \n callbackContext . error ( STRING0 ) ; \n } \n return true ; \n - < < < < < < < HEAD \n } else if ( action . equals ( STRING1 ) ) { \n callbackContext . success ( Session . getActiveSession ( ) . getState ( ) . toString ( ) ) ; \n return true ;", "msg_token": "removed HEAD line which was left after fixing merge conflicts"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderPostListFragment extends Fragment \n RelativeLayout . LayoutParams . MATCH_PARENT ) ) ; \n ReaderUtils . layoutBelow ( rootView , mBlogInfoView . getId ( ) , R . id . view_actionbar_spacer ) ; \n \n - SINGLE \n - SINGLE \n - mMshotSpacerView = ReaderUtils . addListViewHeader ( mListView , mBlogInfoView . getMshotHeight ( ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + int spacerHeight = mBlogInfoView . getMshotHeight ( ) + DisplayUtils . dpToPx ( container . getContext ( ) , NUMBER0 ) ; \n + mMshotSpacerView = ReaderUtils . addListViewHeader ( mListView , spacerHeight ) ; \n + \n + SINGLE \n mMshotSpacerView . setTag ( MSHOT_SPACER_TAG ) ; \n \n SINGLE", "msg_token": "Added fudge factor to initial spacer height"} {"diff": " class IndexInserter \n ImmutableList . Builder < ColumnInfo > columnBuilder = ImmutableList . builder ( ) ; \n ImmutableMap . Builder < Long , Integer > indexBuilder = ImmutableMap . builder ( ) ; \n ImmutableMap . Builder < Long , JDBCType > typeBuilder = ImmutableMap . builder ( ) ; \n - StringJoiner nameJoiner = new StringJoiner ( STRING0 , STRING0 , STRING1 ) . setEmptyValue ( STRING1 ) ; \n - StringJoiner valueJoiner = new StringJoiner ( STRING0 , STRING0 , STRING1 ) . setEmptyValue ( STRING1 ) ; \n + StringJoiner nameJoiner = new StringJoiner ( STRING0 ) ; \n + StringJoiner valueJoiner = new StringJoiner ( STRING0 ) ; \n int index = NUMBER0 ; \n \n nameJoiner . add ( STRING2 ) . add ( STRING3 ) ;", "msg_token": "Fix Raptor index insertion"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class InsetDrawable extends Drawable implements Drawable . Callback { \n } \n \n @ override \n + public boolean getOutline ( @ nonnull Outline outline ) { \n + return mInsetState . mDrawable . getOutline ( outline ) ; \n + } \n + \n + @ override \n public ConstantState getConstantState ( ) { \n if ( mInsetState . canConstantState ( ) ) { \n mInsetState . mChangingConfigurations = getChangingConfigurations ( ) ;", "msg_token": "Add outline support to InsetDrawable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class JFreeChartDialog extends javax . swing . JDialog { \n \n private ChartPanel chartPanel ; \n - private static final int MAX_DIMENSION = NUMBER0 ; \n + private static final int MAX_DIMENSION = NUMBER1 ; \n \n COMMENT \n COMMENT", "msg_token": "Reduce JFreeChartDialog maximum zoom"} {"diff": " public class CoreActivator implements BundleActivator { \n file . getParentFile ( ) . mkdirs ( ) ; \n try { \n IOUtils . write ( content , new FileOutputStream ( file ) ) ; \n - logger . info ( STRING0 , file . getAbsolutePath ( ) , content ) ; \n + logger . debug ( STRING0 , file . getAbsolutePath ( ) , content ) ; \n } catch ( FileNotFoundException e ) { \n logger . error ( STRING1 + file . getPath ( ) + STRING2 , e ) ; \n } catch ( IOException e ) {", "msg_token": "changed loglevel of success notification to DEBUG"} {"diff": " public class DefaultTraceEventMessageTest extends ContextTestSupport { \n exchange . getIn ( ) . setBody ( new File ( STRING0 ) ) ; \n DefaultTraceEventMessage em = new DefaultTraceEventMessage ( new Date ( ) , null , exchange ) ; \n \n - assertEquals ( STRING1 , STRING2 , em . getBody ( ) ) ; \n + assertEquals ( STRING1 , STRING3 + File . separator + STRING4 , em . getBody ( ) ) ; \n \n exchange . getIn ( ) . setBody ( new ByteArrayInputStream ( STRING0 . getBytes ( ) ) ) ; \n em = new DefaultTraceEventMessage ( new Date ( ) , null , exchange ) ;", "msg_token": "Fix unit test so it runs on all platforms"} {"diff": " public class SourceMapConsumerV3Test extends TestCase { \n assertEquals ( STRING0 , sources [ NUMBER0 ] ) ; \n } \n \n + public void testMap ( ) throws Exception { \n + String sourceMap = STRING1 \n + + STRING2 \n + + STRING3 \n + + STRING4 \n + + STRING5 \n + + STRING6 \n + + STRING7 \n + + STRING8 \n + + STRING9 \n + + STRING10 \n + + STRING11 \n + + STRING12 \n + + STRING13 \n + + STRING14 \n + + STRING15 \n + + STRING16 \n + + STRING17 \n + + STRING18 \n + + STRING19 ; \n + \n + SourceMapConsumerV3 consumer = new SourceMapConsumerV3 ( ) ; \n + consumer . parse ( sourceMap ) ; \n + \n + } \n + \n public void testSourcesWithRoot ( ) throws Exception { \n String sourceMap = STRING20 + \n STRING21 +", "msg_token": "Add a test that would have caught the Gson breakage"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WikipediaQuickCheck { \n } \n \n private String getContent ( URL wikipediaUrl ) throws IOException { \n - try ( InputStream contentStream = ( InputStream ) wikipediaUrl . getContent ( ) ) { \n - return StringTools . streamToString ( contentStream , STRING0 ) ; \n + try { \n + HttpURLConnection conn = ( HttpURLConnection ) wikipediaUrl . openConnection ( ) ; \n + conn . setRequestMethod ( STRING1 ) ; \n + conn . setConnectTimeout ( NUMBER0 ) ; \n + conn . setReadTimeout ( NUMBER0 ) ; \n + conn . connect ( ) ; \n + try ( InputStream contentStream = ( InputStream ) conn . getContent ( ) ) { \n + return StringTools . streamToString ( contentStream , STRING0 ) ; \n + } \n + } catch ( SocketTimeoutException e ) { \n + throw new RuntimeException ( STRING2 + wikipediaUrl , e ) ; \n } \n }", "msg_token": "set timeouts for accessing Wikipedia API to hopefully make community languagetool org more stable"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DropAnOutOfMemoryErrorAction extends DumbAwareAction { \n } \n \n public void actionPerformed ( AnActionEvent e ) { \n + Object [ ] array = new Object [ Integer . MAX_VALUE ] ; \n + for ( int i = NUMBER0 ; i < array . length ; i ++ ) { \n + array [ i ] = new Object [ Integer . MAX_VALUE ] ; \n + } \n throw new OutOfMemoryError ( ) ; \n } \n }", "msg_token": "Throw real OutOfMemoryError"} {"diff": " public class PerformanceWatcher implements ApplicationComponent { \n } \n \n private static void deleteOldThreadDumps ( ) { \n - File allLogsDir = new File ( PathManager . getSystemPath ( ) , STRING0 ) ; \n + File allLogsDir = new File ( PathManager . getLogPath ( ) ) ; \n if ( allLogsDir . isDirectory ( ) ) { \n final String [ ] dirs = allLogsDir . list ( new FilenameFilter ( ) { \n public boolean accept ( final File dir , final String name ) {", "msg_token": "use correct log path when deleting old thread dumps"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class RealtimePlumber implements Plumber \n sinkInterval . getStart ( ) , \n sinkInterval . getEnd ( ) , \n versioningPolicy . getVersion ( sinkInterval ) , \n - new NoneShardSpec ( ) \n + schema . getShardSpec ( ) \n ) , \n IndexIO . loadIndex ( segmentDir ) \n ) ,", "msg_token": "fix wrong shard spec"} {"diff": " public class StringUtil { \n @ notnull public static String capitalize ( @ notnull String s ) { \n if ( s . length ( ) == NUMBER0 ) return s ; \n if ( s . length ( ) == NUMBER1 ) return s . toUpperCase ( ) ; \n - if ( s . length ( ) > NUMBER1 && Character . isUpperCase ( s . charAt ( NUMBER1 ) ) ) return s ; \n + if ( s . length ( ) > NUMBER1 && Character . isUpperCase ( s . charAt ( NUMBER0 ) ) ) return s ; \n return Character . toUpperCase ( s . charAt ( NUMBER0 ) ) + s . substring ( NUMBER1 ) ; \n }", "msg_token": "StringUtil capitalize fix"} {"diff": " public class BottomBar extends FrameLayout implements View . OnClickListener , View \n selectTab ( newTab , animate ) ; \n \n updateSelectedTab ( position ) ; \n - shiftingMagic ( oldTab , newTab , false ) ; \n + shiftingMagic ( oldTab , newTab , animate ) ; \n } \n \n COMMENT", "msg_token": "Make shiftingMagic use animate parameter"} {"diff": " public class GithubSettings implements PersistentStateComponent < GithubSettings . S \n } \n \n private void setPassword ( @ notnull String password , boolean rememberPassword ) { \n - PasswordSafe . getInstance ( ) . setPassword ( GithubSettings . class , GITHUB_SETTINGS_PASSWORD_KEY , password , ! rememberPassword ) ; \n + if ( ! rememberPassword ) return ; \n + PasswordSafe . getInstance ( ) . setPassword ( GithubSettings . class , GITHUB_SETTINGS_PASSWORD_KEY , password ) ; \n } \n \n private static boolean isValidGitAuth ( @ notnull GithubAuthData auth ) {", "msg_token": "do not store password in memory provider if save password checkbox disabled"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BytecodeAnalysisIndex extends FileBasedIndexExtension < Long , IdEquat \n private static final SmartLongKeyDescriptor KEY_DESCRIPTOR = new SmartLongKeyDescriptor ( ) ; \n \n private static final int ourInternalVersion = NUMBER0 ; \n - private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , isEnabledByDefault ( ) ) ; \n - \n - private static boolean isEnabledByDefault ( ) { \n - Application application = ApplicationManager . getApplication ( ) ; \n - return application . isInternal ( ) || application . isUnitTestMode ( ) ; \n - } \n + private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , true ) ; \n \n @ notnull \n @ override", "msg_token": "enable BytecodeAnalysisIndex by default"} {"diff": " public class MimeUtility { \n { STRING0 , STRING1 } , \n { STRING2 , STRING3 } , \n { STRING4 , STRING5 } , \n + { STRING6 , STRING7 } , \n { STRING8 , STRING9 } , \n { STRING10 , STRING11 } , \n { STRING12 , STRING13 } ,", "msg_token": "Add pkpass MIME type"} {"diff": " public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O \n \n public OClass createClass ( final String iClassName , final OClass iSuperClass , final OStorage . CLUSTER_TYPE iType ) { \n if ( getDatabase ( ) . getTransaction ( ) . isActive ( ) ) \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 + iClassName + STRING2 ) ; \n \n int clusterId = getDatabase ( ) . getClusterIdByName ( iClassName ) ; \n if ( clusterId == - NUMBER0 )", "msg_token": "Improved exception message when a class cannot be created because TX is active"} {"diff": " public class InterpolationTest extends GdxTest { \n Gdx . gl . glClearColor ( FLOAT0 , FLOAT0 , FLOAT0 , NUMBER0 ) ; \n renderer = new ShapeRenderer ( ) ; \n \n - Skin skin = new Skin ( Gdx . files . internal ( STRING0 ) ) ; \n + skin = new Skin ( Gdx . files . internal ( STRING0 ) ) ; \n \n stage = new Stage ( ) ; \n resetPositions ( ) ;", "msg_token": "fixed stupid NPE"} {"diff": " public final class BuildConfiguration { \n public List < Map . Entry < String , String > > pluginCoptList ; \n \n @ option ( name = STRING0 , \n - defaultValue = STRING1 , \n + defaultValue = STRING2 , \n category = STRING3 , \n help = STRING4 ) \n public boolean stampBinaries ; \n public abstract class BuildViewTestCase extends FoundationTestCase { \n ruleClassProvider . getConfigurationOptions ( ) ) ) ; \n try { \n List < String > configurationArgs = new ArrayList < > ( ) ; \n + SINGLE \n + configurationArgs . add ( STRING5 ) ; SINGLE \n configurationArgs . add ( STRING6 ) ; \n configurationArgs . addAll ( getAnalysisMock ( ) . getOptionOverrides ( ) ) ;", "msg_token": "Set stamping to false by default i e nostamp"} {"diff": " public class CommentActions { \n new Thread ( ) { \n @ override \n public void run ( ) { \n - XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) , blog . getHttppassword ( ) ) ; \n - \n final boolean success = ApiHelper . editComment ( blog , comment , newStatus ) ; \n \n if ( success ) {", "msg_token": "Remove unused code"} {"diff": " import NAMESPACE ; \n \n public class DocumentCommitThread extends DocumentCommitProcessor implements Runnable , Disposable { \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n - private static final String NAME = STRING1 ; \n \n private final ExecutorService executor = new BoundedTaskExecutor ( PooledThreadExecutor . INSTANCE , JobSchedulerImpl . CORES_COUNT , this ) ; \n \n public class DocumentCommitThread extends DocumentCommitProcessor implements Run \n \n String indent = new SimpleDateFormat ( STRING2 ) . format ( new Date ( ) ) + \n ( SwingUtilities . isEventDispatchThread ( ) ? STRING3 : \n - Thread . currentThread ( ) . getName ( ) . equals ( NAME ) ? STRING4 : \n STRING5 ) ; \n @ nonnls \n String s = indent + \n public class ThreadTracker { \n wellKnownOffenders . add ( STRING6 ) ; \n wellKnownOffenders . add ( STRING7 ) ; SINGLE \n wellKnownOffenders . add ( STRING8 ) ; \n - wellKnownOffenders . add ( STRING1 ) ; \n wellKnownOffenders . add ( STRING9 ) ; \n wellKnownOffenders . add ( STRING10 ) ; SINGLE \n wellKnownOffenders . add ( STRING11 ) ;", "msg_token": "no more Document commit thread"} {"diff": " public class GeometryBatchFactory { \n Geometry geom = new Geometry ( ) ; \n Mesh mesh = new Mesh ( ) ; \n mergeGeometries ( geometries , mesh , atlas ) ; \n + mesh . updateCounts ( ) ; \n + mesh . updateBound ( ) ; \n geom . setMesh ( mesh ) ; \n \n Material mat = new Material ( mgr , STRING0 ) ;", "msg_token": "fix moved update calls"} {"diff": " public class PackagePrivateAccess extends BaseColumnAccess { \n \n public static final String classSuffix = STRING0 ; \n \n - private final String elementPackageName ; \n - \n private final ClassName helperClassName ; \n \n private static final Map < ClassName , List < String > > helperUsedMethodMap = Maps . newHashMap ( ) ; \n public class PackagePrivateAccess extends BaseColumnAccess { \n } \n \n public PackagePrivateAccess ( String elementPackageName , String separator , String className ) { \n - \n - this . elementPackageName = elementPackageName ; \n helperClassName = ClassName . get ( elementPackageName , className + separator + classSuffix ) ; \n }", "msg_token": "removed unused var"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SettingsConverter { \n ChainResolver chainResolver = new ChainResolver ( ) ; \n chainResolver . setName ( CHAIN_RESOLVER_NAME ) ; \n chainResolver . add ( buildResolver ) ; \n + SINGLE \n + chainResolver . setChangingPattern ( STRING0 ) ; \n + chainResolver . setChangingMatcher ( PatternMatcher . REGEXP ) ; \n + \n for ( Object classpathResolver : classpathResolvers ) { \n chainResolver . add ( ( DependencyResolver ) classpathResolver ) ; \n }", "msg_token": "Fixed bug with not picking up the latest Maven snapshots"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class DiffNotifications { \n - @ deprecated @ notnull public static final JPanel INSERTED_CONTENT = createInsertedContent ( ) ; \n - @ deprecated @ notnull public static final JPanel REMOVED_CONTENT = createRemovedContent ( ) ; \n - @ deprecated @ notnull public static final JPanel EQUAL_CONTENTS = createEqualContents ( ) ; \n - @ deprecated @ notnull public static final JPanel ERROR = createError ( ) ; \n - @ deprecated @ notnull public static final JPanel OPERATION_CANCELED = createOperationCanceled ( ) ; \n - @ deprecated @ notnull public static final JPanel DIFF_TOO_BIG = createDiffTooBig ( ) ; \n - \n @ notnull \n public static JPanel createInsertedContent ( ) { \n return createNotification ( STRING0 , TextDiffType . INSERTED . getColor ( null ) ) ;", "msg_token": "remove deprecated code"} {"diff": " public class UpcomingFragment extends ListFragment implements LoaderManager . Load \n } \n } ) ; \n \n - viewHolder . episode . setText ( mCursor . getString ( UpcomingQuery . TITLE ) ) ; \n + SINGLE \n + viewHolder . show . setText ( mCursor . getString ( UpcomingQuery . SHOW_TITLE ) ) ; \n \n SINGLE \n final String number = Utils . getEpisodeNumber ( mPrefs , seasonNumber , episodeNumber ) ; \n - viewHolder . show . setText ( number + STRING0 + mCursor . getString ( UpcomingQuery . SHOW_TITLE ) ) ; \n + viewHolder . episode . setText ( number + STRING0 + mCursor . getString ( UpcomingQuery . TITLE ) ) ; \n \n SINGLE \n String network = STRING1 ;", "msg_token": "Fix mixed up episode and show text view in upcoming"} {"diff": " public class DelegatingFuture < V > implements ICompletableFuture < V > { \n public void andThen ( ExecutionCallback < V > callback , Executor executor ) { \n future . andThen ( callback , executor ) ; \n } \n - } \n + }", "msg_token": "fixed checkstyle error"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n } \n \n for ( ElevationPoint p : elevationPoints ) { \n - MapUtils . addToMapList ( extraElevationData . data , street , p ) ; \n - MapUtils . addToMapList ( extraElevationData . data , backStreet , p . fromBack ( length ) ) ; \n + if ( street != null ) { \n + MapUtils . addToMapList ( extraElevationData . data , street , p ) ; \n + } \n + if ( backStreet != null ) { \n + MapUtils . addToMapList ( extraElevationData . data , backStreet , p . fromBack ( length ) ) ; \n + } \n } \n }", "msg_token": "fix elevation handling for cases of truly one way streets"} {"diff": " public class AppCompiler { \n public void compile ( ) throws IOException { \n TreeSet < Clazz > compileQueue = getRootClasses ( ) ; \n Set < Clazz > linkClasses = new HashSet < Clazz > ( ) ; \n - while ( ! compileQueue . isEmpty ( ) ) { \n + while ( ! compileQueue . isEmpty ( ) && ! Thread . currentThread ( ) . isInterrupted ( ) ) { \n Clazz clazz = compileQueue . pollFirst ( ) ; \n if ( ! linkClasses . contains ( clazz ) ) { \n compile ( clazz , compileQueue , linkClasses ) ; \n linkClasses . add ( clazz ) ; \n } \n } \n + if ( Thread . currentThread ( ) . isInterrupted ( ) ) { \n + return ; \n + } \n \n if ( linkClasses . contains ( config . getClazzes ( ) . load ( TRUSTED_CERTIFICATE_STORE_CLASS ) ) ) { \n if ( config . getCacerts ( ) != null ) {", "msg_token": "Allow compilation of classes in AppCompiler to be canceled using Thread interrupt"} {"diff": " public abstract class FocusCommand extends ActiveRunnable implements Expirable { \n } \n \n public final FocusCommand saveAllocation ( ) { \n - if ( Registry . is ( STRING0 ) ) { \n - myAllocation = new Exception ( ) ; \n - } \n + myAllocation = new Exception ( ) ; \n return this ; \n }", "msg_token": "diagnostics for focus timeout saves allocation in focus command"} {"diff": " public class StandardSession \n \n if ( ! isValidInternal ( ) ) { \n throw new IllegalStateException \n - ( sm . getString ( STRING0 ) ) ; \n + ( sm . getString ( STRING1 ) ) ; \n } \n \n return ( this . lastAccessedTime ) ;", "msg_token": "Fix that StandardSession getLastAccessedTime uses correct exception message"} {"diff": " public class WindowedDataStream < OUT > { \n COMMENT \n COMMENT \n COMMENT \n - public < R > WindowedDataStream < R > mapWindow ( WindowMapFunction < OUT , R > windowMapFunction ) { \n + public < R > DiscretizedStream < R > mapWindow ( WindowMapFunction < OUT , R > windowMapFunction ) { \n return discretize ( WindowTransformation . MAPWINDOW . with ( clean ( windowMapFunction ) ) , \n getWindowBuffer ( WindowTransformation . MAPWINDOW ) ) . mapWindow ( windowMapFunction ) ; \n } \n public class WindowedDataStream < OUT > { \n COMMENT \n COMMENT \n COMMENT \n - public < R > WindowedDataStream < R > mapWindow ( WindowMapFunction < OUT , R > windowMapFunction , \n + public < R > DiscretizedStream < R > mapWindow ( WindowMapFunction < OUT , R > windowMapFunction , \n TypeInformation < R > outType ) { \n \n return discretize ( WindowTransformation . MAPWINDOW . with ( windowMapFunction ) ,", "msg_token": "streaming api breaking Changed returntype of WindowedDataStream s mapWindow"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultFileCollectionSnapshotter implements FileCollectionSnapshott \n public void visitCollection ( FileCollectionInternal fileCollection ) { \n for ( File file : fileCollection ) { \n if ( file . isFile ( ) ) { \n - fileTreeElements . add ( new DefaultFileVisitDetails ( file , fileSystem , fileSystem ) ) ; \n + visitTree ( new FileTreeAdapter ( new SingletonFileTree ( file ) ) ) ; \n } else if ( file . isDirectory ( ) ) { \n visitTree ( new FileTreeAdapter ( new DirectoryFileTree ( file , patternSetFactory . create ( ) ) ) ) ; \n } else {", "msg_token": "Fixed calculation of relative path for regular files specified as an task input or output root"} {"diff": " public class ProjectPopupMenu extends ToolbarPopupMenu \n this , \n true ) ; \n \n + if ( activeProjectFile_ != null ) \n + toolbarButton_ . setTitle ( activeProjectFile_ ) ; \n + \n if ( activeProjectFile_ == null ) \n { \n toolbarButton_ . addStyleName (", "msg_token": "add tooltip with full path to project toolbar button"} {"diff": " final class Parser { \n includer ) ; \n } catch ( UnsupportedEncodingException e ) { \n throw new ConfigException . BugOrBroken ( \n - STRING0 ) ; \n + STRING0 , e ) ; \n } \n }", "msg_token": "if we get UnsupportedEncodingException include it as cause in the ConfigException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Utils { \n try { \n for ( Field field : object . getClass ( ) . getDeclaredFields ( ) ) { \n field . setAccessible ( true ) ; \n + if ( Modifier . isStatic ( field . getModifiers ( ) ) ) { \n + continue ; \n + } \n Object val = field . get ( object ) ; \n stringBuilder . append ( STRING0 ) ; \n stringBuilder . append ( field . getName ( ) . substring ( NUMBER0 , field . getName ( ) . length ( ) ) ) ;", "msg_token": "Print only non static internal members"} {"diff": " public class CallManager \n { \n Call sourceCall = event . getSourceCall ( ) ; \n \n + SoundLoader . getSound ( SoundLoader . BUSY ) . stop ( ) ; \n + SoundLoader . stop ( Constants . getDefaultIncomingCallAudio ( ) ) ; \n + SoundLoader . stop ( Constants . getDefaultOutgoingCallAudio ( ) ) ; \n + \n if ( activeCalls . get ( sourceCall ) != null ) { \n \n CallPanel callPanel = ( CallPanel ) activeCalls . get ( sourceCall ) ;", "msg_token": "stop all sounds when a call is ended"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Added license header"} {"diff": " public class LookupImpl extends LightweightHint implements Lookup , Disposable { \n } \n \n public boolean fillInCommonPrefix ( boolean explicitlyInvoked ) { \n + if ( explicitlyInvoked ) { \n + setFocused ( true ) ; \n + } \n + \n if ( explicitlyInvoked && myCalculating ) return false ; \n if ( ! explicitlyInvoked && myDirty ) return false ; \n \n public class LookupImpl extends LightweightHint implements Lookup , Disposable { \n \n if ( myAdditionalPrefix . length ( ) == NUMBER0 && myInitialPrefix == null && ! explicitlyInvoked ) { \n myInitialPrefix = presentPrefix ; \n - } else { \n + } \n + else { \n myInitialPrefix = null ; \n }", "msg_token": "repeated ctrl space should focus lookup even if it just fills common prefix and even if it actually doesn t"} {"diff": " public class CommandRuntime { \n SINGLE \n if ( exitCode != null ) { \n SINGLE \n + LOG . info ( STRING0 + executor . getCommandText ( ) ) ; \n + LOG . info ( STRING1 + executor . getOutput ( ) ) ; \n + \n throw new SvnBindException ( STRING2 + exitCode ) ; \n } \n }", "msg_token": "Added command logging in for non zero exit code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class InstrumentMethod { \n } \n break ; \n } \n - if ( ins . getType ( ) == AbstractInsnNode . JUMP_INSN ) { \n - if ( mn . instructions . indexOf ( ( ( JumpInsnNode ) ins ) . label ) < mn . instructions . indexOf ( ins ) ) { \n - Label lbl = new Label ( ) ; \n - if ( DUAL ) { \n - mv . visitVarInsn ( Opcodes . ALOAD , lvarStack ) ; \n - mv . visitJumpInsn ( Opcodes . IFNULL , lbl ) ; \n - } \n - emitPreemptionPoint ( mv , PREEMPTION_BACKBRANCH ) ; \n - if ( DUAL ) \n - mv . visitLabel ( lbl ) ; \n - } \n - } \n \n ins . accept ( mv ) ; \n }", "msg_token": "Removed back branch preemption"} {"diff": " public class ImageUploadTaskService extends Service implements Callback { \n running = true ; \n task . execute ( this ) ; \n } else { \n - Log . i ( TAG , STRING0 ) ; \n + Log . i ( TAG , STRING1 ) ; \n stopSelf ( ) ; SINGLE \n } \n }", "msg_token": "Fixed a log statement"} {"diff": " public abstract class StructuredDocStringBase implements StructuredDocString { \n protected final Map < String , Substring > mySimpleTagValues = Maps . newHashMap ( ) ; \n protected final Map < String , Map < Substring , Substring > > myArgTagValues = Maps . newHashMap ( ) ; \n \n - private static final Pattern RE_STRICT_TAG_LINE = Pattern . compile ( STRING0 ) ; \n + private static final Pattern RE_STRICT_TAG_LINE = Pattern . compile ( STRING1 ) ; \n private static final Pattern RE_LOOSE_TAG_LINE = Pattern . compile ( STRING2 ) ; \n private static final Pattern RE_ARG_TYPE = Pattern . compile ( STRING3 ) ;", "msg_token": "adjust pattern in structuredDocstring to work with reStructured class definitions in docstring"} {"diff": " public final class DelegatingMethodSecurityMetadataSource extends AbstractMethod \n Collection < ConfigAttribute > attributes = null ; \n for ( MethodSecurityMetadataSource s : methodSecurityMetadataSources ) { \n attributes = s . getAttributes ( method , targetClass ) ; \n - if ( attributes != null ) { \n + if ( attributes != null && ! attributes . isEmpty ( ) ) { \n break ; \n } \n }", "msg_token": "Add check for empty attributes list as well as null in DelegatingMethodSecurityMetadataSource"} {"diff": " public class ActiveDirectoryAuthenticationIT \n assertWriteSucceeds ( ) ; \n } \n \n - \n @ before \n public void setup ( ) \n {", "msg_token": "Fixed checkstyle error"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n public class RestClient implements Closeable { \n \n private static final ESLogger logger = Loggers . getLogger ( RestClient . class ) ; \n + private static final HttpClientConnectionManager connectionPool = new PoolingHttpClientConnectionManager ( NUMBER0 , TimeUnit . SECONDS ) ; \n \n private final RestSpec restSpec ; \n private final CloseableHttpClient httpClient ; \n public class RestClient implements Closeable { \n } \n \n protected CloseableHttpClient createHttpClient ( ) { \n - return HttpClients . createDefault ( ) ; \n + return HttpClients . createMinimal ( connectionPool ) ; \n } \n \n public InetSocketAddress [ ] httpAddresses ( ) {", "msg_token": "TEST Use a pooling connection manager for REST tests"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n @ named \n @ viewscoped \n - public class MyBean { \n + public class MyBean implements Serializable { \n private int value ; \n \n public int getValue ( ) {", "msg_token": "Made the bean serializable"} {"diff": " public class HibernateCriteriaBuilder extends GroovyObjectSupport implements org \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public org . grails . datastore . mapping . query . api . Criteria order ( Order o ) { \n + if ( criteria == null ) { \n + throwRuntimeException ( new IllegalArgumentException ( STRING0 ) ) ; \n + } \n + if ( paginationEnabledList ) { \n + orderEntries . add ( o ) ; \n + } \n + else { \n + criteria . addOrder ( o ) ; \n + } \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "allow use of Hibernate Order object"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DanmakuSurfaceView extends SurfaceView implements IDanmakuView , Sur \n @ override \n public void release ( ) { \n stop ( ) ; \n + DanmakuFilters . getDefault ( ) . clear ( ) ; \n } \n \n @ override \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DanmakuTextureView extends TextureView implements IDanmakuView , \n @ override \n public void release ( ) { \n stop ( ) ; \n + DanmakuFilters . getDefault ( ) . clear ( ) ; \n } \n \n @ override", "msg_token": "remove filters when IDanmakuView is released"} {"diff": " public class TelecomManager { \n public void placeCall ( Uri address , Bundle extras ) { \n ITelecomService service = getTelecomService ( ) ; \n if ( service != null ) { \n + if ( address == null ) { \n + Log . w ( TAG , STRING0 ) ; \n + } \n try { \n - service . placeCall ( address , extras , mContext . getOpPackageName ( ) ) ; \n + service . placeCall ( address , extras == null ? new Bundle ( ) : extras , \n + mContext . getOpPackageName ( ) ) ; \n } catch ( RemoteException e ) { \n Log . e ( TAG , STRING1 , e ) ; \n }", "msg_token": "Fix potential NPE in TelecomManager placeCall"} {"diff": " public class MyDecorator implements Greeting { \n \n @ override \n public String greet ( String name ) { \n - return greeting . greet ( name + STRING0 ) ; \n + return greeting . greet ( name + STRING1 ) ; \n } \n \n }", "msg_token": "Changing the greeting part from decorator to be bold"} {"diff": " public final class Native { \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 public static synchronized native void setProtected ( boolean enable ) ;", "msg_token": "add notes to setProtected javadoc"} {"diff": " class AppCompatDelegateImplV7 extends AppCompatDelegateImplBase \n if ( mActionModePopup != null ) { \n mWindowDecor . removeCallbacks ( mShowActionModePopup ) ; \n if ( mActionModePopup . isShowing ( ) ) { \n - mActionModePopup . dismiss ( ) ; \n + try { \n + mActionModePopup . dismiss ( ) ; \n + } catch ( IllegalArgumentException e ) { \n + SINGLE \n + SINGLE \n + } \n } \n mActionModePopup = null ; \n }", "msg_token": "Swallow exception caused by dismissing action mode"} {"diff": " public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLM \n public double [ ] beta ( ) { return _output . _global_beta ; } \n public String [ ] names ( ) { return _output . _names ; } \n \n - \n + @ override \n + public double deviance ( double w , double y , double f ) { \n + if ( w == NUMBER0 ) { \n + return NUMBER0 ; \n + } else if ( w == NUMBER1 ) { \n + return _parms . deviance ( y , f ) ; \n + } else { \n + return Double . NaN ; SINGLE \n + } \n + } \n \n public static class GLMParameters extends Model . Parameters { \n SINGLE", "msg_token": "Add proper deviance w y f for GLMModel wasn t overriding base class implementation with Gaussian"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractCamelRunner implements Runnable { \n public static final String PROPERTY_PREFIX = STRING0 ; \n \n protected Logger log = LoggerFactory . getLogger ( getClass ( ) ) ; \n - protected CamelContext context ; \n + protected ModelCamelContext context ; \n protected SimpleRegistry registry = new SimpleRegistry ( ) ; \n \n SINGLE", "msg_token": "Reverted ABI change in AbstractCamelRunner"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "change back order of import statements"} {"diff": " public class SkylarkRuleImplementationFunctionsTest extends SkylarkTestCase { \n } \n } \n \n + public void testGlobInImplicitOutputs ( ) throws Exception { \n + scratch . file ( STRING0 , \n + STRING1 , \n + STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , \n + STRING6 , \n + STRING7 , \n + STRING8 , \n + STRING9 , \n + STRING10 ) ; \n + scratch . file ( STRING11 , \n + STRING12 , \n + STRING13 , \n + STRING14 ) ; \n + reporter . removeHandler ( failFastHandler ) ; \n + getConfiguredTarget ( STRING15 ) ; \n + assertContainsEvent ( STRING16 ) ; \n + } \n + \n private void setupThrowFunction ( BuiltinFunction func ) throws Exception { \n throwFunction = func ; \n throwFunction . configure (", "msg_token": "Added comment about why there are so many throws InterruptedException declarations"} {"diff": " public class TSVSentenceIteratorTest { \n add ( SentenceField . NER_TAGS ) ; \n add ( SentenceField . DOC_CHAR_BEGIN ) ; \n add ( SentenceField . DOC_CHAR_END ) ; \n - add ( SentenceField . DEPENDENCIES_STANFORD ) ; \n + add ( SentenceField . DEPENDENCIES_BASIC ) ; \n add ( SentenceField . GLOSS ) ; \n } \n } ) ;", "msg_token": "Fix the build"} {"diff": " public class UniqueConstraint implements DatabaseObject , \n if ( result ) { \n if ( null == this . getTable ( ) ) { \n result = null == that . getTable ( ) ; \n - } else if ( null == this . getTable ( ) ) { \n + } else if ( null == that . getTable ( ) ) { \n result = false ; \n } else { \n result = this . getTable ( ) . getName ( ) . equals (", "msg_token": "fixed equals bug"} {"diff": " public abstract class DataGetter < T extends VcsShortCommitDetails > implements Dis \n } \n \n @ notnull \n - public T getCommitData ( final Node node ) { \n + public T getCommitData ( @ notnull final Node node ) { \n assert EventQueue . isDispatchThread ( ) ; \n Hash hash = node . getCommitHash ( ) ; \n T details = myCache . get ( hash ) ; \n public class VcsLogImpl implements VcsLog { \n @ nullable \n private VcsFullCommitDetails getDetailsAtRow ( int row ) { \n Node commitNode = myDataHolder . getDataPack ( ) . getGraphModel ( ) . getGraph ( ) . getCommitNodeInRow ( row ) ; \n + if ( commitNode == null ) { \n + return null ; \n + } \n VcsFullCommitDetails details = myDataHolder . getCommitDetailsGetter ( ) . getCommitData ( commitNode ) ; \n return details instanceof LoadingDetails ? null : details ; \n }", "msg_token": "log Fix NPE"} {"diff": " public class SearchAddressFragment extends Fragment { \n if ( getActivity ( ) instanceof SearchAddressActivity ) { \n MenuItem menuItem = menu . add ( NUMBER0 , SELECT_POINT , NUMBER0 , STRING0 ) ; \n MenuItemCompat . setShowAsAction ( menuItem , MenuItemCompat . SHOW_AS_ACTION_ALWAYS ) ; \n + if ( getApplication ( ) . accessibilityEnabled ( ) ) \n + menuItem . setTitle ( R . string . shared_string_ok ) ; \n menuItem = menuItem . setIcon ( R . drawable . ic_action_done ) ; \n menuItem . setOnMenuItemClickListener ( new OnMenuItemClickListener ( ) { \n @ override", "msg_token": "Added Ok button title in the accessibility mode"} {"diff": " public class MapInfoLayer extends OsmandMapLayer { \n int textColor = nightMode ? view . getResources ( ) . getColor ( R . color . widgettext_night ) : Color . BLACK ; \n SINGLE \n int textShadowColor = nightMode ? view . getResources ( ) . getColor ( R . color . widgettext_shadow_night ) : Color . WHITE ; \n - if ( transparent && ! nightMode ) { \n + if ( ! transparent && ! nightMode ) { \n textShadowColor = Color . TRANSPARENT ; \n } \n int boxTop ;", "msg_token": "add missing NOT"} {"diff": " public abstract class CamelHttpClient extends HttpClient { \n super ( transport , sslContextFactory ) ; \n } \n \n - @ deprecated \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setSSLContext ( SSLContext context ) { \n - SINGLE \n - } \n - \n @ override \n protected void doStart ( ) throws Exception { \n if ( ! hasThreadPool ( ) ) {", "msg_token": "Remove deprecated method in CamelHttpClient"} {"diff": " public class TextEditingTarget implements EditingTarget \n \n public long getFileSizeLimit ( ) \n { \n - return NUMBER0 * NUMBER1 ; \n + return NUMBER2 * NUMBER1 * NUMBER1 ; \n } \n \n public long getLargeFileSize ( ) \n { \n - return NUMBER3 * NUMBER1 ; \n + return Desktop . isDesktop ( ) ? NUMBER1 * NUMBER1 : NUMBER4 * NUMBER1 ; \n } \n \n public void insertCode ( String source , boolean blockMode )", "msg_token": "revisit file too large policies in source tab"} {"diff": " final class ProxyControllerRegistration extends AbstractNodeRegistration impleme \n SINGLE \n SINGLE \n SINGLE \n + while ( iterator . hasNext ( ) ) \n + iterator . next ( ) ; \n return this ; \n }", "msg_token": "Consume the iterator to avoid endless loop"} {"diff": " public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . \n ) ; \n \n myResult . add ( highlightInfo ) ; \n + final JspFile jspFile = ( JspFile ) tag . getContainingFile ( ) ; \n QuickFixAction . registerQuickFixAction ( \n highlightInfo , \n new InsertRequiredAttributeIntention ( \n tag , \n STRING0 , \n - JspManager . getPossibleTldUris ( ( JspFile ) tag . getContainingFile ( ) ) \n + JspManager . getInstance ( jspFile . getProject ( ) ) . getPossibleTldUris ( jspFile ) \n ) , \n null \n ) ;", "msg_token": "caching tlds with uries"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public interface NodeInitializerRegistry { \n NodeInitializer getNodeInitializer ( NodeInitializerContext < ? , ? , ? > nodeInitializerContext ) ;", "msg_token": "Remove unused import"} {"diff": " public class TestQueries \n \n ordersRecords = readRecords ( STRING0 , NUMBER0 ) ; \n handle . execute ( STRING1 + \n - STRING2 + \n + STRING3 + \n STRING4 + \n STRING5 + \n STRING6 + \n public class TestQueries \n \n lineItemRecords = readRecords ( STRING7 , NUMBER1 ) ; \n handle . execute ( STRING8 + \n - STRING2 + \n + STRING9 + \n STRING10 + \n STRING11 + \n - STRING12 + \n + STRING13 + \n STRING14 + \n STRING15 + \n STRING16 + \n public class TestQueries \n STRING17 + \n STRING18 + \n STRING19 + \n - STRING20 + \n + STRING21 + \n + STRING22 + \n STRING23 ) ; \n insertRows ( STRING24 , handle , lineItemRecords ) ;", "msg_token": "Add primary keys to tpch in TestQueries"} {"diff": " public class StorageExporter { \n \n public static final String ROOT_ELEMENT = STRING0 ; \n public static final String VERSION_ATTRIBUTE = STRING1 ; \n + public static final String FILE_FORMAT_ATTRIBUTE = STRING2 ; \n public static final String GLOBAL_ELEMENT = STRING3 ; \n public static final String SETTINGS_ELEMENT = STRING4 ; \n public static final String ACCOUNTS_ELEMENT = STRING5 ; \n public class StorageExporter { \n serializer . setFeature ( STRING6 , true ) ; \n \n serializer . startTag ( null , ROOT_ELEMENT ) ; \n + SINGLE \n serializer . attribute ( null , VERSION_ATTRIBUTE , STRING7 ) ; \n + SINGLE \n + serializer . attribute ( null , FILE_FORMAT_ATTRIBUTE , STRING8 ) ; \n \n Log . i ( K9 . LOG_TAG , STRING9 ) ;", "msg_token": "Added file format version attribute to export file"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n - import NAMESPACE ; \n \n \n \n public class MessageCryptoView extends LinearLayout { \n \n private Context mContext ; \n private Activity mActivity ; \n - private PgpData mPgpData = null ; \n - private View mMessageContentView ; \n private Button mDecryptButton ; \n private LinearLayout mCryptoSignatureLayout = null ; \n private ImageView mCryptoSignatureStatusImage = null ;", "msg_token": "remove dead code"} {"diff": " public class OpenIEITest { \n setProperty ( STRING0 , STRING1 ) ; \n setProperty ( STRING2 , STRING3 ) ; \n setProperty ( STRING4 , STRING5 ) ; \n - setProperty ( STRING6 , STRING7 ) ; \n + SINGLE \n \n setProperty ( STRING8 , STRING5 ) ; \n setProperty ( STRING9 , STRING10 ) ; \n public enum NaturalLogicRelation { \n put ( STRING11 , NaturalLogicRelation . REVERSE_ENTAILMENT ) ; SINGLE \n put ( STRING12 , NaturalLogicRelation . INDEPENDENCE ) ; SINGLE \n put ( STRING13 , NaturalLogicRelation . INDEPENDENCE ) ; SINGLE \n - put ( STRING14 , NaturalLogicRelation . INDEPENDENCE ) ; SINGLE \n + put ( STRING14 , NaturalLogicRelation . REVERSE_ENTAILMENT ) ; SINGLE \n put ( STRING15 , NaturalLogicRelation . REVERSE_ENTAILMENT ) ; SINGLE \n put ( STRING16 , NaturalLogicRelation . INDEPENDENCE ) ; SINGLE \n put ( STRING17 , NaturalLogicRelation . INDEPENDENCE ) ; SINGLE", "msg_token": "Loosen natlog relations for ccomp"} {"diff": " public class EditPostSettingsFragment extends Fragment \n mLocationSearchSection = locationRootView . findViewById ( R . id . sectionLocationSearch ) ; \n mLocationViewSection = locationRootView . findViewById ( R . id . sectionLocationView ) ; \n \n - if ( post . hasLocation ( ) ) { \n - showLocationView ( ) ; \n - } else { \n - showLocationAdd ( ) ; \n - } \n - \n Button addLocation = ( Button ) locationRootView . findViewById ( R . id . addLocation ) ; \n addLocation . setOnClickListener ( this ) ; \n \n public class EditPostSettingsFragment extends Fragment \n \n SINGLE \n if ( post . hasLocation ( ) ) { \n + showLocationView ( ) ; \n + \n PostLocation location = post . getLocation ( ) ; \n \n new GetAddressTask ( ) . execute ( location . getLatitude ( ) , location . getLongitude ( ) ) ; \n + } else { \n + showLocationAdd ( ) ; \n } \n } \n }", "msg_token": "Reduce num of hasLocation lookups in initLocation"} {"diff": " public class StatementGenerator extends TreeVisitor { \n return false ; \n } \n if ( binding instanceof ITypeBinding ) { \n - if ( binding instanceof IOSTypeBinding ) { \n - buffer . append ( binding . getName ( ) ) ; \n - } else { \n - buffer . append ( nameTable . getFullName ( ( ITypeBinding ) binding ) ) ; \n - } \n + buffer . append ( nameTable . getFullName ( ( ITypeBinding ) binding ) ) ; \n } else { \n buffer . append ( node . getIdentifier ( ) ) ; \n }", "msg_token": "Remove unnecessary condition special casing IOSTypeBinding in StatementGenerator"} {"diff": " import static NAMESPACE ; \n public class RuleDataMediumTest { \n \n @ classrule \n - public static ServerTester tester = new ServerTester ( ) \n - . setProperty ( STRING0 , STRING1 ) ; \n + public static ServerTester tester = new ServerTester ( ) ; \n \n RuleDao dao = tester . get ( RuleDao . class ) ; \n RuleIndex index = tester . get ( RuleIndex . class ) ;", "msg_token": "fix quality flaw es debug output"} {"diff": " public class ColumnValidator implements Validator < ColumnDefinition > { \n ( PrivateColumnAccess ) ( ( WrapperColumnAccess ) columnDefinition . columnAccess ) . getExistingColumnAccess ( ) ; \n if ( ! columnDefinition . tableDefinition . classElementLookUpMap . containsKey ( privateColumnAccess . getGetterNameElement ( columnDefinition . elementName ) ) ) { \n processorManager . logError ( ColumnValidator . class , STRING0 + \n - STRING1 , \n + STRING2 , \n columnDefinition . elementName , columnDefinition . tableDefinition . elementName , privateColumnAccess . getGetterNameElement ( columnDefinition . elementName ) ) ; \n success = false ; \n }", "msg_token": "add quotes around name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ mod ( name = STRING0 , version = Version . VERSION , useMetadata = false , modid = STRING1 , dependencies = STRING2 ) \n + @ mod ( name = STRING0 , version = Version . VERSION , useMetadata = false , modid = STRING1 , dependencies = STRING3 ) \n @ networkmod ( channels = { DefaultProps . NET_CHANNEL_NAME } , packetHandler = PacketHandler . class , clientSideRequired = true , serverSideRequired = true ) \n public class BuildCraftCore { \n public static enum RenderMode {", "msg_token": "Reduced Forge requirement"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "fix compile error"} {"diff": " public class PrimaryDrawerItem implements IDrawerItem , Nameable < PrimaryDrawerIte \n \n if ( this . getSelectedIconRes ( ) > - NUMBER0 ) { \n selectedIcon = ctx . getResources ( ) . getDrawable ( selectedIconRes ) ; \n + } else if ( this . isSelectedIconTinted ( ) ) { \n + icon = new PressedEffectStateListDrawable ( icon , selected_text ) ; \n } \n } \n \n public class SecondaryDrawerItem implements IDrawerItem , Nameable < SecondaryDrawe \n \n if ( this . getSelectedIconRes ( ) > - NUMBER0 ) { \n selectedIcon = ctx . getResources ( ) . getDrawable ( selectedIconRes ) ; \n + } else if ( this . isSelectedIconTinted ( ) ) { \n + icon = new PressedEffectStateListDrawable ( icon , selected_text ) ; \n } \n }", "msg_token": "also set tinted color for drawables set by resource"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( HazelcastSerialClassRunner . class ) \n @ category ( { QuickTest . class } ) \n - public class GlobalMemoryAccessorRegistryTest extends UnsafeDependentMemoryAccessorTest { \n + public class GlobalMemoryAccessorRegistryTest extends AbstractUnsafeDependentMemoryAccessorTest { \n \n @ test \n public void testConstructor ( ) { \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public abstract class UnsafeDependentMemoryAccessorTest extends HazelcastTestSupport { \n + public abstract class AbstractUnsafeDependentMemoryAccessorTest extends HazelcastTestSupport { \n \n @ classrule \n public static final TestIgnoreRuleAccordingToUnsafeAvailability UNSAFE_AVAILABILITY_RULE \n = new TestIgnoreRuleAccordingToUnsafeAvailability ( ) ; \n - \n } \n import static NAMESPACE ; \n \n @ runwith ( HazelcastSerialClassRunner . class ) \n @ category ( { QuickTest . class } ) \n - public abstract class BaseMemoryAccessorTest extends UnsafeDependentMemoryAccessorTest { \n + public abstract class BaseMemoryAccessorTest extends AbstractUnsafeDependentMemoryAccessorTest { \n \n private static final int ALLOCATED_BLOCK_SIZE = NUMBER0 ;", "msg_token": "Renamed UnsafeDependentMemoryAccessorTest to AbstractUnsafeDependentMemoryAccessorTest"} {"diff": " public class ValidationMessageBase < I extends ModelBuilder . ValidationMessage , S e \n \n SINGLE \n public S fillFromImpl ( ModelBuilder . ValidationMessage vm ) { \n - PojoUtils . copyProperties ( this , vm , PojoUtils . FieldNaming . CONSISTENT ) ; \n + PojoUtils . copyProperties ( this , vm , PojoUtils . FieldNaming . ORIGIN_HAS_UNDERSCORES ) ; \n + this . message_type = Log . LVLS [ vm . log_level ( ) ] ; SINGLE \n if ( this . field_name != null ) { \n if ( this . field_name . startsWith ( STRING0 ) ) \n this . field_name = this . field_name . substring ( NUMBER0 ) ;", "msg_token": "handle field name change in schema"} {"diff": " public class ThreadPoolProfileDefinition extends OptionalIdentifiedDefinition < Th \n private String maxPoolSize ; \n @ xmlattribute \n private String keepAliveTime ; \n + @ xmlattribute \n @ xmljavatypeadapter ( TimeUnitAdapter . class ) \n private TimeUnit timeUnit ; \n @ xmlattribute", "msg_token": "Add missing XmlAttribute in model"} {"diff": " public abstract class AbstractInstrumentationMojo extends AbstractAndroidMojo { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added pre tag for documentation to render properly"} {"diff": " public class DebuggerExpressionComboBox extends DebuggerEditorImpl { \n private static DocumentListener REPLACE_NEWLINES_LISTENER = new DocumentAdapter ( ) { \n @ override \n public void documentChanged ( DocumentEvent e ) { \n - String text = e . getNewFragment ( ) . toString ( ) ; \n - if ( text . contains ( STRING0 ) ) { \n - e . getDocument ( ) . replaceString ( e . getOffset ( ) , e . getOffset ( ) + e . getNewLength ( ) , text . replace ( STRING1 , STRING2 ) ) ; \n + final String text = e . getNewFragment ( ) . toString ( ) ; \n + final String replaced = text . replace ( STRING1 , STRING2 ) ; \n + if ( replaced != text ) { \n + e . getDocument ( ) . replaceString ( e . getOffset ( ) , e . getOffset ( ) + e . getNewLength ( ) , replaced ) ; \n } \n } \n } ;", "msg_token": "avoid a call to contains"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class BinaryAttachmentBody implements Body { \n protected String mEncoding ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class LocalAttachmentBody extends BinaryAttachmentBody { \n private Application mApplication ; \n private Uri mUri ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public class TempFileBody extends BinaryAttachmentBody { \n private final File mFile ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class TempFileMessageBody extends TempFileBody implements CompositeBody { \n \n public TempFileMessageBody ( String filename ) {", "msg_token": "Added still rather shallow missing Javadocs for classes in BinaryAttachmentBody hierarchy"} {"diff": " public interface Vertex extends Element { \n COMMENT \n public Iterable < Edge > getInEdges ( String . . . labels ) ; \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Query query ( ) ; \n }", "msg_token": "added comments to Vertex"} {"diff": " class OtrContactMenu \n OtrActivator . scOtrEngine . getContactPolicy ( contact ) ; \n boolean state = ( ( JCheckBoxMenuItem ) e . getSource ( ) ) . getState ( ) ; \n \n - policy . setEnableAlways ( state ) ; \n + policy . setRequireEncryption ( state ) ; \n OtrActivator . scOtrEngine . setContactPolicy ( contact , policy ) ; \n } \n else if ( ACTION_COMMAND_CB_RESET . equals ( actionCommand ) )", "msg_token": "OTR Require Private Messaging did not set the correct policy"} {"diff": " public abstract class UltimateViewAdapter extends RecyclerView . Adapter < RecyclerV \n \n \n public void swapPositions ( List < ? > list , int from , int to ) { \n + if ( customHeaderView != null ) { \n + from -- ; \n + to -- ; \n + } \n Collections . swap ( list , from , to ) ; \n }", "msg_token": "fix the problem of drag and drop when the header view is existed"} {"diff": " public final class CasEnvironmentContextListener implements ServletContextListen \n final Formatter formatter = new Formatter ( ) ; \n formatter . format ( STRING0 ) ; \n formatter . format ( STRING1 , CasVersion . getVersion ( ) ) ; \n + formatter . format ( STRING2 , CasVersion . getDateTime ( ) ) ; \n formatter . format ( STRING3 , properties . get ( STRING4 ) ) ; \n formatter . format ( STRING5 , properties . get ( STRING6 ) ) ; \n formatter . format ( STRING7 , properties . get ( STRING8 ) ) ;", "msg_token": "add date time to startup logs"} {"diff": " public class ImmutableMethodImplementation implements MethodImplementation { \n methodImplementation . getDebugItems ( ) ) ; \n } \n \n - @ override public int getRegisterCount ( ) { return NUMBER0 ; } \n + @ override public int getRegisterCount ( ) { return registerCount ; } \n @ nonnull @ override public ImmutableList < ? extends ImmutableInstruction > getInstructions ( ) { return instructions ; } \n @ nonnull @ override public ImmutableList < ? extends ImmutableTryBlock > getTryBlocks ( ) { return tryBlocks ; } \n @ nonnull @ override public ImmutableList < ? extends ImmutableDebugItem > getDebugItems ( ) { return debugItems ; }", "msg_token": "Return the correct register count in ImmutableMethodImplementation"} {"diff": " public abstract class UnderFileSystem { \n return true ; \n } \n \n - if ( object == null || ! ( object instanceof Key ) ) { \n + if ( ! ( object instanceof Key ) ) { \n return false ; \n }", "msg_token": "remove object null"} {"diff": " public class AppCompatibility extends InstrumentationTestCase { \n homeIntent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n Intent intent ; \n if ( isleanback ) { \n - Log . d ( TAG , STRING0 ) ; \n + Log . d ( TAG , STRING1 + packageName ) ; \n intent = mPackageManager . getLeanbackLaunchIntentForPackage ( packageName ) ; \n } else { \n intent = mPackageManager . getLaunchIntentForPackage ( packageName ) ; \n } \n - SINGLE \n - if ( intent == null ) { \n - Log . d ( TAG , STRING2 + packageName + STRING3 ) ; \n - return null ; \n - } \n + assertNotNull ( STRING2 + packageName + STRING3 , intent ) ; \n \n String processName = getProcessName ( packageName ) ;", "msg_token": "Throw error when no intent can be found"} {"diff": " public class SjmsComponent extends UriEndpointComponent implements HeaderFilterS \n if ( destinationCreationStrategy != null ) { \n endpoint . setDestinationCreationStrategy ( destinationCreationStrategy ) ; \n } \n + if ( headerFilterStrategy != null ) { \n + endpoint . setHeaderFilterStrategy ( headerFilterStrategy ) ; \n + } \n + if ( messageCreatedStrategy != null ) { \n + endpoint . setMessageCreatedStrategy ( messageCreatedStrategy ) ; \n + } \n return endpoint ; \n }", "msg_token": "camel sjms should use same binding to from JMS as camel jms does"} {"diff": " public class SampleHypermediaJpaApplicationIntegrationTests { \n public void browser ( ) throws Exception { \n MvcResult response = this . mockMvc . perform ( get ( STRING0 ) . accept ( MediaType . TEXT_HTML ) ) \n . andExpect ( status ( ) . isFound ( ) ) . andReturn ( ) ; \n - assertEquals ( STRING1 , \n + assertEquals ( STRING2 , \n response . getResponse ( ) . getHeaders ( STRING3 ) . get ( NUMBER0 ) ) ; \n }", "msg_token": "Fix location url in test"} {"diff": " public class AggregateProcessor extends ServiceSupport implements Processor , Nav \n SINGLE \n answer . setProperty ( Exchange . AGGREGATED_COMPLETED_BY , STRING0 ) ; \n \n - lock . lock ( ) ; \n - try { \n - onCompletion ( key , answer , true ) ; \n - } finally { \n - lock . unlock ( ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + onCompletion ( key , answer , true ) ; \n } \n } \n \n public class AggregateProcessor extends ServiceSupport implements Processor , Nav \n if ( LOG . isDebugEnabled ( ) ) { \n LOG . debug ( STRING1 + data . redeliveryCounter + STRING2 + exchangeId + STRING3 ) ; \n } \n + \n SINGLE \n - lock . lock ( ) ; \n - try { \n - onSubmitCompletion ( key , exchange ) ; \n - } finally { \n - lock . unlock ( ) ; \n - } \n + onSubmitCompletion ( key , exchange ) ; \n } \n } \n }", "msg_token": "Fixed potential deadlock in aggregator when using timeout completion"} {"diff": " public class AIMSICDDbAdapter { \n \n File lacells = new File ( LACELLS_DB_NAME ) ; \n if ( lacells . isFile ( ) && lacells . canRead ( ) ) { \n + SINGLE \n + SINGLE \n + SQLiteDatabase ladb = SQLiteDatabase . openDatabase ( LACELLS_DB_NAME , null , NUMBER0 ) ; \n + ladb . execSQL ( STRING0 + LACELLS_TABLE + STRING1 ) ; \n + ladb . close ( ) ; \n + SINGLE \n db . execSQL ( STRING2 + LACELLS_DB_NAME + STRING3 + LACELLS_LOCAL_DB ) ; \n SINGLE \n CreateView += STRING4 + \n public class AIMSICDDbAdapter { \n SINGLE \n STRING5 ; \n database . execSQL ( OPENCELLID_DATABASE_CREATE ) ; \n + database . execSQL ( STRING6 + OPENCELLID_TABLE + STRING1 ) ; \n } \n \n COMMENT", "msg_token": "Create indexes on location"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SmaliClass extends SmaliStubBasedPsiElement < SmaliClassStub > impleme \n return PsiClassImplUtil . processDeclarationsInClass ( this , processor , state , null , lastParent , place , \n PsiUtil . getLanguageLevel ( place ) , false ) ; \n } \n + \n + @ nullable @ override protected Icon getElementIcon ( @ iconflags int flags ) { \n + return SmaliIcons . SmaliIcon ; \n + } \n }", "msg_token": "Associate the smali icon with the SmaliClass object"} {"diff": " public class UserManagerService extends IUserManager . Stub { \n return ui ; \n } \n \n + COMMENT \n public boolean exists ( int userId ) { \n synchronized ( mPackagesLock ) { \n - return ArrayUtils . contains ( mUserIds , userId ) ; \n + return mUsers . get ( userId ) != null ; \n } \n }", "msg_token": "Fix crashes when removing work profile"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExternalSystemAutoImporter implements BulkFileListener , DocumentLis \n } \n \n private void saveDocumentsIfNecessary ( ) { \n + if ( ApplicationManager . getApplication ( ) . isDisposed ( ) ) return ; \n + \n final FileDocumentManager fileDocumentManager = FileDocumentManager . getInstance ( ) ; \n Lock lock = myDocumentLock . writeLock ( ) ; \n Set < Document > toKeep = ContainerUtilRt . newHashSet ( ) ;", "msg_token": "add check for disposed application before document save handling"} {"diff": " public class ParseTests extends TestCase { \n parseCode ( STRING0 , STRING1 ) ; \n } \n catch ( GrailsTagException e ) { \n - assertEquals ( STRING2 , e . getMessage ( ) ) ; \n + assertEquals ( STRING3 , e . getMessage ( ) ) ; \n return ; \n } \n fail ( STRING4 ) ;", "msg_token": "fixed failing test"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed CS errors of camel hawtdb"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface MediaDriverFacade \n { \n - COMMENT \n - \n COMMENT \n COMMENT \n COMMENT \n public interface MediaDriverFacade \n COMMENT \n void sendRequestTerm ( final long sessionId , final long channelId , final long termId ) ; \n \n - COMMENT \n - \n COMMENT \n COMMENT \n COMMENT \n public interface MediaDriverFacade \n final long termId , \n final boolean isSender , \n final String destination ) ; \n - \n }", "msg_token": "Rename LibraryFacade to ClientFacade"} {"diff": " \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add fakeTaskScheduled on unit tests"} {"diff": " public class StandardContext extends ContainerBase \n SINGLE \n SINGLE \n List < String > omNew = null ; \n - if ( omittedMethods . length == NUMBER0 ) { \n + if ( omittedMethods . length != NUMBER0 ) { \n omNew = Arrays . asList ( omittedMethods ) ; \n } \n \n public class StandardContext extends ContainerBase \n Set < String > om = urlOmittedMethodMap . get ( pattern ) ; \n if ( om == null ) { \n om = new HashSet < > ( ) ; \n - urlMethodMap . put ( pattern , om ) ; \n + urlOmittedMethodMap . put ( pattern , om ) ; \n + om . addAll ( omNew ) ; \n + } else { \n + om . retainAll ( omNew ) ; \n } \n - om . retainAll ( omNew ) ; \n } else { \n SINGLE \n Set < String > m = urlMethodMap . get ( pattern ) ;", "msg_token": "Fix some copy paste errors"} {"diff": " public class IndexRecoveryIT \n createIndex ( myLabel ) ; \n \n SINGLE \n - killDbInSeparateThread ( ) ; \n + Future < Void > killFuture = killDbInSeparateThread ( ) ; \n latch . countDown ( ) ; \n + killFuture . get ( ) ; \n \n SINGLE \n when ( mockedIndexProvider . getInitialState ( anyLong ( ) , Matchers . < Dependencies > any ( ) ) ) . thenReturn ( InternalIndexState . POPULATING ) ; \n public class IndexRecoveryIT \n rotateLogs ( ) ; \n \n SINGLE \n - killDbInSeparateThread ( ) ; \n + Future < Void > killFuture = killDbInSeparateThread ( ) ; \n latch . countDown ( ) ; \n + killFuture . get ( ) ; \n latch = new CountDownLatch ( NUMBER0 ) ; \n when ( mockedIndexProvider . getPopulator ( anyLong ( ) , Matchers . < Dependencies > any ( ) ) ) . thenReturn ( indexPopulatorWithControlledCompletionTiming ( latch ) ) ; \n when ( mockedIndexProvider . getInitialState ( anyLong ( ) , Matchers . < Dependencies > any ( ) ) ) . thenReturn ( InternalIndexState . POPULATING ) ;", "msg_token": "Fixed a flaky test"} {"diff": " public class MouseMotionEvent extends InputEvent { \n \n @ override \n public String toString ( ) { \n - return STRING0 + x + STRING1 + y + STRING2 + dx + STRING3 + dy + STRING4 ; \n + return STRING0 + x + STRING1 + y + STRING2 + dx + STRING3 + dy + \n + STRING5 + wheel + STRING6 + deltaWheel + STRING4 ; \n } \n \n }", "msg_token": "Add wheel values to toString for MouseMotionEvent"} {"diff": " public class QPTreeTransformerTest extends TestCase { \n public void outputResults ( String input , String output ) { \n Tree inputTree = Tree . valueOf ( input ) ; \n System . err . println ( inputTree ) ; \n - Tree outputTree = QPTreeTransformer . QPtransform ( inputTree ) ; \n + QPTreeTransformer qp = new QPTreeTransformer ( ) ; \n + Tree outputTree = qp . QPtransform ( inputTree ) ; \n System . err . println ( outputTree ) ; \n System . err . println ( output ) ; \n } \n \n public void runTest ( String input , String output ) { \n Tree inputTree = Tree . valueOf ( input ) ; \n - Tree outputTree = QPTreeTransformer . QPtransform ( inputTree ) ; \n + QPTreeTransformer qp = new QPTreeTransformer ( ) ; \n + Tree outputTree = qp . QPtransform ( inputTree ) ; \n assertEquals ( output , outputTree . toString ( ) ) ; \n } \n }", "msg_token": "Fix last commit"} {"diff": " public class RegionBootstrap { \n } catch ( RemoteException e ) { \n LogManager . e ( e , TAG , STRING0 ) ; \n } \n + } else { \n + LogManager . w ( TAG , STRING1 ) ; \n } \n regions . add ( region ) ; \n } \n public class RegionBootstrap { \n } catch ( RemoteException e ) { \n LogManager . e ( e , TAG , STRING2 ) ; \n } \n + } else { \n + LogManager . w ( TAG , STRING3 ) ; \n } \n regions . remove ( region ) ; \n }", "msg_token": "warning message if service not yet connected"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class PluginDownloaderTest { \n public void before ( ) throws IOException { \n updateCenterMatrixFactory = mock ( UpdateCenterMatrixFactory . class ) ; \n updateCenter = mock ( UpdateCenter . class ) ; \n - when ( updateCenterMatrixFactory . getUpdateCenter ( false ) ) . thenReturn ( updateCenter ) ; \n + when ( updateCenterMatrixFactory . getUpdateCenter ( anyBoolean ( ) ) ) . thenReturn ( updateCenter ) ; \n \n httpDownloader = mock ( HttpDownloader . class ) ;", "msg_token": "Fix unit test"} {"diff": " public class CameraLauncher extends Plugin implements MediaScannerConnectionClie \n this . correctOrientation = args . getBoolean ( NUMBER0 ) ; \n this . saveToPhotoAlbum = args . getBoolean ( NUMBER1 ) ; \n \n + SINGLE \n + SINGLE \n + if ( this . targetWidth < NUMBER2 ) { \n + this . targetWidth = - NUMBER2 ; \n + } \n + if ( this . targetHeight < NUMBER2 ) { \n + this . targetHeight = - NUMBER2 ; \n + } \n + \n if ( srcType == CAMERA ) { \n this . takePicture ( destType , encodingType ) ; \n }", "msg_token": "Zero width or height in getPicture throws java lang ArithmeticException"} {"diff": " public class Scrubber implements Closeable \n if ( key == null ) \n throw new IOError ( new IOException ( STRING0 ) ) ; \n \n - if ( ! key . key . equals ( currentIndexKey ) ) \n + if ( currentIndexKey != null && ! key . key . equals ( currentIndexKey ) ) \n { \n throw new IOError ( new IOException ( String . format ( STRING1 , \n ByteBufferUtil . bytesToHex ( key . key ) , ByteBufferUtil . bytesToHex ( currentIndexKey ) ) ) ) ;", "msg_token": "Avoid NPE when generating scrub error message"} {"diff": " public abstract class ModuleEditor implements Place . Navigator , Disposable { \n } \n } \n \n - for ( Configurable moduleConfigurable : ComponentsPackage . getComponents ( myModule , Configurable . class ) ) { \n + for ( Configurable moduleConfigurable : ComponentsPackage . getComponents ( module , Configurable . class ) ) { \n myEditors . add ( new ModuleConfigurableWrapper ( moduleConfigurable ) ) ; \n } \n - for ( ModuleConfigurableEP extension : myModule . getExtensions ( MODULE_CONFIGURABLES ) ) { \n + for ( ModuleConfigurableEP extension : module . getExtensions ( MODULE_CONFIGURABLES ) ) { \n if ( extension . canCreateConfigurable ( ) ) { \n myEditors . add ( new ModuleConfigurableWrapper ( extension . createConfigurable ( ) ) ) ; \n }", "msg_token": "collect all editors from actual module instance"} {"diff": " public class LdapUserService extends GitblitUserService { \n \n UserModel user = getUserModel ( simpleUsername ) ; \n if ( user == null ) SINGLE \n - user = createUserFromLdap ( loggingInUser ) ; \n + user = createUserFromLdap ( simpleUsername , loggingInUser ) ; \n \n user . password = STRING0 ; \n \n public class LdapUserService extends GitblitUserService { \n return answer ; \n } \n \n - private UserModel createUserFromLdap ( SearchResultEntry userEntry ) { \n - UserModel answer = new UserModel ( userEntry . getAttributeValue ( STRING1 ) ) ; \n + private UserModel createUserFromLdap ( String simpleUserName , SearchResultEntry userEntry ) { \n + UserModel answer = new UserModel ( simpleUserName ) ; \n SINGLE \n \n return answer ;", "msg_token": "Change username to come from simpleUserName from login screen instead of CN"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Moved count command implementation to its correct package"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - public interface ValueParameterDescriptor extends VariableDescriptor { \n + public interface ValueParameterDescriptor extends VariableDescriptor , Annotated { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "ValueParameterDescriptor must implement Annotated"} {"diff": " public class OServer { \n networkListeners . add ( new OServerNetworkListener ( this , networkSocketFactories . get ( l . socket ) , l . ipAddress , l . portRange , \n l . protocol , networkProtocols . get ( l . protocol ) , l . parameters , l . commands ) ) ; \n \n - registerPlugins ( ) ; \n - \n - for ( OServerLifecycleListener l : lifecycleListeners ) \n - l . onAfterActivate ( ) ; \n - \n try { \n loadStorages ( ) ; \n loadUsers ( ) ; \n } catch ( IOException e ) { \n OLogManager . instance ( ) . error ( this , STRING0 , e , OConfigurationException . class ) ; \n } \n + \n + registerPlugins ( ) ; \n + \n + for ( OServerLifecycleListener l : lifecycleListeners ) \n + l . onAfterActivate ( ) ; \n \n OLogManager . instance ( ) . info ( this , STRING1 + OConstants . getVersion ( ) + STRING2 ) ; \n } catch ( ClassNotFoundException e ) {", "msg_token": "Reordered plugin registration on startup so that distributed mode OrientDB also creates databases specified in server config file"} {"diff": " public abstract class AbstractDatabase implements Database { \n \n public void markChangeSetAsReRan ( ChangeSet changeSet ) throws JDBCException { \n String dateValue = getCurrentDateTimeFunction ( ) ; \n - String sql = STRING0 + dateValue + STRING1 ; \n + String sql = STRING2 + escapeTableName ( getDefaultSchemaName ( ) , STRING3 ) + STRING4 + dateValue + STRING1 ; \n sql = sql . replaceFirst ( STRING5 , escapeStringForDatabase ( changeSet . getMd5sum ( ) ) ) ; \n sql = sql . replaceFirst ( STRING5 , escapeStringForDatabase ( changeSet . getId ( ) ) ) ; \n sql = sql . replaceFirst ( STRING5 , escapeStringForDatabase ( changeSet . getAuthor ( ) ) ) ;", "msg_token": "include schema in markChangeSetAsReRan"} {"diff": " public class ActionMenuPresenter extends BaseMenuPresenter \n if ( isAction ) maxActions -- ; \n \n item . setIsActionButton ( isAction ) ; \n + } else { \n + SINGLE \n + item . setIsActionButton ( false ) ; \n } \n } \n return true ;", "msg_token": "Cannot force a shown item from an ActionMode into the overflow menu"} {"diff": " public class ODefaultReplicationConflictResolver implements OReplicationConflict \n public void handleUpdateConflict ( final byte iOperation , SYNCH_TYPE iRequestType , final ORecordInternal < ? > iRecord , \n final int iCurrentVersion , final int iOtherVersion ) { \n OLogManager . instance ( ) . warn ( this , STRING0 , this , iRequestType , \n - iRecord . getIdentity ( ) , iOtherVersion , iCurrentVersion ) ; \n + iRecord . getIdentity ( ) , iCurrentVersion , iOtherVersion ) ; \n \n final ODocument doc = createConflictDocument ( iOperation , iRecord ) ; \n doc . field ( STRING1 , iCurrentVersion ) ;", "msg_token": "Fixed log error"} {"diff": " public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory < PythonC \n \n \n RemoteSshProcess remoteProcess = \n - manager . createRemoteProcess ( getProject ( ) , data , commandLine , false ) ; \n + manager . createRemoteProcess ( getProject ( ) , data , commandLine , true ) ; \n \n \n Pair < Integer , Integer > remotePorts = getRemotePortsFromProcess ( remoteProcess ) ;", "msg_token": "Allocate pty for remote console"} {"diff": " public class ResultSetViewer extends Viewer \n } \n \n public void showPanels ( boolean show ) { \n + if ( show == isPanelsVisible ( ) ) { \n + return ; \n + } \n if ( ! show ) { \n viewerSash . setMaximizedControl ( presentationPanel ) ; \n } else { \n public class ResultSetViewer extends Viewer \n } \n \n getPresentationSettings ( ) . panelsVisible = show ; \n + savePresentationSettings ( ) ; \n } \n \n private List < IContributionItem > fillPanelsMenu ( ) {", "msg_token": "remember panels visibility state"} {"diff": " public class DashFavoritesFragment extends DashBaseFragment implements Favourite \n \n @ override \n public void updateFavourites ( ) { \n - setupFavorites ( ) ; \n + if ( getActivity ( ) == null ) { \n + return ; \n + } \n + getActivity ( ) . runOnUiThread ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + setupFavorites ( ) ; \n + } \n + } ) ; \n } \n }", "msg_token": "Added run on ui thread"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class OnePublisherToOneProcessorUniCastRawThroughputTest extends AbstractPerfTestQueueVsDisruptor \n { \n private static final int SIZE = NUMBER0 * NUMBER1 ; \n public class OnePublisherToOneProcessorUniCastRawThroughputTest extends Abstract \n private final Sequencer sequencer = new Sequencer ( SIZE , ClaimStrategy . Option . SINGLE_THREADED , WaitStrategy . Option . YIELDING ) ; \n private final SequenceBarrier barrier = sequencer . newBarrier ( ) ; \n private final RawProcessor rawProcessor = new RawProcessor ( values , barrier ) ; \n - \n { \n sequencer . setGatingSequences ( rawProcessor . getSequence ( ) ) ; \n }", "msg_token": "Added Javadoc for explanation"} {"diff": " public class OpCommand extends VanillaCommand { \n return false ; \n } \n \n - Command . broadcastCommandMessage ( sender , STRING0 + args [ NUMBER0 ] ) ; \n + Command . broadcastCommandMessage ( sender , STRING1 + args [ NUMBER0 ] ) ; \n \n OfflinePlayer player = Bukkit . getOfflinePlayer ( args [ NUMBER0 ] ) ; \n player . setOp ( true ) ;", "msg_token": "Fixed typo in OpCommand"} {"diff": " public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n - public static final Key < Integer > REQUEST_AVAILABLE_CAPABILITIES = \n - new Key < Integer > ( STRING0 , int . class ) ; \n + public static final Key < int [ ] > REQUEST_AVAILABLE_CAPABILITIES = \n + new Key < int [ ] > ( STRING0 , int [ ] . class ) ; \n \n COMMENT \n COMMENT", "msg_token": "Fix availableCapabilities incorrect type"} {"diff": " public class JUnit38ClassRunnerTest { \n } \n \n public static class JUnit3ClassWithAnnotatedMethod extends TestCase { \n - @ suppresswarnings ( STRING0 ) \n @ myannotation \n public void testAnnotated ( ) { \n } \n \n - @ suppresswarnings ( STRING0 ) \n public void testNotAnnotated ( ) { \n } \n } \n public class JUnit38ClassRunnerTest { \n public void getDescriptionWithAnnotation ( ) { \n JUnit38ClassRunner runner = new JUnit38ClassRunner ( JUnit3ClassWithAnnotatedMethod . class ) ; \n Description d = runner . getDescription ( ) ; \n - Assert . assertEquals ( NUMBER0 , d . testCount ( ) ) ; \n + assertEquals ( NUMBER0 , d . testCount ( ) ) ; \n for ( Description methodDesc : d . getChildren ( ) ) { \n if ( methodDesc . getMethodName ( ) . equals ( STRING1 ) ) { \n assertNotNull ( methodDesc . getAnnotation ( MyAnnotation . class ) ) ; \n } else { \n - assertNull ( methodDesc . getAnnotation ( MyAnnotation . class ) ) ; \n + assertNull ( methodDesc . getAnnotation ( MyAnnotation . class ) ) ; \n } \n } \n }", "msg_token": "Addressed code review comments in JUnit38ClassRunnerTest"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class HBaseKeyColumnValueStore implements KeyColumnValueStore { \n } \n \n public void mutateMany ( Map < StaticBuffer , KCVMutation > mutations , StoreTransaction txh ) throws StorageException { \n - storeManager . mutateMany ( ImmutableMap . of ( columnFamily , mutations ) , txh ) ; \n + storeManager . mutateMany ( ImmutableMap . of ( storeName , mutations ) , txh ) ; \n } \n \n @ override", "msg_token": "Fixed bug in short cf names"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public abstract class CompletionService { \n \n getVariantsFromContributors ( parameters , null , new Consumer < LookupElement > ( ) { \n public void consume ( final LookupElement lookupElement ) { \n - ApplicationManager . getApplication ( ) . runReadAction ( new Runnable ( ) { \n - public void run ( ) { \n - if ( lookupSet . add ( lookupElement ) ) { \n - consumer . consume ( lookupElement ) ; \n - } \n - } \n - } ) ; \n + if ( lookupSet . add ( lookupElement ) ) { \n + consumer . consume ( lookupElement ) ; \n + } \n } \n } ) ; \n return lookupSet . toArray ( new LookupElement [ lookupSet . size ( ) ] ) ;", "msg_token": "remove unneeded read action"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ScopeTreeViewPanel extends JPanel implements JDOMExternalizable , Di \n final NamedScope scope = getCurrentScope ( ) ; \n final PsiElement element = event . getNewChild ( ) ; \n final PsiFile psiFile = event . getFile ( ) ; \n - if ( psiFile != null ) { \n + if ( psiFile != null && ! InjectedLanguageManager . getInstance ( myProject ) . isInjectedFragment ( psiFile ) ) { \n if ( psiFile . getLanguage ( ) == psiFile . getViewProvider ( ) . getBaseLanguage ( ) ) { \n queueUpdate ( new Runnable ( ) { \n public void run ( ) {", "msg_token": "scope view panel should ignore changes in injected files"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TransportNodesListShardStoreMetaData extends TransportNodesOperatio \n } \n \n public ActionFuture < NodesStoreFilesMetaData > list ( ShardId shardId , boolean onlyUnallocated ) { \n - return execute ( new Request ( shardId , onlyUnallocated ) ) ; \n + ClusterState state = clusterService . state ( ) ; \n + Set < String > nodesIds = Sets . newHashSet ( ) ; \n + for ( DiscoveryNode node : state . nodes ( ) ) { \n + if ( node . dataNode ( ) ) { \n + nodesIds . add ( node . id ( ) ) ; \n + } \n + } \n + return execute ( new Request ( shardId , onlyUnallocated , nodesIds . toArray ( new String [ nodesIds . size ( ) ] ) ) ) ; \n } \n \n @ override protected String transportAction ( ) {", "msg_token": "only list unallocated shards on data nodes"} {"diff": " public final class Settings { \n public static final String ALLOW_MOCK_LOCATION = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final String ANDROID_ID = STRING1 ;", "msg_token": "update javadoc for Settings Secure ANDROID_ID"} {"diff": " public class CollisionResult implements Comparable < CollisionResult > { \n } \n \n public int compareTo ( CollisionResult other ) { \n - if ( distance < other . distance ) \n - return - NUMBER0 ; \n - else if ( distance > other . distance ) \n - return NUMBER0 ; \n - else \n - return NUMBER1 ; \n + return Float . compare ( distance , other . distance ) ; \n } \n \n @ override", "msg_token": "Comparison method violates its general contract"} {"diff": " public class ReportsFragment extends BaseOsmAndFragment implements SearchSelecti \n for ( WorldRegion group : groups ) { \n String name = getHumanReadableName ( group ) ; \n regionNames . add ( name ) ; \n - queryRegionNames . put ( name , group . getRegionDownloadName ( ) ) ; \n + queryRegionNames . put ( name , group == root ? STRING0 : group . getRegionDownloadName ( ) ) ; \n } \n }", "msg_token": "Fix world region reports URL"} {"diff": " public class FileDetailActivity extends SherlockFragmentActivity implements File \n private void backToDisplayActivity ( ) { \n Intent intent = new Intent ( this , FileDisplayActivity . class ) ; \n intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n - intent . putExtra ( FileDetailFragment . EXTRA_FILE , mFile ) ; \n + OCFile targetFile = null ; \n + if ( mFile != null ) { \n + targetFile = mStorageManager . getFileById ( mFile . getParentId ( ) ) ; \n + } \n + intent . putExtra ( FileDetailFragment . EXTRA_FILE , targetFile ) ; \n intent . putExtra ( FileDetailFragment . EXTRA_ACCOUNT , mAccount ) ; \n startActivity ( intent ) ; \n finish ( ) ;", "msg_token": "Fixed infinity loop in media previews when the icon in the action bar UP button is pressed"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n \n String inputLine ; \n String newVersion = Version . getRawVersion ( ) ; \n + String clientVersion = STRING0 ; \n try { \n while ( ( inputLine = in . readLine ( ) . trim ( ) ) != null ) { \n if ( inputLine . startsWith ( STRING1 ) ) { \n newVersion = inputLine . substring ( STRING1 . length ( ) ) ; \n + } else if ( inputLine . startsWith ( STRING2 ) ) { \n + clientVersion = inputLine . substring ( STRING2 . length ( ) ) ; \n break ; \n } \n } \n } finally { \n + logger . info ( STRING3 , clientVersion ) ; \n if ( newVersion . compareTo ( Version . getRawVersion ( ) ) != NUMBER0 ) { \n logger . info ( STRING4 , Version . getRawVersion ( ) , newVersion ) ; \n }", "msg_token": "Display Client version as well"} {"diff": " class SecretContentDAO { \n @ visiblefortesting static final int PRUNE_CUTOFF_ITEMS = NUMBER0 ; \n \n SINGLE \n - @ visiblefortesting static final int PRUNE_CUTOFF_DAYS = NUMBER1 ; \n + @ visiblefortesting static final int PRUNE_CUTOFF_DAYS = NUMBER2 ; \n \n private final DSLContext dslContext ; \n private final ObjectMapper mapper ;", "msg_token": "Prune unreferenced contents faster"} {"diff": " public class CompilerOptions { \n this . convertToDottedProperties = convertToDottedProperties ; \n } \n \n + public void setUseTypesForOptimization ( boolean useTypesForOptimization ) { \n + this . useTypesForOptimization = useTypesForOptimization ; \n + } \n + \n public void setRewriteFunctionExpressions ( boolean rewriteFunctionExpressions ) { \n this . rewriteFunctionExpressions = rewriteFunctionExpressions ; \n }", "msg_token": "Add a command line flag to enable using types for optimization"} {"diff": " public abstract class ArchiveHandler { \n public final long length ; \n public final long timestamp ; \n \n + @ deprecated \n + COMMENT \n + COMMENT \n + COMMENT \n + public EntryInfo ( EntryInfo parent , @ notnull String shortName , boolean isDirectory , long length , long timestamp ) { \n + this ( parent , ( CharSequence ) shortName , isDirectory , length , timestamp ) ; \n + } \n + \n public EntryInfo ( EntryInfo parent , @ notnull CharSequence shortName , boolean isDirectory , long length , long timestamp ) { \n this . parent = parent ; \n this . shortName = shortName ;", "msg_token": "got back the String constructor for Kotlin compatibility"} {"diff": " public class RuntimeUtil { \n System . gc ( ) ; \n } \n \n + SINGLE \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static String classLocation ( Class clazz ) { \n + return clazz . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) . getPath ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static String joddLocation ( ) { \n + return classLocation ( RuntimeUtil . class ) ; \n + } \n + \n }", "msg_token": "added classLocation methods"} {"diff": " public class PGraphicsJava2D extends PGraphics { \n @ override \n public void updatePixels ( int x , int y , int c , int d ) { \n SINGLE \n - System . err . format ( STRING0 , x , y , c , d , width , height , pixelWidth , pixelHeight ) ; \n + SINGLE \n if ( ( x != NUMBER0 ) || ( y != NUMBER0 ) || ( c != pixelWidth ) || ( d != pixelHeight ) ) { \n SINGLE \n showVariationWarning ( STRING1 ) ; \n public class PSurfaceAWT implements PSurface { \n \n SINGLE \n SINGLE \n - SINGLE \n - Dimension currentSize = canvas . getSize ( ) ; \n - if ( currentSize . width != sketchWidth || currentSize . height != sketchHeight ) { \n - SINGLE \n - SINGLE \n - System . err . format ( STRING2 , currentSize , sketchWidth , sketchHeight ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n \n SINGLE", "msg_token": "remove warning crap"} {"diff": " final class TsdbQuery implements Query { \n i += value_width ; \n } \n if ( value_id == null ) { \n - LOG . info ( STRING0 + Arrays . toString ( row ) ) ; \n + LOG . error ( STRING1 + Arrays . toString ( row ) \n + + STRING2 \n + + STRING3 + this ) ; \n continue ; \n } \n SINGLE", "msg_token": "Promote an INFO message to ERROR"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class UtilActivator \n public void start ( BundleContext context ) \n throws Exception \n { \n - if ( logger . isTraceEnabled ( ) ) \n - logger . trace ( STRING0 ) ; \n - \n bundleContext = context ; \n \n + if ( OSUtils . IS_ANDROID ) \n + loadLoggingConfig ( ) ; \n + \n + if ( logger . isTraceEnabled ( ) ) \n + logger . trace ( STRING0 ) ; \n Thread . setDefaultUncaughtExceptionHandler ( this ) ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private void loadLoggingConfig ( ) \n + { \n + try \n + { \n + Class . forName ( \n + STRING1 ) \n + . newInstance ( ) ; \n + } \n + catch ( Throwable t ) { } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Activates JavaUtilLoggingConfig used in android"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene \n Sheet . Set set = Sheet . createPropertiesSet ( ) ; \n set . setDisplayName ( STRING0 ) ; \n set . setName ( TerrainGrid . class . getName ( ) ) ; \n - TerrainGrid obj = geom ; SINGLE \n + final TerrainGrid obj = geom ; SINGLE \n if ( obj == null ) { \n return sheet ; \n } \n + SceneApplication . getApplication ( ) . enqueue ( new Callable < Void > ( ) { \n + \n + public Void call ( ) throws Exception { \n + obj . initialize ( SceneApplication . getApplication ( ) . getCamera ( ) . getLocation ( ) ) ; \n + return null ; \n + } \n + } ) ; \n \n SINGLE", "msg_token": "activate TerrainGrid in SDK via JmeTerrainGrid node wrapper"} {"diff": " public abstract class DerivedStringProperty < D > { \n protected void propertyChanged ( ) { } \n \n void propertyChangedInternal ( ) { \n - propertyChanged ( ) ; \n deriveAndSet ( ) ; \n + propertyChanged ( ) ; \n } \n \n private void deriveAndSet ( ) {", "msg_token": "switched method order"} {"diff": " import NAMESPACE \n \n public class MultiValueDictionaryTest { \n private static final String COL_NAME = STRING0 ; \n - private static int NROWS = NUMBER0 ; \n + private static int NROWS = NUMBER1 ; \n private static int MAX_N_VALUES = NUMBER2 ; \n \n @ test", "msg_token": "Reduce number of rows in MultiValueDictionaryTest it s killing Travis"} {"diff": " public class EmailAlarmCallback implements AlarmCallback { \n \n configurationRequest . addField ( new TextField ( STRING0 , \n STRING1 , \n - STRING2 , \n + STRING3 , \n STRING4 , \n ConfigurationField . Optional . NOT_OPTIONAL ) ) ; \n \n import NAMESPACE ; \n \n public class FormattedEmailAlertSender extends StaticEmailAlertSender implements AlertSender { \n public static final String bodyTemplate = STRING5 + \n + STRING6 + \n STRING7 + \n STRING8 + \n STRING9 + \n public class FormattedEmailAlertSender extends StaticEmailAlertSender implements \n protected String buildSubject ( Stream stream , AlertCondition . CheckResult checkResult , List < Message > backlog ) { \n final String template ; \n if ( pluginConfig == null || pluginConfig . getString ( STRING0 ) == null ) { \n - template = STRING2 ; \n + template = STRING3 ; \n } else { \n template = pluginConfig . getString ( STRING0 ) ; \n }", "msg_token": "Adding verbal alert description to alert email templates and subject defaults"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "map reduce test"} {"diff": " public class ONetworkProtocolBinary extends ONetworkProtocol { \n \n } else \n channel . writeByte ( ( byte ) NUMBER0 ) ; \n - } \n + } else \n + channel . writeByte ( ( byte ) NUMBER0 ) ; \n break ; \n }", "msg_token": "Fixed issue on record null sent by the server to the client"} {"diff": " public class AgreementRule extends GermanRule { \n private static final Set < String > NOUNS_TO_BE_IGNORED = new HashSet < > ( Arrays . asList ( \n STRING0 , SINGLE \n STRING1 , \n - STRING2 \n + STRING2 , \n + STRING3 SINGLE \n ) ) ; \n \n public AgreementRule ( final ResourceBundle messages , German language ) {", "msg_token": "de fix false alarm um ein Uhr"} {"diff": " public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R \n pooled . free ( ) ; \n } \n readData = null ; \n + if ( frameDataRemaining == NUMBER0 ) { \n + receiver = null ; \n + } \n return null ; \n } else { \n ByteBuffer buf = pooled . getResource ( ) . duplicate ( ) ;", "msg_token": "Fix issue with framed channels"} {"diff": " public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract { \n String db = token . getDatabase ( ) ; \n String type = token . getDatabaseType ( ) ; \n if ( db != null && type != null && requestType != OChannelBinaryProtocol . REQUEST_DB_CLOSE ) { \n - final ODatabaseDocumentTx database = new ODatabaseDocumentTx ( type + STRING0 + db ) ; \n + SINGLE \n + final ODatabaseDocumentTx database = new ODatabaseDocumentTx ( server . getStoragePath ( type + STRING0 + db ) ) ; \n if ( connection . data . serverUser ) { \n database . resetInitialization ( ) ; \n database . setProperty ( ODatabase . OPTIONS . SECURITY . toString ( ) , OSecurityServerUser . class ) ;", "msg_token": "fixed database open in case of server database path not default"} {"diff": " public class SslValidatorDialog extends Dialog { \n COMMENT \n COMMENT \n public static SslValidatorDialog newInstance ( Context context , RemoteOperationResult result , OnSslValidatorListener listener ) { \n - if ( result . isSslRecoverableException ( ) ) { \n + if ( result != null && result . isSslRecoverableException ( ) ) { \n SslValidatorDialog dialog = new SslValidatorDialog ( context , listener ) ; \n return dialog ; \n } else {", "msg_token": "Fixed crash when the device is turned while the warning dialog about server certificates is shown"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileSystemMaster implements Master { \n \n @ override \n public TProcessor getProcessor ( ) { \n - SINGLE \n - return null ; \n + return new FileSystemMasterService . Processor < FileSystemMasterServiceHandler > ( \n + new FileSystemMasterServiceHandler ( this ) ) ; \n } \n \n @ override", "msg_token": "Implement FileSystemMaster getProcessor"} {"diff": " public class SpeeDRF extends Job . ValidatedJob { \n model = UKV . get ( dest ( ) ) ; \n } \n finally { \n - model . unlock ( self ( ) ) ; \n - model . stop_training ( ) ; \n + if ( model != null ) { \n + model . unlock ( self ( ) ) ; \n + model . stop_training ( ) ; \n + } \n } \n }", "msg_token": "Fix possible NPE"} {"diff": " public final class KSMetaData \n this . cfMetaData = Collections . unmodifiableMap ( cfmap ) ; \n } \n \n + public int hashCode ( ) \n + { \n + return name . hashCode ( ) ; \n + } \n + \n public boolean equals ( Object obj ) \n { \n - if ( obj == null ) \n - return false ; \n if ( ! ( obj instanceof KSMetaData ) ) \n return false ; \n KSMetaData other = ( KSMetaData ) obj ;", "msg_token": "add KSMetaData hashcode"} {"diff": " public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n SINGLE \n getOutputBuffer ( ) . addActiveFilter ( outputFilters [ Constants . VOID_FILTER ] ) ; \n contentDelimitation = true ; \n - sendfileData = socketWrapper . createSendfileData ( fileName , \n - ( ( Long ) request . getAttribute ( \n - org . apache . coyote . Constants . SENDFILE_FILE_START_ATTR ) ) . longValue ( ) , \n - ( ( Long ) request . getAttribute ( \n - org . apache . coyote . Constants . SENDFILE_FILE_END_ATTR ) ) . longValue ( ) - sendfileData . pos ) ; \n + long pos = ( ( Long ) request . getAttribute ( \n + org . apache . coyote . Constants . SENDFILE_FILE_START_ATTR ) ) . longValue ( ) ; \n + long end = ( ( Long ) request . getAttribute ( \n + org . apache . coyote . Constants . SENDFILE_FILE_END_ATTR ) ) . longValue ( ) ; \n + sendfileData = socketWrapper . createSendfileData ( fileName , pos , end - pos ) ; \n return true ; \n } \n return false ;", "msg_token": "Fix refactoring bug"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public interface CometEvent {", "msg_token": "added missing author tag"} {"diff": " public class PGL { \n } \n \n \n + static public int javaToNativeARGB ( int color ) { \n + if ( BIG_ENDIAN ) { \n + return ( ( color > > NUMBER0 ) & NUMBER1 ) | \n + ( ( color < < NUMBER2 ) & NUMBER3 ) ; \n + } else { \n + return ( color & NUMBER4 ) | \n + ( ( color < < NUMBER5 ) & NUMBER6 ) | \n + ( color & NUMBER7 ) | \n + ( ( color > > NUMBER5 ) & NUMBER1 ) ; \n + } \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated PGL android"} {"diff": " public class FakeDialog { \n this . title = title ; \n } \n \n + public Context getContext ( ) { \n + return context ; \n + } \n + \n public void show ( ) { \n isShowing = true ; \n try {", "msg_token": "Added getContext to FakeDialog"} {"diff": " public class HeliosDeploymentResource extends ExternalResource { \n \n COMMENT \n @ override \n - protected void before ( ) throws Throwable { \n + public void before ( ) throws Throwable { \n super . before ( ) ; \n \n SINGLE \n public class HeliosDeploymentResource extends ExternalResource { \n } \n \n @ override \n - protected void after ( ) { \n + public void after ( ) { \n log . info ( STRING0 , this . deployment ) ; \n deployment . close ( ) ; \n }", "msg_token": "Make HeliosDeploymentResource before after public"} {"diff": " public class AtmosphereResourceImpl implements AtmosphereResource { \n if ( ! isCancelled . getAndSet ( true ) ) { \n logger . trace ( STRING0 , uuid ) ; \n SessionTimeoutSupport . restoreTimeout ( req ) ; \n - action . type ( Action . TYPE . RESUME ) ; \n + action . type ( Action . TYPE . CANCELLED ) ; \n if ( asyncSupport != null ) asyncSupport . action ( this ) ; \n SINGLE \n if ( AtmosphereResponse . class . isAssignableFrom ( response . getClass ( ) ) ) {", "msg_token": "Set the state to CANCEL instead of RESUME"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed cs issue"} {"diff": " public class DaemonProgressIndicator extends AbstractProgressIndicatorBase imple \n Disposer . dispose ( this ) ; \n } \n \n + public void cancel ( @ notnull Throwable cause ) { \n + myTraceableDisposable . killExceptionally ( cause ) ; \n + super . cancel ( ) ; \n + Disposer . dispose ( this ) ; \n + } \n + \n SINGLE \n @ override \n public void dispose ( ) { \n public class DaemonProgressIndicator extends AbstractProgressIndicatorBase imple \n super . checkCanceled ( ) ; \n } \n \n - public void cancel ( @ notnull Throwable cause ) { \n - myTraceableDisposable . killExceptionally ( cause ) ; \n - super . cancel ( ) ; \n - } \n - \n @ override \n public void start ( ) { \n assert ! isCanceled ( ) : STRING0 ;", "msg_token": "dispose indicator even after exception"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GitCloneFunction implements SkyFunction { \n git = \n Git . cloneRepository ( ) \n . setURI ( descriptor . remote ) \n + . setCredentialsProvider ( new NetRCCredentialsProvider ( ) ) \n . setDirectory ( descriptor . directory . getPathFile ( ) ) \n . setCloneSubmodules ( false ) \n . setNoCheckout ( true )", "msg_token": "Add netrc support to GitCloneFunction"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n - package NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n \n + package NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class HikariConfig \n { \n private int minPoolSize ;", "msg_token": "Fix license header"} {"diff": " public class DrawableContainer extends Drawable implements Drawable . Callback { \n COMMENT \n COMMENT \n final void updateDensity ( Resources res ) { \n - if ( mSourceRes != null ) { \n + if ( res != null ) { \n mSourceRes = res ; \n - } \n \n - SINGLE \n - SINGLE \n - final int targetDensity = Drawable . resolveDensity ( res , mDensity ) ; \n - final int sourceDensity = mDensity ; \n - mDensity = targetDensity ; \n + SINGLE \n + SINGLE \n + final int targetDensity = Drawable . resolveDensity ( res , mDensity ) ; \n + final int sourceDensity = mDensity ; \n + mDensity = targetDensity ; \n \n - if ( sourceDensity != targetDensity ) { \n - mCheckedConstantSize = false ; \n - mCheckedPadding = false ; \n + if ( sourceDensity != targetDensity ) { \n + mCheckedConstantSize = false ; \n + mCheckedPadding = false ; \n + } \n } \n }", "msg_token": "Always update drawable container source res"} {"diff": " public class IndexedSet < T > implements Iterable < T > { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n + SINGLE \n public void clear ( ) { \n SINGLE \n for ( Map < Object , ConcurrentHashSet < T > > mapping : mIndexMap . values ( ) ) { \n public class IndexedSet < T > implements Iterable < T > { \n ConcurrentHashMap < Object , ConcurrentHashSet < T > > index = fieldInfo . getValue ( ) ; \n ConcurrentHashSet < T > objSet = index . get ( fieldValue ) ; \n while ( objSet == null ) { \n + SINGLE \n index . putIfAbsent ( fieldValue , new ConcurrentHashSet < T > ( ) ) ; \n objSet = index . get ( fieldValue ) ; \n }", "msg_token": "Add comments to IndexedSet"} {"diff": " public class PubMulticastTest \n \n private Aeron . ClientContext newAeronContext ( ) \n { \n - Aeron . ClientContext ctx = new Aeron . ClientContext ( ) ; \n - \n - return ctx ; \n + return new Aeron . ClientContext ( ) ; \n } \n \n @ after", "msg_token": "Java Fix warning"} {"diff": " public class BlockMiningWell extends BlockBuildCraft { \n \n @ override \n public void onBlockPlacedBy ( World world , int i , int j , int k , EntityLivingBase entityliving , ItemStack stack ) { \n + super . onBlockPlacedBy ( world , i , j , k , entityliving , stack ) ; \n ForgeDirection orientation = Utils . get2dOrientation ( entityliving ) ; \n world . setBlockMetadataWithNotify ( i , j , k , orientation . getOpposite ( ) . ordinal ( ) , NUMBER0 ) ; \n }", "msg_token": "fix mining well not calling super when placed down"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TaskViewHeader extends FrameLayout \n mDismissButton . setContentDescription ( t . dismissDescription ) ; \n mDismissButton . setOnClickListener ( this ) ; \n mDismissButton . setClickable ( false ) ; \n + ( ( RippleDrawable ) mDismissButton . getBackground ( ) ) . setForceSoftware ( true ) ; \n \n SINGLE \n SINGLE \n public class TaskViewHeader extends FrameLayout \n } \n mMoveTaskButton . setOnClickListener ( this ) ; \n mMoveTaskButton . setClickable ( false ) ; \n + ( ( RippleDrawable ) mMoveTaskButton . getBackground ( ) ) . setForceSoftware ( true ) ; \n } \n \n if ( Recents . getDebugFlags ( ) . isFastToggleRecentsEnabled ( ) ) {", "msg_token": "Forcing software in header button background ripples"} {"diff": " public class NotificationComponent extends JLabel implements NotificationModelLi \n final JRootPane pane = SwingUtilities . getRootPane ( this ) ; \n final Component glassPane = pane . getGlassPane ( ) ; \n if ( glassPane instanceof IdeGlassPaneEx ) { \n - ( ( IdeGlassPaneEx ) glassPane ) . add ( new NotificationsListPanelWrapper ( this , new NotificationsListPanel ( myModel ) , ( Container ) glassPane , pane ) ) ; \n + ( ( IdeGlassPaneEx ) glassPane ) . add ( new NotificationsListPanelWrapper ( this , ( Container ) glassPane , pane ) ) ; \n } \n } \n \n public class NotificationComponent extends JLabel implements NotificationModelLi \n } \n } \n \n + public NotificationModel getModel ( ) { \n + return myModel ; \n + } \n + \n private void performNotificationAction ( final NotificationImpl notification ) { \n final NotificationListener . OnClose onClose = notification . getListener ( ) . perform ( ) ; \n if ( onClose == NotificationListener . OnClose . REMOVE ) {", "msg_token": "hide notifications window automatically if no more notifications left"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JUnitTestSuitePlugin implements Plugin < Project > { \n } \n \n private void configureTaskDependencies ( final Test test ) { \n - binary . getTasks ( ) . withType ( PlatformJavaCompile . class ) . all ( new Action < PlatformJavaCompile > ( ) { \n - @ override \n - public void execute ( PlatformJavaCompile platformJavaCompile ) { \n - SINGLE \n - SINGLE \n - test . dependsOn ( platformJavaCompile ) ; \n - } \n - } ) ; \n + test . dependsOn ( ( ( WithJvmAssembly ) binary ) . getAssembly ( ) ) ; \n } \n \n private File configureReports ( Test test ) {", "msg_token": "Wire the Test task to the JvmAssembly rather than the compile task"} {"diff": " public class RecentsTvActivity extends Activity implements OnPreDrawListener { \n public void onShowPipMenu ( ) { } \n \n @ override \n - public void onMoveToFullscreen ( ) { } \n + public void onMoveToFullscreen ( ) { \n + SINGLE \n + SINGLE \n + dismissRecentsToLaunchTargetTaskOrHome ( ) ; \n + } \n \n @ override \n public void onPipResizeAboutToStart ( ) { }", "msg_token": "Dismiss Recents when PIP moves to fullscreen"} {"diff": " public class Linker { \n \n private Function createLookup ( ModuleBuilder mb , ClazzInfo ci , MethodInfo mi ) { \n Function function = FunctionBuilder . lookup ( ci , mi , false ) ; \n - FunctionRef fn = new FunctionBuilder ( ci , mi ) . build ( ) . ref ( ) ; \n + String targetFnName = mangleMethod ( ci . getInternalName ( ) , mi . getName ( ) , mi . getDesc ( ) ) ; \n + if ( mi . isSynchronized ( ) ) { \n + targetFnName += STRING0 ; \n + } \n + FunctionRef fn = new FunctionRef ( targetFnName , function . getType ( ) ) ; \n if ( ! mb . hasSymbol ( fn . getName ( ) ) ) { \n mb . addFunctionDeclaration ( new FunctionDeclaration ( fn ) ) ; \n }", "msg_token": "Linker didn t replace lookup functions with synchronized wrapper function"} {"diff": " public class FileUtils { \n } \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean contains ( File dir , File file ) { \n + String dirPath = dir . getAbsolutePath ( ) ; \n + String filePath = file . getAbsolutePath ( ) ; \n + \n + if ( dirPath . equals ( filePath ) ) { \n + return true ; \n + } \n + \n + if ( ! dirPath . endsWith ( STRING0 ) ) { \n + dirPath += STRING0 ; \n + } \n + return filePath . startsWith ( dirPath ) ; \n + } \n }", "msg_token": "Implement FileUtils contains"} {"diff": " public class ReaderSubsActivity extends FragmentActivity \n } \n } \n \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n @ override \n public void onTabSelected ( Tab tab , android . app . FragmentTransaction ft ) { \n mViewPager . setCurrentItem ( tab . getPosition ( ) ) ;", "msg_token": "Removed the TODO and added a comment regarding the mix usage of android app FragmentTransaction and support Fragment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n public class CachingClusteredClient < T > implements QueryRunner < T > \n { \n - private static final Logger log = new Logger ( CachingClusteredClient . class ) ; \n + private static final EmittingLogger log = new EmittingLogger ( CachingClusteredClient . class ) ; \n \n private final QueryToolChestWarehouse warehouse ; \n private final TimelineServerView serverView ; \n public class CachingClusteredClient < T > implements QueryRunner < T > \n \n final QueryRunner clientQueryable = serverView . getQueryRunner ( server ) ; \n if ( clientQueryable == null ) { \n - throw new ISE ( STRING0 , server ) ; \n + log . makeAlert ( STRING0 , server ) . emit ( ) ; \n + continue ; \n } \n \n final Sequence < T > resultSeqToAdd ;", "msg_token": "prevent ISE at broker from completely failing to return results"} {"diff": " public class OperationSetPersistentPresenceJabberImpl \n o2 , parentProvider ) . getStatus ( ) \n - jabberStatusToPresenceStatus ( \n o1 , parentProvider ) . getStatus ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( res == NUMBER0 ) \n + { \n + res = o1 . getFrom ( ) . compareTo ( \n + o2 . getFrom ( ) ) ; \n + } \n } \n \n return res ;", "msg_token": "Fixing TreeSet s Comparator"} {"diff": " public class AjaxStatus { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add status code javadoc"} {"diff": " public abstract class TwoWayLayoutManager extends LayoutManager { \n } \n \n public int getFirstVisiblePosition ( ) { \n + if ( getChildCount ( ) == NUMBER0 ) { \n + return RecyclerView . NO_POSITION ; \n + } \n + \n return mFirstPosition ; \n }", "msg_token": "core Properly handle empty layout in getFirstVisiblePosition"} {"diff": " public class VCardTest extends SmackTestCase { \n origVCard . setNickName ( STRING0 ) ; \n \n origVCard . setField ( STRING1 , STRING2 ) ; \n - origVCard . setAddressFieldHome ( STRING3 , STRING4 ) ; \n + origVCard . setAddressFieldHome ( STRING3 , STRING5 ) ; \n origVCard . setAddressFieldWork ( STRING3 , STRING6 ) ; \n \n origVCard . setPhoneWork ( STRING7 , STRING8 ) ;", "msg_token": "Updated VCard test to test illegal XML characters"} {"diff": " public class NioEndpoint extends AbstractJsseEndpoint < NioChannel > { \n InetSocketAddress addr = ( getAddress ( ) != null ? new InetSocketAddress ( getAddress ( ) , getPort ( ) ) : new InetSocketAddress ( getPort ( ) ) ) ; \n serverSock . socket ( ) . bind ( addr , getAcceptCount ( ) ) ; \n serverSock . configureBlocking ( true ) ; SINGLE \n - serverSock . socket ( ) . setSoTimeout ( getSocketProperties ( ) . getSoTimeout ( ) ) ; \n \n SINGLE \n if ( acceptorThreadCount == NUMBER0 ) {", "msg_token": "Remove unnecessary code"} {"diff": " public class MethodDefinition { \n writer . write ( STRING0 ) ; \n \n if ( parameterName != null ) { \n - writer . write ( STRING1 ) ; \n + writer . write ( STRING2 ) ; \n writer . write ( parameterName . getStringValue ( ) ) ; \n writer . write ( STRING1 ) ; \n }", "msg_token": "Fix the output format for the"} {"diff": " public class IndicesRequestTests extends ElasticsearchIntegrationTest { \n private static void assertAllRequestsHaveBeenConsumed ( ) { \n Iterable < TransportService > transportServices = internalCluster ( ) . getInstances ( TransportService . class ) ; \n for ( TransportService transportService : transportServices ) { \n - assertThat ( ( ( InterceptingTransportService ) transportService ) . requests . isEmpty ( ) , equalTo ( true ) ) ; \n + assertThat ( ( ( InterceptingTransportService ) transportService ) . requests . entrySet ( ) , emptyIterable ( ) ) ; \n } \n }", "msg_token": "TEST use more verbose assertion in IndicesRequestTests"} {"diff": " public class GlyphPage { \n glyph . setShape ( null ) ; SINGLE \n } \n \n + width = Math . min ( width , texture . getWidth ( ) ) ; \n + height = Math . min ( height , texture . getHeight ( ) ) ; \n + \n WritableRaster raster = scratchImage . getRaster ( ) ; \n int [ ] row = new int [ width ] ; \n for ( int y = NUMBER0 ; y < height ; y ++ ) {", "msg_token": "fixed Hiero clipping glyphs if a glyph is larger than the page size"} {"diff": " public class ActivityLog \n BufferedReader in = new BufferedReader ( new StringReader ( out . toString ( ) ) ) ; \n try \n { \n - String firstLine = in . readLine ( ) ; \n - if ( firstLine != null ) \n + StringBuilder str = new StringBuilder ( ) ; \n + for ( ; ; ) \n { \n - return firstLine ; \n + String line = in . readLine ( ) ; \n + if ( line == null ) \n + { \n + break ; \n + } \n + if ( str . length ( ) > NUMBER0 ) \n + { \n + str . append ( STRING0 ) ; \n + } \n + str . append ( line ) ; \n } \n + return str . toString ( ) ; \n } \n catch ( IOException e ) \n {", "msg_token": "include entire exception"} {"diff": " public final class TopLevelMatchingHandler extends MatchingHandler { \n \n public TopLevelMatchingHandler ( @ notnull MatchingHandler _delegate ) { \n delegate = _delegate ; \n - setFilter ( _delegate . getFilter ( ) ) ; \n + if ( _delegate instanceof ExpressionHandler ) { \n + setFilter ( _delegate . getFilter ( ) ) ; \n + } \n } \n \n public boolean match ( final PsiElement patternNode , final PsiElement matchedNode , final MatchContext matchContext ) {", "msg_token": "anna Do not wrap declaration statement"} {"diff": " import NAMESPACE ; \n @ target ( ElementType . ANNOTATION_TYPE ) \n @ retention ( RetentionPolicy . RUNTIME ) \n public @ interface Example { \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - String name ( ) default STRING0 ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed unused call"} {"diff": " public class DarculaCheckBoxUI extends MetalCheckBoxUI { \n viewRect , iconRect , textRect , b . getIconTextGap ( ) ) ; \n \n SINGLE \n - if ( c . isOpaque ( ) ) { \n + if ( c . isOpaque ( ) || c . getParent ( ) instanceof CellRendererPane ) { \n g . setColor ( b . getBackground ( ) ) ; \n g . fillRect ( NUMBER0 , NUMBER0 , size . width , size . height ) ; \n }", "msg_token": "Make checkbox opaque if it is root of rendering component"} {"diff": " public class WordVectorSerializer \n } \n \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WordVectorSerializer \n cache . addWordToIndex ( cache . numWords ( ) , word ) ; \n cache . addToken ( new VocabWord ( NUMBER0 , word ) ) ; \n cache . putVocabWord ( word ) ; \n + \n + readString ( dis ) ; SINGLE \n } \n }", "msg_token": "Reading the newline characters"} {"diff": " public class PreferencesTest extends ActivityInstrumentationTestCase2 < Preference \n Timeout . getLargeTimeout ( ) ) ) ; \n } \n \n + public void testEpisodeCleanupNumDays ( ) { \n + solo . clickOnText ( solo . getString ( R . string . pref_episode_cleanup_title ) ) ; \n + solo . waitForText ( solo . getString ( R . string . episode_cleanup_after_listening ) ) ; \n + solo . clickOnText ( STRING0 ) ; \n + assertTrue ( solo . waitForCondition ( ( ) - > { \n + EpisodeCleanupAlgorithm alg = UserPreferences . getEpisodeCleanupAlgorithm ( ) ; \n + if ( alg instanceof APCleanupAlgorithm ) { \n + APCleanupAlgorithm cleanupAlg = ( APCleanupAlgorithm ) alg ; \n + return cleanupAlg . getNumberOfDaysAfterPlayback ( ) == NUMBER0 ; \n + } \n + return false ; \n + } , \n + Timeout . getLargeTimeout ( ) ) ) ; \n + } \n + \n }", "msg_token": "add test for different number of days of cleanup"} {"diff": " \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 public abstract class OChannelBinary extends OChannel { \n \n if ( c != null ) \n try { \n - final Exception e ; \n + final Throwable e ; \n if ( c . getParameterTypes ( ) . length > NUMBER0 ) \n - e = ( Exception ) c . newInstance ( iMessage , iPrevious ) ; \n + e = ( Throwable ) c . newInstance ( iMessage , iPrevious ) ; \n else \n - e = ( Exception ) c . newInstance ( iMessage ) ; \n + e = ( Throwable ) c . newInstance ( iMessage ) ; \n \n if ( e instanceof RuntimeException ) \n rootException = ( RuntimeException ) e ;", "msg_token": "Fixed class cast for errors"} {"diff": " public class XPub extends SocketBase { \n unique = subscriptions . add ( data , NUMBER0 , pipe_ ) ; \n \n SINGLE \n - SINGLE \n - if ( options . type == ZMQ . ZMQ_XPUB && ( unique || verbose ) ) \n - pending . add ( new Blob ( sub . data ( ) ) ) ; \n + SINGLE \n + if ( options . type == ZMQ . ZMQ_XPUB && ( unique || ( data [ NUMBER1 ] == NUMBER0 && verbose ) ) ) \n + pending . add ( new Blob ( sub . data ( ) ) ) ; \n } \n } \n }", "msg_token": "XPUB verbose mode excludes unsubscriptions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class PlayWorkerServer implements Action < WorkerProcessContext > , PlayRunWorkerServerProtocol , Serializable {", "msg_token": "Fix checkstyle errors"} {"diff": " public abstract class GraphDatabaseFacadeFactory \n SINGLE \n public static final Setting < String > lock_manager = setting ( STRING0 , Settings . STRING , STRING1 ) ; \n public static final Setting < Boolean > deferred_locking = \n - setting ( STRING2 , Settings . BOOLEAN , Settings . FALSE ) ; \n + setting ( STRING2 , Settings . BOOLEAN , Settings . TRUE ) ; \n public static final Setting < String > tracer = \n setting ( STRING3 , Settings . STRING , ( String ) null ) ; SINGLE", "msg_token": "Set deferring locks true by default"} {"diff": " public class DynamicPayloadTypeRegistry \n break ; \n } \n } \n - System . out . println ( STRING0 + payloadType + STRING1 + format ) ; \n + \n SINGLE \n SINGLE \n if ( payloadType == null ) \n System . out . println ( STRING0 + payloadType + STRING1 + format ) ; \n SINGLE \n SINGLE \n Byte preferredPT = getPreferredDynamicPayloadType ( format ) ; \n - System . out . println ( STRING2 + preferredPT ) ; \n + \n if ( preferredPT != null && findFormat ( preferredPT ) == null ) \n { \n SINGLE", "msg_token": "removes accidentally committed System out println s"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add import for Locale"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n final class AdvancedLeakAwareByteBuf extends WrappedByteBuf { \n private static final String PROP_ACQUIRE_AND_RELEASE_ONLY = STRING0 ; \n private static final boolean ACQUIRE_AND_RELEASE_ONLY ; \n \n + private static final InternalLogger logger = InternalLoggerFactory . getInstance ( AdvancedLeakAwareByteBuf . class ) ; \n + \n static { \n ACQUIRE_AND_RELEASE_ONLY = SystemPropertyUtil . getBoolean ( PROP_ACQUIRE_AND_RELEASE_ONLY , false ) ; \n + \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING1 , PROP_ACQUIRE_AND_RELEASE_ONLY , ACQUIRE_AND_RELEASE_ONLY ) ; \n + } \n } \n \n private final ResourceLeak leak ;", "msg_token": "Added debug logging with effective value for iodotNetty leakDetection acquireAndReleaseOnly property"} {"diff": " public class SyncScrollSupport { \n return myDuringSyncScroll ; \n } \n \n - public boolean setDisabled ( boolean value ) { \n + public void setDisabled ( boolean value ) { \n if ( myDisabled == value ) LOG . warn ( new Throwable ( STRING0 + myDisabled + STRING1 + value ) ) ; \n - return myDisabled = value ; \n + myDisabled = value ; \n } \n \n @ notnull \n public class SyncScrollSupport { \n myHelper22 = create ( editors . get ( NUMBER0 ) , editors . get ( NUMBER1 ) , myScrollable2 , Side . RIGHT ) ; \n } \n \n - public boolean setDisabled ( boolean value ) { \n + public void setDisabled ( boolean value ) { \n if ( myDisabled == value ) LOG . warn ( new Throwable ( STRING0 + myDisabled + STRING1 + value ) ) ; \n - return myDisabled = value ; \n + myDisabled = value ; \n } \n \n public void visibleAreaChanged ( VisibleAreaEvent e ) {", "msg_token": "remove useless return value"} {"diff": " public class MemorySection implements ConfigurationSection { \n List < ? > list = getList ( path ) ; \n List < Map < ? , ? > > result = new ArrayList < Map < ? , ? > > ( ) ; \n \n + if ( list == null ) { \n + return result ; \n + } \n + \n for ( Object object : list ) { \n if ( object instanceof Map ) { \n result . add ( ( Map < ? , ? > ) object ) ;", "msg_token": "Fixed null pointer exception in config getMapList"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class HistoryReference { \n \n public class HistoryReference { \n return historyId ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public HttpMessage getHttpMessage ( ) throws HttpMalformedHeaderException , SQLException { \n SINGLE \n RecordHistory history = staticTableHistory . read ( historyId ) ;", "msg_token": "Added some JavaDoc"} {"diff": " public class BehaviorSystem implements ComponentSystem , UpdateSubscriberSystem { \n @ override \n public void initialise ( ) { \n for ( AssetUri uri : assetManager . listAssets ( AssetType . BEHAVIOR ) ) { \n + \n BehaviorTree asset = assetManager . loadAsset ( uri , BehaviorTree . class ) ; \n trees . add ( asset ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Interpreter { \n \n @ override \n public String toString ( ) { \n - return actor . minion ( ) . toString ( ) ; \n + return actor . component ( DisplayInformationComponent . class ) . name ; \n } \n \n public interface Debugger {", "msg_token": "Minions in LAS now get a name"} {"diff": " public class OGLESShaderRenderer implements Renderer { \n case ModulateX2 : \n GLES20 . glBlendFunc ( GLES20 . GL_DST_COLOR , GLES20 . GL_SRC_COLOR ) ; \n break ; \n + case Screen : \n + GLES20 . glBlendFunc ( GLES20 . GL_ONE , GLES20 . GL_ONE_MINUS_SRC_COLOR ) ; \n + break ; \n default : \n throw new UnsupportedOperationException ( STRING0 \n + state . getBlendMode ( ) ) ;", "msg_token": "Screen blend mode for andriod"} {"diff": " public class ActivityShare extends ActivityBase { \n \n @ override \n protected void onPostExecute ( Throwable result ) { \n - if ( mContext != null ) { \n + if ( ! mContext . isFinishing ( ) ) { \n String message ; \n if ( result == null ) \n message = mContext . getString ( R . string . msg_registered ) ;", "msg_token": "Fix crash support info"} {"diff": " public class GeneralCommandLine implements UserDataHolder { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ notnull \n public Map < String , String > getParentEnvironment ( ) { \n - return Collections . unmodifiableMap ( PlatformUtils . isAppCode ( ) ? System . getenv ( ) SINGLE \n - : EnvironmentUtil . getEnvironmentMap ( ) ) ; \n + return PlatformUtils . isAppCode ( ) ? System . getenv ( ) SINGLE \n + : EnvironmentUtil . getEnvironmentMap ( ) ; \n } \n \n public void addParameters ( String . . . parameters ) {", "msg_token": "removing unnecessary Collections unmodifiableMap System getEnv and EnvironmentUtil getEnvironmentMap are already unmodifiable maps"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed obsolete import"} {"diff": " public class CommentTable { \n String [ ] args = { Integer . toString ( localBlogId ) , Long . toString ( commentId ) } ; \n Cursor c = getReadableDb ( ) . rawQuery ( STRING0 + COMMENTS_TABLE + STRING1 , args ) ; \n try { \n - if ( ! c . moveToFirst ( ) ) \n + if ( ! c . moveToFirst ( ) ) { \n return null ; \n + } \n return getCommentFromCursor ( c ) ; \n } finally { \n SqlUtils . closeCursor ( c ) ; \n public class PeopleTable { \n String [ ] args = { Long . toString ( personId ) , Integer . toString ( localTableBlogId ) } ; \n Cursor c = getReadableDb ( ) . rawQuery ( STRING0 + PEOPLE_TABLE + STRING2 , args ) ; \n try { \n - if ( ! c . moveToFirst ( ) ) \n + if ( ! c . moveToFirst ( ) ) { \n return null ; \n + } \n return getPersonFromCursor ( c , localTableBlogId ) ; \n } finally { \n SqlUtils . closeCursor ( c ) ;", "msg_token": "Adds braces to if for single statements"} {"diff": " public class SMTestRunnerResultsForm extends TestResultsPanel \n TestConsoleProperties consoleProperties , \n Disposable parentDisposable ) { \n final RunProfile configuration = consoleProperties . getConfiguration ( ) ; \n - if ( configuration instanceof RunConfiguration && ! ( consoleProperties instanceof ImportedTestConsoleProperties ) ) { \n + if ( configuration instanceof RunConfiguration && \n + ! ( consoleProperties instanceof ImportedTestConsoleProperties ) && \n + ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n final MySaveHistoryTask backgroundable = new MySaveHistoryTask ( consoleProperties , root , ( RunConfiguration ) configuration ) ; \n final BackgroundableProcessIndicator processIndicator = new BackgroundableProcessIndicator ( backgroundable ) ; \n Disposer . register ( parentDisposable , new Disposable ( ) {", "msg_token": "don t save history in tests"} {"diff": " public final class GrailsDomainBinder { \n } \n else if ( grailsProperty . isManyToMany ( ) ) { \n if ( grailsProperty . isOwningSide ( ) ) { \n - prop . setCascade ( STRING0 ) ; \n + prop . setCascade ( STRING1 ) ; \n } \n } \n else if ( grailsProperty . isManyToOne ( ) || grailsProperty . isOneToOne ( ) ) {", "msg_token": "changed cascade for many to many to save all as the sensible default"} {"diff": " public class ChainedTransactionManagerPostProcessor implements BeanDefinitionReg \n private Config config ; \n \n private Map < String , Map > dsConfigs ; \n + private static String [ ] transactionManagerBeanNames = null ; \n \n public ChainedTransactionManagerPostProcessor ( Config config ) { \n this ( config , null , null ) ; \n } \n \n public ChainedTransactionManagerPostProcessor ( Config config , String whitelistPattern , String blacklistPattern ) { \n + transactionManagerBeanNames = null ; \n this . config = config ; \n if ( whitelistPattern != null ) { \n beanNameWhitelistPattern = whitelistPattern ; \n public class ChainedTransactionManagerPostProcessor implements BeanDefinitionReg \n } \n } \n \n - private static String [ ] transactionManagerBeanNames = null ; \n + \n protected static String [ ] getTransactionManagerBeanNames ( BeanDefinitionRegistry registry ) { \n if ( transactionManagerBeanNames == null ) {", "msg_token": "fix failing tests"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MotionEvent extends AbstractCinematicEvent implements Control , JmeC \n protected int currentWayPoint ; \n protected float currentValue ; \n protected Vector3f direction = new Vector3f ( ) ; \n - protected Vector3f lookAt ; \n + protected Vector3f lookAt = Vector3f . ZERO ; \n protected Vector3f upVector = Vector3f . UNIT_Y ; \n - protected Quaternion rotation ; \n + protected Quaternion rotation = Quaternion . IDENTITY ; \n protected Direction directionType = Direction . None ; \n protected MotionPath path ; \n private boolean isControl = true ;", "msg_token": "Allow MotionEvents to be cloned"} {"diff": " public class ChatActivity extends ActorEditTextActivity { \n @ override \n protected void onNewIntent ( Intent intent ) { \n super . onNewIntent ( intent ) ; \n + SINGLE \n + messenger ( ) . onConversationClosed ( peer ) ; \n + \n peer = Peer . fromUniqueId ( intent . getExtras ( ) . getLong ( EXTRA_CHAT_PEER ) ) ; \n setFragment ( null ) ;", "msg_token": "notify chat closed when reusing chat activity"} {"diff": " public class Madvoc { \n throw new MadvocException ( STRING0 ) ; \n } \n madvocController . init ( servletContext ) ; \n + \n + SINGLE \n + webapp . ready ( ) ; \n } \n \n COMMENT \n public class WebApplication { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected void init ( MadvocConfig madvocConfig , ServletContext servletContext ) { \n log . debug ( STRING1 ) ; \n public class WebApplication { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + protected void ready ( ) { \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n protected void destroy ( MadvocConfig madvocConfig ) { \n log . debug ( STRING2 ) ; \n } \n \n - \n SINGLE \n \n COMMENT", "msg_token": "Added ready method when Madvoc is up"} {"diff": " public class Http11NioProtocol extends AbstractHttp11JsseProtocol { \n } \n \n SINGLE \n - public String getProtocol ( ) { \n - return getProperty ( STRING0 ) ; \n - } \n - \n - public void setProtocol ( String k ) { \n - setSecure ( true ) ; \n - setAttribute ( STRING0 , k ) ; \n - } \n - \n - \n public int getSocketCloseDelay ( ) { \n return socketCloseDelay ; \n }", "msg_token": "Remove unused code"} {"diff": " public class TestWsWebSocketContainer extends TomcatBaseTest { \n \n @ override \n public void contextInitialized ( ServletContextEvent sce ) { \n + super . contextInitialized ( sce ) ; \n ServerContainerImpl sc = ServerContainerImpl . getServerContainer ( ) ; \n sc . publishServer ( BlockingPojo . class , sce . getServletContext ( ) , PATH ) ; \n } \n public class TesterEchoServer { \n \n @ override \n public void contextInitialized ( ServletContextEvent sce ) { \n + super . contextInitialized ( sce ) ; \n ServerContainerImpl sc = ServerContainerImpl . getServerContainer ( ) ; \n sc . publishServer ( Async . class , sce . getServletContext ( ) , PATH_ASYNC ) ; \n sc . publishServer (", "msg_token": "Call super for consistency even if it is not"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectCommandOptions extends BuildCommandOptions { \n return processAnnotations ; \n } \n \n - @ visiblefortesting \n - public void setProcessAnnotations ( boolean value ) { \n - processAnnotations = value ; \n - } \n - \n public ImmutableMap < Path , String > getBasePathToAliasMap ( ) { \n return getBuckConfig ( ) . getBasePathToAliasMap ( ) ; \n }", "msg_token": "Remove unused method"} {"diff": " public class EventCacheBroadcasterCache implements BroadcasterCache { \n \n @ override \n public void addToCache ( String broadcasterId , AtmosphereResource r , Object e ) { \n - logger . debug ( STRING0 , r != null ? r . uuid ( ) : STRING1 , e ) ; \n + \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING0 , r != null ? r . uuid ( ) : STRING1 , e ) ; \n + } \n \n long now = System . nanoTime ( ) ; \n String messageId = UUID . randomUUID ( ) . toString ( ) ;", "msg_token": "Wrap the logging"} {"diff": " import NAMESPACE ; \n SINGLE \n SINGLE \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 public class SimplifyBooleanExpressionCheck \n extends Check \n {", "msg_token": "added class javadoc"} {"diff": " public class PlainStreetEdge extends AbstractEdge implements StreetEdge { \n COMMENT \n double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ; \n double slope = slopeWorkCost ; \n - if ( elevationProfile != null && elevationProfile . size ( ) > NUMBER0 ) { \n - slope = ElevationUtils . getSlopeCosts ( elevationProfile , name ) . slopeWorkCost ; \n - } \n weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ; \n weight /= options . speed ; \n break ; \n public class StreetVertex extends GenericVertex { \n SINGLE \n double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ; \n double slope = slopeWorkCost ; \n - slope = ElevationUtils . getSlopeCosts ( elevationProfile , name ) . slopeWorkCost ; \n weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ; \n weight /= options . speed ; \n break ;", "msg_token": "remove debugging code"} {"diff": " public class SortSymbolVisitor extends SymbolVisitor < SortSymbolVisitor . SortSymbo \n @ override \n protected SortField visitSymbol ( Symbol symbol , SortSymbolContext context ) { \n throw new UnsupportedOperationException ( \n - SymbolFormatter . format ( STRING0 , symbol ) ) ; \n + SymbolFormatter . format ( STRING1 , symbol ) ) ; \n } \n \n private SortField customSortField ( String name , \n public class SubSelectIntegrationTest extends SQLTransportIntegrationTest { \n execute ( STRING2 ) ; \n assertThat ( response . rowCount ( ) , is ( NUMBER0 ) ) ; \n } \n + \n + @ test \n + public void testScalarSubqueryCanBeUsedInGroupByAndHaving ( ) throws Exception { \n + execute ( STRING3 ) ; \n + assertThat ( TestingHelpers . printedTable ( response . rows ( ) ) , is ( STRING4 ) ) ; \n + } \n + \n + @ test \n + public void testSubqueryInOrderResultsInAnError ( ) throws Exception { \n + execute ( STRING5 ) ; \n + ensureYellow ( ) ; \n + \n + expectedException . expectMessage ( STRING1 ) ; \n + execute ( STRING6 ) ; \n + } \n }", "msg_token": "Add group by having order by subquery tests"} {"diff": " public class DataSinkTask < IT > extends AbstractOutputTask \n SINGLE \n SINGLE \n fs . delete ( path , false ) ; \n - return - NUMBER0 ; \n + int dop = getTaskConfiguration ( ) . getInteger ( DEGREE_OF_PARALLELISM_KEY , - NUMBER0 ) ; \n + if ( dop == NUMBER0 ) { \n + SINGLE \n + return NUMBER0 ; \n + } else { \n + SINGLE \n + SINGLE \n + fs . mkdirs ( path ) ; \n + return - NUMBER0 ; \n + } \n } \n } \n catch ( FileNotFoundException fnfex ) {", "msg_token": "Fixed Bug with incorrect output directory preparation"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Remove an unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class IndicesOptions { \n \n public class IndicesOptions { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean allowNoIndices ( ) { \n return ( id & NUMBER0 ) != NUMBER1 ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean expandWildcardsOpen ( ) { \n return ( id & NUMBER2 ) != NUMBER1 ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean expandWildcardsClosed ( ) { \n return ( id & NUMBER3 ) != NUMBER1 ;", "msg_token": "improved IndicesOptions javadocs"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ViewController { \n \n commonViewController . setAdapterForRecyclerView ( view , mappedName , layoutName , adapter ) ; \n \n - MaterialViewPagerHelper . registerRecyclerView ( ( Activity ) view . getContext ( ) , ( RecyclerView ) view , null ) ; \n + MaterialViewPagerHelper . registerRecyclerView ( ( Activity ) view . getContext ( ) , ( RecyclerView ) view ) ; \n } \n }", "msg_token": "Corrected package name and also changed the argument"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class CompressedSequentialWriter extends SequentialWriter \n { \n out . seek ( chunkOffset ) ; \n out . readFully ( compressed . buffer , NUMBER0 , chunkSize ) ; \n - \n - int validBytes ; \n - try \n - { \n - SINGLE \n - validBytes = compressor . uncompress ( compressed . buffer , NUMBER0 , chunkSize , buffer , NUMBER0 ) ; \n - } \n - catch ( IOException e ) \n - { \n - throw new CorruptBlockException ( getPath ( ) , chunkOffset , chunkSize ) ; \n - } \n - \n checksum . update ( compressed . buffer , NUMBER0 , chunkSize ) ; \n \n if ( out . readInt ( ) != ( int ) checksum . getValue ( ) )", "msg_token": "remove decompression code in CompressedSequentialWriter"} {"diff": " public final class JobRequest { \n COMMENT \n COMMENT \n public Builder setPersisted ( boolean persisted ) { \n - if ( ! JobUtil . hasBootPermission ( JobManager . instance ( ) . getContext ( ) ) ) { \n + if ( persisted && ! JobUtil . hasBootPermission ( JobManager . instance ( ) . getContext ( ) ) ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n mPersisted = persisted ;", "msg_token": "Check boot permission only when parameter is true"} {"diff": " public class Tutorials extends HTMLOnlyRequest { \n return \n STRING0 \n + STRING1 \n - + STRING2 \n + + STRING3 \n + STRING4 \n - + STRING5 \n + + STRING6 \n + STRING7 \n + STRING4 \n - + STRING6 \n + + STRING5 \n + STRING7 \n + STRING8 \n + STRING9", "msg_token": "Move registration button on front page"} {"diff": " final class ReplayingDecoderBuffer implements ByteBuf { \n } \n \n @ override \n - @ deprecated \n - public ByteBuf ensureWritableBytes ( int writableBytes ) { \n - throw new UnreplayableOperationException ( ) ; \n - } \n - \n - @ override \n public int ensureWritable ( int minWritableBytes , boolean force ) { \n throw new UnreplayableOperationException ( ) ; \n } \n final class ReplayingDecoderBuffer implements ByteBuf { \n } \n \n @ override \n - @ deprecated \n - public boolean readable ( ) { \n - return isReadable ( ) ; \n - } \n - \n - @ override \n public boolean isReadable ( int size ) { \n return terminated ? buffer . isReadable ( size ) : true ; \n } \n final class ReplayingDecoderBuffer implements ByteBuf { \n } \n \n @ override \n - @ deprecated \n - public boolean writable ( ) { \n - return false ; \n - } \n - \n - @ override \n public boolean isWritable ( int size ) { \n return false ; \n }", "msg_token": "Fix compilation errors"} {"diff": " public class AlarmScannerThread implements Runnable { \n \n for ( AlarmCallback callback : graylogServer . getAlarmCallbacks ( ) ) { \n String typeclass = callback . getClass ( ) . getCanonicalName ( ) ; \n - System . out . println ( STRING0 + ssa . getForcedAlarmCallbacks ( ) ) ; \n - System . out . println ( STRING1 + stream . getAlarmCallbacks ( ) ) ; \n \n SINGLE \n if ( ssa . getForcedAlarmCallbacks ( ) . contains ( typeclass ) || stream . getAlarmCallbacks ( ) . contains ( typeclass ) ) {", "msg_token": "removed forgotten debug output"} {"diff": " abstract class RustLinkable extends AbstractBuildRule { \n externalCratesBuilder . put ( buildRule . getBuildTarget ( ) . getShortName ( ) , ruleOutput ) ; \n } \n return ImmutableList . of ( \n + new MakeCleanDirectoryStep ( scratchDir ) , \n new SymlinkFilesIntoDirectoryStep ( \n context . getProjectRoot ( ) , \n getResolver ( ) . getAllPaths ( srcs ) , \n public class RustBinaryIntegrationTest { \n } \n \n @ test \n + public void buildAfterChangeWorks ( ) throws IOException , InterruptedException { \n + ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario ( \n + this , STRING0 , tmp ) ; \n + workspace . setUp ( ) ; \n + \n + workspace . runBuckBuild ( STRING1 ) . assertSuccess ( ) ; \n + workspace . writeContentsToPath ( \n + workspace . getFileContents ( STRING2 ) + STRING3 , \n + STRING2 ) ; \n + } \n + \n + @ test \n public void binaryWithLibrary ( ) throws IOException , InterruptedException { \n ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario ( \n this , STRING4 , tmp ) ;", "msg_token": "Fix a FileAlreadyExistsException on Unix Systems"} {"diff": " public class GoImportReference extends FileReference { \n return true ; \n } \n \n - if ( element instanceof PsiPackage ) { \n - for ( PsiDirectory directory : ( ( PsiPackage ) element ) . getDirectories ( ) ) { \n + if ( element instanceof PsiDirectoryContainer ) { \n + for ( PsiDirectory directory : ( ( PsiDirectoryContainer ) element ) . getDirectories ( ) ) { \n if ( super . isReferenceTo ( directory ) ) { \n return true ; \n }", "msg_token": "Fix CNFE in small ides"} {"diff": " class QuickSettings { \n mBrightnessDialog . getWindow ( ) . clearFlags ( WindowManager . LayoutParams . FLAG_DIM_BEHIND ) ; \n } \n if ( ! mBrightnessDialog . isShowing ( ) ) { \n + try { \n + WindowManagerGlobal . getWindowManagerService ( ) . dismissKeyguard ( ) ; \n + } catch ( RemoteException e ) { \n + } \n mBrightnessDialog . show ( ) ; \n dismissBrightnessDialog ( mBrightnessDialogLongTimeout ) ; \n } \n class QuickSettings { \n builder . setCancelable ( true ) ; \n final Dialog dialog = builder . create ( ) ; \n dialog . getWindow ( ) . setType ( WindowManager . LayoutParams . TYPE_SYSTEM_ALERT ) ; \n + try { \n + WindowManagerGlobal . getWindowManagerService ( ) . dismissKeyguard ( ) ; \n + } catch ( RemoteException e ) { \n + } \n dialog . show ( ) ; \n }", "msg_token": "Dismiss keyguard for brightness QS tile"} {"diff": " public class Weaver { \n static { \n try { \n _pool = ClassPool . getDefault ( ) ; \n + _pool . insertClassPath ( new ClassClassPath ( Weaver . class ) ) ; \n _dtask = _pool . get ( STRING0 ) ; SINGLE \n _enum = _pool . get ( STRING1 ) ; SINGLE \n _iced = _pool . get ( STRING2 ) ; SINGLE", "msg_token": "Modify weaver pool to look for classes not only via system"} {"diff": " public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader \n } \n SINGLE \n if ( maxX < width - MIN_DIMENSION_TO_RECUR ) { \n - doDecodeMultiple ( image . crop ( ( int ) maxX , NUMBER0 , MIN_DIMENSION_TO_RECUR - ( int ) maxX , height ) , \n + doDecodeMultiple ( image . crop ( ( int ) maxX , NUMBER0 , width - ( int ) maxX , height ) , \n hints , results , ( int ) maxX , NUMBER0 ) ; \n } \n SINGLE \n if ( maxY < height - MIN_DIMENSION_TO_RECUR ) { \n - doDecodeMultiple ( image . crop ( NUMBER0 , ( int ) maxY , width , MIN_DIMENSION_TO_RECUR - ( int ) maxY ) , \n + doDecodeMultiple ( image . crop ( NUMBER0 , ( int ) maxY , width , height - ( int ) maxY ) , \n hints , results , NUMBER0 , ( int ) maxY ) ; \n } \n }", "msg_token": "Oops fixed typo in last patch"} {"diff": " public class DatabaseDescriptor \n COMMENT \n if ( conf . listen_address != null ) \n { \n + if ( conf . listen_address . equals ( STRING0 ) ) \n + throw new ConfigurationException ( STRING1 ) ; \n try \n { \n listenAddress = InetAddress . getByName ( conf . listen_address ) ; \n public class DatabaseDescriptor \n throw new ConfigurationException ( STRING2 + conf . listen_address + STRING3 ) ; \n } \n } \n - if ( conf . listen_address . equals ( STRING0 ) ) \n - throw new ConfigurationException ( STRING1 ) ; \n \n try \n {", "msg_token": "fix broken merge"} {"diff": " public class TopHitsAggregator extends BucketsAggregator implements ScorerAware \n \n @ override \n public InternalAggregation buildEmptyAggregation ( ) { \n - return new InternalTopHits ( name , topHitsContext . size ( ) , topHitsContext . sort ( ) , Lucene . EMPTY_TOP_DOCS , InternalSearchHits . empty ( ) ) ; \n + return new InternalTopHits ( name , topHitsContext . from ( ) , topHitsContext . size ( ) , topHitsContext . sort ( ) , Lucene . EMPTY_TOP_DOCS , InternalSearchHits . empty ( ) ) ; \n } \n \n @ override", "msg_token": "BUILD Fix compile error"} {"diff": " public class ShaderCollectionTest extends BaseG3dHudTest { \n } \n } else { \n FileHandle root = Gdx . files . internal ( STRING0 ) ; \n - cubemap = new Cubemap ( root . child ( name + STRING1 ) , null , SINGLE \n + cubemap = new Cubemap ( root . child ( name + STRING1 ) , root . child ( name + STRING2 ) , \n root . child ( name + STRING3 ) , root . child ( name + STRING4 ) , root . child ( name + STRING5 ) , \n root . child ( name + STRING6 ) , false ) ; SINGLE \n cubemap . load ( CubemapSide . NegativeX , root . child ( name + STRING2 ) ) ;", "msg_token": "Remove old test code"} {"diff": " public class NativeMemoryChunk implements Closeable { \n private static final String TAG = STRING0 ; \n \n static { \n - SoLoaderShim . loadLibrary ( STRING1 ) ; \n SoLoaderShim . loadLibrary ( STRING2 ) ; \n }", "msg_token": "Do not load gnustl in NativeMemoryChunk"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PluginTestCaseBase { \n private static Sdk getSdk ( String sdkHome ) { \n Sdk sdk = JavaSdk . getInstance ( ) . createJdk ( STRING0 , sdkHome , true ) ; \n SdkModificator modificator = sdk . getSdkModificator ( ) ; \n + JavaSdkImpl . attachJdkAnnotations ( modificator ) ; \n VirtualFile file = LocalFileSystem . getInstance ( ) . findFileByIoFile ( JetTestUtils . getJdkAnnotationsJar ( ) ) ; \n assert file != null ; \n modificator . addRoot ( JarFileSystem . getInstance ( ) . getJarRootForLocalFile ( file ) , AnnotationOrderRootType . getInstance ( ) ) ;", "msg_token": "Attach ideaSDK jdkAnnotations"} {"diff": " public class VideoSampleActivity extends FragmentActivity { \n COMMENT \n private void initializeVideoView ( ) { \n Uri path = Uri . parse ( APPLICATION_RAW_PATH + R . raw . video ) ; \n - MediaController mediaController = new MediaController ( this ) ; \n - videoView . setMediaController ( mediaController ) ; \n videoView . setVideoURI ( path ) ; \n videoView . start ( ) ; \n }", "msg_token": "Remove MediaController from VideoSampleActivity"} {"diff": " public class GlobalOperationHandlers { \n \n SINGLE \n final ReadResourceAssemblyHandler assemblyHandler = new ReadResourceAssemblyHandler ( directAttributes , metrics , otherAttributes , directChildren , childResources ) ; \n - context . addStep ( assemblyHandler , OperationContext . Stage . IMMEDIATE ) ; \n + context . addStep ( assemblyHandler , queryRuntime ? OperationContext . Stage . VERIFY : OperationContext . Stage . IMMEDIATE ) ; \n final ImmutableManagementResourceRegistration registry = context . getResourceRegistration ( ) ; \n final Resource resource = context . readResource ( PathAddress . EMPTY_ADDRESS ) ; \n SINGLE", "msg_token": "run the aggregation handler for runtime queries after the runtime stage"} {"diff": " public class DeepLearningSpiralsTest extends TestUtil { \n { \n DeepLearning p = new DeepLearning ( ) ; \n p . seed = NUMBER0 ; \n - p . rate = FLOAT0 ; \n - p . rate_annealing = NUMBER1 ; \n p . epochs = NUMBER2 ; \n p . hidden = new int [ ] { NUMBER3 } ; \n p . activation = DeepLearning . Activation . Tanh ; \n p . max_w2 = Float . POSITIVE_INFINITY ; \n p . l1 = NUMBER1 ; \n p . l2 = NUMBER1 ; \n - p . momentum_start = NUMBER1 ; \n - p . momentum_ramp = NUMBER1 ; \n - p . momentum_stable = NUMBER1 ; \n p . initial_weight_distribution = DeepLearning . InitialWeightDistribution . Normal ; \n p . initial_weight_scale = FLOAT1 ; \n p . loss = DeepLearning . Loss . CrossEntropy ;", "msg_token": "Don t set unused parameters"} {"diff": " public class RmiRouteTest extends TestCase { \n SINGLE \n RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING0 ) ; \n bye . setRemoteInterfaces ( ISay . class ) ; \n - from ( bye ) . to ( STRING1 ) ; \n + from ( bye ) . to ( STRING2 ) ; \n } \n } ) ; \n SINGLE", "msg_token": "Also fixed the RmiRouteTest"} {"diff": " public class SessionManager extends BasicModule { \n offline . setType ( Presence . Type . unavailable ) ; \n router . route ( offline ) ; \n } \n - return auth_removed || preauth_removed ; \n + if ( auth_removed || preauth_removed ) { \n + SINGLE \n + usersSessionsCounter . decrementAndGet ( ) ; \n + return true ; \n + } \n + return false ; \n } \n \n public void addAnonymousSession ( ClientSession session ) { \n public class SessionManager extends BasicModule { \n } \n finally { \n SINGLE \n - if ( removeSession ( session ) ) { \n - SINGLE \n - usersSessionsCounter . decrementAndGet ( ) ; \n - } \n + removeSession ( session ) ; \n } \n } \n catch ( Exception e ) {", "msg_token": "Fixed edge case where session counter might go wrong"} {"diff": " public class GELFClientHandlerThread extends Thread { \n Log . crit ( STRING0 + e . toString ( ) ) ; \n } catch ( java . net . SocketException e ) { \n Log . crit ( STRING1 + e . toString ( ) ) ; \n + } catch ( Exception e ) { \n + Log . crit ( STRING2 + e . toString ( ) ) ; \n } \n }", "msg_token": "catching all exceptions in GELF handler thread now better safe than sorry"} {"diff": " public class MethodCompiler extends AbstractMethodCompiler { \n } else if ( unit instanceof ExitMonitorStmt ) { \n exitMonitor ( ( ExitMonitorStmt ) unit ) ; \n } else if ( unit instanceof NopStmt ) { \n - SINGLE \n + nop ( ( NopStmt ) unit ) ; \n } else { \n throw new IllegalArgumentException ( STRING0 + unit . getClass ( ) ) ; \n } \n public class MethodCompiler extends AbstractMethodCompiler { \n checkNull ( stmt , op ) ; \n call ( stmt , MONITOREXIT , env , op ) ; \n } \n + \n + private void nop ( NopStmt stmt ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Variable v = function . newVariable ( I32 ) ; \n + function . add ( new Add ( v , new IntegerConstant ( NUMBER0 ) , new IntegerConstant ( NUMBER0 ) ) ) . attach ( stmt ) ; \n + } \n }", "msg_token": "Preserve NOPs as they may be needed for compiler plugins"} {"diff": " import NAMESPACE ; \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 public class DataHeaderFlyweight extends HeaderFlyweight \n COMMENT \n public static final int HEADER_LENGTH = NUMBER0 ; \n \n - private static final int SESSION_ID_FIELD_OFFSET = NUMBER1 ; \n - private static final int CHANNEL_ID_FIELD_OFFSET = NUMBER2 ; \n - private static final int TERM_ID_FIELD_OFFSET = NUMBER3 ; \n - private static final int SEQUENCE_NUMBER_FIELD_OFFSET = NUMBER4 ; \n + private static final int SEQUENCE_NUMBER_FIELD_OFFSET = NUMBER1 ; \n + private static final int SESSION_ID_FIELD_OFFSET = NUMBER2 ; \n + private static final int CHANNEL_ID_FIELD_OFFSET = NUMBER3 ; \n + private static final int TERM_ID_FIELD_OFFSET = NUMBER4 ; \n private static final int DATA_OFFSET = NUMBER0 ; \n \n COMMENT", "msg_token": "moved sequence number field to right after frame length field"} {"diff": " public class IgnoredJUnitTestInspection extends BaseInspection { \n final PsiJavaCodeReferenceElement nameReferenceElement = \n annotation . getNameReferenceElement ( ) ; \n if ( nameReferenceElement == null ) { \n - System . out . println ( STRING0 + nameReferenceElement ) ; \n return ; \n } \n final PsiElement target = nameReferenceElement . resolve ( ) ; \n public class IgnoredJUnitTestInspection extends BaseInspection { \n final PsiClass aClass = ( PsiClass ) target ; \n final String qualifiedName = aClass . getQualifiedName ( ) ; \n if ( ! STRING1 . equals ( qualifiedName ) ) { \n - System . out . println ( STRING2 + qualifiedName ) ; \n return ; \n } \n registerError ( annotation , modifierListOwner ) ;", "msg_token": "remove debugging output"} {"diff": " public class HTML5VideoFullScreen extends HTML5VideoView \n } \n } ; \n \n + MediaPlayer . OnVideoSizeChangedListener mSizeChangedListener = \n + new MediaPlayer . OnVideoSizeChangedListener ( ) { \n + @ override \n + public void onVideoSizeChanged ( MediaPlayer mp , int width , int height ) { \n + mVideoWidth = mp . getVideoWidth ( ) ; \n + mVideoHeight = mp . getVideoHeight ( ) ; \n + if ( mVideoWidth != NUMBER0 && mVideoHeight != NUMBER0 ) { \n + mVideoSurfaceView . getHolder ( ) . setFixedSize ( mVideoWidth , mVideoHeight ) ; \n + } \n + } \n + } ; \n + \n private SurfaceView getSurfaceView ( ) { \n return mVideoSurfaceView ; \n } \n public class HTML5VideoFullScreen extends HTML5VideoView \n mc . setSystemUiVisibility ( mLayout . getSystemUiVisibility ( ) ) ; \n setMediaController ( mc ) ; \n mPlayer . setScreenOnWhilePlaying ( true ) ; \n + mPlayer . setOnVideoSizeChangedListener ( mSizeChangedListener ) ; \n prepareDataAndDisplayMode ( mProxy ) ; \n }", "msg_token": "Live streaming video may not have the right size at prepared"} {"diff": " public class MonitoringStatus { \n for ( Region region : obj . keySet ( ) ) { \n LogManager . d ( TAG , STRING0 + region + STRING1 + region . getUniqueId ( ) + STRING2 + obj . get ( region ) ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + for ( RegionMonitoringState regionMonitoringState : obj . values ( ) ) \n + { \n + if ( regionMonitoringState . getInside ( ) ) \n + { \n + regionMonitoringState . markInside ( ) ; \n + } \n + } \n + \n mRegionsStatesMap . putAll ( obj ) ; \n \n } catch ( IOException | ClassNotFoundException | ClassCastException e ) {", "msg_token": "After a MonitoringStatus restore beacons that were inside have their initial lastSeenTime and may trigger quickly as exit enter"} {"diff": " public class Antlr4Mojo extends AbstractMojo { \n COMMENT \n @ parameter ( defaultValue = STRING0 ) \n protected boolean atn ; \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ parameter ( defaultValue = STRING1 ) \n - protected String messageFormat ; \n \n protected boolean verbose_dfa ; \n \n public class Antlr4Mojo extends AbstractMojo { \n if ( verbose_dfa ) { \n args . add ( STRING2 ) ; \n } \n - if ( messageFormat != null && ! STRING3 . equals ( messageFormat ) ) { \n - args . add ( STRING4 ) ; \n - args . add ( messageFormat ) ; \n - } \n if ( force_atn ) { \n args . add ( STRING5 ) ; \n }", "msg_token": "Remove the message format option eventually it should just use one that works with Maven"} {"diff": " public abstract class SettingsBaseActivity extends SherlockPreferenceActivity im \n @ override \n public void onClick ( View v ) { \n if ( selected . size ( ) > NUMBER0 ) { \n + SINGLE \n setSelectedAppMode ( selected . iterator ( ) . next ( ) ) ; \n } \n if ( profileDialog != null && profileDialog . isShowing ( ) ) { \n public class NavigateAction { \n if ( ! showDefault ) { \n values . remove ( ApplicationMode . DEFAULT ) ; \n } \n - selected . add ( settings . getApplicationMode ( ) ) ; \n + if ( showDefault || settings . getApplicationMode ( ) != ApplicationMode . DEFAULT ) { \n + selected . add ( settings . getApplicationMode ( ) ) ; \n + } \n return prepareAppModeView ( a , values , selected , parent , singleSelection , onClickListener ) ; \n \n }", "msg_token": "Fix bug with default selection navigation settings"} {"diff": " public class RootImpl < X > extends AbstractFromImpl < X , X > implements Root < X > , Seria \n \n @ override \n public String render ( RenderingContext renderingContext ) { \n + original . prepareAlias ( renderingContext ) ; \n return getTreatFragment ( ) ; \n }", "msg_token": "Selecting treated root generates invalid HQL"} {"diff": " public class MediaDriverAdminThread extends ClosableThread implements LibraryFac \n final BufferRotator buffer = bufferManagementStrategy . addReceiverTerm ( rcvDestination , sessionId , channelId ) ; \n \n SINGLE \n - receiverThread . addBuffer ( new RcvBufferState ( rcvDestination , sessionId , channelId , termId , buffer ) ) ; \n + RcvBufferState bufferState = new RcvBufferState ( rcvDestination , sessionId , channelId , termId , buffer ) ; \n + while ( ! receiverThread . sendBuffer ( bufferState ) ) \n + { \n + SINGLE \n + } \n } \n catch ( Exception e ) \n { \n public class ReceiverThread extends ClosableThread \n return nioSelector ; \n } \n \n - public void addBuffer ( final RcvBufferState buffer ) \n + public boolean sendBuffer ( final RcvBufferState buffer ) \n { \n - buffers . add ( buffer ) ; \n + return buffers . offer ( buffer ) ; \n } \n \n public RcvFrameHandler frameHandler ( final UdpDestination destination )", "msg_token": "tidy up error case on enqueuing"} {"diff": " public class SyncAccountService { \n SyncAccount syncAccount = SyncAccountService . fetchSyncAccount ( \n syncAccountId ) ; \n \n + if ( ! moveFile ) { \n + SyncFile syncFile = SyncFileService . fetchSyncFile ( \n + syncAccount . getFilePathName ( ) ) ; \n + \n + String originalFileKey = syncFile . getFileKey ( ) ; \n + \n + String targetFileKey = FileUtil . getFileKey ( filePath ) ; \n + \n + if ( ! originalFileKey . equals ( targetFileKey ) ) { \n + throw new Exception ( \n + STRING0 ) ; \n + } \n + } \n + \n syncAccount . setActive ( false ) ; \n \n SyncAccountService . update ( syncAccount ) ; \n public class SyncAccountService { \n syncAccount = setFilePathName ( syncAccountId , filePath . toString ( ) ) ; \n \n syncAccount . setActive ( true ) ; \n + syncAccount . setUiEvent ( SyncAccount . UI_EVENT_DEFAULT ) ; \n \n SyncAccountService . update ( syncAccount ) ; \n }", "msg_token": "Throw an exception if the selected folder is not the original folder"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface IvyPublication extends Publication { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix samples in DSL docs"} {"diff": " public class TaskListFragment extends SherlockListFragment implements OnScrollLi \n \n public static final String TAG_TASKLIST_FRAGMENT = STRING0 ; SINGLE \n \n - private static final String PREF_LAST_FEEDBACK_TIME = STRING1 ; SINGLE \n + public static final String PREF_LAST_FEEDBACK_TIME = STRING1 ; SINGLE \n private static final long FEEDBACK_TIME_INTERVAL = DateUtilities . ONE_WEEK * NUMBER0 ; \n \n SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class UpgradeService { \n if ( from < V4_6_3 ) { \n if ( ActFmPreferenceService . isPremiumUser ( ) ) \n Preferences . clear ( NameMaps . PUSHED_AT_TAGS ) ; \n + Preferences . setLong ( TaskListFragment . PREF_LAST_FEEDBACK_TIME , DateUtilities . now ( ) ) ; \n } \n }", "msg_token": "Set last feedback time for upgrading users"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyScriptRunConfiguration extends ModuleBasedConfiguration { \n } \n \n public static String getConfPath ( String groovyHome ) { \n - String confpath = groovyHome + GROOVY_STARTER_CONF ; \n + String confpath = FileUtil . toSystemDependentName ( groovyHome + GROOVY_STARTER_CONF ) ; \n if ( new File ( confpath ) . exists ( ) ) { \n return confpath ; \n }", "msg_token": "convert groovy conf path to system dependent"} {"diff": " public class SQLSelectTest { \n record . setClassName ( STRING0 ) ; \n record . field ( STRING1 , STRING2 ) ; \n \n - Set < ODocument > races = new HashSet < ODocument > ( ) ; \n + Collection < ODocument > races = new HashSet < ODocument > ( ) ; \n races . add ( ( ( ODocument ) database . newInstance ( STRING3 ) ) . field ( STRING1 , STRING4 ) ) ; \n races . add ( ( ( ODocument ) database . newInstance ( STRING3 ) ) . field ( STRING1 , STRING5 ) ) ; \n record . field ( STRING6 , races ) ;", "msg_token": "Fixed bug on collections in SQL queries reported by cgandelli gmail com in ML"} {"diff": " public class BanListCommand extends VanillaCommand { \n public boolean execute ( CommandSender sender , String currentAlias , String [ ] args ) { \n if ( ! testPermission ( sender ) ) return true ; \n \n - StringBuilder message = new StringBuilder ( ) . append ( ChatColor . GRAY ) . append ( STRING0 ) ; \n + StringBuilder message = new StringBuilder ( ) . append ( ChatColor . GRAY ) . append ( STRING1 ) ; \n \n int count = NUMBER0 ; \n for ( OfflinePlayer p : Bukkit . getServer ( ) . getBannedPlayers ( ) ) {", "msg_token": "Added spacing to BanListCommand output"} {"diff": " public class ReactRootView extends SizeMonitoringFrameLayout implements RootView \n private @ nullable String mJSModuleName ; \n private @ nullable Bundle mLaunchOptions ; \n private @ nullable KeyboardListener mKeyboardListener ; \n + private @ nullable OnGenericMotionListener mOnGenericMotionListener ; \n private boolean mWasMeasured = false ; \n private boolean mAttachScheduled = false ; \n private boolean mIsAttachedToWindow = false ; \n public class ReactRootView extends SizeMonitoringFrameLayout implements RootView \n EventDispatcher eventDispatcher = reactContext . getNativeModule ( UIManagerModule . class ) \n . getEventDispatcher ( ) ; \n mJSTouchDispatcher . onChildStartedNativeGesture ( androidEvent , eventDispatcher ) ; \n + SINGLE \n + if ( mOnGenericMotionListener != null ) { \n + mOnGenericMotionListener . onGenericMotion ( this , androidEvent ) ; \n + } \n } \n \n @ override \n public class ReactRootView extends SizeMonitoringFrameLayout implements RootView \n return true ; \n } \n \n + public void setOnGenericMotionListener ( OnGenericMotionListener listener ) { \n + mOnGenericMotionListener = listener ; \n + } \n + \n private void dispatchJSTouchEvent ( MotionEvent event ) { \n if ( mReactInstanceManager == null || ! mIsAttachedToInstance || \n mReactInstanceManager . getCurrentReactContext ( ) == null ) {", "msg_token": "Render top back and back button on search results"} {"diff": " public abstract class ESIntegTestCase extends ESTestCase { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setMinimumMasterNodes ( int n ) { \n assertTrue ( client ( ) . admin ( ) . cluster ( ) . prepareUpdateSettings ( ) . setTransientSettings (", "msg_token": "Changed some of the language in documentation"} {"diff": " public class SymmetricEncryptionConfig { \n } \n \n public byte [ ] getKey ( ) { \n - return Arrays . copyOf ( key , key . length ) ; \n + return key != null ? Arrays . copyOf ( key , key . length ) : null ; \n } \n \n public SymmetricEncryptionConfig setKey ( byte [ ] key ) { \n - this . key = Arrays . copyOf ( key , key . length ) ; \n + this . key = key != null ? Arrays . copyOf ( key , key . length ) : null ; \n return this ; \n } \n \n public class EncryptionTest { \n COMMENT \n COMMENT \n COMMENT \n - @ test ( timeout = NUMBER0 * NUMBER1 ) \n + @ test \n public void testSymmetricEncryption ( ) throws Exception { \n Config config = new Config ( ) ; \n SymmetricEncryptionConfig encryptionConfig = new SymmetricEncryptionConfig ( ) ;", "msg_token": "Fixed SymmetricEncryptionConfig NPE"} {"diff": " public class DownloadIndexesThread { \n if ( date != null && \n ! date . equals ( indexactivateddate ) && \n ! date . equals ( indexfilesdate ) ) { \n - SINGLE \n - SINGLE \n if ( ( item . getType ( ) == DownloadActivityType . NORMAL_FILE && ! item . extra ) || \n item . getType ( ) == DownloadActivityType . ROADS_FILE || \n item . getType ( ) == DownloadActivityType . SRTM_COUNTRY_FILE ) {", "msg_token": "remove obsolete comments"} {"diff": " public class IOSCharsetDecoder extends CharsetDecoder { \n } \n \n private static native String decode ( byte [ ] in , long encoding ) COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT ; \n - \n + \n public int available ( ) { \n return charBuffer != null ? ( charBuffer . length - outIndex ) : NUMBER0 ; \n }", "msg_token": "Fixed charset decoder to return empty string instead of nil"} {"diff": " public class OperationSetBasicTelephonySipImpl \n else \n { \n logger . error ( STRING0 \n - + STRING1 ) ; \n + + STRING2 \n + + STRING3 + dialogState ) ; \n } \n \n processed = true ; \n public class OperationSetBasicTelephonySipImpl \n COMMENT \n private void processStrayInvite ( ServerTransaction serverTransaction ) \n { \n + logger . info ( STRING4 ) ; \n + \n Request inviteRequest = serverTransaction . getRequest ( ) ; \n \n SINGLE", "msg_token": "Prints some extra info when dropping stray INVITEs"} {"diff": " public class InspectionGadgetsPlugin implements ApplicationComponent , \n } \n \n private void registerAbstractionInspections ( ) { \n - m_inspectionClasses . add ( DuplicateStringLiteralInspection . class ) ; \n m_inspectionClasses . add ( FeatureEnvyInspection . class ) ; \n m_inspectionClasses . add ( InstanceofChainInspection . class ) ; \n m_inspectionClasses . add ( LocalVariableOfConcreteClassInspection . class ) ;", "msg_token": "Removing the Duplicate String Literal inspection"} {"diff": " public class GraphBuilderTask implements Runnable { \n } \n \n public void run ( ) { \n - \n + \n + COMMENT \n + long startTime = System . currentTimeMillis ( ) ; \n + \n if ( graphFile == null ) { \n throw new RuntimeException ( STRING0 ) ; \n } \n public class GraphBuilderTask implements Runnable { \n } else { \n LOG . info ( STRING1 ) ; \n } \n - \n + \n + long endTime = System . currentTimeMillis ( ) ; \n + LOG . info ( String . format ( STRING2 , ( endTime - startTime ) / NUMBER0 / FLOAT0 ) ) ; \n } \n }", "msg_token": "output the total graph build duration"} {"diff": " public class FromContainsFilter implements PacketFilter { \n } \n \n public boolean accept ( Packet packet ) { \n - return packet . getFrom ( ) . indexOf ( from ) != - NUMBER0 ; \n + if ( packet . getFrom ( ) != null ) { \n + return packet . getFrom ( ) . indexOf ( from ) != - NUMBER0 ; \n + } \n + else { \n + return false ; \n + } \n } \n }", "msg_token": "Added null check"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CamelSalesforceMojoIntegrationTest { \n \n SINGLE \n mojo . version = System . getProperty ( STRING0 , SalesforceEndpointConfig . DEFAULT_VERSION ) ; \n + mojo . loginUrl = System . getProperty ( STRING1 , SalesforceLoginConfig . DEFAULT_LOGIN_URL ) ; \n mojo . outputDirectory = new File ( STRING2 ) ; \n mojo . packageName = STRING3 ;", "msg_token": "fixed mojo integration test to use system property or default login url"} {"diff": " public class NettyTransport extends AbstractLifecycleComponent < Transport > implem \n \n this . scheduledPing = new ScheduledPing ( ) ; \n this . pingSchedule = PING_SCHEDULE . get ( settings ) ; \n - if ( pingSchedule . millis ( ) > NUMBER0 ) { \n - threadPool . schedule ( pingSchedule , ThreadPool . Names . GENERIC , scheduledPing ) ; \n - } \n this . namedWriteableRegistry = namedWriteableRegistry ; \n this . circuitBreakerService = circuitBreakerService ; \n } \n public class NettyTransport extends AbstractLifecycleComponent < Transport > implem \n bindServerBootstrap ( name , mergedSettings ) ; \n } \n } \n + if ( pingSchedule . millis ( ) > NUMBER0 ) { \n + threadPool . schedule ( pingSchedule , ThreadPool . Names . GENERIC , scheduledPing ) ; \n + } \n success = true ; \n } finally { \n if ( success == false ) {", "msg_token": "Do not start scheduled pings until transport start"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n + @ singleton \n public class Navigator { \n \n - @ inject \n public void Navigator ( ) { \n SINGLE \n }", "msg_token": "Add singleton scope to navigator"} {"diff": " public class Match { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final boolean checksSpelling ( ) { \n - SINGLE \n return suppressMisspelled ; \n }", "msg_token": "remove TODO and improve javadoc"} {"diff": " public class SearchTextField extends JPanel { \n } \n \n public void setSearchIcon ( final Icon icon ) { \n - myToggleHistoryLabel . setIcon ( icon ) ; \n + if ( ! hasNativeLeopardSearchControl ( ) ) { \n + myToggleHistoryLabel . setIcon ( icon ) ; \n + } \n } \n }", "msg_token": "NPE in got log do not set icon in search field for MAC"} {"diff": " public class TileLaser extends TileBuildCraft implements IActionReceptor , IMachi \n \n \n @ override \n - public void initialize ( ) { \n + public void initialize ( ) { \n super . initialize ( ) ; \n + \n + if ( laser == null ) { \n + laser = new LaserData ( ) ; \n + } \n \n laser . isVisible = false ; \n laser . head = new Position ( xCoord , yCoord , zCoord ) ;", "msg_token": "Fixed laser data not existing in some cases"} {"diff": " public class AnimatedVectorDrawable extends Drawable implements Animatable { \n final int size = animators . size ( ) ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n final Animator animator = animators . get ( i ) ; \n - if ( animator . isPaused ( ) ) { \n - animator . resume ( ) ; \n - } else if ( ! animator . isRunning ( ) ) { \n + if ( ! animator . isRunning ( ) ) { \n animator . start ( ) ; \n } \n } \n public class AnimatedVectorDrawable extends Drawable implements Animatable { \n final int size = animators . size ( ) ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n final Animator animator = animators . get ( i ) ; \n - animator . pause ( ) ; \n + animator . end ( ) ; \n } \n }", "msg_token": "End the animator when stop is called"} {"diff": " public class PixmapPacker implements Disposable { \n int borderPixels = padding + ( duplicateBorder ? NUMBER0 : NUMBER1 ) ; \n borderPixels < <= NUMBER0 ; \n \n - if ( image . getWidth ( ) >= pageWidth + borderPixels || image . getHeight ( ) >= pageHeight + borderPixels ) \n - throw new GdxRuntimeException ( STRING0 + name + STRING1 ) ; \n - \n Rectangle rect = new Rectangle ( NUMBER1 , NUMBER1 , image . getWidth ( ) + borderPixels , image . getHeight ( ) + borderPixels ) ; \n + if ( rect . getWidth ( ) > pageWidth || rect . getHeight ( ) > pageHeight ) \n + throw new GdxRuntimeException ( STRING0 + name + STRING1 ) ; \n + \n Node node = insert ( currPage . root , rect ) ; \n \n if ( node == null ) {", "msg_token": "Fix edge case where PixmapPacker eats all memory in infinite recursion"} {"diff": " public final class InteropTester extends AsyncTask < Void , Void , String > { \n request . responseSize = unaryPayloadLength ( ) ; \n request . responseType = Messages . COMPRESSABLE ; \n \n + SimpleResponse resp = blockingStub . unaryCall ( request ) ; \n final SimpleResponse goldenResponse = new SimpleResponse ( ) ; \n goldenResponse . payload = new Payload ( ) ; \n goldenResponse . payload . type = Messages . COMPRESSABLE ; \n goldenResponse . payload . body = new byte [ unaryPayloadLength ( ) ] ; \n \n - assertMessageSizeEquals ( goldenResponse , blockingStub . unaryCall ( request ) ) ; \n + assertMessageSizeEquals ( goldenResponse , resp ) ; \n } \n \n public void deadlineNotExceeded ( ) {", "msg_token": "Fix OOM errors that happen occasionally"} {"diff": " public class IcqProtocolProviderSlick \n SINGLE \n SINGLE \n SINGLE \n - String offlineMsgBody = STRING0 ; \n - IcqSlickFixture . offlineMsgCollector = \n - new IcqSlickFixture . OfflineMsgCollector ( ) ; \n - IcqSlickFixture . offlineMsgCollector . setMessageText ( offlineMsgBody ) ; \n - IcqSlickFixture . testerAgent . sendOfflineMessage ( \n - System . getProperty ( TESTED_IMPL_ACCOUNT_ID_PROP_NAME , null ) , \n - offlineMsgBody \n - ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n SINGLE \n SINGLE \n public class TestOperationSetBasicInstantMessaging \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + \n public void testReceiveOfflineMessages ( ) \n { \n String messageText = \n public class TestOperationSetBasicInstantMessaging \n assertNotNull ( STRING1 , receiveMessage ) ; \n assertEquals ( STRING2 , messageText , receiveMessage . getContent ( ) ) ; \n } \n - \n + COMMENT \n }", "msg_token": "removed tests for offline messages which failed the build"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove import of backport util concurrent Arrays class"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n } . execute ( ) . throwException ( ) ; \n } \n \n - public static void addSourceContentToRoots ( Module module , VirtualFile vDir ) { \n + public static void addSourceContentToRoots ( Module module , @ notnull VirtualFile vDir ) { \n addSourceContentToRoots ( module , vDir , false ) ; \n } \n \n - public static void addSourceContentToRoots ( final Module module , final VirtualFile vDir , final boolean testSource ) { \n + public static void addSourceContentToRoots ( final Module module , @ notnull final VirtualFile vDir , final boolean testSource ) { \n new WriteCommandAction . Simple ( module . getProject ( ) ) { \n @ override \n protected void run ( ) throws Throwable {", "msg_token": "Fix another test"} {"diff": " import NAMESPACE ; \n public class DeprecatedLzoBinaryBlockRecordWriter < M , W extends BinaryWritable < M > > \n implements RecordWriter < NullWritable , W > { \n \n - private BinaryBlockWriter < M > writer_ ; \n + private BinaryBlockWriter < M > writer ; \n \n public DeprecatedLzoBinaryBlockRecordWriter ( BinaryBlockWriter < M > writer ) { \n - writer_ = writer ; \n + this . writer = writer ; \n } \n \n public void write ( NullWritable nullWritable , W writable ) \n throws IOException { \n - writer_ . write ( writable . get ( ) ) ; \n + writer . write ( writable . get ( ) ) ; \n } \n \n public void close ( Reporter reporter ) throws IOException { \n - writer_ . finish ( ) ; \n - writer_ . close ( ) ; \n + writer . finish ( ) ; \n + writer . close ( ) ; \n } \n }", "msg_token": "Remove ugly underscore"} {"diff": " public class AppCompiler { \n + STRING0 \n + STRING1 ) ; \n System . err . println ( STRING2 \n - + STRING3 \n + + STRING4 \n + STRING5 ) ; \n System . err . println ( STRING6 \n + STRING7", "msg_token": "Fixed formatting in usage message in AppCompiler"} {"diff": " public class IQDiscoItemsHandler extends IQHandler implements ServerFeaturesProv \n element . addAttribute ( STRING0 , discoItem . getNode ( ) ) ; \n element . addAttribute ( STRING1 , discoItem . getName ( ) ) ; \n SINGLE \n - serverItems . add ( element ) ; \n + addComponentItem ( discoItem . getJID ( ) , discoItem . getName ( ) ) ; \n \n SINGLE \n String host = new JID ( discoItem . getJID ( ) ) . getDomain ( ) ;", "msg_token": "Fixed sync issue which could cause multiple Disco Items entries"} {"diff": " public class TargetElementUtil { \n else if ( parent instanceof PsiNamedElement ) { SINGLE \n if ( parent . getTextOffset ( ) == element . getTextOffset ( ) && \n Comparing . equal ( ( ( PsiNamedElement ) parent ) . getName ( ) , element . getText ( ) ) && \n - ! ( parent instanceof XmlAttribute ) && \n - ! ( parent instanceof PsiReference ) \n + ! ( parent instanceof XmlAttribute ) \n ) { \n return parent ; \n }", "msg_token": "removing bogus to treat JSReferenceExpression as PsiNamedElement"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FilterPlanNode implements PlanNode { \n if ( dataSourceMetadata . isSingleValue ( ) && dataSourceMetadata . isSorted ( ) ) { \n SINGLE \n baseFilterOperator = new SortedInvertedIndexBasedFilterOperator ( ds ) ; \n - } else if ( ! filterType . equals ( FilterOperator . RANGE ) ) { \n + } else if ( ! filterType . equals ( FilterOperator . RANGE ) || _segment instanceof RealtimeSegment ) { \n + SINGLE \n SINGLE \n baseFilterOperator = new BitmapBasedFilterOperator ( ds ) ; \n } else {", "msg_token": "Fixed realtime integration test"} {"diff": " public class EduStepicConnector { \n final Gson gson = new GsonBuilder ( ) . setPrettyPrinting ( ) . excludeFieldsWithoutExposeAnnotation ( ) . \n registerTypeAdapter ( AnswerPlaceholder . class , new StudySerializationUtils . Json . StepicAnswerPlaceholderAdapter ( ) ) . create ( ) ; \n ApplicationManager . getApplication ( ) . invokeLater ( ( ) - > { \n + task . addTestsTexts ( STRING0 , task . getTestsText ( project ) ) ; \n final String requestBody = gson . toJson ( new StepicWrappers . StepSourceWrapper ( project , task , lessonId ) ) ; \n request . setEntity ( new StringEntity ( requestBody , ContentType . APPLICATION_JSON ) ) ;", "msg_token": "set tests before push task to stepik"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class ProtobufParser < MessageType extends MessageLite > { \n private TimerTask timeoutTask ; \n private long timeoutMillis ; \n \n - SINGLE \n - private static final Timer timeoutTimer = new Timer ( ) ; \n + SINGLE \n + private static final Timer timeoutTimer = new Timer ( STRING0 , true ) ; \n \n COMMENT \n COMMENT", "msg_token": "Make the ProtobufParser timer daemon and labelled"} {"diff": " public class MessageList \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n public static void actionHandleFolder ( Context context , Account account , String folder , boolean startup )", "msg_token": "Remove lies from a comment"} {"diff": " public class ShellException extends Exception \n { \n String stackTraceAsString = stackTraceAsString ( cause ) ; \n String message = getFirstMessage ( cause ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + if ( ! ( cause instanceof ShellException ) ) \n + { \n + message = cause . getClass ( ) . getSimpleName ( ) + STRING0 + message ; \n + } \n return new ShellException ( message , stackTraceAsString ) ; \n }", "msg_token": "Displays the exception simple class name for unrecognized exceptions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GeneralCommandLine implements UserDataHolder { \n @ notnull \n public GeneralCommandLine withWorkDirectory ( @ nullable File workDirectory ) { \n myWorkDirectory = workDirectory ; \n + if ( SystemInfo . isUnix && workDirectory != null ) { \n + getEnvironment ( ) . put ( STRING0 , FileUtil . toSystemDependentName ( workDirectory . getAbsolutePath ( ) ) ) ; \n + } \n + \n return this ; \n }", "msg_token": "always set PWD variable to the value of working dir"} {"diff": " public class SecureHashUtil { \n ( byte ) STRING0 , ( byte ) STRING1 , ( byte ) STRING2 , ( byte ) STRING3 \n } ; \n \n - private static String convertToHex ( byte [ ] raw ) throws UnsupportedEncodingException { \n + public static String convertToHex ( byte [ ] raw ) throws UnsupportedEncodingException { \n StringBuilder sb = new StringBuilder ( raw . length ) ; \n for ( byte b : raw ) { \n int v = b & NUMBER0 ;", "msg_token": "Make convertToHex public"} {"diff": " public abstract class Pipe < T extends PipeTransport > implements IDropControlInven \n SINGLE \n if ( data . hasKey ( STRING0 ) ) { \n int [ ] legacyDirectionOrder = new int [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 } ; \n + boolean hasRestoredGate = false ; \n + \n for ( int i : legacyDirectionOrder ) { \n if ( ! transport . container . isPipeConnected ( ForgeDirection . getOrientation ( i ) ) ) { \n transport . container . setGate ( GateFactory . makeGate ( this , data . getCompoundTag ( STRING0 ) ) , i ) ; \n + hasRestoredGate = true ; \n break ; \n } \n } \n + \n + if ( ! hasRestoredGate ) { \n + transport . container . setGate ( GateFactory . makeGate ( this , data . getCompoundTag ( STRING0 ) ) , NUMBER5 ) ; \n + } \n + \n data . removeTag ( STRING0 ) ; \n }", "msg_token": "add an escape route for cases where a gate is on all sides of a pipe"} {"diff": " public class TestRestLiResourceModels \n @ test \n public void testInvalidFinders ( ) throws Exception \n { \n - expectConfigException ( InvalidResources . FinderNonListReturnType . class , STRING0 ) ; \n + expectConfigException ( InvalidResources . FinderNonListReturnType . class , STRING1 ) ; \n expectConfigException ( InvalidResources . FinderNonRecordTemplateReturnType . class , STRING2 ) ; \n expectConfigException ( InvalidResources . FinderNonMatchingRecordTemplateReturnType . class , STRING2 ) ; \n expectConfigException ( InvalidResources . FinderNonMatchingRecordTemplateReturnTypeCollectionResult . class , STRING3 ) ;", "msg_token": "Fix test failure in TestRestLiResourceModels"} {"diff": " import NAMESPACE ; \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 public @ interface Test { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n Class < ? extends Throwable > expected ( ) default None . class ;", "msg_token": "Add reference to ExpectedException"} {"diff": " public class TransactionOutput extends ChildMessage implements Serializable { \n checkState ( availableForSpending ) ; \n availableForSpending = false ; \n spentBy = input ; \n + if ( parentTransaction != null ) \n + log . info ( STRING0 , parentTransaction . getHash ( ) , getIndex ( ) , input ) ; \n + else \n + log . info ( STRING1 , input ) ; \n } \n \n COMMENT \n COMMENT \n COMMENT \n public void markAsUnspent ( ) { \n + if ( parentTransaction != null ) \n + log . info ( STRING2 , parentTransaction . getHash ( ) , getIndex ( ) , spentBy ) ; \n + else \n + log . info ( STRING3 , spentBy ) ; \n availableForSpending = true ; \n spentBy = null ; \n }", "msg_token": "Add logging for output disconnection and reconnection"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class GeneratedArchiveBuildOutcomeComparator implements BuildOutcomeCompa \n \n private final Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ; \n \n - public GeneratedArchiveBuildOutcomeComparator ( Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ) { \n + public GeneratedArchiveBuildOutcomeComparator ( ) { \n + this ( new FileToArchiveEntrySetTransformer ( new ZipEntryToArchiveEntryTransformer ( ) ) ) ; \n + } \n + \n + GeneratedArchiveBuildOutcomeComparator ( Transformer < Set < ArchiveEntry > , File > archiveToEntriesTransformer ) { \n this . archiveToEntriesTransformer = archiveToEntriesTransformer ; \n }", "msg_token": "Add a default constructor that uses sensible internal strategies"} {"diff": " public abstract class TransportShardReplicationOperationAction < Request extends S \n \n private final ReplicationType replicationType ; \n \n - private AsyncShardOperationAction ( Request request , ActionListener < Response > listener ) { \n + AsyncShardOperationAction ( Request request , ActionListener < Response > listener ) { \n this . request = request ; \n this . listener = listener ;", "msg_token": "don t have the constructor private"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RemoteExternalSystemCommunicationManager implements ExternalSystemC \n \n SINGLE \n ContainerUtil . addIfNotNull ( PathUtil . getJarPathForClass ( getClass ( ) ) , classPath ) ; \n + SINGLE \n + ContainerUtil . addIfNotNull ( PathUtil . getJarPathForClass ( ExternalSystemException . class ) , classPath ) ; \n ExternalSystemApiUtil . addBundle ( params . getClassPath ( ) , STRING0 , CommonBundle . class ) ; \n params . getClassPath ( ) . addAll ( classPath ) ;", "msg_token": "add external system rt jar to the classpath of the remote process"} {"diff": " public class Moco { \n } \n \n public static ContentResource file ( final String filename , Charset charset ) { \n - return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , of ( charset ) ) ; \n + return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , of ( checkNotNull ( charset , STRING1 ) ) ) ; \n } \n \n public static ContentResource file ( final String filename , Optional < Charset > charset ) { \n - return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , charset ) ; \n + return fileResource ( new File ( checkNotNullOrEmpty ( filename , STRING0 ) ) , checkNotNull ( charset , STRING1 ) ) ; \n } \n \n public static ContentResource pathResource ( final String filename ) {", "msg_token": "added missing charset check for file"} {"diff": " public class JavaResolveUtil { \n PsiElement prev = element ; \n PsiElement scope = element . getContext ( ) ; \n while ( scope != null ) { \n + SINGLE \n if ( scope instanceof PsiClass && ( prev instanceof PsiMember || prev instanceof PsiDocComment ) ) { \n return ( PsiClass ) scope ; \n } \n public class JavaResolveUtil { \n if ( memberClass == null ) { \n return false ; \n } \n + SINGLE \n PsiClass contextClass = member instanceof PsiClass ? getContextClass ( place ) \n : PsiTreeUtil . getContextOfType ( place , PsiClass . class , false ) ; \n while ( contextClass != null ) {", "msg_token": "add clarifying comments around JavaResolveUtil getContextClass"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class Window { \n } \n \n COMMENT \n + @ systemapi \n + public void setDisableWallpaperTouchEvents ( boolean disable ) { \n + setPrivateFlags ( disable \n + ? WindowManager . LayoutParams . PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS : NUMBER0 , \n + WindowManager . LayoutParams . PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS ) ; \n + } \n + \n + COMMENT \n public abstract void alwaysReadCloseOnTouchAttr ( ) ; \n \n COMMENT", "msg_token": "Add system api for disabling touch events in wallpaper behind the window"} {"diff": " public class WifiStateMachine extends StateMachine { \n mDhcpStateMachine = null ; \n } \n \n - COMMENT \n - NetworkUtils . disableInterface ( mInterfaceName ) ; \n - \n COMMENT \n mWifiInfo . setInetAddress ( null ) ; \n mWifiInfo . setBSSID ( null ) ;", "msg_token": "Remove interface disable in wifistatemachine"} {"diff": " public class PluginsEnvironmentBuilder { \n \n File libDir = new File ( propertiesFile . getParent ( ) + STRING0 ) ; \n \n + String libDirPath = StringUtil . replace ( \n + libDir . getPath ( ) , StringPool . BACK_SLASH , StringPool . SLASH ) ; \n + \n + if ( libDirPath . contains ( STRING1 ) ) { \n + return ; \n + } \n + \n File projectDir = new File ( propertiesFile . getParent ( ) + STRING2 ) ; \n \n Properties properties = new Properties ( ) ;", "msg_token": "Don t build Eclipse env for themes"} {"diff": " public class JavaSdkImpl extends JavaSdk { \n if ( SystemInfo . isMac ) { \n return STRING0 ; \n } \n + if ( SystemInfo . isLinux ) { \n + return STRING1 ; \n + } \n return null ; \n }", "msg_token": "Suggest JDK path on Linux"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StreetUtils { \n State s0 = new State ( gv , options ) ; \n for ( Edge e : gv . getOutgoing ( ) ) { \n Vertex in = gv ; \n - if ( ! ( e instanceof StreetEdge || e instanceof StreetTransitLink ) ) { \n + if ( ! ( e instanceof StreetEdge || e instanceof StreetTransitLink || \n + e instanceof ElevatorEdge ) ) { \n continue ; \n } \n State s1 = e . traverse ( s0 ) ;", "msg_token": "include elevators when finding islands to prune"} {"diff": " public class DruidMasterRuleRunnerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n - NUMBER0 \n + NUMBER0 , \n + NUMBER1 \n ) ; \n \n afterParams = ruleRunner . run ( \n public class DruidMasterRuleRunnerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n - NUMBER0 \n + NUMBER0 , \n + NUMBER1 \n ) ; \n List < DataSegment > longerAvailableSegments = Lists . newArrayList ( availableSegments ) ; \n longerAvailableSegments . add ( overFlowSegment ) ;", "msg_token": "fix broken UT"} {"diff": " public class CxfEndpointUtilsWithSpringTest extends CxfEndpointUtilsTest { \n assertEquals ( STRING0 , service , SERVICE_NAME ) ; \n assertEquals ( STRING1 , CxfEndpointUtils . getSetDefaultBus ( endpoint ) , \n true ) ; \n + assertEquals ( STRING2 , CxfEndpointUtils . getDataFormat ( endpoint ) , DataFormat . MESSAGE ) ; \n } \n \n public void testGetDataFormatFromCxfEndpontProperties ( ) throws Exception { \n CxfEndpoint endpoint = createEndpoint ( getEndpointURI ( ) + STRING3 ) ; \n - assertEquals ( STRING4 , CxfEndpointUtils . getDataFormat ( endpoint ) , \n + assertEquals ( STRING5 , CxfEndpointUtils . getDataFormat ( endpoint ) , \n DataFormat . PAYLOAD ) ; \n }", "msg_token": "Polished the CxfEndpointUtilsWithSpringTest"} {"diff": " public class SubmitReportWsAction implements ComputationWsAction , RequestHandler \n \n action \n . createParam ( PARAM_REPORT_DATA ) \n - . setRequired ( false ) \n + . setRequired ( true ) \n . setDescription ( STRING0 ) ; \n } \n \n public class ComponentDtoTest { \n } \n \n @ test \n + public void toString_does_not_fail_if_empty ( ) throws Exception { \n + ComponentDto dto = new ComponentDto ( ) ; \n + assertThat ( dto . toString ( ) ) . isNotEmpty ( ) ; \n + } \n + \n + @ test \n public void is_root_project ( ) throws Exception { \n assertThat ( new ComponentDto ( ) . setModuleUuid ( STRING1 ) . isRootProject ( ) ) . isFalse ( ) ; \n assertThat ( new ComponentDto ( ) . setModuleUuid ( STRING1 ) . setScope ( Scopes . DIRECTORY ) . isRootProject ( ) ) . isFalse ( ) ;", "msg_token": "Fix quality flaws"} {"diff": " public class CordovaWebView extends WebView { \n this . loadUrlIntoView ( url ) ; \n } \n \n + \n + public void onScrollChanged ( int l , int t , int oldl , int oldt ) \n + { \n + super . onScrollChanged ( l , t , oldl , oldt ) ; \n + SINGLE \n + LOG . d ( TAG , STRING0 , oldl , l ) ; \n + LOG . d ( TAG , STRING1 , oldt , t ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated CordovaWebView to experiment with onScrollChanged messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JoinStressTest extends HazelcastTestSupport { \n testJoinWithManyNodes ( true ) ; \n } \n \n - @ repeat ( NUMBER0 ) \n @ test \n public void testJoincompletesCorrectlyWhenMultipleNodesStartedParallel ( ) { \n int count = NUMBER1 ;", "msg_token": "Remove Repeat annotation in JoinStressTest"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ActionButton extends JComponent implements ActionButtonComponent , A \n } \n \n private void actionPerformed ( final AnActionEvent event ) { \n - if ( myAction instanceof ActionGroup && ! ( myAction instanceof CustomComponentAction ) && ( ( ActionGroup ) myAction ) . isPopup ( ) ) { \n + if ( myAction instanceof ActionGroup && \n + ! ( myAction instanceof CustomComponentAction ) && \n + ( ( ActionGroup ) myAction ) . isPopup ( ) && \n + ! ( ( ActionGroup ) myAction ) . canBePerformed ( event . getDataContext ( ) ) ) { \n final ActionManagerImpl am = ( ActionManagerImpl ) ActionManager . getInstance ( ) ; \n ActionPopupMenuImpl popupMenu = ( ActionPopupMenuImpl ) am . createActionPopupMenu ( event . getPlace ( ) , ( ActionGroup ) myAction , new MenuItemPresentationFactory ( ) { \n @ override", "msg_token": "ui perform action instead of showing popup if canBePerformed for action groups"} {"diff": " public class ReadNodeRecordsByCacheStep extends AbstractStep < NodeRecord [ ] > \n public void start ( int orderingGuarantees ) \n { \n super . start ( orderingGuarantees ) ; \n - recordCursor . acquire ( NUMBER0 , RecordLoad . CHECK ) ; \n + recordCursor . acquire ( NUMBER0 , RecordLoad . NORMAL ) ; \n } \n \n @ override \n public class ReadNodeRecordsByCacheStep extends AbstractStep < NodeRecord [ ] > \n @ override \n public void change ( long nodeId , ByteArray array ) \n { \n - boolean inUse = recordCursor . next ( nodeId ) ; \n - assert inUse ; \n + recordCursor . next ( nodeId ) ; \n batch [ cursor ++ ] = recordCursor . get ( ) . clone ( ) ; \n if ( cursor == batchSize ) \n {", "msg_token": "Uses RecordLoad NORMAL for natural errors on"} {"diff": " public class ResolveUtil { \n return result ; \n } \n \n - public static boolean isInheritor ( PsiType type , @ notnull String baseClass , Project project ) { \n - return getAllSuperTypes ( type , project ) . keySet ( ) . contains ( baseClass ) ; \n - } \n - \n - \n @ notnull \n private static String rawCanonicalText ( @ notnull PsiType type ) { \n final String result = type . getCanonicalText ( ) ;", "msg_token": "remove some dead code"} {"diff": " public class StaticFilesTest { \n public void testCustomMimeType ( ) throws Exception { \n staticFiles . registerMimeType ( STRING0 , STRING1 ) ; \n Assert . assertEquals ( STRING1 , doGet ( STRING2 ) . headers . get ( STRING3 ) ) ; \n + staticFiles . registerMimeType ( STRING0 , STRING4 ) ; \n + Assert . assertEquals ( STRING4 , doGet ( STRING2 ) . headers . get ( STRING3 ) ) ; \n } \n \n @ test \n public class StaticFilesTest { \n return testUtil . doMethod ( STRING5 , fileName , null ) ; \n } \n \n - \n }", "msg_token": "Reset mime type after custom mime type test"} {"diff": " public class BottomSheetLayout extends FrameLayout { \n \n @ override \n public boolean onKeyPreIme ( int keyCode , KeyEvent event ) { \n - if ( keyCode == KeyEvent . KEYCODE_BACK ) { \n + if ( keyCode == KeyEvent . KEYCODE_BACK && isSheetShowing ( ) ) { \n if ( event . getAction ( ) == KeyEvent . ACTION_DOWN && event . getRepeatCount ( ) == NUMBER0 ) { \n KeyEvent . DispatcherState state = getKeyDispatcherState ( ) ; \n if ( state != null ) {", "msg_token": "Only overrides back button when sheet is showing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class NamespaceComparator { \n sb . append ( STRING0 ) ; \n } \n \n - if ( ! klass . getTypeConstructor ( ) . getSupertypes ( ) . isEmpty ( ) ) { \n + if ( JetStandardClasses . getNothing ( ) != klass && ! klass . getTypeConstructor ( ) . getSupertypes ( ) . isEmpty ( ) ) { \n sb . append ( STRING1 ) ; \n new TypeSerializer ( sb ) . serializeCommaSeparated ( new ArrayList < JetType > ( klass . getTypeConstructor ( ) . getSupertypes ( ) ) ) ; \n }", "msg_token": "Support comparing the builtins namespace"} {"diff": " public class MethodInvocation { \n \n @ override \n public String toString ( ) { \n - return String . format ( STRING0 , method . getName ( ) ) ; \n + return String . format ( STRING1 , method . getName ( ) , Arrays . toString ( arguments ) ) ; \n } \n } \n \n public class MethodInvocationTest { \n assertThat ( invocation , strictlyEqual ( equalInvocation ) ) ; \n assertThat ( invocation , not ( equalTo ( differentMethod ) ) ) ; \n assertThat ( invocation , not ( equalTo ( differentArgs ) ) ) ; \n + assertThat ( invocation . toString ( ) , equalTo ( STRING2 ) ) ; \n } \n }", "msg_token": "Added trace to hunt down stalled build issue"} {"diff": " public class MorfologikSpeller { \n return suggestions ; \n } \n \n - private boolean containsDigit ( final String s ) { \n - for ( int k = NUMBER0 ; k < s . length ( ) ; k ++ ) { \n - if ( Character . isDigit ( s . charAt ( k ) ) ) { \n - return true ; \n - } \n - } \n - return false ; \n - } \n - \n }", "msg_token": "Removed unused code"} {"diff": " public class DemoApplication extends Application { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - FileDownloader . init ( this , \n + FileDownloader . init ( getApplicationContext ( ) , \n new FileDownloadHelper . OkHttpClientCustomMaker ( ) { SINGLE \n @ override \n public OkHttpClient customMake ( ) {", "msg_token": "provide ApplicationContext instead of Application to init FileDownloader"} {"diff": " public class JacksonMarshalTest extends CamelTestSupport { \n \n Object marshalled = template . requestBody ( STRING0 , in ) ; \n String marshalledAsString = context . getTypeConverter ( ) . convertTo ( String . class , marshalled ) ; \n - String expected = STRING1 \n - + STRING2 \n - + STRING3 ; \n + String expected = String . format ( STRING4 , System . lineSeparator ( ) , System . lineSeparator ( ) ) ; \n assertEquals ( expected , marshalledAsString ) ; \n \n template . sendBody ( STRING5 , marshalled ) ; \n public class SpringJacksonJsonDataFormatTest extends CamelSpringTestSupport { \n \n Object marshalled = template . requestBody ( STRING0 , in ) ; \n String marshalledAsString = context . getTypeConverter ( ) . convertTo ( String . class , marshalled ) ; \n - String expected = STRING1 \n - + STRING2 \n - + STRING3 ; \n + String expected = String . format ( STRING4 , System . lineSeparator ( ) , System . lineSeparator ( ) ) ; \n assertEquals ( expected , marshalledAsString ) ; \n \n template . sendBody ( STRING6 , marshalled ) ;", "msg_token": "Fixed test on windows"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class RenderPass extends APass { \n protected RajawaliScene mScene ; \n protected int mClearColor ; \n protected int mOldClearColor ; \n \n - public RenderPass ( RajawaliScene scene , int clearColor , float clearAlpha ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public RenderPass ( RajawaliScene scene , int clearColor ) { \n mScene = scene ; \n mClearColor = clearColor ; \n mOldClearColor = NUMBER0 ;", "msg_token": "Added Javadoc to the class and removed an unused constructor argument"} {"diff": " public class IOUtils { \n \n boolean readGetBody = r . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . READ_GET_BODY , false ) ; \n if ( ! readGetBody && AtmosphereResourceImpl . class . cast ( r ) . getRequest ( false ) . getMethod ( ) . equalsIgnoreCase ( STRING0 ) ) { \n - logger . warn ( STRING1 , ApplicationConfig . READ_GET_BODY ) ; \n + logger . debug ( STRING1 , ApplicationConfig . READ_GET_BODY ) ; \n return stringBuilder ; \n } \n \n public class IOUtils { \n \n boolean readGetBody = r . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . READ_GET_BODY , false ) ; \n if ( ! readGetBody && AtmosphereResourceImpl . class . cast ( r ) . getRequest ( false ) . getMethod ( ) . equalsIgnoreCase ( STRING0 ) ) { \n - logger . warn ( STRING1 , ApplicationConfig . READ_GET_BODY ) ; \n + logger . debug ( STRING1 , ApplicationConfig . READ_GET_BODY ) ; \n return new byte [ NUMBER0 ] ; \n }", "msg_token": "Change the log level as this get quite annoying when another framework is using it"} {"diff": " public class ConversationFragment extends Fragment implements EditMessage . Keyboa \n if ( conversation . getNextCounterpart ( ) != null ) { \n message . setCounterpart ( conversation . getNextCounterpart ( ) ) ; \n message . setType ( Message . TYPE_PRIVATE ) ; \n - conversation . setNextCounterpart ( null ) ; \n } \n } \n if ( conversation . getNextEncryption ( activity . forceEncryption ( ) ) == Message . ENCRYPTION_OTR ) {", "msg_token": "Maintain private chat on MUC"} {"diff": " public class WXEnvironment { \n \n public static String JS_LIB_SDK_VERSION = STRING0 ; \n \n - public static String WXSDK_VERSION = STRING1 ; \n + public static String WXSDK_VERSION = STRING2 ; \n public static Application sApplication ; \n public static final String DEV_Id = getDevId ( ) ; \n public static int sDefaultWidth = NUMBER0 ;", "msg_token": "android bump version"} {"diff": " public final class MessageList < T > implements Iterable < T > { \n \n @ override \n public void remove ( ) { \n - throw new UnsupportedOperationException ( STRING0 ) ; \n + throw new UnsupportedOperationException ( ) ; \n } \n } \n }", "msg_token": "Remove potentially misleading exception message"} {"diff": " public class KotlinToJVMBytecodeCompiler { \n CompilerConfiguration compilerConfiguration = new CompilerConfiguration ( ) ; \n compilerConfiguration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , messageCollector ) ; \n compilerConfiguration . addAll ( JVMConfigurationKeys . CLASSPATH_KEY , getClasspath ( parentLoader ) ) ; \n + compilerConfiguration . add ( JVMConfigurationKeys . CLASSPATH_KEY , PathUtil . findRtJar ( ) ) ; \n compilerConfiguration . addAll ( JVMConfigurationKeys . ANNOTATIONS_PATH_KEY , Collections . singletonList ( \n PathUtil . getJdkAnnotationsPath ( ) ) ) ; \n compilerConfiguration . add ( CommonConfigurationKeys . SOURCE_ROOTS_KEY , scriptPath ) ;", "msg_token": "Explicitly add rt jar to the script class path"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapperService extends AbstractIndexComponent implements Iterable < Do \n } \n \n try { \n - defaultMappingSource = Streams . copyToString ( new InputStreamReader ( defaultMappingUrl . openStream ( ) , STRING0 ) ) ; \n + defaultMappingSource = Streams . copyToString ( new InputStreamReader ( defaultMappingUrl . openStream ( ) , Charsets . UTF_8 ) ) ; \n } catch ( IOException e ) { \n throw new MapperException ( STRING1 + defaultMappingLocation + STRING2 , e ) ; \n } \n \n - logger . debug ( STRING3 , dynamic , defaultMappingLocation , defaultMappingSource ) ; \n + logger . debug ( STRING4 , dynamic , defaultMappingLocation , defaultMappingUrl , defaultMappingSource ) ; \n } \n \n public void close ( ) {", "msg_token": "better debug logging of where the default mapping is loaded from"} {"diff": " public final class EarClippingTriangulator { \n private static int computeSpannedAreaSign ( final float pX1 , final float pY1 , \n final float pX2 , final float pY2 , final float pX3 , final float pY3 ) { \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class EarClippingTriangulator { \n final float currentVertexX = currentVertex . x ; \n final float currentVertexY = currentVertex . y ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - if ( ( currentVertexX == pX1 && currentVertexY == pY1 ) \n - || ( currentVertexX == pX2 && currentVertexY == pY2 ) \n - || ( currentVertexX == pX3 && currentVertexY == pY3 ) ) \n - break ; \n - \n final int areaSign1 = EarClippingTriangulator \n . computeSpannedAreaSign ( pX1 , pY1 , pX2 , pY2 , \n currentVertexX , currentVertexY ) ;", "msg_token": "removed one the checks I added in EarClippingTriangulator seems to break things in certain cases"} {"diff": " public class MessageListFragment extends SherlockFragment implements OnItemClick \n } \n \n SINGLE \n - if ( mUnreadMessageCount == NUMBER0 ) { \n + if ( mUnreadMessageCount <= NUMBER0 ) { \n mFragmentListener . setUnreadCount ( NUMBER0 ) ; \n } else { \n if ( ! mSingleFolderMode && mTitle == null ) {", "msg_token": "Don t display negative unread count in message list"} {"diff": " public class CythonParsingTest extends ParsingTestCase { \n doTest ( ) ; \n } \n \n + public void testTypedefs ( ) { \n + doTest ( ) ; \n + } \n + \n public void doTest ( ) { \n doTest ( true ) ; \n }", "msg_token": "Added parsing of Cython typedefs"} {"diff": " class Searcher { \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 - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \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 + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for searchToggleButton String int in Solo and Searcher"} {"diff": " public class GenericFile < T > { \n private GenericFileBinding < T > binding ; \n private boolean absolute ; \n \n - public static char getFileSeparator ( ) { \n + public char getFileSeparator ( ) { \n return File . separatorChar ; \n } \n \n public class RemoteFile < T > extends GenericFile < T > implements Cloneable { \n public void setHostname ( String hostname ) { \n this . hostname = hostname ; \n } \n - \n - public static char getFileSeparator ( ) { \n + \n + @ override \n + public char getFileSeparator ( ) { \n SINGLE \n return STRING0 ; \n }", "msg_token": "Kept the API in GenericFile"} {"diff": " public class HyperLogLogPlus implements ICardinality \n private final ArrayList < Integer > tmpSet = new ArrayList < Integer > ( NUMBER0 ) ; \n private List < byte [ ] > sparseSet ; \n SINGLE \n - private int sparseSetThreshold ; \n + private final int sparseSetThreshold ; \n \n SINGLE \n static final int SORT_THRESHOLD = NUMBER1 ;", "msg_token": "make threshold final"} {"diff": " public abstract class AbstractThriftCqlQuery < K , C > implements CqlQuery < K , C > { \n AbstractThriftCqlQuery ( ThriftColumnFamilyQueryImpl < K , C > cfQuery , String cql ) { \n this . cfQuery = cfQuery ; \n this . cql = cql ; \n + this . cl = cfQuery . consistencyLevel ; \n } \n \n @ override", "msg_token": "copying ConsistencyLevel from ThriftColumnFamilyQueryImpl when constructing AbstractThriftCqlQuery"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "ClientSideSessionModule remove println"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class PipelineFactory implements ChannelPipelineFactory { \n tsdb . getConfig ( ) . max_chunked_requests ( ) ) ) ; \n } \n SINGLE \n - pipeline . addLast ( STRING0 , new HttpContentDecompressor ( ) ) ; \n + pipeline . addLast ( STRING1 , new HttpContentDecompressor ( ) ) ; \n pipeline . addLast ( STRING2 , new HttpResponseEncoder ( ) ) ; \n + pipeline . addLast ( STRING0 , new HttpContentCompressor ( ) ) ; \n } else { \n pipeline . addLast ( STRING3 , new LineBasedFrameDecoder ( NUMBER0 ) ) ; \n pipeline . addLast ( STRING2 , ENCODER ) ;", "msg_token": "Add support for compressed http response"} {"diff": " public final class DataOutput2 implements DataOutput { \n \n DataOutput2 ( ) { \n pos = NUMBER0 ; \n - buf = new byte [ NUMBER1 ] ; \n + buf = new byte [ NUMBER1 ] ; SINGLE \n } \n \n byte [ ] copyBytes ( ) { \n public class HTreeMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public HTreeMap ( Engine engine , boolean hasValues , Serializer defaultSerializer , Serializer < K > keySerializer , Serializer < V > valueSerializer ) { \n public class HTreeMap < K , V > extends AbstractMap < K , V > implements ConcurrentMap < K \n \n protected int hash ( final Object key ) { \n int h = key . hashCode ( ) ; \n - SINGLE \n - \n SINGLE \n SINGLE \n h += ( h < < NUMBER2 ) ^ NUMBER3 ;", "msg_token": "Remove add TODOs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \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 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 COMMENT", "msg_token": "Improve javadoc formatting"} {"diff": " public class Rule { \n return description ; \n } \n \n + @ checkfornull \n public String severity ( ) { \n return severity ; \n } \n public class Rule { \n return this ; \n } \n \n - public Builder setSeverity ( String severity ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + public Builder setSeverity ( @ nullable String severity ) { \n this . severity = severity ; \n return this ; \n }", "msg_token": "Fix quality flaws"} {"diff": " public class TaskListSubActivity extends SubActivity { \n SINGLE \n Log . w ( STRING0 , STRING1 , e ) ; \n return ; \n - } catch ( IllegalStateException e ) { \n + } catch ( final IllegalStateException e ) { \n SINGLE \n Log . e ( STRING0 , STRING2 , e ) ; \n handler . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n + if ( ! e . getMessage ( ) . contains ( STRING3 ) ) \n + return ; \n DialogUtilities . okDialog ( getParent ( ) , STRING4 + \n STRING5 , null ) ; \n } \n } ) ; \n + return ; \n } catch ( final Exception e ) { \n Log . e ( STRING0 , STRING2 , e ) ; \n return ;", "msg_token": "Only show dialog when really out of memory"} {"diff": " public abstract class OutputListResponse { \n public abstract long total ( ) ; \n \n @ jsonproperty \n - public abstract Collection < Output > streams ( ) ; \n + public abstract Collection < Output > outputs ( ) ; \n \n - public static OutputListResponse create ( long total , Collection < Output > streams ) { \n - return new AutoValue_OutputListResponse ( total , streams ) ; \n + public static OutputListResponse create ( long total , Collection < Output > outputs ) { \n + return new AutoValue_OutputListResponse ( total , outputs ) ; \n } \n }", "msg_token": "resource value class member was using the wrong name streams vs outputs breaking the output listing for a stream"} {"diff": " public abstract class SerializerProvider \n COMMENT \n COMMENT \n protected JsonSerializer < Object > _findExplicitUntypedSerializer ( Class < ? > runtimeType ) \n + throws JsonMappingException \n { \n SINGLE \n JsonSerializer < Object > ser = _knownSerializers . untypedValueSerializer ( runtimeType ) ; \n public abstract class SerializerProvider \n if ( ser != null ) { \n return ser ; \n } \n - try { \n - return _createAndCacheUntypedSerializer ( runtimeType ) ; \n - } catch ( Exception e ) { \n - return null ; \n - } \n + return _createAndCacheUntypedSerializer ( runtimeType ) ; \n } \n \n COMMENT \n public abstract class DefaultSerializerProvider \n COMMENT \n COMMENT \n public boolean hasSerializerFor ( Class < ? > cls ) { \n - return _findExplicitUntypedSerializer ( cls ) != null ; \n + try { \n + return _findExplicitUntypedSerializer ( cls ) != null ; \n + } catch ( JsonMappingException e ) { \n + SINGLE \n + SINGLE \n + return false ; \n + } \n } \n \n COMMENT", "msg_token": "Moving exception handling around a bit"} {"diff": " public class AgentRegistrationElf \n String agentJarPath = getAgentJarPath ( ) ; \n if ( agentJarPath == null ) \n { \n - LOGGER . warn ( STRING0 ) ; \n + LOGGER . info ( STRING0 ) ; \n return false ; \n }", "msg_token": "Demote warn log to info"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public abstract class OMVRBTreePersistent < K , V > extends OMVRBTree < K , V > { \n root = null ; \n \n final ODatabaseRecord db = ODatabaseRecordThreadLocal . INSTANCE . getIfDefined ( ) ; \n - if ( db != null && ! db . isClosed ( ) ) { \n + if ( db != null && ! db . isClosed ( ) && db . getStorage ( ) instanceof OStorageEmbedded ) { \n SINGLE \n try { \n load ( ) ;", "msg_token": "Fixed bug on unload of index"} {"diff": " public class NeoStoreDataSource implements NeoStoresSupplier , Lifecycle , IndexPr \n dependencies . satisfyDependency ( new LegacyIndexApplierLookup . Direct ( legacyIndexProviderLookup ) ) ; \n \n BufferingIdGeneratorFactory bufferingIdGeneratorFactory = null ; \n - boolean safeIdBuffering = FeatureToggles . flag ( getClass ( ) , STRING0 , true ) ; \n + boolean safeIdBuffering = FeatureToggles . flag ( getClass ( ) , STRING0 , false ) ; \n if ( safeIdBuffering ) \n { \n SINGLE", "msg_token": "Temporarily disables id buffering"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ExampleTagBase extends BodyTagSupport { \n } \n \n @ override \n - public void setPageContext ( PageContext pageContext ) { \n - this . pageContext = pageContext ; \n - } \n - \n - @ override \n public Tag getParent ( ) { \n return this . parent ; \n } \n public abstract class ExampleTagBase extends BodyTagSupport { \n } \n \n protected BodyContent bodyOut ; \n - protected PageContext pageContext ; \n protected Tag parent ; \n }", "msg_token": "Remove unnecessary override"} {"diff": " public class AuthenticationWindow \n super . paintComponent ( g ) ; \n \n g = g . create ( ) ; \n + try \n + { \n + AntialiasingManager . activateAntialiasing ( g ) ; \n \n - AntialiasingManager . activateAntialiasing ( g ) ; \n + Graphics2D g2 = ( Graphics2D ) g ; \n \n - Graphics2D g2 = ( Graphics2D ) g ; \n - \n - if ( bgImage != null ) \n - g2 . drawImage ( bgImage , NUMBER0 , NUMBER0 , null ) ; \n + if ( bgImage != null ) \n + g2 . drawImage ( bgImage , NUMBER0 , NUMBER0 , null ) ; \n + } \n + finally \n + { \n + g . dispose ( ) ; \n + } \n } \n }", "msg_token": "Adds a forgotten Graphics dispose"} {"diff": " public class PShader implements PConstants { \n \n public void setVertexShader ( String vertFilename ) { \n this . vertexFilename = vertFilename ; \n - vertexShaderSource = pgl . loadFragmentShader ( vertFilename ) ; \n + vertexShaderSource = pgl . loadVertexShader ( vertFilename ) ; \n } \n \n \n public class PShader implements PConstants { \n \n public void setFragmentShader ( String fragFilename ) { \n this . fragmentFilename = fragFilename ; \n - fragmentShaderSource = pgl . loadVertexShader ( fragFilename ) ; \n + fragmentShaderSource = pgl . loadFragmentShader ( fragFilename ) ; \n } \n \n \n public void setFragmentShader ( URL fragURL ) { \n this . fragmentURL = fragURL ; \n - fragmentShaderSource = pgl . loadVertexShader ( fragURL ) ; \n + fragmentShaderSource = pgl . loadFragmentShader ( fragURL ) ; \n } \n \n public void setFragmentShader ( String [ ] fragSource ) {", "msg_token": "Fix another bunch of vert frag typos"} {"diff": " public class SettingsHelper { \n private AudioManager mAudioManager ; \n private IContentService mContentService ; \n private IPowerManager mPowerManager ; \n - private static final String [ ] PROVIDERS = { STRING0 , STRING1 , STRING2 } ; \n \n private boolean mSilent ; \n private boolean mVibrate ;", "msg_token": "Remove unused providers"} {"diff": " public class TestOverdueIntegration extends TestIntegrationBase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + SINGLE \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING7 + \n public class TestOverdueIntegration extends TestIntegrationBase { \n } \n \n private void checkODState ( final String expected ) { \n - \n try { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n await ( ) . atMost ( NUMBER0 , SECONDS ) . until ( new Callable < Boolean > ( ) { \n @ override \n public Boolean call ( ) throws Exception { \n - overdueApi . refreshOverdueStateFor ( bundle ) ; \n return expected . equals ( blockingApi . getBlockingStateFor ( bundle ) . getStateName ( ) ) ; \n } \n } ) ;", "msg_token": "test the overdue notification queue"} {"diff": " public class ParseAndMarshalModelsTestCase { \n standaloneXmlTest ( true , true ) ; \n } \n \n - @ ignore ( value = STRING0 ) \n - @ test \n - public void testStandaloneJcaXml ( ) throws Exception { \n - standaloneXmlTest ( STRING1 ) ; \n - } \n - \n private void standaloneXmlTest ( boolean preview , boolean ha ) throws Exception { \n \n String profile = preview ? ( ha ? STRING2 : STRING3 )", "msg_token": "Remove unused and Ignored test"} {"diff": " class BrowseForDatabaseActionListener implements ActionListener \n fileDialog . setDirectory ( directoryDisplay . getText ( ) ) ; \n fileDialog . setVisible ( true ) ; \n \n - selectedFile = new File ( fileDialog . getFile ( ) ) ; \n + selectedFile = new File ( fileDialog . getDirectory ( ) , fileDialog . getFile ( ) ) ; \n System . setProperty ( STRING0 , STRING1 ) ; \n \n return selectedFile ;", "msg_token": "fixed bug with invalid directories for mac"} {"diff": " public class PythonDocumentationProvider extends AbstractDocumentationProvider i \n PyParameter [ ] list = element . getParameterList ( ) . getParameters ( ) ; \n StringBuilder builder = new StringBuilder ( offset ) ; \n for ( PyParameter p : list ) { \n + if ( p . getText ( ) . equals ( PyNames . CANONICAL_SELF ) ) \n + continue ; \n builder . append ( prefix ) ; \n builder . append ( STRING0 ) ; \n builder . append ( p . getName ( ) ) ;", "msg_token": "do not generate docs for self param in class methods"} {"diff": " public class ProfileRouter { \n SINGLE \n GenericAStar astar = new GenericAStar ( ) ; \n astar . setNPaths ( NUMBER0 ) ; \n - SINGLE \n StopFinderTraverseVisitor visitor = new StopFinderTraverseVisitor ( mode ) ; \n astar . setTraverseVisitor ( visitor ) ; \n - COMMENT \n ShortestPathTree spt = astar . getShortestPathTree ( rr , NUMBER1 ) ; SINGLE \n rr . rctx . destroy ( ) ; \n return visitor . stopsFound ;", "msg_token": "remove comment characters"} {"diff": " public class IQAuthHandler extends IQHandler implements IQAuthInfo { \n response = IQ . createResultIQ ( packet ) ; \n probeResponse . setParent ( null ) ; \n response . setChildElement ( probeResponse ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( session . getStatus ( ) != Session . STATUS_AUTHENTICATED ) { \n + response . setTo ( ( JID ) null ) ; \n + session . getConnection ( ) . deliver ( response ) ; \n + return null ; \n + } \n } \n SINGLE \n else {", "msg_token": "Workaround to hide the TO attribute with the fake JID"} {"diff": " public class EBeanHolder { \n JCodeModel codeModel = eBean . owner ( ) ; \n try { \n refClass = codeModel . ref ( fullyQualifiedClassName ) ; \n - } catch ( Exception e ) { \n + } catch ( Throwable t ) { \n refClass = codeModel . directClass ( fullyQualifiedClassName ) ; \n } \n loadedClasses . put ( fullyQualifiedClassName , refClass ) ;", "msg_token": "Catched Throwable instead of Exception"} {"diff": " public class InternalPartitionServiceImpl implements InternalPartitionService , M \n . setValidateTarget ( false ) \n . setService ( this ) ; \n nodeEngine . getOperationService ( ) . executeOperation ( op ) ; \n + \n + MigrationInfo migrationInfo = new MigrationInfo ( partition . getPartitionId ( ) , null , partition . getOwnerOrNull ( ) ) ; \n + sendMigrationEvent ( migrationInfo , MigrationStatus . STARTED ) ; \n + sendMigrationEvent ( migrationInfo , MigrationStatus . COMPLETED ) ; \n } \n } \n }", "msg_token": "Enables partition events for partitions that are promoted from backup as discussed in"} {"diff": " public abstract class AbstractIntegrationTest { \n \n } \n \n - @ test \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n public void testDiffExternalForeignKeys ( ) throws Exception { \n if ( database == null ) { \n return ;", "msg_token": "temporarily removed test to get build to pass"} {"diff": " public class IOUtils { \n private static volatile boolean canUseSnappy ; \n static { \n try { \n - Field impl = Snappy . class . getDeclaredField ( STRING0 ) ; \n - impl . setAccessible ( true ) ; \n - canUseSnappy = impl . get ( null ) != null && System . getProperty ( STRING1 ) == null ; \n + if ( System . getProperty ( STRING1 ) == null ) { SINGLE \n + Field impl = Snappy . class . getDeclaredField ( STRING0 ) ; \n + impl . setAccessible ( true ) ; \n + canUseSnappy = impl . get ( null ) != null ; \n + } \n + else { \n + canUseSnappy = false ; \n + } \n } \n catch ( Throwable e ) { } \n }", "msg_token": "do not load snappy implementation if its usage is explicitly disabled via system property"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ContentProviderTest extends ProviderTestCase2 < TestContentProvider$P \n testSyncableModel . update ( false ) ; \n assertEquals ( testSyncableModel . name , STRING0 ) ; \n \n + testSyncableModel = Select . byId ( TestSyncableModel . class , testSyncableModel . id ) ; \n + \n TestSyncableModel fromContentProvider = new TestSyncableModel ( ) ; \n fromContentProvider . id = testSyncableModel . id ; \n fromContentProvider . load ( ) ;", "msg_token": "added check for synchronization"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SvnCommandLineStatusClient implements SvnStatusClientI { \n public void switchPath ( ) { \n final PortableStatus pending = svnHandl [ NUMBER0 ] . getPending ( ) ; \n if ( pending . isLocked ( ) ) { \n - throw new SvnExceptionWrapper ( new SVNException ( SVNErrorMessage . create ( SVNErrorCode . WC_LOCKED ) ) ) ; \n + throw new SvnExceptionWrapper ( new SVNException ( SVNErrorMessage . create ( SVNErrorCode . SQLITE_ERROR ) , \n + new SqlJetException ( SqlJetErrorCode . BUSY ) ) ) ; \n } \n pending . setChangelistName ( changelistName [ NUMBER0 ] ) ; \n try {", "msg_token": "status handler throw svnkit exception if WC is locked correct exception about lock BUSY"} {"diff": " public class FileEditorManagerImpl extends FileEditorManagerEx implements Projec \n if ( newEditor ) { \n clearWindowIfNeeded ( window ) ; \n \n + ourOpenFilesSetModificationCount . incrementAndGet ( ) ; \n getProject ( ) . getMessageBus ( ) . syncPublisher ( FileEditorManagerListener . Before . FILE_EDITOR_MANAGER ) . beforeFileOpened ( FileEditorManagerImpl . this , file ) ; \n \n FileEditor [ ] newEditors = new FileEditor [ newProviders . length ] ;", "msg_token": "update open files modification tracker on opening file"} {"diff": " public class CompletionProcessor extends BaseScopeProcessor \n final PsiElement elementParent = myElement . getParent ( ) ; \n if ( element instanceof PsiPackage ) { \n if ( ! mySettings . LIST_PACKAGES_IN_CODE && myScope instanceof PsiClass ) { \n - if ( ! ( elementParent instanceof PsiJavaCodeReferenceElement \n - && ( ( PsiJavaCodeReferenceElement ) elementParent ) . isQualified ( ) ) ) { \n + if ( ! ( elementParent instanceof PsiQualifiedReference \n + && ( ( PsiQualifiedReference ) elementParent ) . getQualifier ( ) != null ) ) { \n return true ; \n } \n }", "msg_token": "integrate ven s change"} {"diff": " public abstract class CmdLineTool implements Runnable { \n SINGLE \n SINGLE \n LOG . error ( STRING0 , message . getMessage ( ) ) ; \n - LOG . debug ( STRING1 , rootCause ) ; \n + LOG . debug ( STRING2 , rootCause ) ; \n } \n } \n }", "msg_token": "remove ugly whitespace"} {"diff": " public abstract class WebSettings { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setDefaultZoom ( ZoomDensity zoom ) { \n public abstract class WebSettings { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Specify that WebSettings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpClientDownloader implements Downloader { \n } finally { \n try { \n if ( httpResponse != null ) { \n - httpResponse . close ( ) ; \n + SINGLE \n + EntityUtils . consume ( httpResponse . getEntity ( ) ) ; \n } \n } catch ( IOException e ) { \n logger . warn ( STRING0 , e ) ;", "msg_token": "get keep alive rework"} {"diff": " public class MavenProjectsTree { \n readLock ( ) ; \n try { \n CRC32 crc = new CRC32 ( ) ; \n - crc . update ( myRootProjects . size ( ) & NUMBER0 ) ; \n - for ( MavenProject mavenProject : myRootProjects ) { \n + \n + Collection < MavenProject > allProjects = myVirtualFileToProjectMapping . values ( ) ; \n + \n + crc . update ( allProjects . size ( ) & NUMBER0 ) ; \n + for ( MavenProject mavenProject : allProjects ) { \n VirtualFile pomFile = mavenProject . getFile ( ) ; \n Module module = fileIndex . getModuleForFile ( pomFile ) ; \n if ( module == null ) continue ;", "msg_token": "calculate checksum by all maven projects"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed a somewhat incorrect statement from the docs for ConventionProperty"} {"diff": " public class Show extends BaseEntity { \n \n public int tvdbId ; \n \n + public boolean isFavorite ; \n + \n public Show ( ) { \n } \n \n + public boolean isFavorite ( ) { \n + return isFavorite ; \n + } \n + \n + public void setFavorite ( boolean isFavorite ) { \n + this . isFavorite = isFavorite ; \n + } \n + \n public int getTvdbId ( ) { \n return tvdbId ; \n }", "msg_token": "Add isFavorite property to Show"} {"diff": " public class LlapZookeeperRegistryImpl implements ServiceRegistry { \n } catch ( Exception e ) { \n LOG . error ( STRING0 , e ) ; \n CloseableUtils . closeQuietly ( znode ) ; \n + throw ( e instanceof IOException ) ? ( IOException ) e : new IOException ( e ) ; \n } \n \n if ( LOG . isDebugEnabled ( ) ) {", "msg_token": "LLAP zookeeper registry failures do not fail the daemon Sergey Shelukhin reviewed by Prasanth Jayachandran"} {"diff": " public class WXListComponent extends WXVContainer implements \n } \n if ( linearLayoutManager != null ) { \n x = NUMBER0 ; \n - y = linearLayoutManager . findFirstVisibleItemPosition ( ) ; \n + int position = linearLayoutManager . findFirstVisibleItemPosition ( ) ; \n + View firstVisiableChildView = layoutManager . findViewByPosition ( position ) ; \n + int itemHeight = firstVisiableChildView . getHeight ( ) ; \n + y = ( position ) * itemHeight - firstVisiableChildView . getTop ( ) ; \n } \n listener . onScrollStateChanged ( recyclerView , x , y , tempState ) ; \n }", "msg_token": "android update WXListComponent java"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ExampleUsingGeneratedStub \n { \n public class ExampleUsingGeneratedStub \n . next ( ) . mph ( NUMBER0 ) . seconds ( FLOAT0 ) \n . next ( ) . mph ( NUMBER1 ) . seconds ( FLOAT1 ) ; \n \n - car . make ( new String ( MAKE , Charset . forName ( STRING0 ) ) ) \n + SINGLE \n + SINGLE \n + car . make ( new String ( MAKE , StandardCharsets . UTF_8 ) ) \n . putModel ( MODEL , srcOffset , MODEL . length ) \n . putActivationCode ( ACTIVATION_CODE , NUMBER2 , ACTIVATION_CODE . capacity ( ) ) ;", "msg_token": "Java Comment the code to explain that the length of the strings need to be considered when encoding"} {"diff": " public class DumbServiceImpl extends DumbService implements Disposable , Modifica \n runnable . run ( ) ; \n } \n catch ( Throwable e ) { \n - LOG . error ( e ) ; \n + LOG . error ( STRING0 + runnable , e ) ; \n } \n } \n }", "msg_token": "logging task class for better diagnostics"} {"diff": " public final class HiveType \n { \n return hiveTypeName . hashCode ( ) ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return hiveTypeName ; \n + } \n }", "msg_token": "Add HiveType toString"} {"diff": " public class ExtensionLoader { \n addMenuHelper ( menuBar . getMenuEdit ( ) , hookMenu . getEdit ( ) ) ; \n addMenuHelper ( menuBar . getMenuView ( ) , hookMenu . getView ( ) ) ; \n addMenuHelper ( menuBar . getMenuAnalyse ( ) , hookMenu . getAnalyse ( ) ) ; \n - addMenuHelper ( menuBar . getMenuAnalyse ( ) , hookMenu . getAnalyse ( ) ) ; \n addMenuHelper ( menuBar . getMenuHelp ( ) , hookMenu . getHelpMenus ( ) ) ; \n addMenuHelper ( menuBar . getMenuReport ( ) , hookMenu . getReportMenus ( ) ) ;", "msg_token": "Removed a duplicated statement that adds the menu items to the menu Analyse"} {"diff": " public class BoundingBox extends BoundingVolume { \n transMatrix . absoluteLocal ( ) ; \n \n Vector3f scale = trans . getScale ( ) ; \n - vars . vect1 . set ( xExtent * scale . x , yExtent * scale . y , zExtent * scale . z ) ; \n + vars . vect1 . set ( xExtent * FastMath . abs ( scale . x ) , yExtent * FastMath . abs ( scale . y ) , zExtent * FastMath . abs ( scale . z ) ) ; \n transMatrix . mult ( vars . vect1 , vars . vect2 ) ; \n SINGLE \n box . xExtent = FastMath . abs ( vars . vect2 . getX ( ) ) ;", "msg_token": "Fixed wrong BoundingBox transformation when using negative scaling values"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class BeanInfo { \n if ( methodInfo . getBodyParameterType ( ) . isInstance ( body ) ) { \n return methodInfo ; \n } \n - \n - Object value = convertToType ( exchange , methodInfo . getBodyParameterType ( ) , body ) ; \n + \n + SINGLE \n + Object value = exchange . getContext ( ) . getTypeConverter ( ) . tryConvertTo ( methodInfo . getBodyParameterType ( ) , exchange , body ) ; \n if ( value != null ) { \n if ( LOG . isTraceEnabled ( ) ) { \n LOG . trace ( STRING0 ,", "msg_token": "Bean component Should use try conversion when choosing method based on parameter type matching"} {"diff": " public class JetCompiler implements TranslatingCompiler { \n context . addMessage ( INFORMATION , STRING0 + kotlinHome , STRING1 , - NUMBER0 , - NUMBER0 ) ; \n context . addMessage ( INFORMATION , STRING2 + compilerClassName + STRING3 + Arrays . asList ( arguments ) , STRING1 , - NUMBER0 , - NUMBER0 ) ; \n \n - Object rc = exec . invoke ( null , out , arguments ) ; \n + Object rc = exec . invoke ( kompiler . newInstance ( ) , out , arguments ) ; \n if ( rc instanceof Integer ) { \n return ( ( Integer ) rc ) . intValue ( ) ; \n }", "msg_token": "Fixes an NPE when compiling from the IDE"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix imports in testcase"} {"diff": " import NAMESPACE ; \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 public abstract class Aggregator < I , R > implements Serializable { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract void combine ( Aggregator aggregator ) ;", "msg_token": "Combine javadoc supplemented"} {"diff": " public final class SessionImpl \n throw convert ( e ) ; \n } \n finally { \n - checkNoUnresolvedActionsAfterOperation ( ) ; \n + try { \n + checkNoUnresolvedActionsAfterOperation ( ) ; \n + } \n + catch ( RuntimeException e ) { \n + throw convert ( e ) ; \n + } \n } \n }", "msg_token": "Fix MultiCircleJpaCascadeTest testPersistNoCascadeToTransient test"} {"diff": " public class MainController implements Choreographer . FrameCallback { \n SINGLE \n if ( v instanceof BubbleFlowView ) { \n ( ( BubbleFlowView ) v ) . forceCollapseEnd ( ) ; \n + ( ( BubbleFlowDraggable ) v ) . setCurrentTabAsActive ( ) ; \n } \n } \n mRootWindowsVisible = true ; \n public class BubbleFlowDraggable extends BubbleFlowView implements Draggable { \n return mCurrentTab ; \n } \n \n + public void setCurrentTabAsActive ( ) { \n + if ( null != mCurrentTab ) { \n + setCurrentTab ( mCurrentTab ) ; \n + } \n + } \n + \n private void setCurrentTab ( TabView tab ) { \n mCurrentTabResumeEvent . mTab = tab ; \n MainApplication . postEvent ( getContext ( ) , mCurrentTabResumeEvent ) ; \n public class BubbleFlowView extends HorizontalScrollView { \n } \n mCollapseEndAnimationEventListener = null ; \n mDoingCollapse = false ; \n + \n return result ; \n }", "msg_token": "Fixed blank bubble after resume from unlock"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BillingActivity extends BaseActivity { \n } \n \n @ override \n + protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { \n + Log . d ( TAG , STRING0 + requestCode + STRING1 + resultCode + STRING1 + data ) ; \n + \n + SINGLE \n + if ( ! mHelper . handleActivityResult ( requestCode , resultCode , data ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + super . onActivityResult ( requestCode , resultCode , data ) ; \n + } \n + else { \n + Log . d ( TAG , STRING2 ) ; \n + } \n + } \n + \n + @ override \n protected void onDestroy ( ) { \n super . onDestroy ( ) ;", "msg_token": "Actually handle results in onActivityResult"} {"diff": " \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 COMMENT", "msg_token": "added license header"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ConstructorExpressionTest { \n assertEquals ( STRING0 , projection . text ) ; \n } \n \n + @ test \n + public void threadSafety ( ) { \n + final ConstructorExpression < String > expr = Projections . constructor ( String . class ) ; \n + Runnable invoker = new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + expr . newInstance ( ) ; \n + } \n + } ; \n + ThreadSafety . check ( invoker , invoker ) ; \n + } \n + \n }", "msg_token": "Add thread safety test for ConstructorExpression"} {"diff": " public abstract class FragmentTuner { \n MenuItem rename = menu . findItem ( R . id . menu_rename ) ; \n MenuItem selectAll = menu . findItem ( R . id . menu_select_all ) ; \n \n - open . setVisible ( true ) ; \n + open . setVisible ( mState . action == ACTION_GET_CONTENT || \n + mState . action == ACTION_OPEN ) ; \n share . setVisible ( false ) ; \n delete . setVisible ( false ) ; \n rename . setVisible ( false ) ;", "msg_token": "Only show OPEN button as needed"} {"diff": " public class PApplet extends Applet \n static public String [ ] trim ( String [ ] array ) { \n String [ ] outgoing = new String [ array . length ] ; \n for ( int i = NUMBER0 ; i < array . length ; i ++ ) { \n - outgoing [ i ] = array [ i ] . replace ( STRING0 , STRING1 ) . trim ( ) ; \n + if ( array [ i ] != null ) { \n + outgoing [ i ] = array [ i ] . replace ( STRING0 , STRING1 ) . trim ( ) ; \n + } \n } \n return outgoing ; \n }", "msg_token": "skip null data in trim String"} {"diff": " public class Solo { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n + public ArrayList < View > getViews ( View parent ) { \n + try { \n + return viewFetcher . getViews ( parent ) ; \n + } catch ( Exception e ) { \n + e . printStackTrace ( ) ; \n + return null ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added getViews View parent"} {"diff": " public class PacManager { \n COMMENT \n public synchronized boolean setCurrentProxyScriptUrl ( ProxyProperties proxy ) { \n if ( ! TextUtils . isEmpty ( proxy . getPacFileUrl ( ) ) ) { \n - if ( proxy . getPacFileUrl ( ) . equals ( mPacUrl ) ) { \n + if ( proxy . getPacFileUrl ( ) . equals ( mPacUrl ) && ( proxy . getPort ( ) > NUMBER0 ) ) { \n SINGLE \n return false ; \n }", "msg_token": "Fix error when PAC set rapidly"} {"diff": " public abstract class Phone { \n \n @ joincolumn ( foreignKey = @ foreignkey , table = STRING0 ) \n public abstract int getOwnerId ( ) ; \n + \n + SINGLE \n + public boolean isValid ( ) { \n + return getPhoneNumber ( ) != null && isNormalized ( ) ; \n + } \n }", "msg_token": "Add non processable method for testing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PeopleListFragment extends Fragment { \n \n private FilteredRecyclerView mFilteredRecyclerView ; \n private ProgressBar mProgress ; \n + private PeopleListFilter mPeopleListFilter ; \n \n public static PeopleListFragment newInstance ( int localTableBlogID ) { \n PeopleListFragment peopleListFragment = new PeopleListFragment ( ) ; \n public class PeopleListFragment extends Fragment { \n \n @ override \n public void onLoadFilterCriteriaOptionsAsync ( FilteredRecyclerView . FilterCriteriaAsyncLoaderListener listener , boolean refresh ) { \n - SINGLE \n + SINGLE \n } \n \n @ override \n public FilterCriteria onRecallSelection ( ) { \n - return null ; \n + mPeopleListFilter = AppPrefs . getPeopleListFilter ( ) ; \n + return mPeopleListFilter ; \n } \n \n @ override \n public class PeopleListFragment extends Fragment { \n \n @ override \n public void onFilterSelected ( int position , FilterCriteria criteria ) { \n - \n + mPeopleListFilter = ( PeopleListFilter ) criteria ; \n + AppPrefs . setPeopleListFilter ( mPeopleListFilter ) ; \n } \n \n @ override", "msg_token": "Save use the filter selection in people page"} {"diff": " public class VcsQuickListPopupAction extends QuickSwitchSchemeAction implements \n addSeparator ( group ) ; \n addAction ( STRING0 , group ) ; \n addAction ( STRING1 , group ) ; \n + \n + SINGLE \n + addLocalHistoryActions ( group ) ; \n } \n \n private void addLocalHistoryActions ( DefaultActionGroup group ) {", "msg_token": "add Local History actions to VCS Popup even if VCS isn t configured"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class OrderInsensitiveTaskFilePropertyCompareStrategy implements TaskFilePropert \n COMMENT \n COMMENT \n private Iterator < TaskStateChange > iterateChangesForAbsolutePaths ( final Map < String , NormalizedFileSnapshot > current , final Map < String , NormalizedFileSnapshot > previous , final String fileType ) { \n - final Set < String > unaccountedForPreviousSnapshots = new HashSet < String > ( previous . keySet ( ) ) ; \n + final Set < String > unaccountedForPreviousSnapshots = new LinkedHashSet < String > ( previous . keySet ( ) ) ; \n final Iterator < Entry < String , NormalizedFileSnapshot > > currentEntries = current . entrySet ( ) . iterator ( ) ; \n final List < String > added = new ArrayList < String > ( ) ; \n return new AbstractIterator < TaskStateChange > ( ) {", "msg_token": "Retain iteration order when generating removed events for file snapshots that use absolute file paths"} {"diff": " public class IndexDatabase { \n } \n \n for ( final IndexDatabase db : dbs ) { \n - SINGLE \n db . addIndexChangedListener ( listener ) ; \n executor . submit ( new Runnable ( ) {", "msg_token": "Removed bogus comment"} {"diff": " public class JoglInput implements Input , MouseMotionListener , MouseListener , Mou \n robot = new Robot ( GraphicsEnvironment . getLocalGraphicsEnvironment ( ) . getDefaultScreenDevice ( ) ) ; \n } catch ( HeadlessException e ) { \n } catch ( AWTException e ) { \n - } \n - \n - long eventMask = AWTEvent . MOUSE_MOTION_EVENT_MASK + AWTEvent . MOUSE_EVENT_MASK ; \n - Toolkit . getDefaultToolkit ( ) . addAWTEventListener ( new AWTEventListener ( ) \n - { \n - public void eventDispatched ( AWTEvent e ) \n - { \n - System . out . println ( e . getID ( ) ) ; \n - } \n - } , eventMask ) ; \n + } \n } \n \n public void setListeners ( GLCanvas canvas ) {", "msg_token": "fixed removed debug output from jogl backend"} {"diff": " public interface List < T > extends Seq < T > , Stack < T > { \n @ override \n default Tuple2 < List < T > , List < T > > partition ( Predicate < ? super T > predicate ) { \n Objects . requireNonNull ( predicate , STRING0 ) ; \n - List < T > left = nil ( ) , right = nil ( ) ; \n - for ( T t : this ) { \n - if ( predicate . test ( t ) ) { \n - left = left . prepend ( t ) ; \n - } else { \n - right = right . prepend ( t ) ; \n - } \n - } \n - return Tuple . of ( left . reverse ( ) , right . reverse ( ) ) ; \n + return Tuple . of ( filter ( predicate ) , filter ( predicate . negate ( ) ) ) ; \n } \n \n @ override", "msg_token": "Revert Improves List partition Predicate"} {"diff": " public class AmazonKinesisFirehoseToRedshiftSample extends AbstractAmazonKinesis \n SINGLE \n if ( StringUtils . isNullOrEmpty ( accountId ) ) { \n throw new IllegalArgumentException ( STRING0 \n - + STRING1 ) ; \n + + CONFIG_FILE + STRING2 ) ; \n } \n } \n \n public class AmazonKinesisFirehoseToS3Sample extends AbstractAmazonKinesisFireho \n SINGLE \n if ( StringUtils . isNullOrEmpty ( accountId ) ) { \n throw new IllegalArgumentException ( STRING0 \n - + STRING1 ) ; \n + + CONFIG_FILE + STRING2 ) ; \n } \n }", "msg_token": "Fix wrong property filename in log by replace on constant"} {"diff": " public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O \n \n for ( int i = NUMBER0 ; i < iName . length ( ) ; ++ i ) { \n final char c = iName . charAt ( i ) ; \n - if ( c == STRING0 || c == STRING1 ) \n + if ( c == STRING0 || c == STRING1 || c == STRING2 ) \n SINGLE \n return c ; \n }", "msg_token": "Added the constraint to avoid spaces in document s field names"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class OpenIdServiceFactory extends AbstractServiceFactory < OpenIdService > \n COMMENT \n COMMENT \n @ notnull \n + @ value ( STRING0 ) \n private String openIdPrefixUrl ; \n \n public String getOpenIdPrefixUrl ( ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed checkstyle issues"} {"diff": " public class ImageHelper { \n COMMENT \n COMMENT \n public Bitmap getThumbnailForWPImageSpan ( Context context , String filePath , int targetWidth ) { \n - if ( filePath == null ) { \n + if ( filePath == null || context == null ) { \n return null ; \n } \n int width = getThumbnailWidth ( context , targetWidth ) ;", "msg_token": "null context crashed getThumbnailForWPImageSpan"} {"diff": " public class RestrictedTest { \n private ODatabaseDocumentTx database ; \n private ODocument adminRecord ; \n private ODocument writerRecord ; \n - private final String inheritedRole = STRING0 ; \n - private final String inheritedUser = STRING1 ; \n - \n + \n @ parameters ( value = STRING2 ) \n public RestrictedTest ( String iURL ) { \n database = new ODatabaseDocumentTx ( iURL ) ;", "msg_token": "Deleted some unuseful declarations"} {"diff": " public class ResourceHttpRequestHandler extends WebContentGenerator implements H \n COMMENT \n COMMENT \n protected void writeContent ( HttpServletResponse response , Resource resource ) throws IOException { \n - StreamUtils . copy ( resource . getInputStream ( ) , response . getOutputStream ( ) ) ; \n + InputStream in = resource . getInputStream ( ) ; \n + try { \n + StreamUtils . copy ( in , response . getOutputStream ( ) ) ; \n + } \n + finally { \n + try { \n + in . close ( ) ; \n + } \n + catch ( IOException ex ) { \n + } \n + } \n }", "msg_token": "ResourceHttpRequestHandler explicitly closes a Resource s InputStream"} {"diff": " public class MimeMessage extends Message \n return mMessageId ; \n } \n \n + public void setMessageId ( String messageId ) throws MessagingException \n + { \n + setHeader ( STRING0 , messageId ) ; \n + mMessageId = messageId ; \n + } \n + \n public void setInReplyTo ( String inReplyTo ) throws MessagingException \n { \n setHeader ( STRING1 , inReplyTo ) ;", "msg_token": "Added a setMessageId method to MimeMessage rather than just explicitly setting a header"} {"diff": " public class NewChunk extends Chunk { \n if ( ! Double . isNaN ( _ds [ i ] ) && ( double ) ( long ) _ds [ i ] != _ds [ i ] ) \n break ; \n boolean isInteger = i == sparseLen ( ) ; \n - boolean isConstant = sparseLen ( ) == NUMBER0 ; \n + boolean isConstant = ! sparse || sparseLen ( ) == NUMBER0 ; \n double constVal = NUMBER0 ; \n if ( ! sparse ) { SINGLE \n double d = _ds [ NUMBER0 ] ;", "msg_token": "Fix NewChunk compression after recent fix"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n } \n \n if ( isOneLineMode ( ) ) return getLineHeight ( ) ; \n - \n - int size = mySizeContainer . getContentHeight ( ) ; \n - \n + \n + SINGLE \n + SINGLE \n + int size = Math . max ( mySizeContainer . getContentHeight ( ) , getLineHeight ( ) ) ; \n + \n if ( mySettings . isAdditionalPageAtBottom ( ) ) { \n int lineHeight = getLineHeight ( ) ; \n int visibleAreaHeight = getScrollingModel ( ) . getVisibleArea ( ) . height ;", "msg_token": "make preferred height at least as big as a line height"} {"diff": " public class AsyncQueryForwardingServlet extends HttpServlet \n query = query . withId ( queryId ) ; \n } \n \n + if ( log . isDebugEnabled ( ) ) { \n + log . debug ( STRING0 , query ) ; \n + } \n + \n out = resp . getOutputStream ( ) ; \n final OutputStream outputStream = out ;", "msg_token": "fix another missing log"} {"diff": " public abstract class AbstractMinMaxAggregation \n \n List < Type > inputTypes = ImmutableList . of ( type ) ; \n \n - AccumulatorStateSerializer stateSerializer ; \n - AccumulatorStateFactory stateFactory ; \n + AccumulatorStateSerializer < ? > stateSerializer ; \n + AccumulatorStateFactory < ? > stateFactory ; \n MethodHandle inputFunction ; \n Class < ? extends AccumulatorState > stateInterface ;", "msg_token": "Fix use of raw generics in MinBy MaxBy"} {"diff": " public abstract class AbstractCoberturaParser { \n Resource file = getResource ( filename ) ; \n if ( fileExists ( context , file ) ) { \n for ( Measure measure : entry . getValue ( ) . createMeasures ( ) ) { \n - System . out . println ( file + STRING0 + measure ) ; \n context . saveMeasure ( file , measure ) ; \n } \n }", "msg_token": "Remove System out"} {"diff": " public class DiagnosticGroups { \n DiagnosticGroups . registerGroup ( STRING0 , \n DisambiguateProperties . Warnings . INVALIDATION ) ; \n \n + public static DiagnosticGroup DUPLICATE_VARS = \n + DiagnosticGroups . registerGroup ( STRING1 , \n + SyntacticScopeCreator . VAR_MULTIPLY_DECLARED_ERROR , \n + TypeValidator . DUP_VAR_DECLARATION ) ; \n + \n public static DiagnosticGroup ES5_STRICT = \n DiagnosticGroups . registerGroup ( STRING2 , \n StrictModeCheck . UNKNOWN_VARIABLE , \n public class TypeCheckTest extends CompilerTypeTestCase { \n STRING3 ) ; \n } \n \n + public void testDuplicateStaticPropertyDec20 ( ) throws Exception { \n + testTypes ( \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING10 ) ; \n + } \n + \n public void testDuplicateLocalVarDecl ( ) throws Exception { \n testClosureTypesMultipleWarnings ( \n STRING11 +", "msg_token": "Make suppress duplicate a real diagnostic group"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface Connection { \n Connection url ( String url ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Connection proxy ( Proxy proxy ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface Connection { \n \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Proxy proxy ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Request proxy ( Proxy proxy ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added proxy support"} {"diff": " public class OtpsCsvOutput { \n public void addRow ( Object [ ] row ) { \n List < String > strs = new ArrayList < > ( row . length ) ; \n for ( int i = NUMBER0 ; i < row . length ; i ++ ) { \n - strs . add ( row [ i ] . toString ( ) ) ; \n + strs . add ( row [ i ] == null ? STRING0 : row [ i ] . toString ( ) ) ; \n } \n data . add ( strs ) ; \n }", "msg_token": "Handle null value in CSV output"} {"diff": " public class RequestServer extends NanoHTTPD { \n boolean healthy = ( System . currentTimeMillis ( ) - members [ i ] . _last_heard_from ) < HeartBeatThread . TIMEOUT ; \n if ( healthy ) { \n GetLogsFromNode g = new GetLogsFromNode ( ) ; \n - g . nodeidx = NUMBER0 ; \n + g . nodeidx = i ; \n g . doIt ( ) ; \n bytes = g . bytes ; \n } else {", "msg_token": "Fix log download bug where all nodes were getting the same zip file"} {"diff": " public class ForgeHooksClient \n public static void onTextureStitchedPre ( TextureMap map ) \n { \n MinecraftForge . EVENT_BUS . post ( new TextureStitchEvent . Pre ( map ) ) ; \n + ModelLoader . White . instance . register ( map ) ; \n } \n \n public static void onTextureStitchedPost ( TextureMap map ) \n public class ModelLoader extends ModelBakery \n super ( manager , map , shapes ) ; \n VanillaLoader . instance . setLoader ( this ) ; \n ModelLoaderRegistry . clearModelCache ( ) ; \n - MinecraftForge . EVENT_BUS . register ( White . instance ) ; \n } \n \n @ override \n public class ModelLoader extends ModelBakery \n return false ; \n } \n \n - @ subscribeevent \n - public void handleStitchPre ( TextureStitchEvent . Pre event ) \n + public void register ( TextureMap map ) \n { \n - event . map . setTextureEntry ( White . loc . toString ( ) , White . instance ) ; \n + map . setTextureEntry ( White . loc . toString ( ) , White . instance ) ; \n } \n }", "msg_token": "Removed event bus call from the ModelLoader"} {"diff": " public class ItemUIRegistryImpl implements ItemUIRegistry { \n try { \n item = getItem ( itemName ) ; \n } catch ( ItemNotFoundException e ) { \n - logger . error ( STRING0 , w . eClass ( ) . getInstanceTypeName ( ) ) ; \n + logger . error ( STRING1 , itemName , w . eClass ( ) . getInstanceTypeName ( ) ) ; \n } \n return formatLabel ( item , itemName , label ) ; \n } \n public class ItemUIRegistryImpl implements ItemUIRegistry { \n Item item = getItem ( itemName ) ; \n return item . getState ( ) ; \n } catch ( ItemNotFoundException e ) { \n - logger . error ( STRING2 , new String [ ] { itemName , w . eClass ( ) . getInstanceTypeName ( ) } ) ; \n + logger . error ( STRING1 , itemName , w . eClass ( ) . getInstanceTypeName ( ) ) ; \n } \n } \n return UnDefType . UNDEF ;", "msg_token": "Improved getLabel error logging and fixed warning in getState error logging"} {"diff": " public class FileBasedIndex implements ApplicationComponent { \n } \n } \n \n - IndexingStamp . flushCache ( ) ; \n return true ; \n } \n } ) ; \n + IndexingStamp . flushCache ( ) ; \n } \n \n public void scheduleInvalidation ( final VirtualFile file , final boolean saveContent ) {", "msg_token": "don t flush index stamp cache too often"} {"diff": " public class TypedHandler implements TypedActionHandler { \n element = element . getParent ( ) ; \n } \n \n + if ( element instanceof XmlAttributeValue ) { \n + element = element . getParent ( ) . getParent ( ) ; \n + } \n + \n while ( element instanceof PsiWhiteSpace ) element = element . getPrevSibling ( ) ; \n if ( element == null ) return ; \n if ( ! ( element instanceof XmlTag ) ) {", "msg_token": "fixed issue with greater action when the xml tag has attribute with value"} {"diff": " public class ModuleRootManagerImpl extends ModuleRootManager implements ModuleCo \n private RootModelImpl myRootModel ; \n private final ModuleFileIndexImpl myFileIndex ; \n private boolean myIsDisposed = false ; \n + private boolean myLoaded = false ; \n private boolean isModuleAdded = false ; \n private final OrderRootsCache myOrderRootsCache ; \n private final Map < RootModelImpl , Throwable > myModelCreations = new THashMap < RootModelImpl , Throwable > ( ) ; \n public class ModuleRootManagerImpl extends ModuleRootManager implements ModuleCo \n } \n \n public void loadState ( ModuleRootManagerState object ) { \n - loadState ( object , myRootModel != null ) ; \n + loadState ( object , myLoaded ) ; \n + myLoaded = true ; \n } \n \n protected void loadState ( ModuleRootManagerState object , boolean throwEvent ) {", "msg_token": "don t perform costly root model comparison when it s loaded the first time"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestDigestAuthenticator extends TomcatBaseTest { \n @ test \n public void bug54521 ( ) throws LifecycleException { \n DigestAuthenticator digestAuthenticator = new DigestAuthenticator ( ) ; \n - digestAuthenticator . setContainer ( new TesterContext ( ) ) ; \n + TesterContext context = new TesterContext ( ) ; \n + context . setServletContext ( new TesterServletContext ( ) ) ; \n + digestAuthenticator . setContainer ( context ) ; \n digestAuthenticator . start ( ) ; \n Request request = new TesterRequest ( ) ; \n final int count = NUMBER0 ;", "msg_token": "The JASPIC code now wants a Servlet context which is relatively reasonable"} {"diff": " public class PackageKeySetData { \n } \n \n PackageKeySetData ( PackageKeySetData original ) { \n + mProperSigningKeySet = original . mProperSigningKeySet ; \n mSigningKeySets = ArrayUtils . cloneOrNull ( original . mSigningKeySets ) ; \n mUpgradeKeySets = ArrayUtils . cloneOrNull ( original . mUpgradeKeySets ) ; \n mDefinedKeySets = ArrayUtils . cloneOrNull ( original . mDefinedKeySets ) ;", "msg_token": "Add mProperSigningKeySet to PackageKeySetData constructor"} {"diff": " public class DashUpdatesFragment extends DashBaseFragment { \n cancelButton = null ; \n } \n updatedDownloadsList ( BaseDownloadActivity . downloadListIndexThread . getItemsToUpdate ( ) ) ; \n + \n + View view = getActivity ( ) . getLayoutInflater ( ) . inflate ( R . layout . dash_updates_fragment , container , false ) ; \n + view . invalidate ( ) ; \n } \n \n public void updatedDownloadsList ( List < IndexItem > list ) {", "msg_token": "try invalidate in DashUpdatesFragment"} {"diff": " public class JobManager implements ExtendedManagementProtocol , InputSplitProvide \n \n @ override \n public InstanceID registerTaskManager ( InstanceConnectionInfo instanceConnectionInfo , HardwareDescription hardwareDescription , int numberOfSlots ) { \n - if ( this . instanceManager != null ) { \n + if ( this . instanceManager != null && this . scheduler != null ) { \n return this . instanceManager . registerTaskManager ( instanceConnectionInfo , hardwareDescription , numberOfSlots ) ; \n } else { \n return null ;", "msg_token": "Fix race at TaskManager registration during startup"} {"diff": " public class TableStatements { \n private volatile String selectAll ; \n private volatile String selectByKey ; \n private volatile String selectByRowId ; \n + private volatile String selectKeys ; \n \n public TableStatements ( SQLiteDatabase db , String tablename , String [ ] allColumns , String [ ] pkColumns ) { \n this . db = db ; \n public class TableStatements { \n return selectAll ; \n } \n \n + COMMENT \n + public String getSelectKeys ( ) { \n + if ( selectKeys == null ) { \n + selectKeys = SqlUtils . createSqlSelect ( tablename , STRING0 , pkColumns ) ; \n + } \n + return selectKeys ; \n + } \n + \n SINGLE \n public String getSelectByKey ( ) { \n if ( selectByKey == null ) {", "msg_token": "added getSelectKeys to TableStatements"} {"diff": " public class BusinessRuleTaskActivityBehavior extends TaskActivityBehavior { \n Expression ruleName = itRuleNames . next ( ) ; \n filter . addSuffic ( ruleName . getValue ( execution ) . toString ( ) ) ; \n } \n - filter . setAccept ( exclude ) ; \n + filter . setAccept ( ! exclude ) ; \n ksession . fireAllRules ( filter ) ; \n \n } else {", "msg_token": "Fixed exclude bug"} {"diff": " public class XmppConnection implements Runnable { \n } \n element . setAttributes ( currentTag . getAttributes ( ) ) ; \n Tag nextTag = tagReader . readTag ( ) ; \n + if ( nextTag == null ) { \n + throw new IOException ( STRING0 ) ; \n + } \n while ( ! nextTag . isEnd ( element . getName ( ) ) ) { \n if ( ! nextTag . isNo ( ) ) { \n Element child = tagReader . readElement ( nextTag ) ; \n public class XmppConnection implements Runnable { \n element . addChild ( child ) ; \n } \n nextTag = tagReader . readTag ( ) ; \n + if ( nextTag == null ) { \n + throw new IOException ( STRING0 ) ; \n + } \n } \n ++ stanzasReceived ; \n lastPaketReceived = SystemClock . elapsedRealtime ( ) ;", "msg_token": "fixed possible npe"} {"diff": " public abstract class HeaderTransformer { \n public void onViewCreated ( Activity activity , View headerView ) { } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void onViewCreated ( View headerView ) { } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PullToRefreshAttacher { \n \n SINGLE \n mHeaderTransformer . onViewCreated ( activity , mHeaderView ) ; \n - SINGLE \n - mHeaderTransformer . onViewCreated ( mHeaderView ) ; \n \n SINGLE \n mHandler . post ( new Runnable ( ) {", "msg_token": "Remove deprecated call from HeaderTransformer"} {"diff": " public abstract class AbstractService implements VoldemortService { \n \n private static final Logger logger = Logger . getLogger ( VoldemortService . class ) ; \n \n - private AtomicBoolean isStarted ; \n + private final AtomicBoolean isStarted ; \n private final String name ; \n \n public AbstractService ( String name ) {", "msg_token": "Add final modifier to AtomicBoolean isStarted"} {"diff": " final public class OrcStruct implements Writable { \n \n @ override \n public Object getStructFieldData ( Object object , StructField field ) { \n + if ( object == null ) { \n + return null ; \n + } \n return ( ( OrcStruct ) object ) . fields [ ( ( Field ) field ) . offset ] ; \n } \n \n @ override \n public List < Object > getStructFieldsDataAsList ( Object object ) { \n + if ( object == null ) { \n + return null ; \n + } \n OrcStruct struct = ( OrcStruct ) object ; \n List < Object > result = new ArrayList < Object > ( struct . fields . length ) ; \n for ( Object child : struct . fields ) {", "msg_token": "ORC struct throws NPE for tables with inner structs having null values Prasanth J via Gunther Hagleitner"} {"diff": " public class NewAccountDialog \n } \n catch ( Exception e ) \n { \n + logger . error ( STRING0 + e . getMessage ( ) , e ) ; \n SINGLE \n SwingUtilities . invokeLater ( new Runnable ( ) \n {", "msg_token": "Prints stack trace for error which occurred during protocol sign in"} {"diff": " public interface ClientService { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n String addClientListener ( ClientListener clientListener ) ;", "msg_token": "Improved ClientService javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JvmOptions { \n public static final String JAVA_IO_TMPDIR_KEY = STRING0 ; \n \n public static final Set < String > IMMUTABLE_SYSTEM_PROPERTIES = ImmutableSet . of ( \n - FILE_ENCODING_KEY , USER_LANGUAGE_KEY , USER_COUNTRY_KEY , USER_VARIANT_KEY , JMX_REMOTE_KEY , JAVA_IO_TMPDIR_KEY \n + FILE_ENCODING_KEY , USER_LANGUAGE_KEY , USER_COUNTRY_KEY , USER_VARIANT_KEY , JMX_REMOTE_KEY , JAVA_IO_TMPDIR_KEY , NativeServices . NATIVE_DIR_OVERRIDE \n ) ; \n \n SINGLE", "msg_token": "Include org gradle native dir as an immutable system property"} {"diff": " public class ExecutionTimeLimitTest \n @ test ( expected = UniformInterfaceException . class ) \n public void expectLimitation ( ) \n { \n - wait = NUMBER0 ; \n - Client . create ( ) . resource ( STRING0 ) \n + wait = NUMBER1 ; \n + Client . create ( ) . resource ( STRING1 ) \n . header ( STRING2 , STRING3 ) \n . get ( String . class ) ; \n } \n public class ExecutionTimeLimitTest \n } ; \n \n EmbeddedServerConfigurator config = new EmbeddedServerConfigurator ( db ) ; \n - config . configuration ( ) . setProperty ( Configurator \n - . WEBSERVER_LIMIT_EXECUTION_TIME_PROPERTY_KEY , NUMBER2 ) ; \n + config . configuration ( ) . setProperty ( Configurator . WEBSERVER_PORT_PROPERTY_KEY , NUMBER3 ) ; \n + config . configuration ( ) . setProperty ( Configurator . WEBSERVER_LIMIT_EXECUTION_TIME_PROPERTY_KEY , NUMBER0 ) ; \n testBootstrapper = new WrappingNeoServerBootstrapper ( db , config ) ; \n testBootstrapper . start ( ) ; \n }", "msg_token": "use other test port"} {"diff": " public class XmlBraceMatcher implements XmlAwareBraceMatcher { \n } \n } \n \n - if ( \n - tokenType == XmlTokenType . XML_EMPTY_ELEMENT_END || \n + if ( tokenType == XmlTokenType . XML_EMPTY_ELEMENT_END || \n tokenType == XmlTokenType . XML_ATTRIBUTE_VALUE_END_DELIMITER || \n - tokenType == XmlTokenType . XML_CDATA_END ) { \n + tokenType == XmlTokenType . XML_CDATA_END ) \n + { \n return true ; \n } \n else if ( tokenType == XmlTokenType . XML_TAG_END ) {", "msg_token": "haml lexer should generate pseudo start tag token for all tags not only implicit"} {"diff": " class NettyBuffer extends AbstractBuffer { \n \n @ override \n public NettyBuffer readBytes ( int length ) { \n - return new NettyBuffer ( buffer . readSlice ( length ) ) ; \n + SINGLE \n + return new NettyBuffer ( buffer . readSlice ( length ) . retain ( ) ) ; \n } \n \n @ override", "msg_token": "Fix reference counting misaccounting"} {"diff": " class DefaultTransform implements Transform { \n else \n ratio = Math . min ( xratio , yratio ) ; \n \n - float postx = b . getWidth ( ) * ratio ; \n - float posty = b . getHeight ( ) * ratio ; \n - float transx = ( resizeWidth - postx ) / NUMBER0 ; \n - float transy = ( resizeHeight - posty ) / NUMBER0 ; \n - destination . set ( transx , transy , postx , posty ) ; \n + float postWidth = b . getWidth ( ) * ratio ; \n + float postHeight = b . getHeight ( ) * ratio ; \n + float transx = ( resizeWidth - postWidth ) / NUMBER0 ; \n + float transy = ( resizeHeight - postHeight ) / NUMBER0 ; \n + destination . set ( transx , transy , transx + postWidth , transy + postHeight ) ; \n } \n \n canvas . drawBitmap ( b , null , destination , null ) ;", "msg_token": "Fix bug in resize calculation"} {"diff": " public abstract class DKV { \n \n SINGLE \n static public Value remove ( Key key ) { return remove ( key , null ) ; } \n - static public Value remove ( Key key , Futures fs ) { return put ( key , ( Value ) null , fs ) ; } \n + static public Value remove ( Key key , Futures fs ) { return put ( key , null , fs ) ; } \n \n SINGLE \n SINGLE", "msg_token": "Remove unneeded cast"} {"diff": " public class FreqTermsEnumTests extends ElasticsearchLuceneTestCase { \n \n Directory dir = newDirectory ( ) ; \n IndexWriterConfig conf = newIndexWriterConfig ( TEST_VERSION_CURRENT , new MockAnalyzer ( random ( ) ) ) ; \n - conf . setMergeScheduler ( NoMergeScheduler . INSTANCE ) ; SINGLE \n + if ( frequently ( ) ) { \n + SINGLE \n + conf . setMergePolicy ( randomBoolean ( ) ? NoMergePolicy . COMPOUND_FILES : NoMergePolicy . NO_COMPOUND_FILES ) ; \n + } \n iw = new IndexWriter ( dir , conf ) ; \n terms = new String [ scaledRandomIntBetween ( NUMBER0 , NUMBER1 ) ] ; \n for ( int i = NUMBER2 ; i < terms . length ; i ++ ) {", "msg_token": "TEST Use NoMergePolicy rather than NoMergeScheduler in FreqTermsEnumTests"} {"diff": " public class OGraphRepair { \n repairVertices ( graph , stats , outputListener ) ; \n \n message ( outputListener , STRING0 + graph . getRawGraph ( ) . getURL ( ) + STRING1 \n - + ( System . currentTimeMillis ( ) - beginTime / NUMBER0 ) + STRING2 ) ; \n + + ( ( System . currentTimeMillis ( ) - beginTime ) / NUMBER0 ) + STRING2 ) ; \n \n message ( outputListener , STRING3 + stats . scannedEdges + STRING4 ) ; \n message ( outputListener , STRING5 + stats . removedEdges + STRING4 ) ;", "msg_token": "fixed graph repair timing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n public final class Defaults { \n private Defaults ( ) { }", "msg_token": "Add CheckReturnValue to BinaryPredicates and Defaults"} {"diff": " public class NetworkLibrary { \n } \n } \n \n - if ( linkToTreeMap . isEmpty ( ) ) { \n + if ( ! myRootTree . hasChildren ( ) ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "fixed multiple manage catalogs items issue"} {"diff": " public interface Inventory extends Iterable < ItemStack > { \n public int getSize ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public int getMaxStackSize ( ) ; \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 + public void setMaxStackSize ( int size ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Bleeding Add Inventory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractVcs { \n myIsStarted = false ; \n } \n \n - @ nullable public FileViewEnvironment getFileViewEnvironment ( ) { \n - return null ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "delete file view API leftovers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix checkstyle errors"} {"diff": " public abstract class FileOutputFormat < IT > implements OutputFormat < IT > { \n COMMENT \n COMMENT \n COMMENT \n - public static final String FILE_PARAMETER_KEY = STRING0 ; \n + public static final String FILE_PARAMETER_KEY = STRING1 ; \n \n COMMENT \n COMMENT \n COMMENT \n - public static final String WRITEMODE_PARAMETER_KEY = STRING2 ; \n + public static final String WRITEMODE_PARAMETER_KEY = STRING3 ; \n \n COMMENT \n COMMENT \n COMMENT \n public static final String WRITEMODE_CREATE = STRING4 ; \n public static final String WRITEMODE_OVERWRITE = STRING5 ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n - public static final String OUTPUT_STREAM_OPEN_TIMEOUT_KEY = STRING6 ; \n + public static final String OUTPUT_STREAM_OPEN_TIMEOUT_KEY = STRING7 ; \n \n COMMENT \n COMMENT", "msg_token": "Updated configuration keys to new naming"} {"diff": " public class PdeBase extends Frame implements ActionListener { \n frame = this ; SINGLE \n SINGLE \n \n + this . addComponentListener ( new ComponentAdapter ( ) { \n + public void componentResized ( ComponentEvent e ) { \n + System . out . println ( e ) ; \n + } \n + } ) ; \n + \n SINGLE \n \n try {", "msg_token": "working on macosx java resize bug"} {"diff": " public class TileSourceManager { \n public static class CykloatlasSourceTemplate extends TileSourceTemplate { \n \n public CykloatlasSourceTemplate ( String name , String urlToLoad ) { \n - super ( name , urlToLoad , STRING0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ; SINGLE \n + super ( name , urlToLoad , STRING0 , NUMBER5 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 ) ; SINGLE \n } \n \n @ override", "msg_token": "extend zoom level for Cykloatlas CZ"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class MainActivity extends BaseDetailActivity { \n + public class MainActivity extends AppCompatActivity { \n private List < Sample > samples ; \n \n @ override \n public class MainActivity extends BaseDetailActivity { \n ) ; \n } \n \n + protected void setupToolbar ( ) { \n + Toolbar toolbar = ( Toolbar ) findViewById ( R . id . toolbar ) ; \n + setSupportActionBar ( toolbar ) ; \n + getSupportActionBar ( ) . setDisplayShowTitleEnabled ( false ) ; \n + } \n + \n private void setupLayout ( ) { \n RecyclerView recyclerView = ( RecyclerView ) findViewById ( R . id . sample_list ) ; \n recyclerView . setHasFixedSize ( true ) ;", "msg_token": "Fix back arrow on home"} {"diff": " public class AdminServiceRequestHandler implements RequestHandler { \n logger . info ( message ) ; \n } \n } catch ( VoldemortException ve ) { \n - String errorMessage = STRING0 \n - + fetchUrl \n - + STRING1 \n - + storeName \n - + STRING2 ; \n + String errorMessage = STRING0 + fetchUrl \n + + STRING1 + storeName + STRING3 \n + + ve . getMessage ( ) ; \n updateStatus ( errorMessage ) ; \n logger . error ( errorMessage ) ; \n throw new VoldemortException ( errorMessage ) ;", "msg_token": "Fixed error message in case fetcher raises an exception"} {"diff": " public class XmppConnection implements Runnable { \n } else { \n ++ miss ; \n } \n + if ( rosterVersioning ( ) ) { \n + ++ hit ; \n + } else { \n + ++ miss ; \n + } \n return ( int ) ( ( ( float ) hit ) / ( hit + miss ) * NUMBER0 ) ; \n } \n }", "msg_token": "added roster versioning to calculation of server compat"} {"diff": " abstract public class ServerStarter { \n try { \n SINGLE \n final ClassLoader parent = findParentClassLoader ( ) ; \n - File libDir = new File ( STRING0 ) ; \n + SINGLE \n + File libDir = new File ( STRING1 ) ; \n ClassLoader loader = new JiveClassLoader ( parent , libDir ) ; \n Thread . currentThread ( ) . setContextClassLoader ( loader ) ; \n Class containerClass = loader . loadClass ( getBootContainerClassName ( ) ) ;", "msg_token": "Changed lib path"} {"diff": " public class SchemaManager { \n private void updateToOpenfire ( Connection con ) { \n PreparedStatement pstmt = null ; \n try { \n - pstmt = con . prepareStatement ( STRING0 ) ; \n + pstmt = con . prepareStatement ( STRING1 ) ; \n pstmt . executeUpdate ( ) ; \n } \n catch ( Exception ex ) {", "msg_token": "Wildfire would have jiveVersion not ofVersion"} {"diff": " final class MuninnPage extends StampedLock implements Page \n while ( read != - NUMBER0 && ( readTotal += read ) < length ) ; \n \n SINGLE \n - UnsafeUtil . setMemory ( pointer + readTotal , getCachePageSize ( ) - readTotal , ( byte ) NUMBER1 ) ; \n + UnsafeUtil . setMemory ( pointer + readTotal , length - readTotal , ( byte ) NUMBER1 ) ; \n return readTotal ; \n } \n catch ( ClosedChannelException e )", "msg_token": "Don t zap more page memory to zero than is strictly necessary"} {"diff": " public class Receiver \n COMMENT \n public boolean validate ( ) \n { \n + UNSAFE . loadFence ( ) ; SINGLE \n + \n return validate ( cursor ) ; \n } \n \n private boolean validate ( final long cursor ) \n { \n - UNSAFE . loadFence ( ) ; SINGLE \n - \n return cursor == buffer . getLongVolatile ( tailSequenceOffset ( recordOffset ) ) ; \n } \n }", "msg_token": "Move load fence to public method as not need on private usage"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \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 public class App { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void main ( String [ ] args ) { \n COMMENT \n Prototype charProto = new Character ( ) ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class AppTest { \n \n @ test", "msg_token": "Improve Prototype JavaDoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ForgeHooksClient \n static int stencilBits = NUMBER0 ; \n public static void createDisplay ( ) throws LWJGLException \n { \n + ImageIO . setUseCache ( false ) ; SINGLE \n PixelFormat format = new PixelFormat ( ) . withDepthBits ( NUMBER1 ) ; \n try \n {", "msg_token": "Disable ImageIO s File based cache should speed up texturepack loading stitching"} {"diff": " public class SubsamplingLayer extends BaseLayer < org . deeplearning4j . nn . conf . layer \n isMax . muliColumnVector ( epsilon1d ) ; \n break ; \n case AVG : \n - SINGLE \n - SINGLE \n - col2d . addiRowVector ( epsilon1d ) ; \n + SINGLE \n + SINGLE \n + col2d . addiColumnVector ( epsilon1d ) ; \n break ; \n case NONE : \n return new Pair < > ( retGradient , epsilon ) ;", "msg_token": "Fix issue in average pooling backprop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public interface ManagedPerformanceCounterMBean { \n - \n - @ managedoperation ( description = STRING0 ) \n - void reset ( ) ; \n + public interface ManagedPerformanceCounterMBean extends ManagedCounterMBean { \n \n @ managedattribute ( description = STRING1 ) \n long getExchangesCompleted ( ) throws Exception ;", "msg_token": "ManagedPerformanceCounterMBean should extend ManagedCounterMBean"} {"diff": " public class SoftWrapApplianceManager implements FoldingListener , DocumentListen \n return null ; \n } \n \n - int indent = NUMBER0 ; \n + int indentInColumns = NUMBER0 ; \n + int indentInPixels = myPainter . getMinDrawingWidth ( SoftWrapDrawingType . AFTER_SOFT_WRAP ) ; \n if ( myCustomIndentUsedLastTime ) { \n - indent = myCustomIndentValueUsedLastTime ; \n + indentInColumns = myCustomIndentValueUsedLastTime + lineData . indentInColumns ; \n + indentInPixels += lineData . indentInPixels + ( myCustomIndentValueUsedLastTime * spaceSize ) ; \n } \n SoftWrapImpl softWrap = new SoftWrapImpl ( \n - new TextChangeImpl ( STRING0 + StringUtil . repeatSymbol ( STRING1 , lineData . indentInColumns + indent ) , softWrapOffset , softWrapOffset ) , \n - lineData . indentInColumns + indent + NUMBER1 COMMENT , \n - lineData . indentInPixels + ( indent * spaceSize ) + myPainter . getMinDrawingWidth ( SoftWrapDrawingType . AFTER_SOFT_WRAP ) \n + new TextChangeImpl ( STRING0 + StringUtil . repeatSymbol ( STRING1 , indentInColumns ) , softWrapOffset , softWrapOffset ) , \n + indentInColumns + NUMBER1 COMMENT , \n + indentInPixels \n ) ; \n myStorage . storeOrReplace ( softWrap , true ) ; \n return softWrap ;", "msg_token": "Improve soft wraps performance"} {"diff": " public abstract class FileSystem { \n COMMENT \n public abstract FSDataInputStream open ( Path f ) throws IOException ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public long getDefaultBlockSize ( ) { \n return NUMBER0 * NUMBER1 * NUMBER1 ; SINGLE \n } \n public final class DistributedFileSystem extends FileSystem { \n new org . apache . hadoop . fs . Path ( dst . toString ( ) ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public long getDefaultBlockSize ( ) { \n + \n + return this . fs . getDefaultBlockSize ( ) ; \n + } \n }", "msg_token": "Fixed problem with default block size in HDFS binding"} {"diff": " public class CanvasView extends FrameLayout { \n if ( mExpanded ) { \n applyContentViewAlpha ( NUMBER0 ) ; \n } \n + else { \n + mContentView . setAlpha ( FLOAT0 ) ; \n + mContentView . setVisibility ( GONE ) ; \n + } \n mContentView . onCurrentContentViewChanged ( false ) ; \n } \n \n public class CanvasView extends FrameLayout { \n SINGLE \n \n SINGLE \n - \n mContentView = contentView ; \n if ( unhideNotification ) { \n return ; \n public class CanvasView extends FrameLayout { \n @ suppresswarnings ( STRING0 ) \n @ subscribe \n public void onHideContentEvent ( MainController . HideContentEvent event ) { \n + mExpanded = false ; \n setContentView ( null , false ) ; \n }", "msg_token": "Corrected views visibility on hide bubbles"} {"diff": " import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Delete unused imports in HeaderAssertionTests"}