diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class OServerShutdownMain { networkAddress = l . ipAddress ; networkPort = OServerNetworkListener . getPorts ( l . portRange ) ; break ; + } else if ( l . protocol . equals ( STRING0 ) ) { + networkAddress = l . ipAddress ; + networkPort = OServerNetworkListener . getPorts ( l . portRange ) ; ...
Fixed server shutdown class to get distributed or binary as protocols
<nb> public final class StringTools { final StringBuilder filter = new StringBuilder ( ) ; for ( int i = NUMBER0 ; i < str . length ( ) ; i ++ ) { final char c = str . charAt ( i ) ; - if ( c != STRING0 && c != STRING1 && c != STRING2 ) { + if ( c != STRING0 && c != STRING1 && c != STRING2 && c != STRING3 ) {...
improve whitespace filtering by also removing r fixes one small TODO
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JvmTestSuiteCompileClasspathConfig implements JavaLanguagePlugin . Ja RepositoryHandler repositories = serviceRegistry . get ...
Remove unused code
<nb> public class Client extends Connection implements EndPoint { SINGLE byte [ ] ip = address . getAddress ( ) ; ip [ NUMBER0 ] = - NUMBER1 ; SINGLE - socket . send ( new DatagramPacket ( data , data . length , InetAddress . getByAddress ( ip ) , udpPort ) ) ; + try { + socket . send ( new DatagramPacket (...
Fixed broadcast on Android
<nb> public class PersistentFSImpl extends PersistentFS implements ApplicationCompone LOG . error ( sb ) ; return null ; } - if ( visited == null ) visited = new TIntArrayList ( DEPTH_LIMIT ) ; - visited . add ( id ) ; int parentId = getParent ( id ) ; + if ( parentId >= id ) { + if ( visited == null ...
don t create TIntArrayList DEPTH_LIMIT before we have clear indication that we might have a loop parentId id
<nb> public abstract class PhoneBase extends Handler implements Phone { } public void notifyMessageWaitingIndicator ( ) { + SINGLE + if ( ! mIsVoiceCapable ) + return ; + SINGLE mNotifier . notifyMessageWaitingChanged ( this ) ; }
Notify voicemail only for voice capable device
<nb> public class WebView extends AbsoluteLayout mCallbackProxy = new CallbackProxy ( context , this ) ; mViewManager = new ViewManager ( this ) ; + L10nUtils . loadStrings ( context ) ; mWebViewCore = new WebViewCore ( context , this , mCallbackProxy , javascriptInterfaces ) ; mDatabase = WebViewDatabase ....
Fix potential NPE in L10nUtils
<nb> public abstract class BaseViewManager < T extends View , C extends LayoutShadowNode } @ deprecated - @ reactprop ( name = PROP_TRANSLATE_X , defaultFloat = FLOAT0 ) + @ reactprop ( name = PROP_TRANSLATE_X , defaultFloat = FLOAT1 ) public void setTranslateX ( T view , float translateX ) { view . setTr...
Fix default values for translateX Y props
<nb> public class AUC extends Request2 { STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING2 + STRING6 + <nb> public class AUC extends Request2 { STRING0 + STRING7 + STRING2 + - STRING3 + + STRING4 + STRING8 + STRING2 + STRING6 +
Fix color of ROC curve on x y axis
<nb> public final class Bone implements Savable { private Quaternion worldRot = new Quaternion ( ) ; private Vector3f worldScale = new Vector3f ( ) ; - SINGLE - private Matrix3f rotMat = new Matrix3f ( ) ; COMMENT COMMENT <nb> public final class Bone implements Savable { SINGLE m . loadIdentity ...
Used TempVars for transform calculation in getOffsetTransform
<nb> public class CallLog { if ( callType == MISSED_TYPE ) { values . put ( IS_READ , Integer . valueOf ( NUMBER0 ) ) ; } - if ( ci != null ) { - values . put ( CACHED_NAME , ci . name ) ; - values . put ( CACHED_NUMBER_TYPE , ci . numberType ) ; - values . put ( CACHED_NUMBER_LABEL , ci . numberLabel ) ;...
Don t save cached contact info in call log when adding call
<nb> public final class LocalBufferPool implements BufferProvider { } } - if ( this . asynchronousEventOccurred ) { + if ( this . asynchronousEventOccurred && block ) { this . asynchronousEventOccurred = false ; async = true ; break ;
Changed implementation of LocalBufferPool not to response to asyncronous events for non blocking operations
<nb> public class DiscoverySettings extends AbstractComponent { private final static ClusterBlock ALL = new ClusterBlock ( NO_MASTER_BLOCK_ID , STRING0 , true , true , RestStatus . SERVICE_UNAVAILABLE , ClusterBlockLevel . ALL ) ; private final static ClusterBlock WRITE = new ClusterBlock ( NO_MASTER_BLOCK_ID , S...
Discovery Removed METADATA block
<nb> package NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class App { <nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class HitAndRunMethod extends StealingMethod { ...
Improved code comments for template method example
<nb> public abstract class PersistentManagerBase ( ( StandardSession ) session ) . tellNew ( ) ; add ( session ) ; ( ( StandardSession ) session ) . activate ( ) ; + SINGLE + SINGLE + session . access ( ) ; session . endAccess ( ) ; return ( session ) ;
Stop access count going negative when session is swapped in
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public interface PluginDependenciesSpec { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Mention apply false option in the PluginDependenciesSpec javaDoc
<nb> public class StringUtilTest extends TestCase { Collections . sort ( strings2 , c ) ; assertEquals ( Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ) , strings2 ) ; assertEquals ( NUMBER0 , StringUtil . naturalCompare ( STRING6 , STRING7 ) ) ; - assertEquals ( NUMBER1 , StringUt...
fixing the test fix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AllLocalMusicFragment extends BaseFragment implements LoaderManager @ override public void onLoadFinished ( Loader < Curs...
Add subscription and remove it in onDestory if necessary
<nb> public class Topic < Message > implements SendPort < Message > { subscribers . remove ( sub ) ; } + COMMENT + COMMENT + COMMENT + public void unsubscribeAll ( ) { + subscribers . clear ( ) ; + } + @ override public void send ( Message message ) throws SuspendExecution , InterruptedException...
Added unsubscribeAll commodity to Topic as in core async
<nb> public abstract class Structure { getNativeSize ( type ) ; } catch ( IllegalArgumentException e ) { - String msg = STRING0 + getClass ( ) + STRING1 + name + STRING2 + type + STRING3 ; + String msg = STRING0 + getClass ( ) + STRING1 + name + STRING2 + type + STRING4 + e . getMessage ( ) ; throw new Ille...
Ensure exception message includes all faulty field information fixes broken test
<nb> public class EsIndexRangeService implements IndexRangeService { try { indexRanges . add ( cache . get ( index ) ) ; } catch ( ExecutionException e ) { - LOG . warn ( STRING0 + index , e . getCause ( ) ) ; + LOG . warn ( STRING0 + index ) ; } }
Remove stack trace from warning message in EsIndexRangeService findAll
<nb> public class OracleSchema extends OracleGlobalObject implements DBSSchema , DBPRe } @ override - protected JDBCStatement prepareObjectsStatement ( @ notnull JDBCSession session , @ notnull OracleSchema oracleSchema ) throws SQLException + protected JDBCStatement prepareObjectsStatement ( @ notnull JDBCSe...
Read triggers from DBA view
<nb> public class RoutingHelper { } } } - if ( suppressTurnPrompt == false && calculateRoute == false ) { + if ( ( suppressTurnPrompt == false && calculateRoute == false ) || makeUturnWhenPossible == true ) { voiceRouter . updateStatus ( currentLocation , makeUturnWhenPossible ) ; } }
better suppress wrong turn instructions remaining bug is when route was freshly recalculated
<nb> public class TranslatingCompilerFilesMonitor implements ApplicationComponent { } } - public static boolean isMarkedForCompilation ( Project project , VirtualFile file ) { - final CompilerManager compilerManager = CompilerManager . getInstance ( project ) ; - return ! compilerManager . isUpToDate ( comp...
restore old call for old compiler
<nb> public abstract class MapObject implements Comparable < MapObject > , Serializable { if ( this . location == null ) { this . location = MapUtils . getCenter ( e ) ; } + this . setNameFromOperator ( e ) ; + } + + public void setNameFromOperator ( Entity e ) { + if ( this . name != null ) return ; ...
set name from operator
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public class CoinChangingMinimumCoin {
adding youtube link to the code
<nb> public class TagLibArtefactHandler extends ArtefactHandlerAdapter { STRING0 ) ; tag2libMap . put ( tagName , taglibClass ) ; } - else { - throw new GrailsConfigurationException ( STRING1 + - taglibClass . getName ( ) + STRING2 + current . getName ( ) + - STRING3 + tagName + STRING4 ) ; - } } } ...
removed unnecessary exception
<nb> public class Input implements InputProcessor { } @ override - public boolean touchMoved ( int x , int y ) { + public boolean mouseMoved ( int x , int y ) { return false ; }
fixed Input in metagun touchMoved mouseMoved
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase new ToFileStoreWriter ( storeDir ) ) ; long highestLogVersion = ...
Uses original config arguments when doing internal applying of transactions after a a copy store
<nb> public class Checker os . flush ( ) ; os . close ( ) ; } - catch ( IOException ignored ) { + catch ( IOException ex ) { + ex . printStackTrace ( ) ; } } it . remove ( ) ;
fixed checkstyle error empty exception handler
<nb> public class MessageCompose extends K9Activity implements OnClickListener , ( QuotedTextMode ) savedInstanceState . getSerializable ( STATE_KEY_QUOTED_TEXT_MODE ) ) ; updateFrom ( ) ; - updateSignature ( ) ; updateMessageFormat ( ) ; }
Don t reset signature when restoring state
<nb> public final class LongArray { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public long get ( int index ) { if ( index < NUMBER0 || index >= size ) { - throw new IndexOutOfBoundsException ( STRING0 + index + STRING1 + size ) ; + throw new IndexOutOfBoundsException ( STRING2 + index + STR...
Fix documentation and logging in LongArray
<nb> public class AwsEc2UnicastHostsProvider extends AbstractComponent implements Uni break ; } for ( int port : new PortsRange ( ports ) . ports ( ) ) { - logger . trace ( STRING0 , instance . getInstanceId ( ) , address ) ; - discoNodes . add ( new DiscoveryNode ( STRING1 + instance . getInstanceId ( ) + ST...
handle cases when address is null when discovering
<nb> public enum Achievement { BUILD_SWORD ( NUMBER0 ) , KILL_ENEMY ( NUMBER1 ) , KILL_COW ( NUMBER2 ) , - FLY_PIG ( NUMBER3 ) ; + FLY_PIG ( NUMBER3 ) , + SNIPE_SKELETON ( NUMBER4 ) , + GET_DIAMONDS ( NUMBER5 ) , + NETHER_PORTAL ( NUMBER6 ) , + GHAST_RETURN ( NUMBER7 ) , + GET_BLAZE_ROD ( NUMBER8 ) ...
Add missing achievements to the Achievement enum
<nb> public class CallsModule extends AbsModule { ActorRef call = calls . get ( callId ) ; if ( call != null ) { call . send ( new CallActor . EndCall ( ) ) ; + } else { + onCallEnded ( callId ) ; } }
remove call ended by timeout
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RuleBasedCorefMentionFinder implements CorefMentionFinder { if ( ! m . spanToString ( ) . equalsIgnoreCase ( STRING0 ) ) return false ; final...
Remove an stderr print that I d left in oops
<nb> public class TooManyActiveSessionsException COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class TooManyActiveSessionsException int maxActive ) { super ( message ) ; - + maxActiveSessions = maxActive ; } - + COMMENT COMMENT COMMENT
Remove trailing whitespace as nagged by Checkstyle
<nb> public class KeyedLazyInstanceEP extends AbstractExtensionPointBean { @ attribute ( STRING0 ) public String implementationClass ; - private final LazyInstance myHandler = new LazyInstance < GetDataRule > ( ) { - protected Class < GetDataRule > getInstanceClass ( ) throws ClassNotFoundException { + priv...
remove some refactoring leftovers
<nb> public final class ViewRootImpl implements ViewParent , } DisplayList displayList = mView . mDisplayList ; - if ( displayList != null ) { + if ( displayList != null && displayList . isValid ( ) ) { layerCanvas . drawDisplayList ( displayList , null , DisplayList . FLAG_CLIP_CHILDREN ) ; } else {
Don t draw with invalid display lists
<nb> import NAMESPACE ; public class InnerAssignmentCheck extends Check { + COMMENT + COMMENT + COMMENT + COMMENT private final int [ ] DEFAULT_TOKENS = new int [ ] { TokenTypes . ASSIGN , TokenTypes . PLUS_ASSIGN , <nb> public class InnerAssignmentCheck DetailAST parent2 = parent1 . getParent (...
added javadoc fixed typo in method name
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WordPress extends Application { super . onCreate ( ) ; - if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH ) { - ApplicationLif...
remove ICS references
<nb> public class NotificationPanelView extends PanelView implements SINGLE int maxPanelHeight = super . getMaxPanelHeight ( ) ; int emptyBottomMargin = mNotificationStackScroller . getEmptyBottomMargin ( ) ; - emptyBottomMargin = ( int ) Math . max ( NUMBER0 , - emptyBottomMargin - mNotificationStackScroller...
Fixed flickering in panel overscroll
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Refactoring it to array package
<nb> public class XmlPathTest { } @ test + public void getNodeChildrenAsListWithTypeNodeReturnsAListOfNodes ( ) throws Exception { + final List < Node > categories = new XmlPath ( XML ) . getList ( STRING0 , Node . class ) ; + assertThat ( categories . size ( ) , equalTo ( NUMBER0 ) ) ; + } + + @ test...
Added more tests
<nb> public class Browser { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static final String EXTRA_APPEND_LOCATION = STRING0 ;
hide the new constant as it is pending api approval
<nb> public class DanmakuRenderer extends Renderer { @ override public void clear ( ) { DanmakusRetainer . clear ( ) ; - DanmakuFilters . getDefault ( ) . reset ( ) ; + SINGLE } }
not reset filters
<nb> public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase { private static class CustomGrantedAuthority implements GrantedAuthority { private final String authority ; - public CustomGrantedAuthority ( String authority ) { + public int compareTo ( Object o ) { + return NUMBER0 ; + } + ...
Resolve UserDetails getAuthorities sort logic issue
<nb> public final class Hashing { private static final Murmur3_128HashFunction MURMUR3_128 = new Murmur3_128HashFunction ( NUMBER0 ) ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public static HashFunction md5 ( ) { return MD5 ; <nb> public final class Hashing { private static final ...
Mentioning the number of hash bits to algorithms where it is not quite clear from their name
<nb> public class Weight implements Serializable { } int index = unpackIndex ( i ) ; float score = unpackScore ( i ) ; - packed [ j ] = pack ( index , score ) ; + newPacked [ j ] = pack ( index , score ) ; ++ j ; } packed = newPacked ;
How do I make such horrible bugs
<nb> public class CommittedChangesTreeBrowser extends JPanel implements TypeSafeDataP int descWidth = fontMetrics . stringWidth ( description ) ; final int descMaxWidth = parentWidth - size - NUMBER0 ; - if ( descMaxWidth < NUMBER1 ) { + if ( description . length ( ) == NUMBER1 && ! truncated ) { + append (...
correctly paint empty checkin comments
<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...
fixed compile warnnings
<nb> public class LookupItem < T > extends MutableLookupElement < T > implements Comparable } public int hashCode ( ) { - return myAllLookupStrings . hashCode ( ) * NUMBER0 + getObject ( ) . hashCode ( ) ; + final Object object = getObject ( ) ; + assert object != this : getClass ( ) . getName ( ) ; + ret...
don t allow lookup item to have itself as an object
<nb> public final class PowerManager { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public boolean isSustainedPerformanceModeSupported ( ) { re...
Adds Documentation to
<nb> public abstract class AsynchronousProcessor implements CometSupport < AtmosphereRe COMMENT COMMENT COMMENT - public boolean supportSession ( ) { + protected boolean supportSession ( ) { return config . isSupportSession ( ) ; } <nb> public abstract class AsynchronousProcessor implements CometSuppo...
bring back the original scope
<nb> public class SourceCodeTraversal extends TraversalHelper { break ; } } + acceptSiblings ( currentNode , followSiblings ) ; } }
added code to visit sibling nodes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix unused import warning
<nb> public class ProjectGeneratorTest { BuildTarget . builder ( STRING0 , STRING1 ) . setFlavor ( AppleLibraryDescription . DYNAMIC_LIBRARY ) . build ( ) , + new BuildRuleResolver ( ) , ImmutableSortedSet . < BuildRule > of ( ) , appleLibraryDescription , new Function < AppleNativeTargetDescriptionArg , ...
Fix compilation error in ProjectGeneratorTest
<nb> import NAMESPACE ; public abstract class AbstractConfigurableEmbeddedServletContainer implements ConfigurableEmbeddedServletContainer { - private static final int DEFAULT_SESSION_TIMEOUT = ( int ) TimeUnit . SECONDS - . toMinutes ( NUMBER0 ) ; + private static final int DEFAULT_SESSION_TIMEOUT = ( int ...
Fix session timeout default value
<nb> public class CameraWidgetFrame extends KeyguardWidgetFrame implements View . OnCli final float pvTransX = pvWidth < thisWidth ? ( thisWidth - pvWidth ) / NUMBER0 : NUMBER1 ; final float pvTransY = pvHeight < thisHeight ? ( thisHeight - pvHeight ) / NUMBER0 : NUMBER1 ; - mPreview . setPivotX ( NUMBER1 ) ; ...
Fix lockscreen camera preview position in RTL
<nb> public interface LanguageDriver { COMMENT COMMENT COMMENT - public ParameterHandler createParameterHandler ( MappedStatement mappedStatement , Object parameterObject , BoundSql boundSql ) ; + ParameterHandler createParameterHandler ( MappedStatement mappedStatement , Object parameterObject , BoundSql bou...
removed unneeded public modifier in interface methods
<nb> public interface Transport { public Map < String , String > getRequestedConfiguration ( ) ; public void transportAlarm ( Alarm alarm ) ; public String getName ( ) ; + public String getUserFieldName ( ) ; }
have own user field name for transports
<nb> public final class InodeTree implements JournalCheckpointStreamable { COMMENT public Inode getInodeByPath ( AlluxioURI path ) throws InvalidPathException { TraversalResult traversalResult = - traverseToInode ( PathUtils . getPathComponents ( path . toString ( ) ) , false ) ; + traverseToInode ( PathUtils...
Fix a bug in inodetree
<nb> import NAMESPACE ; public class RelationshipTypeStore extends AbstractNameStore < RelationshipTypeRecord > { public static final String TYPE_DESCRIPTOR = STRING0 ; - private static final int RECORD_SIZE = NUMBER0 COMMENT + NUMBER1 COMMENT ; + private static final int RECORD_SIZE = NUMBER0 COMMENT + NUMBE...
Accidentally set the wrong record size when refactoring out AbstractNameStore
<nb> public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { private final ColumnInfo < VcsFileRevision , T > myBaseColumn ; public Comparator < TreeNodeOnVcsRevision > getComparator ( ) { - final Comparator comparator = myBaseColumn . getComparator ( ) ; + final Comparator < VcsFileRevisio...
file history add type parameter
<nb> public class BTreeMap < K , V > extends AbstractMap < K , V > } - COMMENT - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE COMMENT COMMENT
Remove unused code in BTreeMap
<nb> public final class OperatorDebounceWithTime < T > implements Operator < T , T > { return new Subscriber < T > ( child ) { final DebounceState < T > state = new DebounceState < T > ( ) ; final Subscriber < ? > self = this ; + + @ override + public void onStart ( ) { + request ( Long . MAX_VALUE ) ; ...
Add request Long MAX_VALUE in onStart to fix the backpressure issue of debounce
<nb> public interface MetaContact COMMENT COMMENT COMMENT - public String getMetaContactID ( ) ; + public String getMetaUID ( ) ; COMMENT COMMENT <nb> public interface MetaContactGroup COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Renamed methods for better intuitivity
<nb> public abstract class TwoStatePreference extends Preference { private CharSequence mSummaryOn ; private CharSequence mSummaryOff ; boolean mChecked ; + private boolean mCheckedSet ; private boolean mSendClickAccessibilityEvent ; private boolean mDisableDependentsState ; <nb> public abstract class T...
Don t assume a default of false for TwoStatePreference
<nb> import NAMESPACE ; public abstract class Recognizer < Symbol , ATNInterpreter extends ATNSimulator > { public static final int EOF = - NUMBER0 ; - protected ANTLRErrorStrategy < Symbol > _errHandler = new DefaultErrorStrategy ( ) ; + protected ANTLRErrorStrategy < Symbol > _errHandler = new DefaultErrorS...
specify generic type
<nb> public class RandomForest implements SoftClassifier < double [ ] > , Serializable { double accuracy = FLOAT0 ; if ( oob != NUMBER0 ) { accuracy = ( double ) correct / oob ; - logger . info ( STRING0 , accuracy ) ; + logger . info ( STRING1 , String . format ( STRING2 , NUMBER1 * accuracy ) ) ; } else {...
better debugging output formatting
<nb> public class PullToRefreshAttacher implements View . OnTouchListener { mHeaderTransformer . onReset ( ) ; if ( mHeaderViewListener != null ) { mHeaderViewListener . onStateChanged ( mHeaderView , - HeaderViewListener . STATE_VISIBLE ) ; + HeaderViewListener . STATE_HIDDEN ) ; } - } else if ( animatio...
Fix HeaderViewListener calls
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class Ut...
Add tests to make sure OkHttp is never used in Froyo
<nb> public abstract class AbstractGrailsControllerHelper implements ApplicationConte return null ; } catch ( IOException e ) { - throw new ControllerExecutionException ( STRING0 , e ) ; + throw new ControllerExecutionException ( STRING1 , e ) ; } } }
Fix error message
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT public class UpdateColumnFamily extends Migration { SINGLE
remove todo notice on UpdateColumnFamily
<nb> public class SessionManager extends BasicModule { } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improved method comment
<nb> public class HdfsSpout extends BaseRichSpout { this . commitTimer = new Timer ( ) ; this . tracker = new ProgressTracker ( ) ; this . hdfsConfig = new Configuration ( ) ; - this . collector = collector ; - this . hdfsConfig = new Configuration ( ) ; - this . tupleCounter = NUMBER0 ; SINGLE if (...
HdfsSpout remove duplicated code
<nb> public class AuditedEntitlementDao implements EntitlementDao { final String baseProductName = ( futureBaseEvent instanceof ApiEventChange ) ? ( ( ApiEventChange ) futureBaseEvent ) . getEventPlan ( ) : null ; - final boolean createCancelEvent = ( futureBaseEvent != null ) && + final boolean createCancelE...
fix potential NPE
<nb> public final class CachedBluetoothDevice implements Comparable < CachedBluetoothDe if ( BluetoothUuid . containsAnyUuid ( uuids , PbapServerProfile . PBAB_CLIENT_UUIDS ) ) { SINGLE SINGLE - setPhonebookPermissionChoice ( CachedBluetoothDevice . ACCESS_ALLOWED ) ; + if ( getPhonebookPermissionChoice ( ) =...
Fix issue related selecting of Contact sharing in BT Settings
<nb> public class RecentTasksLoader { SINGLE SINGLE final int origPri = Process . getThreadPriority ( Process . myTid ( ) ) ; - Process . setThreadPriority ( Process . THREAD_GROUP_BG_NONINTERACTIVE ) ; + Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ; final PackageManager pm = mConte...
Fix priority constants in RecentTasksLoader
<nb> public class TileLaser extends TileBuildCraft implements IPowerReceptor , IAction private int nextLaserUpdate = NUMBER0 ; private int nextLaserSearch = NUMBER1 ; private ActionMachineControl . Mode lastMode = ActionMachineControl . Mode . Unknown ; + private static final PowerHandler . PerditionCalculator ...
Halve Laser Power Perdition
<nb> public class CTConnectionFactory implements KeyedPoolableObjectFactory < String , C return isSameConfig && c . isOpen ( ) ; } - public Config getConfig ( ) { - return cfgRef . get ( ) ; - } - - public void setConfig ( Config newCfg ) { - cfgRef . set ( newCfg ) ; - log . debug ( STRING0 , newCf...
Delete unused code in CTConnectionFactory Config
<nb> public class ResetFuzzTest { Message message = messages . get ( rand . nextInt ( messages . size ( ) ) ) ; sent . add ( message ) ; - message . dispatch ( session ) ; + message . < RuntimeException > dispatch ( session ) ; } }
Fixes a compilation annoyance in a test
<nb> public final class Main { } final Closer closer = Closer . create ( ) ; - Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { - @ override public void run ( ) { - try { - closer . close ( ) ; - } catch ( IOException e ) { - LOG . warning ( STRING0 + e ) ; - } + try { + doRun ( clo...
Remove ShutdownHook from jar tool to prevent memory leak when running under nailgun
<nb> public class SimpleDiffChange { return icon ; } + public boolean isNavigateAction ( ) { return true ; } + @ nullable @ override public AnAction getClickAction ( ) {
show hand over gutter apply icon
<nb> public class NotificationsListFragment extends Fragment getNotesAdapter ( ) . reloadNotesFromDBAsync ( ) ; } + @ suppresswarnings ( STRING0 ) public void onEventMainThread ( NotificationEvents . NotificationsUnseenStatus event ) { if ( ! isAdded ( ) ) { return ;
Added missing SuppressWarning annotation
<nb> public class EntityCombustEvent extends EntityEvent implements Cancellable { this . cancel = false ; } - @ override public boolean isCancelled ( ) { return cancel ; } - @ override public void setCancelled ( boolean cancel ) { this . cancel = cancel ; }
Remove overrides from EntityCombust
<nb> public final class BlockData { else if ( data == NUMBER0 ) return NUMBER1 ; else return NUMBER2 ; SINGLE + case BlockID . BED : + return data & ~ NUMBER3 | ( data + NUMBER4 ) & NUMBER3 ; } return data ; <nb> public final class BlockData { else if ( data == NUMBER0 ) return NUMBER1 ; else retu...
Fixed bed rotation
<nb> public class PlaybackService extends Service { if ( ! UserPreferences . isCastEnabled ( ) ) { CastManager castManager = CastManager . getInstance ( ) ; if ( castManager . isConnecting ( ) || castManager . isConnected ( ) ) { + Log . d ( TAG , STRING0 ) ; castManager . disconnect ( ) ; } }
add a lonely logging command
<nb> public class FormatUtilsTest { testCases . add ( new TestCase ( STRING0 , new Object [ ] { STRING1 } ) ) ; testCases . add ( new TestCase ( STRING2 , new Object [ ] { STRING1 , STRING3 } ) ) ; testCases . add ( new TestCase ( STRING4 , new Object [ ] { STRING1 , STRING5 , STRING3 } ) ) ; + testCases . add ...
Addressing PR review comments
<nb> public class MessagingController implements Runnable } if ( localFolder . getMessageCount ( ) == NUMBER0 ) { - localFolder . delete ( false ) ; + SINGLE + SINGLE + SINGLE + SINGLE } for ( MessagingListener l : getListeners ( ) ) {
No longer delete the Outbox every time it s empty it makes it somewhat
<nb> public interface ApplicationEx extends Application { void doNotSave ( boolean value ) ; boolean isDoNotSave ( ) ; - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT void exit ( boolean force , boolean exitConfirmed ) ; + COMMENT + COMMENT + COMMENT + COMMENT void restart ( b...
updated javadoc for exit and restart actions
<nb> public class DroidGap extends Activity implements CordovaInterface { LOG . d ( TAG , STRING0 ) ; super . onCreate ( savedInstanceState ) ; - getWindow ( ) . setFlags ( WindowManager . LayoutParams . FLAG_FORCE_NOT_FULLSCREEN , + if ( this . getBooleanProperty ( STRING1 , true ) ) + { + getWindow ( ) ...
Adding more undocumented features for app title bar and full screen
<nb> final class ActiveDecorationLayer extends JComponent implements FeedbackLayer { } } else { + String oldText = myToolTip . getTipText ( ) ; + myToolTip . setTipText ( text ) ; + pnt = SwingUtilities . convertPoint ( relativeTo , pnt , this ) ; Dimension prefSize = myToolTip . getPreferredSize ( ) ; ...
update tooltip size after setting text
<nb> public class SpecialFiles { excludedFiles . add ( STRING0 ) ; SINGLE excludedFiles . add ( STRING1 ) ; SINGLE excludedFiles . add ( STRING2 ) ; SINGLE + excludedFiles . add ( STRING3 ) ; SINGLE excludedFiles . add ( STRING4 ) ; SINGLE
update excluded files
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ProjectsPage extends RootPage { } List < ProjectModel > projects = getProjects ( params ) ; + Collections . sort ( projects ) ; ListDataProvider < ProjectModel > dp = new ListDataPro...
sort projects displayed on projects page
<nb> public class PyBroadExceptionInspection extends PyInspection { public void visitPyExceptBlock ( final PyExceptPart node ) { PyExpression exceptClass = node . getExceptClass ( ) ; if ( exceptClass == null ) { - registerProblem ( node , STRING0 ) ; + registerProblem ( node . getFirstChild ( ) , STRING0 ) ;...
fixed highlighting in BroadException inspection
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ImageRequest { return mPostprocessor ; } + @ override + public boolean equals ( Object o ) { + if ( ! ( o instanceof ImageRequest ) ) { + return false ...
Restore reverted commit
<nb> public class XMPPConnect implements ManagedService { logger . debug ( STRING0 , e ) ; } - public void reconnectionSuccessful ( ) { - try { - if ( ! connection . isConnected ( ) ) { - initialized = false ; - getConnection ( ) ; - } - logger . debug ( STRING1 ) ; - } catch ( NotInitializedExcep...
Don t use reconnectionSuccessful callback
<nb> public abstract class Operation implements DataSerializable { public String toString ( ) { final StringBuilder sb = new StringBuilder ( getClass ( ) . getName ( ) ) . append ( STRING0 ) ; sb . append ( STRING1 ) . append ( serviceName ) . append ( STRING2 ) ; + sb . append ( STRING3 ) . append ( partitionI...
Included the partition id into the operation toString as well
<nb> public class GenericLocation implements Cloneable { return String . format ( STRING0 , this . lat , this . lng ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ override + public String toString ( ) { + if ( this . place != null && ! this . place . isEmpty ( ) ) { + if...
Add a toDescriptiveString to GenericLocation since toString is being used for some other behavior