<nb> public class SgSyncAdapter extends AbstractThreadedSyncAdapter {
 args . putInt ( UPDATE_TYPE , NUMBER0 ) ;
 }

 - final Account account = new Account ( SgAccountAuthenticator . ACCOUNT_NAME ,
 - context . getPackageName ( ) ) ;
 + final Account account = SgAccountAuthenticator . getSyncAccount ( context ) ;
 ContentResolver . requestSync ( account ,
 SeriesGuideApplication . CONTENT_AUTHORITY , args ) ;

 }

 + public static void setSyncAutomatically ( Context context , boolean sync ) {
 + final Account account = SgAccountAuthenticator . getSyncAccount ( context ) ;
 + ContentResolver . setSyncAutomatically ( account , SeriesGuideApplication . CONTENT_AUTHORITY ,
 + sync ) ;
 + }
 +
 public SgSyncAdapter ( Context context , boolean autoInitialize ) {
 super ( context , autoInitialize ) ;
 Log . d ( TAG , STRING0 ) ;

Add setSyncAutomatically helper to SgSyncAdapter


<nb> public final class ProcessStats implements Parcelable {
 + pkgList . keyAt ( index ) + STRING0 + proc . mUid
 + STRING1 + proc . mName + STRING2 + proc . mVersion ) ;
 }
 + String savedName = proc . mName ;
 proc = pkg . mProcesses . get ( proc . mName ) ;
 if ( proc == null ) {
 throw new IllegalStateException ( STRING3
 - + proc . mName + STRING4 + pkg . mPackageName + STRING0 + pkg . mUid ) ;
 + + savedName + STRING4 + pkg . mPackageName + STRING0 + pkg . mUid ) ;
 }
 holder . state = proc ;
 }


<nb> public class PyQualifiedReferenceImpl extends PyReferenceImpl {
 }
 }
 if ( resolveResult instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) resolveResult ) &&
 - element instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) element ) ) {
 + element instanceof PyTargetExpression && isInstanceOrClassAttribute ( ( PyTargetExpression ) element ) && Comparing . equal (
 + ( ( PyTargetExpression ) resolveResult ) . getReferencedName ( ) ,
 + ( ( PyTargetExpression ) element ) . getReferencedName ( ) ) ) {
 PyClass aClass = PsiTreeUtil . getParentOfType ( resolveResult , PyClass . class ) ;
 PyClass bClass = PsiTreeUtil . getParentOfType ( element , PyClass . class ) ;

Added check for reference names equality


<nb> public class CollapsingToolbarLayout extends FrameLayout {
 SINGLE
 final ViewParent parent = getParent ( ) ;
 if ( parent instanceof AppBarLayout ) {
 + SINGLE
 + ViewCompat . setFitsSystemWindows ( this , ViewCompat . getFitsSystemWindows ( ( View ) parent ) ) ;
 +
 if ( mOnOffsetChangedListener == null ) {
 mOnOffsetChangedListener = new OffsetUpdateListener ( ) ;
 }
 ( ( AppBarLayout ) parent ) . addOnOffsetChangedListener ( mOnOffsetChangedListener ) ;
 - }

 - SINGLE
 - ViewCompat . requestApplyInsets ( this ) ;
 + SINGLE
 + ViewCompat . requestApplyInsets ( this ) ;
 + }
 }

 @ override

Fix CollapsingToolbarLayout pinned views with insets


