<nb> public class RegularPactTask < S extends Stub , OT > extends AbstractTask implements
 throw new Exception ( STRING0 + this . getEnvironment ( ) . getTaskName ( ) +
 STRING1 + t . getMessage ( ) , t ) ;
 }
 +
 + SINGLE
 + if ( ! this . running ) {
 + return ;
 + }

 SINGLE
 RegularPactTask . openChainedTasks ( this . chainedTasks , this ) ;

Added cancelling hook that was lost during merge


<nb> public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > , Closeab
 currentIterator = currentResult . getResults ( ) . iterator ( ) ;
 }

 - protected MongoConnector getConnector ( ) {
 + private MongoConnector getConnector ( ) {
 return getCollection ( ) . getConnector ( ) ;
 }
 -
 }

Changed visibility of getConnector method to private


<nb> class FunctionArgumentInjector {
 private static boolean canNameValueChange ( Node n , Node parent ) {
 int type = parent . getType ( ) ;
 return ( type == Token . VAR || type == Token . INC || type == Token . DEC ||
 - ( NodeUtil . isAssignmentOp ( parent ) && parent . getFirstChild ( ) == n ) ) ;
 + ( NodeUtil . isAssignmentOp ( parent ) && parent . getFirstChild ( ) == n ) ||
 + ( NodeUtil . isForIn ( parent ) ) ) ;
 }

 COMMENT
 <nb> public class InlineFunctionsTest extends CompilerTestCase {
 STRING0 ) ;
 }

 + public void test8609285a ( ) {
 + test (
 + STRING1 ,
 + STRING2 ) ;
 + }
 +
 + public void test8609285b ( ) {
 + test (
 + STRING3 ,
 + STRING2 ) ;
 + }
 }

Fix inlining of functions whose named parameter are assigned in for in loops


<nb> public abstract class AbstractRememberMeServices implements RememberMeServices ,
 }

 public void afterPropertiesSet ( ) throws Exception {
 - Assert . hasLength ( key ) ;
 + Assert . hasLength ( key , STRING0 ) ;
 Assert . notNull ( userDetailsService , STRING1 ) ;
 }

AbstractRememberMeServices provide message for Assert on key fieldd


<nb> public class RemoteBlockInStream extends BlockInStream {
 long blockId , long offset , long length , TachyonConf conf ) throws IOException {
 SINGLE
 closeReader ( ) ;
 - RemoteBlockReader mCurrentReader = RemoteBlockReader . Factory . createRemoteBlockReader ( conf ) ;
 + mCurrentReader = RemoteBlockReader . Factory . createRemoteBlockReader ( conf ) ;
 return mCurrentReader . readRemoteBlock (
 address . getHostName ( ) , address . getPort ( ) , blockId , offset , length ) ;
 }

retrieveByteBufferFromRemoteMachine should not create mCurrentReader


<nb> public class JdbcTokenRepositoryImplTests {

 @ beforeclass
 public static void createDataSource ( ) {
 - dataSource = new DriverManagerDataSource ( ) ;
 - dataSource . setDriverClassName ( STRING0 ) ;
 - dataSource . setUrl ( STRING1 ) ;
 - dataSource . setUsername ( STRING2 ) ;
 - dataSource . setPassword ( STRING3 ) ;
 + dataSource = new DriverManagerDataSource ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
 }

 @ before


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class PyUtil {
 return ArrayUtil . toObjectArray ( result , aClass ) ;
 }

 - public static PyExpression flattenParens ( PyExpression expr ) {
 + @ nullable
 + public static PyExpression flattenParens ( @ nullable PyExpression expr ) {
 while ( expr instanceof PyParenthesizedExpression ) {
 expr = ( ( PyParenthesizedExpression ) expr ) . getContainedExpression ( ) ;
 }


<nb> abstract class AbstractTFS extends FileSystem {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - @ override
 public abstract String getScheme ( ) ;

 COMMENT


<nb> public final class Configuration implements Parcelable , Comparable < Configuration

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public int keyboard ;

 <nb> public final class Configuration implements Parcelable , Comparable < Configuration

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public int navigation ;

Fix Configuration documentation for new constants


<nb> class DisplayContent {
 mTouchExcludeRegion . op ( mTmpRect , Region . Op . DIFFERENCE ) ;
 }
 }
 - mTapDetector . setTouchExcludeRegion ( mTouchExcludeRegion ) ;
 + if ( mTapDetector != null ) {
 + mTapDetector . setTouchExcludeRegion ( mTouchExcludeRegion ) ;
 + }
 }

 void switchUserStacks ( ) {

Fix NPE in DisplayContent setTouchExcludeRegion


<nb> public abstract class LookupArranger {
 }
 result . addAll ( items ) ;
 ArrayList < LookupElement > list = new ArrayList < LookupElement > ( result ) ;
 - int selected = onExplicitAction ? NUMBER0 : list . indexOf ( lookup . getCurrentItem ( ) ) ;
 + int selected = ! lookup . isSelectionTouched ( ) && onExplicitAction ? NUMBER0 : list . indexOf ( lookup . getCurrentItem ( ) ) ;
 return new Pair < List < LookupElement > , Integer > ( list , selected >= NUMBER0 ? selected : NUMBER0 ) ;
 }

 <nb> public abstract class LookupActionHandler extends EditorActionHandler {
 lookup . setFocused ( true ) ;
 lookup . getList ( ) . setSelectedIndex ( NUMBER0 ) ;
 }
 + lookup . markSelectionTouched ( ) ;
 ListScrollingUtil . moveUp ( lookup . getList ( ) , NUMBER0 ) ;
 lookup . refreshUi ( false , true ) ;
 return true ;

fix up arrow jumping to the first suggestion in in place rename


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class RuleClass {
 }
 }

 - static Builder createPlaceholderBuilder (
 - final String name , final Location ruleLocation , ImmutableList < RuleClass > parents ) {
 - return new Builder ( name , RuleClassType . PLACEHOLDER , COMMENT true ,
 - parents . toArray ( new RuleClass [ parents . size ( ) ] ) ) . factory (
 - new ConfiguredTargetFactory < Object , Object > ( ) {
 - @ override
 - public Object create ( Object ruleContext ) throws InterruptedException {
 - throw new IllegalStateException (
 - STRING0 + name
 - + STRING1 + ruleLocation ) ;
 - }
 - } ) ;
 - }
 -
 private final String name ; SINGLE

 COMMENT

Delete unused RuleClass createPlaceholderBuilder


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RegionCommands {
 throws WorldEditException {

 Region region = session . getSelection ( player . getWorld ( ) ) ;
 + Mask mask = session . getMask ( ) ;
 + session . setMask ( null ) ;
 player . getWorld ( ) . regenerate ( region , editSession ) ;
 + session . setMask ( mask ) ;
 player . print ( STRING0 ) ;
 }
 }

Disabling global masks while regnerating because they only affect the area outside the selection


<nb> public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc
 handler . getClass ( ) . getSimpleName ( ) ) ;
 }
 }
 - SINGLE
 catch ( Throwable t ) {
 - logger . warn ( STRING0 + className , t ) ;
 + logger . trace ( STRING0 + className , t ) ;
 }
 }
 }


<nb> import NAMESPACE ;

 public class FirewallingTcpIpConnectionManager extends TcpIpConnectionManager {

 - final Set < Address > blockedAddresses = Collections . newSetFromMap ( new ConcurrentHashMap < Address , Boolean > ( ) ) ;
 + private final Set < Address > blockedAddresses = Collections . newSetFromMap ( new ConcurrentHashMap < Address , Boolean > ( ) ) ;

 public FirewallingTcpIpConnectionManager (
 LoggingService loggingService ,
 <nb> public class FirewallingTcpIpConnectionManager extends TcpIpConnectionManager {
 Connection connection = getConnection ( address ) ;
 if ( connection instanceof DroppingConnection ) {
 connection . close ( null , null ) ;
 + onClose ( connection ) ;
 }
 }

FirewallingTcpIpConnectionManager unblock should remove DroppingConnection


<nb> public abstract class GroovyPage extends Script {
 else {
 tagLib = ( GroovyObject ) appContext . getBean ( tagLibClass . getFullName ( ) ) ;
 try {
 - new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) , request , response ) ;
 + new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) ) ;
 } catch ( IntrospectionException e ) {
 throw new GrailsTagException ( STRING0 + tagLibClass . getFullName ( ) + STRING1 + e . getMessage ( ) , e ) ;
 }
 <nb> public class JspInvokeGrailsTagLibTag extends BodyTagSupport implements DynamicA
 else {
 tagLib = ( GroovyObject ) appContext . getBean ( tagLibClass . getFullName ( ) ) ;
 try {
 - new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) , request , response ) ;
 + new TagLibDynamicMethods ( tagLib , grailsAttributes . getController ( request ) ) ;
 } catch ( IntrospectionException e ) {
 throw new GrailsTagException ( STRING0 + tagLibClass . getFullName ( ) + STRING1 + e . getMessage ( ) , e ) ;
 }

updated following change to TagLibDynamicMethods contructor


<nb> public class JMSBroadcaster extends AbstractBroadcasterProxy {
 broadcastReceivedMessage ( message ) ;
 }
 } catch ( JMSException ex ) {
 - logger . warn ( STRING0 , ex ) ;
 + logger . warn ( STRING1 , ex ) ;
 }
 }
 } ) ;
 <nb> public class JMSBroadcaster extends AbstractBroadcasterProxy {
 id = STRING2 ;
 }

 + if ( session == null ) {
 + throw new IllegalStateException ( STRING3 ) ;
 + }
 +
 TextMessage textMessage = session . createTextMessage ( message . toString ( ) ) ;
 textMessage . setStringProperty ( STRING4 , id ) ;
 publisher . send ( textMessage ) ;

Throw an exception if the Broadcaster wasn t started properly


