<nb> public class EntryActivity extends Activity {
 }

 if ( canLoadFromThisApp == false && ! showingTamperPrompt ) {
 - if ( Util . randInt ( NUMBER0 , NUMBER1 ) == NUMBER2 ) {
 - MainApplication . showUpgradePrompt ( this , R . string . upgrade_incentive_one_app , Analytics . UPGRADE_PROMPT_SINGLE_APP ) ;
 - }
 + SINGLE
 + SINGLE
 + SINGLE
 MainApplication . openInBrowser ( this , intent , true ) ;
 } else if ( openLink && ! showingTamperPrompt ) {
 SINGLE

Don t show upgrade prompt when loading links


<nb> public final class ViewfinderView extends View {
 }

 public void drawViewfinder ( ) {
 - resultBitmap = null ;
 + Bitmap resultBitmap = this . resultBitmap ;
 + this . resultBitmap = null ;
 + if ( resultBitmap != null ) {
 + resultBitmap . recycle ( ) ;
 + }
 invalidate ( ) ;
 }

Fixed potential bug in not recycling bitmaps that I spied from BS


<nb> public class GwtNet implements Net {
 }

 final boolean is_get = ( httpRequest . getMethod ( ) == HttpMethods . GET ) ;
 - final String value = httpRequest . convertHttpRequest ( ) ;
 + final String value = httpRequest . getContent ( ) ;

 final RequestBuilder builder = is_get ? new RequestBuilder ( RequestBuilder . GET , httpRequest . getUrl ( ) + STRING0 + value ) :
 new RequestBuilder ( RequestBuilder . POST , httpRequest . getUrl ( ) ) ;
 <nb> public class GwtNet implements Net {
 builder . setHeader ( name , content . get ( name ) ) ;
 }

 - builder . setTimeoutMillis ( httpRequest . getTimeout ( ) ) ;
 + builder . setTimeoutMillis ( httpRequest . getTimeOut ( ) ) ;

 try {

changed GwtNet to use getContent and getTimeOut


<nb> public class AccessLogValve extends ValveBase implements AccessLog {
 COMMENT
 COMMENT
 COMMENT
 - private void tidyFormat ( ) {
 + private String tidyFormat ( String format ) {
 boolean escape = false ;
 StringBuilder result = new StringBuilder ( ) ;
 int len = format . length ( ) ;
 <nb> public class AccessLogValve extends ValveBase implements AccessLog {
 escape = ! escape ;
 }
 }
 + return result . toString ( ) ;
 }

 protected DateAndTimeElement ( String header ) {
 <nb> public class AccessLogValve extends ValveBase implements AccessLog {
 type = formatType . MSEC_FRAC ;
 } else {
 type = formatType . SDF ;
 - tidyFormat ( ) ;
 + format = tidyFormat ( format ) ;
 }
 }
 }

Fix millisecond handling in AccessLogValve when


<nb> public class SubsystemParsingTestCase extends AbstractBatchTestCase {
 return readResource ( STRING0 ) ;
 }

 + @ override
 + protected String getSubsystemXsdPath ( ) throws Exception {
 + return STRING1 ;
 + }
 +
 + @ override
 + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException {
 + return new String [ ] {
 + STRING2
 + } ;
 + }
 +
 @ test
 public void testMinimalSubsystem ( ) throws Exception {
 standardSubsystemTest ( STRING3 ) ;


<nb> public abstract class AndroidLiveWallpaperService extends WallpaperService {
 runningEngines -- ;
 if ( AndroidLiveWallpaperService . DEBUG ) Log . d ( AndroidLiveWallpaperService . this . TAG , STRING0 + hashCode ( ) + STRING1 + runningEngines ) ;
 view . onDestroy ( ) ;
 - listener . dispose ( ) ;
 + if ( listener != null )
 + listener . dispose ( ) ;
 app . onDestroy ( ) ;
 super . onDestroy ( ) ;
 }

added null check on listener before destroying it because it seems onDestroy could be called before onCreate in some cases


<nb> public class RuntimeEnvironment {
 return getConfiguration ( ) . getIndexWordLimit ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setIndexWordLimit ( int indexWordLimit ) {
 getConfiguration ( ) . setIndexWordLimit ( indexWordLimit ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public boolean isVerbose ( ) {
 return getConfiguration ( ) . isVerbose ( ) ;
 }
 -
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setVerbose ( boolean verbose ) {
 getConfiguration ( ) . setVerbose ( verbose ) ;
 }
 -
 +
 +
 public IgnoredNames getIgnoredNames ( ) {
 return getConfiguration ( ) . getIgnoredNames ( ) ;
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class SkipDefaultsSerializationFilter extends SkipDefaultValuesSeri
 BeanBinding classBinding = ( BeanBinding ) referencedBinding ;
 ThreeState compareByFields = classBinding . hasEqualMethod ;
 if ( compareByFields == ThreeState . UNSURE ) {
 - try {
 - classBinding . myBeanClass . getDeclaredMethod ( STRING0 , Object . class ) ;
 - compareByFields = ThreeState . NO ;
 - }
 - catch ( NoSuchMethodException ignored ) {
 - compareByFields = ThreeState . YES ;
 - }
 - catch ( Exception e ) {
 - Binding . LOG . warn ( e ) ;
 - }
 + compareByFields = ReflectionUtil . getDeclaredMethod ( classBinding . myBeanClass , STRING0 , Object . class ) == null ? ThreeState . YES : ThreeState . NO ;

 classBinding . hasEqualMethod = compareByFields ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class FileStorageUtils {
 - public static Integer mSortOrder ;
 - public static Boolean mSortAscending ;
 public static final Integer SORT_NAME = NUMBER0 ;
 public static final Integer SORT_DATE = NUMBER1 ;
 public static final Integer SORT_SIZE = NUMBER2 ;
 -
 + public static Integer mSortOrder = SORT_NAME ;
 + public static Boolean mSortAscending = true ;
 +

 SINGLE

Set default static values to prevent weird crash


<nb> public class CallManager

 mainFrame . addCallPanel ( callPanel ) ;

 + if ( mainFrame . getState ( ) == JFrame . ICONIFIED )
 + mainFrame . setState ( JFrame . NORMAL ) ;
 +
 + mainFrame . toFront ( ) ;
 +
 this . callButton . setEnabled ( true ) ;
 this . hangupButton . setEnabled ( true ) ;

incoming calls request focus en bring SC up


<nb> public class HelloWorldManagedConnectionFactory implements ManagedConnectionFact

 }

 + public boolean equals ( Object o ) {
 + return super . equals ( o ) ;
 + }
 +
 + public int hashCode ( ) {
 + return super . hashCode ( ) ;
 + }
 }
 <nb> public class HelloWorldResourceAdapter implements ResourceAdapter {
 return new XAResource [ NUMBER0 ] ;
 }

 + public boolean equals ( Object o ) {
 + return super . equals ( o ) ;
 + }
 +
 + public int hashCode ( ) {
 + return super . hashCode ( ) ;
 + }
 }


<nb> public class ScorePhrasesLearnFeatWt < E extends Pattern > extends PhraseScorer < E >
 candidate = CandidatePhrase . createOrGet ( l . word ( ) ) ;
 }

 + SINGLE
 + if ( allPossibleNegativePhrases . contains ( candidate ) )
 + continue ;
 +
 allPositivePhrases . add ( candidate ) ;

 } else {


<nb> public class CxfEndpoint extends DefaultEndpoint implements HeaderFilterStrategy
 COMMENT
 COMMENT
 public void setLoggingSizeLimit ( int loggingSizeLimit ) {
 - if ( loggingSizeLimit < - NUMBER0 ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 - }
 + if ( loggingSizeLimit < - NUMBER0 ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 this . loggingSizeLimit = loggingSizeLimit ;
 }

Changed tabs to whitespace for identation


<nb> public class ParseAndMarshalModelsTestCase {
 }

 @ test
 + public void testStandaloneJtsXml ( ) throws Exception {
 + standaloneXmlTest ( getExampleConfigFile ( STRING0 ) ) ;
 + }
 +
 + @ test
 public void test700StandaloneXml ( ) throws Exception {
 standaloneXmlTest ( getLegacyConfigFile ( STRING1 , STRING2 ) ) ;
 }
 <nb> public class ParseAndMarshalModelsTestCase {
 }

 @ test
 + public void testDomainJtsXml ( ) throws Exception {
 + domainXmlTest ( getExampleConfigFile ( STRING3 ) ) ;
 + }
 +
 + @ test
 public void test700DomainXml ( ) throws Exception {
 domainXmlTest ( getLegacyConfigFile ( STRING4 , STRING2 ) ) ;
 }


<nb> public class DiffApplication implements ApplicationStarterEx {
 System . err . println ( e . getMessage ( ) ) ;
 System . exit ( NUMBER0 ) ;
 }
 - catch ( Exception e ) {
 - e . printStackTrace ( ) ;
 - System . exit ( NUMBER0 ) ;
 + catch ( Throwable t ) {
 + t . printStackTrace ( ) ;
 + System . exit ( NUMBER1 ) ;
 }
 +
 + System . exit ( NUMBER2 ) ;
 }

 @ override


<nb> public class LogInspector
 final long rawTail = metaDataBuffer . getLongVolatile ( TERM_TAIL_COUNTER_OFFSET ) ;
 final long termOffset = rawTail & NUMBER0 ;
 out . format (
 - STRING0 ,
 + STRING1 ,
 i ,
 termStatus ( metaDataBuffer ) ,
 termOffset ,
 - termId ( rawTail ) ) ;
 + termId ( rawTail ) ,
 + rawTail ) ;
 }

 for ( int i = NUMBER1 ; i < PARTITION_COUNT ; i ++ )

Java Write out the rawTail value when inspecting logs


<nb> public class OsmandMonitoringPlugin extends OsmandPlugin implements LockInfoCont
 offlineData . setSummary ( offlineData . getSummary ( ) + STRING0 + app . getString ( R . string . gpx_index_settings_descr ) ) ;
 }
 PreferenceScreen general = ( PreferenceScreen ) screen . findPreference ( SettingsActivity . SCREEN_ID_GENERAL_SETTINGS ) ;
 - general . addPreference ( activity . createEditTextPreference ( settings . LIVE_MONITORING_URL , R . string . live_monitoring_url ,
 - R . string . live_monitoring_url_descr ) ) ;
 + SINGLE
 + SINGLE

 PreferenceCategory cat = new PreferenceCategory ( activity ) ;

remove duplicate tracking URL menu entry


<nb> public class RegistrationTest extends TomcatBaseTest {
 assertEquals ( STRING0 + onames , NUMBER0 , onames . size ( ) ) ;

 final Tomcat tomcat = getTomcatInstance ( ) ;
 - SINGLE
 - tomcat . getServer ( ) . addLifecycleListener ( new ServerLifecycleListener ( ) ) ;
 final File contextDir = new File ( STRING1 ) ;
 contextDir . mkdir ( ) ;
 tomcat . addContext ( STRING2 , contextDir . getAbsolutePath ( ) ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CloseProjectAction extends AnAction implements DumbAware {
 Presentation presentation = event . getPresentation ( ) ;
 Project project = event . getData ( PlatformDataKeys . PROJECT ) ;
 presentation . setEnabled ( project != null ) ;
 - if ( ProjectAttachProcessor . canAttachToProject ( ) ) {
 + if ( ProjectAttachProcessor . canAttachToProject ( ) && project != null && ModuleManager . getInstance ( project ) . getModules ( ) . length > NUMBER0 ) {
 presentation . setText ( STRING0 ) ;
 }
 + else {
 + presentation . setText ( getTemplatePresentation ( ) . getText ( ) ) ;
 + }
 }
 }

don t rename action to close projects in current window if we have only one project


<nb> public abstract class SocketWrapperBase < E > {

 protected static final StringManager sm = StringManager . getManager ( SocketWrapperBase . class ) ;

 - private volatile E socket ;
 + private final E socket ;
 private final AbstractEndpoint < E > endpoint ;

 SINGLE


<nb> public class PublishClusterStateActionTests extends ESTestCase {
 }
 largestVersionSeen = state . getVersion ( ) ;
 } else {
 + SINGLE
 assertNotNull ( channel . error . get ( ) ) ;
 assertThat ( channel . error . get ( ) , instanceOf ( IllegalStateException . class ) ) ;
 }


<nb> public class ThemeBrowserFragment extends Fragment implements RecyclerListener ,
 switch ( position ) {
 case THEME_FILTER_PREMIUM_INDEX :
 return WordPress . wpDB . getThemesPremium ( blogId ) ;
 - case THEME_FILTER_FREE_INDEX :
 - return WordPress . wpDB . getThemesFree ( blogId ) ;
 case THEME_FILTER_ALL_INDEX :
 - default :
 return WordPress . wpDB . getThemesAll ( blogId ) ;
 + case THEME_FILTER_FREE_INDEX :
 + default :
 + return WordPress . wpDB . getThemesFree ( blogId ) ;
 }
 }


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

Fixed an incorrect relationship in a class diagram


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

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

 import NAMESPACE ;


<nb> public class ScriptIntrinsicColorMatrix extends ScriptIntrinsic {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class BluetoothService extends IBluetooth . Stub {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 private final ArrayList < String > mAutoPairingAddressBlacklist =
 new ArrayList < String > ( Arrays . asList (
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ,
 STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 ,
 STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 ,
 STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 ,
 - STRING24 , STRING25 , STRING26 , STRING27
 + STRING24 , STRING25 , STRING26 , STRING27 , STRING28
 ) ) ;

 SINGLE

Add BMW kits made by Motorola PCS to autoblack list for Bluetooth


<nb> public class ProgramRunnerUtil {

 try {
 runner . execute ( new ExecutionEnvironmentBuilder ( ) . setRunnerAndSettings ( runner , configuration ) . setTarget ( target )
 - . setContentToReuse ( contentToReuse ) . setProject ( project ) . assignNewId ( ) . build ( ) ) ;
 + . setContentToReuse ( contentToReuse ) . setProject ( project ) . setExecutor ( executor ) . assignNewId ( ) . build ( ) ) ;
 }
 catch ( ExecutionException e ) {
 ExecutionUtil . handleExecutionError ( project , executor . getToolWindowId ( ) , configuration . getConfiguration ( ) , e ) ;


<nb> public class ManagedListComponentsTest extends ManagementTestSupport {

 SINGLE
 TabularData data = ( TabularData ) mbeanServer . invoke ( on , STRING0 , null , null ) ;
 - assertEquals ( NUMBER0 , data . size ( ) ) ;
 + assertTrue ( STRING1 , data . size ( ) > NUMBER1 ) ;
 }

 @ override


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

 import NAMESPACE ;

Added Stratosphere header to DefaultDeserializer java


<nb> public class PubSubHubbubCallbackREST {
 log . info ( STRING0 ) ;
 try {
 byte [ ] bytes = IOUtils . toByteArray ( request . getInputStream ( ) ) ;
 - log . info ( new String ( bytes ) ) ;
 FetchedFeed fetchedFeed = parser . parse ( null , bytes ) ;
 String topic = fetchedFeed . getTopic ( ) ;
 if ( topic != null ) {


<nb> public class OGLESShaderRenderer implements Renderer {
 }

 if ( uniform . getVarType ( ) == null ) {
 - logger . log ( Level . FINEST , STRING0 ,
 - new Object [ ] { shader . toString ( ) , uniform . toString ( ) } ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 return ; SINGLE
 }

Removed logging of unset uniform for Android to match Desktop and avoid flooding the log


<nb> public class FloatingActionMenu {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public void updateItemPositions ( ) {
 + SINGLE
 + if ( ! isOpen ( ) ) {
 + return ;
 + }
 + SINGLE
 + calculateItemPositions ( ) ;
 +
 + SINGLE
 + for ( int i = NUMBER0 ; i < subActionItems . size ( ) ; i ++ ) {
 + SINGLE
 + final FrameLayout . LayoutParams params = new FrameLayout . LayoutParams ( subActionItems . get ( i ) . width , subActionItems . get ( i ) . height , Gravity . TOP | Gravity . LEFT ) ;
 + params . setMargins ( subActionItems . get ( i ) . x , subActionItems . get ( i ) . y , NUMBER0 , NUMBER0 ) ;
 + subActionItems . get ( i ) . view . setLayoutParams ( params ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add updateItemPositions method to allow recalculation of menu item positions


<nb> public class ModelMetricsMultinomial extends ModelMetricsSupervised {
 SINGLE
 SINGLE
 SINGLE
 - double err = iact + NUMBER0 < ds . length ? NUMBER0 - ds [ iact + NUMBER0 ] : NUMBER0 ; SINGLE
 + double actprob = ds [ iact + NUMBER0 ] ;
 + if ( Double . isNaN ( actprob ) ) return ds ;
 +
 + double err = iact + NUMBER0 < ds . length ? NUMBER0 - actprob : NUMBER0 ; SINGLE
 _sumsqe += err * err ; SINGLE
 assert ! Double . isNaN ( _sumsqe ) ;

Add extra sanity check for predicted values


<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol
 int extraPadding = itemView . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_medium ) ;
 txtTitle . setPadding (
 txtTitle . getPaddingLeft ( ) ,
 - txtTitle . getTotalPaddingTop ( ) + extraPadding ,
 + txtTitle . getPaddingTop ( ) + extraPadding ,
 txtTitle . getPaddingRight ( ) ,
 txtTitle . getPaddingBottom ( ) ) ;
 SINGLE

Corrected getTotalPaddingTop to getPaddingTop


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

 public class HugoActivity extends Activity {
 <nb> public class HugoActivity extends Activity {

 Greeter greeter = new Greeter ( STRING0 ) ;
 Log . d ( STRING1 , greeter . sayHello ( ) ) ;
 +
 + ( new Annonymous ( ) {
 + @ override
 + @ debuglog
 + public String whoIsThis ( ) {
 + return STRING2 ;
 + }
 + } ) . whoIsThis ( ) ;
 +
 }

 @ debuglog
 <nb> public class HugoActivity extends Activity {
 return STRING3 + name ;
 }
 }
 +
 + private static interface Annonymous {
 + String whoIsThis ( ) ;
 + }
 }

Added example for annonymous inner class


<nb> public interface OTransaction {

 public boolean isUsingLog ( ) ;

 + public void setUsingLog ( boolean useLog ) ;
 }
 <nb> public abstract class OTransactionAbstract implements OTransaction {
 database = iDatabase ;
 }

 - public abstract void setUsingLog ( boolean useLog ) ;
 -
 public boolean isActive ( ) {
 return status != TXSTATUS . INVALID ;
 }

Exposed setUsingLog from OTransactionAbstract to OTransaction


<nb> public class TaskManagerImpl extends TaskManager implements ProjectComponent , Pe
 LocalChangeList changeList = myChangeListManager . getChangeList ( info . id ) ;
 if ( changeList == null ) {
 changeList = myChangeListManager . addChangeList ( info . name , info . comment ) ;
 + info . id = changeList . getId ( ) ;
 }
 myChangeListManager . setDefaultChangeList ( changeList ) ;
 return ;


<nb> public final class ActionManagerImpl extends ActionManagerEx implements Applicat
 }

 public void removeTimerListener ( TimerListener listener ) {
 - final boolean removed = myTimerListeners . remove ( listener ) ;
 - if ( ! removed ) {
 - LOG . error ( STRING0 + listener ) ;
 - }
 + myTimerListeners . remove ( listener ) ;
 }

 public void actionPerformed ( ActionEvent e ) {
 <nb> public final class ActionManagerImpl extends ActionManagerEx implements Applicat
 IdeFocusManager . getInstance ( null ) . doWhenFocusSettlesDown ( new Runnable ( ) {
 public void run ( ) {
 for ( TimerListener listener : listeners ) {
 - runListenerAction ( listener ) ;
 + if ( myTimerListeners . contains ( listener ) ) {
 + runListenerAction ( listener ) ;
 + }
 }
 }
 } ) ;

removed unneeded assertion since listeners may get executed later via focus manager


<nb> public class FragmentActivity extends Activity implements SupportActivity {

 @ override
 public void setTitle ( CharSequence title ) {
 - if ( IS_HONEYCOMB || ( mActionBar . getPublicInstance ( ) == null ) ) {
 + if ( IS_HONEYCOMB || ( getSupportActionBar ( ) == null ) ) {
 super . setTitle ( title ) ;
 } else {
 - mActionBar . setTitle ( title ) ;
 + getSupportActionBar ( ) . setTitle ( title ) ;
 }
 }

 @ override
 public void setTitle ( int titleId ) {
 - if ( IS_HONEYCOMB || ( mActionBar . getPublicInstance ( ) == null ) ) {
 + if ( IS_HONEYCOMB || ( getSupportActionBar ( ) == null ) ) {
 super . setTitle ( titleId ) ;
 } else {
 - mActionBar . setTitle ( titleId ) ;
 + getSupportActionBar ( ) . setTitle ( titleId ) ;
 }
 }

Fix case where title is set before content


<nb> public class Bubble extends RelativeLayout {

 mShape . setPadding ( hPad , vPad , NUMBER0 , NUMBER0 ) ;
 mShape . setVisibility ( VISIBLE ) ;
 + showProgressBar ( false ) ;
 }
 } ) ;

Ensure progress bar is not displayed when page icon displays


<nb> public class BeaconConfigFragment extends Fragment implements TextView . OnEditorA
 Log . d ( TAG , STRING0 + STRING1 + url ) ;
 if ( ! isShortUrl ( url ) ) {
 setEditCardUrl ( url ) ;
 + return ;
 }

 SINGLE
 new PwsClient ( ) . resolve ( Arrays . asList ( url ) , new PwsResultCallback ( ) {
 + public void runSetEditCardUrlOnUiThread ( final String url ) {
 + getActivity ( ) . runOnUiThread ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + setEditCardUrl ( url ) ;
 + }
 + } ) ;
 + }
 +
 @ override
 public void onPwsResult ( PwsResult pwsResult ) {
 - setEditCardUrl ( pwsResult . getSiteUrl ( ) ) ;
 + runSetEditCardUrlOnUiThread ( pwsResult . getSiteUrl ( ) ) ;
 }

 @ override
 public void onPwsResultAbsent ( String url ) {
 - setEditCardUrl ( url ) ;
 + runSetEditCardUrlOnUiThread ( url ) ;
 }
 } ) ;
 }

Fix crash due to invalid thread activity


<nb> public final class H2O {
 } catch ( Throwable ex ) {
 SINGLE
 SINGLE
 - h2o . onExceptionalCompletion ( ex , h2o . getCompleter ( ) ) ;
 + if ( h2o != null ) h2o . onExceptionalCompletion ( ex , h2o . getCompleter ( ) ) ;
 } finally {
 t . _priority = pp ;
 if ( pp == MIN_PRIORITY ) Thread . currentThread ( ) . setPriority ( Thread . NORM_PRIORITY - NUMBER0 ) ;


<nb> public class RouteCalculationResult {
 if ( Math . abs ( diff ) > NUMBER0 ) {
 type = diff > NUMBER1 ? TurnType . KL : TurnType . KR ;
 }
 - RouteDirectionInfo info = new RouteDirectionInfo ( NUMBER2 , TurnType . valueOf ( type , false ) ) ;
 + SINGLE
 + RouteDirectionInfo info = new RouteDirectionInfo ( NUMBER3 , TurnType . valueOf ( type , false ) ) ;
 info . distance = NUMBER1 ;
 info . afterLeftTime = NUMBER1 ;
 info . routePointOffset = locations . size ( ) - NUMBER2 ;

improve travel time display for GPX routes with calculated first segment


<nb> public class Dream extends Service implements Window . Callback {

 @ override
 public void onAttachedToWindow ( ) {
 - mWindow . addFlags (
 - WindowManager . LayoutParams . FLAG_ALLOW_LOCK_WHILE_SCREEN_ON
 - | WindowManager . LayoutParams . FLAG_SHOW_WHEN_LOCKED
 - ) ;
 - lightsOut ( ) ;
 }

 @ override
 <nb> public class Dream extends Service implements Window . Callback {
 SINGLE
 final View v = mWindow . getDecorView ( ) ;
 if ( v != null ) {
 - v . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_LOW_PROFILE ) ;
 + v . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_LOW_PROFILE
 + | View . SYSTEM_UI_FLAG_FULLSCREEN ) ;
 }
 }


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppress SINGLE
 public class StateMachineTest extends TestCase {
 private static final String ENTER = STRING0 ;
 private static final String EXIT = STRING1 ;


<nb> public class Jaxb2MarshallerTests extends AbstractMarshallerTests {
 }

 @ test
 + public void supportsXmlRootElement ( ) throws Exception {
 + marshaller = new Jaxb2Marshaller ( ) ;
 + marshaller . setClassesToBeBound ( new Class [ ] { DummyRootElement . class , DummyType . class } ) ;
 + marshaller . afterPropertiesSet ( ) ;
 + assertTrue ( STRING0 , marshaller . supports ( DummyRootElement . class ) ) ;
 + assertTrue ( STRING1 , marshaller . supports ( ( Type ) DummyRootElement . class ) ) ;
 +
 + assertFalse ( STRING2 , marshaller . supports ( DummyType . class ) ) ;
 + assertFalse ( STRING3 , marshaller . supports ( ( Type ) DummyType . class ) ) ;
 + }
 +
 +
 + @ test
 public void marshalAttachments ( ) throws Exception {
 marshaller = new Jaxb2Marshaller ( ) ;
 marshaller . setClassesToBeBound ( new Class [ ] { BinaryObject . class } ) ;


<nb> public final class HikariPool implements HikariPoolMBean
 {
 addConnections ( AddConnectionStrategy . ONLY_IF_EMPTY ) ;
 }
 -
 +
 IHikariConnectionProxy connectionProxy = idleConnectionBag . borrow ( timeout , TimeUnit . MILLISECONDS ) ;
 if ( connectionProxy == null )
 {


<nb> public class JarDirectoryStep implements Step {
 continue ;
 }

 - jar . putNextEntry ( entry ) ;
 + SINGLE
 + SINGLE
 + ZipEntry newEntry = new ZipEntry ( entry ) ;
 + newEntry . setCompressedSize ( - NUMBER0 ) ;
 +
 + jar . putNextEntry ( newEntry ) ;
 InputStream inputStream = zip . getInputStream ( entry ) ;
 ByteStreams . copy ( inputStream , jar ) ;
 jar . closeEntry ( ) ;

Reset compressed size when combining JAR ZIP archives


<nb> public class RecentTasksLoader implements View . OnTouchListener {
 mContext . getSystemService ( Context . ACTIVITY_SERVICE ) ;

 final List < ActivityManager . RecentTaskInfo > recentTasks =
 - am . getRecentTasksForUser ( MAX_TASKS ,
 - ActivityManager . RECENT_IGNORE_UNAVAILABLE , UserHandle . USER_CURRENT ) ;
 + am . getRecentTasks ( MAX_TASKS , ActivityManager . RECENT_IGNORE_UNAVAILABLE ) ;
 int numTasks = recentTasks . size ( ) ;
 ActivityInfo homeInfo = new Intent ( Intent . ACTION_MAIN )
 . addCategory ( Intent . CATEGORY_HOME ) . resolveActivityInfo ( pm , NUMBER0 ) ;


<nb> public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo
 SINGLE
 SINGLE
 SINGLE
 - public boolean block ( ) {
 + public boolean block ( ) throws InterruptedException {
 while ( ! isDone ( ) ) join ( ) ;
 return true ;
 }


<nb> public class StringLogger
 file . getParentFile ( ) . mkdirs ( ) ;
 }
 out = new PrintWriter ( new FileWriter ( file , true ) ) ;
 - System . out . println ( STRING0 + filename ) ;
 }
 catch ( IOException e )
 {
 <nb> public class StringLogger
 {
 if ( storeDir == null )
 {
 - new Exception ( ) . printStackTrace ( ) ;
 return SYSTEM ;
 }

 <nb> public class StringLogger
 if ( logger != null )
 {
 logger . out . close ( ) ;
 - System . out . println ( STRING1 + defaultFileName ( storeDir ) ) ;
 }
 }
 }


<nb> public class CropImageView extends FrameLayout {
 }
 }
 bundle . putInt ( STRING0 , mDegreesRotated ) ;
 + bundle . putParcelable ( STRING1 , mCropOverlayView . getInitialCropWindowRect ( ) ) ;
 return bundle ;
 }

 <nb> public class CropImageView extends FrameLayout {
 mDegreesRotated = tmpRotated ;
 }

 + mCropOverlayView . setInitialCropWindowRect ( ( Rect ) bundle . getParcelable ( STRING1 ) ) ;
 +
 super . onRestoreInstanceState ( bundle . getParcelable ( STRING2 ) ) ;
 } else {
 super . onRestoreInstanceState ( state ) ;
 <nb> public class CropOverlayView extends View {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + public Rect getInitialCropWindowRect ( ) {
 + return mInitialCropWindowRect ;
 + }
 +
 + COMMENT
 + COMMENT
 COMMENT
 public void setInitialCropWindowRect ( Rect rect ) {
 mInitialCropWindowRect = rect ;

fix initial crop window rectangle cleared on rotation use state


<nb> public class InputEditorUtil
 line = editor . getText ( ) ;
 pos = editor . getSelection ( ) . getStart ( ) . getPosition ( ) ;
 SINGLE
 - for ( ; pos < line . length ( ) && Character . isLetterOrDigit ( line . charAt ( pos ) ) ; pos ++ )
 + for ( ; pos < line . length ( ) && isRIdentifierChar ( line . charAt ( pos ) ) ; pos ++ )
 {
 }
 }
 <nb> public class InputEditorUtil

 return new InputEditorLineWithCursorPosition ( line , pos ) ;
 }
 +
 + private static boolean isRIdentifierChar ( char ch )
 + {
 + return Character . isLetterOrDigit ( ch ) || ch == STRING0 || ch == STRING1 ;
 + }

 private static String lastYanked ;
 }

correctly test for R indentifer characters in input handler


<nb> public class QueryProcessor
 logger . trace ( STRING0 , queryString ) ;

 CQLStatement statement = getStatement ( queryString ) ;
 +
 + return process ( statement , clientState ) ;
 + }
 +
 + public static CqlResult process ( CQLStatement statement , ClientState clientState )
 + throws RecognitionException , UnavailableException , InvalidRequestException , TimedOutException , SchemaDisagreementException
 + {
 String keyspace = null ;

 SINGLE

add method signature for processing a already parsed CQL statement


<nb> class AppWidgetServiceImpl {
 return ;
 }

 - int bitmapMemoryUsage = views . estimateMemoryUsage ( ) ;
 + int bitmapMemoryUsage = NUMBER0 ;
 + if ( views != null ) {
 + bitmapMemoryUsage = views . estimateMemoryUsage ( ) ;
 + }
 if ( bitmapMemoryUsage > mMaxWidgetBitmapMemory ) {
 throw new IllegalArgumentException ( STRING0 +
 STRING1 + bitmapMemoryUsage + STRING2 +

Fixing issue where you couldn t set null RemoteViews for a widget


<nb> public class TokenBasedRememberMeServices implements RememberMeServices , Initial
 protected Cookie makeCancelCookie ( HttpServletRequest request ) {
 Cookie cookie = new Cookie ( ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY , null ) ;
 cookie . setMaxAge ( NUMBER0 ) ;
 - cookie . setPath ( request . getContextPath ( ) ) ;
 + cookie . setPath ( StringUtils . hasLength ( request . getContextPath ( ) ) ? request . getContextPath ( ) : STRING0 ) ;

 return cookie ;
 }
 <nb> public class TokenBasedRememberMeServices implements RememberMeServices , Initial
 protected Cookie makeValidCookie ( long expiryTime , String tokenValueBase64 , HttpServletRequest request ) {
 Cookie cookie = new Cookie ( ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY , tokenValueBase64 ) ;
 cookie . setMaxAge ( NUMBER1 * NUMBER1 * NUMBER2 * NUMBER3 * NUMBER4 ) ; SINGLE
 - cookie . setPath ( request . getContextPath ( ) ) ;
 + cookie . setPath ( StringUtils . hasLength ( request . getContextPath ( ) ) ? request . getContextPath ( ) : STRING0 ) ;

 return cookie ;
 }


<nb> public class MediaUtils {
 }
 return url . endsWith ( STRING0 ) || url . endsWith ( STRING1 ) || url . endsWith ( STRING2 ) || url . endsWith ( STRING3 ) ||
 url . endsWith ( STRING4 ) || url . endsWith ( STRING5 ) || url . endsWith ( STRING6 ) || url . endsWith ( STRING7 ) ||
 - url . endsWith ( STRING8 ) ;
 + url . endsWith ( STRING8 ) || url . contains ( STRING9 ) ;
 }

 public static boolean isAudio ( String url ) {

Moved the check for video to within ImageUtils


<nb> public class SentimentCostAndGradient extends AbstractCachingDiffFunction {
 SimpleMatrix fullVector = RNNUtils . concatenate ( leftVector , rightVector ) ;
 for ( int slice = NUMBER0 ; slice < size ; ++ slice ) {
 SimpleMatrix scaledFullVector = fullVector . scale ( deltaFull . get ( slice ) ) ;
 - deltaTensor = deltaTensor . plus ( Wt . getSlice ( slice ) . mult ( Wt . getSlice ( slice ) . transpose ( ) ) . mult ( scaledFullVector ) ) ;
 + deltaTensor = deltaTensor . plus ( Wt . getSlice ( slice ) . plus ( Wt . getSlice ( slice ) . transpose ( ) ) . mult ( scaledFullVector ) ) ;
 }
 return deltaTensor . plus ( WTDeltaNoBias ) ;
 }


<nb> public class GitBlit implements ServletContextListener {
 }
 }

 + SINGLE
 + SINGLE
 + webxmlSettings . overrideSetting ( Keys . git . daemonPort , NUMBER0 ) ;
 +
 SINGLE
 configureContext ( webxmlSettings , base , true ) ;
 } else {

Automatically disable the Git daemon on Express


<nb> public class AccelListener extends Plugin implements SensorEventListener {
 if ( this . status == AccelListener . STOPPED ) {
 return ;
 }
 - Log . d ( STRING0 , STRING1 + accuracy ) ;
 this . accuracy = accuracy ;
 }

 <nb> public class AccelListener extends Plugin implements SensorEventListener {
 }
 return r ;
 }
 - }
 + }


<nb> public abstract class BuilderSupport {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + public ValueBuilder constant ( Object value ) {
 + return Builder . constant ( value ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

allow a constant value to be easily used in an expression


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 public class GradleBackedArtifactBuilder implements ArtifactBuilder {
 <nb> public class GradleBackedArtifactBuilder implements ArtifactBuilder {
 rootDir . file ( STRING0 ) . writelns (
 STRING1 ,
 STRING2 ,
 - String . format ( STRING3 , jarFile . getParentFile ( ) ) ,
 + String . format ( STRING3 , GradleUtil . unbackslash ( jarFile . getParentFile ( ) ) ,
 String . format ( STRING4 , jarFile . getName ( ) )
 ) ;
 executer . inDirectory ( rootDir . asFile ( ) ) . withTasks ( STRING5 , STRING6 ) . run ( ) ;


<nb> public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
 resultType = ArrayList_TYPE ;
 } else {
 MethodNode mn = findMethodOrFail ( expression , type , name ) ;
 - resultType = mn . getReturnType ( ) ;
 + if ( mn != null ) {
 + resultType = mn . getReturnType ( ) ;
 + } else {
 + resultType = type ;
 + }
 }
 storeType ( expression , resultType ) ;
 }

Fixed NPE when unary method is not found


<nb> public class MetricRepositoryAutoConfiguration {
 static class MetricRepositoryConfiguration {

 @ bean
 - public InMemoryMetricRepository metricRepository ( ) {
 + public InMemoryMetricRepository actuatorMetricRepository ( ) {
 return new InMemoryMetricRepository ( ) ;
 }

Change bean name metricReporitory actuatorMetricRepository


<nb> public class TestEnvironment {
 SINGLE
 public void flop ( Throwable thr , String msg ) {
 try {
 - fail ( msg ) ;
 + fail ( msg , thr ) ;
 } catch ( Throwable t ) {
 asyncErrors . add ( thr ) ;
 }
 <nb> public class TestEnvironment {
 if ( e instanceof AssertionError ) {
 throw ( AssertionError ) e ;
 } else {
 - fail ( STRING0 + e ) ;
 + fail ( STRING0 + e . getMessage ( ) , e ) ;
 }
 }
 }

tck carry the original exception to fail helps tracking exceptions


<nb> public interface ResolutionStrategy {
 COMMENT
 @ incubating
 ResolutionStrategy componentSelection ( Action < ? super ComponentSelectionRules > action ) ;
 - COMMENT

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ incubating
 DependencySubstitutions getDependencySubstitution ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ incubating
 ResolutionStrategy dependencySubstitution ( Action < ? super DependencySubstitutions > action ) ;
 - COMMENT
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 public interface ResolutionStrategyInternal extends ResolutionStrategy {

 <nb> public interface ResolutionStrategyInternal extends ResolutionStrategy {
 COMMENT
 ComponentSelectionRulesInternal getComponentSelection ( ) ;

 - DependencySubstitutionsInternal getDependencySubstitution ( ) ;
 -
 COMMENT
 COMMENT
 COMMENT

Put dependency substitution back onto the ResolutionStrategy API


<nb> public class MapContextMenu {
 menuController = new HistoryMenuController ( app , mapActivity , ( HistoryEntry ) object ) ;
 } else if ( object instanceof LatLon ) {
 if ( pointDescription . isParking ( ) ) {
 - menuController = new ParkingPositionController ( app , mapActivity , pointDescription , latLon ) ;
 + menuController = new ParkingPositionController ( app , mapActivity , pointDescription , ( LatLon ) object ) ;
 }
 }
 } else {
 <nb> public class ParkingPositionController extends MenuController {

 @ override
 public void saveEntityState ( Bundle bundle , String key ) {
 + bundle . putSerializable ( key , latLon ) ;
 }
 }


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

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

 import NAMESPACE ;


<nb> public abstract class AbstractFsBlobContainer extends AbstractBlobContainer {
 FileInputStream is = null ;
 try {
 is = new FileInputStream ( new File ( path , blobName ) ) ;
 - } catch ( FileNotFoundException e ) {
 - IOUtils . closeWhileHandlingException ( is ) ;
 - listener . onFailure ( e ) ;
 - return ;
 - }
 - try {
 int bytesRead ;
 while ( ( bytesRead = is . read ( buffer ) ) != - NUMBER0 ) {
 listener . onPartial ( buffer , NUMBER1 , bytesRead ) ;
 }
 - listener . onCompleted ( ) ;
 - } catch ( Exception e ) {
 + } catch ( Throwable e ) {
 IOUtils . closeWhileHandlingException ( is ) ;
 listener . onFailure ( e ) ;
 + return ;
 }
 + IOUtils . closeWhileHandlingException ( is ) ;
 + listener . onCompleted ( ) ;
 }
 } ) ;
 }

Fix file handle leak in readBlob method of AbstractFsBlobContainer


<nb> public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract {
 beginResponse ( ) ;
 try {
 final ORecordMetadata metadata = connection . database . getRecordMetadata ( rid ) ;
 - sendOk ( clientTxId ) ;
 - channel . writeRID ( metadata . getRecordId ( ) ) ;
 - channel . writeVersion ( metadata . getRecordVersion ( ) ) ;
 + if ( metadata != null ) {
 + sendOk ( clientTxId ) ;
 + channel . writeRID ( metadata . getRecordId ( ) ) ;
 + channel . writeVersion ( metadata . getRecordVersion ( ) ) ;
 + } else
 + {
 + throw new ODatabaseException ( String . format ( STRING0 , rid ) ) ;
 + }
 } finally {
 endResponse ( ) ;
 }

calling remote protocol for non existent record metadata will cause the binary protocol to become corrupted


<nb> public class NewDirectoryProjectAction extends AnAction implements DumbAware {
 NewDirectoryProjectDialog dlg = new NewDirectoryProjectDialog ( project ) ;
 dlg . show ( ) ;
 if ( dlg . getExitCode ( ) != DialogWrapper . OK_EXIT_CODE ) return ;
 -
 + generateProject ( project , dlg ) ;
 }

 protected Object showSettings ( DirectoryProjectGenerator generator , VirtualFile baseDir )


<nb> public class DatabaseReconciliatorTest {
 TestResult expectedTestResult = new TestResult ( ) ;

 expectedTestResult . winnersLastDatabaseVersionHeader = TestDatabaseUtil . createMapWithMachineKey ( new String [ ] {
 - STRING0 , STRING1
 + STRING2 , STRING3
 } ) . firstEntry ( ) ;

 SINGLE

Fix expected output of test needs checking


<nb> public class ActionItemBadge {

 }

 + public static void update ( final Activity activity , final MenuItem menu , Drawable icon , BadgeStyle style , int badgeCount ) {
 + update ( activity , menu , icon , style , badgeCount , null ) ;
 + }

 public static void update ( final Activity activity , final MenuItem menu , Drawable icon , BadgeStyle style , int badgeCount , ActionItemBadgeListener listener ) {
 if ( badgeCount == Integer . MIN_VALUE ) {


<nb> public class Broadcastable {
 this . b = b ;
 this . message = message ;
 this . callerMessage = callerMessage ;
 + if ( callerMessage == null ) {
 + throw new NullPointerException ( STRING0 ) ;
 + }
 }

 COMMENT


<nb> public class UIServiceImpl
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public void setConfigurationWindowVisible ( boolean visible )
 - {
 - if ( isVisible ( ) && configurationFrame == null )
 - configurationFrame = new ConfigurationFrame ( mainFrame ) ;
 -
 - if ( configurationFrame != null )
 - configurationFrame . setVisible ( visible ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface UIService
 public boolean useMacOSXScreenMenuBar ( ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public void setConfigurationWindowVisible ( boolean visible ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove deprecated method to show config window


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

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

 + import static NAMESPACE ;
 + import static NAMESPACE ;
 +
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 @ documented
 - @ retention ( RetentionPolicy . RUNTIME )
 - @ target ( ElementType . METHOD )
 + @ retention ( RUNTIME )
 + @ target ( { METHOD , ANNOTATION_TYPE } )
 public @ interface Rollback {

 COMMENT

Provide meta annotation support for Rollback


<nb> public class KafkaConsumer extends DefaultConsumer {
 }
 LOG . debug ( STRING0 , threadId , topicName ) ;
 consumer . unsubscribe ( ) ;
 + LOG . debug ( STRING1 , threadId ) ;
 + consumer . close ( ) ;
 } catch ( InterruptException e ) {
 getExceptionHandler ( ) . handleException ( STRING2 + threadId + STRING3 , e ) ;
 consumer . unsubscribe ( ) ;
 Thread . currentThread ( ) . interrupt ( ) ;
 } catch ( Exception e ) {
 getExceptionHandler ( ) . handleException ( STRING4 + threadId + STRING3 , e ) ;
 + } finally {
 + LOG . debug ( STRING1 , threadId ) ;
 + consumer . close ( ) ;
 }
 }

Camel leaves Kafka consumers running after shutdown


<nb> public class WindowManagerService extends IWindowManager . Stub
 break ;

 case TAP_OUTSIDE_STACK : {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + int stackId ;
 + synchronized ( mWindowMap ) {
 + stackId = ( ( DisplayContent ) msg . obj ) . stackIdFromPoint ( msg . arg1 , msg . arg2 ) ;
 + }
 + if ( stackId >= NUMBER0 ) {
 + try {
 + mActivityManager . setFocusedStack ( stackId ) ;
 + } catch ( RemoteException e ) {
 + }
 + }
 }
 break ;
 case NOTIFY_ACTIVITY_DRAWN :

Revert Defer tap outside stack until multiwindows


<nb> public class Model implements Disposable {
 COMMENT
 public Array < Animation > animation = new Array < Animation > ( ) ;

 + public Model ( ) { }
 +
 COMMENT
 COMMENT
 COMMENT


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class AttrSelector {
 return element . attributes ( ) . get ( name ) . matches ( value ) ;
 }
 }
 -
 -
 -

 -
 -
 + public static class AttrNamePrefixSelector extends BaseAttrSelector implements Selector {

 + public AttrNamePrefixSelector ( String name ) {
 + super ( name , null ) ;
 + }

 + @ override
 + public boolean select ( Element element ) {
 + Attributes attrs = element . attributes ( ) ;
 +
 + for ( Attribute attr : attrs ) {
 + if ( attr . getKey ( ) . startsWith ( name ) )
 + return true ;
 + }
 +
 + return false ;
 + }
 + }
 }


<nb> public final class SmackConfiguration {
 }

 private static void readFile ( InputStream cfgFileStream ) {
 - XmlPullParser parser = new MXParser ( ) ;
 try {
 + XmlPullParser parser = new MXParser ( ) ;
 parser . setFeature ( XmlPullParser . FEATURE_PROCESS_NAMESPACES , true ) ;
 parser . setInput ( cfgFileStream , STRING0 ) ;
 int eventType = parser . getEventType ( ) ;


<nb> public class PluginClassloaderFactory {
 . addInclusion ( STRING0 )
 . addInclusion ( STRING1 )
 . addInclusion ( STRING2 )
 + . addInclusion ( STRING3 )
 . addInclusion ( STRING4 )

 SINGLE

Keep compatibility with deprecated JFreeChart


<nb> public class MapActivityActions implements DialogProvider {
 } else if ( which == NUMBER0 ) {
 int sz = targetPointsHelper . getIntermediatePoints ( ) . size ( ) ;
 LatLon pt = targetPointsHelper . getPointToNavigate ( ) ;
 - settings . insertIntermediatePoint ( pt . getLatitude ( ) , pt . getLongitude ( ) ,
 - settings . getPointNavigateDescription ( ) , sz , true ) ;
 - settings . setPointToNavigate ( lat , lon , true , name ) ;
 + settings . insertIntermediatePoint ( lat , lon , name , sz , true ) ;
 + settings . setPointToNavigate ( pt . getLatitude ( ) , pt . getLongitude ( ) , true , settings . getPointNavigateDescription ( ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 } else {
 settings . insertIntermediatePoint ( lat , lon , name , NUMBER1 , true ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ChangeSignatureDialogBase < ParamInfo extends ParameterInfo ,

 protected abstract class ParametersListTable extends JBListTable {
 public ParametersListTable ( ) {
 - super ( myParametersTable ) ;
 + super ( myParametersTable , ChangeSignatureDialogBase . this . getDisposable ( ) ) ;
 }

 @ override

Pass DialogWrapper s disposable to the list table in Change Signature dialog


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


<nb> public class JRubyI18nTest {
 @ test
 public void age_from_now ( ) throws Exception {
 Date date = new Date ( ) ;
 - jRubyI18n . ageFromNow ( new Date ( ) ) ;
 + jRubyI18n . ageFromNow ( date ) ;
 verify ( i18n ) . ageFromNow ( any ( Locale . class ) , eq ( date ) ) ;
 }


<nb> href = STRING0 > Traceview : A Graphical Lo
 COMMENT
 COMMENT
 public static long countInstancesOfClass ( Class cls ) {
 - return VMDebug . countInstancesOfClass ( cls ) ;
 + return VMDebug . countInstancesOfClass ( cls , true ) ;
 }

 COMMENT


<nb> public class OptimizeImportsAction extends AnAction {
 if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
 includeSubdirectories = processDirectory = false ;
 }
 - else if ( ! EditorSettingsExternalizable . getInstance ( ) . getOptions ( ) . SHOW_OPIMIZE_IMPORTS_DIALOG ) {
 + else if ( ! EditorSettingsExternalizable . getInstance ( ) . getOptions ( ) . SHOW_OPIMIZE_IMPORTS_DIALOG && file != null ) {
 includeSubdirectories = processDirectory = false ;
 }
 else {

Optimize imports invoked on directory reformats entire project


<nb> public class DiagnosticGroups {
 + STRING0
 + STRING1
 + STRING2
 - + STRING3 ;
 + + STRING4 ;

 public static final DiagnosticGroup GLOBAL_THIS =
 DiagnosticGroups . registerGroup ( STRING5 ,
 <nb> public class DiagnosticGroups {
 CheckAccessControls . DEPRECATED_CLASS ,
 CheckAccessControls . DEPRECATED_CLASS_REASON ) ;

 + public static final DiagnosticGroup UNDERSCORE =
 + DiagnosticGroups . registerGroup ( STRING6 , SINGLE
 + CheckJSDocStyle . MUST_BE_PRIVATE ,
 + CheckJSDocStyle . MUST_HAVE_TRAILING_UNDERSCORE ) ;
 +
 public static final DiagnosticGroup VISIBILITY =
 DiagnosticGroups . registerGroup ( STRING7 ,
 CheckAccessControls . BAD_PRIVATE_GLOBAL_ACCESS ,

Make new underscore warnings suppressible


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

 <nb> public class JUnitRunner {
 tests . remove ( DeepLearningProstateTest . Long . class ) ;
 tests . remove ( GLMRandomTest . Short . class ) ;
 tests . remove ( GLMRandomTest . Long . class ) ;
 - tests . remove ( ParserTest . ParseAllSmalldata . class ) ;
 SINGLE
 tests . remove ( TreeTestWithBalanceAndCrossVal . class ) ;

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

 <nb> public class JUnitRunnerDebug {
 SINGLE
 SINGLE

 - tests . add ( ParserTest . ParseAllSmalldata . class ) ;
 tests . add ( GLMRandomTest . Short . class ) ;
 SINGLE
 SINGLE


<nb> public class Delay extends Action {
 }

 @ override public Actor getTarget ( ) {
 - action . getTarget ( ) ;
 - return null ;
 + return action . getTarget ( ) ;
 }
 }


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ target ( METHOD )
 @ retention ( RUNTIME )
 @ documented


<nb> public class ColorpickerRenderer extends AbstractWidgetRenderer {
 }
 String label = getLabel ( cp ) ;
 String purelabel = label ;
 + purelabel = purelabel . replaceAll ( STRING0 , STRING1 ) ;
 if ( label . contains ( STRING2 ) ) {
 purelabel = purelabel . substring ( NUMBER0 , label . indexOf ( STRING2 ) ) ;
 }

Fixed javascript that was breaking the colorpicker


<nb> public class LatencyContainer {
 }

 public static LatencyContainer latency ( long latency ) {
 - LatencyContainer latencyContainer = new LatencyContainer ( ) ;
 - latencyContainer . latency = latency ;
 - return latencyContainer ;
 + return latencyWithUnit ( latency , TimeUnit . MILLISECONDS ) ;
 }

 public static LatencyContainer latencyWithUnit ( long latency , TimeUnit timeUnit ) {

unified latency with unit implementation in latency container


<nb> public class JavaSourceJar extends AbstractBuildRule {

 @ override
 protected RuleKey . Builder appendDetailsToRuleKey ( RuleKey . Builder builder ) {
 - return builder . setReflectively ( STRING0 , getResolver ( ) . filterInputsToCompareToOutput ( sources ) ) ;
 + return builder ;
 }

 @ override


<nb> public class NodeInfo extends NodeOperationResponse {
 this . jvm = jvm ;
 this . network = network ;
 this . transport = transport ;
 + this . http = http ;
 }

 COMMENT

set http on NodeInfo instances if it is passed in the constructor


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class JavaFileElementType extends IStubFileElementType < PsiJavaFileStub > {
 - public static final int STUB_VERSION = NUMBER0 ;
 + public static final int STUB_VERSION = NUMBER1 ;

 public JavaFileElementType ( ) {
 super ( STRING0 , StdLanguages . JAVA ) ;

update Java stub version to ensure that cls parameter names are picked up


<nb> public class CompileDriver {
 LOG . assertTrue ( outputPath . exists ( ) ) ;
 }
 if ( ! deleteFile ( outputPath ) ) {
 - if ( isTestMode && outputPath . exists ( ) ) {
 - LOG . error ( STRING0 + outputPath . getPath ( ) ) ;
 + if ( isTestMode ) {
 + if ( outputPath . exists ( ) ) {
 + LOG . error ( STRING0 + outputPath . getPath ( ) ) ;
 + }
 + else {
 + CompilerManagerImpl . addDeletedPath ( outputPath . getPath ( ) ) ;
 + }
 }
 continue ;
 }

this will probably fix undeterministic tests behaviour


<nb> public final class ComputationState {
 classcols [ k ++ ] = cols [ i ++ ] - c * N ;
 classcols = ArrayUtils . sortedMerge ( oldActiveCols , Arrays . copyOf ( classcols , k ) ) ;
 sum += classcols . length ;
 - if ( classcols . length < NUMBER0 )
 - System . out . println ( STRING0 + c + STRING1 + Arrays . toString ( classcols ) ) ;
 _activeDataMultinomial [ c ] = _dinfo . filterExpandedColumns ( classcols ) ;
 -
 }
 assert _parms . _max_active_predictors == - NUMBER1 || sum <= _parms . _max_active_predictors + _nclasses : STRING2 + sum + STRING3 + _parms . _max_active_predictors + STRING4 + _nclasses ;
 _allIn = sum == N * _nclasses ;


<nb> public class MvelScriptEngineService extends AbstractComponent implements Script

 @ override
 public Object compile ( String script ) {
 - return MVEL . compileExpression ( script , new ParserContext ( parserConfiguration ) ) ;
 + return MVEL . compileExpression ( script . trim ( ) , new ParserContext ( parserConfiguration ) ) ;
 }

 @ override

Trimming MVEL scripts before compiling them


<nb> public class TransformUncorrelatedInPredicateSubqueryToSemiJoin
 replaceInPredicates ( node . getPredicate ( ) ) ) ;
 }

 - private Expression replaceInPredicates ( Expression expression )
 - {
 - for ( Map < InPredicate , Expression > inPredicateMapping : inPredicateMappings ) {
 - expression = replaceExpression ( expression , inPredicateMapping ) ;
 - }
 - return expression ;
 - }
 -
 @ override
 public PlanNode visitProject ( ProjectNode node , RewriteContext < Void > context )
 {
 <nb> public class TransformUncorrelatedInPredicateSubqueryToSemiJoin
 }
 return assignmentsBuilder . build ( ) ;
 }
 +
 + private Expression replaceInPredicates ( Expression expression )
 + {
 + for ( Map < InPredicate , Expression > inPredicateMapping : inPredicateMappings ) {
 + expression = replaceExpression ( expression , inPredicateMapping ) ;
 + }
 + return expression ;
 + }
 }

 private static List < InPredicate > extractApplyInPredicates ( Collection < Expression > expressions )

Move replaceInPredicates method under the usage


<nb> abstract class PersistentEnumeratorBase < Data > implements Forceable , Closeable {
 catch ( Throwable e ) {
 markCorrupted ( ) ;
 LOG . info ( e ) ;
 - throw new RuntimeException ( e ) ;
 + throw new IOException ( e ) ;
 }

 if ( myDoCaching && id != NULL_ID ) {


<nb> class Validator {
 ELNode . Nodes el = ELParser . parse ( value ) ;

 if ( el . containsEL ( ) && ! pageInfo . isELIgnored ( )
 - && ( ! pageInfo . isDeferredSyntaxAllowedAsLiteral ( ) && value . startsWith ( STRING0 ) ) ) {
 + && ( ( ! pageInfo . isDeferredSyntaxAllowedAsLiteral ( ) && value . startsWith ( STRING0 ) )
 + || value . startsWith ( STRING1 ) ) ) {
 +
 validateFunctions ( el , n ) ;

 result = new Node . JspAttribute ( tai , qName , uri ,

Fix a regression on classic EL expressions inside elements


<nb> public class Runner {
 SINGLE
 FileAppender update = new FileAppender ( ) ;

 - update . setFile ( tmpDir + STRING0 ) ;
 + update . setFile ( new File ( tmpDir , STRING0 ) . getAbsolutePath ( ) ) ;
 update . setLayout ( new PatternLayout ( STRING1 ) ) ;
 update . setThreshold ( Level . ALL ) ;
 update . setAppend ( true ) ;
 update . activateOptions ( ) ;

 FileAppender updateError = new FileAppender ( ) ;
 - updateError . setFile ( tmpDir + STRING2 ) ;
 + updateError . setFile ( new File ( tmpDir , STRING2 ) . getAbsolutePath ( ) ) ;
 updateError . setLayout ( new PatternLayout ( STRING1 ) ) ;
 updateError . setThreshold ( Level . ERROR ) ;
 SINGLE


<nb> public class PrintfFormat {
 public String form ( char value ) {
 switch ( fmt ) {
 case STRING0 :
 - return alternate ? STRING1 + form ( ( short ) value ) : pad ( String . valueOf ( value ) ) ;
 + return alternate ? STRING1 + pad ( Printf . str ( STRING2 , ( short ) value ) ) : pad ( String . valueOf ( value ) ) ;
 case STRING3 :
 case STRING4 :
 case STRING5 :


<nb> class Elasticsearch extends Command {
 private final OptionSpec < String > pidfileOption ;
 private final OptionSpec < KeyValuePair > propertyOption ;

 - COMMENT
 + SINGLE
 Elasticsearch ( ) {
 super ( STRING0 ) ;
 SINGLE

Fix javadoc comment on Elasticsearch init


<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 FrameVariablesTree extends DebuggerTree {
 if ( myVisibleLocals . contains ( var . getName ( ) ) ) {
 myVars . add ( var . getName ( ) ) ;
 }
 - else if ( var instanceof PsiLocalVariable ) {
 - myExpressions . add ( new TextWithImportsImpl ( reference ) ) ;
 + else {
 + SINGLE
 + if ( ! Comparing . equal ( PsiTreeUtil . getParentOfType ( reference , PsiClass . class ) ,
 + PsiTreeUtil . getParentOfType ( var , PsiClass . class ) ) ) {
 + myExpressions . add ( new TextWithImportsImpl ( reference ) ) ;
 + }
 }
 }
 }

do not show local variables before they are available


<nb> public abstract class BuilderSupport extends GroovyObjectSupport {
 protected Object getCurrent ( ) {
 return current ;
 }
 +
 + protected void setCurrent ( Object current ) {
 + this . current = current ;
 + }
 }

added helper method for builder implementations


<nb> public class SignChangeEvent extends BlockEvent implements Cancellable {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Player getPlayer ( ) {
 + return player ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public String [ ] getLines ( )
 - {
 + public String [ ] getLines ( ) {
 return lines ;
 }

Added getPlayer method to SignChangeEvent


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

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class RecordOutputFormat extends FileOutputFormat
 {


<nb> public class UnicastZenPing extends AbstractLifecycleComponent < ZenPing > implemen
 SINGLE
 SINGLE
 SINGLE
 - if ( pingResponse . master ( ) != null ) {
 + SINGLE
 + if ( existingResponse . master ( ) == null || pingResponse . master ( ) != null ) {
 responses . put ( pingResponse . node ( ) , pingResponse ) ;
 }
 }
 <nb> package NAMESPACE ;

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

 @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 )
 - @ lucenetestcase.awaitsfix ( bugUrl = STRING0 )
 public class IndicesLifecycleListenerTests extends ElasticsearchIntegrationTest {

 @ test

restore preference to latest unicast pings describing the same node


<nb> import static NAMESPACE ;
 public class DynamicReferencesTest extends ActorBaseTest
 {

 - public static interface AptUnfriendly extends Actor
 + public interface AptUnfriendly extends Actor
 {
 Task < String > hello ( ) ;
 }
 <nb> public class DynamicReferencesTest extends ActorBaseTest
 assertEquals ( STRING0 , ref . hello ( ) . join ( ) ) ;
 }

 + @ test ( expected = IllegalArgumentException . class )
 + public void testIllegalRef ( ) {
 + AptUnfriendly ref = Actor . getReference ( AptUnfriendlyActor . class , STRING1 ) ;
 + }
 +
 }

Rejecting calls to Actor getReference with actor implementation classes


<nb>
 package NAMESPACE ;

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

 <nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LocalScheduler extends AbstractScheduler implements JobStatusListen
 return ;
 }

 - SINGLE
 - try {
 - allocatedResource . getInstance ( ) . checkLibraryAvailability ( jobID ) ;
 - } catch ( IOException ioe ) {
 - LOG . error ( STRING0 + StringUtils . stringifyException ( ioe ) ) ;
 - }
 -
 synchronized ( this . jobQueue ) {

 final ExecutionGraph eg = getExecutionGraphByID ( jobID ) ;


<nb> public class PrivacyService {
 }
 if ( mDb != null && mDb . getVersion ( ) != NUMBER0 ) {
 mDb = null ;
 - Util . log ( null , Log . ERROR , STRING0 ) ;
 + Util . log ( null , Log . ERROR , STRING1 + mDb . getVersion ( ) ) ;
 }

 if ( mDb == null )


<nb> public class AnalyticsTrackerMixpanel extends Tracker {
 mixpanelInstructionsForEventName ( STRING0 ) ;
 instructions . setSuperPropertyAndPeoplePropertyToIncrement ( STRING1 ) ;
 break ;
 + case NOTIFICATION_SWIPE_PAGE_CHANGED :
 + instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 + mixpanelInstructionsForEventName ( STRING2 ) ;
 + instructions . setSuperPropertyAndPeoplePropertyToIncrement ( STRING3 ) ;
 + break ;
 case NOTIFICATION_LIKED :
 instructions = AnalyticsTrackerMixpanelInstructionsForStat .
 mixpanelInstructionsForEventName ( STRING4 ) ;
 <nb> public class AnalyticsTrackerNosara extends Tracker {
 return STRING5 ;
 case NOTIFICATION_FLAGGED_AS_SPAM :
 return STRING6 ;
 + case NOTIFICATION_SWIPE_PAGE_CHANGED :
 + return STRING3 ;
 case NOTIFICATION_LIKED :
 case NOTIFICATION_QUICK_ACTIONS_LIKED :
 return STRING7 ;

added proper analytics tracking handling for Mixpanel and Nosara


<nb> public class OSProcessHandler extends ProcessHandler {
 }
 catch ( InterruptedException ignored ) {
 }
 - catch ( ExecutionException ignored ) {
 + catch ( ExecutionException ex ) {
 + LOG . info ( ex ) ;
 }
 finally {
 onOSProcessTerminated ( exitCode ) ;


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SelectorManager implements Runnable {

 private final Selector selector ;

 - private final BlockingQueue < SocketChannel > socketChannelQueue ;
 + private final Queue < SocketChannel > socketChannelQueue ;

 private final RequestHandlerFactory requestHandlerFactory ;

 <nb> public class SelectorManager implements Runnable {
 public SelectorManager ( RequestHandlerFactory requestHandlerFactory , int socketBufferSize )
 throws IOException {
 this . selector = Selector . open ( ) ;
 - this . socketChannelQueue = new LinkedBlockingQueue < SocketChannel > ( ) ;
 + this . socketChannelQueue = new ConcurrentLinkedQueue < SocketChannel > ( ) ;
 this . requestHandlerFactory = requestHandlerFactory ;
 this . socketBufferSize = socketBufferSize ;
 }

Using ConcurrentLinkedQueue as suggested by Ismael


<nb> public class AuthenticationManager implements IAuthenticationManager {
 userCookie = new Cookie ( Constants . NAME , cookie ) ;
 SINGLE
 userCookie . setMaxAge ( ( int ) TimeUnit . DAYS . toSeconds ( NUMBER0 ) ) ;
 +
 + SINGLE
 + userCookie . setHttpOnly ( true ) ;
 + SINGLE
 + userCookie . setSecure ( httpsOnly ( ) ) ;
 }
 }
 String path = STRING0 ;
 <nb> public class AuthenticationManager implements IAuthenticationManager {
 }
 }

 +
 + private boolean httpsOnly ( ) {
 + int port = settings . getInteger ( Keys . server . httpPort , NUMBER1 ) ;
 + int tlsPort = settings . getInteger ( Keys . server . httpsPort , NUMBER1 ) ;
 + return ( port <= NUMBER1 && tlsPort > NUMBER1 ) ||
 + ( port > NUMBER1 && tlsPort > NUMBER1 && settings . getBoolean ( Keys . server . redirectToHttpsPort , true ) ) ;
 + }
 +
 +
 COMMENT
 COMMENT
 COMMENT

Set secure user cookies and only for HTTP


<nb> public class MapContextMenuFragment extends Fragment {

 int dy = NUMBER0 ;
 if ( ! menu . isLandscapeLayout ( ) && menuTopViewHeight != NUMBER0 ) {
 - dy = newMenuTopViewHeight - menuTopViewHeight ;
 + dy = Math . max ( NUMBER0 , newMenuTopViewHeight - menuTopViewHeight ) ;
 }
 menuTopViewHeight = newMenuTopViewHeight ;
 menuTitleHeight = menuTopShadowHeight + menuTopShadowAllHeight + dy ;


<nb> public final class TimelineSnapshot implements
 break ;
 case ack :
 case ackack :
 + case fetchack :
 case exec :
 case heartbeat :
 SINGLE

Updated Timeline to handle fetchack message type


<nb> public class OVariableParser {

 if ( resolved == null ) {
 OLogManager . instance ( ) . warn ( null , STRING0 , var ) ;
 - resolved = STRING1 ;
 + SINGLE
 }

 if ( pre . length ( ) > NUMBER0 || post . length ( ) > NUMBER0 ) {
 - final String path = pre + resolved . toString ( ) + post ;
 + final String path = pre + ( resolved != null ? resolved . toString ( ) : STRING2 ) + post ;
 return resolveVariables ( path , iBegin , iEnd , iListener ) ;
 }
 -
 +
 return resolved ;
 }
 }

variable parser doesn t return null but NULL if the variables doesn t exist


<nb> public abstract class AbstractTestDistributedQueries
 public void testCompatibleTypeChangeForView ( )
 throws Exception
 {
 - assertUpdate ( STRING0 , NUMBER0 ) ;
 - assertUpdate ( STRING1 ) ;
 + assertUpdate ( STRING2 , NUMBER0 ) ;
 + assertUpdate ( STRING3 ) ;

 - assertQuery ( STRING4 , STRING5 ) ;
 + assertQuery ( STRING6 , STRING5 ) ;

 SINGLE
 - assertUpdate ( STRING7 ) ;
 - assertUpdate ( STRING8 , NUMBER0 ) ;
 + assertUpdate ( STRING9 ) ;
 + assertUpdate ( STRING10 , NUMBER0 ) ;

 - assertQuery ( STRING4 , STRING11 ) ;
 + assertQuery ( STRING6 , STRING11 ) ;

 - assertUpdate ( STRING12 ) ;
 - assertUpdate ( STRING7 ) ;
 + assertUpdate ( STRING13 ) ;
 + assertUpdate ( STRING9 ) ;
 }

 @ test


<nb> public class RemoteExecutor extends PlanExecutor {

 private final InetSocketAddress address ;

 -
 public RemoteExecutor ( String hostname , int port ) {
 this ( hostname , port , Collections . < String > emptyList ( ) ) ;
 }
 <nb> public class RemoteExecutor extends PlanExecutor {
 this . jarFiles = jarFiles ;
 this . address = inet ;
 }
 -

 public static InetSocketAddress getInetFromHostport ( String hostport ) {
 SINGLE
 <nb> public class RemoteExecutor extends PlanExecutor {
 @ override
 public JobExecutionResult executePlan ( Plan plan ) throws Exception {
 JobWithJars p = new JobWithJars ( plan , this . jarFiles ) ;
 -
 - Client c = new Client ( this . address , new Configuration ( ) , p . getUserCodeClassLoader ( ) ) ;
 - return c . run ( p , - NUMBER0 , true ) ;
 + return executePlanWithJars ( p ) ;
 }

 public JobExecutionResult executePlanWithJars ( JobWithJars p ) throws Exception {

Remove dup code fromRemoteExecutor executePlan method


<nb> public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase
 }
 }

 + SINGLE
 + SINGLE
 private void instantiateIndexIfNeeded ( )
 {
 if ( Boolean . parseBoolean ( config . get ( STRING0 ) ) )
 <nb> public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase
 txs [ i ++ ] = new Pair < String , Long > (
 dataSource . getName ( ) , dataSource . getLastCommittedTxId ( ) ) ;
 }
 - SINGLE
 return new SlaveContext ( machineId , eventIdentifier , txs ) ;
 }

 <nb> public class MasterServer extends CommunicationProtocol implements ChannelPipeli
 {
 public void run ( )
 {
 - SINGLE
 + checkForDeadConnections ( ) ;
 }
 } , DEAD_CONNECTIONS_CHECK_INTERVAL , DEAD_CONNECTIONS_CHECK_INTERVAL , TimeUnit . SECONDS ) ;
 }

Enabled checking of dead connections again


<nb> public class SimpleIntersectionTraversalCostModel extends AbstractIntersectionTr
 SINGLE
 if ( isRightTurn ( turnAngle ) ) {
 turnCost = expectedRightAtLightTimeSec ;
 - probabilityStopToTurn = rightTurnActiveProb ;
 + probabilityStopToTurn = FLOAT0 - rightTurnActiveProb ;
 } else if ( isLeftTurn ( turnAngle ) ) {
 turnCost = expectedLeftAtLightTimeSec ;
 - probabilityStopToTurn = leftTurnActiveProb ;
 + probabilityStopToTurn = FLOAT0 - leftTurnActiveProb ;
 } else {
 turnCost = expectedStraightAtLightTimeSec ;
 - probabilityStopToTurn = continueStraightActiveProb ;
 + probabilityStopToTurn = FLOAT0 - continueStraightActiveProb ;
 }
 } else {
 SINGLE

Fix mathematical error in the travesal cost model


<nb> public class TestNGReferenceContributor extends PsiReferenceContributor {
 if ( cls != null ) {
 PsiMethod [ ] methods = cls . findMethodsByName ( methodName , true ) ;
 for ( PsiMethod method : methods ) {
 - if ( TestNGUtil . hasTest ( method ) ) {
 + if ( TestNGUtil . hasTest ( method ) || TestNGUtil . hasConfig ( method ) ) {
 return method ;
 }
 }

allow navigation on depends config as well as test


<nb> public class DropwizardAppRule < C extends Configuration > implements TestRule {
 } finally {
 resetConfigOverrides ( ) ;
 jettyServer . stop ( ) ;
 + jettyServer = null ;
 }
 }
 } ;

nullify jettyServer on stop so that shared test base classes with BeforeClass DropWizardAppRules can start new jetty servers


<nb> public class MapActivityActions implements DialogProvider {
 standardId == R . string . context_menu_item_destination_point ) {
 boolean dest = standardId == R . string . context_menu_item_destination_point ;
 String selected = mapActivity . getMapLayers ( ) . getContextMenuLayer ( ) . getSelectedObjectName ( ) ;
 - String target = null ;
 - if ( dest && selected != null ) {
 - target = selected . replaceAll ( getString ( R . string . context_menu_item_destination_point ) , STRING0 ) ;
 - }
 - targets . navigateToPoint ( new LatLon ( latitude , longitude ) , true ,
 - dest ? - NUMBER0 : targets . getIntermediatePoints ( ) . size ( ) , dest ? target : selected ) ;
 + targets . navigateToPoint ( new LatLon ( latitude , longitude ) , true ,
 + dest ? - NUMBER0 : targets . getIntermediatePoints ( ) . size ( ) , dest ? STRING0 : selected ) ;
 if ( targets . getIntermediatePoints ( ) . size ( ) > NUMBER1 ) {
 openIntermediatePointsDialog ( ) ;
 }

Fixed bug with Destination multiplies many times on one point


<nb> public abstract class Engine implements Closeable {
 public abstract boolean hasUncommittedChanges ( ) ;

 public static class CommitId implements Writeable {
 - private byte [ ] id ;
 +
 + private final byte [ ] id ;
 +
 public CommitId ( byte [ ] id ) {
 assert id != null ;
 this . id = Arrays . copyOf ( id , id . length ) ;
 <nb> public abstract class Engine implements Closeable {

 @ override
 public CommitId readFrom ( StreamInput in ) throws IOException {
 - byte [ ] bytes = in . readByteArray ( ) ;
 - return new CommitId ( bytes ) ;
 + return new CommitId ( in ) ;
 }

 @ override


<nb> public abstract class StepBasedLoadProcess implements LoadProcess {

 @ override
 public final float getProgress ( ) {
 - return ( float ) stepsComplete / totalSteps ;
 + return ( float ) Math . min ( totalSteps , stepsComplete ) / totalSteps ;
 }
 }
 <nb> public class UIProgressBar extends UIDisplayContainer {
 public void setValue ( int value ) {
 this . value = TeraMath . clamp ( value , minValue , maxValue ) ;

 - progressLine . updateProgress ( value , range ) ;
 + progressLine . updateProgress ( this . value , range ) ;

 notifyChangedListeners ( ) ;
 }
 <nb> public class UIProgressBar extends UIDisplayContainer {

 layout ( ) ;
 }
 -
 +
 COMMENT
 Event listeners
 COMMENT

Added some extra checks around the progress bar


<nb> public class SamplesActivity extends Activity {
 }
 } ) ;

 + observableSample . moreNumbers ( ) . toList ( ) . toBlocking ( ) . single ( ) ;
 +
 observableSample . names ( )
 . subscribeOn ( Schedulers . newThread ( ) )
 . observeOn ( AndroidSchedulers . mainThread ( ) )
 <nb> public class ObservableSample {
 return Observable . just ( NUMBER0 , NUMBER1 ) ;
 }

 + @ rxlogobservable
 + public Observable < Integer > moreNumbers ( ) {
 + return Observable . just ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ;
 + }
 +
 @ rxlogobservable ( STREAM )
 public Observable < String > names ( ) {
 return Observable . just ( STRING0 , STRING1 ) ;


<nb> public interface World {
 public boolean createExplosion ( double x , double y , double z , float power ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean createExplosion ( double x , double y , double z , float power , boolean setFire ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface World {
 public boolean createExplosion ( Location loc , float power ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean createExplosion ( Location loc , float power , boolean setFire ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added setFire option to createExplosion methods


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class AbstractBlazeQueryEnvironment < T > implements QueryEnvironme
 resolvedTargetPatterns . putAll ( preloadOrThrow ( caller , ImmutableList . of ( pattern ) ) ) ;
 } catch ( TargetParsingException e ) {
 SINGLE
 - resolvedTargetPatterns . put ( pattern , ImmutableSet . < Target > of ( ) ) ;
 reportBuildFileError ( caller , e . getMessage ( ) ) ;
 }
 }

Remove empty put when preloadOrThrow throws a TargetParsingException


<nb> public interface IEntityModifier extends IModifier < IEntity > {
 SINGLE
 SINGLE
 SINGLE
 +
 + @ override
 + public IEntityModifier clone ( ) ;

 SINGLE
 SINGLE

Added IEntityModifier clone method so that cloning returns the actual type instead of the generic type it extends


<nb> public class DateHistogramOffsetIT extends ESIntegTestCase {
 protected Settings nodeSettings ( int nodeOrdinal ) {
 return Settings . builder ( )
 . put ( super . nodeSettings ( nodeOrdinal ) )
 - . put ( AssertingLocalTransport . ASSERTING_TRANSPORT_MIN_VERSION_KEY . getKey ( ) , Version . V_1_4_0_Beta1 ) . build ( ) ;
 + . put ( AssertingLocalTransport . ASSERTING_TRANSPORT_MIN_VERSION_KEY . getKey ( ) , Version . V_1_4_0_Beta1 . toString ( ) ) . build ( ) ;
 }

 @ before
 <nb> public class ReproduceInfoPrinter extends RunListener {
 if ( System . getProperty ( STRING0 ) != null && ! System . getProperty ( STRING0 ) . isEmpty ( ) ) {
 appendOpt ( STRING0 , STRING1 + System . getProperty ( STRING0 ) + STRING1 ) ;
 }
 - appendOpt ( STRING2 , Locale . getDefault ( ) . toString ( ) ) ;
 + appendOpt ( STRING2 , Locale . getDefault ( ) . toLanguageTag ( ) ) ;
 appendOpt ( STRING3 , TimeZone . getDefault ( ) . getID ( ) ) ;
 return this ;
 }

Fix repro line for tests to use language tag


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

 + import NAMESPACE ;
 +
 public class DefaultFileWatcherFactory implements FileWatcherFactory , Stoppable {
 + public static final int STOP_TIMEOUT_SECONDS = NUMBER0 ;
 private final StoppableExecutor executor ;
 private final JavaVersion javaVersion ;
 private final ClassLoader classLoader ;
 <nb> public class DefaultFileWatcherFactory implements FileWatcherFactory , Stoppable

 @ override
 public void stop ( ) {
 - executor . stop ( ) ;
 + executor . stop ( STOP_TIMEOUT_SECONDS , TimeUnit . SECONDS ) ;
 }

 @ override

Add timeout for stopping filewatcher executor


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


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

 public T addHeader ( String name , String value ) {
 + if ( value == null ) {
 + logger . warn ( STRING0 ) ;
 + value = STRING1 ;
 + }
 +
 request . headers . add ( name , value ) ;
 return derived . cast ( this ) ;
 }

Set a null header to empty instead of null but log a warning


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public abstract class SimpleChannelInboundHandler < I > extends ChannelInboundHandlerAdapter {

 <nb> public abstract class SimpleChannelInboundHandler < I > extends ChannelInboundHandl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Add an important notice about future migration issue in SimpleChannelInboundHandler


<nb> public class ReplInterpreter {
 scriptInstance = scriptInstanceConstructor . newInstance ( constructorArgs ) ;
 }
 catch ( Throwable e ) {
 - return LineResult . error ( Throwables . getStackTraceAsString ( e ) ) ;
 + return LineResult . error ( Throwables . getStackTraceAsString ( e . getCause ( ) ) ) ;
 }
 Field rvField = scriptClass . getDeclaredField ( STRING0 ) ;
 rvField . setAccessible ( true ) ;

display the original cause of InvocationTargetException


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

 ResultSet rs = stmt . executeQuery ( ) ;
 Result < Record > result = create ( ) . fetch ( rs ) ;
 - assertEquals ( BOOK_IDS , result . getValues ( TBook_ID ( ) , Integer . class ) ) ;
 + assertEquals ( BOOK_IDS , result . getValues ( NUMBER0 , Integer . class ) ) ;
 assertEquals ( BOOK_IDS , result . getValues ( NUMBER1 , Integer . class ) ) ;

 try {

Cannot make any assumptions about JDBC ResultSet s column label


<nb> public class SQLTemplates extends Templates {

 public static final Operator < Object > LASTVALUE = new OperatorImpl < Object > ( STRING0 ) ;

 - public static final Operator < Object > LEAD = new OperatorImpl < Object > ( STRING1 ) ;
 + public static final Operator < Object > LEAD = new OperatorImpl < Object > ( STRING2 ) ;

 - public static final Operator < Object > LAG = new OperatorImpl < Object > ( STRING1 ) ;
 + public static final Operator < Object > LAG = new OperatorImpl < Object > ( STRING3 ) ;

 public static final SQLTemplates DEFAULT = new SQLTemplates ( STRING4 , STRING5 , false ) ;


<nb> import NAMESPACE ;
 break ;
 case NUMBER0 : SINGLE
 single = false ;
 - inputType |= EditorInfo . TYPE_TEXT_FLAG_MULTI_LINE
 + inputType = EditorInfo . TYPE_TEXT_FLAG_MULTI_LINE
 | EditorInfo . TYPE_TEXT_FLAG_CAP_SENTENCES
 + | EditorInfo . TYPE_CLASS_TEXT
 | EditorInfo . TYPE_TEXT_FLAG_AUTO_CORRECT ;
 imeOptions |= EditorInfo . IME_ACTION_NONE ;
 break ;


<nb> public class PopupChooserBuilder {
 return super . getPreferredSize ( ) ;
 }
 Dimension size = myList . getPreferredSize ( ) ;
 + size . height = Math . min ( size . height , myList . getPreferredScrollableViewportSize ( ) . height ) ;
 JScrollBar bar = getVerticalScrollBar ( ) ;
 if ( bar != null ) size . width += bar . getPreferredSize ( ) . width ;
 return size ;


<nb> class DayView extends CheckedTextView {
 setText ( getLabel ( ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public void setDayFormatter ( DayFormatter formatter ) {
 this . formatter = formatter == null ? DayFormatter . DEFAULT : formatter ;
 CharSequence currentLabel = getText ( ) ;


<nb> public class ExecutionPointHighlighter {
 myRangeHighlighter = markupModel . addLineHighlighter ( line , DebuggerColors . EXECUTION_LINE_HIGHLIGHTERLAYER , attributes ) ;
 }
 myRangeHighlighter . putUserData ( EXECUTION_POINT_HIGHLIGHTER_KEY , true ) ;
 + myRangeHighlighter . setEditorFilter ( MarkupEditorFilterFactory . createIsNotDiffFilter ( ) ) ;
 myRangeHighlighter . setGutterIconRenderer ( myGutterIconRenderer ) ;
 }

do not highlight current execution line inside diff


<nb> public class LocaleUtils {
 if ( localeString == null ) {
 return null ;
 }
 - final String [ ] parts = localeString . split ( STRING0 ) ;
 + final String [ ] parts = localeString . split ( STRING1 ) ;
 if ( parts . length == NUMBER0 ) {
 return new Locale ( localeString , STRING2 ) ;
 } else if ( parts . length == NUMBER1 ) {
 <nb> public class HttpServletRequestImpl implements HttpServletRequest {

 @ override
 public String getLocalName ( ) {
 - return null ;
 + return exchange . getExchange ( ) . getDestinationAddress ( ) . getHostName ( ) ;
 }

 @ override


<nb> public class PersonDetailFragment extends Fragment {
 String dateText = getString ( R . string . follower_subscribed_since , dateSubscribed ) ;
 mSubscribedDateTextView . setText ( dateText ) ;
 }
 +
 + SINGLE
 + int padding = mPersonType == Person . PersonType . EMAIL_FOLLOWER
 + ? ( int ) getResources ( ) . getDimension ( R . dimen . margin_small ) : NUMBER0 ;
 + changeDisplayNameTopPadding ( padding ) ;
 } else {
 AppLog . w ( AppLog . T . PEOPLE , STRING0 + mPersonID
 + STRING1 + mLocalTableBlogID ) ;
 <nb> public class PersonDetailFragment extends Fragment {
 }
 }

 + private void changeDisplayNameTopPadding ( int newPadding ) {
 + if ( mDisplayNameTextView == null ) {
 + return ;
 + }
 + mDisplayNameTextView . setPadding ( NUMBER0 , newPadding , NUMBER0 , NUMBER0 ) ;
 + }
 +
 public Person loadPerson ( ) {
 return PeopleTable . getPerson ( mPersonID , mLocalTableBlogID , mPersonType ) ;
 }

Adds some padding to email follower display name to center


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

Updating header to provide AsyncHttpClient project with copyright


<nb> final class Annotations {

 private static boolean annotationTypeMatches (
 TypeElement annotationElement ,
 - @ nullable Set < String > includeAnnotations ,
 + Set < String > includeAnnotations ,
 boolean includeAllAnnotations ,
 boolean includeJacksonAnnotations ,
 Set < String > seenAnnotations ) {
 <nb> final class Annotations {
 SINGLE
 return false ;
 }
 +
 seenAnnotations . add ( qualifiedName ) ;
 +
 if ( annotationElement . getSimpleName ( ) . contentEquals ( NULLABLE_SIMPLE_NAME ) ) {
 SINGLE
 return false ;
 <nb> final class Annotations {
 }

 SINGLE
 - if ( includeJacksonAnnotations && ! includeAnnotations . isEmpty ( ) ) {
 + if ( includeJacksonAnnotations || ! includeAnnotations . isEmpty ( ) ) {
 for ( AnnotationMirror parentAnnotation : annotationElement . getAnnotationMirrors ( ) ) {
 TypeElement parentElement = ( TypeElement ) parentAnnotation . getAnnotationType ( ) . asElement ( ) ;
 if ( annotationTypeMatches ( parentElement , includeAnnotations , false , includeJacksonAnnotations , seenAnnotations ) ) {

correcting copy of constructor parameter annotations


<nb> public class PublisherTool implements SeedCallback , RateReporter . Stats , RateRepo
 numThreads = Math . min ( options . getThreads ( ) , options . getNumberOfStreams ( ) ) ;
 if ( numThreads < options . getThreads ( ) )
 {
 - LOG . warn ( options . getThreads ( ) + STRING0 + options . getChannels ( ) . size ( ) +
 + LOG . warn ( options . getThreads ( ) + STRING0 + options . getNumberOfStreams ( ) +
 STRING1 + numThreads + STRING2 ) ;
 }
 pubThreads = new Thread [ numThreads ] ;

Fixed log message when warning about more threads than streams


<nb> public class Scopes {
 }
 } ;

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public static boolean isSingleton ( Binding < ? > binding ) {
 - do {
 - boolean singleton = binding . acceptScopingVisitor ( new BindingScopingVisitor < Boolean > ( ) {
 + private static final BindingScopingVisitor < Boolean > IS_SINGLETON_VISITOR
 + = new BindingScopingVisitor < Boolean > ( ) {
 public Boolean visitNoScoping ( ) {
 return false ;
 }
 <nb> public class Scopes {
 public Boolean visitEagerSingleton ( ) {
 return true ;
 }
 - } ) ;
 + } ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static boolean isSingleton ( Binding < ? > binding ) {
 + do {
 + boolean singleton = binding . acceptScopingVisitor ( IS_SINGLETON_VISITOR ) ;
 if ( singleton ) {
 return true ;
 }

Do not create a new visitor instance for every call to isSingleton


<nb> public class WindowManagerService extends IWindowManager . Stub
 }
 }

 - winAnimator . prepareSurfaceLocked ( recoveringMemory ) ;
 + winAnimator . setSurfaceBoundariesLocked ( recoveringMemory ) ;

 final AppWindowToken atoken = w . mAppToken ;
 if ( DEBUG_STARTING_WINDOW && atoken != null
 <nb> class WindowStateAnimator {
 }
 }

 - private void setSurfaceBoundariesLocked ( final boolean recoveringMemory ) {
 + void setSurfaceBoundariesLocked ( final boolean recoveringMemory ) {
 final WindowState w = mWin ;

 int width ;

Revert fix the flash caused by missing setMatrix when surface size changes


<nb> import NAMESPACE ;
 public class FileNameGenerator {

 private static final char [ ] ILLEGAL_CHARACTERS = { STRING0 , STRING1 , STRING2 , STRING3 ,
 - STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 } ;
 + STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 } ;
 static {
 Arrays . sort ( ILLEGAL_CHARACTERS ) ;
 }

Add n to the list of illegal characters in filenames


<nb> public abstract class ConfigurationException extends Exception {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public ConfigurationException ( String path , Collection < String > errors ) {
 super ( formatMessage ( path , errors ) ) ;

Remove docs for non existent constructor parameter


<nb> public class ARSCDecoder {
 SINGLE
 SINGLE
 id = NUMBER0 ;
 - mResTable . setSharedLibrary ( true ) ;
 + if ( mResTable . getPackageOriginal ( ) == null && mResTable . getPackageRenamed ( ) == null ) {
 + mResTable . setSharedLibrary ( true ) ;
 + }
 }

 String name = mIn . readNullEndedString ( NUMBER1 , true ) ;

Prevent frameworks from modifying sharedLibrary


<nb> public class Suggestion
 if ( caller == null )
 {
 if ( other . caller != null )
 + {
 return false ;
 + }
 }
 else if ( ! caller . equals ( other . caller ) )
 {


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

 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public final class ProcessorDefinitionHelper {
 + final class ProcessorDefinitionHelper {

 private ProcessorDefinitionHelper ( ) {
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import static NAMESPACE ;

 COMMENT


<nb> public class WebView extends AbsoluteLayout
 if ( inEditingMode ( ) ) {
 return mWebTextView . performLongClick ( ) ;
 }
 + if ( mSelectingText ) return false ; SINGLE
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WebView extends AbsoluteLayout
 COMMENT
 COMMENT
 COMMENT
 - if ( mSelectingText ) return false ; SINGLE
 int x = viewToContentX ( ( int ) mLastTouchX + mScrollX ) ;
 int y = viewToContentY ( ( int ) mLastTouchY + mScrollY ) ;
 setUpSelect ( ) ;

don t put up a context menu while selecting text


<nb> public class UnscrambleListener implements ApplicationActivationListener {

 @ override
 public void applicationActivated ( final IdeFrame ideFrame ) {
 - if ( SystemInfo . isMac ) return ;
 -
 final Runnable processClipboard = new Runnable ( ) {
 @ override
 public void run ( ) {

get back automatic stacktrace analyzer on mac


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class MarginFragListBuilder implements FragListBuilder {

Added comment to explain MarginFragListBuilders relation to SimpleFragListBuilder


<nb> public class ConfigurationRequest {
 }
 break ;
 case TextField . FIELD_TYPE :
 + case DropdownField . FIELD_TYPE :
 if ( ! configuration . stringIsSet ( field . getName ( ) ) ) {
 - throw new ConfigurationException ( STRING0 + field . getName ( ) + STRING1 ) ;
 + throw new ConfigurationException ( STRING0 + field . getName ( ) + STRING1 ) ;
 }
 break ;
 - case DropdownField . FIELD_TYPE :
 - break ;
 default :
 throw new IllegalStateException ( STRING2 + type + STRING3 ) ;
 }

include dropdown fields in configuration checks


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class WebInterfaceWorkerBlockInfoServlet extends HttpServlet {
 COMMENT
 private UIFileInfo getUiFileInfo ( FileSystem fileSystem , long fileId )
 throws FileDoesNotExistException , BlockDoesNotExistException , IOException , AlluxioException {
 - SINGLE
 - FileSystemMasterClient masterClient = FileSystemContext . INSTANCE . acquireMasterClient ( ) ;
 - try {
 - return getUiFileInfo ( fileSystem , new AlluxioURI ( mBlockWorker . getFileInfo ( fileId ) . getPath ( ) ) ) ;
 - } finally {
 - FileSystemContext . INSTANCE . releaseMasterClient ( masterClient ) ;
 - }
 + return getUiFileInfo ( fileSystem , new AlluxioURI ( mBlockWorker . getFileInfo ( fileId ) . getPath ( ) ) ) ;
 }

 COMMENT


<nb> public class CommentsListFragment extends Fragment {
 return ;
 }
 }
 - if ( comments != null && comments . size ( ) > NUMBER0 ) {
 + if ( ! getActivity ( ) . isFinishing ( ) && comments != null && comments . size ( ) > NUMBER0 ) {
 getCommentAdapter ( ) . loadComments ( ) ;
 }
 }

don t load comments adapter if the activity is finishing


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

Fixed incorrectly ended bold tag on special note


<nb> public abstract class DataBufferUtils {

 @ override
 public void onNext ( DataBuffer dataBuffer ) {
 - long currentCount =
 - this . byteCount . addAndGet ( dataBuffer . readableByteCount ( ) ) ;
 + int delta = dataBuffer . readableByteCount ( ) ;
 + long currentCount = this . byteCount . addAndGet ( delta ) ;
 if ( currentCount > maxByteCount ) {
 - int size = ( int ) ( currentCount - maxByteCount + NUMBER0 ) ;
 + int size = ( int ) ( maxByteCount - currentCount + delta ) ;
 ByteBuffer byteBuffer =
 ( ByteBuffer ) dataBuffer . asByteBuffer ( ) . limit ( size ) ;
 DataBuffer partialBuffer =


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AppEngineEnhancerBuilder extends ModuleLevelBuilder {
 }

 @ override
 - public ExitCode build ( final CompileContext context , ModuleChunk chunk ,
 - DirtyFilesHolder < JavaSourceRootDescriptor , ModuleBuildTarget > dirtyFilesHolder )
 + public ExitCode build ( final CompileContext context ,
 + ModuleChunk chunk ,
 + DirtyFilesHolder < JavaSourceRootDescriptor , ModuleBuildTarget > dirtyFilesHolder ,
 + ChunkBuildOutputConsumer outputConsumer )
 throws ProjectBuildException , IOException {

 boolean doneSomething = false ;

fixed updating files copied by resource compiler to module output in artifacts


<nb> abstract public class HttpHeader implements java . io . Serializable {
 public static final String SET_COOKIE = STRING0 ;
 public static final String SET_COOKIE2 = STRING1 ;
 public static final String X_XSS_PROTECTION = STRING2 ;
 + public static final String X_FRAME_OPTION = STRING3 ;
 + public static final String X_CONTENT_TYPE_OPTIONS = STRING4 ;

 public static final String HTTP09 = STRING5 ;
 public static final String HTTP10 = STRING6 ;

Added X Frame Options and X Content Type Options on the list of Headers


<nb> public class Astrid44SyncMigrator {
 try {
 Metadata m = new Metadata ( ) ;
 for ( incompleteMetadata . moveToFirst ( ) ; ! incompleteMetadata . isAfterLast ( ) ; incompleteMetadata . moveToNext ( ) ) {
 + m . clear ( ) ; SINGLE
 m . readFromCursor ( incompleteMetadata ) ;
 boolean changes = false ;

Fixed a bug with the metadata migration not working


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DesktopAssetManager implements AssetManager {

 public void addClassLoader ( ClassLoader loader ) {
 if ( classLoaders == null )
 - classLoaders = new ArrayList < ClassLoader > ( ) ;
 + classLoaders = Collections . synchronizedList ( new ArrayList < ClassLoader > ( ) ) ;
 classLoaders . add ( loader ) ;
 }

make ClassLoader list in AssetManager a syncronized list


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory < PythonC
 } . queue ( ) ;
 }

 - private class ShowVarsAction extends ToggleAction {
 + private class ShowVarsAction extends ToggleAction implements DumbAware {
 private boolean mySelected = false ;

 public ShowVarsAction ( ) {


<nb> public class RNTN implements Layer {
 }

 @ override
 - public Gradient backwardGradient ( INDArray z , Layer nextLayer , Gradient nextGradient , INDArray activation ) {
 + public Pair < Gradient , INDArray > backwardGradient ( Gradient nextGradient , INDArray weights ) {
 return null ;
 }

Adjusted format for RNTN for backwardGradient


<nb> public class RandomXS128 extends Random {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public long getState ( int seed ) {


<nb> public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn
 session . sendPostponedMessages ( ) ;
 }

 - mService . getStatusBarNotifier ( ) . notifyLoggedIn ( mProviderId , mAccountId ) ;
 + SINGLE

 } else if ( state == ImConnection . LOGGING_OUT ) {
 <nb> public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn
 mChatSessionManager . closeAllChatSessions ( ) ;
 }

 - mService . getStatusBarNotifier ( ) . notifyDisconnected ( mProviderId , mAccountId ) ;
 + SINGLE

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

removed annoying notifications of on offline state


<nb> public class Capsule implements Runnable {
 COMMENT
 COMMENT
 protected void onError ( Throwable t ) {
 + if ( ( _ct = getCallTarget ( Capsule . class ) ) != null )
 + _ct . onError ( t ) ;
 + else
 + onError0 ( t ) ;
 + }
 +
 + private void onError0 ( Throwable t ) {
 printError ( t , this ) ;
 }
 SINGLE


<nb> public class XmppConnection implements Runnable {
 List < Element > elements = packet . query ( ) . getChildren ( ) ;
 for ( Element element : elements ) {
 if ( element . getName ( ) . equals ( STRING0 ) ) {
 - final String jid = element . getAttribute ( STRING1 ) ;
 - try {
 - sendServiceDiscoveryInfo ( Jid . fromString ( jid ) . toDomainJid ( ) ) ;
 - } catch ( final InvalidJidException ignored ) {
 - SINGLE
 + final Jid jid = element . getAttributeAsJid ( STRING1 ) ;
 + if ( jid != null && ! jid . equals ( account . getServer ( ) ) ) {
 + sendServiceDiscoveryInfo ( jid ) ;
 }
 }
 }

do not query service info from main server again


<nb> public class ChartAnimatorV11 implements ChartAnimator , AnimatorListener , Animat

 @ override
 public void onAnimationUpdate ( ValueAnimator animation ) {
 - Log . v ( STRING0 , STRING1 + ( Float ) animation . getAnimatedValue ( ) ) ;
 mChart . animationUpdate ( ( Float ) animation . getAnimatedValue ( ) ) ;
 }


<nb> public class EditTicketPage extends RepositoryPage {
 || ! currentUser . canEdit ( ticket , getRepositoryModel ( ) )
 || ! app ( ) . tickets ( ) . isAcceptingTicketUpdates ( getRepositoryModel ( ) ) ) {
 setResponsePage ( TicketsPage . class , WicketUtils . newObjectParameter ( repositoryName , STRING0 + ticketId ) ) ;
 +
 + SINGLE
 + ticket = new TicketModel ( ) ;
 }

 typeModel = Model . of ( ticket . type ) ;

findbugs Create temporary ticket after setting up the response page in EditTicketPage


<nb> public abstract class Selector {
 Method reflectionMethod = null ;
 try {
 reflectionMethod = aClass . getMethod ( STRING0 , String . class ) ;
 - if ( ! reflectionMethod . isSynthetic ( ) && ! ( receiver instanceof GeneratedClosure ) ) {
 + if ( ! reflectionMethod . isSynthetic ( ) ) {
 handle = MethodHandles . insertArguments ( GROOVY_OBJECT_GET_PROPERTY , NUMBER0 , name ) ;
 return ;
 }

undo exclusion of GeneratedClosure since meta class side is not ready for this change


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Chunk {
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public static < T extends Tag > T getChildTag ( Map < String , Tag > items , String key ,
 Class < T > expected ) throws InvalidFormatException {
 if ( ! items . containsKey ( key ) ) {


<nb> class ConfigurationBase implements Configuration , java . io . Serializable {

 private static final String DEFAULT_REST_BASE_URL = STRING0 ;
 private static final String DEFAULT_SEARCH_BASE_URL = STRING1 ;
 - private static final String DEFAULT_STREAM_BASE_URL = STRING2 ;
 + private static final String DEFAULT_STREAM_BASE_URL = STRING3 ;
 private static final String DEFAULT_USER_STREAM_BASE_URL = STRING4 ;
 - private static final String DEFAULT_SITE_STREAM_BASE_URL = STRING5 ;
 + private static final String DEFAULT_SITE_STREAM_BASE_URL = STRING6 ;

 private boolean IS_DALVIK ;
 private boolean IS_GAE ;


<nb> public interface FrameCompressor
 {
 int size = Snappy . uncompress ( input , NUMBER0 , input . length , output . array ( ) , output . arrayOffset ( ) ) ;
 output . writerIndex ( size ) ;
 -
 - SINGLE
 - frame . release ( ) ;
 }
 catch ( final Throwable e )
 {

Remove buggy duplicate call to Frame release


<nb> public abstract class AbstractFileSetCheck
 COMMENT
 private final LocalizedMessages mMessages = new LocalizedMessages ( ) ;

 - COMMENT
 + COMMENT
 public void destroy ( )
 {
 }
 <nb> public abstract class AbstractFileSetCheck
 if ( ( mFileExtensions == null ) || ( mFileExtensions . length == NUMBER0 ) ) {
 return aFiles ;
 }
 -
 +
 final ArrayList files = new ArrayList ( aFiles . length ) ;
 for ( int i = NUMBER0 ; i < aFiles . length ; i ++ ) {
 final File f = aFiles [ i ] ;
 <nb> public abstract class AbstractFileSetCheck
 mFileExtensions = null ;
 return ;
 }
 -
 +
 mFileExtensions = new String [ aExtensions . length ] ;
 for ( int i = NUMBER0 ; i < aExtensions . length ; i ++ ) {
 final String extension = aExtensions [ i ] ;


<nb> public class DefaultWayPropertySetSource implements WayPropertySetSource {
 COMMENT
 setProperties ( props , STRING0 ,
 StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT0 , FLOAT0 ) ;
 +
 + COMMENT
 + setProperties ( props , STRING1 ,
 + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ;
 + setProperties ( props , STRING2 ,
 + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT2 , FLOAT2 ) ;
 + setProperties ( props , STRING3 ,
 + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ;
 + setProperties ( props , STRING4 ,
 + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT2 , FLOAT2 ) ;
 + setProperties ( props , STRING5 ,
 + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT3 , FLOAT3 ) ;

 COMMENT
 setProperties ( props , STRING6 ,

Added weights for bicycles on tracks unpaved roads


<nb> public class CommandLineRunner extends
 private boolean exportLocalPropertyDefinitions = false ;

 @ option ( name = STRING0 ,
 - hidden = true ,
 usage = STRING1
 + STRING2
 + STRING3 )

Add formatting to the Output category in the help message


<nb> public class ManifestUpdateMojo extends AbstractAndroidMojo {
 }
 currentVersionCode ++ ;
 manifestElement . setAttribute ( ATTR_VERSION_CODE , String . valueOf ( currentVersionCode ) ) ;
 + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( currentVersionCode ) ) ;
 dirty = true ;
 }

 <nb> public class ManifestUpdateMojo extends AbstractAndroidMojo {
 Integer . toString ( artifactVersion . getIncrementalVersion ( ) ) ;
 getLog ( ) . info ( STRING1 + ATTR_VERSION_CODE + STRING2 + verCode ) ;
 manifestElement . setAttribute ( ATTR_VERSION_CODE , verCode ) ;
 + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( verCode ) ) ;
 dirty = true ;
 }

 <nb> public class ManifestUpdateMojo extends AbstractAndroidMojo {
 manifestElement . setAttribute ( ATTR_VERSION_CODE , String . valueOf ( parsedVersionCode ) ) ;
 dirty = true ;
 }
 + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( parsedVersionCode ) ) ;
 }

 if ( ! StringUtils . isEmpty ( parsedSharedUserId ) ) {

Set android manifest versionCode property


<nb> public class FeatureInfo implements Parcelable {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public int version ;


<nb> class CallbackProxy extends Handler {
 SINGLE
 WebHistoryItem i = mBackForwardList . getCurrentItem ( ) ;
 if ( i != null ) {
 - if ( precomposed || i . getTouchIconUrl ( ) != null ) {
 + if ( precomposed || i . getTouchIconUrl ( ) == null ) {
 i . setTouchIconUrl ( url ) ;
 }
 }


<nb> public class AndroidBinaryRule extends AbstractCachingBuildRule implements

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private String getBinPath ( String format ) {


<nb> public class ByteBufferSend implements Send {

 @ override
 public boolean complete ( ) {
 - return remaining > NUMBER0 ;
 + return remaining <= NUMBER0 ;
 }

 @ override

Fix bug in ByteBufferSend that lead to incorrect complete method


<nb> public interface Constants {
 public static final int TAG_SCROLL_LISTENER = NUMBER0 ;
 public static final int TAG_LAYOUT = NUMBER1 ;
 public static final int TAG_NUM = NUMBER2 ;
 + public static final int TAG_1 = NUMBER3 ;
 + public static final int TAG_2 = NUMBER4 ;
 + public static final int TAG_3 = NUMBER5 ;
 + public static final int TAG_4 = NUMBER6 ;
 + public static final int TAG_5 = NUMBER7 ;

 public static final float RATIO_PRESERVE = Float . MAX_VALUE ;
 public static final float ANCHOR_DYNAMIC = Float . MAX_VALUE ;


<nb> public class AtomicMaxUpdater {

 private static final AtomicIntegerFieldUpdater < AtomicMaxUpdater > UPDATER = AtomicIntegerFieldUpdater . newUpdater ( AtomicMaxUpdater . class , STRING0 ) ;

 + @ suppresswarnings ( STRING1 )
 + private volatile int maxIndex = NUMBER0 ;
 +
 public boolean update ( int max ) {
 while ( true ) {
 final int currentMax = getIndex ( ) ;


<nb> public interface ClassDirectoryBinary extends Binary , Buildable {
 Task getClassesTask ( ) ;
 void setClassesTask ( Task task ) ;
 String getTaskName ( String verb , String target ) ;
 - String getTaskBaseName ( ) ;
 }