<nb> public abstract class Expression extends ExpressionTemplate
 value instanceof String ||
 value instanceof Long ||
 value instanceof Integer ||
 - value instanceof Double ) )
 + value instanceof Double ||
 + value instanceof Boolean ) )
 {
 throw new IllegalArgumentException ( STRING0 ) ;
 }
 <nb> class MethodWriter implements MethodEmitter , ExpressionVisitor
 {
 append ( value . toString ( ) ) ;
 }
 + else if ( value instanceof Boolean )
 + {
 + append ( value . toString ( ) ) ;
 + }
 else
 {
 throw new UnsupportedOperationException ( value . getClass ( ) + STRING1 ) ;
 <nb> class MethodWriter implements MethodEmitter , ExpressionVisitor
 @ override
 public void not ( Expression expression )
 {
 - append ( STRING2 ) ;
 + append ( STRING3 ) ;
 expression . accept ( this ) ;
 append ( STRING4 ) ;
 }


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

 import NAMESPACE ;
 import NAMESPACE ;

move BaseTest to be in the runtime test area to be consistent with other targets


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

 <nb> public class ConversationActivity extends XmppActivity
 }

 private long getMaxHttpUploadSize ( Conversation conversation ) {
 - return conversation . getAccount ( ) . getXmppConnection ( ) . getFeatures ( ) . getMaxHttpUploadSize ( ) ;
 + final XmppConnection connection = conversation . getAccount ( ) . getXmppConnection ( ) ;
 + return connection == null ? - NUMBER0 : connection . getFeatures ( ) . getMaxHttpUploadSize ( ) ;
 }

 private void setNeverAskForBatteryOptimizationsAgain ( ) {

handle file attachment when missing connection


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

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

 import static NAMESPACE ;


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

 public class BeatrixListener {
 <nb> public class BeatrixListener {
 objectMapper . disable ( SerializationFeature . WRITE_DATES_AS_TIMESTAMPS ) ;
 }

 + @ allowconcurrentevents
 @ subscribe
 public void handleAllInternalKillbillEvents ( final BusInternalEvent event ) {
 final InternalCallContext internalContext = internalCallContextFactory . createInternalCallContext ( event . getSearchKey2 ( ) , event . getSearchKey1 ( ) , STRING0 , CallOrigin . INTERNAL , UserType . SYSTEM , event . getUserToken ( ) ) ;

Add missing AllowConcurrentEvents to prevent guava bus from serializing the events


<nb> public abstract class MixinBlockSnapshot implements BlockSnapshot {
 @ shadow private NBTTagCompound nbt ;
 @ shadow public int flag ;

 - private Vector3i vecPos = VecHelper . toVector ( this . pos ) ;
 + private Vector3i vecPos ;

 - @ shadow
 - public abstract void writeToNBT ( NBTTagCompound compound ) ;
 + @ shadow public abstract void writeToNBT ( NBTTagCompound compound ) ;

 @ override
 public BlockState getState ( ) {
 <nb> public abstract class MixinBlockSnapshot implements BlockSnapshot {

 @ override
 public Vector3i getLocation ( ) {
 + if ( this . vecPos == null ) {
 + this . vecPos = VecHelper . toVector ( this . pos ) ;
 + }
 return this . vecPos ;
 }


<nb> public class EpisodesFragment extends SherlockListFragment implements
 getLoaderManager ( ) . restartLoader ( EPISODES_LOADER , null , EpisodesFragment . this ) ;
 getSherlockActivity ( ) . invalidateOptionsMenu ( ) ;

 - EasyTracker . getTracker ( ) . trackEvent ( STRING0 , STRING1 , mSorting . name ( ) , ( long ) NUMBER0 ) ;
 + EasyTracker . getTracker ( ) . sendEvent ( TAG , STRING1 , mSorting . name ( ) , ( long ) NUMBER0 ) ;
 }

 @ targetapi ( NUMBER1 )


<nb> public class ImmediateExecutorTest {
 @ test
 public void shouldExecuteImmediately ( ) {
 ImmediateExecutor e = ImmediateExecutor . INSTANCE ;
 - long startTime = System . currentTimeMillis ( ) ;
 + long startTime = System . nanoTime ( ) ;
 e . execute ( new Runnable ( ) {
 public void run ( ) {
 for ( ; ; ) {
 <nb> public class ImmediateExecutorTest {
 SINGLE
 }
 }
 - }
 + }
 } ) ;
 - assertTrue ( System . currentTimeMillis ( ) - startTime > NUMBER0 ) ;
 + assertTrue ( System . nanoTime ( ) - startTime > NUMBER1 ) ;
 }
 }

Changed ImmediateExecutorTest to use nanoTime


<nb> public class Linkify {

 if ( ( mask & WEB_URLS ) != NUMBER0 ) {
 gatherLinks ( links , text , Regex . WEB_URL_PATTERN ,
 - new String [ ] { STRING0 , STRING1 } ,
 + new String [ ] { STRING0 , STRING1 , STRING2 } ,
 sUrlMatchFilter , null ) ;
 }

 <nb> public class Regex {
 COMMENT
 public static final Pattern WEB_URL_PATTERN
 = Pattern . compile (
 - STRING3
 + STRING4
 + STRING5
 + STRING6
 + STRING7 SINGLE

Add rtsp to the list of URL schemes that get linkified


<nb> public class BulletVehicleDebugControl extends AbstractPhysicsDebugControl {
 dirGeom . setLocalTranslation ( location ) ;
 axleGeom . setLocalTranslation ( location . add ( direction ) ) ;
 wheelGeom . setLocalTranslation ( location . add ( direction ) ) ;
 - locGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ;
 - dirGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ;
 - axleGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ;
 - wheelGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ;
 + locGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ;
 + dirGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ;
 + axleGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ;
 + wheelGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ;
 suspensionNode . attachChild ( locGeom ) ;
 suspensionNode . attachChild ( dirGeom ) ;
 suspensionNode . attachChild ( axleGeom ) ;

give own color to bullet vehicle constraint in debug view


<nb> public class SearchTextField extends JPanel {
 }
 }

 - @ override
 - protected void paintComponent ( Graphics g ) {
 - super . paintComponent ( g ) ;
 - if ( UIUtil . isUnderDarcula ( ) && false ) { SINGLE
 - g . setColor ( myTextField . getBackground ( ) ) ;
 - g . fillRect ( NUMBER0 , NUMBER1 , getWidth ( ) , getHeight ( ) - NUMBER2 ) ;
 - }
 - }
 -
 private static boolean hasNativeLeopardSearchControl ( ) {
 return ( SystemInfo . isMacOSLeopard && UIUtil . isUnderAquaLookAndFeel ( ) ) || UIUtil . isUnderDarcula ( ) ;
 }


<nb> public class CommentActions {
 new Thread ( ) {
 @ override
 public void run ( ) {
 - @ suppresswarnings ( STRING0 )
 - XMLRPCClientInterface client = XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) ,
 - blog . getHttppassword ( ) ) ;
 + XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) , blog . getHttppassword ( ) ) ;

 final boolean success = ApiHelper . editComment ( blog , comment , newStatus ) ;


<nb> public class OSGiIntegrationTest {
 SINGLE
 systemProperty ( STRING0 ) . value ( STRING1 ) ,

 - SINGLE
 + SINGLE
 mavenBundleAsInProject ( STRING2 , STRING3 ) ,
 -
 wrappedBundle ( mavenBundleAsInProject ( STRING4 , STRING4 ) ) ,

 felix ( ) , equinox ( ) ) ;


<nb> public class SourceMapConsumerV3 implements SourceMapConsumer ,
 COMMENT
 COMMENT
 private void validateEntry ( Entry entry ) {
 - Preconditions . checkState ( ( lineCount < NUMBER0 ) || ( line < lineCount ) ) ;
 + Preconditions . checkState ( ( lineCount < NUMBER0 ) || ( line < lineCount ) ,
 + STRING0 , line , lineCount ) ;
 Preconditions . checkState ( entry . getSourceFileId ( ) == UNMAPPED
 || entry . getSourceFileId ( ) < sources . length ) ;
 Preconditions . checkState ( entry . getNameId ( ) == UNMAPPED

Add more logging to a checkState call to debug reported issue


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

 - @ repeat ( NUMBER0 )
 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( QuickTest . class )
 public class ReplicatedMapTest extends ReplicatedMapBaseTest {


<nb> public class Uploader extends FileActivity
 } else {
 throw new SecurityException ( ) ;
 }
 - if ( data == null ) {
 + SINGLE
 mRemoteCacheData . add ( filePath ) ;
 CopyTmpFileAsyncTask copyTask = new CopyTmpFileAsyncTask ( this ) ;
 Object [ ] params = { uri , filePath , mRemoteCacheData . size ( ) - NUMBER0 ,
 <nb> public class Uploader extends FileActivity
 mNumCacheFile ++ ;
 showWaitingCopyDialog ( ) ;
 copyTask . execute ( params ) ;
 - }
 +
 + SINGLE
 + SINGLE
 + SINGLE
 } else {
 throw new SecurityException ( ) ;
 }

Rewired code path to upload files sent from other apps


<nb> public class TaskStack implements DimLayer . DimLayerUser ,
 }
 } else {
 if ( splitHorizontally ) {
 - outBounds . left = position - dockDividerWidth ;
 + outBounds . left = position + dockDividerWidth ;
 } else {
 - outBounds . top = position - dockDividerWidth ;
 + outBounds . top = position + dockDividerWidth ;
 }
 }
 return ;

Fix invalid stack position when docked on right


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DebugOverlay extends CoreScreenLayer {
 Vector3f pos = localPlayer . getPosition ( ) ;
 CharacterComponent character = localPlayer . getCharacterEntity ( ) . getComponent ( CharacterComponent . class ) ;
 float yaw = ( character != null ) ? character . yaw : NUMBER0 ;
 - return String . format ( Locale . US , STRING0 , pos . x , pos . y , pos . z , yaw ) ;
 + Vector3i chunkPos = TeraMath . calcChunkPos ( ( int ) pos . x , ( int ) pos . y , ( int ) pos . z ) ;
 + return String . format ( Locale . US , STRING1 , pos . x , pos . y , pos . z , chunkPos . x , chunkPos . y , chunkPos . z , yaw ) ;
 }
 } ) ;
 }

Display the current chunk in the debug overlay


<nb> public class UpdateIntegrationTest extends SQLTransportIntegrationTest {
 }

 @ test
 + public void testUpdateWithExpressionReferenceUpdated ( ) throws Exception {
 + SINGLE
 +
 + execute ( STRING0 ) ;
 + ensureYellow ( ) ;
 +
 + execute ( STRING1 ) ;
 + assertEquals ( NUMBER0 , response . rowCount ( ) ) ;
 + refresh ( ) ;
 +
 + execute ( STRING2 ) ;
 + assertEquals ( NUMBER0 , response . rowCount ( ) ) ;
 + refresh ( ) ;
 +
 + execute ( STRING3 ) ;
 + assertEquals ( NUMBER1 , response . rows ( ) [ NUMBER2 ] [ NUMBER2 ] ) ;
 + }
 +
 + @ test
 public void testUpdateByPrimaryKeyWithExpression ( ) throws Exception {
 execute ( STRING4 ) ;
 ensureYellow ( ) ;


<nb> public abstract class SelectBaseTest extends AbstractBaseTest {
 . uniqueResult ( employee . firstname ) ) ;
 }

 + @ test
 + public void complex_boolean ( ) {
 + EBoolean first = employee . firstname . eq ( STRING0 ) . and ( employee . lastname . eq ( STRING1 ) ) ;
 + EBoolean second = employee . firstname . eq ( STRING2 ) . and ( employee . lastname . eq ( STRING3 ) ) ;
 + assertEquals ( NUMBER0 , query ( ) . from ( employee ) . where ( first . or ( second ) ) . count ( ) ) ;
 +
 + assertEquals ( NUMBER1 , query ( ) . from ( employee ) . where (
 + employee . firstname . eq ( STRING0 ) ,
 + employee . lastname . eq ( STRING1 ) . or ( employee . firstname . eq ( STRING2 ) ) ,
 + employee . lastname . eq ( STRING3 )
 + ) . count ( ) ) ;
 + }
 }


<nb> public abstract class Patch implements Serializable {

 private long endTime ;
 private long startTime ;
 - private int startTimeOfDay ;
 - private int endTimeOfDay ;
 + private int startTimeOfDay = NUMBER0 ; SINGLE
 + private int endTimeOfDay = NUMBER1 ;
 protected String notes ;

 private String id ;

sensible defaults for patch start end time will make integration with systems not supporting time of day patches easier


<nb> public class Connector extends LifecycleMBeanBase {
 sb . append ( STRING0 ) ;
 int port = getPort ( ) ;
 if ( port > NUMBER0 ) {
 - sb . append ( getPort ( ) ) ;
 + sb . append ( port ) ;
 } else {
 sb . append ( STRING1 ) ;
 sb . append ( getProperty ( STRING2 ) ) ;
 <nb> public class Connector extends LifecycleMBeanBase {
 sb . append ( STRING3 ) ;
 int port = getPort ( ) ;
 if ( port > NUMBER0 ) {
 - sb . append ( getPort ( ) ) ;
 + sb . append ( port ) ;
 } else {
 sb . append ( STRING1 ) ;
 sb . append ( getProperty ( STRING2 ) ) ;

Do not call a getter twice use the value from a local variable


<nb> public class NeoServer implements WrapperListener , JobScheduler
 start ( ) ;
 }

 - public void scheduleToRunEvery_Seconds ( Job job , int runEverySeconds )
 + public void scheduleToRunEveryXSeconds ( Job job , int runEverySeconds )
 {
 ScheduledJob scheduledJob = new ScheduledJob ( job , NUMBER0 ) ;
 scheduledJobs . add ( scheduledJob ) ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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

Fixing the compilation error on the build server


<nb> public interface LivingEntity extends Entity {
 COMMENT
 public void setNoDamageTicks ( int ticks ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Player getKiller ( ) ;
 }

Added getKiller method to LivingEntity to determine the killer of an entity


<nb> public final class GitBranchesCollection {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - public GitBranchesCollection ( @ notnull GitBranchesCollection branches ) {
 - this ( branches . getLocalBranches ( ) , branches . getRemoteBranches ( ) ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 @ notnull


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Requirements {
 sendSupportInfo ( ex . toString ( ) , context ) ;
 }

 + SINGLE
 + if ( ! checkField ( GpsStatus . class , STRING0 ) )
 + reportClass ( GpsStatus . class , context ) ;
 +
 SINGLE
 try {
 Class < ? > clazz = Class . forName ( STRING1 , false , null ) ;


<nb> public final class Settings {
 STRING0 ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final String GTALK_PICASA_ALBUM_URL =
 STRING1 ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final String GTALK_FLICKR_PHOTO_INFO_URL =
 STRING2 ;
 <nb> public final class Settings {
 STRING3 ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static final String GTALK_YOUTUBE_VIDEO_URL =
 STRING4 ;

 COMMENT
 + COMMENT
 + COMMENT
 + public static final String GTALK_URL_SCRAPING_FOR_JPG =
 + STRING5 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final String GTALK_CHAT_MESSAGE_LIFETIME =
 <nb> public final class Settings {
 STRING6 ;

 COMMENT
 - COMMENT
 - COMMENT
 - public static final String GTALK_URL_SCRAPING_FOR_JPG =
 - STRING5 ;
 -
 - COMMENT
 COMMENT
 COMMENT
 public static final String GSYNC_USE_RMQ2_ROUTING_INFO = STRING7 ;

Fix code placement and comments for gtalk url scraping settings


<nb> public class RebalanceClientConfig extends AdminClientConfig {
 private int rebalancingClientTimeoutSeconds = NUMBER0 * NUMBER1 * NUMBER2 * NUMBER2 ;
 private boolean deleteAfterRebalancingEnabled ;

 - public static String MaxParallelRebalancingString = STRING0 ;
 - public static String RebalancingClientTimeoutSeconds = STRING1 ;
 - public static String EnableDeleteAfterRebalancing = STRING2 ;
 + public static final String MaxParallelRebalancingString = STRING0 ;
 + public static final String RebalancingClientTimeoutSeconds = STRING1 ;
 + public static final String EnableDeleteAfterRebalancing = STRING2 ;

 public RebalanceClientConfig ( Properties properties ) {
 super ( properties ) ;


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

 - public interface ExternalResourceRepository COMMENT {
 + public interface ExternalResourceRepository {

 void downloadResource ( ExternalResource resource , File destination ) throws IOException ;

 <nb> import NAMESPACE ;
 public interface ExternalResource extends Resource {
 void writeTo ( File destination ) throws IOException ;

 + COMMENT
 + COMMENT
 + COMMENT
 void writeTo ( OutputStream destination ) throws IOException ;

 void close ( ) throws IOException ;
 <nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class MetaDataOnlyExternalResource extends AbstractExternalResource {
 this . local = local ;
 }

 - public void writeTo ( File destination , CopyProgressListener progress ) throws IOException {
 - throw new UnsupportedOperationException ( ) ;
 - }
 -
 public ExternalResourceMetaData getMetaData ( ) {
 return metaData ;
 }

Removed unused method and a couple of other tidy ups


<nb> public class ParentRunnerTest {
 . filterWith ( new Exclude ( STRING0 ) ) ;
 Result result = junitCore . run ( requestFilteredFiltered ) ;
 assertThat ( result . getFailures ( ) , isEmpty ( ) ) ;
 - assertEquals ( NUMBER0 , result . getRunCount ( ) ) ; SINGLE
 + assertEquals ( NUMBER0 , result . getRunCount ( ) ) ;
 }

 private Matcher < List < ? > > isEmpty ( ) {

Remove no longer correct comment from test


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JavaBinaryRule extends AbstractCachingBuildRule implements BinaryBu
 Command jar = new JarDirectoryCommand ( outputFile , includePaths , mainClass , manifestFile ) ;
 commands . add ( jar ) ;

 - Command echo = new EchoCommand ( String . format ( STRING0 , outputFile ) ) ;
 - commands . add ( echo ) ;
 -
 return commands . build ( ) ;
 }


<nb> import NAMESPACE ;
 public class HumanInteractionClassifier extends Classifier {
 private static final String HIC_ENABLE = STRING0 ;
 private static final float FINGER_DISTANCE = FLOAT0 ;
 +
 + COMMENT
 + private static final int HIC_ENABLE_DEFAULT = NUMBER0 ;
 +
 private static HumanInteractionClassifier sInstance = null ;

 private final Handler mHandler = new Handler ( ) ;
 <nb> public class HumanInteractionClassifier extends Classifier {
 }

 private void updateConfiguration ( ) {
 - mEnableClassifier = Build . IS_DEBUGGABLE && NUMBER1 != Settings . Global . getInt (
 + mEnableClassifier = NUMBER1 != Settings . Global . getInt (
 mContext . getContentResolver ( ) ,
 - HIC_ENABLE , NUMBER1 ) ;
 + HIC_ENABLE , HIC_ENABLE_DEFAULT ) ;
 }

 public void setType ( int type ) {


<nb> public class ShowsFragment extends SherlockFragment implements
 mCursor . getLong ( ShowsQuery . AIRSTIME ) ,
 mCursor . getString ( ShowsQuery . AIRSDAYOFWEEK ) , mContext ) ;
 if ( getResources ( ) . getBoolean ( R . bool . isLargeTablet ) ) {
 - viewHolder . airsTime . setText ( STRING0 + values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ;
 + viewHolder . airsTime . setText ( STRING2 + values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ;
 } else {
 viewHolder . airsTime . setText ( values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ;
 }


<nb> public class PivotTest {

 Random random = new Random ( NUMBER0 ) ;

 - for ( long i = NUMBER1 ; i < NUMBER2 ; i ++ ) {
 + for ( long i = NUMBER1 ; i < NUMBER3 ; i ++ ) {
 if ( i % NUMBER3 == NUMBER1 ) {
 System . out . println ( STRING0 + i ) ;
 }
 <nb> public class PivotTest {
 assertEquals ( NUMBER4 , res . minimumInt ( NUMBER5 ) ) ;
 assertEquals ( NUMBER4 , res . maximumInt ( NUMBER5 ) ) ;

 -
 +
 + res = dataView . pivot ( STRING_COL_INDEX , INTEGER_COL_INDEX , PivotType . COUNT ) ;
 + res . getColumnName ( NUMBER5 ) . contains ( STRING1 ) ;
 }
 }


<nb> public class Main implements Runnable {

 if ( getSystemJavaCompiler ( ) == null ) {
 System . err . println ( STRING0 +
 - STRING1 ) ;
 + STRING2 ) ;
 return ;
 }


<nb> public class ShAnalyzerFactory extends FileAnalyzerFactory {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 ,
 STRING4 ,
 STRING5 ,
 STRING6 ,


<nb> public class Messages {
 try {
 resourceString = GuiActivator . getResources ( ) . getI18NString ( key ) ;

 + SINGLE
 + resourceString = resourceString . replaceAll ( STRING0 , STRING1 ) ;
 +
 char mnemonicIndex = GuiActivator . getResources ( ) . getI18nMnemonic ( key ) ;

 resourceString = MessageFormat . format (


<nb> public class ExecutionImpl implements
 }
 }

 - protected void setVariableLocally ( String variableName , Object value ) {
 + public void setVariableLocally ( String variableName , Object value ) {
 log . fine ( STRING0 + variableName + STRING1 + value + STRING2 + this ) ;
 variables . put ( variableName , value ) ;
 }
 <nb> public class ExecutionBindings implements Bindings {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected static final Set < String > UNSTORED_KEYS =
 - new HashSet < String > ( Arrays . asList ( STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ) ) ;
 + new HashSet < String > ( Arrays . asList ( STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ) ) ;

 protected ExecutionImpl execution ;

Added variable ignores for ExecutionBindings js made setVariablesLocally public on ExecutionImpl class


<nb> import NAMESPACE ;
 COMMENT
 public class SimpleQueryStringParser extends BaseQueryParser {

 - public static final String NAME = STRING0 ;
 -
 @ inject
 public SimpleQueryStringParser ( ) {

 <nb> public class SimpleQueryStringParser extends BaseQueryParser {
 fieldsAndWeights . put ( fField , fBoost ) ;
 }
 } else {
 - throw new QueryParsingException ( parseContext , STRING1 + NAME + STRING2 + currentFieldName + STRING3 ) ;
 + throw new QueryParsingException ( parseContext , STRING1 + SimpleQueryStringBuilder . NAME + STRING2 + currentFieldName + STRING3 ) ;
 }
 } else if ( token . isValue ( ) ) {
 if ( STRING4 . equals ( currentFieldName ) ) {

delete SimpleQueryStringParser NAME constant


<nb> public abstract class JsonBuilder < T extends JsonBuilder > {

 private final static DateTimeFormatter defaultDatePrinter = ISODateTimeFormat . dateTime ( ) . withZone ( DateTimeZone . UTC ) ;

 - protected static FieldCaseConversion globalFieldCaseConversion = FieldCaseConversion . CAMELCASE ;
 + protected static FieldCaseConversion globalFieldCaseConversion = FieldCaseConversion . NONE ;

 public static void globalFieldCaseConversion ( FieldCaseConversion globalFieldCaseConversion ) {
 JsonBuilder . globalFieldCaseConversion = globalFieldCaseConversion ;

add field case casing support for JsonBuilder


<nb> public class BasicTest extends AbstractTest {
 . whenNotMatchedThenInsert ( FIELD_ID1 , FIELD_NAME1 , FIELD_DATE1 )
 . values ( NUMBER0 , STRING0 , new Date ( NUMBER1 ) ) ;

 - assertEquals ( STRING1 + zeroDate ( ) + STRING2 + zeroDate ( ) + STRING3 , r_refI ( ) . render ( q ) ) ;
 - assertEquals ( STRING4 , r_ref ( ) . render ( q ) ) ;
 + assertEquals ( STRING5 + zeroDate ( ) + STRING2 + zeroDate ( ) + STRING3 , r_refI ( ) . render ( q ) ) ;
 + assertEquals ( STRING6 , r_ref ( ) . render ( q ) ) ;

 context . checking ( new Expectations ( ) { {
 oneOf ( statement ) . setInt ( NUMBER0 , NUMBER0 ) ;


<nb> public class AndroidCompiledStatement implements CompiledStatement {
 return NUMBER0 ;
 }

 - public boolean runExecute ( ) throws SQLException {
 + public int runExecute ( ) throws SQLException {
 if ( type != StatementType . EXECUTE ) {
 throw new IllegalArgumentException ( STRING0 + type + STRING1 ) ;
 }
 <nb> public class AndroidCompiledStatement implements CompiledStatement {
 } catch ( android . database . SQLException e ) {
 throw SqlExceptionUtil . create ( STRING2 + sql , e ) ;
 }
 - return true ;
 + return NUMBER1 ;
 }

 public DatabaseResults getGeneratedKeys ( ) throws SQLException {

Make runExecute return int again after reading the docs more


<nb> package NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Refine the documentation a little bit more


<nb> class BinaryRenderer extends ReportRenderer < BinarySpec , TextReportBuilder > {

 if ( binary instanceof JvmLibraryBinarySpec ) {
 JvmLibraryBinarySpec libraryBinary = ( JvmLibraryBinarySpec ) binary ;
 - if ( libraryBinary . getTargetPlatform ( ) != null ) {
 - textOutput . formatln ( STRING0 , libraryBinary . getTargetPlatform ( ) . getName ( ) ) ;
 - }
 + textOutput . formatln ( STRING0 , libraryBinary . getTargetPlatform ( ) . getName ( ) ) ;
 textOutput . formatln ( STRING1 , libraryBinary . getToolChain ( ) . toString ( ) ) ;
 if ( binary instanceof JarBinarySpec ) {
 JarBinarySpec jarBinary = ( JarBinarySpec ) binary ;


<nb> public class ImporterGraphML implements FileImporter , LongTask {
 }

 SINGLE
 - AttributeColumn column = container . getAttributeModel ( ) . getNodeTable ( ) . getColumn ( fore ) ;
 + AttributeColumn column = container . getAttributeModel ( ) . getEdgeTable ( ) . getColumn ( fore ) ;
 if ( column != null ) {
 try {
 Object val = column . getType ( ) . parse ( value ) ;

fixed ImporterGraphML now it imports values for edges custom columns correctly


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public interface JetClassOrObject extends PsiNameIdentifierOwner , JetDeclarationContainer {
 + public interface JetClassOrObject extends PsiNameIdentifierOwner , JetDeclarationContainer , JetElement {
 @ nullable
 JetDelegationSpecifierList getDelegationSpecifierList ( ) ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;

 public class RNNOptions implements Serializable {
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public int randomSeed ;
 + public int randomSeed = ( new Random ( ) ) . nextInt ( ) ;

 COMMENT
 COMMENT


<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 ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Single < T > {
 COMMENT
 @ experimental
 public final Single < T > doAfterTerminate ( Action0 action ) {
 - return lift ( new OperatorFinally < T > ( action ) ) ;
 + return lift ( new OperatorDoAfterTerminate < T > ( action ) ) ;
 }
 }


<nb> public final class RecordBatch {
 if ( ( this . records . isFull ( ) && requestTimeout < ( now - this . lastAppendTime ) ) || requestTimeout < ( now - ( this . lastAttemptMs + lingerMs ) ) ) {
 expire = true ;
 this . records . close ( ) ;
 - this . done ( - NUMBER0 , Record . NO_TIMESTAMP , new TimeoutException ( STRING0 ) ) ;
 + this . done ( - NUMBER0 , Record . NO_TIMESTAMP , new TimeoutException ( STRING1 + recordCount + STRING2 + topicPartition ) ) ;
 }

 return expire ;

Display the topic partition in the exception message for expired batches in recordAccumulator


<nb> public class SecureServlet extends HttpServlet {
 out . println ( STRING0 ) ;
 out . println ( STRING1 ) ;
 out . println ( STRING2 ) ;
 - out . println ( STRING3 ) ;
 + out . println ( STRING4 ) ;
 out . println ( STRING5 ) ;
 out . println ( STRING6 ) ;
 out . println ( STRING7 + method + STRING8 ) ;


<nb> public class ParallelGatewayTest extends ActivitiTestCase {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 SINGLE
 }


<nb> public class Catalan extends Language {

 @ override
 public String [ ] getCountryVariants ( ) {
 - return new String [ ] { STRING0 } ;
 + return new String [ ] { STRING1 } ;
 }

 @ override

ca Set country variant to ANY in order to test grammar rules


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

 +
 public class CamelNamespaceHandler implements NamespaceHandler {

 private static final String CAMEL_CONTEXT = STRING0 ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GrailsRuntimeConfiguratorTests extends TestCase {
 org . codehaus . groovy . grails . validation . GrailsDomainClassValidator validator = ( org . codehaus . groovy . grails . validation . GrailsDomainClassValidator ) ctx . getBean ( STRING0 ) ;
 assertTrue ( validator . supports ( dc ) ) ;

 - SINGLE
 - HotSwappableTargetSource ts = ( HotSwappableTargetSource ) ctx . getBean ( GrailsUrlHandlerMapping . APPLICATION_CONTEXT_TARGET_SOURCE ) ;
 - assertNotNull ( ts . getTarget ( ) ) ;
 -
 GroovyObject controller = ( GroovyObject ) ctx . getBean ( STRING1 ) ;
 assertEquals ( c , controller . getClass ( ) ) ;
 }


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class CustomViewActivity extends BaseActivity implements View . OnClickList
 actionBar . setCustomView ( R . layout . action_bar ) ;
 materialMenu = ( MaterialMenuView ) actionBar . getCustomView ( ) . findViewById ( R . id . action_bar_menu ) ;
 materialMenu . setOnClickListener ( this ) ;
 - new Handler ( ) . postDelayed ( new Runnable ( ) {
 - @ override public void run ( ) {
 - Log . i ( STRING0 , STRING1 + materialMenu . getMeasuredWidth ( ) + STRING2 + materialMenu . getMeasuredHeight ( ) ) ;
 - Log . i ( STRING0 , STRING1 + materialMenu . getWidth ( ) + STRING2 + materialMenu . getHeight ( ) ) ;
 - }
 - } , NUMBER0 ) ;
 -
 }

 @ override public void onClick ( View v ) {


<nb> public class PackageManager implements ParsingScope {
 throw new IllegalArgumentException ( String . format ( STRING0 , packageName ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setDefaultJarPath ( String defaultJarPath ) {
 + if ( defaultJarPath == null )
 + throw new NullPointerException ( STRING1 ) ;
 +
 + this . defaultJarPath = defaultJarPath ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getDefaultJarPath ( ) {
 + return this . defaultJarPath ;
 + }
 +
 public void importPackage ( String packageName ) {
 this . importPackage ( this . getPackageInfo ( packageName ) ) ;
 }

Made the default location of jars configurable


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 COMMENT


<nb> public class WindowManagerService extends IWindowManager . Stub
 i -= lastBelow ;
 if ( i != numRemoved ) {
 displayContent . layoutNeeded = true ;
 - Slog . w ( TAG_WM , STRING0 + displayContent . getDisplayId ( ) + STRING1 +
 - numRemoved + STRING2 + i ,
 - new RuntimeException ( STRING3 ) . fillInStackTrace ( ) ) ;
 - for ( i = NUMBER0 ; i < numRemoved ; i ++ ) {
 + Slog . w ( TAG_WM , STRING0 + displayContent . getDisplayId ( ) + STRING1
 + + numRemoved + STRING2 + i + STRING4
 + + STRING5 + Debug . getCallers ( NUMBER1 ) ) ;
 + for ( i = NUMBER0 ; i < numRemoved ; i ++ ) {
 WindowState ws = mRebuildTmp [ i ] ;
 if ( ws . mRebuilding ) {
 StringWriter sw = new StringWriter ( ) ;

Changed logging format of lost windows to reduce confusion


<nb> public class UndertowInputStream extends InputStream {
 if ( read == - NUMBER0 ) {
 return - NUMBER0 ;
 }
 - return b [ NUMBER1 ] ;
 + return b [ NUMBER1 ] & NUMBER2 ;
 }

 @ override
 <nb> public class ServletInputStreamImpl extends ServletInputStream {
 if ( read == - NUMBER0 ) {
 return - NUMBER0 ;
 }
 - return b [ NUMBER1 ] ;
 + return b [ NUMBER1 ] & NUMBER2 ;
 }

 @ override

Fix bug in servlet input stream read method


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import static NAMESPACE ;
 + import static NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class WearableController {
 . build ( ) ;
 ConnectionResult connectionResult = googleApiClient . blockingConnect ( NUMBER0 , TimeUnit . SECONDS ) ;
 if ( ! connectionResult . isSuccess ( ) ) {
 - LOGW ( TAG , STRING0 + connectionResult ) ;
 + if ( connectionResult . getErrorCode ( ) != ConnectionResult . API_UNAVAILABLE ) {
 + LOGV ( TAG , STRING1 ) ;
 + } else {
 + LOGW ( TAG , STRING0 + connectionResult ) ;
 + }
 return ;
 }
 Rect rect = new Rect ( ) ;

Remove Wearable API warning messages when API is unavailable


<nb> import NAMESPACE ;
 public class RexsterGraph implements IndexableGraph {

 private final String graphURI ;
 - private final String graphName ;

 public RexsterGraph ( final String graphURI ) {
 this . graphURI = graphURI ;
 SINGLE
 - JSONObject object = RestHelper . get ( graphURI ) ;
 - graphName = ( String ) object . get ( RexsterTokens . GRAPH ) ;
 + RestHelper . get ( graphURI ) ;
 }

 public String getGraphURI ( ) {
 <nb> public class RexsterGraph implements IndexableGraph {
 }

 public String toString ( ) {
 - return STRING0 + this . graphURI + STRING1 + this . graphName + STRING2 ;
 + JSONObject object = RestHelper . get ( graphURI ) ;
 + String graphName = ( String ) object . get ( RexsterTokens . GRAPH ) ;
 + return STRING0 + this . graphURI + STRING1 + graphName + STRING2 ;
 }
 }

updated the toString method of RexsterGraph


<nb> public class ModifyKeyboardShortcutsWidget extends ModalDialogBase
 if ( KeyboardHelper . isModifierKey ( event . getKeyCode ( ) ) )
 return ;

 + event . stopPropagation ( ) ;
 + event . preventDefault ( ) ;
 +
 CommandBinding binding = preview . getValue ( ) ;

 if ( event . getKeyCode ( ) == KeyCodes . KEY_BACKSPACE )
 {
 - event . stopPropagation ( ) ;
 - event . preventDefault ( ) ;
 buffer_ . pop ( ) ;
 binding . setKeySequence ( buffer_ ) ;
 }
 else if ( event . getKeyCode ( ) == KeyCodes . KEY_DELETE )
 {
 - event . stopPropagation ( ) ;
 - event . preventDefault ( ) ;
 buffer_ . clear ( ) ;
 binding . restoreOriginalKeySequence ( ) ;
 }

always stop event propagation when editting shortcut


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public class AsExistingPropertyTypeSerializer
 extends AsPropertyTypeSerializer
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 @ jacksonstdimpl
 public class EnumSerializer
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public final class LinkedNode < T >
 {


<nb> public class TransformingSendPort < T > extends DelegatingSendPort < T > {
 COMMENT
 COMMENT
 COMMENT
 - public TransformingSendPort < T > fixedTap ( final SendPort < ? super T > forwardTo , final StrandFactory strandFactory ) {
 + public TransformingSendPort < T > tap ( final SendPort < ? super T > forwardTo , final StrandFactory strandFactory ) {
 return Channels . transformSend ( Channels . tapSend ( this , forwardTo , strandFactory ) ) ;
 }

 <nb> public class TransformingSendPort < T > extends DelegatingSendPort < T > {
 COMMENT
 COMMENT
 COMMENT
 - public TransformingSendPort < T > fixedTap ( final SendPort < ? super T > forwardTo ) {
 + public TransformingSendPort < T > tap ( final SendPort < ? super T > forwardTo ) {
 return Channels . transformSend ( Channels . tapSend ( this , forwardTo ) ) ;
 }


<nb> public class DevicePolicyManager {
 = STRING0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DevicePolicyManager {
 = STRING1 ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix doc for package checksum in DevicePolicyManager


<nb> public class PlainTextDocumentReaderAndWriter < IN extends CoreMap > implements Doc
 }

 private static final Pattern sgml = Pattern . compile ( STRING0 ) ;
 - private final WordToSentenceProcessor < IN > wts = new WordToSentenceProcessor < IN > ( ) ;
 + private final WordToSentenceProcessor < IN > wts = new WordToSentenceProcessor < IN > ( WordToSentenceProcessor . NewlineIsSentenceBreak . ALWAYS ) ;

 private SeqClassifierFlags flags ; SINGLE
 private TokenizerFactory < IN > tokenizerFactory ;

Fix the sentence splitting behavior in the NER


<nb> public final class AztecBlackBox2TestCase extends AbstractBlackBoxTestCase {
 public AztecBlackBox2TestCase ( ) {
 super ( STRING0 , new AztecReader ( ) , BarcodeFormat . AZTEC ) ;
 addTest ( NUMBER0 , NUMBER0 , FLOAT0 ) ;
 - addTest ( NUMBER1 , NUMBER1 , FLOAT1 ) ;
 + addTest ( NUMBER0 , NUMBER0 , FLOAT1 ) ;
 addTest ( NUMBER2 , NUMBER2 , FLOAT2 ) ;
 addTest ( NUMBER1 , NUMBER1 , FLOAT3 ) ;
 }


<nb> final static class HashCollisionNode implements INode {
 private HashCollisionNode ensureEditable ( AtomicReference < Thread > edit ) {
 if ( this . edit == edit )
 return this ;
 - return new HashCollisionNode ( edit , count , hash , array ) ;
 + return new HashCollisionNode ( edit , hash , count , array ) ;
 }

 private HashCollisionNode ensureEditable ( AtomicReference < Thread > edit , int count , Object [ ] array ) {
 <nb> final static class HashCollisionNode implements INode {
 this . array = array ;
 return this ;
 }
 - return new HashCollisionNode ( edit , count , hash , array ) ;
 + return new HashCollisionNode ( edit , hash , count , array ) ;
 }

 private HashCollisionNode editAndSet ( AtomicReference < Thread > edit , int i , Object a ) {


<nb> public class ReturnChange {
 COMMENT
 public List < Integer > calculate ( int [ ] moneys , int billAmount ) {
 validateInputData ( moneys , billAmount ) ;
 +
 List < Integer > change = new LinkedList < Integer > ( ) ;
 while ( billAmount > NUMBER0 && moneys . length > NUMBER0 ) {
 for ( int i = moneys . length - NUMBER1 ; i >= NUMBER0 ; i -- ) {
 <nb> public class ReturnChange {
 private void validateInputData ( int [ ] moneys , int billAmount ) {
 if ( moneys == null || moneys . length == NUMBER0 || billAmount <= NUMBER0 ) {
 throw new IllegalArgumentException (
 - STRING0 ) ;
 + STRING1
 + + STRING2 ) ;
 }
 }
 }


<nb> public abstract class MixinItemLilyPad extends ItemColored {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 @ overwrite
 public ItemStack onItemRightClick ( ItemStack itemStackIn , World worldIn , EntityPlayer playerIn ) {
 MovingObjectPosition movingobjectposition = this . getMovingObjectPositionFromPlayer ( worldIn , playerIn , true ) ;
 <nb> public abstract class MixinMinecraftServer implements Server {
 return this . worldTickTimes ;
 }

 + @ override
 public ChunkTicketManager getChunkTicketManager ( ) {
 return this . chunkTicketManager ;
 }


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

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class JSON {
 public final static JsonFactory getFactory ( ) {
 return jsonMapper . getFactory ( ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public static class UniqueIdTypeDeserializer
 + extends JsonDeserializer < UniqueIdType > {
 +
 + @ override
 + public UniqueIdType deserialize ( final JsonParser parser , final
 + DeserializationContext context ) throws IOException {
 + return UniqueId . stringToUniqueIdType ( parser . getValueAsString ( ) ) ;
 + }
 + }
 }

Add JSON UniqueIdTypeDeserializer for deserializing human readable types to the UniqueIdType enumerator


<nb> import NAMESPACE ;
 @ configurationproperties ( STRING0 )
 public class AuthorizationServerProperties {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String checkTokenAccess ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String tokenKeyAccess ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private String realm ;

 public String getCheckTokenAccess ( ) {

Add javadocs to auth server config props


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 )
 + @ testlogging ( STRING0 )
 public class RelocationTests extends ElasticsearchIntegrationTest {
 private final TimeValue ACCEPTABLE_RELOCATION_TIME = new TimeValue ( NUMBER1 , TimeUnit . MINUTES ) ;

TEST add back accidetially removed test logging


<nb> public class Uploader extends SherlockListActivity implements OnItemClickListene
 case DIALOG_MULTIPLE_ACCOUNT :
 CharSequence ac [ ] = new CharSequence [ mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) . length ] ;
 for ( int i = NUMBER0 ; i < ac . length ; ++ i ) {
 - ac [ i ] = mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) [ i ] . name ;
 + ac [ i ] = DisplayUtils . convertIdn ( mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) [ i ] . name , false ) ;
 }
 builder . setTitle ( R . string . common_choose_account ) ;
 builder . setItems ( ac , new OnClickListener ( ) {

Convert IDN from ASCII to Unicode in Upload Dialog


<nb> public class MTLLoader implements AssetLoader {
 else
 color = new ColorRGBA ( ColorRGBA . White ) ;

 - color . a = scan . nextFloat ( ) ;
 + color . a = alpha ;
 material . setColor ( STRING0 , color ) ;
 material . setTransparent ( true ) ;
 material . getAdditionalRenderState ( ) . setBlendMode ( BlendMode . Alpha ) ;

Fixed MTL loader bug when handling Tr d statement


<nb> public class ProguardMojo extends AbstractAndroidMojo
 SINGLE
 String javaHome = System . getProperty ( STRING0 ) ;
 String jdkLibsPath = null ;
 - if ( javaHome . startsWith ( STRING1 ) || javaHome . startsWith ( STRING2 ) )
 + if ( isMacOSXJDKbyApple ( javaHome ) )
 {
 SINGLE
 - jdkLibsPath = javaHome + STRING3 ;
 + jdkLibsPath = appleJDKLibsPath ( javaHome ) ;
 addLibraryJar ( jdkLibsPath + STRING4 ) ;
 }
 else
 <nb> public class ProguardMojo extends AbstractAndroidMojo
 }
 }

 + private boolean isMacOSXJDKbyApple ( String javaHome )
 + {
 + return ( javaHome . startsWith ( STRING1 ) || javaHome . startsWith ( STRING2 ) )
 + && new File ( appleJDKLibsPath ( javaHome ) ) . exists ( ) ;
 + }
 +
 + private String appleJDKLibsPath ( String javaHome )
 + {
 + return javaHome + STRING3 ;
 + }

 COMMENT
 COMMENT

Only use the Mac OS X JDK path tweak if the path exists


<nb> public abstract class SQLTransportIntegrationTest extends ElasticsearchIntegrati
 return ImmutableSettings . builder ( ) . put ( STRING0 , NUMBER0 ) . build ( ) ;
 }

 + @ override
 + public void waitForConcreteMappingsOnAll ( String index , String type , String . . . fieldNames ) throws Exception {
 + waitForMappingUpdateOnAll ( index , fieldNames ) ;
 + }
 +
 @ after
 public void assertNoJobExecutionContextAreLeftOpen ( ) throws Exception {
 final Field activeContexts = JobContextService . class . getDeclaredField ( STRING1 ) ;


<nb> public class PVector implements Serializable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public void lerp ( PVector v , float amt ) {
 x = PApplet . lerp ( x , v . x , amt ) ;

Removed a see reference from PVector lerp as it wasn t being parsed by the ref generator script correctly


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public boolean executeHardwareAction ( Runnable action ) {
 - SINGLE
 - if ( mAttachInfo != null && mAttachInfo . mHardwareRenderer != null ) {
 - return mAttachInfo . mHardwareRenderer . safelyRun ( action ) ;
 - }
 - return false ;
 - }
 -
 void invalidateInheritedLayoutMode ( int layoutModeOfRoot ) {
 }


<nb> public class Http11Processor extends AbstractHttp11Processor implements ActionHo
 SINGLE
 async = true ;
 } else if ( actionCode == ActionCode . ACTION_ASYNC_COMPLETE ) {
 - SINGLE
 + SINGLE
 AtomicBoolean dispatch = ( AtomicBoolean ) param ;
 RequestInfo rp = request . getRequestProcessor ( ) ;
 if ( rp . getStage ( ) != org . apache . coyote . Constants . STAGE_SERVICE ) { SINGLE


<nb> public class StandaloneCatalogMapper {
 if ( tmpDefaultProducts == null ) {
 final Map < String , Product > map = new HashMap < String , Product > ( ) ;
 for ( final Product product : input ) map . put ( product . getName ( ) , toDefaultProduct ( product ) ) ;
 - tmpDefaultProducts = ImmutableMap . copyOf ( map ) ;
 + tmpDefaultProducts = map ;
 }
 return tmpDefaultProducts . values ( ) ;
 }
 <nb> public class StandaloneCatalogMapper {
 if ( tmpDefaultPlans == null ) {
 final Map < String , Plan > map = new HashMap < String , Plan > ( ) ;
 for ( final Plan plan : input ) map . put ( plan . getName ( ) , toDefaultPlan ( plan ) ) ;
 - tmpDefaultPlans = ImmutableMap . copyOf ( map ) ;
 + tmpDefaultPlans = map ;
 }
 return tmpDefaultPlans . values ( ) ;
 }

Remove unused copy of plans and products


<nb> public class ActionBarView extends AbsActionBarView {
 private SpinnerAdapter mSpinnerAdapter ;
 private OnNavigationListener mCallback ;

 + SINGLE
 +
 private ExpandedActionViewMenuPresenter mExpandedMenuPresenter ;
 View mExpandedActionView ;

 <nb> public class ActionBarView extends AbsActionBarView {
 @ override
 public void onDetachedFromWindow ( ) {
 super . onDetachedFromWindow ( ) ;
 + SINGLE
 if ( mActionMenuPresenter != null ) {
 mActionMenuPresenter . hideOverflowMenu ( ) ;
 mActionMenuPresenter . hideSubMenus ( ) ;

Using UNUSED comments instead of removing the unused code


<nb> public final class ZLAndroidLibrary extends ZLibrary {
 intent . putExtra ( BookDownloaderService . SHOW_NOTIFICATIONS_KEY , BookDownloaderService . Notifications . ALL ) ;
 externalUrl = false ;
 }
 - reference = NetworkLibrary . Instance ( ) . rewriteUrl ( reference , externalUrl ) ;
 + SINGLE
 + SINGLE
 intent . setData ( Uri . parse ( reference ) ) ;
 myActivity . startActivity ( intent ) ;
 }

rewriting URLs when clicked in the Book is disabled


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DexFile
 sectionsPosition ++ ;
 }

 +
 + offset = AlignmentUtils . alignOffset ( offset , ItemType . TYPE_MAP_LIST . ItemAlignment ) ;
 offset = MapItem . placeAt ( offset , NUMBER0 ) ;

 fileSize = offset ;

Align the offset before placing the map item


<nb> public class IDE {

 private static void print ( Writer writer , Object o ) {
 try {
 - writer . append ( String . valueOf ( o ) ) ;
 + writer . append ( String . valueOf ( o ) ) . append ( STRING0 ) ;
 }
 catch ( IOException e ) {
 throw new RuntimeException ( e ) ;


<nb> public class AjpNioProtocol extends AbstractAjpProtocol {
 COMMENT
 @ override
 public void release ( SocketWrapper < NioChannel > socket ) {
 - Processor < NioChannel > processor = connections . remove ( socket ) ;
 + Processor < NioChannel > processor =
 + connections . remove ( socket . getSocket ( ) ) ;
 if ( processor != null ) {
 processor . recycle ( true ) ;
 recycledProcessors . push ( processor ) ;

Fix release of processors in AjpNioProtocol


<nb> public class FMLModContainer implements ModContainer
 {
 return certificate ;
 }
 +
 + @ override
 + public String toString ( )
 + {
 + return STRING0 + getModId ( ) + STRING1 + getVersion ( ) + STRING2 ;
 + }
 }

should mean less derpy cyclic dependency data


<nb> public class BufferUtil
 if ( buffer . hasArray ( ) )
 buf . append ( Integer . toHexString ( ( ( Object ) buffer . array ( ) ) . hashCode ( ) ) ) ;
 else
 - buf . append ( STRING0 ) ;
 + buf . append ( Integer . toHexString ( buf . hashCode ( ) ) ) ;
 buf . append ( STRING1 ) ;
 buf . append ( buffer . position ( ) ) ;
 buf . append ( STRING2 ) ;

Including hashcode in BufferUtils toDetailString


<nb>

 package NAMESPACE ;

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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public abstract class DescribingMatcher < T extends Tree > implements Matcher < T > {
 + STRING0 ) ;
 }
 name = annotation . name ( ) ;
 - names = Lists . newArrayListWithCapacity ( annotation . altNames ( ) . length + NUMBER0 ) ;
 + names = new ArrayList < String > ( annotation . altNames ( ) . length + NUMBER0 ) ;
 names . add ( name ) ;
 names . addAll ( Arrays . asList ( annotation . altNames ( ) ) ) ;
 diagnosticMessage = STRING1 + annotation . name ( ) + STRING2 + annotation . summary ( )


<nb> public class AnnotationLookup {
 SECTION_KEY ( CoreAnnotations . SectionAnnotation . class , STRING0 ) ,
 SECTIONID_KEY ( CoreAnnotations . SectionIDAnnotation . class , STRING1 ) ,
 SECTIONDATE_KEY ( CoreAnnotations . SectionDateAnnotation . class , STRING2 ) ,
 + STACKED_NER_KEY ( CoreAnnotations . StackedNamedEntityTagAnnotation . class , STRING3 ) ,

 SINGLE
 HEAD_KEY ( CoreAnnotations . HeadWordStringAnnotation . class , STRING4 ) ,

Add stackedNer key to AnnotationLookup to allow hybrid NER training


<nb> public class Cluster
 ExecutorService executor = Executors . newCachedThreadPool ( new NamedThreadFactory ( STRING0 ) ) ;
 try
 {
 - CompletionService < EdgeGraphDatabase > edgeGraphDatabaseCompletionService = startEdgeMembers ( executor ) ;
 startCoreMembers ( executor ) ;
 - waitForEdgeServers ( edgeGraphDatabaseCompletionService ) ;
 + startEdgeMembers ( executor ) ;
 }
 finally
 {
 <nb> public class Cluster
 }
 }

 - private CompletionService < EdgeGraphDatabase > startEdgeMembers ( ExecutorService executor ) throws InterruptedException , ExecutionException
 + private void startEdgeMembers ( ExecutorService executor ) throws InterruptedException , ExecutionException
 {
 CompletionService < EdgeGraphDatabase > ecs = new ExecutorCompletionService < > ( executor ) ;

 <nb> public class Cluster
 return edgeClusterMember . database ( ) ;
 } ) ;
 }
 - return ecs ;
 +
 + for ( int i = NUMBER0 ; i < edgeMembers . size ( ) ; i ++ )
 + {
 + ecs . take ( ) . get ( ) ;
 + }
 }

 private void createEdgeMembers ( int noOfEdgeMembers ,

start core servers first while we sort out shutting down CatchupServer when a core server is copying the store down


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class BridgedCollections {
 . descriptor ( descriptor ) ;
 }

 - public static Transformer < String , String > itemDescriptor ( String parentDescriptor ) {
 - return new StandardDescriptorFactory ( parentDescriptor ) ;
 - }
 -
 private static class ExtractFromParentContainer < I , C extends NamedDomainObjectCollection < I > > implements Transformer < I , MutableModelNode > {

 private final String name ;


<nb> public class SearchDialog extends DialogWrapper implements ConfigurationCreator
 contextLanguage = psiElement != null ? psiElement . getParent ( ) . getLanguage ( ) : null ;
 }

 - if ( file . getFileType ( ) == StdFileTypes . HTML ||
 + if ( file . getLanguage ( ) == StdLanguages . HTML ||
 ( file . getFileType ( ) == StdFileTypes . JSP &&
 contextLanguage == StdLanguages . HTML
 )
 ) {
 ourFileType = STRING0 ;
 }
 - else if ( file . getFileType ( ) == StdFileTypes . XHTML ||
 + else if ( file . getLanguage ( ) == StdLanguages . XHTML ||
 ( file . getFileType ( ) == StdFileTypes . JSPX &&
 contextLanguage == StdLanguages . HTML
 ) ) {


<nb> public class MasterUtil
 {
 try
 {
 - SINGLE
 long extractedTxId = finalLogExtractor . extractNext ( buffer ) ;
 if ( extractedTxId == - NUMBER0 ) throw new RuntimeException ( STRING0 ) ;
 + if ( extractedTxId != tx ) throw new RuntimeException ( STRING1 + tx + STRING2 + extractedTxId ) ;
 }
 catch ( IOException e )
 {
 <nb> public abstract class Server < M , R > extends Protocol implements ChannelPipelineFa
 }
 catch ( Throwable e )
 {
 + e . printStackTrace ( ) ;
 channel . close ( ) ;
 tryToFinishOffChannel ( channel , context ) ;
 throw Exceptions . launderedException ( e ) ;

Added more assertions regarding extracted transactions


<nb> public class MotionGroup extends AbstractActionGroup {
 }
 SINGLE
 else if ( ( flags & Command . FLAG_MOT_INCLUSIVE ) != NUMBER0 ) {
 - end = end + ( start <= end ? NUMBER1 : - NUMBER1 ) ;
 + end ++ ;
 }

 SINGLE
 <nb> public class MotionActionTest extends VimTestCase {
 assertSelection ( STRING0 ) ;
 }

 + SINGLE
 + public void testChangeEmptyQuotedString ( ) {
 + typeTextInFile ( stringToKeys ( STRING1 ) ,
 + STRING2 ) ;
 + myFixture . checkResult ( STRING3 ) ;
 + }
 +
 SINGLE
 public void testDeleteInnerSingleQuoteString ( ) {
 typeTextInFile ( stringToKeys ( STRING4 ) ,


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

 import NAMESPACE ;

 <nb> public interface LocalTerminalCustomizer {
 ExtensionPointName < LocalTerminalCustomizer > EP_NAME = ExtensionPointName . create ( STRING0 ) ;

 void setupEnvironment ( @ notnull Project project , @ notnull Map < String , String > envs ) ;
 +
 + @ nullable
 + String getDefaultFolder ( ) ;
 }
 <nb> public class LocalTerminalDirectRunner extends AbstractTerminalRunner < PtyProcess

 for ( LocalTerminalCustomizer customizer : LocalTerminalCustomizer . EP_NAME . getExtensions ( ) ) {
 customizer . setupEnvironment ( myProject , envs ) ;
 +
 + if ( directory == null ) {
 + directory = customizer . getDefaultFolder ( ) ;
 + }
 }

 try {


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 public interface ResolutionStrategy {

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Tweaked the DSL and the documentation related to the strict resolution strategy


<nb> class ActivityUtils {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT

 <nb> public class Solo {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT

 public void goBackToActivity ( String name )

Clarified javadoc for goBackToActivity in Solo and ActivityUtils


<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
 private void checkTagByDescriptor ( final XmlTag tag ) {
 String name = tag . getName ( ) ;

 - XmlElementDescriptor elementDescriptor ;
 + XmlElementDescriptor elementDescriptor = null ;

 final PsiElement parent = tag . getParent ( ) ;
 if ( parent instanceof XmlTag ) {
 XmlTag parentTag = ( XmlTag ) parent ;
 - elementDescriptor = parentTag . getDescriptor ( ) ;
 + final XmlElementDescriptor parentDescriptor = parentTag . getDescriptor ( ) ;
 boolean nullParentDescriptor = false ;

 - if ( elementDescriptor != null ) {
 - elementDescriptor = elementDescriptor . getElementDescriptor ( tag ) ;
 + if ( parentDescriptor != null ) {
 + elementDescriptor = parentDescriptor . getElementDescriptor ( tag ) ;
 } else {
 nullParentDescriptor = true ;
 }

fixed issue with wrong jsp xml view generation for single tags


<nb> public interface WindowManager extends ViewManager {
 @ viewdebug.inttostring ( from = TYPE_HIDDEN_NAV_CONSUMER , to = STRING0 ) ,
 @ viewdebug.inttostring ( from = TYPE_DREAM , to = STRING1 ) ,
 @ viewdebug.inttostring ( from = TYPE_NAVIGATION_BAR_PANEL , to = STRING2 ) ,
 - @ viewdebug.inttostring ( from = TYPE_DISPLAY_OVERLAY , to = STRING3 ) ,
 + @ viewdebug.inttostring ( from = TYPE_DISPLAY_OVERLAY , to = STRING3 )
 } )
 public int type ;


<nb> public final class PairedStatsAccumulator {
 COMMENT
 COMMENT
 COMMENT
 - SINGLE
 - void addAll ( PairedStats values ) {
 + public void addAll ( PairedStats values ) {
 if ( values . count ( ) == NUMBER0 ) {
 return ;
 }
 <nb> public final class StatsAccumulator {
 COMMENT
 COMMENT
 COMMENT
 - SINGLE
 - void addAll ( Stats values ) {
 + public void addAll ( Stats values ) {
 if ( values . count ( ) == NUMBER0 ) {
 return ;
 }

Publishes the new StatsAccumulator addAll Stats and PairedStatsAccumulator addAll PairedStats methods


<nb> public class FileBasedIndex implements ApplicationComponent {
 break ; SINGLE
 }
 }
 - if ( allDocsProcessed ) {
 - myUpToDateIndices . add ( indexId ) ; SINGLE
 + if ( allDocsProcessed && ! hasActiveTransactions ( ) ) {
 + myUpToDateIndices . add ( indexId ) ; SINGLE
 }
 }
 }
 <nb> public class FileBasedIndex implements ApplicationComponent {
 }
 }

 + private boolean hasActiveTransactions ( ) {
 + synchronized ( myTransactionMap ) {
 + return ! myTransactionMap . isEmpty ( ) ;
 + }
 + }
 +
 private interface DocumentContent {
 String getText ( ) ;
 long getModificationStamp ( ) ;

Disable index is up to date optimization while in transaction


<nb>
 SINGLE
 SINGLE
 SINGLE
 + SINGLE

 package NAMESPACE ;

 <nb> public class SiteNode extends DefaultMutableTreeNode {
 COMMENT
 COMMENT
 public void setHistoryReference ( HistoryReference historyReference ) {
 +
 + if ( HistoryReference . TYPE_SCANNER == historyReference . getHistoryType ( ) ) {
 + return ;
 + }

 if ( getHistoryReference ( ) != null ) {
 SINGLE


<nb> public abstract class ConfusionProbabilityRule extends Rule {
 throw new RuntimeException ( e ) ;
 }
 this . lm = Objects . requireNonNull ( languageModel ) ;
 + if ( grams < NUMBER0 || grams > NUMBER1 ) {
 + throw new IllegalArgumentException ( STRING0 + grams ) ;
 + }
 this . grams = grams ;
 totalTokenCount = languageModel . getTotalTokenCount ( ) ;
 }


<nb> public class TransactionalGraphTestSuite extends TestSuite {
 vertexCount ( graph , NUMBER0 ) ;

 Vertex v2 = graph . addVertex ( null ) ;
 + v1 = graph . getVertex ( v1 . getId ( ) ) ;
 graph . addEdge ( null , v1 , v2 , convertId ( graph , STRING0 ) ) ;

 vertexCount ( graph , NUMBER1 ) ;
 <nb> public class TransactionalGraphTestSuite extends TestSuite {
 graph . stopTransaction ( Conclusion . SUCCESS ) ;

 vertexCount ( graph , NUMBER1 ) ;
 -
 + graph . shutdown ( ) ;
 }

 public void testBulkTransactionsOnEdges ( ) {

Correcting test case to respect transactional boundary


<nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat
 }

 private void ensureProgressUiShown ( ) {
 + if ( isFinishing ( ) ) {
 + return ;
 + }
 if ( mUiState != UI_STATE_PROGRESS ) {
 mUiState = UI_STATE_PROGRESS ;
 mPrintPreviewController . setUiShown ( false ) ;
 <nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat
 }

 private void ensurePreviewUiShown ( ) {
 + if ( isFinishing ( ) ) {
 + return ;
 + }
 if ( mUiState != UI_STATE_PREVIEW ) {
 mUiState = UI_STATE_PREVIEW ;
 mPrintPreviewController . setUiShown ( true ) ;
 <nb> public class PrintActivity extends Activity implements RemotePrintDocument . Updat
 }

 private void ensureErrorUiShown ( CharSequence message , int action ) {
 + if ( isFinishing ( ) ) {
 + return ;
 + }
 if ( mUiState != UI_STATE_ERROR ) {
 mUiState = UI_STATE_ERROR ;
 mPrintPreviewController . setUiShown ( false ) ;

Do not change fragments if print activity finishing


<nb> 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 DefaultPaymentApi implements PaymentApi {
 invoicePaymentApi . notifyOfPaymentAttempt ( new DefaultInvoicePayment ( paymentAttempt . getPaymentAttemptId ( ) ,
 invoice . getId ( ) ,
 paymentAttempt . getPaymentAttemptDate ( ) ,
 - paymentInfo == null ? null : paymentInfo . getAmount ( ) ,
 + paymentInfo == null || paymentInfo . getStatus ( ) . equalsIgnoreCase ( STRING0 ) ? null : paymentInfo . getAmount ( ) ,
 SINGLE
 - paymentInfo == null ? null : invoice . getCurrency ( ) ) ) ;
 + paymentInfo == null || paymentInfo . getStatus ( ) . equalsIgnoreCase ( STRING0 ) ? null : invoice . getCurrency ( ) ) ) ;

 }
 }

Tweaked handling of payment attempt notification when the status is error


<nb> package NAMESPACE ;
 import NAMESPACE ;

 public class CompilerSettings {
 - private static final String DEFAULT_ADDITIONAL_ARGUMENTS = STRING0 ;
 + private static final String DEFAULT_ADDITIONAL_ARGUMENTS = STRING1 ;

 @ notnull
 private String additionalArguments = DEFAULT_ADDITIONAL_ARGUMENTS ;

Not writing compiler arguments from JPS plugin by default


<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 abstract class ClusterTest extends ControllerTest {
 Configuration configuration = BrokerTestUtils . getDefaultBrokerConfiguration ( ) ;
 configuration . setProperty ( STRING0 , NUMBER0 * NUMBER1 ) ;
 configuration . setProperty ( STRING1 , Integer . toString ( NUMBER2 + i ) ) ;
 + configuration . setProperty ( STRING2 , STRING3 ) ;
 overrideBrokerConf ( configuration ) ;
 _brokerStarters . add ( BrokerTestUtils . startBroker ( helixClusterName , ZkTestUtils . DEFAULT_ZK_STR , configuration ) ) ;
 }

Fix NPE in integration tests when starting the broker


<nb> public class Application extends android . app . Application {
 private DatabaseManager mDatabaseManager ;
 private Set < ActiveRecordBase < ? > > mEntities ;

 - private boolean mShowTrialToast ;
 -
 @ override
 public void onCreate ( ) {
 super . onCreate ( ) ;
 <nb> public class Application extends android . app . Application {
 if ( Params . LOGGING_ENABLED ) {
 Log . e ( Params . LOGGING_TAG , STRING0 ) ;
 }
 -
 +
 System . exit ( NUMBER0 ) ;
 }

 <nb> public class Application extends android . app . Application {
 mDatabaseManager . closeDB ( ) ;
 }

 - mShowTrialToast = false ;
 -
 super . onTerminate ( ) ;
 }


<nb> public class AnnotationMethodMessageHandler implements MessageHandler , Applicati

 initHandlerMethods ( ) ;

 - SINGLE
 - this . argumentResolvers . addResolver ( new MessageBodyMethodArgumentResolver ( this . messageConverter ) ) ;
 -
 SINGLE
 this . argumentResolvers . addResolver ( new PrincipalMethodArgumentResolver ( ) ) ;
 this . argumentResolvers . addResolver ( new MessageMethodArgumentResolver ( ) ) ;
 <nb> public class AnnotationMethodMessageHandler implements MessageHandler , Applicati
 SINGLE
 this . argumentResolvers . addResolvers ( this . customArgumentResolvers ) ;

 + SINGLE
 + this . argumentResolvers . addResolver ( new MessageBodyMethodArgumentResolver ( this . messageConverter ) ) ;
 +
 SINGLE
 this . returnValueHandlers . addHandler ( new ReplyToMethodReturnValueHandler ( this . dispatchMessagingTemplate ) ) ;
 this . returnValueHandlers . addHandler ( new SubscriptionMethodReturnValueHandler ( this . webSocketSessionMessagingTemplate ) ) ;

Fix bug with the order of messaging arg resolvers


<nb> public class GitBlitDiffFormatter extends DiffFormatter {
 String [ ] lines = html . split ( STRING0 ) ;
 StringBuilder sb = new StringBuilder ( ) ;
 for ( String line : lines ) {
 - if ( line . startsWith ( STRING1 ) ) {
 + if ( line . startsWith ( STRING1 ) || line . startsWith ( STRING2 )
 + || line . startsWith ( STRING3 ) || line . startsWith ( STRING4 ) ) {
 SINGLE
 } else if ( line . startsWith ( STRING5 ) || line . startsWith ( STRING6 ) ) {
 SINGLE


<nb> public class ZooKeeperMap < V > extends ForwardingMap < String , V > {
 ZooKeeperMap ( ZooKeeperClient zkClient , String nodePath ,
 Function < byte [ ] , V > deserializer ) throws InterruptedException , KeeperException ,
 ZooKeeperConnectionException {
 - this ( zkClient , nodePath , deserializer , null ) ;
 + this ( zkClient , nodePath , deserializer , ZooKeeperMap . < V > noopListener ( ) ) ;
 }

 COMMENT


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class MapPropertySource extends EnumerablePropertySource < Map < String , Obje
 return StringUtils . toStringArray ( this . source . keySet ( ) ) ;
 }

 + @ override
 + public boolean containsProperty ( String name ) {
 + Assert . notNull ( name , STRING0 ) ;
 + boolean containsProperty = this . source . containsKey ( name ) ;
 + if ( logger . isDebugEnabled ( ) ) {
 + logger . debug ( String . format ( STRING1 , getName ( ) ,
 + ( containsProperty ? STRING2 : STRING3 ) , name ) ) ;
 + }
 + return containsProperty ;
 + }
 +
 }

Implement containsProperty on MapPropertySource


<nb> public class WebView extends AbsoluteLayout
 if ( ! nativeCursorIntersects ( visibleRect ) ) {
 return false ;
 }
 - nativeSetFollowedLink ( true ) ;
 nativeUpdatePluginReceivesEvents ( ) ;
 WebViewCore . CursorData data = cursorData ( ) ;
 mWebViewCore . sendMessage ( EventHub . SET_MOVE_MOUSE , data ) ;
 playSoundEffect ( SoundEffectConstants . CLICK ) ;
 - boolean isTextInput = nativeCursorIsTextInput ( ) ;
 - if ( isTextInput || ! mCallbackProxy . uiOverrideUrlLoading (
 - nativeCursorText ( ) ) ) {
 + if ( nativeCursorIsTextInput ( ) ) {
 + rebuildWebTextView ( ) ;
 + return true ;
 + }
 + nativeSetFollowedLink ( true ) ;
 + if ( ! mCallbackProxy . uiOverrideUrlLoading ( nativeCursorText ( ) ) ) {
 mWebViewCore . sendMessage ( EventHub . CLICK , data . mFrame ,
 nativeCursorNodePointer ( ) ) ;
 }
 - if ( isTextInput ) {
 - rebuildWebTextView ( ) ;
 - displaySoftKeyboard ( true ) ;
 - }
 return true ;
 }

Do not hide the cursor ring when clicking on an input field


<nb> final class WindowState implements WindowManagerPolicy . WindowState {
 mStableFrame . set ( mContentFrame ) ;
 } else if ( mAttrs . type == TYPE_DOCK_DIVIDER ) {
 mDisplayContent . mDividerControllerLocked . positionDockedStackedDivider ( mFrame ) ;
 + mContentFrame . set ( mFrame ) ;
 } else {
 mContentFrame . set ( Math . max ( mContentFrame . left , mFrame . left ) ,
 Math . max ( mContentFrame . top , mFrame . top ) ,

Fix frequent recreation of dock divider surface


<nb> import NAMESPACE ;

 public class Address implements DataSerializable {

 - private String host = null ;
 + COMMENT
 + COMMENT
 + COMMENT
 + private static final long serialVersionUID = - NUMBER0 ;
 +
 + private String host = null ;

 private byte [ ] ip ;


<nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 , SINGLE
 } ;

 <nb> public class EnglishGrammaticalStructureTest extends TestCase {
 STRING4 +
 STRING5 +
 STRING6 ,
 + STRING7 +
 + STRING8 +
 + STRING9 +
 + STRING10 +
 + STRING11 +
 + STRING12 +
 + STRING13 +
 + STRING14 +
 + STRING15 +
 + STRING16 +
 + STRING17 +
 + STRING18 +
 + STRING19 +
 + STRING20 ,
 } ;

 assertEquals ( STRING21 , testTrees . length , testAnswers . length ) ;

Add a test for the negcc collapsing for but not


<nb> public class RestMainAction extends BaseRestHandler {

 @ override
 public void handleRequest ( final RestRequest request , final RestChannel channel ) {
 + if ( ! request . hasParam ( STRING0 ) ) {
 + request . params ( ) . put ( STRING0 , STRING1 ) ;
 + }
 ClusterStateRequest clusterStateRequest = new ClusterStateRequest ( ) ;
 clusterStateRequest . listenerThreaded ( false ) ;
 clusterStateRequest . masterNodeTimeout ( TimeValue . timeValueMillis ( NUMBER0 ) ) ;
 <nb> public class RestMainAction extends BaseRestHandler {
 }

 try {
 - XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) . prettyPrint ( ) ;
 + XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) ;
 builder . startObject ( ) ;
 builder . field ( STRING2 , true ) ;
 builder . field ( STRING3 , status . getStatus ( ) ) ;

Handle pretty false and missing line feed for pretty true which is the default for main REST action


<nb> public class BSONFileInputFormat extends FileInputFormat {
 public RecordReader createRecordReader ( final InputSplit split , final TaskAttemptContext context )
 throws IOException , InterruptedException {

 - BSONFileRecordReader reader = new BSONFileRecordReader ( ) ;
 - reader . initialize ( split , context ) ;
 - return reader ;
 + return new BSONFileRecordReader ( ) ;
 }

 public static PathFilter getInputPathFilter ( final JobContext context ) {


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

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

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

 import NAMESPACE ;

Add missing Apache comments to new files


<nb> public class ZMQ {
 base = base_ ;
 }

 - protected SocketBase base ( ) {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public SocketBase base ( ) {
 return base ;
 }

expose special purpose raw zmq SocketBase


<nb> public class RenderScript {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RenderScript {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 static public void forceCompat ( ) {
 sNative = NUMBER0 ;

RenderScript fix unhide after cherry pick to aosp


<nb> public class NumberPicker extends LinearLayout {
 mInputText . selectAll ( ) ;
 } else {
 mInputText . setSelection ( NUMBER0 , NUMBER0 ) ;
 - validateInputTextView ( v ) ;
 + validateInputTextView ( mInputText ) ;
 }
 }
 } ) ;
 <nb> public class NumberPicker extends LinearLayout {
 return false ;
 }

 - private void validateInputTextView ( View v ) {
 - String str = String . valueOf ( ( ( TextView ) v ) . getText ( ) ) ;
 + private void validateInputTextView ( NumberPickerEditText v ) {
 + String str = String . valueOf ( v . getText ( ) ) ;
 if ( TextUtils . isEmpty ( str ) ) {
 updateInputTextView ( ) ;
 } else {


<nb> public enum Biome {
 ICE_DESERT ,
 TUNDRA ,
 HELL ,
 - SKY
 + SKY ,
 + OCEAN ,
 + RIVER ,
 + EXTREME_HILLS ,
 }


<nb> public final class Ray implements Savable , Cloneable , Collidable , java . io . Serial
 COMMENT
 COMMENT
 public void setDirection ( Vector3f direction ) {
 - if ( ! direction . isUnitVector ( ) ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 - }
 + assert direction . isUnitVector ( ) ;
 this . direction . set ( direction ) ;
 }

Replaced mandatory check in Ray setDirection with assertion


<nb> public class GrailsCoreDependencies {

 String springVersion = STRING0 ;
 String antVersion = STRING1 ;
 - String groovyVersion = STRING2 ;
 String slf4jVersion = STRING3 ;
 String junitVersion = STRING4 ;
 ModuleRevisionId [ ] buildDependencies = {
 <nb> public class GrailsCoreDependencies {
 ModuleRevisionId . newInstance ( STRING5 , STRING5 , junitVersion ) ,
 } ;
 registerDependencies ( dependencyManager , STRING6 , buildDependencies ) ;
 -
 +
 ModuleRevisionId [ ] antDependencies = {
 ModuleRevisionId . newInstance ( STRING7 , STRING8 , antVersion ) ,
 ModuleRevisionId . newInstance ( STRING7 , STRING9 , antVersion ) ,
 <nb> public class GrailsCoreDependencies {

 SINGLE
 ModuleRevisionId [ ] groovyDependencies = {
 - ModuleRevisionId . newInstance ( STRING10 , STRING11 , groovyVersion )
 + ModuleRevisionId . newInstance ( STRING10 , STRING11 , STRING1 )
 } ;
 registerDependencies ( dependencyManager , compileTimeDependenciesMethod , groovyDependencies , STRING12 ) ;


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

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

 - public class OptionsEditorDialog extends DialogWrapper {
 + public class OptionsEditorDialog extends DialogWrapper implements DataProvider {

 private Project myProject ;
 private ConfigurableGroup [ ] myGroups ;
 <nb> public class OptionsEditorDialog extends DialogWrapper {
 return myEditor . getPreferredFocusedComponent ( ) ;
 }

 + public Object getData ( @ nonnls String dataId ) {
 + if ( dataId . equals ( OptionsEditor . KEY . getName ( ) ) ) {
 + return myEditor ;
 + }
 + return null ;
 + }
 +
 private class ApplyAction extends AbstractAction {
 public ApplyAction ( ) {
 super ( CommonBundle . getApplyButtonText ( ) ) ;


<nb> public class DexBackedDexFile extends BaseDexBuffer implements DexFile {

 public int getMethodIdItemOffset ( int methodIndex ) {
 if ( methodIndex < NUMBER0 || methodIndex >= methodCount ) {
 - throw new InvalidItemIndex ( methodIndex , STRING0 , methodIndex ) ;
 + throw new InvalidItemIndex ( methodIndex , STRING1 , methodIndex ) ;
 }
 return methodStartOffset + methodIndex * MethodIdItem . ITEM_SIZE ;
 }

Fix typo in method index OOB error message


<nb> public class StandardContext extends ContainerBase
 ApplicationListener listener = listeners [ i ] ;
 results [ i ] = instanceManager . newInstance (
 listener . getClassName ( ) ) ;
 - if ( listener . isAllowedPluggability ( ) ) {
 + if ( listener . isPluggabilityBlocked ( ) ) {
 tldListeners . add ( results [ i ] ) ;
 }
 } catch ( Throwable t ) {
 <nb> package NAMESPACE ;
 public class ApplicationListener {

 private final String className ;
 - private final boolean allowedPluggability ;
 + private final boolean pluggabilityBlocked ;

 public ApplicationListener ( String className ,
 - boolean allowedPluggability ) {
 + boolean pluggabilityBlocked ) {
 this . className = className ;
 - this . allowedPluggability = allowedPluggability ;
 + this . pluggabilityBlocked = pluggabilityBlocked ;
 }

 <nb> public class ApplicationListener {
 }

 - public boolean isAllowedPluggability ( ) {
 - return allowedPluggability ;
 + public boolean isPluggabilityBlocked ( ) {
 + return pluggabilityBlocked ;
 }
 }


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

 <nb> public class ReadOnlyHadoopSwapperTest extends TestCase {
 Store < ByteArray , byte [ ] > store2 = server2 . getStoreMap ( ) . get ( storeName ) ;

 SerializerDefinition serDef = new SerializerDefinition ( STRING0 , STRING1 ) ;
 - Serializer < Object > serializer = ( Serializer < Object > ) new DefaultSerializerFactory ( ) . getSerializer ( serDef ) ;
 + Serializer < Object > serializer = StoreUtils . unsafeGetSerializer ( new DefaultSerializerFactory ( ) ,
 + serDef ) ;

 SINGLE
 for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {


<nb> public class PropertyExpression extends Expression {
 }

 public Expression transformExpression ( ExpressionTransformer transformer ) {
 - property = transformer . transform ( property ) ;
 - objectExpression = transformer . transform ( objectExpression ) ;
 - return this ;
 + PropertyExpression ret = new PropertyExpression ( transformer . transform ( objectExpression ) ,
 + transformer . transform ( property ) , safe ) ;
 + ret . setSpreadSafe ( spreadSafe ) ;
 + ret . setStatic ( isStatic ) ;
 + ret . setImplicitThis ( implicitThis ) ;
 + ret . setSourcePosition ( this ) ;
 + return ret ;
 }

 public Expression getObjectExpression ( ) {

fixed implementation of PropertyExpression transformExpression


<nb> public class ConnectivityService extends IConnectivityManager . Stub
 }
 int user = UserHandle . getUserId ( Binder . getCallingUid ( ) ) ;
 synchronized ( mVpns ) {
 - setLockdownTracker ( new LockdownVpnTracker ( mContext , mNetd , this , mVpns . get ( user ) ,
 - profile ) ) ;
 + Vpn vpn = mVpns . get ( user ) ;
 + if ( vpn == null ) {
 + Slog . w ( TAG , STRING0 + user + STRING1 ) ;
 + return false ;
 + }
 + setLockdownTracker ( new LockdownVpnTracker ( mContext , mNetd , this , vpn , profile ) ) ;
 }
 } else {
 setLockdownTracker ( null ) ;

Skip lockdown setup if user is not up yet


<nb> public abstract class AbstractScheduler implements InstanceListener {
 final ExecutionState state = vertex . getExecutionState ( ) ;

 if ( state != ExecutionState . CREATED && state != ExecutionState . FINISHED
 - && state != ExecutionState . FAILED ) {
 + && state != ExecutionState . FAILED && state != ExecutionState . CANCELED ) {
 +
 instanceCanBeReleased = false ;
 break ;
 }

Fixed instance leak bug in case of canceled jobs


<nb> public class SharedBlockingCallback
 return STRING0 ;
 }
 } ;
 +
 + private static Throwable FAILED = new Throwable ( )
 + {
 + @ override
 + public String toString ( )
 + {
 + return STRING1 ;
 + }
 + } ;

 final Blocker _blocker ;

 <nb> public class SharedBlockingCallback
 {
 if ( _state == null )
 {
 - _state = cause ;
 + SINGLE
 + if ( cause == null )
 + LOG . warn ( STRING2 , new Throwable ( ) ) ;
 + _state = cause == null ? FAILED : cause ;
 _complete . signalAll ( ) ;
 }
 else if ( _state == IDLE )

Protect blocker against null failed callback


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis
 int i = element . getIndex ( ) ;
 boolean wrap = false ;
 Expression arg = args . get ( i ) ;
 - if ( arg instanceof BooleanBuilder ) {
 - arg = ( ( BooleanBuilder ) arg ) . getValue ( ) ;
 + if ( arg instanceof Operation && ( ( Operation ) arg ) . getOperator ( ) == Ops . DELEGATE ) {
 + arg = ( ( Operation ) arg ) . getArg ( NUMBER0 ) ;
 }
 if ( arg instanceof Operation ) {
 wrap = precedence < templates . getPrecedence ( ( ( Operation < ? > ) arg ) . getOperator ( ) ) ;

removed BooleanBuilder usage from SerializerBase


<nb> public final class DoubleMath {
 throw new AssertionError ( ) ;
 }
 }
 -
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class DoubleMath {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class DoubleMath {
 FLOAT0 ,
 FLOAT1 ,
 FLOAT2 } ;
 +
 + private DoubleMath ( ) { }
 }

Add private constructor pointed out by Louis


<nb> public class JBScrollPane extends JScrollPane {
 return ltr ? LEFT : RIGHT ;
 }
 }
 + SINGLE
 + SINGLE
 + if ( component instanceof JScrollBar ) {
 + JScrollBar bar = ( JScrollBar ) component ;
 + switch ( bar . getOrientation ( ) ) {
 + case Adjustable . HORIZONTAL :
 + return BOTTOM ;
 + case Adjustable . VERTICAL :
 + return bar . getComponentOrientation ( ) . isLeftToRight ( )
 + ? RIGHT
 + : LEFT ;
 + }
 + }
 }
 return null ;
 }

support a scroll bar which is not contained in a scroll pane


<nb> public class OreDictionary
 replacements . put ( new ItemStack ( Blocks . planks , NUMBER0 , WILDCARD_VALUE ) , STRING0 ) ;
 replacements . put ( new ItemStack ( Blocks . wooden_slab , NUMBER0 , WILDCARD_VALUE ) , STRING1 ) ;
 replacements . put ( new ItemStack ( Blocks . stone ) , STRING2 ) ;
 - replacements . put ( new ItemStack ( Blocks . stone , NUMBER0 , WILDCARD_VALUE ) , STRING2 ) ;
 + SINGLE
 replacements . put ( new ItemStack ( Blocks . cobblestone ) , STRING3 ) ;
 replacements . put ( new ItemStack ( Blocks . cobblestone , NUMBER0 , WILDCARD_VALUE ) , STRING3 ) ;
 replacements . put ( new ItemStack ( Items . gold_ingot ) , STRING4 ) ;


<nb> public class DeepLinkingIntentReceiverActivity extends AppCompatActivity {
 startActivityForResult ( intent , INTENT_WELCOME ) ;
 }
 } else if ( uri . equals ( STRING0 ) ) {
 - attemptLogin ( uri ) ;
 + attemptLoginWithMagicLink ( uri ) ;
 } else {
 finish ( ) ;
 }
 <nb> public class DeepLinkingIntentReceiverActivity extends AppCompatActivity {
 finish ( ) ;
 }

 - private void attemptLogin ( Uri uri ) {
 -
 + private void attemptLoginWithMagicLink ( Uri uri ) {
 + SINGLE
 }

 @ override


<nb> public class SimpleListDividerDecorator extends RecyclerView . ItemDecoration {
 if ( mHorizontalDividerHeight != NUMBER0 ) {
 final int left = child . getLeft ( ) ;
 final int right = child . getRight ( ) ;
 - final int top = child . getBottom ( ) ;
 + final int top = child . getBottom ( ) - ( mOverlap ? mHorizontalDividerHeight : NUMBER0 ) ;
 final int bottom = top + mHorizontalDividerHeight ;

 mHorizontalDrawable . setAlpha ( ( int ) ( ( FLOAT0 * NUMBER1 ) * ( childAlpha + nextChildAlpha ) + FLOAT0 ) ) ;
 <nb> public class SimpleListDividerDecorator extends RecyclerView . ItemDecoration {
 }

 if ( mVerticalDividerWidth != NUMBER0 ) {
 - final int left = child . getRight ( ) ;
 + final int left = child . getRight ( ) - ( mOverlap ? mVerticalDividerWidth : NUMBER0 ) ;
 final int right = left + mVerticalDividerWidth ;
 final int top = child . getTop ( ) ;
 final int bottom = child . getBottom ( ) ;


<nb> public interface AccessLog {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> enum ControlMessage {

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 ChannelBuffer buffer ( ) throws Exception {
 - ChannelBufferOutputStream bout = new ChannelBufferOutputStream ( ChannelBuffers . dynamicBuffer ( ) ) ;
 + ChannelBufferOutputStream bout = new ChannelBufferOutputStream ( ChannelBuffers . buffer ( NUMBER0 ) ) ;
 write ( bout ) ;
 bout . close ( ) ;
 return bout . buffer ( ) ;

use fixed size buffer for control messages


<nb> public class HighlighterSearchTests extends AbstractNodesTests {
 . execute ( ) . actionGet ( ) ;

 assertThat ( search . hits ( ) . totalHits ( ) , equalTo ( NUMBER0 ) ) ;
 + assertThat ( search . hits ( ) . hits ( ) . length , equalTo ( NUMBER1 ) ) ;
 + assertThat ( search . getFailedShards ( ) , equalTo ( NUMBER2 ) ) ;

 for ( SearchHit hit : search . hits ( ) ) {
 SINGLE


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

 - COMMENT
 - COMMENT
 - public class StdLibTestSupport extends SingleFileTranslationTest {
 + abstract class StdLibTestSupport extends SingleFileTranslationTest {

 - public StdLibTestSupport ( ) {
 + protected StdLibTestSupport ( ) {
 super ( STRING0 ) ;
 }

exclude the base class from being executed as a test case


<nb> public abstract class AdminClient {
 COMMENT
 protected abstract Versioned < byte [ ] > doGetRemoteMetadata ( int remoteNodeId , ByteArray key ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public boolean waitForCompletion ( int nodeId , int requestId , long maxWait , TimeUnit timeUnit ) {
 long delay = NUMBER0 ;
 - long maxDelay = NUMBER1 * NUMBER2 ;
 + COMMENT
 long waitUntil = System . currentTimeMillis ( ) + timeUnit . toMillis ( maxWait ) ;

 while ( System . currentTimeMillis ( ) < waitUntil ) {
 AsyncOperationStatus status = getAsyncRequestStatus ( nodeId , requestId ) ;
 if ( status . isComplete ( ) )
 return true ;
 - if ( delay < maxDelay )
 + COMMENT
 delay < <= NUMBER3 ;
 try {
 Thread . sleep ( delay ) ;

Added documentation to waitForCompletion


<nb> public class SearchPlugin implements Component , Plugin , PropertyEventListener {
 String query = entry . getValue ( ) ;

 Collection < User > foundUsers = new ArrayList < User > ( ) ;
 + SINGLE
 if ( userManager != null ) {
 if ( query . length ( ) > NUMBER0
 && ! query . equals ( NAMESPACE_JABBER_IQ_SEARCH ) ) {

Aded TODO for handling max number of results


<nb> public class OMMapManager {
 SINGLE
 try {
 entry = mapBuffer ( iFile , iBeginOffset , bufferSize ) ;
 + } catch ( IllegalArgumentException e ) {
 + throw e ;
 } catch ( Exception e ) {
 SINGLE
 maxMemory = maxMemory * NUMBER0 / NUMBER1 ;


<nb> public class TestHyperLogLogPlus
 public void testComputeCount ( )
 {
 HyperLogLogPlus hyperLogLogPlus = new HyperLogLogPlus ( NUMBER0 , NUMBER1 ) ;
 - hyperLogLogPlus . offer ( NUMBER2 ) ;
 - hyperLogLogPlus . offer ( NUMBER3 ) ;
 - hyperLogLogPlus . offer ( NUMBER4 ) ;
 - hyperLogLogPlus . offer ( NUMBER5 ) ;
 - hyperLogLogPlus . offer ( NUMBER6 ) ;
 - hyperLogLogPlus . offer ( NUMBER7 ) ;
 - hyperLogLogPlus . offer ( NUMBER8 ) ;
 - hyperLogLogPlus . offer ( NUMBER9 ) ;
 - hyperLogLogPlus . offer ( NUMBER9 ) ;
 - assertEquals ( NUMBER10 , hyperLogLogPlus . cardinality ( ) ) ;
 + int count = NUMBER11 ;
 + for ( int i = NUMBER2 ; i < count ; i ++ )
 + {
 + hyperLogLogPlus . offer ( STRING0 + i ) ;
 + }
 + assertEquals ( NUMBER11 , hyperLogLogPlus . cardinality ( ) ) ;
 }

 @ test


<nb> public class GrailsRuntimeConfigurator implements ApplicationContextAware {
 else {
 ResourcePatternResolver patternResolver = new PathMatchingResourcePatternResolver ( ) ;
 springResources = patternResolver . getResource ( DEVELOPMENT_SPRING_RESOURCES_XML ) ;
 - System . out . println ( STRING0 + springResources + STRING1 + springResources . exists ( ) ) ;
 }

 if ( springResources != null && springResources . exists ( ) ) {


<nb> public class InferenceSession {
 }
 doesNotContainFalseBound = repeatInferencePhases ( true ) ;

 - PsiSubstitutor substitutor = resolveBounds ( myInferenceVariables . values ( ) , mySiteSubstitutor , false ) ;
 + PsiSubstitutor substitutor = resolveBounds ( myInferenceVariables . values ( ) , mySiteSubstitutor , ! policy . allowPostponeInference ( ) ) ;
 LOG . assertTrue ( parent != null ) ;
 PsiExpressionList argumentList = ( ( PsiCallExpression ) parent ) . getArgumentList ( ) ;
 LOG . assertTrue ( argumentList != null ) ;


<nb> public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
 long timeMillis = currentMillis - activeInfo . getConnectTime ( ) ;

 if ( timeMillis >= removeAbandonedTimeoutMillis ) {
 - pooledConnection . abandond ( ) ;
 JdbcUtils . close ( pooledConnection ) ;
 + pooledConnection . abandond ( ) ;
 removeAbandonedCount ++ ;
 removeCount ++ ;
 abandonedList . add ( pooledConnection ) ;


<nb> public class PlaybackService extends Service {
 COMMENT
 COMMENT
 COMMENT
 - public static boolean headphonePause = false ;
 + public static boolean transientPause = false ;

 private static final int NOTIFICATION_ID = NUMBER0 ;

 <nb> public class PlaybackService extends Service {
 private void pauseIfPauseOnDisconnect ( ) {
 if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) ) {
 if ( mediaPlayer . getPlayerStatus ( ) == PlayerStatus . PLAYING ) {
 - headphonePause = true ;
 + transientPause = true ;
 }
 if ( UserPreferences . isPersistNotify ( ) ) {
 mediaPlayer . pause ( false , true ) ;
 <nb> public class PlaybackService extends Service {
 }

 private void unpauseIfPauseOnDisconnect ( ) {
 - if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) && headphonePause ) {
 - headphonePause = false ;
 + if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) && transientPause ) {
 + transientPause = false ;
 mediaPlayer . resume ( ) ;
 }
 }

Renamed headphonePause to transientPause


<nb> public class XmlSlurper extends DefaultHandler {
 COMMENT
 COMMENT
 COMMENT
 - public void setEntityResolver ( final URL base ) {
 + public void setEntityBaseUrl ( final URL base ) {
 this . reader . setEntityResolver ( new EntityResolver ( ) {
 public InputSource resolveEntity ( final String publicId , final String systemId ) throws IOException {
 return new InputSource ( new URL ( base , systemId ) . openStream ( ) ) ;

change the name of the aetEntityResolver URL to setEntityBaseUrl


<nb> final class PDF417HighLevelEncoder {
 if ( b == NUMBER0 ) {
 b = NUMBER1 ;
 }
 - byte [ ] bytes = msg . substring ( p , b ) . getBytes ( encoding ) ;
 + byte [ ] bytes = msg . substring ( p , p + b ) . getBytes ( encoding ) ;
 if ( bytes . length == NUMBER1 && encodingMode == TEXT_COMPACTION ) {
 SINGLE
 encodeBinary ( bytes , NUMBER0 , NUMBER1 , TEXT_COMPACTION , sb ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ByteIterator implements Iterator < Byte > {

 COMMENT
 public String toString ( ) {
 - StringBuilder sb = new StringBuilder ( ) ;
 - while ( this . hasNext ( ) ) { sb . append ( ( char ) nextByte ( ) ) ; }
 - return sb . toString ( ) ;
 + Charset cset = Charset . forName ( STRING0 ) ;
 + CharBuffer cb = cset . decode ( ByteBuffer . wrap ( this . toArray ( ) ) ) ;
 + return cb . toString ( ) ;
 }
 +
 COMMENT
 public byte [ ] toArray ( ) {
 long left = bytesLeft ( ) ;

core ByteIterators toString method now uses java nio CharBuffer to decode the byte array


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ClientIssueTest extends HazelcastTestSupport {
 }

 @ test
 - @ category ( ProblematicTest . class )
 public void testOperationRedo ( ) throws Exception {
 final HazelcastInstance hz1 = Hazelcast . newHazelcastInstance ( ) ;
 final HazelcastInstance hz2 = Hazelcast . newHazelcastInstance ( ) ;

Remove testOperationRedo from problematic


<nb> public class BinaryTempFileBody implements Body {
 boolean closeStream = false ;
 InputStream in = getInputStream ( ) ;
 if ( MimeUtil . isBase64Encoding ( mEncoding ) ) {
 - out = ( OutputStream ) new Base64OutputStream ( out ) ;
 + out = new Base64OutputStream ( out ) ;
 closeStream = true ;
 } else if ( MimeUtil . isQuotedPrintableEncoded ( mEncoding ) ) {
 out = new QuotedPrintableOutputStream ( out , false ) ;
 <nb> public class LocalStore extends Store implements Serializable {
 boolean closeStream = false ;
 InputStream in = getInputStream ( ) ;
 if ( MimeUtil . isBase64Encoding ( mEncoding ) ) {
 - out = ( OutputStream ) new Base64OutputStream ( out ) ;
 + out = new Base64OutputStream ( out ) ;
 closeStream = true ;
 } else if ( MimeUtil . isQuotedPrintableEncoded ( mEncoding ) ) {
 out = new QuotedPrintableOutputStream ( out , false ) ;


<nb> public class AnnotatedServerEndpointConfig implements ServerEndpointConfig
 userProperties . putAll ( baseConfig . getUserProperties ( ) ) ;
 }

 - if ( anno . configurator ( ) == null )
 + if ( anno . configurator ( ) == ServerEndpointConfig . Configurator . class )
 {
 if ( configr != null )
 {

cannot specify a custom ServerEndpointConfig Configurator


<nb> public class MultiselectSampleActivity extends AppCompatActivity {
 @ override
 public boolean onActionItemClicked ( ActionMode mode , MenuItem item ) {
 mUndoHelper . remove ( findViewById ( android . R . id . content ) , STRING0 , STRING1 , Snackbar . LENGTH_LONG , mFastAdapter . getSelections ( ) ) ;
 - SINGLE
 + SINGLE
 + mode . finish ( ) ;
 + SINGLE
 return true ;
 }

improve behavior of the MultiSelectActivity


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 getLocationInWindow ( location ) ;
 region . op ( location [ NUMBER0 ] , location [ NUMBER1 ] , location [ NUMBER0 ] + mRight - mLeft ,
 location [ NUMBER1 ] + mBottom - mTop , Region . Op . DIFFERENCE ) ;
 - } else if ( ( pflags & PFLAG_ONLY_DRAWS_BACKGROUND ) != NUMBER0 && mBackground != null ) {
 + } else if ( ( pflags & PFLAG_ONLY_DRAWS_BACKGROUND ) != NUMBER0 && mBackground != null &&
 + mBackground . getOpacity ( ) != PixelFormat . TRANSPARENT ) {
 SINGLE
 SINGLE
 SINGLE

Optimize gatherTransparentRegions to account for transparent bg


<nb> enum TokeniserState {
 break ;
 case eof :
 t . eofError ( this ) ;
 + t . emitTagPending ( ) ;
 t . transition ( Data ) ;
 break ;
 case STRING0 :
 <nb> public class XmlTreeBuilderTest {
 Document doc = Jsoup . parse ( STRING1 , STRING2 , Parser . xmlParser ( ) ) ;
 assertEquals ( Syntax . xml , doc . outputSettings ( ) . syntax ( ) ) ;
 }
 +
 + @ test
 + public void testDoesHandleEOFInTag ( ) {
 + String html = STRING3 ;
 + Document xmlDoc = Jsoup . parse ( html , STRING2 , Parser . xmlParser ( ) ) ;
 + assertEquals ( STRING4 , xmlDoc . html ( ) ) ;
 + }
 }

Keep tag that have not been closed by before reaching EOF


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


<nb> public class Roster {
 }

 public void initContact ( final Contact contact ) {
 + if ( contact == null ) {
 + return ;
 + }
 contact . setAccount ( account ) ;
 contact . setOption ( Contact . Options . IN_ROSTER ) ;
 synchronized ( this . contacts ) {
 <nb> public class DatabaseBackend extends SQLiteOpenHelper {
 SQLiteDatabase db = this . getReadableDatabase ( ) ;
 Cursor cursor ;
 String args [ ] = { roster . getAccount ( ) . getUuid ( ) } ;
 - cursor = db . query ( Contact . TABLENAME , null , Contact . ACCOUNT + STRING0 ,
 - args , null , null , null ) ;
 + cursor = db . query ( Contact . TABLENAME , null , Contact . ACCOUNT + STRING0 , args , null , null , null ) ;
 while ( cursor . moveToNext ( ) ) {
 roster . initContact ( Contact . fromCursor ( cursor ) ) ;
 }


<nb> public class OOrientDBLoader extends OAbstractLoader implements OLoader {
 for ( ODocument idx : indexes ) {
 OIndex index ;

 + final ODocument metadata = ( ODocument ) resolve ( idx . field ( STRING0 ) ) ;
 + log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING1 , getName ( ) , metadata ) ;
 +
 String idxName = ( String ) resolve ( idx . field ( STRING2 ) ) ;
 if ( idxName != null ) {
 index = documentDatabase . getMetadata ( ) . getIndexManager ( ) . getIndex ( idxName ) ;
 <nb> public class OOrientDBLoader extends OAbstractLoader implements OLoader {
 SINGLE
 continue ;

 - index = cls . createIndex ( idxName , idxType , fields ) ;
 + index = cls . createIndex ( idxName , idxType , null , metadata , fields ) ;
 log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING3 ,
 idxName , idxType , idxClass , idxFields ) ;
 }

Allow metadata field in indexes defined in output section


<nb> public final class BluetoothA2dp implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothA2dp implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothHeadset implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothHeadset implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothHeadset implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class BluetoothHeadset implements BluetoothProfile {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 public class AudioNode extends Node {

 - protected final AudioRenderer renderer ;
 + protected AudioRenderer renderer ;

 protected boolean loop = false ;
 protected float volume = NUMBER0 ;
 <nb> public class AudioNode extends Node {
 Stopped ,
 }

 + public AudioNode ( ) {
 + }
 +
 COMMENT
 COMMENT
 COMMENT

add empty constructore to AudioNode to reenable serialization temp fix


<nb> public class ClassifyingModuleLoaderService implements Service < ClassifyingModule
 COMMENT
 COMMENT
 COMMENT
 - public void start ( StartContext context ) throws StartException {
 + public synchronized void start ( StartContext context ) throws StartException {
 classifyingModuleLoader = new ClassifyingModuleLoader ( delegates , Module . getCurrentLoader ( ) ) ;
 Module . setModuleLoaderSelector ( new SimpleModuleLoaderSelector ( classifyingModuleLoader ) ) ;
 }

Fix sync issue in ClassifyingModuleLoaderService


<nb> class MonthView extends GridLayout implements View . OnClickListener {
 CalendarWrapper . copyDateTo ( calendarOfRecord , tempWorkingCalendar ) ;
 int dow = tempWorkingCalendar . getDayOfWeek ( ) ;
 int delta = firstDayOfWeek - dow ;
 - if ( delta >= NUMBER0 ) {
 + SINGLE
 + boolean removeRow = showOtherMonths ? delta >= NUMBER0 : delta > NUMBER0 ;
 + if ( removeRow ) {
 delta -= NUMBER1 ;
 }
 tempWorkingCalendar . add ( DATE , delta ) ;


<nb> public class ViewWebStats extends Activity {
 public void onClick ( View v ) {

 Intent intent = new Intent ( Intent . ACTION_VIEW ) ;
 - intent . setData ( Uri . parse ( STRING0 ) ) ;
 + intent . setData ( Uri . parse ( STRING1 ) ) ;
 startActivity ( intent ) ;

 }


<nb> public class ReplacePathToMacroMap extends PathMacroMap {
 }

 public String substitute ( String text , boolean caseSensitive ) {
 + if ( text == null ) return null ;
 for ( final String path : getPathIndex ( ) ) {
 final String macro = get ( path ) ;
 text = replacePathMacro ( text , path , macro , caseSensitive ) ;
 <nb> public class ExpandMacroToPathMap extends PathMacroMap {
 }

 public String substitute ( String text , boolean caseSensitive ) {
 + if ( text == null ) return null ;
 for ( Map . Entry < String , String > entry : entries ( ) ) {
 SINGLE
 SINGLE

tolerate null arguments just return them


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 public class RxJavaTests extends AndroidTestCase {
 <nb> public class RxJavaTests extends AndroidTestCase {
 dynamicRealm . close ( ) ;
 }

 + public void testUnsubscribe ( ) {
 + final AtomicBoolean subscribedNotified = new AtomicBoolean ( false ) ;
 + Subscription subscription = realm . asObservable ( ) . subscribe ( new Action1 < Realm > ( ) {
 + @ override
 + public void call ( Realm rxRealm ) {
 + assertTrue ( rxRealm == realm ) ;
 + subscribedNotified . set ( true ) ;
 + }
 + } ) ;
 + assertEquals ( NUMBER0 , realm . handlerController . changeListeners . size ( ) ) ;
 + subscription . unsubscribe ( ) ;
 + assertEquals ( NUMBER1 , realm . handlerController . changeListeners . size ( ) ) ;
 + }
 +
 }


<nb> public final class Field {
 COMMENT
 COMMENT
 public Class getElementType ( int index ) {
 - return field . getElementType ( index ) . getClassOfType ( ) ;
 + Type elementType = field . getElementType ( index ) ;
 + return elementType != null ? elementType . getClassOfType ( ) : null ;
 }

 COMMENT


<nb> public class RosieUseCase {

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT