<nb> final class DisplayPowerController implements AutomaticBrightnessController . Call

 SINGLE
 SINGLE
 - if ( state == Display . STATE_ON || state == Display . STATE_DOZE ) {
 - animateScreenBrightness ( brightness ,
 - slowChange ? BRIGHTNESS_RAMP_RATE_SLOW : BRIGHTNESS_RAMP_RATE_FAST ) ;
 - } else {
 - animateScreenBrightness ( brightness , NUMBER0 ) ;
 + if ( ! mPendingScreenOff ) {
 + if ( state == Display . STATE_ON || state == Display . STATE_DOZE ) {
 + animateScreenBrightness ( brightness ,
 + slowChange ? BRIGHTNESS_RAMP_RATE_SLOW : BRIGHTNESS_RAMP_RATE_FAST ) ;
 + } else {
 + animateScreenBrightness ( brightness , NUMBER0 ) ;
 + }
 }

 SINGLE

Don t animate screen brightness if there is a pending off transition


<nb> public class HBaseEndpoint extends DefaultEndpoint {
 private HBaseRow rowModel ;
 @ uriparam ( label = STRING0 )
 private int maxMessagesPerPoll ;
 + @ uriparam ( description = STRING1 )
 + private UserGroupInformation ugi ;

 COMMENT
 COMMENT
 COMMENT
 private byte [ ] tableNameBytes ;

 - private UserGroupInformation ugi = null ;
 -
 public HBaseEndpoint ( String uri , HBaseComponent component , HTablePool tablePool , String tableName ) {
 super ( uri , component ) ;
 this . tableName = tableName ;

annotate ugi as a parameter to be passed by beanId


<nb> public class SelectBox < T > extends Widget implements Disableable {
 validate ( ) ;
 float width = Math . max ( getPrefWidth ( ) , selectBox . getWidth ( ) ) ;
 if ( getPrefHeight ( ) > height ) width += getScrollBarWidth ( ) ;
 + if ( scrollPaneBackground != null ) {
 + SINGLE
 + width += Math . max ( NUMBER0 , scrollPaneBackground . getRightWidth ( ) - scrollPaneBackground . getLeftWidth ( ) ) ;
 + }
 setWidth ( width ) ;

 validate ( ) ;

Allow shadow on right edge of select box drop down list


<nb> public class EJB3Extension implements Extension {
 SINGLE
 subsystemRegistration . registerSubModel ( EJB3ThreadPoolResourceDefinition . INSTANCE ) ;

 - SINGLE
 - subsystemRegistration . registerSubModel ( EJB3ThreadPoolResourceDefinition . INSTANCE ) ;
 -
 ResourceDefinition deploymentsDef = new SimpleResourceDefinition ( PathElement . pathElement ( ModelDescriptionConstants . SUBSYSTEM , SUBSYSTEM_NAME ) ,
 getResourceDescriptionResolver ( STRING0 ) ) ;
 final ManagementResourceRegistration deploymentsRegistration = subsystem . registerDeploymentModel ( deploymentsDef ) ;


<nb> public class InfoEndpointCompatibilityTests {
 }

 private InfoEndpoint getEndpointBean ( ) {
 - return new InfoEndpoint ( Collections . singletonMap ( STRING0 , STRING1 ) ,
 + return new InfoEndpoint ( Collections . < String , Object > singletonMap ( STRING0 , STRING1 ) ,
 infoContributor ( ) ) ;
 }


<nb> public abstract class MonthView extends View {
 @ override
 protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) {
 setMeasuredDimension ( MeasureSpec . getSize ( widthMeasureSpec ) , mRowHeight * mNumRows
 - + getMonthHeaderSize ( ) ) ;
 + + getMonthHeaderSize ( ) + NUMBER0 ) ;
 }

 @ override

Fixed truncation of day selection circle


<nb> public class TargetBound implements SearchTerminationStrategy , SkipTraverseResul
 }
 }
 COMMENT
 +
 for ( State bounder : bounders ) {

 - if ( optimisticDistance > bounder . getWalkDistance ( ) && current . getTime ( ) + minTime > bounder . getTime ( ) )
 + if ( minWalk > bounder . getWalkDistance ( ) && current . getTime ( ) + minTime > bounder . getTime ( ) )
 return true ; SINGLE

 SINGLE


<nb> public class ShiroAuthManager extends BasicAuthManager implements RoleManager
 {
 assertAuthEnabled ( ) ;

 + passwordPolicy . validatePassword ( initialPassword ) ;
 +
 return realm . newUser ( username , initialPassword , requirePasswordChange ) ;
 }

 <nb> public class AuthProceduresTest
 }

 @ test
 + public void shouldNotCreateUserWithEmptyPassword ( ) throws Exception
 + {
 + testCallFail ( db , adminSubject , STRING0 , QueryExecutionException . class ,
 + STRING1 ) ;
 + }
 +
 + @ test
 public void shouldNotCreateExistingUser ( ) throws Exception
 {

Added check for password on user creation


<nb> public class Danmakus implements IDanmakus {
 }

 public synchronized void reset ( ) {
 - if ( mData != null ) {
 + if ( mData != null || mSize > NUMBER0 ) {
 it = mData . iterator ( ) ;
 } else {
 it = null ;


<nb> public class CloneElementAction extends CopyElementAction {
 }

 protected void updateForToolWindow ( String id , DataContext dataContext , Presentation presentation ) {
 - if ( ! ToolWindowId . COMMANDER . equals ( id ) ) {
 - presentation . setVisible ( false ) ;
 - return ;
 - }
 SINGLE
 PsiElement [ ] elements = LangDataKeys . PSI_ELEMENT_ARRAY . getData ( dataContext ) ;
 presentation . setEnabled ( elements != null && elements . length == NUMBER0 && CopyHandler . canClone ( elements ) ) ;
 presentation . setVisible ( true ) ;
 + if ( ! ToolWindowId . COMMANDER . equals ( id ) ) {
 + presentation . setVisible ( false ) ;
 + }
 }
 }

restore clone in project view by shortcut even if it is invisible


<nb> public interface Call {
 PsiElement getCallElement ( ) ;

 enum CallType {
 - DEFAULT , ARRAY_GET_METHOD , ARRAY_SET_METHOD
 + DEFAULT , ARRAY_GET_METHOD , ARRAY_SET_METHOD , INVOKE
 }

 @ notnull
 <nb> public class CallTransformer < D extends CallableDescriptor , F extends D > {
 return invokeExpression ;
 }

 + @ notnull
 + @ override
 + public CallType getCallType ( ) {
 + return CallType . INVOKE ;
 + }
 +
 + @ notnull
 + public Call getOuterCall ( ) {
 + return outerCall ;
 + }
 }
 }


<nb> public class RosterManager extends BasicModule implements GroupEventListener {
 }

 public void memberRemoved ( Group group , Map params ) {
 - JID deletedUser = new JID ( ( String ) params . get ( STRING0 ) ) ;
 + String member = ( String ) params . get ( STRING0 ) ;
 + if ( member == null ) {
 + return ;
 + }
 + JID deletedUser = new JID ( member ) ;
 SINGLE
 if ( group . getAdmins ( ) . contains ( deletedUser ) ) {
 return ;


<nb> public class MoveKotlinTopLevelDeclarationsDialog extends RefactoringDialog {
 PsiDirectory selectedPsiDirectory ;
 if ( initialTargetDirectory == null ) {
 DirectoryChooser . ItemWrapper selectedItem = ( DirectoryChooser . ItemWrapper ) destinationFolderCB . getComboBox ( ) . getSelectedItem ( ) ;
 - selectedPsiDirectory = selectedItem . getDirectory ( ) ;
 + selectedPsiDirectory = selectedItem != null ? selectedItem . getDirectory ( ) : null ;
 if ( selectedPsiDirectory == null ) return Pair . create ( null , new MultipleRootsMoveDestination ( targetPackage ) ) ;
 }
 else {

Fix NPE in MoveKotlinTopLevelDeclarationsDialog


<nb> public class RpcChannel implements ChannelListener {
 }

 }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - protected static String bToS ( byte [ ] data ) {
 - StringBuilder buf = new StringBuilder ( NUMBER0 * NUMBER1 ) ;
 - buf . append ( STRING0 ) ;
 - for ( int i = NUMBER2 ; data != null && i < data . length ; i ++ ) buf . append ( String . valueOf ( data [ i ] ) ) . append ( STRING1 ) ;
 - buf . append ( STRING2 ) ;
 - return buf . toString ( ) ;
 - }
 -
 -
 }


<nb> public class ReviewPanel extends Composite implements Display
 public void onClick ( ClickEvent event )
 {
 changelist_ . showProgress ( ) ;
 - commands . vcsRefresh ( ) ;
 + commands . vcsRefresh ( ) . execute ( ) ;
 }
 } ) ) ;


<nb> public class Preference implements Comparable < Preference > {
 R . styleable . Preference_android_icon , NUMBER0 ) ;

 mKey = TypedArrayUtils . getString ( a , R . styleable . Preference_key ,
 - R . styleable . Preference_key ) ;
 + R . styleable . Preference_android_key ) ;

 mTitle = TypedArrayUtils . getString ( a , R . styleable . Preference_title ,
 R . styleable . Preference_android_title ) ;

Use correct fallback attr for Preference key


<nb> public class DataTypeTest {
 DataType . forValue ( objects ) ;
 }

 - @ test ( expected = IllegalArgumentException . class )
 + @ test
 public void testForValueWithEmptyList ( ) {
 List < Object > objects = Arrays . < Object > asList ( ) ;
 - DataType . forValue ( objects ) ;
 + DataType type = DataType . forValue ( objects ) ;
 + assertThat ( type , is ( DataType . NULL_ARRAY ) ) ;
 }
 }

fix empty list type handling in DataTypeTest


<nb> public class TestStatementCache extends DefaultTestCase {
 Connection con1 = datasource . getConnection ( ) ;
 Connection con2 = datasource . getConnection ( ) ;
 for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 - @ suppresswarnings ( STRING0 ) SINGLE
 Connection con = ( i % NUMBER2 == NUMBER0 ) ? con1 : con2 ;
 PreparedStatement ps = con . prepareStatement ( STRING1 + i ) ;
 ps . close ( ) ;


<nb> public class TokenPathBinder implements PathBinder {
 }

 private String decodeURIComponent ( String s ) {
 - String str = null ;
 + String str ;
 try {
 str = URLDecoder . decode ( s . replaceAll ( STRING0 , STRING1 ) , STRING2 ) ;
 } catch ( UnsupportedEncodingException ignored ) {


<nb> public class SimpleAccountRegistrationActivator

 for ( int j = NUMBER0 ; j < accountsList . size ( ) ; j ++ )
 {
 - accountID = ( AccountID ) accountsList . get ( i ) ;
 + accountID = ( AccountID ) accountsList . get ( j ) ;

 boolean isHidden =
 accountID . getAccountProperties ( )


<nb> public class WorldEdit {
 public boolean handleRightClick ( LocalPlayer player ) {
 LocalSession session = getSession ( player ) ;

 - if ( player . getItemInHand ( ) == config . navigationWand ) {
 + if ( player . isHoldingPickAxe ( ) ) {
 + if ( session . getArmSwingMode ( ) != null ) {
 + session . getArmSwingMode ( ) . act ( server , config ,
 + player , session , null ) ;
 + return true ;
 + }
 + } else if ( player . getItemInHand ( ) == config . navigationWand ) {
 CompassMode mode = session . getCompassMode ( ) ;

 if ( mode == CompassMode . JUMPTO ) {

Changed the arm swing tools to also work on right click


<nb> public class NamingRuleSet extends RuleSetBase {
 STRING0 ) ) ;

 digester . addObjectCreate ( prefix + STRING1 ,
 - STRING2 ) ;
 + STRING3 ) ;
 digester . addRule ( prefix + STRING1 , new SetAllPropertiesRule ( ) ) ;
 digester . addRule ( prefix + STRING1 ,
 new SetNextNamingRule ( STRING4 ,

Can t init wsdl Service as Naming Context


<nb> public class OClass extends OSchemaRecord {
 }

 public void removeProperty ( final String iPropertyName ) {
 - OProperty prop = properties . remove ( iPropertyName ) ;
 + OProperty prop = properties . remove ( iPropertyName . toLowerCase ( ) ) ;

 if ( prop == null )
 throw new OSchemaException ( STRING0 + iPropertyName + STRING1 + name + STRING2 ) ;

 + prop . removeIndex ( ) ;
 +
 fixedSize -= prop . getType ( ) . size ;
 setDirty ( ) ;
 }


<nb> public class ActionHandler extends CommandHandler {
 application . invokeLater ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - executeAction ( action , context , actionName ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + application . invokeLater ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + executeAction ( action , context , actionName ) ;
 + }
 + } ) ;
 }
 } ) ;
 }


<nb> public class BootstrapMain {
 List jars = new ArrayList ( ) ;
 File [ ] files = getGradleClasspath ( gradleHome , bootStrapDebug ) ;
 for ( int i = NUMBER0 ; i < files . length ; i ++ ) {
 - jars . add ( files [ i ] . toURL ( ) ) ;
 + if ( files [ i ] . isFile ( ) ) {
 + jars . add ( files [ i ] . toURL ( ) ) ;
 + }
 }
 ClassLoader parentClassloader = classLoader . getParent ( ) ;
 if ( bootStrapDebug ) {

Only include file objects no dirs from lib dir


<nb> public class OutputStreamDataSink implements DataSink {
 outputStreamCallback . onWriteable ( ) ;

 if ( closeReported && ! pending . hasRemaining ( ) ) {
 - System . out . println ( STRING0 + totalWritten ) ;
 if ( mClosedCallback != null )
 mClosedCallback . onCompleted ( closeException ) ;
 return ;
 <nb> public class OutputStreamDataSink implements DataSink {
 return ;
 closeReported = true ;
 closeException = ex ;
 - doBackground ( ) ;
 + if ( blocking ) {
 + getServer ( ) . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + doBackground ( ) ;
 + }
 + } ) ;
 + return ;
 + }
 +
 + if ( mClosedCallback != null )
 + mClosedCallback . onCompleted ( closeException ) ;
 }

 CompletedCallback mClosedCallback ;


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

 import NAMESPACE ;

 <nb> public class StringSorter {
 ExternalSorter < String > sorter = new ExternalSorter < String > ( new StringSerializer ( ) ,
 internalSortSize ,
 numThreads ) ;
 - LineIterator it = new LineIterator ( new BufferedReader ( new FileReader ( input ) ,
 - NUMBER0 * NUMBER1 * NUMBER1 ) ) ;
 + @ suppresswarnings ( STRING0 )
 + Iterator < String > it = new LineIterator ( new BufferedReader ( new FileReader ( input ) ,
 + NUMBER0 * NUMBER1 * NUMBER1 ) ) ;

 String seperator = System . getProperty ( STRING1 ) ;
 BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( System . out ) ,

Add SuppressWarnings unchecked when assigning ListIterator to Iterator String since the commons io is not generified


<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 ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JavaDocInfoComponent extends JPanel implements Disposable {
 }

 private static boolean isExternalDocActionEnabled ( PsiElement element ) {
 - boolean actionEnabled = element != null && ( element . getLanguage ( ) == StdLanguages . JAVA || JavaDocManager . getExternalJavaDocUrl ( element ) != null ) ;
 + boolean actionEnabled = element != null && JavaDocManager . getExternalJavaDocUrl ( element ) != null ;

 if ( element instanceof PsiVariable && ! ( element instanceof PsiField ) ) {
 actionEnabled = false ;

disable view external javadoc if no external javadoc is configured


<nb> public class RefParameterImpl extends RefElementImpl implements RefParameter {

 myIndex = ( short ) index ;
 myActualValueTemplate = VALUE_UNDEFINED ;
 + final RefElementImpl owner = ( RefElementImpl ) manager . getReference ( PsiTreeUtil . getParentOfType ( parameter , PsiMethod . class ) ) ;
 + if ( owner != null ) {
 + owner . add ( this ) ;
 + }
 }

 public void parameterReferenced ( boolean forWriting ) {


<nb> public abstract class TitanGraphTest extends TitanGraphBaseTest {

 newTx ( ) ;

 - assertCount ( NUMBER0 , Iterables . size ( tx . query ( ) . has ( STRING0 , STRING1 ) . vertices ( ) ) ) ;
 - assertCount ( NUMBER1 , Iterables . size ( tx . query ( ) . has ( STRING0 , STRING2 ) . vertices ( ) ) ) ;
 - assertCount ( NUMBER1 , Iterables . size ( tx . query ( ) . has ( STRING3 , NUMBER2 ) . vertices ( ) ) ) ;
 + assertCount ( NUMBER0 , tx . query ( ) . has ( STRING0 , STRING1 ) . vertices ( ) ) ;
 + assertCount ( NUMBER1 , tx . query ( ) . has ( STRING0 , STRING2 ) . vertices ( ) ) ;
 + assertCount ( NUMBER1 , tx . query ( ) . has ( STRING3 , NUMBER2 ) . vertices ( ) ) ;
 }

 COMMENT

Fix failing unit test due to asserting count on an integer


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisitorWrapper {
 <nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
 }

 COMMENT
 + COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 final class PolymerPass extends AbstractPostOrderCallback implements HotSwapCompilerPass {

Add link to documentation about the Polymer pass


<nb> class ExperimentalStateTracker {
 if ( packageProgressReceiver != null ) {
 Pair < String , String > progress = packageProgressReceiver . progressState ( ) ;
 terminalWriter . append ( STRING0 + progress . getFirst ( ) + STRING1 ) ;
 - if ( progress . getSecond ( ) . length ( ) > NUMBER0 ) {
 + if ( progress . getSecond ( ) . length ( ) > NUMBER0 && ! shortVersion ) {
 terminalWriter . newline ( ) . append ( STRING2 + progress . getSecond ( ) ) ;
 }
 }

also during loading produce a short progress bar


<nb> public abstract class TestObject implements JavaCommandLine {

 myJavaParameters . getClassPath ( ) . add ( JavaSdkUtil . getIdeaRtJarPath ( ) ) ;
 myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( JUnitStarter . class ) ) ;
 - myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( ServiceMessageTypes . class ) ) ;
 + if ( Registry . is ( STRING0 , false ) ) {
 + myJavaParameters . getClassPath ( ) . add ( PathUtil . getJarPathForClass ( ServiceMessageTypes . class ) ) ;
 + }
 myJavaParameters . getProgramParametersList ( ) . add ( JUnitStarter . IDE_VERSION + JUnitStarter . VERSION ) ;
 for ( RunConfigurationExtension ext : Extensions . getExtensions ( RunConfigurationExtension . EP_NAME ) ) {
 ext . updateJavaParameters ( myConfiguration , myJavaParameters , getRunnerSettings ( ) ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class AHBottomNavigation extends FrameLayout {
 COMMENT
 COMMENT
 COMMENT
 - public void addItems ( ArrayList < AHBottomNavigationItem > items ) {
 + public void addItems ( List < AHBottomNavigationItem > items ) {
 if ( items . size ( ) >= MAX_ITEMS || ( this . items . size ( ) + items . size ( ) ) > MAX_ITEMS ) {
 Log . w ( TAG , STRING0 ) ;
 }

Allow AHBottomNavigation addItems to take List as parameter instead of ArrayList


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 public class BlogTest extends InstrumentationTestCase {
 private Blog blog ;

 <nb> import NAMESPACE ;

 import NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 public class PostTest extends InstrumentationTestCase {
 private WordPressDB mDB ;

Removing author information from test related files


<nb> final class Dictan extends DictionaryUtil . PackageInfo {
 outliner . run ( ) ;
 }
 } catch ( ActivityNotFoundException e ) {
 - fbreader . hideDictionarySelection ( ) ;
 InternalUtil . installDictionaryIfNotInstalled ( fbreader , this ) ;
 }
 }


<nb> public final class HazelcastComponentHelper {
 addMapping ( STRING0 , HazelcastConstants . QUERY_OPERATION ) ;
 addMapping ( STRING1 , HazelcastConstants . GET_ALL_OPERATION ) ;
 addMapping ( STRING2 , HazelcastConstants . CLEAR_OPERATION ) ;
 + addMapping ( STRING3 , HazelcastConstants . EVICT_OPERATION ) ;
 + addMapping ( STRING4 , HazelcastConstants . EVICT_ALL_OPERATION ) ;
 + addMapping ( STRING5 , HazelcastConstants . PUT_IF_ABSENT_OPERATION ) ;
 + addMapping ( STRING6 , HazelcastConstants . ADD_ALL_OPERATION ) ;
 + addMapping ( STRING7 , HazelcastConstants . REMOVE_ALL_OPERATION ) ;
 + addMapping ( STRING8 , HazelcastConstants . RETAIN_ALL_OPERATION ) ;

 SINGLE
 addMapping ( STRING9 , HazelcastConstants . REMOVEVALUE_OPERATION ) ;

HazelcastComponentHelper miss some operations in mapping


<nb> public abstract class MessagesFragment extends DisplayListFragment < Message , Mess
 } else {
 background = Drawable . createFromPath ( BaseActorSettingsFragment . getWallpaperFile ( ) ) ;
 }
 - ( ( ImageView ) res . findViewById ( R . id . chatBackgroundView ) ) . setImageDrawable ( background ) ;
 + } else {
 + background = getResources ( ) . getDrawable ( backgrounds [ NUMBER0 ] ) ;
 }
 + ( ( ImageView ) res . findViewById ( R . id . chatBackgroundView ) ) . setImageDrawable ( background ) ;

 SINGLE


<nb> public final class RingtonePickerActivity extends AlertActivity implements
 public void run ( ) {

 if ( mSampleRingtonePos == mSilentPos ) {
 + mRingtoneManager . stopPreviousRingtone ( ) ;
 return ;
 }

Stop previous ringtone when silent is selected


<nb> public class ChaseCamera implements ActionListener , AnalogListener , Control {
 protected float maxVerticalRotation = FastMath . PI / NUMBER0 ;
 protected float minDistance = FLOAT0 ;
 protected float maxDistance = FLOAT1 ;
 - protected float distance = NUMBER1 ;
 - protected float zoomSpeed = FLOAT2 ;
 + protected float distance = NUMBER1 ;
 protected float rotationSpeed = FLOAT0 ;
 protected float rotation = NUMBER2 ;
 protected float trailingRotationInertia = FLOAT3 ;
 - protected float zoomSensitivity = FLOAT4 ;
 + protected float zoomSensitivity = FLOAT2 ;
 protected float rotationSensitivity = FLOAT4 ;
 protected float chasingSensitivity = FLOAT4 ;
 protected float trailingSensitivity = FLOAT5 ;
 <nb> public class ChaseCamera implements ActionListener , AnalogListener , Control {
 }

 zooming = true ;
 - targetDistance += value * zoomSpeed ;
 + targetDistance += value * zoomSensitivity ;
 if ( targetDistance > maxDistance ) {
 targetDistance = maxDistance ;
 }

Fixed zoomSensitivity in chaseCamera removed the zoomSpeed


<nb> public abstract class Mode {
 abstract public String getDefaultExtension ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getModuleExtension ( ) {
 + return getDefaultExtension ( ) ;
 + }
 +

 COMMENT
 COMMENT
 <nb> public class Sketch {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 protected void nameCode ( String newName ) {
 newName = newName . trim ( ) ;
 <nb> public class Sketch {

 SINGLE
 if ( newName . indexOf ( STRING0 ) == - NUMBER0 ) {
 - newName += STRING1 + mode . getDefaultExtension ( ) ;
 + newName += STRING1 + ( renamingCode ? mode . getDefaultExtension ( ) : mode . getModuleExtension ( ) ) ;
 }

 SINGLE

Permit Modes to specify different default file extension for auxilliary not main pde files created in new tabs


<nb> public class MainController implements Choreographer . FrameCallback {
 Log . e ( TAG , STRING0 ) ;
 sStartExpandedActivityTime = System . currentTimeMillis ( ) ;
 Intent intent = new Intent ( mContext , ExpandedActivity . class ) ;
 - intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ; SINGLE
 + intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
 mContext . getApplicationContext ( ) . startActivity ( intent ) ;
 }

Remove use of Intent FLAG_ACTIVITY_TASK_ON_HOME flag


<nb> public class GeoIntentActivity extends OsmandListActivity {

 private ProgressDialog progressDlg ;
 private LatLon location ;
 + protected static final boolean DO_NOT_SEARCH_ADDRESS = true ;

 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 <nb> public class GeoIntentActivity extends OsmandListActivity {
 if ( geo != null ) {
 return new ExecutionResult ( Collections . singleton ( geo ) ) ;
 }
 + SINGLE
 + if ( DO_NOT_SEARCH_ADDRESS ) {
 + return ExecutionResult . EMPTY ;
 + }

 SINGLE
 SINGLE


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ArithmeticNode extends SimpleNode {
 + public abstract class ArithmeticNode extends SimpleNode {

 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class BooleanNode extends SimpleNode {
 + public abstract class BooleanNode extends SimpleNode {
 COMMENT
 COMMENT
 COMMENT


<nb> public class BookFragmentTest extends ActivityInstrumentationTestCase2 < MainActiv
 public void test_shouldShowBookTitle ( ) throws Exception {
 TextView titleText = ( TextView ) solo . getView ( R . id . title ) ;
 assertEquals ( View . VISIBLE , titleText . getVisibility ( ) ) ;
 - assertNotSame ( STRING0 , titleText . getText ( ) . toString ( ) ) ;
 solo . sleep ( NUMBER0 ) ;
 - assertEquals ( STRING0 , titleText . getText ( ) . toString ( ) ) ;
 + assertEquals ( titleText . getText ( ) . toString ( ) . startsWith ( STRING1 ) , true ) ;
 }
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class SpanishTreebankLanguagePack extends AbstractTreebankLanguagePack {
 COMMENT
 @ override
 public TokenizerFactory < ? extends HasWord > getTokenizerFactory ( ) {
 - return SpanishTokenizer . SpanishTokenizerFactory . newTokenizerFactory ( ) ;
 + return SpanishTokenizer . factory ( new CoreLabelTokenFactory ( ) , null ) ;
 }

 COMMENT


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

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

 COMMENT
 <nb> public class ThreeClientsRecordDeleteWithTransactionsOnMultipleServersScenarioTe

 @ override
 public String getDatabaseName ( ) {
 - return STRING0 ;
 + return STRING1 ;
 }

 }


<nb> public final class BridgeContext extends Context {
 SINGLE
 return null ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + @ override
 + public int getUserId ( ) {
 + return NUMBER0 ; SINGLE
 + }
 }


<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
 fc = handleIoException ( fc , future ) ;
 } else {
 fc = new FilterContext . FilterContextBuilder ( ) . asyncHandler ( future . getAsyncHandler ( ) )
 - . request ( future . getRequest ( ) ) . replayRequest ( true ) . ioException ( IOException . class . cast ( cause . getClass ( ) ) ) . build ( ) ;
 + . request ( future . getRequest ( ) ) . replayRequest ( true ) . build ( ) ;
 }

 if ( fc . replayRequest ( ) ) {


<nb> public class DefaultGradleLauncherFactory implements GradleLauncherFactory {
 }
 listenerManager . addListener ( tracker ) ;

 + listenerManager . addListener ( serviceRegistry . get ( ProfileEventAdapter . class ) ) ;
 if ( startParameter . isProfile ( ) ) {
 - listenerManager . addListener ( serviceRegistry . get ( ProfileEventAdapter . class ) ) ;
 listenerManager . addListener ( new ReportGeneratingProfileListener ( ) ) ;
 }
 ScriptUsageLocationReporter usageLocationReporter = new ScriptUsageLocationReporter ( ) ;

Revert register ProfileEventAdapter only when profiling is enabled


<nb> public class TestBeeLineWithArgs {
 final String EXPECTED_PATTERN = STRING0 ;
 testScriptFile ( SCRIPT_TEXT , EXPECTED_PATTERN , true , argList , true , false ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + @ test
 + public void testBeelineWithForce ( ) throws Throwable {
 + final String SCRIPT_TEXT = STRING1
 + + STRING2
 + + STRING3 ;
 + final String EXPECTED_PATTERN = STRING4 ;
 + List < String > argList = getBaseArgs ( miniHS2 . getBaseJdbcURL ( ) ) ;
 + argList . add ( STRING5 ) ;
 + testScriptFile ( SCRIPT_TEXT , EXPECTED_PATTERN , true , argList ) ;
 + }
 }

Add tests for beeline force option Kavan Suresh via Jason Dere


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL
 COMMENT
 public void setConfigurationClasses ( String [ ] configurations )
 {
 - if ( isRunning ( ) )
 + if ( isStarted ( ) )
 throw new IllegalStateException ( ) ;
 _configurationClasses = configurations == null ? null : ( String [ ] ) configurations . clone ( ) ;
 _configurationClassesSet = true ;
 <nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL
 COMMENT
 public void setConfigurations ( Configuration [ ] configurations )
 {
 - if ( isRunning ( ) )
 + if ( isStarted ( ) )
 throw new IllegalStateException ( ) ;
 _configurations = configurations == null ? null : ( Configuration [ ] ) configurations . clone ( ) ;
 _configurationsSet = true ;

allow configuration during starting state


<nb> public class Arguments implements GenerationConfig {
 @ parameter ( names = { STRING0 , STRING1 } , description = STRING2 )
 private boolean nullCollections = false ;

 - @ parameter ( names = { STRING3 , STRING4 } , description = STRING2 )
 + @ parameter ( names = { STRING3 , STRING4 } , description = STRING5 )
 private String classNamePrefix = STRING6 ;

 - @ parameter ( names = { STRING7 , STRING8 } , description = STRING2 )
 + @ parameter ( names = { STRING7 , STRING8 } , description = STRING9 )
 private String classNameSuffix = STRING6 ;

 private static final int EXIT_OKAY = NUMBER0 ;

Fix parameter description of class prefix and class suffix


<nb> public class CachedResource implements WebResource {
 return true ;
 }

 + if ( ! webResource . exists ( ) &&
 + root . getResourceInternal ( webAppPath ) . exists ( ) ) {
 + return false ;
 + }
 +
 SINGLE
 SINGLE
 if ( webResource . getLastModified ( ) != getLastModified ( ) ||

Invalidate the cache entry if a previously missing resource is now present


<nb> public class SparkDl4jLayer implements Serializable {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public Layer fitDataSet ( JavaRDD < DataSet > rdd ) {
 int batchSize = conf . getBatchSize ( ) ;


<nb> public class View implements ViewDelegate {
 }
 }

 - public void addContextPanelFactory ( ContextPanelFactory cpf ) {
 + @ override
 + public void addContextPanelFactory ( ContextPanelFactory cpf ) {
 this . contextPanelFactories . add ( cpf ) ;
 }

Add missing Override to method addContextPanelFactory


<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
 final FileOutputStream fos = new FileOutputStream ( fileName ) ;
 try {
 currentDatabase . backup ( fos , null , null , this , compressionLevel , bufferSize ) ;
 -
 - } finally {
 fos . flush ( ) ;
 fos . close ( ) ;
 -
 message ( STRING0 , ( ( float ) ( System . currentTimeMillis ( ) - startTime ) / NUMBER0 ) ) ;
 + } catch ( RuntimeException e ) {
 + fos . close ( ) ;
 + File f = new File ( fileName ) ;
 + if ( f . exists ( ) )
 + f . delete ( ) ;
 + throw e ;
 }
 }
 } catch ( ODatabaseExportException e ) {

removed eventual backup file if the backup operation fail


<nb> public abstract class MixinNetHandlerPlayServer {
 + STRING0
 + STRING1 , remap = false ) )
 public PlayerInteractEvent onFirePlayerInteractEvent ( EntityPlayer player , PlayerInteractEvent . Action action , World world , BlockPos pos , EnumFacing face ) {
 - PlayerInteractEvent event = new PlayerInteractEvent ( playerEntity , PlayerInteractEvent . Action . RIGHT_CLICK_AIR , new BlockPos ( NUMBER0 , NUMBER0 , NUMBER0 ) , null , world ) ;
 + PlayerInteractEvent event = new PlayerInteractEvent ( player , action , pos , face , world ) ;
 double reach = this . playerEntity . theItemInWorldManager . getGameType ( ) == WorldSettings . GameType . CREATIVE ? NUMBER1 : FLOAT0 ;
 Optional < BlockRayHit > attempt =
 BlockRay . from ( ( Player ) this . playerEntity )

Use provided arguments from redirect for block place event


<nb> public class Message
 {
 if ( field . groupFields ( ) != null )
 {
 - return field . computedOffset ( ) ;
 + return blockLength ;
 }
 else if ( field . type ( ) != null )
 {
 <nb> public class Message
 {
 if ( NUMBER0 != specifiedBlockLength && computedBlockLength > specifiedBlockLength )
 {
 - handleError ( node , STRING0 ) ;
 + handleError ( node , STRING1 + computedBlockLength + STRING2 + specifiedBlockLength ) ;
 }
 }
 }

fixed check when computing root blocklength to return current blocklength value when hitting a group


<nb> public interface Cluster {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Daemon implements Stoppable {

 Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) {
 public void run ( ) {
 - LOGGER . debug ( STRING0 ) ;
 try {
 daemonRegistry . remove ( connectorAddress ) ;
 } catch ( Exception e ) {


<nb> public class ShareActivity extends FileActivity
 public void onGetDataShareWithFinish ( RemoteOperationResult result ) {
 SINGLE
 dismissLoadingDialog ( ) ;
 - if ( result != null && result . isSuccess ( ) ) {
 + if ( result . isSuccess ( ) ) {
 Log_OC . d ( TAG , STRING0 ) ;
 } SINGLE


<nb> public class IQRouter extends BasicModule {
 namespace = childElement . getNamespaceURI ( ) ;
 }
 if ( namespace == null ) {
 - if ( packet . getType ( ) != IQ . Type . result ) {
 + if ( packet . getType ( ) != IQ . Type . result && packet . getType ( ) != IQ . Type . error ) {
 SINGLE
 Log . warn ( STRING0 + packet ) ;
 }

Do not print warn message with returned IQ error packets


<nb> public interface ModelMap < T > extends CollectionBuilder < T > , Iterable < T > {
 < S extends T > void create ( String name , Class < S > type , Action < ? super S > configAction ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 + SINGLE
 void put ( String name , T instance ) ;

 COMMENT


<nb>

 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class ContextNames {
 final int i = context . indexOf ( STRING0 ) ;
 if ( i == - NUMBER0 ) {
 namespace = context . substring ( NUMBER1 ) ;
 + } else if ( i == NUMBER1 ) {
 + SINGLE
 + return JAVA_CONTEXT_SERVICE_NAME . append ( context . substring ( NUMBER2 ) ) ;
 } else {
 namespace = context . substring ( NUMBER1 , i ) ;
 }
 +
 if ( namespace . equals ( STRING1 ) ) {
 return GLOBAL_CONTEXT_SERVICE_NAME . append ( context . substring ( NUMBER3 ) ) ;
 } else if ( namespace . equals ( STRING2 ) ) {


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

 import NAMESPACE ;

Changed the HA REST API so that it returns UNKNOWN when it s neither master nor slave


<nb> public enum ServerMeter implements AbstractMetrics . Meter {
 REALTIME_ROWS_CONSUMED ( STRING0 , true ) ,
 INVALID_REALTIME_ROWS_DROPPED ( STRING0 , false ) ,
 REALTIME_CONSUMPTION_EXCEPTIONS ( STRING1 , true ) ,
 - REALTIME_OFFSET_COMMITS ( STRING2 , true ) ;
 + REALTIME_OFFSET_COMMITS ( STRING2 , true ) ,
 + REALTIME_OFFSET_COMMIT_EXCEPTIONS ( STRING1 , false ) ;

 private final String meterName ;
 private final String unit ;
 <nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class RealtimeSegmentDataManager extends SegmentDataManager {
 SINGLE
 LOGGER . error ( STRING3 ,
 commitSuccessful , e ) ;
 + serverMetrics . addMeteredTableValue ( tableName , ServerMeter . REALTIME_OFFSET_COMMIT_EXCEPTIONS , NUMBER0 ) ;
 if ( ! commitSuccessful ) {
 kafkaStreamProvider . shutdown ( ) ;
 }


<nb> public class SSTableRewriterTest extends SchemaLoader
 SSTableWriter writer = getWriter ( cfs , dir ) ;
 try
 {
 - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ )
 + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ )
 writer . append ( StorageService . getPartitioner ( ) . decorateKey ( random ( i , NUMBER3 ) ) , cf ) ;
 SSTableReader s = writer . openEarly ( NUMBER1 ) ;
 assert s != null ;
 assertFileCounts ( dir . list ( ) , NUMBER4 , NUMBER4 ) ;
 - for ( int i = NUMBER1 ; i < NUMBER5 ; i ++ )
 + for ( int i = NUMBER2 ; i < NUMBER6 ; i ++ )
 writer . append ( StorageService . getPartitioner ( ) . decorateKey ( random ( i , NUMBER3 ) ) , cf ) ;
 SSTableReader s2 = writer . openEarly ( NUMBER1 ) ;
 assertTrue ( s . last . compareTo ( s2 . last ) < NUMBER0 ) ;

Fix SSTableRewriterTest when run with compression


<nb> public class CxfRsInvoker extends JAXRSInvoker {
 SINGLE
 return method . invoke ( serviceObject , paramArray ) ;
 }
 - Continuation continuation = getContinuation ( cxfExchange ) ;
 - SINGLE
 - if ( continuation != null && ! endpoint . isSynchronous ( ) && Version . getCurrentVersion ( ) . startsWith ( STRING0 ) ) {
 + Continuation continuation ;
 + if ( ! endpoint . isSynchronous ( ) && ( continuation = getContinuation ( cxfExchange ) ) != null && Version . getCurrentVersion ( ) . startsWith ( STRING0 ) ) {
 + SINGLE
 return asyncInvoke ( cxfExchange , serviceObject , method , paramArray , continuation ) ;
 } else {
 return syncInvoke ( cxfExchange , serviceObject , method , paramArray ) ;

Do not use CXF continuation if option is disabled


<nb> public class CaptivePortalLoginActivity extends Activity {
 }

 @ override
 + public void onBackPressed ( ) {
 + WebView myWebView = ( WebView ) findViewById ( R . id . webview ) ;
 + if ( myWebView . canGoBack ( ) ) {
 + myWebView . goBack ( ) ;
 + } else {
 + super . onBackPressed ( ) ;
 + }
 + }
 +
 + @ override
 public boolean onOptionsItemSelected ( MenuItem item ) {
 int id = item . getItemId ( ) ;
 if ( id == R . id . action_use_network ) {

Make back button work in CaptivePortalLogin app like a web browser


<nb> public class ITvInputSessionWrapper extends ITvInputSession . Stub implements Hand
 private static final String TAG = STRING0 ;

 private static final int MESSAGE_HANDLING_DURATION_THRESHOLD_MILLIS = NUMBER0 ;
 - private static final int MESSAGE_TUNE_DURATION_THRESHOLD_MILLIS = NUMBER1 ;
 + private static final int MESSAGE_TUNE_DURATION_THRESHOLD_MILLIS = NUMBER2 ;

 private static final int DO_RELEASE = NUMBER3 ;
 private static final int DO_SET_MAIN = NUMBER4 ;

increase the time threshold for tune operation which was too harsh


<nb> public class IndexingMemoryBufferController extends AbstractLifecycleComponent < I
 SINGLE
 if ( ! status . inactive ) {
 SINGLE
 - if ( ( time - status . time ) > inactiveTime . millis ( ) && ( ( InternalIndexShard ) indexShard ) . mergeScheduler ( ) . stats ( ) . current ( ) == NUMBER0 ) {
 + if ( ( time - status . time ) > inactiveTime . millis ( ) && indexShard . mergeStats ( ) . current ( ) == NUMBER0 ) {
 try {
 ( ( InternalIndexShard ) indexShard ) . engine ( ) . updateIndexingBufferSize ( Engine . INACTIVE_SHARD_INDEXING_BUFFER ) ;
 } catch ( EngineClosedException e ) {


<nb> public class ChatConversationPanel
 + message
 + endHeaderTag ;
 }
 + else if ( messageType . equals ( Constants . ACTION_MESSAGE ) )
 + {
 + chatString = STRING0
 + + msgDate + STRING1 ;
 + endHeaderTag = STRING2 ;
 +
 + chatString += STRING3 + GuiUtils . formatTime ( date )
 + + STRING4 + contactName + STRING4
 + + message
 + + endHeaderTag ;
 + }
 else if ( messageType . equals ( Constants . SYSTEM_MESSAGE ) )
 {
 chatString += startSystemDivTag

new style added for multi user chat action messages


<nb> public class SpiderHtmlParser extends SpiderParser {
 Matcher matcher = urlPattern . matcher ( content ) ;
 if ( matcher . find ( ) ) {
 String url = matcher . group ( NUMBER0 ) ;
 - processURL ( message , depth , baseURL , url ) ;
 + processURL ( message , depth , url , baseURL ) ;
 }
 }
 }

Correct the order of parameters when processing URLs found in meta tags


<nb> public class SimpleAppServer extends AbstractAppServer
 @ override
 public String getDescription ( )
 {
 - return STRING0 ;
 + return STRING1 ;
 }
 }
 }

Changed the description for the Quit app


<nb> public abstract class MahoutTestCase extends org . apache . mahout . math . MahoutTestCa
 }
 super . tearDown ( ) ;
 }
 -
 +
 protected final Configuration getConfiguration ( ) throws IOException {
 - Configuration conf = new Configuration ( ) ;
 + Configuration conf = new Configuration ( ) ;
 conf . set ( STRING0 , getTestTempDir ( STRING1 + Math . random ( ) ) . getAbsolutePath ( ) ) ;
 return conf ;
 }

Formatted code replaced tabs with spaces and deleted trailing whitespace


<nb> public final class URLChecker {

 COMMENT
 private static final String TAG = STRING0 ;
 - COMMENT
 - private static final String FEEDBURNER_URL = STRING1 ;
 - COMMENT
 - private static final String FEEDBURNER_PREFIX = STRING2 ;

 COMMENT
 COMMENT
 <nb> public final class URLChecker {
 }
 builder . append ( url ) ;

 - if ( url . contains ( FEEDBURNER_URL ) ) {
 - if ( AppConfig . DEBUG ) Log . d ( TAG ,
 - STRING3 ) ;
 - builder . append ( FEEDBURNER_PREFIX ) ;
 - }
 return builder . toString ( ) ;
 }
 }

Removed feedburner specific URL handling


<nb> public class TraktFriendsFragment extends SherlockFragment implements
 Toast . makeText ( getActivity ( ) , R . string . offline , Toast . LENGTH_SHORT ) . show ( ) ;
 return ;
 }
 + showProgressBar ( true ) ;
 mEmptyView . setText ( R . string . friends_empty ) ;
 getLoaderManager ( ) . restartLoader ( ShowsActivity . FRIENDS_LOADER_ID , null ,
 mActivityLoaderCallbacks ) ;

Also show progress when refreshing via button


<nb> public class ImagePresenter < T > {

 width = imageView . getWidth ( ) ;
 height = imageView . getHeight ( ) ;
 - if ( pendingLoad != null )
 - Log . d ( STRING0 + width + STRING1 + height ) ;
 + SINGLE
 + SINGLE
 if ( width != NUMBER0 && height != NUMBER0 ) {
 postPendingLoad ( ) ;
 }


<nb> public class GitHubService {
 input . getTitle ( ) , input . getHead ( ) , input . getBase ( ) , input . getBody ( ) ) ;
 return gitHubDTOFactory . createPullRequest ( pullRequest ) ;
 } catch ( Exception e ) {
 - LOG . error ( STRING0 , e ) ;
 + if ( ! e . getMessage ( ) . contains ( STRING1 ) ) {
 + LOG . error ( STRING0 , e ) ;
 + }
 throw new ServerException ( e . getMessage ( ) ) ;
 }
 }

Do not log error when sending a pull request to own project


<nb> final class BaseWebBrowserAction extends BaseOpenInBrowserAction {
 @ nullable
 @ override
 protected WebBrowser getBrowser ( @ notnull AnActionEvent event ) {
 - return WebBrowserManager . getInstance ( ) . isActive ( browser ) ? browser : null ;
 + return WebBrowserManager . getInstance ( ) . isActive ( browser ) && browser . getPath ( ) != null ? browser : null ;
 }
 }

don t show browser if path is not specified


<nb> public class EnglishGrammaticalRelations {
 COMMENT
 COMMENT
 public static final GrammaticalRelation CLAUSAL_PASSIVE_SUBJECT =
 - new GrammaticalRelation ( Language . English , STRING0 , STRING1 ,
 + new GrammaticalRelation ( Language . English , STRING0 , STRING2 ,
 ClausalPassiveSubjectGRAnnotation . class , CLAUSAL_SUBJECT , STRING3 , tregexCompiler ,
 new String [ ] {
 STRING4 + passiveAuxWordRegex + STRING5 ,


<nb> public class Log {

 SINGLE
 Handler jdkLogHandler = new JiveLogHandler ( ) ;
 + jdkLogHandler . setLevel ( Level . ALL ) ;
 java . util . logging . Logger . getLogger ( STRING0 ) . addHandler ( jdkLogHandler ) ;
 }


<nb> public class RelativeLayout extends ViewGroup {
 mRules [ ALIGN_PARENT_START ] = NUMBER0 ;
 }

 - if ( mRules [ ALIGN_PARENT_RIGHT ] == NUMBER0 ) {
 + if ( mRules [ ALIGN_PARENT_END ] != NUMBER0 ) {
 if ( mRules [ ALIGN_PARENT_RIGHT ] == NUMBER0 ) {
 SINGLE
 SINGLE

Fix alignParentRight End in RelativeLayout


<nb> public final class ActivityStackSupervisor implements DisplayListener {
 SINGLE
 SINGLE
 SINGLE
 - mWindowManager . resizeTask ( task . taskId , bounds , task . mOverrideConfig ,
 + mWindowManager . resizeTask ( task . taskId , task . mBounds , task . mOverrideConfig ,
 false COMMENT , false COMMENT ) ;
 }
 }
 <nb> final class TaskRecord {
 Rect updateOverrideConfigurationFromLaunchBounds ( ) {
 final Rect bounds = validateBounds ( getLaunchBounds ( ) ) ;
 updateOverrideConfiguration ( bounds ) ;
 + if ( bounds != null ) {
 + bounds . set ( mBounds ) ;
 + }
 return bounds ;
 }

Use correct task bounds after updating override config


<nb> public class BackgroundableProcessIndicator extends ProgressWindow {
 final Project nonDefaultProject = project == null || project . isDisposed ( ) ? null : project . isDefault ( ) ? null : project ;
 final IdeFrame frame = ( ( WindowManagerEx ) WindowManager . getInstance ( ) ) . findFrameFor ( nonDefaultProject ) ;
 myStatusBar = ( StatusBarEx ) frame . getStatusBar ( ) ;
 + myBackgrounded = option . shouldStartInBackground ( ) ;
 if ( option . shouldStartInBackground ( ) ) {
 doBackground ( ) ;
 }
 <nb> public class ProgressWindow extends BlockingProgressIndicator implements Disposa
 private boolean myStoppedAlready = false ;
 protected final FocusTrackback myFocusTrackback ;
 private boolean myStarted = false ;
 - private boolean myBackgrounded = false ;
 + protected boolean myBackgrounded = false ;
 private boolean myWasShown ;
 private String myProcessId = STRING0 ;
 @ nullable private volatile Runnable myBackgroundHandler ;

correctly define isBackgroundable method review kirill safonov


<nb> public class JsonProvider implements MessageBodyReader < Object > , MessageBodyWrite

 if ( type . equals ( String . class ) ) {
 entityStream . write ( value . toString ( ) . getBytes ( Charsets . UTF_8 ) ) ;
 + } else if ( value instanceof byte [ ] ) {
 + entityStream . write ( ( byte [ ] ) value ) ;
 } else {
 getMapper ( ) . writeValue ( entityStream , value ) ;
 }

don t handle byte arrays with jackson feed icons


<nb> public class AssetTextureSource implements ITextureSource {
 return null ;
 }
 }
 +
 + @ override
 + public String toString ( ) {
 + return this . getClass ( ) . getSimpleName ( ) + STRING0 + this . mAssetPath + STRING1 ;
 + }

 SINGLE
 SINGLE
 <nb> public class ResourceTextureSource implements ITextureSource {
 public Bitmap getBitmap ( ) {
 return BitmapFactory . decodeResource ( this . mContext . getResources ( ) , this . mDrawableResourceID ) ;
 }
 +
 + @ override
 + public String toString ( ) {
 + return this . getClass ( ) . getSimpleName ( ) + STRING0 + this . mDrawableResourceID + STRING1 ;
 + }

 SINGLE
 SINGLE


<nb> public class OpenHABConfigurationRecord {
 public Map < String , String > actionlist ;

 enum TYPE {
 - LIST , FREELIST , MULTILIST , STRING , GROUP , DECIMAL , HEXADECIMAL , BINARY , BYTE , SHORT , LONG
 + LIST , FREELIST , MULTILIST , CONSTANT , STRING , GROUP , DECIMAL , HEXADECIMAL , BINARY , BYTE , SHORT , LONG
 }

 enum STATE {


<nb> public class StandardServerSF extends StoreFactoryBase {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ScoreKeeper extends Iced {
 throw H2O . unimpl ( STRING0 ) ;
 } SINGLE
 } SINGLE
 +
 + @ override
 + public String toString ( ) {
 + return STRING1 +
 + STRING2 + _r2 +
 + STRING3 + _mean_residual_deviance +
 + STRING4 + _mse +
 + STRING5 + _logloss +
 + STRING6 + _AUC +
 + STRING7 + _classError +
 + STRING8 + Arrays . toString ( _hitratio ) +
 + STRING9 + _lift +
 + STRING10 ;
 + }
 }


<nb> public class LwjglAWTCanvas implements Application {
 }
 }

 + COMMENT
 + public boolean isCurrent ( ) {
 + try {
 + return canvas . isCurrent ( ) ;
 + } catch ( LWJGLException ex ) {
 + throw new GdxRuntimeException ( ex ) ;
 + }
 + }
 +
 COMMENT
 public void setCursor ( Cursor cursor ) {
 this . cursor = cursor ;

Add the ability to test whether the canvas context is current


<nb> public final class DecimalCasts
 {
 BigInteger decimalBigInteger = BigInteger . valueOf ( value ) . multiply ( BigInteger . valueOf ( tenToScale ) ) ;
 if ( overflows ( decimalBigInteger , ( int ) precision ) ) {
 - throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING0 , value , precision , scale ) ) ;
 + throw new PrestoException ( INVALID_CAST_ARGUMENT , format ( STRING1 , value , precision , scale ) ) ;
 }
 return encodeUnscaledValue ( decimalBigInteger ) ;
 }


<nb> public class MultiUserChatServiceImpl implements Component , MultiUserChatService
 IQ reply = IQ . createResultIQ ( iq ) ;
 reply . setType ( IQ . Type . error ) ;
 reply . setError ( PacketError . Condition . service_unavailable ) ;
 + router . route ( reply ) ;
 }
 + return true ;
 }
 return false ;
 }


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

 <nb> public class DomJavaUtil {
 @ nullable
 public static PsiClass findClass ( @ nullable String name , @ notnull DomElement element ) {
 assert element . isValid ( ) ;
 - XmlElement xmlElement = element . getXmlElement ( ) ;
 - if ( xmlElement != null ) {
 - assert xmlElement . isValid ( ) ;
 - return findClass ( name , xmlElement . getContainingFile ( ) , element . getModule ( ) , element . getResolveScope ( ) ) ;
 + if ( DomUtil . hasXml ( element ) ) {
 + return findClass ( name , DomUtil . getFile ( element ) , element . getModule ( ) , element . getResolveScope ( ) ) ;
 }
 return null ;
 }

do not call getXmlElement but use DomUtil hasXml


<nb> public class PsiTreeUtil {
 COMMENT
 COMMENT
 @ nullable
 - public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element , @ notnull final Class < T > . . . classes ) {
 + public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element , @ notnull final Class < ? extends T > . . . classes ) {
 return findChildOfAnyType ( element , true , classes ) ;
 }

 <nb> public class PsiTreeUtil {
 @ nullable
 public static < T extends PsiElement > T findChildOfAnyType ( @ nullable final PsiElement element ,
 final boolean strict ,
 - @ notnull final Class < T > . . . classes ) {
 + @ notnull final Class < ? extends T > . . . classes ) {
 PsiElementProcessor . FindElement < PsiElement > processor = new PsiElementProcessor . FindElement < PsiElement > ( ) {
 @ override
 public boolean execute ( @ notnull PsiElement each ) {

Changed signatures of PsiTreeUtil findChildOfAnyType so they accept vararg Class


<nb> public abstract class ExecutableArchiveLauncher extends Launcher {
 this . javaAgentDetector = javaAgentDetector ;
 }

 - ExecutableArchiveLauncher ( Archive archive ) {
 + protected ExecutableArchiveLauncher ( Archive archive ) {
 this . javaAgentDetector = new InputArgumentsJavaAgentDetector ( ) ;
 this . archive = archive ;
 }
 <nb> public class JarLauncher extends ExecutableArchiveLauncher {

 private static final AsciiBytes LIB = new AsciiBytes ( STRING0 ) ;

 + public JarLauncher ( ) {
 + }
 +
 + protected JarLauncher ( Archive archive ) {
 + super ( archive ) ;
 + }
 +
 @ override
 protected boolean isNestedArchive ( Archive . Entry entry ) {
 return ! entry . isDirectory ( ) && entry . getName ( ) . startsWith ( LIB ) ;
 <nb> public class WarLauncher extends ExecutableArchiveLauncher {
 super ( ) ;
 }

 - WarLauncher ( Archive archive ) {
 + protected WarLauncher ( Archive archive ) {
 super ( archive ) ;
 }


<nb> public class TypeRegistry {
 if ( bangSlash != - NUMBER0 ) {
 String pathInJar = urlstring . substring ( bangSlash + NUMBER1 ) ;
 String remainingPrefix = urlstring . substring ( NUMBER2 , bangSlash ) ;
 - int lastSlash = remainingPrefix . lastIndexOf ( STRING0 ) ; SINGLE
 + int lastSlash = remainingPrefix . lastIndexOf ( File . separator ) ;
 String jarname = remainingPrefix . substring ( lastSlash + NUMBER0 ) ;
 for ( String jarToWatch : GlobalConfiguration . jarsToWatch ) {
 if ( jarname . equals ( jarToWatch ) ) {


<nb> public class HmBatteryTypeProvider {
 batteries . put ( STRING0 , new HmBattery ( HmBatteryType . AAA , NUMBER0 ) ) ;
 batteries . put ( STRING1 , new HmBattery ( HmBatteryType . AAA , NUMBER1 ) ) ;
 batteries . put ( STRING2 , new HmBattery ( HmBatteryType . AAA , NUMBER1 ) ) ;
 + batteries . put ( STRING0 , new HmBattery ( HmBatteryType . AAA , NUMBER0 ) ) ;

 batteries . put ( STRING3 , new HmBattery ( HmBatteryType . WINMATIC_ACCU , NUMBER0 ) ) ;
 }

Added battery type for new HM Sec SCo device


<nb> public class VecStatsTest extends TestUtil {
 }
 }

 - @ test public void testPCTiles ( ) {
 + @ test @ ignore public void testPCTiles ( ) {
 Vec vec = vec ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 , NUMBER13 , NUMBER14 , NUMBER15 , NUMBER16 , NUMBER17 ) ;
 double [ ] pctiles = vec . pctiles ( ) ;
 System . out . println ( java . util . Arrays . toString ( pctiles ) ) ;


<nb> public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
 useMapCenter = false ;
 centerLatLon = null ;
 updateUseMapCenterUI ( ) ;
 - startLocationUpdate ( ) ;
 LatLon centerLatLon = new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) ;
 SearchSettings ss = searchUICore . getSearchSettings ( ) . setOriginalLocation (
 new LatLon ( centerLatLon . getLatitude ( ) , centerLatLon . getLongitude ( ) ) ) ;
 searchUICore . updateSettings ( ss ) ;
 updateClearButtonAndHint ( ) ;
 updateClearButtonVisibility ( true ) ;
 + startLocationUpdate ( ) ;
 }
 updateToolbarButton ( ) ;
 }


<nb> public abstract class ServiceBase extends Service {
 sWifiLock = wMgr . createWifiLock ( STRING0 ) ;
 }
 sWifiLock . acquire ( ) ;
 - } else if ( PrefStore . isWifiOnly ( this ) ) {
 + } else if ( background && PrefStore . isWifiOnly ( this ) ) {
 throw new ConnectivityErrorException ( getString ( R . string . error_wifi_only_no_connection ) ) ;
 }

Don t use wifiOnly for user initiated backup


<nb> public class SignInDelegate extends SmartLockBase < CredentialRequestResult > {
 }

 private void redirectToIdpSignIn ( String email , String accountType ) {
 - if ( accountType != null && ( accountType . equals ( IdentityProviders . GOOGLE )
 + if ( TextUtils . isEmpty ( accountType ) ) {
 + startActivityForResult (
 + SignInNoPasswordActivity . createIntent (
 + getContext ( ) ,
 + mHelper . getFlowParams ( ) ,
 + email ) ,
 + RC_EMAIL_FLOW ) ;
 + return ;
 + }
 +
 + if ( accountType . equals ( IdentityProviders . GOOGLE )
 || accountType . equals ( IdentityProviders . FACEBOOK )
 - || accountType . equals ( IdentityProviders . TWITTER ) ) ) {
 + || accountType . equals ( IdentityProviders . TWITTER ) ) {
 IdpSignInContainer . signIn (
 getActivity ( ) ,
 mHelper . getFlowParams ( ) ,


<nb> public class LexerTest {
 }
 int expectedTokenType = tokenTypesByName . get ( expectedToken . tokenName ) ;

 - System . out . println ( String . format ( STRING0 , expectedToken . tokenName , expectedToken . tokenText , getTokenName ( token . getType ( ) ) , token . getText ( ) ) ) ;
 -
 if ( token . getType ( ) != expectedTokenType ) {
 Assert . fail ( String . format ( STRING1 ,
 expectedTokenIndex - NUMBER0 , expectedToken . tokenName , getTokenName ( token . getType ( ) ) ) ) ;

Don t print the expected actual tokens during the lexer tests


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter

 Object arg = readWithMessageConverters ( inputMessage , methodParam , paramType ) ;
 if ( arg == null ) {
 - if ( methodParam . getParameterAnnotation ( RequestBody . class ) . required ( ) ) {
 + if ( checkRequired ( methodParam ) ) {
 throw new HttpMessageNotReadableException ( STRING0 +
 methodParam . getMethod ( ) . toGenericString ( ) ) ;
 }
 <nb> public class RequestResponseBodyMethodProcessor extends AbstractMessageConverter
 return arg ;
 }

 + protected boolean checkRequired ( MethodParameter methodParam ) {
 + return methodParam . getParameterAnnotation ( RequestBody . class ) . required ( ) ;
 + }
 +
 @ override
 public void handleReturnValue ( Object returnValue , MethodParameter returnType ,
 ModelAndViewContainer mavContainer , NativeWebRequest webRequest )

Add protected method for required RequestBody


<nb> public class ExperimentalEventHandler implements EventHandler {
 }

 private void doRefresh ( ) {
 + if ( buildComplete ) {
 + return ;
 + }
 long nowMillis = clock . currentTimeMillis ( ) ;
 if ( lastRefreshMillis + minimalDelayMillis < nowMillis ) {
 synchronized ( this ) {
 <nb> public class ExperimentalEventHandler implements EventHandler {
 LOG . warning ( STRING0 + e ) ;
 }
 }
 - if ( ! stateTracker . progressBarTimeDependent ( ) && mustRefreshAfterMillis < lastRefreshMillis ) {
 - stopUpdateThread ( ) ;
 - }
 } else {
 SINGLE
 SINGLE


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

 - @ runwith ( Parallelized . class )
 public class VersionResponseFilterTest extends SystemTestBase {

 private PomVersion current ;

Don t paralellize VersionResponseFilterTest


<nb> public class DialogTitle extends TextView {
 android . R . style . TextAppearance_Medium ,
 android . R . styleable . TextAppearance ) ;
 final int textSize = a . getDimensionPixelSize (
 - android . R . styleable . TextAppearance_textSize , NUMBER0 ) ;
 + android . R . styleable . TextAppearance_textSize ,
 + ( int ) ( NUMBER0 * getResources ( ) . getDisplayMetrics ( ) . density ) ) ;

 - setTextSize ( TypedValue . COMPLEX_UNIT_SP , textSize ) ;
 + SINGLE
 + setTextSize ( TypedValue . COMPLEX_UNIT_PX , textSize ) ;
 setMaxLines ( NUMBER1 ) ;
 super . onMeasure ( widthMeasureSpec , heightMeasureSpec ) ;
 }
 }
 }
 }
 -
 - }
 + }

Dialog titles would sometimes use a font too large


<nb> public class NewKotlinFileAction extends CreateFileFromTemplateAction {
 protected void buildDialog ( Project project , PsiDirectory directory , CreateFileFromTemplateDialog . Builder builder ) {
 builder
 . setTitle ( JetBundle . message ( STRING0 ) )
 + . addKind ( STRING1 , JetFileType . INSTANCE . getIcon ( ) , STRING2 )
 . addKind ( STRING3 , PlatformIcons . CLASS_ICON , STRING4 )
 . addKind ( STRING5 , PlatformIcons . INTERFACE_ICON , STRING6 )
 - . addKind ( STRING7 , PlatformIcons . ENUM_ICON , STRING8 )
 - . addKind ( STRING1 , JetFileType . INSTANCE . getIcon ( ) , STRING2 ) ;
 + . addKind ( STRING7 , PlatformIcons . ENUM_ICON , STRING8 ) ;
 }

 @ override

By default new kotlin file creates empty file


<nb> public class RepositoryNamePanel extends BasePanel {
 SINGLE
 if ( StringUtils . isEmpty ( repository . projectPath ) ) {
 defaultPath = STRING0 ;
 + defaultName = repository . name ;
 } else {
 defaultPath = repository . projectPath + STRING0 ;
 + defaultName = repository . name . substring ( defaultPath . length ( ) ) ;
 }
 - defaultName = repository . name . substring ( defaultPath . length ( ) ) ;
 pathNames . add ( defaultPath ) ;
 }

Fix substring regression in repository name panel


<nb> public class ScrollPaneFactory implements ScrollPaneConstants {
 JBScrollPane scrollPane = new JBScrollPane ( view ) ;
 if ( withoutBorder ) {
 scrollPane . setBorder ( IdeBorderFactory . createEmptyBorder ( ) ) ; SINGLE
 + scrollPane . setViewportBorder ( IdeBorderFactory . createEmptyBorder ( ) ) ;
 }
 return scrollPane ;
 }


<nb> public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter {
 req . setAttribute ( MAX_INACTIVE , ( long ) - NUMBER0 ) ;

 logger . debug ( STRING0 , r ) ;
 -
 - if ( ! AtmosphereResourceImpl . class . cast ( r ) . isSuspended ( ) || ! AtmosphereResourceImpl . class . cast ( r ) . isInScope ( ) ) {
 - return ;
 - }
 -
 Future < ? > f = ( Future < ? > ) req . getAttribute ( HeartbeatInterceptor . HEARTBEAT_FUTURE ) ;
 if ( f != null ) f . cancel ( false ) ;
 req . removeAttribute ( HeartbeatInterceptor . HEARTBEAT_FUTURE ) ;

Wipe out dead connection whatever their status is


<nb> public interface ReadablePartial {
 boolean isSupported ( DateTimeFieldType field ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - DateTime toDateTime ( DateTimeZone zone ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove toDateTime Zone as it had unclear semantics


<nb> public class ProfileState implements Cloneable {
 ret . lowerBound += deltaMin ;
 ret . upperBound += deltaMax ;

 - this . targetPatterns = null ;
 + ret . targetPatterns = null ;

 return ret ;
 }


<nb> public abstract class Command {
 }
 }
 }
 +
 + @ override
 + public String toString ( ) {
 + return getClass ( ) . getName ( ) + STRING0 + name + STRING1 ;
 + }
 }
 <nb> public final class PluginCommand extends Command implements PluginIdentifiableCo
 }
 return completions ;
 }
 +
 + @ override
 + public String toString ( ) {
 + StringBuilder stringBuilder = new StringBuilder ( super . toString ( ) ) ;
 + stringBuilder . deleteCharAt ( stringBuilder . length ( ) - NUMBER0 ) ;
 + stringBuilder . append ( STRING2 ) . append ( owningPlugin . getDescription ( ) . getFullName ( ) ) . append ( STRING1 ) ;
 + return stringBuilder . toString ( ) ;
 + }
 }


<nb> public class JavacHandlerUtil {
 COMMENT
 COMMENT
 public static void deleteAnnotationIfNeccessary ( JavacNode annotation , Class < ? extends Annotation > annotationType ) {
 + if ( inNetbeansEditor ( annotation ) ) return ;
 if ( ! annotation . shouldDeleteLombokAnnotations ( ) ) return ;
 JavacNode parentNode = annotation . directUp ( ) ;
 switch ( parentNode . getKind ( ) ) {
 <nb> public class JavacHandlerUtil {
 }

 public static void deleteImportFromCompilationUnit ( JavacNode node , String name ) {
 + if ( inNetbeansEditor ( node ) ) return ;
 if ( ! node . shouldDeleteLombokAnnotations ( ) ) return ;
 ListBuffer < JCTree > newDefs = ListBuffer . lb ( ) ;

Lombok not longer removes the feature annotations and the import declarations of said annotations when running in Netbeans


<nb> public class PropertyAttributeParserTest
 {
 try
 {
 - parseAsValueModelAttribute ( illegalStaticResourceAttributeValue . value ) ;
 + parseAsStaticResourceAttribute ( illegalStaticResourceAttributeValue . value ) ;
 fail ( STRING0 ) ;
 } catch ( MalformedAttributeException e )
 {


<nb> public class DynamicRequestMatcherFactory extends Dynamics implements RequestMat
 private Function < Map . Entry < String , Object > , RequestMatcher > toTargetMatcher ( final Method extractorMethod ) {
 return new Function < Map . Entry < String , Object > , RequestMatcher > ( ) {
 @ override
 - @ suppresswarnings ( STRING0 )
 public RequestMatcher apply ( final Map . Entry < String , Object > pair ) {
 RequestExtractor extractor = createRequestExtractor ( extractorMethod , pair . getKey ( ) ) ;
 return createRequestMatcher ( extractor , pair . getValue ( ) ) ;

removed unused unchecked warning in dynamic request matcher factory


<nb> public class ONothingCompression extends OAbstractCompression {

 @ override
 public byte [ ] compress ( final byte [ ] content , final int offset , final int length ) {
 - byte [ ] result = new byte [ length - offset ] ;
 + byte [ ] result = new byte [ length ] ;
 System . arraycopy ( content , offset , result , NUMBER0 , length ) ;

 return result ;
 <nb> public class ONothingCompression extends OAbstractCompression {

 @ override
 public byte [ ] uncompress ( final byte [ ] content , final int offset , final int length ) {
 - byte [ ] result = new byte [ length - offset ] ;
 + byte [ ] result = new byte [ length ] ;
 System . arraycopy ( content , offset , result , NUMBER0 , length ) ;

 return result ;


<nb> public interface PsiElement extends UserDataHolder , Iconable {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 boolean processDeclarations ( @ notnull PsiScopeProcessor processor ,
 @ notnull ResolveState state ,

Fixed typos in javadoc please check if it still makes the same sence


<nb> public class SmsMessage extends SmsMessageBase {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 private synchronized static int getNextMessageId ( ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - int msgId = SystemProperties . getInt ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , NUMBER0 ) ;
 - String nextMsgId = Integer . toString ( ( msgId + NUMBER1 ) & NUMBER2 ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + int msgId = SystemProperties . getInt ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , NUMBER1 ) ;
 + String nextMsgId = Integer . toString ( ( msgId % NUMBER2 ) + NUMBER1 ) ;
 SystemProperties . set ( TelephonyProperties . PROPERTY_CDMA_MSG_ID , nextMsgId ) ;
 if ( DBG_SMS ) {
 Log . d ( LOG_TAG , STRING0 + TelephonyProperties . PROPERTY_CDMA_MSG_ID + STRING1 + nextMsgId ) ;


<nb> public abstract class AuthenticationClient extends ClientMonitor {
 } else {
 result = true ; SINGLE
 }
 - if ( fingerId == NUMBER0 ) {
 + if ( ! authenticated ) {
 if ( receiver != null ) {
 FingerprintUtils . vibrateFingerprintError ( getContext ( ) ) ;
 }
 SINGLE
 - result |= handleFailedAttempt ( ) ;
 + boolean inLockoutMode = handleFailedAttempt ( ) ;
 + SINGLE
 + if ( inLockoutMode ) {
 + try {
 + Slog . w ( TAG , STRING0 ) ;
 + receiver . onError ( getHalDeviceId ( ) ,
 + FingerprintManager . FINGERPRINT_ERROR_LOCKOUT ) ;
 + } catch ( RemoteException e ) {
 + Slog . w ( TAG , STRING1 , e ) ;
 + }
 + }
 + result |= inLockoutMode ;
 } else {
 if ( receiver != null ) {
 FingerprintUtils . vibrateFingerprintSuccess ( getContext ( ) ) ;

Send FINGERPRINT_ERROR_LOCKOUT on some devices


<nb> public class GoCompletionContributor extends CompletionContributor {
 private static Collection < String > suggestKeywords ( @ notnull PsiElement position ) {
 TextRange posRange = position . getTextRange ( ) ;
 GoFile posFile = ( GoFile ) position . getContainingFile ( ) ;
 - final TextRange range = new TextRange ( NUMBER0 , posRange . getStartOffset ( ) ) ;
 - final String text = range . isEmpty ( ) ? CompletionInitializationContext . DUMMY_IDENTIFIER : range . substring ( posFile . getText ( ) ) ;
 + TextRange range = new TextRange ( NUMBER0 , posRange . getStartOffset ( ) ) ;
 + String text = range . isEmpty ( ) ? CompletionInitializationContext . DUMMY_IDENTIFIER : range . substring ( posFile . getText ( ) ) ;

 PsiFile file = PsiFileFactory . getInstance ( posFile . getProject ( ) ) . createFileFromText ( STRING0 , GoLanguage . INSTANCE , text , true , false ) ;
 int completionOffset = posRange . getStartOffset ( ) - range . getStartOffset ( ) ;


<nb> public final class ScanSettings implements Parcelable {
 private int mScanResultType = SCAN_RESULT_TYPE_FULL ;
 private long mReportDelayMillis = NUMBER0 ;
 private int mMatchMode = MATCH_MODE_AGGRESSIVE ;
 - private int mNumOfMatchesPerFilter = MATCH_NUM_ONE_ADVERTISEMENT ;
 + private int mNumOfMatchesPerFilter = MATCH_NUM_MAX_ADVERTISEMENT ;
 COMMENT
 COMMENT
 COMMENT

DO NOT MERGE Temp workaround to track max beacons


<nb> public class HtmlUnitRequestBuilderTests {
 SINGLE

 @ test
 + @ suppresswarnings ( STRING0 )
 public void buildRequestBasicAuth ( ) {
 String base64Credentials = STRING1 ;
 String authzHeaderValue = STRING2 + base64Credentials ;

Suppress deprecation warning in HtmlUnitRequestBuilderTests


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PreferenceActivity extends SherlockPreferenceActivity {
 return true ;
 }

 + @ override
 + protected void onApplyThemeResource ( Theme theme , int resid , boolean first ) {
 + theme . applyStyle ( PodcastApp . getThemeResourceId ( ) , true ) ;
 + }
 +
 +
 +
 }

PreferenceActivity now applies its theme correctly


<nb> public class StatsActivity extends AppCompatActivity
 }

 @ suppresswarnings ( STRING0 )
 - public void onEventMainThread ( StatsEvents . JetpackMissingError event ) {
 + public void onEventMainThread ( StatsEvents . JetpackStatsModuleNotConnectedError event ) {
 if ( isFinishing ( ) || ! mIsInFront ) {
 return ;
 }


<nb> public class ExecutionGraph implements ExecutionListener {
 SINGLE
 if ( ev . getEnvironment ( ) . getInvokable ( ) instanceof AbstractInputTask ) {
 try {
 - inputSplits = ( ( AbstractInputTask ) ev . getEnvironment ( ) . getInvokable ( ) ) .
 + inputSplits = ( ( AbstractInputTask < ? > ) ev . getEnvironment ( ) . getInvokable ( ) ) .
 computeInputSplits ( jobVertex . getNumberOfSubtasks ( ) ) ;
 }
 catch ( Exception e ) {


<nb> public class EditSession implements Extent {

 try {
 if ( expression . evaluate ( scaled . getX ( ) , scaled . getZ ( ) ) <= NUMBER0 ) {
 - return null ;
 + return null ; SINGLE
 }

 SINGLE
 <nb> public class GenerationCommands {

 @ command (
 aliases = { STRING0 , STRING1 , STRING2 } ,
 - usage = STRING3 ,
 + usage = STRING4 ,
 desc = STRING5 ,
 help =
 STRING6 +
 STRING7 +
 - STRING8 +
 + STRING9 +
 STRING10 +
 STRING11 +
 STRING12 +
 <nb> public abstract class ArbitraryBiomeShape {

 if ( ! hollow ) {
 final BaseBiome material = getBiome ( x , z , baseBiome ) ;
 - if ( material != OUTSIDE ) {
 + if ( material != null && material != OUTSIDE ) {
 editSession . getWorld ( ) . setBiome ( position , material ) ;
 ++ affected ;
 }

Fix NPE when genbiome expression was false


<nb> public class BasicMap {
 }
 JavaSparkContext sc = new JavaSparkContext (
 master , STRING0 , System . getenv ( STRING1 ) , System . getenv ( STRING2 ) ) ;
 - JavaRDD < Integer > rdd = sc . parallelize ( Arrays . asList ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ;
 + JavaRDD < Integer > rdd = sc . parallelize ( Arrays . asList ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ;
 JavaRDD < Integer > result = rdd . map (
 - new Function < Integer , Integer > ( ) { public Integer call ( Integer x ) { return x * x ; } } ) ;
 + new Function < Integer , Integer > ( ) { public Integer call ( Integer x ) { return x * x ; } } ) ;
 System . out . println ( StringUtils . join ( result . collect ( ) , STRING3 ) ) ;
 }
 }


<nb> import NAMESPACE ;
 public final class Utils {
 private static Random sRandom = new Random ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 public static synchronized long getRandomNonNegativeLong ( ) {
 return Math . abs ( sRandom . nextLong ( ) ) ;
 }


<nb> public class BooksIntegrationTest {
 UrlResponse response = doMethod ( STRING0 , STRING1 , null ) ;
 assertNotNull ( response ) ;
 String body = response . body . trim ( ) ;
 - System . out . println ( STRING2 + body ) ;
 +
 assertNotNull ( body ) ;
 assertTrue ( Integer . valueOf ( body ) > NUMBER0 ) ;
 assertEquals ( NUMBER1 , response . status ) ;


<nb> public class DhcpStateMachine extends StateMachine {
 SINGLE
 SINGLE
 SINGLE
 - mAlarmManager . set ( AlarmManager . ELAPSED_REALTIME_WAKEUP ,
 + mAlarmManager . setExact ( AlarmManager . ELAPSED_REALTIME_WAKEUP ,
 SystemClock . elapsedRealtime ( ) +
 leaseDuration * NUMBER0 , SINGLE
 mDhcpRenewalIntent ) ;
 <nb> public class NetworkStatsServiceTest extends AndroidTestCase {
 mAlarmManager . remove ( isA ( PendingIntent . class ) ) ;
 expectLastCall ( ) . anyTimes ( ) ;

 - mAlarmManager . setInexactRepeating (
 - eq ( AlarmManager . ELAPSED_REALTIME ) , anyLong ( ) , anyLong ( ) , isA ( PendingIntent . class ) ) ;
 + mAlarmManager . set ( eq ( AlarmManager . ELAPSED_REALTIME ) , anyLong ( ) , anyLong ( ) , isA ( PendingIntent . class ) , false ) ;
 expectLastCall ( ) . atLeastOnce ( ) ;

 mNetManager . setGlobalAlert ( anyLong ( ) ) ;

Fix build preserve DHCP scheduling as is


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 public interface NioSocketChannelConfig extends SocketChannelConfig {

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


<nb> public class RawDXF extends PGraphics {
 return false ; SINGLE
 }

 +
 + public boolean is2D ( ) {
 + return false ;
 + }
 +
 +
 + public boolean is3D ( ) {
 + return true ;
 + }
 +

 SINGLE


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ScenariosForSpringSecurity extends ExpressionTestCase {
 throws AccessException {
 }

 - public Class [ ] getSpecificTargetClasses ( ) {
 + public Class < ? > [ ] getSpecificTargetClasses ( ) {
 return null ;
 }

 <nb> public class ScenariosForSpringSecurity extends ExpressionTestCase {
 throws AccessException {
 }

 - public Class [ ] getSpecificTargetClasses ( ) {
 + public Class < ? > [ ] getSpecificTargetClasses ( ) {
 return null ;
 }


<nb> public abstract class AbstractAndroidMojo extends AbstractMojo
 protected String [ ] aaptExtraArgs ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected boolean aaptVerbose ;


<nb> public final class SessionFactoryImpl implements SessionFactoryImplementor {
 identifierGenerators . put ( model . getEntityName ( ) , generator ) ;
 } ) ;

 -
 - SINGLE
 - this . namedQueryRepository = metadata . buildNamedQueryRepository ( this ) ;
 -
 -
 LOG . debug ( STRING0 ) ;

 this . metamodel = new MetamodelImpl ( this ) ;
 this . metamodel . initialize ( metadata , determineJpaMetaModelPopulationSetting ( properties ) ) ;

 + SINGLE
 + this . namedQueryRepository = metadata . buildNamedQueryRepository ( this ) ;
 +
 settings . getMultiTableBulkIdStrategy ( ) . prepare (
 jdbcServices ,
 buildLocalConnectionAccess ( ) ,

Fix issue with getMetamodel called before its initialization


<nb> public abstract class SquidDatabase {

 SINGLE

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public final class DatabaseOpenHelperDelegate {

 private DatabaseOpenHelperDelegate ( ) {
 - SINGLE
 + SINGLE
 }

 COMMENT

Add some comments to DatabaseOpenHelperDelegate


<nb> public class JavaTypeHierarchyProvider implements HierarchyProvider {
 PsiElement element = file . findElementAt ( offset ) ;
 while ( element != null ) {
 if ( element instanceof PsiFile ) {
 - if ( ! ( element instanceof PsiJavaFile ) ) return null ;
 - final PsiClass [ ] classes = ( ( PsiJavaFile ) element ) . getClasses ( ) ;
 + if ( ! ( element instanceof PsiClassOwner ) ) return null ;
 + final PsiClass [ ] classes = ( ( PsiClassOwner ) element ) . getClasses ( ) ;
 return classes . length == NUMBER0 ? classes [ NUMBER1 ] : null ;
 }
 if ( element instanceof PsiClass && ! ( element instanceof PsiAnonymousClass ) ) {


<nb> public class ImageLoader {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isCached ( String requestUrl , int maxWidth , int maxHeight ) {
 + throwIfNotOnMainThread ( ) ;
 +
 + String cacheKey = getCacheKey ( requestUrl , maxWidth , maxHeight ) ;
 + return mCache . getBitmap ( cacheKey ) != null ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class MBeanFactory {
 this . container = container ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public String findObjectName ( String type ) {
 -
 - if ( type . equals ( STRING0 ) ) {
 - return STRING1 ;
 - } else if ( type . equals ( STRING2 ) ) {
 - return STRING3 ;
 - } else if ( type . equals ( STRING4 ) ) {
 - return STRING5 ;
 - } else {
 - return null ;
 - }
 -
 - }
 -

 COMMENT
 COMMENT


<nb> public class TypedProperties extends HashMap < String , Object > {
 public String getString ( String property ) {
 return getString ( property , STRING0 ) ;
 }
 +
 + SINGLE
 + public static final int STRING_TYPE_MISMATCH = - NUMBER0 ;
 + public static final int STRING_NOT_SET = - NUMBER1 ;
 + public static final int STRING_NULL = NUMBER2 ;
 + public static final int STRING_SET = NUMBER1 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getStringInfo ( String property ) {
 + Object value = super . get ( property ) ;
 + if ( value == null ) {
 + return STRING_NOT_SET ;
 + }
 + if ( value == NULL_STRING ) {
 + return STRING_NULL ;
 + } else if ( value instanceof String ) {
 + return STRING_SET ;
 + }
 + return STRING_TYPE_MISMATCH ;
 + }
 }

add getStringInfo to help deal with null strings


<nb> public class PyProtectedMemberInspection extends PyInspection {
 }
 }
 final PyType type = myTypeEvalContext . getType ( qualifier ) ;
 - final String bundle_key = type instanceof PyModuleType ? STRING0 : STRING1 ;
 - registerProblem ( node , PyBundle . message ( bundle_key , name ) , new PyRenameElementQuickFix ( ) ) ;
 + final String bundleKey = type instanceof PyModuleType ? STRING0 : STRING1 ;
 + registerProblem ( node , PyBundle . message ( bundleKey , name ) , new PyRenameElementQuickFix ( ) ) ;
 }
 }


<nb> public class MediaCodecAudioTrackRenderer extends MediaCodecTrackRenderer implem
 protected boolean processOutputBuffer ( long positionUs , long elapsedRealtimeUs , MediaCodec codec ,
 ByteBuffer buffer , MediaCodec . BufferInfo bufferInfo , int bufferIndex , boolean shouldSkip )
 throws ExoPlaybackException {
 + if ( passthroughEnabled && ( bufferInfo . flags & MediaCodec . BUFFER_FLAG_CODEC_CONFIG ) != NUMBER0 ) {
 + SINGLE
 + codec . releaseOutputBuffer ( bufferIndex , false ) ;
 + return true ;
 + }
 +
 if ( shouldSkip ) {
 codec . releaseOutputBuffer ( bufferIndex , false ) ;
 codecCounters . skippedOutputBufferCount ++ ;

Discard CSD buffers from the raw decoder in passthrough mode


<nb> public class EpisodesFragment extends SherlockFragment {
 }
 }

 - if ( handled ) {
 - adapter . notifyDataSetChanged ( ) ;
 - }
 resetContextMenuSelection ( ) ;
 return handled ;
 }

Fixed IndexOutOfBoundsException in EpisodesFragment


<nb> public class GenericSortingTest extends Assert {
 @ test
 public void testMergeSort ( ) {
 String [ ] sd = { STRING0 , STRING1 , STRING1 , STRING2 , STRING3 } ;
 - String [ ] correct = { STRING3 , STRING1 , STRING1 , STRING2 , STRING0 } ;
 + String [ ] correct = { sd [ NUMBER0 ] , sd [ NUMBER1 ] , sd [ NUMBER2 ] , sd [ NUMBER3 ] , sd [ NUMBER4 ] } ;

 SomethingToSortStable sts = new SomethingToSortStable ( sd ) ;
 GenericSorting . mergeSort ( NUMBER4 , NUMBER5 , sts , sts ) ;

Oops restore proper testing of stability


<nb> public class StatsInsightsLatestPostSummaryFragment extends StatsAbstractInsight
 if ( event . mEndPointName != StatsService . StatsEndpointsEnum . INSIGHTS_LATEST_POST_VIEWS ) {
 super . onEventMainThread ( event ) ;
 } else {
 - SINGLE
 - if ( isDataEmpty ( NUMBER0 ) || ! ( mDatamodels [ NUMBER0 ] instanceof InsightsLatestPostModel ) ) {
 - showErrorUI ( null ) ;
 - return ;
 - }

 + SINGLE
 if ( event . mResponseObjectModel instanceof VolleyError ||
 event . mResponseObjectModel instanceof StatsError ) {
 showErrorUI ( event . mResponseObjectModel ) ;
 return ;
 }

 + SINGLE
 + if ( isDataEmpty ( NUMBER0 ) || ! ( mDatamodels [ NUMBER0 ] instanceof InsightsLatestPostModel ) ) {
 + showErrorUI ( null ) ;
 + return ;
 + }
 +
 if ( event . mResponseObjectModel == null ||
 ! ( event . mResponseObjectModel instanceof Integer ) ) {
 showErrorUI ( null ) ;

check the current REST response before going deeper into UI updating


<nb> import NAMESPACE ;
 COMMENT
 public abstract class AbstractCollinsHeadFinder implements HeadFinder COMMENT , CopulaHeadFinder {

 - private static final boolean DEBUG = false ;
 + private static final boolean DEBUG = System . getProperty ( STRING0 , null ) != null ;
 protected final TreebankLanguagePack tlp ;
 protected Map < String , String [ ] [ ] > nonTerminalInfo ;

Add a debug flag for AbstractCollinsHeadFinder


<nb> public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
 public void afterTextChanged ( Editable s ) {
 String newQueryText = s . toString ( ) ;
 updateClearButtonAndHint ( ) ;
 - updateClearButtonVisibility ( newQueryText . length ( ) > NUMBER0 ) ;
 + updateClearButtonVisibility ( true ) ;
 updateTabbarVisibility ( newQueryText . length ( ) == NUMBER0 ) ;
 if ( ! searchQuery . equalsIgnoreCase ( newQueryText ) ) {
 searchQuery = newQueryText ;
 <nb> public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
 new LatLon ( centerLatLon . getLatitude ( ) , centerLatLon . getLongitude ( ) ) ) ;
 searchUICore . updateSettings ( ss ) ;
 updateClearButtonAndHint ( ) ;
 + updateClearButtonVisibility ( true ) ;
 }
 updateToolbarButton ( ) ;
 }
 <nb> public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC

 updateToolbarButton ( ) ;
 updateClearButtonAndHint ( ) ;
 - updateClearButtonVisibility ( searchQuery . length ( ) > NUMBER0 ) ;
 + updateClearButtonVisibility ( true ) ;
 addMainSearchFragment ( ) ;

 searchEditText . requestFocus ( ) ;


<nb> public class StompProtocolHandler implements SubProtocolHandler {

 Set < String > acceptVersions = connectHeaders . getAcceptVersion ( ) ;
 if ( acceptVersions . contains ( STRING0 ) ) {
 - connectedHeaders . setAcceptVersion ( STRING0 ) ;
 + connectedHeaders . setVersion ( STRING0 ) ;
 }
 else if ( acceptVersions . contains ( STRING1 ) ) {
 - connectedHeaders . setAcceptVersion ( STRING1 ) ;
 + connectedHeaders . setVersion ( STRING1 ) ;
 }
 else if ( acceptVersions . isEmpty ( ) ) {
 SINGLE

Use correct header for version in CONNECTED frame


<nb> public class JBTabsImpl extends JComponent

 final ShapeInfo shapeInfo = computeSelectedLabelShape ( ) ;
 if ( ! isHideTabs ( ) ) {
 - g2d . setColor ( getBackground ( ) ) ;
 + SINGLE
 + g2d . setColor ( Color . green ) ;
 g2d . fill ( shapeInfo . fillPath . getShape ( ) ) ;
 }


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class BasicDataManager extends Poller implements DataManager {
 @ override
 protected void poll ( ) throws Exception {
 logger . info ( dbName + STRING0 ) ;
 - for ( DateTime key : fileCache . keySet ( ) ) {
 + for ( DateTime key : Sets . newHashSet ( fileCache . keySet ( ) ) ) {
 File file = fileCache . get ( key ) ;
 try {
 logger . info ( STRING1 + file ) ;
 <nb> public class BasicDataManager extends Poller implements DataManager {
 if ( downloaded ) {
 ReadOnlyData newData = loadDataFromFile ( file ) ;
 data . put ( key , newData ) ;
 + fileCache . put ( key , file ) ;
 }
 }
 catch ( Exception e ) {


<nb> public class BuildCheckpoints {
 CheckpointManager manager = new CheckpointManager ( PARAMS , new FileInputStream ( CHECKPOINTS_FILE ) ) ;
 checkState ( manager . numCheckpoints ( ) == checkpoints . size ( ) ) ;

 - if ( PARAMS . getId ( ) == NetworkParameters . ID_MAINNET ) {
 + if ( PARAMS . getId ( ) . equals ( NetworkParameters . ID_MAINNET ) ) {
 StoredBlock test = manager . getCheckpointBefore ( NUMBER0 ) ; SINGLE
 checkState ( test . getHeight ( ) == NUMBER1 ) ;
 checkState ( test . getHeader ( ) . getHashAsString ( )
 . equals ( STRING0 ) ) ;
 - } else if ( PARAMS . getId ( ) == NetworkParameters . ID_TESTNET ) {
 + } else if ( PARAMS . getId ( ) . equals ( NetworkParameters . ID_TESTNET ) ) {
 StoredBlock test = manager . getCheckpointBefore ( NUMBER0 ) ; SINGLE
 checkState ( test . getHeight ( ) == NUMBER2 ) ;
 checkState ( test . getHeader ( ) . getHashAsString ( )


<nb> public class YoutubeSearchEngineTest extends AndroidTestCase {
 SearchEngine engine = ServiceList . getService ( STRING0 )
 . getSearchEngineInstance ( new Downloader ( ) ) ;

 - result = engine . search ( STRING1 ,
 + result = engine . search ( STRING2 ,
 NUMBER0 , STRING3 , new Downloader ( ) ) . getSearchResult ( ) ;
 suggestionReply = engine . suggestionList ( STRING4 , STRING3 , new Downloader ( ) ) ;
 }

change test search term to avoid google ads


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class AvoidStarImport
 + public class AvoidStarImportCheck
 extends AbstractImportCheck
 {
 COMMENT
 <nb> public class AvoidStarImportTest
 throws Exception
 {
 final DefaultConfiguration checkConfig =
 - createCheckConfig ( AvoidStarImport . class ) ;
 + createCheckConfig ( AvoidStarImportCheck . class ) ;
 final String [ ] expected = {
 STRING0 ,
 STRING1 ,

renamed class from AvoidStarImport to AvoidStarImportCheck


<nb> import NAMESPACE ;

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

 public class JmxTest
 {

Fixed a compilation error due to management JXM moving around


<nb> public class SmartTabLayout extends HorizontalScrollView {

 SINGLE
 setHorizontalScrollBarEnabled ( false ) ;
 - SINGLE
 - setFillViewport ( true ) ;

 final DisplayMetrics dm = getResources ( ) . getDisplayMetrics ( ) ;
 final float density = dm . density ;


<nb> public class PublishRiverClusterStateAction extends AbstractComponent {
 SINGLE
 SINGLE

 - if ( node . clientNode ( ) ) {
 - continue ;
 - }
 -
 if ( ! node . masterNode ( ) && ! RiverNodeHelper . isRiverNode ( node ) ) {
 continue ;
 }
 <nb> import NAMESPACE ;
 public class RiverNodeHelper {

 public static boolean isRiverNode ( DiscoveryNode node ) {
 + SINGLE
 if ( node . clientNode ( ) ) {
 return false ;
 }

remove checking for client node on rivers its automatically done with master and non river node anyhow


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


<nb> public class TestCommand extends AbstractCommandRunner < TestCommandOptions > {
 return originalCallable ;
 }
 return new Callable < TestResults > ( ) {
 + @ override
 public TestResults call ( ) throws Exception {
 TestResults originalTestResults = originalCallable . call ( ) ;
 ImmutableList < TestCaseSummary > cachedTestResults = FluentIterable


<nb> public class Accounts extends K9ListActivity implements OnItemClickListener {

 class AccountsHandler extends Handler {
 private void setViewTitle ( ) {
 - mActionBarTitle . setText ( STRING0 + getString ( R . string . accounts_title ) ) ;
 + mActionBarTitle . setText ( getString ( R . string . accounts_title ) ) ;

 if ( mUnreadMessageCount == NUMBER0 ) {
 mActionBarUnread . setVisibility ( View . GONE ) ;

Remove leading space in action bar title of Accounts activity


<nb> public class ZWaveSwitchAllCommandClass extends ZWaveCommandClass {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getMode ( ) {
 + return mode ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class EC2Configuration {
 private String secretKey ;
 @ uriparam
 private String amazonEc2Endpoint ;
 - @ uriparam ( label = STRING0 )
 + @ uriparam ( label = STRING0 , enums = STRING1
 + + STRING2 )
 @ metadata ( required = STRING3 )
 private EC2Operations operation ;
 @ uriparam

Added enumeration for the possible operations


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class DGLM {
 }
 public static GLMModel buildModel ( Job job , Key resKey , DataFrame data , LSMSolver lsm , GLMParams params ,
 double [ ] oldBeta , int xval , boolean parallel ) throws JobCancelledException {
 + Log . info ( STRING0 + data . _ary . _key + STRING1 + data . expandedSz ( ) + STRING2 + ( data . expandedSz ( ) - data . _dense ) + STRING3 ) ;
 GLMModel currentModel = null ;
 ArrayList < String > warns = new ArrayList < String > ( ) ;
 long t1 = System . currentTimeMillis ( ) ;

Added log print for glm to print out the total number of predictors and how many of them are categoricals


<nb> public class GsmAlphabet {
 COMMENT
 COMMENT
 COMMENT
 - static synchronized void setEnabledSingleShiftTables ( int [ ] tables ) {
 + public static synchronized void setEnabledSingleShiftTables ( int [ ] tables ) {
 sEnabledSingleShiftTables = tables ;
 sDisableCountryEncodingCheck = true ;

 <nb> public class GsmAlphabet {
 COMMENT
 COMMENT
 COMMENT
 - static synchronized void setEnabledLockingShiftTables ( int [ ] tables ) {
 + public static synchronized void setEnabledLockingShiftTables ( int [ ] tables ) {
 sEnabledLockingShiftTables = tables ;
 sDisableCountryEncodingCheck = true ;
 }
 <nb> public class GsmAlphabet {
 COMMENT
 COMMENT
 COMMENT
 - static synchronized int [ ] getEnabledSingleShiftTables ( ) {
 + public static synchronized int [ ] getEnabledSingleShiftTables ( ) {
 return sEnabledSingleShiftTables ;
 }

 <nb> public class GsmAlphabet {
 COMMENT
 COMMENT
 COMMENT
 - static synchronized int [ ] getEnabledLockingShiftTables ( ) {
 + public static synchronized int [ ] getEnabledLockingShiftTables ( ) {
 return sEnabledLockingShiftTables ;
 }

Make some static functions public so telephony tests can access them


<nb> public class OCommandExecutorSQLCreateIndex extends OCommandExecutorSQLAbstract
 if ( pos == - NUMBER0 )
 throw new OCommandSQLParsingException ( STRING0 + getSyntax ( ) , parserText , oldPos ) ;

 - indexName = word . toString ( ) ;
 + indexName = decodeClassName ( word . toString ( ) ) ;

 oldPos = pos ;
 pos = nextWord ( parserText , parserTextUpperCase , oldPos , word , true ) ;

Fix index creation when using TinkerPop createKeyIndex


<nb> public final class ActivityManagerService extends ActivityManagerNative
 || Intent . ACTION_MEDIA_SCANNER_SCAN_FILE . equals ( action )
 || Intent . ACTION_GET_PERMISSIONS_COUNT . equals ( action )
 || Intent . ACTION_GET_PERMISSIONS_PACKAGES . equals ( action )
 + || Intent . ACTION_SHOW_KEYBOARD_SHORTCUTS . equals ( action )
 || AppWidgetManager . ACTION_APPWIDGET_CONFIGURE . equals ( action )
 || AppWidgetManager . ACTION_APPWIDGET_UPDATE . equals ( action )
 || LocationManager . HIGH_POWER_REQUEST_CHANGE_ACTION . equals ( action ) ) {

Fix silent errors when launching Keyboard Shortcuts from Settings


<nb> public class ExpectedTypeUtil {
 if ( acc . isEmpty ( ) ) {
 return ExpectedTypeInfo . EMPTY_ARRAY ;
 }
 - result = acc ;
 + result = new ExpectedTypeInfos ( acc . toArray ( ) ) ;
 }

 return result . toArray ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter {

 - protected ByteBuf cumulation ;
 + ByteBuf cumulation ;
 private boolean singleDecode ;
 private boolean decodeWasNull ;

Make the cumulation field in ByteToMessageDecoder package private to hide it


<nb> public class EvictionTest extends HazelcastTestSupport {
 }
 }

 + SINGLE
 @ test
 + @ category ( ProblematicTest . class )
 public void testEvictionSpeedTestPerPartition ( ) {
 final int k = NUMBER0 ;
 final int size = NUMBER1 ;
 <nb> public class NearCacheTest extends HazelcastTestSupport {
 }

 @ test
 + @ category ( ProblematicTest . class )
 public void testNearCacheEvictionByUsingMapTTLEviction ( ) throws InterruptedException {
 final Config cfg = new Config ( ) ;
 final String mapName = STRING0 ;

Moved spurious failing and badly written test to the ProblematicSection


<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 }

 private void writePackets ( ) {
 + Exception writerException = null ;
 try {
 openStream ( ) ;
 initalOpenStreamSend . reportSuccess ( ) ;
 <nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 SINGLE
 SINGLE
 if ( ! ( done ( ) || queue . isShutdown ( ) ) ) {
 - notifyConnectionError ( e ) ;
 + writerException = e ;
 } else {
 LOGGER . log ( Level . FINE , STRING0 , e ) ;
 }
 <nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 LOGGER . fine ( STRING1 ) ;
 shutdownDone . reportSuccess ( ) ;
 }
 + SINGLE
 + if ( writerException != null ) {
 + notifyConnectionError ( writerException ) ;
 + }
 }

 private void drainWriterQueueToUnacknowledgedStanzas ( ) {

Delay notifyConnectionError in writer shutdown


<nb> public class LineChartRenderer extends DataRenderer {
 prevDx = ( next . getXIndex ( ) - cur . getXIndex ( ) ) * intensity ;
 prevDy = ( next . getVal ( ) - cur . getVal ( ) ) * intensity ;

 - cur = entries . get ( NUMBER0 ) ;
 - next = entries . get ( ( entries . size ( ) > NUMBER1 ) ? NUMBER1 : NUMBER0 ) ;
 + cur = entries . get ( minx + NUMBER0 ) ;
 + next = entries . get ( minx + ( size - minx > NUMBER1 ? NUMBER1 : NUMBER0 ) ) ;
 curDx = ( next . getXIndex ( ) - prev . getXIndex ( ) ) * intensity ;
 curDy = ( next . getVal ( ) - prev . getVal ( ) ) * intensity ;

Consider viewport for second point in cubic line


<nb> public class WikipediaQuickCheck {
 SINGLE
 private static final List < String > disabledRuleIds = Arrays . asList ( STRING0 , STRING1 ,
 STRING2 , STRING3 , STRING4 ,
 - STRING5 , STRING6 , STRING7 , STRING8 ) ;
 + STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ) ;

 public List < String > getDisabledRuleIds ( ) {
 return disabledRuleIds ;


<nb> public class SlidingMenuFragment extends ListFragment {
 mAdapter = new MenuAdapter ( getActivity ( ) ) ;
 mAdapter . add ( new MenuItem ( getString ( R . string . shows ) , R . drawable . ic_launcher ,
 MENU_ITEM_SHOWS_ID ) ) ;
 - mAdapter . add ( new MenuItem ( getString ( R . string . lists ) , R . drawable . ic_action_list ,
 - MENU_ITEM_LISTS_ID ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 mAdapter . add ( new MenuItem ( getString ( R . string . checkin ) , R . drawable . ic_action_checkin ,
 MENU_ITEM_CHECKIN_ID ) ) ;
 mAdapter . add ( new MenuItem ( getString ( R . string . activity ) , R . drawable . ic_action_upcoming ,


<nb> public class QueryOperation extends AbstractMapOperation {
 . getLocalMapStatsProvider ( ) . getLocalMapStatsImpl ( name ) . incrementOtherOperations ( ) ;
 }

 - if ( partitionStateVersion != partitionService . getPartitionStateVersion ( ) ) {
 + checkPartitionStateChanges ( partitionService , partitionStateVersion ) ;
 + }
 +
 + private void checkPartitionStateChanges ( InternalPartitionService partitionService , int partitionStateVersion ) {
 + if ( partitionStateVersion != partitionService . getPartitionStateVersion ( ) ) {
 getLogger ( ) . info ( STRING0 + predicate ) ;
 }
 }
 <nb> package NAMESPACE ;

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 public class IterableUtil {

 + private IterableUtil ( ) {
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Adding javadoc extracting method check style fixes


<nb> package NAMESPACE ;

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

 public class FileHandle {
 +
 + protected FileHandle ( ) {
 + }
 +
 + public FileHandle ( String fileName ) {
 + }
 +
 + public FileHandle ( File file ) {
 + }
 +
 + protected FileHandle ( String fileName , FileType type ) {
 + }
 +
 + protected FileHandle ( File file , FileType type ) {
 + }
 +
 public String path ( ) {
 throw new GdxRuntimeException ( STRING0 ) ;
 }


<nb> public class ShadowConnectivityManager {

 private Map < Integer , NetworkInfo > networkTypeToNetworkInfo = new HashMap < Integer , NetworkInfo > ( ) ;

 - public void __constructor__ ( ) {
 + public ShadowConnectivityManager ( ) {
 setActiveNetworkInfo ( ShadowNetworkInfo . newInstance ( ) ) ;
 }


<nb> import NAMESPACE ;
 public interface Transport {

 public void initialize ( Map < String , String > config ) throws TransportConfigurationException ;
 + public Map < String , String > getRequestedConfiguration ( ) ;
 public void transportAlarm ( Alarm alarm ) ;
 public String getName ( ) ;


<nb> public class CopyClassesHandler implements CopyHandlerDelegate {
 private static PsiClass [ ] getTopLevelClasses ( PsiElement element ) {
 while ( true ) {
 if ( element == null || element instanceof PsiFile ) break ;
 - if ( element instanceof PsiClass && ( ( ( PsiClass ) element ) . getContainingClass ( ) == null ) ) break ;
 - element = element . getContext ( ) ;
 + if ( element instanceof PsiClass && element . getParent ( ) != null && ( ( ( PsiClass ) element ) . getContainingClass ( ) == null ) ) break ;
 + element = element . getParent ( ) ;
 }
 if ( element instanceof PsiClassOwner ) {
 PsiClass [ ] classes = ( ( PsiClassOwner ) element ) . getClasses ( ) ;

CopyClassHandler don t copy classes in Groovy scripts GroovyCopyClassTest fixed


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


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

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

 import static NAMESPACE ;
 import static NAMESPACE ;
 - import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class StatsTests extends AbstractNumericTestCase {
 Stats s1 = client ( ) . prepareSearch ( STRING0 )
 . addAggregation ( stats ( STRING1 ) . field ( STRING2 ) ) . get ( )
 . getAggregations ( ) . get ( STRING1 ) ;
 - ExtendedStats s2 = client ( ) . prepareSearch ( STRING0 , STRING3 )
 + Stats s2 = client ( ) . prepareSearch ( STRING0 , STRING3 )
 . addAggregation ( stats ( STRING1 ) . field ( STRING2 ) ) . get ( )
 . getAggregations ( ) . get ( STRING1 ) ;
 assertEquals ( s1 . getAvg ( ) , s2 . getAvg ( ) , FLOAT0 ) ;


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public class JSONException extends RuntimeException {
 + COMMENT
 private static final long serialVersionUID = NUMBER0 ;

 COMMENT
 <nb> public class JSONException extends RuntimeException {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public JSONException ( String message , Throwable cause ) {
 + super ( message , cause ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Allows a custom message to be passed with a cause


<nb> import NAMESPACE ;
 public class Log {

 private static Logger logger ;
 - private static Level level ;
 + private static Level level = Level . VERBOSE ;

 private static Logger getInstance ( ) {
 if ( logger == null ) {


<nb> public class XValPredictionsCheck extends TestUtil {
 m . delete ( ) ;
 m . deleteCrossValidationModels ( ) ;
 Key [ ] xvalKeys = m . _output . _cross_validation_predictions ;
 + Key xvalKey = m . _output . _cross_validation_holdout_predictions_frame_id ;
 final int [ ] id = new int [ NUMBER0 ] ;
 for ( Key k : xvalKeys ) {
 Frame preds = DKV . getGet ( k ) ;
 <nb> public class XValPredictionsCheck extends TestUtil {
 id [ NUMBER1 ] ++ ;
 preds . delete ( ) ;
 }
 + xvalKey . remove ( ) ;
 }
 }


<nb> public class ExceptionMapper {
 SINGLE
 if ( ! this . exceptionMap . containsKey ( exceptionClass ) ) {

 - Class superclass = exceptionClass . getSuperclass ( ) ;
 + Class < ? > superclass = exceptionClass . getSuperclass ( ) ;
 do {
 SINGLE
 if ( this . exceptionMap . containsKey ( superclass ) ) {

added generic arguments to remove IDE warnings


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public final class JournalTailer {
 private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;

 <nb> public final class JournalTailer {
 public void processJournalCheckpoint ( boolean applyToMaster ) throws IOException {
 SINGLE
 LOG . info ( STRING0 + mJournal . getCheckpointFilePath ( ) ) ;
 + SINGLE
 + SINGLE
 + JournalInputStream is = mReader . getCheckpointInputStream ( ) ;
 +
 if ( applyToMaster ) {
 - SINGLE
 - JournalInputStream is = mReader . getCheckpointInputStream ( ) ;
 + SINGLE
 mMaster . processJournalCheckpoint ( is ) ;
 }
 + is . close ( ) ;
 }

 COMMENT


<nb>

 package NAMESPACE ;

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

 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 public class JaxRsResponse extends Response
 {

Removing unused imports in a moment of boredom


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


<nb> public class CollectionTransactionRollbackOperation extends CollectionOperation
 }

 @ override
 + public boolean returnsResponse ( ) {
 + return false ;
 + }
 +
 + @ override
 protected void writeInternal ( ObjectDataOutput out ) throws IOException {
 super . writeInternal ( out ) ;
 out . writeUTF ( transactionId ) ;

CollectionTransactionRollbackOperation should not return response


<nb> public class StreetSegment {
 public TraverseMode mode ;
 public int time ;
 public EncodedPolylineBean geometry ;
 - public List < WalkStep > walkSteps ;
 + public List < WalkStep > walkSteps = Lists . newArrayList ( ) ;

 COMMENT
 COMMENT

Fix NPE from uninitialized walkSteps var