<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public classRetryingCaller extends CallerDecorator {
 + public class RetryingCaller extends CallerDecorator {
 private static final Logger LOG = Logger . getLogger ( RetryingCaller . class . getName ( ) ) ;

 @ visiblefortesting


<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 ;
 <nb> abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param
 COMMENT
 COMMENT
 public void init ( boolean expensive ) {
 + SINGLE
 + if ( expensive ) {
 + Log . info ( STRING0 + this . getClass ( ) . getSimpleName ( ) . toString ( ) + STRING1 ) ;
 + Log . info ( new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( new JsonParser ( ) . parse ( new String ( _parms . writeJSON ( new AutoBuffer ( ) ) . buf ( ) ) ) ) ) ;
 + }
 +
 SINGLE
 clearInitState ( ) ;
 assert _parms != null ; SINGLE

Log the parameters when starting to build a model


<nb> public class SVNCommitDialog extends ModalDialogBase
 @ override
 protected void onUnload ( )
 {
 + super . onUnload ( ) ;
 commitDraft_ = message_ . getText ( ) ;
 session_ . persistClientState ( ) ;
 }

fix shortcut problem caused by svn commit dialog


<nb> public class ExternalStorageProvider extends DocumentsProvider {
 mIdToRoot = Maps . newHashMap ( ) ;
 mIdToPath = Maps . newHashMap ( ) ;

 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( ! Environment . isExternalStorageEmulated ( ) ) return true ;

 try {
 final String rootId = STRING0 ;
 <nb> public class ExternalStorageProvider extends DocumentsProvider {
 row . add ( Document . COLUMN_DISPLAY_NAME , displayName ) ;
 row . add ( Document . COLUMN_SIZE , file . length ( ) ) ;
 row . add ( Document . COLUMN_MIME_TYPE , mimeType ) ;
 - row . add ( Document . COLUMN_LAST_MODIFIED , file . lastModified ( ) ) ;
 row . add ( Document . COLUMN_FLAGS , flags ) ;
 +
 + SINGLE
 + long lastModified = file . lastModified ( ) ;
 + if ( lastModified > NUMBER0 ) {
 + row . add ( Document . COLUMN_LAST_MODIFIED , lastModified ) ;
 + }
 }

 @ override


<nb> public class OpenEmbedButton extends ContentViewButton implements View . OnClickLi
 }
 }

 - Log . d ( TAG , STRING0 ) ;
 setVisibility ( GONE ) ;
 return false ;
 }
 <nb> public class OpenInAppButton extends ContentViewButton implements View . OnClickLi
 return true ;
 }

 - Log . d ( TAG , STRING0 ) ;
 setVisibility ( GONE ) ;
 return false ;
 }


