<nb> public class DropboxSynchronizerImpl implements ManagedService {
 COMMENT
 private static String downloadInterval = STRING0 ;

 - private static final List < String > DEFAULT_FILE_FILTER = Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 ) ;
 + private static final List < String > DEFAULT_FILE_FILTER = Arrays . asList ( STRING1 , STRING5 , STRING6 , STRING7 ) ;

 - COMMENT
 + COMMENT
 private static List < String > filterElements = DEFAULT_FILE_FILTER ;


<nb> public class ClusterEventServiceTest {
 }

 @ test
 + @ usingdataset ( loadStrategy = LoadStrategyEnum . DELETE_ALL )
 public void testRun ( ) throws Exception {
 DBObject event = new BasicDBObjectBuilder ( )
 . add ( STRING0 , STRING1 )

Add missing UsingDataSet annotation to ClusterEventServiceTest testRun


<nb> public class Counter implements Metric , Counting {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void dec ( long n ) {
 count . add ( - n ) ;


<nb> public abstract class Pipe implements IPipe , IDropControlInventory {
 SINGLE
 for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i )
 nbttagcompound . setBoolean ( STRING0 + i + STRING1 , broadcastSignal [ i ] ) ;
 + nbttagcompound . setBoolean ( STRING2 , broadcastRedstone ) ;
 }

 for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i )
 <nb> public abstract class Pipe implements IPipe , IDropControlInventory {
 }
 }
 SINGLE
 - if ( gate != null )
 + if ( gate != null ) {
 for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i )
 broadcastSignal [ i ] = nbttagcompound . getBoolean ( STRING0 + i + STRING1 ) ;
 + broadcastRedstone = nbttagcompound . getBoolean ( STRING2 ) ;
 + }

 for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i )
 wireSet [ i ] = nbttagcompound . getBoolean ( STRING3 + i + STRING1 ) ;

Added persistence for redstone broadcast


<nb> public class ApplicationConfiguration extends CoverageEnabledConfiguration imple
 ext . updateJavaParameters ( ApplicationConfiguration . this , params ) ;
 }

 - if ( isCoverageEnabled ( ) ) {
 + if ( ! ( getRunnerSettings ( ) . getData ( ) instanceof DebuggingRunnerData ) && isCoverageEnabled ( ) ) {
 final String coverageFileName = getCoverageFilePath ( ) ;
 final long lastCoverageTime = System . currentTimeMillis ( ) ;
 String name = getName ( ) ;
 <nb> public class ApplicationConfiguration extends CoverageEnabledConfiguration imple
 lastCoverageTime ,
 ! isMergeWithPreviousResults ( )
 ) ;
 - ApplicationConfiguration . this . appendCoverageArgument ( params ) ;
 + appendCoverageArgument ( params ) ;
 }

 return params ;

disable code coverage for debug sessions