<nb> public abstract class NinjaApiDocTest extends DocTest {
 }

 public URI buildUri ( String relativePath , Map < String , String > parameters ) throws URISyntaxException {
 - return build ( STRING0 + relativePath , parameters ) . build ( ) ;
 + return build ( relativePath , parameters ) . build ( ) ;
 }

 public URI buildUri ( String relativePath ) throws URISyntaxException {
 - return build ( STRING0 + relativePath , null ) . build ( ) ;
 + return build ( relativePath , null ) . build ( ) ;
 }

 private URIBuilder build ( String relativePath , Map < String , String > parameters ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ParameterContext {

 public io . crate . planner . symbol . Literal getAsSymbol ( int index ) {
 try {
 - Object value ;
 - if ( hasBulkParams ( ) ) {
 - value = bulkParameters [ currentIdx ] [ index ] ;
 - } else {
 - value = parameters [ index ] ;
 - }
 + Object value = parameters ( ) [ index ] ;
 DataType type = guessTypeSafe ( value ) ;
 SINGLE
 return newLiteral ( type , type . value ( value ) ) ;


<nb> public class RegistrationTest extends TomcatBaseTest {

 tomcat . stop ( ) ;

 - SINGLE
 - onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ;
 - assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ;
 + SINGLE
 + onames = mbeanServer . queryNames ( new ObjectName ( STRING2 ) , null ) ;
 + assertTrue ( STRING3 , onames . size ( ) > NUMBER0 ) ;

 SINGLE
 StandardHost host = new StandardHost ( ) ;
 <nb> public class RegistrationTest extends TomcatBaseTest {
 tomcat . start ( ) ;
 tomcat . stop ( ) ;

 + SINGLE
 onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ;
 assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ;
 + onames = mbeanServer . queryNames ( new ObjectName ( STRING2 ) , null ) ;
 + assertEquals ( STRING1 + onames , NUMBER0 , onames . size ( ) ) ;
 }

 }

Align test with expected behaviour currently fails


<nb> public class ReadOnlyStorageEngine implements StorageEngine < ByteArray , byte [ ] > {
 File backup = ReadOnlyUtils . findKthVersionedDir ( storeDirList , storeDirList . length - NUMBER0 ) ;

 File primary ;
 - if ( versionDir != null && versionDir . exists ( ) ) {
 + if ( versionDir != null ) {
 primary = versionDir ;
 } else {
 primary = new File ( storeDir , STRING0 + maxVersionId ) ;


<nb> public class Androlib {
 throws AndrolibException {
 DumperOptions options = new DumperOptions ( ) ;
 options . setDefaultFlowStyle ( DumperOptions . FlowStyle . BLOCK ) ;
 - options . setIndent ( NUMBER0 ) ;
 + SINGLE
 Yaml yaml = new Yaml ( options ) ;
 try {
 yaml . dump ( meta , new FileWriter ( new File ( mOutDir , STRING0 ) ) ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UpdateMessageService {

 @ autowired protected RestClient restClient ;
 @ autowired private GtasksPreferenceService gtasksPreferenceService ;
 + @ autowired private ActFmPreferenceService actFmPreferenceService ;
 @ autowired private AddOnService addOnService ;
 @ autowired private StoreObjectDao storeObjectDao ;

 <nb> public class UpdateMessageService {
 int versionCode = pi . versionCode ;
 String result = restClient . get ( URL + STRING0 + versionCode + STRING1 +
 STRING2 + Locale . getDefault ( ) . getISO3Language ( ) + STRING1 +
 - STRING3 + Constants . MARKET_STRATEGY . strategyId ( ) ) ; SINGLE
 + STRING3 + Constants . MARKET_STRATEGY . strategyId ( ) + STRING1 +
 + STRING4 + ( actFmPreferenceService . isLoggedIn ( ) ? STRING5 : STRING6 ) ) ; SINGLE
 if ( TextUtils . isEmpty ( result ) )
 return null ;

Send logged in status for the update message


<nb> public class ClientSocketStats {
 if ( parent == null && statsMap != null ) {
 int monitoringInterval = this . monitoringInterval . get ( ) ;
 if ( monitoringCount % ( monitoringInterval + NUMBER0 ) == monitoringInterval ) {
 + long startTimeNs = System . nanoTime ( ) ;
 +
 SINGLE
 Iterator < SocketDestination > it = statsMap . keySet ( ) . iterator ( ) ;
 while ( it . hasNext ( ) ) {
 <nb> public class ClientSocketStats {
 }
 SINGLE
 resetForInterval ( ) ;
 +
 + logger . info ( STRING0 + System . identityHashCode ( this )
 + + STRING1
 + + ( startTimeNs - System . nanoTime ( ) ) + STRING2 ) ;
 }
 }
 }

Added INFO level messages to better understand resetting stats in ClientSocketStats


<nb> public class QuotationAnnotatorTest extends TestCase {
 }
 }

 + public void testBasicInternalPunc ( ) {
 + String text = STRING0 +
 + STRING1 ;
 + List < CoreMap > quotes = runQuotes ( text , NUMBER0 ) ;
 + assertEquals ( text , quotes . get ( NUMBER1 ) . get ( CoreAnnotations . TextAnnotation . class ) ) ;
 + }
 +
 public void testBasicLatexQuotes ( ) {
 String text = STRING2 ;
 List < CoreMap > quotes = runQuotes ( text , NUMBER2 ) ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class MetricsBean {
 private long minuteTimestamp ;
 private long hourTimestamp ;

 - public void feedRefreshed ( ) {
 + @ aroundinvoke
 + private Object roll ( InvocationContext context ) throws Exception {
 long now = System . currentTimeMillis ( ) ;
 if ( now - minuteTimestamp > NUMBER0 ) {
 lastMinute = thisMinute ;
 <nb> public class MetricsBean {
 minuteTimestamp = now ;

 }
 - thisMinute . feedsRefreshed ++ ;

 if ( now - hourTimestamp > NUMBER0 * NUMBER1 ) {
 lastHour = thisHour ;
 <nb> public class MetricsBean {
 hourTimestamp = now ;

 }
 + return context . proceed ( ) ;
 + }
 +
 + public void feedRefreshed ( ) {
 + thisMinute . feedsRefreshed ++ ;
 thisHour . feedsRefreshed ++ ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class PyEduDebugRunner extends PyDebugRunner {
 - public static final String OUTPUT = STRING0 ;
 private static final Logger LOG = Logger . getInstance ( PyEduDebugRunner . class ) ;
 public static final int NO_LINE = - NUMBER0 ;

 <nb> public class PyEduDebugRunner extends PyDebugRunner {
 view . enableConsole ( false ) ;

 Content eduConsole =
 - ui . createContent ( OUTPUT , view . getComponent ( ) , OUTPUT , AllIcons . Debugger . ToolConsole , view . getPreferredFocusableComponent ( ) ) ;
 + ui . createContent ( STRING1 , view . getComponent ( ) ,
 + XDebuggerBundle . message ( STRING2 ) ,
 + AllIcons . Debugger . ToolConsole , view . getPreferredFocusableComponent ( ) ) ;
 eduConsole . setCloseable ( false ) ;
 ui . addContent ( eduConsole , NUMBER1 , PlaceInGrid . right , false ) ;


<nb> public class SpecialPhrases {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public static Locale getPreferredLanguage ( OsmandSettings set ) {
 if ( set . usingEnglishNames ( ) ) {
 - return new Locale ( STRING0 ) ;
 + return Locale . ENGLISH ;
 }
 return Locale . getDefault ( ) ;


<nb> public interface ILanguageAdapter {
 catch ( ClassNotFoundException e )
 {
 SINGLE
 - FMLLog . log ( Level . SEVERE , e , STRING0 , proxyTarget . getSimpleName ( ) , target . getName ( ) ) ;
 - throw new LoaderException ( e ) ;
 + FMLLog . log ( Level . INFO , e , STRING0 , proxyTarget . getSimpleName ( ) , target . getName ( ) ) ;
 + return ;
 }

 SINGLE

Don t throw an exception if the scala adapter find a java proxy


<nb> public abstract class PsiType {
 COMMENT
 COMMENT
 COMMENT
 - public boolean isAssignableFrom ( PsiType type ) {
 + public boolean isAssignableFrom ( @ notnull PsiType type ) {
 return TypeConversionUtil . isAssignable ( this , type ) ;
 }

 COMMENT
 COMMENT
 COMMENT
 - public boolean isConvertibleFrom ( PsiType type ) {
 + public boolean isConvertibleFrom ( @ notnull PsiType type ) {
 return TypeConversionUtil . areTypesConvertible ( type , this ) ;
 }

 <nb> public class TypeConversionUtil {
 COMMENT
 COMMENT
 COMMENT
 - public static boolean areTypesConvertible ( PsiType fromType , PsiType toType ) {
 + public static boolean areTypesConvertible ( @ notnull PsiType fromType , @ notnull PsiType toType ) {
 if ( isPrimitiveAndNotNull ( fromType ) || isPrimitiveAndNotNull ( toType ) ) {
 final int fromTypeRank = getTypeRank ( fromType ) ;
 final int toTypeRank = getTypeRank ( toType ) ;


<nb> public class BubbleView extends FrameLayout {
 @ override
 public void onPageLoading ( String url ) {
 showProgressBar ( true , NUMBER0 ) ;
 + onReceivedIcon ( null ) ;
 }

 @ override

Restore default favicon when page loads so as to prevent a favicon from the last webpage being used


<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getExpandedItemsCount ( int from , int position ) {
 + int totalAddedItems = NUMBER0 ;
 + int length = mExpanded . size ( ) ;
 + for ( int i = NUMBER0 ; i < length ; i ++ ) {
 + SINGLE
 + if ( mExpanded . keyAt ( i ) >= from && mExpanded . keyAt ( i ) < position ) {
 + totalAddedItems = totalAddedItems + mExpanded . get ( mExpanded . keyAt ( i ) ) ;
 + } else if ( mExpanded . keyAt ( i ) >= position ) {
 + SINGLE
 + break ;
 + }
 + }
 + return totalAddedItems ;
 + }
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add new method to get the count of expandable items before a specific position


<nb> public abstract class TestBase {
 public TestBase ( Configuration config , String clusterConfig ) {
 this . clusterConfig = clusterConfig ;
 this . config = config ;
 +
 + LogUtils . initializeDefaultConsoleLogger ( Level . WARN ) ;
 +
 verifyJvmOptions ( ) ;
 }

 public TestBase ( Configuration testConfig ) {
 this ( testConfig , Constants . DEFAULT_TEST_CONFIG ) ;
 -
 - LogUtils . initializeDefaultConsoleLogger ( Level . WARN ) ;
 }

 private void verifyJvmOptions ( ) {

Changed default testing log verbosity for TestBase


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 return field ;
 }

 - private static class MySearchTextField extends SearchTextField {
 + private static class MySearchTextField extends SearchTextField implements DataProvider {
 public MySearchTextField ( ) {
 super ( false ) ;
 setOpaque ( false ) ;
 <nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 @ override
 protected void showPopup ( ) {
 }
 +
 + @ nullable
 + @ override
 + public Object getData ( @ nonnls String dataId ) {
 + if ( PlatformDataKeys . PREDEFINED_TEXT . is ( dataId ) ) {
 + return getTextEditor ( ) . getText ( ) ;
 + }
 + return null ;
 + }
 }

 private class MyListRenderer extends ColoredListCellRenderer {


<nb> public class TechnicalDebtXMLImporter implements ServerExtension {
 cursor . getStreamReader ( ) . closeCompletely ( ) ;

 } catch ( XMLStreamException e ) {
 + LOG . error ( STRING0 , e ) ;
 messages . addErrorText ( STRING1 + e . getMessage ( ) ) ;
 }
 return model ;


<nb> public abstract class DbTest < T extends Application > extends ApplicationTestCase <
 protected SQLiteDatabase db ;
 protected Random random ;
 protected final boolean inMemory ;
 + private boolean dontCreateApp ;

 public DbTest ( ) {
 this ( true ) ;
 <nb> public abstract class DbTest < T extends Application > extends ApplicationTestCase <
 random = new Random ( ) ;
 }

 + protected void dontCreateApplicationDuringSetUp ( ) {
 + dontCreateApp = true ;
 + }
 +
 @ override
 protected void setUp ( ) {
 try {
 <nb> public abstract class DbTest < T extends Application > extends ApplicationTestCase <
 } catch ( Exception e ) {
 throw new RuntimeException ( e ) ;
 }
 - createApplication ( ) ;
 + if ( ! dontCreateApp ) {
 + createApplication ( ) ;
 + }
 setUpDb ( ) ;
 }

added dontCreateApplicationDuringSetUp to DbTest


<nb> public class CreateTableGenerator extends AbstractSqlGenerator < CreateTableStatem
 String sql = buffer . toString ( ) . replaceFirst ( STRING0 , STRING1 ) + STRING2 ;

 if ( database instanceof MySQLDatabase && mysqlTableOptionStartWith != null ) {
 - LogFactory . getInstance ( ) . getLog ( ) . info ( STRING3 + mysqlTableOptionStartWith . toString ( ) + STRING4 ) ;
 + LogFactory . getLogger ( ) . info ( STRING3 + mysqlTableOptionStartWith . toString ( ) + STRING4 ) ;
 sql += STRING5 + ( ( MySQLDatabase ) database ) . getTableOptionAutoIncrementStartWithClause ( mysqlTableOptionStartWith ) ;
 }


<nb> public class AnalysisReportDaoTest {
 session . commit ( ) ;

 db . assertDbUnit ( getClass ( ) , STRING0 , STRING1 ) ;
 - SINGLE
 - assertThat ( report1 . getId ( ) ) . isNotNull ( ) ;
 - assertThat ( report2 . getId ( ) ) . isNotNull ( ) ;
 }

 @ test

Fix compatibility of test AnalysisReportDaoTest with Oracle


<nb> public abstract class ZLTextPosition implements Comparable < ZLTextPosition > {
 return e0 < e1 ? - NUMBER0 : NUMBER0 ;
 }

 - final int c0 = getCharIndex ( ) ;
 - final int c1 = position . getCharIndex ( ) ;
 - if ( c0 != c1 ) {
 - return c0 < c1 ? - NUMBER0 : NUMBER0 ;
 + return getCharIndex ( ) - position . getCharIndex ( ) ;
 + }
 +
 + public int compareToIgnoreChar ( ZLTextPosition position ) {
 + final int p0 = getParagraphIndex ( ) ;
 + final int p1 = position . getParagraphIndex ( ) ;
 + if ( p0 != p1 ) {
 + return p0 < p1 ? - NUMBER0 : NUMBER0 ;
 }

 - return NUMBER1 ;
 + return getElementIndex ( ) - position . getElementIndex ( ) ;
 }

 @ override


<nb> public class WebSocketSession extends ContainerLifeCycle implements Session , Inc
 @ override
 public RemoteEndpoint getRemote ( )
 {
 - if ( ! isOpen ( ) )
 + ConnectionState state = connection . getIOState ( ) . getConnectionState ( ) ;
 +
 + if ( ( state == ConnectionState . OPEN ) || ( state == ConnectionState . CONNECTED ) )
 {
 - throw new WebSocketException ( STRING0 ) ;
 + return remote ;
 }
 - return remote ;
 +
 + throw new WebSocketException ( STRING1 + state + STRING2 ) ;
 }

 @ override

Making error message on Session getRemote more clear about connection state


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;

 public class WireMockServerTests {

 + @ rule
 + public final TemporaryFolder tempDir = new TemporaryFolder ( ) ;
 +
 @ test
 public void instantiationWithEmptyFileSource ( ) throws IOException {
 - Path tempDir = Files . createTempDirectory ( STRING0 ) ;
 - Options options = new WireMockConfiguration ( ) . fileSource ( new SingleRootFileSource ( tempDir . toFile ( ) ) ) ;
 + Options options = new WireMockConfiguration ( ) . fileSource ( new SingleRootFileSource ( tempDir . getRoot ( ) ) ) ;

 WireMockServer wireMockServer = null ;
 try {

Stopped test from creating temp dirs and failing to clean them up


<nb> public abstract class DataChangedNotifier < T > {
 SINGLE
 final void flushAccumulatedNotifications ( SquidDatabase database , boolean shouldSendNotifications ) {
 Set < T > accumulatedNotifications = notifyObjectAccumulator . get ( ) ;
 - if ( ! enabled || ! shouldSendNotifications ) {
 - accumulatedNotifications . clear ( ) ;
 - return ;
 - }
 -
 - for ( T notifyObject : accumulatedNotifications ) {
 - sendNotification ( database , notifyObject ) ;
 + if ( enabled && shouldSendNotifications ) {
 + for ( T notifyObject : accumulatedNotifications ) {
 + sendNotification ( database , notifyObject ) ;
 + }
 }
 + accumulatedNotifications . clear ( ) ;
 }

 COMMENT

Fix another issue where accumulated notification objects might not be flushed properly


<nb> public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public DefaultLdapAuthoritiesPopulator ( InitialDirContextFactory initialDirContextFactory , String groupSearchBase ) {
 Assert . notNull ( initialDirContextFactory , STRING0 ) ;
 <nb> public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class AbstractLoadBalancerAwareClient < S extends ClientRequest , T
 if ( t instanceof ClientException ) {
 throw ( ClientException ) t ;
 } else {
 - throw new ClientException ( t ) ;
 + throw new ClientException ( e ) ;
 }
 }


<nb> package NAMESPACE ;
 public interface ChannelHandlerContext {

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + Channel getChannel ( ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultChannelPipeline implements ChannelPipeline {
 this . handler = handler ;
 }

 + public Channel getChannel ( ) {
 + return getPipeline ( ) . getChannel ( ) ;
 + }
 +
 public ChannelPipeline getPipeline ( ) {
 return DefaultChannelPipeline . this ;
 }


<nb> import NAMESPACE ;
 public class MultiLayerConfiguration implements Serializable , Cloneable {

 protected List < NeuralNetConfiguration > confs ;
 - @ deprecated
 - protected boolean useGaussNewtonVectorProductBackProp = false ;
 protected boolean pretrain = true ;
 @ deprecated
 protected double dampingFactor = NUMBER0 ;


<nb> public class KMeans2 extends ColumnsJob {
 SINGLE
 SINGLE

 + @ api ( help = STRING0 )
 + public int k ;
 +
 @ api ( help = STRING1 )
 public long [ ] size ;

 + @ api ( help = STRING2 )
 + public boolean normalized ;
 +
 + @ api ( help = STRING3 )
 + public int max_iter = NUMBER0 ;
 +
 @ api ( help = STRING4 )
 public int iterations ;

 <nb> public class KMeans2 extends ColumnsJob {
 super ( selfKey , dataKey , names , domains , COMMENT null , COMMENT null ) ;
 _ncats = params . _ncats ;
 parameters = params ;
 +
 + SINGLE
 + k = params . k ;
 + normalized = params . normalize ;
 + max_iter = params . max_iter ;
 +
 _clustersKey = Key . make ( selfKey . toString ( ) + STRING5 ) ;
 }

Add back redundant model parameters to the model JSON itself to maintain backward compatibility for python tests


<nb> import NAMESPACE ;
 COMMENT
 public class BootstrapLogging {

 - @ guardedby ( STRING0 )
 + @ guardedby ( STRING1 )
 private static boolean bootstrapped = false ;
 private static final Lock bootstrappingLock = new ReentrantLock ( ) ;

Correct the name of the lock in GuardedBy


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class PyGotoTargetRendererProvider implements GotoTargetRendererProvider {
 - public PsiElementListCellRenderer getRenderer ( final PsiElement element ) {
 + public PsiElementListCellRenderer getRenderer ( final PsiElement element , GotoTargetHandler . GotoData gotoData ) {
 if ( element instanceof PyElement && element instanceof PsiNamedElement ) return new PyElementListCellRenderer ( ) ;
 return null ;
 }

show implementations for groovy implicit accessors


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DownloadIndexActivity extends ListActivity {

 filterText = ( EditText ) findViewById ( R . id . search_box ) ;
 filterText . addTextChangedListener ( textWatcher ) ;
 - final String filter = getIntent ( ) . getExtras ( ) . getString ( FILTER_KEY ) ;
 - if ( filter != null ) {
 - filterText . setText ( filter ) ;
 + final Intent intent = getIntent ( ) ;
 + if ( intent != null && intent . getExtras ( ) != null ) {
 + final String filter = intent . getExtras ( ) . getString ( FILTER_KEY ) ;
 + if ( filter != null ) {
 + filterText . setText ( filter ) ;
 + }
 }

 if ( downloadListIndexThread . getCachedIndexFiles ( ) != null ) {


<nb> public class CursorLoader extends AsyncTaskLoader < Cursor > {
 if ( cursor != null ) {
 SINGLE
 cursor . getCount ( ) ;
 - registerContentObserver ( cursor , mObserver ) ;
 + cursor . registerContentObserver ( mObserver ) ;
 }
 return cursor ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - void registerContentObserver ( Cursor cursor , ContentObserver observer ) {
 - cursor . registerContentObserver ( mObserver ) ;
 - }
 -
 COMMENT
 @ override
 public void deliverResult ( Cursor cursor ) {


<nb> public class BuildBinarizedDataset {
 scorer . forwardPropagateTree ( collapsedUnary ) ;
 setPredictedLabels ( collapsedUnary ) ;
 } else {
 - setUnknownLabels ( binarized , mainLabel ) ;
 + setUnknownLabels ( collapsedUnary , mainLabel ) ;
 }

 Trees . convertToCoreLabels ( collapsedUnary ) ;

Fix a bug for setting labels in BuildBinarizedDataset


<nb> public class SerializerPojo extends SerializerBase implements Serializable {

 public SerializerPojo ( CopyOnWriteArrayList < ClassInfo > registered ) {
 if ( registered == null )
 - this . registered = new CopyOnWriteArrayList < ClassInfo > ( ) ;
 - else
 - this . registered = registered ;
 + registered = new CopyOnWriteArrayList < ClassInfo > ( ) ;
 + this . registered = registered ;

 for ( int i = NUMBER0 ; i < registered . size ( ) ; i ++ )
 {


<nb> public abstract class HazelcastTestSupport {
 for ( ; ; ) {
 String id = prefix + randomString ( ) ;
 Partition partition = partitionService . getPartition ( id ) ;
 - if ( comparePartitionOwnership ( false , localMember , partition ) ) {
 + if ( comparePartitionOwnership ( true , localMember , partition ) ) {
 return id ;
 }
 }

HazelcastTestSupport randomNameOwnedBy reverted a fix that wasn t a fix


<nb> public class TopologyContext extends GeneralTopologyContext {
 _workerPort = workerPort ;
 _taskId = taskId ;
 try {
 - _pidDir = new File ( pidDir ) . getCanonicalPath ( ) ;
 + if ( pidDir != null ) {
 + _pidDir = new File ( pidDir ) . getCanonicalPath ( ) ;
 + } else {
 + _pidDir = null ;
 + }
 } catch ( IOException e ) {
 throw new RuntimeException ( STRING0 + _pidDir , e ) ;
 }

allow piddir to be null in topologycontext for testing


<nb> public class OSMDatabase implements OpenStreetMapContentHandler {
 if ( relationsById . containsKey ( relation . getId ( ) ) )
 return ;

 - if ( relation . isTag ( STRING0 , STRING1 ) && OSMFilter . isOsmEntityRoutable ( relation ) ) {
 + if ( relation . isTag ( STRING0 , STRING1 )
 + && ( OSMFilter . isOsmEntityRoutable ( relation ) || relation . isParkAndRide ( ) ) ) {
 SINGLE
 SINGLE
 SINGLE


<nb> public class AppCompiler {
 }
 } else {
 for ( String pattern : config . getForceLinkClasses ( ) ) {
 + if ( pattern == null || pattern . trim ( ) . isEmpty ( ) ) {
 + continue ;
 + }
 + pattern = pattern . trim ( ) ;
 if ( pattern . indexOf ( STRING0 ) == - NUMBER0 ) {
 Clazz clazz = config . getClazzes ( ) . load ( pattern . replace ( STRING1 , STRING2 ) ) ;
 if ( clazz == null ) {

Ignore empty and null patterns in forceLinkClasses


<nb> public class TaskExecutionServices {
 SerializerRegistry < FileCollectionSnapshot > serializerRegistry = new DefaultSerializerRegistry < FileCollectionSnapshot > ( ) ;
 fileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ;
 outputFilesSnapshotter . registerSerializers ( serializerRegistry ) ;
 - fileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ;
 + discoveredFileCollectionSnapshotter . registerSerializers ( serializerRegistry ) ;

 TaskHistoryRepository taskHistoryRepository = new CacheBackedTaskHistoryRepository ( cacheAccess ,
 new CacheBackedFileSnapshotRepository ( cacheAccess ,


<nb> public interface FieldMapper < T > extends Mapper {
 }

 public Names ( String name , String indexName , String indexNameClean , String fullName , @ nullable String sourcePath ) {
 - this . name = name . intern ( ) ;
 - this . indexName = indexName . intern ( ) ;
 - this . indexNameClean = indexNameClean . intern ( ) ;
 - this . fullName = fullName . intern ( ) ;
 - this . sourcePath = sourcePath == null ? this . fullName : sourcePath . intern ( ) ;
 + this . name = name ;
 + this . indexName = indexName ;
 + this . indexNameClean = indexNameClean ;
 + this . fullName = fullName ;
 + this . sourcePath = sourcePath == null ? this . fullName : sourcePath ;
 }

 COMMENT

Remove intern calls on FieldMapper Names


<nb> public class MetaDataSerializer extends EntitySerializer {
 local . append ( STRING0 ) ;
 foreign . append ( STRING0 ) ;
 }
 - local . append ( namingStrategy . getPropertyName ( foreignKey . getForeignColumns ( ) . get ( NUMBER0 ) , model ) ) ;
 - foreign . append ( STRING1 + foreignKey . getParentColumns ( ) . get ( NUMBER0 ) + STRING1 ) ;
 + local . append ( namingStrategy . getPropertyName ( foreignKey . getForeignColumns ( ) . get ( i ) , model ) ) ;
 + foreign . append ( STRING1 + foreignKey . getParentColumns ( ) . get ( i ) + STRING1 ) ;
 }
 value . append ( STRING2 + local + STRING3 + foreign + STRING4 ) ;
 }


<nb> public class FileSystemUtilsIntegrationTest {
 final Runnable writer = new Runnable ( ) {
 @ override
 public void run ( ) {
 - FileOutStream os = null ;
 try {
 - os = sFileSystem . createFile ( uri , sWriteBoth ) ;
 + FileOutStream os = sFileSystem . createFile ( uri , sWriteBoth ) ;
 boolean completed = sFileSystem . getStatus ( uri ) . isCompleted ( ) ;
 Assert . assertFalse ( completed ) ;
 for ( int i = NUMBER0 ; i < numWrites ; i ++ ) {
 <nb> public class FileSystemUtilsIntegrationTest {
 final Runnable writer = new Runnable ( ) {
 @ override
 public void run ( ) {
 - FileOutStream os = null ;
 try {
 - os = sFileSystem . createFile ( uri , sWriteBoth ) ;
 + FileOutStream os = sFileSystem . createFile ( uri , sWriteBoth ) ;
 boolean completed = sFileSystem . getStatus ( uri ) . isCompleted ( ) ;
 Assert . assertFalse ( completed ) ;
 SINGLE

SMALLFIX Removed redundant initializers in FileSystemUtilsIntegrationTest


<nb> public class AbstractViolationReporterTest extends BaseCheckTestSupport
 LocalizedMessages collector = new LocalizedMessages ( ) ;
 emptyCheck . setMessages ( collector ) ;

 - emptyCheck . log ( NUMBER0 , STRING0 , null ) ;
 + emptyCheck . log ( NUMBER0 , STRING0 ) ;

 LocalizedMessage [ ] messages = collector . getMessages ( ) ;
 Assert . assertTrue ( messages . length == NUMBER1 ) ;


<nb> public class ExtensionPointImpl < T > implements ExtensionPoint < T > {
 }
 }
 internalRegisterExtension ( extension , new ObjectComponentAdapter ( extension , order ) , index , true ) ;
 - clearCache ( ) ;
 }
 else {
 myExtensionAdapters . add ( new ObjectComponentAdapter ( extension , order ) ) ;
 processAdapters ( ) ;
 }
 + clearCache ( ) ;
 }

 private void internalRegisterExtension ( T extension , ExtensionComponentAdapter adapter , int index , boolean runNotifications ) {

any extension modification should clear the cache


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HtmlUnknownBooleanAttributeInspectionBase extends HtmlUnknownElemen
 }

 XmlAttributeDescriptor attributeDescriptor = elementDescriptor . getAttributeDescriptor ( attribute ) ;
 - if ( attributeDescriptor != null ) {
 + if ( attributeDescriptor != null && ! ( attributeDescriptor instanceof AnyXmlAttributeDescriptor ) ) {
 String name = attribute . getName ( ) ;
 if ( ! HtmlUtil . isBooleanAttribute ( attributeDescriptor , null ) && ( ! isCustomValuesEnabled ( ) || ! isCustomValue ( name ) ) ) {
 LocalQuickFix [ ] quickFixes = new LocalQuickFix [ ] {

ignore AnyAttributeDescriptors in inspection


<nb> public class MavenRunnerSettings implements Cloneable {
 @ nonnls public static final String USE_INTERNAL_JAVA = STRING0 ;
 @ nonnls public static final String USE_JAVA_HOME = STRING1 ;

 - private boolean runMavenInBackground = false ;
 + private boolean runMavenInBackground = true ;
 @ notnull private String jreName = STRING2 ;
 @ notnull private String vmOptions = STRING2 ;
 private boolean skipTests = false ;


<nb> public class BugReproductionControllerDocTesterTest extends NinjaDocTester {
 @ test
 public void testThatBug157IsFixedTest1 ( ) {

 - Response response
 + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 + Response response
 = makeRequest ( Request . GET ( ) . url ( testServerUrl ( ) . path ( GET_TEST_AGAINST_BUG_157_TEST_1 ) ) ) ;

 - assertThat ( response . payload , equalTo ( STRING0 ) ) ;
 + assertThat ( response . payload , equalTo ( STRING0 ) ) ;
 + }

 }

 @ test
 public void testThatBug157IsFixedTest2 ( ) {

 - Response response
 + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 + Response response
 = makeRequest ( Request . GET ( ) . url ( testServerUrl ( ) . path ( GET_TEST_AGAINST_BUG_157_TEST_2 ) ) ) ;

 - assertThat ( response . payload , equalTo ( STRING0 ) ) ;
 + assertThat ( response . payload , equalTo ( STRING0 ) ) ;
 + }

 }

Added more than one request just to make sure it works


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class DefaultInitialDirContextFactory implements InitialDirContextFactory , MessageSourceAware , ContextSource {
 + public class DefaultInitialDirContextFactory implements InitialDirContextFactory , MessageSourceAware {
 SINGLE

 private static final Log logger = LogFactory . getLog ( DefaultInitialDirContextFactory . class ) ;

Remoned unnecessary declaration of ContextMapper interface


<nb> public class StoreMigrator
 migratePropertyIndexes ( neoStore . getPropertyStore ( ) . getIndexStore ( ) ) ;
 legacyStore . getPropertyStoreReader ( ) . close ( ) ;
 migrateRelationshipTypes ( neoStore . getRelationshipTypeStore ( ) ) ;
 - SINGLE
 legacyStore . close ( ) ;
 }

 <nb> public class StoreMigrator
 }
 propIndexStore . updateRecord ( record ) ;
 }
 -
 - private void migrateIdGenerators ( NeoStore neoStore ) throws IOException
 - {
 - String [ ] idGeneratorSuffixes = new String [ ] { STRING0 , STRING1 } ;
 - for ( String suffix : idGeneratorSuffixes )
 - {
 - FileUtils . copyFile ( new File ( legacyStore . getStorageFileName ( ) + suffix ) ,
 - new File ( neoStore . getStorageFileName ( ) + suffix ) ) ;
 - }
 - }
 }
 }


<nb> public class ConnectivityManager {

 COMMENT
 public static final int ERROR_HARDWARE_UNSUPPORTED = - NUMBER0 ;
 + COMMENT
 + public static final int ERROR_HARDWARE_ERROR = - NUMBER1 ;

 public static final int NATT_PORT = NUMBER2 ;

Add an error code for generic hardware error


<nb> public class WordPressDB {
 }
 }

 + public Theme getCurrentTheme ( String blogId ) {
 + String currentThemeId = getCurrentThemeId ( blogId ) ;
 +
 + return getTheme ( blogId , currentThemeId ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 }

 setContentView ( R . layout . theme_browser_activity ) ;
 + setCurrentThemeFromDB ( ) ;

 if ( savedInstanceState == null ) {
 AnalyticsUtils . trackWithCurrentBlogDetails ( AnalyticsTracker . Stat . THEMES_ACCESSED_THEMES_BROWSER ) ;
 <nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 showToolbar ( ) ;
 }

 + private void setCurrentThemeFromDB ( ) {
 + mCurrentTheme = WordPress . wpDB . getCurrentTheme ( getBlogId ( ) ) ;
 + }
 +
 @ override
 public void finish ( ) {
 super . finish ( ) ;

getting current theme from db onCreate of ThemeBrowserActivity


<nb> public class ProcessGroup {
 if ( logger . isDebugEnabled ( ) ) logger . debug ( STRING0 + command ) ;
 final StringWriter writer = new StringWriter ( ) ;

 - logger . debug ( STRING1 ) ;
 Process filter = Runtime . getRuntime ( ) . exec ( command ) ;
 - logger . debug ( STRING2 ) ;
 BufferedWriter bufferedWriter = new BufferedWriter ( new OutputStreamWriter ( filter . getOutputStream ( ) ) ) ;
 - logger . debug ( STRING3 ) ;
 copy ( car , bufferedWriter ) ;
 bufferedWriter . close ( ) ;
 - logger . debug ( STRING4 ) ;

 final BufferedReader reader = new BufferedReader ( new InputStreamReader ( filter . getInputStream ( ) ) ) ;
 - logger . debug ( STRING5 ) ;
 copy ( reader , writer ) ;
 writer . close ( ) ;
 - logger . debug ( STRING6 ) ;

 lastCommand = command ;
 return writer ;


<nb> public class GPXUtilities {
 }
 }

 - public static class Extensions extends GPXExtensions {
 -
 - }
 -
 public static class GPXFile extends GPXExtensions {
 public String author ;
 public List < Track > tracks = new ArrayList < Track > ( ) ;
 <nb> public class GPXUtilities {
 WptPt wptPt = parseWptAttributes ( parser ) ;
 points . add ( wptPt ) ;
 parserState . push ( wptPt ) ;
 - } else if ( tag . equals ( STRING0 ) ) {
 - Extensions ext = new Extensions ( ) ;
 - parserState . push ( ext ) ;
 }
 }

Fix GPSUtilities after refactoring cloudmade was not working


<nb> public class CommandUsageBox extends StyledFragment {
 contents . newLine ( ) ;

 if ( description . getHelp ( ) != null ) {
 - contents . createFragment ( Style . YELLOW_DARK ) . append ( description . getHelp ( ) ) ;
 + contents . append ( description . getHelp ( ) ) ;
 } else if ( description . getShortDescription ( ) != null ) {
 contents . append ( description . getShortDescription ( ) ) ;
 } else {

Removed gold color from CommandUsageBox for command help


<nb> public final class MostAvailableFirstPolicy implements FileWriteLocationPolicy {

 @ override
 public boolean equals ( Object o ) {
 - if ( this == o ) {
 - return true ;
 - }
 - if ( ! ( o instanceof MostAvailableFirstPolicy ) ) {
 - return false ;
 - }
 - return true ;
 + return this == o || o instanceof MostAvailableFirstPolicy ;
 }

 @ override

SMALLFIX Simplified equals implementation of MostAvailableFirstPolicy


<nb> public final class ActiveDirectoryLdapAuthenticationProvider extends AbstractLda
 COMMENT
 COMMENT
 COMMENT
 - public ActiveDirectoryLdapAuthenticationProvider ( String rootDn , String domain , String url ) {
 + public ActiveDirectoryLdapAuthenticationProvider ( String domain , String url , String rootDn ) {
 Assert . isTrue ( StringUtils . hasText ( url ) , STRING0 ) ;
 this . domain = StringUtils . hasText ( domain ) ? domain . toLowerCase ( ) : null ;
 - this . rootDn = StringUtils . hasText ( rootDn ) ? rootDn . toLowerCase ( ) : null ;
 this . url = url ;
 + this . rootDn = StringUtils . hasText ( rootDn ) ? rootDn . toLowerCase ( ) : null ;
 }

 COMMENT
 <nb> public class ActiveDirectoryLdapAuthenticationProviderTests {

 @ test
 public void rootDnProvidedSeparatelyFromDomainAlsoWorks ( ) throws Exception {
 - ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider ( STRING1 , STRING2 , STRING3 ) ;
 + ActiveDirectoryLdapAuthenticationProvider provider = new ActiveDirectoryLdapAuthenticationProvider ( STRING2 , STRING3 , STRING1 ) ;
 checkAuthentication ( STRING1 , provider ) ;

 }


<nb> public class SemanticAnalyzer extends BaseSemanticAnalyzer {
 partSpec ) ;
 outputs . add ( new WriteEntity ( p , false ) ) ;
 } catch ( HiveException e ) {
 - throw new SemanticException ( e . getMessage ( ) ) ;
 + throw new SemanticException ( e . getMessage ( ) , e ) ;
 }
 }
 }
 <nb> public class SemanticAnalyzer extends BaseSemanticAnalyzer {
 . getFieldObjectInspector ( ) ) , STRING0 , false ) ) ;
 }
 } catch ( Exception e ) {
 - throw new SemanticException ( e . getMessage ( ) ) ;
 + throw new SemanticException ( e . getMessage ( ) , e ) ;
 }

 RowSchema fsRS = new RowSchema ( vecCol ) ;

SemanticAnalyzer twice swallows an exception it shouldn t jghoman via hashutosh


<nb> public class VolumeTest {

 }

 + COMMENT
 @ test public void direct_bb_overallocate ( ) {
 Volume vol = new Volume . MemoryVol ( true , CC . VOLUME_PAGE_SHIFT ) ;
 try {
 <nb> public class VolumeTest {
 }
 vol . close ( ) ;
 }
 + COMMENT

 }


<nb> public class EdgeDataImpl implements EdgeData , DynamicData {
 protected Edge edge ;
 protected LayoutData layoutData ;
 protected String label = STRING0 ;
 + protected String id = STRING0 ;
 protected float r = FLOAT0 ;
 protected float g = FLOAT0 ;
 protected float b = FLOAT0 ;
 <nb> public class EdgeDataImpl implements EdgeData , DynamicData {
 this . dynamicRangeFrom = from ;
 this . dynamicRangeTo = to ;
 }
 +
 + public void setId ( String id ) {
 + this . id = id ;
 + }
 +
 + public String getId ( ) {
 + return id ;
 + }
 }
 <nb> public interface EdgeData extends Renderable {

 public NodeData getTarget ( ) ;

 + public String getId ( ) ;
 +
 + public void setId ( String id ) ;
 +
 public String getLabel ( ) ;

 public LayoutData getLayoutData ( ) ;


<nb> public final class Constants {
 public static final String Package = STRING0 ;

 public static final long DEFAULT_THREAD_RENEWAL_DELAY = NUMBER0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final boolean IS_SECURITY_ENABLED = ( System . getSecurityManager ( ) != null ) ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT


<nb>
 COMMENT
 package NAMESPACE ;

 - import static NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import static NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Main {
 private static final class ParsedOptions {
 ServerEnvironment environment ;
 List < String > clientArguments ;
 - String hostUrl = STRING0 ;
 + SINGLE
 + String hostUrl = STRING1 ;
 String propertiesFile ;
 }
 }

Change the default host url to use http remoting protocol


<nb> public class Grid extends Wrapper implements Disposable , CellTransform . Facade , D

 public void updateGridUI ( ) {
 for ( final GridCell cell : myPlaceInGrid2Cell . values ( ) ) {
 - cell . setHideTabs ( myContents . size ( ) == NUMBER0 && ! cell . isDetached ( ) ) ;
 + cell . setHideTabs ( myContents . size ( ) == NUMBER0 && ! cell . isDetached ( ) && ! getTab ( ) . isDefault ( ) ) ;
 }
 }

 <nb> public class NewDebuggerContentUI
 }

 - tab . setText ( title ) . setIcon ( icon ) ;
 + tab . setText ( title ) . setIcon ( grid . getTab ( ) . isDefault ( ) ? null : icon ) ;
 }

 private void restoreLastUiState ( ) {

the last not tabbed view has Debugger tab without detach button


<nb>
 COMMENT
 COMMENT
 COMMENT
 -
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> public class Ping
 private static final int WARMUP_NUMBER_OF_ITERATIONS = ExampleConfiguration . WARMUP_NUMBER_OF_ITERATIONS ;
 private static final int MESSAGE_LENGTH = ExampleConfiguration . MESSAGE_LENGTH ;
 private static final int FRAGMENT_COUNT_LIMIT = ExampleConfiguration . FRAGMENT_COUNT_LIMIT ;
 - private static final long LINGER_TIMEOUT_MS = ExampleConfiguration . LINGER_TIMEOUT_MS ;
 private static final boolean EMBEDDED_MEDIA_DRIVER = ExampleConfiguration . EMBEDDED_MEDIA_DRIVER ;

 private static final AtomicBuffer ATOMIC_BUFFER = new AtomicBuffer ( ByteBuffer . allocateDirect ( MESSAGE_LENGTH ) ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RecoveryWhileUnderLoadTests extends AbstractNodesTests {
 SINGLE
 startNode ( STRING0 ) ;

 + SINGLE
 + assertThat ( client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForGreenStatus ( ) . execute ( ) . actionGet ( ) . status ( ) , equalTo ( ClusterHealthStatus . GREEN ) ) ;
 +

 SINGLE
 while ( client ( STRING1 ) . prepareCount ( ) . setQuery ( matchAllQuery ( ) ) . execute ( ) . actionGet ( ) . count ( ) < NUMBER0 ) {

add a recovery test while under indexing load


<nb> public class FileListAdapter extends BaseAdapter {
 private final static int ICON_FILE = R . drawable . ic_file ;

 private List < File > mFiles = new ArrayList < File > ( ) ;
 - private LayoutInflater mInflater ;
 + private final LayoutInflater mInflater ;

 public FileListAdapter ( Context context ) {
 mInflater = LayoutInflater . from ( context ) ;
 <nb> public class FileListAdapter extends BaseAdapter {

 public void add ( File file ) {
 mFiles . add ( file ) ;
 + notifyDataSetChanged ( ) ;
 }

 public void clear ( ) {
 mFiles . clear ( ) ;
 + notifyDataSetChanged ( ) ;
 }

 public Object getItem ( int position ) {

When clearing the array also notify the view


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public class ExtensionManager {
 public synchronized void requestAction ( ComponentName extension , Episode episode ) {
 mContext . startService ( new Intent ( IncomingConstants . ACTION_UPDATE )
 . setComponent ( extension )
 + . putExtra ( IncomingConstants . EXTRA_ENTITY_IDENTIFIER , episode . getTvdbId ( ) )
 . putExtra ( IncomingConstants . EXTRA_EPISODE , episode . toBundle ( ) ) ) ;
 }

Send episode TVDb id as unique identifier


<nb> public class GrailsResourceLoaderFactoryBean implements FactoryBean < GrailsResour
 }

 public void afterPropertiesSet ( ) throws Exception {
 - resourceLoader = Holders . getResourceLoader ( true ) ;
 + resourceLoader = GrailsResourceLoaderHolder . getResourceLoader ( ) ;
 if ( resourceLoader != null ) {
 return ;
 }
 <nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class GrailsResourceLoaderHolder {

 + private static GrailsResourceLoader resourceLoader ;
 +
 public static synchronized GrailsResourceLoader getResourceLoader ( ) {
 - return Holders . getResourceLoader ( ) ;
 + return resourceLoader ;
 }

 public static synchronized void setResourceLoader ( GrailsResourceLoader resourceLoader ) {
 - Holders . setResourceLoader ( resourceLoader ) ;
 + GrailsResourceLoaderHolder . resourceLoader = resourceLoader ;
 }
 }

also reverted use of Holder for ResourceLoader since the classloader changes between initial set and later gets


<nb> public class Presence extends BaseModule {
 }

 public void run ( ) {
 - myPresence . send ( new OwnPresenceActor . OnAppVisible ( ) ) ;
 + SINGLE
 }

 public void onAppVisible ( ) {


<nb> public class DirectoryHistoryDialog extends HistoryDialog < DirectoryHistoryDialog
 int index = NUMBER0 ;
 List < Change > changes = new ArrayList < Change > ( ) ;
 for ( DirectoryChange change : iterFileChanges ( ) ) {
 - changes . add ( change ) ;
 if ( selectedSet . contains ( change ) ) index = changes . size ( ) ;
 + changes . add ( change ) ;
 }

 ShowDiffAction . showDiffForChange ( myProject , changes , index , new ShowDiffContext ( DiffDialogHints . FRAME ) ) ;


<nb> public class CommentsListFragment extends ListFragment {
 private XMLRPCClient client ;
 private String accountName = STRING0 , moderateErrorMsg = STRING0 ;
 private ViewSwitcher switcher ;
 - private boolean loadMore = false , doInBackground = false , refreshOnly = false ;
 + private boolean loadMore = false , refreshOnly = false ;
 private HashSet < Integer > selectedCommentPositions = new HashSet < Integer > ( ) ;
 private Object [ ] commentParams ;
 private OnCommentSelectedListener mOnCommentSelectedListener ;
 <nb> public class CommentsListFragment extends ListFragment {
 }
 } else {
 allComments . putAll ( commentsResult ) ;
 - if ( ! doInBackground ) {
 - loadComments ( refreshOnly , loadMore ) ;
 - }
 + loadComments ( refreshOnly , loadMore ) ;
 }

 mOnAnimateRefreshButton . onAnimateRefreshButton ( false ) ;
 <nb> public class CommentsListFragment extends ListFragment {
 switcher . showPrevious ( ) ;
 }

 - if ( ! doInBackground ) {
 - showOrHideModerationBar ( ) ;
 - }
 + showOrHideModerationBar ( ) ;
 }

 @ override

Removed unused doInBackground variable it was always false


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ path ( STRING0 )
 + @ path ( STRING1 )
 @ produces ( MediaType . APPLICATION_JSON )
 public class DashboardConfigResource {

 <nb> public class DashboardConfigResource {
 @ get
 @ path ( STRING2 )
 public Map < String , Collection < String > > getDimensionValues (
 - @ pathparam ( STRING3 ) String collection , @ pathparam ( STRING4 ) long baselineMillis ,
 + @ pathparam ( STRING3 ) String collection , @ pathparam ( STRING5 ) long baselineMillis ,
 @ pathparam ( STRING6 ) long currentMillis ,
 @ defaultvalue ( DIMENSION_VALUES_OPTIONS_THRESHOLD ) @ queryparam ( STRING7 ) double contributionThreshold ,
 @ defaultvalue ( DIMENSION_VALUES_LIMIT ) @ queryparam ( STRING8 ) int dimensionValuesLimit )

change endpoint to dashboardConfig instead of


<nb> import NAMESPACE ;
 COMMENT
 public class TestHttp2Section_6_8 extends Http2TestBase {

 + private static final boolean RELAX_TIMING = Boolean . getBoolean ( STRING0 ) ;
 +
 private static final long PNG_ACK_DELAY_MS = NUMBER0 ;
 + SINGLE
 + private static final long TIMING_MARGIN_MS = RELAX_TIMING ? NUMBER1 : NUMBER2 ;

 @ test
 public void testGoawayIgnoreNewStreams ( ) throws Exception {
 <nb> public class TestHttp2Section_6_8 extends Http2TestBase {
 sendClientPreface ( ) ;
 validateHttp2InitialResponse ( ) ;

 - Thread . sleep ( PNG_ACK_DELAY_MS + NUMBER3 ) ;
 + Thread . sleep ( PNG_ACK_DELAY_MS + TIMING_MARGIN_MS ) ;

 getTomcatInstance ( ) . getConnector ( ) . pause ( ) ;

 <nb> public class TestHttp2Section_6_8 extends Http2TestBase {
 SINGLE
 sendSimpleGetRequest ( NUMBER4 ) ;

 - Thread . sleep ( PNG_ACK_DELAY_MS + NUMBER3 ) ;
 + Thread . sleep ( PNG_ACK_DELAY_MS + TIMING_MARGIN_MS ) ;

 SINGLE
 sendSimpleGetRequest ( NUMBER5 ) ;

Pull our timing margin as a constant and use the relaxTiming option


<nb> public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements ParentA
 if ( LOG . isDebugEnabled ( ) ) {
 LOG . debug ( STRING0 + event + STRING1 ) ;
 }
 -
 - getManager ( ) . informObservers ( getName ( ) , event ) ;
 }
 }

 <nb> public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements ParentA
 switch ( eventKind ) {
 case EVENT_ON_CHANGE :
 notifyOfEvent ( event ) ;
 + getManager ( ) . informObservers ( getName ( ) , event ) ;
 break ;
 case EVENT_ON_SHUTDOWN :
 invokeOnShutdownEventListener ( event ) ;

Inform observers of changes when processing the event instead of when the change is noticed


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WXListComponent extends WXVContainer implements
 } else if ( newState == RecyclerView . SCROLL_STATE_SETTLING ) {
 newState = OnWXScrollListener . SETTLING ;
 }
 - listener . onScrollStateChanged ( recyclerView , tempState , recyclerView . getScrollX ( ) , recyclerView . getScrollY ( ) ) ;
 + RecyclerView . LayoutManager layoutManager = recyclerView . getLayoutManager ( ) ;
 + LinearLayoutManager linearLayoutManager = null ;
 + int x = NUMBER0 , y = NUMBER0 ;
 + if ( layoutManager instanceof LinearLayoutManager ) {
 + linearLayoutManager = ( LinearLayoutManager ) layoutManager ;
 + }
 + if ( linearLayoutManager != null ) {
 + x = NUMBER0 ;
 + y = linearLayoutManager . findFirstVisibleItemPosition ( ) ;
 + }
 + listener . onScrollStateChanged ( recyclerView , x , y , tempState ) ;
 }
 }
 }

android update WXListComponent java recycle position


<nb> import NAMESPACE ;

 @ uriendpoint ( scheme = STRING0 , consumerClass = SparkConsumer . class , label = STRING1 )
 public class SparkEndpoint extends DefaultEndpoint {
 -
 + @ uriparam
 + SparkConfiguration sparkConfiguration ;
 @ uripath
 private String verb ;
 @ uripath
 private String path ;
 @ uriparam
 - SparkConfiguration sparkConfiguration ;
 - @ uriparam
 private SparkBinding sparkBinding ;
 @ uriparam
 private String accept ;


<nb> public class HttpSessionSecurityContextRepository implements SecurityContextRepo
 if ( ! allowSessionCreation ) {
 if ( logger . isDebugEnabled ( ) ) {
 logger . debug ( STRING0
 - + STRING1
 + + HttpSessionSecurityContextRepository . class . getSimpleName ( )
 + + STRING2
 + STRING3
 + STRING4 ) ;
 }

Corrected log in HttpSessionSecurityContextRepository to reference itself instead of HttpSessionContextIntegrationFilter


<nb> public class XbmcConnector {
 continue ;
 } else if ( property . equals ( STRING0 ) ) {
 properties . add ( property ) ;
 + } else if ( property . equals ( STRING1 ) ) {
 + properties . add ( property ) ;
 }
 }
 } else {

XBMC Add Title property to be polled as well


<nb> public class DefaultChannelPipeline implements ChannelPipeline {

 private void checkDuplicateName ( String name ) {
 if ( name2ctx . containsKey ( name ) ) {
 - throw new IllegalArgumentException ( STRING0 + name ) ;
 + throw new IllegalArgumentException ( STRING1 + name ) ;
 }
 }


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ActionMacroManager implements ExportableApplicationComponent , Named
 public void messageEdt ( PlaybackContext context , String text , Type type ) {
 if ( type == Type . message || type == Type . error ) {
 StatusBar statusBar = frame . getStatusBar ( ) ;
 - if ( context != null ) {
 - if ( statusBar != null ) statusBar . setInfo ( STRING0 + context . getCurrentLine ( ) + STRING1 + text ) ;
 - }
 - else {
 - if ( statusBar != null ) statusBar . setInfo ( text ) ;
 + if ( statusBar != null ) {
 + if ( context != null ) {
 + text = STRING0 + context . getCurrentLine ( ) + STRING1 + text ;
 + }
 + statusBar . setInfo ( text ) ;
 }
 }
 }


<nb> import NAMESPACE ;

 class DataRecord extends AbstractRecord < Data > {

 - protected Data value ;
 + protected volatile Data value ;

 DataRecord ( Data value ) {
 this . value = value ;
 <nb> import NAMESPACE ;

 class DataRecordWithStats extends AbstractRecordWithStats < Data > {

 - protected Data value ;
 + protected volatile Data value ;

 DataRecordWithStats ( ) {
 super ( ) ;
 <nb> package NAMESPACE ;

 class ObjectRecord extends AbstractRecord < Object > implements Record < Object > {

 - private Object value ;
 + private volatile Object value ;

 ObjectRecord ( ) {
 super ( ) ;
 <nb> package NAMESPACE ;

 class ObjectRecordWithStats extends AbstractRecordWithStats < Object > {

 - private Object value ;
 + private volatile Object value ;

 public ObjectRecordWithStats ( ) {
 super ( ) ;


<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 SINGLE
 socket = context . getSocketFactory ( ) . createSocket ( plain ,
 host , plain . getPort ( ) , true ) ;
 - SINGLE
 - initReaderAndWriter ( ) ;

 final SSLSocket sslSocket = ( SSLSocket ) socket ;
 + SINGLE
 + SINGLE
 + SINGLE
 TLSUtils . setEnabledProtocolsAndCiphers ( sslSocket , config . getEnabledSSLProtocols ( ) , config . getEnabledSSLCiphers ( ) ) ;

 + SINGLE
 + initReaderAndWriter ( ) ;
 +
 SINGLE
 sslSocket . startHandshake ( ) ;

Fix XMPPTCPConnection setEnabledSSL Protocols Ciphers


<nb> public class SliceArrayBlock
 static int getSliceArrayRetainedSizeInBytes ( Slice [ ] values )
 {
 long sizeInBytes = SizeOf . sizeOf ( values ) ;
 - Map < Object , Boolean > uniqueRetained = new IdentityHashMap < > ( ) ;
 + Map < Object , Boolean > uniqueRetained = new IdentityHashMap < > ( values . length ) ;
 for ( Slice value : values ) {
 if ( value != null && value . getBase ( ) != null && uniqueRetained . put ( value . getBase ( ) , true ) == null ) {
 sizeInBytes += value . getRetainedSize ( ) ;

Avoid resizing IdentityHashMap in SliceArrayBlock


<nb> public class TableConverter {
 if ( e . getCause ( ) instanceof NullPointerException ) {
 throw new CucumberException ( String . format ( STRING0 , e . get ( STRING1 ) ) ) ;
 } else {
 - throw e ;
 + throw new CucumberException ( e ) ;
 }
 }
 }

wrapping unrecognized XStream ConversionException in CucumberException


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class ServerImpl extends AbstractService implements Server {
 this . listener = listener ;
 }

 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private void internalClose ( Status status , Metadata . Trailers trailers ) {
 SINGLE
 stream . close ( status , trailers ) ;
 <nb> public class ServerImpl extends AbstractService implements Server {
 } ) ;
 }

 + @ override
 public void halfClosed ( ) {
 callExecutor . execute ( new Runnable ( ) {
 @ override


<nb> public class SqlQueryManager

 SINGLE
 if ( ! queryStarter . submit ( queryExecution ) ) {
 - return createFailedQuery ( session , query , queryId , new PrestoException ( QUERY_QUEUE_FULL , STRING0 ) ) ;
 + queryExecution . fail ( new PrestoException ( QUERY_QUEUE_FULL , STRING0 ) ) ;
 }

 return queryExecution . getQueryInfo ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public abstract class LibraryRootsComponentDescriptor {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ notnull
 - public List < ? extends RootDetector > getRootDetectors ( ) {
 - return Collections . emptyList ( ) ;
 - }
 + public abstract List < ? extends RootDetector > getRootDetectors ( ) ;

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class RootDetector {
 - private OrderRootType myRootType ;
 - private boolean myJarDirectory ;
 - private String myPresentableRootTypeName ;
 + private final OrderRootType myRootType ;
 + private final boolean myJarDirectory ;
 + private final String myPresentableRootTypeName ;

 protected RootDetector ( OrderRootType rootType , boolean jarDirectory , String presentableRootTypeName ) {
 myRootType = rootType ;

implemented automatic root detection for javascript libraries to fix exception


<nb> public class StartConversationActivity extends XmppActivity implements OnRosterU

 private boolean handleJid ( Invite invite ) {
 Account account = xmppConnectionService . findAccountByJid ( invite . getJid ( ) ) ;
 - if ( account != null && invite . hasFingerprints ( ) ) {
 + if ( account != null && ! account . isOptionSet ( Account . OPTION_DISABLED ) && invite . hasFingerprints ( ) ) {
 if ( xmppConnectionService . verifyFingerprints ( account , invite . getFingerprints ( ) ) ) {
 switchToAccount ( account ) ;
 finish ( ) ;

don t use xmpp uri for self verification if account is disabled


<nb> public class RobolectricGradleTestRunner extends RobolectricTestRunner {
 final FileFsFile assets ;
 final FileFsFile manifest ;

 - SINGLE
 - if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 ) . exists ( ) ) {
 + if ( FileFsFile . from ( BUILD_OUTPUT , STRING2 ) . exists ( ) ) {
 + SINGLE
 + SINGLE
 + res = FileFsFile . from ( BUILD_OUTPUT , STRING2 , flavor , type ) ;
 + } else if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 ) . exists ( ) ) {
 + SINGLE
 res = FileFsFile . from ( BUILD_OUTPUT , STRING0 , STRING1 , flavor , type ) ;
 } else if ( FileFsFile . from ( BUILD_OUTPUT , STRING0 ) . exists ( ) ) {
 res = FileFsFile . from ( BUILD_OUTPUT , STRING0 , flavor , type ) ;

Fix databinding with android gradle plugin


<nb> public class UsageStatsService extends SystemService implements
 mPowerManager = getContext ( ) . getSystemService ( PowerManager . class ) ;

 mScreenOnSystemTimeSnapshot = System . currentTimeMillis ( ) ;
 - synchronized ( this ) {
 + synchronized ( mLock ) {
 mScreenOnTime = readScreenOnTimeLocked ( ) ;
 }
 mDisplayManager . registerDisplayListener ( mDisplayListener , mHandler ) ;
 - synchronized ( this ) {
 + synchronized ( mLock ) {
 updateDisplayLocked ( ) ;
 }
 } else if ( phase == PHASE_BOOT_COMPLETED ) {

Use correct lock for reading writing usage stats files


<nb> public class KeyguardWidgetPager extends PagedView implements PagedView . PageSwit
 currentPage . setPivotX ( NUMBER0 ) ;
 currentPage . setPivotX ( currentPage . getMeasuredWidth ( ) / NUMBER1 ) ;
 }
 - if ( ! ( currentPage . getScaleX ( ) < FLOAT0 || currentPage . getScaleY ( ) < FLOAT0 ) ) {
 + if ( currentPage != null && ( ! ( currentPage . getScaleX ( ) < FLOAT0 || currentPage . getScaleY ( ) < FLOAT0 ) ) ) {
 mZoomInOutAnim = new AnimatorSet ( ) ;
 mZoomInOutAnim . playTogether (
 ObjectAnimator . ofFloat ( currentPage , STRING0 , BOUNCER_SCALE_FACTOR ) ,


<nb> public class Dependencies {
 DiType typeToInitialize = InjectorGeneratorUtil . getEffectiveFieldType ( field ) ;

 SINGLE
 - List < Method > declaredMethods = Lists . newArrayList ( typeToInitialize . getClazz ( ) . getDeclaredMethods ( ) ) ;
 + List < Method > declaredMethods = Lists . newArrayList ( typeToInitialize . getClazz ( ) . getMethods ( ) ) ;
 Collections . sort ( declaredMethods , new Comparator < Method > ( ) {
 @ override
 public int compare ( @ notnull Method o1 , @ notnull Method o2 ) {


<nb> public class DebuggerUtilsImpl extends DebuggerUtilsEx {
 if ( ProgressIndicatorUtils . runInReadActionWithWriteActionPriority ( ( ) - > res . set ( action . compute ( ) ) ) ) {
 return res . get ( ) ;
 }
 + try {
 + SINGLE
 + Thread . sleep ( NUMBER0 ) ;
 + }
 + catch ( InterruptedException e ) {
 + Thread . currentThread ( ) . interrupt ( ) ;
 + return null ;
 + }
 }
 }
 }

early cancel and restart debugger read actions added a delay between iterations


<nb> public class AdvancedDemoActivity extends BaseActivity implements
 setContentView ( R . layout . activity_advanced_demo ) ;
 mViews = new ViewHolder ( this ) ;

 + mSettingsMenu = new GestureSettingsMenu ( ) ;
 + mSettingsMenu . onRestoreInstanceState ( savedInstanceState ) ;
 +
 setSupportActionBar ( mViews . toolbar ) ;
 getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ;

 <nb> public class AdvancedDemoActivity extends BaseActivity implements
 initPager ( ) ;
 initAnimator ( ) ;

 - mSettingsMenu = new GestureSettingsMenu ( ) ;
 - mSettingsMenu . onRestoreInstanceState ( savedInstanceState ) ;
 -
 if ( mPagerPhotoPosition != - NUMBER0 ) {
 SINGLE
 onPositionUpdate ( FLOAT0 , false ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GitVcs extends AbstractVcs {
 COMMENT
 COMMENT
 public void showCommandLine ( final String cmdLine ) {
 - showMessage ( cmdLine , ConsoleViewContentType . SYSTEM_OUTPUT . getAttributes ( ) ) ;
 + SimpleDateFormat f = new SimpleDateFormat ( STRING0 ) ;
 + showMessage ( f . format ( new Date ( ) ) + STRING1 + cmdLine , ConsoleViewContentType . SYSTEM_OUTPUT . getAttributes ( ) ) ;
 }

 COMMENT
 <nb> public abstract class GitHandler {
 try {
 SINGLE
 if ( ! myProject . isDefault ( ) && ! mySilent ) {
 + myVcs . showCommandLine ( STRING2 + myWorkingDirectory ) ;
 myVcs . showCommandLine ( printableCommandLine ( ) ) ;
 }
 if ( log . isDebugEnabled ( ) ) {

Added tracking and working directory and time for the commands


<nb> public final class AndroidGraphicsLiveWallpaper implements Graphics , Renderer {
 synchronized ( synch ) {
 running = true ;
 resume = true ;
 + while ( resume ) {
 + try {
 + synch . wait ( ) ;
 + } catch ( InterruptedException ignored ) {
 + Gdx . app . log ( STRING0 , STRING1 ) ;
 + }
 + }
 }
 }

 <nb> public final class AndroidGraphicsLiveWallpaper implements Graphics , Renderer {

 if ( resume ) {
 resume = false ;
 + synch . notifyAll ( ) ;
 }

 if ( pause ) {

added synchronization to AndroidGraphicsLiveWallpaper resume as in


<nb> public class ClientCloseTest
 SINGLE
 clientSocket . assertReceivedCloseEvent ( timeout ,
 anyOf ( is ( StatusCode . SHUTDOWN ) , is ( StatusCode . ABNORMAL ) ) ,
 - anyOf ( containsString ( STRING0 ) , containsString ( STRING1 ) ) ) ;
 + anyOf ( containsString ( STRING0 ) , containsString ( STRING2 ) , containsString ( STRING1 ) ) ) ;
 }

 @ test

Allowing alternate timeout check in testcase


<nb> public class DRFV2 extends SharedTreeV2 < DRF , DRFV2 , DRFV2 . DRFParametersV2 > {
 static public String [ ] own_fields = new String [ ] {
 STRING0 ,
 STRING1 ,
 - STRING2 ,
 STRING3
 } ;

 SINGLE
 - @ api ( help = STRING4 )
 + @ api ( help = STRING5 )
 public int mtries ;

 @ api ( help = STRING6 )
 public float sample_rate ;

 - @ api ( help = STRING7 )
 - public boolean do_grpsplit ;
 -
 @ api ( help = STRING8 )
 public boolean build_tree_one_node ;
 }

Fix DRFParametersV2 remove unused do_grpsplit argument


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class ReplayingDecoder < T extends Enum < T > >
 private ReplayingDecoderBuffer replayable ;
 private T state ;
 private int checkpoint ;
 + private boolean needsCleanup ;
 +

 COMMENT
 COMMENT
 <nb> public abstract class ReplayingDecoder < T extends Enum < T > >
 return ;
 }

 + needsCleanup = true ;
 +
 if ( cumulation == null ) {
 SINGLE
 SINGLE
 <nb> public abstract class ReplayingDecoder < T extends Enum < T > >
 throws Exception {
 try {
 ChannelBuffer cumulation = this . cumulation ;
 - if ( cumulation == null ) {
 + if ( ! needsCleanup ) {
 return ;
 + } else {
 + needsCleanup = false ;
 }

 this . cumulation = null ;

Make sure we always cleanup once ReplayingDecoder handles a message


<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
 cfg = super . getDatabaseConfiguration ( iDatabaseName ) ;
 SINGLE
 distributedConfiguration . put ( STRING0 + iDatabaseName , cfg ) ;
 + } else {
 + SINGLE
 + saveDatabaseConfiguration ( iDatabaseName , cfg ) ;
 }
 return cfg ;
 }

Changed configuration to stay in a separate JSON file called default distributed db


<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
 protected boolean attachSources ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 protected Proguard proguard ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add documentation for the ProGuard goal and configuration


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractDiagnosticsTestWithEagerResolve extends AbstractJe
 ok &= testFile . getActualText ( bindingContext , actualText ) ;
 }

 - assertSameLinesWithFile ( testDataFile . getAbsolutePath ( ) , actualText . toString ( ) ) ;
 + JetTestUtils . assertEqualsToFile ( testDataFile , actualText . toString ( ) ) ;

 assertTrue ( STRING0 , ok ) ;
 }


<nb> public class IndentOptionsDetectorImpl implements IndentOptionsDetector {
 public IndentOptions getIndentOptions ( ) {
 IndentOptions indentOptions = ( IndentOptions ) CodeStyleSettingsManager . getSettings ( myProject ) . getIndentOptions ( myFile . getFileType ( ) ) . clone ( ) ;

 - long start = System . currentTimeMillis ( ) ;
 List < LineIndentInfo > linesInfo = calcLineIndentInfo ( ) ;
 - long end = System . currentTimeMillis ( ) ;
 - LOG . info ( STRING0 + myUseFormatterBasedLineIndentBuilder + STRING1 + ( end - start ) ) ;
 -
 if ( linesInfo != null ) {
 IndentUsageStatistics stats = new IndentUsageStatisticsImpl ( linesInfo ) ;
 adjustIndentOptions ( indentOptions , stats ) ;


<nb> public final class Period
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Period
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class NetworkCapabilities implements Parcelable {
 COMMENT
 COMMENT
 public NetworkCapabilities ( ) {
 + clearAll ( ) ;
 + mNetworkCapabilities =
 + ( NUMBER0 < < NET_CAPABILITY_NOT_RESTRICTED ) |
 + ( NUMBER0 < < NET_CAPABILITY_TRUSTED ) |
 + ( NUMBER0 < < NET_CAPABILITY_NOT_VPN ) ;
 }

 public NetworkCapabilities ( NetworkCapabilities nc ) {
 <nb> public final class NetworkCapabilities implements Parcelable {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void clearAll ( ) {
 + mNetworkCapabilities = mTransportTypes = NUMBER1 ;
 + mLinkUpBandwidthKbps = mLinkDownBandwidthKbps = NUMBER1 ;
 + mNetworkSpecifier = null ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 - private long mNetworkCapabilities = ( NUMBER0 < < NET_CAPABILITY_NOT_RESTRICTED ) |
 - ( NUMBER0 < < NET_CAPABILITY_TRUSTED ) | ( NUMBER0 < < NET_CAPABILITY_NOT_VPN ) ;
 + private long mNetworkCapabilities ;

 COMMENT
 COMMENT

Add a hidden method to clear NetworkCapabilities


<nb> public final class UpgradeService {

 if ( from >= V4_2_0 && from < V4_2_5 ) {
 newVersionString ( changeLog , STRING0 , new String [ ] {
 - STRING1 ,
 - STRING2 ,
 - STRING3 ,
 - STRING4 ,
 - STRING5 ,
 + STRING6 ,
 + STRING7 ,
 + STRING8 ,
 STRING9 ,
 - STRING10
 + STRING11
 } ) ;
 }


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
 }

 public void updateFooter ( final String message , final boolean showProgress ) {
 - SINGLE
 post ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - updateFooter ( message , showProgress ) ;
 + MessageListFragment . this . updateFooter ( message , showProgress ) ;
 }
 } ) ;
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class HandleStop implements DaemonCommandAction {
 immediately tear down the client connection and remove the daemon from the registry .
 COMMENT
 execution . getDaemonStateControl ( ) . requestForcefulStop ( ) ;
 + execution . getConnection ( ) . dispatch ( new Success ( null ) ) ;
 } else {
 execution . proceed ( ) ;
 }

Send a Success message back to client when handling a Stop request


<nb> public class HeartbeatInterceptor extends AtmosphereInterceptorAdapter {
 @ override
 public Action inspect ( final AtmosphereResource r ) {

 + if ( Utils . webSocketMessage ( r ) ) return Action . CONTINUE ;
 +
 final int interval = extractHeartbeatInterval ( r ) ;

 if ( interval != NUMBER0 ) {

Do not associate a heartbeat with a websocket message


<nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 ! renderer . startsWith ( kMSM7K_RENDERER_PREFIX ) ;
 notifyAll ( ) ;
 }
 - mLimitedGLESContexts = ! mMultipleGLESContextsAllowed || renderer . startsWith ( kADRENO ) ;
 + mLimitedGLESContexts = ! mMultipleGLESContextsAllowed ;
 if ( LOG_SURFACE ) {
 Log . w ( TAG , STRING0 + renderer + STRING1
 + mMultipleGLESContextsAllowed
 <nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private boolean mGLESVersionCheckComplete ;
 private int mGLESVersion ;
 private boolean mGLESDriverCheckComplete ;
 <nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
 private static final int kGLES_20 = NUMBER0 ;
 private static final String kMSM7K_RENDERER_PREFIX =
 STRING2 ;
 - private static final String kADRENO = STRING3 ;
 private GLThread mEglOwner ;
 }

Remove EGL context limit for Adreno GPUs


<nb> public class MockitoPostProcessor extends InstantiationAwareBeanPostProcessorAda

 private void registerSpies ( SpyDefinition definition , Field field ,
 String [ ] existingBeans ) {
 - if ( field != null ) {
 - Assert . state ( field == null || existingBeans . length == NUMBER0 ,
 - STRING0 + definition . getClassToSpy ( ) . getName ( )
 - + STRING1
 - + new TreeSet < String > ( Arrays . asList ( existingBeans ) ) ) ;
 - }
 + Assert . state ( field == null || existingBeans . length == NUMBER0 ,
 + STRING0 + definition . getClassToSpy ( ) . getName ( )
 + + STRING1
 + + new TreeSet < String > ( Arrays . asList ( existingBeans ) ) ) ;
 for ( String beanName : existingBeans ) {
 registerSpy ( definition , field , beanName ) ;
 }

Remove superflous if in MockitoPostProcessor


<nb>
 package NAMESPACE ;
 -
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class EditPoiDialogFragment extends DialogFragment {
 . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_ADJUST_RESIZE ) ;
 }

 - @ targetapi ( Build . VERSION_CODES . HONEYCOMB )
 @ override
 public View onCreateView ( LayoutInflater inflater , ViewGroup container ,
 Bundle savedInstanceState ) {
 <nb> public class EditPoiDialogFragment extends DialogFragment {
 . setNegativeButton ( R . string . shared_string_cancel , null ) ;
 return builder . create ( ) ;
 }
 - }
 + }

 private TextView . OnEditorActionListener mOnEditorActionListener =
 new TextView . OnEditorActionListener ( ) {


<nb> public class BarrierBuffer {
 LOG . debug ( STRING0 ) ;
 }

 - if ( currentSuperstep != null ) {
 + if ( currentSuperstep != null && ! inputFinished ) {
 reader . publish ( currentSuperstep ) ;
 }

streaming Minor bugfix in the BarrierBuffer input finishing logic


<nb> public class EditSession {
 COMMENT
 private void makePumpkinPatch ( Vector basePos )
 throws MaxChangedBlocksException {
 - BaseBlock logBlock = new BaseBlock ( NUMBER0 ) ;
 + SINGLE
 BaseBlock leavesBlock = new BaseBlock ( NUMBER1 ) ;

 - setBlock ( basePos . subtract ( NUMBER2 , NUMBER3 , NUMBER2 ) , logBlock ) ;
 + SINGLE
 setBlockIfAir ( basePos , leavesBlock ) ;

 makePumpkinPatchVine ( basePos , basePos . add ( NUMBER2 , NUMBER2 , NUMBER3 ) ) ;

Pumpkin patch generator no longer drops a log block


<nb> final class HintsDispatchExecutor

 try
 {
 - dispatch ( descriptor ) ;
 + if ( ! dispatch ( descriptor ) )
 + break ;
 }
 catch ( FSReadError e )
 {
 <nb> final class HintsDispatchExecutor
 }
 }

 - private void dispatch ( HintsDescriptor descriptor )
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean dispatch ( HintsDescriptor descriptor )
 {
 logger . debug ( STRING0 , descriptor . fileName ( ) ) ;

 <nb> final class HintsDispatchExecutor
 logger . error ( STRING1 , descriptor . fileName ( ) ) ;
 store . cleanUp ( descriptor ) ;
 logger . info ( STRING2 , descriptor . fileName ( ) , hostId ) ;
 + return true ;
 }
 else
 {
 store . markDispatchOffset ( descriptor , dispatcher . dispatchOffset ( ) ) ;
 store . offerFirst ( descriptor ) ;
 logger . info ( STRING3 , descriptor . fileName ( ) , hostId ) ;
 + return false ;
 }
 }
 }

Fix an issue with transient dispatch failures


<nb> public class ProtobufAnnotationSerializerSlowITest {
 COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 )
 - private static boolean THOROUGH_TEST = false ;
 + private static boolean THOROUGH_TEST = true ;

 public static final String prideAndPrejudiceChapters1to5 =
 STRING1 ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class Table {
 protected int rowCount ;
 <nb> public class Table {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void addColumn ( ) {
 addColumn ( null , STRING ) ;
 <nb> public class Table {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public void removeColumn ( String columnName ) {
 removeColumn ( getColumnIndex ( columnName ) ) ;

Adding a couple related reference links for Table methods


<nb> public class XActivityThread extends XHook {
 List < XHook > listHook = new ArrayList < XHook > ( ) ;

 SINGLE
 - listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cPhone , Intent . ACTION_NEW_OUTGOING_CALL ) ) ;
 + listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cCalling ,
 + Intent . ACTION_NEW_OUTGOING_CALL ) ) ;
 listHook . add ( new XActivityThread ( Methods . handleReceiver , PrivacyManager . cPhone ,
 TelephonyManager . ACTION_PHONE_STATE_CHANGED ) ) ;

 <nb> public class XContentResolver extends XHook {
 }

 else if ( uri . startsWith ( STRING0 ) ) {
 - restrictionName = PrivacyManager . cPhone ;
 + restrictionName = PrivacyManager . cCalling ;
 methodName = STRING1 ;
 }


<nb> public class MarkView extends View {
 protected void onDraw ( Canvas canvas ) {
 super . onDraw ( canvas ) ;

 - String text = isMarkValid ( mMark ) ? String . valueOf ( mMark ) + STRING0 : STRING1 ;
 + String text = ( isMarkValid ( mMark ) ? String . valueOf ( mMark ) : STRING2 ) + STRING0 ;
 if ( ! TextUtils . isEmpty ( text ) ) {
 float textHeight = mTextPaint . descent ( ) + mTextPaint . ascent ( ) ;
 float yPositionOfText = ( getWidth ( ) - textHeight ) / FLOAT0 ;

Fix an issue where on new blogs there is no gauge when visits are empty


<nb> public abstract class AbstractJDBCDataModel implements JDBCDataModel {
 private ResultSetUserIterator ( DataSource dataSource , String getUsersSQL ) throws TasteException {
 try {
 connection = dataSource . getConnection ( ) ;
 - statement = connection . prepareStatement ( getUsersSQL ) ;
 + SINGLE
 + statement = connection . prepareStatement ( getUsersSQL ,
 + ResultSet . TYPE_SCROLL_INSENSITIVE ,
 + ResultSet . CONCUR_READ_ONLY ) ;
 statement . setFetchDirection ( ResultSet . FETCH_UNKNOWN ) ;
 log . debug ( STRING0 , getUsersSQL ) ;
 resultSet = statement . executeQuery ( ) ;

Adjust JDBC settings to avoid error on Oracle driver


<nb> public class AtmosphereFramework implements ServletContextProvider {
 COMMENT
 COMMENT
 public AtmosphereFramework setDefaultBroadcasterClassName ( String bccn ) {
 + if ( isBroadcasterSpecified ) {
 + logger . trace ( STRING0 , broadcasterClassName ) ;
 + return this ;
 + }
 +
 broadcasterClassName = bccn ;

 SINGLE

If the broadcaster has been specifiedin web xml don t override it


<nb> public abstract class BasePartial
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - protected BasePartial ( int [ ] values , Chronology chronology ) {
 - super ( ) ;
 - chronology = DateTimeUtils . getChronology ( chronology ) ;
 - iChronology = chronology . withUTC ( ) ;
 - chronology . validate ( this , values ) ;
 - iValues = ( int [ ] ) values . clone ( ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TabletStatusBar extends StatusBar implements

 sb . setHandler ( mHandler ) ;

 + SINGLE
 + SINGLE
 + if ( mContext . getResources ( ) . getBoolean (
 + com . android . internal . R . bool . config_showNavigationBar ) ) {
 + throw new RuntimeException ( STRING0 ) ;
 + }
 +
 mBarContents = ( ViewGroup ) sb . findViewById ( R . id . bar_contents ) ;
 SINGLE
 mBarContentsLayoutTransition = new LayoutTransition ( ) ;

Throw an exception if a both nav and system bars are configured


<nb> public class KotlinBuilder extends ModuleLevelBuilder {
 ModuleBuildTarget representativeTarget = chunk . representativeTarget ( ) ;

 SINGLE
 - if ( ! dirtyFilesHolder . hasDirtyFiles ( ) ) {
 + if ( ! dirtyFilesHolder . hasDirtyFiles ( ) && ! dirtyFilesHolder . hasRemovedFiles ( ) ) {
 return ExitCode . NOTHING_DONE ;
 }

Check removed files as well as dirty ones


<nb> public class ToastUtils {
 }

 if ( isInvalidTokenError && ( context instanceof FragmentActivity ) ) {
 - showAuthErrorDialog ( context ) ;
 + showAuthErrorDialog ( ( FragmentActivity ) context ) ;
 } else {
 String fallbackErrorMessage = TextUtils . isEmpty ( friendlyMessage ) ? context . getString (
 R . string . error_generic ) : friendlyMessage ;
 <nb> public class ToastUtils {

 if ( ( context instanceof FragmentActivity ) && ! TextUtils . isEmpty ( xmlrpcMessage ) && ( xmlrpcMessage . contains (
 STRING0 ) || is2StepsAuthEnabled ) ) {
 - showAuthErrorDialog ( context ) ;
 + showAuthErrorDialog ( ( FragmentActivity ) context ) ;
 } else {
 String errorMessage = null ;
 if ( isLoginLimitReached ) {
 <nb> public class ToastUtils {
 }
 }

 - private static void showAuthErrorDialog ( Context context ) {
 - FragmentActivity activity = ( FragmentActivity ) context ;
 + private static void showAuthErrorDialog ( FragmentActivity activity ) {
 if ( activity . isFinishing ( ) ) {
 return ;
 }

prevent future erroneous call to showAuthErrorDialog


<nb> import NAMESPACE ;
 public class SslErrorHandler extends Handler {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - SslErrorHandler ( ) { }
 + public SslErrorHandler ( ) { }

 COMMENT
 COMMENT


<nb>
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove erroneous statement about inability to unregister from eventbus package Javadoc


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 -
 - import NAMESPACE ;

 COMMENT
 COMMENT

Add a stub implementation for a namespace type


<nb> public class AnalysisPipeline {
 look = anal . getDecisionLookahead ( s ) ;
 g . tool . log ( STRING0 , STRING1 + Arrays . toString ( look ) ) ;
 }
 +
 + assert s . decision + NUMBER0 >= g . decisionLOOK . size ( ) ;
 Utils . setSize ( g . decisionLOOK , s . decision + NUMBER0 ) ;
 g . decisionLOOK . set ( s . decision , look ) ;
 g . tool . log ( STRING0 , STRING2 + disjoint ( look ) ) ;
 <nb> public class LL1StarBlockSingleAlt extends LL1Loop {
 loopBackStateNumber = star . loopBackState . stateNumber ;
 this . decision = star . decision ;
 IntervalSet [ ] altLookSets = factory . getGrammar ( ) . decisionLOOK . get ( decision ) ;
 + assert altLookSets . length == NUMBER1 ;
 IntervalSet enterLook = altLookSets [ NUMBER2 ] ;
 IntervalSet exitLook = altLookSets [ NUMBER0 ] ;
 loopExpr = addCodeForLoopLookaheadTempVar ( enterLook ) ;


<nb> public class CmdRevertClient extends BaseSvnClient implements RevertClient {
 String statusMessage = matcher . group ( NUMBER0 ) ;
 String path = matcher . group ( NUMBER1 ) ;

 - return new SVNEvent ( new File ( path ) , null , null , NUMBER2 , null , null , null , null , createAction ( statusMessage ) , null , null , null , null , null ,
 - null ) ;
 + return createEvent ( new File ( path ) , createAction ( statusMessage ) ) ;
 }

 @ nullable

Refactored revert client for command line use utility method for event creation


<nb> public class ShareDialog {
 }
 share . add ( new ShareType ( longExplanation , EMAIL ) ) ;
 share . add ( new ShareType ( shortExplanation , SMS ) ) ;
 - share . add ( new ShareType ( shortExplanation , CLIPBOARD ) ) ;
 + share . add ( new ShareType ( url , CLIPBOARD ) ) ;
 share . add ( new ShareType ( url , QR ) ) ;
 return this ;
 }
 <nb> public class SettingsOsMoActivity extends SettingsBaseActivity {
 ShareDialog dlg = new ShareDialog ( this ) ;
 dlg . setTitle ( getString ( R . string . osmo_tracker_id ) ) ;
 dlg . viewContent ( ci . trackerId ) ;
 - dlg . shareURLOrText ( ci . trackerId , getString ( R . string . osmo_tracker_id_share , ci . trackerId ) , null ) ;
 + dlg . shareURLOrText ( ci . trackerId , getString ( R . string . osmo_tracker_id_share , ci . trackerId , STRING0 ) , null ) ;
 dlg . showDialog ( ) ;
 }
 }


<nb> public interface Task extends Comparable < Task > , ExtensionAware {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> class JarFileResource extends JarResource
 private boolean _exists ;

 COMMENT
 - JarFileResource ( URL url )
 + protected JarFileResource ( URL url )
 {
 super ( url ) ;
 }

 COMMENT
 - JarFileResource ( URL url , boolean useCaches )
 + protected JarFileResource ( URL url , boolean useCaches )
 {
 super ( url , useCaches ) ;
 }
 <nb> public class JarResource extends URLResource
 protected JarURLConnection _jarConnection ;

 COMMENT
 - JarResource ( URL url )
 + protected JarResource ( URL url )
 {
 super ( url , null ) ;
 }

 COMMENT
 - JarResource ( URL url , boolean useCaches )
 + protected JarResource ( URL url , boolean useCaches )
 {
 super ( url , null , useCaches ) ;
 }


<nb> public class WordPress extends Application {
 }

 @ override
 - public void onActivityCreated ( Activity activity , Bundle arg1 ) {
 + public void onActivityCreated ( Activity arg0 , Bundle arg1 ) {
 }

 @ override


<nb> public class EventBusImpl implements EventBus , MetricsProvider {
 if ( ! ar . succeeded ( ) ) {
 log . error ( STRING0 ) ;
 } else {
 - completionHandler . handle ( Future . succeededFuture ( ) ) ;
 + if ( completionHandler != null ) {
 + completionHandler . handle ( Future . succeededFuture ( ) ) ;
 + }
 }
 } ) ;
 }

Fix NPE in unregistering handler when clustered


<nb> public class PhoneWindowManager implements WindowManagerPolicy {
 SINGLE
 SINGLE
 SINGLE
 - int shortSizeDp = ( shortSize * DisplayMetrics . DENSITY_DEVICE )
 - / DisplayMetrics . DENSITY_DEFAULT ;
 + int shortSizeDp = shortSize
 + COMMENT
 + / DisplayMetrics . DENSITY_DEVICE ;
 mStatusBarCanHide = shortSizeDp < NUMBER0 ;
 mStatusBarHeight = mContext . getResources ( ) . getDimensionPixelSize (
 mStatusBarCanHide


<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve
 case NUMBER0 :
 SINGLE
 for ( ZWaveDbManufacturer manufacturer : database . GetManufacturers ( ) ) {
 - record = new OpenHABConfigurationRecord ( domain , manufacturer . Id . toString ( ) , manufacturer . Name , true ) ;
 + record = new OpenHABConfigurationRecord ( domain + manufacturer . Id . toString ( ) + STRING0 , manufacturer . Name ) ;

 records . add ( record ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MopubFastItemAdapter < Item extends IItem > extends FastItemAdapter < It
 public int getHolderAdapterPosition ( RecyclerView . ViewHolder holder ) {
 return mMoPubAdAdapter . getOriginalPosition ( super . getHolderAdapterPosition ( holder ) ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + public void onBindViewHolder ( final RecyclerView . ViewHolder holder , int position ) {
 + super . onBindViewHolder ( holder , position , Collections . EMPTY_LIST ) ;
 + }
 }

improve MopubFastItemAdapter as Mopub does not correctly pass all methods to the original adapter


<nb> public class DiscoverableSubtypeResolver extends StdSubtypeResolver {
 protected List < Class < ? > > discoverServices ( Class < ? > klass ) {
 final List < Class < ? > > serviceClasses = Lists . newArrayList ( ) ;
 try {
 - final Enumeration < URL > resources = ClassLoader . getSystemResources ( STRING0 + klass . getName ( ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + final Enumeration < URL > resources = this . getClass ( ) . getClassLoader ( ) . getResources ( STRING0 + klass . getName ( ) ) ;
 while ( resources . hasMoreElements ( ) ) {
 final URL url = resources . nextElement ( ) ;
 try ( InputStream input = url . openStream ( ) ;

Fix configuration classloader bug when system classloader not used


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 public class ColumnSortInfo extends JavaScriptObject
 <nb> public class ColumnSortInfo extends JavaScriptObject
 table . getColumn ( getColumnIndex ( ) ) , getAscending ( ) ) ;
 }

 - @ suppresswarnings ( STRING0 )
 + @ suppresswarnings ( { STRING0 , STRING1 } )
 public static ColumnSortInfo fromGwtSortInfo ( CellTable table ,
 ColumnSortList . ColumnSortInfo si )
 {
 <nb> public class ColumnSortInfo extends JavaScriptObject
 return list ;
 }

 + @ suppresswarnings ( STRING1 )
 public static JsArray < ColumnSortInfo > getSortList ( CellTable table )
 {
 ColumnSortList sortList = table . getColumnSortList ( ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class FileSystemMasterIntegrationTest {
 List < FileInfo > infoList = mFsMaster . getFileInfoList ( mFsMaster . getFileId ( new TachyonURI ( STRING0 ) ) ) ;
 for ( FileInfo info : infoList ) {
 SINGLE
 - long id = new Long ( info . getFileId ( ) ) ;
 + long id = info . getFileId ( ) ;
 listedDirIds . add ( id ) ;
 for ( FileInfo fileInfo : mFsMaster . getFileInfoList ( id ) ) {
 - listedIds . add ( ( long ) fileInfo . getFileId ( ) ) ;
 + listedIds . add ( fileInfo . getFileId ( ) ) ;
 }
 }
 Assert . assertEquals ( ids , listedIds ) ;

Remove Long cast in getFileld of listFilesTest since it s not needed anymore


<nb> public final class Calendar {
 COMMENT
 COMMENT
 public static final String MAX_REMINDERS = STRING0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String [ ] SYNC_WRITABLE_COLUMNS = new String [ ] {
 + _SYNC_ACCOUNT ,
 + _SYNC_ACCOUNT_TYPE ,
 + _SYNC_ID ,
 + _SYNC_TIME ,
 + _SYNC_VERSION ,
 + _SYNC_DIRTY ,
 + OWNER_ACCOUNT ,
 + MAX_REMINDERS ,
 + CAN_MODIFY_TIME_ZONE ,
 + CAN_ORGANIZER_RESPOND ,
 + LOCATION ,
 + TIMEZONE ,
 + ACCESS_LEVEL ,
 + DELETED ,
 + SYNC1 ,
 + SYNC2 ,
 + SYNC3 ,
 + SYNC4 ,
 + SYNC5 ,
 + SYNC6 ,
 + SYNC_STATE ,
 + } ;
 }

 COMMENT

Adds Calendars sync only columns to the contract


<nb> import NAMESPACE ;
 this . state = HSBType . BLACK ;
 } else if ( state == OnOffType . ON ) {
 this . state = HSBType . WHITE ;
 - } else if ( state instanceof PercentType ) {
 + } else if ( state instanceof PercentType && ! ( state instanceof HSBType ) ) {
 this . state = new HSBType ( DecimalType . ZERO , PercentType . ZERO , ( PercentType ) state ) ;
 } else {
 super . setState ( state ) ;

fixed bug when setting the initial color state


<nb> public class Beacon implements Parcelable {
 return mBluetoothAddress ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getBluetoothName ( ) {
 + return mBluetoothName ;
 + }

 COMMENT
 COMMENT
 <nb> public class Beacon implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 - public Builder setManufacturer ( String name ) {
 + public Builder setBluetoothName ( String name ) {
 mBeacon . mBluetoothName = name ;
 return this ;
 }


<nb> public class BatchKVResponse < K , V extends RecordTemplate > extends RecordTemplate
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public Map < K , V > getResults ( )
 {
 return _results ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public Map < K , ErrorResponse > getErrors ( )
 {
 return _errors ;

added comments to getResult and getErrors


<nb> public class StatsActivity extends ActionBarActivity

 selectCurrentTimeframeInActionBar ( ) ;

 - TextView otherRecemtStatsMovedLabel = ( TextView ) findViewById ( R . id . stats_other_recent_stats_moved ) ;
 - otherRecemtStatsMovedLabel . setOnClickListener ( new View . OnClickListener ( ) {
 + TextView otherRecentStatsMovedLabel = ( TextView ) findViewById ( R . id . stats_other_recent_stats_moved ) ;
 + otherRecentStatsMovedLabel . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View v ) {
 for ( int i = NUMBER0 ; i < timeframes . length ; i ++ ) {


<nb> interface FromJava8 {
 default void < warning descr = STRING0 > foo < / warning > ( ) {
 System . out . println ( ) ;
 }
 + }
 + class B {
 + public void accept ( String t ) {
 + System . out . println ( t ) ;
 + }
 + }
 + class V extends B implements Consumer < String > { }
 + interface Consumer < T > {
 + void accept ( T t ) ;
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ConnectionManagerImpl extends BasicModule implements ConnectionMana
 routingTable = server . getRoutingTable ( ) ;
 deliverer = server . getPacketDeliverer ( ) ;
 sessionManager = server . getSessionManager ( ) ;
 + SINGLE
 + SINGLE
 + if ( JiveGlobals . getBooleanProperty ( STRING0 , false ) ) {
 + ByteBuffer . setUseDirectBuffers ( false ) ;
 + ByteBuffer . setAllocator ( new SimpleByteBufferAllocator ( ) ) ;
 + }
 }

 public void enableClientListener ( boolean enabled ) {

Optimization use heap buffers by default


<nb> public class UpcomingFragment extends ListFragment implements LoaderManager . Load

 final ListView list = getListView ( ) ;
 list . setFastScrollEnabled ( true ) ;
 + list . setDivider ( null ) ;
 registerForContextMenu ( list ) ;
 }

Remove the divider in Upcoming and Recent lists


<nb> public class CachingBuildEngine implements BuildEngine {
 }

 @ visiblefortesting
 - public synchronized void createFutureFor ( BuildTarget buildTarget ) {
 - results . put ( buildTarget , SettableFuture . < BuildRuleSuccess > create ( ) ) ;
 + public SettableFuture < BuildRuleSuccess > createFutureFor ( BuildTarget buildTarget ) {
 + SettableFuture < BuildRuleSuccess > newFuture = SettableFuture . create ( ) ;
 + SettableFuture < BuildRuleSuccess > result = results . putIfAbsent (
 + buildTarget ,
 + newFuture ) ;
 + return result == null ? newFuture : result ;
 }

 @ visiblefortesting
 - synchronized void setBuildRuleResult (
 + void setBuildRuleResult (
 BuildTarget buildTarget ,
 BuildRuleSuccess success ) {
 - if ( results . get ( buildTarget ) == null ) {
 - createFutureFor ( buildTarget ) ;
 - }
 - results . get ( buildTarget ) . set ( success ) ;
 + createFutureFor ( buildTarget ) . set ( success ) ;
 }

 @ override