<nb> public class GitBlit implements ServletContextListener {
 if ( userService == null ) {
 return ;
 }
 - if ( userService . supportsCookies ( ) ) {
 + GitBlitWebSession session = GitBlitWebSession . get ( ) ;
 + boolean standardLogin = session . authenticationType . isStandard ( ) ;
 +
 + if ( userService . supportsCookies ( ) && standardLogin ) {
 Cookie userCookie ;
 if ( user == null ) {
 SINGLE

Do not set cookies for sessions authenticated via certificate or container


<nb> public class SmackException extends Exception {
 public NotConnectedException ( ) {
 super ( STRING0 ) ;
 }
 +
 + public NotConnectedException ( XMPPConnection connection , String details ) {
 + super ( STRING1 + connection . toString ( ) + STRING2
 + + details ) ;
 + }
 }

 public static class IllegalStateChangeException extends SmackException {
 <nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 }

 protected void throwNotConnectedExceptionIfDoneAndResumptionNotPossible ( ) throws NotConnectedException {
 - if ( done ( ) && ! isSmResumptionPossible ( ) ) {
 + final boolean done = done ( ) ;
 + if ( done ) {
 + final boolean smResumptionPossbile = isSmResumptionPossible ( ) ;
 SINGLE
 - throw new NotConnectedException ( ) ;
 + if ( ! smResumptionPossbile ) {
 + throw new NotConnectedException ( XMPPTCPConnection . this , STRING3 + done
 + + STRING4 + smResumptionPossbile ) ;
 + }
 }
 }

Add more information to NotConnectedException


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLAbstract imple
 final List < ORecordId > resultSet = searchForIndexes ( cls ) ;

 if ( resultSet . size ( ) > NUMBER0 ) {
 + OProfiler . getInstance ( ) . updateStatistic ( STRING0 , NUMBER1 ) ;
 +
 SINGLE
 for ( ORecordId rid : resultSet )
 addResult ( database . load ( rid ) ) ;

Added the profiling stat entry Query indexUsage when the SQL engine uses the index


<nb> public abstract class AbstractQueryTestCase < QB extends AbstractQueryBuilder < QB > >
 COMMENT
 COMMENT
 public final void testUnknownObjectException ( ) throws IOException {
 - SINGLE
 String validQuery = createTestQueryBuilder ( ) . toString ( ) ;
 + unknownObjectExceptionTest ( validQuery ) ;
 + for ( String query : getAlternateVersions ( ) . keySet ( ) ) {
 + unknownObjectExceptionTest ( query ) ;
 + }
 + }
 +
 + private void unknownObjectExceptionTest ( String validQuery ) throws IOException {
 + SINGLE
 assertThat ( validQuery , containsString ( STRING0 ) ) ;
 int level = NUMBER0 ;
 boolean withinQuotes = false ;

TEST enable testUnknownObjectException for alternate query versions too


<nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
 @ override
 public void onInputAdded ( String inputId ) {
 TvInputInfo tvInfo = mService . getTvInputManager ( ) . getTvInputInfo ( inputId ) ;
 + if ( tvInfo == null ) return ;
 HdmiDeviceInfo info = tvInfo . getHdmiDeviceInfo ( ) ;
 if ( info == null ) return ;
 addTvInput ( inputId , info . getId ( ) ) ;


<nb> class JUnitReporter implements Reporter , Formatter {
 public void match ( Match match ) {
 Description description = executionUnitRunner . describeChild ( steps . remove ( NUMBER0 ) ) ;
 stepNotifier = new EachTestNotifier ( runNotifier , description ) ;
 - stepNotifier . fireTestStarted ( ) ;
 reporter . match ( match ) ;
 }

 <nb> class JUnitReporter implements Reporter , Formatter {
 stepNotifier . fireTestIgnored ( ) ;
 } else {
 if ( stepNotifier != null ) {
 + SINGLE
 + stepNotifier . fireTestStarted ( ) ;
 if ( error != null ) {
 stepNotifier . addFailure ( error ) ;
 }

Eclipse JUnit reports inaccurate run count


<nb> public class CassandraStorage extends LoadFunc implements StoreFuncInterface , Lo
 return DoubleType . instance . decompose ( ( Double ) o ) ;
 if ( o instanceof UUID )
 return ByteBuffer . wrap ( UUIDGen . decompose ( ( UUID ) o ) ) ;
 - return null ;
 + return ByteBuffer . wrap ( ( ( DataByteArray ) o ) . get ( ) ) ;
 }

 public void putNext ( Tuple t ) throws ExecException , IOException

Add catch all cast back to CassandraStorage


<nb> public class EjbIIOPDeploymentUnitProcessor implements DeploymentUnitProcessor {
 beanMethodMap . put ( op . getIDLName ( ) , new SkeletonStrategy ( method ) ) ;
 final OperationAnalysis setop = remoteAttrs [ i ] . getMutatorAnalysis ( ) ;
 if ( setop != null ) {
 - logger . debug ( STRING0 + op . getJavaName ( ) + STRING1 + op . getIDLName ( ) ) ;
 + logger . debug ( STRING0 + setop . getJavaName ( ) + STRING1 + setop . getIDLName ( ) ) ;
 SINGLE
 SINGLE
 final Method realSetmethod = translateMethod ( deploymentReflectionIndex , setop ) ;
 - beanMethodMap . put ( op . getIDLName ( ) , new SkeletonStrategy ( realSetmethod ) ) ;
 + beanMethodMap . put ( setop . getIDLName ( ) , new SkeletonStrategy ( realSetmethod ) ) ;
 }
 }


<nb> public class CvsCheckinEnvironment implements CheckinEnvironment {
 }

 public RefreshableOnComponent createAdditionalOptionsPanelForCheckinProject ( final Refreshable panel ) {
 - return new CvsProjectAdditionalPanel ( panel , myProject ) ;
 + return null ;
 + SINGLE
 + COMMENT
 }

 public RefreshableOnComponent createAdditionalOptionsPanel ( Refreshable panel , final boolean checkinProject ) {

Dropped CVS additonal options since they do not work in new dialog anyway


<nb> public class KMeans extends ModelBuilder < KMeansModel , KMeansModel . KMeansParameter
 System . arraycopy ( clusters [ clu ] , NUMBER0 , value [ clu ] , NUMBER0 , N ) ;
 if ( mults != null ) SINGLE
 for ( int col = ncats ; col < N ; col ++ )
 - value [ clu ] [ col ] = value [ clu ] [ col ] * mults [ col ] + means [ col ] ;
 + value [ clu ] [ col ] = value [ clu ] [ col ] / mults [ col ] + means [ col ] ;
 }
 return value ;
 }

Fix denormalize in K means was multiplying instead of dividing


<nb> public final class Settings {
 PUBLIC_SETTINGS . add ( SOUND_EFFECTS_ENABLED ) ;
 PUBLIC_SETTINGS . add ( HAPTIC_FEEDBACK_ENABLED ) ;
 PUBLIC_SETTINGS . add ( SHOW_WEB_SUGGESTIONS ) ;
 + PUBLIC_SETTINGS . add ( VIBRATE_WHEN_RINGING ) ;
 }

 COMMENT
 <nb> public final class Settings {
 PRIVATE_SETTINGS . add ( VIBRATE_IN_SILENT ) ;
 PRIVATE_SETTINGS . add ( MEDIA_BUTTON_RECEIVER ) ;
 PRIVATE_SETTINGS . add ( HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY ) ;
 - PRIVATE_SETTINGS . add ( VIBRATE_WHEN_RINGING ) ;
 PRIVATE_SETTINGS . add ( DTMF_TONE_TYPE_WHEN_DIALING ) ;
 PRIVATE_SETTINGS . add ( HEARING_AID ) ;
 PRIVATE_SETTINGS . add ( TTY_MODE ) ;

Allow white listed apps to change VIBRATE_WHEN_RINGING


<nb> public class PyStringConcatenationToFormatIntention extends BaseIntentionAction
 if ( expression == null ) {
 return false ;
 }
 - final boolean isStringLiteral = expression instanceof PyStringLiteralExpression ;
 - final PyType type = expression . getType ( TypeEvalContext . slow ( ) ) ;
 + if ( expression instanceof PyStringLiteralExpression )
 + continue ;
 + final PyType type = expression . getType ( TypeEvalContext . fastStubOnly ( file ) ) ;
 final boolean isStringReference = PyTypeChecker . match ( cache . getStringType ( LanguageLevel . forElement ( expression ) ) ,
 - type , TypeEvalContext . slow ( ) ) && type != null ;
 - if ( ! ( isStringLiteral || ( ( expression instanceof PyReferenceExpression || expression instanceof PyCallExpression ) &&
 - isStringReference ) ) ) {
 + type , TypeEvalContext . fastStubOnly ( file ) ) && type != null ;
 + if ( ! isStringReference ) {
 return false ;
 }
 }


<nb> public class SelectionCommands {
 min = NUMBER0 ,
 max = NUMBER0
 )
 - @ commandpermissions ( { STRING0 } )
 + @ commandpermissions ( { STRING1 } )
 public static void inset ( CommandContext args , WorldEdit we ,
 LocalSession session , LocalPlayer player , EditSession editSession )
 throws WorldEditException {


<nb> public class ReaderCommentAdapter extends RecyclerView . Adapter < RecyclerView . View
 }

 @ override
 - public void onBindViewHolder ( RecyclerView . ViewHolder holder , final int position ) {
 + public void onBindViewHolder ( RecyclerView . ViewHolder holder , int position ) {
 if ( holder instanceof PostHeaderHolder ) {
 PostHeaderHolder headerHolder = ( PostHeaderHolder ) holder ;
 headerHolder . mHeaderView . setPost ( mPost ) ;
 <nb> public class ReaderCommentAdapter extends RecyclerView . Adapter < RecyclerView . View
 commentHolder . countLikes . postDelayed ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - setLike ( commentHolder . countLikes . getContext ( ) , commentHolder , position , true ) ;
 + setLike ( commentHolder . countLikes . getContext ( ) , commentHolder , commentHolder
 + . getAdapterPosition ( ) , true ) ;
 }
 } , NUMBER0 ) ;


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

 public class MockName {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DetailActivity extends AppCompatActivity {
 title . setText ( itemTitle ) ;
 }

 + @ override public boolean dispatchTouchEvent ( MotionEvent motionEvent ) {
 + try {
 + return super . dispatchTouchEvent ( motionEvent ) ;
 + } catch ( NullPointerException e ) {
 + return false ;
 + }
 + }
 +
 private void initActivityTransitions ( ) {
 if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) {
 Slide transition = new Slide ( ) ;

Fix CoordinatorLayout NullPointerException in onTouchEvent


<nb> public class BooleanExpressionTests extends ExpressionTestCase {
 }

 public void testBooleanErrors01 ( ) {
 - evaluateAndCheckError ( STRING0 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER0 ) ;
 - evaluateAndCheckError ( STRING1 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ;
 + evaluateAndCheckError ( STRING2 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER0 ) ;
 + evaluateAndCheckError ( STRING3 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ;
 evaluateAndCheckError ( STRING4 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ;
 evaluateAndCheckError ( STRING5 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ;
 - evaluateAndCheckError ( STRING6 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ;
 + evaluateAndCheckError ( STRING7 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ;
 evaluateAndCheckError ( STRING8 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER3 ) ;
 }
 }

fixed some tests that will now break because int long can be treated as boolean


<nb> public class IvyArtifactNotationParserFactory implements Factory < NotationParser <

 @ override
 public void describe ( Collection < String > candidateFormats ) {
 - candidateFormats . add ( STRING0 ) ;
 + candidateFormats . add ( STRING1 ) ;
 }
 }

 <nb> public class MavenArtifactNotationParserFactory implements Factory < NotationParse

 @ override
 public void describe ( Collection < String > candidateFormats ) {
 - candidateFormats . add ( STRING2 ) ;
 + candidateFormats . add ( STRING1 ) ;
 }
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class FixedEnsembleBuilder implements EnsembleBuilder
 return true ; SINGLE
 }

 - return clusterState . hasDeadInstances ( ) ;
 + if ( ! clusterState . hasDeadInstances ( ) )
 + {
 + exhibitor . getLog ( ) . add ( ActivityLog . Type . INFO , STRING0 ) ;
 + return false ;
 + }
 +
 + return true ;
 }

 @ override

Add a log message when the fixed ensemble size is reached and the instance can t be added


<nb> public class GroovyPositionManager implements PositionManager {
 return parent == null ? null : parent + STRING0 + typeDefinition . getName ( ) + suffix ;
 }

 - for ( ScriptPositionManagerHelper helper : ScriptPositionManagerHelper . EP_NAME . getExtensions ( ) ) {
 - final String s = helper . customizeClassName ( typeDefinition ) ;
 - if ( s != null ) {
 - return s ;
 + PsiFile file = typeDefinition . getContainingFile ( ) ;
 + if ( file instanceof GroovyFile ) {
 + for ( ScriptPositionManagerHelper helper : ScriptPositionManagerHelper . EP_NAME . getExtensions ( ) ) {
 + String s = helper . isAppropriateScriptFile ( ( GroovyFile ) file ) ? helper . customizeClassName ( typeDefinition ) : null ;
 + if ( s != null ) {
 + return s ;
 + }
 }
 }

don t call groovy position manager helpers on files they don t handle fix


<nb> import NAMESPACE ;
 public class AdaptiveReceiveBufferSizePredictor implements
 ReceiveBufferSizePredictor {

 + SINGLE
 + SINGLE
 +
 private static final int INDEX_INCREMENT = NUMBER0 ;
 private static final int INDEX_DECREMENT = NUMBER1 ;

Added a FIXME as a reminder for API redesign


<nb> public class UIUtil {

 @ suppresswarnings ( { STRING0 } )
 public static boolean isUnderWindowsLookAndFeel ( ) {
 - return UIManager . getLookAndFeel ( ) . getName ( ) . equals ( STRING1 ) ;
 + return SystemInfo . isWindows && UIManager . getLookAndFeel ( ) . getName ( ) . equals ( STRING1 ) ;
 }

 @ suppresswarnings ( { STRING0 } )
 <nb> public class UIUtil {

 @ suppresswarnings ( { STRING0 } )
 public static boolean isUnderGTKLookAndFeel ( ) {
 - return UIManager . getLookAndFeel ( ) . getName ( ) . contains ( STRING2 ) ;
 + return SystemInfo . isXWindow && UIManager . getLookAndFeel ( ) . getName ( ) . contains ( STRING2 ) ;
 }

 public static final Color GTK_AMBIANCE_TEXT_COLOR = new Color ( NUMBER0 , NUMBER1 , NUMBER2 ) ;


<nb> public final class Monitors {
 Class < ? > c , String id , com . netflix . servo . annotations . Monitor anno ) {
 MonitorConfig . Builder builder = MonitorConfig . builder ( anno . name ( ) ) ;
 builder . withTag ( STRING0 , c . getSimpleName ( ) ) ;
 - if ( anno . type ( ) == DataSourceType . COUNTER ) {
 - builder . withTag ( DataSourceType . COUNTER ) ;
 - }
 + builder . withTag ( anno . type ( ) ) ;
 if ( id != null ) {
 builder . withTag ( STRING1 , id ) ;
 }

always add the type tag on wrapped annotations


<nb> import NAMESPACE ;
 public class LockPatternUtils {

 private static final String TAG = STRING0 ;
 + private static final boolean DEBUG = false ;

 COMMENT
 COMMENT
 <nb> public class LockPatternUtils {
 return false ;
 }

 -
 - return true ;
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( DEBUG ) Log . d ( TAG , STRING1 ) ;
 + return false ;
 }

 COMMENT

Disabling FUL in keyguard and screen lock settings


<nb> public class DataSourceTransactionManagerAutoConfiguration {

 @ conditionalonmissingbean ( AbstractTransactionManagementConfiguration . class )
 @ configuration
 - @ enabletransactionmanagement
 + @ enabletransactionmanagement ( proxyTargetClass = true )
 protected static class TransactionManagementConfiguration {

 }

Set proxy target class for transaction managers


<nb> public class CompilerConfigurationImpl extends CompilerConfiguration implements
 removeWildcardPatterns ( ) ;
 }
 try {
 - addWildcardResourcePattern ( STRING0 ) ;
 addWildcardResourcePattern ( STRING1 ) ;
 + addWildcardResourcePattern ( STRING0 ) ;
 addWildcardResourcePattern ( STRING2 ) ;
 addWildcardResourcePattern ( STRING3 ) ;
 + addWildcardResourcePattern ( STRING4 ) ;
 addWildcardResourcePattern ( STRING5 ) ;
 addWildcardResourcePattern ( STRING6 ) ;
 }

excluded scala files from the list of default resources


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

 import NAMESPACE ;

hotfix Remove unused ProcessingTimeService from Evictor


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

 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Sets {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Sets {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Sets {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class Sets {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class GoSdkType extends SdkType {
 @ override
 public void setupSdkPaths ( @ notnull Sdk sdk ) {
 SdkModificator modificator = sdk . getSdkModificator ( ) ;
 - add ( modificator , new File ( sdk . getHomePath ( ) , STRING0 ) ) ; SINGLE
 + add ( modificator , new File ( sdk . getHomePath ( ) , STRING1 ) ) ; SINGLE
 modificator . commitChanges ( ) ;
 }


<nb> public class DiskCache < O extends Serializable > {
 this . system2 = system2 ;
 this . file = file ;
 OutputStream output = null ;
 + boolean threw = true ;
 try {
 SINGLE
 SINGLE
 output = new ObjectOutputStream ( new FileOutputStream ( file ) ) ;
 output . flush ( ) ;
 -
 - SINGLE
 - system2 . close ( output ) ;
 + threw = false ;
 } catch ( IOException e ) {
 - SINGLE
 - IOUtils . closeQuietly ( output ) ;
 throw new IllegalStateException ( STRING0 + file , e ) ;
 + } finally {
 + if ( threw ) {
 + SINGLE
 + IOUtils . closeQuietly ( output ) ;
 + } else {
 + SINGLE
 + system2 . close ( output ) ;
 + }
 }
 }


<nb> public class GroupLocalServiceImpl extends GroupLocalServiceBaseImpl {
 resourceLocalService . deleteResource ( resource ) ;
 }

 - String className = PortalUtil . getClassName ( group . getClassNameId ( ) ) ;
 + long organizationClassNameId = PortalUtil . getClassNameId (
 + Organization . class . getName ( ) ) ;

 if ( ( ( group . getClassNameId ( ) <= NUMBER0 ) && ( group . getClassPK ( ) <= NUMBER0 ) ) ||
 - ( className . equals ( Organization . class . getName ( ) ) ) ) {
 + ( group . getClassNameId ( ) == organizationClassNameId ) ) {

 resourceLocalService . deleteResource (
 group . getCompanyId ( ) , Group . class . getName ( ) ,


<nb> public final class IOUtil {
 if ( ! fileNow . exists ( ) ) {
 throw new HazelcastException ( format ( STRING0 ,
 fileNow , fileToBe , fileNow ) ) ;
 -
 }
 if ( ! fileToBe . exists ( ) ) {
 throw new HazelcastException ( format ( STRING1 ,
 fileNow , fileToBe , fileToBe ) ) ;
 -
 }
 if ( ! fileToBe . delete ( ) ) {
 throw new HazelcastException ( format ( STRING2 ,
 <nb> public final class IOUtil {
 }
 }

 -
 private static final class ClassLoaderAwareObjectInputStream extends ObjectInputStream {

 private final ClassLoader classLoader ;


<nb> public class VersionCommand extends Command {
 if ( ! testPermission ( sender ) ) return true ;

 if ( args . length == NUMBER0 ) {
 - sender . sendMessage ( STRING0 + ChatColor . GREEN + Bukkit . getName ( ) + ChatColor . WHITE + STRING1 + ChatColor . GREEN + Bukkit . getVersion ( ) ) ;
 - sender . sendMessage ( STRING2 ) ;
 + sender . sendMessage ( STRING0 + Bukkit . getName ( ) + STRING1 + Bukkit . getVersion ( ) + STRING3 + Bukkit . getBukkitVersion ( ) + STRING4 ) ;
 } else {
 StringBuilder name = new StringBuilder ( ) ;

Made version output same as startup output


<nb> public class CrossfadeDrawerLayoutActvitiy extends AppCompatActivity {
 . build ( ) ;

 SINGLE
 + SINGLE
 crossfadeDrawerLayout = new CrossfadeDrawerLayout ( this ) ;

 SINGLE
 <nb> public class MiniDrawerActivity extends AppCompatActivity {
 int secondWidth = ( int ) UIUtils . convertDpToPixel ( NUMBER0 , this ) ;

 SINGLE
 + SINGLE
 crossFader = new Crossfader ( )
 . withContent ( findViewById ( R . id . crossfade_content ) )
 . withFirst ( result . getSlider ( ) , firstWidth )

add links to open source libraries used for CrossfadeDrawerLayout and MiniDrawer


<nb> public class LwjglAudioRenderer implements AudioRenderer , Runnable {
 alSource3f ( id , AL_POSITION , NUMBER0 , NUMBER0 , NUMBER0 ) ;
 alSource3f ( id , AL_VELOCITY , NUMBER0 , NUMBER0 , NUMBER0 ) ;
 } else {
 + alSourcei ( id , AL_SOURCE_RELATIVE , AL_FALSE ) ;
 updateSourceParam ( src , AudioParam . Position ) ;
 updateSourceParam ( src , AudioParam . Velocity ) ;
 updateSourceParam ( src , AudioParam . MaxDistance ) ;
 <nb> public class LwjglAudioRenderer implements AudioRenderer , Runnable {
 alSource3f ( id , AL_VELOCITY , vel . x , vel . y , vel . z ) ;
 alSourcef ( id , AL_MAX_DISTANCE , src . getMaxDistance ( ) ) ;
 alSourcef ( id , AL_REFERENCE_DISTANCE , src . getRefDistance ( ) ) ;
 + alSourcei ( id , AL_SOURCE_RELATIVE , AL_FALSE ) ;

 if ( src . isReverbEnabled ( ) ) {
 int filter = EFX10 . AL_FILTER_NULL ;

Fixed positional audio to actually be positional


<nb> public abstract class AnimationAdapter extends RecyclerView . Adapter < RecyclerView
 @ override public void onBindViewHolder ( RecyclerView . ViewHolder holder , int position ) {
 mAdapter . onBindViewHolder ( holder , position ) ;

 - if ( ! isFirstOnly || position > mLastPosition ) {
 + if ( ! isFirstOnly || holder . getAdapterPosition ( ) > mLastPosition ) {
 for ( Animator anim : getAnimators ( holder . itemView ) ) {
 anim . setDuration ( mDuration ) . start ( ) ;
 anim . setInterpolator ( mInterpolator ) ;
 }
 - mLastPosition = position ;
 + mLastPosition = holder . getAdapterPosition ( ) ;
 } else {
 ViewHelper . clear ( holder . itemView ) ;
 }


<nb> public class StreamingLogInput {
 jssc . start ( ) ;
 SINGLE
 jssc . awaitTermination ( NUMBER0 ) ;
 + SINGLE
 + jssc . stop ( ) ;
 }
 }


<nb> public class EditingPreferencesPane extends PreferencesPane
 add ( indent ( tabWidth_ = numericPref ( STRING0 , prefs . numSpacesForTab ( ) ) ) ) ;
 add ( tight ( showMargin_ = checkboxPref ( STRING1 , prefs . showMargin ( ) ) ) ) ;
 add ( indent ( marginCol_ = numericPref ( STRING2 , prefs . printMarginColumn ( ) ) ) ) ;
 - add ( checkboxPref ( STRING3 , prefs_ . insertMatching ( ) ) ) ;
 + add ( checkboxPref ( STRING4 , prefs_ . insertMatching ( ) ) ) ;
 add ( checkboxPref ( STRING5 , prefs_ . softWrapRFiles ( ) ) ) ;
 add ( checkboxPref ( STRING6 , prefs_ . syntaxColorConsole ( ) ) ) ;
 add ( checkboxPref ( STRING7 , prefs_ . saveAllBeforeBuild ( ) ) ) ;

shorten name of matching paren quote option


<nb> public class OObjectEntityClassHandler extends OEntityManagerClassHandler {
 public synchronized void registerEntityClass ( String iClassName , Class < ? > iClass , boolean forceSchemaReload ) {
 if ( ! OObjectEntitySerializer . isToSerialize ( iClass ) && ! iClass . isEnum ( ) ) {
 OObjectEntitySerializer . registerClass ( iClass , forceSchemaReload ) ;
 - super . registerEntityClass ( iClassName , iClass ) ;
 + super . registerEntityClass ( iClassName , iClass , forceSchemaReload ) ;
 }
 }


<nb> public final class TicketGrantingTicketImpl extends AbstractTicket implements Ti

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>

 package NAMESPACE ;

 + import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class JavadocTagInfoTest {
 JavadocTagInfo . Type . INLINE ,
 } ;
 JavadocTagInfo . Type [ ] actual = JavadocTagInfo . Type . values ( ) ;
 - assertEquals ( expected , actual ) ;
 + assertArrayEquals ( expected , actual ) ;
 }

 @ test

Replace assertEquals with arrayAssertEquals


<nb> public class PinnedSectionListView extends ListView {

 @ override
 public void setAdapter ( ListAdapter adapter ) {
 - if ( BuildConfig . DEBUG ) { SINGLE
 + if ( BuildConfig . DEBUG && adapter != null ) { SINGLE
 if ( ! ( adapter instanceof PinnedSectionListAdapter ) )
 throw new IllegalArgumentException ( STRING0 ) ;
 if ( adapter . getViewTypeCount ( ) < NUMBER0 )
 throw new IllegalArgumentException ( STRING1 ) ;
 }
 + destroyPinnedShadow ( ) ;
 super . setAdapter ( adapter ) ;
 }

reseting pinned section when new adapter is set


<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7
 }

 public void testCrossJoin ( ) throws Exception {
 - if ( dialect ( ) . family ( ) == ACCESS ) {
 - log . info ( STRING0 , STRING1 ) ;
 - return ;
 - }
 + COMMENT
 + xx xxxxxxxxxxxxxxxxxxx xx xxxxxxx x
 + xxxxxxxxxxxxxxxxxxxx xxxxxx xxxx xxxxxxxx
 + xxxxxxx
 + x
 + COMMENT

 Result < Record > result ;


<nb> public class CustomViewAbove extends ViewGroup {
 }

 private boolean isInIgnoredView ( MotionEvent ev ) {
 + Rect rect = new Rect ( ) ;
 for ( View v : mIgnoredViews ) {
 - if ( v . getLeft ( ) < ev . getX ( ) &&
 - ev . getX ( ) < v . getRight ( ) &&
 - v . getTop ( ) < ev . getY ( ) &&
 - ev . getY ( ) < v . getBottom ( ) ) {
 - return true ;
 - }
 + v . getHitRect ( rect ) ;
 + if ( rect . contains ( ( int ) ev . getX ( ) , ( int ) ev . getY ( ) ) ) return true ;
 }
 return false ;
 }

Use getHitRect to check if a view is in Ignore Views


<nb> public class SystemStoreConstants {

 + STRING0
 + STRING1
 - + STRING2
 + + STRING3
 + STRING4
 + STRING5
 + STRING6
 <nb> public class SystemStoreConstants {

 + STRING0
 + STRING7
 - + STRING2
 + + STRING3
 + STRING4
 + STRING5
 + STRING6

Changed routing strategy for system stores to all routing


<nb> public class PlanGenerator {
 prevState = nextState ;
 continue ;
 }
 - COMMENT

 edgeElapsedTime = nextState . getTimeInMillis ( )
 - nextState . getBackState ( ) . getTimeInMillis ( ) ;
 <nb> public class PlanGenerator {
 SINGLE
 COMMENT
 if ( backEdge instanceof FreeEdge ) {
 + leg . mode = frontEdgeNarrative . getMode ( ) . toString ( ) ;
 prevState = nextState ;
 continue ;
 }

fix switching between biking and walking


<nb> public class NodeTraversor {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 - public void traverse ( Node root , String namespace ) {
 + public void traverse ( Node root ) {
 Node node = root ;
 int depth = NUMBER0 ;

 <nb> public class NodeTraversor {
 }
 }
 }
 -
 - public void traverse ( Node root )
 - {
 - traverse ( root , null ) ;
 - }
 }


<nb> public class Capsule implements Runnable {
 private List < String > getNativeDependencies0 ( ) {
 return getListAttribute ( ATTR_NATIVE_DEPENDENCIES ) ;
 }
 -
 - private boolean hasRenamedNativeDependencies ( ) {
 - for ( String depAndRename : nullToEmpty ( getNativeDependencies ( ) ) ) {
 - if ( depAndRename . contains ( STRING0 ) )
 - return true ;
 - }
 - return false ;
 - }
 SINGLE

 private List < String > buildJVMArgs ( List < String > cmdLine ) {


<nb> abstract class AsyncHttpResponseImpl extends FilteredDataEmitter implements Asyn
 LineEmitter liner = new LineEmitter ( ) ;
 exchange . setDataCallback ( liner ) ;
 liner . setLineCallback ( mHeaderCallback ) ;
 -
 +
 mSocket . setEndCallback ( mReporter ) ;
 mSocket . setClosedCallback ( new CompletedCallback ( ) {
 @ override
 <nb> public class ResponseCacheMiddleware extends SimpleMiddleware {
 cacheHitCount ++ ;
 data . request . logi ( STRING0 ) ;
 final CachedSocket socket = entry . isHttps ( ) ? new CachedSSLSocket ( ( EntrySecureCacheResponse ) candidate ) : new CachedSocket ( ( EntryCacheResponse ) candidate ) ;
 + rawResponseHeaders . removeAll ( STRING1 ) ;
 + rawResponseHeaders . removeAll ( STRING2 ) ;
 + rawResponseHeaders . set ( STRING3 , String . valueOf ( snapshot . getLength ( ENTRY_BODY ) ) ) ;
 socket . pending . add ( ByteBuffer . wrap ( rawResponseHeaders . toHeaderString ( ) . getBytes ( ) ) ) ;

 client . getServer ( ) . post ( new Runnable ( ) {

Fix cached responses coming in with the incorrect encodings and content length


<nb> public class GeometryUtils {

 return low + ( differenceRequestedLow / differenceHighLow ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static double computePartialLength ( Coordinate [ ] coordinates , int index ) {
 + if ( index < NUMBER0 ) return NUMBER1 ; SINGLE
 + if ( index >= coordinates . length ) index = coordinates . length - NUMBER0 ; SINGLE
 +
 + Coordinate [ ] array = new Coordinate [ index + NUMBER0 ] ;
 +
 + for ( int i = NUMBER1 ; i <= index ; i ++ ) {
 + array [ i ] = coordinates [ i ] ;
 + }
 +
 + CoordinateSequence sequence = gf . getCoordinateSequenceFactory ( ) . create ( array ) ;
 + LineString lineString = new LineString ( sequence , gf ) ;
 +
 + return lineString . getLength ( ) ;
 + }
 }


<nb> public class ConvertVariadicParamIntention extends BaseIntentionAction {
 public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException {
 replaceSubscriptions ( project ) ;
 replaceCallElements ( project ) ;
 - if ( canRemove ) {
 + COMMENT
 removeKwarg ( ) ;
 - }
 + COMMENT
 canRemove = true ;
 }

 <nb> public class ConvertVariadicParamIntention extends BaseIntentionAction {
 myKeywordContainer . delete ( ) ;
 }

 +
 private void replaceCallElements ( Project project ) {
 PyElementGenerator elementGenerator = PyElementGenerator . getInstance ( project ) ;
 int size = myCallElements . size ( ) ;

fixed removing of kwargs in ConvertVariadicParamIntention


<nb> public class KotlinToJavaTypesMap {
 private void init ( ) {
 JetStandardLibrary standardLibrary = JetStandardLibrary . getInstance ( ) ;

 - register ( JetStandardClasses . getNothing ( ) , JET_NOTHING_TYPE ) ; SINGLE
 register ( JetStandardClasses . getAny ( ) , Object . class ) ;
 register ( standardLibrary . getNumber ( ) , Number . class ) ;
 register ( standardLibrary . getString ( ) , String . class ) ;

removed senseless mapping from jet Nothing to jet Nothing


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 COMMENT


<nb> public class OSQLFunctionRuntime extends OSQLFilterItemAbstract {

 }
 } else if ( configuredParameters [ i ] instanceof OSQLPredicate )
 - runtimeParameters [ i ] = ( ( OSQLPredicate ) configuredParameters [ i ] ) . evaluate ( iContext ) ;
 + runtimeParameters [ i ] = ( ( OSQLPredicate ) configuredParameters [ i ] ) . evaluate ( ( ORecord < ? > ) iCurrentRecord , iCurrentResult ,
 + iContext ) ;
 }

 final Object functionResult = function . execute ( iCurrentRecord , iCurrentResult , runtimeParameters , iContext ) ;

SQL fixed runtime f x usage of evaluate passing curren record


<nb> public final class ShardCompactor
 Page page = null ;
 while ( isNullOrEmptyPage ( page ) && ! pageSource . isFinished ( ) ) {
 page = pageSource . getNextPage ( ) ;
 + if ( page != null ) {
 + page . assureLoaded ( ) ;
 + }
 }
 return page ;
 }
 <nb> public final class ShardCompactor
 return NUMBER0 ;
 }

 + if ( ! other . hasNext ( ) ) {
 + return - NUMBER0 ;
 + }
 +
 for ( int i = NUMBER1 ; i < sortIndexes . size ( ) ; i ++ ) {
 int index = sortIndexes . get ( i ) ;


<nb> public class QueryKey implements Serializable {
 }

 public boolean equals ( Object other ) {
 - if ( ! ( other instanceof QueryKey ) ) return false ;
 - QueryKey that = ( QueryKey ) other ;
 + if ( ! ( other instanceof QueryKey ) ) return false ;
 + QueryKey that = ( QueryKey ) other ;
 if ( ! sqlQueryString . equals ( that . sqlQueryString ) ) return false ;
 if ( ! EqualsHelper . equals ( firstRow , that . firstRow ) || ! EqualsHelper . equals ( maxRows , that . maxRows ) ) return false ;
 if ( ! EqualsHelper . equals ( customTransformer , that . customTransformer ) ) return false ;

reformat fix for fragile QueryKey equals


<nb> public final class ZlibCodecFactory {
 }

 public static ZlibEncoder newZlibEncoder ( int compressionLevel , int windowBits , int memLevel , byte [ ] dictionary ) {
 - if ( PlatformDependent . javaVersion ( ) < NUMBER0 ||
 - windowBits != DEFAULT_JDK_WINDOW_SIZE || memLevel != DEFAULT_JDK_MEM_LEVEL ||
 - noJdkZlibEncoder ) {
 + if ( PlatformDependent . javaVersion ( ) < NUMBER0 || noJdkZlibEncoder ||
 + windowBits != DEFAULT_JDK_WINDOW_SIZE || memLevel != DEFAULT_JDK_MEM_LEVEL ) {
 return new JZlibEncoder ( compressionLevel , windowBits , memLevel , dictionary ) ;
 } else {
 return new JdkZlibEncoder ( compressionLevel , dictionary ) ;

Check noJdkZlibEncoder before comparing other parameters


<nb> public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton
 editorComboBox . addDocumentListener ( new DocumentAdapter ( ) {
 @ override
 public void documentChanged ( DocumentEvent e ) {
 - setComboboxModel ( getComboBox ( ) , initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ;
 + JComboBox comboBox = getComboBox ( ) ;
 + DirectoryChooser . ItemWrapper selectedItem = ( DirectoryChooser . ItemWrapper ) comboBox . getSelectedItem ( ) ;
 + setComboboxModel ( comboBox , selectedItem != null ? fileIndex . getSourceRootForFile ( selectedItem . getDirectory ( ) . getVirtualFile ( ) ) : initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ;
 }
 } ) ;
 setComboboxModel ( getComboBox ( ) , initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ;


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

 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 public class BuildCraftStateMapper extends StateMapperBase {
 public static final BuildCraftStateMapper INSTANCE = new BuildCraftStateMapper ( ) ;

 <nb> public class BuildCraftStateMapper extends StateMapperBase {

 @ override
 protected ModelResourceLocation getModelResourceLocation ( IBlockState state ) {
 - if ( state . getBlock ( ) == BuildCraftEnergy . blockOil ) {
 - BCLog . logger . info ( STRING0 + state ) ;
 - }
 ResourceLocation location = ( ResourceLocation ) Block . blockRegistry . getNameForObject ( state . getBlock ( ) ) ;
 location = new ResourceLocation ( location . getResourceDomain ( ) . replace ( STRING1 , STRING2 ) , location . getResourcePath ( ) ) ;
 return new ModelResourceLocation ( location , getPropertyString ( state ) ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public enum BlockStoreContext {
 INSTANCE ;


<nb> public class EeSubsystemTestCase extends AbstractSubsystemBaseTest {
 }

 private void testTransformersDiscardGlobalModules1_0_0 ( ModelTestControllerVersion controllerVersion ) throws Exception {
 -
 + if ( controllerVersion . isEap ( ) ) {
 + ignoreThisTestIfEAPRepositoryIsNotReachable ( ) ;
 + }
 String subsystemXml = readResource ( STRING0 ) ;
 ModelVersion modelVersion = ModelVersion . create ( NUMBER0 , NUMBER1 , NUMBER1 ) ;
 SINGLE

Fix EeSubsystemTestCase EAP tests for community users


<nb> public class WifiStateMachine extends StateMachine {
 COMMENT
 InterfaceConfiguration ifcg = null ;
 try {
 - ifcg = mNwService . getInterfaceConfig ( mInterfaceName ) ;
 + ifcg = mNwService . getInterfaceConfig ( mTetherInterfaceName ) ;
 if ( ifcg != null ) {
 ifcg . setLinkAddress (
 new LinkAddress ( NetworkUtils . numericToInetAddress ( STRING0 ) , NUMBER0 ) ) ;
 - mNwService . setInterfaceConfig ( mInterfaceName , ifcg ) ;
 + mNwService . setInterfaceConfig ( mTetherInterfaceName , ifcg ) ;
 }
 } catch ( Exception e ) {
 - loge ( STRING1 + mInterfaceName + STRING2 + e ) ;
 + loge ( STRING1 + mTetherInterfaceName + STRING2 + e ) ;
 }

 if ( mCm . untether ( mTetherInterfaceName ) != ConnectivityManager . TETHER_ERROR_NO_ERROR ) {


<nb> public class AntlrTask extends SourceTask {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 @ inputfiles

Add comment about overriding the getSource method in AntlrTask


<nb> import static NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CapturingArgumentsTest extends TestBase {
 }

 @ test
 + public void shouldCaptureWhenStubbingOnlyWhenEntireInvocationMatches ( ) {
 + SINGLE
 + ArgumentCaptor < String > argument = new ArgumentCaptor < String > ( ) ;
 + when ( mock . simpleMethod ( argument . capture ( ) , eq ( NUMBER0 ) ) ) . thenReturn ( STRING0 ) ;
 +
 + SINGLE
 + mock . simpleMethod ( STRING1 , NUMBER1 ) ;
 + mock . simpleMethod ( STRING2 , NUMBER0 ) ;
 +
 + SINGLE
 + Assertions . assertThat ( argument . getAllValues ( ) ) . containsOnly ( STRING2 ) ;
 + }
 +
 + @ test
 public void shouldSaySomethingSmartWhenMisused ( ) {
 ArgumentCaptor < Person > argument = new ArgumentCaptor < Person > ( ) ;
 try {

In order to have better functional coverage added missing test


<nb> public class VirtualFileManagerImpl extends VirtualFileManagerEx implements Appl
 public void fireBeforeRefreshStart ( boolean asynchronous ) {
 if ( myRefreshCount ++ == NUMBER0 ) {
 for ( final VirtualFileManagerListener listener : myVirtualFileManagerListeners ) {
 - listener . beforeRefreshStart ( asynchronous ) ;
 + try {
 + listener . beforeRefreshStart ( asynchronous ) ;
 + }
 + catch ( Exception e ) {
 + LOG . error ( e ) ;
 + }
 }
 }
 }
 <nb> public class VirtualFileManagerImpl extends VirtualFileManagerEx implements Appl
 public void fireAfterRefreshFinish ( boolean asynchronous ) {
 if ( -- myRefreshCount == NUMBER0 ) {
 for ( final VirtualFileManagerListener listener : myVirtualFileManagerListeners ) {
 - listener . afterRefreshFinish ( asynchronous ) ;
 + try {
 + listener . afterRefreshFinish ( asynchronous ) ;
 + }
 + catch ( Exception e ) {
 + LOG . error ( e ) ;
 + }
 }
 }
 }

exception from one listener doesn t block entire refresh operation


<nb> public class DefaultCamelContext extends ServiceSupport implements CamelContext ,
 for ( RouteService routeService : routeServices ) {
 DefaultRouteStartupOrder order = doPrepareRouteToBeStarted ( routeService ) ;
 SINGLE
 - if ( order != null ) {
 - if ( checkClash && doCheckStartupOrderClash ( order , inputs ) ) {
 - inputs . put ( order . getStartupOrder ( ) , order ) ;
 - } else {
 - inputs . put ( order . getStartupOrder ( ) , order ) ;
 - }
 + if ( checkClash ) {
 + doCheckStartupOrderClash ( order , inputs ) ;
 }
 + inputs . put ( order . getStartupOrder ( ) , order ) ;
 }

 SINGLE


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class ReadOnlyStatusDialog extends OptionsDialog {
 private static final SimpleTextAttributes BOLD_ATTRIBUTES =
 - new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , UIUtil . getListForeground ( ) ) ;
 + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , JBColor . foreground ( ) ) ;
 private static final SimpleTextAttributes SELECTED_BOLD_ATTRIBUTES =
 - new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , UIUtil . getListSelectionForeground ( ) ) ;
 + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , new JBColor ( UIUtil : : getListSelectionForeground ) ) ;

 private JPanel myTopPanel ;
 private JList myFileList ;

don t use UIUtil getListForeground as JBColor parameter


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

 public class KernelTemplateMain implements TestKernelTemplateFactory {

 <nb> public class KernelTemplateMain implements TestKernelTemplateFactory {
 ret . add ( new DoubleToStringKernelTemplateTest ( ) ) ;
 ret . add ( new DoubleToStringKernelTemplateBuilderTest ( ) ) ;
 ret . add ( new GpuParametersTest ( ) ) ;
 + ret . add ( new GpuVectorMapTest2 ( ) ) ;
 return ret ;
 }


<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
 if ( userHandle == UserHandle . USER_OWNER ) {
 wipeDataLocked ( flags ) ;
 } else {
 - lockNowUnchecked ( ) ;
 mHandler . post ( new Runnable ( ) {
 public void run ( ) {
 try {
 ActivityManagerNative . getDefault ( ) . switchUser ( UserHandle . USER_OWNER ) ;
 - ( mUserManager )
 - . removeUser ( userHandle ) ;
 + mUserManager . removeUser ( userHandle ) ;
 } catch ( RemoteException re ) {
 SINGLE
 }

Don t turn off screen after wiping user profiles


<nb> public class ReactEditText extends EditText {

 @ override
 public boolean requestFocus ( int direction , Rect previouslyFocusedRect ) {
 + SINGLE
 + SINGLE
 + if ( isFocused ( ) ) {
 + return true ;
 + }
 if ( ! mIsJSSettingFocus ) {
 return false ;
 }


<nb> public class Note extends Syncable {
 COMMENT
 COMMENT
 @ override
 - public JSONObject getDiffableValue ( ) {
 + synchronized public JSONObject getDiffableValue ( ) {
 return mNoteJSON ;
 }

Set getDiffableValue as synchronized in the Note model


<nb> public class RequestHandler {
 private void resetBuilder ( RequestEnvelopeOuterClass . RequestEnvelope . Builder builder ) {
 builder . setStatusCode ( NUMBER0 ) ;
 builder . setRequestId ( NUMBER1 ) ;
 - if ( lastAuth != null && lastAuth . getExpireTimestampMs ( ) > NUMBER2 ) {
 + if ( lastAuth != null &&
 + lastAuth . getExpireTimestampMs ( ) > NUMBER2 &&
 + lastAuth . getExpireTimestampMs ( ) > System . currentTimeMillis ( ) ) {
 builder . setAuthTicket ( lastAuth ) ;
 } else {
 + Log . d ( TAG , STRING0 ) ;
 builder . setAuthInfo ( auth ) ;
 }
 builder . setUnknown12 ( NUMBER3 ) ;


<nb> public class ValidationTest extends ContextTestSupport {
 try {
 template . sendBodyAndHeader ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
 } catch ( RuntimeCamelException e ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 }

 assertMockEndpointsSatisfied ( ) ;


<nb> abstract public class AbstractS3SnapshotRestoreTest extends AbstractAwsTest {
 Settings settings = internalCluster ( ) . getInstance ( Settings . class ) ;
 Settings bucket = settings . getByPrefix ( STRING0 ) ;
 AmazonS3 s3Client = internalCluster ( ) . getInstance ( AwsS3Service . class ) . client (
 - bucket . get ( STRING1 , settings . get ( STRING2 ) ) ,
 - bucket . get ( STRING3 , settings . get ( STRING4 ) ) ,
 + null ,
 + null ,
 bucket . get ( STRING5 , settings . get ( STRING6 ) ) ,
 bucket . get ( STRING7 , settings . get ( STRING8 ) ) ,
 bucket . get ( STRING9 , settings . get ( STRING10 ) ) ) ;

Remove unnecessary settings in test method


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

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

 COMMENT
 COMMENT
 <nb> public final class AdminThread extends ClosableThread implements MediaDriverFaca
 {
 requestTermMessage . reset ( sendBuffer ) ;
 requestTermMessage . currentVersion ( ) ;
 + requestTermMessage . headerType ( HDR_TYPE_REQUEST_TERM ) ;
 requestTermMessage . sessionId ( sessionId ) ;
 requestTermMessage . channelId ( channelId ) ;
 requestTermMessage . termId ( termId ) ;


<nb> public class EigenvectorCentralityArnoldiTest extends EigenvectorCentralityTest
 {
 SINGLE
 }
 +
 + @ test
 + @ override
 + public void testWeightAndDirection ( )
 + {
 + SINGLE
 + }
 }

Ignored randomly failing test it doesn t test exposed code anyways


<nb> class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject
 }
 }
 catch ( StateStorage . StateStorageException e ) {
 - LOG . error ( e ) ;
 + LOG . info ( e ) ;
 throw new IOException ( e . getMessage ( ) ) ;
 }
 }


<nb> public class AccountActivity extends BasePhilmActivity {
 COMMENT
 protected void onCreate ( Bundle icicle ) {
 super . onCreate ( icicle ) ;
 - setContentView ( R . layout . activity_main ) ;
 + setContentView ( R . layout . activity_account ) ;

 mAccountAuthenticatorResponse =
 getIntent ( ) . getParcelableExtra ( AccountManager . KEY_ACCOUNT_AUTHENTICATOR_RESPONSE ) ;


<nb> public class SourceMap {
 public static class LocationMapping {
 final String prefix ;
 final String replacement ;
 - LocationMapping ( String prefix , String replacement ) {
 + public LocationMapping ( String prefix , String replacement ) {
 this . prefix = prefix ;
 this . replacement = replacement ;
 }
 <nb> public class SourceMap {
 }
 }

 + SINGLE
 + if ( fixed == null ) {
 + fixed = sourceFile ;
 + }
 +
 sourceLocationFixupCache . put ( sourceFile , fixed ) ;
 return fixed ;
 }

Fixed the visibility of SourceMap LocationMapping class


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


<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 public void run ( ) {
 try {
 check ( ) ;
 -
 + myList . getEmptyText ( ) . setText ( STRING0 ) ;
 SINGLE
 SwingUtilities . invokeLater ( new Runnable ( ) {
 @ override
 public void run ( ) {
 SINGLE
 myList . setModel ( myListModel ) ;
 - myList . getEmptyText ( ) . setText ( STRING0 ) ;
 myTitleIndexes . clear ( ) ;
 clearModel ( ) ;
 myAlreadyAddedFiles . clear ( ) ;

SearchEverywhere shows Searching if the popup is empty


<nb> public class IconRoundCornerProgressBar extends BaseRoundCornerProgressBar {
 @ override
 protected void setGradientRadius ( GradientDrawable gradient ) {
 int radius = getRadius ( ) - ( getPadding ( ) / NUMBER0 ) ;
 - gradient . setCornerRadii ( new float [ ] { NUMBER1 , NUMBER1 , radius , radius , radius , radius , NUMBER1 , NUMBER1 } ) ;
 + if ( isReverse ) {
 + gradient . setCornerRadii ( new float [ ] { radius , radius , radius , radius , radius , radius , radius , radius } ) ;
 + }
 }

 @ override


<nb> public class SelectBase extends AbstractBaseTest {
 }

 @ test
 - @ excludein ( { FIREBIRD , SQLSERVER } ) SINGLE
 + @ excludein ( { FIREBIRD } ) SINGLE
 public void Math ( ) {
 - Expression < Double > expr = Expressions . numberTemplate ( Double . class , STRING0 ) ;
 + Expression < Double > expr = Expressions . numberTemplate ( Double . class , STRING1 ) ;

 assertEquals ( Math . acos ( FLOAT0 ) , singleResult ( MathExpressions . acos ( expr ) ) , FLOAT1 ) ;
 assertEquals ( Math . asin ( FLOAT0 ) , singleResult ( MathExpressions . asin ( expr ) ) , FLOAT1 ) ;


<nb> public class JUnitXmlResultWriter {
 private final TestResultsProvider testResultsProvider ;
 private final TestOutputAssociation outputAssociation ;

 - public JUnitXmlResultWriter ( String hostName , TestResultsProvider testResultsProvider ) {
 - this ( hostName , testResultsProvider , TestOutputAssociation . WITH_SUITE ) ;
 - }
 -
 public JUnitXmlResultWriter ( String hostName , TestResultsProvider testResultsProvider , TestOutputAssociation outputAssociation ) {
 this . hostName = hostName ;
 this . testResultsProvider = testResultsProvider ;


<nb> public class StreamRuleResource extends RestResource {
 @ timed
 @ apioperation ( value = STRING0 )
 @ produces ( MediaType . APPLICATION_JSON )
 + SINGLE
 public List < StreamRuleTypeResponse > types ( @ apiparam ( name = STRING1 , value = STRING2 , required = true )
 @ pathparam ( STRING1 ) String streamid ) {
 final List < StreamRuleTypeResponse > result = new ArrayList < > ( StreamRuleType . values ( ) . length ) ;

Adding TODO marker for stream rules type method


<nb> public class BuildCraftTransport {
 }
 }

 - private static Item createPipe ( int defaultID , Class < ? extends Pipe > clas , String descr , Object ingredient1 , Object ingredient2 , Object ingredient3 ) {
 + public static Item createPipe ( int defaultID , Class < ? extends Pipe > clas , String descr , Object ingredient1 , Object ingredient2 , Object ingredient3 ) {
 String name = Character . toLowerCase ( clas . getSimpleName ( ) . charAt ( NUMBER0 ) ) + clas . getSimpleName ( ) . substring ( NUMBER1 ) ;

 Property prop = BuildCraftCore . mainConfiguration . getItem ( name + STRING0 , defaultID ) ;

to allow use of the pipe creation method


<nb> import static NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 - public final class GraphSONUtility {
 + public class GraphSONUtility {

 private static final JsonNodeFactory jsonNodeFactory = JsonNodeFactory . instance ;
 private static final JsonFactory jsonFactory = new MappingJsonFactory ( ) ;

Remove the final keyword from GraphSONUtility


<nb> public final class BlockWorker extends AbstractWorker {
 COMMENT
 private final FileSystemMasterClient mFileSystemMasterClient ;

 - COMMENT
 - private SpaceReserver mSpaceReserver = null ;
 COMMENT
 private BlockHeartbeatReporter mHeartbeatReporter ;
 COMMENT


<nb> public class MethodDefinition {
 writer . printSignedIntAsDec ( registerNumber ) ;
 if ( parameterName != null ) {
 writer . write ( STRING0 ) ;
 + SINGLE
 writer . write ( parameterName ) ;
 }
 writer . write ( STRING1 ) ;

Add TODO regarding parameter local names


<nb> public class ServletHttpHandlerAdapter extends HttpServlet {

 private volatile boolean completed = false ;

 + private volatile boolean flushOnNext = false ;
 +
 private Subscription subscription ;

 +
 public ResponseBodySubscriber ( ServletAsyncContextSynchronizer synchronizer ,
 int bufferSize ) {
 this . synchronizer = synchronizer ;
 <nb> public class ServletHttpHandlerAdapter extends HttpServlet {
 ServletOutputStream output = synchronizer . getResponse ( ) . getOutputStream ( ) ;

 boolean ready = output . isReady ( ) ;
 +
 + if ( flushOnNext ) {
 + flush ( output ) ;
 + ready = output . isReady ( ) ;
 + }
 +
 logger . trace ( STRING0 + ready + STRING1 + dataBuffer ) ;

 if ( ready ) {
 <nb> public class ServletHttpHandlerAdapter extends HttpServlet {
 logger . trace ( STRING2 ) ;
 try {
 output . flush ( ) ;
 + flushOnNext = false ;
 }
 catch ( IOException ignored ) {
 }
 + } else {
 + flushOnNext = true ;
 }
 }


<nb> public class DDLTask extends Task < DDLWork > implements Serializable {
 tbl . setDbName ( names [ NUMBER0 ] ) ;
 tbl . setTableName ( names [ NUMBER1 ] ) ;

 + SINGLE
 + tbl . setOwner ( SessionState . getUserFromAuthenticator ( ) ) ;
 +
 if ( crtTbl . getLocation ( ) != null ) {
 tbl . setDataLocation ( new Path ( crtTbl . getLocation ( ) ) ) ;
 } else {

Create table LIKE command doesn t set new owner Pala M Muthaia via Ashutosh Chauhan


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class PluginModule extends Graylog2Module {
 pluginConfigBeans . addBinding ( ) . toInstance ( pluginConfigBean ) ;
 }
 }
 +
 + protected void addTransport ( String name , Class < ? extends Transport > transportClass ) {
 + installTransport ( transportMapBinder ( ) , name , transportClass ) ;
 + }
 +
 + protected void addCodec ( String name , Class < ? extends Codec > codecClass ) {
 + installCodec ( codecMapBinder ( ) , name , codecClass ) ;
 + }
 }

Add helper methods to register Transports and Codecs in plugins


<nb> public class DetailsOverviewRowPresenter extends RowPresenter {
 layoutParams . topMargin = layoutParams . bottomMargin = verticalMargin ;
 applyBackground ( vh . mOverviewView ) ;
 vh . mRightPanel . setBackground ( null ) ;
 + vh . mImageView . setBackground ( null ) ;
 } else {
 layoutParams . leftMargin = layoutParams . topMargin = layoutParams . bottomMargin = NUMBER0 ;
 applyBackground ( vh . mRightPanel ) ;
 + applyBackground ( vh . mImageView ) ;
 vh . mOverviewView . setBackground ( null ) ;
 }
 if ( scaleImage ) {


<nb> public class TestAsyncContextImpl extends TomcatBaseTest {
 private static final long REQUEST_TIME = NUMBER0 ;
 SINGLE
 private static final long TIMEOUT_MARGIN = NUMBER1 ;
 + SINGLE
 + private static final long ERROR_MARGIN = NUMBER2 ;
 SINGLE
 private static final long TIMEOUT = NUMBER3 ;

 <nb> public class TestAsyncContextImpl extends TomcatBaseTest {
 for ( int j = NUMBER4 ; j < count ; j ++ ) {
 Entry entry = entries . get ( j ) ;
 assertEquals ( status , entry . getStatus ( ) ) ;
 - assertTrue ( entry . toString ( ) , entry . getTime ( ) >= minTime ) ;
 - assertTrue ( entry . toString ( ) , entry . getTime ( ) < maxTime ) ;
 + assertTrue ( entry . toString ( ) ,
 + entry . getTime ( ) >= minTime - ERROR_MARGIN ) ;
 + assertTrue ( entry . toString ( ) ,
 + entry . getTime ( ) < maxTime + ERROR_MARGIN ) ;
 }
 }

Add an additional error margin to avoid false test failures


<nb> public class RealmQuery < E extends RealmObject > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RealmQuery < E extends RealmObject > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RealmQuery < E extends RealmObject > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RealmQuery < E extends RealmObject > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 - public class NewSignInActivity extends AppCompatActivity implements WPComMagicLinkFragment . OnMagicLinkFragmentInteraction , NewSignInActivityFragment . OnEmailCheckListener {
 + public class NewSignInActivity extends AppCompatActivity implements WPComMagicLinkFragment . OnMagicLinkFragmentInteraction , NewSignInFragment . OnEmailCheckListener {
 public String mEmail = STRING0 ;

 @ override
 <nb> public class NewSignInActivity extends AppCompatActivity implements WPComMagicLi
 FragmentManager fragmentManager = getFragmentManager ( ) ;
 FragmentTransaction fragmentTransaction = fragmentManager . beginTransaction ( ) ;

 - NewSignInActivityFragment fragment = new NewSignInActivityFragment ( ) ;
 + NewSignInFragment fragment = new NewSignInFragment ( ) ;
 fragmentTransaction . add ( R . id . fragment_container , fragment ) ;
 fragmentTransaction . commit ( ) ;
 }


<nb> public final class XContentBuilder {
 }

 public XContentBuilder value ( Object value ) throws IOException {
 + if ( value == null ) {
 + return nullValue ( ) ;
 + }
 Class type = value . getClass ( ) ;
 if ( type == String . class ) {
 value ( ( String ) value ) ;
 <nb> public class RestSearchAction extends BaseRestHandler {
 builder . endObject ( ) ;
 channel . sendResponse ( new XContentRestResponse ( request , OK , builder ) ) ;
 } catch ( Exception e ) {
 + if ( logger . isDebugEnabled ( ) ) {
 + logger . debug ( STRING0 , e ) ;
 + }
 onFailure ( e ) ;
 }
 }

building search response should handle cases where the sort is null valued


<nb> public class ArrayMemory extends Memory implements Iterable < ReferenceMemory > {

 @ override
 public Memory valueOfIndex ( TraceInfo trace , String index ) {
 - Memory e = getByScalar ( index ) ;
 + Memory number = StringMemory . toLong ( index ) ;
 + Memory e = number == null ? getByScalar ( index ) : getByScalar ( number ) ;
 return e == null ? UNDEFINED : e ;
 }

Fix array access with numeric string key


<nb> import static NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class MultiPartSpecBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public MultiPartSpecBuilder ( Object content ) {
 Validate . notNull ( content , STRING0 ) ;
 <nb> public class MultiPartSpecBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public MultiPartSpecBuilder ( InputStream content ) {
 this ( ( Object ) content ) ;
 <nb> public class MultiPartSpecBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public MultiPartSpecBuilder ( String content ) {
 this ( ( Object ) content ) ;
 <nb> public class MultiPartSpecBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public MultiPartSpecBuilder ( byte [ ] content ) {
 this ( ( Object ) content ) ;
 <nb> public class MultiPartSpecBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public MultiPartSpecBuilder ( File content ) {
 this ( ( Object ) content ) ;


<nb> public class RhinoHookDefinition implements HookDefinition {
 this . location = location ;
 }

 - Function getFunction ( ) {
 - return fn ;
 - }
 -
 @ override
 public String getLocation ( boolean detail ) {
 return location . getFileName ( ) + STRING0 + location . getLineNumber ( ) ;


<nb> public class AstridNewSyncMigrator {
 @ autowired private UpdateDao updateDao ;
 @ autowired private UserDao userDao ;

 - private static final String PREF_SYNC_MIGRATION = STRING0 ;
 + public static final String PREF_SYNC_MIGRATION = STRING0 ;

 private static final String LOG_TAG = STRING1 ;

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AstridNewSyncMigrationTest extends NewSyncTestCase {
 @ autowired
 private MetadataDao metadataDao ;

 - public void testAstrid44Migration ( ) {
 + public void testAstridSyncMigration ( ) {
 setupOldDatabase ( ) ;
 + Preferences . clear ( AstridNewSyncMigrator . PREF_SYNC_MIGRATION ) ;
 new AstridNewSyncMigrator ( ) . performMigration ( ) ;
 assertAllModelsHaveUUID ( ) ;
 assertAllTagsHaveTagData ( ) ;

Fixed a bug where the sync migration test would only work the first time


<nb> public class MediaController extends FrameLayout {

 if ( ! mShowing && mAnchor != null ) {
 setProgress ( ) ;
 + if ( mPauseButton != null ) {
 + mPauseButton . requestFocus ( ) ;
 + }
 disableUnsupportedButtons ( ) ;

 int [ ] anchorpos = new int [ NUMBER0 ] ;
 <nb> public class MediaController extends FrameLayout {
 keyCode == KeyEvent . KEYCODE_SPACE ) ) {
 doPauseResume ( ) ;
 show ( sDefaultTimeout ) ;
 + if ( mPauseButton != null ) {
 + mPauseButton . requestFocus ( ) ;
 + }
 return true ;
 } else if ( keyCode == KeyEvent . KEYCODE_MEDIA_STOP ) {
 if ( mPlayer . isPlaying ( ) ) {

When bringing up the media controller view focus the play pause button


<nb> public final class DatabaseUtil
 T dao = handle . attach ( daoType ) ;
 return method . invoke ( dao , args ) ;
 }
 - catch ( DBIException | InvocationTargetException e ) {
 + catch ( DBIException e ) {
 throw metadataError ( e ) ;
 }
 + catch ( InvocationTargetException e ) {
 + throw metadataError ( e . getCause ( ) ) ;
 + }
 } ) ;
 }

Remove extra InvocationTargetException in stacktrace


<nb> import static NAMESPACE ;

 public class GUtil {
 private static final Pattern WORD_SEPARATOR = Pattern . compile ( STRING0 ) ;
 - private static final Pattern UPPER_LOWER = Pattern . compile ( STRING1 ) ;
 + private static final Pattern UPPER_LOWER = Pattern . compile ( STRING2 ) ;

 public static < T extends Collection > T flatten ( Object [ ] elements , T addTo , boolean flattenMaps ) {
 return flatten ( asList ( elements ) , addTo , flattenMaps ) ;

Change camel case regex to support numbers


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HelloWorldApplication extends Application < HelloWorldConfiguration >
 environment . healthChecks ( ) . register ( STRING0 , new TemplateHealthCheck ( template ) ) ;
 environment . jersey ( ) . getResourceConfig ( ) . getResourceFilterFactories ( ) . add ( new DateNotSpecifiedFilterFactory ( ) ) ;

 - environment . jersey ( ) . register ( new BasicAuthFactory < User > ( new ExampleAuthenticator ( ) ,
 + environment . jersey ( ) . register ( AuthFactory . binder ( new BasicAuthFactory < > ( new ExampleAuthenticator ( ) ,
 STRING1 ,
 - User . class ) ) ;
 + User . class ) ) ) ;
 environment . jersey ( ) . register ( new HelloWorldResource ( template ) ) ;
 environment . jersey ( ) . register ( new ViewResource ( ) ) ;
 environment . jersey ( ) . register ( new ProtectedResource ( ) ) ;

Fix authentication in dropwizard example


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter implements ChannelOutboundHandler {
 <nb> public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter impleme
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter impleme
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere

 @ nullable
 public static PyType getTypeFromTarget ( final PsiElement target ) {
 + final PyType pyType = getReferenceTypeFromProviders ( target ) ;
 + if ( pyType != null ) {
 + return pyType ;
 + }
 if ( target instanceof PyTargetExpression && PyNames . NONE . equals ( ( ( PyTargetExpression ) target ) . getName ( ) ) ) {
 return PyNoneType . INSTANCE ;
 }
 <nb> public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere
 PsiFile file = ( ( PsiDirectory ) target ) . findFile ( PyNames . INIT_DOT_PY ) ;
 if ( file != null ) return getTypeFromTarget ( file ) ;
 }
 - return getReferenceTypeFromProviders ( target ) ;
 + return null ;
 }

 @ nullable

ask type from providers before looking at resolve result


<nb> public class CardView extends BaseCardView {
 protected void setupExpandAction ( ) {

 SINGLE
 - if ( ( mInternalExpandLayout != null && mCardHeader != null && mCardHeader . isButtonExpandVisible ( ) ) ||
 - mCard . getViewToClickToExpand ( ) != null ) {
 + if ( mInternalExpandLayout != null && ( ( mCardHeader != null && mCardHeader . isButtonExpandVisible ( ) ) ||
 + mCard . getViewToClickToExpand ( ) != null ) ) {

 SINGLE
 mInternalExpandLayout . getViewTreeObserver ( ) . addOnPreDrawListener (

prevent possible NPE if mInternalExpandLayout is null


<nb> public class ListHeaders {

 public static Address [ ] getListPostAddresses ( Message message ) {
 String [ ] headerValues = getHeaderValues ( message , LIST_POST_HEADER ) ;
 - if ( headerValues == null || headerValues . length < NUMBER0 ) {
 + if ( headerValues . length < NUMBER0 ) {
 return new Address [ NUMBER1 ] ;
 }

 <nb> public class ReplyToParserTest {
 when ( message . getFrom ( ) ) . thenReturn ( arrayConcatenate ( FROM_ADDRESSES , REPLY_TO_ADDRESSES , Address . class ) ) ;
 when ( message . getRecipients ( RecipientType . TO ) ) . thenReturn ( arrayConcatenate ( FROM_ADDRESSES , TO_ADDRESSES , Address . class ) ) ;
 when ( message . getRecipients ( RecipientType . CC ) ) . thenReturn ( arrayConcatenate ( CC_ADDRESSES , TO_ADDRESSES , Address . class ) ) ;
 + when ( message . getHeader ( ListHeaders . LIST_POST_HEADER ) ) . thenReturn ( new String [ NUMBER1 ] ) ;

 ReplyToAddresses recipientsToReplyAllTo = replyToParser . getRecipientsToReplyAllTo ( message , account ) ;

Fix test instead of adding null check to ListHeaders


<nb> public class Library < T > {
 SINGLE

 public void put ( final int pID , final T pItem ) {
 - this . mItems . put ( pID , pItem ) ;
 + final T existingItem = this . mItems . get ( pID ) ;
 + if ( existingItem == null ) {
 + this . mItems . put ( pID , pItem ) ;
 + } else {
 + throw new IllegalArgumentException ( STRING0 + pID + STRING1 + existingItem . toString ( ) + STRING2 ) ;
 + }
 + }
 +
 + public void remove ( final int pID ) {
 + this . mItems . remove ( pID ) ;
 }

 public T get ( final int pID ) {

Added check to Library so that IDs can not be used twice


<nb> public class CatchAllStatement extends Statement {
 if ( first . type == TYPE_TRYCATCH && first . varDefinitions . isEmpty ( ) && isFinally &&
 ! labeled && ! first . isLabeled ( ) && ( lstSuccs . isEmpty ( ) || ! lstSuccs . get ( NUMBER0 ) . explicit ) ) {
 String content = ExprProcessor . jmpWrapper ( first , indent , true ) ;
 - content = content . substring ( NUMBER0 , content . length ( ) - NUMBER1 ) ;
 + content = content . substring ( NUMBER0 , content . length ( ) - new_line_separator . length ( ) ) ;

 buf . append ( content ) ;
 } else {


<nb> public class SparseSwitchDataPseudoInstruction extends Instruction implements Mu

 for ( int i = NUMBER0 ; i < keys . length ; i ++ ) {
 key = keys [ i ] ;
 - assert key <= keys [ i - NUMBER0 ] ;
 + assert key >= keys [ i - NUMBER0 ] ;
 out . writeInt ( key ) ;
 }

Use the correct comparison for the keys when writing out a sparse switch data pseudo instruction


<nb> public class CompileServices implements PluginServiceRegistry {
 }

 public void registerBuildServices ( ServiceRegistration registration ) {
 - registration . addProvider ( new BuildScopeCompileServices ( ) ) ;
 }

 public void registerGradleServices ( ServiceRegistration registration ) {
 + registration . addProvider ( new BuildScopeCompileServices ( ) ) ;
 }

 public void registerProjectServices ( ServiceRegistration registration ) {

Move BuildScopeCompileServices to Gradle scope so that it can access the Gradle object


<nb> public class ContactListModel
 COMMENT
 public boolean isContactOnline ( MetaContact contact )
 {
 + SINGLE
 + if ( contact . getDefaultContact ( ) == null )
 + return false ;
 +
 SINGLE
 if ( contact . getDefaultContact ( ) . getPresenceStatus ( )
 . getStatus ( ) >= PresenceStatus . ONLINE_THRESHOLD )

Fixed NullPointerException if for some reason the MetaContact getDefaultContact method returns NULL


<nb> public class SearchPlugin implements Component , Plugin , PropertyEventListener {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public Collection < String > getFilteredSearchFields ( ) {
 Collection < String > searchFields ;
 <nb> public class SearchPlugin implements Component , Plugin , PropertyEventListener {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setExcludedFields ( Collection < String > exculudedFields ) {
 this . exculudedFields = exculudedFields ;
 <nb> public class SearchPlugin implements Component , Plugin , PropertyEventListener {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public Collection < String > getSearchPluginUserManagerSearchFields ( ) {
 return Arrays . asList ( STRING0 , STRING1 , STRING2 ) ;


<nb> public abstract class AbstractJPATest {
 }

 @ test
 + public void FactoryExpressions ( ) {
 + QCat cat = QCat . cat ;
 + QCat cat2 = new QCat ( STRING0 ) ;
 + JPQLQuery < Tuple > query = query ( ) . from ( cat ) . leftJoin ( cat . kittens , cat2 )
 + . select ( Projections . tuple ( cat . id , cat . name ,
 + Projections . tuple ( cat2 . id , cat2 . name ,
 + Projections . tuple ( cat2 . birthdate ) . skipNulls ( ) ) . skipNulls ( ) ) ) ;
 + assertEquals ( NUMBER0 , query . fetch ( ) . size ( ) ) ;
 + assertNotNull ( query . limit ( NUMBER1 ) . fetchOne ( ) ) ;
 + }
 +
 + @ test
 @ noeclipselink @ noopenjpa @ nobatoojpa
 public void Fetch ( ) {
 QMammal mammal = QMammal . mammal ;


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public interface Cookie {

 - AttachmentKey < Map < String , Cookie > > REQUEST_COOKIES = AttachmentKey . create ( Map . class ) ;
 - AttachmentKey < Map < String , Cookie > > RESPONSE_COOKIES = AttachmentKey . create ( Map . class ) ;
 -
 String getName ( ) ;

 String getValue ( ) ;


<nb>
 COMMENT
 package NAMESPACE ;

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

 + import NAMESPACE ;
 import NAMESPACE ;

 public class PsiBuilderQuickTest extends LightPlatformTestCase {
 <nb> public class PsiBuilderQuickTest extends LightPlatformTestCase {
 STRING0 ) ;
 }

 + @ bombed ( month = Calendar . AUGUST , day = NUMBER0 )
 public void testEmptyCollapsedNode ( ) {
 doTest ( STRING1 ,
 new Parser ( ) {


<nb> import NAMESPACE ;
 public class StandardVertex extends AbstractVertex {

 private byte lifecycle ;
 - private AddedRelationsContainer addedRelations = AddedRelationsContainer . EMPTY ;
 + private volatile AddedRelationsContainer addedRelations = AddedRelationsContainer . EMPTY ;

 public StandardVertex ( final StandardTitanTx tx , final long id , byte lifecycle ) {
 super ( tx , id ) ;

Fix double checked locking in StandardVertex


<nb> public abstract class CommandLineCppCompiler implements Compiler < GppCompileSpec >
 compiler . executable ( OperatingSystem . current ( ) . findInPath ( getExecutable ( ) ) ) ;
 compiler . workingDir ( workDir ) ;

 + configure ( compiler , spec ) ;
 SINGLE
 for ( Closure closure : spec . getSettings ( ) ) {
 closure . call ( compiler ) ;
 }
 - configure ( compiler , spec ) ;

 compiler . execute ( ) ;
 return new SimpleWorkResult ( true ) ;

Add custom args at end of command line so that link compiler arg can be used


<nb> public class GBMTest extends TestUtil {
 fr . delete ( ) ; SINGLE
 Assert . fail ( STRING0 ) ;
 } catch ( IllegalArgumentException ignore ) {
 - } catch ( DException . DistributedException de ) {
 - assertTrue ( de . getMessage ( ) . contains ( STRING1 ) ) ;
 + } catch ( RuntimeException re ) {
 + assertTrue ( re . getCause ( ) instanceof IllegalArgumentException ) ;
 }

 Log . info ( STRING2 ) ;
 <nb> public final class Job < T extends Keyed > extends Keyed < Job > {
 }

 static public boolean isCancelledException ( Throwable ex ) {
 - return false ; SINGLE
 + return ex instanceof JobCancelledException || ex . getCause ( ) != null && ex . getCause ( ) instanceof JobCancelledException ;
 }

 private static class Barrier1OnCom extends JAtomic {

Fixed gbm test after recent exception update fixed JobCancelledException test in Job


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 class IntToIntBtree {
 - static final int VERSION = NUMBER0 ;
 + public static int version ( ) {
 + return NUMBER0 ;
 + }
 +
 private static final int HAS_ZERO_KEY_MASK = NUMBER1 ;
 static final boolean doSanityCheck = false ;
 static final boolean doDump = false ;
 <nb> public class PersistentBTreeEnumerator < Data > extends PersistentEnumeratorBase < Da
 private boolean myExternalKeysNoMapping ;

 private static final int DIRTY_MAGIC = NUMBER2 ;
 - private static final int VERSION = NUMBER3 + IntToIntBtree . VERSION ;
 + private static final int VERSION = NUMBER3 + IntToIntBtree . version ( ) ;
 private static final int CORRECTLY_CLOSED_MAGIC = NUMBER4 + VERSION + PAGE_SIZE ;
 @ notnull private static Version ourVersion = new Version ( CORRECTLY_CLOSED_MAGIC , DIRTY_MAGIC ) ;
 private static final int KEY_SHIFT = NUMBER5 ;

avoid static final constant values for versions


<nb> public class Graph implements Serializable {
 vertices . get ( v . getLabel ( ) ) == v ;
 }

 - public Vertex nearestVertex ( float lat , float lon ) {
 - double minDist = Float . MAX_VALUE ;
 - Vertex ret = null ;
 - Coordinate c = new Coordinate ( lon , lat ) ;
 - for ( Vertex vv : getVertices ( ) ) {
 - double dist = vv . distance ( c ) ;
 - if ( dist < minDist ) {
 - ret = vv ;
 - minDist = dist ;
 - }
 - }
 - return ret ;
 - }
 -
 @ suppresswarnings ( STRING0 )
 public < T > T putService ( Class < T > serviceType , T service ) {
 return ( T ) _services . put ( serviceType , service ) ;


<nb> public class HttpTunnelAddress extends SocketAddress implements Comparable < HttpT
 public int compareTo ( HttpTunnelAddress o ) {
 return getUri ( ) . toASCIIString ( ) . compareTo ( o . getUri ( ) . toASCIIString ( ) ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return STRING0 + getUri ( ) ;
 + }
 }


<nb> public abstract class TransportAction < Request extends ActionRequest , Response ex
 }
 } ) ;
 } catch ( EsRejectedExecutionException ex ) {
 - logger . debug ( STRING0 , listener ) ;
 + logger . debug ( STRING1 , listener ) ;
 COMMENT
 COMMENT
 try {


<nb> public class CaseRule extends GermanRule {

 private static final Set < String > exceptions = new HashSet < String > ( ) ;
 static {
 + exceptions . add ( STRING0 ) ;
 exceptions . add ( STRING1 ) ;
 exceptions . add ( STRING2 ) ;
 exceptions . add ( STRING3 ) ;


<nb> public class BaseEncodingTest extends TestCase {
 }

 public void testToString ( ) {
 - assertEquals ( STRING0 , base64 ( ) . toString ( ) ) ;
 + assertEquals ( STRING1 , base64 ( ) . toString ( ) ) ;
 assertEquals ( STRING2 , base32Hex ( ) . omitPadding ( ) . toString ( ) ) ;
 assertEquals (
 - STRING3 ,
 + STRING4 ,
 base32 ( ) . lowerCase ( ) . withPadChar ( STRING5 ) . toString ( ) ) ;
 assertEquals (
 STRING6 ,
 <nb> public abstract class BaseEncoding {
 if ( paddingChar == null ) {
 builder . append ( STRING7 ) ;
 } else {
 - builder . append ( STRING8 ) . append ( paddingChar ) . append ( STRING9 ) ;
 + builder . append ( STRING10 ) . append ( paddingChar ) . append ( STRING11 ) ;
 }
 }
 return builder . toString ( ) ;

Change BaseEncoding toString to return withPadChar instead of withPadChar


<nb> public class MeFragment extends Fragment {
 }

 private void showGravatarTooltipIfNeeded ( ) {
 - if ( ! isAdded ( ) || ! AppPrefs . isGravatarChangePromoRequired ( ) || ! mIsUserVisible || mGravatarToolTipView !=
 - null ) {
 + if ( ! isAdded ( ) || ! AccountHelper . isSignedInWordPressDotCom ( ) || ! AppPrefs . isGravatarChangePromoRequired ( ) ||
 + ! mIsUserVisible || mGravatarToolTipView != null ) {
 return ;
 }

Don t pop the gravatar tooltip for self hosted


<nb> public class ExpressionAnalyzer
 Type valueType = process ( node . getValue ( ) , context ) ;
 process ( node . getTimeZone ( ) , context ) ;
 if ( ! valueType . equals ( TIME_WITH_TIME_ZONE ) && ! valueType . equals ( TIMESTAMP_WITH_TIME_ZONE ) ) {
 - throw new SemanticException ( TYPE_MISMATCH , node . getValue ( ) , STRING0 , valueType ) ;
 + throw new SemanticException ( TYPE_MISMATCH , node . getValue ( ) , STRING1 , valueType ) ;
 }
 expressionTypes . put ( node , valueType ) ; SINGLE

 <nb> public class TestAnalyzer
 assertMissingInformationSchema ( session , STRING2 ) ;
 }

 + @ test
 + public void testInvalidAtTimeZone ( )
 + throws Exception
 + {
 + assertFails ( TYPE_MISMATCH , STRING3 ) ;
 + }
 +
 private void assertMissingInformationSchema ( Session session , @ language ( STRING4 ) String query )
 {
 try {

Improve error message for At Time Zone type mismatch


<nb> public class RestOperationParamDefinition {
 }

 public String getDataType ( ) {
 - return dataType ;
 + return dataType != null ? dataType : STRING0 ;
 }

 COMMENT


<nb>
 COMMENT
 COMMENT

 - SINGLE
 - SINGLE
 -
 package NAMESPACE ;

 import NAMESPACE ;


<nb> package NAMESPACE ;
 public class Constants {
 public static final String WEB_CLIENT_ID = STRING0 ;

 - public static final String ANDROID_CLIENT_ID = STRING1 ;
 + public static final String ANDROID_BETA_CLIENT_ID = STRING1 ;
 +
 + public static final String ANDROID_RELEASE_CLIENT_ID = STRING2 ;

 public static final String ANDROID_AUDIENCE = WEB_CLIENT_ID ;

 <nb> import NAMESPACE ;
 version = STRING3 ,
 scopes = { Constants . EMAIL_SCOPE } ,
 clientIds = { com . google . api . server . spi . Constant . API_EXPLORER_CLIENT_ID ,
 - Constants . WEB_CLIENT_ID , Constants . ANDROID_CLIENT_ID } ,
 + Constants . WEB_CLIENT_ID , Constants . ANDROID_BETA_CLIENT_ID ,
 + Constants . ANDROID_RELEASE_CLIENT_ID } ,
 audiences = { Constants . ANDROID_AUDIENCE } ,
 namespace = @ apinamespace ( ownerDomain = STRING4 , ownerName = STRING4 ,
 packagePath = STRING5 )


<nb> public class DebugLogs extends BaseActivity {
 SINGLE
 Intent intent = new Intent ( Intent . ACTION_SEND ) ;
 intent . setType ( STRING0 ) ;
 - intent . putExtra ( Intent . EXTRA_EMAIL , STRING1 ) ;
 + intent . putExtra ( Intent . EXTRA_EMAIL ) ;
 intent . putExtra ( Intent . EXTRA_SUBJECT , STRING2 ) ;
 intent . putExtra ( Intent . EXTRA_TEXT , log ) ;
 startActivity ( Intent . createChooser ( intent , STRING3 ) ) ;

Removed static contact data since it might change


<nb> public class TesterServletContext implements ServletContext {

 @ override
 public Object getAttribute ( String name ) {
 - throw new RuntimeException ( STRING0 ) ;
 + SINGLE
 + return null ;
 }

 @ override


<nb> public abstract class FunctionalTest extends RandomData {
 Tuple tuple = list . get ( i ) ;
 String name = tuple . get ( STRING0 ) ;
 assertEquals ( people . get ( i ) . getName ( ) , name ) ;
 - int id = tuple . get ( STRING1 ) ;
 - assertEquals ( people . get ( i ) . getId ( ) , id ) ;
 + Number id = tuple . get ( STRING1 ) ;
 + assertEquals ( people . get ( i ) . getId ( ) , id . intValue ( ) ) ;
 }
 }
 + try ( Result < Tuple > result = data . raw ( STRING2 ) ) {
 + Number number = result . first ( ) . get ( NUMBER0 ) ; SINGLE
 + assertEquals ( count , number . intValue ( ) ) ;
 + }
 }

 @ test ( expected = PersistenceException . class )


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

 import NAMESPACE ;
 <nb> public class Shows {
 }

 @ apimethod ( name = STRING0 , path = STRING1 )
 - public Show authedShow ( User user ) {
 + public Show authedShow ( User user ) throws OAuthRequestException {
 + if ( user == null ) {
 + throw new OAuthRequestException ( STRING2 ) ;
 + }
 Show response = new Show ( NUMBER0 , user . getEmail ( ) ) ;
 return response ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public interface Endpoint < E extends Exchange > {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import static NAMESPACE ;

 COMMENT
 <nb>
 package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public final class UnsafeUriCharactersEncoder {
 sb . append ( HEX_DIGITS [ ( b > > NUMBER0 ) & NUMBER1 ] ) ;
 }

 -
 -
 -
 }

removed unused imports and fixed a javadoc mistake


<nb> public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap
 }

 public WatchRequest addRootToWatch ( @ notnull String rootPath , boolean toWatchRecursively ) {
 - if ( rootPath . length ( ) == NUMBER0 ) return null ;
 + if ( rootPath . length ( ) == NUMBER0 || ! FileWatcher . getInstance ( ) . isOperational ( ) ) return null ;

 WRITE_LOCK . lock ( ) ;
 try {
 <nb> public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap

 @ notnull
 public Set < WatchRequest > addRootsToWatch ( @ notnull final Collection < String > rootPaths , final boolean toWatchRecursively ) {
 + if ( ! FileWatcher . getInstance ( ) . isOperational ( ) ) return Collections . emptySet ( ) ;
 +
 Set < WatchRequest > result = new HashSet < WatchRequest > ( ) ;
 Set < VirtualFile > filesToSynchronize = new HashSet < VirtualFile > ( ) ;

Bypass adding watch roots if the FileWatcher is not available since they re not needed in this case anyway


<nb> public abstract class AnnotationUtils {
 COMMENT
 public static Annotation [ ] getAnnotations ( AnnotatedElement annotatedElement ) {
 try {
 - return annotatedElement . getAnnotations ( ) ;
 + return synthesizeAnnotationArray ( annotatedElement . getAnnotations ( ) , annotatedElement ) ;
 }
 catch ( Exception ex ) {
 handleIntrospectionFailure ( annotatedElement , ex ) ;
 <nb> public abstract class AnnotationUtils {
 COMMENT
 public static Annotation [ ] getAnnotations ( Method method ) {
 try {
 - return BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotations ( ) ;
 + return synthesizeAnnotationArray ( BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotations ( ) , method ) ;
 }
 catch ( Exception ex ) {
 handleIntrospectionFailure ( method , ex ) ;
 <nb> public abstract class AnnotationUtils {
 this . declaredMode = declaredMode ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 @ suppresswarnings ( STRING0 )
 static Class < ? extends Annotation > resolveContainerAnnotationType ( Class < ? extends Annotation > annotationType ) {
 try {

Synthesize annotation arrays within AnnotationUtils


<nb> public class NetworkMonitor extends StateMachine {
 new InputStreamReader ( socket . getInputStream ( ) ) ) ;
 OutputStreamWriter writer = new OutputStreamWriter ( socket . getOutputStream ( ) ) ;
 writer . write ( STRING0 + url . getFile ( ) + STRING1 + url . getHost ( ) +
 + STRING2 + System . getProperty ( STRING3 ) +
 STRING4 ) ;
 writer . flush ( ) ;
 String response = reader . readLine ( ) ;


<nb>
 COMMENT
 package NAMESPACE ;

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

 public class HttpConnectionManagerSettingTest extends CamelTestSupport {

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


<nb>
 COMMENT
 package NAMESPACE ;

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

 - import NAMESPACE ;
 -
 public class CxfEndpointBeanTest extends AbstractSpringBeanTestSupport {
 static int port1 = CXFTestSupport . getPort1 ( ) ;
 static {


<nb> public class SchemaManager {
 }
 }
 catch ( SQLException sqle ) {
 + SINGLE
 + Log . debug ( STRING0 + schemaKey + STRING1 , sqle ) ;
 DbConnectionManager . closeResultSet ( rs ) ;
 DbConnectionManager . closeStatement ( pstmt ) ;
 if ( schemaKey . equals ( STRING2 ) ) {
 <nb> public class SchemaManager {
 }
 }
 catch ( SQLException sqlea ) {
 + SINGLE
 + Log . debug ( STRING0 + schemaKey + STRING1 , sqlea ) ;
 DbConnectionManager . closeResultSet ( rs ) ;
 DbConnectionManager . closeStatement ( pstmt ) ;
 SINGLE
 <nb> public class SchemaManager {
 }
 catch ( SQLException sqle2 ) {
 SINGLE
 - Log . debug ( STRING3 , sqle2 ) ;
 + Log . debug ( STRING0 + schemaKey + STRING4 , sqle2 ) ;
 }
 }
 }


<nb> public abstract class AbstractInputBuffer < S > implements InputBuffer {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + protected final boolean isBlocking ( ) {
 + return request . getReadListener ( ) == null ;
 + }
 +
 +
 SINGLE

 COMMENT

Add isBlocking util method like in AbstractOutputBuffer


<nb> public class CookieEncoder {
 }
 }

 - if ( sb . length ( ) > NUMBER0 )
 - sb . setLength ( sb . length ( ) - NUMBER1 ) ;
 + if ( sb . length ( ) > NUMBER0 ) {
 + sb . setLength ( sb . length ( ) - NUMBER1 ) ;
 + }
 +
 return sb . toString ( ) ;
 }


<nb> public class FizzBuzzTest {
 BufferedOutputStream bos = new BufferedOutputStream ( baos ) ;
 System . setOut ( new PrintStream ( bos ) ) ;

 - fb . fizzbuzz ( n ) ;
 + fb . fizzBuzz ( n ) ;

 System . out . flush ( ) ;
 assertEquals ( s , baos . toString ( ) ) ;


<nb> public class CookieManager {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CookieManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add documentation for CookieManager defualts


<nb> public class OracleTableManager extends SQLTableManager < OracleTable , OracleSchem
 actions . add (
 new SQLDatabasePersistAction (
 STRING0 ,
 - STRING1 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE
 - STRING2 + DBUtils . getQuotedIdentifier ( command . getObject ( ) . getDataSource ( ) , command . getNewName ( ) ) ) SINGLE
 + STRING3 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE
 + STRING4 + DBUtils . getQuotedIdentifier ( command . getObject ( ) . getDataSource ( ) , command . getNewName ( ) ) ) SINGLE
 ) ;
 }


<nb> public class DeploymentInfo implements Cloneable {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isAuthenticationMechanismPresent ( final String mechanismName ) {
 + if ( loginConfig != null ) {
 + for ( AuthMethodConfig method : loginConfig . getAuthMethods ( ) ) {
 + if ( method . equals ( mechanismName ) ) {
 + return true ;
 + }
 + }
 + }
 + return false ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add utility method to check if a login method is present


<nb> public class Main {
 private final FileHistory history ;

 {
 - history = new FileHistory ( new File ( System . getProperty ( STRING0 ) , STRING1 ) ) ;
 + history = new FileHistory ( new File ( getProperty ( STRING0 ) , STRING1 ) ) ;

 console = new ConsoleReader ( System . in , System . out ) ;
 console . setHistoryEnabled ( true ) ;

added saving of console history only extended console


<nb> public class DBCallback extends BasicBSONCallback {
 if ( ! _lastArray &&
 o . containsKey ( STRING0 ) &&
 o . containsKey ( STRING1 ) ) {
 - o = ( BSONObject ) cur ( ) . put ( _lastName , new DBRef ( _db , o ) ) ;
 + return cur ( ) . put ( _lastName , new DBRef ( _db , o ) ) ;
 }

 return o ;

Fixed issue with List of DBRefs it was that simple


<nb> import NAMESPACE ;
 }
 finally {
 ourTestThread = null ;
 - cleanupApplicationCaches ( ) ;
 + try {
 + cleanupApplicationCaches ( ) ;
 + }
 + catch ( Exception e ) {
 + e . printStackTrace ( ) ;
 + }
 }
 }
 } ) ;

surround call to cleanupApplicationCaches with try catch in order to not miss exceptions during setup


<nb>

 package NAMESPACE ;

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

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class AaptStep extends ShellStep {

 private final String androidManifest ;


<nb> class ValueContainerImpl < Value > extends UpdatableValueContainer < Value > implement
 }

 private void resetFileSetForValue ( Value value , Object fileSet ) {
 + if ( value == null ) value = ( Value ) myNullValue ;
 if ( ! ( myInputIdMapping instanceof THashMap ) ) myInputIdMappingValue = fileSet ;
 else ( ( THashMap < Value , Object > ) myInputIdMapping ) . put ( value , fileSet ) ;
 }

avoid problem with null value supplied by some indexer used as key for THashMap


<nb> public class RouteResultPreparation {
 derivedTurnType . setLanes ( t . getLanes ( ) ) ;
 derivedTurnType . setSkipToSpeak ( t . isSkipToSpeak ( ) ) ;
 t = derivedTurnType ;
 +
 + SINGLE
 + for ( int i = NUMBER0 ; i < t . getLanes ( ) . length ; i ++ ) {
 + if ( TurnType . getSecondaryTurn ( t . getLanes ( ) [ i ] ) == t . getValue ( ) ) {
 + int temp = TurnType . getSecondaryTurn ( t . getLanes ( ) [ i ] ) ;
 + t . setSecondaryTurn ( i , TurnType . getPrimaryTurn ( t . getLanes ( ) [ i ] ) ) ;
 + t . setPrimaryTurn ( i , temp ) ;
 + }
 + }
 }

 return t ;

Switch primary and secondary turns if the secondary turn is the actual turn


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PinotSegmentUploadRestletResource extends PinotRestletResourceBase
 SINGLE
 SINGLE
 TarGzCompressionUtils . unTar ( dataFile , tmpSegmentDir ) ;
 -
 - return uploadSegment ( tmpSegmentDir . listFiles ( ) [ NUMBER0 ] , dataFile ) ;
 + File segmentFile = tmpSegmentDir . listFiles ( ) [ NUMBER0 ] ;
 + String clientIpAddress = getClientInfo ( ) . getAddress ( ) ;
 + String clientAddress = InetAddress . getByName ( clientIpAddress ) . getHostName ( ) ;
 + LOGGER . info ( STRING0 , segmentFile . getName ( ) , clientAddress ) ;
 + return uploadSegment ( segmentFile , dataFile ) ;
 } else {
 SINGLE
 rep = new StringRepresentation ( STRING1 , MediaType . TEXT_PLAIN ) ;

Log hostname of client from which the segment is being uploaded


<nb> public class MethodBreakpoint extends BreakpointWithHighlighter {
 }

 public boolean matchesEvent ( final LocatableEvent event , final DebugProcessImpl process ) throws EvaluateException {
 + if ( myMethodName == null || mySignature == null ) {
 + return false ;
 + }
 final Method method = event . location ( ) . method ( ) ;
 - return method != null && myMethodName . equals ( method . name ( ) ) && mySignature . getName ( process ) . equals ( method . signature ( ) ) ;
 + return method != null && method . name ( ) . equals ( myMethodName ) && method . signature ( ) . equals ( mySignature . getName ( process ) ) ;
 }

 public static MethodBreakpoint create ( Project project , Document document , int lineIndex ) {

reviewed by Michael Gerasimov fix possible NPE


<nb> import NAMESPACE ;

 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( QuickTest . class )
 - public class AtomicLongBasicDistributedTest extends BasicAtomicLongTest {
 + public class AtomicLongBasicDistributedTest extends AtomicLongBasicTest {

 @ override
 protected HazelcastInstance [ ] newInstances ( ) {
 <nb> import NAMESPACE ;

 @ runwith ( HazelcastParallelClassRunner . class )
 @ category ( QuickTest . class )
 - public class AtomicLongBasicLocalTest extends BasicAtomicLongTest {
 + public class AtomicLongBasicLocalTest extends AtomicLongBasicTest {

 @ override
 protected HazelcastInstance [ ] newInstances ( ) {
 <nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;

 - public abstract class BasicAtomicLongTest extends HazelcastTestSupport {
 + public abstract class AtomicLongBasicTest extends HazelcastTestSupport {

 protected HazelcastInstance [ ] instances ;
 protected IAtomicLong atomicLong ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - 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
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Wallet extends BaseTaggableObject
 try {
 checkArgument ( numTransactions >= NUMBER0 ) ;
 SINGLE
 - int size = getPoolSize ( Pool . UNSPENT ) +
 - getPoolSize ( Pool . SPENT ) +
 - getPoolSize ( Pool . PENDING ) ;
 + int size = unspent . size ( ) + spent . size ( ) + pending . size ( ) ;
 if ( numTransactions > size || numTransactions == NUMBER0 ) {
 numTransactions = size ;
 }
 <nb> public class Wallet extends BaseTaggableObject
 }
 }

 - int getPoolSize ( WalletTransaction . Pool pool ) {
 + @ visiblefortesting
 + public int getPoolSize ( WalletTransaction . Pool pool ) {
 lock . lock ( ) ;
 try {
 switch ( pool ) {


<nb> public class SpringApplicationTests {
 STRING0 ,
 STRING1 ) ;
 assertThat ( this . output . toString ( ) )
 - . startsWith ( STRING2 ) ;
 + . startsWith ( String . format ( STRING3 ) ) ;
 }

 @ test


<nb> public class PyCharmEduInitialConfigurator {
 } ) ;
 }
 } ) ;
 - PyCodeInsightSettings . getInstance ( ) . SHOW_IMPORT_POPUP = true ;
 + PyCodeInsightSettings . getInstance ( ) . SHOW_IMPORT_POPUP = false ;
 }

 if ( ! propertiesComponent . isValueSet ( DISPLAYED_PROPERTY ) ) {

Don t show import pop up by default in Edu


<nb> public class OsmandMapTileView implements IMapDownloaderCallback {
 if ( contextMenuLayer != null ) {
 contextMenuLayer . onTouchEvent ( event , getCurrentRotatedTileBox ( ) ) ;
 }
 + gestureDetector . onTouchEvent ( event ) ;
 return true ;
 }

test not masking gestures for two finger tap


<nb> public interface CordovaWebView {

 void showWebPage ( String errorUrl , boolean b , boolean c , Map < String , Object > params ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 boolean isCustomViewShowing ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 void showCustomView ( View view , CustomViewCallback callback ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + @ deprecated
 void hideCustomView ( ) ;

 CordovaResourceApi getResourceApi ( ) ;

Deprecate custom view methods in CordovaWebView


<nb> public class ViewPager extends ViewGroup {
 void dataSetChanged ( ) {
 SINGLE

 - boolean needPopulate = mItems . isEmpty ( ) && mAdapter . getCount ( ) > NUMBER0 ;
 + boolean needPopulate = mItems . size ( ) < NUMBER1 && mItems . size ( ) < mAdapter . getCount ( ) ;
 int newCurrItem = - NUMBER2 ;

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


<nb> public class ABTestInvoker {

 COMMENT
 private static final String URL = STRING0 ;
 - private static final String ACQ_URL = STRING1 ;
 + private static final String ACQ_URL = STRING2 ;
 private static final String API_KEY = STRING3 ;
 private static final String API_SECRET = STRING4 ;


<nb> public class ThreadedRenderer extends HardwareRenderer {
 recordDuration , view . getResources ( ) . getDisplayMetrics ( ) . density ) ;
 if ( ( syncResult & SYNC_LOST_SURFACE_REWARD_IF_FOUND ) != NUMBER0 ) {
 setEnabled ( false ) ;
 + attachInfo . mViewRootImpl . mSurface . release ( ) ;
 SINGLE
 SINGLE
 attachInfo . mViewRootImpl . invalidate ( ) ;
 <nb> public final class ViewRootImpl implements ViewParent ,

 SINGLE
 SINGLE
 - private final Surface mSurface = new Surface ( ) ;
 + final Surface mSurface = new Surface ( ) ;

 boolean mAdded ;
 boolean mAddedTouchMode ;


<nb> import NAMESPACE ;
 public class BuilderFactory {
 public static final Builder < Double > DOUBLE = new Builder < Double > ( ) {
 public Double build ( Object data ) {
 - return Double . valueOf ( STRING . build ( data ) ) ;
 + String asString = STRING . build ( data ) ;
 + return asString == null ? null : Double . valueOf ( asString ) ;
 }

 public String toString ( ) {


<nb> public class DeviceConfiguration
 {
 String res = null ;
 SINGLE
 - SINGLE
 + SINGLE
 SINGLE
 if ( cdi . getLocator ( ) . getProtocol ( ) . equals ( STRING0 ) )
 {
 <nb> public class DeviceConfiguration
 config . setProperty ( PROP_AUDIO_PLAYBACK_DEVICE , null ) ;
 }

 - firePropertyChange ( AUDIO_PLAYBACK_DEVICE ,
 + firePropertyChange ( AUDIO_PLAYBACK_DEVICE ,
 oldDev , audioPlaybackDevice ) ;
 }
 }
 <nb> public class PortAudioAuto
 int maxOutputChannels =
 PortAudio . PaDeviceInfo_getMaxOutputChannels ( deviceInfo ) ;

 + String devName = PortAudio . PaDeviceInfo_getName ( deviceInfo ) ;
 + if ( devName != null )
 + devName = devName . trim ( ) ;
 +
 CaptureDeviceInfo jmfInfo =
 new CaptureDeviceInfo (
 - PortAudio . PaDeviceInfo_getName ( deviceInfo ) ,
 + devName ,
 new MediaLocator (
 PortAudioUtils . LOCATOR_PREFIX + deviceIndex ) ,
 new Format [ ] { DataSource . getCaptureFormat ( ) } ) ;

Trim port audio device names so that they would match whatever we store in our properties file


<nb> implements OnRemoteOperationListener , OnSslValidatorListener , OnFocusChangeList
 SINGLE
 setContentView ( R . layout . account_setup ) ;
 mHostUrlInput = ( EditText ) findViewById ( R . id . hostUrlInput ) ;
 + mHostUrlInput . setText ( getString ( R . string . server_url ) ) ; SINGLE
 mUsernameInput = ( EditText ) findViewById ( R . id . account_username ) ;
 mPasswordInput = ( EditText ) findViewById ( R . id . account_password ) ;
 mOAuthAuthEndpointText = ( TextView ) findViewById ( R . id . oAuthEntryPoint_1 ) ;
 <nb> implements OnRemoteOperationListener , OnSslValidatorListener , OnFocusChangeList
 SINGLE
 if ( ! mHostUrlInputEnabled )
 {
 - mHostUrlInput . setText ( getString ( R . string . server_url ) ) ;
 findViewById ( R . id . hostUrlFrame ) . setVisibility ( View . GONE ) ;
 -
 mRefreshButton = findViewById ( R . id . centeredRefreshButton ) ;

 } else {

Allow the definition of a default server URL although the input field is visible


<nb> public class ThriftToPig < M extends TBase < ? , ? > > {

 public static final Logger LOG = LoggerFactory . getLogger ( ThriftToPig . class ) ;

 - static final String USE_ENUM_ID_CONF_KEY = STRING0 ;
 + static final String USE_ENUM_ID_CONF_KEY = STRING1 ;

 SINGLE
 private static Boolean useEnumId = false ;

Update the constant string for USE_ENUM_ID_CONF_KEY


<nb> public class ProjectTemplateWidget extends Composite
 VerticalPanel rightPanel = new VerticalPanel ( ) ;
 for ( int i = NUMBER0 ; i < n ; i ++ )
 {
 - String position = descriptions . get ( i ) . getPosition ( ) ;
 + String position = StringUtil . notNull ( descriptions . get ( i ) . getPosition ( ) ) ;
 Widget widget = widgets_ . get ( i ) ;
 - if ( STRING0 . equals ( position ) )
 + if ( STRING0 . equals ( position . toLowerCase ( ) ) )
 rightPanel . add ( widget ) ;
 else
 leftPanel . add ( widget ) ;


<nb> public class JavaRearranger implements Rearranger < JavaElementArrangementEntry > ,
 private static void and ( @ notnull List < StdArrangementMatchRule > matchRules , @ notnull ArrangementSettingsToken . . . conditions ) {
 if ( conditions . length == NUMBER0 ) {
 matchRules . add ( new StdArrangementMatchRule ( new StdArrangementEntryMatcher ( new ArrangementAtomMatchCondition (
 - conditions [ NUMBER1 ] , conditions [ NUMBER1 ]
 + conditions [ NUMBER1 ]
 ) ) ) ) ;
 return ;
 }

 ArrangementCompositeMatchCondition composite = new ArrangementCompositeMatchCondition ( ) ;
 for ( ArrangementSettingsToken condition : conditions ) {
 - composite . addOperand ( new ArrangementAtomMatchCondition ( condition , condition ) ) ;
 + composite . addOperand ( new ArrangementAtomMatchCondition ( condition ) ) ;
 }
 matchRules . add ( new StdArrangementMatchRule ( new StdArrangementEntryMatcher ( composite ) ) ) ;
 }


<nb> public class Inspect extends Request {
 if ( val . type ( ) == TypeMap . PRIM_B )
 return serveUnparsedValue ( val ) ;
 Iced f = val . get ( ) ;
 - if ( f instanceof ValueArray )
 - return serveValueArray ( ( ValueArray ) f ) ;
 + if ( f instanceof ValueArray ) {
 + ValueArray ary = ( ValueArray ) f ;
 + if ( ary . _cols . length == NUMBER0 && ary . _cols [ NUMBER1 ] . _name == null )
 + return serveUnparsedValue ( val ) ;
 + return serveValueArray ( ary ) ;
 + }
 if ( f instanceof GLMModel ) {
 GLMModel m = ( GLMModel ) f ;
 JsonObject res = new JsonObject ( ) ;