<nb> public class Matchers {
 SINGLE

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


<nb> public final class JavassistProxyFactory
 {
 classPool = new ClassPool ( ) ;
 classPool . importPackage ( STRING0 ) ;
 - classPool . appendClassPath ( new LoaderClassPath ( this . getClass ( ) . getClassLoader ( ) ) ) ;
 + classPool . appendClassPath ( new LoaderClassPath ( ClassLoaderUtils . getClassLoader ( ) ) ) ;

 try
 {


<nb> public class WebView extends AbsoluteLayout
 SINGLE
 rebuildWebTextView ( ) ;
 SINGLE
 - return mWebTextView . onKeyDown ( keyCode , event ) ;
 + if ( inEditingMode ( ) ) {
 + return mWebTextView . onKeyDown ( keyCode , event ) ;
 + }
 } else if ( nativeHasFocusNode ( ) ) {
 SINGLE
 SINGLE

Fix a null pointer exception caught by the monkey


<nb> public class ShadowAlertDialog extends ShadowDialog {
 return Robolectric . getShadowApplication ( ) . getLatestAlertDialog ( ) ;
 }

 - @ override
 - @ implementation
 - public View findViewById ( int viewId ) {
 - return null ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT

ShadowAlertDialog uses default findViewById instead of always returning null


<nb>
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 -
 + SINGLE
 SINGLE

 COMMENT

Fixed the problem with unclear licensing


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

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

 COMMENT
 COMMENT
 <nb> public class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttribut

 public static RuntimeMXBeanAttributeHandler INSTANCE = new RuntimeMXBeanAttributeHandler ( ) ;

 + static final AttributeDefinition OBJECT_NAME = SimpleAttributeDefinitionBuilder . create ( PlatformMBeanConstants . OBJECT_NAME , ModelType . STRING )
 + . setStorageRuntime ( )
 + . build ( ) ;
 +
 private RuntimeMXBeanAttributeHandler ( ) {

 }
 <nb> public class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttribut
 protected void register ( ManagementResourceRegistration registration ) {

 if ( PlatformMBeanUtil . JVM_MAJOR_VERSION > NUMBER0 ) {
 - registration . registerReadOnlyAttribute ( PlatformMBeanConstants . OBJECT_NAME , this , AttributeAccess . Storage . RUNTIME ) ;
 + registration . registerReadOnlyAttribute ( OBJECT_NAME , this ) ;
 }

 for ( String attribute : PlatformMBeanConstants . RUNTIME_READ_ATTRIBUTES ) {


<nb> public class ShellSpout implements ISpout {

 LOG . error ( STRING0 , exception ) ;
 _collector . reportError ( exception ) ;
 + _process . destroy ( ) ;
 System . exit ( NUMBER0 ) ;
 }

kill subprocess when ShellSpout die called


<nb> public class DBCursorTest extends DatabaseTestCase {
 }

 @ test
 - public void testComment ( ) {
 + public void testSettingACommentInsertsCommentIntoProfileCollectionWhenProfilingIsTurnedOn ( ) {
 + SINGLE
 + database . command ( new BasicDBObject ( STRING0 , NUMBER0 ) ) ;
 + String expectedComment = STRING1 ;
 +
 + SINGLE
 DBCursor cursor = new DBCursor ( collection , new BasicDBObject ( ) , new BasicDBObject ( ) , ReadPreference . primary ( ) )
 - . addSpecial ( STRING2 , STRING1 ) ;
 + . comment ( expectedComment ) ;
 while ( cursor . hasNext ( ) ) {
 cursor . next ( ) ;
 }
 +
 + SINGLE
 + DBCollection profileCollection = database . getCollection ( STRING3 ) ;
 + assertEquals ( NUMBER1 , profileCollection . count ( ) ) ;
 + assertEquals ( expectedComment , ( ( DBObject ) profileCollection . findOne ( ) . get ( STRING4 ) ) . get ( STRING2 ) ) ;
 }

 @ test

Updated the test for query comments so that we can check it s really working


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

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

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


<nb> public class InputMethodsPanel extends LinearLayout implements StatusBarPanel ,

 private CharSequence getIMIName ( InputMethodInfo imi ) {
 if ( imi == null ) return null ;
 - return mPackageManager . getApplicationLabel ( imi . getServiceInfo ( ) . applicationInfo ) ;
 + return imi . loadLabel ( mPackageManager ) ;
 }

 private CharSequence getSubtypeName ( InputMethodInfo imi , InputMethodSubtype subtype ) {

Fix the display name in the input method panel on tablet


<nb> public class MessageList
 holder . chip . getBackground ( ) . setAlpha ( message . read ? NUMBER0 : NUMBER1 ) ;
 holder . subject . setTypeface ( null , message . read ? Typeface . NORMAL : Typeface . BOLD ) ;

 - int subjectColor = holder . from . getCurrentTextColor ( ) ; SINGLE
 -
 -
 -
 setVisibleWidgetsForListItem ( view , mSelectedWidget ) ;
 SINGLE
 holder . flagged . setTag ( ( Integer ) position ) ;
 <nb> public class MessageList
 view . getBackground ( ) . setAlpha ( NUMBER2 ) ;
 }

 - holder . subject . setTextColor ( NUMBER3 | subjectColor ) ;
 holder . subject . setText ( message . subject ) ;

 holder . from . setText ( message . sender ) ;

removed now unused subject coloring code


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class XsltConfigImpl extends XsltConfig implements PersistentStateComponent < Xslt

 try {
 SINGLE
 - ActionManager . getInstance ( ) . getAction ( STRING0 ) . setInjectedContext ( true ) ;
 + final AnAction introduceParameter = ActionManager . getInstance ( ) . getAction ( STRING0 ) ;
 + if ( introduceParameter != null ) {
 + introduceParameter . setInjectedContext ( true ) ;
 + }
 }
 catch ( Exception e ) {
 Logger . getInstance ( XsltConfigImpl . class . getName ( ) ) . error ( e ) ;


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class DispatcherHandlerErrorTests {

 WebExceptionHandler exceptionHandler = new ServerError500ExceptionHandler ( ) ;
 WebHandler webHandler = new ExceptionHandlingWebHandler ( this . dispatcherHandler , exceptionHandler ) ;
 - Mono < Void > publisher = webHandler . handle ( this . exchange ) ;
 -
 - TestSubscriber . subscribe ( publisher )
 - . assertErrorWith ( ex - > assertEquals (
 - HttpStatus . INTERNAL_SERVER_ERROR , this . exchange . getResponse ( ) . getStatusCode ( ) ) ) ;
 + webHandler . handle ( this . exchange ) . block ( Duration . ofSeconds ( NUMBER0 ) ) ;

 + assertEquals ( HttpStatus . INTERNAL_SERVER_ERROR , this . exchange . getResponse ( ) . getStatusCode ( ) ) ;
 }


<nb>
 SINGLE
 SINGLE
 SINGLE
 + SINGLE

 package NAMESPACE ;

 <nb> class ProxyThread implements Runnable {
 }
 msg . setResponseBody ( sb . toString ( ) ) ;
 msg . getResponseHeader ( ) . setHeader ( HttpHeader . CONTENT_ENCODING , null ) ;
 + msg . getResponseHeader ( ) . setHeader ( HttpHeader . CONTENT_LENGTH , Integer . toString ( sb . length ( ) ) ) ;
 } catch ( IOException e ) {
 log . error ( STRING0 + e . getMessage ( ) , e ) ;
 }

Proxy gzip decoder doesn t update content length in response headers


<nb> public class CountAggregation
 return ;
 }

 - SINGLE
 - if ( SINGLE_LONG . isNull ( valueSlice , valueOffset , NUMBER0 ) ) {
 - valueSlice . clear ( valueOffset , SINGLE_LONG . getFixedSize ( ) ) ;
 - }
 -
 SINGLE
 long currentValue = SINGLE_LONG . getLong ( valueSlice , valueOffset , NUMBER0 ) ;
 long newValue = cursor . getLong ( NUMBER0 ) ;

Remove unnecessary clear in count aggregation


<nb> public class EViewGroupProcessor extends AnnotationHelper implements ElementProc
 }

 holder . eBean = codeModel . _class ( modifiers , generatedBeanQualifiedName , ClassType . CLASS ) ;
 -
 JClass eBeanClass = codeModel . directClass ( eBeanQualifiedName ) ;

 holder . eBean . _extends ( eBeanClass ) ;

 holder . eBean . annotate ( SuppressWarnings . class ) . param ( STRING0 , STRING1 ) ;
 + holder . eBean . javadoc ( ) . append ( SINGLE
 + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING5 ) ;

 {
 SINGLE


<nb> public class IncomingStreamReader
 {
 long toRead = Math . min ( FileStreamTask . CHUNK_SIZE , length - bytesRead ) ;
 long lastRead = fc . transferFrom ( socketChannel , offset + bytesRead , toRead ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + if ( lastRead == NUMBER0 )
 + throw new IOException ( STRING0 + remoteFile ) ;
 bytesRead += lastRead ;
 remoteFile . progress += lastRead ;
 }

Better detect failure during streaming always cleaning up tmp files as a consequence


<nb> public class BootReceiver extends BroadcastReceiver {
 SINGLE
 Intent xInstallerIntent = context . getPackageManager ( ) . getLaunchIntentForPackage (
 STRING0 ) ;
 - xInstallerIntent . putExtra ( STRING1 , NUMBER0 ) ;
 + if ( xInstallerIntent != null )
 + xInstallerIntent . putExtra ( STRING1 , NUMBER0 ) ;

 PendingIntent pi = ( xInstallerIntent == null ? null : PendingIntent . getActivity ( context , NUMBER1 ,
 xInstallerIntent , PendingIntent . FLAG_UPDATE_CURRENT ) ) ;


<nb> public final class SleepingTimer implements HeartbeatTimer {
 COMMENT
 COMMENT
 public void tick ( ) throws InterruptedException {
 - long currentTickMs = System . currentTimeMillis ( ) ;
 - long executionTimeMs = currentTickMs - mPreviousTickMs ;
 - if ( executionTimeMs > mIntervalMs ) {
 + long executionTimeMs = System . currentTimeMillis ( ) - mPreviousTickMs ;
 + if ( mPreviousTickMs != NUMBER0 && executionTimeMs > mIntervalMs ) {
 LOG . warn ( mThreadName + STRING0 + executionTimeMs
 + STRING1 + mIntervalMs ) ;
 } else {
 Thread . sleep ( mIntervalMs - executionTimeMs ) ;
 }
 - mPreviousTickMs = currentTickMs ;
 + mPreviousTickMs = System . currentTimeMillis ( ) ;
 }
 }

Fixing interval computation in SleepingTimer


<nb> public final class Futures {
 }
 }
 }
 -
 }

 COMMENT

Remove the callAllGets feature of CombinedFuture


<nb> public class Common implements Comparator < File > , Runnable , OnClickListener , OnLo
 int first = lv . getFirstVisiblePosition ( ) ;
 int last = lv . getLastVisiblePosition ( ) ;

 - AQUtility . debug ( first , last ) ;
 + SINGLE

 int count = last - first ;

 <nb> public class Common implements Comparator < File > , Runnable , OnClickListener , OnLo
 View convertView = lv . getChildAt ( i ) ;
 Number targetPacked = ( Number ) convertView . getTag ( AQuery . TAG_NUM ) ;

 - AQUtility . debug ( STRING0 , targetPacked ) ;
 + SINGLE

 SINGLE
 if ( targetPacked != null ) {
 la . getView ( ( int ) packed , convertView , lv ) ;
 convertView . setTag ( AQuery . TAG_NUM , null ) ;
 } else {
 - AQUtility . debug ( STRING1 ) ;
 + SINGLE
 }

 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BytecodeAnalysisIndex extends FileBasedIndexExtension < Bytes , HEquat
 private static final HKeyDescriptor KEY_DESCRIPTOR = new HKeyDescriptor ( ) ;

 private static final int ourInternalVersion = NUMBER0 ;
 - private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , isEnabledByDefault ( ) ) ;
 -
 - private static boolean isEnabledByDefault ( ) {
 - Application application = ApplicationManager . getApplication ( ) ;
 - return application . isInternal ( ) || application . isUnitTestMode ( ) ;
 - }
 + private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , true ) ;

 @ notnull
 @ override


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class EWMA {
 private static final double M1_ALPHA = NUMBER0 - exp ( - NUMBER1 / FLOAT0 ) ;


<nb> public class AccountManagerService
 if ( account == null ) throw new IllegalArgumentException ( STRING0 ) ;
 checkManageAccountsPermission ( ) ;
 long identityToken = clearCallingIdentity ( ) ;
 +
 + cancelNotification ( getSigninRequiredNotificationId ( account ) ) ;
 + synchronized ( mCredentialsPermissionNotificationIds ) {
 + for ( Pair < Pair < Account , String > , Integer > pair :
 + mCredentialsPermissionNotificationIds . keySet ( ) ) {
 + if ( account . equals ( pair . first . first ) ) {
 + int id = mCredentialsPermissionNotificationIds . get ( pair ) ;
 + cancelNotification ( id ) ;
 + }
 + }
 + }
 +
 try {
 new RemoveAccountSession ( response , account ) . bind ( ) ;
 } finally {

Remove notifications for account when account is removed


<nb> public class DataStructures {
 private static Integer [ ] unsorted = null ;
 private static String string = null ;

 - private static int debug = NUMBER0 ; SINGLE
 + private static int debug = NUMBER1 ; SINGLE
 private static boolean debugTime = true ; SINGLE
 private static boolean debugMemory = true ; SINGLE
 private static boolean validateStructure = true ; SINGLE
 - private static boolean validateContents = false ; SINGLE
 + private static boolean validateContents = true ; SINGLE

 private static final int TESTS = NUMBER2 ; SINGLE
 private static int test = NUMBER0 ;


<nb> public class RepoLoader {
 private final List < String > mMessages = new LinkedList < String > ( ) ;
 private final List < RepoListener > mListeners = new CopyOnWriteArrayList < RepoListener > ( ) ;

 - private RepoLoader ( ) { }
 + private RepoLoader ( Application app ) {
 + mApp = app ;
 + mPref = mApp . getSharedPreferences ( STRING0 , Context . MODE_PRIVATE ) ;
 + triggerReload ( ) ;
 + }

 COMMENT
 public static void init ( Application app ) {
 if ( mInstance != null )
 throw new IllegalStateException ( STRING1 ) ;

 - mInstance = new RepoLoader ( ) ;
 - mInstance . mApp = app ;
 - mInstance . mPref = app . getSharedPreferences ( STRING0 , Context . MODE_PRIVATE ) ;
 - mInstance . triggerReload ( ) ;
 + mInstance = new RepoLoader ( app ) ;
 }

 public static RepoLoader getInstance ( ) {


<nb> public class ReactWebViewManager extends SimpleViewManager < WebView > {

 static {
 if ( ReactBuildConfig . DEBUG && Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) {
 - WebView . setWebContentsDebuggingEnabled ( true ) ;
 + SINGLE
 + SINGLE
 }
 }


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


<nb> public final class Preconditions {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static void checkArgument (
 + boolean expression , @ nullable String errorMessageTemplate , int arg0 ) {
 + if ( ! expression ) {
 + com . google . common . base . Preconditions . checkArgument ( false , errorMessageTemplate , arg0 ) ;
 + }
 + }
 +
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add variant of Preconditions checkArgument that takes int placeholder


<nb> public abstract class Slf4jNoBindingDetector {
 } catch ( ClassNotFoundException e ) {
 System . err . println (
 STRING0 + System . lineSeparator ( )
 - + STRING1
 + + STRING1 + System . lineSeparator ( )
 + + STRING2
 ) ;
 return false ;
 }


<nb> public class PlanGenerator {
 PackedCoordinateSequence coordinates = profileSegment . getElevationProfile ( ) ;

 if ( coordinates == null ) continue ;
 + SINGLE
 if ( coordinates . getDimension ( ) != NUMBER0 ) continue ;

 for ( int i = NUMBER1 ; i < coordinates . size ( ) - NUMBER2 ; i ++ ) {

Add TODO comment in spurrious tests to check


<nb> public final class TvInputManagerService extends SystemService {
 SINGLE
 UserState userState = getUserStateLocked ( mUserId ) ;
 for ( SessionState sessionState : userState . sessionStateMap . values ( ) ) {
 - if ( mSession != null && mSession == sessionState . mHardwareSessionToken ) {
 + if ( mSessionToken == sessionState . mHardwareSessionToken ) {
 try {
 sessionState . mSession . release ( ) ;
 } catch ( RemoteException e ) {

Fix release logic for hardware wrapper input


<nb> package NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class WebApplicationExceptionMapper implements ExtendedExceptionMapper < We

 @ override
 public Response toResponse ( WebApplicationException exception ) {
 - return Response . fromResponse ( exception . getResponse ( ) ) . entity ( exception . getMessage ( ) ) . build ( ) ;
 + return Response . fromResponse ( exception . getResponse ( ) ) . type ( MediaType . TEXT_PLAIN_TYPE ) . entity ( exception . getMessage ( ) ) . build ( ) ;
 }
 }

Setting Content Type for exceptions to text plain for now


<nb> public class SiteNode extends DefaultMutableTreeNode {
 SINGLE
 if ( ! this . icons . isEmpty ( ) && historyReference . getHistoryType ( ) == HistoryReference . TYPE_MANUAL ) {
 for ( int i = NUMBER0 ; i < this . clearIfManual . size ( ) ; ++ i ) {
 - if ( this . clearIfManual . get ( i ) == true && this . icons . size ( ) > i ) {
 + if ( this . clearIfManual . get ( i ) && this . icons . size ( ) > i ) {
 this . icons . remove ( i ) ;
 this . clearIfManual . remove ( i ) ;
 }


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

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class OneOfProviderFactory {
 public OneOfProviderFactory ( ) {
 }

 - public void register ( String name , Binding < ? > binding ) {
 + public < T > void register ( String name , Binding < List < T > > binding ) {
 register ( name , binding , null ) ;
 }

 - public void register ( String name , Binding < ? > binding , ItemRenderer < ? > itemRenderer ) {
 + public < T > void register ( String name , Binding < List < T > > binding , ItemRenderer < T > itemRenderer ) {
 provider . put ( name , binding ) ;
 itemRenderers . put ( name , itemRenderer ) ;
 }


<nb> public class FloatingActionButton extends ImageButton {
 @ suppresslint ( STRING0 )
 private void setBackgroundCompat ( Drawable drawable ) {
 if ( hasLollipopApi ( ) ) {
 - setElevation ( mShadow ? getDimension ( R . dimen . fab_elevation_lollipop ) : FLOAT0 ) ;
 + float elevation ;
 + if ( mShadow ) {
 + elevation = getElevation ( ) > FLOAT0 ? getElevation ( )
 + : getDimension ( R . dimen . fab_elevation_lollipop ) ;
 + } else {
 + elevation = FLOAT0 ;
 + }
 + setElevation ( elevation ) ;
 RippleDrawable rippleDrawable = new RippleDrawable ( new ColorStateList ( new int [ ] [ ] { { } } ,
 new int [ ] { mColorRipple } ) , drawable , null ) ;
 setOutlineProvider ( new ViewOutlineProvider ( ) {


<nb> public class ZWaveNode {
 @ xstreamomitfield
 private ZWaveNodeStageAdvancer nodeStageAdvancer ;

 - private int homeId ;
 - private int nodeId ;
 + @ xstreamconverter ( HexToIntegerConverter . class )
 + private int homeId = Integer . MAX_VALUE ;
 + private int nodeId = Integer . MAX_VALUE ;
 private int version = Integer . MAX_VALUE ;

 private String name ;
 private String location ;
 -
 +
 @ xstreamconverter ( HexToIntegerConverter . class )
 private int manufacturer = Integer . MAX_VALUE ;
 @ xstreamconverter ( HexToIntegerConverter . class )

Write homeID as hex to avoid negative integers


<nb> public class ChunkOutputUi
 public final static int CHUNK_COLLAPSED_HEIGHT = NUMBER0 ;
 public final static int MAX_CHUNK_HEIGHT = NUMBER1 ;

 - public final static int MAX_PLOT_WIDTH = NUMBER1 ;
 + public final static int MIN_PLOT_WIDTH = NUMBER2 ;
 + public final static int MAX_PLOT_WIDTH = NUMBER3 ;
 public final static int MAX_HTMLWIDGET_WIDTH = NUMBER4 ;

 public final static double OUTPUT_ASPECT = FLOAT0 ;
 <nb> public class TextEditingTargetNotebook
 SINGLE
 SINGLE
 SINGLE
 - return Math . min ( docDisplay_ . getPixelWidth ( ) - NUMBER5 ,
 + return Math . min ( Math . max ( docDisplay_ . getPixelWidth ( ) - NUMBER5 ,
 + ChunkOutputUi . MIN_PLOT_WIDTH ) ,
 ChunkOutputUi . MAX_PLOT_WIDTH ) ;
 }

apply floor to rendered notebook plot size reduce figure margin errors


<nb> public class PyPackageRequirementsInspection extends PyInspection {
 }
 }
 registerProblem ( packageReferenceExpression , String . format ( STRING0 , packageName ) ,
 - ProblemHighlightType . GENERIC_ERROR_OR_WARNING , null ,
 + ProblemHighlightType . WEAK_WARNING , null ,
 new AddToRequirementsFix ( module , packageName , LanguageLevel . forElement ( importedExpression ) ) ,
 new IgnoreRequirementFix ( Collections . singleton ( packageName ) ) ) ;
 }

Changed problem highlighting of unspecified package requirement to weak warning


<nb> public class RexsterTitanServer {
 Preconditions . checkNotNull ( rexsterConfig ) ;
 Preconditions . checkNotNull ( titanConfig ) ;

 - SINGLE
 - if ( ! rexsterConfig . subset ( STRING0 ) . getKeys ( ) . hasNext ( ) ) {
 - rexsterConfig . addProperty ( STRING1 , STRING2 ) ;
 - }
 -
 server = new RexProRexsterServer ( rexsterConfig ) ;
 this . rexsterConfig = rexsterConfig ;
 this . titanConfig = titanConfig ;

Removed code that formerly prevented errors if rexster xml did not have security configured


<nb> public class CombinerNode extends OptimizerNode {
 @ override
 public void deriveOutputSchema ( ) {
 SINGLE
 - SINGLE
 }

 }

removed unnecessary TODO flag in CombinerNode


<nb> import NAMESPACE ;

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

 import NAMESPACE ;


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 mPendingCheckForTap = new CheckForTap ( ) ;
 }
 mPrivateFlags |= PREPRESSED ;
 + mHasPerformedLongPress = false ;
 postDelayed ( mPendingCheckForTap , ViewConfiguration . getTapTimeout ( ) ) ;
 break ;


<nb>
 package NAMESPACE ;

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

 <nb> import NAMESPACE ;
 ) }
 )
 public class CompilerWorkspaceConfiguration implements PersistentStateComponent < CompilerWorkspaceConfiguration > {
 + private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
 +
 public static final int DEFAULT_COMPILE_PROCESS_HEAP_SIZE = NUMBER0 ;
 public static final String DEFAULT_COMPILE_PROCESS_VM_OPTIONS = STRING1 ;
 private static final int CORES_COUNT = Runtime . getRuntime ( ) . availableProcessors ( ) ;
 + static {
 + LOG . info ( STRING2 + CORES_COUNT ) ;
 + }

 public boolean AUTO_SHOW_ERRORS_IN_EDITOR = true ;
 @ deprecated public boolean CLOSE_MESSAGE_VIEW_IF_SUCCESS = true ;


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 - import NAMESPACE ;

 import static NAMESPACE ;


<nb> public class FloatingActionButton extends ImageButton {
 if ( ! hasLollipopApi ( ) && ! mMarginsSet ) {
 if ( getLayoutParams ( ) instanceof ViewGroup . MarginLayoutParams ) {
 ViewGroup . MarginLayoutParams layoutParams = ( ViewGroup . MarginLayoutParams ) getLayoutParams ( ) ;
 - int leftMargin = Math . max ( layoutParams . leftMargin - mShadowSize , NUMBER0 ) ;
 - int topMargin = Math . max ( layoutParams . topMargin - mShadowSize , NUMBER0 ) ;
 - int rightMargin = Math . max ( layoutParams . rightMargin - mShadowSize , NUMBER0 ) ;
 - int bottomMargin = Math . max ( layoutParams . bottomMargin - mShadowSize , NUMBER0 ) ;
 + int leftMargin = layoutParams . leftMargin - mShadowSize ;
 + int topMargin = layoutParams . topMargin - mShadowSize ;
 + int rightMargin = layoutParams . rightMargin - mShadowSize ;
 + int bottomMargin = layoutParams . bottomMargin - mShadowSize ;
 layoutParams . setMargins ( leftMargin , topMargin , rightMargin , bottomMargin ) ;

 setLayoutParams ( layoutParams ) ;


<nb> public class DribbbleSearch {
 . setTitle ( descriptionBlock . select ( STRING0 ) . first ( ) . text ( ) )
 . setDescription ( description )
 . setImages ( new Images ( null , imgUrl , null ) )
 + . setAnimated ( element . select ( STRING1 ) . first ( ) != null )
 . setCreatedAt ( createdAt )
 . setLikesCount ( Long . parseLong ( element . select ( STRING2 ) . first ( ) . child ( NUMBER0 ) . text ( )
 . replaceAll ( STRING3 , STRING4 ) ) )


<nb> public class APTCodeModelHelper {
 if ( bound == null ) {
 bound = wildcardType . getSuperBound ( ) ;
 if ( bound == null ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 + return holder . classes ( ) . OBJECT . wildcard ( ) ;
 }
 return superWildcard ( typeMirrorToJClass ( bound , holder ) ) ;
 }
 <nb> public class APTCodeModelHelper {
 JMethod method = holder . getGeneratedClass ( ) . method ( JMod . PUBLIC , returnType , methodName ) ;
 method . annotate ( Override . class ) ;

 - System . out . println ( executableType . getTypeVariables ( ) ) ;
 for ( TypeVariable typeParameter : executableType . getTypeVariables ( ) ) {
 TypeMirror bound = typeParameter . getUpperBound ( ) ;
 JClass jClassBounds = typeMirrorToJClass ( bound , holder ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class FacetBasedFrameworkDetector < F extends Facet , C extends FacetConfiguration > extends FrameworkDetector {
 - public FacetBasedFrameworkDetector ( String detectorId ) {
 + protected FacetBasedFrameworkDetector ( String detectorId ) {
 super ( detectorId ) ;
 }

 + protected FacetBasedFrameworkDetector ( @ notnull String detectorId , int detectorVersion ) {
 + super ( detectorId , detectorVersion ) ;
 + }
 +
 public abstract FacetType < F , C > getFacetType ( ) ;

 COMMENT


<nb> public static Object compile ( Reader rdr , String sourcePath , String sourceName ) t
 null ,
 cv ) ;
 maingen . visitCode ( ) ;
 + maingen . push ( fn . internalName ) ;
 + maingen . push ( true ) ;
 + maingen . invokeStatic ( RT_TYPE , Method . getMethod ( STRING0 ) ) ;
 maingen . push ( fn . internalName . replace ( STRING1 , STRING2 ) ) ;
 maingen . push ( STRING3 ) ;
 maingen . invokeStatic ( RT_TYPE , Method . getMethod ( STRING4 ) ) ;


<nb> class IonDrawable extends Drawable {
 private WeakReference < IonDrawable > ionDrawableRef ;
 private WeakReference < ImageView > imageViewRef ;
 private String bitmapKey ;
 - private String parentKey ;
 private SimpleFuture < ImageView > imageViewFuture = new SimpleFuture < ImageView > ( ) ;
 private Animation inAnimation ;
 private int inAnimationResource ;


<nb> public class LocalSearch implements SearchSpecification {
 COMMENT
 COMMENT
 public String getName ( ) {
 - return mName ;
 + return ( mName == null ? STRING0 : mName ) ;
 }

 COMMENT


<nb> public abstract class GwtApplication implements EntryPoint , Application {
 public void run ( ) {
 if ( SoundManager . ok ( ) ) {
 final PreloaderCallback callback = getPreloaderCallback ( ) ;
 - preloader = new Preloader ( ) ;
 + preloader = createPreloader ( ) ;
 preloader . preload ( STRING0 , new PreloaderCallback ( ) {
 @ override
 public void error ( String file ) {
 <nb> public abstract class GwtApplication implements EntryPoint , Application {

 long loadStart = TimeUtils . nanoTime ( ) ;

 + public Preloader createPreloader ( ) {
 + return new Preloader ( ) ;
 + }
 +
 public PreloaderCallback getPreloaderCallback ( ) {
 final Panel preloaderPanel = new VerticalPanel ( ) ;
 preloaderPanel . setStyleName ( STRING1 ) ;

Add ability to provide a custom Preloader


<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
 do {
 OChannelBinaryAsynchClient network = null ;
 String serverUrl = getNextAvailableServerURL ( false , session ) ;
 - try {
 - network = getNetwork ( serverUrl ) ;
 - } catch ( OException e ) {
 - serverUrl = useNewServerURL ( serverUrl ) ;
 - if ( serverUrl == null )
 - throw e ;
 - }
 + do {
 + try {
 + network = getNetwork ( serverUrl ) ;
 + } catch ( OException e ) {
 + serverUrl = useNewServerURL ( serverUrl ) ;
 + if ( serverUrl == null )
 + throw e ;
 + }
 + } while ( network == null ) ;

 try {
 SINGLE

fixed retry in case of an offline server


<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea
 return q ;
 }

 + SINGLE
 + @ override public void delete ( ) {
 + delete_xval_models ( ) ;
 + delete_best_model ( ) ;
 + super . delete ( ) ;
 + }
 +
 SINGLE
 private void putMeAsBestModel ( Key bestModelKey ) {
 DeepLearningModel bestModel = new DeepLearningModel ( bestModelKey , this , true , model_info ( ) . data_info ( ) ) ;

For now let model delete of DL delete its best models too


<nb> public class AnnotationsToHTML implements GraphBuilderModule {
 while ( currentCount <= htmlAnnotationClass . getCount ( ) ) {
 label = label_name + currentCount ;
 if ( label . equals ( annotationClassName ) ) {
 - println ( STRING0 + label + STRING1 ) ;
 + println ( String . format ( STRING2 ,
 + label_name . toLowerCase ( ) , label ) ) ;
 } else {
 - println ( STRING3 + label + STRING4 + label + STRING5 ) ;
 + println ( String . format ( STRING6 ,
 + label_name . toLowerCase ( ) , label , label ) ) ;
 }
 currentCount ++ ;
 }

Make nicer list of files in HTML annotations


<nb> public class DataInfo extends Keyed {
 }
 SINGLE
 for ( int cid = NUMBER0 ; cid < _nums ; ++ cid ) {
 - Chunk c = chunks [ _cats + _nums + cid ] ;
 + Chunk c = chunks [ _cats + cid ] ;
 for ( int r = c . nextNZ ( - NUMBER1 ) ; r < c . _len ; r = c . nextNZ ( r ) ) {
 Row row = rows [ r ] ;
 if ( c . isNA ( r ) ) row . good = _skipMissing ;

Fix AIOOB in DataInfo sparse row extraction


<nb> public class EncodedArrayPool {

 @ nullable
 public static Key of ( @ nonnull ClassDef classDef ) {
 - Set < ? extends Field > staticFields = FluentIterable . from ( classDef . getFields ( ) ) . filter ( IS_STATIC_FIELD ) . toSet ( ) ;
 - Iterable < ? extends Field > staticFieldsSorted = FluentIterable . from ( staticFields ) . toSortedSet ( new FieldComparator ( ) ) ;
 + Set < ? extends Field > staticFieldsSorted = FluentIterable . from ( classDef . getFields ( ) )
 + . filter ( IS_STATIC_FIELD )
 + . toSortedSet ( new FieldComparator ( ) ) ;

 int lastIndex = CollectionUtils . lastIndexOf ( staticFieldsSorted , HAS_INITIALIZER ) ;
 if ( lastIndex > - NUMBER0 ) {
 - return new Key ( staticFields , lastIndex + NUMBER0 ) ;
 + return new Key ( staticFieldsSorted , lastIndex + NUMBER0 ) ;
 }
 return null ;
 }

Using sorted static field set in EncodedArrayPool Key


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


<nb> public abstract class LeafElement extends TreeElement {
 public abstract int copyTo ( char [ ] buffer , int start ) ;

 protected LeafElement ( IElementType type ) {
 - myState = myState | type . getIndex ( ) ;
 + myState = type != null ? type . getIndex ( ) : NUMBER0 ;
 }

 public final LeafElement findLeafElementAt ( int offset ) {


<nb> static class RecurExpr implements Expr {
 IPersistentVector loopLocals = ( IPersistentVector ) LOOP_LOCALS . get ( ) ;
 if ( context != C . RETURN || loopLocals == null )
 throw new UnsupportedOperationException ( STRING0 ) ;
 + if ( IN_CATCH_FINALLY . get ( ) != null )
 + throw new UnsupportedOperationException ( STRING1 ) ;
 PersistentVector args = PersistentVector . EMPTY ;
 for ( ISeq s = RT . seq ( form . rest ( ) ) ; s != null ; s = s . rest ( ) )
 {


<nb> public class ParticleEmitter {

 updateFlags = NUMBER0 ;
 if ( angleValue . active && angleValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_ANGLE ;
 - if ( velocityValue . active && velocityValue . active ) updateFlags |= UPDATE_VELOCITY ;
 + if ( velocityValue . active ) updateFlags |= UPDATE_VELOCITY ;
 if ( scaleValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_SCALE ;
 if ( rotationValue . active && rotationValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_ROTATION ;
 if ( windValue . active ) updateFlags |= UPDATE_WIND ;


<nb> public interface LoadingCache < K , V > extends Cache < K , V > , Function < K , V > {
 ImmutableMap < K , V > getAll ( Iterable < ? extends K > keys ) throws ExecutionException ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + @ deprecated
 @ override
 V apply ( K key ) ;

Deprecate implementations of Function apply that should never be invoked directly


<nb> public class GifDrawable extends Drawable implements Animatable
 @ override
 public String toString ( )
 {
 - return String . format ( Locale . US , STRING0 , mMetaData [ NUMBER0 ] , mMetaData [ NUMBER1 ] , mMetaData [ NUMBER2 ] ) ;
 + return String . format ( Locale . US , STRING1 , mMetaData [ NUMBER2 ] , mMetaData [ NUMBER0 ] , mMetaData [ NUMBER1 ] , mMetaData [ NUMBER3 ] ) ;
 }

 COMMENT


<nb> public class AnnotationSetItem extends Item < AnnotationSetItem > {
 COMMENT
 COMMENT
 public static AnnotationSetItem internAnnotationSetItem ( DexFile dexFile , List < AnnotationItem > annotations ) {
 - AnnotationItem [ ] annotationsArray = new AnnotationItem [ annotations . size ( ) ] ;
 - annotations . toArray ( annotationsArray ) ;
 - AnnotationSetItem annotationSetItem = new AnnotationSetItem ( dexFile , annotationsArray ) ;
 + AnnotationSetItem annotationSetItem ;
 + if ( annotations == null ) {
 + annotationSetItem = new AnnotationSetItem ( dexFile , new AnnotationItem [ NUMBER0 ] ) ;
 + } else {
 + AnnotationItem [ ] annotationsArray = new AnnotationItem [ annotations . size ( ) ] ;
 + annotations . toArray ( annotationsArray ) ;
 + annotationSetItem = new AnnotationSetItem ( dexFile , annotationsArray ) ;
 + }
 return dexFile . AnnotationSetsSection . intern ( annotationSetItem ) ;
 }

Fix an issue when assembling a file with blank annotation sets


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ChunkSpeedTest extends TestUtil {
 final double [ ] [ ] raw = new double [ cols ] [ rows ] ;
 Chunk [ ] chunks = new Chunk [ cols ] ;

 + @ ignore
 @ test
 public void run ( ) {
 for ( int j = NUMBER0 ; j < cols ; ++ j ) {


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

 import NAMESPACE ;
 <nb> public class SpongePlayer extends AbstractPlayerActor {
 @ override
 public void printRaw ( String msg ) {
 for ( String part : msg . split ( STRING0 ) ) {
 - this . player . sendMessage ( Text . of ( part ) ) ;
 + this . player . sendMessage ( TextSerializers . LEGACY_FORMATTING_CODE . deserialize ( part ) ) ;
 }
 }

Corrected some issues with sending raw messages on the Sponge platform


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

 - public class ClassDependencyInfo implements Serializable {
 + public class ClassDependencyInfo implements Serializable { SINGLE

 private final Map < String , ? extends DependentsSet > dependents ;


<nb> final class PersistFS extends Persist {
 PersistFS ( File root ) {
 _root = root ;
 _dir = new File ( root , STRING0 + H2O . API_PORT ) ;
 - deleteRecursive ( _dir ) ;
 + SINGLE
 SINGLE
 root . mkdirs ( ) ;
 if ( ! ( root . isDirectory ( ) && root . canRead ( ) && root . canWrite ( ) ) )

Revert Re enable ice dir cleanup on startup


<nb> public class CountDownLatchTest extends HazelcastTestSupport {
 }

 @ test
 - public void testAwait_whenInstanceShutdown_thenLatchOpened ( ) throws InterruptedException {
 + public void testAwait_whenInstanceShutdown_thenHazelcastInstanceNotActiveException ( ) throws InterruptedException {
 HazelcastInstance instance = createHazelcastInstance ( ) ;
 final ICountDownLatch latch = instance . getCountDownLatch ( randomString ( ) ) ;
 latch . trySetCount ( NUMBER0 ) ;


<nb> public abstract class MultithreadEventLoop extends MultithreadEventExecutor impl
 }

 @ override
 - protected abstract EventExecutor newChild ( ThreadFactory threadFactory , Object . . . args ) throws Exception ;
 -
 - @ override
 public ChannelFuture register ( Channel channel ) {
 return ( ( EventLoop ) unsafe ( ) . nextChild ( ) ) . register ( channel ) ;
 }


<nb> public class ExtractorSampleSource implements SampleSource , ExtractorOutput , Loa
 loader . cancelLoading ( ) ;
 } else {
 clearState ( ) ;
 + bufferPool . trim ( NUMBER0 ) ;
 }
 }
 }
 <nb> public class ExtractorSampleSource implements SampleSource , ExtractorOutput , Loa
 restartFrom ( pendingResetPositionUs ) ;
 } else {
 clearState ( ) ;
 + bufferPool . trim ( NUMBER0 ) ;
 }
 }

Trim memory when disabling ExtractorSampleSource


<nb> import NAMESPACE ;
 class FetchTargetNodeToBuildRuleTransformer implements TargetNodeToBuildRuleTransformer {

 private final ImmutableSet < Description < ? > > descriptions ;
 - SINGLE
 + SINGLE
 private final ImmutableSet . Builder < BuildTarget > downloadableTargets ;
 private final DefaultTargetNodeToBuildRuleTransformer delegate ;


<nb> public class GraphServiceImpl implements GraphService {
 LOG . warn ( STRING0 ) ;
 return null ;
 } else {
 - String fileName = pathPattern . replace ( STRING1 , routerId ) ;
 - return new File ( fileName . concat ( STRING2 ) ) ;
 + String path = pathPattern . replace ( STRING1 , routerId ) ;
 + return new File ( path , STRING3 ) ;
 }
 }

use clearer File constructor change identifiers


<nb> public abstract class BaseStatusBar extends SystemUI implements
 settingsButton . setVisibility ( View . GONE ) ;
 }

 + guts . bindImportance ( pmUser , sbn , row , mNotificationData . getImportance ( sbn . getKey ( ) ) ) ;
 row . findViewById ( R . id . done ) . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View v ) {
 <nb> public abstract class BaseStatusBar extends SystemUI implements
 }
 }
 } ) ;
 - guts . bindImportance ( pmUser , sbn , row , mNotificationData . getImportance ( sbn . getKey ( ) ) ) ;
 }

 private void saveImportanceCloseControls ( StatusBarNotification sbn ,

Don t reference variables before they are assigned


<nb> public class ReaderPostListFragment extends Fragment
 getPostAdapter ( ) . setCurrentTag ( tagName ) ;
 hideNewPostsBar ( ) ;
 updateTagPreviewHeader ( ) ;
 + hideLoadingProgress ( ) ;

 SINGLE
 if ( ReaderTagTable . shouldAutoUpdateTag ( tagName ) ) {

Fixed bug that caused loading progress to continue to show at bottom left of the screen after switching tags


<nb> public class ScatterData {

 public long getOldestAcceptedTime ( ) {
 + if ( oldestAcceptedTime == Long . MAX_VALUE ) {
 + return - NUMBER0 ;
 + }
 return oldestAcceptedTime ;
 }

 public long getLatestAcceptedTime ( ) {
 + if ( latestAcceptedTime == Long . MIN_VALUE ) {
 + return - NUMBER0 ;
 + }
 return latestAcceptedTime ;
 }

Add method that get scatter data made of dot group


<nb> public final class Trace {
 public static final long TRACE_TAG_APP = NUMBER0 < < NUMBER1 ;
 COMMENT
 public static final long TRACE_TAG_RESOURCES = NUMBER0 < < NUMBER2 ;
 + COMMENT
 + public static final long TRACE_TAG_DALVIK = NUMBER0 < < NUMBER3 ;

 private static final long TRACE_TAG_NOT_READY = NUMBER0 < < NUMBER4 ;
 private static final int MAX_SECTION_NAME_LEN = NUMBER5 ;


<nb> public class SchemaMetadataBase < I extends SchemaMetadata , S extends SchemaMetada
 COMMENT
 COMMENT
 COMMENT
 - public AutoBuffer writeJSON_impl ( AutoBuffer ab ) {
 -
 + public final AutoBuffer writeJSON_impl ( AutoBuffer ab ) {
 ab . putJSONStr ( STRING0 , name ) ; ab . put1 ( STRING1 ) ;
 ab . putJSONStr ( STRING2 , type ) ; ab . put1 ( STRING1 ) ;
 ab . putJSONStrUnquoted ( STRING3 , is_schema ? STRING4 : STRING5 ) ; ab . put1 ( STRING1 ) ;

Fixed custom json serialization declaration needs to be final or static


<nb> final class CameraConfigurationManager {
 if ( supportedPreviewFpsRanges != null && ! supportedPreviewFpsRanges . isEmpty ( ) ) {
 int [ ] minimumSuitableFpsRange = null ;
 for ( int [ ] fpsRange : supportedPreviewFpsRanges ) {
 - if ( fpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] >= MIN_FPS * NUMBER0 ) {
 + int fpsMax = fpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] ;
 + if ( fpsMax >= MIN_FPS * NUMBER0 &&
 + ( minimumSuitableFpsRange == null ||
 + fpsMax > minimumSuitableFpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] ) ) {
 minimumSuitableFpsRange = fpsRange ;
 - break ;
 }
 }
 if ( minimumSuitableFpsRange == null ) {

extra defensive don t even assume the list is sorted in case of buggy phones


<nb> public final class DtoConverter {
 . withId ( machine . getId ( ) )
 . withStatus ( machine . getStatus ( ) )
 . withOwner ( machine . getOwner ( ) )
 + . withEnvName ( machine . getEnvName ( ) )
 . withWorkspaceId ( machine . getWorkspaceId ( ) ) ;
 if ( machine . getRuntime ( ) != null ) {
 machineDto . withRuntime ( asDto ( machine . getRuntime ( ) ) ) ;

Fix output of creating new machine in existed workspace


<nb> public class EpisodeToolsTest {
 assertThat ( EpisodeTools . isWatched ( EpisodeFlags . UNWATCHED ) ) . isFalse ( ) ;
 }

 + @ test
 public void test_isUnwatched ( ) {
 assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . UNWATCHED ) ) . isTrue ( ) ;
 assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . WATCHED ) ) . isFalse ( ) ;
 assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . SKIPPED ) ) . isFalse ( ) ;
 }

 + @ test
 public void test_validateFlags ( ) {
 EpisodeTools . validateFlags ( EpisodeFlags . UNWATCHED ) ;
 EpisodeTools . validateFlags ( EpisodeFlags . WATCHED ) ;


<nb> public final class Es6RewriteBlockScopedDeclaration extends AbstractPostOrderCal
 Node nameNode = n . getFirstChild ( ) ;
 if ( ! n . isClass ( ) && ! n . isFunction ( ) && ! nameNode . hasChildren ( )
 && ( parent == null || ! NodeUtil . isEnhancedFor ( parent ) )
 - && ! n . isCatch ( ) ) {
 + && ! n . isCatch ( )
 + && ! n . isFromExterns ( ) ) {
 nameNode . addChildToFront (
 IR . name ( STRING0 ) . useSourceInfoIfMissingFrom ( nameNode ) ) ;
 }
 <nb> public final class Es6RewriteBlockScopedDeclarationTest extends CompilerTestCase
 STRING1 ,
 STRING2 ) ) ;
 }
 - }
 +
 + public void testExterns ( ) {
 + testExternChanges ( STRING3 , STRING4 , STRING5 ) ;
 + }
 + }

When transpiling let const don t initialize variables in externs


<nb> public final class ScriptGroup extends BaseObj {
 protected void finalize ( ) throws Throwable {
 SINGLE
 SINGLE
 - mClosures . clear ( ) ;
 + if ( mClosures != null ) {
 + SINGLE
 + SINGLE
 + mClosures . clear ( ) ;
 + }
 super . finalize ( ) ;
 }
 }


<nb> public class BinaryMemcacheObjectAggregatorTest {
 request . release ( ) ;

 assertThat ( channel . readInbound ( ) , nullValue ( ) ) ;
 +
 + channel . finish ( ) ;
 }
 }

Fix a buffer leak in BinaryMemcacheObjectAggregatorTest


<nb> public class BaseSettings implements SettingsInternal {
 }

 private Project createBuildDependenciesProject ( ) {
 - DefaultProject dummyProjectForDepencencyManager = new DefaultProject ( ) ;
 + DefaultProject dummyProjectForDepencencyManager = new DefaultProject ( BUILD_DEPENDENCIES_PROJECT_NAME ) ;
 dummyProjectForDepencencyManager . setProperty ( DependencyManager . GROUP , BUILD_DEPENDENCIES_PROJECT_GROUP ) ;
 - dummyProjectForDepencencyManager . setName ( BUILD_DEPENDENCIES_PROJECT_NAME ) ;
 dummyProjectForDepencencyManager . setProperty ( DependencyManager . VERSION , BUILD_DEPENDENCIES_PROJECT_VERSION ) ;
 try {
 dummyProjectForDepencencyManager . setGradleUserHome ( startParameter . getGradleUserHomeDir ( ) . getCanonicalPath ( ) ) ;


<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> public class JingleConnectionManager {

 private XmppConnectionService xmppConnectionService ;

 - private List < JingleConnection > connections = new ArrayList < JingleConnection > ( ) ;
 + private List < JingleConnection > connections = new CopyOnWriteArrayList < JingleConnection > ( ) ;

 private HashMap < String , JingleCandidate > primaryCandidates = new HashMap < String , JingleCandidate > ( ) ;

 + @ suppresslint ( STRING0 )
 private SecureRandom random = new SecureRandom ( ) ;

 public JingleConnectionManager ( XmppConnectionService service ) {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

made jingle connection array thread safe


<nb> public class ToolCommands {

 @ command (
 aliases = { STRING0 , STRING1 } ,
 - usage = STRING2 ,
 + usage = STRING3 ,
 desc = STRING4 ,
 min = NUMBER0 ,
 max = NUMBER0


<nb> public abstract class AbstractShadowRenderer implements SceneProcessor , Savable
 renderManager . setForcedTechnique ( postTechniqueName ) ;

 SINGLE
 - viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers , renderManager , cam , flushQueues ) ;
 + viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers , renderManager , cam , false ) ;
 if ( flushQueues ) {
 sceneReceivers . clear ( ) ;
 }
 <nb> public class PointLightShadowRenderer extends AbstractShadowRenderer {

 @ override
 GeometryList getReceivers ( GeometryList sceneReceivers , GeometryList lightReceivers ) {
 + lightReceivers . clear ( ) ;
 ShadowUtil . getGeometriesInLightRadius ( sceneReceivers , shadowCams , lightReceivers ) ;
 return lightReceivers ;
 }
 <nb> public class SpotLightShadowRenderer extends AbstractShadowRenderer {

 @ override
 GeometryList getReceivers ( GeometryList sceneReceivers , GeometryList lightReceivers ) {
 + lightReceivers . clear ( ) ;
 ShadowUtil . getGeometriesInCamFrustum ( sceneReceivers , shadowCam , lightReceivers ) ;
 return lightReceivers ;
 }

Fixed an issue with multiple shadow renderers


<nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
 } else {
 xPos = e . getVal ( ) ;
 }
 +
 + xPos *= mAnimator . getPhaseY ( ) ;
 } else {

 float x = i + i * ( setCount - NUMBER0 ) + dataSetIndex + space * i + space / FLOAT0 ;
 <nb> public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte
 } else {
 yPos = e . getVal ( ) ;
 }
 +
 + yPos *= mAnimator . getPhaseY ( ) ;
 }
 + } else {
 + yPos *= mAnimator . getPhaseY ( ) ;
 }

 SINGLE
 float [ ] pts = new float [ ] {
 - xPos , yPos * mAnimator . getPhaseY ( )
 + xPos , yPos
 } ;

 getTransformer ( mData . getDataSetByIndex ( dataSetIndex ) . getAxisDependency ( ) )

Fixed horizontal markerview animation issues


<nb> public abstract class ObservationFromServer extends HandlerBase implements IMalm
 synchronized ( this . latestJsonStats )
 {
 this . latestJsonStats = data . get ( STRING0 ) ;
 + if ( this . latestJsonStats == null ) SINGLE
 + this . latestJsonStats = STRING1 ; SINGLE
 onReturnedData ( data ) ;
 }
 }

Fixed knock on bug where losing the data from the message results in null pointer exceptions


<nb> public class XsltRefactoringSupport implements ApplicationComponent {
 }

 amgr . unregisterAction ( name ) ;
 + amgr . registerAction ( name , origAction ) ;
 }
 - amgr . registerAction ( name , origAction ) ;
 } else {
 LOG . info ( STRING0 + name + STRING1 + action . getClass ( ) . getName ( ) ) ;
 }


<nb> class NewModelControllerImpl implements NewModelController {

 public ModelNode execute ( final ModelNode operation , final OperationMessageHandler handler , final OperationTransactionControl control , final OperationAttachments attachments ) {
 final ModelNode headers = operation . has ( OPERATION_HEADERS ) ? operation . get ( OPERATION_HEADERS ) : null ;
 - final boolean rollbackOnFailure = headers == null || ! headers . hasDefined ( ROLLBACK_ON_RUNTIME_FAILURE ) || operation . get ( ROLLBACK_ON_RUNTIME_FAILURE ) . asBoolean ( ) ;
 + final boolean rollbackOnFailure = headers == null || ! headers . hasDefined ( ROLLBACK_ON_RUNTIME_FAILURE ) || headers . get ( ROLLBACK_ON_RUNTIME_FAILURE ) . asBoolean ( ) ;
 final EnumSet < NewOperationContextImpl . ContextFlag > contextFlags = rollbackOnFailure ? EnumSet . of ( NewOperationContextImpl . ContextFlag . ROLLBACK_ON_FAIL ) : EnumSet . noneOf ( NewOperationContextImpl . ContextFlag . class ) ;
 NewOperationContextImpl context = new NewOperationContextImpl ( this , controllerType , contextFlags , handler , attachments , modelReference . get ( ) , control , processState , bootingFlag . get ( ) ) ;
 ModelNode response = new ModelNode ( ) ;


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

 import NAMESPACE ;
 <nb> public class StreetTransitLink extends AbstractEdge {
 s1 . incrementWeight ( STL_TRAVERSE_COST ) ;
 return s1 . makeState ( ) ;
 }
 +
 + SINGLE
 + SINGLE
 + @ override
 + public double weightLowerBound ( TraverseOptions options ) {
 + return options . transitAllowed ( ) ? NUMBER0 : Double . POSITIVE_INFINITY ;
 + }
 +

 public Vertex getFromVertex ( ) {
 return fromv ;

make heuristic infinite for transit when no transit mode is selected


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - SINGLE
 - SINGLE
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class NeoApp extends AbstractApp
 protected RelationshipType getRelationshipType ( String name )
 {
 SINGLE
 - RelationshipType result = this . getNeoServer ( ) . getNeo ( ) .
 - getRelationshipType ( name ) ;
 + RelationshipType result = ( ( EmbeddedNeo ) this . getNeoServer ( ) .
 + getNeo ( ) ) . getRelationshipType ( name ) ;
 if ( result == null )
 {
 throw new RuntimeException ( STRING0 + name +

Added a cast to EmbeddedNeo to get access to legacy APIs


<nb> public class CallSessionImpl
 {
 try
 {
 - String globalConnectionAddress = globalConnParam . getAddress ( ) ;
 + String globalConnectionAddress = null ;
 +
 + if ( globalConnParam != null )
 + globalConnectionAddress = globalConnParam . getAddress ( ) ;

 Iterator mediaDescsIter = mediaDescriptions . iterator ( ) ;
 while ( mediaDescsIter . hasNext ( ) )
 <nb> public class CallSessionImpl
 int port = mediaDescription . getMedia ( ) . getMediaPort ( ) ;
 String type = mediaDescription . getMedia ( ) . getMediaType ( ) ;

 - String address = globalConnectionAddress ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + String address ;
 + if ( globalConnectionAddress != null )
 + {
 + address = globalConnectionAddress ;
 + }
 + else
 + {
 + address = mediaDescription . getConnection ( ) . getAddress ( ) ;
 + }

 SINGLE
 Connection mediaLevelConnection = mediaDescription .

Committing fix from Pablo L about a missing global connection param


<nb> public class GLMValidation extends Iced {
 }
 this . dataKey = dataKey ;
 this . thresholds = thresholds ;
 - System . out . println ( STRING0 + Arrays . toString ( thresholds ) ) ;
 }
 protected void regularize ( double reg ) { avg_err = avg_err * reg ; }
 public static Key makeKey ( ) { return Key . make ( STRING1 + Key . make ( ) ) ; }
 <nb> public class GLMValidation extends Iced {
 AUC auc = new AUC ( _cms , thresholds ) ;
 this . auc = auc . AUC ( ) ;
 best_threshold = auc . threshold ( ) ;
 + computeAIC ( ) ;
 }
 }
 COMMENT

Added back accidentally removed aid compute call in the end of vlm validation


<nb> public class DebuggerTreeRenderer extends ColoredTreeCellRenderer {
 }

 private static void appendValueTextWithEscapesRendering ( SimpleColoredText descriptorText , String valueText , final SimpleTextAttributes attribs ) {
 - final SimpleTextAttributes boldAttribs = attribs . derive ( SimpleTextAttributes . STYLE_BOLD , null , null , null ) ;
 + final SimpleTextAttributes boldAttribs = attribs . derive ( SimpleTextAttributes . STYLE_BOLD , null , Color . lightGray , null ) ;
 final StringBuilder buf = new StringBuilder ( ) ;
 boolean slashFound = false ;
 for ( int idx = NUMBER0 ; idx < valueText . length ( ) ; idx ++ ) {

add background color for escaped symbols


<nb> package NAMESPACE ;
 COMMENT
 public class Elasticsearch extends Bootstrap {

 - public static void main ( String [ ] args ) throws Throwable {
 + public static void main ( String [ ] args ) throws StartupError {
 Bootstrap . main ( args ) ;
 }
 }


<nb> public class DefaultSerializers {
 }

 public void write ( ObjectDataOutput out , Enum obj ) throws IOException {
 - out . writeUTF ( obj . getClass ( ) . getName ( ) ) ;
 + String name = obj . getDeclaringClass ( ) . getName ( ) ;
 + out . writeUTF ( name ) ;
 out . writeUTF ( obj . name ( ) ) ;
 }

 <nb> public class EnumTest {
 test ( RetentionPolicy . SOURCE ) ;
 }

 - @ test
 - @ ignore
 - SINGLE
 + SINGLE
 + SINGLE
 public void test4 ( ) throws IOException {
 test ( TimeUnit . SECONDS ) ;
 }

 private void test ( Enum value ) throws IOException {
 Data data = ss . toData ( value ) ;
 - Enum found = ( Enum ) ss . toObject ( data ) ;
 + Enum found = ( Enum ) ss . toObject ( data ) ;
 assertSame ( value , found ) ;
 }
 }

Fixed the Serialization of Subclassed Enumerations


<nb> public class TribeServiceTests extends ESTestCase {
 assertEquals ( STRING0 , clientSettings . get ( STRING1 ) ) ;
 assertEquals ( STRING2 , clientSettings . get ( STRING3 ) ) ;
 assertEquals ( STRING4 , clientSettings . get ( STRING5 ) ) ;
 +
 + SINGLE
 + Settings tribeSettings = Settings . builder ( )
 + . put ( STRING6 , STRING7 ) . build ( ) ;
 + clientSettings = TribeService . buildClientSettings ( STRING8 , globalSettings , tribeSettings ) ;
 + assertEquals ( STRING9 , clientSettings . get ( STRING6 ) ) ;
 }

 public void testPassthroughSettings ( ) {

Add test for ignoring path settings in tribe client


<nb> public final class ContactsContract {
 STRING0 ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final Uri ENTERPRISE_FILE_URI = Uri . withAppendedPath ( AUTHORITY_URI ,
 + STRING1 ) ;
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PythonCommandLineState extends CommandLineState {

 commandLine . setExePath ( myConfig . getInterpreterPath ( ) ) ;

 + buildCommandLineParameters ( commandLine ) ;
 +
 + commandLine . setEnvParams ( myConfig . getEnvs ( ) ) ;
 + commandLine . setPassParentEnvs ( myConfig . isPassParentEnvs ( ) ) ;
 + return commandLine ;
 + }
 +
 + protected void buildCommandLineParameters ( GeneralCommandLine commandLine ) {
 commandLine . getParametersList ( ) . addParametersString ( myConfig . getInterpreterOptions ( ) ) ;

 if ( ! StringUtil . isEmptyOrSpaces ( myConfig . getScriptName ( ) ) ) {
 <nb> public class PythonCommandLineState extends CommandLineState {
 if ( ! StringUtil . isEmptyOrSpaces ( myConfig . getWorkingDirectory ( ) ) ) {
 commandLine . setWorkDirectory ( myConfig . getWorkingDirectory ( ) ) ;
 }
 -
 - commandLine . setEnvParams ( myConfig . getEnvs ( ) ) ;
 - commandLine . setPassParentEnvs ( myConfig . isPassParentEnvs ( ) ) ;
 - return commandLine ;
 }
 }

correctly pass environment options to Django run configuration


<nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class GrailsUrlHandlerMapping extends SimpleUrlHandlerMapping {

 - private UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ;
 + public static final String APPLICATION_CONTEXT_ID = STRING0 ;
 + public static final String APPLICATION_CONTEXT_TARGET_SOURCE = STRING1 ;
 +
 + private UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ;

 COMMENT
 COMMENT
 <nb> public class GrailsUrlHandlerMapping extends SimpleUrlHandlerMapping {
 if ( logger . isDebugEnabled ( ) ) {
 logger . debug ( STRING2 + appPath + STRING3 ) ;
 }
 - return lookupHandler ( appPath ) ;
 + return lookupHandler ( appPath ) ;
 }
 }

added constants for beans related to this class in the application context


<nb> public class FeedRefreshTaskGiver implements Managed {

 @ override
 public void stop ( ) {
 + log . info ( STRING0 ) ;
 executor . shutdownNow ( ) ;
 while ( ! executor . isTerminated ( ) ) {
 try {
 <nb> public class FeedRefreshTaskGiver implements Managed {
 try {
 Thread . sleep ( NUMBER0 ) ;
 } catch ( InterruptedException e ) {
 - log . error ( STRING1 ) ;
 + log . debug ( STRING1 ) ;
 }
 }
 } catch ( Exception e ) {
 <nb> public class FeedRefreshUpdater implements Managed {

 @ override
 public void stop ( ) throws Exception {
 + log . info ( STRING2 ) ;
 pool . shutdown ( ) ;
 }


<nb> public class SlidingLayer extends FrameLayout {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setOffsetDistanceRes ( int resId ) {
 + setOffsetDistance ( ( int ) getResources ( ) . getDimension ( resId ) ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SlidingLayer extends FrameLayout {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setPreviewOffsetDistanceRes ( int resId ) {
 + setPreviewOffsetDistance ( ( int ) getResources ( ) . getDimension ( resId ) ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added setters for offset and previewOffset using resources


<nb> public class ShadowView {
 applyVisibilityAttribute ( ) ;
 applyEnabledAttribute ( ) ;
 applyBackgroundAttribute ( ) ;
 + applyTagAttribute ( ) ;
 }

 - @ implementation
 +
 +
 + @ implementation
 public void setId ( int id ) {
 this . id = id ;
 }
 <nb> public class ShadowView {
 setId ( id ) ;
 }
 }
 +
 + private void applyTagAttribute ( ) {
 + Object tag = attributeSet . getAttributeValue ( STRING0 , STRING1 ) ;
 + if ( tag != null ) {
 + setTag ( tag ) ;
 + }
 + }

 private void applyVisibilityAttribute ( ) {
 String visibility = attributeSet . getAttributeValue ( STRING0 , STRING2 ) ;

added support to ShadowView for setting the tag on a view as an xml attribute


<nb> final public class Utils {

 public static void assertNoLocks ( LongConcurrentHashMap < Thread > locks ) {
 - SINGLE
 + if ( CC . PARANOID )
 {
 LongMap . LongMapIterator < Thread > i = locks . longMapIterator ( ) ;
 while ( i . moveToNext ( ) ) {

do not check released locks every time speedups some operations


<nb> public class ConnectivityManagerTestActivity extends Activity {
 mCM = ( ConnectivityManager ) getSystemService ( Context . CONNECTIVITY_SERVICE ) ;
 SINGLE
 mWifiManager = ( WifiManager ) getSystemService ( Context . WIFI_SERVICE ) ;
 + mContext = this ;
 mChannel = mWifiManager . initialize ( mContext , mContext . getMainLooper ( ) , null ) ;

 initializeNetworkStates ( ) ;


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

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


<nb> class EclipseFinder {
 try {
 URI uri = EclipseFinder . class . getResource ( STRING0 + EclipseFinder . class . getName ( ) . replace ( STRING1 , STRING2 ) + STRING3 ) . toURI ( ) ;
 Pattern p = Pattern . compile ( STRING4 ) ;
 - System . out . println ( uri . toString ( ) ) ;
 Matcher m = p . matcher ( uri . toString ( ) ) ;
 if ( ! m . matches ( ) ) return new File ( STRING5 ) ;
 String rawUri = m . group ( NUMBER0 ) ;


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

 + import NAMESPACE ;
 +

 COMMENT
 COMMENT
 <nb> public class Layer extends BaseEntity {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public boolean removeEntity ( final IEntity pEntity ) {
 return this . mEntities . remove ( pEntity ) ;

Improved description for Layer removeEntity


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

 import static NAMESPACE ;

 - @ channelpipelinecoverage ( value = STRING0 )
 public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler implements AsyncHttpProvider < HttpResponse > {
 private final static Logger log = LogManager . getLogger ( NettyAsyncHttpProvider . class ) ;
 private final ClientBootstrap bootstrap ;


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


<nb> public class IdeTooltipManager implements ApplicationComponent , AWTEventListener
 hideCurrent ( me , null , null ) ;
 }
 } else if ( me . getID ( ) == MouseEvent . MOUSE_MOVED ) {
 - if ( c instanceof JComponent && ( ( JComponent ) c ) . getToolTipText ( me ) == null ) {
 - hideCurrent ( me , null , null ) ; SINGLE
 - } else if ( me . getComponent ( ) == myCurrentComponent || me . getComponent ( ) == myQueuedComponent ) {
 + if ( me . getComponent ( ) == myCurrentComponent || me . getComponent ( ) == myQueuedComponent ) {
 if ( myCurrentTipUi != null && myCurrentTipUi . wasFadedIn ( ) ) {
 if ( hideCurrent ( me , null , null ) ) {
 maybeShowFor ( c , me ) ;


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CancellableThreads {
 RuntimeException throwable = null ;
 try {
 interruptable . run ( ) ;
 - } catch ( InterruptedException e ) {
 + } catch ( InterruptedException | ThreadInterruptedException e ) {
 SINGLE
 } catch ( RuntimeException t ) {
 throwable = t ;

CancellableThreads should also treat ThreadInterruptedException as InterruptedException


<nb> public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F
 @ override
 public void onCompleted ( Exception e , F result ) {
 if ( e != null ) {
 - setComplete ( e ) ;
 + error ( e ) ;
 return ;
 }

 <nb> public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F
 transform ( result ) ;
 }
 catch ( Exception ex ) {
 - setComplete ( ex ) ;
 + error ( ex ) ;
 }
 }

 <nb> public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F
 return this ;
 }

 + protected void error ( Exception e ) {
 + setComplete ( e ) ;
 + }
 protected abstract void transform ( F result ) throws Exception ;
 }


<nb> public class NameSuggestionsField extends JPanel {
 }

 public void documentChanged ( DocumentEvent event ) {
 + if ( myComponent instanceof JComboBox ) {
 + ( ( JComboBox ) myComponent ) . hidePopup ( ) ;
 + }
 +
 fireDataChanged ( ) ;
 }
 }

fix introduce variable dialog to hide combobox popup on user type


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JetCompletionContributor extends CompletionContributor {

 String prefix = result . getPrefixMatcher ( ) . getPrefix ( ) ;

 - if ( prefix . isEmpty ( ) && parameters . getInvocationCount ( ) < NUMBER0 ) {
 - return ;
 + SINGLE
 + if ( prefix . isEmpty ( ) ) {
 + if ( parameters . getInvocationCount ( ) < NUMBER0 ) {
 + return ;
 + }
 +
 + if ( PsiTreeUtil . getParentOfType ( jetReference . getElement ( ) , JetDotQualifiedExpression . class ) == null ) {
 + return ;
 + }
 }

 if ( shouldRunTopLevelCompletion ( parameters , prefix ) ) {

Allow count non imported descriptors for empty prefix in qualified expression important for extension functions


<nb> public final class BuildRuleType {

 SINGLE
 public static BuildRuleType _AAPT_PACKAGE = new BuildRuleType ( STRING0 ) ;
 - public static BuildRuleType _CLASS_NAMES = new BuildRuleType ( STRING1 ) ;
 public static BuildRuleType _DUMMY_R_DOT_JAVA = new BuildRuleType ( STRING2 ) ;
 public static BuildRuleType _PRE_DEX = new BuildRuleType ( STRING3 ) ;
 public static BuildRuleType _UBER_R_DOT_JAVA = new BuildRuleType ( STRING4 ) ;


<nb> public final class IdeKeyEventDispatcher implements Disposable {
 return false ;
 }

 - boolean isMainFrame = window instanceof IdeFrameImpl ;
 boolean isFloatingDecorator = window instanceof FloatingDecorator ;

 boolean isPopup = ! ( component instanceof JFrame ) && ! ( component instanceof JDialog ) ;
 <nb> public final class IdeKeyEventDispatcher implements Disposable {
 }
 }

 - return ! isMainFrame && ! isFloatingDecorator ;
 + return ! isFloatingDecorator ;
 }

 private boolean inWaitForSecondStrokeState ( ) {


<nb> public class PackageKeysMigration extends BaseDataChange {
 }

 @ override
 - public void execute ( final Context context ) throws SQLException {
 + public void execute ( Context context ) throws SQLException {
 MassUpdate massUpdate = context . prepareMassUpdate ( ) ;
 massUpdate . select ( STRING0 ) ;
 massUpdate . update ( STRING1 ) ;
 <nb> public class PackageKeysMigration extends BaseDataChange {
 String key = row . getString ( NUMBER0 ) ;
 update . setString ( NUMBER1 , convertKey ( key ) ) ;
 update . setLong ( NUMBER0 , id ) ;
 -
 - context . prepareSelect ( STRING2 ) ;
 -
 return true ;
 }
 } ) ;

Revert wrong modification Fix Migration on MsSQL


<nb>
 package NAMESPACE ;

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

 <nb> public class EnvironmentPane extends WorkbenchPane
 implements EnvironmentPresenter . Display
 {
 @ inject
 - public EnvironmentPane ( )
 + public EnvironmentPane ( Commands commands )
 {
 super ( STRING0 ) ;

 + commands_ = commands ;
 +
 ensureWidget ( ) ;
 }

 <nb> public class EnvironmentPane extends WorkbenchPane
 }

 private ListBox objectList_ ;
 +
 + private Commands commands_ ;
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface AsyncFunction < I , O > {
 COMMENT
 COMMENT
 COMMENT
 - ListenableFuture < O > apply ( I input ) throws Exception ;
 + ListenableFuture < O > apply ( @ nullable I input ) throws Exception ;
 }

Annotate AsyncFunction parameter as Nullable


<nb> public class User {
 public void setName ( String name ) {
 this . name = name ;
 }
 -
 +
 + SINGLE
 public void process ( ComponentSystemEvent event ) throws AbortProcessingException {
 System . out . println ( STRING0 ) ;
 name = name . toUpperCase ( ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 -
 + @ equalsandhashcode
 public class CnnToFeedForwardPreProcessor implements InputPreProcessor {
 private int inputWidth ;
 private int inputHeight ;
 <nb> import NAMESPACE ;
 COMMENT

 COMMENT
 -
 @ equalsandhashcode
 public class FeedForwardToCnnPreProcessor implements InputPreProcessor {
 private int inputWidth ;


<nb> class BuildProgressListenerAdapter implements InternalBuildProgressListener , Int
 return assertDescriptorType ( BuildOperationDescriptor . class , cachedTestDescriptor ) ;
 }

 - private BuildOperationDescriptor getBuildDescriptor ( InternalBuildDescriptor buildDescriptor ) {
 - OperationDescriptor cachedTestDescriptor = this . descriptorCache . get ( buildDescriptor . getId ( ) ) ;
 - if ( cachedTestDescriptor == null ) {
 - throw new IllegalStateException ( String . format ( STRING0 , toString ( buildDescriptor ) ) ) ;
 - }
 - return assertDescriptorType ( BuildOperationDescriptor . class , cachedTestDescriptor ) ;
 - }
 -
 private static TestOperationDescriptor toTestDescriptor ( final InternalTestDescriptor testDescriptor , final TestOperationDescriptor parent ) {
 if ( testDescriptor instanceof InternalJvmTestDescriptor ) {
 final InternalJvmTestDescriptor jvmTestDescriptor = ( InternalJvmTestDescriptor ) testDescriptor ;


<nb> public interface X11 extends Library {
 COMMENT
 int XUngrabKey ( Display display , int keyCode , int modifiers , Window grab_window ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + int XGrabKeyboard ( Display display , Window grab_window , int owner_events , int pointer_mode , int keyboard_mode , NativeLong time ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + int XUngrabKeyboard ( Display display , NativeLong time ) ;
 +
 SINGLE
 COMMENT
 int XChangeKeyboardMapping ( Display display , int first_keycode , int keysyms_per_keycode , KeySym [ ] keysyms , int num_codes ) ;

added mappings for XGrabKeyboard and XUngrabKeyboard


<nb> public class Optionals
 return this ;
 }

 + @ suppresswarnings ( STRING0 )
 @ override
 public < To > Optional < To > map ( Function < TYPE , ? extends To > conversion )
 {
 - return some ( conversion . apply ( obj ) ) ;
 + return Optionals . < To > some ( conversion . apply ( obj ) ) ;
 }
 } ;
 }


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class EntityLaser extends Entity implements ISpawnHandler {
 }

 @ override
 - protected void writeEntityToNBT ( NBTTagCompound nbttagcompound ) {
 - }
 -
 protected void writeEntityToNBT ( NBTTagCompound nbttagcompound ) { }
 }
 <nb> public class EntityRobot extends Entity implements ISpawnHandler {
 SINGLE
 t . printStackTrace ( ) ;
 ModLoader . getLogger ( ) . throwing ( STRING0 , STRING1 , t ) ;
 - STRING1 , t ) ;
 }
 }


<nb> class ResultConverter {
 SendMessageResult toReturn = new SendMessageResult ( ) ;
 toReturn . setMD5OfMessageBody ( br . getMD5OfMessageBody ( ) ) ;
 toReturn . setMessageId ( br . getMessageId ( ) ) ;
 + toReturn . setMD5OfMessageAttributes ( br . getMD5OfMessageAttributes ( ) ) ;
 return toReturn ;
 }

add MessageAttributes to SendMessageResult


<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab
 @ override
 public void close ( int closeCode ) {
 logger . trace ( STRING0 , closeCode ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 notifyListener ( new WebSocketEventListener . WebSocketEvent ( STRING1 , CLOSE , webSocket ) ) ;
 AtmosphereResourceImpl resource = ( AtmosphereResourceImpl ) webSocket . resource ( ) ;

 <nb> public abstract class WebSocket extends AsyncIOWriterAdapter {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SimpleHttpProtocol implements WebSocketProtocol , Serializable {
 public List < AtmosphereRequest > onMessage ( WebSocket webSocket , String d ) {
 AtmosphereResourceImpl resource = ( AtmosphereResourceImpl ) webSocket . resource ( ) ;
 if ( resource == null ) {
 - logger . error ( STRING2 ) ;
 + logger . trace ( STRING3 ) ;
 return null ;
 }
 String pathInfo = resource . getRequest ( ) . getPathInfo ( ) ;

Change the log message and add some information about the returned value which might be null


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 public class JavaReferenceContributor extends PsiReferenceContributor {
 public void registerReferenceProviders ( final PsiReferenceRegistrar registrar ) {
 + final Project project = registrar . getProject ( ) ;
 + if ( project == null ) return ;

 - final JavaClassListReferenceProvider classListProvider = new JavaClassListReferenceProvider ( registrar . getProject ( ) ) ;
 + final JavaClassListReferenceProvider classListProvider = new JavaClassListReferenceProvider ( project ) ;
 registrar . registerReferenceProvider ( xmlAttributeValue ( ) , classListProvider , PsiReferenceRegistrar . LOWER_PRIORITY ) ;
 registrar . registerReferenceProvider ( xmlTag ( ) , classListProvider , PsiReferenceRegistrar . LOWER_PRIORITY ) ;

don t use PsiReferenceRegistrar getProject


<nb> public class UiTest {
 assertThat ( url ( ) ) . contains ( STRING0 ) ;
 $ ( STRING1 )
 . shouldBe ( visible )
 - . shouldHave ( text ( STRING2 ) ) ;
 + . shouldHave ( text ( STRING3 ) ) ;
 }

 @ test


<nb> public class Splash extends JDialog implements StartupProgress {
 Dimension size = getPreferredSize ( ) ;
 setSize ( size ) ;
 pack ( ) ;
 - setLocationRelativeTo ( null ) ;
 + setLocationInTheCenterOfScreen ( ) ;
 + }
 +
 + private void setLocationInTheCenterOfScreen ( ) {
 + Rectangle deviceBounds = getGraphicsConfiguration ( ) . getBounds ( ) ;
 + setLocation ( ( deviceBounds . width - getWidth ( ) ) / NUMBER0 , ( deviceBounds . height - getHeight ( ) ) / NUMBER0 ) ;
 }

 public Splash ( ApplicationInfoEx info ) {

Set location of splash screen basing on the current screen device


<nb> public class DefaultGrailsPluginManager implements GrailsPluginManager {
 if ( new File ( STRING0 ) . exists ( ) && plugins . get ( STRING1 ) == null ) {
 GrailsUtil . deprecated ( STRING2 +
 STRING3 +
 - STRING4 +
 + STRING5 +
 STRING6 ) ;
 }
 initializePlugins ( ) ;


<nb> public class IOUtils {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static boolean existsInClasspathOrFileSystem ( String name ) {
 + InputStream is = IOUtils . class . getClassLoader ( ) . getResourceAsStream ( name ) ;
 + if ( is == null ) {
 + is = IOUtils . class . getClassLoader ( ) . getResourceAsStream ( name . replaceAll ( STRING0 , STRING1 ) ) ;
 + }
 + return is != null || new File ( name ) . exists ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class AppleBuildRules {
 new Predicate < BuildRule > ( ) {
 @ override
 public boolean apply ( BuildRule input ) {
 - if ( ! isXcodeTargetBuildRuleType ( input . getType ( ) ) &&
 - XcodeNativeDescription . TYPE != input . getType ( ) ) {
 - return false ;
 - }
 -
 - return true ;
 + return isXcodeTargetBuildRuleType ( input . getType ( ) ) ||
 + XcodeNativeDescription . TYPE == input . getType ( ) ;
 }
 } ) ) ;
 }

Simplify predicate in getSchemeBuildableRules


<nb> public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene
 COMMENT
 public boolean shouldShowRequestPermissionRationale ( @ nonnull String permission ) {
 if ( mHost != null ) {
 - mHost . getContext ( ) . getPackageManager ( ) . shouldShowRequestPermissionRationale ( permission ) ;
 + return mHost . getContext ( ) . getPackageManager ( )
 + . shouldShowRequestPermissionRationale ( permission ) ;
 }
 return false ;
 }

Return a result from Fragment shouldShowRequestPermissionRationale


<nb> public class Ping
 ExamplesUtil . useSharedMemoryOnLinux ( ) ;

 final MediaDriver driver = EMBEDDED_MEDIA_DRIVER ? MediaDriver . launch ( ) : null ;
 - final ExecutorService executor = Executors . newSingleThreadExecutor ( ) ;
 final Aeron . Context ctx = new Aeron . Context ( )
 . newConnectionHandler ( Ping : : newPongConnectionHandler ) ;

 <nb> public class Ping

 HISTOGRAM . outputPercentileDistribution ( System . out , FLOAT0 ) ;

 - executor . shutdown ( ) ;
 CloseHelper . quietClose ( driver ) ;
 }


<nb> public class GateVanilla extends Gate {
 return STRING0 ;
 case OR_4 :
 return STRING1 ;
 + default :
 + return STRING2 ;
 }

 - return STRING2 ;
 }

 @ override
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Pipe implements IPipe , IDropControlInventory {
 internalUpdateScheduled = false ;
 }

 + SINGLE
 + if ( APIProxy . isRemote ( ) )
 + return ;
 +
 if ( actionTracker . markTimeIfDelay ( worldObj , NUMBER0 ) )
 resolveActions ( ) ;

Stopping gates from updating client side


<nb> public class RebalanceDataSet extends H2O . H2OCountedCompleter {
 assert dst . _len2 == chk . _len : STRING0 + dst . _len2 + STRING1 + chk . _len ;
 dst . close ( dst . cidx ( ) , _fs ) ;
 }
 - @ override public void map ( Chunk . . . chk ) {
 - for ( int i = NUMBER0 ; i < chk . length ; ++ i )
 - rebalanceChunk ( _srcVecs [ i ] , chk [ i ] ) ;
 + @ override public void map ( Chunk [ ] chks ) {
 + for ( int i = NUMBER0 ; i < chks . length ; ++ i )
 + rebalanceChunk ( _srcVecs [ i ] , chks [ i ] ) ;
 }
 }
 }

Changed RebalanceDatasetTask to have map called as map Chunk instead of map Chk to avoid compile warning


<nb> public class ActionBarDrawerActivity extends ActionBarActivity {
 return super . onOptionsItemSelected ( item ) ;
 }
 }
 +
 + @ override
 + public void onBackPressed ( ) {
 + SINGLE
 + if ( result != null && result . isDrawerOpen ( ) ) {
 + result . closeDrawer ( ) ;
 + } else {
 + super . onBackPressed ( ) ;
 + }
 + }
 }

add onBackPressed ot ActionBarDrawerActivity


<nb> import NAMESPACE ;

 public class TrainParser {

 + SINGLE
 public static void main ( String [ ] args ) {
 List < String > remainingArgs = Generics . newArrayList ( ) ;

Add a commented out example command line


<nb> public class KeyguardViewMediator {
 }
 }
 KeyguardUpdateMonitor . getInstance ( mContext ) . dispatchScreenTurndOff ( why ) ;
 - mKeyguardDisplayManager . show ( ) ;
 +
 + SINGLE
 + mHandler . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + mKeyguardDisplayManager . show ( ) ;
 + }
 + } ) ;
 }

 private void doKeyguardLaterLocked ( ) {

Don t set up external displays from binder thread


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

 public class IteratorHasNextCallsIteratorNextInspection
 <nb> public class IteratorHasNextCallsIteratorNextInspection
 return new IteratorHasNextCallsIteratorNext ( ) ;
 }

 - private static class IteratorHasNextCallsIteratorNext
 - extends BaseInspectionVisitor {
 + private static class IteratorHasNextCallsIteratorNext extends BaseInspectionVisitor {

 @ override
 public void visitMethod ( @ notnull PsiMethod method ) {
 SINGLE
 - @ nonnls final String name = method . getName ( ) ;
 - if ( ! MethodUtils . methodMatches ( method , CommonClassNames . JAVA_UTIL_ITERATOR , null ,
 - HardcodedMethodConstants . HAS_NEXT ) ) {
 + if ( ! MethodUtils . methodMatches ( method , CommonClassNames . JAVA_UTIL_ITERATOR , null , HardcodedMethodConstants . HAS_NEXT ) ) {
 return ;
 }
 if ( ! IteratorUtils . containsCallToIteratorNext ( method , null , true ) ) {


<nb> public abstract class CamelBlueprintTestSupport extends CamelTestSupport {

 SINGLE
 System . setProperty ( STRING0 , STRING1 + System . currentTimeMillis ( ) ) ;
 - List < BundleDescriptor > bundles = new ClasspathScanner ( ) . scanForBundles ( STRING2 ) ;
 + List < BundleDescriptor > bundles = getBundleDescriptors ( ) ;
 TinyBundle bundle = createTestBundle ( ) ;
 bundles . add ( getBundleDescriptor ( STRING3 , bundle ) ) ;
 Map < String , List < BundleDescriptor > > config = new HashMap < String , List < BundleDescriptor > > ( ) ;
 <nb> public abstract class CamelBlueprintTestSupport extends CamelTestSupport {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + protected List < BundleDescriptor > getBundleDescriptors ( ) throws Exception {
 + return new ClasspathScanner ( ) . scanForBundles ( STRING2 ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Allow customizing list of bundles for camel test blueprint


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractNioMessageChannel extends AbstractNioChannel {
 pipeline . fireChannelReadComplete ( ) ;

 if ( exception != null ) {
 - if ( exception instanceof IOException ) {
 + if ( exception instanceof IOException && ! ( exception instanceof PortUnreachableException ) ) {
 SINGLE
 SINGLE
 closed = ! ( AbstractNioMessageChannel . this instanceof ServerChannel ) ;

Do not consider PortUnreachableException to require channel closure


<nb> public class WXPerformance {
 + STRING0 + screenRenderTime
 + STRING1 + firstScreenJSFExecuteTime
 + STRING2 + componentCount
 + + STRING3 + syncTaskTime
 + + STRING4 + pureNetworkTime
 + + STRING5 + actualNetworkTime
 + + STRING6 + packageSpendTime
 + + STRING7 + connectionType
 + + STRING8 + requestType
 + STRING9 + WXEnvironment . sSDKInitInvokeTime + STRING10 + WXEnvironment . sSDKInitExecuteTime
 + STRING11 + totalTime + STRING12 + JSLibVersion + STRING13 + WXSDKVersion
 + STRING14 + errCode + STRING15 + renderFailedDetail


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


<nb> public class SwingSpyPanel extends JPanel {
 createImageIcon ( packageName + STRING0 ) ,
 createImageIcon ( packageName + STRING1 ) ,
 createImageIcon ( packageName + STRING2 ) ,
 - createImageIcon ( packageName + STRING3 ) ,
 + createImageIcon ( packageName + STRING4 ) ,
 createImageIcon ( packageName + STRING5 ) ,
 createImageIcon ( packageName + STRING6 ) ,
 createImageIcon ( packageName + STRING7 ) ,


<nb> public class CompilerOptions implements Serializable , Cloneable {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setLanguageIn ( LanguageMode languageIn ) {
 this . languageIn = languageIn ;


<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
 @ consoleparameter ( name = STRING0 , description = STRING1 ) String iStorageType ,
 @ consoleparameter ( name = STRING2 , optional = true , description = STRING3 ) String iDatabaseType )
 throws IOException {
 +
 + if ( iDatabaseType == null )
 + iDatabaseType = STRING4 ;
 +
 out . println ( STRING5 + iDatabaseURL + STRING6 + iStorageType + STRING7 ) ;

 currentDatabaseUserName = iUserName ;
 <nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput

 } else {
 SINGLE
 - currentDatabase = new ODatabaseDocumentTx ( iDatabaseURL ) ;
 + currentDatabase = Orient . instance ( ) . getDatabaseFactory ( ) . createDatabase ( iDatabaseType , iDatabaseURL ) ;
 currentDatabase . create ( ) ;
 currentDatabaseName = currentDatabase . getName ( ) ;
 }

Fixed creation of new database using db type also in local


<nb> public class BatchTest {
 Resource branch = sonar . find ( new ResourceQuery ( STRING0 ) ) ;
 assertThat ( branch . getName ( ) ) . isEqualTo ( STRING1 ) ;
 }
 +
 + @ test
 + public void use_sonar_profile_without_provisioning_project ( ) {
 + scan ( STRING2 ,
 + STRING3 , STRING4 ,
 + STRING5 , STRING6 ) ;
 + Resource r = orchestrator . getServer ( ) . getWsClient ( ) . find ( ResourceQuery . createForMetrics ( STRING7 , STRING8 ) ) ;
 + assertThat ( r . getMeasureIntValue ( STRING8 ) ) . isEqualTo ( NUMBER0 ) ;
 + }

 COMMENT
 COMMENT

IT using sonar profile without provisioning project


<nb> public final class InstanceType implements IOReadableWritable {
 COMMENT
 @ override
 public String toString ( ) {
 - return this . identifier ;
 - }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public String toStringRepresentation ( ) {
 -
 final StringBuilder bld = new StringBuilder ( NUMBER0 ) ;
 bld . append ( this . identifier ) ;
 - bld . append ( STRING0 ) ;
 + bld . append ( STRING1 ) ;
 + bld . append ( STRING2 ) ;
 bld . append ( this . numberOfComputeUnits ) ;
 bld . append ( STRING0 ) ;
 bld . append ( this . numberOfCores ) ;
 <nb> public final class InstanceType implements IOReadableWritable {
 bld . append ( this . diskCapacity ) ;
 bld . append ( STRING0 ) ;
 bld . append ( this . pricePerHour ) ;
 + bld . append ( STRING3 ) ;

 return bld . toString ( ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WorldEdit {
 } else {
 submask = new ExistingBlockMask ( ) ;
 }
 - return new UnderOverlayMask ( submask , firstChar == STRING0 ) ;
 + return new UnderOverlayMask ( submask , firstChar == STRING0 ) ;

 case STRING1 :
 Set < BiomeType > biomes = new HashSet < BiomeType > ( ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractScheduler implements InstanceListener {
 LOG . debug ( STRING0 ) ;
 return ;
 }
 -
 - SINGLE
 - SINGLE
 - try {
 - allocatedResource . getInstance ( ) . checkLibraryAvailability ( jobID ) ;
 - } catch ( IOException ioe ) {
 - LOG . error ( STRING1 + StringUtils . stringifyException ( ioe ) ) ;
 - }
 }

 final ExecutionGraph eg = getExecutionGraphByID ( jobID ) ;

Removed library check code to improve latency behaviour


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProjectWorkspace {
 SINGLE
 if ( attrs . size ( ) > NUMBER0 && attrs . size ( ) <= NUMBER1 ) {
 String linkTo = new String ( Files . readAllBytes ( path ) , UTF_8 ) ;
 - Path linkToFile = templatePath . resolve ( linkTo ) ;
 + Path linkToFile = null ;
 + try {
 + linkToFile = templatePath . resolve ( linkTo ) ;
 + } catch ( InvalidPathException e ) {
 + SINGLE
 + SINGLE
 + return FileVisitResult . CONTINUE ;
 + }
 if ( Files . isRegularFile ( linkToFile ) ) {
 Files . copy ( linkToFile , path , StandardCopyOption . REPLACE_EXISTING ) ;
 } else if ( Files . isDirectory ( linkToFile ) ) {

Catch an exception in ProjectWorkspace when following links


<nb> import static NAMESPACE ;

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

 <nb> public class InitialStopSearchPathParser extends PathParser {
 public int terminalFor ( State state ) {
 Vertex v = state . getVertex ( ) ;

 - if ( v instanceof IntersectionVertex )
 - return STREET ;
 -
 - else if ( v instanceof TransitStop )
 + if ( v instanceof TransitStop )
 return TRANSITSTOP ;

 - else return OTHER ;
 + else
 + return STREET ;
 }

 @ override

Fix initial stop path parser to handle rarer cases e g elevators


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

Don t use javadoc markers in file headers


<nb> public class Notification implements Parcelable
 mN . ledARGB = argb ;
 mN . ledOnMS = onMs ;
 mN . ledOffMS = offMs ;
 + if ( onMs != NUMBER0 || offMs != NUMBER0 ) {
 + mN . flags |= FLAG_SHOW_LIGHTS ;
 + }
 + if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) {
 + mN . flags |= FLAG_SHOW_LIGHTS ;
 + }
 return this ;
 }

 <nb> public class Notification implements Parcelable
 COMMENT
 public Builder setColor ( @ colorint int argb ) {
 mN . color = argb ;
 + sanitizeColor ( ) ;
 return this ;
 }

 <nb> public class Notification implements Parcelable
 }
 }

 - private int sanitizeColor ( ) {
 + private void sanitizeColor ( ) {
 if ( mN . color != COLOR_DEFAULT ) {
 mN . color |= NUMBER1 ; SINGLE
 }
 - return mN . color ;
 }

 private int resolveColor ( ) {

Bring back notification lights and sanitized color


<nb>
 COMMENT
 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Linter {
 compiler . compile ( ImmutableList . < SourceFile > of ( externs ) , ImmutableList . of ( file ) , options ) ;
 if ( fix ) {
 List < SuggestedFix > fixes = new ArrayList < > ( ) ;
 - for ( JSError warning : compiler . getWarnings ( ) ) {
 + for ( JSError warning : concat ( compiler . getErrors ( ) , compiler . getWarnings ( ) , JSError . class ) ) {
 SuggestedFix suggestedFix = ErrorToFixMapper . getFixForJsError ( warning , compiler ) ;
 if ( suggestedFix != null ) {
 fixes . add ( suggestedFix ) ;


<nb> public class AccountListActivity extends SherlockListActivity implements View . On

 ThemeableActivity . setBackgroundImage ( this ) ;

 - SINGLE
 -
 mApp = ImApp . getApplication ( this ) ;
 mHandler = new MyHandler ( this ) ;
 mSignInHelper = new SignInHelper ( this ) ;


<nb> import NAMESPACE ;
 public class PyBreakContinueGotoProvider implements GotoDeclarationHandler {

 public PsiElement getGotoDeclarationTarget ( PsiElement source ) {
 - if ( source . getLanguage ( ) instanceof PythonLanguage ) {
 + if ( source != null && source . getLanguage ( ) instanceof PythonLanguage ) {
 ParentMatcher parent_matcher = new ParentMatcher ( PyForStatement . class , PyWhileStatement . class ) ;
 parent_matcher . limitBy ( PyFunction . class , PyClass . class ) ;
 List < ? extends PsiElement > cycle_list = parent_matcher . search ( source ) ;

Fixed NPE in the break and continue ctrl click handler


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class OrientBatchGraph extends BatchGraph < OrientGraph > {
 + public class OrientBatchGraph extends BatchGraph < OrientTransactionalGraph > {

 - public OrientBatchGraph ( final OrientGraph graph ) {
 + public OrientBatchGraph ( final OrientTransactionalGraph graph ) {
 super ( graph ) ;
 }

 - public OrientBatchGraph ( final OrientGraph graph , final VertexIDType type , final long bufferSize ) {
 + public OrientBatchGraph ( final OrientTransactionalGraph graph , final VertexIDType type , final long bufferSize ) {
 super ( graph , type , bufferSize ) ;
 }

Let OrientBatchGraph to receive a OrientTransactionalGraph rather than OrientGraph


<nb> class PropertyAccessInvocationHandler implements MethodInterceptor {

 if ( String . class . equals ( type ) ) {
 path = new ExtString ( pm ) ;
 - rv = ( T ) new String ( ) ;
 + SINGLE
 + SINGLE
 + rv = null ;

 SINGLE


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JedisShardInfo extends ShardInfo < Jedis > {
 this . port = port ;
 this . timeout = timeout ;
 }
 +
 + public JedisShardInfo ( String host , String name , int port , int timeout , int weight ) {
 + super ( weight ) ;
 + this . host = host ;
 + this . name = name ;
 + this . port = port ;
 + this . timeout = timeout ;
 + }

 public JedisShardInfo ( URI uri ) {
 super ( Sharded . DEFAULT_WEIGHT ) ;

adding constructor that receives both name and weight


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

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


<nb> public class CreateVirtualEnvDialog extends IdeaDialog {
 final ProjectJdkImpl sdk = new ProjectJdkImpl ( name , PythonSdkType . getInstance ( ) ) ;
 sdk . setHomePath ( FileUtil . toSystemDependentName ( sdkHome . getPath ( ) ) ) ;
 callback . virtualEnvCreated ( sdk , associateWithProject ) ;
 - PythonSdkType . setupSdkPaths ( sdk , myProject , null ) ;
 }
 }

do not run skeleton generation twice while creating virtual env


<nb> public abstract class BaseNeuralNetwork implements NeuralNetwork , Persistable {
 log . info ( STRING0 + currRecon ) ;
 }

 -
 + numEpochs ++ ;
 }

 }

added backprop to reconstructions as well


<nb> public class SoftWrapApplianceManager implements Dumpable {

 if ( myContext . delayedSoftWrap != null ) {
 myStorage . remove ( myContext . delayedSoftWrap ) ;
 + myContext . delayedSoftWrap = null ;
 }

 if ( softWrap == null ) {
 <nb> public class SoftWrapApplianceOnDocumentModificationTest extends AbstractEditorT
 verifySoftWrapPositions ( ) ;
 }

 + public void testFoldRegionPreventsLaterWrapping ( ) throws Exception {
 + initText ( STRING0 ) ;
 + configureSoftWraps ( NUMBER0 ) ;
 + verifySoftWrapPositions ( NUMBER1 ) ;
 +
 + addCollapsedFoldRegion ( NUMBER2 , NUMBER3 , STRING1 ) ;
 +
 + verifySoftWrapPositions ( NUMBER2 ) ;
 + assertEquals ( NUMBER4 , myEditor . offsetToVisualPosition ( NUMBER5 ) . line ) ;
 + }
 +
 private void init ( final int visibleWidthInColumns , @ notnull String fileText ) throws IOException {
 init ( visibleWidthInColumns , NUMBER6 , fileText ) ;
 }


<nb> public class SwingBuilder extends BuilderSupport {
 registerBeanFactory ( STRING0 , GridLayout . class ) ;
 registerBeanFactory ( STRING1 , OverlayLayout . class ) ;
 registerBeanFactory ( STRING2 , SpringLayout . class ) ;
 - registerBeanFactory ( STRING3 , GridBagConstraints . class ) ;
 + registerBeanFactory ( STRING4 , GridBagConstraints . class ) ;
 registerBeanFactory ( STRING5 , GridBagConstraints . class ) ; SINGLE

 SINGLE

fixed a typo in the dynamic method definition for gridBagConstraints


<nb> public class PsiViewerDialog extends DialogWrapper {
 start -= baseOffset ;
 end -= baseOffset ;
 }
 - myHighlighter = myEditor . getMarkupModel ( ) . addRangeHighlighter ( start , end , HighlighterLayer . FIRST + NUMBER0 , myAttributes , HighlighterTargetArea . EXACT_RANGE ) ;
 +
 + final int textLength = myEditor . getDocument ( ) . getTextLength ( ) ;
 + if ( end < textLength ) {
 + myHighlighter = myEditor . getMarkupModel ( ) . addRangeHighlighter ( start , end , HighlighterLayer . FIRST + NUMBER0 , myAttributes , HighlighterTargetArea . EXACT_RANGE ) ;
 + }
 }
 }
 }


<nb> public class ObjectNode
 }
 return _children . put ( fieldName , value ) ;
 }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - protected static class NoFieldsIterator
 - implements Iterator < Map . Entry < String , JsonNode > >
 - {
 - final static NoFieldsIterator instance = new NoFieldsIterator ( ) ;
 -
 - private NoFieldsIterator ( ) { }
 -
 - SINGLE
 - public boolean hasNext ( ) { return false ; }
 - SINGLE
 - public Map . Entry < String , JsonNode > next ( ) { throw new NoSuchElementException ( ) ; }
 -
 - SINGLE
 - public void remove ( ) { SINGLE
 - throw new IllegalStateException ( ) ;
 - }
 - }
 }

Remove the last unused empty iterator class


<nb> public class ShadowSQLiteStatement extends ShadowSQLiteProgram {
 if ( resultSet . next ( ) ) {
 return resultSet . getLong ( NUMBER0 ) ;
 } else {
 - throw new RuntimeException ( STRING0 ) ;
 + throw new RuntimeException ( STRING1 ) ;
 }
 } catch ( SQLException e ) {
 throw new RuntimeException ( e ) ;
 <nb> public class ShadowSQLiteStatement extends ShadowSQLiteProgram {
 throw new SQLiteDoneException ( STRING2 ) ;
 }
 }
 - }
 + }

Fix error message in ShadowSQLiteStatement java


<nb> import NAMESPACE ;

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

 <nb> public class Routers {

 private static final Logger LOG = LoggerFactory . getLogger ( Routers . class ) ;

 - @ autowired GraphService graphService ;
 + @ injectparam GraphService graphService ;

 COMMENT
 COMMENT

fix routers API to work with standalone OTP injection


<nb> public class StarTreeBootstrapJobAvro extends Configured
 {
 Map < String , Map < Long , StarTreeRecord > > records = aggregateRecords ( config , avroRecords , numTimeBuckets ) ;

 + LOG . info ( STRING0 , records . size ( ) , nodeId . toString ( ) ) ;
 +
 SINGLE
 List < StarTreeRecord > mergedRecords = new ArrayList < StarTreeRecord > ( ) ;
 for ( Map < Long , StarTreeRecord > timeBucket : records . values ( ) )

added log for number of records in each leaf


<nb> public final class RuntimeEnvironment {
 }

 public void setUsingLuceneLocking ( boolean useLuceneLocking ) {
 - threadConfig . get ( ) . setOptimizeDatabase ( useLuceneLocking ) ;
 + threadConfig . get ( ) . setUsingLuceneLocking ( useLuceneLocking ) ;
 }

 COMMENT

Fixed setter in RuntimeEnvironment lucene locking


<nb> public class AarGeneratorAction {
 modifiers ,
 null ,
 options . strictMerge ) ;
 - logger . info ( String . format ( STRING0 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ;
 + logger . fine ( String . format ( STRING0 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ;

 writeAar ( options . aarOutput , mergedData , options . manifest , options . rtxt , options . classes ) ;
 - logger . info (
 + logger . fine (
 String . format ( STRING1 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ;

 } catch ( IOException | MergingException e ) {

Turn down the log level for AarGeneratorAction s timing information


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Source implements InsertSourceHandler ,
 activeEditor_ = editors_ . get ( event . getSelectedItem ( ) ) ;
 activeEditor_ . onActivate ( ) ;
 if ( initialized_ )
 - activeEditor_ . focus ( ) ;
 + {
 + Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( )
 + {
 + public void execute ( )
 + {
 + activeEditor_ . focus ( ) ;
 + }
 + } ) ;
 + }
 }

 if ( initialized_ )


<nb> public abstract class PlanExecutor {
 }
 }

 - private static final Class < ? extends PlanExecutor > loadExecutorClass ( String className ) {
 + private static Class < ? extends PlanExecutor > loadExecutorClass ( String className ) {
 try {
 Class < ? > leClass = Class . forName ( className ) ;
 return leClass . asSubclass ( PlanExecutor . class ) ;

Remove unnecessary final modifier in PlanExecutor loadExecutorClass method