<nb> public class RenameJavaVariableProcessor extends RenamePsiElementProcessor {
 return ;
 }

 - if ( elem instanceof PsiLocalVariable || elem instanceof PsiParameter ) {
 + if ( elem instanceof PsiLocalVariable || elem instanceof PsiParameter || elem instanceof PsiField ) {
 qualifyField ( field , replacedOccurence , newName ) ;
 }
 }
 <nb> public class RenameFieldTest extends CodeInsightTestCase {
 doTest ( STRING0 , STRING1 ) ;
 }

 + public void testOuterHidesInner ( ) throws Exception { SINGLE
 + doTest ( STRING2 , STRING1 ) ;
 + }
 +
 protected void perform ( String newName ) {
 PsiElement element = TargetElementUtilBase . findTargetElement ( myEditor , TargetElementUtilBase
 . ELEMENT_NAME_ACCEPTED | TargetElementUtilBase . REFERENCED_ELEMENT_ACCEPTED ) ;

correctly qualify references to renamed outer class field when they hide an inner class field


<nb> public class FileStatusManagerImpl extends FileStatusManager implements ProjectC

 public void initComponent ( ) { }

 - public void addFileStatusListener ( FileStatusListener listener ) {
 + public void addFileStatusListener ( @ notnull FileStatusListener listener ) {
 myListeners . add ( listener ) ;
 }

FileStatusManagerImpl add NotNull annotation for added listener


<nb> public class WorldEditListener extends PluginListener {
 WorldEditSession . SuperPickaxeMode . SINGLE ) {
 Vector pos = new Vector ( blockClicked . getX ( ) ,
 blockClicked . getY ( ) , blockClicked . getZ ( ) ) ;
 - if ( ServerInterface . getBlockType ( pos ) == NUMBER0 && canBedrock ) {
 + if ( ServerInterface . getBlockType ( pos ) == NUMBER0 && ! canBedrock ) {
 return true ;
 } else if ( ServerInterface . getBlockType ( pos ) == NUMBER1 ) {
 return false ;
 <nb> public class WorldEditListener extends PluginListener {

 if ( ServerInterface . getBlockType ( pos ) == initialType ) {
 ServerInterface . setBlockType ( pos , NUMBER2 ) ;
 + } else {
 + return ;
 }

 recursiveSuperPickaxe ( pos . add ( NUMBER3 , NUMBER2 , NUMBER2 ) . toBlockVector ( ) , origin , size ,

Fixed the super pickaxe not working with bedrock and the recursive super pickaxe not working properly


<nb> public class RecordFormatSelector
 {
 if ( StringUtils . isNotEmpty ( recordFormat ) )
 {
 + if ( LowLimitV3_0 . NAME . equals ( recordFormat ) )
 + {
 + return LowLimitV3_0 . RECORD_FORMATS ;
 + }
 RecordFormats . Factory formatFactory = Service . loadSilently ( RecordFormats . Factory . class , recordFormat ) ;
 if ( formatFactory != null )
 {
 <nb> public class RecordFormatSelectorTest
 }

 @ test
 + public void autoselectCommunityFormat ( )
 + {
 + Config config = new Config ( MapUtil . stringMap ( record_format . name ( ) , LowLimitV3_0 . NAME ) ) ;
 + RecordFormats recordFormats = RecordFormatSelector . autoSelectFormat ( config , NullLogService . getInstance ( ) ) ;
 + assertEquals ( STRING0 , recordFormats , LowLimitV3_0 . RECORD_FORMATS ) ;
 + }
 +
 + @ test
 public void overrideWithNonExistingFormatFailure ( )
 {
 Config config = new Config ( MapUtil . stringMap ( record_format . name ( ) , STRING1 ) ) ;

Add possibility to force community format from any edition


<nb>
 package NAMESPACE ;

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

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb>
 package 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 ;
 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 ;
 import NAMESPACE ;


<nb> public class TypeCheck implements NodeTraversal . Callback , CompilerPass {

 static final DiagnosticType ENUM_NOT_CONSTANT =
 DiagnosticType . warning ( STRING0 ,
 - STRING1 ) ;
 + STRING2 ) ;

 static final DiagnosticType INVALID_INTERFACE_MEMBER_DECLARATION =
 DiagnosticType . warning (
 <nb> public class TypeCheckTest extends CompilerTypeTestCase {

 public void testEnum2 ( ) throws Exception {
 testTypes ( STRING3 ,
 - STRING4 ) ;
 + STRING5 ) ;
 }

 public void testEnum3 ( ) throws Exception {


<nb> public class RegisterNewProfiles {
 session = sessionFactory . getSession ( ) ;

 SINGLE
 - session . getEntityManager ( ) . clear ( ) ;
 + session . commit ( ) ;

 ListMultimap < String , RulesProfile > profilesByLanguage = loadDefinitions ( ) ;
 for ( String language : profilesByLanguage . keySet ( ) ) {

Fix loading of Hibernate rules on MyBatis


<nb> public class DocumentationManager extends DockablePopupManager < DocumentationComp
 @ override
 public boolean process ( JBPopup popup ) {
 createToolWindow ( element , originalElement ) ;
 + myToolWindow . setAutoHide ( false ) ;
 popup . cancel ( ) ;
 return false ;
 }

pin a toolwindow on pin button click in quick doc view


<nb> import NAMESPACE ;
 COMMENT
 public interface GrAssignmentExpression extends GrExpression , PsiPolyVariantReference {

 - boolean isTupleAssignment ( ) ;
 -
 @ notnull
 GrExpression getLValue ( ) ;

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GrAssignmentExpressionImpl extends GrExpressionImpl implements GrAs
 return STRING0 ;
 }

 - public boolean isTupleAssignment ( ) {
 - return getFirstChild ( ) instanceof GrTupleDeclaration ;
 - }
 -
 @ notnull
 public GrExpression getLValue ( ) {
 return findExpressionChild ( this ) ;


<nb> public final class LongTaskExecutor {
 private Timer cancelTimer ;
 private LongTaskListener listener ;
 private LongTaskErrorHandler errorHandler ;
 + private LongTaskErrorHandler defaultErrorHandler ;

 COMMENT
 COMMENT
 <nb> public final class LongTaskExecutor {
 COMMENT
 public void setDefaultErrorHandler ( LongTaskErrorHandler errorHandler ) {
 if ( errorHandler != null ) {
 - this . errorHandler = errorHandler ;
 + this . defaultErrorHandler = errorHandler ;
 }
 }

 <nb> public final class LongTaskExecutor {
 }
 if ( err != null ) {
 err . fatalError ( e ) ;
 + } else if ( defaultErrorHandler != null ) {
 + defaultErrorHandler . fatalError ( e ) ;
 } else {
 Logger . getLogger ( STRING0 ) . log ( Level . SEVERE , STRING0 , e ) ;
 }

Fix default error handler bug in LongTask


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - @ target ( { ElementType . PARAMETER , ElementType . METHOD } )
 + @ target ( ElementType . PARAMETER )
 @ retention ( RetentionPolicy . SOURCE )
 public @ interface Matches {
 Class < ? extends Matcher < ? super ExpressionTree > > value ( ) ;

Revert changes to Matches for internal reasons


<nb> public class HeapTest extends TestCase {
 }
 }

 - @ mediumtest
 + SINGLE
 + SINGLE
 public void testOomeLarge ( ) throws Exception {
 COMMENT
 COMMENT

Suppress flaky test HeapTest testOomeLarge


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class SystemKeyspace
 for ( UntypedResultSet . Row row : rs )
 {
 InetAddress peer = row . getInetAddress ( STRING0 ) ;
 - Set < ByteBuffer > rawRanges = rawRanges = row . getSet ( STRING1 , BytesType . instance ) ;
 - Set < Range < Token > > ranges = new HashSet < > ( ) ;
 + Set < ByteBuffer > rawRanges = row . getSet ( STRING1 , BytesType . instance ) ;
 + Set < Range < Token > > ranges = Sets . newHashSetWithExpectedSize ( rawRanges . size ( ) ) ;
 for ( ByteBuffer rawRange : rawRanges )
 {
 ranges . add ( byteBufferToRange ( rawRange , partitioner ) ) ;

presize collection and fix duplicate assignment typo


<nb> import NAMESPACE ;
 COMMENT
 public class StringUtil {

 - public static String add ( String s , String add ) {
 + public static boolean isEmpty ( final String s ) {
 + return ( s == null ) || s . length ( ) == NUMBER0 || s . equals ( STRING0 ) ;
 + }
 +
 + public static String add ( String s , String add ) {
 return add ( s , add , StringPool . COMMA ) ;
 }

adding method for checking isEmpty check for string


<nb> public class GsonMarshalExclusionTest extends CamelTestSupport {

 SINGLE
 GsonDataFormat ageExclusionFormat = new GsonDataFormat ( TestPojoExclusion . class , new AgeExclusionStrategy ( ) ) ;
 - SINGLE
 from ( STRING0 ) . marshal ( ageExclusionFormat ) ;
 + SINGLE
 from ( STRING1 ) . unmarshal ( ageExclusionFormat ) . to ( STRING2 ) ;
 }
 } ;
 <nb> public class JacksonMarshalViewTest extends CamelTestSupport {

 SINGLE
 JacksonDataFormat ageViewFormat = new JacksonDataFormat ( TestPojoView . class , Views . Age . class ) ;
 - SINGLE
 -
 from ( STRING3 ) . marshal ( ageViewFormat ) ;
 + SINGLE
 from ( STRING4 ) . unmarshal ( ageViewFormat ) . to ( STRING5 ) ;

 JacksonDataFormat weightViewFormat = new JacksonDataFormat ( TestPojoView . class , Views . Weight . class ) ;
 -
 from ( STRING6 ) . marshal ( weightViewFormat ) ;
 from ( STRING7 ) . unmarshal ( weightViewFormat ) . to ( STRING8 ) ;
 }


<nb> public class FtpReconnectAttemptServerStoppedTest extends FtpServerTestSupport {
 SINGLE
 ftpServer . resume ( ) ;

 + SINGLE
 + Thread . sleep ( NUMBER0 ) ;
 +
 assertMockEndpointsSatisfied ( ) ;
 }

Fix the test failing occasionally on the slow CI server


<nb> public final class ResourceLeakDetector < T > {

 private static final boolean DISABLED = SystemPropertyUtil . getBoolean ( STRING0 , false ) ;

 + public static final boolean ENABLED = ! DISABLED ;
 +
 private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ResourceLeakDetector . class ) ;

 static {


<nb> public class PlainStreetEdge extends AbstractEdge implements StreetEdge {
 COMMENT
 COMMENT
 COMMENT
 - double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ;
 + double safety = bicycleSafetyEffectiveLength ; SINGLE
 double slope = slopeWorkCost ;
 weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ;
 weight /= options . speed ;
 <nb> public class StreetVertex extends GenericVertex {
 case TRIANGLE :
 double quick = slopeSpeedEffectiveLength ;
 SINGLE
 - double safety = bicycleSafetyEffectiveLength * FLOAT0 + quick * FLOAT1 ;
 + double safety = bicycleSafetyEffectiveLength ; SINGLE
 double slope = slopeWorkCost ;
 weight = quick * options . getTriangleTimeFactor ( ) + slope * options . getTriangleSlopeFactor ( ) + safety * options . getTriangleSafetyFactor ( ) ;
 weight /= options . speed ;

use full safety for the safety corner of the bike triangle


<nb> public final class ScriptIntrinsicBlur extends ScriptIntrinsic {
 COMMENT
 public void setInput ( Allocation ain ) {
 mInput = ain ;
 - bindAllocation ( ain , NUMBER0 ) ;
 + setVar ( NUMBER0 , ain ) ;
 }

 COMMENT
 <nb> public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic {
 COMMENT
 public void setInput ( Allocation ain ) {
 mInput = ain ;
 - bindAllocation ( ain , NUMBER0 ) ;
 + setVar ( NUMBER0 , ain ) ;
 }

 COMMENT
 <nb> public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic {
 COMMENT
 public void setInput ( Allocation ain ) {
 mInput = ain ;
 - bindAllocation ( ain , NUMBER0 ) ;
 + setVar ( NUMBER0 , ain ) ;
 }

 COMMENT
 <nb> public final class ScriptIntrinsicYuvToRGB extends ScriptIntrinsic {
 COMMENT
 public void setInput ( Allocation ain ) {
 mInput = ain ;
 - bindAllocation ( ain , NUMBER1 ) ;
 + setVar ( NUMBER1 , ain ) ;
 }

 COMMENT


<nb> public class RecoverySourceHandlerTests extends ESTestCase {
 @ override
 public void close ( ) throws IOException {
 super . close ( ) ;
 - store . directory ( ) . sync ( Collections . singleton ( md . name ( ) ) ) ; SINGLE
 + targetStore . directory ( ) . sync ( Collections . singleton ( md . name ( ) ) ) ; SINGLE
 }
 } ;
 } catch ( IOException e ) {

TEST Use actual target directory to fsync copied files in test


<nb> public class ZoneInfoProvider implements Provider {
 return null ;
 }

 - if ( id . equals ( obj ) ) {
 - SINGLE
 - return loadZoneData ( id ) ;
 - }
 -
 if ( obj instanceof SoftReference < ? > ) {
 @ suppresswarnings ( STRING0 )
 SoftReference < DateTimeZone > ref = ( SoftReference < DateTimeZone > ) obj ;
 <nb> public class ZoneInfoProvider implements Provider {
 }
 SINGLE
 return loadZoneData ( id ) ;
 + } else if ( id . equals ( obj ) ) {
 + SINGLE
 + return loadZoneData ( id ) ;
 }

 SINGLE

ZoneInfoProvider getZone String throws a ClassCastException in some Android implementations of the String class


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MockConnectionManager implements ConnectionManager {
 this . registry = registry ;
 this . node = node ;
 this . logger = ioService . getLoggingService ( ) . getLogger ( MockConnectionManager . class ) ;
 - SINGLE
 - node . getNodeEngine ( ) . getHazelcastInstance ( ) . getLifecycleService ( ) . addLifecycleListener ( new LifecycleListener ( ) {
 - @ override
 - public void stateChanged ( LifecycleEvent event ) {
 - if ( LifecycleEvent . LifecycleState . SHUTTING_DOWN == event . getState ( ) ) {
 - for ( Connection connection : mapConnections . values ( ) ) {
 - if ( connection . isClient ( ) ) {
 - destroyConnection ( connection ) ;
 - }
 - }
 - }
 - }
 - } ) ;
 }

 @ override

Removing a code piece that is not needed


<nb> public class CordovaWebView extends WebView {
 SINGLE
 LOG . d ( TAG , STRING0 , oldl , l ) ;
 LOG . d ( TAG , STRING1 , oldt , t ) ;
 + ScrollEvent myEvent = new ScrollEvent ( l , t , oldl , oldt , this ) ;
 + this . postMessage ( STRING2 , myEvent ) ;
 }

 COMMENT

Adding onScrollChanged and the ScrollEvent object


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DefaultStompSessionTests {
 this . sessionHandler = mock ( StompSessionHandler . class ) ;
 this . connectHeaders = new StompHeaders ( ) ;
 this . session = new DefaultStompSession ( this . sessionHandler , this . connectHeaders ) ;
 + this . session . setMessageConverter ( new StringMessageConverter ( ) ) ;

 SettableListenableFuture < Void > future = new SettableListenableFuture < > ( ) ;
 future . set ( null ) ;


<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 ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


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

 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public interface ResultTransformer < T > {

 public T transform ( Projectable projectable ) ;


<nb> public class SimpleErrorPageHandler implements HttpHandler {
 if ( codes == null ? exchange . getResponseCode ( ) >= NUMBER0 : codes . contains ( Integer . valueOf ( exchange . getResponseCode ( ) ) ) ) {
 final ChannelFactory < StreamSinkChannel > factory = exchange . getResponseChannelFactory ( ) ;
 if ( factory != null ) {
 - final StreamSinkChannel response = factory . create ( ) ;
 final String errorPage = STRING0 + exchange . getResponseCode ( ) + STRING1 + StatusCodes . getReason ( exchange . getResponseCode ( ) ) + STRING2 ;
 SINGLE
 exchange . getResponseHeaders ( ) . clear ( ) ;
 exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_LENGTH , STRING3 + errorPage . length ( ) ) ;
 +
 + final StreamSinkChannel response = factory . create ( ) ;
 StringWriteChannelListener listener = new StringWriteChannelListener ( errorPage ) {
 @ override
 protected void writeDone ( final StreamSinkChannel channel ) {


<nb> public class H2OLauncher extends JPanel implements ActionListener {

 try {
 ProcessBuilder pb =
 - new ProcessBuilder ( STRING0 ,
 + new ProcessBuilder ( STRING1 ,
 STRING2 + xmxField . getText ( ) . trim ( ) ,
 - STRING3 , STRING4 ,
 + STRING3 , STRING5 ,
 STRING6 , cloudField . getText ( ) . trim ( ) ,
 STRING7 , portField . getText ( ) . trim ( )
 ) ;

Tweak hacked hardccoded paths to run again


<nb> public interface Extensions {
 COMMENT
 static final int TASKLISTITEMS = NUMBER0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 + static final int ALL_OPTIONALS = ( ATXHEADERSPACE | RELAXEDHRULES | TASKLISTITEMS ) ;
 + static final int ALL_WITH_OPTIONALS = ALL | ( ATXHEADERSPACE | RELAXEDHRULES | TASKLISTITEMS ) ;
 }

add ALL_OPTIONALS and ALL_WITH_OPTIONALS extension set


<nb> public final class Configuration {
 setIndexVersionedFilesOnly ( false ) ;
 setHitsPerPage ( NUMBER0 ) ;
 setCachePages ( NUMBER1 ) ;
 - setDatabaseDriver ( STRING0 ) ;
 + setDatabaseDriver ( STRING1 ) ;
 }

 public String getCtags ( ) {
 <nb> public final class Configuration {

 public String getDatabaseUrl ( ) {
 if ( databaseUrl == null ) {
 - return STRING2 + getDataRoot ( ) +
 - File . separator + STRING3 ;
 + return STRING4 ;
 }
 return databaseUrl ;
 }

We should use the Derby client driver by default


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class ColorPicker extends View {
 COMMENT
 COMMENT


<nb> public class ActFmLoginActivity extends Activity implements AuthListener {
 char last = STRING0 ;
 for ( int i = NUMBER0 ; i < chars . length ; i ++ ) {
 char r = acceptable . charAt ( rand . nextInt ( acceptable . length ( ) ) ) ;
 - while ( checkSimilar ( last , r ) )
 + while ( ! checkSimilar ( last , r ) )
 r = acceptable . charAt ( rand . nextInt ( acceptable . length ( ) ) ) ;
 last = r ;
 chars [ i ] = r ;


<nb> class DependencyManagementBuildScopeServices {
 SINGLE
 BuildIdentity createBuildIdentity ( ProjectRegistry < ProjectInternal > projectRegistry ) {
 ProjectInternal rootProject = projectRegistry . getProject ( STRING0 ) ;
 - if ( rootProject . getGradle ( ) . getParent ( ) == null ) {
 + if ( rootProject == null || rootProject . getGradle ( ) . getParent ( ) == null ) {
 SINGLE
 return new DefaultBuildIdentity ( new DefaultBuildIdentifier ( STRING0 , true ) ) ;
 }

Use default build identity when no root project available


<nb> public abstract class AbstractIntertechnoParser implements
 for ( int i = length - NUMBER0 ; i >= NUMBER1 ; i -- ) {
 int currentBitValue = ( int ) Math . pow ( NUMBER2 , i ) ;
 char bit = char0 ;
 - if ( currentBitValue >= value ) {
 + if ( value >= currentBitValue ) {
 bit = char1 ;
 value = value - currentBitValue ;
 }

Fix String Encoding for Intertechno Addresses


<nb> public abstract class JavaTestFrameworkRunnableState < T extends ModuleBasedConfig

 @ nullable
 public ServerSocket getForkSocket ( ) {
 - if ( myForkSocket == null && ( ! Comparing . strEqual ( getForkMode ( ) , STRING0 ) || forkPerModule ( ) ) ) {
 + if ( myForkSocket == null && ( ! Comparing . strEqual ( getForkMode ( ) , STRING0 ) || forkPerModule ( ) ) && getRunnerSettings ( ) != null ) {
 try {
 myForkSocket = new ServerSocket ( NUMBER0 , NUMBER0 , InetAddress . getByName ( STRING1 ) ) ;
 }


<nb> public class URLUtils
 {
 Preconditions . checkNotNull ( url , STRING0 ) ;
 String queryString = URLUtils . formURLEncodeMap ( params ) ;
 - if ( queryString . isEmpty ( ) ) return url ;
 + if ( queryString . length ( ) == NUMBER0 ) return url ;

 SINGLE
 url += url . indexOf ( QUERY_STRING_SEPARATOR ) != - NUMBER1 ? PARAM_SEPARATOR : QUERY_STRING_SEPARATOR ;

Removed isEmpty for old VM compatibility


<nb> public class PythonFindUsagesProvider implements FindUsagesProvider {
 return STRING0 ;
 }
 if ( element instanceof PyClass ) return STRING1 ;
 - if ( element instanceof PyReferenceExpression || element instanceof PyTargetExpression ) return STRING2 ;
 + if ( element instanceof PyReferenceExpression ) return STRING2 ;
 + if ( element instanceof PyTargetExpression ) {
 + final PyImportElement importElement = PsiTreeUtil . getParentOfType ( element , PyImportElement . class ) ;
 + if ( importElement != null && importElement . getAsNameElement ( ) == element ) {
 + return STRING3 ;
 + }
 + return STRING2 ;
 + }
 return STRING4 ;
 }

show more descriptive name in rename dialog when renaming module as name


<nb> public enum PropertyRenamingPolicy {
 COMMENT
 COMMENT
 COMMENT
 - ALL_UNQUOTED ,
 -
 - SINGLE
 - UNSPECIFIED
 + ALL_UNQUOTED
 }
 <nb> public enum VariableRenamingPolicy {
 COMMENT
 COMMENT
 COMMENT
 - ALL ,
 -
 - SINGLE
 - UNSPECIFIED
 + ALL
 }

Remove unneeded legacy renaming policies


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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class SparkleActivator
 {
 private static Logger logger = Logger . getLogger ( SparkleActivator . class ) ;

 - SINGLE
 - public native static void initSparkle ( String pathToSparkleFramework ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + public native static void initSparkle ( String pathToSparkleFramework ,
 + boolean updateAtStartup ,
 + int checkInterval ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean updateAtStartup = true ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + private int checkInterval = NUMBER0 ; SINGLE

 COMMENT
 COMMENT
 <nb> public class SparkleActivator
 public void start ( BundleContext bundleContext ) throws Exception
 {
 SINGLE
 - initSparkle ( System . getProperty ( STRING0 ) + STRING1 ) ;
 + initSparkle ( System . getProperty ( STRING0 )
 + + STRING1 ,
 + updateAtStartup , checkInterval ) ;
 logger . info ( STRING2 ) ;
 }

Updated the Sparkle activator which now can set whether


<nb> public class NotificationsListFragment extends Fragment
 public static final String NOTE_PREFILLED_REPLY_EXTRA = STRING0 ;
 public static final String NOTE_MODERATE_ID_EXTRA = STRING1 ;
 public static final String NOTE_MODERATE_STATUS_EXTRA = STRING2 ;
 - public static final String NOTE_ALLOW_NAVIGATE_LIST_EXTRA = STRING3 ;
 public static final String NOTE_CURRENT_LIST_FILTER_EXTRA = STRING4 ;

 private static final String KEY_LIST_SCROLL_POSITION = STRING5 ;


<nb> import NAMESPACE ;
 public class FakeToast {
 public static List < CharSequence > toastMessages = new ArrayList < CharSequence > ( ) ;

 + public static Toast makeText ( Context context , int resId , int duration ) {
 + toastMessages . add ( context . getResources ( ) . getString ( resId ) ) ;
 + return new Toast ( null ) ;
 + }
 +
 public static Toast makeText ( Context context , CharSequence text , int duration ) {
 toastMessages . add ( text ) ;
 return new Toast ( null ) ;

add support to FakeToast for resource id messages


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 public abstract class ItemEngine {
 public void resetItem ( View itemView ) {
 <nb> public abstract class ItemEngine {
 return loadItem ( itemParams ) ;
 }

 + public Object getPreloadItemParams ( Adapter adapter , int position ) {
 + return null ;
 + }
 +
 public abstract Object loadItem ( Object itemParams ) ;

 public abstract void displayItem ( View itemView , Object item , boolean fromMemory ) ;

library Add ItemEngine API to get preload item params


<nb> public class CursorColumnsTest extends AbstractTest {
 employee . setExtra ( new Mixed ( arr ) ) ;
 SINGLE
 assertEquals ( Mixed . BINARY_TYPE_BYTE_BUFFER , employee . getExtra ( ) . getBinaryType ( ) ) ;
 - SINGLE
 + assertEquals ( ByteBuffer . wrap ( arr ) , employee . getExtra ( ) . getBinaryValue ( ) ) ;
 assertEquals ( ColumnType . BINARY , employee . getExtra ( ) . getType ( ) ) ;


<nb> public class JspFactoryImpl extends JspFactory {
 }
 }

 - private final static String APP_CONTEXT_VARIABLE = JspApplicationContextImpl . class . getName ( ) ;
 -
 public JspApplicationContext getJspApplicationContext ( ServletContext context ) {
 - JspApplicationContext appContext = ( JspApplicationContext ) context . getAttribute ( APP_CONTEXT_VARIABLE ) ;
 - if ( appContext == null ) {
 - appContext = new JspApplicationContextImpl ( ) ;
 - context . setAttribute ( APP_CONTEXT_VARIABLE , appContext ) ;
 - }
 - return appContext ;
 + return JspApplicationContextImpl . getInstance ( context ) ;
 }
 }

Use getInstance rather than create something with a different key


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class AbstractTitanGraphProvider extends AbstractGraphProvider {
 add ( CacheVertexProperty . class ) ;
 add ( FulgoraVertexProperty . class ) ;

 - add ( TitanIoRegistry . class ) ;
 add ( TitanGraphVariables . class ) ;

 add ( FulgoraElementTraversal . class ) ;
 - add ( TitanFeatures . class ) ;
 } } ;

 @ override

Drop two unneeded registrations from the titan GraphProvider implementation


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


<nb> public class SessionSetting {

 @ override
 public String toString ( ) {
 - return MoreObjects . toStringHelper ( this ) . omitNullValues ( ) . add ( STRING0 , request ) . add ( STRING1 , response ) . toString ( ) ;
 + return MoreObjects . toStringHelper ( this ) . omitNullValues ( )
 + . add ( STRING0 , request )
 + . add ( STRING1 , response )
 + . add ( STRING2 , redirectTo )
 + . add ( STRING3 , mount )
 + . add ( STRING4 , proxy )
 + . add ( STRING5 , on )
 + . toString ( ) ;
 }

 private boolean isRedirectResponse ( ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

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

 public class NimbusInfo implements Serializable {
 + private static final Logger LOG = LoggerFactory . getLogger ( NimbusInfo . class ) ;
 private static final String DELIM = STRING0 ;

 private String host ;
 <nb> public class NimbusInfo implements Serializable {
 public static NimbusInfo fromConf ( Map conf ) {
 try {
 String host = InetAddress . getLocalHost ( ) . getCanonicalHostName ( ) ;
 + if ( conf . containsKey ( Config . STORM_LOCAL_HOSTNAME ) ) {
 + host = conf . get ( Config . STORM_LOCAL_HOSTNAME ) . toString ( ) ;
 + LOG . info ( STRING1 , host ) ;
 + }
 +
 int port = Integer . parseInt ( conf . get ( Config . NIMBUS_THRIFT_PORT ) . toString ( ) ) ;
 return new NimbusInfo ( host , port , false ) ;

nimbus host should support Config STORM_LOCAL_HOSTNAME


<nb> public class PGraphicsOpenGL2 extends PGraphics {
 if ( raw != null ) {
 SINGLE
 }
 - faceCount = NUMBER0 ;
 +
 vertexCount = NUMBER0 ;
 triangleCount = NUMBER0 ;
 }


<nb> public class FileBasedIndexImpl extends FileBasedIndex {
 }
 catch ( ProcessCanceledException e ) {
 cleanFileContent ( fc , psiFile ) ;
 + myChangedFilesCollector . invalidateIndicesForFile ( file , true ) ;
 throw e ;
 }
 catch ( StorageException e ) {


<nb> public class FacetErrorPanel {
 public void actionPerformed ( final ActionEvent e ) {
 if ( myCurrentQuickFix != null ) {
 myCurrentQuickFix . run ( myQuickFixButton ) ;
 + myValidatorsManager . validate ( ) ;
 }
 }
 } ) ;

added quickfix to include gwt servlet jar to artifact


<nb> public class TestReportDataCollector implements TestListener , TestOutputListener
 if ( className == null ) {
 SINGLE
 SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 return ;
 }
 TestClassResult classResult = results . get ( className ) ;

Added more documentation regarding TestNG


<nb> public class KeepAliveTimersTest extends CrateUnitTest {
 final KeepAliveTimers . ResettableTimer timer = futureAndTimer . v2 ( ) ;
 SettableFuture < Void > future = futureAndTimer . v1 ( ) ;

 - timer . start ( ) ;
 scheduledExecutorService . scheduleWithFixedDelay ( new Runnable ( ) {
 @ override
 public void run ( ) {
 timer . reset ( ) ;
 }
 } , NUMBER0 , NUMBER1 , TimeUnit . MILLISECONDS ) ;
 + timer . start ( ) ;
 expectedException . expect ( TimeoutException . class ) ;
 future . get ( NUMBER2 , TimeUnit . MILLISECONDS ) ;
 }


<nb> final class ActivityStack {
 ActivityOptions . abort ( options ) ;
 if ( DEBUG_STATES ) Slog . d ( TAG , STRING0 + next ) ;
 if ( DEBUG_STACK ) mStackSupervisor . validateTopActivitiesLocked ( ) ;
 +
 + SINGLE
 + mStackSupervisor . notifyActivityDrawnForKeyguard ( ) ;
 return false ;
 }

Fix that Keyguard didn t always get onActivityDrawn call


<nb> import NAMESPACE ;

 public interface ProfilerImplProtocol extends RPCProtocol {

 - void reportProfilingData ( List < InternalProfilingData > profilingData ) throws IOException ;
 + void reportProfilingData ( List < InternalProfilingData > profilingData ) throws IOException , InterruptedException ;
 }
 <nb> public class TaskManagerProfilerImpl extends TimerTask implements TaskManagerPro
 this . profilingDataContainer . clear ( ) ;
 } catch ( IOException e ) {
 LOG . error ( StringUtils . stringifyException ( e ) ) ;
 + } catch ( InterruptedException ie ) {
 + if ( LOG . isDebugEnabled ( ) ) {
 + LOG . debug ( StringUtils . stringifyException ( ie ) ) ;
 + }
 }
 }
 }

Changed ProfilerImplProtocol interface to throw an InterruptedException


<nb> public class EReceiverHolder extends EComponentHolder {
 @ override
 protected void setInit ( ) {
 init = generatedClass . method ( PRIVATE , codeModel ( ) . VOID , STRING0 ) ;
 - createOnReceive ( ) ;
 + if ( onReceiveMethod == null ) {
 + createOnReceive ( ) ;
 + }
 }

 private void createOnReceive ( ) {

call only createOnReceive only if onReceiveMethod has not yet been created


<nb> public class MultiShortestPathTree extends AbstractShortestPathTree {
 return stateSets . keySet ( ) . size ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 public boolean visit ( State state ) {
 boolean ret = false ;

add comment explaining multi SPT visit method


<nb> public class DBCollectionTest extends DatabaseTestCase {
 }

 @ test
 - @ ignore ( STRING0 )
 + @ ignore ( STRING1
 + + STRING2 )
 public void testCreateIndexAsText ( ) {
 assumeTrue ( serverVersionAtLeast ( asList ( NUMBER0 , NUMBER1 , NUMBER2 ) ) ) ;
 DBObject index = new BasicDBObject ( STRING3 , STRING4 ) ;


<nb> public class XmlRefCountHolder {
 @ override
 public void visitXmlTag ( XmlTag tag ) {
 myHolder . addUsedPrefix ( tag . getNamespacePrefix ( ) ) ;
 + String text = tag . getValue ( ) . getTrimmedText ( ) ;
 + detectPrefix ( text ) ;
 super . visitXmlTag ( tag ) ;
 }

 <nb> public class XmlRefCountHolder {
 }

 String s = value . getValue ( ) ;
 + detectPrefix ( s ) ;
 + super . visitXmlAttributeValue ( value ) ;
 + }
 +
 + private void detectPrefix ( String s ) {
 if ( s != null ) {
 int pos = s . indexOf ( STRING0 ) ;
 if ( pos > NUMBER0 ) {
 myHolder . addUsedPrefix ( s . substring ( NUMBER0 , pos ) ) ;
 }
 }
 - super . visitXmlAttributeValue ( value ) ;
 }

 private void updateMap ( @ notnull final XmlAttribute attribute , @ notnull final XmlAttributeValue value , final boolean soft ) {

Optimize Imports auto removes XML namespace declarations used only in element values


<nb> public class SearchView extends LinearLayoutCompat implements CollapsibleActionV
 }

 public SearchAutoComplete ( Context context , AttributeSet attrs ) {
 - this ( context , attrs , android . R . attr . autoCompleteTextViewStyle ) ;
 + this ( context , attrs , R . attr . autoCompleteTextViewStyle ) ;
 }

 public SearchAutoComplete ( Context context , AttributeSet attrs , int defStyle ) {

Fix SearchView s AutoCompleteTextView default style


<nb> import NAMESPACE ;
 COMMENT
 public class SortActivity extends AppCompatActivity {

 - public static final int SORT_ASCENDING = NUMBER0 ;
 - public static final int SORT_DESCENDING = NUMBER1 ;
 + private static final int SORT_ASCENDING = NUMBER0 ;
 + private static final int SORT_DESCENDING = NUMBER1 ;
 private static final int SORT_NONE = - NUMBER1 ;
 +
 private static final String [ ] ALPHABET = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ,
 STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 , STRING24 ,
 STRING25 } ;


<nb> public class MimeMap implements FileNameMap {
 new Hashtable < String , String > ( NUMBER0 ) ;
 static {
 defaultMap . put ( STRING0 , STRING1 ) ;
 + defaultMap . put ( STRING2 , STRING3 ) ;
 defaultMap . put ( STRING4 , STRING5 ) ;
 defaultMap . put ( STRING6 , STRING5 ) ;
 defaultMap . put ( STRING7 , STRING8 ) ;
 <nb> public class MimeMap implements FileNameMap {
 return map . keys ( ) ;
 }

 + public String getMimeType ( String ext ) {
 + return getContentTypeFor ( ext ) ;
 + }
 +
 public String getContentType ( String extn ) {
 String type = map . get ( extn . toLowerCase ( ) ) ;
 if ( type == null ) type = defaultMap . get ( extn ) ;


<nb> public interface CommandSender {
 public boolean isPlayer ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Corrected description of CommandSender getServer


<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
 return ;
 }

 - if ( attributeDescriptor . hasIdType ( ) ) {
 + if ( myRefCountHolder != null && attributeDescriptor . hasIdType ( ) ) {
 String unquotedValue = getUnquotedValue ( value , tag ) ;
 final XmlTag xmlTag = myRefCountHolder . getTagById ( unquotedValue ) ;

 <nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
 }

 public static HighlightInfo checkIdRefAttrValue ( XmlAttributeValue value , RefCountHolder holder ) {
 - if ( ! ( value . getParent ( ) instanceof XmlAttribute ) ) return null ;
 + if ( ! ( value . getParent ( ) instanceof XmlAttribute ) || holder == null ) return null ;
 XmlAttribute attribute = ( XmlAttribute ) value . getParent ( ) ;

 XmlTag tag = attribute . getParent ( ) ;


<nb> public class TestNGRunnableState extends JavaCommandLineState {
 LOGGER . info ( STRING0 + is15 ) ;

 SINGLE
 - javaParameters . getClassPath ( ) . add ( new File ( PathManager . getPreinstalledPluginsPath ( ) , STRING1 ) . getPath ( ) ) ;
 javaParameters . getClassPath ( ) . add ( is15 ? PathUtil . getJarPathForClass ( AfterClass . class ) : SINGLE
 new File ( PathManager . getPreinstalledPluginsPath ( ) , STRING2 ) . getPath ( ) ) ; SINGLE

remove testng integration from classpath


<nb> public class CassandraDatastore implements Datastore
 private LongDataPointFactory m_longDataPointFactory = new LongDataPointFactoryImpl ( ) ;

 @ inject
 - private List < RowKeyListener > m_rowKeyListeners ;
 + private List < RowKeyListener > m_rowKeyListeners = Collections . EMPTY_LIST ;

 @ inject

Fixed unit tests for empty row key listeners


<nb> public class SunriseSunset
 SINGLE
 SINGLE
 SINGLE
 - double dfTimeZoneIn = - FLOAT0 * tzIn . getOffset ( dateInputIn ) / NUMBER0 ;
 + double dfTimeZoneIn = - FLOAT0 * tzIn . getOffset ( dateInputIn . getTime ( ) ) / NUMBER0 ;

 SINGLE
 dfLat = dfLatIn ;


<nb> public class TestMediaType {
 m . getParameterValue ( STRING0 ) ) ;

 String expected = STRING1 +
 - STRING2 +
 - STRING3 ;
 + STRING4 +
 + STRING5 ;
 assertEquals ( expected , m . toString ( ) ) ;
 assertEquals ( expected , m . toStringNoCharset ( ) ) ;
 assertNull ( m . getCharset ( ) ) ;

Fix unit test failures after case insensitivity changes


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StreetUtils {
 COMMENT
 for ( HashSet < Vertex > island : islands ) {
 if ( island . size ( ) < NUMBER0 ) {
 - _log . warn ( STRING0
 - + island . iterator ( ) . next ( ) ) ;
 + _log . warn ( GraphBuilderAnnotation . register ( graph , Variety . GRAPH_CONNECTIVITY ,
 + island . iterator ( ) . next ( ) , island ) ) ;
 for ( Vertex vertex : island ) {
 depedestrianizeOrRemove ( graph , vertex ) ;
 }

register a graphbuilder annotation when an island is pruned


<nb> public class CrshAutoConfigurationTests {
 this . context . register ( SecurityConfiguration . class ) ;
 this . context . register ( CrshAutoConfiguration . class ) ;
 this . context . refresh ( ) ;
 -
 +
 PluginLifeCycle lifeCycle = this . context . getBean ( PluginLifeCycle . class ) ;
 assertEquals ( lifeCycle . getConfig ( ) . get ( STRING0 ) , STRING1 ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocalTransferManager extends AbstractTransferManager {
 throw new StorageException ( STRING0 + repoPath ) ;
 }

 - Set < RemoteFile > filesToIgnore = getFilesInTransactions ( ) ;
 + Set < RemoteFile > filesToIgnore ;
 + if ( remoteFileClass . equals ( TransactionRemoteFile . class ) ) {
 + SINGLE
 + filesToIgnore = new HashSet < RemoteFile > ( ) ;
 + }
 + else {
 + filesToIgnore = getFilesInTransactions ( ) ;
 +
 + }
 +
 SINGLE
 Map < String , T > remoteFiles = new HashMap < String , T > ( ) ;

Don t ignore transaction files to prevent stackoverflow


<nb> public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
 }
 }
 else {
 + ProcessHandler processHandler = getProcessHandler ( ) ;
 + boolean terminated =
 + processHandler != null && ( processHandler . isProcessTerminating ( ) || processHandler . isProcessTerminated ( ) ) ;
 +
 fail ( ) ;
 DebuggerInvocationUtil . swingInvokeLater ( myProject , ( ) - > {
 SINGLE
 SINGLE
 SINGLE
 - if ( myExecutionResult != null || ! connectorIsReady . get ( ) ) {
 + if ( ( myExecutionResult != null && ! terminated ) || ! connectorIsReady . get ( ) ) {
 ExecutionUtil . handleExecutionError ( myProject , ToolWindowId . DEBUG , sessionName , e ) ;
 }
 } ) ;

do not show failed debugger start notification if the process died before attach


<nb> public class WebSocketAsyncConnection extends AbstractAsyncConnection implements
 }
 finally
 {
 - SINGLE
 - SINGLE
 + fillInterested ( ) ;
 setCurrentConnection ( null ) ;
 bufferPool . release ( buffer ) ;
 }


<nb> public class MobileSignalController extends SignalController <

 mapIconSets ( ) ;

 - mLastState . networkName = mCurrentState . networkName = mNetworkNameDefault ;
 - mLastState . networkNameData = mCurrentState . networkNameData = mNetworkNameDefault ;
 + String networkName = info . getCarrierName ( ) != null ? info . getCarrierName ( ) . toString ( )
 + : mNetworkNameDefault ;
 + mLastState . networkName = mCurrentState . networkName = networkName ;
 + mLastState . networkNameData = mCurrentState . networkNameData = networkName ;
 mLastState . enabled = mCurrentState . enabled = hasMobileData ;
 mLastState . iconGroup = mCurrentState . iconGroup = mDefaultIcons ;
 SINGLE

Initialize network name better in NetworkController


<nb> public abstract class JdbcInterceptor implements InvocationHandler {
 }

 public boolean compare ( String name1 , String name2 ) {
 - if ( useEquals ( ) ) {
 + if ( isUseEquals ( ) ) {
 return name1 . equals ( name2 ) ;
 } else {
 return name1 == name2 ;
 <nb> public abstract class JdbcInterceptor implements InvocationHandler {
 this . properties = properties ;
 }

 - public boolean getUseEquals ( ) {
 - return useEquals ( ) ;
 - }
 -
 - public boolean useEquals ( ) {
 + public boolean isUseEquals ( ) {
 return useEquals ;
 }


<nb> public class JsonPathHelloWorld {
 . read ( STRING0 , List . class ) ;

 System . out . println ( expensiveBooks ) ; SINGLE
 +
 + System . out . println ( ) ;
 + String jsonHiWorld = STRING1 ;
 + String message = JsonPath . read ( jsonHiWorld , STRING2 ) ;
 + String place = JsonPath . read ( jsonHiWorld , STRING3 ) ;
 + System . out . println ( message + STRING4 + place ) ; SINGLE
 +
 }

 private final static String json = STRING5 +


<nb> public class TranslateAnimation3D extends Animation3D {
 super . setDuration ( duration ) ;
 mLookatDelta = FLOAT0 / duration ;
 }
 +
 + @ override
 + public void reset ( ) {
 + super . reset ( ) ;
 + SINGLE
 + mDiffPosition = null ;
 + }
 }

Resolved bug in TranslateAnimation3D that caused unexpected translations when reusing animation


<nb> public class InputRegistry extends HashSet < IOState < MessageInput > > {
 if ( inputState != null )
 inputState . setState ( IOState . Type . TERMINATED ) ;

 - return super . remove ( input ) ;
 + return super . remove ( inputState ) ;
 }

 public boolean remove ( IOState < MessageInput > inputState ) {


<nb> public class HttpRequest {
 public static final String HEADER_EXPIRES = STRING0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - public static final String HEADER_HOST = STRING1 ;
 -
 - COMMENT
 COMMENT
 COMMENT
 public static final String HEADER_LAST_MODIFIED = STRING2 ;
 <nb> public class HttpRequest {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public HttpRequest host ( final String value ) {
 - return header ( HEADER_HOST , value ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ModulesConfigurator implements ModulesProvider , ModuleEditor . Change
 for ( ModuleEditor . ChangeListener listener : myAllModulesChangeListeners ) {
 listener . moduleStateChanged ( moduleRootModel ) ;
 }
 + myContext . getDaemonAnalyzer ( ) . queueUpdate ( new ModuleProjectStructureElement ( myContext , moduleRootModel . getModule ( ) ) ) ;
 }

 public void addAllModuleChangeListener ( ModuleEditor . ChangeListener listener ) {

recheck module element when its root model is changed via api


<nb> public class TestProxy extends AbstractTestProxy {
 if ( parentLocation != null ) {
 final PsiElement parentElement = parentLocation . getPsiElement ( ) ;
 if ( parentElement instanceof PsiClass ) {
 - final PsiAnnotation annotation = AnnotationUtil . findAnnotation ( ( PsiClass ) parentElement , JUnitUtil . RUN_WITH ) ;
 + final PsiAnnotation annotation = AnnotationUtil . findAnnotationInHierarchy ( ( PsiClass ) parentElement , Collections . singleton ( JUnitUtil . RUN_WITH ) ) ;
 if ( annotation != null ) {
 final PsiAnnotationMemberValue attributeValue = annotation . findAttributeValue ( STRING0 ) ;
 if ( attributeValue instanceof PsiClassObjectAccessExpression ) {


<nb> public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn
 clearSessionCookie ( cr ) ;
 SINGLE
 SINGLE
 - if ( mContactListManager != null ) {
 - mContactListManager . clearOnLogout ( ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE

 mConnectionState = state ;
 } else if ( state == ImConnection . SUSPENDED && error != null ) {

Don t clear list contacts data from memory on logout


<nb> public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
 private final SplitterProportionsData splitterProportions = new SplitterProportionsDataImpl ( ) ;
 private final MessageBusConnection myConnection ;
 private final Map < String , Element > myUninitializedPaneState = new HashMap < String , Element > ( ) ;
 - private final Map < String , SelectInTarget > mySelectInTargets = new HashMap < String , SelectInTarget > ( ) ;
 + private final Map < String , SelectInTarget > mySelectInTargets = new LinkedHashMap < String , SelectInTarget > ( ) ;
 private ContentManager myContentManager ;
 private boolean myFoldersAlwaysOnTop = true ;

preserve registration order to prevent select in Packages by default


<nb> public class AvroExternalJarProgramITCase {
 private static final String TEST_DATA_FILE = STRING0 ;

 static {
 - LogUtils . initializeDefaultConsoleLogger ( ) ;
 + LogUtils . initializeDefaultTestConsoleLogger ( ) ;
 }

 @ test


<nb> public class PlansActivity extends AppCompatActivity {

 hideProgress ( ) ;

 - mViewPager . setOffscreenPageLimit ( mAvailablePlans . length - NUMBER0 ) ;
 mViewPager . setAdapter ( getPageAdapter ( ) ) ;

 mTabLayout . setTabMode ( TabLayout . MODE_FIXED ) ;


<nb> public class TestDiscoveryIndex implements ProjectComponent {
 ApplicationManager . getApplication ( ) . executeOnPooledThread ( new Runnable ( ) {
 @ override
 public void run ( ) {
 + String path = TestDiscoveryExtension . baseTestDiscoveryPathForProject ( myProject ) ;
 + if ( ! new File ( path ) . exists ( ) ) return ;
 +
 getHolder ( ) ; SINGLE
 }
 } ) ;

skip index data initialization if the directory doesn t exist


<nb> public class KeyguardBouncer {
 }

 public void show ( boolean resetSecuritySelection ) {
 + final int keyguardUserId = KeyguardUpdateMonitor . getCurrentUser ( ) ;
 + if ( keyguardUserId == UserHandle . USER_SYSTEM && UserManager . isSplitSystemUser ( ) ) {
 + SINGLE
 + return ;
 + }
 mFalsingManager . onBouncerShown ( ) ;
 ensureView ( ) ;
 if ( resetSecuritySelection ) {
 <nb> public class KeyguardBouncer {
 }

 final int activeUserId = ActivityManager . getCurrentUser ( ) ;
 - final int keyguardUserId = KeyguardUpdateMonitor . getCurrentUser ( ) ;
 final boolean allowDismissKeyguard =
 ! ( UserManager . isSplitSystemUser ( ) && activeUserId == UserHandle . USER_SYSTEM )
 && activeUserId == keyguardUserId ;

Don t show UNLOCK button when there are no users


<nb> public class IdEdge extends IdElement implements Edge {
 public Edge setProperty ( final String key , final Object value ) {
 return ( Edge ) super . setProperty ( key , value ) ;
 }
 +
 + public String toString ( ) {
 + return STRING0 + getId ( ) + STRING1 + baseElement + STRING2 ;
 + }
 }
 <nb> public class IdVertex extends IdElement implements Vertex {
 public Vertex setProperty ( final String key , final Object value ) {
 return ( Vertex ) super . setProperty ( key , value ) ;
 }
 +
 + public String toString ( ) {
 + return STRING3 + getId ( ) + STRING1 + baseElement + STRING2 ;
 + }
 }

Added toString methods for IdVertex and IdEdge


<nb> public abstract class PlaybackController {
 if ( AppConfig . DEBUG )
 Log . d ( TAG ,
 STRING0 ) ;
 - bound = activity . bindService ( new Intent ( activity , PlaybackService . class ) , mConnection , NUMBER0 ) ;
 + bound = activity . bindService ( new Intent ( activity ,
 + PlaybackService . class ) , mConnection , NUMBER0 ) ;
 }
 if ( AppConfig . DEBUG )
 Log . d ( TAG , STRING1 + bound ) ;
 <nb> public abstract class PlaybackController {

 setupGUI ( ) ;
 handleStatus ( ) ;
 + SINGLE
 + mediaInfoLoaded = false ;

 } else {
 Log . e ( TAG ,

Reload media info later if playbackservice has no media object when it s


<nb> public final class RenderTaskListGenerator {
 intermediateList . add ( node ) ;
 SINGLE
 for ( StateChange stateChange : node . getDesiredStateChanges ( ) ) {
 - SINGLE
 StateChange defaultInstance = stateChange . getDefaultInstance ( ) ;
 - if ( defaultInstance != null ) {
 - intermediateList . add ( defaultInstance ) ;
 - }
 + intermediateList . add ( defaultInstance ) ;
 }
 -
 }
 logList ( STRING0 , intermediateList ) ; SINGLE
 }

Remove null check of defaultInstance in RenderTaskListGenerator


<nb> public class NativeViewHierarchyManager {
 tagsToDelete ) ) ;
 }

 - View viewToRemove = viewToManage . getChildAt ( indexToRemove ) ;
 + View viewToRemove = viewManager . getChildAt ( viewToManage , indexToRemove ) ;

 if ( mLayoutAnimator . shouldAnimateLayout ( viewToRemove ) &&
 arrayContains ( tagsToDelete , viewToRemove . getId ( ) ) ) {

Fix deletion layout animations to work with custom view managers


<nb> public interface Code {

 Object clone ( Set < Code > seen ) ;

 + String getName ( ) ;

 COMMENT
 COMMENT
 <nb> public class DefaultCode implements Code , Cloneable {
 return newScopes ;
 }
 }
 +
 + @ override
 + public String getName ( ) {
 + return name ;
 + }
 +
 }

Allow access to the name of a code for template analysis


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI {
 g . setColor ( parent . getBackground ( ) ) ;
 g . fillRect ( NUMBER0 , NUMBER0 , c . getWidth ( ) , c . getHeight ( ) ) ;
 }
 - final GraphicsConfig config = new GraphicsConfig ( g ) ;
 - g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ;
 - g . setRenderingHint ( RenderingHints . KEY_STROKE_CONTROL , RenderingHints . VALUE_STROKE_NORMALIZE ) ;

 if ( isSearchField ( c ) ) {
 paintSearchField ( g , c , r ) ;
 <nb> public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI {
 super . paintBackground ( g ) ;
 }
 }
 - config . restore ( ) ;
 }

 @ notnull

remove unnecessary AA options for text fields to reduce blurred lines


<nb> import NAMESPACE ;
 @ implements ( Display . class )
 public class ShadowDisplay {
 private int displayId ;
 - private int width = NUMBER0 ;
 - private int height = NUMBER1 ;
 + private int width = NUMBER1 ;
 + private int height = NUMBER0 ;
 private float density = FLOAT0 ;
 private int densityDpi = DisplayMetrics . DENSITY_HIGH ;
 private float xdpi = FLOAT1 ;

Fixed ShadowDisplay s default width and height


<nb> public class ImagePresenter < T > {
 handler . removeCallbacksAndMessages ( PENDING_SIZE_CHANGE_TOKEN ) ;
 this . cb = null ;
 ViewGroup . LayoutParams layoutParams = view . getLayoutParams ( ) ;
 - if ( layoutParams . width > NUMBER0 && layoutParams . height > NUMBER0 ) {
 + if ( layoutParams != null && layoutParams . width > NUMBER0 && layoutParams . height > NUMBER0 ) {
 cb . onSizeReady ( layoutParams . width , layoutParams . height ) ;
 } else if ( valid ) {
 cb . onSizeReady ( width , height ) ;

Fix an NPE if layout params not yet set in view


<nb> public class Imports {
 imports . add ( STRING0 ) ;
 imports . add ( STRING1 ) ;
 imports . add ( STRING2 ) ;
 + imports . add ( STRING3 ) ;
 imports . add ( STRING4 ) ;
 imports . add ( STRING5 ) ;
 imports . add ( STRING6 ) ;

added automatic import support for ReadOnlyGraph


<nb> public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
 myProgressIcon . setBorder ( StatusBarWidget . WidgetBorder . INSTANCE ) ;
 myProgressIcon . setToolTipText ( ActionsBundle . message ( STRING0 ) ) ;

 - myUpdateQueue = new MergingUpdateQueue ( STRING1 , NUMBER0 , true , MergingUpdateQueue . ANY_COMPONENT ) ;
 + myUpdateQueue = new MergingUpdateQueue ( STRING1 , NUMBER1 , true , MergingUpdateQueue . ANY_COMPONENT ) ;
 myPopup = new ProcessPopup ( this ) ;

 setRefreshVisible ( false ) ;


<nb> public abstract class ProjectWizardTestCase < T extends AbstractProjectWizard > ext
 }
 } ) ;
 SelectTemplateSettings . getInstance ( ) . setLastTemplate ( null , null ) ;
 - UIUtil . dispatchAllInvocationEvents ( ) ;
 - Thread . sleep ( NUMBER0 ) ; SINGLE
 - UIUtil . dispatchAllInvocationEvents ( ) ;
 - super . tearDown ( ) ;
 + try {
 + UIUtil . dispatchAllInvocationEvents ( ) ;
 + Thread . sleep ( NUMBER0 ) ; SINGLE
 + UIUtil . dispatchAllInvocationEvents ( ) ;
 + }
 + finally {
 + super . tearDown ( ) ;
 + }
 }

 protected Module importModuleFrom ( ProjectImportProvider provider , String path ) {

call tearDown even when some invokeLater throws exceptions


<nb> public class BasicCacheLiteMemberTest
 testCacheCreation ( liteCachingProvider , instanceCachingProvider ) ;
 }

 - public void testPutFromLiteMember ( ) {
 -
 - }
 -
 private void testCacheCreation ( final HazelcastServerCachingProvider providerToCreate ,
 final HazelcastServerCachingProvider providerToValidate ) {
 -
 CacheManager cacheManager = providerToCreate . getCacheManager ( ) ;
 assertNotNull ( cacheManager ) ;

Remove empty left over method in BasicCacheLiteMemberTest


<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
 protected MavenProjectHelper projectHelper ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private Sdk sdk ;

Improved Javadoc for config parameter sdk


<nb> public class EpisodeDetailsFragment extends Fragment implements ActionsFragmentC

 @ override
 public void onLoadFinished ( Loader < Cursor > loader , Cursor data ) {
 + if ( ! isAdded ( ) ) {
 + return ;
 + }
 populateEpisodeData ( data ) ;
 }

Do not populate episode views if fragment is not added


<nb> public interface UnresolvedDependencyResult extends DependencyResult {
 COMMENT
 COMMENT
 COMMENT
 - Exception getFailure ( ) ;
 + Throwable getFailure ( ) ;
 }

Changed the return type of UnresolvedDependencyResult getFailure


<nb> public class AlertPatch implements Serializable {
 }

 public void apply ( Graph graph ) {
 -
 + COMMENT
 if ( route != null || trip != null || agency != null ) {
 List < RouteVariant > variants ;

 <nb> public class AlertPatch implements Serializable {
 edge = index . getPreAlightEdge ( stop ) ;
 graph . addAlertPatch ( edge , this ) ;
 }
 + COMMENT
 }

 public void remove ( Graph graph ) {
 - TransitIndexService index = graph . getService ( TransitIndexService . class ) ;
 -
 + COMMENT
 if ( route != null || trip != null || agency != null ) {
 List < RouteVariant > variants ;

 <nb> public class AlertPatch implements Serializable {
 edge = index . getPreAlightEdge ( stop ) ;
 graph . removeAlertPatch ( edge , this ) ;
 }
 + COMMENT
 }

 public void setAlert ( Alert alert ) {


<nb> public class XbmcConnector {
 private enum State {
 Play ,
 Pause ,
 + End ,
 Stop
 }

 <nb> public class XbmcConnector {
 }

 if ( STRING0 . equals ( method ) ) {
 + SINGLE
 + Map < String , Object > params = RpcCall . getMap ( json , STRING1 ) ;
 + Map < String , Object > data = RpcCall . getMap ( params , STRING2 ) ;
 + Boolean end = ( Boolean ) data . get ( STRING3 ) ;
 + if ( end ) {
 + updateState ( State . End ) ;
 + }
 updateState ( State . Stop ) ;
 }
 }

Add End state when playback stops without input from user


<nb> public class Tethering extends INetworkManagementEventObserver . Stub {
 return ;
 }

 + if ( mTetheredNotification != null ) {
 + if ( mTetheredNotification . icon == icon ) {
 + return ;
 + }
 + notificationManager . cancel ( mTetheredNotification . icon ) ;
 + }
 +
 Intent intent = new Intent ( ) ;
 intent . setClassName ( STRING0 , STRING1 ) ;
 intent . setFlags ( Intent . FLAG_ACTIVITY_NO_HISTORY ) ;

Fix Tethering Notifications for multiple ifaces


<nb> public class FeedRefreshTaskGiver {
 }

 public void giveBack ( Feed feed ) {
 - metricsBean . feedUpdated ( ) ;
 giveBackQueue . add ( feed ) ;
 }

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

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

 @ inject
 ApplicationSettingsService applicationSettingsService ;
 +
 + @ inject
 + MetricsBean metricsBean ;

 @ inject
 FeedSubscriptionDAO feedSubscriptionDAO ;
 <nb> public class FeedRefreshUpdater {
 if ( applicationSettingsService . get ( ) . isPubsubhubbub ( ) ) {
 handlePubSub ( feed ) ;
 }
 + metricsBean . feedUpdated ( ) ;
 taskGiver . giveBack ( feed ) ;
 }

increment feed update metric only when we actually update the feed


<nb> public class AllEpisodesFragment extends Fragment {
 @ override
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;
 - SINGLE
 setHasOptionsMenu ( true ) ;
 }

 <nb> public class EpisodesFragment extends Fragment {
 public View onCreateView ( LayoutInflater inflater , ViewGroup container ,
 Bundle savedInstanceState ) {
 super . onCreateView ( inflater , container , savedInstanceState ) ;
 + setHasOptionsMenu ( true ) ;
 ( ( MainActivity ) getActivity ( ) ) . getSupportActionBar ( ) . setTitle ( R . string . episodes_label ) ;

 View rootView = inflater . inflate ( R . layout . episodes_fragment , container , false ) ;


<nb> public class ReachableNodes {
 walk ( headIds , true , consumer ) ;
 }

 - public void walk ( @ notnull Collection < Integer > startNodes , final boolean goDown , @ notnull final Consumer < Integer > consumer ) {
 + private void walk ( @ notnull Collection < Integer > startNodes , final boolean goDown , @ notnull final Consumer < Integer > consumer ) {
 synchronized ( myTempFlags ) {

 myTempFlags . setAll ( false ) ;


<nb> public class ManagementClient {
 }

 public boolean isServerInRunningState ( ) {
 - try {
 - ModelNode op = Util . getEmptyOperation ( READ_ATTRIBUTE_OPERATION , PathAddress . EMPTY_ADDRESS . toModelNode ( ) ) ;
 + try { ModelNode op = Util . getEmptyOperation ( READ_ATTRIBUTE_OPERATION , PathAddress . EMPTY_ADDRESS . toModelNode ( ) ) ;
 op . get ( NAME ) . set ( STRING0 ) ;

 ModelNode rsp = client . execute ( op ) ;

Add a http client that ignores cookie origin for use in the clustering tests


<nb> public class EasyDeviceMod {
 case Build . VERSION_CODES . M :
 codename = STRING0 ;
 break ;
 + case Build . VERSION_CODES . N :
 + codename = STRING1 ;
 + break ;
 default :
 codename = STRING2 ;
 break ;


<nb> public class RuntimeEnvironmentTest {
 String path = f . getCanonicalPath ( ) ;
 assertTrue ( f . delete ( ) ) ;
 instance . setDataRoot ( path ) ;
 + assertTrue ( f . delete ( ) ) ;
 assertEquals ( path , instance . getDataRootPath ( ) ) ;
 assertEquals ( path , instance . getDataRootFile ( ) . getCanonicalPath ( ) ) ;
 }


<nb> public class MainActivity extends AppCompatActivity {
 try {
 throw new NullPointerException ( ) ;
 } catch ( NullPointerException ex ) {
 + SINGLE
 Crash . log ( Level . INFO . intValue ( ) , TAG , STRING0 ) ;
 Crash . report ( ex ) ;
 + SINGLE
 }
 } else {
 throw new NullPointerException ( ) ;
 <nb> public class MainActivity extends AppCompatActivity {

 SINGLE
 SINGLE
 + SINGLE
 Crash . log ( STRING1 ) ;
 + SINGLE
 }
 }


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 @ suppresswarnings ( { STRING0 } )
 public class FakeTextView extends FakeView {
 private CharSequence text ;
 Rectangle rectangle ;
 public Directions compoundDrawablesWithIntrinsicBounds ;
 + public int textResourceId = - NUMBER0 ;

 public FakeTextView ( TextView view ) {
 super ( view ) ;
 }

 public final void setText ( CharSequence text ) {
 + this . textResourceId = - NUMBER0 ;
 this . text = text ;
 }

 - public final void setText ( int titleRes ) {
 + public final void setText ( int textResourceId ) {
 + this . textResourceId = textResourceId ;
 this . text = STRING1 ; SINGLE
 }

Added ability to check what resource a TextView had it s text set from


<nb> public abstract class UsefulTestCase extends TestCase {
 myTempDir = ORIGINAL_TEMP_DIR + STRING0 + testName + STRING1 + PRNG . nextInt ( NUMBER0 ) ;
 FileUtil . resetCanonicalTempPathCache ( myTempDir ) ;
 }
 + Timings . getStatistics ( ) ; SINGLE
 }

 @ override

do not count CPU warm up towards test elapsed time


<nb> public abstract class AbstractLogHandlerAssignmentHandler extends AbstractModelU
 COMMENT
 COMMENT
 protected OperationFailedException createFailureMessage ( final String description ) {
 - ModelNode failure = new ModelNode ( ) ;
 - failure . get ( FAILURE_DESCRIPTION , description ) ;
 + ModelNode failure = new ModelNode ( ) . set ( description ) ;
 return new OperationFailedException ( failure ) ;
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FileChooserDescriptor implements Cloneable {
 }

 SINGLE
 - if ( myHideIgnored && FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) ) ) {
 + if ( isHideIgnored ( ) && ! showHiddenFiles && FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) ) ) {
 return false ;
 }

Show hidden files now shows those in General Ignore list


<nb> public class ModelSchemaUtils {
 @ override
 public void visitType ( Class < ? > type ) {
 for ( Method method : type . getDeclaredMethods ( ) ) {
 - SINGLE
 int modifiers = method . getModifiers ( ) ;
 if ( method . isSynthetic ( ) || Modifier . isStatic ( modifiers ) || ! Modifier . isPublic ( modifiers ) ) {
 continue ;


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PrimitiveRenderer extends NodeRendererImpl {
 StringBuilder buf = new StringBuilder ( NUMBER0 ) ;
 if ( value instanceof CharValue ) {
 buf . append ( STRING0 ) ;
 - buf . append ( value . toString ( ) ) ;
 + buf . append ( DebuggerUtils . translateStringValue ( value . toString ( ) ) ) ;
 buf . append ( STRING1 ) ;
 long longValue = ( ( PrimitiveValue ) value ) . longValue ( ) ;
 buf . append ( Long . toString ( longValue ) ) ;


<nb> import static NAMESPACE ;
 public class CassandraRecordSetProvider
 implements ConnectorRecordSetProvider
 {
 - private static final Logger log = Logger . get ( ConnectorRecordSetProvider . class ) ;
 + private static final Logger log = Logger . get ( CassandraRecordSetProvider . class ) ;

 private final String connectorId ;
 private final CassandraSession cassandraSession ;

Fix initializing logger with wrong class


<nb> public final class ProcessorConfigProfileImpl implements ProcessorConfigProfile

 @ override
 public void setGeneratedSourcesDirectoryName ( @ nullable String name , boolean forTests ) {
 - if ( name == null || name . trim ( ) . isEmpty ( ) ) {
 - name = STRING0 ;
 - }
 if ( forTests ) {
 - myGeneratedTestsDirectoryName = name ;
 + myGeneratedTestsDirectoryName = name != null ? name . trim ( ) : DEFAULT_TESTS_DIR_NAME ;
 }
 else {
 - myGeneratedProductionDirectoryName = name ;
 + myGeneratedProductionDirectoryName = name != null ? name . trim ( ) : DEFAULT_PRODUCTION_DIR_NAME ;
 }
 }

do not override default values if corresponding attributes is missing from the xml


<nb> public class Sketch {

 SINGLE
 if ( destFile . exists ( ) ) {
 - Object [ ] options = { Language . text ( STRING0 ) , Language . text ( STRING1 ) } ;
 + Object [ ] options = { Language . text ( STRING2 ) , Language . text ( STRING1 ) } ;
 String prompt = STRING3 + filename + STRING4 ;
 int result = JOptionPane . showOptionDialog ( editor ,
 prompt ,


<nb> public class Capsule implements Runnable {
 if ( ATTR_JAVA_AGENTS == attr ) {
 final Map < Object , String > agents = new LinkedHashMap < > ( cast ( ATTR_JAVA_AGENTS , value ) ) ;
 assert isWrapperCapsule ( ) ^ findOwnJarFile ( ) . equals ( getJarFile ( ) ) ;
 - agents . put ( findOwnJarFile ( ) . toString ( ) , isWrapperCapsule ( ) ? getJarFile ( ) . toString ( ) : STRING0 ) ;
 + agents . put ( processOutgoingPath ( findOwnJarFile ( ) ) , isWrapperCapsule ( ) ? processOutgoingPath ( getJarFile ( ) ) : STRING0 ) ;
 return ( T ) agents ;
 }

 <nb> public class Capsule implements Runnable {
 private Path setJavaHomeEnv ( ProcessBuilder pb , Path javaHome ) {
 if ( javaHome == null )
 return null ;
 - pb . environment ( ) . put ( VAR_JAVA_HOME , javaHome . toString ( ) ) ;
 + pb . environment ( ) . put ( VAR_JAVA_HOME , processOutgoingPath ( javaHome ) ) ;
 return javaHome ;
 }
 SINGLE


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

 import static NAMESPACE ;

 <nb> public final class StreamConfigurationMap {
 COMMENT
 COMMENT
 public Size [ ] getHighSpeedVideoSizes ( ) {
 - return ( Size [ ] ) mHighSpeedVideoSizeMap . keySet ( ) . toArray ( ) ;
 + Set < Size > keySet = mHighSpeedVideoSizeMap . keySet ( ) ;
 + return keySet . toArray ( new Size [ keySet . size ( ) ] ) ;
 }

 COMMENT
 <nb> public final class StreamConfigurationMap {
 COMMENT
 @ suppresswarnings ( STRING0 )
 public Range < Integer > [ ] getHighSpeedVideoFpsRanges ( ) {
 - return ( Range < Integer > [ ] ) mHighSpeedVideoFpsRangeMap . keySet ( ) . toArray ( ) ;
 + Set < Range < Integer > > keySet = mHighSpeedVideoFpsRangeMap . keySet ( ) ;
 + return keySet . toArray ( new Range [ keySet . size ( ) ] ) ;
 }

 COMMENT


<nb> public class BreakpointsConfigurationDialogFactory {
 reset ( ) ;
 }

 + @ nonnls
 + protected String getDimensionServiceKey ( ) {
 + return STRING0 ;
 + }
 +
 protected Action [ ] createActions ( ) {
 return new Action [ ] { getOKAction ( ) , getHelpAction ( ) } ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class App {


<nb> import NAMESPACE

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

 COMMENT
 COMMENT
 <nb> public class MongoRepositoriesAutoConfiguration {
 }

 public String database ( ) {
 - return this . database == null ? new MongoURI ( this . uri ) . getDatabase ( )
 + return this . database == null ? new MongoClientURI ( this . uri ) . getDatabase ( )
 : this . database ;
 }

 public Mongo mongo ( ) throws UnknownHostException {
 - return this . host != null ? new Mongo ( this . host , this . port ) : new Mongo (
 - new MongoURI ( this . uri ) ) ;
 + return this . host != null ? new MongoClient ( this . host , this . port )
 + : new MongoClient ( new MongoClientURI ( this . uri ) ) ;
 }

 public void setHost ( String host ) {

Use non deprecated API to create Mongo client


<nb> public class GBM extends SharedTreeModelBuilder < GBM . GBMModel > {
 for ( int n = NUMBER0 ; n < t . len ( ) - t . leaves ; n ++ )
 if ( t . node ( n ) instanceof DecidedNode ) { SINGLE
 Split split = t . decided ( n ) . _split ;
 - _improvPerVar [ split . _col ] += split . improvement ( ) ; SINGLE
 + if ( split . _col != - NUMBER1 ) SINGLE
 + _improvPerVar [ split . _col ] += split . improvement ( ) ; SINGLE
 }
 }
 }

Skip decided nodes with impossible splits


<nb> public class SplitPane extends WidgetGroup {
 }

 public void setMaxSplitAmount ( float maxAmount ) {
 - if ( maxAmount > NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ;
 + if ( maxAmount > NUMBER0 ) throw new GdxRuntimeException ( STRING1 ) ;
 if ( maxAmount <= minAmount ) throw new GdxRuntimeException ( STRING2 ) ;
 this . maxAmount = maxAmount ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 @ beta
 - public class ListenableFutureTask < V > extends FutureTask < V >
 + public final class ListenableFutureTask < V > extends FutureTask < V >
 implements ListenableFuture < V > {

 SINGLE
 private final ExecutionList executionList = new ExecutionList ( ) ;
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ListenableFutureTask < V > extends FutureTask < V >
 public void addListener ( Runnable listener , Executor exec ) {
 executionList . add ( listener , exec ) ;
 }
 -
 +
 @ override
 protected void done ( ) {
 executionList . run ( ) ;


<nb> public class ContentProvider extends android . content . ContentProvider {

 @ override
 public int delete ( Uri uri , String selection , String [ ] selectionArgs ) {
 - int count = Cache . openDatabase ( ) . delete ( uri . getPath ( ) , selection , selectionArgs ) ;
 + Class < ? extends Model > type = getModelType ( uri ) ;
 + int count = Cache . openDatabase ( ) . delete ( Cache . getTableName ( type ) , selection , selectionArgs ) ;
 notifyChange ( uri ) ;

 return count ;


<nb> public class SqlTextArea extends RSyntaxTextArea {
 switch ( e . getKeyCode ( ) ) {
 case KeyEvent . VK_P :
 if ( isControlDown && isShiftDown ) {
 - SINGLE
 - int position = RSyntaxUtilities . getMatchingBracketPosition ( SqlTextArea . this ) ;
 + int position = RSyntaxUtilities . getMatchingBracketPosition ( SqlTextArea . this , null ) . y ;
 if ( position >= NUMBER0 ) {
 setCaretPosition ( position + NUMBER1 ) ;
 }

Fixed compilation error due to broken RSyntaxTextarea API evolution


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ contentview ( R . layout . main )
 public class AstroboyMasterConsole extends RoboActivity {

 SINGLE
 <nb> public class AstroboyMasterConsole extends RoboActivity {
 @ override
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ; SINGLE
 + setContentView ( R . layout . main ) ;

 sayText . setOnEditorActionListener ( new OnEditorActionListener ( ) {
 public boolean onEditorAction ( TextView textView , int i , KeyEvent keyEvent ) {

temporarily remove ContentView from demo it s causing problems with annotation processing not sure why yet


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TaskEditWrapperActivity extends AstridWrapperActivity {
 }

 @ override
 + public void setTitle ( CharSequence title ) {
 + Fragment frag = ( Fragment ) getSupportFragmentManager ( )
 + . findFragmentById ( R . id . tasklist_fragment ) ;
 + if ( frag != null && frag . isInLayout ( ) )
 + ( ( TextView ) frag . getView ( ) . findViewById ( R . id . listLabel ) ) . setText ( title ) ;
 + SINGLE
 + getSupportActionBar ( ) . setTitle ( title ) ;
 + }
 +
 + @ override
 public void finish ( ) {
 super . finish ( ) ;
 AndroidUtilities . callOverridePendingTransition ( this , R . anim . slide_right_in , R . anim . slide_right_out ) ;

Fixed a bug with missing list title in task edit wrapper activity


<nb> public class ResourceLoaderTest {
 assertThat ( textView . getText ( ) . toString ( ) , equalTo ( STRING0 ) ) ;
 resourceLoader . setLayoutQualifierSearchPath ( STRING1 ) ; SINGLE
 }
 +
 + @ test
 + public void shouldIdentifyNinePatchDrawables ( ) {
 + ResourceLoader resourceLoader = Robolectric . getShadowApplication ( ) . getResourceLoader ( ) ;
 +
 + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . nine_patch_drawable ) , equalTo ( true ) ) ;
 + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . l2_yellow ) , equalTo ( false ) ) ;
 + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . state_drawable ) , equalTo ( false ) ) ;
 + assertThat ( resourceLoader . isNinePatchDrawable ( R . drawable . animation_list ) , equalTo ( false ) ) ;
 + }
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;

 <nb> public class IgnitedStrings {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static String underscore ( String camelCaseString , Locale locale ) {
 + String [ ] words = splitByCharacterTypeCamelCase ( camelCaseString ) ;
 + return TextUtils . join ( STRING0 , words ) . toLowerCase ( locale ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add a variation of the underscore helper that takes a locale


<nb> public class MocoHandler extends SimpleChannelInboundHandler < FullHttpRequest > {
 setContentLength ( response , response . content ( ) . writerIndex ( ) ) ;
 }
 }
 -
 - private FullHttpResponse defaultResponse ( HttpRequest request , HttpResponseStatus status ) {
 - return new DefaultFullHttpResponse ( HttpVersion . valueOf ( request . getVersion ( ) . text ( ) ) , status ) ;
 - }
 }


<nb> public class MultiLayerTest {
 network . setLabels ( trainTest . getTrain ( ) . getLabels ( ) ) ;
 network . computeGradientAndScore ( ) ;
 INDArray grad = network . gradient ( ) . gradient ( ) ;
 +
 + assertTrue ( STRING0 , ! Nd4j . hasInvalidNumber ( grad ) ) ;
 +
 int numParams = network . numParams ( ) ;
 network . fit ( trainTest . getTrain ( ) ) ;

Modified BatchNormalization test to fail


<nb> public class Table extends JTable {
 add ( editorComp ) ;
 editorComp . validate ( ) ;

 + editorComp . requestFocusInWindow ( ) ;
 +
 setCellEditor ( editor ) ;
 setEditingRow ( row ) ;
 setEditingColumn ( column ) ;


<nb> public class Requirements {
 }

 SINGLE
 -
 checkService ( context , Context . ACCOUNT_SERVICE , new String [ ] { STRING0 } ) ;
 checkService ( context , Context . ACTIVITY_SERVICE , new String [ ] { STRING1 } ) ;
 - checkService ( context , Context . CLIPBOARD_SERVICE , new String [ ] { STRING2 ,
 - STRING3 } ) ;
 + checkService ( context , Context . CLIPBOARD_SERVICE , new String [ ] { STRING3 } ) ;
 checkService ( context , Context . CONNECTIVITY_SERVICE , new String [ ] { STRING4 } ) ;
 checkService ( context , Context . LOCATION_SERVICE , new String [ ] { STRING5 } ) ;
 Class < ? > serviceClass = context . getPackageManager ( ) . getClass ( ) ;
 <nb> public class XBinder extends XHook {
 public static List < String > cServiceClassName = Arrays . asList ( new String [ ] {
 STRING0 ,
 STRING1 ,
 - STRING6 ,
 + STRING3 ,
 STRING4 ,
 STRING7 ,
 STRING5 ,

Remove legacy clipboard manager reference


<nb> public class KeyIndexableGraphTestSuite extends TestSuite {
 assertEquals ( count ( graph . getEdges ( STRING0 , NUMBER0 ) ) , NUMBER1 ) ;
 assertEquals ( graph . getEdges ( STRING0 , NUMBER0 ) . iterator ( ) . next ( ) , edge ) ;
 }
 + graph . shutdown ( ) ;
 }

 public void testNoConcurrentModificationException ( ) {


<nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
 } else {
 mJobs . add ( job ) ;
 }
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CombinedData extends BarLineScatterCandleData < BarLineScatterCandleD
 mScatterData . notifyDataChanged ( ) ;
 if ( mBubbleData != null )
 mBubbleData . notifyDataChanged ( ) ;
 +
 + init ( ) ; SINGLE
 }
 }


<nb> public class Plugins {

 String camelCaseCandidatePluginId = pluginClass . getSimpleName ( ) . replace ( Plugin . class . getSimpleName ( ) , STRING0 ) ;
 String candidatePluginId = StringUtil . toSnakeCase ( camelCaseCandidatePluginId ) ;
 - System . out . println ( candidatePluginId + STRING1 + pluginId ) ;
 +
 if ( canInstantiate && candidatePluginId . equals ( pluginId ) ) {
 try {
 Plugin plugin = ( Plugin ) pluginClass . newInstance ( ) ;


<nb> public class WaypointDialogHelper {
 move . setVisibility ( View . VISIBLE ) ;
 more . setVisibility ( View . GONE ) ;
 ( ( ImageView ) move ) . setImageDrawable ( app . getIconsCache ( ) . getContentIcon (
 - R . drawable . ic_flat_list_dark , ! nightMode ) ) ;
 + R . drawable . ic_action_reorder , ! nightMode ) ) ;
 move . setTag ( new DragIcon ( ) {
 @ override
 public void onClick ( ) {


<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL
 STRING0 , SINGLE
 STRING1 , SINGLE
 STRING2 , SINGLE
 - STRING3 , SINGLE
 STRING4 , SINGLE
 STRING5 , SINGLE
 STRING6 SINGLE
 <nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL
 STRING7 , SINGLE
 STRING8 , SINGLE
 STRING9 , SINGLE
 - STRING10 , SINGLE
 STRING11 , SINGLE
 STRING12 , SINGLE
 STRING13 SINGLE

Remove unneeded server and system class defs for cdi


<nb> public class UsbPreferenceActivity extends Activity implements View . OnClickListe
 private String mCurrentFunction ;
 private String [ ] mFunctions ;
 private String mInstallerImagePath ;
 + private AlertDialog mDialog ;
 private Button mMtpPtpButton ;
 private Button mInstallerCdButton ;
 private boolean mPtpActive ;
 <nb> public class UsbPreferenceActivity extends Activity implements View . OnClickListe
 mInstallerCdButton . setVisibility ( View . GONE ) ;
 }

 - dialogBuilder . show ( ) ;
 + mDialog = dialogBuilder . show ( ) ;
 }

 public void onClick ( View v ) {
 <nb> public class UsbPreferenceActivity extends Activity implements View . OnClickListe
 mUsbManager . setMassStorageBackingFile ( mInstallerImagePath ) ;
 }

 + if ( mDialog != null ) {
 + mDialog . dismiss ( ) ;
 + }
 finish ( ) ;
 }
 }

Fix window leak in UsbPreferenceActivity


<nb> public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > {
 }

 private void checkIfBodyAllowed ( ) {
 - if ( STRING0 . equals ( request . method ) || STRING1 . equals ( request . method ) ) {
 - throw new IllegalArgumentException ( STRING2 ) ;
 + if ( STRING1 . equals ( request . method ) ) {
 + throw new IllegalArgumentException ( STRING3 ) ;
 }
 }

Following RFC Spec GET can contain a BODY


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;
 - import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public final class InternalTestCluster extends TestCluster {
 }

 if ( random . nextBoolean ( ) ) {
 - builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , randomIntBetween ( NUMBER0 , NUMBER1 ) COMMENT ) ;
 + builder . put ( MappingUpdatedAction . INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME , RandomInts . randomIntBetween ( random , NUMBER0 , NUMBER1 ) COMMENT ) ;
 }

 return builder . build ( ) ;

TEST Improve reproducibility of mappings propagation delays related issues


<nb> public class SchematicEngine extends SchematicTile {
 }
 }

 + @ override
 + public BuildingStage getBuildStage ( ) {
 + return BuildingStage . STANDALONE ;
 + }
 +
 }


<nb> public class SaveTransaction extends AbstractTask {
 if ( entityId >= privateEntityManager . getNextId ( ) ) {
 privateEntityManager . setNextId ( entityId + NUMBER0 ) ;
 }
 + return true ;
 + }
 + } ) ;
 + deltaToSave . getEntityDeltas ( ) . forEachEntry ( new TLongObjectProcedure < EntityDelta > ( ) {
 + @ override
 + public boolean execute ( long entityId , EntityDelta delta ) {
 + if ( entityId >= privateEntityManager . getNextId ( ) ) {
 + privateEntityManager . setNextId ( entityId + NUMBER0 ) ;
 + }
 if ( privateEntityManager . isActiveEntity ( entityId ) ) {
 EntityRef entity = privateEntityManager . getEntity ( entityId ) ;
 for ( Component changedComponent : delta . getChangedComponents ( ) . values ( ) ) {

Determine nextEntityId before creating entities


<nb> public class SopremoServer implements SopremoExecutionProtocol , Closeable {
 LOG . info ( STRING0 + jobId ) ;
 final SopremoJobInfo info = new SopremoJobInfo ( jobId , request , this . configuration ) ;
 this . meteorInfo . put ( jobId , info ) ;
 - this . executorService . submit ( new SopremoExecutionThread ( info , getJobManagerAddress ( ) ) ) ;
 + if ( request . getQuery ( ) == null )
 + info . setStatusAndDetail ( ExecutionState . ERROR , STRING1 ) ;
 + else if ( request . getMode ( ) == null )
 + info . setStatusAndDetail ( ExecutionState . ERROR , STRING2 ) ;
 + else
 + this . executorService . submit ( new SopremoExecutionThread ( info , getJobManagerAddress ( ) ) ) ;
 return this . getState ( jobId ) ;
 }

SopremoServer checks request for formal validity


<nb> public class CountAggregation
 return SINGLE_LONG ;
 }

 + @ override
 public void addInput ( GroupByIdBlock groupIdsBlock , Page page )
 {
 counts . ensureCapacity ( groupIdsBlock . getGroupCount ( ) ) ;
 <nb> public class CountAggregation
 evaluateFinal ( groupId , output ) ;
 }

 + @ override
 public void evaluateFinal ( int groupId , BlockBuilder output )
 {
 long value = counts . get ( ( long ) groupId ) ;
 <nb> public class CountAggregation
 return SINGLE_LONG ;
 }

 + @ override
 public void addInput ( Page page )
 {
 if ( ! maskChannel . isPresent ( ) && ! sampleWeightChannel . isPresent ( ) ) {


<nb> public class BuildInfo {
 Matcher matcher = VERSION_PATTERN . matcher ( version ) ;
 if ( matcher . matches ( ) ) {
 try {
 - int calculatedVersion = MAJOR_VERSION_MULTIPLIER * Integer . valueOf ( matcher . group ( NUMBER0 ) )
 - + MINOR_VERSION_MULTIPLIER * Integer . valueOf ( matcher . group ( NUMBER1 ) ) ;
 + int calculatedVersion = MAJOR_VERSION_MULTIPLIER * Integer . parseInt ( matcher . group ( NUMBER0 ) )
 + + MINOR_VERSION_MULTIPLIER * Integer . parseInt ( matcher . group ( NUMBER1 ) ) ;

 int groupCount = matcher . groupCount ( ) ;
 if ( groupCount >= PATCH_GROUP_COUNT ) {
 String patchVersionString = matcher . group ( PATCH_GROUP_COUNT ) ;
 if ( null != patchVersionString && ! patchVersionString . startsWith ( STRING0 ) ) {
 - calculatedVersion += Integer . valueOf ( patchVersionString ) ;
 + calculatedVersion += Integer . parseInt ( patchVersionString ) ;
 }
 }
 return calculatedVersion ;


<nb> public interface Library {
 private Map functions = new WeakHashMap ( ) ;
 public Handler ( String libname , Class interfaceClass , Map options ) {

 - if ( libname == null || libname . trim ( ) . length ( ) == NUMBER0 ) {
 + if ( libname == null || STRING0 . equals ( libname . trim ( ) ) ) {
 throw new IllegalArgumentException ( STRING1
 + libname + STRING2 ) ;
 }

 - if ( ! Library . class . isAssignableFrom ( interfaceClass ) ) {
 - throw new IllegalArgumentException ( STRING3
 - + interfaceClass + STRING2 ) ;
 - }
 -
 this . nativeLibrary = NativeLibrary . getInstance ( libname ) ;
 this . interfaceClass = interfaceClass ;
 this . options = options ;

Remove check for Library interface in Library Handler


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

 + @ cacheabletask
 public class ShadedJar extends DefaultTask {
 private FileCollection sourceFiles ;
 private File classesDir ;
 <nb> public class ShadedJar extends DefaultTask {
 COMMENT
 COMMENT
 COMMENT
 + @ pathsensitive ( PathSensitivity . RELATIVE )
 @ inputfiles
 public FileCollection getSourceFiles ( ) {
 return sourceFiles ;


<nb> public final class SessionManagementConfigurer < H extends HttpSecurityBuilder < H > >
 COMMENT
 public SessionManagementConfigurer < H > sessionAuthenticationStrategy (
 SessionAuthenticationStrategy sessionAuthenticationStrategy ) {
 - this . sessionFixationAuthenticationStrategy = sessionAuthenticationStrategy ;
 + this . sessionAuthenticationStrategy = sessionAuthenticationStrategy ;
 return this ;
 }


<nb> public class PackageManagerService extends IPackageManager . Stub {
 case GRANT_RUNTIME : {
 SINGLE
 for ( int userId : UserManagerService . getInstance ( ) . getUserIds ( ) ) {
 - SINGLE
 if ( origPermissions . hasRuntimePermission ( bp . name , userId ) ) {
 if ( permissionsState . grantRuntimePermission ( bp , userId ) !=
 PermissionsState . PERMISSION_OPERATION_FAILURE ) {
 <nb> public class PackageManagerService extends IPackageManager . Stub {
 SINGLE
 permissionsState . revokeInstallPermission ( bp ) ;
 for ( int userId : UserManagerService . getInstance ( ) . getUserIds ( ) ) {
 - SINGLE
 if ( permissionsState . grantRuntimePermission ( bp , userId ) !=
 PermissionsState . PERMISSION_OPERATION_FAILURE ) {
 changedPermission = true ;


<nb> public class PeopleTable {
 return people ;
 }

 + public static Person getPerson ( long personId , int localTableBlogId , Person . PersonType personType ) {
 + String table = null ;
 + switch ( personType ) {
 + case USER :
 + table = TEAM_TABLE ;
 + break ;
 + case FOLLOWER :
 + table = FOLLOWERS_TABLE ;
 + break ;
 + case EMAIL_FOLLOWER :
 + table = EMAIL_FOLLOWERS_TABLE ;
 + break ;
 + }
 + return getPerson ( table , personId , localTableBlogId ) ;
 + }
 +
 public static Person getUser ( long personId , int localTableBlogId ) {
 return getPerson ( TEAM_TABLE , personId , localTableBlogId ) ;
 }

Adds generic getPerson method with personType parameter


<nb> public class HttpArgs extends StartArgs {
 }

 public static class Builder {
 - private ServerType type ;
 private Integer port ;
 private Integer shutdownPort ;
 private String configurationFile ;
 <nb> import NAMESPACE ;

 import static NAMESPACE ;

 - public class StartArgs extends ShutdownPortOption {
 + public abstract class StartArgs extends ShutdownPortOption {
 private final ServerType type ;
 private final Optional < Integer > port ;
 private final Optional < String > configurationFile ;


<nb> public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements

 if ( exopackage ) {
 Preconditions . checkArgument ( computeExopackageDepsAbi . isPresent ( ) ,
 - STRING0 ) ;
 + STRING1 ) ;
 }
 }


<nb> public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple
 protected void doStart ( ) throws Exception {
 SINGLE
 if ( ! STRING0 . equals ( readLock ) && ! STRING1 . equals ( readLock ) ) {
 - if ( readLockTimeout > NUMBER0 && readLockMinAge > NUMBER0 && readLockTimeout <= readLockCheckInterval + readLockMinAge ) {
 - throw new IllegalArgumentException ( STRING2
 - + STRING3 + readLockTimeout + STRING4 + ( readLockCheckInterval + readLockMinAge )
 - + STRING5
 - + STRING6 ) ;
 - }
 if ( readLockTimeout > NUMBER0 && readLockTimeout <= readLockCheckInterval ) {
 throw new IllegalArgumentException ( STRING7
 + STRING3 + readLockTimeout + STRING8 + readLockCheckInterval
 <nb> public class FileChangedReadLockMinAgeTest extends ContextTestSupport {
 return new RouteBuilder ( ) {
 @ override
 public void configure ( ) throws Exception {
 - from ( STRING9 )
 + from ( STRING10 )
 . to ( STRING11 , STRING12 ) ;
 }
 } ;

Remove readLockTimeout check from readLockMinAge


<nb> public class AnnotationDirectoryItem extends Item < AnnotationDirectoryItem > {
 }

 out . writeInt ( classAnnotations == null ? NUMBER0 : classAnnotations . getOffset ( ) ) ;
 + out . writeInt ( fieldAnnotations . length ) ;
 + out . writeInt ( methodAnnotations . length ) ;
 + out . writeInt ( parameterAnnotations . length ) ;

 for ( int i = NUMBER0 ; i < fieldAnnotations . length ; i ++ ) {
 out . writeInt ( fieldAnnotationFields [ i ] . getIndex ( ) ) ;


<nb> public class Editor extends JFrame implements RunnerListener {
 class DefaultStopHandler implements Runnable {
 public void run ( ) {
 try {
 -
 + if ( runtime != null ) {
 + runtime . close ( ) ; SINGLE
 + runtime = null ; SINGLE
 + }
 } catch ( Exception e ) {
 statusError ( e ) ;
 }
 <nb> public class Editor extends JFrame implements RunnerListener {
 public void internalCloseRunner ( ) {
 running = false ;

 + if ( stopHandler != null )
 try {
 - if ( runtime != null ) {
 - runtime . close ( ) ; SINGLE
 - runtime = null ; SINGLE
 - }
 + stopHandler . run ( ) ;
 } catch ( Exception e ) { }

 sketch . cleanup ( ) ;

The editor wasn t calling the StopHandler


<nb> public abstract class EventListenerInvoker < E > {
 synchronized ( l ) {
 invoker . invoke ( l ) ;
 }
 - if ( listeners . get ( i ) != l ) {
 - i -- ; SINGLE
 + if ( i == listeners . size ( ) ) {
 + break ; SINGLE
 + } else if ( listeners . get ( i ) != l ) {
 + i -- ; SINGLE
 }
 }
 }

Fix a bug in EventListenerInvoker that would crash if the last event listener removed itself


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

 - import NAMESPACE ;
 + SINGLE
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class Model extends Lockable < Model > {
 String [ ] names = Arrays . copyOf ( _names , n ) ;
 Frame [ ] subVfr ;
 SINGLE
 - subVfr = vfr . subframe ( names , ( this instanceof DeepLearningModel && ( ( DeepLearningModel ) this ) . get_params ( ) . sparse ) ? NUMBER0 : Double . NaN ) ;
 + SINGLE
 + subVfr = vfr . subframe ( names , Double . NaN ) ;
 vfr = subVfr [ NUMBER0 ] ; SINGLE
 Vec [ ] frvecs = vfr . vecs ( ) ;
 boolean [ ] toEnum = new boolean [ frvecs . length ] ;

Remove deep learning dependency from Model by commenting it out and breaking the


<nb> public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal
 DrawHelper . clearCanvas ( canvas ) ;
 surfaceHolder . unlockCanvasAndPost ( canvas ) ;
 }
 -
 -
 }

 @ override
 public void surfaceChanged ( SurfaceHolder surfaceHolder , int i , int i2 , int i3 ) {
 -
 + isSurfaceCreated = true ;
 }

 @ override
 public void surfaceDestroyed ( SurfaceHolder surfaceHolder ) {
 -
 + isSurfaceCreated = false ;
 }

 public void release ( ) {


<nb> public interface TypeDescription extends ByteCodeElement , DeclaredInType , Modifi

 @ override
 public boolean isSealed ( ) {
 - return type . getPackage ( ) . isSealed ( ) ;
 + return type . getPackage ( ) != null && type . getPackage ( ) . isSealed ( ) ;
 }

 @ override

Added null check for checking if package is sealed


<nb> public final class FileContentImpl extends UserDataHolderBase implements FileCon
 if ( myContentAsText == null ) {
 if ( myContent != null ) {
 myContentAsText = LoadTextUtil . getTextByBinaryPresentation ( myContent , myCharset ) ;
 + myContent = null ; SINGLE
 }
 }
 return myContentAsText ;

nullify bytes if client requested chars since we have exclusive char or byte clients


<nb> public class AccessibilityManagerService extends IAccessibilityManager . Stub {
 try {
 Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) ,
 Settings . Secure . ACCESSIBILITY_ENABLED ,
 - userState . isHandlingAccessibilityEvents ( ) ? NUMBER0 : NUMBER1 ,
 + userState . isHandlingAccessibilityEvents ( ) ? NUMBER1 : NUMBER0 ,
 userState . mUserId ) ;
 } finally {
 Binder . restoreCallingIdentity ( identity ) ;


<nb> class TransactionalMultiKeyHashMap < UniqueKeyType , MultiKeyType , ValueType > {
 COMMENT
 COMMENT
 COMMENT
 - public class MemoryFullPrunedBlockStore implements FullPrunedBlockStore , UTXOProvider {
 + public class MemoryFullPrunedBlockStore implements FullPrunedBlockStore {
 protected static class StoredBlockAndWasUndoableFlag {
 public StoredBlock block ;
 public boolean wasUndoable ;

Make MemoryFullPrunedBlockStore just implement FullPrunedBlockStore


<nb> public class AudioPlayer implements OnCompletionListener , OnPreparedListener , On
 private static final String LOG_TAG = STRING0 ;

 SINGLE
 - public static int MEDIA_NONE = NUMBER0 ;
 - public static int MEDIA_STARTING = NUMBER1 ;
 - public static int MEDIA_RUNNING = NUMBER2 ;
 - public static int MEDIA_PAUSED = NUMBER3 ;
 - public static int MEDIA_STOPPED = NUMBER4 ;
 + public static final int MEDIA_NONE = NUMBER0 ;
 + public static final int MEDIA_STARTING = NUMBER1 ;
 + public static final int MEDIA_RUNNING = NUMBER2 ;
 + public static final int MEDIA_PAUSED = NUMBER3 ;
 + public static final int MEDIA_STOPPED = NUMBER4 ;

 SINGLE
 private static int MEDIA_STATE = NUMBER1 ;

made internal status static variables final as well specifically so that they can be used in switch statements


<nb> public class MessageList
 menu . findItem ( R . id . archive ) . setVisible ( false ) ;
 }

 - if ( ! mAccount . hasSpamFolder ( ) ) {
 + if ( ! account . hasSpamFolder ( ) ) {
 menu . findItem ( R . id . spam ) . setVisible ( false ) ;
 }

Fixed a NullPointerException for the context menu in the Unified Inbox


<nb> public final class Scene {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - @ deprecated
 public Scene ( ViewGroup sceneRoot , ViewGroup layout ) {
 mSceneRoot = sceneRoot ;
 mLayout = layout ;

remove deprecated mark for Scene constructor with ViewGroup


<nb> import NAMESPACE ;
 class MeasureFilterSort {
 public static enum Field {
 KEY , NAME , VERSION , LANGUAGE , METRIC , SHORT_NAME , DESCRIPTION ,
 - DATE , SINGLE
 - PROJECT_CREATION_DATE SINGLE
 + SINGLE
 + DATE ,
 + SINGLE
 + PROJECT_CREATION_DATE
 }

 private Field field = Field . NAME ;


<nb> public abstract class OAbstractPaginatedStorage extends OStorageAbstract impleme
 stateLock . releaseReadLock ( ) ;
 }
 }
 -
 - public OIndexEngine get ( int indexId ) {
 +
 +
 + public OIndexEngine getIndexEngine ( int indexId ) {
 return indexEngines . get ( indexId ) ;
 }

changed method name for getting the index engine


<nb> public class ProcessUtils {
 process . destroy ( ) ;
 sentSignal = true ;
 } catch ( Exception e ) {
 - LoggerFactory . getLogger ( ProcessUtils . class ) . error ( STRING0 + process ) ;
 + LoggerFactory . getLogger ( ProcessUtils . class ) . error ( STRING0 + process , e ) ;
 }
 }
 return sentSignal ;
 <nb> import NAMESPACE ;
 @ retention ( RetentionPolicy . RUNTIME )
 @ target ( ElementType . TYPE )
 public @ interface Description {
 - String value ( ) ;
 + String value ( ) ;
 }


<nb> public class TestWithNetworkConnections {
 }

 protected Object outbound ( FakeChannel p1 ) {
 - MessageEvent nextEvent = ( MessageEvent ) p1 . nextEvent ( ) ;
 + ChannelEvent channelEvent = p1 . nextEvent ( ) ;
 + if ( channelEvent != null && ! ( channelEvent instanceof MessageEvent ) )
 + throw new IllegalStateException ( STRING0 + channelEvent ) ;
 + MessageEvent nextEvent = ( MessageEvent ) channelEvent ;
 if ( nextEvent == null )
 return null ;
 return nextEvent . getMessage ( ) ;

Bit more debugging code in TestWithNetworkConnections


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix the build by removing Override within javadoc comments


<nb>

 package NAMESPACE ;

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

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

 COMMENT
 @ suppresswarnings ( STRING0 )
 <nb>

 package NAMESPACE ;

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

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

 COMMENT
 @ suppresswarnings ( STRING0 )

Reverted import optimization in generated files


<nb> public abstract class BaseRequest {
 this . httpRequest = httpRequest ;
 }

 + public HttpRequest getHttpRequest ( ) {
 + return this . httpRequest ;
 + }
 +
 protected BaseRequest ( ) {
 super ( ) ;
 }


<nb> public class GtasksPreferences extends SyncProviderPreferences {
 }

 private void startBlockingImport ( ) {
 - SINGLE
 final ProgressDialog pd = DialogUtilities . progressDialog ( this , getString ( R . string . gtasks_import_progress ) ) ;
 pd . setCancelable ( false ) ;
 - pd . show ( ) ;

 GtasksImportCallback callback = new GtasksImportCallback ( new SyncResultCallbackAdapter ( ) { COMMENT } ) {
 @ override


<nb> public class GoTestRunningState extends GoRunningState {
 }
 String pattern = myConfiguration . getPattern ( ) ;
 if ( StringUtil . isNotEmpty ( pattern ) ) {
 - commandLine . addParameter ( STRING0 + pattern + STRING1 ) ;
 + commandLine . addParameter ( STRING2 ) ;
 + commandLine . addParameter ( pattern ) ;
 }
 }
 }


<nb> public class BufferedString extends Iced implements Comparable < BufferedString > {

 public final AutoBuffer write_impl ( AutoBuffer ab ) {
 if ( _buf == null ) return ab . putInt ( - NUMBER0 ) ;
 - ab . putInt ( _buf . length ) ;
 - return ab . putA1 ( _buf , _off , _len ) ;
 + ab . putInt ( _len ) ;
 + return ab . putA1 ( _buf , _off , _off + _len ) ;
 }

 public final BufferedString read_impl ( AutoBuffer ab ) {

Fix bug in BufferedString write_impl only worked for _buf length _len


<nb> import NAMESPACE ;
 COMMENT
 public class PlatformFileTypeFactory extends FileTypeFactory {
 public void createFileTypes ( @ notnull final FileTypeConsumer consumer ) {
 - consumer . consume ( new ArchiveFileType ( ) , STRING0 ) ;
 + consumer . consume ( new ArchiveFileType ( ) , STRING1 ) ;
 consumer . consume ( PlainTextFileType . INSTANCE , STRING2 ) ;
 consumer . consume ( NativeFileType . INSTANCE , STRING3 ) ;
 consumer . consume ( UnknownFileType . INSTANCE ) ;

ane AIR native extension files have archive file type


<nb> public class SessionFixationProtectionFilter extends SpringSecurityFilter {
 startNewSession ( ) ;
 super . sendRedirect ( location ) ;
 }
 +
 + public void flushBuffer ( ) throws IOException {
 + startNewSession ( ) ;
 + super . flushBuffer ( ) ;
 + }

 COMMENT
 COMMENT

Added override for flushBuffer in response wrapper


<nb>
 package NAMESPACE ;

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

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


<nb> public class Backend {
 put ( STRING0 , STRING1 ) ;
 put ( STRING2 , STRING3 ) ;
 put ( STRING4 , STRING3 ) ;
 + put ( STRING5 , STRING6 ) ;
 put ( STRING7 , STRING8 ) ;
 put ( STRING9 , STRING10 ) ;
 put ( STRING11 , STRING8 ) ;

Recognize infinispan as a storage backend value